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,47 @@
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 { useCallback } from 'react';
14
+ import { Box, Popover, Button, Typography, AddCircleIcon } from 'fbm-ui';
15
+ import { useSetState } from 'ahooks';
16
+ import { List, ListItem, ListItemButton, ListItemIcon, ListItemText, FormGroup, FormControlLabel, Switch } from '@mui/material';
17
+ import LanguageIcon from '@mui/icons-material/Language';
18
+ import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
19
+ import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
20
+ import { ADD_QUESTION_TYPE_LIST } from "../../../../constants/ai-question";
21
+ import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
22
+ import SvgIcon from "../../../../components/SvgIcon";
23
+ import { uniqueId } from "../../../../utils/utils";
24
+ import { defaultQuestionParams } from '../QuestionUpdate/const';
25
+ import BaseAccordion from '../BaseAccordion';
26
+ var AiEvaluation = function () {
27
+ var updateQuestionState = useUpdateQuestionStore().updateQuestionState;
28
+ var aiEvaluationData = useQuestionTemplateStore().aiEvaluationData;
29
+ var _a = useSetState({
30
+ addQuestionOpen: false,
31
+ showOnlyAITest: false,
32
+ }), state = _a[0], setState = _a[1];
33
+ var addQuestionOpen = state.addQuestionOpen, showOnlyAITest = state.showOnlyAITest;
34
+ var handleClickAdd = useCallback(function (aiShowType) {
35
+ setState({ addQuestionOpen: false });
36
+ updateQuestionState({ open: true, aiShowType: aiShowType, token: '', index: -1, item: __assign(__assign({}, defaultQuestionParams), { aiShowType: aiShowType, token: uniqueId() }) });
37
+ }, [setState, updateQuestionState]);
38
+ var content = (_jsx(List, { children: ADD_QUESTION_TYPE_LIST.map(function (_a) {
39
+ var title = _a.title, desc = _a.desc, type = _a.type;
40
+ return (_jsx(ListItem, __assign({ disablePadding: true }, { children: _jsxs(ListItemButton, __assign({ onClick: function () { return handleClickAdd(type); } }, { children: [_jsx(ListItemIcon, __assign({ sx: { minWidth: 40 } }, { children: type === ADD_QUESTION_TYPE.FREE ? _jsx(SvgIcon, { name: "free" }) : _jsx(LanguageIcon, {}) })), _jsx(ListItemText, { primary: title, secondary: desc })] })) }), "question_type_".concat(type)));
41
+ }) }));
42
+ return (_jsxs(Box, { children: [_jsx(Box, __assign({ textAlign: "center", padding: 1 }, { children: _jsx(Popover, __assign({ open: addQuestionOpen, arrow: false, content: content, onClickAway: function () { return setState({ addQuestionOpen: false }); } }, { children: _jsx(Button, __assign({ variant: "text", icon: _jsx(AddCircleIcon, {}), onClick: function () { return setState({ addQuestionOpen: true }); } }, { children: "\u65B0\u589E\u81EA\u5B9A\u4E49\u9898\u76EE" })) })) })), aiEvaluationData.map(function (_a, index) {
43
+ var name = _a.name, list = _a.list;
44
+ return (_jsxs(Box, { children: [_jsx(Typography, __assign({ fontSize: 12, lineHeight: 1.5, color: "rgba(0, 0, 0, 0.86)", mb: 1 }, { children: name })), index === 0 && (_jsx(Box, __assign({ margin: "0 0 8px 4px" }, { children: _jsx(FormGroup, { children: _jsx(FormControlLabel, { control: _jsx(Switch, { size: "small", defaultChecked: showOnlyAITest }), label: _jsx(Typography, __assign({ fontSize: 12, lineHeight: 1.5, color: "rgba(0, 0, 0, 0.56)" }, { children: "\u53EA\u770B\u53EFAI\u8BC4\u5206\u7684\u9898" })), onChange: function (e, v) { return setState({ showOnlyAITest: v }); } }) }) }))), list.map(function (item, i) { return (_jsx(BaseAccordion, __assign({ index: i, isShowOnlyAITest: showOnlyAITest, isShowDesc: index !== 0, isShowSummaryAction: index !== 0, isShowConfirm: index !== 0 }, item), item.name + i)); })] }, name));
45
+ })] }));
46
+ };
47
+ export default AiEvaluation;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const HistoryPattern: FC;
3
+ export default HistoryPattern;
@@ -0,0 +1,20 @@
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 { Box } from 'fbm-ui';
14
+ import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
15
+ import BaseAccordion from '../BaseAccordion';
16
+ var HistoryPattern = function () {
17
+ var historyPatterns = useAiQuestionStore().historyPatterns;
18
+ return (_jsx(Box, __assign({ sx: { mt: '12px' } }, { children: historyPatterns === null || historyPatterns === void 0 ? void 0 : historyPatterns.map(function (item, i) { return (_jsx(BaseAccordion, __assign({ index: i, isShowDesc: true, isShowSummaryAction: true, isShowConfirm: true, isShowPreview: false }, item), item.positionName + i)); }) })));
19
+ };
20
+ export default HistoryPattern;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const QuestionTemplateSkeleton: FC;
3
+ export default QuestionTemplateSkeleton;
@@ -0,0 +1,17 @@
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 { Stack, Skeleton, Paper } from '@mui/material';
14
+ var QuestionTemplateSkeleton = function () {
15
+ return (_jsxs(Stack, __assign({ spacing: 2 }, { children: [_jsx(Paper, __assign({ elevation: 2 }, { children: _jsx(Skeleton, { variant: "text", width: 127, height: 8, sx: { margin: '25px 16px' } }) })), _jsx(Paper, __assign({ elevation: 2 }, { children: _jsx(Skeleton, { variant: "text", width: 127, height: 8, sx: { margin: '25px 16px' } }) })), _jsx(Paper, __assign({ elevation: 2 }, { children: _jsx(Skeleton, { variant: "text", width: 127, height: 8, sx: { margin: '25px 16px' } }) }))] })));
16
+ };
17
+ export default QuestionTemplateSkeleton;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const QuestionTemplate: FC;
3
+ export default QuestionTemplate;
@@ -0,0 +1,38 @@
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 { useState } from 'react';
14
+ import { useRequest } from 'ahooks';
15
+ import { Box } from 'fbm-ui';
16
+ import TabContext from '@mui/lab/TabContext';
17
+ import { PostAiModelQuestions } from "../../../../services/ai-question";
18
+ import { useAiQuestionStore } from "../../../../store/ai-question/global-store";
19
+ import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
20
+ import AiEvaluation from './AiEvaluation';
21
+ import HistoryPattern from './HistoryPattern';
22
+ import Skeleton from './Skeleton';
23
+ import { CardTabs, CardTab, CardTabPanel } from './styled';
24
+ var QuestionTemplate = function () {
25
+ var historyPatterns = useAiQuestionStore().historyPatterns;
26
+ var updateAiEvaluationData = useQuestionTemplateStore().updateAiEvaluationData;
27
+ var _a = useState('1'), value = _a[0], setValue = _a[1];
28
+ var loading = useRequest(PostAiModelQuestions, {
29
+ manual: false,
30
+ onSuccess: function (_a) {
31
+ var data = _a.data;
32
+ return updateAiEvaluationData(data);
33
+ },
34
+ }).loading;
35
+ var handleChange = function (e, v) { return setValue(v); };
36
+ return (_jsx(Box, __assign({ sx: { position: 'relative' } }, { children: loading ? (_jsx(Skeleton, {})) : (_jsxs(TabContext, __assign({ value: value }, { children: [_jsxs(CardTabs, __assign({ value: value, onChange: handleChange }, { children: [_jsx(CardTab, { label: "AI\u6D4B\u8BC4", value: "1" }), _jsx(CardTab, { label: "\u5DF2\u6709\u5C97\u4F4D\u6A21\u578B", value: "2", disabled: historyPatterns && (historyPatterns === null || historyPatterns === void 0 ? void 0 : historyPatterns.length) === 0 })] })), _jsx(CardTabPanel, __assign({ value: "1" }, { children: _jsx(AiEvaluation, {}) })), _jsx(CardTabPanel, __assign({ value: "2" }, { children: _jsx(HistoryPattern, {}) }))] }))) })));
37
+ };
38
+ export default QuestionTemplate;
@@ -0,0 +1,43 @@
1
+ import { BaseAiAbilityParams } from '@/modules/ai-question/interface';
2
+ export interface AiEvaluationListExtra {
3
+ expect: string;
4
+ target: string;
5
+ model?: number;
6
+ readText: string;
7
+ decisionMaxScore?: number;
8
+ icon: string;
9
+ riskMaxScore?: number;
10
+ maxScore?: number;
11
+ }
12
+ export interface AiEvaluationList {
13
+ aiAbilities: BaseAiAbilityParams[];
14
+ name: string;
15
+ token: string;
16
+ type: number;
17
+ desc: string;
18
+ category: string[];
19
+ isDefault: boolean;
20
+ duration: number;
21
+ prepareTime: number;
22
+ extra: AiEvaluationListExtra;
23
+ broadcastType: number;
24
+ aiSwitch: number;
25
+ aiType: number;
26
+ videoUrl: string;
27
+ }
28
+ export interface AiEvaluationDataList {
29
+ name: string;
30
+ positionName?: string;
31
+ list: AiEvaluationList[];
32
+ }
33
+ export interface AiEvaluationData {
34
+ name: string;
35
+ list: AiEvaluationDataList[];
36
+ }
37
+ export interface AiEvaluationDataRes {
38
+ data: AiEvaluationData[];
39
+ }
40
+ export interface AiEvaluationState {
41
+ addQuestionOpen: boolean;
42
+ showOnlyAITest: boolean;
43
+ }
@@ -0,0 +1,87 @@
1
+ /// <reference types="react" />
2
+ export declare const CardTabs: import("@emotion/styled").StyledComponent<{
3
+ children?: import("react").ReactNode;
4
+ } & Omit<{
5
+ action?: import("react").Ref<import("@mui/material").TabsActions> | undefined;
6
+ allowScrollButtonsMobile?: boolean | undefined;
7
+ 'aria-label'?: string | undefined;
8
+ 'aria-labelledby'?: string | undefined;
9
+ centered?: boolean | undefined;
10
+ children?: import("react").ReactNode;
11
+ classes?: Partial<import("@mui/material").TabsClasses> | undefined;
12
+ indicatorColor?: "secondary" | "primary" | undefined;
13
+ onChange?: ((event: import("react").SyntheticEvent<Element, Event>, value: any) => void) | undefined;
14
+ orientation?: "vertical" | "horizontal" | undefined;
15
+ ScrollButtonComponent?: import("react").ElementType<any> | undefined;
16
+ scrollButtons?: boolean | "auto" | undefined;
17
+ selectionFollowsFocus?: boolean | undefined;
18
+ TabIndicatorProps?: Partial<import("react").HTMLAttributes<HTMLDivElement>> | undefined;
19
+ TabScrollButtonProps?: Partial<import("@mui/material").TabScrollButtonProps> | undefined;
20
+ textColor?: "inherit" | "secondary" | "primary" | undefined;
21
+ value?: any;
22
+ variant?: "fullWidth" | "standard" | "scrollable" | undefined;
23
+ visibleScrollbar?: boolean | undefined;
24
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
25
+ }, "children" | "value"> & import("@mui/material/OverridableComponent").CommonProps & Omit<{
26
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
27
+ centerRipple?: boolean | undefined;
28
+ children?: import("react").ReactNode;
29
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
30
+ disabled?: boolean | undefined;
31
+ disableRipple?: boolean | undefined;
32
+ disableTouchRipple?: boolean | undefined;
33
+ focusRipple?: boolean | undefined;
34
+ focusVisibleClassName?: string | undefined;
35
+ LinkComponent?: import("react").ElementType<any> | undefined;
36
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
37
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
38
+ tabIndex?: number | undefined;
39
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
40
+ } & Omit<{
41
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
42
+ centerRipple?: boolean | undefined;
43
+ children?: import("react").ReactNode;
44
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
45
+ disabled?: boolean | undefined;
46
+ disableRipple?: boolean | undefined;
47
+ disableTouchRipple?: boolean | undefined;
48
+ focusRipple?: boolean | undefined;
49
+ focusVisibleClassName?: string | undefined;
50
+ LinkComponent?: import("react").ElementType<any> | undefined;
51
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
52
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
53
+ tabIndex?: number | undefined;
54
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
55
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "key" | keyof import("react").ButtonHTMLAttributes<HTMLButtonElement>> & {
56
+ ref?: ((instance: HTMLButtonElement | null) => void) | import("react").RefObject<HTMLButtonElement> | null | undefined;
57
+ }, "children" | "tabIndex" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps">, "children" | "aria-label" | "aria-labelledby" | "onChange" | "orientation" | keyof import("@mui/material/OverridableComponent").CommonProps | "sx" | "variant" | "action" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
58
+ export declare const CardTab: import("@emotion/styled").StyledComponent<{
59
+ children?: null | undefined;
60
+ classes?: Partial<import("@mui/material/Tab").TabClasses> | undefined;
61
+ disabled?: boolean | undefined;
62
+ disableFocusRipple?: boolean | undefined;
63
+ icon?: string | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
64
+ iconPosition?: "end" | "top" | "bottom" | "start" | undefined;
65
+ label?: import("react").ReactNode;
66
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
67
+ value?: any;
68
+ wrapped?: boolean | undefined;
69
+ } & Omit<{
70
+ action?: import("react").Ref<import("@mui/material").ButtonBaseActions> | undefined;
71
+ centerRipple?: boolean | undefined;
72
+ children?: import("react").ReactNode;
73
+ classes?: Partial<import("@mui/material").ButtonBaseClasses> | undefined;
74
+ disabled?: boolean | undefined;
75
+ disableRipple?: boolean | undefined;
76
+ disableTouchRipple?: boolean | undefined;
77
+ focusRipple?: boolean | undefined;
78
+ focusVisibleClassName?: string | undefined;
79
+ LinkComponent?: import("react").ElementType<any> | undefined;
80
+ onFocusVisible?: import("react").FocusEventHandler<any> | undefined;
81
+ sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
82
+ tabIndex?: number | undefined;
83
+ TouchRippleProps?: Partial<import("@mui/material/ButtonBase/TouchRipple").TouchRippleProps> | undefined;
84
+ }, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
85
+ ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
86
+ }, "children" | "tabIndex" | keyof import("@mui/material/OverridableComponent").CommonProps | "label" | "sx" | "disabled" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "value" | "disableFocusRipple" | "icon" | "iconPosition" | "wrapped"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
87
+ export declare const CardTabPanel: import("@emotion/styled").StyledComponent<import("@mui/lab/TabPanel").TabPanelProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
@@ -0,0 +1,33 @@
1
+ import { styled } from 'fbm-ui';
2
+ import Tab from '@mui/material/Tab';
3
+ import TabList from '@mui/lab/TabList';
4
+ import TabPanel from '@mui/lab/TabPanel';
5
+ export var CardTabs = styled(TabList)(function (_a) {
6
+ var _b, _c;
7
+ var theme = _a.theme;
8
+ return ({
9
+ minHeight: 0,
10
+ '& .MuiTabs-indicator': {
11
+ display: 'none',
12
+ },
13
+ '& .Mui-selected': {
14
+ borderColor: (_c = (_b = theme.palette) === null || _b === void 0 ? void 0 : _b.primary) === null || _c === void 0 ? void 0 : _c.main,
15
+ },
16
+ });
17
+ });
18
+ export var CardTab = styled(Tab)({
19
+ width: '122px',
20
+ height: '30px',
21
+ border: '1px solid rgba(0, 0, 0, 0.08)',
22
+ padding: 0,
23
+ minHeight: 0,
24
+ '&:first-child': {
25
+ borderRadius: '3px 0 0 3px',
26
+ },
27
+ '&:last-child': {
28
+ borderRadius: '0 3px 3px 0',
29
+ },
30
+ });
31
+ export var CardTabPanel = styled(TabPanel)({
32
+ padding: 0,
33
+ });
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import { QuestionFormProps } from './interface';
3
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<QuestionFormProps & React.RefAttributes<any>>>;
4
+ export default _default;
@@ -0,0 +1,91 @@
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, Fragment as _Fragment } from "react/jsx-runtime";
49
+ import { memo, useEffect, forwardRef, useImperativeHandle } from 'react';
50
+ import { Box, Form, FormItem, Select, useForm } from 'fbm-ui';
51
+ import { ADD_QUESTION_TYPE } from "../../../../enum/ai-question";
52
+ import { broadcastModeOptions, prepareTimeOptions, durationOptions } from './const';
53
+ import AiAnalysis from '../AiAnalysis';
54
+ import VideoVoice from './VideoVoice';
55
+ var QuestionForm = forwardRef(function (props, ref) {
56
+ var aiShowType = props.aiShowType, initialValues = props.initialValues, values = props.values, preview = props.preview, onValuesChange = props.onValuesChange, onSubmit = props.onSubmit;
57
+ var form = useForm({
58
+ initialValues: initialValues,
59
+ onSubmit: function (values) { return __awaiter(void 0, void 0, void 0, function () {
60
+ return __generator(this, function (_a) {
61
+ switch (_a.label) {
62
+ case 0: return [4 /*yield*/, form.validateForm(values)];
63
+ case 1:
64
+ _a.sent();
65
+ onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit(values);
66
+ return [2 /*return*/];
67
+ }
68
+ });
69
+ }); },
70
+ });
71
+ useImperativeHandle(ref, function () { return ({
72
+ handleValues: function () { return form.values; },
73
+ handleSubmit: function () { return form.handleSubmit(); },
74
+ setFormValues: function (values) { return form.setValues(__assign(__assign({}, form.values), values)); },
75
+ }); });
76
+ useEffect(function () {
77
+ values && form.setValues(values);
78
+ // eslint-disable-next-line react-hooks/exhaustive-deps
79
+ }, [values]);
80
+ useEffect(function () {
81
+ onValuesChange === null || onValuesChange === void 0 ? void 0 : onValuesChange(form.values);
82
+ }, [form.values, onValuesChange]);
83
+ return (_jsxs(_Fragment, { children: [_jsxs(Form, __assign({}, form, { children: [_jsx(FormItem, { required: true, disabled: preview, name: "name", label: "\u6807\u9898", placeholder: "\u6807\u9898\uFF08\u7528\u4E8E\u7CFB\u7EDF\u7BA1\u7406\uFF09", max: 15 }), !preview && aiShowType === ADD_QUESTION_TYPE.FREE && (_jsx(FormItem, __assign({ required: true, disabled: preview, name: "broadcastType", label: "\u64AD\u62A5\u65B9\u5F0F" }, { children: _jsx(Select, { placeholder: "\u64AD\u62A5\u65B9\u5F0F", options: broadcastModeOptions }) }))), form.values.broadcastType === 1 || preview ? (_jsx(FormItem, { required: true, disabled: preview, name: "desc", label: "\u9762\u8BD5\u5185\u5BB9", max: 300, placeholder: "\u9762\u8BD5\u5185\u5BB9\uFF08\u7CFB\u7EDF\u5C06\u6839\u636E\u6B64\u5185\u5BB9\u5411\u5019\u9009\u4EBA\u8FDB\u884C\u8BED\u97F3\u64AD\u62A5\uFF09" })) : (_jsx(VideoVoice, {})), aiShowType === ADD_QUESTION_TYPE.LANGUAGE && (_jsx(FormItem, { sx: { height: 'auto', mb: 2 }, required: true, name: "readText", label: "\u6717\u8BFB\u5185\u5BB9", max: 240, InputProps: {
84
+ rows: 3,
85
+ multiline: true,
86
+ placeholder: '朗读内容(候选人将根据此内容进行朗读)',
87
+ sx: { padding: 0 },
88
+ } })), _jsxs(Box, __assign({ display: "flex" }, { children: [_jsx(FormItem, __assign({ style: { height: 64, flex: '1 0', marginRight: 8 }, required: true, disabled: preview, name: "prepareTime", label: "\u51C6\u5907\u65F6\u957F" }, { children: _jsx(Select, { options: prepareTimeOptions }) })), _jsx(FormItem, __assign({ style: { height: 64, flex: '1 0' }, required: true, disabled: preview, name: "duration", label: "\u56DE\u7B54\u65F6\u957F" }, { children: _jsx(Select, { options: durationOptions }) }))] }))] })), !preview && _jsx(AiAnalysis, {})] }));
89
+ });
90
+ QuestionForm.displayName = 'QuestionForm';
91
+ export default memo(QuestionForm);
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const VideoVoice: FC;
3
+ export default VideoVoice;
@@ -0,0 +1,63 @@
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 { useRequest } from 'ahooks';
14
+ import { FormItem, Upload, Typography, Box, Button, UploadIcon, Message } from 'fbm-ui';
15
+ import { Checkbox, FormGroup, FormControlLabel } from '@mui/material';
16
+ import { PostCommonUpload } from "../../../../services/ai-question";
17
+ import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
18
+ import { isExceedMaxVideoFileSize } from "../../../../utils/utils";
19
+ var VideoVoice = function () {
20
+ var _a, _b, _c, _d;
21
+ var _e = useUpdateQuestionStore(function (store) { return [store.questionState]; }), questionState = _e.questionState, updateQuestionState = _e.updateQuestionState;
22
+ var item = questionState.item;
23
+ var _f = useRequest(PostCommonUpload, {
24
+ manual: true,
25
+ onSuccess: function (_a) {
26
+ var data = _a.data;
27
+ var firstData = data[0];
28
+ updateQuestionState({
29
+ item: __assign(__assign({}, item), { videoBroadcast: __assign(__assign({}, item === null || item === void 0 ? void 0 : item.videoBroadcast), { videoUrl: firstData.url }) }),
30
+ });
31
+ },
32
+ }), loading = _f.loading, postCommonUpload = _f.run;
33
+ var handleVideoRetry = function (e, checked) {
34
+ updateQuestionState({
35
+ item: __assign(__assign({}, item), { videoBroadcast: __assign(__assign({}, item === null || item === void 0 ? void 0 : item.videoBroadcast), { videoRetry: checked ? 1 : 0 }) }),
36
+ });
37
+ };
38
+ var uploadProps = {
39
+ type: 'custom',
40
+ showUploadList: false,
41
+ accept: '.mp4',
42
+ maxCount: 1,
43
+ customRequest: function (_a) {
44
+ var file = _a.file;
45
+ console.log(file);
46
+ if (isExceedMaxVideoFileSize(file.size)) {
47
+ Message.error('视频大小超过500M,请重新上传!');
48
+ }
49
+ else {
50
+ var formData = new FormData();
51
+ formData.append('files', file);
52
+ postCommonUpload(formData);
53
+ }
54
+ },
55
+ };
56
+ return (_jsxs(Box, __assign({ display: "flex", mb: 3 }, { children: [_jsxs(Box, __assign({ width: 168, mr: 2, textAlign: "center" }, { children: [_jsx("video", { style: { width: '100%', height: 292, backgroundColor: 'rgb(222, 222, 222)' }, src: (_a = item === null || item === void 0 ? void 0 : item.videoBroadcast) === null || _a === void 0 ? void 0 : _a.videoUrl, controls: !!((_b = item === null || item === void 0 ? void 0 : item.videoBroadcast) === null || _b === void 0 ? void 0 : _b.videoUrl) }), _jsx(Upload, __assign({}, uploadProps, { children: _jsx(Button, __assign({ variant: "outlined", color: "inherit", icon: _jsx(UploadIcon, {}), loading: loading }, { children: ((_c = item === null || item === void 0 ? void 0 : item.videoBroadcast) === null || _c === void 0 ? void 0 : _c.videoUrl) ? '重新上传' : '上传视频' })) }))] })), _jsxs(Box, __assign({ flex: "1 0" }, { children: [_jsx(FormItem, { required: true, name: "desc", label: "\u9762\u8BD5\u5185\u5BB9", max: 300, InputProps: {
57
+ rows: 5,
58
+ multiline: true,
59
+ placeholder: '面试内容(系统将根据此内容向候选人进行语音播报)',
60
+ sx: { padding: 0 },
61
+ } }), _jsx(FormGroup, __assign({ sx: { mt: 9 } }, { children: _jsx(FormControlLabel, { control: _jsx(Checkbox, { checked: ((_d = item === null || item === void 0 ? void 0 : item.videoBroadcast) === null || _d === void 0 ? void 0 : _d.videoRetry) === 1 }), label: _jsx(Typography, __assign({ variant: "body2" }, { children: "\u5141\u8BB8\u91CD\u590D\u542C\u9898" })), onChange: handleVideoRetry }) })), _jsx(Typography, __assign({ fontSize: 12, variant: "body2", sx: { mb: 1 } }, { children: "\u89C6\u9891\u8BED\u97F3\u64AD\u62A5\u8BF4\u660E\uFF1A" })), _jsx(Typography, __assign({ fontSize: 12, variant: "body2", color: "secondary" }, { children: "1.\u89C6\u9891\u7D20\u6750\u5C3A\u5BF8\u5EFA\u8BAE\u4E3A\u7AD6\u7248\uFF0C\u6BD4\u4F8B\u63A7\u5236\u57289\uFF1A16 \uFF0C\u683C\u5F0F\u9650\u4E8E.mp4" })), _jsx(Typography, __assign({ fontSize: 12, variant: "body2", color: "secondary" }, { children: "2.\u89C6\u9891\u8BED\u97F3\u64AD\u62A5\u8FC7\u7A0B\u4E2D\uFF0C\u9762\u8BD5\u5185\u5BB9\u5C06\u4E0D\u8FDB\u884CAI\u8BED\u97F3\u64AD\u62A5\u5904\u7406" })), _jsx(Typography, __assign({ fontSize: 12, variant: "body2", color: "secondary" }, { children: "3.\u5982\u5141\u8BB8\u5019\u9009\u4EBA\u91CD\u590D\u542C\u9898\uFF0C\u5355\u9898\u5168\u7A0B\u91CD\u590D\u6B21\u6570\u4E3A3\u6B21\u3002" }))] }))] })));
62
+ };
63
+ export default VideoVoice;
@@ -0,0 +1,14 @@
1
+ import { QuestionParams } from './interface';
2
+ export declare const defaultQuestionParams: QuestionParams;
3
+ export declare const broadcastModeOptions: {
4
+ label: string;
5
+ value: number;
6
+ }[];
7
+ export declare const prepareTimeOptions: {
8
+ value: number;
9
+ label: string;
10
+ }[];
11
+ export declare const durationOptions: {
12
+ value: number;
13
+ label: string;
14
+ }[];
@@ -0,0 +1,53 @@
1
+ // 题目参数默认值
2
+ export var defaultQuestionParams = {
3
+ aiAbilities: [],
4
+ aiShowType: 1,
5
+ aiSwitch: 2,
6
+ aiType: 1,
7
+ answerStatus: 2,
8
+ broadcastType: 1,
9
+ desc: '',
10
+ duration: 30,
11
+ category: ['自定义'],
12
+ extra: {
13
+ expect: 'negative',
14
+ readText: '',
15
+ },
16
+ language: undefined,
17
+ name: '',
18
+ prepareTime: 3,
19
+ type: 1,
20
+ videoBroadcast: {
21
+ videoRetry: 0,
22
+ videoUrl: '',
23
+ },
24
+ weight: 0,
25
+ token: '',
26
+ originToken: '',
27
+ };
28
+ // 播报方式
29
+ export var broadcastModeOptions = [
30
+ {
31
+ label: 'AI语音播报',
32
+ value: 1,
33
+ },
34
+ {
35
+ label: '视频语音播报',
36
+ value: 2,
37
+ },
38
+ ];
39
+ // 准备时长
40
+ export var prepareTimeOptions = [
41
+ { value: 3, label: '3s' },
42
+ { value: 10, label: '10s' },
43
+ { value: 30, label: '30s' },
44
+ { value: 60, label: '1m' },
45
+ ];
46
+ // 答题时长
47
+ export var durationOptions = [
48
+ { value: 10, label: '10s' },
49
+ { value: 30, label: '30s' },
50
+ { value: 60, label: '1m' },
51
+ { value: 180, label: '3m' },
52
+ { value: 1200, label: '20m' },
53
+ ];
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const QuestionUpdate: FC;
3
+ export default QuestionUpdate;