@cloudflare/realtimekit-ui 1.0.9-staging.1 → 1.0.9-staging.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (592) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-23aacf34.js → TextMessage-4f9299ff.js} +1 -1
  3. package/dist/cjs/{chat-e37da504.js → chat-04fd67b4.js} +1 -1
  4. package/dist/cjs/{debounce-5ee900cc.js → debounce-a3e0d9e7.js} +1 -1
  5. package/dist/cjs/{index-fb18156f.js → index-8d07e125.js} +1 -1
  6. package/dist/cjs/index.cjs.js +4 -4
  7. package/dist/cjs/{merge-ca0928c5.js → merge-73e2770b.js} +1 -1
  8. package/dist/cjs/{notification-822d615a.js → notification-6f17add8.js} +2 -2
  9. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  10. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  11. package/dist/cjs/rtk-ai.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-avatar_54.cjs.entry.js +14 -18
  16. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  17. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  18. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  19. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +4 -4
  21. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  22. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  23. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +10 -14
  24. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  27. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  42. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
  51. package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +3 -3
  54. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  55. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +3 -3
  58. package/dist/cjs/rtk-plugins_2.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +3 -3
  61. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  62. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  64. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  66. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  68. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-sidebar.cjs.entry.js +3 -3
  71. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  78. package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
  80. package/dist/cjs/{sidebar-89748c6c.js → sidebar-2ad915b1.js} +1 -1
  81. package/dist/cjs/{ui-store-e096fdc6.js → ui-store-1cb28da8.js} +72 -79
  82. package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
  83. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
  84. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  85. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  86. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +2 -2
  87. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +2 -2
  88. package/dist/collection/components/rtk-avatar/rtk-avatar.js +2 -2
  89. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +7 -11
  90. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
  91. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +2 -2
  92. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +2 -2
  93. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
  94. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
  95. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
  96. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
  97. package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +1 -1
  98. package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +1 -1
  99. package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +1 -1
  100. package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +1 -1
  101. package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +3 -3
  102. package/dist/collection/components/rtk-chat/rtk-chat.js +3 -3
  103. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
  104. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
  105. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
  106. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
  107. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
  108. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
  109. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
  110. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +7 -9
  111. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  112. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  113. package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
  114. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  115. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  116. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  117. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
  118. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  119. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  120. package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
  121. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  122. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  123. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  124. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  125. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
  126. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  127. package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
  128. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +2 -2
  129. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
  130. package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
  131. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
  132. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  133. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  134. package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
  135. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
  136. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  137. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
  138. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  139. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
  140. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
  141. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
  142. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
  143. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  144. package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
  145. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
  146. package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
  147. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  148. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  149. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
  150. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
  151. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
  152. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
  153. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
  154. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  155. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +2 -2
  156. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +2 -2
  157. package/dist/collection/components/rtk-notification/rtk-notification.js +1 -1
  158. package/dist/collection/components/rtk-notifications/rtk-notifications.js +1 -1
  159. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  160. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
  161. package/dist/collection/components/rtk-participant/rtk-participant.js +2 -2
  162. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
  163. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +2 -2
  164. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +3 -3
  165. package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
  166. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  167. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  168. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
  169. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
  170. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
  171. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
  172. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  173. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
  174. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
  175. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  176. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
  177. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  178. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
  179. package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
  180. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
  181. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  182. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
  183. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
  184. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +2 -2
  185. package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
  186. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
  187. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
  188. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +1 -1
  189. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +1 -1
  190. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +1 -1
  191. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
  192. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +1 -1
  193. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  194. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +1 -1
  195. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
  196. package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
  197. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
  198. package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
  199. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
  200. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +1 -1
  201. package/dist/collection/components/rtk-text-message/rtk-text-message.js +1 -1
  202. package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
  203. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  204. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
  205. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
  206. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +1 -1
  207. package/dist/collection/utils/flags.js +1 -7
  208. package/dist/components/index.js +6 -6
  209. package/dist/components/{p-1d32657e.js → p-00ebd1dc.js} +2 -2
  210. package/dist/components/{p-58e7fbf9.js → p-01a50790.js} +2 -2
  211. package/dist/components/{p-bf700149.js → p-037e572f.js} +73 -79
  212. package/dist/components/{p-bdb2d1f9.js → p-03fe0979.js} +2 -2
  213. package/dist/components/{p-0a74af4f.js → p-04aaec79.js} +11 -11
  214. package/dist/components/{p-4d154773.js → p-0a7f6a8a.js} +2 -2
  215. package/dist/components/{p-5d3d3990.js → p-0c11d195.js} +6 -6
  216. package/dist/components/{p-2e3b02b3.js → p-0e07ea51.js} +10 -10
  217. package/dist/components/{p-61e6e7be.js → p-12437468.js} +2 -2
  218. package/dist/components/{p-42672814.js → p-12d2b558.js} +2 -2
  219. package/dist/components/{p-4db644b9.js → p-17867774.js} +2 -2
  220. package/dist/components/{p-23ab84b1.js → p-1986022b.js} +2 -2
  221. package/dist/components/{p-a3948b63.js → p-1a60f5b0.js} +2 -2
  222. package/dist/components/{p-34688fcf.js → p-1d29b7c3.js} +10 -10
  223. package/dist/components/{p-1425697e.js → p-22a734a8.js} +4 -4
  224. package/dist/components/{p-e248d815.js → p-22d9d3ff.js} +5 -5
  225. package/dist/components/{p-00b48a12.js → p-26055088.js} +2 -2
  226. package/dist/components/{p-4ac416da.js → p-2b955eb0.js} +4 -4
  227. package/dist/components/{p-99a61e45.js → p-3042f998.js} +22 -22
  228. package/dist/components/{p-2ecff14a.js → p-3051f5f5.js} +2 -2
  229. package/dist/components/{p-4a194b9f.js → p-314b1504.js} +2 -2
  230. package/dist/components/{p-f92f9ef2.js → p-3438fd71.js} +2 -2
  231. package/dist/components/{p-8dd72d80.js → p-34b580c9.js} +2 -2
  232. package/dist/components/{p-7827c27d.js → p-39a6a6a6.js} +6 -6
  233. package/dist/components/{p-0599a377.js → p-3a80e3ab.js} +4 -4
  234. package/dist/components/{p-a960414f.js → p-3df2211d.js} +2 -2
  235. package/dist/components/{p-00cddac4.js → p-3fe1bb0d.js} +8 -8
  236. package/dist/components/{p-221a4186.js → p-40c5ca62.js} +2 -2
  237. package/dist/components/{p-517eed51.js → p-4772f368.js} +2 -2
  238. package/dist/components/{p-9c762c7c.js → p-49967150.js} +3 -3
  239. package/dist/components/{p-8aa0a20a.js → p-4c8cff29.js} +3 -3
  240. package/dist/components/{p-3260a0fe.js → p-4edd666b.js} +6 -6
  241. package/dist/components/{p-e16baa62.js → p-511ed3f8.js} +2 -2
  242. package/dist/components/{p-cc3e758a.js → p-52b090fc.js} +2 -2
  243. package/dist/components/{p-aceb63f7.js → p-54dba22f.js} +2 -2
  244. package/dist/components/{p-4163391e.js → p-551bed08.js} +3 -3
  245. package/dist/components/{p-dcb240cb.js → p-65b9931e.js} +2 -2
  246. package/dist/components/{p-66eda965.js → p-66bae0d9.js} +2 -2
  247. package/dist/components/{p-d9e57455.js → p-6a47e2ee.js} +12 -12
  248. package/dist/components/{p-6f1af797.js → p-6bd3b767.js} +1 -1
  249. package/dist/components/{p-b15d2763.js → p-6d49cf9f.js} +2 -2
  250. package/dist/components/{p-9645c983.js → p-6fe2233b.js} +3 -3
  251. package/dist/components/{p-f7bea1a7.js → p-7119673c.js} +2 -2
  252. package/dist/components/{p-8c5e42ea.js → p-72346e7f.js} +2 -2
  253. package/dist/components/{p-9db751ca.js → p-731ee854.js} +2 -2
  254. package/dist/components/{p-2ec901a0.js → p-7a336667.js} +4 -4
  255. package/dist/components/{p-cfbd1c8a.js → p-7f0ee3c6.js} +2 -2
  256. package/dist/components/{p-ba1f008f.js → p-840ef7fe.js} +4 -4
  257. package/dist/components/{p-54c33b11.js → p-897a04be.js} +4 -4
  258. package/dist/components/{p-176c5195.js → p-9149c02e.js} +2 -2
  259. package/dist/components/{p-c7ca0840.js → p-91a9efcf.js} +2 -2
  260. package/dist/components/{p-b3f547d5.js → p-9730c398.js} +3 -3
  261. package/dist/components/{p-750e6dd1.js → p-989d36e2.js} +6 -6
  262. package/dist/components/{p-073066d9.js → p-9ea5df8f.js} +2 -2
  263. package/dist/components/{p-82b52967.js → p-a09aefba.js} +2 -2
  264. package/dist/components/{p-9cc8f284.js → p-a5a40d7e.js} +2 -2
  265. package/dist/components/{p-e727691a.js → p-a9d5d165.js} +3 -3
  266. package/dist/components/{p-963afa79.js → p-aba9b612.js} +4 -4
  267. package/dist/components/{p-bbe38af7.js → p-af35ac31.js} +1 -1
  268. package/dist/components/{p-3de94128.js → p-b373754d.js} +1 -1
  269. package/dist/components/{p-bfd30b77.js → p-b804a5f5.js} +7 -7
  270. package/dist/components/{p-53ff409b.js → p-bccc21f8.js} +2 -2
  271. package/dist/components/{p-c46fca60.js → p-c3582bf3.js} +7 -7
  272. package/dist/components/{p-1fb97660.js → p-c40166a9.js} +5 -5
  273. package/dist/components/{p-bcd9ae7c.js → p-c5dfd548.js} +50 -50
  274. package/dist/components/{p-d926df40.js → p-c663f9b1.js} +2 -2
  275. package/dist/components/{p-a05c75f3.js → p-c7413ac8.js} +2 -2
  276. package/dist/components/{p-9de3508b.js → p-c9a7cf06.js} +4 -4
  277. package/dist/components/{p-5183c437.js → p-cc5ecd67.js} +2 -2
  278. package/dist/components/{p-c46abf5d.js → p-d2b37264.js} +4 -4
  279. package/dist/components/{p-0ebf838c.js → p-d2c3870a.js} +2 -2
  280. package/dist/components/{p-26a20701.js → p-dc4b6fc4.js} +2 -2
  281. package/dist/components/{p-68ea23a4.js → p-ddb2df62.js} +2 -2
  282. package/dist/components/{p-92738209.js → p-df25c2a7.js} +1 -1
  283. package/dist/components/{p-47230f49.js → p-e2e22bf8.js} +10 -14
  284. package/dist/components/{p-21caffae.js → p-ed8955d0.js} +2 -2
  285. package/dist/components/{p-59bdb49b.js → p-f46a0782.js} +2 -2
  286. package/dist/components/{p-a234bf1a.js → p-f4ff7d70.js} +2 -2
  287. package/dist/components/{p-484bc00f.js → p-f734a4cf.js} +2 -2
  288. package/dist/components/{p-dbdc62e6.js → p-f81c7fda.js} +2 -2
  289. package/dist/components/{p-00d593e1.js → p-f9faeffc.js} +2 -2
  290. package/dist/components/{p-f45ff21a.js → p-fb427023.js} +3 -3
  291. package/dist/components/{p-ac19035c.js → p-fb46d041.js} +7 -7
  292. package/dist/components/rtk-ai-toggle.js +4 -4
  293. package/dist/components/rtk-ai-transcriptions.js +1 -1
  294. package/dist/components/rtk-ai.js +3 -3
  295. package/dist/components/rtk-audio-grid.js +2 -2
  296. package/dist/components/rtk-audio-tile.js +5 -5
  297. package/dist/components/rtk-audio-visualizer.js +1 -1
  298. package/dist/components/rtk-avatar.js +1 -1
  299. package/dist/components/rtk-breakout-room-manager.js +1 -1
  300. package/dist/components/rtk-breakout-room-participants.js +1 -1
  301. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  302. package/dist/components/rtk-breakout-rooms-toggle.js +4 -4
  303. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  304. package/dist/components/rtk-camera-selector.js +1 -1
  305. package/dist/components/rtk-camera-toggle.js +4 -4
  306. package/dist/components/rtk-caption-toggle.js +4 -4
  307. package/dist/components/rtk-channel-creator.js +1 -1
  308. package/dist/components/rtk-channel-details.js +1 -1
  309. package/dist/components/rtk-channel-header.js +1 -1
  310. package/dist/components/rtk-channel-selector-ui.js +4 -4
  311. package/dist/components/rtk-channel-selector-view.js +1 -1
  312. package/dist/components/rtk-chat-composer-ui.js +5 -5
  313. package/dist/components/rtk-chat-composer-view.js +1 -1
  314. package/dist/components/rtk-chat-message.js +1 -1
  315. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  316. package/dist/components/rtk-chat-messages-ui.js +1 -1
  317. package/dist/components/rtk-chat-search-results.js +1 -1
  318. package/dist/components/rtk-chat-selector-ui.js +2 -2
  319. package/dist/components/rtk-chat-toggle.js +12 -16
  320. package/dist/components/rtk-chat.js +1 -1
  321. package/dist/components/rtk-clock.js +2 -2
  322. package/dist/components/rtk-confirmation-modal.js +1 -1
  323. package/dist/components/rtk-controlbar-button.js +1 -1
  324. package/dist/components/rtk-controlbar.js +2 -2
  325. package/dist/components/rtk-counter.js +1 -1
  326. package/dist/components/rtk-debugger-audio.js +1 -1
  327. package/dist/components/rtk-debugger-screenshare.js +1 -1
  328. package/dist/components/rtk-debugger-system.js +1 -1
  329. package/dist/components/rtk-debugger-toggle.js +4 -4
  330. package/dist/components/rtk-debugger-video.js +1 -1
  331. package/dist/components/rtk-debugger.js +1 -1
  332. package/dist/components/rtk-dialog-manager.js +1 -1
  333. package/dist/components/rtk-dialog.js +1 -1
  334. package/dist/components/rtk-draft-attachment-view.js +1 -1
  335. package/dist/components/rtk-emoji-picker-button.js +1 -1
  336. package/dist/components/rtk-emoji-picker.js +1 -1
  337. package/dist/components/rtk-ended-screen.js +3 -3
  338. package/dist/components/rtk-file-dropzone.js +2 -2
  339. package/dist/components/rtk-file-message-view.js +1 -1
  340. package/dist/components/rtk-file-message.js +1 -1
  341. package/dist/components/rtk-file-picker-button.js +1 -1
  342. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  343. package/dist/components/rtk-grid-pagination.js +2 -2
  344. package/dist/components/rtk-grid.js +8 -8
  345. package/dist/components/rtk-header.js +2 -2
  346. package/dist/components/rtk-idle-screen.js +4 -4
  347. package/dist/components/rtk-image-message-view.js +1 -1
  348. package/dist/components/rtk-image-message.js +1 -1
  349. package/dist/components/rtk-image-viewer.js +2 -2
  350. package/dist/components/rtk-information-tooltip.js +2 -2
  351. package/dist/components/rtk-join-stage.js +1 -1
  352. package/dist/components/rtk-leave-button.js +4 -4
  353. package/dist/components/rtk-leave-meeting.js +1 -1
  354. package/dist/components/rtk-livestream-indicator.js +1 -1
  355. package/dist/components/rtk-livestream-player.js +1 -1
  356. package/dist/components/rtk-livestream-toggle.js +4 -4
  357. package/dist/components/rtk-logo.js +1 -1
  358. package/dist/components/rtk-meeting-title.js +2 -2
  359. package/dist/components/rtk-meeting.js +51 -51
  360. package/dist/components/rtk-menu-item.js +1 -1
  361. package/dist/components/rtk-menu-list.js +1 -1
  362. package/dist/components/rtk-menu.js +1 -1
  363. package/dist/components/rtk-message-list-view.js +3 -3
  364. package/dist/components/rtk-message-view.js +1 -1
  365. package/dist/components/rtk-mic-toggle.js +4 -4
  366. package/dist/components/rtk-microphone-selector.js +1 -1
  367. package/dist/components/rtk-mixed-grid.js +5 -5
  368. package/dist/components/rtk-more-toggle.js +4 -4
  369. package/dist/components/rtk-mute-all-button.js +4 -4
  370. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  371. package/dist/components/rtk-name-tag.js +1 -1
  372. package/dist/components/rtk-network-indicator.js +2 -2
  373. package/dist/components/rtk-notification.js +1 -1
  374. package/dist/components/rtk-notifications.js +1 -1
  375. package/dist/components/rtk-overlay-modal.js +1 -1
  376. package/dist/components/rtk-paginated-list.js +1 -1
  377. package/dist/components/rtk-participant-count.js +2 -2
  378. package/dist/components/rtk-participant-setup.js +2 -2
  379. package/dist/components/rtk-participant-tile.js +1 -1
  380. package/dist/components/rtk-participant.js +1 -1
  381. package/dist/components/rtk-participants-audio.js +3 -3
  382. package/dist/components/rtk-participants-stage-list.js +1 -1
  383. package/dist/components/rtk-participants-stage-queue.js +1 -1
  384. package/dist/components/rtk-participants-toggle.js +5 -5
  385. package/dist/components/rtk-participants-viewer-list.js +1 -1
  386. package/dist/components/rtk-participants-waiting-list.js +1 -1
  387. package/dist/components/rtk-participants.js +12 -12
  388. package/dist/components/rtk-permissions-message.js +1 -1
  389. package/dist/components/rtk-pip-toggle.js +4 -4
  390. package/dist/components/rtk-plugin-main.js +1 -1
  391. package/dist/components/rtk-plugins-toggle.js +5 -5
  392. package/dist/components/rtk-plugins.js +1 -1
  393. package/dist/components/rtk-poll-form.js +1 -1
  394. package/dist/components/rtk-poll.js +1 -1
  395. package/dist/components/rtk-polls-toggle.js +5 -5
  396. package/dist/components/rtk-polls.js +1 -1
  397. package/dist/components/rtk-recording-indicator.js +2 -2
  398. package/dist/components/rtk-recording-toggle.js +4 -4
  399. package/dist/components/rtk-screen-share-toggle.js +4 -4
  400. package/dist/components/rtk-screenshare-view.js +2 -2
  401. package/dist/components/rtk-settings-audio.js +1 -1
  402. package/dist/components/rtk-settings-toggle.js +4 -4
  403. package/dist/components/rtk-settings-video.js +1 -1
  404. package/dist/components/rtk-settings.js +10 -10
  405. package/dist/components/rtk-setup-screen.js +6 -6
  406. package/dist/components/rtk-sidebar-ui.js +1 -1
  407. package/dist/components/rtk-sidebar.js +8 -8
  408. package/dist/components/rtk-simple-grid.js +2 -2
  409. package/dist/components/rtk-speaker-selector.js +1 -1
  410. package/dist/components/rtk-spinner.js +1 -1
  411. package/dist/components/rtk-spotlight-grid.js +2 -2
  412. package/dist/components/rtk-spotlight-indicator.js +1 -1
  413. package/dist/components/rtk-stage-toggle.js +4 -4
  414. package/dist/components/rtk-stage.js +2 -2
  415. package/dist/components/rtk-switch.js +1 -1
  416. package/dist/components/rtk-tab-bar.js +1 -1
  417. package/dist/components/rtk-text-composer-view.js +1 -1
  418. package/dist/components/rtk-text-message.js +1 -1
  419. package/dist/components/rtk-transcript.js +1 -1
  420. package/dist/components/rtk-transcripts.js +3 -3
  421. package/dist/components/rtk-ui-provider.js +2 -2
  422. package/dist/components/rtk-viewer-count.js +1 -1
  423. package/dist/components/rtk-waiting-screen.js +3 -3
  424. package/dist/docs/docs-components.json +2223 -2223
  425. package/dist/docs/docs-vscode.json +10 -10
  426. package/dist/esm/{TextMessage-5f73acf3.js → TextMessage-07d53134.js} +1 -1
  427. package/dist/esm/{chat-d13dedd6.js → chat-32ac0c2b.js} +1 -1
  428. package/dist/esm/{debounce-6e6d522e.js → debounce-6ec038d3.js} +1 -1
  429. package/dist/esm/{index-e1ee8258.js → index-849b9dd9.js} +1 -1
  430. package/dist/esm/index.js +6 -6
  431. package/dist/esm/loader.js +86 -100
  432. package/dist/esm/{merge-783d3076.js → merge-f5f3ca10.js} +1 -1
  433. package/dist/esm/{notification-b6d024c7.js → notification-0794a8cc.js} +2 -2
  434. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  435. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  436. package/dist/esm/rtk-ai.entry.js +2 -2
  437. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  438. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  439. package/dist/esm/rtk-audio-visualizer_4.entry.js +2 -2
  440. package/dist/esm/rtk-avatar_54.entry.js +14 -18
  441. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  442. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  443. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  444. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  445. package/dist/esm/rtk-channel-selector-ui.entry.js +4 -4
  446. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  447. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  448. package/dist/esm/rtk-chat-toggle.entry.js +10 -14
  449. package/dist/esm/rtk-clock.entry.js +2 -2
  450. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  451. package/dist/esm/rtk-controlbar.entry.js +2 -2
  452. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  453. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  454. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  455. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  456. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  457. package/dist/esm/rtk-grid.entry.js +2 -2
  458. package/dist/esm/rtk-header.entry.js +2 -2
  459. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  460. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  461. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  462. package/dist/esm/rtk-leave-button.entry.js +2 -2
  463. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  464. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  465. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  466. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  467. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  468. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  469. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  470. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  471. package/dist/esm/rtk-name-tag.entry.js +2 -2
  472. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  473. package/dist/esm/rtk-participant-count.entry.js +2 -2
  474. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  475. package/dist/esm/rtk-participant_2.entry.js +3 -3
  476. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  477. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  478. package/dist/esm/rtk-participants-toggle.entry.js +3 -3
  479. package/dist/esm/rtk-participants.entry.js +3 -3
  480. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  481. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  482. package/dist/esm/rtk-plugins-toggle.entry.js +3 -3
  483. package/dist/esm/rtk-plugins_2.entry.js +2 -2
  484. package/dist/esm/rtk-poll_2.entry.js +2 -2
  485. package/dist/esm/rtk-polls-toggle.entry.js +3 -3
  486. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  487. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  488. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  489. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  490. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  491. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  492. package/dist/esm/rtk-settings.entry.js +2 -2
  493. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  494. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  495. package/dist/esm/rtk-sidebar.entry.js +3 -3
  496. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  497. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  498. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  499. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  500. package/dist/esm/rtk-stage.entry.js +2 -2
  501. package/dist/esm/rtk-transcript.entry.js +2 -2
  502. package/dist/esm/rtk-transcripts.entry.js +2 -2
  503. package/dist/esm/rtk-ui-provider.entry.js +2 -2
  504. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  505. package/dist/esm/{sidebar-11ec6514.js → sidebar-76cae1f0.js} +1 -1
  506. package/dist/esm/{ui-store-db94a9fe.js → ui-store-2965ff1a.js} +73 -79
  507. package/dist/realtimekit-ui/index.esm.js +1 -1
  508. package/dist/realtimekit-ui/{p-b8b1abc1.entry.js → p-00b5bdeb.entry.js} +1 -1
  509. package/dist/realtimekit-ui/{p-83cc0429.entry.js → p-0266e82b.entry.js} +1 -1
  510. package/dist/realtimekit-ui/{p-c83bb4db.entry.js → p-0979ba30.entry.js} +1 -1
  511. package/dist/realtimekit-ui/{p-6fd30714.entry.js → p-0ab52f70.entry.js} +1 -1
  512. package/dist/realtimekit-ui/{p-1c0dc0e4.entry.js → p-0b93c12d.entry.js} +1 -1
  513. package/dist/realtimekit-ui/p-1185eec6.entry.js +1 -0
  514. package/dist/realtimekit-ui/{p-141c5a96.js → p-145caa6b.js} +1 -1
  515. package/dist/realtimekit-ui/{p-ded15279.entry.js → p-1f328e83.entry.js} +1 -1
  516. package/dist/realtimekit-ui/{p-cbcb71ff.entry.js → p-22313959.entry.js} +1 -1
  517. package/dist/realtimekit-ui/{p-b6b382fb.js → p-2318c3af.js} +1 -1
  518. package/dist/realtimekit-ui/{p-09c73782.js → p-2799d5b2.js} +1 -1
  519. package/dist/realtimekit-ui/{p-2158fcad.js → p-2857144e.js} +1 -1
  520. package/dist/realtimekit-ui/{p-b026c868.entry.js → p-2aa2727b.entry.js} +1 -1
  521. package/dist/realtimekit-ui/{p-2e3dfcc9.entry.js → p-2d09aeb4.entry.js} +1 -1
  522. package/dist/realtimekit-ui/{p-99b12b35.entry.js → p-2d6c5160.entry.js} +1 -1
  523. package/dist/realtimekit-ui/{p-f79c9388.entry.js → p-2d729cec.entry.js} +1 -1
  524. package/dist/realtimekit-ui/{p-bcd4a3a3.entry.js → p-2dc496f0.entry.js} +1 -1
  525. package/dist/realtimekit-ui/{p-36ac26b8.entry.js → p-3144bec3.entry.js} +1 -1
  526. package/dist/realtimekit-ui/{p-8191b1a0.entry.js → p-3263d76d.entry.js} +1 -1
  527. package/dist/realtimekit-ui/{p-388ea8ba.entry.js → p-34350578.entry.js} +1 -1
  528. package/dist/realtimekit-ui/p-34c90f1c.entry.js +1 -0
  529. package/dist/realtimekit-ui/{p-c878323a.entry.js → p-35b87831.entry.js} +1 -1
  530. package/dist/realtimekit-ui/{p-13b16cf1.entry.js → p-368420fc.entry.js} +1 -1
  531. package/dist/realtimekit-ui/{p-3a58bc75.entry.js → p-39d0ad4d.entry.js} +1 -1
  532. package/dist/realtimekit-ui/{p-695de0a5.entry.js → p-404207e0.entry.js} +1 -1
  533. package/dist/realtimekit-ui/{p-d403ae25.entry.js → p-47d8e5c8.entry.js} +1 -1
  534. package/dist/realtimekit-ui/{p-73eccbf9.entry.js → p-47e89714.entry.js} +1 -1
  535. package/dist/realtimekit-ui/{p-cfaf19a1.entry.js → p-4b62d6f9.entry.js} +1 -1
  536. package/dist/realtimekit-ui/{p-b0debce4.js → p-4ea418c9.js} +1 -1
  537. package/dist/realtimekit-ui/{p-66923aef.entry.js → p-51a8a9e5.entry.js} +1 -1
  538. package/dist/realtimekit-ui/{p-02af251d.entry.js → p-53ffaa9f.entry.js} +1 -1
  539. package/dist/realtimekit-ui/{p-850768a7.entry.js → p-543dcdc1.entry.js} +1 -1
  540. package/dist/realtimekit-ui/{p-5e4404d2.entry.js → p-55f181be.entry.js} +1 -1
  541. package/dist/realtimekit-ui/{p-9aa52462.entry.js → p-560fc162.entry.js} +1 -1
  542. package/dist/realtimekit-ui/{p-02e2abe9.entry.js → p-5cb4f925.entry.js} +1 -1
  543. package/dist/realtimekit-ui/{p-38c285b6.entry.js → p-616f3a25.entry.js} +1 -1
  544. package/dist/realtimekit-ui/{p-04057bfb.entry.js → p-62949a7d.entry.js} +1 -1
  545. package/dist/realtimekit-ui/{p-5c7cacf3.entry.js → p-6334ca51.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-6d0a4f84.entry.js → p-6495f016.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-24e68e61.entry.js → p-64aa0fae.entry.js} +1 -1
  548. package/dist/realtimekit-ui/{p-8aa0ba79.entry.js → p-77f71d40.entry.js} +1 -1
  549. package/dist/realtimekit-ui/{p-2735b1d8.entry.js → p-7f896d33.entry.js} +1 -1
  550. package/dist/realtimekit-ui/{p-601b236f.entry.js → p-7fab2c53.entry.js} +1 -1
  551. package/dist/realtimekit-ui/{p-6d2d135b.entry.js → p-7fbca8d1.entry.js} +1 -1
  552. package/dist/realtimekit-ui/p-8046e263.js +1 -0
  553. package/dist/realtimekit-ui/{p-6602bcb7.entry.js → p-81d1334c.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-ba7da0d6.entry.js → p-83a8cd29.entry.js} +1 -1
  555. package/dist/realtimekit-ui/{p-1667420d.entry.js → p-95ab3abe.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-9e75367a.entry.js → p-9ac89beb.entry.js} +1 -1
  557. package/dist/realtimekit-ui/{p-0ee296a5.entry.js → p-9b6d809b.entry.js} +1 -1
  558. package/dist/realtimekit-ui/{p-7f6469ed.entry.js → p-9ba26c9f.entry.js} +1 -1
  559. package/dist/realtimekit-ui/{p-4bc037d7.entry.js → p-a449b5cd.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-433b1cf8.entry.js → p-a55863be.entry.js} +1 -1
  561. package/dist/realtimekit-ui/{p-02c21f58.entry.js → p-a7ba0456.entry.js} +1 -1
  562. package/dist/realtimekit-ui/{p-5c98d979.entry.js → p-ac1ff0f8.entry.js} +1 -1
  563. package/dist/realtimekit-ui/{p-30f406f2.entry.js → p-b2b8b421.entry.js} +1 -1
  564. package/dist/realtimekit-ui/{p-c2ee481a.entry.js → p-b6c83f82.entry.js} +1 -1
  565. package/dist/realtimekit-ui/{p-d369eb4f.entry.js → p-bad807c1.entry.js} +1 -1
  566. package/dist/realtimekit-ui/{p-3950823a.entry.js → p-bfd7cd5a.entry.js} +1 -1
  567. package/dist/realtimekit-ui/{p-d3717b05.entry.js → p-bfed80f3.entry.js} +1 -1
  568. package/dist/realtimekit-ui/{p-af6545ce.entry.js → p-c1d92065.entry.js} +1 -1
  569. package/dist/realtimekit-ui/{p-87bc8bbd.js → p-c6c86fd8.js} +1 -1
  570. package/dist/realtimekit-ui/{p-fd9eecef.entry.js → p-d7a5c237.entry.js} +1 -1
  571. package/dist/realtimekit-ui/{p-e32f2f7d.entry.js → p-db9dd8ea.entry.js} +1 -1
  572. package/dist/realtimekit-ui/{p-e8b1dd81.entry.js → p-dfa4a588.entry.js} +1 -1
  573. package/dist/realtimekit-ui/{p-a3fb7ff3.entry.js → p-e0dd5f79.entry.js} +1 -1
  574. package/dist/realtimekit-ui/{p-94478817.entry.js → p-e24289b8.entry.js} +1 -1
  575. package/dist/realtimekit-ui/{p-7adbebd6.entry.js → p-e32c13e0.entry.js} +1 -1
  576. package/dist/realtimekit-ui/{p-8ce4ce1e.entry.js → p-e65d2f04.entry.js} +1 -1
  577. package/dist/realtimekit-ui/{p-68b7d8b8.entry.js → p-e6f1e6aa.entry.js} +1 -1
  578. package/dist/realtimekit-ui/{p-2e91528d.entry.js → p-e7a89e24.entry.js} +1 -1
  579. package/dist/realtimekit-ui/{p-008ff55b.entry.js → p-ead8970b.entry.js} +1 -1
  580. package/dist/realtimekit-ui/{p-2ce32db5.entry.js → p-f16345d6.entry.js} +1 -1
  581. package/dist/realtimekit-ui/{p-55db56a1.entry.js → p-f1ab4672.entry.js} +1 -1
  582. package/dist/realtimekit-ui/{p-f51eda1c.entry.js → p-f3998c17.entry.js} +1 -1
  583. package/dist/realtimekit-ui/{p-f547518b.entry.js → p-f5560043.entry.js} +1 -1
  584. package/dist/realtimekit-ui/{p-e2a6c7ca.entry.js → p-f5a3ccc0.entry.js} +1 -1
  585. package/dist/realtimekit-ui/{p-fdb4f92c.js → p-fa2ee341.js} +1 -1
  586. package/dist/realtimekit-ui/{p-072435bb.entry.js → p-ff19ee1e.entry.js} +1 -1
  587. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  588. package/dist/types/utils/flags.d.ts +15 -0
  589. package/package.json +1 -1
  590. package/dist/realtimekit-ui/p-4ec9d2bb.entry.js +0 -1
  591. package/dist/realtimekit-ui/p-5e510bd4.entry.js +0 -1
  592. package/dist/realtimekit-ui/p-89ebff3d.js +0 -1
