fcr-ui-scene 3.4.0 → 3.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/lib/ scenes/base.d.ts +10 -0
  2. package/lib/ scenes/base.js +75 -0
  3. package/lib/ scenes/main-scene.d.ts +43 -0
  4. package/lib/ scenes/main-scene.js +368 -0
  5. package/lib/ scenes/waiting-scene.d.ts +31 -0
  6. package/lib/ scenes/waiting-scene.js +119 -0
  7. package/lib/common/device-store.d.ts +1 -2
  8. package/lib/common/device-store.js +169 -153
  9. package/lib/common/device-stream-store.d.ts +5 -29
  10. package/lib/common/device-stream-store.js +47 -93
  11. package/lib/common/room-store.js +4 -4
  12. package/lib/common/security-store.d.ts +6 -16
  13. package/lib/common/security-store.js +16 -17
  14. package/lib/common/type.d.ts +8 -0
  15. package/lib/common/type.js +6 -0
  16. package/lib/creator.js +3 -3
  17. package/lib/electron/app.js +21 -5
  18. package/lib/electron/bootstrap-sdk.js +1 -2
  19. package/lib/electron/injections.d.ts +1 -1
  20. package/lib/error-fallback.css +62 -0
  21. package/lib/error-fallback.d.ts +2 -0
  22. package/lib/error-fallback.js +19 -0
  23. package/lib/modules/Interpreter/action/delete-btn/index.d.ts +1 -1
  24. package/lib/modules/Interpreter/action/edit-btn/index.d.ts +0 -1
  25. package/lib/modules/Interpreter/action/edit-btn/index.js +0 -2
  26. package/lib/modules/Interpreter/action/switch-btn/index.css +3 -0
  27. package/lib/modules/Interpreter/action/switch-btn/index.d.ts +2 -4
  28. package/lib/modules/Interpreter/action/switch-btn/index.js +3 -3
  29. package/lib/modules/Interpreter/footer/index.css +4 -3
  30. package/lib/modules/Interpreter/index.d.ts +2 -17
  31. package/lib/modules/Interpreter/index.js +2 -18
  32. package/lib/modules/Interpreter/interpreter-list/index.css +5 -1
  33. package/lib/modules/Interpreter/interpreter-list/index.d.ts +1 -0
  34. package/lib/modules/Interpreter/interpreter-list/index.js +3 -1
  35. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.css +0 -6
  36. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-language/index.d.ts +1 -1
  37. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.css +1 -3
  38. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.d.ts +1 -6
  39. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/index.js +55 -81
  40. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.d.ts +6 -0
  41. package/lib/modules/Interpreter/interpreter-list/interpreter-item/components/pick-user/option-Item.js +58 -0
  42. package/lib/modules/Interpreter/interpreter-list/interpreter-item/index.d.ts +1 -1
  43. package/lib/modules/Interpreter/store.d.ts +36 -29
  44. package/lib/modules/Interpreter/store.js +575 -606
  45. package/lib/modules/Interpreter/type.d.ts +41 -0
  46. package/lib/modules/Interpreter/type.js +20 -0
  47. package/lib/modules/Interpreter/utils.d.ts +12 -0
  48. package/lib/modules/Interpreter/utils.js +139 -0
  49. package/lib/modules/Interpreter/view.d.ts +0 -1
  50. package/lib/modules/Interpreter/view.js +3 -5
  51. package/lib/modules/action-bar/action-bar-collapes-items.d.ts +1 -1
  52. package/lib/modules/action-bar/action-bar-collapes-items.js +11 -11
  53. package/lib/modules/action-bar/apps/useInterpreter.js +4 -2
  54. package/lib/modules/action-bar/components/apps/app-item/index.css +35 -0
  55. package/lib/modules/action-bar/components/apps/app-item/index.d.ts +12 -0
  56. package/lib/modules/action-bar/components/apps/app-item/index.js +61 -0
  57. package/lib/modules/action-bar/components/apps/appitems.d.ts +5 -0
  58. package/lib/modules/action-bar/components/apps/appitems.js +45 -0
  59. package/lib/modules/action-bar/components/apps/index.css +8 -0
  60. package/lib/modules/action-bar/components/apps/index.d.ts +4 -0
  61. package/lib/modules/action-bar/components/apps/index.js +57 -0
  62. package/lib/modules/action-bar/components/apps/useAppItemOptions.d.ts +9 -0
  63. package/lib/modules/action-bar/components/apps/useAppItemOptions.js +29 -0
  64. package/lib/modules/action-bar/components/apps/useBeautyBackground.d.ts +10 -0
  65. package/lib/modules/action-bar/components/apps/useBeautyBackground.js +36 -0
  66. package/lib/modules/action-bar/components/apps/useInterpreter.d.ts +14 -0
  67. package/lib/modules/action-bar/components/apps/useInterpreter.js +37 -0
  68. package/lib/modules/action-bar/components/apps/useLiveStreaming.d.ts +16 -0
  69. package/lib/modules/action-bar/components/apps/useLiveStreaming.js +41 -0
  70. package/lib/modules/action-bar/components/board/index.d.ts +4 -0
  71. package/lib/modules/action-bar/components/board/index.js +34 -0
  72. package/lib/modules/action-bar/components/breakout-room/index.d.ts +4 -0
  73. package/lib/modules/action-bar/components/breakout-room/index.js +32 -0
  74. package/lib/modules/action-bar/components/chat/index.css +80 -0
  75. package/lib/modules/action-bar/components/chat/index.d.ts +5 -0
  76. package/lib/modules/action-bar/components/chat/index.js +154 -0
  77. package/lib/modules/action-bar/components/device/index.css +162 -0
  78. package/lib/modules/action-bar/components/device/index.d.ts +8 -0
  79. package/lib/modules/action-bar/components/device/index.js +611 -0
  80. package/lib/modules/action-bar/components/interpreter/index.d.ts +6 -0
  81. package/lib/modules/action-bar/components/interpreter/index.js +41 -0
  82. package/lib/modules/action-bar/components/item.d.ts +27 -0
  83. package/lib/modules/action-bar/components/item.js +164 -0
  84. package/lib/modules/action-bar/components/leave/assign-host.d.ts +10 -0
  85. package/lib/modules/action-bar/components/leave/assign-host.js +64 -0
  86. package/lib/modules/action-bar/components/leave/index.css +126 -0
  87. package/lib/modules/action-bar/components/leave/index.d.ts +3 -0
  88. package/lib/modules/action-bar/components/leave/index.js +159 -0
  89. package/lib/modules/action-bar/components/leave/leave-meeting.d.ts +18 -0
  90. package/lib/modules/action-bar/components/leave/leave-meeting.js +153 -0
  91. package/lib/modules/action-bar/components/live-streaming/index.d.ts +4 -0
  92. package/lib/modules/action-bar/components/live-streaming/index.js +39 -0
  93. package/lib/modules/action-bar/components/more/index.css +114 -0
  94. package/lib/modules/action-bar/components/more/index.d.ts +5 -0
  95. package/lib/modules/action-bar/components/more/index.js +83 -0
  96. package/lib/modules/action-bar/components/more/poppover-content.d.ts +8 -0
  97. package/lib/modules/action-bar/components/more/poppover-content.js +400 -0
  98. package/lib/modules/action-bar/components/participants/index.css +21 -0
  99. package/lib/modules/action-bar/components/participants/index.d.ts +5 -0
  100. package/lib/modules/action-bar/components/participants/index.js +83 -0
  101. package/lib/modules/action-bar/components/record/index.css +39 -0
  102. package/lib/modules/action-bar/components/record/index.d.ts +5 -0
  103. package/lib/modules/action-bar/components/record/index.js +166 -0
  104. package/lib/modules/action-bar/components/record/stop-record-dialog.d.ts +5 -0
  105. package/lib/modules/action-bar/components/record/stop-record-dialog.js +48 -0
  106. package/lib/modules/action-bar/components/respond/index.d.ts +4 -0
  107. package/lib/modules/action-bar/components/respond/index.js +32 -0
  108. package/lib/modules/action-bar/components/screen-share/index.d.ts +4 -0
  109. package/lib/modules/action-bar/components/screen-share/index.js +106 -0
  110. package/lib/modules/action-bar/components/screen-share/submenu.d.ts +1 -0
  111. package/lib/modules/action-bar/components/screen-share/submenu.js +154 -0
  112. package/lib/modules/action-bar/components/security/index.d.ts +4 -0
  113. package/lib/modules/action-bar/components/security/index.js +58 -0
  114. package/lib/modules/action-bar/components/settings/index.d.ts +4 -0
  115. package/lib/modules/action-bar/components/settings/index.js +42 -0
  116. package/lib/modules/action-bar/index.css +23 -1
  117. package/lib/modules/action-bar/index.d.ts +2 -22
  118. package/lib/modules/action-bar/index.dev.js +37 -16
  119. package/lib/modules/action-bar/notification-bar/components/interpreter/index.css +58 -0
  120. package/lib/modules/action-bar/notification-bar/components/interpreter/index.d.ts +8 -0
  121. package/lib/modules/action-bar/notification-bar/components/interpreter/index.js +100 -0
  122. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.css +56 -0
  123. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.d.ts +5 -0
  124. package/lib/modules/action-bar/notification-bar/components/virtual-image/index.js +33 -0
  125. package/lib/modules/action-bar/notification-bar/dome.png +0 -0
  126. package/lib/modules/action-bar/notification-bar/fcr_translateswitch.png +0 -0
  127. package/lib/modules/action-bar/notification-bar/index.css +74 -0
  128. package/lib/modules/action-bar/notification-bar/index.d.ts +2 -0
  129. package/lib/modules/action-bar/notification-bar/index.js +99 -0
  130. package/lib/modules/action-bar/screen-share/index.js +5 -0
  131. package/lib/modules/action-bar/security/index.js +1 -0
  132. package/lib/modules/action-bar/smaller.js +2 -2
  133. package/lib/modules/action-bar/store.d.ts +6 -7
  134. package/lib/modules/action-bar/store.js +114 -128
  135. package/lib/modules/action-bar/trigger-input-language-room/fcr_translateswitch.png +0 -0
  136. package/lib/modules/action-bar/trigger-input-language-room/index.css +86 -0
  137. package/lib/modules/action-bar/trigger-input-language-room/index.d.ts +15 -0
  138. package/lib/modules/action-bar/trigger-input-language-room/index.js +220 -0
  139. package/lib/modules/action-bar/trigger-output-language-room/constant.d.ts +10 -0
  140. package/lib/modules/action-bar/trigger-output-language-room/constant.js +8 -0
  141. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.css +22 -0
  142. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.d.ts +14 -0
  143. package/lib/modules/action-bar/trigger-output-language-room/guide-tooltip/index.js +75 -0
  144. package/lib/modules/action-bar/trigger-output-language-room/index.d.ts +4 -0
  145. package/lib/modules/action-bar/trigger-output-language-room/index.js +98 -0
  146. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.d.ts +5 -0
  147. package/lib/modules/action-bar/trigger-output-language-room/trigger-language-room.js +66 -0
  148. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.d.ts +5 -0
  149. package/lib/modules/action-bar/trigger-output-language-room/trigger-main-room.js +36 -0
  150. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.d.ts +12 -0
  151. package/lib/modules/action-bar/trigger-output-language-room/useChangeOutputRoomTool.js +138 -0
  152. package/lib/modules/action-bar/view.js +6 -6
  153. package/lib/modules/audio-stream/index.d.ts +2 -15
  154. package/lib/modules/audio-stream/index.js +1 -3
  155. package/lib/modules/chat/chat-bar/index.css +5 -0
  156. package/lib/modules/chat/chat-bar/index.js +16 -14
  157. package/lib/modules/chat/chat-select/index.css +6 -3
  158. package/lib/modules/chat/chat.js +7 -6
  159. package/lib/modules/chat/index.css +10 -0
  160. package/lib/modules/chat/index.d.ts +2 -12
  161. package/lib/modules/chat/index.dev.js +14 -3
  162. package/lib/modules/chat/index.js +7 -20
  163. package/lib/modules/chat/message-list.js +1 -0
  164. package/lib/modules/chat/store.js +1 -1
  165. package/lib/modules/components/device-control/components/audio-menu/index.js +4 -4
  166. package/lib/modules/components/device-control/index.css +3 -0
  167. package/lib/modules/components/dialog-container/component/body.d.ts +7 -0
  168. package/lib/modules/components/dialog-container/component/body.js +46 -0
  169. package/lib/modules/components/dialog-container/index.css +78 -0
  170. package/lib/modules/components/dialog-container/index.d.ts +11 -0
  171. package/lib/modules/components/dialog-container/index.js +110 -0
  172. package/lib/modules/components/member-window/index.css +419 -0
  173. package/lib/modules/components/member-window/index.d.ts +76 -0
  174. package/lib/modules/components/member-window/index.js +888 -0
  175. package/lib/modules/components/security-menu/index.css +9 -0
  176. package/lib/modules/components/security-menu/index.js +74 -23
  177. package/lib/modules/components/tab-frame/index.css +40 -0
  178. package/lib/modules/components/tab-frame/index.d.ts +12 -0
  179. package/lib/modules/components/tab-frame/index.js +57 -0
  180. package/lib/modules/connection-gateway/components/computer/index.css +1 -0
  181. package/lib/modules/connection-gateway/components/phone/index.css +1 -1
  182. package/lib/modules/connection-gateway/index.d.ts +2 -9
  183. package/lib/modules/connection-gateway/store.d.ts +3 -11
  184. package/lib/modules/connection-gateway/store.js +1 -17
  185. package/lib/modules/connection-gateway/view.js +21 -4
  186. package/lib/modules/control-bar/components/cloud-recording-buttons.js +1 -1
  187. package/lib/modules/control-bar/index.d.ts +2 -16
  188. package/lib/modules/control-bar/index.js +10 -19
  189. package/lib/modules/control-bar/store.d.ts +3 -16
  190. package/lib/modules/control-bar/store.js +23 -5
  191. package/lib/modules/control-bar/view.js +17 -10
  192. package/lib/modules/device-pretest/settings/virtual-background-setting.js +1 -1
  193. package/lib/modules/dialog/components/Interpreter/electron.js +3 -25
  194. package/lib/modules/dialog/components/Interpreter/index.js +14 -43
  195. package/lib/modules/dialog/components/chat/electron.d.ts +1 -1
  196. package/lib/modules/dialog/components/chat/electron.js +6 -13
  197. package/lib/modules/dialog/components/chat/index.d.ts +1 -4
  198. package/lib/modules/dialog/components/chat/index.js +35 -41
  199. package/lib/modules/dialog/components/confirm/index.js +6 -7
  200. package/lib/modules/dialog/components/connection-gateway/electron.d.ts +1 -1
  201. package/lib/modules/dialog/components/connection-gateway/electron.js +9 -28
  202. package/lib/modules/dialog/components/connection-gateway/index.d.ts +0 -1
  203. package/lib/modules/dialog/components/connection-gateway/index.js +11 -56
  204. package/lib/modules/dialog/components/control-bar/index.js +6 -7
  205. package/lib/modules/dialog/components/device-setting/electron.js +4 -26
  206. package/lib/modules/dialog/components/device-setting/index.js +13 -41
  207. package/lib/modules/dialog/components/invite/index.js +16 -35
  208. package/lib/modules/dialog/components/live-streaming/index.js +18 -53
  209. package/lib/modules/dialog/components/participant/electron.js +4 -17
  210. package/lib/modules/dialog/components/participant/index.js +35 -26
  211. package/lib/modules/dialog/components/remove-admit-waiting-room/electron.js +3 -6
  212. package/lib/modules/dialog/components/remove-admit-waiting-room/index.d.ts +1 -1
  213. package/lib/modules/dialog/components/remove-admit-waiting-room/index.js +4 -14
  214. package/lib/modules/dialog/components/share-screen-selection/index.js +20 -5
  215. package/lib/modules/dialog/components/system-preference/electron.js +5 -8
  216. package/lib/modules/dialog/components/system-preference/index.js +4 -15
  217. package/lib/modules/dialog/components/toast/index.js +8 -12
  218. package/lib/modules/dialog/dialogs.js +2 -1
  219. package/lib/modules/dialog/hooks/useElectron.d.ts +6 -0
  220. package/lib/modules/dialog/hooks/useElectron.js +51 -9
  221. package/lib/modules/dialog/index.css +0 -2
  222. package/lib/modules/dialog/index.d.ts +2 -17
  223. package/lib/modules/dialog/store.d.ts +7 -39
  224. package/lib/modules/dialog/store.js +53 -152
  225. package/lib/modules/dialog/types/index.d.ts +59 -0
  226. package/lib/modules/event-confirm/view.js +4 -1
  227. package/lib/modules/invite/view.d.ts +4 -0
  228. package/lib/modules/invite/view.js +18 -22
  229. package/lib/modules/invite/voip-invite.js +3 -3
  230. package/lib/modules/layout/components/Aside.js +11 -1
  231. package/lib/modules/layout/components/Carousel.js +1 -1
  232. package/lib/modules/layout/components/Layout.js +7 -4
  233. package/lib/modules/layout/components/index.css +6 -1
  234. package/lib/modules/layout/index.js +8 -7
  235. package/lib/modules/layout/member-window/index.css +22 -9
  236. package/lib/modules/layout/member-window/index.js +16 -3
  237. package/lib/modules/layout/store.d.ts +1 -1
  238. package/lib/modules/layout/store.js +1 -7
  239. package/lib/modules/layout/video-window-datasource.js +11 -3
  240. package/lib/modules/notification/index.css +1 -0
  241. package/lib/modules/participant/attendee/index.css +1 -0
  242. package/lib/modules/participant/attendee/index.js +2 -1
  243. package/lib/modules/participant/components/drop-menu/index.css +1 -0
  244. package/lib/modules/participant/components/drop-menu/index.js +9 -9
  245. package/lib/modules/participant/index.css +5 -0
  246. package/lib/modules/participant/index.d.ts +2 -17
  247. package/lib/modules/participant/index.dev.js +38 -27
  248. package/lib/modules/participant/store.d.ts +4 -17
  249. package/lib/modules/participant/store.js +13 -13
  250. package/lib/modules/setting/audio-settings/audio-settings.js +13 -10
  251. package/lib/modules/setting/audio-settings/index.css +26 -1
  252. package/lib/modules/setting/general-settings/index.css +1 -1
  253. package/lib/modules/setting/index.css +2 -1
  254. package/lib/modules/setting/index.d.ts +2 -15
  255. package/lib/modules/setting/index.dev.js +19 -10
  256. package/lib/modules/setting/store.d.ts +5 -18
  257. package/lib/modules/setting/store.js +48 -20
  258. package/lib/modules/setting/translate-settings/index.css +3 -1
  259. package/lib/modules/setting/video-settings/index.css +5 -2
  260. package/lib/modules/share-screen/index.dev.js +20 -19
  261. package/lib/modules/share-screen/selection/index.css +2 -0
  262. package/lib/modules/share-screen/selection/index.js +83 -97
  263. package/lib/modules/share-screen/store.js +16 -36
  264. package/lib/modules/sound-effect/index.d.ts +2 -13
  265. package/lib/modules/sound-effect/index.js +1 -2
  266. package/lib/modules/state-bar/index.css +13 -2
  267. package/lib/modules/state-bar/index.d.ts +1 -5
  268. package/lib/modules/state-bar/index.dev.js +1 -1
  269. package/lib/modules/state-bar/index.js +0 -27
  270. package/lib/modules/state-bar/layout-config.js +1 -1
  271. package/lib/modules/state-bar/meeting-network-state.css +1 -1
  272. package/lib/modules/state-bar/recording.js +7 -4
  273. package/lib/modules/state-bar/view.js +1 -1
  274. package/lib/modules/video-window/index.d.ts +2 -2
  275. package/lib/modules/video-window/store.d.ts +2 -1
  276. package/lib/modules/video-window/store.js +2 -2
  277. package/lib/modules/waiting-room-layout/index.css +1 -3
  278. package/lib/modules/waiting-room-layout/index.d.ts +3 -1
  279. package/lib/modules/waiting-room-layout/index.js +10 -3
  280. package/lib/modules/whiteboard/index.d.ts +2 -13
  281. package/lib/modules/whiteboard/index.js +4 -5
  282. package/lib/providers/device-privilege-provider.d.ts +30 -0
  283. package/lib/providers/device-privilege-provider.js +386 -0
  284. package/lib/providers/device-provider.d.ts +246 -0
  285. package/lib/providers/device-provider.js +1741 -0
  286. package/lib/providers/device-stream-provider.d.ts +36 -0
  287. package/lib/providers/device-stream-provider.js +460 -0
  288. package/lib/providers/event-provider.d.ts +108 -0
  289. package/lib/providers/event-provider.js +288 -0
  290. package/lib/providers/interpreter-provider.d.ts +25 -0
  291. package/lib/providers/interpreter-provider.js +151 -0
  292. package/lib/providers/local-storage-provider.d.ts +8 -0
  293. package/lib/providers/local-storage-provider.js +31 -0
  294. package/lib/providers/monitor-provider.d.ts +15 -0
  295. package/lib/providers/monitor-provider.js +29 -0
  296. package/lib/providers/privilege-provider.d.ts +216 -0
  297. package/lib/providers/privilege-provider.js +966 -0
  298. package/lib/providers/renderer-provider.d.ts +43 -0
  299. package/lib/providers/renderer-provider.js +245 -0
  300. package/lib/providers/room-provider.d.ts +79 -0
  301. package/lib/providers/room-provider.js +439 -0
  302. package/lib/providers/session-provider.d.ts +26 -0
  303. package/lib/providers/session-provider.js +49 -0
  304. package/lib/runtime.d.ts +1 -1
  305. package/lib/scenes/base.d.ts +10 -0
  306. package/lib/scenes/base.js +75 -0
  307. package/lib/scenes/main-scene.d.ts +48 -0
  308. package/lib/scenes/main-scene.js +390 -0
  309. package/lib/scenes/waiting-scene.d.ts +31 -0
  310. package/lib/scenes/waiting-scene.js +129 -0
  311. package/lib/shared-data-source/config.d.ts +16 -0
  312. package/lib/shared-data-source/config.js +21 -0
  313. package/lib/type.d.ts +26 -1
  314. package/lib/ui-manager.d.ts +3 -0
  315. package/lib/ui-manager.js +154 -233
  316. package/lib/ui-node.d.ts +25 -0
  317. package/lib/ui-node.js +156 -0
  318. package/lib/utilities/constant.d.ts +15 -15
  319. package/lib/utilities/constant.js +15 -15
  320. package/lib/utilities/tools.d.ts +2 -0
  321. package/lib/utilities/tools.js +42 -10
  322. package/package.json +12 -11
  323. package/public/assets/fcr_leave2.svg +58 -0
  324. package/public/index.html +150 -13
