@cloudflare/realtimekit-ui 1.0.0-staging.15 → 1.0.0-staging.16

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 (606) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-5e193665.js → TextMessage-87c1e5a0.js} +1 -1
  3. package/dist/cjs/{chat-926e8f05.js → chat-6d305b71.js} +1 -1
  4. package/dist/cjs/{config-10bea2dc.js → config-9632c81a.js} +1 -1
  5. package/dist/cjs/{index-e33a89b6.js → index-49c92728.js} +1 -1
  6. package/dist/cjs/index.cjs.js +4 -4
  7. package/dist/cjs/{notification-a3fb0b56.js → notification-6d70e3a8.js} +1 -1
  8. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  9. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  10. package/dist/cjs/rtk-ai.cjs.entry.js +2 -2
  11. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +3 -3
  14. package/dist/cjs/rtk-avatar_54.cjs.entry.js +11 -11
  15. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  17. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  18. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  19. package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +4 -4
  20. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  21. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  22. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +3 -3
  23. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  27. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-message-list-view.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-participant_2.cjs.entry.js +4 -4
  50. package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +3 -3
  53. package/dist/cjs/rtk-participants.cjs.entry.js +2 -2
  54. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  55. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +3 -3
  57. package/dist/cjs/rtk-plugins_2.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +3 -3
  60. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  61. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  62. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
  64. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  66. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-setup-screen.cjs.entry.js +7 -6
  68. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-sidebar.cjs.entry.js +3 -3
  70. package/dist/cjs/rtk-simple-grid.cjs.entry.js +3 -3
  71. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
  72. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-stage.cjs.entry.js +3 -3
  75. package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
  76. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-ui-provider.cjs.entry.js +3 -3
  78. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
  79. package/dist/cjs/{sidebar-7189b8fd.js → sidebar-8256d60e.js} +1 -1
  80. package/dist/cjs/{ui-store-81ede08e.js → ui-store-7807fa2a.js} +1 -2
  81. package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
  82. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
  83. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  84. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  85. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
  86. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
  87. package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
  88. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
  89. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
  90. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +2 -2
  91. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +2 -2
  92. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
  93. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
  94. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
  95. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
  96. package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +1 -1
  97. package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +1 -1
  98. package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +1 -1
  99. package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +1 -1
  100. package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +1 -1
  101. package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
  102. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
  103. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
  104. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
  105. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
  106. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
  107. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
  108. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
  109. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
  110. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  111. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  112. package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
  113. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  114. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  115. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  116. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
  117. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  118. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  119. package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
  120. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  121. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  122. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  123. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  124. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
  125. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  126. package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
  127. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
  128. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
  129. package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
  130. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
  131. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  132. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  133. package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
  134. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
  135. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  136. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
  137. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  138. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
  139. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
  140. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
  141. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
  142. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  143. package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
  144. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
  145. package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
  146. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  147. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  148. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
  149. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
  150. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
  151. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
  152. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
  153. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  154. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
  155. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
  156. package/dist/collection/components/rtk-notification/rtk-notification.js +1 -1
  157. package/dist/collection/components/rtk-notifications/rtk-notifications.js +1 -1
  158. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  159. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
  160. package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
  161. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
  162. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
  163. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
  164. package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
  165. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  166. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  167. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
  168. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
  169. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
  170. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
  171. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  172. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
  173. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
  174. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  175. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
  176. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  177. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
  178. package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
  179. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
  180. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  181. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
  182. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
  183. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +1 -1
  184. package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
  185. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
  186. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
  187. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +1 -1
  188. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.css +33 -22
  189. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +7 -6
  190. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +1 -1
  191. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
  192. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +2 -2
  193. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  194. package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
  195. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
  196. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
  197. package/dist/collection/components/rtk-stage/rtk-stage.js +2 -2
  198. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
  199. package/dist/collection/components/rtk-switch/rtk-switch.js +2 -2
  200. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
  201. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +2 -2
  202. package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -3
  203. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
  204. package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
  205. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  206. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +2 -2
  207. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
  208. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
  209. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +2 -2
  210. package/dist/collection/lib/lang/default-language.js +1 -2
  211. package/dist/components/index.js +5 -5
  212. package/dist/components/{p-2c95df3f.js → p-01788fc5.js} +4 -4
  213. package/dist/components/{p-736ab8a0.js → p-0daa472f.js} +6 -6
  214. package/dist/components/{p-eb6e37e9.js → p-1174d3f4.js} +14 -14
  215. package/dist/components/{p-8198975c.js → p-14c496c6.js} +4 -4
  216. package/dist/components/{p-00905b54.js → p-153e1ac6.js} +4 -4
  217. package/dist/components/{p-190af711.js → p-1590eea9.js} +5 -5
  218. package/dist/components/{p-3d5ca4ac.js → p-1633eae1.js} +7 -7
  219. package/dist/components/{p-92e527ab.js → p-1cc409c6.js} +3 -3
  220. package/dist/components/{p-05d46a0e.js → p-1d7f3c99.js} +14 -14
  221. package/dist/components/{p-b1f57d50.js → p-1f6e5501.js} +4 -4
  222. package/dist/components/{p-a5737efc.js → p-20c74379.js} +2 -2
  223. package/dist/components/{p-bd20259b.js → p-23d64784.js} +4 -4
  224. package/dist/components/{p-92a1602c.js → p-2507c6c8.js} +1 -1
  225. package/dist/components/{p-08020b3c.js → p-25738f7b.js} +12 -12
  226. package/dist/components/{p-0f77783d.js → p-25f625c5.js} +53 -53
  227. package/dist/components/{p-dfd1dfed.js → p-273196ec.js} +4 -4
  228. package/dist/components/{p-b9089444.js → p-287eadbd.js} +4 -4
  229. package/dist/components/{p-43de959f.js → p-2cc196a8.js} +6 -6
  230. package/dist/components/{p-96d5823f.js → p-2df5f773.js} +2 -2
  231. package/dist/components/{p-ee449660.js → p-31f1e8e5.js} +1 -1
  232. package/dist/components/{p-291cbe98.js → p-3d5214b4.js} +5 -5
  233. package/dist/components/{p-8b197573.js → p-40a18d12.js} +5 -5
  234. package/dist/components/{p-7a0a4ea1.js → p-519e8701.js} +5 -5
  235. package/dist/components/{p-8ec943fb.js → p-5597fe9f.js} +8 -8
  236. package/dist/components/{p-ee490919.js → p-5e5c9b53.js} +9 -9
  237. package/dist/components/{p-8fd7ccbf.js → p-60b29ed0.js} +3 -3
  238. package/dist/components/{p-24ac331b.js → p-65da3d17.js} +4 -4
  239. package/dist/components/{p-774b8b25.js → p-65e9c741.js} +3 -3
  240. package/dist/components/{p-2ca7a08a.js → p-6631e984.js} +2 -2
  241. package/dist/components/{p-c9e399b4.js → p-70053efe.js} +7 -7
  242. package/dist/components/{p-3628bdcd.js → p-77338347.js} +3 -3
  243. package/dist/components/{p-0b087be2.js → p-778197ec.js} +5 -5
  244. package/dist/components/{p-e889cc60.js → p-7916d083.js} +2 -2
  245. package/dist/components/{p-f0924403.js → p-79534847.js} +4 -4
  246. package/dist/components/{p-a96fd0a2.js → p-7a1b0433.js} +1 -1
  247. package/dist/components/{p-a262dd1a.js → p-7afb8f24.js} +2 -2
  248. package/dist/components/{p-eae68017.js → p-7b5f7b56.js} +4 -4
  249. package/dist/components/{p-2134aa95.js → p-7d76715d.js} +3 -3
  250. package/dist/components/{p-815a8bcc.js → p-7dcce90b.js} +3 -3
  251. package/dist/components/{p-40b74b04.js → p-828a11f4.js} +10 -10
  252. package/dist/components/{p-c746a8bd.js → p-83a87193.js} +8 -8
  253. package/dist/components/{p-d80915fb.js → p-85665c03.js} +4 -4
  254. package/dist/components/{p-132d39f6.js → p-8750e2de.js} +6 -6
  255. package/dist/components/{p-de933b70.js → p-8804314e.js} +2 -2
  256. package/dist/components/{p-62471047.js → p-8eea1b4d.js} +3 -3
  257. package/dist/components/{p-3ed36ca2.js → p-9007d4aa.js} +3 -3
  258. package/dist/components/{p-6a516f83.js → p-9140d5c1.js} +7 -7
  259. package/dist/components/{p-3fb24e88.js → p-94e8d526.js} +7 -7
  260. package/dist/components/{p-b661e73e.js → p-989a34c9.js} +1 -1
  261. package/dist/components/{p-40b08033.js → p-98d49c8e.js} +3 -3
  262. package/dist/components/{p-11a9a3ec.js → p-9b7dc3b2.js} +4 -4
  263. package/dist/components/{p-31a1dc4d.js → p-9e5b47ea.js} +2 -2
  264. package/dist/components/{p-1ba98d57.js → p-9f29a2f1.js} +6 -6
  265. package/dist/components/{p-bcb91396.js → p-a09473cb.js} +1 -1
  266. package/dist/components/{p-4ee52c16.js → p-a575deb5.js} +1 -1
  267. package/dist/components/{p-53d81684.js → p-a59e060b.js} +2 -2
  268. package/dist/components/{p-a53e3d25.js → p-a5d2ac22.js} +25 -25
  269. package/dist/components/{p-3d754c34.js → p-a73161da.js} +1 -1
  270. package/dist/components/{p-8149712f.js → p-abdd2a8a.js} +5 -5
  271. package/dist/components/{p-2283539e.js → p-af7aea98.js} +2 -2
  272. package/dist/components/{p-39c19f58.js → p-afc2ce7b.js} +3 -3
  273. package/dist/components/{p-afce90ce.js → p-b1030316.js} +2 -2
  274. package/dist/components/{p-8302e30d.js → p-b1161cb8.js} +3 -3
  275. package/dist/components/{p-838a4971.js → p-b5dc3971.js} +6 -6
  276. package/dist/components/{p-7d3797ee.js → p-ba8208ac.js} +4 -4
  277. package/dist/components/{p-74baedf6.js → p-be584d57.js} +14 -14
  278. package/dist/components/{p-1b5e871d.js → p-c173a513.js} +10 -10
  279. package/dist/components/{p-80b25cac.js → p-c226934a.js} +12 -12
  280. package/dist/components/{p-5cd5f7db.js → p-c86a0f9e.js} +5 -5
  281. package/dist/components/{p-34ee27d0.js → p-cac807c5.js} +3 -3
  282. package/dist/components/{p-2f10ccec.js → p-cbc8e449.js} +4 -4
  283. package/dist/components/{p-ff033d49.js → p-cfbb9bd9.js} +4 -4
  284. package/dist/components/{p-4f0299cf.js → p-de2175ca.js} +1 -1
  285. package/dist/components/{p-282cc869.js → p-de567bdf.js} +5 -5
  286. package/dist/components/{p-400d8f0d.js → p-e9c999f4.js} +5 -5
  287. package/dist/components/{p-e8385e2f.js → p-eaa808b7.js} +8 -8
  288. package/dist/components/{p-cf6253c5.js → p-ebb19a87.js} +4 -4
  289. package/dist/components/{p-55910bec.js → p-efda30dd.js} +4 -4
  290. package/dist/components/{p-1edce9ef.js → p-f0df8c15.js} +4 -4
  291. package/dist/components/{p-f1dd271e.js → p-f4158e29.js} +2 -2
  292. package/dist/components/{p-e560b4b6.js → p-f634f020.js} +3 -3
  293. package/dist/components/{p-b7fe585f.js → p-f77fe02e.js} +6 -6
  294. package/dist/components/{p-0e6f6af9.js → p-fab54b49.js} +3 -3
  295. package/dist/components/{p-18164a2e.js → p-fb31f34b.js} +8 -8
  296. package/dist/components/{p-9bcf0d04.js → p-fc4484ae.js} +1 -2
  297. package/dist/components/{p-e36ef452.js → p-ff13d28d.js} +7 -7
  298. package/dist/components/{p-ab98bb45.js → p-ff6d9602.js} +4 -4
  299. package/dist/components/rtk-ai-toggle.js +5 -5
  300. package/dist/components/rtk-ai-transcriptions.js +1 -1
  301. package/dist/components/rtk-ai.js +5 -5
  302. package/dist/components/rtk-audio-grid.js +2 -2
  303. package/dist/components/rtk-audio-tile.js +6 -6
  304. package/dist/components/rtk-audio-visualizer.js +1 -1
  305. package/dist/components/rtk-avatar.js +1 -1
  306. package/dist/components/rtk-breakout-room-manager.js +1 -1
  307. package/dist/components/rtk-breakout-room-participants.js +1 -1
  308. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  309. package/dist/components/rtk-breakout-rooms-toggle.js +5 -5
  310. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  311. package/dist/components/rtk-button.js +1 -1
  312. package/dist/components/rtk-camera-selector.js +1 -1
  313. package/dist/components/rtk-camera-toggle.js +6 -6
  314. package/dist/components/rtk-caption-toggle.js +5 -5
  315. package/dist/components/rtk-channel-creator.js +1 -1
  316. package/dist/components/rtk-channel-details.js +1 -1
  317. package/dist/components/rtk-channel-header.js +1 -1
  318. package/dist/components/rtk-channel-selector-ui.js +6 -6
  319. package/dist/components/rtk-channel-selector-view.js +1 -1
  320. package/dist/components/rtk-chat-composer-ui.js +8 -8
  321. package/dist/components/rtk-chat-composer-view.js +1 -1
  322. package/dist/components/rtk-chat-message.js +1 -1
  323. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  324. package/dist/components/rtk-chat-messages-ui.js +1 -1
  325. package/dist/components/rtk-chat-search-results.js +1 -1
  326. package/dist/components/rtk-chat-selector-ui.js +3 -3
  327. package/dist/components/rtk-chat-toggle.js +6 -6
  328. package/dist/components/rtk-chat.js +1 -1
  329. package/dist/components/rtk-clock.js +3 -3
  330. package/dist/components/rtk-confirmation-modal.js +1 -1
  331. package/dist/components/rtk-controlbar-button.js +1 -1
  332. package/dist/components/rtk-controlbar.js +2 -2
  333. package/dist/components/rtk-counter.js +1 -1
  334. package/dist/components/rtk-debugger-audio.js +1 -1
  335. package/dist/components/rtk-debugger-screenshare.js +1 -1
  336. package/dist/components/rtk-debugger-system.js +1 -1
  337. package/dist/components/rtk-debugger-toggle.js +5 -5
  338. package/dist/components/rtk-debugger-video.js +1 -1
  339. package/dist/components/rtk-debugger.js +1 -1
  340. package/dist/components/rtk-dialog-manager.js +1 -1
  341. package/dist/components/rtk-dialog.js +1 -1
  342. package/dist/components/rtk-draft-attachment-view.js +1 -1
  343. package/dist/components/rtk-emoji-picker-button.js +1 -1
  344. package/dist/components/rtk-emoji-picker.js +1 -1
  345. package/dist/components/rtk-ended-screen.js +4 -4
  346. package/dist/components/rtk-file-dropzone.js +3 -3
  347. package/dist/components/rtk-file-message-view.js +1 -1
  348. package/dist/components/rtk-file-message.js +1 -1
  349. package/dist/components/rtk-file-picker-button.js +1 -1
  350. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  351. package/dist/components/rtk-grid-pagination.js +5 -5
  352. package/dist/components/rtk-grid.js +10 -10
  353. package/dist/components/rtk-header.js +2 -2
  354. package/dist/components/rtk-icon.js +1 -1
  355. package/dist/components/rtk-idle-screen.js +5 -5
  356. package/dist/components/rtk-image-message-view.js +1 -1
  357. package/dist/components/rtk-image-message.js +1 -1
  358. package/dist/components/rtk-image-viewer.js +4 -4
  359. package/dist/components/rtk-information-tooltip.js +3 -3
  360. package/dist/components/rtk-join-stage.js +1 -1
  361. package/dist/components/rtk-leave-button.js +5 -5
  362. package/dist/components/rtk-leave-meeting.js +1 -1
  363. package/dist/components/rtk-livestream-indicator.js +1 -1
  364. package/dist/components/rtk-livestream-player.js +1 -1
  365. package/dist/components/rtk-livestream-toggle.js +5 -5
  366. package/dist/components/rtk-logo.js +1 -1
  367. package/dist/components/rtk-meeting-title.js +3 -3
  368. package/dist/components/rtk-meeting.js +55 -55
  369. package/dist/components/rtk-menu-item.js +1 -1
  370. package/dist/components/rtk-menu-list.js +1 -1
  371. package/dist/components/rtk-menu.js +1 -1
  372. package/dist/components/rtk-message-list-view.js +4 -4
  373. package/dist/components/rtk-message-view.js +1 -1
  374. package/dist/components/rtk-mic-toggle.js +6 -6
  375. package/dist/components/rtk-microphone-selector.js +1 -1
  376. package/dist/components/rtk-mixed-grid.js +8 -8
  377. package/dist/components/rtk-more-toggle.js +5 -5
  378. package/dist/components/rtk-mute-all-button.js +6 -6
  379. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  380. package/dist/components/rtk-name-tag.js +1 -1
  381. package/dist/components/rtk-network-indicator.js +3 -3
  382. package/dist/components/rtk-notification.js +1 -1
  383. package/dist/components/rtk-notifications.js +1 -1
  384. package/dist/components/rtk-overlay-modal.js +1 -1
  385. package/dist/components/rtk-paginated-list.js +1 -1
  386. package/dist/components/rtk-participant-count.js +3 -3
  387. package/dist/components/rtk-participant-setup.js +2 -2
  388. package/dist/components/rtk-participant-tile.js +1 -1
  389. package/dist/components/rtk-participant.js +1 -1
  390. package/dist/components/rtk-participants-audio.js +5 -5
  391. package/dist/components/rtk-participants-stage-list.js +1 -1
  392. package/dist/components/rtk-participants-stage-queue.js +1 -1
  393. package/dist/components/rtk-participants-toggle.js +6 -6
  394. package/dist/components/rtk-participants-viewer-list.js +1 -1
  395. package/dist/components/rtk-participants-waiting-list.js +1 -1
  396. package/dist/components/rtk-participants.js +16 -16
  397. package/dist/components/rtk-permissions-message.js +1 -1
  398. package/dist/components/rtk-pip-toggle.js +5 -5
  399. package/dist/components/rtk-plugin-main.js +1 -1
  400. package/dist/components/rtk-plugins-toggle.js +6 -6
  401. package/dist/components/rtk-plugins.js +1 -1
  402. package/dist/components/rtk-poll-form.js +1 -1
  403. package/dist/components/rtk-poll.js +1 -1
  404. package/dist/components/rtk-polls-toggle.js +6 -6
  405. package/dist/components/rtk-polls.js +1 -1
  406. package/dist/components/rtk-recording-indicator.js +3 -3
  407. package/dist/components/rtk-recording-toggle.js +5 -5
  408. package/dist/components/rtk-screen-share-toggle.js +6 -6
  409. package/dist/components/rtk-screenshare-view.js +5 -5
  410. package/dist/components/rtk-settings-audio.js +1 -1
  411. package/dist/components/rtk-settings-toggle.js +5 -5
  412. package/dist/components/rtk-settings-video.js +1 -1
  413. package/dist/components/rtk-settings.js +12 -12
  414. package/dist/components/rtk-setup-screen.js +14 -13
  415. package/dist/components/rtk-sidebar-ui.js +1 -1
  416. package/dist/components/rtk-sidebar.js +11 -11
  417. package/dist/components/rtk-simple-grid.js +3 -3
  418. package/dist/components/rtk-speaker-selector.js +1 -1
  419. package/dist/components/rtk-spinner.js +1 -1
  420. package/dist/components/rtk-spotlight-grid.js +4 -4
  421. package/dist/components/rtk-spotlight-indicator.js +1 -1
  422. package/dist/components/rtk-stage-toggle.js +6 -6
  423. package/dist/components/rtk-stage.js +3 -3
  424. package/dist/components/rtk-switch.js +1 -1
  425. package/dist/components/rtk-tab-bar.js +1 -1
  426. package/dist/components/rtk-text-composer-view.js +1 -1
  427. package/dist/components/rtk-text-message-view.js +1 -1
  428. package/dist/components/rtk-text-message.js +1 -1
  429. package/dist/components/rtk-tooltip.js +1 -1
  430. package/dist/components/rtk-transcript.js +1 -1
  431. package/dist/components/rtk-transcripts.js +3 -3
  432. package/dist/components/rtk-ui-provider.js +3 -3
  433. package/dist/components/rtk-viewer-count.js +1 -1
  434. package/dist/components/rtk-virtualized-participant-list.js +1 -1
  435. package/dist/components/rtk-waiting-screen.js +4 -4
  436. package/dist/docs/docs-components.json +255 -755
  437. package/dist/esm/{TextMessage-276a0abf.js → TextMessage-3e08c5e1.js} +1 -1
  438. package/dist/esm/{chat-d85cc211.js → chat-927074dc.js} +1 -1
  439. package/dist/esm/{config-59d761c0.js → config-407ad80b.js} +1 -1
  440. package/dist/esm/{index-7c11af40.js → index-3481d5b2.js} +1 -1
  441. package/dist/esm/index.js +6 -6
  442. package/dist/esm/loader.js +21 -21
  443. package/dist/esm/{notification-c6d0d98f.js → notification-2ab22a76.js} +1 -1
  444. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  445. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  446. package/dist/esm/rtk-ai.entry.js +2 -2
  447. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  448. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  449. package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
  450. package/dist/esm/rtk-avatar_54.entry.js +11 -11
  451. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  452. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  453. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  454. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  455. package/dist/esm/rtk-channel-selector-ui.entry.js +4 -4
  456. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  457. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  458. package/dist/esm/rtk-chat-toggle.entry.js +3 -3
  459. package/dist/esm/rtk-clock.entry.js +2 -2
  460. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  461. package/dist/esm/rtk-controlbar.entry.js +2 -2
  462. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  463. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  464. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  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-meeting-title.entry.js +2 -2
  476. package/dist/esm/rtk-message-list-view.entry.js +2 -2
  477. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  478. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  479. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  480. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  481. package/dist/esm/rtk-name-tag.entry.js +2 -2
  482. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  483. package/dist/esm/rtk-participant-count.entry.js +2 -2
  484. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  485. package/dist/esm/rtk-participant_2.entry.js +4 -4
  486. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  487. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  488. package/dist/esm/rtk-participants-toggle.entry.js +3 -3
  489. package/dist/esm/rtk-participants.entry.js +2 -2
  490. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  491. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  492. package/dist/esm/rtk-plugins-toggle.entry.js +3 -3
  493. package/dist/esm/rtk-plugins_2.entry.js +2 -2
  494. package/dist/esm/rtk-poll_2.entry.js +2 -2
  495. package/dist/esm/rtk-polls-toggle.entry.js +3 -3
  496. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  497. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  498. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  499. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  500. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  501. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  502. package/dist/esm/rtk-settings.entry.js +2 -2
  503. package/dist/esm/rtk-setup-screen.entry.js +8 -7
  504. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  505. package/dist/esm/rtk-sidebar.entry.js +3 -3
  506. package/dist/esm/rtk-simple-grid.entry.js +3 -3
  507. package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
  508. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  509. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  510. package/dist/esm/rtk-stage.entry.js +3 -3
  511. package/dist/esm/rtk-transcript.entry.js +3 -3
  512. package/dist/esm/rtk-transcripts.entry.js +2 -2
  513. package/dist/esm/rtk-ui-provider.entry.js +3 -3
  514. package/dist/esm/rtk-waiting-screen.entry.js +3 -3
  515. package/dist/esm/{sidebar-5df37ae6.js → sidebar-50d89918.js} +1 -1
  516. package/dist/esm/{ui-store-9e11a7e4.js → ui-store-1b477153.js} +1 -2
  517. package/dist/realtimekit-ui/index.esm.js +1 -1
  518. package/dist/realtimekit-ui/{p-c3dc1858.entry.js → p-0215809e.entry.js} +1 -1
  519. package/dist/realtimekit-ui/{p-03f59c3d.entry.js → p-076d6fb1.entry.js} +1 -1
  520. package/dist/realtimekit-ui/{p-64021a4b.entry.js → p-0787a8a4.entry.js} +1 -1
  521. package/dist/realtimekit-ui/{p-ac306160.entry.js → p-0b8b849b.entry.js} +1 -1
  522. package/dist/realtimekit-ui/{p-1d66185e.entry.js → p-0df0bc3b.entry.js} +1 -1
  523. package/dist/realtimekit-ui/{p-96a11481.entry.js → p-0f91e886.entry.js} +1 -1
  524. package/dist/realtimekit-ui/{p-9f6d4fd1.entry.js → p-11a81411.entry.js} +1 -1
  525. package/dist/realtimekit-ui/{p-60fd7733.entry.js → p-14284891.entry.js} +1 -1
  526. package/dist/realtimekit-ui/{p-70973f56.entry.js → p-15e0e0fc.entry.js} +1 -1
  527. package/dist/realtimekit-ui/{p-b241c54b.entry.js → p-17588509.entry.js} +1 -1
  528. package/dist/realtimekit-ui/{p-d2d6cd44.entry.js → p-19ffa2e9.entry.js} +1 -1
  529. package/dist/realtimekit-ui/{p-b4eafb55.entry.js → p-221efc53.entry.js} +1 -1
  530. package/dist/realtimekit-ui/{p-4c04f719.entry.js → p-293547d1.entry.js} +1 -1
  531. package/dist/realtimekit-ui/{p-e687f3c1.entry.js → p-3e54f3e8.entry.js} +1 -1
  532. package/dist/realtimekit-ui/{p-aa62ab59.js → p-4023c083.js} +1 -1
  533. package/dist/realtimekit-ui/{p-74828b25.entry.js → p-44c22bd9.entry.js} +1 -1
  534. package/dist/realtimekit-ui/{p-096b684e.entry.js → p-49602b35.entry.js} +1 -1
  535. package/dist/realtimekit-ui/{p-a0652de1.entry.js → p-4bace64f.entry.js} +1 -1
  536. package/dist/realtimekit-ui/{p-300dc0f3.entry.js → p-4bcf9db7.entry.js} +1 -1
  537. package/dist/realtimekit-ui/{p-1489ae26.entry.js → p-5444d39b.entry.js} +1 -1
  538. package/dist/realtimekit-ui/{p-7df5df90.entry.js → p-546ff22a.entry.js} +1 -1
  539. package/dist/realtimekit-ui/{p-3f42b7a8.entry.js → p-5b277ae0.entry.js} +1 -1
  540. package/dist/realtimekit-ui/{p-9170059f.entry.js → p-629258de.entry.js} +1 -1
  541. package/dist/realtimekit-ui/{p-538fba61.entry.js → p-63064c88.entry.js} +1 -1
  542. package/dist/realtimekit-ui/{p-70e6c27d.entry.js → p-64514c63.entry.js} +1 -1
  543. package/dist/realtimekit-ui/{p-74f3ec2d.entry.js → p-67dcfbf3.entry.js} +1 -1
  544. package/dist/realtimekit-ui/{p-48b31e6c.entry.js → p-6f487b93.entry.js} +1 -1
  545. package/dist/realtimekit-ui/{p-135fecaf.entry.js → p-6f56ad30.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-7be381d1.entry.js → p-6fd65de6.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-93e6efcb.entry.js → p-7597f3ea.entry.js} +1 -1
  548. package/dist/realtimekit-ui/{p-936d63a2.entry.js → p-7965a765.entry.js} +1 -1
  549. package/dist/realtimekit-ui/{p-bb3beb04.entry.js → p-7ade6183.entry.js} +1 -1
  550. package/dist/realtimekit-ui/{p-a85361b3.entry.js → p-7d0ad5a8.entry.js} +1 -1
  551. package/dist/realtimekit-ui/p-7e96fb7b.entry.js +1 -0
  552. package/dist/realtimekit-ui/{p-705df137.entry.js → p-86afa8c3.entry.js} +1 -1
  553. package/dist/realtimekit-ui/{p-6c828edd.entry.js → p-8819f726.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-1e624154.entry.js → p-89543b39.entry.js} +1 -1
  555. package/dist/realtimekit-ui/{p-16951364.entry.js → p-8e869d13.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-21cbb4c2.entry.js → p-9274e173.entry.js} +1 -1
  557. package/dist/realtimekit-ui/{p-5d4e5a90.entry.js → p-9a2536ed.entry.js} +1 -1
  558. package/dist/realtimekit-ui/{p-87fe69f0.entry.js → p-9d038c16.entry.js} +1 -1
  559. package/dist/realtimekit-ui/{p-61f5c8a5.entry.js → p-9d8e8a27.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-376ac678.entry.js → p-9de3f942.entry.js} +1 -1
  561. package/dist/realtimekit-ui/{p-454f1abe.entry.js → p-a42c0e83.entry.js} +1 -1
  562. package/dist/realtimekit-ui/{p-4ad4a43b.js → p-a4922241.js} +1 -1
  563. package/dist/realtimekit-ui/{p-845a7826.entry.js → p-a845c29f.entry.js} +1 -1
  564. package/dist/realtimekit-ui/{p-0fbab69a.entry.js → p-a8b7c6a2.entry.js} +1 -1
  565. package/dist/realtimekit-ui/{p-e6377f44.entry.js → p-ac8a0151.entry.js} +1 -1
  566. package/dist/realtimekit-ui/p-acd86770.entry.js +1 -0
  567. package/dist/realtimekit-ui/{p-3b604624.entry.js → p-b15377a2.entry.js} +1 -1
  568. package/dist/realtimekit-ui/{p-80ad2db7.entry.js → p-b5af8a86.entry.js} +1 -1
  569. package/dist/realtimekit-ui/p-b60b229e.entry.js +1 -0
  570. package/dist/realtimekit-ui/{p-56dace60.entry.js → p-b965ac1d.entry.js} +1 -1
  571. package/dist/realtimekit-ui/{p-41382f52.js → p-bf5ecc7c.js} +1 -1
  572. package/dist/realtimekit-ui/{p-b7bb07db.entry.js → p-c1db5ef9.entry.js} +1 -1
  573. package/dist/realtimekit-ui/p-c203aff3.js +1 -0
  574. package/dist/realtimekit-ui/{p-98366449.entry.js → p-c39a8005.entry.js} +1 -1
  575. package/dist/realtimekit-ui/{p-3e0b8db7.entry.js → p-c4fc57c1.entry.js} +1 -1
  576. package/dist/realtimekit-ui/{p-4e0ceba3.entry.js → p-c6837853.entry.js} +1 -1
  577. package/dist/realtimekit-ui/{p-b797c190.entry.js → p-c6eb9963.entry.js} +1 -1
  578. package/dist/realtimekit-ui/p-d3bf4348.js +1 -0
  579. package/dist/realtimekit-ui/p-d560f5c8.entry.js +1 -0
  580. package/dist/realtimekit-ui/{p-93f49750.entry.js → p-d8c2b553.entry.js} +1 -1
  581. package/dist/realtimekit-ui/p-d9138a0d.entry.js +1 -0
  582. package/dist/realtimekit-ui/{p-7463e3d7.entry.js → p-da56f340.entry.js} +1 -1
  583. package/dist/realtimekit-ui/{p-edee9b57.js → p-da59b75c.js} +1 -1
  584. package/dist/realtimekit-ui/p-dac97779.js +1 -0
  585. package/dist/realtimekit-ui/{p-6d9cd1bc.entry.js → p-dd6d2ca9.entry.js} +1 -1
  586. package/dist/realtimekit-ui/{p-b748755c.entry.js → p-e0450660.entry.js} +1 -1
  587. package/dist/realtimekit-ui/{p-b5486fed.entry.js → p-e0a80608.entry.js} +1 -1
  588. package/dist/realtimekit-ui/{p-8b34bfb4.entry.js → p-ea1736c3.entry.js} +1 -1
  589. package/dist/realtimekit-ui/{p-10d038f4.entry.js → p-eb4025c0.entry.js} +1 -1
  590. package/dist/realtimekit-ui/{p-67a64842.entry.js → p-ed87ad1f.entry.js} +1 -1
  591. package/dist/realtimekit-ui/{p-ebc9cc63.entry.js → p-efbe07a6.entry.js} +1 -1
  592. package/dist/realtimekit-ui/{p-5d060b1e.entry.js → p-f2ba56ec.entry.js} +1 -1
  593. package/dist/realtimekit-ui/{p-cf98e0e6.entry.js → p-f3d02201.entry.js} +1 -1
  594. package/dist/realtimekit-ui/{p-ddd9ae08.entry.js → p-f78cecba.entry.js} +1 -1
  595. package/dist/realtimekit-ui/{p-e52c2a9c.entry.js → p-fa03ab98.entry.js} +1 -1
  596. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  597. package/dist/types/lib/lang/default-language.d.ts +0 -1
  598. package/package.json +1 -1
  599. package/dist/realtimekit-ui/p-08bcc52f.js +0 -1
  600. package/dist/realtimekit-ui/p-1fdd6794.entry.js +0 -1
  601. package/dist/realtimekit-ui/p-241230d3.entry.js +0 -1
  602. package/dist/realtimekit-ui/p-27478c0c.js +0 -1
  603. package/dist/realtimekit-ui/p-3ba364bd.entry.js +0 -1
  604. package/dist/realtimekit-ui/p-473e3bff.entry.js +0 -1
  605. package/dist/realtimekit-ui/p-7f175a9d.entry.js +0 -1
  606. package/dist/realtimekit-ui/p-9c733fd3.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as e,H as i,w as a,c as r}from"./p-0ee570cd.js";import{h as s}from"./p-3f882e7c.js";import{a as o,c as n,e as c}from"./p-9c733fd3.js";import{S as l}from"./p-27478c0c.js";const d=(t,e)=>{if(null==t)return;const i=Math.round(1.5),a=[...Array(3)].map(((t,a)=>{let r=a;return r>i-1&&(r=3-r-1),Math.round((r+1)/(i+1)*e)})),{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 e=Math.min(-Math.abs(1.2*t/10*s)+s/2,s/2-2.5),i=Math.max(2*(s/2-e),5);o.moveTo(n+l/2,e),o.lineTo(n+l/2,e+i),n+=c}o.stroke()};var h=function(t,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const p=class{constructor(e){t(this,e),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,e,i;null===(t=this.hark)||void 0===t||t.stop(),this.audioUpdateListener&&(null===(e=this.participant)||void 0===e||e.removeListener("audioUpdate",this.audioUpdateListener)),this.screenShareUpdateListener&&(null===(i=this.participant)||void 0===i||i.removeListener("screenShareUpdate",this.screenShareUpdateListener))}participantChanged(t){null!=t&&(this.audioUpdateListener=({audioEnabled:t,audioTrack:e})=>{var i;if(null===(i=this.hark)||void 0===i||i.stop(),t&&null!=e){this.audioEnabled=!0;const t=new MediaStream;t.addTrack(e),this.calcVolume(t),d(this.visualizer,0)}else this.volume=0,this.audioEnabled=!1},this.isScreenShare?(this.screenShareUpdateListener=({screenShareEnabled:t,screenShareTracks:e})=>{this.audioUpdateListener({audioEnabled:t&&null!=e.audio,audioTrack:e.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 e=this.volume;let i=Math.round(10**(t/115)*10);i<3&&(i=0);let a=Math.round((2*e+i)/3);e!==a&&(this.volume=a,d(this.visualizer,this.volume))}))}render(){return e(i,{key:"349422ab6a49e3c2dd84f0f41b51828dfd571d20"},e("div",{key:"7564acaefc95a3610db3020a8e0de44f9d8bff48",class:{hideMuted:this.hideMuted}},e("canvas",{key:"870ff1f131c8727ac52b6126fbb3c0080756c82d",width:"24",height:"24",class:{bars:!0,visible:this.audioEnabled},ref:t=>this.visualizer=t,part:"canvas"}),!this.isScreenShare&&!this.audioEnabled&&!0!==this.hideMuted&&e("rtk-icon",{key:"868d229037f6029ec95ab38b1345783a95fe5c6d",icon:this.iconPack.mic_off,part:"mic-off-icon"})))}static get watchers(){return{participant:["participantChanged"]}}};h([l()],p.prototype,"size",void 0),h([l()],p.prototype,"iconPack",void 0),h([l()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;width:-moz-fit-content;width:fit-content}.hideMuted{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,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const g=class{constructor(e){t(this,e),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:e})=>{this.meeting&&"audio"===t&&"ACCEPTED"===e&&(this.audioinputDevices=await this.meeting.self.getAudioDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e,i,a,r;null===(e=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===e||e.removeListener("stageStatusUpdate",this.stageStateListener),null===(i=this.meeting)||void 0===i||i.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){null!=t&&a((async()=>{var e,i;const{self:a,stage:r}=t,s=await t.self.getAudioDevices(),o=null===(e=t.self.getCurrentDevices())||void 0===e?void 0:e.audio;this.currentDevices={audio:o},this.canProduceAudio="ALLOWED"===this.meeting.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!==(i=s.find((t=>t.deviceId===o.deviceId)))&&void 0!==i?i:o,...s.filter((t=>t.deviceId!==o.deviceId))]:s}))}setDevice(t){var e;if(c(this.meeting))return;const i=this.audioinputDevices.find((e=>e.deviceId===t));null!=i&&(this.currentDevices={audio:i},null===(e=this.meeting)||void 0===e||e.self.setDevice(i))}render(){if(null==this.meeting)return null;let t=0;return e(i,null,this.canProduceAudio&&e("div",{part:"microphone-selection",class:"group container "+this.variant},e("label",{slot:"label"},"inline"!==this.variant&&this.t("settings.microphone_input"),e("rtk-icon",{icon:this.iconPack.mic_on,size:"sm"})),e("div",{class:"row"},e("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.audioinputDevices.map((({deviceId:i,label:a})=>{var r;return e("option",{value:i,selected:(null===(r=this.currentDevices.audio)||void 0===r?void 0:r.deviceId)===i},a||"Microphone "+ ++t)}))),e("slot",{name:"indicator"}))))}static get watchers(){return{meeting:["meetingChanged"]}}};v([l()],g.prototype,"meeting",void 0),v([l()],g.prototype,"size",void 0),v([l()],g.prototype,"iconPack",void 0),v([l()],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,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const k=class{constructor(e){t(this,e),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:e})=>{this.meeting&&"audio"===t&&"ACCEPTED"===e&&(this.speakerDevices=await this.meeting.self.getSpeakerDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e,i;null===(t=this.meeting)||void 0===t||t.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(i=this.meeting)||void 0===i||i.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdate)}meetingChanged(t){null!=t&&a((async()=>{var e,i;const{self:a}=t,r=await t.self.getSpeakerDevices(),s=null===(e=t.self.getCurrentDevices())||void 0===e?void 0:e.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!==(i=r.find((t=>t.deviceId===s.deviceId)))&&void 0!==i?i:s,...r.filter((t=>t.deviceId!==s.deviceId))]:r}))}testAudio(){var t;null===(t=this.testAudioEl)||void 0===t||t.play()}setDevice(t){var e,i;if(c(this.meeting))return;const a=this.speakerDevices.find((e=>e.deviceId===t));this.currentDevices={speaker:a},null!=a&&(null===(e=this.meeting)||void 0===e||e.self.setDevice(a),null===(i=this.testAudioEl)||void 0===i||i.setSinkId(a.deviceId))}render(){if(null==this.meeting)return null;let t=0;return e(i,null,e("audio",{preload:"auto",src:"https://assets.dyte.io/ui-kit/speaker-test.mp3",ref:t=>this.testAudioEl=t}),e("div",{class:"group "+this.variant,part:"speaker-selection"},this.speakerDevices.length>0&&!c(this.meeting)&&e("div",{class:"container"},e("label",null,"inline"!==this.variant&&this.t("settings.speaker_output"),e("rtk-icon",{icon:this.iconPack.speaker,size:"sm"})),e("div",{class:"row"},e("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.speakerDevices.map((({deviceId:i,label:a})=>{var r;return e("option",{value:i,selected:(null===(r=this.currentDevices.speaker)||void 0===r?void 0:r.deviceId)===i},a||"Speaker "+ ++t)}))))),"full"===this.variant&&e("rtk-button",{variant:"secondary",onClick:()=>this.testAudio()},e("rtk-icon",{icon:this.iconPack.speaker,slot:"start"}),this.t("test"))))}static get watchers(){return{meeting:["meetingChanged"]}}};u([l()],k.prototype,"meeting",void 0),u([l()],k.prototype,"states",void 0),u([l()],k.prototype,"size",void 0),u([l()],k.prototype,"iconPack",void 0),u([l()],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,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const b=class{constructor(e){t(this,e),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 e(i,{key:"d52144d4eeaf1f93dc3f83971f014e4e31e80c0e",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},e("div",{key:"aa51da6304b98be4d6d7c109ff488c1a684f6bb3",class:"switch",part:"switch"}))}static get watchers(){return{checked:["checkedChange"]}}};f([l()],b.prototype,"iconPack",void 0),f([l()],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{p 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 e,H as i,w as a,c as r}from"./p-0ee570cd.js";import{h as s}from"./p-3f882e7c.js";import{a as o,c as n,e as c}from"./p-d3bf4348.js";import{S as l}from"./p-dac97779.js";const d=(t,e)=>{if(null==t)return;const i=Math.round(1.5),a=[...Array(3)].map(((t,a)=>{let r=a;return r>i-1&&(r=3-r-1),Math.round((r+1)/(i+1)*e)})),{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 e=Math.min(-Math.abs(1.2*t/10*s)+s/2,s/2-2.5),i=Math.max(2*(s/2-e),5);o.moveTo(n+l/2,e),o.lineTo(n+l/2,e+i),n+=c}o.stroke()};var h=function(t,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const p=class{constructor(e){t(this,e),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,e,i;null===(t=this.hark)||void 0===t||t.stop(),this.audioUpdateListener&&(null===(e=this.participant)||void 0===e||e.removeListener("audioUpdate",this.audioUpdateListener)),this.screenShareUpdateListener&&(null===(i=this.participant)||void 0===i||i.removeListener("screenShareUpdate",this.screenShareUpdateListener))}participantChanged(t){null!=t&&(this.audioUpdateListener=({audioEnabled:t,audioTrack:e})=>{var i;if(null===(i=this.hark)||void 0===i||i.stop(),t&&null!=e){this.audioEnabled=!0;const t=new MediaStream;t.addTrack(e),this.calcVolume(t),d(this.visualizer,0)}else this.volume=0,this.audioEnabled=!1},this.isScreenShare?(this.screenShareUpdateListener=({screenShareEnabled:t,screenShareTracks:e})=>{this.audioUpdateListener({audioEnabled:t&&null!=e.audio,audioTrack:e.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 e=this.volume;let i=Math.round(10**(t/115)*10);i<3&&(i=0);let a=Math.round((2*e+i)/3);e!==a&&(this.volume=a,d(this.visualizer,this.volume))}))}render(){return e(i,{key:"349422ab6a49e3c2dd84f0f41b51828dfd571d20"},e("div",{key:"7564acaefc95a3610db3020a8e0de44f9d8bff48",class:{hideMuted:this.hideMuted}},e("canvas",{key:"870ff1f131c8727ac52b6126fbb3c0080756c82d",width:"24",height:"24",class:{bars:!0,visible:this.audioEnabled},ref:t=>this.visualizer=t,part:"canvas"}),!this.isScreenShare&&!this.audioEnabled&&!0!==this.hideMuted&&e("rtk-icon",{key:"868d229037f6029ec95ab38b1345783a95fe5c6d",icon:this.iconPack.mic_off,part:"mic-off-icon"})))}static get watchers(){return{participant:["participantChanged"]}}};h([l()],p.prototype,"size",void 0),h([l()],p.prototype,"iconPack",void 0),h([l()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;width:-moz-fit-content;width:fit-content}.hideMuted{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,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const g=class{constructor(e){t(this,e),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:e})=>{this.meeting&&"audio"===t&&"ACCEPTED"===e&&(this.audioinputDevices=await this.meeting.self.getAudioDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e,i,a,r;null===(e=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===e||e.removeListener("stageStatusUpdate",this.stageStateListener),null===(i=this.meeting)||void 0===i||i.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){null!=t&&a((async()=>{var e,i;const{self:a,stage:r}=t,s=await t.self.getAudioDevices(),o=null===(e=t.self.getCurrentDevices())||void 0===e?void 0:e.audio;this.currentDevices={audio:o},this.canProduceAudio="ALLOWED"===this.meeting.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!==(i=s.find((t=>t.deviceId===o.deviceId)))&&void 0!==i?i:o,...s.filter((t=>t.deviceId!==o.deviceId))]:s}))}setDevice(t){var e;if(c(this.meeting))return;const i=this.audioinputDevices.find((e=>e.deviceId===t));null!=i&&(this.currentDevices={audio:i},null===(e=this.meeting)||void 0===e||e.self.setDevice(i))}render(){if(null==this.meeting)return null;let t=0;return e(i,null,this.canProduceAudio&&e("div",{part:"microphone-selection",class:"group container "+this.variant},e("label",{slot:"label"},"inline"!==this.variant&&this.t("settings.microphone_input"),e("rtk-icon",{icon:this.iconPack.mic_on,size:"sm"})),e("div",{class:"row"},e("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.audioinputDevices.map((({deviceId:i,label:a})=>{var r;return e("option",{value:i,selected:(null===(r=this.currentDevices.audio)||void 0===r?void 0:r.deviceId)===i},a||"Microphone "+ ++t)}))),e("slot",{name:"indicator"}))))}static get watchers(){return{meeting:["meetingChanged"]}}};v([l()],g.prototype,"meeting",void 0),v([l()],g.prototype,"size",void 0),v([l()],g.prototype,"iconPack",void 0),v([l()],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,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const k=class{constructor(e){t(this,e),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:e})=>{this.meeting&&"audio"===t&&"ACCEPTED"===e&&(this.speakerDevices=await this.meeting.self.getSpeakerDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e,i;null===(t=this.meeting)||void 0===t||t.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(i=this.meeting)||void 0===i||i.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdate)}meetingChanged(t){null!=t&&a((async()=>{var e,i;const{self:a}=t,r=await t.self.getSpeakerDevices(),s=null===(e=t.self.getCurrentDevices())||void 0===e?void 0:e.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!==(i=r.find((t=>t.deviceId===s.deviceId)))&&void 0!==i?i:s,...r.filter((t=>t.deviceId!==s.deviceId))]:r}))}testAudio(){var t;null===(t=this.testAudioEl)||void 0===t||t.play()}setDevice(t){var e,i;if(c(this.meeting))return;const a=this.speakerDevices.find((e=>e.deviceId===t));this.currentDevices={speaker:a},null!=a&&(null===(e=this.meeting)||void 0===e||e.self.setDevice(a),null===(i=this.testAudioEl)||void 0===i||i.setSinkId(a.deviceId))}render(){if(null==this.meeting)return null;let t=0;return e(i,null,e("audio",{preload:"auto",src:"https://assets.dyte.io/ui-kit/speaker-test.mp3",ref:t=>this.testAudioEl=t}),e("div",{class:"group "+this.variant,part:"speaker-selection"},this.speakerDevices.length>0&&!c(this.meeting)&&e("div",{class:"container"},e("label",null,"inline"!==this.variant&&this.t("settings.speaker_output"),e("rtk-icon",{icon:this.iconPack.speaker,size:"sm"})),e("div",{class:"row"},e("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.speakerDevices.map((({deviceId:i,label:a})=>{var r;return e("option",{value:i,selected:(null===(r=this.currentDevices.speaker)||void 0===r?void 0:r.deviceId)===i},a||"Speaker "+ ++t)}))))),"full"===this.variant&&e("rtk-button",{variant:"secondary",onClick:()=>this.testAudio()},e("rtk-icon",{icon:this.iconPack.speaker,slot:"start"}),this.t("test"))))}static get watchers(){return{meeting:["meetingChanged"]}}};u([l()],k.prototype,"meeting",void 0),u([l()],k.prototype,"states",void 0),u([l()],k.prototype,"size",void 0),u([l()],k.prototype,"iconPack",void 0),u([l()],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,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const b=class{constructor(e){t(this,e),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 e(i,{key:"81e9d824ee0dff9a77250a93ef822c1a46fa80a8",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},e("div",{key:"32d41bcd264ad0b9484eb994c8880935d499ebcf",class:"switch",part:"switch"}))}static get watchers(){return{checked:["checkedChange"]}}};f([l()],b.prototype,"iconPack",void 0),f([l()],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{p 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,c as i,h as s,H as e}from"./p-0ee570cd.js";import{a as n,c as a}from"./p-9c733fd3.js";import{b as l}from"./p-41382f52.js";import{S as o}from"./p-27478c0c.js";var h=function(t,i,s,e){var n,a=arguments.length,l=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(l=(a<3?n(l):a>3?n(i,s,l):n(i,s))||l);return a>3&&l&&Object.defineProperty(i,s,l),l};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=l(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;null!=t&&(this.canViewPlugins=l(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,activeAI:!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"],states:["statesChanged"],pluginsActive:["handlePluginsActiveChange"]}}};h([o()],r.prototype,"meeting",void 0),h([o()],r.prototype,"states",void 0),h([o()],r.prototype,"size",void 0),h([o()],r.prototype,"iconPack",void 0),h([o()],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,c as i,h as s,H as e}from"./p-0ee570cd.js";import{a as n,c as a}from"./p-d3bf4348.js";import{b as l}from"./p-bf5ecc7c.js";import{S as o}from"./p-dac97779.js";var h=function(t,i,s,e){var n,a=arguments.length,l=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(l=(a<3?n(l):a>3?n(i,s,l):n(i,s))||l);return a>3&&l&&Object.defineProperty(i,s,l),l};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=l(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;null!=t&&(this.canViewPlugins=l(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,activeAI:!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"],states:["statesChanged"],pluginsActive:["handlePluginsActiveChange"]}}};h([o()],r.prototype,"meeting",void 0),h([o()],r.prototype,"states",void 0),h([o()],r.prototype,"size",void 0),h([o()],r.prototype,"iconPack",void 0),h([o()],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 a,H as e}from"./p-0ee570cd.js";import{d as i,a as s,c as r}from"./p-9c733fd3.js";import{R as n}from"./p-c8eaa707.js";import{S as o}from"./p-27478c0c.js";var c=function(t,a,e,i){var s,r=arguments.length,n=r<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,a,e,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(n=(r<3?s(n):r>3?s(a,e,n):s(a,e))||n);return r>3&&n&&Object.defineProperty(a,e,n),n};const d=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:"0b3c18e3927465e198c26f79d810dadc31ebb74b"},!this.disableRender&&a(n,{key:"480d2f17a6d831dabb3d39abceb33fbc1aa6d78d",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:"67f89c4a3574ba22976d3aa57268aabe4ce78d2a"}))}};c([o()],d.prototype,"meeting",void 0),c([o()],d.prototype,"states",void 0),c([o()],d.prototype,"iconPack",void 0),c([o()],d.prototype,"t",void 0),c([o()],d.prototype,"size",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: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{d as rtk_header}
1
+ import{r as t,h as a,H as e}from"./p-0ee570cd.js";import{d as i,a as s,c as r}from"./p-d3bf4348.js";import{R as n}from"./p-c8eaa707.js";import{S as o}from"./p-dac97779.js";var d=function(t,a,e,i){var s,r=arguments.length,n=r<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,a,e,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(n=(r<3?s(n):r>3?s(a,e,n):s(a,e))||n);return r>3&&n&&Object.defineProperty(a,e,n),n};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:"0b3c18e3927465e198c26f79d810dadc31ebb74b"},!this.disableRender&&a(n,{key:"480d2f17a6d831dabb3d39abceb33fbc1aa6d78d",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:"67f89c4a3574ba22976d3aa57268aabe4ce78d2a"}))}};d([o()],c.prototype,"meeting",void 0),d([o()],c.prototype,"states",void 0),d([o()],c.prototype,"iconPack",void 0),d([o()],c.prototype,"t",void 0),d([o()],c.prototype,"size",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}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as r,H as o}from"./p-0ee570cd.js";import{a,c}from"./p-d3bf4348.js";import{S as i}from"./p-dac97779.js";var s=function(t,e,r,o){var a,c=arguments.length,i=c<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(i=(c<3?a(i):c>3?a(e,r,i):a(e,r))||i);return c>3&&i&&Object.defineProperty(e,r,i),i};const d=class{constructor(r){t(this,r),this.onDropCallback=e(this,"dropCallback",7),this.iconPack=a,this.t=c(),this.dropzoneActivated=!1}connectedCallback(){if(!this.hostEl)throw new Error("hostEl prop is required");this.hostEl.addEventListener("dragover",(t=>{t.preventDefault(),this.dropzoneActivated=!0})),this.hostEl.addEventListener("dragleave",(()=>{this.dropzoneActivated=!1})),this.hostEl.addEventListener("drop",(t=>{t.preventDefault(),this.dropzoneActivated=!1,this.onDropCallback.emit(t)}))}render(){return r(o,{key:"197cf2a1b1deff5e45125b4e489d020d474a02dd"},r("div",{key:"84e88151d3080dc0bd9f44f22b401d605f7f286f",id:"dropzone",class:{active:this.dropzoneActivated},part:"dropzone"},r("rtk-icon",{key:"debea53f3376bb54bca692aed0450cf218f576d3",icon:this.iconPack.attach}),r("p",{key:"19b161b26bd4acc13447c47f5ee17b9645f91cc3"},this.t("chat.send_attachment"))))}};s([i()],d.prototype,"iconPack",void 0),s([i()],d.prototype,"t",void 0),d.style="#dropzone{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;display:none;flex-direction:column;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}#dropzone.active{display:flex;animation:0.2s slide-up ease-in}";export{d as rtk_file_dropzone}
@@ -1 +1 @@
1
- import{r as t,c as e,h as a,H as i}from"./p-0ee570cd.js";import{a as s,c as o}from"./p-9c733fd3.js";import{S as r}from"./p-27478c0c.js";var n=function(t,e,a,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(o<3?s(r):o>3?s(e,a,r):s(e,a))||r);return o>3&&r&&Object.defineProperty(e,a,r),r};const c=class{constructor(a){t(this,a),this.stateUpdate=e(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 a(i,{key:"2ce38b68e83d44e924766230f74b18111db72771",label:t},a("rtk-controlbar-button",{key:"5bdc59145416c548a980178df00225781bbbadcc",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,"size",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_leave_button}
1
+ import{r as t,c as a,h as e,H as i}from"./p-0ee570cd.js";import{a as s,c as o}from"./p-d3bf4348.js";import{S as r}from"./p-dac97779.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:"2ce38b68e83d44e924766230f74b18111db72771",label:t},e("rtk-controlbar-button",{key:"5bdc59145416c548a980178df00225781bbbadcc",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,"size",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_leave_button}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as e,a as h}from"./p-0ee570cd.js";import{d as n,l as o,u as a}from"./p-9c733fd3.js";import{g as d,p as r,d as c}from"./p-4ad4a43b.js";import{g}from"./p-96be234f.js";import"./p-46923b34.js";import"./p-2c3cda13.js";const m=class{constructor(s){t(this,s),this.statesUpdate=i(this,"rtkStatesUpdate",7),this.config=n,this.showSetupScreen=!1,this.noRenderUntilMeeting=!1,this.handleResize=()=>{this.size=g(this.host.clientWidth)},this.loadTheme=()=>{var t;if(this.config===n){const{config:t}=d(this.meeting.self.config,this.meeting);this.config=t}(null===(t=this.config)||void 0===t?void 0:t.designTokens)&&r(document.documentElement,this.config.designTokens)},this.roomJoinedListener=()=>{this.updateStates({meeting:"joined"})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:i})=>{!["audio","video"].includes(t)||"DENIED"!==i&&"SYSTEM_DENIED"!==i||!0===o.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),1e4)},this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},o.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}listenState(t){this.updateStates(t.detail)}updateStates(t){const i=Object.assign({},o.states);o.states=c(i,t),this.statesUpdate.emit(o.states)}connectedCallback(){"undefined"!=typeof window&&(this.authErrorListener=t=>{t.detail.message.includes("401")&&this.updateStates({meeting:"ended",roomLeftState:"unauthorized"})},window.addEventListener("rtkError",this.authErrorListener)),this.onMeetingChange(this.meeting),this.onIconPackChange(this.iconPack),this.onTChange(this.t),this.onConfigChange(this.config),this.onSizeChange(this.size),this.resizeObserver=new ResizeObserver((()=>this.handleResize())),this.resizeObserver.observe(this.host)}disconnectedCallback(){this.resizeObserver.disconnect(),window.removeEventListener("rtkError",this.authErrorListener),this.meeting&&(this.meeting.self.removeListener("roomLeft",this.roomLeftListener),this.meeting.self.removeListener("roomJoined",this.roomJoinedListener),this.meeting.self.removeListener("waitlisted",this.waitlistedListener),this.meeting.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.meeting.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}onMeetingChange(t){a.state.meeting=t,t&&(this.updateStates({viewType:t.meta.viewType}),this.loadTheme(),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.supportsConnectedMeetings&&t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.joinRoom(),window.removeEventListener("rtkError",this.authErrorListener))}onIconPackChange(t){a.state.iconPack=t}onTChange(t){a.state.t=t}onConfigChange(t){a.state.config=t}onSizeChange(t){a.state.size=t}render(){return s(e,{key:"a421f032438ed827ad90bafeafa6c6029eea1bcb"},this.noRenderUntilMeeting&&!this.meeting?null:s("slot",null))}get host(){return h(this)}static get watchers(){return{meeting:["onMeetingChange"],iconPack:["onIconPackChange"],t:["onTChange"],config:["onConfigChange"],size:["onSizeChange"]}}};m.style="rtk-ui-provider{display:block;width:100%;height:100%}";export{m as rtk_ui_provider}
1
+ import{r as t,c as i,h as s,H as e,a as h}from"./p-0ee570cd.js";import{d as n,l as o,u as a}from"./p-d3bf4348.js";import{g as r,p as d,d as c}from"./p-a4922241.js";import{g}from"./p-96be234f.js";import"./p-46923b34.js";import"./p-2c3cda13.js";const m=class{constructor(s){t(this,s),this.statesUpdate=i(this,"rtkStatesUpdate",7),this.config=n,this.showSetupScreen=!1,this.noRenderUntilMeeting=!1,this.handleResize=()=>{this.size=g(this.host.clientWidth)},this.loadTheme=()=>{var t;if(this.config===n){const{config:t}=r(this.meeting.self.config,this.meeting);this.config=t}(null===(t=this.config)||void 0===t?void 0:t.designTokens)&&d(document.documentElement,this.config.designTokens)},this.roomJoinedListener=()=>{this.updateStates({meeting:"joined"})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:i})=>{!["audio","video"].includes(t)||"DENIED"!==i&&"SYSTEM_DENIED"!==i||!0===o.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),1e4)},this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},o.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}listenState(t){this.updateStates(t.detail)}updateStates(t){const i=Object.assign({},o.states);o.states=c(i,t),this.statesUpdate.emit(o.states)}connectedCallback(){"undefined"!=typeof window&&(this.authErrorListener=t=>{t.detail.message.includes("401")&&this.updateStates({meeting:"ended",roomLeftState:"unauthorized"})},window.addEventListener("rtkError",this.authErrorListener)),this.onMeetingChange(this.meeting),this.onIconPackChange(this.iconPack),this.onTChange(this.t),this.onConfigChange(this.config),this.onSizeChange(this.size),this.resizeObserver=new ResizeObserver((()=>this.handleResize())),this.resizeObserver.observe(this.host)}disconnectedCallback(){this.resizeObserver.disconnect(),window.removeEventListener("rtkError",this.authErrorListener),this.meeting&&(this.meeting.self.removeListener("roomLeft",this.roomLeftListener),this.meeting.self.removeListener("roomJoined",this.roomJoinedListener),this.meeting.self.removeListener("waitlisted",this.waitlistedListener),this.meeting.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.meeting.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}onMeetingChange(t){a.state.meeting=t,t&&(this.updateStates({viewType:t.meta.viewType}),this.loadTheme(),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.supportsConnectedMeetings&&t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.joinRoom(),window.removeEventListener("rtkError",this.authErrorListener))}onIconPackChange(t){a.state.iconPack=t}onTChange(t){a.state.t=t}onConfigChange(t){a.state.config=t}onSizeChange(t){a.state.size=t}render(){return s(e,{key:"255d40656744b2906c20a139a1af87c66acc310a"},this.noRenderUntilMeeting&&!this.meeting?null:s("slot",null))}get host(){return h(this)}static get watchers(){return{meeting:["onMeetingChange"],iconPack:["onIconPackChange"],t:["onTChange"],config:["onConfigChange"],size:["onSizeChange"]}}};m.style="rtk-ui-provider{display:block;width:100%;height:100%}";export{m as rtk_ui_provider}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,F as r,H as o}from"./p-0ee570cd.js";import{s as a}from"./p-338c7261.js";import{d as n,a as c,c as s,k as d}from"./p-d3bf4348.js";import{R as l}from"./p-c8eaa707.js";import{S as p}from"./p-dac97779.js";var b=function(t,e,i,r){var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(n=(a<3?o(n):a>3?o(e,i,n):o(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const h=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.config=n,this.iconPack=c,this.t=s(),this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,e,i;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){this.isJoining=!0,null===(e=this.meeting)||void 0===e||e.self.setName(this.displayName),d.setItem("rtk-display-name",this.displayName);try{await(null===(i=this.meeting)||void 0===i?void 0:i.joinRoom())}catch(t){this.isJoining=!1}}}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting.meta.removeListener("socketConnectionUpdate",this.socketStateUpdate)}componentDidLoad(){var t;null===(t=this.inputEl)||void 0===t||t.focus()}meetingChanged(t){var e,i,r;t&&(this.connectionState=null===(e=t.meta.socketState)||void 0===e?void 0:e.state,this.canEditName=null===(i=t.self.permissions.canEditDisplayName)||void 0===i||i,this.displayName=(null===(r=t.self.name)||void 0===r?void 0:r.trim())||(this.canEditName?"":"Participant"),t.meta.addListener("socketConnectionUpdate",this.socketStateUpdate))}render(){var t,e,n,c;const s=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,d={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},p=null===(e=this.meeting)||void 0===e?void 0:e.meta.meetingTitle.trim();return i(o,{key:"ea88610290c5f721a9fe638928855cc31bcb975f"},i("div",{key:"321f2a690e22c14c627e603b4f7d590800f19911",class:"container"},i("div",{key:"c4501f3c49417145e34024c05e8df52174289138",class:"container-tile"},i(l,{key:"66514020274bb3a6df00c94e75e14785079853c1",element:"rtk-participant-tile",defaults:d,props:{participant:null===(n=this.meeting)||void 0===n?void 0:n.self,size:"md",isPreview:!0},childProps:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md"},deepProps:!0}),i("div",{key:"e3f6ec148cc113d3efef3955d9bb96c68c36e9a7",class:"media-selectors"},i("rtk-microphone-selector",Object.assign({key:"450cc901acd253dec2c40c1d2c1ff27441fcbb6c"},d,{variant:"inline"})),i("rtk-camera-selector",Object.assign({key:"cf38bfe66aac01a51845d619521c747727f926ac"},d,{variant:"inline"})),i("rtk-speaker-selector",Object.assign({key:"33357804c4d4ba359f7348f853cd25ef1ee0f442"},d,{variant:"inline"})))),i("div",{key:"bff07c087cb1c5f6db822b38fe9485c4e69d4ecd",class:"metadata"},p&&""!==p&&i("div",{key:"e9d6882f1d79b1687883a9de7a23b9ca89142c0a",class:"meeting-title"},p),this.canEditName?i(r,null,i("div",{class:"join-as"},this.t("setup_screen.join_in_as")),i("input",{placeholder:this.t("setup_screen.your_name"),value:this.displayName,spellcheck:!1,autoFocus:!0,ref:t=>{this.inputEl=t},onInput:t=>{this.displayName=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.join()}})):i("div",{class:"uneditable-name"},i("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",i("div",{class:"name"},a(this.displayName,20))),i("rtk-button",{key:"d6d629f03ccabca7823c6b78e3b4dc42c2db9ecc",size:"lg",kind:"wide",onClick:this.join,disabled:s},this.isJoining?i("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),"connected"!==this.connectionState&&i("div",{key:"92c30fa7cdef877ff80cbc74806e6824c725d284",class:"no-network-badge"},i("rtk-icon",{key:"615e5873958f0e7502e6fbcefdca8b34892d4d2b",size:"md",variant:"danger",icon:this.iconPack.disconnected}),this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")))))}static get watchers(){return{meeting:["meetingChanged"]}}};b([p()],h.prototype,"meeting",void 0),b([p()],h.prototype,"states",void 0),b([p()],h.prototype,"size",void 0),b([p()],h.prototype,"iconPack",void 0),b([p()],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{box-sizing:border-box;padding:var(--rtk-space-4, 16px);height:100%;min-height:100%;width:100%;display:flex;place-items:center;justify-content:center;--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-700, 44 44 44))}.container{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-evenly;gap:var(--rtk-space-4, 16px)}.container-tile{display:flex;height:100%;width:100%;max-width:584px;flex-direction:column;gap:var(--rtk-space-2, 8px)}.metadata{display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;align-items:center;text-align:center}.meeting-title{margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:24px;font-weight:500}.join-as{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:16px;letter-spacing:-0.025em;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.uneditable-name{margin-bottom:var(--rtk-space-6, 24px)}.uneditable-name .text,.uneditable-name .name{display:inline-block}.uneditable-name .name{font-size:16px;font-weight:500}input{margin-bottom:var(--rtk-space-6, 24px);display:block;height:var(--rtk-space-10, 40px);width:100%;max-width:var(--rtk-space-80, 320px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));box-sizing:border-box;font-size:16px;outline:2px solid transparent;outline-offset:2px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}rtk-spinner{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--icon-size:var(--rtk-space-8, 32px)}:host([size='sm']) .container,:host([size='md']) .container{height:100%;flex-direction:column;justify-content:space-evenly}:host([size='sm']) .container-tile,:host([size='md']) .container-tile{height:-moz-min-content;height:min-content;flex-direction:column;justify-content:center}rtk-participant-tile{height:auto;width:100%;max-width:584px}.media-selectors{display:flex;flex-direction:column;justify-content:space-between}.media-selectors .row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr))}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}";export{h as rtk_setup_screen}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as a}from"./p-0ee570cd.js";import{d as r,a as e,c as o}from"./p-9c733fd3.js";import{c as h,d as n,a as l,b as c}from"./p-41382f52.js";import{S as d}from"./p-27478c0c.js";import{R as p}from"./p-c8eaa707.js";var v=function(t,i,s,a){var r,e=arguments.length,o=e<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,a);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(o=(e<3?r(o):e>3?r(i,s,o):r(i,s))||o);return e>3&&o&&Object.defineProperty(i,s,o),o};const b=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=r,this.iconPack=e,this.t=o(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var i,s;this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(s=null===(i=this.meeting)||void 0===i?void 0:i.stage)||void 0===s||s.on("stageStatusUpdate",this.onStageStatusUpdate)}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const i=[];h(t)&&i.push({id:"chat",name:this.t("chat")}),n(t)&&i.push({id:"polls",name:this.t("polls")}),l(t)&&i.push({id:"participants",name:this.t("participants")}),c(t)&&i.push({id:"plugins",name:this.t("plugins")}),this.enabledSections=i}render(){var t;const i={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=i.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?s(a,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},s("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&s("div",{class:"pinned-state",slot:"pinned-state"},s("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},s("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===i.states.sidebar&&s(p,{element:"rtk-chat",defaults:i,props:{slot:"chat"}}),"polls"===i.states.sidebar&&s("rtk-polls",Object.assign({},i,{slot:"polls"})),"participants"===i.states.sidebar&&s(p,{element:"rtk-participants",defaults:i,props:{slot:"participants"}}),"plugins"===i.states.sidebar&&s("rtk-plugins",Object.assign({},i,{slot:"plugins"})))):null}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],view:["viewChanged"]}}};v([d()],b.prototype,"meeting",void 0),v([d()],b.prototype,"states",void 0),v([d()],b.prototype,"iconPack",void 0),v([d()],b.prototype,"t",void 0),v([d()],b.prototype,"size",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{height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){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%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}";export{b as rtk_sidebar}
1
+ import{r as t,c as i,h as s,H as a}from"./p-0ee570cd.js";import{d as r,a as e,c as o}from"./p-d3bf4348.js";import{c as h,d as n,a as l,b as c}from"./p-bf5ecc7c.js";import{S as d}from"./p-dac97779.js";import{R as p}from"./p-c8eaa707.js";var v=function(t,i,s,a){var r,e=arguments.length,o=e<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,a);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(o=(e<3?r(o):e>3?r(i,s,o):r(i,s))||o);return e>3&&o&&Object.defineProperty(i,s,o),o};const b=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=r,this.iconPack=e,this.t=o(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var i,s;this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(s=null===(i=this.meeting)||void 0===i?void 0:i.stage)||void 0===s||s.on("stageStatusUpdate",this.onStageStatusUpdate)}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const i=[];h(t)&&i.push({id:"chat",name:this.t("chat")}),n(t)&&i.push({id:"polls",name:this.t("polls")}),l(t)&&i.push({id:"participants",name:this.t("participants")}),c(t)&&i.push({id:"plugins",name:this.t("plugins")}),this.enabledSections=i}render(){var t;const i={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=i.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?s(a,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},s("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&s("div",{class:"pinned-state",slot:"pinned-state"},s("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},s("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===i.states.sidebar&&s(p,{element:"rtk-chat",defaults:i,props:{slot:"chat"}}),"polls"===i.states.sidebar&&s("rtk-polls",Object.assign({},i,{slot:"polls"})),"participants"===i.states.sidebar&&s(p,{element:"rtk-participants",defaults:i,props:{slot:"participants"}}),"plugins"===i.states.sidebar&&s("rtk-plugins",Object.assign({},i,{slot:"plugins"})))):null}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],view:["viewChanged"]}}};v([d()],b.prototype,"meeting",void 0),v([d()],b.prototype,"states",void 0),v([d()],b.prototype,"iconPack",void 0),v([d()],b.prototype,"t",void 0),v([d()],b.prototype,"size",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{height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){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%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}";export{b as rtk_sidebar}
@@ -1 +1 @@
1
- import{q as r}from"./p-9c733fd3.js";const t=r=>{if(r&&!r.chat)return!1;const{chatPublic:t,chatPrivate:n}=r.self.permissions;return t.canSend||t.canReceive||t.text||t.files||n.canSend||n.canReceive||n.files||n.text},n=r=>{if(r&&!r.polls)return!1;const{polls:t}=r.self.permissions;return t.canCreate||t.canView||t.canVote},u=r=>{var t;if(!(null===(t=r.self.permissions)||void 0===t?void 0:t.showParticipantList))return!1;if(r&&!r.participants)return!1;const n=null==r?void 0:r.self.config;return!(n&&!n.controlBar.elements.participants)},i=t=>{if(r(t))return!1;if(t&&!t.plugins)return!1;if("LIVESTREAM"===t.meta.viewType)return"ON_STAGE"===t.stage.status;const{plugins:n}=t.self.permissions;return n.canClose||n.canStart};export{u as a,i as b,t as c,n as d}
1
+ import{q as r}from"./p-d3bf4348.js";const t=r=>{if(r&&!r.chat)return!1;const{chatPublic:t,chatPrivate:n}=r.self.permissions;return t.canSend||t.canReceive||t.text||t.files||n.canSend||n.canReceive||n.files||n.text},n=r=>{if(r&&!r.polls)return!1;const{polls:t}=r.self.permissions;return t.canCreate||t.canView||t.canVote},u=r=>{var t;if(!(null===(t=r.self.permissions)||void 0===t?void 0:t.showParticipantList))return!1;if(r&&!r.participants)return!1;const n=null==r?void 0:r.self.config;return!(n&&!n.controlBar.elements.participants)},i=t=>{if(r(t))return!1;if(t&&!t.plugins)return!1;if("LIVESTREAM"===t.meta.viewType)return"ON_STAGE"===t.stage.status;const{plugins:n}=t.self.permissions;return n.canClose||n.canStart};export{u as a,i as b,t as c,n as d}
@@ -1 +1 @@
1
- import{r as t,c as e,h as i,H as o}from"./p-0ee570cd.js";import{c as s,a}from"./p-9c733fd3.js";import{S as r}from"./p-27478c0c.js";var c=function(t,e,i,o){var s,a=arguments.length,r=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(r=(a<3?s(r):a>3?s(e,i,r):s(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};const n=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.t=s(),this.iconPack=a}toggleDebugger(){var t;this.stateUpdate.emit({activeDebugger:!(null===(t=this.states)||void 0===t?void 0:t.activeDebugger),activeMoreMenu:!1})}render(){return i(o,{key:"e46722c024802f6c96cebb487c9049e8834c48f8",title:this.t("Troubleshooting")},i("rtk-controlbar-button",{key:"ee3d60dd6993d2757f763a0ae8ba173887c9ceba",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleDebugger(),icon:this.iconPack.debug,label:this.t("Troubleshooting"),variant:this.variant}))}};c([r()],n.prototype,"meeting",void 0),c([r()],n.prototype,"states",void 0),c([r()],n.prototype,"t",void 0),c([r()],n.prototype,"iconPack",void 0),c([r()],n.prototype,"size",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:block}";export{n as rtk_debugger_toggle}
1
+ import{r as t,c as e,h as i,H as o}from"./p-0ee570cd.js";import{c as s,a}from"./p-d3bf4348.js";import{S as r}from"./p-dac97779.js";var n=function(t,e,i,o){var s,a=arguments.length,r=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(a<3?s(r):a>3?s(e,i,r):s(e,i))||r);return a>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.t=s(),this.iconPack=a}toggleDebugger(){var t;this.stateUpdate.emit({activeDebugger:!(null===(t=this.states)||void 0===t?void 0:t.activeDebugger),activeMoreMenu:!1})}render(){return i(o,{key:"e46722c024802f6c96cebb487c9049e8834c48f8",title:this.t("Troubleshooting")},i("rtk-controlbar-button",{key:"ee3d60dd6993d2757f763a0ae8ba173887c9ceba",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleDebugger(),icon:this.iconPack.debug,label:this.t("Troubleshooting"),variant:this.variant}))}};n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"t",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"size",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_debugger_toggle}
@@ -0,0 +1 @@
1
+ import{h as r}from"./p-0ee570cd.js";import{M as e,j as n,s,f as t}from"./p-da59b75c.js";const l=e=>e.map((e=>{switch(e.type){case"a":if("string"==typeof e.content)return r("a",{class:"link",href:n=e.content,target:"_blank",rel:"noopener noreferrer"},n);case"b":return(e=>r("b",null,"string"==typeof e?e:l(e)))(e.content);case"i":return(e=>r("i",null,"string"==typeof e?e:l(e)))(e.content);case"s":return(e=>"string"==typeof e?r("s",null,e):r("b",null,l(e)))(e.content);case"q":return r("span",{class:"block-quote"});default:return(e=>"string"==typeof e?e:r("p",null,l(e)))(e.content)}var n})),a=({message:a})=>{const o=a.slice(0,e),u=n(o,!0),c=s(o);return r("p",null,0!==u.length&&r("blockquote",null,u.split("\n").map((e=>{const n=t(e);return r("p",null,l(n))}))),c.split("\n").map((e=>{const n=t(e);return r("p",null,l(n))})))};export{a as T}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as e,a}from"./p-0ee570cd.js";import{a as h,c as n,d as c,F as o}from"./p-9c733fd3.js";import{l as r,R as d}from"./p-c8eaa707.js";import{f as l,s as f}from"./p-338c7261.js";import{c as p,b,o as v,s as k,h as m}from"./p-31964573.js";import{S as u}from"./p-27478c0c.js";import{d as g}from"./p-a08b5a59.js";import"./p-2c3cda13.js";var y=function(t,i,s,e){var a,h=arguments.length,n=h<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 c=t.length-1;c>=0;c--)(a=t[c])&&(n=(h<3?a(n):h>3?a(i,s,n):a(i,s))||n);return h>3&&n&&Object.defineProperty(i,s,n),n};const x=class{constructor(s){t(this,s),this.rtkSendNotification=i(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=h,this.t=n(),this.config=c,this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");p(t,i,{placement:"bottom-end",middleware:[b({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),v(4),k({padding:8}),m()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){var i,s,e,a,h,n,c;if(null!=t){const{self:r}=t;this.canDisableParticipantAudio=r.permissions.canAllowParticipantAudio||r.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=r.permissions.canAllowParticipantVideo||r.permissions.canDisableParticipantVideo,this.canKickParticipant=r.permissions.kickParticipant&&!0!==(null===(i=this.meeting)||void 0===i?void 0:i.__internals__.features.hasFeature(o.DISABLE_KICKING))&&(!0!==(null===(s=this.meeting)||void 0===s?void 0:s.__internals__.features.hasFeature(o.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(e=this.participant)||void 0===e?void 0:e.presetName)),this.canPinParticipant=r.permissions.pinParticipant,this.canAllowParticipantOnStage=r.permissions.acceptStageRequests&&r.permissions.stageEnabled&&(!0!==(null===(a=this.meeting)||void 0===a?void 0:a.__internals__.features.hasFeature(o.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(h=this.participant)||void 0===h?void 0:h.presetName))&&(!0!==(null===(n=this.meeting)||void 0===n?void 0:n.__internals__.features.hasFeature(o.CANTINVITE_VIEWER))||"webinar_viewer"!==(null===(c=this.participant)||void 0===c?void 0:c.presetName)),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,a,h,n,c,o,p,b;const v="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),k=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,m=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!v||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,u=l((null===(a=this.participant)||void 0===a?void 0:a.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(h=this.meeting)||void 0===h?void 0:h.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return s(e,{key:"9a717049edf15cfec3e497a30a37f873dcb37fd8"},s("div",{class:"left",key:null===(n=this.participant)||void 0===n?void 0:n.id},s("rtk-avatar",{key:"4e161f74ce11be1050c95556065867289ab618b2",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),s("p",{key:"c1e71db1ba1ed2e8defbbb9802c22df8b64670fc",class:"name",title:u},f(u,16)," ",(null===(c=this.meeting)||void 0===c?void 0:c.self.id)===(null===(o=this.participant)||void 0===o?void 0:o.id)&&this.t("(you)"))),"sidebar"===this.view&&s("div",{key:"165e14ba9f5e063820c6f440dc9eb03344e7bcdf",class:"right"},g&&s("rtk-icon",{key:"d6651dc9e7eb12ed56742f08096ef239bd4429c1",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!v&&s("rtk-icon",{key:"89506d158acdb3e2629a7a2ab51aef475f9f3b75",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(m||r({element:"rtk-participant",defaults:y,childProps:{participant:this.participant}})>0)&&s("div",{key:"202a957dfe004c8c1f2195bf93c9ce9ce167a96f",class:"menu"},s("span",{key:"a01163f9da5fab4a1d7922f8abfe5a2e4a4dcf2c",id:"trigger",onClick:this.onMenuToggle},s("rtk-button",{key:"144e0c418b6a038d560f8087825471b649229ecb",variant:"ghost",kind:"icon",slot:"trigger"},s("rtk-icon",{key:"18abb20a0969e0332d8fe2b5dcfe41bfc66955f7",class:"more",icon:this.iconPack.more_vertical}))),s("span",{key:"3a22ebe5a21228b6ea6e15933d961b24085dce44",id:"menu-list"},this.menuOpen&&s("rtk-menu-list",{key:"86688ad10d1440c5b534fe2f002225e0368ae24a",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!v&&s("rtk-menu-item",{key:"c22833b86d8583bdaec723a269afa7298cb0ca0d",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},s("rtk-icon",{key:"9cdde53aaffca1f0042a69048b77f31fc10c69d6",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),k&&s("rtk-menu-item",{key:"b651953a9b02065ca223c46dd7dbadedc8401031",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},s("rtk-icon",{key:"e63383cca42314f8ac0a9a03d13948b4eb5ced8c",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&s("rtk-menu-item",{key:"86f670083fa1000cc99c5a57d4da2cb789c88aee",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},s("rtk-icon",{key:"d75504ef4431c83efea2d281baad6a10c8a2e3b3",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&s("rtk-menu-item",{key:"2634fae26bc72fec773f3a7f85fad7ebc1cfca11",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},s("rtk-icon",{key:"57d51380b52a20a8f9dfc51931401712f4d67f26",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(p=this.participant)||void 0===p?void 0:p.id)!==(null===(b=this.meeting)||void 0===b?void 0:b.self.id)&&s("rtk-menu-item",{key:"64ab2f51f494b8d3d445ae9aece430e8c0fca673",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},s("rtk-icon",{key:"5633f66f3679bfc3b6e87a55cfb884e63260767c",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!k&&this.canKickParticipant&&s("rtk-menu-item",{key:"664e9b1c843aa0cc7a47062b4f353a8e1105a368",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i;null===(t=this.meeting)||void 0===t||t.participants.kick(null===(i=this.participant)||void 0===i?void 0:i.id)}},s("rtk-icon",{key:"10cb3a42b4c861241d983d9cb1ebfe594500fbc3",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),s("slot",{key:"ed681666f5bb8bf06a6fac4b929853d9b6bc704c"},s(d,{key:"8177a2248bf03ffbe26a7f0f560eb81439a00fb3",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return a(this)}static get watchers(){return{meeting:["meetingChanged"],participant:["participantChanged"]}}};y([u()],x.prototype,"meeting",void 0),y([u()],x.prototype,"states",void 0),y([u()],x.prototype,"iconPack",void 0),y([u()],x.prototype,"t",void 0),x.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;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;top:var(--rtk-space-8, 32px) !important;right:var(--rtk-space-4, 16px) !important;z-index:20}";const w=class{constructor(i){t(this,i),this.items=[],this.itemHeight=55,this.bufferedItemsCount=5,this.emptyListElement=null,this.visibleStart=0,this.visibleEnd=0,this.containerHeight=0,this.lastScrollTop=0,this.recalculatePositioning=()=>{this.updateContainerHeight(),requestAnimationFrame((()=>{this.updateItemHeight()}))},this.updateContainerHeight=()=>{this.el.querySelector(".virtual-list-container").clientHeight&&(requestAnimationFrame((()=>{this.updateItemHeight()})),this.containerHeight=this.el.querySelector(".virtual-list-container").clientHeight,this.updateVisibleRange())},this.onScroll=g((()=>{const t=this.el.querySelector(".virtual-list-container").scrollTop;t>this.lastScrollTop&&this.visibleEnd===this.items.length||(this.lastScrollTop=t,this.updateVisibleRange())}))}itemsChanged(){this.recalculatePositioning()}componentDidLoad(){this.recalculatePositioning(),this.el.querySelector(".virtual-list-container").addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.recalculatePositioning)}componentDidUpdate(){this.updateItemHeight()}disconnectedCallback(){this.el.querySelector(".virtual-list-container").removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.recalculatePositioning)}updateVisibleRange(){const t=this.el.querySelector(".virtual-list-container").scrollTop,i=Math.floor(t/this.itemHeight),s=Math.ceil(this.containerHeight/this.itemHeight),e=Math.min(this.items.length,i+s+this.bufferedItemsCount);this.visibleStart=i,this.visibleEnd=e,this.el.querySelector(".virtual-list-container").scrollTop=this.lastScrollTop}updateItemHeight(){const t=this.el.querySelector(".virtual-list-item");if(t){const i=t.style.height;t.style.height="auto";const s=t.getBoundingClientRect().height;i&&(t.style.height=i),s&&Math.floor(s)!==Math.floor(this.itemHeight)&&(this.itemHeight=s)}}renderItems(){return this.items.slice(this.visibleStart,this.visibleEnd).map(((t,i)=>{const e=this.visibleStart+i;return s("div",{class:"virtual-list-item",key:t.id,style:{position:"absolute",top:e*this.itemHeight+"px",height:`${this.itemHeight}px`,width:"100%"}},this.renderItem(t,e))}))}render(){var t;return s("div",{key:"1a35b2155ffba410d278513dbdfeb7fd238443d8",class:"virtual-list-container",style:{position:"relative",height:"100%",overflowX:"hidden",overflowY:"auto"}},s("div",{key:"90f445de9af8464c23dbd931f46600e015839d4f",style:{height:this.items.length*this.itemHeight+"px",position:"relative"}},(null===(t=this.items)||void 0===t?void 0:t.length)?this.renderItems():this.emptyListElement),s("div",{key:"b7acc66cc75273c722b5a9c78949c67d785d5725",style:{height:`${this.itemHeight}px`}}))}get el(){return a(this)}static get watchers(){return{items:["itemsChanged"]}}};w.style=":host{height:100%;width:100%}";export{x as rtk_participant,w as rtk_virtualized_participant_list}
1
+ import{r as t,c as i,h as s,H as e,a}from"./p-0ee570cd.js";import{a as h,c as n,d as c,F as o}from"./p-d3bf4348.js";import{l as r,R as d}from"./p-c8eaa707.js";import{f as l,s as f}from"./p-338c7261.js";import{c as p,b,o as v,s as k,h as m}from"./p-31964573.js";import{S as u}from"./p-dac97779.js";import{d as g}from"./p-a08b5a59.js";import"./p-2c3cda13.js";var y=function(t,i,s,e){var a,h=arguments.length,n=h<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 c=t.length-1;c>=0;c--)(a=t[c])&&(n=(h<3?a(n):h>3?a(i,s,n):a(i,s))||n);return h>3&&n&&Object.defineProperty(i,s,n),n};const x=class{constructor(s){t(this,s),this.rtkSendNotification=i(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=h,this.t=n(),this.config=c,this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");p(t,i,{placement:"bottom-end",middleware:[b({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),v(4),k({padding:8}),m()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){var i,s,e,a,h,n,c;if(null!=t){const{self:r}=t;this.canDisableParticipantAudio=r.permissions.canAllowParticipantAudio||r.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=r.permissions.canAllowParticipantVideo||r.permissions.canDisableParticipantVideo,this.canKickParticipant=r.permissions.kickParticipant&&!0!==(null===(i=this.meeting)||void 0===i?void 0:i.__internals__.features.hasFeature(o.DISABLE_KICKING))&&(!0!==(null===(s=this.meeting)||void 0===s?void 0:s.__internals__.features.hasFeature(o.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(e=this.participant)||void 0===e?void 0:e.presetName)),this.canPinParticipant=r.permissions.pinParticipant,this.canAllowParticipantOnStage=r.permissions.acceptStageRequests&&r.permissions.stageEnabled&&(!0!==(null===(a=this.meeting)||void 0===a?void 0:a.__internals__.features.hasFeature(o.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(h=this.participant)||void 0===h?void 0:h.presetName))&&(!0!==(null===(n=this.meeting)||void 0===n?void 0:n.__internals__.features.hasFeature(o.CANTINVITE_VIEWER))||"webinar_viewer"!==(null===(c=this.participant)||void 0===c?void 0:c.presetName)),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,a,h,n,c,o,p,b;const v="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),k=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,m=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!v||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,u=l((null===(a=this.participant)||void 0===a?void 0:a.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(h=this.meeting)||void 0===h?void 0:h.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return s(e,{key:"9a717049edf15cfec3e497a30a37f873dcb37fd8"},s("div",{class:"left",key:null===(n=this.participant)||void 0===n?void 0:n.id},s("rtk-avatar",{key:"4e161f74ce11be1050c95556065867289ab618b2",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),s("p",{key:"c1e71db1ba1ed2e8defbbb9802c22df8b64670fc",class:"name",title:u},f(u,16)," ",(null===(c=this.meeting)||void 0===c?void 0:c.self.id)===(null===(o=this.participant)||void 0===o?void 0:o.id)&&this.t("(you)"))),"sidebar"===this.view&&s("div",{key:"165e14ba9f5e063820c6f440dc9eb03344e7bcdf",class:"right"},g&&s("rtk-icon",{key:"d6651dc9e7eb12ed56742f08096ef239bd4429c1",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!v&&s("rtk-icon",{key:"89506d158acdb3e2629a7a2ab51aef475f9f3b75",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(m||r({element:"rtk-participant",defaults:y,childProps:{participant:this.participant}})>0)&&s("div",{key:"202a957dfe004c8c1f2195bf93c9ce9ce167a96f",class:"menu"},s("span",{key:"a01163f9da5fab4a1d7922f8abfe5a2e4a4dcf2c",id:"trigger",onClick:this.onMenuToggle},s("rtk-button",{key:"144e0c418b6a038d560f8087825471b649229ecb",variant:"ghost",kind:"icon",slot:"trigger"},s("rtk-icon",{key:"18abb20a0969e0332d8fe2b5dcfe41bfc66955f7",class:"more",icon:this.iconPack.more_vertical}))),s("span",{key:"3a22ebe5a21228b6ea6e15933d961b24085dce44",id:"menu-list"},this.menuOpen&&s("rtk-menu-list",{key:"86688ad10d1440c5b534fe2f002225e0368ae24a",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!v&&s("rtk-menu-item",{key:"c22833b86d8583bdaec723a269afa7298cb0ca0d",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},s("rtk-icon",{key:"9cdde53aaffca1f0042a69048b77f31fc10c69d6",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),k&&s("rtk-menu-item",{key:"b651953a9b02065ca223c46dd7dbadedc8401031",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},s("rtk-icon",{key:"e63383cca42314f8ac0a9a03d13948b4eb5ced8c",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&s("rtk-menu-item",{key:"86f670083fa1000cc99c5a57d4da2cb789c88aee",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},s("rtk-icon",{key:"d75504ef4431c83efea2d281baad6a10c8a2e3b3",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&s("rtk-menu-item",{key:"2634fae26bc72fec773f3a7f85fad7ebc1cfca11",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},s("rtk-icon",{key:"57d51380b52a20a8f9dfc51931401712f4d67f26",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(p=this.participant)||void 0===p?void 0:p.id)!==(null===(b=this.meeting)||void 0===b?void 0:b.self.id)&&s("rtk-menu-item",{key:"64ab2f51f494b8d3d445ae9aece430e8c0fca673",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},s("rtk-icon",{key:"5633f66f3679bfc3b6e87a55cfb884e63260767c",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!k&&this.canKickParticipant&&s("rtk-menu-item",{key:"664e9b1c843aa0cc7a47062b4f353a8e1105a368",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i;null===(t=this.meeting)||void 0===t||t.participants.kick(null===(i=this.participant)||void 0===i?void 0:i.id)}},s("rtk-icon",{key:"10cb3a42b4c861241d983d9cb1ebfe594500fbc3",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),s("slot",{key:"ed681666f5bb8bf06a6fac4b929853d9b6bc704c"},s(d,{key:"8177a2248bf03ffbe26a7f0f560eb81439a00fb3",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return a(this)}static get watchers(){return{meeting:["meetingChanged"],participant:["participantChanged"]}}};y([u()],x.prototype,"meeting",void 0),y([u()],x.prototype,"states",void 0),y([u()],x.prototype,"iconPack",void 0),y([u()],x.prototype,"t",void 0),x.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;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;top:var(--rtk-space-8, 32px) !important;right:var(--rtk-space-4, 16px) !important;z-index:20}";const w=class{constructor(i){t(this,i),this.items=[],this.itemHeight=55,this.bufferedItemsCount=5,this.emptyListElement=null,this.visibleStart=0,this.visibleEnd=0,this.containerHeight=0,this.lastScrollTop=0,this.recalculatePositioning=()=>{this.updateContainerHeight(),requestAnimationFrame((()=>{this.updateItemHeight()}))},this.updateContainerHeight=()=>{this.el.querySelector(".virtual-list-container").clientHeight&&(requestAnimationFrame((()=>{this.updateItemHeight()})),this.containerHeight=this.el.querySelector(".virtual-list-container").clientHeight,this.updateVisibleRange())},this.onScroll=g((()=>{const t=this.el.querySelector(".virtual-list-container").scrollTop;t>this.lastScrollTop&&this.visibleEnd===this.items.length||(this.lastScrollTop=t,this.updateVisibleRange())}))}itemsChanged(){this.recalculatePositioning()}componentDidLoad(){this.recalculatePositioning(),this.el.querySelector(".virtual-list-container").addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.recalculatePositioning)}componentDidUpdate(){this.updateItemHeight()}disconnectedCallback(){this.el.querySelector(".virtual-list-container").removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.recalculatePositioning)}updateVisibleRange(){const t=this.el.querySelector(".virtual-list-container").scrollTop,i=Math.floor(t/this.itemHeight),s=Math.ceil(this.containerHeight/this.itemHeight),e=Math.min(this.items.length,i+s+this.bufferedItemsCount);this.visibleStart=i,this.visibleEnd=e,this.el.querySelector(".virtual-list-container").scrollTop=this.lastScrollTop}updateItemHeight(){const t=this.el.querySelector(".virtual-list-item");if(t){const i=t.style.height;t.style.height="auto";const s=t.getBoundingClientRect().height;i&&(t.style.height=i),s&&Math.floor(s)!==Math.floor(this.itemHeight)&&(this.itemHeight=s)}}renderItems(){return this.items.slice(this.visibleStart,this.visibleEnd).map(((t,i)=>{const e=this.visibleStart+i;return s("div",{class:"virtual-list-item",key:t.id,style:{position:"absolute",top:e*this.itemHeight+"px",height:`${this.itemHeight}px`,width:"100%"}},this.renderItem(t,e))}))}render(){var t;return s("div",{key:"02cd1150b5e7b65f25178c0ce673ee823feec9d8",class:"virtual-list-container",style:{position:"relative",height:"100%",overflowX:"hidden",overflowY:"auto"}},s("div",{key:"0f886b79c861b3010d60df73a7b343955e97a8f2",style:{height:this.items.length*this.itemHeight+"px",position:"relative"}},(null===(t=this.items)||void 0===t?void 0:t.length)?this.renderItems():this.emptyListElement),s("div",{key:"d290097b0d363d9a580e71da1260e87456248dc4",style:{height:`${this.itemHeight}px`}}))}get el(){return a(this)}static get watchers(){return{items:["itemsChanged"]}}};w.style=":host{height:100%;width:100%}";export{x as rtk_participant,w as rtk_virtualized_participant_list}
@@ -1 +1 @@
1
- import{r as n,c as t,w as e,h as a,H as i,a as r}from"./p-0ee570cd.js";import{a as o,c as s}from"./p-9c733fd3.js";import{i as c,r as d,e as l,a as p}from"./p-02f19345.js";import{S as h}from"./p-27478c0c.js";var f=function(n,t,e,a){var i,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,a);else for(var s=n.length-1;s>=0;s--)(i=n[s])&&(o=(r<3?i(o):r>3?i(t,e,o):i(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};const b=class{constructor(e){n(this,e),this.stateUpdate=t(this,"rtkStateUpdate",7),this.play=t(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=c()},this.participantScreenshareUpdate=n=>{n.id===this.participant.id&&this.screenShareListener(n)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=o,this.t=s(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isFullScreen=!1,this.toggleFullScreen=()=>{this.isFullScreen?(l(),this.isFullScreen=!1):(d(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:n}=this.meeting;this.participant.id===n.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(n){if(null!=n&&this.meeting){const{self:t}=this.meeting;this.screenShareListener=({screenShareEnabled:n,screenShareTracks:t})=>{const a=n&&null!=t.video;if(e((()=>{this.screenShareEnabled=a})),a){const n=new MediaStream;n.addTrack(t.video),null!=this.videoEl&&(this.videoEl.srcObject=n,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(n),n.id===t.id?n.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var n,t;const e=(null===(n=this.participant)||void 0===n?void 0:n.id)===(null===(t=this.meeting)||void 0===t?void 0:t.self.id),r=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),o=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return a(i,{key:"c5fe06d9c1bfd2856b2eb93bb55b7c636256052f",class:{isSelf:e}},a("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},a("video",{key:"5bdd1b7bd0e28ecb4b551b30f6e623c7a1ece49a",ref:n=>this.videoEl=n,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:`screen-share-video-${this.participant.id}`})),a("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!e&&p()&&a("rtk-tooltip",{key:"fdfd7c6b5468ef96bdb06d4f942a3e10cbee08cb",label:r},a("rtk-button",{key:"99e0138257f6e0ec55ceee7f20318d78887f812b",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:r},a("rtk-icon",{key:"06e747a6af4a5b79445ffb63598afd2ac515d3a2",icon:o,"aria-hidden":!0,tabIndex:-1})))),e&&a("div",{id:"self-message",key:"self-message"},a("h3",{key:"1ad96435977e90e6f0eff64a54507d106a4091be"},this.t("screenshare.shared")),a("div",{key:"02f1e2a734d3f56157ab76c1de55517995d8f98d",class:"actions"},null!=this.meeting&&a("rtk-button",{key:"4bc8344f8a829ff1a12552d9002d83032ec7277f",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},a("rtk-icon",{key:"c2412bb995c605f980859481200033a447147b91",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),a("rtk-button",{key:"0d513e8b6efa96b542d6bd163db81a179073ed45",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},a("rtk-icon",{key:"bec9074447f55461239fc4c7c20b811dfe7db8bb",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),a("slot",{key:"2858a3123887f964d6e8ea77fb871abddc4c6295"}))}get host(){return r(this)}static get watchers(){return{participant:["participantChanged"]}}};f([h()],b.prototype,"meeting",void 0),f([h()],b.prototype,"size",void 0),f([h()],b.prototype,"iconPack",void 0),f([h()],b.prototype,"t",void 0),b.style=":host {\n line-height: initial;\n font-family: var(--rtk-font-family, sans-serif);\n\n font-feature-settings: normal;\n font-variation-settings: normal;\n}\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n\n:host {\n height: 100%;\n width: 100%;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: var(--rtk-border-radius-lg, 12px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));\n container-type: inline-size;\n container-name: screentile;\n}\n\n::slotted(rtk-name-tag) {\n position: absolute;\n left: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n opacity: 0.8;\n}\n\n#video-container {\n position: absolute;\n display: block;\n height: 100%;\n width: 100%;\n}\n\n#video-container .fit-in-container {\n -o-object-fit: fill;\n object-fit: fill;\n}\n\nvideo {\n height: 100%;\n width: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n:host([variant='gradient']) ::slotted(rtk-audio-visualizer) {\n position: absolute;\n top: var(--rtk-space-2, 8px);\n right: var(--rtk-space-2, 8px);\n border-radius: 9999px;\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));\n padding: var(--rtk-space-2, 8px);\n}\n\n:host([variant='gradient']) ::slotted(rtk-name-tag) {\n bottom: var(--rtk-space-0, 0px);\n left: var(--rtk-space-0, 0px);\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: transparent;\n background-image: linear-gradient(to top, var(--tw-gradient-stops));\n --tw-gradient-from: rgb(var(--rtk-colors-background-1000, 8 8 8));\n --tw-gradient-to: rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n --tw-gradient-to: transparent;\n}\n\n:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer) {\n height: var(--rtk-space-5, 20px);\n width: var(--rtk-space-5, 20px);\n}\n\nvideo.visible {\n animation: video-fadein 0.4s ease;\n}\n\n#controls {\n display: none;\n position: absolute;\n top: var(--rtk-space-3, 12px);\n right: var(--rtk-space-3, 12px);\n align-items: center;\n justify-content: flex-end;\n gap: var(--rtk-space-2, 8px);\n}\n\n:host(:hover) #controls, \n:host(:active) #controls, \n:host(:focus-visible) #controls {\n display: flex;\n}\n\n#full-screen-btn {\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));\n}\n\n/** For self view */\n\nh3 {\n margin-top: var(--rtk-space-10, 40px);\n margin-bottom: var(--rtk-space-6, 24px);\n text-align: center;\n font-size: 20px;\n font-weight: 500;\n}\n\n:host([size='sm']) h3 {\n font-size: 16px;\n}\n\n#self-message {\n padding-left: var(--rtk-space-4, 16px);\n padding-right: var(--rtk-space-4, 16px);\n}\n\n:host(.isSelf) #self-view {\n flex: 1 1 0%;\n}\n\n:host(.isSelf) #video-container {\n position: static;\n aspect-ratio: auto;\n height: auto;\n width: 50%;\n max-width: var(--rtk-space-96, 384px);\n border-radius: var(--rtk-border-radius-md, 8px);\n transition: 0.6s ease;\n}\n\n:host(.isSelf) #video-container.expand {\n width: 60%;\n max-width: 100%;\n}\n\n.actions {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--rtk-space-2, 8px);\n}\n\n:host([size='sm'].isSelf) #video-container,\n:host([size='md'].isSelf) #video-container,\n:host([size='sm'].isSelf) #expand-btn,\n:host([size='md'].isSelf) #expand-btn {\n /** Hide video, fullscreen buttons in sm and md breakpoints */\n display: none;\n}\n\n/** Remote control */\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n.remote-control {\n z-index: 10;\n height: 100%;\n max-height: 100%;\n flex: 0 1 auto;\n}\n\n#remote-control-self {\n position: absolute;\n top: var(--rtk-space-0, 0px);\n left: 50%;\n z-index: 10;\n width: -moz-max-content;\n width: max-content;\n max-width: 100%;\n box-sizing: border-box;\n display: flex;\n height: var(--rtk-space-8, 32px);\n align-items: center;\n overflow: hidden;\n border-radius: var(--rtk-border-radius-sm, 4px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));\n font-size: 12px;\n color: rgb(var(--rtk-colors-text-1000, 255 255 255));\n transform: translateX(-50%);\n}\n\n#remote-control-self p {\n padding-left: var(--rtk-space-3, 12px);\n padding-right: var(--rtk-space-3, 12px);\n padding-top: var(--rtk-space-2, 8px);\n padding-bottom: var(--rtk-space-2, 8px);\n}\n\n#remote-control-self rtk-button {\n height: 100%;\n border-radius: var(--rtk-border-radius-none, 0);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));\n font-size: 12px;\n}\n\n:host([size='sm']) #remote-control-self {\n height: auto;\n flex-direction: column;\n}\n\n:host([size='sm']) #remote-control-self rtk-button {\n width: 100%;\n padding-top: var(--rtk-space-1, 4px);\n padding-bottom: var(--rtk-space-1, 4px);\n}\n\n/** Name tag positions */\n\n:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag) {\n left: auto;\n right: var(--rtk-space-3, 12px);\n}\n\n:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag) {\n left: auto;\n right: auto;\n}\n\n:host([name-tag-position='top-left']) ::slotted(rtk-name-tag) {\n top: var(--rtk-space-3, 12px);\n bottom: auto;\n}\n\n:host([name-tag-position='top-right']) ::slotted(rtk-name-tag) {\n top: var(--rtk-space-3, 12px);\n right: var(--rtk-space-3, 12px);\n left: auto;\n bottom: auto;\n}\n\n:host([name-tag-position='top-center']) ::slotted(rtk-name-tag) {\n left: auto;\n right: auto;\n bottom: auto;\n top: var(--rtk-space-3, 12px);\n}\n\n/** Keyframes */\n\n@keyframes video-fadein {\n 0% {\n opacity: 0;\n transform: scale(1.4) translateY(20px);\n }\n\n 100% {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n}\n\n::slotted(rtk-network-indicator) {\n position: absolute;\n right: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n}\n\n@media only screen and (max-height: 480px) and (orientation: landscape) {\n :host([size='sm'][variant='solid']) ::slotted(rtk-name-tag), \n :host([size='sm'][variant='solid']) rtk-name-tag {\n left: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n border-radius: var(--rtk-border-radius-none, 0);\n transform-origin: 0% 110%;\n transform: scale(0.6);\n }\n}\n\n@container screentile (max-width: 400px) {\n ::slotted(rtk-name-tag) {\n transform-origin: 0 130%;\n transform: scale(0.7);\n }\n}\n";export{b as rtk_screenshare_view}
1
+ import{r as n,c as t,w as e,h as a,H as i,a as r}from"./p-0ee570cd.js";import{a as o,c as s}from"./p-d3bf4348.js";import{i as c,r as d,e as l,a as p}from"./p-02f19345.js";import{S as h}from"./p-dac97779.js";var f=function(n,t,e,a){var i,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,a);else for(var s=n.length-1;s>=0;s--)(i=n[s])&&(o=(r<3?i(o):r>3?i(t,e,o):i(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};const b=class{constructor(e){n(this,e),this.stateUpdate=t(this,"rtkStateUpdate",7),this.play=t(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=c()},this.participantScreenshareUpdate=n=>{n.id===this.participant.id&&this.screenShareListener(n)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=o,this.t=s(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isFullScreen=!1,this.toggleFullScreen=()=>{this.isFullScreen?(l(),this.isFullScreen=!1):(d(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:n}=this.meeting;this.participant.id===n.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(n){if(null!=n&&this.meeting){const{self:t}=this.meeting;this.screenShareListener=({screenShareEnabled:n,screenShareTracks:t})=>{const a=n&&null!=t.video;if(e((()=>{this.screenShareEnabled=a})),a){const n=new MediaStream;n.addTrack(t.video),null!=this.videoEl&&(this.videoEl.srcObject=n,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(n),n.id===t.id?n.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var n,t;const e=(null===(n=this.participant)||void 0===n?void 0:n.id)===(null===(t=this.meeting)||void 0===t?void 0:t.self.id),r=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),o=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return a(i,{key:"c5fe06d9c1bfd2856b2eb93bb55b7c636256052f",class:{isSelf:e}},a("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},a("video",{key:"5bdd1b7bd0e28ecb4b551b30f6e623c7a1ece49a",ref:n=>this.videoEl=n,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:`screen-share-video-${this.participant.id}`})),a("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!e&&p()&&a("rtk-tooltip",{key:"fdfd7c6b5468ef96bdb06d4f942a3e10cbee08cb",label:r},a("rtk-button",{key:"99e0138257f6e0ec55ceee7f20318d78887f812b",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:r},a("rtk-icon",{key:"06e747a6af4a5b79445ffb63598afd2ac515d3a2",icon:o,"aria-hidden":!0,tabIndex:-1})))),e&&a("div",{id:"self-message",key:"self-message"},a("h3",{key:"1ad96435977e90e6f0eff64a54507d106a4091be"},this.t("screenshare.shared")),a("div",{key:"02f1e2a734d3f56157ab76c1de55517995d8f98d",class:"actions"},null!=this.meeting&&a("rtk-button",{key:"4bc8344f8a829ff1a12552d9002d83032ec7277f",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},a("rtk-icon",{key:"c2412bb995c605f980859481200033a447147b91",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),a("rtk-button",{key:"0d513e8b6efa96b542d6bd163db81a179073ed45",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},a("rtk-icon",{key:"bec9074447f55461239fc4c7c20b811dfe7db8bb",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),a("slot",{key:"2858a3123887f964d6e8ea77fb871abddc4c6295"}))}get host(){return r(this)}static get watchers(){return{participant:["participantChanged"]}}};f([h()],b.prototype,"meeting",void 0),f([h()],b.prototype,"size",void 0),f([h()],b.prototype,"iconPack",void 0),f([h()],b.prototype,"t",void 0),b.style=":host {\n line-height: initial;\n font-family: var(--rtk-font-family, sans-serif);\n\n font-feature-settings: normal;\n font-variation-settings: normal;\n}\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n\n:host {\n height: 100%;\n width: 100%;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: var(--rtk-border-radius-lg, 12px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));\n container-type: inline-size;\n container-name: screentile;\n}\n\n::slotted(rtk-name-tag) {\n position: absolute;\n left: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n opacity: 0.8;\n}\n\n#video-container {\n position: absolute;\n display: block;\n height: 100%;\n width: 100%;\n}\n\n#video-container .fit-in-container {\n -o-object-fit: fill;\n object-fit: fill;\n}\n\nvideo {\n height: 100%;\n width: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n:host([variant='gradient']) ::slotted(rtk-audio-visualizer) {\n position: absolute;\n top: var(--rtk-space-2, 8px);\n right: var(--rtk-space-2, 8px);\n border-radius: 9999px;\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));\n padding: var(--rtk-space-2, 8px);\n}\n\n:host([variant='gradient']) ::slotted(rtk-name-tag) {\n bottom: var(--rtk-space-0, 0px);\n left: var(--rtk-space-0, 0px);\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: transparent;\n background-image: linear-gradient(to top, var(--tw-gradient-stops));\n --tw-gradient-from: rgb(var(--rtk-colors-background-1000, 8 8 8));\n --tw-gradient-to: rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n --tw-gradient-to: transparent;\n}\n\n:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer) {\n height: var(--rtk-space-5, 20px);\n width: var(--rtk-space-5, 20px);\n}\n\nvideo.visible {\n animation: video-fadein 0.4s ease;\n}\n\n#controls {\n display: none;\n position: absolute;\n top: var(--rtk-space-3, 12px);\n right: var(--rtk-space-3, 12px);\n align-items: center;\n justify-content: flex-end;\n gap: var(--rtk-space-2, 8px);\n}\n\n:host(:hover) #controls, \n:host(:active) #controls, \n:host(:focus-visible) #controls {\n display: flex;\n}\n\n#full-screen-btn {\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));\n}\n\n/** For self view */\n\nh3 {\n margin-top: var(--rtk-space-10, 40px);\n margin-bottom: var(--rtk-space-6, 24px);\n text-align: center;\n font-size: 20px;\n font-weight: 500;\n}\n\n:host([size='sm']) h3 {\n font-size: 16px;\n}\n\n#self-message {\n padding-left: var(--rtk-space-4, 16px);\n padding-right: var(--rtk-space-4, 16px);\n}\n\n:host(.isSelf) #self-view {\n flex: 1 1 0%;\n}\n\n:host(.isSelf) #video-container {\n position: static;\n aspect-ratio: auto;\n height: auto;\n width: 50%;\n max-width: var(--rtk-space-96, 384px);\n border-radius: var(--rtk-border-radius-md, 8px);\n transition: 0.6s ease;\n}\n\n:host(.isSelf) #video-container.expand {\n width: 60%;\n max-width: 100%;\n}\n\n.actions {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--rtk-space-2, 8px);\n}\n\n:host([size='sm'].isSelf) #video-container,\n:host([size='md'].isSelf) #video-container,\n:host([size='sm'].isSelf) #expand-btn,\n:host([size='md'].isSelf) #expand-btn {\n /** Hide video, fullscreen buttons in sm and md breakpoints */\n display: none;\n}\n\n/** Remote control */\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n.remote-control {\n z-index: 10;\n height: 100%;\n max-height: 100%;\n flex: 0 1 auto;\n}\n\n#remote-control-self {\n position: absolute;\n top: var(--rtk-space-0, 0px);\n left: 50%;\n z-index: 10;\n width: -moz-max-content;\n width: max-content;\n max-width: 100%;\n box-sizing: border-box;\n display: flex;\n height: var(--rtk-space-8, 32px);\n align-items: center;\n overflow: hidden;\n border-radius: var(--rtk-border-radius-sm, 4px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));\n font-size: 12px;\n color: rgb(var(--rtk-colors-text-1000, 255 255 255));\n transform: translateX(-50%);\n}\n\n#remote-control-self p {\n padding-left: var(--rtk-space-3, 12px);\n padding-right: var(--rtk-space-3, 12px);\n padding-top: var(--rtk-space-2, 8px);\n padding-bottom: var(--rtk-space-2, 8px);\n}\n\n#remote-control-self rtk-button {\n height: 100%;\n border-radius: var(--rtk-border-radius-none, 0);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));\n font-size: 12px;\n}\n\n:host([size='sm']) #remote-control-self {\n height: auto;\n flex-direction: column;\n}\n\n:host([size='sm']) #remote-control-self rtk-button {\n width: 100%;\n padding-top: var(--rtk-space-1, 4px);\n padding-bottom: var(--rtk-space-1, 4px);\n}\n\n/** Name tag positions */\n\n:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag) {\n left: auto;\n right: var(--rtk-space-3, 12px);\n}\n\n:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag) {\n left: auto;\n right: auto;\n}\n\n:host([name-tag-position='top-left']) ::slotted(rtk-name-tag) {\n top: var(--rtk-space-3, 12px);\n bottom: auto;\n}\n\n:host([name-tag-position='top-right']) ::slotted(rtk-name-tag) {\n top: var(--rtk-space-3, 12px);\n right: var(--rtk-space-3, 12px);\n left: auto;\n bottom: auto;\n}\n\n:host([name-tag-position='top-center']) ::slotted(rtk-name-tag) {\n left: auto;\n right: auto;\n bottom: auto;\n top: var(--rtk-space-3, 12px);\n}\n\n/** Keyframes */\n\n@keyframes video-fadein {\n 0% {\n opacity: 0;\n transform: scale(1.4) translateY(20px);\n }\n\n 100% {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n}\n\n::slotted(rtk-network-indicator) {\n position: absolute;\n right: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n}\n\n@media only screen and (max-height: 480px) and (orientation: landscape) {\n :host([size='sm'][variant='solid']) ::slotted(rtk-name-tag), \n :host([size='sm'][variant='solid']) rtk-name-tag {\n left: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n border-radius: var(--rtk-border-radius-none, 0);\n transform-origin: 0% 110%;\n transform: scale(0.6);\n }\n}\n\n@container screentile (max-width: 400px) {\n ::slotted(rtk-name-tag) {\n transform-origin: 0 130%;\n transform: scale(0.7);\n }\n}\n";export{b as rtk_screenshare_view}
@@ -1 +1 @@
1
- import{r as t,h as i,H as r}from"./p-0ee570cd.js";import{a as e,c as s}from"./p-9c733fd3.js";import{S as o}from"./p-27478c0c.js";var a=function(t,i,r,e){var s,o=arguments.length,a=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(o<3?s(a):o>3?s(i,r,a):s(i,r))||a);return o>3&&a&&Object.defineProperty(i,r,a),a};const n=class{constructor(i){t(this,i),this.iconPack=e,this.t=s(),this.permissionsUpdateListener=()=>{this.canSpotlight=this.meeting.self.permissions.canSpotlight}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){var i,r;null!=t&&(this.canSpotlight=t.self.permissions.canSpotlight,this.isSpotlighted=null!==(r=null===(i=t.meta)||void 0===i?void 0:i.broadcastTabChanges)&&void 0!==r&&r,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}updateSpotlightState(t){var i;try{null===(i=this.meeting.meta)||void 0===i||i.setBroadcastTabChanges(t),this.isSpotlighted=t}catch(t){console.error(t)}}render(){if(this.canSpotlight)return i(r,null,i("rtk-tooltip",{size:"md",label:this.t("remote_access.indicator")},i("div",{id:"sync-button",class:{tab:!0,active:this.isSpotlighted},onClick:()=>this.updateSpotlightState(!this.isSpotlighted)},i("span",{class:"name"},"Sync"),i("rtk-icon",{id:"icon",icon:this.isSpotlighted?this.iconPack.checkmark:this.iconPack.warning,tabIndex:-1,"aria-hidden":!0}))))}static get watchers(){return{meeting:["meetingChanged"]}}};a([o()],n.prototype,"meeting",void 0),a([o()],n.prototype,"iconPack",void 0),a([o()],n.prototype,"t",void 0),a([o()],n.prototype,"size",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{font-size:12px}#sync-button{flex-direction:row;border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-1, 4px);display:flex;align-items:center;justify-content:center;margin-bottom:var(--rtk-space-1, 4px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) rtk-tooltip,:host([size='md']) rtk-tooltip{width:100%}:host([size='sm'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px);padding-left:var(--rtk-space-0, 0px)}:host([size='md'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}:host([size='lg'])>#sync-button{flex-direction:row;height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}@media (orientation: portrait){:host([size='lg']) #sync-button{flex-direction:column-reverse;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='md']) #sync-button{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='sm']) #sync-button{height:var(--rtk-space-10, 40px);width:var(--rtk-space-16, 64px);flex-direction:row}}#sync-button>rtk-icon{max-height:14px}#sync-button rtk-icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']) #sync-button>rtk-icon{width:auto}#sync-button.active rtk-icon{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}div{align-content:center;line-height:2rem}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-8, 32px)}#sync-button.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-bg-opacity))}";export{n as rtk_spotlight_indicator}
1
+ import{r as t,h as i,H as r}from"./p-0ee570cd.js";import{a as e,c as s}from"./p-d3bf4348.js";import{S as a}from"./p-dac97779.js";var o=function(t,i,r,e){var s,a=arguments.length,o=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(a<3?s(o):a>3?s(i,r,o):s(i,r))||o);return a>3&&o&&Object.defineProperty(i,r,o),o};const n=class{constructor(i){t(this,i),this.iconPack=e,this.t=s(),this.permissionsUpdateListener=()=>{this.canSpotlight=this.meeting.self.permissions.canSpotlight}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){var i,r;null!=t&&(this.canSpotlight=t.self.permissions.canSpotlight,this.isSpotlighted=null!==(r=null===(i=t.meta)||void 0===i?void 0:i.broadcastTabChanges)&&void 0!==r&&r,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}updateSpotlightState(t){var i;try{null===(i=this.meeting.meta)||void 0===i||i.setBroadcastTabChanges(t),this.isSpotlighted=t}catch(t){console.error(t)}}render(){if(this.canSpotlight)return i(r,null,i("rtk-tooltip",{size:"md",label:this.t("remote_access.indicator")},i("div",{id:"sync-button",class:{tab:!0,active:this.isSpotlighted},onClick:()=>this.updateSpotlightState(!this.isSpotlighted)},i("span",{class:"name"},"Sync"),i("rtk-icon",{id:"icon",icon:this.isSpotlighted?this.iconPack.checkmark:this.iconPack.warning,tabIndex:-1,"aria-hidden":!0}))))}static get watchers(){return{meeting:["meetingChanged"]}}};o([a()],n.prototype,"meeting",void 0),o([a()],n.prototype,"iconPack",void 0),o([a()],n.prototype,"t",void 0),o([a()],n.prototype,"size",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{font-size:12px}#sync-button{flex-direction:row;border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-1, 4px);display:flex;align-items:center;justify-content:center;margin-bottom:var(--rtk-space-1, 4px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) rtk-tooltip,:host([size='md']) rtk-tooltip{width:100%}:host([size='sm'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px);padding-left:var(--rtk-space-0, 0px)}:host([size='md'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}:host([size='lg'])>#sync-button{flex-direction:row;height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}@media (orientation: portrait){:host([size='lg']) #sync-button{flex-direction:column-reverse;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='md']) #sync-button{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='sm']) #sync-button{height:var(--rtk-space-10, 40px);width:var(--rtk-space-16, 64px);flex-direction:row}}#sync-button>rtk-icon{max-height:14px}#sync-button rtk-icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']) #sync-button>rtk-icon{width:auto}#sync-button.active rtk-icon{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}div{align-content:center;line-height:2rem}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-8, 32px)}#sync-button.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-bg-opacity))}";export{n as rtk_spotlight_indicator}
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{a as o,c as n}from"./p-9c733fd3.js";import{S as a}from"./p-27478c0c.js";var r=function(t,i,s,e){var o,n=arguments.length,a=n<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 r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(i,s,a):o(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=o,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.canDisable)return null;const t=this.t("mute_all");return s(e,{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"]}}};r([a()],l.prototype,"meeting",void 0),r([a()],l.prototype,"size",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,c as i,h as s,H as e}from"./p-0ee570cd.js";import{a as o,c as n}from"./p-d3bf4348.js";import{S as a}from"./p-dac97779.js";var r=function(t,i,s,e){var o,n=arguments.length,a=n<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 r=t.length-1;r>=0;r--)(o=t[r])&&(a=(n<3?o(a):n>3?o(i,s,a):o(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=o,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.canDisable)return null;const t=this.t("mute_all");return s(e,{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"]}}};r([a()],l.prototype,"meeting",void 0),r([a()],l.prototype,"size",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}