eli-video-interview 1.2.38 → 1.2.39-alpha.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/esm/components/react-photo-view/Photo.css +14 -0
  2. package/esm/components/react-photo-view/Photo.d.ts +18 -0
  3. package/esm/components/react-photo-view/Photo.js +54 -0
  4. package/esm/components/react-photo-view/PhotoBox.css +18 -0
  5. package/esm/components/react-photo-view/PhotoBox.d.ts +22 -0
  6. package/esm/components/react-photo-view/PhotoBox.js +302 -0
  7. package/esm/components/react-photo-view/PhotoPage.d.ts +9 -0
  8. package/esm/components/react-photo-view/PhotoPage.js +77 -0
  9. package/esm/components/react-photo-view/PhotoProvider.d.ts +14 -0
  10. package/esm/components/react-photo-view/PhotoProvider.js +98 -0
  11. package/esm/components/react-photo-view/PhotoSlider.css +125 -0
  12. package/esm/components/react-photo-view/PhotoSlider.d.ts +12 -0
  13. package/esm/components/react-photo-view/PhotoSlider.js +262 -0
  14. package/esm/components/react-photo-view/PhotoView.d.ts +30 -0
  15. package/esm/components/react-photo-view/PhotoView.js +48 -0
  16. package/esm/components/react-photo-view/components/ArrowLeft.d.ts +3 -0
  17. package/esm/components/react-photo-view/components/ArrowLeft.js +18 -0
  18. package/esm/components/react-photo-view/components/ArrowRight.d.ts +3 -0
  19. package/esm/components/react-photo-view/components/ArrowRight.js +18 -0
  20. package/esm/components/react-photo-view/components/CloseIcon.d.ts +3 -0
  21. package/esm/components/react-photo-view/components/CloseIcon.js +16 -0
  22. package/esm/components/react-photo-view/components/PreventScroll.d.ts +1 -0
  23. package/esm/components/react-photo-view/components/PreventScroll.js +12 -0
  24. package/esm/components/react-photo-view/components/SlidePortal.css +10 -0
  25. package/esm/components/react-photo-view/components/SlidePortal.d.ts +7 -0
  26. package/esm/components/react-photo-view/components/SlidePortal.js +30 -0
  27. package/esm/components/react-photo-view/components/Spinner.css +23 -0
  28. package/esm/components/react-photo-view/components/Spinner.d.ts +4 -0
  29. package/esm/components/react-photo-view/components/Spinner.js +29 -0
  30. package/esm/components/react-photo-view/hooks/useAdjacentImages.d.ts +5 -0
  31. package/esm/components/react-photo-view/hooks/useAdjacentImages.js +14 -0
  32. package/esm/components/react-photo-view/hooks/useAnimationOrigin.d.ts +6 -0
  33. package/esm/components/react-photo-view/hooks/useAnimationOrigin.js +72 -0
  34. package/esm/components/react-photo-view/hooks/useAnimationPosition.d.ts +2 -0
  35. package/esm/components/react-photo-view/hooks/useAnimationPosition.js +28 -0
  36. package/esm/components/react-photo-view/hooks/useAnimationVisible.d.ts +6 -0
  37. package/esm/components/react-photo-view/hooks/useAnimationVisible.js +49 -0
  38. package/esm/components/react-photo-view/hooks/useContinuousTap.d.ts +8 -0
  39. package/esm/components/react-photo-view/hooks/useContinuousTap.js +36 -0
  40. package/esm/components/react-photo-view/hooks/useDebounceCallback.d.ts +10 -0
  41. package/esm/components/react-photo-view/hooks/useDebounceCallback.js +48 -0
  42. package/esm/components/react-photo-view/hooks/useEventListener.d.ts +1 -0
  43. package/esm/components/react-photo-view/hooks/useEventListener.js +18 -0
  44. package/esm/components/react-photo-view/hooks/useForkedVariable.d.ts +5 -0
  45. package/esm/components/react-photo-view/hooks/useForkedVariable.js +17 -0
  46. package/esm/components/react-photo-view/hooks/useInitial.d.ts +1 -0
  47. package/esm/components/react-photo-view/hooks/useInitial.js +9 -0
  48. package/esm/components/react-photo-view/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  49. package/esm/components/react-photo-view/hooks/useIsomorphicLayoutEffect.js +3 -0
  50. package/esm/components/react-photo-view/hooks/useMethods.d.ts +4 -0
  51. package/esm/components/react-photo-view/hooks/useMethods.js +35 -0
  52. package/esm/components/react-photo-view/hooks/useMountedRef.d.ts +3 -0
  53. package/esm/components/react-photo-view/hooks/useMountedRef.js +12 -0
  54. package/esm/components/react-photo-view/hooks/useScrollPosition.d.ts +4 -0
  55. package/esm/components/react-photo-view/hooks/useScrollPosition.js +157 -0
  56. package/esm/components/react-photo-view/hooks/useSetState.d.ts +2 -0
  57. package/esm/components/react-photo-view/hooks/useSetState.js +15 -0
  58. package/esm/components/react-photo-view/hooks/useTargetScale.d.ts +4 -0
  59. package/esm/components/react-photo-view/hooks/useTargetScale.js +70 -0
  60. package/esm/components/react-photo-view/index.d.ts +4 -0
  61. package/esm/components/react-photo-view/index.js +4 -0
  62. package/esm/components/react-photo-view/photo-context.d.ts +11 -0
  63. package/esm/components/react-photo-view/photo-context.js +2 -0
  64. package/esm/components/react-photo-view/types.d.ts +196 -0
  65. package/esm/components/react-photo-view/types.js +1 -0
  66. package/esm/components/react-photo-view/utils/edgeHandle.d.ts +15 -0
  67. package/esm/components/react-photo-view/utils/edgeHandle.js +40 -0
  68. package/esm/components/react-photo-view/utils/getMultipleTouchPosition.d.ts +5 -0
  69. package/esm/components/react-photo-view/utils/getMultipleTouchPosition.js +11 -0
  70. package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.d.ts +9 -0
  71. package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.js +31 -0
  72. package/esm/components/react-photo-view/utils/getRotateSize.d.ts +4 -0
  73. package/esm/components/react-photo-view/utils/getRotateSize.js +11 -0
  74. package/esm/components/react-photo-view/utils/getSuitableImageSize.d.ts +10 -0
  75. package/esm/components/react-photo-view/utils/getSuitableImageSize.js +42 -0
  76. package/esm/components/react-photo-view/utils/isTouchDevice.d.ts +5 -0
  77. package/esm/components/react-photo-view/utils/isTouchDevice.js +5 -0
  78. package/esm/components/react-photo-view/utils/limitTarget.d.ts +5 -0
  79. package/esm/components/react-photo-view/utils/limitTarget.js +12 -0
  80. package/esm/components/react-photo-view/variables.d.ts +48 -0
  81. package/esm/components/react-photo-view/variables.js +48 -0
  82. package/esm/constants/ai-question.d.ts +1 -0
  83. package/esm/constants/ai-question.js +3 -2
  84. package/esm/modules/ai-question/components/BootVideo/index.js +1 -1
  85. package/esm/modules/ai-question/components/QuestionModel/Interactive.js +4 -2
  86. package/esm/modules/ai-question/components/QuestionModel/Item.js +11 -3
  87. package/esm/modules/ai-question/components/QuestionUpdate/const.js +2 -0
  88. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +2 -0
  89. package/esm/modules/ai-report/components/ScoreReport/Score.js +4 -1
  90. package/esm/modules/ai-report/components/VideoQuestion/BodyImages.d.ts +7 -0
  91. package/esm/modules/ai-report/components/VideoQuestion/BodyImages.js +40 -0
  92. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +3 -2
  93. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -0
  94. package/esm/modules/ai-report/components/VideoQuestion/styled.js +6 -0
  95. package/esm/modules/ai-report/interface.d.ts +11 -0
  96. package/lib/components/react-photo-view/Photo.css +14 -0
  97. package/lib/components/react-photo-view/Photo.d.ts +18 -0
  98. package/lib/components/react-photo-view/Photo.js +60 -0
  99. package/lib/components/react-photo-view/PhotoBox.css +18 -0
  100. package/lib/components/react-photo-view/PhotoBox.d.ts +22 -0
  101. package/lib/components/react-photo-view/PhotoBox.js +308 -0
  102. package/lib/components/react-photo-view/PhotoPage.d.ts +9 -0
  103. package/lib/components/react-photo-view/PhotoPage.js +79 -0
  104. package/lib/components/react-photo-view/PhotoProvider.d.ts +14 -0
  105. package/lib/components/react-photo-view/PhotoProvider.js +104 -0
  106. package/lib/components/react-photo-view/PhotoSlider.css +125 -0
  107. package/lib/components/react-photo-view/PhotoSlider.d.ts +12 -0
  108. package/lib/components/react-photo-view/PhotoSlider.js +268 -0
  109. package/lib/components/react-photo-view/PhotoView.d.ts +30 -0
  110. package/lib/components/react-photo-view/PhotoView.js +53 -0
  111. package/lib/components/react-photo-view/components/ArrowLeft.d.ts +3 -0
  112. package/lib/components/react-photo-view/components/ArrowLeft.js +20 -0
  113. package/lib/components/react-photo-view/components/ArrowRight.d.ts +3 -0
  114. package/lib/components/react-photo-view/components/ArrowRight.js +20 -0
  115. package/lib/components/react-photo-view/components/CloseIcon.d.ts +3 -0
  116. package/lib/components/react-photo-view/components/CloseIcon.js +18 -0
  117. package/lib/components/react-photo-view/components/PreventScroll.d.ts +1 -0
  118. package/lib/components/react-photo-view/components/PreventScroll.js +15 -0
  119. package/lib/components/react-photo-view/components/SlidePortal.css +10 -0
  120. package/lib/components/react-photo-view/components/SlidePortal.d.ts +7 -0
  121. package/lib/components/react-photo-view/components/SlidePortal.js +32 -0
  122. package/lib/components/react-photo-view/components/Spinner.css +23 -0
  123. package/lib/components/react-photo-view/components/Spinner.d.ts +4 -0
  124. package/lib/components/react-photo-view/components/Spinner.js +31 -0
  125. package/lib/components/react-photo-view/hooks/useAdjacentImages.d.ts +5 -0
  126. package/lib/components/react-photo-view/hooks/useAdjacentImages.js +17 -0
  127. package/lib/components/react-photo-view/hooks/useAnimationOrigin.d.ts +6 -0
  128. package/lib/components/react-photo-view/hooks/useAnimationOrigin.js +78 -0
  129. package/lib/components/react-photo-view/hooks/useAnimationPosition.d.ts +2 -0
  130. package/lib/components/react-photo-view/hooks/useAnimationPosition.js +34 -0
  131. package/lib/components/react-photo-view/hooks/useAnimationVisible.d.ts +6 -0
  132. package/lib/components/react-photo-view/hooks/useAnimationVisible.js +55 -0
  133. package/lib/components/react-photo-view/hooks/useContinuousTap.d.ts +8 -0
  134. package/lib/components/react-photo-view/hooks/useContinuousTap.js +42 -0
  135. package/lib/components/react-photo-view/hooks/useDebounceCallback.d.ts +10 -0
  136. package/lib/components/react-photo-view/hooks/useDebounceCallback.js +51 -0
  137. package/lib/components/react-photo-view/hooks/useEventListener.d.ts +1 -0
  138. package/lib/components/react-photo-view/hooks/useEventListener.js +21 -0
  139. package/lib/components/react-photo-view/hooks/useForkedVariable.d.ts +5 -0
  140. package/lib/components/react-photo-view/hooks/useForkedVariable.js +20 -0
  141. package/lib/components/react-photo-view/hooks/useInitial.d.ts +1 -0
  142. package/lib/components/react-photo-view/hooks/useInitial.js +12 -0
  143. package/lib/components/react-photo-view/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  144. package/lib/components/react-photo-view/hooks/useIsomorphicLayoutEffect.js +5 -0
  145. package/lib/components/react-photo-view/hooks/useMethods.d.ts +4 -0
  146. package/lib/components/react-photo-view/hooks/useMethods.js +38 -0
  147. package/lib/components/react-photo-view/hooks/useMountedRef.d.ts +3 -0
  148. package/lib/components/react-photo-view/hooks/useMountedRef.js +14 -0
  149. package/lib/components/react-photo-view/hooks/useScrollPosition.d.ts +4 -0
  150. package/lib/components/react-photo-view/hooks/useScrollPosition.js +163 -0
  151. package/lib/components/react-photo-view/hooks/useSetState.d.ts +2 -0
  152. package/lib/components/react-photo-view/hooks/useSetState.js +18 -0
  153. package/lib/components/react-photo-view/hooks/useTargetScale.d.ts +4 -0
  154. package/lib/components/react-photo-view/hooks/useTargetScale.js +76 -0
  155. package/lib/components/react-photo-view/index.d.ts +4 -0
  156. package/lib/components/react-photo-view/index.js +12 -0
  157. package/lib/components/react-photo-view/photo-context.d.ts +11 -0
  158. package/lib/components/react-photo-view/photo-context.js +4 -0
  159. package/lib/components/react-photo-view/types.d.ts +196 -0
  160. package/lib/components/react-photo-view/types.js +2 -0
  161. package/lib/components/react-photo-view/utils/edgeHandle.d.ts +15 -0
  162. package/lib/components/react-photo-view/utils/edgeHandle.js +45 -0
  163. package/lib/components/react-photo-view/utils/getMultipleTouchPosition.d.ts +5 -0
  164. package/lib/components/react-photo-view/utils/getMultipleTouchPosition.js +14 -0
  165. package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.d.ts +9 -0
  166. package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.js +34 -0
  167. package/lib/components/react-photo-view/utils/getRotateSize.d.ts +4 -0
  168. package/lib/components/react-photo-view/utils/getRotateSize.js +14 -0
  169. package/lib/components/react-photo-view/utils/getSuitableImageSize.d.ts +10 -0
  170. package/lib/components/react-photo-view/utils/getSuitableImageSize.js +48 -0
  171. package/lib/components/react-photo-view/utils/isTouchDevice.d.ts +5 -0
  172. package/lib/components/react-photo-view/utils/isTouchDevice.js +7 -0
  173. package/lib/components/react-photo-view/utils/limitTarget.d.ts +5 -0
  174. package/lib/components/react-photo-view/utils/limitTarget.js +17 -0
  175. package/lib/components/react-photo-view/variables.d.ts +48 -0
  176. package/lib/components/react-photo-view/variables.js +51 -0
  177. package/lib/constants/ai-question.d.ts +1 -0
  178. package/lib/constants/ai-question.js +4 -3
  179. package/lib/modules/ai-question/components/BootVideo/index.js +1 -1
  180. package/lib/modules/ai-question/components/QuestionModel/Interactive.js +4 -2
  181. package/lib/modules/ai-question/components/QuestionModel/Item.js +11 -3
  182. package/lib/modules/ai-question/components/QuestionUpdate/const.js +2 -0
  183. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +2 -0
  184. package/lib/modules/ai-report/components/ScoreReport/Score.js +4 -1
  185. package/lib/modules/ai-report/components/VideoQuestion/BodyImages.d.ts +7 -0
  186. package/lib/modules/ai-report/components/VideoQuestion/BodyImages.js +45 -0
  187. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +3 -2
  188. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -0
  189. package/lib/modules/ai-report/components/VideoQuestion/styled.js +7 -1
  190. package/lib/modules/ai-report/interface.d.ts +11 -0
  191. package/package.json +2 -2
  192. package/lib/modules/ai-ability-select/components/AiAbilityList/styled.d.ts +0 -0
  193. package/lib/modules/ai-ability-select/components/AiAbilityList/styled.js +0 -1
