eli-video-interview 1.5.0 → 1.6.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.
- package/esm/components/Charts/ReportPie.js +2 -2
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/modules/ai-report/components/AIEvaluate/index.js +1 -1
- package/esm/modules/ai-report/interface.d.ts +28 -0
- package/esm/modules/ai-report-v3/Root.d.ts +4 -0
- package/esm/modules/ai-report-v3/Root.js +110 -0
- package/esm/modules/ai-report-v3/components/AIEvaluate/Evaluate.d.ts +11 -0
- package/esm/modules/ai-report-v3/components/AIEvaluate/Evaluate.js +79 -0
- package/esm/modules/ai-report-v3/components/AIEvaluate/Graph.d.ts +22 -0
- package/esm/modules/ai-report-v3/components/AIEvaluate/Graph.js +272 -0
- package/esm/modules/ai-report-v3/components/AIEvaluate/index.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/AIEvaluate/index.js +32 -0
- package/esm/modules/ai-report-v3/components/Candidate/Candidate.d.ts +7 -0
- package/esm/modules/ai-report-v3/components/Candidate/Candidate.js +55 -0
- package/esm/modules/ai-report-v3/components/Candidate/Interface.d.ts +16 -0
- package/esm/modules/ai-report-v3/components/Candidate/Interface.js +1 -0
- package/esm/modules/ai-report-v3/components/Candidate/Podium.d.ts +6 -0
- package/esm/modules/ai-report-v3/components/Candidate/Podium.js +50 -0
- package/esm/modules/ai-report-v3/components/Candidate/index.d.ts +2 -0
- package/esm/modules/ai-report-v3/components/Candidate/index.js +2 -0
- package/esm/modules/ai-report-v3/components/CapabilityTable/CapabilityTable.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/CapabilityTable/CapabilityTable.js +62 -0
- package/esm/modules/ai-report-v3/components/CheatRisk/CheatRisk.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/CheatRisk/CheatRisk.js +42 -0
- package/esm/modules/ai-report-v3/components/Form/Form.d.ts +23 -0
- package/esm/modules/ai-report-v3/components/Form/Form.js +67 -0
- package/esm/modules/ai-report-v3/components/Form/Forms.d.ts +9 -0
- package/esm/modules/ai-report-v3/components/Form/Forms.js +45 -0
- package/esm/modules/ai-report-v3/components/Form/Nps.d.ts +6 -0
- package/esm/modules/ai-report-v3/components/Form/Nps.js +57 -0
- package/esm/modules/ai-report-v3/components/Form/index.d.ts +1 -0
- package/esm/modules/ai-report-v3/components/Form/index.js +1 -0
- package/esm/modules/ai-report-v3/components/Form/interface.d.ts +57 -0
- package/esm/modules/ai-report-v3/components/Form/interface.js +1 -0
- package/esm/modules/ai-report-v3/components/MenuAnchor/index.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/MenuAnchor/index.js +130 -0
- package/esm/modules/ai-report-v3/components/ModuleTitle.d.ts +5 -0
- package/esm/modules/ai-report-v3/components/ModuleTitle.js +24 -0
- package/esm/modules/ai-report-v3/components/NotFinish/index.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/NotFinish/index.js +32 -0
- package/esm/modules/ai-report-v3/components/RankingRange/Item.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/RankingRange/Item.js +46 -0
- package/esm/modules/ai-report-v3/components/RankingRange/index.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/RankingRange/index.js +187 -0
- package/esm/modules/ai-report-v3/components/RankingRange/interface.d.ts +26 -0
- package/esm/modules/ai-report-v3/components/RankingRange/interface.js +1 -0
- package/esm/modules/ai-report-v3/components/RankingRange/styled.d.ts +7 -0
- package/esm/modules/ai-report-v3/components/RankingRange/styled.js +11 -0
- package/esm/modules/ai-report-v3/components/ReportHeader/ReportHeader.d.ts +17 -0
- package/esm/modules/ai-report-v3/components/ReportHeader/ReportHeader.js +105 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Bar.d.ts +6 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Bar.js +68 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Failed.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Failed.js +33 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/RecommendIcon.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/RecommendIcon.js +17 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Report.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Report.js +22 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Score.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Score.js +83 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/ScoreLegend.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/ScoreLegend.js +33 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Tips.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/Tips.js +18 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/index.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/index.js +39 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/interface.d.ts +20 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/interface.js +1 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/styled.d.ts +22 -0
- package/esm/modules/ai-report-v3/components/ScoreReport/styled.js +21 -0
- package/esm/modules/ai-report-v3/components/SectionTabs/SectionTabs.d.ts +11 -0
- package/esm/modules/ai-report-v3/components/SectionTabs/SectionTabs.js +114 -0
- package/esm/modules/ai-report-v3/components/Suggestion/Suggestion.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/Suggestion/Suggestion.js +31 -0
- package/esm/modules/ai-report-v3/components/Suggestion/index.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/Suggestion/index.js +27 -0
- package/esm/modules/ai-report-v3/components/V3Header/V3Header.d.ts +11 -0
- package/esm/modules/ai-report-v3/components/V3Header/V3Header.js +154 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/Abilities.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/Abilities.js +42 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/BodyImages.d.ts +7 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/BodyImages.js +56 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/Evaluate.d.ts +11 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/Evaluate.js +79 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/QuestionItem.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/QuestionItem.js +145 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/ScoreSlider.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/ScoreSlider.js +47 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/SingleChoice.d.ts +8 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/SingleChoice.js +31 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/Workplaces.d.ts +10 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/Workplaces.js +91 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/index.d.ts +6 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/index.js +24 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/interface.d.ts +17 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/interface.js +1 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/styled.d.ts +72 -0
- package/esm/modules/ai-report-v3/components/VideoQuestion/styled.js +93 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/ScoreSlider.js +24 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/WorkPlace.d.ts +12 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/WorkPlace.js +72 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/index.d.ts +3 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/index.js +70 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/interface.d.ts +7 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/interface.js +1 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/styled.d.ts +62 -0
- package/esm/modules/ai-report-v3/components/WorkPlaces/styled.js +27 -0
- package/esm/modules/ai-report-v3/components/styled.d.ts +42 -0
- package/esm/modules/ai-report-v3/components/styled.js +140 -0
- package/esm/modules/ai-report-v3/index.d.ts +4 -0
- package/esm/modules/ai-report-v3/index.js +20 -0
- package/esm/modules/ai-report-v3/interface.d.ts +257 -0
- package/esm/modules/ai-report-v3/interface.js +1 -0
- package/esm/modules/ai-report-v3/useAiReport.d.ts +37 -0
- package/esm/modules/ai-report-v3/useAiReport.js +18 -0
- package/esm/modules/ai-report-v3/useAiReportVersion.d.ts +5 -0
- package/esm/modules/ai-report-v3/useAiReportVersion.js +45 -0
- package/esm/modules/ai-report-v3/utils.d.ts +1 -0
- package/esm/modules/ai-report-v3/utils.js +1 -0
- package/lib/components/Charts/ReportPie.js +2 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -1
- package/lib/modules/ai-report/components/AIEvaluate/index.js +1 -1
- package/lib/modules/ai-report/interface.d.ts +28 -0
- package/lib/modules/ai-report-v3/Root.d.ts +4 -0
- package/lib/modules/ai-report-v3/Root.js +115 -0
- package/lib/modules/ai-report-v3/components/AIEvaluate/Evaluate.d.ts +11 -0
- package/lib/modules/ai-report-v3/components/AIEvaluate/Evaluate.js +81 -0
- package/lib/modules/ai-report-v3/components/AIEvaluate/Graph.d.ts +22 -0
- package/lib/modules/ai-report-v3/components/AIEvaluate/Graph.js +276 -0
- package/lib/modules/ai-report-v3/components/AIEvaluate/index.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/AIEvaluate/index.js +37 -0
- package/lib/modules/ai-report-v3/components/Candidate/Candidate.d.ts +7 -0
- package/lib/modules/ai-report-v3/components/Candidate/Candidate.js +57 -0
- package/lib/modules/ai-report-v3/components/Candidate/Interface.d.ts +16 -0
- package/lib/modules/ai-report-v3/components/Candidate/Interface.js +2 -0
- package/lib/modules/ai-report-v3/components/Candidate/Podium.d.ts +6 -0
- package/lib/modules/ai-report-v3/components/Candidate/Podium.js +52 -0
- package/lib/modules/ai-report-v3/components/Candidate/index.d.ts +2 -0
- package/lib/modules/ai-report-v3/components/Candidate/index.js +10 -0
- package/lib/modules/ai-report-v3/components/CapabilityTable/CapabilityTable.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/CapabilityTable/CapabilityTable.js +64 -0
- package/lib/modules/ai-report-v3/components/CheatRisk/CheatRisk.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/CheatRisk/CheatRisk.js +44 -0
- package/lib/modules/ai-report-v3/components/Form/Form.d.ts +23 -0
- package/lib/modules/ai-report-v3/components/Form/Form.js +73 -0
- package/lib/modules/ai-report-v3/components/Form/Forms.d.ts +9 -0
- package/lib/modules/ai-report-v3/components/Form/Forms.js +50 -0
- package/lib/modules/ai-report-v3/components/Form/Nps.d.ts +6 -0
- package/lib/modules/ai-report-v3/components/Form/Nps.js +59 -0
- package/lib/modules/ai-report-v3/components/Form/index.d.ts +1 -0
- package/lib/modules/ai-report-v3/components/Form/index.js +8 -0
- package/lib/modules/ai-report-v3/components/Form/interface.d.ts +57 -0
- package/lib/modules/ai-report-v3/components/Form/interface.js +2 -0
- package/lib/modules/ai-report-v3/components/MenuAnchor/index.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/MenuAnchor/index.js +132 -0
- package/lib/modules/ai-report-v3/components/ModuleTitle.d.ts +5 -0
- package/lib/modules/ai-report-v3/components/ModuleTitle.js +28 -0
- package/lib/modules/ai-report-v3/components/NotFinish/index.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/NotFinish/index.js +34 -0
- package/lib/modules/ai-report-v3/components/RankingRange/Item.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/RankingRange/Item.js +48 -0
- package/lib/modules/ai-report-v3/components/RankingRange/index.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/RankingRange/index.js +192 -0
- package/lib/modules/ai-report-v3/components/RankingRange/interface.d.ts +26 -0
- package/lib/modules/ai-report-v3/components/RankingRange/interface.js +2 -0
- package/lib/modules/ai-report-v3/components/RankingRange/styled.d.ts +7 -0
- package/lib/modules/ai-report-v3/components/RankingRange/styled.js +14 -0
- package/lib/modules/ai-report-v3/components/ReportHeader/ReportHeader.d.ts +17 -0
- package/lib/modules/ai-report-v3/components/ReportHeader/ReportHeader.js +110 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Bar.d.ts +6 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Bar.js +70 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Failed.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Failed.js +34 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/RecommendIcon.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/RecommendIcon.js +22 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Report.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Report.js +27 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Score.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Score.js +86 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/ScoreLegend.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/ScoreLegend.js +35 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Tips.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/Tips.js +20 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/index.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/index.js +44 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/interface.d.ts +20 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/interface.js +2 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/styled.d.ts +22 -0
- package/lib/modules/ai-report-v3/components/ScoreReport/styled.js +24 -0
- package/lib/modules/ai-report-v3/components/SectionTabs/SectionTabs.d.ts +11 -0
- package/lib/modules/ai-report-v3/components/SectionTabs/SectionTabs.js +116 -0
- package/lib/modules/ai-report-v3/components/Suggestion/Suggestion.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/Suggestion/Suggestion.js +33 -0
- package/lib/modules/ai-report-v3/components/Suggestion/index.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/Suggestion/index.js +32 -0
- package/lib/modules/ai-report-v3/components/V3Header/V3Header.d.ts +11 -0
- package/lib/modules/ai-report-v3/components/V3Header/V3Header.js +159 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/Abilities.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/Abilities.js +47 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/BodyImages.d.ts +7 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/BodyImages.js +61 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/Evaluate.d.ts +11 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/Evaluate.js +81 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/QuestionItem.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/QuestionItem.js +150 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/ScoreSlider.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/ScoreSlider.js +49 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/SingleChoice.d.ts +8 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/SingleChoice.js +33 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/Workplaces.d.ts +10 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/Workplaces.js +93 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/index.d.ts +6 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/index.js +29 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/interface.d.ts +17 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/interface.js +2 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/styled.d.ts +72 -0
- package/lib/modules/ai-report-v3/components/VideoQuestion/styled.js +96 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/ScoreSlider.d.ts +4 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/ScoreSlider.js +26 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/WorkPlace.d.ts +12 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/WorkPlace.js +74 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/index.d.ts +3 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/index.js +75 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/interface.d.ts +7 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/interface.js +2 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/styled.d.ts +62 -0
- package/lib/modules/ai-report-v3/components/WorkPlaces/styled.js +30 -0
- package/lib/modules/ai-report-v3/components/styled.d.ts +42 -0
- package/lib/modules/ai-report-v3/components/styled.js +146 -0
- package/lib/modules/ai-report-v3/index.d.ts +4 -0
- package/lib/modules/ai-report-v3/index.js +25 -0
- package/lib/modules/ai-report-v3/interface.d.ts +257 -0
- package/lib/modules/ai-report-v3/interface.js +2 -0
- package/lib/modules/ai-report-v3/useAiReport.d.ts +37 -0
- package/lib/modules/ai-report-v3/useAiReport.js +25 -0
- package/lib/modules/ai-report-v3/useAiReportVersion.d.ts +5 -0
- package/lib/modules/ai-report-v3/useAiReportVersion.js +49 -0
- package/lib/modules/ai-report-v3/utils.d.ts +1 -0
- package/lib/modules/ai-report-v3/utils.js +5 -0
- package/package.json +2 -2
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
+
if (!m) return o;
|
|
16
|
+
var i = m.call(o), r, ar = [], e;
|
|
17
|
+
try {
|
|
18
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
+
}
|
|
20
|
+
catch (error) { e = { error: error }; }
|
|
21
|
+
finally {
|
|
22
|
+
try {
|
|
23
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
+
}
|
|
25
|
+
finally { if (e) throw e.error; }
|
|
26
|
+
}
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
32
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
33
|
+
var fbm_icons_1 = require("fbm-icons");
|
|
34
|
+
var react_1 = require("react");
|
|
35
|
+
var sections = [
|
|
36
|
+
{ id: 'report-header', name: '基本信息' },
|
|
37
|
+
{ id: 'report-evaluate', name: '综合评价' },
|
|
38
|
+
{ id: 'report-question', name: '答题解析' },
|
|
39
|
+
];
|
|
40
|
+
var SectionTabs = function (_a) {
|
|
41
|
+
var _b = _a.hasRisk, hasRisk = _b === void 0 ? true : _b, _c = _a.operableButtons, operableButtons = _c === void 0 ? [] : _c, onExportReportClick = _a.onExportReportClick, fetchReportUrl = _a.fetchReportUrl;
|
|
42
|
+
var _d = __read((0, react_1.useState)('report-header'), 2), active = _d[0], setActive = _d[1];
|
|
43
|
+
var _e = __read((0, react_1.useState)(''), 2), reportUrl = _e[0], setReportUrl = _e[1];
|
|
44
|
+
var rootRef = (0, react_1.useRef)(null);
|
|
45
|
+
(0, react_1.useEffect)(function () {
|
|
46
|
+
if (!fetchReportUrl)
|
|
47
|
+
return;
|
|
48
|
+
fetchReportUrl()
|
|
49
|
+
.then(function (_a) {
|
|
50
|
+
var url = _a.url;
|
|
51
|
+
return setReportUrl(url);
|
|
52
|
+
})
|
|
53
|
+
.catch(function () { return undefined; });
|
|
54
|
+
}, [fetchReportUrl]);
|
|
55
|
+
(0, react_1.useEffect)(function () {
|
|
56
|
+
var getScrollParent = function (node) {
|
|
57
|
+
var el = node;
|
|
58
|
+
while (el && el !== document.body) {
|
|
59
|
+
var s = getComputedStyle(el);
|
|
60
|
+
if (/(auto|scroll)/.test(s.overflowY) && el.scrollHeight > el.clientHeight)
|
|
61
|
+
return el;
|
|
62
|
+
el = el.parentElement;
|
|
63
|
+
}
|
|
64
|
+
return window;
|
|
65
|
+
};
|
|
66
|
+
var root = rootRef.current;
|
|
67
|
+
if (!root)
|
|
68
|
+
return;
|
|
69
|
+
var scrollParent = getScrollParent(root);
|
|
70
|
+
var ids = sections.map(function (s) { return s.id; });
|
|
71
|
+
var onScroll = function () {
|
|
72
|
+
var tabHeight = root.offsetHeight || 48;
|
|
73
|
+
var current = ids[0];
|
|
74
|
+
ids.forEach(function (id) {
|
|
75
|
+
var el = document.getElementById(id);
|
|
76
|
+
if (!el)
|
|
77
|
+
return;
|
|
78
|
+
var top = el.getBoundingClientRect().top;
|
|
79
|
+
if (top <= tabHeight)
|
|
80
|
+
current = id;
|
|
81
|
+
});
|
|
82
|
+
setActive(current);
|
|
83
|
+
};
|
|
84
|
+
scrollParent.addEventListener('scroll', onScroll, { passive: true });
|
|
85
|
+
onScroll();
|
|
86
|
+
return function () { return scrollParent.removeEventListener('scroll', onScroll); };
|
|
87
|
+
}, []);
|
|
88
|
+
var handleClick = function (id) {
|
|
89
|
+
var _a;
|
|
90
|
+
if (id === 'report-risk' && !hasRisk)
|
|
91
|
+
return;
|
|
92
|
+
setActive(id);
|
|
93
|
+
(_a = document.getElementById(id)) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
94
|
+
};
|
|
95
|
+
return ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ ref: rootRef, sx: {
|
|
96
|
+
position: 'sticky',
|
|
97
|
+
top: 0,
|
|
98
|
+
zIndex: 99,
|
|
99
|
+
background: '#FFFFFF',
|
|
100
|
+
boxShadow: '0 4px 20px rgba(0,0,0,0.08)',
|
|
101
|
+
} }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", justifyContent: "space-between", px: 3, py: 1, sx: { maxWidth: 1342, mx: 'auto' } }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", spacing: 4 }, { children: sections.map(function (section) { return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ onClick: function () { return handleClick(section.id); }, sx: {
|
|
102
|
+
cursor: 'pointer',
|
|
103
|
+
position: 'relative',
|
|
104
|
+
opacity: section.id === 'report-risk' && !hasRisk ? 0.5 : 1,
|
|
105
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", fontWeight: 500, sx: { color: active === section.id ? 'rgba(0,0,0,0.8)' : 'rgba(0,0,0,0.4)', fontSize: 14 } }, { children: section.name })), active === section.id && ((0, jsx_runtime_1.jsx)(mui_1.Box, { sx: {
|
|
106
|
+
position: 'absolute',
|
|
107
|
+
left: '50%',
|
|
108
|
+
transform: 'translateX(-50%)',
|
|
109
|
+
bottom: -10,
|
|
110
|
+
width: 30,
|
|
111
|
+
height: 3,
|
|
112
|
+
backgroundColor: '#4BCA50',
|
|
113
|
+
borderRadius: 2,
|
|
114
|
+
} }))] }), section.id)); }) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", onClick: onExportReportClick, sx: { color: '#4BCA50', display: 'flex', alignItems: 'center', gap: 0.5, cursor: 'pointer', fontSize: 14 } }, { children: ["\u5BFC\u51FA\u62A5\u544A", (0, jsx_runtime_1.jsx)(fbm_icons_1.ShareIcon, { sx: { width: 16, height: 16 } })] }))) : reportUrl ? ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", onClick: function () { return (window.location.href = reportUrl); }, sx: { color: '#4BCA50', display: 'flex', alignItems: 'center', gap: 0.5, cursor: 'pointer', fontSize: 14 } }, { children: ["\u67E5\u770B\u5728\u7EBF\u62A5\u544A", (0, jsx_runtime_1.jsx)(fbm_icons_1.ShareIcon, { sx: { width: 16, height: 16 } })] }))) : ((0, jsx_runtime_1.jsx)(mui_1.Box, { width: 80 }))] })) })));
|
|
115
|
+
};
|
|
116
|
+
exports.default = SectionTabs;
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
16
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
17
|
+
var TagTitle = (0, fbm_ui_1.styled)(mui_1.Box)(function () { return ({
|
|
18
|
+
boxSizing: 'border-box',
|
|
19
|
+
padding: '0 16px',
|
|
20
|
+
minWidth: 100,
|
|
21
|
+
height: 32,
|
|
22
|
+
display: 'inline-block',
|
|
23
|
+
textAlign: 'center',
|
|
24
|
+
color: 'RGBA(0, 0, 0, 0.86)',
|
|
25
|
+
borderLeft: '4px solid #4CAF50',
|
|
26
|
+
backgroundColor: '#E8F5E9',
|
|
27
|
+
margin: '24px 0 16px',
|
|
28
|
+
}); });
|
|
29
|
+
var Suggestion = function (_a) {
|
|
30
|
+
var abilityName = _a.abilityName, interviewQuestion = _a.interviewQuestion, keyPoints = _a.keyPoints;
|
|
31
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ display: "flex", alignItems: "center" }, { children: (0, jsx_runtime_1.jsx)(TagTitle, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle1", fontWeight: "medium", style: { lineHeight: '32px' } }, { children: abilityName })) }) })), (0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FAFAFA', borderRadius: 8, padding: 16, flex: 1 }, mr: 2 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.BulbFilledIcon, { style: { color: '#4CAF50', fontSize: 16 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u9762\u8BD5\u95EE\u9898" }))] })), interviewQuestion.map(function (v, index) { return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.CopyIcon, { style: { color: '#81C784', fontSize: 16, marginTop: 4 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] })), (0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FFF3E0', borderRadius: 8, padding: 16, flex: 1 } }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.LayerIcon, { style: { color: '#FF9800', fontSize: 16 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u8BC4\u5206\u5173\u952E\u70B9" }))] })), keyPoints.map(function (v, index) { return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ display: "flex", mb: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.CopyIcon, { style: { color: '#FFB74D', fontSize: 16, marginTop: 4 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] }))] }))] }));
|
|
32
|
+
};
|
|
33
|
+
exports.default = Suggestion;
|
|
@@ -0,0 +1,32 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
var Suggestion_1 = __importDefault(require("./Suggestion"));
|
|
19
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
20
|
+
var AiHeaderTitleV2_1 = __importDefault(require("../../../../components/AiHeaderTitleV2"));
|
|
21
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
22
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
23
|
+
var Index = function () {
|
|
24
|
+
var _a, _b, _c, _d;
|
|
25
|
+
var _e = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult]; }), reportResult = _e.reportResult, showAiDimension = _e.showAiDimension;
|
|
26
|
+
if (!showAiDimension || !((_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _a === void 0 ? void 0 : _a.show))
|
|
27
|
+
return null;
|
|
28
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-suggestion", px: 2, mt: 2, pb: 2 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: (0, jsx_runtime_1.jsx)(AiHeaderTitleV2_1.default, { name: "\u8003\u5BDF\u5EFA\u8BAE" }) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: (_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _b === void 0 ? void 0 : _b.text })), (0, jsx_runtime_1.jsx)(mui_1.Collapse, __assign({ in: true }, { children: (_d = (_c = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _c === void 0 ? void 0 : _c.abilitys) === null || _d === void 0 ? void 0 : _d.map(function (v) {
|
|
29
|
+
return (0, jsx_runtime_1.jsx)(Suggestion_1.default, { abilityName: v.abilityName, interviewQuestion: v.interviewQuestion, keyPoints: v.keyPoints }, v.abilityName);
|
|
30
|
+
}) }))] })));
|
|
31
|
+
};
|
|
32
|
+
exports.default = Index;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { CandidateInfo } from '../Candidate/Interface';
|
|
3
|
+
interface V3HeaderProps {
|
|
4
|
+
status: number;
|
|
5
|
+
customScore?: number;
|
|
6
|
+
onRefreshSuccess: () => void;
|
|
7
|
+
fetchCandidateInfo?: () => Promise<CandidateInfo>;
|
|
8
|
+
v3AssetBase?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const V3Header: ({ status, customScore, onRefreshSuccess, fetchCandidateInfo, v3AssetBase }: V3HeaderProps) => JSX.Element;
|
|
11
|
+
export default V3Header;
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
+
if (!m) return o;
|
|
16
|
+
var i = m.call(o), r, ar = [], e;
|
|
17
|
+
try {
|
|
18
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
+
}
|
|
20
|
+
catch (error) { e = { error: error }; }
|
|
21
|
+
finally {
|
|
22
|
+
try {
|
|
23
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
+
}
|
|
25
|
+
finally { if (e) throw e.error; }
|
|
26
|
+
}
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
34
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
35
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
36
|
+
var fbm_icons_1 = require("fbm-icons");
|
|
37
|
+
var ahooks_1 = require("ahooks");
|
|
38
|
+
var dayjs_1 = __importDefault(require("dayjs"));
|
|
39
|
+
var react_1 = require("react");
|
|
40
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
41
|
+
var ai_report_1 = require("../../../../services/ai-report");
|
|
42
|
+
var ai_report_2 = require("../../../../enum/ai-report");
|
|
43
|
+
var utils_1 = require("../../../../utils/utils");
|
|
44
|
+
var matchLevel = function (score) {
|
|
45
|
+
if (score >= 80)
|
|
46
|
+
return 'high';
|
|
47
|
+
if (score >= 60)
|
|
48
|
+
return 'middle';
|
|
49
|
+
return 'low';
|
|
50
|
+
};
|
|
51
|
+
var matchText = function (level) {
|
|
52
|
+
switch (level) {
|
|
53
|
+
case 'high':
|
|
54
|
+
return '非常匹配';
|
|
55
|
+
case 'middle':
|
|
56
|
+
return '中等匹配';
|
|
57
|
+
default:
|
|
58
|
+
return '匹配度低';
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var matchColor = function (level) {
|
|
62
|
+
switch (level) {
|
|
63
|
+
case 'high':
|
|
64
|
+
return '#FF8908';
|
|
65
|
+
case 'middle':
|
|
66
|
+
return '#18C01F';
|
|
67
|
+
default:
|
|
68
|
+
return '#2360FF';
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var tagColors = [
|
|
72
|
+
{ color: '#009908', bg: '#E7FBF0' },
|
|
73
|
+
{ color: '#FE9D0D', bg: '#FFF3E0' },
|
|
74
|
+
{ color: '#629CFF', bg: '#EAF2FF' },
|
|
75
|
+
{ color: '#FF6C6C', bg: '#FFEBEE' },
|
|
76
|
+
];
|
|
77
|
+
var DefaultAvatar = function () { return ((0, jsx_runtime_1.jsxs)("svg", __assign({ viewBox: "0 0 137 192", width: "100%", height: "100%", preserveAspectRatio: "xMidYMid slice" }, { children: [(0, jsx_runtime_1.jsx)("defs", { children: (0, jsx_runtime_1.jsxs)("linearGradient", __assign({ id: "avbg", x1: "0", y1: "0", x2: "0", y2: "1" }, { children: [(0, jsx_runtime_1.jsx)("stop", { offset: "0", stopColor: "#EDF4F0" }), (0, jsx_runtime_1.jsx)("stop", { offset: "1", stopColor: "#E2EEE6" })] })) }), (0, jsx_runtime_1.jsx)("rect", { width: "137", height: "192", fill: "url(#avbg)" }), (0, jsx_runtime_1.jsx)("circle", { cx: "68.5", cy: "78", r: "33", fill: "#C6D8CD" }), (0, jsx_runtime_1.jsx)("path", { d: "M26 192c4-45 22-64 42.5-64s38.5 19 42.5 64z", fill: "#C6D8CD" })] }))); };
|
|
78
|
+
var V3Header = function (_a) {
|
|
79
|
+
var _b;
|
|
80
|
+
var status = _a.status, customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess, fetchCandidateInfo = _a.fetchCandidateInfo, _c = _a.v3AssetBase, v3AssetBase = _c === void 0 ? '' : _c;
|
|
81
|
+
var _d = (0, global_store_1.useAiReportStore)(function (store) { return [store.token, store.reportResult, store.operableButtons]; }), token = _d.token, reportResult = _d.reportResult, operableButtons = _d.operableButtons;
|
|
82
|
+
var _e = reportResult || {}, _f = _e.score, score = _f === void 0 ? 0 : _f, _g = _e.createTime, createTime = _g === void 0 ? 0 : _g, _h = _e.steps, steps = _h === void 0 ? [] : _h, _j = _e.tags, tags = _j === void 0 ? [] : _j, candidateInfo = _e.candidateInfo;
|
|
83
|
+
var _k = __read((0, react_1.useState)(score || 0), 2), feScore = _k[0], setFeScore = _k[1];
|
|
84
|
+
var _l = __read((0, react_1.useState)(false), 2), openRefresh = _l[0], setOpenRefresh = _l[1];
|
|
85
|
+
var _m = __read((0, react_1.useState)(null), 2), candidate = _m[0], setCandidate = _m[1];
|
|
86
|
+
var _o = __read((0, react_1.useState)(false), 2), avatarErr = _o[0], setAvatarErr = _o[1];
|
|
87
|
+
var _p = (0, ahooks_1.useRequest)(function () { return (0, ai_report_1.PostAiInterviewRefresh)(token); }, {
|
|
88
|
+
manual: true,
|
|
89
|
+
onSuccess: function () {
|
|
90
|
+
onRefreshSuccess();
|
|
91
|
+
fbm_ui_1.Message.success('刷新成功');
|
|
92
|
+
},
|
|
93
|
+
}), run = _p.run, loading = _p.loading;
|
|
94
|
+
(0, react_1.useEffect)(function () {
|
|
95
|
+
if (candidateInfo)
|
|
96
|
+
setCandidate(__assign(__assign({}, candidateInfo), { tags: (candidateInfo.tags || []) }));
|
|
97
|
+
}, [candidateInfo]);
|
|
98
|
+
(0, react_1.useEffect)(function () {
|
|
99
|
+
setAvatarErr(false);
|
|
100
|
+
}, [candidate === null || candidate === void 0 ? void 0 : candidate.avatar]);
|
|
101
|
+
(0, react_1.useEffect)(function () {
|
|
102
|
+
if (!fetchCandidateInfo)
|
|
103
|
+
return;
|
|
104
|
+
fetchCandidateInfo()
|
|
105
|
+
.then(setCandidate)
|
|
106
|
+
.catch(function () { return fbm_ui_1.Message.error('获取候选人信息失败'); });
|
|
107
|
+
}, [fetchCandidateInfo]);
|
|
108
|
+
(0, react_1.useEffect)(function () {
|
|
109
|
+
if (typeof customScore === 'number' && customScore > -1) {
|
|
110
|
+
setFeScore(customScore);
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
setFeScore(score || 0);
|
|
114
|
+
}
|
|
115
|
+
if (!loading)
|
|
116
|
+
setOpenRefresh(false);
|
|
117
|
+
}, [customScore, score, loading]);
|
|
118
|
+
var durationSeconds = (0, react_1.useMemo)(function () { return (steps || []).reduce(function (acc, step) { var _a, _b; return acc + (((_b = (_a = step.answer) === null || _a === void 0 ? void 0 : _a.media) === null || _b === void 0 ? void 0 : _b.durationTime) || 0); }, 0); }, [steps]);
|
|
119
|
+
var durationText = (0, react_1.useMemo)(function () {
|
|
120
|
+
var m = Math.floor(durationSeconds / 60);
|
|
121
|
+
var s = durationSeconds % 60;
|
|
122
|
+
return "".concat(String(m).padStart(2, '0'), ":").concat(String(s).padStart(2, '0'));
|
|
123
|
+
}, [durationSeconds]);
|
|
124
|
+
var level = matchLevel(feScore);
|
|
125
|
+
var labelFile = level === 'high' ? 'high' : level === 'middle' ? 'mid' : 'low';
|
|
126
|
+
var showTags = ((_b = candidate === null || candidate === void 0 ? void 0 : candidate.tags) === null || _b === void 0 ? void 0 : _b.length) ? candidate.tags : (tags === null || tags === void 0 ? void 0 : tags.length) ? tags.map(function (t) { return ({ name: t.name, token: t.token }); }) : [];
|
|
127
|
+
var refreshContent = ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ padding: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.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" })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ paddingTop: 1, textAlign: "right" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ loading: loading, onClick: run }, { children: "\u5237\u65B0" })) }))] })));
|
|
128
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ id: "report-header", sx: {
|
|
129
|
+
backgroundColor: '#fff',
|
|
130
|
+
backgroundImage: v3AssetBase ? "url('".concat(v3AssetBase, "/01_background.png')") : undefined,
|
|
131
|
+
backgroundRepeat: 'no-repeat',
|
|
132
|
+
backgroundSize: '100% auto',
|
|
133
|
+
backgroundPosition: 'top center',
|
|
134
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ sx: {
|
|
135
|
+
px: 3,
|
|
136
|
+
pt: 2,
|
|
137
|
+
pb: 1.5,
|
|
138
|
+
} }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 1.5 }, { children: [v3AssetBase && (0, jsx_runtime_1.jsx)("img", { src: "".concat(v3AssetBase, "/02_logo.png"), alt: "", width: 18, height: 30 }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ sx: {
|
|
139
|
+
fontFamily: 'TBMCYXT, "Source Han Sans", sans-serif',
|
|
140
|
+
fontWeight: 400,
|
|
141
|
+
fontSize: 28,
|
|
142
|
+
lineHeight: '39px',
|
|
143
|
+
color: 'rgba(0,0,0,0.86)',
|
|
144
|
+
} }, { children: "AI\u9762\u8BD5\u62A5\u544A" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(74,74,74,0.72)", sx: { ml: 1 } }, { children: ["\u62A5\u544A\u751F\u6210\u65F6\u95F4\uFF1A", (0, dayjs_1.default)(createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Popover, __assign({ open: openRefresh, content: refreshContent, onClickAway: function () { return setOpenRefresh(false); } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ onClick: function () { return setOpenRefresh(true); }, size: "small" }, { children: (0, jsx_runtime_1.jsx)(fbm_icons_1.RefreshIcon, { sx: { color: '#009908' } }) })) })))] })) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ sx: { px: 3, py: 2 } }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 3 }, { children: [(0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ width: 137, height: 170, borderRadius: 2, overflow: "hidden", flexShrink: 0, display: "flex", alignItems: "center", justifyContent: "center", bgcolor: "#F2F5F3" }, { children: (candidate === null || candidate === void 0 ? void 0 : candidate.avatar) && !avatarErr ? ((0, jsx_runtime_1.jsx)("img", { src: candidate.avatar, alt: "", onError: function () { return setAvatarErr(true); }, style: { width: '100%', height: '100%', objectFit: 'cover' } })) : ((0, jsx_runtime_1.jsx)(DefaultAvatar, {})) })), (0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ flex: "1 1 auto", minWidth: 0, sx: {
|
|
145
|
+
background: '#FBFDFC',
|
|
146
|
+
borderRadius: 2,
|
|
147
|
+
px: 2,
|
|
148
|
+
py: 1.5,
|
|
149
|
+
border: '1px solid #EEF6F1',
|
|
150
|
+
alignSelf: 'stretch',
|
|
151
|
+
display: 'flex',
|
|
152
|
+
flexDirection: 'column',
|
|
153
|
+
justifyContent: 'center',
|
|
154
|
+
} }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 3 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ flex: "1 1 auto", minWidth: 0 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "subtitle1", fontWeight: "bold", sx: { fontSize: 18, color: 'rgba(0,0,0,0.86)' } }, { children: (candidate === null || candidate === void 0 ? void 0 : candidate.positionName) || '' })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", sx: { color: 'rgba(0,0,0,0.6)', mt: 0.5 } }, { children: [(candidate === null || candidate === void 0 ? void 0 : candidate.name) || '', " ", (candidate === null || candidate === void 0 ? void 0 : candidate.mobile) || ''] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(0,0,0,0.6)", mt: 1 }, { children: ["\u9762\u8BD5\u65F6\u957F\uFF1A", durationText] })), showTags && showTags.length > 0 && ((0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", flexWrap: "wrap", gap: 1, mt: 1 }, { children: showTags.map(function (tag, i) {
|
|
155
|
+
var color = tagColors[i % tagColors.length];
|
|
156
|
+
return ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ px: 1.2, py: 0.3, borderRadius: 10, sx: { color: color.color, bgcolor: color.bg } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: tag.name })) }), tag.token || tag.name));
|
|
157
|
+
}) })))] })), (0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ alignItems: "flex-end", sx: { display: 'flex', flexDirection: 'column', alignItems: 'flex-end', minWidth: 160 } }, { children: [status === ai_report_2.INTERVIEW_STATUS.COMPLETED && v3AssetBase ? ((0, jsx_runtime_1.jsx)("img", { src: "".concat(v3AssetBase, "/label_").concat(labelFile, ".png"), alt: matchText(level), width: 134, height: 42 })) : ((0, jsx_runtime_1.jsx)(mui_1.Box, __assign({ sx: { bgcolor: matchColor(level), px: 2, py: 0.75, borderRadius: 2, display: 'inline-flex', alignItems: 'center' } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ sx: { color: '#fff', fontSize: 18, fontWeight: 600 } }, { children: status === ai_report_2.INTERVIEW_STATUS.COMPLETED ? matchText(level) : '计算中' })) }))), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "baseline", spacing: 0.5, mt: 1 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(0,0,0,0.3)", fontWeight: 700 }, { children: "\u603B\u5206\uFF1A" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ sx: { fontFamily: 'TBMCYXT, sans-serif', fontWeight: 800, fontSize: 40, lineHeight: 1, color: matchColor(level) } }, { children: (0, utils_1.formatScore)(feScore) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(0,0,0,0.3)", fontWeight: 700 }, { children: "\u5206" }))] })), v3AssetBase && (0, jsx_runtime_1.jsx)("img", { src: "".concat(v3AssetBase, "/04_path.png"), alt: "", width: 110, height: 12 })] }))] })) }))] })) }))] })));
|
|
158
|
+
};
|
|
159
|
+
exports.default = V3Header;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
|
+
var ScoreSlider_1 = __importDefault(require("./ScoreSlider"));
|
|
19
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
20
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
21
|
+
var immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
22
|
+
var react_1 = require("react");
|
|
23
|
+
var Abilities = function (_a) {
|
|
24
|
+
var stepIndex = _a.stepIndex, disabledScore = _a.disabledScore;
|
|
25
|
+
var _b = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult]; }), reportResult = _b.reportResult, updateReportResult = _b.updateReportResult, onScoreChange = _b.onScoreChange;
|
|
26
|
+
var steps = (reportResult || {}).steps;
|
|
27
|
+
var handleChangeCommitted = (0, react_1.useCallback)(function (score, index, type) {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
if (disabledScore)
|
|
30
|
+
return;
|
|
31
|
+
var newSteps = (0, immutability_helper_1.default)(steps, (_a = {}, _a[stepIndex] = { scoreInfo: { abilities: (_b = {}, _b[index] = { finalScore: { $set: score } }, _b) } }, _a));
|
|
32
|
+
updateReportResult(__assign(__assign({}, reportResult), { steps: newSteps }));
|
|
33
|
+
onScoreChange &&
|
|
34
|
+
onScoreChange({
|
|
35
|
+
flowStepToken: steps ? steps[stepIndex].token : '',
|
|
36
|
+
aiAbilityChangeType: steps && steps[stepIndex].scoreInfo.abilities[index].type,
|
|
37
|
+
type: 2,
|
|
38
|
+
score: score,
|
|
39
|
+
});
|
|
40
|
+
}, [stepIndex, reportResult, steps, updateReportResult, onScoreChange, disabledScore]);
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 1 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.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" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 3 }, { children: steps &&
|
|
42
|
+
steps[stepIndex].scoreInfo.abilities.map(function (_a, index) {
|
|
43
|
+
var name = _a.name, originScore = _a.originScore, finalScore = _a.finalScore;
|
|
44
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2" }, { children: name })), (0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { width: 604, disabledScore: disabledScore, isShowLabel: true, originScore: originScore, finalScore: finalScore, valueLabelDisplay: "".concat(disabledScore ? 'off' : 'auto'), onChangeCommitted: function (score) { return handleChangeCommitted(score, index, 'ability'); } })] }, name));
|
|
45
|
+
}) }))] })));
|
|
46
|
+
};
|
|
47
|
+
exports.default = Abilities;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
+
if (!m) return o;
|
|
16
|
+
var i = m.call(o), r, ar = [], e;
|
|
17
|
+
try {
|
|
18
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
+
}
|
|
20
|
+
catch (error) { e = { error: error }; }
|
|
21
|
+
finally {
|
|
22
|
+
try {
|
|
23
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
+
}
|
|
25
|
+
finally { if (e) throw e.error; }
|
|
26
|
+
}
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
30
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
34
|
+
var styled_1 = require("./styled");
|
|
35
|
+
var react_photo_view_1 = require("../../../../components/react-photo-view");
|
|
36
|
+
require("../../../../components/react-photo-view/Photo");
|
|
37
|
+
var PhotoPage_1 = __importDefault(require("../../../../components/react-photo-view/PhotoPage"));
|
|
38
|
+
require("../../../../components/react-photo-view/PhotoSlider");
|
|
39
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
40
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
41
|
+
var react_1 = require("react");
|
|
42
|
+
var BodyImages = function (_a) {
|
|
43
|
+
var reviewImgs = _a.reviewImgs;
|
|
44
|
+
var _b = __read((0, react_1.useState)(false), 2), visible = _b[0], setVisible = _b[1];
|
|
45
|
+
var _c = __read((0, react_1.useState)(0), 2), index = _c[0], setIndex = _c[1];
|
|
46
|
+
var handleSelected = (0, react_1.useCallback)(function (_, i) {
|
|
47
|
+
setIndex(i);
|
|
48
|
+
setVisible(true);
|
|
49
|
+
}, []);
|
|
50
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ spacing: 2, direction: "row" }, { children: reviewImgs === null || reviewImgs === void 0 ? void 0 : reviewImgs.map(function (_a, i) {
|
|
51
|
+
var url = _a.url, title = _a.title;
|
|
52
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 0.5, onClick: function () {
|
|
53
|
+
setIndex(i);
|
|
54
|
+
setVisible(true);
|
|
55
|
+
} }, { children: [(0, jsx_runtime_1.jsx)(styled_1.Image, { src: url, alt: "" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary", textAlign: "center" }, { children: title }))] }), url));
|
|
56
|
+
}) })), (0, jsx_runtime_1.jsx)(react_photo_view_1.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) {
|
|
57
|
+
var images = _a.images, index = _a.index;
|
|
58
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { width: 1, position: 'absolute', bottom: 0, zIndex: 50 } }, { children: (0, jsx_runtime_1.jsx)(PhotoPage_1.default, { onSelected: handleSelected, images: images, index: index }) })));
|
|
59
|
+
} })] }));
|
|
60
|
+
};
|
|
61
|
+
exports.default = BodyImages;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type Mode = 'edit' | 'show';
|
|
3
|
+
interface EvaluateProps {
|
|
4
|
+
title: string;
|
|
5
|
+
token: string;
|
|
6
|
+
evaluation: string;
|
|
7
|
+
mode?: Mode;
|
|
8
|
+
canEdit?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Evaluate: React.FC<EvaluateProps>;
|
|
11
|
+
export default Evaluate;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
14
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
15
|
+
if (!m) return o;
|
|
16
|
+
var i = m.call(o), r, ar = [], e;
|
|
17
|
+
try {
|
|
18
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
19
|
+
}
|
|
20
|
+
catch (error) { e = { error: error }; }
|
|
21
|
+
finally {
|
|
22
|
+
try {
|
|
23
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
24
|
+
}
|
|
25
|
+
finally { if (e) throw e.error; }
|
|
26
|
+
}
|
|
27
|
+
return ar;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
31
|
+
var ai_report_1 = require("../../../../services/ai-report");
|
|
32
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
33
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
34
|
+
var react_1 = require("react");
|
|
35
|
+
var Evaluate = function (_a) {
|
|
36
|
+
var title = _a.title, evaluation = _a.evaluation, token = _a.token, _b = _a.mode, mode = _b === void 0 ? 'show' : _b;
|
|
37
|
+
var _c = __read((0, react_1.useState)(evaluation), 2), content = _c[0], setContent = _c[1];
|
|
38
|
+
var _d = __read((0, react_1.useState)('show'), 2), internalMode = _d[0], setInternalMode = _d[1];
|
|
39
|
+
var handleChange = (0, react_1.useCallback)(function (e) {
|
|
40
|
+
var value = e.target.value;
|
|
41
|
+
setContent(value);
|
|
42
|
+
}, []);
|
|
43
|
+
var handleModeChange = (0, react_1.useCallback)(function () {
|
|
44
|
+
setInternalMode(internalMode === 'show' ? 'edit' : 'show');
|
|
45
|
+
}, [internalMode]);
|
|
46
|
+
var isValidate = (0, react_1.useMemo)(function () {
|
|
47
|
+
return content.trim().length > 0;
|
|
48
|
+
}, [content]);
|
|
49
|
+
var handleSubmit = (0, react_1.useCallback)(function () {
|
|
50
|
+
if (!isValidate)
|
|
51
|
+
return;
|
|
52
|
+
(0, fbm_ui_1.confirm)({
|
|
53
|
+
header: null,
|
|
54
|
+
content: '确认将评价内容修改吗?该动作无法被撤销。',
|
|
55
|
+
okText: '修改',
|
|
56
|
+
okProps: {
|
|
57
|
+
color: 'error',
|
|
58
|
+
variant: 'contained',
|
|
59
|
+
},
|
|
60
|
+
onOk: function (_a) {
|
|
61
|
+
var onClose = _a.onClose;
|
|
62
|
+
var data = {
|
|
63
|
+
flowStepToken: token,
|
|
64
|
+
scoreManualEvaluation: content,
|
|
65
|
+
};
|
|
66
|
+
(0, ai_report_1.PostInterviewEvaluation)(data).then(handleModeChange).then(onClose).catch(console.error);
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
}, [isValidate, token, content, handleModeChange]);
|
|
70
|
+
(0, react_1.useEffect)(function () {
|
|
71
|
+
setInternalMode(mode);
|
|
72
|
+
}, [mode]);
|
|
73
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", justifyContent: "space-between", height: 36, mb: 1 }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: 700, sx: { color: '#4caf50' } }, { children: title })) })), internalMode === 'edit' && ((0, jsx_runtime_1.jsxs)(mui_1.Box, __assign({ width: 1, pr: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.FormItem, { sx: { height: 'auto', pr: 0 }, multiline: true, rows: 3.5, required: true, name: "name", placeholder: "", value: content, error: !isValidate, onChange: handleChange }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ boxSizing: "border-box", mr: 2, mt: 1, spacing: 1, direction: "row", width: 1, justifyContent: "flex-end" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ size: "medium", variant: "text", color: "secondary", onClick: function () {
|
|
74
|
+
handleModeChange();
|
|
75
|
+
setContent(evaluation);
|
|
76
|
+
} }, { children: "\u53D6\u6D88" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ size: "medium", onClick: handleSubmit }, { children: "\u4FDD\u5B58" }))] }))] }))), internalMode === 'show' && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { variant: "body2", sx: {
|
|
77
|
+
color: '#424242',
|
|
78
|
+
whiteSpace: 'pre-wrap',
|
|
79
|
+
}, dangerouslySetInnerHTML: { __html: content } }))] }));
|
|
80
|
+
};
|
|
81
|
+
exports.default = Evaluate;
|