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
@@ -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,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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;
@@ -51,18 +51,18 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
51
51
  };
52
52
  Object.defineProperty(exports, "__esModule", { value: true });
53
53
  var jsx_runtime_1 = require("react/jsx-runtime");
54
- var react_1 = require("react");
55
- var fbm_ui_1 = require("fbm-ui");
54
+ var QuestionModel_1 = __importDefault(require("./components/QuestionModel"));
55
+ var QuestionPreview_1 = __importDefault(require("./components/QuestionPreview"));
56
+ var QuestionTemplate_1 = __importDefault(require("./components/QuestionTemplate"));
57
+ var QuestionUpdate_1 = __importDefault(require("./components/QuestionUpdate"));
56
58
  var ai_question_1 = require("../../services/ai-question");
57
59
  var ai_analysis_store_1 = require("../../store/ai-question/ai-analysis-store");
58
60
  var boot_video_store_1 = require("../../store/ai-question/boot-video-store");
59
61
  var global_store_1 = require("../../store/ai-question/global-store");
60
62
  var question_model_store_1 = require("../../store/ai-question/question-model-store");
61
63
  var question_model_store_2 = require("../../store/ai-question/question-model-store");
62
- var QuestionModel_1 = __importDefault(require("./components/QuestionModel"));
63
- var QuestionPreview_1 = __importDefault(require("./components/QuestionPreview"));
64
- var QuestionTemplate_1 = __importDefault(require("./components/QuestionTemplate"));
65
- var QuestionUpdate_1 = __importDefault(require("./components/QuestionUpdate"));
64
+ var fbm_ui_1 = require("fbm-ui");
65
+ var react_1 = require("react");
66
66
  var AiQuestionRoot = (0, react_1.forwardRef)(function (props, ref) {
67
67
  var updateState = (0, global_store_1.useAiQuestionStore)().updateState;
68
68
  var updateBootVideo = (0, boot_video_store_1.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,21 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var jsx_runtime_1 = require("react/jsx-runtime");
15
+ var fbm_ui_1 = require("fbm-ui");
16
+ var mui_1 = require("fbm-ui/lib/mui");
17
+ var AutoCombine = function (_a) {
18
+ var onAutoCombine = _a.onAutoCombine;
19
+ return ((0, jsx_runtime_1.jsx)(mui_1.Stack, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ width: 210, alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "body1", fontWeight: 500 }, { children: "\u6682\u65E0\u9898\u76EE" })), (0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ textAlign: "center", variant: "caption", color: "text.disabled", mb: 2 }, { children: ["\u70B9\u51FB\u300CAI\u81EA\u52A8\u7EC4\u9898\u300D\u6309\u94AE", (0, jsx_runtime_1.jsx)("br", {}), "\u53EF\u6839\u636E\u60A8\u9009\u62E9\u7684\u80FD\u529B\u5B9E\u73B0\u4E00\u952E\u7EC4\u9898"] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ onClick: onAutoCombine }, { children: "AI\u81EA\u52A8\u7EC4\u9898" }))] })) }));
20
+ };
21
+ exports.default = AutoCombine;
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ declare const Interactive: FC;
3
+ export default Interactive;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ var BootVideo_1 = __importDefault(require("../BootVideo"));
19
+ var ai_question_1 = require("../../../../constants/ai-question");
20
+ var interview_room_store_1 = require("../../../../store/ai-question/interview-room-store");
21
+ var question_model_store_1 = require("../../../../store/ai-question/question-model-store");
22
+ var fbm_ui_1 = require("fbm-ui");
23
+ var mui_1 = require("fbm-ui/lib/mui");
24
+ var react_1 = require("react");
25
+ var Interactive = function () {
26
+ var _a, _b;
27
+ var questionModelData = (0, question_model_store_1.useQuestionModelStore)().questionModelData;
28
+ var _c = (0, interview_room_store_1.useInterviewRoomStore)(), interactType = _c.interactType, aiInterviewerProfile = _c.aiInterviewerProfile;
29
+ var _d = (0, react_1.useState)(false), bootVideoOpen = _d[0], setBootVideoOpen = _d[1];
30
+ var ShowVideoStatus = (aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.humanType) === 2 &&
31
+ ((_a = questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiInterviewerProfile) === null || _a === void 0 ? void 0 : _a.humanToken) &&
32
+ (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);
33
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [bootVideoOpen && (0, jsx_runtime_1.jsx)(BootVideo_1.default, { open: bootVideoOpen, onClose: function () { return setBootVideoOpen(false); } }), (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-between", component: mui_1.Paper, variant: "outlined", height: 54, alignItems: "center", px: 2, mt: 2 }, { children: [(0, jsx_runtime_1.jsxs)(fbm_ui_1.Typography, __assign({ display: "flex", alignItems: "center", variant: "body1", fontWeight: 500 }, { children: ["\u9762\u8BD5\u95F4\u4E92\u52A8\u65B9\u5F0F\uFF1A".concat(ai_question_1.InteractiveModes[interactType]), interactType === 2 && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["-".concat(aiInterviewerProfile === null || aiInterviewerProfile === void 0 ? void 0 : aiInterviewerProfile.name), ShowVideoStatus && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "secondary", ml: 2 }, { children: ai_question_1.AiVideoStatus[(questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) || 1] })), (questionModelData === null || questionModelData === void 0 ? void 0 : questionModelData.aiVideoStatus) === 2 ? ((0, jsx_runtime_1.jsx)(fbm_ui_1.CheckCircleOutlineIcon, { sx: { fontSize: '16px', ml: 1, color: 'RGBA(0, 0, 0, 0.56)' } })) : ('')] }))] }))] })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.VideocamOutlineIcon, {}), variant: "text", onClick: function () { return setBootVideoOpen(true); } }, { children: "\u5B9A\u5236\u9762\u8BD5\u95F4" }))] }))] }));
34
+ };
35
+ exports.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,63 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ var SelectQuestion_1 = __importDefault(require("./SelectQuestion"));
19
+ var question_update_store_1 = require("../../../../store/ai-question/question-update-store");
20
+ var fbm_ui_1 = require("fbm-ui");
21
+ var mui_1 = require("fbm-ui/lib/mui");
22
+ var mui_2 = require("fbm-ui/lib/mui");
23
+ var react_1 = require("react");
24
+ var RandomQuestion = function (_a) {
25
+ var _b, _c;
26
+ var broadcastType = _a.broadcastType, onAddCustonQuestion = _a.onAddCustonQuestion, onAddRandomQuestion = _a.onAddRandomQuestion, category = _a.category;
27
+ var _d = (0, question_update_store_1.useUpdateQuestionStore)(function (store) { return [store.questionState]; }), questionState = _d.questionState, updateQuestionState = _d.updateQuestionState;
28
+ var _e = (0, react_1.useState)(false), open = _e[0], setOpen = _e[1];
29
+ var item = questionState.item;
30
+ var actions = [
31
+ {
32
+ text: (0, jsx_runtime_1.jsx)(mui_1.Typography, __assign({ width: 108 }, { children: "\u5FEB\u901F\u9009\u9898" })),
33
+ onClick: function (_a) {
34
+ var handleClose = _a.handleClose;
35
+ handleClose();
36
+ if (!(category === null || category === void 0 ? void 0 : category.token)) {
37
+ fbm_ui_1.Message.error('题目未选择考察能力或选择的能力不可参与AI分析时,不可快速选题');
38
+ }
39
+ else {
40
+ setOpen(true);
41
+ }
42
+ },
43
+ },
44
+ {
45
+ text: (0, jsx_runtime_1.jsx)(mui_1.Typography, __assign({ width: 108 }, { children: "\u81EA\u5B9A\u4E49" })),
46
+ onClick: function (_a) {
47
+ var handleClose = _a.handleClose;
48
+ handleClose();
49
+ onAddCustonQuestion === null || onAddCustonQuestion === void 0 ? void 0 : onAddCustonQuestion();
50
+ },
51
+ },
52
+ ];
53
+ var isVideoBroadcast = broadcastType === 2;
54
+ var desc = isVideoBroadcast ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.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", (0, jsx_runtime_1.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", (0, jsx_runtime_1.jsx)("br", {}), "3.\u6BCF\u4F4D\u5019\u9009\u4EBA\u968F\u673A1\u9898\uFF0C\u6700\u591A5\u4E2A\u9009\u9879\u3002"] })) : ('每位候选人随机1题,最多5个选项。');
55
+ var handleVideoBroadcastChange = function (key, checked) {
56
+ var _a;
57
+ updateQuestionState({
58
+ item: __assign(__assign({}, item), { videoBroadcast: __assign(__assign({}, item === null || item === void 0 ? void 0 : item.videoBroadcast), (_a = {}, _a[key] = checked ? 1 : 2, _a)) }),
59
+ });
60
+ };
61
+ return ((0, jsx_runtime_1.jsxs)(fbm_ui_1.Layout, { children: [(0, jsx_runtime_1.jsxs)(mui_2.Stack, __assign({ spacing: 2, mb: 1, direction: "row", alignItems: "center", justifyContent: "space-between", mt: 0.375 }, { children: [(0, jsx_runtime_1.jsxs)(mui_2.Stack, __assign({ spacing: 1, direction: "row", alignItems: "center" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.Popactions, __assign({ actions: actions, trigger: "click", isClickAway: true, sx: { height: 1 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Button, __assign({ variant: "outlined", color: "inherit", icon: (0, jsx_runtime_1.jsx)(fbm_ui_1.AddIcon, {}) }, { children: "\u968F\u673A\u9762\u8BD5\u5185\u5BB9" })) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Tooltip, __assign({ title: desc, placement: "bottom-start" }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ display: "flex", alignItems: "center", sx: { ml: 1, height: 48 } }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.InfoIcon, { sx: { color: 'rgba(0, 0, 0, 0.26)', fontSize: 16 } }) })) }))] })), (0, jsx_runtime_1.jsx)(mui_2.Stack, __assign({ spacing: 1, direction: "row", alignItems: "center", mb: 2 }, { children: isVideoBroadcast && ((0, jsx_runtime_1.jsx)(mui_1.FormGroup, { children: (0, jsx_runtime_1.jsxs)(fbm_ui_1.Box, __assign({ display: "flex" }, { children: [(0, jsx_runtime_1.jsx)(mui_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(mui_1.Checkbox, { checked: ((_b = item === null || item === void 0 ? void 0 : item.videoBroadcast) === null || _b === void 0 ? void 0 : _b.videoRetry) === 1 }), label: (0, jsx_runtime_1.jsx)(mui_1.Typography, __assign({ variant: "body2" }, { children: "\u5141\u8BB8\u91CD\u590D\u542C\u9898" })), onChange: function (e, checked) { return handleVideoBroadcastChange('videoRetry', checked); } }), (0, jsx_runtime_1.jsx)(mui_1.FormControlLabel, { control: (0, jsx_runtime_1.jsx)(mui_1.Checkbox, { checked: ((_c = item === null || item === void 0 ? void 0 : item.videoBroadcast) === null || _c === void 0 ? void 0 : _c.videoSkip) === 1 }), label: (0, jsx_runtime_1.jsx)(mui_1.Typography, __assign({ variant: "body2" }, { children: "\u5141\u8BB8\u8DF3\u8FC7" })), onChange: function (e, checked) { return handleVideoBroadcastChange('videoSkip', checked); } })] })) })) }))] })), open && (0, jsx_runtime_1.jsx)(SelectQuestion_1.default, { token: category === null || category === void 0 ? void 0 : category.token, open: open, onClose: function () { return setOpen(false); }, onOk: onAddRandomQuestion })] }));
62
+ };
63
+ exports.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,64 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ var jsx_runtime_1 = require("react/jsx-runtime");
24
+ var question_template_store_1 = require("../../../../store/ai-question/question-template-store");
25
+ var fbm_ui_1 = require("fbm-ui");
26
+ var mui_1 = require("fbm-ui/lib/mui");
27
+ var react_1 = require("react");
28
+ var formatQuestion = function (questions) { return questions === null || questions === void 0 ? void 0 : questions.map(function (v) { return v.content; }).join('\n'); };
29
+ var SelectQuestion = function (_a) {
30
+ var token = _a.token, open = _a.open, onClose = _a.onClose, onOk = _a.onOk;
31
+ var aiEvaluationData = (0, question_template_store_1.useQuestionTemplateStore)(function (store) { return [store.aiEvaluationData]; }).aiEvaluationData;
32
+ var _b = (0, react_1.useState)([]), questions = _b[0], setQuestions = _b[1];
33
+ var handleChange = function (q, checked) {
34
+ if (checked) {
35
+ setQuestions(__spreadArray(__spreadArray([], questions, true), [q], false));
36
+ }
37
+ else {
38
+ setQuestions(questions.filter(function (v) { return v.token !== q.token; }));
39
+ }
40
+ };
41
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Dialog, __assign({ open: open, title: "\u5FEB\u901F\u9009\u9898", size: "sm", onClose: onClose, onOk: function () {
42
+ onOk(questions.map(function (v) { return formatQuestion(v.questions); }));
43
+ onClose();
44
+ } }, { children: (0, jsx_runtime_1.jsx)(mui_1.Stack, { children: aiEvaluationData.map(function (item) {
45
+ var _a;
46
+ return (_a = item.list
47
+ .find(function (v) { return v.token === token; })) === null || _a === void 0 ? void 0 : _a.list.map(function (q) {
48
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Checkbox
49
+ // @ts-ignore
50
+ , {
51
+ // @ts-ignore
52
+ sx: {
53
+ alignItems: 'flex-start',
54
+ '& .MuiCheckbox-root': {},
55
+ '& .MuiTypography-root': {
56
+ pt: 0.75,
57
+ },
58
+ }, label: formatQuestion(q.questions), onChange: function (_, checked) {
59
+ handleChange(q, checked);
60
+ } }, q.token));
61
+ });
62
+ }) }) })));
63
+ };
64
+ exports.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,49 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var jsx_runtime_1 = require("react/jsx-runtime");
15
+ var styled_1 = require("./styled");
16
+ var fbm_ui_1 = require("fbm-ui");
17
+ var mui_1 = require("fbm-ui/lib/mui");
18
+ var react_1 = require("react");
19
+ var VideoVoicePreview = function (_a) {
20
+ var videoUrl = _a.videoUrl, onDel = _a.onDel;
21
+ var videoRef = (0, react_1.useRef)(null);
22
+ var handlePlay = function () {
23
+ if (videoRef.current) {
24
+ videoRef.current.play();
25
+ videoRef.current.requestFullscreen();
26
+ videoRef.current.style.objectFit = 'contain';
27
+ }
28
+ };
29
+ var handleDel = onDel;
30
+ (0, react_1.useEffect)(function () {
31
+ var currentVideoRef = videoRef.current;
32
+ if (currentVideoRef) {
33
+ currentVideoRef.addEventListener('fullscreenchange', function () {
34
+ if (!document.fullscreenElement) {
35
+ currentVideoRef.pause();
36
+ if (currentVideoRef)
37
+ currentVideoRef.style.objectFit = 'cover';
38
+ }
39
+ });
40
+ }
41
+ return function () {
42
+ if (currentVideoRef) {
43
+ currentVideoRef.removeEventListener('fullscreenchange', function () { });
44
+ }
45
+ };
46
+ }, []);
47
+ return ((0, jsx_runtime_1.jsxs)(styled_1.VideoPreviewWrapper, { children: [(0, jsx_runtime_1.jsx)(styled_1.VideoPreview, { src: videoUrl, ref: videoRef }), (0, jsx_runtime_1.jsx)(styled_1.VideoPreviewMask, __assign({ className: "video-preview" }, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ direction: "row", justifyContent: "space-around", alignItems: "center", height: "100%" }, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ color: "inherit", onClick: handlePlay }, { children: (0, jsx_runtime_1.jsx)("img", { src: "//webcdn.fbmms.cn/assets/mPfO/oPs2dSpKQW5Rw-cOavSwz", alt: "", width: 24, height: 24 }) })), (0, jsx_runtime_1.jsx)(fbm_ui_1.Divider, { orientation: "vertical", sx: { height: 20 } }), (0, jsx_runtime_1.jsx)(fbm_ui_1.IconButton, __assign({ color: "inherit", onClick: handleDel }, { children: (0, jsx_runtime_1.jsx)(fbm_ui_1.DeleteIcon, {}) }))] })) }))] }));
48
+ };
49
+ exports.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;
@@ -0,0 +1,62 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
14
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
+ if (ar || !(i in from)) {
16
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
+ ar[i] = from[i];
18
+ }
19
+ }
20
+ return to.concat(ar || Array.prototype.slice.call(from));
21
+ };
22
+ Object.defineProperty(exports, "__esModule", { value: true });
23
+ var jsx_runtime_1 = require("react/jsx-runtime");
24
+ var ai_question_1 = require("../../../../services/ai-question");
25
+ var utils_1 = require("../../../../utils/utils");
26
+ var ahooks_1 = require("ahooks");
27
+ var fbm_ui_1 = require("fbm-ui");
28
+ var mui_1 = require("fbm-ui/lib/mui");
29
+ var VideoVoiceUploader = function (_a) {
30
+ var index = _a.index, questions = _a.questions, setQuestions = _a.setQuestions;
31
+ var _b = (0, ahooks_1.useRequest)(ai_question_1.PostCommonUpload, {
32
+ manual: true,
33
+ onSuccess: function (_a) {
34
+ var data = _a.data;
35
+ var firstData = data[0];
36
+ questions[index] = __assign(__assign({}, questions[index]), { videoUrl: firstData.url });
37
+ setQuestions(__spreadArray([], questions, true));
38
+ },
39
+ }), loading = _b.loading, postCommonUpload = _b.run;
40
+ var uploadProps = {
41
+ type: 'custom',
42
+ showUploadList: false,
43
+ accept: '.mp4',
44
+ customRequest: function (_a) {
45
+ var file = _a.file;
46
+ if ((0, utils_1.isExceedMaxVideoFileSize)(file.size)) {
47
+ fbm_ui_1.Message.error('视频大小超过500M,请重新上传!');
48
+ }
49
+ else {
50
+ var formData = new FormData();
51
+ formData.append('files', file);
52
+ postCommonUpload(formData);
53
+ }
54
+ },
55
+ };
56
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Upload, __assign({}, uploadProps, { children: (0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ justifyContent: "center", alignItems: "center", color: "text.secondary", sx: {
57
+ cursor: 'pointer',
58
+ width: 94,
59
+ height: 94,
60
+ } }, { children: [!loading && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(fbm_ui_1.UploadIcon, { color: "inherit" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "inherit" }, { children: "\u4E0A\u4F20\u89C6\u9891" }))] })), loading && (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption" }, { children: "\u4E0A\u4F20\u4E2D..." }))] })) })));
61
+ };
62
+ exports.default = VideoVoiceUploader;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ export declare const VideoPreview: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, {}>;
3
+ export declare const VideoPreviewWrapper: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
4
+ export declare const VideoPreviewMask: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
5
+ export declare const VideoPreviewMaskContent: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const VideoPreviewMaskIcon: import("@emotion/styled").StyledComponent<import("@mui/system/createStyled").MUIStyledCommonProps<import("@mui/material").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoPreviewMaskIcon = exports.VideoPreviewMaskContent = exports.VideoPreviewMask = exports.VideoPreviewWrapper = exports.VideoPreview = void 0;
4
+ var fbm_ui_1 = require("fbm-ui");
5
+ exports.VideoPreview = (0, fbm_ui_1.styled)('video')({
6
+ width: '100%',
7
+ height: '100%',
8
+ objectFit: 'cover',
9
+ });
10
+ exports.VideoPreviewWrapper = (0, fbm_ui_1.styled)('div')({
11
+ width: '100%',
12
+ height: '100%',
13
+ position: 'relative',
14
+ backgroundColor: 'rgb(222, 222, 222)',
15
+ overflow: 'hidden',
16
+ '& .video-preview': {
17
+ opacity: 0,
18
+ },
19
+ '&:hover': {
20
+ '& .video-preview': {
21
+ opacity: 1,
22
+ },
23
+ },
24
+ });
25
+ exports.VideoPreviewMask = (0, fbm_ui_1.styled)('div')(function (_a) {
26
+ var theme = _a.theme;
27
+ return ({
28
+ position: 'absolute',
29
+ top: 0,
30
+ left: 0,
31
+ width: '100%',
32
+ height: '100%',
33
+ color: 'white',
34
+ backgroundColor: theme.palette.text.disabled,
35
+ });
36
+ });
37
+ exports.VideoPreviewMaskContent = (0, fbm_ui_1.styled)('div')({
38
+ position: 'absolute',
39
+ top: '50%',
40
+ left: '50%',
41
+ transform: 'translate(-50%, -50%)',
42
+ });
43
+ exports.VideoPreviewMaskIcon = (0, fbm_ui_1.styled)('div')({
44
+ width: 40,
45
+ height: 40,
46
+ borderRadius: '50%',
47
+ backgroundColor: 'rgba(0, 0, 0, 0.5)',
48
+ display: 'flex',
49
+ justifyContent: 'center',
50
+ alignItems: 'center',
51
+ cursor: 'pointer',
52
+ '&:hover': {
53
+ backgroundColor: 'rgba(0, 0, 0, 0.8)',
54
+ },
55
+ });
@@ -15,7 +15,7 @@ export declare const RefreshIconRoot: import("@emotion/styled").StyledComponent<
15
15
  sx?: import("@mui/system/styleFunctionSx").SxProps<import("@mui/material").Theme> | undefined;
