eli-video-interview 1.2.1 → 1.2.3-5.alpha

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.
Files changed (379) hide show
  1. package/README.md +1 -1
  2. package/esm/assets/icons/AI.svg +1 -0
  3. package/esm/components/AiHeaderTitle/index.d.ts +4 -0
  4. package/esm/components/AiHeaderTitle/index.js +19 -0
  5. package/esm/components/AiHeaderTitle/interface.d.ts +4 -0
  6. package/esm/components/BigBallSvg/index.js +1 -1
  7. package/esm/components/Charts/Chart.d.ts +1 -1
  8. package/esm/components/Charts/Chart.js +8 -8
  9. package/esm/components/Charts/ReportPie.js +15 -4
  10. package/esm/components/RootProvider/index.js +2 -2
  11. package/esm/components/ScoreBigBall/index.js +1 -1
  12. package/esm/components/ScrollDialogContent/index.js +1 -1
  13. package/esm/components/VideoPreview/index.js +2 -3
  14. package/esm/constants/ai-question.d.ts +1 -1
  15. package/esm/constants/ai-report.d.ts +27 -0
  16. package/esm/constants/ai-report.js +27 -0
  17. package/esm/index.d.ts +1 -0
  18. package/esm/index.js +1 -0
  19. package/esm/modules/ai-ability/Root.d.ts +3 -2
  20. package/esm/modules/ai-ability/Root.js +32 -19
  21. package/esm/modules/ai-ability/components/AbilityFormItem/index.d.ts +14 -0
  22. package/esm/modules/ai-ability/components/AbilityFormItem/index.js +129 -0
  23. package/esm/modules/ai-ability/components/AddAbility/index.d.ts +4 -0
  24. package/esm/modules/ai-ability/components/AddAbility/index.js +191 -0
  25. package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +2 -2
  26. package/esm/modules/ai-ability/components/UpdateAbility/index.js +98 -23
  27. package/esm/modules/ai-ability/const.d.ts +8 -0
  28. package/esm/modules/ai-ability/const.js +34 -0
  29. package/esm/modules/ai-ability/index.d.ts +3 -1
  30. package/esm/modules/ai-ability/index.js +14 -3
  31. package/esm/modules/ai-ability/interface.d.ts +38 -0
  32. package/esm/modules/ai-ability/styled.d.ts +3 -0
  33. package/esm/modules/ai-ability/styled.js +5 -1
  34. package/esm/modules/ai-ability-select/Root.d.ts +4 -0
  35. package/esm/modules/ai-ability-select/Root.js +40 -0
  36. package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +4 -0
  37. package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +22 -0
  38. package/esm/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +4 -0
  39. package/esm/modules/ai-ability-select/components/AiAbilityItem/index.js +40 -0
  40. package/esm/modules/ai-ability-select/components/AiAbilityItem/interface.d.ts +13 -0
  41. package/esm/modules/ai-ability-select/components/AiAbilityItem/interface.js +1 -0
  42. package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +2 -0
  43. package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.js +8 -0
  44. package/esm/modules/ai-ability-select/components/AiAbilityList/index.d.ts +4 -0
  45. package/esm/modules/ai-ability-select/components/AiAbilityList/index.js +19 -0
  46. package/esm/modules/ai-ability-select/components/AiAbilityList/interface.d.ts +4 -0
  47. package/esm/modules/ai-ability-select/components/AiAbilityList/interface.js +1 -0
  48. package/esm/modules/ai-ability-select/index.d.ts +4 -0
  49. package/esm/modules/ai-ability-select/index.js +20 -0
  50. package/esm/modules/ai-ability-select/interface.d.ts +27 -0
  51. package/esm/modules/ai-ability-select/interface.js +1 -0
  52. package/esm/modules/ai-question/Root.d.ts +1 -1
  53. package/esm/modules/ai-question/Root.js +22 -11
  54. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
  55. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +14 -9
  56. package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +2 -2
  57. package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +1 -1
  58. package/esm/modules/ai-question/components/AiAnalysis/index.js +10 -18
  59. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
  60. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +7 -0
  61. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
  62. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +40 -28
  63. package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
  64. package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
  65. package/esm/modules/ai-question/components/BaseAccordion/index.js +8 -8
  66. package/esm/modules/ai-question/components/BaseAccordion/styled.js +1 -1
  67. package/esm/modules/ai-question/components/BootVideo/index.d.ts +1 -1
  68. package/esm/modules/ai-question/components/BootVideo/index.js +27 -14
  69. package/esm/modules/ai-question/components/BootVideo/styled.js +6 -5
  70. package/esm/modules/ai-question/components/QuestionModel/AutoCombine.d.ts +4 -0
  71. package/esm/modules/ai-question/components/QuestionModel/AutoCombine.js +19 -0
  72. package/esm/modules/ai-question/components/QuestionModel/Header.js +6 -6
  73. package/esm/modules/ai-question/components/QuestionModel/Interactive.d.ts +6 -0
  74. package/esm/modules/ai-question/components/QuestionModel/Interactive.js +26 -0
  75. package/esm/modules/ai-question/components/QuestionModel/Item.d.ts +2 -2
  76. package/esm/modules/ai-question/components/QuestionModel/Item.js +14 -7
  77. package/esm/modules/ai-question/components/QuestionModel/List.js +28 -8
  78. package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +1 -1
  79. package/esm/modules/ai-question/components/QuestionModel/index.js +12 -8
  80. package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +5 -0
  81. package/esm/modules/ai-question/components/QuestionModel/styled.js +1 -1
  82. package/esm/modules/ai-question/components/QuestionPreview/index.js +6 -6
  83. package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
  84. package/esm/modules/ai-question/components/QuestionPreview/styled.js +1 -1
  85. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +10 -10
  86. package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +1 -1
  87. package/esm/modules/ai-question/components/QuestionTemplate/index.d.ts +2 -1
  88. package/esm/modules/ai-question/components/QuestionTemplate/index.js +7 -6
  89. package/esm/modules/ai-question/components/QuestionTemplate/interface.d.ts +10 -0
  90. package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +2 -2
  91. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +49 -13
  92. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.d.ts +4 -0
  93. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +60 -0
  94. package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.d.ts +8 -0
  95. package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +52 -0
  96. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +2 -2
  97. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +45 -49
  98. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.d.ts +6 -0
  99. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.js +47 -0
  100. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +5 -0
  101. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +65 -0
  102. package/esm/modules/ai-question/components/QuestionUpdate/const.js +1 -0
  103. package/esm/modules/ai-question/components/QuestionUpdate/index.js +84 -23
  104. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +13 -0
  105. package/esm/modules/ai-question/components/QuestionUpdate/styled.d.ts +6 -0
  106. package/esm/modules/ai-question/components/QuestionUpdate/styled.js +52 -0
  107. package/esm/modules/ai-question/index.js +3 -5
  108. package/esm/modules/ai-question/interface.d.ts +4 -0
  109. package/esm/modules/ai-question/useAiQuestion.d.ts +1 -0
  110. package/esm/modules/ai-report/Root.d.ts +1 -1
  111. package/esm/modules/ai-report/Root.js +17 -13
  112. package/esm/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +13 -0
  113. package/esm/modules/ai-report/components/AIEvaluate/Evaluate.js +60 -0
  114. package/esm/modules/ai-report/components/AIEvaluate/Graph.d.ts +13 -0
  115. package/esm/modules/ai-report/components/AIEvaluate/Graph.js +225 -0
  116. package/esm/modules/ai-report/components/AIEvaluate/index.d.ts +3 -0
  117. package/esm/modules/ai-report/components/AIEvaluate/index.js +40 -0
  118. package/esm/modules/ai-report/components/MenuAnchor/index.d.ts +4 -0
  119. package/esm/modules/ai-report/components/MenuAnchor/index.js +115 -0
  120. package/esm/modules/ai-report/components/NotFinish/index.js +2 -2
  121. package/esm/modules/ai-report/components/RankingRange/Item.js +2 -2
  122. package/esm/modules/ai-report/components/RankingRange/index.js +1 -1
  123. package/esm/modules/ai-report/components/RankingRange/styled.js +1 -1
  124. package/esm/modules/ai-report/components/ScoreReport/Bar.js +16 -10
  125. package/esm/modules/ai-report/components/ScoreReport/Failed.js +1 -1
  126. package/esm/modules/ai-report/components/ScoreReport/Report.js +14 -6
  127. package/esm/modules/ai-report/components/ScoreReport/Score.d.ts +1 -1
  128. package/esm/modules/ai-report/components/ScoreReport/Score.js +13 -9
  129. package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +2 -2
  130. package/esm/modules/ai-report/components/ScoreReport/index.d.ts +1 -1
  131. package/esm/modules/ai-report/components/ScoreReport/index.js +11 -11
  132. package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +2 -0
  133. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
  134. package/esm/modules/ai-report/components/ScoreReport/styled.js +1 -1
  135. package/esm/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
  136. package/esm/modules/ai-report/components/Suggestion/Suggestion.js +31 -0
  137. package/esm/modules/ai-report/components/Suggestion/index.d.ts +3 -0
  138. package/esm/modules/ai-report/components/Suggestion/index.js +27 -0
  139. package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
  140. package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
  141. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +6 -3
  142. package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +1 -1
  143. package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +6 -9
  144. package/esm/modules/ai-report/components/VideoQuestion/index.js +4 -3
  145. package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
  146. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -1
  147. package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
  148. package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.js +24 -0
  149. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
  150. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +55 -0
  151. package/esm/modules/ai-report/components/WorkPlaces/index.d.ts +3 -0
  152. package/esm/modules/ai-report/components/WorkPlaces/index.js +69 -0
  153. package/esm/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
  154. package/esm/modules/ai-report/components/WorkPlaces/interface.js +1 -0
  155. package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
  156. package/esm/modules/ai-report/components/WorkPlaces/styled.js +27 -0
  157. package/esm/modules/ai-report/index.js +3 -2
  158. package/esm/modules/ai-report/interface.d.ts +63 -0
  159. package/esm/modules/ai-report/useAiReport.d.ts +8 -0
  160. package/esm/modules/ai-report/utils.d.ts +1 -0
  161. package/esm/modules/ai-report/utils.js +1 -0
  162. package/esm/modules/ai-template/Root.js +5 -5
  163. package/esm/modules/ai-template/components/CapabilityModel/index.js +1 -1
  164. package/esm/modules/ai-template/components/QuestionList/Item.js +1 -1
  165. package/esm/modules/ai-template/components/TemplateHeader/index.js +2 -2
  166. package/esm/modules/ai-template/components/TemplateList/index.js +4 -4
  167. package/esm/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
  168. package/esm/modules/ai-template/components/TemplateList/styled.js +1 -1
  169. package/esm/modules/ai-template/components/TemplateMenu/index.js +3 -3
  170. package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
  171. package/esm/modules/ai-template/components/TemplateMenu/styled.js +1 -1
  172. package/esm/modules/ai-template/interface.d.ts +1 -1
  173. package/esm/services/ai-ability.d.ts +15 -3
  174. package/esm/services/ai-ability.js +23 -3
  175. package/esm/services/ai-question.d.ts +1 -1
  176. package/esm/services/ai-question.js +1 -1
  177. package/esm/services/ai-report.d.ts +12 -0
  178. package/esm/services/ai-report.js +8 -0
  179. package/esm/store/ai-ability/question-ability-store.d.ts +12 -0
  180. package/esm/store/ai-ability/question-ability-store.js +10 -0
  181. package/esm/store/ai-ability-select/question-ability-store.d.ts +18 -0
  182. package/esm/store/ai-ability-select/question-ability-store.js +13 -0
  183. package/esm/store/ai-question/ai-analysis-store.d.ts +7 -3
  184. package/esm/store/ai-question/ai-analysis-store.js +39 -14
  185. package/esm/store/ai-question/boot-video-store.js +7 -2
  186. package/esm/store/ai-question/global-store.d.ts +3 -0
  187. package/esm/store/ai-question/global-store.js +1 -0
  188. package/esm/store/ai-question/question-model-store.js +2 -2
  189. package/esm/store/ai-question/question-preview-store.js +1 -1
  190. package/esm/store/ai-question/question-template-store.js +1 -1
  191. package/esm/store/ai-question/question-update-store.js +1 -1
  192. package/esm/store/ai-report/global-store.d.ts +24 -0
  193. package/esm/store/ai-report/global-store.js +5 -1
  194. package/esm/store/ai-template/global-store.js +1 -1
  195. package/esm/utils/interceptor.js +2 -2
  196. package/lib/assets/icons/AI.svg +1 -0
  197. package/lib/components/AiHeaderTitle/index.d.ts +4 -0
  198. package/lib/components/AiHeaderTitle/index.js +24 -0
  199. package/lib/components/AiHeaderTitle/interface.d.ts +4 -0
  200. package/lib/components/Charts/Chart.d.ts +1 -1
  201. package/lib/components/Charts/Chart.js +8 -8
  202. package/lib/components/Charts/ReportPie.js +15 -4
  203. package/lib/components/RootProvider/index.js +1 -1
  204. package/lib/components/ScoreBigBall/index.js +1 -1
  205. package/lib/components/ScrollDialogContent/index.js +1 -1
  206. package/lib/components/VideoPreview/index.js +1 -2
  207. package/lib/constants/ai-question.d.ts +1 -1
  208. package/lib/constants/ai-report.d.ts +27 -0
  209. package/lib/constants/ai-report.js +28 -1
  210. package/lib/index.d.ts +1 -0
  211. package/lib/index.js +3 -1
  212. package/lib/modules/ai-ability/Root.d.ts +3 -2
  213. package/lib/modules/ai-ability/Root.js +32 -19
  214. package/lib/modules/ai-ability/components/AbilityFormItem/index.d.ts +14 -0
  215. package/lib/modules/ai-ability/components/AbilityFormItem/index.js +131 -0
  216. package/lib/modules/ai-ability/components/AddAbility/index.d.ts +4 -0
  217. package/lib/modules/ai-ability/components/AddAbility/index.js +196 -0
  218. package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +2 -2
  219. package/lib/modules/ai-ability/components/UpdateAbility/index.js +100 -22
  220. package/lib/modules/ai-ability/const.d.ts +8 -0
  221. package/lib/modules/ai-ability/const.js +37 -0
  222. package/lib/modules/ai-ability/index.d.ts +3 -1
  223. package/lib/modules/ai-ability/index.js +14 -3
  224. package/lib/modules/ai-ability/interface.d.ts +38 -0
  225. package/lib/modules/ai-ability/styled.d.ts +3 -0
  226. package/lib/modules/ai-ability/styled.js +5 -1
  227. package/lib/modules/ai-ability-select/Root.d.ts +4 -0
  228. package/lib/modules/ai-ability-select/Root.js +45 -0
  229. package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +4 -0
  230. package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +24 -0
  231. package/lib/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +4 -0
  232. package/lib/modules/ai-ability-select/components/AiAbilityItem/index.js +45 -0
  233. package/lib/modules/ai-ability-select/components/AiAbilityItem/interface.d.ts +13 -0
  234. package/lib/modules/ai-ability-select/components/AiAbilityItem/interface.js +2 -0
  235. package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +2 -0
  236. package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.js +11 -0
  237. package/lib/modules/ai-ability-select/components/AiAbilityList/index.d.ts +4 -0
  238. package/lib/modules/ai-ability-select/components/AiAbilityList/index.js +24 -0
  239. package/lib/modules/ai-ability-select/components/AiAbilityList/interface.d.ts +4 -0
  240. package/lib/modules/ai-ability-select/components/AiAbilityList/interface.js +2 -0
  241. package/lib/modules/ai-ability-select/components/AiAbilityList/styled.d.ts +0 -0
  242. package/lib/modules/ai-ability-select/components/AiAbilityList/styled.js +1 -0
  243. package/lib/modules/ai-ability-select/index.d.ts +4 -0
  244. package/lib/modules/ai-ability-select/index.js +25 -0
  245. package/lib/modules/ai-ability-select/interface.d.ts +27 -0
  246. package/lib/modules/ai-ability-select/interface.js +2 -0
  247. package/lib/modules/ai-question/Root.d.ts +1 -1
  248. package/lib/modules/ai-question/Root.js +22 -11
  249. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +1 -1
  250. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +13 -8
  251. package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +1 -1
  252. package/lib/modules/ai-question/components/AiAnalysis/index.js +9 -17
  253. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +6 -0
  254. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +8 -1
  255. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +1 -1
  256. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +40 -28
  257. package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +6 -0
  258. package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +1 -1
  259. package/lib/modules/ai-question/components/BaseAccordion/index.js +3 -3
  260. package/lib/modules/ai-question/components/BootVideo/index.d.ts +1 -1
  261. package/lib/modules/ai-question/components/BootVideo/index.js +31 -18
  262. package/lib/modules/ai-question/components/BootVideo/styled.js +5 -4
  263. package/lib/modules/ai-question/components/QuestionModel/AutoCombine.d.ts +4 -0
  264. package/lib/modules/ai-question/components/QuestionModel/AutoCombine.js +21 -0
  265. package/lib/modules/ai-question/components/QuestionModel/Header.js +5 -8
  266. package/lib/modules/ai-question/components/QuestionModel/Interactive.d.ts +6 -0
  267. package/lib/modules/ai-question/components/QuestionModel/Interactive.js +31 -0
  268. package/lib/modules/ai-question/components/QuestionModel/Item.d.ts +2 -2
  269. package/lib/modules/ai-question/components/QuestionModel/Item.js +14 -7
  270. package/lib/modules/ai-question/components/QuestionModel/List.js +27 -7
  271. package/lib/modules/ai-question/components/QuestionModel/index.js +12 -8
  272. package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +5 -0
  273. package/lib/modules/ai-question/components/QuestionPreview/index.js +6 -6
  274. package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +1 -1
  275. package/lib/modules/ai-question/components/QuestionPreview/styled.js +1 -1
  276. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +10 -10
  277. package/lib/modules/ai-question/components/QuestionTemplate/index.d.ts +2 -1
  278. package/lib/modules/ai-question/components/QuestionTemplate/index.js +7 -6
  279. package/lib/modules/ai-question/components/QuestionTemplate/interface.d.ts +10 -0
  280. package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +2 -2
  281. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +49 -13
  282. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.d.ts +4 -0
  283. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +65 -0
  284. package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.d.ts +8 -0
  285. package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +54 -0
  286. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +2 -2
  287. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +46 -47
  288. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.d.ts +6 -0
  289. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.js +49 -0
  290. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +5 -0
  291. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +67 -0
  292. package/lib/modules/ai-question/components/QuestionUpdate/const.js +1 -0
  293. package/lib/modules/ai-question/components/QuestionUpdate/index.js +84 -23
  294. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +13 -0
  295. package/lib/modules/ai-question/components/QuestionUpdate/styled.d.ts +6 -0
  296. package/lib/modules/ai-question/components/QuestionUpdate/styled.js +55 -0
  297. package/lib/modules/ai-question/index.js +3 -5
  298. package/lib/modules/ai-question/interface.d.ts +4 -0
  299. package/lib/modules/ai-question/useAiQuestion.d.ts +1 -0
  300. package/lib/modules/ai-report/Root.d.ts +1 -1
  301. package/lib/modules/ai-report/Root.js +18 -14
  302. package/lib/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +13 -0
  303. package/lib/modules/ai-report/components/AIEvaluate/Evaluate.js +62 -0
  304. package/lib/modules/ai-report/components/AIEvaluate/Graph.d.ts +13 -0
  305. package/lib/modules/ai-report/components/AIEvaluate/Graph.js +227 -0
  306. package/lib/modules/ai-report/components/AIEvaluate/index.d.ts +3 -0
  307. package/lib/modules/ai-report/components/AIEvaluate/index.js +45 -0
  308. package/lib/modules/ai-report/components/MenuAnchor/index.d.ts +4 -0
  309. package/lib/modules/ai-report/components/MenuAnchor/index.js +117 -0
  310. package/lib/modules/ai-report/components/NotFinish/index.js +1 -1
  311. package/lib/modules/ai-report/components/ScoreReport/Bar.js +15 -9
  312. package/lib/modules/ai-report/components/ScoreReport/Report.js +14 -6
  313. package/lib/modules/ai-report/components/ScoreReport/Score.d.ts +1 -1
  314. package/lib/modules/ai-report/components/ScoreReport/Score.js +13 -9
  315. package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +1 -1
  316. package/lib/modules/ai-report/components/ScoreReport/index.d.ts +1 -1
  317. package/lib/modules/ai-report/components/ScoreReport/index.js +12 -12
  318. package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +2 -0
  319. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +3 -3
  320. package/lib/modules/ai-report/components/Suggestion/Suggestion.d.ts +4 -0
  321. package/lib/modules/ai-report/components/Suggestion/Suggestion.js +33 -0
  322. package/lib/modules/ai-report/components/Suggestion/index.d.ts +3 -0
  323. package/lib/modules/ai-report/components/Suggestion/index.js +32 -0
  324. package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +1 -1
  325. package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +5 -5
  326. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +4 -1
  327. package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +1 -1
  328. package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +6 -9
  329. package/lib/modules/ai-report/components/VideoQuestion/index.js +4 -3
  330. package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +1 -1
  331. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +1 -1
  332. package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +4 -0
  333. package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.js +26 -0
  334. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +11 -0
  335. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +57 -0
  336. package/lib/modules/ai-report/components/WorkPlaces/index.d.ts +3 -0
  337. package/lib/modules/ai-report/components/WorkPlaces/index.js +74 -0
  338. package/lib/modules/ai-report/components/WorkPlaces/interface.d.ts +7 -0
  339. package/lib/modules/ai-report/components/WorkPlaces/interface.js +2 -0
  340. package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +62 -0
  341. package/lib/modules/ai-report/components/WorkPlaces/styled.js +30 -0
  342. package/lib/modules/ai-report/index.js +3 -2
  343. package/lib/modules/ai-report/interface.d.ts +63 -0
  344. package/lib/modules/ai-report/useAiReport.d.ts +8 -0
  345. package/lib/modules/ai-report/utils.d.ts +1 -0
  346. package/lib/modules/ai-report/utils.js +5 -0
  347. package/lib/modules/ai-template/Root.js +3 -3
  348. package/lib/modules/ai-template/components/CapabilityModel/index.js +1 -1
  349. package/lib/modules/ai-template/components/TemplateHeader/index.js +1 -1
  350. package/lib/modules/ai-template/components/TemplateList/index.js +2 -2
  351. package/lib/modules/ai-template/components/TemplateList/styled.d.ts +3 -3
  352. package/lib/modules/ai-template/components/TemplateMenu/index.js +1 -1
  353. package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +1 -1
  354. package/lib/modules/ai-template/interface.d.ts +1 -1
  355. package/lib/services/ai-ability.d.ts +15 -3
  356. package/lib/services/ai-ability.js +28 -4
  357. package/lib/services/ai-question.d.ts +1 -1
  358. package/lib/services/ai-question.js +1 -1
  359. package/lib/services/ai-report.d.ts +12 -0
  360. package/lib/services/ai-report.js +11 -1
  361. package/lib/store/ai-ability/question-ability-store.d.ts +12 -0
  362. package/lib/store/ai-ability/question-ability-store.js +13 -0
  363. package/lib/store/ai-ability-select/question-ability-store.d.ts +18 -0
  364. package/lib/store/ai-ability-select/question-ability-store.js +16 -0
  365. package/lib/store/ai-question/ai-analysis-store.d.ts +7 -3
  366. package/lib/store/ai-question/ai-analysis-store.js +39 -14
  367. package/lib/store/ai-question/boot-video-store.js +7 -2
  368. package/lib/store/ai-question/global-store.d.ts +3 -0
  369. package/lib/store/ai-question/global-store.js +1 -0
  370. package/lib/store/ai-question/question-template-store.js +1 -1
  371. package/lib/store/ai-question/question-update-store.js +1 -1
  372. package/lib/store/ai-report/global-store.d.ts +24 -0
  373. package/lib/store/ai-report/global-store.js +5 -1
  374. package/lib/utils/interceptor.js +2 -2
  375. package/package.json +9 -3
  376. package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
  377. package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
  378. /package/esm/{modules/ai-ability/components/UpdateAbility → components/AiHeaderTitle}/interface.js +0 -0
  379. /package/lib/{modules/ai-ability/components/UpdateAbility → components/AiHeaderTitle}/interface.js +0 -0
