@cloudflare/realtimekit-ui 2.0.3-staging.1 → 2.0.3-staging.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (489) 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-iml9xkbo.js → index-CmhPLhux.js} +1 -1
  7. package/dist/cjs/index.cjs.js +4 -4
  8. package/dist/cjs/{merge-BJWi-sVV.js → merge-B7Yr5DGf.js} +1 -1
  9. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  10. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  11. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-avatar_26.cjs.entry.js +6 -6
  16. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  17. package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +2 -2
  18. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  19. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  22. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  23. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  25. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  27. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-file-message_3.cjs.entry.js +4 -4
  38. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  41. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  51. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  54. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  55. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
  58. package/dist/cjs/rtk-notifications.cjs.entry.js +3 -3
  59. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  61. package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
  62. package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  64. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  65. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  66. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  68. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  69. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  78. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  80. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  85. package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
  86. package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  88. package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
  89. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
  90. package/dist/cjs/{ui-store-C8bSJOfE.js → ui-store-C7CyFWPZ.js} +1 -1
  91. package/dist/collection/utils/clone.js +1 -1
  92. package/dist/components/index.js +1 -1
  93. package/dist/components/{p-BssX9KwA.js → p--CEA0NQj.js} +1 -1
  94. package/dist/components/{p-CWHbCyoL.js → p--VK1POSX.js} +1 -1
  95. package/dist/components/{p-DX_XkIXf.js → p-3QJecdKl.js} +1 -1
  96. package/dist/components/{p-kwrAj1JQ.js → p-5i84b0Gw.js} +1 -1
  97. package/dist/components/{p-DCtgO53p.js → p-93ZUKlQ1.js} +1 -1
  98. package/dist/components/{p-COCm8rOB.js → p-A83Jz8rO.js} +1 -1
  99. package/dist/components/{p-DXSMSSbW.js → p-B0SC1Zj-.js} +1 -1
  100. package/dist/components/{p-CPF_oopS.js → p-B1HaRABx.js} +1 -1
  101. package/dist/components/{p-Dy1vyj0N.js → p-B1oyTNvb.js} +1 -1
  102. package/dist/components/{p-BQkUbUdr.js → p-B3dQhqRr.js} +1 -1
  103. package/dist/components/{p-Bgm0SnIA.js → p-B4dw_Fnl.js} +1 -1
  104. package/dist/components/{p-UCR1gRqj.js → p-BGz4FsG8.js} +1 -1
  105. package/dist/components/{p-BNRJKXAG.js → p-BHHJ7_MS.js} +1 -1
  106. package/dist/components/{p-Bj4I4jh7.js → p-BQJoMtIK.js} +1 -1
  107. package/dist/components/{p-Bqf3TobZ.js → p-BXHUa6x_.js} +1 -1
  108. package/dist/components/{p-CwNP8xfN.js → p-Bf-HIBwL.js} +1 -1
  109. package/dist/components/{p-CfFkjBT0.js → p-Bf-vQ6U9.js} +1 -1
  110. package/dist/components/{p-C71rbtpI.js → p-Bmk8auxt.js} +1 -1
  111. package/dist/components/{p-BbtnaCk4.js → p-Bn6JMUc9.js} +1 -1
  112. package/dist/components/{p-C-ZKbHGI.js → p-BsgKgxKu.js} +1 -1
  113. package/dist/components/{p-vBjvMv_5.js → p-Bux-kSlP.js} +1 -1
  114. package/dist/components/{p-Chf25Wxh.js → p-BvLjh5Yy.js} +1 -1
  115. package/dist/components/{p-C9KgVl-d.js → p-BxPmWGqJ.js} +1 -1
  116. package/dist/components/{p-xmJ8IJTr.js → p-BxotZto-.js} +1 -1
  117. package/dist/components/p-C5kkSbkd.js +1 -0
  118. package/dist/components/{p-B17zaVfB.js → p-C6AgOKhg.js} +1 -1
  119. package/dist/components/{p-CXK5Hixp.js → p-C7WazpNf.js} +1 -1
  120. package/dist/components/{p-DcBUj_Ju.js → p-CAMtxcI_.js} +1 -1
  121. package/dist/components/{p-Ba4odlrT.js → p-CCxMYXjI.js} +1 -1
  122. package/dist/components/{p-mm-pzvJ-.js → p-CEK_XoGw.js} +1 -1
  123. package/dist/components/{p-DPxfGgCX.js → p-CFBS-gbK.js} +1 -1
  124. package/dist/components/{p-DnGHVpK1.js → p-CJGAvEk3.js} +1 -1
  125. package/dist/components/{p-Bjmpb3KI.js → p-CMyYEHgz.js} +1 -1
  126. package/dist/components/{p-BRPrcA0X.js → p-CPRQStTn.js} +1 -1
  127. package/dist/components/{p-BGMQOFEz.js → p-CTuYqZY2.js} +1 -1
  128. package/dist/components/{p-oNFda96T.js → p-CU7xL-hP.js} +1 -1
  129. package/dist/components/{p-fEIEB26m.js → p-CW-FAeNP.js} +1 -1
  130. package/dist/components/{p-BUosYxgI.js → p-CXq0ujSg.js} +1 -1
  131. package/dist/components/{p-iZinM7-j.js → p-CfIrQkMg.js} +1 -1
  132. package/dist/components/{p-V9huV8XH.js → p-CjstGmGh.js} +1 -1
  133. package/dist/components/{p-CkA8t9GX.js → p-CkB6Me6q.js} +1 -1
  134. package/dist/components/{p-Cj0CCucK.js → p-CnPYfRgf.js} +1 -1
  135. package/dist/components/{p-nkadiHul.js → p-CpD_SehU.js} +1 -1
  136. package/dist/components/{p-iaFYN7Sj.js → p-CuRSxmeD.js} +1 -1
  137. package/dist/components/{p-BoeW-RxV.js → p-DK5nsYEy.js} +1 -1
  138. package/dist/components/{p-66poN2qn.js → p-DMbGWtns.js} +1 -1
  139. package/dist/components/{p-D__Gipxn.js → p-DONfrqzk.js} +1 -1
  140. package/dist/components/{p-CIfkVpTJ.js → p-DSUStc8e.js} +1 -1
  141. package/dist/components/{p-BIdrWJJD.js → p-DSe3wsBa.js} +1 -1
  142. package/dist/components/{p-B77rBORD.js → p-DViKr-34.js} +1 -1
  143. package/dist/components/{p-B2GVx1qA.js → p-DZcwJOUW.js} +1 -1
  144. package/dist/components/p-D_AEDHUV.js +1 -0
  145. package/dist/components/{p-DSm20Isy.js → p-DbBGSlfQ.js} +1 -1
  146. package/dist/components/{p-BhG6UsF5.js → p-DdSpe6Sb.js} +1 -1
  147. package/dist/components/{p-nad0N2DI.js → p-Dh8N1Wv8.js} +1 -1
  148. package/dist/components/{p-C8Dgpnzx.js → p-DhG2PF_5.js} +1 -1
  149. package/dist/components/p-DhwysA2e.js +1 -0
  150. package/dist/components/{p-DfGTdsn0.js → p-DjOiGHfI.js} +1 -1
  151. package/dist/components/{p-CAgV-5OF.js → p-DnOzzBR9.js} +1 -1
  152. package/dist/components/{p-CNv9-uKL.js → p-DnkJztTd.js} +1 -1
  153. package/dist/components/{p-Cz9_MmLt.js → p-Dq8iLPzP.js} +1 -1
  154. package/dist/components/{p-yIxFaBq2.js → p-DtN97Fhn.js} +1 -1
  155. package/dist/components/{p-DjSGHZA8.js → p-DzDWIdoE.js} +1 -1
  156. package/dist/components/{p-CVfA5R2h.js → p-EkUCxpDZ.js} +1 -1
  157. package/dist/components/{p-48gPeJ33.js → p-FS8aOnfM.js} +1 -1
  158. package/dist/components/{p-CuqFnmgF.js → p-M0IaFpEv.js} +1 -1
  159. package/dist/components/{p-ebQT96VB.js → p-NKK4fZcP.js} +1 -1
  160. package/dist/components/{p-jyZncre7.js → p-ObGKzmP7.js} +1 -1
  161. package/dist/components/{p-CSO-O3S1.js → p-Smh6fH4v.js} +1 -1
  162. package/dist/components/{p-CSt7vW9Z.js → p-Z8VMlEx7.js} +1 -1
  163. package/dist/components/{p-DL4GSZ2e.js → p-bRRQr4xn.js} +1 -1
  164. package/dist/components/{p-B6TKlHLV.js → p-gixOLeKl.js} +1 -1
  165. package/dist/components/{p-D_tCWiMP.js → p-l-tiOHlG.js} +1 -1
  166. package/dist/components/{p-RjS7wlRV.js → p-pcKO_EeI.js} +1 -1
  167. package/dist/components/{p-Bvn365hl.js → p-qDy7F0Tr.js} +1 -1
  168. package/dist/components/{p-CRr8LXGp.js → p-vqPkhXWC.js} +1 -1
  169. package/dist/components/{p-D3IRX-4x.js → p-y_feb08f.js} +1 -1
  170. package/dist/components/rtk-ai-toggle.js +1 -1
  171. package/dist/components/rtk-ai-transcriptions.js +1 -1
  172. package/dist/components/rtk-ai.js +1 -1
  173. package/dist/components/rtk-audio-grid.js +1 -1
  174. package/dist/components/rtk-audio-tile.js +1 -1
  175. package/dist/components/rtk-audio-visualizer.js +1 -1
  176. package/dist/components/rtk-avatar.js +1 -1
  177. package/dist/components/rtk-breakout-room-manager.js +1 -1
  178. package/dist/components/rtk-breakout-room-participants.js +1 -1
  179. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  180. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  181. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  182. package/dist/components/rtk-camera-selector.js +1 -1
  183. package/dist/components/rtk-camera-toggle.js +1 -1
  184. package/dist/components/rtk-caption-toggle.js +1 -1
  185. package/dist/components/rtk-chat-composer-ui.js +1 -1
  186. package/dist/components/rtk-chat-composer-view.js +1 -1
  187. package/dist/components/rtk-chat-header.js +1 -1
  188. package/dist/components/rtk-chat-message.js +1 -1
  189. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  190. package/dist/components/rtk-chat-messages-ui.js +1 -1
  191. package/dist/components/rtk-chat-search-results.js +1 -1
  192. package/dist/components/rtk-chat-selector-ui.js +1 -1
  193. package/dist/components/rtk-chat-selector.js +1 -1
  194. package/dist/components/rtk-chat-toggle.js +1 -1
  195. package/dist/components/rtk-chat.js +1 -1
  196. package/dist/components/rtk-clock.js +1 -1
  197. package/dist/components/rtk-confirmation-modal.js +1 -1
  198. package/dist/components/rtk-controlbar-button.js +1 -1
  199. package/dist/components/rtk-controlbar.js +1 -1
  200. package/dist/components/rtk-counter.js +1 -1
  201. package/dist/components/rtk-debugger-audio.js +1 -1
  202. package/dist/components/rtk-debugger-screenshare.js +1 -1
  203. package/dist/components/rtk-debugger-system.js +1 -1
  204. package/dist/components/rtk-debugger-toggle.js +1 -1
  205. package/dist/components/rtk-debugger-video.js +1 -1
  206. package/dist/components/rtk-debugger.js +1 -1
  207. package/dist/components/rtk-dialog-manager.js +1 -1
  208. package/dist/components/rtk-dialog.js +1 -1
  209. package/dist/components/rtk-draft-attachment-view.js +1 -1
  210. package/dist/components/rtk-emoji-picker-button.js +1 -1
  211. package/dist/components/rtk-emoji-picker.js +1 -1
  212. package/dist/components/rtk-ended-screen.js +1 -1
  213. package/dist/components/rtk-file-dropzone.js +1 -1
  214. package/dist/components/rtk-file-message-view.js +1 -1
  215. package/dist/components/rtk-file-message.js +1 -1
  216. package/dist/components/rtk-file-picker-button.js +1 -1
  217. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  218. package/dist/components/rtk-grid-pagination.js +1 -1
  219. package/dist/components/rtk-grid.js +1 -1
  220. package/dist/components/rtk-header.js +1 -1
  221. package/dist/components/rtk-idle-screen.js +1 -1
  222. package/dist/components/rtk-image-message-view.js +1 -1
  223. package/dist/components/rtk-image-message.js +1 -1
  224. package/dist/components/rtk-image-viewer.js +1 -1
  225. package/dist/components/rtk-information-tooltip.js +1 -1
  226. package/dist/components/rtk-join-stage.js +1 -1
  227. package/dist/components/rtk-leave-button.js +1 -1
  228. package/dist/components/rtk-leave-meeting.js +1 -1
  229. package/dist/components/rtk-livestream-indicator.js +1 -1
  230. package/dist/components/rtk-livestream-player.js +1 -1
  231. package/dist/components/rtk-livestream-toggle.js +1 -1
  232. package/dist/components/rtk-logo.js +1 -1
  233. package/dist/components/rtk-meeting-title.js +1 -1
  234. package/dist/components/rtk-meeting.js +1 -1
  235. package/dist/components/rtk-menu-item.js +1 -1
  236. package/dist/components/rtk-menu-list.js +1 -1
  237. package/dist/components/rtk-menu.js +1 -1
  238. package/dist/components/rtk-message-list-view.js +1 -1
  239. package/dist/components/rtk-message-view.js +1 -1
  240. package/dist/components/rtk-mic-toggle.js +1 -1
  241. package/dist/components/rtk-microphone-selector.js +1 -1
  242. package/dist/components/rtk-mixed-grid.js +1 -1
  243. package/dist/components/rtk-more-toggle.js +1 -1
  244. package/dist/components/rtk-mute-all-button.js +1 -1
  245. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  246. package/dist/components/rtk-name-tag.js +1 -1
  247. package/dist/components/rtk-network-indicator.js +1 -1
  248. package/dist/components/rtk-notification.js +1 -1
  249. package/dist/components/rtk-notifications.js +1 -1
  250. package/dist/components/rtk-overlay-modal.js +1 -1
  251. package/dist/components/rtk-paginated-list.js +1 -1
  252. package/dist/components/rtk-participant-count.js +1 -1
  253. package/dist/components/rtk-participant-setup.js +1 -1
  254. package/dist/components/rtk-participant-tile.js +1 -1
  255. package/dist/components/rtk-participant.js +1 -1
  256. package/dist/components/rtk-participants-audio.js +1 -1
  257. package/dist/components/rtk-participants-stage-list.js +1 -1
  258. package/dist/components/rtk-participants-stage-queue.js +1 -1
  259. package/dist/components/rtk-participants-toggle.js +1 -1
  260. package/dist/components/rtk-participants-viewer-list.js +1 -1
  261. package/dist/components/rtk-participants-waiting-list.js +1 -1
  262. package/dist/components/rtk-participants.js +1 -1
  263. package/dist/components/rtk-permissions-message.js +1 -1
  264. package/dist/components/rtk-pinned-message-selector.js +1 -1
  265. package/dist/components/rtk-pip-toggle.js +1 -1
  266. package/dist/components/rtk-plugin-main.js +1 -1
  267. package/dist/components/rtk-plugins-toggle.js +1 -1
  268. package/dist/components/rtk-plugins.js +1 -1
  269. package/dist/components/rtk-poll-form.js +1 -1
  270. package/dist/components/rtk-poll.js +1 -1
  271. package/dist/components/rtk-polls-toggle.js +1 -1
  272. package/dist/components/rtk-polls.js +1 -1
  273. package/dist/components/rtk-recording-indicator.js +1 -1
  274. package/dist/components/rtk-recording-toggle.js +1 -1
  275. package/dist/components/rtk-screen-share-toggle.js +1 -1
  276. package/dist/components/rtk-screenshare-view.js +1 -1
  277. package/dist/components/rtk-settings-audio.js +1 -1
  278. package/dist/components/rtk-settings-toggle.js +1 -1
  279. package/dist/components/rtk-settings-video.js +1 -1
  280. package/dist/components/rtk-settings.js +1 -1
  281. package/dist/components/rtk-setup-screen.js +1 -1
  282. package/dist/components/rtk-sidebar-ui.js +1 -1
  283. package/dist/components/rtk-sidebar.js +1 -1
  284. package/dist/components/rtk-simple-grid.js +1 -1
  285. package/dist/components/rtk-speaker-selector.js +1 -1
  286. package/dist/components/rtk-spinner.js +1 -1
  287. package/dist/components/rtk-spotlight-grid.js +1 -1
  288. package/dist/components/rtk-spotlight-indicator.js +1 -1
  289. package/dist/components/rtk-stage-toggle.js +1 -1
  290. package/dist/components/rtk-stage.js +1 -1
  291. package/dist/components/rtk-switch.js +1 -1
  292. package/dist/components/rtk-tab-bar.js +1 -1
  293. package/dist/components/rtk-text-composer-view.js +1 -1
  294. package/dist/components/rtk-text-message.js +1 -1
  295. package/dist/components/rtk-transcript.js +1 -1
  296. package/dist/components/rtk-transcripts.js +1 -1
  297. package/dist/components/rtk-ui-provider.js +1 -1
  298. package/dist/components/rtk-viewer-count.js +1 -1
  299. package/dist/components/rtk-waiting-screen.js +1 -1
  300. package/dist/docs/docs-components.json +1 -1
  301. package/dist/esm/{TextMessage-C1lPu3R8.js → TextMessage-B-38YeFE.js} +1 -1
  302. package/dist/esm/{chat-DRqOBXqN.js → chat-a6CRyl2K.js} +1 -1
  303. package/dist/esm/{config-BiYmSYD9.js → config-wP0cqv4b.js} +2 -2
  304. package/dist/esm/{debounce-BmgYF10w.js → debounce-lqMlEJcq.js} +1 -1
  305. package/dist/esm/{index-BnFmFXDx.js → index-CP1LPkYZ.js} +1 -1
  306. package/dist/esm/index.js +6 -6
  307. package/dist/esm/loader.js +1 -1
  308. package/dist/esm/{merge-Bnx8tW3F.js → merge-BWjuIacB.js} +1 -1
  309. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  310. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  311. package/dist/esm/rtk-ai_3.entry.js +2 -2
  312. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  313. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  314. package/dist/esm/rtk-audio-visualizer_4.entry.js +2 -2
  315. package/dist/esm/rtk-avatar_26.entry.js +6 -6
  316. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  317. package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +2 -2
  318. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  319. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  320. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  321. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  322. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  323. package/dist/esm/rtk-chat-message.entry.js +2 -2
  324. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  325. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  326. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  327. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  328. package/dist/esm/rtk-clock.entry.js +2 -2
  329. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  330. package/dist/esm/rtk-controlbar.entry.js +2 -2
  331. package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
  332. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  333. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  334. package/dist/esm/rtk-dialog.entry.js +2 -2
  335. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  336. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  337. package/dist/esm/rtk-file-message_3.entry.js +4 -4
  338. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  339. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  340. package/dist/esm/rtk-grid.entry.js +2 -2
  341. package/dist/esm/rtk-header.entry.js +2 -2
  342. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  343. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  344. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  345. package/dist/esm/rtk-leave-button.entry.js +2 -2
  346. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  347. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  348. package/dist/esm/rtk-logo.entry.js +2 -2
  349. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  350. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  351. package/dist/esm/rtk-mic-toggle.entry.js +2 -2
  352. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  353. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  354. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  355. package/dist/esm/rtk-name-tag.entry.js +2 -2
  356. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  357. package/dist/esm/rtk-notification.entry.js +4 -4
  358. package/dist/esm/rtk-notifications.entry.js +3 -3
  359. package/dist/esm/rtk-participant-count.entry.js +2 -2
  360. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  361. package/dist/esm/rtk-participant_2.entry.js +3 -3
  362. package/dist/esm/rtk-participants-audio.entry.js +2 -2
  363. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  364. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  365. package/dist/esm/rtk-participants.entry.js +3 -3
  366. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  367. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  368. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  369. package/dist/esm/rtk-poll_2.entry.js +2 -2
  370. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  371. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  372. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  373. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  374. package/dist/esm/rtk-screenshare-view.entry.js +2 -2
  375. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  376. package/dist/esm/rtk-settings-toggle.entry.js +2 -2
  377. package/dist/esm/rtk-settings.entry.js +2 -2
  378. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  379. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  380. package/dist/esm/rtk-sidebar.entry.js +2 -2
  381. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  382. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  383. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  384. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  385. package/dist/esm/rtk-stage.entry.js +2 -2
  386. package/dist/esm/rtk-transcript.entry.js +2 -2
  387. package/dist/esm/rtk-transcripts.entry.js +2 -2
  388. package/dist/esm/rtk-ui-provider.entry.js +2 -2
  389. package/dist/esm/rtk-waiting-screen.entry.js +2 -2
  390. package/dist/esm/{ui-store-CkvSNsmd.js → ui-store-Ctcbman-.js} +1 -1
  391. package/dist/realtimekit-ui/index.esm.js +1 -1
  392. package/dist/realtimekit-ui/{p-b7f7e42a.entry.js → p-0195bd60.entry.js} +1 -1
  393. package/dist/realtimekit-ui/{p-0c1a8f1a.entry.js → p-01c014e4.entry.js} +1 -1
  394. package/dist/realtimekit-ui/{p-f2380597.entry.js → p-0264d57f.entry.js} +1 -1
  395. package/dist/realtimekit-ui/{p-eeb3d851.entry.js → p-09ce95b2.entry.js} +1 -1
  396. package/dist/realtimekit-ui/{p-b90a0bf4.entry.js → p-194ebf74.entry.js} +1 -1
  397. package/dist/realtimekit-ui/{p-71b0d221.entry.js → p-21b69da3.entry.js} +1 -1
  398. package/dist/realtimekit-ui/{p-e3015917.entry.js → p-23e14ccd.entry.js} +1 -1
  399. package/dist/realtimekit-ui/{p-607f649e.entry.js → p-27751707.entry.js} +1 -1
  400. package/dist/realtimekit-ui/{p-11a08757.entry.js → p-286ce4d7.entry.js} +1 -1
  401. package/dist/realtimekit-ui/{p-f182042f.entry.js → p-2a527754.entry.js} +1 -1
  402. package/dist/realtimekit-ui/{p-207aa239.entry.js → p-2da96ec3.entry.js} +1 -1
  403. package/dist/realtimekit-ui/{p-ec9d4173.entry.js → p-2fd5255e.entry.js} +1 -1
  404. package/dist/realtimekit-ui/{p-1e4ffceb.entry.js → p-31c97dcd.entry.js} +1 -1
  405. package/dist/realtimekit-ui/{p-ff436b41.entry.js → p-384db558.entry.js} +1 -1
  406. package/dist/realtimekit-ui/{p-12fa2370.entry.js → p-3ed792bf.entry.js} +1 -1
  407. package/dist/realtimekit-ui/{p-588dcb34.entry.js → p-401b9ed3.entry.js} +1 -1
  408. package/dist/realtimekit-ui/{p-af7bffbb.entry.js → p-462d4e8f.entry.js} +1 -1
  409. package/dist/realtimekit-ui/p-47abb821.entry.js +1 -0
  410. package/dist/realtimekit-ui/{p-458e87f0.entry.js → p-481e75eb.entry.js} +1 -1
  411. package/dist/realtimekit-ui/{p-d79a49f3.entry.js → p-4a1ec4a2.entry.js} +1 -1
  412. package/dist/realtimekit-ui/{p-e1542a67.entry.js → p-4aa24ae6.entry.js} +1 -1
  413. package/dist/realtimekit-ui/{p-cf8e7495.entry.js → p-4add313e.entry.js} +1 -1
  414. package/dist/realtimekit-ui/{p-d1c91dad.entry.js → p-4bd89bff.entry.js} +1 -1
  415. package/dist/realtimekit-ui/{p-7bf3de16.entry.js → p-4ed011a1.entry.js} +1 -1
  416. package/dist/realtimekit-ui/{p-ad1157e0.entry.js → p-5361cd19.entry.js} +1 -1
  417. package/dist/realtimekit-ui/{p-14204827.entry.js → p-53ce2f30.entry.js} +1 -1
  418. package/dist/realtimekit-ui/{p-727fa3f2.entry.js → p-55ec635e.entry.js} +1 -1
  419. package/dist/realtimekit-ui/{p-2438cd32.entry.js → p-56df9c19.entry.js} +1 -1
  420. package/dist/realtimekit-ui/{p-f95e96b7.entry.js → p-58366145.entry.js} +1 -1
  421. package/dist/realtimekit-ui/{p-de1b894a.entry.js → p-601f1040.entry.js} +1 -1
  422. package/dist/realtimekit-ui/{p-64224592.entry.js → p-62a46799.entry.js} +1 -1
  423. package/dist/realtimekit-ui/{p-ee470245.entry.js → p-64bc4514.entry.js} +1 -1
  424. package/dist/realtimekit-ui/{p-b04cc83e.entry.js → p-67ee7fdd.entry.js} +1 -1
  425. package/dist/realtimekit-ui/{p-e010a673.entry.js → p-6ab2602a.entry.js} +1 -1
  426. package/dist/realtimekit-ui/{p-d10a73b2.entry.js → p-6b387775.entry.js} +1 -1
  427. package/dist/realtimekit-ui/{p-d438c98e.entry.js → p-6e0f43e4.entry.js} +1 -1
  428. package/dist/realtimekit-ui/{p-cb9a3294.entry.js → p-6e8c871f.entry.js} +1 -1
  429. package/dist/realtimekit-ui/{p-d9061f53.entry.js → p-7f45a1cd.entry.js} +1 -1
  430. package/dist/realtimekit-ui/{p-b1da05d3.entry.js → p-80b42139.entry.js} +1 -1
  431. package/dist/realtimekit-ui/{p-3e34195d.entry.js → p-815d9724.entry.js} +1 -1
  432. package/dist/realtimekit-ui/{p-0872cae4.entry.js → p-83a920c6.entry.js} +1 -1
  433. package/dist/realtimekit-ui/{p-92f6959e.entry.js → p-893da38a.entry.js} +1 -1
  434. package/dist/realtimekit-ui/{p-8cb45932.entry.js → p-959917cc.entry.js} +1 -1
  435. package/dist/realtimekit-ui/{p-932c7070.entry.js → p-9aac22a5.entry.js} +1 -1
  436. package/dist/realtimekit-ui/{p-56a5c456.entry.js → p-9ad5187d.entry.js} +1 -1
  437. package/dist/realtimekit-ui/{p-b491565f.entry.js → p-9ce9b595.entry.js} +1 -1
  438. package/dist/realtimekit-ui/{p-ae82b88b.entry.js → p-9fa91df2.entry.js} +1 -1
  439. package/dist/realtimekit-ui/{p-676d4a41.entry.js → p-9fb75436.entry.js} +1 -1
  440. package/dist/realtimekit-ui/{p-1de6c388.entry.js → p-9fd3cb5e.entry.js} +1 -1
  441. package/dist/realtimekit-ui/{p-3h3Qc6lD.js → p-B91vjjSJ.js} +1 -1
  442. package/dist/realtimekit-ui/{p-Dy41dnX2.js → p-BmRffDYW.js} +1 -1
  443. package/dist/realtimekit-ui/{p-BmaxriWP.js → p-CQ2xadpP.js} +1 -1
  444. package/dist/realtimekit-ui/{p-Cm8ENd-O.js → p-CfUJPUNx.js} +1 -1
  445. package/dist/realtimekit-ui/p-DI7wP4CL.js +1 -0
  446. package/dist/realtimekit-ui/{p-BTwUl5G9.js → p-MlOz-emx.js} +1 -1
  447. package/dist/realtimekit-ui/{p-2d1b8896.entry.js → p-a34a267b.entry.js} +1 -1
  448. package/dist/realtimekit-ui/{p-f5a30d5b.entry.js → p-a609f991.entry.js} +1 -1
  449. package/dist/realtimekit-ui/p-a646f038.entry.js +1 -0
  450. package/dist/realtimekit-ui/{p-df4122cb.entry.js → p-ab63946e.entry.js} +1 -1
  451. package/dist/realtimekit-ui/{p-d089d2bb.entry.js → p-ac79ef88.entry.js} +1 -1
  452. package/dist/realtimekit-ui/{p-cffb7c0e.entry.js → p-b41fc081.entry.js} +1 -1
  453. package/dist/realtimekit-ui/{p-066359c2.entry.js → p-b46d416b.entry.js} +1 -1
  454. package/dist/realtimekit-ui/{p-7e0daf2a.entry.js → p-b9f47f88.entry.js} +1 -1
  455. package/dist/realtimekit-ui/{p-86b027f8.entry.js → p-ba7fb049.entry.js} +1 -1
  456. package/dist/realtimekit-ui/{p-9e855d5f.entry.js → p-bcc20509.entry.js} +1 -1
  457. package/dist/realtimekit-ui/{p-ecac916f.entry.js → p-bcc42454.entry.js} +1 -1
  458. package/dist/realtimekit-ui/{p-34e01092.entry.js → p-bd848924.entry.js} +1 -1
  459. package/dist/realtimekit-ui/{p-a74a3bd7.entry.js → p-bdd8ebec.entry.js} +1 -1
  460. package/dist/realtimekit-ui/{p-cb9955f1.entry.js → p-bf54cdd9.entry.js} +1 -1
  461. package/dist/realtimekit-ui/p-c6d03162.entry.js +1 -0
  462. package/dist/realtimekit-ui/{p-fc6bfa36.entry.js → p-c6f6afcd.entry.js} +1 -1
  463. package/dist/realtimekit-ui/{p-8f4c582b.entry.js → p-cd5069ea.entry.js} +1 -1
  464. package/dist/realtimekit-ui/{p-c8f68298.entry.js → p-cf7f7d9c.entry.js} +1 -1
  465. package/dist/realtimekit-ui/{p-538b2ecf.entry.js → p-d4ff2477.entry.js} +1 -1
  466. package/dist/realtimekit-ui/{p-4d2fcc46.entry.js → p-d52b8b3d.entry.js} +1 -1
  467. package/dist/realtimekit-ui/{p-9139643b.entry.js → p-d85e142c.entry.js} +1 -1
  468. package/dist/realtimekit-ui/p-d9c7c4d8.entry.js +1 -0
  469. package/dist/realtimekit-ui/{p-CKXY5S4J.js → p-dYOM3dvx.js} +1 -1
  470. package/dist/realtimekit-ui/{p-6fa0e07e.entry.js → p-da9c7efe.entry.js} +1 -1
  471. package/dist/realtimekit-ui/{p-5f9fdbf1.entry.js → p-dc7a28a6.entry.js} +1 -1
  472. package/dist/realtimekit-ui/{p-8f362ed0.entry.js → p-dd6fa0d8.entry.js} +1 -1
  473. package/dist/realtimekit-ui/{p-7b94fb4f.entry.js → p-de4ecd17.entry.js} +1 -1
  474. package/dist/realtimekit-ui/{p-691a610d.entry.js → p-e347e0d8.entry.js} +1 -1
  475. package/dist/realtimekit-ui/{p-c2ea0c8a.entry.js → p-e8e6a1c8.entry.js} +1 -1
  476. package/dist/realtimekit-ui/{p-bbe8664e.entry.js → p-f5377574.entry.js} +1 -1
  477. package/dist/realtimekit-ui/{p-260169b4.entry.js → p-f5809d7c.entry.js} +1 -1
  478. package/dist/realtimekit-ui/{p-2bbc4dfc.entry.js → p-f6085321.entry.js} +1 -1
  479. package/dist/realtimekit-ui/{p-255290c6.entry.js → p-fb0a9fa6.entry.js} +1 -1
  480. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  481. package/package.json +1 -1
  482. package/dist/components/p-BsxEHBW2.js +0 -1
  483. package/dist/components/p-BthnOddY.js +0 -1
  484. package/dist/components/p-CEjlztlu.js +0 -1
  485. package/dist/realtimekit-ui/p-27dd7099.entry.js +0 -1
  486. package/dist/realtimekit-ui/p-94f25ba4.entry.js +0 -1
  487. package/dist/realtimekit-ui/p-98b33e56.entry.js +0 -1
  488. package/dist/realtimekit-ui/p-D9rFUUCb.js +0 -1
  489. package/dist/realtimekit-ui/p-c6be9e1f.entry.js +0 -1
