eli-video-interview 1.2.41-alpha.9 → 1.2.42-alpha.2

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 (417) hide show
  1. package/esm/components/AiHeaderTitle/index.js +8 -1
  2. package/esm/components/BigBallSvg/styled.d.ts +2 -2
  3. package/esm/components/Charts/ReportPie.js +7 -4
  4. package/esm/components/ScoreBigBall/index.d.ts +1 -1
  5. package/esm/components/ScoreBigBall/index.js +1 -1
  6. package/esm/components/ScoreBigBall/styled.d.ts +1 -1
  7. package/esm/components/ScrollDialogContent/index.d.ts +1 -1
  8. package/esm/components/VideoPreview/styled.d.ts +3 -3
  9. package/esm/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
  10. package/esm/constants/ai-question.d.ts +13 -2
  11. package/esm/constants/ai-question.js +22 -2
  12. package/esm/constants/ai-report.d.ts +5 -0
  13. package/esm/constants/ai-report.js +5 -0
  14. package/esm/enum/ai-report.d.ts +12 -0
  15. package/esm/enum/ai-report.js +12 -0
  16. package/esm/index.d.ts +2 -0
  17. package/esm/index.js +2 -0
  18. package/esm/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.d.ts +14 -0
  19. package/esm/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.js +145 -0
  20. package/esm/modules/ai-ability/components/AbilityFormItem/index.d.ts +2 -0
  21. package/esm/modules/ai-ability/components/AbilityFormItem/index.js +16 -6
  22. package/esm/modules/ai-ability/components/AddAbility/index.js +88 -103
  23. package/esm/modules/ai-ability/components/UpdateAbility/index.js +81 -106
  24. package/esm/modules/ai-ability/styled.d.ts +2 -2
  25. package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +1 -1
  26. package/esm/modules/ai-question/Root.js +12 -9
  27. package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +1 -1
  28. package/esm/modules/ai-question/components/BaseAccordion/index.js +9 -7
  29. package/esm/modules/ai-question/components/BaseAccordion/interface.d.ts +1 -0
  30. package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +3 -3
  31. package/esm/modules/ai-question/components/BootVideo/CustomVideos.js +63 -25
  32. package/esm/modules/ai-question/components/BootVideo/index.js +79 -23
  33. package/esm/modules/ai-question/components/BootVideo/interface.d.ts +1 -0
  34. package/esm/modules/ai-question/components/BootVideo/styled.d.ts +6 -4
  35. package/esm/modules/ai-question/components/BootVideo/styled.js +20 -17
  36. package/esm/modules/ai-question/components/QuestionImport/index.d.ts +4 -0
  37. package/esm/modules/ai-question/components/QuestionImport/index.js +117 -0
  38. package/esm/modules/ai-question/components/QuestionImport/interface.d.ts +8 -0
  39. package/esm/modules/ai-question/components/QuestionImport/interface.js +1 -0
  40. package/esm/modules/ai-question/components/QuestionImport/styled.d.ts +13 -0
  41. package/esm/modules/ai-question/components/QuestionImport/styled.js +49 -0
  42. package/esm/modules/ai-question/components/QuestionModel/Header.js +23 -2
  43. package/esm/modules/ai-question/components/QuestionModel/Item.js +5 -5
  44. package/esm/modules/ai-question/components/QuestionModel/index.js +1 -1
  45. package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +1 -0
  46. package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +1 -1
  47. package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
  48. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +3 -1
  49. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +5 -4
  50. package/esm/modules/ai-question/components/QuestionTemplate/index.js +3 -2
  51. package/esm/modules/ai-question/components/QuestionTemplate/interface.d.ts +1 -0
  52. package/esm/modules/ai-question/components/QuestionUpdate/FllowupSetting.d.ts +4 -0
  53. package/esm/modules/ai-question/components/QuestionUpdate/FllowupSetting.js +86 -0
  54. package/esm/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.d.ts +9 -0
  55. package/esm/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.js +94 -0
  56. package/esm/modules/ai-question/components/QuestionUpdate/FollowupTarget.d.ts +9 -0
  57. package/esm/modules/ai-question/components/QuestionUpdate/FollowupTarget.js +73 -0
  58. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +8 -7
  59. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +2 -1
  60. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +27 -17
  61. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +2 -1
  62. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +15 -10
  63. package/esm/modules/ai-question/components/QuestionUpdate/index.js +3 -3
  64. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +7 -0
  65. package/esm/modules/ai-question/components/QuestionUpdate/styled.d.ts +10 -10
  66. package/esm/modules/ai-question/interface.d.ts +7 -0
  67. package/esm/modules/ai-question/useAiQuestion.d.ts +4 -0
  68. package/esm/modules/ai-report/Root.js +54 -10
  69. package/esm/modules/ai-report/components/AIEvaluate/index.js +2 -2
  70. package/esm/modules/ai-report/components/RankingRange/styled.d.ts +2 -2
  71. package/esm/modules/ai-report/components/ScoreReport/Bar.d.ts +4 -1
  72. package/esm/modules/ai-report/components/ScoreReport/Bar.js +12 -10
  73. package/esm/modules/ai-report/components/ScoreReport/Failed.d.ts +1 -1
  74. package/esm/modules/ai-report/components/ScoreReport/Failed.js +12 -4
  75. package/esm/modules/ai-report/components/ScoreReport/RecommendIcon.d.ts +3 -0
  76. package/esm/modules/ai-report/components/ScoreReport/RecommendIcon.js +17 -0
  77. package/esm/modules/ai-report/components/ScoreReport/Score.js +35 -9
  78. package/esm/modules/ai-report/components/ScoreReport/Tips.d.ts +3 -0
  79. package/esm/modules/ai-report/components/ScoreReport/Tips.js +18 -0
  80. package/esm/modules/ai-report/components/ScoreReport/index.js +8 -10
  81. package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +5 -0
  82. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +7 -7
  83. package/esm/modules/ai-report/components/ScoreReport/styled.js +2 -4
  84. package/esm/modules/ai-report/components/Suggestion/index.js +2 -2
  85. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +3 -1
  86. package/esm/modules/ai-report/components/VideoQuestion/Workplaces.d.ts +6 -0
  87. package/esm/modules/ai-report/components/VideoQuestion/Workplaces.js +26 -0
  88. package/esm/modules/ai-report/components/VideoQuestion/index.js +2 -2
  89. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +8 -8
  90. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +1 -0
  91. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +2 -1
  92. package/esm/modules/ai-report/components/WorkPlaces/index.js +4 -3
  93. package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +4 -4
  94. package/esm/modules/ai-report/interface.d.ts +9 -0
  95. package/esm/modules/ai-report-v2/Root.d.ts +4 -0
  96. package/esm/modules/ai-report-v2/Root.js +82 -0
  97. package/esm/modules/ai-report-v2/components/AIEvaluate/Evaluate.d.ts +13 -0
  98. package/esm/modules/ai-report-v2/components/AIEvaluate/Evaluate.js +82 -0
  99. package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +10 -0
  100. package/esm/modules/ai-report-v2/components/AIEvaluate/Graph.js +246 -0
  101. package/esm/modules/ai-report-v2/components/AIEvaluate/index.d.ts +3 -0
  102. package/esm/modules/ai-report-v2/components/AIEvaluate/index.js +29 -0
  103. package/esm/modules/ai-report-v2/components/Candidate/Candidate.d.ts +7 -0
  104. package/esm/modules/ai-report-v2/components/Candidate/Candidate.js +44 -0
  105. package/esm/modules/ai-report-v2/components/Candidate/Interface.d.ts +13 -0
  106. package/esm/modules/ai-report-v2/components/Candidate/Interface.js +1 -0
  107. package/esm/modules/ai-report-v2/components/Candidate/Podium.d.ts +6 -0
  108. package/esm/modules/ai-report-v2/components/Candidate/Podium.js +50 -0
  109. package/esm/modules/ai-report-v2/components/Candidate/index.d.ts +2 -0
  110. package/esm/modules/ai-report-v2/components/Candidate/index.js +2 -0
  111. package/esm/modules/ai-report-v2/components/Form/Form.d.ts +23 -0
  112. package/esm/modules/ai-report-v2/components/Form/Form.js +83 -0
  113. package/esm/modules/ai-report-v2/components/Form/Forms.d.ts +9 -0
  114. package/esm/modules/ai-report-v2/components/Form/Forms.js +45 -0
  115. package/esm/modules/ai-report-v2/components/Form/Nps.d.ts +6 -0
  116. package/esm/modules/ai-report-v2/components/Form/Nps.js +55 -0
  117. package/esm/modules/ai-report-v2/components/Form/index.d.ts +1 -0
  118. package/esm/modules/ai-report-v2/components/Form/index.js +1 -0
  119. package/esm/modules/ai-report-v2/components/Form/interface.d.ts +57 -0
  120. package/esm/modules/ai-report-v2/components/Form/interface.js +1 -0
  121. package/esm/modules/ai-report-v2/components/MenuAnchor/index.d.ts +4 -0
  122. package/esm/modules/ai-report-v2/components/MenuAnchor/index.js +131 -0
  123. package/esm/modules/ai-report-v2/components/NotFinish/index.d.ts +3 -0
  124. package/esm/modules/ai-report-v2/components/NotFinish/index.js +25 -0
  125. package/esm/modules/ai-report-v2/components/RankingRange/Item.d.ts +4 -0
  126. package/esm/modules/ai-report-v2/components/RankingRange/Item.js +46 -0
  127. package/esm/modules/ai-report-v2/components/RankingRange/index.d.ts +4 -0
  128. package/esm/modules/ai-report-v2/components/RankingRange/index.js +187 -0
  129. package/esm/modules/ai-report-v2/components/RankingRange/interface.d.ts +26 -0
  130. package/esm/modules/ai-report-v2/components/RankingRange/interface.js +1 -0
  131. package/esm/modules/ai-report-v2/components/RankingRange/styled.d.ts +7 -0
  132. package/esm/modules/ai-report-v2/components/RankingRange/styled.js +11 -0
  133. package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +13 -0
  134. package/esm/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +82 -0
  135. package/esm/modules/ai-report-v2/components/ScoreReport/Bar.d.ts +6 -0
  136. package/esm/modules/ai-report-v2/components/ScoreReport/Bar.js +68 -0
  137. package/esm/modules/ai-report-v2/components/ScoreReport/Failed.d.ts +4 -0
  138. package/esm/modules/ai-report-v2/components/ScoreReport/Failed.js +33 -0
  139. package/esm/modules/ai-report-v2/components/ScoreReport/RecommendIcon.d.ts +3 -0
  140. package/esm/modules/ai-report-v2/components/ScoreReport/RecommendIcon.js +17 -0
  141. package/esm/modules/ai-report-v2/components/ScoreReport/Report.d.ts +3 -0
  142. package/esm/modules/ai-report-v2/components/ScoreReport/Report.js +22 -0
  143. package/esm/modules/ai-report-v2/components/ScoreReport/Score.d.ts +4 -0
  144. package/esm/modules/ai-report-v2/components/ScoreReport/Score.js +83 -0
  145. package/esm/modules/ai-report-v2/components/ScoreReport/ScoreLegend.d.ts +4 -0
  146. package/esm/modules/ai-report-v2/components/ScoreReport/ScoreLegend.js +33 -0
  147. package/esm/modules/ai-report-v2/components/ScoreReport/Tips.d.ts +3 -0
  148. package/esm/modules/ai-report-v2/components/ScoreReport/Tips.js +18 -0
  149. package/esm/modules/ai-report-v2/components/ScoreReport/index.d.ts +4 -0
  150. package/esm/modules/ai-report-v2/components/ScoreReport/index.js +39 -0
  151. package/esm/modules/ai-report-v2/components/ScoreReport/interface.d.ts +20 -0
  152. package/esm/modules/ai-report-v2/components/ScoreReport/interface.js +1 -0
  153. package/esm/modules/ai-report-v2/components/ScoreReport/styled.d.ts +22 -0
  154. package/esm/modules/ai-report-v2/components/ScoreReport/styled.js +21 -0
  155. package/esm/modules/ai-report-v2/components/Suggestion/Suggestion.d.ts +4 -0
  156. package/esm/modules/ai-report-v2/components/Suggestion/Suggestion.js +31 -0
  157. package/esm/modules/ai-report-v2/components/Suggestion/index.d.ts +3 -0
  158. package/esm/modules/ai-report-v2/components/Suggestion/index.js +27 -0
  159. package/esm/modules/ai-report-v2/components/VideoQuestion/Abilities.d.ts +4 -0
  160. package/esm/modules/ai-report-v2/components/VideoQuestion/Abilities.js +42 -0
  161. package/esm/modules/ai-report-v2/components/VideoQuestion/BodyImages.d.ts +7 -0
  162. package/esm/modules/ai-report-v2/components/VideoQuestion/BodyImages.js +56 -0
  163. package/esm/modules/ai-report-v2/components/VideoQuestion/QuestionItem.d.ts +4 -0
  164. package/esm/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +117 -0
  165. package/esm/modules/ai-report-v2/components/VideoQuestion/ScoreSlider.d.ts +4 -0
  166. package/esm/modules/ai-report-v2/components/VideoQuestion/ScoreSlider.js +47 -0
  167. package/esm/modules/ai-report-v2/components/VideoQuestion/SingleChoice.d.ts +8 -0
  168. package/esm/modules/ai-report-v2/components/VideoQuestion/SingleChoice.js +31 -0
  169. package/esm/modules/ai-report-v2/components/VideoQuestion/Workplaces.d.ts +6 -0
  170. package/esm/modules/ai-report-v2/components/VideoQuestion/Workplaces.js +26 -0
  171. package/esm/modules/ai-report-v2/components/VideoQuestion/index.d.ts +3 -0
  172. package/esm/modules/ai-report-v2/components/VideoQuestion/index.js +22 -0
  173. package/esm/modules/ai-report-v2/components/VideoQuestion/interface.d.ts +16 -0
  174. package/esm/modules/ai-report-v2/components/VideoQuestion/interface.js +1 -0
  175. package/esm/modules/ai-report-v2/components/VideoQuestion/styled.d.ts +72 -0
  176. package/esm/modules/ai-report-v2/components/VideoQuestion/styled.js +97 -0
  177. package/esm/modules/ai-report-v2/components/WorkPlaces/ScoreSlider.d.ts +4 -0
  178. package/esm/modules/ai-report-v2/components/WorkPlaces/ScoreSlider.js +24 -0
  179. package/esm/modules/ai-report-v2/components/WorkPlaces/WorkPlace.d.ts +12 -0
  180. package/esm/modules/ai-report-v2/components/WorkPlaces/WorkPlace.js +72 -0
  181. package/esm/modules/ai-report-v2/components/WorkPlaces/index.d.ts +3 -0
  182. package/esm/modules/ai-report-v2/components/WorkPlaces/index.js +70 -0
  183. package/esm/modules/ai-report-v2/components/WorkPlaces/interface.d.ts +7 -0
  184. package/esm/modules/ai-report-v2/components/WorkPlaces/interface.js +1 -0
  185. package/esm/modules/ai-report-v2/components/WorkPlaces/styled.d.ts +62 -0
  186. package/esm/modules/ai-report-v2/components/WorkPlaces/styled.js +27 -0
  187. package/esm/modules/ai-report-v2/components/styled.d.ts +39 -0
  188. package/esm/modules/ai-report-v2/components/styled.js +123 -0
  189. package/esm/modules/ai-report-v2/index.d.ts +4 -0
  190. package/esm/modules/ai-report-v2/index.js +20 -0
  191. package/esm/modules/ai-report-v2/interface.d.ts +219 -0
  192. package/esm/modules/ai-report-v2/interface.js +1 -0
  193. package/esm/modules/ai-report-v2/useAiReport.d.ts +31 -0
  194. package/esm/modules/ai-report-v2/useAiReport.js +16 -0
  195. package/esm/modules/ai-report-v2/utils.d.ts +1 -0
  196. package/esm/modules/ai-report-v2/utils.js +1 -0
  197. package/esm/modules/ai-template/components/TemplateList/styled.d.ts +12 -12
  198. package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +4 -4
  199. package/esm/services/ai-question.d.ts +3 -0
  200. package/esm/services/ai-question.js +3 -0
  201. package/esm/services/ai-report.d.ts +6 -0
  202. package/esm/services/ai-report.js +1 -0
  203. package/esm/store/ai-question/boot-video-store.d.ts +6 -0
  204. package/esm/store/ai-question/boot-video-store.js +3 -1
  205. package/esm/store/ai-question/global-store.d.ts +12 -0
  206. package/esm/store/ai-question/global-store.js +1 -0
  207. package/esm/store/enterprise/enterprise-store.js +2 -2
  208. package/esm/utils/interceptor.js +5 -2
  209. package/lib/components/AiHeaderTitle/index.js +8 -1
  210. package/lib/components/BigBallSvg/styled.d.ts +2 -2
  211. package/lib/components/Charts/ReportPie.js +7 -4
  212. package/lib/components/ScoreBigBall/index.d.ts +1 -1
  213. package/lib/components/ScoreBigBall/index.js +1 -1
  214. package/lib/components/ScoreBigBall/styled.d.ts +1 -1
  215. package/lib/components/ScrollDialogContent/index.d.ts +1 -1
  216. package/lib/components/VideoPreview/styled.d.ts +3 -3
  217. package/lib/components/react-photo-view/hooks/useAnimationPosition.d.ts +1 -1
  218. package/lib/constants/ai-question.d.ts +13 -2
  219. package/lib/constants/ai-question.js +24 -3
  220. package/lib/constants/ai-report.d.ts +5 -0
  221. package/lib/constants/ai-report.js +6 -1
  222. package/lib/enum/ai-report.d.ts +12 -0
  223. package/lib/enum/ai-report.js +13 -1
  224. package/lib/index.d.ts +2 -0
  225. package/lib/index.js +5 -1
  226. package/lib/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.d.ts +14 -0
  227. package/lib/modules/ai-ability/components/AbilityFormItem/AbilityFormItem.js +147 -0
  228. package/lib/modules/ai-ability/components/AbilityFormItem/index.d.ts +2 -0
  229. package/lib/modules/ai-ability/components/AbilityFormItem/index.js +14 -4
  230. package/lib/modules/ai-ability/components/AddAbility/index.js +110 -102
  231. package/lib/modules/ai-ability/components/UpdateAbility/index.js +101 -103
  232. package/lib/modules/ai-ability/styled.d.ts +2 -2
  233. package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +1 -1
  234. package/lib/modules/ai-question/Root.js +12 -9
  235. package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +1 -1
  236. package/lib/modules/ai-question/components/BaseAccordion/index.js +9 -7
  237. package/lib/modules/ai-question/components/BaseAccordion/interface.d.ts +1 -0
  238. package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +3 -3
  239. package/lib/modules/ai-question/components/BootVideo/CustomVideos.js +62 -24
  240. package/lib/modules/ai-question/components/BootVideo/index.js +82 -26
  241. package/lib/modules/ai-question/components/BootVideo/interface.d.ts +1 -0
  242. package/lib/modules/ai-question/components/BootVideo/styled.d.ts +6 -4
  243. package/lib/modules/ai-question/components/BootVideo/styled.js +20 -17
  244. package/lib/modules/ai-question/components/QuestionImport/index.d.ts +4 -0
  245. package/lib/modules/ai-question/components/QuestionImport/index.js +122 -0
  246. package/lib/modules/ai-question/components/QuestionImport/interface.d.ts +8 -0
  247. package/lib/modules/ai-question/components/QuestionImport/interface.js +2 -0
  248. package/lib/modules/ai-question/components/QuestionImport/styled.d.ts +13 -0
  249. package/lib/modules/ai-question/components/QuestionImport/styled.js +52 -0
  250. package/lib/modules/ai-question/components/QuestionModel/Header.js +25 -1
  251. package/lib/modules/ai-question/components/QuestionModel/Item.js +4 -4
  252. package/lib/modules/ai-question/components/QuestionModel/index.js +1 -1
  253. package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +1 -0
  254. package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +1 -1
  255. package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +3 -3
  256. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +3 -1
  257. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +5 -4
  258. package/lib/modules/ai-question/components/QuestionTemplate/index.js +3 -2
  259. package/lib/modules/ai-question/components/QuestionTemplate/interface.d.ts +1 -0
  260. package/lib/modules/ai-question/components/QuestionUpdate/FllowupSetting.d.ts +4 -0
  261. package/lib/modules/ai-question/components/QuestionUpdate/FllowupSetting.js +91 -0
  262. package/lib/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.d.ts +9 -0
  263. package/lib/modules/ai-question/components/QuestionUpdate/FollowupKeyPoints.js +96 -0
  264. package/lib/modules/ai-question/components/QuestionUpdate/FollowupTarget.d.ts +9 -0
  265. package/lib/modules/ai-question/components/QuestionUpdate/FollowupTarget.js +75 -0
  266. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +8 -7
  267. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +4 -3
  268. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +27 -17
  269. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +2 -1
  270. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +13 -8
  271. package/lib/modules/ai-question/components/QuestionUpdate/index.js +2 -2
  272. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +7 -0
  273. package/lib/modules/ai-question/components/QuestionUpdate/styled.d.ts +10 -10
  274. package/lib/modules/ai-question/interface.d.ts +7 -0
  275. package/lib/modules/ai-question/useAiQuestion.d.ts +4 -0
  276. package/lib/modules/ai-report/Root.js +51 -7
  277. package/lib/modules/ai-report/components/AIEvaluate/index.js +2 -2
  278. package/lib/modules/ai-report/components/RankingRange/styled.d.ts +2 -2
  279. package/lib/modules/ai-report/components/ScoreReport/Bar.d.ts +4 -1
  280. package/lib/modules/ai-report/components/ScoreReport/Bar.js +11 -9
  281. package/lib/modules/ai-report/components/ScoreReport/Failed.d.ts +1 -1
  282. package/lib/modules/ai-report/components/ScoreReport/Failed.js +12 -5
  283. package/lib/modules/ai-report/components/ScoreReport/RecommendIcon.d.ts +3 -0
  284. package/lib/modules/ai-report/components/ScoreReport/RecommendIcon.js +22 -0
  285. package/lib/modules/ai-report/components/ScoreReport/Score.js +31 -7
  286. package/lib/modules/ai-report/components/ScoreReport/Tips.d.ts +3 -0
  287. package/lib/modules/ai-report/components/ScoreReport/Tips.js +20 -0
  288. package/lib/modules/ai-report/components/ScoreReport/index.js +6 -8
  289. package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +5 -0
  290. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +7 -7
  291. package/lib/modules/ai-report/components/ScoreReport/styled.js +2 -4
  292. package/lib/modules/ai-report/components/Suggestion/index.js +1 -1
  293. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +9 -7
  294. package/lib/modules/ai-report/components/VideoQuestion/Workplaces.d.ts +6 -0
  295. package/lib/modules/ai-report/components/VideoQuestion/Workplaces.js +28 -0
  296. package/lib/modules/ai-report/components/VideoQuestion/index.js +1 -1
  297. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +8 -8
  298. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +1 -0
  299. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +2 -1
  300. package/lib/modules/ai-report/components/WorkPlaces/index.js +3 -2
  301. package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +4 -4
  302. package/lib/modules/ai-report/interface.d.ts +9 -0
  303. package/lib/modules/ai-report-v2/Root.d.ts +4 -0
  304. package/lib/modules/ai-report-v2/Root.js +87 -0
  305. package/lib/modules/ai-report-v2/components/AIEvaluate/Evaluate.d.ts +13 -0
  306. package/lib/modules/ai-report-v2/components/AIEvaluate/Evaluate.js +84 -0
  307. package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.d.ts +10 -0
  308. package/lib/modules/ai-report-v2/components/AIEvaluate/Graph.js +248 -0
  309. package/lib/modules/ai-report-v2/components/AIEvaluate/index.d.ts +3 -0
  310. package/lib/modules/ai-report-v2/components/AIEvaluate/index.js +34 -0
  311. package/lib/modules/ai-report-v2/components/Candidate/Candidate.d.ts +7 -0
  312. package/lib/modules/ai-report-v2/components/Candidate/Candidate.js +46 -0
  313. package/lib/modules/ai-report-v2/components/Candidate/Interface.d.ts +13 -0
  314. package/lib/modules/ai-report-v2/components/Candidate/Interface.js +2 -0
  315. package/lib/modules/ai-report-v2/components/Candidate/Podium.d.ts +6 -0
  316. package/lib/modules/ai-report-v2/components/Candidate/Podium.js +52 -0
  317. package/lib/modules/ai-report-v2/components/Candidate/index.d.ts +2 -0
  318. package/lib/modules/ai-report-v2/components/Candidate/index.js +10 -0
  319. package/lib/modules/ai-report-v2/components/Form/Form.d.ts +23 -0
  320. package/lib/modules/ai-report-v2/components/Form/Form.js +89 -0
  321. package/lib/modules/ai-report-v2/components/Form/Forms.d.ts +9 -0
  322. package/lib/modules/ai-report-v2/components/Form/Forms.js +50 -0
  323. package/lib/modules/ai-report-v2/components/Form/Nps.d.ts +6 -0
  324. package/lib/modules/ai-report-v2/components/Form/Nps.js +57 -0
  325. package/lib/modules/ai-report-v2/components/Form/index.d.ts +1 -0
  326. package/lib/modules/ai-report-v2/components/Form/index.js +8 -0
  327. package/lib/modules/ai-report-v2/components/Form/interface.d.ts +57 -0
  328. package/lib/modules/ai-report-v2/components/Form/interface.js +2 -0
  329. package/lib/modules/ai-report-v2/components/MenuAnchor/index.d.ts +4 -0
  330. package/lib/modules/ai-report-v2/components/MenuAnchor/index.js +133 -0
  331. package/lib/modules/ai-report-v2/components/NotFinish/index.d.ts +3 -0
  332. package/lib/modules/ai-report-v2/components/NotFinish/index.js +27 -0
  333. package/lib/modules/ai-report-v2/components/RankingRange/Item.d.ts +4 -0
  334. package/lib/modules/ai-report-v2/components/RankingRange/Item.js +48 -0
  335. package/lib/modules/ai-report-v2/components/RankingRange/index.d.ts +4 -0
  336. package/lib/modules/ai-report-v2/components/RankingRange/index.js +192 -0
  337. package/lib/modules/ai-report-v2/components/RankingRange/interface.d.ts +26 -0
  338. package/lib/modules/ai-report-v2/components/RankingRange/interface.js +2 -0
  339. package/lib/modules/ai-report-v2/components/RankingRange/styled.d.ts +7 -0
  340. package/lib/modules/ai-report-v2/components/RankingRange/styled.js +14 -0
  341. package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.d.ts +13 -0
  342. package/lib/modules/ai-report-v2/components/ReportHeader/ReportHeader.js +87 -0
  343. package/lib/modules/ai-report-v2/components/ScoreReport/Bar.d.ts +6 -0
  344. package/lib/modules/ai-report-v2/components/ScoreReport/Bar.js +70 -0
  345. package/lib/modules/ai-report-v2/components/ScoreReport/Failed.d.ts +4 -0
  346. package/lib/modules/ai-report-v2/components/ScoreReport/Failed.js +34 -0
  347. package/lib/modules/ai-report-v2/components/ScoreReport/RecommendIcon.d.ts +3 -0
  348. package/lib/modules/ai-report-v2/components/ScoreReport/RecommendIcon.js +22 -0
  349. package/lib/modules/ai-report-v2/components/ScoreReport/Report.d.ts +3 -0
  350. package/lib/modules/ai-report-v2/components/ScoreReport/Report.js +27 -0
  351. package/lib/modules/ai-report-v2/components/ScoreReport/Score.d.ts +4 -0
  352. package/lib/modules/ai-report-v2/components/ScoreReport/Score.js +86 -0
  353. package/lib/modules/ai-report-v2/components/ScoreReport/ScoreLegend.d.ts +4 -0
  354. package/lib/modules/ai-report-v2/components/ScoreReport/ScoreLegend.js +35 -0
  355. package/lib/modules/ai-report-v2/components/ScoreReport/Tips.d.ts +3 -0
  356. package/lib/modules/ai-report-v2/components/ScoreReport/Tips.js +20 -0
  357. package/lib/modules/ai-report-v2/components/ScoreReport/index.d.ts +4 -0
  358. package/lib/modules/ai-report-v2/components/ScoreReport/index.js +44 -0
  359. package/lib/modules/ai-report-v2/components/ScoreReport/interface.d.ts +20 -0
  360. package/lib/modules/ai-report-v2/components/ScoreReport/interface.js +2 -0
  361. package/lib/modules/ai-report-v2/components/ScoreReport/styled.d.ts +22 -0
  362. package/lib/modules/ai-report-v2/components/ScoreReport/styled.js +24 -0
  363. package/lib/modules/ai-report-v2/components/Suggestion/Suggestion.d.ts +4 -0
  364. package/lib/modules/ai-report-v2/components/Suggestion/Suggestion.js +33 -0
  365. package/lib/modules/ai-report-v2/components/Suggestion/index.d.ts +3 -0
  366. package/lib/modules/ai-report-v2/components/Suggestion/index.js +32 -0
  367. package/lib/modules/ai-report-v2/components/VideoQuestion/Abilities.d.ts +4 -0
  368. package/lib/modules/ai-report-v2/components/VideoQuestion/Abilities.js +47 -0
  369. package/lib/modules/ai-report-v2/components/VideoQuestion/BodyImages.d.ts +7 -0
  370. package/lib/modules/ai-report-v2/components/VideoQuestion/BodyImages.js +61 -0
  371. package/lib/modules/ai-report-v2/components/VideoQuestion/QuestionItem.d.ts +4 -0
  372. package/lib/modules/ai-report-v2/components/VideoQuestion/QuestionItem.js +122 -0
  373. package/lib/modules/ai-report-v2/components/VideoQuestion/ScoreSlider.d.ts +4 -0
  374. package/lib/modules/ai-report-v2/components/VideoQuestion/ScoreSlider.js +49 -0
  375. package/lib/modules/ai-report-v2/components/VideoQuestion/SingleChoice.d.ts +8 -0
  376. package/lib/modules/ai-report-v2/components/VideoQuestion/SingleChoice.js +33 -0
  377. package/lib/modules/ai-report-v2/components/VideoQuestion/Workplaces.d.ts +6 -0
  378. package/lib/modules/ai-report-v2/components/VideoQuestion/Workplaces.js +28 -0
  379. package/lib/modules/ai-report-v2/components/VideoQuestion/index.d.ts +3 -0
  380. package/lib/modules/ai-report-v2/components/VideoQuestion/index.js +27 -0
  381. package/lib/modules/ai-report-v2/components/VideoQuestion/interface.d.ts +16 -0
  382. package/lib/modules/ai-report-v2/components/VideoQuestion/interface.js +2 -0
  383. package/lib/modules/ai-report-v2/components/VideoQuestion/styled.d.ts +72 -0
  384. package/lib/modules/ai-report-v2/components/VideoQuestion/styled.js +100 -0
  385. package/lib/modules/ai-report-v2/components/WorkPlaces/ScoreSlider.d.ts +4 -0
  386. package/lib/modules/ai-report-v2/components/WorkPlaces/ScoreSlider.js +26 -0
  387. package/lib/modules/ai-report-v2/components/WorkPlaces/WorkPlace.d.ts +12 -0
  388. package/lib/modules/ai-report-v2/components/WorkPlaces/WorkPlace.js +74 -0
  389. package/lib/modules/ai-report-v2/components/WorkPlaces/index.d.ts +3 -0
  390. package/lib/modules/ai-report-v2/components/WorkPlaces/index.js +75 -0
  391. package/lib/modules/ai-report-v2/components/WorkPlaces/interface.d.ts +7 -0
  392. package/lib/modules/ai-report-v2/components/WorkPlaces/interface.js +2 -0
  393. package/lib/modules/ai-report-v2/components/WorkPlaces/styled.d.ts +62 -0
  394. package/lib/modules/ai-report-v2/components/WorkPlaces/styled.js +30 -0
  395. package/lib/modules/ai-report-v2/components/styled.d.ts +39 -0
  396. package/lib/modules/ai-report-v2/components/styled.js +126 -0
  397. package/lib/modules/ai-report-v2/index.d.ts +4 -0
  398. package/lib/modules/ai-report-v2/index.js +25 -0
  399. package/lib/modules/ai-report-v2/interface.d.ts +219 -0
  400. package/lib/modules/ai-report-v2/interface.js +2 -0
  401. package/lib/modules/ai-report-v2/useAiReport.d.ts +31 -0
  402. package/lib/modules/ai-report-v2/useAiReport.js +20 -0
  403. package/lib/modules/ai-report-v2/utils.d.ts +1 -0
  404. package/lib/modules/ai-report-v2/utils.js +5 -0
  405. package/lib/modules/ai-template/components/TemplateList/styled.d.ts +12 -12
  406. package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +4 -4
  407. package/lib/services/ai-question.d.ts +3 -0
  408. package/lib/services/ai-question.js +7 -1
  409. package/lib/services/ai-report.d.ts +6 -0
  410. package/lib/services/ai-report.js +3 -1
  411. package/lib/store/ai-question/boot-video-store.d.ts +6 -0
  412. package/lib/store/ai-question/boot-video-store.js +2 -0
  413. package/lib/store/ai-question/global-store.d.ts +12 -0
  414. package/lib/store/ai-question/global-store.js +1 -0
  415. package/lib/store/enterprise/enterprise-store.js +2 -2
  416. package/lib/utils/interceptor.js +5 -2
  417. package/package.json +6 -3