@@ -22,7 +22,9 @@ var Interactive = function () {
22
22
  var questionModelData = useQuestionModelStore().questionModelData;
23
23
  var _c = useInterviewRoomStore(), interactType = _c.interactType, aiInterviewerProfile = _c.aiInterviewerProfile;
24
24
  var _d = useState(false), bootVideoOpen = _d[0], setBootVideoOpen = _d[1];
25
- return (_jsxs(_Fragment, { children: [bootVideoOpen && _jsx(BootVideo, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", component: Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [_jsxs(Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(InteractiveModes[interactType]), interactType === 2 && (_jsxs(_Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), ((_a = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) &&
26
- (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanToken) === ((_b = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _b === void 0 ? void 0 : _b.humanToken) && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 ? (_jsx(CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] }))] })), _jsx(Button, __assign({ icon: _jsx(VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
25
+ var ShowVideoStatus = (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanType) === 2 &&
26
+ ((_a = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) &&
27
+ (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanToken) === ((_b = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _b === void 0 ? void 0 : _b.humanToken);
28
+ return (_jsxs(_Fragment, { children: [bootVideoOpen && _jsx(BootVideo, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", component: Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [_jsxs(Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(InteractiveModes[interactType]), interactType === 2 && (_jsxs(_Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), ShowVideoStatus && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 ? (_jsx(CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] }))] })), _jsx(Button, __assign({ icon: _jsx(VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
27
29
  };
28
30
  export default Interactive;
@@ -21,6 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
24
+ import { useInterviewRoomStore } from "../../../../store/ai-question/interview-room-store";
24
25
  import { DISABLED_REPEAT_TYPE, IS_AI_ANALYSIS, TEST_TYPE_READONLY } from "../../../../constants/ai-question";
25
26
  import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
26
27
  import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
@@ -29,10 +30,11 @@ import { Box, Chip, confirm, DeleteIcon, DragIndicatorIcon, EditIcon, IconButton
29
30
  import { Paper, Stack } from 'fbm-ui/lib/mui';
30
31
  import { memo, useCallback, useMemo } from 'react';
31
32
  var QuestionModelListItem = function (props) {
33
+ var _a = useInterviewRoomStore(), interactType = _a.interactType, aiInterviewerProfile = _a.aiInterviewerProfile;
32
34
  var index = props.index, disabledWeight = props.disabledWeight, steps = props.steps, step = __rest(props, ["index", "disabledWeight", "steps"]);
33
- var token = step.token, name = step.name, questions = step.questions, duration = step.duration, weight = step.weight, type = step.type, aiShowType = step.aiShowType, aiType = step.aiType, answerStatus = step.answerStatus, category = step.category;
35
+ var token = step.token, name = step.name, questions = step.questions, duration = step.duration, weight = step.weight, type = step.type, aiShowType = step.aiShowType, aiType = step.aiType, answerStatus = step.answerStatus, category = step.category, isOpenAIFollowUp = step.isOpenAIFollowUp, enableScoreOptimization = step.enableScoreOptimization;
34
36
  var isAiAnalysis = IS_AI_ANALYSIS(step);
35
- var _a = useQuestionModelStore(), editModel = _a.editModel, removeModel = _a.removeModel, updateModelWeight = _a.updateModelWeight;
37
+ var _b = useQuestionModelStore(), editModel = _b.editModel, removeModel = _b.removeModel, updateModelWeight = _b.updateModelWeight;
36
38
  var updateQuestionState = useUpdateQuestionStore().updateQuestionState;
37
39
  var handleEdit = useCallback(function () {
38
40
  updateQuestionState({ open: true, token: token, index: index, aiShowType: aiShowType, item: step });
@@ -66,6 +68,12 @@ var QuestionModelListItem = function (props) {
66
68
  var handleAnswerStatus = useCallback(function () {
67
69
  editModel(__assign(__assign({}, step), { answerStatus: answerStatus === 2 ? 1 : 2 }), index);
68
70
  }, [editModel, answerStatus, step, index]);
71
+ var handleOpenAIFollowUpStatus = useCallback(function () {
72
+ editModel(__assign(__assign({}, step), { isOpenAIFollowUp: !isOpenAIFollowUp }), index);
73
+ }, [editModel, isOpenAIFollowUp, step, index]);
74
+ var handleEnableScoreOptimizationStatus = useCallback(function () {
75
+ editModel(__assign(__assign({}, step), { enableScoreOptimization: !enableScoreOptimization }), index);
76
+ }, [editModel, enableScoreOptimization, step, index]);
69
77
  var formatQuestion = useMemo(function () {
70
78
  if ((questions === null || questions === void 0 ? void 0 : questions.length) > 1) {
71
79
  return (_jsxs(Stack, __assign({ direction: "row", spacing: 1 }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "#F5C441", flexShrink: 0, fontWeight: 500 }, { children: "[\u5185\u5BB9\u968F\u673A]" })), _jsx(Stack, __assign({ spacing: 1 }, { children: questions.map(function (v, index) { return (_jsxs(Typography, __assign({ variant: "body2", color: "text.secondary" }, { children: ["\u2022\u00A0", v.content] }), index)); }) }))] })));
@@ -74,6 +82,6 @@ var QuestionModelListItem = function (props) {
74
82
  }, [questions]);
75
83
  return (_jsxs(Paper, __assign({ variant: "outlined", sx: { display: 'block', mt: 2 } }, { children: [_jsxs(Box, __assign({ display: "flex", borderBottom: !DISABLED_REPEAT_TYPE.includes(type) || isAiAnalysis ? '1px solid rgba(0, 0, 0, 0.08)' : 'none' }, { children: [_jsx(Box, __assign({ width: 40, display: "flex", alignItems: "center", justifyContent: "center", sx: { cursor: 'move' } }, { children: _jsx(DragIndicatorIcon, { className: "dragHandle" }) })), _jsxs(Box, __assign({ flex: "1 0", padding: "16px 0" }, { children: [_jsxs(Box, __assign({ display: "flex", justifyContent: "space-between" }, { children: [_jsxs(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "subtitle1" }, { children: name })), category === null || category === void 0 ? void 0 : category.map(function (label) {
76
84
  return label && (_jsx(Tooltip, __assign({ title: "".concat(label), placement: "bottom" }, { children: _jsx(Chip, { color: "default", label: label, size: "medium", sx: { ml: 1, maxWidth: '158px', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis' } }, label) })));
77
- }), aiType === 2 && _jsx(Chip, { variant: "filled", color: "primary", label: "AI\u8BC4\u5206", size: "medium", sx: { ml: 1 } })] })), _jsxs(Box, __assign({ width: 62, mr: 1, textAlign: "right" }, { children: [!TEST_TYPE_READONLY.includes(type) && (_jsx(IconButton, __assign({ size: "small", onClick: handleEdit }, { children: _jsx(EditIcon, {}) }))), _jsx(IconButton, __assign({ size: "small", onClick: handleRemove }, { children: _jsx(DeleteIcon, {}) }))] }))] })), _jsxs(Box, __assign({ mt: 1, pr: 2, display: "flex", alignItems: "center", justifyContent: "space-between" }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary" }, { children: formatQuestion })), _jsxs(Typography, __assign({ sx: { ml: 2, flexShrink: 0 }, variant: "caption", color: "secondary", alignSelf: "flex-end" }, { children: ["\u56DE\u7B54\u65F6\u957F:\u00A0", getSecondToTime(Number(duration))] }))] }))] }))] })), (!DISABLED_REPEAT_TYPE.includes(type) || isAiAnalysis) && (_jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", spacing: 1, height: 42 }, { children: [_jsx(Box, __assign({ display: "flex", alignItems: "center", padding: "3px 0 3px 40px" }, { children: isAiAnalysis && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: "\u6743\u91CD\u5360\u6BD4\uFF1A" })), _jsx(Input, { sx: { width: 92 }, size: "small", value: weight, endAdornment: _jsx(Typography, __assign({ variant: "caption", color: "textSecondary" }, { children: "%" })), disabled: disabledWeight, onChange: handleWeightChange, onBlur: handleWeightBlur }), _jsx(Tooltip, __assign({ title: "AI\u6D4B\u8BC4\u9898\u53EF\u4EE5\u8BBE\u7F6E\u6743\u91CD\uFF0C\u7CFB\u7EDF\u5BF9\u5019\u9009\u4EBA\u89C6\u9891\u9762\u8BD5\u7ED3\u679C\u4F1A\u52A0\u5165\u6743\u91CD\u8FDB\u884C\u8BA1\u7B97\uFF0C\u5F97\u51FAAI\u89C6\u9891\u9762\u8BD5\u5F97\u5206\u3002\u8BBE\u7F6E\u540E5\u5206\u949F\u8D77\u6548" }, { children: _jsx("span", __assign({ style: { display: 'flex', alignItems: 'center', marginLeft: '8px' } }, { children: _jsx(InfoIcon, { sx: { fontSize: 14, color: 'rgba(0, 0, 0, 0.26)' } }) })) }))] })) })), !DISABLED_REPEAT_TYPE.includes(type) && (_jsx(Stack, __assign({ direction: "row" }, { children: _jsx(Switch, { sx: { flexShrink: 0, ml: 2, mr: 2 }, size: "small", checked: answerStatus === 1, label: _jsx(Typography, __assign({ fontSize: 12, lineHeight: 1.5, color: "rgba(0, 0, 0, 0.56)" }, { children: "\u5141\u8BB8\u91CD\u590D\u7B54\u9898" })), onChange: handleAnswerStatus }) })))] })))] })));
85
+ }), aiType === 2 && _jsx(Chip, { variant: "filled", color: "primary", label: "AI\u8BC4\u5206", size: "medium", sx: { ml: 1 } })] })), _jsxs(Box, __assign({ width: 62, mr: 1, textAlign: "right" }, { children: [!TEST_TYPE_READONLY.includes(type) && (_jsx(IconButton, __assign({ size: "small", onClick: handleEdit }, { children: _jsx(EditIcon, {}) }))), _jsx(IconButton, __assign({ size: "small", onClick: handleRemove }, { children: _jsx(DeleteIcon, {}) }))] }))] })), _jsxs(Box, __assign({ mt: 1, pr: 2, display: "flex", alignItems: "center", justifyContent: "space-between" }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary" }, { children: formatQuestion })), _jsxs(Typography, __assign({ sx: { ml: 2, flexShrink: 0 }, variant: "caption", color: "secondary", alignSelf: "flex-end" }, { children: ["\u56DE\u7B54\u65F6\u957F:\u00A0", getSecondToTime(Number(duration))] }))] }))] }))] })), (!DISABLED_REPEAT_TYPE.includes(type) || isAiAnalysis) && (_jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", spacing: 1, height: 42 }, { children: [_jsx(Box, __assign({ display: "flex", alignItems: "center", padding: "3px 0 3px 40px" }, { children: isAiAnalysis && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: "\u6743\u91CD\u5360\u6BD4\uFF1A" })), _jsx(Input, { sx: { width: 92 }, size: "small", value: weight, endAdornment: _jsx(Typography, __assign({ variant: "caption", color: "textSecondary" }, { children: "%" })), disabled: disabledWeight, onChange: handleWeightChange, onBlur: handleWeightBlur }), _jsx(Tooltip, __assign({ title: "AI\u6D4B\u8BC4\u9898\u53EF\u4EE5\u8BBE\u7F6E\u6743\u91CD\uFF0C\u7CFB\u7EDF\u5BF9\u5019\u9009\u4EBA\u89C6\u9891\u9762\u8BD5\u7ED3\u679C\u4F1A\u52A0\u5165\u6743\u91CD\u8FDB\u884C\u8BA1\u7B97\uFF0C\u5F97\u51FAAI\u89C6\u9891\u9762\u8BD5\u5F97\u5206\u3002\u8BBE\u7F6E\u540E5\u5206\u949F\u8D77\u6548" }, { children: _jsx("span", __assign({ style: { display: 'flex', alignItems: 'center', marginLeft: '8px' } }, { children: _jsx(InfoIcon, { sx: { fontSize: 14, color: 'rgba(0, 0, 0, 0.26)' } }) })) }))] })) })), !DISABLED_REPEAT_TYPE.includes(type) && (_jsxs(Stack, __assign({ direction: "row" }, { children: [_jsx(Switch, { sx: { flexShrink: 0, ml: 2, mr: 2 }, size: "small", checked: answerStatus === 1, label: _jsx(Typography, __assign({ fontSize: 12, lineHeight: 1.5, color: "rgba(0, 0, 0, 0.56)" }, { children: "\u5141\u8BB8\u91CD\u590D\u7B54\u9898" })), onChange: handleAnswerStatus }), type === 1 && aiShowType === 1 && ((aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanType) !== 2 || interactType === 1) && (_jsx(Switch, { sx: { flexShrink: 0, ml: 2, mr: 2 }, size: "small", checked: isOpenAIFollowUp, label: _jsx(Typography, __assign({ fontSize: 12, lineHeight: 1.5, color: "rgba(0, 0, 0, 0.56)" }, { children: "\u5019\u9009\u4EBA\u56DE\u7B54\u4E0D\u5145\u5206\u65F6\u8FFD\u95EE" })), onChange: handleOpenAIFollowUpStatus }))] })))] })))] })));
78
86
  };
