tuikit-atomicx-vue3 5.8.2 → 5.9.0-beta.2

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 (219) hide show
  1. package/dist/{PopoverPortal-NF24jm90.js → PopoverPortal-B5nQO1jH.js} +5 -5
  2. package/dist/{PopoverTrigger-Q8GAhbK6.js → PopoverTrigger-LW6v3-7z.js} +10 -10
  3. package/dist/{PopperContent-C7Uuo_Y2.js → PopperContent-C9GDUX84.js} +7 -7
  4. package/dist/{Teleport-C3oxnewF.js → Teleport-DaOf7Aoo.js} +30 -30
  5. package/dist/baseComp/Modal/Modal.js +10 -10
  6. package/dist/components/ASRTools/components/RealtimeMessageList.js +82 -0
  7. package/dist/components/ASRTools/components/RealtimeMessageList.vue.d.ts +19 -0
  8. package/dist/components/ASRTools/components/Subtitle.js +85 -0
  9. package/dist/components/ASRTools/components/Subtitle.vue.d.ts +45 -0
  10. package/dist/components/ASRTools/index.d.ts +2 -2
  11. package/dist/components/ASRTools/index.js +2 -2
  12. package/dist/components/ASRTools/utils/display.d.ts +7 -0
  13. package/dist/components/ASRTools/utils/display.js +45 -0
  14. package/dist/components/BarrageInput/EmojiPicker/EmojiPicker.js +2 -2
  15. package/dist/components/BarrageInput/TextEditor/CharacterCountExtension.js +1 -1
  16. package/dist/components/BarrageInput/TextEditor/EditorCore.js +4 -4
  17. package/dist/components/BarrageInput/TextEditor/index.js +64 -51
  18. package/dist/components/ChatSetting/C2CChatSetting/C2CChatSetting.js +114 -74
  19. package/dist/components/ChatSetting/Divider/Divider.js +2 -2
  20. package/dist/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.js +124 -84
  21. package/dist/components/ChatSetting/GroupChatSetting/GroupChatSetting.js +1 -1
  22. package/dist/components/ChatSetting/i18n/en-US.d.ts +4 -0
  23. package/dist/components/ChatSetting/i18n/en-US.js +4 -0
  24. package/dist/components/ChatSetting/i18n/index.d.ts +8 -0
  25. package/dist/components/ChatSetting/i18n/zh-CN.d.ts +4 -0
  26. package/dist/components/ChatSetting/i18n/zh-CN.js +4 -0
  27. package/dist/components/CoHostPanel/BattlePanel.js +75 -69
  28. package/dist/components/CoHostPanel/ConnectionPanel.js +171 -150
  29. package/dist/components/CoHostPanel/RecommendHostList.js +67 -67
  30. package/dist/components/ContactList/i18n/en-US.d.ts +1 -0
  31. package/dist/components/ContactList/i18n/en-US.js +4 -3
  32. package/dist/components/ContactList/i18n/zh-CN.d.ts +1 -0
  33. package/dist/components/ContactList/i18n/zh-CN.js +2 -1
  34. package/dist/components/LiveAudienceList/LiveAudienceList.js +2 -2
  35. package/dist/components/LiveAudienceList/LiveAudienceListH5.js +2 -2
  36. package/dist/components/LiveAudienceList/index.js +1 -1
  37. package/dist/components/LiveGift/LiveGiftH5/LiveGift.js +18 -18
  38. package/dist/components/LiveGift/LiveGiftPC/LiveGift.js +7 -7
  39. package/dist/components/LiveScenePanel/CameraSettingDialog.js +226 -100
  40. package/dist/components/LiveScenePanel/i18n/en-US/index.d.ts +2 -0
  41. package/dist/components/LiveScenePanel/i18n/en-US/index.js +2 -0
  42. package/dist/components/LiveScenePanel/i18n/zh-CN/index.d.ts +2 -0
  43. package/dist/components/LiveScenePanel/i18n/zh-CN/index.js +2 -0
  44. package/dist/components/LiveScenePanel/index.js +47 -47
  45. package/dist/components/LiveView/CoreViewDecorate/BattleDecorate.js +58 -57
  46. package/dist/components/LiveView/DefaultAutoPlayPrompt.js +41 -0
  47. package/dist/components/LiveView/DefaultAutoPlayPrompt.vue.d.ts +19 -0
  48. package/dist/components/LiveView/DefaultStreamViewUI.js +45 -45
  49. package/dist/components/LiveView/OverlayState.d.ts +59 -0
  50. package/dist/components/LiveView/OverlayState.js +66 -0
  51. package/dist/components/LiveView/PlayerControl/PlayerControl.js +74 -72
  52. package/dist/components/LiveView/PlayerControl/PlayerControlState.d.ts +3 -0
  53. package/dist/components/LiveView/PlayerControl/PlayerControlState.js +144 -151
  54. package/dist/components/LiveView/PlayerControl/utils/videoReadyObserver.d.ts +21 -0
  55. package/dist/components/LiveView/PlayerControl/utils/videoReadyObserver.js +30 -0
  56. package/dist/components/LiveView/i18n/en-US/index.d.ts +2 -0
  57. package/dist/components/LiveView/i18n/en-US/index.js +5 -3
  58. package/dist/components/LiveView/i18n/zh-CN/index.d.ts +2 -0
  59. package/dist/components/LiveView/i18n/zh-CN/index.js +3 -1
  60. package/dist/components/LiveView/index.d.ts +47 -28
  61. package/dist/components/LiveView/index.js +235 -205
  62. package/dist/components/LiveView/index.vue.d.ts +26 -15
  63. package/dist/components/MessageInput/AttachmentPicker/index.js +2 -2
  64. package/dist/components/MessageInput/EmojiPicker/EmojiPicker.js +2 -2
  65. package/dist/components/MessageInput/MessageInput.vue.d.ts +1 -1
  66. package/dist/components/MessageInput/TextEditor/EditorCore.js +1 -1
  67. package/dist/components/MessageInput/TextEditor/extensions/MentionSuggestion.js +3 -3
  68. package/dist/components/MessageInput/TextEditor/extensions/characterCountExtension.js +1 -1
  69. package/dist/components/MessageInput/TextEditor/extensions/emojiExtension.js +1 -1
  70. package/dist/components/MessageInput/TextEditor/extensions/enterKeyExtension.js +1 -1
  71. package/dist/components/MessageInput/TextEditor/extensions/imageExtension.js +8 -8
  72. package/dist/components/MessageInput/TextEditor/extensions/mentionExtension.js +10 -10
  73. package/dist/components/MessageInput/TextEditor/index.js +1 -1
  74. package/dist/components/MessageInput/index.d.ts +15 -15
  75. package/dist/components/MessageList/Message/AudioMessage/AudioMessage.js +40 -34
  76. package/dist/components/MessageList/Message/CustomMessage/CustomMessage.js +38 -29
  77. package/dist/components/MessageList/Message/FaceMessage/FaceMessage.js +16 -13
  78. package/dist/components/MessageList/Message/FileMessage/FileMessage.js +19 -16
  79. package/dist/components/MessageList/Message/ImageMessage/ImageMessage.js +1 -1
  80. package/dist/components/MessageList/Message/MessageLayout/MessageActionDropdown/MessageActionDropdown.js +228 -228
  81. package/dist/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.js +17 -18
  82. package/dist/components/MessageList/Message/MessageLayout/MessageLayout.js +11 -11
  83. package/dist/components/MessageList/Message/MessageLayout/useMessageLayoutClasses.js +17 -19
  84. package/dist/components/MessageList/Message/TextMessage/TextMessage.js +49 -44
  85. package/dist/components/MessageList/Message/VideoMessage/VideoMessage.js +1 -1
  86. package/dist/components/RoomView/usePlayStream/useStreamPostion.js +22 -14
  87. package/dist/components/ScheduleRoomPanel/ScheduleRoomPanel.js +108 -104
  88. package/dist/components/StreamMixer/LocalMixer/index.js +43 -41
  89. package/dist/components/UserPicker/index.d.ts +8 -8
  90. package/dist/{index-ljqIpw2N.js → index-B-EPJL5C.js} +3 -3
  91. package/dist/{index-d0zDKX8z.js → index-B1KO9p6W.js} +2 -2
  92. package/dist/{index-Dw7nlTSW.js → index-C5WoSbVd.js} +1 -1
  93. package/dist/{index-I6gZUWuE.js → index-DFWbxmx_.js} +58 -58
  94. package/dist/{index-DSsh0Axu.js → index-DqyosXqU.js} +215 -212
  95. package/dist/index.js +196 -195
  96. package/dist/report/MetricsKey.d.ts +18 -14
  97. package/dist/report/MetricsKey.js +1 -1
  98. package/dist/states/AITranscriberState/AITranscriberState.d.ts +10 -2
  99. package/dist/states/AITranscriberState/AITranscriberState.js +117 -71
  100. package/dist/states/BattleState/BattleState.d.ts +5 -1
  101. package/dist/states/BattleState/BattleState.js +54 -51
  102. package/dist/states/C2CSettingState/C2CSettingState.d.ts +1 -0
  103. package/dist/states/C2CSettingState/C2CSettingState.js +42 -35
  104. package/dist/states/CoHostState/CoHostState.d.ts +44 -7
  105. package/dist/states/CoHostState/CoHostState.js +201 -140
  106. package/dist/states/ContactListState/ContactListState.js +165 -160
  107. package/dist/states/GroupSettingState/GroupSettingState.d.ts +1 -0
  108. package/dist/states/GroupSettingState/GroupSettingState.js +99 -90
  109. package/dist/states/LiveAudienceState.d.ts +3 -2
  110. package/dist/states/LiveAudienceState.js +160 -124
  111. package/dist/states/LiveGiftState/LiveGiftState.d.ts +99 -2
  112. package/dist/states/LiveGiftState/LiveGiftState.js +148 -38
  113. package/dist/states/LiveGiftState/players/SVGAPlayer.js +2 -2
  114. package/dist/states/LiveListState/LiveListState.d.ts +17 -1
  115. package/dist/states/LiveListState/LiveListState.js +193 -156
  116. package/dist/states/LiveMonitorState/api/http.js +1257 -1053
  117. package/dist/states/LivePlayerState/LivePlayerState.js +87 -85
  118. package/dist/states/LiveSeatState/index.d.ts +5 -0
  119. package/dist/states/LiveSeatState/index.js +15 -12
  120. package/dist/states/LiveSeatState/seatEventManager.d.ts +2 -0
  121. package/dist/states/LiveSeatState/seatEventManager.js +83 -52
  122. package/dist/states/LiveSeatState/seatManager.d.ts +8 -2
  123. package/dist/states/LiveSeatState/seatManager.js +21 -15
  124. package/dist/states/LiveSeatState/store.d.ts +2 -1
  125. package/dist/states/LiveSeatState/store.js +10 -9
  126. package/dist/states/LiveSeatState/usePlayStream/useStreamPostion.js +24 -16
  127. package/dist/states/VideoMixerState/VideoMixerState.d.ts +33 -24
  128. package/dist/states/VideoMixerState/VideoMixerState.js +280 -162
  129. package/dist/styles/index.css +1 -1
  130. package/dist/subEntry/live/index.js +146 -145
  131. package/dist/subEntry/live/live.js +1 -1
  132. package/dist/subEntry/room/index.js +133 -132
  133. package/dist/subEntry/room/room.js +2 -2
  134. package/dist/types/asr.d.ts +51 -1
  135. package/dist/types/audience.d.ts +131 -4
  136. package/dist/types/audience.js +2 -2
  137. package/dist/types/barrage.d.ts +12 -2
  138. package/dist/types/battle.d.ts +295 -9
  139. package/dist/types/battle.js +3 -3
  140. package/dist/types/coGuest.d.ts +321 -1
  141. package/dist/types/coHost.d.ts +139 -19
  142. package/dist/types/coHost.js +1 -1
  143. package/dist/types/gift.d.ts +131 -2
  144. package/dist/types/index.js +59 -58
  145. package/dist/types/live.d.ts +97 -2
  146. package/dist/types/login.d.ts +118 -2
  147. package/dist/types/seat.d.ts +85 -12
  148. package/dist/types/seat.js +5 -4
  149. package/dist/types/videoMixer.d.ts +10 -1
  150. package/dist/{useId-DNAhmykH.js → useId-CYH_IsNz.js} +1 -1
  151. package/dist/{utils-mTO3-yuL.js → utils-ClBQ9q32.js} +3 -3
  152. package/package.json +4 -4
  153. package/src/components/ASRTools/{RealtimeMessageList.vue → components/RealtimeMessageList.vue} +36 -6
  154. package/src/components/ASRTools/components/Subtitle.vue +257 -0
  155. package/src/components/ASRTools/index.ts +2 -3
  156. package/src/components/ASRTools/utils/display.ts +104 -0
  157. package/src/components/BarrageInput/TextEditor/TextEditor.vue +26 -0
  158. package/src/components/ChatSetting/C2CChatSetting/C2CChatSetting.vue +58 -1
  159. package/src/components/ChatSetting/Divider/Divider.vue +1 -1
  160. package/src/components/ChatSetting/GroupChatSetting/GroupActions/GroupActions.vue +47 -3
  161. package/src/components/ChatSetting/GroupChatSetting/GroupChatSetting.vue +23 -0
  162. package/src/components/ChatSetting/i18n/en-US.ts +4 -0
  163. package/src/components/ChatSetting/i18n/zh-CN.ts +4 -0
  164. package/src/components/CoHostPanel/BattlePanel.vue +23 -3
  165. package/src/components/CoHostPanel/ConnectionPanel.vue +99 -15
  166. package/src/components/CoHostPanel/RecommendHostList.vue +27 -13
  167. package/src/components/ContactList/i18n/en-US.ts +1 -0
  168. package/src/components/ContactList/i18n/zh-CN.ts +1 -0
  169. package/src/components/LiveGift/LiveGiftH5/LiveGift.vue +2 -2
  170. package/src/components/LiveGift/LiveGiftPC/LiveGift.vue +2 -2
  171. package/src/components/LiveScenePanel/CameraSettingDialog.vue +347 -58
  172. package/src/components/LiveScenePanel/i18n/en-US/index.ts +2 -0
  173. package/src/components/LiveScenePanel/i18n/zh-CN/index.ts +2 -0
  174. package/src/components/LiveScenePanel/index.vue +1 -1
  175. package/src/components/LiveView/CoreViewDecorate/BattleDecorate.vue +7 -1
  176. package/src/components/LiveView/DefaultAutoPlayPrompt.vue +107 -0
  177. package/src/components/LiveView/DefaultStreamViewUI.vue +16 -5
  178. package/src/components/LiveView/OverlayState.ts +211 -0
  179. package/src/components/LiveView/PlayerControl/PlayerControl.vue +7 -1
  180. package/src/components/LiveView/PlayerControl/PlayerControlState.ts +14 -14
  181. package/src/components/LiveView/PlayerControl/utils/videoReadyObserver.ts +106 -0
  182. package/src/components/LiveView/i18n/en-US/index.ts +4 -2
  183. package/src/components/LiveView/i18n/zh-CN/index.ts +2 -0
  184. package/src/components/LiveView/index.ts +1 -0
  185. package/src/components/LiveView/index.vue +148 -22
  186. package/src/components/MessageList/Message/AudioMessage/AudioMessage.vue +10 -1
  187. package/src/components/MessageList/Message/CustomMessage/CustomMessage.vue +15 -3
  188. package/src/components/MessageList/Message/FaceMessage/FaceMessage.vue +9 -1
  189. package/src/components/MessageList/Message/FileMessage/FileMessage.vue +6 -3
  190. package/src/components/MessageList/Message/ImageMessage/ImageMessage.vue +3 -2
  191. package/src/components/MessageList/Message/MessageLayout/MessageBubble/MessageBubble.vue +4 -31
  192. package/src/components/MessageList/Message/MessageLayout/MessageLayout.vue +0 -4
  193. package/src/components/MessageList/Message/MessageLayout/useMessageLayoutClasses.ts +0 -2
  194. package/src/components/MessageList/Message/TextMessage/TextMessage.vue +9 -1
  195. package/src/components/MessageList/Message/VideoMessage/VideoMessage.vue +3 -2
  196. package/src/components/MessageList/Message/_bubble-mixins.scss +23 -0
  197. package/src/components/RoomView/usePlayStream/useStreamPostion.ts +28 -5
  198. package/src/components/ScheduleRoomPanel/ScheduleRoomPanel.vue +3 -3
  199. package/src/components/StreamMixer/LocalMixer/index.vue +3 -1
  200. package/src/report/MetricsKey.ts +18 -14
  201. package/src/types/asr.ts +55 -1
  202. package/src/types/audience.ts +135 -3
  203. package/src/types/barrage.ts +12 -2
  204. package/src/types/battle.ts +296 -9
  205. package/src/types/coGuest.ts +325 -1
  206. package/src/types/coHost.ts +140 -19
  207. package/src/types/gift.ts +135 -9
  208. package/src/types/live.ts +98 -2
  209. package/src/types/login.ts +119 -2
  210. package/src/types/seat.ts +87 -12
  211. package/src/types/videoMixer.ts +7 -1
  212. package/dist/components/ASRTools/RealtimeMessageList.js +0 -72
  213. package/dist/components/ASRTools/RealtimeMessageList.vue.d.ts +0 -2
  214. package/dist/components/ASRTools/Subtitle.js +0 -51
  215. package/dist/components/ASRTools/Subtitle.vue.d.ts +0 -2
  216. package/dist/components/ASRTools/utils.d.ts +0 -1
  217. package/dist/components/ASRTools/utils.js +0 -8
  218. package/src/components/ASRTools/Subtitle.vue +0 -134
  219. package/src/components/ASRTools/utils.ts +0 -8