@@ -14,6 +14,13 @@ import SvgIcon from "../SvgIcon";
14
14
  import { Box, Typography } from 'fbm-ui';
15
15
  var AiHeaderTitle = function (_a) {
16
16
  var name = _a.name;
17
- return (_jsxs(Box, __assign({ display: "inline-flex" }, { children: [_jsx(SvgIcon, { name: "AI" }), _jsx(Typography, __assign({ variant: "h6", fontWeight: "medium", sx: { fontWeight: 500 }, ml: 1 }, { children: name }))] })));
17
+ return (_jsxs(Box, __assign({ display: "inline-flex", sx: {
18
+ pl: 3,
19
+ color: '#009D56',
20
+ pt: 0.5,
21
+ background: 'url(//webcdn.fbmms.cn/assets/yt-b/yf2BqqIlr8Xtb8N2o44t1) no-repeat center center',
22
+ backgroundSize: 'contain',
23
+ width: 24 + (56 / 4) * name.length + 84,
24
+ } }, { children: [_jsx(SvgIcon, { name: "AI" }), _jsx(Typography, __assign({ variant: "h6" }, { children: name }))] })));
18
25
  };
19
26
  export default AiHeaderTitle;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- export declare const SvgRoot: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGSVGElement>, {}>;
3
- export declare const SvgGRoot: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGGElement>, {}>;
2
+ export declare const SvgRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGSVGElement>, {}>;
3
+ export declare const SvgGRoot: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").SVGProps<SVGGElement>, {}>;
@@ -89,9 +89,8 @@ var ReportPie = function (props) {
89
89
  color: 'rgba(0, 0, 0, 0.86)',
90
90
  fontWeight: 500,
91
91
  formatter: function (_a) {
92
- var _b;
93
- var name = _a.name, value = _a.value, level = _a.data.level;
94
- return "".concat(name, ": {").concat(level, "|").concat(((_b = levelMapping[level]) === null || _b === void 0 ? void 0 : _b.text) || "".concat(value, "\u5206"), "}");
92
+ var name = _a.name;
93
+ return "".concat(name);
95
94
  },
96
95
  rich: __assign({}, levelMapping),
97
96
  },
