@cloudflare/realtimekit-ui 2.0.3-staging.1 → 2.0.3-staging.11

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 (558) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-CXP5MCz2.js → TextMessage-cfaZckxh.js} +1 -1
  3. package/dist/cjs/{chat-BJwmnHGm.js → chat-Dmb93Uku.js} +1 -1
  4. package/dist/cjs/{config-lVBc97X8.js → config-wbyoqfPs.js} +2 -2
  5. package/dist/cjs/{debounce-BfjpS8nk.js → debounce-B5TJRWkG.js} +1 -1
  6. package/dist/cjs/index-Bi2L8zQ7.js +10 -6
  7. package/dist/cjs/{index-iml9xkbo.js → index-CmhPLhux.js} +1 -1
  8. package/dist/cjs/index.cjs.js +5 -5
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{merge-BJWi-sVV.js → merge-B7Yr5DGf.js} +1 -1
  11. package/dist/cjs/{notification-BM6CUHyL.js → notification-Bny5fHfy.js} +3 -3
  12. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  13. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  17. package/dist/cjs/rtk-audio-tile.cjs.entry.js +5 -2
  18. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +3 -3
  19. package/dist/cjs/rtk-avatar_26.cjs.entry.js +25 -25
  20. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  21. package/dist/cjs/{rtk-breakout-rooms-manager_9.cjs.entry.js → rtk-breakout-rooms-manager_8.cjs.entry.js} +19 -112
  22. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  27. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  31. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +10 -16
  36. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-debugger.cjs.entry.js +99 -0
  38. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +3 -3
  39. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-file-message_3.cjs.entry.js +4 -4
  43. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-grid.cjs.entry.js +13 -11
  46. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  54. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  55. package/dist/cjs/rtk-message-list-view.cjs.entry.js +6 -6
  56. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  61. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  62. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  63. package/dist/cjs/rtk-notifications.cjs.entry.js +4 -4
  64. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  66. package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
  67. package/dist/cjs/rtk-participants-audio.cjs.entry.js +57 -14
  68. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  71. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  78. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
  80. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +4 -4
  85. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
  88. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  90. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  91. package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
  92. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  93. package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
  94. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
  95. package/dist/cjs/{ui-store-C8bSJOfE.js → ui-store-C7CyFWPZ.js} +1 -1
  96. package/dist/collection/components/rtk-ai/rtk-ai.js +2 -4
  97. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +3 -0
  98. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +4 -6
  99. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +8 -7
  100. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +9 -10
  101. package/dist/collection/components/rtk-debugger/rtk-debugger.css +28 -18
  102. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  103. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.css +8 -15
  104. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  105. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.css +8 -15
  106. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  107. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.css +7 -14
  108. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -8
  109. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.css +8 -15
  110. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  111. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  112. package/dist/collection/components/rtk-grid/rtk-grid.js +11 -9
  113. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -4
  114. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +4 -4
  115. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +4 -4
  116. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -4
  117. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -4
  118. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +4 -6
  119. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  120. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
  121. package/dist/collection/lib/audio.js +55 -12
  122. package/dist/collection/lib/notification.js +3 -3
  123. package/dist/collection/utils/clone.js +1 -1
  124. package/dist/components/index.js +1 -1
  125. package/dist/components/{p-BssX9KwA.js → p--CEA0NQj.js} +1 -1
  126. package/dist/components/{p-CWHbCyoL.js → p--VK1POSX.js} +1 -1
  127. package/dist/components/{p-kwrAj1JQ.js → p-5i84b0Gw.js} +1 -1
  128. package/dist/components/{p-DCtgO53p.js → p-93ZUKlQ1.js} +1 -1
  129. package/dist/components/{p-DXSMSSbW.js → p-B0SC1Zj-.js} +1 -1
  130. package/dist/components/{p-CPF_oopS.js → p-B1HaRABx.js} +1 -1
  131. package/dist/components/{p-Dy1vyj0N.js → p-B1oyTNvb.js} +1 -1
  132. package/dist/components/{p-BQkUbUdr.js → p-B3dQhqRr.js} +1 -1
  133. package/dist/components/{p-Bgm0SnIA.js → p-B4dw_Fnl.js} +1 -1
  134. package/dist/components/p-B56IYWsZ.js +1 -0
  135. package/dist/components/{p-BNRJKXAG.js → p-BHHJ7_MS.js} +1 -1
  136. package/dist/components/{p-Bj4I4jh7.js → p-BQJoMtIK.js} +1 -1
  137. package/dist/components/{p-Bqf3TobZ.js → p-BXHUa6x_.js} +1 -1
  138. package/dist/components/p-BY_rxRub.js +1 -0
  139. package/dist/components/p-BbE6o8zj.js +1 -0
  140. package/dist/components/{p-CwNP8xfN.js → p-Bf-HIBwL.js} +1 -1
  141. package/dist/components/{p-CfFkjBT0.js → p-Bf-vQ6U9.js} +1 -1
  142. package/dist/components/{p-BbtnaCk4.js → p-Bn6JMUc9.js} +1 -1
  143. package/dist/components/{p-CVfA5R2h.js → p-BoqfUgTL.js} +1 -1
  144. package/dist/components/{p-vBjvMv_5.js → p-Bux-kSlP.js} +1 -1
  145. package/dist/components/{p-Chf25Wxh.js → p-BvLjh5Yy.js} +1 -1
  146. package/dist/components/{p-C9KgVl-d.js → p-BxPmWGqJ.js} +1 -1
  147. package/dist/components/p-ByPpyWt6.js +1 -0
  148. package/dist/components/{p-C-ZKbHGI.js → p-C0ESgBoj.js} +1 -1
  149. package/dist/components/p-C5kkSbkd.js +1 -0
  150. package/dist/components/{p-B17zaVfB.js → p-C6AgOKhg.js} +1 -1
  151. package/dist/components/{p-CXK5Hixp.js → p-C7WazpNf.js} +1 -1
  152. package/dist/components/{p-Bvn365hl.js → p-C9UuqXCX.js} +1 -1
  153. package/dist/components/{p-DcBUj_Ju.js → p-CAMtxcI_.js} +1 -1
  154. package/dist/components/{p-C71rbtpI.js → p-CAsupO2z.js} +1 -1
  155. package/dist/components/p-CBWhDYEo.js +1 -0
  156. package/dist/components/{p-Ba4odlrT.js → p-CCxMYXjI.js} +1 -1
  157. package/dist/components/{p-mm-pzvJ-.js → p-CEK_XoGw.js} +1 -1
  158. package/dist/components/{p-DPxfGgCX.js → p-CFBS-gbK.js} +1 -1
  159. package/dist/components/p-CHOs-ZsL.js +1 -0
  160. package/dist/components/p-CHh7GAdL.js +1 -0
  161. package/dist/components/{p-DnGHVpK1.js → p-CJGAvEk3.js} +1 -1
  162. package/dist/components/{p-Bjmpb3KI.js → p-CMyYEHgz.js} +1 -1
  163. package/dist/components/{p-BUosYxgI.js → p-CNaazJXM.js} +1 -1
  164. package/dist/components/{p-BGMQOFEz.js → p-CTuYqZY2.js} +1 -1
  165. package/dist/components/{p-oNFda96T.js → p-CU7xL-hP.js} +1 -1
  166. package/dist/components/{p-fEIEB26m.js → p-CW-FAeNP.js} +1 -1
  167. package/dist/components/{p-iZinM7-j.js → p-CfIrQkMg.js} +1 -1
  168. package/dist/components/{p-V9huV8XH.js → p-CjstGmGh.js} +1 -1
  169. package/dist/components/{p-CkA8t9GX.js → p-CkB6Me6q.js} +1 -1
  170. package/dist/components/{p-Cj0CCucK.js → p-CnPYfRgf.js} +1 -1
  171. package/dist/components/{p-nkadiHul.js → p-CpD_SehU.js} +1 -1
  172. package/dist/components/{p-iaFYN7Sj.js → p-CuRSxmeD.js} +1 -1
  173. package/dist/components/{p-66poN2qn.js → p-DMbGWtns.js} +1 -1
  174. package/dist/components/{p-D__Gipxn.js → p-DONfrqzk.js} +1 -1
  175. package/dist/components/{p-CIfkVpTJ.js → p-DSUStc8e.js} +1 -1
  176. package/dist/components/{p-BIdrWJJD.js → p-DSe3wsBa.js} +1 -1
  177. package/dist/components/{p-B77rBORD.js → p-DViKr-34.js} +1 -1
  178. package/dist/components/{p-B2GVx1qA.js → p-DZcwJOUW.js} +1 -1
  179. package/dist/components/p-D_AEDHUV.js +1 -0
  180. package/dist/components/{p-BhG6UsF5.js → p-DdSpe6Sb.js} +1 -1
  181. package/dist/components/{p-nad0N2DI.js → p-Dh8N1Wv8.js} +1 -1
  182. package/dist/components/{p-C8Dgpnzx.js → p-DhG2PF_5.js} +1 -1
  183. package/dist/components/p-DhwysA2e.js +1 -0
  184. package/dist/components/{p-DfGTdsn0.js → p-DjOiGHfI.js} +1 -1
  185. package/dist/components/{p-CAgV-5OF.js → p-DnOzzBR9.js} +1 -1
  186. package/dist/components/{p-CNv9-uKL.js → p-DnkJztTd.js} +1 -1
  187. package/dist/components/{p-Cz9_MmLt.js → p-Dq8iLPzP.js} +1 -1
  188. package/dist/components/{p-DSm20Isy.js → p-E1D1eNFh.js} +1 -1
  189. package/dist/components/{p-CuqFnmgF.js → p-M0IaFpEv.js} +1 -1
  190. package/dist/components/{p-ebQT96VB.js → p-NKK4fZcP.js} +1 -1
  191. package/dist/components/{p-jyZncre7.js → p-ObGKzmP7.js} +1 -1
  192. package/dist/components/{p-D_tCWiMP.js → p-Ryaxu6vl.js} +1 -1
  193. package/dist/components/{p-CSO-O3S1.js → p-Smh6fH4v.js} +1 -1
  194. package/dist/components/{p-COCm8rOB.js → p-VHRH6fkb.js} +1 -1
  195. package/dist/components/{p-CSt7vW9Z.js → p-Z8VMlEx7.js} +1 -1
  196. package/dist/components/{p-DL4GSZ2e.js → p-bRRQr4xn.js} +1 -1
  197. package/dist/components/{p-B6TKlHLV.js → p-gixOLeKl.js} +1 -1
  198. package/dist/components/{p-BRPrcA0X.js → p-mgE9e3Hm.js} +1 -1
  199. package/dist/components/{p-RjS7wlRV.js → p-pcKO_EeI.js} +1 -1
  200. package/dist/components/{p-CRr8LXGp.js → p-vqPkhXWC.js} +1 -1
  201. package/dist/components/{p-D3IRX-4x.js → p-y_feb08f.js} +1 -1
  202. package/dist/components/rtk-ai-toggle.js +1 -1
  203. package/dist/components/rtk-ai-transcriptions.js +1 -1
  204. package/dist/components/rtk-ai.js +1 -1
  205. package/dist/components/rtk-audio-grid.js +1 -1
  206. package/dist/components/rtk-audio-tile.js +1 -1
  207. package/dist/components/rtk-audio-visualizer.js +1 -1
  208. package/dist/components/rtk-avatar.js +1 -1
  209. package/dist/components/rtk-breakout-room-manager.js +1 -1
  210. package/dist/components/rtk-breakout-room-participants.js +1 -1
  211. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  212. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  213. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  214. package/dist/components/rtk-camera-selector.js +1 -1
  215. package/dist/components/rtk-camera-toggle.js +1 -1
  216. package/dist/components/rtk-caption-toggle.js +1 -1
  217. package/dist/components/rtk-chat-composer-ui.js +1 -1
  218. package/dist/components/rtk-chat-composer-view.js +1 -1
  219. package/dist/components/rtk-chat-header.js +1 -1
  220. package/dist/components/rtk-chat-message.js +1 -1
  221. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  222. package/dist/components/rtk-chat-messages-ui.js +1 -1
  223. package/dist/components/rtk-chat-search-results.js +1 -1
  224. package/dist/components/rtk-chat-selector-ui.js +1 -1
  225. package/dist/components/rtk-chat-selector.js +1 -1
  226. package/dist/components/rtk-chat-toggle.js +1 -1
  227. package/dist/components/rtk-chat.js +1 -1
  228. package/dist/components/rtk-clock.js +1 -1
  229. package/dist/components/rtk-confirmation-modal.js +1 -1
  230. package/dist/components/rtk-controlbar-button.js +1 -1
  231. package/dist/components/rtk-controlbar.js +1 -1
  232. package/dist/components/rtk-counter.js +1 -1
  233. package/dist/components/rtk-debugger-audio.js +1 -1
  234. package/dist/components/rtk-debugger-screenshare.js +1 -1
  235. package/dist/components/rtk-debugger-system.js +1 -1
  236. package/dist/components/rtk-debugger-toggle.js +1 -1
  237. package/dist/components/rtk-debugger-video.js +1 -1
  238. package/dist/components/rtk-debugger.js +1 -1
  239. package/dist/components/rtk-dialog-manager.js +1 -1
  240. package/dist/components/rtk-dialog.js +1 -1
  241. package/dist/components/rtk-draft-attachment-view.js +1 -1
  242. package/dist/components/rtk-emoji-picker-button.js +1 -1
  243. package/dist/components/rtk-emoji-picker.js +1 -1
  244. package/dist/components/rtk-ended-screen.js +1 -1
  245. package/dist/components/rtk-file-dropzone.js +1 -1
  246. package/dist/components/rtk-file-message-view.js +1 -1
  247. package/dist/components/rtk-file-message.js +1 -1
  248. package/dist/components/rtk-file-picker-button.js +1 -1
  249. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  250. package/dist/components/rtk-grid-pagination.js +1 -1
  251. package/dist/components/rtk-grid.js +1 -1
  252. package/dist/components/rtk-header.js +1 -1
  253. package/dist/components/rtk-idle-screen.js +1 -1
  254. package/dist/components/rtk-image-message-view.js +1 -1
  255. package/dist/components/rtk-image-message.js +1 -1
  256. package/dist/components/rtk-image-viewer.js +1 -1
  257. package/dist/components/rtk-information-tooltip.js +1 -1
  258. package/dist/components/rtk-join-stage.js +1 -1
  259. package/dist/components/rtk-leave-button.js +1 -1
  260. package/dist/components/rtk-leave-meeting.js +1 -1
  261. package/dist/components/rtk-livestream-indicator.js +1 -1
  262. package/dist/components/rtk-livestream-player.js +1 -1
  263. package/dist/components/rtk-livestream-toggle.js +1 -1
  264. package/dist/components/rtk-logo.js +1 -1
  265. package/dist/components/rtk-meeting-title.js +1 -1
  266. package/dist/components/rtk-meeting.js +1 -1
  267. package/dist/components/rtk-menu-item.js +1 -1
  268. package/dist/components/rtk-menu-list.js +1 -1
  269. package/dist/components/rtk-menu.js +1 -1
  270. package/dist/components/rtk-message-list-view.js +1 -1
  271. package/dist/components/rtk-message-view.js +1 -1
  272. package/dist/components/rtk-mic-toggle.js +1 -1
  273. package/dist/components/rtk-microphone-selector.js +1 -1
  274. package/dist/components/rtk-mixed-grid.js +1 -1
  275. package/dist/components/rtk-more-toggle.js +1 -1
  276. package/dist/components/rtk-mute-all-button.js +1 -1
  277. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  278. package/dist/components/rtk-name-tag.js +1 -1
  279. package/dist/components/rtk-network-indicator.js +1 -1
  280. package/dist/components/rtk-notification.js +1 -1
  281. package/dist/components/rtk-notifications.js +1 -1
  282. package/dist/components/rtk-overlay-modal.js +1 -1
  283. package/dist/components/rtk-paginated-list.js +1 -1
  284. package/dist/components/rtk-participant-count.js +1 -1
  285. package/dist/components/rtk-participant-setup.js +1 -1
  286. package/dist/components/rtk-participant-tile.js +1 -1
  287. package/dist/components/rtk-participant.js +1 -1
  288. package/dist/components/rtk-participants-audio.js +1 -1
  289. package/dist/components/rtk-participants-stage-list.js +1 -1
  290. package/dist/components/rtk-participants-stage-queue.js +1 -1
  291. package/dist/components/rtk-participants-toggle.js +1 -1
  292. package/dist/components/rtk-participants-viewer-list.js +1 -1
  293. package/dist/components/rtk-participants-waiting-list.js +1 -1
  294. package/dist/components/rtk-participants.js +1 -1
  295. package/dist/components/rtk-permissions-message.js +1 -1
  296. package/dist/components/rtk-pinned-message-selector.js +1 -1
  297. package/dist/components/rtk-pip-toggle.js +1 -1
  298. package/dist/components/rtk-plugin-main.js +1 -1
  299. package/dist/components/rtk-plugins-toggle.js +1 -1
  300. package/dist/components/rtk-plugins.js +1 -1
  301. package/dist/components/rtk-poll-form.js +1 -1
  302. package/dist/components/rtk-poll.js +1 -1
  303. package/dist/components/rtk-polls-toggle.js +1 -1
  304. package/dist/components/rtk-polls.js +1 -1
  305. package/dist/components/rtk-recording-indicator.js +1 -1
  306. package/dist/components/rtk-recording-toggle.js +1 -1
  307. package/dist/components/rtk-screen-share-toggle.js +1 -1
  308. package/dist/components/rtk-screenshare-view.js +1 -1
  309. package/dist/components/rtk-settings-audio.js +1 -1
  310. package/dist/components/rtk-settings-toggle.js +1 -1
  311. package/dist/components/rtk-settings-video.js +1 -1
  312. package/dist/components/rtk-settings.js +1 -1
  313. package/dist/components/rtk-setup-screen.js +1 -1
  314. package/dist/components/rtk-sidebar-ui.js +1 -1
  315. package/dist/components/rtk-sidebar.js +1 -1
  316. package/dist/components/rtk-simple-grid.js +1 -1
  317. package/dist/components/rtk-speaker-selector.js +1 -1
  318. package/dist/components/rtk-spinner.js +1 -1
  319. package/dist/components/rtk-spotlight-grid.js +1 -1
  320. package/dist/components/rtk-spotlight-indicator.js +1 -1
  321. package/dist/components/rtk-stage-toggle.js +1 -1
  322. package/dist/components/rtk-stage.js +1 -1
  323. package/dist/components/rtk-switch.js +1 -1
  324. package/dist/components/rtk-tab-bar.js +1 -1
  325. package/dist/components/rtk-text-composer-view.js +1 -1
  326. package/dist/components/rtk-text-message.js +1 -1
  327. package/dist/components/rtk-transcript.js +1 -1
  328. package/dist/components/rtk-transcripts.js +1 -1
  329. package/dist/components/rtk-ui-provider.js +1 -1
  330. package/dist/components/rtk-viewer-count.js +1 -1
  331. package/dist/components/rtk-waiting-screen.js +1 -1
  332. package/dist/docs/docs-components.json +12 -27
  333. package/dist/docs/docs-vscode.json +8 -8
  334. package/dist/esm/{TextMessage-C1lPu3R8.js → TextMessage-B-38YeFE.js} +1 -1
  335. package/dist/esm/{chat-DRqOBXqN.js → chat-a6CRyl2K.js} +1 -1
  336. package/dist/esm/{config-BiYmSYD9.js → config-wP0cqv4b.js} +2 -2
  337. package/dist/esm/{debounce-BmgYF10w.js → debounce-lqMlEJcq.js} +1 -1
  338. package/dist/esm/{index-BnFmFXDx.js → index-CP1LPkYZ.js} +1 -1
  339. package/dist/esm/index-gJCRRBX0.js +10 -6
  340. package/dist/esm/index.js +7 -7
  341. package/dist/esm/loader.js +1082 -1034
  342. package/dist/esm/{merge-Bnx8tW3F.js → merge-BWjuIacB.js} +1 -1
  343. package/dist/esm/{notification-DcR6dHfn.js → notification-DZgheLdK.js} +3 -3
  344. package/dist/esm/realtimekit-ui.js +1 -1
  345. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  346. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  347. package/dist/esm/rtk-ai_3.entry.js +2 -2
  348. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  349. package/dist/esm/rtk-audio-tile.entry.js +5 -2
  350. package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
  351. package/dist/esm/rtk-avatar_26.entry.js +25 -25
  352. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  353. package/dist/esm/{rtk-breakout-rooms-manager_9.entry.js → rtk-breakout-rooms-manager_8.entry.js} +20 -112
  354. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  355. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  356. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  357. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  358. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  359. package/dist/esm/rtk-chat-message.entry.js +2 -2
  360. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  361. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  362. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  363. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  364. package/dist/esm/rtk-clock.entry.js +2 -2
  365. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  366. package/dist/esm/rtk-controlbar.entry.js +2 -2
  367. package/dist/esm/rtk-debugger-audio_4.entry.js +10 -16
  368. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  369. package/dist/esm/rtk-debugger.entry.js +97 -0
  370. package/dist/esm/rtk-dialog-manager.entry.js +3 -3
  371. package/dist/esm/rtk-dialog.entry.js +2 -2
  372. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  373. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  374. package/dist/esm/rtk-file-message_3.entry.js +4 -4
  375. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  376. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  377. package/dist/esm/rtk-grid.entry.js +13 -11
  378. package/dist/esm/rtk-header.entry.js +2 -2
  379. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  380. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  381. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  382. package/dist/esm/rtk-leave-button.entry.js +2 -2
  383. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  384. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  385. package/dist/esm/rtk-logo.entry.js +2 -2
  386. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  387. package/dist/esm/rtk-message-list-view.entry.js +6 -6
  388. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  389. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  390. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  391. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  392. package/dist/esm/rtk-name-tag.entry.js +2 -2
  393. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  394. package/dist/esm/rtk-notification.entry.js +4 -4
  395. package/dist/esm/rtk-notifications.entry.js +4 -4
  396. package/dist/esm/rtk-participant-count.entry.js +2 -2
  397. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  398. package/dist/esm/rtk-participant_2.entry.js +3 -3
  399. package/dist/esm/rtk-participants-audio.entry.js +57 -14
  400. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  401. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  402. package/dist/esm/rtk-participants.entry.js +3 -3
  403. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  404. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  405. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  406. package/dist/esm/rtk-poll_2.entry.js +2 -2
  407. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  408. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  409. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  410. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  411. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  412. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  413. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  414. package/dist/esm/rtk-settings.entry.js +2 -2
  415. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  416. package/dist/esm/rtk-sidebar-ui.entry.js +4 -4
  417. package/dist/esm/rtk-sidebar.entry.js +2 -2
  418. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  419. package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
  420. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  421. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  422. package/dist/esm/rtk-stage.entry.js +2 -2
  423. package/dist/esm/rtk-transcript.entry.js +2 -2
  424. package/dist/esm/rtk-transcripts.entry.js +2 -2
  425. package/dist/esm/rtk-ui-provider.entry.js +2 -2
  426. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  427. package/dist/esm/{ui-store-CkvSNsmd.js → ui-store-Ctcbman-.js} +1 -1
  428. package/dist/realtimekit-ui/index.esm.js +1 -1
  429. package/dist/realtimekit-ui/p-0051564a.entry.js +1 -0
  430. package/dist/realtimekit-ui/{p-b7f7e42a.entry.js → p-0195bd60.entry.js} +1 -1
  431. package/dist/realtimekit-ui/{p-0c1a8f1a.entry.js → p-01c014e4.entry.js} +1 -1
  432. package/dist/realtimekit-ui/{p-f2380597.entry.js → p-0264d57f.entry.js} +1 -1
  433. package/dist/realtimekit-ui/{p-eeb3d851.entry.js → p-09ce95b2.entry.js} +1 -1
  434. package/dist/realtimekit-ui/{p-b90a0bf4.entry.js → p-194ebf74.entry.js} +1 -1
  435. package/dist/realtimekit-ui/{p-ee470245.entry.js → p-20734a3a.entry.js} +1 -1
  436. package/dist/realtimekit-ui/{p-71b0d221.entry.js → p-21b69da3.entry.js} +1 -1
  437. package/dist/realtimekit-ui/{p-d9061f53.entry.js → p-21f69c50.entry.js} +1 -1
  438. package/dist/realtimekit-ui/{p-e3015917.entry.js → p-23e14ccd.entry.js} +1 -1
  439. package/dist/realtimekit-ui/{p-607f649e.entry.js → p-27751707.entry.js} +1 -1
  440. package/dist/realtimekit-ui/{p-11a08757.entry.js → p-286ce4d7.entry.js} +1 -1
  441. package/dist/realtimekit-ui/{p-ec9d4173.entry.js → p-2fd5255e.entry.js} +1 -1
  442. package/dist/realtimekit-ui/{p-ff436b41.entry.js → p-384db558.entry.js} +1 -1
  443. package/dist/realtimekit-ui/{p-12fa2370.entry.js → p-3ed792bf.entry.js} +1 -1
  444. package/dist/realtimekit-ui/{p-588dcb34.entry.js → p-401b9ed3.entry.js} +1 -1
  445. package/dist/realtimekit-ui/{p-af7bffbb.entry.js → p-462d4e8f.entry.js} +1 -1
  446. package/dist/realtimekit-ui/p-47abb821.entry.js +1 -0
  447. package/dist/realtimekit-ui/{p-458e87f0.entry.js → p-481e75eb.entry.js} +1 -1
  448. package/dist/realtimekit-ui/{p-d79a49f3.entry.js → p-4a1ec4a2.entry.js} +1 -1
  449. package/dist/realtimekit-ui/{p-e1542a67.entry.js → p-4aa24ae6.entry.js} +1 -1
  450. package/dist/realtimekit-ui/{p-cf8e7495.entry.js → p-4add313e.entry.js} +1 -1
  451. package/dist/realtimekit-ui/{p-d1c91dad.entry.js → p-4bd89bff.entry.js} +1 -1
  452. package/dist/realtimekit-ui/{p-7bf3de16.entry.js → p-4ed011a1.entry.js} +1 -1
  453. package/dist/realtimekit-ui/{p-ad1157e0.entry.js → p-5361cd19.entry.js} +1 -1
  454. package/dist/realtimekit-ui/{p-727fa3f2.entry.js → p-55ec635e.entry.js} +1 -1
  455. package/dist/realtimekit-ui/{p-2438cd32.entry.js → p-56df9c19.entry.js} +1 -1
  456. package/dist/realtimekit-ui/p-5810f0c4.entry.js +1 -0
  457. package/dist/realtimekit-ui/{p-f95e96b7.entry.js → p-58366145.entry.js} +1 -1
  458. package/dist/realtimekit-ui/p-61032e04.entry.js +1 -0
  459. package/dist/realtimekit-ui/{p-64224592.entry.js → p-62a46799.entry.js} +1 -1
  460. package/dist/realtimekit-ui/{p-b04cc83e.entry.js → p-67ee7fdd.entry.js} +1 -1
  461. package/dist/realtimekit-ui/{p-e010a673.entry.js → p-6ab2602a.entry.js} +1 -1
  462. package/dist/realtimekit-ui/{p-d10a73b2.entry.js → p-6b387775.entry.js} +1 -1
  463. package/dist/realtimekit-ui/{p-d438c98e.entry.js → p-6e0f43e4.entry.js} +1 -1
  464. package/dist/realtimekit-ui/{p-b1da05d3.entry.js → p-80b42139.entry.js} +1 -1
  465. package/dist/realtimekit-ui/{p-3e34195d.entry.js → p-815d9724.entry.js} +1 -1
  466. package/dist/realtimekit-ui/{p-92f6959e.entry.js → p-893da38a.entry.js} +1 -1
  467. package/dist/realtimekit-ui/{p-1e4ffceb.entry.js → p-8cdd8307.entry.js} +1 -1
  468. package/dist/realtimekit-ui/{p-8cb45932.entry.js → p-959917cc.entry.js} +1 -1
  469. package/dist/realtimekit-ui/{p-932c7070.entry.js → p-9aac22a5.entry.js} +1 -1
  470. package/dist/realtimekit-ui/{p-b491565f.entry.js → p-9ce9b595.entry.js} +1 -1
  471. package/dist/realtimekit-ui/{p-ae82b88b.entry.js → p-9fa91df2.entry.js} +1 -1
  472. package/dist/realtimekit-ui/{p-676d4a41.entry.js → p-9fb75436.entry.js} +1 -1
  473. package/dist/realtimekit-ui/{p-1de6c388.entry.js → p-9fd3cb5e.entry.js} +1 -1
  474. package/dist/realtimekit-ui/p-B56IYWsZ.js +1 -0
  475. package/dist/realtimekit-ui/{p-3h3Qc6lD.js → p-B91vjjSJ.js} +1 -1
  476. package/dist/realtimekit-ui/{p-Dy41dnX2.js → p-BmRffDYW.js} +1 -1
  477. package/dist/realtimekit-ui/{p-BmaxriWP.js → p-CQ2xadpP.js} +1 -1
  478. package/dist/realtimekit-ui/{p-Cm8ENd-O.js → p-CfUJPUNx.js} +1 -1
  479. package/dist/realtimekit-ui/p-DI7wP4CL.js +1 -0
  480. package/dist/realtimekit-ui/{p-BTwUl5G9.js → p-MlOz-emx.js} +1 -1
  481. package/dist/realtimekit-ui/{p-2d1b8896.entry.js → p-a34a267b.entry.js} +1 -1
  482. package/dist/realtimekit-ui/p-a646f038.entry.js +1 -0
  483. package/dist/realtimekit-ui/{p-df4122cb.entry.js → p-ab63946e.entry.js} +1 -1
  484. package/dist/realtimekit-ui/p-ac4c182d.entry.js +1 -0
  485. package/dist/realtimekit-ui/{p-d089d2bb.entry.js → p-ac79ef88.entry.js} +1 -1
  486. package/dist/realtimekit-ui/{p-207aa239.entry.js → p-b27db286.entry.js} +1 -1
  487. package/dist/realtimekit-ui/{p-cffb7c0e.entry.js → p-b41fc081.entry.js} +1 -1
  488. package/dist/realtimekit-ui/{p-066359c2.entry.js → p-b46d416b.entry.js} +1 -1
  489. package/dist/realtimekit-ui/{p-7e0daf2a.entry.js → p-b9f47f88.entry.js} +1 -1
  490. package/dist/realtimekit-ui/{p-86b027f8.entry.js → p-ba7fb049.entry.js} +1 -1
  491. package/dist/realtimekit-ui/{p-9e855d5f.entry.js → p-bcc20509.entry.js} +1 -1
  492. package/dist/realtimekit-ui/{p-ecac916f.entry.js → p-bcc42454.entry.js} +1 -1
  493. package/dist/realtimekit-ui/{p-34e01092.entry.js → p-bd848924.entry.js} +1 -1
  494. package/dist/realtimekit-ui/{p-a74a3bd7.entry.js → p-bdd8ebec.entry.js} +1 -1
  495. package/dist/realtimekit-ui/{p-cb9955f1.entry.js → p-bf54cdd9.entry.js} +1 -1
  496. package/dist/realtimekit-ui/p-c6d03162.entry.js +1 -0
  497. package/dist/realtimekit-ui/{p-fc6bfa36.entry.js → p-c6f6afcd.entry.js} +1 -1
  498. package/dist/realtimekit-ui/{p-8f4c582b.entry.js → p-cd5069ea.entry.js} +1 -1
  499. package/dist/realtimekit-ui/p-ce81ffaa.entry.js +1 -0
  500. package/dist/realtimekit-ui/{p-cb9a3294.entry.js → p-d29c5a04.entry.js} +1 -1
  501. package/dist/realtimekit-ui/{p-de1b894a.entry.js → p-d30c178f.entry.js} +1 -1
  502. package/dist/realtimekit-ui/{p-538b2ecf.entry.js → p-d4ff2477.entry.js} +1 -1
  503. package/dist/realtimekit-ui/{p-4d2fcc46.entry.js → p-d52b8b3d.entry.js} +1 -1
  504. package/dist/realtimekit-ui/{p-9139643b.entry.js → p-d85e142c.entry.js} +1 -1
  505. package/dist/realtimekit-ui/p-d9c7c4d8.entry.js +1 -0
  506. package/dist/realtimekit-ui/{p-CKXY5S4J.js → p-dYOM3dvx.js} +1 -1
  507. package/dist/realtimekit-ui/{p-6fa0e07e.entry.js → p-da9c7efe.entry.js} +1 -1
  508. package/dist/realtimekit-ui/{p-5f9fdbf1.entry.js → p-dc7a28a6.entry.js} +1 -1
  509. package/dist/realtimekit-ui/{p-8f362ed0.entry.js → p-dd6fa0d8.entry.js} +1 -1
  510. package/dist/realtimekit-ui/{p-7b94fb4f.entry.js → p-de4ecd17.entry.js} +1 -1
  511. package/dist/realtimekit-ui/{p-691a610d.entry.js → p-e347e0d8.entry.js} +1 -1
  512. package/dist/realtimekit-ui/p-e38967d0.entry.js +1 -0
  513. package/dist/realtimekit-ui/{p-c2ea0c8a.entry.js → p-e8e6a1c8.entry.js} +1 -1
  514. package/dist/realtimekit-ui/{p-bbe8664e.entry.js → p-f5377574.entry.js} +1 -1
  515. package/dist/realtimekit-ui/{p-260169b4.entry.js → p-f5809d7c.entry.js} +1 -1
  516. package/dist/realtimekit-ui/{p-2bbc4dfc.entry.js → p-f6085321.entry.js} +1 -1
  517. package/dist/realtimekit-ui/{p-255290c6.entry.js → p-fb0a9fa6.entry.js} +1 -1
  518. package/dist/realtimekit-ui/p-ff89f0f6.entry.js +1 -0
  519. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  520. package/dist/types/components/rtk-ai/rtk-ai.d.ts +2 -4
  521. package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +2 -4
  522. package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +1 -0
  523. package/dist/types/components/rtk-chat-selector/rtk-chat-selector.d.ts +1 -1
  524. package/dist/types/components/rtk-debugger-system/rtk-debugger-system.d.ts +0 -3
  525. package/dist/types/components/rtk-grid/rtk-grid.d.ts +1 -2
  526. package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +2 -4
  527. package/dist/types/components/rtk-message-list-view/rtk-message-list-view.d.ts +1 -1
  528. package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +1 -1
  529. package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +2 -4
  530. package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +2 -4
  531. package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -4
  532. package/dist/types/components/rtk-spotlight-grid/rtk-spotlight-grid.d.ts +1 -1
  533. package/dist/types/components.d.ts +57 -79
  534. package/dist/types/lib/audio.d.ts +6 -3
  535. package/package.json +1 -1
  536. package/dist/components/p-48gPeJ33.js +0 -1
  537. package/dist/components/p-BCuMxcZN.js +0 -1
  538. package/dist/components/p-BoeW-RxV.js +0 -1
  539. package/dist/components/p-BsxEHBW2.js +0 -1
  540. package/dist/components/p-BthnOddY.js +0 -1
  541. package/dist/components/p-CEjlztlu.js +0 -1
  542. package/dist/components/p-DX_XkIXf.js +0 -1
  543. package/dist/components/p-DjSGHZA8.js +0 -1
  544. package/dist/components/p-UCR1gRqj.js +0 -1
  545. package/dist/components/p-xmJ8IJTr.js +0 -1
  546. package/dist/components/p-yIxFaBq2.js +0 -1
  547. package/dist/realtimekit-ui/p-0872cae4.entry.js +0 -1
  548. package/dist/realtimekit-ui/p-14204827.entry.js +0 -1
  549. package/dist/realtimekit-ui/p-27dd7099.entry.js +0 -1
  550. package/dist/realtimekit-ui/p-56a5c456.entry.js +0 -1
  551. package/dist/realtimekit-ui/p-94f25ba4.entry.js +0 -1
  552. package/dist/realtimekit-ui/p-98b33e56.entry.js +0 -1
  553. package/dist/realtimekit-ui/p-BCuMxcZN.js +0 -1
  554. package/dist/realtimekit-ui/p-D9rFUUCb.js +0 -1
  555. package/dist/realtimekit-ui/p-c6be9e1f.entry.js +0 -1
  556. package/dist/realtimekit-ui/p-c8f68298.entry.js +0 -1
  557. package/dist/realtimekit-ui/p-f182042f.entry.js +0 -1
  558. package/dist/realtimekit-ui/p-f5a30d5b.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,d as a,e,f as r,h as s,a as i}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as o,i as n,k as c}from"./p-D9rFUUCb.js";import{d as l,f as p,e as d}from"./p-jvwnrxra.js";import{s as h}from"./p-BIplIdLH.js";import{S as b}from"./p-Dy41dnX2.js";import"./p-Daj_55_i.js";var k=function(t,a,e,r){var s,i=arguments.length,o=i<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,a,e,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(a,e,o):s(a,e))||o);return i>3&&o&&Object.defineProperty(a,e,o),o};let v=!1;const g=class{constructor(r){t(this,r),this.onPinMessage=a(this,"pinMessage",7),this.stateUpdate=a(this,"rtkStateUpdate",7),this.observingEl=[],this.autoScrollEnabled=!0,this.messages=[],this.canPinMessages=!1,this.iconPack=o,this.t=n(),this.now=new Date,this.showLatestMessageButton=!1,this.onScroll=t=>{const a=t.target;e((()=>{const{scrollTop:t,clientHeight:e,scrollHeight:r}=a;t+e+10>=r?(this.autoScrollEnabled=!0,this.showLatestMessageButton=!1):this.autoScrollEnabled=!1}))},this.scrollToBottom=()=>{h(this.$chat)},this.observeMessage=t=>{t&&this.observingEl.push(t);try{this.intersectionObserver.observe(t)}catch(t){}},this.getMessageActions=t=>{const a=[];return!t.pinned&&this.canPinMessages&&a.push({id:"pin_message",label:this.t("pin"),icon:this.iconPack.pin}),a},this.onMessageActionHandler=(t,a)=>{"pin_message"===t&&this.onPinMessage.emit(a)}}connectedCallback(){var t;r.isDev&&!v&&(v=!0,console.warn("[realtimekit-ui] `rtk-chat-messages-ui` is deprecated and will be removed in a future release. Use `rtk-chat-messages-ui-paginated` instead.")),this.lastReadTimestamp=null!==(t=c.everyone)&&void 0!==t?t:new Date("0001-01-01T00:00:00Z"),this.intersectionObserver=new IntersectionObserver((t=>{document.hasFocus()&&e((()=>{for(const a of t)a.isIntersecting&&parseInt(a.target.getAttribute("data-timestamp"))>this.lastReadTimestamp.getTime()&&(c[this.selectedGroup]=new Date)}))}));const a=()=>{this.now=new Date,this.timeout=setTimeout((()=>{null!=this.request&&(this.request=requestAnimationFrame(a))}),6e4)};this.request=requestAnimationFrame(a),this.chatChanged(this.messages)}componentDidLoad(){this.$chat.addEventListener("scroll",this.onScroll),this.$chat.scrollTop=this.$chat.scrollHeight}componentDidRender(){this.autoScrollEnabled?h(this.$chat):null==this.autoScrollEnabled&&h(this.$chat,!1)}chatChanged(t){if(null!=this.$chat&&!this.autoScrollEnabled&&this.$chat.clientHeight!==this.$chat.scrollHeight)for(let a=t.length-1;a>=0;a--)if(t[a].message.time>this.lastReadTimestamp&&t[a].message.userId!==this.selfUserId){this.showLatestMessageButton=!0;break}}selectedBucketChanged(){this.autoScrollEnabled=void 0,this.observingEl.forEach((t=>{this.intersectionObserver.unobserve(t)})),this.observingEl=[]}disconnectedCallback(){this.$chat.removeEventListener("scroll",this.onScroll),this.intersectionObserver.disconnect(),clearTimeout(this.timeout),cancelAnimationFrame(this.request)}render(){var t;let a=null,e=!1;return s(i,{key:"5fa9062dc2937e4eb9d1210808a91c430a54535d"},s("div",{key:"6a45ba033904cc222f4461262049d71c801a8b7c",class:"chat-container scrollbar",ref:t=>this.$chat=t,part:"container"},s("div",{key:"f9cfd2960e08ddf5f024cce91f9aa6f247ebe54f",class:"spacer",part:"spacer"}),s("div",{key:"ec66c68f1d3876be4767279fe25022ca6994f1a0",class:"chat",part:"chat"},null===(t=this.messages)||void 0===t?void 0:t.map((t=>{if("chat"===t.type){const{message:r}=t,i=!(r.userId===this.selfUserId)&&!this.autoScrollEnabled&&!e&&r.time>this.lastReadTimestamp;i&&(e=i);const o=!i&&r.userId===(null==a?void 0:a.userId)&&l(r.time,null==a?void 0:a.time)<2;return a=r,s("div",{"is-continued":o,key:t.message.id,ref:this.observeMessage,"data-timestamp":r.time.getTime(),class:r.pinned?"pinned":""},i&&s("div",{class:"new-chat-marker",part:"new-chat-marker"},this.t("chat.new")),s("div",{class:"message-wrapper"},s("rtk-message-view",{time:r.time,actions:this.getMessageActions(r),authorName:r.displayName,hideAuthorName:!0,hideAvatar:!0,hideMetadata:!0,viewType:"incoming",variant:"bubble",onAction:t=>this.onMessageActionHandler(t.detail,r)},!o&&s("div",{class:"head"},s("div",{class:"name"},r.displayName),!!r.time&&s("div",{class:"time",title:p(r.time)},d(r.time,new Date(Date.now())))),s("div",{class:"body"},"text"===r.type&&s("rtk-text-message-view",{text:r.message,isMarkdown:!0}),"file"===r.type&&s("rtk-file-message-view",{name:r.name,url:r.link,size:r.size}),"image"===r.type&&s("rtk-image-message-view",{url:r.link,onPreview:()=>{this.stateUpdate.emit({image:r})}}))),r.pinned&&s("div",{class:"pin-button",part:"pin-button"},s("rtk-tooltip",{label:this.t("unpin")},s("rtk-button",{kind:"icon",variant:"ghost",onClick:()=>this.onMessageActionHandler("pin_message",r),disabled:!this.canPinMessages},s("rtk-icon",{icon:this.iconPack.pin,size:"sm"}))))))}return null})))),s("div",{key:"eae0a23fbe7ba44722539e98ac74eb1406bbc162",class:"show-new-messages-ctr"},s("rtk-button",{key:"05c860848174c514a28bb475157c2d81c78538ff",class:{"show-new-messages":!0,active:this.showLatestMessageButton},kind:"icon",part:"show-new-messages",onClick:this.scrollToBottom},s("rtk-icon",{key:"99b6ad3515cfbdf400cb96ca9cc2bbfd83a7deb9",icon:this.iconPack.chevron_down}))))}static get watchers(){return{messages:[{chatChanged:0}],selectedGroup:[{selectedBucketChanged:0}]}}};k([b()],g.prototype,"iconPack",void 0),k([b()],g.prototype,"t",void 0),g.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));word-break:break-word}.chat-container{box-sizing:border-box;display:flex;flex-direction:column;padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);flex:1 0 0px;overflow-y:scroll}.chat-container .spacer{flex:1 1 auto}.chat-container .chat{flex:0 0 auto}.file-picker{display:none}.chat .head{margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.chat .head .name{margin-right:var(--rtk-space-2, 8px);font-size:12px;font-weight:700}.chat .head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat .body{overflow-wrap:break-word;line-height:1.5}.chat .body .emoji{font-size:24px}p{margin:var(--rtk-space-0, 0px);line-height:1.5}rtk-message-view{margin-top:var(--rtk-space-2, 8px);display:block;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));box-sizing:border-box}rtk-message-view::part(message){flex-grow:1}*[is-continued] rtk-message-view{margin-top:var(--rtk-space-1, 4px)}.pinned .message-wrapper{position:relative}.pinned .pin-button{position:absolute;right:var(--rtk-space-4, 16px);top:calc(var(--rtk-space-4, 16px) * -1);display:flex;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.pinned .pin-button:hover rtk-button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-bg-opacity))}.pinned rtk-message-view{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}a{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));text-decoration-line:none}a:hover{text-decoration-line:underline}.new-chat-marker{display:flex;width:100%;align-items:center;gap:var(--rtk-space-2, 8px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.new-chat-marker::before{content:'';height:1px;flex:1 1 0%;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.show-new-messages-ctr{pointer-events:none;display:flex;justify-content:flex-end;padding:var(--rtk-space-3, 12px);z-index:0;margin-top:calc(var(--rtk-space-14, 56px) * -1)}.show-new-messages{pointer-events:auto;--tw-translate-y:var(--rtk-space-16, 64px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.show-new-messages.active{--tw-translate-y:var(--rtk-space-0, 0px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:1}";export{g as rtk_chat_messages_ui}
1
+ import{r as t,d as a,e,f as r,h as s,a as i}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as o,i as c,k as n}from"./p-DI7wP4CL.js";import{d as l,f as p,e as d}from"./p-jvwnrxra.js";import{s as h}from"./p-BIplIdLH.js";import{S as b}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";var k=function(t,a,e,r){var s,i=arguments.length,o=i<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,a,e,r);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(o=(i<3?s(o):i>3?s(a,e,o):s(a,e))||o);return i>3&&o&&Object.defineProperty(a,e,o),o};let v=!1;const g=class{constructor(r){t(this,r),this.onPinMessage=a(this,"pinMessage",7),this.stateUpdate=a(this,"rtkStateUpdate",7),this.observingEl=[],this.autoScrollEnabled=!0,this.messages=[],this.canPinMessages=!1,this.iconPack=o,this.t=c(),this.now=new Date,this.showLatestMessageButton=!1,this.onScroll=t=>{const a=t.target;e((()=>{const{scrollTop:t,clientHeight:e,scrollHeight:r}=a;t+e+10>=r?(this.autoScrollEnabled=!0,this.showLatestMessageButton=!1):this.autoScrollEnabled=!1}))},this.scrollToBottom=()=>{h(this.$chat)},this.observeMessage=t=>{t&&this.observingEl.push(t);try{this.intersectionObserver.observe(t)}catch(t){}},this.getMessageActions=t=>{const a=[];return!t.pinned&&this.canPinMessages&&a.push({id:"pin_message",label:this.t("pin"),icon:this.iconPack.pin}),a},this.onMessageActionHandler=(t,a)=>{"pin_message"===t&&this.onPinMessage.emit(a)}}connectedCallback(){var t;r.isDev&&!v&&(v=!0,console.warn("[realtimekit-ui] `rtk-chat-messages-ui` is deprecated and will be removed in a future release. Use `rtk-chat-messages-ui-paginated` instead.")),this.lastReadTimestamp=null!==(t=n.everyone)&&void 0!==t?t:new Date("0001-01-01T00:00:00Z"),this.intersectionObserver=new IntersectionObserver((t=>{document.hasFocus()&&e((()=>{for(const a of t)a.isIntersecting&&parseInt(a.target.getAttribute("data-timestamp"))>this.lastReadTimestamp.getTime()&&(n[this.selectedGroup]=new Date)}))}));const a=()=>{this.now=new Date,this.timeout=setTimeout((()=>{null!=this.request&&(this.request=requestAnimationFrame(a))}),6e4)};this.request=requestAnimationFrame(a),this.chatChanged(this.messages)}componentDidLoad(){this.$chat.addEventListener("scroll",this.onScroll),this.$chat.scrollTop=this.$chat.scrollHeight}componentDidRender(){this.autoScrollEnabled?h(this.$chat):null==this.autoScrollEnabled&&h(this.$chat,!1)}chatChanged(t){if(null!=this.$chat&&!this.autoScrollEnabled&&this.$chat.clientHeight!==this.$chat.scrollHeight)for(let a=t.length-1;a>=0;a--)if(t[a].message.time>this.lastReadTimestamp&&t[a].message.userId!==this.selfUserId){this.showLatestMessageButton=!0;break}}selectedBucketChanged(){this.autoScrollEnabled=void 0,this.observingEl.forEach((t=>{this.intersectionObserver.unobserve(t)})),this.observingEl=[]}disconnectedCallback(){this.$chat.removeEventListener("scroll",this.onScroll),this.intersectionObserver.disconnect(),clearTimeout(this.timeout),cancelAnimationFrame(this.request)}render(){var t;let a=null,e=!1;return s(i,{key:"5fa9062dc2937e4eb9d1210808a91c430a54535d"},s("div",{key:"6a45ba033904cc222f4461262049d71c801a8b7c",class:"chat-container scrollbar",ref:t=>this.$chat=t,part:"container"},s("div",{key:"f9cfd2960e08ddf5f024cce91f9aa6f247ebe54f",class:"spacer",part:"spacer"}),s("div",{key:"ec66c68f1d3876be4767279fe25022ca6994f1a0",class:"chat",part:"chat"},null===(t=this.messages)||void 0===t?void 0:t.map((t=>{if("chat"===t.type){const{message:r}=t,i=!(r.userId===this.selfUserId)&&!this.autoScrollEnabled&&!e&&r.time>this.lastReadTimestamp;i&&(e=i);const o=!i&&r.userId===(null==a?void 0:a.userId)&&l(r.time,null==a?void 0:a.time)<2;return a=r,s("div",{"is-continued":o,key:t.message.id,ref:this.observeMessage,"data-timestamp":r.time.getTime(),class:r.pinned?"pinned":""},i&&s("div",{class:"new-chat-marker",part:"new-chat-marker"},this.t("chat.new")),s("div",{class:"message-wrapper"},s("rtk-message-view",{time:r.time,actions:this.getMessageActions(r),authorName:r.displayName,hideAuthorName:!0,hideAvatar:!0,hideMetadata:!0,viewType:"incoming",variant:"bubble",onAction:t=>this.onMessageActionHandler(t.detail,r)},!o&&s("div",{class:"head"},s("div",{class:"name"},r.displayName),!!r.time&&s("div",{class:"time",title:p(r.time)},d(r.time,new Date(Date.now())))),s("div",{class:"body"},"text"===r.type&&s("rtk-text-message-view",{text:r.message,isMarkdown:!0}),"file"===r.type&&s("rtk-file-message-view",{name:r.name,url:r.link,size:r.size}),"image"===r.type&&s("rtk-image-message-view",{url:r.link,onPreview:()=>{this.stateUpdate.emit({image:r})}}))),r.pinned&&s("div",{class:"pin-button",part:"pin-button"},s("rtk-tooltip",{label:this.t("unpin")},s("rtk-button",{kind:"icon",variant:"ghost",onClick:()=>this.onMessageActionHandler("pin_message",r),disabled:!this.canPinMessages},s("rtk-icon",{icon:this.iconPack.pin,size:"sm"}))))))}return null})))),s("div",{key:"eae0a23fbe7ba44722539e98ac74eb1406bbc162",class:"show-new-messages-ctr"},s("rtk-button",{key:"05c860848174c514a28bb475157c2d81c78538ff",class:{"show-new-messages":!0,active:this.showLatestMessageButton},kind:"icon",part:"show-new-messages",onClick:this.scrollToBottom},s("rtk-icon",{key:"99b6ad3515cfbdf400cb96ca9cc2bbfd83a7deb9",icon:this.iconPack.chevron_down}))))}static get watchers(){return{messages:[{chatChanged:0}],selectedGroup:[{selectedBucketChanged:0}]}}};k([b()],g.prototype,"iconPack",void 0),k([b()],g.prototype,"t",void 0),g.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));word-break:break-word}.chat-container{box-sizing:border-box;display:flex;flex-direction:column;padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);flex:1 0 0px;overflow-y:scroll}.chat-container .spacer{flex:1 1 auto}.chat-container .chat{flex:0 0 auto}.file-picker{display:none}.chat .head{margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.chat .head .name{margin-right:var(--rtk-space-2, 8px);font-size:12px;font-weight:700}.chat .head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat .body{overflow-wrap:break-word;line-height:1.5}.chat .body .emoji{font-size:24px}p{margin:var(--rtk-space-0, 0px);line-height:1.5}rtk-message-view{margin-top:var(--rtk-space-2, 8px);display:block;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));box-sizing:border-box}rtk-message-view::part(message){flex-grow:1}*[is-continued] rtk-message-view{margin-top:var(--rtk-space-1, 4px)}.pinned .message-wrapper{position:relative}.pinned .pin-button{position:absolute;right:var(--rtk-space-4, 16px);top:calc(var(--rtk-space-4, 16px) * -1);display:flex;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.pinned .pin-button:hover rtk-button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-bg-opacity))}.pinned rtk-message-view{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}a{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));text-decoration-line:none}a:hover{text-decoration-line:underline}.new-chat-marker{display:flex;width:100%;align-items:center;gap:var(--rtk-space-2, 8px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.new-chat-marker::before{content:'';height:1px;flex:1 1 0%;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.show-new-messages-ctr{pointer-events:none;display:flex;justify-content:flex-end;padding:var(--rtk-space-3, 12px);z-index:0;margin-top:calc(var(--rtk-space-14, 56px) * -1)}.show-new-messages{pointer-events:auto;--tw-translate-y:var(--rtk-space-16, 64px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.show-new-messages.active{--tw-translate-y:var(--rtk-space-0, 0px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:1}";export{g as rtk_chat_messages_ui}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-D9rFUUCb.js";import{d as n}from"./p-D9HGXWKc.js";import{S as r}from"./p-Dy41dnX2.js";import"./p-C0vp-Q7v.js";var l=function(t,i,s,e){var a,o=arguments.length,n=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(i,s,n):a(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s,e,a,o;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===i||i.removeListener("pollsUpdate",this.onPollsUpdate),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pollsUpdate",this.updateCanView),null===(o=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var i,s;t&&t.polls&&(this.unreadPollsCount=t.polls.items.length,this.meeting.polls.addListener("pollsUpdate",this.onPollsUpdate),null===(i=null==t?void 0:t.self)||void 0===i||i.permissions.addListener("pollsUpdate",this.updateCanView),this.canViewPolls=n(t),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pollsActive=!0===t.activeSidebar&&"polls"===t.sidebar)}togglePollsTab(){const t=this.states;this.unreadPollsCount=0,this.pollsActive=!((null==t?void 0:t.activeSidebar)&&"polls"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pollsActive,sidebar:this.pollsActive?"polls":void 0,activeMoreMenu:!1})}handlePollsActiveChange(){this.pollsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPolls)return s(e,{"data-hidden":!0});const t=this.t("polls");return s(e,{title:t},0!==this.unreadPollsCount&&!this.pollsActive&&s("div",{class:"unread-count",part:"unread-count"},s("span",null,this.unreadPollsCount<=100?this.unreadPollsCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pollsActive},onClick:()=>this.togglePollsTab(),icon:this.iconPack.poll,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{h as rtk_polls_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-DI7wP4CL.js";import{d as n}from"./p-D9HGXWKc.js";import{S as r}from"./p-BmRffDYW.js";import"./p-C0vp-Q7v.js";var l=function(t,i,s,e){var a,o=arguments.length,n=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(i,s,n):a(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s,e,a,o;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===i||i.removeListener("pollsUpdate",this.onPollsUpdate),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pollsUpdate",this.updateCanView),null===(o=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var i,s;t&&t.polls&&(this.unreadPollsCount=t.polls.items.length,this.meeting.polls.addListener("pollsUpdate",this.onPollsUpdate),null===(i=null==t?void 0:t.self)||void 0===i||i.permissions.addListener("pollsUpdate",this.updateCanView),this.canViewPolls=n(t),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pollsActive=!0===t.activeSidebar&&"polls"===t.sidebar)}togglePollsTab(){const t=this.states;this.unreadPollsCount=0,this.pollsActive=!((null==t?void 0:t.activeSidebar)&&"polls"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pollsActive,sidebar:this.pollsActive?"polls":void 0,activeMoreMenu:!1})}handlePollsActiveChange(){this.pollsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPolls)return s(e,{"data-hidden":!0});const t=this.t("polls");return s(e,{title:t},0!==this.unreadPollsCount&&!this.pollsActive&&s("div",{class:"unread-count",part:"unread-count"},s("span",null,this.unreadPollsCount<=100?this.unreadPollsCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pollsActive},onClick:()=>this.togglePollsTab(),icon:this.iconPack.poll,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{h as rtk_polls_toggle}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as a,i as o}from"./p-D9rFUUCb.js";import{S as l}from"./p-Dy41dnX2.js";import"./p-Daj_55_i.js";var n=function(t,i,s,e){var a,o=arguments.length,l=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(l=(o<3?a(l):o>3?a(i,s,l):a(i,s))||l);return o>3&&l&&Object.defineProperty(i,s,l),l};const d=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.stageStatus="OFF_STAGE",this.state={label:"",disabled:!1,icon:""},this.stageCallback=async()=>{var t,i,s,e,a,o,l;const n=null===(t=this.meeting.stage)||void 0===t?void 0:t.status;"ON_STAGE"===n&&await(null===(s=null===(i=null==this?void 0:this.meeting)||void 0===i?void 0:i.stage)||void 0===s?void 0:s.leave()),"OFF_STAGE"===n&&(null===(a=null===(e=null==this?void 0:this.meeting)||void 0===e?void 0:e.stage)||void 0===a||a.requestAccess(),(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"ALLOWED"===(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)&&(this.states.activeJoinStage=!0,this.stateUpdate.emit({activeJoinStage:!0}))),"REQUESTED_TO_JOIN_STAGE"===n&&(null===(l=null===(o=null==this?void 0:this.meeting)||void 0===o?void 0:o.stage)||void 0===l||l.cancelRequestAccess())}}connectedCallback(){this.meetingChanged(this.meeting)}stageStatusHandler(t,i){this.stageStatus=i,"ACCEPTED_TO_JOIN_STAGE"===i&&(t.self.setupTracks({audio:!1,video:!1}),this.stateUpdate.emit({activeJoinStage:!0})),this.state=this.getState()}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",(t=>this.stageStatusHandler(this.meeting,t)))}meetingChanged(t){var i,s,e,a;t&&(this.stageStatus=null===(i=t.stage)||void 0===i?void 0:i.status,this.stageStatusHandler(t,null===(s=t.stage)||void 0===s?void 0:s.status),null===(a=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===a||a.on("stageStatusUpdate",(i=>this.stageStatusHandler(t,i))))}getState(){let t="",i="",s=!1;switch(this.stageStatus){case"ON_STAGE":i=this.iconPack.leave_stage,t=this.t("stage_request.leave_stage"),s=!1;break;case"ACCEPTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!0;break;case"REQUESTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.requested"),s=!1;break;default:i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!1}return{label:t,disabled:s,icon:i}}render(){return(null===(i=null==(t=this.meeting)?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"NOT_ALLOWED"!==(null===(a=null==t?void 0:t.self)||void 0===a?void 0:a.permissions.stageAccess)?s(e,{title:this.state.label},s("rtk-tooltip",{placement:"top",kind:"block",label:this.state.label,delay:600,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.state.label,icon:this.state.icon,onClick:this.stageCallback,disabled:this.state.disabled,showWarning:!1}))):s(e,{"data-hidden":!0});var t,i,a}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",void 0),n([l()],d.prototype,"states",void 0),n([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{d as rtk_stage_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as a,i as o}from"./p-DI7wP4CL.js";import{S as l}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";var n=function(t,i,s,e){var a,o=arguments.length,l=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(l=(o<3?a(l):o>3?a(i,s,l):a(i,s))||l);return o>3&&l&&Object.defineProperty(i,s,l),l};const d=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.stageStatus="OFF_STAGE",this.state={label:"",disabled:!1,icon:""},this.stageCallback=async()=>{var t,i,s,e,a,o,l;const n=null===(t=this.meeting.stage)||void 0===t?void 0:t.status;"ON_STAGE"===n&&await(null===(s=null===(i=null==this?void 0:this.meeting)||void 0===i?void 0:i.stage)||void 0===s?void 0:s.leave()),"OFF_STAGE"===n&&(null===(a=null===(e=null==this?void 0:this.meeting)||void 0===e?void 0:e.stage)||void 0===a||a.requestAccess(),(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"ALLOWED"===(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)&&(this.states.activeJoinStage=!0,this.stateUpdate.emit({activeJoinStage:!0}))),"REQUESTED_TO_JOIN_STAGE"===n&&(null===(l=null===(o=null==this?void 0:this.meeting)||void 0===o?void 0:o.stage)||void 0===l||l.cancelRequestAccess())}}connectedCallback(){this.meetingChanged(this.meeting)}stageStatusHandler(t,i){this.stageStatus=i,"ACCEPTED_TO_JOIN_STAGE"===i&&(t.self.setupTracks({audio:!1,video:!1}),this.stateUpdate.emit({activeJoinStage:!0})),this.state=this.getState()}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",(t=>this.stageStatusHandler(this.meeting,t)))}meetingChanged(t){var i,s,e,a;t&&(this.stageStatus=null===(i=t.stage)||void 0===i?void 0:i.status,this.stageStatusHandler(t,null===(s=t.stage)||void 0===s?void 0:s.status),null===(a=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===a||a.on("stageStatusUpdate",(i=>this.stageStatusHandler(t,i))))}getState(){let t="",i="",s=!1;switch(this.stageStatus){case"ON_STAGE":i=this.iconPack.leave_stage,t=this.t("stage_request.leave_stage"),s=!1;break;case"ACCEPTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!0;break;case"REQUESTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.requested"),s=!1;break;default:i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!1}return{label:t,disabled:s,icon:i}}render(){return(null===(i=null==(t=this.meeting)?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"NOT_ALLOWED"!==(null===(a=null==t?void 0:t.self)||void 0===a?void 0:a.permissions.stageAccess)?s(e,{title:this.state.label},s("rtk-tooltip",{placement:"top",kind:"block",label:this.state.label,delay:600,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.state.label,icon:this.state.icon,onClick:this.stageCallback,disabled:this.state.disabled,showWarning:!1}))):s(e,{"data-hidden":!0});var t,i,a}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",void 0),n([l()],d.prototype,"states",void 0),n([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{d as rtk_stage_toggle}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import{c as a,e as n,i as r}from"./p-D9rFUUCb.js";import"./p-C0vp-Q7v.js";import{S as o}from"./p-Dy41dnX2.js";import"./p-Daj_55_i.js";var c=function(t,i,s,e){var a,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(r=(n<3?a(r):n>3?a(i,s,r):a(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=a(),this.iconPack=n,this.t=r(),this.captionEnabled=!1,this.permissionsUpdateListener=()=>{var t;this.captionEnabled=null!==(t=this.meeting.self.permissions.transcriptionEnabled)&&void 0!==t&&t}}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.permissionsUpdateListener(),this.meeting.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}toggleCaptions(){this.stateUpdate.emit({activeCaptions:!this.states.activeCaptions,activeMoreMenu:!1})}render(){if(!this.meeting)return null;if(!this.captionEnabled)return null;const t=this.states.activeCaptions;return s(e,{tabIndex:0,role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleCaptions(),icon:t?this.iconPack.captionsOff:this.iconPack.captionsOn,label:this.t(t?"transcript.off":"transcript.on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([o()],l.prototype,"meeting",void 0),c([o()],l.prototype,"states",void 0),c([o()],l.prototype,"config",void 0),c([o()],l.prototype,"iconPack",void 0),c([o()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_caption_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import{c as a,e as n,i as o}from"./p-DI7wP4CL.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";var c=function(t,i,s,e){var a,n=arguments.length,o=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(o=(n<3?a(o):n>3?a(i,s,o):a(i,s))||o);return n>3&&o&&Object.defineProperty(i,s,o),o};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=a(),this.iconPack=n,this.t=o(),this.captionEnabled=!1,this.permissionsUpdateListener=()=>{var t;this.captionEnabled=null!==(t=this.meeting.self.permissions.transcriptionEnabled)&&void 0!==t&&t}}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.permissionsUpdateListener(),this.meeting.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}toggleCaptions(){this.stateUpdate.emit({activeCaptions:!this.states.activeCaptions,activeMoreMenu:!1})}render(){if(!this.meeting)return null;if(!this.captionEnabled)return null;const t=this.states.activeCaptions;return s(e,{tabIndex:0,role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleCaptions(),icon:t?this.iconPack.captionsOff:this.iconPack.captionsOn,label:this.t(t?"transcript.off":"transcript.on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([r()],l.prototype,"meeting",void 0),c([r()],l.prototype,"states",void 0),c([r()],l.prototype,"config",void 0),c([r()],l.prototype,"iconPack",void 0),c([r()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_caption_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,h as r,a}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as i,i as o}from"./p-DI7wP4CL.js";import{h as s}from"./p-BWNToYSb.js";import{S as e}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";import"./p-BFTU3MAI.js";var c=function(t,r,a,i){var o,s=arguments.length,e=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,a,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(e=(s<3?o(e):s>3?o(r,a,e):o(r,a))||e);return s>3&&e&&Object.defineProperty(r,a,e),e};const n=class{constructor(r){t(this,r),this.iconPack=i,this.t=o(),this.audioEnabled=!1,this.volume=0,this.onAudioUpdate=({audioEnabled:t,audioTrack:r})=>{var a;if(this.participant)if(null===(a=this.hark)||void 0===a||a.stop(),t&&r){const t=new MediaStream;t.addTrack(r),this.calcVolume(t),this.audioEnabled=!0}else this.volume=0,this.audioEnabled=!1}}connectedCallback(){this.participantChanged(this.participant)}disconnectedCallback(){var t,r;null===(t=this.hark)||void 0===t||t.stop(),null===(r=this.participant)||void 0===r||r.removeListener("audioUpdate",this.onAudioUpdate)}participantChanged(t){t&&(this.audioEnabled=t.audioEnabled,t.addListener("audioUpdate",this.onAudioUpdate))}calcVolume(t){this.hark=s(t,{play:!1,interval:100}),this.hark.on("volume_change",(t=>{const r=this.volume;let a=Math.round(10**(t/115)*10);a<3&&(a=0);let i=Math.round((2*r+a)/3);r!==i&&(this.volume=i)}))}render(){if(!this.meeting)return null;const t={meeting:this.meeting,size:this.size,config:this.config,states:this.states,iconPack:this.iconPack,t:this.t};let o="bar-0";return o=this.volume>5?"bar-5":this.volume<0?"bar-0":"bar-"+this.volume,r(a,null,r("div",{class:{"avatar-ctr":!0,speaking:this.audioEnabled,[o]:!0}},r("rtk-avatar",{participant:this.participant,size:this.size},!this.audioEnabled&&r("div",{class:"mic-icon"},r("rtk-icon",{icon:i.mic_off})))),r("rtk-name-tag",Object.assign({variant:"text",participant:this.participant},t)),r("slot",null))}static get watchers(){return{participant:[{participantChanged:0}]}}};c([e()],n.prototype,"meeting",void 0),c([e()],n.prototype,"config",void 0),c([e()],n.prototype,"states",void 0),c([e()],n.prototype,"iconPack",void 0),c([e()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:flex;flex-direction:column}.avatar-ctr{box-sizing:border-box;width:100%;flex:1 1 0%;padding:var(--rtk-space-1\\.5, 6px);border:2px solid transparent;border-radius:calc(var(--rtk-border-radius-xl, 40px) + var(--rtk-space-1\\.5, 6px))}.avatar-ctr.speaking{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.bar-0{box-shadow:none}.bar-1{box-shadow:0 0 4px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-2{box-shadow:0 0 8px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-3{box-shadow:0 0 16px 1px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-4{box-shadow:0 0 20px 3px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-5{box-shadow:0 0 24px 6px rgb(var(--rtk-colors-brand-500, 33 96 253))}rtk-avatar{aspect-ratio:1 / 1;height:100%;width:100%;position:relative;border-radius:var(--rtk-border-radius-xl, 40px)}rtk-name-tag{display:block;height:var(--rtk-space-10, 40px);width:100%;text-align:center;line-height:2.5rem}:host([size='sm']) .avatar-ctr{border-radius:calc(var(--rtk-border-radius-lg, 12px) + var(--rtk-space-1\\.5, 6px))}:host([size='sm']) rtk-name-tag{height:var(--rtk-space-7, 28px);line-height:1.75rem}:host([size='sm']) rtk-avatar{border-radius:var(--rtk-border-radius-lg, 12px)}.mic-icon{position:absolute;bottom:calc(var(--rtk-space-1, 4px) * -1);right:calc(var(--rtk-space-1, 4px) * -1);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.mic-icon rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) .mic-icon rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='md']) .mic-icon rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}";export{n as rtk_audio_tile}
@@ -1 +1 @@
1
- import{r,d as t,h as o,a}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e,i as s}from"./p-D9rFUUCb.js";import{g as c}from"./p-3h3Qc6lD.js";import{S as i}from"./p-Dy41dnX2.js";import"./p-Daj_55_i.js";var p=function(r,t,o,a){var e,s=arguments.length,c=s<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(r,t,o,a);else for(var i=r.length-1;i>=0;i--)(e=r[i])&&(c=(s<3?e(c):s>3?e(t,o,c):e(t,o))||c);return s>3&&c&&Object.defineProperty(t,o,c),c};const n=class{constructor(o){r(this,o),this.groupChanged=t(this,"rtkChatGroupChanged",7),this.unreadCounts={},this.groups=[],this.iconPack=e,this.t=s(),this.showParticipantsPanel=!1,this.query="",this.onScopeClick=r=>{this.showParticipantsPanel=!1,this.groupChanged.emit(r)}}toggleParticipants(){this.showParticipantsPanel=!this.showParticipantsPanel}getGroups(){return this.groups.filter((r=>r.name.toLowerCase().includes(this.query.toLowerCase())))}getName(){if(!this.selectedGroupId||"everyone"===this.selectedGroupId)return this.t("everyone");const r=this.groups.find((r=>r.userId===this.selectedGroupId));return r?r.name:this.t("everyone")}render(){const r=Object.keys(this.unreadCounts).reduce(((r,t)=>r+this.unreadCounts[t]),0);return o(a,null,o("div",{class:"chat-scope-selector"},this.showParticipantsPanel&&o("div",{class:"participants-container"},o("div",{class:"search",part:"search"},o("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),o("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),value:this.query,onInput:r=>{this.query=r.target.value},part:"search-input"})),o("ul",{class:"scope-list scrollbar"},""===this.query&&o("li",{class:"scope scope-special",onClick:()=>this.onScopeClick("everyone")},o("div",{class:"everyone-icon"},o("rtk-icon",{icon:this.iconPack.participants})),this.t("everyone"),this.unreadCounts.everyone>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,this.unreadCounts.everyone))),this.getGroups().map((r=>{const t=this.unreadCounts[c([this.selfUserId,r.userId])];return o("li",{class:"scope",onClick:()=>this.onScopeClick(r),key:r.userId},r.name,t>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,t)))})))),o("button",{onClick:()=>this.toggleParticipants()},o("span",null,`${this.t("to")} ${this.getName()}`," ",r>0&&o("div",{class:"unread-count selector"},o("span",null,r))),o("rtk-icon",{icon:this.showParticipantsPanel?this.iconPack.chevron_up:this.iconPack.chevron_down}))))}};p([i()],n.prototype,"iconPack",void 0),p([i()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;flex-direction:column}.chat-scope-selector{position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));z-index:10}.chat-scope-selector button{width:100%;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-4, 16px);display:flex;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:14px;cursor:pointer;height:var(--rtk-space-12, 48px)}.chat-scope-selector button span{display:flex;align-items:center;justify-content:flex-start}.chat-scope-selector button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-scope-selector .search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-0, 0px)}.chat-scope-selector .search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.chat-scope-selector .search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.chat-scope-selector .search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .participants-container{position:absolute;width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));top:var(--rtk-space-12, 48px);animation:0.3s slide-down ease}@keyframes slide-down{from{transform:translateY(-50px)}to{transform:translateY(0%)}}.chat-scope-selector .scope-list{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);list-style-type:none;padding-left:var(--rtk-space-0, 0px);padding-right:var(--rtk-space-0, 0px);overflow:auto;max-height:375px}.chat-scope-selector .scope-list .scope{position:relative;display:flex;flex-direction:row;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px)}.chat-scope-selector .scope-list .scope:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.chat-scope-selector .scope-list .scope-special{margin-top:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.chat-scope-selector .scope-list .everyone-icon>rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.chat-scope-selector .scope-list .everyone-icon{display:flex;height:100%;width:100%;align-items:center;justify-content:center;margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px}.unread-count.selector{position:unset;margin-left:var(--rtk-space-2, 8px)}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px)}";export{n as rtk_chat_selector_ui}
1
+ import{r,d as t,h as o,a}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e,i as s}from"./p-DI7wP4CL.js";import{g as c}from"./p-B91vjjSJ.js";import{S as i}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";var p=function(r,t,o,a){var e,s=arguments.length,c=s<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(r,t,o,a);else for(var i=r.length-1;i>=0;i--)(e=r[i])&&(c=(s<3?e(c):s>3?e(t,o,c):e(t,o))||c);return s>3&&c&&Object.defineProperty(t,o,c),c};const n=class{constructor(o){r(this,o),this.groupChanged=t(this,"rtkChatGroupChanged",7),this.unreadCounts={},this.groups=[],this.iconPack=e,this.t=s(),this.showParticipantsPanel=!1,this.query="",this.onScopeClick=r=>{this.showParticipantsPanel=!1,this.groupChanged.emit(r)}}toggleParticipants(){this.showParticipantsPanel=!this.showParticipantsPanel}getGroups(){return this.groups.filter((r=>r.name.toLowerCase().includes(this.query.toLowerCase())))}getName(){if(!this.selectedGroupId||"everyone"===this.selectedGroupId)return this.t("everyone");const r=this.groups.find((r=>r.userId===this.selectedGroupId));return r?r.name:this.t("everyone")}render(){const r=Object.keys(this.unreadCounts).reduce(((r,t)=>r+this.unreadCounts[t]),0);return o(a,null,o("div",{class:"chat-scope-selector"},this.showParticipantsPanel&&o("div",{class:"participants-container"},o("div",{class:"search",part:"search"},o("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),o("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),value:this.query,onInput:r=>{this.query=r.target.value},part:"search-input"})),o("ul",{class:"scope-list scrollbar"},""===this.query&&o("li",{class:"scope scope-special",onClick:()=>this.onScopeClick("everyone")},o("div",{class:"everyone-icon"},o("rtk-icon",{icon:this.iconPack.participants})),this.t("everyone"),this.unreadCounts.everyone>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,this.unreadCounts.everyone))),this.getGroups().map((r=>{const t=this.unreadCounts[c([this.selfUserId,r.userId])];return o("li",{class:"scope",onClick:()=>this.onScopeClick(r),key:r.userId},r.name,t>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,t)))})))),o("button",{onClick:()=>this.toggleParticipants()},o("span",null,`${this.t("to")} ${this.getName()}`," ",r>0&&o("div",{class:"unread-count selector"},o("span",null,r))),o("rtk-icon",{icon:this.showParticipantsPanel?this.iconPack.chevron_up:this.iconPack.chevron_down}))))}};p([i()],n.prototype,"iconPack",void 0),p([i()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;flex-direction:column}.chat-scope-selector{position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));z-index:10}.chat-scope-selector button{width:100%;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-4, 16px);display:flex;align-items:center;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:14px;cursor:pointer;height:var(--rtk-space-12, 48px)}.chat-scope-selector button span{display:flex;align-items:center;justify-content:flex-start}.chat-scope-selector button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-scope-selector .search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-0, 0px)}.chat-scope-selector .search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.chat-scope-selector .search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.chat-scope-selector .search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .participants-container{position:absolute;width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));top:var(--rtk-space-12, 48px);animation:0.3s slide-down ease}@keyframes slide-down{from{transform:translateY(-50px)}to{transform:translateY(0%)}}.chat-scope-selector .scope-list{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);list-style-type:none;padding-left:var(--rtk-space-0, 0px);padding-right:var(--rtk-space-0, 0px);overflow:auto;max-height:375px}.chat-scope-selector .scope-list .scope{position:relative;display:flex;flex-direction:row;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px)}.chat-scope-selector .scope-list .scope:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.chat-scope-selector .scope-list .scope-special{margin-top:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.chat-scope-selector .scope-list .everyone-icon>rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.chat-scope-selector .scope-list .everyone-icon{display:flex;height:100%;width:100%;align-items:center;justify-content:center;margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px}.unread-count.selector{position:unset;margin-left:var(--rtk-space-2, 8px)}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px)}";export{n as rtk_chat_selector_ui}
@@ -1 +1 @@
1
- import{r as t,d as s,h as i,a as e}from"./p-gJCRRBX0.js";import{e as h,i as a}from"./p-D9rFUUCb.js";import{S as r}from"./p-Dy41dnX2.js";var n=function(t,s,i,e){var h,a=arguments.length,r=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(h=t[n])&&(r=(a<3?h(r):a>3?h(s,i,r):h(s,i))||r);return a>3&&r&&Object.defineProperty(s,i,r),r};const o=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,c=class{constructor(i){t(this,i),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=h,this.t=a(),this.maxScreenShareCount=-1,this.screenShareCount=0,this.screenShareEnabled=!1,this.canScreenShare=!1,this.shareScreenPermission="NOT_REQUESTED",this.screenShareState={tooltipLabel:this.t("screenshare.start"),label:this.t("screenshare.start"),icon:this.iconPack.share_screen_start,classList:{},showWarning:!1,disable:!1},this.stageStatus="OFF_STAGE",this.screenShareListener=()=>{const t=this.meeting.participants.active.toArray().filter((t=>t.screenShareEnabled)).length;this.screenShareCount=t+(this.meeting.self.screenShareEnabled?1:0),this.screenShareEnabled=this.meeting.self.screenShareEnabled,this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}})},this.participantLeftListener=({screenShareEnabled:t})=>{t&&(this.screenShareCount=Math.max(this.screenShareCount-1,0),this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}}))},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare},this.mediaPermissionUpdateListener=({kind:t,message:s})=>{"screenshare"===t&&(this.shareScreenPermission=s,this.getState(),"COULD_NOT_START"===s&&this.apiError.emit({trace:this.t("screenshare.permissions"),message:this.t("screenshare.error.unknown")}),this.hasPermissionError())&&this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}})},this.reachedMaxScreenShares=()=>this.maxScreenShareCount>0&&this.screenShareCount>=this.maxScreenShareCount,this.toggleScreenShare=async()=>{var t;if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const s=null===(t=this.meeting)||void 0===t?void 0:t.self;this.screenShareEnabled?s.disableScreenShare():null==s||!this.canScreenShare||this.reachedMaxScreenShares()||this.hasPermissionError()||(this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0}),await s.enableScreenShare(),this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!1}),this.stateUpdate.emit({activeMoreMenu:!1}))}}connectedCallback(){o()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,s,i,e,h,a;null===(t=this.meeting)||void 0===t||t.participants.joined.removeListener("screenShareUpdate",this.screenShareListener),null===(s=this.meeting)||void 0===s||s.participants.joined.removeListener("participantLeft",this.participantLeftListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("screenShareUpdate",this.screenShareListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(h=this.meeting)||void 0===h?void 0:h.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:s,stage:i}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=s.config.maxScreenShareCount,this.screenShareEnabled=s.screenShareEnabled;let e=0;for(const s of t.participants.joined.toArray())s.screenShareEnabled&&e++;this.screenShareCount=e,this.getState(),t.__internals__.logger.info("rtkScreenShare::initialise",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount,maxAllowedCount:this.maxScreenShareCount}}}),this.stageStatus=t.stage.status,t.participants.joined.addListener("screenShareUpdate",this.screenShareListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),s.addListener("screenShareUpdate",this.screenShareListener),s.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==i||i.addListener("stageStatusUpdate",this.stageStatusListener)}}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){let t="",s="",i="",e={};const h=this.hasPermissionError()&&!this.screenShareEnabled,a=this.reachedMaxScreenShares()&&!this.screenShareEnabled,r="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!h?(s=this.t("screenshare.stop"),i=this.iconPack.share_screen_stop,e["red-icon"]=!0):(s=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(t=this.t("perm_sys_denied.screenshare"),e["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(t=this.t("perm_denied.screenshare"),e["red-icon"]=!0):t=s,a&&(t=this.t("screenshare.error.max_count")),r&&(t=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:t,label:s,icon:i,classList:e,disable:h||a,showWarning:h||a||r}}render(){return o()&&this.canScreenShare&&!["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus)?i(e,{title:this.screenShareState.label},i("rtk-tooltip",{placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.toggleScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}))):i(e,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{c as rtk_screen_share_toggle}
1
+ import{r as t,d as s,h as i,a as e}from"./p-gJCRRBX0.js";import{e as h,i as a}from"./p-DI7wP4CL.js";import{S as r}from"./p-BmRffDYW.js";var n=function(t,s,i,e){var h,a=arguments.length,r=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(h=t[n])&&(r=(a<3?h(r):a>3?h(s,i,r):h(s,i))||r);return a>3&&r&&Object.defineProperty(s,i,r),r};const o=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,c=class{constructor(i){t(this,i),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=h,this.t=a(),this.maxScreenShareCount=-1,this.screenShareCount=0,this.screenShareEnabled=!1,this.canScreenShare=!1,this.shareScreenPermission="NOT_REQUESTED",this.screenShareState={tooltipLabel:this.t("screenshare.start"),label:this.t("screenshare.start"),icon:this.iconPack.share_screen_start,classList:{},showWarning:!1,disable:!1},this.stageStatus="OFF_STAGE",this.screenShareListener=()=>{const t=this.meeting.participants.active.toArray().filter((t=>t.screenShareEnabled)).length;this.screenShareCount=t+(this.meeting.self.screenShareEnabled?1:0),this.screenShareEnabled=this.meeting.self.screenShareEnabled,this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}})},this.participantLeftListener=({screenShareEnabled:t})=>{t&&(this.screenShareCount=Math.max(this.screenShareCount-1,0),this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}}))},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare},this.mediaPermissionUpdateListener=({kind:t,message:s})=>{"screenshare"===t&&(this.shareScreenPermission=s,this.getState(),"COULD_NOT_START"===s&&this.apiError.emit({trace:this.t("screenshare.permissions"),message:this.t("screenshare.error.unknown")}),this.hasPermissionError())&&this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}})},this.reachedMaxScreenShares=()=>this.maxScreenShareCount>0&&this.screenShareCount>=this.maxScreenShareCount,this.toggleScreenShare=async()=>{var t;if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const s=null===(t=this.meeting)||void 0===t?void 0:t.self;this.screenShareEnabled?s.disableScreenShare():null==s||!this.canScreenShare||this.reachedMaxScreenShares()||this.hasPermissionError()||(this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0}),await s.enableScreenShare(),this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!1}),this.stateUpdate.emit({activeMoreMenu:!1}))}}connectedCallback(){o()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,s,i,e,h,a;null===(t=this.meeting)||void 0===t||t.participants.joined.removeListener("screenShareUpdate",this.screenShareListener),null===(s=this.meeting)||void 0===s||s.participants.joined.removeListener("participantLeft",this.participantLeftListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("screenShareUpdate",this.screenShareListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(h=this.meeting)||void 0===h?void 0:h.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:s,stage:i}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=s.config.maxScreenShareCount,this.screenShareEnabled=s.screenShareEnabled;let e=0;for(const s of t.participants.joined.toArray())s.screenShareEnabled&&e++;this.screenShareCount=e,this.getState(),t.__internals__.logger.info("rtkScreenShare::initialise",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount,maxAllowedCount:this.maxScreenShareCount}}}),this.stageStatus=t.stage.status,t.participants.joined.addListener("screenShareUpdate",this.screenShareListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),s.addListener("screenShareUpdate",this.screenShareListener),s.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==i||i.addListener("stageStatusUpdate",this.stageStatusListener)}}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){let t="",s="",i="",e={};const h=this.hasPermissionError()&&!this.screenShareEnabled,a=this.reachedMaxScreenShares()&&!this.screenShareEnabled,r="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!h?(s=this.t("screenshare.stop"),i=this.iconPack.share_screen_stop,e["red-icon"]=!0):(s=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(t=this.t("perm_sys_denied.screenshare"),e["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(t=this.t("perm_denied.screenshare"),e["red-icon"]=!0):t=s,a&&(t=this.t("screenshare.error.max_count")),r&&(t=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:t,label:s,icon:i,classList:e,disable:h||a,showWarning:h||a||r}}render(){return o()&&this.canScreenShare&&!["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus)?i(e,{title:this.screenShareState.label},i("rtk-tooltip",{placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.toggleScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}))):i(e,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{c as rtk_screen_share_toggle}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{e,i as o}from"./p-D9rFUUCb.js";import{S as n}from"./p-Dy41dnX2.js";var r=function(t,i,s,a){var e,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,a);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(o<3?e(n):o>3?e(i,s,n):e(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=o(),this.aiActive=!1,this.toggleAI=()=>{const t=this.states;this.aiActive=!((null==t?void 0:t.activeSidebar)&&"ai"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.aiActive,sidebar:this.aiActive?"ai":void 0,activeMoreMenu:!1})}}connectedCallback(){this.statesChanged(this.states)}statesChanged(t){null!=t&&(this.aiActive=!0===t.activeSidebar&&"ai"===t.sidebar)}render(){var t,i;if(!this.meeting)return null;const e=this.t("ai.meeting_ai");return(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions).transcriptionEnabled?s(a,{title:e},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.aiActive},onClick:this.toggleAI,icon:this.iconPack.meeting_ai,label:e,variant:this.variant,brandIcon:!0})):s(a,{"data-hidden":!0})}static get watchers(){return{states:[{statesChanged:0}]}}};r([n()],c.prototype,"states",void 0),r([n()],c.prototype,"meeting",void 0),r([n()],c.prototype,"iconPack",void 0),r([n()],c.prototype,"t",void 0),c.style=":host{display:block}:host([data-hidden]){display:none}";export{c as rtk_ai_toggle}
1
+ import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{e,i as o}from"./p-DI7wP4CL.js";import{S as n}from"./p-BmRffDYW.js";var r=function(t,i,s,a){var e,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,a);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(o<3?e(n):o>3?e(i,s,n):e(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=o(),this.aiActive=!1,this.toggleAI=()=>{const t=this.states;this.aiActive=!((null==t?void 0:t.activeSidebar)&&"ai"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.aiActive,sidebar:this.aiActive?"ai":void 0,activeMoreMenu:!1})}}connectedCallback(){this.statesChanged(this.states)}statesChanged(t){null!=t&&(this.aiActive=!0===t.activeSidebar&&"ai"===t.sidebar)}render(){var t,i;if(!this.meeting)return null;const e=this.t("ai.meeting_ai");return(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions).transcriptionEnabled?s(a,{title:e},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.aiActive},onClick:this.toggleAI,icon:this.iconPack.meeting_ai,label:e,variant:this.variant,brandIcon:!0})):s(a,{"data-hidden":!0})}static get watchers(){return{states:[{statesChanged:0}]}}};r([n()],c.prototype,"states",void 0),r([n()],c.prototype,"meeting",void 0),r([n()],c.prototype,"iconPack",void 0),r([n()],c.prototype,"t",void 0),c.style=":host{display:block}:host([data-hidden]){display:none}";export{c as rtk_ai_toggle}
@@ -1 +1 @@
1
- import{r as t,h as i,a as s,g as e}from"./p-gJCRRBX0.js";import{c as a,e as r,i as h}from"./p-D9rFUUCb.js";import{d as n}from"./p-CmmyVCoN.js";import{R as d}from"./p-CTFO-5XH.js";import{S as o}from"./p-Dy41dnX2.js";var l=function(t,i,s,e){var a,r=arguments.length,h=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(h=(r<3?a(h):r>3?a(i,s,h):a(i,s))||h);return r>3&&h&&Object.defineProperty(i,s,h),h};const p=class{constructor(i){t(this,i),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.aspectRatio="16:9",this.gap=8,this.config=a(),this.iconPack=r,this.t=h(),this.gridSize=n}componentWillLoad(){this.initialised=!1,this.screenShareParticipantsChanged(this.screenShareParticipants),this.pluginsChanged(this.plugins),this.initialised=!0}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)}meetingChanged(t){var i,s,e,a;null!=t&&(null!=(null===(i=t.meta)||void 0===i?void 0:i.selfActiveTab)&&this.onActiveTabUpdate(null===(s=t.meta.selfActiveTab)||void 0===s?void 0:s.type,null===(e=t.meta.selfActiveTab)||void 0===e?void 0:e.id),this.activeTabUpdateListener=t=>{this.onActiveTabUpdate(null==t?void 0:t.type,null==t?void 0:t.id)},null===(a=t.meta)||void 0===a||a.addListener("activeTabUpdate",this.activeTabUpdateListener))}screenShareParticipantsChanged(t=[]){(this.initialised||null==this.activeTab)&&(null==this.activeTab&&t.length>0?this.setActiveTab({type:"screenshare",participant:t[0]}):this.revalidateActiveTab())}pluginsChanged(t){(this.initialised||null==this.activeTab)&&(t.length>0?this.setActiveTab({type:"plugin",plugin:t[t.length-1]}):this.revalidateActiveTab())}revalidateActiveTab(){if(null!=this.activeTab)if("screenshare"===this.activeTab.type){const{participant:t}=this.activeTab;this.screenShareParticipants.some((i=>i.id===t.id))||this.reassignActiveTab()}else{const{plugin:t}=this.activeTab;this.plugins.some((i=>i.id===t.id))||this.reassignActiveTab()}}setActiveTab(t,i=!0){var s;this.activeTab=t,i&&(null===(s=this.meeting.meta)||void 0===s||s.setSelfActiveTab({type:t.type,id:"screenshare"===t.type?t.participant.id:t.plugin.id},0))}reassignActiveTab(){this.screenShareParticipants.length>0?this.setActiveTab({type:"screenshare",participant:this.screenShareParticipants[0]}):this.plugins.length>0&&this.setActiveTab({type:"plugin",plugin:this.plugins[this.plugins.length-1]})}onActiveTabUpdate(t,i){if(null!=t&&null!=i)switch(t){case"plugin":const t=this.plugins.find((t=>t.id===i));null!=t&&this.setActiveTab({type:"plugin",plugin:t},!1);break;case"screenshare":const s=this.screenShareParticipants.find((t=>t.id===i));null!=s&&this.setActiveTab({type:"screenshare",participant:s},!1)}}getTabs(){const t=this.screenShareParticipants.map((t=>({type:"screenshare",participant:t}))),i=this.plugins.map((t=>({type:"plugin",plugin:t})));return t.concat(i)}render(){var t,e;if(!this.meeting)return null;const a={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t};return i(s,null,i("main",{id:"main-view",part:"main-view"},(null===(t=this.getTabs())||void 0===t?void 0:t.length)>1&&i("rtk-tab-bar",Object.assign({activeTab:this.activeTab,tabs:this.getTabs(),onTabChange:t=>this.setActiveTab(t.detail)},a)),i("div",{id:"tabs",key:"tabs"},this.screenShareParticipants.map((t=>{var s,e;return i(d,{element:"rtk-screenshare-view",defaults:a,props:{participant:t,key:t.id,style:{display:"screenshare"===(null===(s=this.activeTab)||void 0===s?void 0:s.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.participant.id)===t.id?"flex":"none"}},childProps:{participant:t,isScreenShare:!0},deepProps:!0})})),this.plugins.map((t=>{var s,e;return i("rtk-plugin-main",Object.assign({},a,{plugin:t,key:t.id,style:{display:"plugin"===(null===(s=this.activeTab)||void 0===s?void 0:s.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.plugin.id)===t.id?"flex":"none"}}))})))),i(d,{element:"rtk-mixed-grid",defaults:a,childProps:{part:"participants-grid",class:this.gridSize.mixed?`grid-width-${this.gridSize.mixed}`:"grid-width-lg",participants:this.participants,pinnedParticipants:this.pinnedParticipants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,aspectRatio:this.aspectRatio,gap:this.gap,size:"AUDIO_ROOM"===(null===(e=this.meeting.meta)||void 0===e?void 0:e.viewType)?"md":"sm",layout:"row"},onlyChildren:!0}))}get host(){return e(this)}static get watchers(){return{meeting:[{meetingChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}]}}};l([o()],p.prototype,"meeting",void 0),l([o()],p.prototype,"states",void 0),l([o()],p.prototype,"config",void 0),l([o()],p.prototype,"iconPack",void 0),l([o()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%;display:flex}main{display:flex;flex:1 1 0%;padding-left:var(--rtk-space-4, 16px)}:host([layout='column']) main{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}main rtk-tab-bar{margin-right:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column}main #tabs{height:100%;flex:1 1 0%}rtk-button{z-index:10}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}:host([size='sm']){flex-direction:column}:host([size='sm']) .grid-width-lg,:host([size='sm']) .grid-width-md{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:33.333333%;width:100%;max-width:100%}:host([size='sm']) main{display:flex;flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{height:var(--rtk-space-12, 48px);width:100%;flex-direction:row}:host([size='sm']) #tabs{flex:1 1 0%}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}:host([layout='column']){flex-direction:column}:host([layout='column']) main{display:flex;flex:1 1 0%}:host([layout='column']) .grid-width-lg,:host([layout='column']) .grid-width-md{height:50%;max-width:100%;width:100%}:host([layout='column']) .grid-width-sm{height:33.333333%;max-width:100%;width:100%}@media (orientation: portrait){:host{flex-direction:column}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host .grid-width-md{height:33.333333%;width:100%;max-width:100%}:host .grid-width-sm{height:25%;width:100%;max-width:100%}:host main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='md']) main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host rtk-tab-bar{height:var(--rtk-space-16, 64px);width:100%;flex-direction:row}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}@media (orientation: landscape){:host{flex-direction:row}:host([size='sm']){flex-direction:row}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:100%;max-height:100%;width:16.666667%}:host([size='sm']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}:host([size='md']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{margin-right:var(--rtk-space-2, 8px);height:100%;width:var(--rtk-space-12, 48px);flex-direction:column}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}";export{p as rtk_mixed_grid}
1
+ import{r as t,h as i,a as s,g as e}from"./p-gJCRRBX0.js";import{c as a,e as r,i as h}from"./p-DI7wP4CL.js";import{d as n}from"./p-CmmyVCoN.js";import{R as o}from"./p-CTFO-5XH.js";import{S as d}from"./p-BmRffDYW.js";var l=function(t,i,s,e){var a,r=arguments.length,h=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(h=(r<3?a(h):r>3?a(i,s,h):a(i,s))||h);return r>3&&h&&Object.defineProperty(i,s,h),h};const p=class{constructor(i){t(this,i),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.aspectRatio="16:9",this.gap=8,this.config=a(),this.iconPack=r,this.t=h(),this.gridSize=n}componentWillLoad(){this.initialised=!1,this.screenShareParticipantsChanged(this.screenShareParticipants),this.pluginsChanged(this.plugins),this.initialised=!0}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)}meetingChanged(t){var i,s,e,a;null!=t&&(null!=(null===(i=t.meta)||void 0===i?void 0:i.selfActiveTab)&&this.onActiveTabUpdate(null===(s=t.meta.selfActiveTab)||void 0===s?void 0:s.type,null===(e=t.meta.selfActiveTab)||void 0===e?void 0:e.id),this.activeTabUpdateListener=t=>{this.onActiveTabUpdate(null==t?void 0:t.type,null==t?void 0:t.id)},null===(a=t.meta)||void 0===a||a.addListener("activeTabUpdate",this.activeTabUpdateListener))}screenShareParticipantsChanged(t=[]){(this.initialised||null==this.activeTab)&&(null==this.activeTab&&t.length>0?this.setActiveTab({type:"screenshare",participant:t[0]}):this.revalidateActiveTab())}pluginsChanged(t){(this.initialised||null==this.activeTab)&&(t.length>0?this.setActiveTab({type:"plugin",plugin:t[t.length-1]}):this.revalidateActiveTab())}revalidateActiveTab(){if(null!=this.activeTab)if("screenshare"===this.activeTab.type){const{participant:t}=this.activeTab;this.screenShareParticipants.some((i=>i.id===t.id))||this.reassignActiveTab()}else{const{plugin:t}=this.activeTab;this.plugins.some((i=>i.id===t.id))||this.reassignActiveTab()}}setActiveTab(t,i=!0){var s;this.activeTab=t,i&&(null===(s=this.meeting.meta)||void 0===s||s.setSelfActiveTab({type:t.type,id:"screenshare"===t.type?t.participant.id:t.plugin.id},0))}reassignActiveTab(){this.screenShareParticipants.length>0?this.setActiveTab({type:"screenshare",participant:this.screenShareParticipants[0]}):this.plugins.length>0&&this.setActiveTab({type:"plugin",plugin:this.plugins[this.plugins.length-1]})}onActiveTabUpdate(t,i){if(null!=t&&null!=i)switch(t){case"plugin":const t=this.plugins.find((t=>t.id===i));null!=t&&this.setActiveTab({type:"plugin",plugin:t},!1);break;case"screenshare":const s=this.screenShareParticipants.find((t=>t.id===i));null!=s&&this.setActiveTab({type:"screenshare",participant:s},!1)}}getTabs(){const t=this.screenShareParticipants.map((t=>({type:"screenshare",participant:t}))),i=this.plugins.map((t=>({type:"plugin",plugin:t})));return t.concat(i)}render(){var t,e;if(!this.meeting)return null;const a={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t};return i(s,null,i("main",{id:"main-view",part:"main-view"},(null===(t=this.getTabs())||void 0===t?void 0:t.length)>1&&i("rtk-tab-bar",Object.assign({activeTab:this.activeTab,tabs:this.getTabs(),onTabChange:t=>this.setActiveTab(t.detail)},a)),i("div",{id:"tabs",key:"tabs"},this.screenShareParticipants.map((t=>{var s,e;return i(o,{element:"rtk-screenshare-view",defaults:a,props:{participant:t,key:t.id,style:{display:"screenshare"===(null===(s=this.activeTab)||void 0===s?void 0:s.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.participant.id)===t.id?"flex":"none"}},childProps:{participant:t,isScreenShare:!0},deepProps:!0})})),this.plugins.map((t=>{var s,e;return i("rtk-plugin-main",Object.assign({},a,{plugin:t,key:t.id,style:{display:"plugin"===(null===(s=this.activeTab)||void 0===s?void 0:s.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.plugin.id)===t.id?"flex":"none"}}))})))),i(o,{element:"rtk-mixed-grid",defaults:a,childProps:{part:"participants-grid",class:this.gridSize.mixed?`grid-width-${this.gridSize.mixed}`:"grid-width-lg",participants:this.participants,pinnedParticipants:this.pinnedParticipants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,aspectRatio:this.aspectRatio,gap:this.gap,size:"AUDIO_ROOM"===(null===(e=this.meeting.meta)||void 0===e?void 0:e.viewType)?"md":"sm",layout:"row"},onlyChildren:!0}))}get host(){return e(this)}static get watchers(){return{meeting:[{meetingChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}]}}};l([d()],p.prototype,"meeting",void 0),l([d()],p.prototype,"states",void 0),l([d()],p.prototype,"config",void 0),l([d()],p.prototype,"iconPack",void 0),l([d()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%;display:flex}main{display:flex;flex:1 1 0%;padding-left:var(--rtk-space-4, 16px)}:host([layout='column']) main{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}main rtk-tab-bar{margin-right:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column}main #tabs{height:100%;flex:1 1 0%}rtk-button{z-index:10}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}:host([size='sm']){flex-direction:column}:host([size='sm']) .grid-width-lg,:host([size='sm']) .grid-width-md{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:33.333333%;width:100%;max-width:100%}:host([size='sm']) main{display:flex;flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{height:var(--rtk-space-12, 48px);width:100%;flex-direction:row}:host([size='sm']) #tabs{flex:1 1 0%}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}:host([layout='column']){flex-direction:column}:host([layout='column']) main{display:flex;flex:1 1 0%}:host([layout='column']) .grid-width-lg,:host([layout='column']) .grid-width-md{height:50%;max-width:100%;width:100%}:host([layout='column']) .grid-width-sm{height:33.333333%;max-width:100%;width:100%}@media (orientation: portrait){:host{flex-direction:column}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host .grid-width-md{height:33.333333%;width:100%;max-width:100%}:host .grid-width-sm{height:25%;width:100%;max-width:100%}:host main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='md']) main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host rtk-tab-bar{height:var(--rtk-space-16, 64px);width:100%;flex-direction:row}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}@media (orientation: landscape){:host{flex-direction:row}:host([size='sm']){flex-direction:row}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:100%;max-height:100%;width:16.666667%}:host([size='sm']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}:host([size='md']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{margin-right:var(--rtk-space-2, 8px);height:100%;width:var(--rtk-space-12, 48px);flex-direction:column}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}";export{p as rtk_mixed_grid}
@@ -1 +1 @@
1
- import{r as t,h as e,a}from"./p-gJCRRBX0.js";import{a as r,f as s}from"./p-vBD2htwQ.js";import{e as i,i as o}from"./p-D9rFUUCb.js";import{S as n}from"./p-Dy41dnX2.js";var c=function(t,e,a,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const l=class{constructor(e){t(this,e),this.isScreenShare=!1,this.variant="default",this.iconPack=i,this.t=o(),this.length=13}sizeChanged(t){this.length="sm"===t?8:13}formatNameTag(t,e){return this.isScreenShare?e?`${this.t("screen")} - ${r(t,this.length-3)} (${this.t("you")})`:`${this.t("screen")} - ${r(t,this.length)}`:e?`${r(t,this.length-3)} (${this.t("you")})`:r(t,this.length)}render(){var t,r,i;const o=s((null===(t=this.participant)||void 0===t?void 0:t.name)||""),n=(null===(r=this.participant)||void 0===r?void 0:r.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id);return e(a,{key:"9040aabe429bea4cfcdc7a6635eeb336f2154961",title:o},e("slot",{key:"f66091f5af1914e91e14415a4758f9bdc15c0c85",name:"start"}),e("span",{key:"241ca42f60b258c5b3c20f423e9ade272f8f5a8b",class:"name"},this.formatNameTag(o,n)),e("slot",{key:"7f6f9b8e5c2ea76042a0ff812458af6ed702b43d",name:"end"}))}static get watchers(){return{size:[{sizeChanged:0}]}}};c([n()],l.prototype,"meeting",void 0),c([n()],l.prototype,"iconPack",void 0),c([n()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}span.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}::slotted(rtk-audio-visualizer[slot='start']){margin-right:var(--rtk-space-1\\.5, 6px)}::slotted(rtk-audio-visualizer[slot='end']){margin-left:var(--rtk-space-1\\.5, 6px)}:host([size='sm']){font-size:12px;--tw-bg-opacity:0.6}:host([variant='text']){background-color:transparent;padding:var(--rtk-space-0, 0px)}";export{l as rtk_name_tag}
1
+ import{r as t,h as e,a}from"./p-gJCRRBX0.js";import{a as r,f as s}from"./p-vBD2htwQ.js";import{e as i,i as o}from"./p-DI7wP4CL.js";import{S as n}from"./p-BmRffDYW.js";var c=function(t,e,a,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const l=class{constructor(e){t(this,e),this.isScreenShare=!1,this.variant="default",this.iconPack=i,this.t=o(),this.length=13}sizeChanged(t){this.length="sm"===t?8:13}formatNameTag(t,e){return this.isScreenShare?e?`${this.t("screen")} - ${r(t,this.length-3)} (${this.t("you")})`:`${this.t("screen")} - ${r(t,this.length)}`:e?`${r(t,this.length-3)} (${this.t("you")})`:r(t,this.length)}render(){var t,r,i;const o=s((null===(t=this.participant)||void 0===t?void 0:t.name)||""),n=(null===(r=this.participant)||void 0===r?void 0:r.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id);return e(a,{key:"9040aabe429bea4cfcdc7a6635eeb336f2154961",title:o},e("slot",{key:"f66091f5af1914e91e14415a4758f9bdc15c0c85",name:"start"}),e("span",{key:"241ca42f60b258c5b3c20f423e9ade272f8f5a8b",class:"name"},this.formatNameTag(o,n)),e("slot",{key:"7f6f9b8e5c2ea76042a0ff812458af6ed702b43d",name:"end"}))}static get watchers(){return{size:[{sizeChanged:0}]}}};c([n()],l.prototype,"meeting",void 0),c([n()],l.prototype,"iconPack",void 0),c([n()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}span.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}::slotted(rtk-audio-visualizer[slot='start']){margin-right:var(--rtk-space-1\\.5, 6px)}::slotted(rtk-audio-visualizer[slot='end']){margin-left:var(--rtk-space-1\\.5, 6px)}:host([size='sm']){font-size:12px;--tw-bg-opacity:0.6}:host([variant='text']){background-color:transparent;padding:var(--rtk-space-0, 0px)}";export{l as rtk_name_tag}