eli-video-interview 1.2.28 → 1.2.29-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (563) hide show
  1. package/package.json +7 -1
  2. package/esm/assets/icons/AI.svg +0 -1
  3. package/esm/assets/icons/free.svg +0 -1
  4. package/esm/assets/icons/video.svg +0 -1
  5. package/esm/components/AiHeaderTitle/index.d.ts +0 -4
  6. package/esm/components/AiHeaderTitle/index.js +0 -19
  7. package/esm/components/AiHeaderTitle/interface.d.ts +0 -4
  8. package/esm/components/AiHeaderTitle/interface.js +0 -1
  9. package/esm/components/BigBallSvg/index.d.ts +0 -3
  10. package/esm/components/BigBallSvg/index.js +0 -17
  11. package/esm/components/BigBallSvg/styled.d.ts +0 -3
  12. package/esm/components/BigBallSvg/styled.js +0 -28
  13. package/esm/components/Charts/Chart.d.ts +0 -4
  14. package/esm/components/Charts/Chart.js +0 -32
  15. package/esm/components/Charts/ReportPie.d.ts +0 -4
  16. package/esm/components/Charts/ReportPie.js +0 -142
  17. package/esm/components/Charts/TemplatePie.d.ts +0 -4
  18. package/esm/components/Charts/TemplatePie.js +0 -81
  19. package/esm/components/Charts/const.d.ts +0 -17
  20. package/esm/components/Charts/const.js +0 -17
  21. package/esm/components/Charts/interface.d.ts +0 -18
  22. package/esm/components/Charts/interface.js +0 -1
  23. package/esm/components/RootProvider/index.d.ts +0 -3
  24. package/esm/components/RootProvider/index.js +0 -27
  25. package/esm/components/ScoreBigBall/index.d.ts +0 -4
  26. package/esm/components/ScoreBigBall/index.js +0 -26
  27. package/esm/components/ScoreBigBall/interface.d.ts +0 -7
  28. package/esm/components/ScoreBigBall/interface.js +0 -1
  29. package/esm/components/ScoreBigBall/styled.d.ts +0 -4
  30. package/esm/components/ScoreBigBall/styled.js +0 -12
  31. package/esm/components/ScrollDialogContent/index.d.ts +0 -5
  32. package/esm/components/ScrollDialogContent/index.js +0 -6
  33. package/esm/components/SvgIcon/index.d.ts +0 -4
  34. package/esm/components/SvgIcon/index.js +0 -32
  35. package/esm/components/SvgIcon/interface.d.ts +0 -4
  36. package/esm/components/SvgIcon/interface.js +0 -1
  37. package/esm/components/VideoPreview/index.d.ts +0 -4
  38. package/esm/components/VideoPreview/index.js +0 -19
  39. package/esm/components/VideoPreview/interface.d.ts +0 -15
  40. package/esm/components/VideoPreview/interface.js +0 -1
  41. package/esm/components/VideoPreview/styled.d.ts +0 -10
  42. package/esm/components/VideoPreview/styled.js +0 -24
  43. package/esm/constants/ai-question.d.ts +0 -27
  44. package/esm/constants/ai-question.js +0 -39
  45. package/esm/constants/ai-report.d.ts +0 -29
  46. package/esm/constants/ai-report.js +0 -39
  47. package/esm/enum/ai-question.d.ts +0 -38
  48. package/esm/enum/ai-question.js +0 -42
  49. package/esm/enum/ai-report.d.ts +0 -27
  50. package/esm/enum/ai-report.js +0 -30
  51. package/esm/index.d.ts +0 -8
  52. package/esm/index.js +0 -8
  53. package/esm/modules/ai-ability/Root.d.ts +0 -3
  54. package/esm/modules/ai-ability/Root.js +0 -135
  55. package/esm/modules/ai-ability/components/UpdateAbility/index.d.ts +0 -4
  56. package/esm/modules/ai-ability/components/UpdateAbility/index.js +0 -115
  57. package/esm/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
  58. package/esm/modules/ai-ability/components/UpdateAbility/interface.js +0 -1
  59. package/esm/modules/ai-ability/index.d.ts +0 -2
  60. package/esm/modules/ai-ability/index.js +0 -7
  61. package/esm/modules/ai-ability/interface.d.ts +0 -16
  62. package/esm/modules/ai-ability/interface.js +0 -1
  63. package/esm/modules/ai-ability/styled.d.ts +0 -4
  64. package/esm/modules/ai-ability/styled.js +0 -6
  65. package/esm/modules/ai-question/Root.d.ts +0 -4
  66. package/esm/modules/ai-question/Root.js +0 -144
  67. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +0 -4
  68. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +0 -44
  69. package/esm/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +0 -4
  70. package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +0 -54
  71. package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +0 -4
  72. package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +0 -62
  73. package/esm/modules/ai-question/components/AiAnalysis/const.d.ts +0 -5
  74. package/esm/modules/ai-question/components/AiAnalysis/const.js +0 -11
  75. package/esm/modules/ai-question/components/AiAnalysis/index.d.ts +0 -3
  76. package/esm/modules/ai-question/components/AiAnalysis/index.js +0 -27
  77. package/esm/modules/ai-question/components/AiAnalysis/interface.d.ts +0 -23
  78. package/esm/modules/ai-question/components/AiAnalysis/interface.js +0 -1
  79. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +0 -25
  80. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +0 -30
  81. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +0 -4
  82. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +0 -112
  83. package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +0 -33
  84. package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.js +0 -1
  85. package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +0 -4
  86. package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +0 -5
  87. package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +0 -9
  88. package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.js +0 -29
  89. package/esm/modules/ai-question/components/BaseAccordion/const.d.ts +0 -1
  90. package/esm/modules/ai-question/components/BaseAccordion/const.js +0 -1
  91. package/esm/modules/ai-question/components/BaseAccordion/index.d.ts +0 -4
  92. package/esm/modules/ai-question/components/BaseAccordion/index.js +0 -98
  93. package/esm/modules/ai-question/components/BaseAccordion/interface.d.ts +0 -9
  94. package/esm/modules/ai-question/components/BaseAccordion/interface.js +0 -1
  95. package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +0 -10
  96. package/esm/modules/ai-question/components/BaseAccordion/styled.js +0 -76
  97. package/esm/modules/ai-question/components/BootVideo/index.d.ts +0 -4
  98. package/esm/modules/ai-question/components/BootVideo/index.js +0 -113
  99. package/esm/modules/ai-question/components/BootVideo/interface.d.ts +0 -8
  100. package/esm/modules/ai-question/components/BootVideo/interface.js +0 -1
  101. package/esm/modules/ai-question/components/BootVideo/styled.d.ts +0 -13
  102. package/esm/modules/ai-question/components/BootVideo/styled.js +0 -48
  103. package/esm/modules/ai-question/components/QuestionModel/Header.d.ts +0 -3
  104. package/esm/modules/ai-question/components/QuestionModel/Header.js +0 -23
  105. package/esm/modules/ai-question/components/QuestionModel/Item.d.ts +0 -4
  106. package/esm/modules/ai-question/components/QuestionModel/Item.js +0 -72
  107. package/esm/modules/ai-question/components/QuestionModel/List.d.ts +0 -3
  108. package/esm/modules/ai-question/components/QuestionModel/List.js +0 -47
  109. package/esm/modules/ai-question/components/QuestionModel/Skeleton.d.ts +0 -3
  110. package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +0 -17
  111. package/esm/modules/ai-question/components/QuestionModel/index.d.ts +0 -3
  112. package/esm/modules/ai-question/components/QuestionModel/index.js +0 -71
  113. package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +0 -19
  114. package/esm/modules/ai-question/components/QuestionModel/interface.js +0 -1
  115. package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +0 -4
  116. package/esm/modules/ai-question/components/QuestionModel/styled.js +0 -8
  117. package/esm/modules/ai-question/components/QuestionPreview/index.d.ts +0 -3
  118. package/esm/modules/ai-question/components/QuestionPreview/index.js +0 -31
  119. package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +0 -11
  120. package/esm/modules/ai-question/components/QuestionPreview/styled.js +0 -11
  121. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +0 -3
  122. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +0 -50
  123. package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +0 -3
  124. package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +0 -17
  125. package/esm/modules/ai-question/components/QuestionTemplate/index.d.ts +0 -3
  126. package/esm/modules/ai-question/components/QuestionTemplate/index.js +0 -30
  127. package/esm/modules/ai-question/components/QuestionTemplate/interface.d.ts +0 -43
  128. package/esm/modules/ai-question/components/QuestionTemplate/interface.js +0 -1
  129. package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +0 -4
  130. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +0 -110
  131. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +0 -3
  132. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +0 -64
  133. package/esm/modules/ai-question/components/QuestionUpdate/const.d.ts +0 -14
  134. package/esm/modules/ai-question/components/QuestionUpdate/const.js +0 -54
  135. package/esm/modules/ai-question/components/QuestionUpdate/index.d.ts +0 -3
  136. package/esm/modules/ai-question/components/QuestionUpdate/index.js +0 -257
  137. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +0 -63
  138. package/esm/modules/ai-question/components/QuestionUpdate/interface.js +0 -1
  139. package/esm/modules/ai-question/index.d.ts +0 -4
  140. package/esm/modules/ai-question/index.js +0 -20
  141. package/esm/modules/ai-question/interface.d.ts +0 -78
  142. package/esm/modules/ai-question/interface.js +0 -1
  143. package/esm/modules/ai-question/useAiQuestion.d.ts +0 -17
  144. package/esm/modules/ai-question/useAiQuestion.js +0 -20
  145. package/esm/modules/ai-report/Root.d.ts +0 -4
  146. package/esm/modules/ai-report/Root.js +0 -77
  147. package/esm/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +0 -13
  148. package/esm/modules/ai-report/components/AIEvaluate/Evaluate.js +0 -60
  149. package/esm/modules/ai-report/components/AIEvaluate/Graph.d.ts +0 -13
  150. package/esm/modules/ai-report/components/AIEvaluate/Graph.js +0 -225
  151. package/esm/modules/ai-report/components/AIEvaluate/index.d.ts +0 -2
  152. package/esm/modules/ai-report/components/AIEvaluate/index.js +0 -40
  153. package/esm/modules/ai-report/components/MenuAnchor/index.d.ts +0 -4
  154. package/esm/modules/ai-report/components/MenuAnchor/index.js +0 -115
  155. package/esm/modules/ai-report/components/NotFinish/index.d.ts +0 -3
  156. package/esm/modules/ai-report/components/NotFinish/index.js +0 -25
  157. package/esm/modules/ai-report/components/RankingRange/Item.d.ts +0 -4
  158. package/esm/modules/ai-report/components/RankingRange/Item.js +0 -30
  159. package/esm/modules/ai-report/components/RankingRange/index.d.ts +0 -4
  160. package/esm/modules/ai-report/components/RankingRange/index.js +0 -171
  161. package/esm/modules/ai-report/components/RankingRange/interface.d.ts +0 -26
  162. package/esm/modules/ai-report/components/RankingRange/interface.js +0 -1
  163. package/esm/modules/ai-report/components/RankingRange/styled.d.ts +0 -7
  164. package/esm/modules/ai-report/components/RankingRange/styled.js +0 -11
  165. package/esm/modules/ai-report/components/ScoreReport/Bar.d.ts +0 -3
  166. package/esm/modules/ai-report/components/ScoreReport/Bar.js +0 -50
  167. package/esm/modules/ai-report/components/ScoreReport/Failed.d.ts +0 -4
  168. package/esm/modules/ai-report/components/ScoreReport/Failed.js +0 -25
  169. package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +0 -3
  170. package/esm/modules/ai-report/components/ScoreReport/Report.js +0 -35
  171. package/esm/modules/ai-report/components/ScoreReport/Score.d.ts +0 -4
  172. package/esm/modules/ai-report/components/ScoreReport/Score.js +0 -34
  173. package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +0 -4
  174. package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +0 -33
  175. package/esm/modules/ai-report/components/ScoreReport/index.d.ts +0 -4
  176. package/esm/modules/ai-report/components/ScoreReport/index.js +0 -41
  177. package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +0 -13
  178. package/esm/modules/ai-report/components/ScoreReport/interface.js +0 -1
  179. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +0 -22
  180. package/esm/modules/ai-report/components/ScoreReport/styled.js +0 -23
  181. package/esm/modules/ai-report/components/Suggestion/Suggestion.d.ts +0 -4
  182. package/esm/modules/ai-report/components/Suggestion/Suggestion.js +0 -29
  183. package/esm/modules/ai-report/components/Suggestion/index.d.ts +0 -2
  184. package/esm/modules/ai-report/components/Suggestion/index.js +0 -27
  185. package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +0 -4
  186. package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +0 -40
  187. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +0 -4
  188. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +0 -91
  189. package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +0 -4
  190. package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +0 -30
  191. package/esm/modules/ai-report/components/VideoQuestion/index.d.ts +0 -3
  192. package/esm/modules/ai-report/components/VideoQuestion/index.js +0 -22
  193. package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +0 -14
  194. package/esm/modules/ai-report/components/VideoQuestion/interface.js +0 -1
  195. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +0 -71
  196. package/esm/modules/ai-report/components/VideoQuestion/styled.js +0 -91
  197. package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +0 -4
  198. package/esm/modules/ai-report/components/WorkPlaces/ScoreSlider.js +0 -24
  199. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +0 -11
  200. package/esm/modules/ai-report/components/WorkPlaces/WorkPlace.js +0 -55
  201. package/esm/modules/ai-report/components/WorkPlaces/index.d.ts +0 -2
  202. package/esm/modules/ai-report/components/WorkPlaces/index.js +0 -67
  203. package/esm/modules/ai-report/components/WorkPlaces/interface.d.ts +0 -7
  204. package/esm/modules/ai-report/components/WorkPlaces/interface.js +0 -1
  205. package/esm/modules/ai-report/components/WorkPlaces/styled.d.ts +0 -62
  206. package/esm/modules/ai-report/components/WorkPlaces/styled.js +0 -27
  207. package/esm/modules/ai-report/index.d.ts +0 -4
  208. package/esm/modules/ai-report/index.js +0 -21
  209. package/esm/modules/ai-report/interface.d.ts +0 -187
  210. package/esm/modules/ai-report/interface.js +0 -1
  211. package/esm/modules/ai-report/useAiReport.d.ts +0 -28
  212. package/esm/modules/ai-report/useAiReport.js +0 -16
  213. package/esm/modules/ai-report/utils.d.ts +0 -1
  214. package/esm/modules/ai-report/utils.js +0 -1
  215. package/esm/modules/ai-template/Root.d.ts +0 -4
  216. package/esm/modules/ai-template/Root.js +0 -48
  217. package/esm/modules/ai-template/components/CapabilityModel/const.d.ts +0 -47
  218. package/esm/modules/ai-template/components/CapabilityModel/const.js +0 -56
  219. package/esm/modules/ai-template/components/CapabilityModel/index.d.ts +0 -3
  220. package/esm/modules/ai-template/components/CapabilityModel/index.js +0 -27
  221. package/esm/modules/ai-template/components/QuestionList/Item.d.ts +0 -4
  222. package/esm/modules/ai-template/components/QuestionList/Item.js +0 -24
  223. package/esm/modules/ai-template/components/QuestionList/index.d.ts +0 -3
  224. package/esm/modules/ai-template/components/QuestionList/index.js +0 -20
  225. package/esm/modules/ai-template/components/QuestionList/interface.d.ts +0 -5
  226. package/esm/modules/ai-template/components/QuestionList/interface.js +0 -1
  227. package/esm/modules/ai-template/components/TemplateHeader/index.d.ts +0 -4
  228. package/esm/modules/ai-template/components/TemplateHeader/index.js +0 -18
  229. package/esm/modules/ai-template/components/TemplateHeader/interface.d.ts +0 -6
  230. package/esm/modules/ai-template/components/TemplateHeader/interface.js +0 -1
  231. package/esm/modules/ai-template/components/TemplateList/index.d.ts +0 -3
  232. package/esm/modules/ai-template/components/TemplateList/index.js +0 -96
  233. package/esm/modules/ai-template/components/TemplateList/interface.d.ts +0 -24
  234. package/esm/modules/ai-template/components/TemplateList/interface.js +0 -1
  235. package/esm/modules/ai-template/components/TemplateList/styled.d.ts +0 -37
  236. package/esm/modules/ai-template/components/TemplateList/styled.js +0 -77
  237. package/esm/modules/ai-template/components/TemplateMenu/index.d.ts +0 -3
  238. package/esm/modules/ai-template/components/TemplateMenu/index.js +0 -57
  239. package/esm/modules/ai-template/components/TemplateMenu/interface.d.ts +0 -12
  240. package/esm/modules/ai-template/components/TemplateMenu/interface.js +0 -1
  241. package/esm/modules/ai-template/components/TemplateMenu/styled.d.ts +0 -29
  242. package/esm/modules/ai-template/components/TemplateMenu/styled.js +0 -16
  243. package/esm/modules/ai-template/index.d.ts +0 -4
  244. package/esm/modules/ai-template/index.js +0 -20
  245. package/esm/modules/ai-template/interface.d.ts +0 -24
  246. package/esm/modules/ai-template/interface.js +0 -1
  247. package/esm/services/ai-ability.d.ts +0 -14
  248. package/esm/services/ai-ability.js +0 -7
  249. package/esm/services/ai-question.d.ts +0 -12
  250. package/esm/services/ai-question.js +0 -15
  251. package/esm/services/ai-report.d.ts +0 -14
  252. package/esm/services/ai-report.js +0 -13
  253. package/esm/services/ai-template.d.ts +0 -4
  254. package/esm/services/ai-template.js +0 -9
  255. package/esm/store/ai-ability/question-ability-store.d.ts +0 -12
  256. package/esm/store/ai-ability/question-ability-store.js +0 -10
  257. package/esm/store/ai-question/ai-analysis-store.d.ts +0 -33
  258. package/esm/store/ai-question/ai-analysis-store.js +0 -158
  259. package/esm/store/ai-question/boot-video-store.d.ts +0 -17
  260. package/esm/store/ai-question/boot-video-store.js +0 -21
  261. package/esm/store/ai-question/global-store.d.ts +0 -35
  262. package/esm/store/ai-question/global-store.js +0 -22
  263. package/esm/store/ai-question/question-model-store.d.ts +0 -24
  264. package/esm/store/ai-question/question-model-store.js +0 -136
  265. package/esm/store/ai-question/question-preview-store.d.ts +0 -14
  266. package/esm/store/ai-question/question-preview-store.js +0 -21
  267. package/esm/store/ai-question/question-template-store.d.ts +0 -12
  268. package/esm/store/ai-question/question-template-store.js +0 -10
  269. package/esm/store/ai-question/question-update-store.d.ts +0 -11
  270. package/esm/store/ai-question/question-update-store.js +0 -33
  271. package/esm/store/ai-report/global-store.d.ts +0 -81
  272. package/esm/store/ai-report/global-store.js +0 -30
  273. package/esm/store/ai-template/global-store.d.ts +0 -35
  274. package/esm/store/ai-template/global-store.js +0 -26
  275. package/esm/utils/config.d.ts +0 -13
  276. package/esm/utils/config.js +0 -17
  277. package/esm/utils/interceptor.d.ts +0 -2
  278. package/esm/utils/interceptor.js +0 -127
  279. package/esm/utils/request.d.ts +0 -3
  280. package/esm/utils/request.js +0 -14
  281. package/esm/utils/utils.d.ts +0 -58
  282. package/esm/utils/utils.js +0 -115
  283. package/lib/assets/icons/AI.svg +0 -1
  284. package/lib/assets/icons/free.svg +0 -1
  285. package/lib/assets/icons/video.svg +0 -1
  286. package/lib/components/AiHeaderTitle/index.d.ts +0 -4
  287. package/lib/components/AiHeaderTitle/index.js +0 -24
  288. package/lib/components/AiHeaderTitle/interface.d.ts +0 -4
  289. package/lib/components/AiHeaderTitle/interface.js +0 -2
  290. package/lib/components/BigBallSvg/index.d.ts +0 -3
  291. package/lib/components/BigBallSvg/index.js +0 -19
  292. package/lib/components/BigBallSvg/styled.d.ts +0 -3
  293. package/lib/components/BigBallSvg/styled.js +0 -31
  294. package/lib/components/Charts/Chart.d.ts +0 -4
  295. package/lib/components/Charts/Chart.js +0 -57
  296. package/lib/components/Charts/ReportPie.d.ts +0 -4
  297. package/lib/components/Charts/ReportPie.js +0 -147
  298. package/lib/components/Charts/TemplatePie.d.ts +0 -4
  299. package/lib/components/Charts/TemplatePie.js +0 -86
  300. package/lib/components/Charts/const.d.ts +0 -17
  301. package/lib/components/Charts/const.js +0 -20
  302. package/lib/components/Charts/interface.d.ts +0 -18
  303. package/lib/components/Charts/interface.js +0 -2
  304. package/lib/components/RootProvider/index.d.ts +0 -3
  305. package/lib/components/RootProvider/index.js +0 -29
  306. package/lib/components/ScoreBigBall/index.d.ts +0 -4
  307. package/lib/components/ScoreBigBall/index.js +0 -31
  308. package/lib/components/ScoreBigBall/interface.d.ts +0 -7
  309. package/lib/components/ScoreBigBall/interface.js +0 -2
  310. package/lib/components/ScoreBigBall/styled.d.ts +0 -4
  311. package/lib/components/ScoreBigBall/styled.js +0 -15
  312. package/lib/components/ScrollDialogContent/index.d.ts +0 -5
  313. package/lib/components/ScrollDialogContent/index.js +0 -8
  314. package/lib/components/SvgIcon/index.d.ts +0 -4
  315. package/lib/components/SvgIcon/index.js +0 -57
  316. package/lib/components/SvgIcon/interface.d.ts +0 -4
  317. package/lib/components/SvgIcon/interface.js +0 -2
  318. package/lib/components/VideoPreview/index.d.ts +0 -4
  319. package/lib/components/VideoPreview/index.js +0 -21
  320. package/lib/components/VideoPreview/interface.d.ts +0 -15
  321. package/lib/components/VideoPreview/interface.js +0 -2
  322. package/lib/components/VideoPreview/styled.d.ts +0 -10
  323. package/lib/components/VideoPreview/styled.js +0 -27
  324. package/lib/constants/ai-question.d.ts +0 -27
  325. package/lib/constants/ai-question.js +0 -43
  326. package/lib/constants/ai-report.d.ts +0 -29
  327. package/lib/constants/ai-report.js +0 -42
  328. package/lib/enum/ai-question.d.ts +0 -38
  329. package/lib/enum/ai-question.js +0 -45
  330. package/lib/enum/ai-report.d.ts +0 -27
  331. package/lib/enum/ai-report.js +0 -33
  332. package/lib/index.d.ts +0 -8
  333. package/lib/index.js +0 -22
  334. package/lib/modules/ai-ability/Root.d.ts +0 -3
  335. package/lib/modules/ai-ability/Root.js +0 -140
  336. package/lib/modules/ai-ability/components/UpdateAbility/index.d.ts +0 -4
  337. package/lib/modules/ai-ability/components/UpdateAbility/index.js +0 -117
  338. package/lib/modules/ai-ability/components/UpdateAbility/interface.d.ts +0 -7
  339. package/lib/modules/ai-ability/components/UpdateAbility/interface.js +0 -2
  340. package/lib/modules/ai-ability/index.d.ts +0 -2
  341. package/lib/modules/ai-ability/index.js +0 -12
  342. package/lib/modules/ai-ability/interface.d.ts +0 -16
  343. package/lib/modules/ai-ability/interface.js +0 -2
  344. package/lib/modules/ai-ability/styled.d.ts +0 -4
  345. package/lib/modules/ai-ability/styled.js +0 -9
  346. package/lib/modules/ai-question/Root.d.ts +0 -4
  347. package/lib/modules/ai-question/Root.js +0 -149
  348. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +0 -4
  349. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +0 -49
  350. package/lib/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +0 -4
  351. package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +0 -59
  352. package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +0 -4
  353. package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +0 -64
  354. package/lib/modules/ai-question/components/AiAnalysis/const.d.ts +0 -5
  355. package/lib/modules/ai-question/components/AiAnalysis/const.js +0 -14
  356. package/lib/modules/ai-question/components/AiAnalysis/index.d.ts +0 -3
  357. package/lib/modules/ai-question/components/AiAnalysis/index.js +0 -32
  358. package/lib/modules/ai-question/components/AiAnalysis/interface.d.ts +0 -23
  359. package/lib/modules/ai-question/components/AiAnalysis/interface.js +0 -2
  360. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +0 -25
  361. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +0 -33
  362. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +0 -4
  363. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +0 -117
  364. package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +0 -33
  365. package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.js +0 -2
  366. package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +0 -4
  367. package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +0 -8
  368. package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +0 -9
  369. package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.js +0 -33
  370. package/lib/modules/ai-question/components/BaseAccordion/const.d.ts +0 -1
  371. package/lib/modules/ai-question/components/BaseAccordion/const.js +0 -4
  372. package/lib/modules/ai-question/components/BaseAccordion/index.d.ts +0 -4
  373. package/lib/modules/ai-question/components/BaseAccordion/index.js +0 -100
  374. package/lib/modules/ai-question/components/BaseAccordion/interface.d.ts +0 -9
  375. package/lib/modules/ai-question/components/BaseAccordion/interface.js +0 -2
  376. package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +0 -10
  377. package/lib/modules/ai-question/components/BaseAccordion/styled.js +0 -79
  378. package/lib/modules/ai-question/components/BootVideo/index.d.ts +0 -4
  379. package/lib/modules/ai-question/components/BootVideo/index.js +0 -118
  380. package/lib/modules/ai-question/components/BootVideo/interface.d.ts +0 -8
  381. package/lib/modules/ai-question/components/BootVideo/interface.js +0 -2
  382. package/lib/modules/ai-question/components/BootVideo/styled.d.ts +0 -13
  383. package/lib/modules/ai-question/components/BootVideo/styled.js +0 -51
  384. package/lib/modules/ai-question/components/QuestionModel/Header.d.ts +0 -3
  385. package/lib/modules/ai-question/components/QuestionModel/Header.js +0 -28
  386. package/lib/modules/ai-question/components/QuestionModel/Item.d.ts +0 -4
  387. package/lib/modules/ai-question/components/QuestionModel/Item.js +0 -74
  388. package/lib/modules/ai-question/components/QuestionModel/List.d.ts +0 -3
  389. package/lib/modules/ai-question/components/QuestionModel/List.js +0 -52
  390. package/lib/modules/ai-question/components/QuestionModel/Skeleton.d.ts +0 -3
  391. package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +0 -19
  392. package/lib/modules/ai-question/components/QuestionModel/index.d.ts +0 -3
  393. package/lib/modules/ai-question/components/QuestionModel/index.js +0 -76
  394. package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +0 -19
  395. package/lib/modules/ai-question/components/QuestionModel/interface.js +0 -2
  396. package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +0 -4
  397. package/lib/modules/ai-question/components/QuestionModel/styled.js +0 -11
  398. package/lib/modules/ai-question/components/QuestionPreview/index.d.ts +0 -3
  399. package/lib/modules/ai-question/components/QuestionPreview/index.js +0 -36
  400. package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +0 -11
  401. package/lib/modules/ai-question/components/QuestionPreview/styled.js +0 -14
  402. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +0 -3
  403. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +0 -55
  404. package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +0 -3
  405. package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +0 -19
  406. package/lib/modules/ai-question/components/QuestionTemplate/index.d.ts +0 -3
  407. package/lib/modules/ai-question/components/QuestionTemplate/index.js +0 -35
  408. package/lib/modules/ai-question/components/QuestionTemplate/interface.d.ts +0 -43
  409. package/lib/modules/ai-question/components/QuestionTemplate/interface.js +0 -2
  410. package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +0 -4
  411. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +0 -115
  412. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +0 -3
  413. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +0 -66
  414. package/lib/modules/ai-question/components/QuestionUpdate/const.d.ts +0 -14
  415. package/lib/modules/ai-question/components/QuestionUpdate/const.js +0 -57
  416. package/lib/modules/ai-question/components/QuestionUpdate/index.d.ts +0 -3
  417. package/lib/modules/ai-question/components/QuestionUpdate/index.js +0 -262
  418. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +0 -63
  419. package/lib/modules/ai-question/components/QuestionUpdate/interface.js +0 -2
  420. package/lib/modules/ai-question/index.d.ts +0 -4
  421. package/lib/modules/ai-question/index.js +0 -25
  422. package/lib/modules/ai-question/interface.d.ts +0 -78
  423. package/lib/modules/ai-question/interface.js +0 -2
  424. package/lib/modules/ai-question/useAiQuestion.d.ts +0 -17
  425. package/lib/modules/ai-question/useAiQuestion.js +0 -24
  426. package/lib/modules/ai-report/Root.d.ts +0 -4
  427. package/lib/modules/ai-report/Root.js +0 -82
  428. package/lib/modules/ai-report/components/AIEvaluate/Evaluate.d.ts +0 -13
  429. package/lib/modules/ai-report/components/AIEvaluate/Evaluate.js +0 -62
  430. package/lib/modules/ai-report/components/AIEvaluate/Graph.d.ts +0 -13
  431. package/lib/modules/ai-report/components/AIEvaluate/Graph.js +0 -227
  432. package/lib/modules/ai-report/components/AIEvaluate/index.d.ts +0 -2
  433. package/lib/modules/ai-report/components/AIEvaluate/index.js +0 -45
  434. package/lib/modules/ai-report/components/MenuAnchor/index.d.ts +0 -4
  435. package/lib/modules/ai-report/components/MenuAnchor/index.js +0 -117
  436. package/lib/modules/ai-report/components/NotFinish/index.d.ts +0 -3
  437. package/lib/modules/ai-report/components/NotFinish/index.js +0 -27
  438. package/lib/modules/ai-report/components/RankingRange/Item.d.ts +0 -4
  439. package/lib/modules/ai-report/components/RankingRange/Item.js +0 -32
  440. package/lib/modules/ai-report/components/RankingRange/index.d.ts +0 -4
  441. package/lib/modules/ai-report/components/RankingRange/index.js +0 -176
  442. package/lib/modules/ai-report/components/RankingRange/interface.d.ts +0 -26
  443. package/lib/modules/ai-report/components/RankingRange/interface.js +0 -2
  444. package/lib/modules/ai-report/components/RankingRange/styled.d.ts +0 -7
  445. package/lib/modules/ai-report/components/RankingRange/styled.js +0 -14
  446. package/lib/modules/ai-report/components/ScoreReport/Bar.d.ts +0 -3
  447. package/lib/modules/ai-report/components/ScoreReport/Bar.js +0 -52
  448. package/lib/modules/ai-report/components/ScoreReport/Failed.d.ts +0 -4
  449. package/lib/modules/ai-report/components/ScoreReport/Failed.js +0 -27
  450. package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +0 -3
  451. package/lib/modules/ai-report/components/ScoreReport/Report.js +0 -40
  452. package/lib/modules/ai-report/components/ScoreReport/Score.d.ts +0 -4
  453. package/lib/modules/ai-report/components/ScoreReport/Score.js +0 -39
  454. package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +0 -4
  455. package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +0 -35
  456. package/lib/modules/ai-report/components/ScoreReport/index.d.ts +0 -4
  457. package/lib/modules/ai-report/components/ScoreReport/index.js +0 -46
  458. package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +0 -13
  459. package/lib/modules/ai-report/components/ScoreReport/interface.js +0 -2
  460. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +0 -22
  461. package/lib/modules/ai-report/components/ScoreReport/styled.js +0 -26
  462. package/lib/modules/ai-report/components/Suggestion/Suggestion.d.ts +0 -4
  463. package/lib/modules/ai-report/components/Suggestion/Suggestion.js +0 -31
  464. package/lib/modules/ai-report/components/Suggestion/index.d.ts +0 -2
  465. package/lib/modules/ai-report/components/Suggestion/index.js +0 -32
  466. package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +0 -4
  467. package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +0 -45
  468. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +0 -4
  469. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +0 -96
  470. package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +0 -4
  471. package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +0 -32
  472. package/lib/modules/ai-report/components/VideoQuestion/index.d.ts +0 -3
  473. package/lib/modules/ai-report/components/VideoQuestion/index.js +0 -27
  474. package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +0 -14
  475. package/lib/modules/ai-report/components/VideoQuestion/interface.js +0 -2
  476. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +0 -71
  477. package/lib/modules/ai-report/components/VideoQuestion/styled.js +0 -94
  478. package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.d.ts +0 -4
  479. package/lib/modules/ai-report/components/WorkPlaces/ScoreSlider.js +0 -26
  480. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.d.ts +0 -11
  481. package/lib/modules/ai-report/components/WorkPlaces/WorkPlace.js +0 -57
  482. package/lib/modules/ai-report/components/WorkPlaces/index.d.ts +0 -2
  483. package/lib/modules/ai-report/components/WorkPlaces/index.js +0 -72
  484. package/lib/modules/ai-report/components/WorkPlaces/interface.d.ts +0 -7
  485. package/lib/modules/ai-report/components/WorkPlaces/interface.js +0 -2
  486. package/lib/modules/ai-report/components/WorkPlaces/styled.d.ts +0 -62
  487. package/lib/modules/ai-report/components/WorkPlaces/styled.js +0 -30
  488. package/lib/modules/ai-report/index.d.ts +0 -4
  489. package/lib/modules/ai-report/index.js +0 -26
  490. package/lib/modules/ai-report/interface.d.ts +0 -187
  491. package/lib/modules/ai-report/interface.js +0 -2
  492. package/lib/modules/ai-report/useAiReport.d.ts +0 -28
  493. package/lib/modules/ai-report/useAiReport.js +0 -20
  494. package/lib/modules/ai-report/utils.d.ts +0 -1
  495. package/lib/modules/ai-report/utils.js +0 -5
  496. package/lib/modules/ai-template/Root.d.ts +0 -4
  497. package/lib/modules/ai-template/Root.js +0 -53
  498. package/lib/modules/ai-template/components/CapabilityModel/const.d.ts +0 -47
  499. package/lib/modules/ai-template/components/CapabilityModel/const.js +0 -59
  500. package/lib/modules/ai-template/components/CapabilityModel/index.d.ts +0 -3
  501. package/lib/modules/ai-template/components/CapabilityModel/index.js +0 -32
  502. package/lib/modules/ai-template/components/QuestionList/Item.d.ts +0 -4
  503. package/lib/modules/ai-template/components/QuestionList/Item.js +0 -26
  504. package/lib/modules/ai-template/components/QuestionList/index.d.ts +0 -3
  505. package/lib/modules/ai-template/components/QuestionList/index.js +0 -25
  506. package/lib/modules/ai-template/components/QuestionList/interface.d.ts +0 -5
  507. package/lib/modules/ai-template/components/QuestionList/interface.js +0 -2
  508. package/lib/modules/ai-template/components/TemplateHeader/index.d.ts +0 -4
  509. package/lib/modules/ai-template/components/TemplateHeader/index.js +0 -20
  510. package/lib/modules/ai-template/components/TemplateHeader/interface.d.ts +0 -6
  511. package/lib/modules/ai-template/components/TemplateHeader/interface.js +0 -2
  512. package/lib/modules/ai-template/components/TemplateList/index.d.ts +0 -3
  513. package/lib/modules/ai-template/components/TemplateList/index.js +0 -101
  514. package/lib/modules/ai-template/components/TemplateList/interface.d.ts +0 -24
  515. package/lib/modules/ai-template/components/TemplateList/interface.js +0 -2
  516. package/lib/modules/ai-template/components/TemplateList/styled.d.ts +0 -37
  517. package/lib/modules/ai-template/components/TemplateList/styled.js +0 -80
  518. package/lib/modules/ai-template/components/TemplateMenu/index.d.ts +0 -3
  519. package/lib/modules/ai-template/components/TemplateMenu/index.js +0 -59
  520. package/lib/modules/ai-template/components/TemplateMenu/interface.d.ts +0 -12
  521. package/lib/modules/ai-template/components/TemplateMenu/interface.js +0 -2
  522. package/lib/modules/ai-template/components/TemplateMenu/styled.d.ts +0 -29
  523. package/lib/modules/ai-template/components/TemplateMenu/styled.js +0 -19
  524. package/lib/modules/ai-template/index.d.ts +0 -4
  525. package/lib/modules/ai-template/index.js +0 -25
  526. package/lib/modules/ai-template/interface.d.ts +0 -24
  527. package/lib/modules/ai-template/interface.js +0 -2
  528. package/lib/services/ai-ability.d.ts +0 -14
  529. package/lib/services/ai-ability.js +0 -13
  530. package/lib/services/ai-question.d.ts +0 -12
  531. package/lib/services/ai-question.js +0 -25
  532. package/lib/services/ai-report.d.ts +0 -14
  533. package/lib/services/ai-report.js +0 -20
  534. package/lib/services/ai-template.d.ts +0 -4
  535. package/lib/services/ai-template.js +0 -16
  536. package/lib/store/ai-ability/question-ability-store.d.ts +0 -12
  537. package/lib/store/ai-ability/question-ability-store.js +0 -13
  538. package/lib/store/ai-question/ai-analysis-store.d.ts +0 -33
  539. package/lib/store/ai-question/ai-analysis-store.js +0 -164
  540. package/lib/store/ai-question/boot-video-store.d.ts +0 -17
  541. package/lib/store/ai-question/boot-video-store.js +0 -24
  542. package/lib/store/ai-question/global-store.d.ts +0 -35
  543. package/lib/store/ai-question/global-store.js +0 -25
  544. package/lib/store/ai-question/question-model-store.d.ts +0 -24
  545. package/lib/store/ai-question/question-model-store.js +0 -142
  546. package/lib/store/ai-question/question-preview-store.d.ts +0 -14
  547. package/lib/store/ai-question/question-preview-store.js +0 -24
  548. package/lib/store/ai-question/question-template-store.d.ts +0 -12
  549. package/lib/store/ai-question/question-template-store.js +0 -13
  550. package/lib/store/ai-question/question-update-store.d.ts +0 -11
  551. package/lib/store/ai-question/question-update-store.js +0 -36
  552. package/lib/store/ai-report/global-store.d.ts +0 -81
  553. package/lib/store/ai-report/global-store.js +0 -33
  554. package/lib/store/ai-template/global-store.d.ts +0 -35
  555. package/lib/store/ai-template/global-store.js +0 -29
  556. package/lib/utils/config.d.ts +0 -13
  557. package/lib/utils/config.js +0 -20
  558. package/lib/utils/interceptor.d.ts +0 -2
  559. package/lib/utils/interceptor.js +0 -132
  560. package/lib/utils/request.d.ts +0 -3
  561. package/lib/utils/request.js +0 -22
  562. package/lib/utils/utils.d.ts +0 -58
  563. package/lib/utils/utils.js +0 -129