79
87
  export default memo(QuestionModelListItem);
@@ -27,6 +27,8 @@ export var defaultQuestionParams = {
27
27
  weight: 0,
28
28
  token: '',
29
29
  originToken: '',
30
+ isOpenAIFollowUp: false,
31
+ enableScoreOptimization: false,
30
32
  };
31
33
  // 播报方式
32
34
  export var broadcastModeOptions = [
@@ -20,6 +20,8 @@ export interface QuestionParams {
20
20
  minResponseDuration?: number;
21
21
  category?: string[];
22
22
  extra: BaseExtraParams;
23
+ isOpenAIFollowUp: boolean;
24
+ enableScoreOptimization: boolean;
23
25
  broadcastType: number;
24
26
  aiSwitch?: number;
25
27
  aiType: number;
@@ -29,9 +29,12 @@ var Score = function (_a) {
29
29
  if (typeof customScore === 'number' && customScore > -1) {
30
30
  setScore(customScore);
31
31
  }
32
+ else {
33
+ setScore(score || 0);
34
+ }
32
35
  if (!loading)
33
36
  setOpenRefresh(false);
34
- }, [loading, customScore]);
37
+ }, [loading, customScore, score]);
35
38
  var content = (_jsxs(Box, __assign({ padding: 2 }, { children: [_jsx(Typography, __assign({ variant: "body1", color: "secondary" }, { children: "\u5237\u65B0\u540E\u5C06\u6309\u6700\u65B0\u7B97\u5206\u89C4\u5219\u8BA1\u7B97\uFF0C\u662F\u5426\u786E\u8BA4\u5237\u65B0" })), _jsx(Box, __assign({ paddingTop: 1, textAlign: "right" }, { children: _jsx(Button, __assign({ loading: loading, onClick: onRefresh }, { children: "\u5237\u65B0" })) }))] })));