@@ -10,18 +10,18 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { Message } from 'fbm-ui';
14
- import { Paper, Divider } from 'fbm-ui/lib/mui';
15
- import { useRequest } from 'ahooks';
16
- import { useAiReportStore } from "../../../../store/ai-report/global-store";
17
- import { PostAiInterviewRefresh } from "../../../../services/ai-report";
18
- import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
19
- import Score from './Score';
20
- import Report from './Report';
21
13
  import Failed from './Failed';
14
+ import Report from './Report';
15
+ import Score from './Score';
16
+ import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
17
+ import { PostAiInterviewRefresh } from "../../../../services/ai-report";
18
+ import { useAiReportStore } from "../../../../store/ai-report/global-store";
19
+ import { useRequest } from 'ahooks';
20
+ import { Message } from 'fbm-ui';
21
+ import { Divider, Paper } from 'fbm-ui/lib/mui';
22
22
  var FAILED = INTERVIEW_STATUS.FAILED, IN_CALCULATION = INTERVIEW_STATUS.IN_CALCULATION;
23
23
  var ScoreReport = function (_a) {
24
- var onRefreshSuccess = _a.onRefreshSuccess;
24
+ var customScore = _a.customScore, onRefreshSuccess = _a.onRefreshSuccess;
25
25
  var _b = useAiReportStore(function (store) { return [store.token, store.reportResult]; }), token = _b.token, reportResult = _b.reportResult;
26
26
  var _c = (reportResult || {}).status, status = _c === void 0 ? 0 : _c;
27
27
  var _d = useRequest(function () { return PostAiInterviewRefresh(token); }, {
@@ -32,10 +32,10 @@ var ScoreReport = function (_a) {
32
32
  },
33
33
  }), run = _d.run, loading = _d.loading;
34
34
  if ([FAILED, IN_CALCULATION].includes(status)) {
35
- return (_jsx(Paper, __assign({ variant: "outlined" }, { children: _jsx(Failed, { status: status, loading: loading, onRefresh: run }) })));
35
+ return (_jsx(Paper, __assign({ id: "report-score", variant: "outlined" }, { children: _jsx(Failed, { status: status, loading: loading, onRefresh: run }) })));
36
36
  }
37
37
  else {
38
- return (_jsxs(Paper, __assign({ variant: "outlined" }, { children: [_jsx(Score, { loading: loading, onRefresh: run }), _jsx(Divider, {}), _jsx(Report, {})] })));
38
+ return (_jsxs(Paper, __assign({ id: "report-score", variant: "outlined" }, { children: [_jsx(Score, { customScore: customScore, loading: loading, onRefresh: run }), _jsx(Divider, {}), _jsx(Report, {})] })));
39
39
  }
40
40
  };