16
16
  titleAccess?: string | undefined;
17
17
  viewBox?: string | undefined;
18
- } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "d" | "y" | "name" | "type" | "onLoad" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "yChannelSelector" | "z" | "zoomAndPan"> & {
18
+ } & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").SVGProps<SVGSVGElement>, "string" | "seed" | "children" | "style" | "clipPath" | "filter" | "mask" | "path" | "name" | "type" | "fill" | "values" | "className" | "display" | "overflow" | "visibility" | "order" | "color" | "width" | "height" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "cursor" | "direction" | "fontSizeAdjust" | "fontStretch" | "fontVariant" | "imageRendering" | "opacity" | "paintOrder" | "pointerEvents" | "rotate" | "scale" | "textRendering" | "transform" | "unicodeBidi" | "wordSpacing" | "writingMode" | "offset" | "textDecoration" | "azimuth" | "clip" | "alignmentBaseline" | "baselineShift" | "clipRule" | "colorInterpolation" | "colorRendering" | "dominantBaseline" | "fillOpacity" | "fillRule" | "floodColor" | "floodOpacity" | "glyphOrientationVertical" | "lightingColor" | "markerEnd" | "markerMid" | "markerStart" | "shapeRendering" | "stopColor" | "stopOpacity" | "stroke" | "strokeDasharray" | "strokeDashoffset" | "strokeLinecap" | "strokeLinejoin" | "strokeMiterlimit" | "strokeOpacity" | "strokeWidth" | "textAnchor" | "vectorEffect" | "key" | "id" | "lang" | "tabIndex" | "role" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "end" | "max" | "media" | "method" | "min" | "target" | "crossOrigin" | "accentHeight" | "accumulate" | "additive" | "allowReorder" | "alphabetic" | "amplitude" | "arabicForm" | "ascent" | "attributeName" | "attributeType" | "autoReverse" | "baseFrequency" | "baseProfile" | "bbox" | "begin" | "bias" | "by" | "calcMode" | "capHeight" | "clipPathUnits" | "colorInterpolationFilters" | "colorProfile" | "contentScriptType" | "contentStyleType" | "cx" | "cy" | "d" | "decelerate" | "descent" | "diffuseConstant" | "divisor" | "dur" | "dx" | "dy" | "edgeMode" | "elevation" | "enableBackground" | "exponent" | "externalResourcesRequired" | "filterRes" | "filterUnits" | "focusable" | "format" | "fr" | "from" | "fx" | "fy" | "g1" | "g2" | "glyphName" | "glyphOrientationHorizontal" | "glyphRef" | "gradientTransform" | "gradientUnits" | "hanging" | "horizAdvX" | "horizOriginX" | "href" | "ideographic" | "in2" | "in" | "intercept" | "k1" | "k2" | "k3" | "k4" | "k" | "kernelMatrix" | "kernelUnitLength" | "kerning" | "keyPoints" | "keySplines" | "keyTimes" | "lengthAdjust" | "limitingConeAngle" | "local" | "markerHeight" | "markerUnits" | "markerWidth" | "maskContentUnits" | "maskUnits" | "mathematical" | "mode" | "numOctaves" | "operator" | "orient" | "orientation" | "origin" | "overlinePosition" | "overlineThickness" | "panose1" | "pathLength" | "patternContentUnits" | "patternTransform" | "patternUnits" | "points" | "pointsAtX" | "pointsAtY" | "pointsAtZ" | "preserveAlpha" | "preserveAspectRatio" | "primitiveUnits" | "r" | "radius" | "refX" | "refY" | "renderingIntent" | "repeatCount" | "repeatDur" | "requiredExtensions" | "requiredFeatures" | "restart" | "result" | "rx" | "ry" | "slope" | "spacing" | "specularConstant" | "specularExponent" | "speed" | "spreadMethod" | "startOffset" | "stdDeviation" | "stemh" | "stemv" | "stitchTiles" | "strikethroughPosition" | "strikethroughThickness" | "surfaceScale" | "systemLanguage" | "tableValues" | "targetX" | "targetY" | "textLength" | "to" | "u1" | "u2" | "underlinePosition" | "underlineThickness" | "unicode" | "unicodeRange" | "unitsPerEm" | "vAlphabetic" | "version" | "vertAdvY" | "vertOriginX" | "vertOriginY" | "vHanging" | "vIdeographic" | "viewBox" | "viewTarget" | "vMathematical" | "widths" | "x1" | "x2" | "x" | "xChannelSelector" | "xHeight" | "xlinkActuate" | "xlinkArcrole" | "xlinkHref" | "xlinkRole" | "xlinkShow" | "xlinkTitle" | "xlinkType" | "xmlBase" | "xmlLang" | "xmlns" | "xmlnsXlink" | "xmlSpace" | "y1" | "y2" | "y" | "yChannelSelector" | "z" | "zoomAndPan"> & {
19
19
  ref?: ((instance: SVGSVGElement | null) => void) | import("react").RefObject<SVGSVGElement> | null | undefined;
