tuikit-atomicx-vue3 3.4.2 → 4.3.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 (297) hide show
  1. package/.eslintrc.cjs +1 -0
  2. package/dist/baseComp/Modal/Modal.js +431 -23
  3. package/dist/chat/index.d.ts +18 -18
  4. package/dist/components/AudioSetting/AudioMediaControl.js +39 -41
  5. package/dist/components/AudioSetting/AudioSettingTab.js +10 -10
  6. package/dist/components/AudioSetting/MicrophoneSelect.js +8 -8
  7. package/dist/components/AudioSetting/SpeakerSelect.js +9 -9
  8. package/dist/components/AudioSettingPanel/i18n/en-US/index.d.ts +1 -0
  9. package/dist/components/AudioSettingPanel/i18n/en-US/index.js +2 -1
  10. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.d.ts +1 -0
  11. package/dist/components/AudioSettingPanel/i18n/zh-CN/index.js +2 -1
  12. package/dist/components/AudioSettingPanel/index.js +81 -73
  13. package/dist/components/BarrageInput/BarrageInputH5.js +9 -9
  14. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +3 -3
  15. package/dist/components/BarrageInput/MessageInputState.d.ts +28 -0
  16. package/dist/components/BarrageInput/MessageInputState.js +82 -0
  17. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  18. package/dist/components/BarrageInput/TextEditor/EditorCore.js +2 -2
  19. package/dist/components/BarrageInput/TextEditor/index.js +7 -7
  20. package/dist/components/BarrageInput/type.d.ts +17 -0
  21. package/dist/components/BarrageInput/type.js +4 -0
  22. package/dist/components/BarrageInput/utils.d.ts +30 -0
  23. package/dist/components/BarrageInput/utils.js +41 -0
  24. package/dist/components/BarrageList/BarrageList.js +80 -110
  25. package/dist/components/BarrageList/BarrageList.vue.d.ts +0 -29
  26. package/dist/components/BarrageList/BarrageListH5.js +95 -122
  27. package/dist/components/BarrageList/BarrageListH5.vue.d.ts +0 -29
  28. package/dist/components/BarrageList/BarrageListState.d.ts +58 -0
  29. package/dist/components/BarrageList/BarrageListState.js +106 -0
  30. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.js +16 -24
  31. package/dist/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue.d.ts +5 -5
  32. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.js +48 -73
  33. package/dist/components/BarrageList/Message/MessageLayout/MessageLayout.vue.d.ts +5 -7
  34. package/dist/components/BarrageList/Message/TextMessage/TextMessage.js +70 -76
  35. package/dist/components/BarrageList/Message/TextMessage/TextMessage.vue.d.ts +6 -6
  36. package/dist/components/BarrageList/Message/TextMessage/emoji.d.ts +5 -0
  37. package/dist/components/BarrageList/Message/TextMessage/emoji.js +134 -0
  38. package/dist/components/BarrageList/index.d.ts +0 -36
  39. package/dist/components/CameraButton/index.js +18 -19
  40. package/dist/components/CoGuestPanel/CoGuestPanel.js +60 -60
  41. package/dist/components/CoHostPanel/BattlePanel.js +11 -11
  42. package/dist/components/CoHostPanel/CoHostPanel.js +10 -10
  43. package/dist/components/CoHostPanel/ConfigSettingPanel.js +49 -55
  44. package/dist/components/CoHostPanel/ConnectionPanel.js +132 -123
  45. package/dist/components/CoHostPanel/RecommendHostList.js +39 -36
  46. package/dist/components/CoHostPanel/constants.d.ts +3 -0
  47. package/dist/components/CoHostPanel/constants.js +6 -0
  48. package/dist/components/CoHostPanel/i18n/en-US/index.d.ts +1 -0
  49. package/dist/components/CoHostPanel/i18n/en-US/index.js +2 -1
  50. package/dist/components/CoHostPanel/i18n/zh-CN/index.d.ts +1 -0
  51. package/dist/components/CoHostPanel/i18n/zh-CN/index.js +3 -2
  52. package/dist/components/LiveAudienceList/LiveAudienceList.js +44 -45
  53. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +7 -7
  54. package/dist/components/LiveAudienceList/UserActionMenu.js +57 -64
  55. package/dist/components/LiveList/LiveList.js +23 -23
  56. package/dist/components/LiveList/LiveListH5.js +38 -38
  57. package/dist/components/LiveScenePanel/CameraSettingDialog.js +10 -10
  58. package/dist/components/LiveScenePanel/MaterialItem.js +15 -15
  59. package/dist/components/LiveScenePanel/index.js +4 -4
  60. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +58 -58
  61. package/dist/components/LiveView/CoreViewDecorate/BattleUserDecorate.js +6 -6
  62. package/dist/components/LiveView/CoreViewDecorate/CoHostDecorate.js +5 -5
  63. package/dist/components/LiveView/DefaultStreamViewUI.js +44 -41
  64. package/dist/components/LiveView/PlayerControl/AudioControl.js +20 -20
  65. package/dist/components/LiveView/PlayerControl/MultiResolution.js +49 -48
  66. package/dist/components/LiveView/PlayerControl/MultiResolution.vue.d.ts +7 -1
  67. package/dist/components/LiveView/PlayerControl/PlayerControl.js +90 -86
  68. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +127 -131
  69. package/dist/components/LiveView/PlayerControl/utils/domHelpers.d.ts +6 -0
  70. package/dist/components/LiveView/PlayerControl/utils/domHelpers.js +54 -22
  71. package/dist/components/LiveView/i18n/en-US/index.d.ts +2 -2
  72. package/dist/components/LiveView/i18n/en-US/index.js +2 -2
  73. package/dist/components/LiveView/i18n/zh-CN/index.d.ts +2 -2
  74. package/dist/components/LiveView/i18n/zh-CN/index.js +2 -2
  75. package/dist/components/LiveView/index.js +17 -17
  76. package/dist/components/MessageInput/TextEditor/EditorCore.js +2 -2
  77. package/dist/components/MessageList/MessageList.vue.d.ts +2 -2
  78. package/dist/components/MessageList/index.d.ts +18 -18
  79. package/dist/components/MicButton/index.js +11 -11
  80. package/dist/components/StreamMixer/LocalMixer/MixerControl.js +12 -12
  81. package/dist/components/StreamMixer/LocalMixer/index.js +66 -63
  82. package/dist/components/StreamView/Layout/CustomLayout.js +8 -8
  83. package/dist/components/StreamView/Layout/FloatLayout.js +124 -127
  84. package/dist/components/StreamView/Layout/GridLayout.js +5 -5
  85. package/dist/components/StreamView/index.js +25 -33
  86. package/dist/components/StreamView/manager/mediaManager.js +54 -60
  87. package/dist/components/VideoSetting/CameraSelect.js +8 -8
  88. package/dist/components/VideoSetting/VideoMediaControl.js +10 -10
  89. package/dist/components/VideoSetting/VideoPreview.js +9 -9
  90. package/dist/components/VideoSetting/VideoProfile.js +6 -6
  91. package/dist/components/VideoSetting/VideoSettingTab.js +40 -39
  92. package/dist/components/VideoSettingPanel/CameraSelect.js +8 -8
  93. package/dist/components/VideoSettingPanel/VideoPreview.js +1 -1
  94. package/dist/components/VideoSettingPanel/VideoProfile.js +18 -18
  95. package/dist/hooks/useRoomEngine.js +6 -6
  96. package/dist/{index-D2OVtqc8.js → index-BfIEeWMg.js} +191 -181
  97. package/dist/{index-Bm-QfV5o.js → index-DTi1fL-x.js} +460 -457
  98. package/dist/index.js +162 -144
  99. package/dist/report/MetricsKey.d.ts +16 -0
  100. package/dist/report/MetricsKey.js +4 -0
  101. package/dist/report/dataReport.d.ts +12 -0
  102. package/dist/report/dataReport.js +45 -0
  103. package/dist/report/index.d.ts +4 -0
  104. package/dist/report/index.js +6 -0
  105. package/dist/rtc/index.d.ts +5 -43
  106. package/dist/rtc/index.js +48 -48
  107. package/dist/states/BarrageState/BarrageState.d.ts +74 -0
  108. package/dist/states/BarrageState/BarrageState.js +80 -0
  109. package/dist/states/BarrageState/index.d.ts +1 -0
  110. package/dist/states/BarrageState/index.js +5 -0
  111. package/dist/states/{BattleState.d.ts → BattleState/BattleState.d.ts} +10 -11
  112. package/dist/states/BattleState/BattleState.js +203 -0
  113. package/dist/states/BattleState/index.d.ts +1 -0
  114. package/dist/states/BattleState/index.js +4 -0
  115. package/dist/states/CoGuestState.d.ts +24 -94
  116. package/dist/states/CoGuestState.js +297 -189
  117. package/dist/states/CoHostState/CoHostState.d.ts +2 -2
  118. package/dist/states/CoHostState/CoHostState.js +135 -131
  119. package/dist/states/{DeviceState.d.ts → DeviceState/DeviceState.d.ts} +25 -13
  120. package/dist/states/DeviceState/DeviceState.js +314 -0
  121. package/dist/states/DeviceState/index.d.ts +1 -0
  122. package/dist/states/DeviceState/index.js +4 -0
  123. package/dist/states/LiveAudienceState.d.ts +3 -1
  124. package/dist/states/LiveAudienceState.js +106 -63
  125. package/dist/states/{LiveState/index.d.ts → LiveListState/LiveListState.d.ts} +13 -8
  126. package/dist/states/LiveListState/LiveListState.js +285 -0
  127. package/dist/states/LiveListState/index.d.ts +1 -0
  128. package/dist/states/LiveListState/index.js +4 -0
  129. package/dist/states/LiveMonitorState/api/http.js +147 -129
  130. package/dist/states/LiveMonitorState/index.js +67 -62
  131. package/dist/states/LiveSeatState/index.d.ts +46 -11
  132. package/dist/states/LiveSeatState/index.js +34 -15
  133. package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
  134. package/dist/states/LiveSeatState/seatEventManager.js +63 -42
  135. package/dist/states/LiveSeatState/seatManager.d.ts +34 -5
  136. package/dist/states/LiveSeatState/seatManager.js +131 -29
  137. package/dist/states/LiveSeatState/store.d.ts +5 -5
  138. package/dist/states/LiveSeatState/store.js +12 -10
  139. package/dist/states/LiveSeatState/usePlayStream/RTCStreamManager.js +1 -1
  140. package/dist/states/LiveSeatState/usePlayStream/RTCStreamPlayer.js +1 -1
  141. package/dist/states/LiveSeatState/usePlayStream/index.js +30 -28
  142. package/dist/states/LoginState.js +39 -34
  143. package/dist/states/SeatStore.js +82 -83
  144. package/dist/states/{VideoMixerState.d.ts → VideoMixerState/VideoMixerState.d.ts} +1 -1
  145. package/dist/states/VideoMixerState/VideoMixerState.js +269 -0
  146. package/dist/states/VideoMixerState/index.d.ts +1 -0
  147. package/dist/states/VideoMixerState/index.js +4 -0
  148. package/dist/styles/index.css +1 -1
  149. package/dist/types/audience.d.ts +21 -0
  150. package/dist/types/audience.js +4 -1
  151. package/dist/types/battle.d.ts +75 -3
  152. package/dist/types/battle.js +5 -1
  153. package/dist/types/coGuest.d.ts +72 -5
  154. package/dist/types/coGuest.js +4 -2
  155. package/dist/types/device.d.ts +38 -17
  156. package/dist/types/device.js +10 -8
  157. package/dist/types/index.d.ts +2 -2
  158. package/dist/types/index.js +96 -80
  159. package/dist/types/live.d.ts +36 -21
  160. package/dist/types/live.js +6 -4
  161. package/dist/types/seat.d.ts +23 -4
  162. package/dist/types/seat.js +7 -1
  163. package/dist/utils/eventCenter.d.ts +88 -0
  164. package/dist/utils/eventCenter.js +161 -0
  165. package/package.json +3 -3
  166. package/src/components/AudioSetting/AudioMediaControl.vue +1 -3
  167. package/src/components/AudioSetting/AudioSettingTab.vue +1 -2
  168. package/src/components/AudioSetting/MicrophoneSelect.vue +1 -2
  169. package/src/components/AudioSetting/SpeakerSelect.vue +1 -2
  170. package/src/components/AudioSettingPanel/i18n/en-US/index.ts +1 -0
  171. package/src/components/AudioSettingPanel/i18n/zh-CN/index.ts +1 -0
  172. package/src/components/AudioSettingPanel/index.vue +4 -2
  173. package/src/components/BarrageInput/BarrageInputH5.vue +1 -1
  174. package/src/components/BarrageInput/EmojiPicker/EmojiPicker.vue +1 -1
  175. package/src/components/BarrageInput/MessageInputState.ts +160 -0
  176. package/src/components/BarrageInput/TextEditor/TextEditor.vue +1 -1
  177. package/src/components/BarrageInput/type.ts +26 -0
  178. package/src/components/BarrageInput/utils.ts +45 -0
  179. package/src/components/BarrageList/BarrageList.vue +61 -117
  180. package/src/components/BarrageList/BarrageListH5.vue +75 -159
  181. package/src/components/BarrageList/BarrageListState.ts +223 -0
  182. package/src/components/BarrageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +8 -55
  183. package/src/components/BarrageList/Message/MessageLayout/MessageLayout.vue +19 -44
  184. package/src/components/BarrageList/Message/TextMessage/TextMessage.vue +69 -96
  185. package/src/components/BarrageList/Message/TextMessage/emoji.ts +132 -0
  186. package/src/components/CameraButton/index.vue +0 -1
  187. package/src/components/CoGuestPanel/CoGuestPanel.vue +16 -91
  188. package/src/components/CoHostPanel/BattlePanel.vue +1 -4
  189. package/src/components/CoHostPanel/ConfigSettingPanel.vue +2 -8
  190. package/src/components/CoHostPanel/ConnectionPanel.vue +37 -33
  191. package/src/components/CoHostPanel/RecommendHostList.vue +12 -13
  192. package/src/components/CoHostPanel/constants.ts +3 -0
  193. package/src/components/CoHostPanel/i18n/en-US/index.ts +1 -0
  194. package/src/components/CoHostPanel/i18n/zh-CN/index.ts +2 -1
  195. package/src/components/LiveAudienceList/LiveAudienceList.vue +4 -5
  196. package/src/components/LiveAudienceList/LiveAudienceListH5.vue +2 -2
  197. package/src/components/LiveAudienceList/UserActionMenu.vue +7 -48
  198. package/src/components/LiveList/LiveList.vue +5 -5
  199. package/src/components/LiveList/LiveListH5.vue +6 -6
  200. package/src/components/LiveScenePanel/index.vue +2 -2
  201. package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +10 -15
  202. package/src/components/LiveView/CoreViewDecorate/BattleUserDecorate.vue +2 -2
  203. package/src/components/LiveView/DefaultStreamViewUI.vue +5 -3
  204. package/src/components/LiveView/PlayerControl/AudioControl.vue +1 -1
  205. package/src/components/LiveView/PlayerControl/MultiResolution.vue +9 -3
  206. package/src/components/LiveView/PlayerControl/PlayerControl.vue +10 -2
  207. package/src/components/LiveView/PlayerControl/PlayerControlState.ts +233 -259
  208. package/src/components/LiveView/PlayerControl/utils/domHelpers.ts +64 -0
  209. package/src/components/LiveView/i18n/en-US/index.ts +2 -2
  210. package/src/components/LiveView/i18n/zh-CN/index.ts +2 -2
  211. package/src/components/LiveView/index.vue +2 -2
  212. package/src/components/MicButton/index.vue +3 -3
  213. package/src/components/StreamMixer/LocalMixer/index.vue +6 -8
  214. package/src/components/StreamView/Layout/CustomLayout.vue +2 -2
  215. package/src/components/StreamView/Layout/FloatLayout.vue +88 -83
  216. package/src/components/StreamView/index.vue +28 -14
  217. package/src/components/StreamView/manager/mediaManager.ts +38 -42
  218. package/src/components/VideoSetting/CameraSelect.vue +1 -2
  219. package/src/components/VideoSetting/VideoMediaControl.vue +1 -1
  220. package/src/components/VideoSetting/VideoPreview.vue +1 -2
  221. package/src/components/VideoSetting/VideoProfile.vue +1 -1
  222. package/src/components/VideoSetting/VideoSettingTab.vue +9 -5
  223. package/src/components/VideoSettingPanel/CameraSelect.vue +1 -2
  224. package/src/components/VideoSettingPanel/VideoProfile.vue +7 -7
  225. package/src/hooks/useRoomEngine.ts +1 -1
  226. package/src/report/MetricsKey.ts +16 -0
  227. package/src/report/dataReport.ts +55 -0
  228. package/src/report/index.ts +7 -0
  229. package/src/rtc/index.ts +7 -9
  230. package/src/types/audience.ts +27 -1
  231. package/src/types/battle.ts +87 -4
  232. package/src/types/coGuest.ts +87 -5
  233. package/src/types/device.ts +41 -16
  234. package/src/types/index.ts +2 -2
  235. package/src/types/live.ts +41 -22
  236. package/src/types/seat.ts +28 -4
  237. package/src/utils/eventCenter.ts +249 -0
  238. package/dist/DialogPortal-CvJcEAsn.js +0 -417
  239. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.js +0 -23
  240. package/dist/components/BarrageList/Message/FaceMessage/FaceMessage.vue.d.ts +0 -30
  241. package/dist/components/BarrageList/Message/FaceMessage/index.d.ts +0 -3
  242. package/dist/components/BarrageList/Message/FaceMessage/index.js +0 -4
  243. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.js +0 -4
  244. package/dist/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue.d.ts +0 -16
  245. package/dist/components/BarrageList/Message/GroupTipMessage/index.d.ts +0 -3
  246. package/dist/components/BarrageList/Message/GroupTipMessage/index.js +0 -25
  247. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.js +0 -71
  248. package/dist/components/BarrageList/Message/ImageMessage/ImageMessage.vue.d.ts +0 -34
  249. package/dist/components/BarrageList/Message/ImageMessage/index.d.ts +0 -3
  250. package/dist/components/BarrageList/Message/ImageMessage/index.js +0 -4
  251. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.js +0 -9
  252. package/dist/components/BarrageList/Message/MergerMessage/MergerMessage.vue.d.ts +0 -2
  253. package/dist/components/BarrageList/Message/MergerMessage/index.d.ts +0 -3
  254. package/dist/components/BarrageList/Message/MergerMessage/index.js +0 -4
  255. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.js +0 -40
  256. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue.d.ts +0 -54
  257. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.js +0 -26
  258. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue.d.ts +0 -15
  259. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.d.ts +0 -3
  260. package/dist/components/BarrageList/Message/MessageLayout/MessageMeta/index.js +0 -4
  261. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.js +0 -41
  262. package/dist/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue.d.ts +0 -35
  263. package/dist/components/BarrageList/Message/RecalledMessage/index.d.ts +0 -3
  264. package/dist/components/BarrageList/Message/RecalledMessage/index.js +0 -4
  265. package/dist/components/BarrageList/MessageForward/ForwardListItem.js +0 -45
  266. package/dist/components/BarrageList/MessageForward/ForwardListItem.vue.d.ts +0 -17
  267. package/dist/components/BarrageList/MessageForward/MessageForward.js +0 -203
  268. package/dist/components/BarrageList/MessageForward/MessageForward.vue.d.ts +0 -2
  269. package/dist/components/BarrageList/MessageForward/index.d.ts +0 -3
  270. package/dist/components/BarrageList/MessageForward/index.js +0 -4
  271. package/dist/components/StreamView/Layout/MixLayout.js +0 -89
  272. package/dist/components/StreamView/Layout/MixLayout.vue.d.ts +0 -31
  273. package/dist/states/BarrageListState/BarrageListState.d.ts +0 -26
  274. package/dist/states/BarrageListState/BarrageListState.js +0 -122
  275. package/dist/states/BarrageListState/index.d.ts +0 -1
  276. package/dist/states/BarrageListState/index.js +0 -4
  277. package/dist/states/BattleState.js +0 -117
  278. package/dist/states/DeviceState.js +0 -296
  279. package/dist/states/LiveState/index.js +0 -254
  280. package/dist/states/VideoMixerState.js +0 -260
  281. package/src/components/BarrageList/Message/FaceMessage/FaceMessage.vue +0 -43
  282. package/src/components/BarrageList/Message/FaceMessage/index.ts +0 -3
  283. package/src/components/BarrageList/Message/GroupTipMessage/GroupTipMessage.vue +0 -55
  284. package/src/components/BarrageList/Message/GroupTipMessage/index.ts +0 -3
  285. package/src/components/BarrageList/Message/ImageMessage/ImageMessage.vue +0 -181
  286. package/src/components/BarrageList/Message/ImageMessage/index.ts +0 -3
  287. package/src/components/BarrageList/Message/MergerMessage/MergerMessage.vue +0 -6
  288. package/src/components/BarrageList/Message/MergerMessage/index.ts +0 -3
  289. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageMeta.vue +0 -70
  290. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/MessageStatusIcon.vue +0 -40
  291. package/src/components/BarrageList/Message/MessageLayout/MessageMeta/index.ts +0 -3
  292. package/src/components/BarrageList/Message/RecalledMessage/RecalledMessage.vue +0 -82
  293. package/src/components/BarrageList/Message/RecalledMessage/index.ts +0 -3
  294. package/src/components/BarrageList/MessageForward/ForwardListItem.vue +0 -67
  295. package/src/components/BarrageList/MessageForward/MessageForward.vue +0 -388
  296. package/src/components/BarrageList/MessageForward/index.ts +0 -3
  297. package/src/components/StreamView/Layout/MixLayout.vue +0 -144
