@cloudflare/realtimekit-ui 2.0.1 → 2.0.2-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 (927) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/ChatHead-DzH-mYX1.js +11 -0
  3. package/dist/cjs/{TextMessage-492778db.js → TextMessage-5iqcrDk9.js} +9 -11
  4. package/dist/cjs/_commonjsHelpers-BJu3ubxk.js +10 -0
  5. package/dist/cjs/breakout-rooms-46jWgGiL.js +72 -0
  6. package/dist/cjs/breakout-rooms-manager-Bgk5FEK1.js +303 -0
  7. package/dist/cjs/{chat-4f5c28ca.js → chat-CiRLOYTj.js} +1 -1
  8. package/dist/cjs/{config-705c8f2c.js → config-Dr-kt-RY.js} +6 -5
  9. package/dist/cjs/debounce-BgZ6dvDk.js +659 -0
  10. package/dist/cjs/{debounce-7fa6354d.js → debounce-padcVDRF.js} +4 -6
  11. package/dist/cjs/{file-0b9afa34.js → file-BfaJmhHW.js} +1 -1
  12. package/dist/cjs/{floating-ui.dom.esm-9d940028.js → floating-ui.dom-D8vZii24.js} +3 -310
  13. package/dist/cjs/hark-qJk9qiLr.js +322 -0
  14. package/dist/cjs/{index-4366eb3b.js → index-BOQMsbCN.js} +2 -2
  15. package/dist/cjs/{index-2e5758b6.js → index-Bi2L8zQ7.js} +1202 -555
  16. package/dist/cjs/{index-6f8c1928.js → index-Ck9E7Wf2.js} +22 -31
  17. package/dist/cjs/index.cjs.js +14 -13
  18. package/dist/cjs/{init-error-70ccf3b6.js → init-error-BC4ECjPk.js} +10 -2
  19. package/dist/cjs/livestream-B1z1fq_f.js +78 -0
  20. package/dist/cjs/loader.cjs.js +3 -5
  21. package/dist/cjs/{merge-79537b1d.js → merge-CSoi4R44.js} +136 -17
  22. package/dist/cjs/{notification-8f4db150.js → notification-BM6CUHyL.js} +1 -1
  23. package/dist/cjs/realtimekit-ui.cjs.js +7 -7
  24. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +8 -9
  25. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +15 -14
  26. package/dist/cjs/rtk-ai_3.cjs.entry.js +19 -17
  27. package/dist/cjs/rtk-audio-grid.cjs.entry.js +12 -10
  28. package/dist/cjs/rtk-audio-tile.cjs.entry.js +13 -10
  29. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +26 -23
  30. package/dist/cjs/rtk-avatar_26.cjs.entry.js +124 -125
  31. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +33 -27
  32. package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +38 -41
  33. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +11 -11
  34. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +20 -15
  35. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +8 -9
  36. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +11 -9
  37. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +9 -9
  38. package/dist/cjs/rtk-chat-message.cjs.entry.js +8 -8
  39. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +16 -12
  40. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +8 -8
  41. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +9 -9
  42. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +16 -12
  43. package/dist/cjs/rtk-clock.cjs.entry.js +11 -10
  44. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +5 -8
  45. package/dist/cjs/rtk-controlbar.cjs.entry.js +9 -9
  46. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +42 -48
  47. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +5 -8
  48. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +9 -10
  49. package/dist/cjs/rtk-dialog.cjs.entry.js +5 -8
  50. package/dist/cjs/rtk-ended-screen.cjs.entry.js +11 -9
  51. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +8 -8
  52. package/dist/cjs/rtk-file-message_3.cjs.entry.js +11 -14
  53. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +6 -9
  54. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +17 -15
  55. package/dist/cjs/rtk-grid.cjs.entry.js +28 -19
  56. package/dist/cjs/rtk-header.cjs.entry.js +9 -9
  57. package/dist/cjs/rtk-idle-screen.cjs.entry.js +14 -10
  58. package/dist/cjs/rtk-image-viewer.cjs.entry.js +7 -10
  59. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +8 -8
  60. package/dist/cjs/rtk-leave-button.cjs.entry.js +5 -8
  61. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +41 -52
  62. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +10 -10
  63. package/dist/cjs/rtk-logo.cjs.entry.js +14 -10
  64. package/dist/cjs/rtk-meeting-title.cjs.entry.js +5 -8
  65. package/dist/cjs/rtk-message-list-view.cjs.entry.js +12 -10
  66. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +8 -9
  67. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +16 -13
  68. package/dist/cjs/rtk-more-toggle.cjs.entry.js +5 -8
  69. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +11 -9
  70. package/dist/cjs/rtk-name-tag.cjs.entry.js +9 -10
  71. package/dist/cjs/rtk-network-indicator.cjs.entry.js +11 -9
  72. package/dist/cjs/rtk-notification.cjs.entry.js +13 -12
  73. package/dist/cjs/rtk-notifications.cjs.entry.js +22 -16
  74. package/dist/cjs/rtk-participant-count.cjs.entry.js +11 -11
  75. package/dist/cjs/rtk-participant-setup.cjs.entry.js +14 -10
  76. package/dist/cjs/rtk-participant_2.cjs.entry.js +29 -28
  77. package/dist/cjs/rtk-participants-audio.cjs.entry.js +11 -11
  78. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +33 -24
  79. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +16 -12
  80. package/dist/cjs/rtk-participants.cjs.entry.js +15 -11
  81. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +11 -9
  82. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +11 -13
  83. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +16 -12
  84. package/dist/cjs/rtk-poll_2.cjs.entry.js +8 -12
  85. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +16 -12
  86. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +8 -9
  87. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +8 -9
  88. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +8 -9
  89. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +9 -10
  90. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +10 -12
  91. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +5 -8
  92. package/dist/cjs/rtk-settings.cjs.entry.js +8 -9
  93. package/dist/cjs/rtk-setup-screen.cjs.entry.js +11 -12
  94. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +11 -9
  95. package/dist/cjs/rtk-sidebar.cjs.entry.js +17 -13
  96. package/dist/cjs/rtk-simple-grid.cjs.entry.js +11 -12
  97. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +7 -10
  98. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +8 -9
  99. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +11 -9
  100. package/dist/cjs/rtk-stage.cjs.entry.js +5 -8
  101. package/dist/cjs/rtk-transcript.cjs.entry.js +8 -9
  102. package/dist/cjs/rtk-transcripts.cjs.entry.js +14 -10
  103. package/dist/cjs/rtk-ui-provider.cjs.entry.js +32 -20
  104. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +8 -8
  105. package/dist/cjs/{sidebar-3d8abb05.js → sidebar-CaEYxWaS.js} +2 -2
  106. package/dist/cjs/{ui-store-b1ac9e83.js → ui-store-CTof0Q5V.js} +100 -813
  107. package/dist/collection/collection-manifest.json +3 -2
  108. package/dist/collection/components/rtk-ai/rtk-ai.js +16 -10
  109. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +18 -11
  110. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +9 -5
  111. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +16 -10
  112. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +18 -11
  113. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +15 -11
  114. package/dist/collection/components/rtk-avatar/rtk-avatar.js +15 -10
  115. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +18 -13
  116. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +7 -4
  117. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +19 -12
  118. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +12 -7
  119. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +11 -6
  120. package/dist/collection/components/rtk-button/rtk-button.js +9 -8
  121. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +12 -8
  122. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +16 -10
  123. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +20 -12
  124. package/dist/collection/components/rtk-chat/rtk-chat.js +19 -11
  125. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +16 -11
  126. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +16 -14
  127. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +34 -26
  128. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +20 -14
  129. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +24 -14
  130. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +11 -8
  131. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +20 -12
  132. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +10 -8
  133. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +18 -11
  134. package/dist/collection/components/rtk-clock/rtk-clock.js +8 -5
  135. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +11 -6
  136. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +17 -11
  137. package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +16 -14
  138. package/dist/collection/components/rtk-counter/rtk-counter.js +12 -9
  139. package/dist/collection/components/rtk-debugger/rtk-debugger.js +15 -9
  140. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +13 -8
  141. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +13 -8
  142. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +13 -8
  143. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +18 -11
  144. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +13 -8
  145. package/dist/collection/components/rtk-dialog/rtk-dialog.js +18 -12
  146. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +17 -10
  147. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +5 -3
  148. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +6 -4
  149. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +7 -5
  150. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +15 -9
  151. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +5 -3
  152. package/dist/collection/components/rtk-file-message/rtk-file-message.js +9 -6
  153. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +8 -7
  154. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +13 -10
  155. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +16 -10
  156. package/dist/collection/components/rtk-grid/rtk-grid.js +22 -15
  157. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +14 -9
  158. package/dist/collection/components/rtk-header/rtk-header.js +17 -11
  159. package/dist/collection/components/rtk-icon/rtk-icon.js +6 -5
  160. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +11 -6
  161. package/dist/collection/components/rtk-image-message/rtk-image-message.js +11 -7
  162. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +7 -5
  163. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +11 -7
  164. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +2 -1
  165. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +17 -10
  166. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +14 -9
  167. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +11 -6
  168. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +11 -7
  169. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +11 -7
  170. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +16 -10
  171. package/dist/collection/components/rtk-logo/rtk-logo.js +9 -6
  172. package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +4 -4
  173. package/dist/collection/components/rtk-meeting/rtk-meeting.js +31 -21
  174. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +7 -4
  175. package/dist/collection/components/rtk-menu/rtk-menu.js +13 -9
  176. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +10 -7
  177. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +6 -4
  178. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +5 -4
  179. package/dist/collection/components/rtk-message-view/rtk-message-view.js +19 -17
  180. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +16 -10
  181. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +12 -8
  182. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +31 -19
  183. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +13 -8
  184. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +16 -10
  185. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +11 -6
  186. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +16 -11
  187. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +11 -7
  188. package/dist/collection/components/rtk-notification/rtk-notification.js +13 -9
  189. package/dist/collection/components/rtk-notifications/rtk-notifications.js +15 -9
  190. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +11 -6
  191. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +14 -11
  192. package/dist/collection/components/rtk-participant/rtk-participant.js +15 -9
  193. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +11 -7
  194. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +19 -13
  195. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +26 -17
  196. package/dist/collection/components/rtk-participants/rtk-participants.js +18 -11
  197. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +7 -4
  198. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +20 -13
  199. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +16 -10
  200. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +18 -11
  201. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +18 -12
  202. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +16 -10
  203. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +11 -6
  204. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +9 -5
  205. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +20 -12
  206. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +10 -6
  207. package/dist/collection/components/rtk-plugins/rtk-plugins.js +15 -9
  208. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +18 -11
  209. package/dist/collection/components/rtk-poll/rtk-poll.js +12 -8
  210. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +7 -4
  211. package/dist/collection/components/rtk-polls/rtk-polls.js +13 -8
  212. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +18 -11
  213. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +11 -7
  214. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +15 -10
  215. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +18 -11
  216. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +21 -14
  217. package/dist/collection/components/rtk-settings/rtk-settings.js +15 -9
  218. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +15 -9
  219. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +16 -10
  220. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +15 -9
  221. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +17 -10
  222. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +23 -14
  223. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +9 -8
  224. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +19 -12
  225. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +14 -9
  226. package/dist/collection/components/rtk-spinner/rtk-spinner.js +5 -3
  227. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +27 -17
  228. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +11 -7
  229. package/dist/collection/components/rtk-stage/rtk-stage.js +7 -4
  230. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +18 -11
  231. package/dist/collection/components/rtk-switch/rtk-switch.js +8 -6
  232. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +18 -11
  233. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +13 -11
  234. package/dist/collection/components/rtk-text-message/rtk-text-message.js +9 -6
  235. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +3 -3
  236. package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +13 -11
  237. package/dist/collection/components/rtk-transcript/rtk-transcript.js +5 -3
  238. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +9 -5
  239. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +22 -13
  240. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +8 -5
  241. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +6 -4
  242. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +9 -5
  243. package/dist/collection/utils/init-error.js +10 -2
  244. package/dist/collection/utils/livestream.js +1 -1
  245. package/dist/collection/utils/sync-with-store/ui-store.js +1 -1
  246. package/dist/components/index.d.ts +2 -0
  247. package/dist/components/index.js +1 -247
  248. package/dist/components/p-1sLF61J1.js +1 -0
  249. package/dist/components/p-7zlNLqpS.js +1 -0
  250. package/dist/components/p-B-k80wnP.js +1 -0
  251. package/dist/components/p-B1SWgSTZ.js +1 -0
  252. package/dist/components/p-B1wrArJr.js +1 -0
  253. package/dist/components/p-B4TnXODX.js +1 -0
  254. package/dist/components/p-B5-LNbkp.js +1 -0
  255. package/dist/components/p-B9MPybze.js +1 -0
  256. package/dist/components/p-BA_UY9k8.js +1 -0
  257. package/dist/components/p-BBHQOrFK.js +2 -0
  258. package/dist/{realtimekit-ui/p-598b792e.js → components/p-BCuMxcZN.js} +1 -1
  259. package/dist/components/p-BEOq_QN5.js +1 -0
  260. package/dist/components/p-BFTU3MAI.js +1 -0
  261. package/dist/components/p-BJKSFJeB.js +1 -0
  262. package/dist/components/p-BOYkqKBb.js +1 -0
  263. package/dist/components/p-BRbb3tLk.js +1 -0
  264. package/dist/components/p-BWNToYSb.js +1 -0
  265. package/dist/components/p-BYIBbfJ8.js +1 -0
  266. package/dist/components/p-BbJzI1u1.js +1 -0
  267. package/dist/components/p-BcCYogfR.js +1 -0
  268. package/dist/components/p-Bf4LuZWa.js +1 -0
  269. package/dist/{realtimekit-ui/p-1e62d63b.js → components/p-Bj1kNPpe.js} +1 -1
  270. package/dist/components/p-BjF9F_tX.js +1 -0
  271. package/dist/components/p-BoGbJ5PX.js +1 -0
  272. package/dist/components/p-BuZhKlht.js +1 -0
  273. package/dist/{realtimekit-ui/p-fa9759f4.js → components/p-Bx38FZhs.js} +1 -1
  274. package/dist/components/p-C-OVY3ug.js +1 -0
  275. package/dist/components/p-C0H4DNJM.js +1 -0
  276. package/dist/components/p-C0vp-Q7v.js +1 -0
  277. package/dist/components/p-C3Z3GLQh.js +1 -0
  278. package/dist/components/p-C4IJ0f9O.js +1 -0
  279. package/dist/components/p-C9EBo56b.js +1 -0
  280. package/dist/components/p-CABfszIM.js +1 -0
  281. package/dist/components/p-CB5hzEOM.js +1 -0
  282. package/dist/components/p-CBJjerDR.js +1 -0
  283. package/dist/components/p-CBLUz_2s.js +1 -0
  284. package/dist/components/p-CJsXePY3.js +1 -0
  285. package/dist/components/p-CKX6X8es.js +1 -0
  286. package/dist/components/p-COEreDeR.js +1 -0
  287. package/dist/components/p-COZSdc5O.js +1 -0
  288. package/dist/components/p-CQAMoQlr.js +1 -0
  289. package/dist/components/p-Cd-WpR0J.js +1 -0
  290. package/dist/components/p-CdV0xzjB.js +1 -0
  291. package/dist/components/p-Ce-9kgl0.js +1 -0
  292. package/dist/components/p-ChuKD7QS.js +1 -0
  293. package/dist/components/p-Cj44pA_c.js +1 -0
  294. package/dist/components/p-Cmu_4ZYL.js +1 -0
  295. package/dist/components/p-CnJQLwM-.js +1 -0
  296. package/dist/components/p-CpOL3OJd.js +1 -0
  297. package/dist/components/p-CphAED3J.js +1 -0
  298. package/dist/components/p-CqEcYX16.js +1 -0
  299. package/dist/components/p-CrExxJHe.js +1 -0
  300. package/dist/components/p-D0bZYAmS.js +1 -0
  301. package/dist/components/p-D1zAGrQ9.js +1 -0
  302. package/dist/components/p-D6vw6bT2.js +1 -0
  303. package/dist/{realtimekit-ui/p-6befaf17.js → components/p-D9HGXWKc.js} +1 -1
  304. package/dist/components/p-DBjcFAtV.js +1 -0
  305. package/dist/components/p-DCEjf6bL.js +1 -0
  306. package/dist/components/p-DD3_OTZn.js +1 -0
  307. package/dist/{realtimekit-ui/p-40be18ee.js → components/p-DDaHXyCC.js} +1 -1
  308. package/dist/components/p-DE1s0fDa.js +1 -0
  309. package/dist/components/p-DEOaS443.js +1 -0
  310. package/dist/components/p-DHSRRtn3.js +1 -0
  311. package/dist/components/p-DKjr_UXt.js +1 -0
  312. package/dist/components/p-DLocSBO3.js +1 -0
  313. package/dist/components/p-DNkzP2hS.js +1 -0
  314. package/dist/components/p-DP4RUNa1.js +1 -0
  315. package/dist/components/p-DU5mNJqK.js +1 -0
  316. package/dist/components/p-DY8ll5IU.js +1 -0
  317. package/dist/components/p-DZC8m5f_.js +1 -0
  318. package/dist/components/p-Daj_55_i.js +1 -0
  319. package/dist/components/p-DbHOlaHU.js +1 -0
  320. package/dist/components/p-De8YQHVd.js +1 -0
  321. package/dist/components/p-Deo_3EhX.js +1 -0
  322. package/dist/components/p-Df2S0-LE.js +1 -0
  323. package/dist/components/p-DfWuSKCq.js +1 -0
  324. package/dist/components/p-Dguuxuf6.js +1 -0
  325. package/dist/components/p-Dkd2PDJ-.js +1 -0
  326. package/dist/components/p-DlKMnwxL.js +1 -0
  327. package/dist/components/p-DmVA5ArE.js +1 -0
  328. package/dist/components/p-DnQYtb0h.js +1 -0
  329. package/dist/components/p-DuOnRaMu.js +1 -0
  330. package/dist/components/p-DxDYE5-a.js +1 -0
  331. package/dist/components/p-EuNHmu13.js +1 -0
  332. package/dist/components/p-FVFlyS1y.js +1 -0
  333. package/dist/components/p-FdeAvICb.js +1 -0
  334. package/dist/components/p-J1kxEVHe.js +1 -0
  335. package/dist/components/p-JyC3dswA.js +1 -0
  336. package/dist/components/p-KpmupjxR.js +1 -0
  337. package/dist/components/p-L9yK33Cu.js +1 -0
  338. package/dist/components/p-PXVZ-Szx.js +1 -0
  339. package/dist/components/p-ViKGg-Ct.js +1 -0
  340. package/dist/components/p-aS2wpIc0.js +1 -0
  341. package/dist/components/p-ak2clYhw.js +1 -0
  342. package/dist/components/p-e-OVL-Mg.js +1 -0
  343. package/dist/components/p-j2J2Tn1F.js +1 -0
  344. package/dist/components/p-oXrlIvqH.js +1 -0
  345. package/dist/components/p-pb5wDMuJ.js +1 -0
  346. package/dist/components/p-s-jAl7lc.js +1 -0
  347. package/dist/components/p-sSs7a3Ms.js +1 -0
  348. package/dist/components/p-t72veIFj.js +1 -0
  349. package/dist/components/p-uOh9MOi7.js +1 -0
  350. package/dist/components/p-wemYeTS7.js +1 -0
  351. package/dist/components/p-wl6GEzgG.js +1 -0
  352. package/dist/components/p-zBoy9v8V.js +1 -0
  353. package/dist/components/rtk-ai-toggle.js +1 -122
  354. package/dist/components/rtk-ai-transcriptions.js +1 -6
  355. package/dist/components/rtk-ai.js +1 -6
  356. package/dist/components/rtk-audio-grid.js +1 -145
  357. package/dist/components/rtk-audio-tile.js +1 -184
  358. package/dist/components/rtk-audio-visualizer.js +1 -6
  359. package/dist/components/rtk-avatar.js +1 -6
  360. package/dist/components/rtk-breakout-room-manager.js +1 -6
  361. package/dist/components/rtk-breakout-room-participants.js +1 -6
  362. package/dist/components/rtk-breakout-rooms-manager.js +1 -6
  363. package/dist/components/rtk-breakout-rooms-toggle.js +1 -128
  364. package/dist/components/rtk-broadcast-message-modal.js +1 -6
  365. package/dist/components/rtk-button.js +1 -6
  366. package/dist/components/rtk-camera-selector.js +1 -6
  367. package/dist/components/rtk-camera-toggle.js +1 -236
  368. package/dist/components/rtk-caption-toggle.js +1 -131
  369. package/dist/components/rtk-chat-composer-ui.js +1 -363
  370. package/dist/components/rtk-chat-composer-view.js +1 -6
  371. package/dist/components/rtk-chat-header.js +1 -6
  372. package/dist/components/rtk-chat-message.js +1 -6
  373. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -6
  374. package/dist/components/rtk-chat-messages-ui.js +1 -313
  375. package/dist/components/rtk-chat-search-results.js +1 -147
  376. package/dist/components/rtk-chat-selector-ui.js +1 -108
  377. package/dist/components/rtk-chat-selector.js +1 -6
  378. package/dist/components/rtk-chat-toggle.js +1 -181
  379. package/dist/components/rtk-chat.js +1 -6
  380. package/dist/components/rtk-clock.js +1 -128
  381. package/dist/components/rtk-confirmation-modal.js +1 -6
  382. package/dist/components/rtk-controlbar-button.js +1 -6
  383. package/dist/components/rtk-controlbar.js +1 -91
  384. package/dist/components/rtk-counter.js +1 -6
  385. package/dist/components/rtk-debugger-audio.js +1 -6
  386. package/dist/components/rtk-debugger-screenshare.js +1 -6
  387. package/dist/components/rtk-debugger-system.js +1 -6
  388. package/dist/components/rtk-debugger-toggle.js +1 -98
  389. package/dist/components/rtk-debugger-video.js +1 -6
  390. package/dist/components/rtk-debugger.js +1 -6
  391. package/dist/components/rtk-dialog-manager.js +1 -310
  392. package/dist/components/rtk-dialog.js +1 -6
  393. package/dist/components/rtk-draft-attachment-view.js +1 -6
  394. package/dist/components/rtk-emoji-picker-button.js +1 -6
  395. package/dist/components/rtk-emoji-picker.js +1 -6
  396. package/dist/components/rtk-ended-screen.js +1 -150
  397. package/dist/components/rtk-file-dropzone.js +1 -87
  398. package/dist/components/rtk-file-message-view.js +1 -6
  399. package/dist/components/rtk-file-message.js +1 -6
  400. package/dist/components/rtk-file-picker-button.js +1 -6
  401. package/dist/components/rtk-fullscreen-toggle.js +1 -6
  402. package/dist/components/rtk-grid-pagination.js +1 -206
  403. package/dist/components/rtk-grid.js +1 -468
  404. package/dist/components/rtk-header.js +1 -91
  405. package/dist/components/rtk-icon.js +1 -6
  406. package/dist/components/rtk-idle-screen.js +1 -139
  407. package/dist/components/rtk-image-message-view.js +1 -6
  408. package/dist/components/rtk-image-message.js +1 -6
  409. package/dist/components/rtk-image-viewer.js +1 -91
  410. package/dist/components/rtk-information-tooltip.js +1 -61
  411. package/dist/components/rtk-join-stage.js +1 -6
  412. package/dist/components/rtk-leave-button.js +1 -87
  413. package/dist/components/rtk-leave-meeting.js +1 -6
  414. package/dist/components/rtk-livestream-indicator.js +1 -6
  415. package/dist/components/rtk-livestream-player.js +1 -6
  416. package/dist/components/rtk-livestream-toggle.js +1 -181
  417. package/dist/components/rtk-logo.js +1 -6
  418. package/dist/components/rtk-markdown-view.js +1 -6
  419. package/dist/components/rtk-meeting-title.js +1 -74
  420. package/dist/components/rtk-meeting.js +1 -533
  421. package/dist/components/rtk-menu-item.js +1 -6
  422. package/dist/components/rtk-menu-list.js +1 -6
  423. package/dist/components/rtk-menu.js +1 -6
  424. package/dist/components/rtk-message-list-view.js +1 -324
  425. package/dist/components/rtk-message-view.js +1 -6
  426. package/dist/components/rtk-mic-toggle.js +1 -234
  427. package/dist/components/rtk-microphone-selector.js +1 -6
  428. package/dist/components/rtk-mixed-grid.js +1 -300
  429. package/dist/components/rtk-more-toggle.js +1 -112
  430. package/dist/components/rtk-mute-all-button.js +1 -127
  431. package/dist/components/rtk-mute-all-confirmation.js +1 -6
  432. package/dist/components/rtk-name-tag.js +1 -6
  433. package/dist/components/rtk-network-indicator.js +1 -117
  434. package/dist/components/rtk-notification.js +1 -6
  435. package/dist/components/rtk-notifications.js +1 -637
  436. package/dist/components/rtk-overlay-modal.js +1 -6
  437. package/dist/components/rtk-paginated-list.js +1 -6
  438. package/dist/components/rtk-participant-count.js +1 -118
  439. package/dist/components/rtk-participant-setup.js +1 -149
  440. package/dist/components/rtk-participant-tile.js +1 -6
  441. package/dist/components/rtk-participant.js +1 -6
  442. package/dist/components/rtk-participants-audio.js +1 -249
  443. package/dist/components/rtk-participants-stage-list.js +1 -6
  444. package/dist/components/rtk-participants-stage-queue.js +1 -6
  445. package/dist/components/rtk-participants-toggle.js +1 -195
  446. package/dist/components/rtk-participants-viewer-list.js +1 -6
  447. package/dist/components/rtk-participants-waiting-list.js +1 -6
  448. package/dist/components/rtk-participants.js +1 -306
  449. package/dist/components/rtk-permissions-message.js +1 -6
  450. package/dist/components/rtk-pinned-message-selector.js +1 -6
  451. package/dist/components/rtk-pip-toggle.js +1 -135
  452. package/dist/components/rtk-plugin-main.js +1 -6
  453. package/dist/components/rtk-plugins-toggle.js +1 -148
  454. package/dist/components/rtk-plugins.js +1 -6
  455. package/dist/components/rtk-poll-form.js +1 -6
  456. package/dist/components/rtk-poll.js +1 -6
  457. package/dist/components/rtk-polls-toggle.js +1 -160
  458. package/dist/components/rtk-polls.js +1 -6
  459. package/dist/components/rtk-recording-indicator.js +1 -96
  460. package/dist/components/rtk-recording-toggle.js +1 -203
  461. package/dist/components/rtk-screen-share-toggle.js +1 -317
  462. package/dist/components/rtk-screenshare-view.js +1 -194
  463. package/dist/components/rtk-settings-audio.js +1 -6
  464. package/dist/components/rtk-settings-toggle.js +1 -93
  465. package/dist/components/rtk-settings-video.js +1 -6
  466. package/dist/components/rtk-settings.js +1 -208
  467. package/dist/components/rtk-setup-screen.js +1 -215
  468. package/dist/components/rtk-sidebar-ui.js +1 -6
  469. package/dist/components/rtk-sidebar.js +1 -253
  470. package/dist/components/rtk-simple-grid.js +1 -149
  471. package/dist/components/rtk-speaker-selector.js +1 -6
  472. package/dist/components/rtk-spinner.js +1 -6
  473. package/dist/components/rtk-spotlight-grid.js +1 -135
  474. package/dist/components/rtk-spotlight-indicator.js +1 -6
  475. package/dist/components/rtk-stage-toggle.js +1 -195
  476. package/dist/components/rtk-stage.js +1 -61
  477. package/dist/components/rtk-switch.js +1 -6
  478. package/dist/components/rtk-tab-bar.js +1 -6
  479. package/dist/components/rtk-text-composer-view.js +1 -6
  480. package/dist/components/rtk-text-message-view.js +1 -6
  481. package/dist/components/rtk-text-message.js +1 -6
  482. package/dist/components/rtk-tooltip.js +1 -6
  483. package/dist/components/rtk-transcript.js +1 -6
  484. package/dist/components/rtk-transcripts.js +1 -199
  485. package/dist/components/rtk-ui-provider.js +1 -281
  486. package/dist/components/rtk-viewer-count.js +1 -6
  487. package/dist/components/rtk-virtualized-participant-list.js +1 -6
  488. package/dist/components/rtk-waiting-screen.js +1 -77
  489. package/dist/docs/docs-components.d.ts +37 -0
  490. package/dist/docs/docs-components.json +5693 -3069
  491. package/dist/docs/docs-vscode.json +78 -78
  492. package/dist/esm/ChatHead-BV_pLIJ6.js +9 -0
  493. package/dist/{components/p-1a950769.js → esm/TextMessage-DRvjfMBy.js} +9 -11
  494. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
  495. package/dist/esm/breakout-rooms-Daj_55_i.js +64 -0
  496. package/dist/esm/breakout-rooms-manager-B1Qky9zO.js +301 -0
  497. package/dist/esm/{chat-1107a64f.js → chat-Zou036qQ.js} +1 -1
  498. package/dist/{components/p-9f0c9162.js → esm/config-BYcrCEso.js} +5 -4
  499. package/dist/esm/debounce-BLQbB67V.js +657 -0
  500. package/dist/{components/p-1dca17d1.js → esm/debounce-BYqYBLuN.js} +4 -6
  501. package/dist/{components/p-47314bc7.js → esm/file-6Fkktc2w.js} +1 -1
  502. package/dist/esm/{floating-ui.dom.esm-78a1e61c.js → floating-ui.dom-B1SWgSTZ.js} +3 -310
  503. package/dist/esm/hark-Dwnntwzh.js +320 -0
  504. package/dist/{components/p-bd10fae6.js → esm/index-7w76SzJW.js} +2 -2
  505. package/dist/{components/p-88bd1053.js → esm/index-BUsisVB6.js} +22 -31
  506. package/dist/esm/{index-55463a54.js → index-gJCRRBX0.js} +1198 -549
  507. package/dist/esm/index.js +13 -10
  508. package/dist/esm/{init-error-ff5ead9a.js → init-error-DE1s0fDa.js} +10 -2
  509. package/dist/esm/livestream-C0vp-Q7v.js +73 -0
  510. package/dist/esm/loader.js +3630 -2785
  511. package/dist/{components/p-556de366.js → esm/merge-CiWMx7_3.js} +133 -15
  512. package/dist/{components/p-598b792e.js → esm/notification-DcR6dHfn.js} +1 -1
  513. package/dist/esm/realtimekit-ui.js +6 -5
  514. package/dist/esm/rtk-ai-toggle.entry.js +8 -7
  515. package/dist/esm/rtk-ai-transcriptions.entry.js +15 -12
  516. package/dist/esm/rtk-ai_3.entry.js +19 -15
  517. package/dist/esm/rtk-audio-grid.entry.js +12 -8
  518. package/dist/esm/rtk-audio-tile.entry.js +13 -8
  519. package/dist/esm/rtk-audio-visualizer_4.entry.js +26 -21
  520. package/dist/esm/rtk-avatar_26.entry.js +120 -119
  521. package/dist/esm/rtk-breakout-room-manager_3.entry.js +25 -17
  522. package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +33 -34
  523. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +9 -7
  524. package/dist/esm/rtk-camera-selector_2.entry.js +20 -13
  525. package/dist/esm/rtk-camera-toggle.entry.js +8 -7
  526. package/dist/esm/rtk-caption-toggle.entry.js +11 -7
  527. package/dist/esm/rtk-chat-composer-ui.entry.js +9 -7
  528. package/dist/esm/rtk-chat-message.entry.js +8 -6
  529. package/dist/esm/rtk-chat-messages-ui.entry.js +16 -10
  530. package/dist/esm/rtk-chat-search-results.entry.js +8 -6
  531. package/dist/esm/rtk-chat-selector-ui.entry.js +9 -7
  532. package/dist/esm/rtk-chat-toggle.entry.js +16 -10
  533. package/dist/esm/rtk-clock.entry.js +11 -8
  534. package/dist/esm/rtk-controlbar-button.entry.js +5 -6
  535. package/dist/esm/rtk-controlbar.entry.js +9 -7
  536. package/dist/esm/rtk-debugger-audio_4.entry.js +42 -46
  537. package/dist/esm/rtk-debugger-toggle.entry.js +5 -6
  538. package/dist/esm/rtk-dialog-manager.entry.js +9 -8
  539. package/dist/esm/rtk-dialog.entry.js +5 -6
  540. package/dist/esm/rtk-ended-screen.entry.js +11 -7
  541. package/dist/esm/rtk-file-dropzone.entry.js +8 -6
  542. package/dist/esm/rtk-file-message_3.entry.js +11 -12
  543. package/dist/esm/rtk-fullscreen-toggle.entry.js +6 -7
  544. package/dist/esm/rtk-grid-pagination.entry.js +17 -13
  545. package/dist/esm/rtk-grid.entry.js +27 -16
  546. package/dist/esm/rtk-header.entry.js +9 -7
  547. package/dist/esm/rtk-idle-screen.entry.js +14 -8
  548. package/dist/esm/rtk-image-viewer.entry.js +7 -8
  549. package/dist/esm/rtk-information-tooltip.entry.js +8 -6
  550. package/dist/esm/rtk-leave-button.entry.js +5 -6
  551. package/dist/esm/rtk-livestream-indicator_3.entry.js +26 -35
  552. package/dist/esm/rtk-livestream-toggle.entry.js +9 -7
  553. package/dist/esm/rtk-logo.entry.js +14 -8
  554. package/dist/esm/rtk-meeting-title.entry.js +5 -6
  555. package/dist/esm/rtk-message-list-view.entry.js +12 -8
  556. package/dist/esm/rtk-mic-toggle.entry.js +8 -7
  557. package/dist/esm/rtk-mixed-grid.entry.js +16 -11
  558. package/dist/esm/rtk-more-toggle.entry.js +5 -6
  559. package/dist/esm/rtk-mute-all-button.entry.js +11 -7
  560. package/dist/esm/rtk-name-tag.entry.js +9 -8
  561. package/dist/esm/rtk-network-indicator.entry.js +11 -7
  562. package/dist/esm/rtk-notification.entry.js +13 -10
  563. package/dist/esm/rtk-notifications.entry.js +21 -13
  564. package/dist/esm/rtk-participant-count.entry.js +9 -7
  565. package/dist/esm/rtk-participant-setup.entry.js +14 -8
  566. package/dist/esm/rtk-participant_2.entry.js +24 -21
  567. package/dist/esm/rtk-participants-audio.entry.js +10 -8
  568. package/dist/esm/rtk-participants-stage-list_4.entry.js +33 -22
  569. package/dist/esm/rtk-participants-toggle.entry.js +16 -10
  570. package/dist/esm/rtk-participants.entry.js +15 -9
  571. package/dist/esm/rtk-pip-toggle.entry.js +11 -7
  572. package/dist/esm/rtk-plugin-main_2.entry.js +11 -11
  573. package/dist/esm/rtk-plugins-toggle.entry.js +16 -10
  574. package/dist/esm/rtk-poll_2.entry.js +8 -10
  575. package/dist/esm/rtk-polls-toggle.entry.js +16 -10
  576. package/dist/esm/rtk-recording-indicator.entry.js +8 -7
  577. package/dist/esm/rtk-recording-toggle.entry.js +8 -7
  578. package/dist/esm/rtk-screen-share-toggle.entry.js +8 -7
  579. package/dist/esm/rtk-screenshare-view.entry.js +9 -8
  580. package/dist/esm/rtk-settings-audio_2.entry.js +10 -10
  581. package/dist/esm/rtk-settings-toggle.entry.js +5 -6
  582. package/dist/esm/rtk-settings.entry.js +8 -7
  583. package/dist/esm/rtk-setup-screen.entry.js +11 -10
  584. package/dist/esm/rtk-sidebar-ui.entry.js +11 -7
  585. package/dist/esm/rtk-sidebar.entry.js +17 -11
  586. package/dist/esm/rtk-simple-grid.entry.js +11 -10
  587. package/dist/esm/rtk-spotlight-grid.entry.js +7 -8
  588. package/dist/esm/rtk-spotlight-indicator.entry.js +8 -7
  589. package/dist/esm/rtk-stage-toggle.entry.js +11 -7
  590. package/dist/esm/rtk-stage.entry.js +5 -6
  591. package/dist/esm/rtk-transcript.entry.js +8 -7
  592. package/dist/esm/rtk-transcripts.entry.js +14 -8
  593. package/dist/esm/rtk-ui-provider.entry.js +32 -18
  594. package/dist/esm/rtk-waiting-screen.entry.js +8 -6
  595. package/dist/{components/p-a3fc952e.js → esm/sidebar-B3trLKC3.js} +1 -1
  596. package/dist/{components/p-d5a12339.js → esm/ui-store-BtrgoOOT.js} +258 -762
  597. package/dist/realtimekit-ui/index.esm.js +1 -1
  598. package/dist/realtimekit-ui/p-04237239.entry.js +1 -0
  599. package/dist/realtimekit-ui/p-070294a1.entry.js +1 -0
  600. package/dist/realtimekit-ui/p-0d5719ea.entry.js +1 -0
  601. package/dist/realtimekit-ui/p-0fe1ced3.entry.js +1 -0
  602. package/dist/realtimekit-ui/p-105e4115.entry.js +1 -0
  603. package/dist/realtimekit-ui/{p-30fa04e9.entry.js → p-117f34c2.entry.js} +1 -1
  604. package/dist/realtimekit-ui/{p-069cc080.entry.js → p-149c0b9c.entry.js} +1 -1
  605. package/dist/realtimekit-ui/p-15d96f62.entry.js +1 -0
  606. package/dist/realtimekit-ui/p-16fe4fca.entry.js +1 -0
  607. package/dist/realtimekit-ui/p-17690ef8.entry.js +1 -0
  608. package/dist/realtimekit-ui/p-1ae8c9ea.entry.js +1 -0
  609. package/dist/realtimekit-ui/p-1f114cc0.entry.js +1 -0
  610. package/dist/realtimekit-ui/{p-d93b1e9c.entry.js → p-213b9942.entry.js} +1 -1
  611. package/dist/realtimekit-ui/p-243e3c22.entry.js +1 -0
  612. package/dist/realtimekit-ui/p-25374ae7.entry.js +1 -0
  613. package/dist/realtimekit-ui/{p-71a44776.entry.js → p-26ba0489.entry.js} +1 -1
  614. package/dist/realtimekit-ui/p-27dcaef7.entry.js +1 -0
  615. package/dist/realtimekit-ui/p-2906e52d.entry.js +1 -0
  616. package/dist/realtimekit-ui/{p-58b2f1a1.entry.js → p-2baa2443.entry.js} +1 -1
  617. package/dist/realtimekit-ui/p-2bd8f726.entry.js +1 -0
  618. package/dist/realtimekit-ui/p-2c5a9a4d.entry.js +1 -0
  619. package/dist/realtimekit-ui/p-2f438543.entry.js +1 -0
  620. package/dist/realtimekit-ui/{p-b5f0c31d.entry.js → p-34ebceb7.entry.js} +1 -1
  621. package/dist/realtimekit-ui/p-3df3b56b.entry.js +1 -0
  622. package/dist/realtimekit-ui/{p-03db9946.entry.js → p-3f297e22.entry.js} +1 -1
  623. package/dist/realtimekit-ui/p-405addc8.entry.js +1 -0
  624. package/dist/realtimekit-ui/p-450803e1.entry.js +1 -0
  625. package/dist/realtimekit-ui/p-49f22238.entry.js +1 -0
  626. package/dist/realtimekit-ui/{p-4b9450d3.entry.js → p-49feda1f.entry.js} +1 -1
  627. package/dist/realtimekit-ui/p-4c1b7ee2.entry.js +1 -0
  628. package/dist/realtimekit-ui/{p-234a709e.entry.js → p-4f264d60.entry.js} +1 -1
  629. package/dist/realtimekit-ui/{p-64b59d46.entry.js → p-560dcff9.entry.js} +1 -1
  630. package/dist/realtimekit-ui/p-56261662.entry.js +1 -0
  631. package/dist/realtimekit-ui/p-5a1918a1.entry.js +1 -0
  632. package/dist/realtimekit-ui/p-5bd05c88.entry.js +1 -0
  633. package/dist/realtimekit-ui/p-5c5ca185.entry.js +1 -0
  634. package/dist/realtimekit-ui/p-6092b383.entry.js +1 -0
  635. package/dist/realtimekit-ui/p-650339c3.entry.js +1 -0
  636. package/dist/realtimekit-ui/p-65c856c3.entry.js +1 -0
  637. package/dist/realtimekit-ui/p-69ddb3a9.entry.js +1 -0
  638. package/dist/realtimekit-ui/p-6bc7af7a.entry.js +1 -0
  639. package/dist/realtimekit-ui/p-73bd1b57.entry.js +1 -0
  640. package/dist/realtimekit-ui/p-768c3c20.entry.js +1 -0
  641. package/dist/realtimekit-ui/p-779bd93e.entry.js +1 -0
  642. package/dist/realtimekit-ui/{p-72461b1f.entry.js → p-7d4e36b0.entry.js} +1 -1
  643. package/dist/realtimekit-ui/{p-1b26c15d.entry.js → p-7ff08b19.entry.js} +1 -1
  644. package/dist/realtimekit-ui/p-836455f1.entry.js +1 -0
  645. package/dist/realtimekit-ui/p-8dcf542b.entry.js +1 -0
  646. package/dist/realtimekit-ui/{p-91795fd7.entry.js → p-9810aada.entry.js} +1 -1
  647. package/dist/realtimekit-ui/p-9b089f06.entry.js +1 -0
  648. package/dist/realtimekit-ui/p-9b93c273.entry.js +1 -0
  649. package/dist/realtimekit-ui/p-9c5cf5a3.entry.js +1 -0
  650. package/dist/realtimekit-ui/p-9cb3685c.entry.js +1 -0
  651. package/dist/realtimekit-ui/p-B1SWgSTZ.js +1 -0
  652. package/dist/realtimekit-ui/{p-7e3c2d64.js → p-BCaKYPpD.js} +1 -1
  653. package/dist/realtimekit-ui/p-BCuMxcZN.js +1 -0
  654. package/dist/realtimekit-ui/p-BFTU3MAI.js +1 -0
  655. package/dist/realtimekit-ui/p-BIplIdLH.js +1 -0
  656. package/dist/realtimekit-ui/p-BJvHNbaa.js +1 -0
  657. package/dist/realtimekit-ui/p-BSWYrdZA.js +1 -0
  658. package/dist/realtimekit-ui/p-BWNToYSb.js +1 -0
  659. package/dist/realtimekit-ui/p-Bbls2zyp.js +1 -0
  660. package/dist/realtimekit-ui/p-C0vp-Q7v.js +1 -0
  661. package/dist/realtimekit-ui/p-C5Ah4uY5.js +1 -0
  662. package/dist/realtimekit-ui/p-CAqYddlg.js +1 -0
  663. package/dist/realtimekit-ui/{p-eccb6d78.js → p-CTFO-5XH.js} +1 -1
  664. package/dist/realtimekit-ui/p-CmmyVCoN.js +1 -0
  665. package/dist/realtimekit-ui/p-CqWk07gT.js +1 -0
  666. package/dist/realtimekit-ui/p-D9HGXWKc.js +1 -0
  667. package/dist/realtimekit-ui/p-DE1s0fDa.js +1 -0
  668. package/dist/realtimekit-ui/p-Daj_55_i.js +1 -0
  669. package/dist/realtimekit-ui/p-Dg4b2aZr.js +1 -0
  670. package/dist/realtimekit-ui/p-DpAk_WQ6.js +1 -0
  671. package/dist/realtimekit-ui/p-DxDYE5-a.js +1 -0
  672. package/dist/realtimekit-ui/p-FdeAvICb.js +1 -0
  673. package/dist/realtimekit-ui/p-GSFejkz7.js +1 -0
  674. package/dist/realtimekit-ui/{p-3306b122.entry.js → p-a060fa07.entry.js} +1 -1
  675. package/dist/realtimekit-ui/{p-e0426f17.entry.js → p-a8b77530.entry.js} +1 -1
  676. package/dist/realtimekit-ui/p-ae94a77b.entry.js +1 -0
  677. package/dist/realtimekit-ui/p-b77aab62.entry.js +1 -0
  678. package/dist/realtimekit-ui/p-b81bfd1b.entry.js +1 -0
  679. package/dist/realtimekit-ui/p-bb7b542e.entry.js +1 -0
  680. package/dist/realtimekit-ui/p-c0fb33e4.entry.js +1 -0
  681. package/dist/realtimekit-ui/{p-88a01a0c.entry.js → p-c25c6602.entry.js} +1 -1
  682. package/dist/realtimekit-ui/p-c90deeae.entry.js +1 -0
  683. package/dist/realtimekit-ui/p-ce4105e5.entry.js +1 -0
  684. package/dist/realtimekit-ui/p-d0baf267.entry.js +1 -0
  685. package/dist/realtimekit-ui/p-d39bd2e9.entry.js +1 -0
  686. package/dist/realtimekit-ui/p-d5ccf7d6.entry.js +1 -0
  687. package/dist/realtimekit-ui/{p-b89873a4.entry.js → p-d75ea8a3.entry.js} +1 -1
  688. package/dist/realtimekit-ui/p-db957a5c.entry.js +1 -0
  689. package/dist/realtimekit-ui/{p-d4a2594a.entry.js → p-ddd3808d.entry.js} +1 -1
  690. package/dist/realtimekit-ui/p-e0837ae7.entry.js +1 -0
  691. package/dist/realtimekit-ui/p-e12de42e.entry.js +1 -0
  692. package/dist/realtimekit-ui/p-e2f9a4fc.entry.js +1 -0
  693. package/dist/realtimekit-ui/{p-20390946.entry.js → p-e5293ed6.entry.js} +1 -1
  694. package/dist/realtimekit-ui/p-e87aa0f9.entry.js +1 -0
  695. package/dist/realtimekit-ui/p-e8823daa.entry.js +1 -0
  696. package/dist/realtimekit-ui/p-f101d6f9.entry.js +1 -0
  697. package/dist/realtimekit-ui/p-f4c228c8.entry.js +1 -0
  698. package/dist/realtimekit-ui/p-f5688e34.entry.js +1 -0
  699. package/dist/realtimekit-ui/p-fb973221.entry.js +1 -0
  700. package/dist/realtimekit-ui/p-fcde019e.entry.js +1 -0
  701. package/dist/realtimekit-ui/p-fd29249a.entry.js +1 -0
  702. package/dist/realtimekit-ui/p-gJCRRBX0.js +2 -0
  703. package/dist/realtimekit-ui/p-jvwnrxra.js +1 -0
  704. package/dist/realtimekit-ui/p-t72veIFj.js +1 -0
  705. package/dist/realtimekit-ui/p-uIA60Puf.js +1 -0
  706. package/dist/realtimekit-ui/p-vBfDtD_u.js +1 -0
  707. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  708. package/dist/types/components/rtk-chat/rtk-chat.d.ts +1 -1
  709. package/dist/types/components.d.ts +1752 -255
  710. package/dist/types/stencil-public-runtime.d.ts +193 -12
  711. package/dist/types/utils/init-error.d.ts +6 -2
  712. package/dist/types/utils/livestream.d.ts +60 -0
  713. package/dist/types/utils/sync-with-store/ui-store.d.ts +1 -1
  714. package/package.json +2 -3
  715. package/dist/cjs/ChatHead-777e6a2d.js +0 -13
  716. package/dist/cjs/debounce-6080cc73.js +0 -544
  717. package/dist/cjs/hark-c97d0a59.js +0 -301
  718. package/dist/components/p-00568bea.js +0 -159
  719. package/dist/components/p-026049ee.js +0 -81
  720. package/dist/components/p-03e354cd.js +0 -82
  721. package/dist/components/p-04ac37d4.js +0 -69
  722. package/dist/components/p-0529c72c.js +0 -218
  723. package/dist/components/p-084f7d6c.js +0 -95
  724. package/dist/components/p-08e39399.js +0 -199
  725. package/dist/components/p-0db812c2.js +0 -189
  726. package/dist/components/p-0e02697c.js +0 -85
  727. package/dist/components/p-1a7dd46a.js +0 -390
  728. package/dist/components/p-1cb276df.js +0 -104
  729. package/dist/components/p-240d48d1.js +0 -96
  730. package/dist/components/p-278a613b.js +0 -115
  731. package/dist/components/p-29e60132.js +0 -437
  732. package/dist/components/p-2f2b07a1.js +0 -168
  733. package/dist/components/p-303a7f1f.js +0 -122
  734. package/dist/components/p-32b95100.js +0 -128
  735. package/dist/components/p-32f14b1a.js +0 -260
  736. package/dist/components/p-36ad7fe2.js +0 -98
  737. package/dist/components/p-38d22d57.js +0 -11
  738. package/dist/components/p-3ae130f7.js +0 -178
  739. package/dist/components/p-3e0452c4.js +0 -48
  740. package/dist/components/p-3eedb9db.js +0 -68
  741. package/dist/components/p-3f882e7c.js +0 -299
  742. package/dist/components/p-42c2e598.js +0 -103
  743. package/dist/components/p-4351785c.js +0 -103
  744. package/dist/components/p-467abb0c.js +0 -159
  745. package/dist/components/p-48b6fb95.js +0 -327
  746. package/dist/components/p-4e02ee0f.js +0 -131
  747. package/dist/components/p-51b6f520.js +0 -43
  748. package/dist/components/p-549ab58f.js +0 -108
  749. package/dist/components/p-5654365f.js +0 -94
  750. package/dist/components/p-592cd396.js +0 -105
  751. package/dist/components/p-5995471c.js +0 -125
  752. package/dist/components/p-5c55e43b.js +0 -115
  753. package/dist/components/p-5d3174d1.js +0 -127
  754. package/dist/components/p-632cbbe7.js +0 -164
  755. package/dist/components/p-695e5dc5.js +0 -223
  756. package/dist/components/p-6a0a1a25.js +0 -101
  757. package/dist/components/p-6bd3b29c.js +0 -97
  758. package/dist/components/p-6c6cefb0.js +0 -224
  759. package/dist/components/p-70c0c7ce.js +0 -179
  760. package/dist/components/p-78db5933.js +0 -92
  761. package/dist/components/p-7d8d9693.js +0 -119
  762. package/dist/components/p-8133c228.js +0 -79
  763. package/dist/components/p-82df4307.js +0 -114
  764. package/dist/components/p-84deab1d.js +0 -126
  765. package/dist/components/p-85587a5c.js +0 -50
  766. package/dist/components/p-92ac782c.js +0 -37205
  767. package/dist/components/p-95721bd2.js +0 -159
  768. package/dist/components/p-96be6716.js +0 -120
  769. package/dist/components/p-9c89d7b1.js +0 -131
  770. package/dist/components/p-9f5d24b0.js +0 -191
  771. package/dist/components/p-a0a863fa.js +0 -61
  772. package/dist/components/p-a3c85ced.js +0 -177
  773. package/dist/components/p-a6cf88b5.js +0 -146
  774. package/dist/components/p-a83ccdbd.js +0 -40
  775. package/dist/components/p-a9d577bb.js +0 -271
  776. package/dist/components/p-ab37c121.js +0 -181
  777. package/dist/components/p-ae373651.js +0 -4028
  778. package/dist/components/p-b1a93be0.js +0 -1945
  779. package/dist/components/p-b1a9a7c4.js +0 -214
  780. package/dist/components/p-b1aeb013.js +0 -113
  781. package/dist/components/p-b29d03cf.js +0 -77
  782. package/dist/components/p-b4068392.js +0 -60
  783. package/dist/components/p-b75297d7.js +0 -299
  784. package/dist/components/p-b98fd0eb.js +0 -102
  785. package/dist/components/p-bece0226.js +0 -141
  786. package/dist/components/p-bf64e0af.js +0 -76
  787. package/dist/components/p-c3c8f309.js +0 -127
  788. package/dist/components/p-c82e13b1.js +0 -92
  789. package/dist/components/p-c9f704c4.js +0 -349
  790. package/dist/components/p-cbdd7a99.js +0 -542
  791. package/dist/components/p-cedfbbd4.js +0 -105
  792. package/dist/components/p-cf1903b1.js +0 -60
  793. package/dist/components/p-cfa0b5c7.js +0 -26
  794. package/dist/components/p-d411c80b.js +0 -463
  795. package/dist/components/p-d48b4170.js +0 -159
  796. package/dist/components/p-d83124b1.js +0 -86
  797. package/dist/components/p-de0b23a0.js +0 -210
  798. package/dist/components/p-e0129657.js +0 -201
  799. package/dist/components/p-e8809896.js +0 -147
  800. package/dist/components/p-ea359bb7.js +0 -90
  801. package/dist/components/p-ea4aa3bf.js +0 -86
  802. package/dist/components/p-ed0fad6d.js +0 -166
  803. package/dist/components/p-efabd2ce.js +0 -58
  804. package/dist/components/p-f179a6ff.js +0 -80
  805. package/dist/components/p-f867ebba.js +0 -122
  806. package/dist/components/p-f9cbb223.js +0 -127
  807. package/dist/components/p-f9f08610.js +0 -157
  808. package/dist/esm/ChatHead-148558a8.js +0 -11
  809. package/dist/esm/ResizeObserver.es-02979d4e.js +0 -928
  810. package/dist/esm/TextMessage-0ab2db20.js +0 -67
  811. package/dist/esm/browser-24d8ab3e.js +0 -3
  812. package/dist/esm/config-f3f01b9a.js +0 -352
  813. package/dist/esm/date-b1f78dea.js +0 -32
  814. package/dist/esm/debounce-0169a54d.js +0 -542
  815. package/dist/esm/debounce-430cbf00.js +0 -329
  816. package/dist/esm/file-6114f1a9.js +0 -57
  817. package/dist/esm/full-screen-d36ffc68.js +0 -50
  818. package/dist/esm/grid-a3ca5a3e.js +0 -96
  819. package/dist/esm/hark-6327d91e.js +0 -299
  820. package/dist/esm/index-3f51790f.js +0 -224
  821. package/dist/esm/index-b81ca899.js +0 -92
  822. package/dist/esm/join-error-e87be64a.js +0 -29
  823. package/dist/esm/merge-201ecd5c.js +0 -820
  824. package/dist/esm/notification-1ebf7700.js +0 -37
  825. package/dist/esm/scroll-2d8e810c.js +0 -13
  826. package/dist/esm/sidebar-a13dc215.js +0 -49
  827. package/dist/esm/ui-store-1bc7abc6.js +0 -4033
  828. package/dist/realtimekit-ui/p-012cd22a.entry.js +0 -1
  829. package/dist/realtimekit-ui/p-026e8157.entry.js +0 -1
  830. package/dist/realtimekit-ui/p-083e53cc.entry.js +0 -1
  831. package/dist/realtimekit-ui/p-0bd95245.entry.js +0 -1
  832. package/dist/realtimekit-ui/p-1e19ef2c.entry.js +0 -1
  833. package/dist/realtimekit-ui/p-217dcd9f.entry.js +0 -1
  834. package/dist/realtimekit-ui/p-26ffb189.entry.js +0 -1
  835. package/dist/realtimekit-ui/p-3540d2b0.entry.js +0 -1
  836. package/dist/realtimekit-ui/p-3707f1e0.entry.js +0 -1
  837. package/dist/realtimekit-ui/p-39c48b22.entry.js +0 -1
  838. package/dist/realtimekit-ui/p-3f882e7c.js +0 -1
  839. package/dist/realtimekit-ui/p-41fa7b4f.js +0 -1
  840. package/dist/realtimekit-ui/p-44fb5d40.entry.js +0 -1
  841. package/dist/realtimekit-ui/p-4564c9ff.entry.js +0 -1
  842. package/dist/realtimekit-ui/p-4ec77793.js +0 -1
  843. package/dist/realtimekit-ui/p-548f72ee.entry.js +0 -1
  844. package/dist/realtimekit-ui/p-5564adad.entry.js +0 -1
  845. package/dist/realtimekit-ui/p-5623d82e.entry.js +0 -1
  846. package/dist/realtimekit-ui/p-5862bcba.entry.js +0 -1
  847. package/dist/realtimekit-ui/p-62c4d1ba.entry.js +0 -1
  848. package/dist/realtimekit-ui/p-667c84b1.js +0 -1
  849. package/dist/realtimekit-ui/p-6b177ee6.entry.js +0 -1
  850. package/dist/realtimekit-ui/p-6c9a2464.entry.js +0 -1
  851. package/dist/realtimekit-ui/p-7649168e.entry.js +0 -1
  852. package/dist/realtimekit-ui/p-76f87172.entry.js +0 -1
  853. package/dist/realtimekit-ui/p-79060698.entry.js +0 -1
  854. package/dist/realtimekit-ui/p-7bdd688b.entry.js +0 -1
  855. package/dist/realtimekit-ui/p-7e4a3510.entry.js +0 -1
  856. package/dist/realtimekit-ui/p-80be0156.entry.js +0 -1
  857. package/dist/realtimekit-ui/p-85818728.entry.js +0 -1
  858. package/dist/realtimekit-ui/p-873a645c.entry.js +0 -1
  859. package/dist/realtimekit-ui/p-8c971978.entry.js +0 -1
  860. package/dist/realtimekit-ui/p-8cc4f116.entry.js +0 -1
  861. package/dist/realtimekit-ui/p-8edfe6fa.entry.js +0 -1
  862. package/dist/realtimekit-ui/p-8fa0ea33.entry.js +0 -1
  863. package/dist/realtimekit-ui/p-91c8f9d1.entry.js +0 -1
  864. package/dist/realtimekit-ui/p-93f88675.entry.js +0 -1
  865. package/dist/realtimekit-ui/p-9727a165.js +0 -1
  866. package/dist/realtimekit-ui/p-a0471508.entry.js +0 -1
  867. package/dist/realtimekit-ui/p-a056fd35.entry.js +0 -1
  868. package/dist/realtimekit-ui/p-a2693bee.entry.js +0 -1
  869. package/dist/realtimekit-ui/p-a47c017b.entry.js +0 -1
  870. package/dist/realtimekit-ui/p-a599f720.js +0 -2
  871. package/dist/realtimekit-ui/p-a9ab826e.entry.js +0 -1
  872. package/dist/realtimekit-ui/p-ae0bb894.js +0 -1
  873. package/dist/realtimekit-ui/p-b1a93be0.js +0 -1
  874. package/dist/realtimekit-ui/p-b27886ff.entry.js +0 -1
  875. package/dist/realtimekit-ui/p-b3f1ad3b.entry.js +0 -1
  876. package/dist/realtimekit-ui/p-b86e3e01.entry.js +0 -1
  877. package/dist/realtimekit-ui/p-bde05d24.entry.js +0 -1
  878. package/dist/realtimekit-ui/p-c57e0778.entry.js +0 -1
  879. package/dist/realtimekit-ui/p-c6a8ef1e.entry.js +0 -1
  880. package/dist/realtimekit-ui/p-c8bc3bb1.entry.js +0 -1
  881. package/dist/realtimekit-ui/p-c8f7b427.entry.js +0 -1
  882. package/dist/realtimekit-ui/p-c9d62ba7.entry.js +0 -1
  883. package/dist/realtimekit-ui/p-cbdd7a99.js +0 -1
  884. package/dist/realtimekit-ui/p-cfa0b5c7.js +0 -1
  885. package/dist/realtimekit-ui/p-d0959773.entry.js +0 -1
  886. package/dist/realtimekit-ui/p-d59e0ecc.entry.js +0 -1
  887. package/dist/realtimekit-ui/p-d790f2be.entry.js +0 -1
  888. package/dist/realtimekit-ui/p-d7fd359f.entry.js +0 -1
  889. package/dist/realtimekit-ui/p-daf01d45.entry.js +0 -1
  890. package/dist/realtimekit-ui/p-db2a6aed.entry.js +0 -1
  891. package/dist/realtimekit-ui/p-de170ad4.entry.js +0 -1
  892. package/dist/realtimekit-ui/p-de31f5b0.entry.js +0 -1
  893. package/dist/realtimekit-ui/p-deaae495.entry.js +0 -1
  894. package/dist/realtimekit-ui/p-e59cc7d0.entry.js +0 -1
  895. package/dist/realtimekit-ui/p-ea03b1a0.entry.js +0 -1
  896. package/dist/realtimekit-ui/p-ede50497.entry.js +0 -1
  897. package/dist/realtimekit-ui/p-f47d4fe8.js +0 -1
  898. package/dist/realtimekit-ui/p-f52fdfb4.entry.js +0 -1
  899. package/dist/realtimekit-ui/p-fd80c28e.entry.js +0 -1
  900. package/dist/realtimekit-ui/p-ff971eea.entry.js +0 -1
  901. package/loader/package.json +0 -11
  902. /package/dist/cjs/{ResizeObserver.es-ba961f16.js → ResizeObserver.es-26EdCpEA.js} +0 -0
  903. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  904. /package/dist/cjs/{browser-5538db4d.js → browser-qKzDfwbO.js} +0 -0
  905. /package/dist/cjs/{date-61ffcd0a.js → date-CObAPgSZ.js} +0 -0
  906. /package/dist/cjs/{full-screen-b02d13dd.js → full-screen-BRlJJI9n.js} +0 -0
  907. /package/dist/cjs/{grid-edc342a7.js → grid-D_7WOWNI.js} +0 -0
  908. /package/dist/cjs/{join-error-c1eed98e.js → join-error-CZSJQxsP.js} +0 -0
  909. /package/dist/cjs/{scroll-c6404609.js → scroll-uQ4eWvC-.js} +0 -0
  910. /package/dist/cjs/{string-9bce3253.js → string-C1A6N-tA.js} +0 -0
  911. /package/dist/{realtimekit-ui/p-0752f2ba.js → components/p-BIplIdLH.js} +0 -0
  912. /package/dist/{realtimekit-ui/p-05186172.js → components/p-CAqYddlg.js} +0 -0
  913. /package/dist/{realtimekit-ui/p-b13ddb7d.js → components/p-CmmyVCoN.js} +0 -0
  914. /package/dist/{realtimekit-ui/p-3974d97a.js → components/p-GSFejkz7.js} +0 -0
  915. /package/dist/{realtimekit-ui/p-382270d8.js → components/p-jvwnrxra.js} +0 -0
  916. /package/dist/{realtimekit-ui/p-f7c2daba.js → components/p-vBfDtD_u.js} +0 -0
  917. /package/dist/{components/p-f47d4fe8.js → esm/ResizeObserver.es-FdeAvICb.js} +0 -0
  918. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  919. /package/dist/{components/p-05186172.js → esm/browser-CAqYddlg.js} +0 -0
  920. /package/dist/{components/p-382270d8.js → esm/date-jvwnrxra.js} +0 -0
  921. /package/dist/{components/p-3974d97a.js → esm/full-screen-GSFejkz7.js} +0 -0
  922. /package/dist/{components/p-b13ddb7d.js → esm/grid-CmmyVCoN.js} +0 -0
  923. /package/dist/{components/p-f7c2daba.js → esm/join-error-vBfDtD_u.js} +0 -0
  924. /package/dist/{components/p-0752f2ba.js → esm/scroll-BIplIdLH.js} +0 -0
  925. /package/dist/esm/{string-068ce30a.js → string-vBD2htwQ.js} +0 -0
  926. /package/dist/realtimekit-ui/{p-e1255160.js → p-DQuL1Twl.js} +0 -0
  927. /package/dist/realtimekit-ui/{p-6f211c3e.js → p-vBD2htwQ.js} +0 -0
