eli-video-interview 1.2.40-alpha.8 → 1.2.41-alpha.0

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 (149) hide show
  1. package/esm/components/Charts/ReportPie.js +21 -6
  2. package/esm/components/SvgIcon/index.js +17 -1
  3. package/esm/components/react-photo-view/PhotoBox.js +32 -7
  4. package/esm/components/react-photo-view/PhotoPage.js +18 -2
  5. package/esm/components/react-photo-view/PhotoProvider.js +17 -1
  6. package/esm/components/react-photo-view/PhotoSlider.js +19 -3
  7. package/esm/components/react-photo-view/hooks/useAnimationOrigin.js +18 -2
  8. package/esm/components/react-photo-view/hooks/useAnimationPosition.js +18 -2
  9. package/esm/components/react-photo-view/hooks/useAnimationVisible.js +19 -3
  10. package/esm/components/react-photo-view/hooks/useContinuousTap.js +28 -3
  11. package/esm/components/react-photo-view/hooks/useMethods.js +17 -1
  12. package/esm/components/react-photo-view/hooks/useScrollPosition.js +21 -5
  13. package/esm/components/react-photo-view/hooks/useTargetScale.js +17 -1
  14. package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.js +18 -2
  15. package/esm/components/react-photo-view/utils/getSuitableImageSize.js +17 -1
  16. package/esm/modules/ai-ability/Root.js +21 -5
  17. package/esm/modules/ai-ability/components/AbilityFormItem/index.js +18 -2
  18. package/esm/modules/ai-ability/components/AddAbility/index.js +19 -3
  19. package/esm/modules/ai-ability/components/UpdateAbility/index.js +21 -5
  20. package/esm/modules/ai-ability-select/components/AiAbilityItem/index.js +17 -1
  21. package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +17 -1
  22. package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +17 -1
  23. package/esm/modules/ai-question/components/AiAnalysis/index.js +17 -1
  24. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +23 -7
  25. package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.js +17 -1
  26. package/esm/modules/ai-question/components/BaseAccordion/index.js +19 -3
  27. package/esm/modules/ai-question/components/BootVideo/index.js +22 -6
  28. package/esm/modules/ai-question/components/QuestionModel/Interactive.js +17 -1
  29. package/esm/modules/ai-question/components/QuestionModel/Item.js +37 -3
  30. package/esm/modules/ai-question/components/QuestionPreview/index.js +18 -2
  31. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +18 -2
  32. package/esm/modules/ai-question/components/QuestionUpdate/Chioce.js +17 -1
  33. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +23 -6
  34. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +17 -1
  35. package/esm/modules/ai-question/components/QuestionUpdate/Score.d.ts +15 -0
  36. package/esm/modules/ai-question/components/QuestionUpdate/Score.js +69 -0
  37. package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +18 -2
  38. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +20 -4
  39. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +18 -2
  40. package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -0
  41. package/esm/modules/ai-question/components/QuestionUpdate/index.js +18 -2
  42. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +1 -0
  43. package/esm/modules/ai-report/components/AIEvaluate/Evaluate.js +18 -2
  44. package/esm/modules/ai-report/components/AIEvaluate/Graph.js +18 -2
  45. package/esm/modules/ai-report/components/AIEvaluate/index.js +17 -1
  46. package/esm/modules/ai-report/components/MenuAnchor/index.js +18 -2
  47. package/esm/modules/ai-report/components/RankingRange/Item.js +17 -1
  48. package/esm/modules/ai-report/components/RankingRange/index.js +18 -2
  49. package/esm/modules/ai-report/components/ScoreReport/Bar.js +18 -2
  50. package/esm/modules/ai-report/components/ScoreReport/Score.js +19 -3
  51. package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +3 -1
  52. package/esm/modules/ai-report/components/VideoQuestion/BodyImages.js +18 -2
  53. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +25 -5
  54. package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +17 -1
  55. package/esm/modules/ai-report/components/VideoQuestion/index.js +1 -1
  56. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +18 -2
  57. package/esm/modules/ai-report/interface.d.ts +1 -0
  58. package/esm/modules/ai-template/Root.js +18 -2
  59. package/esm/modules/ai-template/components/QuestionList/Item.js +17 -1
  60. package/esm/modules/ai-template/components/TemplateList/index.js +17 -1
  61. package/esm/modules/ai-template/components/TemplateMenu/index.js +19 -3
  62. package/esm/store/ai-ability/question-ability-store.js +19 -3
  63. package/esm/store/ai-ability-select/question-ability-store.js +20 -4
  64. package/esm/store/ai-question/ai-analysis-store.js +22 -6
  65. package/esm/store/ai-question/boot-video-store.js +20 -4
  66. package/esm/store/ai-question/global-store.js +20 -4
  67. package/esm/store/ai-question/interview-room-store.js +20 -4
  68. package/esm/store/ai-question/question-model-store.js +19 -3
  69. package/esm/store/ai-question/question-preview-store.js +20 -4
  70. package/esm/store/ai-question/question-template-store.js +19 -3
  71. package/esm/store/ai-question/question-update-store.js +20 -4
  72. package/esm/store/ai-report/global-store.js +21 -5
  73. package/esm/store/ai-template/global-store.js +20 -4
  74. package/esm/store/enterprise/enterprise-store.js +20 -4
  75. package/lib/components/Charts/ReportPie.js +21 -6
  76. package/lib/components/SvgIcon/index.js +17 -1
  77. package/lib/components/react-photo-view/PhotoBox.js +32 -7
  78. package/lib/components/react-photo-view/PhotoPage.js +18 -2
  79. package/lib/components/react-photo-view/PhotoProvider.js +17 -1
  80. package/lib/components/react-photo-view/PhotoSlider.js +19 -3
  81. package/lib/components/react-photo-view/hooks/useAnimationOrigin.js +18 -2
  82. package/lib/components/react-photo-view/hooks/useAnimationPosition.js +18 -2
  83. package/lib/components/react-photo-view/hooks/useAnimationVisible.js +19 -3
  84. package/lib/components/react-photo-view/hooks/useContinuousTap.js +28 -3
  85. package/lib/components/react-photo-view/hooks/useMethods.js +17 -1
  86. package/lib/components/react-photo-view/hooks/useScrollPosition.js +21 -5
  87. package/lib/components/react-photo-view/hooks/useTargetScale.js +17 -1
  88. package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.js +18 -2
  89. package/lib/components/react-photo-view/utils/getSuitableImageSize.js +17 -1
  90. package/lib/modules/ai-ability/Root.js +21 -5
  91. package/lib/modules/ai-ability/components/AbilityFormItem/index.js +18 -2
  92. package/lib/modules/ai-ability/components/AddAbility/index.js +19 -3
  93. package/lib/modules/ai-ability/components/UpdateAbility/index.js +21 -5
  94. package/lib/modules/ai-ability-select/components/AiAbilityItem/index.js +17 -1
  95. package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +17 -1
  96. package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +17 -1
  97. package/lib/modules/ai-question/components/AiAnalysis/index.js +17 -1
  98. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +23 -7
  99. package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.js +17 -1
  100. package/lib/modules/ai-question/components/BaseAccordion/index.js +19 -3
  101. package/lib/modules/ai-question/components/BootVideo/index.js +22 -6
  102. package/lib/modules/ai-question/components/QuestionModel/Interactive.js +17 -1
  103. package/lib/modules/ai-question/components/QuestionModel/Item.js +36 -2
  104. package/lib/modules/ai-question/components/QuestionPreview/index.js +18 -2
  105. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +18 -2
  106. package/lib/modules/ai-question/components/QuestionUpdate/Chioce.js +17 -1
  107. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +23 -6
  108. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +17 -1
  109. package/lib/modules/ai-question/components/QuestionUpdate/Score.d.ts +15 -0
  110. package/lib/modules/ai-question/components/QuestionUpdate/Score.js +73 -0
  111. package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +18 -2
  112. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +20 -4
  113. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +18 -2
  114. package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -0
  115. package/lib/modules/ai-question/components/QuestionUpdate/index.js +18 -2
  116. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +1 -0
  117. package/lib/modules/ai-report/components/AIEvaluate/Evaluate.js +18 -2
  118. package/lib/modules/ai-report/components/AIEvaluate/Graph.js +18 -2
  119. package/lib/modules/ai-report/components/AIEvaluate/index.js +17 -1
  120. package/lib/modules/ai-report/components/MenuAnchor/index.js +18 -2
  121. package/lib/modules/ai-report/components/RankingRange/Item.js +17 -1
  122. package/lib/modules/ai-report/components/RankingRange/index.js +18 -2
  123. package/lib/modules/ai-report/components/ScoreReport/Bar.js +18 -2
  124. package/lib/modules/ai-report/components/ScoreReport/Score.js +19 -3
  125. package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +3 -1
  126. package/lib/modules/ai-report/components/VideoQuestion/BodyImages.js +18 -2
  127. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +25 -5
  128. package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +17 -1
  129. package/lib/modules/ai-report/components/VideoQuestion/index.js +1 -1
  130. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +18 -2
  131. package/lib/modules/ai-report/interface.d.ts +1 -0
  132. package/lib/modules/ai-template/Root.js +18 -2
  133. package/lib/modules/ai-template/components/QuestionList/Item.js +17 -1
  134. package/lib/modules/ai-template/components/TemplateList/index.js +17 -1
  135. package/lib/modules/ai-template/components/TemplateMenu/index.js +19 -3
  136. package/lib/store/ai-ability/question-ability-store.js +19 -3
  137. package/lib/store/ai-ability-select/question-ability-store.js +20 -4
  138. package/lib/store/ai-question/ai-analysis-store.js +22 -6
  139. package/lib/store/ai-question/boot-video-store.js +20 -4
  140. package/lib/store/ai-question/global-store.js +20 -4
  141. package/lib/store/ai-question/interview-room-store.js +20 -4
  142. package/lib/store/ai-question/question-model-store.js +19 -3
  143. package/lib/store/ai-question/question-preview-store.js +20 -4
  144. package/lib/store/ai-question/question-template-store.js +19 -3
  145. package/lib/store/ai-question/question-update-store.js +20 -4
  146. package/lib/store/ai-report/global-store.js +21 -5
  147. package/lib/store/ai-template/global-store.js +20 -4
  148. package/lib/store/enterprise/enterprise-store.js +20 -4
  149. package/package.json +1 -1
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
29
  import RankingRange from '../RankingRange';