41
41
  export default ScoreReport;
@@ -2,9 +2,11 @@ export interface ScoreLegendProps {
2
2
  color: string;
3
3
  }
4
4
  export interface ScoreReportProps {
5
+ customScore?: number;
5
6
  onRefreshSuccess: () => void;
6
7
  }
7
8
  export interface ScoreProps {
9
+ customScore?: number;
8
10
  loading?: boolean;
9
11
  onRefresh: () => void;
10
12
  }
@@ -8,15 +8,15 @@ export declare const ScoreUnitTypography: import("@emotion/styled").StyledCompon
8
8
  export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<{
9
9
  children?: import("react").ReactNode;
10
10
  classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
11
- color?: "inherit" | "disabled" | "error" | "warning" | "success" | "info" | "secondary" | "action" | "primary" | undefined;
11
+ color?: "inherit" | "disabled" | "action" | "secondary" | "error" | "warning" | "success" | "info" | "primary" | undefined;
12
12
  fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
13
13
  htmlColor?: string | undefined;
14
14
  shapeRendering?: string | undefined;
15
15
  sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
16
16
  titleAccess?: string | undefined;
17
17
  viewBox?: string | undefined;
18
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "onLoad" | "name" | "type" | "fill" | "values" | "d" | "y" | "key" | "className" | "id" | "lang" | "tabIndex" | "role" | "color" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "max" | "media" | "method" | "min" | "target" | "width" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "alignmentBaseline" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "azimuth" | "baseFrequency" | "baselineShift" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clip" | "clipPathUnits" | "clipRule" | "colorInterpolation" | "colorInterpolationFilters" | "colorProfile" | "colorRendering" | "contentScriptType" | "contentStyleType" | "cursor" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "direction" | "display" | "divisor" | "dominantBaseline" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "fillOpacity" | "fillRule" | "filterRes" | "filterUnits" | "floodColor" | "floodOpacity" | "focusable" | "fontFamily" | "fontSize" | "fontSizeAdjust" | "fontStretch" | "fontStyle" | "fontVariant" | "fontWeight" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphOrientationVertical" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "imageRendering" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "letterSpacing" | "lightingColor" | "limitingConeAngle" | "local" | "markerEnd" | "markerHeight" | "markerMid" | "markerStart" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "offset" | "opacity" | "operator" | "order" | "orient" | "orientation" | "origin" | "overflow" | "overlinePosition" | "overlineThickness" | "paintOrder" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "pointerEvents" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rotate" | "rx" | "ry" | "scale" | "shapeRendering" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "stopColor" | "stopOpacity" | "strikethroughPosition" | "strikethroughThickness" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textAnchor" | "textDecoration" | "textLength" | "textRendering" | "to" | "transform" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeBidi" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "vectorEffect" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "visibility" | "vMathematical" | "widths" | "wordSpacing" | "writingMode" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
18
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "name" | "type" | "filter" | "fill" | "values" | "className" | "style" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "clipPath" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "mask" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "children" | "spacing" | "path" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "end" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "seed" | "slope" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
19
19
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
20
- }, "children" | "color" | "fontSize" | "shapeRendering" | "viewBox" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "htmlColor" | "titleAccess"> & {
20
+ }, keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "children" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
21
21
  children?: import("react").ReactNode;
