@cloudflare/realtimekit-ui 2.2.0-staging.3 → 2.2.0-staging.5

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 (670) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-BA97TnvX.js → TextMessage-C4d86cID.js} +1 -1
  3. package/dist/cjs/{chat-NY588mAE.js → chat-_Z7QVSxx.js} +1 -1
  4. package/dist/cjs/{config-Chzt-h7l.js → config-C9cIVa2D.js} +5 -11
  5. package/dist/cjs/{debounce-CoFZKdWb.js → debounce-BaLnYFmQ.js} +1 -1
  6. package/dist/cjs/{index-BeKaBV5F.js → index-CSL0ebii.js} +1 -1
  7. package/dist/cjs/index.cjs.js +18 -10
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{ui-kit-metadata-zBJ8NnVE.js → merge-B4v4sEV3.js} +1 -290
  10. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  11. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-audio-visualizer_3.cjs.entry.js +5 -6
  17. package/dist/cjs/rtk-avatar_26.cjs.entry.js +13 -12
  18. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  19. package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  22. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  25. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  27. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  29. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-file-message_3.cjs.entry.js +6 -6
  41. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  54. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +4 -5
  55. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-notification.cjs.entry.js +8 -6
  61. package/dist/cjs/rtk-notifications.cjs.entry.js +195 -205
  62. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  64. package/dist/cjs/rtk-participant_2.cjs.entry.js +5 -5
  65. package/dist/cjs/rtk-participants-audio.cjs.entry.js +3 -4
  66. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  68. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  69. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +347 -34
  78. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
  80. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  85. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
  86. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  88. package/dist/cjs/rtk-stage.cjs.entry.js +3 -3
  89. package/dist/cjs/rtk-switch.cjs.entry.js +3 -3
  90. package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
  91. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  92. package/dist/cjs/rtk-ui-provider.cjs.entry.js +6 -5
  93. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
  94. package/dist/cjs/ui-kit-metadata-BjBLJPVs.js +291 -0
  95. package/dist/cjs/{ui-store-DSyXGfDZ.js → ui-store-XQk2zaMR.js} +225 -8
  96. package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
  97. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
  98. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  99. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  100. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
  101. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
  102. package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
  103. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
  104. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
  105. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
  106. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
  107. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
  108. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
  109. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
  110. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
  111. package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
  112. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
  113. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
  114. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
  115. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
  116. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
  117. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
  118. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +1 -1
  119. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
  120. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
  121. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  122. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  123. package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
  124. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  125. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  126. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  127. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
  128. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  129. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  130. package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
  131. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  132. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  133. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  134. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  135. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
  136. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  137. package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
  138. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
  139. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
  140. package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
  141. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
  142. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  143. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  144. package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
  145. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
  146. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  147. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
  148. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  149. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
  150. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
  151. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
  152. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
  153. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  154. package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
  155. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
  156. package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
  157. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  158. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  159. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
  160. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
  161. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
  162. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
  163. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
  164. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  165. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
  166. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
  167. package/dist/collection/components/rtk-notification/rtk-notification.js +5 -3
  168. package/dist/collection/components/rtk-notifications/rtk-notifications.js +194 -166
  169. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  170. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
  171. package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
  172. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
  173. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
  174. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
  175. package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
  176. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  177. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  178. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
  179. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
  180. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
  181. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
  182. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  183. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +1 -1
  184. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
  185. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
  186. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  187. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
  188. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  189. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
  190. package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
  191. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
  192. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  193. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
  194. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
  195. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +210 -0
  196. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +371 -37
  197. package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
  198. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
  199. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +2 -2
  200. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +1 -1
  201. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +1 -1
  202. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +1 -1
  203. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
  204. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +1 -1
  205. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  206. package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
  207. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
  208. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
  209. package/dist/collection/components/rtk-stage/rtk-stage.js +2 -2
  210. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
  211. package/dist/collection/components/rtk-switch/rtk-switch.js +2 -2
  212. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
  213. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +2 -2
  214. package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -3
  215. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
  216. package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
  217. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  218. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
  219. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
  220. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
  221. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +2 -2
  222. package/dist/collection/lib/default-ui-config.js +2 -8
  223. package/dist/collection/lib/lang/default-language.js +6 -0
  224. package/dist/collection/lib/notification.js +56 -2
  225. package/dist/collection/types/ui-config/config.js +101 -13
  226. package/dist/collection/utils/config.js +3 -8
  227. package/dist/collection/utils/notification.js +12 -3
  228. package/dist/collection/utils/ui-kit-metadata.js +1 -1
  229. package/dist/components/index.js +1 -1
  230. package/dist/components/{p-DC-3Hg9I.js → p-0DTiM_we.js} +1 -1
  231. package/dist/components/{p-kGPSVdob.js → p-1C_TdKq0.js} +1 -1
  232. package/dist/components/{p-CHSH0L_g.js → p-1J7p9yTO.js} +1 -1
  233. package/dist/components/{p-CGVMdadq.js → p-453sV-Ir.js} +1 -1
  234. package/dist/components/{p-0I1N5xHK.js → p-6A_cBfi7.js} +1 -1
  235. package/dist/components/{p-GMH-Dp75.js → p-B-L_tmky.js} +1 -1
  236. package/dist/components/{p-Zkjzr8ZL.js → p-B5e4-Gnb.js} +1 -1
  237. package/dist/components/{p-CugPCiPF.js → p-B7ZjIFa-.js} +1 -1
  238. package/dist/components/{p-xLck_VlO.js → p-B8xh8FL-.js} +1 -1
  239. package/dist/components/{p-BNjHUNwU.js → p-BDmVHB8l.js} +1 -1
  240. package/dist/components/{p-Bc2jtNZw.js → p-BJ7Hcvk1.js} +1 -1
  241. package/dist/components/p-BLyVHBPm.js +1 -0
  242. package/dist/components/{p-D9cHynev.js → p-BQ-x6_xE.js} +1 -1
  243. package/dist/components/{p-DAGCKEFc.js → p-BY_hQMNu.js} +1 -1
  244. package/dist/components/{p-BeWjGx1n.js → p-BaCQqa-Q.js} +1 -1
  245. package/dist/components/p-BbVYO_6g.js +1 -0
  246. package/dist/components/{p-CkNlX5-Y.js → p-BbdR8jiw.js} +1 -1
  247. package/dist/components/{p-GtIz3u0L.js → p-BeeuQPMZ.js} +1 -1
  248. package/dist/components/{p-BugzZ4hY.js → p-Bhp9Zffa.js} +1 -1
  249. package/dist/components/{p-Dc5xkFI9.js → p-BkWaCvJV.js} +1 -1
  250. package/dist/components/{p-Ds5j-VXZ.js → p-BmjopjI3.js} +1 -1
  251. package/dist/components/{p--F3BGV0E.js → p-Bo1ku_2a.js} +1 -1
  252. package/dist/components/{p-uxGiMP6W.js → p-BowkkEiR.js} +1 -1
  253. package/dist/components/p-BtMpJ0mM.js +1 -0
  254. package/dist/components/{p-DuRlksIi.js → p-BwnnHi0H.js} +1 -1
  255. package/dist/components/{p-CiX87kt0.js → p-BwpYVCMj.js} +1 -1
  256. package/dist/components/{p-DxZ5v-a-.js → p-Bxt73ql2.js} +1 -1
  257. package/dist/components/{p-gBEnKt4T.js → p-C-Jht7Ou.js} +1 -1
  258. package/dist/components/{p-CM3Y2kOg.js → p-C7qQzBOW.js} +1 -1
  259. package/dist/components/{p-BVRIm4Vt.js → p-CFL-ALsL.js} +1 -1
  260. package/dist/components/{p-ByMjaTnP.js → p-CNJG60uZ.js} +1 -1
  261. package/dist/components/{p-C7Rh2NRS.js → p-CNY9L4u1.js} +1 -1
  262. package/dist/components/{p-CH7w_Zrp.js → p-CP4anCBG.js} +1 -1
  263. package/dist/components/{p-Be6GRqFL.js → p-CQa16w_c.js} +1 -1
  264. package/dist/components/{p-CWxtbDEh.js → p-CSW-it45.js} +1 -1
  265. package/dist/components/{p-B2RoJ1tz.js → p-CVy_5Tvb.js} +1 -1
  266. package/dist/components/{p-U9jg1DvO.js → p-CY6CL9kK.js} +1 -1
  267. package/dist/components/{p-g5NPAxAj.js → p-C_fSXjwp.js} +1 -1
  268. package/dist/components/{p-BWLmBQB7.js → p-Cb3kcQH8.js} +1 -1
  269. package/dist/components/{p-oXCkwBKR.js → p-CjID2TEf.js} +1 -1
  270. package/dist/components/{p-BQMMBSP2.js → p-CjNPU4tr.js} +1 -1
  271. package/dist/components/{p-Ic4M6IZs.js → p-CoiejzBd.js} +1 -1
  272. package/dist/components/p-CpLLOHOq.js +1 -0
  273. package/dist/components/p-CsFRsJd2.js +1 -0
  274. package/dist/components/{p-BX3gY1PP.js → p-CsTjOsQ7.js} +1 -1
  275. package/dist/components/{p-BWqnoSw2.js → p-CsY7NAuq.js} +1 -1
  276. package/dist/components/{p-BC__OeWi.js → p-CshWFMrN.js} +1 -1
  277. package/dist/components/{p-vADJB1c2.js → p-D1dX_iSl.js} +1 -1
  278. package/dist/components/{p-B3ATJ-iD.js → p-D1ihibWt.js} +1 -1
  279. package/dist/components/{p-DNy6quyg.js → p-D3S9CkeA.js} +1 -1
  280. package/dist/components/{p-B2EHfWpD.js → p-D5NZi5H5.js} +1 -1
  281. package/dist/components/{p-Btj1QSzG.js → p-D6u-SXpn.js} +1 -1
  282. package/dist/components/p-D8OMvJbR.js +1 -0
  283. package/dist/components/p-DIblgdpF.js +1 -0
  284. package/dist/components/{p-BjZJaxt1.js → p-DLWL-o6Z.js} +1 -1
  285. package/dist/components/{p-BjG7yuwj.js → p-DRa-BDek.js} +1 -1
  286. package/dist/components/{p-DUIWB0ra.js → p-DW2Js6u1.js} +1 -1
  287. package/dist/components/p-DWYKl0rg.js +1 -0
  288. package/dist/components/{p-B6IcTqkN.js → p-DWgMo0uM.js} +1 -1
  289. package/dist/components/{p-msSLVaDl.js → p-D_HYgg0D.js} +1 -1
  290. package/dist/components/{p-D34dZlkT.js → p-D_Zth43B.js} +1 -1
  291. package/dist/components/{p-Bp8UGnBB.js → p-DcGAhFPL.js} +1 -1
  292. package/dist/components/{p-C07P-YzZ.js → p-DiO4NkoA.js} +1 -1
  293. package/dist/components/{p-CtPr1nvA.js → p-DtCdkVUQ.js} +1 -1
  294. package/dist/components/{p-ifBo9NHb.js → p-DuB7bImP.js} +1 -1
  295. package/dist/components/{p-Bjx68Nkv.js → p-DuheZw1w.js} +1 -1
  296. package/dist/components/{p-BBRpBb3D.js → p-DwHaSUu3.js} +1 -1
  297. package/dist/components/{p-CjOKLEdP.js → p-DxynE7R4.js} +1 -1
  298. package/dist/components/p-Dy7c6clK.js +1 -0
  299. package/dist/components/{p-CxPXk2ws.js → p-FI--hA8I.js} +1 -1
  300. package/dist/components/{p-IilUR0Z4.js → p-K3aT9e86.js} +1 -1
  301. package/dist/components/{p-B0Fo3cKf.js → p-LlsVAS7r.js} +1 -1
  302. package/dist/components/{p-CXDRC8Nb.js → p-R3NB2Rxd.js} +1 -1
  303. package/dist/components/{p-Dp2LhUKa.js → p-SJeISbFm.js} +1 -1
  304. package/dist/components/{p-DPENu38v.js → p-aAhxhPu6.js} +1 -1
  305. package/dist/components/{p-B_Wn0VnS.js → p-l4woSzxj.js} +1 -1
  306. package/dist/components/{p-DW9czTAD.js → p-ralyxXdZ.js} +1 -1
  307. package/dist/components/{p-BGaDuggr.js → p-sG2nShz-.js} +1 -1
  308. package/dist/components/{p-DAq4FN_d.js → p-w2nCsug-.js} +1 -1
  309. package/dist/components/rtk-ai-toggle.js +1 -1
  310. package/dist/components/rtk-ai-transcriptions.js +1 -1
  311. package/dist/components/rtk-ai.js +1 -1
  312. package/dist/components/rtk-audio-grid.js +1 -1
  313. package/dist/components/rtk-audio-tile.js +1 -1
  314. package/dist/components/rtk-audio-visualizer.js +1 -1
  315. package/dist/components/rtk-avatar.js +1 -1
  316. package/dist/components/rtk-breakout-room-manager.js +1 -1
  317. package/dist/components/rtk-breakout-room-participants.js +1 -1
  318. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  319. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  320. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  321. package/dist/components/rtk-camera-selector.js +1 -1
  322. package/dist/components/rtk-camera-toggle.js +1 -1
  323. package/dist/components/rtk-caption-toggle.js +1 -1
  324. package/dist/components/rtk-chat-composer-ui.js +1 -1
  325. package/dist/components/rtk-chat-composer-view.js +1 -1
  326. package/dist/components/rtk-chat-header.js +1 -1
  327. package/dist/components/rtk-chat-message.js +1 -1
  328. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  329. package/dist/components/rtk-chat-messages-ui.js +1 -1
  330. package/dist/components/rtk-chat-search-results.js +1 -1
  331. package/dist/components/rtk-chat-selector-ui.js +1 -1
  332. package/dist/components/rtk-chat-selector.js +1 -1
  333. package/dist/components/rtk-chat-toggle.js +1 -1
  334. package/dist/components/rtk-chat.js +1 -1
  335. package/dist/components/rtk-clock.js +1 -1
  336. package/dist/components/rtk-confirmation-modal.js +1 -1
  337. package/dist/components/rtk-controlbar-button.js +1 -1
  338. package/dist/components/rtk-controlbar.js +1 -1
  339. package/dist/components/rtk-counter.js +1 -1
  340. package/dist/components/rtk-debugger-audio.js +1 -1
  341. package/dist/components/rtk-debugger-screenshare.js +1 -1
  342. package/dist/components/rtk-debugger-system.js +1 -1
  343. package/dist/components/rtk-debugger-toggle.js +1 -1
  344. package/dist/components/rtk-debugger-video.js +1 -1
  345. package/dist/components/rtk-debugger.js +1 -1
  346. package/dist/components/rtk-dialog-manager.js +1 -1
  347. package/dist/components/rtk-dialog.js +1 -1
  348. package/dist/components/rtk-draft-attachment-view.js +1 -1
  349. package/dist/components/rtk-emoji-picker-button.js +1 -1
  350. package/dist/components/rtk-emoji-picker.js +1 -1
  351. package/dist/components/rtk-ended-screen.js +1 -1
  352. package/dist/components/rtk-file-dropzone.js +1 -1
  353. package/dist/components/rtk-file-message-view.js +1 -1
  354. package/dist/components/rtk-file-message.js +1 -1
  355. package/dist/components/rtk-file-picker-button.js +1 -1
  356. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  357. package/dist/components/rtk-grid-pagination.js +1 -1
  358. package/dist/components/rtk-grid.js +1 -1
  359. package/dist/components/rtk-header.js +1 -1
  360. package/dist/components/rtk-idle-screen.js +1 -1
  361. package/dist/components/rtk-image-message-view.js +1 -1
  362. package/dist/components/rtk-image-message.js +1 -1
  363. package/dist/components/rtk-image-viewer.js +1 -1
  364. package/dist/components/rtk-information-tooltip.js +1 -1
  365. package/dist/components/rtk-join-stage.js +1 -1
  366. package/dist/components/rtk-leave-button.js +1 -1
  367. package/dist/components/rtk-leave-meeting.js +1 -1
  368. package/dist/components/rtk-livestream-indicator.js +1 -1
  369. package/dist/components/rtk-livestream-player.js +1 -1
  370. package/dist/components/rtk-livestream-toggle.js +1 -1
  371. package/dist/components/rtk-logo.js +1 -1
  372. package/dist/components/rtk-meeting-title.js +1 -1
  373. package/dist/components/rtk-meeting.js +1 -1
  374. package/dist/components/rtk-menu-item.js +1 -1
  375. package/dist/components/rtk-menu-list.js +1 -1
  376. package/dist/components/rtk-menu.js +1 -1
  377. package/dist/components/rtk-message-list-view.js +1 -1
  378. package/dist/components/rtk-message-view.js +1 -1
  379. package/dist/components/rtk-mic-toggle.js +1 -1
  380. package/dist/components/rtk-microphone-selector.js +1 -1
  381. package/dist/components/rtk-mixed-grid.js +1 -1
  382. package/dist/components/rtk-more-toggle.js +1 -1
  383. package/dist/components/rtk-mute-all-button.js +1 -1
  384. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  385. package/dist/components/rtk-name-tag.js +1 -1
  386. package/dist/components/rtk-network-indicator.js +1 -1
  387. package/dist/components/rtk-notification.js +1 -1
  388. package/dist/components/rtk-notifications.js +1 -1
  389. package/dist/components/rtk-overlay-modal.js +1 -1
  390. package/dist/components/rtk-paginated-list.js +1 -1
  391. package/dist/components/rtk-participant-count.js +1 -1
  392. package/dist/components/rtk-participant-setup.js +1 -1
  393. package/dist/components/rtk-participant-tile.js +1 -1
  394. package/dist/components/rtk-participant.js +1 -1
  395. package/dist/components/rtk-participants-audio.js +1 -1
  396. package/dist/components/rtk-participants-stage-list.js +1 -1
  397. package/dist/components/rtk-participants-stage-queue.js +1 -1
  398. package/dist/components/rtk-participants-toggle.js +1 -1
  399. package/dist/components/rtk-participants-viewer-list.js +1 -1
  400. package/dist/components/rtk-participants-waiting-list.js +1 -1
  401. package/dist/components/rtk-participants.js +1 -1
  402. package/dist/components/rtk-permissions-message.js +1 -1
  403. package/dist/components/rtk-pinned-message-selector.js +1 -1
  404. package/dist/components/rtk-pip-toggle.js +1 -1
  405. package/dist/components/rtk-plugin-main.js +1 -1
  406. package/dist/components/rtk-plugins-toggle.js +1 -1
  407. package/dist/components/rtk-plugins.js +1 -1
  408. package/dist/components/rtk-poll-form.js +1 -1
  409. package/dist/components/rtk-poll.js +1 -1
  410. package/dist/components/rtk-polls-toggle.js +1 -1
  411. package/dist/components/rtk-polls.js +1 -1
  412. package/dist/components/rtk-recording-indicator.js +1 -1
  413. package/dist/components/rtk-recording-toggle.js +1 -1
  414. package/dist/components/rtk-screen-share-toggle.js +1 -1
  415. package/dist/components/rtk-screenshare-view.js +1 -1
  416. package/dist/components/rtk-settings-audio.js +1 -1
  417. package/dist/components/rtk-settings-toggle.js +1 -1
  418. package/dist/components/rtk-settings-video.js +1 -1
  419. package/dist/components/rtk-settings.js +1 -1
  420. package/dist/components/rtk-setup-screen.js +1 -1
  421. package/dist/components/rtk-sidebar-ui.js +1 -1
  422. package/dist/components/rtk-sidebar.js +1 -1
  423. package/dist/components/rtk-simple-grid.js +1 -1
  424. package/dist/components/rtk-speaker-selector.js +1 -1
  425. package/dist/components/rtk-spinner.js +1 -1
  426. package/dist/components/rtk-spotlight-grid.js +1 -1
  427. package/dist/components/rtk-spotlight-indicator.js +1 -1
  428. package/dist/components/rtk-stage-toggle.js +1 -1
  429. package/dist/components/rtk-stage.js +1 -1
  430. package/dist/components/rtk-switch.js +1 -1
  431. package/dist/components/rtk-tab-bar.js +1 -1
  432. package/dist/components/rtk-text-composer-view.js +1 -1
  433. package/dist/components/rtk-text-message-view.js +1 -1
  434. package/dist/components/rtk-text-message.js +1 -1
  435. package/dist/components/rtk-transcript.js +1 -1
  436. package/dist/components/rtk-transcripts.js +1 -1
  437. package/dist/components/rtk-ui-provider.js +1 -1
  438. package/dist/components/rtk-viewer-count.js +1 -1
  439. package/dist/components/rtk-virtualized-participant-list.js +1 -1
  440. package/dist/components/rtk-waiting-screen.js +1 -1
  441. package/dist/docs/docs-components.json +3711 -742
  442. package/dist/docs/docs-vscode.json +5 -1
  443. package/dist/esm/{TextMessage-BZiVGmY1.js → TextMessage-yvgmoyno.js} +1 -1
  444. package/dist/esm/{chat-lvouWi7J.js → chat-C76CTGaE.js} +1 -1
  445. package/dist/esm/{config-B2jDqnc2.js → config-DP9lPGyT.js} +4 -10
  446. package/dist/esm/{debounce-aR8pwob-.js → debounce-wUcmtMrZ.js} +1 -1
  447. package/dist/esm/{index-CgECHQfr.js → index-BqWqJ0QM.js} +1 -1
  448. package/dist/esm/index.js +19 -11
  449. package/dist/esm/loader.js +1054 -579
  450. package/dist/esm/{ui-kit-metadata-DBkOnyOI.js → merge-CyAJSnqi.js} +2 -287
  451. package/dist/esm/realtimekit-ui.js +1 -1
  452. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  453. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  454. package/dist/esm/rtk-ai_3.entry.js +2 -2
  455. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  456. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  457. package/dist/esm/rtk-audio-visualizer_3.entry.js +2 -3
  458. package/dist/esm/rtk-avatar_26.entry.js +10 -9
  459. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  460. package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
  461. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  462. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  463. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  464. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  465. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  466. package/dist/esm/rtk-chat-message.entry.js +2 -2
  467. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  468. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  469. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  470. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  471. package/dist/esm/rtk-clock.entry.js +2 -2
  472. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  473. package/dist/esm/rtk-controlbar.entry.js +2 -2
  474. package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
  475. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  476. package/dist/esm/rtk-debugger.entry.js +2 -2
  477. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  478. package/dist/esm/rtk-dialog.entry.js +2 -2
  479. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  480. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  481. package/dist/esm/rtk-file-message_3.entry.js +6 -6
  482. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  483. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  484. package/dist/esm/rtk-grid.entry.js +2 -2
  485. package/dist/esm/rtk-header.entry.js +2 -2
  486. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  487. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  488. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  489. package/dist/esm/rtk-leave-button.entry.js +2 -2
  490. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  491. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  492. package/dist/esm/rtk-logo.entry.js +2 -2
  493. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  494. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  495. package/dist/esm/rtk-mic-toggle.entry.js +2 -3
  496. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  497. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  498. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  499. package/dist/esm/rtk-name-tag.entry.js +2 -2
  500. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  501. package/dist/esm/rtk-notification.entry.js +8 -6
  502. package/dist/esm/rtk-notifications.entry.js +194 -204
  503. package/dist/esm/rtk-participant-count.entry.js +2 -2
  504. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  505. package/dist/esm/rtk-participant_2.entry.js +5 -5
  506. package/dist/esm/rtk-participants-audio.entry.js +2 -3
  507. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  508. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  509. package/dist/esm/rtk-participants.entry.js +3 -3
  510. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  511. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  512. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  513. package/dist/esm/rtk-poll_2.entry.js +2 -2
  514. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  515. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  516. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  517. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  518. package/dist/esm/rtk-screenshare-view.entry.js +347 -34
  519. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  520. package/dist/esm/rtk-settings-toggle.entry.js +3 -3
  521. package/dist/esm/rtk-settings.entry.js +2 -2
  522. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  523. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  524. package/dist/esm/rtk-sidebar.entry.js +2 -2
  525. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  526. package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
  527. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  528. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  529. package/dist/esm/rtk-stage.entry.js +3 -3
  530. package/dist/esm/rtk-switch.entry.js +3 -3
  531. package/dist/esm/rtk-transcript.entry.js +3 -3
  532. package/dist/esm/rtk-transcripts.entry.js +2 -2
  533. package/dist/esm/rtk-ui-provider.entry.js +3 -2
  534. package/dist/esm/rtk-waiting-screen.entry.js +3 -3
  535. package/dist/esm/ui-kit-metadata-BLyVHBPm.js +286 -0
  536. package/dist/esm/{ui-store-25wIB_YH.js → ui-store-BDu-JN-c.js} +221 -9
  537. package/dist/realtimekit-ui/index.esm.js +1 -1
  538. package/dist/realtimekit-ui/{p-3ab9b329.entry.js → p-00d76359.entry.js} +1 -1
  539. package/dist/realtimekit-ui/{p-2999cb8d.entry.js → p-09c97ce7.entry.js} +1 -1
  540. package/dist/realtimekit-ui/{p-c7f7f0ee.entry.js → p-1649cd9b.entry.js} +1 -1
  541. package/dist/realtimekit-ui/{p-aa1bcc8d.entry.js → p-1cb35848.entry.js} +1 -1
  542. package/dist/realtimekit-ui/{p-2f380c20.entry.js → p-20ca622e.entry.js} +1 -1
  543. package/dist/realtimekit-ui/{p-a5afae52.entry.js → p-212b81f9.entry.js} +1 -1
  544. package/dist/realtimekit-ui/p-216d317b.entry.js +1 -0
  545. package/dist/realtimekit-ui/{p-e54dbacd.entry.js → p-21d6fbde.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-6a985345.entry.js → p-2630a30f.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-7878ab30.entry.js → p-2666b720.entry.js} +1 -1
  548. package/dist/realtimekit-ui/{p-1eac1ada.entry.js → p-29ca5030.entry.js} +1 -1
  549. package/dist/realtimekit-ui/p-2ac37cd3.entry.js +1 -0
  550. package/dist/realtimekit-ui/{p-69e11a90.entry.js → p-2b4a9798.entry.js} +1 -1
  551. package/dist/realtimekit-ui/{p-69445dc5.entry.js → p-2cc93fdf.entry.js} +1 -1
  552. package/dist/realtimekit-ui/{p-c35040dc.entry.js → p-2cffd80b.entry.js} +1 -1
  553. package/dist/realtimekit-ui/{p-6bca148a.entry.js → p-2e00a64f.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-22cd2a40.entry.js → p-2f225d81.entry.js} +1 -1
  555. package/dist/realtimekit-ui/{p-94a286d0.entry.js → p-31cff3b4.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-da857425.entry.js → p-339d78e0.entry.js} +1 -1
  557. package/dist/realtimekit-ui/p-39f4dfc2.entry.js +1 -0
  558. package/dist/realtimekit-ui/{p-d91222ea.entry.js → p-3df86b16.entry.js} +1 -1
  559. package/dist/realtimekit-ui/{p-7711649a.entry.js → p-40b5a3f6.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-5ea44aa5.entry.js → p-40d669f7.entry.js} +1 -1
  561. package/dist/realtimekit-ui/p-465e03e3.entry.js +1 -0
  562. package/dist/realtimekit-ui/{p-a478656f.entry.js → p-468bbf25.entry.js} +1 -1
  563. package/dist/realtimekit-ui/{p-467cb881.entry.js → p-46f5bd65.entry.js} +1 -1
  564. package/dist/realtimekit-ui/{p-cdf80add.entry.js → p-4a2791af.entry.js} +1 -1
  565. package/dist/realtimekit-ui/{p-a732dd55.entry.js → p-4d1c520d.entry.js} +1 -1
  566. package/dist/realtimekit-ui/{p-fbde8aee.entry.js → p-4f4f74de.entry.js} +1 -1
  567. package/dist/realtimekit-ui/{p-6568c9be.entry.js → p-50964a67.entry.js} +1 -1
  568. package/dist/realtimekit-ui/{p-60e672f3.entry.js → p-590d9a6f.entry.js} +1 -1
  569. package/dist/realtimekit-ui/{p-73f2a2db.entry.js → p-59e85491.entry.js} +1 -1
  570. package/dist/realtimekit-ui/{p-cf9e2497.entry.js → p-5a316687.entry.js} +1 -1
  571. package/dist/realtimekit-ui/{p-8dc6db09.entry.js → p-5ad79e40.entry.js} +1 -1
  572. package/dist/realtimekit-ui/{p-a6b6f977.entry.js → p-65d4e49f.entry.js} +1 -1
  573. package/dist/realtimekit-ui/{p-69ee90c7.entry.js → p-66c16b99.entry.js} +1 -1
  574. package/dist/realtimekit-ui/p-679cff34.entry.js +1 -0
  575. package/dist/realtimekit-ui/p-68355fad.entry.js +1 -0
  576. package/dist/realtimekit-ui/{p-f202a199.entry.js → p-6c6da19f.entry.js} +1 -1
  577. package/dist/realtimekit-ui/{p-a1febe2c.entry.js → p-6db3f0b3.entry.js} +1 -1
  578. package/dist/realtimekit-ui/p-705c69ef.entry.js +1 -0
  579. package/dist/realtimekit-ui/{p-b29b686b.entry.js → p-71bd9c93.entry.js} +1 -1
  580. package/dist/realtimekit-ui/{p-3a0eaf1e.entry.js → p-780e1278.entry.js} +1 -1
  581. package/dist/realtimekit-ui/{p-590350ae.entry.js → p-7b95fcea.entry.js} +1 -1
  582. package/dist/realtimekit-ui/{p-c8cad0a6.entry.js → p-7f6cd05d.entry.js} +1 -1
  583. package/dist/realtimekit-ui/{p-77648ee7.entry.js → p-80e72f3b.entry.js} +1 -1
  584. package/dist/realtimekit-ui/p-81b64fa2.entry.js +1 -0
  585. package/dist/realtimekit-ui/{p-64b7ca52.entry.js → p-866df7d3.entry.js} +1 -1
  586. package/dist/realtimekit-ui/{p-64f46d1e.entry.js → p-8a113cfb.entry.js} +1 -1
  587. package/dist/realtimekit-ui/{p-00ae47eb.entry.js → p-915dec6c.entry.js} +1 -1
  588. package/dist/realtimekit-ui/{p-b783a853.entry.js → p-9169be62.entry.js} +1 -1
  589. package/dist/realtimekit-ui/{p-60f90e32.entry.js → p-95f35e70.entry.js} +1 -1
  590. package/dist/realtimekit-ui/{p-95818179.entry.js → p-983ca822.entry.js} +1 -1
  591. package/dist/realtimekit-ui/{p-3d95065e.entry.js → p-98e3caf7.entry.js} +1 -1
  592. package/dist/realtimekit-ui/p-9f5eb163.entry.js +1 -0
  593. package/dist/realtimekit-ui/p-BLyVHBPm.js +1 -0
  594. package/dist/realtimekit-ui/p-Bzni6MqK.js +1 -0
  595. package/dist/realtimekit-ui/p-DEqeU73W.js +1 -0
  596. package/dist/realtimekit-ui/p-DYdFtxVz.js +1 -0
  597. package/dist/realtimekit-ui/{p-CGOvNX5H.js → p-DjuLCOXk.js} +1 -1
  598. package/dist/realtimekit-ui/{p-CRQsZMW5.js → p-KiBrYIp4.js} +1 -1
  599. package/dist/realtimekit-ui/{p-8206b22d.entry.js → p-a058849b.entry.js} +1 -1
  600. package/dist/realtimekit-ui/{p-54c71e62.entry.js → p-a2fd9cf2.entry.js} +1 -1
  601. package/dist/realtimekit-ui/p-a3177447.entry.js +1 -0
  602. package/dist/realtimekit-ui/{p-39a410f5.entry.js → p-a583cc88.entry.js} +1 -1
  603. package/dist/realtimekit-ui/p-aIVgtPUf.js +1 -0
  604. package/dist/realtimekit-ui/{p-cfa03301.entry.js → p-ad8e4409.entry.js} +1 -1
  605. package/dist/realtimekit-ui/{p-13a913a9.entry.js → p-b16b8339.entry.js} +1 -1
  606. package/dist/realtimekit-ui/{p-0ce5b00f.entry.js → p-baa83772.entry.js} +1 -1
  607. package/dist/realtimekit-ui/{p-70672349.entry.js → p-be12bd8a.entry.js} +1 -1
  608. package/dist/realtimekit-ui/p-c132536f.entry.js +1 -0
  609. package/dist/realtimekit-ui/{p-7d7409e5.entry.js → p-ca45d169.entry.js} +1 -1
  610. package/dist/realtimekit-ui/{p-0df18cd8.entry.js → p-d1422675.entry.js} +1 -1
  611. package/dist/realtimekit-ui/{p-d7b10d53.entry.js → p-d33dcab8.entry.js} +1 -1
  612. package/dist/realtimekit-ui/{p-b56fe105.entry.js → p-d6177836.entry.js} +1 -1
  613. package/dist/realtimekit-ui/{p-2eb73b5f.entry.js → p-dfd083c9.entry.js} +1 -1
  614. package/dist/realtimekit-ui/p-e0fbcd2f.entry.js +1 -0
  615. package/dist/realtimekit-ui/{p-465c4010.entry.js → p-e2c07b34.entry.js} +1 -1
  616. package/dist/realtimekit-ui/{p-8a481d43.entry.js → p-e48f5b65.entry.js} +1 -1
  617. package/dist/realtimekit-ui/{p-4d59e280.entry.js → p-ea3591dd.entry.js} +1 -1
  618. package/dist/realtimekit-ui/{p-4b2ce9e5.entry.js → p-ea9632fb.entry.js} +1 -1
  619. package/dist/realtimekit-ui/{p-96b81823.entry.js → p-ebc2284a.entry.js} +1 -1
  620. package/dist/realtimekit-ui/{p-dcced1f6.entry.js → p-ed4e8032.entry.js} +1 -1
  621. package/dist/realtimekit-ui/{p-32079fea.entry.js → p-f163f7d0.entry.js} +1 -1
  622. package/dist/realtimekit-ui/{p-bef64365.entry.js → p-f42d1ca8.entry.js} +1 -1
  623. package/dist/realtimekit-ui/{p-9675893b.entry.js → p-f6964364.entry.js} +1 -1
  624. package/dist/realtimekit-ui/{p-21119a4d.entry.js → p-f6cc50c1.entry.js} +1 -1
  625. package/dist/realtimekit-ui/{p-18607b9a.entry.js → p-fb638463.entry.js} +1 -1
  626. package/dist/realtimekit-ui/p-fe56d5f4.entry.js +1 -0
  627. package/dist/realtimekit-ui/{p-df5b5a98.entry.js → p-febe71c5.entry.js} +1 -1
  628. package/dist/realtimekit-ui/{p-Dj-6QheV.js → p-kAmDs9rB.js} +1 -1
  629. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  630. package/dist/types/components/rtk-notifications/rtk-notifications.d.ts +12 -3
  631. package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +31 -7
  632. package/dist/types/components.d.ts +20 -13
  633. package/dist/types/lib/lang/default-language.d.ts +6 -0
  634. package/dist/types/lib/notification.d.ts +31 -2
  635. package/dist/types/types/ui-config/config.d.ts +49 -10
  636. package/dist/types/utils/notification.d.ts +11 -2
  637. package/package.json +1 -1
  638. package/dist/cjs/browser-qKzDfwbO.js +0 -5
  639. package/dist/cjs/notification-Bny5fHfy.js +0 -39
  640. package/dist/components/p--EktoJd3.js +0 -1
  641. package/dist/components/p-36vx_Mui.js +0 -1
  642. package/dist/components/p-B56IYWsZ.js +0 -1
  643. package/dist/components/p-B5Ikq3LV.js +0 -1
  644. package/dist/components/p-BeJhcBfy.js +0 -1
  645. package/dist/components/p-C8IQnQjR.js +0 -1
  646. package/dist/components/p-CAqYddlg.js +0 -1
  647. package/dist/components/p-C_e0a6jQ.js +0 -1
  648. package/dist/components/p-DalLUQa1.js +0 -1
  649. package/dist/components/p-aXMUeMjU.js +0 -1
  650. package/dist/esm/browser-CAqYddlg.js +0 -3
  651. package/dist/esm/notification-DZgheLdK.js +0 -37
  652. package/dist/realtimekit-ui/p-1ff01d5f.entry.js +0 -1
  653. package/dist/realtimekit-ui/p-20588357.entry.js +0 -1
  654. package/dist/realtimekit-ui/p-341159c7.entry.js +0 -1
  655. package/dist/realtimekit-ui/p-63413c07.entry.js +0 -1
  656. package/dist/realtimekit-ui/p-72b2fe54.entry.js +0 -1
  657. package/dist/realtimekit-ui/p-792d2533.entry.js +0 -1
  658. package/dist/realtimekit-ui/p-828ecefa.entry.js +0 -1
  659. package/dist/realtimekit-ui/p-82a226df.entry.js +0 -1
  660. package/dist/realtimekit-ui/p-9c53a0b7.entry.js +0 -1
  661. package/dist/realtimekit-ui/p-B3SWd1rN.js +0 -1
  662. package/dist/realtimekit-ui/p-B56IYWsZ.js +0 -1
  663. package/dist/realtimekit-ui/p-C8tHk7bV.js +0 -1
  664. package/dist/realtimekit-ui/p-CAqYddlg.js +0 -1
  665. package/dist/realtimekit-ui/p-DgbGa7ou.js +0 -1
  666. package/dist/realtimekit-ui/p-a05269d4.entry.js +0 -1
  667. package/dist/realtimekit-ui/p-b415ff27.entry.js +0 -1
  668. package/dist/realtimekit-ui/p-cc9228ee.entry.js +0 -1
  669. package/dist/realtimekit-ui/p-df0fe032.entry.js +0 -1
  670. package/dist/realtimekit-ui/p-x7gw0EVy.js +0 -1
