eli-video-interview 1.2.28 → 1.2.29-beta.1
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/package.json +7 -1
- package/esm/assets/icons/AI.svg +0 -1
- package/esm/assets/icons/free.svg +0 -1
- package/esm/assets/icons/video.svg +0 -1
- package/esm/components/AiHeaderTitle/index.d.ts +0 -4
- package/esm/components/AiHeaderTitle/index.js +0 -19
- package/esm/components/AiHeaderTitle/interface.d.ts +0 -4
- package/esm/components/AiHeaderTitle/interface.js +0 -1
- package/esm/components/BigBallSvg/index.d.ts +0 -3
- package/esm/components/BigBallSvg/index.js +0 -17
- package/esm/components/BigBallSvg/styled.d.ts +0 -3
- package/esm/components/BigBallSvg/styled.js +0 -28
- package/esm/components/Charts/Chart.d.ts +0 -4
- package/esm/components/Charts/Chart.js +0 -32
- package/esm/components/Charts/ReportPie.d.ts +0 -4
- package/esm/components/Charts/ReportPie.js +0 -142
- package/esm/components/Charts/TemplatePie.d.ts +0 -4
- package/esm/components/Charts/TemplatePie.js +0 -81
- package/esm/components/Charts/const.d.ts +0 -17
- package/esm/components/Charts/const.js +0 -17
- package/esm/components/Charts/interface.d.ts +0 -18
- package/esm/components/Charts/interface.js +0 -1
- package/esm/components/RootProvider/index.d.ts +0 -3
- package/esm/components/RootProvider/index.js +0 -27
- package/esm/components/ScoreBigBall/index.d.ts +0 -4
- package/esm/components/ScoreBigBall/index.js +0 -26
- package/esm/components/ScoreBigBall/interface.d.ts +0 -7
- package/esm/components/ScoreBigBall/interface.js +0 -1
- package/esm/components/ScoreBigBall/styled.d.ts +0 -4
- package/esm/components/ScoreBigBall/styled.js +0 -12
- package/esm/components/ScrollDialogContent/index.d.ts +0 -5
- package/esm/components/ScrollDialogContent/index.js +0 -6
- package/esm/components/SvgIcon/index.d.ts +0 -4
- package/esm/components/SvgIcon/index.js +0 -32
- package/esm/components/SvgIcon/interface.d.ts +0 -4
- package/esm/components/SvgIcon/interface.js +0 -1
- package/esm/components/VideoPreview/index.d.ts +0 -4
- package/esm/components/VideoPreview/index.js +0 -19
- package/esm/components/VideoPreview/interface.d.ts +0 -15
- package/esm/components/VideoPreview/interface.js +0 -1
- package/esm/components/VideoPreview/styled.d.ts +0 -10
- package/esm/components/VideoPreview/styled.js +0 -24
- package/esm/constants/ai-question.d.ts +0 -27
- package/esm/constants/ai-question.js +0 -39
- package/esm/constants/ai-report.d.ts +0 -29
- package/esm/constants/ai-report.js +0 -39
- package/esm/enum/ai-question.d.ts +0 -38
- package/esm/enum/ai-question.js +0 -42
- package/esm/enum/ai-report.d.ts +0 -27
- package/esm/enum/ai-report.js +0 -30
- package/esm/index.d.ts +0 -8
- package/esm/index.js +0 -8
- package/esm/modules/ai-ability/Root.d.ts +0 -3
- package/esm/modules/ai-ability/Root.js +0 -135
- package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +0 -4
- package/esm/modules/ai-ability/components/UpdateAbility/index.js +0 -115
- package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
- package/esm/modules/ai-ability/components/UpdateAbility/interface.js +0 -1
- package/esm/modules/ai-ability/index.d.ts +0 -2
- package/esm/modules/ai-ability/index.js +0 -7
- package/esm/modules/ai-ability/interface.d.ts +0 -16
- package/esm/modules/ai-ability/interface.js +0 -1
- package/esm/modules/ai-ability/styled.d.ts +0 -4
- package/esm/modules/ai-ability/styled.js +0 -6
- package/esm/modules/ai-question/Root.d.ts +0 -4
- package/esm/modules/ai-question/Root.js +0 -144
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +0 -44
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +0 -54
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +0 -62
- package/esm/modules/ai-question/components/AiAnalysis/const.d.ts +0 -5
- package/esm/modules/ai-question/components/AiAnalysis/const.js +0 -11
- package/esm/modules/ai-question/components/AiAnalysis/index.d.ts +0 -3
- package/esm/modules/ai-question/components/AiAnalysis/index.js +0 -27
- package/esm/modules/ai-question/components/AiAnalysis/interface.d.ts +0 -23
- package/esm/modules/ai-question/components/AiAnalysis/interface.js +0 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +0 -25
- package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +0 -30
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +0 -112
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +0 -33
- package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.js +0 -1
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +0 -4
- package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +0 -5
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +0 -9
- package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.js +0 -29
- package/esm/modules/ai-question/components/BaseAccordion/const.d.ts +0 -1
- package/esm/modules/ai-question/components/BaseAccordion/const.js +0 -1
- package/esm/modules/ai-question/components/BaseAccordion/index.d.ts +0 -4
- package/esm/modules/ai-question/components/BaseAccordion/index.js +0 -98
- package/esm/modules/ai-question/components/BaseAccordion/interface.d.ts +0 -9
- package/esm/modules/ai-question/components/BaseAccordion/interface.js +0 -1
- package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +0 -10
- package/esm/modules/ai-question/components/BaseAccordion/styled.js +0 -76
- package/esm/modules/ai-question/components/BootVideo/index.d.ts +0 -4
- package/esm/modules/ai-question/components/BootVideo/index.js +0 -113
- package/esm/modules/ai-question/components/BootVideo/interface.d.ts +0 -8
- package/esm/modules/ai-question/components/BootVideo/interface.js +0 -1
- package/esm/modules/ai-question/components/BootVideo/styled.d.ts +0 -13
- package/esm/modules/ai-question/components/BootVideo/styled.js +0 -48
- package/esm/modules/ai-question/components/QuestionModel/Header.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionModel/Header.js +0 -23
- package/esm/modules/ai-question/components/QuestionModel/Item.d.ts +0 -4
- package/esm/modules/ai-question/components/QuestionModel/Item.js +0 -72
- package/esm/modules/ai-question/components/QuestionModel/List.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionModel/List.js +0 -47
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +0 -17
- package/esm/modules/ai-question/components/QuestionModel/index.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionModel/index.js +0 -71
- package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +0 -19
- package/esm/modules/ai-question/components/QuestionModel/interface.js +0 -1
- package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +0 -4
- package/esm/modules/ai-question/components/QuestionModel/styled.js +0 -8
- package/esm/modules/ai-question/components/QuestionPreview/index.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionPreview/index.js +0 -31
- package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +0 -11
- package/esm/modules/ai-question/components/QuestionPreview/styled.js +0 -11
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +0 -50
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +0 -17
- package/esm/modules/ai-question/components/QuestionTemplate/index.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionTemplate/index.js +0 -30
- package/esm/modules/ai-question/components/QuestionTemplate/interface.d.ts +0 -43
- package/esm/modules/ai-question/components/QuestionTemplate/interface.js +0 -1
- package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +0 -4
- package/esm/modules/ai-question/components/QuestionUpdate/Form.js +0 -110
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +0 -64
- package/esm/modules/ai-question/components/QuestionUpdate/const.d.ts +0 -14
- package/esm/modules/ai-question/components/QuestionUpdate/const.js +0 -54
- package/esm/modules/ai-question/components/QuestionUpdate/index.d.ts +0 -3
- package/esm/modules/ai-question/components/QuestionUpdate/index.js +0 -257
- package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +0 -63
- package/esm/modules/ai-question/components/QuestionUpdate/interface.js +0 -1
- package/esm/modules/ai-question/index.d.ts +0 -4
- package/esm/modules/ai-question/index.js +0 -20
- package/esm/modules/ai-question/interface.d.ts +0 -78
- package/esm/modules/ai-question/interface.js +0 -1
- package/esm/modules/ai-question/useAiQuestion.d.ts +0 -17
- package/esm/modules/ai-question/useAiQuestion.js +0 -20
- package/esm/modules/ai-report/Root.d.ts +0 -4
- package/esm/modules/ai-report/Root.js +0 -77
- package/esm/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +0 -13
- package/esm/modules/ai-report/components/AIEvaluate/Evaluate.js +0 -60
- package/esm/modules/ai-report/components/AIEvaluate/Graph.d.ts +0 -13
- package/esm/modules/ai-report/components/AIEvaluate/Graph.js +0 -225
- package/esm/modules/ai-report/components/AIEvaluate/index.d.ts +0 -2
- package/esm/modules/ai-report/components/AIEvaluate/index.js +0 -40
- package/esm/modules/ai-report/components/MenuAnchor/index.d.ts +0 -4
- package/esm/modules/ai-report/components/MenuAnchor/index.js +0 -115
- package/esm/modules/ai-report/components/NotFinish/index.d.ts +0 -3
- package/esm/modules/ai-report/components/NotFinish/index.js +0 -25
- package/esm/modules/ai-report/components/RankingRange/Item.d.ts +0 -4
- package/esm/modules/ai-report/components/RankingRange/Item.js +0 -30
- package/esm/modules/ai-report/components/RankingRange/index.d.ts +0 -4
- package/esm/modules/ai-report/components/RankingRange/index.js +0 -171
- package/esm/modules/ai-report/components/RankingRange/interface.d.ts +0 -26
- package/esm/modules/ai-report/components/RankingRange/interface.js +0 -1
- package/esm/modules/ai-report/components/RankingRange/styled.d.ts +0 -7
- package/esm/modules/ai-report/components/RankingRange/styled.js +0 -11
- package/esm/modules/ai-report/components/ScoreReport/Bar.d.ts +0 -3
- package/esm/modules/ai-report/components/ScoreReport/Bar.js +0 -50
- package/esm/modules/ai-report/components/ScoreReport/Failed.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/Failed.js +0 -25
- package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +0 -3
- package/esm/modules/ai-report/components/ScoreReport/Report.js +0 -35
- package/esm/modules/ai-report/components/ScoreReport/Score.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/Score.js +0 -34
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +0 -33
- package/esm/modules/ai-report/components/ScoreReport/index.d.ts +0 -4
- package/esm/modules/ai-report/components/ScoreReport/index.js +0 -41
- package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +0 -13
- package/esm/modules/ai-report/components/ScoreReport/interface.js +0 -1
- package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +0 -22
- package/esm/modules/ai-report/components/ScoreReport/styled.js +0 -23
- package/esm/modules/ai-report/components/Suggestion/Suggestion.d.ts +0 -4
- package/esm/modules/ai-report/components/Suggestion/Suggestion.js +0 -29
- package/esm/modules/ai-report/components/Suggestion/index.d.ts +0 -2
- package/esm/modules/ai-report/components/Suggestion/index.js +0 -27
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +0 -4
- package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +0 -40
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +0 -4
- package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +0 -91
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +0 -4
- package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +0 -30
- package/esm/modules/ai-report/components/VideoQuestion/index.d.ts +0 -3
- package/esm/modules/ai-report/components/VideoQuestion/index.js +0 -22
- package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +0 -14
- package/esm/modules/ai-report/components/VideoQuestion/interface.js +0 -1
- package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +0 -71
- package/esm/modules/ai-report/components/VideoQuestion/styled.js +0 -91
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +0 -4
- package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.js +0 -24
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +0 -11
- package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +0 -55
- package/esm/modules/ai-report/components/WorkPlaces/index.d.ts +0 -2
- package/esm/modules/ai-report/components/WorkPlaces/index.js +0 -67
- package/esm/modules/ai-report/components/WorkPlaces/interface.d.ts +0 -7
- package/esm/modules/ai-report/components/WorkPlaces/interface.js +0 -1
- package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +0 -62
- package/esm/modules/ai-report/components/WorkPlaces/styled.js +0 -27
- package/esm/modules/ai-report/index.d.ts +0 -4
- package/esm/modules/ai-report/index.js +0 -21
- package/esm/modules/ai-report/interface.d.ts +0 -187
- package/esm/modules/ai-report/interface.js +0 -1
- package/esm/modules/ai-report/useAiReport.d.ts +0 -28
- package/esm/modules/ai-report/useAiReport.js +0 -16
- package/esm/modules/ai-report/utils.d.ts +0 -1
- package/esm/modules/ai-report/utils.js +0 -1
- package/esm/modules/ai-template/Root.d.ts +0 -4
- package/esm/modules/ai-template/Root.js +0 -48
- package/esm/modules/ai-template/components/CapabilityModel/const.d.ts +0 -47
- package/esm/modules/ai-template/components/CapabilityModel/const.js +0 -56
- package/esm/modules/ai-template/components/CapabilityModel/index.d.ts +0 -3
- package/esm/modules/ai-template/components/CapabilityModel/index.js +0 -27
- package/esm/modules/ai-template/components/QuestionList/Item.d.ts +0 -4
- package/esm/modules/ai-template/components/QuestionList/Item.js +0 -24
- package/esm/modules/ai-template/components/QuestionList/index.d.ts +0 -3
- package/esm/modules/ai-template/components/QuestionList/index.js +0 -20
- package/esm/modules/ai-template/components/QuestionList/interface.d.ts +0 -5
- package/esm/modules/ai-template/components/QuestionList/interface.js +0 -1
- package/esm/modules/ai-template/components/TemplateHeader/index.d.ts +0 -4
- package/esm/modules/ai-template/components/TemplateHeader/index.js +0 -18
- package/esm/modules/ai-template/components/TemplateHeader/interface.d.ts +0 -6
- package/esm/modules/ai-template/components/TemplateHeader/interface.js +0 -1
- package/esm/modules/ai-template/components/TemplateList/index.d.ts +0 -3
- package/esm/modules/ai-template/components/TemplateList/index.js +0 -96
- package/esm/modules/ai-template/components/TemplateList/interface.d.ts +0 -24
- package/esm/modules/ai-template/components/TemplateList/interface.js +0 -1
- package/esm/modules/ai-template/components/TemplateList/styled.d.ts +0 -37
- package/esm/modules/ai-template/components/TemplateList/styled.js +0 -77
- package/esm/modules/ai-template/components/TemplateMenu/index.d.ts +0 -3
- package/esm/modules/ai-template/components/TemplateMenu/index.js +0 -57
- package/esm/modules/ai-template/components/TemplateMenu/interface.d.ts +0 -12
- package/esm/modules/ai-template/components/TemplateMenu/interface.js +0 -1
- package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +0 -29
- package/esm/modules/ai-template/components/TemplateMenu/styled.js +0 -16
- package/esm/modules/ai-template/index.d.ts +0 -4
- package/esm/modules/ai-template/index.js +0 -20
- package/esm/modules/ai-template/interface.d.ts +0 -24
- package/esm/modules/ai-template/interface.js +0 -1
- package/esm/services/ai-ability.d.ts +0 -14
- package/esm/services/ai-ability.js +0 -7
- package/esm/services/ai-question.d.ts +0 -12
- package/esm/services/ai-question.js +0 -15
- package/esm/services/ai-report.d.ts +0 -14
- package/esm/services/ai-report.js +0 -13
- package/esm/services/ai-template.d.ts +0 -4
- package/esm/services/ai-template.js +0 -9
- package/esm/store/ai-ability/question-ability-store.d.ts +0 -12
- package/esm/store/ai-ability/question-ability-store.js +0 -10
- package/esm/store/ai-question/ai-analysis-store.d.ts +0 -33
- package/esm/store/ai-question/ai-analysis-store.js +0 -158
- package/esm/store/ai-question/boot-video-store.d.ts +0 -17
- package/esm/store/ai-question/boot-video-store.js +0 -21
- package/esm/store/ai-question/global-store.d.ts +0 -35
- package/esm/store/ai-question/global-store.js +0 -22
- package/esm/store/ai-question/question-model-store.d.ts +0 -24
- package/esm/store/ai-question/question-model-store.js +0 -136
- package/esm/store/ai-question/question-preview-store.d.ts +0 -14
- package/esm/store/ai-question/question-preview-store.js +0 -21
- package/esm/store/ai-question/question-template-store.d.ts +0 -12
- package/esm/store/ai-question/question-template-store.js +0 -10
- package/esm/store/ai-question/question-update-store.d.ts +0 -11
- package/esm/store/ai-question/question-update-store.js +0 -33
- package/esm/store/ai-report/global-store.d.ts +0 -81
- package/esm/store/ai-report/global-store.js +0 -30
- package/esm/store/ai-template/global-store.d.ts +0 -35
- package/esm/store/ai-template/global-store.js +0 -26
- package/esm/utils/config.d.ts +0 -13
- package/esm/utils/config.js +0 -17
- package/esm/utils/interceptor.d.ts +0 -2
- package/esm/utils/interceptor.js +0 -127
- package/esm/utils/request.d.ts +0 -3
- package/esm/utils/request.js +0 -14
- package/esm/utils/utils.d.ts +0 -58
- package/esm/utils/utils.js +0 -115
- package/lib/assets/icons/AI.svg +0 -1
- package/lib/assets/icons/free.svg +0 -1
- package/lib/assets/icons/video.svg +0 -1
- package/lib/components/AiHeaderTitle/index.d.ts +0 -4
- package/lib/components/AiHeaderTitle/index.js +0 -24
- package/lib/components/AiHeaderTitle/interface.d.ts +0 -4
- package/lib/components/AiHeaderTitle/interface.js +0 -2
- package/lib/components/BigBallSvg/index.d.ts +0 -3
- package/lib/components/BigBallSvg/index.js +0 -19
- package/lib/components/BigBallSvg/styled.d.ts +0 -3
- package/lib/components/BigBallSvg/styled.js +0 -31
- package/lib/components/Charts/Chart.d.ts +0 -4
- package/lib/components/Charts/Chart.js +0 -57
- package/lib/components/Charts/ReportPie.d.ts +0 -4
- package/lib/components/Charts/ReportPie.js +0 -147
- package/lib/components/Charts/TemplatePie.d.ts +0 -4
- package/lib/components/Charts/TemplatePie.js +0 -86
- package/lib/components/Charts/const.d.ts +0 -17
- package/lib/components/Charts/const.js +0 -20
- package/lib/components/Charts/interface.d.ts +0 -18
- package/lib/components/Charts/interface.js +0 -2
- package/lib/components/RootProvider/index.d.ts +0 -3
- package/lib/components/RootProvider/index.js +0 -29
- package/lib/components/ScoreBigBall/index.d.ts +0 -4
- package/lib/components/ScoreBigBall/index.js +0 -31
- package/lib/components/ScoreBigBall/interface.d.ts +0 -7
- package/lib/components/ScoreBigBall/interface.js +0 -2
- package/lib/components/ScoreBigBall/styled.d.ts +0 -4
- package/lib/components/ScoreBigBall/styled.js +0 -15
- package/lib/components/ScrollDialogContent/index.d.ts +0 -5
- package/lib/components/ScrollDialogContent/index.js +0 -8
- package/lib/components/SvgIcon/index.d.ts +0 -4
- package/lib/components/SvgIcon/index.js +0 -57
- package/lib/components/SvgIcon/interface.d.ts +0 -4
- package/lib/components/SvgIcon/interface.js +0 -2
- package/lib/components/VideoPreview/index.d.ts +0 -4
- package/lib/components/VideoPreview/index.js +0 -21
- package/lib/components/VideoPreview/interface.d.ts +0 -15
- package/lib/components/VideoPreview/interface.js +0 -2
- package/lib/components/VideoPreview/styled.d.ts +0 -10
- package/lib/components/VideoPreview/styled.js +0 -27
- package/lib/constants/ai-question.d.ts +0 -27
- package/lib/constants/ai-question.js +0 -43
- package/lib/constants/ai-report.d.ts +0 -29
- package/lib/constants/ai-report.js +0 -42
- package/lib/enum/ai-question.d.ts +0 -38
- package/lib/enum/ai-question.js +0 -45
- package/lib/enum/ai-report.d.ts +0 -27
- package/lib/enum/ai-report.js +0 -33
- package/lib/index.d.ts +0 -8
- package/lib/index.js +0 -22
- package/lib/modules/ai-ability/Root.d.ts +0 -3
- package/lib/modules/ai-ability/Root.js +0 -140
- package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +0 -4
- package/lib/modules/ai-ability/components/UpdateAbility/index.js +0 -117
- package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
- package/lib/modules/ai-ability/components/UpdateAbility/interface.js +0 -2
- package/lib/modules/ai-ability/index.d.ts +0 -2
- package/lib/modules/ai-ability/index.js +0 -12
- package/lib/modules/ai-ability/interface.d.ts +0 -16
- package/lib/modules/ai-ability/interface.js +0 -2
- package/lib/modules/ai-ability/styled.d.ts +0 -4
- package/lib/modules/ai-ability/styled.js +0 -9
- package/lib/modules/ai-question/Root.d.ts +0 -4
- package/lib/modules/ai-question/Root.js +0 -149
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +0 -49
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +0 -59
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +0 -64
- package/lib/modules/ai-question/components/AiAnalysis/const.d.ts +0 -5
- package/lib/modules/ai-question/components/AiAnalysis/const.js +0 -14
- package/lib/modules/ai-question/components/AiAnalysis/index.d.ts +0 -3
- package/lib/modules/ai-question/components/AiAnalysis/index.js +0 -32
- package/lib/modules/ai-question/components/AiAnalysis/interface.d.ts +0 -23
- package/lib/modules/ai-question/components/AiAnalysis/interface.js +0 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +0 -25
- package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +0 -33
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +0 -117
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +0 -33
- package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.js +0 -2
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +0 -4
- package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +0 -8
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +0 -9
- package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.js +0 -33
- package/lib/modules/ai-question/components/BaseAccordion/const.d.ts +0 -1
- package/lib/modules/ai-question/components/BaseAccordion/const.js +0 -4
- package/lib/modules/ai-question/components/BaseAccordion/index.d.ts +0 -4
- package/lib/modules/ai-question/components/BaseAccordion/index.js +0 -100
- package/lib/modules/ai-question/components/BaseAccordion/interface.d.ts +0 -9
- package/lib/modules/ai-question/components/BaseAccordion/interface.js +0 -2
- package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +0 -10
- package/lib/modules/ai-question/components/BaseAccordion/styled.js +0 -79
- package/lib/modules/ai-question/components/BootVideo/index.d.ts +0 -4
- package/lib/modules/ai-question/components/BootVideo/index.js +0 -118
- package/lib/modules/ai-question/components/BootVideo/interface.d.ts +0 -8
- package/lib/modules/ai-question/components/BootVideo/interface.js +0 -2
- package/lib/modules/ai-question/components/BootVideo/styled.d.ts +0 -13
- package/lib/modules/ai-question/components/BootVideo/styled.js +0 -51
- package/lib/modules/ai-question/components/QuestionModel/Header.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionModel/Header.js +0 -28
- package/lib/modules/ai-question/components/QuestionModel/Item.d.ts +0 -4
- package/lib/modules/ai-question/components/QuestionModel/Item.js +0 -74
- package/lib/modules/ai-question/components/QuestionModel/List.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionModel/List.js +0 -52
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +0 -19
- package/lib/modules/ai-question/components/QuestionModel/index.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionModel/index.js +0 -76
- package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +0 -19
- package/lib/modules/ai-question/components/QuestionModel/interface.js +0 -2
- package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +0 -4
- package/lib/modules/ai-question/components/QuestionModel/styled.js +0 -11
- package/lib/modules/ai-question/components/QuestionPreview/index.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionPreview/index.js +0 -36
- package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +0 -11
- package/lib/modules/ai-question/components/QuestionPreview/styled.js +0 -14
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +0 -55
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +0 -19
- package/lib/modules/ai-question/components/QuestionTemplate/index.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionTemplate/index.js +0 -35
- package/lib/modules/ai-question/components/QuestionTemplate/interface.d.ts +0 -43
- package/lib/modules/ai-question/components/QuestionTemplate/interface.js +0 -2
- package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +0 -4
- package/lib/modules/ai-question/components/QuestionUpdate/Form.js +0 -115
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +0 -66
- package/lib/modules/ai-question/components/QuestionUpdate/const.d.ts +0 -14
- package/lib/modules/ai-question/components/QuestionUpdate/const.js +0 -57
- package/lib/modules/ai-question/components/QuestionUpdate/index.d.ts +0 -3
- package/lib/modules/ai-question/components/QuestionUpdate/index.js +0 -262
- package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +0 -63
- package/lib/modules/ai-question/components/QuestionUpdate/interface.js +0 -2
- package/lib/modules/ai-question/index.d.ts +0 -4
- package/lib/modules/ai-question/index.js +0 -25
- package/lib/modules/ai-question/interface.d.ts +0 -78
- package/lib/modules/ai-question/interface.js +0 -2
- package/lib/modules/ai-question/useAiQuestion.d.ts +0 -17
- package/lib/modules/ai-question/useAiQuestion.js +0 -24
- package/lib/modules/ai-report/Root.d.ts +0 -4
- package/lib/modules/ai-report/Root.js +0 -82
- package/lib/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +0 -13
- package/lib/modules/ai-report/components/AIEvaluate/Evaluate.js +0 -62
- package/lib/modules/ai-report/components/AIEvaluate/Graph.d.ts +0 -13
- package/lib/modules/ai-report/components/AIEvaluate/Graph.js +0 -227
- package/lib/modules/ai-report/components/AIEvaluate/index.d.ts +0 -2
- package/lib/modules/ai-report/components/AIEvaluate/index.js +0 -45
- package/lib/modules/ai-report/components/MenuAnchor/index.d.ts +0 -4
- package/lib/modules/ai-report/components/MenuAnchor/index.js +0 -117
- package/lib/modules/ai-report/components/NotFinish/index.d.ts +0 -3
- package/lib/modules/ai-report/components/NotFinish/index.js +0 -27
- package/lib/modules/ai-report/components/RankingRange/Item.d.ts +0 -4
- package/lib/modules/ai-report/components/RankingRange/Item.js +0 -32
- package/lib/modules/ai-report/components/RankingRange/index.d.ts +0 -4
- package/lib/modules/ai-report/components/RankingRange/index.js +0 -176
- package/lib/modules/ai-report/components/RankingRange/interface.d.ts +0 -26
- package/lib/modules/ai-report/components/RankingRange/interface.js +0 -2
- package/lib/modules/ai-report/components/RankingRange/styled.d.ts +0 -7
- package/lib/modules/ai-report/components/RankingRange/styled.js +0 -14
- package/lib/modules/ai-report/components/ScoreReport/Bar.d.ts +0 -3
- package/lib/modules/ai-report/components/ScoreReport/Bar.js +0 -52
- package/lib/modules/ai-report/components/ScoreReport/Failed.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/Failed.js +0 -27
- package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +0 -3
- package/lib/modules/ai-report/components/ScoreReport/Report.js +0 -40
- package/lib/modules/ai-report/components/ScoreReport/Score.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/Score.js +0 -39
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +0 -35
- package/lib/modules/ai-report/components/ScoreReport/index.d.ts +0 -4
- package/lib/modules/ai-report/components/ScoreReport/index.js +0 -46
- package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +0 -13
- package/lib/modules/ai-report/components/ScoreReport/interface.js +0 -2
- package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +0 -22
- package/lib/modules/ai-report/components/ScoreReport/styled.js +0 -26
- package/lib/modules/ai-report/components/Suggestion/Suggestion.d.ts +0 -4
- package/lib/modules/ai-report/components/Suggestion/Suggestion.js +0 -31
- package/lib/modules/ai-report/components/Suggestion/index.d.ts +0 -2
- package/lib/modules/ai-report/components/Suggestion/index.js +0 -32
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +0 -4
- package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +0 -45
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +0 -4
- package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +0 -96
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +0 -4
- package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +0 -32
- package/lib/modules/ai-report/components/VideoQuestion/index.d.ts +0 -3
- package/lib/modules/ai-report/components/VideoQuestion/index.js +0 -27
- package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +0 -14
- package/lib/modules/ai-report/components/VideoQuestion/interface.js +0 -2
- package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +0 -71
- package/lib/modules/ai-report/components/VideoQuestion/styled.js +0 -94
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +0 -4
- package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.js +0 -26
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +0 -11
- package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +0 -57
- package/lib/modules/ai-report/components/WorkPlaces/index.d.ts +0 -2
- package/lib/modules/ai-report/components/WorkPlaces/index.js +0 -72
- package/lib/modules/ai-report/components/WorkPlaces/interface.d.ts +0 -7
- package/lib/modules/ai-report/components/WorkPlaces/interface.js +0 -2
- package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +0 -62
- package/lib/modules/ai-report/components/WorkPlaces/styled.js +0 -30
- package/lib/modules/ai-report/index.d.ts +0 -4
- package/lib/modules/ai-report/index.js +0 -26
- package/lib/modules/ai-report/interface.d.ts +0 -187
- package/lib/modules/ai-report/interface.js +0 -2
- package/lib/modules/ai-report/useAiReport.d.ts +0 -28
- package/lib/modules/ai-report/useAiReport.js +0 -20
- package/lib/modules/ai-report/utils.d.ts +0 -1
- package/lib/modules/ai-report/utils.js +0 -5
- package/lib/modules/ai-template/Root.d.ts +0 -4
- package/lib/modules/ai-template/Root.js +0 -53
- package/lib/modules/ai-template/components/CapabilityModel/const.d.ts +0 -47
- package/lib/modules/ai-template/components/CapabilityModel/const.js +0 -59
- package/lib/modules/ai-template/components/CapabilityModel/index.d.ts +0 -3
- package/lib/modules/ai-template/components/CapabilityModel/index.js +0 -32
- package/lib/modules/ai-template/components/QuestionList/Item.d.ts +0 -4
- package/lib/modules/ai-template/components/QuestionList/Item.js +0 -26
- package/lib/modules/ai-template/components/QuestionList/index.d.ts +0 -3
- package/lib/modules/ai-template/components/QuestionList/index.js +0 -25
- package/lib/modules/ai-template/components/QuestionList/interface.d.ts +0 -5
- package/lib/modules/ai-template/components/QuestionList/interface.js +0 -2
- package/lib/modules/ai-template/components/TemplateHeader/index.d.ts +0 -4
- package/lib/modules/ai-template/components/TemplateHeader/index.js +0 -20
- package/lib/modules/ai-template/components/TemplateHeader/interface.d.ts +0 -6
- package/lib/modules/ai-template/components/TemplateHeader/interface.js +0 -2
- package/lib/modules/ai-template/components/TemplateList/index.d.ts +0 -3
- package/lib/modules/ai-template/components/TemplateList/index.js +0 -101
- package/lib/modules/ai-template/components/TemplateList/interface.d.ts +0 -24
- package/lib/modules/ai-template/components/TemplateList/interface.js +0 -2
- package/lib/modules/ai-template/components/TemplateList/styled.d.ts +0 -37
- package/lib/modules/ai-template/components/TemplateList/styled.js +0 -80
- package/lib/modules/ai-template/components/TemplateMenu/index.d.ts +0 -3
- package/lib/modules/ai-template/components/TemplateMenu/index.js +0 -59
- package/lib/modules/ai-template/components/TemplateMenu/interface.d.ts +0 -12
- package/lib/modules/ai-template/components/TemplateMenu/interface.js +0 -2
- package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +0 -29
- package/lib/modules/ai-template/components/TemplateMenu/styled.js +0 -19
- package/lib/modules/ai-template/index.d.ts +0 -4
- package/lib/modules/ai-template/index.js +0 -25
- package/lib/modules/ai-template/interface.d.ts +0 -24
- package/lib/modules/ai-template/interface.js +0 -2
- package/lib/services/ai-ability.d.ts +0 -14
- package/lib/services/ai-ability.js +0 -13
- package/lib/services/ai-question.d.ts +0 -12
- package/lib/services/ai-question.js +0 -25
- package/lib/services/ai-report.d.ts +0 -14
- package/lib/services/ai-report.js +0 -20
- package/lib/services/ai-template.d.ts +0 -4
- package/lib/services/ai-template.js +0 -16
- package/lib/store/ai-ability/question-ability-store.d.ts +0 -12
- package/lib/store/ai-ability/question-ability-store.js +0 -13
- package/lib/store/ai-question/ai-analysis-store.d.ts +0 -33
- package/lib/store/ai-question/ai-analysis-store.js +0 -164
- package/lib/store/ai-question/boot-video-store.d.ts +0 -17
- package/lib/store/ai-question/boot-video-store.js +0 -24
- package/lib/store/ai-question/global-store.d.ts +0 -35
- package/lib/store/ai-question/global-store.js +0 -25
- package/lib/store/ai-question/question-model-store.d.ts +0 -24
- package/lib/store/ai-question/question-model-store.js +0 -142
- package/lib/store/ai-question/question-preview-store.d.ts +0 -14
- package/lib/store/ai-question/question-preview-store.js +0 -24
- package/lib/store/ai-question/question-template-store.d.ts +0 -12
- package/lib/store/ai-question/question-template-store.js +0 -13
- package/lib/store/ai-question/question-update-store.d.ts +0 -11
- package/lib/store/ai-question/question-update-store.js +0 -36
- package/lib/store/ai-report/global-store.d.ts +0 -81
- package/lib/store/ai-report/global-store.js +0 -33
- package/lib/store/ai-template/global-store.d.ts +0 -35
- package/lib/store/ai-template/global-store.js +0 -29
- package/lib/utils/config.d.ts +0 -13
- package/lib/utils/config.js +0 -20
- package/lib/utils/interceptor.d.ts +0 -2
- package/lib/utils/interceptor.js +0 -132
- package/lib/utils/request.d.ts +0 -3
- package/lib/utils/request.js +0 -22
- package/lib/utils/utils.d.ts +0 -58
- package/lib/utils/utils.js +0 -129
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// 题目参数默认值
|
|
2
|
-
export var defaultQuestionParams = {
|
|
3
|
-
aiAbilities: [],
|
|
4
|
-
aiShowType: 1,
|
|
5
|
-
aiSwitch: 2,
|
|
6
|
-
aiType: 1,
|
|
7
|
-
answerStatus: 2,
|
|
8
|
-
broadcastType: 1,
|
|
9
|
-
desc: '',
|
|
10
|
-
duration: 30,
|
|
11
|
-
category: undefined,
|
|
12
|
-
extra: {
|
|
13
|
-
expect: 'negative',
|
|
14
|
-
readText: '',
|
|
15
|
-
},
|
|
16
|
-
language: undefined,
|
|
17
|
-
name: '',
|
|
18
|
-
prepareTime: 3,
|
|
19
|
-
type: 1,
|
|
20
|
-
videoBroadcast: {
|
|
21
|
-
videoRetry: 2,
|
|
22
|
-
videoSkip: 2,
|
|
23
|
-
videoUrl: '',
|
|
24
|
-
},
|
|
25
|
-
weight: 0,
|
|
26
|
-
token: '',
|
|
27
|
-
originToken: '',
|
|
28
|
-
};
|
|
29
|
-
// 播报方式
|
|
30
|
-
export var broadcastModeOptions = [
|
|
31
|
-
{
|
|
32
|
-
label: 'AI语音播报',
|
|
33
|
-
value: 1,
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: '视频语音播报',
|
|
37
|
-
value: 2,
|
|
38
|
-
},
|
|
39
|
-
];
|
|
40
|
-
// 准备时长
|
|
41
|
-
export var prepareTimeOptions = [
|
|
42
|
-
{ value: 3, label: '3s' },
|
|
43
|
-
{ value: 10, label: '10s' },
|
|
44
|
-
{ value: 30, label: '30s' },
|
|
45
|
-
{ value: 60, label: '1m' },
|
|
46
|
-
];
|
|
47
|
-
// 答题时长
|
|
48
|
-
export var durationOptions = [
|
|
49
|
-
{ value: 10, label: '10s' },
|
|
50
|
-
{ value: 30, label: '30s' },
|
|
51
|
-
{ value: 60, label: '1m' },
|
|
52
|
-
{ value: 180, label: '3m' },
|
|
53
|
-
{ value: 1200, label: '20m' },
|
|
54
|
-
];
|
|
@@ -1,257 +0,0 @@
|
|
|
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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
49
|
-
var t = {};
|
|
50
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
51
|
-
t[p] = s[p];
|
|
52
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
53
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
54
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
55
|
-
t[p[i]] = s[p[i]];
|
|
56
|
-
}
|
|
57
|
-
return t;
|
|
58
|
-
};
|
|
59
|
-
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
60
|
-
import { defaultQuestionParams } from './const';
|
|
61
|
-
import Form from './Form';
|
|
62
|
-
import { useQuestionCollectionListStore } from "../../../../store/ai-ability/question-ability-store";
|
|
63
|
-
import ScrollDialogContent from "../../../../components/ScrollDialogContent";
|
|
64
|
-
import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
|
|
65
|
-
import { useAiAnalysisStore } from "../../../../store/ai-question/ai-analysis-store";
|
|
66
|
-
import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
|
|
67
|
-
import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
|
|
68
|
-
import { Box, Button, confirm, Dialog, Message, Popover, Typography } from 'fbm-ui';
|
|
69
|
-
import { MenuItem } from 'fbm-ui/lib/mui';
|
|
70
|
-
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
71
|
-
var QuestionUpdate = function () {
|
|
72
|
-
var _a;
|
|
73
|
-
var formRef = useRef();
|
|
74
|
-
var _b = useState(false), switchTypeOpen = _b[0], setSwitchTypeOpen = _b[1];
|
|
75
|
-
var _c = useQuestionModelStore(), addModel = _c.addModel, editModel = _c.editModel;
|
|
76
|
-
var _d = useUpdateQuestionStore(function (store) { return [store.questionState]; }), questionState = _d.questionState, updateQuestionState = _d.updateQuestionState;
|
|
77
|
-
var questionCollectionList = useQuestionCollectionListStore(function (store) { return [store.questionCollectionList]; }).questionCollectionList;
|
|
78
|
-
var _e = useAiAnalysisStore(function (store) { return [
|
|
79
|
-
store.aiAbilities,
|
|
80
|
-
store.analysisState,
|
|
81
|
-
store.workplaces,
|
|
82
|
-
]; }), aiAbilities = _e.aiAbilities, workplaces = _e.workplaces, analysisState = _e.analysisState, setKeyPointAnalysisError = _e.setKeyPointAnalysisError, updateAiAbilities = _e.updateAiAbilities, updateState = _e.updateState;
|
|
83
|
-
var open = questionState.open, item = questionState.item, aiShowType = questionState.aiShowType, token = questionState.token, index = questionState.index;
|
|
84
|
-
var initialValues = {
|
|
85
|
-
name: item === null || item === void 0 ? void 0 : item.name,
|
|
86
|
-
broadcastType: item === null || item === void 0 ? void 0 : item.broadcastType,
|
|
87
|
-
desc: item === null || item === void 0 ? void 0 : item.desc,
|
|
88
|
-
readText: (_a = item === null || item === void 0 ? void 0 : item.extra) === null || _a === void 0 ? void 0 : _a.readText,
|
|
89
|
-
prepareTime: item === null || item === void 0 ? void 0 : item.prepareTime,
|
|
90
|
-
duration: item === null || item === void 0 ? void 0 : item.duration,
|
|
91
|
-
category: (item === null || item === void 0 ? void 0 : item.category) ? { label: (item === null || item === void 0 ? void 0 : item.category[0]) || '', value: (item === null || item === void 0 ? void 0 : item.category[0]) || '' } : { label: '', value: '' },
|
|
92
|
-
};
|
|
93
|
-
var CustomHeader = function () {
|
|
94
|
-
var content = (_jsxs(_Fragment, { children: [_jsx(MenuItem, __assign({ sx: { backgroundColor: aiShowType === ADD_QUESTION_TYPE.FREE ? 'rgba(76, 175, 80, 0.08)' : 'rgba(255, 255, 255, 1)' }, onClick: function () {
|
|
95
|
-
var _a;
|
|
96
|
-
setSwitchTypeOpen(false);
|
|
97
|
-
(_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.setFormValues({ broadcastType: defaultQuestionParams.broadcastType });
|
|
98
|
-
updateQuestionState({ aiShowType: ADD_QUESTION_TYPE.FREE });
|
|
99
|
-
} }, { children: _jsx(Typography, __assign({ variant: "body2" }, { children: "\u81EA\u7531\u4F5C\u7B54" })) })), _jsx(MenuItem, __assign({ sx: { backgroundColor: aiShowType === ADD_QUESTION_TYPE.LANGUAGE ? 'rgba(76, 175, 80, 0.08)' : 'rgba(255, 255, 255, 1)' }, onClick: function () {
|
|
100
|
-
var _a;
|
|
101
|
-
setSwitchTypeOpen(false);
|
|
102
|
-
(_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.setFormValues({ broadcastType: defaultQuestionParams.broadcastType });
|
|
103
|
-
updateQuestionState({ aiShowType: ADD_QUESTION_TYPE.LANGUAGE });
|
|
104
|
-
} }, { children: _jsx(Typography, __assign({ variant: "body2" }, { children: "\u8DDF\u8BFB\u80FD\u529B" })) }))] }));
|
|
105
|
-
return (_jsxs(Box, __assign({ display: "flex", alignItems: "center", height: 56 }, { children: [_jsx(Typography, __assign({ variant: "subtitle1" }, { children: aiShowType === ADD_QUESTION_TYPE.FREE ? '自由作答' : '跟读能力' })), _jsx(Popover, __assign({ open: switchTypeOpen, content: content, onClickAway: function () { return setSwitchTypeOpen(false); } }, { children: _jsx(Button, __assign({ variant: "text", size: "small", sx: { fontSize: 12, color: 'rgb(87, 107, 149)' }, onClick: function () { return setSwitchTypeOpen(true); } }, { children: "\u5207\u6362\u9898\u578B" })) }))] })));
|
|
106
|
-
};
|
|
107
|
-
var getModelParams = useCallback(function (values, isSubmit) {
|
|
108
|
-
return new Promise(function (resolve, reject) {
|
|
109
|
-
var _a;
|
|
110
|
-
var errorIndexes = [];
|
|
111
|
-
// 职场能力中不参与AI分析的提交时,过滤掉
|
|
112
|
-
var newAiAbilities = aiAbilities
|
|
113
|
-
.map(function (item) {
|
|
114
|
-
item.isNotCompute = true;
|
|
115
|
-
if (item.type === 6) {
|
|
116
|
-
var extra_1 = {};
|
|
117
|
-
var extraJson = JSON.parse(item.extra);
|
|
118
|
-
extraJson.forEach(function (_a, index) {
|
|
119
|
-
var words = _a.words, score = _a.score, color = _a.color;
|
|
120
|
-
if (!words)
|
|
121
|
-
errorIndexes.push(index);
|
|
122
|
-
extra_1[words] = { color: color, score: score };
|
|
123
|
-
});
|
|
124
|
-
setKeyPointAnalysisError(errorIndexes);
|
|
125
|
-
if (!errorIndexes.length && isSubmit) {
|
|
126
|
-
if (Object.keys(extra_1).length !== extraJson.length) {
|
|
127
|
-
Message.error('关键词不可重复');
|
|
128
|
-
reject();
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
return __assign(__assign({}, item), { extra: JSON.stringify(extra_1) });
|
|
132
|
-
}
|
|
133
|
-
return item;
|
|
134
|
-
})
|
|
135
|
-
.filter(function (v) { return v.abilityType === 1 || (v.abilityType === 2 && v.isWorkplace); });
|
|
136
|
-
var _b = values || { category: undefined }, _c = _b.readText, readText = _c === void 0 ? '' : _c, otherValues = __rest(_b, ["readText"]);
|
|
137
|
-
resolve({
|
|
138
|
-
errorIndexes: errorIndexes,
|
|
139
|
-
params: __assign(__assign(__assign(__assign({}, item), otherValues), analysisState), { category: (otherValues === null || otherValues === void 0 ? void 0 : otherValues.category) ? [(_a = otherValues === null || otherValues === void 0 ? void 0 : otherValues.category) === null || _a === void 0 ? void 0 : _a.value] : [], extra: readText && item.extra ? __assign(__assign({}, item.extra), { readText: readText }) : item.extra, aiType: newAiAbilities.length > 0 ? 2 : 1, // 不参与AI分析的考察能力不可设置题目权重,只有可AI分析的职场能力和AI基础能力
|
|
140
|
-
aiShowType: aiShowType, aiAbilities: newAiAbilities }),
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
}, [aiAbilities, aiShowType, analysisState, item, setKeyPointAnalysisError]);
|
|
144
|
-
var handleClose = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
145
|
-
var values, params;
|
|
146
|
-
var _a;
|
|
147
|
-
return __generator(this, function (_b) {
|
|
148
|
-
switch (_b.label) {
|
|
149
|
-
case 0:
|
|
150
|
-
values = (_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.handleValues();
|
|
151
|
-
return [4 /*yield*/, getModelParams(values, false)];
|
|
152
|
-
case 1:
|
|
153
|
-
params = (_b.sent()).params;
|
|
154
|
-
if (item.extra === null) {
|
|
155
|
-
item.extra = params.extra;
|
|
156
|
-
}
|
|
157
|
-
// console.log(item, params);
|
|
158
|
-
if (JSON.stringify(item) !== JSON.stringify(params)) {
|
|
159
|
-
confirm({
|
|
160
|
-
header: null,
|
|
161
|
-
content: '你还未保存当前修改,确认离开吗?',
|
|
162
|
-
okText: '离开',
|
|
163
|
-
okProps: {
|
|
164
|
-
color: 'error',
|
|
165
|
-
variant: 'contained',
|
|
166
|
-
},
|
|
167
|
-
onOk: function (_a) {
|
|
168
|
-
var onClose = _a.onClose;
|
|
169
|
-
updateQuestionState({ open: false });
|
|
170
|
-
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
171
|
-
},
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
updateQuestionState({ open: false });
|
|
176
|
-
}
|
|
177
|
-
return [2 /*return*/];
|
|
178
|
-
}
|
|
179
|
-
});
|
|
180
|
-
}); }, [getModelParams, item, updateQuestionState]);
|
|
181
|
-
var handleOk = function () { return __awaiter(void 0, void 0, void 0, function () { var _a; return __generator(this, function (_b) {
|
|
182
|
-
return [2 /*return*/, (_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.handleSubmit()];
|
|
183
|
-
}); }); };
|
|
184
|
-
var handleSubmit = useCallback(function (values) { return __awaiter(void 0, void 0, void 0, function () {
|
|
185
|
-
var _a, errorIndexes, params;
|
|
186
|
-
return __generator(this, function (_b) {
|
|
187
|
-
switch (_b.label) {
|
|
188
|
-
case 0: return [4 /*yield*/, getModelParams(values, true)];
|
|
189
|
-
case 1:
|
|
190
|
-
_a = _b.sent(), errorIndexes = _a.errorIndexes, params = _a.params;
|
|
191
|
-
if (values.broadcastType === 2 && !(item === null || item === void 0 ? void 0 : item.videoBroadcast.videoUrl)) {
|
|
192
|
-
Message.error('请上传视频素材');
|
|
193
|
-
return [2 /*return*/, false];
|
|
194
|
-
}
|
|
195
|
-
if (!errorIndexes.length) {
|
|
196
|
-
token ? editModel(params, index) : addModel(params);
|
|
197
|
-
updateQuestionState({ open: false });
|
|
198
|
-
}
|
|
199
|
-
return [2 /*return*/];
|
|
200
|
-
}
|
|
201
|
-
});
|
|
202
|
-
}); }, [getModelParams, item === null || item === void 0 ? void 0 : item.videoBroadcast.videoUrl, token, editModel, index, addModel, updateQuestionState]);
|
|
203
|
-
var handleWorkplaceData = useCallback(function (curSelectWorkPlace) {
|
|
204
|
-
// console.log('curSelectWorkPlace', curSelectWorkPlace);
|
|
205
|
-
var curAiAbilities = aiAbilities.slice();
|
|
206
|
-
// 是否是初始化
|
|
207
|
-
var inInit = true;
|
|
208
|
-
// 考察能力是否包含在AI能力
|
|
209
|
-
var workplaceTypeIndex = curAiAbilities.findIndex(function (v) { return v.abilityType === 2; });
|
|
210
|
-
var CurWorkplace = questionCollectionList.find(function (v) { return v.name === curSelectWorkPlace.label; }) || {};
|
|
211
|
-
var CurWorkPlaceAiAbility = __assign(__assign(__assign({}, curSelectWorkPlace), CurWorkplace), { abilityType: 2, weight: 0, sort: 0 });
|
|
212
|
-
inInit = workplaceTypeIndex === -1;
|
|
213
|
-
CurWorkPlaceAiAbility.desc = CurWorkPlaceAiAbility.name;
|
|
214
|
-
// console.log('CurWorkPlaceAiAbility', CurWorkPlaceAiAbility);
|
|
215
|
-
// 添加和修改
|
|
216
|
-
if (workplaceTypeIndex > -1) {
|
|
217
|
-
curAiAbilities.splice(workplaceTypeIndex, 1, CurWorkPlaceAiAbility);
|
|
218
|
-
}
|
|
219
|
-
else {
|
|
220
|
-
curAiAbilities.unshift(CurWorkPlaceAiAbility);
|
|
221
|
-
}
|
|
222
|
-
console.log('curAiAbilities', curAiAbilities, inInit);
|
|
223
|
-
updateAiAbilities(curAiAbilities, inInit);
|
|
224
|
-
}, [questionCollectionList, aiAbilities, updateAiAbilities]);
|
|
225
|
-
var handleCategoryChange = useCallback(function (value) {
|
|
226
|
-
// console.log('category value:', value);
|
|
227
|
-
// 考察能力更改
|
|
228
|
-
if (value && value.label) {
|
|
229
|
-
handleWorkplaceData(value);
|
|
230
|
-
}
|
|
231
|
-
else if (!(value === null || value === void 0 ? void 0 : value.label)) {
|
|
232
|
-
var curAiAbilities = aiAbilities.filter(function (v) { return v.abilityType === 1; });
|
|
233
|
-
updateAiAbilities(curAiAbilities);
|
|
234
|
-
// 考察能力删除
|
|
235
|
-
// console.log('考察能力删除', aiAbilities);
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
239
|
-
[aiAbilities, handleWorkplaceData]);
|
|
240
|
-
useEffect(function () {
|
|
241
|
-
if (open) {
|
|
242
|
-
updateState({ language: item.language, aiSwitch: item.aiSwitch });
|
|
243
|
-
updateAiAbilities(item.aiAbilities, true);
|
|
244
|
-
}
|
|
245
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
246
|
-
}, [open, item.aiAbilities]);
|
|
247
|
-
useEffect(function () {
|
|
248
|
-
var _a;
|
|
249
|
-
// 删除考察能力时,考察能力选择框清空
|
|
250
|
-
var WorkplaceLength = workplaces.length;
|
|
251
|
-
if (WorkplaceLength === 0) {
|
|
252
|
-
(_a = formRef === null || formRef === void 0 ? void 0 : formRef.current) === null || _a === void 0 ? void 0 : _a.setFormValues({ category: { label: '', value: '' } });
|
|
253
|
-
}
|
|
254
|
-
}, [workplaces]);
|
|
255
|
-
return (_jsx(Dialog, __assign({ open: open, header: CustomHeader, size: "sm", okText: "\u786E\u8BA4", onClose: handleClose, onOk: handleOk }, { children: _jsx(ScrollDialogContent, { children: _jsx(Box, __assign({ sx: { mt: 1 } }, { children: _jsx(Form, { ref: formRef, initialValues: initialValues, aiShowType: aiShowType, onSubmit: handleSubmit, onCategoryChange: handleCategoryChange }) })) }) })));
|
|
256
|
-
};
|
|
257
|
-
export default QuestionUpdate;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { BaseAiAbilityParams, BaseExtraParams } from '@/modules/ai-question/interface';
|
|
2
|
-
export interface VideoBroadcastParams {
|
|
3
|
-
videoRetry?: number;
|
|
4
|
-
videoUrl?: string;
|
|
5
|
-
videoSkip?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface QuestionParams {
|
|
8
|
-
name: string;
|
|
9
|
-
token: string;
|
|
10
|
-
originToken: string;
|
|
11
|
-
type: number;
|
|
12
|
-
desc: string;
|
|
13
|
-
prepareTime: number;
|
|
14
|
-
duration: number;
|
|
15
|
-
category?: string[];
|
|
16
|
-
extra: BaseExtraParams;
|
|
17
|
-
broadcastType: number;
|
|
18
|
-
aiSwitch?: number;
|
|
19
|
-
aiType: number;
|
|
20
|
-
weight: number | string;
|
|
21
|
-
language?: number;
|
|
22
|
-
aiShowType: number;
|
|
23
|
-
videoBroadcast: VideoBroadcastParams;
|
|
24
|
-
answerStatus: number;
|
|
25
|
-
aiAbilities: BaseAiAbilityParams[];
|
|
26
|
-
}
|
|
27
|
-
export interface SubmitModelParams {
|
|
28
|
-
name: string;
|
|
29
|
-
questions: QuestionParams[];
|
|
30
|
-
}
|
|
31
|
-
export interface QuestionFormValues {
|
|
32
|
-
name: string;
|
|
33
|
-
desc: string;
|
|
34
|
-
prepareTime: number;
|
|
35
|
-
duration: number;
|
|
36
|
-
broadcastType: number;
|
|
37
|
-
category?: {
|
|
38
|
-
label: string;
|
|
39
|
-
value: string;
|
|
40
|
-
};
|
|
41
|
-
readText?: string;
|
|
42
|
-
}
|
|
43
|
-
export interface QuestionFormProps {
|
|
44
|
-
initialValues: QuestionFormValues;
|
|
45
|
-
values?: QuestionFormValues;
|
|
46
|
-
preview?: boolean;
|
|
47
|
-
aiShowType: number;
|
|
48
|
-
onCategoryChange?: (category: any) => void;
|
|
49
|
-
onValuesChange?: (values: QuestionFormValues) => void;
|
|
50
|
-
onSubmit?: (values: QuestionFormValues) => void;
|
|
51
|
-
}
|
|
52
|
-
export interface UpdateQuestionState {
|
|
53
|
-
open: boolean;
|
|
54
|
-
aiShowType: number;
|
|
55
|
-
token: string;
|
|
56
|
-
item: QuestionParams;
|
|
57
|
-
index: number;
|
|
58
|
-
}
|
|
59
|
-
export interface FormRef {
|
|
60
|
-
handleValues: () => QuestionFormValues;
|
|
61
|
-
handleSubmit: () => void;
|
|
62
|
-
setFormValues: (values: Partial<QuestionFormValues>) => void;
|
|
63
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
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 } from "react/jsx-runtime";
|
|
13
|
-
import { forwardRef, memo } from 'react';
|
|
14
|
-
import RootProvider from "../../components/RootProvider";
|
|
15
|
-
import QuestionRoot from './Root';
|
|
16
|
-
var AiQuestion = forwardRef(function (props, ref) {
|
|
17
|
-
return (_jsx(RootProvider, { children: _jsx(QuestionRoot, __assign({ ref: ref }, props)) }));
|
|
18
|
-
});
|
|
19
|
-
AiQuestion.displayName = 'AiQuestion';
|
|
20
|
-
export default memo(AiQuestion);
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { QuestionModelStep } from './components/QuestionModel/interface';
|
|
2
|
-
export interface BaseExtraParams {
|
|
3
|
-
expect?: string;
|
|
4
|
-
target?: string;
|
|
5
|
-
model?: number;
|
|
6
|
-
readText: string;
|
|
7
|
-
decisionMaxScore?: number;
|
|
8
|
-
icon?: string;
|
|
9
|
-
riskMaxScore?: number;
|
|
10
|
-
maxScore?: number;
|
|
11
|
-
}
|
|
12
|
-
export interface BaseAiAbilityParams {
|
|
13
|
-
token: string;
|
|
14
|
-
name: string;
|
|
15
|
-
type: number;
|
|
16
|
-
category: number;
|
|
17
|
-
config?: {};
|
|
18
|
-
extra: string;
|
|
19
|
-
relatedAbilities: number[];
|
|
20
|
-
sort: number;
|
|
21
|
-
weight: number | string;
|
|
22
|
-
abilityType: number;
|
|
23
|
-
isWorkplace?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export interface MineExtra {
|
|
26
|
-
firstFrameUrl: string;
|
|
27
|
-
}
|
|
28
|
-
export interface CommonUploadData {
|
|
29
|
-
length: number;
|
|
30
|
-
mineExtra: MineExtra;
|
|
31
|
-
url: string;
|
|
32
|
-
}
|
|
33
|
-
export interface CommonUploadDataRes {
|
|
34
|
-
data: CommonUploadData[];
|
|
35
|
-
}
|
|
36
|
-
export interface SaveAiModelData {
|
|
37
|
-
token: string;
|
|
38
|
-
}
|
|
39
|
-
export interface SaveAiModelDataRes {
|
|
40
|
-
data: SaveAiModelData;
|
|
41
|
-
}
|
|
42
|
-
export interface Media {
|
|
43
|
-
mediaUrl?: string;
|
|
44
|
-
thumbUrl?: string;
|
|
45
|
-
appliedAllPosition?: boolean;
|
|
46
|
-
}
|
|
47
|
-
export interface AiQuestionProps {
|
|
48
|
-
token: string;
|
|
49
|
-
name?: string;
|
|
50
|
-
templateList?: QuestionModelStep[];
|
|
51
|
-
mediaList?: Array<{
|
|
52
|
-
url: string;
|
|
53
|
-
thumbUrl: string;
|
|
54
|
-
}>;
|
|
55
|
-
onLoad?: (steps?: QuestionModelStep[]) => void;
|
|
56
|
-
onOpenTemplate?: (steps?: QuestionModelStep[]) => void;
|
|
57
|
-
}
|
|
58
|
-
export interface AiQuestionValues {
|
|
59
|
-
data: {
|
|
60
|
-
name?: string;
|
|
61
|
-
token?: string;
|
|
62
|
-
steps?: QuestionModelStep[];
|
|
63
|
-
};
|
|
64
|
-
media: Media;
|
|
65
|
-
}
|
|
66
|
-
export interface AiQuestionSubmitData extends Media {
|
|
67
|
-
token: string;
|
|
68
|
-
}
|
|
69
|
-
export interface AiQuestionSubmitRes {
|
|
70
|
-
code: number;
|
|
71
|
-
data: AiQuestionSubmitData | undefined;
|
|
72
|
-
message: string;
|
|
73
|
-
}
|
|
74
|
-
export interface AiQuestionRef {
|
|
75
|
-
handleTemplate: (steps: QuestionModelStep[]) => void;
|
|
76
|
-
handleValues: () => Promise<AiQuestionValues>;
|
|
77
|
-
handleSubmit: () => Promise<AiQuestionSubmitRes>;
|
|
78
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AiQuestionProps, AiQuestionRef } from './interface';
|
|
3
|
-
export declare const useAiQuestion: (props: AiQuestionProps) => {
|
|
4
|
-
ref: import("react").MutableRefObject<AiQuestionRef | undefined>;
|
|
5
|
-
handleValues: () => Promise<import("./interface").AiQuestionValues>;
|
|
6
|
-
handleSubmit: () => Promise<import("./interface").AiQuestionSubmitRes>;
|
|
7
|
-
handleTemplate: ((steps: import("./components/QuestionModel/interface").QuestionModelStep[]) => void) | undefined;
|
|
8
|
-
token: string;
|
|
9
|
-
name?: string | undefined;
|
|
10
|
-
templateList?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
11
|
-
mediaList?: {
|
|
12
|
-
url: string;
|
|
13
|
-
thumbUrl: string;
|
|
14
|
-
}[] | undefined;
|
|
15
|
-
onLoad?: ((steps?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
16
|
-
onOpenTemplate?: ((steps?: import("./components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
17
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
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 { useRef } from 'react';
|
|
13
|
-
export var useAiQuestion = function (props) {
|
|
14
|
-
var _a;
|
|
15
|
-
var ref = useRef();
|
|
16
|
-
var handleValues = function () { var _a; return (ref.current ? (_a = ref.current) === null || _a === void 0 ? void 0 : _a.handleValues() : Promise.reject()); };
|
|
17
|
-
var handleSubmit = function () { var _a; return (ref.current ? (_a = ref.current) === null || _a === void 0 ? void 0 : _a.handleSubmit() : Promise.reject()); };
|
|
18
|
-
var handleTemplate = (_a = ref.current) === null || _a === void 0 ? void 0 : _a.handleTemplate;
|
|
19
|
-
return __assign(__assign({}, props), { ref: ref, handleValues: handleValues, handleSubmit: handleSubmit, handleTemplate: handleTemplate });
|
|
20
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import AIEvaluate from './components/AIEvaluate';
|
|
14
|
-
import NotFinish from './components/NotFinish';
|
|
15
|
-
import ScoreReport from './components/ScoreReport';
|
|
16
|
-
import Suggestion from './components/Suggestion';
|
|
17
|
-
import VideoQuestion from './components/VideoQuestion';
|
|
18
|
-
import WorkPlaces from './components/WorkPlaces';
|
|
19
|
-
import { INTERVIEW_STATUS } from "../../enum/ai-report";
|
|
20
|
-
import { PostAiInterviewResult } from "../../services/ai-report";
|
|
21
|
-
import { useAiReportStore } from "../../store/ai-report/global-store";
|
|
22
|
-
import { useRequest } from 'ahooks';
|
|
23
|
-
import { Box, Button, Typography } from 'fbm-ui';
|
|
24
|
-
import { forwardRef, memo, useCallback, useEffect, useImperativeHandle, useMemo, useRef } from 'react';
|
|
25
|
-
var NO_ANSWER = INTERVIEW_STATUS.NO_ANSWER;
|
|
26
|
-
var AiReportRoot = forwardRef(function (props, ref) {
|
|
27
|
-
var token = props.token, reminderSent = props.reminderSent, operableButtons = props.operableButtons, onLoad = props.onLoad, onSendReminderClick = props.onSendReminderClick;
|
|
28
|
-
var firstLoad = useRef(true);
|
|
29
|
-
var _a = useAiReportStore(), updateState = _a.updateState, updateReportResult = _a.updateReportResult, reportResult = _a.reportResult;
|
|
30
|
-
var _b = reportResult || {}, _c = _b.collection, collection = _c === void 0 ? [] : _c, _d = _b.workplaces, workplaces = _d === void 0 ? [] : _d;
|
|
31
|
-
var _e = useRequest(function () { return PostAiInterviewResult([token]); }, {
|
|
32
|
-
manual: true,
|
|
33
|
-
onSuccess: function (_a) {
|
|
34
|
-
var list = _a.data.list;
|
|
35
|
-
var result = list[0];
|
|
36
|
-
updateReportResult(result);
|
|
37
|
-
if (firstLoad.current) {
|
|
38
|
-
var pageStepIndexes_1 = [];
|
|
39
|
-
result.steps.forEach(function (_a, index) {
|
|
40
|
-
var videoUrl = _a.answer.videoUrl;
|
|
41
|
-
if (videoUrl) {
|
|
42
|
-
pageStepIndexes_1.push(index);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
firstLoad.current = false;
|
|
46
|
-
onLoad === null || onLoad === void 0 ? void 0 : onLoad(__assign({ pageStepIndexes: pageStepIndexes_1 }, result));
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
}), data = _e.data, loading = _e.loading, postAiInterviewResult = _e.run;
|
|
50
|
-
var status = (data === null || data === void 0 ? void 0 : data.data.list[0].status) || NO_ANSWER;
|
|
51
|
-
var handleRefreshSuccess = useCallback(function () {
|
|
52
|
-
postAiInterviewResult();
|
|
53
|
-
}, [postAiInterviewResult]);
|
|
54
|
-
useImperativeHandle(ref, function () { return ({
|
|
55
|
-
handleRefresh: function () { return postAiInterviewResult(); },
|
|
56
|
-
}); });
|
|
57
|
-
useEffect(function () {
|
|
58
|
-
firstLoad.current = true;
|
|
59
|
-
postAiInterviewResult();
|
|
60
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
61
|
-
}, [token]);
|
|
62
|
-
useEffect(function () {
|
|
63
|
-
updateState(props);
|
|
64
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
65
|
-
}, [props]);
|
|
66
|
-
var aiReportResult = useMemo(function () {
|
|
67
|
-
if (status === NO_ANSWER) {
|
|
68
|
-
return (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", justifyContent: "center", flexDirection: "column", style: { marginTop: '149px' } }, { children: [_jsx(Box, { children: _jsx("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/CandidateInfoEmpty.png", alt: "", style: { width: '140px', height: '140px' } }) }), _jsx(Box, __assign({ mt: 2 }, { children: _jsx(Typography, __assign({ variant: "body1", color: "textPrimary", style: { fontWeight: '500' } }, { children: "\u8BE5\u5019\u9009\u4EBA\u5C1A\u672A\u5F00\u59CB\u9762\u8BD5" })) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('sendReminder')) && (_jsxs(_Fragment, { children: [_jsx(Box, __assign({ style: { marginTop: '2px' } }, { children: _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: "\u82E5\u957F\u65F6\u95F4\u672A\u5F00\u59CB\uFF0C\u5EFA\u8BAE\u4F60\u7ED9\u5019\u9009\u4EBA\u53D1\u9001\u77ED\u4FE1\u63D0\u9192" })) })), _jsx(Box, __assign({ mt: 2 }, { children: _jsx(Button, __assign({ size: "large", variant: "outlined", color: "primary", disabled: reminderSent, onClick: onSendReminderClick }, { children: reminderSent ? '已提醒' : '发送提醒' })) }))] }))] })));
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return (_jsxs(Box, { children: [_jsx(NotFinish, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && _jsx(ScoreReport, { onRefreshSuccess: handleRefreshSuccess }), (workplaces === null || workplaces === void 0 ? void 0 : workplaces.length) > 0 && _jsx(WorkPlaces, {}), (collection === null || collection === void 0 ? void 0 : collection.length) > 0 && _jsx(AIEvaluate, {}), _jsx(Suggestion, {}), _jsx(VideoQuestion, {})] }));
|
|
72
|
-
}
|
|
73
|
-
}, [handleRefreshSuccess, onSendReminderClick, reminderSent, status, operableButtons, collection, workplaces]);
|
|
74
|
-
return (_jsx(Box, __assign({ loading: firstLoad.current && loading, sx: { width: '100%', minHeight: '584px', height: '100%', margin: '0 auto', overflow: 'auto' } }, { children: aiReportResult })));
|
|
75
|
-
});
|
|
76
|
-
AiReportRoot.displayName = 'AiReportRoot';
|
|
77
|
-
export default memo(AiReportRoot);
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare type Mode = 'edit' | 'show';
|
|
3
|
-
declare type Field = 'evaluations' | 'suggestions';
|
|
4
|
-
interface EvaluateProps {
|
|
5
|
-
title: string;
|
|
6
|
-
token: string;
|
|
7
|
-
field: Field;
|
|
8
|
-
evaluations: Array<string>;
|
|
9
|
-
mode?: Mode;
|
|
10
|
-
canEdit?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const Evaluate: React.FC<EvaluateProps>;
|
|
13
|
-
export default Evaluate;
|