@cloudflare/realtimekit-ui 2.0.4-staging.4 → 2.1.0-staging.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (620) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-cfaZckxh.js → TextMessage-ad7ALYJY.js} +1 -1
  3. package/dist/cjs/{chat-Dmb93Uku.js → chat-B92wFN5b.js} +1 -1
  4. package/dist/cjs/{config-wbyoqfPs.js → config-Dbzo_bJK.js} +2 -2
  5. package/dist/cjs/{debounce-B5TJRWkG.js → debounce-BpQRL6yu.js} +1 -1
  6. package/dist/cjs/{index-CmhPLhux.js → index-BFnY1a32.js} +1 -1
  7. package/dist/cjs/index.cjs.js +4 -4
  8. package/dist/cjs/{init-error-BC4ECjPk.js → init-error-ByISl9tW.js} +15 -2
  9. package/dist/cjs/{merge-B7Yr5DGf.js → merge-D7WAq1ua.js} +1 -1
  10. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  11. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-avatar_26.cjs.entry.js +7 -7
  17. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  18. package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
  19. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  22. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  24. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  27. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  28. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-file-message_3.cjs.entry.js +4 -4
  40. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  53. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  54. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  55. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  60. package/dist/cjs/rtk-notifications.cjs.entry.js +3 -3
  61. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  62. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
  64. package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  66. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  68. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  78. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  80. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  85. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  88. package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  90. package/dist/cjs/rtk-ui-provider.cjs.entry.js +3 -3
  91. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
  92. package/dist/cjs/{ui-store-C7CyFWPZ.js → ui-store-BSCRR2KM.js} +5 -0
  93. package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
  94. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
  95. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  96. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  97. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
  98. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
  99. package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
  100. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
  101. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
  102. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
  103. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
  104. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
  105. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
  106. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
  107. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
  108. package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
  109. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
  110. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
  111. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
  112. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
  113. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
  114. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
  115. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +1 -1
  116. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
  117. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
  118. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  119. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  120. package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
  121. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  122. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  123. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  124. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
  125. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  126. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  127. package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
  128. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  129. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  130. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  131. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  132. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
  133. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  134. package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
  135. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
  136. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
  137. package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
  138. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
  139. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  140. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  141. package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
  142. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
  143. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  144. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
  145. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  146. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
  147. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
  148. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
  149. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
  150. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  151. package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
  152. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
  153. package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
  154. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  155. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  156. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
  157. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
  158. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
  159. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
  160. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
  161. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  162. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
  163. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
  164. package/dist/collection/components/rtk-notification/rtk-notification.js +1 -1
  165. package/dist/collection/components/rtk-notifications/rtk-notifications.js +1 -1
  166. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  167. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
  168. package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
  169. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
  170. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
  171. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
  172. package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
  173. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  174. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  175. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
  176. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
  177. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
  178. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
  179. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  180. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +1 -1
  181. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
  182. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
  183. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  184. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
  185. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  186. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
  187. package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
  188. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
  189. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  190. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
  191. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
  192. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +1 -1
  193. package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
  194. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
  195. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
  196. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +1 -1
  197. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +1 -1
  198. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +1 -1
  199. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
  200. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +1 -1
  201. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  202. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +1 -1
  203. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
  204. package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
  205. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
  206. package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
  207. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
  208. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +1 -1
  209. package/dist/collection/components/rtk-text-message/rtk-text-message.js +1 -1
  210. package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
  211. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  212. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
  213. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
  214. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +1 -1
  215. package/dist/collection/lib/lang/default-language.js +5 -0
  216. package/dist/collection/utils/init-error.js +15 -2
  217. package/dist/components/index.js +1 -1
  218. package/dist/components/{p-C7WazpNf.js → p-1tnmJmZg.js} +1 -1
  219. package/dist/components/{p-CAMtxcI_.js → p-406T43oR.js} +1 -1
  220. package/dist/components/{p-DhkCjo6N.js → p-B4eRurJb.js} +1 -1
  221. package/dist/components/{p-5i84b0Gw.js → p-BA1mdQNM.js} +1 -1
  222. package/dist/components/{p-BxPmWGqJ.js → p-BD_tAR0l.js} +1 -1
  223. package/dist/components/{p-CPnv0ZqZ.js → p-BGyhd1F2.js} +1 -1
  224. package/dist/components/{p-B5XTxQov.js → p-BHJCAi-B.js} +1 -1
  225. package/dist/components/{p-BYNelMao.js → p-BJVF89z6.js} +1 -1
  226. package/dist/components/{p-B3XpiAaE.js → p-BMURSJ6O.js} +1 -1
  227. package/dist/components/{p-BoqfUgTL.js → p-BQAzaaPe.js} +1 -1
  228. package/dist/components/{p-DRDGwBZ3.js → p-BQutCq9K.js} +1 -1
  229. package/dist/components/{p-DjOiGHfI.js → p-BTGG7zSl.js} +1 -1
  230. package/dist/components/{p-xKvr8ufu.js → p-BTonlp4Z.js} +1 -1
  231. package/dist/components/{p-CfIrQkMg.js → p-BUHdmTBZ.js} +1 -1
  232. package/dist/components/{p-CHOs-ZsL.js → p-BYeQWB0n.js} +1 -1
  233. package/dist/components/{p-Z8VMlEx7.js → p-BfJzVZMy.js} +1 -1
  234. package/dist/components/{p-Bw12zqoT.js → p-BfXglAT5.js} +1 -1
  235. package/dist/components/{p-BD2FfUwc.js → p-Bp6LuyCH.js} +1 -1
  236. package/dist/components/{p-tZ9CpAsl.js → p-Bp77q4OZ.js} +1 -1
  237. package/dist/components/{p-BODcekJl.js → p-BtTCkMjt.js} +1 -1
  238. package/dist/components/{p-CNaazJXM.js → p-Bx7LRRAp.js} +1 -1
  239. package/dist/components/{p-CpD_SehU.js → p-Bz_z53UP.js} +1 -1
  240. package/dist/components/{p-CnPYfRgf.js → p-C1bmT06N.js} +1 -1
  241. package/dist/components/{p-B1oyTNvb.js → p-C4LtJIM7.js} +1 -1
  242. package/dist/components/{p-CRI4EXkA.js → p-CJxrr3ZY.js} +1 -1
  243. package/dist/components/{p-CjstGmGh.js → p-CMXxXUg6.js} +1 -1
  244. package/dist/components/{p-B1HaRABx.js → p-CMhZTWqm.js} +1 -1
  245. package/dist/components/{p-CCxMYXjI.js → p-CN9slvhR.js} +1 -1
  246. package/dist/components/{p-BHHJ7_MS.js → p-COiw7loB.js} +1 -1
  247. package/dist/components/{p-B4dw_Fnl.js → p-CTEkeDKZ.js} +1 -1
  248. package/dist/components/{p-BL_lNnwE.js → p-CULWS8Fb.js} +1 -1
  249. package/dist/components/{p-BueZc6Xo.js → p-CYbyL1xB.js} +1 -1
  250. package/dist/components/{p-B3dQhqRr.js → p-CYfTjqOW.js} +1 -1
  251. package/dist/components/{p-igDs79FY.js → p-C_AHNvJ8.js} +1 -1
  252. package/dist/components/{p-CkB6Me6q.js → p-C_dy1X1G.js} +1 -1
  253. package/dist/components/{p-C6AgOKhg.js → p-CaLHOQAr.js} +1 -1
  254. package/dist/components/{p-BVwe7Wfq.js → p-Ceaxb0fV.js} +1 -1
  255. package/dist/components/p-Cj-LCS8F.js +1 -0
  256. package/dist/components/{p-hPdGZ_Bf.js → p-CneFaxcZ.js} +1 -1
  257. package/dist/components/{p-DViKr-34.js → p-Co0j6YHk.js} +1 -1
  258. package/dist/components/{p-5quurE-Z.js → p-Coi5x3I2.js} +1 -1
  259. package/dist/components/{p-iyI_rAph.js → p-CoqCgoLI.js} +1 -1
  260. package/dist/components/{p-ukr4mPVB.js → p-CpP1Oq1B.js} +1 -1
  261. package/dist/components/{p-B0SC1Zj-.js → p-CpejImHh.js} +1 -1
  262. package/dist/components/{p-CFBS-gbK.js → p-CyCI1p7C.js} +1 -1
  263. package/dist/components/{p-oJLPa1F-.js → p-D0E1dHQD.js} +1 -1
  264. package/dist/components/{p-DMbGWtns.js → p-D9BcuQ_v.js} +1 -1
  265. package/dist/components/{p-C5kkSbkd.js → p-DCNf_hw3.js} +1 -1
  266. package/dist/components/{p-Dh8N1Wv8.js → p-DDs1alfB.js} +1 -1
  267. package/dist/components/{p-LohuIsNV.js → p-DJTzvKvV.js} +1 -1
  268. package/dist/components/p-DNcV8eFN.js +1 -0
  269. package/dist/components/{p-Smh6fH4v.js → p-DPhyyN8o.js} +1 -1
  270. package/dist/components/{p-B4Ap4n7a.js → p-DQxMgOrh.js} +1 -1
  271. package/dist/components/{p-CTuYqZY2.js → p-DcNyG4cn.js} +1 -1
  272. package/dist/components/{p-ObGKzmP7.js → p-DdOgYR3r.js} +1 -1
  273. package/dist/components/{p-BvLjh5Yy.js → p-DdehD3Ic.js} +1 -1
  274. package/dist/components/{p-M0IaFpEv.js → p-Dh_F2aNK.js} +1 -1
  275. package/dist/components/{p-bRRQr4xn.js → p-Dms_qKT9.js} +1 -1
  276. package/dist/components/{p-CgQKQwo8.js → p-Ds1W9S1T.js} +1 -1
  277. package/dist/components/{p-C9UuqXCX.js → p-DsYErKjI.js} +1 -1
  278. package/dist/components/{p-DSUStc8e.js → p-Du2bvW5k.js} +1 -1
  279. package/dist/components/{p-Dq8iLPzP.js → p-IDFkzrnD.js} +1 -1
  280. package/dist/components/{p-CBGt9ESN.js → p-P7-5QimH.js} +1 -1
  281. package/dist/components/{p-D3fF-6sB.js → p-R38kp86h.js} +1 -1
  282. package/dist/components/{p-DSe3wsBa.js → p-WlTM-tEO.js} +1 -1
  283. package/dist/components/{p-Djf3ZrmN.js → p-cfJ0D-dh.js} +1 -1
  284. package/dist/components/{p-CJGAvEk3.js → p-ercb3gkA.js} +1 -1
  285. package/dist/components/{p-CGBdi6J9.js → p-eykZRgXE.js} +1 -1
  286. package/dist/components/{p-CxE6v80l.js → p-f4dz0Q95.js} +1 -1
  287. package/dist/components/{p-DONfrqzk.js → p-gTKpGq7q.js} +1 -1
  288. package/dist/components/{p-mgE9e3Hm.js → p-kF6tsy3z.js} +1 -1
  289. package/dist/components/{p-xnw0dG3-.js → p-m-r-atNb.js} +1 -1
  290. package/dist/components/{p-D6Vrf7V1.js → p-mHK3bMm5.js} +1 -1
  291. package/dist/components/{p-BW3eEJGd.js → p-qGbTl8DJ.js} +1 -1
  292. package/dist/components/{p-CW-FAeNP.js → p-rSpNJvuH.js} +1 -1
  293. package/dist/components/{p-NKK4fZcP.js → p-x2mZ8BTq.js} +1 -1
  294. package/dist/components/{p-CEK_XoGw.js → p-yItboz3c.js} +1 -1
  295. package/dist/components/rtk-ai-toggle.js +1 -1
  296. package/dist/components/rtk-ai-transcriptions.js +1 -1
  297. package/dist/components/rtk-ai.js +1 -1
  298. package/dist/components/rtk-audio-grid.js +1 -1
  299. package/dist/components/rtk-audio-tile.js +1 -1
  300. package/dist/components/rtk-audio-visualizer.js +1 -1
  301. package/dist/components/rtk-avatar.js +1 -1
  302. package/dist/components/rtk-breakout-room-manager.js +1 -1
  303. package/dist/components/rtk-breakout-room-participants.js +1 -1
  304. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  305. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  306. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  307. package/dist/components/rtk-camera-selector.js +1 -1
  308. package/dist/components/rtk-camera-toggle.js +1 -1
  309. package/dist/components/rtk-caption-toggle.js +1 -1
  310. package/dist/components/rtk-chat-composer-ui.js +1 -1
  311. package/dist/components/rtk-chat-composer-view.js +1 -1
  312. package/dist/components/rtk-chat-header.js +1 -1
  313. package/dist/components/rtk-chat-message.js +1 -1
  314. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  315. package/dist/components/rtk-chat-messages-ui.js +1 -1
  316. package/dist/components/rtk-chat-search-results.js +1 -1
  317. package/dist/components/rtk-chat-selector-ui.js +1 -1
  318. package/dist/components/rtk-chat-selector.js +1 -1
  319. package/dist/components/rtk-chat-toggle.js +1 -1
  320. package/dist/components/rtk-chat.js +1 -1
  321. package/dist/components/rtk-clock.js +1 -1
  322. package/dist/components/rtk-confirmation-modal.js +1 -1
  323. package/dist/components/rtk-controlbar-button.js +1 -1
  324. package/dist/components/rtk-controlbar.js +1 -1
  325. package/dist/components/rtk-counter.js +1 -1
  326. package/dist/components/rtk-debugger-audio.js +1 -1
  327. package/dist/components/rtk-debugger-screenshare.js +1 -1
  328. package/dist/components/rtk-debugger-system.js +1 -1
  329. package/dist/components/rtk-debugger-toggle.js +1 -1
  330. package/dist/components/rtk-debugger-video.js +1 -1
  331. package/dist/components/rtk-debugger.js +1 -1
  332. package/dist/components/rtk-dialog-manager.js +1 -1
  333. package/dist/components/rtk-dialog.js +1 -1
  334. package/dist/components/rtk-draft-attachment-view.js +1 -1
  335. package/dist/components/rtk-emoji-picker-button.js +1 -1
  336. package/dist/components/rtk-emoji-picker.js +1 -1
  337. package/dist/components/rtk-ended-screen.js +1 -1
  338. package/dist/components/rtk-file-dropzone.js +1 -1
  339. package/dist/components/rtk-file-message-view.js +1 -1
  340. package/dist/components/rtk-file-message.js +1 -1
  341. package/dist/components/rtk-file-picker-button.js +1 -1
  342. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  343. package/dist/components/rtk-grid-pagination.js +1 -1
  344. package/dist/components/rtk-grid.js +1 -1
  345. package/dist/components/rtk-header.js +1 -1
  346. package/dist/components/rtk-idle-screen.js +1 -1
  347. package/dist/components/rtk-image-message-view.js +1 -1
  348. package/dist/components/rtk-image-message.js +1 -1
  349. package/dist/components/rtk-image-viewer.js +1 -1
  350. package/dist/components/rtk-information-tooltip.js +1 -1
  351. package/dist/components/rtk-join-stage.js +1 -1
  352. package/dist/components/rtk-leave-button.js +1 -1
  353. package/dist/components/rtk-leave-meeting.js +1 -1
  354. package/dist/components/rtk-livestream-indicator.js +1 -1
  355. package/dist/components/rtk-livestream-player.js +1 -1
  356. package/dist/components/rtk-livestream-toggle.js +1 -1
  357. package/dist/components/rtk-logo.js +1 -1
  358. package/dist/components/rtk-meeting-title.js +1 -1
  359. package/dist/components/rtk-meeting.js +1 -1
  360. package/dist/components/rtk-menu-item.js +1 -1
  361. package/dist/components/rtk-menu-list.js +1 -1
  362. package/dist/components/rtk-menu.js +1 -1
  363. package/dist/components/rtk-message-list-view.js +1 -1
  364. package/dist/components/rtk-message-view.js +1 -1
  365. package/dist/components/rtk-mic-toggle.js +1 -1
  366. package/dist/components/rtk-microphone-selector.js +1 -1
  367. package/dist/components/rtk-mixed-grid.js +1 -1
  368. package/dist/components/rtk-more-toggle.js +1 -1
  369. package/dist/components/rtk-mute-all-button.js +1 -1
  370. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  371. package/dist/components/rtk-name-tag.js +1 -1
  372. package/dist/components/rtk-network-indicator.js +1 -1
  373. package/dist/components/rtk-notification.js +1 -1
  374. package/dist/components/rtk-notifications.js +1 -1
  375. package/dist/components/rtk-overlay-modal.js +1 -1
  376. package/dist/components/rtk-paginated-list.js +1 -1
  377. package/dist/components/rtk-participant-count.js +1 -1
  378. package/dist/components/rtk-participant-setup.js +1 -1
  379. package/dist/components/rtk-participant-tile.js +1 -1
  380. package/dist/components/rtk-participant.js +1 -1
  381. package/dist/components/rtk-participants-audio.js +1 -1
  382. package/dist/components/rtk-participants-stage-list.js +1 -1
  383. package/dist/components/rtk-participants-stage-queue.js +1 -1
  384. package/dist/components/rtk-participants-toggle.js +1 -1
  385. package/dist/components/rtk-participants-viewer-list.js +1 -1
  386. package/dist/components/rtk-participants-waiting-list.js +1 -1
  387. package/dist/components/rtk-participants.js +1 -1
  388. package/dist/components/rtk-permissions-message.js +1 -1
  389. package/dist/components/rtk-pinned-message-selector.js +1 -1
  390. package/dist/components/rtk-pip-toggle.js +1 -1
  391. package/dist/components/rtk-plugin-main.js +1 -1
  392. package/dist/components/rtk-plugins-toggle.js +1 -1
  393. package/dist/components/rtk-plugins.js +1 -1
  394. package/dist/components/rtk-poll-form.js +1 -1
  395. package/dist/components/rtk-poll.js +1 -1
  396. package/dist/components/rtk-polls-toggle.js +1 -1
  397. package/dist/components/rtk-polls.js +1 -1
  398. package/dist/components/rtk-recording-indicator.js +1 -1
  399. package/dist/components/rtk-recording-toggle.js +1 -1
  400. package/dist/components/rtk-screen-share-toggle.js +1 -1
  401. package/dist/components/rtk-screenshare-view.js +1 -1
  402. package/dist/components/rtk-settings-audio.js +1 -1
  403. package/dist/components/rtk-settings-toggle.js +1 -1
  404. package/dist/components/rtk-settings-video.js +1 -1
  405. package/dist/components/rtk-settings.js +1 -1
  406. package/dist/components/rtk-setup-screen.js +1 -1
  407. package/dist/components/rtk-sidebar-ui.js +1 -1
  408. package/dist/components/rtk-sidebar.js +1 -1
  409. package/dist/components/rtk-simple-grid.js +1 -1
  410. package/dist/components/rtk-speaker-selector.js +1 -1
  411. package/dist/components/rtk-spinner.js +1 -1
  412. package/dist/components/rtk-spotlight-grid.js +1 -1
  413. package/dist/components/rtk-spotlight-indicator.js +1 -1
  414. package/dist/components/rtk-stage-toggle.js +1 -1
  415. package/dist/components/rtk-stage.js +1 -1
  416. package/dist/components/rtk-switch.js +1 -1
  417. package/dist/components/rtk-tab-bar.js +1 -1
  418. package/dist/components/rtk-text-composer-view.js +1 -1
  419. package/dist/components/rtk-text-message.js +1 -1
  420. package/dist/components/rtk-transcript.js +1 -1
  421. package/dist/components/rtk-transcripts.js +1 -1
  422. package/dist/components/rtk-ui-provider.js +1 -1
  423. package/dist/components/rtk-viewer-count.js +1 -1
  424. package/dist/components/rtk-waiting-screen.js +1 -1
  425. package/dist/docs/docs-components.json +2685 -245
  426. package/dist/esm/{TextMessage-B-38YeFE.js → TextMessage-COdZoQcR.js} +1 -1
  427. package/dist/esm/{chat-a6CRyl2K.js → chat-DkSooP-6.js} +1 -1
  428. package/dist/esm/{config-wP0cqv4b.js → config-DREWnlMs.js} +2 -2
  429. package/dist/esm/{debounce-lqMlEJcq.js → debounce-B7bFOuUM.js} +1 -1
  430. package/dist/esm/{index-CP1LPkYZ.js → index-Csk0uIpu.js} +1 -1
  431. package/dist/esm/index.js +6 -6
  432. package/dist/esm/{init-error-DE1s0fDa.js → init-error-Cj-LCS8F.js} +15 -2
  433. package/dist/esm/loader.js +20 -2
  434. package/dist/esm/{merge-BWjuIacB.js → merge-CCTLyhAg.js} +1 -1
  435. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  436. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  437. package/dist/esm/rtk-ai_3.entry.js +2 -2
  438. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  439. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  440. package/dist/esm/rtk-audio-visualizer_4.entry.js +2 -2
  441. package/dist/esm/rtk-avatar_26.entry.js +7 -7
  442. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  443. package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
  444. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  445. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  446. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  447. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  448. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  449. package/dist/esm/rtk-chat-message.entry.js +2 -2
  450. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  451. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  452. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  453. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  454. package/dist/esm/rtk-clock.entry.js +2 -2
  455. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  456. package/dist/esm/rtk-controlbar.entry.js +2 -2
  457. package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
  458. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  459. package/dist/esm/rtk-debugger.entry.js +2 -2
  460. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  461. package/dist/esm/rtk-dialog.entry.js +2 -2
  462. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  463. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  464. package/dist/esm/rtk-file-message_3.entry.js +4 -4
  465. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  466. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  467. package/dist/esm/rtk-grid.entry.js +2 -2
  468. package/dist/esm/rtk-header.entry.js +2 -2
  469. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  470. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  471. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  472. package/dist/esm/rtk-leave-button.entry.js +2 -2
  473. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  474. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  475. package/dist/esm/rtk-logo.entry.js +2 -2
  476. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  477. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  478. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  479. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  480. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  481. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  482. package/dist/esm/rtk-name-tag.entry.js +2 -2
  483. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  484. package/dist/esm/rtk-notification.entry.js +4 -4
  485. package/dist/esm/rtk-notifications.entry.js +3 -3
  486. package/dist/esm/rtk-participant-count.entry.js +2 -2
  487. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  488. package/dist/esm/rtk-participant_2.entry.js +3 -3
  489. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  490. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  491. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  492. package/dist/esm/rtk-participants.entry.js +3 -3
  493. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  494. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  495. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  496. package/dist/esm/rtk-poll_2.entry.js +2 -2
  497. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  498. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  499. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  500. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  501. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  502. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  503. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  504. package/dist/esm/rtk-settings.entry.js +2 -2
  505. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  506. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  507. package/dist/esm/rtk-sidebar.entry.js +2 -2
  508. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  509. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  510. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  511. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  512. package/dist/esm/rtk-stage.entry.js +2 -2
  513. package/dist/esm/rtk-transcript.entry.js +2 -2
  514. package/dist/esm/rtk-transcripts.entry.js +2 -2
  515. package/dist/esm/rtk-ui-provider.entry.js +3 -3
  516. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  517. package/dist/esm/{ui-store-Ctcbman-.js → ui-store-B5zzvHhD.js} +5 -0
  518. package/dist/realtimekit-ui/index.esm.js +1 -1
  519. package/dist/realtimekit-ui/{p-9fb75436.entry.js → p-04ea0bd4.entry.js} +1 -1
  520. package/dist/realtimekit-ui/{p-194ebf74.entry.js → p-0aa328b2.entry.js} +1 -1
  521. package/dist/realtimekit-ui/{p-77e9a0cb.entry.js → p-0bfd6466.entry.js} +1 -1
  522. package/dist/realtimekit-ui/{p-5810f0c4.entry.js → p-0d52804f.entry.js} +1 -1
  523. package/dist/realtimekit-ui/p-0d897af2.entry.js +1 -0
  524. package/dist/realtimekit-ui/{p-bd848924.entry.js → p-103ef0a8.entry.js} +1 -1
  525. package/dist/realtimekit-ui/{p-21b69da3.entry.js → p-1478801e.entry.js} +1 -1
  526. package/dist/realtimekit-ui/{p-b918e87c.entry.js → p-153f04c0.entry.js} +1 -1
  527. package/dist/realtimekit-ui/{p-e7a4954c.entry.js → p-188638b5.entry.js} +1 -1
  528. package/dist/realtimekit-ui/{p-d003eb81.entry.js → p-1abddbc7.entry.js} +1 -1
  529. package/dist/realtimekit-ui/{p-da2e626e.entry.js → p-1aff1ac5.entry.js} +1 -1
  530. package/dist/realtimekit-ui/{p-f5377574.entry.js → p-1cbad1b9.entry.js} +1 -1
  531. package/dist/realtimekit-ui/{p-f6085321.entry.js → p-1e206fd2.entry.js} +1 -1
  532. package/dist/realtimekit-ui/{p-9913c4ca.entry.js → p-2210cd4c.entry.js} +1 -1
  533. package/dist/realtimekit-ui/{p-58366145.entry.js → p-252c3010.entry.js} +1 -1
  534. package/dist/realtimekit-ui/{p-62a46799.entry.js → p-2583d674.entry.js} +1 -1
  535. package/dist/realtimekit-ui/{p-8e7d8c30.entry.js → p-291d186e.entry.js} +1 -1
  536. package/dist/realtimekit-ui/{p-8c77aa57.entry.js → p-29c4ac3e.entry.js} +1 -1
  537. package/dist/realtimekit-ui/{p-0051564a.entry.js → p-2ab0d5e4.entry.js} +1 -1
  538. package/dist/realtimekit-ui/{p-ee65922b.entry.js → p-2b1a514f.entry.js} +1 -1
  539. package/dist/realtimekit-ui/{p-462d4e8f.entry.js → p-2d48d192.entry.js} +1 -1
  540. package/dist/realtimekit-ui/{p-d52b8b3d.entry.js → p-2ebc089a.entry.js} +1 -1
  541. package/dist/realtimekit-ui/{p-384db558.entry.js → p-2fe459da.entry.js} +1 -1
  542. package/dist/realtimekit-ui/{p-1b3ffb5e.entry.js → p-305804ef.entry.js} +1 -1
  543. package/dist/realtimekit-ui/{p-5e3931a3.entry.js → p-334a0a97.entry.js} +1 -1
  544. package/dist/realtimekit-ui/{p-6d3b4996.entry.js → p-34bc7b35.entry.js} +1 -1
  545. package/dist/realtimekit-ui/{p-2715643b.entry.js → p-3729eae9.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-d29c5a04.entry.js → p-3952eda2.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-4a1ec4a2.entry.js → p-3959a07f.entry.js} +1 -1
  548. package/dist/realtimekit-ui/{p-dd6fa0d8.entry.js → p-3be97778.entry.js} +1 -1
  549. package/dist/realtimekit-ui/{p-0195bd60.entry.js → p-3fa63103.entry.js} +1 -1
  550. package/dist/realtimekit-ui/{p-9aac22a5.entry.js → p-42245196.entry.js} +1 -1
  551. package/dist/realtimekit-ui/{p-c317b4a0.entry.js → p-4258eb53.entry.js} +1 -1
  552. package/dist/realtimekit-ui/{p-55ba62c3.entry.js → p-43379fb0.entry.js} +1 -1
  553. package/dist/realtimekit-ui/{p-91bcabc0.entry.js → p-47589362.entry.js} +1 -1
  554. package/dist/realtimekit-ui/p-498e967d.entry.js +1 -0
  555. package/dist/realtimekit-ui/{p-fb0a9fa6.entry.js → p-4be90451.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-1f144efb.entry.js → p-4dff766e.entry.js} +1 -1
  557. package/dist/realtimekit-ui/{p-6cc9da9f.entry.js → p-4e8c01f8.entry.js} +1 -1
  558. package/dist/realtimekit-ui/{p-4f3e5cb4.entry.js → p-5021a0b2.entry.js} +1 -1
  559. package/dist/realtimekit-ui/{p-8cdd8307.entry.js → p-50ff8297.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-4aa24ae6.entry.js → p-546d0b7a.entry.js} +1 -1
  561. package/dist/realtimekit-ui/{p-661b7281.entry.js → p-5ffe17ff.entry.js} +1 -1
  562. package/dist/realtimekit-ui/{p-0264d57f.entry.js → p-606bd586.entry.js} +1 -1
  563. package/dist/realtimekit-ui/{p-5361cd19.entry.js → p-6cfb1d51.entry.js} +1 -1
  564. package/dist/realtimekit-ui/p-72f872da.entry.js +1 -0
  565. package/dist/realtimekit-ui/{p-55ec635e.entry.js → p-736ae325.entry.js} +1 -1
  566. package/dist/realtimekit-ui/{p-70de46f0.entry.js → p-73835c98.entry.js} +1 -1
  567. package/dist/realtimekit-ui/{p-481e75eb.entry.js → p-73e34499.entry.js} +1 -1
  568. package/dist/realtimekit-ui/{p-2fd5255e.entry.js → p-7c355952.entry.js} +1 -1
  569. package/dist/realtimekit-ui/{p-a34a267b.entry.js → p-829516be.entry.js} +1 -1
  570. package/dist/realtimekit-ui/{p-9fd3cb5e.entry.js → p-867c65f8.entry.js} +1 -1
  571. package/dist/realtimekit-ui/{p-3ed792bf.entry.js → p-88b10b06.entry.js} +1 -1
  572. package/dist/realtimekit-ui/{p-b9f47f88.entry.js → p-8c997ed7.entry.js} +1 -1
  573. package/dist/realtimekit-ui/{p-BmRffDYW.js → p-9Kg_s9HA.js} +1 -1
  574. package/dist/realtimekit-ui/p-BV8JkayY.js +1 -0
  575. package/dist/realtimekit-ui/{p-MlOz-emx.js → p-C6MbLp7O.js} +1 -1
  576. package/dist/realtimekit-ui/{p-B91vjjSJ.js → p-CBTF89OQ.js} +1 -1
  577. package/dist/realtimekit-ui/{p-CfUJPUNx.js → p-CLkcbaSv.js} +1 -1
  578. package/dist/realtimekit-ui/{p-dYOM3dvx.js → p-CVyP1Eab.js} +1 -1
  579. package/dist/realtimekit-ui/p-Cj-LCS8F.js +1 -0
  580. package/dist/realtimekit-ui/{p-CQ2xadpP.js → p-DzPhNWCO.js} +1 -1
  581. package/dist/realtimekit-ui/{p-286ce4d7.entry.js → p-a197208b.entry.js} +1 -1
  582. package/dist/realtimekit-ui/{p-6ab2602a.entry.js → p-a6be8453.entry.js} +1 -1
  583. package/dist/realtimekit-ui/{p-b16313e9.entry.js → p-ab6c3f2e.entry.js} +1 -1
  584. package/dist/realtimekit-ui/{p-d85e142c.entry.js → p-ab72d9ce.entry.js} +1 -1
  585. package/dist/realtimekit-ui/p-ac30f00d.entry.js +1 -0
  586. package/dist/realtimekit-ui/{p-0742c744.entry.js → p-adb134cf.entry.js} +1 -1
  587. package/dist/realtimekit-ui/{p-52e797c1.entry.js → p-af48b3de.entry.js} +1 -1
  588. package/dist/realtimekit-ui/{p-5093081b.entry.js → p-b130cba4.entry.js} +1 -1
  589. package/dist/realtimekit-ui/{p-b41fc081.entry.js → p-b81546a9.entry.js} +1 -1
  590. package/dist/realtimekit-ui/{p-9fa91df2.entry.js → p-bcf3e78a.entry.js} +1 -1
  591. package/dist/realtimekit-ui/{p-bdd8ebec.entry.js → p-c1b043d2.entry.js} +1 -1
  592. package/dist/realtimekit-ui/{p-d30c178f.entry.js → p-c5171e8c.entry.js} +1 -1
  593. package/dist/realtimekit-ui/{p-f33e4112.entry.js → p-c7e53604.entry.js} +1 -1
  594. package/dist/realtimekit-ui/{p-ab63946e.entry.js → p-c92c6475.entry.js} +1 -1
  595. package/dist/realtimekit-ui/{p-9ce9b595.entry.js → p-cb512b27.entry.js} +1 -1
  596. package/dist/realtimekit-ui/{p-a6ec2863.entry.js → p-ce769155.entry.js} +1 -1
  597. package/dist/realtimekit-ui/{p-67ee7fdd.entry.js → p-d364b98b.entry.js} +1 -1
  598. package/dist/realtimekit-ui/{p-77c92672.entry.js → p-d705c033.entry.js} +1 -1
  599. package/dist/realtimekit-ui/{p-f5809d7c.entry.js → p-d8fff726.entry.js} +1 -1
  600. package/dist/realtimekit-ui/{p-ebdece22.entry.js → p-dbd3c9f8.entry.js} +1 -1
  601. package/dist/realtimekit-ui/{p-fa84f55a.entry.js → p-e7dec068.entry.js} +1 -1
  602. package/dist/realtimekit-ui/{p-bac3c4fb.entry.js → p-ea3a0789.entry.js} +1 -1
  603. package/dist/realtimekit-ui/{p-c6d03162.entry.js → p-ed41e0be.entry.js} +1 -1
  604. package/dist/realtimekit-ui/{p-ef030197.entry.js → p-f1ad312a.entry.js} +1 -1
  605. package/dist/realtimekit-ui/{p-893da38a.entry.js → p-f1c25989.entry.js} +1 -1
  606. package/dist/realtimekit-ui/{p-d51ab494.entry.js → p-f3837eb2.entry.js} +1 -1
  607. package/dist/realtimekit-ui/{p-29ab5d68.entry.js → p-f3f00b7e.entry.js} +1 -1
  608. package/dist/realtimekit-ui/{p-439c8ce4.entry.js → p-ffb7e862.entry.js} +1 -1
  609. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  610. package/dist/types/lib/lang/default-language.d.ts +5 -0
  611. package/dist/types/utils/init-error.d.ts +1 -1
  612. package/package.json +1 -1
  613. package/dist/components/p-DE1s0fDa.js +0 -1
  614. package/dist/components/p-DhwysA2e.js +0 -1
  615. package/dist/realtimekit-ui/p-4a7927d1.entry.js +0 -1
  616. package/dist/realtimekit-ui/p-959917cc.entry.js +0 -1
  617. package/dist/realtimekit-ui/p-DE1s0fDa.js +0 -1
  618. package/dist/realtimekit-ui/p-DI7wP4CL.js +0 -1
  619. package/dist/realtimekit-ui/p-ac4c182d.entry.js +0 -1
  620. package/dist/realtimekit-ui/p-f27494e7.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as t,H as i,c as e,h as s,d as o,t as n}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as r,i as a}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{S as l}from"./p-bRRQr4xn.js";import{d as c}from"./p-CFBS-gbK.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as p}from"./p-B0SC1Zj-.js";import{d as u}from"./p-DHSRRtn3.js";var h=function(t,i,e,s){var o,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(i,e,r):o(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const d=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=r,this.t=a(),this.canDisable=!1,this.permissionsUpdateListener=()=>{var t;this.canDisable=!!(null===(t=this.meeting)||void 0===t?void 0:t.self.permissions.canDisableParticipantAudio)},this.onMuteAll=()=>{this.stateUpdate.emit({activeMuteAllConfirmation:!0})}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,e;null===(e=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===e||e.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){t&&(this.canDisable=!!(null==t?void 0:t.self.permissions.canDisableParticipantAudio),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}render(){if(!this.meeting)return null;if(!this.canDisable)return null;const t=this.t("mute_all");return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:this.iconPack.speaker_off,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,onClick:this.onMuteAll})))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-mute-all-button",{variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],canDisable:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-mute-all-button","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-mute-all-button":customElements.get(n(t))||customElements.define(n(t),d);break;case"rtk-controlbar-button":customElements.get(n(t))||c();break;case"rtk-icon":customElements.get(n(t))||m();break;case"rtk-spinner":customElements.get(n(t))||p();break;case"rtk-tooltip":customElements.get(n(t))||u()}}))}h([l()],d.prototype,"meeting",void 0),h([l()],d.prototype,"iconPack",void 0),h([l()],d.prototype,"t",void 0),f();const b=d,k=f;export{b as RtkMuteAllButton,k as defineCustomElement}
