eli-video-interview 1.1.0

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 (397) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +411 -0
  3. package/esm/assets/icons/free.svg +1 -0
  4. package/esm/assets/icons/video.svg +1 -0
  5. package/esm/components/BigBallSvg/index.d.ts +3 -0
  6. package/esm/components/BigBallSvg/index.js +17 -0
  7. package/esm/components/BigBallSvg/index.module.css +37 -0
  8. package/esm/components/Charts/Chart.d.ts +4 -0
  9. package/esm/components/Charts/Chart.js +38 -0
  10. package/esm/components/Charts/const.d.ts +382 -0
  11. package/esm/components/Charts/const.js +382 -0
  12. package/esm/components/Charts/interface.d.ts +3 -0
  13. package/esm/components/Charts/interface.js +1 -0
  14. package/esm/components/ScrollDialogContent/index.d.ts +5 -0
  15. package/esm/components/ScrollDialogContent/index.js +6 -0
  16. package/esm/components/SvgIcon/index.d.ts +4 -0
  17. package/esm/components/SvgIcon/index.js +31 -0
  18. package/esm/components/SvgIcon/interface.d.ts +3 -0
  19. package/esm/components/SvgIcon/interface.js +1 -0
  20. package/esm/components/VideoPreview/index.d.ts +4 -0
  21. package/esm/components/VideoPreview/index.js +20 -0
  22. package/esm/components/VideoPreview/interface.d.ts +15 -0
  23. package/esm/components/VideoPreview/interface.js +1 -0
  24. package/esm/components/VideoPreview/styled.d.ts +10 -0
  25. package/esm/components/VideoPreview/styled.js +24 -0
  26. package/esm/constants/ai-question.d.ts +27 -0
  27. package/esm/constants/ai-question.js +39 -0
  28. package/esm/constants/ai-report.d.ts +2 -0
  29. package/esm/constants/ai-report.js +12 -0
  30. package/esm/enum/ai-question.d.ts +38 -0
  31. package/esm/enum/ai-question.js +42 -0
  32. package/esm/enum/ai-report.d.ts +27 -0
  33. package/esm/enum/ai-report.js +30 -0
  34. package/esm/index.d.ts +6 -0
  35. package/esm/index.js +6 -0
  36. package/esm/modules/ai-question/Root.d.ts +4 -0
  37. package/esm/modules/ai-question/Root.js +141 -0
  38. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +4 -0
  39. package/esm/modules/ai-question/components/AiAnalysis/AnalysisItem.js +39 -0
  40. package/esm/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +4 -0
  41. package/esm/modules/ai-question/components/AiAnalysis/MainPoints.js +54 -0
  42. package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +4 -0
  43. package/esm/modules/ai-question/components/AiAnalysis/MainPointsItem.js +62 -0
  44. package/esm/modules/ai-question/components/AiAnalysis/const.d.ts +5 -0
  45. package/esm/modules/ai-question/components/AiAnalysis/const.js +11 -0
  46. package/esm/modules/ai-question/components/AiAnalysis/index.d.ts +3 -0
  47. package/esm/modules/ai-question/components/AiAnalysis/index.js +35 -0
  48. package/esm/modules/ai-question/components/AiAnalysis/interface.d.ts +23 -0
  49. package/esm/modules/ai-question/components/AiAnalysis/interface.js +1 -0
  50. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +19 -0
  51. package/esm/modules/ai-question/components/AiAssessmentCriteria/const.js +23 -0
  52. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +4 -0
  53. package/esm/modules/ai-question/components/AiAssessmentCriteria/index.js +114 -0
  54. package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +27 -0
  55. package/esm/modules/ai-question/components/AiAssessmentCriteria/interface.js +1 -0
  56. package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +39 -0
  57. package/esm/modules/ai-question/components/AiAssessmentCriteria/styled.js +20 -0
  58. package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +9 -0
  59. package/esm/modules/ai-question/components/AiAssessmentCriteria/utils.js +29 -0
  60. package/esm/modules/ai-question/components/BaseAccordion/const.d.ts +1 -0
  61. package/esm/modules/ai-question/components/BaseAccordion/const.js +1 -0
  62. package/esm/modules/ai-question/components/BaseAccordion/index.d.ts +4 -0
  63. package/esm/modules/ai-question/components/BaseAccordion/index.js +98 -0
  64. package/esm/modules/ai-question/components/BaseAccordion/interface.d.ts +9 -0
  65. package/esm/modules/ai-question/components/BaseAccordion/interface.js +1 -0
  66. package/esm/modules/ai-question/components/BaseAccordion/styled.d.ts +10 -0
  67. package/esm/modules/ai-question/components/BaseAccordion/styled.js +73 -0
  68. package/esm/modules/ai-question/components/BootVideo/index.d.ts +4 -0
  69. package/esm/modules/ai-question/components/BootVideo/index.js +100 -0
  70. package/esm/modules/ai-question/components/BootVideo/interface.d.ts +8 -0
  71. package/esm/modules/ai-question/components/BootVideo/interface.js +1 -0
  72. package/esm/modules/ai-question/components/BootVideo/styled.d.ts +33 -0
  73. package/esm/modules/ai-question/components/BootVideo/styled.js +49 -0
  74. package/esm/modules/ai-question/components/QuestionModel/Header.d.ts +3 -0
  75. package/esm/modules/ai-question/components/QuestionModel/Header.js +23 -0
  76. package/esm/modules/ai-question/components/QuestionModel/Item.d.ts +4 -0
  77. package/esm/modules/ai-question/components/QuestionModel/Item.js +74 -0
  78. package/esm/modules/ai-question/components/QuestionModel/List.d.ts +3 -0
  79. package/esm/modules/ai-question/components/QuestionModel/List.js +39 -0
  80. package/esm/modules/ai-question/components/QuestionModel/Skeleton.d.ts +3 -0
  81. package/esm/modules/ai-question/components/QuestionModel/Skeleton.js +17 -0
  82. package/esm/modules/ai-question/components/QuestionModel/index.d.ts +3 -0
  83. package/esm/modules/ai-question/components/QuestionModel/index.js +64 -0
  84. package/esm/modules/ai-question/components/QuestionModel/interface.d.ts +18 -0
  85. package/esm/modules/ai-question/components/QuestionModel/interface.js +1 -0
  86. package/esm/modules/ai-question/components/QuestionModel/styled.d.ts +9 -0
  87. package/esm/modules/ai-question/components/QuestionModel/styled.js +9 -0
  88. package/esm/modules/ai-question/components/QuestionPreview/index.d.ts +3 -0
  89. package/esm/modules/ai-question/components/QuestionPreview/index.js +31 -0
  90. package/esm/modules/ai-question/components/QuestionPreview/styled.d.ts +23 -0
  91. package/esm/modules/ai-question/components/QuestionPreview/styled.js +11 -0
  92. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +3 -0
  93. package/esm/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +47 -0
  94. package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +3 -0
  95. package/esm/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +20 -0
  96. package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +3 -0
  97. package/esm/modules/ai-question/components/QuestionTemplate/Skeleton.js +17 -0
  98. package/esm/modules/ai-question/components/QuestionTemplate/index.d.ts +3 -0
  99. package/esm/modules/ai-question/components/QuestionTemplate/index.js +38 -0
  100. package/esm/modules/ai-question/components/QuestionTemplate/interface.d.ts +43 -0
  101. package/esm/modules/ai-question/components/QuestionTemplate/interface.js +1 -0
  102. package/esm/modules/ai-question/components/QuestionTemplate/styled.d.ts +87 -0
  103. package/esm/modules/ai-question/components/QuestionTemplate/styled.js +33 -0
  104. package/esm/modules/ai-question/components/QuestionUpdate/Form.d.ts +4 -0
  105. package/esm/modules/ai-question/components/QuestionUpdate/Form.js +91 -0
  106. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +3 -0
  107. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoice.js +63 -0
  108. package/esm/modules/ai-question/components/QuestionUpdate/const.d.ts +14 -0
  109. package/esm/modules/ai-question/components/QuestionUpdate/const.js +53 -0
  110. package/esm/modules/ai-question/components/QuestionUpdate/index.d.ts +3 -0
  111. package/esm/modules/ai-question/components/QuestionUpdate/index.js +203 -0
  112. package/esm/modules/ai-question/components/QuestionUpdate/interface.d.ts +57 -0
  113. package/esm/modules/ai-question/components/QuestionUpdate/interface.js +1 -0
  114. package/esm/modules/ai-question/index.d.ts +4 -0
  115. package/esm/modules/ai-question/index.js +22 -0
  116. package/esm/modules/ai-question/interface.d.ts +74 -0
  117. package/esm/modules/ai-question/interface.js +1 -0
  118. package/esm/modules/ai-question/useAiQuestion.d.ts +15 -0
  119. package/esm/modules/ai-question/useAiQuestion.js +18 -0
  120. package/esm/modules/ai-report/Root.d.ts +4 -0
  121. package/esm/modules/ai-report/Root.js +73 -0
  122. package/esm/modules/ai-report/components/NotFinish/index.d.ts +3 -0
  123. package/esm/modules/ai-report/components/NotFinish/index.js +25 -0
  124. package/esm/modules/ai-report/components/RankingRange/Item.d.ts +4 -0
  125. package/esm/modules/ai-report/components/RankingRange/Item.js +30 -0
  126. package/esm/modules/ai-report/components/RankingRange/index.d.ts +4 -0
  127. package/esm/modules/ai-report/components/RankingRange/index.js +171 -0
  128. package/esm/modules/ai-report/components/RankingRange/interface.d.ts +26 -0
  129. package/esm/modules/ai-report/components/RankingRange/interface.js +1 -0
  130. package/esm/modules/ai-report/components/RankingRange/styled.d.ts +7 -0
  131. package/esm/modules/ai-report/components/RankingRange/styled.js +11 -0
  132. package/esm/modules/ai-report/components/ScoreReport/Bar.d.ts +3 -0
  133. package/esm/modules/ai-report/components/ScoreReport/Bar.js +44 -0
  134. package/esm/modules/ai-report/components/ScoreReport/Failed.d.ts +4 -0
  135. package/esm/modules/ai-report/components/ScoreReport/Failed.js +25 -0
  136. package/esm/modules/ai-report/components/ScoreReport/Report.d.ts +3 -0
  137. package/esm/modules/ai-report/components/ScoreReport/Report.js +45 -0
  138. package/esm/modules/ai-report/components/ScoreReport/RosePie.d.ts +4 -0
  139. package/esm/modules/ai-report/components/ScoreReport/RosePie.js +19 -0
  140. package/esm/modules/ai-report/components/ScoreReport/Score.d.ts +4 -0
  141. package/esm/modules/ai-report/components/ScoreReport/Score.js +34 -0
  142. package/esm/modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts +4 -0
  143. package/esm/modules/ai-report/components/ScoreReport/ScoreBigBall.js +26 -0
  144. package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +4 -0
  145. package/esm/modules/ai-report/components/ScoreReport/ScoreLegend.js +33 -0
  146. package/esm/modules/ai-report/components/ScoreReport/const.d.ts +34 -0
  147. package/esm/modules/ai-report/components/ScoreReport/const.js +77 -0
  148. package/esm/modules/ai-report/components/ScoreReport/index.d.ts +4 -0
  149. package/esm/modules/ai-report/components/ScoreReport/index.js +41 -0
  150. package/esm/modules/ai-report/components/ScoreReport/interface.d.ts +20 -0
  151. package/esm/modules/ai-report/components/ScoreReport/interface.js +1 -0
  152. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +25 -0
  153. package/esm/modules/ai-report/components/ScoreReport/styled.js +36 -0
  154. package/esm/modules/ai-report/components/VideoQuestion/Abilities.d.ts +4 -0
  155. package/esm/modules/ai-report/components/VideoQuestion/Abilities.js +40 -0
  156. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +4 -0
  157. package/esm/modules/ai-report/components/VideoQuestion/QuestionItem.js +89 -0
  158. package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +4 -0
  159. package/esm/modules/ai-report/components/VideoQuestion/ScoreSlider.js +34 -0
  160. package/esm/modules/ai-report/components/VideoQuestion/index.d.ts +3 -0
  161. package/esm/modules/ai-report/components/VideoQuestion/index.js +21 -0
  162. package/esm/modules/ai-report/components/VideoQuestion/interface.d.ts +14 -0
  163. package/esm/modules/ai-report/components/VideoQuestion/interface.js +1 -0
  164. package/esm/modules/ai-report/components/VideoQuestion/styled.d.ts +71 -0
  165. package/esm/modules/ai-report/components/VideoQuestion/styled.js +90 -0
  166. package/esm/modules/ai-report/index.d.ts +4 -0
  167. package/esm/modules/ai-report/index.js +22 -0
  168. package/esm/modules/ai-report/interface.d.ts +114 -0
  169. package/esm/modules/ai-report/interface.js +1 -0
  170. package/esm/modules/ai-report/useAiReport.d.ts +20 -0
  171. package/esm/modules/ai-report/useAiReport.js +16 -0
  172. package/esm/services/ai-question.d.ts +13 -0
  173. package/esm/services/ai-question.js +17 -0
  174. package/esm/services/ai-report.d.ts +2 -0
  175. package/esm/services/ai-report.js +5 -0
  176. package/esm/store/ai-question/ai-analysis-store.d.ts +29 -0
  177. package/esm/store/ai-question/ai-analysis-store.js +132 -0
  178. package/esm/store/ai-question/boot-video-store.d.ts +17 -0
  179. package/esm/store/ai-question/boot-video-store.js +21 -0
  180. package/esm/store/ai-question/global-store.d.ts +32 -0
  181. package/esm/store/ai-question/global-store.js +23 -0
  182. package/esm/store/ai-question/question-model-store.d.ts +24 -0
  183. package/esm/store/ai-question/question-model-store.js +130 -0
  184. package/esm/store/ai-question/question-preview-store.d.ts +14 -0
  185. package/esm/store/ai-question/question-preview-store.js +21 -0
  186. package/esm/store/ai-question/question-template-store.d.ts +12 -0
  187. package/esm/store/ai-question/question-template-store.js +10 -0
  188. package/esm/store/ai-question/question-update-store.d.ts +11 -0
  189. package/esm/store/ai-question/question-update-store.js +33 -0
  190. package/esm/store/ai-report/global-store.d.ts +57 -0
  191. package/esm/store/ai-report/global-store.js +28 -0
  192. package/esm/utils/config.d.ts +11 -0
  193. package/esm/utils/config.js +17 -0
  194. package/esm/utils/interceptor.d.ts +2 -0
  195. package/esm/utils/interceptor.js +119 -0
  196. package/esm/utils/request.d.ts +3 -0
  197. package/esm/utils/request.js +14 -0
  198. package/esm/utils/utils.d.ts +58 -0
  199. package/esm/utils/utils.js +115 -0
  200. package/lib/assets/icons/free.svg +1 -0
  201. package/lib/assets/icons/video.svg +1 -0
  202. package/lib/components/BigBallSvg/index.d.ts +3 -0
  203. package/lib/components/BigBallSvg/index.js +22 -0
  204. package/lib/components/BigBallSvg/index.module.css +37 -0
  205. package/lib/components/Charts/Chart.d.ts +4 -0
  206. package/lib/components/Charts/Chart.js +43 -0
  207. package/lib/components/Charts/const.d.ts +382 -0
  208. package/lib/components/Charts/const.js +385 -0
  209. package/lib/components/Charts/interface.d.ts +3 -0
  210. package/lib/components/Charts/interface.js +2 -0
  211. package/lib/components/ScrollDialogContent/index.d.ts +5 -0
  212. package/lib/components/ScrollDialogContent/index.js +8 -0
  213. package/lib/components/SvgIcon/index.d.ts +4 -0
  214. package/lib/components/SvgIcon/index.js +33 -0
  215. package/lib/components/SvgIcon/interface.d.ts +3 -0
  216. package/lib/components/SvgIcon/interface.js +2 -0
  217. package/lib/components/VideoPreview/index.d.ts +4 -0
  218. package/lib/components/VideoPreview/index.js +22 -0
  219. package/lib/components/VideoPreview/interface.d.ts +15 -0
  220. package/lib/components/VideoPreview/interface.js +2 -0
  221. package/lib/components/VideoPreview/styled.d.ts +10 -0
  222. package/lib/components/VideoPreview/styled.js +27 -0
  223. package/lib/constants/ai-question.d.ts +27 -0
  224. package/lib/constants/ai-question.js +43 -0
  225. package/lib/constants/ai-report.d.ts +2 -0
  226. package/lib/constants/ai-report.js +15 -0
  227. package/lib/enum/ai-question.d.ts +38 -0
  228. package/lib/enum/ai-question.js +45 -0
  229. package/lib/enum/ai-report.d.ts +27 -0
  230. package/lib/enum/ai-report.js +33 -0
  231. package/lib/index.d.ts +6 -0
  232. package/lib/index.js +18 -0
  233. package/lib/modules/ai-question/Root.d.ts +4 -0
  234. package/lib/modules/ai-question/Root.js +146 -0
  235. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.d.ts +4 -0
  236. package/lib/modules/ai-question/components/AiAnalysis/AnalysisItem.js +44 -0
  237. package/lib/modules/ai-question/components/AiAnalysis/MainPoints.d.ts +4 -0
  238. package/lib/modules/ai-question/components/AiAnalysis/MainPoints.js +59 -0
  239. package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.d.ts +4 -0
  240. package/lib/modules/ai-question/components/AiAnalysis/MainPointsItem.js +64 -0
  241. package/lib/modules/ai-question/components/AiAnalysis/const.d.ts +5 -0
  242. package/lib/modules/ai-question/components/AiAnalysis/const.js +14 -0
  243. package/lib/modules/ai-question/components/AiAnalysis/index.d.ts +3 -0
  244. package/lib/modules/ai-question/components/AiAnalysis/index.js +40 -0
  245. package/lib/modules/ai-question/components/AiAnalysis/interface.d.ts +23 -0
  246. package/lib/modules/ai-question/components/AiAnalysis/interface.js +2 -0
  247. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.d.ts +19 -0
  248. package/lib/modules/ai-question/components/AiAssessmentCriteria/const.js +26 -0
  249. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.d.ts +4 -0
  250. package/lib/modules/ai-question/components/AiAssessmentCriteria/index.js +119 -0
  251. package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.d.ts +27 -0
  252. package/lib/modules/ai-question/components/AiAssessmentCriteria/interface.js +2 -0
  253. package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.d.ts +39 -0
  254. package/lib/modules/ai-question/components/AiAssessmentCriteria/styled.js +26 -0
  255. package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.d.ts +9 -0
  256. package/lib/modules/ai-question/components/AiAssessmentCriteria/utils.js +33 -0
  257. package/lib/modules/ai-question/components/BaseAccordion/const.d.ts +1 -0
  258. package/lib/modules/ai-question/components/BaseAccordion/const.js +4 -0
  259. package/lib/modules/ai-question/components/BaseAccordion/index.d.ts +4 -0
  260. package/lib/modules/ai-question/components/BaseAccordion/index.js +100 -0
  261. package/lib/modules/ai-question/components/BaseAccordion/interface.d.ts +9 -0
  262. package/lib/modules/ai-question/components/BaseAccordion/interface.js +2 -0
  263. package/lib/modules/ai-question/components/BaseAccordion/styled.d.ts +10 -0
  264. package/lib/modules/ai-question/components/BaseAccordion/styled.js +76 -0
  265. package/lib/modules/ai-question/components/BootVideo/index.d.ts +4 -0
  266. package/lib/modules/ai-question/components/BootVideo/index.js +105 -0
  267. package/lib/modules/ai-question/components/BootVideo/interface.d.ts +8 -0
  268. package/lib/modules/ai-question/components/BootVideo/interface.js +2 -0
  269. package/lib/modules/ai-question/components/BootVideo/styled.d.ts +33 -0
  270. package/lib/modules/ai-question/components/BootVideo/styled.js +55 -0
  271. package/lib/modules/ai-question/components/QuestionModel/Header.d.ts +3 -0
  272. package/lib/modules/ai-question/components/QuestionModel/Header.js +28 -0
  273. package/lib/modules/ai-question/components/QuestionModel/Item.d.ts +4 -0
  274. package/lib/modules/ai-question/components/QuestionModel/Item.js +76 -0
  275. package/lib/modules/ai-question/components/QuestionModel/List.d.ts +3 -0
  276. package/lib/modules/ai-question/components/QuestionModel/List.js +44 -0
  277. package/lib/modules/ai-question/components/QuestionModel/Skeleton.d.ts +3 -0
  278. package/lib/modules/ai-question/components/QuestionModel/Skeleton.js +19 -0
  279. package/lib/modules/ai-question/components/QuestionModel/index.d.ts +3 -0
  280. package/lib/modules/ai-question/components/QuestionModel/index.js +69 -0
  281. package/lib/modules/ai-question/components/QuestionModel/interface.d.ts +18 -0
  282. package/lib/modules/ai-question/components/QuestionModel/interface.js +2 -0
  283. package/lib/modules/ai-question/components/QuestionModel/styled.d.ts +9 -0
  284. package/lib/modules/ai-question/components/QuestionModel/styled.js +15 -0
  285. package/lib/modules/ai-question/components/QuestionPreview/index.d.ts +3 -0
  286. package/lib/modules/ai-question/components/QuestionPreview/index.js +36 -0
  287. package/lib/modules/ai-question/components/QuestionPreview/styled.d.ts +23 -0
  288. package/lib/modules/ai-question/components/QuestionPreview/styled.js +17 -0
  289. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.d.ts +3 -0
  290. package/lib/modules/ai-question/components/QuestionTemplate/AiEvaluation.js +52 -0
  291. package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.d.ts +3 -0
  292. package/lib/modules/ai-question/components/QuestionTemplate/HistoryPattern.js +25 -0
  293. package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.d.ts +3 -0
  294. package/lib/modules/ai-question/components/QuestionTemplate/Skeleton.js +19 -0
  295. package/lib/modules/ai-question/components/QuestionTemplate/index.d.ts +3 -0
  296. package/lib/modules/ai-question/components/QuestionTemplate/index.js +43 -0
  297. package/lib/modules/ai-question/components/QuestionTemplate/interface.d.ts +43 -0
  298. package/lib/modules/ai-question/components/QuestionTemplate/interface.js +2 -0
  299. package/lib/modules/ai-question/components/QuestionTemplate/styled.d.ts +87 -0
  300. package/lib/modules/ai-question/components/QuestionTemplate/styled.js +39 -0
  301. package/lib/modules/ai-question/components/QuestionUpdate/Form.d.ts +4 -0
  302. package/lib/modules/ai-question/components/QuestionUpdate/Form.js +96 -0
  303. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.d.ts +3 -0
  304. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoice.js +65 -0
  305. package/lib/modules/ai-question/components/QuestionUpdate/const.d.ts +14 -0
  306. package/lib/modules/ai-question/components/QuestionUpdate/const.js +56 -0
  307. package/lib/modules/ai-question/components/QuestionUpdate/index.d.ts +3 -0
  308. package/lib/modules/ai-question/components/QuestionUpdate/index.js +208 -0
  309. package/lib/modules/ai-question/components/QuestionUpdate/interface.d.ts +57 -0
  310. package/lib/modules/ai-question/components/QuestionUpdate/interface.js +2 -0
  311. package/lib/modules/ai-question/index.d.ts +4 -0
  312. package/lib/modules/ai-question/index.js +27 -0
  313. package/lib/modules/ai-question/interface.d.ts +74 -0
  314. package/lib/modules/ai-question/interface.js +2 -0
  315. package/lib/modules/ai-question/useAiQuestion.d.ts +15 -0
  316. package/lib/modules/ai-question/useAiQuestion.js +22 -0
  317. package/lib/modules/ai-report/Root.d.ts +4 -0
  318. package/lib/modules/ai-report/Root.js +78 -0
  319. package/lib/modules/ai-report/components/NotFinish/index.d.ts +3 -0
  320. package/lib/modules/ai-report/components/NotFinish/index.js +27 -0
  321. package/lib/modules/ai-report/components/RankingRange/Item.d.ts +4 -0
  322. package/lib/modules/ai-report/components/RankingRange/Item.js +32 -0
  323. package/lib/modules/ai-report/components/RankingRange/index.d.ts +4 -0
  324. package/lib/modules/ai-report/components/RankingRange/index.js +176 -0
  325. package/lib/modules/ai-report/components/RankingRange/interface.d.ts +26 -0
  326. package/lib/modules/ai-report/components/RankingRange/interface.js +2 -0
  327. package/lib/modules/ai-report/components/RankingRange/styled.d.ts +7 -0
  328. package/lib/modules/ai-report/components/RankingRange/styled.js +14 -0
  329. package/lib/modules/ai-report/components/ScoreReport/Bar.d.ts +3 -0
  330. package/lib/modules/ai-report/components/ScoreReport/Bar.js +46 -0
  331. package/lib/modules/ai-report/components/ScoreReport/Failed.d.ts +4 -0
  332. package/lib/modules/ai-report/components/ScoreReport/Failed.js +27 -0
  333. package/lib/modules/ai-report/components/ScoreReport/Report.d.ts +3 -0
  334. package/lib/modules/ai-report/components/ScoreReport/Report.js +50 -0
  335. package/lib/modules/ai-report/components/ScoreReport/RosePie.d.ts +4 -0
  336. package/lib/modules/ai-report/components/ScoreReport/RosePie.js +24 -0
  337. package/lib/modules/ai-report/components/ScoreReport/Score.d.ts +4 -0
  338. package/lib/modules/ai-report/components/ScoreReport/Score.js +39 -0
  339. package/lib/modules/ai-report/components/ScoreReport/ScoreBigBall.d.ts +4 -0
  340. package/lib/modules/ai-report/components/ScoreReport/ScoreBigBall.js +31 -0
  341. package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.d.ts +4 -0
  342. package/lib/modules/ai-report/components/ScoreReport/ScoreLegend.js +35 -0
  343. package/lib/modules/ai-report/components/ScoreReport/const.d.ts +34 -0
  344. package/lib/modules/ai-report/components/ScoreReport/const.js +80 -0
  345. package/lib/modules/ai-report/components/ScoreReport/index.d.ts +4 -0
  346. package/lib/modules/ai-report/components/ScoreReport/index.js +46 -0
  347. package/lib/modules/ai-report/components/ScoreReport/interface.d.ts +20 -0
  348. package/lib/modules/ai-report/components/ScoreReport/interface.js +2 -0
  349. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +25 -0
  350. package/lib/modules/ai-report/components/ScoreReport/styled.js +39 -0
  351. package/lib/modules/ai-report/components/VideoQuestion/Abilities.d.ts +4 -0
  352. package/lib/modules/ai-report/components/VideoQuestion/Abilities.js +45 -0
  353. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.d.ts +4 -0
  354. package/lib/modules/ai-report/components/VideoQuestion/QuestionItem.js +94 -0
  355. package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.d.ts +4 -0
  356. package/lib/modules/ai-report/components/VideoQuestion/ScoreSlider.js +36 -0
  357. package/lib/modules/ai-report/components/VideoQuestion/index.d.ts +3 -0
  358. package/lib/modules/ai-report/components/VideoQuestion/index.js +26 -0
  359. package/lib/modules/ai-report/components/VideoQuestion/interface.d.ts +14 -0
  360. package/lib/modules/ai-report/components/VideoQuestion/interface.js +2 -0
  361. package/lib/modules/ai-report/components/VideoQuestion/styled.d.ts +71 -0
  362. package/lib/modules/ai-report/components/VideoQuestion/styled.js +93 -0
  363. package/lib/modules/ai-report/index.d.ts +4 -0
  364. package/lib/modules/ai-report/index.js +27 -0
  365. package/lib/modules/ai-report/interface.d.ts +114 -0
  366. package/lib/modules/ai-report/interface.js +2 -0
  367. package/lib/modules/ai-report/useAiReport.d.ts +20 -0
  368. package/lib/modules/ai-report/useAiReport.js +20 -0
  369. package/lib/services/ai-question.d.ts +13 -0
  370. package/lib/services/ai-question.js +28 -0
  371. package/lib/services/ai-report.d.ts +2 -0
  372. package/lib/services/ai-report.js +10 -0
  373. package/lib/store/ai-question/ai-analysis-store.d.ts +29 -0
  374. package/lib/store/ai-question/ai-analysis-store.js +138 -0
  375. package/lib/store/ai-question/boot-video-store.d.ts +17 -0
  376. package/lib/store/ai-question/boot-video-store.js +24 -0
  377. package/lib/store/ai-question/global-store.d.ts +32 -0
  378. package/lib/store/ai-question/global-store.js +26 -0
  379. package/lib/store/ai-question/question-model-store.d.ts +24 -0
  380. package/lib/store/ai-question/question-model-store.js +136 -0
  381. package/lib/store/ai-question/question-preview-store.d.ts +14 -0
  382. package/lib/store/ai-question/question-preview-store.js +24 -0
  383. package/lib/store/ai-question/question-template-store.d.ts +12 -0
  384. package/lib/store/ai-question/question-template-store.js +13 -0
  385. package/lib/store/ai-question/question-update-store.d.ts +11 -0
  386. package/lib/store/ai-question/question-update-store.js +36 -0
  387. package/lib/store/ai-report/global-store.d.ts +57 -0
  388. package/lib/store/ai-report/global-store.js +31 -0
  389. package/lib/utils/config.d.ts +11 -0
  390. package/lib/utils/config.js +20 -0
  391. package/lib/utils/interceptor.d.ts +2 -0
  392. package/lib/utils/interceptor.js +124 -0
  393. package/lib/utils/request.d.ts +3 -0
  394. package/lib/utils/request.js +22 -0
  395. package/lib/utils/utils.d.ts +58 -0
  396. package/lib/utils/utils.js +129 -0
  397. package/package.json +153 -0