@@ -123,7 +122,11 @@ var ReportPie = function (props) {
123
122
  position: 'inner',
124
123
  color: '#fff',
125
124
  fontWeight: 500,
126
- formatter: "{c}",
125
+ formatter: function (_a) {
126
+ var _b;
127
+ var value = _a.value, dataIndex = _a.dataIndex;
128
+ return ((_b = data[dataIndex]) === null || _b === void 0 ? void 0 : _b.weight) || 0;
129
+ },
127
130
  fontSize: 14,
128
131
  },
129
132
  itemStyle: {
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
2
1
  import { ScoreBigBallProps } from './interface';
2
+ import { FC } from 'react';
3
3
  declare const ScoreBigBall: FC<ScoreBigBallProps>;
4
4
  export default ScoreBigBall;
@@ -10,9 +10,9 @@ var __assign = (this && this.__assign) || function () {
10
10
  return __assign.apply(this, arguments);
11
11
  };
12
12
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import { ScoreBigBallRoot } from './styled';
13
14
  import BigBallSvg from "../BigBallSvg";
14
15
  import { formatScore } from "../../utils/utils";
15
- import { ScoreBigBallRoot } from './styled';
16
16
  var ScoreBigBall = function (_a) {
17
17
  var score = _a.score, status = _a.status, _b = _a.width, width = _b === void 0 ? 80 : _b, _c = _a.height, height = _c === void 0 ? 80 : _c, _d = _a.fontSize, fontSize = _d === void 0 ? 20 : _d;
18
18
  return (_jsxs(_Fragment, { children: [_jsxs(ScoreBigBallRoot, __assign({ width: width, height: height, sx: { backgroundColor: status === 1 ? '#fbfbfb' : 'rgba(59, 203, 120, 0.1)' } }, { children: [status !== 1 && _jsx(BigBallSvg, {}), status === 1 && (_jsx("div", __assign({ style: { color: 'rgba(0,0,0,0.26)', fontSize: '12px' } }, { children: _jsx("span", { children: "\u5019\u9009\u4EBA\u672A\u4F5C\u7B54" }) }))), status === 2 && (_jsx("div", __assign({ style: { color: '#40be47' } }, { children: _jsx("span", { children: "\u8BA1\u7B97\u4E2D..." }) }))), status === 3 && (_jsxs("div", __assign({ style: { color: '#40be47' } }, { children: [_jsx("span", __assign({ style: { fontFamily: 'DIN Alternate Bold', fontSize: fontSize, fontWeight: 'bold' } }, { children: formatScore(score) > 100 ? 100 : formatScore(score) })), _jsx("span", __assign({ style: { marginLeft: '2px', fontSize: '12px' } }, { children: "\u5206" }))] })))] })), status === 2 && (_jsx("div", { style: {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  export declare const ScoreBigBallRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  declare const ScrollDialogContent: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export default ScrollDialogContent;
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  export declare const VideoPreviewRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
3
3
  children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
4
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
5
  export declare const PageTurningRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
6
6
  children?: import("react").ReactNode;
7
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
7
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
8
  export declare const FaceAnalysisRoot: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Box").BoxProps & {
9
9
  children?: import("react").ReactNode;
10
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
10
+ } & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,2 +1,2 @@
1
1
  import type { MutableRefObject } from 'react';
2
- export default function useAnimationPosition(visible: boolean | undefined, originRef: MutableRefObject<HTMLElement | null> | undefined, loaded: boolean, x: number, y: number, width: number, height: number, scale: number, speed: number, updateEasing: (pause: boolean) => void): readonly [number, number, number, number, number, 0 | 1, import("../types").EasingMode, "fill" | "contain" | "cover" | undefined];
2
+ export default function useAnimationPosition(visible: boolean | undefined, originRef: MutableRefObject<HTMLElement | null> | undefined, loaded: boolean, x: number, y: number, width: number, height: number, scale: number, speed: number, updateEasing: (pause: boolean) => void): readonly [number, number, number, number, number, 0 | 1, import("../types").EasingMode, "contain" | "fill" | "cover" | undefined];
@@ -1,3 +1,4 @@
1
+ import { InteractionMethod } from '../modules/ai-question/interface';
1
2
  import { QuestionParams } from '@/modules/ai-question/components/QuestionUpdate/interface';
2
3
  import { ADD_QUESTION_TYPE } from '@enum/ai-question';
3
4
  export declare const ADD_QUESTION_TYPE_LIST: {
@@ -22,11 +23,19 @@ export declare const QUESTION_TYPE_MAPPING_LABEL: {
22
23
  8: string;
23
24
  9: string;
24
25
  };
25
- export declare const DEFAULT_GUIDE_VIDEO_URL = "https://public-static-assets.oss-cn-beijing.aliyuncs.com/wxprogram/guide_video.mp4";
26
- export declare const DEFAULT_GUIDE_VIDEO_THUMB_URL = "https://public-static-assets.oss-cn-beijing.aliyuncs.com/wxprogram/guide_video.mp4?x-oss-process=video/snapshot,t_0,f_jpg";
26
+ export declare const DEFAULT_GUIDE_VIDEO_URL = "https://alicdn.fbmms.cn/CPAL19KVV5RR06ISK1L0.mp4";
27
+ export declare const DEFAULT_GUIDE_VIDEO_THUMB_URL = "https://alicdn.fbmms.cn/CPAL19KVV5RR06ISK1L0.mp4?x-oss-process=video/snapshot,t_0,f_jpg";
27
28
  export declare const DEFAULT_GUIDE_VIDEO: {
28
29
  videoUrl: string;
29
30
  frameUrl: string;
31
+ loading: boolean;
32
+ }[];
33
+ export declare const DEFAULT_PC_GUIDE_VIDEO_URL = "https://alicdn.fbmms.cn/CPAL19KVV5RR06ISK1L0.mp4";
34
+ export declare const DEFAULT_PC_GUIDE_VIDEO_THUMB_URL = "https://alicdn.fbmms.cn/CPAL19KVV5RR06ISK1L0.mp4?x-oss-process=video/snapshot,t_0,f_jpg";
35
+ export declare const DEFAULT_PC_GUIDE_VIDEO: {
36
+ videoUrl: string;
37
+ frameUrl: string;
38
+ loading: boolean;
30
39
  }[];
31
40
  export declare const DEFAULT_VITUAL_HUMAN_LIST: never[];
32
41
  export declare const InteractiveModes: {
@@ -45,3 +54,5 @@ export declare const TEST_TYPE_READONLY: number[];
45
54
  export declare const DISABLED_REPEAT_TYPE: number[];
46
55
  export declare const DISABLED_COST_TYPE: number[];
47
56
  export declare const IS_AI_ANALYSIS: (step: Pick<QuestionParams, 'aiType'>) => boolean;
57
+ export declare const IS_AI_FOLLOW_UP: (step: QuestionParams, interaction: InteractionMethod[]) => boolean;
58
+ export declare const MAX_RANDOM_QUESTION_NUM = 50;
@@ -51,12 +51,22 @@ export var QUESTION_TYPE_MAPPING_LABEL = (_a = {},
51
51
  _a[MEMORY_GAME] = '短期记忆-游戏题',
52
52
  _a[EMOTION_GAME] = '情绪判断-游戏题',
53
53
  _a);
54
- export var DEFAULT_GUIDE_VIDEO_URL = 'https://public-static-assets.oss-cn-beijing.aliyuncs.com/wxprogram/guide_video.mp4';
55
- export var DEFAULT_GUIDE_VIDEO_THUMB_URL = 'https://public-static-assets.oss-cn-beijing.aliyuncs.com/wxprogram/guide_video.mp4?x-oss-process=video/snapshot,t_0,f_jpg';
54
+ export var DEFAULT_GUIDE_VIDEO_URL = 'https://alicdn.fbmms.cn/CPAL19KVV5RR06ISK1L0.mp4';
55
+ export var DEFAULT_GUIDE_VIDEO_THUMB_URL = 'https://alicdn.fbmms.cn/CPAL19KVV5RR06ISK1L0.mp4?x-oss-process=video/snapshot,t_0,f_jpg';
56
56
  export var DEFAULT_GUIDE_VIDEO = [
57
57
  {
58
58
  videoUrl: DEFAULT_GUIDE_VIDEO_URL,
59
59
  frameUrl: DEFAULT_GUIDE_VIDEO_THUMB_URL,
60
+ loading: false,
61
+ },
62
+ ];
63
+ export var DEFAULT_PC_GUIDE_VIDEO_URL = 'https://alicdn.fbmms.cn/CPAL19KVV5RR06ISK1L0.mp4';
64
+ export var DEFAULT_PC_GUIDE_VIDEO_THUMB_URL = 'https://alicdn.fbmms.cn/CPAL19KVV5RR06ISK1L0.mp4?x-oss-process=video/snapshot,t_0,f_jpg';
65
+ export var DEFAULT_PC_GUIDE_VIDEO = [
66
+ {
67
+ videoUrl: DEFAULT_PC_GUIDE_VIDEO_URL,
68
+ frameUrl: DEFAULT_PC_GUIDE_VIDEO_THUMB_URL,
69
+ loading: false,
60
70
  },
61
71
  ];
62
72
  export var DEFAULT_VITUAL_HUMAN_LIST = [
@@ -85,3 +95,13 @@ export var DISABLED_REPEAT_TYPE = [2, 4, 7, 8, 9, 11, 12, 16, 17];
85
95
  export var DISABLED_COST_TYPE = [7, 9, 8, 4, 11, 2, 16];
86
96
  // 是否开启AI分析
87
97
  export var IS_AI_ANALYSIS = function (step) { return step.aiType === 2; };
98
+ // 是否可以追问
99
+ export var IS_AI_FOLLOW_UP = function (step, interaction) {
100
+ return step.aiShowType === 1 && (step.broadcastType === 2 || !IS_VIRTUAL_HUMAN(interaction));
101
+ };
102
+ var IS_VIRTUAL_HUMAN = function (interaction) {
103
+ if (interaction.length === 0)
104
+ return false;
105
+ return interaction.some(function (v) { var _a; return v.selected && (v.type === 2 || (v.type === 3 && ((_a = v.detail.interviewerShows) === null || _a === void 0 ? void 0 : _a.some(function (v) { return v.selected && v.humanType === 2; }))) || false); });
106
+ };
107
+ export var MAX_RANDOM_QUESTION_NUM = 50;
@@ -1,5 +1,10 @@
1
1
  export declare const RosePieColors: string[][];
2
2
  export declare const scoreRankIntervalColors: string[];
3
+ export declare const scoreRankIntervalProColors: string[];
4
+ export declare const scoreRankIntervalModeColors: {
5
+ pro: string[];
6
+ standard: string[];
7
+ };
3
8
  export declare const REPORT_MODULE_MAP: {
4
9
  score: {
5
10
  id: string;
@@ -10,6 +10,11 @@ export var RosePieColors = [
10
10
  ['rgba(160, 115, 255, 0.2)', 'rgba(160, 115, 255, 0.4)', 'rgba(160, 115, 255, 0.6)', 'rgba(160, 115, 255, 1)'],
11
11
  ];
12
12
  export var scoreRankIntervalColors = ['#C8E6C9', '#A5D6A7', '#81C784', '#66BB6A', '#4CAF50'];
13
+ export var scoreRankIntervalProColors = ['#F2E8D1', '#e1c492', '#cd9f55', '#AF6805', '#4CAF50'];
14
+ export var scoreRankIntervalModeColors = {
15
+ pro: scoreRankIntervalProColors,
16
+ standard: scoreRankIntervalColors,
17
+ };
13
18
  export var REPORT_MODULE_MAP = {
14
19
  score: {
15
20
  id: 'report-score',
@@ -25,3 +25,15 @@ export declare enum COMPLETED_STATUS {
25
25
  NOT_COMPLETED = 2,
26
26
  COMPLETED = 3
27
27
  }
28
+ export declare const BackgroundImage: {
29
+ pro: string;
30
+ standard: string;
31
+ };
32
+ export declare const Colors: {
33
+ pro: string;
34
+ standard: string;
35
+ };
36
+ export declare const SwitchTitle: {
37
+ standard: string;
38
+ pro: string;
39
+ };
@@ -28,3 +28,15 @@ export var COMPLETED_STATUS;
28
28
  COMPLETED_STATUS[COMPLETED_STATUS["NOT_COMPLETED"] = 2] = "NOT_COMPLETED";
29
29
  COMPLETED_STATUS[COMPLETED_STATUS["COMPLETED"] = 3] = "COMPLETED";
30
30
  })(COMPLETED_STATUS || (COMPLETED_STATUS = {}));
31
+ export var BackgroundImage = {
32
+ pro: 'https://webcdn.fbmms.cn/assets/DPXE/Oj-k12zdt9HuOrcEECDsm',
33
+ standard: 'https://webcdn.fbmms.cn/assets/S3uM/nAU25qJa6bVmZVHpcb11G',
34
+ };
35
+ export var Colors = {
36
+ pro: '#86350F',
37
+ standard: '#4caf50',
38
+ };
39
+ export var SwitchTitle = {
40
+ standard: '升级为专业版',
41
+ pro: '切换为标准版',
42
+ };
package/esm/index.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  export { default as AiQuestion } from './modules/ai-question';
2
2
  export { default as AiReport } from './modules/ai-report';
3
+ export { default as AiReportV2 } from './modules/ai-report-v2';
3
4
  export { default as AiTemplate } from './modules/ai-template';
4
5
  export { default as AiAbility } from './modules/ai-ability';
5
6
  export { default as AiAbilitySelect } from './modules/ai-ability-select';
6
7
  export { default as VideoPreview } from './components/VideoPreview';
7
8
  export { useAiQuestion } from './modules/ai-question/useAiQuestion';
8
9
  export { useAiReport } from './modules/ai-report/useAiReport';
10
+ export { useAiReportV2 } from './modules/ai-report-v2/useAiReport';
9
11
  export { avocadoVideoInterview } from './utils/config';
package/esm/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  export { default as AiQuestion } from './modules/ai-question';
2
2
  export { default as AiReport } from './modules/ai-report';
3
+ export { default as AiReportV2 } from './modules/ai-report-v2';
3
4
  export { default as AiTemplate } from './modules/ai-template';
4
5
  export { default as AiAbility } from './modules/ai-ability';
5
6
  export { default as AiAbilitySelect } from './modules/ai-ability-select';
6
7
  export { default as VideoPreview } from './components/VideoPreview';
7
8
  export { useAiQuestion } from './modules/ai-question/useAiQuestion';
8
9
  export { useAiReport } from './modules/ai-report/useAiReport';
10
+ export { useAiReportV2 } from './modules/ai-report-v2/useAiReport';
9
11
  export { avocadoVideoInterview } from './utils/config';
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ interface AbilityFormItemProps {
3
+ token?: string;
4
+ title: string;
5
+ name: string;
6
+ type: number;
7
+ items?: string[];
8
+ mode: string;
9
+ canReplace?: boolean;
10
+ maxTextLength?: number;
11
+ onChange?: (v: any) => void;
12
+ }
13
+ declare const AbilityFormItem: React.FC<AbilityFormItemProps>;
14
+ export default AbilityFormItem;
@@ -0,0 +1,145 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
21
+ var __generator = (this && this.__generator) || function (thisArg, body) {
22
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
+ function verb(n) { return function (v) { return step([n, v]); }; }
25
+ function step(op) {
26
+ if (f) throw new TypeError("Generator is already executing.");
27
+ while (_) try {
28
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
+ if (y = 0, t) op = [op[0] & 2, t.value];
30
+ switch (op[0]) {
31
+ case 0: case 1: t = op; break;
32
+ case 4: _.label++; return { value: op[1], done: false };
33
+ case 5: _.label++; y = op[1]; op = [0]; continue;
34
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
+ default:
36
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
+ if (t[2]) _.ops.pop();
41
+ _.trys.pop(); continue;
42
+ }
43
+ op = body.call(thisArg, _);
44
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
+ }
47
+ };
48
+ var __read = (this && this.__read) || function (o, n) {
49
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
50
+ if (!m) return o;
51
+ var i = m.call(o), r, ar = [], e;
52
+ try {
53
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
54
+ }
55
+ catch (error) { e = { error: error }; }
56
+ finally {
57
+ try {
58
+ if (r && !r.done && (m = i["return"])) m.call(i);
59
+ }
60
+ finally { if (e) throw e.error; }
61
+ }
62
+ return ar;
63
+ };
64
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
65
+ import { GetAiDefine } from "../../../../services/ai-ability";
66
+ import { useRequest } from 'ahooks';
67
+ import { Button, RefreshIcon, TextField, Typography, useTextField } from 'fbm-ui';
68
+ import { Box, Stack } from 'fbm-ui/lib/mui';
69
+ import { useCallback, useEffect, useState } from 'react';
70
+ var AbilityFormItem = function (_a) {
71
+ var token = _a.token, title = _a.title, name = _a.name, type = _a.type, _b = _a.items, items = _b === void 0 ? [] : _b, _c = _a.mode, mode = _c === void 0 ? 'show' : _c, _d = _a.canReplace, canReplace = _d === void 0 ? false : _d, _e = _a.maxTextLength, maxTextLength = _e === void 0 ? 100 : _e, onChange = _a.onChange;
72
+ var _f = __read(useState(items.length ? items.join('\n') : ''), 2), content = _f[0], setContent = _f[1];
73
+ var _g = __read(useState(mode), 2), internalMode = _g[0], setMode = _g[1];
74
+ var _h = useRequest(GetAiDefine, {
75
+ manual: true,
76
+ onSuccess: function (_a) {
77
+ var data = _a.data;
78
+ var _b = data.list, list = _b === void 0 ? [] : _b;
79
+ var defineRes = list[0].items;
80
+ setContent(defineRes.length ? defineRes.join('\n') : '');
81
+ nameTextField.setError();
82
+ },
83
+ onError: function (err) {
84
+ console.log(err);
85
+ nameTextField.setError("".concat(title, "\u751F\u6210\u8D85\u65F6"));
86
+ },
87
+ }), PostAiDefine = _h.run, loading = _h.loading;
88
+ var handleChange = useCallback(function (e) {
89
+ var value = e.target.value;
90
+ setContent(value);
91
+ }, []);
92
+ var handleReplace = useCallback(function () { return __awaiter(void 0, void 0, void 0, function () {
93
+ return __generator(this, function (_a) {
94
+ PostAiDefine({
95
+ queryType: type,
96
+ collectionName: name,
97
+ });
98
+ return [2 /*return*/];
99
+ });
100
+ }); }, [type, name, PostAiDefine]);
101
+ var nameTextField = useTextField({
102
+ value: content,
103
+ name: type,
104
+ required: true,
105
+ disabled: loading,
106
+ rules: [
107
+ {
108
+ required: true,
109
+ message: "".concat(title, "\u4E0D\u80FD\u4E3A\u7A7A"),
110
+ },
111
+ ],
112
+ onChange: handleChange,
113
+ max: maxTextLength,
114
+ rows: 3,
115
+ multiline: true,
116
+ sx: {
117
+ marginBottom: '43px',
118
+ },
119
+ });
120
+ useEffect(function () {
121
+ setMode(mode);
122
+ }, [mode]);
123
+ useEffect(function () {
124
+ var resItems = [4, 5].includes(type) ? content.split('\n') : [content];
125
+ onChange === null || onChange === void 0 ? void 0 : onChange({
126
+ name: title,
127
+ type: type,
128
+ items: content ? resItems : [],
129
+ });
130
+ // nameTextField.handleValidate();
131
+ // eslint-disable-next-line react-hooks/exhaustive-deps
132
+ }, [content, title, type]);
133
+ useEffect(function () {
134
+ // don't excute when edit detail
135
+ if (token)
136
+ return;
137
+ PostAiDefine({
138
+ queryType: type,
139
+ collectionName: name,
140
+ });
141
+ // eslint-disable-next-line react-hooks/exhaustive-deps
142
+ }, [type, name, token]);
143
+ return (_jsxs(Stack, { children: [_jsxs(Stack, __assign({ style: { marginBottom: '18px' }, direction: "row", alignItems: "center", justifyContent: "space-between" }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: "medium" }, { children: title })), canReplace && (_jsx(Button, __assign({ loading: loading, onClick: handleReplace, variant: "outlined", color: "inherit", size: "small", icon: _jsx(RefreshIcon, {}) }, { children: loading ? '生成中' : '换一换' })))] })), internalMode === 'edit' && (_jsx(Box, __assign({ width: 1 }, { children: _jsx(TextField, __assign({}, nameTextField)) }))), internalMode === 'show' && (_jsx(Box, __assign({ style: { marginTop: '-8px', marginBottom: '32px' } }, { children: _jsx(Typography, __assign({ variant: "body2", sx: { whiteSpace: 'pre-wrap', color: 'RGBA(0, 0, 0, 0.56)' } }, { children: content })) })))] }));
144
+ };
145
+ export default AbilityFormItem;
@@ -8,7 +8,9 @@ interface AbilityFormItemProps {
8
8
  mode: string;
9
9
  canReplace?: boolean;
10
10
  maxTextLength?: number;
11
+ index: number;
11
12
  onChange?: (v: any) => void;
13
+ item: any;
12
14
  }
13
15
  declare const AbilityFormItem: React.FC<AbilityFormItemProps>;
14
16
  export default AbilityFormItem;
@@ -61,15 +61,16 @@ var __read = (this && this.__read) || function (o, n) {
61
61
  }
62
62
  return ar;
63
63
  };
64
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
64
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
65
65
  import { GetAiDefine } from "../../../../services/ai-ability";
66
66
  import { useRequest } from 'ahooks';
67
- import { Button, RefreshIcon, TextField, Typography, useTextField } from 'fbm-ui';
67
+ import { AddIcon, Button, CloseIcon, FormItem, IconButton, RefreshIcon, Typography, useTextField } from 'fbm-ui';
68
68
  import { Box, Stack } from 'fbm-ui/lib/mui';
69
+ import { FieldArray } from 'formik';
69
70
  import { useCallback, useEffect, useState } from 'react';
70
71
  var AbilityFormItem = function (_a) {
71
- var token = _a.token, title = _a.title, name = _a.name, type = _a.type, _b = _a.items, items = _b === void 0 ? [] : _b, _c = _a.mode, mode = _c === void 0 ? 'show' : _c, _d = _a.canReplace, canReplace = _d === void 0 ? false : _d, _e = _a.maxTextLength, maxTextLength = _e === void 0 ? 100 : _e, onChange = _a.onChange;
72
- var _f = __read(useState(items.length ? items.join('\n') : ''), 2), content = _f[0], setContent = _f[1];
72
+ var token = _a.token, title = _a.title, name = _a.name, type = _a.type, index = _a.index, _b = _a.items, items = _b === void 0 ? [] : _b, _c = _a.mode, mode = _c === void 0 ? 'show' : _c, _d = _a.canReplace, canReplace = _d === void 0 ? false : _d, _e = _a.maxTextLength, maxTextLength = _e === void 0 ? 100 : _e, item = _a.item, onChange = _a.onChange;
73
+ var _f = __read(useState(''), 2), content = _f[0], setContent = _f[1];
73
74
  var _g = __read(useState(mode), 2), internalMode = _g[0], setMode = _g[1];
74
75
  var _h = useRequest(GetAiDefine, {
75
76
  manual: true,
@@ -125,7 +126,7 @@ var AbilityFormItem = function (_a) {
125
126
  onChange === null || onChange === void 0 ? void 0 : onChange({
126
127
  name: title,
127
128
  type: type,
128
- items: content ? resItems : [],
129
+ items: content ? resItems : [''],
129
130
  });
130
131
  // nameTextField.handleValidate();
131
132
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -140,6 +141,15 @@ var AbilityFormItem = function (_a) {
140
141
  });
141
142
  // eslint-disable-next-line react-hooks/exhaustive-deps
142
143
  }, [type, name, token]);
143
- return (_jsxs(Stack, { children: [_jsxs(Stack, __assign({ style: { marginBottom: '18px' }, direction: "row", alignItems: "center", justifyContent: "space-between" }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: "medium" }, { children: title })), canReplace && (_jsx(Button, __assign({ loading: loading, onClick: handleReplace, variant: "outlined", color: "inherit", size: "small", icon: _jsx(RefreshIcon, {}) }, { children: loading ? '生成中' : '换一换' })))] })), internalMode === 'edit' && (_jsx(Box, __assign({ width: 1 }, { children: _jsx(TextField, __assign({}, nameTextField)) }))), internalMode === 'show' && (_jsx(Box, __assign({ style: { marginTop: '-8px', marginBottom: '32px' } }, { children: _jsx(Typography, __assign({ variant: "body2", sx: { whiteSpace: 'pre-wrap', color: 'RGBA(0, 0, 0, 0.56)' } }, { children: content })) })))] }));
144
+ // useEffect(() => {
145
+ // if (item?.items?.length) {
146
+ // setContent(item.items.join('\n'));
147
+ // }
148
+ // }, [item]);
149
+ return (_jsxs(Stack, { children: [_jsxs(Stack, __assign({ style: { marginBottom: '18px' }, direction: "row", alignItems: "center", justifyContent: "space-between" }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: "medium" }, { children: title })), canReplace && (_jsx(Button, __assign({ loading: loading, onClick: handleReplace, variant: "outlined", color: "inherit", size: "small", icon: _jsx(RefreshIcon, {}) }, { children: loading ? '生成中' : '换一换' })))] })), internalMode === 'edit' && (_jsx(Box, __assign({ width: 1 }, { children: _jsx(FieldArray, __assign({ name: "workPlaceItems[".concat(index, "].items") }, { children: function (_a) {
150
+ var _b, _c;
151
+ var pushItem = _a.push, removeItem = _a.remove;
152
+ return (_jsxs(Stack, __assign({ mb: 5 }, { children: [(_b = item === null || item === void 0 ? void 0 : item.items) === null || _b === void 0 ? void 0 : _b.map(function (_, itemIndex) { return (_jsx(Stack, __assign({ direction: "row", alignItems: "center", spacing: 1 }, { children: [4, 5].includes(item === null || item === void 0 ? void 0 : item.type) ? (_jsxs(_Fragment, { children: [_jsx(FormItem, { name: "workPlaceItems[".concat(index, "].items[").concat(itemIndex, "]"), sx: { width: 512 }, max: maxTextLength }), _jsx(IconButton, __assign({ onClick: function () { return removeItem(itemIndex); }, sx: { alignSelf: 'flex-start', mt: 0.5 } }, { children: _jsx(CloseIcon, {}) }))] })) : (_jsx(FormItem, { multiline: true, rows: 3, max: maxTextLength, name: "workPlaceItems[".concat(index, "].items[").concat(itemIndex, "]"), sx: { width: '100%' } })) }), itemIndex)); }), [4, 5].includes(item === null || item === void 0 ? void 0 : item.type) && (_jsx(Button, __assign({ sx: { alignSelf: 'flex-start', display: "".concat(item.type === 5 && ((_c = item === null || item === void 0 ? void 0 : item.items) === null || _c === void 0 ? void 0 : _c.length) >= 3 ? 'none' : 'flex') }, startIcon: _jsx(AddIcon, {}), type: "button", onClick: function () { return pushItem(''); }, variant: "outlined", color: "inherit" }, { children: { 5: '评分关键点', 4: '面试题目' }[item.type] })))] })));
153
+ } })) }))), internalMode === 'show' && (_jsx(Box, __assign({ style: { marginTop: '-8px', marginBottom: '32px' } }, { children: _jsx(Typography, __assign({ variant: "body2", sx: { whiteSpace: 'pre-wrap', color: 'RGBA(0, 0, 0, 0.56)' } }, { children: items })) })))] }));
144
154
  };
145
155
  export default AbilityFormItem;