@cloudflare/realtimekit-ui 2.0.4-staging.3 → 2.1.0-staging.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (625) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-cfaZckxh.js → TextMessage-ad7ALYJY.js} +1 -1
  3. package/dist/cjs/{breakout-rooms-manager-Bgk5FEK1.js → breakout-rooms-manager-CI4CY88g.js} +1 -0
  4. package/dist/cjs/{chat-Dmb93Uku.js → chat-B92wFN5b.js} +1 -1
  5. package/dist/cjs/{config-wbyoqfPs.js → config-Dbzo_bJK.js} +2 -2
  6. package/dist/cjs/{debounce-B5TJRWkG.js → debounce-BpQRL6yu.js} +1 -1
  7. package/dist/cjs/{index-CmhPLhux.js → index-BFnY1a32.js} +1 -1
  8. package/dist/cjs/index.cjs.js +5 -5
  9. package/dist/cjs/{init-error-BC4ECjPk.js → init-error-ByISl9tW.js} +15 -2
  10. package/dist/cjs/{merge-B7Yr5DGf.js → merge-D7WAq1ua.js} +1 -1
  11. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-ai_3.cjs.entry.js +3 -3
  14. package/dist/cjs/rtk-audio-grid.cjs.entry.js +3 -3
  15. package/dist/cjs/rtk-audio-tile.cjs.entry.js +3 -3
  16. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +2 -2
  17. package/dist/cjs/rtk-avatar_26.cjs.entry.js +8 -8
  18. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +3 -3
  19. package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +3 -3
  20. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +3 -3
  22. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +3 -3
  24. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +4 -4
  25. package/dist/cjs/rtk-chat-message.cjs.entry.js +3 -3
  26. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +3 -3
  27. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +3 -3
  28. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +4 -4
  29. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-controlbar.cjs.entry.js +3 -3
  33. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +3 -3
  34. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-ended-screen.cjs.entry.js +3 -3
  39. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +3 -3
  40. package/dist/cjs/rtk-file-message_3.cjs.entry.js +4 -4
  41. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-header.cjs.entry.js +3 -3
  45. package/dist/cjs/rtk-idle-screen.cjs.entry.js +3 -3
  46. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +3 -3
  48. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +3 -3
  50. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-logo.cjs.entry.js +3 -3
  52. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-message-list-view.cjs.entry.js +4 -4
  54. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  55. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +3 -3
  58. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-network-indicator.cjs.entry.js +3 -3
  60. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  61. package/dist/cjs/rtk-notifications.cjs.entry.js +4 -4
  62. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-participant-setup.cjs.entry.js +3 -3
  64. package/dist/cjs/rtk-participant_2.cjs.entry.js +4 -4
  65. package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
  66. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +3 -3
  67. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  68. package/dist/cjs/rtk-participants.cjs.entry.js +4 -4
  69. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +3 -3
  70. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
  78. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  80. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +3 -3
  83. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  85. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +3 -3
  88. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
  90. package/dist/cjs/rtk-transcripts.cjs.entry.js +3 -3
  91. package/dist/cjs/rtk-ui-provider.cjs.entry.js +4 -4
  92. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
  93. package/dist/cjs/{ui-store-C7CyFWPZ.js → ui-store-BSCRR2KM.js} +5 -0
  94. package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
  95. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
  96. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  97. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  98. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
  99. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
  100. package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
  101. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
  102. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
  103. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
  104. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
  105. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
  106. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
  107. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
  108. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
  109. package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
  110. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
  111. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
  112. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
  113. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
  114. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
  115. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
  116. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +1 -1
  117. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
  118. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
  119. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  120. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  121. package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
  122. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  123. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  124. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  125. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
  126. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  127. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  128. package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
  129. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  130. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  131. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  132. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  133. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
  134. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  135. package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
  136. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
  137. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
  138. package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
  139. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
  140. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  141. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  142. package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
  143. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
  144. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  145. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
  146. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  147. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
  148. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
  149. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
  150. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
  151. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  152. package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
  153. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
  154. package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
  155. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  156. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  157. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
  158. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
  159. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
  160. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
  161. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
  162. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  163. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
  164. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
  165. package/dist/collection/components/rtk-notification/rtk-notification.js +1 -1
  166. package/dist/collection/components/rtk-notifications/rtk-notifications.js +1 -1
  167. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  168. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
  169. package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
  170. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
  171. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
  172. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
  173. package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
  174. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  175. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  176. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
  177. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
  178. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
  179. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
  180. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  181. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +1 -1
  182. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
  183. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
  184. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  185. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
  186. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  187. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
  188. package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
  189. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
  190. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  191. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
  192. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
  193. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +1 -1
  194. package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
  195. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
  196. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
  197. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +1 -1
  198. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +1 -1
  199. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +1 -1
  200. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
  201. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +1 -1
  202. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  203. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +1 -1
  204. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
  205. package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
  206. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
  207. package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
  208. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
  209. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +1 -1
  210. package/dist/collection/components/rtk-text-message/rtk-text-message.js +1 -1
  211. package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
  212. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  213. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
  214. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
  215. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +1 -1
  216. package/dist/collection/lib/lang/default-language.js +5 -0
  217. package/dist/collection/utils/breakout-rooms-manager.js +1 -0
  218. package/dist/collection/utils/init-error.js +15 -2
  219. package/dist/components/index.js +1 -1
  220. package/dist/components/{p-C7WazpNf.js → p-1tnmJmZg.js} +1 -1
  221. package/dist/components/{p-CAMtxcI_.js → p-406T43oR.js} +1 -1
  222. package/dist/components/{p-Bn6JMUc9.js → p-B4eRurJb.js} +1 -1
  223. package/dist/components/{p-5i84b0Gw.js → p-BA1mdQNM.js} +1 -1
  224. package/dist/components/{p-BxPmWGqJ.js → p-BD_tAR0l.js} +1 -1
  225. package/dist/components/{p-C0ESgBoj.js → p-BGyhd1F2.js} +1 -1
  226. package/dist/components/{p-vqPkhXWC.js → p-BHJCAi-B.js} +1 -1
  227. package/dist/components/{p-Bf-vQ6U9.js → p-BJVF89z6.js} +1 -1
  228. package/dist/components/{p-Bux-kSlP.js → p-BMURSJ6O.js} +1 -1
  229. package/dist/components/{p-BoqfUgTL.js → p-BQAzaaPe.js} +1 -1
  230. package/dist/components/{p-CU7xL-hP.js → p-BQutCq9K.js} +1 -1
  231. package/dist/components/{p-DjOiGHfI.js → p-BTGG7zSl.js} +1 -1
  232. package/dist/components/{p-DdSpe6Sb.js → p-BTonlp4Z.js} +1 -1
  233. package/dist/components/{p-CfIrQkMg.js → p-BUHdmTBZ.js} +1 -1
  234. package/dist/components/{p-CHOs-ZsL.js → p-BYeQWB0n.js} +1 -1
  235. package/dist/components/{p-Z8VMlEx7.js → p-BfJzVZMy.js} +1 -1
  236. package/dist/components/{p-y_feb08f.js → p-BfXglAT5.js} +1 -1
  237. package/dist/components/{p-93ZUKlQ1.js → p-Bp6LuyCH.js} +1 -1
  238. package/dist/components/{p-gixOLeKl.js → p-Bp77q4OZ.js} +1 -1
  239. package/dist/components/{p-DnOzzBR9.js → p-BtTCkMjt.js} +1 -1
  240. package/dist/components/{p-CNaazJXM.js → p-Bx7LRRAp.js} +1 -1
  241. package/dist/components/{p-CpD_SehU.js → p-Bz_z53UP.js} +1 -1
  242. package/dist/components/{p-CnPYfRgf.js → p-C1bmT06N.js} +1 -1
  243. package/dist/components/{p-B1oyTNvb.js → p-C4LtJIM7.js} +1 -1
  244. package/dist/components/{p-BXHUa6x_.js → p-CJxrr3ZY.js} +1 -1
  245. package/dist/components/{p-CjstGmGh.js → p-CMXxXUg6.js} +1 -1
  246. package/dist/components/{p-B1HaRABx.js → p-CMhZTWqm.js} +1 -1
  247. package/dist/components/{p-CCxMYXjI.js → p-CN9slvhR.js} +1 -1
  248. package/dist/components/{p-BHHJ7_MS.js → p-COiw7loB.js} +1 -1
  249. package/dist/components/{p-B4dw_Fnl.js → p-CTEkeDKZ.js} +1 -1
  250. package/dist/components/{p-CAsupO2z.js → p-CULWS8Fb.js} +1 -1
  251. package/dist/components/{p-DnkJztTd.js → p-CYbyL1xB.js} +1 -1
  252. package/dist/components/{p-B3dQhqRr.js → p-CYfTjqOW.js} +1 -1
  253. package/dist/components/{p-BQJoMtIK.js → p-C_AHNvJ8.js} +1 -1
  254. package/dist/components/{p-CkB6Me6q.js → p-C_dy1X1G.js} +1 -1
  255. package/dist/components/{p-C6AgOKhg.js → p-CaLHOQAr.js} +1 -1
  256. package/dist/components/{p-CHh7GAdL.js → p-Ceaxb0fV.js} +1 -1
  257. package/dist/components/p-Cj-LCS8F.js +1 -0
  258. package/dist/components/{p-DZcwJOUW.js → p-CneFaxcZ.js} +1 -1
  259. package/dist/components/{p-DViKr-34.js → p-Co0j6YHk.js} +1 -1
  260. package/dist/components/{p-ByPpyWt6.js → p-Coi5x3I2.js} +1 -1
  261. package/dist/components/{p-CBWhDYEo.js → p-CoqCgoLI.js} +1 -1
  262. package/dist/components/{p-DhG2PF_5.js → p-CpP1Oq1B.js} +1 -1
  263. package/dist/components/{p-B0SC1Zj-.js → p-CpejImHh.js} +1 -1
  264. package/dist/components/{p-CFBS-gbK.js → p-CyCI1p7C.js} +1 -1
  265. package/dist/components/{p-Bf-HIBwL.js → p-D0E1dHQD.js} +1 -1
  266. package/dist/components/{p-DMbGWtns.js → p-D9BcuQ_v.js} +1 -1
  267. package/dist/components/p-D9EtbXLL.js +1 -0
  268. package/dist/components/{p-C5kkSbkd.js → p-DCNf_hw3.js} +1 -1
  269. package/dist/components/{p-Dh8N1Wv8.js → p-DDs1alfB.js} +1 -1
  270. package/dist/components/{p-BbE6o8zj.js → p-DJTzvKvV.js} +1 -1
  271. package/dist/components/p-DNcV8eFN.js +1 -0
  272. package/dist/components/{p-Smh6fH4v.js → p-DPhyyN8o.js} +1 -1
  273. package/dist/components/{p-pcKO_EeI.js → p-DQxMgOrh.js} +1 -1
  274. package/dist/components/{p-CTuYqZY2.js → p-DcNyG4cn.js} +1 -1
  275. package/dist/components/{p-ObGKzmP7.js → p-DdOgYR3r.js} +1 -1
  276. package/dist/components/{p-BvLjh5Yy.js → p-DdehD3Ic.js} +1 -1
  277. package/dist/components/{p-M0IaFpEv.js → p-Dh_F2aNK.js} +1 -1
  278. package/dist/components/{p-bRRQr4xn.js → p-Dms_qKT9.js} +1 -1
  279. package/dist/components/{p-BY_rxRub.js → p-Ds1W9S1T.js} +1 -1
  280. package/dist/components/{p-C9UuqXCX.js → p-DsYErKjI.js} +1 -1
  281. package/dist/components/{p-DSUStc8e.js → p-Du2bvW5k.js} +1 -1
  282. package/dist/components/{p-Dq8iLPzP.js → p-IDFkzrnD.js} +1 -1
  283. package/dist/components/{p--VK1POSX.js → p-P7-5QimH.js} +1 -1
  284. package/dist/components/{p-Ryaxu6vl.js → p-R38kp86h.js} +1 -1
  285. package/dist/components/{p-DSe3wsBa.js → p-WlTM-tEO.js} +1 -1
  286. package/dist/components/{p-CMyYEHgz.js → p-cfJ0D-dh.js} +1 -1
  287. package/dist/components/{p-CJGAvEk3.js → p-ercb3gkA.js} +1 -1
  288. package/dist/components/{p-D_AEDHUV.js → p-eykZRgXE.js} +1 -1
  289. package/dist/components/{p-CuRSxmeD.js → p-f4dz0Q95.js} +1 -1
  290. package/dist/components/{p-DONfrqzk.js → p-gTKpGq7q.js} +1 -1
  291. package/dist/components/{p-mgE9e3Hm.js → p-kF6tsy3z.js} +1 -1
  292. package/dist/components/{p-E1D1eNFh.js → p-m-r-atNb.js} +1 -1
  293. package/dist/components/{p-VHRH6fkb.js → p-mHK3bMm5.js} +1 -1
  294. package/dist/components/{p--CEA0NQj.js → p-qGbTl8DJ.js} +1 -1
  295. package/dist/components/{p-CW-FAeNP.js → p-rSpNJvuH.js} +1 -1
  296. package/dist/components/{p-NKK4fZcP.js → p-x2mZ8BTq.js} +1 -1
  297. package/dist/components/{p-CEK_XoGw.js → p-yItboz3c.js} +1 -1
  298. package/dist/components/rtk-ai-toggle.js +1 -1
  299. package/dist/components/rtk-ai-transcriptions.js +1 -1
  300. package/dist/components/rtk-ai.js +1 -1
  301. package/dist/components/rtk-audio-grid.js +1 -1
  302. package/dist/components/rtk-audio-tile.js +1 -1
  303. package/dist/components/rtk-audio-visualizer.js +1 -1
  304. package/dist/components/rtk-avatar.js +1 -1
  305. package/dist/components/rtk-breakout-room-manager.js +1 -1
  306. package/dist/components/rtk-breakout-room-participants.js +1 -1
  307. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  308. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  309. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  310. package/dist/components/rtk-camera-selector.js +1 -1
  311. package/dist/components/rtk-camera-toggle.js +1 -1
  312. package/dist/components/rtk-caption-toggle.js +1 -1
  313. package/dist/components/rtk-chat-composer-ui.js +1 -1
  314. package/dist/components/rtk-chat-composer-view.js +1 -1
  315. package/dist/components/rtk-chat-header.js +1 -1
  316. package/dist/components/rtk-chat-message.js +1 -1
  317. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  318. package/dist/components/rtk-chat-messages-ui.js +1 -1
  319. package/dist/components/rtk-chat-search-results.js +1 -1
  320. package/dist/components/rtk-chat-selector-ui.js +1 -1
  321. package/dist/components/rtk-chat-selector.js +1 -1
  322. package/dist/components/rtk-chat-toggle.js +1 -1
  323. package/dist/components/rtk-chat.js +1 -1
  324. package/dist/components/rtk-clock.js +1 -1
  325. package/dist/components/rtk-confirmation-modal.js +1 -1
  326. package/dist/components/rtk-controlbar-button.js +1 -1
  327. package/dist/components/rtk-controlbar.js +1 -1
  328. package/dist/components/rtk-counter.js +1 -1
  329. package/dist/components/rtk-debugger-audio.js +1 -1
  330. package/dist/components/rtk-debugger-screenshare.js +1 -1
  331. package/dist/components/rtk-debugger-system.js +1 -1
  332. package/dist/components/rtk-debugger-toggle.js +1 -1
  333. package/dist/components/rtk-debugger-video.js +1 -1
  334. package/dist/components/rtk-debugger.js +1 -1
  335. package/dist/components/rtk-dialog-manager.js +1 -1
  336. package/dist/components/rtk-dialog.js +1 -1
  337. package/dist/components/rtk-draft-attachment-view.js +1 -1
  338. package/dist/components/rtk-emoji-picker-button.js +1 -1
  339. package/dist/components/rtk-emoji-picker.js +1 -1
  340. package/dist/components/rtk-ended-screen.js +1 -1
  341. package/dist/components/rtk-file-dropzone.js +1 -1
  342. package/dist/components/rtk-file-message-view.js +1 -1
  343. package/dist/components/rtk-file-message.js +1 -1
  344. package/dist/components/rtk-file-picker-button.js +1 -1
  345. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  346. package/dist/components/rtk-grid-pagination.js +1 -1
  347. package/dist/components/rtk-grid.js +1 -1
  348. package/dist/components/rtk-header.js +1 -1
  349. package/dist/components/rtk-idle-screen.js +1 -1
  350. package/dist/components/rtk-image-message-view.js +1 -1
  351. package/dist/components/rtk-image-message.js +1 -1
  352. package/dist/components/rtk-image-viewer.js +1 -1
  353. package/dist/components/rtk-information-tooltip.js +1 -1
  354. package/dist/components/rtk-join-stage.js +1 -1
  355. package/dist/components/rtk-leave-button.js +1 -1
  356. package/dist/components/rtk-leave-meeting.js +1 -1
  357. package/dist/components/rtk-livestream-indicator.js +1 -1
  358. package/dist/components/rtk-livestream-player.js +1 -1
  359. package/dist/components/rtk-livestream-toggle.js +1 -1
  360. package/dist/components/rtk-logo.js +1 -1
  361. package/dist/components/rtk-meeting-title.js +1 -1
  362. package/dist/components/rtk-meeting.js +1 -1
  363. package/dist/components/rtk-menu-item.js +1 -1
  364. package/dist/components/rtk-menu-list.js +1 -1
  365. package/dist/components/rtk-menu.js +1 -1
  366. package/dist/components/rtk-message-list-view.js +1 -1
  367. package/dist/components/rtk-message-view.js +1 -1
  368. package/dist/components/rtk-mic-toggle.js +1 -1
  369. package/dist/components/rtk-microphone-selector.js +1 -1
  370. package/dist/components/rtk-mixed-grid.js +1 -1
  371. package/dist/components/rtk-more-toggle.js +1 -1
  372. package/dist/components/rtk-mute-all-button.js +1 -1
  373. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  374. package/dist/components/rtk-name-tag.js +1 -1
  375. package/dist/components/rtk-network-indicator.js +1 -1
  376. package/dist/components/rtk-notification.js +1 -1
  377. package/dist/components/rtk-notifications.js +1 -1
  378. package/dist/components/rtk-overlay-modal.js +1 -1
  379. package/dist/components/rtk-paginated-list.js +1 -1
  380. package/dist/components/rtk-participant-count.js +1 -1
  381. package/dist/components/rtk-participant-setup.js +1 -1
  382. package/dist/components/rtk-participant-tile.js +1 -1
  383. package/dist/components/rtk-participant.js +1 -1
  384. package/dist/components/rtk-participants-audio.js +1 -1
  385. package/dist/components/rtk-participants-stage-list.js +1 -1
  386. package/dist/components/rtk-participants-stage-queue.js +1 -1
  387. package/dist/components/rtk-participants-toggle.js +1 -1
  388. package/dist/components/rtk-participants-viewer-list.js +1 -1
  389. package/dist/components/rtk-participants-waiting-list.js +1 -1
  390. package/dist/components/rtk-participants.js +1 -1
  391. package/dist/components/rtk-permissions-message.js +1 -1
  392. package/dist/components/rtk-pinned-message-selector.js +1 -1
  393. package/dist/components/rtk-pip-toggle.js +1 -1
  394. package/dist/components/rtk-plugin-main.js +1 -1
  395. package/dist/components/rtk-plugins-toggle.js +1 -1
  396. package/dist/components/rtk-plugins.js +1 -1
  397. package/dist/components/rtk-poll-form.js +1 -1
  398. package/dist/components/rtk-poll.js +1 -1
  399. package/dist/components/rtk-polls-toggle.js +1 -1
  400. package/dist/components/rtk-polls.js +1 -1
  401. package/dist/components/rtk-recording-indicator.js +1 -1
  402. package/dist/components/rtk-recording-toggle.js +1 -1
  403. package/dist/components/rtk-screen-share-toggle.js +1 -1
  404. package/dist/components/rtk-screenshare-view.js +1 -1
  405. package/dist/components/rtk-settings-audio.js +1 -1
  406. package/dist/components/rtk-settings-toggle.js +1 -1
  407. package/dist/components/rtk-settings-video.js +1 -1
  408. package/dist/components/rtk-settings.js +1 -1
  409. package/dist/components/rtk-setup-screen.js +1 -1
  410. package/dist/components/rtk-sidebar-ui.js +1 -1
  411. package/dist/components/rtk-sidebar.js +1 -1
  412. package/dist/components/rtk-simple-grid.js +1 -1
  413. package/dist/components/rtk-speaker-selector.js +1 -1
  414. package/dist/components/rtk-spinner.js +1 -1
  415. package/dist/components/rtk-spotlight-grid.js +1 -1
  416. package/dist/components/rtk-spotlight-indicator.js +1 -1
  417. package/dist/components/rtk-stage-toggle.js +1 -1
  418. package/dist/components/rtk-stage.js +1 -1
  419. package/dist/components/rtk-switch.js +1 -1
  420. package/dist/components/rtk-tab-bar.js +1 -1
  421. package/dist/components/rtk-text-composer-view.js +1 -1
  422. package/dist/components/rtk-text-message.js +1 -1
  423. package/dist/components/rtk-transcript.js +1 -1
  424. package/dist/components/rtk-transcripts.js +1 -1
  425. package/dist/components/rtk-ui-provider.js +1 -1
  426. package/dist/components/rtk-viewer-count.js +1 -1
  427. package/dist/components/rtk-waiting-screen.js +1 -1
  428. package/dist/docs/docs-components.json +2685 -245
  429. package/dist/esm/{TextMessage-B-38YeFE.js → TextMessage-COdZoQcR.js} +1 -1
  430. package/dist/esm/{breakout-rooms-manager-B1Qky9zO.js → breakout-rooms-manager-DOKq3YH6.js} +1 -0
  431. package/dist/esm/{chat-a6CRyl2K.js → chat-DkSooP-6.js} +1 -1
  432. package/dist/esm/{config-wP0cqv4b.js → config-DREWnlMs.js} +2 -2
  433. package/dist/esm/{debounce-lqMlEJcq.js → debounce-B7bFOuUM.js} +1 -1
  434. package/dist/esm/{index-CP1LPkYZ.js → index-Csk0uIpu.js} +1 -1
  435. package/dist/esm/index.js +7 -7
  436. package/dist/esm/{init-error-DE1s0fDa.js → init-error-Cj-LCS8F.js} +15 -2
  437. package/dist/esm/loader.js +21 -2
  438. package/dist/esm/{merge-BWjuIacB.js → merge-CCTLyhAg.js} +1 -1
  439. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  440. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  441. package/dist/esm/rtk-ai_3.entry.js +3 -3
  442. package/dist/esm/rtk-audio-grid.entry.js +3 -3
  443. package/dist/esm/rtk-audio-tile.entry.js +3 -3
  444. package/dist/esm/rtk-audio-visualizer_4.entry.js +2 -2
  445. package/dist/esm/rtk-avatar_26.entry.js +8 -8
  446. package/dist/esm/rtk-breakout-room-manager_3.entry.js +3 -3
  447. package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +3 -3
  448. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  449. package/dist/esm/rtk-camera-selector_2.entry.js +3 -3
  450. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  451. package/dist/esm/rtk-caption-toggle.entry.js +3 -3
  452. package/dist/esm/rtk-chat-composer-ui.entry.js +4 -4
  453. package/dist/esm/rtk-chat-message.entry.js +3 -3
  454. package/dist/esm/rtk-chat-messages-ui.entry.js +3 -3
  455. package/dist/esm/rtk-chat-search-results.entry.js +3 -3
  456. package/dist/esm/rtk-chat-selector-ui.entry.js +4 -4
  457. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  458. package/dist/esm/rtk-clock.entry.js +2 -2
  459. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  460. package/dist/esm/rtk-controlbar.entry.js +3 -3
  461. package/dist/esm/rtk-debugger-audio_4.entry.js +3 -3
  462. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  463. package/dist/esm/rtk-debugger.entry.js +2 -2
  464. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  465. package/dist/esm/rtk-dialog.entry.js +2 -2
  466. package/dist/esm/rtk-ended-screen.entry.js +3 -3
  467. package/dist/esm/rtk-file-dropzone.entry.js +3 -3
  468. package/dist/esm/rtk-file-message_3.entry.js +4 -4
  469. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  470. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  471. package/dist/esm/rtk-grid.entry.js +2 -2
  472. package/dist/esm/rtk-header.entry.js +3 -3
  473. package/dist/esm/rtk-idle-screen.entry.js +3 -3
  474. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  475. package/dist/esm/rtk-information-tooltip.entry.js +3 -3
  476. package/dist/esm/rtk-leave-button.entry.js +2 -2
  477. package/dist/esm/rtk-livestream-indicator_3.entry.js +3 -3
  478. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  479. package/dist/esm/rtk-logo.entry.js +3 -3
  480. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  481. package/dist/esm/rtk-message-list-view.entry.js +4 -4
  482. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  483. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  484. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  485. package/dist/esm/rtk-mute-all-button.entry.js +3 -3
  486. package/dist/esm/rtk-name-tag.entry.js +2 -2
  487. package/dist/esm/rtk-network-indicator.entry.js +3 -3
  488. package/dist/esm/rtk-notification.entry.js +4 -4
  489. package/dist/esm/rtk-notifications.entry.js +4 -4
  490. package/dist/esm/rtk-participant-count.entry.js +2 -2
  491. package/dist/esm/rtk-participant-setup.entry.js +3 -3
  492. package/dist/esm/rtk-participant_2.entry.js +4 -4
  493. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  494. package/dist/esm/rtk-participants-stage-list_4.entry.js +3 -3
  495. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  496. package/dist/esm/rtk-participants.entry.js +4 -4
  497. package/dist/esm/rtk-pip-toggle.entry.js +3 -3
  498. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  499. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  500. package/dist/esm/rtk-poll_2.entry.js +2 -2
  501. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  502. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  503. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  504. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  505. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  506. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  507. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  508. package/dist/esm/rtk-settings.entry.js +2 -2
  509. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  510. package/dist/esm/rtk-sidebar-ui.entry.js +3 -3
  511. package/dist/esm/rtk-sidebar.entry.js +2 -2
  512. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  513. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  514. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  515. package/dist/esm/rtk-stage-toggle.entry.js +3 -3
  516. package/dist/esm/rtk-stage.entry.js +2 -2
  517. package/dist/esm/rtk-transcript.entry.js +2 -2
  518. package/dist/esm/rtk-transcripts.entry.js +3 -3
  519. package/dist/esm/rtk-ui-provider.entry.js +4 -4
  520. package/dist/esm/rtk-waiting-screen.entry.js +3 -3
  521. package/dist/esm/{ui-store-Ctcbman-.js → ui-store-B5zzvHhD.js} +5 -0
  522. package/dist/realtimekit-ui/index.esm.js +1 -1
  523. package/dist/realtimekit-ui/{p-9fb75436.entry.js → p-04ea0bd4.entry.js} +1 -1
  524. package/dist/realtimekit-ui/{p-194ebf74.entry.js → p-0aa328b2.entry.js} +1 -1
  525. package/dist/realtimekit-ui/{p-ff89f0f6.entry.js → p-0bfd6466.entry.js} +1 -1
  526. package/dist/realtimekit-ui/{p-5810f0c4.entry.js → p-0d52804f.entry.js} +1 -1
  527. package/dist/realtimekit-ui/p-0d897af2.entry.js +1 -0
  528. package/dist/realtimekit-ui/{p-bd848924.entry.js → p-103ef0a8.entry.js} +1 -1
  529. package/dist/realtimekit-ui/{p-21b69da3.entry.js → p-1478801e.entry.js} +1 -1
  530. package/dist/realtimekit-ui/{p-4ed011a1.entry.js → p-153f04c0.entry.js} +1 -1
  531. package/dist/realtimekit-ui/{p-ba7fb049.entry.js → p-188638b5.entry.js} +1 -1
  532. package/dist/realtimekit-ui/{p-bcc42454.entry.js → p-1abddbc7.entry.js} +1 -1
  533. package/dist/realtimekit-ui/{p-4add313e.entry.js → p-1aff1ac5.entry.js} +1 -1
  534. package/dist/realtimekit-ui/{p-f5377574.entry.js → p-1cbad1b9.entry.js} +1 -1
  535. package/dist/realtimekit-ui/{p-f6085321.entry.js → p-1e206fd2.entry.js} +1 -1
  536. package/dist/realtimekit-ui/{p-815d9724.entry.js → p-2210cd4c.entry.js} +1 -1
  537. package/dist/realtimekit-ui/{p-58366145.entry.js → p-252c3010.entry.js} +1 -1
  538. package/dist/realtimekit-ui/{p-62a46799.entry.js → p-2583d674.entry.js} +1 -1
  539. package/dist/realtimekit-ui/{p-27751707.entry.js → p-291d186e.entry.js} +1 -1
  540. package/dist/realtimekit-ui/{p-6e0f43e4.entry.js → p-29c4ac3e.entry.js} +1 -1
  541. package/dist/realtimekit-ui/{p-0051564a.entry.js → p-2ab0d5e4.entry.js} +1 -1
  542. package/dist/realtimekit-ui/{p-e8e6a1c8.entry.js → p-2b1a514f.entry.js} +1 -1
  543. package/dist/realtimekit-ui/{p-462d4e8f.entry.js → p-2d48d192.entry.js} +1 -1
  544. package/dist/realtimekit-ui/{p-d52b8b3d.entry.js → p-2ebc089a.entry.js} +1 -1
  545. package/dist/realtimekit-ui/{p-384db558.entry.js → p-2fe459da.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-09ce95b2.entry.js → p-305804ef.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-de4ecd17.entry.js → p-334a0a97.entry.js} +1 -1
  548. package/dist/realtimekit-ui/{p-6d3b4996.entry.js → p-34bc7b35.entry.js} +1 -1
  549. package/dist/realtimekit-ui/{p-c6f6afcd.entry.js → p-3729eae9.entry.js} +1 -1
  550. package/dist/realtimekit-ui/{p-d29c5a04.entry.js → p-3952eda2.entry.js} +1 -1
  551. package/dist/realtimekit-ui/{p-4a1ec4a2.entry.js → p-3959a07f.entry.js} +1 -1
  552. package/dist/realtimekit-ui/{p-dd6fa0d8.entry.js → p-3be97778.entry.js} +1 -1
  553. package/dist/realtimekit-ui/{p-0195bd60.entry.js → p-3fa63103.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-9aac22a5.entry.js → p-42245196.entry.js} +1 -1
  555. package/dist/realtimekit-ui/{p-21f69c50.entry.js → p-4258eb53.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-d9c7c4d8.entry.js → p-43379fb0.entry.js} +1 -1
  557. package/dist/realtimekit-ui/{p-4bd89bff.entry.js → p-47589362.entry.js} +1 -1
  558. package/dist/realtimekit-ui/p-498e967d.entry.js +1 -0
  559. package/dist/realtimekit-ui/{p-fb0a9fa6.entry.js → p-4be90451.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-b27db286.entry.js → p-4dff766e.entry.js} +1 -1
  561. package/dist/realtimekit-ui/{p-23e14ccd.entry.js → p-4e8c01f8.entry.js} +1 -1
  562. package/dist/realtimekit-ui/{p-56df9c19.entry.js → p-5021a0b2.entry.js} +1 -1
  563. package/dist/realtimekit-ui/{p-8cdd8307.entry.js → p-50ff8297.entry.js} +1 -1
  564. package/dist/realtimekit-ui/{p-4aa24ae6.entry.js → p-546d0b7a.entry.js} +1 -1
  565. package/dist/realtimekit-ui/{p-e38967d0.entry.js → p-5ffe17ff.entry.js} +1 -1
  566. package/dist/realtimekit-ui/{p-0264d57f.entry.js → p-606bd586.entry.js} +1 -1
  567. package/dist/realtimekit-ui/{p-5361cd19.entry.js → p-6cfb1d51.entry.js} +1 -1
  568. package/dist/realtimekit-ui/{p-cd5069ea.entry.js → p-72f872da.entry.js} +1 -1
  569. package/dist/realtimekit-ui/{p-55ec635e.entry.js → p-736ae325.entry.js} +1 -1
  570. package/dist/realtimekit-ui/{p-b46d416b.entry.js → p-73835c98.entry.js} +1 -1
  571. package/dist/realtimekit-ui/{p-481e75eb.entry.js → p-73e34499.entry.js} +1 -1
  572. package/dist/realtimekit-ui/{p-2fd5255e.entry.js → p-7c355952.entry.js} +1 -1
  573. package/dist/realtimekit-ui/{p-a34a267b.entry.js → p-829516be.entry.js} +1 -1
  574. package/dist/realtimekit-ui/{p-9fd3cb5e.entry.js → p-867c65f8.entry.js} +1 -1
  575. package/dist/realtimekit-ui/{p-3ed792bf.entry.js → p-88b10b06.entry.js} +1 -1
  576. package/dist/realtimekit-ui/{p-b9f47f88.entry.js → p-8c997ed7.entry.js} +1 -1
  577. package/dist/realtimekit-ui/{p-BmRffDYW.js → p-9Kg_s9HA.js} +1 -1
  578. package/dist/realtimekit-ui/p-BV8JkayY.js +1 -0
  579. package/dist/realtimekit-ui/{p-MlOz-emx.js → p-C6MbLp7O.js} +1 -1
  580. package/dist/realtimekit-ui/{p-B91vjjSJ.js → p-CBTF89OQ.js} +1 -1
  581. package/dist/realtimekit-ui/{p-CfUJPUNx.js → p-CLkcbaSv.js} +1 -1
  582. package/dist/realtimekit-ui/{p-dYOM3dvx.js → p-CVyP1Eab.js} +1 -1
  583. package/dist/realtimekit-ui/p-Cj-LCS8F.js +1 -0
  584. package/dist/realtimekit-ui/p-D9EtbXLL.js +1 -0
  585. package/dist/realtimekit-ui/{p-CQ2xadpP.js → p-DzPhNWCO.js} +1 -1
  586. package/dist/realtimekit-ui/{p-286ce4d7.entry.js → p-a197208b.entry.js} +1 -1
  587. package/dist/realtimekit-ui/{p-6ab2602a.entry.js → p-a6be8453.entry.js} +1 -1
  588. package/dist/realtimekit-ui/{p-80b42139.entry.js → p-ab6c3f2e.entry.js} +1 -1
  589. package/dist/realtimekit-ui/{p-d85e142c.entry.js → p-ab72d9ce.entry.js} +1 -1
  590. package/dist/realtimekit-ui/{p-bf54cdd9.entry.js → p-ac30f00d.entry.js} +1 -1
  591. package/dist/realtimekit-ui/{p-a646f038.entry.js → p-adb134cf.entry.js} +1 -1
  592. package/dist/realtimekit-ui/{p-20734a3a.entry.js → p-af48b3de.entry.js} +1 -1
  593. package/dist/realtimekit-ui/{p-401b9ed3.entry.js → p-b130cba4.entry.js} +1 -1
  594. package/dist/realtimekit-ui/{p-b41fc081.entry.js → p-b81546a9.entry.js} +1 -1
  595. package/dist/realtimekit-ui/{p-9fa91df2.entry.js → p-bcf3e78a.entry.js} +1 -1
  596. package/dist/realtimekit-ui/{p-bdd8ebec.entry.js → p-c1b043d2.entry.js} +1 -1
  597. package/dist/realtimekit-ui/{p-d30c178f.entry.js → p-c5171e8c.entry.js} +1 -1
  598. package/dist/realtimekit-ui/{p-ce81ffaa.entry.js → p-c7e53604.entry.js} +1 -1
  599. package/dist/realtimekit-ui/{p-ab63946e.entry.js → p-c92c6475.entry.js} +1 -1
  600. package/dist/realtimekit-ui/{p-9ce9b595.entry.js → p-cb512b27.entry.js} +1 -1
  601. package/dist/realtimekit-ui/{p-47abb821.entry.js → p-ce769155.entry.js} +1 -1
  602. package/dist/realtimekit-ui/{p-67ee7fdd.entry.js → p-d364b98b.entry.js} +1 -1
  603. package/dist/realtimekit-ui/{p-d4ff2477.entry.js → p-d705c033.entry.js} +1 -1
  604. package/dist/realtimekit-ui/{p-f5809d7c.entry.js → p-d8fff726.entry.js} +1 -1
  605. package/dist/realtimekit-ui/{p-e347e0d8.entry.js → p-dbd3c9f8.entry.js} +1 -1
  606. package/dist/realtimekit-ui/{p-61032e04.entry.js → p-e7dec068.entry.js} +1 -1
  607. package/dist/realtimekit-ui/{p-dc7a28a6.entry.js → p-ea3a0789.entry.js} +1 -1
  608. package/dist/realtimekit-ui/{p-c6d03162.entry.js → p-ed41e0be.entry.js} +1 -1
  609. package/dist/realtimekit-ui/{p-da9c7efe.entry.js → p-f1ad312a.entry.js} +1 -1
  610. package/dist/realtimekit-ui/{p-893da38a.entry.js → p-f1c25989.entry.js} +1 -1
  611. package/dist/realtimekit-ui/{p-bcc20509.entry.js → p-f3837eb2.entry.js} +1 -1
  612. package/dist/realtimekit-ui/{p-01c014e4.entry.js → p-f3f00b7e.entry.js} +1 -1
  613. package/dist/realtimekit-ui/{p-ac79ef88.entry.js → p-ffb7e862.entry.js} +1 -1
  614. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  615. package/dist/types/lib/lang/default-language.d.ts +5 -0
  616. package/dist/types/utils/init-error.d.ts +1 -1
  617. package/package.json +1 -1
  618. package/dist/components/p-DE1s0fDa.js +0 -1
  619. package/dist/components/p-DhwysA2e.js +0 -1
  620. package/dist/components/p-DxDYE5-a.js +0 -1
  621. package/dist/realtimekit-ui/p-959917cc.entry.js +0 -1
  622. package/dist/realtimekit-ui/p-DE1s0fDa.js +0 -1
  623. package/dist/realtimekit-ui/p-DI7wP4CL.js +0 -1
  624. package/dist/realtimekit-ui/p-DxDYE5-a.js +0 -1
  625. package/dist/realtimekit-ui/p-ac4c182d.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as i,a}from"./p-gJCRRBX0.js";import{c as s,e,i as r}from"./p-DI7wP4CL.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-BmRffDYW.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}
