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,158 +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 _a;
|
|
13
|
-
import { useUpdateQuestionStore } from "./question-update-store";
|
|
14
|
-
import { computeDecimalValue, formatNumberDecimal, uniqueId } from "../../utils/utils";
|
|
15
|
-
import { useSetState } from 'ahooks';
|
|
16
|
-
import { createStore } from 'hox';
|
|
17
|
-
import update from 'immutability-helper';
|
|
18
|
-
import { useCallback, useEffect, useState } from 'react';
|
|
19
|
-
var defaultAnalysisState = { aiSwitch: 2, language: 1 };
|
|
20
|
-
export var useAiAnalysisStore = (_a = createStore(function () {
|
|
21
|
-
var questionState = useUpdateQuestionStore(function (store) { return [store.questionState]; }).questionState;
|
|
22
|
-
var _a = useState([]), aiAbilities = _a[0], setAiAbilities = _a[1];
|
|
23
|
-
var _b = useState([]), workplaces = _b[0], setWorkplaces = _b[1];
|
|
24
|
-
var _c = useSetState(defaultAnalysisState), analysisState = _c[0], setState = _c[1];
|
|
25
|
-
var _d = useState([]), keyPointAnalysisError = _d[0], setKeyPointAnalysisError = _d[1];
|
|
26
|
-
var updateState = function (params) { return setState(params); };
|
|
27
|
-
/**
|
|
28
|
-
* 权重值计算
|
|
29
|
-
* @param steps 模型数据
|
|
30
|
-
*/
|
|
31
|
-
var computeWeight = useCallback(function (data, inInit) {
|
|
32
|
-
if (inInit === void 0) { inInit = false; }
|
|
33
|
-
// isNotCompute 不能计算,不能修改的意思
|
|
34
|
-
// console.log('computeWeight AiAbility list', data, inInit);
|
|
35
|
-
var weightList = data.filter(function (_a) {
|
|
36
|
-
var isNotCompute = _a.isNotCompute;
|
|
37
|
-
return !isNotCompute;
|
|
38
|
-
}).map(function (_a) {
|
|
39
|
-
var weight = _a.weight;
|
|
40
|
-
return Math.floor(Number(weight));
|
|
41
|
-
});
|
|
42
|
-
var weightsLen = Array.from(new Set(weightList)).length;
|
|
43
|
-
var lastToken = data.length ? data[data.length - 1].token : '';
|
|
44
|
-
var beforeTotalWeight = data.map(function (_a, i) {
|
|
45
|
-
var weight = _a.weight;
|
|
46
|
-
return (i < data.length - 1 ? Number(weight) : 0);
|
|
47
|
-
}).reduce(function (pv, i) { return pv + i; }, 0);
|
|
48
|
-
var getWeight = function (_a) {
|
|
49
|
-
var token = _a.token, weight = _a.weight;
|
|
50
|
-
if (weightsLen <= 1 && !inInit) {
|
|
51
|
-
var dataLength = data.filter(function (_a) {
|
|
52
|
-
var abilityType = _a.abilityType, isWorkplace = _a.isWorkplace;
|
|
53
|
-
return abilityType === 1 || (abilityType === 2 && isWorkplace);
|
|
54
|
-
}).length;
|
|
55
|
-
var averageWeight = Math.floor((100 / dataLength) * 100) / 100;
|
|
56
|
-
var disableWeight = 100 - Math.floor(averageWeight * (dataLength - 1) * 100) / 100;
|
|
57
|
-
var resWeight = token === data[dataLength - 1].token ? computeDecimalValue(disableWeight.toString()) : computeDecimalValue(averageWeight.toString());
|
|
58
|
-
return resWeight;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
var resWeight = lastToken !== token ? weight : computeDecimalValue((100 - beforeTotalWeight).toString());
|
|
62
|
-
return resWeight;
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
var $splice = data.map(function (item, i) {
|
|
66
|
-
var weight = item.abilityType === 2 && item.isWorkplace === false ? 0 : getWeight(item);
|
|
67
|
-
// console.log('computeWeight', item.name, { ...item, weight });
|
|
68
|
-
return [
|
|
69
|
-
i,
|
|
70
|
-
1,
|
|
71
|
-
__assign(__assign({}, item), { isNotCompute: false, weight: weight }),
|
|
72
|
-
];
|
|
73
|
-
});
|
|
74
|
-
var resAiAbilities = update(data, { $splice: $splice });
|
|
75
|
-
console.log('resAiAbilities', resAiAbilities);
|
|
76
|
-
setAiAbilities(resAiAbilities);
|
|
77
|
-
}, []);
|
|
78
|
-
/**
|
|
79
|
-
* 更新AI分析维度
|
|
80
|
-
*/
|
|
81
|
-
var updateAiAbilities = useCallback(function (data, inInit) {
|
|
82
|
-
if (inInit === void 0) { inInit = false; }
|
|
83
|
-
data.forEach(function (item) {
|
|
84
|
-
if (item.isNotCompute === undefined) {
|
|
85
|
-
item.isNotCompute = true;
|
|
86
|
-
}
|
|
87
|
-
if (!item.extra) {
|
|
88
|
-
if (item.type === 6) {
|
|
89
|
-
item.extra = JSON.stringify([{ words: '', score: '0', color: 'rgb(249, 222, 148)', id: uniqueId() }]);
|
|
90
|
-
}
|
|
91
|
-
if (item.type === 8) {
|
|
92
|
-
item.extra = JSON.stringify({ expect: 'positive' });
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
if (item.abilityType === 2) {
|
|
96
|
-
setWorkplaces([item]);
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
computeWeight(data, inInit);
|
|
100
|
-
}, [computeWeight]);
|
|
101
|
-
/**
|
|
102
|
-
* 更新AI分析维度权重
|
|
103
|
-
*/
|
|
104
|
-
var updateAiAbilitiesWeight = useCallback(function (value, index) {
|
|
105
|
-
var _a;
|
|
106
|
-
var formatValue = formatNumberDecimal(value);
|
|
107
|
-
var curOriginalWeight = Number(aiAbilities[index].weight);
|
|
108
|
-
var disabledWeight = Number(aiAbilities[aiAbilities.length - 1].weight);
|
|
109
|
-
var maxInputValue = computeDecimalValue((curOriginalWeight + disabledWeight).toString());
|
|
110
|
-
if (Number(formatValue) <= maxInputValue) {
|
|
111
|
-
var newAiAbilities = update(aiAbilities, (_a = {}, _a[index] = { weight: { $set: formatValue } }, _a));
|
|
112
|
-
computeWeight(newAiAbilities);
|
|
113
|
-
}
|
|
114
|
-
}, [aiAbilities, computeWeight]);
|
|
115
|
-
/**
|
|
116
|
-
* 删除AI分析维度
|
|
117
|
-
*/
|
|
118
|
-
var removeAiAbilities = useCallback(function (index) {
|
|
119
|
-
var newAiAbilities = update(aiAbilities, { $splice: [[index, 1]] });
|
|
120
|
-
var WorkplaceLength = newAiAbilities.filter(function (v) { return v.abilityType === 2; }).length;
|
|
121
|
-
if (WorkplaceLength === 0) {
|
|
122
|
-
setWorkplaces([]);
|
|
123
|
-
}
|
|
124
|
-
if (newAiAbilities.length) {
|
|
125
|
-
computeWeight(newAiAbilities);
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
setAiAbilities(newAiAbilities);
|
|
129
|
-
}
|
|
130
|
-
}, [aiAbilities, computeWeight]);
|
|
131
|
-
/**
|
|
132
|
-
* 更新考察能力分析维度
|
|
133
|
-
*/
|
|
134
|
-
var updateWorkplaces = useCallback(function (data) {
|
|
135
|
-
setWorkplaces(data);
|
|
136
|
-
}, [setWorkplaces]);
|
|
137
|
-
useEffect(function () {
|
|
138
|
-
if (!questionState.open) {
|
|
139
|
-
setTimeout(function () {
|
|
140
|
-
setAiAbilities([]);
|
|
141
|
-
setState(defaultAnalysisState);
|
|
142
|
-
setKeyPointAnalysisError([]);
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
}, [questionState.open, setState]);
|
|
146
|
-
return {
|
|
147
|
-
aiAbilities: aiAbilities,
|
|
148
|
-
workplaces: workplaces,
|
|
149
|
-
analysisState: analysisState,
|
|
150
|
-
keyPointAnalysisError: keyPointAnalysisError,
|
|
151
|
-
updateState: updateState,
|
|
152
|
-
updateAiAbilities: updateAiAbilities,
|
|
153
|
-
updateAiAbilitiesWeight: updateAiAbilitiesWeight,
|
|
154
|
-
removeAiAbilities: removeAiAbilities,
|
|
155
|
-
updateWorkplaces: updateWorkplaces,
|
|
156
|
-
setKeyPointAnalysisError: setKeyPointAnalysisError,
|
|
157
|
-
};
|
|
158
|
-
}), _a[0]), AiAnalysisStoreProvider = _a[1];
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Media } from '@/modules/ai-question/interface';
|
|
2
|
-
export declare const useBootVideoStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
-
updateBootVideo: (params: Media) => void;
|
|
4
|
-
mediaUrl?: string | undefined;
|
|
5
|
-
thumbUrl?: string | undefined;
|
|
6
|
-
appliedAllPosition?: boolean | undefined;
|
|
7
|
-
}> | undefined) => {
|
|
8
|
-
updateBootVideo: (params: Media) => void;
|
|
9
|
-
mediaUrl?: string | undefined;
|
|
10
|
-
thumbUrl?: string | undefined;
|
|
11
|
-
appliedAllPosition?: boolean | undefined;
|
|
12
|
-
}, getBootVideoStore: () => {
|
|
13
|
-
updateBootVideo: (params: Media) => void;
|
|
14
|
-
mediaUrl?: string | undefined;
|
|
15
|
-
thumbUrl?: string | undefined;
|
|
16
|
-
appliedAllPosition?: boolean | undefined;
|
|
17
|
-
} | undefined;
|
|
@@ -1,21 +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 _a;
|
|
13
|
-
import { useState } from 'react';
|
|
14
|
-
import { createGlobalStore } from 'hox';
|
|
15
|
-
export var useBootVideoStore = (_a = createGlobalStore(function () {
|
|
16
|
-
var _a = useState({ mediaUrl: '', thumbUrl: '', appliedAllPosition: false }), state = _a[0], setState = _a[1];
|
|
17
|
-
var updateBootVideo = function (params) {
|
|
18
|
-
setState(__assign(__assign({}, state), params));
|
|
19
|
-
};
|
|
20
|
-
return __assign(__assign({}, state), { updateBootVideo: updateBootVideo });
|
|
21
|
-
}), _a[0]), getBootVideoStore = _a[1];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { AiQuestionProps } from '@/modules/ai-question/interface';
|
|
2
|
-
export declare const useAiQuestionStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
-
updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
|
|
4
|
-
token: string;
|
|
5
|
-
name?: string | undefined;
|
|
6
|
-
templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
7
|
-
mediaList?: {
|
|
8
|
-
url: string;
|
|
9
|
-
thumbUrl: string;
|
|
10
|
-
}[] | undefined;
|
|
11
|
-
onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
12
|
-
onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
13
|
-
}> | undefined) => {
|
|
14
|
-
updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
|
|
15
|
-
token: string;
|
|
16
|
-
name?: string | undefined;
|
|
17
|
-
templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
18
|
-
mediaList?: {
|
|
19
|
-
url: string;
|
|
20
|
-
thumbUrl: string;
|
|
21
|
-
}[] | undefined;
|
|
22
|
-
onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
23
|
-
onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
24
|
-
}, getAiQuestionStore: () => {
|
|
25
|
-
updateState: import("ahooks/lib/useSetState").SetState<AiQuestionProps>;
|
|
26
|
-
token: string;
|
|
27
|
-
name?: string | undefined;
|
|
28
|
-
templateList?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined;
|
|
29
|
-
mediaList?: {
|
|
30
|
-
url: string;
|
|
31
|
-
thumbUrl: string;
|
|
32
|
-
}[] | undefined;
|
|
33
|
-
onLoad?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
34
|
-
onOpenTemplate?: ((steps?: import("../../modules/ai-question/components/QuestionModel/interface").QuestionModelStep[] | undefined) => void) | undefined;
|
|
35
|
-
} | undefined;
|
|
@@ -1,22 +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 _a;
|
|
13
|
-
import { useSetState } from 'ahooks';
|
|
14
|
-
import { createGlobalStore } from 'hox';
|
|
15
|
-
export var useAiQuestionStore = (_a = createGlobalStore(function () {
|
|
16
|
-
var _a = useSetState({
|
|
17
|
-
token: '',
|
|
18
|
-
name: '',
|
|
19
|
-
mediaList: [],
|
|
20
|
-
}), state = _a[0], updateState = _a[1];
|
|
21
|
-
return __assign(__assign({}, state), { updateState: updateState });
|
|
22
|
-
}), _a[0]), getAiQuestionStore = _a[1];
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { QuestionModelData, QuestionModelStep } from '@/modules/ai-question/components/QuestionModel/interface';
|
|
3
|
-
export declare const useQuestionModelStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
4
|
-
questionModelData: QuestionModelData | undefined;
|
|
5
|
-
addModel: (modelStep: QuestionModelStep | QuestionModelStep[]) => void;
|
|
6
|
-
editModel: (modelStep: QuestionModelStep, index: number) => void;
|
|
7
|
-
removeModel: (index: number) => void;
|
|
8
|
-
updateModel: import("react").Dispatch<import("react").SetStateAction<QuestionModelData | undefined>>;
|
|
9
|
-
updateModelWeight: (value: string, index: number) => void;
|
|
10
|
-
}> | undefined) => {
|
|
11
|
-
questionModelData: QuestionModelData | undefined;
|
|
12
|
-
addModel: (modelStep: QuestionModelStep | QuestionModelStep[]) => void;
|
|
13
|
-
editModel: (modelStep: QuestionModelStep, index: number) => void;
|
|
14
|
-
removeModel: (index: number) => void;
|
|
15
|
-
updateModel: import("react").Dispatch<import("react").SetStateAction<QuestionModelData | undefined>>;
|
|
16
|
-
updateModelWeight: (value: string, index: number) => void;
|
|
17
|
-
}, getQuestionModelStore: () => {
|
|
18
|
-
questionModelData: QuestionModelData | undefined;
|
|
19
|
-
addModel: (modelStep: QuestionModelStep | QuestionModelStep[]) => void;
|
|
20
|
-
editModel: (modelStep: QuestionModelStep, index: number) => void;
|
|
21
|
-
removeModel: (index: number) => void;
|
|
22
|
-
updateModel: import("react").Dispatch<import("react").SetStateAction<QuestionModelData | undefined>>;
|
|
23
|
-
updateModelWeight: (value: string, index: number) => void;
|
|
24
|
-
} | undefined;
|
|
@@ -1,136 +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 _a;
|
|
13
|
-
import { useCallback, useState } from 'react';
|
|
14
|
-
import { createGlobalStore } from 'hox';
|
|
15
|
-
import update from 'immutability-helper';
|
|
16
|
-
import { IS_AI_ANALYSIS } from "../../constants/ai-question";
|
|
17
|
-
import { computeDecimalValue, formatNumberDecimal, uniqueId } from "../../utils/utils";
|
|
18
|
-
export var useQuestionModelStore = (_a = createGlobalStore(function () {
|
|
19
|
-
var _a = useState(), questionModelData = _a[0], updateModel = _a[1];
|
|
20
|
-
var _b = (questionModelData || {}).steps, steps = _b === void 0 ? [] : _b;
|
|
21
|
-
/**
|
|
22
|
-
* 权重值计算
|
|
23
|
-
* @param steps 模型数据
|
|
24
|
-
*/
|
|
25
|
-
var computeWeight = useCallback(function (steps, isManualUpdate) {
|
|
26
|
-
if (isManualUpdate === void 0) { isManualUpdate = false; }
|
|
27
|
-
var lastAiTestIndex = 0;
|
|
28
|
-
// AI评分题
|
|
29
|
-
var aiTypeList = steps.filter(function (step, index) {
|
|
30
|
-
if (IS_AI_ANALYSIS(step)) {
|
|
31
|
-
lastAiTestIndex = index;
|
|
32
|
-
return true;
|
|
33
|
-
}
|
|
34
|
-
return false;
|
|
35
|
-
});
|
|
36
|
-
var aiTypeListLength = aiTypeList.length;
|
|
37
|
-
var weightList = aiTypeList.filter(function (_a) {
|
|
38
|
-
var isNotCompute = _a.isNotCompute;
|
|
39
|
-
return !isNotCompute;
|
|
40
|
-
}).map(function (_a) {
|
|
41
|
-
var weight = _a.weight;
|
|
42
|
-
return Math.floor(Number(weight));
|
|
43
|
-
});
|
|
44
|
-
var weightsLen = Array.from(new Set(weightList)).length; // 权重值分组数量
|
|
45
|
-
var beforeTotalWeight = aiTypeList
|
|
46
|
-
.map(function (_a, index) {
|
|
47
|
-
var weight = _a.weight;
|
|
48
|
-
return (index !== aiTypeListLength - 1 ? Number(weight) : 0);
|
|
49
|
-
})
|
|
50
|
-
.reduce(function (pv, i) { return pv + i; }, 0);
|
|
51
|
-
var totalDuration = 0;
|
|
52
|
-
var getWeight = function (_a, i) {
|
|
53
|
-
var weight = _a.weight;
|
|
54
|
-
if (weightsLen <= 1 && !isManualUpdate) {
|
|
55
|
-
var averageWeight = Math.floor((100 / aiTypeListLength) * 100) / 100;
|
|
56
|
-
var disableWeight = 100 - Math.floor(averageWeight * (aiTypeListLength - 1) * 100) / 100;
|
|
57
|
-
return i === lastAiTestIndex ? computeDecimalValue(disableWeight.toString()) : computeDecimalValue(averageWeight.toString());
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
return i !== lastAiTestIndex ? weight : computeDecimalValue((100 - beforeTotalWeight).toString());
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
var $splice = steps.map(function (step, i) {
|
|
64
|
-
totalDuration += step.duration;
|
|
65
|
-
delete step.isNotCompute;
|
|
66
|
-
return [
|
|
67
|
-
i,
|
|
68
|
-
1,
|
|
69
|
-
__assign(__assign({}, step), { weight: IS_AI_ANALYSIS(step) ? getWeight(step, i) : 0 }),
|
|
70
|
-
];
|
|
71
|
-
});
|
|
72
|
-
updateModel(__assign(__assign({}, questionModelData), { duration: totalDuration, steps: update(steps, { $splice: $splice }) }));
|
|
73
|
-
}, [questionModelData]);
|
|
74
|
-
/**
|
|
75
|
-
* 更新模型数据权重值
|
|
76
|
-
* @param value 权重值
|
|
77
|
-
* @param index 下标
|
|
78
|
-
*/
|
|
79
|
-
var updateModelWeight = useCallback(function (value, index) {
|
|
80
|
-
var _a;
|
|
81
|
-
var formatValue = formatNumberDecimal(value);
|
|
82
|
-
var curOriginalWeight = Number(steps[index].weight);
|
|
83
|
-
var aiTypeList = steps.filter(function (step) { return IS_AI_ANALYSIS(step); });
|
|
84
|
-
var disabledStep = aiTypeList.length ? aiTypeList[aiTypeList.length - 1] : undefined;
|
|
85
|
-
var maxInputValue = computeDecimalValue((curOriginalWeight + ((disabledStep === null || disabledStep === void 0 ? void 0 : disabledStep.weight) ? Number(disabledStep === null || disabledStep === void 0 ? void 0 : disabledStep.weight) : 0)).toString());
|
|
86
|
-
if (Number(formatValue) <= maxInputValue) {
|
|
87
|
-
var newSteps = update(steps, (_a = {}, _a[index] = { weight: { $set: formatValue } }, _a));
|
|
88
|
-
computeWeight(newSteps, true);
|
|
89
|
-
}
|
|
90
|
-
}, [steps, computeWeight]);
|
|
91
|
-
/**
|
|
92
|
-
* 新增模型数据
|
|
93
|
-
* @param modelStep 新增数据项
|
|
94
|
-
*/
|
|
95
|
-
var addModel = useCallback(function (modelStep) {
|
|
96
|
-
var isManualUpdate = !steps.length;
|
|
97
|
-
var stepArr = Array.isArray(modelStep)
|
|
98
|
-
? modelStep.map(function (item) { return (__assign(__assign({}, item), { weight: isManualUpdate ? item.weight : 0, isNotCompute: true, uniqueId: uniqueId() })); })
|
|
99
|
-
: [__assign(__assign({}, modelStep), { weight: isManualUpdate ? modelStep.weight : 0, isNotCompute: true, uniqueId: uniqueId() })];
|
|
100
|
-
var newSteps = update(steps, { $push: stepArr });
|
|
101
|
-
computeWeight(newSteps, isManualUpdate);
|
|
102
|
-
}, [computeWeight, steps]);
|
|
103
|
-
/**
|
|
104
|
-
* 编辑模型数据
|
|
105
|
-
* @param modelStep 编辑数据项
|
|
106
|
-
* @param index 下标
|
|
107
|
-
*/
|
|
108
|
-
var editModel = useCallback(function (modelStep, index) {
|
|
109
|
-
var aiTypeList = steps.filter(function (step) { return IS_AI_ANALYSIS(step); });
|
|
110
|
-
var newSteps = update(steps, {
|
|
111
|
-
$splice: [[index, 1, __assign(__assign(__assign({}, steps[index]), modelStep), { weight: aiTypeList.length ? modelStep.weight : 100 })]],
|
|
112
|
-
});
|
|
113
|
-
computeWeight(newSteps);
|
|
114
|
-
}, [computeWeight, steps]);
|
|
115
|
-
/**
|
|
116
|
-
* 删除模型数据
|
|
117
|
-
* @param index 下标
|
|
118
|
-
*/
|
|
119
|
-
var removeModel = useCallback(function (index) {
|
|
120
|
-
var newSteps = update(steps, { $splice: [[index, 1]] });
|
|
121
|
-
if (newSteps.length) {
|
|
122
|
-
computeWeight(newSteps);
|
|
123
|
-
}
|
|
124
|
-
else {
|
|
125
|
-
updateModel(__assign(__assign({}, questionModelData), { duration: 0, steps: newSteps }));
|
|
126
|
-
}
|
|
127
|
-
}, [computeWeight, questionModelData, steps]);
|
|
128
|
-
return {
|
|
129
|
-
questionModelData: questionModelData,
|
|
130
|
-
addModel: addModel,
|
|
131
|
-
editModel: editModel,
|
|
132
|
-
removeModel: removeModel,
|
|
133
|
-
updateModel: updateModel,
|
|
134
|
-
updateModelWeight: updateModelWeight,
|
|
135
|
-
};
|
|
136
|
-
}), _a[0]), getQuestionModelStore = _a[1];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { AiEvaluationList } from '@@/src/modules/ai-question/components/QuestionTemplate/interface';
|
|
2
|
-
export declare const useQuestionPreviewStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
-
visible: boolean;
|
|
4
|
-
previewItem: AiEvaluationList | undefined;
|
|
5
|
-
updatePreview: (visible: boolean, item?: AiEvaluationList) => void;
|
|
6
|
-
}> | undefined) => {
|
|
7
|
-
visible: boolean;
|
|
8
|
-
previewItem: AiEvaluationList | undefined;
|
|
9
|
-
updatePreview: (visible: boolean, item?: AiEvaluationList) => void;
|
|
10
|
-
}, getQuestionPreviewStore: () => {
|
|
11
|
-
visible: boolean;
|
|
12
|
-
previewItem: AiEvaluationList | undefined;
|
|
13
|
-
updatePreview: (visible: boolean, item?: AiEvaluationList) => void;
|
|
14
|
-
} | undefined;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
var _a;
|
|
2
|
-
import { useCallback, useState } from 'react';
|
|
3
|
-
import { createGlobalStore } from 'hox';
|
|
4
|
-
export var useQuestionPreviewStore = (_a = createGlobalStore(function () {
|
|
5
|
-
var _a = useState(false), visible = _a[0], setVisible = _a[1];
|
|
6
|
-
var _b = useState(), previewItem = _b[0], setPreviewItem = _b[1];
|
|
7
|
-
/**
|
|
8
|
-
* 更新预览数据
|
|
9
|
-
* @param visible 是否展示
|
|
10
|
-
* @param item 展示数据
|
|
11
|
-
*/
|
|
12
|
-
var updatePreview = useCallback(function (visible, item) {
|
|
13
|
-
setVisible(visible);
|
|
14
|
-
setPreviewItem(item);
|
|
15
|
-
}, []);
|
|
16
|
-
return {
|
|
17
|
-
visible: visible,
|
|
18
|
-
previewItem: previewItem,
|
|
19
|
-
updatePreview: updatePreview,
|
|
20
|
-
};
|
|
21
|
-
}), _a[0]), getQuestionPreviewStore = _a[1];
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AiEvaluationData } from '@/modules/ai-question/components/QuestionTemplate/interface';
|
|
3
|
-
export declare const useQuestionTemplateStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
4
|
-
aiEvaluationData: AiEvaluationData[];
|
|
5
|
-
updateAiEvaluationData: import("react").Dispatch<import("react").SetStateAction<AiEvaluationData[]>>;
|
|
6
|
-
}> | undefined) => {
|
|
7
|
-
aiEvaluationData: AiEvaluationData[];
|
|
8
|
-
updateAiEvaluationData: import("react").Dispatch<import("react").SetStateAction<AiEvaluationData[]>>;
|
|
9
|
-
}, getQuestionTemplateStore: () => {
|
|
10
|
-
aiEvaluationData: AiEvaluationData[];
|
|
11
|
-
updateAiEvaluationData: import("react").Dispatch<import("react").SetStateAction<AiEvaluationData[]>>;
|
|
12
|
-
} | undefined;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var _a;
|
|
2
|
-
import { useState } from 'react';
|
|
3
|
-
import { createGlobalStore } from 'hox';
|
|
4
|
-
export var useQuestionTemplateStore = (_a = createGlobalStore(function () {
|
|
5
|
-
var _a = useState([]), aiEvaluationData = _a[0], updateAiEvaluationData = _a[1];
|
|
6
|
-
return {
|
|
7
|
-
aiEvaluationData: aiEvaluationData,
|
|
8
|
-
updateAiEvaluationData: updateAiEvaluationData,
|
|
9
|
-
};
|
|
10
|
-
}), _a[0]), getQuestionTemplateStore = _a[1];
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UpdateQuestionState } from '@/modules/ai-question/components/QuestionUpdate/interface';
|
|
2
|
-
export declare const useUpdateQuestionStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
3
|
-
questionState: UpdateQuestionState;
|
|
4
|
-
updateQuestionState: (params: Partial<UpdateQuestionState>) => void;
|
|
5
|
-
}> | undefined) => {
|
|
6
|
-
questionState: UpdateQuestionState;
|
|
7
|
-
updateQuestionState: (params: Partial<UpdateQuestionState>) => void;
|
|
8
|
-
}, getUpdateQuestionStore: () => {
|
|
9
|
-
questionState: UpdateQuestionState;
|
|
10
|
-
updateQuestionState: (params: Partial<UpdateQuestionState>) => void;
|
|
11
|
-
} | undefined;
|
|
@@ -1,33 +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 _a;
|
|
13
|
-
import { useCallback } from 'react';
|
|
14
|
-
import { useSetState } from 'ahooks';
|
|
15
|
-
import { createGlobalStore } from 'hox';
|
|
16
|
-
import { defaultQuestionParams } from "../../modules/ai-question/components/QuestionUpdate/const";
|
|
17
|
-
import { ADD_QUESTION_TYPE } from "../../enum/ai-question";
|
|
18
|
-
export var useUpdateQuestionStore = (_a = createGlobalStore(function () {
|
|
19
|
-
var _a = useSetState({
|
|
20
|
-
open: false,
|
|
21
|
-
aiShowType: ADD_QUESTION_TYPE.FREE,
|
|
22
|
-
item: defaultQuestionParams,
|
|
23
|
-
token: '',
|
|
24
|
-
index: -1,
|
|
25
|
-
}), questionState = _a[0], setState = _a[1];
|
|
26
|
-
var updateQuestionState = useCallback(function (params) {
|
|
27
|
-
setState(__assign(__assign({}, questionState), params));
|
|
28
|
-
}, [questionState, setState]);
|
|
29
|
-
return {
|
|
30
|
-
questionState: questionState,
|
|
31
|
-
updateQuestionState: updateQuestionState,
|
|
32
|
-
};
|
|
33
|
-
}), _a[0]), getUpdateQuestionStore = _a[1];
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { AiInterviewReportList, AiReportProps } from '@/modules/ai-report/interface';
|
|
3
|
-
export declare const useAiReportStore: (depsFn?: import("hox/es/types").DepsFn<{
|
|
4
|
-
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
5
|
-
updateState: import("ahooks/lib/useSetState").SetState<AiReportProps>;
|
|
6
|
-
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
7
|
-
token: string;
|
|
8
|
-
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
9
|
-
disabledScore?: boolean | undefined;
|
|
10
|
-
reminderSent?: boolean | undefined;
|
|
11
|
-
showAbilitiesDetails?: boolean | undefined;
|
|
12
|
-
showAiDimension?: boolean | undefined;
|
|
13
|
-
canEditAiDimension?: boolean | undefined;
|
|
14
|
-
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
15
|
-
stepToken?: string | undefined;
|
|
16
|
-
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
17
|
-
reportRank?: {
|
|
18
|
-
total: number;
|
|
19
|
-
rank: number;
|
|
20
|
-
} | undefined;
|
|
21
|
-
customInterviewDimRankMap?: import("@/modules/ai-report/interface").CustomInterviewDimRankMap | undefined;
|
|
22
|
-
onLoad?: ((values: import("@/modules/ai-report/interface").AiReportLoadedValues) => void) | undefined;
|
|
23
|
-
onExportReportClick?: (() => void) | undefined;
|
|
24
|
-
onScoreChange?: ((scoreState?: import("@/modules/ai-report/interface").ScoreManualUpdateState | undefined) => void) | undefined;
|
|
25
|
-
onStepChange?: ((stepToken: string) => void) | undefined;
|
|
26
|
-
onSendReminderClick?: (() => void) | undefined;
|
|
27
|
-
onScoreRankIntervalsChange?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => void) | undefined;
|
|
28
|
-
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
29
|
-
}> | undefined) => {
|
|
30
|
-
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
31
|
-
updateState: import("ahooks/lib/useSetState").SetState<AiReportProps>;
|
|
32
|
-
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
33
|
-
token: string;
|
|
34
|
-
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
35
|
-
disabledScore?: boolean | undefined;
|
|
36
|
-
reminderSent?: boolean | undefined;
|
|
37
|
-
showAbilitiesDetails?: boolean | undefined;
|
|
38
|
-
showAiDimension?: boolean | undefined;
|
|
39
|
-
canEditAiDimension?: boolean | undefined;
|
|
40
|
-
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
41
|
-
stepToken?: string | undefined;
|
|
42
|
-
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
43
|
-
reportRank?: {
|
|
44
|
-
total: number;
|
|
45
|
-
rank: number;
|
|
46
|
-
} | undefined;
|
|
47
|
-
customInterviewDimRankMap?: import("@/modules/ai-report/interface").CustomInterviewDimRankMap | undefined;
|
|
48
|
-
onLoad?: ((values: import("@/modules/ai-report/interface").AiReportLoadedValues) => void) | undefined;
|
|
49
|
-
onExportReportClick?: (() => void) | undefined;
|
|
50
|
-
onScoreChange?: ((scoreState?: import("@/modules/ai-report/interface").ScoreManualUpdateState | undefined) => void) | undefined;
|
|
51
|
-
onStepChange?: ((stepToken: string) => void) | undefined;
|
|
52
|
-
onSendReminderClick?: (() => void) | undefined;
|
|
53
|
-
onScoreRankIntervalsChange?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => void) | undefined;
|
|
54
|
-
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
55
|
-
}, getAiReportStore: () => {
|
|
56
|
-
reportResult: Partial<AiInterviewReportList> | undefined;
|
|
57
|
-
updateState: import("ahooks/lib/useSetState").SetState<AiReportProps>;
|
|
58
|
-
updateReportResult: import("react").Dispatch<import("react").SetStateAction<Partial<AiInterviewReportList> | undefined>>;
|
|
59
|
-
token: string;
|
|
60
|
-
scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankInterval[] | undefined;
|
|
61
|
-
disabledScore?: boolean | undefined;
|
|
62
|
-
reminderSent?: boolean | undefined;
|
|
63
|
-
showAbilitiesDetails?: boolean | undefined;
|
|
64
|
-
showAiDimension?: boolean | undefined;
|
|
65
|
-
canEditAiDimension?: boolean | undefined;
|
|
66
|
-
operableButtons?: ("export" | "refresh" | "scoreRank" | "abilities" | "sendReminder")[] | undefined;
|
|
67
|
-
stepToken?: string | undefined;
|
|
68
|
-
interviewCheat?: import("@/modules/ai-report/interface").InterviewCheat | undefined;
|
|
69
|
-
reportRank?: {
|
|
70
|
-
total: number;
|
|
71
|
-
rank: number;
|
|
72
|
-
} | undefined;
|
|
73
|
-
customInterviewDimRankMap?: import("@/modules/ai-report/interface").CustomInterviewDimRankMap | undefined;
|
|
74
|
-
onLoad?: ((values: import("@/modules/ai-report/interface").AiReportLoadedValues) => void) | undefined;
|
|
75
|
-
onExportReportClick?: (() => void) | undefined;
|
|
76
|
-
onScoreChange?: ((scoreState?: import("@/modules/ai-report/interface").ScoreManualUpdateState | undefined) => void) | undefined;
|
|
77
|
-
onStepChange?: ((stepToken: string) => void) | undefined;
|
|
78
|
-
onSendReminderClick?: (() => void) | undefined;
|
|
79
|
-
onScoreRankIntervalsChange?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => void) | undefined;
|
|
80
|
-
onScoreRankIntervalsSubmit?: ((scoreRankIntervals?: import("../../modules/ai-report/components/RankingRange/interface").ScoreRankIntervals[] | undefined) => Promise<any>) | undefined;
|
|
81
|
-
} | undefined;
|
|
@@ -1,30 +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 _a;
|
|
13
|
-
import { useSetState } from 'ahooks';
|
|
14
|
-
import { createGlobalStore } from 'hox';
|
|
15
|
-
import { useState } from 'react';
|
|
16
|
-
export var useAiReportStore = (_a = createGlobalStore(function () {
|
|
17
|
-
var _a = useSetState({
|
|
18
|
-
token: '',
|
|
19
|
-
stepToken: '',
|
|
20
|
-
disabledScore: true,
|
|
21
|
-
showAiDimension: true,
|
|
22
|
-
canEditAiDimension: true,
|
|
23
|
-
scoreRankIntervals: [],
|
|
24
|
-
operableButtons: [],
|
|
25
|
-
reportRank: { rank: 0, total: 0 },
|
|
26
|
-
customInterviewDimRankMap: {},
|
|
27
|
-
}), state = _a[0], updateState = _a[1];
|
|
28
|
-
var _b = useState(), reportResult = _b[0], updateReportResult = _b[1];
|
|
29
|
-
return __assign(__assign({}, state), { reportResult: reportResult, updateState: updateState, updateReportResult: updateReportResult });
|
|
30
|
-
}), _a[0]), getAiReportStore = _a[1];
|