22
22
  } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,4 +1,4 @@
1
- import { Typography, RefreshIcon, styled } from 'fbm-ui';
1
+ import { RefreshIcon, styled, Typography } from 'fbm-ui';
2
2
  export var ScoreTypography = styled(Typography)(function (_a) {
3
3
  var theme = _a.theme;
4
4
  return ({
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { SuggestionAbility } from '../../interface';
3
+ declare const Suggestion: React.FC<SuggestionAbility>;
4
+ export default Suggestion;
@@ -0,0 +1,31 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { BulbFilledIcon, CopyIcon, LayerIcon, styled, Typography } from 'fbm-ui';
14
+ import { Box, Stack } from 'fbm-ui/lib/mui';
15
+ var TagTitle = styled(Box)(function () { return ({
16
+ boxSizing: 'border-box',
17
+ padding: '0 16px',
18
+ minWidth: 100,
19
+ height: 32,
20
+ display: 'inline-block',
21
+ textAlign: 'center',
22
+ color: 'RGBA(0, 0, 0, 0.86)',
23
+ borderLeft: '4px solid #4CAF50',
24
+ backgroundColor: '#E8F5E9',
25
+ margin: '24px 0 16px',
26
+ }); });
27
+ var Suggestion = function (_a) {
28
+ var abilityName = _a.abilityName, interviewQuestion = _a.interviewQuestion, keyPoints = _a.keyPoints;
29
+ return (_jsxs(Stack, { children: [_jsx(Box, __assign({ display: "flex", alignItems: "center" }, { children: _jsx(TagTitle, { children: _jsx(Typography, __assign({ variant: "subtitle1", fontWeight: "medium", style: { lineHeight: '32px' } }, { children: abilityName })) }) })), _jsxs(Box, __assign({ display: "flex", justifyContent: "space-between" }, { children: [_jsxs(Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FAFAFA', borderRadius: 8, padding: 16, flex: 1 }, mr: 2 }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [_jsx(BulbFilledIcon, { style: { color: '#4CAF50', fontSize: 16 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u9762\u8BD5\u95EE\u9898" }))] })), interviewQuestion.map(function (v, index) { return (_jsxs(Box, __assign({ display: "flex", mb: 2 }, { children: [_jsx(CopyIcon, { style: { color: '#81C784', fontSize: 16, marginTop: 4 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] })), _jsxs(Box, __assign({ display: "flex", flexDirection: "column", style: { background: '#FFF3E0', borderRadius: 8, padding: 16, flex: 1 } }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", mb: 2 }, { children: [_jsx(LayerIcon, { style: { color: '#FF9800', fontSize: 16 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 } }, { children: "\u8BC4\u5206\u5173\u952E\u70B9" }))] })), keyPoints.map(function (v, index) { return (_jsxs(Box, __assign({ display: "flex", mb: 2 }, { children: [_jsx(CopyIcon, { style: { color: '#FFB74D', fontSize: 16, marginTop: 4 } }), _jsx(Typography, __assign({ variant: "body2", style: { marginLeft: 4 }, color: "secondary" }, { children: v }))] }), index)); })] }))] }))] }));
30
+ };
31
+ export default Suggestion;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Index: () => JSX.Element | null;
3
+ export default Index;
@@ -0,0 +1,27 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import Suggestion from './Suggestion';
14
+ import { useAiReportStore } from "../../../../store/ai-report/global-store";
15
+ import AiHeaderTitle from "../../../../components/AiHeaderTitle";
16
+ import { Typography } from 'fbm-ui';
17
+ import { Box, Collapse, Paper, Stack } from 'fbm-ui/lib/mui';
18
+ var Index = function () {
19
+ var _a, _b, _c, _d;
20
+ var _e = useAiReportStore(function (store) { return [store.reportResult]; }), reportResult = _e.reportResult, showAiDimension = _e.showAiDimension;
21
+ if (!showAiDimension || !((_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _a === void 0 ? void 0 : _a.show))
22
+ return null;
23
+ return (_jsxs(Box, __assign({ id: "report-suggestion", component: Paper, variant: "outlined", px: 2, mt: 2, pb: 2 }, { children: [_jsx(Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1 }, { children: _jsx(AiHeaderTitle, { name: "\u8003\u5BDF\u5EFA\u8BAE" }) })), _jsx(Typography, __assign({ variant: "body2", color: "secondary", mt: 1 }, { children: (_b = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _b === void 0 ? void 0 : _b.text })), _jsx(Collapse, __assign({ in: true }, { children: (_d = (_c = reportResult === null || reportResult === void 0 ? void 0 : reportResult.suggestion) === null || _c === void 0 ? void 0 : _c.abilitys) === null || _d === void 0 ? void 0 : _d.map(function (v) {
24
+ return _jsx(Suggestion, { abilityName: v.abilityName, interviewQuestion: v.interviewQuestion, keyPoints: v.keyPoints }, v.abilityName);
25
+ }) }))] })));
26
+ };
27
+ export default Index;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
1
  import { AbilitiesProps } from './interface';
2
+ import { FC } from 'react';
3
3
  declare const Abilities: FC<AbilitiesProps>;
4
4
  export default Abilities;
@@ -10,16 +10,16 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useCallback } from 'react';
14
- import { Box, Typography } from 'fbm-ui';
13
+ import ScoreSlider from './ScoreSlider';
15
14
  import { useAiReportStore } from "../../../../store/ai-report/global-store";
15
+ import { Box, Typography } from 'fbm-ui';
16
16
  import update from 'immutability-helper';
17
- import ScoreSlider from './ScoreSlider';
17
+ import { useCallback } from 'react';
18
18
  var Abilities = function (_a) {
19
19
  var stepIndex = _a.stepIndex;
20
20
  var _b = useAiReportStore(function (store) { return [store.reportResult]; }), reportResult = _b.reportResult, updateReportResult = _b.updateReportResult, onScoreChange = _b.onScoreChange;
21
21
  var steps = (reportResult || {}).steps;
22
- var handleChangeCommitted = useCallback(function (score, index) {
22
+ var handleChangeCommitted = useCallback(function (score, index, type) {
23
23
  var _a, _b;
24
24
  var newSteps = update(steps, (_a = {}, _a[stepIndex] = { scoreInfo: { abilities: (_b = {}, _b[index] = { finalScore: { $set: score } }, _b) } }, _a));
25
25
  updateReportResult(__assign(__assign({}, reportResult), { steps: newSteps }));
@@ -34,7 +34,7 @@ var Abilities = function (_a) {
34
34
  return (_jsxs(Box, __assign({ mt: 1 }, { children: [_jsx(Typography, __assign({ variant: "body2", color: "secondary", mb: 1 }, { children: "\u5206\u503C\u8BA1\u7B97\u89C4\u5219\uFF1A\u7EFC\u5408\u8BC4\u5206=AI\u8BC4\u5206*\u5355\u9898\u6743\u91CD" })), _jsx(Box, __assign({ mt: 3 }, { children: steps &&
35
35
  steps[stepIndex].scoreInfo.abilities.map(function (_a, index) {
36
36
  var name = _a.name, originScore = _a.originScore, finalScore = _a.finalScore;
37
- return (_jsxs(Box, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: name })), _jsx(ScoreSlider, { width: 400, isShowLabel: true, originScore: originScore, finalScore: finalScore, valueLabelDisplay: "auto", onChangeCommitted: function (score) { return handleChangeCommitted(score, index); } })] }, name));
37
+ return (_jsxs(Box, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: name })), _jsx(ScoreSlider, { width: 420, isShowLabel: true, originScore: originScore, finalScore: finalScore, valueLabelDisplay: "auto", onChangeCommitted: function (score) { return handleChangeCommitted(score, index, 'ability'); } })] }, name));
38
38
  }) }))] })));
39
39
  };
40
40
  export default Abilities;
@@ -18,11 +18,11 @@ import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
18
18
  import FormatQuoteIcon from '@mui/icons-material/FormatQuote';
19
19
  import { useAiReportStore } from "../../../../store/ai-report/global-store";
20
20
  import { formatScore, highlighKeywords } from "../../../../utils/utils";
21
- import { Box, Typography, Button } from 'fbm-ui';
21
+ import { Box, Button, Typography } from 'fbm-ui';
22
22
  import { theme } from 'fbm-ui/lib/components/ThemeProvider';
23
23
  import { Paper } from 'fbm-ui/lib/mui';
24
24
  import update from 'immutability-helper';
25
- import { useState, useCallback, useMemo } from 'react';
25
+ import { useCallback, useMemo, useState } from 'react';
26
26
  var STEP_NO_ANSWER = INTERVIEW_STEP_STATUS.STEP_NO_ANSWER, STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED, STEP_FAILED = INTERVIEW_STEP_STATUS.STEP_FAILED, STEP_IN_CALCULATION = INTERVIEW_STEP_STATUS.STEP_IN_CALCULATION;
27
27
  var QuestionItem = function (props) {
28
28
  var token = props.token, index = props.index, status = props.status, _a = props.answer, analysisResult = _a.analysisResult, videoUrl = _a.videoUrl, _b = props.question, desc = _b.desc, type = _b.type, _c = props.scoreInfo, score = _c.score, weight = _c.weight, originScore = _c.originScore, finalScore = _c.finalScore, abilities = _c.abilities;
@@ -58,6 +58,9 @@ var QuestionItem = function (props) {
58
58
  });
59
59
  return content_1;
60
60
  }
61
+ if (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.letter) {
62
+ return "\u6B63\u786E\u7B54\u6848\uFF1A".concat(analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.letter, " <br/> \u56DE\u7B54\uFF1A").concat(analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer);
63
+ }
61
64
  return analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.text;
62
65
  }, [analysisResult]);
63
66
  var handleChangeCommitted = useCallback(function (score) {
@@ -83,6 +86,6 @@ var QuestionItem = function (props) {
83
86
  mt: 2,
84
87
  cursor: videoUrl ? 'pointer' : 'inherit',
85
88
  borderColor: token === stepToken ? theme.palette.primary.main : '',
86
- }, variant: "outlined", onClick: handleClickItem }, { children: [_jsxs(Typography, __assign({ fontSize: 14, color: token === stepToken ? theme.palette.primary.main : theme.palette.text.primary }, { children: [index + 1, ".", desc] })), _jsxs(QuestionDesc, { children: [_jsx(FormatQuoteIcon, {}), status === STEP_IN_CALCULATION ? (_jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : (_jsxs(_Fragment, { children: [_jsx(Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && (_jsxs(Box, { children: [_jsx("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), isExistWeight && status === STEP_COMPLETED && (_jsxs(Box, __assign({ mt: 2, display: "flex" }, { children: [_jsxs(Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && _jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [_jsx(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && (_jsxs(_Fragment, { children: [_jsx(ScoreSlider, { originScore: originScore, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && (_jsx(Button, __assign({ variant: "text", onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), _jsx(Box, __assign({ width: 150, textAlign: "right" }, { children: _jsxs(Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && _jsx(Abilities, { stepIndex: index })] }), token));
89
+ }, variant: "outlined", onClick: handleClickItem }, { children: [_jsxs(Typography, __assign({ fontSize: 14, color: token === stepToken ? theme.palette.primary.main : theme.palette.text.primary }, { children: [index + 1, ".", desc] })), _jsxs(QuestionDesc, { children: [_jsx(FormatQuoteIcon, {}), status === STEP_IN_CALCULATION ? (_jsx(Typography, __assign({ variant: "caption", color: "secondary" }, { children: "\u89C6\u9891\u5904\u7406\u4E2D\uFF0C\u8BF7\u7A0D\u5019" }))) : (_jsxs(_Fragment, { children: [_jsx(Typography, { variant: "caption", color: "secondary", dangerouslySetInnerHTML: { __html: renderText } }), type === QUESTION_TYPE.COLOR_BLINDNESS && (analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img) && (_jsxs(Box, { children: [_jsx("img", { style: { width: 100, height: 100 }, src: analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.img, alt: "" }), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 1 }, { children: ["\u56DE\u7B54\uFF1A", analysisResult === null || analysisResult === void 0 ? void 0 : analysisResult.answer] }))] }))] }))] }), isExistWeight && status === STEP_COMPLETED && (_jsxs(Box, __assign({ mt: 2, display: "flex" }, { children: [_jsxs(Typography, __assign({ variant: "body2", mr: 4 }, { children: ["\u8BC4\u5206\uFF1A", finalScore.toFixed(0), "\u5206"] })), isShowWeight && _jsxs(Typography, __assign({ variant: "body2" }, { children: ["\u5355\u9898\u6743\u91CD\uFF1A", weight, "%"] }))] }))), isExistWeight && (_jsxs(Box, __assign({ width: "100%", display: "flex", alignItems: "center", mt: 2 }, { children: [_jsx(Box, __assign({ flex: "1 0", display: "flex", alignItems: "center" }, { children: status === STEP_COMPLETED && (_jsxs(_Fragment, { children: [_jsx(ScoreSlider, { originScore: originScore, finalScore: finalScore, isShowScoreRank: true, onChangeCommitted: handleChangeCommitted }), isShowAbilitiesButton && (_jsx(Button, __assign({ variant: "text", style: { whiteSpace: 'nowrap' }, onClick: function () { return setShowAbilities(!showAbilities); } }, { children: showAbilities ? '收起' : '详情' })))] })) })), _jsx(Box, __assign({ width: 150, textAlign: "right" }, { children: _jsxs(Typography, __assign({ variant: "body1", fontSize: 16, fontWeight: 500 }, { children: ["\u7EFC\u5408\u8BC4\u5206\uFF1A", comprehensiveScore] })) }))] }))), isShowAbilitiesDetails && _jsx(Abilities, { stepIndex: index })] }), token));
87
90
  };
88
91
  export default QuestionItem;
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
1
  import { ScoreSliderProps } from './interface';
2
+ import { FC } from 'react';
3
3
  declare const ScoreSlider: FC<ScoreSliderProps>;
4
4
  export default ScoreSlider;
@@ -10,25 +10,22 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useState, useEffect, useCallback } from 'react';
14
- import { Tooltip, Typography } from 'fbm-ui';
13
+ import { AiScoreRoot, ScoreSliderRoot, StyledSlider } from './styled';
14
+ // import { scoreRankIntervalColors } from '@constants/ai-report';
15
15
  import { useAiReportStore } from "../../../../store/ai-report/global-store";
16
- import { scoreRankIntervalColors } from "../../../../constants/ai-report";
17
- import { StyledSlider, AiScoreRoot, RankingRoot, ScoreSliderRoot } from './styled';
16
+ import { Tooltip, Typography } from 'fbm-ui';
17
+ import { useCallback, useEffect, useState } from 'react';
18
18
  var ScoreSlider = function (props) {
19
19
  var _a = props.width, width = _a === void 0 ? 320 : _a, originScore = props.originScore, finalScore = props.finalScore, _b = props.valueLabelDisplay, valueLabelDisplay = _b === void 0 ? 'on' : _b, _c = props.isShowLabel, isShowLabel = _c === void 0 ? false : _c, _d = props.isShowScoreRank, isShowScoreRank = _d === void 0 ? false : _d, onChangeCommitted = props.onChangeCommitted;
20
20
  var aiScore = originScore.toFixed(0);
21
21
  var _e = useState(0), score = _e[0], setScore = _e[1];
22
- var _f = useAiReportStore(function (store) { return [store.disabledScore, store.scoreRankIntervals]; }), disabledScore = _f.disabledScore, scoreRankIntervals = _f.scoreRankIntervals;
22
+ var disabledScore = useAiReportStore(function (store) { return [store.disabledScore, store.scoreRankIntervals]; }).disabledScore;
23
23
  var handleScoreChange = useCallback(function (e, v) {
24
24
  !disabledScore && setScore(v);
25
25
  }, [disabledScore]);
26
26
  useEffect(function () {
27
27
  setScore(Number(finalScore.toFixed(0)));
28
28
  }, [finalScore]);
29
- return (_jsxs(ScoreSliderRoot, __assign({ width: width }, { children: [isShowScoreRank && (_jsxs(_Fragment, { children: [scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.map(function (_a, index) {
30
- var rank = _a.rank, _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion, _c = _a.score, startScore = _c.startScore, endScore = _c.endScore;
31
- return (_jsx(Tooltip, __assign({ title: "\u524D".concat(startRankProportion * 100, "%-").concat(endRankProportion * 100, "%"), placement: "top" }, { children: _jsx(RankingRoot, { sx: { width: "".concat(endScore - startScore, "%"), left: "".concat(startScore, "%"), bgcolor: scoreRankIntervalColors[index] } }) }), rank));
32
- }), _jsx(Tooltip, __assign({ title: "AI\u5F97\u5206\uFF1A".concat(aiScore), placement: "top" }, { children: _jsx(AiScoreRoot, { sx: { left: "calc(".concat(aiScore, "% - 12px)") } }) }))] })), _jsx(StyledSlider, { valueLabelDisplay: valueLabelDisplay, value: score, onChange: handleScoreChange, onChangeCommitted: function () { return onChangeCommitted(score); } }), isShowLabel && (_jsxs(Typography, __assign({ width: 80, flexShrink: 0, textAlign: "right", variant: "body2" }, { children: [score, "\u5206"] })))] })));
29
+ return (_jsxs(ScoreSliderRoot, __assign({ width: width }, { children: [isShowScoreRank && (_jsx(_Fragment, { children: _jsx(Tooltip, __assign({ title: "AI\u5F97\u5206\uFF1A".concat(aiScore), placement: "top" }, { children: _jsx(AiScoreRoot, { sx: { left: "calc(".concat(aiScore, "% - 12px)") } }) })) })), _jsx(StyledSlider, { valueLabelDisplay: valueLabelDisplay, value: score, onChange: handleScoreChange, onChangeCommitted: function () { return onChangeCommitted(score); } }), isShowLabel && (_jsxs(Typography, __assign({ width: 70, flexShrink: 0, textAlign: "right", variant: "body2" }, { children: [score, "\u5206"] })))] })));
33
30
  };
34
31
  export default ScoreSlider;
@@ -10,12 +10,13 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { Box, Typography, Empty } from 'fbm-ui';
14
- import { useAiReportStore } from "../../../../store/ai-report/global-store";
15
13
  import QuestionItem from './QuestionItem';
14
+ import AiHeaderTitle from "../../../../components/AiHeaderTitle";
15
+ import { useAiReportStore } from "../../../../store/ai-report/global-store";
16
+ import { Box, Empty, Paper } from 'fbm-ui';
16
17
  var VideoQuestion = function () {
17
18
  var reportResult = useAiReportStore(function (store) { return [store.reportResult, store.operableButtons]; }).reportResult;
18
19
  var steps = (reportResult || {}).steps;
19
- return (_jsxs(Box, __assign({ padding: "24px 0" }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: "\u89C6\u9891\u9898\uFF1A" })), _jsx(Box, { children: steps && steps.length > 0 ? (steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) { return _jsx(QuestionItem, __assign({ index: index }, item), item.token); })) : (_jsx(Empty, { src: "//public-static-assets.oss-cn-beijing.aliyuncs.com/img/empty.png", desc: "\u6682\u65E0\u9898\u76EE" })) })] })));
20
+ return (_jsxs(Box, __assign({ id: "report-question", component: Paper, pl: 2, pt: 2, pr: 2, style: { background: '#fff', border: '1px solid rgb(244, 244, 244)' }, mt: 2 }, { children: [_jsx(AiHeaderTitle, { name: "\u89C6\u9891\u9898" }), _jsx(Box, __assign({ mt: 3 }, { children: steps && steps.length > 0 ? (steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) { return _jsx(QuestionItem, __assign({ index: index }, item), item.token); })) : (_jsx(Empty, { src: "//public-static-assets.oss-cn-beijing.aliyuncs.com/img/empty.png", desc: "\u6682\u65E0\u9898\u76EE" })) }))] })));
20
21
  };
21
22
  export default VideoQuestion;
@@ -1,4 +1,4 @@
1
- import { ScoreInfo, AiInterviewReportStep } from '../../interface';
1
+ import { AiInterviewReportStep, ScoreInfo } from '../../interface';
2
2
  export interface ScoreSliderProps extends Pick<ScoreInfo, 'originScore' | 'finalScore'> {
3
3
  width?: number;
4
4
  valueLabelDisplay?: 'on' | 'off' | 'auto';
@@ -56,7 +56,7 @@ export declare const StyledSlider: import("@emotion/styled").StyledComponent<{
56
56
  valueLabelFormat?: string | ((value: number, index: number) => import("react").ReactNode) | undefined;
57
57
  } & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
58
58
  ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
59
- }, "track" | "name" | "defaultValue" | "tabIndex" | "color" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "scale" | "classes" | "sx" | "disabled" | "value" | "size" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
59
+ }, "name" | "classes" | "color" | "scale" | "sx" | "track" | "defaultValue" | "tabIndex" | "aria-label" | "aria-labelledby" | "aria-valuetext" | "onChange" | "max" | "min" | "orientation" | "disabled" | "value" | "size" | "step" | "components" | "componentsProps" | "disableSwap" | "getAriaLabel" | "getAriaValueText" | "isRtl" | "marks" | "onChangeCommitted" | "valueLabelDisplay" | "valueLabelFormat"> & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
60
60
  export declare const ScoreSliderRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
61
61
  children?: import("react").ReactNode;
62
62
  } & import("@mui/system").MUIStyledCommonProps<import("fbm-ui/lib/mui").Theme>, {}, {}>;
