eli-video-interview 1.2.41-alpha.3 → 1.2.41-alpha.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
- package/esm/constants/ai-question.d.ts +3 -0
- package/esm/constants/ai-question.js +10 -0
- package/esm/constants/ai-report.d.ts +5 -0
- package/esm/constants/ai-report.js +5 -0
- package/esm/enum/ai-report.d.ts +12 -0
- package/esm/enum/ai-report.js +12 -0
- package/esm/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.d.ts +14 -0
- package/esm/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.js +145 -0
- package/esm/modules/ai-ability/components/AbilityFormItem/index.d.ts +2 -0
- package/esm/modules/ai-ability/components/AbilityFormItem/index.js +17 -6
- package/esm/modules/ai-ability/components/AddAbility/index.js +131 -101
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +81 -106
- package/esm/modules/ai-question/Root.js +3 -3
- package/esm/modules/ai-question/components/BootVideo/CustomVideos.js +1 -1
- package/esm/modules/ai-question/components/BootVideo/UploadPreview.js +9 -1
- package/esm/modules/ai-question/components/BootVideo/index.js +13 -3
- package/esm/modules/ai-question/components/QuestionImport/index.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionImport/index.js +109 -0
- package/esm/modules/ai-question/components/QuestionImport/interface.d.ts +8 -0
- package/esm/modules/ai-question/components/QuestionImport/interface.js +1 -0
- package/esm/modules/ai-question/components/QuestionImport/styled.d.ts +13 -0
- package/esm/modules/ai-question/components/QuestionImport/styled.js +49 -0
- package/esm/modules/ai-question/components/QuestionModel/Header.js +23 -2
- package/esm/modules/ai-question/components/QuestionModel/Item.js +4 -4
- package/esm/modules/ai-question/components/QuestionModel/index.js +1 -1
- package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +1 -0
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
- package/esm/modules/ai-question/components/QuestionUpdate/FllowupSetting.d.ts +4 -0
- package/esm/modules/ai-question/components/QuestionUpdate/FllowupSetting.js +86 -0
- package/esm/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.d.ts +9 -0
- package/esm/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.js +94 -0
- package/esm/modules/ai-question/components/QuestionUpdate/FollowupTarget.d.ts +9 -0
- package/esm/modules/ai-question/components/QuestionUpdate/FollowupTarget.js +73 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +8 -7
- package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +2 -1
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +9 -8
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +3 -3
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +7 -0
- package/esm/modules/ai-question/interface.d.ts +1 -0
- package/esm/modules/ai-question/useAiQuestion.d.ts +1 -0
- package/esm/modules/ai-report/Root.js +54 -10
- package/esm/modules/ai-report/components/AIEvaluate/index.js +2 -2
- package/esm/modules/ai-report/components/ScoreReport/Bar.d.ts +4 -1
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +12 -10
- package/esm/modules/ai-report/components/ScoreReport/Failed.d.ts +1 -1
- package/esm/modules/ai-report/components/ScoreReport/Failed.js +12 -4
- package/esm/modules/ai-report/components/ScoreReport/RecommendIcon.d.ts +3 -0
- package/esm/modules/ai-report/components/ScoreReport/RecommendIcon.js +17 -0
- package/esm/modules/ai-report/components/ScoreReport/Score.js +35 -9
- package/esm/modules/ai-report/components/ScoreReport/Tips.d.ts +3 -0
- package/esm/modules/ai-report/components/ScoreReport/Tips.js +18 -0
- package/esm/modules/ai-report/components/ScoreReport/index.js +8 -10
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +5 -0
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/esm/modules/ai-report/components/ScoreReport/styled.js +2 -4
- package/esm/modules/ai-report/components/Suggestion/index.js +2 -2
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +3 -1
- package/esm/modules/ai-report/components/VideoQuestion/Workplaces.d.ts +6 -0
- package/esm/modules/ai-report/components/VideoQuestion/Workplaces.js +26 -0
- package/esm/modules/ai-report/components/VideoQuestion/index.js +2 -2
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +1 -0
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +2 -1
- package/esm/modules/ai-report/components/WorkPlaces/index.js +4 -3
- package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +2 -2
- package/esm/modules/ai-report/interface.d.ts +6 -0
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/esm/services/ai-question.d.ts +3 -0
- package/esm/services/ai-question.js +3 -0
- package/esm/services/ai-report.d.ts +6 -0
- package/esm/services/ai-report.js +1 -0
- package/esm/store/ai-question/global-store.d.ts +3 -0
- package/esm/store/ai-question/global-store.js +1 -0
- package/esm/store/enterprise/enterprise-store.js +2 -2
- package/esm/utils/interceptor.js +5 -2
- package/lib/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
- package/lib/constants/ai-question.d.ts +3 -0
- package/lib/constants/ai-question.js +12 -1
- package/lib/constants/ai-report.d.ts +5 -0
- package/lib/constants/ai-report.js +6 -1
- package/lib/enum/ai-report.d.ts +12 -0
- package/lib/enum/ai-report.js +13 -1
- package/lib/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.d.ts +14 -0
- package/lib/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.js +147 -0
- package/lib/modules/ai-ability/components/AbilityFormItem/index.d.ts +2 -0
- package/lib/modules/ai-ability/components/AbilityFormItem/index.js +15 -4
- package/lib/modules/ai-ability/components/AddAbility/index.js +153 -100
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +101 -103
- package/lib/modules/ai-question/Root.js +3 -3
- package/lib/modules/ai-question/components/BootVideo/CustomVideos.js +1 -1
- package/lib/modules/ai-question/components/BootVideo/UploadPreview.js +9 -1
- package/lib/modules/ai-question/components/BootVideo/index.js +13 -3
- package/lib/modules/ai-question/components/QuestionImport/index.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionImport/index.js +114 -0
- package/lib/modules/ai-question/components/QuestionImport/interface.d.ts +8 -0
- package/lib/modules/ai-question/components/QuestionImport/interface.js +2 -0
- package/lib/modules/ai-question/components/QuestionImport/styled.d.ts +13 -0
- package/lib/modules/ai-question/components/QuestionImport/styled.js +52 -0
- package/lib/modules/ai-question/components/QuestionModel/Header.js +25 -1
- package/lib/modules/ai-question/components/QuestionModel/Item.js +3 -3
- package/lib/modules/ai-question/components/QuestionModel/index.js +1 -1
- package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +1 -0
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +2 -2
- package/lib/modules/ai-question/components/QuestionUpdate/FllowupSetting.d.ts +4 -0
- package/lib/modules/ai-question/components/QuestionUpdate/FllowupSetting.js +91 -0
- package/lib/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.d.ts +9 -0
- package/lib/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.js +96 -0
- package/lib/modules/ai-question/components/QuestionUpdate/FollowupTarget.d.ts +9 -0
- package/lib/modules/ai-question/components/QuestionUpdate/FollowupTarget.js +75 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +8 -7
- package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +4 -3
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +9 -8
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +2 -2
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +7 -0
- package/lib/modules/ai-question/interface.d.ts +1 -0
- package/lib/modules/ai-question/useAiQuestion.d.ts +1 -0
- package/lib/modules/ai-report/Root.js +51 -7
- package/lib/modules/ai-report/components/AIEvaluate/index.js +2 -2
- package/lib/modules/ai-report/components/ScoreReport/Bar.d.ts +4 -1
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +11 -9
- package/lib/modules/ai-report/components/ScoreReport/Failed.d.ts +1 -1
- package/lib/modules/ai-report/components/ScoreReport/Failed.js +12 -5
- package/lib/modules/ai-report/components/ScoreReport/RecommendIcon.d.ts +3 -0
- package/lib/modules/ai-report/components/ScoreReport/RecommendIcon.js +22 -0
- package/lib/modules/ai-report/components/ScoreReport/Score.js +31 -7
- package/lib/modules/ai-report/components/ScoreReport/Tips.d.ts +3 -0
- package/lib/modules/ai-report/components/ScoreReport/Tips.js +20 -0
- package/lib/modules/ai-report/components/ScoreReport/index.js +6 -8
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +5 -0
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
- package/lib/modules/ai-report/components/ScoreReport/styled.js +2 -4
- package/lib/modules/ai-report/components/Suggestion/index.js +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -7
- package/lib/modules/ai-report/components/VideoQuestion/index.js +1 -1
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +2 -2
- package/lib/modules/ai-report/components/VideoQuestion/workplaces.d.ts +6 -0
- package/lib/modules/ai-report/components/VideoQuestion/workplaces.js +28 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +1 -0
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +2 -1
- package/lib/modules/ai-report/components/WorkPlaces/index.js +3 -2
- package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +2 -2
- package/lib/modules/ai-report/interface.d.ts +6 -0
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
- package/lib/services/ai-question.d.ts +3 -0
- package/lib/services/ai-question.js +7 -1
- package/lib/services/ai-report.d.ts +6 -0
- package/lib/services/ai-report.js +3 -1
- package/lib/store/ai-question/global-store.d.ts +3 -0
- package/lib/store/ai-question/global-store.js +1 -0
- package/lib/store/enterprise/enterprise-store.js +2 -2
- package/lib/utils/interceptor.js +5 -2
- package/package.json +6 -3
|
@@ -10,41 +10,28 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
-
var
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
47
18
|
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
48
35
|
};
|
|
49
36
|
var __read = (this && this.__read) || function (o, n) {
|
|
50
37
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -67,12 +54,23 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
67
54
|
};
|
|
68
55
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
69
56
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
57
|
+
/* eslint-disable react-hooks/exhaustive-deps */
|
|
58
|
+
var Yup = __importStar(require("yup"));
|
|
70
59
|
var const_1 = require("../../const");
|
|
71
60
|
var AbilityFormItem_1 = __importDefault(require("../AbilityFormItem"));
|
|
72
61
|
var ai_ability_1 = require("../../../../services/ai-ability");
|
|
73
62
|
var ahooks_1 = require("ahooks");
|
|
74
63
|
var fbm_ui_1 = require("fbm-ui");
|
|
64
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
65
|
+
var formik_1 = require("formik");
|
|
75
66
|
var react_1 = require("react");
|
|
67
|
+
var validationSchema = Yup.object().shape({
|
|
68
|
+
name: Yup.string().required('能力名称不能为空'),
|
|
69
|
+
workPlaceItems: Yup.array().of(Yup.object().shape({
|
|
70
|
+
name: Yup.string().required(''),
|
|
71
|
+
items: Yup.array().of(Yup.string().required('')),
|
|
72
|
+
})),
|
|
73
|
+
});
|
|
76
74
|
var UpdateAbility = function (props) {
|
|
77
75
|
var open = props.open, _a = props.type, type = _a === void 0 ? 1 : _a, isWorkplace = props.isWorkplace, _b = props.name, name = _b === void 0 ? '' : _b, ablilityNameLength = props.ablilityNameLength, token = props.token, onClose = props.onClose, onSuccess = props.onSuccess;
|
|
78
76
|
var _c = __read((0, react_1.useState)(''), 2), value = _c[0], setValue = _c[1];
|
|
@@ -80,8 +78,27 @@ var UpdateAbility = function (props) {
|
|
|
80
78
|
var _e = __read((0, react_1.useState)('show'), 2), mode = _e[0], setMode = _e[1];
|
|
81
79
|
var firstLoad = (0, react_1.useRef)(true);
|
|
82
80
|
var _f = __read((0, react_1.useState)(false), 2), showAiDefineDetail = _f[0], setShowAiDefineDetail = _f[1];
|
|
83
|
-
// const [submitDisabled, setSubmitDisabled] = useState<boolean>(true);
|
|
84
81
|
var _g = __read((0, react_1.useState)(const_1.InitialValues.workPlaceItems), 2), workPlaceItems = _g[0], setWorkPlaceItems = _g[1];
|
|
82
|
+
var formik = (0, fbm_ui_1.useForm)({
|
|
83
|
+
initialValues: { name: '', workPlaceItems: [] },
|
|
84
|
+
validationSchema: validationSchema,
|
|
85
|
+
validateOnChange: true,
|
|
86
|
+
onSubmit: function (values) {
|
|
87
|
+
// 处理表单提交逻辑
|
|
88
|
+
console.log(values);
|
|
89
|
+
var avocadoConfig = window['AvocadoVideoInterviewConfig'];
|
|
90
|
+
run({
|
|
91
|
+
name: values.name,
|
|
92
|
+
tag: values.name,
|
|
93
|
+
token: token,
|
|
94
|
+
workPlaceItems: values.workPlaceItems,
|
|
95
|
+
mateData: {
|
|
96
|
+
account: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.account,
|
|
97
|
+
enterpriseId: avocadoConfig === null || avocadoConfig === void 0 ? void 0 : avocadoConfig.enterpriseId,
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
});
|
|
85
102
|
var _h = (0, ahooks_1.useRequest)(ai_ability_1.PostQuestionCollectionUpsert, {
|
|
86
103
|
manual: true,
|
|
87
104
|
onSuccess: function () {
|
|
@@ -92,7 +109,7 @@ var UpdateAbility = function (props) {
|
|
|
92
109
|
onError: function (err) {
|
|
93
110
|
console.log(err);
|
|
94
111
|
if ((err === null || err === void 0 ? void 0 : err.code) === -1211) {
|
|
95
|
-
|
|
112
|
+
formik.errors.name = '能力名称不能重复';
|
|
96
113
|
}
|
|
97
114
|
},
|
|
98
115
|
}), run = _h.run, loading = _h.loading;
|
|
@@ -111,82 +128,60 @@ var UpdateAbility = function (props) {
|
|
|
111
128
|
}
|
|
112
129
|
},
|
|
113
130
|
}).run;
|
|
114
|
-
var nameTextField = (0, fbm_ui_1.useTextField)({
|
|
115
|
-
value: value,
|
|
116
|
-
label: '能力名称',
|
|
117
|
-
required: true,
|
|
118
|
-
rules: [
|
|
119
|
-
{
|
|
120
|
-
required: true,
|
|
121
|
-
message: '能力名称不能为空',
|
|
122
|
-
},
|
|
123
|
-
],
|
|
124
|
-
onChange: function (e) { return setValue(e.target.value); },
|
|
125
|
-
max: ablilityNameLength,
|
|
126
|
-
sx: {
|
|
127
|
-
height: '48px',
|
|
128
|
-
width: '100%',
|
|
129
|
-
marginTop: '16px',
|
|
130
|
-
},
|
|
131
|
-
});
|
|
132
131
|
var handleValue = (0, react_1.useCallback)(function (v) {
|
|
133
|
-
|
|
134
|
-
workPlaceItems.splice(index, 1, v);
|
|
135
|
-
|
|
136
|
-
setWorkPlaceItems(list);
|
|
132
|
+
// const index = workPlaceItems.findIndex(ele => ele.type === v.type);
|
|
133
|
+
// workPlaceItems.splice(index, 1, v);
|
|
134
|
+
// const list = workPlaceItems;
|
|
135
|
+
// setWorkPlaceItems(list);
|
|
137
136
|
}, [workPlaceItems]);
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
return [2 /*return*/];
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
}); }, [nameTextField, run, token, value, isWorkplace, type, workPlaceItems]);
|
|
137
|
+
// const handleOk = useCallback(async () => {
|
|
138
|
+
// // const error = await nameTextField.handleValidate();
|
|
139
|
+
// const error = false;
|
|
140
|
+
// const workPlaceItemsError = workPlaceItems.some(v => v.items.length === 0);
|
|
141
|
+
// if (!error) {
|
|
142
|
+
// const avocadoConfig = window['AvocadoVideoInterviewConfig'];
|
|
143
|
+
// // 旧自定义能力
|
|
144
|
+
// if (type === 3 && !isWorkplace) {
|
|
145
|
+
// run({
|
|
146
|
+
// name: value,
|
|
147
|
+
// tag: value,
|
|
148
|
+
// token,
|
|
149
|
+
// mateData: {
|
|
150
|
+
// account: avocadoConfig?.account,
|
|
151
|
+
// enterpriseId: avocadoConfig?.enterpriseId,
|
|
152
|
+
// },
|
|
153
|
+
// });
|
|
154
|
+
// } else if (!workPlaceItemsError) {
|
|
155
|
+
// // 职场能力
|
|
156
|
+
// run({
|
|
157
|
+
// name: value,
|
|
158
|
+
// tag: value,
|
|
159
|
+
// token,
|
|
160
|
+
// workPlaceItems,
|
|
161
|
+
// mateData: {
|
|
162
|
+
// account: avocadoConfig?.account,
|
|
163
|
+
// enterpriseId: avocadoConfig?.enterpriseId,
|
|
164
|
+
// },
|
|
165
|
+
// });
|
|
166
|
+
// }
|
|
167
|
+
// }
|
|
168
|
+
// }, [run, token, value, isWorkplace, type, workPlaceItems]);
|
|
178
169
|
var footer = (0, react_1.useCallback)(function () {
|
|
179
|
-
return step === 1 ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", padding: "12px 16px" }, { children: type === 1 ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", color: "inherit", onClick: function () { return setStep(2); } }, { children: "\u7F16\u8F91" }))) }))) : ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", justifyContent: "flex-end", padding: "12px 16px" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ sx: { mr: 1, fontWeight: 400 }, variant: "text", color: "inherit", onClick: onClose }, { children: "\u53D6\u6D88" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ loading: loading, onClick:
|
|
180
|
-
}, [
|
|
170
|
+
return step === 1 ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", padding: "12px 16px" }, { children: type === 1 ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", color: "inherit", onClick: function () { return setStep(2); } }, { children: "\u7F16\u8F91" }))) }))) : ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", justifyContent: "flex-end", padding: "12px 16px" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ sx: { mr: 1, fontWeight: 400 }, variant: "text", color: "inherit", onClick: onClose }, { children: "\u53D6\u6D88" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ loading: loading, onClick: formik.submitForm }, { children: "\u4FDD\u5B58" }))] })));
|
|
171
|
+
}, [step, type, onClose, loading, formik]);
|
|
172
|
+
(0, react_1.useEffect)(function () {
|
|
173
|
+
formik.setFieldValue('workPlaceItems', workPlaceItems);
|
|
174
|
+
}, [workPlaceItems]);
|
|
181
175
|
(0, react_1.useEffect)(function () {
|
|
182
176
|
setValue(name);
|
|
177
|
+
formik.setFieldValue('name', name);
|
|
183
178
|
}, [name]);
|
|
184
179
|
(0, react_1.useEffect)(function () {
|
|
185
180
|
if (!open) {
|
|
186
181
|
setValue('');
|
|
187
182
|
setWorkPlaceItems([]);
|
|
188
183
|
setStep(1);
|
|
189
|
-
nameTextField.setError();
|
|
184
|
+
// nameTextField.setError();
|
|
190
185
|
}
|
|
191
186
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
192
187
|
}, [open]);
|
|
@@ -205,7 +200,10 @@ var UpdateAbility = function (props) {
|
|
|
205
200
|
(0, react_1.useEffect)(function () {
|
|
206
201
|
setWorkPlaceItems(workPlaceItems);
|
|
207
202
|
}, [workPlaceItems, setWorkPlaceItems]);
|
|
208
|
-
return ((0, jsx_runtime_1.
|
|
209
|
-
|
|
203
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Drawer, __assign({ className: "abilityDrawer", title: '能力详情', open: open, footer: footer, onClose: onClose }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Form, __assign({}, formik, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: step === 1 ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: "medium" }, { children: ["\u80FD\u529B\u540D\u79F0\uFF1A", value] }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary" }, { children: "\u4F7F\u7528\u901A\u7528\u7684\u80FD\u529B\u540D\u79F0\uFF08\u4F8B\u5982\uFF1A\u9886\u5BFC\u529B\u3001\u5E94\u53D8\u80FD\u529B\u7B49\u5E38\u89C1\u8003\u6838\u9879\uFF09\u547D\u540D\u6709\u52A9\u4E8E\u63D0\u9AD8 AI \u8BC4\u4EF7\u53CA\u8BC4\u5206\u51C6\u786E\u6027\u3002" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, { name: "name", label: "\u80FD\u529B\u540D\u79F0", sx: { height: '48px', width: '100%', marginTop: '16px' }, max: ablilityNameLength, onKeyDown: function (event) {
|
|
204
|
+
if (event.key === 'Enter') {
|
|
205
|
+
event.preventDefault();
|
|
206
|
+
}
|
|
207
|
+
} })] })) })), !(type === 3 && !isWorkplace) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ style: { width: '556px' } }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Divider, { style: { margin: '24px 0' } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: "medium", mb: 2 }, { children: "\u80FD\u529B\u6807\u51C6" })), showAiDefineDetail && ((0, jsx_runtime_1.jsx)(formik_1.FieldArray, __assign({ name: "workPlaceItems" }, { children: function () { return ((0, jsx_runtime_1.jsx)(mui_1.Stack, { children: formik.values.workPlaceItems.map(function (item, index) { return ((0, jsx_runtime_1.jsx)(mui_1.Stack, { children: (0, jsx_runtime_1.jsx)(AbilityFormItem_1.default, { token: token, name: value, title: item.name, type: item.type, items: item.items, mode: mode, index: index, item: item, maxTextLength: item.type === 4 || item.type === 5 ? 300 : 100, canReplace: mode === 'edit' ? true : false, onChange: handleValue }, item.type) }, index)); }) })); } })))] })))] })) })));
|
|
210
208
|
};
|
|
211
209
|
exports.default = UpdateAbility;
|
|
@@ -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({
|
|
@@ -93,6 +93,6 @@ var CustomVideos = function (_a) {
|
|
|
93
93
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", mt: 3 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), (0, jsx_runtime_1.jsxs)(styled_1.CustomUploadedImgRoot, __assign({ sx: { minHeight: 0 } }, { children: [mediaList === null || mediaList === void 0 ? void 0 : mediaList.map(function (_a, i) {
|
|
94
94
|
var url = _a.url, selected = _a.selected;
|
|
95
95
|
return ((0, jsx_runtime_1.jsx)(UploadPreview_1.default, { src: "".concat(url, "?x-oss-process=video/snapshot,t_0,f_jpg"), style: { borderColor: selected ? '#4CAF50' : 'transparent' }, height: 100, alt: "", onClick: function () { return handleSelectVideo(i); }, onRemove: function () { return handleRemoveVideo(i); } }, url));
|
|
96
|
-
}), loading && (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { height: 100, loading: { size: 24, loading: true, isMask: true } })] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsxs)(styled_1.CustomUploadButtonRoot, { children: [mediaList.length
|
|
96
|
+
}), loading && (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { height: 100, loading: { size: 24, loading: true, isMask: true } })] })), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsxs)(styled_1.CustomUploadButtonRoot, { children: [mediaList.length < 5 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Upload, __assign({}, uploadProps, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", disabled: mediaList.length > 5, color: "inherit", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.AddIcon, {}) }, { children: "\u4E0A\u4F20\u89C6\u9891" })) }))), mediaList.length >= 5 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", disabled: true, color: "inherit", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.AddIcon, {}) }, { children: "\u4E0A\u4F20\u89C6\u9891" })))] }), (0, jsx_runtime_1.jsx)(mui_1.Tooltip, __assign({ title: "\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", placement: "bottom-start" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { color: 'rgba(0, 0, 0, 0.56)', fontSize: 16 } }) })) }))] })), mediaList.length === 0 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "error" }, { children: "\u4E0A\u4F20\u89C6\u9891\u4E0D\u53EF\u4E3A\u7A7A" })))] }));
|
|
97
97
|
};
|
|
98
98
|
exports.default = CustomVideos;
|
|
@@ -15,6 +15,14 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
15
15
|
var fbm_ui_1 = require("fbm-ui");
|
|
16
16
|
var UploadPreview = function (_a) {
|
|
17
17
|
var src = _a.src, style = _a.style, onClick = _a.onClick, onRemove = _a.onRemove, height = _a.height, alt = _a.alt, _b = _a.disabledRemove, disabledRemove = _b === void 0 ? false : _b;
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box,
|
|
18
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: {
|
|
19
|
+
height: height,
|
|
20
|
+
'& .remove': {
|
|
21
|
+
display: 'none',
|
|
22
|
+
},
|
|
23
|
+
'&:hover .remove': {
|
|
24
|
+
display: 'block',
|
|
25
|
+
},
|
|
26
|
+
} }, { children: [(0, jsx_runtime_1.jsx)("img", { src: src, height: height, style: style, alt: alt, onClick: onClick }), !disabledRemove && ((0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ className: "remove", onClick: onRemove, size: "small", sx: { position: 'absolute', top: -14, right: -16 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.CancelIcon, {}) })))] })));
|
|
19
27
|
};
|
|
20
28
|
exports.default = UploadPreview;
|
|
@@ -189,7 +189,17 @@ var BootVideo = function (props) {
|
|
|
189
189
|
}
|
|
190
190
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
191
191
|
}, [open]);
|
|
192
|
-
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk, width: 588
|
|
192
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u5B9A\u5236\u9762\u8BD5\u95F4", okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk, width: 588,
|
|
193
|
+
// @ts-ignore
|
|
194
|
+
sx: {
|
|
195
|
+
'& .FuiDialog-content': {
|
|
196
|
+
pb: 4.5,
|
|
197
|
+
},
|
|
198
|
+
} }, { children: (0, jsx_runtime_1.jsx)(ScrollDialogContent_1.default, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between', width: '100%' } }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ width: "100%" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500 }, { children: "\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.RadioGroup, __assign({ sx: {
|
|
199
|
+
'& .MuiFormControlLabel-root': {
|
|
200
|
+
mr: 4.5,
|
|
201
|
+
},
|
|
202
|
+
}, defaultValue: "outlined", onChange: handleInteractTypeChange, value: interviewRoomState.interactType }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Radio, { value: 1, label: "\u4F20\u7EDF\u8BFB\u9898\u6A21\u5F0F" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.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_1.Select, { options: Options, value: broadcastType, onChange: function (e) {
|
|
193
203
|
var _a;
|
|
194
204
|
var value = e.target.value;
|
|
195
205
|
setVirtualManList(__spreadArray([], __read(virtualManList.map(function (v) { return (__assign(__assign({}, v), { selected: v.type === value })); })), false));
|
|
@@ -198,11 +208,11 @@ var BootVideo = function (props) {
|
|
|
198
208
|
// @ts-ignore
|
|
199
209
|
aiInterviewerProfile: (_a = virtualManList.find(function (v) { return v.type === value; })) === null || _a === void 0 ? void 0 : _a.detail }));
|
|
200
210
|
}
|
|
201
|
-
}, 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: (_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _a === void 0 ? void 0 : _a.tutorialVideos, setMediaList: handleSetVideo }), (0, jsx_runtime_1.jsx)(fbm_ui_1.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_1.TextField, { multiline: true, error: (((_b = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _b === void 0 ? void 0 : _b.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 })] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: broadcastType !== 3 ? '面试官形象' : '面试官形象(播报题目)' })), broadcastType !== 3 && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: (0, jsx_runtime_1.jsx)("img", { src: (_c = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _c === void 0 ? void 0 : _c.virtualHumanAvatar, style: {
|
|
211
|
+
}, 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: (_a = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _a === void 0 ? void 0 : _a.tutorialVideos, setMediaList: handleSetVideo }), (0, jsx_runtime_1.jsx)(fbm_ui_1.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_1.TextField, { multiline: true, error: (((_b = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _b === void 0 ? void 0 : _b.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_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 3 }, { children: broadcastType !== 3 ? '面试官形象' : '面试官形象(播报题目)' })), broadcastType !== 3 && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: (0, jsx_runtime_1.jsx)("img", { src: (_c = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _c === void 0 ? void 0 : _c.virtualHumanAvatar, style: {
|
|
202
212
|
borderColor: 'transparent',
|
|
203
213
|
}, height: 100, alt: "" }) }) })), broadcastType === 3 && ((0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: (_e = (_d = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _d === void 0 ? void 0 : _d.interviewerShows) === null || _e === void 0 ? void 0 : _e.map(function (human) { return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)("img", { src: human.virtualHumanAvatar, style: {
|
|
204
214
|
borderColor: human.selected ? '#4CAF50' : 'transparent',
|
|
205
|
-
}, height: 100, alt: "", onClick: function () { return handleSelectHumanType(human); } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", textAlign: "center" }, { children: human.name }))] }, human.humanToken)); }) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", flexWrap: "wrap", color: "disabled", mb: 3 }, { children: (virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail.desc) || ((_h = (_g = (_f = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _f === void 0 ? void 0 : _f.interviewerShows) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.desc) })), broadcastType !== 3 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u64AD\u62A5\u5185\u5BB9" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.TextField, { multiline: true, error: (((_j = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _j === void 0 ? void 0 : _j.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, onChange: handleGuidanceText })] }))] })), interviewRoomState.interactType === 1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), (0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: mediaList.map(function (_a) {
|
|
215
|
+
}, height: 100, alt: "", onClick: function () { return handleSelectHumanType(human); } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", textAlign: "center" }, { children: human.name }))] }, human.humanToken)); }) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", flexWrap: "wrap", color: "disabled", mb: 3 }, { children: (virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail.desc) || ((_h = (_g = (_f = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.detail) === null || _f === void 0 ? void 0 : _f.interviewerShows) === null || _g === void 0 ? void 0 : _g[0]) === null || _h === void 0 ? void 0 : _h.desc) })), broadcastType !== 3 && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: "medium", mb: 2 }, { children: "\u5F15\u5BFC\u89C6\u9891\u64AD\u62A5\u5185\u5BB9" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.TextField, { multiline: true, error: (((_j = virtualMan === null || virtualMan === void 0 ? void 0 : virtualMan.guidanceText) === null || _j === void 0 ? void 0 : _j.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, onChange: handleGuidanceText, max: 300 })] }))] })), interviewRoomState.interactType === 1 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ fontSize: "14px", variant: "body1", fontWeight: 500, mt: 2, mb: 1 }, { children: "\u5F15\u5BFC\u89C6\u9891" })), (0, jsx_runtime_1.jsx)(styled_1.CustomUploadedImgRoot, { children: mediaList.map(function (_a) {
|
|
206
216
|
var videoUrl = _a.videoUrl, frameUrl = _a.frameUrl;
|
|
207
217
|
return ((0, jsx_runtime_1.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));
|
|
208
218
|
}) }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsxs)(styled_1.CustomUploadButtonRoot, { children: [mediaList.length <= 5 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Upload, __assign({}, uploadProps, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", disabled: mediaList.length > 5, color: "inherit", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.AddIcon, {}) }, { children: "\u4E0A\u4F20\u89C6\u9891" })) }))), mediaList.length > 5 && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", disabled: mediaList.length > 5, color: "inherit", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.AddIcon, {}) }, { children: "\u4E0A\u4F20\u89C6\u9891" })))] }), (0, jsx_runtime_1.jsx)(mui_1.Tooltip, __assign({ title: "\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", placement: "bottom-start" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoOutlineIcon, { sx: { color: 'rgba(0, 0, 0, 0.56)', fontSize: 16 } }) })) }))] }))] }))] })) })) }) })));
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
+
if (!m) return o;
|
|
16
|
+
var i = m.call(o), r, ar = [], e;
|
|
17
|
+
try {
|
|
18
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
+
}
|
|
20
|
+
catch (error) { e = { error: error }; }
|
|
21
|
+
finally {
|
|
22
|
+
try {
|
|
23
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
+
}
|
|
25
|
+
finally { if (e) throw e.error; }
|
|
26
|
+
}
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
34
|
+
var ScrollDialogContent_1 = __importDefault(require("../../../../components/ScrollDialogContent"));
|
|
35
|
+
var DialogActions_1 = __importDefault(require("@mui/material/DialogActions"));
|
|
36
|
+
var DialogContent_1 = __importDefault(require("@mui/material/DialogContent"));
|
|
37
|
+
var ai_question_1 = require("../../../../services/ai-question");
|
|
38
|
+
var question_model_store_1 = require("../../../../store/ai-question/question-model-store");
|
|
39
|
+
var fbm_icons_1 = require("fbm-icons");
|
|
40
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
41
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
42
|
+
var file_saver_1 = require("file-saver");
|
|
43
|
+
var react_1 = require("react");
|
|
44
|
+
var BootVideo = function (props) {
|
|
45
|
+
var open = props.open, onClose = props.onClose;
|
|
46
|
+
var addModel = (0, question_model_store_1.useQuestionModelStore)(function (store) { return [store.addModel]; }).addModel;
|
|
47
|
+
var _a = __read((0, react_1.useState)(0), 2), step = _a[0], setStep = _a[1];
|
|
48
|
+
var _b = __read((0, react_1.useState)(''), 2), fileName = _b[0], setFileName = _b[1];
|
|
49
|
+
var _c = __read((0, react_1.useState)({
|
|
50
|
+
countQuestion: 0,
|
|
51
|
+
countContent: 0,
|
|
52
|
+
steps: [],
|
|
53
|
+
}), 2), questionTemplate = _c[0], setQuestionTemplate = _c[1];
|
|
54
|
+
var handleOk = function () {
|
|
55
|
+
addModel(questionTemplate.steps);
|
|
56
|
+
onClose();
|
|
57
|
+
};
|
|
58
|
+
var handleQuestionImport = function (e) {
|
|
59
|
+
e.preventDefault();
|
|
60
|
+
var file = e.target.files[0];
|
|
61
|
+
console.log(file);
|
|
62
|
+
parseTemplate(file);
|
|
63
|
+
};
|
|
64
|
+
var dragQuestionImport = function (e) {
|
|
65
|
+
e.preventDefault();
|
|
66
|
+
var file = e.dataTransfer.files[0];
|
|
67
|
+
parseTemplate(file);
|
|
68
|
+
};
|
|
69
|
+
var parseTemplate = function (file) {
|
|
70
|
+
var formData = new FormData();
|
|
71
|
+
formData.append('files', file);
|
|
72
|
+
(0, ai_question_1.ParseQuestionTemplate)(formData)
|
|
73
|
+
.then(function (resp) {
|
|
74
|
+
setFileName(file.name);
|
|
75
|
+
// @ts-ignore
|
|
76
|
+
setQuestionTemplate(resp.data);
|
|
77
|
+
setStep(1);
|
|
78
|
+
})
|
|
79
|
+
.catch(console.log);
|
|
80
|
+
};
|
|
81
|
+
var handleDowloadTemplate = function () {
|
|
82
|
+
(0, ai_question_1.GetQuestionTemplate)()
|
|
83
|
+
.then(function (v) { return (0, file_saver_1.saveAs)(v.data, '试卷模板.xlsx'); })
|
|
84
|
+
.catch(function (e) { return fbm_ui_1.Message.error(e.toString()); });
|
|
85
|
+
};
|
|
86
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, header: null, footer: null, okText: "\u786E\u8BA4", onClose: onClose, onOk: handleOk, width: 588,
|
|
87
|
+
// @ts-ignore
|
|
88
|
+
sx: {
|
|
89
|
+
'& .MuiPaper-root>.MuiBox-root, .FuiDialog-content': {
|
|
90
|
+
padding: 0,
|
|
91
|
+
margin: 0,
|
|
92
|
+
},
|
|
93
|
+
} }, { children: (0, jsx_runtime_1.jsxs)(ScrollDialogContent_1.default, { children: [step === 0 && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ sx: { display: 'flex', justifyContent: 'space-between', width: '100%' } }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ bgcolor: "#E8F5E9", width: 228, flexGrow: 0, flexShrink: 0, pl: 4.5, pr: 2.75, pt: 11.25, height: 420 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h6" }, { children: "1. \u9009\u62E9\u6A21\u677F" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { marginTop: 24, marginBottom: 8 } }, { children: ["\u4F60\u53EF\u4EE5\u4E0B\u8F7D\u901A\u7528", (0, jsx_runtime_1.jsx)("br", {}), " Excel \u6A21\u677F\u6587\u4EF6"] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "contained", color: "primary", startIcon: (0, jsx_runtime_1.jsx)(fbm_icons_1.DownloadIcon, {}), onClick: handleDowloadTemplate }, { children: "\u4E0B\u8F7D\u901A\u7528\u6A21\u677F" }))] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flexGrow: 1, display: "flex", flexDirection: "column", alignItems: "flex-end" }, { children: [(0, jsx_runtime_1.jsx)(DialogContent_1.default, __assign({ sx: { boxSizing: 'border-box', width: '100%', py: 2 } }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mb: 3, mt: 3.5 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "h6" }, { children: "2. \u4E0A\u4F20\u586B\u5199\u5B8C\u6BD5\u7684Excel\u6587\u4EF6" })) })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mb: 4.75, height: 184, onDragOver: function (e) { return e.preventDefault(); }, onDrop: dragQuestionImport, sx: {
|
|
94
|
+
height: 166,
|
|
95
|
+
color: 'rgba(0, 0, 0, 0.6)',
|
|
96
|
+
border: '1px dashed #999999',
|
|
97
|
+
borderRadius: 0.5,
|
|
98
|
+
display: 'flex',
|
|
99
|
+
flexDirection: 'column',
|
|
100
|
+
justifyContent: 'center',
|
|
101
|
+
alignItems: 'center',
|
|
102
|
+
'& div': {
|
|
103
|
+
margin: '0.25rem',
|
|
104
|
+
},
|
|
105
|
+
} }, { children: [(0, jsx_runtime_1.jsx)("div", { children: "\u5C06\u586B\u597D\u540E\u7684.xlsx\u6587\u4EF6\u62D6\u62FD\u81F3\u6B64\u5904" }), (0, jsx_runtime_1.jsx)("div", { children: "\u6216" }), (0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Button, __assign({ variant: "outlined",
|
|
106
|
+
// @ts-ignore
|
|
107
|
+
component: "label" }, { children: ["\u6D4F\u89C8\u6587\u4EF6", (0, jsx_runtime_1.jsx)("input", { type: "file", name: "file", accept: ".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel", onChange: handleQuestionImport, style: { display: 'none' } })] })) })] }))] }) })), (0, jsx_runtime_1.jsxs)(DialogActions_1.default, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", onClick: onClose, color: "inherit" }, { children: "\u53D6\u6D88" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ disabled: true }, { children: "\u7EE7\u7EED" }))] })] }))] }))), step === 1 && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(mui_1.DialogTitle, { children: "Excel \u5BFC\u5165" }), (0, jsx_runtime_1.jsxs)(DialogContent_1.default, __assign({ sx: {
|
|
108
|
+
width: '100%',
|
|
109
|
+
boxSizing: 'border-box',
|
|
110
|
+
} }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "text.secondary", pb: 2, display: "block" }, { children: ["\u5F85\u5BFC\u5165", questionTemplate === null || questionTemplate === void 0 ? void 0 : questionTemplate.countQuestion, "\u9053\u9898\u76EE\uFF0C", questionTemplate === null || questionTemplate === void 0 ? void 0 : questionTemplate.countContent, "\u6761\u9762\u8BD5\u5185\u5BB9"] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(mui_1.Divider, {}), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", justifyContent: "space-between", py: 2.5 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_icons_1.DocumentIcon, {}), " ", (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: fileName })] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Button, __assign({ variant: "outlined",
|
|
111
|
+
// @ts-ignore
|
|
112
|
+
component: "label" }, { children: ["\u66FF\u6362\u6587\u4EF6", (0, jsx_runtime_1.jsx)("input", { type: "file", name: "file", accept: ".csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel", onChange: handleQuestionImport, style: { display: 'none' } })] })) })] })), (0, jsx_runtime_1.jsx)(mui_1.Divider, {})] })] })), (0, jsx_runtime_1.jsxs)(DialogActions_1.default, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", onClick: onClose, color: "inherit" }, { children: "\u53D6\u6D88" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "contained", color: "primary", onClick: handleOk }, { children: "\u5BFC\u5165" }))] })] }))] }) })));
|
|
113
|
+
};
|
|
114
|
+
exports.default = BootVideo;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CustomUploadCardRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
3
|
+
children?: import("react").ReactNode;
|
|
4
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const CustomUploadCardTitle: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
6
|
+
children?: import("react").ReactNode;
|
|
7
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
8
|
+
export declare const CustomUploadButtonRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
9
|
+
children?: import("react").ReactNode;
|
|
10
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
11
|
+
export declare const CustomUploadedImgRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
} & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomUploadedImgRoot = exports.CustomUploadButtonRoot = exports.CustomUploadCardTitle = exports.CustomUploadCardRoot = void 0;
|
|
4
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
5
|
+
exports.CustomUploadCardRoot = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
6
|
+
backgroundColor: '#fff',
|
|
7
|
+
border: '1px dashed #e0e0e0',
|
|
8
|
+
borderRadius: 4,
|
|
9
|
+
cursor: 'pointer',
|
|
10
|
+
height: 330,
|
|
11
|
+
width: 180,
|
|
12
|
+
margin: '0 auto',
|
|
13
|
+
display: 'flex',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
justifyContent: 'center',
|
|
16
|
+
flexDirection: 'column',
|
|
17
|
+
'&:hover': {
|
|
18
|
+
backgroundColor: 'rgba(75,176,81,.04)',
|
|
19
|
+
},
|
|
20
|
+
});
|
|
21
|
+
exports.CustomUploadCardTitle = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
22
|
+
display: 'flex',
|
|
23
|
+
alignItems: 'center',
|
|
24
|
+
justifyContent: 'center',
|
|
25
|
+
'& .MuiTypography-root': {
|
|
26
|
+
marginLeft: 8,
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
exports.CustomUploadButtonRoot = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
30
|
+
display: 'flex',
|
|
31
|
+
alignItems: 'center',
|
|
32
|
+
justifyContent: 'center',
|
|
33
|
+
margin: '8px 0',
|
|
34
|
+
});
|
|
35
|
+
exports.CustomUploadedImgRoot = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
36
|
+
minHeight: 100,
|
|
37
|
+
display: 'flex',
|
|
38
|
+
flexWrap: 'wrap',
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
padding: '8px 0',
|
|
41
|
+
boxSizing: 'content-box',
|
|
42
|
+
'& img, & div': {
|
|
43
|
+
boxSizing: 'border-box',
|
|
44
|
+
width: 56,
|
|
45
|
+
objectFit: 'cover',
|
|
46
|
+
// transition: 'all 0.3s ease 0s',
|
|
47
|
+
cursor: 'pointer',
|
|
48
|
+
border: '2px solid transparent',
|
|
49
|
+
borderRadius: 4,
|
|
50
|
+
marginRight: 4,
|
|
51
|
+
},
|
|
52
|
+
});
|