eli-video-interview 1.4.7 → 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-question/Root.js +13 -13
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +4 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +4 -0
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +2 -5
- package/esm/modules/ai-question/components/QuestionUpdate/AudioUploader.d.ts +6 -0
- package/esm/modules/ai-question/components/QuestionUpdate/AudioUploader.js +74 -0
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +16 -5
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +3 -1
- 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-question/Root.js +13 -13
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +4 -0
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +5 -1
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +1 -4
- package/lib/modules/ai-question/components/QuestionUpdate/AudioUploader.d.ts +6 -0
- package/lib/modules/ai-question/components/QuestionUpdate/AudioUploader.js +76 -0
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +18 -7
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -1
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +3 -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 +5 -5
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var _a;
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import Nps from './Nps';
|
|
15
|
+
import { PhotoProvider, PhotoView } from "../../../../components/react-photo-view";
|
|
16
|
+
import dayjs from 'dayjs';
|
|
17
|
+
import { Box, Typography } from 'fbm-ui';
|
|
18
|
+
import { Stack } from 'fbm-ui/lib/mui';
|
|
19
|
+
import { ModuleTitle } from '../ModuleTitle';
|
|
20
|
+
export var QUESTION_TYPE;
|
|
21
|
+
(function (QUESTION_TYPE) {
|
|
22
|
+
QUESTION_TYPE[QUESTION_TYPE["IMAGE_UPLOAD"] = 1] = "IMAGE_UPLOAD";
|
|
23
|
+
QUESTION_TYPE[QUESTION_TYPE["ESSAY_QUESTION"] = 2] = "ESSAY_QUESTION";
|
|
24
|
+
QUESTION_TYPE[QUESTION_TYPE["RADIO"] = 3] = "RADIO";
|
|
25
|
+
QUESTION_TYPE[QUESTION_TYPE["CHECKBOX"] = 3.2] = "CHECKBOX";
|
|
26
|
+
QUESTION_TYPE[QUESTION_TYPE["TIME"] = 4] = "TIME";
|
|
27
|
+
QUESTION_TYPE[QUESTION_TYPE["SCHOOL"] = 7] = "SCHOOL";
|
|
28
|
+
QUESTION_TYPE[QUESTION_TYPE["FILL_BLANKS"] = 8] = "FILL_BLANKS";
|
|
29
|
+
QUESTION_TYPE[QUESTION_TYPE["NPS"] = 9] = "NPS";
|
|
30
|
+
})(QUESTION_TYPE || (QUESTION_TYPE = {}));
|
|
31
|
+
var Image = function (answer) {
|
|
32
|
+
var _a, _b, _c;
|
|
33
|
+
return (_jsx(PhotoProvider, __assign({ maskOpacity: 0.5 }, { children: (_c = (_b = (_a = answer.formAnswer) === null || _a === void 0 ? void 0 : _a.files) === null || _b === void 0 ? void 0 : _b.filter(function (v) { return v; })) === null || _c === void 0 ? void 0 : _c.map(function (url) { return (_jsx(PhotoView, __assign({ src: url }, { children: _jsx("img", { src: url, alt: url, width: 48, height: 32 }) }), url)); }) })));
|
|
34
|
+
};
|
|
35
|
+
var fillBlanks = function (answer) { var _a, _b; return _jsx(Typography, __assign({ variant: "body2" }, { children: (_b = (_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.answer) === null || _b === void 0 ? void 0 : _b.join(',') })); };
|
|
36
|
+
var Choice = function (answer) {
|
|
37
|
+
var _a, _b;
|
|
38
|
+
var keys = ((_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.choiceOptions) || [];
|
|
39
|
+
var options = ((_b = answer === null || answer === void 0 ? void 0 : answer.formItemOption) === null || _b === void 0 ? void 0 : _b.alternatives) || [];
|
|
40
|
+
return options
|
|
41
|
+
.filter(function (v) { return keys.includes(v.key); })
|
|
42
|
+
.map(function (v) { return v.value; })
|
|
43
|
+
.join(',');
|
|
44
|
+
};
|
|
45
|
+
var template = (_a = {},
|
|
46
|
+
_a[QUESTION_TYPE.RADIO] = Choice,
|
|
47
|
+
_a[QUESTION_TYPE.CHECKBOX] = Choice,
|
|
48
|
+
_a[QUESTION_TYPE.ESSAY_QUESTION] = function (answer) { var _a; return (_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.answer; },
|
|
49
|
+
_a[QUESTION_TYPE.TIME] = function (answer) {
|
|
50
|
+
var _a, _b, _c;
|
|
51
|
+
return ((_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.dateTime) &&
|
|
52
|
+
!isNaN((_b = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _b === void 0 ? void 0 : _b.dateTime) &&
|
|
53
|
+
dayjs(Number((_c = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _c === void 0 ? void 0 : _c.dateTime) * 1000).format('YYYY年MM月DD日');
|
|
54
|
+
},
|
|
55
|
+
_a[QUESTION_TYPE.SCHOOL] = function (answer) { var _a; return (_a = answer === null || answer === void 0 ? void 0 : answer.formAnswer) === null || _a === void 0 ? void 0 : _a.answer; },
|
|
56
|
+
_a[QUESTION_TYPE.FILL_BLANKS] = fillBlanks,
|
|
57
|
+
_a[QUESTION_TYPE.NPS] = Nps,
|
|
58
|
+
_a[QUESTION_TYPE.IMAGE_UPLOAD] = Image,
|
|
59
|
+
_a);
|
|
60
|
+
var Form = function (_a) {
|
|
61
|
+
var answers = _a.answers, _b = _a.customProcessName, customProcessName = _b === void 0 ? '资料收集' : _b;
|
|
62
|
+
return (_jsxs(Box, __assign({ px: 2, mt: 3 }, { children: [_jsx(ModuleTitle, { title: customProcessName }), _jsxs(Box, __assign({ mt: 1.5, border: "1px solid #E7F4EC", borderRadius: 2, overflow: "hidden" }, { children: [_jsxs(Stack, __assign({ direction: "row", sx: { background: '#EBFCF7' } }, { children: [_jsx(Box, __assign({ width: 52, flexShrink: 0, py: 1, px: 1.5 }, { children: _jsx(Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#00996B', fontSize: 14, lineHeight: '22px' } }, { children: "\u5E8F\u53F7" })) })), _jsx(Box, __assign({ flex: 1, minWidth: 0, py: 1, px: 1.5 }, { children: _jsx(Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#00996B', fontSize: 14, lineHeight: '22px' } }, { children: "\u9898\u76EE" })) })), _jsx(Box, __assign({ flex: 1, minWidth: 0, py: 1, px: 1.5 }, { children: _jsx(Typography, __assign({ variant: "body2", fontWeight: 700, sx: { color: '#00996B', fontSize: 14, lineHeight: '22px' } }, { children: "\u56DE\u7B54" })) }))] })), answers === null || answers === void 0 ? void 0 : answers.map(function (answer, index) {
|
|
63
|
+
var _a;
|
|
64
|
+
return (_jsxs(Stack, __assign({ direction: "row", borderTop: "1px solid #F0F6F2" }, { children: [_jsx(Box, __assign({ width: 52, flexShrink: 0, p: 1.5 }, { children: _jsx(Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 14 } }, { children: index + 1 })) })), _jsx(Box, __assign({ flex: 1, minWidth: 0, p: 1.5 }, { children: _jsx(Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 14 } }, { children: answer.formTypeKey })) })), _jsx(Box, __assign({ flex: 1, minWidth: 0, p: 1.5 }, { children: _jsx(Typography, __assign({ variant: "body2", sx: { color: 'rgba(0,0,0,0.6)', fontSize: 14 } }, { children: (_a = template[answer.formTypeId]) === null || _a === void 0 ? void 0 : _a.call(template, answer) })) }))] }), index));
|
|
65
|
+
})] }))] })));
|
|
66
|
+
};
|
|
67
|
+
export default Form;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormReports } from './interface';
|
|
3
|
+
export interface FormsProps {
|
|
4
|
+
fetchFormResult: () => Promise<FormReports>;
|
|
5
|
+
}
|
|
6
|
+
declare const Forms: ({ fetchFormResult }: {
|
|
7
|
+
fetchFormResult: any;
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
export default Forms;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
29
|
+
import Form from './Form';
|
|
30
|
+
import { useEffect, useState } from 'react';
|
|
31
|
+
var Forms = function (_a) {
|
|
32
|
+
var fetchFormResult = _a.fetchFormResult;
|
|
33
|
+
var _b = __read(useState([]), 2), data = _b[0], setData = _b[1];
|
|
34
|
+
useEffect(function () {
|
|
35
|
+
if (fetchFormResult) {
|
|
36
|
+
fetchFormResult()
|
|
37
|
+
.then(function (res) {
|
|
38
|
+
setData(res);
|
|
39
|
+
})
|
|
40
|
+
.catch(console);
|
|
41
|
+
}
|
|
42
|
+
}, [fetchFormResult]);
|
|
43
|
+
return (_jsx(_Fragment, { children: data.map(function (item, index) { return (_jsx(Form, __assign({}, item), index)); }) }));
|
|
44
|
+
};
|
|
45
|
+
export default Forms;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
29
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
30
|
+
if (ar || !(i in from)) {
|
|
31
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
32
|
+
ar[i] = from[i];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
36
|
+
};
|
|
37
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
38
|
+
import { Box, Typography } from 'fbm-ui';
|
|
39
|
+
import { theme } from 'fbm-ui/lib/components';
|
|
40
|
+
var Nps = function (_a) {
|
|
41
|
+
var formAnswer = _a.formAnswer, formItemOption = _a.formItemOption;
|
|
42
|
+
var answer = (formAnswer || {
|
|
43
|
+
answer: '',
|
|
44
|
+
}).answer;
|
|
45
|
+
var from = formItemOption.from, to = formItemOption.to;
|
|
46
|
+
var fromScore = (from === null || from === void 0 ? void 0 : from.score) || 0;
|
|
47
|
+
var toScore = (to === null || to === void 0 ? void 0 : to.score) || 0;
|
|
48
|
+
var npsData = __spreadArray([], __read(Array.from(new Array(toScore + 1 - fromScore).keys())), false).map(function (i) { return i + fromScore; });
|
|
49
|
+
if (!answer)
|
|
50
|
+
return null;
|
|
51
|
+
return (_jsxs(Box, { children: [_jsx(Box, __assign({ display: "flex" }, { children: typeof answer === 'string' &&
|
|
52
|
+
npsData.map(function (value) {
|
|
53
|
+
var isSelect = value <= Number(answer);
|
|
54
|
+
return (_jsx(Box, __assign({ height: 30, flex: "1 0", lineHeight: "30px", textAlign: "center", margin: "0 2px", fontSize: 14, fontWeight: 500, color: isSelect ? '#fff' : '', bgcolor: isSelect ? theme.palette.primary.main : '#eceff1' }, { children: value }), value));
|
|
55
|
+
}) })), _jsxs(Box, __assign({ display: "flex", justifyContent: "space-between", mt: 1 }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary" }, { children: from === null || from === void 0 ? void 0 : from.remark })), _jsx(Typography, __assign({ variant: "body2", color: "secondary" }, { children: to === null || to === void 0 ? void 0 : to.remark }))] }))] }));
|
|
56
|
+
};
|
|
57
|
+
export default Nps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FormReport } from './Forms';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FormReport } from './Forms';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export declare type FormReports = FormReport[];
|
|
2
|
+
export interface FormReport {
|
|
3
|
+
total: number;
|
|
4
|
+
score: number;
|
|
5
|
+
isRandomOrder: boolean;
|
|
6
|
+
hasVideoMonitor: boolean;
|
|
7
|
+
videoUrl: string;
|
|
8
|
+
answers: Answer[];
|
|
9
|
+
formScore: number;
|
|
10
|
+
originFormScore: number;
|
|
11
|
+
customProcessName: string;
|
|
12
|
+
}
|
|
13
|
+
export interface Answer {
|
|
14
|
+
formItemToken: string;
|
|
15
|
+
formTypeId: number;
|
|
16
|
+
formTypeKey: string;
|
|
17
|
+
isNecessary: boolean;
|
|
18
|
+
formItemOption: FormItemOption;
|
|
19
|
+
originFormItemAnswer: string;
|
|
20
|
+
formAnswer: FormAnswer;
|
|
21
|
+
total: number;
|
|
22
|
+
score: number;
|
|
23
|
+
isScoreOpen: number;
|
|
24
|
+
formOrder: number;
|
|
25
|
+
disabled: boolean;
|
|
26
|
+
isRandomOrder: boolean;
|
|
27
|
+
isHiddenForCandidate: boolean;
|
|
28
|
+
media: any[];
|
|
29
|
+
}
|
|
30
|
+
export interface FormItemOption {
|
|
31
|
+
score: string;
|
|
32
|
+
maximumNum?: number;
|
|
33
|
+
allowMultiple?: boolean;
|
|
34
|
+
alternatives?: Alterna[];
|
|
35
|
+
from?: From;
|
|
36
|
+
to?: To;
|
|
37
|
+
}
|
|
38
|
+
export interface Alterna {
|
|
39
|
+
key: string;
|
|
40
|
+
score: string;
|
|
41
|
+
value: string;
|
|
42
|
+
operator?: string;
|
|
43
|
+
}
|
|
44
|
+
export interface From {
|
|
45
|
+
remark: string;
|
|
46
|
+
score: number;
|
|
47
|
+
}
|
|
48
|
+
export interface To {
|
|
49
|
+
remark: string;
|
|
50
|
+
score: number;
|
|
51
|
+
}
|
|
52
|
+
export interface FormAnswer {
|
|
53
|
+
answer: any;
|
|
54
|
+
files?: string[];
|
|
55
|
+
choiceOptions?: string[];
|
|
56
|
+
dateTime?: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
import { REPORT_MODULE_MAP } from "../../../../constants/ai-report";
|
|
30
|
+
import { PostAiInterviewResult } from "../../../../services/ai-report";
|
|
31
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
32
|
+
import { useRequest } from 'ahooks';
|
|
33
|
+
import { Box, MenuIcon } from 'fbm-ui';
|
|
34
|
+
import { List, ListItem, ListItemButton, ListItemText, Popover } from 'fbm-ui/lib/mui';
|
|
35
|
+
import { forwardRef, memo, useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
36
|
+
var MenuAnchor = forwardRef(function (props) {
|
|
37
|
+
var _a = __read(useState(null), 2), anchorEl = _a[0], setAnchorEl = _a[1];
|
|
38
|
+
var open = Boolean(anchorEl);
|
|
39
|
+
// 接口请求
|
|
40
|
+
var token = props.token, showAiDimension = props.showAiDimension;
|
|
41
|
+
var firstLoad = useRef(true);
|
|
42
|
+
var _b = __read(useState([]), 2), list = _b[0], setList = _b[1];
|
|
43
|
+
var _c = useAiReportStore(), reportResult = _c.reportResult, updateState = _c.updateState, updateReportResult = _c.updateReportResult;
|
|
44
|
+
var postAiInterviewResult = useRequest(function () { return PostAiInterviewResult([token]); }, {
|
|
45
|
+
manual: true,
|
|
46
|
+
onSuccess: function (_a) {
|
|
47
|
+
var list = _a.data.list;
|
|
48
|
+
var result = list[0];
|
|
49
|
+
updateReportResult(result);
|
|
50
|
+
if (firstLoad.current) {
|
|
51
|
+
firstLoad.current = false;
|
|
52
|
+
handleMenuList(result);
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
}).run;
|
|
56
|
+
useEffect(function () {
|
|
57
|
+
firstLoad.current = true;
|
|
58
|
+
postAiInterviewResult();
|
|
59
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
60
|
+
}, [token]);
|
|
61
|
+
useEffect(function () {
|
|
62
|
+
updateState(props);
|
|
63
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
64
|
+
}, [props]);
|
|
65
|
+
// 处理菜单数据
|
|
66
|
+
var handleMenuList = function (reportResult) {
|
|
67
|
+
if (!reportResult.status) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
var resList = [REPORT_MODULE_MAP['videoQuestion']];
|
|
71
|
+
var _a = reportResult.collection, collection = _a === void 0 ? [] : _a, _b = reportResult.workplaces, workplaces = _b === void 0 ? [] : _b, _c = reportResult.suggestion, suggestion = _c === void 0 ? { show: false } : _c, _d = reportResult.evaluations, evaluations = _d === void 0 ? [] : _d;
|
|
72
|
+
if (showAiDimension) {
|
|
73
|
+
if (suggestion === null || suggestion === void 0 ? void 0 : suggestion.show) {
|
|
74
|
+
resList.unshift(REPORT_MODULE_MAP['suggestion']);
|
|
75
|
+
}
|
|
76
|
+
if (collection.length > 0 && evaluations.length > 0) {
|
|
77
|
+
resList.unshift(REPORT_MODULE_MAP['evaluate']);
|
|
78
|
+
}
|
|
79
|
+
if (workplaces.length > 0) {
|
|
80
|
+
resList.unshift(REPORT_MODULE_MAP['workplace']);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
if (collection.length > 0) {
|
|
84
|
+
resList.unshift(REPORT_MODULE_MAP['score']);
|
|
85
|
+
}
|
|
86
|
+
setList(resList);
|
|
87
|
+
};
|
|
88
|
+
var handlePopoverOpen = function (event) {
|
|
89
|
+
setAnchorEl(event.currentTarget);
|
|
90
|
+
};
|
|
91
|
+
var handlePopoverClose = function () {
|
|
92
|
+
setAnchorEl(null);
|
|
93
|
+
};
|
|
94
|
+
var scrollToAnchor = useCallback(function (id) {
|
|
95
|
+
if (id) {
|
|
96
|
+
var anchorEle = document.getElementById(id);
|
|
97
|
+
if (anchorEle) {
|
|
98
|
+
anchorEle.scrollIntoView({ block: 'start', behavior: 'smooth' });
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}, []);
|
|
102
|
+
var content = useMemo(function () {
|
|
103
|
+
return (_jsx(List, __assign({ style: { minWidth: 150 }, onMouseLeave: handlePopoverClose }, { children: list.map(function (_a) {
|
|
104
|
+
var name = _a.name, id = _a.id;
|
|
105
|
+
return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsx(ListItemButton, __assign({ onClick: function () { return scrollToAnchor(id); } }, { children: _jsx(ListItemText, { primary: name }) })) }), id));
|
|
106
|
+
}) })));
|
|
107
|
+
}, [scrollToAnchor, list]);
|
|
108
|
+
return (_jsxs(_Fragment, { children: [(reportResult === null || reportResult === void 0 ? void 0 : reportResult.status) && (_jsx(Box, __assign({ style: {
|
|
109
|
+
display: 'flex',
|
|
110
|
+
alignItems: 'center',
|
|
111
|
+
justifyContent: 'center',
|
|
112
|
+
position: 'absolute',
|
|
113
|
+
top: 20,
|
|
114
|
+
right: -10,
|
|
115
|
+
zIndex: 999,
|
|
116
|
+
height: 32,
|
|
117
|
+
width: 32,
|
|
118
|
+
backgroundColor: '#fff',
|
|
119
|
+
borderRadius: 4,
|
|
120
|
+
boxShadow: '0px 2px 4px rgba(0,0,0, 0.08)',
|
|
121
|
+
}, "aria-owns": open ? 'menu-anchor-popover' : undefined, "aria-haspopup": "true", onClick: handlePopoverOpen, onMouseEnter: handlePopoverOpen }, { children: _jsx(MenuIcon, {}) }))), _jsx(Popover, __assign({ id: "menu-anchor-popover", open: open, anchorEl: anchorEl, anchorOrigin: {
|
|
122
|
+
vertical: 'bottom',
|
|
123
|
+
horizontal: 'right',
|
|
124
|
+
}, transformOrigin: {
|
|
125
|
+
vertical: -8,
|
|
126
|
+
horizontal: 'right',
|
|
127
|
+
}, onClose: handlePopoverClose }, { children: content }))] }));
|
|
128
|
+
});
|
|
129
|
+
MenuAnchor.displayName = 'MenuAnchor';
|
|
130
|
+
export default memo(MenuAnchor);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { Box, Typography } from 'fbm-ui';
|
|
14
|
+
import { Stack } from 'fbm-ui/lib/mui';
|
|
15
|
+
export var ModuleTitle = function (_a) {
|
|
16
|
+
var title = _a.title, action = _a.action;
|
|
17
|
+
return (_jsxs(Box, { children: [_jsxs(Box, __assign({ sx: { position: 'relative' } }, { children: [_jsxs(Stack, __assign({ direction: "row", alignItems: "center", spacing: 1 }, { children: [_jsx(Box, { sx: {
|
|
18
|
+
width: 16,
|
|
19
|
+
height: 16,
|
|
20
|
+
borderRadius: '50%',
|
|
21
|
+
flexShrink: 0,
|
|
22
|
+
background: 'linear-gradient(158deg, #5EE2B8 2.38%, #41C446 97.38%)',
|
|
23
|
+
} }), _jsx(Typography, __assign({ fontWeight: 700, sx: { color: 'rgba(0,0,0,0.86)', fontSize: 16, lineHeight: '24px' } }, { children: title }))] })), action && _jsx(Box, __assign({ sx: { position: 'absolute', top: 0, right: 0 } }, { children: action }))] })), _jsx(Box, { sx: { height: 2, mt: 1, borderRadius: 2, background: 'linear-gradient(90deg, #5EE2B8 0%, rgba(94,226,184,0) 100%)' } })] }));
|
|
24
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { COMPLETED_STATUS } from "../../../../enum/ai-report";
|
|
14
|
+
import { useAiReportStore } from "../../../../store/ai-report/global-store";
|
|
15
|
+
import { Alert, Box, Typography } from 'fbm-ui';
|
|
16
|
+
var PrintScreen = function (_a) {
|
|
17
|
+
var screenSwitchCount = _a.screenSwitchCount;
|
|
18
|
+
if (screenSwitchCount > 0) {
|
|
19
|
+
return (_jsx(Box, __assign({ mb: 2 }, { children: _jsx(Alert, __assign({ type: "warning" }, { children: _jsxs(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: ["\u8BE5\u5019\u9009\u4EBA\u9762\u8BD5\u671F\u95F4\u622A\u5F55\u5C4F\u6216\u5207\u6362\u9875\u9762 ", screenSwitchCount, " \u6B21\u3002"] })) })) })));
|
|
20
|
+
}
|
|
21
|
+
return null;
|
|
22
|
+
};
|
|
23
|
+
var NotFinish = function () {
|
|
24
|
+
var _a = useAiReportStore(function (store) { return [store.reportResult, store.interviewCheat]; }), reportResult = _a.reportResult, interviewCheat = _a.interviewCheat;
|
|
25
|
+
var _b = reportResult || {}, _c = _b.completedStatus, completedStatus = _c === void 0 ? 1 : _c, _d = _b.screenSwitchCount, screenSwitchCount = _d === void 0 ? 0 : _d;
|
|
26
|
+
var _e = interviewCheat || {}, isCheat = _e.isCheat, info = _e.info;
|
|
27
|
+
if (completedStatus === COMPLETED_STATUS.NOT_COMPLETED || isCheat) {
|
|
28
|
+
return (_jsxs(Box, __assign({ mb: 2 }, { children: [_jsx(PrintScreen, { screenSwitchCount: screenSwitchCount }), _jsx(Alert, __assign({ type: isCheat ? 'error' : 'warning' }, { children: _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: info || '该候选人尚未回答完所有题目,建议提醒候选人完成面试' })) }))] })));
|
|
29
|
+
}
|
|
30
|
+
return _jsx(PrintScreen, { screenSwitchCount: screenSwitchCount });
|
|
31
|
+
};
|
|
32
|
+
export default NotFinish;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
13
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
14
|
+
if (!m) return o;
|
|
15
|
+
var i = m.call(o), r, ar = [], e;
|
|
16
|
+
try {
|
|
17
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
18
|
+
}
|
|
19
|
+
catch (error) { e = { error: error }; }
|
|
20
|
+
finally {
|
|
21
|
+
try {
|
|
22
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
23
|
+
}
|
|
24
|
+
finally { if (e) throw e.error; }
|
|
25
|
+
}
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
29
|
+
import { memo, useCallback, useEffect, useState } from 'react';
|
|
30
|
+
import { Box, CloseIcon, IconButton, Typography } from 'fbm-ui';
|
|
31
|
+
import { RangeInput, RangeTypography } from './styled';
|
|
32
|
+
var RankingRangeItem = function (props) {
|
|
33
|
+
var item = props.item, disabled = props.disabled, index = props.index, onChange = props.onChange, onDelete = props.onDelete;
|
|
34
|
+
var _a = __read(useState('0'), 2), endRankProportion = _a[0], setEndRankProportion = _a[1];
|
|
35
|
+
useEffect(function () {
|
|
36
|
+
setEndRankProportion(item.scoreRankIntervals.endRankProportion.toString());
|
|
37
|
+
}, [item]);
|
|
38
|
+
var handleChange = useCallback(function (value) {
|
|
39
|
+
var isIntegerReg = /^[1-9]\d*$/;
|
|
40
|
+
if (isIntegerReg.test(value) || !value) {
|
|
41
|
+
setEndRankProportion(value);
|
|
42
|
+
}
|
|
43
|
+
}, []);
|
|
44
|
+
return (_jsxs(Box, __assign({ display: "flex", sx: { mb: 1 } }, { children: [_jsx(Box, __assign({ flex: "1 0" }, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(RangeInput, { size: "small", disabled: true, value: item.scoreRankIntervals.startRankProportion, endAdornment: "%" }), _jsx(Typography, __assign({ sx: { pl: 1, pr: 1 } }, { children: "-" })), _jsx(RangeInput, { size: "small", disabled: disabled, endAdornment: "%", value: endRankProportion, onChange: function (e) { return handleChange(e.target.value); }, onBlur: function () { return onChange(endRankProportion ? Number(endRankProportion) : 1, index); } }), index !== 0 && (_jsx(IconButton, __assign({ sx: { ml: 1 }, onClick: function () { return onDelete(index); } }, { children: _jsx(CloseIcon, {}) })))] })) })), _jsxs(Box, __assign({ display: "flex", flex: "1 0" }, { children: [_jsx(RangeTypography, __assign({ variant: "body1" }, { children: item.score.startScore.toFixed(2) })), _jsx(RangeTypography, __assign({ variant: "body1", sx: { pl: 1, pr: 1 } }, { children: "-" })), _jsx(RangeTypography, __assign({ variant: "body1" }, { children: item.score.endScore.toFixed(2) })), _jsx(RangeTypography, __assign({ variant: "body1", sx: { pl: 1 } }, { children: "\u5206" }))] }))] })));
|
|
45
|
+
};
|
|
46
|
+
export default memo(RankingRangeItem);
|