@cloudflare/realtimekit-ui 2.0.2 → 2.0.3-staging.10

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 (566) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-CXP5MCz2.js → TextMessage-cfaZckxh.js} +1 -1
  3. package/dist/cjs/{chat-BJwmnHGm.js → chat-Dmb93Uku.js} +1 -1
  4. package/dist/cjs/{config-lVBc97X8.js → config-wbyoqfPs.js} +2 -2
  5. package/dist/cjs/{debounce-BfjpS8nk.js → debounce-B5TJRWkG.js} +1 -1
  6. package/dist/cjs/index-Bi2L8zQ7.js +10 -6
  7. package/dist/cjs/{index-iml9xkbo.js → index-CmhPLhux.js} +1 -1
  8. package/dist/cjs/index.cjs.js +5 -5
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{merge-BJWi-sVV.js → merge-B7Yr5DGf.js} +1 -1
  11. package/dist/cjs/{notification-BM6CUHyL.js → notification-Bny5fHfy.js} +3 -3
  12. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  13. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  17. package/dist/cjs/rtk-audio-tile.cjs.entry.js +5 -2
  18. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +3 -3
  19. package/dist/cjs/rtk-avatar_26.cjs.entry.js +25 -25
  20. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  21. package/dist/cjs/{rtk-breakout-rooms-manager_9.cjs.entry.js → rtk-breakout-rooms-manager_8.cjs.entry.js} +19 -112
  22. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  27. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  31. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +10 -16
  36. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-debugger.cjs.entry.js +99 -0
  38. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +3 -3
  39. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-file-message_3.cjs.entry.js +4 -4
  43. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-grid.cjs.entry.js +10 -10
  46. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  54. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  55. package/dist/cjs/rtk-message-list-view.cjs.entry.js +6 -6
  56. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  61. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  62. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  63. package/dist/cjs/rtk-notifications.cjs.entry.js +4 -4
  64. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  66. package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
  67. package/dist/cjs/rtk-participants-audio.cjs.entry.js +57 -14
  68. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  71. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  78. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
  80. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +4 -4
  85. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
  88. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  90. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  91. package/dist/cjs/rtk-transcript.cjs.entry.js +6 -3
  92. package/dist/cjs/rtk-transcripts.cjs.entry.js +61 -30
  93. package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
  94. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
  95. package/dist/cjs/{ui-store-C8bSJOfE.js → ui-store-C7CyFWPZ.js} +1 -1
  96. package/dist/collection/components/rtk-ai/rtk-ai.js +2 -4
  97. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +3 -0
  98. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +4 -6
  99. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +8 -7
  100. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +9 -10
  101. package/dist/collection/components/rtk-debugger/rtk-debugger.css +28 -18
  102. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  103. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.css +8 -15
  104. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  105. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.css +8 -15
  106. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  107. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.css +7 -14
  108. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -8
  109. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.css +8 -15
  110. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  111. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  112. package/dist/collection/components/rtk-grid/rtk-grid.js +8 -8
  113. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -4
  114. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +4 -4
  115. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +4 -4
  116. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -4
  117. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -4
  118. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +4 -6
  119. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  120. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
  121. package/dist/collection/components/rtk-transcript/rtk-transcript.js +4 -1
  122. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +59 -28
  123. package/dist/collection/lib/audio.js +55 -12
  124. package/dist/collection/lib/notification.js +3 -3
  125. package/dist/collection/utils/clone.js +1 -1
  126. package/dist/components/index.js +1 -1
  127. package/dist/components/{p-BssX9KwA.js → p--CEA0NQj.js} +1 -1
  128. package/dist/components/{p-CWHbCyoL.js → p--VK1POSX.js} +1 -1
  129. package/dist/components/{p-kwrAj1JQ.js → p-5i84b0Gw.js} +1 -1
  130. package/dist/components/{p-DCtgO53p.js → p-93ZUKlQ1.js} +1 -1
  131. package/dist/components/{p-DXSMSSbW.js → p-B0SC1Zj-.js} +1 -1
  132. package/dist/components/{p-CPF_oopS.js → p-B1HaRABx.js} +1 -1
  133. package/dist/components/{p-Dy1vyj0N.js → p-B1oyTNvb.js} +1 -1
  134. package/dist/components/{p-BQkUbUdr.js → p-B3dQhqRr.js} +1 -1
  135. package/dist/components/{p-Bgm0SnIA.js → p-B4dw_Fnl.js} +1 -1
  136. package/dist/components/p-B56IYWsZ.js +1 -0
  137. package/dist/components/{p-BNRJKXAG.js → p-BHHJ7_MS.js} +1 -1
  138. package/dist/components/{p-Bj4I4jh7.js → p-BQJoMtIK.js} +1 -1
  139. package/dist/components/{p-Bqf3TobZ.js → p-BXHUa6x_.js} +1 -1
  140. package/dist/components/p-BY_rxRub.js +1 -0
  141. package/dist/components/p-BbE6o8zj.js +1 -0
  142. package/dist/components/{p-CwNP8xfN.js → p-Bf-HIBwL.js} +1 -1
  143. package/dist/components/{p-CfFkjBT0.js → p-Bf-vQ6U9.js} +1 -1
  144. package/dist/components/{p-BbtnaCk4.js → p-Bn6JMUc9.js} +1 -1
  145. package/dist/components/{p-CVfA5R2h.js → p-BoqfUgTL.js} +1 -1
  146. package/dist/components/{p-vBjvMv_5.js → p-Bux-kSlP.js} +1 -1
  147. package/dist/components/{p-Chf25Wxh.js → p-BvLjh5Yy.js} +1 -1
  148. package/dist/components/{p-C9KgVl-d.js → p-BxPmWGqJ.js} +1 -1
  149. package/dist/components/p-ByPpyWt6.js +1 -0
  150. package/dist/components/{p-C-ZKbHGI.js → p-C0ESgBoj.js} +1 -1
  151. package/dist/components/p-C5kkSbkd.js +1 -0
  152. package/dist/components/{p-B17zaVfB.js → p-C6AgOKhg.js} +1 -1
  153. package/dist/components/{p-CXK5Hixp.js → p-C7WazpNf.js} +1 -1
  154. package/dist/components/{p-Bvn365hl.js → p-C9UuqXCX.js} +1 -1
  155. package/dist/components/{p-DcBUj_Ju.js → p-CAMtxcI_.js} +1 -1
  156. package/dist/components/{p-C71rbtpI.js → p-CAsupO2z.js} +1 -1
  157. package/dist/components/p-CBWhDYEo.js +1 -0
  158. package/dist/components/{p-Ba4odlrT.js → p-CCxMYXjI.js} +1 -1
  159. package/dist/components/{p-mm-pzvJ-.js → p-CEK_XoGw.js} +1 -1
  160. package/dist/components/{p-DPxfGgCX.js → p-CFBS-gbK.js} +1 -1
  161. package/dist/components/p-CHOs-ZsL.js +1 -0
  162. package/dist/components/p-CHh7GAdL.js +1 -0
  163. package/dist/components/p-CJGAvEk3.js +1 -0
  164. package/dist/components/{p-Bjmpb3KI.js → p-CMyYEHgz.js} +1 -1
  165. package/dist/components/{p-BUosYxgI.js → p-CNaazJXM.js} +1 -1
  166. package/dist/components/{p-BGMQOFEz.js → p-CTuYqZY2.js} +1 -1
  167. package/dist/components/{p-oNFda96T.js → p-CU7xL-hP.js} +1 -1
  168. package/dist/components/{p-fEIEB26m.js → p-CW-FAeNP.js} +1 -1
  169. package/dist/components/{p-iZinM7-j.js → p-CfIrQkMg.js} +1 -1
  170. package/dist/components/{p-V9huV8XH.js → p-CjstGmGh.js} +1 -1
  171. package/dist/components/{p-CkA8t9GX.js → p-CkB6Me6q.js} +1 -1
  172. package/dist/components/{p-Cj0CCucK.js → p-CnPYfRgf.js} +1 -1
  173. package/dist/components/{p-nkadiHul.js → p-CpD_SehU.js} +1 -1
  174. package/dist/components/{p-iaFYN7Sj.js → p-CuRSxmeD.js} +1 -1
  175. package/dist/components/{p-66poN2qn.js → p-DMbGWtns.js} +1 -1
  176. package/dist/components/{p-D__Gipxn.js → p-DONfrqzk.js} +1 -1
  177. package/dist/components/{p-CIfkVpTJ.js → p-DSUStc8e.js} +1 -1
  178. package/dist/components/{p-BIdrWJJD.js → p-DSe3wsBa.js} +1 -1
  179. package/dist/components/{p-B77rBORD.js → p-DViKr-34.js} +1 -1
  180. package/dist/components/{p-B2GVx1qA.js → p-DZcwJOUW.js} +1 -1
  181. package/dist/components/p-D_AEDHUV.js +1 -0
  182. package/dist/components/{p-BhG6UsF5.js → p-DdSpe6Sb.js} +1 -1
  183. package/dist/components/{p-nad0N2DI.js → p-Dh8N1Wv8.js} +1 -1
  184. package/dist/components/{p-C8Dgpnzx.js → p-DhG2PF_5.js} +1 -1
  185. package/dist/components/p-DhwysA2e.js +1 -0
  186. package/dist/components/{p-DfGTdsn0.js → p-DjOiGHfI.js} +1 -1
  187. package/dist/components/{p-CAgV-5OF.js → p-DnOzzBR9.js} +1 -1
  188. package/dist/components/{p-CNv9-uKL.js → p-DnkJztTd.js} +1 -1
  189. package/dist/components/{p-Cz9_MmLt.js → p-Dq8iLPzP.js} +1 -1
  190. package/dist/components/{p-DSm20Isy.js → p-E1D1eNFh.js} +1 -1
  191. package/dist/components/{p-CuqFnmgF.js → p-M0IaFpEv.js} +1 -1
  192. package/dist/components/{p-ebQT96VB.js → p-NKK4fZcP.js} +1 -1
  193. package/dist/components/{p-jyZncre7.js → p-ObGKzmP7.js} +1 -1
  194. package/dist/components/{p-D_tCWiMP.js → p-Ryaxu6vl.js} +1 -1
  195. package/dist/components/{p-CSO-O3S1.js → p-Smh6fH4v.js} +1 -1
  196. package/dist/components/{p-COCm8rOB.js → p-VHRH6fkb.js} +1 -1
  197. package/dist/components/{p-CSt7vW9Z.js → p-Z8VMlEx7.js} +1 -1
  198. package/dist/components/{p-DL4GSZ2e.js → p-bRRQr4xn.js} +1 -1
  199. package/dist/components/{p-B6TKlHLV.js → p-gixOLeKl.js} +1 -1
  200. package/dist/components/{p-BRPrcA0X.js → p-mgE9e3Hm.js} +1 -1
  201. package/dist/components/{p-RjS7wlRV.js → p-pcKO_EeI.js} +1 -1
  202. package/dist/components/{p-CRr8LXGp.js → p-vqPkhXWC.js} +1 -1
  203. package/dist/components/{p-D3IRX-4x.js → p-y_feb08f.js} +1 -1
  204. package/dist/components/rtk-ai-toggle.js +1 -1
  205. package/dist/components/rtk-ai-transcriptions.js +1 -1
  206. package/dist/components/rtk-ai.js +1 -1
  207. package/dist/components/rtk-audio-grid.js +1 -1
  208. package/dist/components/rtk-audio-tile.js +1 -1
  209. package/dist/components/rtk-audio-visualizer.js +1 -1
  210. package/dist/components/rtk-avatar.js +1 -1
  211. package/dist/components/rtk-breakout-room-manager.js +1 -1
  212. package/dist/components/rtk-breakout-room-participants.js +1 -1
  213. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  214. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  215. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  216. package/dist/components/rtk-camera-selector.js +1 -1
  217. package/dist/components/rtk-camera-toggle.js +1 -1
  218. package/dist/components/rtk-caption-toggle.js +1 -1
  219. package/dist/components/rtk-chat-composer-ui.js +1 -1
  220. package/dist/components/rtk-chat-composer-view.js +1 -1
  221. package/dist/components/rtk-chat-header.js +1 -1
  222. package/dist/components/rtk-chat-message.js +1 -1
  223. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  224. package/dist/components/rtk-chat-messages-ui.js +1 -1
  225. package/dist/components/rtk-chat-search-results.js +1 -1
  226. package/dist/components/rtk-chat-selector-ui.js +1 -1
  227. package/dist/components/rtk-chat-selector.js +1 -1
  228. package/dist/components/rtk-chat-toggle.js +1 -1
  229. package/dist/components/rtk-chat.js +1 -1
  230. package/dist/components/rtk-clock.js +1 -1
  231. package/dist/components/rtk-confirmation-modal.js +1 -1
  232. package/dist/components/rtk-controlbar-button.js +1 -1
  233. package/dist/components/rtk-controlbar.js +1 -1
  234. package/dist/components/rtk-counter.js +1 -1
  235. package/dist/components/rtk-debugger-audio.js +1 -1
  236. package/dist/components/rtk-debugger-screenshare.js +1 -1
  237. package/dist/components/rtk-debugger-system.js +1 -1
  238. package/dist/components/rtk-debugger-toggle.js +1 -1
  239. package/dist/components/rtk-debugger-video.js +1 -1
  240. package/dist/components/rtk-debugger.js +1 -1
  241. package/dist/components/rtk-dialog-manager.js +1 -1
  242. package/dist/components/rtk-dialog.js +1 -1
  243. package/dist/components/rtk-draft-attachment-view.js +1 -1
  244. package/dist/components/rtk-emoji-picker-button.js +1 -1
  245. package/dist/components/rtk-emoji-picker.js +1 -1
  246. package/dist/components/rtk-ended-screen.js +1 -1
  247. package/dist/components/rtk-file-dropzone.js +1 -1
  248. package/dist/components/rtk-file-message-view.js +1 -1
  249. package/dist/components/rtk-file-message.js +1 -1
  250. package/dist/components/rtk-file-picker-button.js +1 -1
  251. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  252. package/dist/components/rtk-grid-pagination.js +1 -1
  253. package/dist/components/rtk-grid.js +1 -1
  254. package/dist/components/rtk-header.js +1 -1
  255. package/dist/components/rtk-idle-screen.js +1 -1
  256. package/dist/components/rtk-image-message-view.js +1 -1
  257. package/dist/components/rtk-image-message.js +1 -1
  258. package/dist/components/rtk-image-viewer.js +1 -1
  259. package/dist/components/rtk-information-tooltip.js +1 -1
  260. package/dist/components/rtk-join-stage.js +1 -1
  261. package/dist/components/rtk-leave-button.js +1 -1
  262. package/dist/components/rtk-leave-meeting.js +1 -1
  263. package/dist/components/rtk-livestream-indicator.js +1 -1
  264. package/dist/components/rtk-livestream-player.js +1 -1
  265. package/dist/components/rtk-livestream-toggle.js +1 -1
  266. package/dist/components/rtk-logo.js +1 -1
  267. package/dist/components/rtk-meeting-title.js +1 -1
  268. package/dist/components/rtk-meeting.js +1 -1
  269. package/dist/components/rtk-menu-item.js +1 -1
  270. package/dist/components/rtk-menu-list.js +1 -1
  271. package/dist/components/rtk-menu.js +1 -1
  272. package/dist/components/rtk-message-list-view.js +1 -1
  273. package/dist/components/rtk-message-view.js +1 -1
  274. package/dist/components/rtk-mic-toggle.js +1 -1
  275. package/dist/components/rtk-microphone-selector.js +1 -1
  276. package/dist/components/rtk-mixed-grid.js +1 -1
  277. package/dist/components/rtk-more-toggle.js +1 -1
  278. package/dist/components/rtk-mute-all-button.js +1 -1
  279. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  280. package/dist/components/rtk-name-tag.js +1 -1
  281. package/dist/components/rtk-network-indicator.js +1 -1
  282. package/dist/components/rtk-notification.js +1 -1
  283. package/dist/components/rtk-notifications.js +1 -1
  284. package/dist/components/rtk-overlay-modal.js +1 -1
  285. package/dist/components/rtk-paginated-list.js +1 -1
  286. package/dist/components/rtk-participant-count.js +1 -1
  287. package/dist/components/rtk-participant-setup.js +1 -1
  288. package/dist/components/rtk-participant-tile.js +1 -1
  289. package/dist/components/rtk-participant.js +1 -1
  290. package/dist/components/rtk-participants-audio.js +1 -1
  291. package/dist/components/rtk-participants-stage-list.js +1 -1
  292. package/dist/components/rtk-participants-stage-queue.js +1 -1
  293. package/dist/components/rtk-participants-toggle.js +1 -1
  294. package/dist/components/rtk-participants-viewer-list.js +1 -1
  295. package/dist/components/rtk-participants-waiting-list.js +1 -1
  296. package/dist/components/rtk-participants.js +1 -1
  297. package/dist/components/rtk-permissions-message.js +1 -1
  298. package/dist/components/rtk-pinned-message-selector.js +1 -1
  299. package/dist/components/rtk-pip-toggle.js +1 -1
  300. package/dist/components/rtk-plugin-main.js +1 -1
  301. package/dist/components/rtk-plugins-toggle.js +1 -1
  302. package/dist/components/rtk-plugins.js +1 -1
  303. package/dist/components/rtk-poll-form.js +1 -1
  304. package/dist/components/rtk-poll.js +1 -1
  305. package/dist/components/rtk-polls-toggle.js +1 -1
  306. package/dist/components/rtk-polls.js +1 -1
  307. package/dist/components/rtk-recording-indicator.js +1 -1
  308. package/dist/components/rtk-recording-toggle.js +1 -1
  309. package/dist/components/rtk-screen-share-toggle.js +1 -1
  310. package/dist/components/rtk-screenshare-view.js +1 -1
  311. package/dist/components/rtk-settings-audio.js +1 -1
  312. package/dist/components/rtk-settings-toggle.js +1 -1
  313. package/dist/components/rtk-settings-video.js +1 -1
  314. package/dist/components/rtk-settings.js +1 -1
  315. package/dist/components/rtk-setup-screen.js +1 -1
  316. package/dist/components/rtk-sidebar-ui.js +1 -1
  317. package/dist/components/rtk-sidebar.js +1 -1
  318. package/dist/components/rtk-simple-grid.js +1 -1
  319. package/dist/components/rtk-speaker-selector.js +1 -1
  320. package/dist/components/rtk-spinner.js +1 -1
  321. package/dist/components/rtk-spotlight-grid.js +1 -1
  322. package/dist/components/rtk-spotlight-indicator.js +1 -1
  323. package/dist/components/rtk-stage-toggle.js +1 -1
  324. package/dist/components/rtk-stage.js +1 -1
  325. package/dist/components/rtk-switch.js +1 -1
  326. package/dist/components/rtk-tab-bar.js +1 -1
  327. package/dist/components/rtk-text-composer-view.js +1 -1
  328. package/dist/components/rtk-text-message.js +1 -1
  329. package/dist/components/rtk-transcript.js +1 -1
  330. package/dist/components/rtk-transcripts.js +1 -1
  331. package/dist/components/rtk-ui-provider.js +1 -1
  332. package/dist/components/rtk-viewer-count.js +1 -1
  333. package/dist/components/rtk-waiting-screen.js +1 -1
  334. package/dist/docs/docs-components.json +12 -27
  335. package/dist/docs/docs-vscode.json +8 -8
  336. package/dist/esm/{TextMessage-C1lPu3R8.js → TextMessage-B-38YeFE.js} +1 -1
  337. package/dist/esm/{chat-DRqOBXqN.js → chat-a6CRyl2K.js} +1 -1
  338. package/dist/esm/{config-BiYmSYD9.js → config-wP0cqv4b.js} +2 -2
  339. package/dist/esm/{debounce-BmgYF10w.js → debounce-lqMlEJcq.js} +1 -1
  340. package/dist/esm/{index-BnFmFXDx.js → index-CP1LPkYZ.js} +1 -1
  341. package/dist/esm/index-gJCRRBX0.js +10 -6
  342. package/dist/esm/index.js +7 -7
  343. package/dist/esm/loader.js +1139 -1059
  344. package/dist/esm/{merge-Bnx8tW3F.js → merge-BWjuIacB.js} +1 -1
  345. package/dist/esm/{notification-DcR6dHfn.js → notification-DZgheLdK.js} +3 -3
  346. package/dist/esm/realtimekit-ui.js +1 -1
  347. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  348. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  349. package/dist/esm/rtk-ai_3.entry.js +2 -2
  350. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  351. package/dist/esm/rtk-audio-tile.entry.js +5 -2
  352. package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
  353. package/dist/esm/rtk-avatar_26.entry.js +25 -25
  354. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  355. package/dist/esm/{rtk-breakout-rooms-manager_9.entry.js → rtk-breakout-rooms-manager_8.entry.js} +20 -112
  356. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  357. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  358. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  359. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  360. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  361. package/dist/esm/rtk-chat-message.entry.js +2 -2
  362. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  363. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  364. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  365. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  366. package/dist/esm/rtk-clock.entry.js +2 -2
  367. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  368. package/dist/esm/rtk-controlbar.entry.js +2 -2
  369. package/dist/esm/rtk-debugger-audio_4.entry.js +10 -16
  370. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  371. package/dist/esm/rtk-debugger.entry.js +97 -0
  372. package/dist/esm/rtk-dialog-manager.entry.js +3 -3
  373. package/dist/esm/rtk-dialog.entry.js +2 -2
  374. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  375. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  376. package/dist/esm/rtk-file-message_3.entry.js +4 -4
  377. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  378. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  379. package/dist/esm/rtk-grid.entry.js +10 -10
  380. package/dist/esm/rtk-header.entry.js +2 -2
  381. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  382. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  383. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  384. package/dist/esm/rtk-leave-button.entry.js +2 -2
  385. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  386. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  387. package/dist/esm/rtk-logo.entry.js +2 -2
  388. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  389. package/dist/esm/rtk-message-list-view.entry.js +6 -6
  390. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  391. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  392. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  393. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  394. package/dist/esm/rtk-name-tag.entry.js +2 -2
  395. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  396. package/dist/esm/rtk-notification.entry.js +4 -4
  397. package/dist/esm/rtk-notifications.entry.js +4 -4
  398. package/dist/esm/rtk-participant-count.entry.js +2 -2
  399. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  400. package/dist/esm/rtk-participant_2.entry.js +3 -3
  401. package/dist/esm/rtk-participants-audio.entry.js +57 -14
  402. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  403. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  404. package/dist/esm/rtk-participants.entry.js +3 -3
  405. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  406. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  407. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  408. package/dist/esm/rtk-poll_2.entry.js +2 -2
  409. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  410. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  411. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  412. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  413. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  414. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  415. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  416. package/dist/esm/rtk-settings.entry.js +2 -2
  417. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  418. package/dist/esm/rtk-sidebar-ui.entry.js +4 -4
  419. package/dist/esm/rtk-sidebar.entry.js +2 -2
  420. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  421. package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
  422. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  423. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  424. package/dist/esm/rtk-stage.entry.js +2 -2
  425. package/dist/esm/rtk-transcript.entry.js +6 -3
  426. package/dist/esm/rtk-transcripts.entry.js +61 -30
  427. package/dist/esm/rtk-ui-provider.entry.js +2 -2
  428. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  429. package/dist/esm/{ui-store-CkvSNsmd.js → ui-store-Ctcbman-.js} +1 -1
  430. package/dist/realtimekit-ui/index.esm.js +1 -1
  431. package/dist/realtimekit-ui/p-0051564a.entry.js +1 -0
  432. package/dist/realtimekit-ui/{p-b7f7e42a.entry.js → p-0195bd60.entry.js} +1 -1
  433. package/dist/realtimekit-ui/{p-0c1a8f1a.entry.js → p-01c014e4.entry.js} +1 -1
  434. package/dist/realtimekit-ui/{p-f2380597.entry.js → p-0264d57f.entry.js} +1 -1
  435. package/dist/realtimekit-ui/{p-eeb3d851.entry.js → p-09ce95b2.entry.js} +1 -1
  436. package/dist/realtimekit-ui/{p-b90a0bf4.entry.js → p-194ebf74.entry.js} +1 -1
  437. package/dist/realtimekit-ui/{p-ee470245.entry.js → p-20734a3a.entry.js} +1 -1
  438. package/dist/realtimekit-ui/{p-71b0d221.entry.js → p-21b69da3.entry.js} +1 -1
  439. package/dist/realtimekit-ui/{p-d9061f53.entry.js → p-21f69c50.entry.js} +1 -1
  440. package/dist/realtimekit-ui/{p-e3015917.entry.js → p-23e14ccd.entry.js} +1 -1
  441. package/dist/realtimekit-ui/{p-607f649e.entry.js → p-27751707.entry.js} +1 -1
  442. package/dist/realtimekit-ui/{p-11a08757.entry.js → p-286ce4d7.entry.js} +1 -1
  443. package/dist/realtimekit-ui/p-2fd5255e.entry.js +1 -0
  444. package/dist/realtimekit-ui/{p-ff436b41.entry.js → p-384db558.entry.js} +1 -1
  445. package/dist/realtimekit-ui/{p-12fa2370.entry.js → p-3ed792bf.entry.js} +1 -1
  446. package/dist/realtimekit-ui/{p-588dcb34.entry.js → p-401b9ed3.entry.js} +1 -1
  447. package/dist/realtimekit-ui/{p-af7bffbb.entry.js → p-462d4e8f.entry.js} +1 -1
  448. package/dist/realtimekit-ui/p-47abb821.entry.js +1 -0
  449. package/dist/realtimekit-ui/{p-458e87f0.entry.js → p-481e75eb.entry.js} +1 -1
  450. package/dist/realtimekit-ui/{p-d79a49f3.entry.js → p-4a1ec4a2.entry.js} +1 -1
  451. package/dist/realtimekit-ui/{p-e1542a67.entry.js → p-4aa24ae6.entry.js} +1 -1
  452. package/dist/realtimekit-ui/{p-cf8e7495.entry.js → p-4add313e.entry.js} +1 -1
  453. package/dist/realtimekit-ui/{p-d1c91dad.entry.js → p-4bd89bff.entry.js} +1 -1
  454. package/dist/realtimekit-ui/{p-7bf3de16.entry.js → p-4ed011a1.entry.js} +1 -1
  455. package/dist/realtimekit-ui/{p-ad1157e0.entry.js → p-5361cd19.entry.js} +1 -1
  456. package/dist/realtimekit-ui/{p-727fa3f2.entry.js → p-55ec635e.entry.js} +1 -1
  457. package/dist/realtimekit-ui/{p-2438cd32.entry.js → p-56df9c19.entry.js} +1 -1
  458. package/dist/realtimekit-ui/p-5810f0c4.entry.js +1 -0
  459. package/dist/realtimekit-ui/{p-f95e96b7.entry.js → p-58366145.entry.js} +1 -1
  460. package/dist/realtimekit-ui/p-61032e04.entry.js +1 -0
  461. package/dist/realtimekit-ui/{p-64224592.entry.js → p-62a46799.entry.js} +1 -1
  462. package/dist/realtimekit-ui/{p-b04cc83e.entry.js → p-67ee7fdd.entry.js} +1 -1
  463. package/dist/realtimekit-ui/{p-e010a673.entry.js → p-6ab2602a.entry.js} +1 -1
  464. package/dist/realtimekit-ui/{p-d10a73b2.entry.js → p-6b387775.entry.js} +1 -1
  465. package/dist/realtimekit-ui/{p-d438c98e.entry.js → p-6e0f43e4.entry.js} +1 -1
  466. package/dist/realtimekit-ui/p-80b42139.entry.js +1 -0
  467. package/dist/realtimekit-ui/{p-3e34195d.entry.js → p-815d9724.entry.js} +1 -1
  468. package/dist/realtimekit-ui/{p-92f6959e.entry.js → p-893da38a.entry.js} +1 -1
  469. package/dist/realtimekit-ui/{p-1e4ffceb.entry.js → p-8cdd8307.entry.js} +1 -1
  470. package/dist/realtimekit-ui/{p-8cb45932.entry.js → p-959917cc.entry.js} +1 -1
  471. package/dist/realtimekit-ui/{p-932c7070.entry.js → p-9aac22a5.entry.js} +1 -1
  472. package/dist/realtimekit-ui/{p-b491565f.entry.js → p-9ce9b595.entry.js} +1 -1
  473. package/dist/realtimekit-ui/{p-ae82b88b.entry.js → p-9fa91df2.entry.js} +1 -1
  474. package/dist/realtimekit-ui/{p-676d4a41.entry.js → p-9fb75436.entry.js} +1 -1
  475. package/dist/realtimekit-ui/{p-1de6c388.entry.js → p-9fd3cb5e.entry.js} +1 -1
  476. package/dist/realtimekit-ui/p-B56IYWsZ.js +1 -0
  477. package/dist/realtimekit-ui/{p-3h3Qc6lD.js → p-B91vjjSJ.js} +1 -1
  478. package/dist/realtimekit-ui/{p-Dy41dnX2.js → p-BmRffDYW.js} +1 -1
  479. package/dist/realtimekit-ui/{p-BmaxriWP.js → p-CQ2xadpP.js} +1 -1
  480. package/dist/realtimekit-ui/{p-Cm8ENd-O.js → p-CfUJPUNx.js} +1 -1
  481. package/dist/realtimekit-ui/p-DI7wP4CL.js +1 -0
  482. package/dist/realtimekit-ui/{p-BTwUl5G9.js → p-MlOz-emx.js} +1 -1
  483. package/dist/realtimekit-ui/{p-2d1b8896.entry.js → p-a34a267b.entry.js} +1 -1
  484. package/dist/realtimekit-ui/p-a646f038.entry.js +1 -0
  485. package/dist/realtimekit-ui/{p-df4122cb.entry.js → p-ab63946e.entry.js} +1 -1
  486. package/dist/realtimekit-ui/p-ac4c182d.entry.js +1 -0
  487. package/dist/realtimekit-ui/{p-d089d2bb.entry.js → p-ac79ef88.entry.js} +1 -1
  488. package/dist/realtimekit-ui/{p-207aa239.entry.js → p-b27db286.entry.js} +1 -1
  489. package/dist/realtimekit-ui/{p-cffb7c0e.entry.js → p-b41fc081.entry.js} +1 -1
  490. package/dist/realtimekit-ui/{p-066359c2.entry.js → p-b46d416b.entry.js} +1 -1
  491. package/dist/realtimekit-ui/{p-7e0daf2a.entry.js → p-b9f47f88.entry.js} +1 -1
  492. package/dist/realtimekit-ui/{p-86b027f8.entry.js → p-ba7fb049.entry.js} +1 -1
  493. package/dist/realtimekit-ui/{p-9e855d5f.entry.js → p-bcc20509.entry.js} +1 -1
  494. package/dist/realtimekit-ui/{p-ecac916f.entry.js → p-bcc42454.entry.js} +1 -1
  495. package/dist/realtimekit-ui/{p-34e01092.entry.js → p-bd848924.entry.js} +1 -1
  496. package/dist/realtimekit-ui/{p-a74a3bd7.entry.js → p-bdd8ebec.entry.js} +1 -1
  497. package/dist/realtimekit-ui/{p-cb9955f1.entry.js → p-bf54cdd9.entry.js} +1 -1
  498. package/dist/realtimekit-ui/p-c6d03162.entry.js +1 -0
  499. package/dist/realtimekit-ui/{p-fc6bfa36.entry.js → p-c6f6afcd.entry.js} +1 -1
  500. package/dist/realtimekit-ui/{p-8f4c582b.entry.js → p-cd5069ea.entry.js} +1 -1
  501. package/dist/realtimekit-ui/p-ce81ffaa.entry.js +1 -0
  502. package/dist/realtimekit-ui/{p-cb9a3294.entry.js → p-d29c5a04.entry.js} +1 -1
  503. package/dist/realtimekit-ui/{p-538b2ecf.entry.js → p-d4ff2477.entry.js} +1 -1
  504. package/dist/realtimekit-ui/{p-4d2fcc46.entry.js → p-d52b8b3d.entry.js} +1 -1
  505. package/dist/realtimekit-ui/{p-9139643b.entry.js → p-d85e142c.entry.js} +1 -1
  506. package/dist/realtimekit-ui/p-d9c7c4d8.entry.js +1 -0
  507. package/dist/realtimekit-ui/{p-CKXY5S4J.js → p-dYOM3dvx.js} +1 -1
  508. package/dist/realtimekit-ui/{p-6fa0e07e.entry.js → p-da9c7efe.entry.js} +1 -1
  509. package/dist/realtimekit-ui/{p-5f9fdbf1.entry.js → p-dc7a28a6.entry.js} +1 -1
  510. package/dist/realtimekit-ui/{p-8f362ed0.entry.js → p-dd6fa0d8.entry.js} +1 -1
  511. package/dist/realtimekit-ui/{p-7b94fb4f.entry.js → p-de4ecd17.entry.js} +1 -1
  512. package/dist/realtimekit-ui/{p-691a610d.entry.js → p-e347e0d8.entry.js} +1 -1
  513. package/dist/realtimekit-ui/p-e38967d0.entry.js +1 -0
  514. package/dist/realtimekit-ui/{p-c2ea0c8a.entry.js → p-e8e6a1c8.entry.js} +1 -1
  515. package/dist/realtimekit-ui/p-f2de718a.entry.js +1 -0
  516. package/dist/realtimekit-ui/{p-bbe8664e.entry.js → p-f5377574.entry.js} +1 -1
  517. package/dist/realtimekit-ui/{p-260169b4.entry.js → p-f5809d7c.entry.js} +1 -1
  518. package/dist/realtimekit-ui/{p-2bbc4dfc.entry.js → p-f6085321.entry.js} +1 -1
  519. package/dist/realtimekit-ui/{p-255290c6.entry.js → p-fb0a9fa6.entry.js} +1 -1
  520. package/dist/realtimekit-ui/p-ff89f0f6.entry.js +1 -0
  521. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  522. package/dist/types/components/rtk-ai/rtk-ai.d.ts +2 -4
  523. package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +2 -4
  524. package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +1 -0
  525. package/dist/types/components/rtk-chat-selector/rtk-chat-selector.d.ts +1 -1
  526. package/dist/types/components/rtk-debugger-system/rtk-debugger-system.d.ts +0 -3
  527. package/dist/types/components/rtk-grid/rtk-grid.d.ts +1 -2
  528. package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +2 -4
  529. package/dist/types/components/rtk-message-list-view/rtk-message-list-view.d.ts +1 -1
  530. package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +1 -1
  531. package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +2 -4
  532. package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +2 -4
  533. package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -4
  534. package/dist/types/components/rtk-spotlight-grid/rtk-spotlight-grid.d.ts +1 -1
  535. package/dist/types/components/rtk-transcript/rtk-transcript.d.ts +1 -0
  536. package/dist/types/components/rtk-transcripts/rtk-transcripts.d.ts +14 -0
  537. package/dist/types/components.d.ts +57 -79
  538. package/dist/types/lib/audio.d.ts +6 -3
  539. package/package.json +2 -3
  540. package/dist/components/p-48gPeJ33.js +0 -1
  541. package/dist/components/p-BCuMxcZN.js +0 -1
  542. package/dist/components/p-BoeW-RxV.js +0 -1
  543. package/dist/components/p-BsxEHBW2.js +0 -1
  544. package/dist/components/p-BthnOddY.js +0 -1
  545. package/dist/components/p-CEjlztlu.js +0 -1
  546. package/dist/components/p-DX_XkIXf.js +0 -1
  547. package/dist/components/p-DjSGHZA8.js +0 -1
  548. package/dist/components/p-Dr2k6gxY.js +0 -1
  549. package/dist/components/p-UCR1gRqj.js +0 -1
  550. package/dist/components/p-xmJ8IJTr.js +0 -1
  551. package/dist/components/p-yIxFaBq2.js +0 -1
  552. package/dist/realtimekit-ui/p-0872cae4.entry.js +0 -1
  553. package/dist/realtimekit-ui/p-14204827.entry.js +0 -1
  554. package/dist/realtimekit-ui/p-27dd7099.entry.js +0 -1
  555. package/dist/realtimekit-ui/p-56a5c456.entry.js +0 -1
  556. package/dist/realtimekit-ui/p-6454c955.entry.js +0 -1
  557. package/dist/realtimekit-ui/p-8b08fbc0.entry.js +0 -1
  558. package/dist/realtimekit-ui/p-94f25ba4.entry.js +0 -1
  559. package/dist/realtimekit-ui/p-98b33e56.entry.js +0 -1
  560. package/dist/realtimekit-ui/p-BCuMxcZN.js +0 -1
  561. package/dist/realtimekit-ui/p-D9rFUUCb.js +0 -1
  562. package/dist/realtimekit-ui/p-c6be9e1f.entry.js +0 -1
  563. package/dist/realtimekit-ui/p-c8f68298.entry.js +0 -1
  564. package/dist/realtimekit-ui/p-de1b894a.entry.js +0 -1
  565. package/dist/realtimekit-ui/p-f182042f.entry.js +0 -1
  566. package/dist/realtimekit-ui/p-f5a30d5b.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as t,H as e,c as a,w as i,h as r,d as s,t as o}from"./p-BBHQOrFK.js";import{e as n,i as c}from"./p-BthnOddY.js";import{i as d,r as l,e as p,a as h}from"./p-GSFejkz7.js";import{S as f}from"./p-DL4GSZ2e.js";import{d as g}from"./p-D6vw6bT2.js";import{d as k}from"./p-BYIBbfJ8.js";import{d as v}from"./p-DHSRRtn3.js";var m=function(t,e,a,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,a,o):r(e,a))||o);return s>3&&o&&Object.defineProperty(e,a,o),o};const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=a(this,"rtkStateUpdate",7),this.play=a(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=d()},this.participantScreenshareUpdate=t=>{t.id===this.participant.id&&this.screenShareListener(t)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=n,this.t=c(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isFullScreen=!1,this.toggleFullScreen=()=>{this.isFullScreen?(p(),this.isFullScreen=!1):(l(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:t}=this.meeting;this.participant.id===t.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t){if(null!=t&&this.meeting){const{self:e}=this.meeting;this.screenShareListener=({screenShareEnabled:t,screenShareTracks:e})=>{const a=t&&null!=e.video;if(i((()=>{this.screenShareEnabled=a})),a){const t=new MediaStream;t.addTrack(e.video),null!=this.videoEl&&(this.videoEl.srcObject=t,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(t),t.id===e.id?t.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var t,e;const a=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(e=this.meeting)||void 0===e?void 0:e.self.id),i=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),o=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return r(s,{key:"10646f5ea7b7b9bc162c2a98af07928a0f68f605",class:{isSelf:a}},r("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},r("video",{key:"13e87cfee55fdd6d45a72ec55792fbbfefdc5206",ref:t=>this.videoEl=t,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:"screen-share-video-"+this.participant.id})),r("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!a&&h()&&r("rtk-tooltip",{key:"97ba6869139126f0114aee3239999bfe1172a798",label:i},r("rtk-button",{key:"0769449ffcba69117d10a7346e4881c207e7ac6f",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:i},r("rtk-icon",{key:"508cf201f0b2e6da061e35dff4d3899f1da0749a",icon:o,"aria-hidden":!0,tabIndex:-1})))),a&&r("div",{id:"self-message",key:"self-message"},r("h3",{key:"6f055da4722c11893e3f8640bddad7f6844838da"},this.t("screenshare.shared")),r("div",{key:"96fa5f8b47cef2a2a58352e4275c3c325f22a465",class:"actions"},null!=this.meeting&&r("rtk-button",{key:"144c3908476ac18d1ffcc1282a46a4d7fad698c2",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},r("rtk-icon",{key:"7a6f710ccb916ca78edbb5daa9b6bcf3547ed54e",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),r("rtk-button",{key:"1667e04e5a22c3edfdab9300ffca06df7eba4948",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},r("rtk-icon",{key:"6140671792e626d5de181861ee4c7aef1dd11e3e",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),r("slot",{key:"beeecb6fe5a1f46d259a86e698c31fb477949bf3"}))}get host(){return this}static get watchers(){return{participant:[{participantChanged: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%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}"}},[257,"rtk-screenshare-view",{hideFullScreenButton:[4,"hide-full-screen-button"],nameTagPosition:[513,"name-tag-position"],participant:[16],meeting:[16],variant:[513],size:[513],iconPack:[16],t:[16],videoExpanded:[32],screenShareEnabled:[32],isFullScreen:[32],remoteControlInfo:[32]},void 0,{participant:[{participantChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-screenshare-view","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screenshare-view":customElements.get(o(t))||customElements.define(o(t),b);break;case"rtk-button":customElements.get(o(t))||g();break;case"rtk-icon":customElements.get(o(t))||k();break;case"rtk-tooltip":customElements.get(o(t))||v()}}))}m([f()],b.prototype,"meeting",void 0),m([f()],b.prototype,"iconPack",void 0),m([f()],b.prototype,"t",void 0),u();const x=b,w=u;export{x as RtkScreenshareView,w as defineCustomElement}
1
+ import{p as t,H as e,c as a,w as i,h as r,d as s,t as o}from"./p-BBHQOrFK.js";import{e as n,i as c}from"./p-DhwysA2e.js";import{i as d,r as l,e as p,a as h}from"./p-GSFejkz7.js";import{S as f}from"./p-bRRQr4xn.js";import{d as g}from"./p-D6vw6bT2.js";import{d as k}from"./p-BYIBbfJ8.js";import{d as v}from"./p-DHSRRtn3.js";var b=function(t,e,a,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,a,o):r(e,a))||o);return s>3&&o&&Object.defineProperty(e,a,o),o};const m=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=a(this,"rtkStateUpdate",7),this.play=a(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=d()},this.participantScreenshareUpdate=t=>{t.id===this.participant.id&&this.screenShareListener(t)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=n,this.t=c(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isFullScreen=!1,this.toggleFullScreen=()=>{this.isFullScreen?(p(),this.isFullScreen=!1):(l(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:t}=this.meeting;this.participant.id===t.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t){if(null!=t&&this.meeting){const{self:e}=this.meeting;this.screenShareListener=({screenShareEnabled:t,screenShareTracks:e})=>{const a=t&&null!=e.video;if(i((()=>{this.screenShareEnabled=a})),a){const t=new MediaStream;t.addTrack(e.video),null!=this.videoEl&&(this.videoEl.srcObject=t,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(t),t.id===e.id?t.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var t,e;const a=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(e=this.meeting)||void 0===e?void 0:e.self.id),i=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),o=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return r(s,{key:"10646f5ea7b7b9bc162c2a98af07928a0f68f605",class:{isSelf:a}},r("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},r("video",{key:"13e87cfee55fdd6d45a72ec55792fbbfefdc5206",ref:t=>this.videoEl=t,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:"screen-share-video-"+this.participant.id})),r("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!a&&h()&&r("rtk-tooltip",{key:"97ba6869139126f0114aee3239999bfe1172a798",label:i},r("rtk-button",{key:"0769449ffcba69117d10a7346e4881c207e7ac6f",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:i},r("rtk-icon",{key:"508cf201f0b2e6da061e35dff4d3899f1da0749a",icon:o,"aria-hidden":!0,tabIndex:-1})))),a&&r("div",{id:"self-message",key:"self-message"},r("h3",{key:"6f055da4722c11893e3f8640bddad7f6844838da"},this.t("screenshare.shared")),r("div",{key:"96fa5f8b47cef2a2a58352e4275c3c325f22a465",class:"actions"},null!=this.meeting&&r("rtk-button",{key:"144c3908476ac18d1ffcc1282a46a4d7fad698c2",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},r("rtk-icon",{key:"7a6f710ccb916ca78edbb5daa9b6bcf3547ed54e",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),r("rtk-button",{key:"1667e04e5a22c3edfdab9300ffca06df7eba4948",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},r("rtk-icon",{key:"6140671792e626d5de181861ee4c7aef1dd11e3e",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),r("slot",{key:"beeecb6fe5a1f46d259a86e698c31fb477949bf3"}))}get host(){return this}static get watchers(){return{participant:[{participantChanged: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%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}"}},[257,"rtk-screenshare-view",{hideFullScreenButton:[4,"hide-full-screen-button"],nameTagPosition:[513,"name-tag-position"],participant:[16],meeting:[16],variant:[513],size:[513],iconPack:[16],t:[16],videoExpanded:[32],screenShareEnabled:[32],isFullScreen:[32],remoteControlInfo:[32]},void 0,{participant:[{participantChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-screenshare-view","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screenshare-view":customElements.get(o(t))||customElements.define(o(t),m);break;case"rtk-button":customElements.get(o(t))||g();break;case"rtk-icon":customElements.get(o(t))||k();break;case"rtk-tooltip":customElements.get(o(t))||v()}}))}b([f()],m.prototype,"meeting",void 0),b([f()],m.prototype,"iconPack",void 0),b([f()],m.prototype,"t",void 0),u();const x=m,w=u;export{x as RtkScreenshareView,w as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as r}from"./p-BRPrcA0X.js";const s=o,p=r;export{s as RtkSettingsAudio,p as defineCustomElement}
1
+ import{R as m,d as o}from"./p-mgE9e3Hm.js";const s=m,p=o;export{s as RtkSettingsAudio,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,c as s,h as o,d as i,t as n}from"./p-BBHQOrFK.js";import{e as r,i as a}from"./p-BthnOddY.js";import{S as c}from"./p-DL4GSZ2e.js";import{d as f}from"./p-DPxfGgCX.js";import{d as l}from"./p-BYIBbfJ8.js";import{d as m}from"./p-DXSMSSbW.js";var p=function(t,e,s,o){var i,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(n<3?i(r):n>3?i(e,s,r):i(e,s))||r);return n>3&&r&&Object.defineProperty(e,s,r),r};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=r,this.t=a()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return o(i,{key:"921afc41ed4a6019ff882c896855ab455b3edfb7",title:t},o("rtk-controlbar-button",{key:"88d4194fee24f1b96769e06e3a935d516ad543b0",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}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-settings-toggle",{variant:[513],states:[16],size:[513],iconPack:[16],t:[16]}]);function k(){"undefined"!=typeof customElements&&["rtk-settings-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-settings-toggle":customElements.get(n(t))||customElements.define(n(t),b);break;case"rtk-controlbar-button":customElements.get(n(t))||f();break;case"rtk-icon":customElements.get(n(t))||l();break;case"rtk-spinner":customElements.get(n(t))||m()}}))}p([c()],b.prototype,"states",void 0),p([c()],b.prototype,"iconPack",void 0),p([c()],b.prototype,"t",void 0),k();const u=b,d=k;export{u as RtkSettingsToggle,d as defineCustomElement}
1
+ import{p as t,H as s,c as e,h as o,d as i,t as r}from"./p-BBHQOrFK.js";import{e as n,i as a}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d as l}from"./p-CFBS-gbK.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as m}from"./p-B0SC1Zj-.js";var p=function(t,s,e,o){var i,r=arguments.length,n=r<3?s:null===o?o=Object.getOwnPropertyDescriptor(s,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(n=(r<3?i(n):r>3?i(s,e,n):i(s,e))||n);return r>3&&n&&Object.defineProperty(s,e,n),n};const b=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=a()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return o(i,{key:"921afc41ed4a6019ff882c896855ab455b3edfb7",title:t},o("rtk-controlbar-button",{key:"88d4194fee24f1b96769e06e3a935d516ad543b0",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}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-settings-toggle",{variant:[513],states:[16],size:[513],iconPack:[16],t:[16]}]);function k(){"undefined"!=typeof customElements&&["rtk-settings-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-settings-toggle":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,"states",void 0),p([c()],b.prototype,"iconPack",void 0),p([c()],b.prototype,"t",void 0),k();const u=b,h=k;export{u as RtkSettingsToggle,h as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as p}from"./p-Bjmpb3KI.js";const s=o,m=p;export{s as RtkSettingsVideo,m as defineCustomElement}
1
+ import{R as o,d as s}from"./p-CMyYEHgz.js";const p=o,r=s;export{p as RtkSettingsVideo,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as r,c as o,h as s,d as a,t as i}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-BthnOddY.js";import{S as c}from"./p-DL4GSZ2e.js";import{d}from"./p-nad0N2DI.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-fEIEB26m.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-C9KgVl-d.js";import{d as k}from"./p-Bqf3TobZ.js";import{d as u}from"./p-BRPrcA0X.js";import{d as g}from"./p-Bjmpb3KI.js";import{d as m}from"./p-UCR1gRqj.js";import{d as v}from"./p-kwrAj1JQ.js";var w=function(t,r,o,s){var a,i=arguments.length,e=i<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(e=(i<3?a(e):i>3?a(r,o,e):a(r,o))||e);return i>3&&e&&Object.defineProperty(r,o,e),e};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(a,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},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)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(i(t))||customElements.define(i(t),f);break;case"rtk-audio-visualizer":customElements.get(i(t))||d();break;case"rtk-button":customElements.get(i(t))||l();break;case"rtk-camera-selector":customElements.get(i(t))||p();break;case"rtk-icon":customElements.get(i(t))||b();break;case"rtk-microphone-selector":customElements.get(i(t))||h();break;case"rtk-participant-tile":customElements.get(i(t))||k();break;case"rtk-settings-audio":customElements.get(i(t))||u();break;case"rtk-settings-video":customElements.get(i(t))||g();break;case"rtk-speaker-selector":customElements.get(i(t))||m();break;case"rtk-switch":customElements.get(i(t))||v()}}))}w([c()],f.prototype,"meeting",void 0),w([c()],f.prototype,"states",void 0),w([c()],f.prototype,"iconPack",void 0),w([c()],f.prototype,"t",void 0),x();const y=f,j=x;export{y as RtkSettings,j as defineCustomElement}
1
+ import{p as t,H as r,c as o,h as s,d as i,t as a}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d}from"./p-Dh8N1Wv8.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-CW-FAeNP.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-BxPmWGqJ.js";import{d as k}from"./p-BXHUa6x_.js";import{d as u}from"./p-mgE9e3Hm.js";import{d as g}from"./p-CMyYEHgz.js";import{d as m}from"./p-CHOs-ZsL.js";import{d as v}from"./p-5i84b0Gw.js";var w=function(t,r,o,s){var i,a=arguments.length,e=a<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(e=(a<3?i(e):a>3?i(r,o,e):i(r,o))||e);return a>3&&e&&Object.defineProperty(r,o,e),e};const x=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(i,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},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)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(a(t))||customElements.define(a(t),x);break;case"rtk-audio-visualizer":customElements.get(a(t))||d();break;case"rtk-button":customElements.get(a(t))||l();break;case"rtk-camera-selector":customElements.get(a(t))||p();break;case"rtk-icon":customElements.get(a(t))||b();break;case"rtk-microphone-selector":customElements.get(a(t))||h();break;case"rtk-participant-tile":customElements.get(a(t))||k();break;case"rtk-settings-audio":customElements.get(a(t))||u();break;case"rtk-settings-video":customElements.get(a(t))||g();break;case"rtk-speaker-selector":customElements.get(a(t))||m();break;case"rtk-switch":customElements.get(a(t))||v()}}))}w([c()],x.prototype,"meeting",void 0),w([c()],x.prototype,"states",void 0),w([c()],x.prototype,"iconPack",void 0),w([c()],x.prototype,"t",void 0),f();const y=x,j=f;export{y as RtkSettings,j as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,c as i,h as r,F as o,d as s,t as a}from"./p-BBHQOrFK.js";import{s as n}from"./p-CJsXePY3.js";import{c,e as l,i as d}from"./p-BthnOddY.js";import{R as p}from"./p-CBJjerDR.js";import{g as h}from"./p-Dguuxuf6.js";import{S as m}from"./p-DL4GSZ2e.js";import{g as k}from"./p-vBfDtD_u.js";import{d as v}from"./p-D6vw6bT2.js";import{d as u}from"./p-fEIEB26m.js";import{d as g}from"./p-BYIBbfJ8.js";import{d as b}from"./p-C9KgVl-d.js";import{d as f}from"./p-UCR1gRqj.js";import{d as x}from"./p-DXSMSSbW.js";var w=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const y=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=c(),this.iconPack=l,this.t=d(),this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"connected"===t&&(this.joinError=void 0,this.joinErrorCode=void 0),"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,e,i;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){if("connected"!==this.connectionState)return void(this.connectionState&&(this.joinError=this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")));this.isJoining=!0,this.joinError=void 0,this.joinErrorCode=void 0,null===(e=this.meeting)||void 0===e||e.self.setName(this.displayName),h.setItem("rtk-display-name",this.displayName);try{await(null===(i=this.meeting)||void 0===i?void 0:i.join())}catch(t){this.isJoining=!1;const{message:e,code:i}=k(this.t,t);this.joinError=e,this.joinErrorCode=i}}}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting.meta.removeListener("socketConnectionUpdate",this.socketStateUpdate)}componentDidLoad(){var t;null===(t=this.inputEl)||void 0===t||t.focus()}meetingChanged(t){var e,i,r;t&&(this.connectionState=null===(e=t.meta.socketState)||void 0===e?void 0:e.state,this.canEditName=null===(i=t.self.permissions.canEditDisplayName)||void 0===i||i,this.displayName=(null===(r=t.self.name)||void 0===r?void 0:r.trim())||(this.canEditName?"":"Participant"),t.meta.addListener("socketConnectionUpdate",this.socketStateUpdate))}render(){var t,e,i,a,c,l;if(!this.meeting)return;const d=!!this.connectionState&&"connected"!==this.connectionState&&!this.joinError,h=this.joinError?this.joinError:this.t("failed"===this.connectionState?"network.lost_extended":"network.lost"),m=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,k={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},v=null===(a=null===(i=null===(e=this.meeting)||void 0===e?void 0:e.meta)||void 0===i?void 0:i.meetingTitle)||void 0===a?void 0:a.trim();return r(s,null,r("div",{class:"container"},r("div",{class:"container-tile"},r(p,{element:"rtk-participant-tile",defaults:k,props:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md",isPreview:!0},childProps:{participant:null===(l=this.meeting)||void 0===l?void 0:l.self,size:"md"},deepProps:!0}),r("div",{class:"media-selectors"},r("rtk-microphone-selector",Object.assign({},k,{variant:"inline"})),r("rtk-camera-selector",Object.assign({},k,{variant:"inline"})),r("rtk-speaker-selector",Object.assign({},k,{variant:"inline"})))),r("div",{class:"metadata"},v&&""!==v&&r("div",{class:"meeting-title"},v),this.canEditName?r(o,null,r("div",{class:"join-as"},this.t("setup_screen.join_in_as")),r("input",{placeholder:this.t("setup_screen.your_name"),value:this.displayName,spellcheck:!1,autoFocus:!0,ref:t=>{this.inputEl=t},onInput:t=>{this.displayName=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.join()}})):r("div",{class:"uneditable-name"},r("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",r("div",{class:"name"},n(this.displayName,20))),r("rtk-button",{size:"lg",kind:"wide",onClick:this.join,disabled:m},this.isJoining?r("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),(this.joinError||d)&&r("div",{class:"no-network-badge",role:"alert"},r("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected}),h),this.meeting&&this.joinError&&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")),this.joinErrorCode&&r("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",this.joinErrorCode))))}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{box-sizing:border-box;padding:var(--rtk-space-4, 16px);height:100%;min-height:100%;width:100%;display:flex;place-items:center;justify-content:center;--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-700, 44 44 44))}.container{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-evenly;gap:var(--rtk-space-4, 16px)}.container-tile{display:flex;height:100%;width:100%;max-width:584px;flex-direction:column;gap:var(--rtk-space-2, 8px)}.metadata{display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;align-items:center;text-align:center}.meeting-title{margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:24px;font-weight:500}.join-as{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:16px;letter-spacing:-0.025em;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.uneditable-name{margin-bottom:var(--rtk-space-6, 24px)}.uneditable-name .text,.uneditable-name .name{display:inline-block}.uneditable-name .name{font-size:16px;font-weight:500}input{margin-bottom:var(--rtk-space-6, 24px);display:block;height:var(--rtk-space-10, 40px);width:100%;max-width:var(--rtk-space-80, 320px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));box-sizing:border-box;font-size:16px;outline:2px solid transparent;outline-offset:2px;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}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}rtk-spinner{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--icon-size:var(--rtk-space-8, 32px)}:host([size='sm']) .container,:host([size='md']) .container{height:100%;flex-direction:column;justify-content:space-evenly}:host([size='sm']) .container-tile,:host([size='md']) .container-tile{height:-moz-min-content;height:min-content;flex-direction:column;justify-content:center}rtk-participant-tile{height:auto;width:100%;max-width:584px}.media-selectors{display:flex;flex-direction:column;justify-content:space-between}.media-selectors .row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr))}.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)}.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))}"}},[1,"rtk-setup-screen",{meeting:[16],states:[16],size:[513],config:[16],iconPack:[16],t:[16],displayName:[32],isJoining:[32],joinError:[32],joinErrorCode:[32],canEditName:[32],canProduceAudio:[32],connectionState:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function j(){"undefined"!=typeof customElements&&["rtk-setup-screen","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-speaker-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-setup-screen":customElements.get(a(t))||customElements.define(a(t),y);break;case"rtk-button":customElements.get(a(t))||v();break;case"rtk-camera-selector":customElements.get(a(t))||u();break;case"rtk-icon":customElements.get(a(t))||g();break;case"rtk-microphone-selector":customElements.get(a(t))||b();break;case"rtk-speaker-selector":customElements.get(a(t))||f();break;case"rtk-spinner":customElements.get(a(t))||x()}}))}w([m()],y.prototype,"meeting",void 0),w([m()],y.prototype,"states",void 0),w([m()],y.prototype,"config",void 0),w([m()],y.prototype,"iconPack",void 0),w([m()],y.prototype,"t",void 0),j();const z=y,E=j;export{z as RtkSetupScreen,E as defineCustomElement}
1
+ import{p as t,H as e,c as i,h as r,F as o,d as s,t as a}from"./p-BBHQOrFK.js";import{s as n}from"./p-CJsXePY3.js";import{c,e as l,i as d}from"./p-DhwysA2e.js";import{R as p}from"./p-CBJjerDR.js";import{g as h}from"./p-Dguuxuf6.js";import{S as m}from"./p-bRRQr4xn.js";import{g as k}from"./p-vBfDtD_u.js";import{d as v}from"./p-D6vw6bT2.js";import{d as u}from"./p-CW-FAeNP.js";import{d as g}from"./p-BYIBbfJ8.js";import{d as b}from"./p-BxPmWGqJ.js";import{d as f}from"./p-CHOs-ZsL.js";import{d as x}from"./p-B0SC1Zj-.js";var w=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const y=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=c(),this.iconPack=l,this.t=d(),this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"connected"===t&&(this.joinError=void 0,this.joinErrorCode=void 0),"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,e,i;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){if("connected"!==this.connectionState)return void(this.connectionState&&(this.joinError=this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")));this.isJoining=!0,this.joinError=void 0,this.joinErrorCode=void 0,null===(e=this.meeting)||void 0===e||e.self.setName(this.displayName),h.setItem("rtk-display-name",this.displayName);try{await(null===(i=this.meeting)||void 0===i?void 0:i.join())}catch(t){this.isJoining=!1;const{message:e,code:i}=k(this.t,t);this.joinError=e,this.joinErrorCode=i}}}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting.meta.removeListener("socketConnectionUpdate",this.socketStateUpdate)}componentDidLoad(){var t;null===(t=this.inputEl)||void 0===t||t.focus()}meetingChanged(t){var e,i,r;t&&(this.connectionState=null===(e=t.meta.socketState)||void 0===e?void 0:e.state,this.canEditName=null===(i=t.self.permissions.canEditDisplayName)||void 0===i||i,this.displayName=(null===(r=t.self.name)||void 0===r?void 0:r.trim())||(this.canEditName?"":"Participant"),t.meta.addListener("socketConnectionUpdate",this.socketStateUpdate))}render(){var t,e,i,a,c,l;if(!this.meeting)return;const d=!!this.connectionState&&"connected"!==this.connectionState&&!this.joinError,h=this.joinError?this.joinError:this.t("failed"===this.connectionState?"network.lost_extended":"network.lost"),m=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,k={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},v=null===(a=null===(i=null===(e=this.meeting)||void 0===e?void 0:e.meta)||void 0===i?void 0:i.meetingTitle)||void 0===a?void 0:a.trim();return r(s,null,r("div",{class:"container"},r("div",{class:"container-tile"},r(p,{element:"rtk-participant-tile",defaults:k,props:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md",isPreview:!0},childProps:{participant:null===(l=this.meeting)||void 0===l?void 0:l.self,size:"md"},deepProps:!0}),r("div",{class:"media-selectors"},r("rtk-microphone-selector",Object.assign({},k,{variant:"inline"})),r("rtk-camera-selector",Object.assign({},k,{variant:"inline"})),r("rtk-speaker-selector",Object.assign({},k,{variant:"inline"})))),r("div",{class:"metadata"},v&&""!==v&&r("div",{class:"meeting-title"},v),this.canEditName?r(o,null,r("div",{class:"join-as"},this.t("setup_screen.join_in_as")),r("input",{placeholder:this.t("setup_screen.your_name"),value:this.displayName,spellcheck:!1,autoFocus:!0,ref:t=>{this.inputEl=t},onInput:t=>{this.displayName=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.join()}})):r("div",{class:"uneditable-name"},r("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",r("div",{class:"name"},n(this.displayName,20))),r("rtk-button",{size:"lg",kind:"wide",onClick:this.join,disabled:m},this.isJoining?r("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),(this.joinError||d)&&r("div",{class:"no-network-badge",role:"alert"},r("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected}),h),this.meeting&&this.joinError&&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")),this.joinErrorCode&&r("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",this.joinErrorCode))))}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{box-sizing:border-box;padding:var(--rtk-space-4, 16px);height:100%;min-height:100%;width:100%;display:flex;place-items:center;justify-content:center;--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-700, 44 44 44))}.container{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-evenly;gap:var(--rtk-space-4, 16px)}.container-tile{display:flex;height:100%;width:100%;max-width:584px;flex-direction:column;gap:var(--rtk-space-2, 8px)}.metadata{display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;align-items:center;text-align:center}.meeting-title{margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:24px;font-weight:500}.join-as{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:16px;letter-spacing:-0.025em;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.uneditable-name{margin-bottom:var(--rtk-space-6, 24px)}.uneditable-name .text,.uneditable-name .name{display:inline-block}.uneditable-name .name{font-size:16px;font-weight:500}input{margin-bottom:var(--rtk-space-6, 24px);display:block;height:var(--rtk-space-10, 40px);width:100%;max-width:var(--rtk-space-80, 320px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));box-sizing:border-box;font-size:16px;outline:2px solid transparent;outline-offset:2px;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}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}rtk-spinner{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--icon-size:var(--rtk-space-8, 32px)}:host([size='sm']) .container,:host([size='md']) .container{height:100%;flex-direction:column;justify-content:space-evenly}:host([size='sm']) .container-tile,:host([size='md']) .container-tile{height:-moz-min-content;height:min-content;flex-direction:column;justify-content:center}rtk-participant-tile{height:auto;width:100%;max-width:584px}.media-selectors{display:flex;flex-direction:column;justify-content:space-between}.media-selectors .row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr))}.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)}.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))}"}},[1,"rtk-setup-screen",{meeting:[16],states:[16],size:[513],config:[16],iconPack:[16],t:[16],displayName:[32],isJoining:[32],joinError:[32],joinErrorCode:[32],canEditName:[32],canProduceAudio:[32],connectionState:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function j(){"undefined"!=typeof customElements&&["rtk-setup-screen","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-speaker-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-setup-screen":customElements.get(a(t))||customElements.define(a(t),y);break;case"rtk-button":customElements.get(a(t))||v();break;case"rtk-camera-selector":customElements.get(a(t))||u();break;case"rtk-icon":customElements.get(a(t))||g();break;case"rtk-microphone-selector":customElements.get(a(t))||b();break;case"rtk-speaker-selector":customElements.get(a(t))||f();break;case"rtk-spinner":customElements.get(a(t))||x()}}))}w([m()],y.prototype,"meeting",void 0),w([m()],y.prototype,"states",void 0),w([m()],y.prototype,"config",void 0),w([m()],y.prototype,"iconPack",void 0),w([m()],y.prototype,"t",void 0),j();const z=y,C=j;export{z as RtkSetupScreen,C as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-D_tCWiMP.js";const t=o,p=s;export{t as RtkSidebarUi,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-Ryaxu6vl.js";const a=o,p=s;export{a as RtkSidebarUi,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as s,c as i,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{c as o,e as n,i as l}from"./p-BthnOddY.js";import{c,d as p,a as h,b as d,e as m}from"./p-D9HGXWKc.js";import{S as k}from"./p-DL4GSZ2e.js";import{R as u}from"./p-CBJjerDR.js";import{d as b}from"./p-Dy1vyj0N.js";import{d as v}from"./p-DcBUj_Ju.js";import{d as g}from"./p-D6vw6bT2.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as w}from"./p-oNFda96T.js";import{d as x}from"./p-DfGTdsn0.js";import{d as j}from"./p-Chf25Wxh.js";import{d as C}from"./p-BbtnaCk4.js";import{d as y}from"./p-D_tCWiMP.js";import{d as E}from"./p-DHSRRtn3.js";var S=function(t,s,i,a){var e,r=arguments.length,o=r<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(o=(r<3?e(o):r>3?e(s,i,o):e(s,i))||o);return r>3&&o&&Object.defineProperty(s,i,o),o};const D=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=o(),this.iconPack=n,this.t=l(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>!(t.id in this.meeting.self.config.controlBar.elements)||this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var s,i;t&&(this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(i=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===i||i.on("stageStatusUpdate",this.onStageStatusUpdate))}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const s=[];c(t)&&s.push({id:"chat",name:this.t("chat")}),p(t)&&s.push({id:"polls",name:this.t("polls")}),h(t)&&s.push({id:"participants",name:this.t("participants")}),d(t)&&s.push({id:"plugins",name:this.t("plugins")}),m(t)&&s.push({id:"ai",name:this.t("ai.meeting_ai")}),this.enabledSections=s}render(){var t;if(!this.meeting)return null;const s={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=s.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?a(e,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},a("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&a("div",{class:"pinned-state",slot:"pinned-state"},a("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},a("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===s.states.sidebar&&a(u,{element:"rtk-chat",defaults:s,props:{slot:"chat"}}),"polls"===s.states.sidebar&&a("rtk-polls",Object.assign({},s,{slot:"polls"})),"participants"===s.states.sidebar&&a(u,{element:"rtk-participants",defaults:s,props:{slot:"participants"}}),"plugins"===s.states.sidebar&&a("rtk-plugins",Object.assign({},s,{slot:"plugins"})),"ai"===s.states.sidebar&&a("rtk-ai",Object.assign({},s,{slot:"ai"})))):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged: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{margin-right:var(--rtk-space-0, 0px);height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-4, 16px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}"}},[1,"rtk-sidebar",{enabledSections:[1040],defaultSection:[1,"default-section"],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],size:[513],view:[513],currentTab:[32],isFloating:[32],enablePinning:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}]);function B(){"undefined"!=typeof customElements&&["rtk-sidebar","rtk-ai","rtk-ai-transcriptions","rtk-button","rtk-icon","rtk-plugins","rtk-poll","rtk-poll-form","rtk-polls","rtk-sidebar-ui","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-sidebar":customElements.get(r(t))||customElements.define(r(t),D);break;case"rtk-ai":customElements.get(r(t))||b();break;case"rtk-ai-transcriptions":customElements.get(r(t))||v();break;case"rtk-button":customElements.get(r(t))||g();break;case"rtk-icon":customElements.get(r(t))||f();break;case"rtk-plugins":customElements.get(r(t))||w();break;case"rtk-poll":customElements.get(r(t))||x();break;case"rtk-poll-form":customElements.get(r(t))||j();break;case"rtk-polls":customElements.get(r(t))||C();break;case"rtk-sidebar-ui":customElements.get(r(t))||y();break;case"rtk-tooltip":customElements.get(r(t))||E()}}))}S([k()],D.prototype,"meeting",void 0),S([k()],D.prototype,"states",void 0),S([k()],D.prototype,"config",void 0),S([k()],D.prototype,"iconPack",void 0),S([k()],D.prototype,"t",void 0),B();const O=D,R=B;export{O as RtkSidebar,R as defineCustomElement}
1
+ import{p as t,H as s,c as i,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{c as o,e as n,i as l}from"./p-DhwysA2e.js";import{c,d as p,a as h,b as d,e as m}from"./p-D9HGXWKc.js";import{S as k}from"./p-bRRQr4xn.js";import{R as b}from"./p-CBJjerDR.js";import{d as u}from"./p-B1oyTNvb.js";import{d as v}from"./p-CAMtxcI_.js";import{d as g}from"./p-D6vw6bT2.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as w}from"./p-CU7xL-hP.js";import{d as x}from"./p-DjOiGHfI.js";import{d as j}from"./p-BvLjh5Yy.js";import{d as y}from"./p-Bn6JMUc9.js";import{d as C}from"./p-Ryaxu6vl.js";import{d as E}from"./p-DHSRRtn3.js";var S=function(t,s,i,a){var e,r=arguments.length,o=r<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(o=(r<3?e(o):r>3?e(s,i,o):e(s,i))||o);return r>3&&o&&Object.defineProperty(s,i,o),o};const R=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=o(),this.iconPack=n,this.t=l(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>!(t.id in this.meeting.self.config.controlBar.elements)||this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var s,i;t&&(this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(i=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===i||i.on("stageStatusUpdate",this.onStageStatusUpdate))}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const s=[];c(t)&&s.push({id:"chat",name:this.t("chat")}),p(t)&&s.push({id:"polls",name:this.t("polls")}),h(t)&&s.push({id:"participants",name:this.t("participants")}),d(t)&&s.push({id:"plugins",name:this.t("plugins")}),m(t)&&s.push({id:"ai",name:this.t("ai.meeting_ai")}),this.enabledSections=s}render(){var t;if(!this.meeting)return null;const s={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=s.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?a(e,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},a("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&a("div",{class:"pinned-state",slot:"pinned-state"},a("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},a("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===s.states.sidebar&&a(b,{element:"rtk-chat",defaults:s,props:{slot:"chat"}}),"polls"===s.states.sidebar&&a("rtk-polls",Object.assign({},s,{slot:"polls"})),"participants"===s.states.sidebar&&a(b,{element:"rtk-participants",defaults:s,props:{slot:"participants"}}),"plugins"===s.states.sidebar&&a("rtk-plugins",Object.assign({},s,{slot:"plugins"})),"ai"===s.states.sidebar&&a("rtk-ai",Object.assign({},s,{slot:"ai"})))):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged: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{margin-right:var(--rtk-space-0, 0px);height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-4, 16px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}"}},[1,"rtk-sidebar",{enabledSections:[1040],defaultSection:[1,"default-section"],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],size:[513],view:[513],currentTab:[32],isFloating:[32],enablePinning:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}]);function B(){"undefined"!=typeof customElements&&["rtk-sidebar","rtk-ai","rtk-ai-transcriptions","rtk-button","rtk-icon","rtk-plugins","rtk-poll","rtk-poll-form","rtk-polls","rtk-sidebar-ui","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-sidebar":customElements.get(r(t))||customElements.define(r(t),R);break;case"rtk-ai":customElements.get(r(t))||u();break;case"rtk-ai-transcriptions":customElements.get(r(t))||v();break;case"rtk-button":customElements.get(r(t))||g();break;case"rtk-icon":customElements.get(r(t))||f();break;case"rtk-plugins":customElements.get(r(t))||w();break;case"rtk-poll":customElements.get(r(t))||x();break;case"rtk-poll-form":customElements.get(r(t))||j();break;case"rtk-polls":customElements.get(r(t))||y();break;case"rtk-sidebar-ui":customElements.get(r(t))||C();break;case"rtk-tooltip":customElements.get(r(t))||E()}}))}S([k()],R.prototype,"meeting",void 0),S([k()],R.prototype,"states",void 0),S([k()],R.prototype,"config",void 0),S([k()],R.prototype,"iconPack",void 0),S([k()],R.prototype,"t",void 0),B();const O=R,D=B;export{O as RtkSidebar,D as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,h as e,d as s,t as n}from"./p-BBHQOrFK.js";import{c as o,e as a,i as r}from"./p-BthnOddY.js";import{R as h}from"./p-CBJjerDR.js";import{u as c}from"./p-CmmyVCoN.js";import{i as p}from"./p-FdeAvICb.js";import{S as l}from"./p-DL4GSZ2e.js";var d=function(t,i,e,s){var n,o=arguments.length,a=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(o<3?n(a):o>3?n(i,e,a):n(i,e))||a);return o>3&&a&&Object.defineProperty(i,e,a),a};const m=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.participants=[],this.aspectRatio="16:9",this.gap=8,this.config=o(),this.iconPack=a,this.t=r(),this.dimensions={width:0,height:0},this.setHostDimensions=()=>{const{clientWidth:t,clientHeight:i}=this.host;this.dimensions={width:t,height:i}}}connectedCallback(){this.resizeObserver=new p(this.setHostDimensions),this.resizeObserver.observe(this.host),this.meetingChanged(this.meeting)}meetingChanged(t){const i=null==t?void 0:t.meta;i&&(this.mediaConnection=Object.assign({},i.mediaState))}disconnectedCallback(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},{width:i,height:n,getPosition:o}=c({dimensions:this.dimensions,count:this.participants.length,aspectRatio:this.aspectRatio,gap:this.gap});return e(s,null,e("slot",null,this.participants.map(((s,a)=>{const{top:r,left:c}=o(a);return e(h,{element:"rtk-participant-tile",defaults:t,props:{participant:s,style:{position:"absolute",top:r+"px",left:c+"px",width:i+"px",height:n+"px"},key:s.id,"data-participant":s.id,mediaConnection:this.mediaConnection},childProps:{participant:s},deepProps:!0})}))))}get host(){return this}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{position:relative;display:block;height:100%;width:100%}"}},[257,"rtk-simple-grid",{participants:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],dimensions:[32],mediaConnection:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-simple-grid"].forEach((t=>{"rtk-simple-grid"===t&&(customElements.get(n(t))||customElements.define(n(t),m))}))}d([l()],m.prototype,"meeting",void 0),d([l()],m.prototype,"states",void 0),d([l()],m.prototype,"config",void 0),d([l()],m.prototype,"iconPack",void 0),d([l()],m.prototype,"t",void 0),g();const f=m,u=g;export{f as RtkSimpleGrid,u as defineCustomElement}
1
+ import{p as t,H as i,h as e,d as s,t as n}from"./p-BBHQOrFK.js";import{c as o,e as a,i as r}from"./p-DhwysA2e.js";import{R as h}from"./p-CBJjerDR.js";import{u as c}from"./p-CmmyVCoN.js";import{i as p}from"./p-FdeAvICb.js";import{S as l}from"./p-bRRQr4xn.js";var m=function(t,i,e,s){var n,o=arguments.length,a=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(o<3?n(a):o>3?n(i,e,a):n(i,e))||a);return o>3&&a&&Object.defineProperty(i,e,a),a};const d=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.participants=[],this.aspectRatio="16:9",this.gap=8,this.config=o(),this.iconPack=a,this.t=r(),this.dimensions={width:0,height:0},this.setHostDimensions=()=>{const{clientWidth:t,clientHeight:i}=this.host;this.dimensions={width:t,height:i}}}connectedCallback(){this.resizeObserver=new p(this.setHostDimensions),this.resizeObserver.observe(this.host),this.meetingChanged(this.meeting)}meetingChanged(t){const i=null==t?void 0:t.meta;i&&(this.mediaConnection=Object.assign({},i.mediaState))}disconnectedCallback(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},{width:i,height:n,getPosition:o}=c({dimensions:this.dimensions,count:this.participants.length,aspectRatio:this.aspectRatio,gap:this.gap});return e(s,null,e("slot",null,this.participants.map(((s,a)=>{const{top:r,left:c}=o(a);return e(h,{element:"rtk-participant-tile",defaults:t,props:{participant:s,style:{position:"absolute",top:r+"px",left:c+"px",width:i+"px",height:n+"px"},key:s.id,"data-participant":s.id,mediaConnection:this.mediaConnection},childProps:{participant:s},deepProps:!0})}))))}get host(){return this}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{position:relative;display:block;height:100%;width:100%}"}},[257,"rtk-simple-grid",{participants:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],dimensions:[32],mediaConnection:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-simple-grid"].forEach((t=>{"rtk-simple-grid"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))}m([l()],d.prototype,"meeting",void 0),m([l()],d.prototype,"states",void 0),m([l()],d.prototype,"config",void 0),m([l()],d.prototype,"iconPack",void 0),m([l()],d.prototype,"t",void 0),g();const f=d,u=g;export{f as RtkSimpleGrid,u as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-UCR1gRqj.js";const p=o,r=s;export{p as RtkSpeakerSelector,r as defineCustomElement}
1
+ import{R as s,d as o}from"./p-CHOs-ZsL.js";const p=s,r=o;export{p as RtkSpeakerSelector,r as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-DXSMSSbW.js";const p=o,r=s;export{p as RtkSpinner,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-B0SC1Zj-.js";const p=o,r=s;export{p as RtkSpinner,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,h as s,d as e,t as d}from"./p-BBHQOrFK.js";import{c as h,e as a,i as r}from"./p-BthnOddY.js";import{d as o}from"./p-CmmyVCoN.js";import{R as m}from"./p-CBJjerDR.js";import{S as n}from"./p-DL4GSZ2e.js";var c=function(t,i,s,e){var d,h=arguments.length,a=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(d=t[r])&&(a=(h<3?d(a):h>3?d(i,s,a):d(i,s))||a);return h>3&&a&&Object.defineProperty(i,s,a),a};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=h(),this.iconPack=a,this.t=r(),this.gridSize=o,this.getAdaptiveSize=t=>"sm"===this.size||t>3||"md"===this.size?"sm":"md"}render(){const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},i=this.participants.filter((t=>this.pinnedParticipants.some((i=>i.id!=t.id))));return s(e,{key:"1cb846cc92b660a8244d16a74f48dfadcef903b6"},s("main",{key:"8564f8b0bf6e7bd668132e2833fe73c73855d090",part:"main"},s(m,{key:"61b96f305727dc74de15f4c3c645069d6300afd9",element:"rtk-simple-grid",defaults:t,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),i.length>0&&s("aside",{key:"2e297a8d83c1f7241d8688b643c055331d69299b",part:"aside",class:this.gridSize.spotlight?"grid-width-"+this.gridSize.spotlight:"grid-width-md"},s(m,{key:"2c1969c610018dfb0a23308316f072e3b8d87a6e",element:"rtk-simple-grid",defaults:t,props:{part:"aside-grid",participants:i,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(i.length)}})))}get host(){return this}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:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}"}},[1,"rtk-spotlight-grid",{layout:[513],participants:[16],pinnedParticipants:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16]}]);function g(){"undefined"!=typeof customElements&&["rtk-spotlight-grid"].forEach((t=>{"rtk-spotlight-grid"===t&&(customElements.get(d(t))||customElements.define(d(t),p))}))}c([n()],p.prototype,"meeting",void 0),c([n()],p.prototype,"states",void 0),c([n()],p.prototype,"config",void 0),c([n()],p.prototype,"iconPack",void 0),c([n()],p.prototype,"t",void 0),g();const l=p,f=g;export{l as RtkSpotlightGrid,f as defineCustomElement}
1
+ import{p as t,H as i,h as s,d as e,t as d}from"./p-BBHQOrFK.js";import{c as h,e as a,i as r}from"./p-DhwysA2e.js";import{d as o}from"./p-CmmyVCoN.js";import{R as m}from"./p-CBJjerDR.js";import{S as n}from"./p-bRRQr4xn.js";var c=function(t,i,s,e){var d,h=arguments.length,a=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(d=t[r])&&(a=(h<3?d(a):h>3?d(i,s,a):d(i,s))||a);return h>3&&a&&Object.defineProperty(i,s,a),a};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=h(),this.iconPack=a,this.t=r(),this.gridSize=o,this.getAdaptiveSize=t=>"sm"===this.size||t>3||"md"===this.size?"sm":"md"}render(){const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},i=this.participants.filter((t=>this.pinnedParticipants.some((i=>i.id!=t.id))));return s(e,{key:"61c335032f64054d173a44639ab41ead131d0cdf"},s("main",{key:"6dd23dc9d8b600d1747213396968b9601e04f83e",part:"main"},s(m,{key:"efa5e5be367c3423e7fdd280fd9ec66ce5d50134",element:"rtk-simple-grid",defaults:t,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),i.length>0&&s("aside",{key:"183ea410b2afb776dec7fc9fd2dbcd33d1ae285a",part:"aside",class:this.gridSize.spotlight?"grid-width-"+this.gridSize.spotlight:"grid-width-md"},s(m,{key:"cb763ff9d4c6358f63e974d1984de3c67ffee3b5",element:"rtk-simple-grid",defaults:t,props:{part:"aside-grid",participants:i,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(i.length)}})))}get host(){return this}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:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}"}},[1,"rtk-spotlight-grid",{layout:[513],participants:[16],pinnedParticipants:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16]}]);function g(){"undefined"!=typeof customElements&&["rtk-spotlight-grid"].forEach((t=>{"rtk-spotlight-grid"===t&&(customElements.get(d(t))||customElements.define(d(t),p))}))}c([n()],p.prototype,"meeting",void 0),c([n()],p.prototype,"states",void 0),c([n()],p.prototype,"config",void 0),c([n()],p.prototype,"iconPack",void 0),c([n()],p.prototype,"t",void 0),g();const f=p,l=g;export{f as RtkSpotlightGrid,l as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-CSO-O3S1.js";const p=o,r=s;export{p as RtkSpotlightIndicator,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-Smh6fH4v.js";const m=o,p=s;export{m as RtkSpotlightIndicator,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as i,c as s,h as e,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as n,i as l}from"./p-BthnOddY.js";import"./p-Dguuxuf6.js";import{S as r}from"./p-DL4GSZ2e.js";import{d}from"./p-DPxfGgCX.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as u}from"./p-DXSMSSbW.js";import{d as c}from"./p-DHSRRtn3.js";var v=function(t,i,s,e){var o,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 l=t.length-1;l>=0;l--)(o=t[l])&&(n=(a<3?o(n):a>3?o(i,s,n):o(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=l(),this.stageStatus="OFF_STAGE",this.state={label:"",disabled:!1,icon:""},this.stageCallback=async()=>{var t,i,s,e,o,a,n;const l=null===(t=this.meeting.stage)||void 0===t?void 0:t.status;"ON_STAGE"===l&&await(null===(s=null===(i=null==this?void 0:this.meeting)||void 0===i?void 0:i.stage)||void 0===s?void 0:s.leave()),"OFF_STAGE"===l&&(null===(o=null===(e=null==this?void 0:this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.requestAccess(),(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"ALLOWED"===(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)&&(this.states.activeJoinStage=!0,this.stateUpdate.emit({activeJoinStage:!0}))),"REQUESTED_TO_JOIN_STAGE"===l&&(null===(n=null===(a=null==this?void 0:this.meeting)||void 0===a?void 0:a.stage)||void 0===n||n.cancelRequestAccess())}}connectedCallback(){this.meetingChanged(this.meeting)}stageStatusHandler(t,i){this.stageStatus=i,"ACCEPTED_TO_JOIN_STAGE"===i&&(t.self.setupTracks({audio:!1,video:!1}),this.stateUpdate.emit({activeJoinStage:!0})),this.state=this.getState()}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",(t=>this.stageStatusHandler(this.meeting,t)))}meetingChanged(t){var i,s,e,o;t&&(this.stageStatus=null===(i=t.stage)||void 0===i?void 0:i.status,this.stageStatusHandler(t,null===(s=t.stage)||void 0===s?void 0:s.status),null===(o=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.on("stageStatusUpdate",(i=>this.stageStatusHandler(t,i))))}getState(){let t="",i="",s=!1;switch(this.stageStatus){case"ON_STAGE":i=this.iconPack.leave_stage,t=this.t("stage_request.leave_stage"),s=!1;break;case"ACCEPTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!0;break;case"REQUESTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.requested"),s=!1;break;default:i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!1}return{label:t,disabled:s,icon:i}}render(){return(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"NOT_ALLOWED"!==(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)?e(o,{title:this.state.label},e("rtk-tooltip",{placement:"top",kind:"block",label:this.state.label,delay:600,part:"tooltip"},e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.state.label,icon:this.state.icon,onClick:this.stageCallback,disabled:this.state.disabled,showWarning:!1}))):e(o,{"data-hidden":!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}:host([data-hidden]){display:none}"}},[1,"rtk-stage-toggle",{variant:[513],meeting:[16],size:[513],iconPack:[16],states:[16],t:[16],stageStatus:[32],state:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-stage-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-stage-toggle":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-controlbar-button":customElements.get(a(t))||d();break;case"rtk-icon":customElements.get(a(t))||h();break;case"rtk-spinner":customElements.get(a(t))||u();break;case"rtk-tooltip":customElements.get(a(t))||c()}}))}v([r()],p.prototype,"meeting",void 0),v([r()],p.prototype,"iconPack",void 0),v([r()],p.prototype,"states",void 0),v([r()],p.prototype,"t",void 0),m();const g=p,k=m;export{g as RtkStageToggle,k as defineCustomElement}
1
+ import{p as t,H as i,c as s,h as e,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as n,i as l}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{S as r}from"./p-bRRQr4xn.js";import{d}from"./p-CFBS-gbK.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as u}from"./p-B0SC1Zj-.js";import{d as c}from"./p-DHSRRtn3.js";var v=function(t,i,s,e){var o,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 l=t.length-1;l>=0;l--)(o=t[l])&&(n=(a<3?o(n):a>3?o(i,s,n):o(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=l(),this.stageStatus="OFF_STAGE",this.state={label:"",disabled:!1,icon:""},this.stageCallback=async()=>{var t,i,s,e,o,a,n;const l=null===(t=this.meeting.stage)||void 0===t?void 0:t.status;"ON_STAGE"===l&&await(null===(s=null===(i=null==this?void 0:this.meeting)||void 0===i?void 0:i.stage)||void 0===s?void 0:s.leave()),"OFF_STAGE"===l&&(null===(o=null===(e=null==this?void 0:this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.requestAccess(),(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"ALLOWED"===(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)&&(this.states.activeJoinStage=!0,this.stateUpdate.emit({activeJoinStage:!0}))),"REQUESTED_TO_JOIN_STAGE"===l&&(null===(n=null===(a=null==this?void 0:this.meeting)||void 0===a?void 0:a.stage)||void 0===n||n.cancelRequestAccess())}}connectedCallback(){this.meetingChanged(this.meeting)}stageStatusHandler(t,i){this.stageStatus=i,"ACCEPTED_TO_JOIN_STAGE"===i&&(t.self.setupTracks({audio:!1,video:!1}),this.stateUpdate.emit({activeJoinStage:!0})),this.state=this.getState()}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",(t=>this.stageStatusHandler(this.meeting,t)))}meetingChanged(t){var i,s,e,o;t&&(this.stageStatus=null===(i=t.stage)||void 0===i?void 0:i.status,this.stageStatusHandler(t,null===(s=t.stage)||void 0===s?void 0:s.status),null===(o=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.on("stageStatusUpdate",(i=>this.stageStatusHandler(t,i))))}getState(){let t="",i="",s=!1;switch(this.stageStatus){case"ON_STAGE":i=this.iconPack.leave_stage,t=this.t("stage_request.leave_stage"),s=!1;break;case"ACCEPTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!0;break;case"REQUESTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.requested"),s=!1;break;default:i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!1}return{label:t,disabled:s,icon:i}}render(){return(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"NOT_ALLOWED"!==(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)?e(o,{title:this.state.label},e("rtk-tooltip",{placement:"top",kind:"block",label:this.state.label,delay:600,part:"tooltip"},e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.state.label,icon:this.state.icon,onClick:this.stageCallback,disabled:this.state.disabled,showWarning:!1}))):e(o,{"data-hidden":!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}:host([data-hidden]){display:none}"}},[1,"rtk-stage-toggle",{variant:[513],meeting:[16],size:[513],iconPack:[16],states:[16],t:[16],stageStatus:[32],state:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-stage-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-stage-toggle":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-controlbar-button":customElements.get(a(t))||d();break;case"rtk-icon":customElements.get(a(t))||h();break;case"rtk-spinner":customElements.get(a(t))||u();break;case"rtk-tooltip":customElements.get(a(t))||c()}}))}v([r()],p.prototype,"meeting",void 0),v([r()],p.prototype,"iconPack",void 0),v([r()],p.prototype,"states",void 0),v([r()],p.prototype,"t",void 0),m();const g=p,b=m;export{g as RtkStageToggle,b 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 i,i as n}from"./p-BthnOddY.js";import{S as c}from"./p-DL4GSZ2e.js";var f=function(t,e,s,a){var o,r=arguments.length,i=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,a);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r<3?o(i):r>3?o(e,s,i):o(e,s))||i);return r>3&&i&&Object.defineProperty(e,s,i),i};const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.iconPack=i,this.t=n()}render(){return a(o,{key:"681977138d7984d09fce875a7de3ccf763dbe3f7"},a("slot",{key:"8412278c7a9491758d6cc0b96b262b616a8ba04f"}))}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;position:relative;overflow:hidden}"}},[257,"rtk-stage",{iconPack:[16],t:[16]}]);function p(){"undefined"!=typeof customElements&&["rtk-stage"].forEach((t=>{"rtk-stage"===t&&(customElements.get(r(t))||customElements.define(r(t),l))}))}f([c()],l.prototype,"iconPack",void 0),f([c()],l.prototype,"t",void 0),p();const d=l,m=p;export{d as RtkStage,m as defineCustomElement}
1
+ import{p as t,H as e,c as s,h as r,d as a,t as o}from"./p-BBHQOrFK.js";import{e as i,i as n}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";var f=function(t,e,s,r){var a,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(i=(o<3?a(i):o>3?a(e,s,i):a(e,s))||i);return o>3&&i&&Object.defineProperty(e,s,i),i};const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.iconPack=i,this.t=n()}render(){return r(a,{key:"681977138d7984d09fce875a7de3ccf763dbe3f7"},r("slot",{key:"8412278c7a9491758d6cc0b96b262b616a8ba04f"}))}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;position:relative;overflow:hidden}"}},[257,"rtk-stage",{iconPack:[16],t:[16]}]);function p(){"undefined"!=typeof customElements&&["rtk-stage"].forEach((t=>{"rtk-stage"===t&&(customElements.get(o(t))||customElements.define(o(t),l))}))}f([c()],l.prototype,"iconPack",void 0),f([c()],l.prototype,"t",void 0),p();const d=l,m=p;export{d as RtkStage,m as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as r}from"./p-kwrAj1JQ.js";const s=o,p=r;export{s as RtkSwitch,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-5i84b0Gw.js";const p=o,r=s;export{p as RtkSwitch,r as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as p}from"./p-CXK5Hixp.js";const s=o,r=p;export{s as RtkTabBar,r as defineCustomElement}
1
+ import{R as o,d as p}from"./p-C7WazpNf.js";const s=o,a=p;export{s as RtkTabBar,a as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as s}from"./p-D3IRX-4x.js";const p=o,r=s;export{p as RtkTextComposerView,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-y_feb08f.js";const f=o,p=s;export{f as RtkTextComposerView,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as s,d as o}from"./p-BsxEHBW2.js";const p=s,r=o;export{p as RtkTextMessage,r as defineCustomElement}
1
+ import{R as o,d as s}from"./p-C5kkSbkd.js";const k=o,p=s;export{k as RtkTextMessage,p as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as r}from"./p-Dr2k6gxY.js";const s=o,p=r;export{s as RtkTranscript,p as defineCustomElement}
1
+ import{R as o,d as s}from"./p-CJGAvEk3.js";const p=o,r=s;export{p as RtkTranscript,r as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as s,w as e,h as i,d as r,t as n}from"./p-BBHQOrFK.js";import{c as a,i as o,D as c}from"./p-BthnOddY.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as h}from"./p-DL4GSZ2e.js";import{d as p}from"./p-Dr2k6gxY.js";var d=function(t,s,e,i){var r,n=arguments.length,a=n<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,e,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(n<3?r(a):n>3?r(s,e,a):r(s,e))||a);return n>3&&a&&Object.defineProperty(s,e,a),a};const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=a(),this.t=o(),this.transcripts=[],this.listenerAttached=!1,this.onTranscript=t=>{t.transcript&&this.add(t)}}connectedCallback(){this.meetingChanged(this.meeting)}addListener(t){var s;null===(s=null==t?void 0:t.ai)||void 0===s||s.addListener("transcript",this.onTranscript),this.listenerAttached=!0}clearListeners(t){var s;this.onTranscript&&(null===(s=null==t?void 0:t.ai)||void 0===s||s.removeListener("transcript",this.onTranscript)),this.listenerAttached=!1,clearTimeout(this.disconnectTimeout),this.transcripts=[]}disconnectedCallback(){this.meeting&&this.clearListeners(this.meeting)}meetingChanged(t,s){clearTimeout(this.disconnectTimeout),s&&this.clearListeners(s),t&&this.states.activeCaptions&&this.addListener(t)}statesChanged(t){t&&(t.activeCaptions&&!this.listenerAttached&&this.addListener(this.meeting),!t.activeCaptions&&this.listenerAttached&&this.clearListeners(this.meeting))}transcriptionsReducer(t,s){if(!t.length)return[s];let e=t[t.length-1];return e.peerId!==s.peerId?t.concat(s):e.id===s.id?(e.transcript=s.transcript,t.pop(),t.concat(c(e))):t.concat(s)}add(t){this.transcripts=this.transcriptionsReducer(this.transcripts,t)}remove(t){this.transcripts=this.transcripts.filter((s=>s.renderedId!==t))}handleDismiss(t){t.stopPropagation();const{id:s,renderedId:i}=t.detail,r=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==r||r.classList.add("exit"),setTimeout((()=>{e((()=>{this.remove(i)}))}),400)}renderTranscripts(){const t=[];return this.transcripts.forEach((s=>{const e={name:s.name,date:s.date,peerId:s.peerId,transcript:s.transcript,id:s.id,renderedId:s.id};if(!t.length)return s.renderedId=e.renderedId,void t.push(e);const i=t[t.length-1];if(i.transcript.length+e.transcript.length>400||i.peerId!==s.peerId)return s.renderedId=e.renderedId,void t.push(e);i.transcript+=" "+s.transcript,s.renderedId=i.renderedId})),t.splice(0,t.length-2),null==t?void 0:t.map((t=>i("rtk-transcript",{key:t.id,"data-id":t.id,transcript:t,onRtkTranscriptDismiss:t=>this.handleDismiss(t),t:this.t})))}render(){if(this.states.activeCaptions)return i(r,null,this.renderTranscripts())}get host(){return this}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{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;justify-content:center;width:100%;z-index:5}rtk-transcript{margin-top:var(--rtk-space-2, 8px)}"}},[1,"rtk-transcripts",{meeting:[16],states:[16],config:[16],t:[16],transcripts:[32],listenerAttached:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-transcripts","rtk-transcript"].forEach((t=>{switch(t){case"rtk-transcripts":customElements.get(n(t))||customElements.define(n(t),l);break;case"rtk-transcript":customElements.get(n(t))||p()}}))}d([h()],l.prototype,"meeting",void 0),d([h()],l.prototype,"states",void 0),d([h()],l.prototype,"config",void 0),d([h()],l.prototype,"t",void 0),m();const u=l,f=m;export{u as RtkTranscripts,f as defineCustomElement}
1
+ import{p as t,H as s,w as e,h as i,d as r,t as n}from"./p-BBHQOrFK.js";import{c as a,i as o,D as c}from"./p-DhwysA2e.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as h}from"./p-bRRQr4xn.js";import{d as p}from"./p-CJGAvEk3.js";var d=function(t,s,e,i){var r,n=arguments.length,a=n<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,e,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(n<3?r(a):n>3?r(s,e,a):r(s,e))||a);return n>3&&a&&Object.defineProperty(s,e,a),a};const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=a(),this.t=o(),this.transcripts=[],this.listenerAttached=!1,this.onTranscript=t=>{t.transcript&&this.add(t)}}connectedCallback(){this.meetingChanged(this.meeting)}addListener(t){var s;null===(s=null==t?void 0:t.ai)||void 0===s||s.addListener("transcript",this.onTranscript),this.listenerAttached=!0}clearListeners(t){var s;this.onTranscript&&(null===(s=null==t?void 0:t.ai)||void 0===s||s.removeListener("transcript",this.onTranscript)),this.listenerAttached=!1,clearTimeout(this.disconnectTimeout),this.transcripts=[]}disconnectedCallback(){this.meeting&&this.clearListeners(this.meeting)}meetingChanged(t,s){clearTimeout(this.disconnectTimeout),s&&this.clearListeners(s),t&&this.states.activeCaptions&&this.addListener(t)}statesChanged(t){t&&(t.activeCaptions&&!this.listenerAttached&&this.addListener(this.meeting),!t.activeCaptions&&this.listenerAttached&&this.clearListeners(this.meeting))}transcriptionsReducer(t,s){if(!t.length)return[s];let e=t[t.length-1];return e.peerId!==s.peerId?t.concat(s):e.id===s.id?(e.transcript=s.transcript,t.pop(),t.concat(c(e))):t.concat(s)}add(t){this.transcripts=this.transcriptionsReducer(this.transcripts,t),this.pruneToLatestTwoGroups()}buildGroups(){const t=[];return this.transcripts.forEach((s=>{const e=t[t.length-1];!e||e.peerId!==s.peerId||e.combinedText.length+s.transcript.length>400?(t.push({renderedId:s.id,peerId:s.peerId,combinedText:s.transcript,entries:[s]}),s.renderedId=s.id):(e.combinedText+=" "+s.transcript,s.renderedId=e.renderedId,e.entries.push(s))})),t}pruneToLatestTwoGroups(){const t=this.buildGroups();if(t.length<=2)return;const s=new Set(t.slice(-2).flatMap((t=>t.entries)));this.transcripts=this.transcripts.filter((t=>s.has(t)))}remove(t){this.transcripts=this.transcripts.filter((s=>s.renderedId!==t))}handleDismiss(t){t.stopPropagation();const{id:s,renderedId:i}=t.detail,r=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==r||r.classList.add("exit"),setTimeout((()=>{e((()=>{this.remove(i)}))}),400)}renderTranscripts(){return this.buildGroups().slice(-2).map((t=>{const s=t.entries[0];return i("rtk-transcript",{key:s.id,"data-id":s.id,transcript:{name:s.name,date:s.date,peerId:t.peerId,userId:s.userId,customParticipantId:s.customParticipantId,transcript:t.combinedText,id:s.id,renderedId:t.renderedId},onRtkTranscriptDismiss:t=>this.handleDismiss(t),t:this.t})}))}render(){if(this.states.activeCaptions)return i(r,null,this.renderTranscripts())}get host(){return this}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{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;justify-content:center;width:100%;z-index:5}rtk-transcript{margin-top:var(--rtk-space-2, 8px)}"}},[1,"rtk-transcripts",{meeting:[16],states:[16],config:[16],t:[16],transcripts:[32],listenerAttached:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-transcripts","rtk-transcript"].forEach((t=>{switch(t){case"rtk-transcripts":customElements.get(n(t))||customElements.define(n(t),l);break;case"rtk-transcript":customElements.get(n(t))||p()}}))}d([h()],l.prototype,"meeting",void 0),d([h()],l.prototype,"states",void 0),d([h()],l.prototype,"config",void 0),d([h()],l.prototype,"t",void 0),u();const m=l,f=u;export{m as RtkTranscripts,f as defineCustomElement}
@@ -1 +1 @@
1
- import{t,p as i,H as e,c as s,h as o,d as n}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import{m as r,p as h}from"./p-iZinM7-j.js";import{e as a,i as d,c,f as p,u as g,b as m}from"./p-BthnOddY.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{g as l}from"./p-DE1s0fDa.js";import{g as u}from"./p-vBfDtD_u.js";const f=i(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.statesUpdate=s(this,"rtkStatesUpdate",7),this.peerStore=null,this.providerId="provider-"+Math.floor(100*Math.random()),this.meeting=null,this.iconPack=a,this.t=d(),this.config=c(),this.mode="fixed",this.showSetupScreen=!1,this.overrides=p,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:i})=>{!["audio","video"].includes(t)||"DENIED"!==i&&"SYSTEM_DENIED"!==i||!0===(this.peerStore||g).state.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),1e4)},this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},this.peerStore.state.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}connectedCallback(){"undefined"!=typeof window&&(this.initErrorListener=t=>{const i=l(this.t,t.detail);i&&this.updateStates({preJoinError:i})},window.addEventListener("ClientError",this.initErrorListener)),this.setupStoreRequestListener(),this.meetingChanged(this.meeting),this.iconPackChanged(this.iconPack),this.tChanged(this.t),this.configChanged(this.config),this.overridesChanged(this.overrides)}disconnectedCallback(){window.removeEventListener("ClientError",this.initErrorListener),this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.meeting&&(this.meeting.self.removeListener("roomLeft",this.roomLeftListener),this.meeting.self.removeListener("roomJoined",this.roomJoinedListener),this.meeting.self.removeListener("waitlisted",this.waitlistedListener),this.meeting.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.meeting.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}updateStates(t){const i=this.peerStore||g,e=Object.assign({},i.state.states);i.state.states=r(e,t),this.statesUpdate.emit(i.state.states);const s=new CustomEvent("rtkStatesUpdate",{detail:i.state.states,bubbles:!0,composed:!0});this.host.dispatchEvent(s)}setupStateUpdateListener(){this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=t=>{this.updateStates(t.detail)},this.host.addEventListener("rtkStateUpdate",this.stateUpdateListener)}setupStoreRequestListener(){this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=t=>{if(!this.peerStore)return;const i=new CustomEvent("rtkProvideStore",{detail:{store:this.peerStore,requestId:t.detail.requestId}});document.dispatchEvent(i),t.stopPropagation()},this.host.addEventListener("rtkRequestStore",this.storeRequestListener)}meetingChanged(t,i){if(t&&(this.peerStore=m({meeting:t,config:this.config,iconPack:this.iconPack,t:this.t,providerId:this.providerId,overrides:r(Object.assign({},p),this.overrides)}),document.dispatchEvent(new CustomEvent("rtkPeerStoreReady",{detail:{peerId:t.self.id}}))),this.setupStateUpdateListener(),t){const e=this.peerStore||g;e.state.meeting=t,this.updateStates({viewType:t.meta.viewType,activeCaptions:i?!!e.state.states.activeCaptions:!!t.self.permissions.transcriptionEnabled}),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:i,code:e}=u(this.t,t);this.updateStates({preJoinError:{message:i,code:e}})})),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||g).state.states.activeDebugger&&h(document.documentElement,t.designTokens)}overridesChanged(t){this.peerStore&&(this.peerStore.state.overrides=r(Object.assign({},p),t))}render(){return this.meeting?o(n,null,o("slot",null)):null}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}"}},[260,"rtk-ui-provider",{meeting:[16],iconPack:[16],t:[16],config:[16],mode:[513],showSetupScreen:[4,"show-setup-screen"],overrides:[16]},void 0,{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-ui-provider"].forEach((i=>{"rtk-ui-provider"===i&&(customElements.get(t(i))||customElements.define(t(i),f))}))}v();const k=f,C=v;export{k as RtkUiProvider,C as defineCustomElement}
1
+ import{t,p as e,H as i,c as s,h as o,d as r}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import{m as n,p as h}from"./p-CfIrQkMg.js";import{e as a,i as d,c,f as p,u as g,b as m}from"./p-DhwysA2e.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{g as l}from"./p-DE1s0fDa.js";import{g as u}from"./p-vBfDtD_u.js";const f=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.statesUpdate=s(this,"rtkStatesUpdate",7),this.peerStore=null,this.providerId="provider-"+Math.floor(100*Math.random()),this.meeting=null,this.iconPack=a,this.t=d(),this.config=c(),this.mode="fixed",this.showSetupScreen=!1,this.overrides=p,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||g).state.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),1e4)},this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},this.peerStore.state.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}connectedCallback(){"undefined"!=typeof window&&(this.initErrorListener=t=>{const e=l(this.t,t.detail);e&&this.updateStates({preJoinError:e})},window.addEventListener("ClientError",this.initErrorListener)),this.setupStoreRequestListener(),this.meetingChanged(this.meeting),this.iconPackChanged(this.iconPack),this.tChanged(this.t),this.configChanged(this.config),this.overridesChanged(this.overrides)}disconnectedCallback(){window.removeEventListener("ClientError",this.initErrorListener),this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.meeting&&(this.meeting.self.removeListener("roomLeft",this.roomLeftListener),this.meeting.self.removeListener("roomJoined",this.roomJoinedListener),this.meeting.self.removeListener("waitlisted",this.waitlistedListener),this.meeting.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.meeting.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}updateStates(t){const e=this.peerStore||g,i=Object.assign({},e.state.states);e.state.states=n(i,t),this.statesUpdate.emit(e.state.states);const s=new CustomEvent("rtkStatesUpdate",{detail:e.state.states,bubbles:!0,composed:!0});this.host.dispatchEvent(s)}setupStateUpdateListener(){this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=t=>{this.updateStates(t.detail)},this.host.addEventListener("rtkStateUpdate",this.stateUpdateListener)}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)}meetingChanged(t,e){if(t&&(this.peerStore=m({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.setupStateUpdateListener(),t){const i=this.peerStore||g;i.state.meeting=t,this.updateStates({viewType:t.meta.viewType,activeCaptions:e?!!i.state.states.activeCaptions:!!t.self.permissions.transcriptionEnabled}),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:i}=u(this.t,t);this.updateStates({preJoinError:{message:e,code:i}})})),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||g).state.states.activeDebugger&&h(document.documentElement,t.designTokens)}overridesChanged(t){this.peerStore&&(this.peerStore.state.overrides=n(Object.assign({},p),t))}render(){return this.meeting?o(r,null,o("slot",null)):null}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}"}},[260,"rtk-ui-provider",{meeting:[16],iconPack:[16],t:[16],config:[16],mode:[513],showSetupScreen:[4,"show-setup-screen"],overrides:[16]},void 0,{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-ui-provider"].forEach((e=>{"rtk-ui-provider"===e&&(customElements.get(t(e))||customElements.define(t(e),f))}))}k();const v=f,C=k;export{v as RtkUiProvider,C as defineCustomElement}
@@ -1 +1 @@
1
- import{R as o,d as r}from"./p-B77rBORD.js";const s=o,p=r;export{s as RtkViewerCount,p as defineCustomElement}
1
+ import{R as o,d as r}from"./p-DViKr-34.js";const s=o,p=r;export{s as RtkViewerCount,p as defineCustomElement}
@@ -1 +1 @@
1
- import{p as t,H as e,h as r,d as a,t as i}from"./p-BBHQOrFK.js";import{c as o,e as s,i as c}from"./p-BthnOddY.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as n}from"./p-DL4GSZ2e.js";import{d as p}from"./p-CNv9-uKL.js";var d=function(t,e,r,a){var i,o=arguments.length,s=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};const f=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=o(),this.iconPack=s,this.t=c()}render(){return r(a,{key:"ac7096bd5df59387dcef15bbd4ef8955a4a42298"},r("slot",{key:"6dd0f5b9555c956c1371311ef3c4ac8f661e9523"},r("div",{key:"07925b636545e1196b10512cd504516df2cfbbf4",class:"centered",part:"content"},r("rtk-logo",{key:"9b3fcf182d7c68aaf525a8170dbab9e59fc40404",meeting:this.meeting,config:this.config,part:"logo",t:this.t}),r("p",{key:"763a6403bc98a16f020101090bbed250041ae7cd"},this.t("waitlist.body_text")))))}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}.centered{display:flex;flex-direction:column;align-items:center}rtk-logo{margin-bottom:var(--rtk-space-8, 32px);height:var(--rtk-space-12, 48px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}"}},[257,"rtk-waiting-screen",{meeting:[16],config:[16],iconPack:[16],t:[16]}]);function l(){"undefined"!=typeof customElements&&["rtk-waiting-screen","rtk-logo"].forEach((t=>{switch(t){case"rtk-waiting-screen":customElements.get(i(t))||customElements.define(i(t),f);break;case"rtk-logo":customElements.get(i(t))||p()}}))}d([n()],f.prototype,"meeting",void 0),d([n()],f.prototype,"config",void 0),d([n()],f.prototype,"iconPack",void 0),d([n()],f.prototype,"t",void 0),l();const g=f,m=l;export{g as RtkWaitingScreen,m as defineCustomElement}
1
+ import{p as t,H as e,h as r,d as a,t as i}from"./p-BBHQOrFK.js";import{c as o,e as s,i as c}from"./p-DhwysA2e.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as n}from"./p-bRRQr4xn.js";import{d as p}from"./p-DnkJztTd.js";var f=function(t,e,r,a){var i,o=arguments.length,s=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=o(),this.iconPack=s,this.t=c()}render(){return r(a,{key:"ac7096bd5df59387dcef15bbd4ef8955a4a42298"},r("slot",{key:"6dd0f5b9555c956c1371311ef3c4ac8f661e9523"},r("div",{key:"07925b636545e1196b10512cd504516df2cfbbf4",class:"centered",part:"content"},r("rtk-logo",{key:"9b3fcf182d7c68aaf525a8170dbab9e59fc40404",meeting:this.meeting,config:this.config,part:"logo",t:this.t}),r("p",{key:"763a6403bc98a16f020101090bbed250041ae7cd"},this.t("waitlist.body_text")))))}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}.centered{display:flex;flex-direction:column;align-items:center}rtk-logo{margin-bottom:var(--rtk-space-8, 32px);height:var(--rtk-space-12, 48px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}"}},[257,"rtk-waiting-screen",{meeting:[16],config:[16],iconPack:[16],t:[16]}]);function l(){"undefined"!=typeof customElements&&["rtk-waiting-screen","rtk-logo"].forEach((t=>{switch(t){case"rtk-waiting-screen":customElements.get(i(t))||customElements.define(i(t),d);break;case"rtk-logo":customElements.get(i(t))||p()}}))}f([n()],d.prototype,"meeting",void 0),f([n()],d.prototype,"config",void 0),f([n()],d.prototype,"iconPack",void 0),f([n()],d.prototype,"t",void 0),l();const g=d,m=l;export{g as RtkWaitingScreen,m as defineCustomElement}