@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{r as t,h as i,a as e,e as a,d as r}from"./p-gJCRRBX0.js";import{h as s}from"./p-BWNToYSb.js";import{e as o,i as n}from"./p-DI7wP4CL.js";import{S as c}from"./p-BmRffDYW.js";import{i as l}from"./p-CAqYddlg.js";import"./p-BFTU3MAI.js";const d=(t,i)=>{if(null==t)return;const e=Math.round(1.5),a=[...Array(3)].map(((t,a)=>{let r=a;return r>e-1&&(r=3-r-1),Math.round((r+1)/(e+1)*i)})),{width:r,height:s}=t,o=t.getContext("2d");let n=2;const c=1*r/a.length,l=c-4;o.clearRect(0,0,r,s),o.fillStyle="rgb(0,0,0,0.0)",o.fillRect(0,0,r,s);const d=getComputedStyle(t).getPropertyValue("color");o.fillStyle=d,o.strokeStyle=d,o.lineCap="round",o.lineWidth=4,o.beginPath();for(const t of a){const i=Math.min(-Math.abs(1.2*t/10*s)+s/2,s/2-2.5),e=Math.max(2*(s/2-i),5);o.moveTo(n+l/2,i),o.lineTo(n+l/2,i+e),n+=c}o.stroke()};var p=function(t,i,e,a){var r,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const h=class{constructor(i){t(this,i),this.variant="bars",this.iconPack=o,this.t=n(),this.hideMuted=!1,this.isScreenShare=!1,this.volume=0}connectedCallback(){this.participantChanged(this.participant)}componentDidLoad(){d(this.visualizer,0)}disconnectedCallback(){var t,i,e;null===(t=this.hark)||void 0===t||t.stop(),this.audioUpdateListener&&(null===(i=this.participant)||void 0===i||i.removeListener("audioUpdate",this.audioUpdateListener)),this.screenShareUpdateListener&&(null===(e=this.participant)||void 0===e||e.removeListener("screenShareUpdate",this.screenShareUpdateListener))}participantChanged(t){null!=t&&(this.audioUpdateListener=({audioEnabled:t,audioTrack:i})=>{var e;if(null===(e=this.hark)||void 0===e||e.stop(),t&&null!=i){this.audioEnabled=!0;const t=new MediaStream;t.addTrack(i),this.calcVolume(t),d(this.visualizer,0)}else this.volume=0,this.audioEnabled=!1},this.isScreenShare?(this.screenShareUpdateListener=({screenShareEnabled:t,screenShareTracks:i})=>{this.audioUpdateListener({audioEnabled:t&&null!=i.audio,audioTrack:i.audio})},this.screenShareUpdateListener({screenShareEnabled:t.screenShareEnabled,screenShareTracks:{audio:t.screenShareTracks.audio,video:t.screenShareTracks.video}}),t.addListener("screenShareUpdate",this.screenShareUpdateListener)):(this.audioUpdateListener(t),t.addListener("audioUpdate",this.audioUpdateListener)))}calcVolume(t){this.hark=s(t,{play:!1,interval:100}),this.hark.on("volume_change",(t=>{const i=this.volume;let e=Math.round(10**(t/115)*10);e<3&&(e=0);let a=Math.round((2*i+e)/3);i!==a&&(this.volume=a,d(this.visualizer,this.volume))}))}render(){return this.hideMuted&&!this.audioEnabled?null:i(e,null,i("div",{class:{audioActivePadding:this.hideMuted&&this.audioEnabled}},i("canvas",{width:"24",height:"24",class:{bars:!0,visible:this.audioEnabled},ref:t=>this.visualizer=t,part:"canvas"}),!this.isScreenShare&&!this.audioEnabled&&i("rtk-icon",{icon:this.iconPack.mic_off,part:"mic-off-icon"})))}static get watchers(){return{participant:[{participantChanged:0}]}}};p([c()],h.prototype,"iconPack",void 0),p([c()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;width:-moz-fit-content;width:fit-content}.audioActivePadding{padding:var(--rtk-space-1, 4px)}canvas,rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){transform:scale(0.9)}canvas{display:none}canvas.visible{display:block}canvas.bars{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}";var v=function(t,i,e,a){var r,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const g=class{constructor(i){t(this,i),this.iconPack=o,this.variant="full",this.t=n(),this.audioinputDevices=[],this.canProduceAudio=!0,this.currentDevices={audio:void 0},this.stageStateListener=()=>{this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getAudioDevices();this.audioinputDevices=t},this.deviceUpdateListener=({device:t})=>{"audioinput"===t.kind&&(this.currentDevices={audio:t})},this.mediaPermissionUpdateListener=async({kind:t,message:i})=>{this.meeting&&"audio"===t&&"ACCEPTED"===i&&(this.audioinputDevices=await this.meeting.self.getAudioDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,e,a,r;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStateListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(a=this.meeting)||void 0===a||a.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(r=this.meeting)||void 0===r||r.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener)}meetingChanged(t){t&&a((async()=>{var i,e;const{self:a,stage:r}=t,s=await t.self.getAudioDevices(),o=null===(i=t.self.getCurrentDevices())||void 0===i?void 0:i.audio;this.currentDevices={audio:o},this.canProduceAudio="ALLOWED"===t.self.permissions.canProduceAudio,null==r||r.addListener("stageStatusUpdate",this.stageStateListener),a.addListener("deviceListUpdate",this.deviceListUpdateListener),a.addListener("deviceUpdate",this.deviceUpdateListener),a.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.audioinputDevices=null!=o?[null!==(e=s.find((t=>t.deviceId===o.deviceId)))&&void 0!==e?e:o,...s.filter((t=>t.deviceId!==o.deviceId))]:s}))}setDevice(t){var i;if(l(this.meeting))return;const e=this.audioinputDevices.find((i=>i.deviceId===t));null!=e&&(this.currentDevices={audio:e},null===(i=this.meeting)||void 0===i||i.self.setDevice(e))}render(){if(!this.meeting)return null;let t=0;return i(e,null,this.canProduceAudio&&i("div",{part:"microphone-selection",class:"group container "+this.variant},i("label",{slot:"label"},"inline"!==this.variant&&this.t("settings.microphone_input"),i("rtk-icon",{icon:this.iconPack.mic_on,size:"sm"})),i("div",{class:"row"},i("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.audioinputDevices.map((({deviceId:e,label:a})=>{var r;return i("option",{value:e,selected:(null===(r=this.currentDevices.audio)||void 0===r?void 0:r.deviceId)===e},a||"Microphone "+ ++t)}))),i("slot",{name:"indicator"}))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};v([c()],g.prototype,"meeting",void 0),v([c()],g.prototype,"iconPack",void 0),v([c()],g.prototype,"t",void 0),g.style=".rtk-select{--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))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.inline.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0\\.5, 2px)}.inline.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline.container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}";var u=function(t,i,e,a){var r,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const k=class{constructor(i){t(this,i),this.variant="full",this.iconPack=o,this.t=n(),this.speakerDevices=[],this.currentDevices={speaker:void 0},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getSpeakerDevices();this.speakerDevices=t},this.deviceUpdateListener=({device:t})=>{"audiooutput"===t.kind&&(this.currentDevices={speaker:t})},this.mediaPermissionUpdate=async({kind:t,message:i})=>{this.meeting&&"audio"===t&&"ACCEPTED"===i&&(this.speakerDevices=await this.meeting.self.getSpeakerDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,e;null===(t=this.meeting)||void 0===t||t.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdate)}meetingChanged(t){t&&a((async()=>{var i,e;const{self:a}=t,r=await t.self.getSpeakerDevices(),s=null===(i=t.self.getCurrentDevices())||void 0===i?void 0:i.speaker;this.currentDevices={speaker:s},a.addListener("deviceListUpdate",this.deviceListUpdateListener),a.addListener("deviceUpdate",this.deviceUpdateListener),a.addListener("mediaPermissionUpdate",this.mediaPermissionUpdate),this.speakerDevices=null!=s?[null!==(e=r.find((t=>t.deviceId===s.deviceId)))&&void 0!==e?e:s,...r.filter((t=>t.deviceId!==s.deviceId))]:r}))}testAudio(){var t;null===(t=this.testAudioEl)||void 0===t||t.play()}setDevice(t){var i,e;if(l(this.meeting))return;const a=this.speakerDevices.find((i=>i.deviceId===t));this.currentDevices={speaker:a},null!=a&&(null===(i=this.meeting)||void 0===i||i.self.setDevice(a),null===(e=this.testAudioEl)||void 0===e||e.setSinkId(a.deviceId))}render(){if(!this.meeting)return null;let t=0;return i(e,null,i("audio",{preload:"auto",src:"https://rtk-assets.realtime.cloudflare.com/ui-kit/speaker-test.mp3",ref:t=>this.testAudioEl=t}),i("div",{class:"group "+this.variant,part:"speaker-selection"},this.speakerDevices.length>0&&!l(this.meeting)&&i("div",{class:"container"},i("label",null,"inline"!==this.variant&&this.t("settings.speaker_output"),i("rtk-icon",{icon:this.iconPack.speaker,size:"sm"})),i("div",{class:"row"},i("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.speakerDevices.map((({deviceId:e,label:a})=>{var r;return i("option",{value:e,selected:(null===(r=this.currentDevices.speaker)||void 0===r?void 0:r.deviceId)===e},a||"Speaker "+ ++t)}))))),"full"===this.variant&&i("rtk-button",{variant:"secondary",onClick:()=>this.testAudio()},i("rtk-icon",{icon:this.iconPack.speaker,slot:"start"}),this.t("test"))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};u([c()],k.prototype,"meeting",void 0),u([c()],k.prototype,"states",void 0),u([c()],k.prototype,"iconPack",void 0),u([c()],k.prototype,"t",void 0),k.style=".rtk-select{--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))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.inline.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0\\.5, 2px)}.inline.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline .container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}";var f=function(t,i,e,a){var r,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const b=class{constructor(i){t(this,i),this.onChange=r(this,"rtkChange",4),this.checked=!1,this.readonly=!1,this.disabled=!1,this.iconPack=o,this.t=n(),this.onClick=()=>{this.readonly||this.disabled||(this.checked=!this.checked)},this.onKeyPress=t=>{if(!this.readonly)switch(t.key){case"Enter":case" ":this.checked=!this.checked}}}connectedCallback(){this.checkedChange(this.checked)}checkedChange(t){this.checked=t,this.onChange.emit(t)}render(){return i(e,{key:"af0bcf0202cda77f3ec27510b867ed149c478bdf",role:"switch",tabIndex:this.disabled&&0,"aria-readonly":this.readonly,"aria-checked":this.checked,"aria-disabled":this.disabled,class:{checked:this.checked},onClick:this.onClick,onKeyPress:this.onKeyPress},i("div",{key:"e6f5eeb8acf33e9f058b029423eddc099033053c",class:"switch",part:"switch"}))}static get watchers(){return{checked:[{checkedChange:0}]}}};f([c()],b.prototype,"iconPack",void 0),f([c()],b.prototype,"t",void 0),b.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:inline-flex;height:var(--rtk-space-6, 24px);width:var(--rtk-space-10, 40px);align-items:center;padding:var(--rtk-space-1, 4px);border-radius:9999px;background-color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));cursor:pointer}.switch{box-sizing:border-box;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);background-color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));border-radius:9999px;transition-property:var(--rtk-transition-property, all);transition-duration:200ms}:host(.checked){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host(.checked) .switch{transform:translateX(100%)}:host([readonly]),:host([disabled]){cursor:not-allowed;opacity:0.6}";export{h as rtk_audio_visualizer,g as rtk_microphone_selector,k as rtk_speaker_selector,b as rtk_switch}
1
+ import{r as t,h as i,a as e,e as a,d as r}from"./p-gJCRRBX0.js";import{h as s}from"./p-BWNToYSb.js";import{e as o,i as n}from"./p-BV8JkayY.js";import{S as c}from"./p-9Kg_s9HA.js";import{i as l}from"./p-CAqYddlg.js";import"./p-BFTU3MAI.js";const d=(t,i)=>{if(null==t)return;const e=Math.round(1.5),a=[...Array(3)].map(((t,a)=>{let r=a;return r>e-1&&(r=3-r-1),Math.round((r+1)/(e+1)*i)})),{width:r,height:s}=t,o=t.getContext("2d");let n=2;const c=1*r/a.length,l=c-4;o.clearRect(0,0,r,s),o.fillStyle="rgb(0,0,0,0.0)",o.fillRect(0,0,r,s);const d=getComputedStyle(t).getPropertyValue("color");o.fillStyle=d,o.strokeStyle=d,o.lineCap="round",o.lineWidth=4,o.beginPath();for(const t of a){const i=Math.min(-Math.abs(1.2*t/10*s)+s/2,s/2-2.5),e=Math.max(2*(s/2-i),5);o.moveTo(n+l/2,i),o.lineTo(n+l/2,i+e),n+=c}o.stroke()};var p=function(t,i,e,a){var r,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const h=class{constructor(i){t(this,i),this.variant="bars",this.iconPack=o,this.t=n(),this.hideMuted=!1,this.isScreenShare=!1,this.volume=0}connectedCallback(){this.participantChanged(this.participant)}componentDidLoad(){d(this.visualizer,0)}disconnectedCallback(){var t,i,e;null===(t=this.hark)||void 0===t||t.stop(),this.audioUpdateListener&&(null===(i=this.participant)||void 0===i||i.removeListener("audioUpdate",this.audioUpdateListener)),this.screenShareUpdateListener&&(null===(e=this.participant)||void 0===e||e.removeListener("screenShareUpdate",this.screenShareUpdateListener))}participantChanged(t){null!=t&&(this.audioUpdateListener=({audioEnabled:t,audioTrack:i})=>{var e;if(null===(e=this.hark)||void 0===e||e.stop(),t&&null!=i){this.audioEnabled=!0;const t=new MediaStream;t.addTrack(i),this.calcVolume(t),d(this.visualizer,0)}else this.volume=0,this.audioEnabled=!1},this.isScreenShare?(this.screenShareUpdateListener=({screenShareEnabled:t,screenShareTracks:i})=>{this.audioUpdateListener({audioEnabled:t&&null!=i.audio,audioTrack:i.audio})},this.screenShareUpdateListener({screenShareEnabled:t.screenShareEnabled,screenShareTracks:{audio:t.screenShareTracks.audio,video:t.screenShareTracks.video}}),t.addListener("screenShareUpdate",this.screenShareUpdateListener)):(this.audioUpdateListener(t),t.addListener("audioUpdate",this.audioUpdateListener)))}calcVolume(t){this.hark=s(t,{play:!1,interval:100}),this.hark.on("volume_change",(t=>{const i=this.volume;let e=Math.round(10**(t/115)*10);e<3&&(e=0);let a=Math.round((2*i+e)/3);i!==a&&(this.volume=a,d(this.visualizer,this.volume))}))}render(){return this.hideMuted&&!this.audioEnabled?null:i(e,null,i("div",{class:{audioActivePadding:this.hideMuted&&this.audioEnabled}},i("canvas",{width:"24",height:"24",class:{bars:!0,visible:this.audioEnabled},ref:t=>this.visualizer=t,part:"canvas"}),!this.isScreenShare&&!this.audioEnabled&&i("rtk-icon",{icon:this.iconPack.mic_off,part:"mic-off-icon"})))}static get watchers(){return{participant:[{participantChanged:0}]}}};p([c()],h.prototype,"iconPack",void 0),p([c()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;width:-moz-fit-content;width:fit-content}.audioActivePadding{padding:var(--rtk-space-1, 4px)}canvas,rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){transform:scale(0.9)}canvas{display:none}canvas.visible{display:block}canvas.bars{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}";var v=function(t,i,e,a){var r,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const g=class{constructor(i){t(this,i),this.iconPack=o,this.variant="full",this.t=n(),this.audioinputDevices=[],this.canProduceAudio=!0,this.currentDevices={audio:void 0},this.stageStateListener=()=>{this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getAudioDevices();this.audioinputDevices=t},this.deviceUpdateListener=({device:t})=>{"audioinput"===t.kind&&(this.currentDevices={audio:t})},this.mediaPermissionUpdateListener=async({kind:t,message:i})=>{this.meeting&&"audio"===t&&"ACCEPTED"===i&&(this.audioinputDevices=await this.meeting.self.getAudioDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,e,a,r;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStateListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(a=this.meeting)||void 0===a||a.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(r=this.meeting)||void 0===r||r.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener)}meetingChanged(t){t&&a((async()=>{var i,e;const{self:a,stage:r}=t,s=await t.self.getAudioDevices(),o=null===(i=t.self.getCurrentDevices())||void 0===i?void 0:i.audio;this.currentDevices={audio:o},this.canProduceAudio="ALLOWED"===t.self.permissions.canProduceAudio,null==r||r.addListener("stageStatusUpdate",this.stageStateListener),a.addListener("deviceListUpdate",this.deviceListUpdateListener),a.addListener("deviceUpdate",this.deviceUpdateListener),a.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.audioinputDevices=null!=o?[null!==(e=s.find((t=>t.deviceId===o.deviceId)))&&void 0!==e?e:o,...s.filter((t=>t.deviceId!==o.deviceId))]:s}))}setDevice(t){var i;if(l(this.meeting))return;const e=this.audioinputDevices.find((i=>i.deviceId===t));null!=e&&(this.currentDevices={audio:e},null===(i=this.meeting)||void 0===i||i.self.setDevice(e))}render(){if(!this.meeting)return null;let t=0;return i(e,null,this.canProduceAudio&&i("div",{part:"microphone-selection",class:"group container "+this.variant},i("label",{slot:"label"},"inline"!==this.variant&&this.t("settings.microphone_input"),i("rtk-icon",{icon:this.iconPack.mic_on,size:"sm"})),i("div",{class:"row"},i("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.audioinputDevices.map((({deviceId:e,label:a})=>{var r;return i("option",{value:e,selected:(null===(r=this.currentDevices.audio)||void 0===r?void 0:r.deviceId)===e},a||"Microphone "+ ++t)}))),i("slot",{name:"indicator"}))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};v([c()],g.prototype,"meeting",void 0),v([c()],g.prototype,"iconPack",void 0),v([c()],g.prototype,"t",void 0),g.style=".rtk-select{--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))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.inline.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0\\.5, 2px)}.inline.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline.container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}";var u=function(t,i,e,a){var r,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const k=class{constructor(i){t(this,i),this.variant="full",this.iconPack=o,this.t=n(),this.speakerDevices=[],this.currentDevices={speaker:void 0},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getSpeakerDevices();this.speakerDevices=t},this.deviceUpdateListener=({device:t})=>{"audiooutput"===t.kind&&(this.currentDevices={speaker:t})},this.mediaPermissionUpdate=async({kind:t,message:i})=>{this.meeting&&"audio"===t&&"ACCEPTED"===i&&(this.speakerDevices=await this.meeting.self.getSpeakerDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,e;null===(t=this.meeting)||void 0===t||t.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdate)}meetingChanged(t){t&&a((async()=>{var i,e;const{self:a}=t,r=await t.self.getSpeakerDevices(),s=null===(i=t.self.getCurrentDevices())||void 0===i?void 0:i.speaker;this.currentDevices={speaker:s},a.addListener("deviceListUpdate",this.deviceListUpdateListener),a.addListener("deviceUpdate",this.deviceUpdateListener),a.addListener("mediaPermissionUpdate",this.mediaPermissionUpdate),this.speakerDevices=null!=s?[null!==(e=r.find((t=>t.deviceId===s.deviceId)))&&void 0!==e?e:s,...r.filter((t=>t.deviceId!==s.deviceId))]:r}))}testAudio(){var t;null===(t=this.testAudioEl)||void 0===t||t.play()}setDevice(t){var i,e;if(l(this.meeting))return;const a=this.speakerDevices.find((i=>i.deviceId===t));this.currentDevices={speaker:a},null!=a&&(null===(i=this.meeting)||void 0===i||i.self.setDevice(a),null===(e=this.testAudioEl)||void 0===e||e.setSinkId(a.deviceId))}render(){if(!this.meeting)return null;let t=0;return i(e,null,i("audio",{preload:"auto",src:"https://rtk-assets.realtime.cloudflare.com/ui-kit/speaker-test.mp3",ref:t=>this.testAudioEl=t}),i("div",{class:"group "+this.variant,part:"speaker-selection"},this.speakerDevices.length>0&&!l(this.meeting)&&i("div",{class:"container"},i("label",null,"inline"!==this.variant&&this.t("settings.speaker_output"),i("rtk-icon",{icon:this.iconPack.speaker,size:"sm"})),i("div",{class:"row"},i("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.speakerDevices.map((({deviceId:e,label:a})=>{var r;return i("option",{value:e,selected:(null===(r=this.currentDevices.speaker)||void 0===r?void 0:r.deviceId)===e},a||"Speaker "+ ++t)}))))),"full"===this.variant&&i("rtk-button",{variant:"secondary",onClick:()=>this.testAudio()},i("rtk-icon",{icon:this.iconPack.speaker,slot:"start"}),this.t("test"))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};u([c()],k.prototype,"meeting",void 0),u([c()],k.prototype,"states",void 0),u([c()],k.prototype,"iconPack",void 0),u([c()],k.prototype,"t",void 0),k.style=".rtk-select{--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))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.inline.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0\\.5, 2px)}.inline.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline .container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}";var f=function(t,i,e,a){var r,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(i,e,o):r(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const b=class{constructor(i){t(this,i),this.onChange=r(this,"rtkChange",4),this.checked=!1,this.readonly=!1,this.disabled=!1,this.iconPack=o,this.t=n(),this.onClick=()=>{this.readonly||this.disabled||(this.checked=!this.checked)},this.onKeyPress=t=>{if(!this.readonly)switch(t.key){case"Enter":case" ":this.checked=!this.checked}}}connectedCallback(){this.checkedChange(this.checked)}checkedChange(t){this.checked=t,this.onChange.emit(t)}render(){return i(e,{key:"af0bcf0202cda77f3ec27510b867ed149c478bdf",role:"switch",tabIndex:this.disabled&&0,"aria-readonly":this.readonly,"aria-checked":this.checked,"aria-disabled":this.disabled,class:{checked:this.checked},onClick:this.onClick,onKeyPress:this.onKeyPress},i("div",{key:"e6f5eeb8acf33e9f058b029423eddc099033053c",class:"switch",part:"switch"}))}static get watchers(){return{checked:[{checkedChange:0}]}}};f([c()],b.prototype,"iconPack",void 0),f([c()],b.prototype,"t",void 0),b.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:inline-flex;height:var(--rtk-space-6, 24px);width:var(--rtk-space-10, 40px);align-items:center;padding:var(--rtk-space-1, 4px);border-radius:9999px;background-color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));cursor:pointer}.switch{box-sizing:border-box;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);background-color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));border-radius:9999px;transition-property:var(--rtk-transition-property, all);transition-duration:200ms}:host(.checked){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host(.checked) .switch{transform:translateX(100%)}:host([readonly]),:host([disabled]){cursor:not-allowed;opacity:0.6}";export{h as rtk_audio_visualizer,g as rtk_microphone_selector,k as rtk_speaker_selector,b as rtk_switch}
@@ -1 +1 @@
1
- import{r as t,d as e,h as i,a as s}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-DI7wP4CL.js";import{S as r}from"./p-BmRffDYW.js";var n=function(t,e,i,s){var a,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const c=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return i(s,{key:"921afc41ed4a6019ff882c896855ab455b3edfb7",title:t},i("rtk-controlbar-button",{key:"88d4194fee24f1b96769e06e3a935d516ad543b0",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_settings_toggle}
1
+ import{r as t,d as e,h as s,a as i}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-BV8JkayY.js";import{S as r}from"./p-9Kg_s9HA.js";var n=function(t,e,s,i){var a,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(e,s,r):a(e,s))||r);return o>3&&r&&Object.defineProperty(e,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return s(i,{key:"921afc41ed4a6019ff882c896855ab455b3edfb7",title:t},s("rtk-controlbar-button",{key:"88d4194fee24f1b96769e06e3a935d516ad543b0",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_settings_toggle}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-DI7wP4CL.js";import{d as n}from"./p-D9HGXWKc.js";import{S as r}from"./p-BmRffDYW.js";import"./p-C0vp-Q7v.js";var l=function(t,i,s,e){var a,o=arguments.length,n=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(i,s,n):a(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s,e,a,o;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===i||i.removeListener("pollsUpdate",this.onPollsUpdate),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pollsUpdate",this.updateCanView),null===(o=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var i,s;t&&t.polls&&(this.unreadPollsCount=t.polls.items.length,this.meeting.polls.addListener("pollsUpdate",this.onPollsUpdate),null===(i=null==t?void 0:t.self)||void 0===i||i.permissions.addListener("pollsUpdate",this.updateCanView),this.canViewPolls=n(t),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pollsActive=!0===t.activeSidebar&&"polls"===t.sidebar)}togglePollsTab(){const t=this.states;this.unreadPollsCount=0,this.pollsActive=!((null==t?void 0:t.activeSidebar)&&"polls"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pollsActive,sidebar:this.pollsActive?"polls":void 0,activeMoreMenu:!1})}handlePollsActiveChange(){this.pollsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPolls)return s(e,{"data-hidden":!0});const t=this.t("polls");return s(e,{title:t},0!==this.unreadPollsCount&&!this.pollsActive&&s("div",{class:"unread-count",part:"unread-count"},s("span",null,this.unreadPollsCount<=100?this.unreadPollsCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pollsActive},onClick:()=>this.togglePollsTab(),icon:this.iconPack.poll,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{h as rtk_polls_toggle}
1
+ import{r as t,d as s,h as i,a as e}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-BV8JkayY.js";import{d as n}from"./p-D9HGXWKc.js";import{S as r}from"./p-9Kg_s9HA.js";import"./p-C0vp-Q7v.js";var l=function(t,s,i,e){var a,o=arguments.length,n=o<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,i,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(s,i,n):a(s,i))||n);return o>3&&n&&Object.defineProperty(s,i,n),n};const h=class{constructor(i){t(this,i),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,s,i,e,a,o;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===s||s.removeListener("pollsUpdate",this.onPollsUpdate),null===(e=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===e||e.permissions.removeListener("pollsUpdate",this.updateCanView),null===(o=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var s,i;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=n(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.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(e,{"data-hidden":!0});const t=this.t("polls");return i(e,{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}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{h as rtk_polls_toggle}
@@ -1 +1 @@
1
- import{r as t,d as r,h as o,a as e,g as a}from"./p-gJCRRBX0.js";import{e as i,i as s}from"./p-DI7wP4CL.js";import{S as c}from"./p-BmRffDYW.js";var n=function(t,r,o,e){var a,i=arguments.length,s=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,o,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(r,o,s):a(r,o))||s);return i>3&&s&&Object.defineProperty(r,o,s),s};const d=class{constructor(o){t(this,o),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=s(),this.handleKeyDown=({key:t})=>{"Escape"===t&&this.stateUpdate.emit({activeMoreMenu:!1})},this.handleOnClick=t=>{!t.composedPath().includes(this.host)&&this.states.activeMoreMenu&&this.stateUpdate.emit({activeMoreMenu:!1})},this.toggleMoreMenu=()=>{this.stateUpdate.emit({activeMoreMenu:!this.states.activeMoreMenu})}}connectedCallback(){window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("click",this.handleOnClick)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("click",this.handleOnClick)}render(){const t=this.t("more");return o(e,{key:"bb6bc743afd9c5c2c91f48097f98afc0f58fface",title:t},this.states.activeMoreMenu&&o("div",{key:"ca5d042b877cd1bee68b2563d40764bbc2072df4",class:"more-menu"},o("slot",{key:"9931da3f9e96d792be362c64338d582be2990647",name:"more-elements"})),o("rtk-controlbar-button",{key:"d0d7e0f19a37029c9cdfb8238c0a7af88876b2c0",size:this.size,iconPack:this.iconPack,onClick:t=>{t.stopPropagation(),this.toggleMoreMenu()},icon:this.iconPack.horizontal_dots,label:t,part:"controlbar-button"}),o("slot",{key:"603c0b5f092419c98ed56614a1468b5802c95702",name:"expanded"}))}get host(){return a(this)}};n([c()],d.prototype,"states",void 0),n([c()],d.prototype,"iconPack",void 0),n([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:visible}.more-menu{position:absolute;right:calc(var(--rtk-space-24, 96px) * -1);bottom:var(--rtk-space-16, 64px);z-index:50;margin-bottom:var(--rtk-space-3, 12px);box-sizing:border-box;max-height:60vh;width:var(--rtk-space-64, 256px);overflow:auto;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:column;align-items:stretch}:host([size='sm']) .more-menu{bottom:var(--rtk-space-10, 40px)}.more-menu::-webkit-scrollbar{height:var(--rtk-space-0, 0px);width:var(--rtk-space-1\\.5, 6px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.more-menu::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";export{d as rtk_more_toggle}
1
+ import{r as t,d as r,h as o,a as e,g as a}from"./p-gJCRRBX0.js";import{e as i,i as s}from"./p-BV8JkayY.js";import{S as c}from"./p-9Kg_s9HA.js";var n=function(t,r,o,e){var a,i=arguments.length,s=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,o,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(r,o,s):a(r,o))||s);return i>3&&s&&Object.defineProperty(r,o,s),s};const d=class{constructor(o){t(this,o),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=s(),this.handleKeyDown=({key:t})=>{"Escape"===t&&this.stateUpdate.emit({activeMoreMenu:!1})},this.handleOnClick=t=>{!t.composedPath().includes(this.host)&&this.states.activeMoreMenu&&this.stateUpdate.emit({activeMoreMenu:!1})},this.toggleMoreMenu=()=>{this.stateUpdate.emit({activeMoreMenu:!this.states.activeMoreMenu})}}connectedCallback(){window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("click",this.handleOnClick)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("click",this.handleOnClick)}render(){const t=this.t("more");return o(e,{key:"bb6bc743afd9c5c2c91f48097f98afc0f58fface",title:t},this.states.activeMoreMenu&&o("div",{key:"ca5d042b877cd1bee68b2563d40764bbc2072df4",class:"more-menu"},o("slot",{key:"9931da3f9e96d792be362c64338d582be2990647",name:"more-elements"})),o("rtk-controlbar-button",{key:"d0d7e0f19a37029c9cdfb8238c0a7af88876b2c0",size:this.size,iconPack:this.iconPack,onClick:t=>{t.stopPropagation(),this.toggleMoreMenu()},icon:this.iconPack.horizontal_dots,label:t,part:"controlbar-button"}),o("slot",{key:"603c0b5f092419c98ed56614a1468b5802c95702",name:"expanded"}))}get host(){return a(this)}};n([c()],d.prototype,"states",void 0),n([c()],d.prototype,"iconPack",void 0),n([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:visible}.more-menu{position:absolute;right:calc(var(--rtk-space-24, 96px) * -1);bottom:var(--rtk-space-16, 64px);z-index:50;margin-bottom:var(--rtk-space-3, 12px);box-sizing:border-box;max-height:60vh;width:var(--rtk-space-64, 256px);overflow:auto;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:column;align-items:stretch}:host([size='sm']) .more-menu{bottom:var(--rtk-space-10, 40px)}.more-menu::-webkit-scrollbar{height:var(--rtk-space-0, 0px);width:var(--rtk-space-1\\.5, 6px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.more-menu::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";export{d as rtk_more_toggle}
@@ -1 +1 @@
1
- import{r as t,d as a,h as e,a as i}from"./p-gJCRRBX0.js";import{e as s,i as o}from"./p-DI7wP4CL.js";import{S as r}from"./p-BmRffDYW.js";var n=function(t,a,e,i){var s,o=arguments.length,r=o<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,a,e,i);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(o<3?s(r):o>3?s(a,e,r):s(a,e))||r);return o>3&&r&&Object.defineProperty(a,e,r),r};const c=class{constructor(e){t(this,e),this.stateUpdate=a(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=s,this.t=o(),this.leave=()=>{this.stateUpdate.emit({activeLeaveConfirmation:!0})}}render(){const t=this.t("leave");return e(i,{key:"b81ffe328736f1df741c1ef1f88a128771b5366e",label:t},e("rtk-controlbar-button",{key:"0674e4975571a6cbccca1b1252c33405ab8c1cb4",size:this.size,iconPack:this.iconPack,class:"leave red-icon",onClick:this.leave,icon:this.iconPack.call_end,label:t,variant:this.variant,part:"controlbar-button"}))}};n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_leave_button}
1
+ import{r as t,d as a,h as e,a as i}from"./p-gJCRRBX0.js";import{e as s,i as o}from"./p-BV8JkayY.js";import{S as r}from"./p-9Kg_s9HA.js";var n=function(t,a,e,i){var s,o=arguments.length,r=o<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,a,e,i);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(o<3?s(r):o>3?s(a,e,r):s(a,e))||r);return o>3&&r&&Object.defineProperty(a,e,r),r};const c=class{constructor(e){t(this,e),this.stateUpdate=a(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=s,this.t=o(),this.leave=()=>{this.stateUpdate.emit({activeLeaveConfirmation:!0})}}render(){const t=this.t("leave");return e(i,{key:"b81ffe328736f1df741c1ef1f88a128771b5366e",label:t},e("rtk-controlbar-button",{key:"0674e4975571a6cbccca1b1252c33405ab8c1cb4",size:this.size,iconPack:this.iconPack,class:"leave red-icon",onClick:this.leave,icon:this.iconPack.call_end,label:t,variant:this.variant,part:"controlbar-button"}))}};n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_leave_button}
@@ -1 +1 @@
1
- import{r as t,e as i,h as s,a as e,g as n}from"./p-gJCRRBX0.js";import{R as o}from"./p-B56IYWsZ.js";import{f as a}from"./p-vBD2htwQ.js";import{c as h,i as c,e as r}from"./p-DI7wP4CL.js";import"./p-D9EtbXLL.js";import{s as d}from"./p-C0vp-Q7v.js";import{f as l}from"./p-B91vjjSJ.js";import{S as u}from"./p-BmRffDYW.js";import"./p-CAqYddlg.js";import"./p-Daj_55_i.js";const p=2e3,g=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:p,polls:p,webinar:p,tab_sync:p,recording_started:p,recording_stopped:p},participant_joined_sound_notification_limit:10,participant_chat_message_sound_notification_limit:10});var f=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 h=t.length-1;h>=0;h--)(n=t[h])&&(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 m(t){return Object.keys(t).filter((i=>t[i]))}const v=class{constructor(i){t(this,i),this.permissions=g,this.enabledSounds=m(g.notification_sounds),this.config=h(),this.t=c(),this.iconPack=r,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:p}):"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:p})},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,h,c;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===(h=t.stage)||void 0===h||h.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)),null===(c=t.recording)||void 0===c||c.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,h,c,r,u,p,g;if(clearTimeout(this.disconnectTimeout),i&&this.clearListeners(i),!t)return;const f="LIVESTREAM"===t.meta.viewType;this.audio=new o(t);const{notifications:m,notification_duration:v,notification_sounds:_}=this.permissions;if(this.participantJoinedListener=t=>{m.participant_joined&&this.add({id:`${t.id}-joined`,message:`${a(t.name)} ${this.t("notifications.joined")}`,image:t.picture,duration:v.participant_joined}),_.participant_joined&&this.canPlayParticipantJoinedSound()&&this.audio.play("joined")},this.participantLeftListener=t=>{const{socketState:{state:i}}=this.meeting.meta;m.participant_left&&"connected"!==i&&this.add({id:`${t.id}-left`,message:`${a(t.name)} ${this.t("notifications.left")}`,image:t.picture,duration:v.participant_left}),_.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:`${a(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)}}}),_.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&&(m.chat&&this.add({id:`message-${Math.random().toString(36)}`,icon:this.iconPack.chat,message:`${e.displayName}: ${e.message}`,duration:v.chat}),_.chat&&this.canPlayChatSound()&&this.audio.play("message"))}},this.pollUpdateListener=({polls:t,newPoll:i})=>{!1!==i&&(m.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}),_.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(m.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}`)}}}),_.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}),_.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)},!d(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.toString()))return;const k=t.self.getCurrentDevices();null!=k.speaker&&this.audio.setDevice(k.speaker.deviceId),f?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===(h=t.polls)||void 0===h||h.addListener("pollsUpdate",this.pollUpdateListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),null===(c=t.meta)||void 0===c||c.addListener("activeTabUpdate",this.activeTabUpdateListener),null===(r=t.recording)||void 0===r||r.addListener("recordingUpdate",this.onRecordingUpdate),null===(u=t.stage)||void 0===u||u.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({},g);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=m(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:p,icon:this.iconPack.warning})}sendNotificationListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:p})}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 s=t.detail,e=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==e||e.classList.add("exit"),setTimeout((()=>{i((()=>{this.remove(s)}))}),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 s(e,null,s("div",{onMouseEnter:()=>this.paused=!0,onFocusin:()=>this.paused=!0,onMouseLeave:()=>this.paused=!1,onFocusout:()=>this.paused=!1},this.notifications.map((t=>s("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 n(this)}static get watchers(){return{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}}};f([u()],v.prototype,"meeting",void 0),f([u()],v.prototype,"states",void 0),f([u()],v.prototype,"config",void 0),f([u()],v.prototype,"t",void 0),f([u()],v.prototype,"iconPack",void 0),v.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position: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)}";export{v as rtk_notifications}
1
+ import{r as t,e as i,h as s,a as e,g as n}from"./p-gJCRRBX0.js";import{R as o}from"./p-B56IYWsZ.js";import{f as a}from"./p-vBD2htwQ.js";import{c as h,i as c,e as r}from"./p-BV8JkayY.js";import"./p-D9EtbXLL.js";import{s as d}from"./p-C0vp-Q7v.js";import{f as l}from"./p-CBTF89OQ.js";import{S as u}from"./p-9Kg_s9HA.js";import"./p-CAqYddlg.js";import"./p-Daj_55_i.js";const p=2e3,g=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:p,polls:p,webinar:p,tab_sync:p,recording_started:p,recording_stopped:p},participant_joined_sound_notification_limit:10,participant_chat_message_sound_notification_limit:10});var f=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 h=t.length-1;h>=0;h--)(n=t[h])&&(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 m(t){return Object.keys(t).filter((i=>t[i]))}const v=class{constructor(i){t(this,i),this.permissions=g,this.enabledSounds=m(g.notification_sounds),this.config=h(),this.t=c(),this.iconPack=r,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:p}):"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:p})},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,h,c;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===(h=t.stage)||void 0===h||h.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)),null===(c=t.recording)||void 0===c||c.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,h,c,r,u,p,g;if(clearTimeout(this.disconnectTimeout),i&&this.clearListeners(i),!t)return;const f="LIVESTREAM"===t.meta.viewType;this.audio=new o(t);const{notifications:m,notification_duration:v,notification_sounds:_}=this.permissions;if(this.participantJoinedListener=t=>{m.participant_joined&&this.add({id:`${t.id}-joined`,message:`${a(t.name)} ${this.t("notifications.joined")}`,image:t.picture,duration:v.participant_joined}),_.participant_joined&&this.canPlayParticipantJoinedSound()&&this.audio.play("joined")},this.participantLeftListener=t=>{const{socketState:{state:i}}=this.meeting.meta;m.participant_left&&"connected"!==i&&this.add({id:`${t.id}-left`,message:`${a(t.name)} ${this.t("notifications.left")}`,image:t.picture,duration:v.participant_left}),_.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:`${a(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)}}}),_.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&&(m.chat&&this.add({id:`message-${Math.random().toString(36)}`,icon:this.iconPack.chat,message:`${e.displayName}: ${e.message}`,duration:v.chat}),_.chat&&this.canPlayChatSound()&&this.audio.play("message"))}},this.pollUpdateListener=({polls:t,newPoll:i})=>{!1!==i&&(m.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}),_.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(m.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}`)}}}),_.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}),_.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)},!d(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.toString()))return;const k=t.self.getCurrentDevices();null!=k.speaker&&this.audio.setDevice(k.speaker.deviceId),f?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===(h=t.polls)||void 0===h||h.addListener("pollsUpdate",this.pollUpdateListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),null===(c=t.meta)||void 0===c||c.addListener("activeTabUpdate",this.activeTabUpdateListener),null===(r=t.recording)||void 0===r||r.addListener("recordingUpdate",this.onRecordingUpdate),null===(u=t.stage)||void 0===u||u.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({},g);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=m(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:p,icon:this.iconPack.warning})}sendNotificationListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:p})}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 s=t.detail,e=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==e||e.classList.add("exit"),setTimeout((()=>{i((()=>{this.remove(s)}))}),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 s(e,null,s("div",{onMouseEnter:()=>this.paused=!0,onFocusin:()=>this.paused=!0,onMouseLeave:()=>this.paused=!1,onFocusout:()=>this.paused=!1},this.notifications.map((t=>s("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 n(this)}static get watchers(){return{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}}};f([u()],v.prototype,"meeting",void 0),f([u()],v.prototype,"states",void 0),f([u()],v.prototype,"config",void 0),f([u()],v.prototype,"t",void 0),f([u()],v.prototype,"iconPack",void 0),v.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position: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)}";export{v as rtk_notifications}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as o}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e,i as n}from"./p-DI7wP4CL.js";import{S as a}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";var r=function(t,i,s,o){var e,n=arguments.length,a=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,o);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(a=(n<3?e(a):n>3?e(i,s,a):e(i,s))||a);return n>3&&a&&Object.defineProperty(i,s,a),a};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=n(),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,s;null===(s=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===s||s.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}]}}};r([a()],l.prototype,"meeting",void 0),r([a()],l.prototype,"iconPack",void 0),r([a()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_mute_all_button}
1
+ import{r as t,d as i,h as s,a as o}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e,i as n}from"./p-BV8JkayY.js";import{S as a}from"./p-9Kg_s9HA.js";import"./p-Daj_55_i.js";var r=function(t,i,s,o){var e,n=arguments.length,a=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,o);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(a=(n<3?e(a):n>3?e(i,s,a):e(i,s))||a);return n>3&&a&&Object.defineProperty(i,s,a),a};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=n(),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,s;null===(s=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===s||s.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}]}}};r([a()],l.prototype,"meeting",void 0),r([a()],l.prototype,"iconPack",void 0),r([a()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_mute_all_button}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as o}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import{c as e,e as a,i as n}from"./p-DI7wP4CL.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";var l=function(t,i,s,o){var e,a=arguments.length,n=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,o);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(a<3?e(n):a>3?e(i,s,n):e(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=e(),this.iconPack=a,this.t=n(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,s,o;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(s=t.self.config)||void 0===s?void 0:s.pipMode)&&"LIVESTREAM"!==(null===(o=t.self.config)||void 0===o?void 0:o.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}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"config",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{h as rtk_pip_toggle}
1
+ import{r as t,d as i,h as s,a as o}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import{c as e,e as a,i as n}from"./p-BV8JkayY.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-9Kg_s9HA.js";import"./p-Daj_55_i.js";var l=function(t,i,s,o){var e,a=arguments.length,n=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,o);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(a<3?e(n):a>3?e(i,s,n):e(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=e(),this.iconPack=a,this.t=n(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,s,o;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(s=t.self.config)||void 0===s?void 0:s.pipMode)&&"LIVESTREAM"!==(null===(o=t.self.config)||void 0===o?void 0:o.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}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"config",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{h as rtk_pip_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,h as r,a,g as i,d as e}from"./p-gJCRRBX0.js";import{e as o,i as s,c as n}from"./p-BV8JkayY.js";import{S as c}from"./p-9Kg_s9HA.js";import{f as l,a as p}from"./p-vBD2htwQ.js";var h=function(t,r,a,i){var e,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,a,i);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,a,s):e(r,a))||s);return o>3&&s&&Object.defineProperty(r,a,s),s};const d=class{constructor(r){t(this,r),this.iconPack=o,this.t=s(),this.canDeactivatePlugin=!1}connectedCallback(){this.pluginChanged(this.plugin)}pluginChanged(t){var r,a;null!=t&&(this.canDeactivatePlugin=null!==(a=null===(r=t.permissions)||void 0===r?void 0:r.canDeactivate)&&void 0!==a&&a,this.attachView(t))}attachView(t){const r=t.component;if(r instanceof HTMLElement&&this.host.firstElementChild!==r){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild);this.host.appendChild(r)}}disconnectedCallback(){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild)}render(){return null==this.plugin?null:r(a,null,r("header",{part:"header"},r("div",null,this.plugin.name),this.canDeactivatePlugin&&r("div",null,r("rtk-button",{kind:"icon",onClick:()=>this.plugin.deactivate(),part:"button"},r("rtk-icon",{icon:this.iconPack.dismiss})))),r("div",{class:"view-container"},r("slot",null)))}get host(){return i(this)}static get watchers(){return{plugin:[{pluginChanged:0}]}}};h([c()],d.prototype,"meeting",void 0),h([c()],d.prototype,"iconPack",void 0),h([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}header>div{display:flex;align-items:center}rtk-button{display:flex;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-direction:column;align-items:center;border-radius:9999px}rtk-button rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.view-container{position:relative;height:100%;width:100%;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity))}.view-container ::slotted(*){width:100%;height:100%;display:block}";var v=function(t,r,a,i){var e,o=arguments.length,s=o<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,a,i);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,a,s):e(r,a))||s);return o>3&&s&&Object.defineProperty(r,a,s),s};const g=class{constructor(r){t(this,r),this.tabChange=e(this,"tabChange",7),this.config=n(),this.layout="row",this.iconPack=o,this.t=s(),this.tabs=[]}render(){return r(a,{key:"1c4bce26c4c5baa19cd89be862922267c408ab97"},r("rtk-spotlight-indicator",{key:"496f3634771c4b9c94ff64e23fa5695e2e1532e2",meeting:this.meeting,iconPack:this.iconPack,t:this.t,size:this.size}),this.tabs.map((t=>{var a,i,e,o,s;let n=!1;if(("plugin"===(null===(a=this.activeTab)||void 0===a?void 0:a.type)&&t.plugin&&(null===(i=this.activeTab)||void 0===i?void 0:i.plugin.id)===t.plugin.id||"screenshare"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&t.participant&&(null===(o=this.activeTab)||void 0===o?void 0:o.participant.id)===t.participant.id)&&(n=!0),"screenshare"===t.type){const a=t.participant,i=l(a.name);return r("rtk-button",{title:`${i}'s Screen Share`,key:t.participant.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},r("div",{class:"center col"},r("rtk-icon",{icon:this.iconPack.share_screen_person}),r("span",{class:"name"},a.id===(null===(s=this.meeting)||void 0===s?void 0:s.self.id)?this.t("you"):p(i,6))))}if("plugin"===t.type){const a=t.plugin;return r("rtk-button",{title:a.name,key:a.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},r("div",{class:"center col"},r("img",{src:a.icon,alt:a.name}),r("span",{class:"name"},p(a.name,6))))}})))}};v([c()],g.prototype,"meeting",void 0),v([c()],g.prototype,"states",void 0),v([c()],g.prototype,"config",void 0),v([c()],g.prototype,"iconPack",void 0),v([c()],g.prototype,"t",void 0),g.style=".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column;gap:var(--rtk-space-2, 8px);overflow-y:auto;font-family:var(--rtk-font-family, sans-serif)}rtk-button{z-index:10}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}.tab .name{margin-top:var(--rtk-space-0\\.5, 2px)}:host([size='sm']){flex-direction:column;margin-top:var(--rtk-space-4, 16px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-x:auto}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);text-overflow:clip;min-width:100px;height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}:host([layout='column']){flex-direction:column}:host([layout='column']) .aside{flex:2;max-width:100%;width:100%}@media (orientation: portrait){:host([size='sm']){margin-top:var(--rtk-space-2, 8px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;transition:all 0.3s linear}:host([size='md']){height:var(--rtk-space-24, 96px);width:100%;flex-direction:row;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}}@media (orientation: landscape){:host([size='sm']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host([size='md']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);width:100%;text-overflow:clip;min-width:0px;min-height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-2, 8px);font-size:10px}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}}";export{d as rtk_plugin_main,g as rtk_tab_bar}
@@ -1 +1 @@
1
- import{r as t,h as e,a}from"./p-gJCRRBX0.js";import{a as r,f as s}from"./p-vBD2htwQ.js";import{e as i,i as o}from"./p-DI7wP4CL.js";import{S as n}from"./p-BmRffDYW.js";var c=function(t,e,a,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const l=class{constructor(e){t(this,e),this.isScreenShare=!1,this.variant="default",this.iconPack=i,this.t=o(),this.length=13}sizeChanged(t){this.length="sm"===t?8:13}formatNameTag(t,e){return this.isScreenShare?e?`${this.t("screen")} - ${r(t,this.length-3)} (${this.t("you")})`:`${this.t("screen")} - ${r(t,this.length)}`:e?`${r(t,this.length-3)} (${this.t("you")})`:r(t,this.length)}render(){var t,r,i;const o=s((null===(t=this.participant)||void 0===t?void 0:t.name)||""),n=(null===(r=this.participant)||void 0===r?void 0:r.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id);return e(a,{key:"9040aabe429bea4cfcdc7a6635eeb336f2154961",title:o},e("slot",{key:"f66091f5af1914e91e14415a4758f9bdc15c0c85",name:"start"}),e("span",{key:"241ca42f60b258c5b3c20f423e9ade272f8f5a8b",class:"name"},this.formatNameTag(o,n)),e("slot",{key:"7f6f9b8e5c2ea76042a0ff812458af6ed702b43d",name:"end"}))}static get watchers(){return{size:[{sizeChanged:0}]}}};c([n()],l.prototype,"meeting",void 0),c([n()],l.prototype,"iconPack",void 0),c([n()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}span.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}::slotted(rtk-audio-visualizer[slot='start']){margin-right:var(--rtk-space-1\\.5, 6px)}::slotted(rtk-audio-visualizer[slot='end']){margin-left:var(--rtk-space-1\\.5, 6px)}:host([size='sm']){font-size:12px;--tw-bg-opacity:0.6}:host([variant='text']){background-color:transparent;padding:var(--rtk-space-0, 0px)}";export{l as rtk_name_tag}
1
+ import{r as t,h as e,a}from"./p-gJCRRBX0.js";import{a as r,f as s}from"./p-vBD2htwQ.js";import{e as i,i as o}from"./p-BV8JkayY.js";import{S as n}from"./p-9Kg_s9HA.js";var c=function(t,e,a,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const l=class{constructor(e){t(this,e),this.isScreenShare=!1,this.variant="default",this.iconPack=i,this.t=o(),this.length=13}sizeChanged(t){this.length="sm"===t?8:13}formatNameTag(t,e){return this.isScreenShare?e?`${this.t("screen")} - ${r(t,this.length-3)} (${this.t("you")})`:`${this.t("screen")} - ${r(t,this.length)}`:e?`${r(t,this.length-3)} (${this.t("you")})`:r(t,this.length)}render(){var t,r,i;const o=s((null===(t=this.participant)||void 0===t?void 0:t.name)||""),n=(null===(r=this.participant)||void 0===r?void 0:r.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id);return e(a,{key:"9040aabe429bea4cfcdc7a6635eeb336f2154961",title:o},e("slot",{key:"f66091f5af1914e91e14415a4758f9bdc15c0c85",name:"start"}),e("span",{key:"241ca42f60b258c5b3c20f423e9ade272f8f5a8b",class:"name"},this.formatNameTag(o,n)),e("slot",{key:"7f6f9b8e5c2ea76042a0ff812458af6ed702b43d",name:"end"}))}static get watchers(){return{size:[{sizeChanged:0}]}}};c([n()],l.prototype,"meeting",void 0),c([n()],l.prototype,"iconPack",void 0),c([n()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}span.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}::slotted(rtk-audio-visualizer[slot='start']){margin-right:var(--rtk-space-1\\.5, 6px)}::slotted(rtk-audio-visualizer[slot='end']){margin-left:var(--rtk-space-1\\.5, 6px)}:host([size='sm']){font-size:12px;--tw-bg-opacity:0.6}:host([variant='text']){background-color:transparent;padding:var(--rtk-space-0, 0px)}";export{l as rtk_name_tag}
@@ -1 +1 @@
1
- import{r as t,d as a,h as e,a as r}from"./p-gJCRRBX0.js";import{S as o}from"./p-BmRffDYW.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as s}from"./p-DI7wP4CL.js";import"./p-Daj_55_i.js";const n=class{constructor(e){t(this,e),this.tabChange=a(this,"tabChange",7),this.sidebarClose=a(this,"sidebarClose",7),this.view="sidebar",this.tabs=[],this.hideHeader=!1,this.hideCloseAction=!1,this.iconPack=i,this.focusCloseButton=!0,this.t=s(),this.onClose=()=>{var t;this.sidebarClose.emit(),document.activeElement instanceof HTMLElement&&(null===(t=document.activeElement.tagName)||void 0===t?void 0:t.includes("RTK-"))&&document.activeElement.blur instanceof Function&&document.activeElement.blur()}}componentDidLoad(){this.keydownListener=t=>{"Escape"===t.key&&this.onClose()},this.hostEl.addEventListener("keydown",this.keydownListener),this.handleFocusCloseButton()}handleFocusCloseButton(){"chat"===this.currentTab||this.hideCloseAction||this.closeButton.focus()}disconnectedCallback(){this.hostEl.removeEventListener("keydown",this.keydownListener)}render(){const t="full-screen"===this.view,a=this.tabs.find((t=>t.id===this.currentTab));return e(r,{key:"850aa92eeb61bf2729b12e30be8a43a9ff3a1acf",ref:t=>this.hostEl=t,class:this.view},!this.hideCloseAction&&e("rtk-button",{key:"f52d00bc36c398403eb7ac8ab5625f3cecd5da4f",ref:t=>this.closeButton=t,variant:"ghost",kind:"icon",class:"close",onClick:this.onClose,"aria-label":this.t("close")},e("rtk-icon",{key:"4d970f5a9f02839dc297ccb2b7c85806025f7ef1",icon:this.iconPack.dismiss})),a&&!this.hideHeader&&e("header",{key:"8c1ae2f6e4a87e2fc66381e70c7053b1b4a4d2b2",class:"main-header"},e("h3",{key:"6f9faffac3acd82cd4645189459212026b10bf1d"},a.name),e("slot",{key:"20b3cff89b8805600eafbce17aabc4880e473a56",name:"pinned-state"})),t&&e("header",{key:"86bf499aadbe7b57868a135a35100cc1e430520e",class:"mobile-tabs"},this.tabs.map((t=>e("button",{onClick:()=>{this.tabChange.emit(t.id)},class:{active:this.currentTab===t.id}},t.name)))),e("slot",{key:"d19ec28aa918a2bfd9556c64ef758b2faf6a195d",name:this.currentTab}))}static get watchers(){return{currentTab:[{handleFocusCloseButton:0}]}}};(function(t,a,e,r){var o,i=arguments.length,s=i<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,a,e,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(i<3?o(s):i>3?o(a,e,s):o(a,e))||s);i>3&&s&&Object.defineProperty(a,e,s)})([o()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;height:100%;width:100%;font-family:var(--rtk-font-family, sans-serif);z-index:50;display:flex;flex-direction:column;container-type:size;container-name:sidebarui}@container sidebarui (height < 370px){.main-header{height:var(--rtk-space-8, 32px) !important}.close{top:var(--rtk-space-0\\.5, 2px) !important;left:var(--rtk-space-0, 0px) !important;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.6)}}:host([view='sidebar']){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host([view='full-screen']){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);max-width:100%;border:none}::slotted(*){flex-grow:1}.close{position:absolute;top:var(--rtk-space-2, 8px);left:var(--rtk-space-2, 8px);z-index:10}.main-header{position:relative;display:flex;height:var(--rtk-space-12, 48px);place-items:center;justify-content:center}.main-header,.mobile-tabs{flex-shrink:0}.mobile-tabs{display:flex;place-items:center;justify-content:space-evenly;border-bottom:1px solid rgb(var(--rtk-colors-background-700, 44 44 44))}.mobile-tabs button{margin:var(--rtk-space-0, 0px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;padding:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));height:var(--rtk-space-10, 40px);cursor:pointer;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);font-weight:500;border-bottom:1px solid transparent}.mobile-tabs button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-border-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}header h3{font-size:14px;font-weight:500}@media only screen and (max-device-height: 480px) and (orientation: landscape){.main-header{display:none !important}}.tab-participant-count-badge{display:inline-block;padding:2px 5px;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.tab-participant-count-badge:not(.selected-tab){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.tab-participant-count-badge.requests-pending{background-color:rgba(var(--rtk-colors-danger))}";export{n as rtk_sidebar_ui}
1
+ import{r as t,d as a,h as e,a as r}from"./p-gJCRRBX0.js";import{S as o}from"./p-9Kg_s9HA.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as s}from"./p-BV8JkayY.js";import"./p-Daj_55_i.js";const n=class{constructor(e){t(this,e),this.tabChange=a(this,"tabChange",7),this.sidebarClose=a(this,"sidebarClose",7),this.view="sidebar",this.tabs=[],this.hideHeader=!1,this.hideCloseAction=!1,this.iconPack=i,this.focusCloseButton=!0,this.t=s(),this.onClose=()=>{var t;this.sidebarClose.emit(),document.activeElement instanceof HTMLElement&&(null===(t=document.activeElement.tagName)||void 0===t?void 0:t.includes("RTK-"))&&document.activeElement.blur instanceof Function&&document.activeElement.blur()}}componentDidLoad(){this.keydownListener=t=>{"Escape"===t.key&&this.onClose()},this.hostEl.addEventListener("keydown",this.keydownListener),this.handleFocusCloseButton()}handleFocusCloseButton(){"chat"===this.currentTab||this.hideCloseAction||this.closeButton.focus()}disconnectedCallback(){this.hostEl.removeEventListener("keydown",this.keydownListener)}render(){const t="full-screen"===this.view,a=this.tabs.find((t=>t.id===this.currentTab));return e(r,{key:"850aa92eeb61bf2729b12e30be8a43a9ff3a1acf",ref:t=>this.hostEl=t,class:this.view},!this.hideCloseAction&&e("rtk-button",{key:"f52d00bc36c398403eb7ac8ab5625f3cecd5da4f",ref:t=>this.closeButton=t,variant:"ghost",kind:"icon",class:"close",onClick:this.onClose,"aria-label":this.t("close")},e("rtk-icon",{key:"4d970f5a9f02839dc297ccb2b7c85806025f7ef1",icon:this.iconPack.dismiss})),a&&!this.hideHeader&&e("header",{key:"8c1ae2f6e4a87e2fc66381e70c7053b1b4a4d2b2",class:"main-header"},e("h3",{key:"6f9faffac3acd82cd4645189459212026b10bf1d"},a.name),e("slot",{key:"20b3cff89b8805600eafbce17aabc4880e473a56",name:"pinned-state"})),t&&e("header",{key:"86bf499aadbe7b57868a135a35100cc1e430520e",class:"mobile-tabs"},this.tabs.map((t=>e("button",{onClick:()=>{this.tabChange.emit(t.id)},class:{active:this.currentTab===t.id}},t.name)))),e("slot",{key:"d19ec28aa918a2bfd9556c64ef758b2faf6a195d",name:this.currentTab}))}static get watchers(){return{currentTab:[{handleFocusCloseButton:0}]}}};(function(t,a,e,r){var o,i=arguments.length,s=i<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,a,e,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(i<3?o(s):i>3?o(a,e,s):o(a,e))||s);i>3&&s&&Object.defineProperty(a,e,s)})([o()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;height:100%;width:100%;font-family:var(--rtk-font-family, sans-serif);z-index:50;display:flex;flex-direction:column;container-type:size;container-name:sidebarui}@container sidebarui (height < 370px){.main-header{height:var(--rtk-space-8, 32px) !important}.close{top:var(--rtk-space-0\\.5, 2px) !important;left:var(--rtk-space-0, 0px) !important;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.6)}}:host([view='sidebar']){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host([view='full-screen']){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);max-width:100%;border:none}::slotted(*){flex-grow:1}.close{position:absolute;top:var(--rtk-space-2, 8px);left:var(--rtk-space-2, 8px);z-index:10}.main-header{position:relative;display:flex;height:var(--rtk-space-12, 48px);place-items:center;justify-content:center}.main-header,.mobile-tabs{flex-shrink:0}.mobile-tabs{display:flex;place-items:center;justify-content:space-evenly;border-bottom:1px solid rgb(var(--rtk-colors-background-700, 44 44 44))}.mobile-tabs button{margin:var(--rtk-space-0, 0px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;padding:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));height:var(--rtk-space-10, 40px);cursor:pointer;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);font-weight:500;border-bottom:1px solid transparent}.mobile-tabs button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-border-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}header h3{font-size:14px;font-weight:500}@media only screen and (max-device-height: 480px) and (orientation: landscape){.main-header{display:none !important}}.tab-participant-count-badge{display:inline-block;padding:2px 5px;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.tab-participant-count-badge:not(.selected-tab){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.tab-participant-count-badge.requests-pending{background-color:rgba(var(--rtk-colors-danger))}";export{n as rtk_sidebar_ui}
@@ -1 +1 @@
1
- import{r as t,h as i,a as r}from"./p-gJCRRBX0.js";import{c as e,e as a,i as o}from"./p-DI7wP4CL.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{S as s}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";var n=function(t,i,r,e){var a,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(i,r,s):a(i,r))||s);return o>3&&s&&Object.defineProperty(i,r,s),s};const d=class{constructor(i){t(this,i),this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=e(),this.variant="solid",this.iconPack=a,this.t=o(),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,r=null===(t=null==i?void 0:i.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof r)return r}return!1}render(){var t,e,a,o;return i(r,{key:"28dd3343464f9c18cae6161f8ad56005b748a637"},i("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===(e=this.config)||void 0===e?void 0:e.config)||void 0===a?void 0:a.videoFit)&&void 0!==o?o:"cover"]:!0},autoPlay:!0,playsInline:!0,muted:!0}),i("slot",{key:"c5da0b57d92652e54ef88cedcc269ccc720d1054"}))}static get watchers(){return{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}}};n([s()],d.prototype,"states",void 0),n([s()],d.prototype,"config",void 0),n([s()],d.prototype,"iconPack",void 0),n([s()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{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)}}";export{d as rtk_participant_setup}
1
+ import{r as t,h as i,a as r}from"./p-gJCRRBX0.js";import{c as e,e as a,i as o}from"./p-BV8JkayY.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{S as s}from"./p-9Kg_s9HA.js";import"./p-Daj_55_i.js";var n=function(t,i,r,e){var a,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(i,r,s):a(i,r))||s);return o>3&&s&&Object.defineProperty(i,r,s),s};const d=class{constructor(i){t(this,i),this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=e(),this.variant="solid",this.iconPack=a,this.t=o(),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,r=null===(t=null==i?void 0:i.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof r)return r}return!1}render(){var t,e,a,o;return i(r,{key:"28dd3343464f9c18cae6161f8ad56005b748a637"},i("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===(e=this.config)||void 0===e?void 0:e.config)||void 0===a?void 0:a.videoFit)&&void 0!==o?o:"cover"]:!0},autoPlay:!0,playsInline:!0,muted:!0}),i("slot",{key:"c5da0b57d92652e54ef88cedcc269ccc720d1054"}))}static get watchers(){return{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}}};n([s()],d.prototype,"states",void 0),n([s()],d.prototype,"config",void 0),n([s()],d.prototype,"iconPack",void 0),n([s()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{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)}}";export{d as rtk_participant_setup}
@@ -1 +1 @@
1
- import{r as o,h as t,a as r}from"./p-gJCRRBX0.js";import{S as a}from"./p-BmRffDYW.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e}from"./p-DI7wP4CL.js";import"./p-Daj_55_i.js";const i=class{constructor(t){o(this,t),this.iconPack=e}render(){return t(r,{key:"ff8e44d0644f3a81e71ec3595f109c396effd80e"},t("div",{key:"9b07fcd50ec2050f65008ad447b42fe0a2431fba",class:"tooltip-container"},t("rtk-icon",{key:"09393761a1ee443f54d08034c451397adf05c0a2",icon:this.iconPack.info,size:"sm"}),t("div",{key:"edcc65636e3888864a4f619b34929a494a748b43",class:"tooltip"},t("slot",{key:"298db1c52802862d8d1da4a3b9cfc33e3695163d",name:"tootlip-text"}))))}};(function(o,t,r,a){var e,i=arguments.length,p=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(o,t,r,a);else for(var c=o.length-1;c>=0;c--)(e=o[c])&&(p=(i<3?e(p):i>3?e(t,r,p):e(t,r))||p);i>3&&p&&Object.defineProperty(t,r,p)})([a()],i.prototype,"iconPack",void 0),i.style=":host{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer}.tooltip-container{position:relative;display:flex;flex-direction:row;align-items:center}.tooltip-container rtk-icon{cursor:pointer;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.tooltip-container rtk-icon:hover+.tooltip{display:flex !important}.tooltip{position:absolute;margin-left:var(--rtk-space-2, 8px);display:none !important;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));z-index:50;display:flex;min-width:var(--rtk-space-60, 240px);flex-direction:column;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);left:14px}";export{i as rtk_information_tooltip}
1
+ import{r as o,h as t,a as r}from"./p-gJCRRBX0.js";import{S as a}from"./p-9Kg_s9HA.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e}from"./p-BV8JkayY.js";import"./p-Daj_55_i.js";const i=class{constructor(t){o(this,t),this.iconPack=e}render(){return t(r,{key:"ff8e44d0644f3a81e71ec3595f109c396effd80e"},t("div",{key:"9b07fcd50ec2050f65008ad447b42fe0a2431fba",class:"tooltip-container"},t("rtk-icon",{key:"09393761a1ee443f54d08034c451397adf05c0a2",icon:this.iconPack.info,size:"sm"}),t("div",{key:"edcc65636e3888864a4f619b34929a494a748b43",class:"tooltip"},t("slot",{key:"298db1c52802862d8d1da4a3b9cfc33e3695163d",name:"tootlip-text"}))))}};(function(o,t,r,a){var e,i=arguments.length,p=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(o,t,r,a);else for(var c=o.length-1;c>=0;c--)(e=o[c])&&(p=(i<3?e(p):i>3?e(t,r,p):e(t,r))||p);i>3&&p&&Object.defineProperty(t,r,p)})([a()],i.prototype,"iconPack",void 0),i.style=":host{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer}.tooltip-container{position:relative;display:flex;flex-direction:row;align-items:center}.tooltip-container rtk-icon{cursor:pointer;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.tooltip-container rtk-icon:hover+.tooltip{display:flex !important}.tooltip{position:absolute;margin-left:var(--rtk-space-2, 8px);display:none !important;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));z-index:50;display:flex;min-width:var(--rtk-space-60, 240px);flex-direction:column;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);left:14px}";export{i as rtk_information_tooltip}
@@ -1 +1 @@
1
- import{r as i,h as t,a as s,g as e}from"./p-gJCRRBX0.js";import{c as d,e as h,i as a}from"./p-DI7wP4CL.js";import{d as r}from"./p-CmmyVCoN.js";import{R as o}from"./p-CTFO-5XH.js";import{S as m}from"./p-BmRffDYW.js";var c=function(i,t,s,e){var d,h=arguments.length,a=h<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(i,t,s,e);else for(var r=i.length-1;r>=0;r--)(d=i[r])&&(a=(h<3?d(a):h>3?d(t,s,a):d(t,s))||a);return h>3&&a&&Object.defineProperty(t,s,a),a};const f=class{constructor(t){i(this,t),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=d(),this.iconPack=h,this.t=a(),this.gridSize=r,this.getAdaptiveSize=i=>"sm"===this.size||i>3||"md"===this.size?"sm":"md"}render(){const i={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},e=this.participants.filter((i=>this.pinnedParticipants.some((t=>t.id!=i.id))));return t(s,{key:"61c335032f64054d173a44639ab41ead131d0cdf"},t("main",{key:"6dd23dc9d8b600d1747213396968b9601e04f83e",part:"main"},t(o,{key:"efa5e5be367c3423e7fdd280fd9ec66ce5d50134",element:"rtk-simple-grid",defaults:i,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),e.length>0&&t("aside",{key:"183ea410b2afb776dec7fc9fd2dbcd33d1ae285a",part:"aside",class:this.gridSize.spotlight?`grid-width-${this.gridSize.spotlight}`:"grid-width-md"},t(o,{key:"cb763ff9d4c6358f63e974d1984de3c67ffee3b5",element:"rtk-simple-grid",defaults:i,props:{part:"aside-grid",participants:e,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(e.length)}})))}get host(){return e(this)}};c([m()],f.prototype,"meeting",void 0),c([m()],f.prototype,"states",void 0),c([m()],f.prototype,"config",void 0),c([m()],f.prototype,"iconPack",void 0),c([m()],f.prototype,"t",void 0),f.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}";export{f as rtk_spotlight_grid}
1
+ import{r as i,h as t,a as s,g as e}from"./p-gJCRRBX0.js";import{c as d,e as h,i as a}from"./p-BV8JkayY.js";import{d as r}from"./p-CmmyVCoN.js";import{R as o}from"./p-CTFO-5XH.js";import{S as m}from"./p-9Kg_s9HA.js";var c=function(i,t,s,e){var d,h=arguments.length,a=h<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(i,t,s,e);else for(var r=i.length-1;r>=0;r--)(d=i[r])&&(a=(h<3?d(a):h>3?d(t,s,a):d(t,s))||a);return h>3&&a&&Object.defineProperty(t,s,a),a};const n=class{constructor(t){i(this,t),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=d(),this.iconPack=h,this.t=a(),this.gridSize=r,this.getAdaptiveSize=i=>"sm"===this.size||i>3||"md"===this.size?"sm":"md"}render(){const i={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},e=this.participants.filter((i=>this.pinnedParticipants.some((t=>t.id!=i.id))));return t(s,{key:"61c335032f64054d173a44639ab41ead131d0cdf"},t("main",{key:"6dd23dc9d8b600d1747213396968b9601e04f83e",part:"main"},t(o,{key:"efa5e5be367c3423e7fdd280fd9ec66ce5d50134",element:"rtk-simple-grid",defaults:i,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),e.length>0&&t("aside",{key:"183ea410b2afb776dec7fc9fd2dbcd33d1ae285a",part:"aside",class:this.gridSize.spotlight?`grid-width-${this.gridSize.spotlight}`:"grid-width-md"},t(o,{key:"cb763ff9d4c6358f63e974d1984de3c67ffee3b5",element:"rtk-simple-grid",defaults:i,props:{part:"aside-grid",participants:e,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(e.length)}})))}get host(){return e(this)}};c([m()],n.prototype,"meeting",void 0),c([m()],n.prototype,"states",void 0),c([m()],n.prototype,"config",void 0),c([m()],n.prototype,"iconPack",void 0),c([m()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}";export{n as rtk_spotlight_grid}
@@ -1 +1 @@
1
- import{r as t,h as r,a as o}from"./p-gJCRRBX0.js";import{e as a}from"./p-DI7wP4CL.js";import{S as i}from"./p-BmRffDYW.js";const e=class{constructor(r){t(this,r),this.variant="button",this.showWarning=!1,this.disabled=!1,this.iconPack=a,this.brandIcon=!1}render(){return r(o,{key:"90cbc7f04dd7975ef7331aace992aeadd1fdba52"},r("button",{key:"36ea971cf7d69742346dd6a65b41ef57def59a40","aria-label":this.label,part:"button"},this.isLoading?r("rtk-spinner",{id:"icon",part:"spinner",iconPack:this.iconPack}):r("rtk-icon",{id:"icon",icon:this.icon,tabIndex:-1,"aria-hidden":!0,part:"icon"}),r("span",{key:"83dda2888c01eec119c1cc21921a682cc2111307",class:"label",part:"label"},this.label),this.showWarning&&r("rtk-icon",{key:"abddcd4d3c81f7ba09cc4595c98cb55c76d678ad",id:"warning-indicator",icon:this.iconPack.warning,part:"warning-indicator"})))}static get delegatesFocus(){return!0}};(function(t,r,o,a){var i,e=arguments.length,n=e<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,o,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(n=(e<3?i(n):e>3?i(r,o,n):i(r,o))||n);e>3&&n&&Object.defineProperty(r,o,n)})([i()],e.prototype,"iconPack",void 0),e.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{--background-color:var( --rtk-controlbar-button-background-color, rgb(var(--rtk-colors-background-1000, 8 8 8)) );--icon-size:var(--rtk-controlbar-button-icon-size, var(--rtk-space-7, 28px));position:relative;box-sizing:border-box;display:inline-flex;height:100%;width:auto;min-width:var(--rtk-space-20, 80px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--background-color)}button{padding:var(--rtk-space-1, 4px)}:host(.red-icon) #icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([disabled]){color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}button{box-sizing:border-box;display:inline-flex;height:100%;width:100%;flex:1 1 0%;flex-direction:column;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-1, 4px);align-items:center;justify-content:center;cursor:pointer;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:inherit;outline-offset:-2px;border:var(--rtk-border-width-md, 2px) solid transparent}.label{text-align:center;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#warning-indicator{position:absolute;top:var(--rtk-space-1, 4px);right:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}:host([size='sm']) #warning-indicator{right:var(--rtk-space-0, 0px);top:var(--rtk-space-0, 0px);height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host(:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}#icon{width:var(--icon-size);height:var(--icon-size)}:host(.leave:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-danger, 255 45 45))}:host(.active) button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-brand-400, 53 110 253))}button:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}:host(.active-livestream){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']){min-width:var(--rtk-space-14, 56px)}:host([size='sm']) .label{display:none}:host([variant='horizontal']){width:100%}:host([variant='horizontal']) button{border-radius:7px;height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-5, 20px);padding-right:var(--rtk-space-5, 20px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);flex-direction:row;justify-content:flex-start;gap:var(--rtk-space-3, 12px)}:host([variant='horizontal']) #icon{width:var(--rtk-space-6, 24px)}:host([variant='horizontal']) .label{display:block;font-size:14px;line-height:1.25rem}:host([variant='horizontal']) #warning-indicator{right:auto;left:var(--rtk-space-4, 16px)}:host([brand-icon]) rtk-icon#icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host .label{display:none}:slotted(rtk-icon){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}}";export{e as rtk_controlbar_button}
1
+ import{r as t,h as r,a as o}from"./p-gJCRRBX0.js";import{e as a}from"./p-BV8JkayY.js";import{S as i}from"./p-9Kg_s9HA.js";const e=class{constructor(r){t(this,r),this.variant="button",this.showWarning=!1,this.disabled=!1,this.iconPack=a,this.brandIcon=!1}render(){return r(o,{key:"90cbc7f04dd7975ef7331aace992aeadd1fdba52"},r("button",{key:"36ea971cf7d69742346dd6a65b41ef57def59a40","aria-label":this.label,part:"button"},this.isLoading?r("rtk-spinner",{id:"icon",part:"spinner",iconPack:this.iconPack}):r("rtk-icon",{id:"icon",icon:this.icon,tabIndex:-1,"aria-hidden":!0,part:"icon"}),r("span",{key:"83dda2888c01eec119c1cc21921a682cc2111307",class:"label",part:"label"},this.label),this.showWarning&&r("rtk-icon",{key:"abddcd4d3c81f7ba09cc4595c98cb55c76d678ad",id:"warning-indicator",icon:this.iconPack.warning,part:"warning-indicator"})))}static get delegatesFocus(){return!0}};(function(t,r,o,a){var i,e=arguments.length,n=e<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,o,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(n=(e<3?i(n):e>3?i(r,o,n):i(r,o))||n);e>3&&n&&Object.defineProperty(r,o,n)})([i()],e.prototype,"iconPack",void 0),e.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{--background-color:var( --rtk-controlbar-button-background-color, rgb(var(--rtk-colors-background-1000, 8 8 8)) );--icon-size:var(--rtk-controlbar-button-icon-size, var(--rtk-space-7, 28px));position:relative;box-sizing:border-box;display:inline-flex;height:100%;width:auto;min-width:var(--rtk-space-20, 80px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--background-color)}button{padding:var(--rtk-space-1, 4px)}:host(.red-icon) #icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([disabled]){color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}button{box-sizing:border-box;display:inline-flex;height:100%;width:100%;flex:1 1 0%;flex-direction:column;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-1, 4px);align-items:center;justify-content:center;cursor:pointer;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:inherit;outline-offset:-2px;border:var(--rtk-border-width-md, 2px) solid transparent}.label{text-align:center;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#warning-indicator{position:absolute;top:var(--rtk-space-1, 4px);right:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}:host([size='sm']) #warning-indicator{right:var(--rtk-space-0, 0px);top:var(--rtk-space-0, 0px);height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host(:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}#icon{width:var(--icon-size);height:var(--icon-size)}:host(.leave:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-danger, 255 45 45))}:host(.active) button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-brand-400, 53 110 253))}button:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}:host(.active-livestream){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']){min-width:var(--rtk-space-14, 56px)}:host([size='sm']) .label{display:none}:host([variant='horizontal']){width:100%}:host([variant='horizontal']) button{border-radius:7px;height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-5, 20px);padding-right:var(--rtk-space-5, 20px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);flex-direction:row;justify-content:flex-start;gap:var(--rtk-space-3, 12px)}:host([variant='horizontal']) #icon{width:var(--rtk-space-6, 24px)}:host([variant='horizontal']) .label{display:block;font-size:14px;line-height:1.25rem}:host([variant='horizontal']) #warning-indicator{right:auto;left:var(--rtk-space-4, 16px)}:host([brand-icon]) rtk-icon#icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host .label{display:none}:slotted(rtk-icon){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}}";export{e as rtk_controlbar_button}
@@ -1 +1 @@
1
- import{r as t,h as r,a}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as o}from"./p-DI7wP4CL.js";import{h as s}from"./p-BWNToYSb.js";import{S as e}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";import"./p-BFTU3MAI.js";var c=function(t,r,a,i){var o,s=arguments.length,e=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,a,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(e=(s<3?o(e):s>3?o(r,a,e):o(r,a))||e);return s>3&&e&&Object.defineProperty(r,a,e),e};const n=class{constructor(r){t(this,r),this.iconPack=i,this.t=o(),this.audioEnabled=!1,this.volume=0,this.onAudioUpdate=({audioEnabled:t,audioTrack:r})=>{var a;if(this.participant)if(null===(a=this.hark)||void 0===a||a.stop(),t&&r){const t=new MediaStream;t.addTrack(r),this.calcVolume(t),this.audioEnabled=!0}else this.volume=0,this.audioEnabled=!1}}connectedCallback(){this.participantChanged(this.participant)}disconnectedCallback(){var t,r;null===(t=this.hark)||void 0===t||t.stop(),null===(r=this.participant)||void 0===r||r.removeListener("audioUpdate",this.onAudioUpdate)}participantChanged(t){t&&(this.audioEnabled=t.audioEnabled,t.addListener("audioUpdate",this.onAudioUpdate))}calcVolume(t){this.hark=s(t,{play:!1,interval:100}),this.hark.on("volume_change",(t=>{const r=this.volume;let a=Math.round(10**(t/115)*10);a<3&&(a=0);let i=Math.round((2*r+a)/3);r!==i&&(this.volume=i)}))}render(){if(!this.meeting)return null;const t={meeting:this.meeting,size:this.size,config:this.config,states:this.states,iconPack:this.iconPack,t:this.t};let o="bar-0";return o=this.volume>5?"bar-5":this.volume<0?"bar-0":"bar-"+this.volume,r(a,null,r("div",{class:{"avatar-ctr":!0,speaking:this.audioEnabled,[o]:!0}},r("rtk-avatar",{participant:this.participant,size:this.size},!this.audioEnabled&&r("div",{class:"mic-icon"},r("rtk-icon",{icon:i.mic_off})))),r("rtk-name-tag",Object.assign({variant:"text",participant:this.participant},t)),r("slot",null))}static get watchers(){return{participant:[{participantChanged:0}]}}};c([e()],n.prototype,"meeting",void 0),c([e()],n.prototype,"config",void 0),c([e()],n.prototype,"states",void 0),c([e()],n.prototype,"iconPack",void 0),c([e()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:flex;flex-direction:column}.avatar-ctr{box-sizing:border-box;width:100%;flex:1 1 0%;padding:var(--rtk-space-1\\.5, 6px);border:2px solid transparent;border-radius:calc(var(--rtk-border-radius-xl, 40px) + var(--rtk-space-1\\.5, 6px))}.avatar-ctr.speaking{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.bar-0{box-shadow:none}.bar-1{box-shadow:0 0 4px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-2{box-shadow:0 0 8px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-3{box-shadow:0 0 16px 1px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-4{box-shadow:0 0 20px 3px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-5{box-shadow:0 0 24px 6px rgb(var(--rtk-colors-brand-500, 33 96 253))}rtk-avatar{aspect-ratio:1 / 1;height:100%;width:100%;position:relative;border-radius:var(--rtk-border-radius-xl, 40px)}rtk-name-tag{display:block;height:var(--rtk-space-10, 40px);width:100%;text-align:center;line-height:2.5rem}:host([size='sm']) .avatar-ctr{border-radius:calc(var(--rtk-border-radius-lg, 12px) + var(--rtk-space-1\\.5, 6px))}:host([size='sm']) rtk-name-tag{height:var(--rtk-space-7, 28px);line-height:1.75rem}:host([size='sm']) rtk-avatar{border-radius:var(--rtk-border-radius-lg, 12px)}.mic-icon{position:absolute;bottom:calc(var(--rtk-space-1, 4px) * -1);right:calc(var(--rtk-space-1, 4px) * -1);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.mic-icon rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) .mic-icon rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='md']) .mic-icon rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}";export{n as rtk_audio_tile}
1
+ import{r as t,h as r,a}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as o}from"./p-BV8JkayY.js";import{h as s}from"./p-BWNToYSb.js";import{S as e}from"./p-9Kg_s9HA.js";import"./p-Daj_55_i.js";import"./p-BFTU3MAI.js";var c=function(t,r,a,i){var o,s=arguments.length,e=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,a,i);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(e=(s<3?o(e):s>3?o(r,a,e):o(r,a))||e);return s>3&&e&&Object.defineProperty(r,a,e),e};const n=class{constructor(r){t(this,r),this.iconPack=i,this.t=o(),this.audioEnabled=!1,this.volume=0,this.onAudioUpdate=({audioEnabled:t,audioTrack:r})=>{var a;if(this.participant)if(null===(a=this.hark)||void 0===a||a.stop(),t&&r){const t=new MediaStream;t.addTrack(r),this.calcVolume(t),this.audioEnabled=!0}else this.volume=0,this.audioEnabled=!1}}connectedCallback(){this.participantChanged(this.participant)}disconnectedCallback(){var t,r;null===(t=this.hark)||void 0===t||t.stop(),null===(r=this.participant)||void 0===r||r.removeListener("audioUpdate",this.onAudioUpdate)}participantChanged(t){t&&(this.audioEnabled=t.audioEnabled,t.addListener("audioUpdate",this.onAudioUpdate))}calcVolume(t){this.hark=s(t,{play:!1,interval:100}),this.hark.on("volume_change",(t=>{const r=this.volume;let a=Math.round(10**(t/115)*10);a<3&&(a=0);let i=Math.round((2*r+a)/3);r!==i&&(this.volume=i)}))}render(){if(!this.meeting)return null;const t={meeting:this.meeting,size:this.size,config:this.config,states:this.states,iconPack:this.iconPack,t:this.t};let o="bar-0";return o=this.volume>5?"bar-5":this.volume<0?"bar-0":"bar-"+this.volume,r(a,null,r("div",{class:{"avatar-ctr":!0,speaking:this.audioEnabled,[o]:!0}},r("rtk-avatar",{participant:this.participant,size:this.size},!this.audioEnabled&&r("div",{class:"mic-icon"},r("rtk-icon",{icon:i.mic_off})))),r("rtk-name-tag",Object.assign({variant:"text",participant:this.participant},t)),r("slot",null))}static get watchers(){return{participant:[{participantChanged:0}]}}};c([e()],n.prototype,"meeting",void 0),c([e()],n.prototype,"config",void 0),c([e()],n.prototype,"states",void 0),c([e()],n.prototype,"iconPack",void 0),c([e()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:flex;flex-direction:column}.avatar-ctr{box-sizing:border-box;width:100%;flex:1 1 0%;padding:var(--rtk-space-1\\.5, 6px);border:2px solid transparent;border-radius:calc(var(--rtk-border-radius-xl, 40px) + var(--rtk-space-1\\.5, 6px))}.avatar-ctr.speaking{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.bar-0{box-shadow:none}.bar-1{box-shadow:0 0 4px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-2{box-shadow:0 0 8px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-3{box-shadow:0 0 16px 1px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-4{box-shadow:0 0 20px 3px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-5{box-shadow:0 0 24px 6px rgb(var(--rtk-colors-brand-500, 33 96 253))}rtk-avatar{aspect-ratio:1 / 1;height:100%;width:100%;position:relative;border-radius:var(--rtk-border-radius-xl, 40px)}rtk-name-tag{display:block;height:var(--rtk-space-10, 40px);width:100%;text-align:center;line-height:2.5rem}:host([size='sm']) .avatar-ctr{border-radius:calc(var(--rtk-border-radius-lg, 12px) + var(--rtk-space-1\\.5, 6px))}:host([size='sm']) rtk-name-tag{height:var(--rtk-space-7, 28px);line-height:1.75rem}:host([size='sm']) rtk-avatar{border-radius:var(--rtk-border-radius-lg, 12px)}.mic-icon{position:absolute;bottom:calc(var(--rtk-space-1, 4px) * -1);right:calc(var(--rtk-space-1, 4px) * -1);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.mic-icon rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) .mic-icon rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='md']) .mic-icon rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}";export{n as rtk_audio_tile}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as n,i as a}from"./p-DI7wP4CL.js";import{b as o}from"./p-D9HGXWKc.js";import{S as l}from"./p-BmRffDYW.js";import"./p-C0vp-Q7v.js";var h=function(t,i,s,e){var n,a=arguments.length,o=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(a<3?n(o):a>3?n(i,s,o):n(i,s))||o);return a>3&&o&&Object.defineProperty(i,s,o),o};const r=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=a(),this.pluginsActive=!1,this.canViewPlugins=!1,this.updateCanView=()=>{this.canViewPlugins=o(this.meeting)}}disconnectedCallback(){var t,i,s,e;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pluginsUpdate",this.updateCanView)}connectedCallback(){this.statesChanged(this.states),this.meetingChanged(this.meeting)}meetingChanged(t){var i,s;t&&(this.canViewPlugins=o(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),null===(s=null==t?void 0:t.self)||void 0===s||s.permissions.addListener("pluginsUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pluginsActive=!0===t.activeSidebar&&"plugins"===t.sidebar)}togglePlugins(){const t=this.states;this.pluginsActive=!((null==t?void 0:t.activeSidebar)&&"plugins"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pluginsActive,sidebar:this.pluginsActive?"plugins":void 0,activeMoreMenu:!1})}handlePluginsActiveChange(){this.pluginsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPlugins)return s(e,{"data-hidden":!0});const t=this.t("plugins");return s(e,{title:t},s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pluginsActive},onClick:()=>this.togglePlugins(),icon:this.iconPack.rocket,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pluginsActive:[{handlePluginsActiveChange:0}]}}};h([l()],r.prototype,"meeting",void 0),h([l()],r.prototype,"states",void 0),h([l()],r.prototype,"iconPack",void 0),h([l()],r.prototype,"t",void 0),r.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{r as rtk_plugins_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as n,i as a}from"./p-BV8JkayY.js";import{b as o}from"./p-D9HGXWKc.js";import{S as l}from"./p-9Kg_s9HA.js";import"./p-C0vp-Q7v.js";var h=function(t,i,s,e){var n,a=arguments.length,o=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(a<3?n(o):a>3?n(i,s,o):n(i,s))||o);return a>3&&o&&Object.defineProperty(i,s,o),o};const r=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=a(),this.pluginsActive=!1,this.canViewPlugins=!1,this.updateCanView=()=>{this.canViewPlugins=o(this.meeting)}}disconnectedCallback(){var t,i,s,e;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pluginsUpdate",this.updateCanView)}connectedCallback(){this.statesChanged(this.states),this.meetingChanged(this.meeting)}meetingChanged(t){var i,s;t&&(this.canViewPlugins=o(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),null===(s=null==t?void 0:t.self)||void 0===s||s.permissions.addListener("pluginsUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pluginsActive=!0===t.activeSidebar&&"plugins"===t.sidebar)}togglePlugins(){const t=this.states;this.pluginsActive=!((null==t?void 0:t.activeSidebar)&&"plugins"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pluginsActive,sidebar:this.pluginsActive?"plugins":void 0,activeMoreMenu:!1})}handlePluginsActiveChange(){this.pluginsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPlugins)return s(e,{"data-hidden":!0});const t=this.t("plugins");return s(e,{title:t},s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pluginsActive},onClick:()=>this.togglePlugins(),icon:this.iconPack.rocket,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pluginsActive:[{handlePluginsActiveChange:0}]}}};h([l()],r.prototype,"meeting",void 0),h([l()],r.prototype,"states",void 0),h([l()],r.prototype,"iconPack",void 0),h([l()],r.prototype,"t",void 0),r.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{r as rtk_plugins_toggle}
@@ -1 +1 @@
1
- import{r as t,h as e,a as i}from"./p-gJCRRBX0.js";import{e as a}from"./p-DI7wP4CL.js";import{S as n}from"./p-BmRffDYW.js";var s=function(t,e,i,a){var n,s=arguments.length,r=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const r=t=>Math.trunc(t).toString().padStart(2,"0"),o=class{constructor(e){t(this,e),this.iconPack=a,this.disconnectMeeting=()=>{var t,e;this.timeout&&clearTimeout(this.timeout),"number"==typeof this.request&&cancelAnimationFrame(this.request),null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e||e.removeListener("meetingStartTimeUpdate",this.startedTimeUpdateListener)},this.startedTimeUpdateListener=()=>{var t,e,i;this.startedTime=null===(i=null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting()}meetingChanged(t){var e,i,a;this.disconnectMeeting(),null!=t&&(this.startedTime=null===(i=null===(e=t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString(),null===(a=t.meta)||void 0===a||a.addListener("meetingStartTimeUpdate",this.startedTimeUpdateListener))}startedTimeChanged(t){if(void 0!==t){const t=()=>{this.timeDiff=(Date.now()-new Date(this.startedTime).getTime())/1e3,this.timeout=setTimeout((()=>{null!=this.request&&(this.request=requestAnimationFrame(t))}),500)};this.request=requestAnimationFrame(t)}}getFormattedTime(){if(null==this.timeDiff)return null;const t=this.timeDiff;let e="";return t>=3600&&(e=`${r(t/3600)}:`),e+=`${r(t%3600/60)}:${r(t%60)}`,e}render(){return e(i,{key:"4592c92b870075a8ec23d89c01c382f61278983a","data-hidden":!(void 0!==this.startedTime),tabIndex:0,role:"timer","aria-live":"off"},void 0!==this.startedTime&&[e("rtk-icon",{key:"87b1012dd7c5d7187182a2ed025868f05ed010e7",icon:this.iconPack.clock,"aria-hidden":!0,tabIndex:-1,part:"icon"}),e("span",{key:"6fec2fef30be9c54a3e68108fde81a59ce000576",part:"text"},this.getFormattedTime())])}static get watchers(){return{meeting:[{meetingChanged:0}],startedTime:[{startedTimeChanged:0}]}}};s([n()],o.prototype,"meeting",void 0),s([n()],o.prototype,"iconPack",void 0),o.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-variant-numeric:tabular-nums}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}";export{o as rtk_clock}
1
+ import{r as t,h as e,a as i}from"./p-gJCRRBX0.js";import{e as a}from"./p-BV8JkayY.js";import{S as n}from"./p-9Kg_s9HA.js";var s=function(t,e,i,a){var n,s=arguments.length,r=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const r=t=>Math.trunc(t).toString().padStart(2,"0"),o=class{constructor(e){t(this,e),this.iconPack=a,this.disconnectMeeting=()=>{var t,e;this.timeout&&clearTimeout(this.timeout),"number"==typeof this.request&&cancelAnimationFrame(this.request),null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e||e.removeListener("meetingStartTimeUpdate",this.startedTimeUpdateListener)},this.startedTimeUpdateListener=()=>{var t,e,i;this.startedTime=null===(i=null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting()}meetingChanged(t){var e,i,a;this.disconnectMeeting(),null!=t&&(this.startedTime=null===(i=null===(e=t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString(),null===(a=t.meta)||void 0===a||a.addListener("meetingStartTimeUpdate",this.startedTimeUpdateListener))}startedTimeChanged(t){if(void 0!==t){const t=()=>{this.timeDiff=(Date.now()-new Date(this.startedTime).getTime())/1e3,this.timeout=setTimeout((()=>{null!=this.request&&(this.request=requestAnimationFrame(t))}),500)};this.request=requestAnimationFrame(t)}}getFormattedTime(){if(null==this.timeDiff)return null;const t=this.timeDiff;let e="";return t>=3600&&(e=`${r(t/3600)}:`),e+=`${r(t%3600/60)}:${r(t%60)}`,e}render(){return e(i,{key:"4592c92b870075a8ec23d89c01c382f61278983a","data-hidden":!(void 0!==this.startedTime),tabIndex:0,role:"timer","aria-live":"off"},void 0!==this.startedTime&&[e("rtk-icon",{key:"87b1012dd7c5d7187182a2ed025868f05ed010e7",icon:this.iconPack.clock,"aria-hidden":!0,tabIndex:-1,part:"icon"}),e("span",{key:"6fec2fef30be9c54a3e68108fde81a59ce000576",part:"text"},this.getFormattedTime())])}static get watchers(){return{meeting:[{meetingChanged:0}],startedTime:[{startedTimeChanged:0}]}}};s([n()],o.prototype,"meeting",void 0),s([n()],o.prototype,"iconPack",void 0),o.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-variant-numeric:tabular-nums}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}";export{o as rtk_clock}
@@ -0,0 +1 @@
1
+ import{r as t,h as a,a as e}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import{c as i,e as s,i as r}from"./p-BV8JkayY.js";import"./p-C0vp-Q7v.js";import{R as o}from"./p-CTFO-5XH.js";import{S as n}from"./p-9Kg_s9HA.js";import"./p-Daj_55_i.js";var p=function(t,a,e,i){var s,r=arguments.length,o=r<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,a,e,i);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(r<3?s(o):r>3?s(a,e,o):s(a,e))||o);return r>3&&o&&Object.defineProperty(a,e,o),o};const c=class{constructor(a){t(this,a),this.variant="solid",this.disableRender=!1,this.config=i(),this.iconPack=s,this.t=r()}render(){return a(e,{key:"a323f95dac8cde8fdb77b1ecb0950402b7d418bb"},!this.disableRender&&a(o,{key:"a7beb145a76f2f879af3f54c9ec08317865b17d2",element:"rtk-header",defaults:{meeting:this.meeting,config:this.config,states:this.states,t:this.t,iconPack:this.iconPack,size:this.size},onlyChildren:!0}),a("slot",{key:"5bee25d9949611736d9c772e438314655ab8ae58"}))}};p([n()],c.prototype,"meeting",void 0),p([n()],c.prototype,"config",void 0),p([n()],c.prototype,"states",void 0),p([n()],c.prototype,"iconPack",void 0),p([n()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:var(--rtk-space-12, 48px);align-items:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host{display:none !important}}@media only screen and (max-height: 480px) and (orientation: landscape){:host{display:none !important}}";export{c as rtk_header}
@@ -1 +1 @@
1
- import{r as i,d as t,h as s,a as o}from"./p-gJCRRBX0.js";import{e,i as a}from"./p-DI7wP4CL.js";import{S as l}from"./p-BmRffDYW.js";var n=function(i,t,s,o){var e,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,t,s,o);else for(var n=i.length-1;n>=0;n--)(e=i[n])&&(l=(a<3?e(l):a>3?e(t,s,l):e(t,s))||l);return a>3&&l&&Object.defineProperty(t,s,l),l};const d=class{constructor(s){i(this,s),this.stateUpdate=t(this,"rtkStateUpdate",7),this.audioUpdateListener=({audioEnabled:i})=>{this.audioEnabled=i},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:i,message:t})=>{"audio"===i&&(this.micPermission=t)},this.meetingPermissionsUpdateListener=i=>{var t;(null===(t=null==i?void 0:i.media)||void 0===t?void 0:t.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.iconPack=e,this.t=a(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.toggleMic=()=>{var i,t,s,o,e,a,l,n,d,h,r,u;if(null===(i=this.meeting)||void 0===i||i.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:Boolean(null===(s=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===s?void 0:s.audioEnabled),permission:this.micPermission,canProduce:null===(a=null===(e=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===e?void 0:e.permissions)||void 0===a?void 0:a.canProduceAudio}},webinar:{stageStatus:null===(n=null===(l=this.meeting)||void 0===l?void 0:l.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(h=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===h?void 0:h.status},moduleExists:{self:Boolean(null===(r=this.meeting)||void 0===r?void 0:r.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const v=null===(u=this.meeting)||void 0===u?void 0:u.self;null!=v&&this.canProduceAudio&&(v.audioEnabled?v.disableAudio():v.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var i,t,s,o,e,a,l;null===(i=this.meeting)||void 0===i||i.self.removeListener("audioUpdate",this.audioUpdateListener),null===(t=this.meeting)||void 0===t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(o=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.stageStatusListener),null===(l=null===(a=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===a?void 0:a.permissions)||void 0===l||l.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}meetingChanged(i){var t,s;if(null!=i){const{self:o,stage:e}=i;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=i.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=o.audioEnabled,this.stageStatus=i.stage.status,o.addListener("audioUpdate",this.audioUpdateListener),o.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==e||e.addListener("stageStatusUpdate",this.stageStatusListener),null===(s=null===(t=i.self)||void 0===t?void 0:t.permissions)||void 0===s||s.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let i="",t="",s="",o={},e=this.hasPermissionError(),a="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!e?(t=this.t("mic_on"),s=this.iconPack.mic_on):(t=this.t("mic_off"),s=this.iconPack.mic_off,o["red-icon"]=!0),i=this.t(a?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:i,label:t,icon:s,classList:o,showWarning:e||a,disable:e}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return s(o,{"data-hidden":!0});const{tooltipLabel:i,label:t,icon:e,classList:a,showWarning:l,disable:n}=this.getState();return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:i,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,class:a,onClick:this.toggleMic,showWarning:l,disabled:n})))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",void 0),n([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_mic_toggle}
1
+ import{r as i,d as t,h as s,a as o}from"./p-gJCRRBX0.js";import{e,i as a}from"./p-BV8JkayY.js";import{S as l}from"./p-9Kg_s9HA.js";var n=function(i,t,s,o){var e,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,t,s,o);else for(var n=i.length-1;n>=0;n--)(e=i[n])&&(l=(a<3?e(l):a>3?e(t,s,l):e(t,s))||l);return a>3&&l&&Object.defineProperty(t,s,l),l};const d=class{constructor(s){i(this,s),this.stateUpdate=t(this,"rtkStateUpdate",7),this.audioUpdateListener=({audioEnabled:i})=>{this.audioEnabled=i},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:i,message:t})=>{"audio"===i&&(this.micPermission=t)},this.meetingPermissionsUpdateListener=i=>{var t;(null===(t=null==i?void 0:i.media)||void 0===t?void 0:t.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.iconPack=e,this.t=a(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.toggleMic=()=>{var i,t,s,o,e,a,l,n,d,h,r,u;if(null===(i=this.meeting)||void 0===i||i.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:Boolean(null===(s=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===s?void 0:s.audioEnabled),permission:this.micPermission,canProduce:null===(a=null===(e=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===e?void 0:e.permissions)||void 0===a?void 0:a.canProduceAudio}},webinar:{stageStatus:null===(n=null===(l=this.meeting)||void 0===l?void 0:l.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(h=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===h?void 0:h.status},moduleExists:{self:Boolean(null===(r=this.meeting)||void 0===r?void 0:r.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const v=null===(u=this.meeting)||void 0===u?void 0:u.self;null!=v&&this.canProduceAudio&&(v.audioEnabled?v.disableAudio():v.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var i,t,s,o,e,a,l;null===(i=this.meeting)||void 0===i||i.self.removeListener("audioUpdate",this.audioUpdateListener),null===(t=this.meeting)||void 0===t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(o=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.stageStatusListener),null===(l=null===(a=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===a?void 0:a.permissions)||void 0===l||l.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}meetingChanged(i){var t,s;if(null!=i){const{self:o,stage:e}=i;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=i.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=o.audioEnabled,this.stageStatus=i.stage.status,o.addListener("audioUpdate",this.audioUpdateListener),o.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==e||e.addListener("stageStatusUpdate",this.stageStatusListener),null===(s=null===(t=i.self)||void 0===t?void 0:t.permissions)||void 0===s||s.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let i="",t="",s="",o={},e=this.hasPermissionError(),a="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!e?(t=this.t("mic_on"),s=this.iconPack.mic_on):(t=this.t("mic_off"),s=this.iconPack.mic_off,o["red-icon"]=!0),i=this.t(a?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:i,label:t,icon:s,classList:o,showWarning:e||a,disable:e}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return s(o,{"data-hidden":!0});const{tooltipLabel:i,label:t,icon:e,classList:a,showWarning:l,disable:n}=this.getState();return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:i,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,class:a,onClick:this.toggleMic,showWarning:l,disabled:n})))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",void 0),n([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_mic_toggle}