1
+ import{r as t,h as i,a}from"./p-gJCRRBX0.js";import{c as s,e,i as r}from"./p-BV8JkayY.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{R as n}from"./p-CTFO-5XH.js";import{S as c}from"./p-9Kg_s9HA.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}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{c as r,e,i as o}from"./p-DI7wP4CL.js";import{c as n,d as h,a as l,b as p,e as c}from"./p-D9HGXWKc.js";import{S as d}from"./p-BmRffDYW.js";import{R as v}from"./p-CTFO-5XH.js";import"./p-C0vp-Q7v.js";var g=function(t,i,s,a){var r,e=arguments.length,o=e<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(e<3?r(o):e>3?r(i,s,o):r(i,s))||o);return e>3&&o&&Object.defineProperty(i,s,o),o};const b=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=r(),this.iconPack=e,this.t=o(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>!(t.id in this.meeting.self.config.controlBar.elements)||this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var i,s;t&&(this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(s=null===(i=this.meeting)||void 0===i?void 0:i.stage)||void 0===s||s.on("stageStatusUpdate",this.onStageStatusUpdate))}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const i=[];n(t)&&i.push({id:"chat",name:this.t("chat")}),h(t)&&i.push({id:"polls",name:this.t("polls")}),l(t)&&i.push({id:"participants",name:this.t("participants")}),p(t)&&i.push({id:"plugins",name:this.t("plugins")}),c(t)&&i.push({id:"ai",name:this.t("ai.meeting_ai")}),this.enabledSections=i}render(){var t;if(!this.meeting)return null;const i={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=i.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?s(a,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},s("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&s("div",{class:"pinned-state",slot:"pinned-state"},s("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},s("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===i.states.sidebar&&s(v,{element:"rtk-chat",defaults:i,props:{slot:"chat"}}),"polls"===i.states.sidebar&&s("rtk-polls",Object.assign({},i,{slot:"polls"})),"participants"===i.states.sidebar&&s(v,{element:"rtk-participants",defaults:i,props:{slot:"participants"}}),"plugins"===i.states.sidebar&&s("rtk-plugins",Object.assign({},i,{slot:"plugins"})),"ai"===i.states.sidebar&&s("rtk-ai",Object.assign({},i,{slot:"ai"})))):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}}};g([d()],b.prototype,"meeting",void 0),g([d()],b.prototype,"states",void 0),g([d()],b.prototype,"config",void 0),g([d()],b.prototype,"iconPack",void 0),g([d()],b.prototype,"t",void 0),b.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{margin-right:var(--rtk-space-0, 0px);height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-4, 16px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}";export{b as rtk_sidebar}
1
+ import{r as t,d as i,h as s,a}from"./p-gJCRRBX0.js";import{c as r,e,i as o}from"./p-BV8JkayY.js";import{c as n,d as h,a as l,b as p,e as c}from"./p-D9HGXWKc.js";import{S as d}from"./p-9Kg_s9HA.js";import{R as v}from"./p-CTFO-5XH.js";import"./p-C0vp-Q7v.js";var g=function(t,i,s,a){var r,e=arguments.length,o=e<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(e<3?r(o):e>3?r(i,s,o):r(i,s))||o);return e>3&&o&&Object.defineProperty(i,s,o),o};const b=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=r(),this.iconPack=e,this.t=o(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>!(t.id in this.meeting.self.config.controlBar.elements)||this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var i,s;t&&(this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(s=null===(i=this.meeting)||void 0===i?void 0:i.stage)||void 0===s||s.on("stageStatusUpdate",this.onStageStatusUpdate))}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const i=[];n(t)&&i.push({id:"chat",name:this.t("chat")}),h(t)&&i.push({id:"polls",name:this.t("polls")}),l(t)&&i.push({id:"participants",name:this.t("participants")}),p(t)&&i.push({id:"plugins",name:this.t("plugins")}),c(t)&&i.push({id:"ai",name:this.t("ai.meeting_ai")}),this.enabledSections=i}render(){var t;if(!this.meeting)return null;const i={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=i.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?s(a,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},s("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&s("div",{class:"pinned-state",slot:"pinned-state"},s("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},s("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===i.states.sidebar&&s(v,{element:"rtk-chat",defaults:i,props:{slot:"chat"}}),"polls"===i.states.sidebar&&s("rtk-polls",Object.assign({},i,{slot:"polls"})),"participants"===i.states.sidebar&&s(v,{element:"rtk-participants",defaults:i,props:{slot:"participants"}}),"plugins"===i.states.sidebar&&s("rtk-plugins",Object.assign({},i,{slot:"plugins"})),"ai"===i.states.sidebar&&s("rtk-ai",Object.assign({},i,{slot:"ai"})))):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}}};g([d()],b.prototype,"meeting",void 0),g([d()],b.prototype,"states",void 0),g([d()],b.prototype,"config",void 0),g([d()],b.prototype,"iconPack",void 0),g([d()],b.prototype,"t",void 0),b.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{margin-right:var(--rtk-space-0, 0px);height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-4, 16px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}";export{b as rtk_sidebar}
@@ -1 +1 @@
1
- import{r as t,d as a,h as e,a as r}from"./p-gJCRRBX0.js";import{i as s}from"./p-DI7wP4CL.js";import{S as o}from"./p-BmRffDYW.js";const i=class{constructor(e){t(this,e),this.dismiss=a(this,"rtkTranscriptDismiss",7),this.t=s()}connectedCallback(){this.transcriptChanged(this.transcript)}disconnectedCallback(){clearTimeout(this.timeout)}transcriptChanged(t,a){if((null==a?void 0:a.renderedId)===t.renderedId&&(null==a?void 0:a.transcript)===t.transcript)return;if(clearTimeout(this.timeout),!(null==t?void 0:t.name)||!(null==t?void 0:t.transcript))return;const{id:e,renderedId:r}=t;this.timeout=setTimeout((()=>{this.dismiss.emit({id:e,renderedId:r})}),1e4)}render(){return e(r,{key:"c9f584259f21f759133ea5d6f4e07bac1524b5fb"},e("div",{key:"d25914df1db61994cfe8a5f0fc42af79c2823ece",class:"ctr"},e("p",{key:"06fefba0bca0a253a9140a9f2a86c2230b83f049",class:"message"},e("span",{key:"5f833c6901ab4f246e06d8a82c47a3d49616e44c",class:"name"},this.transcript.name),": ",this.transcript.transcript)))}static get watchers(){return{transcript:[{transcriptChanged:0}]}}};(function(t,a,e,r){var s,o=arguments.length,i=o<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,a,e,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(o<3?s(i):o>3?s(a,e,i):s(a,e))||i);o>3&&i&&Object.defineProperty(a,e,i)})([o()],i.prototype,"t",void 0),i.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{pointer-events:none;display:block;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;justify-content:center;vertical-align:middle;animation:show 0.4s ease;transition:0.4s;z-index:5;width:100%}.ctr{box-sizing:border-box;display:inline-flex;height:100%;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-shadow:var(--tw-shadow-colored);pointer-events:auto;padding:var(--rtk-space-3, 12px);overflow:auto;max-width:50%}.message{margin:var(--rtk-space-0, 0px);display:inline-block;justify-content:center;max-width:100%;text-wrap:wrap;line-height:1.5rem}.message .name{font-weight:bold}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateY(120px)}100%{opacity:1;transform:translateY(0px)}}@keyframes exit{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-120px)}}:host([size='sm']){font-size:14px}";export{i as rtk_transcript}
1
+ import{r as t,d as a,h as e,a as r}from"./p-gJCRRBX0.js";import{i as s}from"./p-BV8JkayY.js";import{S as o}from"./p-9Kg_s9HA.js";const i=class{constructor(e){t(this,e),this.dismiss=a(this,"rtkTranscriptDismiss",7),this.t=s()}connectedCallback(){this.transcriptChanged(this.transcript)}disconnectedCallback(){clearTimeout(this.timeout)}transcriptChanged(t,a){if((null==a?void 0:a.renderedId)===t.renderedId&&(null==a?void 0:a.transcript)===t.transcript)return;if(clearTimeout(this.timeout),!(null==t?void 0:t.name)||!(null==t?void 0:t.transcript))return;const{id:e,renderedId:r}=t;this.timeout=setTimeout((()=>{this.dismiss.emit({id:e,renderedId:r})}),1e4)}render(){return e(r,{key:"c9f584259f21f759133ea5d6f4e07bac1524b5fb"},e("div",{key:"d25914df1db61994cfe8a5f0fc42af79c2823ece",class:"ctr"},e("p",{key:"06fefba0bca0a253a9140a9f2a86c2230b83f049",class:"message"},e("span",{key:"5f833c6901ab4f246e06d8a82c47a3d49616e44c",class:"name"},this.transcript.name),": ",this.transcript.transcript)))}static get watchers(){return{transcript:[{transcriptChanged:0}]}}};(function(t,a,e,r){var s,o=arguments.length,i=o<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,a,e,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(o<3?s(i):o>3?s(a,e,i):s(a,e))||i);o>3&&i&&Object.defineProperty(a,e,i)})([o()],i.prototype,"t",void 0),i.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{pointer-events:none;display:block;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;justify-content:center;vertical-align:middle;animation:show 0.4s ease;transition:0.4s;z-index:5;width:100%}.ctr{box-sizing:border-box;display:inline-flex;height:100%;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-shadow:var(--tw-shadow-colored);pointer-events:auto;padding:var(--rtk-space-3, 12px);overflow:auto;max-width:50%}.message{margin:var(--rtk-space-0, 0px);display:inline-block;justify-content:center;max-width:100%;text-wrap:wrap;line-height:1.5rem}.message .name{font-weight:bold}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateY(120px)}100%{opacity:1;transform:translateY(0px)}}@keyframes exit{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-120px)}}:host([size='sm']){font-size:14px}";export{i as rtk_transcript}
@@ -1 +1 @@
1
- import{r,d as t,h as a,a as o}from"./p-gJCRRBX0.js";import{e,i}from"./p-DI7wP4CL.js";import{S as s}from"./p-BmRffDYW.js";import{a as l,f as c,g as p}from"./p-vBD2htwQ.js";var n=function(r,t,a,o){var e,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(r,t,a,o);else for(var l=r.length-1;l>=0;l--)(e=r[l])&&(s=(i<3?e(s):i>3?e(t,a,s):e(t,a))||s);return i>3&&s&&Object.defineProperty(t,a,s),s};const d=class{constructor(a){r(this,a),this.onVote=t(this,"rtkVotePoll",7),this.iconPack=e,this.t=i(),this.MAX_VOTES_RENDER=10}vote(r,t){this.poll.voted.includes(this.self)?r.preventDefault():this.onVote.emit({id:this.poll.id,index:t})}render(){const r=this.poll.voted.includes(this.self);return a(o,{key:"69e61c49e0f7f2015538447a8862bdb7fd3b4840"},a("div",{key:"00dec58cb19f30a4fc01926dd383edb270cd61c3",class:"ctr"},a("p",{key:"04d88ddf1f20e1a7e5b017f058b585723498f474",class:"poll-title"},this.t("polls.by")," ",l(c(this.poll.createdBy),20)),a("div",{key:"5432167291df04bc4a4bfa23117df79c8512027d",class:"poll"},a("p",{key:"bee55a8193f96f582cf1c3006393740ab652dea7",class:"poll-question"},this.poll.question),a("div",{key:"aefe01131512e992e756196b5b451d4423bb9635",class:"poll-answers"},a("span",{key:"973f566c9d84a6519f7ab307fd072215fe76f72d"},this.t("polls.answers")),a("span",{key:"2a87b4bd72b99916cf20070c792742d04c1a44ca"},this.poll.voted.length)),this.poll.options.map(((t,o)=>a("div",{class:{active:t.votes.some((r=>r.id===this.self)),"open-vote":this.permissions.polls.canVote&&!r,"poll-option":!0}},a("div",{class:"poll-option-header","data-disabled":!this.permissions.polls.canVote},a("label",null,!r&&a("input",{disabled:!this.permissions.polls.canVote,readOnly:r,type:"radio",checked:t.votes.some((r=>r.id===this.self)),onClick:r=>this.vote(r,o)}),a("p",null,t.text)),a("span",{class:"counter"},t.count)),a("div",{class:"votes"},t.votes.slice(0,this.MAX_VOTES_RENDER).map((r=>{if(!this.poll.anonymous||this.self===this.poll.createdByUserId)return a("rtk-tooltip",{label:r.name},a("div",{class:"vote"},p(r.name)))})),t.votes.length>this.MAX_VOTES_RENDER&&a("rtk-tooltip",{label:`+${t.votes.length-this.MAX_VOTES_RENDER} more `},a("div",{class:"vote"},"+",t.votes.length-this.MAX_VOTES_RENDER)))))))))}};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)}.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)))}.ctr{margin-bottom:var(--rtk-space-3, 12px);display:flex;width:100%;flex-direction:column;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.poll-title{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-4, 16px);font-size:12px}.poll{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));display:flex;flex-direction:column;padding:var(--rtk-space-4, 16px)}.poll-question{padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:14px;overflow-wrap:break-word}.poll-answers{display:flex;flex-direction:row;justify-content:space-between;font-size:12px;margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-3, 12px)}.poll-option{display:flex;flex-direction:column;margin-top:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);word-break:break-word}.poll-option.open-vote:hover{cursor:pointer}.poll-option label{display:flex;flex-direction:row;cursor:inherit}.poll-option-header{display:flex;flex-direction:row;justify-content:space-between;padding:var(--rtk-space-1, 4px)}.poll-option-header[data-disabled='true']:hover{cursor:default}.poll-option-header input{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-2, 8px);cursor:inherit}.poll-option-header .counter{color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:12px}.votes{margin-top:var(--rtk-space-1, 4px);display:flex;flex-direction:row;flex-wrap:wrap}.vote{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);display:flex;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-radius:var(--rtk-border-radius-none, 0);clip-path:circle()}.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.active .counter{color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}";var b=function(r,t,a,o){var e,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(r,t,a,o);else for(var l=r.length-1;l>=0;l--)(e=r[l])&&(s=(i<3?e(s):i>3?e(t,a,s):e(t,a))||s);return i>3&&s&&Object.defineProperty(t,a,s),s};const k=class{constructor(a){r(this,a),this.onCreate=t(this,"rtkCreatePoll",7),this.iconPack=e,this.t=i(),this.options=["",""],this.anonymous=!1,this.hideVotes=!0}removeOption(r){var t;this.options=this.options.filter(((t,a)=>a!==r)),1===(null===(t=this.error)||void 0===t?void 0:t.code)&&(this.error=void 0)}addOption(){this.options=[...this.options,""]}updateOption(r,t){var a;this.options[t]=r.target.value,1===(null===(a=this.error)||void 0===a?void 0:a.code)&&(this.error=void 0)}handleSubmit(){const r={question:this.question.value,options:this.options,anonymous:this.anonymous,hideVotes:!!this.anonymous||this.hideVotes};r.question?this.options.filter((r=>""===r.trim())).length>0?this.error={code:1,message:this.t("polls.errors.empty_option")}:this.onCreate.emit(r):this.error={code:0,message:this.t("polls.errors.question_required")}}render(){return a(o,{key:"ff160dd70e52bfa8a0c5116acea73a16cb84b9b8"},a("div",{key:"2f14946249e12cbc38db8cca86d370030286dc8e",class:"create-poll"},a("p",{key:"a6e3704c58e3526aa2e0f517f529c7ee48627f30"},this.t("polls.question")),a("textarea",{key:"6b076d162f80cc4e08ecc9379e829f37d43d06bb",onInput:()=>{this.error&&0===this.error.code&&(this.error=void 0)},ref:r=>this.question=r,placeholder:this.t("polls.question.placeholder")}),this.options.map(((r,t)=>a("div",{class:"option"},a("input",{placeholder:this.t("polls.option.placeholder"),value:r,onInput:r=>this.updateOption(r,t)}),t>1&&a("rtk-button",{kind:"icon",class:"auto remove-option",variant:"secondary",onClick:()=>this.removeOption(t)},a("rtk-icon",{icon:this.iconPack.subtract}))))),a("rtk-button",{key:"be4055b21c6c810d0721fe2daf3308011b2c6d8f",class:"add-option",variant:"secondary",onClick:()=>this.addOption()},this.t("polls.option")),a("label",{key:"0e22f9da27289adf831d5a9458237aa11758fd41"},a("input",{key:"577da1d275259a4e9ebffedf153f52e799172c42",id:"anonymous",type:"checkbox",onChange:r=>this.anonymous=r.target.checked}),this.t("polls.results.anon")),a("label",{key:"c06bcbfb6d15125c614764002985d20713e672a4"},a("input",{key:"9e9bb29126ed51c0bbd06481b44f690d737fbb64",id:"hideVotes",type:"checkbox",disabled:this.anonymous,checked:!!this.anonymous||this.hideVotes,onChange:r=>this.hideVotes=r.target.checked}),this.t("polls.results.hide")),a("rtk-button",{key:"ab48323f46db1f6e485bea960f6d7ec6bb684075",kind:"wide",onClick:()=>this.handleSubmit()},this.t("polls.create")),this.error&&a("span",{key:"1d61b167ee24001d0b66acdb361262bf7f2ffcc6",class:"error-text"},this.error.message)))}};b([s()],k.prototype,"iconPack",void 0),b([s()],k.prototype,"t",void 0),k.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)))}.create-poll{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);display:flex;flex:1 1 0%;flex-direction:column;padding:var(--rtk-space-3, 12px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.create-poll p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);text-align:center}.create-poll textarea{display:flex;border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);font-family:var(--rtk-font-family, sans-serif);border-width:var(--rtk-border-width-none, 0);border-style:none;font-weight:500;outline:2px solid transparent;outline-offset:2px;margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);resize:vertical;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.create-poll textarea:focus{outline-style:solid;outline-offset:2px;outline-color:rgb(var(--rtk-colors-background-600, 60 60 60))}.option{display:flex;flex-direction:row;align-items:center;margin-bottom:var(--rtk-space-3, 12px);width:100%}.option input{width:100%;border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.remove-option{margin-left:var(--rtk-space-2, 8px);width:var(--rtk-space-10, 40px);border-radius:var(--rtk-border-radius-sm, 4px)}.add-option{margin-bottom:var(--rtk-space-3, 12px)}label{margin-bottom:var(--rtk-space-3, 12px)}.error-text{margin-top:var(--rtk-space-3, 12px);text-align:center;font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_poll,k as rtk_poll_form}
1
+ import{r,d as t,h as a,a as o}from"./p-gJCRRBX0.js";import{e,i}from"./p-BV8JkayY.js";import{S as s}from"./p-9Kg_s9HA.js";import{a as l,f as c,g as p}from"./p-vBD2htwQ.js";var n=function(r,t,a,o){var e,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(r,t,a,o);else for(var l=r.length-1;l>=0;l--)(e=r[l])&&(s=(i<3?e(s):i>3?e(t,a,s):e(t,a))||s);return i>3&&s&&Object.defineProperty(t,a,s),s};const d=class{constructor(a){r(this,a),this.onVote=t(this,"rtkVotePoll",7),this.iconPack=e,this.t=i(),this.MAX_VOTES_RENDER=10}vote(r,t){this.poll.voted.includes(this.self)?r.preventDefault():this.onVote.emit({id:this.poll.id,index:t})}render(){const r=this.poll.voted.includes(this.self);return a(o,{key:"69e61c49e0f7f2015538447a8862bdb7fd3b4840"},a("div",{key:"00dec58cb19f30a4fc01926dd383edb270cd61c3",class:"ctr"},a("p",{key:"04d88ddf1f20e1a7e5b017f058b585723498f474",class:"poll-title"},this.t("polls.by")," ",l(c(this.poll.createdBy),20)),a("div",{key:"5432167291df04bc4a4bfa23117df79c8512027d",class:"poll"},a("p",{key:"bee55a8193f96f582cf1c3006393740ab652dea7",class:"poll-question"},this.poll.question),a("div",{key:"aefe01131512e992e756196b5b451d4423bb9635",class:"poll-answers"},a("span",{key:"973f566c9d84a6519f7ab307fd072215fe76f72d"},this.t("polls.answers")),a("span",{key:"2a87b4bd72b99916cf20070c792742d04c1a44ca"},this.poll.voted.length)),this.poll.options.map(((t,o)=>a("div",{class:{active:t.votes.some((r=>r.id===this.self)),"open-vote":this.permissions.polls.canVote&&!r,"poll-option":!0}},a("div",{class:"poll-option-header","data-disabled":!this.permissions.polls.canVote},a("label",null,!r&&a("input",{disabled:!this.permissions.polls.canVote,readOnly:r,type:"radio",checked:t.votes.some((r=>r.id===this.self)),onClick:r=>this.vote(r,o)}),a("p",null,t.text)),a("span",{class:"counter"},t.count)),a("div",{class:"votes"},t.votes.slice(0,this.MAX_VOTES_RENDER).map((r=>{if(!this.poll.anonymous||this.self===this.poll.createdByUserId)return a("rtk-tooltip",{label:r.name},a("div",{class:"vote"},p(r.name)))})),t.votes.length>this.MAX_VOTES_RENDER&&a("rtk-tooltip",{label:`+${t.votes.length-this.MAX_VOTES_RENDER} more `},a("div",{class:"vote"},"+",t.votes.length-this.MAX_VOTES_RENDER)))))))))}};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)}.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)))}.ctr{margin-bottom:var(--rtk-space-3, 12px);display:flex;width:100%;flex-direction:column;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.poll-title{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-4, 16px);font-size:12px}.poll{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));display:flex;flex-direction:column;padding:var(--rtk-space-4, 16px)}.poll-question{padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:14px;overflow-wrap:break-word}.poll-answers{display:flex;flex-direction:row;justify-content:space-between;font-size:12px;margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-3, 12px)}.poll-option{display:flex;flex-direction:column;margin-top:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);word-break:break-word}.poll-option.open-vote:hover{cursor:pointer}.poll-option label{display:flex;flex-direction:row;cursor:inherit}.poll-option-header{display:flex;flex-direction:row;justify-content:space-between;padding:var(--rtk-space-1, 4px)}.poll-option-header[data-disabled='true']:hover{cursor:default}.poll-option-header input{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-2, 8px);cursor:inherit}.poll-option-header .counter{color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:12px}.votes{margin-top:var(--rtk-space-1, 4px);display:flex;flex-direction:row;flex-wrap:wrap}.vote{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);display:flex;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-radius:var(--rtk-border-radius-none, 0);clip-path:circle()}.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.active .counter{color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}";var b=function(r,t,a,o){var e,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(r,t,a,o);else for(var l=r.length-1;l>=0;l--)(e=r[l])&&(s=(i<3?e(s):i>3?e(t,a,s):e(t,a))||s);return i>3&&s&&Object.defineProperty(t,a,s),s};const k=class{constructor(a){r(this,a),this.onCreate=t(this,"rtkCreatePoll",7),this.iconPack=e,this.t=i(),this.options=["",""],this.anonymous=!1,this.hideVotes=!0}removeOption(r){var t;this.options=this.options.filter(((t,a)=>a!==r)),1===(null===(t=this.error)||void 0===t?void 0:t.code)&&(this.error=void 0)}addOption(){this.options=[...this.options,""]}updateOption(r,t){var a;this.options[t]=r.target.value,1===(null===(a=this.error)||void 0===a?void 0:a.code)&&(this.error=void 0)}handleSubmit(){const r={question:this.question.value,options:this.options,anonymous:this.anonymous,hideVotes:!!this.anonymous||this.hideVotes};r.question?this.options.filter((r=>""===r.trim())).length>0?this.error={code:1,message:this.t("polls.errors.empty_option")}:this.onCreate.emit(r):this.error={code:0,message:this.t("polls.errors.question_required")}}render(){return a(o,{key:"ff160dd70e52bfa8a0c5116acea73a16cb84b9b8"},a("div",{key:"2f14946249e12cbc38db8cca86d370030286dc8e",class:"create-poll"},a("p",{key:"a6e3704c58e3526aa2e0f517f529c7ee48627f30"},this.t("polls.question")),a("textarea",{key:"6b076d162f80cc4e08ecc9379e829f37d43d06bb",onInput:()=>{this.error&&0===this.error.code&&(this.error=void 0)},ref:r=>this.question=r,placeholder:this.t("polls.question.placeholder")}),this.options.map(((r,t)=>a("div",{class:"option"},a("input",{placeholder:this.t("polls.option.placeholder"),value:r,onInput:r=>this.updateOption(r,t)}),t>1&&a("rtk-button",{kind:"icon",class:"auto remove-option",variant:"secondary",onClick:()=>this.removeOption(t)},a("rtk-icon",{icon:this.iconPack.subtract}))))),a("rtk-button",{key:"be4055b21c6c810d0721fe2daf3308011b2c6d8f",class:"add-option",variant:"secondary",onClick:()=>this.addOption()},this.t("polls.option")),a("label",{key:"0e22f9da27289adf831d5a9458237aa11758fd41"},a("input",{key:"577da1d275259a4e9ebffedf153f52e799172c42",id:"anonymous",type:"checkbox",onChange:r=>this.anonymous=r.target.checked}),this.t("polls.results.anon")),a("label",{key:"c06bcbfb6d15125c614764002985d20713e672a4"},a("input",{key:"9e9bb29126ed51c0bbd06481b44f690d737fbb64",id:"hideVotes",type:"checkbox",disabled:this.anonymous,checked:!!this.anonymous||this.hideVotes,onChange:r=>this.hideVotes=r.target.checked}),this.t("polls.results.hide")),a("rtk-button",{key:"ab48323f46db1f6e485bea960f6d7ec6bb684075",kind:"wide",onClick:()=>this.handleSubmit()},this.t("polls.create")),this.error&&a("span",{key:"1d61b167ee24001d0b66acdb361262bf7f2ffcc6",class:"error-text"},this.error.message)))}};b([s()],k.prototype,"iconPack",void 0),b([s()],k.prototype,"t",void 0),k.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)))}.create-poll{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);display:flex;flex:1 1 0%;flex-direction:column;padding:var(--rtk-space-3, 12px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.create-poll p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);text-align:center}.create-poll textarea{display:flex;border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);font-family:var(--rtk-font-family, sans-serif);border-width:var(--rtk-border-width-none, 0);border-style:none;font-weight:500;outline:2px solid transparent;outline-offset:2px;margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);resize:vertical;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.create-poll textarea:focus{outline-style:solid;outline-offset:2px;outline-color:rgb(var(--rtk-colors-background-600, 60 60 60))}.option{display:flex;flex-direction:row;align-items:center;margin-bottom:var(--rtk-space-3, 12px);width:100%}.option input{width:100%;border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.remove-option{margin-left:var(--rtk-space-2, 8px);width:var(--rtk-space-10, 40px);border-radius:var(--rtk-border-radius-sm, 4px)}.add-option{margin-bottom:var(--rtk-space-3, 12px)}label{margin-bottom:var(--rtk-space-3, 12px)}.error-text{margin-top:var(--rtk-space-3, 12px);text-align:center;font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_poll,k as rtk_poll_form}
@@ -1 +1 @@
1
- import{r as t,d as e,h as a,a as r}from"./p-gJCRRBX0.js";import{e as s,i}from"./p-DI7wP4CL.js";import{S as o}from"./p-BmRffDYW.js";var f=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 f=t.length-1;f>=0;f--)(s=t[f])&&(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 n=class{constructor(a){t(this,a),this.stateUpdate=e(this,"rtkStateUpdate",7),this.iconPack=s,this.t=i()}render(){return a(r,{key:"681977138d7984d09fce875a7de3ccf763dbe3f7"},a("slot",{key:"8412278c7a9491758d6cc0b96b262b616a8ba04f"}))}};f([o()],n.prototype,"iconPack",void 0),f([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{display:block;position:relative;overflow:hidden}";export{n as rtk_stage}
1
+ import{r as t,d as e,h as a,a as r}from"./p-gJCRRBX0.js";import{e as s,i}from"./p-BV8JkayY.js";import{S as o}from"./p-9Kg_s9HA.js";var n=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 f=class{constructor(a){t(this,a),this.stateUpdate=e(this,"rtkStateUpdate",7),this.iconPack=s,this.t=i()}render(){return a(r,{key:"681977138d7984d09fce875a7de3ccf763dbe3f7"},a("slot",{key:"8412278c7a9491758d6cc0b96b262b616a8ba04f"}))}};n([o()],f.prototype,"iconPack",void 0),n([o()],f.prototype,"t",void 0),f.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;position:relative;overflow:hidden}";export{f as rtk_stage}
@@ -1 +1 @@
1
- import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as n,i as a}from"./p-DI7wP4CL.js";import{i as r,r as o,e as h,a as l}from"./p-GSFejkz7.js";import{S as c}from"./p-BmRffDYW.js";var f=function(t,i,s,e){var n,a=arguments.length,r=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(a<3?n(r):a>3?n(i,s,r):n(i,s))||r);return a>3&&r&&Object.defineProperty(i,s,r),r};const d=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=a(),this.fullScreenActive=!1,this.isFullScreenSupported=!0,this.onFullScreenchange=()=>{this.fullScreenActive=r()},this.toggleFullScreen=()=>{let t=this.targetElement||document.querySelector("rtk-meeting");t&&(this.fullScreenActive?(h(),this.fullScreenActive=!1):(o(t),this.fullScreenActive=!0),this.stateUpdate.emit({activeMoreMenu:!1}))}}connectedCallback(){this.isFullScreenSupported=l(),this.onFullScreenchange(),window.addEventListener("webkitfullscreenchange",this.onFullScreenchange),window.addEventListener("fullscreenchange",this.onFullScreenchange)}disconnectedCallback(){window.removeEventListener("webkitfullscreenchange",this.onFullScreenchange),window.removeEventListener("fullscreenchange",this.onFullScreenchange)}render(){return this.isFullScreenSupported?s(e,{title:this.t("full_screen")},s("rtk-controlbar-button",{size:this.size,iconPack:this.iconPack,onClick:this.toggleFullScreen,icon:this.fullScreenActive?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,label:this.t(this.fullScreenActive?"full_screen.exit":"full_screen"),variant:this.variant})):s(e,{"data-hidden":!0})}};f([c()],d.prototype,"states",void 0),f([c()],d.prototype,"iconPack",void 0),f([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{d as rtk_fullscreen_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import{e as n,i as a}from"./p-BV8JkayY.js";import{i as r,r as o,e as h,a as l}from"./p-GSFejkz7.js";import{S as c}from"./p-9Kg_s9HA.js";var f=function(t,i,s,e){var n,a=arguments.length,r=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(a<3?n(r):a>3?n(i,s,r):n(i,s))||r);return a>3&&r&&Object.defineProperty(i,s,r),r};const d=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=a(),this.fullScreenActive=!1,this.isFullScreenSupported=!0,this.onFullScreenchange=()=>{this.fullScreenActive=r()},this.toggleFullScreen=()=>{let t=this.targetElement||document.querySelector("rtk-meeting");t&&(this.fullScreenActive?(h(),this.fullScreenActive=!1):(o(t),this.fullScreenActive=!0),this.stateUpdate.emit({activeMoreMenu:!1}))}}connectedCallback(){this.isFullScreenSupported=l(),this.onFullScreenchange(),window.addEventListener("webkitfullscreenchange",this.onFullScreenchange),window.addEventListener("fullscreenchange",this.onFullScreenchange)}disconnectedCallback(){window.removeEventListener("webkitfullscreenchange",this.onFullScreenchange),window.removeEventListener("fullscreenchange",this.onFullScreenchange)}render(){return this.isFullScreenSupported?s(e,{title:this.t("full_screen")},s("rtk-controlbar-button",{size:this.size,iconPack:this.iconPack,onClick:this.toggleFullScreen,icon:this.fullScreenActive?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,label:this.t(this.fullScreenActive?"full_screen.exit":"full_screen"),variant:this.variant})):s(e,{"data-hidden":!0})}};f([c()],d.prototype,"states",void 0),f([c()],d.prototype,"iconPack",void 0),f([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{d as rtk_fullscreen_toggle}
@@ -1 +1 @@
1
- import{r as t,d as e,e as a,h as i,a as r,g as o}from"./p-gJCRRBX0.js";import{e as s,i as n}from"./p-DI7wP4CL.js";import{i as c,r as d,e as l,a as p}from"./p-GSFejkz7.js";import{S as h}from"./p-BmRffDYW.js";var f=function(t,e,a,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(s=(o<3?r(s):o>3?r(e,a,s):r(e,a))||s);return o>3&&s&&Object.defineProperty(e,a,s),s};const g=class{constructor(a){t(this,a),this.stateUpdate=e(this,"rtkStateUpdate",7),this.play=e(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=c()},this.participantScreenshareUpdate=t=>{t.id===this.participant.id&&this.screenShareListener(t)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=s,this.t=n(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isFullScreen=!1,this.toggleFullScreen=()=>{this.isFullScreen?(l(),this.isFullScreen=!1):(d(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:t}=this.meeting;this.participant.id===t.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t){if(null!=t&&this.meeting){const{self:e}=this.meeting;this.screenShareListener=({screenShareEnabled:t,screenShareTracks:e})=>{const i=t&&null!=e.video;if(a((()=>{this.screenShareEnabled=i})),i){const t=new MediaStream;t.addTrack(e.video),null!=this.videoEl&&(this.videoEl.srcObject=t,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(t),t.id===e.id?t.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var t,e;const a=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(e=this.meeting)||void 0===e?void 0:e.self.id),o=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),s=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return i(r,{key:"10646f5ea7b7b9bc162c2a98af07928a0f68f605",class:{isSelf:a}},i("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},i("video",{key:"13e87cfee55fdd6d45a72ec55792fbbfefdc5206",ref:t=>this.videoEl=t,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:`screen-share-video-${this.participant.id}`})),i("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!a&&p()&&i("rtk-tooltip",{key:"97ba6869139126f0114aee3239999bfe1172a798",label:o},i("rtk-button",{key:"0769449ffcba69117d10a7346e4881c207e7ac6f",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:o},i("rtk-icon",{key:"508cf201f0b2e6da061e35dff4d3899f1da0749a",icon:s,"aria-hidden":!0,tabIndex:-1})))),a&&i("div",{id:"self-message",key:"self-message"},i("h3",{key:"6f055da4722c11893e3f8640bddad7f6844838da"},this.t("screenshare.shared")),i("div",{key:"96fa5f8b47cef2a2a58352e4275c3c325f22a465",class:"actions"},null!=this.meeting&&i("rtk-button",{key:"144c3908476ac18d1ffcc1282a46a4d7fad698c2",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},i("rtk-icon",{key:"7a6f710ccb916ca78edbb5daa9b6bcf3547ed54e",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),i("rtk-button",{key:"1667e04e5a22c3edfdab9300ffca06df7eba4948",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},i("rtk-icon",{key:"6140671792e626d5de181861ee4c7aef1dd11e3e",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),i("slot",{key:"beeecb6fe5a1f46d259a86e698c31fb477949bf3"}))}get host(){return o(this)}static get watchers(){return{participant:[{participantChanged:0}]}}};f([h()],g.prototype,"meeting",void 0),f([h()],g.prototype,"iconPack",void 0),f([h()],g.prototype,"t",void 0),g.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}";export{g as rtk_screenshare_view}
1
+ import{r as t,d as e,e as a,h as i,a as r,g as o}from"./p-gJCRRBX0.js";import{e as s,i as n}from"./p-BV8JkayY.js";import{i as c,r as d,e as l,a as p}from"./p-GSFejkz7.js";import{S as h}from"./p-9Kg_s9HA.js";var f=function(t,e,a,i){var r,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(s=(o<3?r(s):o>3?r(e,a,s):r(e,a))||s);return o>3&&s&&Object.defineProperty(e,a,s),s};const g=class{constructor(a){t(this,a),this.stateUpdate=e(this,"rtkStateUpdate",7),this.play=e(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=c()},this.participantScreenshareUpdate=t=>{t.id===this.participant.id&&this.screenShareListener(t)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=s,this.t=n(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isFullScreen=!1,this.toggleFullScreen=()=>{this.isFullScreen?(l(),this.isFullScreen=!1):(d(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:t}=this.meeting;this.participant.id===t.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t){if(null!=t&&this.meeting){const{self:e}=this.meeting;this.screenShareListener=({screenShareEnabled:t,screenShareTracks:e})=>{const i=t&&null!=e.video;if(a((()=>{this.screenShareEnabled=i})),i){const t=new MediaStream;t.addTrack(e.video),null!=this.videoEl&&(this.videoEl.srcObject=t,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(t),t.id===e.id?t.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var t,e;const a=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(e=this.meeting)||void 0===e?void 0:e.self.id),o=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),s=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return i(r,{key:"10646f5ea7b7b9bc162c2a98af07928a0f68f605",class:{isSelf:a}},i("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},i("video",{key:"13e87cfee55fdd6d45a72ec55792fbbfefdc5206",ref:t=>this.videoEl=t,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:`screen-share-video-${this.participant.id}`})),i("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!a&&p()&&i("rtk-tooltip",{key:"97ba6869139126f0114aee3239999bfe1172a798",label:o},i("rtk-button",{key:"0769449ffcba69117d10a7346e4881c207e7ac6f",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:o},i("rtk-icon",{key:"508cf201f0b2e6da061e35dff4d3899f1da0749a",icon:s,"aria-hidden":!0,tabIndex:-1})))),a&&i("div",{id:"self-message",key:"self-message"},i("h3",{key:"6f055da4722c11893e3f8640bddad7f6844838da"},this.t("screenshare.shared")),i("div",{key:"96fa5f8b47cef2a2a58352e4275c3c325f22a465",class:"actions"},null!=this.meeting&&i("rtk-button",{key:"144c3908476ac18d1ffcc1282a46a4d7fad698c2",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},i("rtk-icon",{key:"7a6f710ccb916ca78edbb5daa9b6bcf3547ed54e",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),i("rtk-button",{key:"1667e04e5a22c3edfdab9300ffca06df7eba4948",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},i("rtk-icon",{key:"6140671792e626d5de181861ee4c7aef1dd11e3e",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),i("slot",{key:"beeecb6fe5a1f46d259a86e698c31fb477949bf3"}))}get host(){return o(this)}static get watchers(){return{participant:[{participantChanged:0}]}}};f([h()],g.prototype,"meeting",void 0),f([h()],g.prototype,"iconPack",void 0),f([h()],g.prototype,"t",void 0),g.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}";export{g as rtk_screenshare_view}
@@ -1 +1 @@
1
- import{g as e}from"./p-gJCRRBX0.js";import{u as t,G as o,H as r}from"./p-DI7wP4CL.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-BV8JkayY.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}