14
30
  import Bar from './Bar';
@@ -20,11 +36,11 @@ import { Box, Button, DownloadIcon, Popover, Typography } from 'fbm-ui';
20
36
  import { useEffect, useState } from 'react';
21
37
  var Score = function (_a) {
22
38
  var customScore = _a.customScore, loading = _a.loading, onRefresh = _a.onRefresh;
23
- var _b = useState(false), openRankingRange = _b[0], setOpenRankingRange = _b[1];
24
- var _c = useState(false), openRefresh = _c[0], setOpenRefresh = _c[1];
39
+ var _b = __read(useState(false), 2), openRankingRange = _b[0], setOpenRankingRange = _b[1];
40
+ var _c = __read(useState(false), 2), openRefresh = _c[0], setOpenRefresh = _c[1];
25
41
  var _d = useAiReportStore(function (store) { return [store.reportResult, store.operableButtons]; }), reportResult = _d.reportResult, operableButtons = _d.operableButtons, onExportReportClick = _d.onExportReportClick;
26
42
  var _e = reportResult || {}, score = _e.score, createTime = _e.createTime;
27
- var _f = useState(score || 0), feScore = _f[0], setScore = _f[1];
43
+ var _f = __read(useState(score || 0), 2), feScore = _f[0], setScore = _f[1];
28
44
  useEffect(function () {
29
45
  if (typeof customScore === 'number' && customScore > -1) {
30
46
  setScore(customScore);
@@ -21,6 +21,8 @@ var Abilities = function (_a) {
21
21
  var steps = (reportResult || {}).steps;
22
22
  var handleChangeCommitted = useCallback(function (score, index, type) {
23
23
  var _a, _b;
24
+ if (disabledScore)
25
+ return;
24
26
  var newSteps = update(steps, (_a = {}, _a[stepIndex] = { scoreInfo: { abilities: (_b = {}, _b[index] = { finalScore: { $set: score } }, _b) } }, _a));
25
27
  updateReportResult(__assign(__assign({}, reportResult), { steps: newSteps }));
26
28
  onScoreChange &&
@@ -30,7 +32,7 @@ var Abilities = function (_a) {
30
32
  type: 2,
31
33
  score: score,
32
34
  });
33
- }, [stepIndex, reportResult, steps, updateReportResult, onScoreChange]);
35
+ }, [stepIndex, reportResult, steps, updateReportResult, onScoreChange, disabledScore]);
34
36
  return (_jsxs(Box, __assign({ mt: 1 }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary", mb: 1 }, { children: "\u5206\u503C\u8BA1\u7B97\u89C4\u5219\uFF1A\u7EFC\u5408\u8BC4\u5206=AI\u8BC4\u5206*\u5355\u9898\u6743\u91CD" })), _jsx(Box, __assign({ mt: 3 }, { children: steps &&
35
37
  steps[stepIndex].scoreInfo.abilities.map(function (_a, index) {
36
38
  var name = _a.name, originScore = _a.originScore, finalScore = _a.finalScore;
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
29
  import { Image } from './styled';
14
30
  import { PhotoSlider } from "../../../../components/react-photo-view";
@@ -20,8 +36,8 @@ import { Stack } from 'fbm-ui/lib/mui';
20
36
  import { useCallback, useState } from 'react';
21
37
  var BodyImages = function (_a) {
22
38
  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];
39
+ var _b = __read(useState(false), 2), visible = _b[0], setVisible = _b[1];
40
+ var _c = __read(useState(0), 2), index = _c[0], setIndex = _c[1];
25
41
  var handleSelected = useCallback(function (_, i) {
26
42
  setIndex(i);
27
43
  setVisible(true);
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
29
  import Abilities from './Abilities';
14
30
  import BodyImages from './BodyImages';
@@ -27,8 +43,8 @@ import update from 'immutability-helper';
27
43
  import { useCallback, useMemo, useState } from 'react';
28
44
  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;
29
45
  var QuestionItem = function (props) {
30
- 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, options = _b.options, aiShowType = _b.aiShowType, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
31
- var _d = useState(false), showAbilities = _d[0], setShowAbilities = _d[1];
46
+ var token = props.token, reviewImgs = props.reviewImgs, followupQuestion = props.followupQuestion, followupQuestions = props.followupQuestions, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, options = _b.options, aiShowType = _b.aiShowType, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
47
+ var _d = __read(useState(false), 2), showAbilities = _d[0], setShowAbilities = _d[1];
32
48
  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;
33
49
  var steps = (reportResult || {}).steps;
34
50
  var isAbilities = operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('abilities');
@@ -56,7 +72,7 @@ var QuestionItem = function (props) {
56
72
  if (keyPointAnalysis && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.text)) {
57
73
  var content_1 = analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.text;
58
74
  Object.entries(keyPointAnalysis).forEach(function (_a) {
59
- var keyword = _a[0], config = _a[1];
75
+ var _b = __read(_a, 2), keyword = _b[0], config = _b[1];
60
76
  content_1 = highlighKeywords(content_1, keyword, config.color);
61
77
  });
62
78
  return content_1;
@@ -68,6 +84,8 @@ var QuestionItem = function (props) {
68
84
  }, [analysisResult]);
69
85
  var handleChangeCommitted = useCallback(function (score) {
70
86
  var _a;
87
+ if (isSingleChoice)
88
+ return;
71
89
  var newSteps = update(steps, (_a = {}, _a[index] = { scoreInfo: { finalScore: { $set: score } } }, _a));
72
90
  updateReportResult(__assign(__assign({}, reportResult), { steps: newSteps }));
73
91
  onScoreChange &&
@@ -76,7 +94,7 @@ var QuestionItem = function (props) {
76
94
  type: 1,
77
95
  score: score,
78
96
  });
79
- }, [index, reportResult, steps, updateReportResult, onScoreChange]);
97
+ }, [index, reportResult, steps, updateReportResult, onScoreChange, isSingleChoice]);
80
98
  var handleClickItem = useCallback(function (e) {
81
99
  e.stopPropagation();
82
100
  if (videoUrl) {
@@ -89,6 +107,8 @@ var QuestionItem = function (props) {
89
107
  mt: 2,
90
108
  cursor: videoUrl ? 'pointer' : 'inherit',
91
109
  borderColor: token === stepToken ? theme.palette.primary.main : '',
92
- }, 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: [isSingleChoice && _jsx(SingleChoice, { options: options || [], selected: (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.selected) || [] }), _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, { valueLabelDisplay: "".concat(isSingleChoice ? 'off' : 'auto'), originScore: originScore, disabledScore: isSingleChoice, 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, disabledScore: isSingleChoice })] }), token));
110
+ }, 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: [isSingleChoice && _jsx(SingleChoice, { options: options || [], selected: (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.selected) || [] }), _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] }))] }))] }))] }), followupQuestions === null || followupQuestions === void 0 ? void 0 : followupQuestions.map(function (v) {
111
+ return (_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(v === null || v === void 0 ? void 0 : v.desc) })), _jsxs(QuestionDesc, { children: [_jsx(FormatQuoteIcon, {}), _jsx(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: v === null || v === void 0 ? void 0 : v.answer }))] })] }));
112
+ }), 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, { valueLabelDisplay: "".concat(isSingleChoice ? 'off' : 'auto'), originScore: originScore, disabledScore: isSingleChoice, 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, disabledScore: isSingleChoice })] }), token));
93
113
  };