@@ -0,0 +1,4 @@
1
+ import { ScoreSliderProps } from './interface';
2
+ import { FC } from 'react';
3
+ declare const ScoreSlider: FC<ScoreSliderProps>;
4
+ export default ScoreSlider;
@@ -0,0 +1,24 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { ScoreSliderRoot, WorkplaceStyledSlider } from './styled';
14
+ import { Box, Typography } from 'fbm-ui';
15
+ var ScoreColorMap = {
16
+ 1: '#4CAF50',
17
+ 2: '#000000',
18
+ 3: '#FF6C6C',
19
+ };
20
+ var ScoreSlider = function (props) {
21
+ var _a = props.width, width = _a === void 0 ? 320 : _a, score = props.score, _b = props.valueLabelDisplay, valueLabelDisplay = _b === void 0 ? 'off' : _b, _c = props.isShowLabel, isShowLabel = _c === void 0 ? false : _c, _d = props.scoreText, scoreText = _d === void 0 ? '' : _d, _e = props.scoreLevel, scoreLevel = _e === void 0 ? 2 : _e;
22
+ return (_jsxs(ScoreSliderRoot, __assign({ width: width }, { children: [_jsxs(Box, __assign({ width: width, display: "flex", justifyContent: "space-between" }, { children: [_jsx(Typography, __assign({ flexShrink: 0, variant: "body2", fontWeight: "medium" }, { children: "\u5019\u9009\u4EBA\u8868\u73B0" })), isShowLabel && (_jsxs(Box, __assign({ display: "flex" }, { children: [_jsxs(Typography, __assign({ color: ScoreColorMap[scoreLevel], variant: "body2", fontWeight: "medium" }, { children: [score, "\u5206"] })), _jsx(Typography, __assign({ color: ScoreColorMap[scoreLevel], variant: "body2", fontWeight: "medium", ml: 1 }, { children: scoreText }))] })))] })), _jsx(WorkplaceStyledSlider, { valueLabelDisplay: valueLabelDisplay, value: score })] })));
23
+ };
24
+ export default ScoreSlider;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ declare type Mode = 'edit' | 'show';
3
+ interface WorkplaceProps {
4
+ token: string;
5
+ answer: string;
6
+ bgcolor?: string;
7
+ mode?: Mode;
8
+ canEdit?: boolean;
9
+ }
10
+ declare const Evaluate: React.FC<WorkplaceProps>;
11
+ export default Evaluate;
@@ -0,0 +1,55 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { PostAiInterviewWorkplace } from "../../../../services/ai-report";
14
+ import { Button, confirm, EditIcon, FormItem, IconButton, Typography } from 'fbm-ui';
15
+ import { Box, Stack } from 'fbm-ui/lib/mui';
16
+ import { useCallback, useEffect, useState } from 'react';
17
+ var Evaluate = function (_a) {
18
+ var answer = _a.answer, token = _a.token, bgcolor = _a.bgcolor, _b = _a.mode, mode = _b === void 0 ? 'show' : _b, _c = _a.canEdit, canEdit = _c === void 0 ? 'true' : _c;
19
+ var _d = useState(answer), content = _d[0], setContent = _d[1];
20
+ var _e = useState('show'), internalMode = _e[0], setInternalMode = _e[1];
21
+ var handleChange = useCallback(function (e) {
22
+ var value = e.target.value;
23
+ setContent(value);
24
+ }, []);
25
+ var handleModeChange = useCallback(function () {
26
+ setInternalMode(internalMode === 'show' ? 'edit' : 'show');
27
+ }, [internalMode]);
28
+ var handleSubmit = useCallback(function () {
29
+ confirm({
30
+ header: null,
31
+ content: '确认将评价内容修改吗?该动作无法被撤销。',
32
+ okText: '修改',
33
+ okProps: {
34
+ color: 'error',
35
+ variant: 'contained',
36
+ },
37
+ onOk: function (_a) {
38
+ var onClose = _a.onClose;
39
+ var data = {
40
+ token: token,
41
+ answer: content,
42
+ };
43
+ PostAiInterviewWorkplace(data).then(handleModeChange).then(onClose).catch(console.log);
44
+ },
45
+ });
46
+ }, [token, content, handleModeChange]);
47
+ useEffect(function () {
48
+ setInternalMode(mode);
49
+ }, [mode]);
50
+ return (_jsxs(Stack, { children: [_jsx(Stack, __assign({ direction: "row", alignItems: "center", justifyContent: "flex-end" }, { children: canEdit && (_jsx(IconButton, __assign({ onClick: handleModeChange }, { children: _jsx(EditIcon, {}) }))) })), internalMode === 'edit' && (_jsxs(Box, __assign({ width: 1, pr: 2 }, { children: [_jsx(FormItem, { sx: { height: 'auto', pr: 0 }, multiline: true, rows: 3.5, required: true, name: "name", placeholder: "", value: content, onChange: handleChange }), _jsxs(Stack, __assign({ boxSizing: "border-box", mr: 2, mt: 1, spacing: 1, direction: "row", width: 1, justifyContent: "flex-end" }, { children: [_jsx(Button, __assign({ size: "medium", variant: "text", color: "secondary", onClick: function () {
51
+ handleModeChange();
52
+ setContent(answer);
53
+ } }, { children: "\u53D6\u6D88" })), _jsx(Button, __assign({ size: "medium", onClick: handleSubmit }, { children: "\u4FDD\u5B58" }))] }))] }))), internalMode === 'show' && (_jsx(Box, __assign({ style: { padding: 8, borderRadius: 4, overflow: 'hidden', background: bgcolor } }, { children: _jsx(Typography, __assign({ variant: "body2", sx: { whiteSpace: 'pre-wrap', color: 'RGBA(0, 0, 0, 0.56)' } }, { children: content })) })))] }));
54
+ };
55
+ export default Evaluate;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Index: () => JSX.Element | null;
3
+ export default Index;
@@ -0,0 +1,69 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import ScoreSlider from './ScoreSlider';
14
+ import WorkPlace from './WorkPlace';
15
+ import { useAiReportStore } from "../../../../store/ai-report/global-store";
16
+ import AiHeaderTitle from "../../../../components/AiHeaderTitle";
17
+ import { blue, orange, purple } from '@mui/material/colors';
18
+ import { Chip, InfoOutlineIcon, styled, Tooltip, Typography } from 'fbm-ui';
19
+ import { Box, Collapse, Paper, Stack } from 'fbm-ui/lib/mui';
20
+ var TagTitle = styled(Box)(function (bgcolor) { return ({
21
+ boxSizing: 'border-box',
22
+ position: 'relative',
23
+ padding: '0 16px',
24
+ minWidth: 100,
25
+ height: 32,
26
+ flexGrow: 1,
27
+ display: 'inline-block',
28
+ textAlign: 'center',
29
+ backgroundColor: bgcolor[200],
30
+ '&:before': {
31
+ position: 'absolute',
32
+ content: '""',
33
+ right: '-16px',
34
+ top: 0,
35
+ width: 0,
36
+ height: 0,
37
+ borderStyle: 'solid',
38
+ borderColor: 'transparent',
39
+ borderTop: 'solid #fff',
40
+ borderWidth: '16px',
41
+ },
42
+ '&:after': {
43
+ position: 'absolute',
44
+ content: '""',
45
+ right: '-16px',
46
+ top: 0,
47
+ width: 0,
48
+ height: 0,
49
+ borderStyle: 'solid',
50
+ borderColor: 'transparent',
51
+ borderBottom: 'solid #fff',
52
+ borderWidth: '16px',
53
+ },
54
+ }); });
55
+ var ColorIndexMap = {
56
+ 0: blue,
57
+ 1: orange,
58
+ 2: purple,
59
+ };
60
+ var Index = function () {
61
+ var _a;
62
+ var _b = useAiReportStore(function (store) { return [store.reportResult, store.operableButtons]; }), reportResult = _b.reportResult, showAiDimension = _b.showAiDimension, canEditAiDimension = _b.canEditAiDimension;
63
+ if (!showAiDimension)
64
+ return null;
65
+ return (_jsxs(Box, __assign({ id: "report-workplace", component: Paper, variant: "outlined", px: 2, mt: 2 }, { children: [_jsx(Stack, __assign({ direction: "row", height: 56, alignItems: "center", spacing: 1, marginBottom: 1 }, { children: _jsx(AiHeaderTitle, { name: "\u804C\u573A\u80FD\u529B\u8868\u73B0" }) })), _jsx(Collapse, __assign({ in: true }, { children: (_a = reportResult === null || reportResult === void 0 ? void 0 : reportResult.workplaces) === null || _a === void 0 ? void 0 : _a.map(function (v, idx) {
66
+ return (_jsxs(Box, __assign({ component: Paper, variant: "outlined", elevation: 0, mb: 2, pb: 2, pr: 2 }, { children: [_jsxs(Box, __assign({ display: "flex", mb: 2, mt: 1, justifyContent: "space-between", alignItems: "center" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", maxWidth: "calc(100% - 90px)" }, { children: [_jsx(TagTitle, __assign({ bgcolor: ColorIndexMap[idx % 3][200] }, { children: _jsx(Typography, __assign({ variant: "subtitle1", fontWeight: "medium", style: { lineHeight: '32px', color: '#fff', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' } }, { children: v.dimensionName })) })), v.dimensionType === 3 && _jsx(Chip, { color: 'primary', label: '自定义', size: "small", sx: { ml: 1 } })] })), _jsx(Tooltip, __assign({ title: _jsxs("span", { children: ["\u9AD8\u5206\u8868\u73B0\uFF1A", v.abilityExpression.good, _jsx("br", {}), "\u4F4E\u5206\u8868\u73B0\uFF1A", v.abilityExpression.bad] }) }, { children: _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "body2", style: { lineHeight: '32px' }, mr: 1 }, { children: "\u4F18\u6B21\u8868\u73B0" })), _jsx(InfoOutlineIcon, { sx: { fontSize: '16px' } })] })) }))] })), _jsx(Typography, __assign({ variant: "body2", color: "secondary", ml: 2, style: { background: '#F5F5F5', borderRadius: 4, padding: 8 } }, { children: v.define })), _jsxs(Stack, __assign({ pl: 2 }, { children: [_jsx(Box, __assign({ mt: 2 }, { children: _jsx(ScoreSlider, { width: "100%", isShowLabel: true, score: v.score, scoreText: v.scoreText, scoreLevel: v.scoreLevel }) })), _jsx(Stack, __assign({ spacing: 2 }, { children: _jsx(WorkPlace, { token: v.token, canEdit: canEditAiDimension, answer: v.answer, mode: "show", bgcolor: ColorIndexMap[idx % 3][50] }) }))] }))] }), v.token));
67
+ }) }))] })));
68
+ };
69
+ export default Index;
@@ -0,0 +1,7 @@
1
+ import { WorkPlaceScoreInfo } from '../../interface';
2
+ export interface ScoreSliderProps extends Pick<WorkPlaceScoreInfo, 'score' | 'scoreText' | 'scoreLevel'> {
3
+ width?: any;
4
+ valueLabelDisplay?: 'on' | 'off' | 'auto';
5
+ isShowLabel?: boolean;
6
+ onChangeCommitted?: (score: number) => void;
7
+ }