eli-video-interview 1.2.35 → 1.2.36-alpha.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 (285) hide show
  1. package/esm/components/Charts/Chart.js +1 -1
  2. package/esm/components/react-photo-view/Photo.css +14 -0
  3. package/esm/components/react-photo-view/Photo.d.ts +18 -0
  4. package/esm/components/react-photo-view/Photo.js +54 -0
  5. package/esm/components/react-photo-view/PhotoBox.css +18 -0
  6. package/esm/components/react-photo-view/PhotoBox.d.ts +22 -0
  7. package/esm/components/react-photo-view/PhotoBox.js +302 -0
  8. package/esm/components/react-photo-view/PhotoPage.d.ts +9 -0
  9. package/esm/components/react-photo-view/PhotoPage.js +77 -0
  10. package/esm/components/react-photo-view/PhotoProvider.d.ts +14 -0
  11. package/esm/components/react-photo-view/PhotoProvider.js +98 -0
  12. package/esm/components/react-photo-view/PhotoSlider.css +125 -0
  13. package/esm/components/react-photo-view/PhotoSlider.d.ts +12 -0
  14. package/esm/components/react-photo-view/PhotoSlider.js +262 -0
  15. package/esm/components/react-photo-view/PhotoView.d.ts +30 -0
  16. package/esm/components/react-photo-view/PhotoView.js +48 -0
  17. package/esm/components/react-photo-view/components/ArrowLeft.d.ts +3 -0
  18. package/esm/components/react-photo-view/components/ArrowLeft.js +18 -0
  19. package/esm/components/react-photo-view/components/ArrowRight.d.ts +3 -0
  20. package/esm/components/react-photo-view/components/ArrowRight.js +18 -0
  21. package/esm/components/react-photo-view/components/CloseIcon.d.ts +3 -0
  22. package/esm/components/react-photo-view/components/CloseIcon.js +16 -0
  23. package/esm/components/react-photo-view/components/PreventScroll.d.ts +1 -0
  24. package/esm/components/react-photo-view/components/PreventScroll.js +12 -0
  25. package/esm/components/react-photo-view/components/SlidePortal.css +10 -0
  26. package/esm/components/react-photo-view/components/SlidePortal.d.ts +7 -0
  27. package/esm/components/react-photo-view/components/SlidePortal.js +30 -0
  28. package/esm/components/react-photo-view/components/Spinner.css +23 -0
  29. package/esm/components/react-photo-view/components/Spinner.d.ts +4 -0
  30. package/esm/components/react-photo-view/components/Spinner.js +29 -0
  31. package/esm/components/react-photo-view/hooks/useAdjacentImages.d.ts +5 -0
  32. package/esm/components/react-photo-view/hooks/useAdjacentImages.js +14 -0
  33. package/esm/components/react-photo-view/hooks/useAnimationOrigin.d.ts +6 -0
  34. package/esm/components/react-photo-view/hooks/useAnimationOrigin.js +72 -0
  35. package/esm/components/react-photo-view/hooks/useAnimationPosition.d.ts +2 -0
  36. package/esm/components/react-photo-view/hooks/useAnimationPosition.js +28 -0
  37. package/esm/components/react-photo-view/hooks/useAnimationVisible.d.ts +6 -0
  38. package/esm/components/react-photo-view/hooks/useAnimationVisible.js +49 -0
  39. package/esm/components/react-photo-view/hooks/useContinuousTap.d.ts +8 -0
  40. package/esm/components/react-photo-view/hooks/useContinuousTap.js +36 -0
  41. package/esm/components/react-photo-view/hooks/useDebounceCallback.d.ts +10 -0
  42. package/esm/components/react-photo-view/hooks/useDebounceCallback.js +48 -0
  43. package/esm/components/react-photo-view/hooks/useEventListener.d.ts +1 -0
  44. package/esm/components/react-photo-view/hooks/useEventListener.js +18 -0
  45. package/esm/components/react-photo-view/hooks/useForkedVariable.d.ts +5 -0
  46. package/esm/components/react-photo-view/hooks/useForkedVariable.js +17 -0
  47. package/esm/components/react-photo-view/hooks/useInitial.d.ts +1 -0
  48. package/esm/components/react-photo-view/hooks/useInitial.js +9 -0
  49. package/esm/components/react-photo-view/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  50. package/esm/components/react-photo-view/hooks/useIsomorphicLayoutEffect.js +3 -0
  51. package/esm/components/react-photo-view/hooks/useMethods.d.ts +4 -0
  52. package/esm/components/react-photo-view/hooks/useMethods.js +35 -0
  53. package/esm/components/react-photo-view/hooks/useMountedRef.d.ts +3 -0
  54. package/esm/components/react-photo-view/hooks/useMountedRef.js +12 -0
  55. package/esm/components/react-photo-view/hooks/useScrollPosition.d.ts +4 -0
  56. package/esm/components/react-photo-view/hooks/useScrollPosition.js +157 -0
  57. package/esm/components/react-photo-view/hooks/useSetState.d.ts +2 -0
  58. package/esm/components/react-photo-view/hooks/useSetState.js +15 -0
  59. package/esm/components/react-photo-view/hooks/useTargetScale.d.ts +4 -0
  60. package/esm/components/react-photo-view/hooks/useTargetScale.js +70 -0
  61. package/esm/components/react-photo-view/index.d.ts +4 -0
  62. package/esm/components/react-photo-view/index.js +4 -0
  63. package/esm/components/react-photo-view/photo-context.d.ts +11 -0
  64. package/esm/components/react-photo-view/photo-context.js +2 -0
  65. package/esm/components/react-photo-view/types.d.ts +196 -0
  66. package/esm/components/react-photo-view/types.js +1 -0
  67. package/esm/components/react-photo-view/utils/edgeHandle.d.ts +15 -0
  68. package/esm/components/react-photo-view/utils/edgeHandle.js +40 -0
  69. package/esm/components/react-photo-view/utils/getMultipleTouchPosition.d.ts +5 -0
  70. package/esm/components/react-photo-view/utils/getMultipleTouchPosition.js +11 -0
  71. package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.d.ts +9 -0
  72. package/esm/components/react-photo-view/utils/getPositionOnMoveOrScale.js +31 -0
  73. package/esm/components/react-photo-view/utils/getRotateSize.d.ts +4 -0
  74. package/esm/components/react-photo-view/utils/getRotateSize.js +11 -0
  75. package/esm/components/react-photo-view/utils/getSuitableImageSize.d.ts +10 -0
  76. package/esm/components/react-photo-view/utils/getSuitableImageSize.js +42 -0
  77. package/esm/components/react-photo-view/utils/isTouchDevice.d.ts +5 -0
  78. package/esm/components/react-photo-view/utils/isTouchDevice.js +5 -0
  79. package/esm/components/react-photo-view/utils/limitTarget.d.ts +5 -0
  80. package/esm/components/react-photo-view/utils/limitTarget.js +12 -0
  81. package/esm/components/react-photo-view/variables.d.ts +48 -0
  82. package/esm/components/react-photo-view/variables.js +48 -0
  83. package/esm/modules/ai-ability/Root.js +12 -3
  84. package/esm/modules/ai-ability/components/AddAbility/index.js +2 -2
  85. package/esm/modules/ai-ability/components/UpdateAbility/index.js +2 -2
  86. package/esm/modules/ai-ability/interface.d.ts +8 -1
  87. package/esm/modules/ai-ability-select/Root.d.ts +4 -0
  88. package/esm/modules/ai-ability-select/Root.js +47 -0
  89. package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +4 -0
  90. package/esm/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +22 -0
  91. package/esm/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +4 -0
  92. package/esm/modules/ai-ability-select/components/AiAbilityItem/index.js +42 -0
  93. package/esm/modules/ai-ability-select/components/AiAbilityItem/interface.d.ts +13 -0
  94. package/esm/modules/ai-ability-select/components/AiAbilityItem/interface.js +1 -0
  95. package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +2 -0
  96. package/esm/modules/ai-ability-select/components/AiAbilityItem/styled.js +8 -0
  97. package/esm/modules/ai-ability-select/components/AiAbilityList/index.d.ts +4 -0
  98. package/esm/modules/ai-ability-select/components/AiAbilityList/index.js +19 -0
  99. package/esm/modules/ai-ability-select/components/AiAbilityList/interface.d.ts +4 -0
  100. package/esm/modules/ai-ability-select/components/AiAbilityList/interface.js +1 -0
  101. package/esm/modules/ai-ability-select/index.d.ts +4 -0
  102. package/esm/modules/ai-ability-select/index.js +20 -0
  103. package/esm/modules/ai-ability-select/interface.d.ts +33 -0
  104. package/esm/modules/ai-ability-select/interface.js +1 -0
  105. package/esm/modules/ai-question/Root.d.ts +1 -1
  106. package/esm/modules/ai-question/Root.js +6 -6
  107. package/esm/modules/ai-question/components/QuestionModel/AutoCombine.d.ts +4 -0
  108. package/esm/modules/ai-question/components/QuestionModel/AutoCombine.js +19 -0
  109. package/esm/modules/ai-question/components/QuestionModel/Interactive.d.ts +3 -0
  110. package/esm/modules/ai-question/components/QuestionModel/Interactive.js +30 -0
  111. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.d.ts +4 -0
  112. package/esm/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +58 -0
  113. package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.d.ts +8 -0
  114. package/esm/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +62 -0
  115. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.d.ts +6 -0
  116. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.js +47 -0
  117. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +7 -0
  118. package/esm/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +60 -0
  119. package/esm/modules/ai-question/components/QuestionUpdate/styled.d.ts +6 -0
  120. package/esm/modules/ai-question/components/QuestionUpdate/styled.js +52 -0
  121. package/esm/modules/ai-report/components/ScoreReport/styled.d.ts +1 -1
  122. package/esm/modules/ai-report/components/VideoQuestion/BodyImages.d.ts +7 -0
  123. package/esm/modules/ai-report/components/VideoQuestion/BodyImages.js +40 -0
  124. package/esm/modules/ai-template/Root.js +32 -10
  125. package/esm/modules/ai-template/components/CapabilityModel/index.js +1 -1
  126. package/esm/modules/ai-template/components/QuestionList/Item.d.ts +2 -2
  127. package/esm/modules/ai-template/components/QuestionList/Item.js +28 -7
  128. package/esm/modules/ai-template/components/QuestionList/index.d.ts +2 -1
  129. package/esm/modules/ai-template/components/QuestionList/index.js +15 -4
  130. package/esm/modules/ai-template/components/QuestionList/interface.d.ts +6 -1
  131. package/esm/modules/ai-template/components/TemplateList/index.js +4 -4
  132. package/esm/modules/ai-template/components/TemplateList/styled.d.ts +1 -1
  133. package/esm/modules/ai-template/index.js +2 -2
  134. package/esm/modules/ai-template/interface.d.ts +2 -0
  135. package/esm/store/ai-ability-select/question-ability-store.d.ts +21 -0
  136. package/esm/store/ai-ability-select/question-ability-store.js +21 -0
  137. package/esm/store/ai-question/interview-room-store.d.ts +20 -0
  138. package/esm/store/ai-question/interview-room-store.js +21 -0
  139. package/esm/store/ai-template/global-store.d.ts +3 -0
  140. package/esm/store/ai-template/global-store.js +3 -3
  141. package/esm/store/enterprise/enterprise-store.d.ts +29 -0
  142. package/esm/store/enterprise/enterprise-store.js +13 -0
  143. package/lib/components/Charts/Chart.js +1 -1
  144. package/lib/components/react-photo-view/Photo.css +14 -0
  145. package/lib/components/react-photo-view/Photo.d.ts +18 -0
  146. package/lib/components/react-photo-view/Photo.js +60 -0
  147. package/lib/components/react-photo-view/PhotoBox.css +18 -0
  148. package/lib/components/react-photo-view/PhotoBox.d.ts +22 -0
  149. package/lib/components/react-photo-view/PhotoBox.js +308 -0
  150. package/lib/components/react-photo-view/PhotoPage.d.ts +9 -0
  151. package/lib/components/react-photo-view/PhotoPage.js +79 -0
  152. package/lib/components/react-photo-view/PhotoProvider.d.ts +14 -0
  153. package/lib/components/react-photo-view/PhotoProvider.js +104 -0
  154. package/lib/components/react-photo-view/PhotoSlider.css +125 -0
  155. package/lib/components/react-photo-view/PhotoSlider.d.ts +12 -0
  156. package/lib/components/react-photo-view/PhotoSlider.js +268 -0
  157. package/lib/components/react-photo-view/PhotoView.d.ts +30 -0
  158. package/lib/components/react-photo-view/PhotoView.js +53 -0
  159. package/lib/components/react-photo-view/components/ArrowLeft.d.ts +3 -0
  160. package/lib/components/react-photo-view/components/ArrowLeft.js +20 -0
  161. package/lib/components/react-photo-view/components/ArrowRight.d.ts +3 -0
  162. package/lib/components/react-photo-view/components/ArrowRight.js +20 -0
  163. package/lib/components/react-photo-view/components/CloseIcon.d.ts +3 -0
  164. package/lib/components/react-photo-view/components/CloseIcon.js +18 -0
  165. package/lib/components/react-photo-view/components/PreventScroll.d.ts +1 -0
  166. package/lib/components/react-photo-view/components/PreventScroll.js +15 -0
  167. package/lib/components/react-photo-view/components/SlidePortal.css +10 -0
  168. package/lib/components/react-photo-view/components/SlidePortal.d.ts +7 -0
  169. package/lib/components/react-photo-view/components/SlidePortal.js +32 -0
  170. package/lib/components/react-photo-view/components/Spinner.css +23 -0
  171. package/lib/components/react-photo-view/components/Spinner.d.ts +4 -0
  172. package/lib/components/react-photo-view/components/Spinner.js +31 -0
  173. package/lib/components/react-photo-view/hooks/useAdjacentImages.d.ts +5 -0
  174. package/lib/components/react-photo-view/hooks/useAdjacentImages.js +17 -0
  175. package/lib/components/react-photo-view/hooks/useAnimationOrigin.d.ts +6 -0
  176. package/lib/components/react-photo-view/hooks/useAnimationOrigin.js +78 -0
  177. package/lib/components/react-photo-view/hooks/useAnimationPosition.d.ts +2 -0
  178. package/lib/components/react-photo-view/hooks/useAnimationPosition.js +34 -0
  179. package/lib/components/react-photo-view/hooks/useAnimationVisible.d.ts +6 -0
  180. package/lib/components/react-photo-view/hooks/useAnimationVisible.js +55 -0
  181. package/lib/components/react-photo-view/hooks/useContinuousTap.d.ts +8 -0
  182. package/lib/components/react-photo-view/hooks/useContinuousTap.js +42 -0
  183. package/lib/components/react-photo-view/hooks/useDebounceCallback.d.ts +10 -0
  184. package/lib/components/react-photo-view/hooks/useDebounceCallback.js +51 -0
  185. package/lib/components/react-photo-view/hooks/useEventListener.d.ts +1 -0
  186. package/lib/components/react-photo-view/hooks/useEventListener.js +21 -0
  187. package/lib/components/react-photo-view/hooks/useForkedVariable.d.ts +5 -0
  188. package/lib/components/react-photo-view/hooks/useForkedVariable.js +20 -0
  189. package/lib/components/react-photo-view/hooks/useInitial.d.ts +1 -0
  190. package/lib/components/react-photo-view/hooks/useInitial.js +12 -0
  191. package/lib/components/react-photo-view/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
  192. package/lib/components/react-photo-view/hooks/useIsomorphicLayoutEffect.js +5 -0
  193. package/lib/components/react-photo-view/hooks/useMethods.d.ts +4 -0
  194. package/lib/components/react-photo-view/hooks/useMethods.js +38 -0
  195. package/lib/components/react-photo-view/hooks/useMountedRef.d.ts +3 -0
  196. package/lib/components/react-photo-view/hooks/useMountedRef.js +14 -0
  197. package/lib/components/react-photo-view/hooks/useScrollPosition.d.ts +4 -0
  198. package/lib/components/react-photo-view/hooks/useScrollPosition.js +163 -0
  199. package/lib/components/react-photo-view/hooks/useSetState.d.ts +2 -0
  200. package/lib/components/react-photo-view/hooks/useSetState.js +18 -0
  201. package/lib/components/react-photo-view/hooks/useTargetScale.d.ts +4 -0
  202. package/lib/components/react-photo-view/hooks/useTargetScale.js +76 -0
  203. package/lib/components/react-photo-view/index.d.ts +4 -0
  204. package/lib/components/react-photo-view/index.js +12 -0
  205. package/lib/components/react-photo-view/photo-context.d.ts +11 -0
  206. package/lib/components/react-photo-view/photo-context.js +4 -0
  207. package/lib/components/react-photo-view/types.d.ts +196 -0
  208. package/lib/components/react-photo-view/types.js +2 -0
  209. package/lib/components/react-photo-view/utils/edgeHandle.d.ts +15 -0
  210. package/lib/components/react-photo-view/utils/edgeHandle.js +45 -0
  211. package/lib/components/react-photo-view/utils/getMultipleTouchPosition.d.ts +5 -0
  212. package/lib/components/react-photo-view/utils/getMultipleTouchPosition.js +14 -0
  213. package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.d.ts +9 -0
  214. package/lib/components/react-photo-view/utils/getPositionOnMoveOrScale.js +34 -0
  215. package/lib/components/react-photo-view/utils/getRotateSize.d.ts +4 -0
  216. package/lib/components/react-photo-view/utils/getRotateSize.js +14 -0
  217. package/lib/components/react-photo-view/utils/getSuitableImageSize.d.ts +10 -0
  218. package/lib/components/react-photo-view/utils/getSuitableImageSize.js +48 -0
  219. package/lib/components/react-photo-view/utils/isTouchDevice.d.ts +5 -0
  220. package/lib/components/react-photo-view/utils/isTouchDevice.js +7 -0
  221. package/lib/components/react-photo-view/utils/limitTarget.d.ts +5 -0
  222. package/lib/components/react-photo-view/utils/limitTarget.js +17 -0
  223. package/lib/components/react-photo-view/variables.d.ts +48 -0
  224. package/lib/components/react-photo-view/variables.js +51 -0
  225. package/lib/modules/ai-ability/Root.js +12 -3
  226. package/lib/modules/ai-ability/components/AddAbility/index.js +2 -2
  227. package/lib/modules/ai-ability/components/UpdateAbility/index.js +2 -2
  228. package/lib/modules/ai-ability/interface.d.ts +8 -1
  229. package/lib/modules/ai-ability-select/Root.d.ts +4 -0
  230. package/lib/modules/ai-ability-select/Root.js +52 -0
  231. package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.d.ts +4 -0
  232. package/lib/modules/ai-ability-select/components/AiAbilityItem/AiAbilityDetail.js +24 -0
  233. package/lib/modules/ai-ability-select/components/AiAbilityItem/index.d.ts +4 -0
  234. package/lib/modules/ai-ability-select/components/AiAbilityItem/index.js +47 -0
  235. package/lib/modules/ai-ability-select/components/AiAbilityItem/interface.d.ts +13 -0
  236. package/lib/modules/ai-ability-select/components/AiAbilityItem/interface.js +2 -0
  237. package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.d.ts +2 -0
  238. package/lib/modules/ai-ability-select/components/AiAbilityItem/styled.js +11 -0
  239. package/lib/modules/ai-ability-select/components/AiAbilityList/index.d.ts +4 -0
  240. package/lib/modules/ai-ability-select/components/AiAbilityList/index.js +24 -0
  241. package/lib/modules/ai-ability-select/components/AiAbilityList/interface.d.ts +4 -0
  242. package/lib/modules/ai-ability-select/components/AiAbilityList/interface.js +2 -0
  243. package/lib/modules/ai-ability-select/index.d.ts +4 -0
  244. package/lib/modules/ai-ability-select/index.js +25 -0
  245. package/lib/modules/ai-ability-select/interface.d.ts +33 -0
  246. package/lib/modules/ai-ability-select/interface.js +2 -0
  247. package/lib/modules/ai-question/Root.d.ts +1 -1
  248. package/lib/modules/ai-question/Root.js +6 -6
  249. package/lib/modules/ai-question/components/QuestionModel/AutoCombine.d.ts +4 -0
  250. package/lib/modules/ai-question/components/QuestionModel/AutoCombine.js +21 -0
  251. package/lib/modules/ai-question/components/QuestionModel/Interactive.d.ts +3 -0
  252. package/lib/modules/ai-question/components/QuestionModel/Interactive.js +35 -0
  253. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.d.ts +4 -0
  254. package/lib/modules/ai-question/components/QuestionUpdate/RandomQuestion.js +63 -0
  255. package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.d.ts +8 -0
  256. package/lib/modules/ai-question/components/QuestionUpdate/SelectQuestion.js +64 -0
  257. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.d.ts +6 -0
  258. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoicePreview.js +49 -0
  259. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.d.ts +7 -0
  260. package/lib/modules/ai-question/components/QuestionUpdate/VideoVoiceUploader.js +62 -0
  261. package/lib/modules/ai-question/components/QuestionUpdate/styled.d.ts +6 -0
  262. package/lib/modules/ai-question/components/QuestionUpdate/styled.js +55 -0
  263. package/lib/modules/ai-report/components/ScoreReport/styled.d.ts +1 -1
  264. package/lib/modules/ai-report/components/VideoQuestion/BodyImages.d.ts +7 -0
  265. package/lib/modules/ai-report/components/VideoQuestion/BodyImages.js +45 -0
  266. package/lib/modules/ai-template/Root.js +32 -10
  267. package/lib/modules/ai-template/components/CapabilityModel/index.js +1 -1
  268. package/lib/modules/ai-template/components/QuestionList/Item.d.ts +2 -2
  269. package/lib/modules/ai-template/components/QuestionList/Item.js +27 -6
  270. package/lib/modules/ai-template/components/QuestionList/index.d.ts +2 -1
  271. package/lib/modules/ai-template/components/QuestionList/index.js +15 -4
  272. package/lib/modules/ai-template/components/QuestionList/interface.d.ts +6 -1
  273. package/lib/modules/ai-template/components/TemplateList/index.js +4 -4
  274. package/lib/modules/ai-template/components/TemplateList/styled.d.ts +1 -1
  275. package/lib/modules/ai-template/index.js +2 -2
  276. package/lib/modules/ai-template/interface.d.ts +2 -0
  277. package/lib/store/ai-ability-select/question-ability-store.d.ts +21 -0
  278. package/lib/store/ai-ability-select/question-ability-store.js +24 -0
  279. package/lib/store/ai-question/interview-room-store.d.ts +20 -0
  280. package/lib/store/ai-question/interview-room-store.js +24 -0
  281. package/lib/store/ai-template/global-store.d.ts +3 -0
  282. package/lib/store/ai-template/global-store.js +3 -3
  283. package/lib/store/enterprise/enterprise-store.d.ts +29 -0
  284. package/lib/store/enterprise/enterprise-store.js +16 -0
  285. package/package.json +2 -2
