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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (651) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-cfaZckxh.js → TextMessage-DVnzTDQZ.js} +1 -1
  3. package/dist/cjs/{chat-Dmb93Uku.js → chat-D8i3i2bg.js} +1 -1
  4. package/dist/cjs/{config-wbyoqfPs.js → config-t-J_04EF.js} +2 -2
  5. package/dist/cjs/{debounce-B5TJRWkG.js → debounce-CQIU-j5e.js} +1 -1
  6. package/dist/cjs/{index-CmhPLhux.js → index-C-oPvlkH.js} +1 -1
  7. package/dist/cjs/index.cjs.js +4 -4
  8. package/dist/cjs/{init-error-BC4ECjPk.js → init-error-ByISl9tW.js} +15 -2
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{merge-B7Yr5DGf.js → merge-KLUu1Byd.js} +1 -1
  11. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  12. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  17. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +3 -3
  18. package/dist/cjs/rtk-avatar_26.cjs.entry.js +10 -10
  19. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  22. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  26. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  27. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  30. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-file-message_3.cjs.entry.js +6 -6
  42. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  54. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  55. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  61. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  62. package/dist/cjs/rtk-notifications.cjs.entry.js +3 -3
  63. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  64. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-participant_2.cjs.entry.js +5 -5
  66. package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  68. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  70. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +46 -17
  78. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +25 -9
  79. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  80. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
  81. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  85. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
  87. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  88. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-stage.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 +3 -3
  93. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
  94. package/dist/cjs/{ui-store-C7CyFWPZ.js → ui-store-CLm8oxnm.js} +9 -0
  95. package/dist/collection/components/rtk-ai/rtk-ai.js +2 -2
  96. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +2 -2
  97. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +2 -2
  98. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +2 -2
  99. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +2 -2
  100. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +2 -2
  101. package/dist/collection/components/rtk-avatar/rtk-avatar.js +2 -2
  102. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +2 -2
  103. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +2 -2
  104. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +2 -2
  105. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +2 -2
  106. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +2 -2
  107. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +2 -2
  108. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +2 -2
  109. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +2 -2
  110. package/dist/collection/components/rtk-chat/rtk-chat.js +2 -2
  111. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +2 -2
  112. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +2 -2
  113. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +2 -2
  114. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +2 -2
  115. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +2 -2
  116. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +2 -2
  117. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +2 -2
  118. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +2 -2
  119. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +2 -2
  120. package/dist/collection/components/rtk-clock/rtk-clock.js +1 -1
  121. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +2 -2
  122. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +2 -2
  123. package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +1 -1
  124. package/dist/collection/components/rtk-counter/rtk-counter.js +2 -2
  125. package/dist/collection/components/rtk-debugger/rtk-debugger.js +2 -2
  126. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +2 -2
  127. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +2 -2
  128. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +2 -2
  129. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +2 -2
  130. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +2 -2
  131. package/dist/collection/components/rtk-dialog/rtk-dialog.js +2 -2
  132. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +2 -2
  133. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +2 -2
  134. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +2 -2
  135. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +2 -2
  136. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +2 -2
  137. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +2 -2
  138. package/dist/collection/components/rtk-file-message/rtk-file-message.js +2 -2
  139. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +1 -1
  140. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +3 -3
  141. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +2 -2
  142. package/dist/collection/components/rtk-grid/rtk-grid.js +2 -2
  143. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +2 -2
  144. package/dist/collection/components/rtk-header/rtk-header.js +2 -2
  145. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +2 -2
  146. package/dist/collection/components/rtk-image-message/rtk-image-message.js +2 -2
  147. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +2 -2
  148. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +2 -2
  149. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
  150. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +2 -2
  151. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +2 -2
  152. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +2 -2
  153. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +2 -2
  154. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +2 -2
  155. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -2
  156. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  157. package/dist/collection/components/rtk-meeting/rtk-meeting.js +2 -2
  158. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +2 -2
  159. package/dist/collection/components/rtk-menu/rtk-menu.js +2 -2
  160. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +2 -2
  161. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +2 -2
  162. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +1 -1
  163. package/dist/collection/components/rtk-message-view/rtk-message-view.js +1 -1
  164. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +2 -2
  165. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +2 -2
  166. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +2 -2
  167. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +2 -2
  168. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +2 -2
  169. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +2 -2
  170. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +2 -2
  171. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +2 -2
  172. package/dist/collection/components/rtk-notification/rtk-notification.js +2 -2
  173. package/dist/collection/components/rtk-notifications/rtk-notifications.js +2 -2
  174. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +2 -2
  175. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +2 -2
  176. package/dist/collection/components/rtk-participant/rtk-participant.js +2 -2
  177. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +2 -2
  178. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +2 -2
  179. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +2 -2
  180. package/dist/collection/components/rtk-participants/rtk-participants.js +2 -2
  181. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +2 -2
  182. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +2 -2
  183. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -2
  184. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +2 -2
  185. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +2 -2
  186. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +2 -2
  187. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +2 -2
  188. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +2 -2
  189. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -2
  190. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +2 -2
  191. package/dist/collection/components/rtk-plugins/rtk-plugins.js +2 -2
  192. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +2 -2
  193. package/dist/collection/components/rtk-poll/rtk-poll.js +2 -2
  194. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +2 -2
  195. package/dist/collection/components/rtk-polls/rtk-polls.js +2 -2
  196. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +2 -2
  197. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +2 -2
  198. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +2 -2
  199. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.css +22 -0
  200. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +45 -16
  201. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +1 -0
  202. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +25 -8
  203. package/dist/collection/components/rtk-settings/rtk-settings.js +2 -2
  204. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +2 -2
  205. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +3 -3
  206. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +2 -2
  207. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +2 -2
  208. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +2 -2
  209. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +3 -3
  210. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +2 -2
  211. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +2 -2
  212. package/dist/collection/components/rtk-spinner/rtk-spinner.js +2 -2
  213. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +4 -4
  214. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +2 -2
  215. package/dist/collection/components/rtk-stage/rtk-stage.js +3 -3
  216. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +2 -2
  217. package/dist/collection/components/rtk-switch/rtk-switch.js +3 -3
  218. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +2 -2
  219. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +3 -3
  220. package/dist/collection/components/rtk-text-message/rtk-text-message.js +4 -4
  221. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
  222. package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
  223. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  224. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +2 -2
  225. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +2 -2
  226. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
  227. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +3 -3
  228. package/dist/collection/lib/icons/default-icon-pack.js +2 -0
  229. package/dist/collection/lib/lang/default-language.js +7 -0
  230. package/dist/collection/utils/init-error.js +15 -2
  231. package/dist/components/index.js +1 -1
  232. package/dist/components/{p-DSe3wsBa.js → p--W18P86G.js} +1 -1
  233. package/dist/components/{p-CRI4EXkA.js → p-0o65FHK8.js} +1 -1
  234. package/dist/components/{p-xnw0dG3-.js → p-B-hQciXL.js} +1 -1
  235. package/dist/components/{p-CkB6Me6q.js → p-B3eMr0gA.js} +1 -1
  236. package/dist/components/{p-Z8VMlEx7.js → p-BFuoKiMa.js} +1 -1
  237. package/dist/components/{p-ObGKzmP7.js → p-BG6eoJrp.js} +1 -1
  238. package/dist/components/{p-BVwe7Wfq.js → p-BMabll08.js} +1 -1
  239. package/dist/components/{p-BODcekJl.js → p-BOHEz75q.js} +1 -1
  240. package/dist/components/{p-M0IaFpEv.js → p-BQ4E83Ra.js} +1 -1
  241. package/dist/components/{p-CgQKQwo8.js → p-BTBcWMKG.js} +1 -1
  242. package/dist/components/{p-ukr4mPVB.js → p-BUPrfLE2.js} +1 -1
  243. package/dist/components/{p-DMbGWtns.js → p-BWnrn7Wp.js} +1 -1
  244. package/dist/components/{p-5quurE-Z.js → p-B_0SlQlL.js} +1 -1
  245. package/dist/components/{p-BbJzI1u1.js → p-B_Wn0VnS.js} +1 -1
  246. package/dist/components/{p-bRRQr4xn.js → p-BeyS1zas.js} +1 -1
  247. package/dist/components/{p-tZ9CpAsl.js → p-BfEeSTjF.js} +1 -1
  248. package/dist/components/{p-sSs7a3Ms.js → p-BlOYC_3W.js} +1 -1
  249. package/dist/components/{p-CW-FAeNP.js → p-BljtjP8B.js} +1 -1
  250. package/dist/components/{p-Bw12zqoT.js → p-BmWn7Ryk.js} +1 -1
  251. package/dist/components/{p-B3XpiAaE.js → p-Bo5XUhsA.js} +1 -1
  252. package/dist/components/{p-mgE9e3Hm.js → p-BrvutlhV.js} +1 -1
  253. package/dist/components/{p-5i84b0Gw.js → p-ByDKblxE.js} +1 -1
  254. package/dist/components/{p-B1oyTNvb.js → p-Bz1E3QS6.js} +1 -1
  255. package/dist/components/{p-DhkCjo6N.js → p-C35YXAVu.js} +1 -1
  256. package/dist/components/{p-CxE6v80l.js → p-C9jtzlam.js} +1 -1
  257. package/dist/components/{p-C6AgOKhg.js → p-CBijABOI.js} +1 -1
  258. package/dist/components/{p-CHOs-ZsL.js → p-CDttXF5T.js} +1 -1
  259. package/dist/components/{p-Smh6fH4v.js → p-CEPlz2Z3.js} +1 -1
  260. package/dist/components/{p-CTuYqZY2.js → p-CE_ZjQoS.js} +1 -1
  261. package/dist/components/{p-iyI_rAph.js → p-CIvRPwAZ.js} +1 -1
  262. package/dist/components/{p-oJLPa1F-.js → p-COVrbp3D.js} +1 -1
  263. package/dist/components/{p-BxPmWGqJ.js → p-CPmk8YRb.js} +1 -1
  264. package/dist/components/{p-B4Ap4n7a.js → p-CVZeTIGL.js} +1 -1
  265. package/dist/components/{p-CpD_SehU.js → p-CWPY6JqF.js} +1 -1
  266. package/dist/components/{p-B4dw_Fnl.js → p-CWnxJ96q.js} +1 -1
  267. package/dist/components/{p-hPdGZ_Bf.js → p-CXeUXiXv.js} +1 -1
  268. package/dist/components/{p-CAMtxcI_.js → p-CbhuOxYr.js} +1 -1
  269. package/dist/components/{p-CCxMYXjI.js → p-Cf6I5oOr.js} +1 -1
  270. package/dist/components/{p-DjOiGHfI.js → p-ChFK4o3B.js} +1 -1
  271. package/dist/components/p-Cj-LCS8F.js +1 -0
  272. package/dist/components/{p-NKK4fZcP.js → p-Clv4ixaK.js} +1 -1
  273. package/dist/components/{p-CBGt9ESN.js → p-CqK6MUJ1.js} +1 -1
  274. package/dist/components/{p-CGBdi6J9.js → p-CqvKDoT_.js} +1 -1
  275. package/dist/components/{p-Dh8N1Wv8.js → p-Ctu2bkh9.js} +1 -1
  276. package/dist/components/{p-B3dQhqRr.js → p-Cx5qgHA3.js} +1 -1
  277. package/dist/components/{p-BoqfUgTL.js → p-D4W6kia7.js} +1 -1
  278. package/dist/components/{p-B0SC1Zj-.js → p-D8kn6Kmy.js} +1 -1
  279. package/dist/components/{p-xKvr8ufu.js → p-D9h2qpDP.js} +1 -1
  280. package/dist/components/p-DBekcxma.js +1 -0
  281. package/dist/components/{p-Djf3ZrmN.js → p-DC4xippU.js} +1 -1
  282. package/dist/components/{p-LohuIsNV.js → p-DIHfjf2w.js} +1 -1
  283. package/dist/components/{p-C7WazpNf.js → p-DJuk-FJe.js} +1 -1
  284. package/dist/components/p-DKItPEgV.js +1 -0
  285. package/dist/components/{p-BHHJ7_MS.js → p-DWXhSwkc.js} +1 -1
  286. package/dist/components/{p-BYNelMao.js → p-DXd0b0HH.js} +1 -1
  287. package/dist/components/{p-BvLjh5Yy.js → p-DXj7Va5n.js} +1 -1
  288. package/dist/components/p-DYyhgQQD.js +1 -0
  289. package/dist/components/{p-B5XTxQov.js → p-DbEL8KpE.js} +1 -1
  290. package/dist/components/{p-CFBS-gbK.js → p-Ddz1AfPy.js} +1 -1
  291. package/dist/components/{p-D3fF-6sB.js → p-DgwW5NHh.js} +1 -1
  292. package/dist/components/{p-BL_lNnwE.js → p-Dl1XVzON.js} +1 -1
  293. package/dist/components/{p-BueZc6Xo.js → p-DqiWqbuZ.js} +1 -1
  294. package/dist/components/{p-DViKr-34.js → p-Dr5J4rpX.js} +1 -1
  295. package/dist/components/{p-Dq8iLPzP.js → p-H3_oZZcz.js} +1 -1
  296. package/dist/components/{p-CNaazJXM.js → p-IKuOHaBo.js} +1 -1
  297. package/dist/components/{p-CjstGmGh.js → p-LSU6QPd1.js} +1 -1
  298. package/dist/components/{p-D6Vrf7V1.js → p-OFImZpye.js} +1 -1
  299. package/dist/components/{p-DRDGwBZ3.js → p-OWmBzZJ6.js} +1 -1
  300. package/dist/components/{p-DONfrqzk.js → p-Q3JXX_t4.js} +1 -1
  301. package/dist/components/{p-DSUStc8e.js → p-SdekzV3F.js} +1 -1
  302. package/dist/components/{p-CfIrQkMg.js → p-cYn1aFYj.js} +1 -1
  303. package/dist/components/{p-C9UuqXCX.js → p-eqrDoLFs.js} +1 -1
  304. package/dist/components/{p-CJGAvEk3.js → p-eyOPXk0e.js} +1 -1
  305. package/dist/components/{p-CPnv0ZqZ.js → p-fkMAgm6N.js} +1 -1
  306. package/dist/components/{p-CEK_XoGw.js → p-ihohqxEx.js} +1 -1
  307. package/dist/components/{p-BW3eEJGd.js → p-lBkv8Hj9.js} +1 -1
  308. package/dist/components/{p-CnPYfRgf.js → p-p1-4W0FG.js} +1 -1
  309. package/dist/components/{p-igDs79FY.js → p-wKTUzoCV.js} +1 -1
  310. package/dist/components/{p-BD2FfUwc.js → p-xlE47ORV.js} +1 -1
  311. package/dist/components/rtk-ai-toggle.js +1 -1
  312. package/dist/components/rtk-ai-transcriptions.js +1 -1
  313. package/dist/components/rtk-ai.js +1 -1
  314. package/dist/components/rtk-audio-grid.js +1 -1
  315. package/dist/components/rtk-audio-tile.js +1 -1
  316. package/dist/components/rtk-audio-visualizer.js +1 -1
  317. package/dist/components/rtk-avatar.js +1 -1
  318. package/dist/components/rtk-breakout-room-manager.js +1 -1
  319. package/dist/components/rtk-breakout-room-participants.js +1 -1
  320. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  321. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  322. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  323. package/dist/components/rtk-camera-selector.js +1 -1
  324. package/dist/components/rtk-camera-toggle.js +1 -1
  325. package/dist/components/rtk-caption-toggle.js +1 -1
  326. package/dist/components/rtk-chat-composer-ui.js +1 -1
  327. package/dist/components/rtk-chat-composer-view.js +1 -1
  328. package/dist/components/rtk-chat-header.js +1 -1
  329. package/dist/components/rtk-chat-message.js +1 -1
  330. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  331. package/dist/components/rtk-chat-messages-ui.js +1 -1
  332. package/dist/components/rtk-chat-search-results.js +1 -1
  333. package/dist/components/rtk-chat-selector-ui.js +1 -1
  334. package/dist/components/rtk-chat-selector.js +1 -1
  335. package/dist/components/rtk-chat-toggle.js +1 -1
  336. package/dist/components/rtk-chat.js +1 -1
  337. package/dist/components/rtk-clock.js +1 -1
  338. package/dist/components/rtk-confirmation-modal.js +1 -1
  339. package/dist/components/rtk-controlbar-button.js +1 -1
  340. package/dist/components/rtk-controlbar.js +1 -1
  341. package/dist/components/rtk-counter.js +1 -1
  342. package/dist/components/rtk-debugger-audio.js +1 -1
  343. package/dist/components/rtk-debugger-screenshare.js +1 -1
  344. package/dist/components/rtk-debugger-system.js +1 -1
  345. package/dist/components/rtk-debugger-toggle.js +1 -1
  346. package/dist/components/rtk-debugger-video.js +1 -1
  347. package/dist/components/rtk-debugger.js +1 -1
  348. package/dist/components/rtk-dialog-manager.js +1 -1
  349. package/dist/components/rtk-dialog.js +1 -1
  350. package/dist/components/rtk-draft-attachment-view.js +1 -1
  351. package/dist/components/rtk-emoji-picker-button.js +1 -1
  352. package/dist/components/rtk-emoji-picker.js +1 -1
  353. package/dist/components/rtk-ended-screen.js +1 -1
  354. package/dist/components/rtk-file-dropzone.js +1 -1
  355. package/dist/components/rtk-file-message-view.js +1 -1
  356. package/dist/components/rtk-file-message.js +1 -1
  357. package/dist/components/rtk-file-picker-button.js +1 -1
  358. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  359. package/dist/components/rtk-grid-pagination.js +1 -1
  360. package/dist/components/rtk-grid.js +1 -1
  361. package/dist/components/rtk-header.js +1 -1
  362. package/dist/components/rtk-idle-screen.js +1 -1
  363. package/dist/components/rtk-image-message-view.js +1 -1
  364. package/dist/components/rtk-image-message.js +1 -1
  365. package/dist/components/rtk-image-viewer.js +1 -1
  366. package/dist/components/rtk-information-tooltip.js +1 -1
  367. package/dist/components/rtk-join-stage.js +1 -1
  368. package/dist/components/rtk-leave-button.js +1 -1
  369. package/dist/components/rtk-leave-meeting.js +1 -1
  370. package/dist/components/rtk-livestream-indicator.js +1 -1
  371. package/dist/components/rtk-livestream-player.js +1 -1
  372. package/dist/components/rtk-livestream-toggle.js +1 -1
  373. package/dist/components/rtk-logo.js +1 -1
  374. package/dist/components/rtk-meeting-title.js +1 -1
  375. package/dist/components/rtk-meeting.js +1 -1
  376. package/dist/components/rtk-menu-item.js +1 -1
  377. package/dist/components/rtk-menu-list.js +1 -1
  378. package/dist/components/rtk-menu.js +1 -1
  379. package/dist/components/rtk-message-list-view.js +1 -1
  380. package/dist/components/rtk-message-view.js +1 -1
  381. package/dist/components/rtk-mic-toggle.js +1 -1
  382. package/dist/components/rtk-microphone-selector.js +1 -1
  383. package/dist/components/rtk-mixed-grid.js +1 -1
  384. package/dist/components/rtk-more-toggle.js +1 -1
  385. package/dist/components/rtk-mute-all-button.js +1 -1
  386. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  387. package/dist/components/rtk-name-tag.js +1 -1
  388. package/dist/components/rtk-network-indicator.js +1 -1
  389. package/dist/components/rtk-notification.js +1 -1
  390. package/dist/components/rtk-notifications.js +1 -1
  391. package/dist/components/rtk-overlay-modal.js +1 -1
  392. package/dist/components/rtk-paginated-list.js +1 -1
  393. package/dist/components/rtk-participant-count.js +1 -1
  394. package/dist/components/rtk-participant-setup.js +1 -1
  395. package/dist/components/rtk-participant-tile.js +1 -1
  396. package/dist/components/rtk-participant.js +1 -1
  397. package/dist/components/rtk-participants-audio.js +1 -1
  398. package/dist/components/rtk-participants-stage-list.js +1 -1
  399. package/dist/components/rtk-participants-stage-queue.js +1 -1
  400. package/dist/components/rtk-participants-toggle.js +1 -1
  401. package/dist/components/rtk-participants-viewer-list.js +1 -1
  402. package/dist/components/rtk-participants-waiting-list.js +1 -1
  403. package/dist/components/rtk-participants.js +1 -1
  404. package/dist/components/rtk-permissions-message.js +1 -1
  405. package/dist/components/rtk-pinned-message-selector.js +1 -1
  406. package/dist/components/rtk-pip-toggle.js +1 -1
  407. package/dist/components/rtk-plugin-main.js +1 -1
  408. package/dist/components/rtk-plugins-toggle.js +1 -1
  409. package/dist/components/rtk-plugins.js +1 -1
  410. package/dist/components/rtk-poll-form.js +1 -1
  411. package/dist/components/rtk-poll.js +1 -1
  412. package/dist/components/rtk-polls-toggle.js +1 -1
  413. package/dist/components/rtk-polls.js +1 -1
  414. package/dist/components/rtk-recording-indicator.js +1 -1
  415. package/dist/components/rtk-recording-toggle.js +1 -1
  416. package/dist/components/rtk-screen-share-toggle.js +1 -1
  417. package/dist/components/rtk-screenshare-view.js +1 -1
  418. package/dist/components/rtk-settings-audio.js +1 -1
  419. package/dist/components/rtk-settings-toggle.js +1 -1
  420. package/dist/components/rtk-settings-video.js +1 -1
  421. package/dist/components/rtk-settings.js +1 -1
  422. package/dist/components/rtk-setup-screen.js +1 -1
  423. package/dist/components/rtk-sidebar-ui.js +1 -1
  424. package/dist/components/rtk-sidebar.js +1 -1
  425. package/dist/components/rtk-simple-grid.js +1 -1
  426. package/dist/components/rtk-speaker-selector.js +1 -1
  427. package/dist/components/rtk-spinner.js +1 -1
  428. package/dist/components/rtk-spotlight-grid.js +1 -1
  429. package/dist/components/rtk-spotlight-indicator.js +1 -1
  430. package/dist/components/rtk-stage-toggle.js +1 -1
  431. package/dist/components/rtk-stage.js +1 -1
  432. package/dist/components/rtk-switch.js +1 -1
  433. package/dist/components/rtk-tab-bar.js +1 -1
  434. package/dist/components/rtk-text-composer-view.js +1 -1
  435. package/dist/components/rtk-text-message-view.js +1 -1
  436. package/dist/components/rtk-text-message.js +1 -1
  437. package/dist/components/rtk-transcript.js +1 -1
  438. package/dist/components/rtk-transcripts.js +1 -1
  439. package/dist/components/rtk-ui-provider.js +1 -1
  440. package/dist/components/rtk-viewer-count.js +1 -1
  441. package/dist/components/rtk-virtualized-participant-list.js +1 -1
  442. package/dist/components/rtk-waiting-screen.js +1 -1
  443. package/dist/docs/docs-components.json +4082 -634
  444. package/dist/docs/docs-vscode.json +6 -0
  445. package/dist/esm/{TextMessage-B-38YeFE.js → TextMessage-B_wsQIl_.js} +1 -1
  446. package/dist/esm/{chat-a6CRyl2K.js → chat-Dcph1bVZ.js} +1 -1
  447. package/dist/esm/{config-wP0cqv4b.js → config-BFnpcSIs.js} +2 -2
  448. package/dist/esm/{debounce-lqMlEJcq.js → debounce-DZ4DNGsg.js} +1 -1
  449. package/dist/esm/{index-CP1LPkYZ.js → index-UHoULP2p.js} +1 -1
  450. package/dist/esm/index.js +6 -6
  451. package/dist/esm/{init-error-DE1s0fDa.js → init-error-Cj-LCS8F.js} +15 -2
  452. package/dist/esm/loader.js +106 -39
  453. package/dist/esm/{merge-BWjuIacB.js → merge-LzcOkag9.js} +1 -1
  454. package/dist/esm/realtimekit-ui.js +1 -1
  455. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  456. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  457. package/dist/esm/rtk-ai_3.entry.js +2 -2
  458. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  459. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  460. package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
  461. package/dist/esm/rtk-avatar_26.entry.js +10 -10
  462. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  463. package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
  464. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  465. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  466. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  467. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  468. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  469. package/dist/esm/rtk-chat-message.entry.js +2 -2
  470. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  471. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  472. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  473. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  474. package/dist/esm/rtk-clock.entry.js +2 -2
  475. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  476. package/dist/esm/rtk-controlbar.entry.js +2 -2
  477. package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
  478. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  479. package/dist/esm/rtk-debugger.entry.js +2 -2
  480. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  481. package/dist/esm/rtk-dialog.entry.js +2 -2
  482. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  483. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  484. package/dist/esm/rtk-file-message_3.entry.js +6 -6
  485. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  486. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  487. package/dist/esm/rtk-grid.entry.js +2 -2
  488. package/dist/esm/rtk-header.entry.js +2 -2
  489. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  490. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  491. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  492. package/dist/esm/rtk-leave-button.entry.js +2 -2
  493. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  494. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  495. package/dist/esm/rtk-logo.entry.js +2 -2
  496. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  497. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  498. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  499. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  500. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  501. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  502. package/dist/esm/rtk-name-tag.entry.js +2 -2
  503. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  504. package/dist/esm/rtk-notification.entry.js +4 -4
  505. package/dist/esm/rtk-notifications.entry.js +3 -3
  506. package/dist/esm/rtk-participant-count.entry.js +2 -2
  507. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  508. package/dist/esm/rtk-participant_2.entry.js +5 -5
  509. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  510. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  511. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  512. package/dist/esm/rtk-participants.entry.js +3 -3
  513. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  514. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  515. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  516. package/dist/esm/rtk-poll_2.entry.js +2 -2
  517. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  518. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  519. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  520. package/dist/esm/rtk-screen-share-toggle.entry.js +46 -17
  521. package/dist/esm/rtk-screenshare-view.entry.js +25 -9
  522. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  523. package/dist/esm/rtk-settings-toggle.entry.js +3 -3
  524. package/dist/esm/rtk-settings.entry.js +2 -2
  525. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  526. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  527. package/dist/esm/rtk-sidebar.entry.js +2 -2
  528. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  529. package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
  530. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  531. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  532. package/dist/esm/rtk-stage.entry.js +3 -3
  533. package/dist/esm/rtk-transcript.entry.js +3 -3
  534. package/dist/esm/rtk-transcripts.entry.js +2 -2
  535. package/dist/esm/rtk-ui-provider.entry.js +3 -3
  536. package/dist/esm/rtk-waiting-screen.entry.js +3 -3
  537. package/dist/esm/{ui-store-Ctcbman-.js → ui-store-g2F04f-Y.js} +9 -0
  538. package/dist/realtimekit-ui/index.esm.js +1 -1
  539. package/dist/realtimekit-ui/{p-b16313e9.entry.js → p-00415ca3.entry.js} +1 -1
  540. package/dist/realtimekit-ui/{p-f33e4112.entry.js → p-04b65763.entry.js} +1 -1
  541. package/dist/realtimekit-ui/{p-286ce4d7.entry.js → p-0ac14bbb.entry.js} +1 -1
  542. package/dist/realtimekit-ui/{p-29ab5d68.entry.js → p-10916df4.entry.js} +1 -1
  543. package/dist/realtimekit-ui/{p-e7a4954c.entry.js → p-110e2f35.entry.js} +1 -1
  544. package/dist/realtimekit-ui/{p-959917cc.entry.js → p-13f1e992.entry.js} +1 -1
  545. package/dist/realtimekit-ui/{p-f27494e7.entry.js → p-1ca40d29.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-d29c5a04.entry.js → p-1e772323.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-5810f0c4.entry.js → p-1fcb2e8c.entry.js} +1 -1
  548. package/dist/realtimekit-ui/{p-bd848924.entry.js → p-23a892b6.entry.js} +1 -1
  549. package/dist/realtimekit-ui/{p-55ba62c3.entry.js → p-245d86bb.entry.js} +1 -1
  550. package/dist/realtimekit-ui/{p-481e75eb.entry.js → p-24cda5b7.entry.js} +1 -1
  551. package/dist/realtimekit-ui/{p-893da38a.entry.js → p-272b6f6b.entry.js} +1 -1
  552. package/dist/realtimekit-ui/{p-fa84f55a.entry.js → p-30306508.entry.js} +1 -1
  553. package/dist/realtimekit-ui/{p-77c92672.entry.js → p-35b6a8d2.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-da2e626e.entry.js → p-361bf36c.entry.js} +1 -1
  555. package/dist/realtimekit-ui/{p-4aa24ae6.entry.js → p-3ca75eb5.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-ac4c182d.entry.js → p-41705d10.entry.js} +1 -1
  557. package/dist/realtimekit-ui/{p-462d4e8f.entry.js → p-423143a0.entry.js} +1 -1
  558. package/dist/realtimekit-ui/{p-8cdd8307.entry.js → p-4330b190.entry.js} +1 -1
  559. package/dist/realtimekit-ui/{p-91bcabc0.entry.js → p-43af899a.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-9aac22a5.entry.js → p-43cf80c7.entry.js} +1 -1
  561. package/dist/realtimekit-ui/{p-194ebf74.entry.js → p-49c8147f.entry.js} +1 -1
  562. package/dist/realtimekit-ui/{p-a34a267b.entry.js → p-4c9c4b30.entry.js} +1 -1
  563. package/dist/realtimekit-ui/{p-0264d57f.entry.js → p-4c9fac09.entry.js} +1 -1
  564. package/dist/realtimekit-ui/{p-ef030197.entry.js → p-4d3029ed.entry.js} +1 -1
  565. package/dist/realtimekit-ui/{p-4a7927d1.entry.js → p-50abfb30.entry.js} +1 -1
  566. package/dist/realtimekit-ui/{p-2715643b.entry.js → p-59039323.entry.js} +1 -1
  567. package/dist/realtimekit-ui/{p-58366145.entry.js → p-5947e4a9.entry.js} +1 -1
  568. package/dist/realtimekit-ui/p-5d05e378.entry.js +1 -0
  569. package/dist/realtimekit-ui/p-608b1cae.entry.js +1 -0
  570. package/dist/realtimekit-ui/{p-d003eb81.entry.js → p-61459d9d.entry.js} +1 -1
  571. package/dist/realtimekit-ui/{p-5e3931a3.entry.js → p-629e3543.entry.js} +1 -1
  572. package/dist/realtimekit-ui/{p-f5809d7c.entry.js → p-63f70fa8.entry.js} +1 -1
  573. package/dist/realtimekit-ui/{p-5361cd19.entry.js → p-65829152.entry.js} +1 -1
  574. package/dist/realtimekit-ui/{p-67ee7fdd.entry.js → p-6aecb59f.entry.js} +1 -1
  575. package/dist/realtimekit-ui/{p-9fb75436.entry.js → p-6d47bb46.entry.js} +1 -1
  576. package/dist/realtimekit-ui/{p-f6085321.entry.js → p-6e8e0782.entry.js} +1 -1
  577. package/dist/realtimekit-ui/{p-9fa91df2.entry.js → p-6ed10262.entry.js} +1 -1
  578. package/dist/realtimekit-ui/{p-6d3b4996.entry.js → p-6f0c608b.entry.js} +1 -1
  579. package/dist/realtimekit-ui/{p-21b69da3.entry.js → p-72603fd8.entry.js} +1 -1
  580. package/dist/realtimekit-ui/{p-0742c744.entry.js → p-728fe692.entry.js} +1 -1
  581. package/dist/realtimekit-ui/p-72afbc20.entry.js +1 -0
  582. package/dist/realtimekit-ui/{p-fb0a9fa6.entry.js → p-776c9d43.entry.js} +1 -1
  583. package/dist/realtimekit-ui/{p-70de46f0.entry.js → p-79ba0219.entry.js} +1 -1
  584. package/dist/realtimekit-ui/{p-52e797c1.entry.js → p-7a18aaf2.entry.js} +1 -1
  585. package/dist/realtimekit-ui/{p-1f144efb.entry.js → p-7bfd8296.entry.js} +1 -1
  586. package/dist/realtimekit-ui/p-7cb6abe7.entry.js +1 -0
  587. package/dist/realtimekit-ui/{p-c317b4a0.entry.js → p-7d04d872.entry.js} +1 -1
  588. package/dist/realtimekit-ui/{p-ee65922b.entry.js → p-7e2f41d7.entry.js} +1 -1
  589. package/dist/realtimekit-ui/{p-9913c4ca.entry.js → p-7f553365.entry.js} +1 -1
  590. package/dist/realtimekit-ui/{p-2fd5255e.entry.js → p-7f5c287f.entry.js} +1 -1
  591. package/dist/realtimekit-ui/{p-b918e87c.entry.js → p-9251b8bc.entry.js} +1 -1
  592. package/dist/realtimekit-ui/{p-4f3e5cb4.entry.js → p-9291666b.entry.js} +1 -1
  593. package/dist/realtimekit-ui/{p-d30c178f.entry.js → p-97e1efce.entry.js} +1 -1
  594. package/dist/realtimekit-ui/{p-CfUJPUNx.js → p-B-xBEnhz.js} +1 -1
  595. package/dist/realtimekit-ui/p-BWYsSVnv.js +1 -0
  596. package/dist/realtimekit-ui/{p-BmRffDYW.js → p-C2mieCrY.js} +1 -1
  597. package/dist/realtimekit-ui/{p-CQ2xadpP.js → p-CM74mbyi.js} +1 -1
  598. package/dist/realtimekit-ui/{p-dYOM3dvx.js → p-CVHhOJXC.js} +1 -1
  599. package/dist/realtimekit-ui/p-Cj-LCS8F.js +1 -0
  600. package/dist/realtimekit-ui/{p-MlOz-emx.js → p-DHdB7rAI.js} +1 -1
  601. package/dist/realtimekit-ui/{p-B91vjjSJ.js → p-J7ILCEoQ.js} +1 -1
  602. package/dist/realtimekit-ui/{p-55ec635e.entry.js → p-a5f80b76.entry.js} +1 -1
  603. package/dist/realtimekit-ui/{p-384db558.entry.js → p-b9ad49be.entry.js} +1 -1
  604. package/dist/realtimekit-ui/{p-0051564a.entry.js → p-c18ccddc.entry.js} +1 -1
  605. package/dist/realtimekit-ui/{p-bdd8ebec.entry.js → p-c1b7e9ff.entry.js} +1 -1
  606. package/dist/realtimekit-ui/{p-3ed792bf.entry.js → p-c50ca0c0.entry.js} +1 -1
  607. package/dist/realtimekit-ui/{p-6ab2602a.entry.js → p-c5f6097a.entry.js} +1 -1
  608. package/dist/realtimekit-ui/{p-bac3c4fb.entry.js → p-c734f370.entry.js} +1 -1
  609. package/dist/realtimekit-ui/p-cedf36dc.entry.js +1 -0
  610. package/dist/realtimekit-ui/{p-b41fc081.entry.js → p-cff327e9.entry.js} +1 -1
  611. package/dist/realtimekit-ui/{p-dd6fa0d8.entry.js → p-d3912c86.entry.js} +1 -1
  612. package/dist/realtimekit-ui/{p-439c8ce4.entry.js → p-d5bc0a67.entry.js} +1 -1
  613. package/dist/realtimekit-ui/{p-d51ab494.entry.js → p-d6d0af86.entry.js} +1 -1
  614. package/dist/realtimekit-ui/{p-6cc9da9f.entry.js → p-e0591bc5.entry.js} +1 -1
  615. package/dist/realtimekit-ui/{p-661b7281.entry.js → p-e0d48f00.entry.js} +1 -1
  616. package/dist/realtimekit-ui/{p-8c77aa57.entry.js → p-e21f0412.entry.js} +1 -1
  617. package/dist/realtimekit-ui/{p-d52b8b3d.entry.js → p-e451d1d5.entry.js} +1 -1
  618. package/dist/realtimekit-ui/{p-0195bd60.entry.js → p-e6a483c6.entry.js} +1 -1
  619. package/dist/realtimekit-ui/p-eb99aa46.entry.js +1 -0
  620. package/dist/realtimekit-ui/p-ec8dbcd1.entry.js +1 -0
  621. package/dist/realtimekit-ui/{p-8e7d8c30.entry.js → p-ed1385e6.entry.js} +1 -1
  622. package/dist/realtimekit-ui/p-f76043d2.entry.js +1 -0
  623. package/dist/realtimekit-ui/{p-62a46799.entry.js → p-f7667d39.entry.js} +1 -1
  624. package/dist/realtimekit-ui/{p-ebdece22.entry.js → p-fa1aad75.entry.js} +1 -1
  625. package/dist/realtimekit-ui/{p-5093081b.entry.js → p-fc2d95fc.entry.js} +1 -1
  626. package/dist/realtimekit-ui/{p-77e9a0cb.entry.js → p-fc7ce3eb.entry.js} +1 -1
  627. package/dist/realtimekit-ui/{p-9ce9b595.entry.js → p-fd046233.entry.js} +1 -1
  628. package/dist/realtimekit-ui/{p-d85e142c.entry.js → p-ff9bbf6d.entry.js} +1 -1
  629. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  630. package/dist/types/components/rtk-screen-share-toggle/rtk-screen-share-toggle.d.ts +4 -1
  631. package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +2 -0
  632. package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -0
  633. package/dist/types/components.d.ts +2 -2
  634. package/dist/types/lib/icons/default-icon-pack.d.ts +2 -0
  635. package/dist/types/lib/lang/default-language.d.ts +7 -0
  636. package/dist/types/utils/init-error.d.ts +1 -1
  637. package/package.json +1 -1
  638. package/dist/components/p-B1HaRABx.js +0 -1
  639. package/dist/components/p-C5kkSbkd.js +0 -1
  640. package/dist/components/p-DE1s0fDa.js +0 -1
  641. package/dist/components/p-DhwysA2e.js +0 -1
  642. package/dist/realtimekit-ui/p-1b3ffb5e.entry.js +0 -1
  643. package/dist/realtimekit-ui/p-4a1ec4a2.entry.js +0 -1
  644. package/dist/realtimekit-ui/p-9fd3cb5e.entry.js +0 -1
  645. package/dist/realtimekit-ui/p-DE1s0fDa.js +0 -1
  646. package/dist/realtimekit-ui/p-DI7wP4CL.js +0 -1
  647. package/dist/realtimekit-ui/p-a6ec2863.entry.js +0 -1
  648. package/dist/realtimekit-ui/p-ab63946e.entry.js +0 -1
  649. package/dist/realtimekit-ui/p-b9f47f88.entry.js +0 -1
  650. package/dist/realtimekit-ui/p-c6d03162.entry.js +0 -1
  651. package/dist/realtimekit-ui/p-f5377574.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,d as a,h as e,a as r}from"./p-gJCRRBX0.js";import{S as o}from"./p-BmRffDYW.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as s}from"./p-DI7wP4CL.js";import"./p-Daj_55_i.js";const n=class{constructor(e){t(this,e),this.tabChange=a(this,"tabChange",7),this.sidebarClose=a(this,"sidebarClose",7),this.view="sidebar",this.tabs=[],this.hideHeader=!1,this.hideCloseAction=!1,this.iconPack=i,this.focusCloseButton=!0,this.t=s(),this.onClose=()=>{var t;this.sidebarClose.emit(),document.activeElement instanceof HTMLElement&&(null===(t=document.activeElement.tagName)||void 0===t?void 0:t.includes("RTK-"))&&document.activeElement.blur instanceof Function&&document.activeElement.blur()}}componentDidLoad(){this.keydownListener=t=>{"Escape"===t.key&&this.onClose()},this.hostEl.addEventListener("keydown",this.keydownListener),this.handleFocusCloseButton()}handleFocusCloseButton(){"chat"===this.currentTab||this.hideCloseAction||this.closeButton.focus()}disconnectedCallback(){this.hostEl.removeEventListener("keydown",this.keydownListener)}render(){const t="full-screen"===this.view,a=this.tabs.find((t=>t.id===this.currentTab));return e(r,{key:"850aa92eeb61bf2729b12e30be8a43a9ff3a1acf",ref:t=>this.hostEl=t,class:this.view},!this.hideCloseAction&&e("rtk-button",{key:"f52d00bc36c398403eb7ac8ab5625f3cecd5da4f",ref:t=>this.closeButton=t,variant:"ghost",kind:"icon",class:"close",onClick:this.onClose,"aria-label":this.t("close")},e("rtk-icon",{key:"4d970f5a9f02839dc297ccb2b7c85806025f7ef1",icon:this.iconPack.dismiss})),a&&!this.hideHeader&&e("header",{key:"8c1ae2f6e4a87e2fc66381e70c7053b1b4a4d2b2",class:"main-header"},e("h3",{key:"6f9faffac3acd82cd4645189459212026b10bf1d"},a.name),e("slot",{key:"20b3cff89b8805600eafbce17aabc4880e473a56",name:"pinned-state"})),t&&e("header",{key:"86bf499aadbe7b57868a135a35100cc1e430520e",class:"mobile-tabs"},this.tabs.map((t=>e("button",{onClick:()=>{this.tabChange.emit(t.id)},class:{active:this.currentTab===t.id}},t.name)))),e("slot",{key:"d19ec28aa918a2bfd9556c64ef758b2faf6a195d",name:this.currentTab}))}static get watchers(){return{currentTab:[{handleFocusCloseButton:0}]}}};(function(t,a,e,r){var o,i=arguments.length,s=i<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,a,e,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(i<3?o(s):i>3?o(a,e,s):o(a,e))||s);i>3&&s&&Object.defineProperty(a,e,s)})([o()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;height:100%;width:100%;font-family:var(--rtk-font-family, sans-serif);z-index:50;display:flex;flex-direction:column;container-type:size;container-name:sidebarui}@container sidebarui (height < 370px){.main-header{height:var(--rtk-space-8, 32px) !important}.close{top:var(--rtk-space-0\\.5, 2px) !important;left:var(--rtk-space-0, 0px) !important;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.6)}}:host([view='sidebar']){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host([view='full-screen']){position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%;border:none}::slotted(*){flex-grow:1}.close{position:absolute;top:var(--rtk-space-2, 8px);left:var(--rtk-space-2, 8px);z-index:10}.main-header{position:relative;display:flex;height:var(--rtk-space-12, 48px);place-items:center;justify-content:center}.main-header,.mobile-tabs{flex-shrink:0}.mobile-tabs{display:flex;place-items:center;justify-content:space-evenly;border-bottom:1px solid rgb(var(--rtk-colors-background-700, 44 44 44))}.mobile-tabs button{margin:var(--rtk-space-0, 0px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;padding:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));height:var(--rtk-space-10, 40px);cursor:pointer;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);font-weight:500;border-bottom:1px solid transparent}.mobile-tabs button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-border-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}header h3{font-size:14px;font-weight:500}@media only screen and (max-device-height: 480px) and (orientation: landscape){.main-header{display:none !important}}.tab-participant-count-badge{display:inline-block;padding:2px 5px;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.tab-participant-count-badge:not(.selected-tab){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.tab-participant-count-badge.requests-pending{background-color:rgba(var(--rtk-colors-danger))}";export{n as rtk_sidebar_ui}