@@ -1 +1 @@
1
- import{p as t,H as i,h as e,d as r,t as n}from"./p-BBHQOrFK.js";import{e as a,i as s}from"./p-BthnOddY.js";import{S as o}from"./p-DL4GSZ2e.js";import{d as c}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";var d=function(t,i,e,r){var n,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(s=(a<3?n(s):a>3?n(i,e,s):n(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=a,this.t=s(),this.canDeactivatePlugin=!1}connectedCallback(){this.pluginChanged(this.plugin)}pluginChanged(t){var i,e;null!=t&&(this.canDeactivatePlugin=null!==(e=null===(i=t.permissions)||void 0===i?void 0:i.canDeactivate)&&void 0!==e&&e,this.attachView(t))}attachView(t){const e=t.component;if(e instanceof i&&this.host.firstElementChild!==e){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild);this.host.appendChild(e)}}disconnectedCallback(){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild)}render(){return null==this.plugin?null:e(r,null,e("header",{part:"header"},e("div",null,this.plugin.name),this.canDeactivatePlugin&&e("div",null,e("rtk-button",{kind:"icon",onClick:()=>this.plugin.deactivate(),part:"button"},e("rtk-icon",{icon:this.iconPack.dismiss})))),e("div",{class:"view-container"},e("slot",null)))}get host(){return this}static get watchers(){return{plugin:[{pluginChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}header>div{display:flex;align-items:center}rtk-button{display:flex;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-direction:column;align-items:center;border-radius:9999px}rtk-button rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.view-container{position:relative;height:100%;width:100%;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity))}.view-container ::slotted(*){width:100%;height:100%;display:block}"}},[257,"rtk-plugin-main",{meeting:[16],plugin:[16],iconPack:[16],t:[16],canDeactivatePlugin:[32]},void 0,{plugin:[{pluginChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["rtk-plugin-main","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-plugin-main":customElements.get(n(t))||customElements.define(n(t),p);break;case"rtk-button":customElements.get(n(t))||c();break;case"rtk-icon":customElements.get(n(t))||l()}}))}d([o()],p.prototype,"meeting",void 0),d([o()],p.prototype,"iconPack",void 0),d([o()],p.prototype,"t",void 0),h();export{p as R,h as d}
1
+ import{p as t,H as i,h as e,d as r,t as n}from"./p-BBHQOrFK.js";import{e as a,i as s}from"./p-DhwysA2e.js";import{S as o}from"./p-bRRQr4xn.js";import{d as c}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";var d=function(t,i,e,r){var n,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(s=(a<3?n(s):a>3?n(i,e,s):n(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=a,this.t=s(),this.canDeactivatePlugin=!1}connectedCallback(){this.pluginChanged(this.plugin)}pluginChanged(t){var i,e;null!=t&&(this.canDeactivatePlugin=null!==(e=null===(i=t.permissions)||void 0===i?void 0:i.canDeactivate)&&void 0!==e&&e,this.attachView(t))}attachView(t){const e=t.component;if(e instanceof i&&this.host.firstElementChild!==e){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild);this.host.appendChild(e)}}disconnectedCallback(){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild)}render(){return null==this.plugin?null:e(r,null,e("header",{part:"header"},e("div",null,this.plugin.name),this.canDeactivatePlugin&&e("div",null,e("rtk-button",{kind:"icon",onClick:()=>this.plugin.deactivate(),part:"button"},e("rtk-icon",{icon:this.iconPack.dismiss})))),e("div",{class:"view-container"},e("slot",null)))}get host(){return this}static get watchers(){return{plugin:[{pluginChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}header>div{display:flex;align-items:center}rtk-button{display:flex;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-direction:column;align-items:center;border-radius:9999px}rtk-button rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.view-container{position:relative;height:100%;width:100%;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity))}.view-container ::slotted(*){width:100%;height:100%;display:block}"}},[257,"rtk-plugin-main",{meeting:[16],plugin:[16],iconPack:[16],t:[16],canDeactivatePlugin:[32]},void 0,{plugin:[{pluginChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["rtk-plugin-main","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-plugin-main":customElements.get(n(t))||customElements.define(n(t),p);break;case"rtk-button":customElements.get(n(t))||c();break;case"rtk-icon":customElements.get(n(t))||l()}}))}d([o()],p.prototype,"meeting",void 0),d([o()],p.prototype,"iconPack",void 0),d([o()],p.prototype,"t",void 0),h();export{p as R,h as d}
@@ -1 +1 @@
1
- import{p as e,H as s,h as a,d as t,t as c}from"./p-BBHQOrFK.js";import{C as i}from"./p-aS2wpIc0.js";import{a as d}from"./p-CJsXePY3.js";import{e as f,i as o}from"./p-BthnOddY.js";import{g as b,a as n,d as r}from"./p-DDaHXyCC.js";import{S as m}from"./p-DL4GSZ2e.js";import{d as l}from"./p-D6vw6bT2.js";import{d as k}from"./p-BYIBbfJ8.js";var p=function(e,s,a,t){var c,i=arguments.length,d=i<3?s:null===t?t=Object.getOwnPropertyDescriptor(s,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,s,a,t);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(d=(i<3?c(d):i>3?c(s,a,d):c(s,a))||d);return i>3&&d&&Object.defineProperty(s,a,d),d};const u=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.now=new Date,this.isContinued=!1,this.iconPack=f,this.t=o(),this.showBubble=!1}render(){const e=d(this.message.link);return a(t,{key:"b10da5fd1c4c6d80a1e5bf5f35f4956abde0ed5d"},!this.isContinued&&a(i,{key:"fb1384ad8bfc73219b28c4500f78e6c6421ee848",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"81a067a5567ad160e4398a6f16b21309f81a0c9b",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"c6eb4b26b0090b7f9fd6af9e79d04c8b4e76a6d1",class:"file"},a("div",{key:"10e9b854fa0c1f311bb1bc76c90223220c9a10f3",class:"file-data"},a("div",{key:"ace6eeb050ad6c656cd215456b69f8b6e9529aec",class:"name"},this.message.name),a("div",{key:"562de08ebd242e92aeca1fae0aa4823612a60c1c",class:"file-data-split"},a("div",{key:"968eee3032f98a59da43c0b4604dc597c4bfd94c",class:"ext"},b(this.message.name)),a("span",{key:"2cb436ffed86b9c3a73ff5feab9d3ec7c8e0ef3b",class:"divider"}),a("div",{key:"9cc1d37edf60fbd3d3538512539a79244ffd74de",class:"size"},n(this.message.size)))),a("rtk-button",{key:"e4eb744391b8fe61bd4d58e3ac3d7d10ee748976",variant:"secondary",kind:"icon",onClick:()=>r(e,{name:this.message.name,fallbackName:"file"}),part:"button"},a("rtk-icon",{key:"79efeb36257d970f243d1730d0ac4ad84bc6993d",icon:this.iconPack.download})))))}},[0,"rtk-file-message",{message:[16],now:[16],isContinued:[516,"is-continued"],iconPack:[16],t:[16],showBubble:[4,"show-bubble"]}]);function h(){"undefined"!=typeof customElements&&["rtk-file-message","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-file-message":customElements.get(c(e))||customElements.define(c(e),u);break;case"rtk-button":customElements.get(c(e))||l();break;case"rtk-icon":customElements.get(c(e))||k()}}))}p([m()],u.prototype,"iconPack",void 0),p([m()],u.prototype,"t",void 0),h();export{u as R,h as d}
1
+ import{p as e,H as s,h as a,d as t,t as c}from"./p-BBHQOrFK.js";import{C as i}from"./p-aS2wpIc0.js";import{a as d}from"./p-CJsXePY3.js";import{e as f,i as o}from"./p-DhwysA2e.js";import{g as b,a as n,d as r}from"./p-DDaHXyCC.js";import{S as m}from"./p-bRRQr4xn.js";import{d as l}from"./p-D6vw6bT2.js";import{d as k}from"./p-BYIBbfJ8.js";var p=function(e,s,a,t){var c,i=arguments.length,d=i<3?s:null===t?t=Object.getOwnPropertyDescriptor(s,a):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,s,a,t);else for(var f=e.length-1;f>=0;f--)(c=e[f])&&(d=(i<3?c(d):i>3?c(s,a,d):c(s,a))||d);return i>3&&d&&Object.defineProperty(s,a,d),d};const u=e(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.now=new Date,this.isContinued=!1,this.iconPack=f,this.t=o(),this.showBubble=!1}render(){const e=d(this.message.link);return a(t,{key:"b10da5fd1c4c6d80a1e5bf5f35f4956abde0ed5d"},!this.isContinued&&a(i,{key:"fb1384ad8bfc73219b28c4500f78e6c6421ee848",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"81a067a5567ad160e4398a6f16b21309f81a0c9b",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"c6eb4b26b0090b7f9fd6af9e79d04c8b4e76a6d1",class:"file"},a("div",{key:"10e9b854fa0c1f311bb1bc76c90223220c9a10f3",class:"file-data"},a("div",{key:"ace6eeb050ad6c656cd215456b69f8b6e9529aec",class:"name"},this.message.name),a("div",{key:"562de08ebd242e92aeca1fae0aa4823612a60c1c",class:"file-data-split"},a("div",{key:"968eee3032f98a59da43c0b4604dc597c4bfd94c",class:"ext"},b(this.message.name)),a("span",{key:"2cb436ffed86b9c3a73ff5feab9d3ec7c8e0ef3b",class:"divider"}),a("div",{key:"9cc1d37edf60fbd3d3538512539a79244ffd74de",class:"size"},n(this.message.size)))),a("rtk-button",{key:"e4eb744391b8fe61bd4d58e3ac3d7d10ee748976",variant:"secondary",kind:"icon",onClick:()=>r(e,{name:this.message.name,fallbackName:"file"}),part:"button"},a("rtk-icon",{key:"79efeb36257d970f243d1730d0ac4ad84bc6993d",icon:this.iconPack.download})))))}},[0,"rtk-file-message",{message:[16],now:[16],isContinued:[516,"is-continued"],iconPack:[16],t:[16],showBubble:[4,"show-bubble"]}]);function h(){"undefined"!=typeof customElements&&["rtk-file-message","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-file-message":customElements.get(c(e))||customElements.define(c(e),u);break;case"rtk-button":customElements.get(c(e))||l();break;case"rtk-icon":customElements.get(c(e))||k()}}))}p([m()],u.prototype,"iconPack",void 0),p([m()],u.prototype,"t",void 0),h();export{u as R,h as d}
@@ -1 +1 @@
1
- import{p as e,H as t,c as a,h as r,d as s,t as i}from"./p-BBHQOrFK.js";import{e as o,i as n}from"./p-BthnOddY.js";import{S as c}from"./p-DL4GSZ2e.js";import{d as l}from"./p-D6vw6bT2.js";var d=function(e,t,a,r){var s,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(o=(i<3?s(o):i>3?s(t,a,o):s(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};const f=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=a(this,"rtkStateUpdate",7),this.iconPack=o,this.t=n(),this.allowUnmute=!0,this.onClose=()=>{this.stateUpdate.emit({activeMuteAllConfirmation:!1})},this.onMuteAll=()=>{var e;null===(e=this.meeting)||void 0===e||e.participants.disableAllAudio(this.allowUnmute),this.onClose()}}render(){return r(s,{key:"e47a9e4e3c89bc1badc85cb76edf522eb8514c58"},r("div",{key:"bafee985eb5f1e01d87e509018917473d3723190",class:"leave-modal"},r("div",{key:"f21285fa0b0239c9f64a9390599528dfe50a355b",class:"header"},r("h2",{key:"5201c1d79f1d64e513ef8036b16fd03e27280baf",class:"title"},this.t("mute_all.header"))),r("p",{key:"5c5af2814146578f3b3c3ae434f45da414b97f15",class:"message"},this.t("mute_all.description")),r("div",{key:"cde4bbb5ee289ad5b65a9fb13d0fb5bc5f309a0b",class:"content"},r("div",{key:"1f034975b9099d8474c3442da08fc79660b74a70",class:"leave-meeting"},r("rtk-button",{key:"16614bc8443e1e249d0eda46d66227eedf036856",variant:"secondary",title:this.t("close"),onClick:this.onClose},this.t("cancel")),r("rtk-button",{key:"6f67cf660adcc1d849f5cd090003a5c7ad26947d",variant:"danger",title:this.t("mute_all"),onClick:this.onMuteAll},this.t("mute_all"))))))}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;-webkit-user-select:none;-moz-user-select:none;user-select:none}.leave-modal{position:relative;display:flex;flex-direction:column;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.leave-modal .header h2{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-3, 12px)}.leave-modal .content{font-size:14px}.leave-message p{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px)}.leave-meeting{display:flex;flex-direction:row;justify-content:space-between;gap:var(--rtk-space-2, 8px)}.leave-meeting rtk-button{flex:1 1 0%}.end-meeting{margin-top:var(--rtk-space-2, 8px)}.message{margin-bottom:var(--rtk-space-4, 16px)}label{display:flex;align-items:center}input[type='checkbox']{margin-right:var(--rtk-space-2, 8px);accent-color:rgb(var(--rtk-colors-brand-500, 33 96 253))}"}},[1,"rtk-mute-all-confirmation",{meeting:[16],states:[16],iconPack:[16],t:[16],allowUnmute:[32]}]);function m(){"undefined"!=typeof customElements&&["rtk-mute-all-confirmation","rtk-button"].forEach((e=>{switch(e){case"rtk-mute-all-confirmation":customElements.get(i(e))||customElements.define(i(e),f);break;case"rtk-button":customElements.get(i(e))||l()}}))}d([c()],f.prototype,"meeting",void 0),d([c()],f.prototype,"states",void 0),d([c()],f.prototype,"iconPack",void 0),d([c()],f.prototype,"t",void 0),m();export{f as R,m as d}
1
+ import{p as e,H as t,c as a,h as r,d as s,t as i}from"./p-BBHQOrFK.js";import{e as o,i as n}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d as l}from"./p-D6vw6bT2.js";var d=function(e,t,a,r){var s,i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(o=(i<3?s(o):i>3?s(t,a,o):s(t,a))||o);return i>3&&o&&Object.defineProperty(t,a,o),o};const f=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=a(this,"rtkStateUpdate",7),this.iconPack=o,this.t=n(),this.allowUnmute=!0,this.onClose=()=>{this.stateUpdate.emit({activeMuteAllConfirmation:!1})},this.onMuteAll=()=>{var e;null===(e=this.meeting)||void 0===e||e.participants.disableAllAudio(this.allowUnmute),this.onClose()}}render(){return r(s,{key:"e47a9e4e3c89bc1badc85cb76edf522eb8514c58"},r("div",{key:"bafee985eb5f1e01d87e509018917473d3723190",class:"leave-modal"},r("div",{key:"f21285fa0b0239c9f64a9390599528dfe50a355b",class:"header"},r("h2",{key:"5201c1d79f1d64e513ef8036b16fd03e27280baf",class:"title"},this.t("mute_all.header"))),r("p",{key:"5c5af2814146578f3b3c3ae434f45da414b97f15",class:"message"},this.t("mute_all.description")),r("div",{key:"cde4bbb5ee289ad5b65a9fb13d0fb5bc5f309a0b",class:"content"},r("div",{key:"1f034975b9099d8474c3442da08fc79660b74a70",class:"leave-meeting"},r("rtk-button",{key:"16614bc8443e1e249d0eda46d66227eedf036856",variant:"secondary",title:this.t("close"),onClick:this.onClose},this.t("cancel")),r("rtk-button",{key:"6f67cf660adcc1d849f5cd090003a5c7ad26947d",variant:"danger",title:this.t("mute_all"),onClick:this.onMuteAll},this.t("mute_all"))))))}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;-webkit-user-select:none;-moz-user-select:none;user-select:none}.leave-modal{position:relative;display:flex;flex-direction:column;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.leave-modal .header h2{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-3, 12px)}.leave-modal .content{font-size:14px}.leave-message p{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px)}.leave-meeting{display:flex;flex-direction:row;justify-content:space-between;gap:var(--rtk-space-2, 8px)}.leave-meeting rtk-button{flex:1 1 0%}.end-meeting{margin-top:var(--rtk-space-2, 8px)}.message{margin-bottom:var(--rtk-space-4, 16px)}label{display:flex;align-items:center}input[type='checkbox']{margin-right:var(--rtk-space-2, 8px);accent-color:rgb(var(--rtk-colors-brand-500, 33 96 253))}"}},[1,"rtk-mute-all-confirmation",{meeting:[16],states:[16],iconPack:[16],t:[16],allowUnmute:[32]}]);function m(){"undefined"!=typeof customElements&&["rtk-mute-all-confirmation","rtk-button"].forEach((e=>{switch(e){case"rtk-mute-all-confirmation":customElements.get(i(e))||customElements.define(i(e),f);break;case"rtk-button":customElements.get(i(e))||l()}}))}d([c()],f.prototype,"meeting",void 0),d([c()],f.prototype,"states",void 0),d([c()],f.prototype,"iconPack",void 0),d([c()],f.prototype,"t",void 0),m();export{f as R,m as d}
@@ -1 +1 @@
1
- import{p as t,H as r,c as a,h as e,d as i,t as s}from"./p-BBHQOrFK.js";import{e as o,i as c}from"./p-BthnOddY.js";import{p,g as n}from"./p-Daj_55_i.js";import{S as d}from"./p-DL4GSZ2e.js";import{f as b,s as l}from"./p-CJsXePY3.js";import{d as h}from"./p-BNRJKXAG.js";import{d as k}from"./p-BYIBbfJ8.js";import{d as g}from"./p-DXSMSSbW.js";import{d as f}from"./p-DHSRRtn3.js";var m=function(t,r,a,e){var i,s=arguments.length,o=s<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(r,a,o):i(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const v=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onSelectedParticipantsUpdate=a(this,"selectedParticipantsUpdate",7),this.onAllToggled=a(this,"allParticipantsToggleUpdate",7),this.onParticipantsDragging=a(this,"participantsDragging",7),this.participantIds=[],this.iconPack=o,this.t=c(),this.search="",this.participantsToShow=[],this.selectedParticipantIds=[],this.isDragging=!1,this.onSearchInput=t=>{this.search=t.target.value},this.onDragStart=t=>{this.isDragging=!0,this.onParticipantsDragging.emit(!0),this.updateSelectedParticipants(t,!0)},this.onDragEnd=t=>{this.isDragging=!1,this.onParticipantsDragging.emit(!1),this.updateSelectedParticipants(t,!1)},this.onClick=t=>{const r=this.selectedParticipantIds.includes(p(t));this.updateSelectedParticipants(t,!r)},this.onToggleAll=t=>{const r=t?this.participantsToShow.map(p):[];this.onAllToggled.emit(r)}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}disconnectedCallback(){}updateSelectedParticipants(t,r){const a=p(t);let e=[];e=r&&!this.selectedParticipantIds.includes(a)?[...this.selectedParticipantIds,a]:[...this.selectedParticipantIds.filter((t=>t!==a))],this.onSelectedParticipantsUpdate.emit(e)}meetingChanged(t){t&&this.getParticipants(this.search)}participantsChanged(){this.getParticipants(this.search)}searchChanged(t){this.getParticipants(t)}getParticipants(t){const r=n(this.meeting);this.participantsToShow=r.filter((r=>{var a;return this.participantIds.includes(p(r))&&(null!==(a=r.displayName)&&void 0!==a?a:"").toLowerCase().includes(t.toLowerCase())}))}renderPeer(t){const r=b(t.displayName||"");return e("div",{class:"peer-ui-container"},e("rtk-avatar",{participant:{name:t.displayName,picture:t.displayPictureUrl},size:"sm"}),e("p",{class:"name",title:r},l(r,16),this.meeting.self.userId===t.id&&` (${this.t("you")})`))}render(){return e(i,{key:"94cb6d982e09320de84247ed54125112bd3e13d3"},e("div",{key:"209bf3e3aab27fa05592bb24242bd6b4d0311437",class:"search-wrapper"},e("div",{key:"a827dcb5f643d421e6974f37f61b9d491332467f",class:"search",part:"search"},e("rtk-icon",{key:"cf06dfdf881b67faeff7c99445eb96994e73c87f",icon:this.iconPack.search,part:"search-icon",class:"search-icon"}),e("input",{key:"d70fda9e533d770f1e03735ff7f1a69a49e8e8ad",type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),e("slot",{key:"14ae3d89ee242081fdbc953b4c5b6416c873933f",name:"shuffle-button"})),e("div",{key:"c86217a6ccf23ce29d6cf366be8c401556f5b72e",class:"header"},e("div",{key:"217d658e89b4647628fb826d11dd05bcf9ac892f",class:"title-wrapper"},e("span",{key:"7fa37a9e42871c36543f2107a872f1e14fb03bb8"},this.t("breakout_rooms.main_room")),e("span",{key:"956a5b53d06dea779b1bd00df955f653ea26202f",class:"participant-count"},"(",e("rtk-icon",{key:"9f9de13fc327edc1f90beddbf1edefb70bcedbe0",icon:this.iconPack.people}),this.participantsToShow.length,")")),0!==this.selectedParticipantIds.length&&e("rtk-tooltip",{key:"abc39eba7b381b8beae1ecc6d6afda27ba37975a",label:this.t("breakout_rooms.select_all")},e("input",{key:"5e5dfa6c0f68a80b58d44d8b2be8d31c5c22bc69",type:"checkbox",checked:this.selectedParticipantIds.length===this.participantsToShow.length,onChange:t=>this.onToggleAll(!!t.target.checked)}))),e("div",{key:"fcb0a2ceac16b68948d3f93ddc0f6f9e2542d6d8",class:"ctr scrollbar",part:"container"},this.participantsToShow.length>0&&e("ul",{key:"19916d9d462370718445dfb01a23d2806a57f1ff",class:"participants",part:"participants"},this.participantsToShow.map((t=>e("li",{class:{"participant-item":!0,dragging:this.isDragging},onClick:()=>this.onClick(t),onDragStart:()=>this.onDragStart(t),onDragEnd:()=>this.onDragEnd(t),draggable:0===this.selectedParticipantIds.length,role:"listitem",key:t.id},this.renderPeer(t),!this.isDragging&&e("input",{type:"checkbox",class:{"hide-checkbox":0===this.selectedParticipantIds.length},checked:this.selectedParticipantIds.includes(p(t))}))))),0===this.participantsToShow.length&&this.search.length>0&&e("div",{key:"2b0898cb78599610406ff0ec2b2be0ef8c4615cf",class:"empty-message"},this.t("participants.errors.empty_results")),0===this.participantsToShow.length&&0===this.search.length&&e("div",{key:"f6bdab6034aa82bf26dfa1a08615d36dcd00dcf6",class:"empty-room"},e("rtk-icon",{key:"115e987588beb229aba15dffbd05ffbef71cb74c",icon:this.iconPack.people_checked,part:"search-icon",class:"search-icon"}),e("p",{key:"d8b6120c1361b97d1e73969d9da119aa7488a7b3"},this.t("breakout_rooms.all_assigned")),e("span",{key:"020aa6e5440976f89960b0972784c997a1f765a8"},this.t("breakout_rooms.empty_main_room")))))}static get watchers(){return{meeting:[{meetingChanged:0}],participantIds:[{participantsChanged:0}],search:[{searchChanged: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{display:flex;height:100%;flex-direction:column;font-size:14px}:host input[type='checkbox']{margin:var(--rtk-space-0, 0px);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rtk-border-radius-sm, 4px);position:relative;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;border-color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}:host input[type='checkbox']:checked{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host input[type='checkbox']:checked::before{position:absolute;top:1px;left:1px;height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);background-color:rgb(var(--rtk-colors-text-1000, 255 255 255));content:'';clip-path:polygon(5% 60%, 35% 93%, 100% 19%, 86% 4%, 36% 62%, 19% 44%)}*{box-sizing:border-box}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.ctr{box-sizing:border-box;padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.empty-message{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-10, 40px);text-align:center;font-size:14px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.empty-room{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px);height:100%;text-align:center;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.empty-room rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}.empty-room p{font-size:16px;font-weight:500;margin:var(--rtk-space-0, 0px)}.empty-room span{font-size:12px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search-wrapper{margin-bottom:var(--rtk-space-1, 4px);display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);height:var(--rtk-space-8, 32px)}.search .search-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:inherit;color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.header{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-1\\.5, 6px);height:var(--rtk-space-9, 36px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-0\\.5, 2px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-bottom-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));display:flex;align-items:center;justify-content:space-between}.title-wrapper{display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.participant-count{display:flex;align-items:center;font-size:14px}.participant-count rtk-icon{margin-right:var(--rtk-space-0\\.5, 2px);width:var(--rtk-space-3, 12px)}.participant-item{display:flex;align-items:center;justify-content:space-between;margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);cursor:pointer}.participant-item input.hide-checkbox{display:none}.participant-item input:checked{display:inline-block}.dragging input{display:none}.participant-item:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.participant-item:hover input{display:inline-block}.peer-ui-container{position:relative;display:flex;align-items:center;gap:var(--rtk-space-2, 8px);height:var(--rtk-space-10, 40px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.peer-ui-container rtk-avatar{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.peer-ui-container .name{font-size:14px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}"}},[257,"rtk-breakout-room-participants",{meeting:[16],participantIds:[16],iconPack:[16],t:[16],selectedParticipantIds:[16],search:[32],participantsToShow:[32],isDragging:[32]},void 0,{meeting:[{meetingChanged:0}],participantIds:[{participantsChanged:0}],search:[{searchChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-breakout-room-participants","rtk-avatar","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-breakout-room-participants":customElements.get(s(t))||customElements.define(s(t),v);break;case"rtk-avatar":customElements.get(s(t))||h();break;case"rtk-icon":customElements.get(s(t))||k();break;case"rtk-spinner":customElements.get(s(t))||g();break;case"rtk-tooltip":customElements.get(s(t))||f()}}))}m([d()],v.prototype,"meeting",void 0),m([d()],v.prototype,"iconPack",void 0),m([d()],v.prototype,"t",void 0),x();export{v as R,x as d}
1
+ import{p as t,H as r,c as a,h as e,d as i,t as s}from"./p-BBHQOrFK.js";import{e as o,i as c}from"./p-DhwysA2e.js";import{p,g as n}from"./p-Daj_55_i.js";import{S as d}from"./p-bRRQr4xn.js";import{f as b,s as l}from"./p-CJsXePY3.js";import{d as h}from"./p-BHHJ7_MS.js";import{d as k}from"./p-BYIBbfJ8.js";import{d as g}from"./p-B0SC1Zj-.js";import{d as f}from"./p-DHSRRtn3.js";var m=function(t,r,a,e){var i,s=arguments.length,o=s<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(r,a,o):i(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const v=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onSelectedParticipantsUpdate=a(this,"selectedParticipantsUpdate",7),this.onAllToggled=a(this,"allParticipantsToggleUpdate",7),this.onParticipantsDragging=a(this,"participantsDragging",7),this.participantIds=[],this.iconPack=o,this.t=c(),this.search="",this.participantsToShow=[],this.selectedParticipantIds=[],this.isDragging=!1,this.onSearchInput=t=>{this.search=t.target.value},this.onDragStart=t=>{this.isDragging=!0,this.onParticipantsDragging.emit(!0),this.updateSelectedParticipants(t,!0)},this.onDragEnd=t=>{this.isDragging=!1,this.onParticipantsDragging.emit(!1),this.updateSelectedParticipants(t,!1)},this.onClick=t=>{const r=this.selectedParticipantIds.includes(p(t));this.updateSelectedParticipants(t,!r)},this.onToggleAll=t=>{const r=t?this.participantsToShow.map(p):[];this.onAllToggled.emit(r)}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}disconnectedCallback(){}updateSelectedParticipants(t,r){const a=p(t);let e=[];e=r&&!this.selectedParticipantIds.includes(a)?[...this.selectedParticipantIds,a]:[...this.selectedParticipantIds.filter((t=>t!==a))],this.onSelectedParticipantsUpdate.emit(e)}meetingChanged(t){t&&this.getParticipants(this.search)}participantsChanged(){this.getParticipants(this.search)}searchChanged(t){this.getParticipants(t)}getParticipants(t){const r=n(this.meeting);this.participantsToShow=r.filter((r=>{var a;return this.participantIds.includes(p(r))&&(null!==(a=r.displayName)&&void 0!==a?a:"").toLowerCase().includes(t.toLowerCase())}))}renderPeer(t){const r=b(t.displayName||"");return e("div",{class:"peer-ui-container"},e("rtk-avatar",{participant:{name:t.displayName,picture:t.displayPictureUrl},size:"sm"}),e("p",{class:"name",title:r},l(r,16),this.meeting.self.userId===t.id&&` (${this.t("you")})`))}render(){return e(i,{key:"94cb6d982e09320de84247ed54125112bd3e13d3"},e("div",{key:"209bf3e3aab27fa05592bb24242bd6b4d0311437",class:"search-wrapper"},e("div",{key:"a827dcb5f643d421e6974f37f61b9d491332467f",class:"search",part:"search"},e("rtk-icon",{key:"cf06dfdf881b67faeff7c99445eb96994e73c87f",icon:this.iconPack.search,part:"search-icon",class:"search-icon"}),e("input",{key:"d70fda9e533d770f1e03735ff7f1a69a49e8e8ad",type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),e("slot",{key:"14ae3d89ee242081fdbc953b4c5b6416c873933f",name:"shuffle-button"})),e("div",{key:"c86217a6ccf23ce29d6cf366be8c401556f5b72e",class:"header"},e("div",{key:"217d658e89b4647628fb826d11dd05bcf9ac892f",class:"title-wrapper"},e("span",{key:"7fa37a9e42871c36543f2107a872f1e14fb03bb8"},this.t("breakout_rooms.main_room")),e("span",{key:"956a5b53d06dea779b1bd00df955f653ea26202f",class:"participant-count"},"(",e("rtk-icon",{key:"9f9de13fc327edc1f90beddbf1edefb70bcedbe0",icon:this.iconPack.people}),this.participantsToShow.length,")")),0!==this.selectedParticipantIds.length&&e("rtk-tooltip",{key:"abc39eba7b381b8beae1ecc6d6afda27ba37975a",label:this.t("breakout_rooms.select_all")},e("input",{key:"5e5dfa6c0f68a80b58d44d8b2be8d31c5c22bc69",type:"checkbox",checked:this.selectedParticipantIds.length===this.participantsToShow.length,onChange:t=>this.onToggleAll(!!t.target.checked)}))),e("div",{key:"fcb0a2ceac16b68948d3f93ddc0f6f9e2542d6d8",class:"ctr scrollbar",part:"container"},this.participantsToShow.length>0&&e("ul",{key:"19916d9d462370718445dfb01a23d2806a57f1ff",class:"participants",part:"participants"},this.participantsToShow.map((t=>e("li",{class:{"participant-item":!0,dragging:this.isDragging},onClick:()=>this.onClick(t),onDragStart:()=>this.onDragStart(t),onDragEnd:()=>this.onDragEnd(t),draggable:0===this.selectedParticipantIds.length,role:"listitem",key:t.id},this.renderPeer(t),!this.isDragging&&e("input",{type:"checkbox",class:{"hide-checkbox":0===this.selectedParticipantIds.length},checked:this.selectedParticipantIds.includes(p(t))}))))),0===this.participantsToShow.length&&this.search.length>0&&e("div",{key:"2b0898cb78599610406ff0ec2b2be0ef8c4615cf",class:"empty-message"},this.t("participants.errors.empty_results")),0===this.participantsToShow.length&&0===this.search.length&&e("div",{key:"f6bdab6034aa82bf26dfa1a08615d36dcd00dcf6",class:"empty-room"},e("rtk-icon",{key:"115e987588beb229aba15dffbd05ffbef71cb74c",icon:this.iconPack.people_checked,part:"search-icon",class:"search-icon"}),e("p",{key:"d8b6120c1361b97d1e73969d9da119aa7488a7b3"},this.t("breakout_rooms.all_assigned")),e("span",{key:"020aa6e5440976f89960b0972784c997a1f765a8"},this.t("breakout_rooms.empty_main_room")))))}static get watchers(){return{meeting:[{meetingChanged:0}],participantIds:[{participantsChanged:0}],search:[{searchChanged: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{display:flex;height:100%;flex-direction:column;font-size:14px}:host input[type='checkbox']{margin:var(--rtk-space-0, 0px);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rtk-border-radius-sm, 4px);position:relative;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;border-color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}:host input[type='checkbox']:checked{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host input[type='checkbox']:checked::before{position:absolute;top:1px;left:1px;height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);background-color:rgb(var(--rtk-colors-text-1000, 255 255 255));content:'';clip-path:polygon(5% 60%, 35% 93%, 100% 19%, 86% 4%, 36% 62%, 19% 44%)}*{box-sizing:border-box}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.ctr{box-sizing:border-box;padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.empty-message{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-10, 40px);text-align:center;font-size:14px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.empty-room{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px);height:100%;text-align:center;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.empty-room rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}.empty-room p{font-size:16px;font-weight:500;margin:var(--rtk-space-0, 0px)}.empty-room span{font-size:12px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search-wrapper{margin-bottom:var(--rtk-space-1, 4px);display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);height:var(--rtk-space-8, 32px)}.search .search-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:inherit;color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.header{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-1\\.5, 6px);height:var(--rtk-space-9, 36px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-0\\.5, 2px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-bottom-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));display:flex;align-items:center;justify-content:space-between}.title-wrapper{display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.participant-count{display:flex;align-items:center;font-size:14px}.participant-count rtk-icon{margin-right:var(--rtk-space-0\\.5, 2px);width:var(--rtk-space-3, 12px)}.participant-item{display:flex;align-items:center;justify-content:space-between;margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);cursor:pointer}.participant-item input.hide-checkbox{display:none}.participant-item input:checked{display:inline-block}.dragging input{display:none}.participant-item:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.participant-item:hover input{display:inline-block}.peer-ui-container{position:relative;display:flex;align-items:center;gap:var(--rtk-space-2, 8px);height:var(--rtk-space-10, 40px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.peer-ui-container rtk-avatar{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.peer-ui-container .name{font-size:14px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}"}},[257,"rtk-breakout-room-participants",{meeting:[16],participantIds:[16],iconPack:[16],t:[16],selectedParticipantIds:[16],search:[32],participantsToShow:[32],isDragging:[32]},void 0,{meeting:[{meetingChanged:0}],participantIds:[{participantsChanged:0}],search:[{searchChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-breakout-room-participants","rtk-avatar","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-breakout-room-participants":customElements.get(s(t))||customElements.define(s(t),v);break;case"rtk-avatar":customElements.get(s(t))||h();break;case"rtk-icon":customElements.get(s(t))||k();break;case"rtk-spinner":customElements.get(s(t))||g();break;case"rtk-tooltip":customElements.get(s(t))||f()}}))}m([d()],v.prototype,"meeting",void 0),m([d()],v.prototype,"iconPack",void 0),m([d()],v.prototype,"t",void 0),x();export{v as R,x as d}
@@ -1 +1 @@
1
- import{p as e,H as a,h as t,t as i}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as r}from"./p-BthnOddY.js";import"./p-Dguuxuf6.js";import{a as s}from"./p-CJsXePY3.js";import{S as c}from"./p-DL4GSZ2e.js";import{g as o,a as f,d as l}from"./p-DDaHXyCC.js";import{d as p}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";const n=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.iconPack=r}render(){return t("div",{key:"10de68cdb7ebb9bc5579f1d26ac20b00909f5236",class:"file"},t("rtk-button",{key:"ba255f55de300a1d9cbc4ccf3fb5ec3f93670d50",variant:"secondary",kind:"icon",onClick:()=>l(s(this.url),{name:this.name,fallbackName:"file"}),part:"button"},t("rtk-icon",{key:"2ff668ad0b4b48f0cb05acc9f62727bf4cb9bbd5",icon:this.iconPack.download})),t("div",{key:"4b77a03fc4896994430c1bf814767622e5c21cf4",class:"file-data"},t("div",{key:"df4dfdf5d2cffb47cc635c8bc410e5bd3f478570",class:"name"},this.name),t("div",{key:"6bafabd74cc4d6fe0585874542f183519c6e1000",class:"file-data-split"},t("div",{key:"5ba6f3fcc10a2d8e580e584597c946c650e6d58c",class:"ext"},o(this.name)),t("span",{key:"682887e1f3ebaf33c48704f7443bb1de3c3c5201",class:"divider"}),t("div",{key:"fc2c82f17558a794a2192c9e4a23d9888a176b6e",class:"size"},f(this.size)))))}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)}.file{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.file .file-data{margin-left:var(--rtk-space-1, 4px);flex:1 1 0%}.file .file-data .name{word-break:break-all;color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split{margin-top:var(--rtk-space-0\\.5, 2px);display:flex;align-items:center;font-size:12px}.file .file-data .file-data-split .ext{margin-right:var(--rtk-space-2, 8px);text-transform:uppercase;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split .divider{height:var(--rtk-space-4, 16px);width:var(--rtk-space-0\\.5, 2px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.file .file-data .file-data-split .size{margin-left:var(--rtk-space-2, 8px)}"}},[1,"rtk-file-message-view",{name:[1],size:[2],url:[1],iconPack:[16]}]);function b(){"undefined"!=typeof customElements&&["rtk-file-message-view","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-file-message-view":customElements.get(i(e))||customElements.define(i(e),n);break;case"rtk-button":customElements.get(i(e))||p();break;case"rtk-icon":customElements.get(i(e))||d()}}))}(function(e,a,t,i){var r,s=arguments.length,c=s<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,a,t,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(c=(s<3?r(c):s>3?r(a,t,c):r(a,t))||c);s>3&&c&&Object.defineProperty(a,t,c)})([c()],n.prototype,"iconPack",void 0),b();export{n as R,b as d}
1
+ import{p as e,H as a,h as t,t as r}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as i}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{a as s}from"./p-CJsXePY3.js";import{S as c}from"./p-bRRQr4xn.js";import{g as o,a as f,d as l}from"./p-DDaHXyCC.js";import{d as p}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";const n=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.iconPack=i}render(){return t("div",{key:"10de68cdb7ebb9bc5579f1d26ac20b00909f5236",class:"file"},t("rtk-button",{key:"ba255f55de300a1d9cbc4ccf3fb5ec3f93670d50",variant:"secondary",kind:"icon",onClick:()=>l(s(this.url),{name:this.name,fallbackName:"file"}),part:"button"},t("rtk-icon",{key:"2ff668ad0b4b48f0cb05acc9f62727bf4cb9bbd5",icon:this.iconPack.download})),t("div",{key:"4b77a03fc4896994430c1bf814767622e5c21cf4",class:"file-data"},t("div",{key:"df4dfdf5d2cffb47cc635c8bc410e5bd3f478570",class:"name"},this.name),t("div",{key:"6bafabd74cc4d6fe0585874542f183519c6e1000",class:"file-data-split"},t("div",{key:"5ba6f3fcc10a2d8e580e584597c946c650e6d58c",class:"ext"},o(this.name)),t("span",{key:"682887e1f3ebaf33c48704f7443bb1de3c3c5201",class:"divider"}),t("div",{key:"fc2c82f17558a794a2192c9e4a23d9888a176b6e",class:"size"},f(this.size)))))}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)}.file{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.file .file-data{margin-left:var(--rtk-space-1, 4px);flex:1 1 0%}.file .file-data .name{word-break:break-all;color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split{margin-top:var(--rtk-space-0\\.5, 2px);display:flex;align-items:center;font-size:12px}.file .file-data .file-data-split .ext{margin-right:var(--rtk-space-2, 8px);text-transform:uppercase;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split .divider{height:var(--rtk-space-4, 16px);width:var(--rtk-space-0\\.5, 2px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.file .file-data .file-data-split .size{margin-left:var(--rtk-space-2, 8px)}"}},[1,"rtk-file-message-view",{name:[1],size:[2],url:[1],iconPack:[16]}]);function b(){"undefined"!=typeof customElements&&["rtk-file-message-view","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-file-message-view":customElements.get(r(e))||customElements.define(r(e),n);break;case"rtk-button":customElements.get(r(e))||p();break;case"rtk-icon":customElements.get(r(e))||d()}}))}(function(e,a,t,r){var i,s=arguments.length,c=s<3?a:null===r?r=Object.getOwnPropertyDescriptor(a,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,a,t,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(c=(s<3?i(c):s>3?i(a,t,c):i(a,t))||c);s>3&&c&&Object.defineProperty(a,t,c)})([c()],n.prototype,"iconPack",void 0),b();export{n as R,b as d}
@@ -1 +1 @@
1
- import{p as t,H as r,h as e,d as s,t as a}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as o,i}from"./p-BthnOddY.js";import"./p-Dguuxuf6.js";import{S as n}from"./p-DL4GSZ2e.js";import{g as c,a as d,b as l,c as u}from"./p-BcCYogfR.js";var g=function(t,r,e,s){var a,o=arguments.length,i=o<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,r,e,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(i=(o<3?a(i):o>3?a(r,e,i):a(r,e))||i);return o>3&&i&&Object.defineProperty(r,e,i),i};const b=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.t=i(),this.isNetworkOpen=!0,this.isDevicesOpen=!1,this.audioProducerFormattedStats=[],this.audioProducerScoreStats=null,this.networkBasedMediaHealth=null,this.devicesHealth=null,this.mediaScoreUpdateListener=({kind:t,isScreenshare:r,scoreStats:e})=>{"audio"!==t||r||(this.audioProducerScoreStats=e)},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getAudioDevices();this.devicesHealth=(null==t?void 0:t.length)>0?"Good":"Poor"},this.audioUpdateListener=()=>{this.meeting.self.audioEnabled||(this.audioProducerScoreStats=null)}}async audioProducerScoreStatsChanged(t){if(!t)return void(this.audioProducerFormattedStats=[]);const r=t,e=[];e.push({name:this.t("debugger.stats.bitrate.label"),value:`${Math.round(r.bitrate/1024)} kbps`,description:this.t("debugger.stats.bitrate.description"),verdict:c({bitrate:r.bitrate})}),e.push({name:this.t("debugger.stats.packet_loss.label"),value:`${r.packetsLostPercentage}%`,description:this.t("debugger.stats.packet_loss.description"),verdict:d({packetLossPercentage:r.packetsLostPercentage})}),e.push({name:this.t("debugger.stats.jitter.label"),value:`${Math.round(1e3*r.jitter)} ms`,description:this.t("debugger.stats.jitter.description"),verdict:l({jitterInMS:1e3*r.jitter})}),this.audioProducerFormattedStats=e,this.networkBasedMediaHealth=u({stats:e})}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.self.off("mediaScoreUpdate",this.mediaScoreUpdateListener),this.meeting.self.off("audioUpdate",this.audioUpdateListener),this.meeting.self.off("deviceListUpdate",this.deviceListUpdateListener))}async meetingChanged(t){t&&(t.self.on("mediaScoreUpdate",this.mediaScoreUpdateListener),t.self.on("audioUpdate",this.audioUpdateListener),t.self.on("deviceListUpdate",this.deviceListUpdateListener),await this.deviceListUpdateListener())}render(){var t,r;if(this.meeting)return e(s,null,e("div",{id:"header"}),e("div",{class:"tab-body"},e("div",{class:"status-container"},e("div",{class:"status-section"},e("div",{class:"section-header "+(this.networkBasedMediaHealth?"":"only-child")},e("span",null,this.t("debugger.audio.sections.network_media")),this.networkBasedMediaHealth&&e("span",{class:`status ${null===(t=this.networkBasedMediaHealth)||void 0===t?void 0:t.toLowerCase()}`},this.t(`debugger.quality.${null===(r=this.networkBasedMediaHealth)||void 0===r?void 0:r.toLowerCase()}`))),this.isNetworkOpen&&!this.audioProducerFormattedStats.length&&e("div",{class:"section-body missing-stats"},e("span",null,this.t(this.meeting.self.audioEnabled?"debugger.audio.messages.generating_report":"debugger.audio.messages.enable_media"))),this.isNetworkOpen&&!!this.audioProducerFormattedStats.length&&e("div",{class:"section-body network-table"},this.audioProducerFormattedStats.map((t=>{var r,s;return e("div",{class:"network-row"},e("div",{class:"network-cell label"},e("strong",null,t.name),e("span",{class:"description"},t.description)),e("div",{class:"network-cell value"},e("span",{class:`status ${null===(r=t.verdict)||void 0===r?void 0:r.toLowerCase()}`},this.t(`debugger.quality.${null===(s=t.verdict)||void 0===s?void 0:s.toLowerCase()}`)),e("span",{class:"value"},t.value)))})))))))}static get watchers(){return{audioProducerScoreStats:[{audioProducerScoreStatsChanged:0}],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;flex-direction:column;overflow:hidden;height:100%;width:100%;color:rgb(var(--rtk-colors-text-1000, 255 255 255));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.tab-body::-webkit-scrollbar{width:var(--rtk-space-1\\.5, 6px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.tab-body::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:600}#header{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-5, 20px);display:flex;align-items:center;justify-content:space-evenly}.tab-body{margin:var(--rtk-space-4, 16px);display:flex;height:100%;flex-direction:column;justify-content:space-between;overflow-y:auto}.status-container{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));border-radius:8px;padding:16px}.status-section{margin-bottom:12px}.section-header{display:flex;justify-content:space-between;align-items:center;font-weight:bold;padding:8px 0}.section-header.only-child{justify-content:center}.section-body.missing-stats{display:flex;text-align:center;justify-content:center}.section-header .status{color:rgba(var(--rtk-colors-success));font-weight:bold}.section-header .arrow{font-size:14px}.network-table{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));border-radius:8px;margin-top:8px;overflow:hidden}.network-row{display:flex;justify-content:space-between;padding:12px;border-bottom:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}.network-row:last-child{border-bottom:none}.network-cell{display:flex;flex-direction:column}.network-cell.label strong{font-size:14px}.network-cell.label .description{font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));margin-top:4px}.network-cell.value{text-align:right}.status.good{color:rgba(var(--rtk-colors-success))}.status.average{color:rgba(var(--rtk-colors-warning))}.status.poor{color:rgba(var(--rtk-colors-danger))}.value{font-size:14px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));margin-top:4px}rtk-settings-audio{display:flex;flex-direction:column}"}},[1,"rtk-debugger-audio",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],isNetworkOpen:[32],isDevicesOpen:[32],audioProducerFormattedStats:[32],audioProducerScoreStats:[32],networkBasedMediaHealth:[32],devicesHealth:[32]},void 0,{audioProducerScoreStats:[{audioProducerScoreStatsChanged:0}],meeting:[{meetingChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["rtk-debugger-audio"].forEach((t=>{"rtk-debugger-audio"===t&&(customElements.get(a(t))||customElements.define(a(t),b))}))}g([n()],b.prototype,"meeting",void 0),g([n()],b.prototype,"states",void 0),g([n()],b.prototype,"iconPack",void 0),g([n()],b.prototype,"t",void 0),p();export{b as R,p as d}
1
+ import{p as t,H as r,h as e,d as s,t as a}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as o,i}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{S as n}from"./p-bRRQr4xn.js";import{g as c,a as d,b as l,c as u}from"./p-BcCYogfR.js";var b=function(t,r,e,s){var a,o=arguments.length,i=o<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,r,e,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(i=(o<3?a(i):o>3?a(r,e,i):a(r,e))||i);return o>3&&i&&Object.defineProperty(r,e,i),i};const g=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.t=i(),this.isNetworkOpen=!0,this.isDevicesOpen=!1,this.audioProducerFormattedStats=[],this.audioProducerScoreStats=null,this.networkBasedMediaHealth=null,this.devicesHealth=null,this.mediaScoreUpdateListener=({kind:t,isScreenshare:r,scoreStats:e})=>{"audio"!==t||r||(this.audioProducerScoreStats=e)},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getAudioDevices();this.devicesHealth=(null==t?void 0:t.length)>0?"Good":"Poor"},this.audioUpdateListener=()=>{this.meeting.self.audioEnabled||(this.audioProducerScoreStats=null)}}async audioProducerScoreStatsChanged(t){if(!t)return void(this.audioProducerFormattedStats=[]);const r=t,e=[];e.push({name:this.t("debugger.stats.bitrate.label"),value:`${Math.round(r.bitrate/1024)} kbps`,description:this.t("debugger.stats.bitrate.description"),verdict:c({bitrate:r.bitrate})}),e.push({name:this.t("debugger.stats.packet_loss.label"),value:`${r.packetsLostPercentage}%`,description:this.t("debugger.stats.packet_loss.description"),verdict:d({packetLossPercentage:r.packetsLostPercentage})}),e.push({name:this.t("debugger.stats.jitter.label"),value:`${Math.round(1e3*r.jitter)} ms`,description:this.t("debugger.stats.jitter.description"),verdict:l({jitterInMS:1e3*r.jitter})}),this.audioProducerFormattedStats=e,this.networkBasedMediaHealth=u({stats:e})}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.self.off("mediaScoreUpdate",this.mediaScoreUpdateListener),this.meeting.self.off("audioUpdate",this.audioUpdateListener),this.meeting.self.off("deviceListUpdate",this.deviceListUpdateListener))}async meetingChanged(t){t&&(t.self.on("mediaScoreUpdate",this.mediaScoreUpdateListener),t.self.on("audioUpdate",this.audioUpdateListener),t.self.on("deviceListUpdate",this.deviceListUpdateListener),await this.deviceListUpdateListener())}render(){var t,r;if(this.meeting)return e(s,null,e("div",{id:"header"}),e("div",{class:"tab-body"},e("div",{class:"status-container"},e("div",{class:"status-section"},e("div",{class:"section-header "+(this.networkBasedMediaHealth?"":"only-child")},e("span",null,this.t("debugger.audio.sections.network_media")),this.networkBasedMediaHealth&&e("span",{class:`status ${null===(t=this.networkBasedMediaHealth)||void 0===t?void 0:t.toLowerCase()}`},this.t(`debugger.quality.${null===(r=this.networkBasedMediaHealth)||void 0===r?void 0:r.toLowerCase()}`))),this.isNetworkOpen&&!this.audioProducerFormattedStats.length&&e("div",{class:"section-body missing-stats"},e("span",null,this.t(this.meeting.self.audioEnabled?"debugger.audio.messages.generating_report":"debugger.audio.messages.enable_media"))),this.isNetworkOpen&&!!this.audioProducerFormattedStats.length&&e("div",{class:"section-body network-table"},this.audioProducerFormattedStats.map((t=>{var r,s;return e("div",{class:"network-row"},e("div",{class:"network-cell label"},e("strong",null,t.name),e("span",{class:"description"},t.description)),e("div",{class:"network-cell value"},e("span",{class:`status ${null===(r=t.verdict)||void 0===r?void 0:r.toLowerCase()}`},this.t(`debugger.quality.${null===(s=t.verdict)||void 0===s?void 0:s.toLowerCase()}`)),e("span",{class:"value"},t.value)))})))))))}static get watchers(){return{audioProducerScoreStats:[{audioProducerScoreStatsChanged:0}],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;flex-direction:column;overflow:hidden;height:100%;width:100%;color:rgb(var(--rtk-colors-text-1000, 255 255 255));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.tab-body::-webkit-scrollbar{width:var(--rtk-space-1\\.5, 6px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.tab-body::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:600}#header{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-5, 20px);display:flex;align-items:center;justify-content:space-evenly}.tab-body{margin:var(--rtk-space-4, 16px);display:flex;height:100%;flex-direction:column;justify-content:space-between;overflow-y:auto}.status-container{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));border-radius:8px;padding:16px}.status-section{margin-bottom:12px}.section-header{display:flex;justify-content:space-between;align-items:center;font-weight:bold;padding:8px 0}.section-header.only-child{justify-content:center}.section-body.missing-stats{display:flex;text-align:center;justify-content:center}.section-header .status{color:rgba(var(--rtk-colors-success));font-weight:bold}.section-header .arrow{font-size:14px}.network-table{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));border-radius:8px;margin-top:8px;overflow:hidden}.network-row{display:flex;justify-content:space-between;padding:12px;border-bottom:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}.network-row:last-child{border-bottom:none}.network-cell{display:flex;flex-direction:column}.network-cell.label strong{font-size:14px}.network-cell.label .description{font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));margin-top:4px}.network-cell.value{text-align:right}.status.good{color:rgba(var(--rtk-colors-success))}.status.average{color:rgba(var(--rtk-colors-warning))}.status.poor{color:rgba(var(--rtk-colors-danger))}.value{font-size:14px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));margin-top:4px}rtk-settings-audio{display:flex;flex-direction:column}"}},[1,"rtk-debugger-audio",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],isNetworkOpen:[32],isDevicesOpen:[32],audioProducerFormattedStats:[32],audioProducerScoreStats:[32],networkBasedMediaHealth:[32],devicesHealth:[32]},void 0,{audioProducerScoreStats:[{audioProducerScoreStatsChanged:0}],meeting:[{meetingChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["rtk-debugger-audio"].forEach((t=>{"rtk-debugger-audio"===t&&(customElements.get(a(t))||customElements.define(a(t),g))}))}b([n()],g.prototype,"meeting",void 0),b([n()],g.prototype,"states",void 0),b([n()],g.prototype,"iconPack",void 0),b([n()],g.prototype,"t",void 0),p();export{g as R,p as d}
@@ -1 +1 @@
1
- import{p as t,H as r,h as a,d as e,t as o}from"./p-BBHQOrFK.js";import{e as s,i as n}from"./p-BthnOddY.js";import{S as c}from"./p-DL4GSZ2e.js";var i=function(t,r,a,e){var o,s=arguments.length,n=s<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(n=(s<3?o(n):s>3?o(r,a,n):o(r,a))||n);return s>3&&n&&Object.defineProperty(r,a,n),n};const p=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.menuVariant="secondary",this.iconPack=s,this.t=n()}render(){return a(e,{key:"34effd6df180c6a3d5a356f481934c9312f62f83",class:{[this.menuVariant]:!0}},a("slot",{key:"c2313c150db2f804e9170bd8c93afdbc68d05bc8",name:"start"}),a("slot",{key:"5c8428b279af80a626fa300e4cafae55cc987170"}),a("slot",{key:"a5eab032080c4ca615fd1cd848c30675232e3043",name:"end"}))}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;align-items:center;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);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;color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:14px}::slotted([slot='start']){margin-right:var(--rtk-space-2, 8px)}::slotted([slot='end']){margin-left:var(--rtk-space-2, 8px)}:host(:hover){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host(.primary:hover){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-bg-opacity))}:host(.red){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[257,"rtk-menu-item",{size:[513],menuVariant:[1,"menu-variant"],iconPack:[16],t:[16]}]);function d(){"undefined"!=typeof customElements&&["rtk-menu-item"].forEach((t=>{"rtk-menu-item"===t&&(customElements.get(o(t))||customElements.define(o(t),p))}))}i([c()],p.prototype,"iconPack",void 0),i([c()],p.prototype,"t",void 0),d();export{p as R,d}
1
+ import{p as t,H as r,h as a,d as e,t as o}from"./p-BBHQOrFK.js";import{e as s,i as n}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";var i=function(t,r,a,e){var o,s=arguments.length,n=s<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(n=(s<3?o(n):s>3?o(r,a,n):o(r,a))||n);return s>3&&n&&Object.defineProperty(r,a,n),n};const p=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.menuVariant="secondary",this.iconPack=s,this.t=n()}render(){return a(e,{key:"34effd6df180c6a3d5a356f481934c9312f62f83",class:{[this.menuVariant]:!0}},a("slot",{key:"c2313c150db2f804e9170bd8c93afdbc68d05bc8",name:"start"}),a("slot",{key:"5c8428b279af80a626fa300e4cafae55cc987170"}),a("slot",{key:"a5eab032080c4ca615fd1cd848c30675232e3043",name:"end"}))}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;align-items:center;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);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;color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:14px}::slotted([slot='start']){margin-right:var(--rtk-space-2, 8px)}::slotted([slot='end']){margin-left:var(--rtk-space-2, 8px)}:host(:hover){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host(.primary:hover){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-bg-opacity))}:host(.red){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[257,"rtk-menu-item",{size:[513],menuVariant:[1,"menu-variant"],iconPack:[16],t:[16]}]);function l(){"undefined"!=typeof customElements&&["rtk-menu-item"].forEach((t=>{"rtk-menu-item"===t&&(customElements.get(o(t))||customElements.define(o(t),p))}))}i([c()],p.prototype,"iconPack",void 0),i([c()],p.prototype,"t",void 0),l();export{p as R,l as d}
@@ -1 +1 @@
1
- import{p as t,H as a,c as e,h as o,d as i,t as r}from"./p-BBHQOrFK.js";import{e as c,i as s}from"./p-BthnOddY.js";import{S as n}from"./p-DL4GSZ2e.js";import{d}from"./p-D6vw6bT2.js";var l=function(t,a,e,o){var i,r=arguments.length,c=r<3?a:null===o?o=Object.getOwnPropertyDescriptor(a,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,a,e,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(c=(r<3?i(c):r>3?i(a,e,c):i(a,e))||c);return r>3&&c&&Object.defineProperty(a,e,c),c};const b=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.iconPack=c,this.t=s(),this.close=()=>{this.states.activeConfirmationModal.onClose(this.stateUpdate,this.states,this.meeting),this.stateUpdate.emit({activeConfirmationModal:{active:!1}}),this.states.activeConfirmationModal={active:!1}},this.onConfirmation=async()=>{this.states.activeConfirmationModal.onClick(this.stateUpdate,this.states,this.meeting),this.stateUpdate.emit({activeConfirmationModal:{active:!1}}),this.states.activeConfirmationModal={active:!1}}}connectedCallback(){document.addEventListener("keydown",this.keyPressListener)}componentDidLoad(){}disconnectedCallback(){document.removeEventListener("keydown",this.keyPressListener)}render(){var t,a;const e=this.states.activeConfirmationModal;return o(i,{key:"faaa0531618c40c1e31ab3f77a9b038cd917244e"},o("div",{key:"930c37d5d2e290a739d50dcd9c2ad298465850d3",class:"leave-modal"},o("div",{key:"0bfb807f0f28d8bc1a28c03c548eca5b0e36eaab",class:"header"},o("h2",{key:"0985fb052282b0b67ec259bd4e3b555405bc7283",class:"title"},this.t(e.header?e.header:"cta.confirmation"))),e.content&&o("p",{key:"99ea852e8d28f4164a6bd159dcb1b967c92b7a63",class:"message"},this.t(e.content)),o("div",{key:"44073f19fa772c1d4c4bcc4962be90aad26b6965",class:"content"},o("div",{key:"823c39dfd07659d5f9391242acdac1654e14b588",class:"leave-meeting"},o("rtk-button",{key:"e549f53577a5a3b4e677fac6b66f5024868c748f",variant:"secondary",title:this.t(e.cancelText?e.cancelText:"cancel"),onClick:this.close,class:"br-secondary-btn"},this.t(e.cancelText?e.cancelText:"cancel")),o("rtk-button",{key:"da7969392d5781fb63e999c6e4c6b022f7aae23d",onClick:()=>this.onConfirmation(),variant:null!==(a=null===(t=this.states.activeConfirmationModal)||void 0===t?void 0:t.variant)&&void 0!==a?a:"danger",title:this.t(e.ctaText?e.ctaText:"yes")},this.t(e.ctaText?e.ctaText:"yes"))))))}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:flex;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);padding:var(--rtk-space-8, 32px);width:100%;--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-1000, 255 255 255));width:400px;max-width:80%}.leave-modal{width:100%;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.leave-modal .header h2{margin:var(--rtk-space-0, 0px)}.leave-modal .content{font-size:14px}.leave-modal p{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px)}.leave-meeting{display:flex;flex-direction:row;justify-content:space-between;gap:var(--rtk-space-4, 16px)}.leave-meeting rtk-button{color:rgb(var(--rtk-colors-text-1000, 255 255 255));flex:1 1 0%}.br-secondary-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.br-secondary-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}"}},[1,"rtk-confirmation-modal",{meeting:[16],states:[16],iconPack:[16],t:[16]}]);function f(){"undefined"!=typeof customElements&&["rtk-confirmation-modal","rtk-button"].forEach((t=>{switch(t){case"rtk-confirmation-modal":customElements.get(r(t))||customElements.define(r(t),b);break;case"rtk-button":customElements.get(r(t))||d()}}))}l([n()],b.prototype,"meeting",void 0),l([n()],b.prototype,"states",void 0),l([n()],b.prototype,"iconPack",void 0),l([n()],b.prototype,"t",void 0),f();export{b as R,f as d}
1
+ import{p as t,H as a,c as e,h as o,d as i,t as r}from"./p-BBHQOrFK.js";import{e as c,i as s}from"./p-DhwysA2e.js";import{S as n}from"./p-bRRQr4xn.js";import{d}from"./p-D6vw6bT2.js";var l=function(t,a,e,o){var i,r=arguments.length,c=r<3?a:null===o?o=Object.getOwnPropertyDescriptor(a,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,a,e,o);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(c=(r<3?i(c):r>3?i(a,e,c):i(a,e))||c);return r>3&&c&&Object.defineProperty(a,e,c),c};const b=t(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.iconPack=c,this.t=s(),this.close=()=>{this.states.activeConfirmationModal.onClose(this.stateUpdate,this.states,this.meeting),this.stateUpdate.emit({activeConfirmationModal:{active:!1}}),this.states.activeConfirmationModal={active:!1}},this.onConfirmation=async()=>{this.states.activeConfirmationModal.onClick(this.stateUpdate,this.states,this.meeting),this.stateUpdate.emit({activeConfirmationModal:{active:!1}}),this.states.activeConfirmationModal={active:!1}}}connectedCallback(){document.addEventListener("keydown",this.keyPressListener)}componentDidLoad(){}disconnectedCallback(){document.removeEventListener("keydown",this.keyPressListener)}render(){var t,a;const e=this.states.activeConfirmationModal;return o(i,{key:"faaa0531618c40c1e31ab3f77a9b038cd917244e"},o("div",{key:"930c37d5d2e290a739d50dcd9c2ad298465850d3",class:"leave-modal"},o("div",{key:"0bfb807f0f28d8bc1a28c03c548eca5b0e36eaab",class:"header"},o("h2",{key:"0985fb052282b0b67ec259bd4e3b555405bc7283",class:"title"},this.t(e.header?e.header:"cta.confirmation"))),e.content&&o("p",{key:"99ea852e8d28f4164a6bd159dcb1b967c92b7a63",class:"message"},this.t(e.content)),o("div",{key:"44073f19fa772c1d4c4bcc4962be90aad26b6965",class:"content"},o("div",{key:"823c39dfd07659d5f9391242acdac1654e14b588",class:"leave-meeting"},o("rtk-button",{key:"e549f53577a5a3b4e677fac6b66f5024868c748f",variant:"secondary",title:this.t(e.cancelText?e.cancelText:"cancel"),onClick:this.close,class:"br-secondary-btn"},this.t(e.cancelText?e.cancelText:"cancel")),o("rtk-button",{key:"da7969392d5781fb63e999c6e4c6b022f7aae23d",onClick:()=>this.onConfirmation(),variant:null!==(a=null===(t=this.states.activeConfirmationModal)||void 0===t?void 0:t.variant)&&void 0!==a?a:"danger",title:this.t(e.ctaText?e.ctaText:"yes")},this.t(e.ctaText?e.ctaText:"yes"))))))}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:flex;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);padding:var(--rtk-space-8, 32px);width:100%;--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-1000, 255 255 255));width:400px;max-width:80%}.leave-modal{width:100%;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.leave-modal .header h2{margin:var(--rtk-space-0, 0px)}.leave-modal .content{font-size:14px}.leave-modal p{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px)}.leave-meeting{display:flex;flex-direction:row;justify-content:space-between;gap:var(--rtk-space-4, 16px)}.leave-meeting rtk-button{color:rgb(var(--rtk-colors-text-1000, 255 255 255));flex:1 1 0%}.br-secondary-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.br-secondary-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}"}},[1,"rtk-confirmation-modal",{meeting:[16],states:[16],iconPack:[16],t:[16]}]);function f(){"undefined"!=typeof customElements&&["rtk-confirmation-modal","rtk-button"].forEach((t=>{switch(t){case"rtk-confirmation-modal":customElements.get(r(t))||customElements.define(r(t),b);break;case"rtk-button":customElements.get(r(t))||d()}}))}l([n()],b.prototype,"meeting",void 0),l([n()],b.prototype,"states",void 0),l([n()],b.prototype,"iconPack",void 0),l([n()],b.prototype,"t",void 0),f();export{b as R,f as d}
@@ -1 +1 @@
1
- import{p as e,H as t,c as s,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{i as o,e as n}from"./p-BthnOddY.js";import{S as c}from"./p-DL4GSZ2e.js";import{d}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";var p=function(e,t,s,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(o=(a<3?r(o):a>3?r(t,s,o):r(t,s))||o);return a>3&&o&&Object.defineProperty(t,s,o),o};const h={"Chrome.Desktop.audio":["Chrome1.svg","Chrome2.svg","Chrome3.svg"],"Chrome.Desktop.video":["Chrome1.svg","Chrome2.svg","Chrome3.svg"]},m=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.t=o(),this.iconPack=n,this.currentStep=0,this.svgSteps=[],this.continue=()=>{this.stateUpdate.emit({activePermissionsMessage:{enabled:!1}})},this.reload=()=>{"undefined"!=typeof window&&window.location.reload()},this.getImage=async e=>{function t(e,t,s){return e.split(t).join(s)}const s=await fetch(`https://rtk-assets.realtime.cloudflare.com/ui-kit/permissions/${e}`);let i=await s.text();return i=t(i,"yoursite.com",location.host),i=t(i,"Yoursite",document.title.length>14?`${document.title.slice(0,14)}...`:document.title),i},this.nextStep=()=>{this.currentStep=(this.currentStep+1)%this.svgSteps.length},this.openMacSystemSettings=()=>{const e=document.createElement("a");switch(this.mediaType){case"audio":e.href="x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone";break;case"screenshare":e.href="x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture";break;case"video":e.href="x-apple.systempreferences:com.apple.preference.security?Privacy_Camera"}e.click()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.stepsTimer&&clearTimeout(this.stepsTimer)}meetingChanged(e){var t,s,i;if(null!=e){this.device=e.self.device;const r=(null===(t=this.device)||void 0===t?void 0:t.isMobile)?"Mobile":"Desktop",a=null!==(i=h[`${null===(s=this.device)||void 0===s?void 0:s.browserName}.${r}.${this.mediaType}`])&&void 0!==i?i:[];Promise.all(a.map(this.getImage)).then((e=>{this.svgSteps=e}))}}getLink(e){let t;switch(e){case"audio":t="microphone";break;case"video":t="camera";break;default:t="screenshare"}let s=`Allow+${t}+access`;if(null!=this.device){const{browserName:e,isMobile:t}=this.device;s+="+"+e,t&&(s+="+mobile")}return"https://www.google.com/search?q="+s}isDeniedBySystem(){var e;const t=null===(e=this.meeting)||void 0===e?void 0:e.self.mediaPermissions;return null!=t&&"SYSTEM_DENIED"===t[this.mediaType]}getTitle(){const e=this.isDeniedBySystem();return this.t(e?`perm_sys_denied.${this.mediaType}`:`perm_denied.${this.mediaType}`)}get mediaType(){var e,t,s;return null!==(s=null===(t=null===(e=this.states)||void 0===e?void 0:e.activePermissionsMessage)||void 0===t?void 0:t.kind)&&void 0!==s?s:"audio"}getMessage(){var e;const{browserName:t,osName:s}=this.meeting.self.device,i=this.isDeniedBySystem(),r=null!==(e=t.toLowerCase())&&void 0!==e?e:"others";if(i){const e=`perm_sys_denied.${this.mediaType}.${(null!=s?s:"others").toLowerCase()}.message`;return this.t(e)===e?this.t(`perm_sys_denied.${this.mediaType}.others.message`):this.t(e)}const a=`perm_denied.${this.mediaType}.${r}.message`;return this.t(a)===a?this.t(`perm_denied.${this.mediaType}.others.message`):this.t(a)}render(){var e,t,s;const a=this.isDeniedBySystem();this.svgSteps.length>0&&(this.stepsTimer&&clearTimeout(this.stepsTimer),this.stepsTimer=setTimeout(this.nextStep,2500));const o=a&&"macOS"==this.meeting.self.device.osName;return i(r,{key:"7e7ee4ed331dc9e736b710ce0e492d0d9a749c1b"},i("h2",{key:"1100ed23a733006ee6b644cbd7293f3e8b187e1b"},i("rtk-icon",{key:"23d61902856332821e9b9cf60c126fc4e82f2421",class:"text-icon",icon:this.iconPack.warning}),this.getTitle()),this.svgSteps.length>0&&i("div",{key:"c39e69a21e4d5d009397cbe0563c89d2f00bf414",class:"svg-container"},this.svgSteps.map(((e,t)=>i("p",{innerHTML:e,class:"svg-ins",key:this.currentStep,hidden:t!==this.currentStep})))),i("div",{key:"209bdbc52a9a26b9b71328a57e79d424302bc8ea"},this.getMessage()),!a&&i("a",{key:"a096c4b00a29239970f8cd23c123a3d94f78b78f",class:"need-help-link",href:this.getLink(null!==(s=null===(t=null===(e=this.states)||void 0===e?void 0:e.activePermissionsMessage)||void 0===t?void 0:t.kind)&&void 0!==s?s:"audio"),target:"_blank",rel:"noreferrer external noreferrer noopener"},i("rtk-icon",{key:"3a0e5cdf4f040381e417a0cf46783ebb47f88f8d",class:"text-icon",icon:this.iconPack.attach}),this.t("cta.help")),i("div",{key:"31fa2a14b1d134f2bab798852b0a339cbd5e53c4",class:"actions"},i("rtk-button",{key:"0574447e6f141a5d899d145f6741500304f16e70",size:"lg",kind:"wide",variant:"secondary",onClick:this.continue},this.t("cta.continue")),o?i("rtk-button",{size:"lg",kind:"wide",onClick:this.openMacSystemSettings},this.t("cta.system_settings")):i("rtk-button",{size:"lg",kind:"wide",onClick:this.reload},this.t("cta.reload"))),i("slot",{key:"bab0db24f078ff258a8223a9910e089c2e2229e1"}))}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;display:block;max-height:100%;width:600px;overflow-y:auto;padding:var(--rtk-space-6, 24px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));overflow-wrap:break-word;color:rgb(var(--rtk-colors-text-1000, 255 255 255));word-wrap:break-word}.actions{display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.text-icon{display:inline-block;vertical-align:middle}h2{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px)}h2 .text-icon{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}p{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px)}.need-help-link{margin-top:var(--rtk-space-2, 8px);display:inline-block;text-underline-offset:2px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity))}.need-help-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-text-opacity))}a rtk-icon{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) .actions{flex-direction:column;align-items:flex-start;justify-content:center}:host([size='sm']) .action{width:100%;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}.actions{margin-top:var(--rtk-space-6, 24px)}.actions rtk-button{flex:1 1 0%}.svg-container{display:flex;width:100%;justify-content:center !important}.svg-ins{width:80%;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}"}},[257,"rtk-permissions-message",{meeting:[16],t:[16],iconPack:[16],states:[16],device:[32],currentStep:[32],svgSteps:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-permissions-message","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-permissions-message":customElements.get(a(e))||customElements.define(a(e),m);break;case"rtk-button":customElements.get(a(e))||d();break;case"rtk-icon":customElements.get(a(e))||l()}}))}p([c()],m.prototype,"meeting",void 0),p([c()],m.prototype,"t",void 0),p([c()],m.prototype,"iconPack",void 0),p([c()],m.prototype,"states",void 0),v();export{m as R,v as d}
1
+ import{p as e,H as t,c as s,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{i as o,e as n}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";var p=function(e,t,s,i){var r,a=arguments.length,o=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(o=(a<3?r(o):a>3?r(t,s,o):r(t,s))||o);return a>3&&o&&Object.defineProperty(t,s,o),o};const h={"Chrome.Desktop.audio":["Chrome1.svg","Chrome2.svg","Chrome3.svg"],"Chrome.Desktop.video":["Chrome1.svg","Chrome2.svg","Chrome3.svg"]},m=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.t=o(),this.iconPack=n,this.currentStep=0,this.svgSteps=[],this.continue=()=>{this.stateUpdate.emit({activePermissionsMessage:{enabled:!1}})},this.reload=()=>{"undefined"!=typeof window&&window.location.reload()},this.getImage=async e=>{function t(e,t,s){return e.split(t).join(s)}const s=await fetch(`https://rtk-assets.realtime.cloudflare.com/ui-kit/permissions/${e}`);let i=await s.text();return i=t(i,"yoursite.com",location.host),i=t(i,"Yoursite",document.title.length>14?`${document.title.slice(0,14)}...`:document.title),i},this.nextStep=()=>{this.currentStep=(this.currentStep+1)%this.svgSteps.length},this.openMacSystemSettings=()=>{const e=document.createElement("a");switch(this.mediaType){case"audio":e.href="x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone";break;case"screenshare":e.href="x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture";break;case"video":e.href="x-apple.systempreferences:com.apple.preference.security?Privacy_Camera"}e.click()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.stepsTimer&&clearTimeout(this.stepsTimer)}meetingChanged(e){var t,s,i;if(null!=e){this.device=e.self.device;const r=(null===(t=this.device)||void 0===t?void 0:t.isMobile)?"Mobile":"Desktop",a=null!==(i=h[`${null===(s=this.device)||void 0===s?void 0:s.browserName}.${r}.${this.mediaType}`])&&void 0!==i?i:[];Promise.all(a.map(this.getImage)).then((e=>{this.svgSteps=e}))}}getLink(e){let t;switch(e){case"audio":t="microphone";break;case"video":t="camera";break;default:t="screenshare"}let s=`Allow+${t}+access`;if(null!=this.device){const{browserName:e,isMobile:t}=this.device;s+="+"+e,t&&(s+="+mobile")}return"https://www.google.com/search?q="+s}isDeniedBySystem(){var e;const t=null===(e=this.meeting)||void 0===e?void 0:e.self.mediaPermissions;return null!=t&&"SYSTEM_DENIED"===t[this.mediaType]}getTitle(){const e=this.isDeniedBySystem();return this.t(e?`perm_sys_denied.${this.mediaType}`:`perm_denied.${this.mediaType}`)}get mediaType(){var e,t,s;return null!==(s=null===(t=null===(e=this.states)||void 0===e?void 0:e.activePermissionsMessage)||void 0===t?void 0:t.kind)&&void 0!==s?s:"audio"}getMessage(){var e;const{browserName:t,osName:s}=this.meeting.self.device,i=this.isDeniedBySystem(),r=null!==(e=t.toLowerCase())&&void 0!==e?e:"others";if(i){const e=`perm_sys_denied.${this.mediaType}.${(null!=s?s:"others").toLowerCase()}.message`;return this.t(e)===e?this.t(`perm_sys_denied.${this.mediaType}.others.message`):this.t(e)}const a=`perm_denied.${this.mediaType}.${r}.message`;return this.t(a)===a?this.t(`perm_denied.${this.mediaType}.others.message`):this.t(a)}render(){var e,t,s;const a=this.isDeniedBySystem();this.svgSteps.length>0&&(this.stepsTimer&&clearTimeout(this.stepsTimer),this.stepsTimer=setTimeout(this.nextStep,2500));const o=a&&"macOS"==this.meeting.self.device.osName;return i(r,{key:"7e7ee4ed331dc9e736b710ce0e492d0d9a749c1b"},i("h2",{key:"1100ed23a733006ee6b644cbd7293f3e8b187e1b"},i("rtk-icon",{key:"23d61902856332821e9b9cf60c126fc4e82f2421",class:"text-icon",icon:this.iconPack.warning}),this.getTitle()),this.svgSteps.length>0&&i("div",{key:"c39e69a21e4d5d009397cbe0563c89d2f00bf414",class:"svg-container"},this.svgSteps.map(((e,t)=>i("p",{innerHTML:e,class:"svg-ins",key:this.currentStep,hidden:t!==this.currentStep})))),i("div",{key:"209bdbc52a9a26b9b71328a57e79d424302bc8ea"},this.getMessage()),!a&&i("a",{key:"a096c4b00a29239970f8cd23c123a3d94f78b78f",class:"need-help-link",href:this.getLink(null!==(s=null===(t=null===(e=this.states)||void 0===e?void 0:e.activePermissionsMessage)||void 0===t?void 0:t.kind)&&void 0!==s?s:"audio"),target:"_blank",rel:"noreferrer external noreferrer noopener"},i("rtk-icon",{key:"3a0e5cdf4f040381e417a0cf46783ebb47f88f8d",class:"text-icon",icon:this.iconPack.attach}),this.t("cta.help")),i("div",{key:"31fa2a14b1d134f2bab798852b0a339cbd5e53c4",class:"actions"},i("rtk-button",{key:"0574447e6f141a5d899d145f6741500304f16e70",size:"lg",kind:"wide",variant:"secondary",onClick:this.continue},this.t("cta.continue")),o?i("rtk-button",{size:"lg",kind:"wide",onClick:this.openMacSystemSettings},this.t("cta.system_settings")):i("rtk-button",{size:"lg",kind:"wide",onClick:this.reload},this.t("cta.reload"))),i("slot",{key:"bab0db24f078ff258a8223a9910e089c2e2229e1"}))}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;display:block;max-height:100%;width:600px;overflow-y:auto;padding:var(--rtk-space-6, 24px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));overflow-wrap:break-word;color:rgb(var(--rtk-colors-text-1000, 255 255 255));word-wrap:break-word}.actions{display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.text-icon{display:inline-block;vertical-align:middle}h2{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px)}h2 .text-icon{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}p{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px)}.need-help-link{margin-top:var(--rtk-space-2, 8px);display:inline-block;text-underline-offset:2px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity))}.need-help-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-text-opacity))}a rtk-icon{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) .actions{flex-direction:column;align-items:flex-start;justify-content:center}:host([size='sm']) .action{width:100%;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}.actions{margin-top:var(--rtk-space-6, 24px)}.actions rtk-button{flex:1 1 0%}.svg-container{display:flex;width:100%;justify-content:center !important}.svg-ins{width:80%;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}"}},[257,"rtk-permissions-message",{meeting:[16],t:[16],iconPack:[16],states:[16],device:[32],currentStep:[32],svgSteps:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-permissions-message","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-permissions-message":customElements.get(a(e))||customElements.define(a(e),m);break;case"rtk-button":customElements.get(a(e))||d();break;case"rtk-icon":customElements.get(a(e))||l()}}))}p([c()],m.prototype,"meeting",void 0),p([c()],m.prototype,"t",void 0),p([c()],m.prototype,"iconPack",void 0),p([c()],m.prototype,"states",void 0),v();export{m as R,v as d}
@@ -1 +1 @@
1
- import{p as t,H as o,c as i,h as e,d as s,t as r}from"./p-BBHQOrFK.js";import{c as n,e as a,i as c}from"./p-BthnOddY.js";import{S as l}from"./p-DL4GSZ2e.js";import{d}from"./p-D6vw6bT2.js";import{d as h}from"./p-BYIBbfJ8.js";var p=function(t,o,i,e){var s,r=arguments.length,n=r<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,o,i,e);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(r<3?s(n):r>3?s(o,i,n):s(o,i))||n);return r>3&&n&&Object.defineProperty(o,i,n),n};const k=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onClose=i(this,"rtkDialogClose",7),this.hideCloseButton=!1,this.disableEscapeKey=!1,this.config=n(),this.iconPack=a,this.t=c(),this.open=!0,this.close=()=>{this.open=!1,this.onClose.emit()},this.keydownListener=t=>{!this.disableEscapeKey&&"Escape"===t.key&&this.open&&this.close()}}connectedCallback(){document.addEventListener("keydown",this.keydownListener)}disconnectedCallback(){document.removeEventListener("keydown",this.keydownListener)}componentDidRender(){this.open&&!this.dialogEl.open&&this.dialogEl.showModal()}render(){return this.open?e(s,null,e("dialog",{ref:t=>this.dialogEl=t,id:"dialog",part:"container",onClose:this.close,onClick:t=>{this.disableEscapeKey||t.target!==this.dialogEl||this.close()},onKeyDown:t=>{this.disableEscapeKey&&"Escape"===t.key&&t.preventDefault()}},e("slot",null),!this.hideCloseButton&&e("rtk-button",{part:"close-button",id:"dismiss-btn",kind:"icon",variant:"ghost",onClick:()=>this.close(),type:"button","aria-label":this.t("dialog.close"),role:"button"},e("rtk-icon",{icon:this.iconPack.dismiss})))):null}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{word-wrap:break-word;overflow-wrap:break-word}#dialog{position:relative;max-height:100%;max-width:100%;padding:var(--rtk-space-0, 0px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#dialog::backdrop{background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / 0.5);backdrop-filter:blur(12px) saturate(180%)}#dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);z-index:50}::slotted(*){max-width:100%;height:auto;min-height:-moz-fit-content;min-height:fit-content}"}},[257,"rtk-dialog",{hideCloseButton:[4,"hide-close-button"],disableEscapeKey:[4,"disable-escape-key"],meeting:[16],config:[16],states:[16],size:[513],iconPack:[16],t:[16],open:[1540]}]);function m(){"undefined"!=typeof customElements&&["rtk-dialog","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-dialog":customElements.get(r(t))||customElements.define(r(t),k);break;case"rtk-button":customElements.get(r(t))||d();break;case"rtk-icon":customElements.get(r(t))||h()}}))}p([l()],k.prototype,"meeting",void 0),p([l()],k.prototype,"config",void 0),p([l()],k.prototype,"states",void 0),p([l()],k.prototype,"iconPack",void 0),p([l()],k.prototype,"t",void 0),m();export{k as R,m as d}
1
+ import{p as t,H as o,c as i,h as s,d as e,t as r}from"./p-BBHQOrFK.js";import{c as n,e as a,i as c}from"./p-DhwysA2e.js";import{S as l}from"./p-bRRQr4xn.js";import{d}from"./p-D6vw6bT2.js";import{d as h}from"./p-BYIBbfJ8.js";var p=function(t,o,i,s){var e,r=arguments.length,n=r<3?o:null===s?s=Object.getOwnPropertyDescriptor(o,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,o,i,s);else for(var a=t.length-1;a>=0;a--)(e=t[a])&&(n=(r<3?e(n):r>3?e(o,i,n):e(o,i))||n);return r>3&&n&&Object.defineProperty(o,i,n),n};const k=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onClose=i(this,"rtkDialogClose",7),this.hideCloseButton=!1,this.disableEscapeKey=!1,this.config=n(),this.iconPack=a,this.t=c(),this.open=!0,this.close=()=>{this.open=!1,this.onClose.emit()},this.keydownListener=t=>{!this.disableEscapeKey&&"Escape"===t.key&&this.open&&this.close()}}connectedCallback(){document.addEventListener("keydown",this.keydownListener)}disconnectedCallback(){document.removeEventListener("keydown",this.keydownListener)}componentDidRender(){this.open&&!this.dialogEl.open&&this.dialogEl.showModal()}render(){return this.open?s(e,null,s("dialog",{ref:t=>this.dialogEl=t,id:"dialog",part:"container",onClose:this.close,onClick:t=>{this.disableEscapeKey||t.target!==this.dialogEl||this.close()},onKeyDown:t=>{this.disableEscapeKey&&"Escape"===t.key&&t.preventDefault()}},s("slot",null),!this.hideCloseButton&&s("rtk-button",{part:"close-button",id:"dismiss-btn",kind:"icon",variant:"ghost",onClick:()=>this.close(),type:"button","aria-label":this.t("dialog.close"),role:"button"},s("rtk-icon",{icon:this.iconPack.dismiss})))):null}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{word-wrap:break-word;overflow-wrap:break-word}#dialog{position:relative;max-height:100%;max-width:100%;padding:var(--rtk-space-0, 0px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#dialog::backdrop{background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / 0.5);backdrop-filter:blur(12px) saturate(180%)}#dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);z-index:50}::slotted(*){max-width:100%;height:auto;min-height:-moz-fit-content;min-height:fit-content}"}},[257,"rtk-dialog",{hideCloseButton:[4,"hide-close-button"],disableEscapeKey:[4,"disable-escape-key"],meeting:[16],config:[16],states:[16],size:[513],iconPack:[16],t:[16],open:[1540]}]);function m(){"undefined"!=typeof customElements&&["rtk-dialog","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-dialog":customElements.get(r(t))||customElements.define(r(t),k);break;case"rtk-button":customElements.get(r(t))||d();break;case"rtk-icon":customElements.get(r(t))||h()}}))}p([l()],k.prototype,"meeting",void 0),p([l()],k.prototype,"config",void 0),p([l()],k.prototype,"states",void 0),p([l()],k.prototype,"iconPack",void 0),p([l()],k.prototype,"t",void 0),m();export{k as R,m as d}
@@ -1 +1 @@
1
- import{p as t,H as e,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{e as s,i as n}from"./p-BthnOddY.js";import{S as o}from"./p-DL4GSZ2e.js";import{s as c}from"./p-C0vp-Q7v.js";import{d as p}from"./p-BYIBbfJ8.js";var d=function(t,e,i,r){var a,s=arguments.length,n=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(n=(s<3?a(n):s>3?a(e,i,n):a(e,i))||n);return s>3&&n&&Object.defineProperty(e,i,n),n};const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="primary",this.iconPack=s,this.t=n(),this.viewerCount=0,this.disconnectMeeting=t=>{var e;null!=t&&null!=this.countListener&&(null===(e=t.livestream)||void 0===e||e.removeListener("viewerCountUpdate",this.countListener))}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}meetingChanged(t,e){var i;this.disconnectMeeting(e),null!=t&&(this.countListener=()=>{var e;this.viewerCount=null===(e=t.livestream)||void 0===e?void 0:e.viewerCount},this.countListener(),null===(i=t.livestream)||void 0===i||i.addListener("viewerCountUpdate",this.countListener))}render(){return c(this.meeting)?i(r,{tabIndex:0,role:"log","aria-label":`${this.viewerCount} ${this.t("viewers")}`},i("rtk-icon",{icon:this.iconPack.viewers,tabIndex:-1,"aria-hidden":!0,part:"icon"}),this.viewerCount," ",this.t("viewers")):i(r,{"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:inline-flex;height:var(--rtk-space-10, 40px);-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;font-size:14px}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([variant='embedded']){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));opacity:0.5;margin-top:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:12px}:host([variant='embedded']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}"}},[1,"rtk-viewer-count",{meeting:[16],variant:[513],iconPack:[16],t:[16],viewerCount:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-viewer-count","rtk-icon"].forEach((t=>{switch(t){case"rtk-viewer-count":customElements.get(a(t))||customElements.define(a(t),h);break;case"rtk-icon":customElements.get(a(t))||p()}}))}d([o()],h.prototype,"meeting",void 0),d([o()],h.prototype,"iconPack",void 0),d([o()],h.prototype,"t",void 0),l();export{h as R,l as d}
1
+ import{p as t,H as e,h as i,d as r,t as s}from"./p-BBHQOrFK.js";import{e as a,i as n}from"./p-DhwysA2e.js";import{S as o}from"./p-bRRQr4xn.js";import{s as c}from"./p-C0vp-Q7v.js";import{d as p}from"./p-BYIBbfJ8.js";var h=function(t,e,i,r){var s,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,i,r);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(n=(a<3?s(n):a>3?s(e,i,n):s(e,i))||n);return a>3&&n&&Object.defineProperty(e,i,n),n};const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="primary",this.iconPack=a,this.t=n(),this.viewerCount=0,this.disconnectMeeting=t=>{var e;null!=t&&null!=this.countListener&&(null===(e=t.livestream)||void 0===e||e.removeListener("viewerCountUpdate",this.countListener))}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}meetingChanged(t,e){var i;this.disconnectMeeting(e),null!=t&&(this.countListener=()=>{var e;this.viewerCount=null===(e=t.livestream)||void 0===e?void 0:e.viewerCount},this.countListener(),null===(i=t.livestream)||void 0===i||i.addListener("viewerCountUpdate",this.countListener))}render(){return c(this.meeting)?i(r,{tabIndex:0,role:"log","aria-label":`${this.viewerCount} ${this.t("viewers")}`},i("rtk-icon",{icon:this.iconPack.viewers,tabIndex:-1,"aria-hidden":!0,part:"icon"}),this.viewerCount," ",this.t("viewers")):i(r,{"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:inline-flex;height:var(--rtk-space-10, 40px);-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;font-size:14px}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([variant='embedded']){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));opacity:0.5;margin-top:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:12px}:host([variant='embedded']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}"}},[1,"rtk-viewer-count",{meeting:[16],variant:[513],iconPack:[16],t:[16],viewerCount:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-viewer-count","rtk-icon"].forEach((t=>{switch(t){case"rtk-viewer-count":customElements.get(s(t))||customElements.define(s(t),d);break;case"rtk-icon":customElements.get(s(t))||p()}}))}h([o()],d.prototype,"meeting",void 0),h([o()],d.prototype,"iconPack",void 0),h([o()],d.prototype,"t",void 0),l();export{d as R,l as d}
@@ -1 +1 @@
1
- import{p as a,H as r,c as t,h as e,t as o}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as i,i as s}from"./p-BthnOddY.js";import"./p-Dguuxuf6.js";import{a as c}from"./p-CJsXePY3.js";import{S as n}from"./p-DL4GSZ2e.js";import{d}from"./p-DDaHXyCC.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-BYIBbfJ8.js";import{d as b}from"./p-DXSMSSbW.js";var f=function(a,r,t,e){var o,i=arguments.length,s=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,t):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(a,r,t,e);else for(var c=a.length-1;c>=0;c--)(o=a[c])&&(s=(i<3?o(s):i>3?o(r,t,s):o(r,t))||s);return i>3&&s&&Object.defineProperty(r,t,s),s};const g=a(class extends r{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.onPreview=t(this,"preview",7),this.iconPack=i,this.t=s(),this.status="loading"}render(){return e("div",{key:"4f52d3d7ff948d02832cf5f53ae9b483c8502b84",class:{image:!0,loaded:"loaded"===this.status}},e("img",{key:"06efe7798b2d59ee6b3acde68418763c89fc285f",src:c(this.url),onLoad:()=>{this.status="loaded"},onError:()=>{this.status="errored"},onClick:()=>{"loaded"===this.status&&this.onPreview.emit(this.url)}}),"loading"===this.status&&e("div",{key:"366f02c0b48cf06e527cc0b3c42ef1ac5ff0ac36",class:"image-spinner",title:this.t("chat.img.loading"),"aria-label":this.t("chat.img.loading")},e("rtk-spinner",{key:"90cd7d607487b8016ab838a31bcee39aacec0ba2",iconPack:this.iconPack})),"errored"===this.status&&e("div",{key:"d7b1fe803153799855aa8220af81f6b973b9117d",class:"image-errored",title:this.t("chat.error.img_not_found"),"aria-label":this.t("chat.error.img_not_found")},e("rtk-icon",{key:"83060f609b0df333aa91d3b21a4634d943d2352f",icon:this.iconPack.image_off})),"loaded"===this.status&&e("div",{key:"1db7dc269511f477c60faa681fb39cfa09a517ab",class:"actions"},e("rtk-button",{key:"a45138b3cfeeae245d28d3493396e5c5ea102b49",class:"action",variant:"secondary",kind:"icon",onClick:()=>{this.onPreview.emit(this.url)}},e("rtk-icon",{key:"b44a303fa4ed28a2a39ef372dfa5b58908698a2c",icon:this.iconPack.full_screen_maximize})),e("rtk-button",{key:"0e687d5c92264a8d2fa28e1921ccbd4797bfd2e3",class:"action",variant:"secondary",kind:"icon",onClick:()=>d(this.url,{fallbackName:"image"})},e("rtk-icon",{key:"1f2d01d576a2faa7483ada2e82f5cbf4cb8534b5",icon:this.iconPack.download}))))}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)}.image-spinner{cursor:wait}.image-errored{cursor:not-allowed}.image{display:block;font-family:var(--rtk-font-family, sans-serif);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));position:relative;height:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);cursor:pointer}.image img{display:none;height:100%;width:100%;border-radius:var(--rtk-border-radius-sm, 4px);-o-object-fit:cover;object-fit:cover}.image .image-spinner{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.image .image-spinner rtk-spinner{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.image .image-errored{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}.image .actions{display:none;height:var(--rtk-space-8, 32px);align-items:center;position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.image .actions .action{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:var(--rtk-border-radius-none, 0);border-width:var(--rtk-border-width-none, 0);border-style:none;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)}.image .actions .action:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.image.loaded img{display:block}.image.loaded .image-spinner{display:none}.image:hover .actions,.image:focus .actions{display:flex}"}},[1,"rtk-image-message-view",{url:[1],iconPack:[16],t:[16],status:[32]}]);function m(){"undefined"!=typeof customElements&&["rtk-image-message-view","rtk-button","rtk-icon","rtk-spinner"].forEach((a=>{switch(a){case"rtk-image-message-view":customElements.get(o(a))||customElements.define(o(a),g);break;case"rtk-button":customElements.get(o(a))||l();break;case"rtk-icon":customElements.get(o(a))||p();break;case"rtk-spinner":customElements.get(o(a))||b()}}))}f([n()],g.prototype,"iconPack",void 0),f([n()],g.prototype,"t",void 0),m();export{g as R,m as d}
1
+ import{p as a,H as r,c as t,h as e,t as o}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as i,i as s}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{a as c}from"./p-CJsXePY3.js";import{S as n}from"./p-bRRQr4xn.js";import{d}from"./p-DDaHXyCC.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-BYIBbfJ8.js";import{d as b}from"./p-B0SC1Zj-.js";var f=function(a,r,t,e){var o,i=arguments.length,s=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,t):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(a,r,t,e);else for(var c=a.length-1;c>=0;c--)(o=a[c])&&(s=(i<3?o(s):i>3?o(r,t,s):o(r,t))||s);return i>3&&s&&Object.defineProperty(r,t,s),s};const g=a(class extends r{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.onPreview=t(this,"preview",7),this.iconPack=i,this.t=s(),this.status="loading"}render(){return e("div",{key:"4f52d3d7ff948d02832cf5f53ae9b483c8502b84",class:{image:!0,loaded:"loaded"===this.status}},e("img",{key:"06efe7798b2d59ee6b3acde68418763c89fc285f",src:c(this.url),onLoad:()=>{this.status="loaded"},onError:()=>{this.status="errored"},onClick:()=>{"loaded"===this.status&&this.onPreview.emit(this.url)}}),"loading"===this.status&&e("div",{key:"366f02c0b48cf06e527cc0b3c42ef1ac5ff0ac36",class:"image-spinner",title:this.t("chat.img.loading"),"aria-label":this.t("chat.img.loading")},e("rtk-spinner",{key:"90cd7d607487b8016ab838a31bcee39aacec0ba2",iconPack:this.iconPack})),"errored"===this.status&&e("div",{key:"d7b1fe803153799855aa8220af81f6b973b9117d",class:"image-errored",title:this.t("chat.error.img_not_found"),"aria-label":this.t("chat.error.img_not_found")},e("rtk-icon",{key:"83060f609b0df333aa91d3b21a4634d943d2352f",icon:this.iconPack.image_off})),"loaded"===this.status&&e("div",{key:"1db7dc269511f477c60faa681fb39cfa09a517ab",class:"actions"},e("rtk-button",{key:"a45138b3cfeeae245d28d3493396e5c5ea102b49",class:"action",variant:"secondary",kind:"icon",onClick:()=>{this.onPreview.emit(this.url)}},e("rtk-icon",{key:"b44a303fa4ed28a2a39ef372dfa5b58908698a2c",icon:this.iconPack.full_screen_maximize})),e("rtk-button",{key:"0e687d5c92264a8d2fa28e1921ccbd4797bfd2e3",class:"action",variant:"secondary",kind:"icon",onClick:()=>d(this.url,{fallbackName:"image"})},e("rtk-icon",{key:"1f2d01d576a2faa7483ada2e82f5cbf4cb8534b5",icon:this.iconPack.download}))))}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)}.image-spinner{cursor:wait}.image-errored{cursor:not-allowed}.image{display:block;font-family:var(--rtk-font-family, sans-serif);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));position:relative;height:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);cursor:pointer}.image img{display:none;height:100%;width:100%;border-radius:var(--rtk-border-radius-sm, 4px);-o-object-fit:cover;object-fit:cover}.image .image-spinner{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.image .image-spinner rtk-spinner{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.image .image-errored{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}.image .actions{display:none;height:var(--rtk-space-8, 32px);align-items:center;position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.image .actions .action{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:var(--rtk-border-radius-none, 0);border-width:var(--rtk-border-width-none, 0);border-style:none;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)}.image .actions .action:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.image.loaded img{display:block}.image.loaded .image-spinner{display:none}.image:hover .actions,.image:focus .actions{display:flex}"}},[1,"rtk-image-message-view",{url:[1],iconPack:[16],t:[16],status:[32]}]);function m(){"undefined"!=typeof customElements&&["rtk-image-message-view","rtk-button","rtk-icon","rtk-spinner"].forEach((a=>{switch(a){case"rtk-image-message-view":customElements.get(o(a))||customElements.define(o(a),g);break;case"rtk-button":customElements.get(o(a))||l();break;case"rtk-icon":customElements.get(o(a))||p();break;case"rtk-spinner":customElements.get(o(a))||b()}}))}f([n()],g.prototype,"iconPack",void 0),f([n()],g.prototype,"t",void 0),m();export{g as R,m as d}
@@ -0,0 +1 @@
1
+ import{p as t,H as e,h as s,t as o}from"./p-BBHQOrFK.js";import{S as i}from"./p-bRRQr4xn.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as r,i as c}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{d as a}from"./p-D6vw6bT2.js";import{d as n}from"./p-BYIBbfJ8.js";import{d as m}from"./p-DHSRRtn3.js";var p=function(t,e,s,o){var i,r=arguments.length,c=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(c=(r<3?i(c):r>3?i(e,s,c):i(e,s))||c);return r>3&&c&&Object.defineProperty(e,s,c),c};const f=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=r,this.t=c()}render(){return s("rtk-tooltip",{key:"aef7b8c5bfdd8888a7fcca9ba9ba2df7ca801da4",label:this.t("chat.send_emoji")},s("rtk-button",{key:"e7b23bcd81515fe0cae3916b4de7565547472171",variant:"ghost",kind:"icon",class:{active:this.isActive},title:this.t("chat.send_emoji")},s("rtk-icon",{key:"af7e05bb06b9fe01b47e8f11f09a957e37187f63",icon:this.iconPack.emoji_multiple})))}static get style(){return":host{}"}},[1,"rtk-emoji-picker-button",{iconPack:[16],t:[16],isActive:[4,"is-active"]}]);function b(){"undefined"!=typeof customElements&&["rtk-emoji-picker-button","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-emoji-picker-button":customElements.get(o(t))||customElements.define(o(t),f);break;case"rtk-button":customElements.get(o(t))||a();break;case"rtk-icon":customElements.get(o(t))||n();break;case"rtk-tooltip":customElements.get(o(t))||m()}}))}p([i()],f.prototype,"iconPack",void 0),p([i()],f.prototype,"t",void 0),b();export{f as R,b as d}
@@ -1 +1 @@
1
- import{t as r,p as t,H as a,h as e,d as o}from"./p-BBHQOrFK.js";import{d as s}from"./p-BNRJKXAG.js";import{d as c}from"./p-D6vw6bT2.js";import{d as i}from"./p-DjSGHZA8.js";import{d as n}from"./p-BYIBbfJ8.js";import{d as l}from"./p-Bvn365hl.js";import{d}from"./p-CVfA5R2h.js";import{d as p}from"./p-DXSMSSbW.js";const k=t(class extends a{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.onPinnedToggle=async r=>{var t,a,e;(null===(t=r.detail)||void 0===t?void 0:t.open)&&await(null===(e=null===(a=this.$chatSelector)||void 0===a?void 0:a.close)||void 0===e?void 0:e.call(a))},this.onChatToggle=async r=>{var t,a,e;(null===(t=r.detail)||void 0===t?void 0:t.open)&&await(null===(e=null===(a=this.$pinnedSelector)||void 0===a?void 0:a.close)||void 0===e?void 0:e.call(a))}}render(){return e(o,{key:"3cec93546dc5c7eec01df7b1b1a3847a6f004f0d"},e("rtk-pinned-message-selector",{key:"f099b29e1fb773bfb2931bec2358dd15819778ce",ref:r=>this.$pinnedSelector=r,onRtkDropdownToggle:this.onPinnedToggle}),e("rtk-chat-selector",{key:"0d33e69cf161381dc7598de279147ec9035ef8d7",ref:r=>this.$chatSelector=r,onRtkDropdownToggle:this.onChatToggle}))}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{display:flex;width:100%;flex-direction:column;gap:var(--rtk-space-2, 8px);font-size:14px;z-index:10;margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.chat-header{position:relative;margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);gap:var(--rtk-space-2, 8px);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);display:flex;flex-direction:row;align-items:center;justify-content:space-between;--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-600, 255 255 255 / 0.52));border-radius:var(--rtk-border-radius-sm, 4px);overflow:hidden;border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));cursor:pointer}.chat-header-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}"}},[1,"rtk-chat-header"]);function b(){"undefined"!=typeof customElements&&["rtk-chat-header","rtk-avatar","rtk-button","rtk-chat-selector","rtk-icon","rtk-paginated-list","rtk-pinned-message-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-chat-header":customElements.get(r(t))||customElements.define(r(t),k);break;case"rtk-avatar":customElements.get(r(t))||s();break;case"rtk-button":customElements.get(r(t))||c();break;case"rtk-chat-selector":customElements.get(r(t))||i();break;case"rtk-icon":customElements.get(r(t))||n();break;case"rtk-paginated-list":customElements.get(r(t))||l();break;case"rtk-pinned-message-selector":customElements.get(r(t))||d();break;case"rtk-spinner":customElements.get(r(t))||p()}}))}b();export{k as R,b as d}
1
+ import{t as r,p as t,H as a,h as e,d as o}from"./p-BBHQOrFK.js";import{d as s}from"./p-BHHJ7_MS.js";import{d as c}from"./p-D6vw6bT2.js";import{d as i}from"./p-DzDWIdoE.js";import{d as n}from"./p-BYIBbfJ8.js";import{d as l}from"./p-qDy7F0Tr.js";import{d}from"./p-EkUCxpDZ.js";import{d as p}from"./p-B0SC1Zj-.js";const k=t(class extends a{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.onPinnedToggle=async r=>{var t,a,e;(null===(t=r.detail)||void 0===t?void 0:t.open)&&await(null===(e=null===(a=this.$chatSelector)||void 0===a?void 0:a.close)||void 0===e?void 0:e.call(a))},this.onChatToggle=async r=>{var t,a,e;(null===(t=r.detail)||void 0===t?void 0:t.open)&&await(null===(e=null===(a=this.$pinnedSelector)||void 0===a?void 0:a.close)||void 0===e?void 0:e.call(a))}}render(){return e(o,{key:"3cec93546dc5c7eec01df7b1b1a3847a6f004f0d"},e("rtk-pinned-message-selector",{key:"f099b29e1fb773bfb2931bec2358dd15819778ce",ref:r=>this.$pinnedSelector=r,onRtkDropdownToggle:this.onPinnedToggle}),e("rtk-chat-selector",{key:"0d33e69cf161381dc7598de279147ec9035ef8d7",ref:r=>this.$chatSelector=r,onRtkDropdownToggle:this.onChatToggle}))}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{display:flex;width:100%;flex-direction:column;gap:var(--rtk-space-2, 8px);font-size:14px;z-index:10;margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.chat-header{position:relative;margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);gap:var(--rtk-space-2, 8px);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);display:flex;flex-direction:row;align-items:center;justify-content:space-between;--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-600, 255 255 255 / 0.52));border-radius:var(--rtk-border-radius-sm, 4px);overflow:hidden;border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));cursor:pointer}.chat-header-label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}"}},[1,"rtk-chat-header"]);function b(){"undefined"!=typeof customElements&&["rtk-chat-header","rtk-avatar","rtk-button","rtk-chat-selector","rtk-icon","rtk-paginated-list","rtk-pinned-message-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-chat-header":customElements.get(r(t))||customElements.define(r(t),k);break;case"rtk-avatar":customElements.get(r(t))||s();break;case"rtk-button":customElements.get(r(t))||c();break;case"rtk-chat-selector":customElements.get(r(t))||i();break;case"rtk-icon":customElements.get(r(t))||n();break;case"rtk-paginated-list":customElements.get(r(t))||l();break;case"rtk-pinned-message-selector":customElements.get(r(t))||d();break;case"rtk-spinner":customElements.get(r(t))||p()}}))}b();export{k as R,b as d}
@@ -1 +1 @@
1
- import{p as t,H as i,h as a,t as s}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import{c as r,e,i as n}from"./p-BthnOddY.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-DL4GSZ2e.js";import{d as p}from"./p-BNRJKXAG.js";import{d as o}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";import{d as h}from"./p-DXSMSSbW.js";import{d}from"./p-DHSRRtn3.js";var m=function(t,i,a,s){var r,e=arguments.length,n=e<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(e<3?r(n):e>3?r(i,a,n):r(i,a))||n);return e>3&&n&&Object.defineProperty(i,a,n),n};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=r(),this.iconPack=e,this.view="sidebar",this.t=n(),this.acceptWaitingRoomRequest=async t=>{await this.meeting.participants.acceptWaitingRoomRequest(t)},this.waitlistedParticipants=[],this.acceptAllWaitingRoomRequests=async()=>{await this.meeting.participants.acceptAllWaitingRoomRequest(this.waitlistedParticipants.map((t=>t.id)))},this.rejectWaitingRoomRequest=async t=>{await this.meeting.participants.rejectWaitingRoomRequest(t)},this.shouldShowWaitlist=()=>"LIVESTREAM"!==this.meeting.meta.viewType&&this.meeting.self.permissions.acceptWaitingRequests&&0!==this.waitlistedParticipants.length}disconnectedCallback(){const{participants:t}=this.meeting;this.waitlistedParticipantJoinedListener&&t.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&t.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.waitlistedParticipantsClearedListener&&t.waitlisted.removeListener("participantsCleared",this.waitlistedParticipantsClearedListener)}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t])},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id))},this.waitlistedParticipantsClearedListener=()=>{this.waitlistedParticipants=[]},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener),t.participants.waitlisted.addListener("participantsCleared",this.waitlistedParticipantsClearedListener))}render(){if("sidebar"===this.view&&this.shouldShowWaitlist())return a("div",{class:"waiting-participants"},a("div",{class:"heading-count",part:"waitlisted-heading-count"},this.t("waitlist.header_title")," (",this.waitlistedParticipants.length,")"),a("ul",{class:"participants",part:"waitlisted-participants"},this.waitlistedParticipants.map((t=>a("li",{class:"waiting-participant",key:t.id},a("div",{class:"participant-details"},a("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),a("p",{class:"name",title:t.name},t.name)),a("div",{class:"waitlist-controls"},a("rtk-tooltip",{label:this.t("waitlist.deny_request"),variant:"secondary"},a("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectWaitingRoomRequest(t.id)},a("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),a("rtk-tooltip",{label:this.t("waitlist.accept_request"),variant:"secondary"},a("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptWaitingRoomRequest(t.id)},a("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),a("rtk-button",{class:"accept-all-button",variant:"secondary",kind:"wide",onClick:this.acceptAllWaitingRoomRequests},this.t("waitlist.accept_all")))}static get watchers(){return{meeting:[{meetingChanged:0}]}}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-top:var(--rtk-space-4, 16px);margin-bottom:calc(var(--rtk-space-2, 8px) * -1);display:flex;width:100%;flex-direction:column;font-size:14px}.waiting-participants{margin-bottom:var(--rtk-space-8, 32px)}.waiting-participants .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[1,"rtk-participants-waiting-list",{meeting:[16],config:[16],size:[513],iconPack:[16],view:[1],t:[16],waitlistedParticipants:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-participants-waiting-list","rtk-avatar","rtk-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-participants-waiting-list":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-avatar":customElements.get(s(t))||p();break;case"rtk-button":customElements.get(s(t))||o();break;case"rtk-icon":customElements.get(s(t))||l();break;case"rtk-spinner":customElements.get(s(t))||h();break;case"rtk-tooltip":customElements.get(s(t))||d()}}))}m([c()],g.prototype,"meeting",void 0),m([c()],g.prototype,"config",void 0),m([c()],g.prototype,"iconPack",void 0),m([c()],g.prototype,"t",void 0),k();export{g as R,k as d}
1
+ import{p as t,H as i,h as a,t as s}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import{c as r,e,i as n}from"./p-DhwysA2e.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-bRRQr4xn.js";import{d as p}from"./p-BHHJ7_MS.js";import{d as o}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";import{d as h}from"./p-B0SC1Zj-.js";import{d}from"./p-DHSRRtn3.js";var m=function(t,i,a,s){var r,e=arguments.length,n=e<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(e<3?r(n):e>3?r(i,a,n):r(i,a))||n);return e>3&&n&&Object.defineProperty(i,a,n),n};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=r(),this.iconPack=e,this.view="sidebar",this.t=n(),this.acceptWaitingRoomRequest=async t=>{await this.meeting.participants.acceptWaitingRoomRequest(t)},this.waitlistedParticipants=[],this.acceptAllWaitingRoomRequests=async()=>{await this.meeting.participants.acceptAllWaitingRoomRequest(this.waitlistedParticipants.map((t=>t.id)))},this.rejectWaitingRoomRequest=async t=>{await this.meeting.participants.rejectWaitingRoomRequest(t)},this.shouldShowWaitlist=()=>"LIVESTREAM"!==this.meeting.meta.viewType&&this.meeting.self.permissions.acceptWaitingRequests&&0!==this.waitlistedParticipants.length}disconnectedCallback(){const{participants:t}=this.meeting;this.waitlistedParticipantJoinedListener&&t.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&t.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.waitlistedParticipantsClearedListener&&t.waitlisted.removeListener("participantsCleared",this.waitlistedParticipantsClearedListener)}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t])},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id))},this.waitlistedParticipantsClearedListener=()=>{this.waitlistedParticipants=[]},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener),t.participants.waitlisted.addListener("participantsCleared",this.waitlistedParticipantsClearedListener))}render(){if("sidebar"===this.view&&this.shouldShowWaitlist())return a("div",{class:"waiting-participants"},a("div",{class:"heading-count",part:"waitlisted-heading-count"},this.t("waitlist.header_title")," (",this.waitlistedParticipants.length,")"),a("ul",{class:"participants",part:"waitlisted-participants"},this.waitlistedParticipants.map((t=>a("li",{class:"waiting-participant",key:t.id},a("div",{class:"participant-details"},a("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),a("p",{class:"name",title:t.name},t.name)),a("div",{class:"waitlist-controls"},a("rtk-tooltip",{label:this.t("waitlist.deny_request"),variant:"secondary"},a("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectWaitingRoomRequest(t.id)},a("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),a("rtk-tooltip",{label:this.t("waitlist.accept_request"),variant:"secondary"},a("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptWaitingRoomRequest(t.id)},a("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),a("rtk-button",{class:"accept-all-button",variant:"secondary",kind:"wide",onClick:this.acceptAllWaitingRoomRequests},this.t("waitlist.accept_all")))}static get watchers(){return{meeting:[{meetingChanged:0}]}}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-top:var(--rtk-space-4, 16px);margin-bottom:calc(var(--rtk-space-2, 8px) * -1);display:flex;width:100%;flex-direction:column;font-size:14px}.waiting-participants{margin-bottom:var(--rtk-space-8, 32px)}.waiting-participants .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[1,"rtk-participants-waiting-list",{meeting:[16],config:[16],size:[513],iconPack:[16],view:[1],t:[16],waitlistedParticipants:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-participants-waiting-list","rtk-avatar","rtk-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-participants-waiting-list":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-avatar":customElements.get(s(t))||p();break;case"rtk-button":customElements.get(s(t))||o();break;case"rtk-icon":customElements.get(s(t))||l();break;case"rtk-spinner":customElements.get(s(t))||h();break;case"rtk-tooltip":customElements.get(s(t))||d()}}))}m([c()],g.prototype,"meeting",void 0),m([c()],g.prototype,"config",void 0),m([c()],g.prototype,"iconPack",void 0),m([c()],g.prototype,"t",void 0),k();export{g as R,k as d}
@@ -1 +1 @@
1
- import{p as t,H as i,h as a,d as s,t as e}from"./p-BBHQOrFK.js";import{h as r}from"./p-BWNToYSb.js";import{e as n,i as o}from"./p-BthnOddY.js";import{S as c}from"./p-DL4GSZ2e.js";import{d as h}from"./p-BYIBbfJ8.js";const l=(t,i)=>{if(null==t)return;const a=Math.round(1.5),s=[...Array(3)].map(((t,s)=>{let e=s;return e>a-1&&(e=3-e-1),Math.round((e+1)/(a+1)*i)})),{width:e,height:r}=t,n=t.getContext("2d");let o=2;const c=1*e/s.length,h=c-4;n.clearRect(0,0,e,r),n.fillStyle="rgb(0,0,0,0.0)",n.fillRect(0,0,e,r);const l=getComputedStyle(t).getPropertyValue("color");n.fillStyle=l,n.strokeStyle=l,n.lineCap="round",n.lineWidth=4,n.beginPath();for(const t of s){const i=Math.min(-Math.abs(1.2*t/10*r)+r/2,r/2-2.5),a=Math.max(2*(r/2-i),5);n.moveTo(o+h/2,i),n.lineTo(o+h/2,i+a),o+=c}n.stroke()};var d=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="bars",this.iconPack=n,this.t=o(),this.hideMuted=!1,this.isScreenShare=!1,this.volume=0}connectedCallback(){this.participantChanged(this.participant)}componentDidLoad(){l(this.visualizer,0)}disconnectedCallback(){var t,i,a;null===(t=this.hark)||void 0===t||t.stop(),this.audioUpdateListener&&(null===(i=this.participant)||void 0===i||i.removeListener("audioUpdate",this.audioUpdateListener)),this.screenShareUpdateListener&&(null===(a=this.participant)||void 0===a||a.removeListener("screenShareUpdate",this.screenShareUpdateListener))}participantChanged(t){null!=t&&(this.audioUpdateListener=({audioEnabled:t,audioTrack:i})=>{var a;if(null===(a=this.hark)||void 0===a||a.stop(),t&&null!=i){this.audioEnabled=!0;const t=new MediaStream;t.addTrack(i),this.calcVolume(t),l(this.visualizer,0)}else this.volume=0,this.audioEnabled=!1},this.isScreenShare?(this.screenShareUpdateListener=({screenShareEnabled:t,screenShareTracks:i})=>{this.audioUpdateListener({audioEnabled:t&&null!=i.audio,audioTrack:i.audio})},this.screenShareUpdateListener({screenShareEnabled:t.screenShareEnabled,screenShareTracks:{audio:t.screenShareTracks.audio,video:t.screenShareTracks.video}}),t.addListener("screenShareUpdate",this.screenShareUpdateListener)):(this.audioUpdateListener(t),t.addListener("audioUpdate",this.audioUpdateListener)))}calcVolume(t){this.hark=r(t,{play:!1,interval:100}),this.hark.on("volume_change",(t=>{const i=this.volume;let a=Math.round(10**(t/115)*10);a<3&&(a=0);let s=Math.round((2*i+a)/3);i!==s&&(this.volume=s,l(this.visualizer,this.volume))}))}render(){return this.hideMuted&&!this.audioEnabled?null:a(s,null,a("div",{class:{audioActivePadding:this.hideMuted&&this.audioEnabled}},a("canvas",{width:"24",height:"24",class:{bars:!0,visible:this.audioEnabled},ref:t=>this.visualizer=t,part:"canvas"}),!this.isScreenShare&&!this.audioEnabled&&a("rtk-icon",{icon:this.iconPack.mic_off,part:"mic-off-icon"})))}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{display:block;width:-moz-fit-content;width:fit-content}.audioActivePadding{padding:var(--rtk-space-1, 4px)}canvas,rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){transform:scale(0.9)}canvas{display:none}canvas.visible{display:block}canvas.bars{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}"}},[1,"rtk-audio-visualizer",{variant:[513],participant:[16],size:[513],iconPack:[16],t:[16],hideMuted:[4,"hide-muted"],isScreenShare:[4,"is-screen-share"],audioEnabled:[32],volume:[32]},void 0,{participant:[{participantChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-audio-visualizer","rtk-icon"].forEach((t=>{switch(t){case"rtk-audio-visualizer":customElements.get(e(t))||customElements.define(e(t),p);break;case"rtk-icon":customElements.get(e(t))||h()}}))}d([c()],p.prototype,"iconPack",void 0),d([c()],p.prototype,"t",void 0),u();export{p as R,u as d}
1
+ import{p as t,H as i,h as a,d as s,t as e}from"./p-BBHQOrFK.js";import{h as r}from"./p-BWNToYSb.js";import{e as n,i as o}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d as h}from"./p-BYIBbfJ8.js";const l=(t,i)=>{if(null==t)return;const a=Math.round(1.5),s=[...Array(3)].map(((t,s)=>{let e=s;return e>a-1&&(e=3-e-1),Math.round((e+1)/(a+1)*i)})),{width:e,height:r}=t,n=t.getContext("2d");let o=2;const c=1*e/s.length,h=c-4;n.clearRect(0,0,e,r),n.fillStyle="rgb(0,0,0,0.0)",n.fillRect(0,0,e,r);const l=getComputedStyle(t).getPropertyValue("color");n.fillStyle=l,n.strokeStyle=l,n.lineCap="round",n.lineWidth=4,n.beginPath();for(const t of s){const i=Math.min(-Math.abs(1.2*t/10*r)+r/2,r/2-2.5),a=Math.max(2*(r/2-i),5);n.moveTo(o+h/2,i),n.lineTo(o+h/2,i+a),o+=c}n.stroke()};var d=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="bars",this.iconPack=n,this.t=o(),this.hideMuted=!1,this.isScreenShare=!1,this.volume=0}connectedCallback(){this.participantChanged(this.participant)}componentDidLoad(){l(this.visualizer,0)}disconnectedCallback(){var t,i,a;null===(t=this.hark)||void 0===t||t.stop(),this.audioUpdateListener&&(null===(i=this.participant)||void 0===i||i.removeListener("audioUpdate",this.audioUpdateListener)),this.screenShareUpdateListener&&(null===(a=this.participant)||void 0===a||a.removeListener("screenShareUpdate",this.screenShareUpdateListener))}participantChanged(t){null!=t&&(this.audioUpdateListener=({audioEnabled:t,audioTrack:i})=>{var a;if(null===(a=this.hark)||void 0===a||a.stop(),t&&null!=i){this.audioEnabled=!0;const t=new MediaStream;t.addTrack(i),this.calcVolume(t),l(this.visualizer,0)}else this.volume=0,this.audioEnabled=!1},this.isScreenShare?(this.screenShareUpdateListener=({screenShareEnabled:t,screenShareTracks:i})=>{this.audioUpdateListener({audioEnabled:t&&null!=i.audio,audioTrack:i.audio})},this.screenShareUpdateListener({screenShareEnabled:t.screenShareEnabled,screenShareTracks:{audio:t.screenShareTracks.audio,video:t.screenShareTracks.video}}),t.addListener("screenShareUpdate",this.screenShareUpdateListener)):(this.audioUpdateListener(t),t.addListener("audioUpdate",this.audioUpdateListener)))}calcVolume(t){this.hark=r(t,{play:!1,interval:100}),this.hark.on("volume_change",(t=>{const i=this.volume;let a=Math.round(10**(t/115)*10);a<3&&(a=0);let s=Math.round((2*i+a)/3);i!==s&&(this.volume=s,l(this.visualizer,this.volume))}))}render(){return this.hideMuted&&!this.audioEnabled?null:a(s,null,a("div",{class:{audioActivePadding:this.hideMuted&&this.audioEnabled}},a("canvas",{width:"24",height:"24",class:{bars:!0,visible:this.audioEnabled},ref:t=>this.visualizer=t,part:"canvas"}),!this.isScreenShare&&!this.audioEnabled&&a("rtk-icon",{icon:this.iconPack.mic_off,part:"mic-off-icon"})))}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{display:block;width:-moz-fit-content;width:fit-content}.audioActivePadding{padding:var(--rtk-space-1, 4px)}canvas,rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){transform:scale(0.9)}canvas{display:none}canvas.visible{display:block}canvas.bars{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}"}},[1,"rtk-audio-visualizer",{variant:[513],participant:[16],size:[513],iconPack:[16],t:[16],hideMuted:[4,"hide-muted"],isScreenShare:[4,"is-screen-share"],audioEnabled:[32],volume:[32]},void 0,{participant:[{participantChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-audio-visualizer","rtk-icon"].forEach((t=>{switch(t){case"rtk-audio-visualizer":customElements.get(e(t))||customElements.define(e(t),p);break;case"rtk-icon":customElements.get(e(t))||h()}}))}d([c()],p.prototype,"iconPack",void 0),d([c()],p.prototype,"t",void 0),u();export{p as R,u as d}