@cloudflare/realtimekit-ui 2.1.1-staging.1 → 2.2.0-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 (661) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-BC_FZZjt.js → TextMessage-BA97TnvX.js} +1 -1
  3. package/dist/cjs/{chat-D-UECZep.js → chat-NY588mAE.js} +1 -1
  4. package/dist/cjs/{config-QKPY7hOX.js → config-Chzt-h7l.js} +2 -2
  5. package/dist/cjs/{debounce-DvnLkO30.js → debounce-CoFZKdWb.js} +1 -1
  6. package/dist/cjs/{index-BUlqL6tn.js → index-BeKaBV5F.js} +1 -1
  7. package/dist/cjs/index-Bi2L8zQ7.js +6 -2
  8. package/dist/cjs/index.cjs.js +4 -4
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  11. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  16. package/dist/cjs/{rtk-audio-visualizer_4.cjs.entry.js → rtk-audio-visualizer_3.cjs.entry.js} +14 -82
  17. package/dist/cjs/rtk-avatar_26.cjs.entry.js +6 -6
  18. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  19. package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  22. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +90 -13
  23. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  25. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  27. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  29. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-file-message_3.cjs.entry.js +4 -4
  41. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  54. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +81 -10
  55. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  61. package/dist/cjs/rtk-notifications.cjs.entry.js +3 -3
  62. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  64. package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
  65. package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
  66. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  68. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  69. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +47 -41
  78. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  80. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-setup-screen.cjs.entry.js +10 -5
  82. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  85. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  88. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-switch.cjs.entry.js +74 -0
  90. package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
  91. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  92. package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
  93. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
  94. package/dist/cjs/{ui-kit-metadata-Cjs7_Xqr.js → ui-kit-metadata-zBJ8NnVE.js} +2 -2
  95. package/dist/cjs/{ui-store-CrqwtYqt.js → ui-store-DSyXGfDZ.js} +10 -0
  96. package/dist/collection/components/rtk-ai/rtk-ai.js +2 -2
  97. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +2 -2
  98. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +2 -2
  99. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +2 -2
  100. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +2 -2
  101. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +2 -2
  102. package/dist/collection/components/rtk-avatar/rtk-avatar.js +2 -2
  103. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +2 -2
  104. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +2 -2
  105. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +2 -2
  106. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +2 -2
  107. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +2 -2
  108. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +2 -2
  109. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.css +149 -0
  110. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +140 -13
  111. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +2 -2
  112. package/dist/collection/components/rtk-chat/rtk-chat.js +3 -3
  113. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +2 -2
  114. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +2 -2
  115. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +2 -2
  116. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +2 -2
  117. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +2 -2
  118. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +2 -2
  119. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +3 -3
  120. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +2 -2
  121. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +2 -2
  122. package/dist/collection/components/rtk-clock/rtk-clock.js +1 -1
  123. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +2 -2
  124. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +2 -2
  125. package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +1 -1
  126. package/dist/collection/components/rtk-counter/rtk-counter.js +2 -2
  127. package/dist/collection/components/rtk-debugger/rtk-debugger.js +2 -2
  128. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +2 -2
  129. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +2 -2
  130. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +2 -2
  131. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +2 -2
  132. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +2 -2
  133. package/dist/collection/components/rtk-dialog/rtk-dialog.js +2 -2
  134. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +2 -2
  135. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +2 -2
  136. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +2 -2
  137. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +2 -2
  138. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +2 -2
  139. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +2 -2
  140. package/dist/collection/components/rtk-file-message/rtk-file-message.js +2 -2
  141. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +1 -1
  142. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +3 -3
  143. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +2 -2
  144. package/dist/collection/components/rtk-grid/rtk-grid.js +2 -2
  145. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +2 -2
  146. package/dist/collection/components/rtk-header/rtk-header.js +2 -2
  147. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +2 -2
  148. package/dist/collection/components/rtk-image-message/rtk-image-message.js +2 -2
  149. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +2 -2
  150. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +2 -2
  151. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
  152. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +2 -2
  153. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +2 -2
  154. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +2 -2
  155. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +2 -2
  156. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +2 -2
  157. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -2
  158. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  159. package/dist/collection/components/rtk-meeting/rtk-meeting.js +3 -3
  160. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +2 -2
  161. package/dist/collection/components/rtk-menu/rtk-menu.js +2 -2
  162. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +2 -2
  163. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +2 -2
  164. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +1 -1
  165. package/dist/collection/components/rtk-message-view/rtk-message-view.js +1 -1
  166. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.css +136 -0
  167. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +107 -10
  168. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +2 -2
  169. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +2 -2
  170. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +2 -2
  171. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +2 -2
  172. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +2 -2
  173. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +2 -2
  174. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +2 -2
  175. package/dist/collection/components/rtk-notification/rtk-notification.js +2 -2
  176. package/dist/collection/components/rtk-notifications/rtk-notifications.js +2 -2
  177. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +2 -2
  178. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +2 -2
  179. package/dist/collection/components/rtk-participant/rtk-participant.js +2 -2
  180. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +2 -2
  181. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +2 -2
  182. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +2 -2
  183. package/dist/collection/components/rtk-participants/rtk-participants.js +2 -2
  184. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +2 -2
  185. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +2 -2
  186. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -2
  187. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +2 -2
  188. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +2 -2
  189. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +2 -2
  190. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +2 -2
  191. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +2 -2
  192. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -2
  193. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +2 -2
  194. package/dist/collection/components/rtk-plugins/rtk-plugins.js +2 -2
  195. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +2 -2
  196. package/dist/collection/components/rtk-poll/rtk-poll.js +2 -2
  197. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +2 -2
  198. package/dist/collection/components/rtk-polls/rtk-polls.js +2 -2
  199. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +2 -2
  200. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +2 -2
  201. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +2 -2
  202. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +2 -2
  203. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +47 -41
  204. package/dist/collection/components/rtk-settings/rtk-settings.js +2 -2
  205. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +2 -2
  206. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +2 -2
  207. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +2 -2
  208. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.css +1 -0
  209. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +35 -4
  210. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +2 -2
  211. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +3 -3
  212. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +2 -2
  213. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +2 -2
  214. package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
  215. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +2 -2
  216. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +2 -2
  217. package/dist/collection/components/rtk-stage/rtk-stage.js +2 -2
  218. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +2 -2
  219. package/dist/collection/components/rtk-switch/rtk-switch.js +2 -2
  220. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +2 -2
  221. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +2 -2
  222. package/dist/collection/components/rtk-text-message/rtk-text-message.js +2 -2
  223. package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
  224. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  225. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +3 -3
  226. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +2 -2
  227. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +2 -2
  228. package/dist/collection/lib/icons/default-icon-pack.js +2 -0
  229. package/dist/collection/lib/lang/default-language.js +6 -0
  230. package/dist/collection/lib/overrides.js +1 -0
  231. package/dist/collection/utils/ui-kit-metadata.js +1 -1
  232. package/dist/components/index.js +1 -1
  233. package/dist/components/p--EktoJd3.js +1 -0
  234. package/dist/components/{p-7MYbXrJb.js → p--F3BGV0E.js} +1 -1
  235. package/dist/components/{p-B-Um3Y0q.js → p-0I1N5xHK.js} +1 -1
  236. package/dist/components/{p-CqIpJqLB.js → p-36vx_Mui.js} +1 -1
  237. package/dist/components/p-9axQDs3P.js +1 -0
  238. package/dist/components/{p-D3Csm8eQ.js → p-B0Fo3cKf.js} +1 -1
  239. package/dist/components/{p-G-tM5Cb1.js → p-B2EHfWpD.js} +1 -1
  240. package/dist/components/{p-DjY5-zh6.js → p-B2RoJ1tz.js} +1 -1
  241. package/dist/components/{p-TUA15Ldm.js → p-B3ATJ-iD.js} +1 -1
  242. package/dist/components/{p-CO2yazTI.js → p-B5Ikq3LV.js} +1 -1
  243. package/dist/components/{p-CzenMmyk.js → p-B6IcTqkN.js} +1 -1
  244. package/dist/components/{p-BSNjo06h.js → p-BBRpBb3D.js} +1 -1
  245. package/dist/components/{p-B8oiDtR2.js → p-BC__OeWi.js} +1 -1
  246. package/dist/components/{p-dd1Gb3yO.js → p-BGaDuggr.js} +1 -1
  247. package/dist/components/{p-jMTHZUBS.js → p-BNjHUNwU.js} +1 -1
  248. package/dist/components/{p-YvtLtXG0.js → p-BQMMBSP2.js} +1 -1
  249. package/dist/components/{p-C8f6mc2h.js → p-BVRIm4Vt.js} +1 -1
  250. package/dist/components/{p-CFixwcvq.js → p-BWLmBQB7.js} +1 -1
  251. package/dist/components/{p-BXDIi4ef.js → p-BWqnoSw2.js} +1 -1
  252. package/dist/components/{p-C4lt-ETX.js → p-BX3gY1PP.js} +1 -1
  253. package/dist/components/{p-CMjUxdV6.js → p-Bc2jtNZw.js} +1 -1
  254. package/dist/components/{p-BOEr6Iwn.js → p-Be6GRqFL.js} +1 -1
  255. package/dist/components/{p-CRh2Y0y5.js → p-BeJhcBfy.js} +1 -1
  256. package/dist/components/{p-smk-gW4k.js → p-BeWjGx1n.js} +1 -1
  257. package/dist/components/{p-C6xptC8n.js → p-BjG7yuwj.js} +1 -1
  258. package/dist/components/{p-Bki9SL7E.js → p-BjZJaxt1.js} +1 -1
  259. package/dist/components/{p-JLHMB5KF.js → p-Bjx68Nkv.js} +1 -1
  260. package/dist/components/{p-4YgSkkuy.js → p-Bp8UGnBB.js} +1 -1
  261. package/dist/components/{p-Dguuxuf6.js → p-Bs5Z4Y29.js} +1 -1
  262. package/dist/components/{p-CnRk9_SJ.js → p-Btj1QSzG.js} +1 -1
  263. package/dist/components/{p-Dy4fzIMn.js → p-BugzZ4hY.js} +1 -1
  264. package/dist/components/{p-C8uVSyiQ.js → p-ByMjaTnP.js} +1 -1
  265. package/dist/components/{p-C47OQEBv.js → p-C07P-YzZ.js} +1 -1
  266. package/dist/components/{p-Bn0NaoHe.js → p-C7Rh2NRS.js} +1 -1
  267. package/dist/components/{p-lZCkNPO8.js → p-C8IQnQjR.js} +1 -1
  268. package/dist/components/{p-B5VTCZYP.js → p-CGVMdadq.js} +1 -1
  269. package/dist/components/{p-DybK0cgl.js → p-CH7w_Zrp.js} +1 -1
  270. package/dist/components/{p-CZ-yWzjf.js → p-CHSH0L_g.js} +1 -1
  271. package/dist/components/{p-BmRBlzRm.js → p-CM3Y2kOg.js} +1 -1
  272. package/dist/components/{p-Cm_EjOFw.js → p-CWxtbDEh.js} +1 -1
  273. package/dist/components/{p-CcZ1rLgH.js → p-CXDRC8Nb.js} +1 -1
  274. package/dist/components/{p-BnrujTeq.js → p-C_e0a6jQ.js} +1 -1
  275. package/dist/components/{p-oXrlIvqH.js → p-CcGN9NRd.js} +1 -1
  276. package/dist/components/{p-C2sFSKW3.js → p-CiX87kt0.js} +1 -1
  277. package/dist/components/{p-D5_4BJmf.js → p-CjOKLEdP.js} +1 -1
  278. package/dist/components/{p-BDLrJQ3A.js → p-CkNlX5-Y.js} +1 -1
  279. package/dist/components/p-CtPr1nvA.js +1 -0
  280. package/dist/components/{p-CQs7VlOJ.js → p-CugPCiPF.js} +1 -1
  281. package/dist/components/{p-fRvBvGz0.js → p-CxPXk2ws.js} +1 -1
  282. package/dist/components/{p-CuvMKEb3.js → p-D34dZlkT.js} +1 -1
  283. package/dist/components/{p-CQTewof6.js → p-D9cHynev.js} +1 -1
  284. package/dist/components/{p-Cer_tqK4.js → p-DAGCKEFc.js} +1 -1
  285. package/dist/components/{p-BrckmZjB.js → p-DAq4FN_d.js} +1 -1
  286. package/dist/components/{p-Dzj9iKF_.js → p-DC-3Hg9I.js} +1 -1
  287. package/dist/components/{p-Dr9eIVd4.js → p-DNy6quyg.js} +1 -1
  288. package/dist/components/{p-3mW_xZnk.js → p-DPENu38v.js} +1 -1
  289. package/dist/components/{p-DfawVT5m.js → p-DUIWB0ra.js} +1 -1
  290. package/dist/components/{p-Bj2I3AdD.js → p-DW9czTAD.js} +1 -1
  291. package/dist/components/{p-CcwCRJb3.js → p-DalLUQa1.js} +1 -1
  292. package/dist/components/{p-3tT2SY78.js → p-Dc5xkFI9.js} +1 -1
  293. package/dist/components/{p-BdxzrANc.js → p-Dp2LhUKa.js} +1 -1
  294. package/dist/components/{p-yDQrj0hk.js → p-Ds5j-VXZ.js} +1 -1
  295. package/dist/components/{p-CsfjUh-o.js → p-DuRlksIi.js} +1 -1
  296. package/dist/components/{p-D7MMFHbo.js → p-DxZ5v-a-.js} +1 -1
  297. package/dist/components/{p-CYoLYETf.js → p-GMH-Dp75.js} +1 -1
  298. package/dist/components/{p-BlOYC_3W.js → p-GtIz3u0L.js} +1 -1
  299. package/dist/components/{p-Bj1kNPpe.js → p-HuHRVcj4.js} +1 -1
  300. package/dist/components/{p-BDVl60pn.js → p-Ic4M6IZs.js} +1 -1
  301. package/dist/components/{p-CYD_rssA.js → p-IilUR0Z4.js} +1 -1
  302. package/dist/components/{p-24rczPkc.js → p-U9jg1DvO.js} +1 -1
  303. package/dist/components/{p-D6A3HkFv.js → p-Zkjzr8ZL.js} +1 -1
  304. package/dist/components/p-aXMUeMjU.js +1 -0
  305. package/dist/components/{p-Brlo91Mk.js → p-g5NPAxAj.js} +1 -1
  306. package/dist/components/{p-SUA0Nsyy.js → p-gBEnKt4T.js} +1 -1
  307. package/dist/components/{p-Bjaz-VFa.js → p-ifBo9NHb.js} +1 -1
  308. package/dist/components/{p-QjucuYy0.js → p-kGPSVdob.js} +1 -1
  309. package/dist/components/{p-GyIcfxbi.js → p-msSLVaDl.js} +1 -1
  310. package/dist/components/{p-CC_VHXzN.js → p-oXCkwBKR.js} +1 -1
  311. package/dist/components/{p-Ce9i2yF0.js → p-uxGiMP6W.js} +1 -1
  312. package/dist/components/{p-BEJdtq2m.js → p-vADJB1c2.js} +1 -1
  313. package/dist/components/{p-BUnJ03If.js → p-xLck_VlO.js} +1 -1
  314. package/dist/components/rtk-ai-toggle.js +1 -1
  315. package/dist/components/rtk-ai-transcriptions.js +1 -1
  316. package/dist/components/rtk-ai.js +1 -1
  317. package/dist/components/rtk-audio-grid.js +1 -1
  318. package/dist/components/rtk-audio-tile.js +1 -1
  319. package/dist/components/rtk-audio-visualizer.js +1 -1
  320. package/dist/components/rtk-avatar.js +1 -1
  321. package/dist/components/rtk-breakout-room-manager.js +1 -1
  322. package/dist/components/rtk-breakout-room-participants.js +1 -1
  323. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  324. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  325. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  326. package/dist/components/rtk-camera-selector.js +1 -1
  327. package/dist/components/rtk-camera-toggle.js +1 -1
  328. package/dist/components/rtk-caption-toggle.js +1 -1
  329. package/dist/components/rtk-chat-composer-ui.js +1 -1
  330. package/dist/components/rtk-chat-composer-view.js +1 -1
  331. package/dist/components/rtk-chat-header.js +1 -1
  332. package/dist/components/rtk-chat-message.js +1 -1
  333. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  334. package/dist/components/rtk-chat-messages-ui.js +1 -1
  335. package/dist/components/rtk-chat-search-results.js +1 -1
  336. package/dist/components/rtk-chat-selector-ui.js +1 -1
  337. package/dist/components/rtk-chat-selector.js +1 -1
  338. package/dist/components/rtk-chat-toggle.js +1 -1
  339. package/dist/components/rtk-chat.js +1 -1
  340. package/dist/components/rtk-clock.js +1 -1
  341. package/dist/components/rtk-confirmation-modal.js +1 -1
  342. package/dist/components/rtk-controlbar-button.js +1 -1
  343. package/dist/components/rtk-controlbar.js +1 -1
  344. package/dist/components/rtk-counter.js +1 -1
  345. package/dist/components/rtk-debugger-audio.js +1 -1
  346. package/dist/components/rtk-debugger-screenshare.js +1 -1
  347. package/dist/components/rtk-debugger-system.js +1 -1
  348. package/dist/components/rtk-debugger-toggle.js +1 -1
  349. package/dist/components/rtk-debugger-video.js +1 -1
  350. package/dist/components/rtk-debugger.js +1 -1
  351. package/dist/components/rtk-dialog-manager.js +1 -1
  352. package/dist/components/rtk-dialog.js +1 -1
  353. package/dist/components/rtk-draft-attachment-view.js +1 -1
  354. package/dist/components/rtk-emoji-picker-button.js +1 -1
  355. package/dist/components/rtk-emoji-picker.js +1 -1
  356. package/dist/components/rtk-ended-screen.js +1 -1
  357. package/dist/components/rtk-file-dropzone.js +1 -1
  358. package/dist/components/rtk-file-message-view.js +1 -1
  359. package/dist/components/rtk-file-message.js +1 -1
  360. package/dist/components/rtk-file-picker-button.js +1 -1
  361. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  362. package/dist/components/rtk-grid-pagination.js +1 -1
  363. package/dist/components/rtk-grid.js +1 -1
  364. package/dist/components/rtk-header.js +1 -1
  365. package/dist/components/rtk-idle-screen.js +1 -1
  366. package/dist/components/rtk-image-message-view.js +1 -1
  367. package/dist/components/rtk-image-message.js +1 -1
  368. package/dist/components/rtk-image-viewer.js +1 -1
  369. package/dist/components/rtk-information-tooltip.js +1 -1
  370. package/dist/components/rtk-join-stage.js +1 -1
  371. package/dist/components/rtk-leave-button.js +1 -1
  372. package/dist/components/rtk-leave-meeting.js +1 -1
  373. package/dist/components/rtk-livestream-indicator.js +1 -1
  374. package/dist/components/rtk-livestream-player.js +1 -1
  375. package/dist/components/rtk-livestream-toggle.js +1 -1
  376. package/dist/components/rtk-logo.js +1 -1
  377. package/dist/components/rtk-markdown-view.js +1 -1
  378. package/dist/components/rtk-meeting-title.js +1 -1
  379. package/dist/components/rtk-meeting.js +1 -1
  380. package/dist/components/rtk-menu-item.js +1 -1
  381. package/dist/components/rtk-menu-list.js +1 -1
  382. package/dist/components/rtk-menu.js +1 -1
  383. package/dist/components/rtk-message-list-view.js +1 -1
  384. package/dist/components/rtk-message-view.js +1 -1
  385. package/dist/components/rtk-mic-toggle.js +1 -1
  386. package/dist/components/rtk-microphone-selector.js +1 -1
  387. package/dist/components/rtk-mixed-grid.js +1 -1
  388. package/dist/components/rtk-more-toggle.js +1 -1
  389. package/dist/components/rtk-mute-all-button.js +1 -1
  390. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  391. package/dist/components/rtk-name-tag.js +1 -1
  392. package/dist/components/rtk-network-indicator.js +1 -1
  393. package/dist/components/rtk-notification.js +1 -1
  394. package/dist/components/rtk-notifications.js +1 -1
  395. package/dist/components/rtk-overlay-modal.js +1 -1
  396. package/dist/components/rtk-paginated-list.js +1 -1
  397. package/dist/components/rtk-participant-count.js +1 -1
  398. package/dist/components/rtk-participant-setup.js +1 -1
  399. package/dist/components/rtk-participant-tile.js +1 -1
  400. package/dist/components/rtk-participant.js +1 -1
  401. package/dist/components/rtk-participants-audio.js +1 -1
  402. package/dist/components/rtk-participants-stage-list.js +1 -1
  403. package/dist/components/rtk-participants-stage-queue.js +1 -1
  404. package/dist/components/rtk-participants-toggle.js +1 -1
  405. package/dist/components/rtk-participants-viewer-list.js +1 -1
  406. package/dist/components/rtk-participants-waiting-list.js +1 -1
  407. package/dist/components/rtk-participants.js +1 -1
  408. package/dist/components/rtk-permissions-message.js +1 -1
  409. package/dist/components/rtk-pinned-message-selector.js +1 -1
  410. package/dist/components/rtk-pip-toggle.js +1 -1
  411. package/dist/components/rtk-plugin-main.js +1 -1
  412. package/dist/components/rtk-plugins-toggle.js +1 -1
  413. package/dist/components/rtk-plugins.js +1 -1
  414. package/dist/components/rtk-poll-form.js +1 -1
  415. package/dist/components/rtk-poll.js +1 -1
  416. package/dist/components/rtk-polls-toggle.js +1 -1
  417. package/dist/components/rtk-polls.js +1 -1
  418. package/dist/components/rtk-recording-indicator.js +1 -1
  419. package/dist/components/rtk-recording-toggle.js +1 -1
  420. package/dist/components/rtk-screen-share-toggle.js +1 -1
  421. package/dist/components/rtk-screenshare-view.js +1 -1
  422. package/dist/components/rtk-settings-audio.js +1 -1
  423. package/dist/components/rtk-settings-toggle.js +1 -1
  424. package/dist/components/rtk-settings-video.js +1 -1
  425. package/dist/components/rtk-settings.js +1 -1
  426. package/dist/components/rtk-setup-screen.js +1 -1
  427. package/dist/components/rtk-sidebar-ui.js +1 -1
  428. package/dist/components/rtk-sidebar.js +1 -1
  429. package/dist/components/rtk-simple-grid.js +1 -1
  430. package/dist/components/rtk-speaker-selector.js +1 -1
  431. package/dist/components/rtk-spinner.js +1 -1
  432. package/dist/components/rtk-spotlight-grid.js +1 -1
  433. package/dist/components/rtk-spotlight-indicator.js +1 -1
  434. package/dist/components/rtk-stage-toggle.js +1 -1
  435. package/dist/components/rtk-stage.js +1 -1
  436. package/dist/components/rtk-switch.js +1 -1
  437. package/dist/components/rtk-tab-bar.js +1 -1
  438. package/dist/components/rtk-text-composer-view.js +1 -1
  439. package/dist/components/rtk-text-message-view.js +1 -1
  440. package/dist/components/rtk-text-message.js +1 -1
  441. package/dist/components/rtk-transcript.js +1 -1
  442. package/dist/components/rtk-transcripts.js +1 -1
  443. package/dist/components/rtk-ui-provider.js +1 -1
  444. package/dist/components/rtk-viewer-count.js +1 -1
  445. package/dist/components/rtk-waiting-screen.js +1 -1
  446. package/dist/docs/docs-components.json +3784 -652
  447. package/dist/docs/docs-vscode.json +14 -0
  448. package/dist/esm/{TextMessage-DU5jn82l.js → TextMessage-BZiVGmY1.js} +1 -1
  449. package/dist/esm/{chat-CTWJuGSF.js → chat-lvouWi7J.js} +1 -1
  450. package/dist/esm/{config-CvBBWjUo.js → config-B2jDqnc2.js} +2 -2
  451. package/dist/esm/{debounce-D73CxE5J.js → debounce-aR8pwob-.js} +1 -1
  452. package/dist/esm/{index-CH0HBE_K.js → index-CgECHQfr.js} +1 -1
  453. package/dist/esm/index-gJCRRBX0.js +6 -2
  454. package/dist/esm/index.js +6 -6
  455. package/dist/esm/loader.js +697 -524
  456. package/dist/esm/realtimekit-ui.js +1 -1
  457. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  458. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  459. package/dist/esm/rtk-ai_3.entry.js +2 -2
  460. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  461. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  462. package/dist/esm/{rtk-audio-visualizer_4.entry.js → rtk-audio-visualizer_3.entry.js} +16 -83
  463. package/dist/esm/rtk-avatar_26.entry.js +6 -6
  464. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  465. package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
  466. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  467. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  468. package/dist/esm/rtk-camera-toggle.entry.js +90 -13
  469. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  470. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  471. package/dist/esm/rtk-chat-message.entry.js +2 -2
  472. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  473. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  474. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  475. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  476. package/dist/esm/rtk-clock.entry.js +2 -2
  477. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  478. package/dist/esm/rtk-controlbar.entry.js +2 -2
  479. package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
  480. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  481. package/dist/esm/rtk-debugger.entry.js +2 -2
  482. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  483. package/dist/esm/rtk-dialog.entry.js +2 -2
  484. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  485. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  486. package/dist/esm/rtk-file-message_3.entry.js +4 -4
  487. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  488. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  489. package/dist/esm/rtk-grid.entry.js +2 -2
  490. package/dist/esm/rtk-header.entry.js +2 -2
  491. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  492. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  493. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  494. package/dist/esm/rtk-leave-button.entry.js +2 -2
  495. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  496. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  497. package/dist/esm/rtk-logo.entry.js +2 -2
  498. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  499. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  500. package/dist/esm/rtk-mic-toggle.entry.js +81 -10
  501. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  502. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  503. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  504. package/dist/esm/rtk-name-tag.entry.js +2 -2
  505. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  506. package/dist/esm/rtk-notification.entry.js +4 -4
  507. package/dist/esm/rtk-notifications.entry.js +3 -3
  508. package/dist/esm/rtk-participant-count.entry.js +2 -2
  509. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  510. package/dist/esm/rtk-participant_2.entry.js +3 -3
  511. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  512. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  513. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  514. package/dist/esm/rtk-participants.entry.js +3 -3
  515. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  516. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  517. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  518. package/dist/esm/rtk-poll_2.entry.js +2 -2
  519. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  520. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  521. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  522. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  523. package/dist/esm/rtk-screenshare-view.entry.js +47 -41
  524. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  525. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  526. package/dist/esm/rtk-settings.entry.js +2 -2
  527. package/dist/esm/rtk-setup-screen.entry.js +10 -5
  528. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  529. package/dist/esm/rtk-sidebar.entry.js +2 -2
  530. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  531. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  532. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  533. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  534. package/dist/esm/rtk-stage.entry.js +2 -2
  535. package/dist/esm/rtk-switch.entry.js +72 -0
  536. package/dist/esm/rtk-transcript.entry.js +2 -2
  537. package/dist/esm/rtk-transcripts.entry.js +2 -2
  538. package/dist/esm/rtk-ui-provider.entry.js +2 -2
  539. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  540. package/dist/esm/{ui-kit-metadata-BfDGhHU-.js → ui-kit-metadata-DBkOnyOI.js} +2 -2
  541. package/dist/esm/{ui-store-Bx-7w8Yb.js → ui-store-25wIB_YH.js} +10 -1
  542. package/dist/realtimekit-ui/index.esm.js +1 -1
  543. package/dist/realtimekit-ui/p-00ae47eb.entry.js +1 -0
  544. package/dist/realtimekit-ui/{p-660aa537.entry.js → p-0ce5b00f.entry.js} +1 -1
  545. package/dist/realtimekit-ui/{p-d5c12931.entry.js → p-0df18cd8.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-6d717ccc.entry.js → p-13a913a9.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-6568b1ab.entry.js → p-18607b9a.entry.js} +1 -1
  548. package/dist/realtimekit-ui/p-1eac1ada.entry.js +1 -0
  549. package/dist/realtimekit-ui/{p-5f27dd4a.entry.js → p-1ff01d5f.entry.js} +1 -1
  550. package/dist/realtimekit-ui/p-20588357.entry.js +1 -0
  551. package/dist/realtimekit-ui/{p-37e705b5.entry.js → p-21119a4d.entry.js} +1 -1
  552. package/dist/realtimekit-ui/{p-183a312c.entry.js → p-22cd2a40.entry.js} +1 -1
  553. package/dist/realtimekit-ui/{p-643a1927.entry.js → p-2999cb8d.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-4b3dce1f.entry.js → p-2eb73b5f.entry.js} +1 -1
  555. package/dist/realtimekit-ui/{p-8153ed7f.entry.js → p-2f380c20.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-3b485618.entry.js → p-32079fea.entry.js} +1 -1
  557. package/dist/realtimekit-ui/{p-bf065dd7.entry.js → p-341159c7.entry.js} +1 -1
  558. package/dist/realtimekit-ui/{p-c8333864.entry.js → p-39a410f5.entry.js} +1 -1
  559. package/dist/realtimekit-ui/{p-205434fe.entry.js → p-3a0eaf1e.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-e352d5e2.entry.js → p-3ab9b329.entry.js} +1 -1
  561. package/dist/realtimekit-ui/{p-363ce42f.entry.js → p-3d95065e.entry.js} +1 -1
  562. package/dist/realtimekit-ui/{p-6195c623.entry.js → p-465c4010.entry.js} +1 -1
  563. package/dist/realtimekit-ui/p-467cb881.entry.js +1 -0
  564. package/dist/realtimekit-ui/{p-a2553f7d.entry.js → p-4b2ce9e5.entry.js} +1 -1
  565. package/dist/realtimekit-ui/{p-e0249fd5.entry.js → p-4d59e280.entry.js} +1 -1
  566. package/dist/realtimekit-ui/{p-b94dfda1.entry.js → p-54c71e62.entry.js} +1 -1
  567. package/dist/realtimekit-ui/p-590350ae.entry.js +1 -0
  568. package/dist/realtimekit-ui/{p-7bdd40b8.entry.js → p-5ea44aa5.entry.js} +1 -1
  569. package/dist/realtimekit-ui/{p-205f9429.entry.js → p-60e672f3.entry.js} +1 -1
  570. package/dist/realtimekit-ui/{p-21796886.entry.js → p-60f90e32.entry.js} +1 -1
  571. package/dist/realtimekit-ui/p-63413c07.entry.js +1 -0
  572. package/dist/realtimekit-ui/{p-cc5ea463.entry.js → p-64b7ca52.entry.js} +1 -1
  573. package/dist/realtimekit-ui/{p-058620d5.entry.js → p-64f46d1e.entry.js} +1 -1
  574. package/dist/realtimekit-ui/{p-e1735083.entry.js → p-6568c9be.entry.js} +1 -1
  575. package/dist/realtimekit-ui/{p-8dd67156.entry.js → p-69445dc5.entry.js} +1 -1
  576. package/dist/realtimekit-ui/{p-718bae68.entry.js → p-69e11a90.entry.js} +1 -1
  577. package/dist/realtimekit-ui/{p-9d52fc8e.entry.js → p-69ee90c7.entry.js} +1 -1
  578. package/dist/realtimekit-ui/{p-abde760f.entry.js → p-6a985345.entry.js} +1 -1
  579. package/dist/realtimekit-ui/{p-fef5f872.entry.js → p-6bca148a.entry.js} +1 -1
  580. package/dist/realtimekit-ui/{p-933c3a7c.entry.js → p-70672349.entry.js} +1 -1
  581. package/dist/realtimekit-ui/{p-b245131f.entry.js → p-72b2fe54.entry.js} +1 -1
  582. package/dist/realtimekit-ui/{p-723738bd.entry.js → p-73f2a2db.entry.js} +1 -1
  583. package/dist/realtimekit-ui/{p-dfa06095.entry.js → p-7711649a.entry.js} +1 -1
  584. package/dist/realtimekit-ui/{p-86b82dbf.entry.js → p-77648ee7.entry.js} +1 -1
  585. package/dist/realtimekit-ui/{p-83861ea9.entry.js → p-7878ab30.entry.js} +1 -1
  586. package/dist/realtimekit-ui/p-7d7409e5.entry.js +1 -0
  587. package/dist/realtimekit-ui/{p-1ce8eaf9.entry.js → p-8206b22d.entry.js} +1 -1
  588. package/dist/realtimekit-ui/p-828ecefa.entry.js +1 -0
  589. package/dist/realtimekit-ui/{p-207ce4c5.entry.js → p-82a226df.entry.js} +1 -1
  590. package/dist/realtimekit-ui/{p-995ce594.entry.js → p-8a481d43.entry.js} +1 -1
  591. package/dist/realtimekit-ui/{p-68e8289e.entry.js → p-8dc6db09.entry.js} +1 -1
  592. package/dist/realtimekit-ui/{p-9c7b6b83.entry.js → p-94a286d0.entry.js} +1 -1
  593. package/dist/realtimekit-ui/{p-6d121798.entry.js → p-95818179.entry.js} +1 -1
  594. package/dist/realtimekit-ui/{p-348d4b7d.entry.js → p-9675893b.entry.js} +1 -1
  595. package/dist/realtimekit-ui/{p-bdb23405.entry.js → p-96b81823.entry.js} +1 -1
  596. package/dist/realtimekit-ui/p-9c53a0b7.entry.js +1 -0
  597. package/dist/realtimekit-ui/{p-4wo9JvMs.js → p-B3SWd1rN.js} +1 -1
  598. package/dist/realtimekit-ui/p-C8tHk7bV.js +1 -0
  599. package/dist/realtimekit-ui/{p-DE_WFbDN.js → p-CGOvNX5H.js} +1 -1
  600. package/dist/realtimekit-ui/{p-B0XvZgA2.js → p-CRQsZMW5.js} +1 -1
  601. package/dist/realtimekit-ui/p-DgbGa7ou.js +1 -0
  602. package/dist/realtimekit-ui/{p-c4vw1R9K.js → p-Dj-6QheV.js} +1 -1
  603. package/dist/realtimekit-ui/{p-f97af682.entry.js → p-a05269d4.entry.js} +1 -1
  604. package/dist/realtimekit-ui/{p-9e279393.entry.js → p-a1febe2c.entry.js} +1 -1
  605. package/dist/realtimekit-ui/p-a478656f.entry.js +1 -0
  606. package/dist/realtimekit-ui/{p-aef96d8b.entry.js → p-a5afae52.entry.js} +1 -1
  607. package/dist/realtimekit-ui/{p-732b25be.entry.js → p-a6b6f977.entry.js} +1 -1
  608. package/dist/realtimekit-ui/{p-4d93a6be.entry.js → p-a732dd55.entry.js} +1 -1
  609. package/dist/realtimekit-ui/{p-f58ede34.entry.js → p-aa1bcc8d.entry.js} +1 -1
  610. package/dist/realtimekit-ui/{p-f8463bf8.entry.js → p-b29b686b.entry.js} +1 -1
  611. package/dist/realtimekit-ui/p-b415ff27.entry.js +1 -0
  612. package/dist/realtimekit-ui/{p-5ed86313.entry.js → p-b56fe105.entry.js} +1 -1
  613. package/dist/realtimekit-ui/{p-3f7688e2.entry.js → p-b783a853.entry.js} +1 -1
  614. package/dist/realtimekit-ui/p-bef64365.entry.js +1 -0
  615. package/dist/realtimekit-ui/{p-b5a8fe62.entry.js → p-c1efb757.entry.js} +1 -1
  616. package/dist/realtimekit-ui/{p-d4c7a8ad.entry.js → p-c35040dc.entry.js} +1 -1
  617. package/dist/realtimekit-ui/{p-75057984.entry.js → p-c7f7f0ee.entry.js} +1 -1
  618. package/dist/realtimekit-ui/{p-8b2ffaa1.entry.js → p-c8cad0a6.entry.js} +1 -1
  619. package/dist/realtimekit-ui/{p-a4d9e0e1.entry.js → p-cc9228ee.entry.js} +1 -1
  620. package/dist/realtimekit-ui/{p-e2a9aea6.entry.js → p-cdf80add.entry.js} +1 -1
  621. package/dist/realtimekit-ui/{p-8f04a055.entry.js → p-cf9e2497.entry.js} +1 -1
  622. package/dist/realtimekit-ui/{p-16734ef7.entry.js → p-cfa03301.entry.js} +1 -1
  623. package/dist/realtimekit-ui/{p-a4704c24.entry.js → p-d7b10d53.entry.js} +1 -1
  624. package/dist/realtimekit-ui/{p-5f2c7eca.entry.js → p-d91222ea.entry.js} +1 -1
  625. package/dist/realtimekit-ui/{p-625aa771.entry.js → p-da857425.entry.js} +1 -1
  626. package/dist/realtimekit-ui/{p-4c6cf53f.entry.js → p-dcced1f6.entry.js} +1 -1
  627. package/dist/realtimekit-ui/{p-57b4007f.entry.js → p-df0fe032.entry.js} +1 -1
  628. package/dist/realtimekit-ui/{p-26e7752a.entry.js → p-df5b5a98.entry.js} +1 -1
  629. package/dist/realtimekit-ui/{p-efd86516.entry.js → p-e54dbacd.entry.js} +1 -1
  630. package/dist/realtimekit-ui/{p-a713e193.entry.js → p-f202a199.entry.js} +1 -1
  631. package/dist/realtimekit-ui/{p-e7b02202.entry.js → p-fbde8aee.entry.js} +1 -1
  632. package/dist/realtimekit-ui/p-x7gw0EVy.js +1 -0
  633. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  634. package/dist/types/components/rtk-camera-toggle/rtk-camera-toggle.d.ts +17 -1
  635. package/dist/types/components/rtk-mic-toggle/rtk-mic-toggle.d.ts +15 -1
  636. package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +3 -2
  637. package/dist/types/components/rtk-setup-screen/rtk-setup-screen.d.ts +3 -0
  638. package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -0
  639. package/dist/types/components.d.ts +50 -10
  640. package/dist/types/lib/icons/default-icon-pack.d.ts +2 -0
  641. package/dist/types/lib/lang/default-language.d.ts +6 -0
  642. package/dist/types/lib/overrides.d.ts +4 -0
  643. package/package.json +1 -4
  644. package/dist/components/p-Bx38FZhs.js +0 -1
  645. package/dist/components/p-CNApM3eU.js +0 -1
  646. package/dist/components/p-D4GSX-co.js +0 -1
  647. package/dist/components/p-D9p14DJ_.js +0 -1
  648. package/dist/realtimekit-ui/p-1786b535.entry.js +0 -1
  649. package/dist/realtimekit-ui/p-3bd80e90.entry.js +0 -1
  650. package/dist/realtimekit-ui/p-4c2cba57.entry.js +0 -1
  651. package/dist/realtimekit-ui/p-56315661.entry.js +0 -1
  652. package/dist/realtimekit-ui/p-5f9ca1bf.entry.js +0 -1
  653. package/dist/realtimekit-ui/p-6e1c70b8.entry.js +0 -1
  654. package/dist/realtimekit-ui/p-7690e88e.entry.js +0 -1
  655. package/dist/realtimekit-ui/p-77352289.entry.js +0 -1
  656. package/dist/realtimekit-ui/p-7ca93eef.entry.js +0 -1
  657. package/dist/realtimekit-ui/p-BPp8I5C6.js +0 -1
  658. package/dist/realtimekit-ui/p-D2jt9uAV.js +0 -1
  659. package/dist/realtimekit-ui/p-a0a519d4.entry.js +0 -1
  660. package/dist/realtimekit-ui/p-c69a406e.entry.js +0 -1
  661. package/dist/realtimekit-ui/p-fJjgai7z.js +0 -1
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{e,i as o}from"./p-fJjgai7z.js";import{S as n}from"./p-DE_WFbDN.js";var r=function(t,i,s,a){var e,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,a);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(o<3?e(n):o>3?e(i,s,n):e(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=o(),this.aiActive=!1,this.toggleAI=()=>{const t=this.states;this.aiActive=!((null==t?void 0:t.activeSidebar)&&"ai"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.aiActive,sidebar:this.aiActive?"ai":void 0,activeMoreMenu:!1})}}connectedCallback(){this.statesChanged(this.states)}statesChanged(t){null!=t&&(this.aiActive=!0===t.activeSidebar&&"ai"===t.sidebar)}render(){var t,i;if(!this.meeting)return null;const e=this.t("ai.meeting_ai");return(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions).transcriptionEnabled?s(a,{title:e},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.aiActive},onClick:this.toggleAI,icon:this.iconPack.meeting_ai,label:e,variant:this.variant,brandIcon:!0})):s(a,{"data-hidden":!0})}static get watchers(){return{states:[{statesChanged:0}]}}};r([n()],c.prototype,"states",void 0),r([n()],c.prototype,"meeting",void 0),r([n()],c.prototype,"iconPack",void 0),r([n()],c.prototype,"t",void 0),c.style=":host{display:block}:host([data-hidden]){display:none}";export{c as rtk_ai_toggle}
1
+ import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{e,i as o}from"./p-C8tHk7bV.js";import{S as n}from"./p-CGOvNX5H.js";var r=function(t,i,s,a){var e,o=arguments.length,n=o<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,a);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(o<3?e(n):o>3?e(i,s,n):e(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=o(),this.aiActive=!1,this.toggleAI=()=>{const t=this.states;this.aiActive=!((null==t?void 0:t.activeSidebar)&&"ai"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.aiActive,sidebar:this.aiActive?"ai":void 0,activeMoreMenu:!1})}}connectedCallback(){this.statesChanged(this.states)}statesChanged(t){null!=t&&(this.aiActive=!0===t.activeSidebar&&"ai"===t.sidebar)}render(){var t,i;if(!this.meeting)return null;const e=this.t("ai.meeting_ai");return(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions).transcriptionEnabled?s(a,{title:e},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.aiActive},onClick:this.toggleAI,icon:this.iconPack.meeting_ai,label:e,variant:this.variant,brandIcon:!0})):s(a,{"data-hidden":!0})}static get watchers(){return{states:[{statesChanged:0}]}}};r([n()],c.prototype,"states",void 0),r([n()],c.prototype,"meeting",void 0),r([n()],c.prototype,"iconPack",void 0),r([n()],c.prototype,"t",void 0),c.style=":host{display:block}:host([data-hidden]){display:none}";export{c as rtk_ai_toggle}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{e,i as r}from"./p-fJjgai7z.js";import{c as n}from"./p-D9HGXWKc.js";import{S as o}from"./p-DE_WFbDN.js";import"./p-C0vp-Q7v.js";var h=function(t,i,s,a){var e,r=arguments.length,n=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,a);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(n=(r<3?e(n):r>3?e(i,s,n):e(i,s))||n);return r>3&&n&&Object.defineProperty(i,s,n),n};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.unreadMessageCount=0,this.variant="button",this.iconPack=e,this.t=r(),this.chatActive=!1,this.canViewChat=!1,this.pageSize=11,this.onChatUpdate=({action:t,message:i})=>{var s;this.chatActive||"add"===t&&i.userId!==(null===(s=this.meeting)||void 0===s?void 0:s.self.userId)&&this.unreadMessageCount<=10&&(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.stateUpdate.emit({activeSidebar:this.chatActive,sidebar:this.chatActive?"chat":void 0,activeMoreMenu:!1})},this.updateCanView=()=>{this.canViewChat=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s,a,e,r;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.chat)||void 0===i||i.removeListener("chatUpdate",this.onChatUpdate),null===(a=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.updateCanView),null===(r=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===r||r.permissions.removeListener("chatUpdate",this.updateCanView)}meetingChanged(t){var i,s,a;t&&(this.setUnreadMessageCount(),this.canViewChat=n(t),null===(i=t.chat)||void 0===i||i.addListener("chatUpdate",this.onChatUpdate),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView),null===(a=null==t?void 0:t.self)||void 0===a||a.permissions.on("chatUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.chatActive=!0===t.activeSidebar&&"chat"===t.sidebar)}async setUnreadMessageCount(){var t,i;const s=this.meeting.chat;if(!s)return;const a=null!==(i=null===(t=this.meeting.meta)||void 0===t?void 0:t.meetingStartedTimestamp.getTime())&&void 0!==i?i:0,e=await s.fetchPublicMessages({timestamp:a,limit:this.pageSize,direction:"after"});this.unreadMessageCount=e.length}handleChatActiveChange(){this.chatActive||this.states.activeSidebar||this.buttonEl.focus()}render(){return this.meeting?this.canViewChat?s(a,{title:this.t("chat")},0!==this.unreadMessageCount&&!this.chatActive&&s("div",{class:"unread-count",part:"unread-count"},s("span",null,this.unreadMessageCount<this.pageSize?this.unreadMessageCount:"10+")),s("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})):s(a,{"data-hidden":!0}):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],chatActive:[{handleChatActiveChange:0}]}}};h([o()],c.prototype,"meeting",void 0),h([o()],c.prototype,"states",void 0),h([o()],c.prototype,"iconPack",void 0),h([o()],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{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-4, 16px);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{c as rtk_chat_toggle}
1
+ import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{e,i as r}from"./p-C8tHk7bV.js";import{c as n}from"./p-D9HGXWKc.js";import{S as o}from"./p-CGOvNX5H.js";import"./p-C0vp-Q7v.js";var h=function(t,i,s,a){var e,r=arguments.length,n=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,a);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(n=(r<3?e(n):r>3?e(i,s,n):e(i,s))||n);return r>3&&n&&Object.defineProperty(i,s,n),n};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.unreadMessageCount=0,this.variant="button",this.iconPack=e,this.t=r(),this.chatActive=!1,this.canViewChat=!1,this.pageSize=11,this.onChatUpdate=({action:t,message:i})=>{var s;this.chatActive||"add"===t&&i.userId!==(null===(s=this.meeting)||void 0===s?void 0:s.self.userId)&&this.unreadMessageCount<=10&&(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.stateUpdate.emit({activeSidebar:this.chatActive,sidebar:this.chatActive?"chat":void 0,activeMoreMenu:!1})},this.updateCanView=()=>{this.canViewChat=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s,a,e,r;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.chat)||void 0===i||i.removeListener("chatUpdate",this.onChatUpdate),null===(a=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.updateCanView),null===(r=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===r||r.permissions.removeListener("chatUpdate",this.updateCanView)}meetingChanged(t){var i,s,a;t&&(this.setUnreadMessageCount(),this.canViewChat=n(t),null===(i=t.chat)||void 0===i||i.addListener("chatUpdate",this.onChatUpdate),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView),null===(a=null==t?void 0:t.self)||void 0===a||a.permissions.on("chatUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.chatActive=!0===t.activeSidebar&&"chat"===t.sidebar)}async setUnreadMessageCount(){var t,i;const s=this.meeting.chat;if(!s)return;const a=null!==(i=null===(t=this.meeting.meta)||void 0===t?void 0:t.meetingStartedTimestamp.getTime())&&void 0!==i?i:0,e=await s.fetchPublicMessages({timestamp:a,limit:this.pageSize,direction:"after"});this.unreadMessageCount=e.length}handleChatActiveChange(){this.chatActive||this.states.activeSidebar||this.buttonEl.focus()}render(){return this.meeting?this.canViewChat?s(a,{title:this.t("chat")},0!==this.unreadMessageCount&&!this.chatActive&&s("div",{class:"unread-count",part:"unread-count"},s("span",null,this.unreadMessageCount<this.pageSize?this.unreadMessageCount:"10+")),s("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})):s(a,{"data-hidden":!0}):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],chatActive:[{handleChatActiveChange:0}]}}};h([o()],c.prototype,"meeting",void 0),h([o()],c.prototype,"states",void 0),h([o()],c.prototype,"iconPack",void 0),h([o()],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{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-4, 16px);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{c as rtk_chat_toggle}
@@ -1 +1 @@
1
- import{r as t,h as r,a}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as i,i as o}from"./p-fJjgai7z.js";import{S as e}from"./p-DE_WFbDN.js";import"./p-Daj_55_i.js";var s=function(t,r,a,i){var o,e=arguments.length,s=e<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,a,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(e<3?o(s):e>3?o(r,a,s):o(r,a))||s);return e>3&&s&&Object.defineProperty(r,a,s),s};const c=class{constructor(r){t(this,r),this.iconPack=i,this.t=o(),this.isScreenShare=!1,this.score=10,this.onMediaScoreUpdate=({kind:t,isScreenshare:r,score:a})=>{("video"===t||this.isScreenShare&&r)&&(this.score=a)}}connectedCallback(){this.participantChanged(this.participant)}participantChanged(t){t&&t.addListener("mediaScoreUpdate",this.onMediaScoreUpdate)}disconnectedCallback(){var t;null===(t=this.participant)||void 0===t||t.removeListener("mediaScoreUpdate",this.onMediaScoreUpdate)}render(){let t=Math.round(this.score/2),i="good";if(t>3)return null;switch(t<1&&(t=1),t){case 3:case 2:i="poor";break;case 1:i="poorest"}return r(a,null,r("rtk-icon",{icon:this.iconPack[`signal_${t}`],class:i}),r("rtk-icon",{icon:this.iconPack.signal_5,class:"bg-signal"}))}static get watchers(){return{participant:[{participantChanged:0}]}}};s([e()],c.prototype,"meeting",void 0),s([e()],c.prototype,"iconPack",void 0),s([e()],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{position:relative;display:block;height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}rtk-icon{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);z-index:10;height:100%;width:100%;--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='md']){height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.bg-signal{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);z-index:0;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}";export{c as rtk_network_indicator}
1
+ import{r as t,h as r,a}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as i,i as o}from"./p-C8tHk7bV.js";import{S as e}from"./p-CGOvNX5H.js";import"./p-Daj_55_i.js";var s=function(t,r,a,i){var o,e=arguments.length,s=e<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,a,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(s=(e<3?o(s):e>3?o(r,a,s):o(r,a))||s);return e>3&&s&&Object.defineProperty(r,a,s),s};const c=class{constructor(r){t(this,r),this.iconPack=i,this.t=o(),this.isScreenShare=!1,this.score=10,this.onMediaScoreUpdate=({kind:t,isScreenshare:r,score:a})=>{("video"===t||this.isScreenShare&&r)&&(this.score=a)}}connectedCallback(){this.participantChanged(this.participant)}participantChanged(t){t&&t.addListener("mediaScoreUpdate",this.onMediaScoreUpdate)}disconnectedCallback(){var t;null===(t=this.participant)||void 0===t||t.removeListener("mediaScoreUpdate",this.onMediaScoreUpdate)}render(){let t=Math.round(this.score/2),i="good";if(t>3)return null;switch(t<1&&(t=1),t){case 3:case 2:i="poor";break;case 1:i="poorest"}return r(a,null,r("rtk-icon",{icon:this.iconPack[`signal_${t}`],class:i}),r("rtk-icon",{icon:this.iconPack.signal_5,class:"bg-signal"}))}static get watchers(){return{participant:[{participantChanged:0}]}}};s([e()],c.prototype,"meeting",void 0),s([e()],c.prototype,"iconPack",void 0),s([e()],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{position:relative;display:block;height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}rtk-icon{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);z-index:10;height:100%;width:100%;--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='md']){height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.bg-signal{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);z-index:0;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}";export{c as rtk_network_indicator}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as n,i as a}from"./p-fJjgai7z.js";import{b as o}from"./p-D9HGXWKc.js";import{S as l}from"./p-DE_WFbDN.js";import"./p-C0vp-Q7v.js";var h=function(t,i,s,e){var n,a=arguments.length,o=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(a<3?n(o):a>3?n(i,s,o):n(i,s))||o);return a>3&&o&&Object.defineProperty(i,s,o),o};const r=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=a(),this.pluginsActive=!1,this.canViewPlugins=!1,this.updateCanView=()=>{this.canViewPlugins=o(this.meeting)}}disconnectedCallback(){var t,i,s,e;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pluginsUpdate",this.updateCanView)}connectedCallback(){this.statesChanged(this.states),this.meetingChanged(this.meeting)}meetingChanged(t){var i,s;t&&(this.canViewPlugins=o(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),null===(s=null==t?void 0:t.self)||void 0===s||s.permissions.addListener("pluginsUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pluginsActive=!0===t.activeSidebar&&"plugins"===t.sidebar)}togglePlugins(){const t=this.states;this.pluginsActive=!((null==t?void 0:t.activeSidebar)&&"plugins"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pluginsActive,sidebar:this.pluginsActive?"plugins":void 0,activeMoreMenu:!1})}handlePluginsActiveChange(){this.pluginsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPlugins)return s(e,{"data-hidden":!0});const t=this.t("plugins");return s(e,{title:t},s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pluginsActive},onClick:()=>this.togglePlugins(),icon:this.iconPack.rocket,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pluginsActive:[{handlePluginsActiveChange:0}]}}};h([l()],r.prototype,"meeting",void 0),h([l()],r.prototype,"states",void 0),h([l()],r.prototype,"iconPack",void 0),h([l()],r.prototype,"t",void 0),r.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{r as rtk_plugins_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as n,i as a}from"./p-C8tHk7bV.js";import{b as o}from"./p-D9HGXWKc.js";import{S as l}from"./p-CGOvNX5H.js";import"./p-C0vp-Q7v.js";var h=function(t,i,s,e){var n,a=arguments.length,o=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(a<3?n(o):a>3?n(i,s,o):n(i,s))||o);return a>3&&o&&Object.defineProperty(i,s,o),o};const r=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=a(),this.pluginsActive=!1,this.canViewPlugins=!1,this.updateCanView=()=>{this.canViewPlugins=o(this.meeting)}}disconnectedCallback(){var t,i,s,e;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pluginsUpdate",this.updateCanView)}connectedCallback(){this.statesChanged(this.states),this.meetingChanged(this.meeting)}meetingChanged(t){var i,s;t&&(this.canViewPlugins=o(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),null===(s=null==t?void 0:t.self)||void 0===s||s.permissions.addListener("pluginsUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pluginsActive=!0===t.activeSidebar&&"plugins"===t.sidebar)}togglePlugins(){const t=this.states;this.pluginsActive=!((null==t?void 0:t.activeSidebar)&&"plugins"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pluginsActive,sidebar:this.pluginsActive?"plugins":void 0,activeMoreMenu:!1})}handlePluginsActiveChange(){this.pluginsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPlugins)return s(e,{"data-hidden":!0});const t=this.t("plugins");return s(e,{title:t},s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pluginsActive},onClick:()=>this.togglePlugins(),icon:this.iconPack.rocket,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pluginsActive:[{handlePluginsActiveChange:0}]}}};h([l()],r.prototype,"meeting",void 0),h([l()],r.prototype,"states",void 0),h([l()],r.prototype,"iconPack",void 0),h([l()],r.prototype,"t",void 0),r.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{r as rtk_plugins_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,d as e,h as a,a as r}from"./p-gJCRRBX0.js";import{e as s,i}from"./p-C8tHk7bV.js";import{S as o}from"./p-CGOvNX5H.js";var n=function(t,e,a,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const f=class{constructor(a){t(this,a),this.stateUpdate=e(this,"rtkStateUpdate",7),this.iconPack=s,this.t=i()}render(){return a(r,{key:"2f1f0816b48e44bb3eae63b61e47adf34c31c24b"},a("slot",{key:"030180b3dd7d9342fdb604c6dddcb81b54568ba5"}))}};n([o()],f.prototype,"iconPack",void 0),n([o()],f.prototype,"t",void 0),f.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;position:relative;overflow:hidden}";export{f as rtk_stage}
@@ -1 +1 @@
1
- import{r as t,h as e,a as r}from"./p-gJCRRBX0.js";import{c as a,e as i,i as o}from"./p-fJjgai7z.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{S as c}from"./p-DE_WFbDN.js";import"./p-Daj_55_i.js";var s=function(t,e,r,a){var i,o=arguments.length,c=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,a);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(c=(o<3?i(c):o>3?i(e,r,c):i(e,r))||c);return o>3&&c&&Object.defineProperty(e,r,c),c};const n=class{constructor(e){t(this,e),this.config=a(),this.iconPack=i,this.t=o()}render(){return e(r,{key:"26f7376b6a9342f61a633af98dbd52cfb776db89"},e("slot",{key:"b0f9d9c034e0e34fa1beaa8b74c0bb186972752d"},e("div",{key:"9d564d44c7e587b2a1517e9f190f52ce994bc0b0",class:"centered",part:"content"},e("rtk-logo",{key:"690aa7dce99175cdc91e5a9dc4a333ab1250ab82",meeting:this.meeting,config:this.config,part:"logo",t:this.t}),e("p",{key:"1bf08c2f97e04ea74c420ce1f26535d7f8fe5390"},this.t("waitlist.body_text")))))}};s([c()],n.prototype,"meeting",void 0),s([c()],n.prototype,"config",void 0),s([c()],n.prototype,"iconPack",void 0),s([c()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.centered{display:flex;flex-direction:column;align-items:center}rtk-logo{margin-bottom:var(--rtk-space-8, 32px);height:var(--rtk-space-12, 48px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}";export{n as rtk_waiting_screen}
1
+ import{r as t,h as e,a as r}from"./p-gJCRRBX0.js";import{c as a,e as i,i as o}from"./p-C8tHk7bV.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{S as c}from"./p-CGOvNX5H.js";import"./p-Daj_55_i.js";var s=function(t,e,r,a){var i,o=arguments.length,c=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,r,a);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(c=(o<3?i(c):o>3?i(e,r,c):i(e,r))||c);return o>3&&c&&Object.defineProperty(e,r,c),c};const n=class{constructor(e){t(this,e),this.config=a(),this.iconPack=i,this.t=o()}render(){return e(r,{key:"26f7376b6a9342f61a633af98dbd52cfb776db89"},e("slot",{key:"b0f9d9c034e0e34fa1beaa8b74c0bb186972752d"},e("div",{key:"9d564d44c7e587b2a1517e9f190f52ce994bc0b0",class:"centered",part:"content"},e("rtk-logo",{key:"690aa7dce99175cdc91e5a9dc4a333ab1250ab82",meeting:this.meeting,config:this.config,part:"logo",t:this.t}),e("p",{key:"1bf08c2f97e04ea74c420ce1f26535d7f8fe5390"},this.t("waitlist.body_text")))))}};s([c()],n.prototype,"meeting",void 0),s([c()],n.prototype,"config",void 0),s([c()],n.prototype,"iconPack",void 0),s([c()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.centered{display:flex;flex-direction:column;align-items:center}rtk-logo{margin-bottom:var(--rtk-space-8, 32px);height:var(--rtk-space-12, 48px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}";export{n as rtk_waiting_screen}
@@ -0,0 +1 @@
1
+ import{r as t,d as r,h as a,a as e}from"./p-gJCRRBX0.js";import{e as i,i as s}from"./p-C8tHk7bV.js";import{S as o}from"./p-CGOvNX5H.js";import{T as n}from"./p-Dj-6QheV.js";import"./p-CRQsZMW5.js";var c=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 n=t.length-1;n>=0;n--)(i=t[n])&&(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 d=class{constructor(a){t(this,a),this.dismiss=r(this,"rtkNotificationDismiss",7),this.iconPack=i,this.t=s(),this.imageState="loading"}connectedCallback(){this.notificationChanged(this.notification)}pausedChanged(t){t?clearTimeout(this.timeout):this.notificationChanged(this.notification)}notificationChanged(t){null==t||"number"!=typeof t.duration||this.paused||(this.timeout=window.setTimeout((()=>{this.dismiss.emit(t.id)}),t.duration))}render(){var t;return a(e,{key:"f8ddbd9e32a05c36d3b7ea8d1589bba1b6009fab"},a("div",{key:"61fe82306da70295f9530edf9acdb28d891ae9d5",class:"ctr"},null!=this.notification.icon&&a("rtk-icon",{key:"59cb7c56120f3c3d52fc9d39c7e1c7066d7f5d72",class:"icon",icon:this.notification.icon,variant:null!==(t=this.notification.iconVariant)&&void 0!==t?t:"primary"}),null!=this.notification.image&&null==this.notification.icon&&"errored"!==this.imageState&&a("img",{key:"3dce9047059aa31989e0205f1fe20abade6b56f7",src:this.notification.image,class:{loaded:"loaded"===this.imageState},onLoad:()=>this.imageState="loaded",onError:()=>this.imageState="errored"}),a("p",{key:"eaf2809d755002b226552111f52e5d6ec35f1731",class:"message"},a(n,{key:"5fc9377a438bcb3fe70d8ad85d753ed30123204c",message:this.notification.message})),a("div",{key:"5d4562cd5dd565b107f39b1eb0cbbd400281082b",class:"right"},null!=this.notification.button&&a("rtk-button",{key:"f21316499b4f85b4ab7b3b1194c8014b969f2358",size:"sm",variant:this.notification.button.variant,onClick:()=>this.notification.button.onClick()},this.notification.button.text),a("button",{key:"299be899a5cd4e7e23b9e0006e69d030b5f06b10",onClick:()=>this.dismiss.emit(this.notification.id),class:"dismiss"},a("rtk-icon",{key:"ef56fd50689c3166a3f6f7f8cebb2ed9d902dc3d","aria-label":this.t("dismiss"),icon:this.iconPack.dismiss})))))}static get watchers(){return{paused:[{pausedChanged:0}],notification:[{notificationChanged:0}]}}};c([o()],d.prototype,"iconPack",void 0),c([o()],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{pointer-events:none;display:block;height:var(--rtk-space-10, 40px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));animation:show 0.4s ease;transition:0.4s;z-index:100}.ctr{box-sizing:border-box;display:inline-flex;height:100%;min-width:var(--rtk-space-40, 160px);align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-2, 8px);-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}img{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-0, 0px);width:var(--rtk-space-0, 0px);border-radius:9999px}img.loaded{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}.message{margin-right:var(--rtk-space-2, 8px);max-width:var(--rtk-space-72, 288px) !important;font-size:14px !important;overflow:hidden !important;display:-webkit-box !important;-webkit-box-orient:vertical !important;-webkit-line-clamp:2 !important}.message p{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-1, 4px)}.message blockquote{display:none}rtk-icon.icon{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}button.dismiss{display:flex;height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);align-items:center;justify-content:center;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));outline-width:1px;outline-color:rgb(var(--rtk-colors-text-1000, 255 255 255))}button.dismiss:hover{cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}button.dismiss:focus-visible{outline-style:solid}button.dismiss{transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.dismiss rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}rtk-button{border-radius:var(--rtk-border-radius-sm, 4px)}.right{margin-left:auto;display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateX(-120px)}100%{opacity:1;transform:translateX(0px)}}@keyframes exit{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-120px)}}:host([size='sm']){font-size:14px}";export{d as rtk_notification}
@@ -1 +1 @@
1
- import{r,h as t,a}from"./p-gJCRRBX0.js";import{e,i as o,J as s}from"./p-fJjgai7z.js";import{C as i}from"./p-C5Ah4uY5.js";import{s as c}from"./p-BIplIdLH.js";import{S as n}from"./p-DE_WFbDN.js";import"./p-jvwnrxra.js";import"./p-vBD2htwQ.js";var l=function(r,t,a,e){var o,s=arguments.length,i=s<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,t,a,e);else for(var c=r.length-1;c>=0;c--)(o=r[c])&&(i=(s<3?o(i):s>3?o(t,a,i):o(t,a))||i);return s>3&&i&&Object.defineProperty(t,a,i),i};const d=class{constructor(t){r(this,t),this.searchQuery="",this.isProcessing=!1,this.iconPack=e,this.t=o(),this.transcriptions=[],this.autoScrollEnabled=!0,this.onScroll=r=>{const{scrollTop:t,clientHeight:a,scrollHeight:e}=r.target;this.autoScrollEnabled=t+a+10>=e},this.onTranscriptHandler=r=>{this.transcriptions=this.transcriptionsReducer(this.transcriptions,r)}}transcriptionsReducer(r,t){if(!r.length||r[r.length-1].peerId!==t.peerId)return r.concat(t);const a=r[r.length-1];return a.id===t.id?(a.transcript=t.transcript,r.pop(),r.concat(a)):r.concat(t)}connectedCallback(){this.meeting&&this.meetingChanged(this.meeting)}componentDidLoad(){var r;null===(r=this.contentContainer)||void 0===r||r.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var r,t,a;null===(t=null===(r=this.meeting)||void 0===r?void 0:r.ai)||void 0===t||t.off("transcript",this.onTranscriptHandler),null===(a=this.contentContainer)||void 0===a||a.removeEventListener("scroll",this.onScroll)}meetingChanged(r){var t,a;this.transcriptions=s(null===(t=null==r?void 0:r.ai)||void 0===t?void 0:t.transcripts),this.transcriptions=this.transcriptions.reduce(this.transcriptionsReducer,[]),null===(a=null==r?void 0:r.ai)||void 0===a||a.on("transcript",this.onTranscriptHandler)}transcriptionsChanged(){this.autoScrollEnabled&&setTimeout((()=>{c(this.contentContainer,!1)}),100)}renderContent(){const r=this.renderTranscripts();return t("div",{class:"content scrollbar",ref:r=>this.contentContainer=r},0===this.transcriptions.length&&t("div",{class:"started-message"},this.t("ai.transcriptions.no_transcripts_yet")),r,this.transcriptions.length>0&&this.searchQuery&&0===r.length&&t("div",{class:"started-message"},this.t("ai.transcriptions.no_transcripts_found")))}renderTranscripts(){var r;const a=null===(r=this.searchQuery)||void 0===r?void 0:r.toLowerCase(),e=this.transcriptions.filter((r=>{var t,e;return!a||(null===(t=r.name)||void 0===t?void 0:t.toLowerCase().includes(a))||(null===(e=r.transcript)||void 0===e?void 0:e.toLowerCase().includes(a))})),o=[];return e.forEach((r=>{const t={name:r.name,date:r.date,peerId:r.peerId,transcript:r.transcript};if(!o.length)return void o.push(t);const a=o[o.length-1];r.peerId===a.peerId?a.transcript+=" "+r.transcript:o.push(t)})),o.map((r=>t("div",{class:"message"},t(i,{name:r.name,time:new Date(r.date),now:new Date}),t("div",{class:"body"},r.transcript))))}render(){return t(a,{key:"08b41c4274270f9df80881c0a1fee9cdb5621ed7"},t("div",{key:"debebf0ef34437b1d9266cf5470a3d47975a865b",class:"search"},t("rtk-icon",{key:"5a17bcacd6ee1813ca40f5d6d550cc7425060d14",icon:this.iconPack.search}),t("input",{key:"b36d618edaccca47d5a076bf28e2af4c08039929",type:"search",autocomplete:"off",placeholder:this.t("ai.transcriptions.search_placeholder"),value:this.searchQuery,onInput:r=>this.searchQuery=r.target.value})),this.isProcessing&&t("div",{key:"8a9a5fda23dec97e14faaacc6bbade22a711b137",class:"processing"},t("p",{key:"24385d63e55281e957bed28b5055560b9a860c63"},"Processing audio....")),!this.isProcessing&&this.renderContent())}static get watchers(){return{meeting:[{meetingChanged:0}],transcriptions:[{transcriptionsChanged:0}]}}};l([n()],d.prototype,"meeting",void 0),l([n()],d.prototype,"iconPack",void 0),l([n()],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)}.head{display:flex;align-items:center}.head .name{margin-right:var(--rtk-space-4, 16px);font-size:12px;font-weight:700}.head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}*{box-sizing:border-box;border-width:0;border-style:solid}:host{width:100%;display:flex;flex-direction:column}.processing{display:flex;flex:1 1 0%;flex-direction:column;align-items:center;justify-content:center}.content{box-sizing:border-box;display:flex;flex-direction:column;padding:var(--rtk-space-3, 12px);flex:1 0 0px;overflow-y:scroll}.started-message{margin-top:var(--rtk-space-5, 20px);margin-bottom:var(--rtk-space-5, 20px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.caption-view{height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));display:flex;align-items:center;justify-content:space-between;font-size:14px}.message .body{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);font-size:14px;word-break:break-word}.message{margin-bottom:var(--rtk-space-3, 12px)}.message:last-child{margin-bottom:var(--rtk-space-0, 0px)}";export{d as rtk_ai_transcriptions}
1
+ import{r,h as t,a}from"./p-gJCRRBX0.js";import{e,i as o,L as s}from"./p-C8tHk7bV.js";import{C as i}from"./p-C5Ah4uY5.js";import{s as c}from"./p-BIplIdLH.js";import{S as n}from"./p-CGOvNX5H.js";import"./p-jvwnrxra.js";import"./p-vBD2htwQ.js";var l=function(r,t,a,e){var o,s=arguments.length,i=s<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,t,a,e);else for(var c=r.length-1;c>=0;c--)(o=r[c])&&(i=(s<3?o(i):s>3?o(t,a,i):o(t,a))||i);return s>3&&i&&Object.defineProperty(t,a,i),i};const d=class{constructor(t){r(this,t),this.searchQuery="",this.isProcessing=!1,this.iconPack=e,this.t=o(),this.transcriptions=[],this.autoScrollEnabled=!0,this.onScroll=r=>{const{scrollTop:t,clientHeight:a,scrollHeight:e}=r.target;this.autoScrollEnabled=t+a+10>=e},this.onTranscriptHandler=r=>{this.transcriptions=this.transcriptionsReducer(this.transcriptions,r)}}transcriptionsReducer(r,t){if(!r.length||r[r.length-1].peerId!==t.peerId)return r.concat(t);const a=r[r.length-1];return a.id===t.id?(a.transcript=t.transcript,r.pop(),r.concat(a)):r.concat(t)}connectedCallback(){this.meeting&&this.meetingChanged(this.meeting)}componentDidLoad(){var r;null===(r=this.contentContainer)||void 0===r||r.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var r,t,a;null===(t=null===(r=this.meeting)||void 0===r?void 0:r.ai)||void 0===t||t.off("transcript",this.onTranscriptHandler),null===(a=this.contentContainer)||void 0===a||a.removeEventListener("scroll",this.onScroll)}meetingChanged(r){var t,a;this.transcriptions=s(null===(t=null==r?void 0:r.ai)||void 0===t?void 0:t.transcripts),this.transcriptions=this.transcriptions.reduce(this.transcriptionsReducer,[]),null===(a=null==r?void 0:r.ai)||void 0===a||a.on("transcript",this.onTranscriptHandler)}transcriptionsChanged(){this.autoScrollEnabled&&setTimeout((()=>{c(this.contentContainer,!1)}),100)}renderContent(){const r=this.renderTranscripts();return t("div",{class:"content scrollbar",ref:r=>this.contentContainer=r},0===this.transcriptions.length&&t("div",{class:"started-message"},this.t("ai.transcriptions.no_transcripts_yet")),r,this.transcriptions.length>0&&this.searchQuery&&0===r.length&&t("div",{class:"started-message"},this.t("ai.transcriptions.no_transcripts_found")))}renderTranscripts(){var r;const a=null===(r=this.searchQuery)||void 0===r?void 0:r.toLowerCase(),e=this.transcriptions.filter((r=>{var t,e;return!a||(null===(t=r.name)||void 0===t?void 0:t.toLowerCase().includes(a))||(null===(e=r.transcript)||void 0===e?void 0:e.toLowerCase().includes(a))})),o=[];return e.forEach((r=>{const t={name:r.name,date:r.date,peerId:r.peerId,transcript:r.transcript};if(!o.length)return void o.push(t);const a=o[o.length-1];r.peerId===a.peerId?a.transcript+=" "+r.transcript:o.push(t)})),o.map((r=>t("div",{class:"message"},t(i,{name:r.name,time:new Date(r.date),now:new Date}),t("div",{class:"body"},r.transcript))))}render(){return t(a,{key:"08b41c4274270f9df80881c0a1fee9cdb5621ed7"},t("div",{key:"debebf0ef34437b1d9266cf5470a3d47975a865b",class:"search"},t("rtk-icon",{key:"5a17bcacd6ee1813ca40f5d6d550cc7425060d14",icon:this.iconPack.search}),t("input",{key:"b36d618edaccca47d5a076bf28e2af4c08039929",type:"search",autocomplete:"off",placeholder:this.t("ai.transcriptions.search_placeholder"),value:this.searchQuery,onInput:r=>this.searchQuery=r.target.value})),this.isProcessing&&t("div",{key:"8a9a5fda23dec97e14faaacc6bbade22a711b137",class:"processing"},t("p",{key:"24385d63e55281e957bed28b5055560b9a860c63"},"Processing audio....")),!this.isProcessing&&this.renderContent())}static get watchers(){return{meeting:[{meetingChanged:0}],transcriptions:[{transcriptionsChanged:0}]}}};l([n()],d.prototype,"meeting",void 0),l([n()],d.prototype,"iconPack",void 0),l([n()],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)}.head{display:flex;align-items:center}.head .name{margin-right:var(--rtk-space-4, 16px);font-size:12px;font-weight:700}.head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}*{box-sizing:border-box;border-width:0;border-style:solid}:host{width:100%;display:flex;flex-direction:column}.processing{display:flex;flex:1 1 0%;flex-direction:column;align-items:center;justify-content:center}.content{box-sizing:border-box;display:flex;flex-direction:column;padding:var(--rtk-space-3, 12px);flex:1 0 0px;overflow-y:scroll}.started-message{margin-top:var(--rtk-space-5, 20px);margin-bottom:var(--rtk-space-5, 20px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.caption-view{height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));display:flex;align-items:center;justify-content:space-between;font-size:14px}.message .body{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);font-size:14px;word-break:break-word}.message{margin-bottom:var(--rtk-space-3, 12px)}.message:last-child{margin-bottom:var(--rtk-space-0, 0px)}";export{d as rtk_ai_transcriptions}
@@ -1 +1 @@
1
- import{r as t,h as i,a}from"./p-gJCRRBX0.js";import{c as s,e,i as r}from"./p-fJjgai7z.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{R as n}from"./p-CTFO-5XH.js";import{S as c}from"./p-DE_WFbDN.js";import"./p-Daj_55_i.js";var p=function(t,i,a,s){var e,r=arguments.length,n=r<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 c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const o=class{constructor(a){t(this,a),this.config=s(),this.hideHeader=!1,this.iconPack=e,this.view="sidebar",this.t=r(),this.search="",this.participants=[],this.createParticipantNode=t=>{const a={meeting:this.meeting,view:this.view,t:this.t,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack};return i("div",null,i(n,{element:"rtk-participant",defaults:a,props:{role:"listitem",participant:t,key:t.id},childProps:Object.assign(Object.assign({},a),{participant:t,size:this.size}),deepProps:!0}))},this.updateStageList=()=>{this.getParticipants(this.search)}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}disconnectedCallback(){if(!this.meeting)return;const{participants:t,stage:i}=this.meeting;this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),t.joined.removeListener("stageStatusUpdate",this.updateStageList),null==i||i.removeListener("stageStatusUpdate",this.updateStageList)}meetingChanged(t){t&&(this.participantJoinedListener=t=>{if("ON_STAGE"!==t.stageStatus)return;const i=this.search.toLowerCase();t.name.toLowerCase().includes(i)&&t.id.toLowerCase().includes(i)&&(this.participants=[...this.participants.filter((i=>i.id!==t.id)),t])},this.participantLeftListener=t=>{this.participants=this.participants.filter((i=>i.id!==t.id))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),this.updateStageList(),null==t||t.participants.joined.on("stageStatusUpdate",this.updateStageList),null==t||t.stage.on("stageStatusUpdate",this.updateStageList))}searchChanged(t){this.getParticipants(t)}getParticipants(t=this.search){let i="ON_STAGE"===this.meeting.stage.status?[this.meeting.self]:[];i=[...i,...this.meeting.participants.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus))],this.participants=""===t?i:i.filter((i=>{var a;return(null!==(a=i.name)&&void 0!==a?a:i.id).toLowerCase().includes(t.toLowerCase())}))}render(){return i(a,{key:"1beca8f05d4f78a269317b333a00946ac642af00"},i("div",{key:"7d54d4187eb8478ddfdc632b42af4875afd1a158",class:"participants-container"},!this.hideHeader&&i("div",{key:"ecaa9721738cc020fe4aa1f966d2450f0f9d8e01",class:"heading-count",part:"heading-count"},this.t("participants")," (",this.participants.length,")"),i("rtk-virtualized-participant-list",{key:"8d12273242c1f9081e199fd189060addf28c45a6",items:this.participants,renderItem:this.createParticipantNode,part:"participants",class:"participants",emptyListElement:i("div",{class:"empty-stage-list"},this.t(this.search.length>0?"search.could_not_find":"search.empty"))})))}static get watchers(){return{meeting:[{meetingChanged:0}],search:[{searchChanged:0}]}}};p([c()],o.prototype,"meeting",void 0),p([c()],o.prototype,"states",void 0),p([c()],o.prototype,"config",void 0),p([c()],o.prototype,"iconPack",void 0),p([c()],o.prototype,"t",void 0),o.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;width:100%;flex-direction:column;font-size:14px}.participants-container{margin-bottom:var(--rtk-space-4, 16px);height:100%;width:100%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.empty-stage-list{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}rtk-participant{width:100%}";var l=function(t,i,a,s){var e,r=arguments.length,n=r<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 c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const h=class{constructor(i){t(this,i),this.config=s(),this.iconPack=e,this.view="sidebar",this.t=r(),this.stageRequestedParticipants=[],this.updateStageRequestedParticipants=()=>{this.stageRequestedParticipants=this.meeting.participants.joined.toArray().filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus))},this.acceptStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.grantAccess([i])},this.rejectStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.denyAccess([i])},this.acceptAllStageRequest=async()=>{await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((t=>t.userId)))},this.denyAllStageRequest=async()=>{var t;await(null===(t=this.meeting.stage)||void 0===t?void 0:t.denyAccess(this.stageRequestedParticipants.map((t=>t.userId))))},this.shouldShowStageRequests=()=>this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&this.stageRequestedParticipants.length>0,this.updateRequestList=async t=>{var i,a,s,e,r,n,c;this.meeting.self.permissions.acceptStageRequests&&this.meeting.self.permissions.stageEnabled?"LIVESTREAM"===this.meeting.meta.viewType||"HIVE"===(null===(s=null===(a=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===a?void 0:a.permissions)||void 0===s?void 0:s.mediaRoomType)?(t||(t=null!==(n=null===(r=await(null===(e=this.meeting.stage)||void 0===e?void 0:e.getAccessRequests()))||void 0===r?void 0:r.stageRequests)&&void 0!==n?n:[]),this.stageRequestedParticipants=t.map((t=>Object.assign(Object.assign({},t),{name:t.displayName})))):this.stageRequestedParticipants=null===(c=[this.meeting.self,...this.meeting.participants.joined.toArray()])||void 0===c?void 0:c.filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus)):this.stageRequestedParticipants=[]}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;const{stage:i}=this.meeting;null==i||i.removeListener("stageAccessRequestUpdate",this.updateRequestList),null===(t=this.meeting.participants.joined)||void 0===t||t.removeListener("stageStatusUpdate",this.updateStageRequestedParticipants)}meetingChanged(t){var i;t&&(this.updateRequestList(),t.participants.joined.on("stageStatusUpdate",this.updateStageRequestedParticipants),null===(i=t.stage)||void 0===i||i.on("stageAccessRequestUpdate",this.updateRequestList))}render(){return this.meeting?"sidebar"===this.view&&this.shouldShowStageRequests()?i("div",{class:"stage-requested-participants"},i("div",{class:"heading-count",part:"staged-heading-count"},this.t("stage_request.header_title")," (",this.stageRequestedParticipants.length,")"),i("ul",{class:"participants",part:"staged-participants"},this.stageRequestedParticipants.map((t=>i("li",{class:"waiting-participant",key:t.id},i("div",{class:"participant-details"},i("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),i("p",{class:"name",title:t.name},t.name)),i("div",{class:"waitlist-controls"},i("rtk-tooltip",{label:this.t("stage_request.deny_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectStageRequest(t)},i("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),i("rtk-tooltip",{label:this.t("stage_request.accept_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptStageRequest(t)},i("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),i("div",{class:"bulk-actions"},i("rtk-button",{class:"accept-all-button",variant:"secondary",onClick:this.acceptAllStageRequest},this.t("stage_request.accept_all")),i("rtk-button",{class:"deny-all-button",variant:"danger",onClick:this.denyAllStageRequest},this.t("stage_request.deny_all")))):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}]}}};l([c()],h.prototype,"meeting",void 0),l([c()],h.prototype,"config",void 0),l([c()],h.prototype,"iconPack",void 0),l([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{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:column;font-size:14px}.stage-requested-participants{margin-bottom:var(--rtk-space-8, 32px)}.stage-requested-participants .bulk-actions{display:flex;gap:var(--rtk-space-2, 8px)}.stage-requested-participants .bulk-actions .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.stage-requested-participants .bulk-actions rtk-button{flex:1 1 0%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";var d=function(t,i,a,s){var e,r=arguments.length,n=r<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 c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const g=class{constructor(a){t(this,a),this.updateStageViewers=()=>{this.getViewers(this.search)},this.config=s(),this.hideHeader=!1,this.iconPack=e,this.view="sidebar",this.search="",this.t=r(),this.stageViewers=[],this.createParticipantNode=t=>i("rtk-participant",{role:"listitem",key:t.id,meeting:this.meeting,participant:t,view:this.view,iconPack:this.iconPack,config:this.config,t:this.t}),this.shouldShowViewers=()=>{var t,i,a;return null===(a=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===a?void 0:a.stageEnabled}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}meetingChanged(t){t&&(this.participantJoinedListener=t=>{if("ON_STAGE"===t.stageStatus)return;const i=this.search.toLowerCase();i.length>0&&!t.name.toLowerCase().includes(i)||(this.stageViewers=[...this.stageViewers.filter((i=>i.id!==t.id)),t])},this.participantLeftListener=t=>{this.stageViewers=this.stageViewers.filter((i=>i.id!==t.id))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.participants.joined.on("stageStatusUpdate",this.updateStageViewers),t.stage.on("stageStatusUpdate",this.updateStageViewers))}searchChanged(t){this.getViewers(t)}disconnectedCallback(){const{participants:t,stage:i}=this.meeting;this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),t.joined.removeListener("stageStatusUpdate",this.updateStageViewers),i.removeListener("stageStatusUpdate",this.updateStageViewers)}getViewers(t){let i="ON_STAGE"===this.meeting.stage.status?[]:[this.meeting.self];i=[...i,...this.meeting.participants.joined.toArray()].filter((t=>"ON_STAGE"!==t.stageStatus)),this.stageViewers=""===t?i:i.filter((i=>{var a;return(null!==(a=i.name)&&void 0!==a?a:i.id).toLowerCase().includes(t.toLowerCase())}))}render(){return this.meeting?"sidebar"===this.view&&this.shouldShowViewers()?i("div",{class:"list"},!this.hideHeader&&i("div",{class:"heading-count",part:"heading-count"},this.t("viewers")," (",this.stageViewers.length,")"),i("rtk-virtualized-participant-list",{items:this.stageViewers,renderItem:this.createParticipantNode,class:"participants",part:"participants",style:{height:"100%"},emptyListElement:i("div",{class:"empty-viewers-list"},this.t(this.search.length>0?"participants.errors.empty_results":"participants.empty_list"))})):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}],search:[{searchChanged:0}]}}};d([c()],g.prototype,"meeting",void 0),d([c()],g.prototype,"config",void 0),d([c()],g.prototype,"iconPack",void 0),d([c()],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)}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}.list{margin-bottom:var(--rtk-space-4, 16px);display:flex;height:100%;flex-direction:column}h3,.heading-count{margin:var(--rtk-space-0, 0px);align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.empty-viewers-list{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}";var v=function(t,i,a,s){var e,r=arguments.length,n=r<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 c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const f=class{constructor(i){t(this,i),this.config=s(),this.iconPack=e,this.view="sidebar",this.t=r(),this.acceptWaitingRoomRequest=async t=>{await this.meeting.participants.acceptWaitingRoomRequest(t)},this.waitlistedParticipants=[],this.acceptAllWaitingRoomRequests=async()=>{await this.meeting.participants.acceptAllWaitingRoomRequest(this.waitlistedParticipants.map((t=>t.id)))},this.rejectWaitingRoomRequest=async t=>{await this.meeting.participants.rejectWaitingRoomRequest(t)},this.shouldShowWaitlist=()=>"LIVESTREAM"!==this.meeting.meta.viewType&&this.meeting.self.permissions.acceptWaitingRequests&&0!==this.waitlistedParticipants.length}disconnectedCallback(){const{participants:t}=this.meeting;this.waitlistedParticipantJoinedListener&&t.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&t.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.waitlistedParticipantsClearedListener&&t.waitlisted.removeListener("participantsCleared",this.waitlistedParticipantsClearedListener)}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t])},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id))},this.waitlistedParticipantsClearedListener=()=>{this.waitlistedParticipants=[]},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener),t.participants.waitlisted.addListener("participantsCleared",this.waitlistedParticipantsClearedListener))}render(){if("sidebar"===this.view&&this.shouldShowWaitlist())return i("div",{class:"waiting-participants"},i("div",{class:"heading-count",part:"waitlisted-heading-count"},this.t("waitlist.header_title")," (",this.waitlistedParticipants.length,")"),i("ul",{class:"participants",part:"waitlisted-participants"},this.waitlistedParticipants.map((t=>i("li",{class:"waiting-participant",key:t.id},i("div",{class:"participant-details"},i("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),i("p",{class:"name",title:t.name},t.name)),i("div",{class:"waitlist-controls"},i("rtk-tooltip",{label:this.t("waitlist.deny_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectWaitingRoomRequest(t.id)},i("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),i("rtk-tooltip",{label:this.t("waitlist.accept_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptWaitingRoomRequest(t.id)},i("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),i("rtk-button",{class:"accept-all-button",variant:"secondary",kind:"wide",onClick:this.acceptAllWaitingRoomRequests},this.t("waitlist.accept_all")))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};v([c()],f.prototype,"meeting",void 0),v([c()],f.prototype,"config",void 0),v([c()],f.prototype,"iconPack",void 0),v([c()],f.prototype,"t",void 0),f.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{margin-top:var(--rtk-space-4, 16px);margin-bottom:calc(var(--rtk-space-2, 8px) * -1);display:flex;width:100%;flex-direction:column;font-size:14px}.waiting-participants{margin-bottom:var(--rtk-space-8, 32px)}.waiting-participants .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{o as rtk_participants_stage_list,h as rtk_participants_stage_queue,g as rtk_participants_viewer_list,f as rtk_participants_waiting_list}
1
+ import{r as t,h as i,a}from"./p-gJCRRBX0.js";import{c as s,e,i as r}from"./p-C8tHk7bV.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{R as n}from"./p-CTFO-5XH.js";import{S as c}from"./p-CGOvNX5H.js";import"./p-Daj_55_i.js";var p=function(t,i,a,s){var e,r=arguments.length,n=r<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 c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const o=class{constructor(a){t(this,a),this.config=s(),this.hideHeader=!1,this.iconPack=e,this.view="sidebar",this.t=r(),this.search="",this.participants=[],this.createParticipantNode=t=>{const a={meeting:this.meeting,view:this.view,t:this.t,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack};return i("div",null,i(n,{element:"rtk-participant",defaults:a,props:{role:"listitem",participant:t,key:t.id},childProps:Object.assign(Object.assign({},a),{participant:t,size:this.size}),deepProps:!0}))},this.updateStageList=()=>{this.getParticipants(this.search)}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}disconnectedCallback(){if(!this.meeting)return;const{participants:t,stage:i}=this.meeting;this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),t.joined.removeListener("stageStatusUpdate",this.updateStageList),null==i||i.removeListener("stageStatusUpdate",this.updateStageList)}meetingChanged(t){t&&(this.participantJoinedListener=t=>{if("ON_STAGE"!==t.stageStatus)return;const i=this.search.toLowerCase();t.name.toLowerCase().includes(i)&&t.id.toLowerCase().includes(i)&&(this.participants=[...this.participants.filter((i=>i.id!==t.id)),t])},this.participantLeftListener=t=>{this.participants=this.participants.filter((i=>i.id!==t.id))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),this.updateStageList(),null==t||t.participants.joined.on("stageStatusUpdate",this.updateStageList),null==t||t.stage.on("stageStatusUpdate",this.updateStageList))}searchChanged(t){this.getParticipants(t)}getParticipants(t=this.search){let i="ON_STAGE"===this.meeting.stage.status?[this.meeting.self]:[];i=[...i,...this.meeting.participants.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus))],this.participants=""===t?i:i.filter((i=>{var a;return(null!==(a=i.name)&&void 0!==a?a:i.id).toLowerCase().includes(t.toLowerCase())}))}render(){return i(a,{key:"1beca8f05d4f78a269317b333a00946ac642af00"},i("div",{key:"7d54d4187eb8478ddfdc632b42af4875afd1a158",class:"participants-container"},!this.hideHeader&&i("div",{key:"ecaa9721738cc020fe4aa1f966d2450f0f9d8e01",class:"heading-count",part:"heading-count"},this.t("participants")," (",this.participants.length,")"),i("rtk-virtualized-participant-list",{key:"8d12273242c1f9081e199fd189060addf28c45a6",items:this.participants,renderItem:this.createParticipantNode,part:"participants",class:"participants",emptyListElement:i("div",{class:"empty-stage-list"},this.t(this.search.length>0?"search.could_not_find":"search.empty"))})))}static get watchers(){return{meeting:[{meetingChanged:0}],search:[{searchChanged:0}]}}};p([c()],o.prototype,"meeting",void 0),p([c()],o.prototype,"states",void 0),p([c()],o.prototype,"config",void 0),p([c()],o.prototype,"iconPack",void 0),p([c()],o.prototype,"t",void 0),o.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;width:100%;flex-direction:column;font-size:14px}.participants-container{margin-bottom:var(--rtk-space-4, 16px);height:100%;width:100%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.empty-stage-list{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}rtk-participant{width:100%}";var l=function(t,i,a,s){var e,r=arguments.length,n=r<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 c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const h=class{constructor(i){t(this,i),this.config=s(),this.iconPack=e,this.view="sidebar",this.t=r(),this.stageRequestedParticipants=[],this.updateStageRequestedParticipants=()=>{this.stageRequestedParticipants=this.meeting.participants.joined.toArray().filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus))},this.acceptStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.grantAccess([i])},this.rejectStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.denyAccess([i])},this.acceptAllStageRequest=async()=>{await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((t=>t.userId)))},this.denyAllStageRequest=async()=>{var t;await(null===(t=this.meeting.stage)||void 0===t?void 0:t.denyAccess(this.stageRequestedParticipants.map((t=>t.userId))))},this.shouldShowStageRequests=()=>this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&this.stageRequestedParticipants.length>0,this.updateRequestList=async t=>{var i,a,s,e,r,n,c;this.meeting.self.permissions.acceptStageRequests&&this.meeting.self.permissions.stageEnabled?"LIVESTREAM"===this.meeting.meta.viewType||"HIVE"===(null===(s=null===(a=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===a?void 0:a.permissions)||void 0===s?void 0:s.mediaRoomType)?(t||(t=null!==(n=null===(r=await(null===(e=this.meeting.stage)||void 0===e?void 0:e.getAccessRequests()))||void 0===r?void 0:r.stageRequests)&&void 0!==n?n:[]),this.stageRequestedParticipants=t.map((t=>Object.assign(Object.assign({},t),{name:t.displayName})))):this.stageRequestedParticipants=null===(c=[this.meeting.self,...this.meeting.participants.joined.toArray()])||void 0===c?void 0:c.filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus)):this.stageRequestedParticipants=[]}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;const{stage:i}=this.meeting;null==i||i.removeListener("stageAccessRequestUpdate",this.updateRequestList),null===(t=this.meeting.participants.joined)||void 0===t||t.removeListener("stageStatusUpdate",this.updateStageRequestedParticipants)}meetingChanged(t){var i;t&&(this.updateRequestList(),t.participants.joined.on("stageStatusUpdate",this.updateStageRequestedParticipants),null===(i=t.stage)||void 0===i||i.on("stageAccessRequestUpdate",this.updateRequestList))}render(){return this.meeting?"sidebar"===this.view&&this.shouldShowStageRequests()?i("div",{class:"stage-requested-participants"},i("div",{class:"heading-count",part:"staged-heading-count"},this.t("stage_request.header_title")," (",this.stageRequestedParticipants.length,")"),i("ul",{class:"participants",part:"staged-participants"},this.stageRequestedParticipants.map((t=>i("li",{class:"waiting-participant",key:t.id},i("div",{class:"participant-details"},i("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),i("p",{class:"name",title:t.name},t.name)),i("div",{class:"waitlist-controls"},i("rtk-tooltip",{label:this.t("stage_request.deny_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectStageRequest(t)},i("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),i("rtk-tooltip",{label:this.t("stage_request.accept_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptStageRequest(t)},i("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),i("div",{class:"bulk-actions"},i("rtk-button",{class:"accept-all-button",variant:"secondary",onClick:this.acceptAllStageRequest},this.t("stage_request.accept_all")),i("rtk-button",{class:"deny-all-button",variant:"danger",onClick:this.denyAllStageRequest},this.t("stage_request.deny_all")))):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}]}}};l([c()],h.prototype,"meeting",void 0),l([c()],h.prototype,"config",void 0),l([c()],h.prototype,"iconPack",void 0),l([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{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:column;font-size:14px}.stage-requested-participants{margin-bottom:var(--rtk-space-8, 32px)}.stage-requested-participants .bulk-actions{display:flex;gap:var(--rtk-space-2, 8px)}.stage-requested-participants .bulk-actions .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.stage-requested-participants .bulk-actions rtk-button{flex:1 1 0%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";var d=function(t,i,a,s){var e,r=arguments.length,n=r<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 c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const g=class{constructor(a){t(this,a),this.updateStageViewers=()=>{this.getViewers(this.search)},this.config=s(),this.hideHeader=!1,this.iconPack=e,this.view="sidebar",this.search="",this.t=r(),this.stageViewers=[],this.createParticipantNode=t=>i("rtk-participant",{role:"listitem",key:t.id,meeting:this.meeting,participant:t,view:this.view,iconPack:this.iconPack,config:this.config,t:this.t}),this.shouldShowViewers=()=>{var t,i,a;return null===(a=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===a?void 0:a.stageEnabled}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}meetingChanged(t){t&&(this.participantJoinedListener=t=>{if("ON_STAGE"===t.stageStatus)return;const i=this.search.toLowerCase();i.length>0&&!t.name.toLowerCase().includes(i)||(this.stageViewers=[...this.stageViewers.filter((i=>i.id!==t.id)),t])},this.participantLeftListener=t=>{this.stageViewers=this.stageViewers.filter((i=>i.id!==t.id))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.participants.joined.on("stageStatusUpdate",this.updateStageViewers),t.stage.on("stageStatusUpdate",this.updateStageViewers))}searchChanged(t){this.getViewers(t)}disconnectedCallback(){const{participants:t,stage:i}=this.meeting;this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),t.joined.removeListener("stageStatusUpdate",this.updateStageViewers),i.removeListener("stageStatusUpdate",this.updateStageViewers)}getViewers(t){let i="ON_STAGE"===this.meeting.stage.status?[]:[this.meeting.self];i=[...i,...this.meeting.participants.joined.toArray()].filter((t=>"ON_STAGE"!==t.stageStatus)),this.stageViewers=""===t?i:i.filter((i=>{var a;return(null!==(a=i.name)&&void 0!==a?a:i.id).toLowerCase().includes(t.toLowerCase())}))}render(){return this.meeting?"sidebar"===this.view&&this.shouldShowViewers()?i("div",{class:"list"},!this.hideHeader&&i("div",{class:"heading-count",part:"heading-count"},this.t("viewers")," (",this.stageViewers.length,")"),i("rtk-virtualized-participant-list",{items:this.stageViewers,renderItem:this.createParticipantNode,class:"participants",part:"participants",style:{height:"100%"},emptyListElement:i("div",{class:"empty-viewers-list"},this.t(this.search.length>0?"participants.errors.empty_results":"participants.empty_list"))})):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}],search:[{searchChanged:0}]}}};d([c()],g.prototype,"meeting",void 0),d([c()],g.prototype,"config",void 0),d([c()],g.prototype,"iconPack",void 0),d([c()],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)}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}.list{margin-bottom:var(--rtk-space-4, 16px);display:flex;height:100%;flex-direction:column}h3,.heading-count{margin:var(--rtk-space-0, 0px);align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.empty-viewers-list{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}";var v=function(t,i,a,s){var e,r=arguments.length,n=r<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 c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const f=class{constructor(i){t(this,i),this.config=s(),this.iconPack=e,this.view="sidebar",this.t=r(),this.acceptWaitingRoomRequest=async t=>{await this.meeting.participants.acceptWaitingRoomRequest(t)},this.waitlistedParticipants=[],this.acceptAllWaitingRoomRequests=async()=>{await this.meeting.participants.acceptAllWaitingRoomRequest(this.waitlistedParticipants.map((t=>t.id)))},this.rejectWaitingRoomRequest=async t=>{await this.meeting.participants.rejectWaitingRoomRequest(t)},this.shouldShowWaitlist=()=>"LIVESTREAM"!==this.meeting.meta.viewType&&this.meeting.self.permissions.acceptWaitingRequests&&0!==this.waitlistedParticipants.length}disconnectedCallback(){const{participants:t}=this.meeting;this.waitlistedParticipantJoinedListener&&t.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&t.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.waitlistedParticipantsClearedListener&&t.waitlisted.removeListener("participantsCleared",this.waitlistedParticipantsClearedListener)}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t])},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id))},this.waitlistedParticipantsClearedListener=()=>{this.waitlistedParticipants=[]},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener),t.participants.waitlisted.addListener("participantsCleared",this.waitlistedParticipantsClearedListener))}render(){if("sidebar"===this.view&&this.shouldShowWaitlist())return i("div",{class:"waiting-participants"},i("div",{class:"heading-count",part:"waitlisted-heading-count"},this.t("waitlist.header_title")," (",this.waitlistedParticipants.length,")"),i("ul",{class:"participants",part:"waitlisted-participants"},this.waitlistedParticipants.map((t=>i("li",{class:"waiting-participant",key:t.id},i("div",{class:"participant-details"},i("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),i("p",{class:"name",title:t.name},t.name)),i("div",{class:"waitlist-controls"},i("rtk-tooltip",{label:this.t("waitlist.deny_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectWaitingRoomRequest(t.id)},i("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),i("rtk-tooltip",{label:this.t("waitlist.accept_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptWaitingRoomRequest(t.id)},i("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),i("rtk-button",{class:"accept-all-button",variant:"secondary",kind:"wide",onClick:this.acceptAllWaitingRoomRequests},this.t("waitlist.accept_all")))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};v([c()],f.prototype,"meeting",void 0),v([c()],f.prototype,"config",void 0),v([c()],f.prototype,"iconPack",void 0),v([c()],f.prototype,"t",void 0),f.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{margin-top:var(--rtk-space-4, 16px);margin-bottom:calc(var(--rtk-space-2, 8px) * -1);display:flex;width:100%;flex-direction:column;font-size:14px}.waiting-participants{margin-bottom:var(--rtk-space-8, 32px)}.waiting-participants .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{o as rtk_participants_stage_list,h as rtk_participants_stage_queue,g as rtk_participants_viewer_list,f as rtk_participants_waiting_list}
@@ -1 +1 @@
1
- import{r as t,h as e,a as i}from"./p-gJCRRBX0.js";import{e as a}from"./p-fJjgai7z.js";import{S as n}from"./p-DE_WFbDN.js";var s=function(t,e,i,a){var n,s=arguments.length,r=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const r=t=>Math.trunc(t).toString().padStart(2,"0"),o=class{constructor(e){t(this,e),this.iconPack=a,this.disconnectMeeting=()=>{var t,e;this.timeout&&clearTimeout(this.timeout),"number"==typeof this.request&&cancelAnimationFrame(this.request),null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e||e.removeListener("meetingStartTimeUpdate",this.startedTimeUpdateListener)},this.startedTimeUpdateListener=()=>{var t,e,i;this.startedTime=null===(i=null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting()}meetingChanged(t){var e,i,a;this.disconnectMeeting(),null!=t&&(this.startedTime=null===(i=null===(e=t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString(),null===(a=t.meta)||void 0===a||a.addListener("meetingStartTimeUpdate",this.startedTimeUpdateListener))}startedTimeChanged(t){if(void 0!==t){const t=()=>{this.timeDiff=(Date.now()-new Date(this.startedTime).getTime())/1e3,this.timeout=setTimeout((()=>{null!=this.request&&(this.request=requestAnimationFrame(t))}),500)};this.request=requestAnimationFrame(t)}}getFormattedTime(){if(null==this.timeDiff)return null;const t=this.timeDiff;let e="";return t>=3600&&(e=`${r(t/3600)}:`),e+=`${r(t%3600/60)}:${r(t%60)}`,e}render(){return e(i,{key:"4592c92b870075a8ec23d89c01c382f61278983a","data-hidden":!(void 0!==this.startedTime),tabIndex:0,role:"timer","aria-live":"off"},void 0!==this.startedTime&&[e("rtk-icon",{key:"87b1012dd7c5d7187182a2ed025868f05ed010e7",icon:this.iconPack.clock,"aria-hidden":!0,tabIndex:-1,part:"icon"}),e("span",{key:"6fec2fef30be9c54a3e68108fde81a59ce000576",part:"text"},this.getFormattedTime())])}static get watchers(){return{meeting:[{meetingChanged:0}],startedTime:[{startedTimeChanged:0}]}}};s([n()],o.prototype,"meeting",void 0),s([n()],o.prototype,"iconPack",void 0),o.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-variant-numeric:tabular-nums}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}";export{o as rtk_clock}
1
+ import{r as t,h as e,a as i}from"./p-gJCRRBX0.js";import{e as a}from"./p-C8tHk7bV.js";import{S as n}from"./p-CGOvNX5H.js";var s=function(t,e,i,a){var n,s=arguments.length,r=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const r=t=>Math.trunc(t).toString().padStart(2,"0"),o=class{constructor(e){t(this,e),this.iconPack=a,this.disconnectMeeting=()=>{var t,e;this.timeout&&clearTimeout(this.timeout),"number"==typeof this.request&&cancelAnimationFrame(this.request),null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e||e.removeListener("meetingStartTimeUpdate",this.startedTimeUpdateListener)},this.startedTimeUpdateListener=()=>{var t,e,i;this.startedTime=null===(i=null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting()}meetingChanged(t){var e,i,a;this.disconnectMeeting(),null!=t&&(this.startedTime=null===(i=null===(e=t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString(),null===(a=t.meta)||void 0===a||a.addListener("meetingStartTimeUpdate",this.startedTimeUpdateListener))}startedTimeChanged(t){if(void 0!==t){const t=()=>{this.timeDiff=(Date.now()-new Date(this.startedTime).getTime())/1e3,this.timeout=setTimeout((()=>{null!=this.request&&(this.request=requestAnimationFrame(t))}),500)};this.request=requestAnimationFrame(t)}}getFormattedTime(){if(null==this.timeDiff)return null;const t=this.timeDiff;let e="";return t>=3600&&(e=`${r(t/3600)}:`),e+=`${r(t%3600/60)}:${r(t%60)}`,e}render(){return e(i,{key:"4592c92b870075a8ec23d89c01c382f61278983a","data-hidden":!(void 0!==this.startedTime),tabIndex:0,role:"timer","aria-live":"off"},void 0!==this.startedTime&&[e("rtk-icon",{key:"87b1012dd7c5d7187182a2ed025868f05ed010e7",icon:this.iconPack.clock,"aria-hidden":!0,tabIndex:-1,part:"icon"}),e("span",{key:"6fec2fef30be9c54a3e68108fde81a59ce000576",part:"text"},this.getFormattedTime())])}static get watchers(){return{meeting:[{meetingChanged:0}],startedTime:[{startedTimeChanged:0}]}}};s([n()],o.prototype,"meeting",void 0),s([n()],o.prototype,"iconPack",void 0),o.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-variant-numeric:tabular-nums}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}";export{o as rtk_clock}
@@ -1 +1 @@
1
- import{r as t,h as e,a}from"./p-gJCRRBX0.js";import{a as r,f as s}from"./p-vBD2htwQ.js";import{e as i,i as o}from"./p-fJjgai7z.js";import{S as n}from"./p-DE_WFbDN.js";var c=function(t,e,a,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const l=class{constructor(e){t(this,e),this.isScreenShare=!1,this.variant="default",this.iconPack=i,this.t=o(),this.length=13}sizeChanged(t){this.length="sm"===t?8:13}formatNameTag(t,e){return this.isScreenShare?e?`${this.t("screen")} - ${r(t,this.length-3)} (${this.t("you")})`:`${this.t("screen")} - ${r(t,this.length)}`:e?`${r(t,this.length-3)} (${this.t("you")})`:r(t,this.length)}render(){var t,r,i;const o=s((null===(t=this.participant)||void 0===t?void 0:t.name)||""),n=(null===(r=this.participant)||void 0===r?void 0:r.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id);return e(a,{key:"9040aabe429bea4cfcdc7a6635eeb336f2154961",title:o},e("slot",{key:"f66091f5af1914e91e14415a4758f9bdc15c0c85",name:"start"}),e("span",{key:"241ca42f60b258c5b3c20f423e9ade272f8f5a8b",class:"name"},this.formatNameTag(o,n)),e("slot",{key:"7f6f9b8e5c2ea76042a0ff812458af6ed702b43d",name:"end"}))}static get watchers(){return{size:[{sizeChanged:0}]}}};c([n()],l.prototype,"meeting",void 0),c([n()],l.prototype,"iconPack",void 0),c([n()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}span.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}::slotted(rtk-audio-visualizer[slot='start']){margin-right:var(--rtk-space-1\\.5, 6px)}::slotted(rtk-audio-visualizer[slot='end']){margin-left:var(--rtk-space-1\\.5, 6px)}:host([size='sm']){font-size:12px;--tw-bg-opacity:0.6}:host([variant='text']){background-color:transparent;padding:var(--rtk-space-0, 0px)}";export{l as rtk_name_tag}
1
+ import{r as t,h as e,a}from"./p-gJCRRBX0.js";import{a as r,f as s}from"./p-vBD2htwQ.js";import{e as i,i as o}from"./p-C8tHk7bV.js";import{S as n}from"./p-CGOvNX5H.js";var c=function(t,e,a,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const l=class{constructor(e){t(this,e),this.isScreenShare=!1,this.variant="default",this.iconPack=i,this.t=o(),this.length=13}sizeChanged(t){this.length="sm"===t?8:13}formatNameTag(t,e){return this.isScreenShare?e?`${this.t("screen")} - ${r(t,this.length-3)} (${this.t("you")})`:`${this.t("screen")} - ${r(t,this.length)}`:e?`${r(t,this.length-3)} (${this.t("you")})`:r(t,this.length)}render(){var t,r,i;const o=s((null===(t=this.participant)||void 0===t?void 0:t.name)||""),n=(null===(r=this.participant)||void 0===r?void 0:r.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id);return e(a,{key:"9040aabe429bea4cfcdc7a6635eeb336f2154961",title:o},e("slot",{key:"f66091f5af1914e91e14415a4758f9bdc15c0c85",name:"start"}),e("span",{key:"241ca42f60b258c5b3c20f423e9ade272f8f5a8b",class:"name"},this.formatNameTag(o,n)),e("slot",{key:"7f6f9b8e5c2ea76042a0ff812458af6ed702b43d",name:"end"}))}static get watchers(){return{size:[{sizeChanged:0}]}}};c([n()],l.prototype,"meeting",void 0),c([n()],l.prototype,"iconPack",void 0),c([n()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}span.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}::slotted(rtk-audio-visualizer[slot='start']){margin-right:var(--rtk-space-1\\.5, 6px)}::slotted(rtk-audio-visualizer[slot='end']){margin-left:var(--rtk-space-1\\.5, 6px)}:host([size='sm']){font-size:12px;--tw-bg-opacity:0.6}:host([variant='text']){background-color:transparent;padding:var(--rtk-space-0, 0px)}";export{l as rtk_name_tag}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{c as a,e as n,i as r}from"./p-fJjgai7z.js";import{d as h}from"./p-t72veIFj.js";import{R as o}from"./p-CTFO-5XH.js";import{a as p}from"./p-C0vp-Q7v.js";import{S as c}from"./p-DE_WFbDN.js";import{d as l}from"./p-CmmyVCoN.js";import"./p-BFTU3MAI.js";var d=function(t,i,s,e){var a,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(r=(n<3?a(r):n>3?a(i,s,r):a(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const g=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=a(),this.iconPack=n,this.t=r(),this.gridSize=l,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{this.meeting&&this.updateActiveParticipants()},this.refreshParticipants=h((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=p(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(!t)return;this.refreshParticipants.cancel(),this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:a}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==a||a.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.refreshParticipants),e.active.removeListener("participantJoined",this.refreshParticipants),e.active.removeListener("participantsUpdate",this.refreshParticipants),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,a,n;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:r,plugins:h,stage:o}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...r.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...r.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=r.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==h?void 0:h.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||"ALLOWED"===p.canProduceAudio||"ALLOWED"===p.canProduceVideo||"ALLOWED"===p.canProduceScreenshare,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==o||o.addListener("stageStatusUpdate",this.stageStatusListener),null==h||h.all.addListener("stateUpdate",this.onPluginStateUpdate),r.addListener("viewModeChanged",this.onViewModeChanged),r.active.addListener("participantLeft",this.refreshParticipants),null===(a=null==r?void 0:r.joined)||void 0===a||a.on("stageStatusUpdate",this.peerStageStatusListener),r.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),r.active.addListener("participantJoined",this.refreshParticipants),r.active.addListener("participantsUpdate",this.refreshParticipants),r.pinned.addListener("participantJoined",this.onParticipantPinned),r.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(n=t.stage)||void 0===n?void 0:n.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!this.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),this.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!this.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),this.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!this.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),this.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),...!["ACTIVE_GRID","MANUAL"].includes(s.viewMode)||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){var t,i,a,n;const r={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};if(this.invalidRoomStates.includes(this.roomState))return s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),s("h3",null,this.t("disconnected")),s("p",null,this.t("disconnected.description"))));if("disconnected"===this.roomState){const r=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.mediaState;if("connected"!==(null===(a=null==r?void 0:r.send)||void 0===a?void 0:a.state)||"connected"!==(null===(n=null==r?void 0:r.recv)||void 0===n?void 0:n.state))return s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("offline")),s("p",null,this.t("offline.description"))))}return"failed"===this.roomState?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("failed")),s("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?s(e,null,s("rtk-livestream-player",{meeting:this.meeting,size:this.size}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?s(e,null,s("div",{class:"webinar-stage"},s("div",{class:"center"},this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_host")),s("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):s(e,null,s(o,{element:"rtk-grid",defaults:r,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t}))}static get watchers(){return{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}}};d([c()],g.prototype,"meeting",void 0),d([c()],g.prototype,"states",void 0),d([c()],g.prototype,"config",void 0),d([c()],g.prototype,"iconPack",void 0),d([c()],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)}:host{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}";export{g as rtk_grid}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{c as a,e as n,i as r}from"./p-C8tHk7bV.js";import{d as h}from"./p-t72veIFj.js";import{R as o}from"./p-CTFO-5XH.js";import{a as p}from"./p-C0vp-Q7v.js";import{S as c}from"./p-CGOvNX5H.js";import{d as l}from"./p-CmmyVCoN.js";import"./p-BFTU3MAI.js";var d=function(t,i,s,e){var a,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(r=(n<3?a(r):n>3?a(i,s,r):a(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const g=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=a(),this.iconPack=n,this.t=r(),this.gridSize=l,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{this.meeting&&this.updateActiveParticipants()},this.refreshParticipants=h((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=p(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(!t)return;this.refreshParticipants.cancel(),this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:a}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==a||a.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.refreshParticipants),e.active.removeListener("participantJoined",this.refreshParticipants),e.active.removeListener("participantsUpdate",this.refreshParticipants),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,a,n;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:r,plugins:h,stage:o}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...r.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...r.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=r.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==h?void 0:h.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||"ALLOWED"===p.canProduceAudio||"ALLOWED"===p.canProduceVideo||"ALLOWED"===p.canProduceScreenshare,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==o||o.addListener("stageStatusUpdate",this.stageStatusListener),null==h||h.all.addListener("stateUpdate",this.onPluginStateUpdate),r.addListener("viewModeChanged",this.onViewModeChanged),r.active.addListener("participantLeft",this.refreshParticipants),null===(a=null==r?void 0:r.joined)||void 0===a||a.on("stageStatusUpdate",this.peerStageStatusListener),r.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),r.active.addListener("participantJoined",this.refreshParticipants),r.active.addListener("participantsUpdate",this.refreshParticipants),r.pinned.addListener("participantJoined",this.onParticipantPinned),r.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(n=t.stage)||void 0===n?void 0:n.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!this.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),this.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!this.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),this.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!this.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),this.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),...!["ACTIVE_GRID","MANUAL"].includes(s.viewMode)||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){var t,i,a,n;const r={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};if(this.invalidRoomStates.includes(this.roomState))return s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),s("h3",null,this.t("disconnected")),s("p",null,this.t("disconnected.description"))));if("disconnected"===this.roomState){const r=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.mediaState;if("connected"!==(null===(a=null==r?void 0:r.send)||void 0===a?void 0:a.state)||"connected"!==(null===(n=null==r?void 0:r.recv)||void 0===n?void 0:n.state))return s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("offline")),s("p",null,this.t("offline.description"))))}return"failed"===this.roomState?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("failed")),s("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?s(e,null,s("rtk-livestream-player",{meeting:this.meeting,size:this.size}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?s(e,null,s("div",{class:"webinar-stage"},s("div",{class:"center"},this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_host")),s("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):s(e,null,s(o,{element:"rtk-grid",defaults:r,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t}))}static get watchers(){return{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}}};d([c()],g.prototype,"meeting",void 0),d([c()],g.prototype,"states",void 0),d([c()],g.prototype,"config",void 0),d([c()],g.prototype,"iconPack",void 0),d([c()],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)}:host{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}";export{g as rtk_grid}
@@ -1 +1 @@
1
- import{r as t,e as i,h as e,a as s}from"./p-gJCRRBX0.js";import{e as o,i as n}from"./p-fJjgai7z.js";import{S as l}from"./p-DE_WFbDN.js";var r=function(t,i,e,s){var o,n=arguments.length,l=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(l=(n<3?o(l):n>3?o(i,e,l):o(i,e))||l);return n>3&&l&&Object.defineProperty(i,e,l),l};const a=class{constructor(e){t(this,e),this.isSaving=!1,this.iconPack=o,this.t=n(),this.canEdit=!1,this.isEditing=!1,this.titleUpdateListener=({meetingTitle:t})=>{this.meetingTitle=t},this.updateCanEdit=()=>{var t,i,e,s,o,n,l,r;const a=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions;this.canEdit=(null===(o=null===(s=null===(e=this.meeting)||void 0===e?void 0:e.connectedMeetings)||void 0===s?void 0:s.parentMeeting)||void 0===o?void 0:o.id)&&(null===(l=null===(n=this.meeting)||void 0===n?void 0:n.connectedMeetings)||void 0===l?void 0:l.isActive)?!!(null===(r=null==a?void 0:a.connectedMeetings)||void 0===r?void 0:r.canAlterConnectedMeetings):!!(null==a?void 0:a.canEditMeetingTitle),this.canEdit||(this.isEditing=!1)},this.startEditing=()=>{this.draftTitle=this.meetingTitle,this.isEditing=!0,i((()=>{var t,i;null===(t=this.inputEl)||void 0===t||t.focus(),null===(i=this.inputEl)||void 0===i||i.select()}))},this.onTitleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.startEditing())},this.stopEditing=()=>{this.isEditing=!1,i((()=>{var t;return null===(t=this.titleEl)||void 0===t?void 0:t.focus()}))},this.save=async()=>{var t;if(this.isSaving)return;const i=null===(t=this.inputEl)||void 0===t?void 0:t.value.trim();if(i&&i!==this.meetingTitle){this.isSaving=!0;try{await this.meeting.meta.setMeetingTitle(i)}catch(t){this.meeting.__internals__.logger.error("rtkMeetingTitle::setMeetingTitle failed",{error:t})}finally{this.isSaving=!1}}this.stopEditing()},this.onKeyDown=t=>{"Enter"!==t.key||t.isComposing||this.save(),"Escape"===t.key&&this.stopEditing()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.removeListeners(this.meeting)}removeListeners(t){var i,e,s,o;null===(i=null==t?void 0:t.meta)||void 0===i||i.removeListener("meetingTitleUpdate",this.titleUpdateListener),null===(s=null===(e=null==t?void 0:t.self)||void 0===e?void 0:e.permissions)||void 0===s||s.removeListener("permissionsUpdate",this.updateCanEdit),null===(o=null==t?void 0:t.connectedMeetings)||void 0===o||o.removeListener("stateUpdate",this.updateCanEdit)}meetingChanged(t,i){var e,s,o,n,l;this.removeListeners(i),this.removeListeners(t),this.meetingTitle=null===(e=null==t?void 0:t.meta)||void 0===e?void 0:e.meetingTitle,this.isEditing=!1,this.updateCanEdit(),null===(s=null==t?void 0:t.meta)||void 0===s||s.addListener("meetingTitleUpdate",this.titleUpdateListener),null===(n=null===(o=null==t?void 0:t.self)||void 0===o?void 0:o.permissions)||void 0===n||n.addListener("permissionsUpdate",this.updateCanEdit),null===(l=null==t?void 0:t.connectedMeetings)||void 0===l||l.addListener("stateUpdate",this.updateCanEdit)}render(){const t=this.meetingTitle;if(null==t)return e(s,{"data-hidden":!0});if(this.isEditing)return e(s,{role:"banner","aria-label":t},e("input",{ref:t=>this.inputEl=t,value:this.draftTitle,"aria-label":this.t("meeting_title.edit"),onKeyDown:this.onKeyDown,part:"input"}),e("rtk-tooltip",{label:this.t("meeting_title.save")},e("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("meeting_title.save"),onClick:this.save},e("rtk-icon",{icon:this.iconPack.checkmark}))),e("rtk-tooltip",{label:this.t("cancel")},e("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("cancel"),onClick:this.stopEditing},e("rtk-icon",{icon:this.iconPack.dismiss}))));const i=this.canEdit&&{role:"button",tabIndex:0,"aria-label":this.t("meeting_title.edit"),onClick:this.startEditing,onKeyDown:this.onTitleKeyDown};return e(s,{role:"banner","aria-label":t},e("rtk-tooltip",{label:t,part:"tooltip"},e("div",Object.assign({class:"title",part:"title",ref:t=>this.titleEl=t},i),t)))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};r([l()],a.prototype,"meeting",void 0),r([l()],a.prototype,"iconPack",void 0),r([l()],a.prototype,"t",void 0),a.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{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:16px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;align-items:center;gap:var(--rtk-space-1, 4px)}input{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-1, 4px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));-webkit-user-select:text;-moz-user-select:text;user-select:text;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;font-size:inherit}:host([data-hidden]){display:none}.title{min-width:var(--rtk-space-0, 0px);text-align:center;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.title[role='button']{cursor:pointer}:host([size='sm']){font-size:12px}";export{a as rtk_meeting_title}
1
+ import{r as t,e as i,h as e,a as s}from"./p-gJCRRBX0.js";import{e as o,i as n}from"./p-C8tHk7bV.js";import{S as l}from"./p-CGOvNX5H.js";var r=function(t,i,e,s){var o,n=arguments.length,l=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(l=(n<3?o(l):n>3?o(i,e,l):o(i,e))||l);return n>3&&l&&Object.defineProperty(i,e,l),l};const a=class{constructor(e){t(this,e),this.isSaving=!1,this.iconPack=o,this.t=n(),this.canEdit=!1,this.isEditing=!1,this.titleUpdateListener=({meetingTitle:t})=>{this.meetingTitle=t},this.updateCanEdit=()=>{var t,i,e,s,o,n,l,r;const a=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions;this.canEdit=(null===(o=null===(s=null===(e=this.meeting)||void 0===e?void 0:e.connectedMeetings)||void 0===s?void 0:s.parentMeeting)||void 0===o?void 0:o.id)&&(null===(l=null===(n=this.meeting)||void 0===n?void 0:n.connectedMeetings)||void 0===l?void 0:l.isActive)?!!(null===(r=null==a?void 0:a.connectedMeetings)||void 0===r?void 0:r.canAlterConnectedMeetings):!!(null==a?void 0:a.canEditMeetingTitle),this.canEdit||(this.isEditing=!1)},this.startEditing=()=>{this.draftTitle=this.meetingTitle,this.isEditing=!0,i((()=>{var t,i;null===(t=this.inputEl)||void 0===t||t.focus(),null===(i=this.inputEl)||void 0===i||i.select()}))},this.onTitleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.startEditing())},this.stopEditing=()=>{this.isEditing=!1,i((()=>{var t;return null===(t=this.titleEl)||void 0===t?void 0:t.focus()}))},this.save=async()=>{var t;if(this.isSaving)return;const i=null===(t=this.inputEl)||void 0===t?void 0:t.value.trim();if(i&&i!==this.meetingTitle){this.isSaving=!0;try{await this.meeting.meta.setMeetingTitle(i)}catch(t){this.meeting.__internals__.logger.error("rtkMeetingTitle::setMeetingTitle failed",{error:t})}finally{this.isSaving=!1}}this.stopEditing()},this.onKeyDown=t=>{"Enter"!==t.key||t.isComposing||this.save(),"Escape"===t.key&&this.stopEditing()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.removeListeners(this.meeting)}removeListeners(t){var i,e,s,o;null===(i=null==t?void 0:t.meta)||void 0===i||i.removeListener("meetingTitleUpdate",this.titleUpdateListener),null===(s=null===(e=null==t?void 0:t.self)||void 0===e?void 0:e.permissions)||void 0===s||s.removeListener("permissionsUpdate",this.updateCanEdit),null===(o=null==t?void 0:t.connectedMeetings)||void 0===o||o.removeListener("stateUpdate",this.updateCanEdit)}meetingChanged(t,i){var e,s,o,n,l;this.removeListeners(i),this.removeListeners(t),this.meetingTitle=null===(e=null==t?void 0:t.meta)||void 0===e?void 0:e.meetingTitle,this.isEditing=!1,this.updateCanEdit(),null===(s=null==t?void 0:t.meta)||void 0===s||s.addListener("meetingTitleUpdate",this.titleUpdateListener),null===(n=null===(o=null==t?void 0:t.self)||void 0===o?void 0:o.permissions)||void 0===n||n.addListener("permissionsUpdate",this.updateCanEdit),null===(l=null==t?void 0:t.connectedMeetings)||void 0===l||l.addListener("stateUpdate",this.updateCanEdit)}render(){const t=this.meetingTitle;if(null==t)return e(s,{"data-hidden":!0});if(this.isEditing)return e(s,{role:"banner","aria-label":t},e("input",{ref:t=>this.inputEl=t,value:this.draftTitle,"aria-label":this.t("meeting_title.edit"),onKeyDown:this.onKeyDown,part:"input"}),e("rtk-tooltip",{label:this.t("meeting_title.save")},e("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("meeting_title.save"),onClick:this.save},e("rtk-icon",{icon:this.iconPack.checkmark}))),e("rtk-tooltip",{label:this.t("cancel")},e("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("cancel"),onClick:this.stopEditing},e("rtk-icon",{icon:this.iconPack.dismiss}))));const i=this.canEdit&&{role:"button",tabIndex:0,"aria-label":this.t("meeting_title.edit"),onClick:this.startEditing,onKeyDown:this.onTitleKeyDown};return e(s,{role:"banner","aria-label":t},e("rtk-tooltip",{label:t,part:"tooltip"},e("div",Object.assign({class:"title",part:"title",ref:t=>this.titleEl=t},i),t)))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};r([l()],a.prototype,"meeting",void 0),r([l()],a.prototype,"iconPack",void 0),r([l()],a.prototype,"t",void 0),a.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{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:16px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;align-items:center;gap:var(--rtk-space-1, 4px)}input{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-1, 4px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));-webkit-user-select:text;-moz-user-select:text;user-select:text;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;font-size:inherit}:host([data-hidden]){display:none}.title{min-width:var(--rtk-space-0, 0px);text-align:center;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.title[role='button']{cursor:pointer}:host([size='sm']){font-size:12px}";export{a as rtk_meeting_title}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-fJjgai7z.js";import{S as r}from"./p-DE_WFbDN.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()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return s(e,{key:"ad7c5414e325d5ae40fd9d9c60d2cfe3a087205f",title:t},s("rtk-controlbar-button",{key:"4fd29a108fd3eff57cc3ab9069284dd72b703c71",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",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}";export{c as rtk_settings_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-C8tHk7bV.js";import{S as r}from"./p-CGOvNX5H.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()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return s(e,{key:"ad7c5414e325d5ae40fd9d9c60d2cfe3a087205f",title:t},s("rtk-controlbar-button",{key:"4fd29a108fd3eff57cc3ab9069284dd72b703c71",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",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}";export{c as rtk_settings_toggle}
@@ -1 +1 @@
1
- import{r as t,d as s,h as e,a as i}from"./p-gJCRRBX0.js";import{e as r,i as a}from"./p-fJjgai7z.js";import{S as h}from"./p-DE_WFbDN.js";var n=function(t,s,e,i){var r,a=arguments.length,h=a<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,s,e,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(h=(a<3?r(h):a>3?r(s,e,h):r(s,e))||h);return a>3&&h&&Object.defineProperty(s,e,h),h};const o=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,c=class{constructor(e){t(this,e),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=r,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.stopScreenShare=()=>{var t;this.screenShareState.disable||(null===(t=this.meeting)||void 0===t||t.self.disableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1}))},this.enableScreenShare=async()=>{if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const t=this.meeting,s=null==t?void 0:t.self;if(null!=s&&this.canScreenShare&&(!this.reachedMaxScreenShares()||this.screenShareEnabled)&&!this.hasPermissionError()){this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0});try{await s.enableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1})}catch(s){t.__internals__.logger.error("rtkScreenShare::enableScreenShare",{error:s})}finally{this.getState()}}},this.handleMenuItemKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget instanceof HTMLElement&&t.currentTarget.click())}}connectedCallback(){o()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,s,e,i,r,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===(e=this.meeting)||void 0===e||e.self.removeListener("screenShareUpdate",this.screenShareListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(r=this.meeting)||void 0===r?void 0:r.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:s,stage:e}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=s.config.maxScreenShareCount,this.screenShareEnabled=s.screenShareEnabled;let i=0;for(const s of t.participants.joined.toArray())s.screenShareEnabled&&i++;this.screenShareCount=i,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==e||e.addListener("stageStatusUpdate",this.stageStatusListener)}}screenShareAppearanceChanged(){this.getState()}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){var t;let s="",e="",i="",r={};const a=this.hasPermissionError()&&!this.screenShareEnabled,h=this.reachedMaxScreenShares()&&!this.screenShareEnabled,n="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!a?(e=this.t("screenshare.menu"),i=null!==(t=this.iconPack.share_screen_menu)&&void 0!==t?t:this.iconPack.share_screen_stop):(e=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(s=this.t("perm_sys_denied.screenshare"),r["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(s=this.t("perm_denied.screenshare"),r["red-icon"]=!0):s=e,h&&(s=this.t("screenshare.error.max_count")),n&&(s=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:s,label:e,icon:i,classList:r,disable:a||h,showWarning:a||h||n}}render(){var t;if(!o()||!this.canScreenShare||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return e(i,{"data-hidden":!0});const s=e("rtk-tooltip",{slot:this.screenShareEnabled?"trigger":void 0,placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},e("rtk-controlbar-button",{part:"controlbar-button",title:this.screenShareState.label,size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.screenShareEnabled?void 0:this.enableScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}));return e(i,null,this.screenShareEnabled?e("rtk-menu",{placement:"top",size:this.size,iconPack:this.iconPack,t:this.t},s,e("rtk-menu-list",{iconPack:this.iconPack,t:this.t},e("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.share_different_screen"),onClick:this.enableScreenShare,onKeyDown:this.handleMenuItemKeyDown},e("rtk-icon",{icon:null!==(t=this.iconPack.share_screen_different)&&void 0!==t?t:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),e("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.stop"),onClick:this.stopScreenShare,onKeyDown:this.handleMenuItemKeyDown},e("rtk-icon",{icon:this.iconPack.share_screen_stop,variant:"danger",slot:"start"}),this.t("screenshare.stop")))):s)}static get watchers(){return{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged:0}]}}};n([h()],c.prototype,"states",void 0),n([h()],c.prototype,"meeting",void 0),n([h()],c.prototype,"iconPack",void 0),n([h()],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}rtk-menu{display:block}rtk-menu-list{max-width:calc(100vw - 24px)}rtk-menu-item{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);line-height:1.25rem}rtk-menu-item rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-shrink:0}:host([data-hidden]){display:none}";export{c as rtk_screen_share_toggle}
1
+ import{r as t,d as s,h as e,a as i}from"./p-gJCRRBX0.js";import{e as r,i as h}from"./p-C8tHk7bV.js";import{S as a}from"./p-CGOvNX5H.js";var n=function(t,s,e,i){var r,h=arguments.length,a=h<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,e,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(h<3?r(a):h>3?r(s,e,a):r(s,e))||a);return h>3&&a&&Object.defineProperty(s,e,a),a};const o=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,c=class{constructor(e){t(this,e),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=r,this.t=h(),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.stopScreenShare=()=>{var t;this.screenShareState.disable||(null===(t=this.meeting)||void 0===t||t.self.disableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1}))},this.enableScreenShare=async()=>{if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const t=this.meeting,s=null==t?void 0:t.self;if(null!=s&&this.canScreenShare&&(!this.reachedMaxScreenShares()||this.screenShareEnabled)&&!this.hasPermissionError()){this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0});try{await s.enableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1})}catch(s){t.__internals__.logger.error("rtkScreenShare::enableScreenShare",{error:s})}finally{this.getState()}}},this.handleMenuItemKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget instanceof HTMLElement&&t.currentTarget.click())}}connectedCallback(){o()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,s,e,i,r,h;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===(e=this.meeting)||void 0===e||e.self.removeListener("screenShareUpdate",this.screenShareListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(h=null===(r=this.meeting)||void 0===r?void 0:r.stage)||void 0===h||h.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:s,stage:e}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=s.config.maxScreenShareCount,this.screenShareEnabled=s.screenShareEnabled;let i=0;for(const s of t.participants.joined.toArray())s.screenShareEnabled&&i++;this.screenShareCount=i,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==e||e.addListener("stageStatusUpdate",this.stageStatusListener)}}screenShareAppearanceChanged(){this.getState()}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){var t;let s="",e="",i="",r={};const h=this.hasPermissionError()&&!this.screenShareEnabled,a=this.reachedMaxScreenShares()&&!this.screenShareEnabled,n="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!h?(e=this.t("screenshare.menu"),i=null!==(t=this.iconPack.share_screen_menu)&&void 0!==t?t:this.iconPack.share_screen_stop):(e=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(s=this.t("perm_sys_denied.screenshare"),r["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(s=this.t("perm_denied.screenshare"),r["red-icon"]=!0):s=e,a&&(s=this.t("screenshare.error.max_count")),n&&(s=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:s,label:e,icon:i,classList:r,disable:h||a,showWarning:h||a||n}}render(){var t;if(!o()||!this.canScreenShare||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return e(i,{"data-hidden":!0});const s=e("rtk-tooltip",{slot:this.screenShareEnabled?"trigger":void 0,placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},e("rtk-controlbar-button",{part:"controlbar-button",title:this.screenShareState.label,size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.screenShareEnabled?void 0:this.enableScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}));return e(i,null,this.screenShareEnabled?e("rtk-menu",{placement:"top",size:this.size,iconPack:this.iconPack,t:this.t},s,e("rtk-menu-list",{iconPack:this.iconPack,t:this.t},e("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.share_different_screen"),onClick:this.enableScreenShare,onKeyDown:this.handleMenuItemKeyDown},e("rtk-icon",{icon:null!==(t=this.iconPack.share_screen_different)&&void 0!==t?t:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),e("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.stop"),onClick:this.stopScreenShare,onKeyDown:this.handleMenuItemKeyDown},e("rtk-icon",{icon:this.iconPack.share_screen_stop,variant:"danger",slot:"start"}),this.t("screenshare.stop")))):s)}static get watchers(){return{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged:0}]}}};n([a()],c.prototype,"states",void 0),n([a()],c.prototype,"meeting",void 0),n([a()],c.prototype,"iconPack",void 0),n([a()],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}rtk-menu{display:block}rtk-menu-list{max-width:calc(100vw - 24px)}rtk-menu-item{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);line-height:1.25rem}rtk-menu-item rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-shrink:0}:host([data-hidden]){display:none}";export{c as rtk_screen_share_toggle}
@@ -1 +1 @@
1
- import{r as t,d as i,h as o,a as e}from"./p-gJCRRBX0.js";import{c as n,e as s,i as a}from"./p-fJjgai7z.js";import{S as l}from"./p-DE_WFbDN.js";import{R as r}from"./p-CTFO-5XH.js";var c=function(t,i,o,e){var n,s=arguments.length,a=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(a=(s<3?n(a):s>3?n(i,o,a):n(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};const h=class{constructor(o){t(this,o),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=n(),this.iconPack=s,this.t=a(),this.updateStoreState=(t,i)=>{this.stateUpdate.emit({[t]:i})},this.cancelJoinStage=async()=>{var t,i,o;"ACCEPTED_TO_JOIN_STAGE"===(null===(t=this.meeting.stage)||void 0===t?void 0:t.status)&&await(null===(o=null===(i=this.meeting)||void 0===i?void 0:i.stage)||void 0===o?void 0:o.leave()),this.updateStoreState("activeJoinStage",!1)},this.joinStage=async()=>{await this.meeting.stage.join()},this.stageStatusUpdateListener=t=>{var i;(null===(i=this.states)||void 0===i?void 0:i.activeJoinStage)&&"ON_STAGE"===t&&this.updateStoreState("activeJoinStage",!1)}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)}meetingChanged(t){if(!t)return;const{stage:i}=t;null==i||i.addListener("stageStatusUpdate",this.stageStatusUpdateListener)}render(){var t,i,n,s;if(!this.meeting)return;const a={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t},l=this.states;if(null!=(null==l?void 0:l.image)){const t=()=>{this.stateUpdate.emit({image:null})};return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:t,hideCloseButton:!0,iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-image-viewer",defaults:a,props:{image:l.image,onClose:t}})))}if(!0===(null==l?void 0:l.activeSettings))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeSettings",!1),iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-settings",defaults:a})));if(!0===(null==l?void 0:l.activeDebugger))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeDebugger",!1),iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-debugger",defaults:a})));if(!0===(null==l?void 0:l.activeLeaveConfirmation))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeLeaveConfirmation",!1),iconPack:this.iconPack,t:this.t},o("rtk-leave-meeting",Object.assign({},a))));if(!0===(null===(t=null==l?void 0:l.activePermissionsMessage)||void 0===t?void 0:t.enabled))return o(e,null,o("rtk-dialog",{open:!0,hideCloseButton:!0,iconPack:this.iconPack,t:this.t},o("rtk-permissions-message",Object.assign({},a))));if(!0===(null===(i=null==l?void 0:l.activeBreakoutRoomsManager)||void 0===i?void 0:i.active))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeBreakoutRoomsManager",{active:!1,data:void 0}),iconPack:this.iconPack,t:this.t},o("rtk-breakout-rooms-manager",Object.assign({},a))));if(!0===(null===(n=null==l?void 0:l.activeConfirmationModal)||void 0===n?void 0:n.active))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeConfirmationModal",!1),iconPack:this.iconPack,t:this.t},o("rtk-confirmation-modal",Object.assign({},a))));if(!0===(null===(s=null==l?void 0:l.activeOverlayModal)||void 0===s?void 0:s.active))return o(e,null,o("rtk-overlay-modal",{meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t}));if(null==l?void 0:l.activeBroadcastMessageModal)return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeBroadcastMessageModal",!1),iconPack:this.iconPack,t:this.t},o("rtk-broadcast-message-modal",Object.assign({},a))));if(!0===(null==l?void 0:l.activeJoinStage)){const t={title:this.t("stage.join_title"),label:{accept:this.t("stage.join_confirm"),reject:this.t("stage.join_cancel")},description:this.t("stage.join_summary")};return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:this.cancelJoinStage,iconPack:this.iconPack,t:this.t},o("rtk-join-stage",Object.assign({dataConfig:t,onRtkJoinStage:this.joinStage,onRtkLeaveStage:this.cancelJoinStage},a))))}return!0===(null==l?void 0:l.activeMuteAllConfirmation)?o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>{this.updateStoreState("activeMuteAllConfirmation",!1)},iconPack:this.iconPack,t:this.t},o("rtk-mute-all-confirmation",Object.assign({},a)))):void 0}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([l()],h.prototype,"meeting",void 0),c([l()],h.prototype,"config",void 0),c([l()],h.prototype,"states",void 0),c([l()],h.prototype,"iconPack",void 0),c([l()],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}";export{h as rtk_dialog_manager}
1
+ import{r as t,d as i,h as o,a as e}from"./p-gJCRRBX0.js";import{c as n,e as s,i as a}from"./p-C8tHk7bV.js";import{S as l}from"./p-CGOvNX5H.js";import{R as r}from"./p-CTFO-5XH.js";var c=function(t,i,o,e){var n,s=arguments.length,a=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(a=(s<3?n(a):s>3?n(i,o,a):n(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};const h=class{constructor(o){t(this,o),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=n(),this.iconPack=s,this.t=a(),this.updateStoreState=(t,i)=>{this.stateUpdate.emit({[t]:i})},this.cancelJoinStage=async()=>{var t,i,o;"ACCEPTED_TO_JOIN_STAGE"===(null===(t=this.meeting.stage)||void 0===t?void 0:t.status)&&await(null===(o=null===(i=this.meeting)||void 0===i?void 0:i.stage)||void 0===o?void 0:o.leave()),this.updateStoreState("activeJoinStage",!1)},this.joinStage=async()=>{await this.meeting.stage.join()},this.stageStatusUpdateListener=t=>{var i;(null===(i=this.states)||void 0===i?void 0:i.activeJoinStage)&&"ON_STAGE"===t&&this.updateStoreState("activeJoinStage",!1)}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)}meetingChanged(t){if(!t)return;const{stage:i}=t;null==i||i.addListener("stageStatusUpdate",this.stageStatusUpdateListener)}render(){var t,i,n,s;if(!this.meeting)return;const a={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t},l=this.states;if(null!=(null==l?void 0:l.image)){const t=()=>{this.stateUpdate.emit({image:null})};return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:t,hideCloseButton:!0,iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-image-viewer",defaults:a,props:{image:l.image,onClose:t}})))}if(!0===(null==l?void 0:l.activeSettings))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeSettings",!1),iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-settings",defaults:a})));if(!0===(null==l?void 0:l.activeDebugger))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeDebugger",!1),iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-debugger",defaults:a})));if(!0===(null==l?void 0:l.activeLeaveConfirmation))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeLeaveConfirmation",!1),iconPack:this.iconPack,t:this.t},o("rtk-leave-meeting",Object.assign({},a))));if(!0===(null===(t=null==l?void 0:l.activePermissionsMessage)||void 0===t?void 0:t.enabled))return o(e,null,o("rtk-dialog",{open:!0,hideCloseButton:!0,iconPack:this.iconPack,t:this.t},o("rtk-permissions-message",Object.assign({},a))));if(!0===(null===(i=null==l?void 0:l.activeBreakoutRoomsManager)||void 0===i?void 0:i.active))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeBreakoutRoomsManager",{active:!1,data:void 0}),iconPack:this.iconPack,t:this.t},o("rtk-breakout-rooms-manager",Object.assign({},a))));if(!0===(null===(n=null==l?void 0:l.activeConfirmationModal)||void 0===n?void 0:n.active))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeConfirmationModal",!1),iconPack:this.iconPack,t:this.t},o("rtk-confirmation-modal",Object.assign({},a))));if(!0===(null===(s=null==l?void 0:l.activeOverlayModal)||void 0===s?void 0:s.active))return o(e,null,o("rtk-overlay-modal",{meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t}));if(null==l?void 0:l.activeBroadcastMessageModal)return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeBroadcastMessageModal",!1),iconPack:this.iconPack,t:this.t},o("rtk-broadcast-message-modal",Object.assign({},a))));if(!0===(null==l?void 0:l.activeJoinStage)){const t={title:this.t("stage.join_title"),label:{accept:this.t("stage.join_confirm"),reject:this.t("stage.join_cancel")},description:this.t("stage.join_summary")};return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:this.cancelJoinStage,iconPack:this.iconPack,t:this.t},o("rtk-join-stage",Object.assign({dataConfig:t,onRtkJoinStage:this.joinStage,onRtkLeaveStage:this.cancelJoinStage},a))))}return!0===(null==l?void 0:l.activeMuteAllConfirmation)?o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>{this.updateStoreState("activeMuteAllConfirmation",!1)},iconPack:this.iconPack,t:this.t},o("rtk-mute-all-confirmation",Object.assign({},a)))):void 0}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([l()],h.prototype,"meeting",void 0),c([l()],h.prototype,"config",void 0),c([l()],h.prototype,"states",void 0),c([l()],h.prototype,"iconPack",void 0),c([l()],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}";export{h as rtk_dialog_manager}
@@ -1 +1 @@
1
- import{r as t,d as r,h as i,a as s}from"./p-gJCRRBX0.js";import{c as a,e,i as o}from"./p-fJjgai7z.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{S as n}from"./p-DE_WFbDN.js";import{d as p}from"./p-D2jt9uAV.js";import"./p-Daj_55_i.js";var c=function(t,r,i,s){var a,e=arguments.length,o=e<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(e<3?a(o):e>3?a(r,i,o):a(r,i))||o);return e>3&&o&&Object.defineProperty(r,i,o),o};const h=class{constructor(s){t(this,s),this.stateUpdate=r(this,"rtkStateUpdate",7),this.config=a(),this.iconPack=e,this.defaultParticipantsTabId="stage-list",this.t=o(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=p((()=>{var t;let r=(null===(t=this.meeting.participants.waitlisted)||void 0===t?void 0:t.size)||0,s=0,a=0;this.meeting.participants.joined.toArray().forEach((t=>{"ON_STAGE"===t.stageStatus&&s++,"OFF_STAGE"===t.stageStatus&&a++,"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(r++,a++),"ACCEPTED_TO_JOIN_STAGE"===t.stageStatus&&a++})),"ON_STAGE"===this.meeting.self.stageStatus&&s++,"OFF_STAGE"===this.meeting.self.stageStatus&&a++,"REQUESTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&(r++,a++),"ACCEPTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&a++;const e=[];this.shouldShowRequestsTab()&&e.push({id:"requests",name:i("span",null,this.t("requests")," ",i("span",{class:`tab-participant-count-badge ${r>0?"requests-pending":""} ${"requests"===this.currentParticipantsTabId?"selected-tab":""}`},r))}),e.push({id:"stage-list",name:i("span",null,this.t("participants")," ",i("span",{class:"tab-participant-count-badge "+("stage-list"===this.currentParticipantsTabId?"selected-tab":"")},s))}),this.shouldShowViewersTab()&&e.push({id:"viewer-list",name:i("span",null,this.t("viewers")," ",i("span",{class:"tab-participant-count-badge "+("viewer-list"===this.currentParticipantsTabId?"selected-tab":"")},a))}),this.tabs=e,this.hasRequests=r>0})),this.onSearchInput=t=>{this.search=t.target.value},this.shouldShowViewersTab=()=>{var t,r,i;return null===(i=null===(r=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===r?void 0:r.permissions)||void 0===i?void 0:i.stageEnabled},this.shouldShowRequestsTab=()=>{var t;let r=!1;return r="LIVESTREAM"!==this.meeting.meta.viewType&&(null===(t=this.meeting.self.config.waitingRoom)||void 0===t?void 0:t.isEnabled)&&this.meeting.self.permissions.acceptWaitingRequests,this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests||r},this.viewSection=t=>{this.currentParticipantsTabId=t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.participants.joined.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantsUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.stage.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("stageStatusUpdate",this.updateParticipantCountsInTabs))}meetingChanged(t){t&&(t.participants.joined.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.joined.on("participantsUpdate",this.updateParticipantCountsInTabs),t.participants.joined.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.joined.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.stage.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("stageStatusUpdate",this.updateParticipantCountsInTabs),this.updateParticipantCountsInTabs())}currentParticipantsTabIdChanged(){this.stateUpdate.emit({participantsTabId:this.currentParticipantsTabId}),this.updateParticipantCountsInTabs()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t};return i(s,null,i("div",{class:"search",part:"search"},i("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),i("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),i("slot",{name:"start"}),i("div",{class:"ctr scrollbar "+("requests"!==this.currentParticipantsTabId?"virtualised":""),part:"container"},i("rtk-sidebar-ui",{tabs:this.tabs,currentTab:this.currentParticipantsTabId,view:"full-screen",hideHeader:!0,hideCloseAction:!0,style:{position:"relative"},onTabChange:t=>{this.viewSection(t.detail),t.stopPropagation()}},(!this.currentParticipantsTabId||"stage-list"===this.currentParticipantsTabId)&&i("div",{slot:"stage-list",style:{marginTop:"10px",height:"100%"}},i("rtk-participants-stage-list",Object.assign({},t,{search:this.search,hideHeader:!0}))),"requests"===this.currentParticipantsTabId&&i("div",{slot:"requests",style:{marginTop:"10px",height:"100%"}},!this.hasRequests&&i("div",{class:"no-pending-requests"},this.t("participants.no_pending_requests")),i("rtk-participants-stage-queue",Object.assign({},t)),i("rtk-participants-waiting-list",Object.assign({},t))),"viewer-list"===this.currentParticipantsTabId&&i("div",{slot:"viewer-list",style:{marginTop:"10px",height:"100%"}},i("rtk-participants-viewer-list",Object.assign({},t,{search:this.search,hideHeader:!0}))))),i("slot",{name:"end"}))}static get watchers(){return{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}}};c([n()],h.prototype,"meeting",void 0),c([n()],h.prototype,"states",void 0),c([n()],h.prototype,"config",void 0),c([n()],h.prototype,"iconPack",void 0),c([n()],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)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.ctr.virtualised{overflow-y:hidden}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}:host([size='md']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}:host([size='sm']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}.no-pending-requests{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}";export{h as rtk_participants}
1
+ import{r as t,d as r,h as i,a as s}from"./p-gJCRRBX0.js";import{c as a,e,i as o}from"./p-C8tHk7bV.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{S as n}from"./p-CGOvNX5H.js";import{d as p}from"./p-x7gw0EVy.js";import"./p-Daj_55_i.js";var c=function(t,r,i,s){var a,e=arguments.length,o=e<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(e<3?a(o):e>3?a(r,i,o):a(r,i))||o);return e>3&&o&&Object.defineProperty(r,i,o),o};const h=class{constructor(s){t(this,s),this.stateUpdate=r(this,"rtkStateUpdate",7),this.config=a(),this.iconPack=e,this.defaultParticipantsTabId="stage-list",this.t=o(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=p((()=>{var t;let r=(null===(t=this.meeting.participants.waitlisted)||void 0===t?void 0:t.size)||0,s=0,a=0;this.meeting.participants.joined.toArray().forEach((t=>{"ON_STAGE"===t.stageStatus&&s++,"OFF_STAGE"===t.stageStatus&&a++,"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(r++,a++),"ACCEPTED_TO_JOIN_STAGE"===t.stageStatus&&a++})),"ON_STAGE"===this.meeting.self.stageStatus&&s++,"OFF_STAGE"===this.meeting.self.stageStatus&&a++,"REQUESTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&(r++,a++),"ACCEPTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&a++;const e=[];this.shouldShowRequestsTab()&&e.push({id:"requests",name:i("span",null,this.t("requests")," ",i("span",{class:`tab-participant-count-badge ${r>0?"requests-pending":""} ${"requests"===this.currentParticipantsTabId?"selected-tab":""}`},r))}),e.push({id:"stage-list",name:i("span",null,this.t("participants")," ",i("span",{class:"tab-participant-count-badge "+("stage-list"===this.currentParticipantsTabId?"selected-tab":"")},s))}),this.shouldShowViewersTab()&&e.push({id:"viewer-list",name:i("span",null,this.t("viewers")," ",i("span",{class:"tab-participant-count-badge "+("viewer-list"===this.currentParticipantsTabId?"selected-tab":"")},a))}),this.tabs=e,this.hasRequests=r>0})),this.onSearchInput=t=>{this.search=t.target.value},this.shouldShowViewersTab=()=>{var t,r,i;return null===(i=null===(r=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===r?void 0:r.permissions)||void 0===i?void 0:i.stageEnabled},this.shouldShowRequestsTab=()=>{var t;let r=!1;return r="LIVESTREAM"!==this.meeting.meta.viewType&&(null===(t=this.meeting.self.config.waitingRoom)||void 0===t?void 0:t.isEnabled)&&this.meeting.self.permissions.acceptWaitingRequests,this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests||r},this.viewSection=t=>{this.currentParticipantsTabId=t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.participants.joined.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantsUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.stage.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("stageStatusUpdate",this.updateParticipantCountsInTabs))}meetingChanged(t){t&&(t.participants.joined.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.joined.on("participantsUpdate",this.updateParticipantCountsInTabs),t.participants.joined.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.joined.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.stage.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("stageStatusUpdate",this.updateParticipantCountsInTabs),this.updateParticipantCountsInTabs())}currentParticipantsTabIdChanged(){this.stateUpdate.emit({participantsTabId:this.currentParticipantsTabId}),this.updateParticipantCountsInTabs()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t};return i(s,null,i("div",{class:"search",part:"search"},i("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),i("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),i("slot",{name:"start"}),i("div",{class:"ctr scrollbar "+("requests"!==this.currentParticipantsTabId?"virtualised":""),part:"container"},i("rtk-sidebar-ui",{tabs:this.tabs,currentTab:this.currentParticipantsTabId,view:"full-screen",hideHeader:!0,hideCloseAction:!0,style:{position:"relative"},onTabChange:t=>{this.viewSection(t.detail),t.stopPropagation()}},(!this.currentParticipantsTabId||"stage-list"===this.currentParticipantsTabId)&&i("div",{slot:"stage-list",style:{marginTop:"10px",height:"100%"}},i("rtk-participants-stage-list",Object.assign({},t,{search:this.search,hideHeader:!0}))),"requests"===this.currentParticipantsTabId&&i("div",{slot:"requests",style:{marginTop:"10px",height:"100%"}},!this.hasRequests&&i("div",{class:"no-pending-requests"},this.t("participants.no_pending_requests")),i("rtk-participants-stage-queue",Object.assign({},t)),i("rtk-participants-waiting-list",Object.assign({},t))),"viewer-list"===this.currentParticipantsTabId&&i("div",{slot:"viewer-list",style:{marginTop:"10px",height:"100%"}},i("rtk-participants-viewer-list",Object.assign({},t,{search:this.search,hideHeader:!0}))))),i("slot",{name:"end"}))}static get watchers(){return{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}}};c([n()],h.prototype,"meeting",void 0),c([n()],h.prototype,"states",void 0),c([n()],h.prototype,"config",void 0),c([n()],h.prototype,"iconPack",void 0),c([n()],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)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.ctr.virtualised{overflow-y:hidden}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}:host([size='md']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}:host([size='sm']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}.no-pending-requests{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}";export{h as rtk_participants}