@@ -0,0 +1,62 @@
1
+ .fcr-pc-full-screen-error {
2
+ width: 100%;
3
+ height: 100vh;
4
+ background-color: var(--fcr_ui_scene_inverse);
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ }
9
+
10
+ .fcr-pc-full-screen-error-content {
11
+ width: 272px;
12
+ height: 415px;
13
+ display: flex;
14
+ flex-direction: column;
15
+ }
16
+
17
+ .fcr-pc-full-screen-error-content-img {
18
+ width: 200px;
19
+ height: 200px;
20
+ align-self: center;
21
+ }
22
+
23
+ .fcr-pc-full-screen-close-btn {
24
+ width: 140px;
25
+ height: 50px;
26
+ display: flex;
27
+ justify-content: center;
28
+ align-items: center;
29
+ }
30
+
31
+ .fcr-pc-full-screen-error-content-title {
32
+ color: var(--fcr_ui_scene_inverse2);
33
+ font-size: 28px;
34
+ font-weight: 800;
35
+ align-self: center;
36
+ margin-top: 26px;
37
+ }
38
+
39
+ .fcr-pc-full-screen-error-content-desc {
40
+ color: var(--fcr_ui_scene_inverse2);
41
+ font-size: 16px;
42
+ font-weight: 400;
43
+ align-self: center;
44
+ margin-top: 24px;
45
+ margin-bottom: 46px;
46
+ }
47
+
48
+ .fcr-pc-full-screen-close-btn {
49
+ min-width: 56px;
50
+ height: 50px;
51
+ border-radius: var(--fcr_cornerradius_round);
52
+ background-color: var(--fcr_ui_scene_inverse2);
53
+ color: var(--fcr_ui_scene_inverse);
54
+ text-align: center;
55
+ line-height: 50px;
56
+ align-self: center;
57
+ cursor: pointer;
58
+ }
59
+
60
+ .fcr-pc-full-screen-close-btn:active {
61
+ transform: scale(0.94);
62
+ }
@@ -0,0 +1,2 @@
1
+ import { FallbackProps } from 'react-error-boundary';
2
+ export declare const ErrorFallback: ({ error }: FallbackProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.ErrorFallback = void 0;
8
+ var _jsxRuntime = require("react/jsx-runtime");
9
+ var ErrorFallback = exports.ErrorFallback = function ErrorFallback(_ref) {
10
+ var error = _ref.error;
11
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
12
+ className: "fcr-pc-full-screen-error",
13
+ style: {
14
+ width: '100%',
15
+ height: '100%',
16
+ backgroundColor: 'transparent'
17
+ }
18
+ });
19
+ };
@@ -1,4 +1,4 @@
1
- import { InitInterpreterItemModelType } from '../../constant';
1
+ import { InitInterpreterItemModelType } from '../../type';
2
2
  import './index.css';