@@ -1,171 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
- return new (P || (P = Promise))(function (resolve, reject) {
15
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
- step((generator = generator.apply(thisArg, _arguments || [])).next());
19
- });
20
- };
21
- var __generator = (this && this.__generator) || function (thisArg, body) {
22
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
23
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
24
- function verb(n) { return function (v) { return step([n, v]); }; }
25
- function step(op) {
26
- if (f) throw new TypeError("Generator is already executing.");
27
- while (_) try {
28
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
29
- if (y = 0, t) op = [op[0] & 2, t.value];
30
- switch (op[0]) {
31
- case 0: case 1: t = op; break;
32
- case 4: _.label++; return { value: op[1], done: false };
33
- case 5: _.label++; y = op[1]; op = [0]; continue;
34
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
35
- default:
36
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
37
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
38
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
39
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
40
- if (t[2]) _.ops.pop();
41
- _.trys.pop(); continue;
42
- }
43
- op = body.call(thisArg, _);
44
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
45
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
- }
47
- };
48
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
49
- import { useCallback, useEffect, useRef, useState } from 'react';
50
- import { AddIcon, Box, Button, Dialog, Message, Typography } from 'fbm-ui';
51
- import { useImmer } from 'use-immer';
52
- import ScrollDialogContent from "../../../../components/ScrollDialogContent";
53
- import { useAiReportStore } from "../../../../store/ai-report/global-store";
54
- import RankingRangeItem from './Item';
55
- var RankingRange = function (_a) {
56
- var open = _a.open, onClose = _a.onClose;
57
- var isCall = useRef(false);
58
- var _b = useState(false), loading = _b[0], setLoading = _b[1];
59
- var _c = useImmer([]), interval = _c[0], updateInterval = _c[1];
60
- var _d = useAiReportStore(function (store) { return [store.scoreRankIntervals]; }), scoreRankIntervals = _d.scoreRankIntervals, onScoreRankIntervalsChange = _d.onScoreRankIntervalsChange, onScoreRankIntervalsSubmit = _d.onScoreRankIntervalsSubmit;
61
- var formatScoreRankIntervals = useCallback(function (scoreRankIntervals) {
62
- isCall.current = false;
63
- updateInterval(scoreRankIntervals.map(function (item) { return (__assign(__assign({}, item), { scoreRankIntervals: {
64
- startRankProportion: item.scoreRankIntervals.startRankProportion * 100,
65
- endRankProportion: item.scoreRankIntervals.endRankProportion * 100,
66
- } })); }));
67
- }, [updateInterval]);
68
- useEffect(function () {
69
- formatScoreRankIntervals(scoreRankIntervals || []);
70
- }, [scoreRankIntervals, formatScoreRankIntervals]);
71
- useEffect(function () {
72
- var rankIntervals = interval.map(function (_a) {
73
- var _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion;
74
- return ({
75
- startRankProportion: startRankProportion / 100,
76
- endRankProportion: endRankProportion / 100,
77
- });
78
- });
79
- if (isCall.current) {
80
- onScoreRankIntervalsChange && onScoreRankIntervalsChange(rankIntervals);
81
- }
82
- }, [interval, onScoreRankIntervalsChange]);
83
- var handleAdd = useCallback(function () {
84
- var lastItem = interval[interval.length - 1];
85
- var lastStartRankProportion = lastItem === null || lastItem === void 0 ? void 0 : lastItem.scoreRankIntervals.startRankProportion;
86
- if (interval.length === 5) {
87
- Message.error('最多添加5条记录');
88
- }
89
- else if (lastStartRankProportion === 99) {
90
- Message.error('最后一条记录起始值为99无法分割');
91
- }
92
- else {
93
- updateInterval(function (draft) {
94
- var insertStartRank = lastItem ? Math.ceil(lastStartRankProportion + (99 - lastStartRankProportion) / 2) : 100;
95
- draft.splice(interval.length - 1, 0, {
96
- rank: interval.length,
97
- score: {
98
- startScore: 0,
99
- endScore: 0,
100
- isFloat: false,
101
- isInInterval: false,
102
- },
103
- scoreRankIntervals: {
104
- startRankProportion: lastItem ? lastStartRankProportion : 0,
105
- endRankProportion: insertStartRank,
106
- },
107
- });
108
- draft[interval.length].scoreRankIntervals.startRankProportion = lastItem ? insertStartRank : 0;
109
- });
110
- isCall.current = true;
111
- }
112
- }, [interval, updateInterval]);
113
- var handleChange = useCallback(function (value, index) {
114
- var prevValue = index === 0 ? 1 : interval[index - 1].scoreRankIntervals.endRankProportion + 1;
115
- var nextValue = index === interval.length - 1 ? 100 : interval[index + 1].scoreRankIntervals.endRankProportion;
116
- var canChange = value >= prevValue && value <= nextValue && value !== interval[index].scoreRankIntervals.endRankProportion;
117
- if (canChange) {
118
- updateInterval(function (draft) {
119
- draft[index].scoreRankIntervals.endRankProportion = value;
120
- draft[index + 1].scoreRankIntervals.startRankProportion = value;
121
- });
122
- }
123
- else {
124
- updateInterval(function (draft) {
125
- draft[index] = __assign({}, interval[index]);
126
- });
127
- }
128
- isCall.current = true;
129
- }, [interval, updateInterval]);
130
- var handleDelete = useCallback(function (index) {
131
- updateInterval(function (draft) {
132
- var deleteItem = interval[index];
133
- draft.splice(index, 1);
134
- draft[index - 1].scoreRankIntervals.endRankProportion = deleteItem.scoreRankIntervals.endRankProportion;
135
- });
136
- isCall.current = true;
137
- }, [interval, updateInterval]);
138
- var handleOk = function () { return __awaiter(void 0, void 0, void 0, function () {
139
- var rankIntervals, error_1;
140
- return __generator(this, function (_a) {
141
- switch (_a.label) {
142
- case 0:
143
- if (!onScoreRankIntervalsSubmit) return [3 /*break*/, 4];
144
- rankIntervals = interval.map(function (_a) {
145
- var _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion;
146
- return ({
147
- startRankProportion: startRankProportion / 100,
148
- endRankProportion: endRankProportion / 100,
149
- });
150
- });
151
- setLoading(true);
152
- _a.label = 1;
153
- case 1:
154
- _a.trys.push([1, 3, , 4]);
155
- return [4 /*yield*/, onScoreRankIntervalsSubmit(rankIntervals)];
156
- case 2:
157
- _a.sent();
158
- setLoading(false);
159
- onClose();
160
- return [3 /*break*/, 4];
161
- case 3:
162
- error_1 = _a.sent();
163
- setLoading(false);
164
- return [3 /*break*/, 4];
165
- case 4: return [2 /*return*/];
166
- }
167
- });
168
- }); };
169
- return (_jsx(Dialog, __assign({ open: open, title: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E", size: "sm", okProps: { loading: loading }, onClose: onClose, onOk: handleOk }, { children: _jsx(ScrollDialogContent, { children: _jsxs(Box, __assign({ sx: { padding: 3 } }, { children: [_jsxs(Box, __assign({ display: "flex", sx: { mb: 2 } }, { children: [_jsx(Typography, __assign({ flex: "1 0", variant: "body1" }, { children: "\u6392\u540D\u524D" })), _jsx(Typography, __assign({ flex: "1 0", variant: "body1" }, { children: "\u5206\u6570" }))] })), interval.map(function (item, index) { return (_jsx(RankingRangeItem, { item: item, index: index, disabled: index === interval.length - 1, onChange: handleChange, onDelete: handleDelete }, item.rank)); }), _jsx(Button, __assign({ icon: _jsx(AddIcon, {}), sx: { mt: 2 }, variant: "outlined", color: "inherit", onClick: handleAdd }, { children: "\u6DFB\u52A0\u6392\u540D\u533A\u95F4" }))] })) }) })));
170
- };
171
- export default RankingRange;
@@ -1,26 +0,0 @@
1
- export interface ScoreRankIntervals {
2
- startRankProportion: number;
3
- endRankProportion: number;
4
- }
5
- export interface Score {
6
- startScore: number;
7
- endScore: number;
8
- isFloat: boolean;
9
- isInInterval: boolean;
10
- }
11
- export interface ScoreRankInterval {
12
- rank: number;
13
- scoreRankIntervals: ScoreRankIntervals;
14
- score: Score;
15
- }
16
- export interface RankingRangeItemProps {
17
- index: number;
18
- disabled: boolean;
19
- item: ScoreRankInterval;
20
- onChange: (value: number, index: number) => void;
21
- onDelete: (index: number) => void;
22
- }
23
- export interface RankingRangeProps {
24
- open: boolean;
25
- onClose: () => void;
26
- }
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const RangeInput: import("@emotion/styled").StyledComponent<import("fbm-ui").BaseInputProps & import("@mui/material").OutlinedInputProps & import("@mui/material").InputProps & {
3
- children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- export declare const RangeTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
6
- children?: import("react").ReactNode;
7
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,11 +0,0 @@
1
- import { Input, styled, Typography } from 'fbm-ui';
2
- export var RangeInput = styled(Input)({
3
- width: 82,
4
- });
5
- export var RangeTypography = styled(Typography)(function (_a) {
6
- var theme = _a.theme;
7
- return ({
8
- color: "".concat(theme.palette.primary.main, " !important"),
9
- lineHeight: '38px !important',
10
- });
11
- });
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- declare const Bar: FC;
3
- export default Bar;
@@ -1,50 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
13
- import { useEffect, useState } from 'react';
14
- import { Box, Typography } from 'fbm-ui';
15
- import { scoreRankIntervalColors } from "../../../../constants/ai-report";
16
- import { useAiReportStore } from "../../../../store/ai-report/global-store";
17
- import { rankPercent } from '../../utils';
18
- var Bar = function () {
19
- var _a = useState(1), currentRank = _a[0], setCurrentRank = _a[1];
20
- var _b = useState(''), text = _b[0], setText = _b[1];
21
- var _c = useAiReportStore(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _c.reportResult, scoreRankIntervals = _c.scoreRankIntervals, reportRank = _c.reportRank;
22
- var _d = (reportResult || {}).score, score = _d === void 0 ? 0 : _d;
23
- useEffect(function () {
24
- var floatInterval = scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.find(function (interval) { return score >= interval.score.startScore && score <= interval.score.endScore; });
25
- if (floatInterval) {
26
- var rank = floatInterval.rank;
27
- setCurrentRank(rank);
28
- }
29
- if (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) {
30
- setText("\u51FB\u8D25\u4E86".concat(rankPercent((reportRank === null || reportRank === void 0 ? void 0 : reportRank.rank) || 0, (reportRank === null || reportRank === void 0 ? void 0 : reportRank.total) || 0).toFixed(0), "%\u5019\u9009\u4EBA"));
31
- }
32
- else {
33
- setText('');
34
- }
35
- }, [score, reportRank, scoreRankIntervals]);
36
- if (!scoreRankIntervals || (scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.length) === 0)
37
- return null;
38
- return (_jsxs(Box, { children: [_jsxs(Typography, __assign({ variant: "body2", flexShrink: 0 }, { children: [text, "\u00A0"] })), _jsx(Box, __assign({ display: "flex", alignItems: "center", sx: { height: 12, mt: 0.5 } }, { children: scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.map(function (_a, index) {
39
- var rank = _a.rank, _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion;
40
- return [
41
- _jsx(Box, { sx: {
42
- width: "".concat((endRankProportion - startRankProportion) * 100, "%"),
43
- height: currentRank === rank ? 'calc(100% + 4px)' : '100%',
44
- background: scoreRankIntervalColors[index],
45
- border: '1px solid rgb(255, 255, 255)',
46
- } }, rank),
47
- ];
48
- }) }))] }));
49
- };
50
- export default Bar;
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import { FailedProps } from './interface';
3
- declare const Failed: FC<FailedProps>;
4
- export default Failed;
@@ -1,25 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { Box, Button, CancelIcon, RefreshIcon, Typography } from 'fbm-ui';
14
- import { INTERVIEW_STATUS } from "../../../../enum/ai-report";
15
- var FAILED = INTERVIEW_STATUS.FAILED;
16
- var Failed = function (_a) {
17
- var loading = _a.loading, status = _a.status, onRefresh = _a.onRefresh;
18
- return (_jsxs(Box, __assign({ loading: loading, display: "flex", alignItems: "center", padding: "32px 24px" }, { children: [status === FAILED && (_jsx(CancelIcon, { style: {
19
- background: 'white',
20
- color: '#ff6c6c',
21
- width: '24px',
22
- height: '24px',
23
- } })), _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: status === FAILED ? '报告计算失败,请手动' : '报告正在计算中,请稍后查看或手动' })), _jsx(Button, __assign({ variant: "text", endIcon: _jsx(RefreshIcon, {}), size: "small", style: { color: '#576B95', padding: '0px 4px' }, onClick: onRefresh }, { children: "\u5237\u65B0\u62A5\u544A" }))] })));
24
- };
25
- export default Failed;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const Report: React.FC;
3
- export default Report;
@@ -1,35 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
- import AiHeaderTitle from "../../../../components/AiHeaderTitle";
14
- import ReportPie from "../../../../components/Charts/ReportPie";
15
- // import ScoreLegend from './ScoreLegend';
16
- import ScoreBigBall from "../../../../components/ScoreBigBall";
17
- import { useAiReportStore } from "../../../../store/ai-report/global-store";
18
- import { Box, InfoOutlineIcon, Tooltip, Typography } from 'fbm-ui';
19
- import { useMemo } from 'react';
20
- var Report = function () {
21
- var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
22
- var _a = reportResult || {}, orderToken = _a.orderToken, score = _a.score, status = _a.status, _b = _a.collection, collection = _b === void 0 ? [] : _b, _c = _a.summaryText, summaryText = _c === void 0 ? { sprintf: '', variables: [] } : _c;
23
- var title = useMemo(function () {
24
- return (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u804C\u573A\u80FD\u529B\u4EE5\u53CA\u82F1\u6587\u8868\u8FBE\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\uFF1A" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5927\u4E8E\u7B49\u4E8E80\u65F6\u4E3A\u4F18\u79C0\uFF1B" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5927\u4E8E\u7B49\u4E8E60\u5C0F\u4E8E80\u65F6\u4E3A\u9002\u4E2D\uFF1B" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "\u5F53\u5019\u9009\u4EBA\u7684\u8BE5\u9879\u80FD\u529B\u7EFC\u5408\u5F97\u5206\u5C0F\u4E8E60\u65F6\u4E3A\u6B20\u4F73\uFF1B" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u5176\u4ED6AI\u57FA\u7840\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\uFF1A" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff", style: { textIndent: '2em' } }, { children: "AI\u57FA\u7840\u80FD\u529B\u7684\u8BC4\u4EF7\u6807\u51C6\u4E3A\uFF1A\u6BCF\u4E2A\u80FD\u529B\u7684\u4E09\u6863\u7684\u5206\u6570\u503C\u4F9D\u636E\u5168\u56FD\u5927\u6570\u636E\u7EDF\u8BA1\u800C\u5B9A\u3002\u4EE5\u5168\u56FD\u6570\u636E\u7684\u524D30%\u4EE3\u8868\u4F18\u79C0\u3001\u4E2D\u95F430%~70%\u4EE3\u8868\u9002\u4E2D\u3001\u540E30%\u4EE3\u8868\u6B20\u4F73\u3002\u6839\u636E\u5019\u9009\u4EBA\u5F53\u524DAI\u89C6\u9891\u6B65\u9AA4\u4E0B\u7684\u6BCF\u4E2AAI\u57FA\u7840\u80FD\u529B\u7684\u6700\u7EC8\u5F97\u5206\u6765\u786E\u5B9A\u6BCF\u4E2A\u80FD\u529B\u7684\u8BC4\u4EF7\u3002" })), _jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u76F8\u540C\u7684\u5F97\u5206\uFF0C\u6210\u7EE9\u5148\u51FA\u7684\u6392\u540D\u9760\u524D\u3002" }))] }));
25
- }, []);
26
- var showSummaryText = useMemo(function () {
27
- var _a = summaryText.sprintf, sprintf = _a === void 0 ? '' : _a, _b = summaryText.variables, variables = _b === void 0 ? [] : _b;
28
- var textList = (sprintf === null || sprintf === void 0 ? void 0 : sprintf.split('%s')) || [];
29
- return textList.map(function (text, index) {
30
- return (_jsxs(_Fragment, { children: [_jsx("span", __assign({ style: { fontSize: 14, color: 'RGBA(0, 0, 0, 0.56)' } }, { children: text })), _jsx("span", __assign({ style: { fontSize: 14, color: '#4CAF50', fontWeight: 500 } }, { children: variables[index] || '' }))] }));
31
- });
32
- }, [summaryText]);
33
- return (_jsxs(Box, __assign({ width: "100%" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "space-between", pl: 2, pt: 2, pr: 2 }, { children: [_jsx(AiHeaderTitle, { name: "\u7EFC\u5408\u8868\u73B0" }), _jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: "\u80FD\u529B\u6807\u51C6" })), _jsx(Tooltip, __assign({ title: title }, { children: _jsx("span", __assign({ style: { display: 'flex', alignItems: 'center', marginLeft: '4px' } }, { children: _jsx(InfoOutlineIcon, { sx: { fontSize: 14, color: 'RGBA(0, 0, 0, 0.86)' } }) })) }))] }))] })), _jsxs(Box, __assign({ height: 300, sx: { position: 'relative' } }, { children: [_jsx(ReportPie, { id: orderToken || '', source: collection }), _jsx(ScoreBigBall, { score: score || 0, status: status })] })), showSummaryText.length > 0 && (_jsx(Box, __assign({ display: "block", width: 498, style: { backgroundColor: '#FAFAFA', padding: 8, margin: '0 auto 16px' } }, { children: showSummaryText })))] })));
34
- };
35
- export default Report;
@@ -1,4 +0,0 @@
1
- import { ScoreProps } from './interface';
2
- import { FC } from 'react';
3
- declare const Score: FC<ScoreProps>;
4
- export default Score;
@@ -1,34 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import RankingRange from '../RankingRange';
14
- import Bar from './Bar';
15
- import { RefreshIconRoot, ScoreTypography, ScoreUnitTypography } from './styled';
16
- import { useAiReportStore } from "../../../../store/ai-report/global-store";
17
- import { formatScore } from "../../../../utils/utils";
18
- import dayjs from 'dayjs';
19
- import { Box, Button, DownloadIcon, Popover, Typography } from 'fbm-ui';
20
- import { useEffect, useState } from 'react';
21
- var Score = function (_a) {
22
- var loading = _a.loading, onRefresh = _a.onRefresh;
23
- var _b = useState(false), openRankingRange = _b[0], setOpenRankingRange = _b[1];
24
- var _c = useState(false), openRefresh = _c[0], setOpenRefresh = _c[1];
25
- var _d = useAiReportStore(function (store) { return [store.reportResult, store.operableButtons]; }), reportResult = _d.reportResult, operableButtons = _d.operableButtons, onExportReportClick = _d.onExportReportClick;
26
- var _e = reportResult || {}, score = _e.score, createTime = _e.createTime;
27
- useEffect(function () {
28
- if (!loading)
29
- setOpenRefresh(false);
30
- }, [loading]);
31
- var content = (_jsxs(Box, __assign({ padding: 2 }, { children: [_jsx(Typography, __assign({ variant: "body1", color: "secondary" }, { children: "\u5237\u65B0\u540E\u5C06\u6309\u6700\u65B0\u7B97\u5206\u89C4\u5219\u8BA1\u7B97\uFF0C\u662F\u5426\u786E\u8BA4\u5237\u65B0" })), _jsx(Box, __assign({ paddingTop: 1, textAlign: "right" }, { children: _jsx(Button, __assign({ loading: loading, onClick: onRefresh }, { children: "\u5237\u65B0" })) }))] })));
32
- return (_jsxs(Box, __assign({ display: "flex", sx: { padding: '24px' } }, { children: [_jsx(RankingRange, { open: openRankingRange, onClose: function () { return setOpenRankingRange(false); } }), _jsxs(Box, __assign({ flex: "1 0" }, { children: [_jsxs(Box, __assign({ display: "flex", alignItems: "center" }, { children: [_jsxs(ScoreTypography, { children: [formatScore(score || 0), _jsx(ScoreUnitTypography, __assign({ variant: "caption" }, { children: "\u5206" }))] }), _jsx(Box, __assign({ width: 50, height: 50 }, { children: !!score && score >= 80 && _jsx("img", { src: "//webcdn.fbmms.cn/web/saas/asset/image/recommended.svg", alt: "" }) })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('export')) && (_jsx(Button, __assign({ variant: "outlined", size: "small", icon: _jsx(DownloadIcon, {}), sx: { ml: 1 }, onClick: onExportReportClick }, { children: "\u5BFC\u51FA\u62A5\u544A" })))] })), _jsxs(Box, __assign({ display: "flex", alignItems: "center", mt: 1 }, { children: [(operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('refresh')) && (_jsx(Popover, __assign({ open: openRefresh, content: content, onClickAway: function () { return setOpenRefresh(false); } }, { children: _jsx(RefreshIconRoot, { onClick: function () { return setOpenRefresh(true); } }) }))), _jsxs(Typography, __assign({ variant: "caption", color: "secondary", ml: 0.5 }, { children: ["\u62A5\u544A\u751F\u6210\u4E8E ", dayjs(createTime && createTime * 1000).format('YYYY-MM-DD HH:mm')] })), (operableButtons === null || operableButtons === void 0 ? void 0 : operableButtons.includes('scoreRank')) && (_jsx(Button, __assign({ variant: "text", size: "small", sx: { textDecoration: 'underline' }, onClick: function () { return setOpenRankingRange(true); } }, { children: "\u6392\u540D\u533A\u95F4\u8BBE\u7F6E" })))] }))] })), _jsx(Box, __assign({ width: 200 }, { children: _jsx(Bar, {}) }))] })));
33
- };
34
- export default Score;
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import { ScoreLegendProps } from './interface';
3
- declare const ScoreLegend: FC<ScoreLegendProps>;
4
- export default ScoreLegend;
@@ -1,33 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
- import { useMemo } from 'react';
14
- import { Box, InfoIcon, Tooltip, Typography } from 'fbm-ui';
15
- import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
16
- import { useAiReportStore } from "../../../../store/ai-report/global-store";
17
- import { formatScore } from "../../../../utils/utils";
18
- var STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED;
19
- var ScoreLegend = function (props) {
20
- var color = props.color;
21
- var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
22
- var _a = reportResult || {}, score = _a.score, steps = _a.steps;
23
- var title = useMemo(function () {
24
- return (_jsxs(Box, { children: [_jsx(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: "\u8BA1\u7B97\u516C\u5F0F\uFF1A\u7EFC\u5408\u8BC4\u5206 = \u8BC4\u5206 * \u5355\u9898\u6743\u91CD" })), steps === null || steps === void 0 ? void 0 : steps.map(function (step, index) {
25
- if (step.scoreInfo.weight && step.status === STEP_COMPLETED) {
26
- return (_jsxs(Box, { children: [_jsxs(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: [index + 1, ".", step.question.name] })), _jsxs(Typography, __assign({ fontSize: 12, color: "#fff" }, { children: ["\u5F97\u5206\uFF1A", formatScore(step.scoreInfo.score), "\u5206 = ", step.scoreInfo.finalScore.toFixed(0), " * ", step.scoreInfo.weight, "%"] }))] }, step.token));
27
- }
28
- return null;
29
- })] }));
30
- }, [steps]);
31
- return (_jsxs(Box, __assign({ display: "flex", alignItems: "center", justifyContent: "center", sx: { mb: 2 } }, { children: [_jsx(Box, { style: { width: '8px', height: '8px', backgroundColor: color } }), _jsxs(Box, __assign({ display: "flex", alignItems: "center", sx: { margin: '0 4px' } }, { children: [_jsx(Typography, __assign({ sx: { fontSize: 12, color: color } }, { children: "\u89C6\u9891\u9762\u8BD5\u5F97\u5206\uFF1A" })), _jsxs(Typography, __assign({ sx: { fontSize: 18, color: color, fontWeight: 700 } }, { children: [formatScore(score || 0), _jsx("span", __assign({ style: { fontSize: 12, fontWeight: 'normal', marginLeft: 2 } }, { children: "\u5206" }))] }))] })), _jsx(Box, { children: _jsx(Tooltip, __assign({ title: title }, { children: _jsx("span", __assign({ style: { display: 'flex', alignItems: 'center' } }, { children: _jsx(InfoIcon, { sx: { fontSize: 14, color: color } }) })) })) })] })));
32
- };
33
- export default ScoreLegend;
@@ -1,4 +0,0 @@
1
- import { ScoreReportProps } from './interface';
2
- import { FC } from 'react';
3
- declare const ScoreReport: FC<ScoreReportProps>;
4
- export default ScoreReport;
@@ -1,41 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
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
- var FAILED = INTERVIEW_STATUS.FAILED, IN_CALCULATION = INTERVIEW_STATUS.IN_CALCULATION;
23
- var ScoreReport = function (_a) {
24
- var onRefreshSuccess = _a.onRefreshSuccess;
25
- var _b = useAiReportStore(function (store) { return [store.token, store.reportResult]; }), token = _b.token, reportResult = _b.reportResult;
26
- var _c = (reportResult || {}).status, status = _c === void 0 ? 0 : _c;
27
- var _d = useRequest(function () { return PostAiInterviewRefresh(token); }, {
28
- manual: true,
29
- onSuccess: function () {
30
- onRefreshSuccess();
31
- Message.success('刷新成功');
32
- },
33
- }), run = _d.run, loading = _d.loading;
34
- if ([FAILED, IN_CALCULATION].includes(status)) {
35
- return (_jsx(Paper, __assign({ id: "report-score", variant: "outlined" }, { children: _jsx(Failed, { status: status, loading: loading, onRefresh: run }) })));
36
- }
37
- else {
38
- return (_jsxs(Paper, __assign({ id: "report-score", variant: "outlined" }, { children: [_jsx(Score, { loading: loading, onRefresh: run }), _jsx(Divider, {}), _jsx(Report, {})] })));
39
- }
40
- };
41
- export default ScoreReport;
@@ -1,13 +0,0 @@
1
- export interface ScoreLegendProps {
2
- color: string;
3
- }
4
- export interface ScoreReportProps {
5
- onRefreshSuccess: () => void;
6
- }
7
- export interface ScoreProps {
8
- loading?: boolean;
9
- onRefresh: () => void;
10
- }
11
- export interface FailedProps extends ScoreProps {
12
- status?: number;
13
- }
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const ScoreTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
3
- children?: import("react").ReactNode;
4
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
5
- export declare const ScoreUnitTypography: import("@emotion/styled").StyledComponent<import("fbm-ui/lib/components/Typography").TypographyProps & {
6
- children?: import("react").ReactNode;
7
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
- export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<{
9
- children?: import("react").ReactNode;
10
- classes?: Partial<import("@mui/material").SvgIconClasses> | undefined;
11
- color?: "inherit" | "disabled" | "action" | "primary" | "secondary" | "success" | "error" | "info" | "warning" | undefined;
12
- fontSize?: "small" | "inherit" | "medium" | "large" | undefined;
13
- htmlColor?: string | undefined;
14
- shapeRendering?: string | undefined;
15
- sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
16
- titleAccess?: string | undefined;
17
- viewBox?: string | undefined;
18
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "d" | "y" | "name" | "type" | "onLoad" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "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" | "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" | "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" | "end" | "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" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "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" | "slope" | "spacing" | "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" | "yChannelSelector" | "z" | "zoomAndPan"> & {
19
- ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
20
- }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
21
- children?: import("react").ReactNode;
22
- } & import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -1,23 +0,0 @@
1
- import { RefreshIcon, styled, Typography } from 'fbm-ui';
2
- export var ScoreTypography = styled(Typography)(function (_a) {
3
- var theme = _a.theme;
4
- return ({
5
- color: theme.palette.primary.main,
6
- fontSize: 48,
7
- fontWeight: 700,
8
- });
9
- });
10
- export var ScoreUnitTypography = styled(Typography)(function (_a) {
11
- var theme = _a.theme;
12
- return ({
13
- color: theme.palette.primary.main,
14
- fontSize: 14,
15
- marginLeft: 4,
16
- });
17
- });
18
- export var RefreshIconRoot = styled(RefreshIcon)({
19
- fontSize: 16,
20
- position: 'relative',
21
- top: 2,
22
- cursor: 'pointer',
23
- });
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { SuggestionAbility } from '../../interface';
3
- declare const Suggestion: React.FC<SuggestionAbility>;
4
- export default Suggestion;
@@ -1,29 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx, 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
- width: 100,
17
- height: 32,
18
- display: 'inline-block',
19
- textAlign: 'center',
20
- color: 'RGBA(0, 0, 0, 0.86)',
21
- borderLeft: '4px solid #4CAF50',
22
- backgroundColor: '#E8F5E9',
23
- margin: '24px 0 16px',
24
- }); });
25
- var Suggestion = function (_a) {
26
- var abilityName = _a.abilityName, interviewQuestion = _a.interviewQuestion, keyPoints = _a.keyPoints;
27
- return (_jsxs(Stack, { 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)); })] }))] }))] }));
28
- };
29
- export default Suggestion;
@@ -1,2 +0,0 @@
1
- declare const Index: () => JSX.Element | null;
2
- export default Index;