1
+ import{r as t,d as a,h as e,a as r}from"./p-gJCRRBX0.js";import{S as o}from"./p-C2mieCrY.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as s}from"./p-BWYsSVnv.js";import"./p-Daj_55_i.js";const n=class{constructor(e){t(this,e),this.tabChange=a(this,"tabChange",7),this.sidebarClose=a(this,"sidebarClose",7),this.view="sidebar",this.tabs=[],this.hideHeader=!1,this.hideCloseAction=!1,this.iconPack=i,this.focusCloseButton=!0,this.t=s(),this.onClose=()=>{var t;this.sidebarClose.emit(),document.activeElement instanceof HTMLElement&&(null===(t=document.activeElement.tagName)||void 0===t?void 0:t.includes("RTK-"))&&document.activeElement.blur instanceof Function&&document.activeElement.blur()}}componentDidLoad(){this.keydownListener=t=>{"Escape"===t.key&&this.onClose()},this.hostEl.addEventListener("keydown",this.keydownListener),this.handleFocusCloseButton()}handleFocusCloseButton(){"chat"===this.currentTab||this.hideCloseAction||this.closeButton.focus()}disconnectedCallback(){this.hostEl.removeEventListener("keydown",this.keydownListener)}render(){const t="full-screen"===this.view,a=this.tabs.find((t=>t.id===this.currentTab));return e(r,{key:"850aa92eeb61bf2729b12e30be8a43a9ff3a1acf",ref:t=>this.hostEl=t,class:this.view},!this.hideCloseAction&&e("rtk-button",{key:"f52d00bc36c398403eb7ac8ab5625f3cecd5da4f",ref:t=>this.closeButton=t,variant:"ghost",kind:"icon",class:"close",onClick:this.onClose,"aria-label":this.t("close")},e("rtk-icon",{key:"4d970f5a9f02839dc297ccb2b7c85806025f7ef1",icon:this.iconPack.dismiss})),a&&!this.hideHeader&&e("header",{key:"8c1ae2f6e4a87e2fc66381e70c7053b1b4a4d2b2",class:"main-header"},e("h3",{key:"6f9faffac3acd82cd4645189459212026b10bf1d"},a.name),e("slot",{key:"20b3cff89b8805600eafbce17aabc4880e473a56",name:"pinned-state"})),t&&e("header",{key:"86bf499aadbe7b57868a135a35100cc1e430520e",class:"mobile-tabs"},this.tabs.map((t=>e("button",{onClick:()=>{this.tabChange.emit(t.id)},class:{active:this.currentTab===t.id}},t.name)))),e("slot",{key:"d19ec28aa918a2bfd9556c64ef758b2faf6a195d",name:this.currentTab}))}static get watchers(){return{currentTab:[{handleFocusCloseButton:0}]}}};(function(t,a,e,r){var o,i=arguments.length,s=i<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,a,e,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(i<3?o(s):i>3?o(a,e,s):o(a,e))||s);i>3&&s&&Object.defineProperty(a,e,s)})([o()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;height:100%;width:100%;font-family:var(--rtk-font-family, sans-serif);z-index:50;display:flex;flex-direction:column;container-type:size;container-name:sidebarui}@container sidebarui (height < 370px){.main-header{height:var(--rtk-space-8, 32px) !important}.close{top:var(--rtk-space-0\\.5, 2px) !important;left:var(--rtk-space-0, 0px) !important;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.6)}}:host([view='sidebar']){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host([view='full-screen']){position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%;border:none}::slotted(*){flex-grow:1}.close{position:absolute;top:var(--rtk-space-2, 8px);left:var(--rtk-space-2, 8px);z-index:10}.main-header{position:relative;display:flex;height:var(--rtk-space-12, 48px);place-items:center;justify-content:center}.main-header,.mobile-tabs{flex-shrink:0}.mobile-tabs{display:flex;place-items:center;justify-content:space-evenly;border-bottom:1px solid rgb(var(--rtk-colors-background-700, 44 44 44))}.mobile-tabs button{margin:var(--rtk-space-0, 0px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;padding:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));height:var(--rtk-space-10, 40px);cursor:pointer;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);font-weight:500;border-bottom:1px solid transparent}.mobile-tabs button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-border-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}header h3{font-size:14px;font-weight:500}@media only screen and (max-device-height: 480px) and (orientation: landscape){.main-header{display:none !important}}.tab-participant-count-badge{display:inline-block;padding:2px 5px;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.tab-participant-count-badge:not(.selected-tab){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.tab-participant-count-badge.requests-pending{background-color:rgba(var(--rtk-colors-danger))}";export{n as rtk_sidebar_ui}
@@ -0,0 +1 @@
1
+ import{r as t,d as e,e as a,h as i,a as r,g as s}from"./p-gJCRRBX0.js";import{e as o,i as n}from"./p-BWYsSVnv.js";import{i as c,r as d,e as l,a as h}from"./p-GSFejkz7.js";import{S as p}from"./p-C2mieCrY.js";var f=function(t,e,a,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,a,o):r(e,a))||o);return s>3&&o&&Object.defineProperty(e,a,o),o};const g=class{constructor(a){t(this,a),this.stateUpdate=e(this,"rtkStateUpdate",7),this.play=e(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=c()},this.participantScreenshareUpdate=t=>{t.id===this.participant.id&&this.screenShareListener(t)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=o,this.t=n(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isSwitchingScreen=!1,this.isFullScreen=!1,this.shareDifferentScreen=async()=>{const t=this.meeting;if(null!=t&&!this.isSwitchingScreen){this.isSwitchingScreen=!0;try{await t.self.enableScreenShare()}catch(e){t.__internals__.logger.error("rtkScreenshareView::shareDifferentScreen",{error:e})}finally{this.isSwitchingScreen=!1}}},this.toggleFullScreen=()=>{this.isFullScreen?(l(),this.isFullScreen=!1):(d(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:t}=this.meeting;this.participant.id===t.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t){if(null!=t&&this.meeting){const{self:e}=this.meeting;this.screenShareListener=({screenShareEnabled:t,screenShareTracks:e})=>{const i=t&&null!=e.video;if(a((()=>{this.screenShareEnabled=i})),i){const t=new MediaStream;t.addTrack(e.video),null!=this.videoEl&&(this.videoEl.srcObject=t,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(t),t.id===e.id?t.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var t,e,a;const s=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(e=this.meeting)||void 0===e?void 0:e.self.id),o=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),n=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return i(r,{key:"0de66f829d0426af746b72561e7470c50c703060",class:{isSelf:s}},i("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},i("video",{key:"2e56da582533ee6a8286483fa4495ff9a88453a0",ref:t=>this.videoEl=t,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:`screen-share-video-${this.participant.id}`})),i("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!s&&h()&&i("rtk-tooltip",{key:"7cd30b509e71685bb28615fd0eeb289764bc6f4b",label:o},i("rtk-button",{key:"0610dd55ad5a29cdbb77c61ed024253a70c66020",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:o},i("rtk-icon",{key:"1ea3a04938cb5836afcf171fa881916f1a63da79",icon:n,"aria-hidden":!0,tabIndex:-1})))),s&&i("div",{id:"self-message",key:"self-message"},i("h3",{key:"4758cad86ab2453cbfbf9276e9db8f4f45889e4a"},this.t("screenshare.shared")),i("div",{key:"136f80c0f74bbc9d860dfc9a5f2f04531dc9fe80",class:"actions"},null!=this.meeting&&i("rtk-button",{key:"2588174e0054805565c0ae9d3d7001d812c25d6c",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},i("rtk-icon",{key:"10de1c2c538cc069d5ea9c4a8e89699cdb06e970",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),null!=this.meeting&&i("rtk-button",{key:"916802524a950adadd39eac97660d05034840a8b",variant:"secondary",disabled:this.isSwitchingScreen,onClick:this.shareDifferentScreen},i("rtk-icon",{key:"5142a5fe580a7c900d7435e5c638bef0533a289b",icon:null!==(a=this.iconPack.share_screen_different)&&void 0!==a?a:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),i("rtk-button",{key:"6b024ca8b2b537b84862f96f35ab1e2a9832c974",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},i("rtk-icon",{key:"aef5ba226ba681c6ec6d11f0ac78c03329a88f27",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),i("slot",{key:"f21ad85d1847864f268d1fa33235467f14de2420"}))}get host(){return s(this)}static get watchers(){return{participant:[{participantChanged:0}]}}};f([p()],g.prototype,"meeting",void 0),f([p()],g.prototype,"iconPack",void 0),f([p()],g.prototype,"t",void 0),g.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}";export{g as rtk_screenshare_view}
@@ -1 +1 @@
1
- import{r as t,e as i,h as s,a as e,g as n}from"./p-gJCRRBX0.js";import{R as o}from"./p-B56IYWsZ.js";import{f as a}from"./p-vBD2htwQ.js";import{c as h,i as c,e as r}from"./p-DI7wP4CL.js";import"./p-D9EtbXLL.js";import{s as d}from"./p-C0vp-Q7v.js";import{f as l}from"./p-B91vjjSJ.js";import{S as u}from"./p-BmRffDYW.js";import"./p-CAqYddlg.js";import"./p-Daj_55_i.js";const p=2e3,g=Object.freeze({notifications:{participant_joined:!0,participant_left:!0,participant_joined_waitlist:!0,chat:!0,polls:!0,webinar:!0,tab_sync:!0,recording_started:!0,recording_stopped:!0},notification_sounds:{participant_joined:!0,participant_left:!0,chat:!0,polls:!0,webinar:!0,participant_joined_waitlist:!0},notification_duration:{participant_joined:2100,participant_left:2100,participant_joined_waitlist:4e3,chat:p,polls:p,webinar:p,tab_sync:p,recording_started:p,recording_stopped:p},participant_joined_sound_notification_limit:10,participant_chat_message_sound_notification_limit:10});var f=function(t,i,s,e){var n,o=arguments.length,a=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(n=t[h])&&(a=(o<3?n(a):o>3?n(i,s,a):n(i,s))||a);return o>3&&a&&Object.defineProperty(i,s,a),a};function m(t){return Object.keys(t).filter((i=>t[i]))}const v=class{constructor(i){t(this,i),this.permissions=g,this.enabledSounds=m(g.notification_sounds),this.config=h(),this.t=c(),this.iconPack=r,this.notifications=[],this.addStagePeersListeners=t=>{t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener)},this.removeStagePeersListeners=t=>{t.participants.joined.removeListener("participantJoined",this.participantJoinedListener),t.participants.joined.removeListener("participantLeft",this.participantLeftListener)},this.onNotification=t=>{this.add(t.detail);const i=t.detail.playSound;null!=i&&this.audio.play(i)},this.onRecordingUpdate=t=>{var i,s;"RECORDING"===t&&!1!==this.permissions.notifications.recording_started?this.add({id:"recording-started",icon:this.iconPack.recording,message:this.t("recording.started"),duration:null!==(i=this.permissions.notification_duration.recording_started)&&void 0!==i?i:p}):"STOPPING"===t&&!1!==this.permissions.notifications.recording_stopped&&this.add({id:"recording-stopped",icon:this.iconPack.stop_recording,message:this.t("recording.stopped"),duration:null!==(s=this.permissions.notification_duration.recording_stopped)&&void 0!==s?s:p})},this.paused=!1}connectedCallback(){"undefined"!=typeof document&&(null===document||void 0===document||document.addEventListener("rtkNotification",this.onNotification)),this.meetingChanged(this.meeting),this.configChanged(this.config),this.statesChanged(this.states)}clearListeners(t){var i,s,e,n,o,a,h,c;const r="LIVESTREAM"===t.meta.viewType;(r&&"ON_STAGE"===(null===(i=t.stage)||void 0===i?void 0:i.status)||!r)&&this.removeStagePeersListeners(t),this.chatUpdateListener&&(null===(s=t.chat)||void 0===s||s.removeListener("chatUpdate",this.chatUpdateListener)),this.pollUpdateListener&&(null===(e=t.polls)||void 0===e||e.removeListener("pollsUpdate",this.pollUpdateListener)),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener),this.stageRequestAccepted&&(null===(n=t.stage)||void 0===n||n.removeListener("stageRequestApproved",this.stageRequestAccepted)),this.stageRequestRejected&&(null===(o=t.stage)||void 0===o||o.removeListener("stageRequestRejected",this.stageRequestRejected)),this.newStageRequests&&(null===(a=t.stage)||void 0===a||a.removeListener("newStageRequest",this.newStageRequests)),this.stageStatusUpdateListener&&(null===(h=t.stage)||void 0===h||h.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)),null===(c=t.recording)||void 0===c||c.removeListener("recordingUpdate",this.onRecordingUpdate),clearTimeout(this.disconnectTimeout),t.self.removeListener("deviceUpdate",this.deviceUpdateListener)}disconnectedCallback(){var t;"undefined"!=typeof document&&(null===document||void 0===document||document.removeEventListener("rtkNotification",this.onNotification)),this.meeting&&(this.clearListeners(this.meeting),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.activeTabUpdateListener&&(null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)),this.peerStageStatusListener&&this.meeting.participants.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener))}meetingChanged(t,i){var s,e,n,h,c,r,u,p,g;if(clearTimeout(this.disconnectTimeout),i&&this.clearListeners(i),!t)return;const f="LIVESTREAM"===t.meta.viewType;this.audio=new o(t);const{notifications:m,notification_duration:v,notification_sounds:_}=this.permissions;if(this.participantJoinedListener=t=>{m.participant_joined&&this.add({id:`${t.id}-joined`,message:`${a(t.name)} ${this.t("notifications.joined")}`,image:t.picture,duration:v.participant_joined}),_.participant_joined&&this.canPlayParticipantJoinedSound()&&this.audio.play("joined")},this.participantLeftListener=t=>{const{socketState:{state:i}}=this.meeting.meta;m.participant_left&&"connected"!==i&&this.add({id:`${t.id}-left`,message:`${a(t.name)} ${this.t("notifications.left")}`,image:t.picture,duration:v.participant_left}),_.participant_left&&this.canPlayParticipantJoinedSound()&&this.audio.play("left")},this.waitlistedParticipantJoinedListener=t=>{if(!this.canAcceptWaitingRequests())return;const i=`${t.id}-joined-waitlist`;this.add({id:i,message:`${a(t.name)} ${this.t("notifications.requesting_to_join_meeting")}`,image:t.picture,duration:v.participant_joined_waitlist,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.participants.acceptWaitingRoomRequest(t.id),this.remove(i)}}}),_.participant_joined_waitlist&&this.canPlayParticipantJoinedSound()&&this.audio.play("message")},this.waitlistedParticipantLeftListener=t=>{this.remove(`${t.id}-joined-waitlist`)},this.chatUpdateListener=({message:i,action:s})=>{if("add"!==s)return;const e=l(i);if(null!=e){if(e.userId===t.self.userId)return;"text"===e.type&&(m.chat&&this.add({id:`message-${Math.random().toString(36)}`,icon:this.iconPack.chat,message:`${e.displayName}: ${e.message}`,duration:v.chat}),_.chat&&this.canPlayChatSound()&&this.audio.play("message"))}},this.pollUpdateListener=({polls:t,newPoll:i})=>{!1!==i&&(m.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.add({id:`poll-${Math.random().toString(36)}`,icon:this.iconPack.poll,message:`${this.t("notifications.new_poll_created_by")} ${t[t.length-1].createdBy}`,duration:v.polls}),_.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.canPlayChatSound()&&this.audio.play("message"))},this.deviceUpdateListener=({device:t,preview:i})=>{i||("audiooutput"===t.kind&&(this.audio.setDevice(t.deviceId),this.remove("speaker-switched"),this.add({id:"speaker-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.iconPack.speaker,duration:5e3})),"videoinput"===t.kind&&(this.remove("camera-switched"),this.add({id:"camera-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.videoEnabled?this.iconPack.video_on:this.iconPack.video_off,iconVariant:this.meeting.self.videoEnabled?"primary":"danger",duration:5e3})),"audioinput"===t.kind&&(this.remove("mic-switched"),this.add({id:"mic-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off,iconVariant:this.meeting.self.audioEnabled?"primary":"danger",duration:5e3})))},this.socketConnectionUpdateListener=({state:t,reconnectionAttempt:i,reconnected:s})=>{switch(t){case"connected":this.remove("socket"),s&&this.add({id:"socket",icon:this.iconPack.wifi,message:this.t("network.restored"),duration:3e3});break;case"disconnected":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.reconnecting")});break;case"reconnecting":i>=6?(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.disconnected"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})):i>=4&&(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.delay_extended")}));break;case"failed":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.leaving"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})}},this.activeTabUpdateListener=i=>{if(m.tab_sync)switch(i.type){case"plugin":const s=t.plugins.active.toArray().find((t=>t.id==i.id));null!=s&&this.add({id:"activeTab",message:`${this.t("notifications.plugin_switched_to")} ${s.name}`,duration:v.participant_joined});break;case"screenshare":const e=t.participants.joined.toArray().filter((t=>t.screenShareEnabled)).find((t=>t.id==i.id));null!=e&&this.add({id:"spotlight",message:`Now watching ${e.name}'s screen`,duration:v.webinar})}},this.peerStageStatusListener=t=>{"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(this.add({id:`stage-request-${t.id}`,message:`${t.name} ${this.t("notifications.requested_to_join_stage")}`,duration:v.webinar,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.stage.grantAccess([t.userId]),this.remove(`stage-request-${t.id}`)}}}),_.webinar&&this.audio.play("joined")),"ON_STAGE"===t.stageStatus&&(this.add({id:`stage-joined-${t.id}`,message:`${t.name} ${this.t("notifications.joined_stage")}`,duration:v.webinar}),_.webinar&&this.audio.play("joined"))},this.stageRequestAccepted=()=>{this.add({id:"stage-request-accepted",message:this.t("notifications.request_to_join_accepted"),duration:3e3})},this.stageRequestRejected=()=>{this.add({id:"stage-request-rejected",message:this.t("notifications.request_to_join_rejected"),duration:3e3})},this.newStageRequests=({count:t})=>{this.add({id:"new-stage-request",message:`You have ${t<0?"new stage":`${t} pending`} request${1===t?"":"s"}`,duration:3e3})},this.stageStatusUpdateListener=i=>{"ON_STAGE"===i?this.addStagePeersListeners(t):this.removeStagePeersListeners(t)},!d(t)&&(null===(s=t.chat)||void 0===s||s.addListener("chatUpdate",this.chatUpdateListener)),"CHAT"===(null===(e=t.self.config.viewType)||void 0===e?void 0:e.toString()))return;const k=t.self.getCurrentDevices();null!=k.speaker&&this.audio.setDevice(k.speaker.deviceId),f?null===(n=t.stage)||void 0===n||n.on("stageStatusUpdate",this.stageStatusUpdateListener):this.addStagePeersListeners(t),this.canAcceptWaitingRequests()&&(t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),null===(h=t.polls)||void 0===h||h.addListener("pollsUpdate",this.pollUpdateListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),null===(c=t.meta)||void 0===c||c.addListener("activeTabUpdate",this.activeTabUpdateListener),null===(r=t.recording)||void 0===r||r.addListener("recordingUpdate",this.onRecordingUpdate),null===(u=t.stage)||void 0===u||u.addListener("stageRequestApproved",this.stageRequestAccepted),null===(p=t.stage)||void 0===p||p.addListener("stageRequestRejected",this.stageRequestRejected),t.self.permissions.stageEnabled&&t.self.permissions.acceptStageRequests&&(null===(g=t.stage)||void 0===g||g.addListener("newStageRequest",this.newStageRequests))}configChanged(t){null!=t&&null!=(null==t?void 0:t.config)&&(this.permissions=function(t){const i=Object.assign({},g);return null==t||(Object.assign(i.notification_sounds,t.notification_sounds),Object.assign(i.notifications,t.notifications),Object.assign(i.notification_duration,t.notification_duration),i.participant_chat_message_sound_notification_limit=t.participant_chat_message_sound_notification_limit,i.participant_joined_sound_notification_limit=t.participant_joined_sound_notification_limit),i}(t.config),this.enabledSounds=m(this.permissions.notification_sounds))}statesChanged(t){var i;if(null!=t){const s=!(null===(i=null==t?void 0:t.prefs)||void 0===i?void 0:i.muteNotificationSounds);for(const t of this.enabledSounds)t in this.permissions.notification_sounds&&(this.permissions.notification_sounds[t]=s)}}apiErrorListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:p,icon:this.iconPack.warning})}sendNotificationListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:p})}add(t){"visible"===document.visibilityState&&this.notifications.length<5&&(this.notifications=[...this.notifications,t])}remove(t){this.notifications=this.notifications.filter((i=>i.id!==t))}handleDismiss(t){t.stopPropagation();const s=t.detail,e=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==e||e.classList.add("exit"),setTimeout((()=>{i((()=>{this.remove(s)}))}),400)}canPlayParticipantJoinedSound(){return null==this.permissions.participant_joined_sound_notification_limit||this.permissions.participant_joined_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_joined_sound_notification_limit}canPlayChatSound(){return null==this.permissions.participant_chat_message_sound_notification_limit||this.permissions.participant_chat_message_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_chat_message_sound_notification_limit}canAcceptWaitingRequests(){return this.permissions.notifications.participant_joined_waitlist&&this.meeting.self.permissions.acceptWaitingRequests}render(){if(this.meeting)return s(e,null,s("div",{onMouseEnter:()=>this.paused=!0,onFocusin:()=>this.paused=!0,onMouseLeave:()=>this.paused=!1,onFocusout:()=>this.paused=!1},this.notifications.map((t=>s("rtk-notification",{size:this.size,key:t.id,"data-id":t.id,notification:t,onRtkNotificationDismiss:t=>this.handleDismiss(t),iconPack:this.iconPack,paused:this.paused,t:this.t})))))}get host(){return n(this)}static get watchers(){return{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}}};f([u()],v.prototype,"meeting",void 0),f([u()],v.prototype,"states",void 0),f([u()],v.prototype,"config",void 0),f([u()],v.prototype,"t",void 0),f([u()],v.prototype,"iconPack",void 0),v.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;z-index:100}rtk-notification{margin-top:var(--rtk-space-2, 8px)}";export{v as rtk_notifications}
1
+ import{r as t,e as i,h as s,a as e,g as n}from"./p-gJCRRBX0.js";import{R as o}from"./p-B56IYWsZ.js";import{f as a}from"./p-vBD2htwQ.js";import{c as h,i as c,e as r}from"./p-BWYsSVnv.js";import"./p-D9EtbXLL.js";import{s as d}from"./p-C0vp-Q7v.js";import{f as l}from"./p-J7ILCEoQ.js";import{S as u}from"./p-C2mieCrY.js";import"./p-CAqYddlg.js";import"./p-Daj_55_i.js";const p=2e3,g=Object.freeze({notifications:{participant_joined:!0,participant_left:!0,participant_joined_waitlist:!0,chat:!0,polls:!0,webinar:!0,tab_sync:!0,recording_started:!0,recording_stopped:!0},notification_sounds:{participant_joined:!0,participant_left:!0,chat:!0,polls:!0,webinar:!0,participant_joined_waitlist:!0},notification_duration:{participant_joined:2100,participant_left:2100,participant_joined_waitlist:4e3,chat:p,polls:p,webinar:p,tab_sync:p,recording_started:p,recording_stopped:p},participant_joined_sound_notification_limit:10,participant_chat_message_sound_notification_limit:10});var m=function(t,i,s,e){var n,o=arguments.length,a=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(n=t[h])&&(a=(o<3?n(a):o>3?n(i,s,a):n(i,s))||a);return o>3&&a&&Object.defineProperty(i,s,a),a};function f(t){return Object.keys(t).filter((i=>t[i]))}const v=class{constructor(i){t(this,i),this.permissions=g,this.enabledSounds=f(g.notification_sounds),this.config=h(),this.t=c(),this.iconPack=r,this.notifications=[],this.addStagePeersListeners=t=>{t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener)},this.removeStagePeersListeners=t=>{t.participants.joined.removeListener("participantJoined",this.participantJoinedListener),t.participants.joined.removeListener("participantLeft",this.participantLeftListener)},this.onNotification=t=>{this.add(t.detail);const i=t.detail.playSound;null!=i&&this.audio.play(i)},this.onRecordingUpdate=t=>{var i,s;"RECORDING"===t&&!1!==this.permissions.notifications.recording_started?this.add({id:"recording-started",icon:this.iconPack.recording,message:this.t("recording.started"),duration:null!==(i=this.permissions.notification_duration.recording_started)&&void 0!==i?i:p}):"STOPPING"===t&&!1!==this.permissions.notifications.recording_stopped&&this.add({id:"recording-stopped",icon:this.iconPack.stop_recording,message:this.t("recording.stopped"),duration:null!==(s=this.permissions.notification_duration.recording_stopped)&&void 0!==s?s:p})},this.paused=!1}connectedCallback(){"undefined"!=typeof document&&(null===document||void 0===document||document.addEventListener("rtkNotification",this.onNotification)),this.meetingChanged(this.meeting),this.configChanged(this.config),this.statesChanged(this.states)}clearListeners(t){var i,s,e,n,o,a,h,c;const r="LIVESTREAM"===t.meta.viewType;(r&&"ON_STAGE"===(null===(i=t.stage)||void 0===i?void 0:i.status)||!r)&&this.removeStagePeersListeners(t),this.chatUpdateListener&&(null===(s=t.chat)||void 0===s||s.removeListener("chatUpdate",this.chatUpdateListener)),this.pollUpdateListener&&(null===(e=t.polls)||void 0===e||e.removeListener("pollsUpdate",this.pollUpdateListener)),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener),this.stageRequestAccepted&&(null===(n=t.stage)||void 0===n||n.removeListener("stageRequestApproved",this.stageRequestAccepted)),this.stageRequestRejected&&(null===(o=t.stage)||void 0===o||o.removeListener("stageRequestRejected",this.stageRequestRejected)),this.newStageRequests&&(null===(a=t.stage)||void 0===a||a.removeListener("newStageRequest",this.newStageRequests)),this.stageStatusUpdateListener&&(null===(h=t.stage)||void 0===h||h.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)),null===(c=t.recording)||void 0===c||c.removeListener("recordingUpdate",this.onRecordingUpdate),clearTimeout(this.disconnectTimeout),t.self.removeListener("deviceUpdate",this.deviceUpdateListener)}disconnectedCallback(){var t;"undefined"!=typeof document&&(null===document||void 0===document||document.removeEventListener("rtkNotification",this.onNotification)),this.meeting&&(this.clearListeners(this.meeting),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.activeTabUpdateListener&&(null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)),this.peerStageStatusListener&&this.meeting.participants.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener))}meetingChanged(t,i){var s,e,n,h,c,r,u,p,g;if(clearTimeout(this.disconnectTimeout),i&&this.clearListeners(i),!t)return;const m="LIVESTREAM"===t.meta.viewType;this.audio=new o(t);const{notifications:f,notification_duration:v,notification_sounds:_}=this.permissions;if(this.participantJoinedListener=t=>{f.participant_joined&&this.add({id:`${t.id}-joined`,message:`${a(t.name)} ${this.t("notifications.joined")}`,image:t.picture,duration:v.participant_joined}),_.participant_joined&&this.canPlayParticipantJoinedSound()&&this.audio.play("joined")},this.participantLeftListener=t=>{const{socketState:{state:i}}=this.meeting.meta;f.participant_left&&"connected"!==i&&this.add({id:`${t.id}-left`,message:`${a(t.name)} ${this.t("notifications.left")}`,image:t.picture,duration:v.participant_left}),_.participant_left&&this.canPlayParticipantJoinedSound()&&this.audio.play("left")},this.waitlistedParticipantJoinedListener=t=>{if(!this.canAcceptWaitingRequests())return;const i=`${t.id}-joined-waitlist`;this.add({id:i,message:`${a(t.name)} ${this.t("notifications.requesting_to_join_meeting")}`,image:t.picture,duration:v.participant_joined_waitlist,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.participants.acceptWaitingRoomRequest(t.id),this.remove(i)}}}),_.participant_joined_waitlist&&this.canPlayParticipantJoinedSound()&&this.audio.play("message")},this.waitlistedParticipantLeftListener=t=>{this.remove(`${t.id}-joined-waitlist`)},this.chatUpdateListener=({message:i,action:s})=>{if("add"!==s)return;const e=l(i);if(null!=e){if(e.userId===t.self.userId)return;"text"===e.type&&(f.chat&&this.add({id:`message-${Math.random().toString(36)}`,icon:this.iconPack.chat,message:`${e.displayName}: ${e.message}`,duration:v.chat}),_.chat&&this.canPlayChatSound()&&this.audio.play("message"))}},this.pollUpdateListener=({polls:t,newPoll:i})=>{!1!==i&&(f.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.add({id:`poll-${Math.random().toString(36)}`,icon:this.iconPack.poll,message:`${this.t("notifications.new_poll_created_by")} ${t[t.length-1].createdBy}`,duration:v.polls}),_.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.canPlayChatSound()&&this.audio.play("message"))},this.deviceUpdateListener=({device:t,preview:i})=>{i||("audiooutput"===t.kind&&(this.audio.setDevice(t.deviceId),this.remove("speaker-switched"),this.add({id:"speaker-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.iconPack.speaker,duration:5e3})),"videoinput"===t.kind&&(this.remove("camera-switched"),this.add({id:"camera-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.videoEnabled?this.iconPack.video_on:this.iconPack.video_off,iconVariant:this.meeting.self.videoEnabled?"primary":"danger",duration:5e3})),"audioinput"===t.kind&&(this.remove("mic-switched"),this.add({id:"mic-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off,iconVariant:this.meeting.self.audioEnabled?"primary":"danger",duration:5e3})))},this.socketConnectionUpdateListener=({state:t,reconnectionAttempt:i,reconnected:s})=>{switch(t){case"connected":this.remove("socket"),s&&this.add({id:"socket",icon:this.iconPack.wifi,message:this.t("network.restored"),duration:3e3});break;case"disconnected":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.reconnecting")});break;case"reconnecting":i>=6?(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.disconnected"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})):i>=4&&(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.delay_extended")}));break;case"failed":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.leaving"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})}},this.activeTabUpdateListener=i=>{if(f.tab_sync)switch(i.type){case"plugin":const s=t.plugins.active.toArray().find((t=>t.id==i.id));null!=s&&this.add({id:"activeTab",message:`${this.t("notifications.plugin_switched_to")} ${s.name}`,duration:v.participant_joined});break;case"screenshare":const e=t.participants.joined.toArray().filter((t=>t.screenShareEnabled)).find((t=>t.id==i.id));null!=e&&this.add({id:"spotlight",message:`Now watching ${e.name}'s screen`,duration:v.webinar})}},this.peerStageStatusListener=t=>{"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(this.add({id:`stage-request-${t.id}`,message:`${t.name} ${this.t("notifications.requested_to_join_stage")}`,duration:v.webinar,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.stage.grantAccess([t.userId]),this.remove(`stage-request-${t.id}`)}}}),_.webinar&&this.audio.play("joined")),"ON_STAGE"===t.stageStatus&&(this.add({id:`stage-joined-${t.id}`,message:`${t.name} ${this.t("notifications.joined_stage")}`,duration:v.webinar}),_.webinar&&this.audio.play("joined"))},this.stageRequestAccepted=()=>{this.add({id:"stage-request-accepted",message:this.t("notifications.request_to_join_accepted"),duration:3e3})},this.stageRequestRejected=()=>{this.add({id:"stage-request-rejected",message:this.t("notifications.request_to_join_rejected"),duration:3e3})},this.newStageRequests=({count:t})=>{this.add({id:"new-stage-request",message:`You have ${t<0?"new stage":`${t} pending`} request${1===t?"":"s"}`,duration:3e3})},this.stageStatusUpdateListener=i=>{"ON_STAGE"===i?this.addStagePeersListeners(t):this.removeStagePeersListeners(t)},!d(t)&&(null===(s=t.chat)||void 0===s||s.addListener("chatUpdate",this.chatUpdateListener)),"CHAT"===(null===(e=t.self.config.viewType)||void 0===e?void 0:e.toString()))return;const k=t.self.getCurrentDevices();null!=k.speaker&&this.audio.setDevice(k.speaker.deviceId),m?null===(n=t.stage)||void 0===n||n.on("stageStatusUpdate",this.stageStatusUpdateListener):this.addStagePeersListeners(t),this.canAcceptWaitingRequests()&&(t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),null===(h=t.polls)||void 0===h||h.addListener("pollsUpdate",this.pollUpdateListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),null===(c=t.meta)||void 0===c||c.addListener("activeTabUpdate",this.activeTabUpdateListener),null===(r=t.recording)||void 0===r||r.addListener("recordingUpdate",this.onRecordingUpdate),null===(u=t.stage)||void 0===u||u.addListener("stageRequestApproved",this.stageRequestAccepted),null===(p=t.stage)||void 0===p||p.addListener("stageRequestRejected",this.stageRequestRejected),t.self.permissions.stageEnabled&&t.self.permissions.acceptStageRequests&&(null===(g=t.stage)||void 0===g||g.addListener("newStageRequest",this.newStageRequests))}configChanged(t){null!=t&&null!=(null==t?void 0:t.config)&&(this.permissions=function(t){const i=Object.assign({},g);return null==t||(Object.assign(i.notification_sounds,t.notification_sounds),Object.assign(i.notifications,t.notifications),Object.assign(i.notification_duration,t.notification_duration),i.participant_chat_message_sound_notification_limit=t.participant_chat_message_sound_notification_limit,i.participant_joined_sound_notification_limit=t.participant_joined_sound_notification_limit),i}(t.config),this.enabledSounds=f(this.permissions.notification_sounds))}statesChanged(t){var i;if(null!=t){const s=!(null===(i=null==t?void 0:t.prefs)||void 0===i?void 0:i.muteNotificationSounds);for(const t of this.enabledSounds)t in this.permissions.notification_sounds&&(this.permissions.notification_sounds[t]=s)}}apiErrorListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:p,icon:this.iconPack.warning})}sendNotificationListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:p})}add(t){"visible"===document.visibilityState&&this.notifications.length<5&&(this.notifications=[...this.notifications,t])}remove(t){this.notifications=this.notifications.filter((i=>i.id!==t))}handleDismiss(t){t.stopPropagation();const s=t.detail,e=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==e||e.classList.add("exit"),setTimeout((()=>{i((()=>{this.remove(s)}))}),400)}canPlayParticipantJoinedSound(){return null==this.permissions.participant_joined_sound_notification_limit||this.permissions.participant_joined_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_joined_sound_notification_limit}canPlayChatSound(){return null==this.permissions.participant_chat_message_sound_notification_limit||this.permissions.participant_chat_message_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_chat_message_sound_notification_limit}canAcceptWaitingRequests(){return this.permissions.notifications.participant_joined_waitlist&&this.meeting.self.permissions.acceptWaitingRequests}render(){if(this.meeting)return s(e,null,s("div",{onMouseEnter:()=>this.paused=!0,onFocusin:()=>this.paused=!0,onMouseLeave:()=>this.paused=!1,onFocusout:()=>this.paused=!1},this.notifications.map((t=>s("rtk-notification",{size:this.size,key:t.id,"data-id":t.id,notification:t,onRtkNotificationDismiss:t=>this.handleDismiss(t),iconPack:this.iconPack,paused:this.paused,t:this.t})))))}get host(){return n(this)}static get watchers(){return{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}}};m([u()],v.prototype,"meeting",void 0),m([u()],v.prototype,"states",void 0),m([u()],v.prototype,"config",void 0),m([u()],v.prototype,"t",void 0),m([u()],v.prototype,"iconPack",void 0),v.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;z-index:100}rtk-notification{margin-top:var(--rtk-space-2, 8px)}";export{v as rtk_notifications}
@@ -1 +1 @@
1
- import{r,d as t,h as o,a}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e,i as s}from"./p-DI7wP4CL.js";import{g as c}from"./p-B91vjjSJ.js";import{S as i}from"./p-BmRffDYW.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-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e,i as s}from"./p-BWYsSVnv.js";import{g as c}from"./p-J7ILCEoQ.js";import{S as i}from"./p-C2mieCrY.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,d as r,h as e,a as o}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as c,i as a}from"./p-DI7wP4CL.js";import{S as i}from"./p-BmRffDYW.js";import"./p-Daj_55_i.js";var s=function(t,r,e,o){var c,a=arguments.length,i=a<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(c=t[s])&&(i=(a<3?c(i):a>3?c(r,e,i):c(r,e))||i);return a>3&&i&&Object.defineProperty(r,e,i),i};const p=class{constructor(e){t(this,e),this.onDropCallback=r(this,"dropCallback",7),this.iconPack=c,this.t=a(),this.dropzoneActivated=!1}connectedCallback(){if(!this.hostEl)throw new Error("hostEl prop is required");this.hostEl.addEventListener("dragover",(t=>{t.preventDefault(),this.dropzoneActivated=!0})),this.hostEl.addEventListener("dragleave",(()=>{this.dropzoneActivated=!1})),this.hostEl.addEventListener("drop",(t=>{t.preventDefault(),this.dropzoneActivated=!1,this.onDropCallback.emit(t)}))}render(){return e(o,{key:"31d5ca1c0b9612c257ca9fb2233c6c1d2a4d049f"},e("div",{key:"697c79cbd3c736b7efb890fddfca94c393b48d08",id:"dropzone",class:{active:this.dropzoneActivated},part:"dropzone"},e("rtk-icon",{key:"3fea26663f603965ef5dfc7d548cdcfc892bbc90",icon:this.iconPack.attach}),e("p",{key:"cab674da2e590d75ad20ca66661753cb52771925"},this.t("chat.send_attachment"))))}};s([i()],p.prototype,"iconPack",void 0),s([i()],p.prototype,"t",void 0),p.style="#dropzone{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;display:none;flex-direction:column;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}#dropzone.active{display:flex;animation:0.2s slide-up ease-in}";export{p as rtk_file_dropzone}
1
+ import{r as t,d as r,h as e,a as o}from"./p-gJCRRBX0.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as c,i as a}from"./p-BWYsSVnv.js";import{S as i}from"./p-C2mieCrY.js";import"./p-Daj_55_i.js";var s=function(t,r,e,o){var c,a=arguments.length,i=a<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,r,e,o);else for(var s=t.length-1;s>=0;s--)(c=t[s])&&(i=(a<3?c(i):a>3?c(r,e,i):c(r,e))||i);return a>3&&i&&Object.defineProperty(r,e,i),i};const p=class{constructor(e){t(this,e),this.onDropCallback=r(this,"dropCallback",7),this.iconPack=c,this.t=a(),this.dropzoneActivated=!1}connectedCallback(){if(!this.hostEl)throw new Error("hostEl prop is required");this.hostEl.addEventListener("dragover",(t=>{t.preventDefault(),this.dropzoneActivated=!0})),this.hostEl.addEventListener("dragleave",(()=>{this.dropzoneActivated=!1})),this.hostEl.addEventListener("drop",(t=>{t.preventDefault(),this.dropzoneActivated=!1,this.onDropCallback.emit(t)}))}render(){return e(o,{key:"31d5ca1c0b9612c257ca9fb2233c6c1d2a4d049f"},e("div",{key:"697c79cbd3c736b7efb890fddfca94c393b48d08",id:"dropzone",class:{active:this.dropzoneActivated},part:"dropzone"},e("rtk-icon",{key:"3fea26663f603965ef5dfc7d548cdcfc892bbc90",icon:this.iconPack.attach}),e("p",{key:"cab674da2e590d75ad20ca66661753cb52771925"},this.t("chat.send_attachment"))))}};s([i()],p.prototype,"iconPack",void 0),s([i()],p.prototype,"t",void 0),p.style="#dropzone{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;display:none;flex-direction:column;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}#dropzone.active{display:flex;animation:0.2s slide-up ease-in}";export{p as rtk_file_dropzone}
@@ -1 +1 @@
1
- import{r as t,d as a,h as e,a as r}from"./p-gJCRRBX0.js";import{i as s}from"./p-DI7wP4CL.js";import{S as o}from"./p-BmRffDYW.js";const i=class{constructor(e){t(this,e),this.dismiss=a(this,"rtkTranscriptDismiss",7),this.t=s()}connectedCallback(){this.transcriptChanged(this.transcript)}disconnectedCallback(){clearTimeout(this.timeout)}transcriptChanged(t,a){if((null==a?void 0:a.renderedId)===t.renderedId&&(null==a?void 0:a.transcript)===t.transcript)return;if(clearTimeout(this.timeout),!(null==t?void 0:t.name)||!(null==t?void 0:t.transcript))return;const{id:e,renderedId:r}=t;this.timeout=setTimeout((()=>{this.dismiss.emit({id:e,renderedId:r})}),1e4)}render(){return e(r,{key:"c9f584259f21f759133ea5d6f4e07bac1524b5fb"},e("div",{key:"d25914df1db61994cfe8a5f0fc42af79c2823ece",class:"ctr"},e("p",{key:"06fefba0bca0a253a9140a9f2a86c2230b83f049",class:"message"},e("span",{key:"5f833c6901ab4f246e06d8a82c47a3d49616e44c",class:"name"},this.transcript.name),": ",this.transcript.transcript)))}static get watchers(){return{transcript:[{transcriptChanged:0}]}}};(function(t,a,e,r){var s,o=arguments.length,i=o<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,a,e,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(o<3?s(i):o>3?s(a,e,i):s(a,e))||i);o>3&&i&&Object.defineProperty(a,e,i)})([o()],i.prototype,"t",void 0),i.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{pointer-events:none;display:block;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;justify-content:center;vertical-align:middle;animation:show 0.4s ease;transition:0.4s;z-index:5;width:100%}.ctr{box-sizing:border-box;display:inline-flex;height:100%;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-shadow:var(--tw-shadow-colored);pointer-events:auto;padding:var(--rtk-space-3, 12px);overflow:auto;max-width:50%}.message{margin:var(--rtk-space-0, 0px);display:inline-block;justify-content:center;max-width:100%;text-wrap:wrap;line-height:1.5rem}.message .name{font-weight:bold}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateY(120px)}100%{opacity:1;transform:translateY(0px)}}@keyframes exit{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-120px)}}:host([size='sm']){font-size:14px}";export{i as rtk_transcript}
1
+ import{r as t,d as e,h as a,a as r}from"./p-gJCRRBX0.js";import{i as s}from"./p-BWYsSVnv.js";import{S as o}from"./p-C2mieCrY.js";const i=class{constructor(a){t(this,a),this.dismiss=e(this,"rtkTranscriptDismiss",7),this.t=s()}connectedCallback(){this.transcriptChanged(this.transcript)}disconnectedCallback(){clearTimeout(this.timeout)}transcriptChanged(t,e){if((null==e?void 0:e.renderedId)===t.renderedId&&(null==e?void 0:e.transcript)===t.transcript)return;if(clearTimeout(this.timeout),!(null==t?void 0:t.name)||!(null==t?void 0:t.transcript))return;const{id:a,renderedId:r}=t;this.timeout=setTimeout((()=>{this.dismiss.emit({id:a,renderedId:r})}),1e4)}render(){return a(r,{key:"fdb8aba3206821e1ea2a740c4aa445743af78163"},a("div",{key:"2dab88ac6c2e6ad3456e0937b554dc5ed1d3fc3b",class:"ctr"},a("p",{key:"a6f800abc99d21628bece07f8439e3bd08b73707",class:"message"},a("span",{key:"582a269bf085439dc95c0c4f95e0de2dc9d515b1",class:"name"},this.transcript.name),": ",this.transcript.transcript)))}static get watchers(){return{transcript:[{transcriptChanged:0}]}}};(function(t,e,a,r){var s,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(o<3?s(i):o>3?s(e,a,i):s(e,a))||i);o>3&&i&&Object.defineProperty(e,a,i)})([o()],i.prototype,"t",void 0),i.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{pointer-events:none;display:block;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;justify-content:center;vertical-align:middle;animation:show 0.4s ease;transition:0.4s;z-index:5;width:100%}.ctr{box-sizing:border-box;display:inline-flex;height:100%;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-shadow:var(--tw-shadow-colored);pointer-events:auto;padding:var(--rtk-space-3, 12px);overflow:auto;max-width:50%}.message{margin:var(--rtk-space-0, 0px);display:inline-block;justify-content:center;max-width:100%;text-wrap:wrap;line-height:1.5rem}.message .name{font-weight:bold}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateY(120px)}100%{opacity:1;transform:translateY(0px)}}@keyframes exit{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-120px)}}:host([size='sm']){font-size:14px}";export{i as rtk_transcript}
@@ -1 +1 @@
1
- import{r as t,h as i,a as o}from"./p-gJCRRBX0.js";import{c as n,i as r}from"./p-DI7wP4CL.js";import{S as e}from"./p-BmRffDYW.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Daj_55_i.js";var s=function(t,i,o,n){var r,e=arguments.length,s=e<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(e<3?r(s):e>3?r(i,o,s):r(i,o))||s);return e>3&&s&&Object.defineProperty(i,o,s),s};const l=class{constructor(i){t(this,i),this.config=n(),this.t=r()}connectedCallback(){this.configChanged(this.config),this.meetingChanged(this.meeting)}configChanged(t){var i;if(null!=t){const o=null===(i=null==t?void 0:t.designTokens)||void 0===i?void 0:i.logo;null!=o&&null==this.logoUrl&&(this.logoUrl=o)}}meetingChanged(t){var i,o,n,r;if(null!=t){const e=null===(r=null===(n=null===(o=null===(i=t.self)||void 0===i?void 0:i.config)||void 0===o?void 0:o.header)||void 0===n?void 0:n.elements)||void 0===r?void 0:r.logo;null!=e&&null==this.logoUrl&&(this.logoUrl=e)}}render(){if(!this.logoUrl||""===this.logoUrl)return null;const t=this.logoUrl,n=this.t("logo");return i(o,{class:"loaded"},i("img",{src:t,alt:n}))}static get watchers(){return{config:[{configChanged:0}],meeting:[{meetingChanged:0}]}}};s([e()],l.prototype,"config",void 0),s([e()],l.prototype,"meeting",void 0),s([e()],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:flex;flex-direction:column;align-items:center;justify-content:center;color:rgb(var(--rtk-colors-text-1000, 255 255 255));height:100%;width:auto}svg,img{height:100%;width:auto}.brand-color{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}";export{l as rtk_logo}
1
+ import{r as t,h as i,a as o}from"./p-gJCRRBX0.js";import{c as n,i as r}from"./p-BWYsSVnv.js";import{S as e}from"./p-C2mieCrY.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Daj_55_i.js";var s=function(t,i,o,n){var r,e=arguments.length,s=e<3?i:null===n?n=Object.getOwnPropertyDescriptor(i,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,o,n);else for(var l=t.length-1;l>=0;l--)(r=t[l])&&(s=(e<3?r(s):e>3?r(i,o,s):r(i,o))||s);return e>3&&s&&Object.defineProperty(i,o,s),s};const l=class{constructor(i){t(this,i),this.config=n(),this.t=r()}connectedCallback(){this.configChanged(this.config),this.meetingChanged(this.meeting)}configChanged(t){var i;if(null!=t){const o=null===(i=null==t?void 0:t.designTokens)||void 0===i?void 0:i.logo;null!=o&&null==this.logoUrl&&(this.logoUrl=o)}}meetingChanged(t){var i,o,n,r;if(null!=t){const e=null===(r=null===(n=null===(o=null===(i=t.self)||void 0===i?void 0:i.config)||void 0===o?void 0:o.header)||void 0===n?void 0:n.elements)||void 0===r?void 0:r.logo;null!=e&&null==this.logoUrl&&(this.logoUrl=e)}}render(){if(!this.logoUrl||""===this.logoUrl)return null;const t=this.logoUrl,n=this.t("logo");return i(o,{class:"loaded"},i("img",{src:t,alt:n}))}static get watchers(){return{config:[{configChanged:0}],meeting:[{meetingChanged:0}]}}};s([e()],l.prototype,"config",void 0),s([e()],l.prototype,"meeting",void 0),s([e()],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:flex;flex-direction:column;align-items:center;justify-content:center;color:rgb(var(--rtk-colors-text-1000, 255 255 255));height:100%;width:auto}svg,img{height:100%;width:auto}.brand-color{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}";export{l as rtk_logo}
@@ -1 +1 @@
1
- import{r as o,h as t,a as r}from"./p-gJCRRBX0.js";import{S as a}from"./p-BmRffDYW.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e}from"./p-DI7wP4CL.js";import"./p-Daj_55_i.js";const i=class{constructor(t){o(this,t),this.iconPack=e}render(){return t(r,{key:"ff8e44d0644f3a81e71ec3595f109c396effd80e"},t("div",{key:"9b07fcd50ec2050f65008ad447b42fe0a2431fba",class:"tooltip-container"},t("rtk-icon",{key:"09393761a1ee443f54d08034c451397adf05c0a2",icon:this.iconPack.info,size:"sm"}),t("div",{key:"edcc65636e3888864a4f619b34929a494a748b43",class:"tooltip"},t("slot",{key:"298db1c52802862d8d1da4a3b9cfc33e3695163d",name:"tootlip-text"}))))}};(function(o,t,r,a){var e,i=arguments.length,p=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(o,t,r,a);else for(var c=o.length-1;c>=0;c--)(e=o[c])&&(p=(i<3?e(p):i>3?e(t,r,p):e(t,r))||p);i>3&&p&&Object.defineProperty(t,r,p)})([a()],i.prototype,"iconPack",void 0),i.style=":host{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer}.tooltip-container{position:relative;display:flex;flex-direction:row;align-items:center}.tooltip-container rtk-icon{cursor:pointer;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.tooltip-container rtk-icon:hover+.tooltip{display:flex !important}.tooltip{position:absolute;margin-left:var(--rtk-space-2, 8px);display:none !important;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));z-index:50;display:flex;min-width:var(--rtk-space-60, 240px);flex-direction:column;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);left:14px}";export{i as rtk_information_tooltip}
1
+ import{r as o,h as t,a as r}from"./p-gJCRRBX0.js";import{S as a}from"./p-C2mieCrY.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e}from"./p-BWYsSVnv.js";import"./p-Daj_55_i.js";const i=class{constructor(t){o(this,t),this.iconPack=e}render(){return t(r,{key:"ff8e44d0644f3a81e71ec3595f109c396effd80e"},t("div",{key:"9b07fcd50ec2050f65008ad447b42fe0a2431fba",class:"tooltip-container"},t("rtk-icon",{key:"09393761a1ee443f54d08034c451397adf05c0a2",icon:this.iconPack.info,size:"sm"}),t("div",{key:"edcc65636e3888864a4f619b34929a494a748b43",class:"tooltip"},t("slot",{key:"298db1c52802862d8d1da4a3b9cfc33e3695163d",name:"tootlip-text"}))))}};(function(o,t,r,a){var e,i=arguments.length,p=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(o,t,r,a);else for(var c=o.length-1;c>=0;c--)(e=o[c])&&(p=(i<3?e(p):i>3?e(t,r,p):e(t,r))||p);i>3&&p&&Object.defineProperty(t,r,p)})([a()],i.prototype,"iconPack",void 0),i.style=":host{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer}.tooltip-container{position:relative;display:flex;flex-direction:row;align-items:center}.tooltip-container rtk-icon{cursor:pointer;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.tooltip-container rtk-icon:hover+.tooltip{display:flex !important}.tooltip{position:absolute;margin-left:var(--rtk-space-2, 8px);display:none !important;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));z-index:50;display:flex;min-width:var(--rtk-space-60, 240px);flex-direction:column;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);left:14px}";export{i as rtk_information_tooltip}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{c as a,e as n,i as r}from"./p-DI7wP4CL.js";import{d as h}from"./p-t72veIFj.js";import{R as o}from"./p-CTFO-5XH.js";import{a as p}from"./p-C0vp-Q7v.js";import{S as c}from"./p-BmRffDYW.js";import{d as l}from"./p-CmmyVCoN.js";import"./p-BFTU3MAI.js";var d=function(t,i,s,e){var a,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(r=(n<3?a(r):n>3?a(i,s,r):a(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const g=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=a(),this.iconPack=n,this.t=r(),this.gridSize=l,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{this.meeting&&this.updateActiveParticipants()},this.refreshParticipants=h((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=p(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(!t)return;this.refreshParticipants.cancel(),this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:a}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==a||a.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.refreshParticipants),e.active.removeListener("participantJoined",this.refreshParticipants),e.active.removeListener("participantsUpdate",this.refreshParticipants),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,a,n;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:r,plugins:h,stage:o}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...r.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...r.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=r.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==h?void 0:h.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||"ALLOWED"===p.canProduceAudio||"ALLOWED"===p.canProduceVideo||"ALLOWED"===p.canProduceScreenshare,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==o||o.addListener("stageStatusUpdate",this.stageStatusListener),null==h||h.all.addListener("stateUpdate",this.onPluginStateUpdate),r.addListener("viewModeChanged",this.onViewModeChanged),r.active.addListener("participantLeft",this.refreshParticipants),null===(a=null==r?void 0:r.joined)||void 0===a||a.on("stageStatusUpdate",this.peerStageStatusListener),r.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),r.active.addListener("participantJoined",this.refreshParticipants),r.active.addListener("participantsUpdate",this.refreshParticipants),r.pinned.addListener("participantJoined",this.onParticipantPinned),r.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(n=t.stage)||void 0===n?void 0:n.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!this.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),this.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!this.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),this.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!this.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),this.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),...!["ACTIVE_GRID","MANUAL"].includes(s.viewMode)||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){var t,i,a,n;const r={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};if(this.invalidRoomStates.includes(this.roomState))return s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),s("h3",null,this.t("disconnected")),s("p",null,this.t("disconnected.description"))));if("disconnected"===this.roomState){const r=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.mediaState;if("connected"!==(null===(a=null==r?void 0:r.send)||void 0===a?void 0:a.state)||"connected"!==(null===(n=null==r?void 0:r.recv)||void 0===n?void 0:n.state))return s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("offline")),s("p",null,this.t("offline.description"))))}return"failed"===this.roomState?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("failed")),s("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?s(e,null,s("rtk-livestream-player",{meeting:this.meeting,size:this.size}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?s(e,null,s("div",{class:"webinar-stage"},s("div",{class:"center"},this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_host")),s("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):s(e,null,s(o,{element:"rtk-grid",defaults:r,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t}))}static get watchers(){return{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}}};d([c()],g.prototype,"meeting",void 0),d([c()],g.prototype,"states",void 0),d([c()],g.prototype,"config",void 0),d([c()],g.prototype,"iconPack",void 0),d([c()],g.prototype,"t",void 0),g.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}";export{g as rtk_grid}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{c as a,e as n,i as r}from"./p-BWYsSVnv.js";import{d as h}from"./p-t72veIFj.js";import{R as o}from"./p-CTFO-5XH.js";import{a as p}from"./p-C0vp-Q7v.js";import{S as c}from"./p-C2mieCrY.js";import{d as l}from"./p-CmmyVCoN.js";import"./p-BFTU3MAI.js";var d=function(t,i,s,e){var a,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(r=(n<3?a(r):n>3?a(i,s,r):a(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const g=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=a(),this.iconPack=n,this.t=r(),this.gridSize=l,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{this.meeting&&this.updateActiveParticipants()},this.refreshParticipants=h((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=p(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(!t)return;this.refreshParticipants.cancel(),this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:a}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==a||a.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.refreshParticipants),e.active.removeListener("participantJoined",this.refreshParticipants),e.active.removeListener("participantsUpdate",this.refreshParticipants),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,a,n;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:r,plugins:h,stage:o}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...r.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...r.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=r.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==h?void 0:h.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||"ALLOWED"===p.canProduceAudio||"ALLOWED"===p.canProduceVideo||"ALLOWED"===p.canProduceScreenshare,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==o||o.addListener("stageStatusUpdate",this.stageStatusListener),null==h||h.all.addListener("stateUpdate",this.onPluginStateUpdate),r.addListener("viewModeChanged",this.onViewModeChanged),r.active.addListener("participantLeft",this.refreshParticipants),null===(a=null==r?void 0:r.joined)||void 0===a||a.on("stageStatusUpdate",this.peerStageStatusListener),r.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),r.active.addListener("participantJoined",this.refreshParticipants),r.active.addListener("participantsUpdate",this.refreshParticipants),r.pinned.addListener("participantJoined",this.onParticipantPinned),r.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(n=t.stage)||void 0===n?void 0:n.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!this.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),this.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!this.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),this.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!this.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),this.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),...!["ACTIVE_GRID","MANUAL"].includes(s.viewMode)||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){var t,i,a,n;const r={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};if(this.invalidRoomStates.includes(this.roomState))return s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),s("h3",null,this.t("disconnected")),s("p",null,this.t("disconnected.description"))));if("disconnected"===this.roomState){const r=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.mediaState;if("connected"!==(null===(a=null==r?void 0:r.send)||void 0===a?void 0:a.state)||"connected"!==(null===(n=null==r?void 0:r.recv)||void 0===n?void 0:n.state))return s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("offline")),s("p",null,this.t("offline.description"))))}return"failed"===this.roomState?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("failed")),s("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?s(e,null,s("rtk-livestream-player",{meeting:this.meeting,size:this.size}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?s(e,null,s("div",{class:"webinar-stage"},s("div",{class:"center"},this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_host")),s("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):s(e,null,s(o,{element:"rtk-grid",defaults:r,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t}))}static get watchers(){return{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}}};d([c()],g.prototype,"meeting",void 0),d([c()],g.prototype,"states",void 0),d([c()],g.prototype,"config",void 0),d([c()],g.prototype,"iconPack",void 0),d([c()],g.prototype,"t",void 0),g.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}";export{g as rtk_grid}
@@ -1 +1 @@
1
- import{c as t}from"./p-DI7wP4CL.js";import{m as e,i as r}from"./p-dYOM3dvx.js";import{i}from"./p-C0vp-Q7v.js";const a=(r,i=t())=>{let a=Object.assign({},i);return e(a,r),a},o=(t,e,o={},l={grid_pagination:!0,settings_toggle:!0})=>{var n,d,g,s,c,v,k,p,m,u,h,b,x,f,y,S,w,O;const I={showSetupScreen:!0};let M,_=["rtk-stage"],T={},j={};const R=!1!==(null==l?void 0:l.settings_toggle),C=!1!==(null==l?void 0:l.grid_pagination);if(null===(n=t.controlBar)||void 0===n?void 0:n.isEnabled){_.push("rtk-controlbar");const{elements:r}=t.controlBar,a=[...r.fullscreen?["rtk-fullscreen-toggle"]:[],...R?["rtk-settings-toggle"]:[]],o=[],l=[];(null===(d=e.participants.pip)||void 0===d?void 0:d.isSupported())&&(null===(s=null===(g=e.self)||void 0===g?void 0:g.config)||void 0===s?void 0:s.pipMode)&&"LIVESTREAM"!==(null===(c=e.self.config)||void 0===c?void 0:c.viewType)&&l.push("rtk-pip-toggle"),(null==e?void 0:e.self.permissions.canDisableParticipantAudio)&&l.push("rtk-mute-all-button"),l.push("rtk-breakout-rooms-toggle"),(null===(v=e.self)||void 0===v?void 0:v.permissions.canRecord)&&l.push("rtk-recording-toggle"),null!==(k=e.self.permissions.transcriptionEnabled)&&void 0!==k&&k&&l.push("rtk-caption-toggle"),"ReactNative"!==navigator.product&&l.push("rtk-debugger-toggle"),i(e)&&a.push("rtk-livestream-toggle"),r.screenshare&&a.push("rtk-screen-share-toggle"),r.chat&&o.push("rtk-chat-toggle"),r.polls&&o.push("rtk-polls-toggle"),r.participants&&o.push("rtk-participants-toggle"),r.plugins&&o.push("rtk-plugins-toggle"),o.push("rtk-ai-toggle");const n=["rtk-mic-toggle","rtk-camera-toggle","rtk-stage-toggle","rtk-leave-button"];l.length>0&&n.push("rtk-more-toggle");const p=a.concat(o).concat(l);let m=!1;p.length>0&&(m=!0),j={"rtk-controlbar":{states:["activeMoreMenu"],children:["div#controlbar-left","div#controlbar-center","div#controlbar-right"]},"div#controlbar-left":a,"div#controlbar-center":n,"div#controlbar-right":o,"rtk-more-toggle":{states:["activeMoreMenu"],children:[]},"rtk-more-toggle.activeMoreMenu":l.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"rtk-controlbar.sm":["div#controlbar-mobile"],"rtk-controlbar.md":["div#controlbar-mobile"],"rtk-more-toggle.activeMoreMenu.md":p.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"rtk-more-toggle.activeMoreMenu.sm":p.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"div#controlbar-mobile":["rtk-mic-toggle","rtk-camera-toggle","rtk-stage-toggle",m&&"rtk-more-toggle","rtk-leave-button"]}}if(null===(p=t.header)||void 0===p?void 0:p.isEnabled){_.unshift("rtk-header");const{elements:e}=t.header;let r=["rtk-recording-indicator","rtk-livestream-indicator"],i=[],a=[];C&&a.push("rtk-grid-pagination"),e.title&&i.push("rtk-meeting-title"),"string"==typeof e.logo&&e.logo.length>0&&(M=e.logo,r.unshift("rtk-logo")),e.participantCount&&a.push("rtk-participant-count","rtk-viewer-count"),e.timer&&a.push("rtk-clock"),T={"rtk-header":["div#header-left","div#header-center","div#header-right"],"rtk-header.sm":{remove:["div#header-center"]},"div#header-left":r,"div#header-center":i,"div#header-right":a,"div#header-left.sm":{remove:["rtk-logo"],prepend:["rtk-meeting-title"]}}}_.push("rtk-participants-audio","rtk-dialog-manager");let z={logo:M};z=t.designTokens,r(null===(u=null===(m=null==t?void 0:t.designTokens)||void 0===m?void 0:m.colors)||void 0===u?void 0:u.textOnBrand)&&(z.colors["text-on-brand"]=null===(b=null===(h=null==t?void 0:t.designTokens)||void 0===h?void 0:h.colors)||void 0===b?void 0:b.textOnBrand),r(null===(f=null===(x=null==t?void 0:t.designTokens)||void 0===x?void 0:x.colors)||void 0===f?void 0:f.videoBg)&&(z.colors["video-bg"]=null===(S=null===(y=null==t?void 0:t.designTokens)||void 0===y?void 0:y.colors)||void 0===S?void 0:S.videoBg);let A={designTokens:z,styles:{"rtk-header":{display:"grid",height:"48px",gridTemplateColumns:"repeat(3, 1fr)",gridTemplateRows:"1fr",alignItems:"center","--header-section-gap":"var(--rtk-space-2, 8px)"},"rtk-header.sm":{display:"grid",gridArea:"header",gridTemplateColumns:"repeat(2, 1fr)",gridTemplateRows:"1fr",alignItems:"center","--header-section-gap":"var(--rtk-space-1, 4px)"},"div#header-left":{display:"flex",alignItems:"center",height:"48px",wordBreak:"break-all",gap:"var(--header-section-gap)"},"rtk-logo":{height:"26px"},"div#header-center":{display:"flex",alignItems:"center",justifyContent:"center",wordBreak:"break-all",gap:"var(--header-section-gap)",paddingInline:"var(--rtk-space-3, 12px)"},"div#header-right":{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--header-section-gap)"},"rtk-stage":{display:"flex",flex:"1"},"rtk-grid":{flex:"1",height:"auto"},"rtk-controlbar":{display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"1fr",alignItems:"center",padding:"8px"},"rtk-controlbar.sm":{display:"flex",position:"relative",backgroundColor:"var(--rtk-colors-background-1000, #000)"},"rtk-controlbar.md":{display:"flex",position:"relative",backgroundColor:"var(--rtk-colors-background-1000, #000)"},"div#controlbar-left":{display:"flex",alignItems:"center",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-center":{display:"flex",alignItems:"center",position:"relative",overflow:"visible",justifyContent:"center",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-mobile":{display:"flex",flex:"1",alignItems:"center",justifyContent:"center",zIndex:"10000",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-right":{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--rtk-space-1, 4px)"},"rtk-settings":{width:"720px",height:"480px"},"rtk-debugger":{width:"720px",height:"480px"},"div#setupcontrols-indicator":{position:"absolute",bottom:"12px",left:"12px",display:"flex",gap:"6px",background:"rgb(var(--rtk-colors-background-800, 0 0 0))",borderRadius:"100%"},"div#setupcontrols-media":{position:"absolute",bottom:"8px",right:"8px",display:"flex",gap:"6px"},"div#setupcontrols-settings":{position:"absolute",top:"8px",right:"8px",display:"flex",flexDirection:"column",gap:"6px"},"rtk-meeting-title.sm":{marginLeft:"0"},"rtk-clock":{marginRight:"0"}},root:Object.assign(Object.assign(Object.assign({"rtk-meeting":{state:"meeting",states:["activeSidebar"]},"rtk-meeting[meeting=idle]":["rtk-idle-screen"],"rtk-meeting[meeting=waiting]":["rtk-waiting-screen"],"rtk-meeting[meeting=setup]":["rtk-setup-screen","rtk-dialog-manager"],"rtk-meeting[meeting=joined]":_,"rtk-meeting[meeting=joined].activeSidebar.sm":{add:[["rtk-sidebar",{view:"full-screen"}]]},"rtk-meeting[meeting=joined].activeSidebar.md":{add:[["rtk-sidebar",{view:"full-screen"}]]},"rtk-meeting[meeting=ended]":["rtk-ended-screen"]},T),j),{"rtk-stage":{states:["activeSidebar"],children:["rtk-grid","rtk-notifications","rtk-transcripts"]},"rtk-stage.activeSidebar":{add:[["rtk-sidebar",{view:"sidebar"}]]},"rtk-stage.activeSidebar.sm":{remove:["rtk-sidebar"]},"rtk-grid":{states:["activeScreenShare","activePlugin","activeSpotlight"],state:"viewType",children:["rtk-simple-grid"]},"rtk-grid[viewType=AUDIO_ROOM]":["rtk-audio-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activeScreenshare":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin.activeSpotlight":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activeSpotlight":["rtk-spotlight-grid"],"rtk-grid.activeScreenShare":["rtk-mixed-grid"],"rtk-grid.activePlugin":["rtk-mixed-grid"],"rtk-grid.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activePlugin.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activePlugin.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-mixed-grid":{states:["activeSpotlight"],state:"viewType",children:["rtk-simple-grid"]},"rtk-mixed-grid[viewType=AUDIO_ROOM]":["rtk-audio-grid"],"rtk-mixed-grid.activeSpotlight":["rtk-spotlight-grid"],"rtk-participant-tile":{state:"meeting",children:["rtk-name-tag","rtk-avatar","rtk-network-indicator"]},"rtk-participant-setup":["rtk-avatar","div#setupcontrols-media"],"rtk-participant-tile[meeting=setup]":["rtk-avatar","div#setupcontrols-indicator","div#setupcontrols-media",...R?["div#setupcontrols-settings"]:[]],"div#setupcontrols-indicator":[["rtk-audio-visualizer",{slot:"start",hideMuted:!0}]],"div#setupcontrols-media":[["rtk-mic-toggle",{size:"sm"}],["rtk-camera-toggle",{size:"sm"}]],"div#setupcontrols-settings":[["rtk-settings-toggle",{size:"sm"}]],"rtk-screenshare-view":["rtk-name-tag","rtk-network-indicator"],"rtk-name-tag":[["rtk-audio-visualizer",{slot:"start"}]]}),config:{notification_sounds:{participant_left:!1},participant_joined_sound_notification_limit:3,participant_chat_message_sound_notification_limit:10,videoFit:"cover"}};return A=a(o,A),I.showSetupScreen=null===(O=null===(w=t.setupScreen)||void 0===w?void 0:w.isEnabled)||void 0===O||O,{config:A,data:I}};export{a as e,o as g}
1
+ import{c as t}from"./p-BWYsSVnv.js";import{m as e,i as r}from"./p-CVHhOJXC.js";import{i}from"./p-C0vp-Q7v.js";const a=(r,i=t())=>{let a=Object.assign({},i);return e(a,r),a},o=(t,e,o={},l={grid_pagination:!0,settings_toggle:!0})=>{var n,d,g,s,c,v,k,p,m,u,h,b,x,f,S,y,w,O;const I={showSetupScreen:!0};let _,M=["rtk-stage"],T={},j={};const R=!1!==(null==l?void 0:l.settings_toggle),C=!1!==(null==l?void 0:l.grid_pagination);if(null===(n=t.controlBar)||void 0===n?void 0:n.isEnabled){M.push("rtk-controlbar");const{elements:r}=t.controlBar,a=[...r.fullscreen?["rtk-fullscreen-toggle"]:[],...R?["rtk-settings-toggle"]:[]],o=[],l=[];(null===(d=e.participants.pip)||void 0===d?void 0:d.isSupported())&&(null===(s=null===(g=e.self)||void 0===g?void 0:g.config)||void 0===s?void 0:s.pipMode)&&"LIVESTREAM"!==(null===(c=e.self.config)||void 0===c?void 0:c.viewType)&&l.push("rtk-pip-toggle"),(null==e?void 0:e.self.permissions.canDisableParticipantAudio)&&l.push("rtk-mute-all-button"),l.push("rtk-breakout-rooms-toggle"),(null===(v=e.self)||void 0===v?void 0:v.permissions.canRecord)&&l.push("rtk-recording-toggle"),null!==(k=e.self.permissions.transcriptionEnabled)&&void 0!==k&&k&&l.push("rtk-caption-toggle"),"ReactNative"!==navigator.product&&l.push("rtk-debugger-toggle"),i(e)&&a.push("rtk-livestream-toggle"),r.screenshare&&a.push("rtk-screen-share-toggle"),r.chat&&o.push("rtk-chat-toggle"),r.polls&&o.push("rtk-polls-toggle"),r.participants&&o.push("rtk-participants-toggle"),r.plugins&&o.push("rtk-plugins-toggle"),o.push("rtk-ai-toggle");const n=["rtk-mic-toggle","rtk-camera-toggle","rtk-stage-toggle","rtk-leave-button"];l.length>0&&n.push("rtk-more-toggle");const p=a.concat(o).concat(l);let m=!1;p.length>0&&(m=!0),j={"rtk-controlbar":{states:["activeMoreMenu"],children:["div#controlbar-left","div#controlbar-center","div#controlbar-right"]},"div#controlbar-left":a,"div#controlbar-center":n,"div#controlbar-right":o,"rtk-more-toggle":{states:["activeMoreMenu"],children:[]},"rtk-more-toggle.activeMoreMenu":l.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"rtk-controlbar.sm":["div#controlbar-mobile"],"rtk-controlbar.md":["div#controlbar-mobile"],"rtk-more-toggle.activeMoreMenu.md":p.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"rtk-more-toggle.activeMoreMenu.sm":p.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"div#controlbar-mobile":["rtk-mic-toggle","rtk-camera-toggle","rtk-stage-toggle",m&&"rtk-more-toggle","rtk-leave-button"]}}if(null===(p=t.header)||void 0===p?void 0:p.isEnabled){M.unshift("rtk-header");const{elements:e}=t.header;let r=["rtk-recording-indicator","rtk-livestream-indicator"],i=[],a=[];C&&a.push("rtk-grid-pagination"),e.title&&i.push("rtk-meeting-title"),"string"==typeof e.logo&&e.logo.length>0&&(_=e.logo,r.unshift("rtk-logo")),e.participantCount&&a.push("rtk-participant-count","rtk-viewer-count"),e.timer&&a.push("rtk-clock"),T={"rtk-header":["div#header-left","div#header-center","div#header-right"],"rtk-header.sm":{remove:["div#header-center"]},"div#header-left":r,"div#header-center":i,"div#header-right":a,"div#header-left.sm":{remove:["rtk-logo"],prepend:["rtk-meeting-title"]}}}M.push("rtk-participants-audio","rtk-dialog-manager");let z={logo:_};z=t.designTokens,r(null===(u=null===(m=null==t?void 0:t.designTokens)||void 0===m?void 0:m.colors)||void 0===u?void 0:u.textOnBrand)&&(z.colors["text-on-brand"]=null===(b=null===(h=null==t?void 0:t.designTokens)||void 0===h?void 0:h.colors)||void 0===b?void 0:b.textOnBrand),r(null===(f=null===(x=null==t?void 0:t.designTokens)||void 0===x?void 0:x.colors)||void 0===f?void 0:f.videoBg)&&(z.colors["video-bg"]=null===(y=null===(S=null==t?void 0:t.designTokens)||void 0===S?void 0:S.colors)||void 0===y?void 0:y.videoBg);let A={designTokens:z,styles:{"rtk-header":{display:"grid",height:"48px",gridTemplateColumns:"repeat(3, 1fr)",gridTemplateRows:"1fr",alignItems:"center","--header-section-gap":"var(--rtk-space-2, 8px)"},"rtk-header.sm":{display:"grid",gridArea:"header",gridTemplateColumns:"repeat(2, 1fr)",gridTemplateRows:"1fr",alignItems:"center","--header-section-gap":"var(--rtk-space-1, 4px)"},"div#header-left":{display:"flex",alignItems:"center",height:"48px",wordBreak:"break-all",gap:"var(--header-section-gap)"},"rtk-logo":{height:"26px"},"div#header-center":{display:"flex",alignItems:"center",justifyContent:"center",wordBreak:"break-all",gap:"var(--header-section-gap)",paddingInline:"var(--rtk-space-3, 12px)"},"div#header-right":{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--header-section-gap)"},"rtk-stage":{display:"flex",flex:"1"},"rtk-grid":{flex:"1",height:"auto"},"rtk-controlbar":{display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"1fr",alignItems:"center",padding:"8px"},"rtk-controlbar.sm":{display:"flex",position:"relative",backgroundColor:"var(--rtk-colors-background-1000, #000)"},"rtk-controlbar.md":{display:"flex",position:"relative",backgroundColor:"var(--rtk-colors-background-1000, #000)"},"div#controlbar-left":{display:"flex",alignItems:"center",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-center":{display:"flex",alignItems:"center",position:"relative",overflow:"visible",justifyContent:"center",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-mobile":{display:"flex",flex:"1",alignItems:"center",justifyContent:"center",zIndex:"10000",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-right":{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--rtk-space-1, 4px)"},"rtk-settings":{width:"720px",height:"480px"},"rtk-debugger":{width:"720px",height:"480px"},"div#setupcontrols-indicator":{position:"absolute",bottom:"12px",left:"12px",display:"flex",gap:"6px",background:"rgb(var(--rtk-colors-background-800, 0 0 0))",borderRadius:"100%"},"div#setupcontrols-media":{position:"absolute",bottom:"8px",right:"8px",display:"flex",gap:"6px"},"div#setupcontrols-settings":{position:"absolute",top:"8px",right:"8px",display:"flex",flexDirection:"column",gap:"6px"},"rtk-meeting-title.sm":{marginLeft:"0"},"rtk-clock":{marginRight:"0"}},root:Object.assign(Object.assign(Object.assign({"rtk-meeting":{state:"meeting",states:["activeSidebar"]},"rtk-meeting[meeting=idle]":["rtk-idle-screen"],"rtk-meeting[meeting=waiting]":["rtk-waiting-screen"],"rtk-meeting[meeting=setup]":["rtk-setup-screen","rtk-dialog-manager"],"rtk-meeting[meeting=joined]":M,"rtk-meeting[meeting=joined].activeSidebar.sm":{add:[["rtk-sidebar",{view:"full-screen"}]]},"rtk-meeting[meeting=joined].activeSidebar.md":{add:[["rtk-sidebar",{view:"full-screen"}]]},"rtk-meeting[meeting=ended]":["rtk-ended-screen"]},T),j),{"rtk-stage":{states:["activeSidebar"],children:["rtk-grid","rtk-notifications","rtk-transcripts"]},"rtk-stage.activeSidebar":{add:[["rtk-sidebar",{view:"sidebar"}]]},"rtk-stage.activeSidebar.sm":{remove:["rtk-sidebar"]},"rtk-grid":{states:["activeScreenShare","activePlugin","activeSpotlight"],state:"viewType",children:["rtk-simple-grid"]},"rtk-grid[viewType=AUDIO_ROOM]":["rtk-audio-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activeScreenshare":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin.activeSpotlight":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activeSpotlight":["rtk-spotlight-grid"],"rtk-grid.activeScreenShare":["rtk-mixed-grid"],"rtk-grid.activePlugin":["rtk-mixed-grid"],"rtk-grid.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activePlugin.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activePlugin.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-mixed-grid":{states:["activeSpotlight"],state:"viewType",children:["rtk-simple-grid"]},"rtk-mixed-grid[viewType=AUDIO_ROOM]":["rtk-audio-grid"],"rtk-mixed-grid.activeSpotlight":["rtk-spotlight-grid"],"rtk-participant-tile":{state:"meeting",children:["rtk-name-tag","rtk-avatar","rtk-network-indicator"]},"rtk-participant-setup":["rtk-avatar","div#setupcontrols-media"],"rtk-participant-tile[meeting=setup]":["rtk-avatar","div#setupcontrols-indicator","div#setupcontrols-media",...R?["div#setupcontrols-settings"]:[]],"div#setupcontrols-indicator":[["rtk-audio-visualizer",{slot:"start",hideMuted:!0}]],"div#setupcontrols-media":[["rtk-mic-toggle",{size:"sm"}],["rtk-camera-toggle",{size:"sm"}]],"div#setupcontrols-settings":[["rtk-settings-toggle",{size:"sm"}]],"rtk-screenshare-view":["rtk-name-tag","rtk-network-indicator"],"rtk-name-tag":[["rtk-audio-visualizer",{slot:"start"}]]}),config:{notification_sounds:{participant_left:!1},participant_joined_sound_notification_limit:3,participant_chat_message_sound_notification_limit:10,videoFit:"cover"}};return A=a(o,A),I.showSetupScreen=null===(O=null===(w=t.setupScreen)||void 0===w?void 0:w.isEnabled)||void 0===O||O,{config:A,data:I}};export{a as e,o as g}