@@ -0,0 +1,171 @@
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 { Box, Typography, Button, AddIcon, Message, Dialog } 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;
@@ -0,0 +1,26 @@
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
+ }
@@ -0,0 +1,7 @@
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").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").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,11 @@
1
+ import { Input, Typography, styled } 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
+ });
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const Bar: FC;
3
+ export default Bar;
@@ -0,0 +1,44 @@
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 { useEffect, useState } from 'react';
14
+ import { Box, Typography } from 'fbm-ui';
15
+ import { useAiReportStore } from "../../../../store/ai-report/global-store";
16
+ import { scoreRankIntervalColors } from "../../../../constants/ai-report";
17
+ var Bar = function () {
18
+ var _a = useState(1), currentRank = _a[0], setCurrentRank = _a[1];
19
+ var _b = useState('前0% ~ 100%'), text = _b[0], setText = _b[1];
20
+ var _c = useAiReportStore(function (store) { return [store.reportResult, store.scoreRankIntervals]; }), reportResult = _c.reportResult, scoreRankIntervals = _c.scoreRankIntervals;
21
+ var _d = (reportResult || {}).score, score = _d === void 0 ? 0 : _d;
22
+ useEffect(function () {
23
+ var floatInterval = scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.find(function (interval) { return score >= interval.score.startScore && score <= interval.score.endScore; });
24
+ if (floatInterval) {
25
+ var rank = floatInterval.rank, _a = floatInterval.scoreRankIntervals, startRankProportion = _a.startRankProportion, endRankProportion = _a.endRankProportion;
26
+ setCurrentRank(rank);
27
+ setText("\u524D".concat(startRankProportion * 100, "% ~ ").concat(endRankProportion * 100, "%"));
28
+ }
29
+ }, [score, scoreRankIntervals]);
30
+ if (!scoreRankIntervals || (scoreRankIntervals === null || scoreRankIntervals === void 0 ? void 0 : scoreRankIntervals.length) === 0)
31
+ return null;
32
+ return (_jsxs(Box, { children: [_jsx(Typography, __assign({ variant: "body2" }, { children: text })), _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) {
33
+ var rank = _a.rank, _b = _a.scoreRankIntervals, startRankProportion = _b.startRankProportion, endRankProportion = _b.endRankProportion;
34
+ return [
35
+ _jsx(Box, { sx: {
36
+ width: "".concat((endRankProportion - startRankProportion) * 100, "%"),
37
+ height: currentRank === rank ? 'calc(100% + 4px)' : '100%',
38
+ background: scoreRankIntervalColors[index],
39
+ border: '1px solid rgb(255, 255, 255)',
40
+ } }, rank),
41
+ ];
42
+ }) }))] }));
43
+ };
44
+ export default Bar;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { FailedProps } from './interface';
3
+ declare const Failed: FC<FailedProps>;
4
+ export default Failed;
@@ -0,0 +1,25 @@
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, CancelIcon, Typography, Button, RefreshIcon } 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;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const Report: FC;
3
+ export default Report;
@@ -0,0 +1,45 @@
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 { useEffect, useState } from 'react';
14
+ import { Box } from 'fbm-ui';
15
+ import { useAiReportStore } from "../../../../store/ai-report/global-store";
16
+ import { formatScore, formatLowScore } from "../../../../utils/utils";
17
+ import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
18
+ import RosePie from './RosePie';
19
+ import ScoreLegend from './ScoreLegend';
20
+ import ScoreBigBall from './ScoreBigBall';
21
+ var STEP_COMPLETED = INTERVIEW_STEP_STATUS.STEP_COMPLETED;
22
+ var Report = function () {
23
+ var _a = useState([]), source = _a[0], setSource = _a[1];
24
+ var reportResult = useAiReportStore(function (store) { return [store.reportResult]; }).reportResult;
25
+ var _b = reportResult || {}, score = _b.score, status = _b.status, steps = _b.steps;
26
+ useEffect(function () {
27
+ var source = steps === null || steps === void 0 ? void 0 : steps.map(function (item, index) {
28
+ var status = item.status, _a = item.question, name = _a.name, type = _a.type, _b = item.scoreInfo, originScore = _b.originScore, weight = _b.weight, score = _b.score;
29
+ return status === STEP_COMPLETED
30
+ ? [
31
+ type,
32
+ "".concat(index + 1, ". ").concat(name),
33
+ formatScore(originScore),
34
+ formatScore(Number(weight)),
35
+ formatScore(score),
36
+ formatLowScore(parseInt(score.toString(), 10)),
37
+ index,
38
+ ]
39
+ : undefined;
40
+ }).filter(function (p) { return p; });
41
+ setSource(source);
42
+ }, [status, steps]);
43
+ return (_jsxs(Box, __assign({ width: "100%" }, { children: [_jsxs(Box, __assign({ height: 240, sx: { position: 'relative' } }, { children: [_jsx(RosePie, { source: source || [] }), _jsx(ScoreBigBall, { score: score || 0, status: status })] })), _jsx(ScoreLegend, { color: "rgb(59, 203, 121)" })] })));
44
+ };
45
+ export default Report;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import type { RosePieProps } from './interface';
3
+ declare const RosePie: FC<RosePieProps>;
4
+ export default RosePie;
@@ -0,0 +1,19 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import Chart from "../../../../components/Charts/Chart";
14
+ import { rosePieOptions } from './const';
15
+ var RosePie = function (_a) {
16
+ var _b = _a.source, source = _b === void 0 ? [] : _b;
17
+ return _jsx(Chart, { options: __assign(__assign({}, rosePieOptions), { dataset: { source: source } }) });
18
+ };
19
+ export default RosePie;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ScoreProps } from './interface';
3
+ declare const Score: FC<ScoreProps>;
4
+ export default Score;
@@ -0,0 +1,34 @@
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 { useEffect, useState } from 'react';
14
+ import dayjs from 'dayjs';
15
+ import { Box, Popover, Typography, Button, DownloadIcon } from 'fbm-ui';
16
+ import { useAiReportStore } from "../../../../store/ai-report/global-store";
17
+ import { formatScore } from "../../../../utils/utils";
18
+ import { ScoreTypography, ScoreUnitTypography, RefreshIconRoot } from './styled';
19
+ import RankingRange from '../RankingRange';
20
+ import Bar from './Bar';
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("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;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ScoreBigBallProps } from './interface';
3
+ declare const ScoreBigBall: FC<ScoreBigBallProps>;
4
+ export default ScoreBigBall;
@@ -0,0 +1,26 @@
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, Fragment as _Fragment } from "react/jsx-runtime";
13
+ import { formatScore } from "../../../../utils/utils";
14
+ import BigBallSvg from "../../../../components/BigBallSvg";
15
+ import { ScoreBigBallRoot } from './styled';
16
+ var ScoreBigBall = function (_a) {
17
+ var score = _a.score, status = _a.status;
18
+ return (_jsxs(_Fragment, { children: [_jsxs(ScoreBigBallRoot, __assign({ style: { 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: 20, fontWeight: 'bold' } }, { children: formatScore(score) > 100 ? 100 : formatScore(score) })), _jsx("span", __assign({ style: { marginLeft: '2px', fontSize: '12px' } }, { children: "\u5206" }))] })))] })), status === 2 && (_jsx("div", { style: {
19
+ position: 'absolute',
20
+ top: 0,
21
+ right: 0,
22
+ bottom: 0,
23
+ left: 0,
24
+ } }))] }));
25
+ };
26
+ export default ScoreBigBall;
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ScoreLegendProps } from './interface';
3
+ declare const ScoreLegend: FC<ScoreLegendProps>;
4
+ export default ScoreLegend;
@@ -0,0 +1,33 @@
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, Typography, Tooltip, InfoIcon } from 'fbm-ui';
15
+ import { useAiReportStore } from "../../../../store/ai-report/global-store";
16
+ import { INTERVIEW_STEP_STATUS } from "../../../../enum/ai-report";
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;
@@ -0,0 +1,34 @@
1
+ export declare const rosePieOptions: {
2
+ legend: {
3
+ show: boolean;
4
+ };
5
+ tooltip: {
6
+ position: string;
7
+ formatter: (params: any) => string;
8
+ };
9
+ series: {
10
+ type: string;
11
+ dimensions: string[];
12
+ radius: number[];
13
+ roseType: string;
14
+ label: {
15
+ formatter: (params: any) => any;
16
+ position: string;
17
+ fontWeight: string;
18
+ fontSize: number;
19
+ fontFamily: string;
20
+ };
21
+ minShowLabelAngle: number;
22
+ stillShowZeroSum: boolean;
23
+ hoverAnimation: boolean;
24
+ encode: {
25
+ value: string;
26
+ weight: string;
27
+ };
28
+ itemStyle: {
29
+ color: (params: any) => string;
30
+ borderColor: string;
31
+ borderWidth: number;
32
+ };
33
+ }[];
34
+ };
@@ -0,0 +1,77 @@
1
+ import { RosePieColors } from "../../../../constants/ai-report";
2
+ export var rosePieOptions = {
3
+ legend: {
4
+ show: false,
5
+ },
6
+ tooltip: {
7
+ position: 'bottom',
8
+ formatter: function (params) {
9
+ var data = params.data;
10
+ var title = data[1];
11
+ if (title.length > 15) {
12
+ title = title.split(/(.{15})/).filter(function (x) { return x; });
13
+ }
14
+ else {
15
+ title = [title];
16
+ }
17
+ var scoreTxt = data[4] === -1 ? '候选人未作答' : "\u5F97\u5206: ".concat(data[4], "\u5206");
18
+ return "<div>\n <div>".concat(title.map(function (t) { return "".concat(t, "<br />"); }).join(''), "</div>\n <div style=\"margin-top: 4px; font-size: 12px; color: rgba(255,255,255,0.96)\">\n ").concat(scoreTxt, "\n </div>\n </div>");
19
+ },
20
+ },
21
+ series: [
22
+ {
23
+ type: 'pie',
24
+ dimensions: ['type', 'title', 'origin', 'weight', 'final', 'finalInt', 'processIndex'],
25
+ radius: [45, 100],
26
+ roseType: 'radius',
27
+ label: {
28
+ formatter: function (params) {
29
+ var final = params.data[4];
30
+ if (final <= 8)
31
+ return '';
32
+ return final.toString();
33
+ },
34
+ position: 'inside',
35
+ fontWeight: 'bold',
36
+ fontSize: 14,
37
+ fontFamily: 'DIN Alternate Bold',
38
+ },
39
+ minShowLabelAngle: 20,
40
+ stillShowZeroSum: false,
41
+ hoverAnimation: false,
42
+ encode: {
43
+ value: 'finalInt',
44
+ weight: 'weight',
45
+ },
46
+ itemStyle: {
47
+ color: function (params) {
48
+ var type = params.data[0];
49
+ var final = params.data[4];
50
+ if (final === -1) {
51
+ return '#fbfbfb';
52
+ }
53
+ if (type === 2) {
54
+ if (final < 8) {
55
+ return 'rgba(59, 203, 120, 0.2)';
56
+ }
57
+ if (final < 20) {
58
+ return 'rgba(59, 203, 120, 0.4)';
59
+ }
60
+ return 'rgba(59, 203, 120, 0.6)';
61
+ }
62
+ var processIndex = params.data[6];
63
+ var color = RosePieColors[processIndex] || RosePieColors[RosePieColors.length - 1];
64
+ if (final < 8) {
65
+ return color[0];
66
+ }
67
+ if (final < 20) {
68
+ return color[1];
69
+ }
70
+ return color[2];
71
+ },
72
+ borderColor: '#ffffff',
73
+ borderWidth: 1,
74
+ },
75
+ },
76
+ ],
77
+ };
@@ -0,0 +1,4 @@
1
+ import { FC } from 'react';
2
+ import { ScoreReportProps } from './interface';
3
+ declare const ScoreReport: FC<ScoreReportProps>;
4
+ export default ScoreReport;