20
20
  }, "children" | keyof import("@mui/material/OverridableComponent").CommonProps | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "titleAccess"> & {
21
21
  children?: import("react").ReactNode;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import '@components/react-photo-view/Photo';
3
+ import '@components/react-photo-view/PhotoSlider';
4
+ declare const BodyImages: ({ reviewImgs }: {
5
+ reviewImgs: any;
6
+ }) => JSX.Element;
7
+ export default BodyImages;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __importDefault = (this && this.__importDefault) || function (mod) {
14
+ return (mod && mod.__esModule) ? mod : { "default": mod };
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ var jsx_runtime_1 = require("react/jsx-runtime");
18
+ var styled_1 = require("./styled");
19
+ var react_photo_view_1 = require("../../../../components/react-photo-view");
20
+ require("../../../../components/react-photo-view/Photo");
21
+ var PhotoPage_1 = __importDefault(require("../../../../components/react-photo-view/PhotoPage"));
22
+ require("../../../../components/react-photo-view/PhotoSlider");
23
+ var fbm_ui_1 = require("fbm-ui");
24
+ var mui_1 = require("fbm-ui/lib/mui");
25
+ var react_1 = require("react");
26
+ var BodyImages = function (_a) {
27
+ var reviewImgs = _a.reviewImgs;
28
+ var _b = (0, react_1.useState)(false), visible = _b[0], setVisible = _b[1];
29
+ var _c = (0, react_1.useState)(0), index = _c[0], setIndex = _c[1];
30
+ var handleSelected = (0, react_1.useCallback)(function (_, i) {
31
+ setIndex(i);
32
+ setVisible(true);
33
+ }, []);
34
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(mui_1.Stack, __assign({ spacing: 2, direction: "row" }, { children: reviewImgs.map(function (_a, i) {
35
+ var url = _a.url, title = _a.title;
36
+ return ((0, jsx_runtime_1.jsxs)(mui_1.Stack, __assign({ spacing: 0.5, onClick: function () {
37
+ setIndex(i);
38
+ setVisible(true);
39
+ } }, { children: [(0, jsx_runtime_1.jsx)(styled_1.Image, { src: url, alt: "" }), (0, jsx_runtime_1.jsx)(fbm_ui_1.Typography, __assign({ variant: "caption", color: "textSecondary", textAlign: "center" }, { children: title }))] }), url));
40
+ }) })), (0, jsx_runtime_1.jsx)(react_photo_view_1.PhotoSlider, { maskOpacity: 0.56, visible: visible, onClose: function () { return setVisible(false); }, index: index, onIndexChange: setIndex, images: reviewImgs.map(function (item) { return ({ src: item.url, key: item.url, title: item === null || item === void 0 ? void 0 : item.title }); }), overlayRender: function (_a) {
41
+ var images = _a.images, index = _a.index;
42
+ return ((0, jsx_runtime_1.jsx)(fbm_ui_1.Box, __assign({ sx: { width: 1, position: 'absolute', bottom: 0, zIndex: 50 } }, { children: (0, jsx_runtime_1.jsx)(PhotoPage_1.default, { onSelected: handleSelected, images: images, index: index }) })));
43
+ } })] }));
44
+ };
45
+ exports.default = BodyImages;