36
39
  return (_jsxs(Box, __assign({ display: "flex", sx: { padding: '24px' } }, { children: [_jsx(RankingRange, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), _jsxs(Box, __assign({ flex: "1 0" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsxs(ScoreTypography, { children: [formatScore(feScore || 0), _jsx(ScoreUnitTypography, __assign({ variant: "caption" }, { children: "\u5206" }))] }), _jsx(Box, __assign({ width: 50, height: 50 }, { children: !!feScore && feScore >= 80 && _jsx("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/recommended.svg", alt: "" }) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && (_jsx(Button, __assign({ variant: "outlined", size: "small", icon: _jsx(DownloadIcon, {}), sx: { ml: 1 }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })), _jsxs(Box, __assign({ display: "flex", alignItems: "center", mt: 1 }, { 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, { onClick: function () { return setOpenRefresh(true); } }) }))), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", 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(Button, __assign({ variant: "text", size: "small", sx: { textDecoration: 'underline' }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] }))] })), _jsx(Box, __assign({ width: 200 }, { children: _jsx(Bar, {}) }))] })));
37
40
  };
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import '@components/react-photo-view/Photo';
3
+ import '@components/react-photo-view/PhotoSlider';
4
+ declare const BodyImages: ({ reviewImgs }: {
5
+ reviewImgs: any;
6
+ }) => JSX.Element;
7
+ export default BodyImages;
@@ -0,0 +1,40 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import { Image } from './styled';
14
+ import { PhotoSlider } from "../../../../components/react-photo-view";
15
+ import "../../../../components/react-photo-view/Photo";
16
+ import PhotoPage from "../../../../components/react-photo-view/PhotoPage";
17
+ import "../../../../components/react-photo-view/PhotoSlider";
18
+ import { Box, Typography } from 'fbm-ui';
19
+ import { Stack } from 'fbm-ui/lib/mui';
20
+ import { useCallback, useState } from 'react';
21
+ var BodyImages = function (_a) {
22
+ var reviewImgs = _a.reviewImgs;
23
+ var _b = useState(false), visible = _b[0], setVisible = _b[1];
24
+ var _c = useState(0), index = _c[0], setIndex = _c[1];
25
+ var handleSelected = useCallback(function (_, i) {
26
+ setIndex(i);
27
+ setVisible(true);
28
+ }, []);
29
+ return (_jsxs(_Fragment, { children: [_jsx(Stack, __assign({ spacing: 2, direction: "row" }, { children: reviewImgs === null || reviewImgs === void 0 ? void 0 : reviewImgs.map(function (_a, i) {
30
+ var url = _a.url, title = _a.title;
31
+ return (_jsxs(Stack, __assign({ spacing: 0.5, onClick: function () {
32
+ setIndex(i);
33
+ setVisible(true);
34
+ } }, { children: [_jsx(Image, { src: url, alt: "" }), _jsx(Typography, __assign({ variant: "caption", color: "textSecondary", textAlign: "center" }, { children: title }))] }), url));
35
+ }) })), _jsx(PhotoSlider, { maskOpacity: 0.56, visible: visible, onClose: function () { return setVisible(false); }, index: index, onIndexChange: setIndex, images: reviewImgs === null || reviewImgs === void 0 ? void 0 : reviewImgs.map(function (item) { return ({ src: item.url, key: item.url, title: item === null || item === void 0 ? void 0 : item.title }); }), overlayRender: function (_a) {
36
+ var images = _a.images, index = _a.index;
37
+ return (_jsx(Box, __assign({ sx: { width: 1, position: 'absolute', bottom: 0, zIndex: 50 } }, { children: _jsx(PhotoPage, { onSelected: handleSelected, images: images, index: index }) })));
38
+ } })] }));
39
+ };
40
+ export default BodyImages;
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
13
  import Abilities from './Abilities';
14
+ import BodyImages from './BodyImages';
14
15
  import ScoreSlider from './ScoreSlider';
15
16
  import { QuestionDesc } from './styled';
16
17
  import { QUESTION_TYPE } from "../../../../enum/ai-question";
@@ -25,7 +26,7 @@ import update from 'immutability-helper';
25
26
  import { useCallback, useMemo, useState } from 'react';
26
27
  var STEP_NO_ANSWER = INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
27
28
  var QuestionItem = function (props) {
28
- var token = props.token, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
29
+ var token = props.token, reviewImgs = props.reviewImgs, followupQuestion = props.followupQuestion, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
29
30
  var _d = useState(false), showAbilities = _d[0], setShowAbilities = _d[1];
30
31
  var _e = useAiReportStore(function (store) { return [store.reportResult, store.stepToken, store.operableButtons, store.showAbilitiesDetails]; }), reportResult = _e.reportResult, stepToken = _e.stepToken, operableButtons = _e.operableButtons, showAbilitiesDetails = _e.showAbilitiesDetails, updateState = _e.updateState, updateReportResult = _e.updateReportResult, onScoreChange = _e.onScoreChange, onStepChange = _e.onStepChange;
31
32
  var steps = (reportResult || {}).steps;
@@ -86,6 +87,6 @@ var QuestionItem = function (props) {
86
87
  mt: 2,
87
88
  cursor: videoUrl ? 'pointer' : 'inherit',
88
89
  borderColor: token === stepToken ? theme.palette.primary.main : '',
89
- }, variant: "outlined", onClick: handleClickItem }, { children: [_jsxs(Typography, __assign({ fontSize: 14, color: token === stepToken ? theme.palette.primary.main : theme.palette.text.primary }, { children: [index + 1, ".", desc] })), _jsxs(QuestionDesc, { children: [_jsx(FormatQuoteIcon, {}), status === STEP_IN_CALCULATION ? (_jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : (_jsxs(_Fragment, { children: [_jsx(Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && (_jsxs(Box, { children: [_jsx("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), isExistWeight && status === STEP_COMPLETED && (_jsxs(Box, __assign({ mt: 2, display: "flex" }, { children: [_jsxs(Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && _jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [_jsx(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && (_jsxs(_Fragment, { children: [_jsx(ScoreSlider, { originScore: originScore, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && (_jsx(Button, __assign({ variant: "text", style: { whiteSpace: 'nowrap' }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), _jsx(Box, __assign({ width: 150, textAlign: "right" }, { children: _jsxs(Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && _jsx(Abilities, { stepIndex: index })] }), token));
90
+ }, variant: "outlined", onClick: handleClickItem }, { children: [_jsxs(Typography, __assign({ fontSize: 14, color: token === stepToken ? theme.palette.primary.main : theme.palette.text.primary }, { children: [index + 1, ".", desc] })), _jsxs(QuestionDesc, { children: [_jsx(BodyImages, { reviewImgs: reviewImgs }), _jsx(FormatQuoteIcon, {}), status === STEP_IN_CALCULATION ? (_jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : (_jsxs(_Fragment, { children: [_jsx(Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && (_jsxs(Box, { children: [_jsx("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), followupQuestion && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ mt: 1, fontSize: 14, color: token === stepToken ? theme.palette.primary.main : theme.palette.text.primary }, { children: "\u8FFD\u95EE\uFF1A".concat(followupQuestion === null || followupQuestion === void 0 ? void 0 : followupQuestion.desc) })), _jsxs(QuestionDesc, { children: [_jsx(FormatQuoteIcon, {}), _jsx(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: followupQuestion === null || followupQuestion === void 0 ? void 0 : followupQuestion.answer }))] })] })), isExistWeight && status === STEP_COMPLETED && (_jsxs(Box, __assign({ mt: 2, display: "flex" }, { children: [_jsxs(Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && _jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [_jsx(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && (_jsxs(_Fragment, { children: [_jsx(ScoreSlider, { originScore: originScore, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && (_jsx(Button, __assign({ variant: "text", style: { whiteSpace: 'nowrap' }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), _jsx(Box, __assign({ width: 150, textAlign: "right" }, { children: _jsxs(Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && _jsx(Abilities, { stepIndex: index })] }), token));
90
91
  };
91
92
  export default QuestionItem;
@@ -69,3 +69,4 @@ export declare const AiScoreRoot: import("@emotion/styled").StyledComponent<impo
69
69
  export declare const RankingRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
70
70
  children?: import("react").ReactNode;
71
71
  } & import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
72
+ export declare const Image: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -89,3 +89,9 @@ export var RankingRoot = styled(Box)({
89
89
  boxShadow: '0px 0px 4px 0px rgba(0 0 0 / 50%)',
90
90
  },
91
91
  });
92
+ export var Image = styled('img')({
93
+ width: 48,
94
+ height: 84,
95
+ borderRadius: 4,
96
+ objectFit: 'contain',
97
+ });
@@ -89,6 +89,15 @@ export interface Suggestion {
89
89
  show: boolean;
90
90
  abilitys: SuggestionAbility[];
91
91
  }
92
+ export interface ReviewImg {
93
+ url: string;
94
+ step: number;
95
+ title: string;
96
+ }
97
+ export interface FollowupQuestion {
98
+ desc: string;
99
+ answer: string;
100
+ }
92
101
  export interface AiInterviewReportStep {
93
102
  token: string;
94
103
  status: number;
@@ -96,6 +105,8 @@ export interface AiInterviewReportStep {
96
105
  answer: Answer;
97
106
  scoreInfo: ScoreInfo;
98
107
  aiEvaluation: AiEvaluation;
108
+ reviewImgs: ReviewImg[];
109
+ followupQuestion?: FollowupQuestion;
99
110
  }
100
111
  export interface FaceAnalysis {
101
112
  age: number;
@@ -0,0 +1,14 @@
1
+ .PhotoView__Photo {
2
+ max-width: initial;
3
+ cursor: grab;
4
+ }
5
+ .PhotoView__Photo:active {
6
+ cursor: grabbing;
7
+ }
8
+ .PhotoView__icon {
9
+ position: absolute;
10
+ top: 0;
11
+ left: 0;
12
+ display: inline-block;
13
+ transform: translate(-50%, -50%);
14
+ }
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import './Photo.css';
3
+ import type { BrokenElementParams } from './types';
4
+ export interface IPhotoLoadedParams {
5
+ loaded?: boolean;
6
+ naturalWidth?: number;
7
+ naturalHeight?: number;
8
+ broken?: boolean;
9
+ }
10
+ export interface IPhotoProps extends React.HTMLAttributes<HTMLElement> {
11
+ src: string;
12
+ loaded: boolean;
13
+ broken: boolean;
14
+ onPhotoLoad: (params: IPhotoLoadedParams) => void;
15
+ loadingElement?: JSX.Element;
16
+ brokenElement?: JSX.Element | ((photoProps: BrokenElementParams) => JSX.Element);
17
+ }
18
+ export default function Photo({ src, loaded, broken, className, onPhotoLoad, loadingElement, brokenElement, ...restProps }: IPhotoProps): JSX.Element | null;
@@ -0,0 +1,60 @@
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 __rest = (this && this.__rest) || function (s, e) {
14
+ var t = {};
15
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
+ t[p] = s[p];
17
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
+ t[p[i]] = s[p[i]];
21
+ }
22
+ return t;
23
+ };
24
+ var __importDefault = (this && this.__importDefault) || function (mod) {
25
+ return (mod && mod.__esModule) ? mod : { "default": mod };
26
+ };
27
+ Object.defineProperty(exports, "__esModule", { value: true });
28
+ var jsx_runtime_1 = require("react/jsx-runtime");
29
+ var Spinner_1 = __importDefault(require("./components/Spinner"));
30
+ var useMountedRef_1 = __importDefault(require("./hooks/useMountedRef"));
31
+ require("./Photo.css");
32
+ function Photo(_a) {
33
+ var src = _a.src, loaded = _a.loaded, broken = _a.broken, className = _a.className, onPhotoLoad = _a.onPhotoLoad, loadingElement = _a.loadingElement, brokenElement = _a.brokenElement, restProps = __rest(_a, ["src", "loaded", "broken", "className", "onPhotoLoad", "loadingElement", "brokenElement"]);
34
+ var mountedRef = (0, useMountedRef_1.default)();
35
+ function handleImageLoaded(e) {
36
+ var _a = e.target, naturalWidth = _a.naturalWidth, naturalHeight = _a.naturalHeight;
37
+ if (mountedRef.current) {
38
+ onPhotoLoad({
39
+ loaded: true,
40
+ naturalWidth: naturalWidth,
41
+ naturalHeight: naturalHeight,
42
+ });
43
+ }
44
+ }
45
+ function handleImageBroken() {
46
+ if (mountedRef.current) {
47
+ onPhotoLoad({
48
+ broken: true,
49
+ });
50
+ }
51
+ }
52
+ if (src && !broken) {
53
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("img", __assign({ className: "PhotoView__Photo".concat(className ? " ".concat(className) : ''), src: src, onLoad: handleImageLoaded, onError: handleImageBroken, alt: "" }, restProps)), !loaded && ((0, jsx_runtime_1.jsx)("span", __assign({ className: "PhotoView__icon" }, { children: loadingElement })) || (0, jsx_runtime_1.jsx)(Spinner_1.default, { className: "PhotoView__icon" }))] }));
54
+ }
55
+ if (brokenElement) {
56
+ return (0, jsx_runtime_1.jsx)("span", __assign({ className: "PhotoView__icon" }, { children: typeof brokenElement === 'function' ? brokenElement({ src: src }) : brokenElement }));
57
+ }
58
+ return null;
59
+ }
60
+ exports.default = Photo;
@@ -0,0 +1,18 @@
1
+ .PhotoView__PhotoWrap,
2
+ .PhotoView__PhotoBox {
3
+ position: absolute;
4
+ top: 24px;
5
+ right: 0;
6
+ bottom: 182px;
7
+ left: 0;
8
+ width: 100%;
9
+ touch-action: none;
10
+ direction: ltr;
11
+ }
12
+ .PhotoView__PhotoWrap {
13
+ z-index: 10;
14
+ overflow: hidden;
15
+ }
16
+ .PhotoView__PhotoBox {
17
+ transform-origin: left top;
18
+ }
@@ -0,0 +1,22 @@
1
+ /// <reference types="react" />
2
+ import './PhotoBox.css';
3
+ import type { BrokenElementParams, DataType, ExposedProperties, PhotoTapFunction, ReachFunction, ReachMoveFunction } from './types';
4
+ export interface PhotoBoxProps {
5
+ item: DataType;
6
+ visible: boolean;
7
+ speed: number;
8
+ easing: string;
9
+ wrapClassName?: string;
10
+ className?: string;
11
+ style?: object;
12
+ loadingElement?: JSX.Element;
13
+ brokenElement?: JSX.Element | ((photoProps: BrokenElementParams) => JSX.Element);
14
+ onPhotoTap: PhotoTapFunction;
15
+ onMaskTap: PhotoTapFunction;
16
+ onReachMove: ReachMoveFunction;
17
+ onReachUp: ReachFunction;
18
+ onPhotoResize: () => void;
19
+ expose: (state: ExposedProperties) => void;
20
+ isActive: boolean;
21
+ }
22
+ export default function PhotoBox({ item: { src, render, width: customWidth, height: customHeight, originRef }, visible, speed, easing, wrapClassName, className, style, loadingElement, brokenElement, onPhotoTap, onMaskTap, onReachMove, onReachUp, onPhotoResize, isActive, expose, }: PhotoBoxProps): JSX.Element;