3
3
  declare const _default: ({ model }: {
4
4
  model: InitInterpreterItemModelType;
@@ -1,4 +1,3 @@
1
- import './index.css';
2
1
  interface EditBtnProps {
3
2
  }
4
3
  declare const _default: (props: EditBtnProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -12,7 +12,6 @@ var _react = require("react");
12
12
  var _mobxReact = require("mobx-react");
13
13
  var _tooltipWrapper = _interopRequireDefault(require("../../tooltip-wrapper"));
14
14
  var _i18n = require("agora-ui-foundation/lib/i18n");
15
- require("./index.css");
16
15
  var _jsxRuntime = require("react/jsx-runtime");
17
16
  var EditBtn = function EditBtn(props) {
18
17
  var transI18n = (0, _i18n.useI18n)();
@@ -36,7 +35,6 @@ var EditBtn = function EditBtn(props) {
36
35
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltipWrapper["default"], {
37
36
  disabled: disabled,
38
37
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
39
- className: "fcr-simultaneous-interpretation__footer-right-set-btn",
40
38
  shape: "rounded",
41
39
  type: interpreterUsersEditState ? undefined : 'secondary-bordered',
42
40
  size: "XS",
@@ -0,0 +1,3 @@
1
+ .fcr-interpretation__footer-switch-btn {
2
+ margin-left: 8px;
3
+ }
@@ -1,5 +1,3 @@
1
- interface SwitchBtnProps {
2
- className?: string;
3
- }
4
- declare const _default: (props: SwitchBtnProps) => import("react/jsx-runtime").JSX.Element | null;
1
+ import './index.css';
2
+ declare const _default: () => import("react/jsx-runtime").JSX.Element | null;
5
3
  export default _default;
@@ -12,9 +12,9 @@ var _react = require("react");
12
12
  var _mobxReact = require("mobx-react");
13
13
  var _tooltipWrapper = _interopRequireDefault(require("../../tooltip-wrapper"));
14
14
  var _i18n = require("agora-ui-foundation/lib/i18n");
15
+ require("./index.css");
15
16
  var _jsxRuntime = require("react/jsx-runtime");
16
- var SwitchBtn = function SwitchBtn(props) {
17
- var className = props.className;
17
+ var SwitchBtn = function SwitchBtn() {
18
18
  var transI18n = (0, _i18n.useI18n)();
19
19
  var _useContext = (0, _react.useContext)(_store.StoreContext),
20
20
  openInterpreterState = _useContext.openInterpreterState,
@@ -39,7 +39,7 @@ var SwitchBtn = function SwitchBtn(props) {
39
39
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_tooltipWrapper["default"], {
40
40
  disabled: disabled,
41
41
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_button.FcrButton, {
42
- className: className,
42
+ className: "fcr-interpretation__footer-switch-btn",
43
43
  shape: "rounded",
44
44
  size: "XS",
45
45
  onClick: handleClick,
@@ -2,9 +2,10 @@
2
2
  display: flex;
3
3
  justify-content: space-between;
4
4
  align-items: center;
5
- position: fixed;
6
- width: calc(100% - 40px);
7
5
  height: 56px;
8
- bottom: 0;
9
6
  background: var(--fcr_mobile_ui_scene_color_popup_fill2);
7
+ position: absolute;
8
+ bottom: 0;
9
+ width: 100%;
10
+ padding: 0px 20px 0px;
10
11
  }
@@ -1,23 +1,8 @@
1
1
  import { UIModule } from '../../base';
2
- import { FcrUIEventStore } from '../../common/event-store';
3
- import { FcrInterpreterControl } from 'fcr-core/lib/room-control/interpreter-control/types';
4
- import { FcrMainRoomControl } from 'fcr-core/lib/room-control/type';
5
- import './index.css';
6
- import { FcrDeviceStore } from '../../common/device-store';
7
- import { FcrRoomStore } from '../../common/room-store';
8
- import { FcrDeviceStreamStore } from '../../common/device-stream-store';
9
- import { FcrSecurityStore } from '../../common/security-store';
2
+ import { StoreConfig } from '../../type';
10
3
  export declare class InterpreterUIModule extends UIModule {
11
4
  private _store;
12
- constructor({ roomControl, interpreterControl, uiEventStore, deviceStore, roomStore, deviceStreamStore, securityStore, }: {
13
- uiEventStore: FcrUIEventStore;
14
- roomControl: FcrMainRoomControl;
15
- interpreterControl: FcrInterpreterControl;
16
- deviceStore: FcrDeviceStore;
17
- roomStore: FcrRoomStore;
18
- deviceStreamStore: FcrDeviceStreamStore;
19
- securityStore: FcrSecurityStore;
20
- });
5
+ constructor(args: StoreConfig);
21
6
  getComponent(): import("react/jsx-runtime").JSX.Element;
22
7
  protected onUnload(): void;
23
8
  }
@@ -56,7 +56,6 @@ var _decorator = require("agora-foundation/lib/decorator");
56
56
  var _base = require("../../base");
57
57
  var _view = require("./view");
58
58
  var _store = _interopRequireWildcard(require("./store"));
59
- require("./index.css");
60
59
  var _jsxRuntime = require("react/jsx-runtime");
61
60
  var _InterpreterUIModule;
62
61
  var _initProto;
@@ -70,27 +69,12 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
70
69
  function _setFunctionName(e, t, n) { "symbol" == _typeof(t) && (t = (t = t.description) ? "[" + t + "]" : ""); try { Object.defineProperty(e, "name", { configurable: !0, value: n ? n + " " + t : t }); } catch (e) {} return e; }
71
70
  function _checkInRHS(e) { if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (null !== e ? _typeof(e) : "null")); return e; }
72
71
  var InterpreterUIModule = exports.InterpreterUIModule = /*#__PURE__*/function (_UIModule) {
73
- function InterpreterUIModule(_ref) {
72
+ function InterpreterUIModule(args) {
74
73
  var _this;
75
- var roomControl = _ref.roomControl,
76
- interpreterControl = _ref.interpreterControl,
77
- uiEventStore = _ref.uiEventStore,
78
- deviceStore = _ref.deviceStore,
79
- roomStore = _ref.roomStore,
80
- deviceStreamStore = _ref.deviceStreamStore,
81
- securityStore = _ref.securityStore;
82
74
  (0, _classCallCheck2["default"])(this, InterpreterUIModule);
83
75
  _this = _callSuper(this, InterpreterUIModule);
84
76
  (0, _defineProperty2["default"])(_this, "_store", void _initProto(_this));
85
- _this._store = new _store["default"]({
86
- roomControl: roomControl,
87
- interpreterControl: interpreterControl,
88
- uiEventStore: uiEventStore,
89
- deviceStore: deviceStore,
90
- roomStore: roomStore,
91
- deviceStreamStore: deviceStreamStore,
92
- securityStore: securityStore
93
- });
77
+ _this._store = new _store["default"](args);
94
78
  return _this;
95
79
  }
96
80
  (0, _inherits2["default"])(InterpreterUIModule, _UIModule);
@@ -1,4 +1,8 @@
1
1
  /* 设置滚动容器 */
2
2
  .fcr-simultaneous-interpretation__interpreter-list-container {
3
- padding-bottom: 98px;
3
+ overflow: auto;
4
+ -ms-overflow-style: none;
5
+ scrollbar-width: none;
6
+ height: 100%;
7
+ padding: 5px 20px 85px;
4
8
  }
@@ -1,6 +1,7 @@
1
1
  import './index.css';
2
2
  interface InterpreterListProps {
3
3
  isShowAddBtn: boolean;
4
+ refDom: React.MutableRefObject<HTMLDivElement | null>;
4
5
  }
5
6
  declare const _default: (props: InterpreterListProps) => import("react/jsx-runtime").JSX.Element;
6
7
  export default _default;
@@ -28,11 +28,13 @@ var _jsxRuntime = require("react/jsx-runtime");
28
28
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
29
29
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
30
30
  var InterpreterList = function InterpreterList(props) {
31
- var isShowAddBtn = props.isShowAddBtn;
31
+ var isShowAddBtn = props.isShowAddBtn,
32
+ refDom = props.refDom;
32
33
  var _useContext = (0, _react.useContext)(_store.StoreContext),
33
34
  localInterpreterUsers = _useContext.localInterpreterUsers;
34
35
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
35
36
  className: "fcr-simultaneous-interpretation__interpreter-list-container",
37
+ ref: refDom,
36
38
  children: [isShowAddBtn && /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn["default"], {
37
39
  position: _addBtn.PositionType.TOP
38
40
  }), localInterpreterUsers.map(function (ele, i) {
@@ -40,12 +40,6 @@
40
40
  margin-left: 3px;
41
41
  }
42
42
 
43
- .fcr-simultaneous-interpretation__pick-Language-container-icon {
44
- /* width: 24px;
45
- height: 24px;
46
- padding: 4px; */
47
- }
48
-
49
43
  .fcr-simultaneous-interpretation__pick-Language-container .fcr-select__options {
50
44
  max-height: 100px;
51
45
  overflow-y: overlay;
@@ -1,6 +1,6 @@
1
1
  import { FcrLanguage } from 'fcr-core/lib/room-control/interpreter-control/types';
2
2
  import './index.css';
3
- import { InitInterpreterItemModelType } from '../../../../constant';
3
+ import { InitInterpreterItemModelType } from '../../../../type';
4
4
  export declare const OptionItem: (props: {
5
5
  model: FcrLanguage;
6
6
  }) => import("react/jsx-runtime").JSX.Element;
@@ -3,9 +3,7 @@
3
3
  flex: 1;
4
4
  margin-right: 8px;
5
5
  }
6
- .fcr-simultaneous-interpretation__select-user .fcr-select.fcr-select--search .fcr-select__option {
7
- /* padding: 4px 11px 4px 11px; */
8
- }
6
+
9
7
  .fcr-simultaneous-interpretation__select-user .fcr-select__options {
10
8
  max-height: 112px;
11
9
  overflow-y: overlay;
@@ -1,10 +1,5 @@
1
- import { FcrInterpreterUserInfo } from 'fcr-core/lib/room-control/interpreter-control/types';
2
- import { InitInterpreterItemModelType } from '../../../../constant';
1
+ import { InitInterpreterItemModelType } from '../../../../type';
3
2
  import './index.css';
4
- type InterpreterItemPropertyKeys = keyof FcrInterpreterUserInfo;
5
- export type ObjectSatisfyingAnyInterpreterItemProperty = {
6
- [K in InterpreterItemPropertyKeys]?: FcrInterpreterUserInfo[K];
7
- };
8
3
  interface PickUserProps {
9
4
  model: InitInterpreterItemModelType;
10
5
  }
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", {
15
15
  value: true
16
16
  });
17
17
  exports["default"] = void 0;
18
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
18
19
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
19
20
  require("core-js/modules/es.array.filter.js");
20
21
  require("core-js/modules/es.array.find.js");
@@ -28,55 +29,21 @@ require("core-js/modules/esnext.iterator.constructor.js");
28
29
  require("core-js/modules/esnext.iterator.filter.js");
29
30
  require("core-js/modules/esnext.iterator.find.js");
30
31
  require("core-js/modules/esnext.iterator.map.js");
31
- var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
32
32
  var _react = require("react");
33
33
  var _select = require("agora-ui-foundation/lib/components/select");
34
34
  var _store = require("../../../../store");
35
35
  var _mobxReact = require("mobx-react");
36
36
  var _type = require("fcr-core/lib/type");
37
- var _avatar = require("agora-ui-foundation/lib/components/avatar");
38
- var _classnames = _interopRequireDefault(require("classnames"));
39
37
  var _type2 = require("agora-rte-sdk/lib/core/scene/type");
40
38
  var _i18n = require("agora-ui-foundation/lib/i18n");
39
+ var _optionItem = _interopRequireDefault(require("./option-Item"));
41
40
  require("./index.css");
42
41
  var _jsxRuntime = require("react/jsx-runtime");
43
- var _excluded = ["randomKey"];
42
+ var _excluded = ["randomKey", "userId"];
44
43
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
45
44
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
46
- var OptionItem = (0, _mobxReact.observer)(function (props) {
47
- var model = props.model;
48
- var transI18n = (0, _i18n.useI18n)();
49
- var userRole = (0, _react.useMemo)(function () {
50
- if (_type.FcrUserRole.HOST === model.userRole) {
51
- return transI18n('fmt_interpretation_interpreter_popup_special_co_host');
52
- }
53
- if (_type.FcrUserRole.COHOST === model.userRole) {
54
- return transI18n('fmt_interpretation_interpreter_popup_special_host');
55
- }
56
- return null;
57
- }, [model.userRole]);
58
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
59
- className: "fcr-simultaneous-interpretation__select-user-options-item",
60
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
61
- className: (0, _classnames["default"])('fcr-simultaneous-interpretation__select-user-options-item-avatar'),
62
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
63
- size: 24,
64
- nickName: model.userName,
65
- textSize: 13
66
- })
67
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
68
- className: "fcr-simultaneous-interpretation__select-user-options-item-user",
69
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
70
- className: "fcr-simultaneous-interpretation__select-user-options-item-user-name",
71
- children: model.userName
72
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
73
- className: "fcr-simultaneous-interpretation__select-user-options-item-user-role",
74
- children: userRole && "(".concat(userRole, ")")
75
- })]
76
- })]
77
- });
78
- });
79
45
  var PickUser = function PickUser(props) {
46
+ var _usersOptions$find;
80
47
  var model = props.model;
81
48
  var transI18n = (0, _i18n.useI18n)();
82
49
  var _useContext = (0, _react.useContext)(_store.StoreContext),
@@ -85,70 +52,77 @@ var PickUser = function PickUser(props) {
85
52
  interpreterUsersEditState = _useContext.interpreterUsersEditState,
86
53
  initUsers = _useContext.initUsers,
87
54
  localInterpreterUsers = _useContext.localInterpreterUsers;
88
- var handleChange = function handleChange(data) {
89
- updateInterpreterUsers(_objectSpread(_objectSpread({}, model), data));
90
- };
91
- var selectProps = (0, _react.useMemo)(function () {
92
- var _usersOptions$find;
93
- var selectedUserInfo = initUsers.find(function (user) {
94
- return user.userId === model.userId;
95
- });
55
+ var usersOptions = (0, _react.useMemo)(function () {
96
56
  var usersOptions = initUsers.filter(function (user) {
97
- var notOffline = !user.isOffLine || user.isOffLine && model.userId === user.userId; //未离线 或者 离线且当前行选中状态
57
+ var isSelected = model.userId === user.userId;
58
+
59
+ //未离线 或者 离线且当前行选中状态
60
+ var notOffline = !user.isOffLine || user.isOffLine && isSelected;
61
+ // 当前用户选项 是否被使用过
98
62
  var usedUser = localInterpreterUsers.find(function (interpreter) {
99
63
  return interpreter.userId === user.userId;
100
- }); // 当前用户选项 是否被使用过
101
- var unused = !usedUser || usedUser && (usedUser === null || usedUser === void 0 ? void 0 : usedUser.userId) === model.userId; /// 未使用过 或者 使用过且当前行选中状态
102
-
64
+ });
65
+ // 未使用过 或者 使用过且当前行选中状态
66
+ var unused = !usedUser || usedUser && isSelected;
103
67
  return notOffline && unused;
104
- }); // 离线 没有被选中
105
-
68
+ });
69
+ var selectedUserInfo = initUsers.find(function (user) {
70
+ return user.userId === model.userId;
71
+ });
106
72
  if (!selectedUserInfo && model.userId) {
107
73
  var randomKey = model.randomKey,
74
+ userId = model.userId,
108
75
  rest = (0, _objectWithoutProperties2["default"])(model, _excluded);
109
76
  usersOptions.push(_objectSpread(_objectSpread({}, rest), {}, {
77
+ userId: userId,
110
78
  userRole: _type.FcrUserRole.PARTICIPANT,
111
79
  connectorType: _type2.AgoraRteRoomConnectorType.NONE,
112
80
  isOffLine: true
113
81
  }));
114
82
  }
115
- var isOffLine = (_usersOptions$find = usersOptions.find(function (user) {
116
- return user.userId === model.userId;
117
- })) === null || _usersOptions$find === void 0 ? void 0 : _usersOptions$find.isOffLine;
118
- return {
119
- isOffLine: isOffLine,
120
- options: usersOptions.map(function (user) {
121
- return {
122
- text: user.userName,
123
- value: user.userId,
124
- render: function render(option) {
125
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(OptionItem, {
126
- model: user
127
- });
128
- }
129
- };
130
- })
131
- };
132
- }, [initUsers, localInterpreterUsers, model]);
83
+ return usersOptions;
84
+ }, [initUsers, model, localInterpreterUsers]);
85
+ var options = (0, _react.useMemo)(function () {
86
+ return usersOptions.map(function (user) {
87
+ var isSelected = model.userId === user.userId;
88
+ return {
89
+ text: user.userName,
90
+ value: user.userId,
91
+ render: function render(option) {
92
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_optionItem["default"], {
93
+ model: user,
94
+ isSelected: isSelected
95
+ });
96
+ }
97
+ };
98
+ });
99
+ }, [usersOptions, model]);
100
+ var isOffLine = (_usersOptions$find = usersOptions.find(function (user) {
101
+ return user.userId === model.userId;
102
+ })) === null || _usersOptions$find === void 0 ? void 0 : _usersOptions$find.isOffLine;
103
+ var tag = isOffLine ? transI18n('fmt_interpretation_setting_popup_controller_label_departure') : '';
104
+ var onChange = function onChange(value) {
105
+ var checkedItem = options.find(function (option) {
106
+ return option.value === value;
107
+ });
108
+ if (checkedItem) {
109
+ var interpreterUsers = _objectSpread(_objectSpread({}, model), {}, {
110
+ userId: checkedItem.value,
111
+ userName: checkedItem.text
112
+ });
113
+ updateInterpreterUsers(interpreterUsers);
114
+ }
115
+ };
133
116
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_select.FcrSelect, {
134
117
  className: "fcr-simultaneous-interpretation__select-user",
135
118
  showSearch: true,
136
- options: selectProps.options,
119
+ options: options,
137
120
  value: model.userId,
138
- onChange: function onChange(value) {
139
- var _selectProps$options$;
140
- var userName = (_selectProps$options$ = selectProps.options.find(function (option) {
141
- return option.value === value;
142
- })) === null || _selectProps$options$ === void 0 ? void 0 : _selectProps$options$.text;
143
- handleChange({
144
- userId: value,
145
- userName: userName
146
- });
147
- },
121
+ onChange: onChange,
148
122
  disabled: !interpreterUsersEditState && interpreterState,
149
123
  placeholder: transI18n('fmt_interpretation_setting_popup_controller_labe_search_name'),
150
124
  styleType: "white",
151
- tag: selectProps.isOffLine ? transI18n('fmt_interpretation_setting_popup_controller_label_departure') : ''
125
+ tag: tag
152
126
  });