@@ -1,6 +1,6 @@
1
- import { c as D, a as k, r as A, u as b, F as N, D as E, b as R, d as I, e as M, T as $ } from "./Teleport-C3oxnewF.js";
2
- import { a as K, u as L, b as j, c as z, d as w } from "./PopperContent-C7Uuo_Y2.js";
3
- import { u as T } from "./useId-DNAhmykH.js";
1
+ import { b as D, n as k, r as A, l as b, F as N, D as E, h as R, m as I, P as M, T as $ } from "./Teleport-DaOf7Aoo.js";
2
+ import { c as K, d as L, u as j, b as z, e as w } from "./PopperContent-C9GDUX84.js";
3
+ import { u as T } from "./useId-CYH_IsNz.js";
4
4
  import { defineComponent as m, toRefs as U, ref as P, openBlock as c, createBlock as v, unref as e, withCtx as f, renderSlot as g, createVNode as h, mergeProps as _, withModifiers as C, normalizeProps as x, guardReactiveProps as W } from "vue";
5
5
  const [B, V] = /* @__PURE__ */ D("PopoverRoot");
6
6
  var G = /* @__PURE__ */ m({
@@ -571,8 +571,8 @@ var G = /* @__PURE__ */ m({
571
571
  }
572
572
  }), le = ee;
573
573
  export {
574
- se as P,
574
+ ie as P,
575
575
  le as a,
576
- ie as b,
576
+ se as b,
577
577
  B as i
578
578
  };
@@ -1,9 +1,9 @@
1
- import { u as l, P as a } from "./Teleport-C3oxnewF.js";
2
- import { u as d } from "./useId-DNAhmykH.js";
3
- import { P as u } from "./PopperContent-C7Uuo_Y2.js";
4
- import { i as c } from "./PopoverPortal-NF24jm90.js";
5
- import { defineComponent as g, onMounted as f, openBlock as m, createBlock as v, resolveDynamicComponent as _, unref as r, withCtx as t, createVNode as h, renderSlot as P } from "vue";
6
- var C = /* @__PURE__ */ g({
1
+ import { l as p, a } from "./Teleport-DaOf7Aoo.js";
2
+ import { u as d } from "./useId-CYH_IsNz.js";
3
+ import { P as u } from "./PopperContent-C9GDUX84.js";
4
+ import { i as c } from "./PopoverPortal-B5nQO1jH.js";
5
+ import { defineComponent as g, onMounted as f, openBlock as m, createBlock as v, resolveDynamicComponent as _, unref as r, withCtx as t, createVNode as h, renderSlot as C } from "vue";
6
+ var P = /* @__PURE__ */ g({
7
7
  __name: "PopoverTrigger",
8
8
  props: {
9
9
  asChild: {
@@ -17,9 +17,9 @@ var C = /* @__PURE__ */ g({
17
17
  }
18
18
  },
19
19
  setup(n) {
20
- const i = n, e = c(), { forwardRef: s, currentElement: p } = l();
20
+ const i = n, e = c(), { forwardRef: s, currentElement: l } = p();
21
21
  return e.triggerId || (e.triggerId = d(void 0, "reka-popover-trigger")), f(() => {
22
- e.triggerElement.value = p.value;
22
+ e.triggerElement.value = l.value;
23
23
  }), (o, y) => (m(), v(_(r(e).hasCustomAnchor.value ? r(a) : r(u)), { "as-child": "" }, {
24
24
  default: t(() => [h(r(a), {
25
25
  id: r(e).triggerId,
@@ -33,7 +33,7 @@ var C = /* @__PURE__ */ g({
33
33
  "as-child": i.asChild,
34
34
  onClick: r(e).onOpenToggle
35
35
  }, {
36
- default: t(() => [P(o.$slots, "default")]),
36
+ default: t(() => [C(o.$slots, "default")]),
37
37
  _: 3
38
38
  }, 8, [
39
39
  "id",
@@ -48,7 +48,7 @@ var C = /* @__PURE__ */ g({
48
48
  _: 3
49
49
  }));
50
50
  }
51
- }), w = C;
51
+ }), w = P;
52
52
  export {
53
53
  w as P
54
54
  };
@@ -1,5 +1,5 @@
1
1
  import { watchEffect as It, getCurrentInstance as fe, toRef as ue, computed as P, camelize as de, ref as V, onMounted as pe, defineComponent as Ct, renderSlot as Pt, watchPostEffect as Xt, openBlock as Yt, createBlock as he, unref as M, withCtx as Ut, shallowRef as me, watch as mt, getCurrentScope as ge, onScopeDispose as we, shallowReadonly as tt, createElementBlock as ye, normalizeStyle as ve, createVNode as xe, mergeProps as be, mergeDefaults as Ae } from "vue";
2
- import { h as Oe, f as Ce, j as Pe, c as Gt, u as Kt, P as Zt, k as Re } from "./Teleport-C3oxnewF.js";
2
+ import { e as Oe, j as Ce, u as Pe, b as Gt, l as Kt, a as Zt, c as Re } from "./Teleport-DaOf7Aoo.js";
3
3
  let gt = 0;
4
4
  function Fn() {
5
5
  It((t) => {
@@ -1604,10 +1604,10 @@ var kn = /* @__PURE__ */ Ct({
1604
1604
  }), Vn = kn;
1605
1605
  export {
1606
1606
  zn as P,
1607
- Wn as a,
1608
- Fn as b,
1609
- Vn as c,
1610
- Mn as d,
1611
- Ln as e,
1612
- Se as u
1607
+ Ln as a,
1608
+ Vn as b,
1609
+ Wn as c,
1610
+ Se as d,
1611
+ Mn as e,
1612
+ Fn as u
1613
1613
  };
@@ -1,5 +1,5 @@
1
- import { inject as Ee, provide as be, onBeforeUnmount as Oe, effectScope as se, getCurrentInstance as I, computed as w, shallowRef as ue, watchEffect as L, readonly as we, getCurrentScope as Se, onScopeDispose as Pe, isRef as K, reactive as R, unref as A, customRef as Ae, toValue as b, watch as _, toRefs as G, ref as E, nextTick as M, onMounted as Ce, Fragment as _e, toHandlerKey as De, camelize as Te, onUpdated as Le, triggerRef as Me, onUnmounted as ae, defineComponent as x, h as j, Comment as Ne, mergeProps as Fe, cloneVNode as Ie, openBlock as X, createBlock as Q, normalizeStyle as xe, withCtx as le, renderSlot as Z, Teleport as Be, createCommentVNode as ke } from "vue";
2
- function $e(e, t) {
1
+ import { inject as Ee, provide as be, onBeforeUnmount as Oe, effectScope as se, getCurrentInstance as I, computed as w, shallowRef as ue, watchEffect as L, readonly as we, getCurrentScope as Se, onScopeDispose as Pe, isRef as K, reactive as R, unref as A, customRef as Ae, toValue as b, watch as _, toRefs as G, ref as E, nextTick as M, onMounted as Ce, Fragment as _e, toHandlerKey as De, camelize as Te, onUpdated as Le, triggerRef as Me, onUnmounted as ae, defineComponent as x, h as $, Comment as Ne, mergeProps as Fe, cloneVNode as Ie, openBlock as X, createBlock as Q, normalizeStyle as xe, withCtx as le, renderSlot as Z, Teleport as Be, createCommentVNode as ke } from "vue";
2
+ function je(e, t) {
3
3
  const n = typeof e == "string" && !t ? `${e}Context` : t, r = Symbol(n);
4
4
  return [(a) => {
5
5
  const u = Ee(r, a);
@@ -21,7 +21,7 @@ function ce(e, t, n) {
21
21
  });
22
22
  t && r.addEventListener(e, t, { once: !0 }), r.dispatchEvent(i);
23
23
  }
24
- function je(e) {
24
+ function $e(e) {
25
25
  return e == null;
26
26
  }
27
27
  function Tt(e, t) {
@@ -199,7 +199,7 @@ function Nt(e, t, n, r = {}) {
199
199
  function te(e) {
200
200
  return e ? e.flatMap((t) => t.type === _e ? te(t.children) : [t]) : [];
201
201
  }
202
- const [tt] = /* @__PURE__ */ $e("ConfigProvider");
202
+ const [tt] = /* @__PURE__ */ je("ConfigProvider");
203
203
  function H(e) {
204
204
  if (e === null || typeof e != "object")
205
205
  return !1;
@@ -440,12 +440,12 @@ function dt(e, t) {
440
440
  var P;
441
441
  const S = p !== m;
442
442
  if (await M(), S) {
443
- const W = r.value, T = $(t.value);
443
+ const W = r.value, T = j(t.value);
444
444
  m ? (v("MOUNT"), l("enter"), T === "none" && l("after-enter")) : T === "none" || T === "undefined" || ((P = n.value) == null ? void 0 : P.display) === "none" ? (v("UNMOUNT"), l("leave"), l("after-leave")) : p && W !== T ? (v("ANIMATION_OUT"), l("leave")) : (v("UNMOUNT"), l("after-leave"));
445
445
  }
446
446
  }, { immediate: !0 });
447
447
  const s = (m) => {
448
- const p = $(t.value), S = p.includes(CSS.escape(m.animationName)), P = f.value === "mounted" ? "enter" : "leave";
448
+ const p = j(t.value), S = p.includes(CSS.escape(m.animationName)), P = f.value === "mounted" ? "enter" : "leave";
449
449
  if (m.target === t.value && S && (l(`after-${P}`), v("ANIMATION_END"), !i.value)) {
450
450
  const W = t.value.style.animationFillMode;
451
451
  t.value.style.animationFillMode = "forwards", a = u == null ? void 0 : u.setTimeout(() => {
@@ -455,18 +455,18 @@ function dt(e, t) {
455
455
  }
456
456
  m.target === t.value && p === "none" && v("ANIMATION_END");
457
457
  }, c = (m) => {
458
- m.target === t.value && (r.value = $(t.value));
458
+ m.target === t.value && (r.value = j(t.value));
459
459
  }, d = _(t, (m, p) => {
460
460
  m ? (n.value = getComputedStyle(m), m.addEventListener("animationstart", c), m.addEventListener("animationcancel", s), m.addEventListener("animationend", s)) : (v("ANIMATION_END"), a !== void 0 && (u == null || u.clearTimeout(a)), p == null || p.removeEventListener("animationstart", c), p == null || p.removeEventListener("animationcancel", s), p == null || p.removeEventListener("animationend", s));
461
461
  }, { immediate: !0 }), y = _(f, () => {
462
- const m = $(t.value);
462
+ const m = j(t.value);
463
463
  r.value = f.value === "mounted" ? m : "none";
464
464
  });
465
465
  return ae(() => {
466
466
  d(), y();
467
467
  }), { isPresent: w(() => ["mounted", "unmountSuspended"].includes(f.value)) };
468
468
  }
469
- function $(e) {
469
+ function j(e) {
470
470
  return e && getComputedStyle(e).animationName || "none";
471
471
  }
472
472
  var Bt = /* @__PURE__ */ x({
@@ -498,7 +498,7 @@ var Bt = /* @__PURE__ */ x({
498
498
  ].join(`
499
499
  `));
500
500
  }
501
- return () => i.value || r.value || a.value ? j(t.default({ present: a.value })[0], { ref: (l) => {
501
+ return () => i.value || r.value || a.value ? $(t.default({ present: a.value })[0], { ref: (l) => {
502
502
  const s = U(l);
503
503
  return typeof (s == null ? void 0 : s.hasAttribute) > "u" || (s != null && s.hasAttribute("data-reka-popper-content-wrapper") ? o.value = s.firstElementChild : o.value = s), s;
504
504
  } }) : null;
@@ -541,7 +541,7 @@ const ft = /* @__PURE__ */ x({
541
541
  },
542
542
  setup(e, { attrs: t, slots: n }) {
543
543
  const r = e.asChild ? "template" : e.as;
544
- return typeof r == "string" && vt.includes(r) ? () => j(r, t) : r !== "template" ? () => j(e.as, t, { default: n.default }) : () => j(ft, t, { default: n.default });
544
+ return typeof r == "string" && vt.includes(r) ? () => $(r, t) : r !== "template" ? () => $(e.as, t, { default: n.default }) : () => $(ft, t, { default: n.default });
545
545
  }
546
546
  }), pt = "dismissableLayer.pointerDownOutside", mt = "dismissableLayer.focusOutside";
547
547
  function he(e, t) {
@@ -649,7 +649,7 @@ var gt = /* @__PURE__ */ x({
649
649
  f.value === u.value.size - 1 && (r("escapeKeyDown", d), d.defaultPrevented || r("dismiss"));
650
650
  }), L((d) => {
651
651
  o.value && (n.disableOutsidePointerEvents && (O.layersWithOutsidePointerEventsDisabled.size === 0 && (O.originalBodyPointerEvents = a.value.body.style.pointerEvents, a.value.body.style.pointerEvents = "none"), O.layersWithOutsidePointerEventsDisabled.add(o.value)), u.value.add(o.value), d(() => {
652
- n.disableOutsidePointerEvents && O.layersWithOutsidePointerEventsDisabled.size === 1 && !je(O.originalBodyPointerEvents) && (a.value.body.style.pointerEvents = O.originalBodyPointerEvents);
652
+ n.disableOutsidePointerEvents && O.layersWithOutsidePointerEventsDisabled.size === 1 && !$e(O.originalBodyPointerEvents) && (a.value.body.style.pointerEvents = O.originalBodyPointerEvents);
653
653
  }));
654
654
  }), L((d) => {
655
655
  d(() => {
@@ -836,7 +836,7 @@ var At = /* @__PURE__ */ x({
836
836
  _: 3
837
837
  }, 8, ["as-child", "as"]));
838
838
  }
839
- }), $t = At, Ct = /* @__PURE__ */ x({
839
+ }), jt = At, Ct = /* @__PURE__ */ x({
840
840
  __name: "Teleport",
841
841
  props: {
842
842
  to: {
@@ -870,27 +870,27 @@ var At = /* @__PURE__ */ x({
870
870
  "defer"
871
871
  ])) : ke("v-if", !0);
872
872
  }
873
- }), jt = Ct;
873
+ }), $t = Ct;
874
874
  export {
875
875
  kt as D,
876
- $t as F,
877
- ye as P,
876
+ jt as F,
877
+ Bt as P,
878
878
  ft as S,
879
- jt as T,
880
- Nt as a,
881
- Ft as b,
882
- $e as c,
883
- xt as d,
884
- Bt as e,
885
- It as f,
879
+ $t as T,
880
+ ye as a,
881
+ je as b,
882
+ Tt as c,
883
+ Ve as d,
884
+ D as e,
885
+ Mt as f,
886
886
  F as g,
887
- D as h,
887
+ Ft as h,
888
888
  tt as i,
889
- U as j,
890
- Tt as k,
891
- Mt as l,
892
- Ve as m,
893
- fe as n,
889
+ It as j,
890
+ fe as k,
891
+ pe as l,
892
+ xt as m,
893
+ Nt as n,
894
894
  Lt as r,
895
- pe as u
895
+ U as u
896
896
  };
@@ -1,10 +1,10 @@
1
1
  import { defineComponent as g, ref as E, toRefs as P, renderSlot as _, unref as t, onMounted as A, openBlock as v, createBlock as m, withCtx as f, createVNode as C, mergeProps as y, createCommentVNode as h, normalizeProps as $, guardReactiveProps as T, normalizeClass as R } from "vue";
2
- import { c as k, a as N, u as D, g as I, F as S, D as L, f as q, d as K, e as F, b as V, P as U, T as W } from "../../Teleport-C3oxnewF.js";
3
- import { u as w } from "../../useId-DNAhmykH.js";
4
- import { g as z } from "../../utils-mTO3-yuL.js";
5
- import { _ as G } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
- const [O, H] = /* @__PURE__ */ k("DialogRoot");
7
- var j = /* @__PURE__ */ g({
2
+ import { b as k, n as N, l as D, g as I, F as S, D as L, j as q, m as K, P as F, h as V, a as U, T as W } from "../../Teleport-DaOf7Aoo.js";
3
+ import { u as w } from "../../useId-CYH_IsNz.js";
4
+ import { g as j } from "../../utils-ClBQ9q32.js";
5
+ import { _ as z } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const [O, G] = /* @__PURE__ */ k("DialogRoot");
7
+ var H = /* @__PURE__ */ g({
8
8
  inheritAttrs: !1,
9
9
  __name: "DialogRoot",
10
10
  props: {
@@ -30,7 +30,7 @@ var j = /* @__PURE__ */ g({
30
30
  defaultValue: a.defaultOpen,
31
31
  passive: a.open === void 0
32
32
  }), l = E(), p = E(), { modal: r } = P(a);
33
- return H({
33
+ return G({
34
34
  open: e,
35
35
  modal: r,
36
36
  openModal: () => {
@@ -52,7 +52,7 @@ var j = /* @__PURE__ */ g({
52
52
  close: () => e.value = !1
53
53
  });
54
54
  }
55
- }), J = j;
55
+ }), J = H;
56
56
  const Q = "DialogTitle", X = "DialogContent";
57
57
  function Y({ titleName: u = Q, contentName: i = X, componentLink: a = "dialog.html#title", titleId: s, descriptionId: e, contentElement: l }) {
58
58
  const p = `Warning: \`${i}\` requires a \`${u}\` for the component to be accessible for screen reader users.
@@ -126,7 +126,7 @@ var Z = /* @__PURE__ */ g({
126
126
  role: "dialog",
127
127
  "aria-describedby": t(e).descriptionId,
128
128
  "aria-labelledby": t(e).titleId,
129
- "data-state": t(z)(t(e).open.value)
129
+ "data-state": t(j)(t(e).open.value)
130
130
  }, r.$attrs, {
131
131
  onDismiss: n[0] || (n[0] = (o) => t(e).onOpenChange(!1)),
132
132
  onEscapeKeyDown: n[1] || (n[1] = (o) => s("escapeKeyDown", o)),
@@ -449,7 +449,7 @@ const pe = /* @__PURE__ */ g({
449
449
  _: 3
450
450
  }, 8, ["open"]));
451
451
  }
452
- }), ge = /* @__PURE__ */ G(pe, [["__scopeId", "data-v-bef96a30"]]);
452
+ }), ge = /* @__PURE__ */ z(pe, [["__scopeId", "data-v-bef96a30"]]);
453
453
  export {
454
454
  ge as default
455
455
  };
@@ -0,0 +1,82 @@
1
+ import { defineComponent as x, ref as M, computed as u, onMounted as B, watch as C, nextTick as R, openBlock as r, createElementBlock as o, Fragment as m, renderList as p, createElementVNode as d, toDisplayString as f, unref as T, normalizeClass as $ } from "vue";
2
+ import { formatTimestampToTime as A } from "../../../utils/utils.js";
3
+ import { hasDisplayableText as E, getDisplayName as F, getMessageDisplayLines as H } from "../utils/display.js";
4
+ import { useAITranscriberState as N } from "../../../states/AITranscriberState/AITranscriberState.js";
5
+ import { _ as w } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const U = { class: "title" }, q = { class: "speaker" }, z = { class: "timestamp" }, G = 60 * 1e3, V = /* @__PURE__ */ x({
7
+ __name: "RealtimeMessageList",
8
+ props: {
9
+ targetLanguage: {},
10
+ displayMode: {}
11
+ },
12
+ setup(y) {
13
+ const s = M(), c = M(!1), v = y, { realtimeMessageList: g } = N(), k = u(() => v.targetLanguage || ""), L = u(() => v.displayMode || "translation"), D = () => {
14
+ if (!s.value)
15
+ return !1;
16
+ const { scrollTop: a, scrollHeight: i, clientHeight: e } = s.value;
17
+ return Math.ceil(a + e) >= i - 50;
18
+ }, _ = () => {
19
+ !s.value || c.value || requestAnimationFrame(() => {
20
+ s.value && (s.value.scrollTop = s.value.scrollHeight);
21
+ });
22
+ };
23
+ B(() => {
24
+ _();
25
+ });
26
+ const b = () => {
27
+ s.value && (c.value = !D());
28
+ }, I = u(() => {
29
+ const a = [
30
+ ...g.value.filter((t) => E(t.sourceText) && typeof t.timestamp == "number" && Number.isFinite(t.timestamp))
31
+ ].sort((t, n) => (t.timestamp ?? 0) - (n.timestamp ?? 0));
32
+ if (a.length === 0)
33
+ return [];
34
+ const i = [];
35
+ let e = null;
36
+ return a.forEach((t) => {
37
+ const n = t.speakerUserId || "unknown", l = t.timestamp ?? 0;
38
+ !e || n !== e.sender || l - e.startMsTs > G ? (e = {
39
+ sender: n,
40
+ startMsTs: l,
41
+ messages: [t]
42
+ }, i.push(e)) : e.messages.push(t);
43
+ }), i;
44
+ }), S = (a) => H(
45
+ a,
46
+ k.value,
47
+ L.value
48
+ );
49
+ return C(() => g.value.length, () => {
50
+ R(() => {
51
+ c.value || _();
52
+ });
53
+ }), (a, i) => (r(), o("div", {
54
+ ref_key: "conversationContainerRef",
55
+ ref: s,
56
+ class: "conversation",
57
+ onScroll: b
58
+ }, [
59
+ (r(!0), o(m, null, p(I.value, (e) => (r(), o("div", {
60
+ key: `${e.sender}-${e.startMsTs}`,
61
+ class: "conversation-group"
62
+ }, [
63
+ d("div", U, [
64
+ d("span", q, f(T(F)(e.sender)), 1),
65
+ d("span", z, f(T(A)(e.startMsTs)), 1)
66
+ ]),
67
+ (r(!0), o(m, null, p(e.messages, (t, n) => (r(), o("div", {
68
+ key: t.segmentId || n,
69
+ class: "content"
70
+ }, [
71
+ (r(!0), o(m, null, p(S(t), (l, h) => (r(), o("div", {
72
+ key: `${t.segmentId || n}-${h}`,
73
+ class: $(["content-line", { secondary: h > 0 }])
74
+ }, f(l), 3))), 128))
75
+ ]))), 128))
76
+ ]))), 128))
77
+ ], 544));
78
+ }
79
+ }), Q = /* @__PURE__ */ w(V, [["__scopeId", "data-v-90c83e3e"]]);
80
+ export {
81
+ Q as default
82
+ };
@@ -0,0 +1,19 @@
1
+ import { SubtitleDisplayMode } from '../../../types/asr';
2
+
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ targetLanguage?: string;
5
+ displayMode?: SubtitleDisplayMode;
6
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ targetLanguage?: string;
8
+ displayMode?: SubtitleDisplayMode;
9
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
10
+ export default _default;
11
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
@@ -0,0 +1,85 @@
1
+ import { defineComponent as D, ref as x, computed as c, onMounted as N, onUnmounted as R, openBlock as o, createElementBlock as a, createElementVNode as l, renderSlot as U, createCommentVNode as d, Fragment as j, renderList as B, unref as _, toDisplayString as u } from "vue";
2
+ import { getMessageDisplayLines as O, getDisplayName as y } from "../utils/display.js";
3
+ import { useAITranscriberState as V } from "../../../states/AITranscriberState/AITranscriberState.js";
4
+ import { RealtimeTranscriberEvent as h } from "../../../types/asr.js";
5
+ import { _ as $ } from "../../../_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const w = {
7
+ key: 0,
8
+ class: "asr-subtitle"
9
+ }, A = { class: "subtitle-panel" }, F = {
10
+ key: 0,
11
+ class: "subtitle-actions"
12
+ }, H = { class: "subtitle-scroll" }, q = ["title"], z = { class: "subtitle-content" }, G = { class: "subtitle-text primary" }, J = {
13
+ key: 0,
14
+ class: "subtitle-text secondary"
15
+ }, K = /* @__PURE__ */ D({
16
+ __name: "Subtitle",
17
+ props: {
18
+ targetLanguage: { default: "" },
19
+ displayMode: { default: "translation" }
20
+ },
21
+ setup(M) {
22
+ const p = M, { subscribeEvent: T, unsubscribeEvent: I } = V(), i = x({}), n = {}, r = {}, L = c(() => p.targetLanguage), m = c(() => p.displayMode), k = (e, t) => {
23
+ n[e] && clearTimeout(n[e]), n[e] = setTimeout(t, 3e3);
24
+ }, S = (e) => {
25
+ const { speakerUserId: t } = e, s = i.value[t], C = r[t];
26
+ if (e.isCompleted && C === e.segmentId)
27
+ return;
28
+ if (!e.isCompleted) {
29
+ n[t] && (clearTimeout(n[t]), delete n[t]), delete r[t], i.value[t] = e;
30
+ return;
31
+ }
32
+ const E = !s || s.segmentId !== e.segmentId || !s.isCompleted;
33
+ i.value[t] = e, E && (r[t] = e.segmentId, k(t, () => {
34
+ var g, f;
35
+ (g = i.value[t]) != null && g.isCompleted && ((f = i.value[t]) == null ? void 0 : f.segmentId) === e.segmentId && delete i.value[t], delete n[t], delete r[t];
36
+ }));
37
+ }, v = (e) => {
38
+ S(e.message);
39
+ };
40
+ N(() => {
41
+ T(h.onReceiveTranscriberMessage, v);
42
+ });
43
+ const b = c(() => Object.values(i.value).sort((e, t) => (e.timestamp ?? 0) - (t.timestamp ?? 0)).map((e) => ({
44
+ ...e,
45
+ lines: O(
46
+ e,
47
+ L.value,
48
+ m.value
49
+ )
50
+ })).filter((e) => e.lines.length).map((e) => ({
51
+ ...e,
52
+ primaryLine: e.lines[0] || "",
53
+ secondaryLine: m.value === "bilingual" && e.lines[1] || ""
54
+ })).slice(-3));
55
+ return R(() => {
56
+ I(h.onReceiveTranscriberMessage, v), Object.values(n).forEach((e) => {
57
+ clearTimeout(e);
58
+ });
59
+ }), (e, t) => b.value.length ? (o(), a("div", w, [
60
+ l("div", A, [
61
+ e.$slots.actions ? (o(), a("div", F, [
62
+ U(e.$slots, "actions", {}, void 0, !0)
63
+ ])) : d("", !0),
64
+ l("div", H, [
65
+ (o(!0), a(j, null, B(b.value, (s) => (o(), a("div", {
66
+ key: s.speakerUserId,
67
+ class: "subtitle-item"
68
+ }, [
69
+ l("span", {
70
+ class: "subtitle-speaker",
71
+ title: _(y)(s.speakerUserId)
72
+ }, u(_(y)(s.speakerUserId)) + ":", 9, q),
73
+ l("div", z, [
74
+ l("span", G, u(s.primaryLine), 1),
75
+ s.secondaryLine ? (o(), a("span", J, u(s.secondaryLine), 1)) : d("", !0)
76
+ ])
77
+ ]))), 128))
78
+ ])
79
+ ])
80
+ ])) : d("", !0);
81
+ }
82
+ }), Z = /* @__PURE__ */ $(K, [["__scopeId", "data-v-5305179d"]]);
83
+ export {
84
+ Z as default
85
+ };
@@ -0,0 +1,45 @@
1
+ import { SubtitleDisplayMode } from '../../../types/asr';
2
+
3
+ declare function __VLS_template(): {
4
+ actions?(_: {}): any;
5
+ };
6
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
+ targetLanguage?: string;
8
+ displayMode?: SubtitleDisplayMode;
9
+ }>, {
10
+ targetLanguage: string;
11
+ displayMode: string;
12
+ }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
13
+ targetLanguage?: string;
14
+ displayMode?: SubtitleDisplayMode;
15
+ }>, {
16
+ targetLanguage: string;
17
+ displayMode: string;
18
+ }>>> & Readonly<{}>, {
19
+ targetLanguage: string;
20
+ displayMode: SubtitleDisplayMode;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
23
+ export default _default;
24
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
25
+ type __VLS_TypePropsToRuntimeProps<T> = {
26
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
27
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
28
+ } : {
29
+ type: import('vue').PropType<T[K]>;
30
+ required: true;
31
+ };
32
+ };
33
+ type __VLS_WithDefaults<P, D> = {
34
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
35
+ default: D[K];
36
+ }> : P[K];
37
+ };
38
+ type __VLS_Prettify<T> = {
39
+ [K in keyof T]: T[K];
40
+ } & {};
41
+ type __VLS_WithTemplateSlots<T, S> = T & {
42
+ new (): {
43
+ $slots: S;
44
+ };
45
+ };
@@ -1,4 +1,4 @@
1
- import { default as RealtimeMessageList } from './RealtimeMessageList.vue';
2
- import { default as Subtitle } from './Subtitle.vue';
1
+ import { default as RealtimeMessageList } from './components/RealtimeMessageList.vue';
2
+ import { default as Subtitle } from './components/Subtitle.vue';
3
3
 
4
4
  export { Subtitle, RealtimeMessageList };
@@ -1,5 +1,5 @@
1
- import { default as a } from "./RealtimeMessageList.js";
2
- import { default as f } from "./Subtitle.js";
1
+ import { default as a } from "./components/RealtimeMessageList.js";
2
+ import { default as f } from "./components/Subtitle.js";
3
3
  export {
4
4
  a as RealtimeMessageList,
5
5
  f as Subtitle
@@ -0,0 +1,7 @@
1
+ import { SubtitleDisplayMode, TranscriberLanguage, TranscriberMessage } from '../../../types';
2
+
3
+ export declare const getDisplayName: (userId: string) => string;
4
+ export declare const hasDisplayableText: (value: unknown) => boolean;
5
+ export declare const getTranslationText: (message: TranscriberMessage, targetLanguage: TranscriberLanguage | "") => string;
6
+ export declare const hasTranslationText: (message: TranscriberMessage) => boolean;
7
+ export declare const getMessageDisplayLines: (message: TranscriberMessage, targetLanguage: TranscriberLanguage | "", displayMode: SubtitleDisplayMode) => string[];
@@ -0,0 +1,45 @@
1
+ import l from "../../../states/RoomParticipantState/index.js";
2
+ const { participantList: u } = l(), a = (t) => {
3
+ if (typeof t == "string")
4
+ return t.trim();
5
+ if (typeof t == "number" || typeof t == "boolean")
6
+ return String(t).trim();
7
+ if (t && typeof t == "object") {
8
+ const n = t.text ?? t.translationText ?? t.value;
9
+ if (typeof n == "string" || typeof n == "number" || typeof n == "boolean")
10
+ return String(n).trim();
11
+ }
12
+ return "";
13
+ }, d = (t) => {
14
+ const n = u.value.find((r) => r.userId === t);
15
+ return (n == null ? void 0 : n.nameCard) || (n == null ? void 0 : n.userName) || (n == null ? void 0 : n.userId) || t;
16
+ }, c = (t) => !!a(t), x = (t) => t ? t instanceof Map ? t.size : Array.isArray(t) ? t.length : 0 : 0, T = (t, n) => {
17
+ if (!n || !t.translationTexts)
18
+ return "";
19
+ if (t.translationTexts instanceof Map) {
20
+ const r = String(n).toLowerCase(), o = Array.from(t.translationTexts.entries()).find(
21
+ ([s]) => String(s).toLowerCase() === r
22
+ ), e = Array.from(t.translationTexts.values()).find((s) => c(s));
23
+ return a((o == null ? void 0 : o[1]) || e);
24
+ }
25
+ if (Array.isArray(t.translationTexts)) {
26
+ const r = t.translationTexts, o = String(n).toLowerCase(), e = r.find((i) => {
27
+ var f;
28
+ return ((f = i == null ? void 0 : i.language) == null ? void 0 : f.toLowerCase()) === o;
29
+ }), s = r.find((i) => c(i == null ? void 0 : i.text));
30
+ return a(
31
+ (e == null ? void 0 : e.text) || (s == null ? void 0 : s.text)
32
+ );
33
+ }
34
+ return "";
35
+ }, g = (t) => x(t.translationTexts) > 0, p = (t, n, r) => {
36
+ const o = a(t.sourceText), e = a(T(t, n));
37
+ return r === "translation" ? [o || e].filter(Boolean) : [o, e].filter(Boolean);
38
+ };
39
+ export {
40
+ d as getDisplayName,
41
+ p as getMessageDisplayLines,
42
+ T as getTranslationText,
43
+ c as hasDisplayableText,
44
+ g as hasTranslationText
45
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as j, onMounted as x, openBlock as a, createElementBlock as c, createVNode as o, unref as e, withCtx as r, normalizeClass as i, normalizeStyle as v, createElementVNode as _, Fragment as b, renderList as E } from "vue";
2
2
  import { useUIKit as y, IconEmoji as P } from "@tencentcloud/uikit-base-component-vue3";
3
- import { P as C, a as h, b as I } from "../../../PopoverPortal-NF24jm90.js";
4
- import { P as z } from "../../../PopoverTrigger-Q8GAhbK6.js";
3
+ import { b as C, a as h, P as I } from "../../../PopoverPortal-B5nQO1jH.js";
4
+ import { P as z } from "../../../PopoverTrigger-LW6v3-7z.js";
5
5
  import { emojiUrlMap as l, emojiBaseUrl as m } from "../../../constants/emoji.js";
6
6
  import { transformTextWithEmojiKeyToName as M } from "../../../utils/emoji.js";
7
7
  import { useMessageInputState as T } from "../MessageInputState.js";
@@ -1,4 +1,4 @@
1
- import { E as l, P as h, a as f } from "../../../index-DSsh0Axu.js";
1
+ import { b as l, P as h, f } from "../../../index-DqyosXqU.js";
2
2
  const m = l.create({
3
3
  name: "characterCount",
4
4
  addOptions() {
@@ -1,9 +1,9 @@
1
- import { I as u } from "../../../index-ljqIpw2N.js";
2
- import { S as g, P as p } from "../../../index-I6gZUWuE.js";
3
- import { E as x } from "../../../index-Dw7nlTSW.js";
1
+ import { I as u } from "../../../index-B-EPJL5C.js";
2
+ import { S as g, P as p } from "../../../index-DFWbxmx_.js";
3
+ import { E as x } from "../../../index-C5WoSbVd.js";
4
4
  import { isMobile as y } from "../../../utils/environment.js";
5
5
  import { CharacterCount as M } from "./CharacterCountExtension.js";
6
- import { E as T } from "../../../index-DSsh0Axu.js";
6
+ import { b as T } from "../../../index-DqyosXqU.js";
7
7
  import { MessageContentType as a } from "../../../states/MessageInputState/type.js";
8
8
  import "../../../states/MessageInputState/MessageInputState.js";
9
9
  function b() {