@cloudflare/realtimekit-ui 0.0.0 → 0.1.0

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 (1223) hide show
  1. package/README.md +62 -0
  2. package/dist/browser.js +1 -0
  3. package/dist/cjs/ChatHead-d2f094ec.js +46 -0
  4. package/dist/cjs/ResizeObserver.es-ba961f16.js +930 -0
  5. package/dist/cjs/TextMessage-5e193665.js +69 -0
  6. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  7. package/dist/cjs/chat-926e8f05.js +217 -0
  8. package/dist/cjs/clone-2e9a4cae.js +754 -0
  9. package/dist/cjs/config-10bea2dc.js +1183 -0
  10. package/dist/cjs/debounce-6080cc73.js +544 -0
  11. package/dist/cjs/debounce-6dabb441.js +331 -0
  12. package/dist/cjs/file-33e9ed90.js +61 -0
  13. package/dist/cjs/floating-ui.dom.esm-c3c35b98.js +1900 -0
  14. package/dist/cjs/full-screen-de3e9caf.js +55 -0
  15. package/dist/cjs/grid-edc342a7.js +99 -0
  16. package/dist/cjs/hark-c97d0a59.js +301 -0
  17. package/dist/cjs/index-05554ce6.js +2191 -0
  18. package/dist/cjs/index-821d14b7.js +227 -0
  19. package/dist/cjs/index-e33a89b6.js +26 -0
  20. package/dist/cjs/index.cjs.js +267 -0
  21. package/dist/cjs/isObjectLike-73d13a39.js +171 -0
  22. package/dist/cjs/keysIn-8bdbe83d.js +1438 -0
  23. package/dist/cjs/loader.cjs.js +15 -0
  24. package/dist/cjs/notification-a3fb0b56.js +39 -0
  25. package/dist/cjs/realtimekit-ui.cjs.js +25 -0
  26. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +76 -0
  27. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +138 -0
  28. package/dist/cjs/rtk-ai.cjs.entry.js +91 -0
  29. package/dist/cjs/rtk-audio-grid.cjs.entry.js +116 -0
  30. package/dist/cjs/rtk-audio-tile.cjs.entry.js +130 -0
  31. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +501 -0
  32. package/dist/cjs/rtk-avatar_54.cjs.entry.js +6377 -0
  33. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +86 -0
  34. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +281 -0
  35. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +186 -0
  36. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +84 -0
  37. package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +147 -0
  38. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +315 -0
  39. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +78 -0
  40. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +138 -0
  41. package/dist/cjs/rtk-clock.cjs.entry.js +98 -0
  42. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +49 -0
  43. package/dist/cjs/rtk-controlbar.cjs.entry.js +66 -0
  44. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +61 -0
  45. package/dist/cjs/rtk-ended-screen.cjs.entry.js +109 -0
  46. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +60 -0
  47. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +86 -0
  48. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +159 -0
  49. package/dist/cjs/rtk-grid.cjs.entry.js +362 -0
  50. package/dist/cjs/rtk-header.cjs.entry.js +66 -0
  51. package/dist/cjs/rtk-idle-screen.cjs.entry.js +47 -0
  52. package/dist/cjs/rtk-image-viewer.cjs.entry.js +62 -0
  53. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +37 -0
  54. package/dist/cjs/rtk-leave-button.cjs.entry.js +52 -0
  55. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +29148 -0
  56. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +142 -0
  57. package/dist/cjs/rtk-meeting-title.cjs.entry.js +49 -0
  58. package/dist/cjs/rtk-message-list-view.cjs.entry.js +285 -0
  59. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +184 -0
  60. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +226 -0
  61. package/dist/cjs/rtk-more-toggle.cjs.entry.js +77 -0
  62. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +79 -0
  63. package/dist/cjs/rtk-name-tag.cjs.entry.js +72 -0
  64. package/dist/cjs/rtk-network-indicator.cjs.entry.js +86 -0
  65. package/dist/cjs/rtk-participant-count.cjs.entry.js +91 -0
  66. package/dist/cjs/rtk-participant-setup.cjs.entry.js +118 -0
  67. package/dist/cjs/rtk-participant_2.cjs.entry.js +419 -0
  68. package/dist/cjs/rtk-participants-audio.cjs.entry.js +207 -0
  69. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +466 -0
  70. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +150 -0
  71. package/dist/cjs/rtk-participants.cjs.entry.js +190 -0
  72. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +88 -0
  73. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +196 -0
  74. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +106 -0
  75. package/dist/cjs/rtk-plugins_2.cjs.entry.js +181 -0
  76. package/dist/cjs/rtk-poll_2.cjs.entry.js +142 -0
  77. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +117 -0
  78. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +70 -0
  79. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +162 -0
  80. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +265 -0
  81. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +149 -0
  82. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +150 -0
  83. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +57 -0
  84. package/dist/cjs/rtk-settings.cjs.entry.js +124 -0
  85. package/dist/cjs/rtk-setup-screen.cjs.entry.js +120 -0
  86. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +80 -0
  87. package/dist/cjs/rtk-sidebar.cjs.entry.js +151 -0
  88. package/dist/cjs/rtk-simple-grid.cjs.entry.js +118 -0
  89. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +107 -0
  90. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +85 -0
  91. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +147 -0
  92. package/dist/cjs/rtk-stage.cjs.entry.js +43 -0
  93. package/dist/cjs/rtk-transcript.cjs.entry.js +58 -0
  94. package/dist/cjs/rtk-transcripts.cjs.entry.js +167 -0
  95. package/dist/cjs/rtk-ui-provider.cjs.entry.js +168 -0
  96. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +47 -0
  97. package/dist/cjs/scroll-c6404609.js +15 -0
  98. package/dist/cjs/sidebar-7189b8fd.js +50 -0
  99. package/dist/cjs/size-2a406e36.js +28 -0
  100. package/dist/cjs/string-a410fab6.js +64 -0
  101. package/dist/cjs/ui-store-81ede08e.js +1608 -0
  102. package/dist/collection/collection-manifest.json +149 -0
  103. package/dist/collection/components/rtk-ai/rtk-ai.css +69 -0
  104. package/dist/collection/components/rtk-ai/rtk-ai.js +292 -0
  105. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.css +8 -0
  106. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +257 -0
  107. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.css +139 -0
  108. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +221 -0
  109. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.css +102 -0
  110. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +292 -0
  111. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.css +118 -0
  112. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +308 -0
  113. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.css +46 -0
  114. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +324 -0
  115. package/dist/collection/components/rtk-avatar/rtk-avatar.css +117 -0
  116. package/dist/collection/components/rtk-avatar/rtk-avatar.js +202 -0
  117. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.css +272 -0
  118. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +509 -0
  119. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.css +269 -0
  120. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +305 -0
  121. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.css +17 -0
  122. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +273 -0
  123. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.css +379 -0
  124. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +481 -0
  125. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.css +111 -0
  126. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +198 -0
  127. package/dist/collection/components/rtk-button/rtk-button.css +185 -0
  128. package/dist/collection/components/rtk-button/rtk-button.js +198 -0
  129. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.css +146 -0
  130. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +263 -0
  131. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.css +22 -0
  132. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +350 -0
  133. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.css +17 -0
  134. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +289 -0
  135. package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.css +210 -0
  136. package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +287 -0
  137. package/dist/collection/components/rtk-channel-details/rtk-channel-details.css +93 -0
  138. package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +148 -0
  139. package/dist/collection/components/rtk-channel-header/rtk-channel-header.css +99 -0
  140. package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +255 -0
  141. package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.css +330 -0
  142. package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +283 -0
  143. package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.css +306 -0
  144. package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +341 -0
  145. package/dist/collection/components/rtk-chat/components/ChatHead.js +6 -0
  146. package/dist/collection/components/rtk-chat/rtk-chat.css +224 -0
  147. package/dist/collection/components/rtk-chat/rtk-chat.js +866 -0
  148. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.css +304 -0
  149. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +583 -0
  150. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.css +111 -0
  151. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +535 -0
  152. package/dist/collection/components/rtk-chat-message/rtk-chat-message.css +428 -0
  153. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +569 -0
  154. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.css +191 -0
  155. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +420 -0
  156. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.css +7 -0
  157. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +465 -0
  158. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.css +22 -0
  159. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +170 -0
  160. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.css +219 -0
  161. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +245 -0
  162. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.css +65 -0
  163. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +338 -0
  164. package/dist/collection/components/rtk-clock/rtk-clock.css +46 -0
  165. package/dist/collection/components/rtk-clock/rtk-clock.js +163 -0
  166. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.css +68 -0
  167. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +198 -0
  168. package/dist/collection/components/rtk-controlbar/rtk-controlbar.css +32 -0
  169. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +259 -0
  170. package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.css +188 -0
  171. package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +248 -0
  172. package/dist/collection/components/rtk-counter/rtk-counter.css +64 -0
  173. package/dist/collection/components/rtk-counter/rtk-counter.js +219 -0
  174. package/dist/collection/components/rtk-debugger/rtk-debugger.css +262 -0
  175. package/dist/collection/components/rtk-debugger/rtk-debugger.js +271 -0
  176. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.css +180 -0
  177. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +294 -0
  178. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.css +175 -0
  179. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +339 -0
  180. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.css +176 -0
  181. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +260 -0
  182. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.css +17 -0
  183. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +234 -0
  184. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.css +180 -0
  185. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +306 -0
  186. package/dist/collection/components/rtk-dialog/rtk-dialog.css +47 -0
  187. package/dist/collection/components/rtk-dialog/rtk-dialog.js +322 -0
  188. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.css +17 -0
  189. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +343 -0
  190. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.css +81 -0
  191. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +180 -0
  192. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.css +141 -0
  193. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +192 -0
  194. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.css +3 -0
  195. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +113 -0
  196. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.css +80 -0
  197. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +270 -0
  198. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.css +20 -0
  199. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +162 -0
  200. package/dist/collection/components/rtk-file-message/rtk-file-message.js +186 -0
  201. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.css +76 -0
  202. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +127 -0
  203. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.css +3 -0
  204. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +206 -0
  205. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.css +22 -0
  206. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +268 -0
  207. package/dist/collection/components/rtk-grid/rtk-grid.css +122 -0
  208. package/dist/collection/components/rtk-grid/rtk-grid.js +678 -0
  209. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.css +174 -0
  210. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +327 -0
  211. package/dist/collection/components/rtk-header/rtk-header.css +35 -0
  212. package/dist/collection/components/rtk-header/rtk-header.js +259 -0
  213. package/dist/collection/components/rtk-icon/rtk-icon.css +73 -0
  214. package/dist/collection/components/rtk-icon/rtk-icon.js +124 -0
  215. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.css +40 -0
  216. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +152 -0
  217. package/dist/collection/components/rtk-image-message/rtk-image-message.css +21 -0
  218. package/dist/collection/components/rtk-image-message/rtk-image-message.js +235 -0
  219. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.css +117 -0
  220. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +152 -0
  221. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.css +99 -0
  222. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +183 -0
  223. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.css +41 -0
  224. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +65 -0
  225. package/dist/collection/components/rtk-join-stage/rtk-join-stage.css +131 -0
  226. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +310 -0
  227. package/dist/collection/components/rtk-leave-button/rtk-leave-button.css +17 -0
  228. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +182 -0
  229. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.css +75 -0
  230. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +239 -0
  231. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.css +65 -0
  232. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +180 -0
  233. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.css +177 -0
  234. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +485 -0
  235. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.css +22 -0
  236. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +315 -0
  237. package/dist/collection/components/rtk-logo/rtk-logo.css +34 -0
  238. package/dist/collection/components/rtk-logo/rtk-logo.js +177 -0
  239. package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.css +44 -0
  240. package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +136 -0
  241. package/dist/collection/components/rtk-meeting/rtk-meeting.css +43 -0
  242. package/dist/collection/components/rtk-meeting/rtk-meeting.js +520 -0
  243. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.css +38 -0
  244. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +128 -0
  245. package/dist/collection/components/rtk-menu/rtk-menu.css +25 -0
  246. package/dist/collection/components/rtk-menu/rtk-menu.js +217 -0
  247. package/dist/collection/components/rtk-menu-item/rtk-menu-item.css +46 -0
  248. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +130 -0
  249. package/dist/collection/components/rtk-menu-list/rtk-menu-list.css +30 -0
  250. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +100 -0
  251. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.css +68 -0
  252. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +439 -0
  253. package/dist/collection/components/rtk-message-view/rtk-message-view.css +169 -0
  254. package/dist/collection/components/rtk-message-view/rtk-message-view.js +283 -0
  255. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.css +27 -0
  256. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +348 -0
  257. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.css +146 -0
  258. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +276 -0
  259. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.css +257 -0
  260. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +577 -0
  261. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.css +61 -0
  262. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +210 -0
  263. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.css +17 -0
  264. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +237 -0
  265. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.css +74 -0
  266. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +185 -0
  267. package/dist/collection/components/rtk-name-tag/rtk-name-tag.css +55 -0
  268. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +253 -0
  269. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.css +68 -0
  270. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +213 -0
  271. package/dist/collection/components/rtk-notification/rtk-notification.css +161 -0
  272. package/dist/collection/components/rtk-notification/rtk-notification.js +226 -0
  273. package/dist/collection/components/rtk-notifications/rtk-notifications.css +30 -0
  274. package/dist/collection/components/rtk-notifications/rtk-notifications.js +736 -0
  275. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.css +41 -0
  276. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +181 -0
  277. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +337 -0
  278. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +591 -0
  279. package/dist/collection/components/rtk-participant/rtk-participant.css +91 -0
  280. package/dist/collection/components/rtk-participant/rtk-participant.js +503 -0
  281. package/dist/collection/components/rtk-participant-count/rtk-participant-count.css +42 -0
  282. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +205 -0
  283. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.css +111 -0
  284. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +338 -0
  285. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.css +283 -0
  286. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +464 -0
  287. package/dist/collection/components/rtk-participants/rtk-participants.css +127 -0
  288. package/dist/collection/components/rtk-participants/rtk-participants.js +404 -0
  289. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.css +46 -0
  290. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +282 -0
  291. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.css +61 -0
  292. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +364 -0
  293. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.css +116 -0
  294. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +285 -0
  295. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.css +50 -0
  296. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +348 -0
  297. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.css +58 -0
  298. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +326 -0
  299. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.css +107 -0
  300. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +263 -0
  301. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.css +110 -0
  302. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +325 -0
  303. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.css +22 -0
  304. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +293 -0
  305. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.css +89 -0
  306. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +232 -0
  307. package/dist/collection/components/rtk-plugins/rtk-plugins.css +105 -0
  308. package/dist/collection/components/rtk-plugins/rtk-plugins.js +251 -0
  309. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.css +22 -0
  310. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +301 -0
  311. package/dist/collection/components/rtk-poll/rtk-poll.css +153 -0
  312. package/dist/collection/components/rtk-poll/rtk-poll.js +202 -0
  313. package/dist/collection/components/rtk-poll-form/rtk-poll-form.css +121 -0
  314. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +175 -0
  315. package/dist/collection/components/rtk-polls/rtk-polls.css +69 -0
  316. package/dist/collection/components/rtk-polls/rtk-polls.js +242 -0
  317. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.css +51 -0
  318. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +315 -0
  319. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.css +63 -0
  320. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +184 -0
  321. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.css +17 -0
  322. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +342 -0
  323. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.css +22 -0
  324. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +469 -0
  325. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +294 -0
  326. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +394 -0
  327. package/dist/collection/components/rtk-settings/rtk-settings.css +241 -0
  328. package/dist/collection/components/rtk-settings/rtk-settings.js +286 -0
  329. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.css +59 -0
  330. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +230 -0
  331. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.css +17 -0
  332. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +216 -0
  333. package/dist/collection/components/rtk-settings-video/rtk-settings-video.css +135 -0
  334. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +256 -0
  335. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.css +175 -0
  336. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +309 -0
  337. package/dist/collection/components/rtk-sidebar/rtk-sidebar.css +65 -0
  338. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +417 -0
  339. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.css +135 -0
  340. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +289 -0
  341. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.css +20 -0
  342. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +343 -0
  343. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.css +144 -0
  344. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +299 -0
  345. package/dist/collection/components/rtk-spinner/rtk-spinner.css +52 -0
  346. package/dist/collection/components/rtk-spinner/rtk-spinner.js +99 -0
  347. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.css +88 -0
  348. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +402 -0
  349. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.css +102 -0
  350. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +195 -0
  351. package/dist/collection/components/rtk-stage/rtk-stage.css +19 -0
  352. package/dist/collection/components/rtk-stage/rtk-stage.js +125 -0
  353. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.css +22 -0
  354. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +321 -0
  355. package/dist/collection/components/rtk-switch/rtk-switch.css +51 -0
  356. package/dist/collection/components/rtk-switch/rtk-switch.js +211 -0
  357. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.css +194 -0
  358. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +330 -0
  359. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.css +81 -0
  360. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +316 -0
  361. package/dist/collection/components/rtk-text-message/components/TextMessage.js +62 -0
  362. package/dist/collection/components/rtk-text-message/rtk-text-message.js +185 -0
  363. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.css +25 -0
  364. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +68 -0
  365. package/dist/collection/components/rtk-tooltip/rtk-tooltip.css +67 -0
  366. package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +349 -0
  367. package/dist/collection/components/rtk-transcript/rtk-transcript.css +96 -0
  368. package/dist/collection/components/rtk-transcript/rtk-transcript.js +140 -0
  369. package/dist/collection/components/rtk-transcripts/rtk-transcripts.css +32 -0
  370. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +281 -0
  371. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.css +5 -0
  372. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +374 -0
  373. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.css +61 -0
  374. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +191 -0
  375. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.css +4 -0
  376. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +264 -0
  377. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.css +45 -0
  378. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +148 -0
  379. package/dist/collection/exports.js +16 -0
  380. package/dist/collection/index.js +2 -0
  381. package/dist/collection/lib/addons/index.js +19 -0
  382. package/dist/collection/lib/audio.js +54 -0
  383. package/dist/collection/lib/builder/index.js +203 -0
  384. package/dist/collection/lib/default-ui-config.js +324 -0
  385. package/dist/collection/lib/grid.js +94 -0
  386. package/dist/collection/lib/icons/default-icon-pack.js +87 -0
  387. package/dist/collection/lib/icons/index.js +20 -0
  388. package/dist/collection/lib/lang/default-language.js +415 -0
  389. package/dist/collection/lib/lang/index.js +17 -0
  390. package/dist/collection/lib/notification.js +34 -0
  391. package/dist/collection/lib/render/index.js +97 -0
  392. package/dist/collection/lib/render/utils.js +115 -0
  393. package/dist/collection/lib/visualizer.js +42 -0
  394. package/dist/collection/theme/colors.js +130 -0
  395. package/dist/collection/theme/index.js +65 -0
  396. package/dist/collection/theme/presets/border.js +46 -0
  397. package/dist/collection/theme/presets/themes.js +35 -0
  398. package/dist/collection/theme/space.js +17 -0
  399. package/dist/collection/theme/tests/space.spec.js +17 -0
  400. package/dist/collection/types/floating-ui.js +1 -0
  401. package/dist/collection/types/props.js +1 -0
  402. package/dist/collection/types/rtk-ai.js +1 -0
  403. package/dist/collection/types/rtk-client.js +10 -0
  404. package/dist/collection/types/ui-config/config.js +35 -0
  405. package/dist/collection/types/ui-config/design-tokens.js +1 -0
  406. package/dist/collection/types/ui-config/index.js +1 -0
  407. package/dist/collection/types/ui-config/root.js +1 -0
  408. package/dist/collection/utils/assets.js +13 -0
  409. package/dist/collection/utils/breakout-rooms-manager.js +299 -0
  410. package/dist/collection/utils/breakout-rooms.js +69 -0
  411. package/dist/collection/utils/chat.js +198 -0
  412. package/dist/collection/utils/clone.js +7 -0
  413. package/dist/collection/utils/color.js +175 -0
  414. package/dist/collection/utils/config.js +359 -0
  415. package/dist/collection/utils/date.js +30 -0
  416. package/dist/collection/utils/debugger-utils.js +83 -0
  417. package/dist/collection/utils/file.js +54 -0
  418. package/dist/collection/utils/flags.js +24 -0
  419. package/dist/collection/utils/full-screen.js +48 -0
  420. package/dist/collection/utils/graceful-storage.js +18 -0
  421. package/dist/collection/utils/livestream.js +100 -0
  422. package/dist/collection/utils/notification.js +15 -0
  423. package/dist/collection/utils/provide-design-system.js +114 -0
  424. package/dist/collection/utils/scroll.js +11 -0
  425. package/dist/collection/utils/sidebar.js +42 -0
  426. package/dist/collection/utils/size.js +14 -0
  427. package/dist/collection/utils/stage.js +9 -0
  428. package/dist/collection/utils/string.js +56 -0
  429. package/dist/collection/utils/sync-with-store/index.js +21 -0
  430. package/dist/collection/utils/sync-with-store/ui-store.js +56 -0
  431. package/dist/collection/utils/time.js +9 -0
  432. package/dist/collection/utils/troubleshooter.js +469 -0
  433. package/dist/collection/utils/user-prefs.js +20 -0
  434. package/dist/components/index.d.ts +33 -0
  435. package/dist/components/index.js +246 -0
  436. package/dist/components/p-00905b54.js +108 -0
  437. package/dist/components/p-02f19345.js +50 -0
  438. package/dist/components/p-05d46a0e.js +307 -0
  439. package/dist/components/p-0752f2ba.js +13 -0
  440. package/dist/components/p-08020b3c.js +213 -0
  441. package/dist/components/p-0abe4b8a.js +200 -0
  442. package/dist/components/p-0b087be2.js +77 -0
  443. package/dist/components/p-0e02697c.js +85 -0
  444. package/dist/components/p-0e6f6af9.js +79 -0
  445. package/dist/components/p-0f77783d.js +951 -0
  446. package/dist/components/p-11a9a3ec.js +81 -0
  447. package/dist/components/p-132d39f6.js +131 -0
  448. package/dist/components/p-18164a2e.js +114 -0
  449. package/dist/components/p-190af711.js +125 -0
  450. package/dist/components/p-1b5e871d.js +199 -0
  451. package/dist/components/p-1ba98d57.js +628 -0
  452. package/dist/components/p-1edce9ef.js +68 -0
  453. package/dist/components/p-2134aa95.js +95 -0
  454. package/dist/components/p-2283539e.js +105 -0
  455. package/dist/components/p-24ac331b.js +83 -0
  456. package/dist/components/p-282cc869.js +128 -0
  457. package/dist/components/p-291cbe98.js +92 -0
  458. package/dist/components/p-2c3cda13.js +164 -0
  459. package/dist/components/p-2c95df3f.js +168 -0
  460. package/dist/components/p-2ca7a08a.js +95 -0
  461. package/dist/components/p-2f10ccec.js +93 -0
  462. package/dist/components/p-31964573.js +1892 -0
  463. package/dist/components/p-31a1dc4d.js +159 -0
  464. package/dist/components/p-3358d7dc.js +108 -0
  465. package/dist/components/p-338c7261.js +58 -0
  466. package/dist/components/p-34ee27d0.js +96 -0
  467. package/dist/components/p-3628bdcd.js +168 -0
  468. package/dist/components/p-382270d8.js +32 -0
  469. package/dist/components/p-39c19f58.js +103 -0
  470. package/dist/components/p-3d5ca4ac.js +156 -0
  471. package/dist/components/p-3d754c34.js +62 -0
  472. package/dist/components/p-3ed36ca2.js +161 -0
  473. package/dist/components/p-3f882e7c.js +299 -0
  474. package/dist/components/p-3fb24e88.js +264 -0
  475. package/dist/components/p-400d8f0d.js +85 -0
  476. package/dist/components/p-40b08033.js +86 -0
  477. package/dist/components/p-40b74b04.js +390 -0
  478. package/dist/components/p-43de959f.js +178 -0
  479. package/dist/components/p-46923b34.js +1409 -0
  480. package/dist/components/p-4ee52c16.js +37 -0
  481. package/dist/components/p-4f0299cf.js +155 -0
  482. package/dist/components/p-53d81684.js +194 -0
  483. package/dist/components/p-55910bec.js +116 -0
  484. package/dist/components/p-5cd5f7db.js +103 -0
  485. package/dist/components/p-60fdbd75.js +224 -0
  486. package/dist/components/p-62471047.js +204 -0
  487. package/dist/components/p-6a516f83.js +179 -0
  488. package/dist/components/p-736ab8a0.js +211 -0
  489. package/dist/components/p-74baedf6.js +309 -0
  490. package/dist/components/p-774b8b25.js +215 -0
  491. package/dist/components/p-7a0a4ea1.js +115 -0
  492. package/dist/components/p-7d3797ee.js +223 -0
  493. package/dist/components/p-80b25cac.js +305 -0
  494. package/dist/components/p-8149712f.js +105 -0
  495. package/dist/components/p-815a8bcc.js +97 -0
  496. package/dist/components/p-8198975c.js +124 -0
  497. package/dist/components/p-8302e30d.js +76 -0
  498. package/dist/components/p-838a4971.js +203 -0
  499. package/dist/components/p-8b197573.js +353 -0
  500. package/dist/components/p-8ec943fb.js +162 -0
  501. package/dist/components/p-8fd7ccbf.js +149 -0
  502. package/dist/components/p-92a1602c.js +64 -0
  503. package/dist/components/p-92e527ab.js +131 -0
  504. package/dist/components/p-96be234f.js +26 -0
  505. package/dist/components/p-96d5823f.js +57 -0
  506. package/dist/components/p-9bcf0d04.js +1544 -0
  507. package/dist/components/p-9fc565cf.js +57 -0
  508. package/dist/components/p-a08b5a59.js +329 -0
  509. package/dist/components/p-a262dd1a.js +227 -0
  510. package/dist/components/p-a2f4f9e3.js +67 -0
  511. package/dist/components/p-a53e3d25.js +316 -0
  512. package/dist/components/p-a5737efc.js +61 -0
  513. package/dist/components/p-a83ccdbd.js +40 -0
  514. package/dist/components/p-a96fd0a2.js +45 -0
  515. package/dist/components/p-ab98bb45.js +69 -0
  516. package/dist/components/p-afce90ce.js +150 -0
  517. package/dist/components/p-b13ddb7d.js +96 -0
  518. package/dist/components/p-b1f57d50.js +118 -0
  519. package/dist/components/p-b661e73e.js +24 -0
  520. package/dist/components/p-b7fe585f.js +134 -0
  521. package/dist/components/p-b9089444.js +119 -0
  522. package/dist/components/p-bcb91396.js +43 -0
  523. package/dist/components/p-bd20259b.js +63 -0
  524. package/dist/components/p-c15d924f.js +752 -0
  525. package/dist/components/p-c3592601.js +1641 -0
  526. package/dist/components/p-c746a8bd.js +357 -0
  527. package/dist/components/p-c9e399b4.js +29080 -0
  528. package/dist/components/p-cbdd7a99.js +542 -0
  529. package/dist/components/p-cf6253c5.js +127 -0
  530. package/dist/components/p-d80915fb.js +114 -0
  531. package/dist/components/p-de933b70.js +157 -0
  532. package/dist/components/p-dfd1dfed.js +101 -0
  533. package/dist/components/p-e36ef452.js +157 -0
  534. package/dist/components/p-e560b4b6.js +82 -0
  535. package/dist/components/p-e8385e2f.js +125 -0
  536. package/dist/components/p-e889cc60.js +95 -0
  537. package/dist/components/p-eae68017.js +107 -0
  538. package/dist/components/p-eb6e37e9.js +148 -0
  539. package/dist/components/p-ee449660.js +1178 -0
  540. package/dist/components/p-ee490919.js +148 -0
  541. package/dist/components/p-f0924403.js +120 -0
  542. package/dist/components/p-f1dd271e.js +182 -0
  543. package/dist/components/p-f47d4fe8.js +928 -0
  544. package/dist/components/p-febe3ebc.js +11 -0
  545. package/dist/components/p-ff033d49.js +153 -0
  546. package/dist/components/rtk-ai-toggle.d.ts +11 -0
  547. package/dist/components/rtk-ai-toggle.js +119 -0
  548. package/dist/components/rtk-ai-transcriptions.d.ts +11 -0
  549. package/dist/components/rtk-ai-transcriptions.js +6 -0
  550. package/dist/components/rtk-ai.d.ts +11 -0
  551. package/dist/components/rtk-ai.js +134 -0
  552. package/dist/components/rtk-audio-grid.d.ts +11 -0
  553. package/dist/components/rtk-audio-grid.js +145 -0
  554. package/dist/components/rtk-audio-tile.d.ts +11 -0
  555. package/dist/components/rtk-audio-tile.js +182 -0
  556. package/dist/components/rtk-audio-visualizer.d.ts +11 -0
  557. package/dist/components/rtk-audio-visualizer.js +6 -0
  558. package/dist/components/rtk-avatar.d.ts +11 -0
  559. package/dist/components/rtk-avatar.js +6 -0
  560. package/dist/components/rtk-breakout-room-manager.d.ts +11 -0
  561. package/dist/components/rtk-breakout-room-manager.js +6 -0
  562. package/dist/components/rtk-breakout-room-participants.d.ts +11 -0
  563. package/dist/components/rtk-breakout-room-participants.js +6 -0
  564. package/dist/components/rtk-breakout-rooms-manager.d.ts +11 -0
  565. package/dist/components/rtk-breakout-rooms-manager.js +6 -0
  566. package/dist/components/rtk-breakout-rooms-toggle.d.ts +11 -0
  567. package/dist/components/rtk-breakout-rooms-toggle.js +129 -0
  568. package/dist/components/rtk-broadcast-message-modal.d.ts +11 -0
  569. package/dist/components/rtk-broadcast-message-modal.js +6 -0
  570. package/dist/components/rtk-button.d.ts +11 -0
  571. package/dist/components/rtk-button.js +6 -0
  572. package/dist/components/rtk-camera-selector.d.ts +11 -0
  573. package/dist/components/rtk-camera-selector.js +6 -0
  574. package/dist/components/rtk-camera-toggle.d.ts +11 -0
  575. package/dist/components/rtk-camera-toggle.js +237 -0
  576. package/dist/components/rtk-caption-toggle.d.ts +11 -0
  577. package/dist/components/rtk-caption-toggle.js +129 -0
  578. package/dist/components/rtk-channel-creator.d.ts +11 -0
  579. package/dist/components/rtk-channel-creator.js +6 -0
  580. package/dist/components/rtk-channel-details.d.ts +11 -0
  581. package/dist/components/rtk-channel-details.js +6 -0
  582. package/dist/components/rtk-channel-header.d.ts +11 -0
  583. package/dist/components/rtk-channel-header.js +6 -0
  584. package/dist/components/rtk-channel-selector-ui.d.ts +11 -0
  585. package/dist/components/rtk-channel-selector-ui.js +194 -0
  586. package/dist/components/rtk-channel-selector-view.d.ts +11 -0
  587. package/dist/components/rtk-channel-selector-view.js +6 -0
  588. package/dist/components/rtk-chat-composer-ui.d.ts +11 -0
  589. package/dist/components/rtk-chat-composer-ui.js +383 -0
  590. package/dist/components/rtk-chat-composer-view.d.ts +11 -0
  591. package/dist/components/rtk-chat-composer-view.js +6 -0
  592. package/dist/components/rtk-chat-message.d.ts +11 -0
  593. package/dist/components/rtk-chat-message.js +6 -0
  594. package/dist/components/rtk-chat-messages-ui-paginated.d.ts +11 -0
  595. package/dist/components/rtk-chat-messages-ui-paginated.js +6 -0
  596. package/dist/components/rtk-chat-messages-ui.d.ts +11 -0
  597. package/dist/components/rtk-chat-messages-ui.js +6 -0
  598. package/dist/components/rtk-chat-search-results.d.ts +11 -0
  599. package/dist/components/rtk-chat-search-results.js +6 -0
  600. package/dist/components/rtk-chat-selector-ui.d.ts +11 -0
  601. package/dist/components/rtk-chat-selector-ui.js +108 -0
  602. package/dist/components/rtk-chat-toggle.d.ts +11 -0
  603. package/dist/components/rtk-chat-toggle.js +186 -0
  604. package/dist/components/rtk-chat.d.ts +11 -0
  605. package/dist/components/rtk-chat.js +6 -0
  606. package/dist/components/rtk-clock.d.ts +11 -0
  607. package/dist/components/rtk-clock.js +127 -0
  608. package/dist/components/rtk-confirmation-modal.d.ts +11 -0
  609. package/dist/components/rtk-confirmation-modal.js +6 -0
  610. package/dist/components/rtk-controlbar-button.d.ts +11 -0
  611. package/dist/components/rtk-controlbar-button.js +6 -0
  612. package/dist/components/rtk-controlbar.d.ts +11 -0
  613. package/dist/components/rtk-controlbar.js +91 -0
  614. package/dist/components/rtk-counter.d.ts +11 -0
  615. package/dist/components/rtk-counter.js +6 -0
  616. package/dist/components/rtk-debugger-audio.d.ts +11 -0
  617. package/dist/components/rtk-debugger-audio.js +6 -0
  618. package/dist/components/rtk-debugger-screenshare.d.ts +11 -0
  619. package/dist/components/rtk-debugger-screenshare.js +6 -0
  620. package/dist/components/rtk-debugger-system.d.ts +11 -0
  621. package/dist/components/rtk-debugger-system.js +6 -0
  622. package/dist/components/rtk-debugger-toggle.d.ts +11 -0
  623. package/dist/components/rtk-debugger-toggle.js +101 -0
  624. package/dist/components/rtk-debugger-video.d.ts +11 -0
  625. package/dist/components/rtk-debugger-video.js +6 -0
  626. package/dist/components/rtk-debugger.d.ts +11 -0
  627. package/dist/components/rtk-debugger.js +6 -0
  628. package/dist/components/rtk-dialog-manager.d.ts +11 -0
  629. package/dist/components/rtk-dialog-manager.js +6 -0
  630. package/dist/components/rtk-dialog.d.ts +11 -0
  631. package/dist/components/rtk-dialog.js +6 -0
  632. package/dist/components/rtk-draft-attachment-view.d.ts +11 -0
  633. package/dist/components/rtk-draft-attachment-view.js +6 -0
  634. package/dist/components/rtk-emoji-picker-button.d.ts +11 -0
  635. package/dist/components/rtk-emoji-picker-button.js +6 -0
  636. package/dist/components/rtk-emoji-picker.d.ts +11 -0
  637. package/dist/components/rtk-emoji-picker.js +6 -0
  638. package/dist/components/rtk-ended-screen.d.ts +11 -0
  639. package/dist/components/rtk-ended-screen.js +148 -0
  640. package/dist/components/rtk-file-dropzone.d.ts +11 -0
  641. package/dist/components/rtk-file-dropzone.js +87 -0
  642. package/dist/components/rtk-file-message-view.d.ts +11 -0
  643. package/dist/components/rtk-file-message-view.js +6 -0
  644. package/dist/components/rtk-file-message.d.ts +11 -0
  645. package/dist/components/rtk-file-message.js +6 -0
  646. package/dist/components/rtk-file-picker-button.d.ts +11 -0
  647. package/dist/components/rtk-file-picker-button.js +6 -0
  648. package/dist/components/rtk-fullscreen-toggle.d.ts +11 -0
  649. package/dist/components/rtk-fullscreen-toggle.js +6 -0
  650. package/dist/components/rtk-grid-pagination.d.ts +11 -0
  651. package/dist/components/rtk-grid-pagination.js +207 -0
  652. package/dist/components/rtk-grid.d.ts +11 -0
  653. package/dist/components/rtk-grid.js +454 -0
  654. package/dist/components/rtk-header.d.ts +11 -0
  655. package/dist/components/rtk-header.js +91 -0
  656. package/dist/components/rtk-icon.d.ts +11 -0
  657. package/dist/components/rtk-icon.js +6 -0
  658. package/dist/components/rtk-idle-screen.d.ts +11 -0
  659. package/dist/components/rtk-idle-screen.js +86 -0
  660. package/dist/components/rtk-image-message-view.d.ts +11 -0
  661. package/dist/components/rtk-image-message-view.js +6 -0
  662. package/dist/components/rtk-image-message.d.ts +11 -0
  663. package/dist/components/rtk-image-message.js +6 -0
  664. package/dist/components/rtk-image-viewer.d.ts +11 -0
  665. package/dist/components/rtk-image-viewer.js +94 -0
  666. package/dist/components/rtk-information-tooltip.d.ts +11 -0
  667. package/dist/components/rtk-information-tooltip.js +61 -0
  668. package/dist/components/rtk-join-stage.d.ts +11 -0
  669. package/dist/components/rtk-join-stage.js +6 -0
  670. package/dist/components/rtk-leave-button.d.ts +11 -0
  671. package/dist/components/rtk-leave-button.js +90 -0
  672. package/dist/components/rtk-leave-meeting.d.ts +11 -0
  673. package/dist/components/rtk-leave-meeting.js +6 -0
  674. package/dist/components/rtk-livestream-indicator.d.ts +11 -0
  675. package/dist/components/rtk-livestream-indicator.js +6 -0
  676. package/dist/components/rtk-livestream-player.d.ts +11 -0
  677. package/dist/components/rtk-livestream-player.js +6 -0
  678. package/dist/components/rtk-livestream-toggle.d.ts +11 -0
  679. package/dist/components/rtk-livestream-toggle.js +184 -0
  680. package/dist/components/rtk-logo.d.ts +11 -0
  681. package/dist/components/rtk-logo.js +6 -0
  682. package/dist/components/rtk-markdown-view.d.ts +11 -0
  683. package/dist/components/rtk-markdown-view.js +6 -0
  684. package/dist/components/rtk-meeting-title.d.ts +11 -0
  685. package/dist/components/rtk-meeting-title.js +74 -0
  686. package/dist/components/rtk-meeting.d.ts +11 -0
  687. package/dist/components/rtk-meeting.js +566 -0
  688. package/dist/components/rtk-menu-item.d.ts +11 -0
  689. package/dist/components/rtk-menu-item.js +6 -0
  690. package/dist/components/rtk-menu-list.d.ts +11 -0
  691. package/dist/components/rtk-menu-list.js +6 -0
  692. package/dist/components/rtk-menu.d.ts +11 -0
  693. package/dist/components/rtk-menu.js +6 -0
  694. package/dist/components/rtk-message-list-view.d.ts +11 -0
  695. package/dist/components/rtk-message-list-view.js +324 -0
  696. package/dist/components/rtk-message-view.d.ts +11 -0
  697. package/dist/components/rtk-message-view.js +6 -0
  698. package/dist/components/rtk-mic-toggle.d.ts +11 -0
  699. package/dist/components/rtk-mic-toggle.js +235 -0
  700. package/dist/components/rtk-microphone-selector.d.ts +11 -0
  701. package/dist/components/rtk-microphone-selector.js +6 -0
  702. package/dist/components/rtk-mixed-grid.d.ts +11 -0
  703. package/dist/components/rtk-mixed-grid.js +298 -0
  704. package/dist/components/rtk-more-toggle.d.ts +11 -0
  705. package/dist/components/rtk-more-toggle.js +115 -0
  706. package/dist/components/rtk-mute-all-button.d.ts +11 -0
  707. package/dist/components/rtk-mute-all-button.js +128 -0
  708. package/dist/components/rtk-mute-all-confirmation.d.ts +11 -0
  709. package/dist/components/rtk-mute-all-confirmation.js +6 -0
  710. package/dist/components/rtk-name-tag.d.ts +11 -0
  711. package/dist/components/rtk-name-tag.js +6 -0
  712. package/dist/components/rtk-network-indicator.d.ts +11 -0
  713. package/dist/components/rtk-network-indicator.js +117 -0
  714. package/dist/components/rtk-notification.d.ts +11 -0
  715. package/dist/components/rtk-notification.js +6 -0
  716. package/dist/components/rtk-notifications.d.ts +11 -0
  717. package/dist/components/rtk-notifications.js +6 -0
  718. package/dist/components/rtk-overlay-modal.d.ts +11 -0
  719. package/dist/components/rtk-overlay-modal.js +6 -0
  720. package/dist/components/rtk-paginated-list.d.ts +11 -0
  721. package/dist/components/rtk-paginated-list.js +6 -0
  722. package/dist/components/rtk-participant-count.d.ts +11 -0
  723. package/dist/components/rtk-participant-count.js +121 -0
  724. package/dist/components/rtk-participant-setup.d.ts +11 -0
  725. package/dist/components/rtk-participant-setup.js +149 -0
  726. package/dist/components/rtk-participant-tile.d.ts +11 -0
  727. package/dist/components/rtk-participant-tile.js +6 -0
  728. package/dist/components/rtk-participant.d.ts +11 -0
  729. package/dist/components/rtk-participant.js +6 -0
  730. package/dist/components/rtk-participants-audio.d.ts +11 -0
  731. package/dist/components/rtk-participants-audio.js +248 -0
  732. package/dist/components/rtk-participants-stage-list.d.ts +11 -0
  733. package/dist/components/rtk-participants-stage-list.js +6 -0
  734. package/dist/components/rtk-participants-stage-queue.d.ts +11 -0
  735. package/dist/components/rtk-participants-stage-queue.js +6 -0
  736. package/dist/components/rtk-participants-toggle.d.ts +11 -0
  737. package/dist/components/rtk-participants-toggle.js +199 -0
  738. package/dist/components/rtk-participants-viewer-list.d.ts +11 -0
  739. package/dist/components/rtk-participants-viewer-list.js +6 -0
  740. package/dist/components/rtk-participants-waiting-list.d.ts +11 -0
  741. package/dist/components/rtk-participants-waiting-list.js +6 -0
  742. package/dist/components/rtk-participants.d.ts +11 -0
  743. package/dist/components/rtk-participants.js +304 -0
  744. package/dist/components/rtk-permissions-message.d.ts +11 -0
  745. package/dist/components/rtk-permissions-message.js +6 -0
  746. package/dist/components/rtk-pip-toggle.d.ts +11 -0
  747. package/dist/components/rtk-pip-toggle.js +133 -0
  748. package/dist/components/rtk-plugin-main.d.ts +11 -0
  749. package/dist/components/rtk-plugin-main.js +6 -0
  750. package/dist/components/rtk-plugins-toggle.d.ts +11 -0
  751. package/dist/components/rtk-plugins-toggle.js +152 -0
  752. package/dist/components/rtk-plugins.d.ts +11 -0
  753. package/dist/components/rtk-plugins.js +6 -0
  754. package/dist/components/rtk-poll-form.d.ts +11 -0
  755. package/dist/components/rtk-poll-form.js +6 -0
  756. package/dist/components/rtk-poll.d.ts +11 -0
  757. package/dist/components/rtk-poll.js +6 -0
  758. package/dist/components/rtk-polls-toggle.d.ts +11 -0
  759. package/dist/components/rtk-polls-toggle.js +164 -0
  760. package/dist/components/rtk-polls.d.ts +11 -0
  761. package/dist/components/rtk-polls.js +6 -0
  762. package/dist/components/rtk-recording-indicator.d.ts +11 -0
  763. package/dist/components/rtk-recording-indicator.js +99 -0
  764. package/dist/components/rtk-recording-toggle.d.ts +11 -0
  765. package/dist/components/rtk-recording-toggle.js +206 -0
  766. package/dist/components/rtk-screen-share-toggle.d.ts +11 -0
  767. package/dist/components/rtk-screen-share-toggle.js +320 -0
  768. package/dist/components/rtk-screenshare-view.d.ts +11 -0
  769. package/dist/components/rtk-screenshare-view.js +197 -0
  770. package/dist/components/rtk-settings-audio.d.ts +11 -0
  771. package/dist/components/rtk-settings-audio.js +6 -0
  772. package/dist/components/rtk-settings-toggle.d.ts +11 -0
  773. package/dist/components/rtk-settings-toggle.js +96 -0
  774. package/dist/components/rtk-settings-video.d.ts +11 -0
  775. package/dist/components/rtk-settings-video.js +6 -0
  776. package/dist/components/rtk-settings.d.ts +11 -0
  777. package/dist/components/rtk-settings.js +211 -0
  778. package/dist/components/rtk-setup-screen.d.ts +11 -0
  779. package/dist/components/rtk-setup-screen.js +186 -0
  780. package/dist/components/rtk-sidebar-ui.d.ts +11 -0
  781. package/dist/components/rtk-sidebar-ui.js +6 -0
  782. package/dist/components/rtk-sidebar.d.ts +11 -0
  783. package/dist/components/rtk-sidebar.js +231 -0
  784. package/dist/components/rtk-simple-grid.d.ts +11 -0
  785. package/dist/components/rtk-simple-grid.js +147 -0
  786. package/dist/components/rtk-speaker-selector.d.ts +11 -0
  787. package/dist/components/rtk-speaker-selector.js +6 -0
  788. package/dist/components/rtk-spinner.d.ts +11 -0
  789. package/dist/components/rtk-spinner.js +6 -0
  790. package/dist/components/rtk-spotlight-grid.d.ts +11 -0
  791. package/dist/components/rtk-spotlight-grid.js +135 -0
  792. package/dist/components/rtk-spotlight-indicator.d.ts +11 -0
  793. package/dist/components/rtk-spotlight-indicator.js +6 -0
  794. package/dist/components/rtk-stage-toggle.d.ts +11 -0
  795. package/dist/components/rtk-stage-toggle.js +198 -0
  796. package/dist/components/rtk-stage.d.ts +11 -0
  797. package/dist/components/rtk-stage.js +61 -0
  798. package/dist/components/rtk-switch.d.ts +11 -0
  799. package/dist/components/rtk-switch.js +6 -0
  800. package/dist/components/rtk-tab-bar.d.ts +11 -0
  801. package/dist/components/rtk-tab-bar.js +6 -0
  802. package/dist/components/rtk-text-composer-view.d.ts +11 -0
  803. package/dist/components/rtk-text-composer-view.js +6 -0
  804. package/dist/components/rtk-text-message-view.d.ts +11 -0
  805. package/dist/components/rtk-text-message-view.js +6 -0
  806. package/dist/components/rtk-text-message.d.ts +11 -0
  807. package/dist/components/rtk-text-message.js +6 -0
  808. package/dist/components/rtk-tooltip.d.ts +11 -0
  809. package/dist/components/rtk-tooltip.js +6 -0
  810. package/dist/components/rtk-transcript.d.ts +11 -0
  811. package/dist/components/rtk-transcript.js +6 -0
  812. package/dist/components/rtk-transcripts.d.ts +11 -0
  813. package/dist/components/rtk-transcripts.js +197 -0
  814. package/dist/components/rtk-ui-provider.d.ts +11 -0
  815. package/dist/components/rtk-ui-provider.js +195 -0
  816. package/dist/components/rtk-viewer-count.d.ts +11 -0
  817. package/dist/components/rtk-viewer-count.js +6 -0
  818. package/dist/components/rtk-virtualized-participant-list.d.ts +11 -0
  819. package/dist/components/rtk-virtualized-participant-list.js +6 -0
  820. package/dist/components/rtk-waiting-screen.d.ts +11 -0
  821. package/dist/components/rtk-waiting-screen.js +74 -0
  822. package/dist/docs/docs-components.d.ts +443 -0
  823. package/dist/docs/docs-components.json +239263 -0
  824. package/dist/docs/docs-vscode.json +4429 -0
  825. package/dist/esm/ChatHead-cf7a7e22.js +41 -0
  826. package/dist/esm/ResizeObserver.es-02979d4e.js +928 -0
  827. package/dist/esm/TextMessage-276a0abf.js +67 -0
  828. package/dist/esm/app-globals-0f993ce5.js +3 -0
  829. package/dist/esm/chat-d85cc211.js +200 -0
  830. package/dist/esm/clone-acd4af50.js +752 -0
  831. package/dist/esm/config-59d761c0.js +1178 -0
  832. package/dist/esm/debounce-0169a54d.js +542 -0
  833. package/dist/esm/debounce-ea0579b2.js +329 -0
  834. package/dist/esm/file-1d408324.js +57 -0
  835. package/dist/esm/floating-ui.dom.esm-cf1488a2.js +1892 -0
  836. package/dist/esm/full-screen-1f58c594.js +50 -0
  837. package/dist/esm/grid-a3ca5a3e.js +96 -0
  838. package/dist/esm/hark-6327d91e.js +299 -0
  839. package/dist/esm/index-7c11af40.js +24 -0
  840. package/dist/esm/index-c1fb98bb.js +2158 -0
  841. package/dist/esm/index-d31a2e33.js +224 -0
  842. package/dist/esm/index.js +248 -0
  843. package/dist/esm/isObjectLike-773b9473.js +164 -0
  844. package/dist/esm/keysIn-310f65c1.js +1409 -0
  845. package/dist/esm/loader.js +56260 -0
  846. package/dist/esm/notification-c6d0d98f.js +37 -0
  847. package/dist/esm/realtimekit-ui.js +20 -0
  848. package/dist/esm/rtk-ai-toggle.entry.js +72 -0
  849. package/dist/esm/rtk-ai-transcriptions.entry.js +134 -0
  850. package/dist/esm/rtk-ai.entry.js +87 -0
  851. package/dist/esm/rtk-audio-grid.entry.js +112 -0
  852. package/dist/esm/rtk-audio-tile.entry.js +126 -0
  853. package/dist/esm/rtk-audio-visualizer_4.entry.js +494 -0
  854. package/dist/esm/rtk-avatar_54.entry.js +6320 -0
  855. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +82 -0
  856. package/dist/esm/rtk-camera-selector_2.entry.js +276 -0
  857. package/dist/esm/rtk-camera-toggle.entry.js +182 -0
  858. package/dist/esm/rtk-caption-toggle.entry.js +80 -0
  859. package/dist/esm/rtk-channel-selector-ui.entry.js +143 -0
  860. package/dist/esm/rtk-chat-composer-ui.entry.js +311 -0
  861. package/dist/esm/rtk-chat-selector-ui.entry.js +74 -0
  862. package/dist/esm/rtk-chat-toggle.entry.js +134 -0
  863. package/dist/esm/rtk-clock.entry.js +94 -0
  864. package/dist/esm/rtk-controlbar-button.entry.js +45 -0
  865. package/dist/esm/rtk-controlbar.entry.js +62 -0
  866. package/dist/esm/rtk-debugger-toggle.entry.js +57 -0
  867. package/dist/esm/rtk-ended-screen.entry.js +105 -0
  868. package/dist/esm/rtk-file-dropzone.entry.js +56 -0
  869. package/dist/esm/rtk-fullscreen-toggle.entry.js +82 -0
  870. package/dist/esm/rtk-grid-pagination.entry.js +155 -0
  871. package/dist/esm/rtk-grid.entry.js +358 -0
  872. package/dist/esm/rtk-header.entry.js +62 -0
  873. package/dist/esm/rtk-idle-screen.entry.js +43 -0
  874. package/dist/esm/rtk-image-viewer.entry.js +58 -0
  875. package/dist/esm/rtk-information-tooltip.entry.js +33 -0
  876. package/dist/esm/rtk-leave-button.entry.js +48 -0
  877. package/dist/esm/rtk-livestream-indicator_3.entry.js +29142 -0
  878. package/dist/esm/rtk-livestream-toggle.entry.js +138 -0
  879. package/dist/esm/rtk-meeting-title.entry.js +45 -0
  880. package/dist/esm/rtk-message-list-view.entry.js +281 -0
  881. package/dist/esm/rtk-mic-toggle.entry.js +180 -0
  882. package/dist/esm/rtk-mixed-grid.entry.js +222 -0
  883. package/dist/esm/rtk-more-toggle.entry.js +73 -0
  884. package/dist/esm/rtk-mute-all-button.entry.js +75 -0
  885. package/dist/esm/rtk-name-tag.entry.js +68 -0
  886. package/dist/esm/rtk-network-indicator.entry.js +82 -0
  887. package/dist/esm/rtk-participant-count.entry.js +87 -0
  888. package/dist/esm/rtk-participant-setup.entry.js +114 -0
  889. package/dist/esm/rtk-participant_2.entry.js +414 -0
  890. package/dist/esm/rtk-participants-audio.entry.js +203 -0
  891. package/dist/esm/rtk-participants-stage-list_4.entry.js +459 -0
  892. package/dist/esm/rtk-participants-toggle.entry.js +146 -0
  893. package/dist/esm/rtk-participants.entry.js +186 -0
  894. package/dist/esm/rtk-pip-toggle.entry.js +84 -0
  895. package/dist/esm/rtk-plugin-main_2.entry.js +191 -0
  896. package/dist/esm/rtk-plugins-toggle.entry.js +102 -0
  897. package/dist/esm/rtk-plugins_2.entry.js +176 -0
  898. package/dist/esm/rtk-poll_2.entry.js +137 -0
  899. package/dist/esm/rtk-polls-toggle.entry.js +113 -0
  900. package/dist/esm/rtk-recording-indicator.entry.js +66 -0
  901. package/dist/esm/rtk-recording-toggle.entry.js +158 -0
  902. package/dist/esm/rtk-screen-share-toggle.entry.js +261 -0
  903. package/dist/esm/rtk-screenshare-view.entry.js +145 -0
  904. package/dist/esm/rtk-settings-audio_2.entry.js +145 -0
  905. package/dist/esm/rtk-settings-toggle.entry.js +53 -0
  906. package/dist/esm/rtk-settings.entry.js +120 -0
  907. package/dist/esm/rtk-setup-screen.entry.js +116 -0
  908. package/dist/esm/rtk-sidebar-ui.entry.js +76 -0
  909. package/dist/esm/rtk-sidebar.entry.js +147 -0
  910. package/dist/esm/rtk-simple-grid.entry.js +114 -0
  911. package/dist/esm/rtk-spotlight-grid.entry.js +103 -0
  912. package/dist/esm/rtk-spotlight-indicator.entry.js +81 -0
  913. package/dist/esm/rtk-stage-toggle.entry.js +143 -0
  914. package/dist/esm/rtk-stage.entry.js +39 -0
  915. package/dist/esm/rtk-transcript.entry.js +54 -0
  916. package/dist/esm/rtk-transcripts.entry.js +163 -0
  917. package/dist/esm/rtk-ui-provider.entry.js +164 -0
  918. package/dist/esm/rtk-waiting-screen.entry.js +43 -0
  919. package/dist/esm/scroll-2d8e810c.js +13 -0
  920. package/dist/esm/sidebar-5df37ae6.js +45 -0
  921. package/dist/esm/size-505ade24.js +26 -0
  922. package/dist/esm/string-ed1380fb.js +58 -0
  923. package/dist/esm/ui-store-9e11a7e4.js +1582 -0
  924. package/dist/index.cjs.js +1 -0
  925. package/dist/index.js +1 -0
  926. package/dist/realtimekit-ui/index.esm.js +1 -0
  927. package/dist/realtimekit-ui/p-02f19345.js +1 -0
  928. package/dist/realtimekit-ui/p-03f59c3d.entry.js +1 -0
  929. package/dist/realtimekit-ui/p-0752f2ba.js +1 -0
  930. package/dist/realtimekit-ui/p-08bcc52f.js +1 -0
  931. package/dist/realtimekit-ui/p-096b684e.entry.js +1 -0
  932. package/dist/realtimekit-ui/p-0b1fabf5.js +1 -0
  933. package/dist/realtimekit-ui/p-0ee570cd.js +2 -0
  934. package/dist/realtimekit-ui/p-0fbab69a.entry.js +1 -0
  935. package/dist/realtimekit-ui/p-10d038f4.entry.js +1 -0
  936. package/dist/realtimekit-ui/p-135fecaf.entry.js +1 -0
  937. package/dist/realtimekit-ui/p-1489ae26.entry.js +1 -0
  938. package/dist/realtimekit-ui/p-16951364.entry.js +1 -0
  939. package/dist/realtimekit-ui/p-1d66185e.entry.js +1 -0
  940. package/dist/realtimekit-ui/p-1e624154.entry.js +1 -0
  941. package/dist/realtimekit-ui/p-1fdd6794.entry.js +1 -0
  942. package/dist/realtimekit-ui/p-21cbb4c2.entry.js +1 -0
  943. package/dist/realtimekit-ui/p-241230d3.entry.js +1 -0
  944. package/dist/realtimekit-ui/p-27478c0c.js +1 -0
  945. package/dist/realtimekit-ui/p-2c3cda13.js +1 -0
  946. package/dist/realtimekit-ui/p-300dc0f3.entry.js +1 -0
  947. package/dist/realtimekit-ui/p-31964573.js +1 -0
  948. package/dist/realtimekit-ui/p-338c7261.js +1 -0
  949. package/dist/realtimekit-ui/p-376ac678.entry.js +1 -0
  950. package/dist/realtimekit-ui/p-3b604624.entry.js +1 -0
  951. package/dist/realtimekit-ui/p-3ba364bd.entry.js +1 -0
  952. package/dist/realtimekit-ui/p-3e0b8db7.entry.js +1 -0
  953. package/dist/realtimekit-ui/p-3f42b7a8.entry.js +1 -0
  954. package/dist/realtimekit-ui/p-3f882e7c.js +1 -0
  955. package/dist/realtimekit-ui/p-41382f52.js +1 -0
  956. package/dist/realtimekit-ui/p-454f1abe.entry.js +1 -0
  957. package/dist/realtimekit-ui/p-46923b34.js +1 -0
  958. package/dist/realtimekit-ui/p-473e3bff.entry.js +1 -0
  959. package/dist/realtimekit-ui/p-48b31e6c.entry.js +1 -0
  960. package/dist/realtimekit-ui/p-4ad4a43b.js +1 -0
  961. package/dist/realtimekit-ui/p-4c04f719.entry.js +1 -0
  962. package/dist/realtimekit-ui/p-4e0ceba3.entry.js +1 -0
  963. package/dist/realtimekit-ui/p-538fba61.entry.js +1 -0
  964. package/dist/realtimekit-ui/p-56dace60.entry.js +1 -0
  965. package/dist/realtimekit-ui/p-5d060b1e.entry.js +1 -0
  966. package/dist/realtimekit-ui/p-5d4e5a90.entry.js +1 -0
  967. package/dist/realtimekit-ui/p-60fd7733.entry.js +1 -0
  968. package/dist/realtimekit-ui/p-61f5c8a5.entry.js +1 -0
  969. package/dist/realtimekit-ui/p-64021a4b.entry.js +1 -0
  970. package/dist/realtimekit-ui/p-67a64842.entry.js +1 -0
  971. package/dist/realtimekit-ui/p-6c828edd.entry.js +1 -0
  972. package/dist/realtimekit-ui/p-6d9cd1bc.entry.js +1 -0
  973. package/dist/realtimekit-ui/p-705df137.entry.js +1 -0
  974. package/dist/realtimekit-ui/p-70973f56.entry.js +1 -0
  975. package/dist/realtimekit-ui/p-70e6c27d.entry.js +1 -0
  976. package/dist/realtimekit-ui/p-7463e3d7.entry.js +1 -0
  977. package/dist/realtimekit-ui/p-74828b25.entry.js +1 -0
  978. package/dist/realtimekit-ui/p-74f3ec2d.entry.js +1 -0
  979. package/dist/realtimekit-ui/p-7be381d1.entry.js +1 -0
  980. package/dist/realtimekit-ui/p-7df5df90.entry.js +1 -0
  981. package/dist/realtimekit-ui/p-7f175a9d.entry.js +1 -0
  982. package/dist/realtimekit-ui/p-80ad2db7.entry.js +1 -0
  983. package/dist/realtimekit-ui/p-845a7826.entry.js +1 -0
  984. package/dist/realtimekit-ui/p-87fe69f0.entry.js +1 -0
  985. package/dist/realtimekit-ui/p-8b34bfb4.entry.js +1 -0
  986. package/dist/realtimekit-ui/p-9170059f.entry.js +1 -0
  987. package/dist/realtimekit-ui/p-936d63a2.entry.js +1 -0
  988. package/dist/realtimekit-ui/p-93e6efcb.entry.js +1 -0
  989. package/dist/realtimekit-ui/p-93f49750.entry.js +1 -0
  990. package/dist/realtimekit-ui/p-96a11481.entry.js +1 -0
  991. package/dist/realtimekit-ui/p-96be234f.js +1 -0
  992. package/dist/realtimekit-ui/p-98366449.entry.js +1 -0
  993. package/dist/realtimekit-ui/p-9c733fd3.js +1 -0
  994. package/dist/realtimekit-ui/p-9f6d4fd1.entry.js +1 -0
  995. package/dist/realtimekit-ui/p-9fc565cf.js +1 -0
  996. package/dist/realtimekit-ui/p-a0652de1.entry.js +1 -0
  997. package/dist/realtimekit-ui/p-a08b5a59.js +1 -0
  998. package/dist/realtimekit-ui/p-a85361b3.entry.js +1 -0
  999. package/dist/realtimekit-ui/p-aa62ab59.js +1 -0
  1000. package/dist/realtimekit-ui/p-ac306160.entry.js +1 -0
  1001. package/dist/realtimekit-ui/p-b13ddb7d.js +1 -0
  1002. package/dist/realtimekit-ui/p-b241c54b.entry.js +1 -0
  1003. package/dist/realtimekit-ui/p-b4eafb55.entry.js +1 -0
  1004. package/dist/realtimekit-ui/p-b5486fed.entry.js +1 -0
  1005. package/dist/realtimekit-ui/p-b748755c.entry.js +1 -0
  1006. package/dist/realtimekit-ui/p-b797c190.entry.js +1 -0
  1007. package/dist/realtimekit-ui/p-b7bb07db.entry.js +1 -0
  1008. package/dist/realtimekit-ui/p-bb3beb04.entry.js +1 -0
  1009. package/dist/realtimekit-ui/p-c15d924f.js +1 -0
  1010. package/dist/realtimekit-ui/p-c3dc1858.entry.js +1 -0
  1011. package/dist/realtimekit-ui/p-c8eaa707.js +1 -0
  1012. package/dist/realtimekit-ui/p-cbdd7a99.js +1 -0
  1013. package/dist/realtimekit-ui/p-cf98e0e6.entry.js +1 -0
  1014. package/dist/realtimekit-ui/p-d2d6cd44.entry.js +1 -0
  1015. package/dist/realtimekit-ui/p-ddd9ae08.entry.js +1 -0
  1016. package/dist/realtimekit-ui/p-e1255160.js +1 -0
  1017. package/dist/realtimekit-ui/p-e52c2a9c.entry.js +1 -0
  1018. package/dist/realtimekit-ui/p-e6377f44.entry.js +1 -0
  1019. package/dist/realtimekit-ui/p-e687f3c1.entry.js +1 -0
  1020. package/dist/realtimekit-ui/p-ebc9cc63.entry.js +1 -0
  1021. package/dist/realtimekit-ui/p-edee9b57.js +1 -0
  1022. package/dist/realtimekit-ui/p-f47d4fe8.js +1 -0
  1023. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -0
  1024. package/dist/types/components/rtk-ai/rtk-ai.d.ts +31 -0
  1025. package/dist/types/components/rtk-ai-toggle/rtk-ai-toggle.d.ts +26 -0
  1026. package/dist/types/components/rtk-ai-transcriptions/rtk-ai-transcriptions.d.ts +26 -0
  1027. package/dist/types/components/rtk-audio-grid/rtk-audio-grid.d.ts +29 -0
  1028. package/dist/types/components/rtk-audio-tile/rtk-audio-tile.d.ts +33 -0
  1029. package/dist/types/components/rtk-audio-visualizer/rtk-audio-visualizer.d.ts +42 -0
  1030. package/dist/types/components/rtk-avatar/rtk-avatar.d.ts +26 -0
  1031. package/dist/types/components/rtk-breakout-room-manager/rtk-breakout-room-manager.d.ts +70 -0
  1032. package/dist/types/components/rtk-breakout-room-participants/rtk-breakout-room-participants.d.ts +46 -0
  1033. package/dist/types/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.d.ts +34 -0
  1034. package/dist/types/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.d.ts +82 -0
  1035. package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +26 -0
  1036. package/dist/types/components/rtk-button/rtk-button.d.ts +25 -0
  1037. package/dist/types/components/rtk-camera-selector/rtk-camera-selector.d.ts +40 -0
  1038. package/dist/types/components/rtk-camera-toggle/rtk-camera-toggle.d.ts +39 -0
  1039. package/dist/types/components/rtk-caption-toggle/rtk-caption-toggle.d.ts +30 -0
  1040. package/dist/types/components/rtk-channel-creator/rtk-channel-creator.d.ts +34 -0
  1041. package/dist/types/components/rtk-channel-details/rtk-channel-details.d.ts +15 -0
  1042. package/dist/types/components/rtk-channel-header/rtk-channel-header.d.ts +31 -0
  1043. package/dist/types/components/rtk-channel-selector-ui/rtk-channel-selector-ui.d.ts +32 -0
  1044. package/dist/types/components/rtk-channel-selector-view/rtk-channel-selector-view.d.ts +62 -0
  1045. package/dist/types/components/rtk-chat/components/ChatHead.d.ts +8 -0
  1046. package/dist/types/components/rtk-chat/rtk-chat.d.ts +122 -0
  1047. package/dist/types/components/rtk-chat-composer-ui/rtk-chat-composer-ui.d.ts +84 -0
  1048. package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +73 -0
  1049. package/dist/types/components/rtk-chat-message/rtk-chat-message.d.ts +67 -0
  1050. package/dist/types/components/rtk-chat-messages-ui/rtk-chat-messages-ui.d.ts +46 -0
  1051. package/dist/types/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.d.ts +61 -0
  1052. package/dist/types/components/rtk-chat-search-results/rtk-chat-search-results.d.ts +18 -0
  1053. package/dist/types/components/rtk-chat-selector-ui/rtk-chat-selector-ui.d.ts +29 -0
  1054. package/dist/types/components/rtk-chat-toggle/rtk-chat-toggle.d.ts +50 -0
  1055. package/dist/types/components/rtk-clock/rtk-clock.d.ts +23 -0
  1056. package/dist/types/components/rtk-confirmation-modal/rtk-confirmation-modal.d.ts +27 -0
  1057. package/dist/types/components/rtk-controlbar/rtk-controlbar.d.ts +28 -0
  1058. package/dist/types/components/rtk-controlbar-button/rtk-controlbar-button.d.ts +30 -0
  1059. package/dist/types/components/rtk-counter/rtk-counter.d.ts +27 -0
  1060. package/dist/types/components/rtk-debugger/rtk-debugger.d.ts +34 -0
  1061. package/dist/types/components/rtk-debugger-audio/rtk-debugger-audio.d.ts +36 -0
  1062. package/dist/types/components/rtk-debugger-screenshare/rtk-debugger-screenshare.d.ts +38 -0
  1063. package/dist/types/components/rtk-debugger-system/rtk-debugger-system.d.ts +40 -0
  1064. package/dist/types/components/rtk-debugger-toggle/rtk-debugger-toggle.d.ts +24 -0
  1065. package/dist/types/components/rtk-debugger-video/rtk-debugger-video.d.ts +36 -0
  1066. package/dist/types/components/rtk-dialog/rtk-dialog.d.ts +38 -0
  1067. package/dist/types/components/rtk-dialog-manager/rtk-dialog-manager.d.ts +41 -0
  1068. package/dist/types/components/rtk-draft-attachment-view/rtk-draft-attachment-view.d.ts +26 -0
  1069. package/dist/types/components/rtk-emoji-picker/rtk-emoji-picker.d.ts +32 -0
  1070. package/dist/types/components/rtk-emoji-picker-button/rtk-emoji-picker-button.d.ts +10 -0
  1071. package/dist/types/components/rtk-ended-screen/rtk-ended-screen.d.ts +30 -0
  1072. package/dist/types/components/rtk-file-dropzone/rtk-file-dropzone.d.ts +15 -0
  1073. package/dist/types/components/rtk-file-message/rtk-file-message.d.ts +21 -0
  1074. package/dist/types/components/rtk-file-message-view/rtk-file-message-view.d.ts +15 -0
  1075. package/dist/types/components/rtk-file-picker-button/rtk-file-picker-button.d.ts +21 -0
  1076. package/dist/types/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.d.ts +32 -0
  1077. package/dist/types/components/rtk-grid/rtk-grid.d.ts +83 -0
  1078. package/dist/types/components/rtk-grid-pagination/rtk-grid-pagination.d.ts +40 -0
  1079. package/dist/types/components/rtk-header/rtk-header.d.ts +28 -0
  1080. package/dist/types/components/rtk-icon/rtk-icon.d.ts +14 -0
  1081. package/dist/types/components/rtk-idle-screen/rtk-idle-screen.d.ts +19 -0
  1082. package/dist/types/components/rtk-image-message/rtk-image-message.d.ts +26 -0
  1083. package/dist/types/components/rtk-image-message-view/rtk-image-message-view.d.ts +17 -0
  1084. package/dist/types/components/rtk-image-viewer/rtk-image-viewer.d.ts +25 -0
  1085. package/dist/types/components/rtk-information-tooltip/rtk-information-tooltip.d.ts +6 -0
  1086. package/dist/types/components/rtk-join-stage/rtk-join-stage.d.ts +38 -0
  1087. package/dist/types/components/rtk-leave-button/rtk-leave-button.d.ts +22 -0
  1088. package/dist/types/components/rtk-leave-meeting/rtk-leave-meeting.d.ts +35 -0
  1089. package/dist/types/components/rtk-livestream-indicator/rtk-livestream-indicator.d.ts +18 -0
  1090. package/dist/types/components/rtk-livestream-player/rtk-livestream-player.d.ts +60 -0
  1091. package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +40 -0
  1092. package/dist/types/components/rtk-logo/rtk-logo.d.ts +20 -0
  1093. package/dist/types/components/rtk-markdown-view/rtk-markdown-view.d.ts +15 -0
  1094. package/dist/types/components/rtk-meeting/rtk-meeting.d.ts +59 -0
  1095. package/dist/types/components/rtk-meeting-title/rtk-meeting-title.d.ts +15 -0
  1096. package/dist/types/components/rtk-menu/rtk-menu.d.ts +30 -0
  1097. package/dist/types/components/rtk-menu-item/rtk-menu-item.d.ts +19 -0
  1098. package/dist/types/components/rtk-menu-list/rtk-menu-list.d.ts +14 -0
  1099. package/dist/types/components/rtk-message-list-view/rtk-message-list-view.d.ts +62 -0
  1100. package/dist/types/components/rtk-message-view/rtk-message-view.d.ts +33 -0
  1101. package/dist/types/components/rtk-mic-toggle/rtk-mic-toggle.d.ts +39 -0
  1102. package/dist/types/components/rtk-microphone-selector/rtk-microphone-selector.d.ts +42 -0
  1103. package/dist/types/components/rtk-mixed-grid/rtk-mixed-grid.d.ts +61 -0
  1104. package/dist/types/components/rtk-more-toggle/rtk-more-toggle.d.ts +32 -0
  1105. package/dist/types/components/rtk-mute-all-button/rtk-mute-all-button.d.ts +26 -0
  1106. package/dist/types/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.d.ts +21 -0
  1107. package/dist/types/components/rtk-name-tag/rtk-name-tag.d.ts +28 -0
  1108. package/dist/types/components/rtk-network-indicator/rtk-network-indicator.d.ts +20 -0
  1109. package/dist/types/components/rtk-notification/rtk-notification.d.ts +30 -0
  1110. package/dist/types/components/rtk-notifications/rtk-notifications.d.ts +69 -0
  1111. package/dist/types/components/rtk-overlay-modal/rtk-overlay-modal.d.ts +22 -0
  1112. package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +91 -0
  1113. package/dist/types/components/rtk-participant/rtk-participant.d.ts +62 -0
  1114. package/dist/types/components/rtk-participant-count/rtk-participant-count.d.ts +26 -0
  1115. package/dist/types/components/rtk-participant-setup/rtk-participant-setup.d.ts +37 -0
  1116. package/dist/types/components/rtk-participant-tile/rtk-participant-tile.d.ts +55 -0
  1117. package/dist/types/components/rtk-participants/rtk-participants.d.ts +48 -0
  1118. package/dist/types/components/rtk-participants-audio/rtk-participants-audio.d.ts +34 -0
  1119. package/dist/types/components/rtk-participants-stage-list/rtk-participants-stage-list.d.ts +42 -0
  1120. package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +29 -0
  1121. package/dist/types/components/rtk-participants-toggle/rtk-participants-toggle.d.ts +49 -0
  1122. package/dist/types/components/rtk-participants-viewer-list/rtk-participants-viewer-list.d.ts +33 -0
  1123. package/dist/types/components/rtk-participants-waiting-list/rtk-participants-waiting-list.d.ts +29 -0
  1124. package/dist/types/components/rtk-permissions-message/rtk-permissions-message.d.ts +40 -0
  1125. package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +28 -0
  1126. package/dist/types/components/rtk-plugin-main/rtk-plugin-main.d.ts +28 -0
  1127. package/dist/types/components/rtk-plugins/rtk-plugins.d.ts +35 -0
  1128. package/dist/types/components/rtk-plugins-toggle/rtk-plugins-toggle.d.ts +42 -0
  1129. package/dist/types/components/rtk-poll/rtk-poll.d.ts +30 -0
  1130. package/dist/types/components/rtk-poll-form/rtk-poll-form.d.ts +30 -0
  1131. package/dist/types/components/rtk-polls/rtk-polls.d.ts +38 -0
  1132. package/dist/types/components/rtk-polls-toggle/rtk-polls-toggle.d.ts +46 -0
  1133. package/dist/types/components/rtk-recording-indicator/rtk-recording-indicator.d.ts +26 -0
  1134. package/dist/types/components/rtk-recording-toggle/rtk-recording-toggle.d.ts +47 -0
  1135. package/dist/types/components/rtk-screen-share-toggle/rtk-screen-share-toggle.d.ts +67 -0
  1136. package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +52 -0
  1137. package/dist/types/components/rtk-settings/rtk-settings.d.ts +38 -0
  1138. package/dist/types/components/rtk-settings-audio/rtk-settings-audio.d.ts +32 -0
  1139. package/dist/types/components/rtk-settings-toggle/rtk-settings-toggle.d.ts +30 -0
  1140. package/dist/types/components/rtk-settings-video/rtk-settings-video.d.ts +37 -0
  1141. package/dist/types/components/rtk-setup-screen/rtk-setup-screen.d.ts +40 -0
  1142. package/dist/types/components/rtk-sidebar/rtk-sidebar.d.ts +49 -0
  1143. package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +120 -0
  1144. package/dist/types/components/rtk-simple-grid/rtk-simple-grid.d.ts +43 -0
  1145. package/dist/types/components/rtk-speaker-selector/rtk-speaker-selector.d.ts +44 -0
  1146. package/dist/types/components/rtk-spinner/rtk-spinner.d.ts +12 -0
  1147. package/dist/types/components/rtk-spotlight-grid/rtk-spotlight-grid.d.ts +47 -0
  1148. package/dist/types/components/rtk-spotlight-indicator/rtk-spotlight-indicator.d.ts +22 -0
  1149. package/dist/types/components/rtk-stage/rtk-stage.d.ts +19 -0
  1150. package/dist/types/components/rtk-stage-toggle/rtk-stage-toggle.d.ts +36 -0
  1151. package/dist/types/components/rtk-switch/rtk-switch.d.ts +25 -0
  1152. package/dist/types/components/rtk-tab-bar/rtk-tab-bar.d.ts +37 -0
  1153. package/dist/types/components/rtk-text-composer-view/rtk-text-composer-view.d.ts +34 -0
  1154. package/dist/types/components/rtk-text-message/components/TextMessage.d.ts +6 -0
  1155. package/dist/types/components/rtk-text-message/rtk-text-message.d.ts +21 -0
  1156. package/dist/types/components/rtk-text-message-view/rtk-text-message-view.d.ts +10 -0
  1157. package/dist/types/components/rtk-tooltip/rtk-tooltip.d.ts +42 -0
  1158. package/dist/types/components/rtk-transcript/rtk-transcript.d.ts +30 -0
  1159. package/dist/types/components/rtk-transcripts/rtk-transcripts.d.ts +39 -0
  1160. package/dist/types/components/rtk-ui-provider/rtk-ui-provider.d.ts +45 -0
  1161. package/dist/types/components/rtk-viewer-count/rtk-viewer-count.d.ts +24 -0
  1162. package/dist/types/components/rtk-virtualized-list/rtk-virtualized-participant-list.d.ts +30 -0
  1163. package/dist/types/components/rtk-waiting-screen/rtk-waiting-screen.d.ts +15 -0
  1164. package/dist/types/components.d.ts +11544 -0
  1165. package/dist/types/exports.d.ts +20 -0
  1166. package/dist/types/globals.d.ts +15 -0
  1167. package/dist/types/index.d.ts +2 -0
  1168. package/dist/types/lib/addons/index.d.ts +27 -0
  1169. package/dist/types/lib/audio.d.ts +18 -0
  1170. package/dist/types/lib/builder/index.d.ts +42 -0
  1171. package/dist/types/lib/default-ui-config.d.ts +5 -0
  1172. package/dist/types/lib/grid.d.ts +43 -0
  1173. package/dist/types/lib/icons/default-icon-pack.d.ts +88 -0
  1174. package/dist/types/lib/icons/index.d.ts +9 -0
  1175. package/dist/types/lib/lang/default-language.d.ts +415 -0
  1176. package/dist/types/lib/lang/index.d.ts +16 -0
  1177. package/dist/types/lib/notification.d.ts +19 -0
  1178. package/dist/types/lib/render/index.d.ts +45 -0
  1179. package/dist/types/lib/render/utils.d.ts +31 -0
  1180. package/dist/types/lib/visualizer.d.ts +6 -0
  1181. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  1182. package/dist/types/theme/presets/border.d.ts +13 -0
  1183. package/dist/types/theme/presets/themes.d.ts +2 -0
  1184. package/dist/types/types/floating-ui.d.ts +1 -0
  1185. package/dist/types/types/props.d.ts +175 -0
  1186. package/dist/types/types/rtk-ai.d.ts +9 -0
  1187. package/dist/types/types/rtk-client.d.ts +16 -0
  1188. package/dist/types/types/ui-config/config.d.ts +25 -0
  1189. package/dist/types/types/ui-config/design-tokens.d.ts +41 -0
  1190. package/dist/types/types/ui-config/index.d.ts +15 -0
  1191. package/dist/types/types/ui-config/root.d.ts +23 -0
  1192. package/dist/types/types/web-core.d.ts +9 -0
  1193. package/dist/types/utils/assets.d.ts +6 -0
  1194. package/dist/types/utils/breakout-rooms-manager.d.ts +100 -0
  1195. package/dist/types/utils/breakout-rooms.d.ts +24 -0
  1196. package/dist/types/utils/chat.d.ts +49 -0
  1197. package/dist/types/utils/clone.d.ts +1 -0
  1198. package/dist/types/utils/color.d.ts +69 -0
  1199. package/dist/types/utils/config.d.ts +28 -0
  1200. package/dist/types/utils/date.d.ts +3 -0
  1201. package/dist/types/utils/debugger-utils.d.ts +40 -0
  1202. package/dist/types/utils/file.d.ts +23 -0
  1203. package/dist/types/utils/full-screen.d.ts +4 -0
  1204. package/dist/types/utils/graceful-storage.d.ts +2 -0
  1205. package/dist/types/utils/notification.d.ts +9 -0
  1206. package/dist/types/utils/provide-design-system.d.ts +7 -0
  1207. package/dist/types/utils/scroll.d.ts +7 -0
  1208. package/dist/types/utils/sidebar.d.ts +5 -0
  1209. package/dist/types/utils/size.d.ts +7 -0
  1210. package/dist/types/utils/stage.d.ts +3 -0
  1211. package/dist/types/utils/string.d.ts +24 -0
  1212. package/dist/types/utils/sync-with-store/index.d.ts +3 -0
  1213. package/dist/types/utils/sync-with-store/ui-store.d.ts +20 -0
  1214. package/dist/types/utils/time.d.ts +1 -0
  1215. package/dist/types/utils/troubleshooter.d.ts +151 -0
  1216. package/dist/types/utils/user-prefs.d.ts +7 -0
  1217. package/loader/cdn.js +1 -0
  1218. package/loader/index.cjs.js +1 -0
  1219. package/loader/index.d.ts +24 -0
  1220. package/loader/index.es2017.js +1 -0
  1221. package/loader/index.js +2 -0
  1222. package/loader/package.json +11 -0
  1223. package/package.json +59 -3
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as r,H as e}from"./p-0ee570cd.js";import{d as a,a as s,c as o}from"./p-9c733fd3.js";import{S as n}from"./p-27478c0c.js";var c=function(t,i,r,e){var a,s=arguments.length,o=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(s<3?a(o):s>3?a(i,r,o):a(i,r))||o);return s>3&&o&&Object.defineProperty(i,r,o),o};const l=class{constructor(r){t(this,r),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=a,this.iconPack=s,this.t=o(),this.view="sidebar",this.close=()=>{this.stateUpdate.emit({activeAI:!1})}}connectedCallback(){this.viewChanged(this.view)}disconnectedCallback(){this.keydownListener&&document.removeEventListener("keydown",this.keydownListener)}viewChanged(t){"full-screen"===t&&(this.keydownListener=t=>{"Escape"===t.key&&this.close()},document.addEventListener("keydown",this.keydownListener))}render(){var t,i,a;if(!(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions).transcriptionEnabled||!(null===(a=this.states)||void 0===a?void 0:a.activeAI))return null;const s={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return r(e,null,r("h3",{class:"title"},this.t("ai.transcriptions")),r("rtk-button",{variant:"ghost",kind:"icon",class:"close",onClick:this.close,"aria-label":this.t("close")},r("rtk-icon",{icon:this.iconPack.dismiss})),r("rtk-ai-transcriptions",Object.assign({},s)))}static get watchers(){return{view:["viewChanged"]}}};c([n()],l.prototype,"meeting",void 0),c([n()],l.prototype,"states",void 0),c([n()],l.prototype,"iconPack",void 0),c([n()],l.prototype,"t",void 0),c([n()],l.prototype,"size",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;box-sizing:border-box;display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden}.close{position:absolute;top:var(--rtk-space-3, 12px);left:var(--rtk-space-3, 12px)}.title{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-2, 8px);-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:var(--rtk-space-0, 0px);text-align:center;font-size:14px;font-weight:400}rtk-ai-transcriptions{flex:1}:host([view='sidebar']){margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host([view='full-screen']){position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:50;max-width:100%;border:none}";export{l as rtk_ai}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as r}from"./p-0ee570cd.js";import{a as e,c as s}from"./p-9c733fd3.js";import{S as o}from"./p-27478c0c.js";var a=function(t,i,r,e){var s,o=arguments.length,a=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,r,e);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(a=(o<3?s(a):o>3?s(i,r,a):s(i,r))||a);return o>3&&a&&Object.defineProperty(i,r,a),a};const n=class{constructor(i){t(this,i),this.iconPack=e,this.t=s(),this.permissionsUpdateListener=()=>{this.canSpotlight=this.meeting.self.permissions.canSpotlight}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){var i,r;null!=t&&(this.canSpotlight=t.self.permissions.canSpotlight,this.isSpotlighted=null!==(r=null===(i=t.meta)||void 0===i?void 0:i.broadcastTabChanges)&&void 0!==r&&r,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}updateSpotlightState(t){var i;try{null===(i=this.meeting.meta)||void 0===i||i.setBroadcastTabChanges(t),this.isSpotlighted=t}catch(t){console.error(t)}}render(){if(this.canSpotlight)return i(r,null,i("rtk-tooltip",{size:"md",label:this.t("remote_access.indicator")},i("div",{id:"sync-button",class:{tab:!0,active:this.isSpotlighted},onClick:()=>this.updateSpotlightState(!this.isSpotlighted)},i("span",{class:"name"},"Sync"),i("rtk-icon",{id:"icon",icon:this.isSpotlighted?this.iconPack.checkmark:this.iconPack.warning,tabIndex:-1,"aria-hidden":!0}))))}static get watchers(){return{meeting:["meetingChanged"]}}};a([o()],n.prototype,"meeting",void 0),a([o()],n.prototype,"iconPack",void 0),a([o()],n.prototype,"t",void 0),a([o()],n.prototype,"size",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{font-size:12px}#sync-button{flex-direction:row;border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-1, 4px);display:flex;align-items:center;justify-content:center;margin-bottom:var(--rtk-space-1, 4px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) rtk-tooltip,:host([size='md']) rtk-tooltip{width:100%}:host([size='sm'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px);padding-left:var(--rtk-space-0, 0px)}:host([size='md'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}:host([size='lg'])>#sync-button{flex-direction:row;height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}@media (orientation: portrait){:host([size='lg']) #sync-button{flex-direction:column-reverse;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='md']) #sync-button{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='sm']) #sync-button{height:var(--rtk-space-10, 40px);width:var(--rtk-space-16, 64px);flex-direction:row}}#sync-button>rtk-icon{max-height:14px}#sync-button rtk-icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']) #sync-button>rtk-icon{width:auto}#sync-button.active rtk-icon{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}div{align-content:center;line-height:2rem}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-8, 32px)}#sync-button.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-bg-opacity))}";export{n as rtk_spotlight_indicator}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as r,a}from"./p-0ee570cd.js";import{a as e,c as s}from"./p-9c733fd3.js";import{S as c}from"./p-27478c0c.js";import{R as o}from"./p-c8eaa707.js";var n=function(t,i,r,a){var e,s=arguments.length,c=s<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,r,a);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(c=(s<3?e(c):s>3?e(i,r,c):e(i,r))||c);return s>3&&c&&Object.defineProperty(i,r,c),c};const l=class{constructor(i){t(this,i),this.iconPack=e,this.t=s(),this.hideSelf=!1,this.activeParticipants=[],this.onStageParticipants=[],this.offStageParticipants=[],this.onParticipantListUpdate=()=>{if(!this.meeting)return;let t=this.meeting.participants.active.toArray();this.hideSelf||(t=[...t,this.meeting.self]);let i=this.meeting.participants.joined.toArray().filter((i=>!t.some((t=>t.id===i.id))));this.activeParticipants=t,this.onStageParticipants=i}}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){t&&"AUDIO_ROOM"===t.self.config.viewType&&(this.onParticipantListUpdate(),t.participants.active.addListener("participantJoined",this.onParticipantListUpdate),t.participants.active.addListener("participantLeft",this.onParticipantListUpdate),t.participants.joined.addListener("participantJoined",this.onParticipantListUpdate),t.participants.joined.addListener("participantLeft",this.onParticipantListUpdate))}disconnectedCallback(){this.resizeObserver.disconnect(),this.resizeObserver=void 0,this.meeting.participants.active.removeListener("participantJoined",this.onParticipantListUpdate),this.meeting.participants.active.removeListener("participantLeft",this.onParticipantListUpdate),this.meeting.participants.joined.removeListener("participantJoined",this.onParticipantListUpdate),this.meeting.participants.joined.removeListener("participantLeft",this.onParticipantListUpdate)}renderGrid(t=[]){const r={meeting:this.meeting,size:this.size,config:this.config,t:this.t,iconPack:this.iconPack,states:this.states};return t.map((t=>i(o,{element:"rtk-audio-tile",defaults:r,props:{key:t.id,participant:t},childProps:{participant:t},deepProps:!0})))}render(){const t=this.activeParticipants.concat(this.onStageParticipants);return i(r,{key:"0547c2c61b1c1b1fc4fcc5353b9094f8c118bd83"},i("div",{key:"46dd0248db3437461bd56bd507a2f42ce05af03a",class:"content scrollbar"},i("div",{key:"98a3dc4928c3062f3e5058b50d415f147c273c26",class:"stage grid"},this.renderGrid(t)),this.offStageParticipants.length>0&&i("div",{key:"18015fe551647048c990f107ba313c5e13ba7d47",class:"waitlist-area"},i("div",{key:"50a65d4f48d94426860d808ff6151d3e0d519f4e",class:"listening-title"},this.offStageParticipants.length," ",this.t("grid.listening")),i("div",{key:"173e4ebc97425b7298236673122f76ebfae59609",class:"waitlist-grid grid"},this.renderGrid(this.offStageParticipants)))),i("slot",{key:"c92a12329a9c4c456f3506cee2aa2d73dceaa0e0"}))}get host(){return a(this)}static get watchers(){return{meeting:["meetingChanged"]}}};n([c()],l.prototype,"meeting",void 0),n([c()],l.prototype,"states",void 0),n([c()],l.prototype,"iconPack",void 0),n([c()],l.prototype,"size",void 0),n([c()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;height:100%;width:100%;box-sizing:border-box}.content{position:relative;display:flex;height:100%;width:100%;flex-direction:column;overflow-y:auto}.waitlist-area{display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.listening-title{text-align:center;margin-top:var(--rtk-space-5, 20px);margin-bottom:var(--rtk-space-4, 16px)}.waitlist-grid{flex:1 1 0%}.grid{box-sizing:border-box;flex:1 1 0%;gap:var(--rtk-space-6, 24px);display:flex;align-content:center;justify-content:center;flex-wrap:wrap}:host([size='md']) .grid{gap:var(--rtk-space-4, 16px)}:host([size='sm']) .grid{gap:var(--rtk-space-3, 12px)}rtk-audio-tile{aspect-ratio:1 / 1;flex:none;width:calc(20%);max-width:var(--rtk-space-48, 192px);transition:all 0.3s}rtk-audio-tile[size='md']{width:100%;max-width:var(--rtk-space-36, 144px)}rtk-audio-tile[size='sm']{width:100%;max-width:var(--rtk-space-24, 96px)}";export{l as rtk_audio_grid}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as a}from"./p-0ee570cd.js";import{d as r,a as e,c as o}from"./p-9c733fd3.js";import{c as h,d as n,a as l,b as c}from"./p-41382f52.js";import{S as d}from"./p-27478c0c.js";import{R as p}from"./p-c8eaa707.js";var v=function(t,i,s,a){var r,e=arguments.length,o=e<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,a);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(o=(e<3?r(o):e>3?r(i,s,o):r(i,s))||o);return e>3&&o&&Object.defineProperty(i,s,o),o};const b=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=r,this.iconPack=e,this.t=o(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var i,s;this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(s=null===(i=this.meeting)||void 0===i?void 0:i.stage)||void 0===s||s.on("stageStatusUpdate",this.onStageStatusUpdate)}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const i=[];h(t)&&i.push({id:"chat",name:this.t("chat")}),n(t)&&i.push({id:"polls",name:this.t("polls")}),l(t)&&i.push({id:"participants",name:this.t("participants")}),c(t)&&i.push({id:"plugins",name:this.t("plugins")}),this.enabledSections=i}render(){var t;const i={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=i.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?s(a,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},s("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&s("div",{class:"pinned-state",slot:"pinned-state"},s("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},s("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===i.states.sidebar&&s(p,{element:"rtk-chat",defaults:i,props:{slot:"chat"}}),"polls"===i.states.sidebar&&s("rtk-polls",Object.assign({},i,{slot:"polls"})),"participants"===i.states.sidebar&&s(p,{element:"rtk-participants",defaults:i,props:{slot:"participants"}}),"plugins"===i.states.sidebar&&s("rtk-plugins",Object.assign({},i,{slot:"plugins"})))):null}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],view:["viewChanged"]}}};v([d()],b.prototype,"meeting",void 0),v([d()],b.prototype,"states",void 0),v([d()],b.prototype,"iconPack",void 0),v([d()],b.prototype,"t",void 0),v([d()],b.prototype,"size",void 0),b.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}";export{b as rtk_sidebar}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as e,a}from"./p-0ee570cd.js";import{d as s,a as r,c as h}from"./p-9c733fd3.js";import{d as n}from"./p-b13ddb7d.js";import{R as d}from"./p-c8eaa707.js";import{S as o}from"./p-27478c0c.js";var l=function(t,i,e,a){var s,r=arguments.length,h=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(h=(r<3?s(h):r>3?s(i,e,h):s(i,e))||h);return r>3&&h&&Object.defineProperty(i,e,h),h};const p=class{constructor(i){t(this,i),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.aspectRatio="16:9",this.gap=8,this.config=s,this.iconPack=r,this.t=h(),this.gridSize=n}componentWillLoad(){this.initialised=!1,this.screenShareParticipantsChanged(this.screenShareParticipants),this.pluginsChanged(this.plugins),this.initialised=!0}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)}meetingChanged(t){var i,e,a,s;null!=t&&(null!=(null===(i=t.meta)||void 0===i?void 0:i.selfActiveTab)&&this.onActiveTabUpdate(null===(e=t.meta.selfActiveTab)||void 0===e?void 0:e.type,null===(a=t.meta.selfActiveTab)||void 0===a?void 0:a.id),this.activeTabUpdateListener=t=>{this.onActiveTabUpdate(null==t?void 0:t.type,null==t?void 0:t.id)},null===(s=t.meta)||void 0===s||s.addListener("activeTabUpdate",this.activeTabUpdateListener))}screenShareParticipantsChanged(t=[]){(this.initialised||null==this.activeTab)&&(null==this.activeTab&&t.length>0?this.setActiveTab({type:"screenshare",participant:t[0]}):this.revalidateActiveTab())}pluginsChanged(t){(this.initialised||null==this.activeTab)&&(t.length>0?this.setActiveTab({type:"plugin",plugin:t[t.length-1]}):this.revalidateActiveTab())}revalidateActiveTab(){if(null!=this.activeTab)if("screenshare"===this.activeTab.type){const{participant:t}=this.activeTab;this.screenShareParticipants.some((i=>i.id===t.id))||this.reassignActiveTab()}else{const{plugin:t}=this.activeTab;this.plugins.some((i=>i.id===t.id))||this.reassignActiveTab()}}setActiveTab(t,i=!0){var e;this.activeTab=t,i&&(null===(e=this.meeting.meta)||void 0===e||e.setSelfActiveTab({type:t.type,id:"screenshare"===t.type?t.participant.id:t.plugin.id},0))}reassignActiveTab(){this.screenShareParticipants.length>0?this.setActiveTab({type:"screenshare",participant:this.screenShareParticipants[0]}):this.plugins.length>0&&this.setActiveTab({type:"plugin",plugin:this.plugins[this.plugins.length-1]})}onActiveTabUpdate(t,i){if(null!=t&&null!=i)switch(t){case"plugin":const t=this.plugins.find((t=>t.id===i));null!=t&&this.setActiveTab({type:"plugin",plugin:t},!1);break;case"screenshare":const e=this.screenShareParticipants.find((t=>t.id===i));null!=e&&this.setActiveTab({type:"screenshare",participant:e},!1)}}getTabs(){const t=this.screenShareParticipants.map((t=>({type:"screenshare",participant:t}))),i=this.plugins.map((t=>({type:"plugin",plugin:t})));return t.concat(i)}render(){var t,a;const s={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t};return i(e,{key:"52e26a16c20eee51ac0f3d01d932df88d58acb05"},i("main",{key:"1838e7498d579bf70346bf921c9f3966721a1eea",id:"main-view",part:"main-view"},(null===(t=this.getTabs())||void 0===t?void 0:t.length)>1&&i("rtk-tab-bar",Object.assign({key:"b3f5f77e4b0bd36d12014881f0507c9de6e613af",activeTab:this.activeTab,tabs:this.getTabs(),onTabChange:t=>this.setActiveTab(t.detail)},s)),i("div",{id:"tabs",key:"tabs"},this.screenShareParticipants.map((t=>{var e,a;return i(d,{element:"rtk-screenshare-view",defaults:s,props:{participant:t,key:t.id,style:{display:"screenshare"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&(null===(a=this.activeTab)||void 0===a?void 0:a.participant.id)===t.id?"flex":"none"}},childProps:{participant:t,isScreenShare:!0},deepProps:!0})})),this.plugins.map((t=>{var e,a;return i("rtk-plugin-main",Object.assign({},s,{plugin:t,key:t.id,style:{display:"plugin"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&(null===(a=this.activeTab)||void 0===a?void 0:a.plugin.id)===t.id?"flex":"none"}}))})))),i(d,{key:"c3a9ce4706096e385fc522a37e3de7d9d30d1b70",element:"rtk-mixed-grid",defaults:s,childProps:{part:"participants-grid",class:this.gridSize.mixed?`grid-width-${this.gridSize.mixed}`:"grid-width-lg",participants:this.participants,pinnedParticipants:this.pinnedParticipants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,aspectRatio:this.aspectRatio,gap:this.gap,size:"AUDIO_ROOM"===(null===(a=this.meeting.meta)||void 0===a?void 0:a.viewType)?"md":"sm",layout:"row"},onlyChildren:!0}))}get host(){return a(this)}static get watchers(){return{meeting:["meetingChanged"],screenShareParticipants:["screenShareParticipantsChanged"],plugins:["pluginsChanged"]}}};l([o()],p.prototype,"size",void 0),l([o()],p.prototype,"meeting",void 0),l([o()],p.prototype,"states",void 0),l([o()],p.prototype,"iconPack",void 0),l([o()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%;display:flex}main{display:flex;flex:1 1 0%;padding-left:var(--rtk-space-4, 16px)}:host([layout='column']) main{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}main rtk-tab-bar{margin-right:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column}main #tabs{height:100%;flex:1 1 0%}rtk-button{z-index:10}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}:host([size='sm']){flex-direction:column}:host([size='sm']) .grid-width-lg,:host([size='sm']) .grid-width-md{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:33.333333%;width:100%;max-width:100%}:host([size='sm']) main{display:flex;flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{height:var(--rtk-space-12, 48px);width:100%;flex-direction:row}:host([size='sm']) #tabs{flex:1 1 0%}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}:host([layout='column']){flex-direction:column}:host([layout='column']) main{display:flex;flex:1 1 0%}:host([layout='column']) .grid-width-lg,:host([layout='column']) .grid-width-md{height:50%;max-width:100%;width:100%}:host([layout='column']) .grid-width-sm{height:33.333333%;max-width:100%;width:100%}@media (orientation: portrait){:host{flex-direction:column}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host .grid-width-md{height:33.333333%;width:100%;max-width:100%}:host .grid-width-sm{height:25%;width:100%;max-width:100%}:host main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='md']) main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host rtk-tab-bar{height:var(--rtk-space-16, 64px);width:100%;flex-direction:row}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}@media (orientation: landscape){:host{flex-direction:row}:host([size='sm']){flex-direction:row}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:100%;max-height:100%;width:16.666667%}:host([size='sm']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}:host([size='md']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{margin-right:var(--rtk-space-2, 8px);height:100%;width:var(--rtk-space-12, 48px);flex-direction:column}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}";export{p as rtk_mixed_grid}
@@ -0,0 +1 @@
1
+ import{r as t,c as r,w as e,h as a,H as i}from"./p-0ee570cd.js";import{a as s,c as o,k as c}from"./p-9c733fd3.js";import{r as n,h as d,k as l,j as h,s as p,M as b}from"./p-edee9b57.js";import{S as k}from"./p-27478c0c.js";var v=function(t,r,e,a){var i,s=arguments.length,o=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(r,e,o):i(r,e))||o);return s>3&&o&&Object.defineProperty(r,e,o),o};const g="@",f=class{constructor(i){t(this,i),this.onNewMessage=r(this,"rtkNewMessage",7),this.onEditMessage=r(this,"rtkEditMessage",7),this.onEditCancelled=r(this,"rtkEditCancelled",7),this.canSendTextMessage=!1,this.canSendFiles=!1,this.iconPack=s,this.t=o(),this.disableEmojiPicker=!1,this.prefill={},this.members=[],this.emojiPickerActive=!1,this.mentionQuery="",this.focusedMemberIndex=0,this.filePreview=null,this.fileReader=new FileReader,this.fileToUpload=null,this.handleKeyDown=t=>{if(t.key===g&&[void 0," "].includes(this.$textArea.value.at(-1))&&(this.mentionQuery=g),"ArrowDown"===t.key&&(this.focusedMemberIndex=Math.min(this.focusedMemberIndex+1,this.getFilteredMembers().length-1)),"ArrowUp"===t.key&&(this.focusedMemberIndex=Math.max(0,this.focusedMemberIndex-1)),("Escape"===t.key||"Backspace"===t.key&&this.mentionQuery===g)&&(this.mentionQuery=""),["Enter","Tab"," "].includes(t.key)&&""!==this.mentionQuery){const r=this.getFilteredMembers()[this.focusedMemberIndex];return this.onMemberSelect(r),void t.preventDefault()}"Enter"===t.key&&t.shiftKey?this.$textArea.clientHeight<200&&(this.$textArea.style.height=this.$textArea.clientHeight+20+"px"):"Enter"===t.key?(t.preventDefault(),this.prefill.editMessage?this.handleEditMessage():this.handleSendMessage()):"Backspace"===t.key&&(this.$textArea.value.endsWith("\n")?this.$textArea.style.height=this.$textArea.clientHeight-20+"px":""===this.$textArea.value&&(this.$textArea.style.height="auto"))},this.handleKeyUp=()=>{if(""!==this.mentionQuery){const t=n(this.$textArea.value.trim()),r=t.substring(0,t.indexOf(g));this.mentionQuery=`${g}${n(r)}`}},this.onPaste=t=>{const r=t.clipboardData||t.originalEvent.clipboardData;e((()=>{r&&r.items&&r.items.length>0&&(d(r.items,this.generateFilePreview),this.$textArea.value="")}))},this.generateFilePreview=(t,r)=>{this.fileToUpload={type:t,image:r,file:r},"image"===t?this.fileReader.readAsDataURL(r):"file"===t&&(this.filePreview=r.name)},this.sendFile=()=>{this.canSendFiles&&(this.onNewMessage.emit("image"===this.fileToUpload.type?{type:"image",file:this.fileToUpload.image,image:this.fileToUpload.image}:{type:"file",file:this.fileToUpload.file}),this.cleanUpFileUpload())},this.handleSendMessage=()=>{if(!this.canSendTextMessage)return;if(null!==this.fileToUpload)return void this.sendFile();const t=this.$textArea.value.trim();t.length>0&&(this.onNewMessage.emit(this.prefill.replyMessage?{type:"text",message:t,replyTo:this.prefill.replyMessage}:{type:"text",message:t}),this.cleanup())},this.cleanup=()=>{this.mentionQuery="",this.focusedMemberIndex=0,this.$textArea.value="",this.$textArea.style.height="auto",c.setItem(this.storageKey,"")},this.handleEditMessage=()=>{var t;let r=this.$textArea.value.trim();(null===(t=this.prefill.editMessage)||void 0===t?void 0:t.message)&&l.test(this.prefill.editMessage.message)&&(r=`${h(this.prefill.editMessage.message)}\n\n${r}`),this.onEditMessage.emit({id:this.prefill.editMessage.id,message:r,channelId:this.prefill.editMessage.channelId}),this.cleanup()},this.handleEditCancel=()=>{this.onEditCancelled.emit(),this.cleanup()},this.initializeTextField=t=>{this.$textArea=t;const r=c.getItem(this.storageKey)||"";this.$textArea.value=r},this.onMemberSelect=t=>{const r=n(this.mentionQuery),a=n(this.$textArea.value.trim()).replace(r,"");this.$textArea.value=n(a)+`${g}${t.name} `,this.mentionQuery="",this.focusedMemberIndex=0,e((()=>this.$textArea.focus()))},this.getFilteredMembers=()=>{const t=this.mentionQuery.replace(g,"");return this.members.filter((r=>r.name.toLowerCase().includes(t.toLowerCase())))},this.cleanUpFileUpload=()=>{this.filePreview=null,this.fileToUpload=null},this.renderSuggestedReplies=()=>{if(this.prefill.suggestedReplies&&0!==this.prefill.suggestedReplies.length)return a("ul",{class:"suggested-replies scrollbar"},this.prefill.suggestedReplies.map((t=>a("rtk-tooltip",{label:this.t("chat.click_to_send")},a("li",{onClick:()=>this.onNewMessage.emit({type:"text",message:t})},t)))))},this.renderMenu=()=>{if(0===this.mentionQuery.length)return;const t=this.getFilteredMembers();return 0!==t.length?a("ul",{class:"member-list scrollbar"},t.map(((t,r)=>a("li",{class:{member:!0,selected:r===this.focusedMemberIndex},onClick:()=>this.onMemberSelect(t),ref:t=>{r===this.focusedMemberIndex&&e((()=>{t&&t.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}))}},a("rtk-avatar",{participant:{name:t.name,picture:t.picture},size:"sm"}),a("span",null,t.name))))):void 0}}connectedCallback(){this.fileReader.onload=t=>{"string"==typeof t.target.result&&(this.filePreview=t.target.result)}}onChannelChanged(){this.mentionQuery="",this.focusedMemberIndex=0;const t=c.getItem(this.storageKey)||"";this.$textArea.value=t,this.emojiPickerActive=!1}componentDidRender(){(this.prefill.editMessage||this.prefill.replyMessage)&&e((()=>this.$textArea.focus()))}get storageKey(){return this.channelId?`rtk-text-message-${this.channelId}`:"rtk-text-message"}uploadFile(t){const r=document.createElement("input");r.type="file","image"===t&&(r.accept="image/*"),r.onchange=r=>{const{validity:e,files:[a]}=r.target;e.valid&&this.generateFilePreview(t,a)},r.click()}renderFilePreview(){if("string"==typeof this.filePreview)return a("div",{class:"preview-overlay"},a("div",{class:"file-preview"},a("rtk-tooltip",{label:this.t("chat.cancel_upload")},a("rtk-button",{variant:"secondary",kind:"icon",onClick:this.cleanUpFileUpload},a("rtk-icon",{icon:this.iconPack.dismiss}))),"image"===this.fileToUpload.type?a("img",{class:"preview-image",src:this.filePreview}):a("div",{class:"preview-file"},a("span",null,this.filePreview))))}render(){var t;let r="";return(null===(t=this.prefill.editMessage)||void 0===t?void 0:t.message)&&(r=p(this.prefill.editMessage.message)),a(i,{key:"8f0ee810fac56aa1c62254d3d8a997941475bb3a"},this.canSendTextMessage&&this.emojiPickerActive&&a("rtk-emoji-picker",{key:"368bdbbe0e995aafd13e70d12f62b59979a5691b",part:"emoji-picker",onPickerClose:()=>{this.emojiPickerActive=!1},onRtkEmojiClicked:t=>{this.$textArea.value+=t.detail,this.$textArea.focus()},t:this.t}),this.renderSuggestedReplies(),a("slot",{key:"166872db8c0b07d2ec2e407de0fddfce7f3d4969",name:"chat-addon"}),a("slot",{key:"b383df2de3320e69fe2cb35a22296d1ee53b08df",name:"quote-block"}),a("div",{key:"89d5fdf625bf212acda92276e9ec10b60b55a179",class:"chat-input",part:"chat-input"},this.renderMenu(),this.canSendTextMessage&&a("textarea",{key:"55192f10820a161189d42b6150819be6a346d1e9",class:"scrollbar",part:"textarea",ref:this.initializeTextField,autoFocus:!0,placeholder:this.fileToUpload?"":this.t("chat.message_placeholder"),value:r,onPaste:this.onPaste,maxLength:b,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onInput:t=>{c.setItem(this.storageKey,t.target.value)},disabled:!!this.filePreview}),a("div",{key:"6c3a94c43257041fdeed496c7bd8b57ce4be6510",class:"chat-buttons",part:"chat-buttons"},a("div",{key:"76e6f7923484ee6a58359b6554e5e51009bc317f",class:"left",part:"chat-buttons-left"},!this.prefill.editMessage&&this.canSendFiles&&[a("rtk-tooltip",{key:"dbc04471a85d1fe2987c7d18dd0781e61f85fa35",label:this.t("chat.send_file")},a("rtk-button",{key:"cb54c65b81559d4a00a316aacf2f4bb368f30799",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile("file"),title:this.t("chat.send_file")},a("rtk-icon",{key:"d3c542b0b1260ac305de3cfd5fbf5396f18d1f0e",icon:this.iconPack.attach}))),a("rtk-tooltip",{key:"6aac421a0d9149fd6c188bcce25bf4152cb8c0dd",label:this.t("chat.send_img")},a("rtk-button",{key:"5460407db51e83ab379bb8ade5af7d87bd04b64d",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile("image"),title:this.t("chat.send_img")},a("rtk-icon",{key:"3f8732882dc03b5ddf23c59bdbe96329e551b070",icon:this.iconPack.image})))],!this.prefill.editMessage&&this.canSendTextMessage&&!this.disableEmojiPicker&&a("rtk-tooltip",{key:"8d032069a031d6a3b3e4847953a8e027eb5b3400",label:this.t("chat.send_emoji")},a("rtk-button",{key:"b96b0791ac68f142408f269354bde5385c08a4da",variant:"ghost",kind:"icon",class:{active:this.emojiPickerActive},title:this.t("chat.send_emoji"),onClick:()=>{this.emojiPickerActive=!this.emojiPickerActive}},a("rtk-icon",{key:"cd9ac09500ed1151dad94ed285db35bea6260ed8",icon:this.iconPack.emoji_multiple})))),!!this.filePreview&&this.renderFilePreview(),this.canSendTextMessage&&a("div",{key:"43b9f9232a7476b5600519fb3517d6342143d76f",class:"right",part:"chat-buttons-right"},!this.prefill.editMessage&&a("rtk-tooltip",{key:"ec757e58571a0ff2e4ab9b1006ab388b334a77d3",variant:"primary",label:this.t("chat.send_msg"),delay:2e3},a("rtk-button",{key:"054e7b52bfcfe852ca53ce96c6b498585924e616",kind:"icon",onClick:()=>this.handleSendMessage(),title:this.t("chat.send_msg")},a("rtk-icon",{key:"d085d0aae594a8e08f29d200e4cb0818c0eabdfd",icon:this.iconPack.send}))),this.prefill.editMessage&&a("div",{key:"7926d7cf394a7989d2fbae97c1ab5a974834b431",class:"edit-buttons"},a("rtk-tooltip",{key:"66029024ca595880cc72fdb28999f8380a8a37fc",variant:"secondary",label:this.t("cancel"),delay:2e3},a("rtk-button",{key:"cba0e1460d33a0b20593009acc588ba4e385d782",kind:"icon",variant:"secondary",onClick:()=>this.handleEditCancel(),title:this.t("cancel")},a("rtk-icon",{key:"2155257dea8a5660b6b2d9d9510da153192be16e",icon:this.iconPack.dismiss}))),a("rtk-tooltip",{key:"b296276e6f08c128ec3ba3cc292f6637e3550a34",variant:"primary",label:this.t("chat.update_msg"),delay:2e3},a("rtk-button",{key:"e3c50822510811d254f3e8d65ed967b70be97037",kind:"icon",onClick:()=>this.handleEditMessage(),title:this.t("chat.send_msg")},a("rtk-icon",{key:"016e23547285b95c2545784d627a37fb8c6359d5",icon:this.iconPack.checkmark}))))))))}static get watchers(){return{channelId:["onChannelChanged"]}}};v([k()],f.prototype,"size",void 0),v([k()],f.prototype,"iconPack",void 0),v([k()],f.prototype,"t",void 0),f.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n 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;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.chat-input{position:relative;margin:var(--rtk-space-2, 8px);z-index:10;box-sizing:border-box;display:flex;flex-direction:column;border-radius:var(--rtk-border-radius-md, 8px);border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}textarea{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));box-sizing:border-box;padding:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::-moz-placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea{border-top-left-radius:var(--rtk-border-radius-md, 8px);border-top-right-radius:var(--rtk-border-radius-md, 8px);font-family:var(--rtk-font-family, sans-serif);outline:2px solid transparent;outline-offset:2px;resize:none;overflow-y:auto;border-width:var(--rtk-border-width-none, 0);border-style:none;min-height:60px;font-size:14px}.chat-buttons{border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-left-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));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);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}.chat-buttons .left rtk-button{margin-right:var(--rtk-space-1, 4px)}.chat-buttons .left rtk-button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-buttons .right{z-index:10}.chat-buttons .right .edit-buttons{display:flex;gap:var(--rtk-space-2, 8px)}.chat-buttons>div{display:flex;align-items:center}rtk-emoji-picker{z-index:0;position:absolute;bottom:var(--rtk-space-32, 128px);border-top:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));animation:0.3s slide-up ease}@keyframes slide-up{from{transform:translateY(100%)}to{transform:translateY(0%)}}.member-list{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-1, 4px);max-height:var(--rtk-space-28, 112px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);padding:var(--rtk-space-0, 0px);position:absolute;bottom:var(--rtk-space-28, 112px);list-style-type:none;overflow-y:auto;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-sm, 4px);--tw-border-spacing-x:var(--rtk-space-2, 8px);--tw-border-spacing-y:var(--rtk-space-2, 8px);border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-style:solid;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.member-list .member{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-4, 16px);cursor:pointer}.member-list .member rtk-avatar{flex-shrink:0;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);font-size:14px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.member-list .member span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-list .member:hover,.member-list .member.selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-700, 2 70 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.suggested-replies{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-3, 12px);display:flex;flex-wrap:nowrap;gap:var(--rtk-space-2, 8px);list-style-type:none;overflow-x:auto}.suggested-replies rtk-tooltip{flex-shrink:0}.suggested-replies li{padding:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.75);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));cursor:pointer}.suggested-replies li:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity))}.preview-overlay{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-md, 8px)}.file-preview{position:absolute;top:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);max-width:-moz-fit-content;max-width:fit-content;max-height:var(--rtk-space-20, 80px)}.file-preview:hover rtk-tooltip{display:block}.file-preview rtk-tooltip{position:absolute;top:calc(var(--rtk-space-1, 4px) * -1);left:calc(var(--rtk-space-1, 4px) * -1);display:none;margin-left:calc(var(--rtk-space-1, 4px) * -1);margin-top:calc(var(--rtk-space-1, 4px) * -1)}.file-preview rtk-button{display:flex;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));border:1px solid rgb(var(--rtk-colors-text-1000, 255 255 255))}.file-preview rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.preview-image{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);-o-object-fit:cover;object-fit:cover;max-height:100%;max-width:100%;overflow:clip;border-radius:var(--rtk-border-radius-md, 8px)}.preview-file{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);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--rtk-border-radius-md, 8px);max-width:200px}@keyframes scroll-text{0%{transform:translateX(0%)}70%{transform:translateX(-100%)}80%{transform:translateX(0%)}100%{transform:translateX(0%)}}";export{f as rtk_chat_composer_ui}
@@ -0,0 +1 @@
1
+ import{r as t,h as r,H as a}from"./p-0ee570cd.js";import{a as o,c as i}from"./p-9c733fd3.js";import{S as e}from"./p-27478c0c.js";var s=function(t,r,a,o){var i,e=arguments.length,s=e<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,a,o);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(e<3?i(s):e>3?i(r,a,s):i(r,a))||s);return e>3&&s&&Object.defineProperty(r,a,s),s};const c=class{constructor(r){t(this,r),this.iconPack=o,this.t=i(),this.isScreenShare=!1,this.score=10,this.onMediaScoreUpdate=({kind:t,isScreenshare:r,score:a})=>{("video"===t||this.isScreenShare&&r)&&(this.score=a)}}connectedCallback(){this.participantChanged(this.participant)}participantChanged(t){t&&t.addListener("mediaScoreUpdate",this.onMediaScoreUpdate)}disconnectedCallback(){var t;null===(t=this.participant)||void 0===t||t.removeListener("mediaScoreUpdate",this.onMediaScoreUpdate)}render(){let t=Math.round(this.score/2),o="good";if(t>3)return null;switch(t<1&&(t=1),t){case 3:case 2:o="poor";break;case 1:o="poorest"}return r(a,null,r("rtk-icon",{icon:this.iconPack[`signal_${t}`],class:o}),r("rtk-icon",{icon:this.iconPack.signal_5,class:"bg-signal"}))}static get watchers(){return{participant:["participantChanged"]}}};s([e()],c.prototype,"meeting",void 0),s([e()],c.prototype,"iconPack",void 0),s([e()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block;height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}rtk-icon{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;height:100%;width:100%;--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='md']){height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.bg-signal{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:0;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}";export{c as rtk_network_indicator}
@@ -0,0 +1 @@
1
+ import{r as t,c as a,h as r,H as e}from"./p-0ee570cd.js";import{d as i,a as s,c}from"./p-9c733fd3.js";import{S as o}from"./p-27478c0c.js";import{d as n}from"./p-a08b5a59.js";import"./p-2c3cda13.js";var p=function(t,a,r,e){var i,s=arguments.length,c=s<3?a:null===e?e=Object.getOwnPropertyDescriptor(a,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,a,r,e);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(c=(s<3?i(c):s>3?i(a,r,c):i(a,r))||c);return s>3&&c&&Object.defineProperty(a,r,c),c};const d=class{constructor(e){t(this,e),this.stateUpdate=a(this,"rtkStateUpdate",7),this.config=i,this.iconPack=s,this.defaultParticipantsTabId="stage-list",this.t=c(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=n((()=>{var t;let a=(null===(t=this.meeting.participants.waitlisted)||void 0===t?void 0:t.size)||0,e=0,i=0;this.meeting.participants.joined.toArray().forEach((t=>{"ON_STAGE"===t.stageStatus&&e++,"OFF_STAGE"===t.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(a++,i++),"ACCEPTED_TO_JOIN_STAGE"===t.stageStatus&&i++})),"ON_STAGE"===this.meeting.self.stageStatus&&e++,"OFF_STAGE"===this.meeting.self.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&(a++,i++),"ACCEPTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&i++;const s=[];this.shouldShowRequestsTab()&&s.push({id:"requests",name:r("span",null,this.t("requests")," ",r("span",{class:`tab-participant-count-badge ${a>0?"requests-pending":""} ${"requests"===this.currentParticipantsTabId?"selected-tab":""}`},a))}),s.push({id:"stage-list",name:r("span",null,this.t("participants")," ",r("span",{class:"tab-participant-count-badge "+("stage-list"===this.currentParticipantsTabId?"selected-tab":"")},e))}),this.shouldShowViewersTab()&&s.push({id:"viewer-list",name:r("span",null,this.t("viewers")," ",r("span",{class:"tab-participant-count-badge "+("viewer-list"===this.currentParticipantsTabId?"selected-tab":"")},i))}),this.tabs=s,this.hasRequests=a>0})),this.onSearchInput=t=>{this.search=t.target.value},this.shouldShowViewersTab=()=>{var t,a,r;return null===(r=null===(a=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===a?void 0:a.permissions)||void 0===r?void 0:r.stageEnabled},this.shouldShowRequestsTab=()=>{var t;let a=!1;return a="LIVESTREAM"!==this.meeting.meta.viewType&&(null===(t=this.meeting.self.config.waitingRoom)||void 0===t?void 0:t.isEnabled)&&this.meeting.self.permissions.acceptWaitingRequests,this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests||a},this.viewSection=t=>{this.currentParticipantsTabId=t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){null!=this.meeting&&(this.meeting.participants.joined.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantsUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.stage.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("stageStatusUpdate",this.updateParticipantCountsInTabs))}meetingChanged(t){null!=t&&(t.participants.joined.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.joined.on("participantsUpdate",this.updateParticipantCountsInTabs),t.participants.joined.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.joined.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.stage.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("stageStatusUpdate",this.updateParticipantCountsInTabs),this.updateParticipantCountsInTabs())}currentParticipantsTabIdChanged(){this.stateUpdate.emit({participantsTabId:this.currentParticipantsTabId}),this.updateParticipantCountsInTabs()}render(){const t={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t};return r(e,{key:"9957561cf7ae9a0a28d62bce7102dbb6145aaeda"},r("div",{key:"5960602654c8d993afc99ce22582514d1438182b",class:"search",part:"search"},r("rtk-icon",{key:"cc94e5fd1e5540b893f2bdb5b4ad4e3563d37424",icon:this.iconPack.search,part:"search-icon"}),r("input",{key:"c0a723db1be4d4a8c91907f24078678561a9bfb9",type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),r("slot",{key:"7f145408b13056ad7e95b3469dc009ae46e73978",name:"start"}),r("div",{key:"465b74c71cd0239832ef60a0973537c71b394007",class:"ctr scrollbar "+("requests"!==this.currentParticipantsTabId?"virtualised":""),part:"container"},r("rtk-sidebar-ui",{key:"c6395b16482d114f82af07df85faeb1dc2584c4a",tabs:this.tabs,currentTab:this.currentParticipantsTabId,view:"full-screen",hideHeader:!0,hideCloseAction:!0,style:{position:"relative"},onTabChange:t=>{this.viewSection(t.detail),t.stopPropagation()}},(!this.currentParticipantsTabId||"stage-list"===this.currentParticipantsTabId)&&r("div",{key:"20d7a91bed3ea3047614d52ba30c5e832db6fce1",slot:"stage-list",style:{marginTop:"10px",height:"100%"}},r("rtk-participants-stage-list",Object.assign({key:"160ddba969e95e270e1443f11d48d989b4ee8561"},t,{search:this.search,hideHeader:!0}))),"requests"===this.currentParticipantsTabId&&r("div",{key:"52d4eae9480d00972b61c0e2964fcb8fc5498c89",slot:"requests",style:{marginTop:"10px",height:"100%"}},!this.hasRequests&&r("div",{key:"5690208be803224c202d81563be0fae45396dbeb",class:"no-pending-requests"},this.t("participants.no_pending_requests")),r("rtk-participants-stage-queue",Object.assign({key:"db4763d312a191c48279fa25168a1f363f574edc"},t)),r("rtk-participants-waiting-list",Object.assign({key:"f2b4ad3ad303b1c8a5314b5dd55de16c9c168c19"},t))),"viewer-list"===this.currentParticipantsTabId&&r("div",{key:"a262369c69afd77e101ec10934a9d4065590e748",slot:"viewer-list",style:{marginTop:"10px",height:"100%"}},r("rtk-participants-viewer-list",Object.assign({key:"0142b3855f357213ba24260091e5e7d48acb268d"},t,{search:this.search,hideHeader:!0}))))),r("slot",{key:"eae12c410cbe1282da2107420b4d44f66af5dd35",name:"end"}))}static get watchers(){return{meeting:["meetingChanged"],currentParticipantsTabId:["currentParticipantsTabIdChanged"]}}};p([o()],d.prototype,"meeting",void 0),p([o()],d.prototype,"states",void 0),p([o()],d.prototype,"size",void 0),p([o()],d.prototype,"iconPack",void 0),p([o()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n 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%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.ctr.virtualised{overflow-y:hidden}.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-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.search rtk-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;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--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-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))}:host([size='md']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}:host([size='sm']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}.no-pending-requests{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}";export{d as rtk_participants}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as e}from"./p-0ee570cd.js";import{a as s,c as a,q as n}from"./p-9c733fd3.js";import{S as r}from"./p-27478c0c.js";var o=function(t,i,e,s){var a,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(r=(n<3?a(r):n>3?a(i,e,r):a(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const h=class{constructor(i){t(this,i),this.iconPack=s,this.t=a(),this.participantCount=0,this.isViewer=!1,this.disconnectMeeting=t=>{null!=t&&null!=this.countListener&&(t.participants.joined.removeListener("participantJoined",this.countListener),t.participants.joined.removeListener("participantLeft",this.countListener),(null==t?void 0:t.stage)&&this.stageUpdateListener&&t.stage.removeListener("stageStatusUpdate",this.stageUpdateListener),t.self.removeListener("roomJoined",this.countListener))}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}meetingChanged(t,i){this.disconnectMeeting(i),null!=t&&(this.countListener=()=>{this.participantCount=t.participants.joined.size+(t.self.roomJoined?1:0)},this.countListener(),this.isViewer=n(this.meeting),t.participants.joined.addListener("participantJoined",this.countListener),t.participants.joined.addListener("participantLeft",this.countListener),(null==t?void 0:t.stage)&&(this.stageUpdateListener=()=>{this.isViewer=n(this.meeting)},null==t||t.stage.addListener("stageStatusUpdate",this.stageUpdateListener)),t.self.addListener("roomJoined",this.countListener))}render(){return this.isViewer?i(e,{"data-hidden":!0}):i(e,{tabIndex:0,role:"log","aria-label":`${this.participantCount} ${this.t("participants")}`},i("rtk-icon",{icon:this.iconPack.people,tabIndex:-1,"aria-hidden":!0,part:"icon"}),this.participantCount)}static get watchers(){return{meeting:["meetingChanged"]}}};o([r()],h.prototype,"meeting",void 0),o([r()],h.prototype,"iconPack",void 0),o([r()],h.prototype,"t",void 0),o([r()],h.prototype,"size",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:inline-flex;height:var(--rtk-space-10, 40px);-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center}: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)}";export{h as rtk_participant_count}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{d as a,a as n,c as o}from"./p-9c733fd3.js";import{S as r}from"./p-27478c0c.js";var c=function(t,i,s,e){var a,n=arguments.length,o=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(o=(n<3?a(o):n>3?a(i,s,o):a(i,s))||o);return n>3&&o&&Object.defineProperty(i,s,o),o};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=a,this.iconPack=n,this.t=o(),this.captionEnabled=!1,this.permissionsUpdateListener=()=>{var t;this.captionEnabled=null!==(t=this.meeting.self.permissions.transcriptionEnabled)&&void 0!==t&&t}}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){null!==t&&(this.permissionsUpdateListener(),this.meeting.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}toggleCaptions(){this.stateUpdate.emit({activeCaptions:!this.states.activeCaptions,activeMoreMenu:!1})}render(){if(!this.captionEnabled)return null;const t=this.states.activeCaptions;return s(e,{tabIndex:0,role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleCaptions(),icon:t?this.iconPack.captionsOff:this.iconPack.captionsOn,label:this.t(t?"transcript.off":"transcript.on"),variant:this.variant}))}static get watchers(){return{meeting:["meetingChanged"]}}};c([r()],l.prototype,"meeting",void 0),c([r()],l.prototype,"states",void 0),c([r()],l.prototype,"iconPack",void 0),c([r()],l.prototype,"size",void 0),c([r()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_caption_toggle}
@@ -0,0 +1 @@
1
+ import{r as o,h as t,H as r}from"./p-0ee570cd.js";import{S as a}from"./p-27478c0c.js";import{a as e}from"./p-9c733fd3.js";const i=class{constructor(t){o(this,t),this.iconPack=e}render(){return t(r,{key:"3dc48c8a69876a68b038340a948057dd04a5e9ef"},t("div",{key:"1f5a9c5379f882b249dee77376959d9b4de09d0b",class:"tooltip-container"},t("rtk-icon",{key:"cb0232b6e72f565895d3027747f957cba0e4910f",icon:this.iconPack.info,size:"sm"}),t("div",{key:"35a1b7abbb2026badb606444b330fcb239865d9f",class:"tooltip"},t("slot",{key:"3295df905bcd5c10f31d211e74bf7a0e4413dd87",name:"tootlip-text"}))))}};(function(o,t,r,a){var e,i=arguments.length,c=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(o,t,r,a);else for(var p=o.length-1;p>=0;p--)(e=o[p])&&(c=(i<3?e(c):i>3?e(t,r,c):e(t,r))||c);i>3&&c&&Object.defineProperty(t,r,c)})([a()],i.prototype,"iconPack",void 0),i.style=":host{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer}.tooltip-container{position:relative;display:flex;flex-direction:row;align-items:center}.tooltip-container rtk-icon{cursor:pointer;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.tooltip-container rtk-icon:hover+.tooltip{display:flex !important}.tooltip{position:absolute;margin-left:var(--rtk-space-2, 8px);display:none !important;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));z-index:50;display:flex;min-width:var(--rtk-space-60, 240px);flex-direction:column;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);left:14px}";export{i as rtk_information_tooltip}
@@ -0,0 +1 @@
1
+ import{r as t,w as n,h as a,H as i,c as r}from"./p-0ee570cd.js";import{a as e,c as o,d as s,F as d}from"./p-9c733fd3.js";import{S as p}from"./p-27478c0c.js";import{R as c}from"./p-c8eaa707.js";var l=function(t,n,a,i){var r,e=arguments.length,o=e<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,a,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(e<3?r(o):e>3?r(n,a,o):r(n,a))||o);return e>3&&o&&Object.defineProperty(n,a,o),o};const h=class{constructor(n){t(this,n),this.iconPack=e,this.variant="full",this.t=o(),this.videoDevices=[],this.canProduceVideo=!0,this.stageStateListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.deviceListUpdateListener=({devices:t})=>{this.videoDevices=t.filter((t=>"videoinput"===t.kind))},this.deviceUpdateListener=({device:t})=>{"videoinput"===t.kind&&(this.currentDevice=t)},this.mediaPermissionUpdateListener=async({kind:t,message:n})=>{this.meeting&&"video"===t&&"ACCEPTED"===n&&(this.videoDevices=await this.meeting.self.getVideoDevices())}}meetingChanged(t){var a,i,r;null!=t&&(null===(a=t.self)||void 0===a||a.addListener("deviceListUpdate",this.deviceListUpdateListener),null===(i=t.self)||void 0===i||i.addListener("deviceUpdate",this.deviceUpdateListener),null===(r=t.self)||void 0===r||r.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),n((async()=>{var n,a;const i=await t.self.getVideoDevices(),r=null===(n=t.self.getCurrentDevices())||void 0===n?void 0:n.video;this.videoDevices=null!=r?[null!==(a=i.find((t=>t.deviceId===r.deviceId)))&&void 0!==a?a:r,...i.filter((t=>t.deviceId!==r.deviceId))]:i})))}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,n,a,i,r;null===(n=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===n||n.removeListener("stageStatusUpdate",this.stageStateListener),null===(a=this.meeting)||void 0===a||a.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(r=this.meeting)||void 0===r||r.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener)}async setDevice(t){var n;const a=this.videoDevices.find((n=>n.deviceId===t));this.currentDevice=a,null!=a&&await(null===(n=this.meeting)||void 0===n?void 0:n.self.setDevice(a))}render(){if(null==this.meeting)return null;let t=0;return a(i,null,this.canProduceVideo&&a("div",{class:"group container "+this.variant,part:"camera-selection"},a("label",null,"inline"!==this.variant&&this.t("camera"),a("rtk-icon",{icon:this.iconPack.video_on,size:"sm"})),a("div",{class:"row"},a("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.videoDevices.map((({deviceId:n,label:i})=>{var r;return a("option",{selected:(null===(r=this.currentDevice)||void 0===r?void 0:r.deviceId)===n,value:n},i||"Camera "+ ++t)}))))))}static get watchers(){return{meeting:["meetingChanged"]}}};l([p()],h.prototype,"meeting",void 0),l([p()],h.prototype,"size",void 0),l([p()],h.prototype,"iconPack",void 0),l([p()],h.prototype,"t",void 0),h.style=".rtk-select{--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-1000, 255 255 255))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline.container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}";var v=function(t,n,a,i){var r,e=arguments.length,o=e<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,a,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(e<3?r(o):e>3?r(n,a,o):r(n,a))||o);return e>3&&o&&Object.defineProperty(n,a,o),o};const g=class{constructor(n){t(this,n),this.tileLoad=r(this,"tileLoad",7),this.tileUnload=r(this,"tileUnload",7),this.isPinned=!1,this.mediaConnectionError=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=s,this.variant="solid",this.iconPack=e,this.t=o(),this.onPinned=({isPinned:t})=>{this.isPinned=t},this.isSelf=()=>{var t;return this.isPreview||this.participant.id===(null===(t=this.meeting)||void 0===t?void 0:t.self.id)},this.onPause=t=>{var n,a;this.isSelf()&&(null===(n=this.meeting)||void 0===n?void 0:n.__internals__.features.hasFeature(d.PLAY_PARTICIPANT_TILE_VIDEO_ON_PAUSE))&&(this.meeting.__internals__.logger.warn(`Video player paused for ${this.participant.id} isSelf: ${this.isSelf()}`),null===(a=null==t?void 0:t.target)||void 0===a||a.play())},this.onPlaying=()=>{this.playTimeout&&clearTimeout(this.playTimeout)}}onVideoRef(t){this.participant&&this.meeting&&t!==this.videoEl&&(this.videoEl=t,this.participant.registerVideoElement(this.videoEl,this.isPreview),this.tileLoad.emit({participant:this.participant,videoElement:this.videoEl}))}connectedCallback(){this.meeting?this.meetingChanged(this.meeting):this.participantsChanged(this.participant)}disconnectedCallback(){this.playTimeout&&clearTimeout(this.playTimeout),null!=this.participant&&(this.participant.deregisterVideoElement(this.videoEl,this.isPreview),this.participant.removeListener("pinned",this.onPinned),this.participant.removeListener("unpinned",this.onPinned),this.meeting.meta.off("mediaConnectionUpdate",this.mediaConnectionUpdateListener),this.tileUnload.emit(this.participant))}meetingChanged(t){null!=t&&this.participantsChanged(this.participant)}participantsChanged(t){null!=t&&(void 0!==this.meeting?(this.isPinned=t.isPinned,this.videoEl&&this.participant.registerVideoElement(this.videoEl,this.isPreview),t.addListener("pinned",this.onPinned),t.addListener("unpinned",this.onPinned),this.meeting.meta.on("mediaConnectionUpdate",this.mediaConnectionUpdateListener.bind(this))):this.isPreview&&this.videoEl&&this.participant.registerVideoElement(this.videoEl,this.isPreview))}mediaConnectionUpdateListener(){var t,n,a;const{recv:i,send:r}=null!==(a=null===(n=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===n?void 0:n.mediaState)&&void 0!==a?a:{};this.mediaConnectionError="connected"!==(null==i?void 0:i.state)&&!this.isSelf()||!("connected"===(null==r?void 0:r.state)||!this.isSelf())}isMirrored(){var t;if(null!=this.participant&&this.isSelf()){const n=this.states,a=null===(t=null==n?void 0:n.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof a)return a}return!1}render(){var t,n,r;const e={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return a(i,{key:"3e979a21a98a39b061612531ef9bd644d39a983e"},a("video",{key:"3ba45f4944aafeb8673afc8daa1e15db82ec42b5",ref:t=>this.onVideoRef(t),class:{mirror:this.isMirrored(),[null!==(r=null===(n=null===(t=this.config)||void 0===t?void 0:t.config)||void 0===n?void 0:n.videoFit)&&void 0!==r?r:"cover"]:!0},onPlaying:this.onPlaying,onPause:this.onPause,autoPlay:!0,playsInline:!0,muted:!0,part:"video"}),this.isPinned&&a("rtk-icon",{key:"02ca6b139670e6ac3ac16a24248329a4dc09976d",class:"pinned-icon",icon:this.iconPack.pin,"aria-label":this.t("pinned"),part:"pinned-icon"}),this.mediaConnectionError&&a("div",{key:"5bf2f0b14e7d077b3ebd9bec74291bf746fcf6c9",class:"network-container",part:"network-indicator"},a("rtk-icon",{key:"32ee83f5d08430273ae0bce3424e2e1a3206419a",class:"network-icon",icon:this.iconPack.disconnected,"aria-label":this.t("pinned"),part:"pinned-icon"})),a("slot",{key:"781a75e98ff649fb94672cb7ce4f176ef0c1c090"},a(c,{key:"b756c2269429153fbab8dd3c79978d0a2d3a153d",element:"rtk-participant-tile",defaults:e,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))}static get watchers(){return{meeting:["meetingChanged"],participant:["participantsChanged"]}}};v([p()],g.prototype,"meeting",void 0),v([p()],g.prototype,"states",void 0),v([p()],g.prototype,"size",void 0),v([p()],g.prototype,"iconPack",void 0),v([p()],g.prototype,"t",void 0),g.style=":host {\n line-height: initial;\n font-family: var(--rtk-font-family, sans-serif);\n\n font-feature-settings: normal;\n font-variation-settings: normal;\n}\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n\n:host {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n aspect-ratio: 16 / 9;\n height: var(--rtk-space-56, 224px);\n overflow: hidden;\n border-radius: var(--rtk-border-radius-lg, 12px);\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));\n\n transition-property: var(--rtk-transition-property, all);\n transition-duration: 150ms;\n container-type: inline-size;\n container-name: participanttile;\n}\n\n@media (prefers-reduced-motion) {\n /* No transitions when disabled */\n :host {\n --rtk-transition-property: none;\n }\n}\n\nrtk-avatar {\n z-index: -1;\n}\n\n/**\n NOTE: provided :slotted(rtk-name-tag) & rtk-name-tag separately\n because ::slotted isn't applied on default slots.\n*/\n\n::slotted(rtk-name-tag), \nrtk-name-tag {\n position: absolute;\n left: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n}\n\n:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag), \n :host([size='sm'][variant='solid']) rtk-name-tag {\n left: var(--rtk-space-2, 8px);\n bottom: var(--rtk-space-2, 8px);\n height: var(--rtk-space-4, 16px);\n}\n\n::slotted(rtk-network-indicator), \nrtk-network-indicator {\n position: absolute;\n right: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n}\n\n:host([size='sm']) ::slotted(rtk-network-indicator), \n :host([size='sm']) rtk-network-indicator {\n right: var(--rtk-space-2, 8px);\n bottom: var(--rtk-space-2, 8px);\n}\n\nvideo {\n position: absolute;\n height: 100%;\n width: 100%;\n border-radius: var(--rtk-border-radius-lg, 12px);\n}\n\nvideo.contain {\n -o-object-fit: contain;\n object-fit: contain;\n}\n\nvideo.cover {\n -o-object-fit: cover;\n object-fit: cover;\n}\n\nvideo::-webkit-media-controls {\n display: none !important;\n}\n\n.pinned-icon {\n position: absolute;\n left: var(--rtk-space-3, 12px);\n top: var(--rtk-space-3, 12px);\n height: var(--rtk-space-5, 20px);\n width: var(--rtk-space-5, 20px);\n padding: var(--rtk-space-1, 4px);\n border-radius: var(--rtk-border-radius-md, 8px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));\n}\n\n.network-container {\n position: absolute;\n right: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: var(--rtk-space-2, 8px);\n font-size: 12px;\n border-radius: var(--rtk-border-radius-md, 8px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));\n}\n.network-icon {\n height: var(--rtk-space-5, 20px);\n width: var(--rtk-space-5, 20px);\n --tw-text-opacity: 1;\n color: rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity));\n}\n\n:host([size='sm']) .pinned-icon {\n top: var(--rtk-space-2, 8px);\n left: var(--rtk-space-2, 8px);\n}\n\n:host([variant='gradient']) ::slotted(rtk-audio-visualizer), \n :host([variant='gradient']) rtk-audio-visualizer {\n position: absolute;\n top: var(--rtk-space-2, 8px);\n right: var(--rtk-space-2, 8px);\n border-radius: 9999px;\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));\n padding: var(--rtk-space-2, 8px);\n}\n\n:host([variant='gradient']) ::slotted(rtk-name-tag), \n :host([variant='gradient']) rtk-name-tag {\n bottom: var(--rtk-space-0, 0px);\n left: var(--rtk-space-0, 0px);\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: transparent;\n background-image: linear-gradient(to top, var(--tw-gradient-stops));\n --tw-gradient-from: rgb(var(--rtk-colors-background-1000, 8 8 8));\n --tw-gradient-to: rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n --tw-gradient-to: transparent;\n}\n\nvideo.mirror {\n transform: scaleX(-1);\n}\n\n/** Name tag positions */\n\n:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag), \n :host([name-tag-position='bottom-right']) rtk-name-tag {\n left: auto;\n right: var(--rtk-space-3, 12px);\n}\n\n:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag), \n :host([name-tag-position='bottom-center']) rtk-name-tag {\n left: auto;\n right: auto;\n}\n\n:host([name-tag-position='top-left']) ::slotted(rtk-name-tag), \n :host([name-tag-position='top-left']) rtk-name-tag {\n top: var(--rtk-space-3, 12px);\n bottom: auto;\n}\n\n:host([name-tag-position='top-right']) ::slotted(rtk-name-tag), \n :host([name-tag-position='top-right']) rtk-name-tag {\n top: var(--rtk-space-3, 12px);\n right: var(--rtk-space-3, 12px);\n left: auto;\n bottom: auto;\n}\n\n:host([name-tag-position='top-center']) ::slotted(rtk-name-tag), \n :host([name-tag-position='top-center']) rtk-name-tag {\n left: auto;\n right: auto;\n bottom: auto;\n top: var(--rtk-space-3, 12px);\n}\n\n@media only screen and (max-height: 480px) and (orientation: landscape) {\n :host([size='sm']) {\n border-radius: var(--rtk-border-radius-sm, 4px);\n }\n\n :host([size='sm']) > video {\n border-radius: var(--rtk-border-radius-sm, 4px);\n }\n\n ::slotted(rtk-avatar), \n rtk-avatar {\n height: var(--rtk-space-12, 48px);\n width: var(--rtk-space-12, 48px);\n }\n :host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),\n :host([size='sm'][variant='solid']) rtk-name-tag {\n transform-origin: -2% 100%;\n transform: scale(0.6);\n z-index: 10;\n left: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n border-radius: var(--rtk-border-radius-none, 0);\n }\n}\n\n@media only screen and (max-width: 480px) and (orientation: portrait) {\n :host([size='sm']) {\n border-radius: var(--rtk-border-radius-sm, 4px);\n }\n\n :host([size='sm']) > video {\n border-radius: var(--rtk-border-radius-sm, 4px);\n }\n\n ::slotted(rtk-avatar), \n rtk-avatar {\n height: var(--rtk-space-12, 48px);\n width: var(--rtk-space-12, 48px);\n }\n :host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),\n :host([size='sm'][variant='solid']) rtk-name-tag {\n transform-origin: -5% 110%;\n transform: scale(0.6);\n z-index: 10;\n left: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n border-radius: var(--rtk-border-radius-none, 0);\n }\n}\n\n@container participanttile (max-width: 300px) {\n ::slotted(rtk-name-tag),\n rtk-name-tag {\n transform-origin: 0 100%;\n transform: scale(0.8);\n }\n\n ::slotted(rtk-avatar), \n rtk-avatar {\n height: var(--rtk-space-8, 32px) !important;\n width: var(--rtk-space-8, 32px) !important;\n }\n}\n\n@container participanttile (max-width: 150px) {\n ::slotted(rtk-name-tag),\n rtk-name-tag[variant='solid'] {\n transform-origin: -10% 130%;\n transform: scale(0.6);\n z-index: 10;\n border-radius: 9999px;\n }\n\n ::slotted(rtk-avatar), \n rtk-avatar {\n height: 6 !important;\n width: 6 !important;\n }\n}\n";export{h as rtk_camera_selector,g as rtk_participant_tile}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as o}from"./p-0ee570cd.js";import{a as e,c as a,o as r}from"./p-9c733fd3.js";import{S as n}from"./p-27478c0c.js";var c=function(t,i,s,o){var e,a=arguments.length,r=a<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,o);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(r=(a<3?e(r):a>3?e(i,s,r):e(i,s))||r);return a>3&&r&&Object.defineProperty(i,s,r),r};const l=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=a(),this.canToggle=!1,this.permissionsUpdateListener=()=>{this.canToggle=r(this.meeting)},this.breakoutRoomToggle=()=>{var t,i;this.stateUpdate.emit({activeBreakoutRoomsManager:{active:!(null===(i=null===(t=this.states)||void 0===t?void 0:t.activeBreakoutRoomsManager)||void 0===i?void 0:i.active),mode:this.meeting.connectedMeetings.isActive?"view":"create"}})}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,s;null===(s=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===s||s.off("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){t&&(this.canToggle=r(t),t.self.permissions.on("permissionsUpdate",this.permissionsUpdateListener))}render(){if(this.canToggle)return s(o,{title:this.t("breakout_rooms")},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:this.breakoutRoomToggle,icon:this.iconPack.breakout_rooms,label:this.t("breakout_rooms"),variant:this.variant}))}static get watchers(){return{meeting:["meetingChanged"]}}};c([n()],l.prototype,"meeting",void 0),c([n()],l.prototype,"states",void 0),c([n()],l.prototype,"size",void 0),c([n()],l.prototype,"iconPack",void 0),c([n()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{l as rtk_breakout_rooms_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,h as r,H as i}from"./p-0ee570cd.js";import{a,c as o}from"./p-9c733fd3.js";import{S as s}from"./p-27478c0c.js";import{d as e}from"./p-cbdd7a99.js";var n=function(t,r,i,a){var o,s=arguments.length,e=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(e=(s<3?o(e):s>3?o(r,i,e):o(r,i))||e);return s>3&&e&&Object.defineProperty(r,i,e),e};const c=class{constructor(r){t(this,r),this.variant="rounded",this.iconPack=a,this.t=o(),this.page=1,this.pageCount=0,this.activeCount=0,this.activeComputedCount=0,this.showPagination=!1,this.onPageChanged=({currentPage:t,pageCount:r})=>{this.pageCount=r,this.page=t},this.toggleGridPagination=e((()=>{var t;const{self:r,participants:i}=this.meeting,{mobile:a,desktop:o}=null===(t=r.config)||void 0===t?void 0:t.maxVideoStreams,s="sm"===this.size?a:o,e=i.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus)).length;this.showPagination=!(e<s)}),50),this.onParticipantJoin=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onParticipantLeave=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onStateStatusUpdate=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.prevPage=()=>{if(null==this.meeting)return;const{participants:t}=this.meeting;this.page>1?t.setPage(this.page-=1):"PAGINATED"===t.viewMode&&t.setViewMode("ACTIVE_GRID")},this.nextPage=()=>{if(null==this.meeting)return;const{participants:t}=this.meeting;this.page>0&&this.page<this.pageCount?t.setPage(this.page+=1):t.count>0&&0===this.pageCount&&t.setViewMode("PAGINATED")}}connectedCallback(){this.meetingChanged(this.meeting),this.sizeChanged()}disconnectedCallback(){if(null==this.meeting)return;const{participants:t,stage:r}=this.meeting;t.removeListener("pageChanged",this.onPageChanged),t.removeListener("viewModeChanged",this.onPageChanged),t.joined.removeListener("participantJoined",this.onParticipantJoin),t.joined.removeListener("participantLeft",this.onParticipantLeave),t.joined.removeListener("stageStatusUpdate",this.onStateStatusUpdate),r.removeListener("stageStatusUpdate",this.onStateStatusUpdate)}meetingChanged(t){if(null!=t){const{stage:r,participants:i}=t;this.page=i.currentPage,this.pageCount=i.pageCount,i.addListener("viewModeChanged",this.onPageChanged),i.addListener("pageChanged",this.onPageChanged),i.joined.addListener("participantJoined",this.onParticipantJoin),i.joined.addListener("participantLeft",this.onParticipantLeave),i.joined.addListener("stageStatusUpdate",this.onStateStatusUpdate),r.addListener("stageStatusUpdate",this.onStateStatusUpdate),this.activeCount=this.meeting.participants.joined.size,this.activeComputedCount=this.meeting.participants.joined.size,this.toggleGridPagination()}}sizeChanged(){this.toggleGridPagination()}render(){const{meta:t}=this.meeting;return"AUDIO_ROOM"!==(null==t?void 0:t.viewType)&&this.showPagination?r(i,null,r("rtk-button",{class:"prev",variant:"secondary",kind:"icon",disabled:0===this.pageCount,onClick:this.prevPage,"aria-label":this.t("page.prev")},r("rtk-icon",{icon:this.iconPack.chevron_left})),"grid"!==this.variant&&r("div",{class:"center"},r("span",{class:"page"},0===this.pageCount?r("rtk-tooltip",{label:this.t("layout.auto")},r("rtk-button",{kind:"icon",class:"auto"},r("rtk-icon",{icon:this.iconPack.wand}))):this.page),0!==this.pageCount&&[r("span",{class:"slash"},"/"),r("span",{class:"pages"},this.pageCount)]),"grid"===this.variant&&this.pageCount>0&&r("div",{class:"dots"},[...Array(this.pageCount)].map(((t,i)=>r("div",{key:`dot-${i}`,class:{dot:!0,active:i+1===this.page}})))),r("rtk-button",{class:"next",variant:"secondary",kind:"icon",disabled:0!==this.page&&this.page===this.pageCount,onClick:this.nextPage,"aria-label":this.t("page.next")},r("rtk-icon",{icon:this.iconPack.chevron_right,tabIndex:-1,"aria-hidden":!0}))):r(i,{"data-hidden":!0})}static get watchers(){return{meeting:["meetingChanged"],size:["sizeChanged"]}}};n([s()],c.prototype,"meeting",void 0),n([s()],c.prototype,"states",void 0),n([s()],c.prototype,"size",void 0),n([s()],c.prototype,"iconPack",void 0),n([s()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;font-size:16px}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}:host([size='sm']) .center{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px)}:host([size='sm']) rtk-button{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) rtk-button rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}rtk-button{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.center{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.center .page{color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.center .slash{margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-0\\.5, 2px)}.center .pages{align-self:flex-end;font-size:12px}:host([variant='rounded']){overflow:hidden;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button{border-radius:9999px;border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='rounded']) rtk-button:not([disabled]):hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button:not([disabled]):focus{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='grid']) rtk-button{position:absolute;top:50%;height:var(--rtk-space-20, 80px);width:var(--rtk-space-20, 80px);opacity:0.2;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='grid']) rtk-button:hover{opacity:1}:host([variant='grid']) rtk-button{transform:translateY(-50%)}:host([variant='grid']) rtk-button.prev{left:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) rtk-button.next{right:var(--rtk-space-0, 0px);border-top-left-radius:9999px;border-bottom-left-radius:9999px}:host([variant='grid']) rtk-button.auto{left:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) .dots{position:absolute;left:50%;bottom:var(--rtk-space-3, 12px);display:flex;align-items:center;transform:translateX(-50%)}:host([variant='grid']) .dots .dot{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-2, 8px);width:var(--rtk-space-2, 8px);cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([variant='grid']) .dots .dot:last-child{margin-right:var(--rtk-space-0, 0px)}:host([variant='grid']) .dots .dot.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host([variant='grid'][size='sm']) rtk-button{height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);opacity:0.1}";export{c as rtk_grid_pagination}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as a,H as r}from"./p-0ee570cd.js";import{a as s,c as o}from"./p-9c733fd3.js";import{S as i}from"./p-27478c0c.js";var c=function(t,e,a,r){var s,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,a,r);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(i=(o<3?s(i):o>3?s(e,a,i):s(e,a))||i);return o>3&&i&&Object.defineProperty(e,a,i),i};const f=class{constructor(a){t(this,a),this.stateUpdate=e(this,"rtkStateUpdate",7),this.iconPack=s,this.t=o()}render(){return a(r,{key:"c28c425c3619477e0e9234f42ec5711a49d27a43"},a("slot",{key:"8a4210ce0af731affd16bdab0258135f71b6408f"}))}};c([i()],f.prototype,"iconPack",void 0),c([i()],f.prototype,"t",void 0),f.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;position:relative;overflow:hidden}";export{f as rtk_stage}
@@ -0,0 +1 @@
1
+ import{r as t,h as i,H as e}from"./p-0ee570cd.js";import{c as a,a as r}from"./p-9c733fd3.js";import{S as n}from"./p-27478c0c.js";var c=function(t,i,e,a){var r,n=arguments.length,c=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,e,a);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(n<3?r(c):n>3?r(i,e,c):r(i,e))||c);return n>3&&c&&Object.defineProperty(i,e,c),c};const s=class{constructor(i){t(this,i),this.t=a(),this.iconPack=r,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(e,{key:"3919ce20c5524d477536f62b9dd5abe8c1d49c37","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"c482fdc00ff90f8ae2841f8d469f3b54704b6615",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"75663e533fe47c5ad2e5d55db5d8a027fc12220c",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"99d4cc0c9ce7388808b643b0bcce27883d2b4643"},this.t("recording.label"))))}static get watchers(){return{meeting:["meetingChanged"]}}};c([n()],s.prototype,"meeting",void 0),c([n()],s.prototype,"size",void 0),c([n()],s.prototype,"t",void 0),c([n()],s.prototype,"iconPack",void 0),s.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}:host[size='sm']{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px)}.indicator{display:flex;flex-direction:row;align-items:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);animation:blink 4s linear infinite}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='sm']) .indicator span{display:none}@keyframes blink{0%,10%{opacity:0}11%,100%{opacity:1}}";export{s as rtk_recording_indicator}
@@ -0,0 +1 @@
1
+ import{r,h as t,H as a}from"./p-0ee570cd.js";import{c as e}from"./p-9c733fd3.js";import{C as o}from"./p-0b1fabf5.js";import{s}from"./p-0752f2ba.js";import{S as i}from"./p-27478c0c.js";import{c}from"./p-c15d924f.js";import"./p-338c7261.js";import"./p-46923b34.js";import"./p-2c3cda13.js";var n=function(r,t,a,e){var o,s=arguments.length,i=s<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,t,a,e);else for(var c=r.length-1;c>=0;c--)(o=r[c])&&(i=(s<3?o(i):s>3?o(t,a,i):o(t,a))||i);return s>3&&i&&Object.defineProperty(t,a,i),i};const d=class{constructor(t){r(this,t),this.participantQuery="",this.isProcessing=!1,this.t=e(),this.transcriptions=[],this.autoScrollEnabled=!0,this.onScroll=r=>{const{scrollTop:t,clientHeight:a,scrollHeight:e}=r.target;this.autoScrollEnabled=t+a+10>=e},this.onTranscriptHandler=r=>{this.transcriptions=this.transcriptionsReducer(this.transcriptions,r)}}transcriptionsReducer(r,t){if(!r.length||r[r.length-1].peerId!==t.peerId)return r.concat(t);const a=r[r.length-1];return a.id===t.id?(a.transcript=t.transcript,r.pop(),r.concat(a)):r.concat(t)}connectedCallback(){this.meeting&&this.meetingChanged(this.meeting)}componentDidLoad(){var r;null===(r=this.contentContainer)||void 0===r||r.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var r,t,a;null===(t=null===(r=this.meeting)||void 0===r?void 0:r.ai)||void 0===t||t.off("transcript",this.onTranscriptHandler),null===(a=this.contentContainer)||void 0===a||a.removeEventListener("scroll",this.onScroll)}meetingChanged(r){var t,a;this.transcriptions=c(null===(t=null==r?void 0:r.ai)||void 0===t?void 0:t.transcripts),this.transcriptions=this.transcriptions.reduce(this.transcriptionsReducer,[]),null===(a=null==r?void 0:r.ai)||void 0===a||a.on("transcript",this.onTranscriptHandler)}transcriptionsChanged(){this.autoScrollEnabled&&setTimeout((()=>{s(this.contentContainer,!1)}),100)}renderTranscripts(){const r=this.transcriptions.filter((r=>!this.participantQuery||r.name.toLowerCase().includes(this.participantQuery.toLowerCase()))),a=[];return r.forEach((r=>{const t={name:r.name,date:r.date,peerId:r.peerId,transcript:r.transcript};if(!a.length)return void a.push(t);const e=a[a.length-1];r.peerId===e.peerId?e.transcript+=" "+r.transcript:a.push(t)})),a.map((r=>t("div",{class:"message"},t(o,{name:r.name,time:new Date(r.date),now:new Date}),t("div",{class:"body"},r.transcript))))}render(){return t(a,{key:"12573001a05a586495a63ecd420f99ad04ce780f"},t("div",{key:"2a51f65ba7cd339aee33291c77cdf9f5d69b8f07",class:"search-bar"},t("input",{key:"6cb5505e84ddff6e39c29012752a7309f715505c",type:"text",placeholder:"Search Participant",value:this.participantQuery,onInput:r=>this.participantQuery=r.target.value})),this.isProcessing&&t("div",{key:"b7f1c33aae0d2613e28dc328e5ccfd92ad067576",class:"processing"},t("p",{key:"ae8dc349ff7017a92b9c15e8c8ab051313c07e67"},"Processing audio....")),!this.isProcessing&&t("div",{key:"f5d9e637661b2b10dd323c6b9d6fa7381fd7768c",class:"content scrollbar",ref:r=>this.contentContainer=r},t("div",{key:"a029f8903f82deab573e2372f1c645de98fbc417",class:"started-message"},"Transcription started"),this.renderTranscripts()))}static get watchers(){return{meeting:["meetingChanged"],transcriptions:["transcriptionsChanged"]}}};n([i()],d.prototype,"t",void 0),n([i()],d.prototype,"meeting",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.head{display:flex;align-items:center}.head .name{margin-right:var(--rtk-space-4, 16px);font-size:12px;font-weight:700}.head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n 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)))}*{box-sizing:border-box;border-width:0;border-style:solid}:host{width:100%;display:flex;flex-direction:column}.processing{display:flex;flex:1 1 0%;flex-direction:column;align-items:center;justify-content:center}.content{box-sizing:border-box;display:flex;flex-direction:column;padding:var(--rtk-space-3, 12px);flex:1 0 0px;overflow-y:scroll}.started-message{margin-top:var(--rtk-space-5, 20px);margin-bottom:var(--rtk-space-5, 20px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.search-bar{height:var(--rtk-space-14, 56px);width:100%;border-bottom-width:var(--rtk-border-width-sm, 1px);--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));padding:var(--rtk-space-3, 12px)}input{height:100%;width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.caption-view{height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));display:flex;align-items:center;justify-content:space-between;font-size:14px}.message .body{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);font-size:14px;word-break:break-word}.message{margin-bottom:var(--rtk-space-3, 12px)}.message:last-child{margin-bottom:var(--rtk-space-0, 0px)}";export{d as rtk_ai_transcriptions}
@@ -0,0 +1 @@
1
+ import{r as t,w as i,h as s,H as e,a as r}from"./p-0ee570cd.js";import{d as n,c as a}from"./p-9c733fd3.js";import{S as o}from"./p-27478c0c.js";import{c}from"./p-c15d924f.js";import"./p-46923b34.js";import"./p-2c3cda13.js";var h=function(t,i,s,e){var r,n=arguments.length,a=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(n<3?r(a):n>3?r(i,s,a):r(i,s))||a);return n>3&&a&&Object.defineProperty(i,s,a),a};const d=class{constructor(i){t(this,i),this.config=n,this.t=a(),this.transcripts=[],this.listenerAttached=!1,this.onTranscript=t=>{t.transcript&&this.add(t)}}connectedCallback(){this.meetingChanged(this.meeting)}addListener(t){var i;null===(i=null==t?void 0:t.ai)||void 0===i||i.addListener("transcript",this.onTranscript),this.listenerAttached=!0}clearListeners(t){var i;this.onTranscript&&(null===(i=null==t?void 0:t.ai)||void 0===i||i.removeListener("transcript",this.onTranscript)),this.listenerAttached=!1,clearTimeout(this.disconnectTimeout),this.transcripts=[]}disconnectedCallback(){null!=this.meeting&&this.clearListeners(this.meeting)}meetingChanged(t,i){clearTimeout(this.disconnectTimeout),void 0!==i&&this.clearListeners(i),null!=t&&this.states.activeCaptions&&this.addListener(t)}statesChanged(t){t&&(t.activeCaptions&&!this.listenerAttached&&this.addListener(this.meeting),!t.activeCaptions&&this.listenerAttached&&this.clearListeners(this.meeting))}transcriptionsReducer(t,i){if(!t.length)return[i];let s=t[t.length-1];return s.peerId!==i.peerId?t.concat(i):s.id===i.id?(s.transcript=i.transcript,t.pop(),t.concat(c(s))):t.concat(i)}add(t){this.transcripts=this.transcriptionsReducer(this.transcripts,t)}remove(t){this.transcripts=this.transcripts.filter((i=>i.renderedId!==t))}handleDismiss(t){t.stopPropagation();const{id:s,renderedId:e}=t.detail,r=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==r||r.classList.add("exit"),setTimeout((()=>{i((()=>{this.remove(e)}))}),400)}renderTranscripts(){const t=[];return this.transcripts.forEach((i=>{const s={name:i.name,date:i.date,peerId:i.peerId,transcript:i.transcript,id:i.id,renderedId:i.id};if(!t.length)return i.renderedId=s.renderedId,void t.push(s);const e=t[t.length-1];if(e.transcript.length+s.transcript.length>400||e.peerId!==i.peerId)return i.renderedId=s.renderedId,void t.push(s);e.transcript+=" "+i.transcript,i.renderedId=e.renderedId})),t.splice(0,t.length-2),null==t?void 0:t.map((t=>s("rtk-transcript",{key:t.id,"data-id":t.id,transcript:t,onRtkTranscriptDismiss:t=>this.handleDismiss(t),t:this.t})))}render(){if(this.states.activeCaptions)return s(e,null,this.renderTranscripts())}get host(){return r(this)}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"]}}};h([o()],d.prototype,"meeting",void 0),h([o()],d.prototype,"states",void 0),h([o()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;justify-content:center;width:100%;z-index:5}rtk-transcript{margin-top:var(--rtk-space-2, 8px)}";export{d as rtk_transcripts}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as r}from"./p-0ee570cd.js";import{d as a,a as s,c as i}from"./p-9c733fd3.js";import{S as o}from"./p-27478c0c.js";var n=function(t,e,r,a){var s,i=arguments.length,o=i<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,r,o):s(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o};const c=class{constructor(e){t(this,e),this.config=a,this.icon=s,this.t=i(),this.iconPack=s,this.message=""}connectedCallback(){this.statesChanged(this.states)}getBreakoutRoomsMessage(t){var e;let r;return"connected-meeting"===(null==t?void 0:t.roomLeftState)&&(r=(null===(e=this.states.activeBreakoutRoomsManager)||void 0===e?void 0:e.destinationMeetingId)===this.meeting.connectedMeetings.parentMeeting.id?"breakout_rooms.move_reason.switch_main_room":"breakout_rooms.move_reason.switch_room"),r}statesChanged(t){if(null!=t)switch(null==t?void 0:t.roomLeftState){case"left":this.message="ended.left";break;case"kicked":this.message="ended.kicked";break;case"disconnected":this.message="ended.disconnected";break;case"rejected":this.message="ended.rejected";break;case"connected-meeting":this.message=this.getBreakoutRoomsMessage(t);break;case"unauthorized":this.message="ended.unauthorized";break;default:this.message="ended"}}renderBreakoutRoomScreen(){return e(r,null,e("div",{class:"ctr",part:"container"},e("rtk-icon",{icon:this.iconPack.breakout_rooms}),e("p",{part:"message",class:"breakout"},this.t(this.message))))}render(){const t=this.states;return"connected-meeting"===t.roomLeftState?this.renderBreakoutRoomScreen():e(r,null,e("div",{class:"ctr",part:"container"},e("rtk-logo",{meeting:this.meeting,config:this.config,part:"logo",t:this.t}),e("p",{part:"message"},this.t(this.message)),"disconnected"===(null==t?void 0:t.roomLeftState)&&e("span",{part:"description"},this.t("ended.network"))))}static get watchers(){return{states:["statesChanged"]}}};n([o()],c.prototype,"size",void 0),n([o()],c.prototype,"states",void 0),n([o()],c.prototype,"t",void 0),n([o()],c.prototype,"iconPack",void 0),n([o()],c.prototype,"meeting",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex-direction:column;align-items:center;justify-content:center}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}.rejoin-button{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-6, 24px);padding-bottom:var(--rtk-space-6, 24px);padding-left:var(--rtk-space-16, 64px);padding-right:var(--rtk-space-16, 64px)}.rejoin-icon{margin-right:var(--rtk-space-2, 8px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}p.breakout{font-size:20px;display:flex;flex-direction:column;align-items:center}p.breakout span{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-0, 0px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}span{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}";export{c as rtk_ended_screen}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,H as s}from"./p-0ee570cd.js";import{d as o,a,c as n}from"./p-9c733fd3.js";import{S as r}from"./p-27478c0c.js";var c=function(t,i,e,s){var o,a=arguments.length,n=a<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(a<3?o(n):a>3?o(i,e,n):o(i,e))||n);return a>3&&n&&Object.defineProperty(i,e,n),n};const h=class{constructor(e){t(this,e),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.config=o,this.iconPack=a,this.t=n(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,e,s;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode)&&"LIVESTREAM"!==(null===(s=t.self.config)||void 0===s?void 0:s.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.pipSupported)return e(s,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return e(s,{role:"log","aria-label":"Picture-in-Picture mode"},e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}static get watchers(){return{meeting:["meetingChanged"]}}};c([r()],h.prototype,"meeting",void 0),c([r()],h.prototype,"states",void 0),c([r()],h.prototype,"iconPack",void 0),c([r()],h.prototype,"size",void 0),c([r()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{h as rtk_pip_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as i,H as r}from"./p-0ee570cd.js";import{s as a}from"./p-338c7261.js";import{d as o,a as s,c,k as n}from"./p-9c733fd3.js";import{R as d}from"./p-c8eaa707.js";import{S as l}from"./p-27478c0c.js";var p=function(t,e,i,r){var a,o=arguments.length,s=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,r);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(o<3?a(s):o>3?a(e,i,s):a(e,i))||s);return o>3&&s&&Object.defineProperty(e,i,s),s};const h=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.config=o,this.iconPack=s,this.t=c(),this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,e,i;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){this.isJoining=!0,null===(e=this.meeting)||void 0===e||e.self.setName(this.displayName),n.setItem("rtk-display-name",this.displayName);try{await(null===(i=this.meeting)||void 0===i?void 0:i.joinRoom())}catch(t){this.isJoining=!1}}}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting.meta.removeListener("socketConnectionUpdate",this.socketStateUpdate)}componentDidLoad(){var t;null===(t=this.inputEl)||void 0===t||t.focus()}meetingChanged(t){var e,i,r;t&&(this.connectionState=null===(e=t.meta.socketState)||void 0===e?void 0:e.state,this.canEditName=null===(i=t.self.permissions.canEditDisplayName)||void 0===i||i,this.displayName=(null===(r=t.self.name)||void 0===r?void 0:r.trim())||(this.canEditName?"":"Participant"),t.meta.addListener("socketConnectionUpdate",this.socketStateUpdate))}render(){var t,e,o;const s=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,c={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t};return i(r,{key:"4d337a1e3a71a0651fa082a149298129dd7b984a"},i("div",{key:"24fda5fbca3b4dd0092031d54b90632a20ecc287",class:"container"},i("div",{key:"c1d947c44ba11b69f9679c03cd7423581e427a04",class:"container-tile"},i(d,{key:"5fe4a9507ed599f08f808f0cf295c1504ac43799",element:"rtk-participant-tile",defaults:c,props:{participant:null===(e=this.meeting)||void 0===e?void 0:e.self,size:"md",isPreview:!0},childProps:{participant:null===(o=this.meeting)||void 0===o?void 0:o.self,size:"md"},deepProps:!0}),i("div",{key:"f0b35c6d5354c3416e72132d53bdda9fd770505b",class:"media-selectors"},i("rtk-microphone-selector",Object.assign({key:"daec71962a0d368e91fa7d410c09be0321d6e7e1"},c,{variant:"inline"})),i("rtk-camera-selector",Object.assign({key:"b61f2afe68d92c48a199bcb22e1df124c392c22d"},c,{variant:"inline"})),i("rtk-speaker-selector",Object.assign({key:"8368f850725151e63ff390a2a721164e8923a762"},c,{variant:"inline"})))),i("div",{key:"d29f5f5e680e4614cf5ee378a1533c0e1235cf7c",class:"metadata"},i("div",{key:"c0b7e8ef018d34f447775f55e8244927314d70c3",class:"name"},this.t("setup_screen.join_in_as")),i("div",{key:"a45332643ef73dd286e48d2ba9b6bddd9625ab60",class:"label"},i("div",{key:"71633d8d8987bafaa054edace2a18a9960d45f48",class:"name"},!this.canEditName&&a(this.displayName,20))),this.canEditName&&i("input",{key:"b7609fa43a59a637c14f32c7ad7cde8f67b04bc2",placeholder:this.t("setup_screen.your_name"),value:this.displayName,spellcheck:!1,autoFocus:!0,ref:t=>{this.inputEl=t},onInput:t=>{this.displayName=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.join()}}),i("rtk-button",{key:"16599f17361ab91cee7af782e18ac55a75de2f95",size:"lg",kind:"wide",onClick:this.join,disabled:s},this.isJoining?i("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),"connected"!==this.connectionState&&i("div",{key:"ce111c7cbcd7ce227bd5eda1d9498621f5de0286",class:"no-network-badge"},i("rtk-icon",{key:"3de05287a1657febc620285394299557042e5218",size:"md",variant:"danger",icon:this.iconPack.disconnected}),this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")))))}static get watchers(){return{meeting:["meetingChanged"]}}};p([l()],h.prototype,"meeting",void 0),p([l()],h.prototype,"states",void 0),p([l()],h.prototype,"size",void 0),p([l()],h.prototype,"iconPack",void 0),p([l()],h.prototype,"t",void 0),h.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;padding:var(--rtk-space-4, 16px);height:100%;min-height:100%;width:100%;display:flex;place-items:center;justify-content:center;--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-700, 44 44 44))}.container{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-evenly;gap:var(--rtk-space-4, 16px)}.metadata{width:100%;max-width:var(--rtk-space-80, 320px)}.label{display:flex;flex-direction:column;align-items:center;font-size:14px}.label p{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-2, 8px);display:inline-block;font-size:16px}.container-tile{display:flex;height:100%;width:100%;max-width:584px;flex-direction:column;gap:var(--rtk-space-2, 8px)}.name{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:28px;font-weight:500;letter-spacing:-0.025em;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}input{margin-bottom:var(--rtk-space-6, 24px);display:block;height:var(--rtk-space-10, 40px);width:100%;max-width:var(--rtk-space-80, 320px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));box-sizing:border-box;font-size:16px;outline:2px solid transparent;outline-offset:2px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}rtk-spinner{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--icon-size:var(--rtk-space-8, 32px)}:host([size='sm']) .container,:host([size='md']) .container{height:100%;flex-direction:column;justify-content:space-evenly}:host([size='sm']) .container-tile,:host([size='md']) .container-tile{height:-moz-min-content;height:min-content;flex-direction:column;justify-content:center}rtk-participant-tile{height:auto;width:100%;max-width:584px}.media-selectors{display:flex;flex-direction:column;justify-content:space-between}.media-selectors .row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr))}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}";export{h as rtk_setup_screen}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,a as h}from"./p-0ee570cd.js";import{d as n,l as o,u as a}from"./p-9c733fd3.js";import{g as d,p as r,d as c}from"./p-4ad4a43b.js";import{g}from"./p-96be234f.js";import"./p-46923b34.js";import"./p-2c3cda13.js";const m=class{constructor(s){t(this,s),this.statesUpdate=i(this,"rtkStatesUpdate",7),this.config=n,this.showSetupScreen=!1,this.noRenderUntilMeeting=!1,this.handleResize=()=>{this.size=g(this.host.clientWidth)},this.loadTheme=()=>{var t;if(this.config===n){const{config:t}=d(this.meeting.self.config,this.meeting);this.config=t}(null===(t=this.config)||void 0===t?void 0:t.designTokens)&&r(document.documentElement,this.config.designTokens)},this.roomJoinedListener=()=>{this.updateStates({meeting:"joined"})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:i})=>{!["audio","video"].includes(t)||"DENIED"!==i&&"SYSTEM_DENIED"!==i||!0===o.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),1e4)},this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},o.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}listenState(t){this.updateStates(t.detail)}updateStates(t){const i=Object.assign({},o.states);o.states=c(i,t),this.statesUpdate.emit(o.states)}connectedCallback(){"undefined"!=typeof window&&(this.authErrorListener=t=>{t.detail.message.includes("401")&&this.updateStates({meeting:"ended",roomLeftState:"unauthorized"})},window.addEventListener("rtkError",this.authErrorListener)),this.onMeetingChange(this.meeting),this.onIconPackChange(this.iconPack),this.onTChange(this.t),this.onConfigChange(this.config),this.onSizeChange(this.size),this.resizeObserver=new ResizeObserver((()=>this.handleResize())),this.resizeObserver.observe(this.host)}disconnectedCallback(){this.resizeObserver.disconnect(),window.removeEventListener("rtkError",this.authErrorListener),this.meeting&&(this.meeting.self.removeListener("roomLeft",this.roomLeftListener),this.meeting.self.removeListener("roomJoined",this.roomJoinedListener),this.meeting.self.removeListener("waitlisted",this.waitlistedListener),this.meeting.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.meeting.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}onMeetingChange(t){a.state.meeting=t,t&&(this.updateStates({viewType:t.meta.viewType}),this.loadTheme(),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.supportsConnectedMeetings&&t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.joinRoom(),window.removeEventListener("rtkError",this.authErrorListener))}onIconPackChange(t){a.state.iconPack=t}onTChange(t){a.state.t=t}onConfigChange(t){a.state.config=t}onSizeChange(t){a.state.size=t}render(){return s(e,{key:"a421f032438ed827ad90bafeafa6c6029eea1bcb"},this.noRenderUntilMeeting&&!this.meeting?null:s("slot",null))}get host(){return h(this)}static get watchers(){return{meeting:["onMeetingChange"],iconPack:["onIconPackChange"],t:["onTChange"],config:["onConfigChange"],size:["onSizeChange"]}}};m.style="rtk-ui-provider{display:block;width:100%;height:100%}";export{m as rtk_ui_provider}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as i,w as a,c as r}from"./p-0ee570cd.js";import{h as s}from"./p-3f882e7c.js";import{a as o,c as n,e as c}from"./p-9c733fd3.js";import{S as l}from"./p-27478c0c.js";const d=(t,e)=>{if(null==t)return;const i=Math.round(1.5),a=[...Array(3)].map(((t,a)=>{let r=a;return r>i-1&&(r=3-r-1),Math.round((r+1)/(i+1)*e)})),{width:r,height:s}=t,o=t.getContext("2d");let n=2;const c=1*r/a.length,l=c-4;o.clearRect(0,0,r,s),o.fillStyle="rgb(0,0,0,0.0)",o.fillRect(0,0,r,s);const d=getComputedStyle(t).getPropertyValue("color");o.fillStyle=d,o.strokeStyle=d,o.lineCap="round",o.lineWidth=4,o.beginPath();for(const t of a){const e=Math.min(-Math.abs(1.2*t/10*s)+s/2,s/2-2.5),i=Math.max(2*(s/2-e),5);o.moveTo(n+l/2,e),o.lineTo(n+l/2,e+i),n+=c}o.stroke()};var h=function(t,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const p=class{constructor(e){t(this,e),this.variant="bars",this.iconPack=o,this.t=n(),this.hideMuted=!1,this.isScreenShare=!1,this.volume=0}connectedCallback(){this.participantChanged(this.participant)}componentDidLoad(){d(this.visualizer,0)}disconnectedCallback(){var t,e,i;null===(t=this.hark)||void 0===t||t.stop(),this.audioUpdateListener&&(null===(e=this.participant)||void 0===e||e.removeListener("audioUpdate",this.audioUpdateListener)),this.screenShareUpdateListener&&(null===(i=this.participant)||void 0===i||i.removeListener("screenShareUpdate",this.screenShareUpdateListener))}participantChanged(t){null!=t&&(this.audioUpdateListener=({audioEnabled:t,audioTrack:e})=>{var i;if(null===(i=this.hark)||void 0===i||i.stop(),t&&null!=e){this.audioEnabled=!0;const t=new MediaStream;t.addTrack(e),this.calcVolume(t),d(this.visualizer,0)}else this.volume=0,this.audioEnabled=!1},this.isScreenShare?(this.screenShareUpdateListener=({screenShareEnabled:t,screenShareTracks:e})=>{this.audioUpdateListener({audioEnabled:t&&null!=e.audio,audioTrack:e.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=s(t,{play:!1,interval:100}),this.hark.on("volume_change",(t=>{const e=this.volume;let i=Math.round(10**(t/115)*10);i<3&&(i=0);let a=Math.round((2*e+i)/3);e!==a&&(this.volume=a,d(this.visualizer,this.volume))}))}render(){return e(i,{key:"349422ab6a49e3c2dd84f0f41b51828dfd571d20"},e("div",{key:"7564acaefc95a3610db3020a8e0de44f9d8bff48",class:{hideMuted:this.hideMuted}},e("canvas",{key:"870ff1f131c8727ac52b6126fbb3c0080756c82d",width:"24",height:"24",class:{bars:!0,visible:this.audioEnabled},ref:t=>this.visualizer=t,part:"canvas"}),!this.isScreenShare&&!this.audioEnabled&&!0!==this.hideMuted&&e("rtk-icon",{key:"868d229037f6029ec95ab38b1345783a95fe5c6d",icon:this.iconPack.mic_off,part:"mic-off-icon"})))}static get watchers(){return{participant:["participantChanged"]}}};h([l()],p.prototype,"size",void 0),h([l()],p.prototype,"iconPack",void 0),h([l()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;width:-moz-fit-content;width:fit-content}.hideMuted{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))}";var v=function(t,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const g=class{constructor(e){t(this,e),this.iconPack=o,this.variant="full",this.t=n(),this.audioinputDevices=[],this.canProduceAudio=!0,this.currentDevices={audio:void 0},this.stageStateListener=()=>{this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getAudioDevices();this.audioinputDevices=t},this.deviceUpdateListener=({device:t})=>{"audioinput"===t.kind&&(this.currentDevices={audio:t})},this.mediaPermissionUpdateListener=async({kind:t,message:e})=>{this.meeting&&"audio"===t&&"ACCEPTED"===e&&(this.audioinputDevices=await this.meeting.self.getAudioDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e,i,a,r;null===(e=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===e||e.removeListener("stageStatusUpdate",this.stageStateListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(a=this.meeting)||void 0===a||a.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(r=this.meeting)||void 0===r||r.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener)}meetingChanged(t){null!=t&&a((async()=>{var e,i;const{self:a,stage:r}=t,s=await t.self.getAudioDevices(),o=null===(e=t.self.getCurrentDevices())||void 0===e?void 0:e.audio;this.currentDevices={audio:o},this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,null==r||r.addListener("stageStatusUpdate",this.stageStateListener),a.addListener("deviceListUpdate",this.deviceListUpdateListener),a.addListener("deviceUpdate",this.deviceUpdateListener),a.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.audioinputDevices=null!=o?[null!==(i=s.find((t=>t.deviceId===o.deviceId)))&&void 0!==i?i:o,...s.filter((t=>t.deviceId!==o.deviceId))]:s}))}setDevice(t){var e;if(c(this.meeting))return;const i=this.audioinputDevices.find((e=>e.deviceId===t));null!=i&&(this.currentDevices={audio:i},null===(e=this.meeting)||void 0===e||e.self.setDevice(i))}render(){if(null==this.meeting)return null;let t=0;return e(i,null,this.canProduceAudio&&e("div",{part:"microphone-selection",class:"group container "+this.variant},e("label",{slot:"label"},"inline"!==this.variant&&this.t("settings.microphone_input"),e("rtk-icon",{icon:this.iconPack.mic_on,size:"sm"})),e("div",{class:"row"},e("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.audioinputDevices.map((({deviceId:i,label:a})=>{var r;return e("option",{value:i,selected:(null===(r=this.currentDevices.audio)||void 0===r?void 0:r.deviceId)===i},a||"Microphone "+ ++t)}))),e("slot",{name:"indicator"}))))}static get watchers(){return{meeting:["meetingChanged"]}}};v([l()],g.prototype,"meeting",void 0),v([l()],g.prototype,"size",void 0),v([l()],g.prototype,"iconPack",void 0),v([l()],g.prototype,"t",void 0),g.style=".rtk-select{--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-1000, 255 255 255))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.inline.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0\\.5, 2px)}.inline.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline.container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}";var u=function(t,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const k=class{constructor(e){t(this,e),this.variant="full",this.iconPack=o,this.t=n(),this.speakerDevices=[],this.currentDevices={speaker:void 0},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getSpeakerDevices();this.speakerDevices=t},this.deviceUpdateListener=({device:t})=>{"audiooutput"===t.kind&&(this.currentDevices={speaker:t})},this.mediaPermissionUpdate=async({kind:t,message:e})=>{this.meeting&&"audio"===t&&"ACCEPTED"===e&&(this.speakerDevices=await this.meeting.self.getSpeakerDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e,i;null===(t=this.meeting)||void 0===t||t.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(i=this.meeting)||void 0===i||i.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdate)}meetingChanged(t){null!=t&&a((async()=>{var e,i;const{self:a}=t,r=await t.self.getSpeakerDevices(),s=null===(e=t.self.getCurrentDevices())||void 0===e?void 0:e.speaker;this.currentDevices={speaker:s},a.addListener("deviceListUpdate",this.deviceListUpdateListener),a.addListener("deviceUpdate",this.deviceUpdateListener),a.addListener("mediaPermissionUpdate",this.mediaPermissionUpdate),this.speakerDevices=null!=s?[null!==(i=r.find((t=>t.deviceId===s.deviceId)))&&void 0!==i?i:s,...r.filter((t=>t.deviceId!==s.deviceId))]:r}))}testAudio(){var t;null===(t=this.testAudioEl)||void 0===t||t.play()}setDevice(t){var e,i;if(c(this.meeting))return;const a=this.speakerDevices.find((e=>e.deviceId===t));this.currentDevices={speaker:a},null!=a&&(null===(e=this.meeting)||void 0===e||e.self.setDevice(a),null===(i=this.testAudioEl)||void 0===i||i.setSinkId(a.deviceId))}render(){if(null==this.meeting)return null;let t=0;return e(i,null,e("audio",{preload:"auto",src:"https://assets.dyte.io/ui-kit/speaker-test.mp3",ref:t=>this.testAudioEl=t}),e("div",{class:"group "+this.variant,part:"speaker-selection"},this.speakerDevices.length>0&&!c(this.meeting)&&e("div",{class:"container"},e("label",null,"inline"!==this.variant&&this.t("settings.speaker_output"),e("rtk-icon",{icon:this.iconPack.speaker,size:"sm"})),e("div",{class:"row"},e("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.speakerDevices.map((({deviceId:i,label:a})=>{var r;return e("option",{value:i,selected:(null===(r=this.currentDevices.speaker)||void 0===r?void 0:r.deviceId)===i},a||"Speaker "+ ++t)}))))),"full"===this.variant&&e("rtk-button",{variant:"secondary",onClick:()=>this.testAudio()},e("rtk-icon",{icon:this.iconPack.speaker,slot:"start"}),this.t("test"))))}static get watchers(){return{meeting:["meetingChanged"]}}};u([l()],k.prototype,"meeting",void 0),u([l()],k.prototype,"states",void 0),u([l()],k.prototype,"size",void 0),u([l()],k.prototype,"iconPack",void 0),u([l()],k.prototype,"t",void 0),k.style=".rtk-select{--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-1000, 255 255 255))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.inline.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0\\.5, 2px)}.inline.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline .container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}";var f=function(t,e,i,a){var r,s=arguments.length,o=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,a);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,i,o):r(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const b=class{constructor(e){t(this,e),this.onChange=r(this,"rtkChange",4),this.checked=!1,this.readonly=!1,this.disabled=!1,this.iconPack=o,this.t=n(),this.onClick=()=>{this.readonly||this.disabled||(this.checked=!this.checked)},this.onKeyPress=t=>{if(!this.readonly)switch(t.key){case"Enter":case" ":this.checked=!this.checked}}}connectedCallback(){this.checkedChange(this.checked)}checkedChange(t){this.checked=t,this.onChange.emit(t)}render(){return e(i,{key:"d52144d4eeaf1f93dc3f83971f014e4e31e80c0e",role:"switch",tabIndex:this.disabled&&0,"aria-readonly":this.readonly,"aria-checked":this.checked,"aria-disabled":this.disabled,class:{checked:this.checked},onClick:this.onClick,onKeyPress:this.onKeyPress},e("div",{key:"aa51da6304b98be4d6d7c109ff488c1a684f6bb3",class:"switch",part:"switch"}))}static get watchers(){return{checked:["checkedChange"]}}};f([l()],b.prototype,"iconPack",void 0),f([l()],b.prototype,"t",void 0),b.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:inline-flex;height:var(--rtk-space-6, 24px);width:var(--rtk-space-10, 40px);align-items:center;padding:var(--rtk-space-1, 4px);border-radius:9999px;background-color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));cursor:pointer}.switch{box-sizing:border-box;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);background-color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));border-radius:9999px;transition-property:var(--rtk-transition-property, all);transition-duration:200ms}:host(.checked){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host(.checked) .switch{transform:translateX(100%)}:host([readonly]),:host([disabled]){cursor:not-allowed;opacity:0.6}";export{p as rtk_audio_visualizer,g as rtk_microphone_selector,k as rtk_speaker_selector,b as rtk_switch}
@@ -0,0 +1 @@
1
+ import{r as t,h as r,H as o}from"./p-0ee570cd.js";import{a}from"./p-9c733fd3.js";import{S as i}from"./p-27478c0c.js";var e=function(t,r,o,a){var i,e=arguments.length,n=e<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,r,o,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(n=(e<3?i(n):e>3?i(r,o,n):i(r,o))||n);return e>3&&n&&Object.defineProperty(r,o,n),n};const n=class{constructor(r){t(this,r),this.variant="button",this.showWarning=!1,this.disabled=!1,this.iconPack=a,this.brandIcon=!1}render(){return r(o,{key:"9a1150fd8a0fbd0022f33f325e7413d0670d0820"},r("button",{key:"0fabd8a63a8013e1630dd3838f0c2f1378f423f7","aria-label":this.label,part:"button"},this.isLoading?r("rtk-spinner",{id:"icon",part:"spinner",iconPack:this.iconPack}):r("rtk-icon",{id:"icon",icon:this.icon,tabIndex:-1,"aria-hidden":!0,part:"icon"}),r("span",{key:"117f1bff41fb719a832ef89d000b2abef6f1388a",class:"label",part:"label"},this.label),this.showWarning&&r("rtk-icon",{key:"4d8b9170c833a930e013613089755ec768df0695",id:"warning-indicator",icon:this.iconPack.warning,part:"warning-indicator"})))}static get delegatesFocus(){return!0}};e([i()],n.prototype,"size",void 0),e([i()],n.prototype,"iconPack",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{--background-color:var(\n --rtk-controlbar-button-background-color,\n rgb(var(--rtk-colors-background-1000, 8 8 8))\n );--icon-size:var(--rtk-controlbar-button-icon-size, var(--rtk-space-7, 28px));position:relative;box-sizing:border-box;display:inline-flex;height:100%;width:auto;min-width:var(--rtk-space-20, 80px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--background-color)}button{padding:var(--rtk-space-1, 4px)}:host(.red-icon) #icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([disabled]){color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}button{box-sizing:border-box;display:inline-flex;height:100%;width:100%;flex:1 1 0%;flex-direction:column;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-1, 4px);align-items:center;justify-content:center;cursor:pointer;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:inherit;outline-offset:-2px;border:var(--rtk-border-width-md, 2px) solid transparent}.label{text-align:center;font-size:12px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}#warning-indicator{position:absolute;top:var(--rtk-space-1, 4px);right:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}:host([size='sm']) #warning-indicator{right:var(--rtk-space-0, 0px);top:var(--rtk-space-0, 0px);height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host(:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}#icon{width:var(--icon-size);height:var(--icon-size)}:host(.leave:hover) button{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-danger, 255 45 45))}:host(.active) button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));border:var(--rtk-border-width-md, 2px) solid rgb(var(--rtk-colors-brand-400, 53 110 253))}button:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}:host(.active-livestream){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']){min-width:var(--rtk-space-14, 56px)}:host([size='sm']) .label{display:none}:host([variant='horizontal']){width:100%}:host([variant='horizontal']) button{border-radius:7px;height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-5, 20px);padding-right:var(--rtk-space-5, 20px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);flex-direction:row;justify-content:flex-start;gap:var(--rtk-space-3, 12px)}:host([variant='horizontal']) #icon{width:var(--rtk-space-6, 24px)}:host([variant='horizontal']) .label{display:block;font-size:14px;line-height:1.25rem}:host([variant='horizontal']) #warning-indicator{right:auto;left:var(--rtk-space-4, 16px)}:host([brand-icon]) rtk-icon#icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host .label{display:none}:slotted(rtk-icon){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}}";export{n as rtk_controlbar_button}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as a,H as s}from"./p-0ee570cd.js";import{e,a as r,c as o,q as h}from"./p-9c733fd3.js";import{S as d}from"./p-27478c0c.js";class c{constructor(t,i){this.meeting=t,this.audio=null!=i?i:document.createElement("audio"),this.audio.autoplay=!0,this.logger=t.__internals__.logger,this.audioStream=new MediaStream,this.audio.srcObject=this.audioStream,this.audioTracks=[]}addTrack(t,i){this.audioTracks.some((i=>i.id===t))||(this.audioTracks.push({id:t,track:i}),this.audioStream.addTrack(i),this.play())}removeTrack(t){const i=this.audioTracks.find((i=>i.id===t));null!=i&&(this.audioStream.removeTrack(i.track),this.audioTracks=this.audioTracks.filter((i=>i.id!==t)))}async play(){var t;this.audio.srcObject=this.audioStream,await(null===(t=this.audio.play())||void 0===t?void 0:t.catch((t=>{"NotAllowedError"===t.name?null!=this._onError&&this._onError():"AbortError"!==t.name&&this.logger.error("[rtk-audio] play() error\n",t)})))}async setDevice(t){var i,a,s;e(this.meeting)||await(null===(s=null===(a=(i=this.audio).setSinkId)||void 0===a?void 0:a.call(i,t))||void 0===s?void 0:s.catch((t=>{this.logger.error("[rtk-audio] setSinkId() error\n",t)})))}onError(t){this._onError=t}}var n=function(t,i,a,s){var e,r=arguments.length,o=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,a,s);else for(var h=t.length-1;h>=0;h--)(e=t[h])&&(o=(r<3?e(o):r>3?e(i,a,o):e(i,a))||o);return r>3&&o&&Object.defineProperty(i,a,o),o};const l=class{constructor(a){t(this,a),this.dialogClose=i(this,"dialogClose",7),this.iconPack=r,this.t=o(),this.preloadedAudioElem=void 0,this.showPlayDialog=!1,this.onRtkDialogClose=()=>{this.showPlayDialog=!1,this.dialogClose.emit()}}componentDidLoad(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null!=this.meeting&&(this.audioUpdateListener&&this.meeting.participants.joined.removeListener("audioUpdate",this.audioUpdateListener),this.screenShareUpdateListener&&this.meeting.participants.joined.removeListener("screenShareUpdate",this.screenShareUpdateListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),this.deviceUpdateListener&&this.meeting.self.removeListener("deviceUpdate",this.deviceUpdateListener),this.stageStatusUpdateListener&&(null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)))}async setupAudio(){this.audio=new c(this.meeting,this.preloadedAudioElem);const t=this.meeting.self.getCurrentDevices();null!=t.speaker&&await this.audio.setDevice(t.speaker.deviceId)}async handleAutoPlayError(){this.audio||await this.setupAudio(),this.audio.onError((()=>{this.showPlayDialog=!0})),this.audio.play()}async handleEvents(t){this.audioUpdateListener=({id:t,audioEnabled:i,audioTrack:a})=>{const s=`audio-${t}`;i&&null!=a?this.audio.addTrack(s,a):this.audio.removeTrack(s)};const i=t.participants.joined.toArray();for(const t of i)this.audioUpdateListener(t);this.participantLeftListener=({id:t})=>{this.audio.removeTrack(`audio-${t}`),this.audio.removeTrack(`screenshare-${t}`)},this.screenShareUpdateListener=({id:t,screenShareEnabled:i,screenShareTracks:a})=>{const s=`screenshare-${t}`;i&&null!=a.audio?this.audio.addTrack(s,a.audio):this.audio.removeTrack(s)},this.deviceUpdateListener=({device:t,preview:i})=>{i||"audiooutput"===t.kind&&this.audio.setDevice(t.deviceId)},t.participants.joined.addListener("audioUpdate",this.audioUpdateListener),t.participants.joined.addListener("screenShareUpdate",this.screenShareUpdateListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener)}async meetingChanged(t){var i;null!=t&&(this.setupAudio(),h(t)?(this.stageStatusUpdateListener=async t=>{"ON_STAGE"===t&&await this.handleAutoPlayError()},null===(i=t.stage)||void 0===i||i.on("stageStatusUpdate",this.stageStatusUpdateListener)):await this.handleAutoPlayError(),await this.handleEvents(t))}render(){return a(s,{key:"8f6ac797ceb5f3fa6c8633e72174e9ae91e7979a"},this.showPlayDialog&&a("rtk-dialog",{key:"d1f5723dec7d7e9e66625deb9cebce63e26520e1",open:!0,onRtkDialogClose:this.onRtkDialogClose,hideCloseButton:!0,disableEscapeKey:!0,iconPack:this.iconPack,t:this.t},a("div",{key:"cd0de80766e3f1c665666f463bf405f44ed8323d",class:"modal"},a("h3",{key:"098d978b8c3aeba86328e23104fa7e73f12f2296"},this.t("audio_playback.title")),a("p",{key:"74d242093687ab9734392a8d5357c7a2c5cce8b9"},this.t("audio_playback.description")),a("rtk-button",{key:"6382f33f9b3907989c5559c49091f2173be708e3",kind:"wide",onClick:()=>{this.audio.play(),this.onRtkDialogClose()},title:this.t("audio_playback")},this.t("audio_playback")))))}static get watchers(){return{meeting:["meetingChanged"]}}};n([d()],l.prototype,"meeting",void 0),n([d()],l.prototype,"iconPack",void 0),n([d()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;overflow-wrap:break-word;color:rgb(var(--rtk-colors-text-1000, 255 255 255));word-wrap:break-word}.modal{box-sizing:border-box;width:100%;max-width:var(--rtk-space-96, 384px);padding:var(--rtk-space-4, 16px);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))}.modal h3{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);font-size:24px;font-weight:500}.modal p{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-6, 24px)}.modal rtk-button{width:100%}";export{l as rtk_participants_audio}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as i}from"./p-0ee570cd.js";import{a as o,c as r}from"./p-9c733fd3.js";import{S as n}from"./p-27478c0c.js";var a=function(t,e,i,o){var r,n=arguments.length,a=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,o);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,i,a):r(e,i))||a);return n>3&&a&&Object.defineProperty(e,i,a),a};const s=class{constructor(e){t(this,e),this.iconPack=o,this.t=r()}render(){var t;const o=null===(t=this.meeting)||void 0===t?void 0:t.meta.meetingTitle;return null==o?e(i,{"data-hidden":!0}):e(i,{role:"banner","aria-label":o},e("rtk-tooltip",{label:o,part:"tooltip"},e("div",{class:"title",part:"title"},o)))}};a([n()],s.prototype,"meeting",void 0),a([n()],s.prototype,"iconPack",void 0),a([n()],s.prototype,"t",void 0),s.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:16px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host([data-hidden]){display:none}.title{text-align:center;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}:host([size='sm']){font-size:12px}";export{s as rtk_meeting_title}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as i,H as e}from"./p-0ee570cd.js";import{a as h,c as a}from"./p-9c733fd3.js";import{S as r}from"./p-27478c0c.js";var n=function(t,s,i,e){var h,a=arguments.length,r=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,i,e);else for(var n=t.length-1;n>=0;n--)(h=t[n])&&(r=(a<3?h(r):a>3?h(s,i,r):h(s,i))||r);return a>3&&r&&Object.defineProperty(s,i,r),r};const o=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,c=class{constructor(i){t(this,i),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=h,this.t=a(),this.maxScreenShareCount=-1,this.screenShareCount=0,this.screenShareEnabled=!1,this.canScreenShare=!1,this.shareScreenPermission="NOT_REQUESTED",this.screenShareState={tooltipLabel:this.t("screenshare.start"),label:this.t("screenshare.start"),icon:this.iconPack.share_screen_start,classList:{},showWarning:!1,disable:!1},this.stageStatus="OFF_STAGE",this.screenShareListener=()=>{const t=this.meeting.participants.active.toArray().filter((t=>t.screenShareEnabled)).length;this.screenShareCount=t+(this.meeting.self.screenShareEnabled?1:0),this.screenShareEnabled=this.meeting.self.screenShareEnabled,this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}})},this.participantLeftListener=({screenShareEnabled:t})=>{t&&(this.screenShareCount=Math.max(this.screenShareCount-1,0),this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}}))},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare},this.mediaPermissionUpdateListener=({kind:t,message:s})=>{"screenshare"===t&&(this.shareScreenPermission=s,this.getState(),"COULD_NOT_START"===s&&this.apiError.emit({trace:this.t("screenshare.permissions"),message:this.t("screenshare.error.unknown")}),this.hasPermissionError())&&this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}})},this.reachedMaxScreenShares=()=>this.maxScreenShareCount>0&&this.screenShareCount>=this.maxScreenShareCount,this.toggleScreenShare=async()=>{var t;if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const s=null===(t=this.meeting)||void 0===t?void 0:t.self;this.screenShareEnabled?s.disableScreenShare():null==s||!this.canScreenShare||this.reachedMaxScreenShares()||this.hasPermissionError()||(this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0}),await s.enableScreenShare(),this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!1}),this.stateUpdate.emit({activeMoreMenu:!1}))}}connectedCallback(){o()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,s,i,e,h,a;null===(t=this.meeting)||void 0===t||t.participants.joined.removeListener("screenShareUpdate",this.screenShareListener),null===(s=this.meeting)||void 0===s||s.participants.joined.removeListener("participantLeft",this.participantLeftListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("screenShareUpdate",this.screenShareListener),null===(e=this.meeting)||void 0===e||e.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(h=this.meeting)||void 0===h?void 0:h.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:s,stage:i}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=s.config.maxScreenShareCount,this.screenShareEnabled=s.screenShareEnabled;let e=0;for(const s of t.participants.joined.toArray())s.screenShareEnabled&&e++;this.screenShareCount=e,this.getState(),t.__internals__.logger.info("rtkScreenShare::initialise",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount,maxAllowedCount:this.maxScreenShareCount}}}),this.stageStatus=t.stage.status,t.participants.joined.addListener("screenShareUpdate",this.screenShareListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),s.addListener("screenShareUpdate",this.screenShareListener),s.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==i||i.addListener("stageStatusUpdate",this.stageStatusListener)}}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){let t="",s="",i="",e={};const h=this.hasPermissionError()&&!this.screenShareEnabled,a=this.reachedMaxScreenShares()&&!this.screenShareEnabled,r="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!h?(s=this.t("screenshare.stop"),i=this.iconPack.share_screen_stop,e["red-icon"]=!0):(s=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(t=this.t("perm_sys_denied.screenshare"),e["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(t=this.t("perm_denied.screenshare"),e["red-icon"]=!0):t=s,a&&(t=this.t("screenshare.error.max_count")),r&&(t=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:t,label:s,icon:i,classList:e,disable:h||a,showWarning:h||a||r}}render(){return o()&&this.canScreenShare&&!["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus)?i(e,{title:this.screenShareState.label},i("rtk-tooltip",{placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.toggleScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}))):i(e,{"data-hidden":!0})}static get watchers(){return{meeting:["meetingChanged"]}}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"size",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{c as rtk_screen_share_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,H as s}from"./p-0ee570cd.js";import{a,c as r,i as n}from"./p-9c733fd3.js";import{S as h}from"./p-27478c0c.js";var o=function(t,i,e,s){var a,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(n=(r<3?a(n):r>3?a(i,e,n):a(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const l=class{constructor(e){t(this,e),this.stateUpdate=i(this,"rtkStateUpdate",7),this.apiError=i(this,"rtkApiError",7),this.variant="button",this.iconPack=a,this.t=r(),this.livestreamState="IDLE",this.livestreamStateListener=t=>{this.livestreamState=t,"LIVESTREAMING"!==t&&"IDLE"!==t||this.stateUpdate.emit({activeMoreMenu:!1})},this.isLoading=()=>null==this.meeting||"STARTING"===this.livestreamState||"STOPPING"===this.livestreamState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.clearListeners()}meetingChanged(t){var i,e;null!=t&&(this.livestreamState=null===(i=this.meeting.livestream)||void 0===i?void 0:i.state,null===(e=this.meeting.livestream)||void 0===e||e.on("livestreamUpdate",this.livestreamStateListener))}async toggleLivestream(){var t,i;if("LIVESTREAMING"===this.livestreamState)try{await(null===(t=this.meeting.livestream)||void 0===t?void 0:t.stop())}catch(t){this.apiError.emit({trace:this.t("livestream.stop"),message:this.t("livestream.error.stop")})}else try{await(null===(i=this.meeting.livestream)||void 0===i?void 0:i.start())}catch(t){this.apiError.emit({trace:this.t("livestream.start"),message:this.t("livestream.error.start")})}}clearListeners(){var t;null===(t=this.meeting.livestream)||void 0===t||t.removeListener("livestreamUpdate",this.livestreamStateListener)}getLivestreamLabel(){switch(this.livestreamState){case"IDLE":return this.t("livestream.go_live");case"LIVESTREAMING":return this.t("livestream.end_live");case"WAITING_ON_MANUAL_INGESTION":return this.t("livestream.waiting_on_manual_ingestion");case"STARTING":return this.t("livestream.starting");case"STOPPING":return this.t("livestream.stopping");default:return this.t("livestream.error")}}getLivestreamIcon(){switch(this.livestreamState){case"IDLE":case"WAITING_ON_MANUAL_INGESTION":return this.iconPack.start_livestream;default:return this.iconPack.stop_livestream}}render(){return n(this.meeting)?e(s,null,e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,isLoading:this.isLoading(),class:{"active-livestream":"LIVESTREAMING"===this.livestreamState},onClick:()=>this.toggleLivestream(),icon:this.getLivestreamIcon(),disabled:this.isLoading(),label:this.t(this.getLivestreamLabel()),variant:this.variant})):e(s,{"data-hidden":!0})}static get watchers(){return{meeting:["meetingChanged"]}}};o([h()],l.prototype,"meeting",void 0),o([h()],l.prototype,"size",void 0),o([h()],l.prototype,"iconPack",void 0),o([h()],l.prototype,"t",void 0),l.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}";export{l as rtk_livestream_toggle}
@@ -0,0 +1 @@
1
+ import{r as t,h as e,H as a}from"./p-0ee570cd.js";import{d as r,a as i,c as o}from"./p-9c733fd3.js";import{S as c}from"./p-27478c0c.js";var s=function(t,e,a,r){var i,o=arguments.length,c=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,a,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(c=(o<3?i(c):o>3?i(e,a,c):i(e,a))||c);return o>3&&c&&Object.defineProperty(e,a,c),c};const n=class{constructor(e){t(this,e),this.config=r,this.iconPack=i,this.t=o()}render(){return e(a,{key:"f2c47d3259b2df855467a20acb9c3cf9efba0656"},e("slot",{key:"f00f36e15ecf6279903d8512f3dee23057de734a"},e("div",{key:"980543555369e3547a6ba36a4235e885ca65ee4b",class:"centered",part:"content"},e("rtk-logo",{key:"9a82a757b90ceb5ec2d143cc2e4ba3a85e4b5ead",meeting:this.meeting,config:this.config,part:"logo",t:this.t}),e("p",{key:"e9c2f4e21f075ee74e147249bd52e8947bdfa37d"},this.t("waitlist.body_text")))))}};s([c()],n.prototype,"meeting",void 0),s([c()],n.prototype,"iconPack",void 0),s([c()],n.prototype,"t",void 0),n.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.centered{display:flex;flex-direction:column;align-items:center}rtk-logo{margin-bottom:var(--rtk-space-8, 32px);height:var(--rtk-space-12, 48px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}";export{n as rtk_waiting_screen}
@@ -0,0 +1 @@
1
+ import{r as a,h as t,H as r}from"./p-0ee570cd.js";import{a as i,c as e}from"./p-9c733fd3.js";import{h as o}from"./p-3f882e7c.js";import{S as s}from"./p-27478c0c.js";var c=function(a,t,r,i){var e,o=arguments.length,s=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(a,t,r,i);else for(var c=a.length-1;c>=0;c--)(e=a[c])&&(s=(o<3?e(s):o>3?e(t,r,s):e(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s};const d=class{constructor(t){a(this,t),this.iconPack=i,this.t=e(),this.audioEnabled=!1,this.volume=0,this.onAudioUpdate=({audioEnabled:a,audioTrack:t})=>{if(this.participant)if(a&&t){const a=new MediaStream;a.addTrack(t),this.calcVolume(a),this.audioEnabled=!0}else this.volume=0,this.audioEnabled=!1}}connectedCallback(){this.participantChanged(this.participant)}disconnectedCallback(){var a,t;null===(a=this.hark)||void 0===a||a.stop(),null===(t=this.participant)||void 0===t||t.removeListener("audioUpdate",this.onAudioUpdate)}participantChanged(a){a&&(this.audioEnabled=a.audioEnabled,a.addListener("audioUpdate",this.onAudioUpdate))}calcVolume(a){this.hark=o(a,{play:!1,interval:100}),this.hark.on("volume_change",(a=>{const t=this.volume;let r=Math.round(10**(a/115)*10);r<3&&(r=0);let i=Math.round((2*t+r)/3);t!==i&&(this.volume=i)}))}render(){const a={meeting:this.meeting,size:this.size,config:this.config,states:this.states,iconPack:this.iconPack,t:this.t};let e="bar-0";return e=this.volume>5?"bar-5":this.volume<0?"bar-0":"bar-"+this.volume,t(r,{key:"cff0c840f6dcd8ae6514ee4b8b0c6680d4ebf8ff"},t("div",{key:"c43dbfcc26c20d0d7487a234624709ad9bf14f6f",class:{"avatar-ctr":!0,speaking:this.audioEnabled,[e]:!0}},t("rtk-avatar",{key:"5a638ea3a636f645eaab2638353fb49697a431c0",participant:this.participant,size:this.size},!this.audioEnabled&&t("div",{key:"f8a6bc0a24906df10870c827faeca7f8f343306a",class:"mic-icon"},t("rtk-icon",{key:"a7777ba5bb5b78329556b6af19495425827915ec",icon:i.mic_off})))),t("rtk-name-tag",Object.assign({key:"a7d4bea44bfde23323e52917ee197c5558cef8ba",variant:"text",participant:this.participant},a)),t("slot",{key:"370b16462a7be42a663a58288105ad46c0e6f3d3"}))}static get watchers(){return{participant:["participantChanged"]}}};c([s()],d.prototype,"meeting",void 0),c([s()],d.prototype,"size",void 0),c([s()],d.prototype,"states",void 0),c([s()],d.prototype,"iconPack",void 0),c([s()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:flex;flex-direction:column}.avatar-ctr{box-sizing:border-box;width:100%;flex:1 1 0%;padding:var(--rtk-space-1\\.5, 6px);border:2px solid transparent;border-radius:calc(var(--rtk-border-radius-xl, 40px) + var(--rtk-space-1\\.5, 6px))}.avatar-ctr.speaking{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));transition-property:box-shadow;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.bar-0{box-shadow:none}.bar-1{box-shadow:0 0 4px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-2{box-shadow:0 0 8px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-3{box-shadow:0 0 16px 1px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-4{box-shadow:0 0 20px 3px rgb(var(--rtk-colors-brand-500, 33 96 253))}.bar-5{box-shadow:0 0 24px 6px rgb(var(--rtk-colors-brand-500, 33 96 253))}rtk-avatar{aspect-ratio:1 / 1;height:100%;width:100%;position:relative;border-radius:var(--rtk-border-radius-xl, 40px)}rtk-name-tag{display:block;height:var(--rtk-space-10, 40px);width:100%;text-align:center;line-height:2.5rem}:host([size='sm']) .avatar-ctr{border-radius:calc(var(--rtk-border-radius-lg, 12px) + var(--rtk-space-1\\.5, 6px))}:host([size='sm']) rtk-name-tag{height:var(--rtk-space-7, 28px);line-height:1.75rem}:host([size='sm']) rtk-avatar{border-radius:var(--rtk-border-radius-lg, 12px)}.mic-icon{position:absolute;bottom:calc(var(--rtk-space-1, 4px) * -1);right:calc(var(--rtk-space-1, 4px) * -1);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));--tw-shadow:0 1px 2px 0 rgb(0 0 0 / 0.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.mic-icon rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) .mic-icon rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='md']) .mic-icon rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}";export{d as rtk_audio_tile}
@@ -0,0 +1 @@
1
+ const s=s=>s>=1080?"lg":s>=768?"md":"sm";export{s as g}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,a}from"./p-0ee570cd.js";import{a as h,c as n,d as c,F as o}from"./p-9c733fd3.js";import{l as r,R as d}from"./p-c8eaa707.js";import{f as l,s as f}from"./p-338c7261.js";import{c as p,b,o as v,s as k,h as m}from"./p-31964573.js";import{S as u}from"./p-27478c0c.js";import{d as g}from"./p-a08b5a59.js";import"./p-2c3cda13.js";var y=function(t,i,s,e){var a,h=arguments.length,n=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(n=(h<3?a(n):h>3?a(i,s,n):a(i,s))||n);return h>3&&n&&Object.defineProperty(i,s,n),n};const x=class{constructor(s){t(this,s),this.rtkSendNotification=i(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=h,this.t=n(),this.config=c,this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");p(t,i,{placement:"bottom-end",middleware:[b({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),v(4),k({padding:8}),m()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){var i,s,e,a,h,n,c;if(null!=t){const{self:r}=t;this.canDisableParticipantAudio=r.permissions.canAllowParticipantAudio||r.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=r.permissions.canAllowParticipantVideo||r.permissions.canDisableParticipantVideo,this.canKickParticipant=r.permissions.kickParticipant&&!0!==(null===(i=this.meeting)||void 0===i?void 0:i.__internals__.features.hasFeature(o.DISABLE_KICKING))&&(!0!==(null===(s=this.meeting)||void 0===s?void 0:s.__internals__.features.hasFeature(o.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(e=this.participant)||void 0===e?void 0:e.presetName)),this.canPinParticipant=r.permissions.pinParticipant,this.canAllowParticipantOnStage=r.permissions.acceptStageRequests&&r.permissions.stageEnabled&&(!0!==(null===(a=this.meeting)||void 0===a?void 0:a.__internals__.features.hasFeature(o.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(h=this.participant)||void 0===h?void 0:h.presetName))&&(!0!==(null===(n=this.meeting)||void 0===n?void 0:n.__internals__.features.hasFeature(o.CANTINVITE_VIEWER))||"webinar_viewer"!==(null===(c=this.participant)||void 0===c?void 0:c.presetName)),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,a,h,n,c,o,p,b;const v="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),k=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,m=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!v||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,u=l((null===(a=this.participant)||void 0===a?void 0:a.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(h=this.meeting)||void 0===h?void 0:h.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return s(e,{key:"9a717049edf15cfec3e497a30a37f873dcb37fd8"},s("div",{class:"left",key:null===(n=this.participant)||void 0===n?void 0:n.id},s("rtk-avatar",{key:"4e161f74ce11be1050c95556065867289ab618b2",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),s("p",{key:"c1e71db1ba1ed2e8defbbb9802c22df8b64670fc",class:"name",title:u},f(u,16)," ",(null===(c=this.meeting)||void 0===c?void 0:c.self.id)===(null===(o=this.participant)||void 0===o?void 0:o.id)&&this.t("(you)"))),"sidebar"===this.view&&s("div",{key:"165e14ba9f5e063820c6f440dc9eb03344e7bcdf",class:"right"},g&&s("rtk-icon",{key:"d6651dc9e7eb12ed56742f08096ef239bd4429c1",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!v&&s("rtk-icon",{key:"89506d158acdb3e2629a7a2ab51aef475f9f3b75",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(m||r({element:"rtk-participant",defaults:y,childProps:{participant:this.participant}})>0)&&s("div",{key:"202a957dfe004c8c1f2195bf93c9ce9ce167a96f",class:"menu"},s("span",{key:"a01163f9da5fab4a1d7922f8abfe5a2e4a4dcf2c",id:"trigger",onClick:this.onMenuToggle},s("rtk-button",{key:"144e0c418b6a038d560f8087825471b649229ecb",variant:"ghost",kind:"icon",slot:"trigger"},s("rtk-icon",{key:"18abb20a0969e0332d8fe2b5dcfe41bfc66955f7",class:"more",icon:this.iconPack.more_vertical}))),s("span",{key:"3a22ebe5a21228b6ea6e15933d961b24085dce44",id:"menu-list"},this.menuOpen&&s("rtk-menu-list",{key:"86688ad10d1440c5b534fe2f002225e0368ae24a",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!v&&s("rtk-menu-item",{key:"c22833b86d8583bdaec723a269afa7298cb0ca0d",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},s("rtk-icon",{key:"9cdde53aaffca1f0042a69048b77f31fc10c69d6",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),k&&s("rtk-menu-item",{key:"b651953a9b02065ca223c46dd7dbadedc8401031",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},s("rtk-icon",{key:"e63383cca42314f8ac0a9a03d13948b4eb5ced8c",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&s("rtk-menu-item",{key:"86f670083fa1000cc99c5a57d4da2cb789c88aee",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},s("rtk-icon",{key:"d75504ef4431c83efea2d281baad6a10c8a2e3b3",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&s("rtk-menu-item",{key:"2634fae26bc72fec773f3a7f85fad7ebc1cfca11",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},s("rtk-icon",{key:"57d51380b52a20a8f9dfc51931401712f4d67f26",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(p=this.participant)||void 0===p?void 0:p.id)!==(null===(b=this.meeting)||void 0===b?void 0:b.self.id)&&s("rtk-menu-item",{key:"64ab2f51f494b8d3d445ae9aece430e8c0fca673",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},s("rtk-icon",{key:"5633f66f3679bfc3b6e87a55cfb884e63260767c",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!k&&this.canKickParticipant&&s("rtk-menu-item",{key:"664e9b1c843aa0cc7a47062b4f353a8e1105a368",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i;null===(t=this.meeting)||void 0===t||t.participants.kick(null===(i=this.participant)||void 0===i?void 0:i.id)}},s("rtk-icon",{key:"10cb3a42b4c861241d983d9cb1ebfe594500fbc3",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),s("slot",{key:"ed681666f5bb8bf06a6fac4b929853d9b6bc704c"},s(d,{key:"8177a2248bf03ffbe26a7f0f560eb81439a00fb3",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return a(this)}static get watchers(){return{meeting:["meetingChanged"],participant:["participantChanged"]}}};y([u()],x.prototype,"meeting",void 0),y([u()],x.prototype,"states",void 0),y([u()],x.prototype,"iconPack",void 0),y([u()],x.prototype,"t",void 0),x.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;top:var(--rtk-space-8, 32px) !important;right:var(--rtk-space-4, 16px) !important;z-index:20}";const w=class{constructor(i){t(this,i),this.items=[],this.itemHeight=55,this.bufferedItemsCount=5,this.emptyListElement=null,this.visibleStart=0,this.visibleEnd=0,this.containerHeight=0,this.lastScrollTop=0,this.recalculatePositioning=()=>{this.updateContainerHeight(),requestAnimationFrame((()=>{this.updateItemHeight()}))},this.updateContainerHeight=()=>{this.el.querySelector(".virtual-list-container").clientHeight&&(requestAnimationFrame((()=>{this.updateItemHeight()})),this.containerHeight=this.el.querySelector(".virtual-list-container").clientHeight,this.updateVisibleRange())},this.onScroll=g((()=>{const t=this.el.querySelector(".virtual-list-container").scrollTop;t>this.lastScrollTop&&this.visibleEnd===this.items.length||(this.lastScrollTop=t,this.updateVisibleRange())}))}itemsChanged(){this.recalculatePositioning()}componentDidLoad(){this.recalculatePositioning(),this.el.querySelector(".virtual-list-container").addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.recalculatePositioning)}componentDidUpdate(){this.updateItemHeight()}disconnectedCallback(){this.el.querySelector(".virtual-list-container").removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.recalculatePositioning)}updateVisibleRange(){const t=this.el.querySelector(".virtual-list-container").scrollTop,i=Math.floor(t/this.itemHeight),s=Math.ceil(this.containerHeight/this.itemHeight),e=Math.min(this.items.length,i+s+this.bufferedItemsCount);this.visibleStart=i,this.visibleEnd=e,this.el.querySelector(".virtual-list-container").scrollTop=this.lastScrollTop}updateItemHeight(){const t=this.el.querySelector(".virtual-list-item");if(t){const i=t.style.height;t.style.height="auto";const s=t.getBoundingClientRect().height;i&&(t.style.height=i),s&&Math.floor(s)!==Math.floor(this.itemHeight)&&(this.itemHeight=s)}}renderItems(){return this.items.slice(this.visibleStart,this.visibleEnd).map(((t,i)=>{const e=this.visibleStart+i;return s("div",{class:"virtual-list-item",key:t.id,style:{position:"absolute",top:e*this.itemHeight+"px",height:`${this.itemHeight}px`,width:"100%"}},this.renderItem(t,e))}))}render(){var t;return s("div",{key:"1a35b2155ffba410d278513dbdfeb7fd238443d8",class:"virtual-list-container",style:{position:"relative",height:"100%",overflowX:"hidden",overflowY:"auto"}},s("div",{key:"90f445de9af8464c23dbd931f46600e015839d4f",style:{height:this.items.length*this.itemHeight+"px",position:"relative"}},(null===(t=this.items)||void 0===t?void 0:t.length)?this.renderItems():this.emptyListElement),s("div",{key:"b7acc66cc75273c722b5a9c78949c67d785d5725",style:{height:`${this.itemHeight}px`}}))}get el(){return a(this)}static get watchers(){return{items:["itemsChanged"]}}};w.style=":host{height:100%;width:100%}";export{x as rtk_participant,w as rtk_virtualized_participant_list}