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

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 (638) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-BA97TnvX.js → TextMessage-C_OMdhOv.js} +1 -1
  3. package/dist/cjs/{chat-NY588mAE.js → chat-2G70V8h1.js} +1 -1
  4. package/dist/cjs/{config-Chzt-h7l.js → config-DNVD4for.js} +2 -2
  5. package/dist/cjs/{debounce-CoFZKdWb.js → debounce-CZxcmrOw.js} +1 -1
  6. package/dist/cjs/{index-BeKaBV5F.js → index-bphCu7Kc.js} +1 -1
  7. package/dist/cjs/index.cjs.js +4 -4
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  10. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  11. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-audio-visualizer_3.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-avatar_26.cjs.entry.js +9 -9
  17. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  18. package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
  19. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  22. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  24. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  27. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  28. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-file-message_3.cjs.entry.js +6 -6
  40. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  53. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  54. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  55. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  60. package/dist/cjs/rtk-notifications.cjs.entry.js +26 -4
  61. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  62. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-participant_2.cjs.entry.js +5 -5
  64. package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  66. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  68. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +347 -34
  77. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  78. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
  79. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  80. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
  85. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-stage.cjs.entry.js +3 -3
  88. package/dist/cjs/rtk-switch.cjs.entry.js +3 -3
  89. package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
  90. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  91. package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
  92. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
  93. package/dist/cjs/{ui-kit-metadata-zBJ8NnVE.js → ui-kit-metadata-Db62SilF.js} +2 -2
  94. package/dist/cjs/{ui-store-DSyXGfDZ.js → ui-store-XdzekVqK.js} +4 -0
  95. package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
  96. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
  97. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  98. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  99. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
  100. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
  101. package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
  102. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
  103. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
  104. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
  105. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
  106. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
  107. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
  108. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
  109. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
  110. package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
  111. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
  112. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
  113. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
  114. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
  115. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
  116. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
  117. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +1 -1
  118. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
  119. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
  120. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  121. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  122. package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
  123. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  124. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  125. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  126. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
  127. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  128. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  129. package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
  130. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  131. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  132. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  133. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  134. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
  135. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  136. package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
  137. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
  138. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
  139. package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
  140. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
  141. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  142. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  143. package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
  144. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
  145. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  146. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
  147. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  148. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
  149. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
  150. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
  151. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
  152. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  153. package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
  154. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
  155. package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
  156. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  157. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  158. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
  159. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
  160. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
  161. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
  162. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
  163. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  164. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
  165. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
  166. package/dist/collection/components/rtk-notification/rtk-notification.js +1 -1
  167. package/dist/collection/components/rtk-notifications/rtk-notifications.js +24 -2
  168. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  169. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
  170. package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
  171. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
  172. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
  173. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
  174. package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
  175. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  176. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  177. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
  178. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
  179. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
  180. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
  181. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  182. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +1 -1
  183. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
  184. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
  185. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  186. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
  187. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  188. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
  189. package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
  190. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
  191. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  192. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
  193. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
  194. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +210 -0
  195. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +371 -37
  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 +2 -2
  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-spinner/rtk-spinner.js +1 -1
  206. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
  207. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
  208. package/dist/collection/components/rtk-stage/rtk-stage.js +2 -2
  209. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
  210. package/dist/collection/components/rtk-switch/rtk-switch.js +2 -2
  211. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
  212. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +2 -2
  213. package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -3
  214. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
  215. package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
  216. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  217. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
  218. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
  219. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
  220. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +2 -2
  221. package/dist/collection/lib/lang/default-language.js +4 -0
  222. package/dist/collection/utils/ui-kit-metadata.js +1 -1
  223. package/dist/components/index.js +1 -1
  224. package/dist/components/{p-ByMjaTnP.js → p-16s5ZSAZ.js} +1 -1
  225. package/dist/components/{p-Bjx68Nkv.js → p-B2HJVmyW.js} +1 -1
  226. package/dist/components/{p-CXDRC8Nb.js → p-BDBQ3yNX.js} +1 -1
  227. package/dist/components/p-BDZmvSZ5.js +1 -0
  228. package/dist/components/{p-xLck_VlO.js → p-BIkikWuB.js} +1 -1
  229. package/dist/components/{p-BNjHUNwU.js → p-BMEVA63X.js} +1 -1
  230. package/dist/components/{p-ifBo9NHb.js → p-BOs3IQB-.js} +1 -1
  231. package/dist/components/p-BWM_mzxz.js +1 -0
  232. package/dist/components/{p-BBRpBb3D.js → p-BX-q0U6y.js} +1 -1
  233. package/dist/components/{p-GtIz3u0L.js → p-BeeuQPMZ.js} +1 -1
  234. package/dist/components/{p-BWLmBQB7.js → p-Bev5JWZ0.js} +1 -1
  235. package/dist/components/{p-BjG7yuwj.js → p-BpMexaGX.js} +1 -1
  236. package/dist/components/{p--F3BGV0E.js → p-BrWD_P9J.js} +1 -1
  237. package/dist/components/{p-CWxtbDEh.js → p-BxJT0iOj.js} +1 -1
  238. package/dist/components/{p-oXCkwBKR.js → p-BxM6yQDX.js} +1 -1
  239. package/dist/components/{p-DAq4FN_d.js → p-C27_nsxU.js} +1 -1
  240. package/dist/components/{p-CiX87kt0.js → p-C78m8FSo.js} +1 -1
  241. package/dist/components/{p-CM3Y2kOg.js → p-C7kzxj2U.js} +1 -1
  242. package/dist/components/{p-DUIWB0ra.js → p-CAePd-oD.js} +1 -1
  243. package/dist/components/{p-B2EHfWpD.js → p-CBBiuExR.js} +1 -1
  244. package/dist/components/{p-CkNlX5-Y.js → p-CCcFJzS9.js} +1 -1
  245. package/dist/components/{p-BeWjGx1n.js → p-CNRlJgcv.js} +1 -1
  246. package/dist/components/{p-CH7w_Zrp.js → p-CSQnL_EP.js} +1 -1
  247. package/dist/components/{p-BX3gY1PP.js → p-CSdpb5b3.js} +1 -1
  248. package/dist/components/{p-B6IcTqkN.js → p-CT1iNAdo.js} +1 -1
  249. package/dist/components/{p-CHSH0L_g.js → p-CX0Xm7nC.js} +1 -1
  250. package/dist/components/{p-Bp8UGnBB.js → p-CddkXbJO.js} +1 -1
  251. package/dist/components/{p-DalLUQa1.js → p-ChM1gCIW.js} +1 -1
  252. package/dist/components/{p-BVRIm4Vt.js → p-CjAIMy9F.js} +1 -1
  253. package/dist/components/{p-uxGiMP6W.js → p-CjnaOcqP.js} +1 -1
  254. package/dist/components/{p-D9cHynev.js → p-CkAYE3S8.js} +1 -1
  255. package/dist/components/p-CtoKGHXg.js +1 -0
  256. package/dist/components/{p-DuRlksIi.js → p-CuQOcbEk.js} +1 -1
  257. package/dist/components/{p-Dp2LhUKa.js → p-CuXI1Bo9.js} +1 -1
  258. package/dist/components/{p-DAGCKEFc.js → p-CudchGV-.js} +1 -1
  259. package/dist/components/{p-BC__OeWi.js → p-D00_ZaOw.js} +1 -1
  260. package/dist/components/{p-C7Rh2NRS.js → p-D3hW0Kbk.js} +1 -1
  261. package/dist/components/{p-U9jg1DvO.js → p-D7C_eMze.js} +1 -1
  262. package/dist/components/{p-DW9czTAD.js → p-DCxpDhJk.js} +1 -1
  263. package/dist/components/{p-CtPr1nvA.js → p-DDXAdlei.js} +1 -1
  264. package/dist/components/{p-Be6GRqFL.js → p-DGf0eDeq.js} +1 -1
  265. package/dist/components/{p-0I1N5xHK.js → p-DQpLF7Tl.js} +1 -1
  266. package/dist/components/{p-Dc5xkFI9.js → p-DR4HIK_J.js} +1 -1
  267. package/dist/components/{p-C_e0a6jQ.js → p-DSiVRqn-.js} +1 -1
  268. package/dist/components/{p-Ds5j-VXZ.js → p-DT1PR6Br.js} +1 -1
  269. package/dist/components/{p-gBEnKt4T.js → p-DTcPOR7t.js} +1 -1
  270. package/dist/components/{p-CugPCiPF.js → p-DTlvGHSC.js} +1 -1
  271. package/dist/components/{p-36vx_Mui.js → p-DU_5lopz.js} +1 -1
  272. package/dist/components/{p-B2RoJ1tz.js → p-DYpMIlQ4.js} +1 -1
  273. package/dist/components/{p-g5NPAxAj.js → p-De3mM3M-.js} +1 -1
  274. package/dist/components/{p-Bc2jtNZw.js → p-DeQvmRpj.js} +1 -1
  275. package/dist/components/{p-DC-3Hg9I.js → p-Dft337Ll.js} +1 -1
  276. package/dist/components/{p-BWqnoSw2.js → p-DstiJHuo.js} +1 -1
  277. package/dist/components/{p-D34dZlkT.js → p-Dvobsim-.js} +1 -1
  278. package/dist/components/{p-kGPSVdob.js → p-DxWuP9W-.js} +1 -1
  279. package/dist/components/{p-DNy6quyg.js → p-DzU0ms1z.js} +1 -1
  280. package/dist/components/{p-Btj1QSzG.js → p-EcdS-L-q.js} +1 -1
  281. package/dist/components/{p-GMH-Dp75.js → p-FJMslKrI.js} +1 -1
  282. package/dist/components/{p-Ic4M6IZs.js → p-H0SF5wed.js} +1 -1
  283. package/dist/components/{p-CjOKLEdP.js → p-IIcKCSrk.js} +1 -1
  284. package/dist/components/{p-BGaDuggr.js → p-Jrghj_Rb.js} +1 -1
  285. package/dist/components/{p-C07P-YzZ.js → p-Qr0iq3rP.js} +1 -1
  286. package/dist/components/{p-DxZ5v-a-.js → p-SuJdlCN6.js} +1 -1
  287. package/dist/components/{p-DPENu38v.js → p-TVGlb-lM.js} +1 -1
  288. package/dist/components/{p-msSLVaDl.js → p-TzHbL-Yw.js} +1 -1
  289. package/dist/components/{p-Zkjzr8ZL.js → p-W6qOF1ab.js} +1 -1
  290. package/dist/components/{p-IilUR0Z4.js → p-bf44p3D-.js} +1 -1
  291. package/dist/components/{p-BeJhcBfy.js → p-cWoLKHJ3.js} +1 -1
  292. package/dist/components/{p-C8IQnQjR.js → p-fQitJHsh.js} +1 -1
  293. package/dist/components/{p-B_Wn0VnS.js → p-l4woSzxj.js} +1 -1
  294. package/dist/components/{p-BugzZ4hY.js → p-lUHVcFOY.js} +1 -1
  295. package/dist/components/{p-vADJB1c2.js → p-pOJlVled.js} +1 -1
  296. package/dist/components/{p-B3ATJ-iD.js → p-p_mTGyE6.js} +1 -1
  297. package/dist/components/{p-B0Fo3cKf.js → p-qzUtJdPs.js} +1 -1
  298. package/dist/components/{p-BjZJaxt1.js → p-reX4rZOi.js} +1 -1
  299. package/dist/components/{p-CxPXk2ws.js → p-w39VkrD-.js} +1 -1
  300. package/dist/components/{p-BQMMBSP2.js → p-wCbKvvTJ.js} +1 -1
  301. package/dist/components/{p-CGVMdadq.js → p-woxb-Bmm.js} +1 -1
  302. package/dist/components/rtk-ai-toggle.js +1 -1
  303. package/dist/components/rtk-ai-transcriptions.js +1 -1
  304. package/dist/components/rtk-ai.js +1 -1
  305. package/dist/components/rtk-audio-grid.js +1 -1
  306. package/dist/components/rtk-audio-tile.js +1 -1
  307. package/dist/components/rtk-audio-visualizer.js +1 -1
  308. package/dist/components/rtk-avatar.js +1 -1
  309. package/dist/components/rtk-breakout-room-manager.js +1 -1
  310. package/dist/components/rtk-breakout-room-participants.js +1 -1
  311. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  312. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  313. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  314. package/dist/components/rtk-camera-selector.js +1 -1
  315. package/dist/components/rtk-camera-toggle.js +1 -1
  316. package/dist/components/rtk-caption-toggle.js +1 -1
  317. package/dist/components/rtk-chat-composer-ui.js +1 -1
  318. package/dist/components/rtk-chat-composer-view.js +1 -1
  319. package/dist/components/rtk-chat-header.js +1 -1
  320. package/dist/components/rtk-chat-message.js +1 -1
  321. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  322. package/dist/components/rtk-chat-messages-ui.js +1 -1
  323. package/dist/components/rtk-chat-search-results.js +1 -1
  324. package/dist/components/rtk-chat-selector-ui.js +1 -1
  325. package/dist/components/rtk-chat-selector.js +1 -1
  326. package/dist/components/rtk-chat-toggle.js +1 -1
  327. package/dist/components/rtk-chat.js +1 -1
  328. package/dist/components/rtk-clock.js +1 -1
  329. package/dist/components/rtk-confirmation-modal.js +1 -1
  330. package/dist/components/rtk-controlbar-button.js +1 -1
  331. package/dist/components/rtk-controlbar.js +1 -1
  332. package/dist/components/rtk-counter.js +1 -1
  333. package/dist/components/rtk-debugger-audio.js +1 -1
  334. package/dist/components/rtk-debugger-screenshare.js +1 -1
  335. package/dist/components/rtk-debugger-system.js +1 -1
  336. package/dist/components/rtk-debugger-toggle.js +1 -1
  337. package/dist/components/rtk-debugger-video.js +1 -1
  338. package/dist/components/rtk-debugger.js +1 -1
  339. package/dist/components/rtk-dialog-manager.js +1 -1
  340. package/dist/components/rtk-dialog.js +1 -1
  341. package/dist/components/rtk-draft-attachment-view.js +1 -1
  342. package/dist/components/rtk-emoji-picker-button.js +1 -1
  343. package/dist/components/rtk-emoji-picker.js +1 -1
  344. package/dist/components/rtk-ended-screen.js +1 -1
  345. package/dist/components/rtk-file-dropzone.js +1 -1
  346. package/dist/components/rtk-file-message-view.js +1 -1
  347. package/dist/components/rtk-file-message.js +1 -1
  348. package/dist/components/rtk-file-picker-button.js +1 -1
  349. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  350. package/dist/components/rtk-grid-pagination.js +1 -1
  351. package/dist/components/rtk-grid.js +1 -1
  352. package/dist/components/rtk-header.js +1 -1
  353. package/dist/components/rtk-idle-screen.js +1 -1
  354. package/dist/components/rtk-image-message-view.js +1 -1
  355. package/dist/components/rtk-image-message.js +1 -1
  356. package/dist/components/rtk-image-viewer.js +1 -1
  357. package/dist/components/rtk-information-tooltip.js +1 -1
  358. package/dist/components/rtk-join-stage.js +1 -1
  359. package/dist/components/rtk-leave-button.js +1 -1
  360. package/dist/components/rtk-leave-meeting.js +1 -1
  361. package/dist/components/rtk-livestream-indicator.js +1 -1
  362. package/dist/components/rtk-livestream-player.js +1 -1
  363. package/dist/components/rtk-livestream-toggle.js +1 -1
  364. package/dist/components/rtk-logo.js +1 -1
  365. package/dist/components/rtk-meeting-title.js +1 -1
  366. package/dist/components/rtk-meeting.js +1 -1
  367. package/dist/components/rtk-menu-item.js +1 -1
  368. package/dist/components/rtk-menu-list.js +1 -1
  369. package/dist/components/rtk-menu.js +1 -1
  370. package/dist/components/rtk-message-list-view.js +1 -1
  371. package/dist/components/rtk-message-view.js +1 -1
  372. package/dist/components/rtk-mic-toggle.js +1 -1
  373. package/dist/components/rtk-microphone-selector.js +1 -1
  374. package/dist/components/rtk-mixed-grid.js +1 -1
  375. package/dist/components/rtk-more-toggle.js +1 -1
  376. package/dist/components/rtk-mute-all-button.js +1 -1
  377. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  378. package/dist/components/rtk-name-tag.js +1 -1
  379. package/dist/components/rtk-network-indicator.js +1 -1
  380. package/dist/components/rtk-notification.js +1 -1
  381. package/dist/components/rtk-notifications.js +1 -1
  382. package/dist/components/rtk-overlay-modal.js +1 -1
  383. package/dist/components/rtk-paginated-list.js +1 -1
  384. package/dist/components/rtk-participant-count.js +1 -1
  385. package/dist/components/rtk-participant-setup.js +1 -1
  386. package/dist/components/rtk-participant-tile.js +1 -1
  387. package/dist/components/rtk-participant.js +1 -1
  388. package/dist/components/rtk-participants-audio.js +1 -1
  389. package/dist/components/rtk-participants-stage-list.js +1 -1
  390. package/dist/components/rtk-participants-stage-queue.js +1 -1
  391. package/dist/components/rtk-participants-toggle.js +1 -1
  392. package/dist/components/rtk-participants-viewer-list.js +1 -1
  393. package/dist/components/rtk-participants-waiting-list.js +1 -1
  394. package/dist/components/rtk-participants.js +1 -1
  395. package/dist/components/rtk-permissions-message.js +1 -1
  396. package/dist/components/rtk-pinned-message-selector.js +1 -1
  397. package/dist/components/rtk-pip-toggle.js +1 -1
  398. package/dist/components/rtk-plugin-main.js +1 -1
  399. package/dist/components/rtk-plugins-toggle.js +1 -1
  400. package/dist/components/rtk-plugins.js +1 -1
  401. package/dist/components/rtk-poll-form.js +1 -1
  402. package/dist/components/rtk-poll.js +1 -1
  403. package/dist/components/rtk-polls-toggle.js +1 -1
  404. package/dist/components/rtk-polls.js +1 -1
  405. package/dist/components/rtk-recording-indicator.js +1 -1
  406. package/dist/components/rtk-recording-toggle.js +1 -1
  407. package/dist/components/rtk-screen-share-toggle.js +1 -1
  408. package/dist/components/rtk-screenshare-view.js +1 -1
  409. package/dist/components/rtk-settings-audio.js +1 -1
  410. package/dist/components/rtk-settings-toggle.js +1 -1
  411. package/dist/components/rtk-settings-video.js +1 -1
  412. package/dist/components/rtk-settings.js +1 -1
  413. package/dist/components/rtk-setup-screen.js +1 -1
  414. package/dist/components/rtk-sidebar-ui.js +1 -1
  415. package/dist/components/rtk-sidebar.js +1 -1
  416. package/dist/components/rtk-simple-grid.js +1 -1
  417. package/dist/components/rtk-speaker-selector.js +1 -1
  418. package/dist/components/rtk-spinner.js +1 -1
  419. package/dist/components/rtk-spotlight-grid.js +1 -1
  420. package/dist/components/rtk-spotlight-indicator.js +1 -1
  421. package/dist/components/rtk-stage-toggle.js +1 -1
  422. package/dist/components/rtk-stage.js +1 -1
  423. package/dist/components/rtk-switch.js +1 -1
  424. package/dist/components/rtk-tab-bar.js +1 -1
  425. package/dist/components/rtk-text-composer-view.js +1 -1
  426. package/dist/components/rtk-text-message-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-virtualized-participant-list.js +1 -1
  433. package/dist/components/rtk-waiting-screen.js +1 -1
  434. package/dist/docs/docs-components.json +2244 -251
  435. package/dist/docs/docs-vscode.json +5 -1
  436. package/dist/esm/{TextMessage-BZiVGmY1.js → TextMessage-Cisroi3Z.js} +1 -1
  437. package/dist/esm/{chat-lvouWi7J.js → chat-CNKqhbws.js} +1 -1
  438. package/dist/esm/{config-B2jDqnc2.js → config-DRqODcfp.js} +2 -2
  439. package/dist/esm/{debounce-aR8pwob-.js → debounce-B5AGeS26.js} +1 -1
  440. package/dist/esm/{index-CgECHQfr.js → index-vqQJVJal.js} +1 -1
  441. package/dist/esm/index.js +6 -6
  442. package/dist/esm/loader.js +387 -48
  443. package/dist/esm/realtimekit-ui.js +1 -1
  444. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  445. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  446. package/dist/esm/rtk-ai_3.entry.js +2 -2
  447. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  448. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  449. package/dist/esm/rtk-audio-visualizer_3.entry.js +2 -2
  450. package/dist/esm/rtk-avatar_26.entry.js +9 -9
  451. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  452. package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
  453. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  454. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  455. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  456. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  457. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  458. package/dist/esm/rtk-chat-message.entry.js +2 -2
  459. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  460. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  461. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  462. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  463. package/dist/esm/rtk-clock.entry.js +2 -2
  464. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  465. package/dist/esm/rtk-controlbar.entry.js +2 -2
  466. package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
  467. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  468. package/dist/esm/rtk-debugger.entry.js +2 -2
  469. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  470. package/dist/esm/rtk-dialog.entry.js +2 -2
  471. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  472. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  473. package/dist/esm/rtk-file-message_3.entry.js +6 -6
  474. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  475. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  476. package/dist/esm/rtk-grid.entry.js +2 -2
  477. package/dist/esm/rtk-header.entry.js +2 -2
  478. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  479. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  480. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  481. package/dist/esm/rtk-leave-button.entry.js +2 -2
  482. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  483. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  484. package/dist/esm/rtk-logo.entry.js +2 -2
  485. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  486. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  487. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  488. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  489. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  490. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  491. package/dist/esm/rtk-name-tag.entry.js +2 -2
  492. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  493. package/dist/esm/rtk-notification.entry.js +4 -4
  494. package/dist/esm/rtk-notifications.entry.js +26 -4
  495. package/dist/esm/rtk-participant-count.entry.js +2 -2
  496. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  497. package/dist/esm/rtk-participant_2.entry.js +5 -5
  498. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  499. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  500. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  501. package/dist/esm/rtk-participants.entry.js +3 -3
  502. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  503. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  504. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  505. package/dist/esm/rtk-poll_2.entry.js +2 -2
  506. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  507. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  508. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  509. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  510. package/dist/esm/rtk-screenshare-view.entry.js +347 -34
  511. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  512. package/dist/esm/rtk-settings-toggle.entry.js +3 -3
  513. package/dist/esm/rtk-settings.entry.js +2 -2
  514. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  515. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  516. package/dist/esm/rtk-sidebar.entry.js +2 -2
  517. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  518. package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
  519. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  520. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  521. package/dist/esm/rtk-stage.entry.js +3 -3
  522. package/dist/esm/rtk-switch.entry.js +3 -3
  523. package/dist/esm/rtk-transcript.entry.js +3 -3
  524. package/dist/esm/rtk-transcripts.entry.js +2 -2
  525. package/dist/esm/rtk-ui-provider.entry.js +2 -2
  526. package/dist/esm/rtk-waiting-screen.entry.js +3 -3
  527. package/dist/esm/{ui-kit-metadata-DBkOnyOI.js → ui-kit-metadata-CIMhjc7J.js} +2 -2
  528. package/dist/esm/{ui-store-25wIB_YH.js → ui-store-GPnCYQx5.js} +4 -0
  529. package/dist/realtimekit-ui/index.esm.js +1 -1
  530. package/dist/realtimekit-ui/{p-a6b6f977.entry.js → p-0558ad3d.entry.js} +1 -1
  531. package/dist/realtimekit-ui/{p-2eb73b5f.entry.js → p-06dfb82f.entry.js} +1 -1
  532. package/dist/realtimekit-ui/{p-cdf80add.entry.js → p-0760dc9f.entry.js} +1 -1
  533. package/dist/realtimekit-ui/{p-f202a199.entry.js → p-0a9509ea.entry.js} +1 -1
  534. package/dist/realtimekit-ui/{p-00ae47eb.entry.js → p-0e89ddbe.entry.js} +1 -1
  535. package/dist/realtimekit-ui/{p-64b7ca52.entry.js → p-11d7c342.entry.js} +1 -1
  536. package/dist/realtimekit-ui/{p-22cd2a40.entry.js → p-151eb58e.entry.js} +1 -1
  537. package/dist/realtimekit-ui/p-1ff5cfd7.entry.js +1 -0
  538. package/dist/realtimekit-ui/{p-63413c07.entry.js → p-1ffa8cca.entry.js} +1 -1
  539. package/dist/realtimekit-ui/{p-d7b10d53.entry.js → p-226a8500.entry.js} +1 -1
  540. package/dist/realtimekit-ui/{p-1eac1ada.entry.js → p-25550cf9.entry.js} +1 -1
  541. package/dist/realtimekit-ui/{p-5ea44aa5.entry.js → p-266ca900.entry.js} +1 -1
  542. package/dist/realtimekit-ui/{p-dcced1f6.entry.js → p-352f5966.entry.js} +1 -1
  543. package/dist/realtimekit-ui/{p-94a286d0.entry.js → p-37feaeaf.entry.js} +1 -1
  544. package/dist/realtimekit-ui/{p-69e11a90.entry.js → p-39915b72.entry.js} +1 -1
  545. package/dist/realtimekit-ui/{p-aa1bcc8d.entry.js → p-3ade5cae.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-d91222ea.entry.js → p-3bb06c62.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-4d59e280.entry.js → p-3c813199.entry.js} +1 -1
  548. package/dist/realtimekit-ui/p-3d663797.entry.js +1 -0
  549. package/dist/realtimekit-ui/{p-828ecefa.entry.js → p-41bc3d1f.entry.js} +1 -1
  550. package/dist/realtimekit-ui/{p-a732dd55.entry.js → p-43c99dd3.entry.js} +1 -1
  551. package/dist/realtimekit-ui/p-452d0941.entry.js +1 -0
  552. package/dist/realtimekit-ui/p-577d3d6c.entry.js +1 -0
  553. package/dist/realtimekit-ui/{p-96b81823.entry.js → p-5a0a0b08.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-b783a853.entry.js → p-5a2c4639.entry.js} +1 -1
  555. package/dist/realtimekit-ui/{p-df5b5a98.entry.js → p-5bbaaee6.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-fbde8aee.entry.js → p-6747ca25.entry.js} +1 -1
  557. package/dist/realtimekit-ui/{p-b29b686b.entry.js → p-6b0a4780.entry.js} +1 -1
  558. package/dist/realtimekit-ui/{p-2f380c20.entry.js → p-6d87671d.entry.js} +1 -1
  559. package/dist/realtimekit-ui/{p-a5afae52.entry.js → p-6e07513b.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-7878ab30.entry.js → p-700e62e5.entry.js} +1 -1
  561. package/dist/realtimekit-ui/p-70a4d8e8.entry.js +1 -0
  562. package/dist/realtimekit-ui/{p-cfa03301.entry.js → p-7275df7a.entry.js} +1 -1
  563. package/dist/realtimekit-ui/{p-39a410f5.entry.js → p-727ff3ca.entry.js} +1 -1
  564. package/dist/realtimekit-ui/{p-c35040dc.entry.js → p-7407e5fb.entry.js} +1 -1
  565. package/dist/realtimekit-ui/{p-3d95065e.entry.js → p-76bea9ba.entry.js} +1 -1
  566. package/dist/realtimekit-ui/p-7955b7c2.entry.js +1 -0
  567. package/dist/realtimekit-ui/{p-a478656f.entry.js → p-7c511cf6.entry.js} +1 -1
  568. package/dist/realtimekit-ui/{p-6a985345.entry.js → p-7dc40b64.entry.js} +1 -1
  569. package/dist/realtimekit-ui/{p-60f90e32.entry.js → p-831a4a72.entry.js} +1 -1
  570. package/dist/realtimekit-ui/{p-c7f7f0ee.entry.js → p-848260b5.entry.js} +1 -1
  571. package/dist/realtimekit-ui/{p-da857425.entry.js → p-8662827c.entry.js} +1 -1
  572. package/dist/realtimekit-ui/{p-73f2a2db.entry.js → p-8751b85c.entry.js} +1 -1
  573. package/dist/realtimekit-ui/p-8dbac5e8.entry.js +1 -0
  574. package/dist/realtimekit-ui/{p-8a481d43.entry.js → p-8e588d5b.entry.js} +1 -1
  575. package/dist/realtimekit-ui/{p-0ce5b00f.entry.js → p-9b8c79ab.entry.js} +1 -1
  576. package/dist/realtimekit-ui/{p-x7gw0EVy.js → p-B8OtSZCI.js} +1 -1
  577. package/dist/realtimekit-ui/{p-B3SWd1rN.js → p-CkEIiUAw.js} +1 -1
  578. package/dist/realtimekit-ui/p-DITWlMXR.js +1 -0
  579. package/dist/realtimekit-ui/{p-CGOvNX5H.js → p-Dk8hCkEY.js} +1 -1
  580. package/dist/realtimekit-ui/{p-DgbGa7ou.js → p-DkW8b_It.js} +1 -1
  581. package/dist/realtimekit-ui/{p-6bca148a.entry.js → p-a25790f7.entry.js} +1 -1
  582. package/dist/realtimekit-ui/{p-82a226df.entry.js → p-a634bf29.entry.js} +1 -1
  583. package/dist/realtimekit-ui/{p-590350ae.entry.js → p-aaad0c85.entry.js} +1 -1
  584. package/dist/realtimekit-ui/{p-95818179.entry.js → p-b40651e7.entry.js} +1 -1
  585. package/dist/realtimekit-ui/{p-3ab9b329.entry.js → p-b42581e5.entry.js} +1 -1
  586. package/dist/realtimekit-ui/{p-4b2ce9e5.entry.js → p-ba1b67a4.entry.js} +1 -1
  587. package/dist/realtimekit-ui/{p-3a0eaf1e.entry.js → p-c25ef602.entry.js} +1 -1
  588. package/dist/realtimekit-ui/{p-69ee90c7.entry.js → p-c620f917.entry.js} +1 -1
  589. package/dist/realtimekit-ui/{p-7d7409e5.entry.js → p-c7916a62.entry.js} +1 -1
  590. package/dist/realtimekit-ui/{p-69445dc5.entry.js → p-c7bd4da5.entry.js} +1 -1
  591. package/dist/realtimekit-ui/{p-8206b22d.entry.js → p-cb58b187.entry.js} +1 -1
  592. package/dist/realtimekit-ui/{p-7711649a.entry.js → p-cc198be3.entry.js} +1 -1
  593. package/dist/realtimekit-ui/{p-21119a4d.entry.js → p-cc509d39.entry.js} +1 -1
  594. package/dist/realtimekit-ui/{p-bef64365.entry.js → p-cea57cb7.entry.js} +1 -1
  595. package/dist/realtimekit-ui/{p-465c4010.entry.js → p-cfd6260a.entry.js} +1 -1
  596. package/dist/realtimekit-ui/{p-cc9228ee.entry.js → p-d0fe5d91.entry.js} +1 -1
  597. package/dist/realtimekit-ui/{p-b56fe105.entry.js → p-d3bfc744.entry.js} +1 -1
  598. package/dist/realtimekit-ui/{p-a1febe2c.entry.js → p-d3d39178.entry.js} +1 -1
  599. package/dist/realtimekit-ui/{p-18607b9a.entry.js → p-d3d70e76.entry.js} +1 -1
  600. package/dist/realtimekit-ui/{p-6568c9be.entry.js → p-d52833d6.entry.js} +1 -1
  601. package/dist/realtimekit-ui/{p-8dc6db09.entry.js → p-d797e61a.entry.js} +1 -1
  602. package/dist/realtimekit-ui/{p-2999cb8d.entry.js → p-d85eea5e.entry.js} +1 -1
  603. package/dist/realtimekit-ui/{p-32079fea.entry.js → p-da137b88.entry.js} +1 -1
  604. package/dist/realtimekit-ui/{p-13a913a9.entry.js → p-db426f29.entry.js} +1 -1
  605. package/dist/realtimekit-ui/p-dc302f4a.entry.js +1 -0
  606. package/dist/realtimekit-ui/{p-c8cad0a6.entry.js → p-de8820d1.entry.js} +1 -1
  607. package/dist/realtimekit-ui/{p-64f46d1e.entry.js → p-df7a6471.entry.js} +1 -1
  608. package/dist/realtimekit-ui/{p-60e672f3.entry.js → p-dfce1619.entry.js} +1 -1
  609. package/dist/realtimekit-ui/{p-0df18cd8.entry.js → p-e155abc4.entry.js} +1 -1
  610. package/dist/realtimekit-ui/{p-cf9e2497.entry.js → p-e1e2aa29.entry.js} +1 -1
  611. package/dist/realtimekit-ui/{p-467cb881.entry.js → p-e2131b56.entry.js} +1 -1
  612. package/dist/realtimekit-ui/{p-70672349.entry.js → p-e59aa67d.entry.js} +1 -1
  613. package/dist/realtimekit-ui/p-e7e918c5.entry.js +1 -0
  614. package/dist/realtimekit-ui/{p-54c71e62.entry.js → p-e9d6b2fc.entry.js} +1 -1
  615. package/dist/realtimekit-ui/{p-e54dbacd.entry.js → p-f8bd6ef6.entry.js} +1 -1
  616. package/dist/realtimekit-ui/{p-9675893b.entry.js → p-f9e1d361.entry.js} +1 -1
  617. package/dist/realtimekit-ui/p-fde9e0ea.entry.js +1 -0
  618. package/dist/realtimekit-ui/{p-Dj-6QheV.js → p-im1XlbcC.js} +1 -1
  619. package/dist/realtimekit-ui/{p-CRQsZMW5.js → p-wx9iq4MT.js} +1 -1
  620. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  621. package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +31 -7
  622. package/dist/types/components.d.ts +20 -13
  623. package/dist/types/lib/lang/default-language.d.ts +4 -0
  624. package/package.json +1 -1
  625. package/dist/components/p--EktoJd3.js +0 -1
  626. package/dist/components/p-B5Ikq3LV.js +0 -1
  627. package/dist/components/p-aXMUeMjU.js +0 -1
  628. package/dist/realtimekit-ui/p-1ff01d5f.entry.js +0 -1
  629. package/dist/realtimekit-ui/p-20588357.entry.js +0 -1
  630. package/dist/realtimekit-ui/p-341159c7.entry.js +0 -1
  631. package/dist/realtimekit-ui/p-72b2fe54.entry.js +0 -1
  632. package/dist/realtimekit-ui/p-77648ee7.entry.js +0 -1
  633. package/dist/realtimekit-ui/p-9c53a0b7.entry.js +0 -1
  634. package/dist/realtimekit-ui/p-C8tHk7bV.js +0 -1
  635. package/dist/realtimekit-ui/p-a05269d4.entry.js +0 -1
  636. package/dist/realtimekit-ui/p-b415ff27.entry.js +0 -1
  637. package/dist/realtimekit-ui/p-c1efb757.entry.js +0 -1
  638. package/dist/realtimekit-ui/p-df0fe032.entry.js +0 -1
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-BjG7yuwj.js";const j=o,p=s;export{j as RtkFileMessage,p as defineCustomElement}
1
+ import{R as o,d as p}from"./p-BpMexaGX.js";const s=o,a=p;export{s as RtkFileMessage,a as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-BNjHUNwU.js";const p=o,r=s;export{p as RtkFilePickerButton,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-BMEVA63X.js";const p=o,r=s;export{p as RtkFilePickerButton,r as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-DAq4FN_d.js";const p=o,r=s;export{p as RtkFullscreenToggle,r as defineCustomElement}
1
+ import{R as s,d as o}from"./p-C27_nsxU.js";const p=s,r=o;export{p as RtkFullscreenToggle,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as r,h as i,d as a,t as s}from"./p-BBHQOrFK.js";import{e as o,i as e}from"./p-aXMUeMjU.js";import{S as n}from"./p-ByMjaTnP.js";import{d as c}from"./p-t72veIFj.js";import{d as h}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as p}from"./p-DHSRRtn3.js";var l=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 g=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="rounded",this.iconPack=o,this.t=e(),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=c((()=>{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=c((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onParticipantLeave=c((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onStateStatusUpdate=c((()=>{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?i(a,null,i("rtk-button",{class:"prev",variant:"secondary",kind:"icon",disabled:0===this.pageCount,onClick:this.prevPage,"aria-label":this.t("page.prev")},i("rtk-icon",{icon:this.iconPack.chevron_left})),"grid"!==this.variant&&i("div",{class:"center"},i("span",{class:"page"},0===this.pageCount?i("rtk-tooltip",{label:this.t("layout.auto")},i("rtk-button",{kind:"icon",class:"auto"},i("rtk-icon",{icon:this.iconPack.wand}))):this.page),0!==this.pageCount&&[i("span",{class:"slash"},"/"),i("span",{class:"pages"},this.pageCount)]),"grid"===this.variant&&this.pageCount>0&&i("div",{class:"dots"},[...Array(this.pageCount)].map(((t,r)=>i("div",{key:"dot-"+r,class:{dot:!0,active:r+1===this.page}})))),i("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")},i("rtk-icon",{icon:this.iconPack.chevron_right,tabIndex:-1,"aria-hidden":!0}))):i(a,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}],size:[{sizeChanged:0}]}}static get style(){return":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}"}},[1,"rtk-grid-pagination",{meeting:[16],states:[16],size:[513],variant:[513],iconPack:[16],t:[16],page:[32],pageCount:[32],activeCount:[32],activeComputedCount:[32],showPagination:[32]},void 0,{meeting:[{meetingChanged:0}],size:[{sizeChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-grid-pagination","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-grid-pagination":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-button":customElements.get(s(t))||h();break;case"rtk-icon":customElements.get(s(t))||d();break;case"rtk-tooltip":customElements.get(s(t))||p()}}))}l([n()],g.prototype,"meeting",void 0),l([n()],g.prototype,"states",void 0),l([n()],g.prototype,"iconPack",void 0),l([n()],g.prototype,"t",void 0),u();const b=g,k=u;export{b as RtkGridPagination,k as defineCustomElement}
1
+ import{p as t,H as r,h as i,d as s,t as a}from"./p-BBHQOrFK.js";import{e as o,i as e}from"./p-CtoKGHXg.js";import{S as n}from"./p-16s5ZSAZ.js";import{d as c}from"./p-t72veIFj.js";import{d as h}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as p}from"./p-DHSRRtn3.js";var g=function(t,r,i,s){var a,o=arguments.length,e=o<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,i,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(e=(o<3?a(e):o>3?a(r,i,e):a(r,i))||e);return o>3&&e&&Object.defineProperty(r,i,e),e};const l=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="rounded",this.iconPack=o,this.t=e(),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=c((()=>{var t;const{self:r,participants:i}=this.meeting,{mobile:s,desktop:a}=null===(t=r.config)||void 0===t?void 0:t.maxVideoStreams,o="sm"===this.size?s:a,e=i.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus)).length;this.showPagination=!(e<o)}),50),this.onParticipantJoin=c((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onParticipantLeave=c((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onStateStatusUpdate=c((()=>{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?i(s,null,i("rtk-button",{class:"prev",variant:"secondary",kind:"icon",disabled:0===this.pageCount,onClick:this.prevPage,"aria-label":this.t("page.prev")},i("rtk-icon",{icon:this.iconPack.chevron_left})),"grid"!==this.variant&&i("div",{class:"center"},i("span",{class:"page"},0===this.pageCount?i("rtk-tooltip",{label:this.t("layout.auto")},i("rtk-button",{kind:"icon",class:"auto"},i("rtk-icon",{icon:this.iconPack.wand}))):this.page),0!==this.pageCount&&[i("span",{class:"slash"},"/"),i("span",{class:"pages"},this.pageCount)]),"grid"===this.variant&&this.pageCount>0&&i("div",{class:"dots"},[...Array(this.pageCount)].map(((t,r)=>i("div",{key:"dot-"+r,class:{dot:!0,active:r+1===this.page}})))),i("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")},i("rtk-icon",{icon:this.iconPack.chevron_right,tabIndex:-1,"aria-hidden":!0}))):i(s,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}],size:[{sizeChanged:0}]}}static get style(){return":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}"}},[1,"rtk-grid-pagination",{meeting:[16],states:[16],size:[513],variant:[513],iconPack:[16],t:[16],page:[32],pageCount:[32],activeCount:[32],activeComputedCount:[32],showPagination:[32]},void 0,{meeting:[{meetingChanged:0}],size:[{sizeChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-grid-pagination","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-grid-pagination":customElements.get(a(t))||customElements.define(a(t),l);break;case"rtk-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||d();break;case"rtk-tooltip":customElements.get(a(t))||p()}}))}g([n()],l.prototype,"meeting",void 0),g([n()],l.prototype,"states",void 0),g([n()],l.prototype,"iconPack",void 0),g([n()],l.prototype,"t",void 0),u();const b=l,k=u;export{b as RtkGridPagination,k as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,c as s,h as e,d as r,t as a}from"./p-BBHQOrFK.js";import{c as n,e as o,i as h}from"./p-aXMUeMjU.js";import{d as p}from"./p-t72veIFj.js";import{R as c}from"./p-CBJjerDR.js";import{a as d}from"./p-C0vp-Q7v.js";import{S as l}from"./p-ByMjaTnP.js";import{d as g}from"./p-CmmyVCoN.js";import{d as m}from"./p-D6vw6bT2.js";import{d as v}from"./p-BC__OeWi.js";import{d as u}from"./p-DAq4FN_d.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as k}from"./p-CjOKLEdP.js";import{d as x}from"./p-D9cHynev.js";import{d as b}from"./p-Bc2jtNZw.js";import{d as S}from"./p-uxGiMP6W.js";var y=function(t,i,s,e){var r,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(i,s,n):r(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const C=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=n(),this.iconPack=o,this.t=h(),this.gridSize=g,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{this.meeting&&this.updateActiveParticipants()},this.refreshParticipants=p((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=d(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(!t)return;this.refreshParticipants.cancel(),this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:r}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==r||r.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.refreshParticipants),e.active.removeListener("participantJoined",this.refreshParticipants),e.active.removeListener("participantsUpdate",this.refreshParticipants),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,r,a;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:n,plugins:o,stage:h}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...n.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...n.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=n.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==o?void 0:o.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||"ALLOWED"===p.canProduceAudio||"ALLOWED"===p.canProduceVideo||"ALLOWED"===p.canProduceScreenshare,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==h||h.addListener("stageStatusUpdate",this.stageStatusListener),null==o||o.all.addListener("stateUpdate",this.onPluginStateUpdate),n.addListener("viewModeChanged",this.onViewModeChanged),n.active.addListener("participantLeft",this.refreshParticipants),null===(r=null==n?void 0:n.joined)||void 0===r||r.on("stageStatusUpdate",this.peerStageStatusListener),n.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),n.active.addListener("participantJoined",this.refreshParticipants),n.active.addListener("participantsUpdate",this.refreshParticipants),n.pinned.addListener("participantJoined",this.onParticipantPinned),n.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(a=t.stage)||void 0===a?void 0:a.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!this.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),this.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!this.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),this.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!this.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),this.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),...!["ACTIVE_GRID","MANUAL"].includes(s.viewMode)||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){var t,i,s,a;const n={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};if(this.invalidRoomStates.includes(this.roomState))return e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),e("h3",null,this.t("disconnected")),e("p",null,this.t("disconnected.description"))));if("disconnected"===this.roomState){const n=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.mediaState;if("connected"!==(null===(s=null==n?void 0:n.send)||void 0===s?void 0:s.state)||"connected"!==(null===(a=null==n?void 0:n.recv)||void 0===a?void 0:a.state))return e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),e("h3",null,this.t("offline")),e("p",null,this.t("offline.description"))))}return"failed"===this.roomState?e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),e("h3",null,this.t("failed")),e("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?e(r,null,e("rtk-livestream-player",{meeting:this.meeting,size:this.size}),e("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),e("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?e(r,null,e("div",{class:"webinar-stage"},e("div",{class:"center"},this.canCurrentPeerHost&&e("div",{class:"ctr",part:"container"},e("p",{class:"message",part:"message"},this.t("stage.empty_host")),e("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&e("div",{class:"ctr",part:"container"},e("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):e(r,null,e(c,{element:"rtk-grid",defaults:n,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),e("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),e("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t}))}static get watchers(){return{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}"}},[1,"rtk-grid",{layout:[513],aspectRatio:[513,"aspect-ratio"],meeting:[16],gap:[514],size:[513],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16],overrides:[8],participants:[32],pinnedParticipants:[32],screenShareParticipants:[32],plugins:[32],emptyStage:[32],showLiveStreamPlayer:[32],canCurrentPeerHost:[32],pipSupported:[32],pipEnabled:[32],hidden:[32],roomState:[32]},void 0,{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}]);function j(){"undefined"!=typeof customElements&&["rtk-grid","rtk-button","rtk-controlbar-button","rtk-fullscreen-toggle","rtk-icon","rtk-livestream-indicator","rtk-livestream-player","rtk-spinner","rtk-viewer-count"].forEach((t=>{switch(t){case"rtk-grid":customElements.get(a(t))||customElements.define(a(t),C);break;case"rtk-button":customElements.get(a(t))||m();break;case"rtk-controlbar-button":customElements.get(a(t))||v();break;case"rtk-fullscreen-toggle":customElements.get(a(t))||u();break;case"rtk-icon":customElements.get(a(t))||f();break;case"rtk-livestream-indicator":customElements.get(a(t))||k();break;case"rtk-livestream-player":customElements.get(a(t))||x();break;case"rtk-spinner":customElements.get(a(t))||b();break;case"rtk-viewer-count":customElements.get(a(t))||S()}}))}y([l()],C.prototype,"meeting",void 0),y([l()],C.prototype,"states",void 0),y([l()],C.prototype,"config",void 0),y([l()],C.prototype,"iconPack",void 0),y([l()],C.prototype,"t",void 0),j();const w=C,P=j;export{w as RtkGrid,P as defineCustomElement}
1
+ import{p as t,H as i,c as s,h as e,d as r,t as a}from"./p-BBHQOrFK.js";import{c as n,e as o,i as h}from"./p-CtoKGHXg.js";import{d as p}from"./p-t72veIFj.js";import{R as c}from"./p-CBJjerDR.js";import{a as l}from"./p-C0vp-Q7v.js";import{S as d}from"./p-16s5ZSAZ.js";import{d as g}from"./p-CmmyVCoN.js";import{d as m}from"./p-D6vw6bT2.js";import{d as v}from"./p-D00_ZaOw.js";import{d as u}from"./p-C27_nsxU.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as k}from"./p-IIcKCSrk.js";import{d as x}from"./p-CkAYE3S8.js";import{d as b}from"./p-DeQvmRpj.js";import{d as S}from"./p-CjnaOcqP.js";var y=function(t,i,s,e){var r,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(i,s,n):r(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const C=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=n(),this.iconPack=o,this.t=h(),this.gridSize=g,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{this.meeting&&this.updateActiveParticipants()},this.refreshParticipants=p((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=l(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(!t)return;this.refreshParticipants.cancel(),this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:r}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==r||r.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.refreshParticipants),e.active.removeListener("participantJoined",this.refreshParticipants),e.active.removeListener("participantsUpdate",this.refreshParticipants),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,r,a;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:n,plugins:o,stage:h}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...n.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...n.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=n.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==o?void 0:o.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||"ALLOWED"===p.canProduceAudio||"ALLOWED"===p.canProduceVideo||"ALLOWED"===p.canProduceScreenshare,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==h||h.addListener("stageStatusUpdate",this.stageStatusListener),null==o||o.all.addListener("stateUpdate",this.onPluginStateUpdate),n.addListener("viewModeChanged",this.onViewModeChanged),n.active.addListener("participantLeft",this.refreshParticipants),null===(r=null==n?void 0:n.joined)||void 0===r||r.on("stageStatusUpdate",this.peerStageStatusListener),n.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),n.active.addListener("participantJoined",this.refreshParticipants),n.active.addListener("participantsUpdate",this.refreshParticipants),n.pinned.addListener("participantJoined",this.onParticipantPinned),n.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(a=t.stage)||void 0===a?void 0:a.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!this.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),this.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!this.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),this.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!this.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),this.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),...!["ACTIVE_GRID","MANUAL"].includes(s.viewMode)||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){var t,i,s,a;const n={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};if(this.invalidRoomStates.includes(this.roomState))return e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),e("h3",null,this.t("disconnected")),e("p",null,this.t("disconnected.description"))));if("disconnected"===this.roomState){const n=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.mediaState;if("connected"!==(null===(s=null==n?void 0:n.send)||void 0===s?void 0:s.state)||"connected"!==(null===(a=null==n?void 0:n.recv)||void 0===a?void 0:a.state))return e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),e("h3",null,this.t("offline")),e("p",null,this.t("offline.description"))))}return"failed"===this.roomState?e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),e("h3",null,this.t("failed")),e("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?e(r,null,e("rtk-livestream-player",{meeting:this.meeting,size:this.size}),e("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),e("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?e(r,null,e("div",{class:"webinar-stage"},e("div",{class:"center"},this.canCurrentPeerHost&&e("div",{class:"ctr",part:"container"},e("p",{class:"message",part:"message"},this.t("stage.empty_host")),e("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&e("div",{class:"ctr",part:"container"},e("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):e(r,null,e(c,{element:"rtk-grid",defaults:n,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),e("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),e("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t}))}static get watchers(){return{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}"}},[1,"rtk-grid",{layout:[513],aspectRatio:[513,"aspect-ratio"],meeting:[16],gap:[514],size:[513],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16],overrides:[8],participants:[32],pinnedParticipants:[32],screenShareParticipants:[32],plugins:[32],emptyStage:[32],showLiveStreamPlayer:[32],canCurrentPeerHost:[32],pipSupported:[32],pipEnabled:[32],hidden:[32],roomState:[32]},void 0,{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}]);function w(){"undefined"!=typeof customElements&&["rtk-grid","rtk-button","rtk-controlbar-button","rtk-fullscreen-toggle","rtk-icon","rtk-livestream-indicator","rtk-livestream-player","rtk-spinner","rtk-viewer-count"].forEach((t=>{switch(t){case"rtk-grid":customElements.get(a(t))||customElements.define(a(t),C);break;case"rtk-button":customElements.get(a(t))||m();break;case"rtk-controlbar-button":customElements.get(a(t))||v();break;case"rtk-fullscreen-toggle":customElements.get(a(t))||u();break;case"rtk-icon":customElements.get(a(t))||f();break;case"rtk-livestream-indicator":customElements.get(a(t))||k();break;case"rtk-livestream-player":customElements.get(a(t))||x();break;case"rtk-spinner":customElements.get(a(t))||b();break;case"rtk-viewer-count":customElements.get(a(t))||S()}}))}y([d()],C.prototype,"meeting",void 0),y([d()],C.prototype,"states",void 0),y([d()],C.prototype,"config",void 0),y([d()],C.prototype,"iconPack",void 0),y([d()],C.prototype,"t",void 0),w();const j=C,P=w;export{j as RtkGrid,P as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as a,d as i,t as s}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as n,e as r,i as o}from"./p-aXMUeMjU.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{R as c}from"./p-CBJjerDR.js";import{S as d}from"./p-ByMjaTnP.js";var p=function(t,e,a,i){var s,n=arguments.length,r=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,a,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(r=(n<3?s(r):n>3?s(e,a,r):s(e,a))||r);return n>3&&r&&Object.defineProperty(e,a,r),r};const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="solid",this.disableRender=!1,this.config=n(),this.iconPack=r,this.t=o()}render(){return a(i,{key:"a323f95dac8cde8fdb77b1ecb0950402b7d418bb"},!this.disableRender&&a(c,{key:"a7beb145a76f2f879af3f54c9ec08317865b17d2",element:"rtk-header",defaults:{meeting:this.meeting,config:this.config,states:this.states,t:this.t,iconPack:this.iconPack,size:this.size},onlyChildren:!0}),a("slot",{key:"5bee25d9949611736d9c772e438314655ab8ae58"}))}static get style(){return":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:var(--rtk-space-12, 48px);align-items:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host{display:none !important}}@media only screen and (max-height: 480px) and (orientation: landscape){:host{display:none !important}}"}},[257,"rtk-header",{variant:[513],disableRender:[4,"disable-render"],meeting:[16],config:[16],states:[16],iconPack:[16],t:[16],size:[513]}]);function f(){"undefined"!=typeof customElements&&["rtk-header"].forEach((t=>{"rtk-header"===t&&(customElements.get(s(t))||customElements.define(s(t),l))}))}p([d()],l.prototype,"meeting",void 0),p([d()],l.prototype,"config",void 0),p([d()],l.prototype,"states",void 0),p([d()],l.prototype,"iconPack",void 0),p([d()],l.prototype,"t",void 0),f();const m=l,h=f;export{m as RtkHeader,h as defineCustomElement}
1
+ import{p as t,H as e,h as a,d as i,t as s}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as r,e as n,i as o}from"./p-CtoKGHXg.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{R as c}from"./p-CBJjerDR.js";import{S as d}from"./p-16s5ZSAZ.js";var p=function(t,e,a,i){var s,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,a,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(n=(r<3?s(n):r>3?s(e,a,n):s(e,a))||n);return r>3&&n&&Object.defineProperty(e,a,n),n};const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="solid",this.disableRender=!1,this.config=r(),this.iconPack=n,this.t=o()}render(){return a(i,{key:"a323f95dac8cde8fdb77b1ecb0950402b7d418bb"},!this.disableRender&&a(c,{key:"a7beb145a76f2f879af3f54c9ec08317865b17d2",element:"rtk-header",defaults:{meeting:this.meeting,config:this.config,states:this.states,t:this.t,iconPack:this.iconPack,size:this.size},onlyChildren:!0}),a("slot",{key:"5bee25d9949611736d9c772e438314655ab8ae58"}))}static get style(){return":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:var(--rtk-space-12, 48px);align-items:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host{display:none !important}}@media only screen and (max-height: 480px) and (orientation: landscape){:host{display:none !important}}"}},[257,"rtk-header",{variant:[513],disableRender:[4,"disable-render"],meeting:[16],config:[16],states:[16],iconPack:[16],t:[16],size:[513]}]);function f(){"undefined"!=typeof customElements&&["rtk-header"].forEach((t=>{"rtk-header"===t&&(customElements.get(s(t))||customElements.define(s(t),l))}))}p([d()],l.prototype,"meeting",void 0),p([d()],l.prototype,"config",void 0),p([d()],l.prototype,"states",void 0),p([d()],l.prototype,"iconPack",void 0),p([d()],l.prototype,"t",void 0),f();const m=l,h=f;export{m as RtkHeader,h as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as r,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as i,e as n,i as s}from"./p-aXMUeMjU.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as c}from"./p-ByMjaTnP.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-CHSH0L_g.js";import{d as p}from"./p-Bc2jtNZw.js";var g=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};const k=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=i(),this.iconPack=n,this.t=s(),this.socketStateUpdate=({state:t})=>{var e;this.connectionState=t,"connected"===t&&((null===(e=this.states)||void 0===e?void 0:e.preJoinError)||(this.preJoinError=void 0))}}connectedCallback(){this.meetingChanged(this.meeting,void 0),this.statesChanged(this.states)}disconnectedCallback(){var t,e;null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e||e.removeListener("socketConnectionUpdate",this.socketStateUpdate)}meetingChanged(t,e){var r,o,a,i;null===(r=null==e?void 0:e.meta)||void 0===r||r.removeListener("socketConnectionUpdate",this.socketStateUpdate),t&&(this.connectionState=null===(a=null===(o=t.meta)||void 0===o?void 0:o.socketState)||void 0===a?void 0:a.state,null===(i=t.meta)||void 0===i||i.addListener("socketConnectionUpdate",this.socketStateUpdate))}statesChanged(t){this.preJoinError=null==t?void 0:t.preJoinError}render(){var t,e;const a=null===(t=this.preJoinError)||void 0===t?void 0:t.message,i=null===(e=this.preJoinError)||void 0===e?void 0:e.code,n=!!this.connectionState&&"connected"!==this.connectionState&&!a,s=a||this.t("failed"===this.connectionState?"network.lost_extended":"network.lost");return r(o,{key:"5fbe382c783b15c48e8eeed8bed062e6a80bffca"},r("slot",{key:"45e242986aad838894c2f27292f163d62367398c"},r("div",{key:"7d67aec81786055ece1ab723628a8d574497a89a",class:"ctr",part:"container"},r("rtk-logo",{key:"4619a800a8a28678d7872a0c246a92d1a08ec359",meeting:this.meeting,config:this.config,t:this.t,part:"logo"}),a||n?r("div",{class:"error-state"},r("div",{class:"no-network-badge",part:"network-badge",role:"alert"},r("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected,part:"network-badge-icon"}),s),this.meeting&&a&&r("a",{class:"troubleshoot-link",href:"https://test.realtime.cloudflare.com?authToken="+this.meeting.__internals__.authToken,target:"_blank",rel:"noopener noreferrer"},this.t("network.troubleshoot")),i&&r("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",i)):r("rtk-spinner",{"aria-label":"Idle, waiting for meeting data",part:"spinner",iconPack:this.iconPack}))))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}.error-state{display:flex;width:100%;flex-direction:column;align-items:center}.troubleshoot-link{margin-top:var(--rtk-space-1, 4px);font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:2px}.troubleshoot-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.error-code{margin-top:var(--rtk-space-1, 4px);font-size:10px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}rtk-spinner{height:var(--rtk-space-12, 48px);width:var(--rtk-space-12, 48px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}"}},[257,"rtk-idle-screen",{meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],preJoinError:[32],connectionState:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-idle-screen","rtk-icon","rtk-logo","rtk-spinner"].forEach((t=>{switch(t){case"rtk-idle-screen":customElements.get(a(t))||customElements.define(a(t),k);break;case"rtk-icon":customElements.get(a(t))||l();break;case"rtk-logo":customElements.get(a(t))||d();break;case"rtk-spinner":customElements.get(a(t))||p()}}))}g([c()],k.prototype,"meeting",void 0),g([c()],k.prototype,"states",void 0),g([c()],k.prototype,"config",void 0),g([c()],k.prototype,"iconPack",void 0),g([c()],k.prototype,"t",void 0),v();const h=k,m=v;export{h as RtkIdleScreen,m as defineCustomElement}
1
+ import{p as t,H as e,h as r,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as i,e as n,i as s}from"./p-CtoKGHXg.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as c}from"./p-16s5ZSAZ.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-CX0Xm7nC.js";import{d as p}from"./p-DeQvmRpj.js";var g=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};const k=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=i(),this.iconPack=n,this.t=s(),this.socketStateUpdate=({state:t})=>{var e;this.connectionState=t,"connected"===t&&((null===(e=this.states)||void 0===e?void 0:e.preJoinError)||(this.preJoinError=void 0))}}connectedCallback(){this.meetingChanged(this.meeting,void 0),this.statesChanged(this.states)}disconnectedCallback(){var t,e;null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e||e.removeListener("socketConnectionUpdate",this.socketStateUpdate)}meetingChanged(t,e){var r,o,a,i;null===(r=null==e?void 0:e.meta)||void 0===r||r.removeListener("socketConnectionUpdate",this.socketStateUpdate),t&&(this.connectionState=null===(a=null===(o=t.meta)||void 0===o?void 0:o.socketState)||void 0===a?void 0:a.state,null===(i=t.meta)||void 0===i||i.addListener("socketConnectionUpdate",this.socketStateUpdate))}statesChanged(t){this.preJoinError=null==t?void 0:t.preJoinError}render(){var t,e;const a=null===(t=this.preJoinError)||void 0===t?void 0:t.message,i=null===(e=this.preJoinError)||void 0===e?void 0:e.code,n=!!this.connectionState&&"connected"!==this.connectionState&&!a,s=a||this.t("failed"===this.connectionState?"network.lost_extended":"network.lost");return r(o,{key:"5fbe382c783b15c48e8eeed8bed062e6a80bffca"},r("slot",{key:"45e242986aad838894c2f27292f163d62367398c"},r("div",{key:"7d67aec81786055ece1ab723628a8d574497a89a",class:"ctr",part:"container"},r("rtk-logo",{key:"4619a800a8a28678d7872a0c246a92d1a08ec359",meeting:this.meeting,config:this.config,t:this.t,part:"logo"}),a||n?r("div",{class:"error-state"},r("div",{class:"no-network-badge",part:"network-badge",role:"alert"},r("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected,part:"network-badge-icon"}),s),this.meeting&&a&&r("a",{class:"troubleshoot-link",href:"https://test.realtime.cloudflare.com?authToken="+this.meeting.__internals__.authToken,target:"_blank",rel:"noopener noreferrer"},this.t("network.troubleshoot")),i&&r("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",i)):r("rtk-spinner",{"aria-label":"Idle, waiting for meeting data",part:"spinner",iconPack:this.iconPack}))))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}.error-state{display:flex;width:100%;flex-direction:column;align-items:center}.troubleshoot-link{margin-top:var(--rtk-space-1, 4px);font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:2px}.troubleshoot-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.error-code{margin-top:var(--rtk-space-1, 4px);font-size:10px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}rtk-spinner{height:var(--rtk-space-12, 48px);width:var(--rtk-space-12, 48px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}"}},[257,"rtk-idle-screen",{meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],preJoinError:[32],connectionState:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-idle-screen","rtk-icon","rtk-logo","rtk-spinner"].forEach((t=>{switch(t){case"rtk-idle-screen":customElements.get(a(t))||customElements.define(a(t),k);break;case"rtk-icon":customElements.get(a(t))||l();break;case"rtk-logo":customElements.get(a(t))||d();break;case"rtk-spinner":customElements.get(a(t))||p()}}))}g([c()],k.prototype,"meeting",void 0),g([c()],k.prototype,"states",void 0),g([c()],k.prototype,"config",void 0),g([c()],k.prototype,"iconPack",void 0),g([c()],k.prototype,"t",void 0),v();const h=k,m=v;export{h as RtkIdleScreen,m as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-Be6GRqFL.js";const p=o,r=s;export{p as RtkImageMessageView,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-DGf0eDeq.js";const e=o,p=s;export{e as RtkImageMessageView,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-Dc5xkFI9.js";const p=o,r=s;export{p as RtkImageMessage,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-DR4HIK_J.js";const p=o,r=s;export{p as RtkImageMessage,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as e,H as t,c as r,h as a,d as o,t as c}from"./p-BBHQOrFK.js";import{i as s,e as i}from"./p-aXMUeMjU.js";import{d as n}from"./p-DDaHXyCC.js";import{S as d}from"./p-ByMjaTnP.js";import{f as l,s as b}from"./p-CJsXePY3.js";import{d as f}from"./p-D6vw6bT2.js";import{d as k}from"./p-BYIBbfJ8.js";var p=function(e,t,r,a){var o,c=arguments.length,s=c<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,a);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(s=(c<3?o(s):c>3?o(t,r,s):o(t,r))||s);return c>3&&s&&Object.defineProperty(t,r,s),s};const m=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.close=r(this,"close",7),this.t=s(),this.iconPack=i,this.keypressListener=e=>{"Escape"===e.key&&this.close.emit()},this.handleOutsideClick=()=>this.close.emit()}connectedCallback(){document.addEventListener("keydown",this.keypressListener),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("keydown",this.keypressListener),document.removeEventListener("click",this.handleOutsideClick)}render(){return a(o,{key:"09122e4d61355092a9c82bc337ea002a6c2acd58",class:"scrollbar",onClick:e=>e.stopPropagation()},a("div",{key:"2c6c3f705abf067d866e02b81c4b3d610f09fede",class:"header"},a("div",{key:"66cd4c200a2e8704acdf75d8830c94ac2abdc6be",class:"shared-by-user"},this.t("chat.img.shared_by")," ",a("span",{key:"3b4a866b673f35a454e7115fdc5c915d68966b1d",class:"displayName"},l(b(this.image.displayName)))),a("div",{key:"29e0e95e3e3d3b36917745a8f0a47beb9b5e3f02",class:"actions"},a("rtk-button",{key:"5cd7383e265a02c8b57a0f712e9e445495498c32",onClick:()=>n(this.image.link,{fallbackName:"image"})},a("rtk-icon",{key:"b098e89f707cc4cf413a620319e0eb2fd10b729a",icon:this.iconPack.download,slot:"start"}),"Download"),a("rtk-button",{key:"2cd6b7c21f0357d3104618d96d853d8bd8fcc542",kind:"icon",variant:"secondary",onClick:()=>this.close.emit()},a("rtk-icon",{key:"891428595d7a61c5400dc884bf8e1a501009eed5",icon:this.iconPack.dismiss})))),a("div",{key:"6194a26ac1357b93776b1c77ff72d1502151d619",class:"image-ctr"},a("img",{key:"24f21e7fff100bea8e79d261f180a57dc14fa5f4",src:this.image.link})))}static get style(){return":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{width:1140px;max-width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:var(--rtk-space-6, 24px);padding-top:var(--rtk-space-5, 20px);overflow-y:auto;color:rgb(var(--rtk-colors-text-1000, 255 255 255));z-index:40;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.displayName{font-weight:700}.image-ctr{margin-top:var(--rtk-space-2, 8px);box-sizing:border-box;display:flex;justify-content:center;overflow:hidden}.actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}img{box-sizing:border-box;display:block;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.header{display:flex;align-items:center;justify-content:space-between;padding-bottom:var(--rtk-space-4, 16px)}.shared-by-user{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}:host([size='sm']) .header{flex-direction:column}:host([size='sm']) .header .actions{margin-top:var(--rtk-space-4, 16px)}"}},[1,"rtk-image-viewer",{image:[16],size:[513],t:[16],iconPack:[16]}]);function h(){"undefined"!=typeof customElements&&["rtk-image-viewer","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-image-viewer":customElements.get(c(e))||customElements.define(c(e),m);break;case"rtk-button":customElements.get(c(e))||f();break;case"rtk-icon":customElements.get(c(e))||k()}}))}p([d()],m.prototype,"t",void 0),p([d()],m.prototype,"iconPack",void 0),h();const u=m,g=h;export{u as RtkImageViewer,g as defineCustomElement}
1
+ import{p as e,H as t,c as r,h as a,d as o,t as c}from"./p-BBHQOrFK.js";import{i as s,e as i}from"./p-CtoKGHXg.js";import{d as n}from"./p-DDaHXyCC.js";import{S as d}from"./p-16s5ZSAZ.js";import{f as l,s as b}from"./p-CJsXePY3.js";import{d as f}from"./p-D6vw6bT2.js";import{d as k}from"./p-BYIBbfJ8.js";var p=function(e,t,r,a){var o,c=arguments.length,s=c<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,a);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(s=(c<3?o(s):c>3?o(t,r,s):o(t,r))||s);return c>3&&s&&Object.defineProperty(t,r,s),s};const m=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.close=r(this,"close",7),this.t=s(),this.iconPack=i,this.keypressListener=e=>{"Escape"===e.key&&this.close.emit()},this.handleOutsideClick=()=>this.close.emit()}connectedCallback(){document.addEventListener("keydown",this.keypressListener),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("keydown",this.keypressListener),document.removeEventListener("click",this.handleOutsideClick)}render(){return a(o,{key:"09122e4d61355092a9c82bc337ea002a6c2acd58",class:"scrollbar",onClick:e=>e.stopPropagation()},a("div",{key:"2c6c3f705abf067d866e02b81c4b3d610f09fede",class:"header"},a("div",{key:"66cd4c200a2e8704acdf75d8830c94ac2abdc6be",class:"shared-by-user"},this.t("chat.img.shared_by")," ",a("span",{key:"3b4a866b673f35a454e7115fdc5c915d68966b1d",class:"displayName"},l(b(this.image.displayName)))),a("div",{key:"29e0e95e3e3d3b36917745a8f0a47beb9b5e3f02",class:"actions"},a("rtk-button",{key:"5cd7383e265a02c8b57a0f712e9e445495498c32",onClick:()=>n(this.image.link,{fallbackName:"image"})},a("rtk-icon",{key:"b098e89f707cc4cf413a620319e0eb2fd10b729a",icon:this.iconPack.download,slot:"start"}),"Download"),a("rtk-button",{key:"2cd6b7c21f0357d3104618d96d853d8bd8fcc542",kind:"icon",variant:"secondary",onClick:()=>this.close.emit()},a("rtk-icon",{key:"891428595d7a61c5400dc884bf8e1a501009eed5",icon:this.iconPack.dismiss})))),a("div",{key:"6194a26ac1357b93776b1c77ff72d1502151d619",class:"image-ctr"},a("img",{key:"24f21e7fff100bea8e79d261f180a57dc14fa5f4",src:this.image.link})))}static get style(){return":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{width:1140px;max-width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:var(--rtk-space-6, 24px);padding-top:var(--rtk-space-5, 20px);overflow-y:auto;color:rgb(var(--rtk-colors-text-1000, 255 255 255));z-index:40;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.displayName{font-weight:700}.image-ctr{margin-top:var(--rtk-space-2, 8px);box-sizing:border-box;display:flex;justify-content:center;overflow:hidden}.actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}img{box-sizing:border-box;display:block;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.header{display:flex;align-items:center;justify-content:space-between;padding-bottom:var(--rtk-space-4, 16px)}.shared-by-user{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}:host([size='sm']) .header{flex-direction:column}:host([size='sm']) .header .actions{margin-top:var(--rtk-space-4, 16px)}"}},[1,"rtk-image-viewer",{image:[16],size:[513],t:[16],iconPack:[16]}]);function h(){"undefined"!=typeof customElements&&["rtk-image-viewer","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-image-viewer":customElements.get(c(e))||customElements.define(c(e),m);break;case"rtk-button":customElements.get(c(e))||f();break;case"rtk-icon":customElements.get(c(e))||k()}}))}p([d()],m.prototype,"t",void 0),p([d()],m.prototype,"iconPack",void 0),h();const g=m,u=h;export{g as RtkImageViewer,u as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as o,h as r,d as e,t as a}from"./p-BBHQOrFK.js";import{S as i}from"./p-ByMjaTnP.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as s}from"./p-aXMUeMjU.js";import"./p-Bs5Z4Y29.js";import{d as c}from"./p-BYIBbfJ8.js";const p=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=s}render(){return r(e,{key:"ff8e44d0644f3a81e71ec3595f109c396effd80e"},r("div",{key:"9b07fcd50ec2050f65008ad447b42fe0a2431fba",class:"tooltip-container"},r("rtk-icon",{key:"09393761a1ee443f54d08034c451397adf05c0a2",icon:this.iconPack.info,size:"sm"}),r("div",{key:"edcc65636e3888864a4f619b34929a494a748b43",class:"tooltip"},r("slot",{key:"298db1c52802862d8d1da4a3b9cfc33e3695163d",name:"tootlip-text"}))))}static get style(){return":host{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer}.tooltip-container{position:relative;display:flex;flex-direction:row;align-items:center}.tooltip-container rtk-icon{cursor:pointer;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.tooltip-container rtk-icon:hover+.tooltip{display:flex !important}.tooltip{position:absolute;margin-left:var(--rtk-space-2, 8px);display:none !important;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));z-index:50;display:flex;min-width:var(--rtk-space-60, 240px);flex-direction:column;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);left:14px}"}},[257,"rtk-information-tooltip",{iconPack:[16]}]);function n(){"undefined"!=typeof customElements&&["rtk-information-tooltip","rtk-icon"].forEach((t=>{switch(t){case"rtk-information-tooltip":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-icon":customElements.get(a(t))||c()}}))}(function(t,o,r,e){var a,i=arguments.length,s=i<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,r,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(o,r,s):a(o,r))||s);i>3&&s&&Object.defineProperty(o,r,s)})([i()],p.prototype,"iconPack",void 0),n();const l=p,d=n;export{l as RtkInformationTooltip,d as defineCustomElement}
1
+ import{p as t,H as o,h as r,d as e,t as a}from"./p-BBHQOrFK.js";import{S as i}from"./p-16s5ZSAZ.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as s}from"./p-CtoKGHXg.js";import"./p-Bs5Z4Y29.js";import{d as c}from"./p-BYIBbfJ8.js";const p=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=s}render(){return r(e,{key:"ff8e44d0644f3a81e71ec3595f109c396effd80e"},r("div",{key:"9b07fcd50ec2050f65008ad447b42fe0a2431fba",class:"tooltip-container"},r("rtk-icon",{key:"09393761a1ee443f54d08034c451397adf05c0a2",icon:this.iconPack.info,size:"sm"}),r("div",{key:"edcc65636e3888864a4f619b34929a494a748b43",class:"tooltip"},r("slot",{key:"298db1c52802862d8d1da4a3b9cfc33e3695163d",name:"tootlip-text"}))))}static get style(){return":host{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer}.tooltip-container{position:relative;display:flex;flex-direction:row;align-items:center}.tooltip-container rtk-icon{cursor:pointer;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.tooltip-container rtk-icon:hover+.tooltip{display:flex !important}.tooltip{position:absolute;margin-left:var(--rtk-space-2, 8px);display:none !important;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));z-index:50;display:flex;min-width:var(--rtk-space-60, 240px);flex-direction:column;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);left:14px}"}},[257,"rtk-information-tooltip",{iconPack:[16]}]);function n(){"undefined"!=typeof customElements&&["rtk-information-tooltip","rtk-icon"].forEach((t=>{switch(t){case"rtk-information-tooltip":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-icon":customElements.get(a(t))||c()}}))}(function(t,o,r,e){var a,i=arguments.length,s=i<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,r,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(o,r,s):a(o,r))||s);i>3&&s&&Object.defineProperty(o,r,s)})([i()],p.prototype,"iconPack",void 0),n();const l=p,d=n;export{l as RtkInformationTooltip,d as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-BVRIm4Vt.js";const t=o,m=s;export{t as RtkJoinStage,m as defineCustomElement}
1
+ import{R as o,d as s}from"./p-CjAIMy9F.js";const p=o,r=s;export{p as RtkJoinStage,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,c as s,h as a,d as o,t as r}from"./p-BBHQOrFK.js";import{e as n,i}from"./p-aXMUeMjU.js";import{S as c}from"./p-ByMjaTnP.js";import{d as l}from"./p-BC__OeWi.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as m}from"./p-Bc2jtNZw.js";var p=function(t,e,s,a){var o,r=arguments.length,n=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,a);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=i(),this.leave=()=>{this.stateUpdate.emit({activeLeaveConfirmation:!0})}}render(){const t=this.t("leave");return a(o,{key:"b81ffe328736f1df741c1ef1f88a128771b5366e",label:t},a("rtk-controlbar-button",{key:"0674e4975571a6cbccca1b1252c33405ab8c1cb4",size:this.size,iconPack:this.iconPack,class:"leave red-icon",onClick:this.leave,icon:this.iconPack.call_end,label:t,variant:this.variant,part:"controlbar-button"}))}static get style(){return":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}"}},[1,"rtk-leave-button",{variant:[513],size:[513],iconPack:[16],t:[16]}]);function u(){"undefined"!=typeof customElements&&["rtk-leave-button","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-leave-button":customElements.get(r(t))||customElements.define(r(t),b);break;case"rtk-controlbar-button":customElements.get(r(t))||l();break;case"rtk-icon":customElements.get(r(t))||f();break;case"rtk-spinner":customElements.get(r(t))||m()}}))}p([c()],b.prototype,"iconPack",void 0),p([c()],b.prototype,"t",void 0),u();const k=b,h=u;export{k as RtkLeaveButton,h as defineCustomElement}
1
+ import{p as t,H as e,c as s,h as o,d as r,t as a}from"./p-BBHQOrFK.js";import{e as n,i}from"./p-CtoKGHXg.js";import{S as c}from"./p-16s5ZSAZ.js";import{d as l}from"./p-D00_ZaOw.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as m}from"./p-DeQvmRpj.js";var p=function(t,e,s,o){var r,a=arguments.length,n=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,o);else for(var i=t.length-1;i>=0;i--)(r=t[i])&&(n=(a<3?r(n):a>3?r(e,s,n):r(e,s))||n);return a>3&&n&&Object.defineProperty(e,s,n),n};const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=i(),this.leave=()=>{this.stateUpdate.emit({activeLeaveConfirmation:!0})}}render(){const t=this.t("leave");return o(r,{key:"b81ffe328736f1df741c1ef1f88a128771b5366e",label:t},o("rtk-controlbar-button",{key:"0674e4975571a6cbccca1b1252c33405ab8c1cb4",size:this.size,iconPack:this.iconPack,class:"leave red-icon",onClick:this.leave,icon:this.iconPack.call_end,label:t,variant:this.variant,part:"controlbar-button"}))}static get style(){return":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}"}},[1,"rtk-leave-button",{variant:[513],size:[513],iconPack:[16],t:[16]}]);function u(){"undefined"!=typeof customElements&&["rtk-leave-button","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-leave-button":customElements.get(a(t))||customElements.define(a(t),b);break;case"rtk-controlbar-button":customElements.get(a(t))||l();break;case"rtk-icon":customElements.get(a(t))||f();break;case"rtk-spinner":customElements.get(a(t))||m()}}))}p([c()],b.prototype,"iconPack",void 0),p([c()],b.prototype,"t",void 0),u();const k=b,h=u;export{k as RtkLeaveButton,h as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-g5NPAxAj.js";const p=o,r=s;export{p as RtkLeaveMeeting,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-De3mM3M-.js";const m=o,p=s;export{m as RtkLeaveMeeting,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-CjOKLEdP.js";const p=o,r=s;export{p as RtkLivestreamIndicator,r as defineCustomElement}
1
+ import{R as o,d as r}from"./p-IIcKCSrk.js";const s=o,p=r;export{s as RtkLivestreamIndicator,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-D9cHynev.js";const p=o,r=s;export{p as RtkLivestreamPlayer,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-CkAYE3S8.js";const p=o,r=s;export{p as RtkLivestreamPlayer,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,c as s,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{e as n,i as o}from"./p-aXMUeMjU.js";import{i as l}from"./p-C0vp-Q7v.js";import{S as c}from"./p-ByMjaTnP.js";import{d as h}from"./p-BC__OeWi.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as v}from"./p-Bc2jtNZw.js";var d=function(t,e,s,i){var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(e,s,n):r(e,s))||n);return a>3&&n&&Object.defineProperty(e,s,n),n};const u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=n,this.t=o(),this.livestreamState="IDLE",this.livestreamStateListener=t=>{this.livestreamState=t,"LIVESTREAMING"!==t&&"IDLE"!==t||this.stateUpdate.emit({activeMoreMenu:!1})},this.isLoading=()=>!this.meeting||"STARTING"===this.livestreamState||"STOPPING"===this.livestreamState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.clearListeners()}meetingChanged(t){var e,s;t&&(this.livestreamState=null===(e=this.meeting.livestream)||void 0===e?void 0:e.state,null===(s=this.meeting.livestream)||void 0===s||s.on("livestreamUpdate",this.livestreamStateListener))}async toggleLivestream(){var t,e;if("LIVESTREAMING"===this.livestreamState)try{await(null===(t=this.meeting.livestream)||void 0===t?void 0:t.stop())}catch(t){this.apiError.emit({trace:this.t("livestream.stop"),message:this.t("livestream.error.stop")})}else try{await(null===(e=this.meeting.livestream)||void 0===e?void 0:e.start())}catch(t){this.apiError.emit({trace:this.t("livestream.start"),message:this.t("livestream.error.start")})}}clearListeners(){var t;null===(t=this.meeting.livestream)||void 0===t||t.removeListener("livestreamUpdate",this.livestreamStateListener)}getLivestreamLabel(){switch(this.livestreamState){case"IDLE":return this.t("livestream.go_live");case"LIVESTREAMING":return this.t("livestream.end_live");case"WAITING_ON_MANUAL_INGESTION":return this.t("livestream.waiting_on_manual_ingestion");case"STARTING":return this.t("livestream.starting");case"STOPPING":return this.t("livestream.stopping");default:return this.t("livestream.error")}}getLivestreamIcon(){switch(this.livestreamState){case"IDLE":case"WAITING_ON_MANUAL_INGESTION":return this.iconPack.start_livestream;default:return this.iconPack.stop_livestream}}render(){return this.meeting?l(this.meeting)?i(r,null,i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,isLoading:this.isLoading(),class:{"active-livestream":"LIVESTREAMING"===this.livestreamState},onClick:()=>this.toggleLivestream(),icon:this.getLivestreamIcon(),disabled:this.isLoading(),label:this.t(this.getLivestreamLabel()),variant:this.variant})):i(r,{"data-hidden":!0}):null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-livestream-toggle",{variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],livestreamState:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["rtk-livestream-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-livestream-toggle":customElements.get(a(t))||customElements.define(a(t),u);break;case"rtk-controlbar-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||m();break;case"rtk-spinner":customElements.get(a(t))||v()}}))}d([c()],u.prototype,"meeting",void 0),d([c()],u.prototype,"iconPack",void 0),d([c()],u.prototype,"t",void 0),p();const g=u,f=p;export{g as RtkLivestreamToggle,f as defineCustomElement}
1
+ import{p as t,H as e,c as s,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{e as n,i as o}from"./p-CtoKGHXg.js";import{i as l}from"./p-C0vp-Q7v.js";import{S as c}from"./p-16s5ZSAZ.js";import{d as h}from"./p-D00_ZaOw.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as v}from"./p-DeQvmRpj.js";var d=function(t,e,s,i){var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(e,s,n):r(e,s))||n);return a>3&&n&&Object.defineProperty(e,s,n),n};const u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=n,this.t=o(),this.livestreamState="IDLE",this.livestreamStateListener=t=>{this.livestreamState=t,"LIVESTREAMING"!==t&&"IDLE"!==t||this.stateUpdate.emit({activeMoreMenu:!1})},this.isLoading=()=>!this.meeting||"STARTING"===this.livestreamState||"STOPPING"===this.livestreamState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.clearListeners()}meetingChanged(t){var e,s;t&&(this.livestreamState=null===(e=this.meeting.livestream)||void 0===e?void 0:e.state,null===(s=this.meeting.livestream)||void 0===s||s.on("livestreamUpdate",this.livestreamStateListener))}async toggleLivestream(){var t,e;if("LIVESTREAMING"===this.livestreamState)try{await(null===(t=this.meeting.livestream)||void 0===t?void 0:t.stop())}catch(t){this.apiError.emit({trace:this.t("livestream.stop"),message:this.t("livestream.error.stop")})}else try{await(null===(e=this.meeting.livestream)||void 0===e?void 0:e.start())}catch(t){this.apiError.emit({trace:this.t("livestream.start"),message:this.t("livestream.error.start")})}}clearListeners(){var t;null===(t=this.meeting.livestream)||void 0===t||t.removeListener("livestreamUpdate",this.livestreamStateListener)}getLivestreamLabel(){switch(this.livestreamState){case"IDLE":return this.t("livestream.go_live");case"LIVESTREAMING":return this.t("livestream.end_live");case"WAITING_ON_MANUAL_INGESTION":return this.t("livestream.waiting_on_manual_ingestion");case"STARTING":return this.t("livestream.starting");case"STOPPING":return this.t("livestream.stopping");default:return this.t("livestream.error")}}getLivestreamIcon(){switch(this.livestreamState){case"IDLE":case"WAITING_ON_MANUAL_INGESTION":return this.iconPack.start_livestream;default:return this.iconPack.stop_livestream}}render(){return this.meeting?l(this.meeting)?i(r,null,i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,isLoading:this.isLoading(),class:{"active-livestream":"LIVESTREAMING"===this.livestreamState},onClick:()=>this.toggleLivestream(),icon:this.getLivestreamIcon(),disabled:this.isLoading(),label:this.t(this.getLivestreamLabel()),variant:this.variant})):i(r,{"data-hidden":!0}):null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}"}},[1,"rtk-livestream-toggle",{variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],livestreamState:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["rtk-livestream-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-livestream-toggle":customElements.get(a(t))||customElements.define(a(t),u);break;case"rtk-controlbar-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||m();break;case"rtk-spinner":customElements.get(a(t))||v()}}))}d([c()],u.prototype,"meeting",void 0),d([c()],u.prototype,"iconPack",void 0),d([c()],u.prototype,"t",void 0),p();const g=u,f=p;export{g as RtkLivestreamToggle,f as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-CHSH0L_g.js";const p=o,r=s;export{p as RtkLogo,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-CX0Xm7nC.js";const m=o,p=s;export{m as RtkLogo,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,w as e,h as s,d as n,t as o}from"./p-BBHQOrFK.js";import{e as l,i as r}from"./p-aXMUeMjU.js";import{S as a}from"./p-ByMjaTnP.js";import{d}from"./p-D6vw6bT2.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as c}from"./p-DHSRRtn3.js";var v=function(t,i,e,s){var n,o=arguments.length,l=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(l=(o<3?n(l):o>3?n(i,e,l):n(i,e))||l);return o>3&&l&&Object.defineProperty(i,e,l),l};const u=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isSaving=!1,this.iconPack=l,this.t=r(),this.canEdit=!1,this.isEditing=!1,this.titleUpdateListener=({meetingTitle:t})=>{this.meetingTitle=t},this.updateCanEdit=()=>{var t,i,e,s,n,o,l,r;const a=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions;this.canEdit=(null===(n=null===(s=null===(e=this.meeting)||void 0===e?void 0:e.connectedMeetings)||void 0===s?void 0:s.parentMeeting)||void 0===n?void 0:n.id)&&(null===(l=null===(o=this.meeting)||void 0===o?void 0:o.connectedMeetings)||void 0===l?void 0:l.isActive)?!!(null===(r=null==a?void 0:a.connectedMeetings)||void 0===r?void 0:r.canAlterConnectedMeetings):!!(null==a?void 0:a.canEditMeetingTitle),this.canEdit||(this.isEditing=!1)},this.startEditing=()=>{this.draftTitle=this.meetingTitle,this.isEditing=!0,e((()=>{var t,i;null===(t=this.inputEl)||void 0===t||t.focus(),null===(i=this.inputEl)||void 0===i||i.select()}))},this.onTitleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.startEditing())},this.stopEditing=()=>{this.isEditing=!1,e((()=>{var t;return null===(t=this.titleEl)||void 0===t?void 0:t.focus()}))},this.save=async()=>{var t;if(this.isSaving)return;const i=null===(t=this.inputEl)||void 0===t?void 0:t.value.trim();if(i&&i!==this.meetingTitle){this.isSaving=!0;try{await this.meeting.meta.setMeetingTitle(i)}catch(t){this.meeting.__internals__.logger.error("rtkMeetingTitle::setMeetingTitle failed",{error:t})}finally{this.isSaving=!1}}this.stopEditing()},this.onKeyDown=t=>{"Enter"!==t.key||t.isComposing||this.save(),"Escape"===t.key&&this.stopEditing()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.removeListeners(this.meeting)}removeListeners(t){var i,e,s,n;null===(i=null==t?void 0:t.meta)||void 0===i||i.removeListener("meetingTitleUpdate",this.titleUpdateListener),null===(s=null===(e=null==t?void 0:t.self)||void 0===e?void 0:e.permissions)||void 0===s||s.removeListener("permissionsUpdate",this.updateCanEdit),null===(n=null==t?void 0:t.connectedMeetings)||void 0===n||n.removeListener("stateUpdate",this.updateCanEdit)}meetingChanged(t,i){var e,s,n,o,l;this.removeListeners(i),this.removeListeners(t),this.meetingTitle=null===(e=null==t?void 0:t.meta)||void 0===e?void 0:e.meetingTitle,this.isEditing=!1,this.updateCanEdit(),null===(s=null==t?void 0:t.meta)||void 0===s||s.addListener("meetingTitleUpdate",this.titleUpdateListener),null===(o=null===(n=null==t?void 0:t.self)||void 0===n?void 0:n.permissions)||void 0===o||o.addListener("permissionsUpdate",this.updateCanEdit),null===(l=null==t?void 0:t.connectedMeetings)||void 0===l||l.addListener("stateUpdate",this.updateCanEdit)}render(){const t=this.meetingTitle;if(null==t)return s(n,{"data-hidden":!0});if(this.isEditing)return s(n,{role:"banner","aria-label":t},s("input",{ref:t=>this.inputEl=t,value:this.draftTitle,"aria-label":this.t("meeting_title.edit"),onKeyDown:this.onKeyDown,part:"input"}),s("rtk-tooltip",{label:this.t("meeting_title.save")},s("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("meeting_title.save"),onClick:this.save},s("rtk-icon",{icon:this.iconPack.checkmark}))),s("rtk-tooltip",{label:this.t("cancel")},s("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("cancel"),onClick:this.stopEditing},s("rtk-icon",{icon:this.iconPack.dismiss}))));const i=this.canEdit&&{role:"button",tabIndex:0,"aria-label":this.t("meeting_title.edit"),onClick:this.startEditing,onKeyDown:this.onTitleKeyDown};return s(n,{role:"banner","aria-label":t},s("rtk-tooltip",{label:t,part:"tooltip"},s("div",Object.assign({class:"title",part:"title",ref:t=>this.titleEl=t},i),t)))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:16px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;align-items:center;gap:var(--rtk-space-1, 4px)}input{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-1, 4px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));-webkit-user-select:text;-moz-user-select:text;user-select:text;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;font-size:inherit}:host([data-hidden]){display:none}.title{min-width:var(--rtk-space-0, 0px);text-align:center;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.title[role='button']{cursor:pointer}:host([size='sm']){font-size:12px}"}},[1,"rtk-meeting-title",{meeting:[16],iconPack:[16],t:[16],meetingTitle:[32],canEdit:[32],isEditing:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["rtk-meeting-title","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-meeting-title":customElements.get(o(t))||customElements.define(o(t),u);break;case"rtk-button":customElements.get(o(t))||d();break;case"rtk-icon":customElements.get(o(t))||h();break;case"rtk-tooltip":customElements.get(o(t))||c()}}))}v([a()],u.prototype,"meeting",void 0),v([a()],u.prototype,"iconPack",void 0),v([a()],u.prototype,"t",void 0),p();const m=u,b=p;export{m as RtkMeetingTitle,b as defineCustomElement}
1
+ import{p as t,H as i,w as e,h as s,d as n,t as o}from"./p-BBHQOrFK.js";import{e as l,i as r}from"./p-CtoKGHXg.js";import{S as a}from"./p-16s5ZSAZ.js";import{d}from"./p-D6vw6bT2.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as c}from"./p-DHSRRtn3.js";var v=function(t,i,e,s){var n,o=arguments.length,l=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(l=(o<3?n(l):o>3?n(i,e,l):n(i,e))||l);return o>3&&l&&Object.defineProperty(i,e,l),l};const u=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isSaving=!1,this.iconPack=l,this.t=r(),this.canEdit=!1,this.isEditing=!1,this.titleUpdateListener=({meetingTitle:t})=>{this.meetingTitle=t},this.updateCanEdit=()=>{var t,i,e,s,n,o,l,r;const a=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions;this.canEdit=(null===(n=null===(s=null===(e=this.meeting)||void 0===e?void 0:e.connectedMeetings)||void 0===s?void 0:s.parentMeeting)||void 0===n?void 0:n.id)&&(null===(l=null===(o=this.meeting)||void 0===o?void 0:o.connectedMeetings)||void 0===l?void 0:l.isActive)?!!(null===(r=null==a?void 0:a.connectedMeetings)||void 0===r?void 0:r.canAlterConnectedMeetings):!!(null==a?void 0:a.canEditMeetingTitle),this.canEdit||(this.isEditing=!1)},this.startEditing=()=>{this.draftTitle=this.meetingTitle,this.isEditing=!0,e((()=>{var t,i;null===(t=this.inputEl)||void 0===t||t.focus(),null===(i=this.inputEl)||void 0===i||i.select()}))},this.onTitleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.startEditing())},this.stopEditing=()=>{this.isEditing=!1,e((()=>{var t;return null===(t=this.titleEl)||void 0===t?void 0:t.focus()}))},this.save=async()=>{var t;if(this.isSaving)return;const i=null===(t=this.inputEl)||void 0===t?void 0:t.value.trim();if(i&&i!==this.meetingTitle){this.isSaving=!0;try{await this.meeting.meta.setMeetingTitle(i)}catch(t){this.meeting.__internals__.logger.error("rtkMeetingTitle::setMeetingTitle failed",{error:t})}finally{this.isSaving=!1}}this.stopEditing()},this.onKeyDown=t=>{"Enter"!==t.key||t.isComposing||this.save(),"Escape"===t.key&&this.stopEditing()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.removeListeners(this.meeting)}removeListeners(t){var i,e,s,n;null===(i=null==t?void 0:t.meta)||void 0===i||i.removeListener("meetingTitleUpdate",this.titleUpdateListener),null===(s=null===(e=null==t?void 0:t.self)||void 0===e?void 0:e.permissions)||void 0===s||s.removeListener("permissionsUpdate",this.updateCanEdit),null===(n=null==t?void 0:t.connectedMeetings)||void 0===n||n.removeListener("stateUpdate",this.updateCanEdit)}meetingChanged(t,i){var e,s,n,o,l;this.removeListeners(i),this.removeListeners(t),this.meetingTitle=null===(e=null==t?void 0:t.meta)||void 0===e?void 0:e.meetingTitle,this.isEditing=!1,this.updateCanEdit(),null===(s=null==t?void 0:t.meta)||void 0===s||s.addListener("meetingTitleUpdate",this.titleUpdateListener),null===(o=null===(n=null==t?void 0:t.self)||void 0===n?void 0:n.permissions)||void 0===o||o.addListener("permissionsUpdate",this.updateCanEdit),null===(l=null==t?void 0:t.connectedMeetings)||void 0===l||l.addListener("stateUpdate",this.updateCanEdit)}render(){const t=this.meetingTitle;if(null==t)return s(n,{"data-hidden":!0});if(this.isEditing)return s(n,{role:"banner","aria-label":t},s("input",{ref:t=>this.inputEl=t,value:this.draftTitle,"aria-label":this.t("meeting_title.edit"),onKeyDown:this.onKeyDown,part:"input"}),s("rtk-tooltip",{label:this.t("meeting_title.save")},s("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("meeting_title.save"),onClick:this.save},s("rtk-icon",{icon:this.iconPack.checkmark}))),s("rtk-tooltip",{label:this.t("cancel")},s("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("cancel"),onClick:this.stopEditing},s("rtk-icon",{icon:this.iconPack.dismiss}))));const i=this.canEdit&&{role:"button",tabIndex:0,"aria-label":this.t("meeting_title.edit"),onClick:this.startEditing,onKeyDown:this.onTitleKeyDown};return s(n,{role:"banner","aria-label":t},s("rtk-tooltip",{label:t,part:"tooltip"},s("div",Object.assign({class:"title",part:"title",ref:t=>this.titleEl=t},i),t)))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:16px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;align-items:center;gap:var(--rtk-space-1, 4px)}input{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-1, 4px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));-webkit-user-select:text;-moz-user-select:text;user-select:text;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;font-size:inherit}:host([data-hidden]){display:none}.title{min-width:var(--rtk-space-0, 0px);text-align:center;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.title[role='button']{cursor:pointer}:host([size='sm']){font-size:12px}"}},[1,"rtk-meeting-title",{meeting:[16],iconPack:[16],t:[16],meetingTitle:[32],canEdit:[32],isEditing:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["rtk-meeting-title","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-meeting-title":customElements.get(o(t))||customElements.define(o(t),u);break;case"rtk-button":customElements.get(o(t))||d();break;case"rtk-icon":customElements.get(o(t))||h();break;case"rtk-tooltip":customElements.get(o(t))||c()}}))}v([a()],u.prototype,"meeting",void 0),v([a()],u.prototype,"iconPack",void 0),v([a()],u.prototype,"t",void 0),p();const m=u,b=p;export{m as RtkMeetingTitle,b as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as e,H as s,c as i,h as r}from"./p-BBHQOrFK.js";import{p as o,r as a,m as n}from"./p-36vx_Mui.js";import{u as m,i as h,c,e as d,f as p,b as k}from"./p-aXMUeMjU.js";import{R as l}from"./p-CBJjerDR.js";import"./p-Rq_6y0HI.js";import{g as u}from"./p-BeJhcBfy.js";import"./p-Bs5Z4Y29.js";import{i as g}from"./p-FdeAvICb.js";import{g as f}from"./p-Cj-LCS8F.js";import{g as v}from"./p-vBfDtD_u.js";import{d as b}from"./p-DAGCKEFc.js";import{d as j}from"./p-D6vw6bT2.js";import{d as w}from"./p-Bp8UGnBB.js";import{d as E}from"./p-BQMMBSP2.js";import{d as C}from"./p-IilUR0Z4.js";import{d as S}from"./p-Bjx68Nkv.js";import{d as x}from"./p-Dp2LhUKa.js";import{d as y}from"./p-B0Fo3cKf.js";import{d as B}from"./p-CXDRC8Nb.js";import{d as R}from"./p-CtPr1nvA.js";import{d as P}from"./p-0I1N5xHK.js";import{d as U}from"./p-BNjHUNwU.js";import{d as D}from"./p-BYIBbfJ8.js";import{d as I}from"./p-Be6GRqFL.js";import{d as M}from"./p-CcGN9NRd.js";import{d as J}from"./p--EktoJd3.js";import{d as L}from"./p-BjZJaxt1.js";import{d as N}from"./p-Ic4M6IZs.js";import{d as O}from"./p-kGPSVdob.js";import{d as q}from"./p-B2RoJ1tz.js";import{d as F}from"./p-Ds5j-VXZ.js";import{d as H}from"./p-Bc2jtNZw.js";import{d as z}from"./p-C7Rh2NRS.js";import{d as G}from"./p-GtIz3u0L.js";import{d as Z}from"./p-DHSRRtn3.js";const K=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.statesUpdate=i(this,"rtkStatesUpdate",7),this.providerId="provider-"+Math.floor(100*Math.random()),this.roomJoinedListener=()=>{this.updateStates({meeting:"joined",preJoinError:null})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{!["audio","video"].includes(t)||"DENIED"!==e&&"SYSTEM_DENIED"!==e||!0===(this.peerStore||m).state.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),this.leaveRoomTimer)},this.peerStore=null,this.loadConfigFromPreset=!1,this.applyDesignSystem=!1,this.mode="fixed",this.leaveOnUnmount=!1,this.t=h(),this.config=c(),this.gridLayout="row",this.iconPack=d,this.overrides=p,this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},(this.peerStore||m).state.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}connectedCallback(){var t;"undefined"!=typeof window&&(this.initErrorListener=t=>{const e=f(this.t,t.detail);e&&this.updateStates({preJoinError:e})},window.addEventListener("ClientError",this.initErrorListener)),this.leaveRoomTimer=1e4,this.loadConfigFromPreset=!0,this.applyDesignSystem=!0,this.setupStoreRequestListener(),this.setupStateUpdateListener(),this.meetingChanged(this.meeting),this.iconPackChanged(this.iconPack),this.tChanged(this.t),this.configChanged(this.config),this.overridesChanged(this.overrides),this.resizeObserver=new g((()=>this.handleResize())),this.resizeObserver.observe(this.host),this.applyDesignSystem&&null!=(null===(t=this.config)||void 0===t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||m).state.states.activeDebugger&&o(document.documentElement,this.config.designTokens)}disconnectedCallback(){var t;this.leaveOnUnmount&&(null===(t=this.meeting)||void 0===t||t.leave()),this.resizeObserver.disconnect(),window.removeEventListener("ClientError",this.initErrorListener),this.storeRequestListener&&(this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=null),this.stateUpdateListener&&(this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=null),this.meeting&&this.clearListeners(this.meeting)}setupStoreRequestListener(){this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=t=>{if(!this.peerStore)return;const e=new CustomEvent("rtkProvideStore",{detail:{store:this.peerStore,requestId:t.detail.requestId}});document.dispatchEvent(e),t.stopPropagation()},this.host.addEventListener("rtkRequestStore",this.storeRequestListener)}setupStateUpdateListener(){this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=t=>{this.host.contains(t.target)&&this.updateStates(t.detail)},this.host.addEventListener("rtkStateUpdate",this.stateUpdateListener)}clearListeners(t){t&&(t.self.removeListener("roomLeft",this.roomLeftListener),t.self.removeListener("roomJoined",this.roomJoinedListener),t.self.removeListener("waitlisted",this.waitlistedListener),t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}meetingChanged(t,e){var s,i;if(!t)return;a(t),t?(this.peerStore=k({meeting:t,config:this.config,iconPack:this.iconPack,t:this.t,providerId:this.providerId,overrides:n(Object.assign({},p),this.overrides)}),document.dispatchEvent(new CustomEvent("rtkPeerStoreReady",{detail:{peerId:t.self.id}}))):this.peerStore=null;const r=this.peerStore||m;if(this.updateStates({viewType:t.meta.viewType,activeCaptions:e?!!r.state.states.activeCaptions:!!t.self.permissions.transcriptionEnabled}),this.loadConfigFromPreset&&null!=t.self.config){const e=t.self.config,{config:i,data:o}=u(e,t);this.config=i,null==this.showSetupScreen&&(this.showSetupScreen=o.showSetupScreen),(null===(s=r.state.states.activeBreakoutRoomsManager)||void 0===s?void 0:s.destinationMeetingId)&&(this.showSetupScreen=!1)}this.applyDesignSystem&&null!=(null===(i=this.config)||void 0===i?void 0:i.designTokens)&&"undefined"!=typeof document&&!0!==r.state.states.activeDebugger&&o(document.documentElement,this.config.designTokens),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.join().then((()=>{this.updateStates({preJoinError:null})})).catch((t=>{const{message:e,code:s}=v(this.t,t);this.updateStates({preJoinError:{message:e,code:s}})})),window.removeEventListener("ClientError",this.initErrorListener)}iconPackChanged(t){this.peerStore&&(this.peerStore.state.iconPack=t)}tChanged(t){this.peerStore&&(this.peerStore.state.t=t)}configChanged(t){this.peerStore&&(this.peerStore.state.config=t),(null==t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||m).state.states.activeDebugger&&o(document.documentElement,t.designTokens)}overridesChanged(t){this.peerStore&&(this.peerStore.state.overrides=n(Object.assign({},p),t))}handleResize(){this.size=(t=>t>=1080?"lg":t>=768?"md":"sm")(this.host.clientWidth)}updateStates(t){const e=this.peerStore||m,s=Object.assign({},e.state.states);e.state.states=n(s,t),this.statesUpdate.emit(e.state.states);const i=new CustomEvent("rtkStatesUpdate",{detail:e.state.states,bubbles:!0,composed:!0});this.host.dispatchEvent(i)}render(){const t={meeting:this.meeting,size:this.size,states:(this.peerStore||m).state.states,config:this.config||c(),iconPack:this.iconPack,t:this.t};return"CHAT"===(this.peerStore||m).state.states.viewType?r("rtk-chat",Object.assign({},t)):r(l,{element:"rtk-meeting",defaults:t,asHost:!0,elementProps:{"rtk-grid":{layout:this.gridLayout}}})}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));overflow:hidden;position:fixed;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);height:100%;width:100%}:host([mode='fill']){position:relative}"}},[1,"rtk-meeting",{loadConfigFromPreset:[1028,"load-config-from-preset"],applyDesignSystem:[1028,"apply-design-system"],mode:[513],leaveOnUnmount:[4,"leave-on-unmount"],meeting:[16],showSetupScreen:[1028,"show-setup-screen"],t:[16],config:[1040],size:[1537],gridLayout:[1,"grid-layout"],iconPack:[16],overrides:[16]},void 0,{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}]);function T(){"undefined"!=typeof customElements&&["rtk-meeting","rtk-avatar","rtk-button","rtk-chat","rtk-chat-composer-view","rtk-chat-header","rtk-chat-messages-ui-paginated","rtk-chat-selector","rtk-draft-attachment-view","rtk-emoji-picker","rtk-emoji-picker-button","rtk-file-message-view","rtk-file-picker-button","rtk-icon","rtk-image-message-view","rtk-markdown-view","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-message-view","rtk-paginated-list","rtk-pinned-message-selector","rtk-spinner","rtk-text-composer-view","rtk-text-message-view","rtk-tooltip"].forEach((e=>{switch(e){case"rtk-meeting":customElements.get(t(e))||customElements.define(t(e),K);break;case"rtk-avatar":customElements.get(t(e))||b();break;case"rtk-button":customElements.get(t(e))||j();break;case"rtk-chat":customElements.get(t(e))||w();break;case"rtk-chat-composer-view":customElements.get(t(e))||E();break;case"rtk-chat-header":customElements.get(t(e))||C();break;case"rtk-chat-messages-ui-paginated":customElements.get(t(e))||S();break;case"rtk-chat-selector":customElements.get(t(e))||x();break;case"rtk-draft-attachment-view":customElements.get(t(e))||y();break;case"rtk-emoji-picker":customElements.get(t(e))||B();break;case"rtk-emoji-picker-button":customElements.get(t(e))||R();break;case"rtk-file-message-view":customElements.get(t(e))||P();break;case"rtk-file-picker-button":customElements.get(t(e))||U();break;case"rtk-icon":customElements.get(t(e))||D();break;case"rtk-image-message-view":customElements.get(t(e))||I();break;case"rtk-markdown-view":customElements.get(t(e))||M();break;case"rtk-menu":customElements.get(t(e))||J();break;case"rtk-menu-item":customElements.get(t(e))||L();break;case"rtk-menu-list":customElements.get(t(e))||N();break;case"rtk-message-view":customElements.get(t(e))||O();break;case"rtk-paginated-list":customElements.get(t(e))||q();break;case"rtk-pinned-message-selector":customElements.get(t(e))||F();break;case"rtk-spinner":customElements.get(t(e))||H();break;case"rtk-text-composer-view":customElements.get(t(e))||z();break;case"rtk-text-message-view":customElements.get(t(e))||G();break;case"rtk-tooltip":customElements.get(t(e))||Z()}}))}T();const A=K,_=T;export{A as RtkMeeting,_ as defineCustomElement}
1
+ import{t,p as e,H as s,c as i,h as r}from"./p-BBHQOrFK.js";import{p as o,r as a,m as n}from"./p-DU_5lopz.js";import{u as m,i as h,c,e as d,f as p,b as k}from"./p-CtoKGHXg.js";import{R as l}from"./p-CBJjerDR.js";import"./p-Rq_6y0HI.js";import{g as u}from"./p-cWoLKHJ3.js";import"./p-Bs5Z4Y29.js";import{i as g}from"./p-FdeAvICb.js";import{g as f}from"./p-Cj-LCS8F.js";import{g as v}from"./p-vBfDtD_u.js";import{d as b}from"./p-CudchGV-.js";import{d as j}from"./p-D6vw6bT2.js";import{d as w}from"./p-CddkXbJO.js";import{d as E}from"./p-wCbKvvTJ.js";import{d as C}from"./p-bf44p3D-.js";import{d as D}from"./p-B2HJVmyW.js";import{d as y}from"./p-CuXI1Bo9.js";import{d as S}from"./p-qzUtJdPs.js";import{d as x}from"./p-BDBQ3yNX.js";import{d as P}from"./p-DDXAdlei.js";import{d as B}from"./p-DQpLF7Tl.js";import{d as R}from"./p-BMEVA63X.js";import{d as J}from"./p-BYIBbfJ8.js";import{d as U}from"./p-DGf0eDeq.js";import{d as I}from"./p-CcGN9NRd.js";import{d as L}from"./p-BDZmvSZ5.js";import{d as M}from"./p-reX4rZOi.js";import{d as O}from"./p-H0SF5wed.js";import{d as H}from"./p-DxWuP9W-.js";import{d as q}from"./p-DYpMIlQ4.js";import{d as T}from"./p-DT1PR6Br.js";import{d as X}from"./p-DeQvmRpj.js";import{d as z}from"./p-D3hW0Kbk.js";import{d as F}from"./p-BeeuQPMZ.js";import{d as Q}from"./p-DHSRRtn3.js";const K=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.statesUpdate=i(this,"rtkStatesUpdate",7),this.providerId="provider-"+Math.floor(100*Math.random()),this.roomJoinedListener=()=>{this.updateStates({meeting:"joined",preJoinError:null})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{!["audio","video"].includes(t)||"DENIED"!==e&&"SYSTEM_DENIED"!==e||!0===(this.peerStore||m).state.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),this.leaveRoomTimer)},this.peerStore=null,this.loadConfigFromPreset=!1,this.applyDesignSystem=!1,this.mode="fixed",this.leaveOnUnmount=!1,this.t=h(),this.config=c(),this.gridLayout="row",this.iconPack=d,this.overrides=p,this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},(this.peerStore||m).state.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}connectedCallback(){var t;"undefined"!=typeof window&&(this.initErrorListener=t=>{const e=f(this.t,t.detail);e&&this.updateStates({preJoinError:e})},window.addEventListener("ClientError",this.initErrorListener)),this.leaveRoomTimer=1e4,this.loadConfigFromPreset=!0,this.applyDesignSystem=!0,this.setupStoreRequestListener(),this.setupStateUpdateListener(),this.meetingChanged(this.meeting),this.iconPackChanged(this.iconPack),this.tChanged(this.t),this.configChanged(this.config),this.overridesChanged(this.overrides),this.resizeObserver=new g((()=>this.handleResize())),this.resizeObserver.observe(this.host),this.applyDesignSystem&&null!=(null===(t=this.config)||void 0===t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||m).state.states.activeDebugger&&o(document.documentElement,this.config.designTokens)}disconnectedCallback(){var t;this.leaveOnUnmount&&(null===(t=this.meeting)||void 0===t||t.leave()),this.resizeObserver.disconnect(),window.removeEventListener("ClientError",this.initErrorListener),this.storeRequestListener&&(this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=null),this.stateUpdateListener&&(this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=null),this.meeting&&this.clearListeners(this.meeting)}setupStoreRequestListener(){this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=t=>{if(!this.peerStore)return;const e=new CustomEvent("rtkProvideStore",{detail:{store:this.peerStore,requestId:t.detail.requestId}});document.dispatchEvent(e),t.stopPropagation()},this.host.addEventListener("rtkRequestStore",this.storeRequestListener)}setupStateUpdateListener(){this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=t=>{this.host.contains(t.target)&&this.updateStates(t.detail)},this.host.addEventListener("rtkStateUpdate",this.stateUpdateListener)}clearListeners(t){t&&(t.self.removeListener("roomLeft",this.roomLeftListener),t.self.removeListener("roomJoined",this.roomJoinedListener),t.self.removeListener("waitlisted",this.waitlistedListener),t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}meetingChanged(t,e){var s,i;if(!t)return;a(t),t?(this.peerStore=k({meeting:t,config:this.config,iconPack:this.iconPack,t:this.t,providerId:this.providerId,overrides:n(Object.assign({},p),this.overrides)}),document.dispatchEvent(new CustomEvent("rtkPeerStoreReady",{detail:{peerId:t.self.id}}))):this.peerStore=null;const r=this.peerStore||m;if(this.updateStates({viewType:t.meta.viewType,activeCaptions:e?!!r.state.states.activeCaptions:!!t.self.permissions.transcriptionEnabled}),this.loadConfigFromPreset&&null!=t.self.config){const e=t.self.config,{config:i,data:o}=u(e,t);this.config=i,null==this.showSetupScreen&&(this.showSetupScreen=o.showSetupScreen),(null===(s=r.state.states.activeBreakoutRoomsManager)||void 0===s?void 0:s.destinationMeetingId)&&(this.showSetupScreen=!1)}this.applyDesignSystem&&null!=(null===(i=this.config)||void 0===i?void 0:i.designTokens)&&"undefined"!=typeof document&&!0!==r.state.states.activeDebugger&&o(document.documentElement,this.config.designTokens),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.join().then((()=>{this.updateStates({preJoinError:null})})).catch((t=>{const{message:e,code:s}=v(this.t,t);this.updateStates({preJoinError:{message:e,code:s}})})),window.removeEventListener("ClientError",this.initErrorListener)}iconPackChanged(t){this.peerStore&&(this.peerStore.state.iconPack=t)}tChanged(t){this.peerStore&&(this.peerStore.state.t=t)}configChanged(t){this.peerStore&&(this.peerStore.state.config=t),(null==t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||m).state.states.activeDebugger&&o(document.documentElement,t.designTokens)}overridesChanged(t){this.peerStore&&(this.peerStore.state.overrides=n(Object.assign({},p),t))}handleResize(){this.size=(t=>t>=1080?"lg":t>=768?"md":"sm")(this.host.clientWidth)}updateStates(t){const e=this.peerStore||m,s=Object.assign({},e.state.states);e.state.states=n(s,t),this.statesUpdate.emit(e.state.states);const i=new CustomEvent("rtkStatesUpdate",{detail:e.state.states,bubbles:!0,composed:!0});this.host.dispatchEvent(i)}render(){const t={meeting:this.meeting,size:this.size,states:(this.peerStore||m).state.states,config:this.config||c(),iconPack:this.iconPack,t:this.t};return"CHAT"===(this.peerStore||m).state.states.viewType?r("rtk-chat",Object.assign({},t)):r(l,{element:"rtk-meeting",defaults:t,asHost:!0,elementProps:{"rtk-grid":{layout:this.gridLayout}}})}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));overflow:hidden;position:fixed;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);height:100%;width:100%}:host([mode='fill']){position:relative}"}},[1,"rtk-meeting",{loadConfigFromPreset:[1028,"load-config-from-preset"],applyDesignSystem:[1028,"apply-design-system"],mode:[513],leaveOnUnmount:[4,"leave-on-unmount"],meeting:[16],showSetupScreen:[1028,"show-setup-screen"],t:[16],config:[1040],size:[1537],gridLayout:[1,"grid-layout"],iconPack:[16],overrides:[16]},void 0,{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}]);function N(){"undefined"!=typeof customElements&&["rtk-meeting","rtk-avatar","rtk-button","rtk-chat","rtk-chat-composer-view","rtk-chat-header","rtk-chat-messages-ui-paginated","rtk-chat-selector","rtk-draft-attachment-view","rtk-emoji-picker","rtk-emoji-picker-button","rtk-file-message-view","rtk-file-picker-button","rtk-icon","rtk-image-message-view","rtk-markdown-view","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-message-view","rtk-paginated-list","rtk-pinned-message-selector","rtk-spinner","rtk-text-composer-view","rtk-text-message-view","rtk-tooltip"].forEach((e=>{switch(e){case"rtk-meeting":customElements.get(t(e))||customElements.define(t(e),K);break;case"rtk-avatar":customElements.get(t(e))||b();break;case"rtk-button":customElements.get(t(e))||j();break;case"rtk-chat":customElements.get(t(e))||w();break;case"rtk-chat-composer-view":customElements.get(t(e))||E();break;case"rtk-chat-header":customElements.get(t(e))||C();break;case"rtk-chat-messages-ui-paginated":customElements.get(t(e))||D();break;case"rtk-chat-selector":customElements.get(t(e))||y();break;case"rtk-draft-attachment-view":customElements.get(t(e))||S();break;case"rtk-emoji-picker":customElements.get(t(e))||x();break;case"rtk-emoji-picker-button":customElements.get(t(e))||P();break;case"rtk-file-message-view":customElements.get(t(e))||B();break;case"rtk-file-picker-button":customElements.get(t(e))||R();break;case"rtk-icon":customElements.get(t(e))||J();break;case"rtk-image-message-view":customElements.get(t(e))||U();break;case"rtk-markdown-view":customElements.get(t(e))||I();break;case"rtk-menu":customElements.get(t(e))||L();break;case"rtk-menu-item":customElements.get(t(e))||M();break;case"rtk-menu-list":customElements.get(t(e))||O();break;case"rtk-message-view":customElements.get(t(e))||H();break;case"rtk-paginated-list":customElements.get(t(e))||q();break;case"rtk-pinned-message-selector":customElements.get(t(e))||T();break;case"rtk-spinner":customElements.get(t(e))||X();break;case"rtk-text-composer-view":customElements.get(t(e))||z();break;case"rtk-text-message-view":customElements.get(t(e))||F();break;case"rtk-tooltip":customElements.get(t(e))||Q()}}))}N();const W=K,Z=N;export{W as RtkMeeting,Z as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-BjZJaxt1.js";const t=o,a=s;export{t as RtkMenuItem,a as defineCustomElement}
1
+ import{R as r,d as o}from"./p-reX4rZOi.js";const s=r,p=o;export{s as RtkMenuItem,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as s,d as o}from"./p-Ic4M6IZs.js";const p=s,r=o;export{p as RtkMenuList,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-H0SF5wed.js";const p=o,r=s;export{p as RtkMenuList,r as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p--EktoJd3.js";const t=o,p=s;export{t as RtkMenu,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-BDZmvSZ5.js";const m=o,p=s;export{m as RtkMenu,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as s,w as i,h as e,t as r}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as h}from"./p-aXMUeMjU.js";import"./p-Bs5Z4Y29.js";import{S as a}from"./p-ByMjaTnP.js";import{d as o}from"./p-BYIBbfJ8.js";import{d as n}from"./p-Bc2jtNZw.js";import{d as c}from"./p-DLocSBO3.js";const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.visibleItemsCount=20,this.estimateItemSize=100,this.iconPack=h,this.isFetching=!1,this.autoScroll=!0,this.totalHeight=0,this.sizes=new Map,this.lastScrollTop=0,this.scrollToBottomRetries=0,this.elementObserver=(()=>{let t=null;const s=()=>t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((t=>{t.forEach((t=>{this.measureElement(t.target,t)}))})):null);return{disconnect:()=>{var t;return null===(t=s())||void 0===t?void 0:t.disconnect()},observe:t=>{var i;return null===(i=s())||void 0===i?void 0:i.observe(t,{box:"border-box"})},unobserve:t=>{var i;return null===(i=s())||void 0===i?void 0:i.unobserve(t)}}})(),this.measureElement=(t,s)=>{if(!t)return;const i=t.dataset.id;if(this.sizes.has(i))return void this.elementObserver.unobserve(t);if(s){const e=s.borderBoxSize[0];if(e&&e.blockSize>0)return this.saveItemSize(i,e.blockSize),void this.elementObserver.unobserve(t)}const e=t.getBoundingClientRect();e.height>0&&this.saveItemSize(i,e.height)},this.getVisibleItems=()=>this.messages.slice(this.range.start,this.range.end+1),this.updateVisibleItems=(t,s)=>{const i=this.messages.length;let e=t,r=s;i<=this.visibleItemsCount?(e=0,r=i-1):s-t<this.visibleItemsCount-1&&(e=this.range.end-this.visibleItemsCount+1),this.range.start!==e&&(this.range={start:e,end:r},this.totalHeight=this.getRangeSize(0,i))},this.getEstimatedItemSize=()=>this.estimateItemSize,this.getRangeSize=(t,s)=>{let i=0,e=0;for(let r=t;r<s;r++)e=this.sizes.get(this.messages[r].id),i+=e||this.getEstimatedItemSize();return i},this.getScrollTop=()=>this.$listRef?Math.ceil(this.$listRef.scrollTop):0,this.getClientHeight=()=>this.$listRef?Math.ceil(this.$listRef.clientHeight):0,this.getScrollHeight=()=>this.$listRef?Math.ceil(this.$listRef.scrollHeight):0,this.getItemsScrolled=()=>{const t=this.lastScrollTop;if(t<=0)return 0;let s=0,i=0,e=0,r=this.messages.length;for(;s<=r;){if(i=s+r>>>1,e=this.getRangeSize(0,i),e===t)return i;e<t?s=i+1:e>t&&(r=i-1)}return s>0?--s:0},this.getEndByStart=t=>Math.min(t+this.visibleItemsCount,this.messages.length-1),this.scrollToOffset=t=>{this.$listRef&&(this.$listRef.scrollTop=t)},this.scrollToIndex=t=>{if(t>=this.messages.length-1)this.scrollToBottom();else{const s=t<1?0:this.getRangeSize(0,t);this.scrollToOffset(s)}},this.scrollToBottom=()=>{this.$listEndRef&&i((()=>{this.$listEndRef.scrollIntoView(),this.getScrollHeight()-(this.getScrollTop()+this.getClientHeight())>0&&this.scrollToBottomRetries<10?setTimeout((()=>{this.scrollToBottom()}),1e3/60):(this.scrollToBottomRetries=0,this.autoScroll=!0)}))},this.handleScroll=async()=>{if(this.isFetching)return;const t=this.getScrollTop(),s=t<this.lastScrollTop||0===t?"UP":"DOWN";if(this.lastScrollTop=t,this.loadMore&&0===t&&"UP"===s&&!1===this.isFetching){this.isFetching=!0;const t=await this.loadMore(this.messages[0]);t&&t.length&&(this.messages=[...t,...this.messages]),this.isFetching=!1}"UP"===s?this.handleTop():"DOWN"===s&&this.handleBottom()},this.handleTop=()=>{const t=this.getItemsScrolled();if(t<=this.range.end-5&&(this.autoScroll=!1),t>this.range.start+5)return;const s=Math.max(this.range.start-5,0);this.updateVisibleItems(s,this.getEndByStart(s))},this.handleBottom=()=>{if(this.getItemsScrolled()<this.range.start+5)return;const t=this.range.start+5,s=this.getEndByStart(t);this.updateVisibleItems(s===this.messages.length-1?s-this.visibleItemsCount:t,s)},this.updateTotalHeight=c((()=>{this.totalHeight=this.getRangeSize(0,this.messages.length)}),1e3/30,{leading:!0}),this.rendererInternal=(t,s,i)=>{if(!t)return;if(t.dataset.id===s.id)return;const e=this.renderer(s,i);t.hasChildNodes&&(t.innerHTML=""),this.elementObserver.observe(t),t.dataset.id=s.id,t.appendChild(e)}}connectedCallback(){const t=this.messages.length-1;this.range={start:t-this.visibleItemsCount,end:t},this.updateVisibleItems(this.range.start,this.range.end),this.totalHeight=this.getRangeSize(0,t)}componentDidLoad(){this.autoScroll&&this.scrollToBottom()}messagesUpdated(t,s){if(t.length>s.length){const i=t.length-s.length;this.updateVisibleItems(i,this.getEndByStart(i)),this.scrollToIndex(this.range.start)}}saveItemSize(t,s){this.sizes.set(t,Math.round(s)),this.updateTotalHeight()}render(){return e("div",{key:"8da5ac7ee83f43da54ce1af023e178d206436b80",class:"scrollbar content-wrapper",ref:t=>this.$listRef=t,onScroll:this.handleScroll},e("div",{key:"3aeec25e25aeb2864b7ce0d68a08d58bb2b63cef",class:"scroller"},e("div",{key:"b65b2fb4471307f38c08480d268adfaafdb696fb",style:{height:this.totalHeight+"px"}}),e("div",{key:"08aa1dcf4740ce438b152527e8d60aff28704e8a",class:"smallest-dom-element",id:"list-end",ref:t=>this.$listEndRef=t})),e("div",{key:"48ba3788f83f2329174fb3ddd107eaf4da91699a",class:"content",style:{transform:`translateY(${this.getRangeSize(0,this.range.start)}px)`}},this.isFetching&&e("div",{key:"1a53b6b02899df6ce80c781b44fcd71802105fdf",class:"loader"},e("rtk-spinner",{key:"222bdf5ad19f45914f48c91afb65075e3fef277f",size:"md"})),this.getVisibleItems().map(((t,s)=>e("div",{key:t.id,ref:i=>this.rendererInternal(i,t,s)})))))}static get watchers(){return{messages:[{messagesUpdated:0}]}}static get style(){return":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)))}.loading{cursor:wait}.content-wrapper{height:100%;overflow-y:auto;position:relative;contain:strict}.scroller{width:1px;opacity:0}.content{position:absolute;top:0;width:100%}.smallest-dom-element{width:100%;height:2px;background:red}.loader{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;justify-content:center}"}},[0,"rtk-message-list-view",{messages:[16],renderer:[16],loadMore:[16],visibleItemsCount:[2,"visible-items-count"],estimateItemSize:[2,"estimate-item-size"],iconPack:[16],range:[32],isFetching:[32],autoScroll:[32],totalHeight:[32]},void 0,{messages:[{messagesUpdated:0}]}]);function d(){"undefined"!=typeof customElements&&["rtk-message-list-view","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-message-list-view":customElements.get(r(t))||customElements.define(r(t),l);break;case"rtk-icon":customElements.get(r(t))||o();break;case"rtk-spinner":customElements.get(r(t))||n()}}))}(function(t,s,i,e){var r,h=arguments.length,a=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(h<3?r(a):h>3?r(s,i,a):r(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([a()],l.prototype,"iconPack",void 0),d();const f=l,p=d;export{f as RtkMessageListView,p as defineCustomElement}
1
+ import{p as t,H as s,w as i,h as e,t as r}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as h}from"./p-CtoKGHXg.js";import"./p-Bs5Z4Y29.js";import{S as a}from"./p-16s5ZSAZ.js";import{d as o}from"./p-BYIBbfJ8.js";import{d as n}from"./p-DeQvmRpj.js";import{d as c}from"./p-DLocSBO3.js";const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.visibleItemsCount=20,this.estimateItemSize=100,this.iconPack=h,this.isFetching=!1,this.autoScroll=!0,this.totalHeight=0,this.sizes=new Map,this.lastScrollTop=0,this.scrollToBottomRetries=0,this.elementObserver=(()=>{let t=null;const s=()=>t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((t=>{t.forEach((t=>{this.measureElement(t.target,t)}))})):null);return{disconnect:()=>{var t;return null===(t=s())||void 0===t?void 0:t.disconnect()},observe:t=>{var i;return null===(i=s())||void 0===i?void 0:i.observe(t,{box:"border-box"})},unobserve:t=>{var i;return null===(i=s())||void 0===i?void 0:i.unobserve(t)}}})(),this.measureElement=(t,s)=>{if(!t)return;const i=t.dataset.id;if(this.sizes.has(i))return void this.elementObserver.unobserve(t);if(s){const e=s.borderBoxSize[0];if(e&&e.blockSize>0)return this.saveItemSize(i,e.blockSize),void this.elementObserver.unobserve(t)}const e=t.getBoundingClientRect();e.height>0&&this.saveItemSize(i,e.height)},this.getVisibleItems=()=>this.messages.slice(this.range.start,this.range.end+1),this.updateVisibleItems=(t,s)=>{const i=this.messages.length;let e=t,r=s;i<=this.visibleItemsCount?(e=0,r=i-1):s-t<this.visibleItemsCount-1&&(e=this.range.end-this.visibleItemsCount+1),this.range.start!==e&&(this.range={start:e,end:r},this.totalHeight=this.getRangeSize(0,i))},this.getEstimatedItemSize=()=>this.estimateItemSize,this.getRangeSize=(t,s)=>{let i=0,e=0;for(let r=t;r<s;r++)e=this.sizes.get(this.messages[r].id),i+=e||this.getEstimatedItemSize();return i},this.getScrollTop=()=>this.$listRef?Math.ceil(this.$listRef.scrollTop):0,this.getClientHeight=()=>this.$listRef?Math.ceil(this.$listRef.clientHeight):0,this.getScrollHeight=()=>this.$listRef?Math.ceil(this.$listRef.scrollHeight):0,this.getItemsScrolled=()=>{const t=this.lastScrollTop;if(t<=0)return 0;let s=0,i=0,e=0,r=this.messages.length;for(;s<=r;){if(i=s+r>>>1,e=this.getRangeSize(0,i),e===t)return i;e<t?s=i+1:e>t&&(r=i-1)}return s>0?--s:0},this.getEndByStart=t=>Math.min(t+this.visibleItemsCount,this.messages.length-1),this.scrollToOffset=t=>{this.$listRef&&(this.$listRef.scrollTop=t)},this.scrollToIndex=t=>{if(t>=this.messages.length-1)this.scrollToBottom();else{const s=t<1?0:this.getRangeSize(0,t);this.scrollToOffset(s)}},this.scrollToBottom=()=>{this.$listEndRef&&i((()=>{this.$listEndRef.scrollIntoView(),this.getScrollHeight()-(this.getScrollTop()+this.getClientHeight())>0&&this.scrollToBottomRetries<10?setTimeout((()=>{this.scrollToBottom()}),1e3/60):(this.scrollToBottomRetries=0,this.autoScroll=!0)}))},this.handleScroll=async()=>{if(this.isFetching)return;const t=this.getScrollTop(),s=t<this.lastScrollTop||0===t?"UP":"DOWN";if(this.lastScrollTop=t,this.loadMore&&0===t&&"UP"===s&&!1===this.isFetching){this.isFetching=!0;const t=await this.loadMore(this.messages[0]);t&&t.length&&(this.messages=[...t,...this.messages]),this.isFetching=!1}"UP"===s?this.handleTop():"DOWN"===s&&this.handleBottom()},this.handleTop=()=>{const t=this.getItemsScrolled();if(t<=this.range.end-5&&(this.autoScroll=!1),t>this.range.start+5)return;const s=Math.max(this.range.start-5,0);this.updateVisibleItems(s,this.getEndByStart(s))},this.handleBottom=()=>{if(this.getItemsScrolled()<this.range.start+5)return;const t=this.range.start+5,s=this.getEndByStart(t);this.updateVisibleItems(s===this.messages.length-1?s-this.visibleItemsCount:t,s)},this.updateTotalHeight=c((()=>{this.totalHeight=this.getRangeSize(0,this.messages.length)}),1e3/30,{leading:!0}),this.rendererInternal=(t,s,i)=>{if(!t)return;if(t.dataset.id===s.id)return;const e=this.renderer(s,i);t.hasChildNodes&&(t.innerHTML=""),this.elementObserver.observe(t),t.dataset.id=s.id,t.appendChild(e)}}connectedCallback(){const t=this.messages.length-1;this.range={start:t-this.visibleItemsCount,end:t},this.updateVisibleItems(this.range.start,this.range.end),this.totalHeight=this.getRangeSize(0,t)}componentDidLoad(){this.autoScroll&&this.scrollToBottom()}messagesUpdated(t,s){if(t.length>s.length){const i=t.length-s.length;this.updateVisibleItems(i,this.getEndByStart(i)),this.scrollToIndex(this.range.start)}}saveItemSize(t,s){this.sizes.set(t,Math.round(s)),this.updateTotalHeight()}render(){return e("div",{key:"8da5ac7ee83f43da54ce1af023e178d206436b80",class:"scrollbar content-wrapper",ref:t=>this.$listRef=t,onScroll:this.handleScroll},e("div",{key:"3aeec25e25aeb2864b7ce0d68a08d58bb2b63cef",class:"scroller"},e("div",{key:"b65b2fb4471307f38c08480d268adfaafdb696fb",style:{height:this.totalHeight+"px"}}),e("div",{key:"08aa1dcf4740ce438b152527e8d60aff28704e8a",class:"smallest-dom-element",id:"list-end",ref:t=>this.$listEndRef=t})),e("div",{key:"48ba3788f83f2329174fb3ddd107eaf4da91699a",class:"content",style:{transform:`translateY(${this.getRangeSize(0,this.range.start)}px)`}},this.isFetching&&e("div",{key:"1a53b6b02899df6ce80c781b44fcd71802105fdf",class:"loader"},e("rtk-spinner",{key:"222bdf5ad19f45914f48c91afb65075e3fef277f",size:"md"})),this.getVisibleItems().map(((t,s)=>e("div",{key:t.id,ref:i=>this.rendererInternal(i,t,s)})))))}static get watchers(){return{messages:[{messagesUpdated:0}]}}static get style(){return":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)))}.loading{cursor:wait}.content-wrapper{height:100%;overflow-y:auto;position:relative;contain:strict}.scroller{width:1px;opacity:0}.content{position:absolute;top:0;width:100%}.smallest-dom-element{width:100%;height:2px;background:red}.loader{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;justify-content:center}"}},[0,"rtk-message-list-view",{messages:[16],renderer:[16],loadMore:[16],visibleItemsCount:[2,"visible-items-count"],estimateItemSize:[2,"estimate-item-size"],iconPack:[16],range:[32],isFetching:[32],autoScroll:[32],totalHeight:[32]},void 0,{messages:[{messagesUpdated:0}]}]);function d(){"undefined"!=typeof customElements&&["rtk-message-list-view","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-message-list-view":customElements.get(r(t))||customElements.define(r(t),l);break;case"rtk-icon":customElements.get(r(t))||o();break;case"rtk-spinner":customElements.get(r(t))||n()}}))}(function(t,s,i,e){var r,h=arguments.length,a=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(h<3?r(a):h>3?r(s,i,a):r(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([a()],l.prototype,"iconPack",void 0),d();const f=l,p=d;export{f as RtkMessageListView,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-kGPSVdob.js";const p=o,r=s;export{p as RtkMessageView,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-DxWuP9W-.js";const p=o,r=s;export{p as RtkMessageView,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,c as e,h as o,d as r,t as s}from"./p-BBHQOrFK.js";import{e as a,i as n}from"./p-aXMUeMjU.js";import{S as d}from"./p-ByMjaTnP.js";import{i as l}from"./p-CAqYddlg.js";import{d as c}from"./p-BC__OeWi.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as u}from"./p--EktoJd3.js";import{d as m}from"./p-BjZJaxt1.js";import{d as p}from"./p-Ic4M6IZs.js";import{d as v}from"./p-Bc2jtNZw.js";import{d as b}from"./p-DHSRRtn3.js";var k=function(t,i,e,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(i,e,a):r(i,e))||a);return s>3&&a&&Object.defineProperty(i,e,a),a};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.deviceListUpdateListener=({devices:t})=>{this.audioInputDevices=t.filter((t=>"audioinput"===t.kind&&!!t.deviceId)),this.speakerDevices=t.filter((t=>"audiooutput"===t.kind&&!!t.deviceId))},this.deviceUpdateListener=()=>{this.currentDevices=Object.assign({},this.meeting.self.getCurrentDevices())},this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t,this.currentDevices=Object.assign({},this.meeting.self.getCurrentDevices())},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:t,message:i})=>{"audio"===t&&(this.micPermission=i)},this.meetingPermissionsUpdateListener=t=>{var i;(null===(i=null==t?void 0:t.media)||void 0===i?void 0:i.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.hideDeviceSelectionMenu=!1,this.iconPack=a,this.t=n(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.audioInputDevices=[],this.speakerDevices=[],this.hasAdditionalMenuItems=!1,this.setDevice=async t=>{const i=this.meeting;if(i&&("audiooutput"!==t.kind||!l(i)))try{await i.self.setDevice(t),i===this.meeting&&(this.currentDevices=Object.assign({},i.self.getCurrentDevices()))}catch(t){i.__internals__.logger.warn("rtkMicToggle::setDevice",{error:t})}},this.handleDeviceKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget.click())},this.toggleMic=()=>{var t,i,e,o,r,s,a,n,d,l,c,h;if(null===(t=this.meeting)||void 0===t||t.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:!!(null===(e=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===e?void 0:e.audioEnabled),permission:this.micPermission,canProduce:null===(s=null===(r=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.canProduceAudio}},webinar:{stageStatus:null===(n=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(l=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===l?void 0:l.status},moduleExists:{self:!!(null===(c=this.meeting)||void 0===c?void 0:c.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const u=null===(h=this.meeting)||void 0===h?void 0:h.self;null!=u&&this.canProduceAudio&&(u.audioEnabled?u.disableAudio():u.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.removeMeetingListeners(this.meeting)}removeMeetingListeners(t){var i,e,o;null==t||t.self.removeListener("audioUpdate",this.audioUpdateListener),null==t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==t||t.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null==t||t.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(i=null==t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),null===(o=null===(e=null==t?void 0:t.self)||void 0===e?void 0:e.permissions)||void 0===o||o.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}async refreshDevices(t){if(!t)return;const[i,e]=await Promise.all([t.self.getAudioDevices(),t.self.getSpeakerDevices()]);t===this.meeting&&(this.audioInputDevices=i.filter((t=>"audioinput"===t.kind&&!!t.deviceId)),this.speakerDevices=e.filter((t=>"audiooutput"===t.kind&&!!t.deviceId)),this.currentDevices=Object.assign({},t.self.getCurrentDevices()))}meetingChanged(t,i){var e,o;if(this.removeMeetingListeners(i),null!=t){const{self:i,stage:r}=t;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=t.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=i.audioEnabled,this.stageStatus=t.stage.status,this.audioInputDevices=[],this.speakerDevices=[],this.currentDevices=Object.assign({},i.getCurrentDevices()),i.addListener("audioUpdate",this.audioUpdateListener),i.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),i.addListener("deviceListUpdate",this.deviceListUpdateListener),i.addListener("deviceUpdate",this.deviceUpdateListener),null==r||r.addListener("stageStatusUpdate",this.stageStatusListener),null===(o=null===(e=t.self)||void 0===e?void 0:e.permissions)||void 0===o||o.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener),this.refreshDevices(t)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let t="",i="",e="",o={},r=this.hasPermissionError(),s="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!r?(i=this.t("mic_on"),e=this.iconPack.mic_on):(i=this.t("mic_off"),e=this.iconPack.mic_off,o["red-icon"]=!0),t=this.t(s?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:t,label:i,icon:e,classList:o,showWarning:r||s,disable:r}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return o(r,{"data-hidden":!0});const{tooltipLabel:t,label:i,icon:e,classList:s,showWarning:a,disable:n}=this.getState();return o(r,{title:i},o("div",{class:"mic-controls"},o("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},o("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:i,size:this.size,iconPack:this.iconPack,variant:this.variant,class:s,onClick:this.toggleMic,showWarning:a,disabled:n})),!this.hideDeviceSelectionMenu&&o("rtk-menu",{placement:"top",offset:4,size:this.size,iconPack:this.iconPack,t:this.t},o("button",{class:"device-trigger",type:"button",slot:"trigger","aria-label":this.t("mic_toggle.audio_devices"),"aria-haspopup":"menu",title:this.t("mic_toggle.audio_devices")},o("rtk-icon",{icon:this.iconPack.chevron_up,size:"sm"})),o("rtk-menu-list",{role:"menu",iconPack:this.iconPack,t:this.t},0===this.audioInputDevices.length&&o("div",{class:"empty-devices"},this.t("not_found_microphone")),this.audioInputDevices.map((t=>{var i,e,r,s;return o("rtk-menu-item",{role:"menuitemradio","aria-checked":((null===(e=null===(i=this.currentDevices)||void 0===i?void 0:i.audio)||void 0===e?void 0:e.deviceId)===t.deviceId)+"",tabIndex:0,title:t.label,onClick:()=>{this.setDevice(t)},onKeyDown:this.handleDeviceKeyDown},o("span",{class:"device-label"},t.label),(null===(s=null===(r=this.currentDevices)||void 0===r?void 0:r.audio)||void 0===s?void 0:s.deviceId)===t.deviceId&&o("rtk-icon",{icon:this.iconPack.checkmark,size:"sm",slot:"end"}))})),o("div",{class:"menu-divider",role:"separator"}),0===this.speakerDevices.length&&o("div",{class:"empty-devices"},this.t("not_found_speaker")),this.speakerDevices.map((t=>{var i,e,r,s;return o("rtk-menu-item",{role:"menuitemradio","aria-checked":((null===(e=null===(i=this.currentDevices)||void 0===i?void 0:i.speaker)||void 0===e?void 0:e.deviceId)===t.deviceId)+"","aria-disabled":l(this.meeting)+"",tabIndex:l(this.meeting)?-1:0,title:t.label,onClick:()=>{this.setDevice(t)},onKeyDown:this.handleDeviceKeyDown},o("span",{class:"device-label"},t.label),(null===(s=null===(r=this.currentDevices)||void 0===r?void 0:r.speaker)||void 0===s?void 0:s.deviceId)===t.deviceId&&o("rtk-icon",{icon:this.iconPack.checkmark,size:"sm",slot:"end"}))})),o("div",{class:{"additional-menu-items":!0,"has-items":this.hasAdditionalMenuItems}},this.hasAdditionalMenuItems&&o("div",{class:"menu-divider",role:"separator"}),o("slot",{name:"additional-menu-items",onSlotchange:t=>{this.hasAdditionalMenuItems=t.target.assignedElements().length>0}}))))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}.mic-controls{display:inline-flex;height:100%;align-items:stretch;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}.mic-controls:hover{--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-800, 30 30 30))}rtk-tooltip{flex-shrink:0;width:-moz-max-content;width:max-content}rtk-controlbar-button{height:100%}:host(:not([hide-device-selection-menu])) rtk-controlbar-button{min-width:56px;width:-moz-max-content;width:max-content;border-top-right-radius:0;border-bottom-right-radius:0}:host(:not([hide-device-selection-menu])[size='sm']) rtk-controlbar-button{min-width:40px}:host(:not([hide-device-selection-menu])) rtk-controlbar-button::part(button){border-top-right-radius:0;border-bottom-right-radius:0}rtk-tooltip:hover rtk-controlbar-button::part(button){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}rtk-menu{display:flex;flex-shrink:0;width:28px}.device-trigger{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-7, 28px);cursor:pointer;align-items:center;justify-content:center;border-top-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--rtk-controlbar-button-background-color, rgb(var(--rtk-colors-background-1000, 8 8 8)))}.device-trigger:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.device-trigger:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}rtk-menu-list{box-sizing:border-box;max-height:60vh;overflow-y:auto;width:min(360px, calc(100vw - 24px))}rtk-menu-item{justify-content:space-between;gap:var(--rtk-space-3, 12px);padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);line-height:1.25rem}rtk-menu-item:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253));outline-offset:-2px}rtk-menu-item[aria-disabled='true']{cursor:not-allowed;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.device-label{min-width:var(--rtk-space-0, 0px);overflow-wrap:anywhere}.empty-devices{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.menu-divider{border-top-width:var(--rtk-border-width-sm, 1px);border-bottom-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}.additional-menu-items:not(.has-items){display:none}::slotted([slot='additional-menu-items']){box-sizing:border-box;width:100%}:host([data-hidden]){display:none}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[257,"rtk-mic-toggle",{variant:[513],meeting:[16],size:[513],hideDeviceSelectionMenu:[516,"hide-device-selection-menu"],iconPack:[16],t:[16],audioEnabled:[32],canProduceAudio:[32],micPermission:[32],stageStatus:[32],audioInputDevices:[32],speakerDevices:[32],currentDevices:[32],hasAdditionalMenuItems:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-mic-toggle","rtk-controlbar-button","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-mic-toggle":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-controlbar-button":customElements.get(s(t))||c();break;case"rtk-icon":customElements.get(s(t))||h();break;case"rtk-menu":customElements.get(s(t))||u();break;case"rtk-menu-item":customElements.get(s(t))||m();break;case"rtk-menu-list":customElements.get(s(t))||p();break;case"rtk-spinner":customElements.get(s(t))||v();break;case"rtk-tooltip":customElements.get(s(t))||b()}}))}k([d()],g.prototype,"meeting",void 0),k([d()],g.prototype,"iconPack",void 0),k([d()],g.prototype,"t",void 0),f();const x=g,w=f;export{x as RtkMicToggle,w as defineCustomElement}
1
+ import{p as t,H as i,c as e,h as o,d as r,t as s}from"./p-BBHQOrFK.js";import{e as a,i as n}from"./p-CtoKGHXg.js";import{S as d}from"./p-16s5ZSAZ.js";import{i as l}from"./p-CAqYddlg.js";import{d as c}from"./p-D00_ZaOw.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as u}from"./p-BDZmvSZ5.js";import{d as m}from"./p-reX4rZOi.js";import{d as p}from"./p-H0SF5wed.js";import{d as v}from"./p-DeQvmRpj.js";import{d as b}from"./p-DHSRRtn3.js";var k=function(t,i,e,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(i,e,a):r(i,e))||a);return s>3&&a&&Object.defineProperty(i,e,a),a};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.deviceListUpdateListener=({devices:t})=>{this.audioInputDevices=t.filter((t=>"audioinput"===t.kind&&!!t.deviceId)),this.speakerDevices=t.filter((t=>"audiooutput"===t.kind&&!!t.deviceId))},this.deviceUpdateListener=()=>{this.currentDevices=Object.assign({},this.meeting.self.getCurrentDevices())},this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t,this.currentDevices=Object.assign({},this.meeting.self.getCurrentDevices())},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:t,message:i})=>{"audio"===t&&(this.micPermission=i)},this.meetingPermissionsUpdateListener=t=>{var i;(null===(i=null==t?void 0:t.media)||void 0===i?void 0:i.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.hideDeviceSelectionMenu=!1,this.iconPack=a,this.t=n(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.audioInputDevices=[],this.speakerDevices=[],this.hasAdditionalMenuItems=!1,this.setDevice=async t=>{const i=this.meeting;if(i&&("audiooutput"!==t.kind||!l(i)))try{await i.self.setDevice(t),i===this.meeting&&(this.currentDevices=Object.assign({},i.self.getCurrentDevices()))}catch(t){i.__internals__.logger.warn("rtkMicToggle::setDevice",{error:t})}},this.handleDeviceKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget.click())},this.toggleMic=()=>{var t,i,e,o,r,s,a,n,d,l,c,h;if(null===(t=this.meeting)||void 0===t||t.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:!!(null===(e=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===e?void 0:e.audioEnabled),permission:this.micPermission,canProduce:null===(s=null===(r=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.canProduceAudio}},webinar:{stageStatus:null===(n=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(l=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===l?void 0:l.status},moduleExists:{self:!!(null===(c=this.meeting)||void 0===c?void 0:c.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const u=null===(h=this.meeting)||void 0===h?void 0:h.self;null!=u&&this.canProduceAudio&&(u.audioEnabled?u.disableAudio():u.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.removeMeetingListeners(this.meeting)}removeMeetingListeners(t){var i,e,o;null==t||t.self.removeListener("audioUpdate",this.audioUpdateListener),null==t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==t||t.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null==t||t.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(i=null==t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),null===(o=null===(e=null==t?void 0:t.self)||void 0===e?void 0:e.permissions)||void 0===o||o.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}async refreshDevices(t){if(!t)return;const[i,e]=await Promise.all([t.self.getAudioDevices(),t.self.getSpeakerDevices()]);t===this.meeting&&(this.audioInputDevices=i.filter((t=>"audioinput"===t.kind&&!!t.deviceId)),this.speakerDevices=e.filter((t=>"audiooutput"===t.kind&&!!t.deviceId)),this.currentDevices=Object.assign({},t.self.getCurrentDevices()))}meetingChanged(t,i){var e,o;if(this.removeMeetingListeners(i),null!=t){const{self:i,stage:r}=t;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=t.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=i.audioEnabled,this.stageStatus=t.stage.status,this.audioInputDevices=[],this.speakerDevices=[],this.currentDevices=Object.assign({},i.getCurrentDevices()),i.addListener("audioUpdate",this.audioUpdateListener),i.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),i.addListener("deviceListUpdate",this.deviceListUpdateListener),i.addListener("deviceUpdate",this.deviceUpdateListener),null==r||r.addListener("stageStatusUpdate",this.stageStatusListener),null===(o=null===(e=t.self)||void 0===e?void 0:e.permissions)||void 0===o||o.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener),this.refreshDevices(t)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let t="",i="",e="",o={},r=this.hasPermissionError(),s="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!r?(i=this.t("mic_on"),e=this.iconPack.mic_on):(i=this.t("mic_off"),e=this.iconPack.mic_off,o["red-icon"]=!0),t=this.t(s?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:t,label:i,icon:e,classList:o,showWarning:r||s,disable:r}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return o(r,{"data-hidden":!0});const{tooltipLabel:t,label:i,icon:e,classList:s,showWarning:a,disable:n}=this.getState();return o(r,{title:i},o("div",{class:"mic-controls"},o("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},o("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:i,size:this.size,iconPack:this.iconPack,variant:this.variant,class:s,onClick:this.toggleMic,showWarning:a,disabled:n})),!this.hideDeviceSelectionMenu&&o("rtk-menu",{placement:"top",offset:4,size:this.size,iconPack:this.iconPack,t:this.t},o("button",{class:"device-trigger",type:"button",slot:"trigger","aria-label":this.t("mic_toggle.audio_devices"),"aria-haspopup":"menu",title:this.t("mic_toggle.audio_devices")},o("rtk-icon",{icon:this.iconPack.chevron_up,size:"sm"})),o("rtk-menu-list",{role:"menu",iconPack:this.iconPack,t:this.t},0===this.audioInputDevices.length&&o("div",{class:"empty-devices"},this.t("not_found_microphone")),this.audioInputDevices.map((t=>{var i,e,r,s;return o("rtk-menu-item",{role:"menuitemradio","aria-checked":((null===(e=null===(i=this.currentDevices)||void 0===i?void 0:i.audio)||void 0===e?void 0:e.deviceId)===t.deviceId)+"",tabIndex:0,title:t.label,onClick:()=>{this.setDevice(t)},onKeyDown:this.handleDeviceKeyDown},o("span",{class:"device-label"},t.label),(null===(s=null===(r=this.currentDevices)||void 0===r?void 0:r.audio)||void 0===s?void 0:s.deviceId)===t.deviceId&&o("rtk-icon",{icon:this.iconPack.checkmark,size:"sm",slot:"end"}))})),o("div",{class:"menu-divider",role:"separator"}),0===this.speakerDevices.length&&o("div",{class:"empty-devices"},this.t("not_found_speaker")),this.speakerDevices.map((t=>{var i,e,r,s;return o("rtk-menu-item",{role:"menuitemradio","aria-checked":((null===(e=null===(i=this.currentDevices)||void 0===i?void 0:i.speaker)||void 0===e?void 0:e.deviceId)===t.deviceId)+"","aria-disabled":l(this.meeting)+"",tabIndex:l(this.meeting)?-1:0,title:t.label,onClick:()=>{this.setDevice(t)},onKeyDown:this.handleDeviceKeyDown},o("span",{class:"device-label"},t.label),(null===(s=null===(r=this.currentDevices)||void 0===r?void 0:r.speaker)||void 0===s?void 0:s.deviceId)===t.deviceId&&o("rtk-icon",{icon:this.iconPack.checkmark,size:"sm",slot:"end"}))})),o("div",{class:{"additional-menu-items":!0,"has-items":this.hasAdditionalMenuItems}},this.hasAdditionalMenuItems&&o("div",{class:"menu-divider",role:"separator"}),o("slot",{name:"additional-menu-items",onSlotchange:t=>{this.hasAdditionalMenuItems=t.target.assignedElements().length>0}}))))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":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}.mic-controls{display:inline-flex;height:100%;align-items:stretch;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}.mic-controls:hover{--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-800, 30 30 30))}rtk-tooltip{flex-shrink:0;width:-moz-max-content;width:max-content}rtk-controlbar-button{height:100%}:host(:not([hide-device-selection-menu])) rtk-controlbar-button{min-width:56px;width:-moz-max-content;width:max-content;border-top-right-radius:0;border-bottom-right-radius:0}:host(:not([hide-device-selection-menu])[size='sm']) rtk-controlbar-button{min-width:40px}:host(:not([hide-device-selection-menu])) rtk-controlbar-button::part(button){border-top-right-radius:0;border-bottom-right-radius:0}rtk-tooltip:hover rtk-controlbar-button::part(button){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}rtk-menu{display:flex;flex-shrink:0;width:28px}.device-trigger{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-7, 28px);cursor:pointer;align-items:center;justify-content:center;border-top-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--rtk-controlbar-button-background-color, rgb(var(--rtk-colors-background-1000, 8 8 8)))}.device-trigger:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.device-trigger:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}rtk-menu-list{box-sizing:border-box;max-height:60vh;overflow-y:auto;width:min(360px, calc(100vw - 24px))}rtk-menu-item{justify-content:space-between;gap:var(--rtk-space-3, 12px);padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);line-height:1.25rem}rtk-menu-item:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253));outline-offset:-2px}rtk-menu-item[aria-disabled='true']{cursor:not-allowed;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.device-label{min-width:var(--rtk-space-0, 0px);overflow-wrap:anywhere}.empty-devices{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.menu-divider{border-top-width:var(--rtk-border-width-sm, 1px);border-bottom-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}.additional-menu-items:not(.has-items){display:none}::slotted([slot='additional-menu-items']){box-sizing:border-box;width:100%}:host([data-hidden]){display:none}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[257,"rtk-mic-toggle",{variant:[513],meeting:[16],size:[513],hideDeviceSelectionMenu:[516,"hide-device-selection-menu"],iconPack:[16],t:[16],audioEnabled:[32],canProduceAudio:[32],micPermission:[32],stageStatus:[32],audioInputDevices:[32],speakerDevices:[32],currentDevices:[32],hasAdditionalMenuItems:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-mic-toggle","rtk-controlbar-button","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-mic-toggle":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-controlbar-button":customElements.get(s(t))||c();break;case"rtk-icon":customElements.get(s(t))||h();break;case"rtk-menu":customElements.get(s(t))||u();break;case"rtk-menu-item":customElements.get(s(t))||m();break;case"rtk-menu-list":customElements.get(s(t))||p();break;case"rtk-spinner":customElements.get(s(t))||v();break;case"rtk-tooltip":customElements.get(s(t))||b()}}))}k([d()],g.prototype,"meeting",void 0),k([d()],g.prototype,"iconPack",void 0),k([d()],g.prototype,"t",void 0),f();const x=g,w=f;export{x as RtkMicToggle,w as defineCustomElement}
@@ -1 +1 @@
1
- import{R as a,d as o}from"./p-DalLUQa1.js";const s=a,p=o;export{s as RtkMicrophoneSelector,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-ChM1gCIW.js";const p=o,r=s;export{p as RtkMicrophoneSelector,r as defineCustomElement}