1
+ import{p as t,H as i,c as e,h as s,d as o,t as n}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as r,i as a}from"./p-DNcV8eFN.js";import"./p-Dguuxuf6.js";import{S as l}from"./p-Dms_qKT9.js";import{d as c}from"./p-CyCI1p7C.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as p}from"./p-CpejImHh.js";import{d as u}from"./p-DHSRRtn3.js";var h=function(t,i,e,s){var o,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(i,e,r):o(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const d=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=r,this.t=a(),this.canDisable=!1,this.permissionsUpdateListener=()=>{var t;this.canDisable=!!(null===(t=this.meeting)||void 0===t?void 0:t.self.permissions.canDisableParticipantAudio)},this.onMuteAll=()=>{this.stateUpdate.emit({activeMuteAllConfirmation:!0})}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,e;null===(e=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===e||e.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){t&&(this.canDisable=!!(null==t?void 0:t.self.permissions.canDisableParticipantAudio),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}render(){if(!this.meeting)return null;if(!this.canDisable)return null;const t=this.t("mute_all");return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:this.iconPack.speaker_off,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,onClick:this.onMuteAll})))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-mute-all-button",{variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],canDisable:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-mute-all-button","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-mute-all-button":customElements.get(n(t))||customElements.define(n(t),d);break;case"rtk-controlbar-button":customElements.get(n(t))||c();break;case"rtk-icon":customElements.get(n(t))||m();break;case"rtk-spinner":customElements.get(n(t))||p();break;case"rtk-tooltip":customElements.get(n(t))||u()}}))}h([l()],d.prototype,"meeting",void 0),h([l()],d.prototype,"iconPack",void 0),h([l()],d.prototype,"t",void 0),f();const k=d,b=f;export{k as RtkMuteAllButton,b as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-CnPYfRgf.js";const f=o,p=s;export{f as RtkMuteAllConfirmation,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-C1bmT06N.js";const m=o,p=s;export{m as RtkMuteAllConfirmation,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-CTuYqZY2.js";const p=o,r=s;export{p as RtkNameTag,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-DcNyG4cn.js";const c=o,p=s;export{c as RtkNameTag,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as r,h as e,d as a,t as i}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as o,i as s}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-bRRQr4xn.js";import{d as n}from"./p-BYIBbfJ8.js";var p=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const l=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.t=s(),this.isScreenShare=!1,this.score=10,this.onMediaScoreUpdate=({kind:t,isScreenshare:r,score:e})=>{("video"===t||this.isScreenShare&&r)&&(this.score=e)}}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),r="good";if(t>3)return null;switch(t<1&&(t=1),t){case 3:case 2:r="poor";break;case 1:r="poorest"}return e(a,null,e("rtk-icon",{icon:this.iconPack["signal_"+t],class:r}),e("rtk-icon",{icon:this.iconPack.signal_5,class:"bg-signal"}))}static get watchers(){return{participant:[{participantChanged:0}]}}static get style(){return":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))}"}},[1,"rtk-network-indicator",{participant:[16],meeting:[16],iconPack:[16],t:[16],isScreenShare:[4,"is-screen-share"],score:[32]},void 0,{participant:[{participantChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["rtk-network-indicator","rtk-icon"].forEach((t=>{switch(t){case"rtk-network-indicator":customElements.get(i(t))||customElements.define(i(t),l);break;case"rtk-icon":customElements.get(i(t))||n()}}))}p([c()],l.prototype,"meeting",void 0),p([c()],l.prototype,"iconPack",void 0),p([c()],l.prototype,"t",void 0),h();const k=l,v=h;export{k as RtkNetworkIndicator,v as defineCustomElement}
1
+ import{p as t,H as r,h as e,d as a,t as i}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as o,i as s}from"./p-DNcV8eFN.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-Dms_qKT9.js";import{d as n}from"./p-BYIBbfJ8.js";var p=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const l=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.t=s(),this.isScreenShare=!1,this.score=10,this.onMediaScoreUpdate=({kind:t,isScreenshare:r,score:e})=>{("video"===t||this.isScreenShare&&r)&&(this.score=e)}}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),r="good";if(t>3)return null;switch(t<1&&(t=1),t){case 3:case 2:r="poor";break;case 1:r="poorest"}return e(a,null,e("rtk-icon",{icon:this.iconPack["signal_"+t],class:r}),e("rtk-icon",{icon:this.iconPack.signal_5,class:"bg-signal"}))}static get watchers(){return{participant:[{participantChanged:0}]}}static get style(){return":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))}"}},[1,"rtk-network-indicator",{participant:[16],meeting:[16],iconPack:[16],t:[16],isScreenShare:[4,"is-screen-share"],score:[32]},void 0,{participant:[{participantChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["rtk-network-indicator","rtk-icon"].forEach((t=>{switch(t){case"rtk-network-indicator":customElements.get(i(t))||customElements.define(i(t),l);break;case"rtk-icon":customElements.get(i(t))||n()}}))}p([c()],l.prototype,"meeting",void 0),p([c()],l.prototype,"iconPack",void 0),p([c()],l.prototype,"t",void 0),h();const k=l,v=h;export{k as RtkNetworkIndicator,v as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-CCxMYXjI.js";const p=o,r=s;export{p as RtkNotification,r as defineCustomElement}
1
+ import{R as s,d as o}from"./p-CN9slvhR.js";const p=s,r=o;export{p as RtkNotification,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,w as s,h as e,d as n,t as o}from"./p-BBHQOrFK.js";import{R as a}from"./p-B56IYWsZ.js";import{f as c}from"./p-CJsXePY3.js";import{c as h,i as r,e as d}from"./p-DhwysA2e.js";import"./p-D9EtbXLL.js";import{s as u}from"./p-C0vp-Q7v.js";import{f as l}from"./p-Bj1kNPpe.js";import{S as p}from"./p-bRRQr4xn.js";import{d as g}from"./p-D6vw6bT2.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as f}from"./p-CCxMYXjI.js";const v=2e3,k=Object.freeze({notifications:{participant_joined:!0,participant_left:!0,participant_joined_waitlist:!0,chat:!0,polls:!0,webinar:!0,tab_sync:!0,recording_started:!0,recording_stopped:!0},notification_sounds:{participant_joined:!0,participant_left:!0,chat:!0,polls:!0,webinar:!0,participant_joined_waitlist:!0},notification_duration:{participant_joined:2100,participant_left:2100,participant_joined_waitlist:4e3,chat:v,polls:v,webinar:v,tab_sync:v,recording_started:v,recording_stopped:v},participant_joined_sound_notification_limit:10,participant_chat_message_sound_notification_limit:10});var _=function(t,i,s,e){var n,o=arguments.length,a=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(o<3?n(a):o>3?n(i,s,a):n(i,s))||a);return o>3&&a&&Object.defineProperty(i,s,a),a};function j(t){return Object.keys(t).filter((i=>t[i]))}const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.permissions=k,this.enabledSounds=j(k.notification_sounds),this.config=h(),this.t=r(),this.iconPack=d,this.notifications=[],this.addStagePeersListeners=t=>{t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener)},this.removeStagePeersListeners=t=>{t.participants.joined.removeListener("participantJoined",this.participantJoinedListener),t.participants.joined.removeListener("participantLeft",this.participantLeftListener)},this.onNotification=t=>{this.add(t.detail);const i=t.detail.playSound;null!=i&&this.audio.play(i)},this.onRecordingUpdate=t=>{var i,s;"RECORDING"===t&&!1!==this.permissions.notifications.recording_started?this.add({id:"recording-started",icon:this.iconPack.recording,message:this.t("recording.started"),duration:null!==(i=this.permissions.notification_duration.recording_started)&&void 0!==i?i:v}):"STOPPING"===t&&!1!==this.permissions.notifications.recording_stopped&&this.add({id:"recording-stopped",icon:this.iconPack.stop_recording,message:this.t("recording.stopped"),duration:null!==(s=this.permissions.notification_duration.recording_stopped)&&void 0!==s?s:v})},this.paused=!1}connectedCallback(){"undefined"!=typeof document&&(null===document||void 0===document||document.addEventListener("rtkNotification",this.onNotification)),this.meetingChanged(this.meeting),this.configChanged(this.config),this.statesChanged(this.states)}clearListeners(t){var i,s,e,n,o,a,c,h;const r="LIVESTREAM"===t.meta.viewType;(r&&"ON_STAGE"===(null===(i=t.stage)||void 0===i?void 0:i.status)||!r)&&this.removeStagePeersListeners(t),this.chatUpdateListener&&(null===(s=t.chat)||void 0===s||s.removeListener("chatUpdate",this.chatUpdateListener)),this.pollUpdateListener&&(null===(e=t.polls)||void 0===e||e.removeListener("pollsUpdate",this.pollUpdateListener)),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener),this.stageRequestAccepted&&(null===(n=t.stage)||void 0===n||n.removeListener("stageRequestApproved",this.stageRequestAccepted)),this.stageRequestRejected&&(null===(o=t.stage)||void 0===o||o.removeListener("stageRequestRejected",this.stageRequestRejected)),this.newStageRequests&&(null===(a=t.stage)||void 0===a||a.removeListener("newStageRequest",this.newStageRequests)),this.stageStatusUpdateListener&&(null===(c=t.stage)||void 0===c||c.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)),null===(h=t.recording)||void 0===h||h.removeListener("recordingUpdate",this.onRecordingUpdate),clearTimeout(this.disconnectTimeout),t.self.removeListener("deviceUpdate",this.deviceUpdateListener)}disconnectedCallback(){var t;"undefined"!=typeof document&&(null===document||void 0===document||document.removeEventListener("rtkNotification",this.onNotification)),this.meeting&&(this.clearListeners(this.meeting),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.activeTabUpdateListener&&(null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)),this.peerStageStatusListener&&this.meeting.participants.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener))}meetingChanged(t,i){var s,e,n,o,h,r,d,p,g;if(clearTimeout(this.disconnectTimeout),i&&this.clearListeners(i),!t)return;const m="LIVESTREAM"===t.meta.viewType;this.audio=new a(t);const{notifications:f,notification_duration:v,notification_sounds:k}=this.permissions;if(this.participantJoinedListener=t=>{f.participant_joined&&this.add({id:t.id+"-joined",message:`${c(t.name)} ${this.t("notifications.joined")}`,image:t.picture,duration:v.participant_joined}),k.participant_joined&&this.canPlayParticipantJoinedSound()&&this.audio.play("joined")},this.participantLeftListener=t=>{const{socketState:{state:i}}=this.meeting.meta;f.participant_left&&"connected"!==i&&this.add({id:t.id+"-left",message:`${c(t.name)} ${this.t("notifications.left")}`,image:t.picture,duration:v.participant_left}),k.participant_left&&this.canPlayParticipantJoinedSound()&&this.audio.play("left")},this.waitlistedParticipantJoinedListener=t=>{if(!this.canAcceptWaitingRequests())return;const i=t.id+"-joined-waitlist";this.add({id:i,message:`${c(t.name)} ${this.t("notifications.requesting_to_join_meeting")}`,image:t.picture,duration:v.participant_joined_waitlist,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.participants.acceptWaitingRoomRequest(t.id),this.remove(i)}}}),k.participant_joined_waitlist&&this.canPlayParticipantJoinedSound()&&this.audio.play("message")},this.waitlistedParticipantLeftListener=t=>{this.remove(t.id+"-joined-waitlist")},this.chatUpdateListener=({message:i,action:s})=>{if("add"!==s)return;const e=l(i);if(null!=e){if(e.userId===t.self.userId)return;"text"===e.type&&(f.chat&&this.add({id:"message-"+Math.random().toString(36),icon:this.iconPack.chat,message:`${e.displayName}: ${e.message}`,duration:v.chat}),k.chat&&this.canPlayChatSound()&&this.audio.play("message"))}},this.pollUpdateListener=({polls:t,newPoll:i})=>{!1!==i&&(f.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.add({id:"poll-"+Math.random().toString(36),icon:this.iconPack.poll,message:`${this.t("notifications.new_poll_created_by")} ${t[t.length-1].createdBy}`,duration:v.polls}),k.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.canPlayChatSound()&&this.audio.play("message"))},this.deviceUpdateListener=({device:t,preview:i})=>{i||("audiooutput"===t.kind&&(this.audio.setDevice(t.deviceId),this.remove("speaker-switched"),this.add({id:"speaker-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.iconPack.speaker,duration:5e3})),"videoinput"===t.kind&&(this.remove("camera-switched"),this.add({id:"camera-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.videoEnabled?this.iconPack.video_on:this.iconPack.video_off,iconVariant:this.meeting.self.videoEnabled?"primary":"danger",duration:5e3})),"audioinput"===t.kind&&(this.remove("mic-switched"),this.add({id:"mic-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off,iconVariant:this.meeting.self.audioEnabled?"primary":"danger",duration:5e3})))},this.socketConnectionUpdateListener=({state:t,reconnectionAttempt:i,reconnected:s})=>{switch(t){case"connected":this.remove("socket"),s&&this.add({id:"socket",icon:this.iconPack.wifi,message:this.t("network.restored"),duration:3e3});break;case"disconnected":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.reconnecting")});break;case"reconnecting":i>=6?(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.disconnected"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})):i>=4&&(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.delay_extended")}));break;case"failed":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.leaving"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})}},this.activeTabUpdateListener=i=>{if(f.tab_sync)switch(i.type){case"plugin":const s=t.plugins.active.toArray().find((t=>t.id==i.id));null!=s&&this.add({id:"activeTab",message:`${this.t("notifications.plugin_switched_to")} ${s.name}`,duration:v.participant_joined});break;case"screenshare":const e=t.participants.joined.toArray().filter((t=>t.screenShareEnabled)).find((t=>t.id==i.id));null!=e&&this.add({id:"spotlight",message:`Now watching ${e.name}'s screen`,duration:v.webinar})}},this.peerStageStatusListener=t=>{"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(this.add({id:"stage-request-"+t.id,message:`${t.name} ${this.t("notifications.requested_to_join_stage")}`,duration:v.webinar,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.stage.grantAccess([t.userId]),this.remove("stage-request-"+t.id)}}}),k.webinar&&this.audio.play("joined")),"ON_STAGE"===t.stageStatus&&(this.add({id:"stage-joined-"+t.id,message:`${t.name} ${this.t("notifications.joined_stage")}`,duration:v.webinar}),k.webinar&&this.audio.play("joined"))},this.stageRequestAccepted=()=>{this.add({id:"stage-request-accepted",message:this.t("notifications.request_to_join_accepted"),duration:3e3})},this.stageRequestRejected=()=>{this.add({id:"stage-request-rejected",message:this.t("notifications.request_to_join_rejected"),duration:3e3})},this.newStageRequests=({count:t})=>{this.add({id:"new-stage-request",message:`You have ${t<0?"new stage":t+" pending"} request${1===t?"":"s"}`,duration:3e3})},this.stageStatusUpdateListener=i=>{"ON_STAGE"===i?this.addStagePeersListeners(t):this.removeStagePeersListeners(t)},!u(t)&&(null===(s=t.chat)||void 0===s||s.addListener("chatUpdate",this.chatUpdateListener)),"CHAT"===(null===(e=t.self.config.viewType)||void 0===e?void 0:""+e))return;const _=t.self.getCurrentDevices();null!=_.speaker&&this.audio.setDevice(_.speaker.deviceId),m?null===(n=t.stage)||void 0===n||n.on("stageStatusUpdate",this.stageStatusUpdateListener):this.addStagePeersListeners(t),this.canAcceptWaitingRequests()&&(t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),null===(o=t.polls)||void 0===o||o.addListener("pollsUpdate",this.pollUpdateListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),null===(h=t.meta)||void 0===h||h.addListener("activeTabUpdate",this.activeTabUpdateListener),null===(r=t.recording)||void 0===r||r.addListener("recordingUpdate",this.onRecordingUpdate),null===(d=t.stage)||void 0===d||d.addListener("stageRequestApproved",this.stageRequestAccepted),null===(p=t.stage)||void 0===p||p.addListener("stageRequestRejected",this.stageRequestRejected),t.self.permissions.stageEnabled&&t.self.permissions.acceptStageRequests&&(null===(g=t.stage)||void 0===g||g.addListener("newStageRequest",this.newStageRequests))}configChanged(t){null!=t&&null!=(null==t?void 0:t.config)&&(this.permissions=function(t){const i=Object.assign({},k);return null==t||(Object.assign(i.notification_sounds,t.notification_sounds),Object.assign(i.notifications,t.notifications),Object.assign(i.notification_duration,t.notification_duration),i.participant_chat_message_sound_notification_limit=t.participant_chat_message_sound_notification_limit,i.participant_joined_sound_notification_limit=t.participant_joined_sound_notification_limit),i}(t.config),this.enabledSounds=j(this.permissions.notification_sounds))}statesChanged(t){var i;if(null!=t){const s=!(null===(i=null==t?void 0:t.prefs)||void 0===i?void 0:i.muteNotificationSounds);for(const t of this.enabledSounds)t in this.permissions.notification_sounds&&(this.permissions.notification_sounds[t]=s)}}apiErrorListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:v,icon:this.iconPack.warning})}sendNotificationListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:v})}add(t){"visible"===document.visibilityState&&this.notifications.length<5&&(this.notifications=[...this.notifications,t])}remove(t){this.notifications=this.notifications.filter((i=>i.id!==t))}handleDismiss(t){t.stopPropagation();const i=t.detail,e=this.host.shadowRoot.querySelector(`[data-id="${i}"]`);null==e||e.classList.add("exit"),setTimeout((()=>{s((()=>{this.remove(i)}))}),400)}canPlayParticipantJoinedSound(){return null==this.permissions.participant_joined_sound_notification_limit||this.permissions.participant_joined_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_joined_sound_notification_limit}canPlayChatSound(){return null==this.permissions.participant_chat_message_sound_notification_limit||this.permissions.participant_chat_message_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_chat_message_sound_notification_limit}canAcceptWaitingRequests(){return this.permissions.notifications.participant_joined_waitlist&&this.meeting.self.permissions.acceptWaitingRequests}render(){if(this.meeting)return e(n,null,e("div",{onMouseEnter:()=>this.paused=!0,onFocusin:()=>this.paused=!0,onMouseLeave:()=>this.paused=!1,onFocusout:()=>this.paused=!1},this.notifications.map((t=>e("rtk-notification",{size:this.size,key:t.id,"data-id":t.id,notification:t,onRtkNotificationDismiss:t=>this.handleDismiss(t),iconPack:this.iconPack,paused:this.paused,t:this.t})))))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}}static get style(){return":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:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;z-index:100}rtk-notification{margin-top:var(--rtk-space-2, 8px)}"}},[1,"rtk-notifications",{meeting:[16],states:[16],config:[16],t:[16],size:[513],iconPack:[16],notifications:[32],paused:[32]},[[8,"rtkApiError","apiErrorListener"],[8,"rtkSendNotification","sendNotificationListener"]],{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}]);function w(){"undefined"!=typeof customElements&&["rtk-notifications","rtk-button","rtk-icon","rtk-notification"].forEach((t=>{switch(t){case"rtk-notifications":customElements.get(o(t))||customElements.define(o(t),b);break;case"rtk-button":customElements.get(o(t))||g();break;case"rtk-icon":customElements.get(o(t))||m();break;case"rtk-notification":customElements.get(o(t))||f()}}))}_([p()],b.prototype,"meeting",void 0),_([p()],b.prototype,"states",void 0),_([p()],b.prototype,"config",void 0),_([p()],b.prototype,"t",void 0),_([p()],b.prototype,"iconPack",void 0),w();const $=b,C=w;export{$ as RtkNotifications,C as defineCustomElement}
1
+ import{p as t,H as i,w as s,h as e,d as n,t as o}from"./p-BBHQOrFK.js";import{R as a}from"./p-B56IYWsZ.js";import{f as c}from"./p-CJsXePY3.js";import{c as h,i as r,e as d}from"./p-DNcV8eFN.js";import"./p-D9EtbXLL.js";import{s as l}from"./p-C0vp-Q7v.js";import{f as u}from"./p-Bj1kNPpe.js";import{S as p}from"./p-Dms_qKT9.js";import{d as g}from"./p-D6vw6bT2.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as f}from"./p-CN9slvhR.js";const v=2e3,k=Object.freeze({notifications:{participant_joined:!0,participant_left:!0,participant_joined_waitlist:!0,chat:!0,polls:!0,webinar:!0,tab_sync:!0,recording_started:!0,recording_stopped:!0},notification_sounds:{participant_joined:!0,participant_left:!0,chat:!0,polls:!0,webinar:!0,participant_joined_waitlist:!0},notification_duration:{participant_joined:2100,participant_left:2100,participant_joined_waitlist:4e3,chat:v,polls:v,webinar:v,tab_sync:v,recording_started:v,recording_stopped:v},participant_joined_sound_notification_limit:10,participant_chat_message_sound_notification_limit:10});var _=function(t,i,s,e){var n,o=arguments.length,a=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(o<3?n(a):o>3?n(i,s,a):n(i,s))||a);return o>3&&a&&Object.defineProperty(i,s,a),a};function j(t){return Object.keys(t).filter((i=>t[i]))}const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.permissions=k,this.enabledSounds=j(k.notification_sounds),this.config=h(),this.t=r(),this.iconPack=d,this.notifications=[],this.addStagePeersListeners=t=>{t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener)},this.removeStagePeersListeners=t=>{t.participants.joined.removeListener("participantJoined",this.participantJoinedListener),t.participants.joined.removeListener("participantLeft",this.participantLeftListener)},this.onNotification=t=>{this.add(t.detail);const i=t.detail.playSound;null!=i&&this.audio.play(i)},this.onRecordingUpdate=t=>{var i,s;"RECORDING"===t&&!1!==this.permissions.notifications.recording_started?this.add({id:"recording-started",icon:this.iconPack.recording,message:this.t("recording.started"),duration:null!==(i=this.permissions.notification_duration.recording_started)&&void 0!==i?i:v}):"STOPPING"===t&&!1!==this.permissions.notifications.recording_stopped&&this.add({id:"recording-stopped",icon:this.iconPack.stop_recording,message:this.t("recording.stopped"),duration:null!==(s=this.permissions.notification_duration.recording_stopped)&&void 0!==s?s:v})},this.paused=!1}connectedCallback(){"undefined"!=typeof document&&(null===document||void 0===document||document.addEventListener("rtkNotification",this.onNotification)),this.meetingChanged(this.meeting),this.configChanged(this.config),this.statesChanged(this.states)}clearListeners(t){var i,s,e,n,o,a,c,h;const r="LIVESTREAM"===t.meta.viewType;(r&&"ON_STAGE"===(null===(i=t.stage)||void 0===i?void 0:i.status)||!r)&&this.removeStagePeersListeners(t),this.chatUpdateListener&&(null===(s=t.chat)||void 0===s||s.removeListener("chatUpdate",this.chatUpdateListener)),this.pollUpdateListener&&(null===(e=t.polls)||void 0===e||e.removeListener("pollsUpdate",this.pollUpdateListener)),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener),this.stageRequestAccepted&&(null===(n=t.stage)||void 0===n||n.removeListener("stageRequestApproved",this.stageRequestAccepted)),this.stageRequestRejected&&(null===(o=t.stage)||void 0===o||o.removeListener("stageRequestRejected",this.stageRequestRejected)),this.newStageRequests&&(null===(a=t.stage)||void 0===a||a.removeListener("newStageRequest",this.newStageRequests)),this.stageStatusUpdateListener&&(null===(c=t.stage)||void 0===c||c.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)),null===(h=t.recording)||void 0===h||h.removeListener("recordingUpdate",this.onRecordingUpdate),clearTimeout(this.disconnectTimeout),t.self.removeListener("deviceUpdate",this.deviceUpdateListener)}disconnectedCallback(){var t;"undefined"!=typeof document&&(null===document||void 0===document||document.removeEventListener("rtkNotification",this.onNotification)),this.meeting&&(this.clearListeners(this.meeting),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.activeTabUpdateListener&&(null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)),this.peerStageStatusListener&&this.meeting.participants.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener))}meetingChanged(t,i){var s,e,n,o,h,r,d,p,g;if(clearTimeout(this.disconnectTimeout),i&&this.clearListeners(i),!t)return;const m="LIVESTREAM"===t.meta.viewType;this.audio=new a(t);const{notifications:f,notification_duration:v,notification_sounds:k}=this.permissions;if(this.participantJoinedListener=t=>{f.participant_joined&&this.add({id:t.id+"-joined",message:`${c(t.name)} ${this.t("notifications.joined")}`,image:t.picture,duration:v.participant_joined}),k.participant_joined&&this.canPlayParticipantJoinedSound()&&this.audio.play("joined")},this.participantLeftListener=t=>{const{socketState:{state:i}}=this.meeting.meta;f.participant_left&&"connected"!==i&&this.add({id:t.id+"-left",message:`${c(t.name)} ${this.t("notifications.left")}`,image:t.picture,duration:v.participant_left}),k.participant_left&&this.canPlayParticipantJoinedSound()&&this.audio.play("left")},this.waitlistedParticipantJoinedListener=t=>{if(!this.canAcceptWaitingRequests())return;const i=t.id+"-joined-waitlist";this.add({id:i,message:`${c(t.name)} ${this.t("notifications.requesting_to_join_meeting")}`,image:t.picture,duration:v.participant_joined_waitlist,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.participants.acceptWaitingRoomRequest(t.id),this.remove(i)}}}),k.participant_joined_waitlist&&this.canPlayParticipantJoinedSound()&&this.audio.play("message")},this.waitlistedParticipantLeftListener=t=>{this.remove(t.id+"-joined-waitlist")},this.chatUpdateListener=({message:i,action:s})=>{if("add"!==s)return;const e=u(i);if(null!=e){if(e.userId===t.self.userId)return;"text"===e.type&&(f.chat&&this.add({id:"message-"+Math.random().toString(36),icon:this.iconPack.chat,message:`${e.displayName}: ${e.message}`,duration:v.chat}),k.chat&&this.canPlayChatSound()&&this.audio.play("message"))}},this.pollUpdateListener=({polls:t,newPoll:i})=>{!1!==i&&(f.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.add({id:"poll-"+Math.random().toString(36),icon:this.iconPack.poll,message:`${this.t("notifications.new_poll_created_by")} ${t[t.length-1].createdBy}`,duration:v.polls}),k.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.canPlayChatSound()&&this.audio.play("message"))},this.deviceUpdateListener=({device:t,preview:i})=>{i||("audiooutput"===t.kind&&(this.audio.setDevice(t.deviceId),this.remove("speaker-switched"),this.add({id:"speaker-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.iconPack.speaker,duration:5e3})),"videoinput"===t.kind&&(this.remove("camera-switched"),this.add({id:"camera-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.videoEnabled?this.iconPack.video_on:this.iconPack.video_off,iconVariant:this.meeting.self.videoEnabled?"primary":"danger",duration:5e3})),"audioinput"===t.kind&&(this.remove("mic-switched"),this.add({id:"mic-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off,iconVariant:this.meeting.self.audioEnabled?"primary":"danger",duration:5e3})))},this.socketConnectionUpdateListener=({state:t,reconnectionAttempt:i,reconnected:s})=>{switch(t){case"connected":this.remove("socket"),s&&this.add({id:"socket",icon:this.iconPack.wifi,message:this.t("network.restored"),duration:3e3});break;case"disconnected":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.reconnecting")});break;case"reconnecting":i>=6?(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.disconnected"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})):i>=4&&(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.delay_extended")}));break;case"failed":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.leaving"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})}},this.activeTabUpdateListener=i=>{if(f.tab_sync)switch(i.type){case"plugin":const s=t.plugins.active.toArray().find((t=>t.id==i.id));null!=s&&this.add({id:"activeTab",message:`${this.t("notifications.plugin_switched_to")} ${s.name}`,duration:v.participant_joined});break;case"screenshare":const e=t.participants.joined.toArray().filter((t=>t.screenShareEnabled)).find((t=>t.id==i.id));null!=e&&this.add({id:"spotlight",message:`Now watching ${e.name}'s screen`,duration:v.webinar})}},this.peerStageStatusListener=t=>{"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(this.add({id:"stage-request-"+t.id,message:`${t.name} ${this.t("notifications.requested_to_join_stage")}`,duration:v.webinar,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.stage.grantAccess([t.userId]),this.remove("stage-request-"+t.id)}}}),k.webinar&&this.audio.play("joined")),"ON_STAGE"===t.stageStatus&&(this.add({id:"stage-joined-"+t.id,message:`${t.name} ${this.t("notifications.joined_stage")}`,duration:v.webinar}),k.webinar&&this.audio.play("joined"))},this.stageRequestAccepted=()=>{this.add({id:"stage-request-accepted",message:this.t("notifications.request_to_join_accepted"),duration:3e3})},this.stageRequestRejected=()=>{this.add({id:"stage-request-rejected",message:this.t("notifications.request_to_join_rejected"),duration:3e3})},this.newStageRequests=({count:t})=>{this.add({id:"new-stage-request",message:`You have ${t<0?"new stage":t+" pending"} request${1===t?"":"s"}`,duration:3e3})},this.stageStatusUpdateListener=i=>{"ON_STAGE"===i?this.addStagePeersListeners(t):this.removeStagePeersListeners(t)},!l(t)&&(null===(s=t.chat)||void 0===s||s.addListener("chatUpdate",this.chatUpdateListener)),"CHAT"===(null===(e=t.self.config.viewType)||void 0===e?void 0:""+e))return;const _=t.self.getCurrentDevices();null!=_.speaker&&this.audio.setDevice(_.speaker.deviceId),m?null===(n=t.stage)||void 0===n||n.on("stageStatusUpdate",this.stageStatusUpdateListener):this.addStagePeersListeners(t),this.canAcceptWaitingRequests()&&(t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),null===(o=t.polls)||void 0===o||o.addListener("pollsUpdate",this.pollUpdateListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),null===(h=t.meta)||void 0===h||h.addListener("activeTabUpdate",this.activeTabUpdateListener),null===(r=t.recording)||void 0===r||r.addListener("recordingUpdate",this.onRecordingUpdate),null===(d=t.stage)||void 0===d||d.addListener("stageRequestApproved",this.stageRequestAccepted),null===(p=t.stage)||void 0===p||p.addListener("stageRequestRejected",this.stageRequestRejected),t.self.permissions.stageEnabled&&t.self.permissions.acceptStageRequests&&(null===(g=t.stage)||void 0===g||g.addListener("newStageRequest",this.newStageRequests))}configChanged(t){null!=t&&null!=(null==t?void 0:t.config)&&(this.permissions=function(t){const i=Object.assign({},k);return null==t||(Object.assign(i.notification_sounds,t.notification_sounds),Object.assign(i.notifications,t.notifications),Object.assign(i.notification_duration,t.notification_duration),i.participant_chat_message_sound_notification_limit=t.participant_chat_message_sound_notification_limit,i.participant_joined_sound_notification_limit=t.participant_joined_sound_notification_limit),i}(t.config),this.enabledSounds=j(this.permissions.notification_sounds))}statesChanged(t){var i;if(null!=t){const s=!(null===(i=null==t?void 0:t.prefs)||void 0===i?void 0:i.muteNotificationSounds);for(const t of this.enabledSounds)t in this.permissions.notification_sounds&&(this.permissions.notification_sounds[t]=s)}}apiErrorListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:v,icon:this.iconPack.warning})}sendNotificationListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:v})}add(t){"visible"===document.visibilityState&&this.notifications.length<5&&(this.notifications=[...this.notifications,t])}remove(t){this.notifications=this.notifications.filter((i=>i.id!==t))}handleDismiss(t){t.stopPropagation();const i=t.detail,e=this.host.shadowRoot.querySelector(`[data-id="${i}"]`);null==e||e.classList.add("exit"),setTimeout((()=>{s((()=>{this.remove(i)}))}),400)}canPlayParticipantJoinedSound(){return null==this.permissions.participant_joined_sound_notification_limit||this.permissions.participant_joined_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_joined_sound_notification_limit}canPlayChatSound(){return null==this.permissions.participant_chat_message_sound_notification_limit||this.permissions.participant_chat_message_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_chat_message_sound_notification_limit}canAcceptWaitingRequests(){return this.permissions.notifications.participant_joined_waitlist&&this.meeting.self.permissions.acceptWaitingRequests}render(){if(this.meeting)return e(n,null,e("div",{onMouseEnter:()=>this.paused=!0,onFocusin:()=>this.paused=!0,onMouseLeave:()=>this.paused=!1,onFocusout:()=>this.paused=!1},this.notifications.map((t=>e("rtk-notification",{size:this.size,key:t.id,"data-id":t.id,notification:t,onRtkNotificationDismiss:t=>this.handleDismiss(t),iconPack:this.iconPack,paused:this.paused,t:this.t})))))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}}static get style(){return":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:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;z-index:100}rtk-notification{margin-top:var(--rtk-space-2, 8px)}"}},[1,"rtk-notifications",{meeting:[16],states:[16],config:[16],t:[16],size:[513],iconPack:[16],notifications:[32],paused:[32]},[[8,"rtkApiError","apiErrorListener"],[8,"rtkSendNotification","sendNotificationListener"]],{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}]);function w(){"undefined"!=typeof customElements&&["rtk-notifications","rtk-button","rtk-icon","rtk-notification"].forEach((t=>{switch(t){case"rtk-notifications":customElements.get(o(t))||customElements.define(o(t),b);break;case"rtk-button":customElements.get(o(t))||g();break;case"rtk-icon":customElements.get(o(t))||m();break;case"rtk-notification":customElements.get(o(t))||f()}}))}_([p()],b.prototype,"meeting",void 0),_([p()],b.prototype,"states",void 0),_([p()],b.prototype,"config",void 0),_([p()],b.prototype,"t",void 0),_([p()],b.prototype,"iconPack",void 0),w();const $=b,C=w;export{$ as RtkNotifications,C as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as r}from"./p-B3dQhqRr.js";const s=o,p=r;export{s as RtkOverlayModal,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-CYfTjqOW.js";const p=o,r=s;export{p as RtkOverlayModal,r as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-C9UuqXCX.js";const p=o,r=s;export{p as RtkPaginatedList,r as defineCustomElement}
1
+ import{R as s,d as o}from"./p-DsYErKjI.js";const r=s,p=o;export{r as RtkPaginatedList,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,h as e,d as s,t as n}from"./p-BBHQOrFK.js";import{e as a,i as r}from"./p-DhwysA2e.js";import{a as o}from"./p-C0vp-Q7v.js";import{S as c}from"./p-bRRQr4xn.js";import{d as h}from"./p-BYIBbfJ8.js";var p=function(t,i,e,s){var n,a=arguments.length,r=a<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(a<3?n(r):a>3?n(i,e,r):n(i,e))||r);return a>3&&r&&Object.defineProperty(i,e,r),r};const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=a,this.t=r(),this.participantCount=0,this.isViewer=!1,this.disconnectMeeting=t=>{null!=t&&null!=this.countListener&&(t.participants.joined.removeListener("participantJoined",this.countListener),t.participants.joined.removeListener("participantLeft",this.countListener),(null==t?void 0:t.stage)&&this.stageUpdateListener&&t.stage.removeListener("stageStatusUpdate",this.stageUpdateListener),t.self.removeListener("roomJoined",this.countListener))}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}meetingChanged(t,i){this.disconnectMeeting(i),null!=t&&(this.countListener=()=>{this.participantCount=t.participants.joined.size+(t.self.roomJoined?1:0)},this.countListener(),this.isViewer=o(this.meeting),t.participants.joined.addListener("participantJoined",this.countListener),t.participants.joined.addListener("participantLeft",this.countListener),(null==t?void 0:t.stage)&&(this.stageUpdateListener=()=>{this.isViewer=o(this.meeting)},null==t||t.stage.addListener("stageStatusUpdate",this.stageUpdateListener)),t.self.addListener("roomJoined",this.countListener))}render(){return this.isViewer?e(s,{"data-hidden":!0}):e(s,{tabIndex:0,role:"log","aria-label":`${this.participantCount} ${this.t("participants")}`},e("rtk-icon",{icon:this.iconPack.people,tabIndex:-1,"aria-hidden":!0,part:"icon"}),this.participantCount)}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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;height:var(--rtk-space-10, 40px);-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center}: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)}"}},[1,"rtk-participant-count",{meeting:[16],iconPack:[16],t:[16],size:[513],participantCount:[32],isViewer:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function d(){"undefined"!=typeof customElements&&["rtk-participant-count","rtk-icon"].forEach((t=>{switch(t){case"rtk-participant-count":customElements.get(n(t))||customElements.define(n(t),l);break;case"rtk-icon":customElements.get(n(t))||h()}}))}p([c()],l.prototype,"meeting",void 0),p([c()],l.prototype,"iconPack",void 0),p([c()],l.prototype,"t",void 0),d();const m=l,u=d;export{m as RtkParticipantCount,u as defineCustomElement}
1
+ import{p as t,H as i,h as e,d as s,t as n}from"./p-BBHQOrFK.js";import{e as a,i as r}from"./p-DNcV8eFN.js";import{a as o}from"./p-C0vp-Q7v.js";import{S as c}from"./p-Dms_qKT9.js";import{d as h}from"./p-BYIBbfJ8.js";var p=function(t,i,e,s){var n,a=arguments.length,r=a<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(a<3?n(r):a>3?n(i,e,r):n(i,e))||r);return a>3&&r&&Object.defineProperty(i,e,r),r};const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=a,this.t=r(),this.participantCount=0,this.isViewer=!1,this.disconnectMeeting=t=>{null!=t&&null!=this.countListener&&(t.participants.joined.removeListener("participantJoined",this.countListener),t.participants.joined.removeListener("participantLeft",this.countListener),(null==t?void 0:t.stage)&&this.stageUpdateListener&&t.stage.removeListener("stageStatusUpdate",this.stageUpdateListener),t.self.removeListener("roomJoined",this.countListener))}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}meetingChanged(t,i){this.disconnectMeeting(i),null!=t&&(this.countListener=()=>{this.participantCount=t.participants.joined.size+(t.self.roomJoined?1:0)},this.countListener(),this.isViewer=o(this.meeting),t.participants.joined.addListener("participantJoined",this.countListener),t.participants.joined.addListener("participantLeft",this.countListener),(null==t?void 0:t.stage)&&(this.stageUpdateListener=()=>{this.isViewer=o(this.meeting)},null==t||t.stage.addListener("stageStatusUpdate",this.stageUpdateListener)),t.self.addListener("roomJoined",this.countListener))}render(){return this.isViewer?e(s,{"data-hidden":!0}):e(s,{tabIndex:0,role:"log","aria-label":`${this.participantCount} ${this.t("participants")}`},e("rtk-icon",{icon:this.iconPack.people,tabIndex:-1,"aria-hidden":!0,part:"icon"}),this.participantCount)}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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;height:var(--rtk-space-10, 40px);-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center}: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)}"}},[1,"rtk-participant-count",{meeting:[16],iconPack:[16],t:[16],size:[513],participantCount:[32],isViewer:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function d(){"undefined"!=typeof customElements&&["rtk-participant-count","rtk-icon"].forEach((t=>{switch(t){case"rtk-participant-count":customElements.get(n(t))||customElements.define(n(t),l);break;case"rtk-icon":customElements.get(n(t))||h()}}))}p([c()],l.prototype,"meeting",void 0),p([c()],l.prototype,"iconPack",void 0),p([c()],l.prototype,"t",void 0),d();const m=l,u=d;export{m as RtkParticipantCount,u as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,h as e,d as r,t as a}from"./p-BBHQOrFK.js";import{c as o,e as s,i as n}from"./p-DhwysA2e.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as d}from"./p-bRRQr4xn.js";var c=function(t,i,e,r){var a,o=arguments.length,s=o<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(i,e,s):a(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=o(),this.variant="solid",this.iconPack=s,this.t=n(),this.onVideoUpdate=t=>{this.videoState=t}}connectedCallback(){this.participantsChanged(this.participant)}componentDidLoad(){this.videoStateChanged(this.videoState)}disconnectedCallback(){null!=this.participant&&this.participant.removeListener("videoUpdate",this.onVideoUpdate)}async participantsChanged(t){null!=t&&(this.videoState={videoEnabled:t.videoEnabled,videoTrack:t.videoTrack},this.isPinned=t.isPinned,t.addListener("videoUpdate",this.onVideoUpdate))}videoStateChanged(t){if(null!=t&&null!=this.videoEl)if(t.videoEnabled){const i=new MediaStream;i.addTrack(t.videoTrack),this.videoEl.srcObject=i}else this.videoEl.srcObject=void 0}isMirrored(){var t;if(null!=this.participant&&("preview"in this.participant||this.isPreview)){const i=this.states,e=null===(t=null==i?void 0:i.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof e)return e}return!1}render(){var t,i,a,o;return e(r,{key:"28dd3343464f9c18cae6161f8ad56005b748a637"},e("video",{key:"556343e40a061ddb9522569a77b574309bed9f31",ref:t=>this.videoEl=t,class:{visible:null===(t=this.videoState)||void 0===t?void 0:t.videoEnabled,mirror:this.isMirrored(),[null!==(o=null===(a=null===(i=this.config)||void 0===i?void 0:i.config)||void 0===a?void 0:a.videoFit)&&void 0!==o?o:"cover"]:!0},autoPlay:!0,playsInline:!0,muted:!0}),e("slot",{key:"c5da0b57d92652e54ef88cedcc269ccc720d1054"}))}static get watchers(){return{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}}static get style(){return":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:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;height:var(--rtk-space-56, 224px);overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));transition-property:var(--rtk-transition-property, all);transition-duration:150ms}@media (prefers-reduced-motion){:host{--rtk-transition-property:none}}:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag){left:var(--rtk-space-2, 8px);bottom:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px)}video{display:none;position:absolute;height:100%;width:100%;border-radius:var(--rtk-border-radius-lg, 12px)}video.contain{-o-object-fit:contain;object-fit:contain}video.cover{-o-object-fit:cover;object-fit:cover}video.visible{display:block}video::-webkit-media-controls{display:none !important}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}video.mirror{transform:scaleX(-1)}@media (orientation: portrait){:host{height:var(--rtk-space-44, 176px)}}"}},[257,"rtk-participant-setup",{nameTagPosition:[513,"name-tag-position"],isPreview:[4,"is-preview"],participant:[16],states:[16],config:[16],variant:[513],size:[513],iconPack:[16],t:[16],videoState:[32],isPinned:[32]},void 0,{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-participant-setup"].forEach((t=>{"rtk-participant-setup"===t&&(customElements.get(a(t))||customElements.define(a(t),p))}))}c([d()],p.prototype,"states",void 0),c([d()],p.prototype,"config",void 0),c([d()],p.prototype,"iconPack",void 0),c([d()],p.prototype,"t",void 0),l();const v=p,h=l;export{v as RtkParticipantSetup,h as defineCustomElement}
1
+ import{p as t,H as i,h as e,d as r,t as a}from"./p-BBHQOrFK.js";import{c as o,e as s,i as n}from"./p-DNcV8eFN.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as d}from"./p-Dms_qKT9.js";var c=function(t,i,e,r){var a,o=arguments.length,s=o<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(i,e,s):a(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=o(),this.variant="solid",this.iconPack=s,this.t=n(),this.onVideoUpdate=t=>{this.videoState=t}}connectedCallback(){this.participantsChanged(this.participant)}componentDidLoad(){this.videoStateChanged(this.videoState)}disconnectedCallback(){null!=this.participant&&this.participant.removeListener("videoUpdate",this.onVideoUpdate)}async participantsChanged(t){null!=t&&(this.videoState={videoEnabled:t.videoEnabled,videoTrack:t.videoTrack},this.isPinned=t.isPinned,t.addListener("videoUpdate",this.onVideoUpdate))}videoStateChanged(t){if(null!=t&&null!=this.videoEl)if(t.videoEnabled){const i=new MediaStream;i.addTrack(t.videoTrack),this.videoEl.srcObject=i}else this.videoEl.srcObject=void 0}isMirrored(){var t;if(null!=this.participant&&("preview"in this.participant||this.isPreview)){const i=this.states,e=null===(t=null==i?void 0:i.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof e)return e}return!1}render(){var t,i,a,o;return e(r,{key:"28dd3343464f9c18cae6161f8ad56005b748a637"},e("video",{key:"556343e40a061ddb9522569a77b574309bed9f31",ref:t=>this.videoEl=t,class:{visible:null===(t=this.videoState)||void 0===t?void 0:t.videoEnabled,mirror:this.isMirrored(),[null!==(o=null===(a=null===(i=this.config)||void 0===i?void 0:i.config)||void 0===a?void 0:a.videoFit)&&void 0!==o?o:"cover"]:!0},autoPlay:!0,playsInline:!0,muted:!0}),e("slot",{key:"c5da0b57d92652e54ef88cedcc269ccc720d1054"}))}static get watchers(){return{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}}static get style(){return":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:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;height:var(--rtk-space-56, 224px);overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));transition-property:var(--rtk-transition-property, all);transition-duration:150ms}@media (prefers-reduced-motion){:host{--rtk-transition-property:none}}:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag){left:var(--rtk-space-2, 8px);bottom:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px)}video{display:none;position:absolute;height:100%;width:100%;border-radius:var(--rtk-border-radius-lg, 12px)}video.contain{-o-object-fit:contain;object-fit:contain}video.cover{-o-object-fit:cover;object-fit:cover}video.visible{display:block}video::-webkit-media-controls{display:none !important}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}video.mirror{transform:scaleX(-1)}@media (orientation: portrait){:host{height:var(--rtk-space-44, 176px)}}"}},[257,"rtk-participant-setup",{nameTagPosition:[513,"name-tag-position"],isPreview:[4,"is-preview"],participant:[16],states:[16],config:[16],variant:[513],size:[513],iconPack:[16],t:[16],videoState:[32],isPinned:[32]},void 0,{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-participant-setup"].forEach((t=>{"rtk-participant-setup"===t&&(customElements.get(a(t))||customElements.define(a(t),p))}))}c([d()],p.prototype,"states",void 0),c([d()],p.prototype,"config",void 0),c([d()],p.prototype,"iconPack",void 0),c([d()],p.prototype,"t",void 0),l();const v=p,h=l;export{v as RtkParticipantSetup,h as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-CRI4EXkA.js";const p=o,r=s;export{p as RtkParticipantTile,r as defineCustomElement}
1
+ import{R as r,d as o}from"./p-CJxrr3ZY.js";const s=r,p=o;export{s as RtkParticipantTile,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-CBGt9ESN.js";const t=o,p=s;export{t as RtkParticipant,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-P7-5QimH.js";const m=o,p=s;export{m as RtkParticipant,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,c as s,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{i as o}from"./p-CAqYddlg.js";import{e as n,i as h}from"./p-DhwysA2e.js";import{S as d}from"./p-bRRQr4xn.js";import{a as c}from"./p-C0vp-Q7v.js";import{d as p}from"./p-D6vw6bT2.js";import{d as l}from"./p-DSe3wsBa.js";import{d as u}from"./p-BYIBbfJ8.js";class k{constructor(t,i){this.meeting=t,this.audio=null!=i?i:document.createElement("audio"),this.audio.autoplay=!0,this.logger=t.__internals__.logger,this.audioStream=new MediaStream,this.audio.srcObject=this.audioStream,this.trackIdByAudioIdMap=new Map,this.trackOwners=new Map}addTrack(t,i){const s=this.trackIdByAudioIdMap.get(t);if(s===i.id)return void this.play();s&&this.removeTrack(t),this.trackIdByAudioIdMap.set(t,i.id);const a=this.trackOwners.get(i.id);a?a.audioIds.add(t):(this.trackOwners.set(i.id,{track:i,audioIds:new Set([t])}),this.audioStream.addTrack(i)),this.play()}removeTrack(t){const i=this.trackIdByAudioIdMap.get(t);if(!i)return;this.trackIdByAudioIdMap.delete(t);const s=this.trackOwners.get(i);s&&(s.audioIds.delete(t),s.audioIds.size>0||(this.audioStream.removeTrack(s.track),this.trackOwners.delete(i)))}async play(){var t;this.audio.srcObject=this.audioStream,await(null===(t=this.audio.play())||void 0===t?void 0:t.catch((t=>{"NotAllowedError"===t.name?null!=this._onError&&this._onError():"AbortError"!==t.name&&this.logger.error("[rtk-audio] play() error\n",t)})))}async setDevice(t){var i,s,a;o(this.meeting)||await(null===(a=null===(s=(i=this.audio).setSinkId)||void 0===s?void 0:s.call(i,t))||void 0===a?void 0:a.catch((t=>{this.logger.error("[rtk-audio] setSinkId() error\n",t)})))}onError(t){this._onError=t}}var m=function(t,i,s,a){var e,r=arguments.length,o=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(o=(r<3?e(o):r>3?e(i,s,o):e(i,s))||o);return r>3&&o&&Object.defineProperty(i,s,o),o};const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dialogClose=s(this,"dialogClose",7),this.iconPack=n,this.t=h(),this.preloadedAudioElem=void 0,this.showPlayDialog=!1,this.onRtkDialogClose=()=>{this.showPlayDialog=!1,this.dialogClose.emit()}}componentDidLoad(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.meeting&&(this.audioUpdateListener&&this.meeting.participants.joined.removeListener("audioUpdate",this.audioUpdateListener),this.screenShareUpdateListener&&this.meeting.participants.joined.removeListener("screenShareUpdate",this.screenShareUpdateListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),this.deviceUpdateListener&&this.meeting.self.removeListener("deviceUpdate",this.deviceUpdateListener),this.stageStatusUpdateListener&&(null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)))}async setupAudio(){this.audio=new k(this.meeting,this.preloadedAudioElem);const t=this.meeting.self.getCurrentDevices();null!=t.speaker&&await this.audio.setDevice(t.speaker.deviceId)}async handleAutoPlayError(){this.audio||await this.setupAudio(),this.audio.onError((()=>{this.showPlayDialog=!0})),this.audio.play()}async handleEvents(t){this.audioUpdateListener=({id:t,audioEnabled:i,audioTrack:s})=>{const a="audio-"+t;i&&null!=s?this.audio.addTrack(a,s):this.audio.removeTrack(a)};const i=t.participants.joined.toArray();for(const t of i)this.audioUpdateListener(t);this.participantLeftListener=({id:t})=>{this.audio.removeTrack("audio-"+t),this.audio.removeTrack("screenshare-"+t)},this.screenShareUpdateListener=({id:t,screenShareEnabled:i,screenShareTracks:s})=>{const a="screenshare-"+t;i&&null!=s.audio?this.audio.addTrack(a,s.audio):this.audio.removeTrack(a)},this.deviceUpdateListener=({device:t,preview:i})=>{i||"audiooutput"===t.kind&&this.audio.setDevice(t.deviceId)},t.participants.joined.addListener("audioUpdate",this.audioUpdateListener),t.participants.joined.addListener("screenShareUpdate",this.screenShareUpdateListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener)}async meetingChanged(t){var i;t&&(this.setupAudio(),c(t)?(this.stageStatusUpdateListener=async t=>{"ON_STAGE"===t&&await this.handleAutoPlayError()},null===(i=t.stage)||void 0===i||i.on("stageStatusUpdate",this.stageStatusUpdateListener)):await this.handleAutoPlayError(),await this.handleEvents(t))}render(){return a(e,{key:"14ddae0562633e4433788c18fb89533248df6c2b"},this.showPlayDialog&&a("rtk-dialog",{key:"d0e33058fbcd77861009ce80d7d4e29b2b597475",open:!0,onRtkDialogClose:this.onRtkDialogClose,hideCloseButton:!0,disableEscapeKey:!0,iconPack:this.iconPack,t:this.t},a("div",{key:"e6a9a18c1eaf3e09d13e25373982183b3ad6f8ec",class:"modal"},a("h3",{key:"bc87cc408aad7117cc8d808e38142b3801e5ff53"},this.t("audio_playback.title")),a("p",{key:"b1927a5cd053c59e19a6c4c54044ca500691ee71"},this.t("audio_playback.description")),a("rtk-button",{key:"3c022bb0602295cbd5996ae2ee066e254b1af2fb",kind:"wide",onClick:()=>{this.audio.play(),this.onRtkDialogClose()},title:this.t("audio_playback")},this.t("audio_playback")))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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;overflow-wrap:break-word;color:rgb(var(--rtk-colors-text-1000, 255 255 255));word-wrap:break-word}.modal{box-sizing:border-box;width:100%;max-width:var(--rtk-space-96, 384px);padding:var(--rtk-space-4, 16px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.modal h3{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);font-size:24px;font-weight:500}.modal p{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-6, 24px)}.modal rtk-button{width:100%}"}},[1,"rtk-participants-audio",{meeting:[16],iconPack:[16],t:[16],preloadedAudioElem:[16],showPlayDialog:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-participants-audio","rtk-button","rtk-dialog","rtk-icon"].forEach((t=>{switch(t){case"rtk-participants-audio":customElements.get(r(t))||customElements.define(r(t),b);break;case"rtk-button":customElements.get(r(t))||p();break;case"rtk-dialog":customElements.get(r(t))||l();break;case"rtk-icon":customElements.get(r(t))||u()}}))}m([d()],b.prototype,"meeting",void 0),m([d()],b.prototype,"iconPack",void 0),m([d()],b.prototype,"t",void 0),f();const v=b,g=f;export{v as RtkParticipantsAudio,g as defineCustomElement}
1
+ import{p as t,H as i,c as s,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{i as o}from"./p-CAqYddlg.js";import{e as n,i as h}from"./p-DNcV8eFN.js";import{S as d}from"./p-Dms_qKT9.js";import{a as c}from"./p-C0vp-Q7v.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-WlTM-tEO.js";import{d as u}from"./p-BYIBbfJ8.js";class k{constructor(t,i){this.meeting=t,this.audio=null!=i?i:document.createElement("audio"),this.audio.autoplay=!0,this.logger=t.__internals__.logger,this.audioStream=new MediaStream,this.audio.srcObject=this.audioStream,this.trackIdByAudioIdMap=new Map,this.trackOwners=new Map}addTrack(t,i){const s=this.trackIdByAudioIdMap.get(t);if(s===i.id)return void this.play();s&&this.removeTrack(t),this.trackIdByAudioIdMap.set(t,i.id);const a=this.trackOwners.get(i.id);a?a.audioIds.add(t):(this.trackOwners.set(i.id,{track:i,audioIds:new Set([t])}),this.audioStream.addTrack(i)),this.play()}removeTrack(t){const i=this.trackIdByAudioIdMap.get(t);if(!i)return;this.trackIdByAudioIdMap.delete(t);const s=this.trackOwners.get(i);s&&(s.audioIds.delete(t),s.audioIds.size>0||(this.audioStream.removeTrack(s.track),this.trackOwners.delete(i)))}async play(){var t;this.audio.srcObject=this.audioStream,await(null===(t=this.audio.play())||void 0===t?void 0:t.catch((t=>{"NotAllowedError"===t.name?null!=this._onError&&this._onError():"AbortError"!==t.name&&this.logger.error("[rtk-audio] play() error\n",t)})))}async setDevice(t){var i,s,a;o(this.meeting)||await(null===(a=null===(s=(i=this.audio).setSinkId)||void 0===s?void 0:s.call(i,t))||void 0===a?void 0:a.catch((t=>{this.logger.error("[rtk-audio] setSinkId() error\n",t)})))}onError(t){this._onError=t}}var m=function(t,i,s,a){var e,r=arguments.length,o=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(o=(r<3?e(o):r>3?e(i,s,o):e(i,s))||o);return r>3&&o&&Object.defineProperty(i,s,o),o};const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dialogClose=s(this,"dialogClose",7),this.iconPack=n,this.t=h(),this.preloadedAudioElem=void 0,this.showPlayDialog=!1,this.onRtkDialogClose=()=>{this.showPlayDialog=!1,this.dialogClose.emit()}}componentDidLoad(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.meeting&&(this.audioUpdateListener&&this.meeting.participants.joined.removeListener("audioUpdate",this.audioUpdateListener),this.screenShareUpdateListener&&this.meeting.participants.joined.removeListener("screenShareUpdate",this.screenShareUpdateListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),this.deviceUpdateListener&&this.meeting.self.removeListener("deviceUpdate",this.deviceUpdateListener),this.stageStatusUpdateListener&&(null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)))}async setupAudio(){this.audio=new k(this.meeting,this.preloadedAudioElem);const t=this.meeting.self.getCurrentDevices();null!=t.speaker&&await this.audio.setDevice(t.speaker.deviceId)}async handleAutoPlayError(){this.audio||await this.setupAudio(),this.audio.onError((()=>{this.showPlayDialog=!0})),this.audio.play()}async handleEvents(t){this.audioUpdateListener=({id:t,audioEnabled:i,audioTrack:s})=>{const a="audio-"+t;i&&null!=s?this.audio.addTrack(a,s):this.audio.removeTrack(a)};const i=t.participants.joined.toArray();for(const t of i)this.audioUpdateListener(t);this.participantLeftListener=({id:t})=>{this.audio.removeTrack("audio-"+t),this.audio.removeTrack("screenshare-"+t)},this.screenShareUpdateListener=({id:t,screenShareEnabled:i,screenShareTracks:s})=>{const a="screenshare-"+t;i&&null!=s.audio?this.audio.addTrack(a,s.audio):this.audio.removeTrack(a)},this.deviceUpdateListener=({device:t,preview:i})=>{i||"audiooutput"===t.kind&&this.audio.setDevice(t.deviceId)},t.participants.joined.addListener("audioUpdate",this.audioUpdateListener),t.participants.joined.addListener("screenShareUpdate",this.screenShareUpdateListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener)}async meetingChanged(t){var i;t&&(this.setupAudio(),c(t)?(this.stageStatusUpdateListener=async t=>{"ON_STAGE"===t&&await this.handleAutoPlayError()},null===(i=t.stage)||void 0===i||i.on("stageStatusUpdate",this.stageStatusUpdateListener)):await this.handleAutoPlayError(),await this.handleEvents(t))}render(){return a(e,{key:"14ddae0562633e4433788c18fb89533248df6c2b"},this.showPlayDialog&&a("rtk-dialog",{key:"d0e33058fbcd77861009ce80d7d4e29b2b597475",open:!0,onRtkDialogClose:this.onRtkDialogClose,hideCloseButton:!0,disableEscapeKey:!0,iconPack:this.iconPack,t:this.t},a("div",{key:"e6a9a18c1eaf3e09d13e25373982183b3ad6f8ec",class:"modal"},a("h3",{key:"bc87cc408aad7117cc8d808e38142b3801e5ff53"},this.t("audio_playback.title")),a("p",{key:"b1927a5cd053c59e19a6c4c54044ca500691ee71"},this.t("audio_playback.description")),a("rtk-button",{key:"3c022bb0602295cbd5996ae2ee066e254b1af2fb",kind:"wide",onClick:()=>{this.audio.play(),this.onRtkDialogClose()},title:this.t("audio_playback")},this.t("audio_playback")))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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;overflow-wrap:break-word;color:rgb(var(--rtk-colors-text-1000, 255 255 255));word-wrap:break-word}.modal{box-sizing:border-box;width:100%;max-width:var(--rtk-space-96, 384px);padding:var(--rtk-space-4, 16px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.modal h3{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);font-size:24px;font-weight:500}.modal p{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-6, 24px)}.modal rtk-button{width:100%}"}},[1,"rtk-participants-audio",{meeting:[16],iconPack:[16],t:[16],preloadedAudioElem:[16],showPlayDialog:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-participants-audio","rtk-button","rtk-dialog","rtk-icon"].forEach((t=>{switch(t){case"rtk-participants-audio":customElements.get(r(t))||customElements.define(r(t),b);break;case"rtk-button":customElements.get(r(t))||l();break;case"rtk-dialog":customElements.get(r(t))||p();break;case"rtk-icon":customElements.get(r(t))||u()}}))}m([d()],b.prototype,"meeting",void 0),m([d()],b.prototype,"iconPack",void 0),m([d()],b.prototype,"t",void 0),f();const v=b,g=f;export{v as RtkParticipantsAudio,g as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-BYNelMao.js";const a=o,p=s;export{a as RtkParticipantsStageList,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-BJVF89z6.js";const p=o,r=s;export{p as RtkParticipantsStageList,r as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-BD2FfUwc.js";const p=o,r=s;export{p as RtkParticipantsStageQueue,r as defineCustomElement}
1
+ import{R as o,d as p}from"./p-Bp6LuyCH.js";const s=o,r=p;export{s as RtkParticipantsStageQueue,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,c as s,h as a,d as e,t as n}from"./p-BBHQOrFK.js";import{e as r,i as o}from"./p-DhwysA2e.js";import{a as c}from"./p-D9HGXWKc.js";import{S as h}from"./p-bRRQr4xn.js";import{d as p}from"./p-CFBS-gbK.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-B0SC1Zj-.js";var u=function(t,i,s,a){var e,n=arguments.length,r=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,a);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(r=(n<3?e(r):n>3?e(i,s,r):e(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=r,this.t=o(),this.participantsActive=!1,this.waitlistedParticipants=[],this.stageRequestedParticipants=[],this.badgeCount=0,this.canViewParticipants=!1,this.updateStageRequests=async t=>{var i,s,a;t||(t=null!==(a=null===(s=null===(i=this.meeting.stage)||void 0===i?void 0:i.getAccessRequests())||void 0===s?void 0:s.stageRequests)&&void 0!==a?a:[]),this.stageRequestedParticipants=t,this.stageRequestedParticipants="REQUESTED_TO_JOIN_STAGE"===this.meeting.stage.status?[this.meeting.self,...t]:t,this.updateBadgeCount()},this.updateBadgeCount=()=>{this.badgeCount=this.waitlistedParticipants.length+this.stageRequestedParticipants.length},this.updateCanView=()=>{this.canViewParticipants=c(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s;this.meeting&&(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),null===(s=this.meeting.stage)||void 0===s||s.removeListener("stageAccessRequestUpdate",this.updateStageRequests))}meetingChanged(t){var i;t&&(this.canViewParticipants=c(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),t.self.permissions.acceptWaitingRequests&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t],this.updateBadgeCount())},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id)),this.updateBadgeCount()},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&(this.updateStageRequests(),null==t||t.stage.on("stageAccessRequestUpdate",this.updateStageRequests)),this.updateBadgeCount())}statesChanged(t){null!=t&&(this.participantsActive=!0===t.activeSidebar&&"participants"===t.sidebar)}toggleParticipantsTab(){const t=this.states;this.participantsActive=!((null==t?void 0:t.activeSidebar)&&"participants"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.participantsActive,sidebar:this.participantsActive?"participants":void 0,activeMoreMenu:!1})}handleParticipantsActiveChange(){this.participantsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewParticipants)return a(e,{"data-hidden":!0});const t=this.t("participants");return a(e,{title:t},0!==this.badgeCount&&!this.participantsActive&&a("div",{class:"waiting-participants-count",part:"waiting-participants-count"},a("span",null,this.badgeCount<=100?this.badgeCount:"99+")),a("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.participantsActive},onClick:()=>this.toggleParticipantsTab(),icon:this.iconPack.participants,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],participantsActive:[{handleParticipantsActiveChange:0}]}}static get style(){return":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}.waiting-participants-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .waiting-participants-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}"}},[1,"rtk-participants-toggle",{variant:[513],meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],participantsActive:[32],waitlistedParticipants:[32],stageRequestedParticipants:[32],badgeCount:[32],canViewParticipants:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],participantsActive:[{handleParticipantsActiveChange:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-participants-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-participants-toggle":customElements.get(n(t))||customElements.define(n(t),g);break;case"rtk-controlbar-button":customElements.get(n(t))||p();break;case"rtk-icon":customElements.get(n(t))||l();break;case"rtk-spinner":customElements.get(n(t))||d()}}))}u([h()],g.prototype,"meeting",void 0),u([h()],g.prototype,"states",void 0),u([h()],g.prototype,"iconPack",void 0),u([h()],g.prototype,"t",void 0),v();const m=g,b=v;export{m as RtkParticipantsToggle,b as defineCustomElement}
1
+ import{p as t,H as i,c as s,h as a,d as e,t as n}from"./p-BBHQOrFK.js";import{e as r,i as o}from"./p-DNcV8eFN.js";import{a as c}from"./p-D9HGXWKc.js";import{S as h}from"./p-Dms_qKT9.js";import{d as p}from"./p-CyCI1p7C.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-CpejImHh.js";var u=function(t,i,s,a){var e,n=arguments.length,r=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,a);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(r=(n<3?e(r):n>3?e(i,s,r):e(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=r,this.t=o(),this.participantsActive=!1,this.waitlistedParticipants=[],this.stageRequestedParticipants=[],this.badgeCount=0,this.canViewParticipants=!1,this.updateStageRequests=async t=>{var i,s,a;t||(t=null!==(a=null===(s=null===(i=this.meeting.stage)||void 0===i?void 0:i.getAccessRequests())||void 0===s?void 0:s.stageRequests)&&void 0!==a?a:[]),this.stageRequestedParticipants=t,this.stageRequestedParticipants="REQUESTED_TO_JOIN_STAGE"===this.meeting.stage.status?[this.meeting.self,...t]:t,this.updateBadgeCount()},this.updateBadgeCount=()=>{this.badgeCount=this.waitlistedParticipants.length+this.stageRequestedParticipants.length},this.updateCanView=()=>{this.canViewParticipants=c(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s;this.meeting&&(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),null===(s=this.meeting.stage)||void 0===s||s.removeListener("stageAccessRequestUpdate",this.updateStageRequests))}meetingChanged(t){var i;t&&(this.canViewParticipants=c(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),t.self.permissions.acceptWaitingRequests&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t],this.updateBadgeCount())},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id)),this.updateBadgeCount()},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&(this.updateStageRequests(),null==t||t.stage.on("stageAccessRequestUpdate",this.updateStageRequests)),this.updateBadgeCount())}statesChanged(t){null!=t&&(this.participantsActive=!0===t.activeSidebar&&"participants"===t.sidebar)}toggleParticipantsTab(){const t=this.states;this.participantsActive=!((null==t?void 0:t.activeSidebar)&&"participants"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.participantsActive,sidebar:this.participantsActive?"participants":void 0,activeMoreMenu:!1})}handleParticipantsActiveChange(){this.participantsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewParticipants)return a(e,{"data-hidden":!0});const t=this.t("participants");return a(e,{title:t},0!==this.badgeCount&&!this.participantsActive&&a("div",{class:"waiting-participants-count",part:"waiting-participants-count"},a("span",null,this.badgeCount<=100?this.badgeCount:"99+")),a("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.participantsActive},onClick:()=>this.toggleParticipantsTab(),icon:this.iconPack.participants,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],participantsActive:[{handleParticipantsActiveChange:0}]}}static get style(){return":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}.waiting-participants-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .waiting-participants-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}"}},[1,"rtk-participants-toggle",{variant:[513],meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],participantsActive:[32],waitlistedParticipants:[32],stageRequestedParticipants:[32],badgeCount:[32],canViewParticipants:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],participantsActive:[{handleParticipantsActiveChange:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-participants-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-participants-toggle":customElements.get(n(t))||customElements.define(n(t),g);break;case"rtk-controlbar-button":customElements.get(n(t))||p();break;case"rtk-icon":customElements.get(n(t))||l();break;case"rtk-spinner":customElements.get(n(t))||d()}}))}u([h()],g.prototype,"meeting",void 0),u([h()],g.prototype,"states",void 0),u([h()],g.prototype,"iconPack",void 0),u([h()],g.prototype,"t",void 0),v();const m=g,f=v;export{m as RtkParticipantsToggle,f as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-oJLPa1F-.js";const a=o,p=s;export{a as RtkParticipantsViewerList,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-D0E1dHQD.js";const p=o,r=s;export{p as RtkParticipantsViewerList,r as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as r}from"./p-xKvr8ufu.js";const s=o,p=r;export{s as RtkParticipantsWaitingList,p as defineCustomElement}
1
+ import{R as o,d as p}from"./p-BTonlp4Z.js";const s=o,r=p;export{s as RtkParticipantsWaitingList,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as r,c as s,h as a,d as i,t as e}from"./p-BBHQOrFK.js";import{c as o,e as n,i as p}from"./p-DhwysA2e.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-bRRQr4xn.js";import{d as l}from"./p-BHHJ7_MS.js";import{d as h}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as m}from"./p-DMbGWtns.js";import{d as u}from"./p-Z8VMlEx7.js";import{d as b}from"./p-CBGt9ESN.js";import{d as g}from"./p-BYNelMao.js";import{d as k}from"./p-BD2FfUwc.js";import{d as v}from"./p-oJLPa1F-.js";import{d as f}from"./p-xKvr8ufu.js";import{d as x}from"./p-D3fF-6sB.js";import{d as E}from"./p-B0SC1Zj-.js";import{d as w}from"./p-DHSRRtn3.js";import{d as T}from"./p-BbJzI1u1.js";import{d as j}from"./p-DLocSBO3.js";var S=function(t,r,s,a){var i,e=arguments.length,o=e<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,s,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(e<3?i(o):e>3?i(r,s,o):i(r,s))||o);return e>3&&o&&Object.defineProperty(r,s,o),o};const y=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.config=o(),this.iconPack=n,this.defaultParticipantsTabId="stage-list",this.t=p(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=j((()=>{var t;let r=(null===(t=this.meeting.participants.waitlisted)||void 0===t?void 0:t.size)||0,s=0,i=0;this.meeting.participants.joined.toArray().forEach((t=>{"ON_STAGE"===t.stageStatus&&s++,"OFF_STAGE"===t.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(r++,i++),"ACCEPTED_TO_JOIN_STAGE"===t.stageStatus&&i++})),"ON_STAGE"===this.meeting.self.stageStatus&&s++,"OFF_STAGE"===this.meeting.self.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&(r++,i++),"ACCEPTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&i++;const e=[];this.shouldShowRequestsTab()&&e.push({id:"requests",name:a("span",null,this.t("requests")," ",a("span",{class:`tab-participant-count-badge ${r>0?"requests-pending":""} ${"requests"===this.currentParticipantsTabId?"selected-tab":""}`},r))}),e.push({id:"stage-list",name:a("span",null,this.t("participants")," ",a("span",{class:"tab-participant-count-badge "+("stage-list"===this.currentParticipantsTabId?"selected-tab":"")},s))}),this.shouldShowViewersTab()&&e.push({id:"viewer-list",name:a("span",null,this.t("viewers")," ",a("span",{class:"tab-participant-count-badge "+("viewer-list"===this.currentParticipantsTabId?"selected-tab":"")},i))}),this.tabs=e,this.hasRequests=r>0})),this.onSearchInput=t=>{this.search=t.target.value},this.shouldShowViewersTab=()=>{var t,r,s;return null===(s=null===(r=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.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 a(i,null,a("div",{class:"search",part:"search"},a("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),a("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),a("slot",{name:"start"}),a("div",{class:"ctr scrollbar "+("requests"!==this.currentParticipantsTabId?"virtualised":""),part:"container"},a("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)&&a("div",{slot:"stage-list",style:{marginTop:"10px",height:"100%"}},a("rtk-participants-stage-list",Object.assign({},t,{search:this.search,hideHeader:!0}))),"requests"===this.currentParticipantsTabId&&a("div",{slot:"requests",style:{marginTop:"10px",height:"100%"}},!this.hasRequests&&a("div",{class:"no-pending-requests"},this.t("participants.no_pending_requests")),a("rtk-participants-stage-queue",Object.assign({},t)),a("rtk-participants-waiting-list",Object.assign({},t))),"viewer-list"===this.currentParticipantsTabId&&a("div",{slot:"viewer-list",style:{marginTop:"10px",height:"100%"}},a("rtk-participants-viewer-list",Object.assign({},t,{search:this.search,hideHeader:!0}))))),a("slot",{name:"end"}))}static get watchers(){return{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}}static get style(){return":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))}"}},[257,"rtk-participants",{meeting:[16],states:[16],config:[16],size:[513],iconPack:[16],defaultParticipantsTabId:[1,"default-participants-tab-id"],t:[16],currentParticipantsTabId:[32],tabs:[32],hasRequests:[32],search:[32]},void 0,{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}]);function O(){"undefined"!=typeof customElements&&["rtk-participants","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-participant","rtk-participants-stage-list","rtk-participants-stage-queue","rtk-participants-viewer-list","rtk-participants-waiting-list","rtk-sidebar-ui","rtk-spinner","rtk-tooltip","rtk-virtualized-participant-list"].forEach((t=>{switch(t){case"rtk-participants":customElements.get(e(t))||customElements.define(e(t),y);break;case"rtk-avatar":customElements.get(e(t))||l();break;case"rtk-button":customElements.get(e(t))||h();break;case"rtk-icon":customElements.get(e(t))||d();break;case"rtk-menu-item":customElements.get(e(t))||m();break;case"rtk-menu-list":customElements.get(e(t))||u();break;case"rtk-participant":customElements.get(e(t))||b();break;case"rtk-participants-stage-list":customElements.get(e(t))||g();break;case"rtk-participants-stage-queue":customElements.get(e(t))||k();break;case"rtk-participants-viewer-list":customElements.get(e(t))||v();break;case"rtk-participants-waiting-list":customElements.get(e(t))||f();break;case"rtk-sidebar-ui":customElements.get(e(t))||x();break;case"rtk-spinner":customElements.get(e(t))||E();break;case"rtk-tooltip":customElements.get(e(t))||w();break;case"rtk-virtualized-participant-list":customElements.get(e(t))||T()}}))}S([c()],y.prototype,"meeting",void 0),S([c()],y.prototype,"states",void 0),S([c()],y.prototype,"config",void 0),S([c()],y.prototype,"iconPack",void 0),S([c()],y.prototype,"t",void 0),O();const _=y,C=O;export{_ as RtkParticipants,C as defineCustomElement}
1
+ import{p as t,H as r,c as s,h as i,d as a,t as e}from"./p-BBHQOrFK.js";import{c as o,e as n,i as p}from"./p-DNcV8eFN.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-Dms_qKT9.js";import{d as l}from"./p-COiw7loB.js";import{d as h}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as m}from"./p-D9BcuQ_v.js";import{d as u}from"./p-BfJzVZMy.js";import{d as b}from"./p-P7-5QimH.js";import{d as g}from"./p-BJVF89z6.js";import{d as k}from"./p-Bp6LuyCH.js";import{d as v}from"./p-D0E1dHQD.js";import{d as f}from"./p-BTonlp4Z.js";import{d as x}from"./p-R38kp86h.js";import{d as E}from"./p-CpejImHh.js";import{d as T}from"./p-DHSRRtn3.js";import{d as w}from"./p-BbJzI1u1.js";import{d as j}from"./p-DLocSBO3.js";var y=function(t,r,s,i){var a,e=arguments.length,o=e<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,s,i);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(e<3?a(o):e>3?a(r,s,o):a(r,s))||o);return e>3&&o&&Object.defineProperty(r,s,o),o};const O=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.config=o(),this.iconPack=n,this.defaultParticipantsTabId="stage-list",this.t=p(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=j((()=>{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,s;return null===(s=null===(r=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.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(a,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}]}}static get style(){return":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))}"}},[257,"rtk-participants",{meeting:[16],states:[16],config:[16],size:[513],iconPack:[16],defaultParticipantsTabId:[1,"default-participants-tab-id"],t:[16],currentParticipantsTabId:[32],tabs:[32],hasRequests:[32],search:[32]},void 0,{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}]);function S(){"undefined"!=typeof customElements&&["rtk-participants","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-participant","rtk-participants-stage-list","rtk-participants-stage-queue","rtk-participants-viewer-list","rtk-participants-waiting-list","rtk-sidebar-ui","rtk-spinner","rtk-tooltip","rtk-virtualized-participant-list"].forEach((t=>{switch(t){case"rtk-participants":customElements.get(e(t))||customElements.define(e(t),O);break;case"rtk-avatar":customElements.get(e(t))||l();break;case"rtk-button":customElements.get(e(t))||h();break;case"rtk-icon":customElements.get(e(t))||d();break;case"rtk-menu-item":customElements.get(e(t))||m();break;case"rtk-menu-list":customElements.get(e(t))||u();break;case"rtk-participant":customElements.get(e(t))||b();break;case"rtk-participants-stage-list":customElements.get(e(t))||g();break;case"rtk-participants-stage-queue":customElements.get(e(t))||k();break;case"rtk-participants-viewer-list":customElements.get(e(t))||v();break;case"rtk-participants-waiting-list":customElements.get(e(t))||f();break;case"rtk-sidebar-ui":customElements.get(e(t))||x();break;case"rtk-spinner":customElements.get(e(t))||E();break;case"rtk-tooltip":customElements.get(e(t))||T();break;case"rtk-virtualized-participant-list":customElements.get(e(t))||w()}}))}y([c()],O.prototype,"meeting",void 0),y([c()],O.prototype,"states",void 0),y([c()],O.prototype,"config",void 0),y([c()],O.prototype,"iconPack",void 0),y([c()],O.prototype,"t",void 0),S();const _=O,C=S;export{_ as RtkParticipants,C as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-DSUStc8e.js";const t=o,p=s;export{t as RtkPermissionsMessage,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-Du2bvW5k.js";const p=o,r=s;export{p as RtkPermissionsMessage,r as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-BoqfUgTL.js";const p=o,r=s;export{p as RtkPinnedMessageSelector,r as defineCustomElement}
1
+ import{R as a,d as o}from"./p-BQAzaaPe.js";const s=a,p=o;export{s as RtkPinnedMessageSelector,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,c as e,h as s,d as o,t as n}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import{c as r,e as a,i as c}from"./p-DhwysA2e.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as p}from"./p-bRRQr4xn.js";import{d as l}from"./p-CFBS-gbK.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as m}from"./p-B0SC1Zj-.js";var d=function(t,i,e,s){var o,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(i,e,r):o(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const u=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.config=r(),this.iconPack=a,this.t=c(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,e,s;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode)&&"LIVESTREAM"!==(null===(s=t.self.config)||void 0===s?void 0:s.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.meeting)return null;if(!this.pipSupported)return s(o,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return s(o,{role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-pip-toggle",{variant:[513],meeting:[16],states:[16],config:[16],iconPack:[16],size:[513],t:[16],pipSupported:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-pip-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-pip-toggle":customElements.get(n(t))||customElements.define(n(t),u);break;case"rtk-controlbar-button":customElements.get(n(t))||l();break;case"rtk-icon":customElements.get(n(t))||h();break;case"rtk-spinner":customElements.get(n(t))||m()}}))}d([p()],u.prototype,"meeting",void 0),d([p()],u.prototype,"states",void 0),d([p()],u.prototype,"config",void 0),d([p()],u.prototype,"iconPack",void 0),d([p()],u.prototype,"t",void 0),f();const g=u,v=f;export{g as RtkPipToggle,v as defineCustomElement}
1
+ import{p as t,H as i,c as e,h as s,d as o,t as n}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import{c as r,e as a,i as c}from"./p-DNcV8eFN.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as p}from"./p-Dms_qKT9.js";import{d as l}from"./p-CyCI1p7C.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as h}from"./p-CpejImHh.js";var d=function(t,i,e,s){var o,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(i,e,r):o(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const u=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.config=r(),this.iconPack=a,this.t=c(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,e,s;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode)&&"LIVESTREAM"!==(null===(s=t.self.config)||void 0===s?void 0:s.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.meeting)return null;if(!this.pipSupported)return s(o,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return s(o,{role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-pip-toggle",{variant:[513],meeting:[16],states:[16],config:[16],iconPack:[16],size:[513],t:[16],pipSupported:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-pip-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-pip-toggle":customElements.get(n(t))||customElements.define(n(t),u);break;case"rtk-controlbar-button":customElements.get(n(t))||l();break;case"rtk-icon":customElements.get(n(t))||m();break;case"rtk-spinner":customElements.get(n(t))||h()}}))}d([p()],u.prototype,"meeting",void 0),d([p()],u.prototype,"states",void 0),d([p()],u.prototype,"config",void 0),d([p()],u.prototype,"iconPack",void 0),d([p()],u.prototype,"t",void 0),f();const g=u,v=f;export{g as RtkPipToggle,v as defineCustomElement}
@@ -1 +1 @@
1
- import{R as s,d as o}from"./p-CjstGmGh.js";const t=s,m=o;export{t as RtkPluginMain,m as defineCustomElement}
1
+ import{R as o,d as s}from"./p-CMXxXUg6.js";const p=o,r=s;export{p as RtkPluginMain,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as s,c as i,h as e,d as n,t as a}from"./p-BBHQOrFK.js";import{e as o,i as l}from"./p-DhwysA2e.js";import{b as r}from"./p-D9HGXWKc.js";import{S as c}from"./p-bRRQr4xn.js";import{d as h}from"./p-CFBS-gbK.js";import{d}from"./p-BYIBbfJ8.js";import{d as u}from"./p-B0SC1Zj-.js";var g=function(t,s,i,e){var n,a=arguments.length,o=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(a<3?n(o):a>3?n(s,i,o):n(s,i))||o);return a>3&&o&&Object.defineProperty(s,i,o),o};const p=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=o,this.t=l(),this.pluginsActive=!1,this.canViewPlugins=!1,this.updateCanView=()=>{this.canViewPlugins=r(this.meeting)}}disconnectedCallback(){var t,s,i,e;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.updateCanView),null===(e=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===e||e.permissions.removeListener("pluginsUpdate",this.updateCanView)}connectedCallback(){this.statesChanged(this.states),this.meetingChanged(this.meeting)}meetingChanged(t){var s,i;t&&(this.canViewPlugins=r(t),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView),null===(i=null==t?void 0:t.self)||void 0===i||i.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 e(n,{"data-hidden":!0});const t=this.t("plugins");return e(n,{title:t},e("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}]}}static get style(){return":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}"}},[1,"rtk-plugins-toggle",{variant:[513],meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],pluginsActive:[32],canViewPlugins:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pluginsActive:[{handlePluginsActiveChange:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-plugins-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-plugins-toggle":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-controlbar-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||d();break;case"rtk-spinner":customElements.get(a(t))||u()}}))}g([c()],p.prototype,"meeting",void 0),g([c()],p.prototype,"states",void 0),g([c()],p.prototype,"iconPack",void 0),g([c()],p.prototype,"t",void 0),m();const v=p,f=m;export{v as RtkPluginsToggle,f as defineCustomElement}
1
+ import{p as t,H as s,c as i,h as e,d as n,t as a}from"./p-BBHQOrFK.js";import{e as o,i as l}from"./p-DNcV8eFN.js";import{b as r}from"./p-D9HGXWKc.js";import{S as c}from"./p-Dms_qKT9.js";import{d as h}from"./p-CyCI1p7C.js";import{d}from"./p-BYIBbfJ8.js";import{d as u}from"./p-CpejImHh.js";var g=function(t,s,i,e){var n,a=arguments.length,o=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(a<3?n(o):a>3?n(s,i,o):n(s,i))||o);return a>3&&o&&Object.defineProperty(s,i,o),o};const p=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=o,this.t=l(),this.pluginsActive=!1,this.canViewPlugins=!1,this.updateCanView=()=>{this.canViewPlugins=r(this.meeting)}}disconnectedCallback(){var t,s,i,e;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.updateCanView),null===(e=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===e||e.permissions.removeListener("pluginsUpdate",this.updateCanView)}connectedCallback(){this.statesChanged(this.states),this.meetingChanged(this.meeting)}meetingChanged(t){var s,i;t&&(this.canViewPlugins=r(t),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView),null===(i=null==t?void 0:t.self)||void 0===i||i.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 e(n,{"data-hidden":!0});const t=this.t("plugins");return e(n,{title:t},e("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}]}}static get style(){return":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}"}},[1,"rtk-plugins-toggle",{variant:[513],meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],pluginsActive:[32],canViewPlugins:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pluginsActive:[{handlePluginsActiveChange:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-plugins-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-plugins-toggle":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-controlbar-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||d();break;case"rtk-spinner":customElements.get(a(t))||u()}}))}g([c()],p.prototype,"meeting",void 0),g([c()],p.prototype,"states",void 0),g([c()],p.prototype,"iconPack",void 0),g([c()],p.prototype,"t",void 0),m();const v=p,f=m;export{v as RtkPluginsToggle,f as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-DRDGwBZ3.js";const p=o,r=s;export{p as RtkPlugins,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-BQutCq9K.js";const t=o,p=s;export{t as RtkPlugins,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-BvLjh5Yy.js";const p=o,r=s;export{p as RtkPollForm,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-DdehD3Ic.js";const p=o,r=s;export{p as RtkPollForm,r as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-DjOiGHfI.js";const p=o,r=s;export{p as RtkPoll,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-BTGG7zSl.js";const p=o,r=s;export{p as RtkPoll,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as s,c as e,h as i,d as o,t as a}from"./p-BBHQOrFK.js";import{e as n,i as r}from"./p-DhwysA2e.js";import{d as l}from"./p-D9HGXWKc.js";import{S as c}from"./p-bRRQr4xn.js";import{d as h}from"./p-CFBS-gbK.js";import{d}from"./p-BYIBbfJ8.js";import{d as p}from"./p-B0SC1Zj-.js";var u=function(t,s,e,i){var o,a=arguments.length,n=a<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(a<3?o(n):a>3?o(s,e,n):o(s,e))||n);return a>3&&n&&Object.defineProperty(s,e,n),n};const v=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=r(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=l(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,s,e,i,o,a;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===s||s.removeListener("pollsUpdate",this.onPollsUpdate),null===(i=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===i||i.permissions.removeListener("pollsUpdate",this.updateCanView),null===(a=null===(o=this.meeting)||void 0===o?void 0:o.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var s,e;t&&t.polls&&(this.unreadPollsCount=t.polls.items.length,this.meeting.polls.addListener("pollsUpdate",this.onPollsUpdate),null===(s=null==t?void 0:t.self)||void 0===s||s.permissions.addListener("pollsUpdate",this.updateCanView),this.canViewPolls=l(t),null===(e=null==t?void 0:t.stage)||void 0===e||e.on("stageStatusUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pollsActive=!0===t.activeSidebar&&"polls"===t.sidebar)}togglePollsTab(){const t=this.states;this.unreadPollsCount=0,this.pollsActive=!((null==t?void 0:t.activeSidebar)&&"polls"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pollsActive,sidebar:this.pollsActive?"polls":void 0,activeMoreMenu:!1})}handlePollsActiveChange(){this.pollsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPolls)return i(o,{"data-hidden":!0});const t=this.t("polls");return i(o,{title:t},0!==this.unreadPollsCount&&!this.pollsActive&&i("div",{class:"unread-count",part:"unread-count"},i("span",null,this.unreadPollsCount<=100?this.unreadPollsCount:"99+")),i("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pollsActive},onClick:()=>this.togglePollsTab(),icon:this.iconPack.poll,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}"}},[1,"rtk-polls-toggle",{variant:[513],meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],pollsActive:[32],unreadPollsCount:[32],canViewPolls:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-polls-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-polls-toggle":customElements.get(a(t))||customElements.define(a(t),v);break;case"rtk-controlbar-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||d();break;case"rtk-spinner":customElements.get(a(t))||p()}}))}u([c()],v.prototype,"meeting",void 0),u([c()],v.prototype,"states",void 0),u([c()],v.prototype,"iconPack",void 0),u([c()],v.prototype,"t",void 0),g();const m=v,b=g;export{m as RtkPollsToggle,b as defineCustomElement}
1
+ import{p as t,H as s,c as e,h as i,d as o,t as a}from"./p-BBHQOrFK.js";import{e as n,i as r}from"./p-DNcV8eFN.js";import{d as l}from"./p-D9HGXWKc.js";import{S as c}from"./p-Dms_qKT9.js";import{d as h}from"./p-CyCI1p7C.js";import{d}from"./p-BYIBbfJ8.js";import{d as p}from"./p-CpejImHh.js";var u=function(t,s,e,i){var o,a=arguments.length,n=a<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(a<3?o(n):a>3?o(s,e,n):o(s,e))||n);return a>3&&n&&Object.defineProperty(s,e,n),n};const v=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=r(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=l(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,s,e,i,o,a;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===s||s.removeListener("pollsUpdate",this.onPollsUpdate),null===(i=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===i||i.permissions.removeListener("pollsUpdate",this.updateCanView),null===(a=null===(o=this.meeting)||void 0===o?void 0:o.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var s,e;t&&t.polls&&(this.unreadPollsCount=t.polls.items.length,this.meeting.polls.addListener("pollsUpdate",this.onPollsUpdate),null===(s=null==t?void 0:t.self)||void 0===s||s.permissions.addListener("pollsUpdate",this.updateCanView),this.canViewPolls=l(t),null===(e=null==t?void 0:t.stage)||void 0===e||e.on("stageStatusUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pollsActive=!0===t.activeSidebar&&"polls"===t.sidebar)}togglePollsTab(){const t=this.states;this.unreadPollsCount=0,this.pollsActive=!((null==t?void 0:t.activeSidebar)&&"polls"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pollsActive,sidebar:this.pollsActive?"polls":void 0,activeMoreMenu:!1})}handlePollsActiveChange(){this.pollsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPolls)return i(o,{"data-hidden":!0});const t=this.t("polls");return i(o,{title:t},0!==this.unreadPollsCount&&!this.pollsActive&&i("div",{class:"unread-count",part:"unread-count"},i("span",null,this.unreadPollsCount<=100?this.unreadPollsCount:"99+")),i("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pollsActive},onClick:()=>this.togglePollsTab(),icon:this.iconPack.poll,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}"}},[1,"rtk-polls-toggle",{variant:[513],meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],pollsActive:[32],unreadPollsCount:[32],canViewPolls:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-polls-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-polls-toggle":customElements.get(a(t))||customElements.define(a(t),v);break;case"rtk-controlbar-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||d();break;case"rtk-spinner":customElements.get(a(t))||p()}}))}u([c()],v.prototype,"meeting",void 0),u([c()],v.prototype,"states",void 0),u([c()],v.prototype,"iconPack",void 0),u([c()],v.prototype,"t",void 0),g();const m=v,b=g;export{m as RtkPollsToggle,b as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-DhkCjo6N.js";const p=o,r=s;export{p as RtkPolls,r as defineCustomElement}
1
+ import{R as o,d as r}from"./p-B4eRurJb.js";const s=o,p=r;export{s as RtkPolls,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as i,d as a,t as r}from"./p-BBHQOrFK.js";import{i as n,e as s}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d as o}from"./p-BYIBbfJ8.js";var d=function(t,e,i,a){var r,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const p=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.t=n(),this.iconPack=s,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"c4246e4721b0ca5fbc689a90688f1239df60ecad","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"ce19b3649bba8a91cd22770534762c932b934557",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"9d2ae89fef0d4e1e0d3546f765f48be8a6da6b5a",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"cedf044a1a96c164022d734be2baf7e568fb849e"},this.t("recording.label"))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}:host[size='sm']{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px)}.indicator{display:flex;flex-direction:row;align-items:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);animation:blink 4s linear infinite}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='sm']) .indicator span{display:none}@keyframes blink{0%,10%{opacity:0}11%,100%{opacity:1}}"}},[1,"rtk-recording-indicator",{meeting:[16],size:[513],t:[16],iconPack:[16],isRecording:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-recording-indicator","rtk-icon"].forEach((t=>{switch(t){case"rtk-recording-indicator":customElements.get(r(t))||customElements.define(r(t),p);break;case"rtk-icon":customElements.get(r(t))||o()}}))}d([c()],p.prototype,"meeting",void 0),d([c()],p.prototype,"t",void 0),d([c()],p.prototype,"iconPack",void 0),l();const h=p,f=l;export{h as RtkRecordingIndicator,f as defineCustomElement}
1
+ import{p as t,H as e,h as i,d as a,t as r}from"./p-BBHQOrFK.js";import{i as n,e as s}from"./p-DNcV8eFN.js";import{S as c}from"./p-Dms_qKT9.js";import{d as o}from"./p-BYIBbfJ8.js";var d=function(t,e,i,a){var r,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const p=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.t=n(),this.iconPack=s,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"c4246e4721b0ca5fbc689a90688f1239df60ecad","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"ce19b3649bba8a91cd22770534762c932b934557",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"9d2ae89fef0d4e1e0d3546f765f48be8a6da6b5a",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"cedf044a1a96c164022d734be2baf7e568fb849e"},this.t("recording.label"))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}:host[size='sm']{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px)}.indicator{display:flex;flex-direction:row;align-items:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);animation:blink 4s linear infinite}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='sm']) .indicator span{display:none}@keyframes blink{0%,10%{opacity:0}11%,100%{opacity:1}}"}},[1,"rtk-recording-indicator",{meeting:[16],size:[513],t:[16],iconPack:[16],isRecording:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-recording-indicator","rtk-icon"].forEach((t=>{switch(t){case"rtk-recording-indicator":customElements.get(r(t))||customElements.define(r(t),p);break;case"rtk-icon":customElements.get(r(t))||o()}}))}d([c()],p.prototype,"meeting",void 0),d([c()],p.prototype,"t",void 0),d([c()],p.prototype,"iconPack",void 0),l();const h=p,f=l;export{h as RtkRecordingIndicator,f as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as r,c as e,h as i,d as s,t as n}from"./p-BBHQOrFK.js";import{i as o,e as a}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d as h}from"./p-CFBS-gbK.js";import{d}from"./p-BYIBbfJ8.js";import{d as l}from"./p-B0SC1Zj-.js";var g=function(t,r,e,i){var s,n=arguments.length,o=n<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(r,e,o):s(r,e))||o);return n>3&&o&&Object.defineProperty(r,e,o),o};const u=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.apiError=e(this,"rtkApiError",7),this.variant="button",this.t=o(),this.iconPack=a,this.disabled=!1,this.canRecord=!1,this.permissionsUpdateListener=()=>{this.canRecord=!0===this.meeting.self.permissions.canRecord},this.toggleRecording=async()=>{var t,r,e;if(!this.isLoading()&&!this.disabled)switch(this.recordingState){case"IDLE":try{return void await(null===(t=this.meeting)||void 0===t?void 0:t.recording.start())}catch(t){const r="1005"===(null==t?void 0:t.code);this.apiError.emit({trace:this.t("recording.start"),message:this.t(r?"recording.error.already_recording":"recording.error.start")})}return;case"RECORDING":try{return void await(null===(r=this.meeting)||void 0===r?void 0:r.recording.stop())}catch(t){this.apiError.emit({trace:this.t("recording.stop"),message:this.t("recording.error.stop")})}return;case"PAUSED":try{return void await(null===(e=this.meeting)||void 0===e?void 0:e.recording.resume())}catch(t){this.apiError.emit({trace:this.t("recording.resume"),message:this.t("recording.error.resume")})}return;default:return}},this.isLoading=()=>!this.meeting||"STARTING"===this.recordingState||"STOPPING"===this.recordingState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,r;this.recordingStateUpdateListener&&(null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.recordingStateUpdateListener)),null===(r=this.meeting)||void 0===r||r.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){null!=t&&(this.recordingState=t.recording.recordingState,this.permissionsUpdateListener(),this.recordingStateUpdateListener=t=>{this.recordingState=t},t.recording.addListener("recordingUpdate",this.recordingStateUpdateListener),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}getLabel(){switch(this.recordingState){case"IDLE":return"recording.idle";case"RECORDING":return"recording.stop";case"STARTING":return"recording.starting";case"STOPPING":return"recording.stopping";case"PAUSED":return"recording.resume";default:return"recording.loading"}}getIcon(){switch(this.recordingState){case"IDLE":case"STARTING":case"STOPPING":default:return this.iconPack.recording;case"RECORDING":return this.iconPack.stop_recording}}render(){return this.meeting?this.canRecord?i(s,{title:this.t("RECORDING"===this.recordingState?"recording.stop":"recording.idle")},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:this.toggleRecording,icon:this.getIcon(),isLoading:this.isLoading(),label:this.t(this.getLabel()),variant:this.variant,disabled:this.disabled})):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-recording-toggle",{variant:[513],meeting:[16],t:[16],iconPack:[16],size:[513],disabled:[4],recordingState:[32],canRecord:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-recording-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-recording-toggle":customElements.get(n(t))||customElements.define(n(t),u);break;case"rtk-controlbar-button":customElements.get(n(t))||h();break;case"rtk-icon":customElements.get(n(t))||d();break;case"rtk-spinner":customElements.get(n(t))||l()}}))}g([c()],u.prototype,"meeting",void 0),g([c()],u.prototype,"t",void 0),g([c()],u.prototype,"iconPack",void 0),m();const p=u,f=m;export{p as RtkRecordingToggle,f as defineCustomElement}
1
+ import{p as t,H as e,c as r,h as i,d as s,t as n}from"./p-BBHQOrFK.js";import{i as o,e as a}from"./p-DNcV8eFN.js";import{S as c}from"./p-Dms_qKT9.js";import{d as h}from"./p-CyCI1p7C.js";import{d}from"./p-BYIBbfJ8.js";import{d as l}from"./p-CpejImHh.js";var g=function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o};const u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.apiError=r(this,"rtkApiError",7),this.variant="button",this.t=o(),this.iconPack=a,this.disabled=!1,this.canRecord=!1,this.permissionsUpdateListener=()=>{this.canRecord=!0===this.meeting.self.permissions.canRecord},this.toggleRecording=async()=>{var t,e,r;if(!this.isLoading()&&!this.disabled)switch(this.recordingState){case"IDLE":try{return void await(null===(t=this.meeting)||void 0===t?void 0:t.recording.start())}catch(t){const e="1005"===(null==t?void 0:t.code);this.apiError.emit({trace:this.t("recording.start"),message:this.t(e?"recording.error.already_recording":"recording.error.start")})}return;case"RECORDING":try{return void await(null===(e=this.meeting)||void 0===e?void 0:e.recording.stop())}catch(t){this.apiError.emit({trace:this.t("recording.stop"),message:this.t("recording.error.stop")})}return;case"PAUSED":try{return void await(null===(r=this.meeting)||void 0===r?void 0:r.recording.resume())}catch(t){this.apiError.emit({trace:this.t("recording.resume"),message:this.t("recording.error.resume")})}return;default:return}},this.isLoading=()=>!this.meeting||"STARTING"===this.recordingState||"STOPPING"===this.recordingState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e;this.recordingStateUpdateListener&&(null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.recordingStateUpdateListener)),null===(e=this.meeting)||void 0===e||e.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){null!=t&&(this.recordingState=t.recording.recordingState,this.permissionsUpdateListener(),this.recordingStateUpdateListener=t=>{this.recordingState=t},t.recording.addListener("recordingUpdate",this.recordingStateUpdateListener),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}getLabel(){switch(this.recordingState){case"IDLE":return"recording.idle";case"RECORDING":return"recording.stop";case"STARTING":return"recording.starting";case"STOPPING":return"recording.stopping";case"PAUSED":return"recording.resume";default:return"recording.loading"}}getIcon(){switch(this.recordingState){case"IDLE":case"STARTING":case"STOPPING":default:return this.iconPack.recording;case"RECORDING":return this.iconPack.stop_recording}}render(){return this.meeting?this.canRecord?i(s,{title:this.t("RECORDING"===this.recordingState?"recording.stop":"recording.idle")},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:this.toggleRecording,icon:this.getIcon(),isLoading:this.isLoading(),label:this.t(this.getLabel()),variant:this.variant,disabled:this.disabled})):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-recording-toggle",{variant:[513],meeting:[16],t:[16],iconPack:[16],size:[513],disabled:[4],recordingState:[32],canRecord:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-recording-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-recording-toggle":customElements.get(n(t))||customElements.define(n(t),u);break;case"rtk-controlbar-button":customElements.get(n(t))||h();break;case"rtk-icon":customElements.get(n(t))||d();break;case"rtk-spinner":customElements.get(n(t))||l()}}))}g([c()],u.prototype,"meeting",void 0),g([c()],u.prototype,"t",void 0),g([c()],u.prototype,"iconPack",void 0),m();const p=u,f=m;export{p as RtkRecordingToggle,f as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as s,c as e,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{e as n,i as h}from"./p-DhwysA2e.js";import{S as o}from"./p-bRRQr4xn.js";import{d as c}from"./p-CFBS-gbK.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-B0SC1Zj-.js";import{d as p}from"./p-DHSRRtn3.js";var m=function(t,s,e,i){var r,a=arguments.length,n=a<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(n=(a<3?r(n):a>3?r(s,e,n):r(s,e))||n);return a>3&&n&&Object.defineProperty(s,e,n),n};const u=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.apiError=e(this,"rtkApiError",7),this.variant="button",this.iconPack=n,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.toggleScreenShare=async()=>{var t;if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const s=null===(t=this.meeting)||void 0===t?void 0:t.self;this.screenShareEnabled?s.disableScreenShare():null==s||!this.canScreenShare||this.reachedMaxScreenShares()||this.hasPermissionError()||(this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0}),await s.enableScreenShare(),this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!1}),this.stateUpdate.emit({activeMoreMenu:!1}))}}connectedCallback(){u()?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)}}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){let t="",s="",e="",i={};const r=this.hasPermissionError()&&!this.screenShareEnabled,a=this.reachedMaxScreenShares()&&!this.screenShareEnabled,n="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!r?(s=this.t("screenshare.stop"),e=this.iconPack.share_screen_stop,i["red-icon"]=!0):(s=this.t("screenshare.start"),e=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(t=this.t("perm_sys_denied.screenshare"),i["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(t=this.t("perm_denied.screenshare"),i["red-icon"]=!0):t=s,a&&(t=this.t("screenshare.error.max_count")),n&&(t=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:t,label:s,icon:e,classList:i,disable:r||a,showWarning:r||a||n}}render(){return u()&&this.canScreenShare&&!["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus)?i(r,{title:this.screenShareState.label},i("rtk-tooltip",{placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.toggleScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}))):i(r,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-screen-share-toggle",{states:[16],variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],maxScreenShareCount:[32],screenShareCount:[32],screenShareEnabled:[32],canScreenShare:[32],shareScreenPermission:[32],screenShareState:[32],stageStatus:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-screen-share-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screen-share-toggle":customElements.get(a(t))||customElements.define(a(t),b);break;case"rtk-controlbar-button":customElements.get(a(t))||c();break;case"rtk-icon":customElements.get(a(t))||l();break;case"rtk-spinner":customElements.get(a(t))||d();break;case"rtk-tooltip":customElements.get(a(t))||p()}}))}m([o()],b.prototype,"states",void 0),m([o()],b.prototype,"meeting",void 0),m([o()],b.prototype,"iconPack",void 0),m([o()],b.prototype,"t",void 0),g();const S=b,k=g;export{S as RtkScreenShareToggle,k as defineCustomElement}
1
+ import{p as t,H as s,c as e,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{e as n,i as h}from"./p-DNcV8eFN.js";import{S as o}from"./p-Dms_qKT9.js";import{d as c}from"./p-CyCI1p7C.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-CpejImHh.js";import{d as p}from"./p-DHSRRtn3.js";var m=function(t,s,e,i){var r,a=arguments.length,n=a<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(n=(a<3?r(n):a>3?r(s,e,n):r(s,e))||n);return a>3&&n&&Object.defineProperty(s,e,n),n};const u=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.apiError=e(this,"rtkApiError",7),this.variant="button",this.iconPack=n,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.toggleScreenShare=async()=>{var t;if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const s=null===(t=this.meeting)||void 0===t?void 0:t.self;this.screenShareEnabled?s.disableScreenShare():null==s||!this.canScreenShare||this.reachedMaxScreenShares()||this.hasPermissionError()||(this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0}),await s.enableScreenShare(),this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!1}),this.stateUpdate.emit({activeMoreMenu:!1}))}}connectedCallback(){u()?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)}}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){let t="",s="",e="",i={};const r=this.hasPermissionError()&&!this.screenShareEnabled,a=this.reachedMaxScreenShares()&&!this.screenShareEnabled,n="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!r?(s=this.t("screenshare.stop"),e=this.iconPack.share_screen_stop,i["red-icon"]=!0):(s=this.t("screenshare.start"),e=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(t=this.t("perm_sys_denied.screenshare"),i["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(t=this.t("perm_denied.screenshare"),i["red-icon"]=!0):t=s,a&&(t=this.t("screenshare.error.max_count")),n&&(t=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:t,label:s,icon:e,classList:i,disable:r||a,showWarning:r||a||n}}render(){return u()&&this.canScreenShare&&!["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus)?i(r,{title:this.screenShareState.label},i("rtk-tooltip",{placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.toggleScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}))):i(r,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-screen-share-toggle",{states:[16],variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],maxScreenShareCount:[32],screenShareCount:[32],screenShareEnabled:[32],canScreenShare:[32],shareScreenPermission:[32],screenShareState:[32],stageStatus:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-screen-share-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screen-share-toggle":customElements.get(a(t))||customElements.define(a(t),b);break;case"rtk-controlbar-button":customElements.get(a(t))||c();break;case"rtk-icon":customElements.get(a(t))||l();break;case"rtk-spinner":customElements.get(a(t))||d();break;case"rtk-tooltip":customElements.get(a(t))||p()}}))}m([o()],b.prototype,"states",void 0),m([o()],b.prototype,"meeting",void 0),m([o()],b.prototype,"iconPack",void 0),m([o()],b.prototype,"t",void 0),g();const k=b,S=g;export{k as RtkScreenShareToggle,S as defineCustomElement}