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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (651) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-C_OMdhOv.js → TextMessage-C4d86cID.js} +1 -1
  3. package/dist/cjs/{chat-2G70V8h1.js → chat-_Z7QVSxx.js} +1 -1
  4. package/dist/cjs/{config-DNVD4for.js → config-C9cIVa2D.js} +5 -11
  5. package/dist/cjs/{debounce-CZxcmrOw.js → debounce-BaLnYFmQ.js} +1 -1
  6. package/dist/cjs/{index-bphCu7Kc.js → index-CSL0ebii.js} +1 -1
  7. package/dist/cjs/index.cjs.js +18 -10
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{ui-kit-metadata-Db62SilF.js → merge-B4v4sEV3.js} +1 -290
  10. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  11. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-audio-visualizer_3.cjs.entry.js +5 -6
  17. package/dist/cjs/rtk-avatar_26.cjs.entry.js +10 -9
  18. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  19. package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  22. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  25. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  27. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  29. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-file-message_3.cjs.entry.js +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 +2 -2
  45. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  54. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +4 -5
  55. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-notification.cjs.entry.js +8 -6
  61. package/dist/cjs/rtk-notifications.cjs.entry.js +195 -205
  62. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  64. package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
  65. package/dist/cjs/rtk-participants-audio.cjs.entry.js +3 -4
  66. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  68. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  69. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +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 +2 -2
  83. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  85. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  88. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-switch.cjs.entry.js +2 -2
  90. package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
  91. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  92. package/dist/cjs/rtk-ui-provider.cjs.entry.js +6 -5
  93. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
  94. package/dist/cjs/ui-kit-metadata-BjBLJPVs.js +291 -0
  95. package/dist/cjs/{ui-store-XdzekVqK.js → ui-store-XQk2zaMR.js} +221 -8
  96. package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
  97. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
  98. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  99. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  100. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
  101. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
  102. package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
  103. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
  104. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
  105. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
  106. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
  107. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
  108. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
  109. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
  110. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
  111. package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
  112. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
  113. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
  114. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
  115. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
  116. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
  117. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
  118. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +1 -1
  119. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
  120. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
  121. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  122. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  123. package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
  124. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  125. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  126. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  127. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
  128. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  129. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  130. package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
  131. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  132. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  133. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  134. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  135. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
  136. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  137. package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
  138. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
  139. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
  140. package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
  141. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
  142. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  143. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  144. package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
  145. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
  146. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  147. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
  148. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  149. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
  150. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
  151. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
  152. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
  153. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  154. package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
  155. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
  156. package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
  157. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  158. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  159. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
  160. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
  161. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
  162. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
  163. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
  164. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  165. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
  166. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
  167. package/dist/collection/components/rtk-notification/rtk-notification.js +5 -3
  168. package/dist/collection/components/rtk-notifications/rtk-notifications.js +194 -166
  169. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  170. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
  171. package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
  172. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
  173. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
  174. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
  175. package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
  176. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  177. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  178. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
  179. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
  180. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
  181. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
  182. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  183. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +1 -1
  184. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
  185. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
  186. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  187. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
  188. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  189. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
  190. package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
  191. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
  192. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  193. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
  194. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
  195. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +1 -1
  196. package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
  197. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
  198. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
  199. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +1 -1
  200. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +1 -1
  201. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +1 -1
  202. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
  203. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +1 -1
  204. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  205. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +1 -1
  206. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
  207. package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
  208. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
  209. package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
  210. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
  211. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +1 -1
  212. package/dist/collection/components/rtk-text-message/rtk-text-message.js +1 -1
  213. package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
  214. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  215. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
  216. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
  217. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +1 -1
  218. package/dist/collection/lib/default-ui-config.js +2 -8
  219. package/dist/collection/lib/lang/default-language.js +2 -0
  220. package/dist/collection/lib/notification.js +56 -2
  221. package/dist/collection/types/ui-config/config.js +101 -13
  222. package/dist/collection/utils/config.js +3 -8
  223. package/dist/collection/utils/notification.js +12 -3
  224. package/dist/collection/utils/ui-kit-metadata.js +1 -1
  225. package/dist/components/index.js +1 -1
  226. package/dist/components/{p-Dft337Ll.js → p-0DTiM_we.js} +1 -1
  227. package/dist/components/{p-DxWuP9W-.js → p-1C_TdKq0.js} +1 -1
  228. package/dist/components/{p-CX0Xm7nC.js → p-1J7p9yTO.js} +1 -1
  229. package/dist/components/{p-woxb-Bmm.js → p-453sV-Ir.js} +1 -1
  230. package/dist/components/{p-DQpLF7Tl.js → p-6A_cBfi7.js} +1 -1
  231. package/dist/components/{p-FJMslKrI.js → p-B-L_tmky.js} +1 -1
  232. package/dist/components/{p-W6qOF1ab.js → p-B5e4-Gnb.js} +1 -1
  233. package/dist/components/{p-DTlvGHSC.js → p-B7ZjIFa-.js} +1 -1
  234. package/dist/components/{p-BIkikWuB.js → p-B8xh8FL-.js} +1 -1
  235. package/dist/components/{p-BMEVA63X.js → p-BDmVHB8l.js} +1 -1
  236. package/dist/components/{p-DeQvmRpj.js → p-BJ7Hcvk1.js} +1 -1
  237. package/dist/components/p-BLyVHBPm.js +1 -0
  238. package/dist/components/{p-CkAYE3S8.js → p-BQ-x6_xE.js} +1 -1
  239. package/dist/components/{p-CudchGV-.js → p-BY_hQMNu.js} +1 -1
  240. package/dist/components/{p-CNRlJgcv.js → p-BaCQqa-Q.js} +1 -1
  241. package/dist/components/p-BbVYO_6g.js +1 -0
  242. package/dist/components/{p-CCcFJzS9.js → p-BbdR8jiw.js} +1 -1
  243. package/dist/components/{p-lUHVcFOY.js → p-Bhp9Zffa.js} +1 -1
  244. package/dist/components/{p-DR4HIK_J.js → p-BkWaCvJV.js} +1 -1
  245. package/dist/components/{p-DT1PR6Br.js → p-BmjopjI3.js} +1 -1
  246. package/dist/components/{p-BrWD_P9J.js → p-Bo1ku_2a.js} +1 -1
  247. package/dist/components/{p-CjnaOcqP.js → p-BowkkEiR.js} +1 -1
  248. package/dist/components/p-BtMpJ0mM.js +1 -0
  249. package/dist/components/{p-CuQOcbEk.js → p-BwnnHi0H.js} +1 -1
  250. package/dist/components/{p-C78m8FSo.js → p-BwpYVCMj.js} +1 -1
  251. package/dist/components/{p-SuJdlCN6.js → p-Bxt73ql2.js} +1 -1
  252. package/dist/components/{p-DTcPOR7t.js → p-C-Jht7Ou.js} +1 -1
  253. package/dist/components/{p-C7kzxj2U.js → p-C7qQzBOW.js} +1 -1
  254. package/dist/components/{p-CjAIMy9F.js → p-CFL-ALsL.js} +1 -1
  255. package/dist/components/{p-16s5ZSAZ.js → p-CNJG60uZ.js} +1 -1
  256. package/dist/components/{p-D3hW0Kbk.js → p-CNY9L4u1.js} +1 -1
  257. package/dist/components/{p-CSQnL_EP.js → p-CP4anCBG.js} +1 -1
  258. package/dist/components/{p-DGf0eDeq.js → p-CQa16w_c.js} +1 -1
  259. package/dist/components/{p-BxJT0iOj.js → p-CSW-it45.js} +1 -1
  260. package/dist/components/{p-DYpMIlQ4.js → p-CVy_5Tvb.js} +1 -1
  261. package/dist/components/{p-D7C_eMze.js → p-CY6CL9kK.js} +1 -1
  262. package/dist/components/{p-De3mM3M-.js → p-C_fSXjwp.js} +1 -1
  263. package/dist/components/{p-Bev5JWZ0.js → p-Cb3kcQH8.js} +1 -1
  264. package/dist/components/{p-BxM6yQDX.js → p-CjID2TEf.js} +1 -1
  265. package/dist/components/{p-wCbKvvTJ.js → p-CjNPU4tr.js} +1 -1
  266. package/dist/components/{p-H0SF5wed.js → p-CoiejzBd.js} +1 -1
  267. package/dist/components/{p-BDZmvSZ5.js → p-CpLLOHOq.js} +1 -1
  268. package/dist/components/p-CsFRsJd2.js +1 -0
  269. package/dist/components/{p-CSdpb5b3.js → p-CsTjOsQ7.js} +1 -1
  270. package/dist/components/{p-DstiJHuo.js → p-CsY7NAuq.js} +1 -1
  271. package/dist/components/{p-D00_ZaOw.js → p-CshWFMrN.js} +1 -1
  272. package/dist/components/{p-pOJlVled.js → p-D1dX_iSl.js} +1 -1
  273. package/dist/components/{p-p_mTGyE6.js → p-D1ihibWt.js} +1 -1
  274. package/dist/components/{p-DzU0ms1z.js → p-D3S9CkeA.js} +1 -1
  275. package/dist/components/{p-CBBiuExR.js → p-D5NZi5H5.js} +1 -1
  276. package/dist/components/{p-EcdS-L-q.js → p-D6u-SXpn.js} +1 -1
  277. package/dist/components/{p-BWM_mzxz.js → p-D8OMvJbR.js} +1 -1
  278. package/dist/components/p-DIblgdpF.js +1 -0
  279. package/dist/components/{p-reX4rZOi.js → p-DLWL-o6Z.js} +1 -1
  280. package/dist/components/{p-BpMexaGX.js → p-DRa-BDek.js} +1 -1
  281. package/dist/components/{p-CAePd-oD.js → p-DW2Js6u1.js} +1 -1
  282. package/dist/components/p-DWYKl0rg.js +1 -0
  283. package/dist/components/{p-CT1iNAdo.js → p-DWgMo0uM.js} +1 -1
  284. package/dist/components/{p-TzHbL-Yw.js → p-D_HYgg0D.js} +1 -1
  285. package/dist/components/{p-Dvobsim-.js → p-D_Zth43B.js} +1 -1
  286. package/dist/components/{p-CddkXbJO.js → p-DcGAhFPL.js} +1 -1
  287. package/dist/components/{p-Qr0iq3rP.js → p-DiO4NkoA.js} +1 -1
  288. package/dist/components/{p-DDXAdlei.js → p-DtCdkVUQ.js} +1 -1
  289. package/dist/components/{p-BOs3IQB-.js → p-DuB7bImP.js} +1 -1
  290. package/dist/components/{p-B2HJVmyW.js → p-DuheZw1w.js} +1 -1
  291. package/dist/components/{p-BX-q0U6y.js → p-DwHaSUu3.js} +1 -1
  292. package/dist/components/{p-IIcKCSrk.js → p-DxynE7R4.js} +1 -1
  293. package/dist/components/p-Dy7c6clK.js +1 -0
  294. package/dist/components/{p-w39VkrD-.js → p-FI--hA8I.js} +1 -1
  295. package/dist/components/{p-bf44p3D-.js → p-K3aT9e86.js} +1 -1
  296. package/dist/components/{p-qzUtJdPs.js → p-LlsVAS7r.js} +1 -1
  297. package/dist/components/{p-BDBQ3yNX.js → p-R3NB2Rxd.js} +1 -1
  298. package/dist/components/{p-CuXI1Bo9.js → p-SJeISbFm.js} +1 -1
  299. package/dist/components/{p-TVGlb-lM.js → p-aAhxhPu6.js} +1 -1
  300. package/dist/components/{p-DCxpDhJk.js → p-ralyxXdZ.js} +1 -1
  301. package/dist/components/{p-Jrghj_Rb.js → p-sG2nShz-.js} +1 -1
  302. package/dist/components/{p-C27_nsxU.js → p-w2nCsug-.js} +1 -1
  303. package/dist/components/rtk-ai-toggle.js +1 -1
  304. package/dist/components/rtk-ai-transcriptions.js +1 -1
  305. package/dist/components/rtk-ai.js +1 -1
  306. package/dist/components/rtk-audio-grid.js +1 -1
  307. package/dist/components/rtk-audio-tile.js +1 -1
  308. package/dist/components/rtk-audio-visualizer.js +1 -1
  309. package/dist/components/rtk-avatar.js +1 -1
  310. package/dist/components/rtk-breakout-room-manager.js +1 -1
  311. package/dist/components/rtk-breakout-room-participants.js +1 -1
  312. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  313. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  314. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  315. package/dist/components/rtk-camera-selector.js +1 -1
  316. package/dist/components/rtk-camera-toggle.js +1 -1
  317. package/dist/components/rtk-caption-toggle.js +1 -1
  318. package/dist/components/rtk-chat-composer-ui.js +1 -1
  319. package/dist/components/rtk-chat-composer-view.js +1 -1
  320. package/dist/components/rtk-chat-header.js +1 -1
  321. package/dist/components/rtk-chat-message.js +1 -1
  322. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  323. package/dist/components/rtk-chat-messages-ui.js +1 -1
  324. package/dist/components/rtk-chat-search-results.js +1 -1
  325. package/dist/components/rtk-chat-selector-ui.js +1 -1
  326. package/dist/components/rtk-chat-selector.js +1 -1
  327. package/dist/components/rtk-chat-toggle.js +1 -1
  328. package/dist/components/rtk-chat.js +1 -1
  329. package/dist/components/rtk-clock.js +1 -1
  330. package/dist/components/rtk-confirmation-modal.js +1 -1
  331. package/dist/components/rtk-controlbar-button.js +1 -1
  332. package/dist/components/rtk-controlbar.js +1 -1
  333. package/dist/components/rtk-counter.js +1 -1
  334. package/dist/components/rtk-debugger-audio.js +1 -1
  335. package/dist/components/rtk-debugger-screenshare.js +1 -1
  336. package/dist/components/rtk-debugger-system.js +1 -1
  337. package/dist/components/rtk-debugger-toggle.js +1 -1
  338. package/dist/components/rtk-debugger-video.js +1 -1
  339. package/dist/components/rtk-debugger.js +1 -1
  340. package/dist/components/rtk-dialog-manager.js +1 -1
  341. package/dist/components/rtk-dialog.js +1 -1
  342. package/dist/components/rtk-draft-attachment-view.js +1 -1
  343. package/dist/components/rtk-emoji-picker-button.js +1 -1
  344. package/dist/components/rtk-emoji-picker.js +1 -1
  345. package/dist/components/rtk-ended-screen.js +1 -1
  346. package/dist/components/rtk-file-dropzone.js +1 -1
  347. package/dist/components/rtk-file-message-view.js +1 -1
  348. package/dist/components/rtk-file-message.js +1 -1
  349. package/dist/components/rtk-file-picker-button.js +1 -1
  350. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  351. package/dist/components/rtk-grid-pagination.js +1 -1
  352. package/dist/components/rtk-grid.js +1 -1
  353. package/dist/components/rtk-header.js +1 -1
  354. package/dist/components/rtk-idle-screen.js +1 -1
  355. package/dist/components/rtk-image-message-view.js +1 -1
  356. package/dist/components/rtk-image-message.js +1 -1
  357. package/dist/components/rtk-image-viewer.js +1 -1
  358. package/dist/components/rtk-information-tooltip.js +1 -1
  359. package/dist/components/rtk-join-stage.js +1 -1
  360. package/dist/components/rtk-leave-button.js +1 -1
  361. package/dist/components/rtk-leave-meeting.js +1 -1
  362. package/dist/components/rtk-livestream-indicator.js +1 -1
  363. package/dist/components/rtk-livestream-player.js +1 -1
  364. package/dist/components/rtk-livestream-toggle.js +1 -1
  365. package/dist/components/rtk-logo.js +1 -1
  366. package/dist/components/rtk-meeting-title.js +1 -1
  367. package/dist/components/rtk-meeting.js +1 -1
  368. package/dist/components/rtk-menu-item.js +1 -1
  369. package/dist/components/rtk-menu-list.js +1 -1
  370. package/dist/components/rtk-menu.js +1 -1
  371. package/dist/components/rtk-message-list-view.js +1 -1
  372. package/dist/components/rtk-message-view.js +1 -1
  373. package/dist/components/rtk-mic-toggle.js +1 -1
  374. package/dist/components/rtk-microphone-selector.js +1 -1
  375. package/dist/components/rtk-mixed-grid.js +1 -1
  376. package/dist/components/rtk-more-toggle.js +1 -1
  377. package/dist/components/rtk-mute-all-button.js +1 -1
  378. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  379. package/dist/components/rtk-name-tag.js +1 -1
  380. package/dist/components/rtk-network-indicator.js +1 -1
  381. package/dist/components/rtk-notification.js +1 -1
  382. package/dist/components/rtk-notifications.js +1 -1
  383. package/dist/components/rtk-overlay-modal.js +1 -1
  384. package/dist/components/rtk-paginated-list.js +1 -1
  385. package/dist/components/rtk-participant-count.js +1 -1
  386. package/dist/components/rtk-participant-setup.js +1 -1
  387. package/dist/components/rtk-participant-tile.js +1 -1
  388. package/dist/components/rtk-participant.js +1 -1
  389. package/dist/components/rtk-participants-audio.js +1 -1
  390. package/dist/components/rtk-participants-stage-list.js +1 -1
  391. package/dist/components/rtk-participants-stage-queue.js +1 -1
  392. package/dist/components/rtk-participants-toggle.js +1 -1
  393. package/dist/components/rtk-participants-viewer-list.js +1 -1
  394. package/dist/components/rtk-participants-waiting-list.js +1 -1
  395. package/dist/components/rtk-participants.js +1 -1
  396. package/dist/components/rtk-permissions-message.js +1 -1
  397. package/dist/components/rtk-pinned-message-selector.js +1 -1
  398. package/dist/components/rtk-pip-toggle.js +1 -1
  399. package/dist/components/rtk-plugin-main.js +1 -1
  400. package/dist/components/rtk-plugins-toggle.js +1 -1
  401. package/dist/components/rtk-plugins.js +1 -1
  402. package/dist/components/rtk-poll-form.js +1 -1
  403. package/dist/components/rtk-poll.js +1 -1
  404. package/dist/components/rtk-polls-toggle.js +1 -1
  405. package/dist/components/rtk-polls.js +1 -1
  406. package/dist/components/rtk-recording-indicator.js +1 -1
  407. package/dist/components/rtk-recording-toggle.js +1 -1
  408. package/dist/components/rtk-screen-share-toggle.js +1 -1
  409. package/dist/components/rtk-screenshare-view.js +1 -1
  410. package/dist/components/rtk-settings-audio.js +1 -1
  411. package/dist/components/rtk-settings-toggle.js +1 -1
  412. package/dist/components/rtk-settings-video.js +1 -1
  413. package/dist/components/rtk-settings.js +1 -1
  414. package/dist/components/rtk-setup-screen.js +1 -1
  415. package/dist/components/rtk-sidebar-ui.js +1 -1
  416. package/dist/components/rtk-sidebar.js +1 -1
  417. package/dist/components/rtk-simple-grid.js +1 -1
  418. package/dist/components/rtk-speaker-selector.js +1 -1
  419. package/dist/components/rtk-spinner.js +1 -1
  420. package/dist/components/rtk-spotlight-grid.js +1 -1
  421. package/dist/components/rtk-spotlight-indicator.js +1 -1
  422. package/dist/components/rtk-stage-toggle.js +1 -1
  423. package/dist/components/rtk-stage.js +1 -1
  424. package/dist/components/rtk-switch.js +1 -1
  425. package/dist/components/rtk-tab-bar.js +1 -1
  426. package/dist/components/rtk-text-composer-view.js +1 -1
  427. package/dist/components/rtk-text-message.js +1 -1
  428. package/dist/components/rtk-transcript.js +1 -1
  429. package/dist/components/rtk-transcripts.js +1 -1
  430. package/dist/components/rtk-ui-provider.js +1 -1
  431. package/dist/components/rtk-viewer-count.js +1 -1
  432. package/dist/components/rtk-waiting-screen.js +1 -1
  433. package/dist/docs/docs-components.json +1712 -736
  434. package/dist/esm/{TextMessage-Cisroi3Z.js → TextMessage-yvgmoyno.js} +1 -1
  435. package/dist/esm/{chat-CNKqhbws.js → chat-C76CTGaE.js} +1 -1
  436. package/dist/esm/{config-DRqODcfp.js → config-DP9lPGyT.js} +4 -10
  437. package/dist/esm/{debounce-B5AGeS26.js → debounce-wUcmtMrZ.js} +1 -1
  438. package/dist/esm/{index-vqQJVJal.js → index-BqWqJ0QM.js} +1 -1
  439. package/dist/esm/index.js +19 -11
  440. package/dist/esm/loader.js +692 -534
  441. package/dist/esm/{ui-kit-metadata-CIMhjc7J.js → merge-CyAJSnqi.js} +2 -287
  442. package/dist/esm/realtimekit-ui.js +1 -1
  443. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  444. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  445. package/dist/esm/rtk-ai_3.entry.js +2 -2
  446. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  447. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  448. package/dist/esm/rtk-audio-visualizer_3.entry.js +2 -3
  449. package/dist/esm/rtk-avatar_26.entry.js +7 -6
  450. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  451. package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
  452. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  453. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  454. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  455. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  456. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  457. package/dist/esm/rtk-chat-message.entry.js +2 -2
  458. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  459. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  460. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  461. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  462. package/dist/esm/rtk-clock.entry.js +2 -2
  463. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  464. package/dist/esm/rtk-controlbar.entry.js +2 -2
  465. package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
  466. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  467. package/dist/esm/rtk-debugger.entry.js +2 -2
  468. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  469. package/dist/esm/rtk-dialog.entry.js +2 -2
  470. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  471. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  472. package/dist/esm/rtk-file-message_3.entry.js +4 -4
  473. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  474. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  475. package/dist/esm/rtk-grid.entry.js +2 -2
  476. package/dist/esm/rtk-header.entry.js +2 -2
  477. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  478. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  479. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  480. package/dist/esm/rtk-leave-button.entry.js +2 -2
  481. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  482. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  483. package/dist/esm/rtk-logo.entry.js +2 -2
  484. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  485. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  486. package/dist/esm/rtk-mic-toggle.entry.js +2 -3
  487. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  488. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  489. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  490. package/dist/esm/rtk-name-tag.entry.js +2 -2
  491. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  492. package/dist/esm/rtk-notification.entry.js +8 -6
  493. package/dist/esm/rtk-notifications.entry.js +194 -204
  494. package/dist/esm/rtk-participant-count.entry.js +2 -2
  495. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  496. package/dist/esm/rtk-participant_2.entry.js +3 -3
  497. package/dist/esm/rtk-participants-audio.entry.js +2 -3
  498. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  499. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  500. package/dist/esm/rtk-participants.entry.js +3 -3
  501. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  502. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  503. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  504. package/dist/esm/rtk-poll_2.entry.js +2 -2
  505. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  506. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  507. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  508. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  509. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  510. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  511. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  512. package/dist/esm/rtk-settings.entry.js +2 -2
  513. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  514. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  515. package/dist/esm/rtk-sidebar.entry.js +2 -2
  516. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  517. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  518. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  519. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  520. package/dist/esm/rtk-stage.entry.js +2 -2
  521. package/dist/esm/rtk-switch.entry.js +2 -2
  522. package/dist/esm/rtk-transcript.entry.js +2 -2
  523. package/dist/esm/rtk-transcripts.entry.js +2 -2
  524. package/dist/esm/rtk-ui-provider.entry.js +3 -2
  525. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  526. package/dist/esm/ui-kit-metadata-BLyVHBPm.js +286 -0
  527. package/dist/esm/{ui-store-GPnCYQx5.js → ui-store-BDu-JN-c.js} +217 -9
  528. package/dist/realtimekit-ui/index.esm.js +1 -1
  529. package/dist/realtimekit-ui/{p-b42581e5.entry.js → p-00d76359.entry.js} +1 -1
  530. package/dist/realtimekit-ui/{p-d85eea5e.entry.js → p-09c97ce7.entry.js} +1 -1
  531. package/dist/realtimekit-ui/{p-848260b5.entry.js → p-1649cd9b.entry.js} +1 -1
  532. package/dist/realtimekit-ui/{p-3ade5cae.entry.js → p-1cb35848.entry.js} +1 -1
  533. package/dist/realtimekit-ui/{p-6d87671d.entry.js → p-20ca622e.entry.js} +1 -1
  534. package/dist/realtimekit-ui/{p-6e07513b.entry.js → p-212b81f9.entry.js} +1 -1
  535. package/dist/realtimekit-ui/p-216d317b.entry.js +1 -0
  536. package/dist/realtimekit-ui/{p-f8bd6ef6.entry.js → p-21d6fbde.entry.js} +1 -1
  537. package/dist/realtimekit-ui/{p-7dc40b64.entry.js → p-2630a30f.entry.js} +1 -1
  538. package/dist/realtimekit-ui/{p-700e62e5.entry.js → p-2666b720.entry.js} +1 -1
  539. package/dist/realtimekit-ui/{p-25550cf9.entry.js → p-29ca5030.entry.js} +1 -1
  540. package/dist/realtimekit-ui/p-2ac37cd3.entry.js +1 -0
  541. package/dist/realtimekit-ui/{p-39915b72.entry.js → p-2b4a9798.entry.js} +1 -1
  542. package/dist/realtimekit-ui/{p-c7bd4da5.entry.js → p-2cc93fdf.entry.js} +1 -1
  543. package/dist/realtimekit-ui/{p-7407e5fb.entry.js → p-2cffd80b.entry.js} +1 -1
  544. package/dist/realtimekit-ui/{p-a25790f7.entry.js → p-2e00a64f.entry.js} +1 -1
  545. package/dist/realtimekit-ui/{p-151eb58e.entry.js → p-2f225d81.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-37feaeaf.entry.js → p-31cff3b4.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-8662827c.entry.js → p-339d78e0.entry.js} +1 -1
  548. package/dist/realtimekit-ui/{p-70a4d8e8.entry.js → p-39f4dfc2.entry.js} +1 -1
  549. package/dist/realtimekit-ui/{p-3bb06c62.entry.js → p-3df86b16.entry.js} +1 -1
  550. package/dist/realtimekit-ui/{p-cc198be3.entry.js → p-40b5a3f6.entry.js} +1 -1
  551. package/dist/realtimekit-ui/{p-266ca900.entry.js → p-40d669f7.entry.js} +1 -1
  552. package/dist/realtimekit-ui/p-465e03e3.entry.js +1 -0
  553. package/dist/realtimekit-ui/{p-7c511cf6.entry.js → p-468bbf25.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-e2131b56.entry.js → p-46f5bd65.entry.js} +1 -1
  555. package/dist/realtimekit-ui/{p-0760dc9f.entry.js → p-4a2791af.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-43c99dd3.entry.js → p-4d1c520d.entry.js} +1 -1
  557. package/dist/realtimekit-ui/{p-6747ca25.entry.js → p-4f4f74de.entry.js} +1 -1
  558. package/dist/realtimekit-ui/{p-d52833d6.entry.js → p-50964a67.entry.js} +1 -1
  559. package/dist/realtimekit-ui/{p-dfce1619.entry.js → p-590d9a6f.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-8751b85c.entry.js → p-59e85491.entry.js} +1 -1
  561. package/dist/realtimekit-ui/{p-e1e2aa29.entry.js → p-5a316687.entry.js} +1 -1
  562. package/dist/realtimekit-ui/{p-d797e61a.entry.js → p-5ad79e40.entry.js} +1 -1
  563. package/dist/realtimekit-ui/{p-0558ad3d.entry.js → p-65d4e49f.entry.js} +1 -1
  564. package/dist/realtimekit-ui/{p-c620f917.entry.js → p-66c16b99.entry.js} +1 -1
  565. package/dist/realtimekit-ui/{p-452d0941.entry.js → p-679cff34.entry.js} +1 -1
  566. package/dist/realtimekit-ui/p-68355fad.entry.js +1 -0
  567. package/dist/realtimekit-ui/{p-0a9509ea.entry.js → p-6c6da19f.entry.js} +1 -1
  568. package/dist/realtimekit-ui/{p-d3d39178.entry.js → p-6db3f0b3.entry.js} +1 -1
  569. package/dist/realtimekit-ui/{p-8dbac5e8.entry.js → p-705c69ef.entry.js} +1 -1
  570. package/dist/realtimekit-ui/{p-6b0a4780.entry.js → p-71bd9c93.entry.js} +1 -1
  571. package/dist/realtimekit-ui/{p-c25ef602.entry.js → p-780e1278.entry.js} +1 -1
  572. package/dist/realtimekit-ui/{p-aaad0c85.entry.js → p-7b95fcea.entry.js} +1 -1
  573. package/dist/realtimekit-ui/{p-de8820d1.entry.js → p-7f6cd05d.entry.js} +1 -1
  574. package/dist/realtimekit-ui/{p-1ff5cfd7.entry.js → p-80e72f3b.entry.js} +1 -1
  575. package/dist/realtimekit-ui/p-81b64fa2.entry.js +1 -0
  576. package/dist/realtimekit-ui/{p-11d7c342.entry.js → p-866df7d3.entry.js} +1 -1
  577. package/dist/realtimekit-ui/{p-df7a6471.entry.js → p-8a113cfb.entry.js} +1 -1
  578. package/dist/realtimekit-ui/{p-0e89ddbe.entry.js → p-915dec6c.entry.js} +1 -1
  579. package/dist/realtimekit-ui/{p-5a2c4639.entry.js → p-9169be62.entry.js} +1 -1
  580. package/dist/realtimekit-ui/{p-831a4a72.entry.js → p-95f35e70.entry.js} +1 -1
  581. package/dist/realtimekit-ui/{p-b40651e7.entry.js → p-983ca822.entry.js} +1 -1
  582. package/dist/realtimekit-ui/{p-76bea9ba.entry.js → p-98e3caf7.entry.js} +1 -1
  583. package/dist/realtimekit-ui/p-9f5eb163.entry.js +1 -0
  584. package/dist/realtimekit-ui/p-BLyVHBPm.js +1 -0
  585. package/dist/realtimekit-ui/p-Bzni6MqK.js +1 -0
  586. package/dist/realtimekit-ui/p-DEqeU73W.js +1 -0
  587. package/dist/realtimekit-ui/p-DYdFtxVz.js +1 -0
  588. package/dist/realtimekit-ui/{p-Dk8hCkEY.js → p-DjuLCOXk.js} +1 -1
  589. package/dist/realtimekit-ui/{p-wx9iq4MT.js → p-KiBrYIp4.js} +1 -1
  590. package/dist/realtimekit-ui/{p-cb58b187.entry.js → p-a058849b.entry.js} +1 -1
  591. package/dist/realtimekit-ui/{p-e9d6b2fc.entry.js → p-a2fd9cf2.entry.js} +1 -1
  592. package/dist/realtimekit-ui/{p-dc302f4a.entry.js → p-a3177447.entry.js} +1 -1
  593. package/dist/realtimekit-ui/{p-727ff3ca.entry.js → p-a583cc88.entry.js} +1 -1
  594. package/dist/realtimekit-ui/p-aIVgtPUf.js +1 -0
  595. package/dist/realtimekit-ui/{p-7275df7a.entry.js → p-ad8e4409.entry.js} +1 -1
  596. package/dist/realtimekit-ui/{p-db426f29.entry.js → p-b16b8339.entry.js} +1 -1
  597. package/dist/realtimekit-ui/{p-9b8c79ab.entry.js → p-baa83772.entry.js} +1 -1
  598. package/dist/realtimekit-ui/{p-e59aa67d.entry.js → p-be12bd8a.entry.js} +1 -1
  599. package/dist/realtimekit-ui/{p-e7e918c5.entry.js → p-c132536f.entry.js} +1 -1
  600. package/dist/realtimekit-ui/{p-c7916a62.entry.js → p-ca45d169.entry.js} +1 -1
  601. package/dist/realtimekit-ui/{p-e155abc4.entry.js → p-d1422675.entry.js} +1 -1
  602. package/dist/realtimekit-ui/{p-226a8500.entry.js → p-d33dcab8.entry.js} +1 -1
  603. package/dist/realtimekit-ui/{p-d3bfc744.entry.js → p-d6177836.entry.js} +1 -1
  604. package/dist/realtimekit-ui/{p-06dfb82f.entry.js → p-dfd083c9.entry.js} +1 -1
  605. package/dist/realtimekit-ui/{p-577d3d6c.entry.js → p-e0fbcd2f.entry.js} +1 -1
  606. package/dist/realtimekit-ui/{p-cfd6260a.entry.js → p-e2c07b34.entry.js} +1 -1
  607. package/dist/realtimekit-ui/{p-8e588d5b.entry.js → p-e48f5b65.entry.js} +1 -1
  608. package/dist/realtimekit-ui/{p-3c813199.entry.js → p-ea3591dd.entry.js} +1 -1
  609. package/dist/realtimekit-ui/{p-ba1b67a4.entry.js → p-ea9632fb.entry.js} +1 -1
  610. package/dist/realtimekit-ui/{p-5a0a0b08.entry.js → p-ebc2284a.entry.js} +1 -1
  611. package/dist/realtimekit-ui/{p-352f5966.entry.js → p-ed4e8032.entry.js} +1 -1
  612. package/dist/realtimekit-ui/{p-da137b88.entry.js → p-f163f7d0.entry.js} +1 -1
  613. package/dist/realtimekit-ui/{p-cea57cb7.entry.js → p-f42d1ca8.entry.js} +1 -1
  614. package/dist/realtimekit-ui/{p-f9e1d361.entry.js → p-f6964364.entry.js} +1 -1
  615. package/dist/realtimekit-ui/{p-cc509d39.entry.js → p-f6cc50c1.entry.js} +1 -1
  616. package/dist/realtimekit-ui/{p-d3d70e76.entry.js → p-fb638463.entry.js} +1 -1
  617. package/dist/realtimekit-ui/p-fe56d5f4.entry.js +1 -0
  618. package/dist/realtimekit-ui/{p-5bbaaee6.entry.js → p-febe71c5.entry.js} +1 -1
  619. package/dist/realtimekit-ui/{p-im1XlbcC.js → p-kAmDs9rB.js} +1 -1
  620. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  621. package/dist/types/components/rtk-notifications/rtk-notifications.d.ts +12 -3
  622. package/dist/types/lib/lang/default-language.d.ts +2 -0
  623. package/dist/types/lib/notification.d.ts +31 -2
  624. package/dist/types/types/ui-config/config.d.ts +49 -10
  625. package/dist/types/utils/notification.d.ts +11 -2
  626. package/package.json +1 -1
  627. package/dist/cjs/browser-qKzDfwbO.js +0 -5
  628. package/dist/cjs/notification-Bny5fHfy.js +0 -39
  629. package/dist/components/p-B56IYWsZ.js +0 -1
  630. package/dist/components/p-CAqYddlg.js +0 -1
  631. package/dist/components/p-ChM1gCIW.js +0 -1
  632. package/dist/components/p-CtoKGHXg.js +0 -1
  633. package/dist/components/p-DSiVRqn-.js +0 -1
  634. package/dist/components/p-DU_5lopz.js +0 -1
  635. package/dist/components/p-cWoLKHJ3.js +0 -1
  636. package/dist/components/p-fQitJHsh.js +0 -1
  637. package/dist/esm/browser-CAqYddlg.js +0 -3
  638. package/dist/esm/notification-DZgheLdK.js +0 -37
  639. package/dist/realtimekit-ui/p-1ffa8cca.entry.js +0 -1
  640. package/dist/realtimekit-ui/p-3d663797.entry.js +0 -1
  641. package/dist/realtimekit-ui/p-41bc3d1f.entry.js +0 -1
  642. package/dist/realtimekit-ui/p-7955b7c2.entry.js +0 -1
  643. package/dist/realtimekit-ui/p-B56IYWsZ.js +0 -1
  644. package/dist/realtimekit-ui/p-B8OtSZCI.js +0 -1
  645. package/dist/realtimekit-ui/p-CAqYddlg.js +0 -1
  646. package/dist/realtimekit-ui/p-CkEIiUAw.js +0 -1
  647. package/dist/realtimekit-ui/p-DITWlMXR.js +0 -1
  648. package/dist/realtimekit-ui/p-DkW8b_It.js +0 -1
  649. package/dist/realtimekit-ui/p-a634bf29.entry.js +0 -1
  650. package/dist/realtimekit-ui/p-d0fe5d91.entry.js +0 -1
  651. package/dist/realtimekit-ui/p-fde9e0ea.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as t,h as r,a as o}from"./p-gJCRRBX0.js";import{e as a}from"./p-DITWlMXR.js";import{S as i}from"./p-Dk8hCkEY.js";const e=class{constructor(r){t(this,r),this.variant="button",this.showWarning=!1,this.disabled=!1,this.iconPack=a,this.brandIcon=!1}render(){return r(o,{key:"90cbc7f04dd7975ef7331aace992aeadd1fdba52"},r("button",{key:"36ea971cf7d69742346dd6a65b41ef57def59a40","aria-label":this.label,part:"button"},this.isLoading?r("rtk-spinner",{id:"icon",part:"spinner",iconPack:this.iconPack}):r("rtk-icon",{id:"icon",icon:this.icon,tabIndex:-1,"aria-hidden":!0,part:"icon"}),r("span",{key:"83dda2888c01eec119c1cc21921a682cc2111307",class:"label",part:"label"},this.label),this.showWarning&&r("rtk-icon",{key:"abddcd4d3c81f7ba09cc4595c98cb55c76d678ad",id:"warning-indicator",icon:this.iconPack.warning,part:"warning-indicator"})))}static get delegatesFocus(){return!0}};(function(t,r,o,a){var i,e=arguments.length,n=e<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,o,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(n=(e<3?i(n):e>3?i(r,o,n):i(r,o))||n);e>3&&n&&Object.defineProperty(r,o,n)})([i()],e.prototype,"iconPack",void 0),e.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{--background-color:var( --rtk-controlbar-button-background-color, rgb(var(--rtk-colors-background-1000, 8 8 8)) );--icon-size:var(--rtk-controlbar-button-icon-size, var(--rtk-space-7, 28px));position:relative;box-sizing:border-box;display:inline-flex;height:100%;width:auto;min-width:var(--rtk-space-20, 80px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--background-color)}button{padding:var(--rtk-space-1, 4px)}:host(.red-icon) #icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([disabled]){color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}button{box-sizing:border-box;display:inline-flex;height:100%;width:100%;flex:1 1 0%;flex-direction:column;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-1, 4px);align-items:center;justify-content:center;cursor:pointer;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:inherit;outline-offset:-2px;border:var(--rtk-border-width-md, 2px) solid transparent}.label{text-align:center;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#warning-indicator{position:absolute;top:var(--rtk-space-1, 4px);right:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}:host([size='sm']) #warning-indicator{right:var(--rtk-space-0, 0px);top:var(--rtk-space-0, 0px);height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host(:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}#icon{width:var(--icon-size);height:var(--icon-size)}:host(.leave:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-danger, 255 45 45))}:host(.active) button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-brand-400, 53 110 253))}button:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}:host(.active-livestream){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']){min-width:var(--rtk-space-14, 56px)}:host([size='sm']) .label{display:none}:host([variant='horizontal']){width:100%}:host([variant='horizontal']) button{border-radius:7px;height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-5, 20px);padding-right:var(--rtk-space-5, 20px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);flex-direction:row;justify-content:flex-start;gap:var(--rtk-space-3, 12px)}:host([variant='horizontal']) #icon{width:var(--rtk-space-6, 24px)}:host([variant='horizontal']) .label{display:block;font-size:14px;line-height:1.25rem}:host([variant='horizontal']) #warning-indicator{right:auto;left:var(--rtk-space-4, 16px)}:host([brand-icon]) rtk-icon#icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host .label{display:none}:slotted(rtk-icon){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}}";export{e as rtk_controlbar_button}