94
114
  export default QuestionItem;
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
29
  import { AiScoreRoot, ScoreSliderRoot, StyledSlider } from './styled';
14
30
  // import { scoreRankIntervalColors } from '@constants/ai-report';
@@ -18,7 +34,7 @@ import { useCallback, useEffect, useState } from 'react';
18
34
  var ScoreSlider = function (props) {
19
35
  var _a = props.width, width = _a === void 0 ? 320 : _a, originScore = props.originScore, finalScore = props.finalScore, _b = props.valueLabelDisplay, valueLabelDisplay = _b === void 0 ? 'on' : _b, _c = props.isShowLabel, isShowLabel = _c === void 0 ? false : _c, _d = props.isShowScoreRank, isShowScoreRank = _d === void 0 ? false : _d, onChangeCommitted = props.onChangeCommitted, _e = props.disabledScore, sliderDisabledScore = _e === void 0 ? false : _e;
20
36
  var aiScore = originScore.toFixed(0);
21
- var _f = useState(0), score = _f[0], setScore = _f[1];
37
+ var _f = __read(useState(0), 2), score = _f[0], setScore = _f[1];
22
38
  var disabledScore = useAiReportStore(function (store) { return [store.disabledScore, store.scoreRankIntervals]; }).disabledScore;
23
39
  var handleScoreChange = useCallback(function (e, v) {
24
40
  !disabledScore && !sliderDisabledScore && setScore(v);
@@ -17,6 +17,6 @@ import { Box, Empty, Paper } from 'fbm-ui';
17
17
  var VideoQuestion = function () {
18
18
  var reportResult = useAiReportStore(function (store) { return [store.reportResult, store.operableButtons]; }).reportResult;
19
19
  var steps = (reportResult || {}).steps;
20
- return (_jsxs(Box, __assign({ id: "report-question", component: Paper, pl: 2, pt: 2, pr: 2, style: { background: '#fff', border: '1px solid rgb(244, 244, 244)' }, mt: 2 }, { children: [_jsx(AiHeaderTitle, { name: "\u89C6\u9891\u9898" }), _jsx(Box, __assign({ mt: 3 }, { children: steps && steps.length > 0 ? (steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) { return _jsx(QuestionItem, __assign({ index: index }, item), item.token); })) : (_jsx(Empty, { src: "//public-static-assets.oss-cn-beijing.aliyuncs.com/img/empty.png", desc: "\u6682\u65E0\u9898\u76EE" })) }))] })));
20
+ return (_jsxs(Box, __assign({ id: "report-question", component: Paper, p: 2, style: { background: '#fff', border: '1px solid rgb(244, 244, 244)' }, mt: 2 }, { children: [_jsx(AiHeaderTitle, { name: "\u89C6\u9891\u9898" }), _jsx(Box, __assign({ mt: 3 }, { children: steps && steps.length > 0 ? (steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) { return _jsx(QuestionItem, __assign({ index: index }, item), item.token); })) : (_jsx(Empty, { src: "//public-static-assets.oss-cn-beijing.aliyuncs.com/img/empty.png", desc: "\u6682\u65E0\u9898\u76EE" })) }))] })));
21
21
  };