@@ -93,10 +93,10 @@ var AddAbility = function (props) {
93
93
  var _e = useState(InitialValues.workPlaceItems), workPlaceItems = _e[0], setWorkPlaceItems = _e[1];
94
94
  var _f = useRequest(PostQuestionCollectionUpsert, {
95
95
  manual: true,
96
- onSuccess: function () {
96
+ onSuccess: function (data) {
97
97
  Message.success('新增能力成功');
98
98
  onClose();
99
- onSuccess();
99
+ onSuccess(data === null || data === void 0 ? void 0 : data.data);
100
100
  },
101
101
  }), run = _f.run, loading = _f.loading;
102
102
  var _g = useRequest(CheckDuplicateCollection, {
@@ -63,10 +63,10 @@ var UpdateAbility = function (props) {
63
63
  var _g = useState(InitialValues.workPlaceItems), workPlaceItems = _g[0], setWorkPlaceItems = _g[1];
64
64
  var _h = useRequest(PostQuestionCollectionUpsert, {
65
65
  manual: true,
66
- onSuccess: function () {
66
+ onSuccess: function (data) {
67
67
  Message.success("\u7F16\u8F91\u80FD\u529B\u6210\u529F");
68
68
  onClose();
69
- onSuccess();
69
+ onSuccess(data === null || data === void 0 ? void 0 : data.data);
70
70
  },
71
71
  onError: function (err) {
72
72
  console.log(err);
@@ -1,5 +1,11 @@
1
+ interface AiAbilityToken {
2
+ token: string;
3
+ }
1
4
  export interface AiAbilityProps {
2
5
  ablilityNameLength?: number;
6
+ onCreate?: (data: AiAbilityToken) => void;
7
+ onEdit?: (data: AiAbilityToken) => void;
8
+ onDelete?: (data: AiAbilityToken) => void;
3
9
  }
4
10
  export interface QuestionCollectionList {
5
11
  name: string;
@@ -28,7 +34,7 @@ export interface AbilityProps {
28
34
  token?: string;
29
35
  ablilityNameLength?: number;
30
36
  onClose: () => void;
31
- onSuccess: () => void;
37
+ onSuccess: (data: any) => void;
32
38
  }
33
39
  export interface AiDefineItem {
34
40
  name: string;
@@ -51,3 +57,4 @@ export interface CheckDuplicateCollectionData {
51
57
  export interface CheckDuplicateCollectionRes {
52
58
  data: CheckDuplicateCollectionData;
53
59
  }
60
+ export {};
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AiAbilitySelectProps } from './interface';
3
+ declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<AiAbilitySelectProps & import("react").RefAttributes<any>>>;
4
+ export default _default;
@@ -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 AiAbilityList from './components/AiAbilityList';
14
+ import { GetAiAbilityList } from "../../services/ai-ability";
15
+ import { useAiAbilityListStore } from "../../store/ai-ability-select/question-ability-store";
16
+ import { useEnterpriseStore } from "../../store/enterprise/enterprise-store";
17
+ import { useRequest } from 'ahooks';
18
+ import { Box, Typography } from 'fbm-ui';
19
+ import { styled } from 'fbm-ui';
20
+ import { Stack } from 'fbm-ui/lib/mui';
21
+ import { forwardRef, memo, useEffect } from 'react';
22
+ var ScrollDialogContent = styled(Box)({
23
+ maxHeight: 'calc(100vh - 192px)',
24
+ overflow: 'scroll',
25
+ });
26
+ var AiAbilitySelectRoot = forwardRef(function (_a, ref) {
27
+ var jobToken = _a.jobToken, thirdToken = _a.thirdToken, token = _a.token;
28
+ var _b = useAiAbilityListStore(), aiAbilityList = _b.aiAbilityList, setAiAbilityList = _b.setAiAbilityList, selctedAbilitys = _b.selctedAbilitys;
29
+ var setEnterprise = useEnterpriseStore().setEnterprise;
30
+ var data = useRequest(function () { return GetAiAbilityList({ jobToken: jobToken, thirdToken: thirdToken }); }, {
31
+ refreshDeps: [jobToken, thirdToken],
32
+ }).data;
33
+ useEffect(function () {
34
+ var _a;
35
+ setAiAbilityList(((_a = data === null || data === void 0 ? void 0 : data.data.list) === null || _a === void 0 ? void 0 : _a.filter(function (v) {
36
+ return !token || !v.isNew || selctedAbilitys.includes(v.token);
37
+ })) || []);
38
+ // eslint-disable-next-line react-hooks/exhaustive-deps
39
+ }, [data, token, selctedAbilitys]);
40
+ useEffect(function () {
41
+ setEnterprise({ jobToken: jobToken, thirdToken: thirdToken });
42
+ // eslint-disable-next-line react-hooks/exhaustive-deps
43
+ }, [jobToken, thirdToken]);
44
+ return (_jsx(ScrollDialogContent, __assign({ ref: ref }, { children: _jsxs(Box, __assign({ display: "flex", flexDirection: "column", width: 760 }, { children: [_jsxs(Stack, __assign({ spacing: 2, mb: 2 }, { children: [_jsx(Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: "\u8BF7\u9009\u62E9\u8981\u4F18\u5148\u4F7F\u7528\u7684\u8003\u5BDF\u80FD\u529B\uFF0C\u4E5F\u53EF\u4EE5\u70B9\u51FB\u300C\u4E0B\u4E00\u6B65\u300D\u76F4\u63A5\u51FA\u9898" })), (aiAbilityList === null || aiAbilityList === void 0 ? void 0 : aiAbilityList.some(function (v) { return v.isNew; })) && (_jsxs(Stack, __assign({ direction: "row", spacing: 1, alignItems: "center" }, { children: [_jsx("img", { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn", alt: "", width: 38, height: 16 }), _jsx(Typography, __assign({ variant: "caption", color: "textSecondary" }, { children: "AI\u6839\u636E\u5C97\u4F4D\u4FE1\u606F\u751F\u6210\u7684\u80FD\u529B\uFF0C\u521B\u5EFA\u5B8C\u6B65\u9AA4\u540E\uFF0C\u4F1A\u81EA\u52A8\u5C06\u9009\u62E9\u7684\u65B0\u589E\u80FD\u529B\u52A0\u5165\u5230\u8BBE\u7F6E\u9875\u7684\u8003\u5BDF\u80FD\u529B\u5217\u8868\u4E2D\u3002" }))] })))] })), _jsx(AiAbilityList, { items: aiAbilityList })] })) })));
45
+ });
46
+ AiAbilitySelectRoot.displayName = 'AiAbilitySelectRoot';
47
+ export default memo(AiAbilitySelectRoot);
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AiAbilityDetailProps } from './interface';
3
+ declare const AiAbilityDetail: React.FC<AiAbilityDetailProps>;
4
+ export default AiAbilityDetail;
@@ -0,0 +1,22 @@
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, Typography } from 'fbm-ui';
14
+ import { Stack } from 'fbm-ui/lib/mui';
15
+ var AiAbilityDetail = function (_a) {
16
+ var detail = _a.detail;
17
+ return (_jsx(Box, __assign({ p: 2, maxHeight: 582, overflow: "scroll" }, { children: detail === null || detail === void 0 ? void 0 : detail.map(function (v) {
18
+ var _a;
19
+ return (_jsxs(Stack, __assign({ mb: 2, spacing: 1, width: 300 }, { children: [_jsx(Typography, __assign({ variant: "body2", fontWeight: 500 }, { children: v.name })), _jsx(Typography, __assign({ variant: "body2", color: "textSecondary" }, { children: (_a = v.items) === null || _a === void 0 ? void 0 : _a.join('\n') }))] }), v.name));
20
+ }) })));
21
+ };
22
+ export default AiAbilityDetail;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AiAbilityItemProps } from './interface';
3
+ declare const AiAbilityItem: React.FC<AiAbilityItemProps>;
4
+ export default AiAbilityItem;
@@ -0,0 +1,42 @@
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
+ if (ar || !(i in from)) {
15
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
+ ar[i] = from[i];
17
+ }
18
+ }
19
+ return to.concat(ar || Array.prototype.slice.call(from));
20
+ };
21
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
22
+ import AiAbilityDetail from './AiAbilityDetail';
23
+ import { NewBadge } from './styled';
24
+ import { useAiAbilityListStore } from "../../../../store/ai-ability-select/question-ability-store";
25
+ import { Box, Checkbox, Paper, Popover, Typography } from 'fbm-ui';
26
+ var AiAbilityItem = function (_a) {
27
+ var name = _a.name, isNew = _a.isNew, token = _a.token, detail = _a.detail;
28
+ var _b = useAiAbilityListStore(), selctedAbilitys = _b.selctedAbilitys, setSelctedAbilitys = _b.setSelctedAbilitys;
29
+ var handleChange = function (_, checked) {
30
+ return setSelctedAbilitys(__spreadArray(__spreadArray([], selctedAbilitys.filter(function (v) { return v !== token; }), true), (checked ? [token] : []), true));
31
+ };
32
+ return (_jsx(Paper, __assign({ variant: "outlined" }, { children: _jsxs(Box, __assign({ sx: { pl: 2, width: 240, height: 54, display: 'flex', alignItems: 'center', position: 'relative' } }, { children: [_jsx(Checkbox, { onChange: handleChange, label: _jsx(AiAbilityLable, { name: name, detail: detail }), checked: selctedAbilitys.includes(token),
33
+ // @ts-ignore
34
+ sx: { width: 1, height: 1 } }), isNew && _jsx(NewBadge, { src: "//webcdn.fbmms.cn/assets/XXRf/bdUI9qZoTx-l2k_OHTotn" })] })) })));
35
+ };
36
+ var AiAbilityLable = function (_a) {
37
+ var name = _a.name, detail = _a.detail;
38
+ if ((detail === null || detail === void 0 ? void 0 : detail.length) > 0)
39
+ return (_jsx(Popover, __assign({ content: _jsx(AiAbilityDetail, { detail: detail }), trigger: "hover", placement: "right" }, { children: _jsx(Typography, __assign({ noWrap: true, maxWidth: 180, variant: "body2", sx: { mt: 0.5 } }, { children: name })) })));
40
+ return (_jsx(Typography, __assign({ noWrap: true, maxWidth: 180, variant: "body2" }, { children: name })));
41
+ };
42
+ export default AiAbilityItem;
@@ -0,0 +1,13 @@
1
+ interface AiAbilityDetail {
2
+ name: string;
3
+ items: string[];
4
+ }
5
+ export interface AiAbilityDetailProps {
6
+ detail: AiAbilityDetail[];
7
+ }
8
+ export interface AiAbilityItemProps extends AiAbilityDetailProps {
9
+ name: string;
10
+ isNew?: boolean;
11
+ token: string;
12
+ }
13
+ export {};
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare const NewBadge: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, {}>;
@@ -0,0 +1,8 @@
1
+ import { styled } from 'fbm-ui';
2
+ export var NewBadge = styled('img')({
3
+ position: 'absolute',
4
+ right: 0,
5
+ top: 0,
6
+ width: 38,
7
+ height: 16,
8
+ });
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AiAbilityListProps } from './interface';
3
+ declare const AiAbilityList: React.FC<AiAbilityListProps>;
4
+ export default AiAbilityList;
@@ -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 AiAbilityItem from '../AiAbilityItem';
14
+ import { Grid } from 'fbm-ui';
15
+ var AiAbilityList = function (_a) {
16
+ var items = _a.items;
17
+ return (_jsx(Grid, __assign({ container: true, spacing: 1, rowSpacing: 1, columnSpacing: 1 }, { children: items === null || items === void 0 ? void 0 : items.map(function (item) { return (_jsx(Grid, __assign({ item: true }, { children: _jsx(AiAbilityItem, __assign({}, item)) }), item.token)); }) })));
18
+ };
19
+ export default AiAbilityList;
@@ -0,0 +1,4 @@
1
+ import { AiAbilityItemProps } from '../AiAbilityItem/interface';
2
+ export interface AiAbilityListProps {
3
+ items: AiAbilityItemProps[];
4
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AiAbilitySelectProps } from './interface';
3
+ declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<AiAbilitySelectProps & import("react").RefAttributes<any>>>;
4
+ export default _default;
@@ -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 AiAbilitySelectRoot from './Root';
14
+ import RootProvider from "../../components/RootProvider";
15
+ import { forwardRef, memo } from 'react';
16
+ var AiAbilitySelect = forwardRef(function (props, ref) {
17
+ return (_jsx(RootProvider, { children: _jsx(AiAbilitySelectRoot, __assign({ ref: ref }, props)) }));
18
+ });
19
+ AiAbilitySelect.displayName = 'AiAbilitySelect';
20
+ export default memo(AiAbilitySelect);
@@ -0,0 +1,33 @@
1
+ export interface AiAbilitySelectProps {
2
+ jobToken?: string;
3
+ thirdToken?: string;
4
+ selectedTokens?: string[];
5
+ token?: string;
6
+ }
7
+ interface AiAbilityDetailInfo {
8
+ name: string;
9
+ items: string[];
10
+ }
11
+ export interface AiAbilityDetail {
12
+ detail: AiAbilityDetailInfo[];
13
+ }
14
+ export interface AiAbility extends AiAbilityDetail {
15
+ name: string;
16
+ tag: string;
17
+ isWorkplace: boolean;
18
+ define: string;
19
+ isNew?: boolean;
20
+ isAI?: boolean;
21
+ token: string;
22
+ selected?: boolean;
23
+ type: number;
24
+ }
25
+ export declare type AiAbilityItemProps = AiAbility;
26
+ export interface AiAbilityListData {
27
+ list: AiAbility[];
28
+ total: number;
29
+ }
30
+ export interface AiAbilityListRes {
31
+ data: AiAbilityListData;
32
+ }
33
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
1
  import { AiQuestionProps } from './interface';
2
+ import React from 'react';
3
3
  declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<AiQuestionProps & React.RefAttributes<any>>>;
4
4
  export default _default;
@@ -46,18 +46,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
46
46
  }
47
47
  };
48
48
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
49
- import { forwardRef, memo, useEffect, useImperativeHandle } from 'react';
50
- import { Box, Message } from 'fbm-ui';
49
+ import QuestionModel from './components/QuestionModel';
50
+ import QuestionPreview from './components/QuestionPreview';
51
+ import QuestionTemplate from './components/QuestionTemplate';
52
+ import QuestionUpdate from './components/QuestionUpdate';
51
53
  import { PostAiModelUpsert } from "../../services/ai-question";
52
54
  import { AiAnalysisStoreProvider } from "../../store/ai-question/ai-analysis-store";
53
55
  import { getBootVideoStore, useBootVideoStore } from "../../store/ai-question/boot-video-store";
54
56
  import { useAiQuestionStore } from "../../store/ai-question/global-store";
55
57
  import { getQuestionModelStore } from "../../store/ai-question/question-model-store";
56
58
  import { useQuestionModelStore } from "../../store/ai-question/question-model-store";
57
- import QuestionModel from './components/QuestionModel';
58
- import QuestionPreview from './components/QuestionPreview';
59
- import QuestionTemplate from './components/QuestionTemplate';
60
- import QuestionUpdate from './components/QuestionUpdate';
59
+ import { Box, Message } from 'fbm-ui';
60
+ import { forwardRef, memo, useEffect, useImperativeHandle } from 'react';
61
61
  var AiQuestionRoot = forwardRef(function (props, ref) {
62
62
  var updateState = useAiQuestionStore().updateState;
63
63
  var updateBootVideo = useBootVideoStore().updateBootVideo;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AutoCombineProps } from './interface';
3
+ declare const AutoCombine: React.FC<AutoCombineProps>;
4
+ export default AutoCombine;
@@ -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, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import { Button, Typography } from 'fbm-ui';
14
+ import { Stack } from 'fbm-ui/lib/mui';
15
+ var AutoCombine = function (_a) {
16
+ var onAutoCombine = _a.onAutoCombine;
17
+ return (_jsx(Stack, { children: _jsxs(Stack, __assign({ width: 210, alignItems: "center" }, { children: [_jsx(Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: "\u6682\u65E0\u9898\u76EE" })), _jsxs(Typography, __assign({ textAlign: "center", variant: "caption", color: "text.disabled", mb: 2 }, { children: ["\u70B9\u51FB\u300CAI\u81EA\u52A8\u7EC4\u9898\u300D\u6309\u94AE", _jsx("br", {}), "\u53EF\u6839\u636E\u60A8\u9009\u62E9\u7684\u80FD\u529B\u5B9E\u73B0\u4E00\u952E\u7EC4\u9898"] })), _jsx(Button, __assign({ onClick: onAutoCombine }, { children: "AI\u81EA\u52A8\u7EC4\u9898" }))] })) }));
18
+ };
19
+ export default AutoCombine;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const Interactive: FC;
3
+ export default Interactive;
@@ -0,0 +1,30 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import BootVideo from '../BootVideo';
14
+ import { AiVideoStatus, InteractiveModes } from "../../../../constants/ai-question";
15
+ import { useInterviewRoomStore } from "../../../../store/ai-question/interview-room-store";
16
+ import { useQuestionModelStore } from "../../../../store/ai-question/question-model-store";
17
+ import { Button, CheckCircleOutlineIcon, Typography, VideocamOutlineIcon } from 'fbm-ui';
18
+ import { Paper, Stack } from 'fbm-ui/lib/mui';
19
+ import { useState } from 'react';
20
+ var Interactive = function () {
21
+ var _a, _b;
22
+ var questionModelData = useQuestionModelStore().questionModelData;
23
+ var _c = useInterviewRoomStore(), interactType = _c.interactType, aiInterviewerProfile = _c.aiInterviewerProfile;
24
+ var _d = useState(false), bootVideoOpen = _d[0], setBootVideoOpen = _d[1];
25
+ var ShowVideoStatus = (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanType) === 2 &&
26
+ ((_a = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) &&
27
+ (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanToken) === ((_b = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _b === void 0 ? void 0 : _b.humanToken);
28
+ return (_jsxs(_Fragment, { children: [bootVideoOpen && _jsx(BootVideo, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-between", component: Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [_jsxs(Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(InteractiveModes[interactType]), interactType === 2 && (_jsxs(_Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), ShowVideoStatus && (_jsxs(_Fragment, { children: [_jsx(Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 ? (_jsx(CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] }))] })), _jsx(Button, __assign({ icon: _jsx(VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
29
+ };
30
+ export default Interactive;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { RandomQuestionProps } from './interface';
3
+ declare const RandomQuestion: React.FC<RandomQuestionProps>;
4
+ export default RandomQuestion;
@@ -0,0 +1,58 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ import SelectQuestion from './SelectQuestion';
14
+ import { useUpdateQuestionStore } from "../../../../store/ai-question/question-update-store";
15
+ import { AddIcon, Box, Button, InfoIcon, Layout, Message, Popactions, Tooltip } from 'fbm-ui';
16
+ import { Checkbox, FormControlLabel, FormGroup, Typography } from 'fbm-ui/lib/mui';
17
+ import { Stack } from 'fbm-ui/lib/mui';
18
+ import { useState } from 'react';
19
+ var RandomQuestion = function (_a) {
20
+ var _b, _c;
21
+ var broadcastType = _a.broadcastType, onAddCustonQuestion = _a.onAddCustonQuestion, onAddRandomQuestion = _a.onAddRandomQuestion, category = _a.category;
22
+ var _d = useUpdateQuestionStore(function (store) { return [store.questionState]; }), questionState = _d.questionState, updateQuestionState = _d.updateQuestionState;
23
+ var _e = useState(false), open = _e[0], setOpen = _e[1];
24
+ var item = questionState.item;
25
+ var actions = [
26
+ {
27
+ text: _jsx(Typography, __assign({ width: 108 }, { children: "\u5FEB\u901F\u9009\u9898" })),
28
+ onClick: function (_a) {
29
+ var handleClose = _a.handleClose;
30
+ handleClose();
31
+ if (!(category === null || category === void 0 ? void 0 : category.token)) {
32
+ Message.error('题目未选择考察能力或选择的能力不可参与AI分析时,不可快速选题');
33
+ }
34
+ else {
35
+ setOpen(true);
36
+ }
37
+ },
38
+ },
39
+ {
40
+ text: _jsx(Typography, __assign({ width: 108 }, { children: "\u81EA\u5B9A\u4E49" })),
41
+ onClick: function (_a) {
42
+ var handleClose = _a.handleClose;
43
+ handleClose();
44
+ onAddCustonQuestion === null || onAddCustonQuestion === void 0 ? void 0 : onAddCustonQuestion();
45
+ },
46
+ },
47
+ ];
48
+ var isVideoBroadcast = broadcastType === 2;
49
+ var desc = isVideoBroadcast ? (_jsxs(_Fragment, { children: ["1. \u89C6\u9891\u5EFA\u8BAE\u7AD6\u7248\uFF0C\u6BD4\u4F8B9\uFF1A16\uFF0C\u683C\u5F0F.mp4\uFF1B\u5019\u9009\u4EBA\u53EF\u91CD\u590D\u542C\u9898\uFF0C\u4F46\u5355\u9898 \u6700\u591A\u91CD\u590D3\u6B21\u3002", _jsx("br", {}), "2. \u5F53\u9762\u8BD5\u95F4\u4EA4\u4E92\u65B9\u5F0F\u662FAI\u9762\u8BD5\u5B98\u5BF9\u8BDD\u6A21\u5F0F\u65F6\uFF0C\u5019\u9009\u4EBA\u9762\u8BD5\u65F6\u5C06\u81EA\u52A8\u628A \u9898\u76EE\u7684\u64AD\u62A5\u65B9\u5F0F\u53D8\u6362\u4E3AAI\u8BED\u97F3\u64AD\u62A5\u65B9\u5F0F", _jsx("br", {}), "3.\u6BCF\u4F4D\u5019\u9009\u4EBA\u968F\u673A1\u9898\uFF0C\u6700\u591A5\u4E2A\u9009\u9879\u3002"] })) : ('每位候选人随机1题,最多5个选项。');
50
+ var handleVideoBroadcastChange = function (key, checked) {
51
+ var _a;
52
+ updateQuestionState({
53
+ item: __assign(__assign({}, item), { videoBroadcast: __assign(__assign({}, item === null || item === void 0 ? void 0 : item.videoBroadcast), (_a = {}, _a[key] = checked ? 1 : 2, _a)) }),
54
+ });
55
+ };
56
+ return (_jsxs(Layout, { children: [_jsxs(Stack, __assign({ spacing: 2, mb: 1, direction: "row", alignItems: "center", justifyContent: "space-between", mt: 0.375 }, { children: [_jsxs(Stack, __assign({ spacing: 1, direction: "row", alignItems: "center" }, { children: [_jsx(Popactions, __assign({ actions: actions, trigger: "click", isClickAway: true, sx: { height: 1 } }, { children: _jsx(Button, __assign({ variant: "outlined", color: "inherit", icon: _jsx(AddIcon, {}) }, { children: "\u968F\u673A\u9762\u8BD5\u5185\u5BB9" })) })), _jsx(Tooltip, __assign({ title: desc, placement: "bottom-start" }, { children: _jsx(Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1, height: 48 } }, { children: _jsx(InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))] })), _jsx(Stack, __assign({ spacing: 1, direction: "row", alignItems: "center", mb: 2 }, { children: isVideoBroadcast && (_jsx(FormGroup, { children: _jsxs(Box, __assign({ display: "flex" }, { children: [_jsx(FormControlLabel, { control: _jsx(Checkbox, { checked: ((_b = item === null || item === void 0 ? void 0 : item.videoBroadcast) === null || _b === void 0 ? void 0 : _b.videoRetry) === 1 }), label: _jsx(Typography, __assign({ variant: "body2" }, { children: "\u5141\u8BB8\u91CD\u590D\u542C\u9898" })), onChange: function (e, checked) { return handleVideoBroadcastChange('videoRetry', checked); } }), _jsx(FormControlLabel, { control: _jsx(Checkbox, { checked: ((_c = item === null || item === void 0 ? void 0 : item.videoBroadcast) === null || _c === void 0 ? void 0 : _c.videoSkip) === 1 }), label: _jsx(Typography, __assign({ variant: "body2" }, { children: "\u5141\u8BB8\u8DF3\u8FC7" })), onChange: function (e, checked) { return handleVideoBroadcastChange('videoSkip', checked); } })] })) })) }))] })), open && _jsx(SelectQuestion, { token: category === null || category === void 0 ? void 0 : category.token, open: open, onClose: function () { return setOpen(false); }, onOk: onAddRandomQuestion })] }));
57
+ };
58
+ export default RandomQuestion;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const SelectQuestion: ({ token, open, onClose, onOk }: {
3
+ token: any;
4
+ open: any;
5
+ onClose: any;
6
+ onOk: any;
7
+ }) => JSX.Element;
8
+ export default SelectQuestion;
@@ -0,0 +1,62 @@
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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
13
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
14
+ if (ar || !(i in from)) {
15
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
16
+ ar[i] = from[i];
17
+ }
18
+ }
19
+ return to.concat(ar || Array.prototype.slice.call(from));
20
+ };
21
+ import { jsx as _jsx } from "react/jsx-runtime";
22
+ import { useQuestionTemplateStore } from "../../../../store/ai-question/question-template-store";
23
+ import { Checkbox, Dialog } from 'fbm-ui';
24
+ import { Stack } from 'fbm-ui/lib/mui';
25
+ import { useState } from 'react';
26
+ var formatQuestion = function (questions) { return questions === null || questions === void 0 ? void 0 : questions.map(function (v) { return v.content; }).join('\n'); };
27
+ var SelectQuestion = function (_a) {
28
+ var token = _a.token, open = _a.open, onClose = _a.onClose, onOk = _a.onOk;
29
+ var aiEvaluationData = useQuestionTemplateStore(function (store) { return [store.aiEvaluationData]; }).aiEvaluationData;
30
+ var _b = useState([]), questions = _b[0], setQuestions = _b[1];
31
+ var handleChange = function (q, checked) {
32
+ if (checked) {
33
+ setQuestions(__spreadArray(__spreadArray([], questions, true), [q], false));
34
+ }
35
+ else {
36
+ setQuestions(questions.filter(function (v) { return v.token !== q.token; }));
37
+ }
38
+ };
39
+ return (_jsx(Dialog, __assign({ open: open, title: "\u5FEB\u901F\u9009\u9898", size: "sm", onClose: onClose, onOk: function () {
40
+ onOk(questions.map(function (v) { return formatQuestion(v.questions); }));
41
+ onClose();
42
+ } }, { children: _jsx(Stack, { children: aiEvaluationData.map(function (item) {
43
+ var _a;
44
+ return (_a = item.list
45
+ .find(function (v) { return v.token === token; })) === null || _a === void 0 ? void 0 : _a.list.map(function (q) {
46
+ return (_jsx(Checkbox
47
+ // @ts-ignore
48
+ , {
49
+ // @ts-ignore
50
+ sx: {
51
+ alignItems: 'flex-start',
52
+ '& .MuiCheckbox-root': {},
53
+ '& .MuiTypography-root': {
54
+ pt: 0.75,
55
+ },
56
+ }, label: formatQuestion(q.questions), onChange: function (_, checked) {
57
+ handleChange(q, checked);
58
+ } }, q.token));
59
+ });
60
+ }) }) })));
61
+ };
62
+ export default SelectQuestion;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const VideoVoicePreview: ({ videoUrl, onDel }: {
3
+ videoUrl: any;
4
+ onDel: any;
5
+ }) => JSX.Element;
6
+ export default VideoVoicePreview;
@@ -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 { VideoPreview, VideoPreviewMask, VideoPreviewWrapper } from './styled';
14
+ import { DeleteIcon, Divider, IconButton } from 'fbm-ui';
15
+ import { Stack } from 'fbm-ui/lib/mui';
16
+ import { useEffect, useRef } from 'react';
17
+ var VideoVoicePreview = function (_a) {
18
+ var videoUrl = _a.videoUrl, onDel = _a.onDel;
19
+ var videoRef = useRef(null);
20
+ var handlePlay = function () {
21
+ if (videoRef.current) {
22
+ videoRef.current.play();
23
+ videoRef.current.requestFullscreen();
24
+ videoRef.current.style.objectFit = 'contain';
25
+ }
26
+ };
27
+ var handleDel = onDel;
28
+ useEffect(function () {
29
+ var currentVideoRef = videoRef.current;
30
+ if (currentVideoRef) {
31
+ currentVideoRef.addEventListener('fullscreenchange', function () {
32
+ if (!document.fullscreenElement) {
33
+ currentVideoRef.pause();
34
+ if (currentVideoRef)
35
+ currentVideoRef.style.objectFit = 'cover';
36
+ }
37
+ });
38
+ }
39
+ return function () {
40
+ if (currentVideoRef) {
41
+ currentVideoRef.removeEventListener('fullscreenchange', function () { });
42
+ }
43
+ };
44
+ }, []);
45
+ return (_jsxs(VideoPreviewWrapper, { children: [_jsx(VideoPreview, { src: videoUrl, ref: videoRef }), _jsx(VideoPreviewMask, __assign({ className: "video-preview" }, { children: _jsxs(Stack, __assign({ direction: "row", justifyContent: "space-around", alignItems: "center", height: "100%" }, { children: [_jsx(IconButton, __assign({ color: "inherit", onClick: handlePlay }, { children: _jsx("img", { src: "//webcdn.fbmms.cn/assets/mPfO/oPs2dSpKQW5Rw-cOavSwz", alt: "", width: 24, height: 24 }) })), _jsx(Divider, { orientation: "vertical", sx: { height: 20 } }), _jsx(IconButton, __assign({ color: "inherit", onClick: handleDel }, { children: _jsx(DeleteIcon, {}) }))] })) }))] }));
46
+ };
47
+ export default VideoVoicePreview;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const VideoVoiceUploader: ({ index, questions, setQuestions }: {
3
+ index: any;
4
+ questions: any;
5
+ setQuestions: any;
6
+ }) => JSX.Element;
7
+ export default VideoVoiceUploader;