1
+ import{r as t,h as r,a as o}from"./p-gJCRRBX0.js";import{e as a}from"./p-DYdFtxVz.js";import{S as i}from"./p-DjuLCOXk.js";const e=class{constructor(r){t(this,r),this.variant="button",this.showWarning=!1,this.disabled=!1,this.iconPack=a,this.brandIcon=!1}render(){return r(o,{key:"90cbc7f04dd7975ef7331aace992aeadd1fdba52"},r("button",{key:"36ea971cf7d69742346dd6a65b41ef57def59a40","aria-label":this.label,part:"button"},this.isLoading?r("rtk-spinner",{id:"icon",part:"spinner",iconPack:this.iconPack}):r("rtk-icon",{id:"icon",icon:this.icon,tabIndex:-1,"aria-hidden":!0,part:"icon"}),r("span",{key:"83dda2888c01eec119c1cc21921a682cc2111307",class:"label",part:"label"},this.label),this.showWarning&&r("rtk-icon",{key:"abddcd4d3c81f7ba09cc4595c98cb55c76d678ad",id:"warning-indicator",icon:this.iconPack.warning,part:"warning-indicator"})))}static get delegatesFocus(){return!0}};(function(t,r,o,a){var i,e=arguments.length,n=e<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,o,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(n=(e<3?i(n):e>3?i(r,o,n):i(r,o))||n);e>3&&n&&Object.defineProperty(r,o,n)})([i()],e.prototype,"iconPack",void 0),e.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{--background-color:var( --rtk-controlbar-button-background-color, rgb(var(--rtk-colors-background-1000, 8 8 8)) );--icon-size:var(--rtk-controlbar-button-icon-size, var(--rtk-space-7, 28px));position:relative;box-sizing:border-box;display:inline-flex;height:100%;width:auto;min-width:var(--rtk-space-20, 80px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--background-color)}button{padding:var(--rtk-space-1, 4px)}:host(.red-icon) #icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([disabled]){color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}button{box-sizing:border-box;display:inline-flex;height:100%;width:100%;flex:1 1 0%;flex-direction:column;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-1, 4px);align-items:center;justify-content:center;cursor:pointer;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:inherit;outline-offset:-2px;border:var(--rtk-border-width-md, 2px) solid transparent}.label{text-align:center;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#warning-indicator{position:absolute;top:var(--rtk-space-1, 4px);right:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}:host([size='sm']) #warning-indicator{right:var(--rtk-space-0, 0px);top:var(--rtk-space-0, 0px);height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host(:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}#icon{width:var(--icon-size);height:var(--icon-size)}:host(.leave:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-danger, 255 45 45))}:host(.active) button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-brand-400, 53 110 253))}button:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}:host(.active-livestream){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']){min-width:var(--rtk-space-14, 56px)}:host([size='sm']) .label{display:none}:host([variant='horizontal']){width:100%}:host([variant='horizontal']) button{border-radius:7px;height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-5, 20px);padding-right:var(--rtk-space-5, 20px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);flex-direction:row;justify-content:flex-start;gap:var(--rtk-space-3, 12px)}:host([variant='horizontal']) #icon{width:var(--rtk-space-6, 24px)}:host([variant='horizontal']) .label{display:block;font-size:14px;line-height:1.25rem}:host([variant='horizontal']) #warning-indicator{right:auto;left:var(--rtk-space-4, 16px)}:host([brand-icon]) rtk-icon#icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host .label{display:none}:slotted(rtk-icon){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}}";export{e as rtk_controlbar_button}
@@ -1 +1 @@
1
- import{r as t,h as i,a}from"./p-gJCRRBX0.js";import{i as e,e as r}from"./p-DITWlMXR.js";import{S as n}from"./p-Dk8hCkEY.js";var s=function(t,i,a,e){var r,n=arguments.length,s=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,a,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(s=(n<3?r(s):n>3?r(i,a,s):r(i,a))||s);return n>3&&s&&Object.defineProperty(i,a,s),s};const o=class{constructor(i){t(this,i),this.t=e(),this.iconPack=r,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"c4246e4721b0ca5fbc689a90688f1239df60ecad","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"ce19b3649bba8a91cd22770534762c932b934557",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"9d2ae89fef0d4e1e0d3546f765f48be8a6da6b5a",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"cedf044a1a96c164022d734be2baf7e568fb849e"},this.t("recording.label"))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};s([n()],o.prototype,"meeting",void 0),s([n()],o.prototype,"t",void 0),s([n()],o.prototype,"iconPack",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:block}:host([data-hidden]){display:none}:host[size='sm']{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px)}.indicator{display:flex;flex-direction:row;align-items:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);animation:blink 4s linear infinite}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='sm']) .indicator span{display:none}@keyframes blink{0%,10%{opacity:0}11%,100%{opacity:1}}";export{o as rtk_recording_indicator}
1
+ import{r as t,h as i,a}from"./p-gJCRRBX0.js";import{i as e,e as r}from"./p-DYdFtxVz.js";import{S as n}from"./p-DjuLCOXk.js";var s=function(t,i,a,e){var r,n=arguments.length,s=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,a,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(s=(n<3?r(s):n>3?r(i,a,s):r(i,a))||s);return n>3&&s&&Object.defineProperty(i,a,s),s};const o=class{constructor(i){t(this,i),this.t=e(),this.iconPack=r,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"c4246e4721b0ca5fbc689a90688f1239df60ecad","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"ce19b3649bba8a91cd22770534762c932b934557",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"9d2ae89fef0d4e1e0d3546f765f48be8a6da6b5a",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"cedf044a1a96c164022d734be2baf7e568fb849e"},this.t("recording.label"))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}};s([n()],o.prototype,"meeting",void 0),s([n()],o.prototype,"t",void 0),s([n()],o.prototype,"iconPack",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:block}:host([data-hidden]){display:none}:host[size='sm']{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px)}.indicator{display:flex;flex-direction:row;align-items:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);animation:blink 4s linear infinite}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='sm']) .indicator span{display:none}@keyframes blink{0%,10%{opacity:0}11%,100%{opacity:1}}";export{o as rtk_recording_indicator}
@@ -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-DITWlMXR.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{R as n}from"./p-CTFO-5XH.js";import{S as c}from"./p-Dk8hCkEY.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-DYdFtxVz.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{R as n}from"./p-CTFO-5XH.js";import{S as c}from"./p-DjuLCOXk.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 as e}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as a,i as o}from"./p-DITWlMXR.js";import{S as l}from"./p-Dk8hCkEY.js";import"./p-Daj_55_i.js";var n=function(t,i,s,e){var a,o=arguments.length,l=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(l=(o<3?a(l):o>3?a(i,s,l):a(i,s))||l);return o>3&&l&&Object.defineProperty(i,s,l),l};const d=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.stageStatus="OFF_STAGE",this.state={label:"",disabled:!1,icon:""},this.stageCallback=async()=>{var t,i,s,e,a,o,l;const n=null===(t=this.meeting.stage)||void 0===t?void 0:t.status;"ON_STAGE"===n&&await(null===(s=null===(i=null==this?void 0:this.meeting)||void 0===i?void 0:i.stage)||void 0===s?void 0:s.leave()),"OFF_STAGE"===n&&(null===(a=null===(e=null==this?void 0:this.meeting)||void 0===e?void 0:e.stage)||void 0===a||a.requestAccess(),(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"ALLOWED"===(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)&&(this.states.activeJoinStage=!0,this.stateUpdate.emit({activeJoinStage:!0}))),"REQUESTED_TO_JOIN_STAGE"===n&&(null===(l=null===(o=null==this?void 0:this.meeting)||void 0===o?void 0:o.stage)||void 0===l||l.cancelRequestAccess())}}connectedCallback(){this.meetingChanged(this.meeting)}stageStatusHandler(t,i){this.stageStatus=i,"ACCEPTED_TO_JOIN_STAGE"===i&&(t.self.setupTracks({audio:!1,video:!1}),this.stateUpdate.emit({activeJoinStage:!0})),this.state=this.getState()}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",(t=>this.stageStatusHandler(this.meeting,t)))}meetingChanged(t){var i,s,e,a;t&&(this.stageStatus=null===(i=t.stage)||void 0===i?void 0:i.status,this.stageStatusHandler(t,null===(s=t.stage)||void 0===s?void 0:s.status),null===(a=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===a||a.on("stageStatusUpdate",(i=>this.stageStatusHandler(t,i))))}getState(){let t="",i="",s=!1;switch(this.stageStatus){case"ON_STAGE":i=this.iconPack.leave_stage,t=this.t("stage_request.leave_stage"),s=!1;break;case"ACCEPTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!0;break;case"REQUESTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.requested"),s=!1;break;default:i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!1}return{label:t,disabled:s,icon:i}}render(){return(null===(i=null==(t=this.meeting)?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"NOT_ALLOWED"!==(null===(a=null==t?void 0:t.self)||void 0===a?void 0:a.permissions.stageAccess)?s(e,{title:this.state.label},s("rtk-tooltip",{placement:"top",kind:"block",label:this.state.label,delay:600,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.state.label,icon:this.state.icon,onClick:this.stageCallback,disabled:this.state.disabled,showWarning:!1}))):s(e,{"data-hidden":!0});var t,i,a}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",void 0),n([l()],d.prototype,"states",void 0),n([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{d as rtk_stage_toggle}
1
+ import{r as t,d as i,h as s,a as e}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import{e as a,i as o}from"./p-DYdFtxVz.js";import"./p-C0vp-Q7v.js";import{S as l}from"./p-DjuLCOXk.js";import"./p-Daj_55_i.js";var n=function(t,i,s,e){var a,o=arguments.length,l=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(l=(o<3?a(l):o>3?a(i,s,l):a(i,s))||l);return o>3&&l&&Object.defineProperty(i,s,l),l};const d=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.stageStatus="OFF_STAGE",this.state={label:"",disabled:!1,icon:""},this.stageCallback=async()=>{var t,i,s,e,a,o,l;const n=null===(t=this.meeting.stage)||void 0===t?void 0:t.status;"ON_STAGE"===n&&await(null===(s=null===(i=null==this?void 0:this.meeting)||void 0===i?void 0:i.stage)||void 0===s?void 0:s.leave()),"OFF_STAGE"===n&&(null===(a=null===(e=null==this?void 0:this.meeting)||void 0===e?void 0:e.stage)||void 0===a||a.requestAccess(),(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"ALLOWED"===(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)&&(this.states.activeJoinStage=!0,this.stateUpdate.emit({activeJoinStage:!0}))),"REQUESTED_TO_JOIN_STAGE"===n&&(null===(l=null===(o=null==this?void 0:this.meeting)||void 0===o?void 0:o.stage)||void 0===l||l.cancelRequestAccess())}}connectedCallback(){this.meetingChanged(this.meeting)}stageStatusHandler(t,i){this.stageStatus=i,"ACCEPTED_TO_JOIN_STAGE"===i&&(t.self.setupTracks({audio:!1,video:!1}),this.stateUpdate.emit({activeJoinStage:!0})),this.state=this.getState()}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",(t=>this.stageStatusHandler(this.meeting,t)))}meetingChanged(t){var i,s,e,a;t&&(this.stageStatus=null===(i=t.stage)||void 0===i?void 0:i.status,this.stageStatusHandler(t,null===(s=t.stage)||void 0===s?void 0:s.status),null===(a=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===a||a.on("stageStatusUpdate",(i=>this.stageStatusHandler(t,i))))}getState(){let t="",i="",s=!1;switch(this.stageStatus){case"ON_STAGE":i=this.iconPack.leave_stage,t=this.t("stage_request.leave_stage"),s=!1;break;case"ACCEPTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!0;break;case"REQUESTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.requested"),s=!1;break;default:i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!1}return{label:t,disabled:s,icon:i}}render(){return(null===(i=null==(t=this.meeting)?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"NOT_ALLOWED"!==(null===(a=null==t?void 0:t.self)||void 0===a?void 0:a.permissions.stageAccess)?s(e,{title:this.state.label},s("rtk-tooltip",{placement:"top",kind:"block",label:this.state.label,delay:600,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.state.label,icon:this.state.icon,onClick:this.stageCallback,disabled:this.state.disabled,showWarning:!1}))):s(e,{"data-hidden":!0});var t,i,a}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"iconPack",void 0),n([l()],d.prototype,"states",void 0),n([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{d as rtk_stage_toggle}
@@ -1 +1 @@
1
- import{r as t,h as i,a as r,g as a}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e,i as s}from"./p-DITWlMXR.js";import{S as o}from"./p-Dk8hCkEY.js";import{R as c}from"./p-CTFO-5XH.js";import"./p-Daj_55_i.js";var n=function(t,i,r,a){var e,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,r,a);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(o=(s<3?e(o):s>3?e(i,r,o):e(i,r))||o);return s>3&&o&&Object.defineProperty(i,r,o),o};const l=class{constructor(i){t(this,i),this.iconPack=e,this.t=s(),this.hideSelf=!1,this.activeParticipants=[],this.onStageParticipants=[],this.offStageParticipants=[],this.onParticipantListUpdate=()=>{if(!this.meeting)return;let t=this.meeting.participants.active.toArray();this.hideSelf||(t=[...t,this.meeting.self]);let i=this.meeting.participants.joined.toArray().filter((i=>!t.some((t=>t.id===i.id))));this.activeParticipants=t,this.onStageParticipants=i}}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&"AUDIO_ROOM"===t.self.config.viewType&&(this.onParticipantListUpdate(),t.participants.active.addListener("participantJoined",this.onParticipantListUpdate),t.participants.active.addListener("participantLeft",this.onParticipantListUpdate),t.participants.joined.addListener("participantJoined",this.onParticipantListUpdate),t.participants.joined.addListener("participantLeft",this.onParticipantListUpdate))}disconnectedCallback(){this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.meeting.participants.active.removeListener("participantJoined",this.onParticipantListUpdate),this.meeting.participants.active.removeListener("participantLeft",this.onParticipantListUpdate),this.meeting.participants.joined.removeListener("participantJoined",this.onParticipantListUpdate),this.meeting.participants.joined.removeListener("participantLeft",this.onParticipantListUpdate)}renderGrid(t=[]){const r={meeting:this.meeting,size:this.size,config:this.config,t:this.t,iconPack:this.iconPack,states:this.states};return t.map((t=>i(c,{element:"rtk-audio-tile",defaults:r,props:{key:t.id,participant:t},childProps:{participant:t},deepProps:!0})))}render(){const t=this.activeParticipants.concat(this.onStageParticipants);return i(r,{key:"46eacac44f967fdac3ca9d1a62ffa08a9e2bec0e"},i("div",{key:"6121a8d6ec144197981ced909076345163f0fa69",class:"content scrollbar"},i("div",{key:"caeb7f4830e847e7dab63db199ec00cd12cb8ecc",class:"stage grid"},this.renderGrid(t)),this.offStageParticipants.length>0&&i("div",{key:"b5923cbb9be5992fdb007c3354e7792b19003d5b",class:"waitlist-area"},i("div",{key:"b93cefbe7de0eaf46c69f9d0dd6cf231ce683f27",class:"listening-title"},this.offStageParticipants.length," ",this.t("grid.listening")),i("div",{key:"f75c7cd4aa2422d3faed994ed24929e3c05fd097",class:"waitlist-grid grid"},this.renderGrid(this.offStageParticipants)))),i("slot",{key:"91240e462e7e510317b0ea6625ecba3aea94d5f3"}))}get host(){return a(this)}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([o()],l.prototype,"meeting",void 0),n([o()],l.prototype,"config",void 0),n([o()],l.prototype,"states",void 0),n([o()],l.prototype,"iconPack",void 0),n([o()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;height:100%;width:100%;box-sizing:border-box}.content{position:relative;display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.waitlist-area{display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.listening-title{text-align:center;margin-top:var(--rtk-space-5, 20px);margin-bottom:var(--rtk-space-4, 16px)}.waitlist-grid{flex:1 1 0%}.grid{box-sizing:border-box;flex:1 1 0%;gap:var(--rtk-space-6, 24px);display:flex;align-content:center;justify-content:center;flex-wrap:wrap}:host([size='md']) .grid{gap:var(--rtk-space-4, 16px)}:host([size='sm']) .grid{gap:var(--rtk-space-3, 12px)}rtk-audio-tile{aspect-ratio:1 / 1;flex:none;width:calc(20%);max-width:var(--rtk-space-48, 192px);transition:all 0.3s}rtk-audio-tile[size='md']{width:100%;max-width:var(--rtk-space-36, 144px)}rtk-audio-tile[size='sm']{width:100%;max-width:var(--rtk-space-24, 96px)}";export{l as rtk_audio_grid}
1
+ import{r as t,h as i,a as r,g as a}from"./p-gJCRRBX0.js";import"./p-Rq_6y0HI.js";import{e,i as s}from"./p-DYdFtxVz.js";import"./p-C0vp-Q7v.js";import{S as o}from"./p-DjuLCOXk.js";import{R as c}from"./p-CTFO-5XH.js";import"./p-Daj_55_i.js";var n=function(t,i,r,a){var e,s=arguments.length,o=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,r,a);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(o=(s<3?e(o):s>3?e(i,r,o):e(i,r))||o);return s>3&&o&&Object.defineProperty(i,r,o),o};const l=class{constructor(i){t(this,i),this.iconPack=e,this.t=s(),this.hideSelf=!1,this.activeParticipants=[],this.onStageParticipants=[],this.offStageParticipants=[],this.onParticipantListUpdate=()=>{if(!this.meeting)return;let t=this.meeting.participants.active.toArray();this.hideSelf||(t=[...t,this.meeting.self]);let i=this.meeting.participants.joined.toArray().filter((i=>!t.some((t=>t.id===i.id))));this.activeParticipants=t,this.onStageParticipants=i}}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&"AUDIO_ROOM"===t.self.config.viewType&&(this.onParticipantListUpdate(),t.participants.active.addListener("participantJoined",this.onParticipantListUpdate),t.participants.active.addListener("participantLeft",this.onParticipantListUpdate),t.participants.joined.addListener("participantJoined",this.onParticipantListUpdate),t.participants.joined.addListener("participantLeft",this.onParticipantListUpdate))}disconnectedCallback(){this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.meeting.participants.active.removeListener("participantJoined",this.onParticipantListUpdate),this.meeting.participants.active.removeListener("participantLeft",this.onParticipantListUpdate),this.meeting.participants.joined.removeListener("participantJoined",this.onParticipantListUpdate),this.meeting.participants.joined.removeListener("participantLeft",this.onParticipantListUpdate)}renderGrid(t=[]){const r={meeting:this.meeting,size:this.size,config:this.config,t:this.t,iconPack:this.iconPack,states:this.states};return t.map((t=>i(c,{element:"rtk-audio-tile",defaults:r,props:{key:t.id,participant:t},childProps:{participant:t},deepProps:!0})))}render(){const t=this.activeParticipants.concat(this.onStageParticipants);return i(r,{key:"46eacac44f967fdac3ca9d1a62ffa08a9e2bec0e"},i("div",{key:"6121a8d6ec144197981ced909076345163f0fa69",class:"content scrollbar"},i("div",{key:"caeb7f4830e847e7dab63db199ec00cd12cb8ecc",class:"stage grid"},this.renderGrid(t)),this.offStageParticipants.length>0&&i("div",{key:"b5923cbb9be5992fdb007c3354e7792b19003d5b",class:"waitlist-area"},i("div",{key:"b93cefbe7de0eaf46c69f9d0dd6cf231ce683f27",class:"listening-title"},this.offStageParticipants.length," ",this.t("grid.listening")),i("div",{key:"f75c7cd4aa2422d3faed994ed24929e3c05fd097",class:"waitlist-grid grid"},this.renderGrid(this.offStageParticipants)))),i("slot",{key:"91240e462e7e510317b0ea6625ecba3aea94d5f3"}))}get host(){return a(this)}static get watchers(){return{meeting:[{meetingChanged:0}]}}};n([o()],l.prototype,"meeting",void 0),n([o()],l.prototype,"config",void 0),n([o()],l.prototype,"states",void 0),n([o()],l.prototype,"iconPack",void 0),n([o()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;height:100%;width:100%;box-sizing:border-box}.content{position:relative;display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.waitlist-area{display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.listening-title{text-align:center;margin-top:var(--rtk-space-5, 20px);margin-bottom:var(--rtk-space-4, 16px)}.waitlist-grid{flex:1 1 0%}.grid{box-sizing:border-box;flex:1 1 0%;gap:var(--rtk-space-6, 24px);display:flex;align-content:center;justify-content:center;flex-wrap:wrap}:host([size='md']) .grid{gap:var(--rtk-space-4, 16px)}:host([size='sm']) .grid{gap:var(--rtk-space-3, 12px)}rtk-audio-tile{aspect-ratio:1 / 1;flex:none;width:calc(20%);max-width:var(--rtk-space-48, 192px);transition:all 0.3s}rtk-audio-tile[size='md']{width:100%;max-width:var(--rtk-space-36, 144px)}rtk-audio-tile[size='sm']{width:100%;max-width:var(--rtk-space-24, 96px)}";export{l as rtk_audio_grid}
@@ -1 +1 @@
1
- import{r as t,d as e,h as i,a as s}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-DITWlMXR.js";import{S as r}from"./p-Dk8hCkEY.js";var n=function(t,e,i,s){var a,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const c=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return i(s,{key:"4a7349ef852627dae7008d2fd0bd3491edce6327",title:t},i("rtk-controlbar-button",{key:"edd2c3e0fedcc8070855acf1bbc8f581775375ea",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_settings_toggle}
1
+ import{r as t,d as e,h as i,a as s}from"./p-gJCRRBX0.js";import{e as a,i as o}from"./p-DYdFtxVz.js";import{S as r}from"./p-DjuLCOXk.js";var n=function(t,e,i,s){var a,o=arguments.length,r=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(e,i,r):a(e,i))||r);return o>3&&r&&Object.defineProperty(e,i,r),r};const c=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return i(s,{key:"4a7349ef852627dae7008d2fd0bd3491edce6327",title:t},i("rtk-controlbar-button",{key:"edd2c3e0fedcc8070855acf1bbc8f581775375ea",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_settings_toggle}
@@ -1 +1 @@
1
- import{r as t,h as i,a as r}from"./p-gJCRRBX0.js";import{c as e,e as a,i as o}from"./p-DITWlMXR.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{S as s}from"./p-Dk8hCkEY.js";import"./p-Daj_55_i.js";var n=function(t,i,r,e){var a,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(i,r,s):a(i,r))||s);return o>3&&s&&Object.defineProperty(i,r,s),s};const d=class{constructor(i){t(this,i),this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=e(),this.variant="solid",this.iconPack=a,this.t=o(),this.onVideoUpdate=t=>{this.videoState=t}}connectedCallback(){this.participantsChanged(this.participant)}componentDidLoad(){this.videoStateChanged(this.videoState)}disconnectedCallback(){null!=this.participant&&this.participant.removeListener("videoUpdate",this.onVideoUpdate)}async participantsChanged(t){null!=t&&(this.videoState={videoEnabled:t.videoEnabled,videoTrack:t.videoTrack},this.isPinned=t.isPinned,t.addListener("videoUpdate",this.onVideoUpdate))}videoStateChanged(t){if(null!=t&&null!=this.videoEl)if(t.videoEnabled){const i=new MediaStream;i.addTrack(t.videoTrack),this.videoEl.srcObject=i}else this.videoEl.srcObject=void 0}isMirrored(){var t;if(null!=this.participant&&("preview"in this.participant||this.isPreview)){const i=this.states,r=null===(t=null==i?void 0:i.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof r)return r}return!1}render(){var t,e,a,o;return i(r,{key:"28dd3343464f9c18cae6161f8ad56005b748a637"},i("video",{key:"556343e40a061ddb9522569a77b574309bed9f31",ref:t=>this.videoEl=t,class:{visible:null===(t=this.videoState)||void 0===t?void 0:t.videoEnabled,mirror:this.isMirrored(),[null!==(o=null===(a=null===(e=this.config)||void 0===e?void 0:e.config)||void 0===a?void 0:a.videoFit)&&void 0!==o?o:"cover"]:!0},autoPlay:!0,playsInline:!0,muted:!0}),i("slot",{key:"c5da0b57d92652e54ef88cedcc269ccc720d1054"}))}static get watchers(){return{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}}};n([s()],d.prototype,"states",void 0),n([s()],d.prototype,"config",void 0),n([s()],d.prototype,"iconPack",void 0),n([s()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;height:var(--rtk-space-56, 224px);overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));transition-property:var(--rtk-transition-property, all);transition-duration:150ms}@media (prefers-reduced-motion){:host{--rtk-transition-property:none}}:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag){left:var(--rtk-space-2, 8px);bottom:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px)}video{display:none;position:absolute;height:100%;width:100%;border-radius:var(--rtk-border-radius-lg, 12px)}video.contain{-o-object-fit:contain;object-fit:contain}video.cover{-o-object-fit:cover;object-fit:cover}video.visible{display:block}video::-webkit-media-controls{display:none !important}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}video.mirror{transform:scaleX(-1)}@media (orientation: portrait){:host{height:var(--rtk-space-44, 176px)}}";export{d as rtk_participant_setup}
1
+ import{r as t,h as i,a as r}from"./p-gJCRRBX0.js";import{c as e,e as a,i as o}from"./p-DYdFtxVz.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{S as s}from"./p-DjuLCOXk.js";import"./p-Daj_55_i.js";var n=function(t,i,r,e){var a,o=arguments.length,s=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(i,r,s):a(i,r))||s);return o>3&&s&&Object.defineProperty(i,r,s),s};const d=class{constructor(i){t(this,i),this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=e(),this.variant="solid",this.iconPack=a,this.t=o(),this.onVideoUpdate=t=>{this.videoState=t}}connectedCallback(){this.participantsChanged(this.participant)}componentDidLoad(){this.videoStateChanged(this.videoState)}disconnectedCallback(){null!=this.participant&&this.participant.removeListener("videoUpdate",this.onVideoUpdate)}async participantsChanged(t){null!=t&&(this.videoState={videoEnabled:t.videoEnabled,videoTrack:t.videoTrack},this.isPinned=t.isPinned,t.addListener("videoUpdate",this.onVideoUpdate))}videoStateChanged(t){if(null!=t&&null!=this.videoEl)if(t.videoEnabled){const i=new MediaStream;i.addTrack(t.videoTrack),this.videoEl.srcObject=i}else this.videoEl.srcObject=void 0}isMirrored(){var t;if(null!=this.participant&&("preview"in this.participant||this.isPreview)){const i=this.states,r=null===(t=null==i?void 0:i.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof r)return r}return!1}render(){var t,e,a,o;return i(r,{key:"28dd3343464f9c18cae6161f8ad56005b748a637"},i("video",{key:"556343e40a061ddb9522569a77b574309bed9f31",ref:t=>this.videoEl=t,class:{visible:null===(t=this.videoState)||void 0===t?void 0:t.videoEnabled,mirror:this.isMirrored(),[null!==(o=null===(a=null===(e=this.config)||void 0===e?void 0:e.config)||void 0===a?void 0:a.videoFit)&&void 0!==o?o:"cover"]:!0},autoPlay:!0,playsInline:!0,muted:!0}),i("slot",{key:"c5da0b57d92652e54ef88cedcc269ccc720d1054"}))}static get watchers(){return{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}}};n([s()],d.prototype,"states",void 0),n([s()],d.prototype,"config",void 0),n([s()],d.prototype,"iconPack",void 0),n([s()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;height:var(--rtk-space-56, 224px);overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));transition-property:var(--rtk-transition-property, all);transition-duration:150ms}@media (prefers-reduced-motion){:host{--rtk-transition-property:none}}:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag){left:var(--rtk-space-2, 8px);bottom:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px)}video{display:none;position:absolute;height:100%;width:100%;border-radius:var(--rtk-border-radius-lg, 12px)}video.contain{-o-object-fit:contain;object-fit:contain}video.cover{-o-object-fit:cover;object-fit:cover}video.visible{display:block}video::-webkit-media-controls{display:none !important}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}video.mirror{transform:scaleX(-1)}@media (orientation: portrait){:host{height:var(--rtk-space-44, 176px)}}";export{d as rtk_participant_setup}
@@ -1 +1 @@
1
- import{r as t,h as r,a as i}from"./p-gJCRRBX0.js";import{e as a,i as s}from"./p-DITWlMXR.js";import{S as o}from"./p-Dk8hCkEY.js";import{d as e}from"./p-t72veIFj.js";import"./p-BFTU3MAI.js";var n=function(t,r,i,a){var s,o=arguments.length,e=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(e=(o<3?s(e):o>3?s(r,i,e):s(r,i))||e);return o>3&&e&&Object.defineProperty(r,i,e),e};const h=class{constructor(r){t(this,r),this.variant="rounded",this.iconPack=a,this.t=s(),this.page=1,this.pageCount=0,this.activeCount=0,this.activeComputedCount=0,this.showPagination=!1,this.onPageChanged=({currentPage:t,pageCount:r})=>{this.pageCount=r,this.page=t},this.toggleGridPagination=e((()=>{var t;const{self:r,participants:i}=this.meeting,{mobile:a,desktop:s}=null===(t=r.config)||void 0===t?void 0:t.maxVideoStreams,o="sm"===this.size?a:s,e=i.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus)).length;this.showPagination=!(e<o)}),50),this.onParticipantJoin=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onParticipantLeave=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onStateStatusUpdate=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.prevPage=()=>{if(!this.meeting)return;const{participants:t}=this.meeting;this.page>1?t.setPage(this.page-=1):"PAGINATED"===t.viewMode&&t.setViewMode("ACTIVE_GRID")},this.nextPage=()=>{if(!this.meeting)return;const{participants:t}=this.meeting;this.page>0&&this.page<this.pageCount?t.setPage(this.page+=1):t.count>0&&0===this.pageCount&&t.setViewMode("PAGINATED")}}connectedCallback(){this.meetingChanged(this.meeting),this.sizeChanged()}disconnectedCallback(){if(!this.meeting)return;const{participants:t,stage:r}=this.meeting;t.removeListener("pageChanged",this.onPageChanged),t.removeListener("viewModeChanged",this.onPageChanged),t.joined.removeListener("participantJoined",this.onParticipantJoin),t.joined.removeListener("participantLeft",this.onParticipantLeave),t.joined.removeListener("stageStatusUpdate",this.onStateStatusUpdate),r.removeListener("stageStatusUpdate",this.onStateStatusUpdate)}meetingChanged(t){if(null!=t){const{stage:r,participants:i}=t;this.page=i.currentPage,this.pageCount=i.pageCount,i.addListener("viewModeChanged",this.onPageChanged),i.addListener("pageChanged",this.onPageChanged),i.joined.addListener("participantJoined",this.onParticipantJoin),i.joined.addListener("participantLeft",this.onParticipantLeave),i.joined.addListener("stageStatusUpdate",this.onStateStatusUpdate),r.addListener("stageStatusUpdate",this.onStateStatusUpdate),this.activeCount=this.meeting.participants.joined.size,this.activeComputedCount=this.meeting.participants.joined.size,this.toggleGridPagination()}}sizeChanged(){this.toggleGridPagination()}render(){if(!this.meeting)return null;const{meta:t}=this.meeting;return"AUDIO_ROOM"!==(null==t?void 0:t.viewType)&&this.showPagination?r(i,null,r("rtk-button",{class:"prev",variant:"secondary",kind:"icon",disabled:0===this.pageCount,onClick:this.prevPage,"aria-label":this.t("page.prev")},r("rtk-icon",{icon:this.iconPack.chevron_left})),"grid"!==this.variant&&r("div",{class:"center"},r("span",{class:"page"},0===this.pageCount?r("rtk-tooltip",{label:this.t("layout.auto")},r("rtk-button",{kind:"icon",class:"auto"},r("rtk-icon",{icon:this.iconPack.wand}))):this.page),0!==this.pageCount&&[r("span",{class:"slash"},"/"),r("span",{class:"pages"},this.pageCount)]),"grid"===this.variant&&this.pageCount>0&&r("div",{class:"dots"},[...Array(this.pageCount)].map(((t,i)=>r("div",{key:`dot-${i}`,class:{dot:!0,active:i+1===this.page}})))),r("rtk-button",{class:"next",variant:"secondary",kind:"icon",disabled:0!==this.page&&this.page===this.pageCount,onClick:this.nextPage,"aria-label":this.t("page.next")},r("rtk-icon",{icon:this.iconPack.chevron_right,tabIndex:-1,"aria-hidden":!0}))):r(i,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}],size:[{sizeChanged:0}]}}};n([o()],h.prototype,"meeting",void 0),n([o()],h.prototype,"states",void 0),n([o()],h.prototype,"iconPack",void 0),n([o()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;font-size:16px}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}:host([size='sm']) .center{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px)}:host([size='sm']) rtk-button{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) rtk-button rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}rtk-button{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.center{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.center .page{color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.center .slash{margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-0\\.5, 2px)}.center .pages{align-self:flex-end;font-size:12px}:host([variant='rounded']){overflow:hidden;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button{border-radius:9999px;border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='rounded']) rtk-button:not([disabled]):hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button:not([disabled]):focus{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='grid']) rtk-button{position:absolute;top:50%;height:var(--rtk-space-20, 80px);width:var(--rtk-space-20, 80px);opacity:0.2;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='grid']) rtk-button:hover{opacity:1}:host([variant='grid']) rtk-button{transform:translateY(-50%)}:host([variant='grid']) rtk-button.prev{left:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) rtk-button.next{right:var(--rtk-space-0, 0px);border-top-left-radius:9999px;border-bottom-left-radius:9999px}:host([variant='grid']) rtk-button.auto{left:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) .dots{position:absolute;left:50%;bottom:var(--rtk-space-3, 12px);display:flex;align-items:center;transform:translateX(-50%)}:host([variant='grid']) .dots .dot{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-2, 8px);width:var(--rtk-space-2, 8px);cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([variant='grid']) .dots .dot:last-child{margin-right:var(--rtk-space-0, 0px)}:host([variant='grid']) .dots .dot.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host([variant='grid'][size='sm']) rtk-button{height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);opacity:0.1}";export{h as rtk_grid_pagination}
1
+ import{r as t,h as r,a as i}from"./p-gJCRRBX0.js";import{e as a,i as s}from"./p-DYdFtxVz.js";import{S as o}from"./p-DjuLCOXk.js";import{d as e}from"./p-t72veIFj.js";import"./p-BFTU3MAI.js";var n=function(t,r,i,a){var s,o=arguments.length,e=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(e=(o<3?s(e):o>3?s(r,i,e):s(r,i))||e);return o>3&&e&&Object.defineProperty(r,i,e),e};const h=class{constructor(r){t(this,r),this.variant="rounded",this.iconPack=a,this.t=s(),this.page=1,this.pageCount=0,this.activeCount=0,this.activeComputedCount=0,this.showPagination=!1,this.onPageChanged=({currentPage:t,pageCount:r})=>{this.pageCount=r,this.page=t},this.toggleGridPagination=e((()=>{var t;const{self:r,participants:i}=this.meeting,{mobile:a,desktop:s}=null===(t=r.config)||void 0===t?void 0:t.maxVideoStreams,o="sm"===this.size?a:s,e=i.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus)).length;this.showPagination=!(e<o)}),50),this.onParticipantJoin=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onParticipantLeave=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onStateStatusUpdate=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.prevPage=()=>{if(!this.meeting)return;const{participants:t}=this.meeting;this.page>1?t.setPage(this.page-=1):"PAGINATED"===t.viewMode&&t.setViewMode("ACTIVE_GRID")},this.nextPage=()=>{if(!this.meeting)return;const{participants:t}=this.meeting;this.page>0&&this.page<this.pageCount?t.setPage(this.page+=1):t.count>0&&0===this.pageCount&&t.setViewMode("PAGINATED")}}connectedCallback(){this.meetingChanged(this.meeting),this.sizeChanged()}disconnectedCallback(){if(!this.meeting)return;const{participants:t,stage:r}=this.meeting;t.removeListener("pageChanged",this.onPageChanged),t.removeListener("viewModeChanged",this.onPageChanged),t.joined.removeListener("participantJoined",this.onParticipantJoin),t.joined.removeListener("participantLeft",this.onParticipantLeave),t.joined.removeListener("stageStatusUpdate",this.onStateStatusUpdate),r.removeListener("stageStatusUpdate",this.onStateStatusUpdate)}meetingChanged(t){if(null!=t){const{stage:r,participants:i}=t;this.page=i.currentPage,this.pageCount=i.pageCount,i.addListener("viewModeChanged",this.onPageChanged),i.addListener("pageChanged",this.onPageChanged),i.joined.addListener("participantJoined",this.onParticipantJoin),i.joined.addListener("participantLeft",this.onParticipantLeave),i.joined.addListener("stageStatusUpdate",this.onStateStatusUpdate),r.addListener("stageStatusUpdate",this.onStateStatusUpdate),this.activeCount=this.meeting.participants.joined.size,this.activeComputedCount=this.meeting.participants.joined.size,this.toggleGridPagination()}}sizeChanged(){this.toggleGridPagination()}render(){if(!this.meeting)return null;const{meta:t}=this.meeting;return"AUDIO_ROOM"!==(null==t?void 0:t.viewType)&&this.showPagination?r(i,null,r("rtk-button",{class:"prev",variant:"secondary",kind:"icon",disabled:0===this.pageCount,onClick:this.prevPage,"aria-label":this.t("page.prev")},r("rtk-icon",{icon:this.iconPack.chevron_left})),"grid"!==this.variant&&r("div",{class:"center"},r("span",{class:"page"},0===this.pageCount?r("rtk-tooltip",{label:this.t("layout.auto")},r("rtk-button",{kind:"icon",class:"auto"},r("rtk-icon",{icon:this.iconPack.wand}))):this.page),0!==this.pageCount&&[r("span",{class:"slash"},"/"),r("span",{class:"pages"},this.pageCount)]),"grid"===this.variant&&this.pageCount>0&&r("div",{class:"dots"},[...Array(this.pageCount)].map(((t,i)=>r("div",{key:`dot-${i}`,class:{dot:!0,active:i+1===this.page}})))),r("rtk-button",{class:"next",variant:"secondary",kind:"icon",disabled:0!==this.page&&this.page===this.pageCount,onClick:this.nextPage,"aria-label":this.t("page.next")},r("rtk-icon",{icon:this.iconPack.chevron_right,tabIndex:-1,"aria-hidden":!0}))):r(i,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}],size:[{sizeChanged:0}]}}};n([o()],h.prototype,"meeting",void 0),n([o()],h.prototype,"states",void 0),n([o()],h.prototype,"iconPack",void 0),n([o()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;font-size:16px}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}:host([size='sm']) .center{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px)}:host([size='sm']) rtk-button{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) rtk-button rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}rtk-button{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.center{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.center .page{color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.center .slash{margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-0\\.5, 2px)}.center .pages{align-self:flex-end;font-size:12px}:host([variant='rounded']){overflow:hidden;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button{border-radius:9999px;border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='rounded']) rtk-button:not([disabled]):hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button:not([disabled]):focus{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='grid']) rtk-button{position:absolute;top:50%;height:var(--rtk-space-20, 80px);width:var(--rtk-space-20, 80px);opacity:0.2;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='grid']) rtk-button:hover{opacity:1}:host([variant='grid']) rtk-button{transform:translateY(-50%)}:host([variant='grid']) rtk-button.prev{left:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) rtk-button.next{right:var(--rtk-space-0, 0px);border-top-left-radius:9999px;border-bottom-left-radius:9999px}:host([variant='grid']) rtk-button.auto{left:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) .dots{position:absolute;left:50%;bottom:var(--rtk-space-3, 12px);display:flex;align-items:center;transform:translateX(-50%)}:host([variant='grid']) .dots .dot{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-2, 8px);width:var(--rtk-space-2, 8px);cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([variant='grid']) .dots .dot:last-child{margin-right:var(--rtk-space-0, 0px)}:host([variant='grid']) .dots .dot.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host([variant='grid'][size='sm']) rtk-button{height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);opacity:0.1}";export{h as rtk_grid_pagination}
@@ -1 +1 @@
1
- import{r as t,d as r,h as o,a as e,g as a}from"./p-gJCRRBX0.js";import{e as i,i as s}from"./p-DITWlMXR.js";import{S as c}from"./p-Dk8hCkEY.js";var n=function(t,r,o,e){var a,i=arguments.length,s=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,o,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(r,o,s):a(r,o))||s);return i>3&&s&&Object.defineProperty(r,o,s),s};const d=class{constructor(o){t(this,o),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=s(),this.handleKeyDown=({key:t})=>{"Escape"===t&&this.stateUpdate.emit({activeMoreMenu:!1})},this.handleOnClick=t=>{!t.composedPath().includes(this.host)&&this.states.activeMoreMenu&&this.stateUpdate.emit({activeMoreMenu:!1})},this.toggleMoreMenu=()=>{this.stateUpdate.emit({activeMoreMenu:!this.states.activeMoreMenu})}}connectedCallback(){window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("click",this.handleOnClick)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("click",this.handleOnClick)}render(){const t=this.t("more");return o(e,{key:"bb6bc743afd9c5c2c91f48097f98afc0f58fface",title:t},this.states.activeMoreMenu&&o("div",{key:"ca5d042b877cd1bee68b2563d40764bbc2072df4",class:"more-menu"},o("slot",{key:"9931da3f9e96d792be362c64338d582be2990647",name:"more-elements"})),o("rtk-controlbar-button",{key:"d0d7e0f19a37029c9cdfb8238c0a7af88876b2c0",size:this.size,iconPack:this.iconPack,onClick:t=>{t.stopPropagation(),this.toggleMoreMenu()},icon:this.iconPack.horizontal_dots,label:t,part:"controlbar-button"}),o("slot",{key:"603c0b5f092419c98ed56614a1468b5802c95702",name:"expanded"}))}get host(){return a(this)}};n([c()],d.prototype,"states",void 0),n([c()],d.prototype,"iconPack",void 0),n([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:visible}.more-menu{position:absolute;right:calc(var(--rtk-space-24, 96px) * -1);bottom:var(--rtk-space-16, 64px);z-index:50;margin-bottom:var(--rtk-space-3, 12px);box-sizing:border-box;max-height:60vh;width:var(--rtk-space-64, 256px);overflow:auto;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:column;align-items:stretch}:host([size='sm']) .more-menu{bottom:var(--rtk-space-10, 40px)}.more-menu::-webkit-scrollbar{height:var(--rtk-space-0, 0px);width:var(--rtk-space-1\\.5, 6px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.more-menu::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";export{d as rtk_more_toggle}
1
+ import{r as t,d as r,h as o,a as e,g as a}from"./p-gJCRRBX0.js";import{e as i,i as s}from"./p-DYdFtxVz.js";import{S as c}from"./p-DjuLCOXk.js";var n=function(t,r,o,e){var a,i=arguments.length,s=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,o,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(r,o,s):a(r,o))||s);return i>3&&s&&Object.defineProperty(r,o,s),s};const d=class{constructor(o){t(this,o),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=s(),this.handleKeyDown=({key:t})=>{"Escape"===t&&this.stateUpdate.emit({activeMoreMenu:!1})},this.handleOnClick=t=>{!t.composedPath().includes(this.host)&&this.states.activeMoreMenu&&this.stateUpdate.emit({activeMoreMenu:!1})},this.toggleMoreMenu=()=>{this.stateUpdate.emit({activeMoreMenu:!this.states.activeMoreMenu})}}connectedCallback(){window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("click",this.handleOnClick)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("click",this.handleOnClick)}render(){const t=this.t("more");return o(e,{key:"bb6bc743afd9c5c2c91f48097f98afc0f58fface",title:t},this.states.activeMoreMenu&&o("div",{key:"ca5d042b877cd1bee68b2563d40764bbc2072df4",class:"more-menu"},o("slot",{key:"9931da3f9e96d792be362c64338d582be2990647",name:"more-elements"})),o("rtk-controlbar-button",{key:"d0d7e0f19a37029c9cdfb8238c0a7af88876b2c0",size:this.size,iconPack:this.iconPack,onClick:t=>{t.stopPropagation(),this.toggleMoreMenu()},icon:this.iconPack.horizontal_dots,label:t,part:"controlbar-button"}),o("slot",{key:"603c0b5f092419c98ed56614a1468b5802c95702",name:"expanded"}))}get host(){return a(this)}};n([c()],d.prototype,"states",void 0),n([c()],d.prototype,"iconPack",void 0),n([c()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:visible}.more-menu{position:absolute;right:calc(var(--rtk-space-24, 96px) * -1);bottom:var(--rtk-space-16, 64px);z-index:50;margin-bottom:var(--rtk-space-3, 12px);box-sizing:border-box;max-height:60vh;width:var(--rtk-space-64, 256px);overflow:auto;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:column;align-items:stretch}:host([size='sm']) .more-menu{bottom:var(--rtk-space-10, 40px)}.more-menu::-webkit-scrollbar{height:var(--rtk-space-0, 0px);width:var(--rtk-space-1\\.5, 6px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.more-menu::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";export{d as rtk_more_toggle}