22
22
  export default VideoQuestion;
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
29
  import { PostAiInterviewWorkplace } from "../../../../services/ai-report";
14
30
  import { Button, confirm, EditIcon, FormItem, IconButton, Typography } from 'fbm-ui';
@@ -16,8 +32,8 @@ import { Box, Stack } from 'fbm-ui/lib/mui';
16
32
  import { useCallback, useEffect, useState } from 'react';
17
33
  var Evaluate = function (_a) {
18
34
  var answer = _a.answer, token = _a.token, bgcolor = _a.bgcolor, _b = _a.mode, mode = _b === void 0 ? 'show' : _b, _c = _a.canEdit, canEdit = _c === void 0 ? 'true' : _c;
19
- var _d = useState(answer), content = _d[0], setContent = _d[1];
20
- var _e = useState('show'), internalMode = _e[0], setInternalMode = _e[1];
35
+ var _d = __read(useState(answer), 2), content = _d[0], setContent = _d[1];
36
+ var _e = __read(useState('show'), 2), internalMode = _e[0], setInternalMode = _e[1];
21
37
  var handleChange = useCallback(function (e) {
22
38
  var value = e.target.value;
23
39
  setContent(value);
@@ -115,6 +115,7 @@ export interface AiInterviewReportStep {
115
115
  aiEvaluation: AiEvaluation;
116
116
  reviewImgs: ReviewImg[];
117
117
  followupQuestion?: FollowupQuestion;
118
+ followupQuestions?: FollowupQuestion[];
118
119
  }
119
120
  export interface FaceAnalysis {
120
121
  age: number;
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
29
  import CapabilityModel from './components/CapabilityModel';
14
30
  import QuestionList from './components/QuestionList';
@@ -26,8 +42,8 @@ var AiTemplateDialog = styled(Dialog)({
26
42
  });
27
43
  var AiTemplateRoot = forwardRef(function (props, ref) {
28
44
  var _a = useAiTemplateStore(), open = _a.open, previewItem = _a.previewItem, _b = _a.currentCheckedQuestions, currentCheckedQuestions = _b === void 0 ? [] : _b, updateProps = _a.updateProps, updateState = _a.updateState, handleIncrUse = _a.handleIncrUse;
29
- var _c = useState([]), checkedQuestionList = _c[0], setCheckedQuestionList = _c[1];
30
- var _d = useState(0), curCheckedQuestionListCount = _d[0], setCurCheckedQuestionListCount = _d[1];
45
+ var _c = __read(useState([]), 2), checkedQuestionList = _c[0], setCheckedQuestionList = _c[1];
46
+ var _d = __read(useState(0), 2), curCheckedQuestionListCount = _d[0], setCurCheckedQuestionListCount = _d[1];
31
47
  var handleUseTemplate = useCallback(function () {
32
48
  var _a, _b;
33
49
  if ((currentCheckedQuestions === null || currentCheckedQuestions === void 0 ? void 0 : currentCheckedQuestions.length) > 0) {
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
29
  import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
14
30
  import { Box, Checkbox, Chip, styled, Typography } from 'fbm-ui';
@@ -18,7 +34,7 @@ var QuestionItem = function (_a) {
18
34
  var name = item.name, desc = item.desc, category = item.category, weight = item.weight, originToken = item.originToken;
19
35
  var _b = useAiTemplateStore(function (store) { return [store.currentSteps, store.currentCheckedQuestions]; }), currentSteps = _b.currentSteps, currentCheckedQuestions = _b.currentCheckedQuestions;
20
36
  var isUsed = currentSteps === null || currentSteps === void 0 ? void 0 : currentSteps.find(function (step) { return step.originToken === originToken; });
21
- var _c = useState(false), curChecked = _c[0], setChecked = _c[1];
37
+ var _c = __read(useState(false), 2), curChecked = _c[0], setChecked = _c[1];
22
38
  var UsedTag = styled(Box)(function () { return ({
23
39
  position: 'absolute',
24
40
  right: -1,
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
29
  import { AddIconRoot, ListCol, ListItem, ListItemOperation, ListItemSubTitle, ListItemTitle, ListRow } from './styled';
14
30
  import TemplatePie from "../../../../components/Charts/TemplatePie";
@@ -20,7 +36,7 @@ import { Box, Button, Typography } from 'fbm-ui';
20
36
  import { useCallback, useEffect, useRef, useState } from 'react';
21
37
  var TemplateList = function () {
22
38
  var isPreview = useRef(false);
23
- var _a = useState([]), list = _a[0], setList = _a[1];
39
+ var _a = __read(useState([]), 2), list = _a[0], setList = _a[1];
24
40
  var _b = useAiTemplateStore(function (store) { return [
25
41
  store.open,
26
42
  store.menuId,
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
29
  if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
30
  if (ar || !(i in from)) {
@@ -27,7 +43,7 @@ import { useAiTemplateStore } from "../../../../store/ai-template/global-store";
27
43
  import { TemplateMenuItem, TemplateMenuList } from './styled';
28
44
  var defaultHistoryPatterns = { token: 'historyPatterns', name: '我的岗位模型', selected: false };
29
45
  var TemplateMenu = function () {
30
- var _a = useState([]), list = _a[0], setList = _a[1];
46
+ var _a = __read(useState([]), 2), list = _a[0], setList = _a[1];
31
47
  var _b = useAiTemplateStore(function (store) { return [store.historyPatterns, store.menuId]; }), menuId = _b.menuId, historyPatterns = _b.historyPatterns, updateState = _b.updateState;
32
48
  useRequest(PostAiTemplatesCollectionList, {
33
49
  onSuccess: function (_a) {
@@ -37,7 +53,7 @@ var TemplateMenu = function () {
37
53
  return selected;
38
54
  }) || {}).token;
39
55
  updateState({ menuId: token || 'historyPatterns' });
40
- setList(historyPatterns ? __spreadArray([defaultHistoryPatterns], list, true) : list);
56
+ setList(historyPatterns ? __spreadArray([defaultHistoryPatterns], __read(list), false) : list);
41
57
  },
42
58
  });
43
59
  var handleSwitchTemplate = useCallback(function (index) {
@@ -46,7 +62,7 @@ var TemplateMenu = function () {
46
62
  }, [list, updateState]);
47
63
  useEffect(function () {
48
64
  if (list.length && list[0].token !== defaultHistoryPatterns.token) {
49
- setList(__spreadArray([defaultHistoryPatterns], list, true));
65
+ setList(__spreadArray([defaultHistoryPatterns], __read(list), false));
50
66
  }
51
67
  }, [list, historyPatterns]);
52
68
  return (_jsx(Box, __assign({ width: 140, height: 500, overflow: "auto" }, { children: _jsx(TemplateMenuList, { children: list.map(function (_a, index) {
@@ -1,10 +1,26 @@
1
+ var __read = (this && this.__read) || function (o, n) {
2
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3
+ if (!m) return o;
4
+ var i = m.call(o), r, ar = [], e;
5
+ try {
6
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
7
+ }
8
+ catch (error) { e = { error: error }; }
9
+ finally {
10
+ try {
11
+ if (r && !r.done && (m = i["return"])) m.call(i);
12
+ }
13
+ finally { if (e) throw e.error; }
14
+ }
15
+ return ar;
16
+ };
1
17
  var _a;
2
18
  import { createGlobalStore } from 'hox';
3
19
  import { useState } from 'react';
4
- export var useQuestionCollectionListStore = (_a = createGlobalStore(function () {
5
- var _a = useState([]), questionCollectionList = _a[0], updateQuestionCollectionList = _a[1];
20
+ export var useQuestionCollectionListStore = (_a = __read(createGlobalStore(function () {
21
+ var _a = __read(useState([]), 2), questionCollectionList = _a[0], updateQuestionCollectionList = _a[1];
6
22
  return {
7
23
  questionCollectionList: questionCollectionList,
8
24
  updateQuestionCollectionList: updateQuestionCollectionList,
9
25
  };
10
- }), _a[0]), getQuestionCollectionListStore = _a[1];
26
+ }), 2), _a[0]), getQuestionCollectionListStore = _a[1];
@@ -1,11 +1,27 @@
1
+ var __read = (this && this.__read) || function (o, n) {
2
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3
+ if (!m) return o;
4
+ var i = m.call(o), r, ar = [], e;
5
+ try {
6
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
7
+ }
8
+ catch (error) { e = { error: error }; }
9
+ finally {
10
+ try {
11
+ if (r && !r.done && (m = i["return"])) m.call(i);
12
+ }
13
+ finally { if (e) throw e.error; }
14
+ }
15
+ return ar;
16
+ };
1
17
  var _a;
2
18
  import { getQuestionModelStore } from '../ai-question/question-model-store';
3
19
  import { createGlobalStore } from 'hox';
4
20
  import { useCallback, useState } from 'react';
5
- export var useAiAbilityListStore = (_a = createGlobalStore(function () {
21
+ export var useAiAbilityListStore = (_a = __read(createGlobalStore(function () {
6
22
  var isEdit = (getQuestionModelStore() || {}).isEdit;
7
- var _a = useState([]), aiAbilityList = _a[0], setAiAbilityList = _a[1];
8
- var _b = useState([]), selctedAbilitys = _b[0], setSelctedAbilitys = _b[1];
23
+ var _a = __read(useState([]), 2), aiAbilityList = _a[0], setAiAbilityList = _a[1];
24
+ var _b = __read(useState([]), 2), selctedAbilitys = _b[0], setSelctedAbilitys = _b[1];
9
25
  var setSpecialAiAbilityList = useCallback(function (list) {
10
26
  setAiAbilityList((list === null || list === void 0 ? void 0 : list.filter(function (v) {
11
27
  return !isEdit || !v.isNew || selctedAbilitys.includes(v.token);
@@ -18,4 +34,4 @@ export var useAiAbilityListStore = (_a = createGlobalStore(function () {
18
34
  aiAbilityList: aiAbilityList,
19
35
  setAiAbilityList: setAiAbilityList,
20
36
  };
21
- }), _a[0]), getAiAbilityListStore = _a[1];
37
+ }), 2), _a[0]), getAiAbilityListStore = _a[1];
@@ -9,6 +9,22 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  var _a;
13
29
  import { useUpdateQuestionStore } from "./question-update-store";
14
30
  import { computeDecimalValue, formatNumberDecimal, uniqueId } from "../../utils/utils";
@@ -17,12 +33,12 @@ import { createStore } from 'hox';
17
33
  import update from 'immutability-helper';
18
34
  import { useCallback, useEffect, useState } from 'react';
19
35
  var defaultAnalysisState = { aiSwitch: 2, language: 1 };
20
- export var useAiAnalysisStore = (_a = createStore(function () {
36
+ export var useAiAnalysisStore = (_a = __read(createStore(function () {
21
37
  var questionState = useUpdateQuestionStore(function (store) { return [store.questionState]; }).questionState;
22
- var _a = useState([]), aiAbilities = _a[0], setAiAbilities = _a[1];
23
- var _b = useState([]), workplaces = _b[0], setWorkplaces = _b[1];
24
- var _c = useSetState(defaultAnalysisState), analysisState = _c[0], setState = _c[1];
25
- var _d = useState([]), keyPointAnalysisError = _d[0], setKeyPointAnalysisError = _d[1];
38
+ var _a = __read(useState([]), 2), aiAbilities = _a[0], setAiAbilities = _a[1];
39
+ var _b = __read(useState([]), 2), workplaces = _b[0], setWorkplaces = _b[1];
40
+ var _c = __read(useSetState(defaultAnalysisState), 2), analysisState = _c[0], setState = _c[1];
41
+ var _d = __read(useState([]), 2), keyPointAnalysisError = _d[0], setKeyPointAnalysisError = _d[1];
26
42
  var updateState = function (params) { return setState(params); };
27
43
  /**
28
44
  * 权重值计算
@@ -154,4 +170,4 @@ export var useAiAnalysisStore = (_a = createStore(function () {
154
170
  updateWorkplaces: updateWorkplaces,
155
171
  setKeyPointAnalysisError: setKeyPointAnalysisError,
156
172
  };
157
- }), _a[0]), AiAnalysisStoreProvider = _a[1];
173
+ }), 2), _a[0]), AiAnalysisStoreProvider = _a[1];
@@ -9,18 +9,34 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  var _a;
13
29
  import { DEFAULT_GUIDE_VIDEO_THUMB_URL, DEFAULT_GUIDE_VIDEO_URL } from "../../constants/ai-question";
14
30
  import { createGlobalStore } from 'hox';
15
31
  import { useState } from 'react';
16
- export var useBootVideoStore = (_a = createGlobalStore(function () {
17
- var _a = useState({
32
+ export var useBootVideoStore = (_a = __read(createGlobalStore(function () {
33
+ var _a = __read(useState({
18
34
  mediaUrl: DEFAULT_GUIDE_VIDEO_URL,
19
35
  thumbUrl: DEFAULT_GUIDE_VIDEO_THUMB_URL,
20
36
  appliedAllPosition: false,
21
- }), state = _a[0], setState = _a[1];
37
+ }), 2), state = _a[0], setState = _a[1];
22
38
  var updateBootVideo = function (params) {
23
39
  setState(__assign(__assign({}, state), params));
24
40
  };
25
41
  return __assign(__assign({}, state), { updateBootVideo: updateBootVideo });
26
- }), _a[0]), getBootVideoStore = _a[1];
42
+ }), 2), _a[0]), getBootVideoStore = _a[1];
@@ -9,15 +9,31 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  var _a;
13
29
  import { useSetState } from 'ahooks';
14
30
  import { createGlobalStore } from 'hox';
15
- export var useAiQuestionStore = (_a = createGlobalStore(function () {
16
- var _a = useSetState({
31
+ export var useAiQuestionStore = (_a = __read(createGlobalStore(function () {
32
+ var _a = __read(useSetState({
17
33
  token: '',
18
34
  extraAbilityTokens: [],
19
35
  name: '',
20
36
  mediaList: [],
21
- }), state = _a[0], updateState = _a[1];
37
+ }), 2), state = _a[0], updateState = _a[1];
22
38
  return __assign(__assign({}, state), { updateState: updateState });
23
- }), _a[0]), getAiQuestionStore = _a[1];
39
+ }), 2), _a[0]), getAiQuestionStore = _a[1];
@@ -9,13 +9,29 @@ var __assign = (this && this.__assign) || function () {
9
9
  };
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
+ var __read = (this && this.__read) || function (o, n) {
13
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
14
+ if (!m) return o;
15
+ var i = m.call(o), r, ar = [], e;
16
+ try {
17
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
18
+ }
19
+ catch (error) { e = { error: error }; }
20
+ finally {
21
+ try {
22
+ if (r && !r.done && (m = i["return"])) m.call(i);
23
+ }
24
+ finally { if (e) throw e.error; }
25
+ }
26
+ return ar;
27
+ };
12
28
  var _a;
13
29
  import { useSetState } from 'ahooks';
14
30
  import { createGlobalStore } from 'hox';
15
- export var useInterviewRoomStore = (_a = createGlobalStore(function () {
16
- var _a = useSetState({
31
+ export var useInterviewRoomStore = (_a = __read(createGlobalStore(function () {
32
+ var _a = __read(useSetState({
17
33
  interactType: 1,
18
34
  aiVideoStatus: 0,
19
- }), interviewRoomState = _a[0], updateInterviewRoom = _a[1];
35
+ }), 2), interviewRoomState = _a[0], updateInterviewRoom = _a[1];
20
36
  return __assign(__assign({}, interviewRoomState), { interviewRoomState: interviewRoomState, updateInterviewRoom: updateInterviewRoom });
21
- }), _a[0]), getInterviewRoomStore = _a[1];
37
+ }), 2), _a[0]), getInterviewRoomStore = _a[1];