@@ -1,32 +1,31 @@
1
- import { defineComponent as T, ref as u, computed as b, onMounted as H, onUnmounted as D, createElementBlock as o, openBlock as r, normalizeStyle as N, createElementVNode as n, createCommentVNode as p, createBlock as F, Fragment as K, renderList as P, unref as e, createVNode as U, renderSlot as j, normalizeClass as q, toDisplayString as c } from "vue";
1
+ import { defineComponent as T, ref as u, computed as b, onMounted as H, onUnmounted as D, createElementBlock as o, openBlock as r, normalizeStyle as V, createElementVNode as n, createCommentVNode as p, createBlock as F, Fragment as K, renderList as P, unref as e, createVNode as $, renderSlot as j, normalizeClass as q, toDisplayString as c } from "vue";
2
2
  import { useUIKit as G } from "@tencentcloud/uikit-base-component-vue3";
3
3
  import { useLiveAudienceState as J } from "../../states/LiveAudienceState.js";
4
- import { useLiveState as Q } from "../../states/LiveState/index.js";
5
- import { useLoginState as W } from "../../states/LoginState.js";
6
- import X from "./UserActionMenu.js";
7
- import V from "../Avatar/Avatar.js";
8
- import { LiveStatus as Y } from "../../types/live.js";
9
- import { _ as Z } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
10
- const ee = ["onClick"], te = { class: "viewer-info" }, se = { class: "viewer-name" }, re = {
4
+ import { useLoginState as Q } from "../../states/LoginState.js";
5
+ import z from "../Avatar/Avatar.js";
6
+ import W from "./UserActionMenu.js";
7
+ import { useLiveListState as X } from "../../states/LiveListState/LiveListState.js";
8
+ import { _ as Y } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
9
+ const Z = ["onClick"], ee = { class: "viewer-info" }, te = { class: "viewer-name" }, se = {
11
10
  key: 0,
12
11
  class: "loading-indicator"
13
- }, ne = {
12
+ }, re = {
14
13
  key: 1,
15
14
  class: "viewer-bottom-line"
16
- }, ae = {
15
+ }, ne = {
17
16
  key: 2,
18
17
  class: "empty-state"
19
- }, le = {
18
+ }, ae = {
20
19
  key: 0,
21
20
  class: "viewer-item current-user-item"
22
- }, ie = { class: "viewer-info" }, oe = { class: "viewer-name" }, ue = /* @__PURE__ */ T({
21
+ }, le = { class: "viewer-info" }, ie = { class: "viewer-name" }, oe = /* @__PURE__ */ T({
23
22
  __name: "LiveAudienceList",
24
23
  props: {
25
24
  height: {},
26
25
  style: {}
27
26
  },
28
- setup($) {
29
- const { t: _ } = G(), g = u(null), a = u(null), v = u(!1), y = $, { loginUserInfo: d } = W(), { audienceList: L, audienceCount: z, fetchAudienceList: M } = J(), { localLiveStatus: x, currentLive: B } = Q(), E = (s) => {
27
+ setup(M) {
28
+ const { t: _ } = G(), g = u(null), a = u(null), d = u(!1), y = M, { loginUserInfo: v } = Q(), { audienceList: L, audienceCount: x, fetchAudienceList: B } = J(), { currentLive: w } = X(), E = (s) => {
30
29
  switch (s) {
31
30
  case 1:
32
31
  return "rank-first";
@@ -37,9 +36,9 @@ const ee = ["onClick"], te = { class: "viewer-info" }, se = { class: "viewer-nam
37
36
  default:
38
37
  return "rank-default";
39
38
  }
40
- }, k = u(!1), m = u(null), w = u({}), C = b(() => {
39
+ }, k = u(!1), m = u(null), I = u({}), C = b(() => {
41
40
  var s, t;
42
- return ((s = d.value) == null ? void 0 : s.userId) === ((t = B.value) == null ? void 0 : t.liveOwner.userId);
41
+ return ((s = v.value) == null ? void 0 : s.userId) === ((t = w.value) == null ? void 0 : t.liveOwner.userId);
43
42
  }), R = (s, t) => {
44
43
  if (!C.value)
45
44
  return;
@@ -47,34 +46,34 @@ const ee = ["onClick"], te = { class: "viewer-info" }, se = { class: "viewer-nam
47
46
  const l = t.currentTarget;
48
47
  g.value = l;
49
48
  const f = l.getBoundingClientRect();
50
- w.value = {
49
+ I.value = {
51
50
  position: "fixed",
52
51
  left: `${f.left}px`,
53
52
  top: `${f.bottom + 8}px`,
54
53
  zIndex: 1001
55
54
  };
56
- }, I = async () => {
57
- if (!a.value || v.value)
55
+ }, S = async () => {
56
+ if (!a.value || d.value)
58
57
  return;
59
58
  const { scrollTop: s, clientHeight: t, scrollHeight: l } = a.value;
60
59
  if (s + t >= l - 50) {
61
- v.value = !0;
60
+ d.value = !0;
62
61
  try {
63
- await M();
62
+ await B();
64
63
  } finally {
65
- v.value = !1;
64
+ d.value = !1;
66
65
  }
67
66
  }
68
67
  };
69
68
  return H(() => {
70
- a.value && a.value.addEventListener("scroll", I);
69
+ a.value && a.value.addEventListener("scroll", S);
71
70
  }), D(() => {
72
- a.value && a.value.removeEventListener("scroll", I);
71
+ a.value && a.value.removeEventListener("scroll", S);
73
72
  }), (s, t) => {
74
- var l, f, S, A;
73
+ var l, f, A, N, U;
75
74
  return r(), o("div", {
76
75
  class: "viewers-panel",
77
- style: N({ height: y.height, ...y.style })
76
+ style: V({ height: y.height, ...y.style })
78
77
  }, [
79
78
  n("div", {
80
79
  ref_key: "viewersListRef",
@@ -89,44 +88,44 @@ const ee = ["onClick"], te = { class: "viewer-info" }, se = { class: "viewer-nam
89
88
  n("span", {
90
89
  class: q(["rank", E(h + 1)])
91
90
  }, c(h < 10 ? h + 1 : "-"), 3),
92
- U(e(V), {
91
+ $(e(z), {
93
92
  src: i.avatarUrl,
94
93
  size: 26
95
94
  }, null, 8, ["src"]),
96
95
  j(s.$slots, "audience-mark", { audience: i }, void 0, !0),
97
- n("div", te, [
98
- n("span", se, c(i.userName || i.userId), 1)
96
+ n("div", ee, [
97
+ n("span", te, c(i.userName || i.userId), 1)
99
98
  ])
100
- ], 8, ee))), 128)),
101
- v.value ? (r(), o("div", re, c(e(_)("Loading...")), 1)) : p("", !0),
102
- e(z) >= 200 ? (r(), o("div", ne, c(e(_)("Only show 200 viewers")), 1)) : p("", !0),
103
- e(L).length === 0 && !v.value ? (r(), o("div", ae, [
99
+ ], 8, Z))), 128)),
100
+ d.value ? (r(), o("div", se, c(e(_)("Loading...")), 1)) : p("", !0),
101
+ e(x) >= 200 ? (r(), o("div", re, c(e(_)("Only show 200 viewers")), 1)) : p("", !0),
102
+ e(L).length === 0 && !d.value ? (r(), o("div", ne, [
104
103
  n("p", null, c(e(_)("No audience yet")), 1)
105
104
  ])) : p("", !0)
106
105
  ], 512),
107
- e(d) && e(x) === e(Y).Live && !C.value ? (r(), o("div", le, [
106
+ e(v) && ((l = e(w)) != null && l.liveId) && !C.value ? (r(), o("div", ae, [
108
107
  t[1] || (t[1] = n("span", { class: "rank" }, "-", -1)),
109
- U(e(V), {
110
- src: e(d).avatarUrl,
108
+ $(e(z), {
109
+ src: e(v).avatarUrl,
111
110
  size: 26
112
111
  }, null, 8, ["src"]),
113
- n("div", ie, [
114
- n("span", oe, c(`${e(d).userName || e(d).userId} (${e(_)("Me")})`), 1)
112
+ n("div", le, [
113
+ n("span", ie, c(`${e(v).userName || e(v).userId} (${e(_)("Me")})`), 1)
115
114
  ])
116
115
  ])) : p("", !0),
117
- k.value ? (r(), F(X, {
116
+ k.value ? (r(), F(W, {
118
117
  key: 1,
119
- "user-id": ((l = m.value) == null ? void 0 : l.userId) || "",
120
- "user-name": ((f = m.value) == null ? void 0 : f.userName) || ((S = m.value) == null ? void 0 : S.userId) || "",
121
- "avatar-url": (A = m.value) == null ? void 0 : A.avatarUrl,
122
- style: N(w.value),
118
+ "user-id": ((f = m.value) == null ? void 0 : f.userId) || "",
119
+ "user-name": ((A = m.value) == null ? void 0 : A.userName) || ((N = m.value) == null ? void 0 : N.userId) || "",
120
+ "avatar-url": (U = m.value) == null ? void 0 : U.avatarUrl,
121
+ style: V(I.value),
123
122
  "click-target": g.value,
124
123
  onClose: t[0] || (t[0] = (i) => k.value = !1)
125
124
  }, null, 8, ["user-id", "user-name", "avatar-url", "style", "click-target"])) : p("", !0)
126
125
  ], 4);
127
126
  };
128
127
  }
129
- }), ge = /* @__PURE__ */ Z(ue, [["__scopeId", "data-v-51062739"]]);
128
+ }), ke = /* @__PURE__ */ Y(oe, [["__scopeId", "data-v-924c6ef3"]]);
130
129
  export {
131
- ge as default
130
+ ke as default
132
131
  };
@@ -1,9 +1,9 @@
1
1
  import { defineComponent as C, ref as c, computed as S, createElementBlock as o, openBlock as r, normalizeStyle as x, createElementVNode as l, createCommentVNode as p, Fragment as V, renderList as A, unref as s, createVNode as N, renderSlot as b, toDisplayString as a } from "vue";
2
2
  import { useLoginState as z } from "../../states/LoginState.js";
3
- import { useLiveState as B } from "../../states/LiveState/index.js";
4
- import { useLiveAudienceState as O } from "../../states/LiveAudienceState.js";
5
- import { useUIKit as U } from "@tencentcloud/uikit-base-component-vue3";
6
- import $ from "../Avatar/Avatar.js";
3
+ import { useLiveAudienceState as B } from "../../states/LiveAudienceState.js";
4
+ import { useUIKit as O } from "@tencentcloud/uikit-base-component-vue3";
5
+ import U from "../Avatar/Avatar.js";
6
+ import { useLiveListState as $ } from "../../states/LiveListState/LiveListState.js";
7
7
  import { _ as E } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
8
8
  const H = { class: "viewers-list" }, M = ["onClick"], T = { class: "viewer-info" }, D = { class: "viewer-name" }, F = {
9
9
  key: 0,
@@ -18,7 +18,7 @@ const H = { class: "viewers-list" }, M = ["onClick"], T = { class: "viewer-info"
18
18
  style: {}
19
19
  },
20
20
  setup(v) {
21
- const { t: u } = U(), _ = c(null), d = v, { loginUserInfo: f } = z(), { audienceList: m, audienceCount: h } = O(), { currentLive: g } = B(), y = c(!1), L = c(null), k = c({}), w = S(() => {
21
+ const { t: u } = O(), _ = c(null), d = v, { loginUserInfo: f } = z(), { audienceList: m, audienceCount: h } = B(), { currentLive: g } = $(), y = c(!1), L = c(null), k = c({}), w = S(() => {
22
22
  var t, n;
23
23
  return ((t = f.value) == null ? void 0 : t.userId) === ((n = g.value) == null ? void 0 : n.liveOwner.userId);
24
24
  }), I = (t, n) => {
@@ -44,7 +44,7 @@ const H = { class: "viewers-list" }, M = ["onClick"], T = { class: "viewer-info"
44
44
  class: "viewer-item",
45
45
  onClick: (i) => I(e, i)
46
46
  }, [
47
- N(s($), {
47
+ N(s(U), {
48
48
  src: e.avatarUrl,
49
49
  size: 40
50
50
  }, null, 8, ["src"]),
@@ -60,7 +60,7 @@ const H = { class: "viewers-list" }, M = ["onClick"], T = { class: "viewer-info"
60
60
  ])
61
61
  ], 4));
62
62
  }
63
- }), X = /* @__PURE__ */ E(R, [["__scopeId", "data-v-68b59301"]]);
63
+ }), X = /* @__PURE__ */ E(R, [["__scopeId", "data-v-0031b097"]]);
64
64
  export {
65
65
  X as default
66
66
  };
@@ -1,15 +1,16 @@
1
- import { defineComponent as D, ref as N, computed as d, onMounted as w, onUnmounted as E, createElementBlock as c, openBlock as u, withModifiers as R, createElementVNode as l, createCommentVNode as T, createVNode as x, unref as K, toDisplayString as k, Fragment as V, renderList as B } from "vue";
2
- import { useUIKit as z, TUIToast as b } from "@tencentcloud/uikit-base-component-vue3";
3
- import { useCoGuestState as $ } from "../../states/CoGuestState.js";
4
- import { useLiveAudienceState as j } from "../../states/LiveAudienceState.js";
5
- import { useLiveState as q } from "../../states/LiveState/index.js";
6
- import { useLoginState as H } from "../../states/LoginState.js";
7
- import J from "../Avatar/Avatar.js";
8
- import { _ as P } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
9
- const Q = { class: "action-menu-content" }, W = { class: "action-menu-header" }, X = { class: "user-info-simple" }, Y = { class: "user-name-simple" }, Z = {
1
+ import { defineComponent as y, ref as F, computed as l, onMounted as D, onUnmounted as N, createElementBlock as c, openBlock as a, withModifiers as w, createElementVNode as u, createCommentVNode as E, createVNode as R, unref as T, toDisplayString as I, Fragment as x, renderList as K } from "vue";
2
+ import { useUIKit as V, TUIToast as k } from "@tencentcloud/uikit-base-component-vue3";
3
+ import { useCoGuestState as B } from "../../states/CoGuestState.js";
4
+ import { useLiveAudienceState as G } from "../../states/LiveAudienceState.js";
5
+ import { useLoginState as z } from "../../states/LoginState.js";
6
+ import { useLiveSeatState as $ } from "../../states/LiveSeatState/index.js";
7
+ import j from "../Avatar/Avatar.js";
8
+ import { useLiveListState as q } from "../../states/LiveListState/LiveListState.js";
9
+ import { _ as H } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
10
+ const J = { class: "action-menu-content" }, P = { class: "action-menu-header" }, Q = { class: "user-info-simple" }, W = { class: "user-name-simple" }, X = {
10
11
  key: 0,
11
12
  class: "action-menu-list"
12
- }, ee = ["onClick"], se = /* @__PURE__ */ D({
13
+ }, Y = ["onClick"], Z = /* @__PURE__ */ y({
13
14
  __name: "UserActionMenu",
14
15
  props: {
15
16
  userId: {},
@@ -18,85 +19,77 @@ const Q = { class: "action-menu-content" }, W = { class: "action-menu-header" },
18
19
  clickTarget: {}
19
20
  },
20
21
  emits: ["close"],
21
- setup(a, { emit: g }) {
22
- const { t: i } = z(), m = N(), f = g, t = a, { currentLive: _ } = q(), {
23
- userListInCoGuest: h,
24
- receivedCoGuestUserList: U,
25
- sentCoGuestUserList: C,
26
- availableCoGuestUserList: L,
27
- disconnect: M
28
- } = $(), { disableSendMessage: v, audienceList: O, kickUserOutOfRoom: S } = j(), { loginUserInfo: A } = H(), y = d(() => O.value.find((e) => e.userId === t.userId)), F = d(() => {
29
- var e, s;
30
- return ((e = A.value) == null ? void 0 : e.userId) === ((s = _.value) == null ? void 0 : s.liveOwner.userId);
31
- }), I = d(() => {
32
- var r;
22
+ setup(r, { emit: g }) {
23
+ const { t: o } = V(), d = F(), m = g, n = r, { currentLive: _ } = q(), { connected: h } = B(), { kickUserOutOfSeat: b } = $(), { disableSendMessage: f, audienceList: U, kickUserOutOfRoom: M } = G(), { loginUserInfo: S } = z(), O = l(() => U.value.find((e) => e.userId === n.userId)), L = l(() => {
24
+ var e, t;
25
+ return ((e = S.value) == null ? void 0 : e.userId) === ((t = _.value) == null ? void 0 : t.liveOwner.userId);
26
+ }), v = l(() => {
27
+ var i;
33
28
  const e = [];
34
- if (!F.value)
29
+ if (!L.value)
35
30
  return [];
36
- const s = h.value.some((o) => o.userId === t.userId);
37
- C.value.some((o) => o.userId === t.userId), L.value.some((o) => o.userId === t.userId), U.value.some((o) => o.userId === t.userId);
38
- const n = (r = y.value) == null ? void 0 : r.isMessageDisabled;
39
- return n || e.push({
40
- label: i("Mute"),
31
+ const t = h.value.some((A) => A.userId === n.userId), s = (i = O.value) == null ? void 0 : i.isMessageDisabled;
32
+ return s || e.push({
33
+ label: o("Mute"),
41
34
  action: "disableSendMessage",
42
- actionFn: () => v({ userId: t.userId, isDisable: !0 })
43
- }), n && e.push({
44
- label: i("Unmute"),
35
+ actionFn: () => f({ userId: n.userId, isDisable: !0 })
36
+ }), s && e.push({
37
+ label: o("Unmute"),
45
38
  action: "disableSendMessage",
46
- actionFn: () => v({ userId: t.userId, isDisable: !1 })
47
- }), s && e.push({ label: i("Kick out"), action: "disconnect", actionFn: () => M(t.userId) }), e.push({
48
- label: i("Kick out of room"),
39
+ actionFn: () => f({ userId: n.userId, isDisable: !1 })
40
+ }), t && e.push({ label: o("Kick out"), action: "disconnect", actionFn: () => b({ userId: n.userId }) }), e.push({
41
+ label: o("Kick out of room"),
49
42
  action: "kickUserOutOfRoom",
50
- actionFn: () => S({ userId: t.userId })
43
+ actionFn: () => M({ userId: n.userId })
51
44
  }), e;
52
- }), G = async (e) => {
45
+ }), C = async (e) => {
53
46
  try {
54
- await e.actionFn(), b.success({
55
- message: i("Operation successful")
47
+ await e.actionFn(), k.success({
48
+ message: o("Operation successful")
56
49
  });
57
- } catch (s) {
58
- console.error("Action failed:", s), b.error({
59
- message: i("Operation failed")
50
+ } catch (t) {
51
+ console.error("Action failed:", t), k.error({
52
+ message: o("Operation failed")
60
53
  });
61
54
  }
62
- f("close");
55
+ m("close");
63
56
  }, p = (e) => {
64
- var n, r;
65
- const s = e.target;
66
- !((n = m.value) != null && n.contains(s)) && !((r = t.clickTarget) != null && r.contains(s)) && f("close");
57
+ var s, i;
58
+ const t = e.target;
59
+ !((s = d.value) != null && s.contains(t)) && !((i = n.clickTarget) != null && i.contains(t)) && m("close");
67
60
  };
68
- return w(() => {
61
+ return D(() => {
69
62
  document.addEventListener("click", p);
70
- }), E(() => {
63
+ }), N(() => {
71
64
  document.removeEventListener("click", p);
72
- }), (e, s) => (u(), c("div", {
65
+ }), (e, t) => (a(), c("div", {
73
66
  ref_key: "actionMenuRef",
74
- ref: m,
67
+ ref: d,
75
68
  class: "user-action-menu",
76
- onClick: s[0] || (s[0] = R(() => {
69
+ onClick: t[0] || (t[0] = w(() => {
77
70
  }, ["stop"]))
78
71
  }, [
79
- l("div", Q, [
80
- l("div", W, [
81
- l("div", X, [
82
- x(K(J), {
83
- src: a.avatarUrl,
72
+ u("div", J, [
73
+ u("div", P, [
74
+ u("div", Q, [
75
+ R(T(j), {
76
+ src: r.avatarUrl,
84
77
  size: 26
85
78
  }, null, 8, ["src"]),
86
- l("span", Y, k(a.userName || a.userId), 1)
79
+ u("span", W, I(r.userName || r.userId), 1)
87
80
  ])
88
81
  ]),
89
- I.value.length > 0 ? (u(), c("div", Z, [
90
- (u(!0), c(V, null, B(I.value, (n) => (u(), c("button", {
91
- key: n.label,
82
+ v.value.length > 0 ? (a(), c("div", X, [
83
+ (a(!0), c(x, null, K(v.value, (s) => (a(), c("button", {
84
+ key: s.label,
92
85
  class: "action-menu-item",
93
- onClick: (r) => G(n)
94
- }, k(n.label), 9, ee))), 128))
95
- ])) : T("", !0)
86
+ onClick: (i) => C(s)
87
+ }, I(s.label), 9, Y))), 128))
88
+ ])) : E("", !0)
96
89
  ])
97
90
  ], 512));
98
91
  }
99
- }), le = /* @__PURE__ */ P(se, [["__scopeId", "data-v-8fb62a68"]]);
92
+ }), ue = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-938908ee"]]);
100
93
  export {
101
- le as default
94
+ ue as default
102
95
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as A, useCssVars as F, ref as n, computed as g, watch as W, createElementBlock as a, createCommentVNode as d, unref as o, openBlock as r, createElementVNode as t, Fragment as D, renderList as G, createVNode as L, toDisplayString as c } from "vue";
1
+ import { defineComponent as A, useCssVars as F, ref as n, computed as g, watch as E, createElementBlock as a, createCommentVNode as d, unref as o, openBlock as r, createElementVNode as t, Fragment as D, renderList as G, createVNode as L, toDisplayString as c } from "vue";
2
2
  import { useUIKit as T, IconLiveCoverHeader as q, IconNoLiveRoom as K } from "@tencentcloud/uikit-base-component-vue3";
3
- import { useLiveState as P } from "../../states/LiveState/index.js";
4
- import { useLoginState as Y } from "../../states/LoginState.js";
5
- import j from "../Avatar/Avatar.js";
3
+ import { useLoginState as P } from "../../states/LoginState.js";
4
+ import Y from "../Avatar/Avatar.js";
5
+ import { useLiveListState as j } from "../../states/LiveListState/LiveListState.js";
6
6
  import { _ as J } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const Q = {
8
8
  key: 0,
@@ -19,7 +19,7 @@ const Q = {
19
19
  }, ve = {
20
20
  key: 1,
21
21
  class: "loading"
22
- }, M = "https://liteav-test-1252463788.cos.ap-guangzhou.myqcloud.com/voice_room/voice_room_cover1.png", ue = /* @__PURE__ */ A({
22
+ }, W = "https://liteav-test-1252463788.cos.ap-guangzhou.myqcloud.com/voice_room/voice_room_cover1.png", ue = /* @__PURE__ */ A({
23
23
  __name: "LiveList",
24
24
  props: {
25
25
  columnCount: {
@@ -28,31 +28,31 @@ const Q = {
28
28
  }
29
29
  },
30
30
  emits: ["live-room-click"],
31
- setup($, { emit: b }) {
31
+ setup(M, { emit: $ }) {
32
32
  F((e) => ({
33
- v00e247a4: w.value,
34
- v735e0d4a: N.value,
35
- v4f04a082: I.value,
36
- v56719468: R.value,
37
- v5df1fec5: _.value
33
+ v54b2dea1: w.value,
34
+ v2af4bc06: b.value,
35
+ v27d9fbac: I.value,
36
+ v7d82ded5: R.value,
37
+ v190a01f8: _.value
38
38
  }));
39
- const { liveList: m, currentCursor: h, fetchLiveList: C } = P(), { loginUserInfo: k } = Y(), { t: u } = T(), y = $, v = n(null), p = n(null), i = n(!1), x = g(() => h.value !== ""), w = n("356px"), I = n("270px"), R = n("356px"), _ = n("210px"), N = n("20px"), V = g(() => x.value && !i.value), E = g(() => V.value && !v.value);
40
- W(
39
+ const { liveList: m, liveListCursor: h, fetchLiveList: C } = j(), { loginUserInfo: k } = P(), { t: u } = T(), y = M, v = n(null), p = n(null), i = n(!1), x = g(() => h.value !== ""), w = n("356px"), I = n("270px"), R = n("356px"), _ = n("210px"), b = n("20px"), N = g(() => x.value && !i.value), V = g(() => N.value && !v.value);
40
+ E(
41
41
  k,
42
42
  async (e) => {
43
43
  e && e.userId && (i.value = !0, h.value = "", m.value.length = 0, await C({}), i.value = !1);
44
44
  },
45
45
  { immediate: !0 }
46
- ), W(p, () => {
46
+ ), E(p, () => {
47
47
  if (p.value && screen.width > screen.height) {
48
48
  const { width: e } = p.value.getBoundingClientRect();
49
49
  let s = 20;
50
- e <= 1e3 ? s = 12 : s = 20, N.value = `${s}px`;
50
+ e <= 1e3 ? s = 12 : s = 20, b.value = `${s}px`;
51
51
  const l = s * (y.columnCount - 1), f = (e - l) / y.columnCount;
52
52
  R.value = `${f}px`, _.value = `${f * 0.6}px`, w.value = `${f}px`, I.value = `${_.value + 52}px`;
53
53
  }
54
54
  });
55
- const H = b;
55
+ const H = $;
56
56
  function S(e) {
57
57
  console.log("liveRoomClick,liveInfo:", e), H("live-room-click", e);
58
58
  }
@@ -60,7 +60,7 @@ const Q = {
60
60
  return v.value ? v.value.scrollTop + v.value.clientHeight >= v.value.scrollHeight - e : !1;
61
61
  }
62
62
  function z(e) {
63
- v.value && e.deltaY > 0 && U() && V.value && B();
63
+ v.value && e.deltaY > 0 && U() && N.value && B();
64
64
  }
65
65
  async function B() {
66
66
  if (!(!x.value || i.value))
@@ -72,7 +72,7 @@ const Q = {
72
72
  }
73
73
  function O(e) {
74
74
  const s = e.target;
75
- s && (s.src = M);
75
+ s && (s.src = W);
76
76
  }
77
77
  return (e, s) => o(k) ? (r(), a("div", Q, [
78
78
  o(m).length > 0 ? (r(), a("div", {
@@ -105,14 +105,14 @@ const Q = {
105
105
  ]),
106
106
  s[0] || (s[0] = t("div", { class: "gradient" }, null, -1)),
107
107
  t("img", {
108
- src: l.coverUrl || M,
108
+ src: l.coverUrl || W,
109
109
  alt: "",
110
110
  onError: O
111
111
  }, null, 40, se)
112
112
  ]),
113
113
  t("span", le, c(l.liveName), 1),
114
114
  t("div", ie, [
115
- L(o(j), {
115
+ L(o(Y), {
116
116
  src: l.liveOwner.avatarUrl,
117
117
  size: 20,
118
118
  style: { border: "1px solid var(--uikit-color-white-7)" }
@@ -125,13 +125,13 @@ const Q = {
125
125
  L(o(K), { size: 60 }),
126
126
  t("span", null, c(o(u)("No Live")), 1)
127
127
  ])),
128
- o(m).length > 0 && (E.value || i.value) ? (r(), a("div", re, [
129
- E.value ? (r(), a("span", ce, c(o(u)("Load More")), 1)) : d("", !0),
128
+ o(m).length > 0 && (V.value || i.value) ? (r(), a("div", re, [
129
+ V.value ? (r(), a("span", ce, c(o(u)("Load More")), 1)) : d("", !0),
130
130
  i.value ? (r(), a("span", ve, c(o(u)("Loading...")), 1)) : d("", !0)
131
131
  ])) : d("", !0)
132
132
  ])) : d("", !0);
133
133
  }
134
- }), ge = /* @__PURE__ */ J(ue, [["__scopeId", "data-v-1ee7a26b"]]);
134
+ }), ge = /* @__PURE__ */ J(ue, [["__scopeId", "data-v-9ca7b189"]]);
135
135
  export {
136
136
  ge as default
137
137
  };