@@ -1 +1 @@
1
- import{r as i,d as t,h as s,a as o}from"./p-a599f720.js";import{e,i as a}from"./p-9727a165.js";import{S as l}from"./p-7e3c2d64.js";var n=function(i,t,s,o){var e,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,t,s,o);else for(var n=i.length-1;n>=0;n--)(e=i[n])&&(l=(a<3?e(l):a>3?e(t,s,l):e(t,s))||l);return a>3&&l&&Object.defineProperty(t,s,l),l};const d=class{constructor(s){i(this,s),this.stateUpdate=t(this,"rtkStateUpdate",7),this.audioUpdateListener=({audioEnabled:i})=>{this.audioEnabled=i},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:i,message:t})=>{"audio"===i&&(this.micPermission=t)},this.meetingPermissionsUpdateListener=i=>{var t;(null===(t=null==i?void 0:i.media)||void 0===t?void 0:t.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.iconPack=e,this.t=a(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.toggleMic=()=>{var i,t,s,o,e,a,l,n,d,h,r,u;if(null===(i=this.meeting)||void 0===i||i.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:Boolean(null===(s=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===s?void 0:s.audioEnabled),permission:this.micPermission,canProduce:null===(a=null===(e=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===e?void 0:e.permissions)||void 0===a?void 0:a.canProduceAudio}},webinar:{stageStatus:null===(n=null===(l=this.meeting)||void 0===l?void 0:l.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(h=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===h?void 0:h.status},moduleExists:{self:Boolean(null===(r=this.meeting)||void 0===r?void 0:r.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const v=null===(u=this.meeting)||void 0===u?void 0:u.self;null!=v&&this.canProduceAudio&&(v.audioEnabled?v.disableAudio():v.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var i,t,s,o,e,a,l;null===(i=this.meeting)||void 0===i||i.self.removeListener("audioUpdate",this.audioUpdateListener),null===(t=this.meeting)||void 0===t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(o=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.stageStatusListener),null===(l=null===(a=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===a?void 0:a.permissions)||void 0===l||l.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}meetingChanged(i){var t,s;if(null!=i){const{self:o,stage:e}=i;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=i.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=o.audioEnabled,this.stageStatus=i.stage.status,o.addListener("audioUpdate",this.audioUpdateListener),o.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==e||e.addListener("stageStatusUpdate",this.stageStatusListener),null===(s=null===(t=i.self)||void 0===t?void 0:t.permissions)||void 0===s||s.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let i="",t="",s="",o={},e=this.hasPermissionError(),a="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!e?(t=this.t("mic_on"),s=this.iconPack.mic_on):(t=this.t("mic_off"),s=this.iconPack.mic_off,o["red-icon"]=!0),i=this.t(a?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:i,label:t,icon:s,classList:o,showWarning:e||a,disable:e}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return s(o,{"data-hidden":!0});const{tooltipLabel:i,label:t,icon:e,classList:a,showWarning:l,disable:n}=this.getState();return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:i,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,class:a,onClick:this.toggleMic,showWarning:l,disabled:n})))}static get watchers(){return{meeting:["meetingChanged"]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",void 0),n([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_mic_toggle}
1
+ import{r as i,d as t,h as s,a as o}from"./p-gJCRRBX0.js";import{e,i as a}from"./p-uIA60Puf.js";import{S as l}from"./p-BCaKYPpD.js";var n=function(i,t,s,o){var e,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,t,s,o);else for(var n=i.length-1;n>=0;n--)(e=i[n])&&(l=(a<3?e(l):a>3?e(t,s,l):e(t,s))||l);return a>3&&l&&Object.defineProperty(t,s,l),l};const d=class{constructor(s){i(this,s),this.stateUpdate=t(this,"rtkStateUpdate",7),this.audioUpdateListener=({audioEnabled:i})=>{this.audioEnabled=i},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:i,message:t})=>{"audio"===i&&(this.micPermission=t)},this.meetingPermissionsUpdateListener=i=>{var t;(null===(t=null==i?void 0:i.media)||void 0===t?void 0:t.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.iconPack=e,this.t=a(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.toggleMic=()=>{var i,t,s,o,e,a,l,n,d,h,r,u;if(null===(i=this.meeting)||void 0===i||i.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:Boolean(null===(s=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===s?void 0:s.audioEnabled),permission:this.micPermission,canProduce:null===(a=null===(e=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===e?void 0:e.permissions)||void 0===a?void 0:a.canProduceAudio}},webinar:{stageStatus:null===(n=null===(l=this.meeting)||void 0===l?void 0:l.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(h=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===h?void 0:h.status},moduleExists:{self:Boolean(null===(r=this.meeting)||void 0===r?void 0:r.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const v=null===(u=this.meeting)||void 0===u?void 0:u.self;null!=v&&this.canProduceAudio&&(v.audioEnabled?v.disableAudio():v.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var i,t,s,o,e,a,l;null===(i=this.meeting)||void 0===i||i.self.removeListener("audioUpdate",this.audioUpdateListener),null===(t=this.meeting)||void 0===t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(o=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.stageStatusListener),null===(l=null===(a=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===a?void 0:a.permissions)||void 0===l||l.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}meetingChanged(i){var t,s;if(null!=i){const{self:o,stage:e}=i;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=i.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=o.audioEnabled,this.stageStatus=i.stage.status,o.addListener("audioUpdate",this.audioUpdateListener),o.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==e||e.addListener("stageStatusUpdate",this.stageStatusListener),null===(s=null===(t=i.self)||void 0===t?void 0:t.permissions)||void 0===s||s.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let i="",t="",s="",o={},e=this.hasPermissionError(),a="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!e?(t=this.t("mic_on"),s=this.iconPack.mic_on):(t=this.t("mic_off"),s=this.iconPack.mic_off,o["red-icon"]=!0),i=this.t(a?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:i,label:t,icon:s,classList:o,showWarning:e||a,disable:e}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return s(o,{"data-hidden":!0});const{tooltipLabel:i,label:t,icon:e,classList:a,showWarning:l,disable:n}=this.getState();return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:i,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,class:a,onClick:this.toggleMic,showWarning:l,disabled:n})))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",void 0),n([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_mic_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as n,i as a}from"./p-uIA60Puf.js";import{b as o}from"./p-D9HGXWKc.js";import{S as l}from"./p-BCaKYPpD.js";import"./p-C0vp-Q7v.js";var h=function(t,i,s,e){var n,a=arguments.length,o=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(a<3?n(o):a>3?n(i,s,o):n(i,s))||o);return a>3&&o&&Object.defineProperty(i,s,o),o};const r=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=a(),this.pluginsActive=!1,this.canViewPlugins=!1,this.updateCanView=()=>{this.canViewPlugins=o(this.meeting)}}disconnectedCallback(){var t,i,s,e;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pluginsUpdate",this.updateCanView)}connectedCallback(){this.statesChanged(this.states),this.meetingChanged(this.meeting)}meetingChanged(t){var i,s;t&&(this.canViewPlugins=o(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),null===(s=null==t?void 0:t.self)||void 0===s||s.permissions.addListener("pluginsUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pluginsActive=!0===t.activeSidebar&&"plugins"===t.sidebar)}togglePlugins(){const t=this.states;this.pluginsActive=!((null==t?void 0:t.activeSidebar)&&"plugins"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pluginsActive,sidebar:this.pluginsActive?"plugins":void 0,activeMoreMenu:!1})}handlePluginsActiveChange(){this.pluginsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPlugins)return s(e,{"data-hidden":!0});const t=this.t("plugins");return s(e,{title:t},s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pluginsActive},onClick:()=>this.togglePlugins(),icon:this.iconPack.rocket,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pluginsActive:[{handlePluginsActiveChange:0}]}}};h([l()],r.prototype,"meeting",void 0),h([l()],r.prototype,"states",void 0),h([l()],r.prototype,"iconPack",void 0),h([l()],r.prototype,"t",void 0),r.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{r as rtk_plugins_toggle}
@@ -1 +1 @@
1
- import{r as t,d as e,h as i,a as o}from"./p-a599f720.js";import{i as a,e as s}from"./p-9727a165.js";import{S as r}from"./p-7e3c2d64.js";var n=function(t,e,i,o){var a,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(s<3?a(r):s>3?a(e,i,r):a(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const c=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.t=a(),this.iconPack=s}toggleDebugger(){var t;this.stateUpdate.emit({activeDebugger:!(null===(t=this.states)||void 0===t?void 0:t.activeDebugger),activeMoreMenu:!1})}render(){return i(o,{key:"33f74fc915ee6fe35432cda13c27812bc505e516",title:this.t("Troubleshooting")},i("rtk-controlbar-button",{key:"24981c8bbaaa255dd0c7f77d9ef13eee0c9939a7",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleDebugger(),icon:this.iconPack.debug,label:this.t("Troubleshooting"),variant:this.variant}))}};n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"t",void 0),n([r()],c.prototype,"iconPack",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_debugger_toggle}
1
+ import{r as t,d as e,h as i,a as o}from"./p-gJCRRBX0.js";import{i as a,e as s}from"./p-uIA60Puf.js";import{S as r}from"./p-BCaKYPpD.js";var n=function(t,e,i,o){var a,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(s<3?a(r):s>3?a(e,i,r):a(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const c=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.t=a(),this.iconPack=s}toggleDebugger(){var t;this.stateUpdate.emit({activeDebugger:!(null===(t=this.states)||void 0===t?void 0:t.activeDebugger),activeMoreMenu:!1})}render(){return i(o,{key:"33f74fc915ee6fe35432cda13c27812bc505e516",title:this.t("Troubleshooting")},i("rtk-controlbar-button",{key:"24981c8bbaaa255dd0c7f77d9ef13eee0c9939a7",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleDebugger(),icon:this.iconPack.debug,label:this.t("Troubleshooting"),variant:this.variant}))}};n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"t",void 0),n([r()],c.prototype,"iconPack",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_debugger_toggle}
@@ -1 +1 @@
1
- import{r as t,d as s,h as i,a as e}from"./p-a599f720.js";import{e as h,i as a}from"./p-9727a165.js";import{S as r}from"./p-7e3c2d64.js";var n=function(t,s,i,e){var h,a=arguments.length,r=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(h=t[n])&&(r=(a<3?h(r):a>3?h(s,i,r):h(s,i))||r);return a>3&&r&&Object.defineProperty(s,i,r),r};const o=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,c=class{constructor(i){t(this,i),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=h,this.t=a(),this.maxScreenShareCount=-1,this.screenShareCount=0,this.screenShareEnabled=!1,this.canScreenShare=!1,this.shareScreenPermission="NOT_REQUESTED",this.screenShareState={tooltipLabel:this.t("screenshare.start"),label:this.t("screenshare.start"),icon:this.iconPack.share_screen_start,classList:{},showWarning:!1,disable:!1},this.stageStatus="OFF_STAGE",this.screenShareListener=()=>{const t=this.meeting.participants.active.toArray().filter((t=>t.screenShareEnabled)).length;this.screenShareCount=t+(this.meeting.self.screenShareEnabled?1:0),this.screenShareEnabled=this.meeting.self.screenShareEnabled,this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}})},this.participantLeftListener=({screenShareEnabled:t})=>{t&&(this.screenShareCount=Math.max(this.screenShareCount-1,0),this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}}))},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare},this.mediaPermissionUpdateListener=({kind:t,message:s})=>{"screenshare"===t&&(this.shareScreenPermission=s,this.getState(),"COULD_NOT_START"===s&&this.apiError.emit({trace:this.t("screenshare.permissions"),message:this.t("screenshare.error.unknown")}),this.hasPermissionError())&&this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}})},this.reachedMaxScreenShares=()=>this.maxScreenShareCount>0&&this.screenShareCount>=this.maxScreenShareCount,this.toggleScreenShare=async()=>{var t;if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const s=null===(t=this.meeting)||void 0===t?void 0:t.self;this.screenShareEnabled?s.disableScreenShare():null==s||!this.canScreenShare||this.reachedMaxScreenShares()||this.hasPermissionError()||(this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0}),await s.enableScreenShare(),this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!1}),this.stateUpdate.emit({activeMoreMenu:!1}))}}connectedCallback(){o()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,s,i,e,h,a;null===(t=this.meeting)||void 0===t||t.participants.joined.removeListener("screenShareUpdate",this.screenShareListener),null===(s=this.meeting)||void 0===s||s.participants.joined.removeListener("participantLeft",this.participantLeftListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("screenShareUpdate",this.screenShareListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(h=this.meeting)||void 0===h?void 0:h.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:s,stage:i}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=s.config.maxScreenShareCount,this.screenShareEnabled=s.screenShareEnabled;let e=0;for(const s of t.participants.joined.toArray())s.screenShareEnabled&&e++;this.screenShareCount=e,this.getState(),t.__internals__.logger.info("rtkScreenShare::initialise",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount,maxAllowedCount:this.maxScreenShareCount}}}),this.stageStatus=t.stage.status,t.participants.joined.addListener("screenShareUpdate",this.screenShareListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),s.addListener("screenShareUpdate",this.screenShareListener),s.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==i||i.addListener("stageStatusUpdate",this.stageStatusListener)}}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){let t="",s="",i="",e={};const h=this.hasPermissionError()&&!this.screenShareEnabled,a=this.reachedMaxScreenShares()&&!this.screenShareEnabled,r="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!h?(s=this.t("screenshare.stop"),i=this.iconPack.share_screen_stop,e["red-icon"]=!0):(s=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(t=this.t("perm_sys_denied.screenshare"),e["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(t=this.t("perm_denied.screenshare"),e["red-icon"]=!0):t=s,a&&(t=this.t("screenshare.error.max_count")),r&&(t=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:t,label:s,icon:i,classList:e,disable:h||a,showWarning:h||a||r}}render(){return o()&&this.canScreenShare&&!["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus)?i(e,{title:this.screenShareState.label},i("rtk-tooltip",{placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.toggleScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}))):i(e,{"data-hidden":!0})}static get watchers(){return{meeting:["meetingChanged"]}}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{c as rtk_screen_share_toggle}
1
+ import{r as t,d as s,h as i,a as e}from"./p-gJCRRBX0.js";import{e as h,i as a}from"./p-uIA60Puf.js";import{S as r}from"./p-BCaKYPpD.js";var n=function(t,s,i,e){var h,a=arguments.length,r=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(h=t[n])&&(r=(a<3?h(r):a>3?h(s,i,r):h(s,i))||r);return a>3&&r&&Object.defineProperty(s,i,r),r};const o=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,c=class{constructor(i){t(this,i),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=h,this.t=a(),this.maxScreenShareCount=-1,this.screenShareCount=0,this.screenShareEnabled=!1,this.canScreenShare=!1,this.shareScreenPermission="NOT_REQUESTED",this.screenShareState={tooltipLabel:this.t("screenshare.start"),label:this.t("screenshare.start"),icon:this.iconPack.share_screen_start,classList:{},showWarning:!1,disable:!1},this.stageStatus="OFF_STAGE",this.screenShareListener=()=>{const t=this.meeting.participants.active.toArray().filter((t=>t.screenShareEnabled)).length;this.screenShareCount=t+(this.meeting.self.screenShareEnabled?1:0),this.screenShareEnabled=this.meeting.self.screenShareEnabled,this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}})},this.participantLeftListener=({screenShareEnabled:t})=>{t&&(this.screenShareCount=Math.max(this.screenShareCount-1,0),this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}}))},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare},this.mediaPermissionUpdateListener=({kind:t,message:s})=>{"screenshare"===t&&(this.shareScreenPermission=s,this.getState(),"COULD_NOT_START"===s&&this.apiError.emit({trace:this.t("screenshare.permissions"),message:this.t("screenshare.error.unknown")}),this.hasPermissionError())&&this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}})},this.reachedMaxScreenShares=()=>this.maxScreenShareCount>0&&this.screenShareCount>=this.maxScreenShareCount,this.toggleScreenShare=async()=>{var t;if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const s=null===(t=this.meeting)||void 0===t?void 0:t.self;this.screenShareEnabled?s.disableScreenShare():null==s||!this.canScreenShare||this.reachedMaxScreenShares()||this.hasPermissionError()||(this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0}),await s.enableScreenShare(),this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!1}),this.stateUpdate.emit({activeMoreMenu:!1}))}}connectedCallback(){o()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,s,i,e,h,a;null===(t=this.meeting)||void 0===t||t.participants.joined.removeListener("screenShareUpdate",this.screenShareListener),null===(s=this.meeting)||void 0===s||s.participants.joined.removeListener("participantLeft",this.participantLeftListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("screenShareUpdate",this.screenShareListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(h=this.meeting)||void 0===h?void 0:h.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:s,stage:i}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=s.config.maxScreenShareCount,this.screenShareEnabled=s.screenShareEnabled;let e=0;for(const s of t.participants.joined.toArray())s.screenShareEnabled&&e++;this.screenShareCount=e,this.getState(),t.__internals__.logger.info("rtkScreenShare::initialise",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount,maxAllowedCount:this.maxScreenShareCount}}}),this.stageStatus=t.stage.status,t.participants.joined.addListener("screenShareUpdate",this.screenShareListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),s.addListener("screenShareUpdate",this.screenShareListener),s.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==i||i.addListener("stageStatusUpdate",this.stageStatusListener)}}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){let t="",s="",i="",e={};const h=this.hasPermissionError()&&!this.screenShareEnabled,a=this.reachedMaxScreenShares()&&!this.screenShareEnabled,r="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!h?(s=this.t("screenshare.stop"),i=this.iconPack.share_screen_stop,e["red-icon"]=!0):(s=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(t=this.t("perm_sys_denied.screenshare"),e["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(t=this.t("perm_denied.screenshare"),e["red-icon"]=!0):t=s,a&&(t=this.t("screenshare.error.max_count")),r&&(t=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:t,label:s,icon:i,classList:e,disable:h||a,showWarning:h||a||r}}render(){return o()&&this.canScreenShare&&!["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus)?i(e,{title:this.screenShareState.label},i("rtk-tooltip",{placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.toggleScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}))):i(e,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{c as rtk_screen_share_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as a,i as r}from"./p-uIA60Puf.js";import{i as n}from"./p-C0vp-Q7v.js";import{S as h}from"./p-BCaKYPpD.js";var o=function(t,i,s,e){var a,r=arguments.length,n=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(n=(r<3?a(n):r>3?a(i,s,n):a(i,s))||n);return r>3&&n&&Object.defineProperty(i,s,n),n};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.apiError=i(this,"rtkApiError",7),this.variant="button",this.iconPack=a,this.t=r(),this.livestreamState="IDLE",this.livestreamStateListener=t=>{this.livestreamState=t,"LIVESTREAMING"!==t&&"IDLE"!==t||this.stateUpdate.emit({activeMoreMenu:!1})},this.isLoading=()=>!this.meeting||"STARTING"===this.livestreamState||"STOPPING"===this.livestreamState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.clearListeners()}meetingChanged(t){var i,s;t&&(this.livestreamState=null===(i=this.meeting.livestream)||void 0===i?void 0:i.state,null===(s=this.meeting.livestream)||void 0===s||s.on("livestreamUpdate",this.livestreamStateListener))}async toggleLivestream(){var t,i;if("LIVESTREAMING"===this.livestreamState)try{await(null===(t=this.meeting.livestream)||void 0===t?void 0:t.stop())}catch(t){this.apiError.emit({trace:this.t("livestream.stop"),message:this.t("livestream.error.stop")})}else try{await(null===(i=this.meeting.livestream)||void 0===i?void 0:i.start())}catch(t){this.apiError.emit({trace:this.t("livestream.start"),message:this.t("livestream.error.start")})}}clearListeners(){var t;null===(t=this.meeting.livestream)||void 0===t||t.removeListener("livestreamUpdate",this.livestreamStateListener)}getLivestreamLabel(){switch(this.livestreamState){case"IDLE":return this.t("livestream.go_live");case"LIVESTREAMING":return this.t("livestream.end_live");case"WAITING_ON_MANUAL_INGESTION":return this.t("livestream.waiting_on_manual_ingestion");case"STARTING":return this.t("livestream.starting");case"STOPPING":return this.t("livestream.stopping");default:return this.t("livestream.error")}}getLivestreamIcon(){switch(this.livestreamState){case"IDLE":case"WAITING_ON_MANUAL_INGESTION":return this.iconPack.start_livestream;default:return this.iconPack.stop_livestream}}render(){return this.meeting?n(this.meeting)?s(e,null,s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,isLoading:this.isLoading(),class:{"active-livestream":"LIVESTREAMING"===this.livestreamState},onClick:()=>this.toggleLivestream(),icon:this.getLivestreamIcon(),disabled:this.isLoading(),label:this.t(this.getLivestreamLabel()),variant:this.variant})):s(e,{"data-hidden":!0}):null}static get watchers(){return{meeting:[{meetingChanged:0}]}}};o([h()],l.prototype,"meeting",void 0),o([h()],l.prototype,"iconPack",void 0),o([h()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{l as rtk_livestream_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,a as r}from"./p-gJCRRBX0.js";import{c as a,e as i,i as s}from"./p-uIA60Puf.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{S as o}from"./p-BCaKYPpD.js";import"./p-Daj_55_i.js";var n=function(t,e,r,a){var i,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(s<3?i(o):s>3?i(e,r,o):i(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const c=class{constructor(e){t(this,e),this.config=a(),this.icon=i,this.t=s(),this.iconPack=i,this.message=""}connectedCallback(){this.statesChanged(this.states)}getBreakoutRoomsMessage(t){var e;let r;return"connected-meeting"===(null==t?void 0:t.roomLeftState)&&(r=(null===(e=this.states.activeBreakoutRoomsManager)||void 0===e?void 0:e.destinationMeetingId)===this.meeting.connectedMeetings.parentMeeting.id?"breakout_rooms.move_reason.switch_main_room":"breakout_rooms.move_reason.switch_room"),r}statesChanged(t){if(null!=t)switch(null==t?void 0:t.roomLeftState){case"left":this.message="ended.left";break;case"kicked":this.message="ended.kicked";break;case"disconnected":this.message="ended.disconnected";break;case"rejected":this.message="ended.rejected";break;case"connected-meeting":this.message=this.getBreakoutRoomsMessage(t);break;case"unauthorized":this.message="ended.unauthorized";break;default:this.message="ended"}}renderBreakoutRoomScreen(){return e(r,null,e("div",{class:"ctr",part:"container"},e("rtk-icon",{icon:this.iconPack.breakout_rooms}),e("p",{part:"message",class:"breakout"},this.t(this.message))))}render(){if(!this.meeting)return null;const t=this.states;return"connected-meeting"===t.roomLeftState?this.renderBreakoutRoomScreen():e(r,null,e("div",{class:"ctr",part:"container"},e("rtk-logo",{meeting:this.meeting,config:this.config,part:"logo",t:this.t}),e("p",{part:"message"},this.t(this.message)),"disconnected"===(null==t?void 0:t.roomLeftState)&&e("span",{part:"description"},this.t("ended.network"))))}static get watchers(){return{states:[{statesChanged:0}]}}};n([o()],c.prototype,"config",void 0),n([o()],c.prototype,"states",void 0),n([o()],c.prototype,"t",void 0),n([o()],c.prototype,"iconPack",void 0),n([o()],c.prototype,"meeting",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex-direction:column;align-items:center;justify-content:center}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}.rejoin-button{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-6, 24px);padding-bottom:var(--rtk-space-6, 24px);padding-left:var(--rtk-space-16, 64px);padding-right:var(--rtk-space-16, 64px)}.rejoin-icon{margin-right:var(--rtk-space-2, 8px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}p.breakout{font-size:20px;display:flex;flex-direction:column;align-items:center}p.breakout span{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}span{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}";export{c as rtk_ended_screen}
@@ -0,0 +1 @@
1
+ import{r as t,d as i,h as a,a as s}from"./p-gJCRRBX0.js";import{i as e}from"./p-CAqYddlg.js";import{e as r,i as o}from"./p-uIA60Puf.js";import{S as h}from"./p-BCaKYPpD.js";import{a as d}from"./p-C0vp-Q7v.js";class n{constructor(t,i){this.meeting=t,this.audio=null!=i?i:document.createElement("audio"),this.audio.autoplay=!0,this.logger=t.__internals__.logger,this.audioStream=new MediaStream,this.audio.srcObject=this.audioStream,this.audioTracks=[]}addTrack(t,i){this.removeTrack(t),this.audioTracks.push({id:t,track:i}),this.audioStream.addTrack(i),this.play()}removeTrack(t){const i=this.audioTracks.find((i=>i.id===t));null!=i&&(this.audioStream.removeTrack(i.track),this.audioTracks=this.audioTracks.filter((i=>i.id!==t)))}async play(){var t;this.audio.srcObject=this.audioStream,await(null===(t=this.audio.play())||void 0===t?void 0:t.catch((t=>{"NotAllowedError"===t.name?null!=this._onError&&this._onError():"AbortError"!==t.name&&this.logger.error("[rtk-audio] play() error\n",t)})))}async setDevice(t){var i,a,s;e(this.meeting)||await(null===(s=null===(a=(i=this.audio).setSinkId)||void 0===a?void 0:a.call(i,t))||void 0===s?void 0:s.catch((t=>{this.logger.error("[rtk-audio] setSinkId() error\n",t)})))}onError(t){this._onError=t}}var c=function(t,i,a,s){var e,r=arguments.length,o=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,a,s);else for(var h=t.length-1;h>=0;h--)(e=t[h])&&(o=(r<3?e(o):r>3?e(i,a,o):e(i,a))||o);return r>3&&o&&Object.defineProperty(i,a,o),o};const l=class{constructor(a){t(this,a),this.dialogClose=i(this,"dialogClose",7),this.iconPack=r,this.t=o(),this.preloadedAudioElem=void 0,this.showPlayDialog=!1,this.onRtkDialogClose=()=>{this.showPlayDialog=!1,this.dialogClose.emit()}}componentDidLoad(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.meeting&&(this.audioUpdateListener&&this.meeting.participants.joined.removeListener("audioUpdate",this.audioUpdateListener),this.screenShareUpdateListener&&this.meeting.participants.joined.removeListener("screenShareUpdate",this.screenShareUpdateListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),this.deviceUpdateListener&&this.meeting.self.removeListener("deviceUpdate",this.deviceUpdateListener),this.stageStatusUpdateListener&&(null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)))}async setupAudio(){this.audio=new n(this.meeting,this.preloadedAudioElem);const t=this.meeting.self.getCurrentDevices();null!=t.speaker&&await this.audio.setDevice(t.speaker.deviceId)}async handleAutoPlayError(){this.audio||await this.setupAudio(),this.audio.onError((()=>{this.showPlayDialog=!0})),this.audio.play()}async handleEvents(t){this.audioUpdateListener=({id:t,audioEnabled:i,audioTrack:a})=>{const s=`audio-${t}`;i&&null!=a?this.audio.addTrack(s,a):this.audio.removeTrack(s)};const i=t.participants.joined.toArray();for(const t of i)this.audioUpdateListener(t);this.participantLeftListener=({id:t})=>{this.audio.removeTrack(`audio-${t}`),this.audio.removeTrack(`screenshare-${t}`)},this.screenShareUpdateListener=({id:t,screenShareEnabled:i,screenShareTracks:a})=>{const s=`screenshare-${t}`;i&&null!=a.audio?this.audio.addTrack(s,a.audio):this.audio.removeTrack(s)},this.deviceUpdateListener=({device:t,preview:i})=>{i||"audiooutput"===t.kind&&this.audio.setDevice(t.deviceId)},t.participants.joined.addListener("audioUpdate",this.audioUpdateListener),t.participants.joined.addListener("screenShareUpdate",this.screenShareUpdateListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener)}async meetingChanged(t){var i;t&&(this.setupAudio(),d(t)?(this.stageStatusUpdateListener=async t=>{"ON_STAGE"===t&&await this.handleAutoPlayError()},null===(i=t.stage)||void 0===i||i.on("stageStatusUpdate",this.stageStatusUpdateListener)):await this.handleAutoPlayError(),await this.handleEvents(t))}render(){return a(s,{key:"14ddae0562633e4433788c18fb89533248df6c2b"},this.showPlayDialog&&a("rtk-dialog",{key:"d0e33058fbcd77861009ce80d7d4e29b2b597475",open:!0,onRtkDialogClose:this.onRtkDialogClose,hideCloseButton:!0,disableEscapeKey:!0,iconPack:this.iconPack,t:this.t},a("div",{key:"e6a9a18c1eaf3e09d13e25373982183b3ad6f8ec",class:"modal"},a("h3",{key:"bc87cc408aad7117cc8d808e38142b3801e5ff53"},this.t("audio_playback.title")),a("p",{key:"b1927a5cd053c59e19a6c4c54044ca500691ee71"},this.t("audio_playback.description")),a("rtk-button",{key:"3c022bb0602295cbd5996ae2ee066e254b1af2fb",kind:"wide",onClick:()=>{this.audio.play(),this.onRtkDialogClose()},title:this.t("audio_playback")},this.t("audio_playback")))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([h()],l.prototype,"meeting",void 0),c([h()],l.prototype,"iconPack",void 0),c([h()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;overflow-wrap:break-word;color:rgb(var(--rtk-colors-text-1000, 255 255 255));word-wrap:break-word}.modal{box-sizing:border-box;width:100%;max-width:var(--rtk-space-96, 384px);padding:var(--rtk-space-4, 16px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.modal h3{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);font-size:24px;font-weight:500}.modal p{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-6, 24px)}.modal rtk-button{width:100%}";export{l as rtk_participants_audio}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,a}from"./p-gJCRRBX0.js";import{a as r,f as s}from"./p-vBD2htwQ.js";import{e as i,i as o}from"./p-uIA60Puf.js";import{S as n}from"./p-BCaKYPpD.js";var c=function(t,e,a,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const p=class{constructor(e){t(this,e),this.isScreenShare=!1,this.variant="default",this.iconPack=i,this.t=o(),this.length=13}sizeChanged(t){this.length="sm"===t?8:13}formatNameTag(t,e){return this.isScreenShare?e?`${this.t("screen")} - ${r(t,this.length-3)} (${this.t("you")})`:`${this.t("screen")} - ${r(t,this.length)}`:e?`${r(t,this.length-3)} (${this.t("you")})`:r(t,this.length)}render(){var t,r,i;const o=s((null===(t=this.participant)||void 0===t?void 0:t.name)||""),n=(null===(r=this.participant)||void 0===r?void 0:r.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id);return e(a,{key:"9040aabe429bea4cfcdc7a6635eeb336f2154961",title:o},e("slot",{key:"f66091f5af1914e91e14415a4758f9bdc15c0c85",name:"start"}),e("span",{key:"241ca42f60b258c5b3c20f423e9ade272f8f5a8b",class:"name"},this.formatNameTag(o,n)),e("slot",{key:"7f6f9b8e5c2ea76042a0ff812458af6ed702b43d",name:"end"}))}static get watchers(){return{size:[{sizeChanged:0}]}}};c([n()],p.prototype,"meeting",void 0),c([n()],p.prototype,"iconPack",void 0),c([n()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}span.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}::slotted(rtk-audio-visualizer[slot='start']){margin-right:var(--rtk-space-1\\.5, 6px)}::slotted(rtk-audio-visualizer[slot='end']){margin-left:var(--rtk-space-1\\.5, 6px)}:host([size='sm']){font-size:12px;--tw-bg-opacity:0.6}:host([variant='text']){background-color:transparent;padding:var(--rtk-space-0, 0px)}";export{p as rtk_name_tag}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,a as s,g as e}from"./p-gJCRRBX0.js";import{c as a,e as r,i as h}from"./p-uIA60Puf.js";import{d as n}from"./p-CmmyVCoN.js";import{R as o}from"./p-CTFO-5XH.js";import{S as d}from"./p-BCaKYPpD.js";var l=function(t,i,s,e){var a,r=arguments.length,h=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(h=(r<3?a(h):r>3?a(i,s,h):a(i,s))||h);return r>3&&h&&Object.defineProperty(i,s,h),h};const p=class{constructor(i){t(this,i),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.aspectRatio="16:9",this.gap=8,this.config=a(),this.iconPack=r,this.t=h(),this.gridSize=n}componentWillLoad(){this.initialised=!1,this.screenShareParticipantsChanged(this.screenShareParticipants),this.pluginsChanged(this.plugins),this.initialised=!0}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)}meetingChanged(t){var i,s,e,a;null!=t&&(null!=(null===(i=t.meta)||void 0===i?void 0:i.selfActiveTab)&&this.onActiveTabUpdate(null===(s=t.meta.selfActiveTab)||void 0===s?void 0:s.type,null===(e=t.meta.selfActiveTab)||void 0===e?void 0:e.id),this.activeTabUpdateListener=t=>{this.onActiveTabUpdate(null==t?void 0:t.type,null==t?void 0:t.id)},null===(a=t.meta)||void 0===a||a.addListener("activeTabUpdate",this.activeTabUpdateListener))}screenShareParticipantsChanged(t=[]){(this.initialised||null==this.activeTab)&&(null==this.activeTab&&t.length>0?this.setActiveTab({type:"screenshare",participant:t[0]}):this.revalidateActiveTab())}pluginsChanged(t){(this.initialised||null==this.activeTab)&&(t.length>0?this.setActiveTab({type:"plugin",plugin:t[t.length-1]}):this.revalidateActiveTab())}revalidateActiveTab(){if(null!=this.activeTab)if("screenshare"===this.activeTab.type){const{participant:t}=this.activeTab;this.screenShareParticipants.some((i=>i.id===t.id))||this.reassignActiveTab()}else{const{plugin:t}=this.activeTab;this.plugins.some((i=>i.id===t.id))||this.reassignActiveTab()}}setActiveTab(t,i=!0){var s;this.activeTab=t,i&&(null===(s=this.meeting.meta)||void 0===s||s.setSelfActiveTab({type:t.type,id:"screenshare"===t.type?t.participant.id:t.plugin.id},0))}reassignActiveTab(){this.screenShareParticipants.length>0?this.setActiveTab({type:"screenshare",participant:this.screenShareParticipants[0]}):this.plugins.length>0&&this.setActiveTab({type:"plugin",plugin:this.plugins[this.plugins.length-1]})}onActiveTabUpdate(t,i){if(null!=t&&null!=i)switch(t){case"plugin":const t=this.plugins.find((t=>t.id===i));null!=t&&this.setActiveTab({type:"plugin",plugin:t},!1);break;case"screenshare":const s=this.screenShareParticipants.find((t=>t.id===i));null!=s&&this.setActiveTab({type:"screenshare",participant:s},!1)}}getTabs(){const t=this.screenShareParticipants.map((t=>({type:"screenshare",participant:t}))),i=this.plugins.map((t=>({type:"plugin",plugin:t})));return t.concat(i)}render(){var t,e;if(!this.meeting)return null;const a={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t};return i(s,null,i("main",{id:"main-view",part:"main-view"},(null===(t=this.getTabs())||void 0===t?void 0:t.length)>1&&i("rtk-tab-bar",Object.assign({activeTab:this.activeTab,tabs:this.getTabs(),onTabChange:t=>this.setActiveTab(t.detail)},a)),i("div",{id:"tabs",key:"tabs"},this.screenShareParticipants.map((t=>{var s,e;return i(o,{element:"rtk-screenshare-view",defaults:a,props:{participant:t,key:t.id,style:{display:"screenshare"===(null===(s=this.activeTab)||void 0===s?void 0:s.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.participant.id)===t.id?"flex":"none"}},childProps:{participant:t,isScreenShare:!0},deepProps:!0})})),this.plugins.map((t=>{var s,e;return i("rtk-plugin-main",Object.assign({},a,{plugin:t,key:t.id,style:{display:"plugin"===(null===(s=this.activeTab)||void 0===s?void 0:s.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.plugin.id)===t.id?"flex":"none"}}))})))),i(o,{element:"rtk-mixed-grid",defaults:a,childProps:{part:"participants-grid",class:this.gridSize.mixed?`grid-width-${this.gridSize.mixed}`:"grid-width-lg",participants:this.participants,pinnedParticipants:this.pinnedParticipants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,aspectRatio:this.aspectRatio,gap:this.gap,size:"AUDIO_ROOM"===(null===(e=this.meeting.meta)||void 0===e?void 0:e.viewType)?"md":"sm",layout:"row"},onlyChildren:!0}))}get host(){return e(this)}static get watchers(){return{meeting:[{meetingChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}]}}};l([d()],p.prototype,"meeting",void 0),l([d()],p.prototype,"states",void 0),l([d()],p.prototype,"config",void 0),l([d()],p.prototype,"iconPack",void 0),l([d()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%;display:flex}main{display:flex;flex:1 1 0%;padding-left:var(--rtk-space-4, 16px)}:host([layout='column']) main{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}main rtk-tab-bar{margin-right:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column}main #tabs{height:100%;flex:1 1 0%}rtk-button{z-index:10}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}:host([size='sm']){flex-direction:column}:host([size='sm']) .grid-width-lg,:host([size='sm']) .grid-width-md{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:33.333333%;width:100%;max-width:100%}:host([size='sm']) main{display:flex;flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{height:var(--rtk-space-12, 48px);width:100%;flex-direction:row}:host([size='sm']) #tabs{flex:1 1 0%}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}:host([layout='column']){flex-direction:column}:host([layout='column']) main{display:flex;flex:1 1 0%}:host([layout='column']) .grid-width-lg,:host([layout='column']) .grid-width-md{height:50%;max-width:100%;width:100%}:host([layout='column']) .grid-width-sm{height:33.333333%;max-width:100%;width:100%}@media (orientation: portrait){:host{flex-direction:column}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host .grid-width-md{height:33.333333%;width:100%;max-width:100%}:host .grid-width-sm{height:25%;width:100%;max-width:100%}:host main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='md']) main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host rtk-tab-bar{height:var(--rtk-space-16, 64px);width:100%;flex-direction:row}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}@media (orientation: landscape){:host{flex-direction:row}:host([size='sm']){flex-direction:row}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:100%;max-height:100%;width:16.666667%}:host([size='sm']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}:host([size='md']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{margin-right:var(--rtk-space-2, 8px);height:100%;width:var(--rtk-space-12, 48px);flex-direction:column}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}";export{p as rtk_mixed_grid}
@@ -0,0 +1 @@
1
+ import{r as t,h as r,a as i}from"./p-gJCRRBX0.js";import{e as a,i as s}from"./p-uIA60Puf.js";import{S as o}from"./p-BCaKYPpD.js";import{d as e}from"./p-t72veIFj.js";import"./p-BFTU3MAI.js";var n=function(t,r,i,a){var s,o=arguments.length,e=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(e=(o<3?s(e):o>3?s(r,i,e):s(r,i))||e);return o>3&&e&&Object.defineProperty(r,i,e),e};const h=class{constructor(r){t(this,r),this.variant="rounded",this.iconPack=a,this.t=s(),this.page=1,this.pageCount=0,this.activeCount=0,this.activeComputedCount=0,this.showPagination=!1,this.onPageChanged=({currentPage:t,pageCount:r})=>{this.pageCount=r,this.page=t},this.toggleGridPagination=e((()=>{var t;const{self:r,participants:i}=this.meeting,{mobile:a,desktop:s}=null===(t=r.config)||void 0===t?void 0:t.maxVideoStreams,o="sm"===this.size?a:s,e=i.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus)).length;this.showPagination=!(e<o)}),50),this.onParticipantJoin=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onParticipantLeave=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onStateStatusUpdate=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.prevPage=()=>{if(!this.meeting)return;const{participants:t}=this.meeting;this.page>1?t.setPage(this.page-=1):"PAGINATED"===t.viewMode&&t.setViewMode("ACTIVE_GRID")},this.nextPage=()=>{if(!this.meeting)return;const{participants:t}=this.meeting;this.page>0&&this.page<this.pageCount?t.setPage(this.page+=1):t.count>0&&0===this.pageCount&&t.setViewMode("PAGINATED")}}connectedCallback(){this.meetingChanged(this.meeting),this.sizeChanged()}disconnectedCallback(){if(!this.meeting)return;const{participants:t,stage:r}=this.meeting;t.removeListener("pageChanged",this.onPageChanged),t.removeListener("viewModeChanged",this.onPageChanged),t.joined.removeListener("participantJoined",this.onParticipantJoin),t.joined.removeListener("participantLeft",this.onParticipantLeave),t.joined.removeListener("stageStatusUpdate",this.onStateStatusUpdate),r.removeListener("stageStatusUpdate",this.onStateStatusUpdate)}meetingChanged(t){if(null!=t){const{stage:r,participants:i}=t;this.page=i.currentPage,this.pageCount=i.pageCount,i.addListener("viewModeChanged",this.onPageChanged),i.addListener("pageChanged",this.onPageChanged),i.joined.addListener("participantJoined",this.onParticipantJoin),i.joined.addListener("participantLeft",this.onParticipantLeave),i.joined.addListener("stageStatusUpdate",this.onStateStatusUpdate),r.addListener("stageStatusUpdate",this.onStateStatusUpdate),this.activeCount=this.meeting.participants.joined.size,this.activeComputedCount=this.meeting.participants.joined.size,this.toggleGridPagination()}}sizeChanged(){this.toggleGridPagination()}render(){if(!this.meeting)return null;const{meta:t}=this.meeting;return"AUDIO_ROOM"!==(null==t?void 0:t.viewType)&&this.showPagination?r(i,null,r("rtk-button",{class:"prev",variant:"secondary",kind:"icon",disabled:0===this.pageCount,onClick:this.prevPage,"aria-label":this.t("page.prev")},r("rtk-icon",{icon:this.iconPack.chevron_left})),"grid"!==this.variant&&r("div",{class:"center"},r("span",{class:"page"},0===this.pageCount?r("rtk-tooltip",{label:this.t("layout.auto")},r("rtk-button",{kind:"icon",class:"auto"},r("rtk-icon",{icon:this.iconPack.wand}))):this.page),0!==this.pageCount&&[r("span",{class:"slash"},"/"),r("span",{class:"pages"},this.pageCount)]),"grid"===this.variant&&this.pageCount>0&&r("div",{class:"dots"},[...Array(this.pageCount)].map(((t,i)=>r("div",{key:`dot-${i}`,class:{dot:!0,active:i+1===this.page}})))),r("rtk-button",{class:"next",variant:"secondary",kind:"icon",disabled:0!==this.page&&this.page===this.pageCount,onClick:this.nextPage,"aria-label":this.t("page.next")},r("rtk-icon",{icon:this.iconPack.chevron_right,tabIndex:-1,"aria-hidden":!0}))):r(i,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}],size:[{sizeChanged:0}]}}};n([o()],h.prototype,"meeting",void 0),n([o()],h.prototype,"states",void 0),n([o()],h.prototype,"iconPack",void 0),n([o()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;font-size:16px}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}:host([size='sm']) .center{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px)}:host([size='sm']) rtk-button{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) rtk-button rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}rtk-button{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.center{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.center .page{color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.center .slash{margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-0\\.5, 2px)}.center .pages{align-self:flex-end;font-size:12px}:host([variant='rounded']){overflow:hidden;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button{border-radius:9999px;border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='rounded']) rtk-button:not([disabled]):hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button:not([disabled]):focus{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='grid']) rtk-button{position:absolute;top:50%;height:var(--rtk-space-20, 80px);width:var(--rtk-space-20, 80px);opacity:0.2;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='grid']) rtk-button:hover{opacity:1}:host([variant='grid']) rtk-button{transform:translateY(-50%)}:host([variant='grid']) rtk-button.prev{left:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) rtk-button.next{right:var(--rtk-space-0, 0px);border-top-left-radius:9999px;border-bottom-left-radius:9999px}:host([variant='grid']) rtk-button.auto{left:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) .dots{position:absolute;left:50%;bottom:var(--rtk-space-3, 12px);display:flex;align-items:center;transform:translateX(-50%)}:host([variant='grid']) .dots .dot{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-2, 8px);width:var(--rtk-space-2, 8px);cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([variant='grid']) .dots .dot:last-child{margin-right:var(--rtk-space-0, 0px)}:host([variant='grid']) .dots .dot.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host([variant='grid'][size='sm']) rtk-button{height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);opacity:0.1}";export{h as rtk_grid_pagination}
@@ -0,0 +1 @@
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import{c as a,e as n,i as o}from"./p-uIA60Puf.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-BCaKYPpD.js";import"./p-Daj_55_i.js";var c=function(t,i,s,e){var a,n=arguments.length,o=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(o=(n<3?a(o):n>3?a(i,s,o):a(i,s))||o);return n>3&&o&&Object.defineProperty(i,s,o),o};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=a(),this.iconPack=n,this.t=o(),this.captionEnabled=!1,this.permissionsUpdateListener=()=>{var t;this.captionEnabled=null!==(t=this.meeting.self.permissions.transcriptionEnabled)&&void 0!==t&&t}}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.permissionsUpdateListener(),this.meeting.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}toggleCaptions(){this.stateUpdate.emit({activeCaptions:!this.states.activeCaptions,activeMoreMenu:!1})}render(){if(!this.meeting)return null;if(!this.captionEnabled)return null;const t=this.states.activeCaptions;return s(e,{tabIndex:0,role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleCaptions(),icon:t?this.iconPack.captionsOff:this.iconPack.captionsOn,label:this.t(t?"transcript.off":"transcript.on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};c([r()],l.prototype,"meeting",void 0),c([r()],l.prototype,"states",void 0),c([r()],l.prototype,"config",void 0),c([r()],l.prototype,"iconPack",void 0),c([r()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_caption_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-uIA60Puf.js";import{d as n}from"./p-D9HGXWKc.js";import{S as r}from"./p-BCaKYPpD.js";import"./p-C0vp-Q7v.js";var l=function(t,i,s,e){var a,o=arguments.length,n=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(n=(o<3?a(n):o>3?a(i,s,n):a(i,s))||n);return o>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s,e,a,o;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===i||i.removeListener("pollsUpdate",this.onPollsUpdate),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pollsUpdate",this.updateCanView),null===(o=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var i,s;t&&t.polls&&(this.unreadPollsCount=t.polls.items.length,this.meeting.polls.addListener("pollsUpdate",this.onPollsUpdate),null===(i=null==t?void 0:t.self)||void 0===i||i.permissions.addListener("pollsUpdate",this.updateCanView),this.canViewPolls=n(t),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pollsActive=!0===t.activeSidebar&&"polls"===t.sidebar)}togglePollsTab(){const t=this.states;this.unreadPollsCount=0,this.pollsActive=!((null==t?void 0:t.activeSidebar)&&"polls"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pollsActive,sidebar:this.pollsActive?"polls":void 0,activeMoreMenu:!1})}handlePollsActiveChange(){this.pollsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPolls)return s(e,{"data-hidden":!0});const t=this.t("polls");return s(e,{title:t},0!==this.unreadPollsCount&&!this.pollsActive&&s("div",{class:"unread-count",part:"unread-count"},s("span",null,this.unreadPollsCount<=100?this.unreadPollsCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pollsActive},onClick:()=>this.togglePollsTab(),icon:this.iconPack.poll,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{h as rtk_polls_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{e,i as r}from"./p-uIA60Puf.js";import{c as n}from"./p-D9HGXWKc.js";import{S as o}from"./p-BCaKYPpD.js";import"./p-C0vp-Q7v.js";var h=function(t,i,s,a){var e,r=arguments.length,n=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,a);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(n=(r<3?e(n):r>3?e(i,s,n):e(i,s))||n);return r>3&&n&&Object.defineProperty(i,s,n),n};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.unreadMessageCount=0,this.variant="button",this.iconPack=e,this.t=r(),this.chatActive=!1,this.canViewChat=!1,this.pageSize=11,this.onChatUpdate=({action:t,message:i})=>{var s;this.chatActive||"add"===t&&i.userId!==(null===(s=this.meeting)||void 0===s?void 0:s.self.userId)&&this.unreadMessageCount<=10&&(this.unreadMessageCount+=1)},this.toggleChat=()=>{const t=this.states;this.chatActive=!((null==t?void 0:t.activeSidebar)&&"chat"===(null==t?void 0:t.sidebar)),this.chatActive&&(this.unreadMessageCount=0),this.stateUpdate.emit({activeSidebar:this.chatActive,sidebar:this.chatActive?"chat":void 0,activeMoreMenu:!1})},this.updateCanView=()=>{this.canViewChat=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s,a,e,r;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.chat)||void 0===i||i.removeListener("chatUpdate",this.onChatUpdate),null===(a=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.updateCanView),null===(r=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===r||r.permissions.removeListener("chatUpdate",this.updateCanView)}meetingChanged(t){var i,s,a;t&&(this.setUnreadMessageCount(),this.canViewChat=n(t),null===(i=t.chat)||void 0===i||i.addListener("chatUpdate",this.onChatUpdate),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView),null===(a=null==t?void 0:t.self)||void 0===a||a.permissions.on("chatUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.chatActive=!0===t.activeSidebar&&"chat"===t.sidebar)}async setUnreadMessageCount(){var t,i;const s=this.meeting.chat;if(!s)return;const a=null!==(i=null===(t=this.meeting.meta)||void 0===t?void 0:t.meetingStartedTimestamp.getTime())&&void 0!==i?i:0,e=await s.fetchPublicMessages({timestamp:a,limit:this.pageSize,direction:"after"});this.unreadMessageCount=e.length}handleChatActiveChange(){this.chatActive||this.states.activeSidebar||this.buttonEl.focus()}render(){return this.meeting?this.canViewChat?s(a,{title:this.t("chat")},0!==this.unreadMessageCount&&!this.chatActive&&s("div",{class:"unread-count",part:"unread-count"},s("span",null,this.unreadMessageCount<this.pageSize?this.unreadMessageCount:"10+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.chatActive},onClick:this.toggleChat,icon:this.iconPack.chat,label:this.t("chat"),variant:this.variant})):s(a,{"data-hidden":!0}):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],chatActive:[{handleChatActiveChange:0}]}}};h([o()],c.prototype,"meeting",void 0),h([o()],c.prototype,"states",void 0),h([o()],c.prototype,"iconPack",void 0),h([o()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-4, 16px);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}.unread-count-dot{position:absolute;right:var(--rtk-space-3, 12px);z-index:10;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));border-radius:50%;display:flex;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);align-items:center;justify-content:center}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{c as rtk_chat_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,d as i,h as s,a as o}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import{c as e,e as a,i as n}from"./p-uIA60Puf.js";import"./p-C0vp-Q7v.js";import{S as r}from"./p-BCaKYPpD.js";import"./p-Daj_55_i.js";var l=function(t,i,s,o){var e,a=arguments.length,n=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,o);else for(var r=t.length-1;r>=0;r--)(e=t[r])&&(n=(a<3?e(n):a>3?e(i,s,n):e(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const h=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=e(),this.iconPack=a,this.t=n(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,s,o;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(s=t.self.config)||void 0===s?void 0:s.pipMode)&&"LIVESTREAM"!==(null===(o=t.self.config)||void 0===o?void 0:o.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.meeting)return null;if(!this.pipSupported)return s(o,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return s(o,{role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};l([r()],h.prototype,"meeting",void 0),l([r()],h.prototype,"states",void 0),l([r()],h.prototype,"config",void 0),l([r()],h.prototype,"iconPack",void 0),l([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{h as rtk_pip_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,a}from"./p-gJCRRBX0.js";import{c as s,e,i as r}from"./p-uIA60Puf.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{R as n}from"./p-CTFO-5XH.js";import{S as c}from"./p-BCaKYPpD.js";import"./p-Daj_55_i.js";var p=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const o=class{constructor(a){t(this,a),this.config=s(),this.hideHeader=!1,this.iconPack=e,this.view="sidebar",this.t=r(),this.search="",this.participants=[],this.createParticipantNode=t=>{const a={meeting:this.meeting,view:this.view,t:this.t,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack};return i("div",null,i(n,{element:"rtk-participant",defaults:a,props:{role:"listitem",participant:t,key:t.id},childProps:Object.assign(Object.assign({},a),{participant:t,size:this.size}),deepProps:!0}))},this.updateStageList=()=>{this.getParticipants(this.search)}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}disconnectedCallback(){if(!this.meeting)return;const{participants:t,stage:i}=this.meeting;this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),t.joined.removeListener("stageStatusUpdate",this.updateStageList),null==i||i.removeListener("stageStatusUpdate",this.updateStageList)}meetingChanged(t){t&&(this.participantJoinedListener=t=>{if("ON_STAGE"!==t.stageStatus)return;const i=this.search.toLowerCase();t.name.toLowerCase().includes(i)&&t.id.toLowerCase().includes(i)&&(this.participants=[...this.participants.filter((i=>i.id!==t.id)),t])},this.participantLeftListener=t=>{this.participants=this.participants.filter((i=>i.id!==t.id))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),this.updateStageList(),null==t||t.participants.joined.on("stageStatusUpdate",this.updateStageList),null==t||t.stage.on("stageStatusUpdate",this.updateStageList))}searchChanged(t){this.getParticipants(t)}getParticipants(t=this.search){let i="ON_STAGE"===this.meeting.stage.status?[this.meeting.self]:[];i=[...i,...this.meeting.participants.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus))],this.participants=""===t?i:i.filter((i=>{var a;return(null!==(a=i.name)&&void 0!==a?a:i.id).toLowerCase().includes(t.toLowerCase())}))}render(){return i(a,{key:"1beca8f05d4f78a269317b333a00946ac642af00"},i("div",{key:"7d54d4187eb8478ddfdc632b42af4875afd1a158",class:"participants-container"},!this.hideHeader&&i("div",{key:"ecaa9721738cc020fe4aa1f966d2450f0f9d8e01",class:"heading-count",part:"heading-count"},this.t("participants")," (",this.participants.length,")"),i("rtk-virtualized-participant-list",{key:"8d12273242c1f9081e199fd189060addf28c45a6",items:this.participants,renderItem:this.createParticipantNode,part:"participants",class:"participants",emptyListElement:i("div",{class:"empty-stage-list"},this.t(this.search.length>0?"search.could_not_find":"search.empty"))})))}static get watchers(){return{meeting:[{meetingChanged:0}],search:[{searchChanged:0}]}}};p([c()],o.prototype,"meeting",void 0),p([c()],o.prototype,"states",void 0),p([c()],o.prototype,"config",void 0),p([c()],o.prototype,"iconPack",void 0),p([c()],o.prototype,"t",void 0),o.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;width:100%;flex-direction:column;font-size:14px}.participants-container{margin-bottom:var(--rtk-space-4, 16px);height:100%;width:100%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.empty-stage-list{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}rtk-participant{width:100%}";var l=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const h=class{constructor(i){t(this,i),this.config=s(),this.iconPack=e,this.view="sidebar",this.t=r(),this.stageRequestedParticipants=[],this.updateStageRequestedParticipants=()=>{this.stageRequestedParticipants=this.meeting.participants.joined.toArray().filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus))},this.acceptStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.grantAccess([i])},this.rejectStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.denyAccess([i])},this.acceptAllStageRequest=async()=>{await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((t=>t.userId)))},this.denyAllStageRequest=async()=>{var t;await(null===(t=this.meeting.stage)||void 0===t?void 0:t.denyAccess(this.stageRequestedParticipants.map((t=>t.userId))))},this.shouldShowStageRequests=()=>this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&this.stageRequestedParticipants.length>0,this.updateRequestList=async t=>{var i,a,s,e,r,n,c;this.meeting.self.permissions.acceptStageRequests&&this.meeting.self.permissions.stageEnabled?"LIVESTREAM"===this.meeting.meta.viewType||"HIVE"===(null===(s=null===(a=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===a?void 0:a.permissions)||void 0===s?void 0:s.mediaRoomType)?(t||(t=null!==(n=null===(r=await(null===(e=this.meeting.stage)||void 0===e?void 0:e.getAccessRequests()))||void 0===r?void 0:r.stageRequests)&&void 0!==n?n:[]),this.stageRequestedParticipants=t.map((t=>Object.assign(Object.assign({},t),{name:t.displayName})))):this.stageRequestedParticipants=null===(c=[this.meeting.self,...this.meeting.participants.joined.toArray()])||void 0===c?void 0:c.filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus)):this.stageRequestedParticipants=[]}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;const{stage:i}=this.meeting;null==i||i.removeListener("stageAccessRequestUpdate",this.updateRequestList),null===(t=this.meeting.participants.joined)||void 0===t||t.removeListener("stageStatusUpdate",this.updateStageRequestedParticipants)}meetingChanged(t){var i;t&&(this.updateRequestList(),t.participants.joined.on("stageStatusUpdate",this.updateStageRequestedParticipants),null===(i=t.stage)||void 0===i||i.on("stageAccessRequestUpdate",this.updateRequestList))}render(){return this.meeting?"sidebar"===this.view&&this.shouldShowStageRequests()?i("div",{class:"stage-requested-participants"},i("div",{class:"heading-count",part:"staged-heading-count"},this.t("stage_request.header_title")," (",this.stageRequestedParticipants.length,")"),i("ul",{class:"participants",part:"staged-participants"},this.stageRequestedParticipants.map((t=>i("li",{class:"waiting-participant",key:t.id},i("div",{class:"participant-details"},i("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),i("p",{class:"name",title:t.name},t.name)),i("div",{class:"waitlist-controls"},i("rtk-tooltip",{label:this.t("stage_request.deny_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectStageRequest(t)},i("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),i("rtk-tooltip",{label:this.t("stage_request.accept_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptStageRequest(t)},i("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),i("div",{class:"bulk-actions"},i("rtk-button",{class:"accept-all-button",variant:"secondary",onClick:this.acceptAllStageRequest},this.t("stage_request.accept_all")),i("rtk-button",{class:"deny-all-button",variant:"danger",onClick:this.denyAllStageRequest},this.t("stage_request.deny_all")))):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}]}}};l([c()],h.prototype,"meeting",void 0),l([c()],h.prototype,"config",void 0),l([c()],h.prototype,"iconPack",void 0),l([c()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:column;font-size:14px}.stage-requested-participants{margin-bottom:var(--rtk-space-8, 32px)}.stage-requested-participants .bulk-actions{display:flex;gap:var(--rtk-space-2, 8px)}.stage-requested-participants .bulk-actions .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.stage-requested-participants .bulk-actions rtk-button{flex:1 1 0%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";var d=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const g=class{constructor(a){t(this,a),this.updateStageViewers=()=>{this.getViewers(this.search)},this.config=s(),this.hideHeader=!1,this.iconPack=e,this.view="sidebar",this.search="",this.t=r(),this.stageViewers=[],this.createParticipantNode=t=>i("rtk-participant",{role:"listitem",key:t.id,meeting:this.meeting,participant:t,view:this.view,iconPack:this.iconPack,config:this.config,t:this.t}),this.shouldShowViewers=()=>{var t,i,a;return null===(a=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===a?void 0:a.stageEnabled}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}meetingChanged(t){t&&(this.participantJoinedListener=t=>{if("ON_STAGE"===t.stageStatus)return;const i=this.search.toLowerCase();i.length>0&&!t.name.toLowerCase().includes(i)||(this.stageViewers=[...this.stageViewers.filter((i=>i.id!==t.id)),t])},this.participantLeftListener=t=>{this.stageViewers=this.stageViewers.filter((i=>i.id!==t.id))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.participants.joined.on("stageStatusUpdate",this.updateStageViewers),t.stage.on("stageStatusUpdate",this.updateStageViewers))}searchChanged(t){this.getViewers(t)}disconnectedCallback(){const{participants:t,stage:i}=this.meeting;this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),t.joined.removeListener("stageStatusUpdate",this.updateStageViewers),i.removeListener("stageStatusUpdate",this.updateStageViewers)}getViewers(t){let i="ON_STAGE"===this.meeting.stage.status?[]:[this.meeting.self];i=[...i,...this.meeting.participants.joined.toArray()].filter((t=>"ON_STAGE"!==t.stageStatus)),this.stageViewers=""===t?i:i.filter((i=>{var a;return(null!==(a=i.name)&&void 0!==a?a:i.id).toLowerCase().includes(t.toLowerCase())}))}render(){return this.meeting?"sidebar"===this.view&&this.shouldShowViewers()?i("div",{class:"list"},!this.hideHeader&&i("div",{class:"heading-count",part:"heading-count"},this.t("viewers")," (",this.stageViewers.length,")"),i("rtk-virtualized-participant-list",{items:this.stageViewers,renderItem:this.createParticipantNode,class:"participants",part:"participants",style:{height:"100%"},emptyListElement:i("div",{class:"empty-viewers-list"},this.t(this.search.length>0?"participants.errors.empty_results":"participants.empty_list"))})):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}],search:[{searchChanged:0}]}}};d([c()],g.prototype,"meeting",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:flex;height:100%;width:100%;flex-direction:column;font-size:14px}.list{margin-bottom:var(--rtk-space-4, 16px);display:flex;height:100%;flex-direction:column}h3,.heading-count{margin:var(--rtk-space-0, 0px);align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.empty-viewers-list{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}";var v=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const f=class{constructor(i){t(this,i),this.config=s(),this.iconPack=e,this.view="sidebar",this.t=r(),this.acceptWaitingRoomRequest=async t=>{await this.meeting.participants.acceptWaitingRoomRequest(t)},this.waitlistedParticipants=[],this.acceptAllWaitingRoomRequests=async()=>{await this.meeting.participants.acceptAllWaitingRoomRequest(this.waitlistedParticipants.map((t=>t.id)))},this.rejectWaitingRoomRequest=async t=>{await this.meeting.participants.rejectWaitingRoomRequest(t)},this.shouldShowWaitlist=()=>"LIVESTREAM"!==this.meeting.meta.viewType&&this.meeting.self.permissions.acceptWaitingRequests&&0!==this.waitlistedParticipants.length}disconnectedCallback(){const{participants:t}=this.meeting;this.waitlistedParticipantJoinedListener&&t.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&t.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.waitlistedParticipantsClearedListener&&t.waitlisted.removeListener("participantsCleared",this.waitlistedParticipantsClearedListener)}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t])},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id))},this.waitlistedParticipantsClearedListener=()=>{this.waitlistedParticipants=[]},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener),t.participants.waitlisted.addListener("participantsCleared",this.waitlistedParticipantsClearedListener))}render(){if("sidebar"===this.view&&this.shouldShowWaitlist())return i("div",{class:"waiting-participants"},i("div",{class:"heading-count",part:"waitlisted-heading-count"},this.t("waitlist.header_title")," (",this.waitlistedParticipants.length,")"),i("ul",{class:"participants",part:"waitlisted-participants"},this.waitlistedParticipants.map((t=>i("li",{class:"waiting-participant",key:t.id},i("div",{class:"participant-details"},i("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),i("p",{class:"name",title:t.name},t.name)),i("div",{class:"waitlist-controls"},i("rtk-tooltip",{label:this.t("waitlist.deny_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectWaitingRoomRequest(t.id)},i("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),i("rtk-tooltip",{label:this.t("waitlist.accept_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptWaitingRoomRequest(t.id)},i("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),i("rtk-button",{class:"accept-all-button",variant:"secondary",kind:"wide",onClick:this.acceptAllWaitingRoomRequests},this.t("waitlist.accept_all")))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};v([c()],f.prototype,"meeting",void 0),v([c()],f.prototype,"config",void 0),v([c()],f.prototype,"iconPack",void 0),v([c()],f.prototype,"t",void 0),f.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{margin-top:var(--rtk-space-4, 16px);margin-bottom:calc(var(--rtk-space-2, 8px) * -1);display:flex;width:100%;flex-direction:column;font-size:14px}.waiting-participants{margin-bottom:var(--rtk-space-8, 32px)}.waiting-participants .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{o as rtk_participants_stage_list,h as rtk_participants_stage_queue,g as rtk_participants_viewer_list,f as rtk_participants_waiting_list}
@@ -0,0 +1 @@
1
+ import{r as t,d as r,h as o,a}from"./p-gJCRRBX0.js";import{e as i,i as s}from"./p-uIA60Puf.js";import{S as e}from"./p-BCaKYPpD.js";var n=function(t,r,o,a){var i,s=arguments.length,e=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(e=(s<3?i(e):s>3?i(r,o,e):i(r,o))||e);return s>3&&e&&Object.defineProperty(r,o,e),e};const c=class{constructor(o){t(this,o),this.stateUpdate=r(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=i,this.t=s(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return o(a,null,o("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},o("header",null,o("h2",null,this.t("settings"))),o("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),o("div",{class:"right"},o("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&o("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&o("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),o("div",{class:"right"},o("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&o("rtk-icon",{icon:this.iconPack.chevron_right}))),o("button",{type:"none",title:`Your network condition is ${this.networkStatus}`},this.t("connection"),o("div",{class:"right"},o("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),o("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&o("header",null,o("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},o("rtk-icon",{icon:this.iconPack.chevron_left})),o("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&o("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&o("rtk-settings-video",Object.assign({},t))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([e()],c.prototype,"meeting",void 0),n([e()],c.prototype,"states",void 0),n([e()],c.prototype,"iconPack",void 0),n([e()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.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{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--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))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}";export{c as rtk_settings}
@@ -1 +1 @@
1
- import{r as i,h as t,a as s,g as e}from"./p-a599f720.js";import{c as d,e as h,i as a}from"./p-9727a165.js";import{d as r}from"./p-b13ddb7d.js";import{R as o}from"./p-eccb6d78.js";import{S as m}from"./p-7e3c2d64.js";var c=function(i,t,s,e){var d,h=arguments.length,a=h<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(i,t,s,e);else for(var r=i.length-1;r>=0;r--)(d=i[r])&&(a=(h<3?d(a):h>3?d(t,s,a):d(t,s))||a);return h>3&&a&&Object.defineProperty(t,s,a),a};const n=class{constructor(t){i(this,t),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=d(),this.iconPack=h,this.t=a(),this.gridSize=r,this.getAdaptiveSize=i=>"sm"===this.size||i>3||"md"===this.size?"sm":"md"}render(){const i={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},e=this.participants.filter((i=>this.pinnedParticipants.some((t=>t.id!=i.id))));return t(s,{key:"1cb846cc92b660a8244d16a74f48dfadcef903b6"},t("main",{key:"8564f8b0bf6e7bd668132e2833fe73c73855d090",part:"main"},t(o,{key:"61b96f305727dc74de15f4c3c645069d6300afd9",element:"rtk-simple-grid",defaults:i,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),e.length>0&&t("aside",{key:"2e297a8d83c1f7241d8688b643c055331d69299b",part:"aside",class:this.gridSize.spotlight?`grid-width-${this.gridSize.spotlight}`:"grid-width-md"},t(o,{key:"2c1969c610018dfb0a23308316f072e3b8d87a6e",element:"rtk-simple-grid",defaults:i,props:{part:"aside-grid",participants:e,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(e.length)}})))}get host(){return e(this)}};c([m()],n.prototype,"meeting",void 0),c([m()],n.prototype,"states",void 0),c([m()],n.prototype,"config",void 0),c([m()],n.prototype,"iconPack",void 0),c([m()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}";export{n as rtk_spotlight_grid}
1
+ import{r as i,h as t,a as s,g as e}from"./p-gJCRRBX0.js";import{c as h,e as d,i as a}from"./p-uIA60Puf.js";import{d as r}from"./p-CmmyVCoN.js";import{R as o}from"./p-CTFO-5XH.js";import{S as m}from"./p-BCaKYPpD.js";var c=function(i,t,s,e){var h,d=arguments.length,a=d<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(i,t,s,e);else for(var r=i.length-1;r>=0;r--)(h=i[r])&&(a=(d<3?h(a):d>3?h(t,s,a):h(t,s))||a);return d>3&&a&&Object.defineProperty(t,s,a),a};const n=class{constructor(t){i(this,t),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=h(),this.iconPack=d,this.t=a(),this.gridSize=r,this.getAdaptiveSize=i=>"sm"===this.size||i>3||"md"===this.size?"sm":"md"}render(){const i={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},e=this.participants.filter((i=>this.pinnedParticipants.some((t=>t.id!=i.id))));return t(s,{key:"1cb846cc92b660a8244d16a74f48dfadcef903b6"},t("main",{key:"8564f8b0bf6e7bd668132e2833fe73c73855d090",part:"main"},t(o,{key:"61b96f305727dc74de15f4c3c645069d6300afd9",element:"rtk-simple-grid",defaults:i,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),e.length>0&&t("aside",{key:"2e297a8d83c1f7241d8688b643c055331d69299b",part:"aside",class:this.gridSize.spotlight?`grid-width-${this.gridSize.spotlight}`:"grid-width-md"},t(o,{key:"2c1969c610018dfb0a23308316f072e3b8d87a6e",element:"rtk-simple-grid",defaults:i,props:{part:"aside-grid",participants:e,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(e.length)}})))}get host(){return e(this)}};c([m()],n.prototype,"meeting",void 0),c([m()],n.prototype,"states",void 0),c([m()],n.prototype,"config",void 0),c([m()],n.prototype,"iconPack",void 0),c([m()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}";export{n as rtk_spotlight_grid}
@@ -1 +1 @@
1
- import{r as t,d as e,h as i,a as s}from"./p-a599f720.js";import{e as a,i as o}from"./p-9727a165.js";import{S as r}from"./p-7e3c2d64.js";var n=function(t,e,i,s){var a,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const c=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return i(s,{key:"921afc41ed4a6019ff882c896855ab455b3edfb7",title:t},i("rtk-controlbar-button",{key:"88d4194fee24f1b96769e06e3a935d516ad543b0",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_settings_toggle}
1
+ import{r as t,d as e,h as i,a as s}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-uIA60Puf.js";import{S as r}from"./p-BCaKYPpD.js";var n=function(t,e,i,s){var a,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const c=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return i(s,{key:"921afc41ed4a6019ff882c896855ab455b3edfb7",title:t},i("rtk-controlbar-button",{key:"88d4194fee24f1b96769e06e3a935d516ad543b0",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_settings_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,d as e,h as a,a as r}from"./p-gJCRRBX0.js";import{S as o}from"./p-BCaKYPpD.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as i,i as s}from"./p-uIA60Puf.js";import"./p-Daj_55_i.js";const n=class{constructor(a){t(this,a),this.tabChange=e(this,"tabChange",7),this.sidebarClose=e(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,e=this.tabs.find((t=>t.id===this.currentTab));return a(r,{key:"239f279ceccceeaa57181d4a71f3e04ede4132ce",ref:t=>this.hostEl=t,class:this.view},!this.hideCloseAction&&a("rtk-button",{key:"921847fd946de305dce6f1fc7fe8a9ff175e38ee",ref:t=>this.closeButton=t,variant:"ghost",kind:"icon",class:"close",onClick:this.onClose,"aria-label":this.t("close")},a("rtk-icon",{key:"1de9f1edf8ecce2d0390b7b8a1253de02affd9d1",icon:this.iconPack.dismiss})),e&&!this.hideHeader&&a("header",{key:"4cd288feeb658e62d3ad1efd47aea237119918e1",class:"main-header"},a("h3",{key:"d6c4129537b4e090f3c429c66057be9a1072a864"},e.name),a("slot",{key:"dfb1ea30cfa476b515a3a4b628c036083f1fe0a5",name:"pinned-state"})),t&&a("header",{key:"7dafb426628960ba26718530417854a533de3664",class:"mobile-tabs"},this.tabs.map((t=>a("button",{onClick:()=>{this.tabChange.emit(t.id)},class:{active:this.currentTab===t.id}},t.name)))),a("slot",{key:"2696ccd9fcad418ad7738164cd5a9e6305320899",name:this.currentTab}))}static get watchers(){return{currentTab:[{handleFocusCloseButton:0}]}}};(function(t,e,a,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(s=(i<3?o(s):i>3?o(e,a,s):o(e,a))||s);i>3&&s&&Object.defineProperty(e,a,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 r,h as e,a as o}from"./p-gJCRRBX0.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as a,i as c}from"./p-uIA60Puf.js";import{S as i}from"./p-BCaKYPpD.js";import"./p-Daj_55_i.js";var s=function(t,r,e,o){var a,c=arguments.length,i=c<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--)(a=t[s])&&(i=(c<3?a(i):c>3?a(r,e,i):a(r,e))||i);return c>3&&i&&Object.defineProperty(r,e,i),i};const p=class{constructor(e){t(this,e),this.onDropCallback=r(this,"dropCallback",7),this.iconPack=a,this.t=c(),this.dropzoneActivated=!1}connectedCallback(){if(!this.hostEl)throw new Error("hostEl prop is required");this.hostEl.addEventListener("dragover",(t=>{t.preventDefault(),this.dropzoneActivated=!0})),this.hostEl.addEventListener("dragleave",(()=>{this.dropzoneActivated=!1})),this.hostEl.addEventListener("drop",(t=>{t.preventDefault(),this.dropzoneActivated=!1,this.onDropCallback.emit(t)}))}render(){return 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 r,h as o,a as e,g as a}from"./p-a599f720.js";import{e as i,i as s}from"./p-9727a165.js";import{S as c}from"./p-7e3c2d64.js";var n=function(t,r,o,e){var a,i=arguments.length,s=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,o,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(r,o,s):a(r,o))||s);return i>3&&s&&Object.defineProperty(r,o,s),s};const d=class{constructor(o){t(this,o),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=s(),this.handleKeyDown=({key:t})=>{"Escape"===t&&this.stateUpdate.emit({activeMoreMenu:!1})},this.handleOnClick=t=>{!t.composedPath().includes(this.host)&&this.states.activeMoreMenu&&this.stateUpdate.emit({activeMoreMenu:!1})},this.toggleMoreMenu=()=>{this.stateUpdate.emit({activeMoreMenu:!this.states.activeMoreMenu})}}connectedCallback(){window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("click",this.handleOnClick)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("click",this.handleOnClick)}render(){const t=this.t("more");return o(e,{key:"bb6bc743afd9c5c2c91f48097f98afc0f58fface",title:t},this.states.activeMoreMenu&&o("div",{key:"ca5d042b877cd1bee68b2563d40764bbc2072df4",class:"more-menu"},o("slot",{key:"9931da3f9e96d792be362c64338d582be2990647",name:"more-elements"})),o("rtk-controlbar-button",{key:"d0d7e0f19a37029c9cdfb8238c0a7af88876b2c0",size:this.size,iconPack:this.iconPack,onClick:t=>{t.stopPropagation(),this.toggleMoreMenu()},icon:this.iconPack.horizontal_dots,label:t,part:"controlbar-button"}),o("slot",{key:"603c0b5f092419c98ed56614a1468b5802c95702",name:"expanded"}))}get host(){return a(this)}};n([c()],d.prototype,"states",void 0),n([c()],d.prototype,"iconPack",void 0),n([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:visible}.more-menu{position:absolute;right:calc(var(--rtk-space-24, 96px) * -1);bottom:var(--rtk-space-16, 64px);z-index:50;margin-bottom:var(--rtk-space-3, 12px);box-sizing:border-box;max-height:60vh;width:var(--rtk-space-64, 256px);overflow:auto;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:column;align-items:stretch}:host([size='sm']) .more-menu{bottom:var(--rtk-space-10, 40px)}.more-menu::-webkit-scrollbar{height:var(--rtk-space-0, 0px);width:var(--rtk-space-1\\.5, 6px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.more-menu::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";export{d as rtk_more_toggle}
1
+ import{r as t,d as r,h as o,a as e,g as a}from"./p-gJCRRBX0.js";import{e as i,i as s}from"./p-uIA60Puf.js";import{S as c}from"./p-BCaKYPpD.js";var n=function(t,r,o,e){var a,i=arguments.length,s=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,o,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(r,o,s):a(r,o))||s);return i>3&&s&&Object.defineProperty(r,o,s),s};const d=class{constructor(o){t(this,o),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=s(),this.handleKeyDown=({key:t})=>{"Escape"===t&&this.stateUpdate.emit({activeMoreMenu:!1})},this.handleOnClick=t=>{!t.composedPath().includes(this.host)&&this.states.activeMoreMenu&&this.stateUpdate.emit({activeMoreMenu:!1})},this.toggleMoreMenu=()=>{this.stateUpdate.emit({activeMoreMenu:!this.states.activeMoreMenu})}}connectedCallback(){window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("click",this.handleOnClick)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("click",this.handleOnClick)}render(){const t=this.t("more");return o(e,{key:"bb6bc743afd9c5c2c91f48097f98afc0f58fface",title:t},this.states.activeMoreMenu&&o("div",{key:"ca5d042b877cd1bee68b2563d40764bbc2072df4",class:"more-menu"},o("slot",{key:"9931da3f9e96d792be362c64338d582be2990647",name:"more-elements"})),o("rtk-controlbar-button",{key:"d0d7e0f19a37029c9cdfb8238c0a7af88876b2c0",size:this.size,iconPack:this.iconPack,onClick:t=>{t.stopPropagation(),this.toggleMoreMenu()},icon:this.iconPack.horizontal_dots,label:t,part:"controlbar-button"}),o("slot",{key:"603c0b5f092419c98ed56614a1468b5802c95702",name:"expanded"}))}get host(){return a(this)}};n([c()],d.prototype,"states",void 0),n([c()],d.prototype,"iconPack",void 0),n([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:visible}.more-menu{position:absolute;right:calc(var(--rtk-space-24, 96px) * -1);bottom:var(--rtk-space-16, 64px);z-index:50;margin-bottom:var(--rtk-space-3, 12px);box-sizing:border-box;max-height:60vh;width:var(--rtk-space-64, 256px);overflow:auto;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:column;align-items:stretch}:host([size='sm']) .more-menu{bottom:var(--rtk-space-10, 40px)}.more-menu::-webkit-scrollbar{height:var(--rtk-space-0, 0px);width:var(--rtk-space-1\\.5, 6px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.more-menu::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";export{d as rtk_more_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,a as r}from"./p-gJCRRBX0.js";import{c as e,e as a,i as o}from"./p-uIA60Puf.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{S as s}from"./p-BCaKYPpD.js";import"./p-Daj_55_i.js";var n=function(t,i,r,e){var a,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(i,r,s):a(i,r))||s);return o>3&&s&&Object.defineProperty(i,r,s),s};const d=class{constructor(i){t(this,i),this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=e(),this.variant="solid",this.iconPack=a,this.t=o(),this.onVideoUpdate=t=>{this.videoState=t}}connectedCallback(){this.participantsChanged(this.participant)}componentDidLoad(){this.videoStateChanged(this.videoState)}disconnectedCallback(){null!=this.participant&&this.participant.removeListener("videoUpdate",this.onVideoUpdate)}async participantsChanged(t){null!=t&&(this.videoState={videoEnabled:t.videoEnabled,videoTrack:t.videoTrack},this.isPinned=t.isPinned,t.addListener("videoUpdate",this.onVideoUpdate))}videoStateChanged(t){if(null!=t&&null!=this.videoEl)if(t.videoEnabled){const i=new MediaStream;i.addTrack(t.videoTrack),this.videoEl.srcObject=i}else this.videoEl.srcObject=void 0}isMirrored(){var t;if(null!=this.participant&&("preview"in this.participant||this.isPreview)){const i=this.states,r=null===(t=null==i?void 0:i.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof r)return r}return!1}render(){var t,e,a,o;return i(r,{key:"28dd3343464f9c18cae6161f8ad56005b748a637"},i("video",{key:"556343e40a061ddb9522569a77b574309bed9f31",ref:t=>this.videoEl=t,class:{visible:null===(t=this.videoState)||void 0===t?void 0:t.videoEnabled,mirror:this.isMirrored(),[null!==(o=null===(a=null===(e=this.config)||void 0===e?void 0:e.config)||void 0===a?void 0:a.videoFit)&&void 0!==o?o:"cover"]:!0},autoPlay:!0,playsInline:!0,muted:!0}),i("slot",{key:"c5da0b57d92652e54ef88cedcc269ccc720d1054"}))}static get watchers(){return{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}}};n([s()],d.prototype,"states",void 0),n([s()],d.prototype,"config",void 0),n([s()],d.prototype,"iconPack",void 0),n([s()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;height:var(--rtk-space-56, 224px);overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));transition-property:var(--rtk-transition-property, all);transition-duration:150ms}@media (prefers-reduced-motion){:host{--rtk-transition-property:none}}:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag){left:var(--rtk-space-2, 8px);bottom:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px)}video{display:none;position:absolute;height:100%;width:100%;border-radius:var(--rtk-border-radius-lg, 12px)}video.contain{-o-object-fit:contain;object-fit:contain}video.cover{-o-object-fit:cover;object-fit:cover}video.visible{display:block}video::-webkit-media-controls{display:none !important}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}video.mirror{transform:scaleX(-1)}@media (orientation: portrait){:host{height:var(--rtk-space-44, 176px)}}";export{d as rtk_participant_setup}
@@ -0,0 +1 @@
1
+ import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{e,i as n}from"./p-uIA60Puf.js";import{a as r}from"./p-D9HGXWKc.js";import{S as h}from"./p-BCaKYPpD.js";import"./p-C0vp-Q7v.js";var o=function(t,i,s,a){var e,n=arguments.length,r=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,a);else for(var h=t.length-1;h>=0;h--)(e=t[h])&&(r=(n<3?e(r):n>3?e(i,s,r):e(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=n(),this.participantsActive=!1,this.waitlistedParticipants=[],this.stageRequestedParticipants=[],this.badgeCount=0,this.canViewParticipants=!1,this.updateStageRequests=async t=>{var i,s,a;t||(t=null!==(a=null===(s=null===(i=this.meeting.stage)||void 0===i?void 0:i.getAccessRequests())||void 0===s?void 0:s.stageRequests)&&void 0!==a?a:[]),this.stageRequestedParticipants=t,this.stageRequestedParticipants="REQUESTED_TO_JOIN_STAGE"===this.meeting.stage.status?[this.meeting.self,...t]:t,this.updateBadgeCount()},this.updateBadgeCount=()=>{this.badgeCount=this.waitlistedParticipants.length+this.stageRequestedParticipants.length},this.updateCanView=()=>{this.canViewParticipants=r(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s;this.meeting&&(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),null===(s=this.meeting.stage)||void 0===s||s.removeListener("stageAccessRequestUpdate",this.updateStageRequests))}meetingChanged(t){var i;t&&(this.canViewParticipants=r(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),t.self.permissions.acceptWaitingRequests&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t],this.updateBadgeCount())},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id)),this.updateBadgeCount()},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&(this.updateStageRequests(),null==t||t.stage.on("stageAccessRequestUpdate",this.updateStageRequests)),this.updateBadgeCount())}statesChanged(t){null!=t&&(this.participantsActive=!0===t.activeSidebar&&"participants"===t.sidebar)}toggleParticipantsTab(){const t=this.states;this.participantsActive=!((null==t?void 0:t.activeSidebar)&&"participants"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.participantsActive,sidebar:this.participantsActive?"participants":void 0,activeMoreMenu:!1})}handleParticipantsActiveChange(){this.participantsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewParticipants)return s(a,{"data-hidden":!0});const t=this.t("participants");return s(a,{title:t},0!==this.badgeCount&&!this.participantsActive&&s("div",{class:"waiting-participants-count",part:"waiting-participants-count"},s("span",null,this.badgeCount<=100?this.badgeCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.participantsActive},onClick:()=>this.toggleParticipantsTab(),icon:this.iconPack.participants,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],participantsActive:[{handleParticipantsActiveChange:0}]}}};o([h()],c.prototype,"meeting",void 0),o([h()],c.prototype,"states",void 0),o([h()],c.prototype,"iconPack",void 0),o([h()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.waiting-participants-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .waiting-participants-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{c as rtk_participants_toggle}
@@ -0,0 +1 @@
1
+ import{r as e,h as a,a as t,d as i}from"./p-gJCRRBX0.js";import{C as s}from"./p-C5Ah4uY5.js";import{s as c,h as d}from"./p-vBD2htwQ.js";import{e as f,i as o}from"./p-uIA60Puf.js";import{g as r,a as b,d as n}from"./p-BJvHNbaa.js";import{S as l}from"./p-BCaKYPpD.js";import{T as h}from"./p-Dg4b2aZr.js";import"./p-jvwnrxra.js";import"./p-CqWk07gT.js";var k=function(e,a,t,i){var s,c=arguments.length,d=c<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,a,t,i);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(d=(c<3?s(d):c>3?s(a,t,d):s(a,t))||d);return c>3&&d&&Object.defineProperty(a,t,d),d};const m=class{constructor(a){e(this,a),this.now=new Date,this.isContinued=!1,this.iconPack=f,this.t=o(),this.showBubble=!1}render(){const e=c(this.message.link);return a(t,{key:"b10da5fd1c4c6d80a1e5bf5f35f4956abde0ed5d"},!this.isContinued&&a(s,{key:"fb1384ad8bfc73219b28c4500f78e6c6421ee848",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"81a067a5567ad160e4398a6f16b21309f81a0c9b",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"c6eb4b26b0090b7f9fd6af9e79d04c8b4e76a6d1",class:"file"},a("div",{key:"10e9b854fa0c1f311bb1bc76c90223220c9a10f3",class:"file-data"},a("div",{key:"ace6eeb050ad6c656cd215456b69f8b6e9529aec",class:"name"},this.message.name),a("div",{key:"562de08ebd242e92aeca1fae0aa4823612a60c1c",class:"file-data-split"},a("div",{key:"968eee3032f98a59da43c0b4604dc597c4bfd94c",class:"ext"},r(this.message.name)),a("span",{key:"2cb436ffed86b9c3a73ff5feab9d3ec7c8e0ef3b",class:"divider"}),a("div",{key:"9cc1d37edf60fbd3d3538512539a79244ffd74de",class:"size"},b(this.message.size)))),a("rtk-button",{key:"e4eb744391b8fe61bd4d58e3ac3d7d10ee748976",variant:"secondary",kind:"icon",onClick:()=>n(e,{name:this.message.name,fallbackName:"file"}),part:"button"},a("rtk-icon",{key:"79efeb36257d970f243d1730d0ac4ad84bc6993d",icon:this.iconPack.download})))))}};k([l()],m.prototype,"iconPack",void 0),k([l()],m.prototype,"t",void 0);var y=function(e,a,t,i){var s,c=arguments.length,d=c<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,a,t,i);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(d=(c<3?s(d):c>3?s(a,t,d):s(a,t))||d);return c>3&&d&&Object.defineProperty(a,t,d),d};const p=class{constructor(a){e(this,a),this.stateUpdate=i(this,"rtkStateUpdate",7),this.now=new Date,this.isContinued=!1,this.iconPack=f,this.t=o(),this.showBubble=!1,this.status="loading"}render(){return a(t,{key:"8ac3f237a8d77254219f8b5763dd6b53d2cb764b"},!this.isContinued&&a(s,{key:"6eb17e16b4fd4e12d3b8a7ce8a5bcfd548930a50",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"d5cce1675057a0378425452898fcbc4c738b7bb2",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"45f073d8268c92aee4fec8b139fd325e668dab76",class:{image:!0,loaded:"loaded"===this.status}},a("img",{key:"28a206e34b791205e042233ee7f317f389f421da",src:c(this.message.link),onLoad:()=>{this.status="loaded"},onError:()=>{this.status="errored"},onClick:()=>{"loaded"===this.status&&this.stateUpdate.emit({image:this.message})}}),"loading"===this.status&&a("div",{key:"b7862bff3f6c9df7042bdab2f6b0370e7c362f02",class:"image-spinner",title:this.t("chat.img.loading"),"aria-label":this.t("chat.img.loading")},a("rtk-spinner",{key:"460074eae700cd3f522019f967ba5955b9eb972e",iconPack:this.iconPack})),"errored"===this.status&&a("div",{key:"bdf48c8fdc5057d2c77d10b64d7af5576f478556",class:"image-errored",title:this.t("chat.error.img_not_found"),"aria-label":this.t("chat.error.img_not_found")},a("rtk-icon",{key:"523e5ff6dd4579082e5953346155df9b7b23862f",icon:this.iconPack.image_off})),"loaded"===this.status&&a("div",{key:"89e3679101615838ec6a0f521b98386454d25197",class:"actions"},a("rtk-button",{key:"ccaed0a3d70945d66e7b700e01bbc5289421f8ae",class:"action",variant:"secondary",kind:"icon",onClick:()=>{this.stateUpdate.emit({image:this.message})}},a("rtk-icon",{key:"ee20f5497dbb38590de65c4a404eda90b0d5c4e5",icon:this.iconPack.full_screen_maximize})),a("rtk-button",{key:"181d39cfd837e45d3da1aa0fa0f97226c50cb46a",class:"action",variant:"secondary",kind:"icon",onClick:()=>n(this.message.link,{fallbackName:"image"})},a("rtk-icon",{key:"53c7e551ec4a2efb32d60d16eb2a4a02144abf4f",icon:this.iconPack.download}))))))}};y([l()],p.prototype,"iconPack",void 0),y([l()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.image-spinner{cursor:wait}.image-errored{cursor:not-allowed}";var v=function(e,a,t,i){var s,c=arguments.length,d=c<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,a,t,i);else for(var f=e.length-1;f>=0;f--)(s=e[f])&&(d=(c<3?s(d):c>3?s(a,t,d):s(a,t))||d);return c>3&&d&&Object.defineProperty(a,t,d),d};const u=class{constructor(a){e(this,a),this.now=new Date,this.isContinued=!1,this.iconPack=f,this.t=o(),this.showBubble=!1}render(){return a(t,{key:"a34dd007a87a134202e153f3d886102bbe6a685c"},!this.isContinued&&a(s,{key:"8505cee0d359b7449776ece2bbd7455811217a41",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"00b2baca454b62e4984e82790580bac116a046a0",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"ecc8de946011c9836cebfd626a27cb23f111d0cc",class:{text:!0,emoji:d(this.message.message)}},a(h,{key:"1efad576e6110986cb2abac7ff2c42b492c995aa",message:this.message.message}))))}};v([l()],u.prototype,"iconPack",void 0),v([l()],u.prototype,"t",void 0);export{m as rtk_file_message,p as rtk_image_message,u as rtk_text_message}
@@ -0,0 +1 @@
1
+ import{r as t,d as r,h as i,a as s}from"./p-gJCRRBX0.js";import{c as a,e,i as o}from"./p-uIA60Puf.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{S as n}from"./p-BCaKYPpD.js";import{d as p}from"./p-Bbls2zyp.js";import"./p-Daj_55_i.js";var c=function(t,r,i,s){var a,e=arguments.length,o=e<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(e<3?a(o):e>3?a(r,i,o):a(r,i))||o);return e>3&&o&&Object.defineProperty(r,i,o),o};const h=class{constructor(s){t(this,s),this.stateUpdate=r(this,"rtkStateUpdate",7),this.config=a(),this.iconPack=e,this.defaultParticipantsTabId="stage-list",this.t=o(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=p((()=>{var t;let r=(null===(t=this.meeting.participants.waitlisted)||void 0===t?void 0:t.size)||0,s=0,a=0;this.meeting.participants.joined.toArray().forEach((t=>{"ON_STAGE"===t.stageStatus&&s++,"OFF_STAGE"===t.stageStatus&&a++,"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(r++,a++),"ACCEPTED_TO_JOIN_STAGE"===t.stageStatus&&a++})),"ON_STAGE"===this.meeting.self.stageStatus&&s++,"OFF_STAGE"===this.meeting.self.stageStatus&&a++,"REQUESTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&(r++,a++),"ACCEPTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&a++;const e=[];this.shouldShowRequestsTab()&&e.push({id:"requests",name:i("span",null,this.t("requests")," ",i("span",{class:`tab-participant-count-badge ${r>0?"requests-pending":""} ${"requests"===this.currentParticipantsTabId?"selected-tab":""}`},r))}),e.push({id:"stage-list",name:i("span",null,this.t("participants")," ",i("span",{class:"tab-participant-count-badge "+("stage-list"===this.currentParticipantsTabId?"selected-tab":"")},s))}),this.shouldShowViewersTab()&&e.push({id:"viewer-list",name:i("span",null,this.t("viewers")," ",i("span",{class:"tab-participant-count-badge "+("viewer-list"===this.currentParticipantsTabId?"selected-tab":"")},a))}),this.tabs=e,this.hasRequests=r>0})),this.onSearchInput=t=>{this.search=t.target.value},this.shouldShowViewersTab=()=>{var t,r,i;return null===(i=null===(r=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===r?void 0:r.permissions)||void 0===i?void 0:i.stageEnabled},this.shouldShowRequestsTab=()=>{var t;let r=!1;return r="LIVESTREAM"!==this.meeting.meta.viewType&&(null===(t=this.meeting.self.config.waitingRoom)||void 0===t?void 0:t.isEnabled)&&this.meeting.self.permissions.acceptWaitingRequests,this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests||r},this.viewSection=t=>{this.currentParticipantsTabId=t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.participants.joined.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantsUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.stage.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("stageStatusUpdate",this.updateParticipantCountsInTabs))}meetingChanged(t){t&&(t.participants.joined.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.joined.on("participantsUpdate",this.updateParticipantCountsInTabs),t.participants.joined.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.joined.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.stage.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("stageStatusUpdate",this.updateParticipantCountsInTabs),this.updateParticipantCountsInTabs())}currentParticipantsTabIdChanged(){this.stateUpdate.emit({participantsTabId:this.currentParticipantsTabId}),this.updateParticipantCountsInTabs()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t};return i(s,null,i("div",{class:"search",part:"search"},i("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),i("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),i("slot",{name:"start"}),i("div",{class:"ctr scrollbar "+("requests"!==this.currentParticipantsTabId?"virtualised":""),part:"container"},i("rtk-sidebar-ui",{tabs:this.tabs,currentTab:this.currentParticipantsTabId,view:"full-screen",hideHeader:!0,hideCloseAction:!0,style:{position:"relative"},onTabChange:t=>{this.viewSection(t.detail),t.stopPropagation()}},(!this.currentParticipantsTabId||"stage-list"===this.currentParticipantsTabId)&&i("div",{slot:"stage-list",style:{marginTop:"10px",height:"100%"}},i("rtk-participants-stage-list",Object.assign({},t,{search:this.search,hideHeader:!0}))),"requests"===this.currentParticipantsTabId&&i("div",{slot:"requests",style:{marginTop:"10px",height:"100%"}},!this.hasRequests&&i("div",{class:"no-pending-requests"},this.t("participants.no_pending_requests")),i("rtk-participants-stage-queue",Object.assign({},t)),i("rtk-participants-waiting-list",Object.assign({},t))),"viewer-list"===this.currentParticipantsTabId&&i("div",{slot:"viewer-list",style:{marginTop:"10px",height:"100%"}},i("rtk-participants-viewer-list",Object.assign({},t,{search:this.search,hideHeader:!0}))))),i("slot",{name:"end"}))}static get watchers(){return{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}}};c([n()],h.prototype,"meeting",void 0),c([n()],h.prototype,"states",void 0),c([n()],h.prototype,"config",void 0),c([n()],h.prototype,"iconPack",void 0),c([n()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.ctr.virtualised{overflow-y:hidden}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}:host([size='md']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}:host([size='sm']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}.no-pending-requests{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}";export{h as rtk_participants}
@@ -0,0 +1 @@
1
+ const t=["top","right","bottom","left"],n=["start","end"],e=t.reduce(((t,e)=>t.concat(e,e+"-"+n[0],e+"-"+n[1])),[]),o=Math.min,r=Math.max,i=Math.round,a=t=>({x:t,y:t}),c={left:"right",right:"left",bottom:"top",top:"bottom"};function l(t,n,e){return r(t,o(n,e))}function s(t,n){return"function"==typeof t?t(n):t}function u(t){return t.split("-")[0]}function f(t){return t.split("-")[1]}function d(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function y(t){const n=t[0];return"t"===n||"b"===n?"y":"x"}function p(t){return d(y(t))}function h(t,n,e){void 0===e&&(e=!1);const o=f(t),r=p(t),i=m(r);let a="x"===r?o===(e?"end":"start")?"right":"left":"start"===o?"bottom":"top";return n.reference[i]>n.floating[i]&&(a=A(a)),[a,A(a)]}function w(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const g=["left","right"],x=["right","left"],v=["top","bottom"],b=["bottom","top"];function A(t){const n=u(t);return c[n]+t.slice(n.length)}function S(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function k(t){const{x:n,y:e,width:o,height:r}=t;return{width:o,height:r,top:e,left:n,right:n+o,bottom:e+r,x:n,y:e}}function C(t,n,e){let{reference:o,floating:r}=t;const i=y(n),a=p(n),c=m(a),l=u(n),s="y"===i,d=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,w=o[c]/2-r[c]/2;let g;switch(l){case"top":g={x:d,y:o.y-r.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(f(n)){case"start":g[a]-=w*(e&&s?-1:1);break;case"end":g[a]+=w*(e&&s?-1:1)}return g}async function P(t,n){var e;void 0===n&&(n={});const{x:o,y:r,platform:i,rects:a,elements:c,strategy:l}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:m=!1,padding:y=0}=s(n,t),p=S(y),h=c[m?"floating"===d?"reference":"floating":d],w=k(await i.getClippingRect({element:null==(e=await(null==i.isElement?void 0:i.isElement(h)))||e?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:u,rootBoundary:f,strategy:l})),g="floating"===d?{x:o,y:r,width:a.floating.width,height:a.floating.height}:a.reference,x=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),v=await(null==i.isElement?void 0:i.isElement(x))&&await(null==i.getScale?void 0:i.getScale(x))||{x:1,y:1},b=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:g,offsetParent:x,strategy:l}):g);return{top:(w.top-b.top+p.top)/v.y,bottom:(b.bottom-w.bottom+p.bottom)/v.y,left:(w.left-b.left+p.left)/v.x,right:(b.right-w.right+p.right)/v.x}}function R(t,n){return{top:t.top-n.height,right:t.right-n.width,bottom:t.bottom-n.height,left:t.left-n.width}}function D(n){return t.some((t=>n[t]>=0))}const F=new Set(["left","top"]);function O(){return"undefined"!=typeof window}function T(t){return M(t)?(t.nodeName||"").toLowerCase():"#document"}function H(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function L(t){var n;return null==(n=(M(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function M(t){return!!O()&&(t instanceof Node||t instanceof H(t).Node)}function B(t){return!!O()&&(t instanceof Element||t instanceof H(t).Element)}function E(t){return!!O()&&(t instanceof HTMLElement||t instanceof H(t).HTMLElement)}function $(t){return!(!O()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof H(t).ShadowRoot)}function N(t){const{overflow:n,overflowX:e,overflowY:o,display:r}=I(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+e)&&"inline"!==r&&"contents"!==r}function j(t){return/^(table|td|th)$/.test(T(t))}function V(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const W=/transform|translate|scale|rotate|perspective|filter/,X=/paint|layout|strict|content/,Y=t=>!!t&&"none"!==t;let _;function q(t){const n=B(t)?I(t):t;return Y(n.transform)||Y(n.translate)||Y(n.scale)||Y(n.rotate)||Y(n.perspective)||!z()&&(Y(n.backdropFilter)||Y(n.filter))||W.test(n.willChange||"")||X.test(n.contain||"")}function z(){return null==_&&(_="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),_}function G(t){return/^(html|body|#document)$/.test(T(t))}function I(t){return H(t).getComputedStyle(t)}function J(t){return B(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function K(t){if("html"===T(t))return t;const n=t.assignedSlot||t.parentNode||$(t)&&t.host||L(t);return $(n)?n.host:n}function Q(t){const n=K(t);return G(n)?t.ownerDocument?t.ownerDocument.body:t.body:E(n)&&N(n)?n:Q(n)}function U(t,n){var e;void 0===n&&(n=[]);const o=Q(t),r=o===(null==(e=t.ownerDocument)?void 0:e.body),i=H(o);return r?n.concat(i,i.visualViewport||[],N(o)?o:[],[]):n.concat(o,U(o,[]))}function Z(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function tt(t){const n=I(t);let e=parseFloat(n.width)||0,o=parseFloat(n.height)||0;const r=E(t),a=r?t.offsetWidth:e,c=r?t.offsetHeight:o,l=i(e)!==a||i(o)!==c;return l&&(e=a,o=c),{width:e,height:o,$:l}}function nt(t){return B(t)?t:t.contextElement}function et(t){const n=nt(t);if(!E(n))return a(1);const e=n.getBoundingClientRect(),{width:o,height:r,$:c}=tt(n);let l=(c?i(e.width):e.width)/o,s=(c?i(e.height):e.height)/r;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const ot=a(0);function rt(t){const n=H(t);return z()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:ot}function it(t,n,e,o){void 0===n&&(n=!1),void 0===e&&(e=!1);const r=t.getBoundingClientRect(),i=nt(t);let c=a(1);n&&(o?B(o)&&(c=et(o)):c=et(t));const l=function(t,n,e){return void 0===n&&(n=!1),!(!e||n&&e!==H(t))&&n}(i,e,o)?rt(i):a(0);let s=(r.left+l.x)/c.x,u=(r.top+l.y)/c.y,f=r.width/c.x,d=r.height/c.y;if(i){const t=H(i),n=o&&B(o)?H(o):o;let e=t,r=Z(e);for(;r&&o&&n!==e;){const t=et(r),n=r.getBoundingClientRect(),o=I(r),i=n.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,a=n.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,u*=t.y,f*=t.x,d*=t.y,s+=i,u+=a,e=H(r),r=Z(e)}}return k({width:f,height:d,x:s,y:u})}function at(t,n){const e=J(t).scrollLeft;return n?n.left+e:it(L(t)).left+e}function ct(t,n){const e=t.getBoundingClientRect();return{x:e.left+n.scrollLeft-at(t,e),y:e.top+n.scrollTop}}function lt(t,n,e){let o;if("viewport"===n)o=function(t,n){const e=H(t),o=L(t),r=e.visualViewport;let i=o.clientWidth,a=o.clientHeight,c=0,l=0;if(r){i=r.width,a=r.height;const t=z();(!t||t&&"fixed"===n)&&(c=r.offsetLeft,l=r.offsetTop)}const s=at(o);if(s<=0){const t=o.ownerDocument,n=t.body,e=getComputedStyle(n),r="CSS1Compat"===t.compatMode&&parseFloat(e.marginLeft)+parseFloat(e.marginRight)||0,a=Math.abs(o.clientWidth-n.clientWidth-r);a<=25&&(i-=a)}else s<=25&&(i+=s);return{width:i,height:a,x:c,y:l}}(t,e);else if("document"===n)o=function(t){const n=L(t),e=J(t),o=t.ownerDocument.body,i=r(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),a=r(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight);let c=-e.scrollLeft+at(t);const l=-e.scrollTop;return"rtl"===I(o).direction&&(c+=r(n.clientWidth,o.clientWidth)-i),{width:i,height:a,x:c,y:l}}(L(t));else if(B(n))o=function(t,n){const e=it(t,!0,"fixed"===n),o=e.top+t.clientTop,r=e.left+t.clientLeft,i=E(t)?et(t):a(1);return{width:t.clientWidth*i.x,height:t.clientHeight*i.y,x:r*i.x,y:o*i.y}}(n,e);else{const e=rt(t);o={x:n.x-e.x,y:n.y-e.y,width:n.width,height:n.height}}return k(o)}function st(t,n){const e=K(t);return!(e===n||!B(e)||G(e))&&("fixed"===I(e).position||st(e,n))}function ut(t,n,e){const o=E(n),r=L(n),i="fixed"===e,c=it(t,!0,i,n);let l={scrollLeft:0,scrollTop:0};const s=a(0);function u(){s.x=at(r)}if(o||!o&&!i)if(("body"!==T(n)||N(r))&&(l=J(n)),o){const t=it(n,!0,i,n);s.x=t.x+n.clientLeft,s.y=t.y+n.clientTop}else r&&u();i&&!o&&r&&u();const f=!r||o||i?a(0):ct(r,l);return{x:c.left+l.scrollLeft-s.x-f.x,y:c.top+l.scrollTop-s.y-f.y,width:c.width,height:c.height}}function ft(t){return"static"===I(t).position}function dt(t,n){if(!E(t)||"fixed"===I(t).position)return null;if(n)return n(t);let e=t.offsetParent;return L(t)===e&&(e=e.ownerDocument.body),e}function mt(t,n){const e=H(t);if(V(t))return e;if(!E(t)){let n=K(t);for(;n&&!G(n);){if(B(n)&&!ft(n))return n;n=K(n)}return e}let o=dt(t,n);for(;o&&j(o)&&ft(o);)o=dt(o,n);return o&&G(o)&&ft(o)&&!q(o)?e:o||function(t){let n=K(t);for(;E(n)&&!G(n);){if(q(n))return n;if(V(n))return null;n=K(n)}return null}(t)||e}const yt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:e,offsetParent:o,strategy:r}=t;const i="fixed"===r,c=L(o),l=!!n&&V(n.floating);if(o===c||l&&i)return e;let s={scrollLeft:0,scrollTop:0},u=a(1);const f=a(0),d=E(o);if((d||!d&&!i)&&(("body"!==T(o)||N(c))&&(s=J(o)),d)){const t=it(o);u=et(o),f.x=t.x+o.clientLeft,f.y=t.y+o.clientTop}const m=!c||d||i?a(0):ct(c,s);return{width:e.width*u.x,height:e.height*u.y,x:e.x*u.x-s.scrollLeft*u.x+f.x+m.x,y:e.y*u.y-s.scrollTop*u.y+f.y+m.y}},getDocumentElement:L,getClippingRect:function(t){let{element:n,boundary:e,rootBoundary:i,strategy:a}=t;const c=[..."clippingAncestors"===e?V(n)?[]:function(t,n){const e=n.get(t);if(e)return e;let o=U(t,[]).filter((t=>B(t)&&"body"!==T(t))),r=null;const i="fixed"===I(t).position;let a=i?K(t):t;for(;B(a)&&!G(a);){const n=I(a),e=q(a);e||"fixed"!==n.position||(r=null),(i?!e&&!r:!e&&"static"===n.position&&r&&("absolute"===r.position||"fixed"===r.position)||N(a)&&!e&&st(t,a))?o=o.filter((t=>t!==a)):r=n,a=K(a)}return n.set(t,o),o}(n,this._c):[].concat(e),i],l=lt(n,c[0],a);let s=l.top,u=l.right,f=l.bottom,d=l.left;for(let t=1;t<c.length;t++){const e=lt(n,c[t],a);s=r(e.top,s),u=o(e.right,u),f=o(e.bottom,f),d=r(e.left,d)}return{width:u-d,height:f-s,x:d,y:s}},getOffsetParent:mt,getElementRects:async function(t){const n=this.getOffsetParent||mt,e=this.getDimensions,o=await e(t.floating);return{reference:ut(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:n,height:e}=tt(t);return{width:n,height:e}},getScale:et,isElement:B,isRTL:function(t){return"rtl"===I(t).direction}},pt=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(n){var e,o;const{x:r,y:i,placement:a,middlewareData:c}=n,l=await async function(t,n){const{placement:e,platform:o,elements:r}=t,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),a=u(e),c=f(e),l="y"===y(e),d=F.has(a)?-1:1,m=i&&l?-1:1,p=s(n,t);let{mainAxis:h,crossAxis:w,alignmentAxis:g}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&"number"==typeof g&&(w="end"===c?-1*g:g),l?{x:w*m,y:h*d}:{x:h*d,y:w*m}}(n,t);return a===(null==(e=c.offset)?void 0:e.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:a}}}}},ht=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(n){var o,r,i;const{rects:a,middlewareData:c,placement:l,platform:d,elements:m}=n,{crossAxis:y=!1,alignment:p,allowedPlacements:g=e,autoAlignment:x=!0,...v}=s(t,n),b=void 0!==p||g===e?function(t,n,e){return(t?[...e.filter((n=>f(n)===t)),...e.filter((n=>f(n)!==t))]:e.filter((t=>u(t)===t))).filter((e=>!t||f(e)===t||!!n&&w(e)!==e))}(p||null,x,g):g,A=await d.detectOverflow(n,v),S=(null==(o=c.autoPlacement)?void 0:o.index)||0,k=b[S];if(null==k)return{};const C=h(k,a,await(null==d.isRTL?void 0:d.isRTL(m.floating)));if(l!==k)return{reset:{placement:b[0]}};const P=[A[u(k)],A[C[0]],A[C[1]]],R=[...(null==(r=c.autoPlacement)?void 0:r.overflows)||[],{placement:k,overflows:P}],D=b[S+1];if(D)return{data:{index:S+1,overflows:R},reset:{placement:D}};const F=R.map((t=>{const n=f(t.placement);return[t.placement,n&&y?t.overflows.slice(0,2).reduce(((t,n)=>t+n),0):t.overflows[0],t.overflows]})).sort(((t,n)=>t[1]-n[1])),O=(null==(i=F.filter((t=>t[2].slice(0,f(t[0])?2:3).every((t=>t<=0))))[0])?void 0:i[0])||F[0][0];return O!==l?{data:{index:S+1,overflows:R},reset:{placement:O}}:{}}}},wt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(n){const{x:e,y:o,placement:r,platform:i}=n,{mainAxis:a=!0,crossAxis:c=!1,limiter:f={fn:t=>{let{x:n,y:e}=t;return{x:n,y:e}}},...m}=s(t,n),p={x:e,y:o},h=await i.detectOverflow(n,m),w=y(u(r)),g=d(w);let x=p[g],v=p[w];a&&(x=l(x+h["y"===g?"top":"left"],x,x-h["y"===g?"bottom":"right"])),c&&(v=l(v+h["y"===w?"top":"left"],v,v-h["y"===w?"bottom":"right"]));const b=f.fn({...n,[g]:x,[w]:v});return{...b,data:{x:b.x-e,y:b.y-o,enabled:{[g]:a,[w]:c}}}}}},gt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(n){var e,o;const{placement:r,middlewareData:i,rects:a,initialPlacement:c,platform:l,elements:d}=n,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:S,fallbackStrategy:k="bestFit",fallbackAxisSideDirection:C="none",flipAlignment:P=!0,...R}=s(t,n);if(null!=(e=i.arrow)&&e.alignmentOffset)return{};const D=u(r),F=y(c),O=u(c)===c,T=await(null==l.isRTL?void 0:l.isRTL(d.floating)),H=S||(O||!P?[A(c)]:function(t){const n=A(t);return[w(t),n,w(n)]}(c)),L="none"!==C;!S&&L&&H.push(...function(t,n,e,o){const r=f(t);let i=function(t,n,e){switch(t){case"top":case"bottom":return e?n?x:g:n?g:x;case"left":case"right":return n?v:b;default:return[]}}(u(t),"start"===e,o);return r&&(i=i.map((t=>t+"-"+r)),n&&(i=i.concat(i.map(w)))),i}(c,P,C,T));const M=[c,...H],B=await l.detectOverflow(n,R),E=[];let $=(null==(o=i.flip)?void 0:o.overflows)||[];if(m&&E.push(B[D]),p){const t=h(r,a,T);E.push(B[t[0]],B[t[1]])}if($=[...$,{placement:r,overflows:E}],!E.every((t=>t<=0))){var N,j;const t=((null==(N=i.flip)?void 0:N.index)||0)+1,n=M[t];if(n&&("alignment"!==p||F===y(n)||$.every((t=>y(t.placement)!==F||t.overflows[0]>0))))return{data:{index:t,overflows:$},reset:{placement:n}};let e=null==(j=$.filter((t=>t.overflows[0]<=0)).sort(((t,n)=>t.overflows[1]-n.overflows[1]))[0])?void 0:j.placement;if(!e)switch(k){case"bestFit":{var V;const t=null==(V=$.filter((t=>{if(L){const n=y(t.placement);return n===F||"y"===n}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,n)=>t+n),0)])).sort(((t,n)=>t[1]-n[1]))[0])?void 0:V[0];t&&(e=t);break}case"initialPlacement":e=c}if(r!==e)return{reset:{placement:e}}}return{}}}},xt=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(n){const{rects:e,platform:o}=n,{strategy:r="referenceHidden",...i}=s(t,n);switch(r){case"referenceHidden":{const t=R(await o.detectOverflow(n,{...i,elementContext:"reference"}),e.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:D(t)}}}case"escaped":{const t=R(await o.detectOverflow(n,{...i,altBoundary:!0}),e.floating);return{data:{escapedOffsets:t,escaped:D(t)}}}default:return{}}}}},vt=t=>({name:"arrow",options:t,async fn(n){const{x:e,y:r,placement:i,rects:a,platform:c,elements:u,middlewareData:d}=n,{element:y,padding:h=0}=s(t,n)||{};if(null==y)return{};const w=S(h),g={x:e,y:r},x=p(i),v=m(x),b=await c.getDimensions(y),A="y"===x,k=A?"top":"left",C=A?"bottom":"right",P=A?"clientHeight":"clientWidth",R=a.reference[v]+a.reference[x]-g[x]-a.floating[v],D=g[x]-a.reference[x],F=await(null==c.getOffsetParent?void 0:c.getOffsetParent(y));let O=F?F[P]:0;O&&await(null==c.isElement?void 0:c.isElement(F))||(O=u.floating[P]||a.floating[v]);const T=R/2-D/2,H=O/2-b[v]/2-1,L=o(w[k],H),M=o(w[C],H),B=L,E=O-b[v]-M,$=O/2-b[v]/2+T,N=l(B,$,E),j=!d.arrow&&null!=f(i)&&$!==N&&a.reference[v]/2-($<B?L:M)-b[v]/2<0,V=j?$<B?$-B:$-E:0;return{[x]:g[x]+V,data:{[x]:N,centerOffset:$-N-V,...j&&{alignmentOffset:V}},reset:j}}}),bt=(t,n,e)=>{const o=new Map,r={platform:yt,...e},i={...r.platform,_c:o};return(async(t,n,e)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:a}=e,c=a.detectOverflow?a:{...a,detectOverflow:P},l=await(null==a.isRTL?void 0:a.isRTL(n));let s=await a.getElementRects({reference:t,floating:n,strategy:r}),{x:u,y:f}=C(s,o,l),d=o,m=0;const y={};for(let e=0;e<i.length;e++){const p=i[e];if(!p)continue;const{name:h,fn:w}=p,{x:g,y:x,data:v,reset:b}=await w({x:u,y:f,initialPlacement:o,placement:d,strategy:r,middlewareData:y,rects:s,platform:c,elements:{reference:t,floating:n}});u=null!=g?g:u,f=null!=x?x:f,y[h]={...y[h],...v},b&&m<50&&(m++,"object"==typeof b&&(b.placement&&(d=b.placement),b.rects&&(s=!0===b.rects?await a.getElementRects({reference:t,floating:n,strategy:r}):b.rects),({x:u,y:f}=C(s,d,l))),e=-1)}return{x:u,y:f,placement:d,strategy:r,middlewareData:y}})(t,n,{...r,platform:i})};export{vt as a,ht as b,bt as c,gt as f,xt as h,pt as o,wt as s}
@@ -1 +1 @@
1
- import{g as e}from"./p-a599f720.js";import{u as t,I as o,J as r}from"./p-9727a165.js";function n(){return function(n,s){const{connectedCallback:c,disconnectedCallback:a}=n;n.connectedCallback=function(){const n=e(this),a=n[s];n[`_rtkStoreToCleanup-${s}`]=t,a||(n[s]=t.state[s],o(s,n,t));const u=e=>{if(e.detail.requestId===n._storeRequestId){const c=e.detail.store.state[s];n.componentOnReady().then((()=>{n[s]=c})),o(s,n,e.detail.store),n[`_rtkStoreToCleanup-${s}`]=e.detail.store,r(s,n,t)}};n[`_rtkStoreResponseListener-${s}`]=u,document.addEventListener("rtkProvideStore",u);const d=`${n.tagName}-${Date.now()}-${Math.random()}`;n._storeRequestId=d;const i=new CustomEvent("rtkRequestStore",{detail:{element:n,propName:s,requestId:d},bubbles:!0,composed:!0});n.dispatchEvent(i);const l=()=>{const e=`${n.tagName}-${Date.now()}-${Math.random().toString(36)}`;n._storeRequestId=e;const t=new CustomEvent("rtkRequestStore",{detail:{element:n,propName:s,requestId:e},bubbles:!0,composed:!0});n.dispatchEvent(t)};return n[`_rtkStoreReadyListener-${s}`]=l,document.addEventListener("rtkPeerStoreReady",l),null==c?void 0:c.call(this)},n.disconnectedCallback=function(){const t=e(this);r(s,t,t[`_rtkStoreToCleanup-${s}`]);const o=t[`_rtkStoreResponseListener-${s}`];o&&(document.removeEventListener("rtkProvideStore",o),delete t[`_rtkStoreResponseListener-${s}`]);const n=t[`_rtkStoreReadyListener-${s}`];return n&&(document.removeEventListener("rtkPeerStoreReady",n),delete t[`_rtkStoreReadyListener-${s}`]),null==a?void 0:a.call(this)}}}export{n as S}
1
+ import{g as e}from"./p-gJCRRBX0.js";import{u as t,G as o,H as r}from"./p-uIA60Puf.js";function n(){return function(n,s){const{connectedCallback:c,disconnectedCallback:u}=n;n.connectedCallback=function(){const n=e(this),u=n[s];n[`_rtkStoreToCleanup-${s}`]=t,u||(n[s]=t.state[s],o(s,n,t));const a=e=>{if(e.detail.requestId===n._storeRequestId){const c=e.detail.store.state[s];n.componentOnReady().then((()=>{n[s]=c})),o(s,n,e.detail.store),n[`_rtkStoreToCleanup-${s}`]=e.detail.store,r(s,n,t)}};n[`_rtkStoreResponseListener-${s}`]=a,document.addEventListener("rtkProvideStore",a);const d=`${n.tagName}-${Date.now()}-${Math.random()}`;n._storeRequestId=d;const i=new CustomEvent("rtkRequestStore",{detail:{element:n,propName:s,requestId:d},bubbles:!0,composed:!0});n.dispatchEvent(i);const l=()=>{const e=`${n.tagName}-${Date.now()}-${Math.random().toString(36)}`;n._storeRequestId=e;const t=new CustomEvent("rtkRequestStore",{detail:{element:n,propName:s,requestId:e},bubbles:!0,composed:!0});n.dispatchEvent(t)};return n[`_rtkStoreReadyListener-${s}`]=l,document.addEventListener("rtkPeerStoreReady",l),null==c?void 0:c.call(this)},n.disconnectedCallback=function(){const t=e(this);r(s,t,t[`_rtkStoreToCleanup-${s}`]);const o=t[`_rtkStoreResponseListener-${s}`];o&&(document.removeEventListener("rtkProvideStore",o),delete t[`_rtkStoreResponseListener-${s}`]);const n=t[`_rtkStoreReadyListener-${s}`];return n&&(document.removeEventListener("rtkPeerStoreReady",n),delete t[`_rtkStoreReadyListener-${s}`]),null==u?void 0:u.call(this)}}}export{n as S}
@@ -0,0 +1 @@
1
+ import{i as t}from"./p-CAqYddlg.js";const i={joined:"https://rtk-uploads.realtime.cloudflare.com/notification_join.mp3",left:"https://rtk-uploads.realtime.cloudflare.com/notification_join.mp3",message:"https://rtk-uploads.realtime.cloudflare.com/notification_message.mp3"};class o{constructor(t){this.meeting=t,this.audio=document.createElement("audio"),this.audio.volume=.3}play(t,o=3e3){var s;this.playing||(this.playing=!0,this.audio.src=i[t],this.audio.volume=.3,null===(s=this.audio.play())||void 0===s||s.catch((()=>{})),setTimeout((()=>{this.playing=!1}),o))}async setDevice(i){var o,s,a;t(this.meeting)||await(null===(a=null===(s=null===(o=this.audio)||void 0===o?void 0:o.setSinkId)||void 0===s?void 0:s.call(o,i))||void 0===a?void 0:a.catch((()=>{})))}}export{o as R}
@@ -0,0 +1 @@
1
+ var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as c,n as g}
@@ -0,0 +1 @@
1
+ const o=(o,t=!0)=>{null!=o&&o.scrollTo({top:o.scrollHeight,behavior:t?"smooth":"auto"})};export{o as s}
@@ -0,0 +1 @@
1
+ import{s as t}from"./p-vBD2htwQ.js";const n=t=>t.split(/[#?]/)[0].split(".").pop().trim(),a=t=>{if(!t)return"0 B";const n=Math.floor(Math.log(t)/Math.log(1024));return`${(t/1024**n).toFixed(2)} ${["B","kB","MB","GB","TB"][n]}`},r=async(n,a)=>{n=t(n);let r=null==a?void 0:a.name;const o=await fetch(n);if(!o.ok)return void window.open(n,"_blank");const s=URL.createObjectURL(await o.blob()),e=document.createElement("a");e.href=s,e.download=null!=r?r:((t,n="file")=>{try{const a=new URL(t).pathname.split("/").pop();return"/"!==a?a:n}catch(t){return n}})(n,null==a?void 0:a.fallbackName),e.click()};export{a,r as d,n as g}