@@ -1,77 +1,5 @@
1
1
  import { g as getRenderingRef, f as forceUpdate } from './index-c1fb98bb.js';
2
2
 
3
- /**
4
- * Can view the livestream
5
- */
6
- const isLiveStreamViewer = (meeting) => {
7
- if (!showLivestream(meeting))
8
- return false;
9
- return meeting.meta.viewType === 'LIVESTREAM' && meeting.stage.status !== 'ON_STAGE';
10
- };
11
- /**
12
- * Can start/stop the livestream
13
- */
14
- const isLiveStreamHost = (meeting) => {
15
- var _a;
16
- if (!showLivestream(meeting))
17
- return false;
18
- return meeting.meta.viewType === 'LIVESTREAM' && ((_a = meeting === null || meeting === void 0 ? void 0 : meeting.self) === null || _a === void 0 ? void 0 : _a.permissions.canLivestream);
19
- };
20
- const showLivestream = (meeting) => {
21
- return meeting === null || meeting === void 0 ? void 0 : meeting.livestream;
22
- };
23
- var PlayerState;
24
- (function (PlayerState) {
25
- PlayerState["BUFFERING"] = "Buffering";
26
- PlayerState["ENDED"] = "Ended";
27
- PlayerState["IDLE"] = "Idle";
28
- PlayerState["PAUSED"] = "Paused";
29
- PlayerState["PLAYING"] = "Playing";
30
- PlayerState["READY"] = "Ready";
31
- })(PlayerState || (PlayerState = {}));
32
- var PlayerEventType;
33
- (function (PlayerEventType) {
34
- PlayerEventType["INITIALIZED"] = "PlayerInitialized";
35
- PlayerEventType["QUALITY_CHANGED"] = "PlayerQualityChanged";
36
- PlayerEventType["DURATION_CHANGED"] = "PlayerDurationChanged";
37
- PlayerEventType["VOLUME_CHANGED"] = "PlayerVolumeChanged";
38
- PlayerEventType["MUTED_CHANGED"] = "PlayerMutedChanged";
39
- PlayerEventType["PLAYBACK_RATE_CHANGED"] = "PlayerPlaybackRateChanged";
40
- PlayerEventType["REBUFFERING"] = "PlayerRebuffering";
41
- PlayerEventType["AUDIO_BLOCKED"] = "PlayerAudioBlocked";
42
- PlayerEventType["PLAYBACK_BLOCKED"] = "PlayerPlaybackBlocked";
43
- PlayerEventType["ERROR"] = "PlayerError";
44
- PlayerEventType["RECOVERABLE_ERROR"] = "PlayerRecoverableError";
45
- PlayerEventType["ANALYTICS_EVENT"] = "PlayerAnalyticsEvent";
46
- PlayerEventType["TIME_UPDATE"] = "PlayerTimeUpdate";
47
- PlayerEventType["BUFFER_UPDATE"] = "PlayerBufferUpdate";
48
- PlayerEventType["SEEK_COMPLETED"] = "PlayerSeekCompleted";
49
- PlayerEventType["SESSION_DATA"] = "PlayerSessionData";
50
- PlayerEventType["STATE_CHANGED"] = "PlayerStateChanged";
51
- PlayerEventType["WORKER_ERROR"] = "PlayerWorkerError";
52
- PlayerEventType["METADATA"] = "PlayerMetadata";
53
- PlayerEventType["TEXT_CUE"] = "PlayerTextCue";
54
- PlayerEventType["TEXT_METADATA_CUE"] = "PlayerTextMetadataCue";
55
- PlayerEventType["AD_CUE"] = "PlayerAdCue";
56
- PlayerEventType["STREAM_SOURCE_CUE"] = "PlayerStreamSourceCue";
57
- PlayerEventType["NETWORK_UNAVAILABLE"] = "PlayerNetworkUnavailable";
58
- PlayerEventType["SEGMENT_DISCONTINUITY"] = "PlayerSegmentDiscontinuity";
59
- PlayerEventType["SEGMENT_METADATA"] = "PlayerSegmentMetadata";
60
- PlayerEventType["PLAYER_METADATA"] = "PlayerMetadata";
61
- })(PlayerEventType || (PlayerEventType = {}));
62
- function getLivestreamViewerAllowedQualityLevels({ meeting, hlsLevels, }) {
63
- let allowedQualities = meeting.self.config.livestreamViewerQualities || [];
64
- if (!allowedQualities.length) {
65
- return { autoLevelChangeAllowed: true, levels: hlsLevels };
66
- }
67
- // Filter allowed qualities
68
- const desiredLevels = hlsLevels.filter((level) => allowedQualities.includes(level.height));
69
- if (!desiredLevels.length) {
70
- return { autoLevelChangeAllowed: true, levels: hlsLevels };
71
- }
72
- return { autoLevelChangeAllowed: false, levels: desiredLevels };
73
- }
74
-
75
3
  const FlagsmithFeatureFlags = {
76
4
  PLAY_PARTICIPANT_TILE_VIDEO_ON_PAUSE: 'play_participant_tile_video_on_pause',
77
5
  DISABLE_EMOJI_PICKER: 'disable_emoji_picker',
@@ -84,12 +12,6 @@ const FlagsmithFeatureFlags = {
84
12
  PINNED_MESSAGES: 'pinned_msgs',
85
13
  };
86
14
  const isBreakoutRoomsEnabled = (meeting) => meeting.connectedMeetings.supportsConnectedMeetings;
87
- const usePaginatedChat = (meeting) => {
88
- var _a;
89
- return (meeting === null || meeting === void 0 ? void 0 : meeting.meta.viewType) === 'CHAT' ||
90
- showLivestream(meeting) ||
91
- ((_a = meeting === null || meeting === void 0 ? void 0 : meeting.__internals__) === null || _a === void 0 ? void 0 : _a.features.hasFeature('feat_paginated_chat'));
92
- };
93
15
  const disableSettingSinkId = (meeting) => {
94
16
  var _a, _b;
95
17
  return ((_a = meeting === null || meeting === void 0 ? void 0 : meeting.__internals__) === null || _a === void 0 ? void 0 : _a.browserSpecs.isFirefox()) &&
@@ -3099,6 +3021,78 @@ const createDefaultConfig = () => {
3099
3021
  return clone(defaultConfig);
3100
3022
  };
3101
3023
 
3024
+ /**
3025
+ * Can view the livestream
3026
+ */
3027
+ const isLiveStreamViewer = (meeting) => {
3028
+ if (!showLivestream(meeting))
3029
+ return false;
3030
+ return meeting.meta.viewType === 'LIVESTREAM' && meeting.stage.status !== 'ON_STAGE';
3031
+ };
3032
+ /**
3033
+ * Can start/stop the livestream
3034
+ */
3035
+ const isLiveStreamHost = (meeting) => {
3036
+ var _a;
3037
+ if (!showLivestream(meeting))
3038
+ return false;
3039
+ return meeting.meta.viewType === 'LIVESTREAM' && ((_a = meeting === null || meeting === void 0 ? void 0 : meeting.self) === null || _a === void 0 ? void 0 : _a.permissions.canLivestream);
3040
+ };
3041
+ const showLivestream = (meeting) => {
3042
+ return meeting === null || meeting === void 0 ? void 0 : meeting.livestream;
3043
+ };
3044
+ var PlayerState;
3045
+ (function (PlayerState) {
3046
+ PlayerState["BUFFERING"] = "Buffering";
3047
+ PlayerState["ENDED"] = "Ended";
3048
+ PlayerState["IDLE"] = "Idle";
3049
+ PlayerState["PAUSED"] = "Paused";
3050
+ PlayerState["PLAYING"] = "Playing";
3051
+ PlayerState["READY"] = "Ready";
3052
+ })(PlayerState || (PlayerState = {}));
3053
+ var PlayerEventType;
3054
+ (function (PlayerEventType) {
3055
+ PlayerEventType["INITIALIZED"] = "PlayerInitialized";
3056
+ PlayerEventType["QUALITY_CHANGED"] = "PlayerQualityChanged";
3057
+ PlayerEventType["DURATION_CHANGED"] = "PlayerDurationChanged";
3058
+ PlayerEventType["VOLUME_CHANGED"] = "PlayerVolumeChanged";
3059
+ PlayerEventType["MUTED_CHANGED"] = "PlayerMutedChanged";
3060
+ PlayerEventType["PLAYBACK_RATE_CHANGED"] = "PlayerPlaybackRateChanged";
3061
+ PlayerEventType["REBUFFERING"] = "PlayerRebuffering";
3062
+ PlayerEventType["AUDIO_BLOCKED"] = "PlayerAudioBlocked";
3063
+ PlayerEventType["PLAYBACK_BLOCKED"] = "PlayerPlaybackBlocked";
3064
+ PlayerEventType["ERROR"] = "PlayerError";
3065
+ PlayerEventType["RECOVERABLE_ERROR"] = "PlayerRecoverableError";
3066
+ PlayerEventType["ANALYTICS_EVENT"] = "PlayerAnalyticsEvent";
3067
+ PlayerEventType["TIME_UPDATE"] = "PlayerTimeUpdate";
3068
+ PlayerEventType["BUFFER_UPDATE"] = "PlayerBufferUpdate";
3069
+ PlayerEventType["SEEK_COMPLETED"] = "PlayerSeekCompleted";
3070
+ PlayerEventType["SESSION_DATA"] = "PlayerSessionData";
3071
+ PlayerEventType["STATE_CHANGED"] = "PlayerStateChanged";
3072
+ PlayerEventType["WORKER_ERROR"] = "PlayerWorkerError";
3073
+ PlayerEventType["METADATA"] = "PlayerMetadata";
3074
+ PlayerEventType["TEXT_CUE"] = "PlayerTextCue";
3075
+ PlayerEventType["TEXT_METADATA_CUE"] = "PlayerTextMetadataCue";
3076
+ PlayerEventType["AD_CUE"] = "PlayerAdCue";
3077
+ PlayerEventType["STREAM_SOURCE_CUE"] = "PlayerStreamSourceCue";
3078
+ PlayerEventType["NETWORK_UNAVAILABLE"] = "PlayerNetworkUnavailable";
3079
+ PlayerEventType["SEGMENT_DISCONTINUITY"] = "PlayerSegmentDiscontinuity";
3080
+ PlayerEventType["SEGMENT_METADATA"] = "PlayerSegmentMetadata";
3081
+ PlayerEventType["PLAYER_METADATA"] = "PlayerMetadata";
3082
+ })(PlayerEventType || (PlayerEventType = {}));
3083
+ function getLivestreamViewerAllowedQualityLevels({ meeting, hlsLevels, }) {
3084
+ let allowedQualities = meeting.self.config.livestreamViewerQualities || [];
3085
+ if (!allowedQualities.length) {
3086
+ return { autoLevelChangeAllowed: true, levels: hlsLevels };
3087
+ }
3088
+ // Filter allowed qualities
3089
+ const desiredLevels = hlsLevels.filter((level) => allowedQualities.includes(level.height));
3090
+ if (!desiredLevels.length) {
3091
+ return { autoLevelChangeAllowed: true, levels: hlsLevels };
3092
+ }
3093
+ return { autoLevelChangeAllowed: false, levels: desiredLevels };
3094
+ }
3095
+
3102
3096
  const appendToMap = (map, propName, value) => {
3103
3097
  const items = map.get(propName);
3104
3098
  if (!items) {
@@ -3964,4 +3958,4 @@ function removeElement(propName, element, targetStore = uiStore) {
3964
3958
  }
3965
3959
  }
3966
3960
 
3967
- export { isArguments$1 as A, BreakoutRoomsManager as B, isFunction as C, initCloneObject as D, isLiveStreamHost as E, disableSettingSinkId as F, chatUnreadTimestamps as G, getAllConnectedParticipants as H, participantIdentifier as I, resetRoomCount as J, usePaginatedChat as K, FlagsmithFeatureFlags as L, gracefulStorage$1 as M, showLivestream as N, appendElement as O, removeElement as P, root$1 as Q, canToggleBreakout as R, Stack as S, isLiveStreamViewer as T, clone as U, PlayerState as V, getLivestreamViewerAllowedQualityLevels as W, getPreference as X, setPreference as Y, uiState as a, createPeerStore as b, createDefaultConfig as c, defaultConfig as d, defaultIconPack as e, defaultLanguage as f, getInitialStates as g, useLanguage as h, defineProperty$1 as i, isObject as j, isArrayLike as k, isIndex as l, eq as m, isObjectLike as n, baseGetTag as o, getPrototype$1 as p, baseAssignValue as q, copyObject as r, keysIn as s, isArray$1 as t, uiStore as u, isBuffer$1 as v, isTypedArray$1 as w, copyArray as x, cloneBuffer as y, cloneTypedArray as z };
3961
+ export { isArguments$1 as A, BreakoutRoomsManager as B, isFunction as C, initCloneObject as D, isLiveStreamHost as E, disableSettingSinkId as F, chatUnreadTimestamps as G, getAllConnectedParticipants as H, participantIdentifier as I, resetRoomCount as J, FlagsmithFeatureFlags as K, gracefulStorage$1 as L, showLivestream as M, appendElement as N, removeElement as O, root$1 as P, canToggleBreakout as Q, isLiveStreamViewer as R, Stack as S, clone as T, PlayerState as U, getLivestreamViewerAllowedQualityLevels as V, getPreference as W, setPreference as X, uiState as a, createPeerStore as b, createDefaultConfig as c, defaultConfig as d, defaultIconPack as e, defaultLanguage as f, getInitialStates as g, useLanguage as h, defineProperty$1 as i, isObject as j, isArrayLike as k, isIndex as l, eq as m, isObjectLike as n, baseGetTag as o, getPrototype$1 as p, baseAssignValue as q, copyObject as r, keysIn as s, isArray$1 as t, uiStore as u, isBuffer$1 as v, isTypedArray$1 as w, copyArray as x, cloneBuffer as y, cloneTypedArray as z };
@@ -1 +1 @@
1
- import{c as t}from"./p-89ebff3d.js";export{B as BreakoutRoomsManager,c as createDefaultConfig,b as createPeerStore,d as defaultConfig,e as defaultIconPack,f as defaultLanguage,g as getInitialStates,a as uiState,u as uiStore,h as useLanguage}from"./p-89ebff3d.js";export{p as provideRtkDesignSystem}from"./p-141c5a96.js";import{g as s}from"./p-b0debce4.js";export{R as RtkNotificationsAudio,e as extendConfig,g as generateConfig}from"./p-b0debce4.js";export{g as generateChatGroupKey,a as getChatGroups,c as getParticipantUserId,b as getUnreadChatCounts}from"./p-b6b382fb.js";import"./p-0ee570cd.js";const i=(t,e)=>{if("undefined"==typeof document)return!1;const s=new CustomEvent("rtkNotification",{detail:Object.assign(Object.assign({},t),{playSound:e}),composed:!0});return document.dispatchEvent(s)};function r(t){return e=>Array.isArray(e)?e[0]===t:e===t}function o(t){return e=>Array.isArray(e)?e[0]!==t:e!==t}function n(t){return t.replace(/([a-z])([A-Z])/g,(t=>`${t[0]}-${t[1]}`.toLowerCase()))}class l{constructor(t,e,s){this.elem=t,this.config=e,this.keyString=s}add(t,e={}){var s;let i=t=n(t);return Object.keys(e).length>0&&(i=[t,e]),Array.isArray(this.elem)?this.elem.push(i):"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=[...this.elem.children,i]:"remove"in this.elem&&Array.isArray(this.elem.remove)&&this.elem.remove.find(r(t))?this.elem.remove=this.elem.remove.filter(o(t)):("add"in this.elem||(this.elem.add=[]),null===(s=this.elem.add)||void 0===s||s.push(i)),this}remove(t){var e;if(t=n(t),Array.isArray(this.elem)){const e=this.elem.findIndex(r(t));e>-1&&this.elem.splice(e,1)}else"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=this.elem.children.filter(o(t)):"add"in this.elem&&Array.isArray(this.elem.add)&&this.elem.add.find((e=>e===t))?this.elem.add=this.elem.add.filter(o(t)):("remove"in this.elem||(this.elem.remove=[]),null===(e=this.elem.remove)||void 0===e||e.push(t));return this}set style(t){console.log(t)}setChildrenProps(t,e){console.log(this.keyString,t,e)}getChildrenProps(t){return console.log(this.keyString,t),{}}replace(t){console.log(this.config,t)}}class m{constructor(e){this.config=e||t()}find(t,e={}){t=n(t);const s=[],i=[];Object.keys(e||{}).forEach((t=>{"boolean"==typeof e[t]?s.push(t):i.push([t,e[t]])})),s.sort();const r=this.config.root;if(void 0===r)return;let o=t,a="";s.length>0&&(a=`.${s.join(".")}`,o=`${t}${a}`,Array.isArray(r[t])&&(r[t]={states:[],children:r[t]}),void 0===r[t].states&&(r[t].states=[]),s.forEach((e=>{var s,i;-1===(null===(s=r[t].states)||void 0===s?void 0:s.indexOf(e))&&(null===(i=r[t].states)||void 0===i||i.push(e))}))),i.length>0&&i.forEach((e=>{o=`${t}[${e[0]}=${e[1]}]${a}`,Array.isArray(r[t])&&(r[t]={state:e[0],children:r[t]})}));let h=r[o];return void 0===h&&(r[o]={},h=r[o]),new l(h,this.config,o)}build(){return this.config}}function v(t,e,i){if(!i){const t=s(e.self.config,e);i=t.config}return t.map((t=>{i=t.register(i,e,(t=>new m(t)))})),i}export{m as RtkUiBuilder,v as registerAddons,i as sendNotification}
1
+ import{c as t}from"./p-8046e263.js";export{B as BreakoutRoomsManager,c as createDefaultConfig,b as createPeerStore,d as defaultConfig,e as defaultIconPack,f as defaultLanguage,g as getInitialStates,a as uiState,u as uiStore,h as useLanguage}from"./p-8046e263.js";export{p as provideRtkDesignSystem}from"./p-145caa6b.js";import{g as s}from"./p-4ea418c9.js";export{R as RtkNotificationsAudio,e as extendConfig,g as generateConfig}from"./p-4ea418c9.js";export{g as generateChatGroupKey,a as getChatGroups,c as getParticipantUserId,b as getUnreadChatCounts}from"./p-2318c3af.js";import"./p-0ee570cd.js";const i=(t,e)=>{if("undefined"==typeof document)return!1;const s=new CustomEvent("rtkNotification",{detail:Object.assign(Object.assign({},t),{playSound:e}),composed:!0});return document.dispatchEvent(s)};function r(t){return e=>Array.isArray(e)?e[0]===t:e===t}function o(t){return e=>Array.isArray(e)?e[0]!==t:e!==t}function n(t){return t.replace(/([a-z])([A-Z])/g,(t=>`${t[0]}-${t[1]}`.toLowerCase()))}class l{constructor(t,e,s){this.elem=t,this.config=e,this.keyString=s}add(t,e={}){var s;let i=t=n(t);return Object.keys(e).length>0&&(i=[t,e]),Array.isArray(this.elem)?this.elem.push(i):"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=[...this.elem.children,i]:"remove"in this.elem&&Array.isArray(this.elem.remove)&&this.elem.remove.find(r(t))?this.elem.remove=this.elem.remove.filter(o(t)):("add"in this.elem||(this.elem.add=[]),null===(s=this.elem.add)||void 0===s||s.push(i)),this}remove(t){var e;if(t=n(t),Array.isArray(this.elem)){const e=this.elem.findIndex(r(t));e>-1&&this.elem.splice(e,1)}else"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=this.elem.children.filter(o(t)):"add"in this.elem&&Array.isArray(this.elem.add)&&this.elem.add.find((e=>e===t))?this.elem.add=this.elem.add.filter(o(t)):("remove"in this.elem||(this.elem.remove=[]),null===(e=this.elem.remove)||void 0===e||e.push(t));return this}set style(t){console.log(t)}setChildrenProps(t,e){console.log(this.keyString,t,e)}getChildrenProps(t){return console.log(this.keyString,t),{}}replace(t){console.log(this.config,t)}}class m{constructor(e){this.config=e||t()}find(t,e={}){t=n(t);const s=[],i=[];Object.keys(e||{}).forEach((t=>{"boolean"==typeof e[t]?s.push(t):i.push([t,e[t]])})),s.sort();const r=this.config.root;if(void 0===r)return;let a=t,o="";s.length>0&&(o=`.${s.join(".")}`,a=`${t}${o}`,Array.isArray(r[t])&&(r[t]={states:[],children:r[t]}),void 0===r[t].states&&(r[t].states=[]),s.forEach((e=>{var s,i;-1===(null===(s=r[t].states)||void 0===s?void 0:s.indexOf(e))&&(null===(i=r[t].states)||void 0===i||i.push(e))}))),i.length>0&&i.forEach((e=>{a=`${t}[${e[0]}=${e[1]}]${o}`,Array.isArray(r[t])&&(r[t]={state:e[0],children:r[t]})}));let h=r[a];return void 0===h&&(r[a]={},h=r[a]),new l(h,this.config,a)}build(){return this.config}}function v(t,e,i){if(!i){const t=s(e.self.config,e);i=t.config}return t.map((t=>{i=t.register(i,e,(t=>new m(t)))})),i}export{m as RtkUiBuilder,v as registerAddons,i as sendNotification}
@@ -1 +1 @@
1
- import{r as t,h as e,H as a}from"./p-0ee570cd.js";import{c as r,e as i,h as c}from"./p-89ebff3d.js";import{S as o}from"./p-09c73782.js";var n=function(t,e,a,r){var i,c=arguments.length,o=c<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--)(i=t[n])&&(o=(c<3?i(o):c>3?i(e,a,o):i(e,a))||o);return c>3&&o&&Object.defineProperty(e,a,o),o};const s=class{constructor(e){t(this,e),this.config=r(),this.iconPack=i,this.t=c()}render(){return e(a,{key:"c5eff1252dc42e20190130962994d713b95b922b"},e("slot",{key:"99a385d737fba394bcce3340d7ceaa49fe290580"},e("div",{key:"484cfb782b699eea5be2eac7c003dcaea922177a",class:"ctr",part:"container"},e("rtk-logo",{key:"0e190078187680faec1df09a7a50bc80d405a978",meeting:this.meeting,config:this.config,t:this.t,part:"logo"}),e("rtk-spinner",{key:"f00bae50ccb13120714d2d94c9629747824b5eaa","aria-label":"Idle, waiting for meeting data",part:"spinner",iconPack:this.iconPack}))))}};n([o()],s.prototype,"meeting",void 0),n([o()],s.prototype,"config",void 0),n([o()],s.prototype,"iconPack",void 0),n([o()],s.prototype,"t",void 0),s.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{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}rtk-spinner{height:var(--rtk-space-12, 48px);width:var(--rtk-space-12, 48px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}";export{s as rtk_idle_screen}
1
+ import{r as t,h as e,H as a}from"./p-0ee570cd.js";import{c as r,e as i,h as c}from"./p-8046e263.js";import{S as o}from"./p-2799d5b2.js";var n=function(t,e,a,r){var i,c=arguments.length,o=c<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--)(i=t[n])&&(o=(c<3?i(o):c>3?i(e,a,o):i(e,a))||o);return c>3&&o&&Object.defineProperty(e,a,o),o};const s=class{constructor(e){t(this,e),this.config=r(),this.iconPack=i,this.t=c()}render(){return e(a,{key:"c5eff1252dc42e20190130962994d713b95b922b"},e("slot",{key:"99a385d737fba394bcce3340d7ceaa49fe290580"},e("div",{key:"484cfb782b699eea5be2eac7c003dcaea922177a",class:"ctr",part:"container"},e("rtk-logo",{key:"0e190078187680faec1df09a7a50bc80d405a978",meeting:this.meeting,config:this.config,t:this.t,part:"logo"}),e("rtk-spinner",{key:"f00bae50ccb13120714d2d94c9629747824b5eaa","aria-label":"Idle, waiting for meeting data",part:"spinner",iconPack:this.iconPack}))))}};n([o()],s.prototype,"meeting",void 0),n([o()],s.prototype,"config",void 0),n([o()],s.prototype,"iconPack",void 0),n([o()],s.prototype,"t",void 0),s.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{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}rtk-spinner{height:var(--rtk-space-12, 48px);width:var(--rtk-space-12, 48px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}";export{s as rtk_idle_screen}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{e as a,h as o}from"./p-89ebff3d.js";import{S as r}from"./p-09c73782.js";var n=function(t,i,s,e){var a,o=arguments.length,r=o<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 n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(i,s,r):a(i,s))||r);return o>3&&r&&Object.defineProperty(i,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.aiActive=!1}statesChanged(t){this.aiActive=t.activeAI}toggleAI(){var t;this.aiActive=!(null===(t=this.states)||void 0===t?void 0:t.activeAI),this.stateUpdate.emit({activeAI:this.aiActive,activeMoreMenu:!1,activeSidebar:!1})}render(){var t,i;if(!this.meeting)return null;const a=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(e,{title:a},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:a,variant:this.variant,brandIcon:!0})):s(e,{"data-hidden":!0})}static get watchers(){return{states:["statesChanged"]}}};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{display:block}:host([data-hidden]){display:none}";export{c as rtk_ai_toggle}
1
+ import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{e as a,h as o}from"./p-8046e263.js";import{S as r}from"./p-2799d5b2.js";var n=function(t,i,s,e){var a,o=arguments.length,r=o<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 n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(i,s,r):a(i,s))||r);return o>3&&r&&Object.defineProperty(i,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.aiActive=!1}statesChanged(t){this.aiActive=t.activeAI}toggleAI(){var t;this.aiActive=!(null===(t=this.states)||void 0===t?void 0:t.activeAI),this.stateUpdate.emit({activeAI:this.aiActive,activeMoreMenu:!1,activeSidebar:!1})}render(){var t,i;if(!this.meeting)return null;const a=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(e,{title:a},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:a,variant:this.variant,brandIcon:!0})):s(e,{"data-hidden":!0})}static get watchers(){return{states:["statesChanged"]}}};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{display:block}:host([data-hidden]){display:none}";export{c as rtk_ai_toggle}
@@ -1 +1 @@
1
- import{r as t,h as i,H as a}from"./p-0ee570cd.js";import{h as e,e as r}from"./p-89ebff3d.js";import{S as n}from"./p-09c73782.js";var c=function(t,i,a,e){var r,n=arguments.length,c=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,a,e);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(n<3?r(c):n>3?r(i,a,c):r(i,a))||c);return n>3&&c&&Object.defineProperty(i,a,c),c};const s=class{constructor(i){t(this,i),this.t=e(),this.iconPack=r,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"421715a1e7084f9dc226cdf969393a9c9b58fd66","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"fcfd0aa019c6d56ed5a872cdd2cf38ac7ac4258e",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"de97c04f6a1d81606285b2430ccf111dd7208bbf",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"6c142e85f186c7cdb77ccbb78453b2101e17f31a"},this.t("recording.label"))))}static get watchers(){return{meeting:["meetingChanged"]}}};c([n()],s.prototype,"meeting",void 0),c([n()],s.prototype,"t",void 0),c([n()],s.prototype,"iconPack",void 0),s.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}:host[size='sm']{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px)}.indicator{display:flex;flex-direction:row;align-items:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);animation:blink 4s linear infinite}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='sm']) .indicator span{display:none}@keyframes blink{0%,10%{opacity:0}11%,100%{opacity:1}}";export{s as rtk_recording_indicator}
1
+ import{r as t,h as i,H as a}from"./p-0ee570cd.js";import{h as e,e as r}from"./p-8046e263.js";import{S as n}from"./p-2799d5b2.js";var s=function(t,i,a,e){var r,n=arguments.length,s=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,a,e);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(s=(n<3?r(s):n>3?r(i,a,s):r(i,a))||s);return n>3&&s&&Object.defineProperty(i,a,s),s};const c=class{constructor(i){t(this,i),this.t=e(),this.iconPack=r,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"421715a1e7084f9dc226cdf969393a9c9b58fd66","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"fcfd0aa019c6d56ed5a872cdd2cf38ac7ac4258e",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"de97c04f6a1d81606285b2430ccf111dd7208bbf",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"6c142e85f186c7cdb77ccbb78453b2101e17f31a"},this.t("recording.label"))))}static get watchers(){return{meeting:["meetingChanged"]}}};s([n()],c.prototype,"meeting",void 0),s([n()],c.prototype,"t",void 0),s([n()],c.prototype,"iconPack",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}:host[size='sm']{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px)}.indicator{display:flex;flex-direction:row;align-items:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);animation:blink 4s linear infinite}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='sm']) .indicator span{display:none}@keyframes blink{0%,10%{opacity:0}11%,100%{opacity:1}}";export{c as rtk_recording_indicator}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,H as s}from"./p-0ee570cd.js";import{c as o,e as n,h as a}from"./p-89ebff3d.js";import{S as r}from"./p-09c73782.js";var c=function(t,i,e,s){var o,n=arguments.length,a=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(i,e,a):o(i,e))||a);return n>3&&a&&Object.defineProperty(i,e,a),a};const h=class{constructor(e){t(this,e),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=o(),this.iconPack=n,this.t=a(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,e,s;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode)&&"LIVESTREAM"!==(null===(s=t.self.config)||void 0===s?void 0:s.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.meeting)return null;if(!this.pipSupported)return e(s,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return e(s,{role:"log","aria-label":"Picture-in-Picture mode"},e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}static get watchers(){return{meeting:["meetingChanged"]}}};c([r()],h.prototype,"meeting",void 0),c([r()],h.prototype,"states",void 0),c([r()],h.prototype,"config",void 0),c([r()],h.prototype,"iconPack",void 0),c([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{display:block}:host([data-hidden]){display:none}";export{h as rtk_pip_toggle}
1
+ import{r as t,c as i,h as e,H as s}from"./p-0ee570cd.js";import{c as o,e as n,h as a}from"./p-8046e263.js";import{S as r}from"./p-2799d5b2.js";var h=function(t,i,e,s){var o,n=arguments.length,a=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(i,e,a):o(i,e))||a);return n>3&&a&&Object.defineProperty(i,e,a),a};const l=class{constructor(e){t(this,e),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=o(),this.iconPack=n,this.t=a(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,e,s;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode)&&"LIVESTREAM"!==(null===(s=t.self.config)||void 0===s?void 0:s.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.meeting)return null;if(!this.pipSupported)return e(s,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return e(s,{role:"log","aria-label":"Picture-in-Picture mode"},e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}static get watchers(){return{meeting:["meetingChanged"]}}};h([r()],l.prototype,"meeting",void 0),h([r()],l.prototype,"states",void 0),h([r()],l.prototype,"config",void 0),h([r()],l.prototype,"iconPack",void 0),h([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}:host([data-hidden]){display:none}";export{l as rtk_pip_toggle}
@@ -1 +1 @@
1
- import{r as t,w as r,h as i,H as a,c as e}from"./p-0ee570cd.js";import{e as o,h as s,c as n}from"./p-89ebff3d.js";import{S as c}from"./p-09c73782.js";import{f as l,s as p}from"./p-efabd2ce.js";var d=function(t,r,i,a){var e,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,i,s):e(r,i))||s);return o>3&&s&&Object.defineProperty(r,i,s),s};const h=class{constructor(r){t(this,r),this.iconPack=o,this.t=s(),this.canClosePlugin=!1,this.viewModeEnabled=!1,this.onIframeRef=t=>{var r;t!==this.iframeEl&&(this.iframeEl=t,null===(r=this.plugin)||void 0===r||r.addPluginView(t,"plugin-main"))},this.canInteractWithPlugin=()=>{const t=this.plugin.id;if(!t)return!0;const r=this.meeting.self.permissions.plugins.config[t];return!r||!r.accessControl||"FULL_ACCESS"===r.accessControl}}componentDidLoad(){this.meetingChanged(this.meeting),this.pluginChanged(this.plugin)}meetingChanged(t){if(!t)return;const i=this.canInteractWithPlugin();this.viewModeEnabled=!i,r((()=>{this.canClosePlugin=t.self.permissions.plugins.canClose||this.plugin.enabledBy===t.self.id}))}pluginChanged(t){this.toggleViewModeListener=t=>{this.canInteractWithPlugin()||(this.viewModeEnabled=t)},null!=t&&(this.iframeEl&&t.addPluginView(this.iframeEl,"plugin-main"),t.addListener("toggleViewMode",this.toggleViewModeListener))}disconnectedCallback(){var t,r;null===(t=this.plugin)||void 0===t||t.removePluginView("plugin-main"),null===(r=this.plugin)||void 0===r||r.removeListener("toggleViewMode",this.toggleViewModeListener)}render(){return null==this.plugin?null:i(a,null,i("header",{part:"header"},i("div",null,this.plugin.name),this.canClosePlugin&&i("div",null,i("rtk-button",{kind:"icon",onClick:()=>this.plugin.deactivate(),part:"button"},i("rtk-icon",{icon:this.iconPack.dismiss})))),i("div",{class:"iframe-container"},!this.canInteractWithPlugin()&&this.viewModeEnabled?i("div",{class:"block-inputs"}):null,i("iframe",{ref:t=>this.onIframeRef(t),part:"iframe"})))}static get watchers(){return{meeting:["meetingChanged"],plugin:["pluginChanged"]}}};d([c()],h.prototype,"meeting",void 0),d([c()],h.prototype,"iconPack",void 0),d([c()],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{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}header>div{display:flex;align-items:center}rtk-button{display:flex;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-direction:column;align-items:center;border-radius:9999px}rtk-button rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}iframe{display:block;flex:1 1 0%;margin:var(--rtk-space-0, 0px);border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-0, 0px);outline:2px solid transparent;outline-offset:2px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity))}.iframe-container{position:relative;height:100%;width:100%}.block-inputs{position:absolute;z-index:10;height:100%;width:100%;border-left-width:var(--rtk-border-width-none, 0);border-top-width:var(--rtk-border-width-lg, 4px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-border-opacity))}iframe{height:100%;width:100%}";var v=function(t,r,i,a){var e,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,i,s):e(r,i))||s);return o>3&&s&&Object.defineProperty(r,i,s),s};const g=class{constructor(r){t(this,r),this.tabChange=e(this,"tabChange",7),this.config=n(),this.layout="row",this.iconPack=o,this.t=s(),this.tabs=[]}render(){return i(a,{key:"f586079ea469d413cdd8c2bb495bb06d9315417c"},i("rtk-spotlight-indicator",{key:"b9d139ef77a33c6470f4cbd7af1f7ded017b197d",meeting:this.meeting,iconPack:this.iconPack,t:this.t,size:this.size}),this.tabs.map((t=>{var r,a,e,o,s;let n=!1;if(("plugin"===(null===(r=this.activeTab)||void 0===r?void 0:r.type)&&t.plugin&&(null===(a=this.activeTab)||void 0===a?void 0:a.plugin.id)===t.plugin.id||"screenshare"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&t.participant&&(null===(o=this.activeTab)||void 0===o?void 0:o.participant.id)===t.participant.id)&&(n=!0),"screenshare"===t.type){const r=t.participant,a=l(r.name);return i("rtk-button",{title:`${a}'s Screen Share`,key:t.participant.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},i("div",{class:"center col"},i("rtk-icon",{icon:this.iconPack.share_screen_person}),i("span",{class:"name"},r.id===(null===(s=this.meeting)||void 0===s?void 0:s.self.id)?this.t("you"):p(a,6))))}if("plugin"===t.type){const r=t.plugin;return i("rtk-button",{title:r.name,key:r.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},i("div",{class:"center col"},i("img",{src:r.picture}),i("span",{class:"name"},p(r.name,6))))}})))}};v([c()],g.prototype,"meeting",void 0),v([c()],g.prototype,"states",void 0),v([c()],g.prototype,"config",void 0),v([c()],g.prototype,"iconPack",void 0),v([c()],g.prototype,"t",void 0),g.style=".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n 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{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column;gap:var(--rtk-space-2, 8px);overflow-y:auto;font-family:var(--rtk-font-family, sans-serif)}rtk-button{z-index:10}.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)}.tab .name{margin-top:var(--rtk-space-0\\.5, 2px)}:host([size='sm']){flex-direction:column;margin-top:var(--rtk-space-4, 16px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-x:auto}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);text-overflow:clip;min-width:100px;height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}:host([layout='column']){flex-direction:column}:host([layout='column']) .aside{flex:2;max-width:100%;width:100%}@media (orientation: portrait){:host([size='sm']){margin-top:var(--rtk-space-2, 8px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;transition:all 0.3s linear}:host([size='md']){height:var(--rtk-space-24, 96px);width:100%;flex-direction:row;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}}@media (orientation: landscape){:host([size='sm']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host([size='md']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);width:100%;text-overflow:clip;min-width:0px;min-height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-2, 8px);font-size:10px}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}}";export{h as rtk_plugin_main,g as rtk_tab_bar}
1
+ import{r as t,w as r,h as i,H as a,c as e}from"./p-0ee570cd.js";import{e as o,h as s,c as n}from"./p-8046e263.js";import{S as c}from"./p-2799d5b2.js";import{f as l,s as p}from"./p-efabd2ce.js";var d=function(t,r,i,a){var e,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,i,s):e(r,i))||s);return o>3&&s&&Object.defineProperty(r,i,s),s};const h=class{constructor(r){t(this,r),this.iconPack=o,this.t=s(),this.canClosePlugin=!1,this.viewModeEnabled=!1,this.onIframeRef=t=>{var r;t!==this.iframeEl&&(this.iframeEl=t,null===(r=this.plugin)||void 0===r||r.addPluginView(t,"plugin-main"))},this.canInteractWithPlugin=()=>{const t=this.plugin.id;if(!t)return!0;const r=this.meeting.self.permissions.plugins.config[t];return!r||!r.accessControl||"FULL_ACCESS"===r.accessControl}}componentDidLoad(){this.meetingChanged(this.meeting),this.pluginChanged(this.plugin)}meetingChanged(t){if(!t)return;const i=this.canInteractWithPlugin();this.viewModeEnabled=!i,r((()=>{this.canClosePlugin=t.self.permissions.plugins.canClose||this.plugin.enabledBy===t.self.id}))}pluginChanged(t){this.toggleViewModeListener=t=>{this.canInteractWithPlugin()||(this.viewModeEnabled=t)},null!=t&&(this.iframeEl&&t.addPluginView(this.iframeEl,"plugin-main"),t.addListener("toggleViewMode",this.toggleViewModeListener))}disconnectedCallback(){var t,r;null===(t=this.plugin)||void 0===t||t.removePluginView("plugin-main"),null===(r=this.plugin)||void 0===r||r.removeListener("toggleViewMode",this.toggleViewModeListener)}render(){return null==this.plugin?null:i(a,null,i("header",{part:"header"},i("div",null,this.plugin.name),this.canClosePlugin&&i("div",null,i("rtk-button",{kind:"icon",onClick:()=>this.plugin.deactivate(),part:"button"},i("rtk-icon",{icon:this.iconPack.dismiss})))),i("div",{class:"iframe-container"},!this.canInteractWithPlugin()&&this.viewModeEnabled?i("div",{class:"block-inputs"}):null,i("iframe",{ref:t=>this.onIframeRef(t),part:"iframe"})))}static get watchers(){return{meeting:["meetingChanged"],plugin:["pluginChanged"]}}};d([c()],h.prototype,"meeting",void 0),d([c()],h.prototype,"iconPack",void 0),d([c()],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{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}header>div{display:flex;align-items:center}rtk-button{display:flex;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-direction:column;align-items:center;border-radius:9999px}rtk-button rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}iframe{display:block;flex:1 1 0%;margin:var(--rtk-space-0, 0px);border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-0, 0px);outline:2px solid transparent;outline-offset:2px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity))}.iframe-container{position:relative;height:100%;width:100%}.block-inputs{position:absolute;z-index:10;height:100%;width:100%;border-left-width:var(--rtk-border-width-none, 0);border-top-width:var(--rtk-border-width-lg, 4px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-border-opacity))}iframe{height:100%;width:100%}";var v=function(t,r,i,a){var e,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,i,s):e(r,i))||s);return o>3&&s&&Object.defineProperty(r,i,s),s};const g=class{constructor(r){t(this,r),this.tabChange=e(this,"tabChange",7),this.config=n(),this.layout="row",this.iconPack=o,this.t=s(),this.tabs=[]}render(){return i(a,{key:"f586079ea469d413cdd8c2bb495bb06d9315417c"},i("rtk-spotlight-indicator",{key:"b9d139ef77a33c6470f4cbd7af1f7ded017b197d",meeting:this.meeting,iconPack:this.iconPack,t:this.t,size:this.size}),this.tabs.map((t=>{var r,a,e,o,s;let n=!1;if(("plugin"===(null===(r=this.activeTab)||void 0===r?void 0:r.type)&&t.plugin&&(null===(a=this.activeTab)||void 0===a?void 0:a.plugin.id)===t.plugin.id||"screenshare"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&t.participant&&(null===(o=this.activeTab)||void 0===o?void 0:o.participant.id)===t.participant.id)&&(n=!0),"screenshare"===t.type){const r=t.participant,a=l(r.name);return i("rtk-button",{title:`${a}'s Screen Share`,key:t.participant.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},i("div",{class:"center col"},i("rtk-icon",{icon:this.iconPack.share_screen_person}),i("span",{class:"name"},r.id===(null===(s=this.meeting)||void 0===s?void 0:s.self.id)?this.t("you"):p(a,6))))}if("plugin"===t.type){const r=t.plugin;return i("rtk-button",{title:r.name,key:r.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},i("div",{class:"center col"},i("img",{src:r.picture}),i("span",{class:"name"},p(r.name,6))))}})))}};v([c()],g.prototype,"meeting",void 0),v([c()],g.prototype,"states",void 0),v([c()],g.prototype,"config",void 0),v([c()],g.prototype,"iconPack",void 0),v([c()],g.prototype,"t",void 0),g.style=".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n 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{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column;gap:var(--rtk-space-2, 8px);overflow-y:auto;font-family:var(--rtk-font-family, sans-serif)}rtk-button{z-index:10}.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)}.tab .name{margin-top:var(--rtk-space-0\\.5, 2px)}:host([size='sm']){flex-direction:column;margin-top:var(--rtk-space-4, 16px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-x:auto}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);text-overflow:clip;min-width:100px;height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}:host([layout='column']){flex-direction:column}:host([layout='column']) .aside{flex:2;max-width:100%;width:100%}@media (orientation: portrait){:host([size='sm']){margin-top:var(--rtk-space-2, 8px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;transition:all 0.3s linear}:host([size='md']){height:var(--rtk-space-24, 96px);width:100%;flex-direction:row;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}}@media (orientation: landscape){:host([size='sm']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host([size='md']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);width:100%;text-overflow:clip;min-width:0px;min-height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-2, 8px);font-size:10px}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}}";export{h as rtk_plugin_main,g as rtk_tab_bar}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as a,H as s}from"./p-0ee570cd.js";import{e,h as o}from"./p-8046e263.js";import{c as n}from"./p-2857144e.js";import{S as r}from"./p-2799d5b2.js";var h=function(t,i,a,s){var e,o=arguments.length,n=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(o<3?e(n):o>3?e(i,a,n):e(i,a))||n);return o>3&&n&&Object.defineProperty(i,a,n),n};const l=class{constructor(a){t(this,a),this.stateUpdate=i(this,"rtkStateUpdate",7),this.unreadMessageCount=0,this.variant="button",this.iconPack=e,this.t=o(),this.chatActive=!1,this.canViewChat=!1,this.hasNewMessages=!1,this.onChatUpdate=({action:t,message:i})=>{var a;this.chatActive||"add"===t&&i.userId!==(null===(a=this.meeting)||void 0===a?void 0:a.self.userId)&&(this.hasNewMessages=!0,this.unreadMessageCount+=1)},this.toggleChat=()=>{const t=this.states;this.chatActive=!((null==t?void 0:t.activeSidebar)&&"chat"===(null==t?void 0:t.sidebar)),this.chatActive&&(this.unreadMessageCount=0,this.hasNewMessages=!1),this.stateUpdate.emit({activeSidebar:this.chatActive,sidebar:this.chatActive?"chat":void 0,activeMoreMenu:!1,activeAI:!1})},this.updateCanView=()=>{this.canViewChat=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,a,s,e,o;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.chat)||void 0===i||i.removeListener("chatUpdate",this.onChatUpdate),null===(s=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.updateCanView),null===(o=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===o||o.permissions.removeListener("chatUpdate",this.updateCanView)}meetingChanged(t){var i,a,s,e,o,r,h;if(!t)return;null===(i=t.chat)||void 0===i||i.getMessages((new Date).getTime(),1,!0).then((t=>{var i;(null===(i=null==t?void 0:t.messages)||void 0===i?void 0:i.length)&&(this.hasNewMessages=!0)}));const l=null!==(s=null===(a=t.meta)||void 0===a?void 0:a.meetingStartedTimestamp.getTime())&&void 0!==s?s:0,c=null===(e=t.chat)||void 0===e?void 0:e.messages.filter((t=>t.timeMs>l));this.unreadMessageCount=c.length||0,null===(o=t.chat)||void 0===o||o.addListener("chatUpdate",this.onChatUpdate),this.canViewChat=n(t),null===(r=null==t?void 0:t.stage)||void 0===r||r.on("stageStatusUpdate",this.updateCanView),null===(h=null==t?void 0:t.self)||void 0===h||h.permissions.on("chatUpdate",this.updateCanView)}statesChanged(t){null!=t&&(this.chatActive=!0===t.activeSidebar&&"chat"===t.sidebar)}handleChatActiveChange(){this.chatActive||this.states.activeSidebar||this.buttonEl.focus()}render(){return this.meeting?this.canViewChat?a(s,{title:this.t("chat")},this.hasNewMessages&&a("div",{class:"unread-count-dot",part:"unread-count-dot"}),a("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.chatActive},onClick:this.toggleChat,icon:this.iconPack.chat,label:this.t("chat"),variant:this.variant})):a(s,{"data-hidden":!0}):null}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],chatActive:["handleChatActiveChange"]}}};h([r()],l.prototype,"meeting",void 0),h([r()],l.prototype,"states",void 0),h([r()],l.prototype,"iconPack",void 0),h([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{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}.unread-count-dot{position:absolute;right:var(--rtk-space-3, 12px);z-index:10;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));border-radius:50%;display:flex;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);align-items:center;justify-content:center}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{l as rtk_chat_toggle}
@@ -1 +1 @@
1
- import{i as t,j as n,k as o,l as r,m as e,n as s,o as i,p as c,q as a,r as f,s as u,t as d,v as l,w as v,x as p,y as m,z as g,A as b,C as y,D as F,S as $}from"./p-89ebff3d.js";const x=[0,.5,1,1.5,2,3,4,5,6,7,8,9,10,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],k={darkest:{background:{1e3:"#080808",900:"#1A1A1A",800:"#1E1E1E",700:"#2C2C2C",600:"#393939"},text:"#FFFFFF"},dark:{background:{1e3:"#252525",900:"#2F2F2F",800:"#323232",700:"#3E3E3E",600:"#4A4A4A"},text:"#F5F5F5","video-bg":"#1C1C1C"},light:{background:{1e3:"#FFFFFF",900:"#F5F5F5",800:"#EBEBEB",700:"#E0E0E0",600:"#D6D6D6"},text:"#111111","text-on-brand":"#ffffff","video-bg":"#DADADA"}},h={none:{none:0,sm:0,md:0,lg:0},thin:{none:0,sm:1,md:2,lg:4},fat:{none:0,sm:2,md:4,lg:8}},j={sharp:{none:0,sm:0,md:0,lg:0},rounded:{none:0,sm:4,md:8,lg:12},"extra-rounded":{none:0,sm:8,md:16,lg:24},circular:{none:9999,sm:9999,md:9999,lg:9999}};function E(t){let n="0",o="0",r="0";return 4==(t=t.trim()).length?(n="0x"+t[1]+t[1],o="0x"+t[2]+t[2],r="0x"+t[3]+t[3]):t.length>6&&(n="0x"+t[1]+t[2],o="0x"+t[3]+t[4],r="0x"+t[5]+t[6]),[+n,+o,+r]}const A=t=>"string"==typeof t&&7===t.length&&t.startsWith("#"),w="--rtk-";function D(t,n=w){return n+t}const O=(t,n,o=w)=>{Object.keys(n).forEach((r=>{const e=n[r];if("string"==typeof e)if("text"===r||"text-on-brand"===r){const n=E(e).join(" ");t.style.setProperty(D(`colors-${r}-1000`,o),`${n}`),t.style.setProperty(D(`colors-${r}-900`,o),`${n} / 0.88`),t.style.setProperty(D(`colors-${r}-800`,o),`${n} / 0.76`),t.style.setProperty(D(`colors-${r}-700`,o),`${n} / 0.64`),t.style.setProperty(D(`colors-${r}-600`,o),`${n} / 0.52`)}else{const n=E(e).join(" ");t.style.setProperty(D(`colors-${r}`,o),n)}else"object"==typeof e&&Object.keys(e).forEach((n=>{const s=E(e[n]).join(" ");t.style.setProperty(D(`colors-${r}-${n}`,o),s)}))}))},C=(t,{spacingBase:n,borderRadius:o,borderWidth:r,colors:e,fontFamily:s,googleFont:i,theme:c,tokenPrefix:a=w})=>{if("object"!=typeof t)throw new Error("[rtk-ui-kit] (provideRtkDesignSystem): Passed element is not a valid HTML Element");if("string"==typeof i&&((t=>{const n=[];if(null==document.querySelector("link[data-rtk-font]")){const t=document.createElement("link");t.rel="preconnect",t.setAttribute("data-rtk-font","true"),t.href="https://fonts.googleapis.com";const o=t.cloneNode(!0);o.href="https://fonts.gstatic.com",o.crossOrigin="",n.push(t,o)}const o=document.createElement("link");o.rel="stylesheet",o.setAttribute("data-rtk-font",t),o.href=encodeURI(`https://fonts.googleapis.com/css2?family=${t}:wght@${[400,500,700].join(";")}&display=swap`),n.push(o),document.head.append(...n)})(i),t.style.setProperty(D("font-family",a),i)),"string"==typeof s&&t.style.setProperty(D("font-family",a),s),"number"==typeof n&&((t,n,o=w)=>{x.forEach((r=>{t.style.setProperty(D(`space-${r}`,o),r*n+"px")}))})(t,n,a),"string"==typeof r&&((t,n,o=w)=>{if(n in h){const r=h[n];Object.keys(r).forEach((n=>{t.style.setProperty(D(`border-width-${n}`,o),`${r[n]}px`)}))}})(t,r,a),"string"==typeof o&&((t,n,o=w)=>{if(n in j){const r=j[n];Object.keys(r).forEach((n=>{t.style.setProperty(D(`border-radius-${n}`,o),`${r[n]}px`)}))}})(t,o,a),"string"==typeof c){const n=k[c];null!=n&&O(t,n,a)}"object"==typeof e&&O(t,e,a)};function B(t){return t}var _,R,S,M=Date.now,P=t?function(n,o){return t(n,"toString",{configurable:!0,enumerable:!1,value:(r=o,function(){return r}),writable:!0});var r}:B;const q=(_=P,R=0,S=0,function(){var t=M(),n=16-(t-S);if(S=t,n>0){if(++R>=800)return arguments[0]}else R=0;return _.apply(void 0,arguments)});var z=Math.max;var H="[object Object]",I=Function.prototype.toString,L=Object.prototype.hasOwnProperty,T=I.call(Object);function U(t,n,o){(void 0!==o&&!e(t[n],o)||void 0===o&&!(n in t))&&a(t,n,o)}function W(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}function G(t,r,e,a,x){t!==r&&function(t,n,o){for(var r=-1,e=Object(t),s=o(t),i=s.length;i--;){var c=s[++r];if(!1===n(e[c],c,e))break}}(r,(function(k,h){if(x||(x=new $),n(k))!function(t,r,e,a,$,x,k){var h=W(t,e),j=W(r,e),E=k.get(j);if(E)U(t,e,E);else{var A,w=x?x(h,j,e+"",t,r,k):void 0,D=void 0===w;if(D){var O=d(j),C=!O&&l(j),B=!O&&!C&&v(j);w=j,O||C||B?d(h)?w=h:s(A=h)&&o(A)?w=p(h):C?(D=!1,w=m(j,!0)):B?(D=!1,w=g(j,!0)):w=[]:function(t){if(!s(t)||i(t)!=H)return!1;var n=c(t);if(null===n)return!0;var o=L.call(n,"constructor")&&n.constructor;return"function"==typeof o&&o instanceof o&&I.call(o)==T}(j)||b(j)?(w=h,b(h)?w=function(t){return f(t,u(t))}(h):n(h)&&!y(h)||(w=F(j))):D=!1}D&&(k.set(j,w),$(w,j,a,x,k),k.delete(j)),U(t,e,w)}}(t,r,h,e,G,a,x);else{var j=a?a(W(t,h),k,h+"",t,r,x):void 0;void 0===j&&(j=k),U(t,h,j)}}),u)}var J;const K=(J=function(t,n,o){G(t,n,o)},function(t,n){return q(function(t,n,o){return n=z(void 0===n?t.length-1:n,0),function(){for(var r=arguments,e=-1,s=z(r.length-n,0),i=Array(s);++e<s;)i[e]=r[n+e];e=-1;for(var c=Array(n+1);++e<n;)c[e]=r[e];return c[n]=o(i),function(t,n,o){switch(o.length){case 0:return t.call(n);case 1:return t.call(n,o[0]);case 2:return t.call(n,o[0],o[1]);case 3:return t.call(n,o[0],o[1],o[2])}return t.apply(n,o)}(t,this,c)}}(t,n,B),t+"")}((function(t,s){var i=-1,c=s.length,a=c>1?s[c-1]:void 0,f=c>2?s[2]:void 0;for(a=J.length>3&&"function"==typeof a?(c--,a):void 0,f&&function(t,s,i){if(!n(i))return!1;var c=typeof s;return!!("number"==c?o(i)&&r(s,i.length):"string"==c&&s in i)&&e(i[s],t)}(s[0],s[1],f)&&(a=c<3?void 0:a,c=1),t=Object(t);++i<c;){var u=s[i];u&&J(t,u,i)}return t})));export{K as d,A as i,C as p}
1
+ import{i as t,j as n,k as o,l as r,m as e,n as s,o as i,p as c,q as a,r as f,s as u,t as d,v as l,w as v,x as p,y as m,z as g,A as b,C as y,D as F,S as $}from"./p-8046e263.js";const x=[0,.5,1,1.5,2,3,4,5,6,7,8,9,10,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96],k={darkest:{background:{1e3:"#080808",900:"#1A1A1A",800:"#1E1E1E",700:"#2C2C2C",600:"#393939"},text:"#FFFFFF"},dark:{background:{1e3:"#252525",900:"#2F2F2F",800:"#323232",700:"#3E3E3E",600:"#4A4A4A"},text:"#F5F5F5","video-bg":"#1C1C1C"},light:{background:{1e3:"#FFFFFF",900:"#F5F5F5",800:"#EBEBEB",700:"#E0E0E0",600:"#D6D6D6"},text:"#111111","text-on-brand":"#ffffff","video-bg":"#DADADA"}},h={none:{none:0,sm:0,md:0,lg:0},thin:{none:0,sm:1,md:2,lg:4},fat:{none:0,sm:2,md:4,lg:8}},j={sharp:{none:0,sm:0,md:0,lg:0},rounded:{none:0,sm:4,md:8,lg:12},"extra-rounded":{none:0,sm:8,md:16,lg:24},circular:{none:9999,sm:9999,md:9999,lg:9999}};function E(t){let n="0",o="0",r="0";return 4==(t=t.trim()).length?(n="0x"+t[1]+t[1],o="0x"+t[2]+t[2],r="0x"+t[3]+t[3]):t.length>6&&(n="0x"+t[1]+t[2],o="0x"+t[3]+t[4],r="0x"+t[5]+t[6]),[+n,+o,+r]}const A=t=>"string"==typeof t&&7===t.length&&t.startsWith("#"),w="--rtk-";function D(t,n=w){return n+t}const O=(t,n,o=w)=>{Object.keys(n).forEach((r=>{const e=n[r];if("string"==typeof e)if("text"===r||"text-on-brand"===r){const n=E(e).join(" ");t.style.setProperty(D(`colors-${r}-1000`,o),`${n}`),t.style.setProperty(D(`colors-${r}-900`,o),`${n} / 0.88`),t.style.setProperty(D(`colors-${r}-800`,o),`${n} / 0.76`),t.style.setProperty(D(`colors-${r}-700`,o),`${n} / 0.64`),t.style.setProperty(D(`colors-${r}-600`,o),`${n} / 0.52`)}else{const n=E(e).join(" ");t.style.setProperty(D(`colors-${r}`,o),n)}else"object"==typeof e&&Object.keys(e).forEach((n=>{const s=E(e[n]).join(" ");t.style.setProperty(D(`colors-${r}-${n}`,o),s)}))}))},C=(t,{spacingBase:n,borderRadius:o,borderWidth:r,colors:e,fontFamily:s,googleFont:i,theme:c,tokenPrefix:a=w})=>{if("object"!=typeof t)throw new Error("[rtk-ui-kit] (provideRtkDesignSystem): Passed element is not a valid HTML Element");if("string"==typeof i&&((t=>{const n=[];if(null==document.querySelector("link[data-rtk-font]")){const t=document.createElement("link");t.rel="preconnect",t.setAttribute("data-rtk-font","true"),t.href="https://fonts.googleapis.com";const o=t.cloneNode(!0);o.href="https://fonts.gstatic.com",o.crossOrigin="",n.push(t,o)}const o=document.createElement("link");o.rel="stylesheet",o.setAttribute("data-rtk-font",t),o.href=encodeURI(`https://fonts.googleapis.com/css2?family=${t}:wght@${[400,500,700].join(";")}&display=swap`),n.push(o),document.head.append(...n)})(i),t.style.setProperty(D("font-family",a),i)),"string"==typeof s&&t.style.setProperty(D("font-family",a),s),"number"==typeof n&&((t,n,o=w)=>{x.forEach((r=>{t.style.setProperty(D(`space-${r}`,o),r*n+"px")}))})(t,n,a),"string"==typeof r&&((t,n,o=w)=>{if(n in h){const r=h[n];Object.keys(r).forEach((n=>{t.style.setProperty(D(`border-width-${n}`,o),`${r[n]}px`)}))}})(t,r,a),"string"==typeof o&&((t,n,o=w)=>{if(n in j){const r=j[n];Object.keys(r).forEach((n=>{t.style.setProperty(D(`border-radius-${n}`,o),`${r[n]}px`)}))}})(t,o,a),"string"==typeof c){const n=k[c];null!=n&&O(t,n,a)}"object"==typeof e&&O(t,e,a)};function B(t){return t}var _,R,S,M=Date.now,P=t?function(n,o){return t(n,"toString",{configurable:!0,enumerable:!1,value:(r=o,function(){return r}),writable:!0});var r}:B;const q=(_=P,R=0,S=0,function(){var t=M(),n=16-(t-S);if(S=t,n>0){if(++R>=800)return arguments[0]}else R=0;return _.apply(void 0,arguments)});var z=Math.max;var H="[object Object]",I=Function.prototype.toString,L=Object.prototype.hasOwnProperty,T=I.call(Object);function U(t,n,o){(void 0!==o&&!e(t[n],o)||void 0===o&&!(n in t))&&a(t,n,o)}function W(t,n){if(("constructor"!==n||"function"!=typeof t[n])&&"__proto__"!=n)return t[n]}function G(t,r,e,a,x){t!==r&&function(t,n,o){for(var r=-1,e=Object(t),s=o(t),i=s.length;i--;){var c=s[++r];if(!1===n(e[c],c,e))break}}(r,(function(k,h){if(x||(x=new $),n(k))!function(t,r,e,a,$,x,k){var h=W(t,e),j=W(r,e),E=k.get(j);if(E)U(t,e,E);else{var A,w=x?x(h,j,e+"",t,r,k):void 0,D=void 0===w;if(D){var O=d(j),C=!O&&l(j),B=!O&&!C&&v(j);w=j,O||C||B?d(h)?w=h:s(A=h)&&o(A)?w=p(h):C?(D=!1,w=m(j,!0)):B?(D=!1,w=g(j,!0)):w=[]:function(t){if(!s(t)||i(t)!=H)return!1;var n=c(t);if(null===n)return!0;var o=L.call(n,"constructor")&&n.constructor;return"function"==typeof o&&o instanceof o&&I.call(o)==T}(j)||b(j)?(w=h,b(h)?w=function(t){return f(t,u(t))}(h):n(h)&&!y(h)||(w=F(j))):D=!1}D&&(k.set(j,w),$(w,j,a,x,k),k.delete(j)),U(t,e,w)}}(t,r,h,e,G,a,x);else{var j=a?a(W(t,h),k,h+"",t,r,x):void 0;void 0===j&&(j=k),U(t,h,j)}}),u)}var J;const K=(J=function(t,n,o){G(t,n,o)},function(t,n){return q(function(t,n,o){return n=z(void 0===n?t.length-1:n,0),function(){for(var r=arguments,e=-1,s=z(r.length-n,0),i=Array(s);++e<s;)i[e]=r[n+e];e=-1;for(var c=Array(n+1);++e<n;)c[e]=r[e];return c[n]=o(i),function(t,n,o){switch(o.length){case 0:return t.call(n);case 1:return t.call(n,o[0]);case 2:return t.call(n,o[0],o[1]);case 3:return t.call(n,o[0],o[1],o[2])}return t.apply(n,o)}(t,this,c)}}(t,n,B),t+"")}((function(t,s){var i=-1,c=s.length,a=c>1?s[c-1]:void 0,f=c>2?s[2]:void 0;for(a=J.length>3&&"function"==typeof a?(c--,a):void 0,f&&function(t,s,i){if(!n(i))return!1;var c=typeof s;return!!("number"==c?o(i)&&r(s,i.length):"string"==c&&s in i)&&e(i[s],t)}(s[0],s[1],f)&&(a=c<3?void 0:a,c=1),t=Object(t);++i<c;){var u=s[i];u&&J(t,u,i)}return t})));export{K as d,A as i,C as p}
@@ -1 +1 @@
1
- import{r as i,c as t,h as s,H as o}from"./p-0ee570cd.js";import{e,h as a}from"./p-89ebff3d.js";import{S as l}from"./p-09c73782.js";var n=function(i,t,s,o){var e,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,t,s,o);else for(var n=i.length-1;n>=0;n--)(e=i[n])&&(l=(a<3?e(l):a>3?e(t,s,l):e(t,s))||l);return a>3&&l&&Object.defineProperty(t,s,l),l};const d=class{constructor(s){i(this,s),this.stateUpdate=t(this,"rtkStateUpdate",7),this.audioUpdateListener=({audioEnabled:i})=>{this.audioEnabled=i},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:i,message:t})=>{"audio"===i&&(this.micPermission=t)},this.meetingPermissionsUpdateListener=i=>{var t;(null===(t=null==i?void 0:i.media)||void 0===t?void 0:t.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.iconPack=e,this.t=a(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.toggleMic=()=>{var i,t,s,o,e,a,l,n,d,h,r,u;if(null===(i=this.meeting)||void 0===i||i.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:Boolean(null===(s=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===s?void 0:s.audioEnabled),permission:this.micPermission,canProduce:null===(a=null===(e=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===e?void 0:e.permissions)||void 0===a?void 0:a.canProduceAudio}},webinar:{stageStatus:null===(n=null===(l=this.meeting)||void 0===l?void 0:l.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(h=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===h?void 0:h.status},moduleExists:{self:Boolean(null===(r=this.meeting)||void 0===r?void 0:r.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const c=null===(u=this.meeting)||void 0===u?void 0:u.self;null!=c&&this.canProduceAudio&&(c.audioEnabled?c.disableAudio():c.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var i,t,s,o,e,a,l;null===(i=this.meeting)||void 0===i||i.self.removeListener("audioUpdate",this.audioUpdateListener),null===(t=this.meeting)||void 0===t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(o=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.stageStatusListener),null===(l=null===(a=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===a?void 0:a.permissions)||void 0===l||l.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}meetingChanged(i){var t,s;if(null!=i){const{self:o,stage:e}=i;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=i.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=o.audioEnabled,this.stageStatus=i.stage.status,o.addListener("audioUpdate",this.audioUpdateListener),o.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==e||e.addListener("stageStatusUpdate",this.stageStatusListener),null===(s=null===(t=i.self)||void 0===t?void 0:t.permissions)||void 0===s||s.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let i="",t="",s="",o={},e=this.hasPermissionError(),a="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!e?(t=this.t("mic_on"),s=this.iconPack.mic_on):(t=this.t("mic_off"),s=this.iconPack.mic_off,o["red-icon"]=!0),i=this.t(a?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:i,label:t,icon:s,classList:o,showWarning:e||a,disable:e}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return s(o,{"data-hidden":!0});const{tooltipLabel:i,label:t,icon:e,classList:a,showWarning:l,disable:n}=this.getState();return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:i,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,class:a,onClick:this.toggleMic,showWarning:l,disabled:n})))}static get watchers(){return{meeting:["meetingChanged"]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",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}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_mic_toggle}
1
+ import{r as i,c as t,h as s,H as o}from"./p-0ee570cd.js";import{e,h as a}from"./p-8046e263.js";import{S as l}from"./p-2799d5b2.js";var n=function(i,t,s,o){var e,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,t,s,o);else for(var n=i.length-1;n>=0;n--)(e=i[n])&&(l=(a<3?e(l):a>3?e(t,s,l):e(t,s))||l);return a>3&&l&&Object.defineProperty(t,s,l),l};const d=class{constructor(s){i(this,s),this.stateUpdate=t(this,"rtkStateUpdate",7),this.audioUpdateListener=({audioEnabled:i})=>{this.audioEnabled=i},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:i,message:t})=>{"audio"===i&&(this.micPermission=t)},this.meetingPermissionsUpdateListener=i=>{var t;(null===(t=null==i?void 0:i.media)||void 0===t?void 0:t.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.iconPack=e,this.t=a(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.toggleMic=()=>{var i,t,s,o,e,a,l,n,d,h,r,u;if(null===(i=this.meeting)||void 0===i||i.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:Boolean(null===(s=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===s?void 0:s.audioEnabled),permission:this.micPermission,canProduce:null===(a=null===(e=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===e?void 0:e.permissions)||void 0===a?void 0:a.canProduceAudio}},webinar:{stageStatus:null===(n=null===(l=this.meeting)||void 0===l?void 0:l.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(h=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===h?void 0:h.status},moduleExists:{self:Boolean(null===(r=this.meeting)||void 0===r?void 0:r.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const c=null===(u=this.meeting)||void 0===u?void 0:u.self;null!=c&&this.canProduceAudio&&(c.audioEnabled?c.disableAudio():c.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var i,t,s,o,e,a,l;null===(i=this.meeting)||void 0===i||i.self.removeListener("audioUpdate",this.audioUpdateListener),null===(t=this.meeting)||void 0===t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(o=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.stageStatusListener),null===(l=null===(a=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===a?void 0:a.permissions)||void 0===l||l.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}meetingChanged(i){var t,s;if(null!=i){const{self:o,stage:e}=i;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=i.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=o.audioEnabled,this.stageStatus=i.stage.status,o.addListener("audioUpdate",this.audioUpdateListener),o.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==e||e.addListener("stageStatusUpdate",this.stageStatusListener),null===(s=null===(t=i.self)||void 0===t?void 0:t.permissions)||void 0===s||s.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let i="",t="",s="",o={},e=this.hasPermissionError(),a="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!e?(t=this.t("mic_on"),s=this.iconPack.mic_on):(t=this.t("mic_off"),s=this.iconPack.mic_off,o["red-icon"]=!0),i=this.t(a?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:i,label:t,icon:s,classList:o,showWarning:e||a,disable:e}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return s(o,{"data-hidden":!0});const{tooltipLabel:i,label:t,icon:e,classList:a,showWarning:l,disable:n}=this.getState();return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:i,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,class:a,onClick:this.toggleMic,showWarning:l,disabled:n})))}static get watchers(){return{meeting:["meetingChanged"]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",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}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_mic_toggle}
@@ -1 +1 @@
1
- import{r as t,c as e,h as r,H as a}from"./p-0ee570cd.js";import{h as s}from"./p-89ebff3d.js";import{S as o}from"./p-09c73782.js";const i=class{constructor(r){t(this,r),this.dismiss=e(this,"rtkTranscriptDismiss",7),this.t=s()}connectedCallback(){this.transcriptChanged(this.transcript)}transcriptChanged(t,e){if((null==e?void 0:e.renderedId)===t.renderedId&&(null==e?void 0:e.transcript)===t.transcript)return;if(clearTimeout(this.timeout),!(null==t?void 0:t.name)||!(null==t?void 0:t.transcript))return;const{id:r,renderedId:a}=t;this.timeout=setTimeout((()=>{this.dismiss.emit({id:r,renderedId:a})}),1e4)}render(){return r(a,{key:"f114d024507ae77ac2597ecd060e3ff44ff14b62"},r("div",{key:"0a2b1de3c21d77fcf73a0e025e8faa82b61ac23e",class:"ctr"},r("p",{key:"eee54f37929772f547113c899cbbcd89e451f64d",class:"message"},r("span",{key:"3599abf0271f4847d0e19629c9966b02a168bdb8",class:"name"},this.transcript.name),": ",this.transcript.transcript)))}static get watchers(){return{transcript:["transcriptChanged"]}}};(function(t,e,r,a){var s,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(o<3?s(i):o>3?s(e,r,i):s(e,r))||i);o>3&&i&&Object.defineProperty(e,r,i)})([o()],i.prototype,"t",void 0),i.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{pointer-events:none;display:block;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;justify-content:center;vertical-align:middle;animation:show 0.4s ease;transition:0.4s;z-index:5;width:100%}.ctr{box-sizing:border-box;display:inline-flex;height:100%;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-shadow:var(--tw-shadow-colored);pointer-events:auto;padding:var(--rtk-space-3, 12px);overflow:auto;max-width:50%}.message{margin:var(--rtk-space-0, 0px);display:inline-block;justify-content:center;max-width:100%;text-wrap:wrap;line-height:1.5rem}.message .name{font-weight:bold}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateY(120px)}100%{opacity:1;transform:translateY(0px)}}@keyframes exit{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-120px)}}:host([size='sm']){font-size:14px}";export{i as rtk_transcript}
1
+ import{r as t,c as e,h as r,H as a}from"./p-0ee570cd.js";import{h as s}from"./p-8046e263.js";import{S as o}from"./p-2799d5b2.js";const i=class{constructor(r){t(this,r),this.dismiss=e(this,"rtkTranscriptDismiss",7),this.t=s()}connectedCallback(){this.transcriptChanged(this.transcript)}transcriptChanged(t,e){if((null==e?void 0:e.renderedId)===t.renderedId&&(null==e?void 0:e.transcript)===t.transcript)return;if(clearTimeout(this.timeout),!(null==t?void 0:t.name)||!(null==t?void 0:t.transcript))return;const{id:r,renderedId:a}=t;this.timeout=setTimeout((()=>{this.dismiss.emit({id:r,renderedId:a})}),1e4)}render(){return r(a,{key:"f114d024507ae77ac2597ecd060e3ff44ff14b62"},r("div",{key:"0a2b1de3c21d77fcf73a0e025e8faa82b61ac23e",class:"ctr"},r("p",{key:"eee54f37929772f547113c899cbbcd89e451f64d",class:"message"},r("span",{key:"3599abf0271f4847d0e19629c9966b02a168bdb8",class:"name"},this.transcript.name),": ",this.transcript.transcript)))}static get watchers(){return{transcript:["transcriptChanged"]}}};(function(t,e,r,a){var s,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(o<3?s(i):o>3?s(e,r,i):s(e,r))||i);o>3&&i&&Object.defineProperty(e,r,i)})([o()],i.prototype,"t",void 0),i.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{pointer-events:none;display:block;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;justify-content:center;vertical-align:middle;animation:show 0.4s ease;transition:0.4s;z-index:5;width:100%}.ctr{box-sizing:border-box;display:inline-flex;height:100%;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-shadow:var(--tw-shadow-colored);pointer-events:auto;padding:var(--rtk-space-3, 12px);overflow:auto;max-width:50%}.message{margin:var(--rtk-space-0, 0px);display:inline-block;justify-content:center;max-width:100%;text-wrap:wrap;line-height:1.5rem}.message .name{font-weight:bold}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateY(120px)}100%{opacity:1;transform:translateY(0px)}}@keyframes exit{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-120px)}}:host([size='sm']){font-size:14px}";export{i as rtk_transcript}
@@ -1 +1 @@
1
- import{G as t}from"./p-89ebff3d.js";const n=t=>{let n=null;try{const e=JSON.parse(t.message),{target:s,message:r}=e;n=void 0===s||void 0===r?t:Object.assign(Object.assign({},t),{targetUserIds:s,message:r})}catch(e){n=t}return n};function e(t,n){return t.localeCompare(n)}function s(t){return t.sort(((t,n)=>t.localeCompare(n))).join("_")}function r(t,n){if(null==t)return!0;for(const e of t)if("file"===e.kind){const t=e.getAsFile();e.type.startsWith("image/")?n("image",t):n("file",t)}}function o({messages:t,participants:e,selfUserId:r}){const o={};for(const t of e)o[s([t.userId,r])]=[];return t.forEach((t=>{var e;const r=n(t);let c="everyone";if((null===(e=r.targetUserIds)||void 0===e?void 0:e.length)>0){const t=new Set([r.userId,...r.targetUserIds]);c=s(Array.from(t))}o[c]||(o[c]=[]),o[c].push({type:"chat",message:r})})),o}function c({messages:n,selfUserId:e,selectedGroupId:s,participants:r}){var c;const a=o({messages:n,selfUserId:e,participants:r}),i={};for(const n in a){const r=null!==(c=t[n])&&void 0!==c?c:0;n===s?(i[n]=0,t[n]=new Date):i[n]=a[n].filter((t=>"chat"==t.type&&t.message.time>r&&t.message.userId!==e)).length}return i}function a({groupId:t,selfUserId:n}){return t.split("_").find((t=>t!=n))}const i="dm__";function u(t){return t.isDirectMessage}function f(t){return[...new Set(t)].sort(e).join("<>")}function l(t){return t.split("").reverse().join("")}const p=/^\*([^*\s]+)\*/,d=/^_([^_\s]+)_/,b=/^~([^~\s]+)~/,g=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.,~#?&//=]*)/,m=/<blockquote>[.\s\S]*<\/blockquote>\n\n/m;function _(t,n=!1){if(!m.test(t))return"";let e=0,s=13;return n&&(e=12,s=0),t.substring(t.indexOf("<blockquote>")+e,t.indexOf("</blockquote>")+s)}function v(t){return t.replace(m,"")}const q=2e3,I=["<a>","<b>","<i>","<q>","<s>"];function w(t){t=(t=t.split(" ").map((t=>{if(g.test(t)){const n=g.exec(t);t=t.replace(n[0],`<a>${n[0]}</a>`)}else{if(p.test(t)){const n=p.exec(t);t=t.replace(n[0],`<b>${n[1]}</b>`)}if(d.test(t)){const n=d.exec(t);t=t.replace(n[0],`<i>${n[1]}</i>`)}if(b.test(t)){const n=b.exec(t);t=t.replace(n[0],`<s>${n[1]}</s>`)}}return t})).join(" ")).split(" ").map(((t,n)=>">"!==t||0!==n&&">"!==t[n-1]?t:"<q></q>")).join(" ");const[n]=y(t);return n}function y(t,n=""){const e=[];if(0===t.length)return[e,0];let s=0;for(;s<t.length;){if(n.length&&n===t.substring(s,s+n.length))return[e,s+n.length];if(I.includes(t.substring(s,s+3))){const[n,r]=y(t.substring(s+3),`</${t[s+1]}>`);e.push({type:t[s+1],content:1===n.length&&"plain_text"===n[0].type?n[0].content:n}),s+=r+3}else{let n=e[e.length-1];n&&"plain_text"===n.type||(e.push({type:"plain_text",content:""}),n=e[e.length-1]),n.content+=t[s],s++}}return[e,s]}export{q as M,i as T,o as a,c as b,a as c,e as d,f as e,w as f,s as g,r as h,u as i,_ as j,m as k,n as p,l as r,v as s}
1
+ import{G as t}from"./p-8046e263.js";const n=t=>{let n=null;try{const e=JSON.parse(t.message),{target:s,message:r}=e;n=void 0===s||void 0===r?t:Object.assign(Object.assign({},t),{targetUserIds:s,message:r})}catch(e){n=t}return n};function e(t,n){return t.localeCompare(n)}function s(t){return t.sort(((t,n)=>t.localeCompare(n))).join("_")}function r(t,n){if(null==t)return!0;for(const e of t)if("file"===e.kind){const t=e.getAsFile();e.type.startsWith("image/")?n("image",t):n("file",t)}}function o({messages:t,participants:e,selfUserId:r}){const o={};for(const t of e)o[s([t.userId,r])]=[];return t.forEach((t=>{var e;const r=n(t);let c="everyone";if((null===(e=r.targetUserIds)||void 0===e?void 0:e.length)>0){const t=new Set([r.userId,...r.targetUserIds]);c=s(Array.from(t))}o[c]||(o[c]=[]),o[c].push({type:"chat",message:r})})),o}function c({messages:n,selfUserId:e,selectedGroupId:s,participants:r}){var c;const a=o({messages:n,selfUserId:e,participants:r}),i={};for(const n in a){const r=null!==(c=t[n])&&void 0!==c?c:0;n===s?(i[n]=0,t[n]=new Date):i[n]=a[n].filter((t=>"chat"==t.type&&t.message.time>r&&t.message.userId!==e)).length}return i}function a({groupId:t,selfUserId:n}){return t.split("_").find((t=>t!=n))}const i="dm__";function u(t){return t.isDirectMessage}function f(t){return[...new Set(t)].sort(e).join("<>")}function l(t){return t.split("").reverse().join("")}const p=/^\*([^*\s]+)\*/,d=/^_([^_\s]+)_/,g=/^~([^~\s]+)~/,m=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.,~#?&//=]*)/,_=/<blockquote>[.\s\S]*<\/blockquote>\n\n/m;function b(t,n=!1){if(!_.test(t))return"";let e=0,s=13;return n&&(e=12,s=0),t.substring(t.indexOf("<blockquote>")+e,t.indexOf("</blockquote>")+s)}function v(t){return t.replace(_,"")}const q=2e3,I=["<a>","<b>","<i>","<q>","<s>"];function w(t){t=(t=t.split(" ").map((t=>{if(m.test(t)){const n=m.exec(t);t=t.replace(n[0],`<a>${n[0]}</a>`)}else{if(p.test(t)){const n=p.exec(t);t=t.replace(n[0],`<b>${n[1]}</b>`)}if(d.test(t)){const n=d.exec(t);t=t.replace(n[0],`<i>${n[1]}</i>`)}if(g.test(t)){const n=g.exec(t);t=t.replace(n[0],`<s>${n[1]}</s>`)}}return t})).join(" ")).split(" ").map(((t,n)=>">"!==t||0!==n&&">"!==t[n-1]?t:"<q></q>")).join(" ");const[n]=y(t);return n}function y(t,n=""){const e=[];if(0===t.length)return[e,0];let s=0;for(;s<t.length;){if(n.length&&n===t.substring(s,s+n.length))return[e,s+n.length];if(I.includes(t.substring(s,s+3))){const[n,r]=y(t.substring(s+3),`</${t[s+1]}>`);e.push({type:t[s+1],content:1===n.length&&"plain_text"===n[0].type?n[0].content:n}),s+=r+3}else{let n=e[e.length-1];n&&"plain_text"===n.type||(e.push({type:"plain_text",content:""}),n=e[e.length-1]),n.content+=t[s],s++}}return[e,s]}export{q as M,i as T,o as a,c as b,a as c,e as d,f as e,w as f,s as g,r as h,u as i,b as j,_ as k,n as p,l as r,v as s}
@@ -1 +1 @@
1
- import{a as e}from"./p-0ee570cd.js";import{u as t,O as o,P as r}from"./p-89ebff3d.js";function n(){return function(n,s){const{connectedCallback:c,disconnectedCallback:a}=n;n.connectedCallback=function(){const n=e(this),a=n[s];n[`_rtkStoreToCleanup-${s}`]=t,a||(n[s]=t.state[s],o(s,n,t));const d=e=>{if(e.detail.requestId===n._storeRequestId){const c=e.detail.store.state[s];n.componentOnReady().then((()=>{n[s]=c})),o(s,n,e.detail.store),n[`_rtkStoreToCleanup-${s}`]=e.detail.store,r(s,n,t)}};n[`_rtkStoreResponseListener-${s}`]=d,document.addEventListener("rtkProvideStore",d);const u=`${n.tagName}-${Date.now()}-${Math.random()}`;n._storeRequestId=u;const i=new CustomEvent("rtkRequestStore",{detail:{element:n,propName:s,requestId:u},bubbles:!0,composed:!0});n.dispatchEvent(i);const l=()=>{const e=`${n.tagName}-${Date.now()}-${Math.random().toString(36)}`;n._storeRequestId=e;const t=new CustomEvent("rtkRequestStore",{detail:{element:n,propName:s,requestId:e},bubbles:!0,composed:!0});n.dispatchEvent(t)};return n[`_rtkStoreReadyListener-${s}`]=l,document.addEventListener("rtkPeerStoreReady",l),null==c?void 0:c.call(this)},n.disconnectedCallback=function(){const t=e(this);r(s,t,t[`_rtkStoreToCleanup-${s}`]);const o=t[`_rtkStoreResponseListener-${s}`];o&&(document.removeEventListener("rtkProvideStore",o),delete t[`_rtkStoreResponseListener-${s}`]);const n=t[`_rtkStoreReadyListener-${s}`];return n&&(document.removeEventListener("rtkPeerStoreReady",n),delete t[`_rtkStoreReadyListener-${s}`]),null==a?void 0:a.call(this)}}}export{n as S}
1
+ import{a as e}from"./p-0ee570cd.js";import{u as t,N as o,O as r}from"./p-8046e263.js";function n(){return function(n,s){const{connectedCallback:c,disconnectedCallback:a}=n;n.connectedCallback=function(){const n=e(this),a=n[s];n[`_rtkStoreToCleanup-${s}`]=t,a||(n[s]=t.state[s],o(s,n,t));const d=e=>{if(e.detail.requestId===n._storeRequestId){const c=e.detail.store.state[s];n.componentOnReady().then((()=>{n[s]=c})),o(s,n,e.detail.store),n[`_rtkStoreToCleanup-${s}`]=e.detail.store,r(s,n,t)}};n[`_rtkStoreResponseListener-${s}`]=d,document.addEventListener("rtkProvideStore",d);const u=`${n.tagName}-${Date.now()}-${Math.random()}`;n._storeRequestId=u;const i=new CustomEvent("rtkRequestStore",{detail:{element:n,propName:s,requestId:u},bubbles:!0,composed:!0});n.dispatchEvent(i);const l=()=>{const e=`${n.tagName}-${Date.now()}-${Math.random().toString(36)}`;n._storeRequestId=e;const t=new CustomEvent("rtkRequestStore",{detail:{element:n,propName:s,requestId:e},bubbles:!0,composed:!0});n.dispatchEvent(t)};return n[`_rtkStoreReadyListener-${s}`]=l,document.addEventListener("rtkPeerStoreReady",l),null==c?void 0:c.call(this)},n.disconnectedCallback=function(){const t=e(this);r(s,t,t[`_rtkStoreToCleanup-${s}`]);const o=t[`_rtkStoreResponseListener-${s}`];o&&(document.removeEventListener("rtkProvideStore",o),delete t[`_rtkStoreResponseListener-${s}`]);const n=t[`_rtkStoreReadyListener-${s}`];return n&&(document.removeEventListener("rtkPeerStoreReady",n),delete t[`_rtkStoreReadyListener-${s}`]),null==a?void 0:a.call(this)}}}export{n as S}
@@ -1 +1 @@
1
- import{T as r}from"./p-89ebff3d.js";const t=r=>{if(r&&!r.chat)return!1;const{chatPublic:t,chatPrivate:n}=r.self.permissions;return t.canSend||t.canReceive||t.text||t.files||n.canSend||n.canReceive||n.files||n.text},n=r=>{if(r&&!r.polls)return!1;const{polls:t}=r.self.permissions;return t.canCreate||t.canView||t.canVote},u=r=>{var t;if(!(null===(t=r.self.permissions)||void 0===t?void 0:t.showParticipantList))return!1;if(r&&!r.participants)return!1;const n=null==r?void 0:r.self.config;return!(n&&!n.controlBar.elements.participants)},e=t=>{if(r(t))return!1;if(t&&!t.plugins)return!1;if("LIVESTREAM"===t.meta.viewType)return"ON_STAGE"===t.stage.status;const{plugins:n}=t.self.permissions;return n.canClose||n.canStart};export{u as a,e as b,t as c,n as d}
1
+ import{R as r}from"./p-8046e263.js";const t=r=>{if(r&&!r.chat)return!1;const{chatPublic:t,chatPrivate:n}=r.self.permissions;return t.canSend||t.canReceive||t.text||t.files||n.canSend||n.canReceive||n.files||n.text},n=r=>{if(r&&!r.polls)return!1;const{polls:t}=r.self.permissions;return t.canCreate||t.canView||t.canVote},u=r=>{var t;if(!(null===(t=r.self.permissions)||void 0===t?void 0:t.showParticipantList))return!1;if(r&&!r.participants)return!1;const n=null==r?void 0:r.self.config;return!(n&&!n.controlBar.elements.participants)},e=t=>{if(r(t))return!1;if(t&&!t.plugins)return!1;if("LIVESTREAM"===t.meta.viewType)return"ON_STAGE"===t.stage.status;const{plugins:n}=t.self.permissions;return n.canClose||n.canStart};export{u as a,e as b,t as c,n as d}
@@ -1 +1 @@
1
- import{r as t,c as s,h as i,H as e}from"./p-0ee570cd.js";import{e as h,h as a}from"./p-89ebff3d.js";import{S as r}from"./p-09c73782.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"]}}};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,c as s,h as i,H as e}from"./p-0ee570cd.js";import{e as h,h as a}from"./p-8046e263.js";import{S as r}from"./p-2799d5b2.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"]}}};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,c as r,w as a,h as e,H as i}from"./p-0ee570cd.js";import{e as s,h as o,M as c}from"./p-89ebff3d.js";import{r as n,h as l,k as d,j as h,s as p,M as b}from"./p-b6b382fb.js";import{S as k}from"./p-09c73782.js";var f=function(t,r,a,e){var i,s=arguments.length,o=s<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(r,a,o):i(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const v="@",g=class{constructor(i){t(this,i),this.onNewMessage=r(this,"rtkNewMessage",7),this.onEditMessage=r(this,"rtkEditMessage",7),this.onEditCancelled=r(this,"rtkEditCancelled",7),this.canSendTextMessage=!1,this.canSendFiles=!1,this.iconPack=s,this.t=o(),this.disableEmojiPicker=!1,this.prefill={},this.members=[],this.emojiPickerActive=!1,this.mentionQuery="",this.focusedMemberIndex=0,this.filePreview=null,this.fileReader=new FileReader,this.fileToUpload=null,this.handleKeyDown=t=>{if(t.key===v&&[void 0," "].includes(this.$textArea.value.at(-1))&&(this.mentionQuery=v),"ArrowDown"===t.key&&(this.focusedMemberIndex=Math.min(this.focusedMemberIndex+1,this.getFilteredMembers().length-1)),"ArrowUp"===t.key&&(this.focusedMemberIndex=Math.max(0,this.focusedMemberIndex-1)),("Escape"===t.key||"Backspace"===t.key&&this.mentionQuery===v)&&(this.mentionQuery=""),["Enter","Tab"," "].includes(t.key)&&""!==this.mentionQuery){const r=this.getFilteredMembers()[this.focusedMemberIndex];return this.onMemberSelect(r),void t.preventDefault()}"Enter"===t.key&&t.shiftKey?this.$textArea.clientHeight<200&&(this.$textArea.style.height=this.$textArea.clientHeight+20+"px"):"Enter"===t.key?(t.preventDefault(),this.prefill.editMessage?this.handleEditMessage():this.handleSendMessage()):"Backspace"===t.key&&(this.$textArea.value.endsWith("\n")?this.$textArea.style.height=this.$textArea.clientHeight-20+"px":""===this.$textArea.value&&(this.$textArea.style.height="auto"))},this.handleKeyUp=()=>{if(""!==this.mentionQuery){const t=n(this.$textArea.value.trim()),r=t.substring(0,t.indexOf(v));this.mentionQuery=`${v}${n(r)}`}},this.onPaste=t=>{const r=t.clipboardData||t.originalEvent.clipboardData;a((()=>{r&&r.items&&r.items.length>0&&(l(r.items,this.generateFilePreview),this.$textArea.value="")}))},this.generateFilePreview=(t,r)=>{this.fileToUpload={type:t,image:r,file:r},"image"===t?this.fileReader.readAsDataURL(r):"file"===t&&(this.filePreview=r.name)},this.sendFile=()=>{this.canSendFiles&&(this.onNewMessage.emit("image"===this.fileToUpload.type?{type:"image",file:this.fileToUpload.image,image:this.fileToUpload.image}:{type:"file",file:this.fileToUpload.file}),this.cleanUpFileUpload())},this.handleSendMessage=()=>{if(!this.canSendTextMessage)return;if(null!==this.fileToUpload)return void this.sendFile();const t=this.$textArea.value.trim();t.length>0&&(this.onNewMessage.emit(this.prefill.replyMessage?{type:"text",message:t,replyTo:this.prefill.replyMessage}:{type:"text",message:t}),this.cleanup())},this.cleanup=()=>{this.mentionQuery="",this.focusedMemberIndex=0,this.$textArea.value="",this.$textArea.style.height="auto",c.setItem(this.storageKey,"")},this.handleEditMessage=()=>{var t;let r=this.$textArea.value.trim();(null===(t=this.prefill.editMessage)||void 0===t?void 0:t.message)&&d.test(this.prefill.editMessage.message)&&(r=`${h(this.prefill.editMessage.message)}\n\n${r}`),this.onEditMessage.emit({id:this.prefill.editMessage.id,message:r,channelId:this.prefill.editMessage.channelId}),this.cleanup()},this.handleEditCancel=()=>{this.onEditCancelled.emit(),this.cleanup()},this.initializeTextField=t=>{this.$textArea=t;const r=c.getItem(this.storageKey)||"";this.$textArea.value=r},this.onMemberSelect=t=>{const r=n(this.mentionQuery),e=n(this.$textArea.value.trim()).replace(r,"");this.$textArea.value=n(e)+`${v}${t.name} `,this.mentionQuery="",this.focusedMemberIndex=0,a((()=>this.$textArea.focus()))},this.getFilteredMembers=()=>{const t=this.mentionQuery.replace(v,"");return this.members.filter((r=>r.name.toLowerCase().includes(t.toLowerCase())))},this.cleanUpFileUpload=()=>{this.filePreview=null,this.fileToUpload=null},this.renderSuggestedReplies=()=>{if(this.prefill.suggestedReplies&&0!==this.prefill.suggestedReplies.length)return e("ul",{class:"suggested-replies scrollbar"},this.prefill.suggestedReplies.map((t=>e("rtk-tooltip",{label:this.t("chat.click_to_send")},e("li",{onClick:()=>this.onNewMessage.emit({type:"text",message:t})},t)))))},this.renderMenu=()=>{if(0===this.mentionQuery.length)return;const t=this.getFilteredMembers();return 0!==t.length?e("ul",{class:"member-list scrollbar"},t.map(((t,r)=>e("li",{class:{member:!0,selected:r===this.focusedMemberIndex},onClick:()=>this.onMemberSelect(t),ref:t=>{r===this.focusedMemberIndex&&a((()=>{t&&t.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}))}},e("rtk-avatar",{participant:{name:t.name,picture:t.picture},size:"sm"}),e("span",null,t.name))))):void 0}}connectedCallback(){this.fileReader.onload=t=>{"string"==typeof t.target.result&&(this.filePreview=t.target.result)}}onChannelChanged(){this.mentionQuery="",this.focusedMemberIndex=0;const t=c.getItem(this.storageKey)||"";this.$textArea.value=t,this.emojiPickerActive=!1}componentDidRender(){(this.prefill.editMessage||this.prefill.replyMessage)&&a((()=>this.$textArea.focus()))}get storageKey(){return this.channelId?`rtk-text-message-${this.channelId}`:"rtk-text-message"}uploadFile(t){const r=document.createElement("input");r.type="file","image"===t&&(r.accept="image/*"),r.onchange=r=>{const{validity:a,files:[e]}=r.target;a.valid&&this.generateFilePreview(t,e)},r.click()}renderFilePreview(){if("string"==typeof this.filePreview)return e("div",{class:"preview-overlay"},e("div",{class:"file-preview"},e("rtk-tooltip",{label:this.t("chat.cancel_upload")},e("rtk-button",{variant:"secondary",kind:"icon",onClick:this.cleanUpFileUpload},e("rtk-icon",{icon:this.iconPack.dismiss}))),"image"===this.fileToUpload.type?e("img",{class:"preview-image",src:this.filePreview}):e("div",{class:"preview-file"},e("span",null,this.filePreview))))}render(){var t;let r="";return(null===(t=this.prefill.editMessage)||void 0===t?void 0:t.message)&&(r=p(this.prefill.editMessage.message)),e(i,{key:"0550423a075a5e445ebae18e70213e17dd79c6ff"},this.canSendTextMessage&&this.emojiPickerActive&&e("rtk-emoji-picker",{key:"89eaa1c1e0ae3da8fed3c203fd87a19cd5f19b8e",part:"emoji-picker",onPickerClose:()=>{this.emojiPickerActive=!1},onRtkEmojiClicked:t=>{this.$textArea.value+=t.detail,this.$textArea.focus()},t:this.t}),this.renderSuggestedReplies(),e("slot",{key:"6da586002dff47002d856c0204dee2bbe8571236",name:"chat-addon"}),e("slot",{key:"fa285ac5f4fb88ddcc3aa9b6a294d12b09cd94e9",name:"quote-block"}),e("div",{key:"c71568bf5344f9fcd3be019d02ca4bf1a8a9d9b8",class:"chat-input",part:"chat-input"},this.renderMenu(),this.canSendTextMessage&&e("textarea",{key:"ec57005f4795fefdaaba266d9e891853a5bded1f",class:"scrollbar",part:"textarea",ref:this.initializeTextField,autoFocus:!0,placeholder:this.fileToUpload?"":this.t("chat.message_placeholder"),value:r,onPaste:this.onPaste,maxLength:b,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onInput:t=>{c.setItem(this.storageKey,t.target.value)},disabled:!!this.filePreview}),e("div",{key:"322d141483c79366ef59dee65a5072a6f437a64a",class:"chat-buttons",part:"chat-buttons"},e("div",{key:"cb287e6ced3bb48f445af933a99a1f8100ac41c6",class:"left",part:"chat-buttons-left"},!this.prefill.editMessage&&this.canSendFiles&&[e("rtk-tooltip",{key:"78c91b6a2097013f3da368086e868d2d465ec9cb",label:this.t("chat.send_file")},e("rtk-button",{key:"278e56e0d1d012c658a74a07aece9f07fb13b486",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile("file"),title:this.t("chat.send_file")},e("rtk-icon",{key:"f0551578a82d14a0313044c257a2cd04b8a4320e",icon:this.iconPack.attach}))),e("rtk-tooltip",{key:"f1f658aece9261ff928f631b78545bfc2cc6b99e",label:this.t("chat.send_img")},e("rtk-button",{key:"31e9bb3127886607cb630db538b6acdc405df324",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile("image"),title:this.t("chat.send_img")},e("rtk-icon",{key:"66f46b7128dcbb041a2e35a5a9d61eb087aae126",icon:this.iconPack.image})))],!this.prefill.editMessage&&this.canSendTextMessage&&!this.disableEmojiPicker&&e("rtk-tooltip",{key:"28524998014e48efa944db921c6ebaa644f7522c",label:this.t("chat.send_emoji")},e("rtk-button",{key:"2ab4710a53f8c399b94fdf89d8b3e26ecdfb38c9",variant:"ghost",kind:"icon",class:{active:this.emojiPickerActive},title:this.t("chat.send_emoji"),onClick:()=>{this.emojiPickerActive=!this.emojiPickerActive}},e("rtk-icon",{key:"eb26faa361adb34eb7afbd013c21a5039e32292d",icon:this.iconPack.emoji_multiple})))),!!this.filePreview&&this.renderFilePreview(),this.canSendTextMessage&&e("div",{key:"820a5ff20514c9802d3612045f36d95d2358dcda",class:"right",part:"chat-buttons-right"},!this.prefill.editMessage&&e("rtk-tooltip",{key:"405fb291f728f2afa6940a82cbc16777e8eba2bc",variant:"primary",label:this.t("chat.send_msg"),delay:2e3},e("rtk-button",{key:"4bff2c0bf52fc35da61d67760d82943b4516c358",kind:"icon",onClick:()=>this.handleSendMessage(),title:this.t("chat.send_msg")},e("rtk-icon",{key:"d5294b068fbb1e60bdccb899b7931c03e4fb9eb1",icon:this.iconPack.send}))),this.prefill.editMessage&&e("div",{key:"995aa908ccab6ab22252d78ddefed672474f56a0",class:"edit-buttons"},e("rtk-tooltip",{key:"2429c8023b38ba99c8e0b3a66206f719ce0e1932",variant:"secondary",label:this.t("cancel"),delay:2e3},e("rtk-button",{key:"2fbaa972db33e50976661f4a02a3be9d67ec78fa",kind:"icon",variant:"secondary",onClick:()=>this.handleEditCancel(),title:this.t("cancel")},e("rtk-icon",{key:"3466f90521e92efe325dec9bd7c3419f726713d8",icon:this.iconPack.dismiss}))),e("rtk-tooltip",{key:"84af3b7940bcdeec414e42cbda84359154a19a19",variant:"primary",label:this.t("chat.update_msg"),delay:2e3},e("rtk-button",{key:"580af6cecb00e77994e688a9bd70b63aeb1f0782",kind:"icon",onClick:()=>this.handleEditMessage(),title:this.t("chat.send_msg")},e("rtk-icon",{key:"a6266954cfa1ffbcc6e3606bfe993e54e3f5c5ee",icon:this.iconPack.checkmark}))))))))}static get watchers(){return{channelId:["onChannelChanged"]}}};f([k()],g.prototype,"iconPack",void 0),f([k()],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)))\n 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;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.chat-input{position:relative;margin:var(--rtk-space-2, 8px);z-index:10;box-sizing:border-box;display:flex;flex-direction:column;border-radius:var(--rtk-border-radius-md, 8px);border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}textarea{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));box-sizing:border-box;padding:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::-moz-placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea{border-top-left-radius:var(--rtk-border-radius-md, 8px);border-top-right-radius:var(--rtk-border-radius-md, 8px);font-family:var(--rtk-font-family, sans-serif);outline:2px solid transparent;outline-offset:2px;resize:none;overflow-y:auto;border-width:var(--rtk-border-width-none, 0);border-style:none;min-height:60px;font-size:16px}.chat-buttons{border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-left-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}.chat-buttons .left rtk-button{margin-right:var(--rtk-space-1, 4px)}.chat-buttons .left rtk-button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-buttons .right{z-index:10}.chat-buttons .right .edit-buttons{display:flex;gap:var(--rtk-space-2, 8px)}.chat-buttons>div{display:flex;align-items:center}rtk-emoji-picker{z-index:0;position:absolute;bottom:var(--rtk-space-32, 128px);border-top:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));animation:0.3s slide-up ease}@keyframes slide-up{from{transform:translateY(100%)}to{transform:translateY(0%)}}.member-list{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-1, 4px);max-height:var(--rtk-space-28, 112px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);padding:var(--rtk-space-0, 0px);position:absolute;bottom:var(--rtk-space-28, 112px);list-style-type:none;overflow-y:auto;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-sm, 4px);--tw-border-spacing-x:var(--rtk-space-2, 8px);--tw-border-spacing-y:var(--rtk-space-2, 8px);border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-style:solid;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.member-list .member{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-4, 16px);cursor:pointer}.member-list .member rtk-avatar{flex-shrink:0;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);font-size:14px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.member-list .member span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-list .member:hover,.member-list .member.selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-700, 2 70 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.suggested-replies{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-3, 12px);display:flex;flex-wrap:nowrap;gap:var(--rtk-space-2, 8px);list-style-type:none;overflow-x:auto}.suggested-replies rtk-tooltip{flex-shrink:0}.suggested-replies li{padding:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.75);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));cursor:pointer}.suggested-replies li:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity))}.preview-overlay{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-md, 8px)}.file-preview{position:absolute;top:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);max-width:-moz-fit-content;max-width:fit-content;max-height:var(--rtk-space-20, 80px)}.file-preview:hover rtk-tooltip{display:block}.file-preview rtk-tooltip{position:absolute;top:calc(var(--rtk-space-1, 4px) * -1);left:calc(var(--rtk-space-1, 4px) * -1);display:none;margin-left:calc(var(--rtk-space-1, 4px) * -1);margin-top:calc(var(--rtk-space-1, 4px) * -1)}.file-preview rtk-button{display:flex;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));border:1px solid rgb(var(--rtk-colors-text-1000, 255 255 255))}.file-preview rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.preview-image{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);-o-object-fit:cover;object-fit:cover;max-height:100%;max-width:100%;overflow:clip;border-radius:var(--rtk-border-radius-md, 8px)}.preview-file{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--rtk-border-radius-md, 8px);max-width:200px}@keyframes scroll-text{0%{transform:translateX(0%)}70%{transform:translateX(-100%)}80%{transform:translateX(0%)}100%{transform:translateX(0%)}}";export{g as rtk_chat_composer_ui}
1
+ import{r as t,c as r,w as a,h as e,H as i}from"./p-0ee570cd.js";import{e as s,h as o,L as c}from"./p-8046e263.js";import{r as n,h as l,k as d,j as h,s as p,M as b}from"./p-2318c3af.js";import{S as k}from"./p-2799d5b2.js";var f=function(t,r,a,e){var i,s=arguments.length,o=s<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(r,a,o):i(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const v="@",g=class{constructor(i){t(this,i),this.onNewMessage=r(this,"rtkNewMessage",7),this.onEditMessage=r(this,"rtkEditMessage",7),this.onEditCancelled=r(this,"rtkEditCancelled",7),this.canSendTextMessage=!1,this.canSendFiles=!1,this.iconPack=s,this.t=o(),this.disableEmojiPicker=!1,this.prefill={},this.members=[],this.emojiPickerActive=!1,this.mentionQuery="",this.focusedMemberIndex=0,this.filePreview=null,this.fileReader=new FileReader,this.fileToUpload=null,this.handleKeyDown=t=>{if(t.key===v&&[void 0," "].includes(this.$textArea.value.at(-1))&&(this.mentionQuery=v),"ArrowDown"===t.key&&(this.focusedMemberIndex=Math.min(this.focusedMemberIndex+1,this.getFilteredMembers().length-1)),"ArrowUp"===t.key&&(this.focusedMemberIndex=Math.max(0,this.focusedMemberIndex-1)),("Escape"===t.key||"Backspace"===t.key&&this.mentionQuery===v)&&(this.mentionQuery=""),["Enter","Tab"," "].includes(t.key)&&""!==this.mentionQuery){const r=this.getFilteredMembers()[this.focusedMemberIndex];return this.onMemberSelect(r),void t.preventDefault()}"Enter"===t.key&&t.shiftKey?this.$textArea.clientHeight<200&&(this.$textArea.style.height=this.$textArea.clientHeight+20+"px"):"Enter"===t.key?(t.preventDefault(),this.prefill.editMessage?this.handleEditMessage():this.handleSendMessage()):"Backspace"===t.key&&(this.$textArea.value.endsWith("\n")?this.$textArea.style.height=this.$textArea.clientHeight-20+"px":""===this.$textArea.value&&(this.$textArea.style.height="auto"))},this.handleKeyUp=()=>{if(""!==this.mentionQuery){const t=n(this.$textArea.value.trim()),r=t.substring(0,t.indexOf(v));this.mentionQuery=`${v}${n(r)}`}},this.onPaste=t=>{const r=t.clipboardData||t.originalEvent.clipboardData;a((()=>{r&&r.items&&r.items.length>0&&(l(r.items,this.generateFilePreview),this.$textArea.value="")}))},this.generateFilePreview=(t,r)=>{this.fileToUpload={type:t,image:r,file:r},"image"===t?this.fileReader.readAsDataURL(r):"file"===t&&(this.filePreview=r.name)},this.sendFile=()=>{this.canSendFiles&&(this.onNewMessage.emit("image"===this.fileToUpload.type?{type:"image",file:this.fileToUpload.image,image:this.fileToUpload.image}:{type:"file",file:this.fileToUpload.file}),this.cleanUpFileUpload())},this.handleSendMessage=()=>{if(!this.canSendTextMessage)return;if(null!==this.fileToUpload)return void this.sendFile();const t=this.$textArea.value.trim();t.length>0&&(this.onNewMessage.emit(this.prefill.replyMessage?{type:"text",message:t,replyTo:this.prefill.replyMessage}:{type:"text",message:t}),this.cleanup())},this.cleanup=()=>{this.mentionQuery="",this.focusedMemberIndex=0,this.$textArea.value="",this.$textArea.style.height="auto",c.setItem(this.storageKey,"")},this.handleEditMessage=()=>{var t;let r=this.$textArea.value.trim();(null===(t=this.prefill.editMessage)||void 0===t?void 0:t.message)&&d.test(this.prefill.editMessage.message)&&(r=`${h(this.prefill.editMessage.message)}\n\n${r}`),this.onEditMessage.emit({id:this.prefill.editMessage.id,message:r,channelId:this.prefill.editMessage.channelId}),this.cleanup()},this.handleEditCancel=()=>{this.onEditCancelled.emit(),this.cleanup()},this.initializeTextField=t=>{this.$textArea=t;const r=c.getItem(this.storageKey)||"";this.$textArea.value=r},this.onMemberSelect=t=>{const r=n(this.mentionQuery),e=n(this.$textArea.value.trim()).replace(r,"");this.$textArea.value=n(e)+`${v}${t.name} `,this.mentionQuery="",this.focusedMemberIndex=0,a((()=>this.$textArea.focus()))},this.getFilteredMembers=()=>{const t=this.mentionQuery.replace(v,"");return this.members.filter((r=>r.name.toLowerCase().includes(t.toLowerCase())))},this.cleanUpFileUpload=()=>{this.filePreview=null,this.fileToUpload=null},this.renderSuggestedReplies=()=>{if(this.prefill.suggestedReplies&&0!==this.prefill.suggestedReplies.length)return e("ul",{class:"suggested-replies scrollbar"},this.prefill.suggestedReplies.map((t=>e("rtk-tooltip",{label:this.t("chat.click_to_send")},e("li",{onClick:()=>this.onNewMessage.emit({type:"text",message:t})},t)))))},this.renderMenu=()=>{if(0===this.mentionQuery.length)return;const t=this.getFilteredMembers();return 0!==t.length?e("ul",{class:"member-list scrollbar"},t.map(((t,r)=>e("li",{class:{member:!0,selected:r===this.focusedMemberIndex},onClick:()=>this.onMemberSelect(t),ref:t=>{r===this.focusedMemberIndex&&a((()=>{t&&t.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}))}},e("rtk-avatar",{participant:{name:t.name,picture:t.picture},size:"sm"}),e("span",null,t.name))))):void 0}}connectedCallback(){this.fileReader.onload=t=>{"string"==typeof t.target.result&&(this.filePreview=t.target.result)}}onChannelChanged(){this.mentionQuery="",this.focusedMemberIndex=0;const t=c.getItem(this.storageKey)||"";this.$textArea.value=t,this.emojiPickerActive=!1}componentDidRender(){(this.prefill.editMessage||this.prefill.replyMessage)&&a((()=>this.$textArea.focus()))}get storageKey(){return this.channelId?`rtk-text-message-${this.channelId}`:"rtk-text-message"}uploadFile(t){const r=document.createElement("input");r.type="file","image"===t&&(r.accept="image/*"),r.onchange=r=>{const{validity:a,files:[e]}=r.target;a.valid&&this.generateFilePreview(t,e)},r.click()}renderFilePreview(){if("string"==typeof this.filePreview)return e("div",{class:"preview-overlay"},e("div",{class:"file-preview"},e("rtk-tooltip",{label:this.t("chat.cancel_upload")},e("rtk-button",{variant:"secondary",kind:"icon",onClick:this.cleanUpFileUpload},e("rtk-icon",{icon:this.iconPack.dismiss}))),"image"===this.fileToUpload.type?e("img",{class:"preview-image",src:this.filePreview}):e("div",{class:"preview-file"},e("span",null,this.filePreview))))}render(){var t;let r="";return(null===(t=this.prefill.editMessage)||void 0===t?void 0:t.message)&&(r=p(this.prefill.editMessage.message)),e(i,{key:"0550423a075a5e445ebae18e70213e17dd79c6ff"},this.canSendTextMessage&&this.emojiPickerActive&&e("rtk-emoji-picker",{key:"89eaa1c1e0ae3da8fed3c203fd87a19cd5f19b8e",part:"emoji-picker",onPickerClose:()=>{this.emojiPickerActive=!1},onRtkEmojiClicked:t=>{this.$textArea.value+=t.detail,this.$textArea.focus()},t:this.t}),this.renderSuggestedReplies(),e("slot",{key:"6da586002dff47002d856c0204dee2bbe8571236",name:"chat-addon"}),e("slot",{key:"fa285ac5f4fb88ddcc3aa9b6a294d12b09cd94e9",name:"quote-block"}),e("div",{key:"c71568bf5344f9fcd3be019d02ca4bf1a8a9d9b8",class:"chat-input",part:"chat-input"},this.renderMenu(),this.canSendTextMessage&&e("textarea",{key:"ec57005f4795fefdaaba266d9e891853a5bded1f",class:"scrollbar",part:"textarea",ref:this.initializeTextField,autoFocus:!0,placeholder:this.fileToUpload?"":this.t("chat.message_placeholder"),value:r,onPaste:this.onPaste,maxLength:b,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onInput:t=>{c.setItem(this.storageKey,t.target.value)},disabled:!!this.filePreview}),e("div",{key:"322d141483c79366ef59dee65a5072a6f437a64a",class:"chat-buttons",part:"chat-buttons"},e("div",{key:"cb287e6ced3bb48f445af933a99a1f8100ac41c6",class:"left",part:"chat-buttons-left"},!this.prefill.editMessage&&this.canSendFiles&&[e("rtk-tooltip",{key:"78c91b6a2097013f3da368086e868d2d465ec9cb",label:this.t("chat.send_file")},e("rtk-button",{key:"278e56e0d1d012c658a74a07aece9f07fb13b486",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile("file"),title:this.t("chat.send_file")},e("rtk-icon",{key:"f0551578a82d14a0313044c257a2cd04b8a4320e",icon:this.iconPack.attach}))),e("rtk-tooltip",{key:"f1f658aece9261ff928f631b78545bfc2cc6b99e",label:this.t("chat.send_img")},e("rtk-button",{key:"31e9bb3127886607cb630db538b6acdc405df324",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile("image"),title:this.t("chat.send_img")},e("rtk-icon",{key:"66f46b7128dcbb041a2e35a5a9d61eb087aae126",icon:this.iconPack.image})))],!this.prefill.editMessage&&this.canSendTextMessage&&!this.disableEmojiPicker&&e("rtk-tooltip",{key:"28524998014e48efa944db921c6ebaa644f7522c",label:this.t("chat.send_emoji")},e("rtk-button",{key:"2ab4710a53f8c399b94fdf89d8b3e26ecdfb38c9",variant:"ghost",kind:"icon",class:{active:this.emojiPickerActive},title:this.t("chat.send_emoji"),onClick:()=>{this.emojiPickerActive=!this.emojiPickerActive}},e("rtk-icon",{key:"eb26faa361adb34eb7afbd013c21a5039e32292d",icon:this.iconPack.emoji_multiple})))),!!this.filePreview&&this.renderFilePreview(),this.canSendTextMessage&&e("div",{key:"820a5ff20514c9802d3612045f36d95d2358dcda",class:"right",part:"chat-buttons-right"},!this.prefill.editMessage&&e("rtk-tooltip",{key:"405fb291f728f2afa6940a82cbc16777e8eba2bc",variant:"primary",label:this.t("chat.send_msg"),delay:2e3},e("rtk-button",{key:"4bff2c0bf52fc35da61d67760d82943b4516c358",kind:"icon",onClick:()=>this.handleSendMessage(),title:this.t("chat.send_msg")},e("rtk-icon",{key:"d5294b068fbb1e60bdccb899b7931c03e4fb9eb1",icon:this.iconPack.send}))),this.prefill.editMessage&&e("div",{key:"995aa908ccab6ab22252d78ddefed672474f56a0",class:"edit-buttons"},e("rtk-tooltip",{key:"2429c8023b38ba99c8e0b3a66206f719ce0e1932",variant:"secondary",label:this.t("cancel"),delay:2e3},e("rtk-button",{key:"2fbaa972db33e50976661f4a02a3be9d67ec78fa",kind:"icon",variant:"secondary",onClick:()=>this.handleEditCancel(),title:this.t("cancel")},e("rtk-icon",{key:"3466f90521e92efe325dec9bd7c3419f726713d8",icon:this.iconPack.dismiss}))),e("rtk-tooltip",{key:"84af3b7940bcdeec414e42cbda84359154a19a19",variant:"primary",label:this.t("chat.update_msg"),delay:2e3},e("rtk-button",{key:"580af6cecb00e77994e688a9bd70b63aeb1f0782",kind:"icon",onClick:()=>this.handleEditMessage(),title:this.t("chat.send_msg")},e("rtk-icon",{key:"a6266954cfa1ffbcc6e3606bfe993e54e3f5c5ee",icon:this.iconPack.checkmark}))))))))}static get watchers(){return{channelId:["onChannelChanged"]}}};f([k()],g.prototype,"iconPack",void 0),f([k()],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)))\n 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;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.chat-input{position:relative;margin:var(--rtk-space-2, 8px);z-index:10;box-sizing:border-box;display:flex;flex-direction:column;border-radius:var(--rtk-border-radius-md, 8px);border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}textarea{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));box-sizing:border-box;padding:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::-moz-placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea{border-top-left-radius:var(--rtk-border-radius-md, 8px);border-top-right-radius:var(--rtk-border-radius-md, 8px);font-family:var(--rtk-font-family, sans-serif);outline:2px solid transparent;outline-offset:2px;resize:none;overflow-y:auto;border-width:var(--rtk-border-width-none, 0);border-style:none;min-height:60px;font-size:16px}.chat-buttons{border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-left-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}.chat-buttons .left rtk-button{margin-right:var(--rtk-space-1, 4px)}.chat-buttons .left rtk-button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-buttons .right{z-index:10}.chat-buttons .right .edit-buttons{display:flex;gap:var(--rtk-space-2, 8px)}.chat-buttons>div{display:flex;align-items:center}rtk-emoji-picker{z-index:0;position:absolute;bottom:var(--rtk-space-32, 128px);border-top:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));animation:0.3s slide-up ease}@keyframes slide-up{from{transform:translateY(100%)}to{transform:translateY(0%)}}.member-list{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-1, 4px);max-height:var(--rtk-space-28, 112px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);padding:var(--rtk-space-0, 0px);position:absolute;bottom:var(--rtk-space-28, 112px);list-style-type:none;overflow-y:auto;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-sm, 4px);--tw-border-spacing-x:var(--rtk-space-2, 8px);--tw-border-spacing-y:var(--rtk-space-2, 8px);border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-style:solid;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.member-list .member{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-4, 16px);cursor:pointer}.member-list .member rtk-avatar{flex-shrink:0;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);font-size:14px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.member-list .member span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-list .member:hover,.member-list .member.selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-700, 2 70 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.suggested-replies{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-3, 12px);display:flex;flex-wrap:nowrap;gap:var(--rtk-space-2, 8px);list-style-type:none;overflow-x:auto}.suggested-replies rtk-tooltip{flex-shrink:0}.suggested-replies li{padding:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.75);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));cursor:pointer}.suggested-replies li:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity))}.preview-overlay{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-md, 8px)}.file-preview{position:absolute;top:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);max-width:-moz-fit-content;max-width:fit-content;max-height:var(--rtk-space-20, 80px)}.file-preview:hover rtk-tooltip{display:block}.file-preview rtk-tooltip{position:absolute;top:calc(var(--rtk-space-1, 4px) * -1);left:calc(var(--rtk-space-1, 4px) * -1);display:none;margin-left:calc(var(--rtk-space-1, 4px) * -1);margin-top:calc(var(--rtk-space-1, 4px) * -1)}.file-preview rtk-button{display:flex;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));border:1px solid rgb(var(--rtk-colors-text-1000, 255 255 255))}.file-preview rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.preview-image{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);-o-object-fit:cover;object-fit:cover;max-height:100%;max-width:100%;overflow:clip;border-radius:var(--rtk-border-radius-md, 8px)}.preview-file{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--rtk-border-radius-md, 8px);max-width:200px}@keyframes scroll-text{0%{transform:translateX(0%)}70%{transform:translateX(-100%)}80%{transform:translateX(0%)}100%{transform:translateX(0%)}}";export{g as rtk_chat_composer_ui}