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,150 @@
|
|
|
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 react_1 = require("react");
|
|
34
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
35
|
+
var styled_1 = require("../styled");
|
|
36
|
+
var Abilities_1 = __importDefault(require("./Abilities"));
|
|
37
|
+
var BodyImages_1 = __importDefault(require("./BodyImages"));
|
|
38
|
+
var Evaluate_1 = __importDefault(require("./Evaluate"));
|
|
39
|
+
var ScoreSlider_1 = __importDefault(require("./ScoreSlider"));
|
|
40
|
+
var SingleChoice_1 = __importDefault(require("./SingleChoice"));
|
|
41
|
+
var styled_2 = require("./styled");
|
|
42
|
+
var Workplaces_1 = __importDefault(require("./Workplaces"));
|
|
43
|
+
var ai_question_1 = require("../../../../enum/ai-question");
|
|
44
|
+
var ai_report_1 = require("../../../../enum/ai-report");
|
|
45
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
46
|
+
var utils_1 = require("../../../../utils/utils");
|
|
47
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
48
|
+
var ThemeProvider_1 = require("fbm-ui/lib/components/ThemeProvider");
|
|
49
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
50
|
+
var immutability_helper_1 = __importDefault(require("immutability-helper"));
|
|
51
|
+
var react_2 = require("react");
|
|
52
|
+
var isShowVideoMessage = function (type) { return [ai_question_1.QUESTION_TYPE.SINGLECHIOCE, ai_question_1.QUESTION_TYPE.ALPHABETIC_DICTATION, ai_question_1.QUESTION_TYPE.COLOR_BLINDNESS].includes(type); };
|
|
53
|
+
var STEP_NO_ANSWER = ai_report_1.INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = ai_report_1.INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = ai_report_1.INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
|
|
54
|
+
var QuestionItem = function (props) {
|
|
55
|
+
var token = props.token, reviewImgs = props.reviewImgs, followupQuestions = props.followupQuestions, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, posterUrl = _a.posterUrl, _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, workplaceEvaluation = _c.workplaceEvaluation, workplaceName = _c.workplaceName, isExportPdf = props.isExportPdf;
|
|
56
|
+
var _d = __read((0, react_2.useState)(false), 2), showAbilities = _d[0], setShowAbilities = _d[1];
|
|
57
|
+
var _e = (0, global_store_1.useAiReportStore)(function (store) { return [
|
|
58
|
+
store.reportResult,
|
|
59
|
+
store.stepToken,
|
|
60
|
+
store.operableButtons,
|
|
61
|
+
store.showAbilitiesDetails,
|
|
62
|
+
]; }), reportResult = _e.reportResult, operableButtons = _e.operableButtons, showAbilitiesDetails = _e.showAbilitiesDetails, updateReportResult = _e.updateReportResult, onScoreChange = _e.onScoreChange, canEditAiDimension = _e.canEditAiDimension;
|
|
63
|
+
var v3AssetBase = ((0, global_store_1.useAiReportStore)().v3AssetBase || '');
|
|
64
|
+
var _f = reportResult || {}, steps = _f.steps, isSimulated = _f.isSimulated;
|
|
65
|
+
var quoteIconSrc = v3AssetBase ? "".concat(v3AssetBase, "/14_quote.png") : '//webcdn.fbmms.cn/assets/OYDO/1-c2bdx4v1upzLDJ4Ko-c';
|
|
66
|
+
var _g = __read((0, react_2.useState)('show'), 2), internalMode = _g[0], setInternalMode = _g[1];
|
|
67
|
+
var handleModeChange = (0, react_2.useCallback)(function () {
|
|
68
|
+
setInternalMode(internalMode === 'show' ? 'edit' : 'show');
|
|
69
|
+
}, [internalMode]);
|
|
70
|
+
var isAbilities = operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('abilities');
|
|
71
|
+
var isExistWeight = Number(weight) > 0;
|
|
72
|
+
var showScoreBlock = status === STEP_COMPLETED;
|
|
73
|
+
var isShowAbilitiesButton = abilities.length > 0 && isAbilities && !showAbilitiesDetails;
|
|
74
|
+
var isShowAbilitiesDetails = abilities.length > 0 && (showAbilities || showAbilitiesDetails);
|
|
75
|
+
var isSingleChoice = aiShowType === ai_question_1.ADD_QUESTION_TYPE.SINGLECHIOCE;
|
|
76
|
+
var comprehensiveScore = (0, react_2.useMemo)(function () {
|
|
77
|
+
if (status === STEP_COMPLETED) {
|
|
78
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", color: ThemeProvider_1.theme.palette.primary.main, fontSize: 16, fontWeight: 500 }, { children: [(0, utils_1.formatScore)(score), "\u5206"] })));
|
|
79
|
+
}
|
|
80
|
+
else if (status === STEP_NO_ANSWER) {
|
|
81
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "rgba(0,0,0,0.26)", fontSize: 16, fontWeight: 500 }, { children: "\u672A\u4F5C\u7B54" })));
|
|
82
|
+
}
|
|
83
|
+
else if (status === STEP_IN_CALCULATION) {
|
|
84
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "#4CAF50", fontSize: 16, fontWeight: 500 }, { children: "\u8BA1\u7B97\u4E2D" })));
|
|
85
|
+
}
|
|
86
|
+
else if (status === STEP_FAILED) {
|
|
87
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "error", fontSize: 16, fontWeight: 500 }, { children: "\u8BA1\u7B97\u5931\u8D25" })));
|
|
88
|
+
}
|
|
89
|
+
}, [score, status]);
|
|
90
|
+
var renderText = (0, react_2.useMemo)(function () {
|
|
91
|
+
var keyPointAnalysis = analysisResult[6];
|
|
92
|
+
if (keyPointAnalysis && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.text)) {
|
|
93
|
+
var content_1 = analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.text;
|
|
94
|
+
Object.entries(keyPointAnalysis).forEach(function (_a) {
|
|
95
|
+
var _b = __read(_a, 2), keyword = _b[0], config = _b[1];
|
|
96
|
+
content_1 = (0, utils_1.highlighKeywords)(content_1, keyword, config.color);
|
|
97
|
+
});
|
|
98
|
+
return content_1;
|
|
99
|
+
}
|
|
100
|
+
if (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.letter) {
|
|
101
|
+
return "\u6B63\u786E\u7B54\u6848\uFF1A".concat(analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.letter, " <br/> \u56DE\u7B54\uFF1A").concat(analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer);
|
|
102
|
+
}
|
|
103
|
+
return analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.text;
|
|
104
|
+
}, [analysisResult]);
|
|
105
|
+
var handleChangeCommitted = (0, react_2.useCallback)(function (score) {
|
|
106
|
+
var _a;
|
|
107
|
+
if (isSingleChoice)
|
|
108
|
+
return;
|
|
109
|
+
var newSteps = (0, immutability_helper_1.default)(steps, (_a = {}, _a[index] = { scoreInfo: { finalScore: { $set: score } } }, _a));
|
|
110
|
+
updateReportResult(__assign(__assign({}, reportResult), { steps: newSteps }));
|
|
111
|
+
onScoreChange &&
|
|
112
|
+
onScoreChange({
|
|
113
|
+
flowStepToken: steps ? steps[index].token : '',
|
|
114
|
+
type: 1,
|
|
115
|
+
score: score,
|
|
116
|
+
});
|
|
117
|
+
}, [index, reportResult, steps, updateReportResult, onScoreChange, isSingleChoice]);
|
|
118
|
+
var handleVideoClick = (0, react_2.useCallback)(function () {
|
|
119
|
+
// 如果没有视频URL且符合显示错误消息的条件,则显示错误提示
|
|
120
|
+
if (!videoUrl && isShowVideoMessage(type)) {
|
|
121
|
+
fbm_ui_1.Message.error('因候选人回答时长过短,未获取到题目视频。');
|
|
122
|
+
}
|
|
123
|
+
// 其他视频点击逻辑可以在这里处理
|
|
124
|
+
}, [videoUrl, type]);
|
|
125
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ component: mui_1.Paper, elevation: 1, sx: {
|
|
126
|
+
padding: '16px 16px',
|
|
127
|
+
mt: 2,
|
|
128
|
+
background: '#fff',
|
|
129
|
+
mx: 1,
|
|
130
|
+
borderRadius: '12px',
|
|
131
|
+
position: 'relative',
|
|
132
|
+
} }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", spacing: 4 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ flex: 1, mt: 1 }, { children: [(0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: {
|
|
133
|
+
background: '#4EC953',
|
|
134
|
+
color: '#fff',
|
|
135
|
+
borderRadius: 6,
|
|
136
|
+
boxShadow: '4px 0px 8px 0px rgba(78,201,83,0.3)',
|
|
137
|
+
width: 33,
|
|
138
|
+
height: 20,
|
|
139
|
+
display: 'flex',
|
|
140
|
+
alignItems: 'center',
|
|
141
|
+
justifyContent: 'center',
|
|
142
|
+
fontSize: 16,
|
|
143
|
+
flexShrink: 0,
|
|
144
|
+
} }, { children: index + 1 })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ ml: 1.5, variant: "body2", sx: { color: '#03BA4C', fontSize: 14, lineHeight: '21px' } }, { children: desc }))] })), (0, jsx_runtime_1.jsxs)(styled_2.QuestionDesc, { children: [(0, jsx_runtime_1.jsx)(BodyImages_1.default, { reviewImgs: reviewImgs }), (0, jsx_runtime_1.jsx)("img", { className: "MuiSvgIcon-root", src: quoteIconSrc, alt: "", width: 20, height: 15 }), status === STEP_IN_CALCULATION ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [isSingleChoice && (0, jsx_runtime_1.jsx)(SingleChoice_1.default, { options: options || [], selected: (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.selected) || [] }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 12, lineHeight: '18px' }, dangerouslySetInnerHTML: { __html: renderText } }), type === ai_question_1.QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", 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, followupIndex) {
|
|
145
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ mt: 1, variant: "body2", sx: { color: '#03BA4C', fontSize: 14 } }, { children: "\u8FFD\u95EE\uFF1A".concat(v === null || v === void 0 ? void 0 : v.desc) })), (0, jsx_runtime_1.jsxs)(styled_2.QuestionDesc, { children: [(0, jsx_runtime_1.jsx)("img", { className: "MuiSvgIcon-root", src: quoteIconSrc, alt: "", width: 20, height: 15 }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 12 }, ml: 1 }, { children: v === null || v === void 0 ? void 0 : v.answer }))] })] }, "followup-".concat(index, "-").concat(followupIndex)));
|
|
146
|
+
})] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ position: "relative" }, { children: [isExportPdf && ((0, jsx_runtime_1.jsx)(styled_1.ExportButton, __assign({ href: videoUrl, target: "_blank" }, { children: (0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/assets/htyk/jjn4TDJ1eW5akU_lblzYe", alt: "", style: { width: 166, height: 296 } }) }))), !isExportPdf && ((0, jsx_runtime_1.jsx)(styled_1.Video, { src: videoUrl, poster: posterUrl, onClick: handleVideoClick, width: 135, onPlay: function (event) {
|
|
147
|
+
document.querySelectorAll('video').forEach(function (v) { return v !== event.target && v.pause(); });
|
|
148
|
+
} }))] }))] })), isExistWeight && status !== STEP_COMPLETED && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center", pl: 2 }, { children: workplaceName && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 0.5, mb: 1 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ sx: { color: '#03BA4C', fontSize: 14 }, variant: "body2", fontWeight: "500" }, { children: "\u8003\u6838\u70B9\uFF1A" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { fontSize: 14, color: 'rgba(0,0,0,0.8)' } }, { children: workplaceName }))] }))) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 150, textAlign: "right" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500, noWrap: true, display: "flex" }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), showScoreBlock && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ mt: 3, spacing: 1, sx: { position: 'relative' } }, { children: [canEditAiDimension && ((workplaceEvaluation && !isSimulated) || (isSimulated && abilities.length > 0)) && ((0, jsx_runtime_1.jsx)("img", { onClick: handleModeChange, src: "//webcdn.fbmms.cn/assets/CVlD/V8fHAovf4X6wfXN75KkI9", alt: "", style: { width: 36, height: 36, position: 'absolute', top: 0, right: 0, cursor: 'pointer' } })), workplaceName && ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", alignItems: "center", spacing: 0.5, mb: 1 }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ sx: { color: '#03BA4C', fontSize: 14 }, variant: "body2", fontWeight: "500" }, { children: "\u8003\u6838\u70B9\uFF1A" })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { fontSize: 14, color: 'rgba(0,0,0,0.8)' } }, { children: workplaceName }))] }))), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ mt: 2, display: "flex" }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", mr: 4, sx: { color: 'rgba(0,0,0,0.6)' } }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)' } }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(ScoreSlider_1.default, { valueLabelDisplay: "".concat(isSingleChoice ? 'off' : 'auto'), originScore: originScore, disabledScore: isSingleChoice, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "text", size: "small", sx: { color: 'rgba(0,0,0,0.6)' }, style: { whiteSpace: 'nowrap', marginLeft: 8 }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ width: 150, textAlign: "right" }, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: 500, noWrap: true, display: "flex" }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] })), isShowAbilitiesDetails && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { border: '1px solid #E7F4EC', borderRadius: 2, p: 1.5, mt: 1 } }, { children: (0, jsx_runtime_1.jsx)(Abilities_1.default, { stepIndex: index, disabledScore: isSingleChoice }) }))), isSimulated && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: abilities.map(function (v) { return ((0, react_1.createElement)(Workplaces_1.default, __assign({}, v, { key: v.token, mode: internalMode, token: token }))); }) })), workplaceEvaluation && !isSimulated && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Evaluate_1.default, { token: token, evaluation: workplaceEvaluation, title: " AI\u8BC4\u4EF7", mode: internalMode }) }))] })))] }), token));
|
|
149
|
+
};
|
|
150
|
+
exports.default = QuestionItem;
|
|
@@ -0,0 +1,49 @@
|
|
|
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 styled_1 = require("./styled");
|
|
32
|
+
// import { scoreRankIntervalColors } from '@constants/ai-report';
|
|
33
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
34
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
35
|
+
var react_1 = require("react");
|
|
36
|
+
var ScoreSlider = function (props) {
|
|
37
|
+
var _a = props.width, width = _a === void 0 ? 504 : _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;
|
|
38
|
+
var aiScore = originScore.toFixed(0);
|
|
39
|
+
var _f = __read((0, react_1.useState)(0), 2), score = _f[0], setScore = _f[1];
|
|
40
|
+
var disabledScore = (0, global_store_1.useAiReportStore)(function (store) { return [store.disabledScore, store.scoreRankIntervals]; }).disabledScore;
|
|
41
|
+
var handleScoreChange = (0, react_1.useCallback)(function (e, v) {
|
|
42
|
+
!disabledScore && !sliderDisabledScore && setScore(v);
|
|
43
|
+
}, [disabledScore, sliderDisabledScore]);
|
|
44
|
+
(0, react_1.useEffect)(function () {
|
|
45
|
+
setScore(Number(finalScore.toFixed(0)));
|
|
46
|
+
}, [finalScore]);
|
|
47
|
+
return ((0, jsx_runtime_1.jsxs)(styled_1.ScoreSliderRoot, __assign({ width: width }, { children: [isShowScoreRank && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: "AI\u5F97\u5206\uFF1A".concat(aiScore), placement: "top" }, { children: (0, jsx_runtime_1.jsx)(styled_1.AiScoreRoot, { sx: { left: "calc(".concat(aiScore, "% - 12px)") } }) })) })), (0, jsx_runtime_1.jsx)(styled_1.StyledSlider, { valueLabelDisplay: valueLabelDisplay, value: score, onChange: handleScoreChange, onChangeCommitted: function () { return onChangeCommitted(score); } }), isShowLabel && ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ width: 70, flexShrink: 0, textAlign: "right", variant: "body2" }, { children: [score, "\u5206"] })))] })));
|
|
48
|
+
};
|
|
49
|
+
exports.default = ScoreSlider;
|
|
@@ -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 SingleChoice = function (_a) {
|
|
18
|
+
var options = _a.options, selected = _a.selected;
|
|
19
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Layout, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.RadioGroup, __assign({ row: false, value: selected === null || selected === void 0 ? void 0 : selected[0], color: "primary", sx: {
|
|
20
|
+
'& .MuiFormControlLabel-label': {
|
|
21
|
+
width: '100%',
|
|
22
|
+
},
|
|
23
|
+
} }, { children: options.map(function (v, i) {
|
|
24
|
+
return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Radio
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
, {
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
FormControlLabelProps: {
|
|
29
|
+
sx: { pointerEvents: 'none' },
|
|
30
|
+
}, value: i, label: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ color: "".concat(i === selected[0] ? '#4caf50' : 'rgba(0,0,0,.56)'), fontWeight: "".concat(i === selected[0] ? 'medium' : 'normal'), width: "100%", direction: "row", spacing: 1, alignItems: "center", justifyContent: "space-between" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption", flexWrap: "wrap", sx: { wordBreak: 'break-all' } }, { children: v.content })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ color: "inherit", fontWeight: "inherit", variant: "caption", flexShrink: 0 }, { children: [v.score, "\u5206"] }))] })) }, i));
|
|
31
|
+
}) })) }));
|
|
32
|
+
};
|
|
33
|
+
exports.default = SingleChoice;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
declare type Mode = 'edit' | 'show';
|
|
3
|
+
interface WorkplacesProps {
|
|
4
|
+
token: string;
|
|
5
|
+
suggestionAnswer: string;
|
|
6
|
+
referenceAnswer: string;
|
|
7
|
+
mode?: Mode;
|
|
8
|
+
}
|
|
9
|
+
declare const Workplaces: FC<WorkplacesProps>;
|
|
10
|
+
export default Workplaces;
|
|
@@ -0,0 +1,93 @@
|
|
|
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 Workplaces = function (_a) {
|
|
36
|
+
var token = _a.token, suggestionAnswer = _a.suggestionAnswer, referenceAnswer = _a.referenceAnswer, _b = _a.mode, mode = _b === void 0 ? 'show' : _b;
|
|
37
|
+
var _c = __read((0, react_1.useState)(suggestionAnswer), 2), suggestionAnswerContent = _c[0], setSuggestionAnswerContent = _c[1];
|
|
38
|
+
var _d = __read((0, react_1.useState)(referenceAnswer), 2), referenceAnswerContent = _d[0], setReferenceAnswerContent = _d[1];
|
|
39
|
+
var _e = __read((0, react_1.useState)('show'), 2), internalMode = _e[0], setInternalMode = _e[1];
|
|
40
|
+
var handleSuggestionChange = (0, react_1.useCallback)(function (e) {
|
|
41
|
+
var value = e.target.value;
|
|
42
|
+
setSuggestionAnswerContent(value);
|
|
43
|
+
}, []);
|
|
44
|
+
var handleReferenceChange = (0, react_1.useCallback)(function (e) {
|
|
45
|
+
var value = e.target.value;
|
|
46
|
+
setReferenceAnswerContent(value);
|
|
47
|
+
}, []);
|
|
48
|
+
var handleModeChange = (0, react_1.useCallback)(function () {
|
|
49
|
+
setInternalMode(internalMode === 'show' ? 'edit' : 'show');
|
|
50
|
+
}, [internalMode]);
|
|
51
|
+
var handleSubmit = (0, react_1.useCallback)(function () {
|
|
52
|
+
if (!suggestionAnswerContent.trim() || !referenceAnswerContent.trim())
|
|
53
|
+
return;
|
|
54
|
+
(0, fbm_ui_1.confirm)({
|
|
55
|
+
header: null,
|
|
56
|
+
content: '确认将评价内容修改吗?该动作无法被撤销。',
|
|
57
|
+
okText: '修改',
|
|
58
|
+
okProps: {
|
|
59
|
+
color: 'error',
|
|
60
|
+
variant: 'contained',
|
|
61
|
+
},
|
|
62
|
+
onOk: function (_a) {
|
|
63
|
+
var onClose = _a.onClose;
|
|
64
|
+
var data = {
|
|
65
|
+
flowStepToken: token,
|
|
66
|
+
suggestionAnswer: suggestionAnswerContent,
|
|
67
|
+
referenceAnswer: referenceAnswerContent,
|
|
68
|
+
};
|
|
69
|
+
(0, ai_report_1.PostInterviewEvaluation)(data).then(handleModeChange).then(onClose).catch(console.error);
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
}, [token, suggestionAnswerContent, referenceAnswerContent, handleModeChange]);
|
|
73
|
+
(0, react_1.useEffect)(function () {
|
|
74
|
+
setInternalMode(mode);
|
|
75
|
+
}, [mode]);
|
|
76
|
+
if (suggestionAnswer || referenceAnswer) {
|
|
77
|
+
return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, { children: [suggestionAnswer && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { 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: "body2", fontWeight: 500, sx: { color: '#03BA4C', fontSize: 14 } }, { children: "\u5206\u6790\u5EFA\u8BAE" })) })), internalMode === 'edit' && ((0, jsx_runtime_1.jsx)(fbm_ui_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: "", error: !suggestionAnswerContent.trim(), value: suggestionAnswerContent, onChange: handleSuggestionChange }) }))), internalMode === 'show' && ((0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, { variant: "body2", sx: {
|
|
78
|
+
color: 'rgba(0,0,0,0.6)',
|
|
79
|
+
whiteSpace: 'pre-wrap',
|
|
80
|
+
}, dangerouslySetInnerHTML: { __html: suggestionAnswerContent } }))] })), referenceAnswer && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { 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: "body2", fontWeight: 500, sx: { color: '#03BA4C', fontSize: 14 } }, { children: "\u53C2\u8003\u6A21\u677F" })) })), internalMode === 'edit' && ((0, jsx_runtime_1.jsxs)(fbm_ui_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: "", error: !referenceAnswerContent.trim(), value: referenceAnswerContent, onChange: handleReferenceChange }), (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 () {
|
|
81
|
+
handleModeChange();
|
|
82
|
+
setReferenceAnswerContent(referenceAnswer);
|
|
83
|
+
setSuggestionAnswerContent(suggestionAnswer);
|
|
84
|
+
} }, { 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: {
|
|
85
|
+
color: '#424242',
|
|
86
|
+
whiteSpace: 'pre-wrap',
|
|
87
|
+
}, dangerouslySetInnerHTML: { __html: referenceAnswerContent } }))] }))] }));
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
exports.default = Workplaces;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 QuestionItem_1 = __importDefault(require("./QuestionItem"));
|
|
19
|
+
var global_store_1 = require("../../../../store/ai-report/global-store");
|
|
20
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
21
|
+
var react_1 = require("react");
|
|
22
|
+
var ModuleTitle_1 = require("../ModuleTitle");
|
|
23
|
+
var VideoQuestion = function (_a) {
|
|
24
|
+
var _b = _a.isExportPdf, isExportPdf = _b === void 0 ? false : _b;
|
|
25
|
+
var reportResult = (0, global_store_1.useAiReportStore)(function (store) { return [store.reportResult, store.operableButtons]; }).reportResult;
|
|
26
|
+
var steps = (reportResult || {}).steps;
|
|
27
|
+
return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ id: "report-question", px: 2, mt: 3 }, { children: [(0, jsx_runtime_1.jsx)(ModuleTitle_1.ModuleTitle, { title: "\u7B54\u9898\u89E3\u6790" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ mt: 1.5 }, { children: steps && steps.length > 0 ? (steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) { return (0, jsx_runtime_1.jsx)(QuestionItem_1.default, __assign({ index: index }, item, { isExportPdf: isExportPdf }), item.token); })) : ((0, jsx_runtime_1.jsx)(fbm_ui_1.Empty, { src: "//public-static-assets.oss-cn-beijing.aliyuncs.com/img/empty.png", desc: "\u6682\u65E0\u9898\u76EE" })) }))] })));
|
|
28
|
+
};
|
|
29
|
+
exports.default = (0, react_1.memo)(VideoQuestion);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AiInterviewReportStep, ScoreInfo } from '../../interface';
|
|
2
|
+
export interface ScoreSliderProps extends Pick<ScoreInfo, 'originScore' | 'finalScore'> {
|
|
3
|
+
width?: number;
|
|
4
|
+
valueLabelDisplay?: 'on' | 'off' | 'auto';
|
|
5
|
+
isShowLabel?: boolean;
|
|
6
|
+
isShowScoreRank?: boolean;
|
|
7
|
+
disabledScore?: boolean;
|
|
8
|
+
onChangeCommitted: (score: number) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface QuestionItemProps extends AiInterviewReportStep {
|
|
11
|
+
index: number;
|
|
12
|
+
isExportPdf?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface AbilitiesProps {
|
|
15
|
+
stepIndex: number;
|
|
16
|
+
disabledScore?: boolean;
|
|
17
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
color?: "primary" | "secondary" | undefined;
|
|
4
|
+
classes?: (Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> & {
|
|
5
|
+
colorPrimary?: string | undefined;
|
|
6
|
+
colorSecondary?: string | undefined;
|
|
7
|
+
sizeSmall?: string | undefined;
|
|
8
|
+
thumbColorPrimary?: string | undefined;
|
|
9
|
+
thumbColorSecondary?: string | undefined;
|
|
10
|
+
thumbSizeSmall?: string | undefined;
|
|
11
|
+
}) | undefined;
|
|
12
|
+
size?: "small" | "medium" | undefined;
|
|
13
|
+
sx?: import("@mui/system").SxProps<import("fbm-ui/lib/mui").Theme> | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
'aria-label'?: string | undefined;
|
|
16
|
+
'aria-labelledby'?: string | undefined;
|
|
17
|
+
'aria-valuetext'?: string | undefined;
|
|
18
|
+
classes?: Partial<import("fbm-ui/lib/mui").SliderUnstyledClasses> | undefined;
|
|
19
|
+
components?: {
|
|
20
|
+
Root?: import("react").ElementType<any> | undefined;
|
|
21
|
+
Track?: import("react").ElementType<any> | undefined;
|
|
22
|
+
Rail?: import("react").ElementType<any> | undefined;
|
|
23
|
+
Thumb?: import("react").ElementType<any> | undefined;
|
|
24
|
+
Mark?: import("react").ElementType<any> | undefined;
|
|
25
|
+
MarkLabel?: import("react").ElementType<any> | undefined;
|
|
26
|
+
ValueLabel?: import("react").ElementType<any> | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
componentsProps?: {
|
|
29
|
+
root?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
30
|
+
track?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
31
|
+
rail?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
32
|
+
thumb?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
33
|
+
mark?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
34
|
+
markLabel?: (import("react").HTMLAttributes<HTMLSpanElement> & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
35
|
+
valueLabel?: (import("fbm-ui/lib/mui").ValueLabelUnstyledProps & import("fbm-ui/lib/mui").SliderUnstyledComponentsPropsOverrides) | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
defaultValue?: number | number[] | undefined;
|
|
38
|
+
disabled?: boolean | undefined;
|
|
39
|
+
disableSwap?: boolean | undefined;
|
|
40
|
+
getAriaLabel?: ((index: number) => string) | undefined;
|
|
41
|
+
getAriaValueText?: ((value: number, index: number) => string) | undefined;
|
|
42
|
+
isRtl?: boolean | undefined;
|
|
43
|
+
marks?: boolean | import("fbm-ui/lib/mui").Mark[] | undefined;
|
|
44
|
+
max?: number | undefined;
|
|
45
|
+
min?: number | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
onChange?: ((event: Event, value: number | number[], activeThumb: number) => void) | undefined;
|
|
48
|
+
onChangeCommitted?: ((event: Event | import("react").SyntheticEvent<Element, Event>, value: number | number[]) => void) | undefined;
|
|
49
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
50
|
+
scale?: ((value: number) => number) | undefined;
|
|
51
|
+
step?: number | null | undefined;
|
|
52
|
+
tabIndex?: number | undefined;
|
|
53
|
+
track?: false | "normal" | "inverted" | undefined;
|
|
54
|
+
value?: number | number[] | undefined;
|
|
55
|
+
valueLabelDisplay?: "on" | "off" | "auto" | undefined;
|
|
56
|
+
valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
|
|
57
|
+
} & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
|
58
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
59
|
+
}, "name" | "classes" | "color" | "scale" | "track" | "sx" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "disabled" | "step" | "size" | "value" | "max" | "min" | "orientation" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
60
|
+
export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
61
|
+
children?: import("react").ReactNode;
|
|
62
|
+
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
63
|
+
export declare const QuestionDesc: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
64
|
+
children?: import("react").ReactNode;
|
|
65
|
+
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
66
|
+
export declare const AiScoreRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
67
|
+
children?: import("react").ReactNode;
|
|
68
|
+
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
69
|
+
export declare const RankingRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
|
|
70
|
+
children?: import("react").ReactNode;
|
|
71
|
+
} & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
|
|
72
|
+
export declare const Image: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Image = exports.RankingRoot = exports.AiScoreRoot = exports.QuestionDesc = exports.ScoreSliderRoot = exports.StyledSlider = void 0;
|
|
4
|
+
var fbm_ui_1 = require("fbm-ui");
|
|
5
|
+
var mui_1 = require("fbm-ui/lib/mui");
|
|
6
|
+
exports.StyledSlider = (0, fbm_ui_1.styled)(mui_1.Slider)(function () { return ({
|
|
7
|
+
color: '#03BA4C',
|
|
8
|
+
height: 8,
|
|
9
|
+
'& .MuiSlider-rail': {
|
|
10
|
+
backgroundColor: '#ECEFF1',
|
|
11
|
+
},
|
|
12
|
+
'& .MuiSlider-track': {
|
|
13
|
+
border: 'none',
|
|
14
|
+
backgroundColor: '#03BA4C',
|
|
15
|
+
},
|
|
16
|
+
'& .MuiSlider-thumb': {
|
|
17
|
+
height: 24,
|
|
18
|
+
width: 24,
|
|
19
|
+
backgroundColor: '#fff',
|
|
20
|
+
border: '2px solid currentColor',
|
|
21
|
+
zIndex: 2,
|
|
22
|
+
'&:focus, &:hover, &.Mui-active, &.Mui-focusVisible': {
|
|
23
|
+
boxShadow: 'inherit',
|
|
24
|
+
},
|
|
25
|
+
'&:before': {
|
|
26
|
+
display: 'none',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
'& .MuiSlider-valueLabel': {
|
|
30
|
+
lineHeight: 1.2,
|
|
31
|
+
fontSize: 12,
|
|
32
|
+
background: 'unset',
|
|
33
|
+
padding: 0,
|
|
34
|
+
width: 34,
|
|
35
|
+
height: 34,
|
|
36
|
+
borderRadius: '50% 50% 50% 0',
|
|
37
|
+
backgroundColor: '#03BA4C',
|
|
38
|
+
transformOrigin: 'bottom left',
|
|
39
|
+
transform: 'translate(50%, -100%) rotate(-45deg) scale(0)',
|
|
40
|
+
'&:before': { display: 'none' },
|
|
41
|
+
'&.MuiSlider-valueLabelOpen': {
|
|
42
|
+
transform: 'translate(50%, -100%) rotate(-45deg) scale(1)',
|
|
43
|
+
},
|
|
44
|
+
'& > *': {
|
|
45
|
+
transform: 'rotate(45deg)',
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
}); });
|
|
49
|
+
exports.ScoreSliderRoot = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
50
|
+
display: 'flex',
|
|
51
|
+
alignItems: 'center',
|
|
52
|
+
});
|
|
53
|
+
exports.QuestionDesc = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
54
|
+
minHeight: 34,
|
|
55
|
+
padding: 8,
|
|
56
|
+
background: '#F9FAF9',
|
|
57
|
+
position: 'relative',
|
|
58
|
+
borderRadius: 2,
|
|
59
|
+
marginTop: 16,
|
|
60
|
+
'& >.MuiSvgIcon-root': {
|
|
61
|
+
position: 'absolute',
|
|
62
|
+
left: 10,
|
|
63
|
+
top: -7,
|
|
64
|
+
color: 'rgb(230, 230, 230)',
|
|
65
|
+
},
|
|
66
|
+
});
|
|
67
|
+
exports.AiScoreRoot = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
68
|
+
width: 24,
|
|
69
|
+
height: 24,
|
|
70
|
+
boxShadow: '0px 9px 28px rgba(0,0,0, 0.05), 0px 6px 16px rgba(0,0,0, 0.08), 0px 3px 6px rgba(0,0,0, 0.12)',
|
|
71
|
+
backgroundColor: 'rgba(255, 255, 255, 0.6)',
|
|
72
|
+
position: 'absolute',
|
|
73
|
+
zIndex: 2,
|
|
74
|
+
top: 0,
|
|
75
|
+
bottom: 0,
|
|
76
|
+
borderRadius: '50%',
|
|
77
|
+
margin: 'auto 0',
|
|
78
|
+
});
|
|
79
|
+
exports.RankingRoot = (0, fbm_ui_1.styled)(fbm_ui_1.Box)({
|
|
80
|
+
height: 8,
|
|
81
|
+
border: '1px solid rgb(200, 230, 201)',
|
|
82
|
+
position: 'absolute',
|
|
83
|
+
boxSizing: 'border-box',
|
|
84
|
+
top: 13,
|
|
85
|
+
zIndex: 1,
|
|
86
|
+
'&:hover': {
|
|
87
|
+
border: '1px solid #fff',
|
|
88
|
+
boxShadow: '0px 0px 4px 0px rgba(0 0 0 / 50%)',
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
exports.Image = (0, fbm_ui_1.styled)('img')({
|
|
92
|
+
width: 48,
|
|
93
|
+
height: 84,
|
|
94
|
+
borderRadius: 4,
|
|
95
|
+
objectFit: 'contain',
|
|
96
|
+
});
|