153
127
  };
154
128
  var _default = exports["default"] = (0, _mobxReact.observer)(PickUser);
@@ -0,0 +1,6 @@
1
+ import { FcrUserInfo } from 'fcr-core/lib/type';
2
+ declare const OptionItem: (props: {
3
+ model: FcrUserInfo;
4
+ isSelected: boolean;
5
+ }) => import("react/jsx-runtime").JSX.Element;
6
+ export default OptionItem;
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+
3
+ require("core-js/modules/es.object.define-property.js");
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
5
+ Object.defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+ var _avatar = require("agora-ui-foundation/lib/components/avatar");
10
+ var _icon = require("agora-ui-foundation/lib/components/icon");
11
+ var _type = require("agora-ui-foundation/lib/components/icon/type");
12
+ var _i18n = require("agora-ui-foundation/lib/i18n");
13
+ var _classnames = _interopRequireDefault(require("classnames"));
14
+ var _fcrCore = require("fcr-core");
15
+ var _mobxReact = require("mobx-react");
16
+ var _react = require("react");
17
+ var _jsxRuntime = require("react/jsx-runtime");
18
+ var OptionItem = (0, _mobxReact.observer)(function (props) {
19
+ var model = props.model,
20
+ isSelected = props.isSelected;
21
+ var transI18n = (0, _i18n.useI18n)();
22
+ var userRole = (0, _react.useMemo)(function () {
23
+ if (_fcrCore.FcrUserRole.HOST === model.userRole) {
24
+ return transI18n('fmt_interpretation_interpreter_popup_special_co_host');
25
+ }
26
+ if (_fcrCore.FcrUserRole.COHOST === model.userRole) {
27
+ return transI18n('fmt_interpretation_interpreter_popup_special_host');
28
+ }
29
+ return null;
30
+ }, [model.userRole]);
31
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
32
+ className: "fcr-simultaneous-interpretation__select-user-options-item",
33
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
34
+ className: (0, _classnames["default"])('fcr-simultaneous-interpretation__select-user-options-item-avatar'),
35
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_avatar.FcrAvatar, {
36
+ size: 24,
37
+ nickName: model.userName,
38
+ textSize: 13
39
+ })
40
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
41
+ className: "fcr-simultaneous-interpretation__select-user-options-item-user",
42
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
43
+ className: "fcr-simultaneous-interpretation__select-user-options-item-user-name",
44
+ children: model.userName
45
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
46
+ className: "fcr-simultaneous-interpretation__select-user-options-item-user-role",
47
+ children: userRole && "(".concat(userRole, ")")
48
+ })]
49
+ }), isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)(_icon.FcrIcon, {
50
+ type: _type.FcrIconType.FCR_CHOOSEIT,
51
+ size: 24,
52
+ colors: {
53
+ iconPrimary: 'var(--fcr_web_ui_scene_mainicon1)'
54
+ }
55
+ })]
56
+ });
57
+ });
58
+ var _default = exports["default"] = OptionItem;
@@ -1,4 +1,4 @@
1
- import { InitInterpreterItemModelType } from '../../constant';
1
+ import { InitInterpreterItemModelType } from '../../type';
2
2
  import './index.css';
3
3
  interface InterpreterItemProps {
4
4
  model: InitInterpreterItemModelType;