@@ -1 +1 @@
1
- import{r as t,d as i,h as o,a as e}from"./p-gJCRRBX0.js";import{c as n,e as s,i as a}from"./p-C8tHk7bV.js";import{S as l}from"./p-CGOvNX5H.js";import{R as r}from"./p-CTFO-5XH.js";var c=function(t,i,o,e){var n,s=arguments.length,a=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(a=(s<3?n(a):s>3?n(i,o,a):n(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};const h=class{constructor(o){t(this,o),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=n(),this.iconPack=s,this.t=a(),this.updateStoreState=(t,i)=>{this.stateUpdate.emit({[t]:i})},this.cancelJoinStage=async()=>{var t,i,o;"ACCEPTED_TO_JOIN_STAGE"===(null===(t=this.meeting.stage)||void 0===t?void 0:t.status)&&await(null===(o=null===(i=this.meeting)||void 0===i?void 0:i.stage)||void 0===o?void 0:o.leave()),this.updateStoreState("activeJoinStage",!1)},this.joinStage=async()=>{await this.meeting.stage.join()},this.stageStatusUpdateListener=t=>{var i;(null===(i=this.states)||void 0===i?void 0:i.activeJoinStage)&&"ON_STAGE"===t&&this.updateStoreState("activeJoinStage",!1)}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)}meetingChanged(t){if(!t)return;const{stage:i}=t;null==i||i.addListener("stageStatusUpdate",this.stageStatusUpdateListener)}render(){var t,i,n,s;if(!this.meeting)return;const a={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t},l=this.states;if(null!=(null==l?void 0:l.image)){const t=()=>{this.stateUpdate.emit({image:null})};return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:t,hideCloseButton:!0,iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-image-viewer",defaults:a,props:{image:l.image,onClose:t}})))}if(!0===(null==l?void 0:l.activeSettings))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeSettings",!1),iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-settings",defaults:a})));if(!0===(null==l?void 0:l.activeDebugger))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeDebugger",!1),iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-debugger",defaults:a})));if(!0===(null==l?void 0:l.activeLeaveConfirmation))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeLeaveConfirmation",!1),iconPack:this.iconPack,t:this.t},o("rtk-leave-meeting",Object.assign({},a))));if(!0===(null===(t=null==l?void 0:l.activePermissionsMessage)||void 0===t?void 0:t.enabled))return o(e,null,o("rtk-dialog",{open:!0,hideCloseButton:!0,iconPack:this.iconPack,t:this.t},o("rtk-permissions-message",Object.assign({},a))));if(!0===(null===(i=null==l?void 0:l.activeBreakoutRoomsManager)||void 0===i?void 0:i.active))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeBreakoutRoomsManager",{active:!1,data:void 0}),iconPack:this.iconPack,t:this.t},o("rtk-breakout-rooms-manager",Object.assign({},a))));if(!0===(null===(n=null==l?void 0:l.activeConfirmationModal)||void 0===n?void 0:n.active))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeConfirmationModal",!1),iconPack:this.iconPack,t:this.t},o("rtk-confirmation-modal",Object.assign({},a))));if(!0===(null===(s=null==l?void 0:l.activeOverlayModal)||void 0===s?void 0:s.active))return o(e,null,o("rtk-overlay-modal",{meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t}));if(null==l?void 0:l.activeBroadcastMessageModal)return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeBroadcastMessageModal",!1),iconPack:this.iconPack,t:this.t},o("rtk-broadcast-message-modal",Object.assign({},a))));if(!0===(null==l?void 0:l.activeJoinStage)){const t={title:this.t("stage.join_title"),label:{accept:this.t("stage.join_confirm"),reject:this.t("stage.join_cancel")},description:this.t("stage.join_summary")};return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:this.cancelJoinStage,iconPack:this.iconPack,t:this.t},o("rtk-join-stage",Object.assign({dataConfig:t,onRtkJoinStage:this.joinStage,onRtkLeaveStage:this.cancelJoinStage},a))))}return!0===(null==l?void 0:l.activeMuteAllConfirmation)?o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>{this.updateStoreState("activeMuteAllConfirmation",!1)},iconPack:this.iconPack,t:this.t},o("rtk-mute-all-confirmation",Object.assign({},a)))):void 0}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([l()],h.prototype,"meeting",void 0),c([l()],h.prototype,"config",void 0),c([l()],h.prototype,"states",void 0),c([l()],h.prototype,"iconPack",void 0),c([l()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{h as rtk_dialog_manager}
1
+ import{r as t,d as i,h as o,a as e}from"./p-gJCRRBX0.js";import{c as n,e as s,i as a}from"./p-DYdFtxVz.js";import{S as l}from"./p-DjuLCOXk.js";import{R as r}from"./p-CTFO-5XH.js";var c=function(t,i,o,e){var n,s=arguments.length,a=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,o,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(a=(s<3?n(a):s>3?n(i,o,a):n(i,o))||a);return s>3&&a&&Object.defineProperty(i,o,a),a};const h=class{constructor(o){t(this,o),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=n(),this.iconPack=s,this.t=a(),this.updateStoreState=(t,i)=>{this.stateUpdate.emit({[t]:i})},this.cancelJoinStage=async()=>{var t,i,o;"ACCEPTED_TO_JOIN_STAGE"===(null===(t=this.meeting.stage)||void 0===t?void 0:t.status)&&await(null===(o=null===(i=this.meeting)||void 0===i?void 0:i.stage)||void 0===o?void 0:o.leave()),this.updateStoreState("activeJoinStage",!1)},this.joinStage=async()=>{await this.meeting.stage.join()},this.stageStatusUpdateListener=t=>{var i;(null===(i=this.states)||void 0===i?void 0:i.activeJoinStage)&&"ON_STAGE"===t&&this.updateStoreState("activeJoinStage",!1)}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)}meetingChanged(t){if(!t)return;const{stage:i}=t;null==i||i.addListener("stageStatusUpdate",this.stageStatusUpdateListener)}render(){var t,i,n,s;if(!this.meeting)return;const a={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t},l=this.states;if(null!=(null==l?void 0:l.image)){const t=()=>{this.stateUpdate.emit({image:null})};return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:t,hideCloseButton:!0,iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-image-viewer",defaults:a,props:{image:l.image,onClose:t}})))}if(!0===(null==l?void 0:l.activeSettings))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeSettings",!1),iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-settings",defaults:a})));if(!0===(null==l?void 0:l.activeDebugger))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeDebugger",!1),iconPack:this.iconPack,t:this.t},o(r,{element:"rtk-debugger",defaults:a})));if(!0===(null==l?void 0:l.activeLeaveConfirmation))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeLeaveConfirmation",!1),iconPack:this.iconPack,t:this.t},o("rtk-leave-meeting",Object.assign({},a))));if(!0===(null===(t=null==l?void 0:l.activePermissionsMessage)||void 0===t?void 0:t.enabled))return o(e,null,o("rtk-dialog",{open:!0,hideCloseButton:!0,iconPack:this.iconPack,t:this.t},o("rtk-permissions-message",Object.assign({},a))));if(!0===(null===(i=null==l?void 0:l.activeBreakoutRoomsManager)||void 0===i?void 0:i.active))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeBreakoutRoomsManager",{active:!1,data:void 0}),iconPack:this.iconPack,t:this.t},o("rtk-breakout-rooms-manager",Object.assign({},a))));if(!0===(null===(n=null==l?void 0:l.activeConfirmationModal)||void 0===n?void 0:n.active))return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeConfirmationModal",!1),iconPack:this.iconPack,t:this.t},o("rtk-confirmation-modal",Object.assign({},a))));if(!0===(null===(s=null==l?void 0:l.activeOverlayModal)||void 0===s?void 0:s.active))return o(e,null,o("rtk-overlay-modal",{meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t}));if(null==l?void 0:l.activeBroadcastMessageModal)return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>this.updateStoreState("activeBroadcastMessageModal",!1),iconPack:this.iconPack,t:this.t},o("rtk-broadcast-message-modal",Object.assign({},a))));if(!0===(null==l?void 0:l.activeJoinStage)){const t={title:this.t("stage.join_title"),label:{accept:this.t("stage.join_confirm"),reject:this.t("stage.join_cancel")},description:this.t("stage.join_summary")};return o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:this.cancelJoinStage,iconPack:this.iconPack,t:this.t},o("rtk-join-stage",Object.assign({dataConfig:t,onRtkJoinStage:this.joinStage,onRtkLeaveStage:this.cancelJoinStage},a))))}return!0===(null==l?void 0:l.activeMuteAllConfirmation)?o(e,null,o("rtk-dialog",{open:!0,onRtkDialogClose:()=>{this.updateStoreState("activeMuteAllConfirmation",!1)},iconPack:this.iconPack,t:this.t},o("rtk-mute-all-confirmation",Object.assign({},a)))):void 0}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([l()],h.prototype,"meeting",void 0),c([l()],h.prototype,"config",void 0),c([l()],h.prototype,"states",void 0),c([l()],h.prototype,"iconPack",void 0),c([l()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{h as rtk_dialog_manager}
@@ -1 +1 @@
1
- import{r as t,h as a,a as e}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as s,i}from"./p-C8tHk7bV.js";import{S as r}from"./p-CGOvNX5H.js";import"./p-Daj_55_i.js";var o=function(t,a,e,s){var i,r=arguments.length,o=r<3?a:null===s?s=Object.getOwnPropertyDescriptor(a,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,a,e,s);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(r<3?i(o):r>3?i(a,e,o):i(a,e))||o);return r>3&&o&&Object.defineProperty(a,e,o),o};const c=class{constructor(e){t(this,e),this.iconPack=s,this.t=i(),this.pageSize=50,this.searchMessages=async()=>[],this.nodeRenderer=t=>t.map((t=>a("rtk-chat-message",{key:t.id,message:t,disableControls:!0})))}render(){return a(e,{key:"4ea17889c442ac91c4bb54896c600d17290c0715"},a("rtk-paginated-list",{key:"8fa700caf9b3a2c7329fb555baf1a979231fa71c",pageSize:this.pageSize,pagesAllowed:3,fetchData:this.searchMessages,createNodes:this.nodeRenderer}))}};o([r()],c.prototype,"meeting",void 0),o([r()],c.prototype,"iconPack",void 0),o([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:flex;height:100%;flex-direction:column;position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}";export{c as rtk_chat_search_results}
1
+ import{r as t,h as a,a as e}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import{e as s,i}from"./p-DYdFtxVz.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-DjuLCOXk.js";import"./p-Daj_55_i.js";var o=function(t,a,e,s){var i,r=arguments.length,o=r<3?a:null===s?s=Object.getOwnPropertyDescriptor(a,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,a,e,s);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(r<3?i(o):r>3?i(a,e,o):i(a,e))||o);return r>3&&o&&Object.defineProperty(a,e,o),o};const c=class{constructor(e){t(this,e),this.iconPack=s,this.t=i(),this.pageSize=50,this.searchMessages=async()=>[],this.nodeRenderer=t=>t.map((t=>a("rtk-chat-message",{key:t.id,message:t,disableControls:!0})))}render(){return a(e,{key:"4ea17889c442ac91c4bb54896c600d17290c0715"},a("rtk-paginated-list",{key:"8fa700caf9b3a2c7329fb555baf1a979231fa71c",pageSize:this.pageSize,pagesAllowed:3,fetchData:this.searchMessages,createNodes:this.nodeRenderer}))}};o([r()],c.prototype,"meeting",void 0),o([r()],c.prototype,"iconPack",void 0),o([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:flex;height:100%;flex-direction:column;position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}";export{c as rtk_chat_search_results}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as o}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e,i as n}from"./p-C8tHk7bV.js";import{S as a}from"./p-CGOvNX5H.js";import"./p-Daj_55_i.js";var r=function(t,i,s,o){var e,n=arguments.length,a=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,o);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(a=(n<3?e(a):n>3?e(i,s,a):e(i,s))||a);return n>3&&a&&Object.defineProperty(i,s,a),a};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=n(),this.canDisable=!1,this.permissionsUpdateListener=()=>{var t;this.canDisable=!!(null===(t=this.meeting)||void 0===t?void 0:t.self.permissions.canDisableParticipantAudio)},this.onMuteAll=()=>{this.stateUpdate.emit({activeMuteAllConfirmation:!0})}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,s;null===(s=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===s||s.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){t&&(this.canDisable=!!(null==t?void 0:t.self.permissions.canDisableParticipantAudio),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}render(){if(!this.meeting)return null;if(!this.canDisable)return null;const t=this.t("mute_all");return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:this.iconPack.speaker_off,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,onClick:this.onMuteAll})))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};r([a()],l.prototype,"meeting",void 0),r([a()],l.prototype,"iconPack",void 0),r([a()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_mute_all_button}
1
+ import{r as t,d as i,h as s,a as o}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import{e,i as n}from"./p-DYdFtxVz.js";import"./p-C0vp-Q7v.js";import{S as a}from"./p-DjuLCOXk.js";import"./p-Daj_55_i.js";var r=function(t,i,s,o){var e,n=arguments.length,a=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,o);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(a=(n<3?e(a):n>3?e(i,s,a):e(i,s))||a);return n>3&&a&&Object.defineProperty(i,s,a),a};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=n(),this.canDisable=!1,this.permissionsUpdateListener=()=>{var t;this.canDisable=!!(null===(t=this.meeting)||void 0===t?void 0:t.self.permissions.canDisableParticipantAudio)},this.onMuteAll=()=>{this.stateUpdate.emit({activeMuteAllConfirmation:!0})}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,s;null===(s=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===s||s.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){t&&(this.canDisable=!!(null==t?void 0:t.self.permissions.canDisableParticipantAudio),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}render(){if(!this.meeting)return null;if(!this.canDisable)return null;const t=this.t("mute_all");return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:this.iconPack.speaker_off,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,onClick:this.onMuteAll})))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};r([a()],l.prototype,"meeting",void 0),r([a()],l.prototype,"iconPack",void 0),r([a()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_mute_all_button}
@@ -1 +1 @@
1
- import{r as t,h as i,a as s,g as e}from"./p-gJCRRBX0.js";import{c as h,e as a,i as d}from"./p-C8tHk7bV.js";import{d as r}from"./p-CmmyVCoN.js";import{R as o}from"./p-CTFO-5XH.js";import{S as m}from"./p-CGOvNX5H.js";var c=function(t,i,s,e){var h,a=arguments.length,d=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(h=t[r])&&(d=(a<3?h(d):a>3?h(i,s,d):h(i,s))||d);return a>3&&d&&Object.defineProperty(i,s,d),d};const n=class{constructor(i){t(this,i),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=h(),this.iconPack=a,this.t=d(),this.gridSize=r,this.getAdaptiveSize=t=>"sm"===this.size||t>3||"md"===this.size?"sm":"md"}render(){const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},e=this.participants.filter((t=>this.pinnedParticipants.some((i=>i.id!=t.id))));return i(s,{key:"89eb01a359afac77b549cf1874a66ee3c71b3c03"},i("main",{key:"c3d6ec072a2f6ad20f74075c1f14ed35d338542d",part:"main"},i(o,{key:"3beb850780222b5de7733b4f784cd8a009cc6f5a",element:"rtk-simple-grid",defaults:t,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),e.length>0&&i("aside",{key:"3e729aed79f80a9f12bb586654ef654613a1035d",part:"aside",class:this.gridSize.spotlight?`grid-width-${this.gridSize.spotlight}`:"grid-width-md"},i(o,{key:"d23ad2d8775a4714b0681c39289930cfef90d531",element:"rtk-simple-grid",defaults:t,props:{part:"aside-grid",participants:e,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(e.length)}})))}get host(){return e(this)}};c([m()],n.prototype,"meeting",void 0),c([m()],n.prototype,"states",void 0),c([m()],n.prototype,"config",void 0),c([m()],n.prototype,"iconPack",void 0),c([m()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}";export{n as rtk_spotlight_grid}
1
+ import{r as t,h as i,a as s,g as e}from"./p-gJCRRBX0.js";import{c as d,e as h,i as a}from"./p-DYdFtxVz.js";import{d as r}from"./p-CmmyVCoN.js";import{R as o}from"./p-CTFO-5XH.js";import{S as m}from"./p-DjuLCOXk.js";var n=function(t,i,s,e){var d,h=arguments.length,a=h<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--)(d=t[r])&&(a=(h<3?d(a):h>3?d(i,s,a):d(i,s))||a);return h>3&&a&&Object.defineProperty(i,s,a),a};const c=class{constructor(i){t(this,i),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=d(),this.iconPack=h,this.t=a(),this.gridSize=r,this.getAdaptiveSize=t=>"sm"===this.size||t>3||"md"===this.size?"sm":"md"}render(){const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},e=this.participants.filter((t=>this.pinnedParticipants.some((i=>i.id!=t.id))));return i(s,{key:"80307410481d7418e30c78351b6ec16e466b95da"},i("main",{key:"e454d37b226868e02f8da6f61abf18f274ce3fdd",part:"main"},i(o,{key:"b05d69dd12ea7f2da225e4c0456aa9979d6db153",element:"rtk-simple-grid",defaults:t,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),e.length>0&&i("aside",{key:"d7de316e63f1a4a770022f7da4ebc5836b3f28d6",part:"aside",class:this.gridSize.spotlight?`grid-width-${this.gridSize.spotlight}`:"grid-width-md"},i(o,{key:"92c24d74113f04f8334be5a2fc1c68dd9d0ca421",element:"rtk-simple-grid",defaults:t,props:{part:"aside-grid",participants:e,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(e.length)}})))}get host(){return e(this)}};n([m()],c.prototype,"meeting",void 0),n([m()],c.prototype,"states",void 0),n([m()],c.prototype,"config",void 0),n([m()],c.prototype,"iconPack",void 0),n([m()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}";export{c as rtk_spotlight_grid}
@@ -0,0 +1 @@
1
+ import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{N as e,e as r,i as o}from"./p-DYdFtxVz.js";import{S as h}from"./p-DjuLCOXk.js";import{a as d}from"./p-C0vp-Q7v.js";class n{constructor(t,i){this.meeting=t,this.audio=null!=i?i:document.createElement("audio"),this.audio.autoplay=!0,this.logger=t.__internals__.logger,this.audioStream=new MediaStream,this.audio.srcObject=this.audioStream,this.trackIdByAudioIdMap=new Map,this.trackOwners=new Map}addTrack(t,i){const s=this.trackIdByAudioIdMap.get(t);if(s===i.id)return void this.play();s&&this.removeTrack(t),this.trackIdByAudioIdMap.set(t,i.id);const a=this.trackOwners.get(i.id);a?a.audioIds.add(t):(this.trackOwners.set(i.id,{track:i,audioIds:new Set([t])}),this.audioStream.addTrack(i)),this.play()}removeTrack(t){const i=this.trackIdByAudioIdMap.get(t);if(!i)return;this.trackIdByAudioIdMap.delete(t);const s=this.trackOwners.get(i);s&&(s.audioIds.delete(t),s.audioIds.size>0||(this.audioStream.removeTrack(s.track),this.trackOwners.delete(i)))}async play(){var t;this.audio.srcObject=this.audioStream,await(null===(t=this.audio.play())||void 0===t?void 0:t.catch((t=>{"NotAllowedError"===t.name?null!=this._onError&&this._onError():"AbortError"!==t.name&&this.logger.error("[rtk-audio] play() error\n",t)})))}async setDevice(t){var i,s,a;e(this.meeting)||await(null===(a=null===(s=(i=this.audio).setSinkId)||void 0===s?void 0:s.call(i,t))||void 0===a?void 0:a.catch((t=>{this.logger.error("[rtk-audio] setSinkId() error\n",t)})))}onError(t){this._onError=t}}var c=function(t,i,s,a){var e,r=arguments.length,o=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,a);else for(var h=t.length-1;h>=0;h--)(e=t[h])&&(o=(r<3?e(o):r>3?e(i,s,o):e(i,s))||o);return r>3&&o&&Object.defineProperty(i,s,o),o};const l=class{constructor(s){t(this,s),this.dialogClose=i(this,"dialogClose",7),this.iconPack=r,this.t=o(),this.preloadedAudioElem=void 0,this.showPlayDialog=!1,this.onRtkDialogClose=()=>{this.showPlayDialog=!1,this.dialogClose.emit()}}componentDidLoad(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.meeting&&(this.audioUpdateListener&&this.meeting.participants.joined.removeListener("audioUpdate",this.audioUpdateListener),this.screenShareUpdateListener&&this.meeting.participants.joined.removeListener("screenShareUpdate",this.screenShareUpdateListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),this.deviceUpdateListener&&this.meeting.self.removeListener("deviceUpdate",this.deviceUpdateListener),this.stageStatusUpdateListener&&(null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)))}async setupAudio(){this.audio=new n(this.meeting,this.preloadedAudioElem);const t=this.meeting.self.getCurrentDevices();null!=t.speaker&&await this.audio.setDevice(t.speaker.deviceId)}async handleAutoPlayError(){this.audio||await this.setupAudio(),this.audio.onError((()=>{this.showPlayDialog=!0})),this.audio.play()}async handleEvents(t){this.audioUpdateListener=({id:t,audioEnabled:i,audioTrack:s})=>{const a=`audio-${t}`;i&&null!=s?this.audio.addTrack(a,s):this.audio.removeTrack(a)};const i=t.participants.joined.toArray();for(const t of i)this.audioUpdateListener(t);this.participantLeftListener=({id:t})=>{this.audio.removeTrack(`audio-${t}`),this.audio.removeTrack(`screenshare-${t}`)},this.screenShareUpdateListener=({id:t,screenShareEnabled:i,screenShareTracks:s})=>{const a=`screenshare-${t}`;i&&null!=s.audio?this.audio.addTrack(a,s.audio):this.audio.removeTrack(a)},this.deviceUpdateListener=({device:t,preview:i})=>{i||"audiooutput"===t.kind&&this.audio.setDevice(t.deviceId)},t.participants.joined.addListener("audioUpdate",this.audioUpdateListener),t.participants.joined.addListener("screenShareUpdate",this.screenShareUpdateListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener)}async meetingChanged(t){var i;t&&(this.setupAudio(),d(t)?(this.stageStatusUpdateListener=async t=>{"ON_STAGE"===t&&await this.handleAutoPlayError()},null===(i=t.stage)||void 0===i||i.on("stageStatusUpdate",this.stageStatusUpdateListener)):await this.handleAutoPlayError(),await this.handleEvents(t))}render(){return s(a,{key:"14ddae0562633e4433788c18fb89533248df6c2b"},this.showPlayDialog&&s("rtk-dialog",{key:"d0e33058fbcd77861009ce80d7d4e29b2b597475",open:!0,onRtkDialogClose:this.onRtkDialogClose,hideCloseButton:!0,disableEscapeKey:!0,iconPack:this.iconPack,t:this.t},s("div",{key:"e6a9a18c1eaf3e09d13e25373982183b3ad6f8ec",class:"modal"},s("h3",{key:"bc87cc408aad7117cc8d808e38142b3801e5ff53"},this.t("audio_playback.title")),s("p",{key:"b1927a5cd053c59e19a6c4c54044ca500691ee71"},this.t("audio_playback.description")),s("rtk-button",{key:"3c022bb0602295cbd5996ae2ee066e254b1af2fb",kind:"wide",onClick:()=>{this.audio.play(),this.onRtkDialogClose()},title:this.t("audio_playback")},this.t("audio_playback")))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([h()],l.prototype,"meeting",void 0),c([h()],l.prototype,"iconPack",void 0),c([h()],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;overflow-wrap:break-word;color:rgb(var(--rtk-colors-text-1000, 255 255 255));word-wrap:break-word}.modal{box-sizing:border-box;width:100%;max-width:var(--rtk-space-96, 384px);padding:var(--rtk-space-4, 16px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.modal h3{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);font-size:24px;font-weight:500}.modal p{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-6, 24px)}.modal rtk-button{width:100%}";export{l as rtk_participants_audio}
@@ -1 +1 @@
1
- import{r as t,h as e,a as r}from"./p-gJCRRBX0.js";import{c as a,e as i,i as s}from"./p-C8tHk7bV.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{S as o}from"./p-CGOvNX5H.js";import"./p-Daj_55_i.js";var n=function(t,e,r,a){var i,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const c=class{constructor(e){t(this,e),this.config=a(),this.icon=i,this.t=s(),this.iconPack=i,this.message=""}connectedCallback(){this.statesChanged(this.states)}getBreakoutRoomsMessage(t){var e;let r;return"connected-meeting"===(null==t?void 0:t.roomLeftState)&&(r=(null===(e=this.states.activeBreakoutRoomsManager)||void 0===e?void 0:e.destinationMeetingId)===this.meeting.connectedMeetings.parentMeeting.id?"breakout_rooms.move_reason.switch_main_room":"breakout_rooms.move_reason.switch_room"),r}statesChanged(t){if(null!=t)switch(null==t?void 0:t.roomLeftState){case"left":this.message="ended.left";break;case"kicked":this.message="ended.kicked";break;case"disconnected":this.message="ended.disconnected";break;case"rejected":this.message="ended.rejected";break;case"connected-meeting":this.message=this.getBreakoutRoomsMessage(t);break;case"unauthorized":this.message="ended.unauthorized";break;default:this.message="ended"}}renderBreakoutRoomScreen(){return e(r,null,e("div",{class:"ctr",part:"container"},e("rtk-icon",{icon:this.iconPack.breakout_rooms}),e("p",{part:"message",class:"breakout"},this.t(this.message))))}render(){if(!this.meeting)return null;const t=this.states;return"connected-meeting"===t.roomLeftState?this.renderBreakoutRoomScreen():e(r,null,e("div",{class:"ctr",part:"container"},e("rtk-logo",{meeting:this.meeting,config:this.config,part:"logo",t:this.t}),e("p",{part:"message"},this.t(this.message)),"disconnected"===(null==t?void 0:t.roomLeftState)&&e("span",{part:"description"},this.t("ended.network"))))}static get watchers(){return{states:[{statesChanged:0}]}}};n([o()],c.prototype,"config",void 0),n([o()],c.prototype,"states",void 0),n([o()],c.prototype,"t",void 0),n([o()],c.prototype,"iconPack",void 0),n([o()],c.prototype,"meeting",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{height:100%;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex-direction:column;align-items:center;justify-content:center}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}.rejoin-button{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-6, 24px);padding-bottom:var(--rtk-space-6, 24px);padding-left:var(--rtk-space-16, 64px);padding-right:var(--rtk-space-16, 64px)}.rejoin-icon{margin-right:var(--rtk-space-2, 8px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}p.breakout{font-size:20px;display:flex;flex-direction:column;align-items:center}p.breakout span{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}span{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}";export{c as rtk_ended_screen}
1
+ import{r as t,h as e,a as r}from"./p-gJCRRBX0.js";import{c as a,e as i,i as s}from"./p-DYdFtxVz.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{S as o}from"./p-DjuLCOXk.js";import"./p-Daj_55_i.js";var n=function(t,e,r,a){var i,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const c=class{constructor(e){t(this,e),this.config=a(),this.icon=i,this.t=s(),this.iconPack=i,this.message=""}connectedCallback(){this.statesChanged(this.states)}getBreakoutRoomsMessage(t){var e;let r;return"connected-meeting"===(null==t?void 0:t.roomLeftState)&&(r=(null===(e=this.states.activeBreakoutRoomsManager)||void 0===e?void 0:e.destinationMeetingId)===this.meeting.connectedMeetings.parentMeeting.id?"breakout_rooms.move_reason.switch_main_room":"breakout_rooms.move_reason.switch_room"),r}statesChanged(t){if(null!=t)switch(null==t?void 0:t.roomLeftState){case"left":this.message="ended.left";break;case"kicked":this.message="ended.kicked";break;case"disconnected":this.message="ended.disconnected";break;case"rejected":this.message="ended.rejected";break;case"connected-meeting":this.message=this.getBreakoutRoomsMessage(t);break;case"unauthorized":this.message="ended.unauthorized";break;default:this.message="ended"}}renderBreakoutRoomScreen(){return e(r,null,e("div",{class:"ctr",part:"container"},e("rtk-icon",{icon:this.iconPack.breakout_rooms}),e("p",{part:"message",class:"breakout"},this.t(this.message))))}render(){if(!this.meeting)return null;const t=this.states;return"connected-meeting"===t.roomLeftState?this.renderBreakoutRoomScreen():e(r,null,e("div",{class:"ctr",part:"container"},e("rtk-logo",{meeting:this.meeting,config:this.config,part:"logo",t:this.t}),e("p",{part:"message"},this.t(this.message)),"disconnected"===(null==t?void 0:t.roomLeftState)&&e("span",{part:"description"},this.t("ended.network"))))}static get watchers(){return{states:[{statesChanged:0}]}}};n([o()],c.prototype,"config",void 0),n([o()],c.prototype,"states",void 0),n([o()],c.prototype,"t",void 0),n([o()],c.prototype,"iconPack",void 0),n([o()],c.prototype,"meeting",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{height:100%;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex-direction:column;align-items:center;justify-content:center}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}.rejoin-button{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-6, 24px);padding-bottom:var(--rtk-space-6, 24px);padding-left:var(--rtk-space-16, 64px);padding-right:var(--rtk-space-16, 64px)}.rejoin-icon{margin-right:var(--rtk-space-2, 8px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}p.breakout{font-size:20px;display:flex;flex-direction:column;align-items:center}p.breakout span{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}span{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}";export{c as rtk_ended_screen}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-C8tHk7bV.js";import{d as n}from"./p-D9HGXWKc.js";import{S as r}from"./p-CGOvNX5H.js";import"./p-C0vp-Q7v.js";var l=function(t,i,s,e){var a,o=arguments.length,n=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(i,s,n):a(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s,e,a,o;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===i||i.removeListener("pollsUpdate",this.onPollsUpdate),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pollsUpdate",this.updateCanView),null===(o=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var i,s;t&&t.polls&&(this.unreadPollsCount=t.polls.items.length,this.meeting.polls.addListener("pollsUpdate",this.onPollsUpdate),null===(i=null==t?void 0:t.self)||void 0===i||i.permissions.addListener("pollsUpdate",this.updateCanView),this.canViewPolls=n(t),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pollsActive=!0===t.activeSidebar&&"polls"===t.sidebar)}togglePollsTab(){const t=this.states;this.unreadPollsCount=0,this.pollsActive=!((null==t?void 0:t.activeSidebar)&&"polls"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pollsActive,sidebar:this.pollsActive?"polls":void 0,activeMoreMenu:!1})}handlePollsActiveChange(){this.pollsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPolls)return s(e,{"data-hidden":!0});const t=this.t("polls");return s(e,{title:t},0!==this.unreadPollsCount&&!this.pollsActive&&s("div",{class:"unread-count",part:"unread-count"},s("span",null,this.unreadPollsCount<=100?this.unreadPollsCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pollsActive},onClick:()=>this.togglePollsTab(),icon:this.iconPack.poll,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{h as rtk_polls_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-DYdFtxVz.js";import{d as n}from"./p-D9HGXWKc.js";import{S as r}from"./p-DjuLCOXk.js";import"./p-C0vp-Q7v.js";var l=function(t,i,s,e){var a,o=arguments.length,n=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(i,s,n):a(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s,e,a,o;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===i||i.removeListener("pollsUpdate",this.onPollsUpdate),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pollsUpdate",this.updateCanView),null===(o=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var i,s;t&&t.polls&&(this.unreadPollsCount=t.polls.items.length,this.meeting.polls.addListener("pollsUpdate",this.onPollsUpdate),null===(i=null==t?void 0:t.self)||void 0===i||i.permissions.addListener("pollsUpdate",this.updateCanView),this.canViewPolls=n(t),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pollsActive=!0===t.activeSidebar&&"polls"===t.sidebar)}togglePollsTab(){const t=this.states;this.unreadPollsCount=0,this.pollsActive=!((null==t?void 0:t.activeSidebar)&&"polls"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pollsActive,sidebar:this.pollsActive?"polls":void 0,activeMoreMenu:!1})}handlePollsActiveChange(){this.pollsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPolls)return s(e,{"data-hidden":!0});const t=this.t("polls");return s(e,{title:t},0!==this.unreadPollsCount&&!this.pollsActive&&s("div",{class:"unread-count",part:"unread-count"},s("span",null,this.unreadPollsCount<=100?this.unreadPollsCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pollsActive},onClick:()=>this.togglePollsTab(),icon:this.iconPack.poll,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{h as rtk_polls_toggle}
@@ -1 +1 @@
1
- import{r as t,d as i,h as e,F as r,a as o}from"./p-gJCRRBX0.js";import{a}from"./p-vBD2htwQ.js";import{c as s,e as n,i as c,f as l,j as d}from"./p-C8tHk7bV.js";import{R as p}from"./p-CTFO-5XH.js";import{S as h}from"./p-CGOvNX5H.js";import{g as v}from"./p-vBfDtD_u.js";var m=function(t,i,e,r){var o,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(a<3?o(s):a>3?o(i,e,s):o(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s};const g=class{constructor(e){t(this,e),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=s(),this.iconPack=n,this.t=c(),this.overrides=l,this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"connected"===t&&(this.joinError=void 0,this.joinErrorCode=void 0),"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,i,e;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){if("connected"!==this.connectionState)return void(this.connectionState&&(this.joinError=this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")));this.isJoining=!0,this.joinError=void 0,this.joinErrorCode=void 0,null===(i=this.meeting)||void 0===i||i.self.setName(this.displayName),d.setItem("rtk-display-name",this.displayName);try{await(null===(e=this.meeting)||void 0===e?void 0:e.join())}catch(t){this.isJoining=!1;const{message:i,code:e}=v(this.t,t);this.joinError=i,this.joinErrorCode=e}}}}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 i,e,r;t&&(this.connectionState=null===(i=t.meta.socketState)||void 0===i?void 0:i.state,this.canEditName=null===(e=t.self.permissions.canEditDisplayName)||void 0===e||e,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,i,s,n,c,l,d;if(!this.meeting)return;const h=!!this.connectionState&&"connected"!==this.connectionState&&!this.joinError,v=this.joinError?this.joinError:this.t("failed"===this.connectionState?"network.lost_extended":"network.lost"),m=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,g={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},k=null===(n=null===(s=null===(i=this.meeting)||void 0===i?void 0:i.meta)||void 0===s?void 0:s.meetingTitle)||void 0===n?void 0:n.trim();return e(o,null,e("div",{class:"container"},e("div",{class:"container-tile"},e(p,{element:"rtk-participant-tile",defaults:g,props:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md",isPreview:!0},childProps:{participant:null===(l=this.meeting)||void 0===l?void 0:l.self,size:"md"},deepProps:!0}),!(null===(d=this.overrides)||void 0===d?void 0:d.hideMediaSelectorsInSetupScreen)&&e("div",{class:"media-selectors"},e("rtk-microphone-selector",Object.assign({},g,{variant:"inline"})),e("rtk-camera-selector",Object.assign({},g,{variant:"inline"})),e("rtk-speaker-selector",Object.assign({},g,{variant:"inline"})))),e("div",{class:"metadata"},k&&""!==k&&e("div",{class:"meeting-title"},k),this.canEditName?e(r,null,e("div",{class:"join-as"},this.t("setup_screen.join_in_as")),e("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()}})):e("div",{class:"uneditable-name"},e("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",e("div",{class:"name"},a(this.displayName,20))),e("rtk-button",{size:"lg",kind:"wide",onClick:this.join,disabled:m},this.isJoining?e("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),(this.joinError||h)&&e("div",{class:"no-network-badge",role:"alert"},e("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected}),v),this.meeting&&this.joinError&&e("a",{class:"troubleshoot-link",href:`https://test.realtime.cloudflare.com?authToken=${this.meeting.__internals__.authToken}`,target:"_blank",rel:"noopener noreferrer"},this.t("network.troubleshoot")),this.joinErrorCode&&e("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",this.joinErrorCode))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};m([h()],g.prototype,"meeting",void 0),m([h()],g.prototype,"states",void 0),m([h()],g.prototype,"config",void 0),m([h()],g.prototype,"iconPack",void 0),m([h()],g.prototype,"t",void 0),m([h()],g.prototype,"overrides",void 0),g.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{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, 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;overflow:visible}.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)}.troubleshoot-link{margin-top:var(--rtk-space-1, 4px);font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:2px}.troubleshoot-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.error-code{margin-top:var(--rtk-space-1, 4px);font-size:10px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}";export{g as rtk_setup_screen}
1
+ import{r as t,d as i,h as e,F as r,a as o}from"./p-gJCRRBX0.js";import{a}from"./p-vBD2htwQ.js";import{c as s,e as n,i as c,f as l,j as d}from"./p-DYdFtxVz.js";import{R as p}from"./p-CTFO-5XH.js";import{S as h}from"./p-DjuLCOXk.js";import{g as v}from"./p-vBfDtD_u.js";var m=function(t,i,e,r){var o,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(a<3?o(s):a>3?o(i,e,s):o(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s};const g=class{constructor(e){t(this,e),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=s(),this.iconPack=n,this.t=c(),this.overrides=l,this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"connected"===t&&(this.joinError=void 0,this.joinErrorCode=void 0),"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,i,e;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){if("connected"!==this.connectionState)return void(this.connectionState&&(this.joinError=this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")));this.isJoining=!0,this.joinError=void 0,this.joinErrorCode=void 0,null===(i=this.meeting)||void 0===i||i.self.setName(this.displayName),d.setItem("rtk-display-name",this.displayName);try{await(null===(e=this.meeting)||void 0===e?void 0:e.join())}catch(t){this.isJoining=!1;const{message:i,code:e}=v(this.t,t);this.joinError=i,this.joinErrorCode=e}}}}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 i,e,r;t&&(this.connectionState=null===(i=t.meta.socketState)||void 0===i?void 0:i.state,this.canEditName=null===(e=t.self.permissions.canEditDisplayName)||void 0===e||e,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,i,s,n,c,l,d;if(!this.meeting)return;const h=!!this.connectionState&&"connected"!==this.connectionState&&!this.joinError,v=this.joinError?this.joinError:this.t("failed"===this.connectionState?"network.lost_extended":"network.lost"),m=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,g={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},k=null===(n=null===(s=null===(i=this.meeting)||void 0===i?void 0:i.meta)||void 0===s?void 0:s.meetingTitle)||void 0===n?void 0:n.trim();return e(o,null,e("div",{class:"container"},e("div",{class:"container-tile"},e(p,{element:"rtk-participant-tile",defaults:g,props:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md",isPreview:!0},childProps:{participant:null===(l=this.meeting)||void 0===l?void 0:l.self,size:"md"},deepProps:!0}),!(null===(d=this.overrides)||void 0===d?void 0:d.hideMediaSelectorsInSetupScreen)&&e("div",{class:"media-selectors"},e("rtk-microphone-selector",Object.assign({},g,{variant:"inline"})),e("rtk-camera-selector",Object.assign({},g,{variant:"inline"})),e("rtk-speaker-selector",Object.assign({},g,{variant:"inline"})))),e("div",{class:"metadata"},k&&""!==k&&e("div",{class:"meeting-title"},k),this.canEditName?e(r,null,e("div",{class:"join-as"},this.t("setup_screen.join_in_as")),e("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()}})):e("div",{class:"uneditable-name"},e("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",e("div",{class:"name"},a(this.displayName,20))),e("rtk-button",{size:"lg",kind:"wide",onClick:this.join,disabled:m},this.isJoining?e("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),(this.joinError||h)&&e("div",{class:"no-network-badge",role:"alert"},e("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected}),v),this.meeting&&this.joinError&&e("a",{class:"troubleshoot-link",href:`https://test.realtime.cloudflare.com?authToken=${this.meeting.__internals__.authToken}`,target:"_blank",rel:"noopener noreferrer"},this.t("network.troubleshoot")),this.joinErrorCode&&e("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",this.joinErrorCode))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};m([h()],g.prototype,"meeting",void 0),m([h()],g.prototype,"states",void 0),m([h()],g.prototype,"config",void 0),m([h()],g.prototype,"iconPack",void 0),m([h()],g.prototype,"t",void 0),m([h()],g.prototype,"overrides",void 0),g.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{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, 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;overflow:visible}.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)}.troubleshoot-link{margin-top:var(--rtk-space-1, 4px);font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:2px}.troubleshoot-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.error-code{margin-top:var(--rtk-space-1, 4px);font-size:10px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}";export{g as rtk_setup_screen}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import{c as a,e as n,i as o}from"./p-C8tHk7bV.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-CGOvNX5H.js";import"./p-Daj_55_i.js";var c=function(t,i,s,e){var a,n=arguments.length,o=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(o=(n<3?a(o):n>3?a(i,s,o):a(i,s))||o);return n>3&&o&&Object.defineProperty(i,s,o),o};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=a(),this.iconPack=n,this.t=o(),this.captionEnabled=!1,this.permissionsUpdateListener=()=>{var t;this.captionEnabled=null!==(t=this.meeting.self.permissions.transcriptionEnabled)&&void 0!==t&&t}}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.permissionsUpdateListener(),this.meeting.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}toggleCaptions(){this.stateUpdate.emit({activeCaptions:!this.states.activeCaptions,activeMoreMenu:!1})}render(){if(!this.meeting)return null;if(!this.captionEnabled)return null;const t=this.states.activeCaptions;return s(e,{tabIndex:0,role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleCaptions(),icon:t?this.iconPack.captionsOff:this.iconPack.captionsOn,label:this.t(t?"transcript.off":"transcript.on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([r()],l.prototype,"meeting",void 0),c([r()],l.prototype,"states",void 0),c([r()],l.prototype,"config",void 0),c([r()],l.prototype,"iconPack",void 0),c([r()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_caption_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import{c as a,e as n,i as o}from"./p-DYdFtxVz.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-DjuLCOXk.js";import"./p-Daj_55_i.js";var c=function(t,i,s,e){var a,n=arguments.length,o=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(o=(n<3?a(o):n>3?a(i,s,o):a(i,s))||o);return n>3&&o&&Object.defineProperty(i,s,o),o};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=a(),this.iconPack=n,this.t=o(),this.captionEnabled=!1,this.permissionsUpdateListener=()=>{var t;this.captionEnabled=null!==(t=this.meeting.self.permissions.transcriptionEnabled)&&void 0!==t&&t}}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.permissionsUpdateListener(),this.meeting.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}toggleCaptions(){this.stateUpdate.emit({activeCaptions:!this.states.activeCaptions,activeMoreMenu:!1})}render(){if(!this.meeting)return null;if(!this.captionEnabled)return null;const t=this.states.activeCaptions;return s(e,{tabIndex:0,role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleCaptions(),icon:t?this.iconPack.captionsOff:this.iconPack.captionsOn,label:this.t(t?"transcript.off":"transcript.on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([r()],l.prototype,"meeting",void 0),c([r()],l.prototype,"states",void 0),c([r()],l.prototype,"config",void 0),c([r()],l.prototype,"iconPack",void 0),c([r()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_caption_toggle}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as o}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import{c as e,e as a,i as n}from"./p-C8tHk7bV.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-CGOvNX5H.js";import"./p-Daj_55_i.js";var l=function(t,i,s,o){var e,a=arguments.length,n=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,o);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(a<3?e(n):a>3?e(i,s,n):e(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=e(),this.iconPack=a,this.t=n(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,s,o;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(s=t.self.config)||void 0===s?void 0:s.pipMode)&&"LIVESTREAM"!==(null===(o=t.self.config)||void 0===o?void 0:o.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.meeting)return null;if(!this.pipSupported)return s(o,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return s(o,{role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"config",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{h as rtk_pip_toggle}
1
+ import{r as t,d as i,h as s,a as o}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import{c as e,e as a,i as n}from"./p-DYdFtxVz.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-DjuLCOXk.js";import"./p-Daj_55_i.js";var l=function(t,i,s,o){var e,a=arguments.length,n=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,o);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(a<3?e(n):a>3?e(i,s,n):e(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=e(),this.iconPack=a,this.t=n(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,s,o;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(s=t.self.config)||void 0===s?void 0:s.pipMode)&&"LIVESTREAM"!==(null===(o=t.self.config)||void 0===o?void 0:o.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.meeting)return null;if(!this.pipSupported)return s(o,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return s(o,{role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"config",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{h as rtk_pip_toggle}
@@ -1 +1 @@
1
- import{r,d as t,h as o,a}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e,i as s}from"./p-C8tHk7bV.js";import{g as c}from"./p-CRQsZMW5.js";import{S as i}from"./p-CGOvNX5H.js";import"./p-Daj_55_i.js";var p=function(r,t,o,a){var e,s=arguments.length,c=s<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(r,t,o,a);else for(var i=r.length-1;i>=0;i--)(e=r[i])&&(c=(s<3?e(c):s>3?e(t,o,c):e(t,o))||c);return s>3&&c&&Object.defineProperty(t,o,c),c};const n=class{constructor(o){r(this,o),this.groupChanged=t(this,"rtkChatGroupChanged",7),this.unreadCounts={},this.groups=[],this.iconPack=e,this.t=s(),this.showParticipantsPanel=!1,this.query="",this.onScopeClick=r=>{this.showParticipantsPanel=!1,this.groupChanged.emit(r)}}toggleParticipants(){this.showParticipantsPanel=!this.showParticipantsPanel}getGroups(){return this.groups.filter((r=>r.name.toLowerCase().includes(this.query.toLowerCase())))}getName(){if(!this.selectedGroupId||"everyone"===this.selectedGroupId)return this.t("everyone");const r=this.groups.find((r=>r.userId===this.selectedGroupId));return r?r.name:this.t("everyone")}render(){const r=Object.keys(this.unreadCounts).reduce(((r,t)=>r+this.unreadCounts[t]),0);return o(a,null,o("div",{class:"chat-scope-selector"},this.showParticipantsPanel&&o("div",{class:"participants-container"},o("div",{class:"search",part:"search"},o("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),o("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),value:this.query,onInput:r=>{this.query=r.target.value},part:"search-input"})),o("ul",{class:"scope-list scrollbar"},""===this.query&&o("li",{class:"scope scope-special",onClick:()=>this.onScopeClick("everyone")},o("div",{class:"everyone-icon"},o("rtk-icon",{icon:this.iconPack.participants})),this.t("everyone"),this.unreadCounts.everyone>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,this.unreadCounts.everyone))),this.getGroups().map((r=>{const t=this.unreadCounts[c([this.selfUserId,r.userId])];return o("li",{class:"scope",onClick:()=>this.onScopeClick(r),key:r.userId},r.name,t>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,t)))})))),o("button",{onClick:()=>this.toggleParticipants()},o("span",null,`${this.t("to")} ${this.getName()}`," ",r>0&&o("div",{class:"unread-count selector"},o("span",null,r))),o("rtk-icon",{icon:this.showParticipantsPanel?this.iconPack.chevron_up:this.iconPack.chevron_down}))))}};p([i()],n.prototype,"iconPack",void 0),p([i()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;flex-direction:column}.chat-scope-selector{position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));z-index:10}.chat-scope-selector button{width:100%;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-4, 16px);display:flex;align-items:center;justify-content:space-between;--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-1000, 255 255 255));font-size:14px;cursor:pointer;height:var(--rtk-space-12, 48px)}.chat-scope-selector button span{display:flex;align-items:center;justify-content:flex-start}.chat-scope-selector button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-scope-selector .search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-0, 0px)}.chat-scope-selector .search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.chat-scope-selector .search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.chat-scope-selector .search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .participants-container{position:absolute;width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));top:var(--rtk-space-12, 48px);animation:0.3s slide-down ease}@keyframes slide-down{from{transform:translateY(-50px)}to{transform:translateY(0%)}}.chat-scope-selector .scope-list{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);list-style-type:none;padding-left:var(--rtk-space-0, 0px);padding-right:var(--rtk-space-0, 0px);overflow:auto;max-height:375px}.chat-scope-selector .scope-list .scope{position:relative;display:flex;flex-direction:row;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px)}.chat-scope-selector .scope-list .scope:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.chat-scope-selector .scope-list .scope-special{margin-top:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.chat-scope-selector .scope-list .everyone-icon>rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.chat-scope-selector .scope-list .everyone-icon{display:flex;height:100%;width:100%;align-items:center;justify-content:center;margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px}.unread-count.selector{position:unset;margin-left:var(--rtk-space-2, 8px)}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px)}";export{n as rtk_chat_selector_ui}
1
+ import{r,d as t,h as o,a}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import{e,i as s}from"./p-DYdFtxVz.js";import"./p-C0vp-Q7v.js";import{g as c}from"./p-KiBrYIp4.js";import{S as i}from"./p-DjuLCOXk.js";import"./p-Daj_55_i.js";var p=function(r,t,o,a){var e,s=arguments.length,c=s<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(r,t,o,a);else for(var i=r.length-1;i>=0;i--)(e=r[i])&&(c=(s<3?e(c):s>3?e(t,o,c):e(t,o))||c);return s>3&&c&&Object.defineProperty(t,o,c),c};const n=class{constructor(o){r(this,o),this.groupChanged=t(this,"rtkChatGroupChanged",7),this.unreadCounts={},this.groups=[],this.iconPack=e,this.t=s(),this.showParticipantsPanel=!1,this.query="",this.onScopeClick=r=>{this.showParticipantsPanel=!1,this.groupChanged.emit(r)}}toggleParticipants(){this.showParticipantsPanel=!this.showParticipantsPanel}getGroups(){return this.groups.filter((r=>r.name.toLowerCase().includes(this.query.toLowerCase())))}getName(){if(!this.selectedGroupId||"everyone"===this.selectedGroupId)return this.t("everyone");const r=this.groups.find((r=>r.userId===this.selectedGroupId));return r?r.name:this.t("everyone")}render(){const r=Object.keys(this.unreadCounts).reduce(((r,t)=>r+this.unreadCounts[t]),0);return o(a,null,o("div",{class:"chat-scope-selector"},this.showParticipantsPanel&&o("div",{class:"participants-container"},o("div",{class:"search",part:"search"},o("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),o("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),value:this.query,onInput:r=>{this.query=r.target.value},part:"search-input"})),o("ul",{class:"scope-list scrollbar"},""===this.query&&o("li",{class:"scope scope-special",onClick:()=>this.onScopeClick("everyone")},o("div",{class:"everyone-icon"},o("rtk-icon",{icon:this.iconPack.participants})),this.t("everyone"),this.unreadCounts.everyone>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,this.unreadCounts.everyone))),this.getGroups().map((r=>{const t=this.unreadCounts[c([this.selfUserId,r.userId])];return o("li",{class:"scope",onClick:()=>this.onScopeClick(r),key:r.userId},r.name,t>0&&o("div",{class:"unread-count",part:"unread-count"},o("span",null,t)))})))),o("button",{onClick:()=>this.toggleParticipants()},o("span",null,`${this.t("to")} ${this.getName()}`," ",r>0&&o("div",{class:"unread-count selector"},o("span",null,r))),o("rtk-icon",{icon:this.showParticipantsPanel?this.iconPack.chevron_up:this.iconPack.chevron_down}))))}};p([i()],n.prototype,"iconPack",void 0),p([i()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;flex-direction:column}.chat-scope-selector{position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));z-index:10}.chat-scope-selector button{width:100%;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-4, 16px);display:flex;align-items:center;justify-content:space-between;--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-1000, 255 255 255));font-size:14px;cursor:pointer;height:var(--rtk-space-12, 48px)}.chat-scope-selector button span{display:flex;align-items:center;justify-content:flex-start}.chat-scope-selector button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-scope-selector .search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-0, 0px)}.chat-scope-selector .search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.chat-scope-selector .search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.chat-scope-selector .search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.chat-scope-selector .participants-container{position:absolute;width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));top:var(--rtk-space-12, 48px);animation:0.3s slide-down ease}@keyframes slide-down{from{transform:translateY(-50px)}to{transform:translateY(0%)}}.chat-scope-selector .scope-list{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);list-style-type:none;padding-left:var(--rtk-space-0, 0px);padding-right:var(--rtk-space-0, 0px);overflow:auto;max-height:375px}.chat-scope-selector .scope-list .scope{position:relative;display:flex;flex-direction:row;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px)}.chat-scope-selector .scope-list .scope:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.chat-scope-selector .scope-list .scope-special{margin-top:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.chat-scope-selector .scope-list .everyone-icon>rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.chat-scope-selector .scope-list .everyone-icon{display:flex;height:100%;width:100%;align-items:center;justify-content:center;margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px}.unread-count.selector{position:unset;margin-left:var(--rtk-space-2, 8px)}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px)}";export{n as rtk_chat_selector_ui}
@@ -1 +1 @@
1
- import{r as t,h as r,a as i,g as a,d as e}from"./p-gJCRRBX0.js";import{e as o,i as s,c as n}from"./p-C8tHk7bV.js";import{S as c}from"./p-CGOvNX5H.js";import{f as l,a as p}from"./p-vBD2htwQ.js";var h=function(t,r,i,a){var e,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,i,s):e(r,i))||s);return o>3&&s&&Object.defineProperty(r,i,s),s};const d=class{constructor(r){t(this,r),this.iconPack=o,this.t=s(),this.canDeactivatePlugin=!1}connectedCallback(){this.pluginChanged(this.plugin)}pluginChanged(t){var r,i;null!=t&&(this.canDeactivatePlugin=null!==(i=null===(r=t.permissions)||void 0===r?void 0:r.canDeactivate)&&void 0!==i&&i,this.attachView(t))}attachView(t){const r=t.component;if(r instanceof HTMLElement&&this.host.firstElementChild!==r){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild);this.host.appendChild(r)}}disconnectedCallback(){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild)}render(){return null==this.plugin?null:r(i,null,r("header",{part:"header"},r("div",null,this.plugin.name),this.canDeactivatePlugin&&r("div",null,r("rtk-button",{kind:"icon",onClick:()=>this.plugin.deactivate(),part:"button"},r("rtk-icon",{icon:this.iconPack.dismiss})))),r("div",{class:"view-container"},r("slot",null)))}get host(){return a(this)}static get watchers(){return{plugin:[{pluginChanged:0}]}}};h([c()],d.prototype,"meeting",void 0),h([c()],d.prototype,"iconPack",void 0),h([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}header>div{display:flex;align-items:center}rtk-button{display:flex;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-direction:column;align-items:center;border-radius:9999px}rtk-button rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.view-container{position:relative;height:100%;width:100%;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity))}.view-container ::slotted(*){width:100%;height:100%;display:block}";var v=function(t,r,i,a){var e,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,i,s):e(r,i))||s);return o>3&&s&&Object.defineProperty(r,i,s),s};const g=class{constructor(r){t(this,r),this.tabChange=e(this,"tabChange",7),this.config=n(),this.layout="row",this.iconPack=o,this.t=s(),this.tabs=[]}render(){return r(i,{key:"1c4bce26c4c5baa19cd89be862922267c408ab97"},r("rtk-spotlight-indicator",{key:"496f3634771c4b9c94ff64e23fa5695e2e1532e2",meeting:this.meeting,iconPack:this.iconPack,t:this.t,size:this.size}),this.tabs.map((t=>{var i,a,e,o,s;let n=!1;if(("plugin"===(null===(i=this.activeTab)||void 0===i?void 0:i.type)&&t.plugin&&(null===(a=this.activeTab)||void 0===a?void 0:a.plugin.id)===t.plugin.id||"screenshare"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&t.participant&&(null===(o=this.activeTab)||void 0===o?void 0:o.participant.id)===t.participant.id)&&(n=!0),"screenshare"===t.type){const i=t.participant,a=l(i.name);return r("rtk-button",{title:`${a}'s Screen Share`,key:t.participant.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},r("div",{class:"center col"},r("rtk-icon",{icon:this.iconPack.share_screen_person}),r("span",{class:"name"},i.id===(null===(s=this.meeting)||void 0===s?void 0:s.self.id)?this.t("you"):p(a,6))))}if("plugin"===t.type){const i=t.plugin;return r("rtk-button",{title:i.name,key:i.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},r("div",{class:"center col"},r("img",{src:i.icon,alt:i.name}),r("span",{class:"name"},p(i.name,6))))}})))}};v([c()],g.prototype,"meeting",void 0),v([c()],g.prototype,"states",void 0),v([c()],g.prototype,"config",void 0),v([c()],g.prototype,"iconPack",void 0),v([c()],g.prototype,"t",void 0),g.style=".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column;gap:var(--rtk-space-2, 8px);overflow-y:auto;font-family:var(--rtk-font-family, sans-serif)}rtk-button{z-index:10}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}.tab .name{margin-top:var(--rtk-space-0\\.5, 2px)}:host([size='sm']){flex-direction:column;margin-top:var(--rtk-space-4, 16px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-x:auto}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);text-overflow:clip;min-width:100px;height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}:host([layout='column']){flex-direction:column}:host([layout='column']) .aside{flex:2;max-width:100%;width:100%}@media (orientation: portrait){:host([size='sm']){margin-top:var(--rtk-space-2, 8px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;transition:all 0.3s linear}:host([size='md']){height:var(--rtk-space-24, 96px);width:100%;flex-direction:row;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}}@media (orientation: landscape){:host([size='sm']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host([size='md']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);width:100%;text-overflow:clip;min-width:0px;min-height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-2, 8px);font-size:10px}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}}";export{d as rtk_plugin_main,g as rtk_tab_bar}
1
+ import{r as t,h as r,a as i,g as a,d as e}from"./p-gJCRRBX0.js";import{e as o,i as s,c as n}from"./p-DYdFtxVz.js";import{S as c}from"./p-DjuLCOXk.js";import{f as l,a as p}from"./p-vBD2htwQ.js";var h=function(t,r,i,a){var e,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,i,s):e(r,i))||s);return o>3&&s&&Object.defineProperty(r,i,s),s};const d=class{constructor(r){t(this,r),this.iconPack=o,this.t=s(),this.canDeactivatePlugin=!1}connectedCallback(){this.pluginChanged(this.plugin)}pluginChanged(t){var r,i;null!=t&&(this.canDeactivatePlugin=null!==(i=null===(r=t.permissions)||void 0===r?void 0:r.canDeactivate)&&void 0!==i&&i,this.attachView(t))}attachView(t){const r=t.component;if(r instanceof HTMLElement&&this.host.firstElementChild!==r){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild);this.host.appendChild(r)}}disconnectedCallback(){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild)}render(){return null==this.plugin?null:r(i,null,r("header",{part:"header"},r("div",null,this.plugin.name),this.canDeactivatePlugin&&r("div",null,r("rtk-button",{kind:"icon",onClick:()=>this.plugin.deactivate(),part:"button"},r("rtk-icon",{icon:this.iconPack.dismiss})))),r("div",{class:"view-container"},r("slot",null)))}get host(){return a(this)}static get watchers(){return{plugin:[{pluginChanged:0}]}}};h([c()],d.prototype,"meeting",void 0),h([c()],d.prototype,"iconPack",void 0),h([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}header>div{display:flex;align-items:center}rtk-button{display:flex;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-direction:column;align-items:center;border-radius:9999px}rtk-button rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.view-container{position:relative;height:100%;width:100%;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity))}.view-container ::slotted(*){width:100%;height:100%;display:block}";var v=function(t,r,i,a){var e,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(s=(o<3?e(s):o>3?e(r,i,s):e(r,i))||s);return o>3&&s&&Object.defineProperty(r,i,s),s};const g=class{constructor(r){t(this,r),this.tabChange=e(this,"tabChange",7),this.config=n(),this.layout="row",this.iconPack=o,this.t=s(),this.tabs=[]}render(){return r(i,{key:"1c4bce26c4c5baa19cd89be862922267c408ab97"},r("rtk-spotlight-indicator",{key:"496f3634771c4b9c94ff64e23fa5695e2e1532e2",meeting:this.meeting,iconPack:this.iconPack,t:this.t,size:this.size}),this.tabs.map((t=>{var i,a,e,o,s;let n=!1;if(("plugin"===(null===(i=this.activeTab)||void 0===i?void 0:i.type)&&t.plugin&&(null===(a=this.activeTab)||void 0===a?void 0:a.plugin.id)===t.plugin.id||"screenshare"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&t.participant&&(null===(o=this.activeTab)||void 0===o?void 0:o.participant.id)===t.participant.id)&&(n=!0),"screenshare"===t.type){const i=t.participant,a=l(i.name);return r("rtk-button",{title:`${a}'s Screen Share`,key:t.participant.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},r("div",{class:"center col"},r("rtk-icon",{icon:this.iconPack.share_screen_person}),r("span",{class:"name"},i.id===(null===(s=this.meeting)||void 0===s?void 0:s.self.id)?this.t("you"):p(a,6))))}if("plugin"===t.type){const i=t.plugin;return r("rtk-button",{title:i.name,key:i.id,kind:"icon",variant:n?"primary":"secondary",class:{tab:!0,active:n},onClick:()=>this.tabChange.emit(t)},r("div",{class:"center col"},r("img",{src:i.icon,alt:i.name}),r("span",{class:"name"},p(i.name,6))))}})))}};v([c()],g.prototype,"meeting",void 0),v([c()],g.prototype,"states",void 0),v([c()],g.prototype,"config",void 0),v([c()],g.prototype,"iconPack",void 0),v([c()],g.prototype,"t",void 0),g.style=".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column;gap:var(--rtk-space-2, 8px);overflow-y:auto;font-family:var(--rtk-font-family, sans-serif)}rtk-button{z-index:10}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}.tab .name{margin-top:var(--rtk-space-0\\.5, 2px)}:host([size='sm']){flex-direction:column;margin-top:var(--rtk-space-4, 16px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-x:auto}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);text-overflow:clip;min-width:100px;height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}:host([layout='column']){flex-direction:column}:host([layout='column']) .aside{flex:2;max-width:100%;width:100%}@media (orientation: portrait){:host([size='sm']){margin-top:var(--rtk-space-2, 8px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;transition:all 0.3s linear}:host([size='md']){height:var(--rtk-space-24, 96px);width:100%;flex-direction:row;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}}@media (orientation: landscape){:host([size='sm']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host([size='md']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);width:100%;text-overflow:clip;min-width:0px;min-height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-2, 8px);font-size:10px}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}}";export{d as rtk_plugin_main,g as rtk_tab_bar}
@@ -0,0 +1 @@
1
+ import{r as t,e as i,h as e,a as s,g as n}from"./p-gJCRRBX0.js";import{c as o,i as a,e as h,D as c,R as r,O as d,P as l}from"./p-DYdFtxVz.js";import{f as u}from"./p-vBD2htwQ.js";import"./p-Rq_6y0HI.js";import{m as p}from"./p-Bzni6MqK.js";import{s as g}from"./p-C0vp-Q7v.js";import{f as _}from"./p-KiBrYIp4.js";import{S as m}from"./p-DjuLCOXk.js";import"./p-Daj_55_i.js";var v=function(t,i,e,s){var n,o=arguments.length,a=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var h=t.length-1;h>=0;h--)(n=t[h])&&(a=(o<3?n(a):o>3?n(i,e,a):n(i,e))||a);return o>3&&a&&Object.defineProperty(i,e,a),a};const f=class{constructor(i){t(this,i),this.config=o(),this.t=a(),this.iconPack=h,this.notifications=[],this.notificationConfig=p({},c),this.addStagePeersListeners=t=>{t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener)},this.removeStagePeersListeners=t=>{t.participants.joined.removeListener("participantJoined",this.participantJoinedListener),t.participants.joined.removeListener("participantLeft",this.participantLeftListener)},this.onNotification=t=>{var i,e;const s=t.detail,{playSound:n,meetingId:o}=s,a=function(t,i){var e={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&i.indexOf(s)<0&&(e[s]=t[s]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(s=Object.getOwnPropertySymbols(t);n<s.length;n++)i.indexOf(s[n])<0&&Object.prototype.propertyIsEnumerable.call(t,s[n])&&(e[s[n]]=t[s[n]])}return e}(s,["playSound","meetingId"]);o&&o!==(null===(e=null===(i=this.meeting)||void 0===i?void 0:i.meta)||void 0===e?void 0:e.meetingId)||(this.isShown("custom")&&this.add(a),this.playCustomSoundIfEnabled(n))},this.onRecordingUpdate=t=>{"RECORDING"===t?(this.showIfEnabled("recording_started",{id:"recording-started",icon:this.iconPack.recording,message:this.t("recording.started")}),this.playSoundIfEnabled("recording_started")):"STOPPING"===t&&(this.showIfEnabled("recording_stopped",{id:"recording-stopped",icon:this.iconPack.stop_recording,message:this.t("recording.stopped")}),this.playSoundIfEnabled("recording_stopped"))},this.paused=!1}connectedCallback(){"undefined"!=typeof document&&(null===document||void 0===document||document.addEventListener("rtkNotification",this.onNotification)),this.meetingChanged(this.meeting),this.configChanged(this.config)}clearListeners(t){var i,e,s,n,o,a,h,c,r;const d="LIVESTREAM"===t.meta.viewType;(d&&"ON_STAGE"===(null===(i=t.stage)||void 0===i?void 0:i.status)||!d)&&this.removeStagePeersListeners(t),this.chatUpdateListener&&(null===(e=t.chat)||void 0===e||e.removeListener("chatUpdate",this.chatUpdateListener)),this.pollUpdateListener&&(null===(s=t.polls)||void 0===s||s.removeListener("pollsUpdate",this.pollUpdateListener)),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener),this.stageRequestAccepted&&(null===(n=t.stage)||void 0===n||n.removeListener("stageRequestApproved",this.stageRequestAccepted)),this.stageRequestRejected&&(null===(o=t.stage)||void 0===o||o.removeListener("stageRequestRejected",this.stageRequestRejected)),this.newStageRequests&&(null===(a=t.stage)||void 0===a||a.removeListener("newStageRequest",this.newStageRequests)),this.stageStatusUpdateListener&&(null===(h=t.stage)||void 0===h||h.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)),null===(c=t.recording)||void 0===c||c.removeListener("recordingUpdate",this.onRecordingUpdate),this.peerStageStatusListener&&t.participants.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener),this.waitlistedParticipantJoinedListener&&t.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&t.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.activeTabUpdateListener&&(null===(r=t.meta)||void 0===r||r.removeListener("activeTabUpdate",this.activeTabUpdateListener)),clearTimeout(this.disconnectTimeout),t.self.removeListener("deviceUpdate",this.deviceUpdateListener)}disconnectedCallback(){"undefined"!=typeof document&&(null===document||void 0===document||document.removeEventListener("rtkNotification",this.onNotification)),this.meeting&&this.clearListeners(this.meeting)}meetingChanged(t,i){var e,s,n,o,a,h,c,d,l;if(clearTimeout(this.disconnectTimeout),i&&this.clearListeners(i),!t)return;const p="LIVESTREAM"===t.meta.viewType;if(this.audio=new r(t),this.participantJoinedListener=t=>{t.peerIdBeforeReconnect||(this.showIfEnabled("participant_joined",{id:`${t.id}-joined`,message:`${u(t.name)} ${this.t("notifications.joined")}`,image:t.picture}),this.canPlayParticipantJoinedSound()&&this.playSoundIfEnabled("participant_joined"))},this.participantLeftListener=t=>{if(t.replacedByPeerId)return;const{socketState:{state:i}}=this.meeting.meta;"connected"===i&&(this.showIfEnabled("participant_left",{id:`${t.id}-left`,message:`${u(t.name)} ${this.t("notifications.left")}`,image:t.picture}),this.canPlayParticipantJoinedSound()&&this.playSoundIfEnabled("participant_left"))},this.waitlistedParticipantJoinedListener=t=>{if(!this.canAcceptWaitingRequests())return;const i=`${t.id}-joined-waitlist`;this.showIfEnabled("participant_joined_waitlist",{id:i,message:`${u(t.name)} ${this.t("notifications.requesting_to_join_meeting")}`,image:t.picture,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.participants.acceptWaitingRoomRequest(t.id),this.remove(i)}}}),this.canPlayParticipantJoinedSound()&&this.playSoundIfEnabled("participant_joined_waitlist")},this.waitlistedParticipantLeftListener=t=>{this.remove(`${t.id}-joined-waitlist`)},this.chatUpdateListener=({message:i,action:e})=>{const s=_(i);if(null!=s){if(s.userId===t.self.userId)return;if("edit"===e||"delete"===e){const t="edit"===e?"chat_message_edited":"chat_message_deleted";return this.showIfEnabled(t,{id:`message-${Math.random().toString(36)}`,icon:this.iconPack.chat,message:`${s.displayName} ${this.t(`notifications.${t}`)}`}),void(this.canPlayChatSound()&&this.playSoundIfEnabled(t))}"text"===s.type&&(this.showIfEnabled("chat_new_message",{id:`message-${Math.random().toString(36)}`,icon:this.iconPack.chat,message:`${s.displayName}: ${s.message}`}),this.canPlayChatSound()&&this.playSoundIfEnabled("chat_new_message"))}},this.pollUpdateListener=({polls:t,newPoll:i})=>{!1!==i&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&(this.showIfEnabled("polls_new_poll",{id:`poll-${Math.random().toString(36)}`,icon:this.iconPack.poll,message:`${this.t("notifications.new_poll_created_by")} ${t[t.length-1].createdBy}`}),this.canPlayChatSound()&&this.playSoundIfEnabled("polls_new_poll"))},this.deviceUpdateListener=({device:t,preview:i})=>{i||("audiooutput"===t.kind&&(this.audio.setDevice(t.deviceId),this.remove("speaker-switched"),this.showIfEnabled("speaker_switched",{id:"speaker-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.iconPack.speaker}),this.playSoundIfEnabled("speaker_switched")),"videoinput"===t.kind&&(this.remove("camera-switched"),this.showIfEnabled("camera_switched",{id:"camera-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.videoEnabled?this.iconPack.video_on:this.iconPack.video_off,iconVariant:this.meeting.self.videoEnabled?"primary":"danger"}),this.playSoundIfEnabled("camera_switched")),"audioinput"===t.kind&&(this.remove("mic-switched"),this.showIfEnabled("microphone_switched",{id:"mic-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off,iconVariant:this.meeting.self.audioEnabled?"primary":"danger"}),this.playSoundIfEnabled("microphone_switched")))},this.socketConnectionUpdateListener=({state:t,reconnectionAttempt:i,reconnected:e})=>{switch(t){case"connected":this.remove("socket"),e&&(this.showIfEnabled("network_restored",{id:"socket",icon:this.iconPack.wifi,message:this.t("network.restored")}),this.playSoundIfEnabled("network_restored"));break;case"disconnected":this.remove("socket"),this.showIfEnabled("network_reconnecting",{id:"socket",icon:this.iconPack.disconnected,message:this.t("network.reconnecting")}),this.playSoundIfEnabled("network_reconnecting");break;case"reconnecting":i>=6?(this.remove("socket"),this.showIfEnabled("network_disconnected",{id:"socket",icon:this.iconPack.disconnected,message:this.t("network.disconnected"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}}),this.playSoundIfEnabled("network_disconnected")):i>=4&&(this.remove("socket"),this.showIfEnabled("network_delayed",{id:"socket",icon:this.iconPack.disconnected,message:this.t("network.delay_extended")}),this.playSoundIfEnabled("network_delayed"));break;case"failed":this.remove("socket"),this.showIfEnabled("network_failed",{id:"socket",icon:this.iconPack.disconnected,message:this.t("network.leaving"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}}),this.playSoundIfEnabled("network_failed")}},this.activeTabUpdateListener=i=>{switch(i.type){case"plugin":const e=t.plugins.active.toArray().find((t=>t.id==i.id));null!=e&&(this.showIfEnabled("tab_sync_plugin_switched",{id:"activeTab",message:`${this.t("notifications.plugin_switched_to")} ${e.name}`}),this.playSoundIfEnabled("tab_sync_plugin_switched"));break;case"screenshare":const s=t.participants.joined.toArray().filter((t=>t.screenShareEnabled)).find((t=>t.id==i.id));null!=s&&(this.showIfEnabled("tab_sync_screen_share_switched",{id:"spotlight",message:`Now watching ${s.name}'s screen`}),this.playSoundIfEnabled("tab_sync_screen_share_switched"))}},this.peerStageStatusListener=t=>{"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&this.canAcceptStageRequests()&&(this.showIfEnabled("stage_requested_to_join",{id:`stage-request-${t.id}`,message:`${t.name} ${this.t("notifications.requested_to_join_stage")}`,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.stage.grantAccess([t.userId]),this.remove(`stage-request-${t.id}`)}}}),this.playSoundIfEnabled("stage_requested_to_join")),"ON_STAGE"===t.stageStatus&&(this.showIfEnabled("stage_joined",{id:`stage-joined-${t.id}`,message:`${t.name} ${this.t("notifications.joined_stage")}`}),this.playSoundIfEnabled("stage_joined"))},this.stageRequestAccepted=()=>{this.showIfEnabled("stage_request_accepted",{id:"stage-request-accepted",message:this.t("notifications.request_to_join_accepted")}),this.playSoundIfEnabled("stage_request_accepted")},this.stageRequestRejected=()=>{this.showIfEnabled("stage_request_rejected",{id:"stage-request-rejected",message:this.t("notifications.request_to_join_rejected")}),this.playSoundIfEnabled("stage_request_rejected")},this.newStageRequests=({count:t})=>{this.showIfEnabled("stage_new_request_received",{id:"new-stage-request",message:`You have ${t<0?"new stage":`${t} pending`} request${1===t?"":"s"}`}),this.playSoundIfEnabled("stage_new_request_received")},this.stageStatusUpdateListener=i=>{"ON_STAGE"===i?this.addStagePeersListeners(t):this.removeStagePeersListeners(t)},!g(t)&&(null===(e=t.chat)||void 0===e||e.addListener("chatUpdate",this.chatUpdateListener)),"CHAT"===(null===(s=t.self.config.viewType)||void 0===s?void 0:s.toString()))return;const m=t.self.getCurrentDevices();null!=m.speaker&&this.audio.setDevice(m.speaker.deviceId),p?null===(n=t.stage)||void 0===n||n.on("stageStatusUpdate",this.stageStatusUpdateListener):this.addStagePeersListeners(t),this.canAcceptWaitingRequests()&&(t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),null===(o=t.polls)||void 0===o||o.addListener("pollsUpdate",this.pollUpdateListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),null===(a=t.meta)||void 0===a||a.addListener("activeTabUpdate",this.activeTabUpdateListener),t.participants.joined.addListener("stageStatusUpdate",this.peerStageStatusListener),null===(h=t.recording)||void 0===h||h.addListener("recordingUpdate",this.onRecordingUpdate),null===(c=t.stage)||void 0===c||c.addListener("stageRequestApproved",this.stageRequestAccepted),null===(d=t.stage)||void 0===d||d.addListener("stageRequestRejected",this.stageRequestRejected),this.canAcceptStageRequests()&&(null===(l=t.stage)||void 0===l||l.addListener("newStageRequest",this.newStageRequests))}configChanged(t){this.notificationConfig=p({},c,null==t?void 0:t.config)}apiErrorListener({detail:t}){const{trace:i,message:e}=t;this.showIfEnabled("api_error",{id:i,message:e,icon:this.iconPack.warning}),this.playSoundIfEnabled("api_error")}sendNotificationListener({detail:t}){const{trace:i,message:e}=t;if(null==i?void 0:i.startsWith("join-stage-"))return this.showIfEnabled("stage_invite_sent",{id:i,message:e}),void this.playSoundIfEnabled("stage_invite_sent");this.showIfEnabled("custom",{id:i,message:e}),this.playCustomSoundIfEnabled()}isShown(t){return!!this.notificationConfig.notifications[t]}isSoundOn(t){var i,e;return!(null===(e=null===(i=this.states)||void 0===i?void 0:i.prefs)||void 0===e?void 0:e.muteNotificationSounds)&&!!this.notificationConfig.notification_sounds[t]}showIfEnabled(t,i){if(!this.isShown(t))return;const e=this.notificationConfig.notification_duration[t],s="network_disconnected"===t||"network_failed"===t;this.add(Object.assign(Object.assign({},i),{duration:e>0?e:void 0}),s)}playSoundIfEnabled(t){var i;if(!this.isSoundOn(t))return;const e=this.notificationConfig.notification_sound_urls[t];null===(i=this.audio)||void 0===i||i.playUrl(d(e)?e:c.notification_sound_urls[t])}playCustomSoundIfEnabled(t){var i,e;if(!this.isSoundOn("custom"))return;if(l(t))return void(null===(i=this.audio)||void 0===i||i.play(t));const s=this.notificationConfig.notification_sound_urls.custom,n=d(t)?t:s;d(n)&&(null===(e=this.audio)||void 0===e||e.playUrl(n))}add(t,i=!1){const e=this.notifications.filter((({id:i})=>i!==t.id)),s=this.notificationConfig.visible_notifications_limit;"visible"===document.visibilityState&&(i||!(s>0)||e.length<s)&&(this.notifications=[...e,t])}remove(t){this.notifications=this.notifications.filter((i=>i.id!==t))}handleDismiss(t){t.stopPropagation();const e=t.detail,s=this.host.shadowRoot.querySelector(`[data-id="${e}"]`);null==s||s.classList.add("exit"),setTimeout((()=>{i((()=>{this.remove(e)}))}),400)}canPlayParticipantJoinedSound(){return null==this.notificationConfig.participant_joined_sound_notification_limit||this.notificationConfig.participant_joined_sound_notification_limit<=0||this.meeting.participants.count<=this.notificationConfig.participant_joined_sound_notification_limit}canPlayChatSound(){return null==this.notificationConfig.participant_chat_message_sound_notification_limit||this.notificationConfig.participant_chat_message_sound_notification_limit<=0||this.meeting.participants.count<=this.notificationConfig.participant_chat_message_sound_notification_limit}canAcceptStageRequests(){const{stageEnabled:t,acceptStageRequests:i}=this.meeting.self.permissions;return!(!t||!i)}canAcceptWaitingRequests(){return!!this.meeting.self.permissions.acceptWaitingRequests}render(){if(this.meeting)return e(s,null,e("div",{onMouseEnter:()=>this.paused=!0,onFocusin:()=>this.paused=!0,onMouseLeave:()=>this.paused=!1,onFocusout:()=>this.paused=!1},this.notifications.map((t=>e("rtk-notification",{size:this.size,key:t.id,"data-id":t.id,notification:t,onRtkNotificationDismiss:t=>this.handleDismiss(t),iconPack:this.iconPack,paused:this.paused,t:this.t})))))}get host(){return n(this)}static get watchers(){return{meeting:[{meetingChanged:0}],config:[{configChanged:0}]}}};v([m()],f.prototype,"meeting",void 0),v([m()],f.prototype,"states",void 0),v([m()],f.prototype,"config",void 0),v([m()],f.prototype,"t",void 0),v([m()],f.prototype,"iconPack",void 0),f.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;z-index:100}rtk-notification{margin-top:var(--rtk-space-2, 8px)}";export{f as rtk_notifications}
@@ -0,0 +1 @@
1
+ var t=[0,.5,1,1.5,2,3,4,5,6,7,8,9,10,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96];const o={darkest:{background:{1e3:"#080808",900:"#1A1A1A",800:"#1E1E1E",700:"#2C2C2C",600:"#393939"},text:"#FFFFFF"},dark:{background:{1e3:"#252525",900:"#2F2F2F",800:"#323232",700:"#3E3E3E",600:"#4A4A4A"},text:"#F5F5F5","video-bg":"#1C1C1C"},light:{background:{1e3:"#FFFFFF",900:"#F5F5F5",800:"#EBEBEB",700:"#E0E0E0",600:"#D6D6D6"},text:"#111111","text-on-brand":"#ffffff","video-bg":"#DADADA"}},n={none:{none:0,sm:0,md:0,lg:0},thin:{none:0,sm:1,md:2,lg:4},fat:{none:0,sm:2,md:4,lg:8}},e={sharp:{none:0,sm:0,md:0,lg:0},rounded:{none:0,sm:4,md:8,lg:12},"extra-rounded":{none:0,sm:8,md:16,lg:24},circular:{none:9999,sm:9999,md:9999,lg:9999}};function s(t){let o="0",n="0",e="0";return 4==(t=t.trim()).length?(o="0x"+t[1]+t[1],n="0x"+t[2]+t[2],e="0x"+t[3]+t[3]):t.length>6&&(o="0x"+t[1]+t[2],n="0x"+t[3]+t[4],e="0x"+t[5]+t[6]),[+o,+n,+e]}const r=t=>"string"==typeof t&&7===t.length&&t.startsWith("#"),i="--rtk-";function c(t,o=i){return o+t}const l=(t,o,n=i)=>{Object.keys(o).forEach((e=>{const r=o[e];if("string"==typeof r)if("text"===e||"text-on-brand"===e){const o=s(r).join(" ");t.style.setProperty(c(`colors-${e}-1000`,n),`${o}`),t.style.setProperty(c(`colors-${e}-900`,n),`${o} / 0.88`),t.style.setProperty(c(`colors-${e}-800`,n),`${o} / 0.76`),t.style.setProperty(c(`colors-${e}-700`,n),`${o} / 0.64`),t.style.setProperty(c(`colors-${e}-600`,n),`${o} / 0.52`)}else{const o=s(r).join(" ");t.style.setProperty(c(`colors-${e}`,n),o)}else"object"==typeof r&&Object.keys(r).forEach((o=>{const i=s(r[o]).join(" ");t.style.setProperty(c(`colors-${e}-${o}`,n),i)}))}))},d=(s,{spacingBase:r,borderRadius:d,borderWidth:a,colors:f,fontFamily:m,googleFont:g,theme:u,tokenPrefix:p=i})=>{if("object"!=typeof s)throw new Error("[rtk-ui-kit] (provideRtkDesignSystem): Passed element is not a valid HTML Element");if("string"==typeof g&&((t=>{const o=[];if(null==document.querySelector("link[data-rtk-font]")){const t=document.createElement("link");t.rel="preconnect",t.setAttribute("data-rtk-font","true"),t.href="https://fonts.googleapis.com";const n=t.cloneNode(!0);n.href="https://fonts.gstatic.com",n.crossOrigin="",o.push(t,n)}const n=document.createElement("link");n.rel="stylesheet",n.setAttribute("data-rtk-font",t),n.href=encodeURI(`https://fonts.googleapis.com/css2?family=${t}:wght@${[400,500,700].join(";")}&display=swap`),o.push(n),document.head.append(...o)})(g),s.style.setProperty(c("font-family",p),g)),"string"==typeof m&&s.style.setProperty(c("font-family",p),m),"number"==typeof r&&((o,n,e=i)=>{t.forEach((t=>{o.style.setProperty(c(`space-${t}`,e),t*n+"px")}))})(s,r,p),"string"==typeof a&&((t,o,e=i)=>{if(o in n){const s=n[o];Object.keys(s).forEach((o=>{t.style.setProperty(c(`border-width-${o}`,e),`${s[o]}px`)}))}})(s,a,p),"string"==typeof d&&((t,o,n=i)=>{if(o in e){const s=e[o];Object.keys(s).forEach((o=>{t.style.setProperty(c(`border-radius-${o}`,n),`${s[o]}px`)}))}})(s,d,p),"string"==typeof u){const t=o[u];null!=t&&l(s,t,p)}"object"==typeof f&&l(s,f,p)},a=Symbol.for("rtk.uikit.sdkName"),f=globalThis;function m(t){f[a]=t}function g(){var t;return null!==(t=f[a])&&void 0!==t?t:"html"}function u(t){var o,n;try{null===(n=null===(o=null==t?void 0:t.__internals__)||void 0===o?void 0:o.setUiKitMetadata)||void 0===n||n.call(o,{sdkVersion:"2.2.0-staging.5",sdkName:g()})}catch(t){}}export{r as i,d as p,u as r,m as s}
@@ -0,0 +1 @@
1
+ import{n as r,o as n,p as t,q as o,r as i,t as a,v as u,w as e,x as f,y as c,z as v,A as s,B as d,C as b,E as l,F as j,G as p,H as y,I as O,J as m,S as w}from"./p-DYdFtxVz.js";function A(r){return r}var _,g,h,x=Date.now,F=r?function(n,t){return r(n,"toString",{configurable:!0,enumerable:!1,value:(o=t,function(){return o}),writable:!0});var o}:A,z=(_=F,g=0,h=0,function(){var r=x(),n=16-(r-h);if(h=r,n>0){if(++g>=800)return arguments[0]}else g=0;return _.apply(void 0,arguments)}),D=Math.max;var S=Object.prototype.hasOwnProperty;function k(r){return i(r)?f(r,!0):function(r){if(!o(r))return function(r){var n=[];if(null!=r)for(var t in Object(r))n.push(t);return n}(r);var n=e(r),t=[];for(var i in r)("constructor"!=i||!n&&S.call(r,i))&&t.push(i);return t}(r)}var q=Function.prototype.toString,B=Object.prototype.hasOwnProperty,C=q.call(Object);function E(r,t,o){(void 0!==o&&!u(r[t],o)||void 0===o&&!(t in r))&&n(r,t,o)}function G(r,n){if(("constructor"!==n||"function"!=typeof r[n])&&"__proto__"!=n)return r[n]}function H(r,a,u,e,f,w,A){var _=G(r,u),g=G(a,u),h=A.get(g);if(h)E(r,u,h);else{var x,F=w?w(_,g,u+"",r,a,A):void 0,z=void 0===F;if(z){var D=l(g),S=!D&&d(g),H=!D&&!S&&b(g);F=g,D||S||H?l(_)?F=_:c(x=_)&&i(x)?F=function(r,n){var t=-1,o=r.length;for(n||(n=Array(o));++t<o;)n[t]=r[t];return n}(_):S?(z=!1,F=j(g,!0)):H?(z=!1,F=p(g,!0)):F=[]:function(r){if(!c(r)||"[object Object]"!=v(r))return!1;var n=s(r);if(null===n)return!0;var t=B.call(n,"constructor")&&n.constructor;return"function"==typeof t&&t instanceof t&&q.call(t)==C}(g)||y(g)?(F=_,y(_)?F=function(r){return function(r,o,i){var a=!i;i||(i={});for(var u=-1,e=o.length;++u<e;){var f=o[u],c=void 0;void 0===c&&(c=r[f]),a?n(i,f,c):t(i,f,c)}return i}(r,k(r))}(_):o(_)&&!O(_)||(F=m(g))):z=!1}z&&(A.set(g,F),f(F,g,e,w,A),A.delete(g)),E(r,u,F)}}function I(r,n,t,i,a){r!==n&&function(r,n,t){for(var o=-1,i=Object(r),a=t(r),u=a.length;u--;){var e=a[++o];if(!1===n(i[e],e,i))break}}(n,(function(u,e){if(a||(a=new w),o(u))H(r,n,e,t,I,i,a);else{var f=i?i(G(r,e),u,e+"",r,n,a):void 0;void 0===f&&(f=u),E(r,e,f)}}),k)}var J,M=(J=function(r,n,t){I(r,n,t)},function(r,n){return z(function(r,n,t){return n=D(void 0===n?r.length-1:n,0),function(){for(var o=arguments,i=-1,a=D(o.length-n,0),u=Array(a);++i<a;)u[i]=o[n+i];i=-1;for(var e=Array(n+1);++i<n;)e[i]=o[i];return e[n]=t(u),function(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}(r,this,e)}}(r,n,A),r+"")}((function(r,n){var t=-1,e=n.length,f=e>1?n[e-1]:void 0,c=e>2?n[2]:void 0;for(f=J.length>3&&"function"==typeof f?(e--,f):void 0,c&&function(r,n,t){if(!o(t))return!1;var e=typeof n;return!!("number"==e?i(t)&&a(n,t.length):"string"==e&&n in t)&&u(t[n],r)}(n[0],n[1],c)&&(f=e<3?void 0:f,e=1),r=Object(r);++t<e;){var v=n[t];v&&J(r,v,t)}return r})));export{M as m}
@@ -0,0 +1 @@
1
+ import{y as r,z as t,q as n,M as i}from"./p-DYdFtxVz.js";var o=/\s/,e=/^\s+/;var u=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,a=/^0o[0-7]+$/i,v=parseInt;function c(i){if("number"==typeof i)return i;if(function(n){return"symbol"==typeof n||r(n)&&"[object Symbol]"==t(n)}(i))return NaN;if(n(i)){var c="function"==typeof i.valueOf?i.valueOf():i;i=n(c)?c+"":c}if("string"!=typeof i)return 0===i?i:+i;var s;i=(s=i)?s.slice(0,function(r){for(var t=r.length;t--&&o.test(r.charAt(t)););return t}(s)+1).replace(e,""):s;var d=f.test(i);return d||a.test(i)?v(i.slice(2),d?2:8):u.test(i)?NaN:+i}var s=function(){return i.Date.now()},d=Math.max,m=Math.min;function p(r,t,i){var o,e,u,f,a,v,p=0,y=!1,T=!1,b=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function l(t){var n=o,i=e;return o=e=void 0,p=t,f=r.apply(i,n)}function x(r){var n=r-v;return void 0===v||n>=t||n<0||T&&r-p>=u}function h(){var r=s();if(x(r))return N(r);a=setTimeout(h,function(r){var n=t-(r-v);return T?m(n,u-(r-p)):n}(r))}function N(r){return a=void 0,b&&o?l(r):(o=e=void 0,f)}function M(){var r=s(),n=x(r);if(o=arguments,e=this,v=r,n){if(void 0===a)return function(r){return p=r,a=setTimeout(h,t),y?l(r):f}(v);if(T)return clearTimeout(a),a=setTimeout(h,t),l(v)}return void 0===a&&(a=setTimeout(h,t)),f}return t=c(t)||0,n(i)&&(y=!!i.leading,u=(T="maxWait"in i)?d(c(i.maxWait)||0,t):u,b="trailing"in i?!!i.trailing:b),M.cancel=function(){void 0!==a&&clearTimeout(a),p=0,o=v=e=a=void 0},M.flush=function(){return void 0===a?f:N(s())},M}export{p as d}