@cloudflare/realtimekit-ui 1.0.6-staging.4 → 1.0.6-staging.6

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 (355) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +1 -1
  3. package/dist/cjs/rtk-audio-grid.cjs.entry.js +1 -1
  4. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +9 -7
  5. package/dist/cjs/rtk-avatar_54.cjs.entry.js +58 -58
  6. package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +2 -2
  7. package/dist/cjs/rtk-clock.cjs.entry.js +3 -3
  8. package/dist/cjs/rtk-controlbar.cjs.entry.js +1 -1
  9. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +1 -1
  10. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +1 -1
  11. package/dist/cjs/rtk-header.cjs.entry.js +1 -1
  12. package/dist/cjs/rtk-idle-screen.cjs.entry.js +1 -1
  13. package/dist/cjs/rtk-image-viewer.cjs.entry.js +1 -1
  14. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +1 -1
  15. package/dist/cjs/rtk-leave-button.cjs.entry.js +1 -1
  16. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  17. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  18. package/dist/cjs/rtk-name-tag.cjs.entry.js +1 -1
  19. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-participant_2.cjs.entry.js +14 -14
  21. package/dist/cjs/rtk-participants-audio.cjs.entry.js +1 -1
  22. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +1 -1
  23. package/dist/cjs/rtk-plugins_2.cjs.entry.js +4 -4
  24. package/dist/cjs/rtk-poll_2.cjs.entry.js +3 -3
  25. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +1 -1
  26. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +5 -5
  27. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +1 -1
  28. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
  29. package/dist/cjs/rtk-stage.cjs.entry.js +1 -1
  30. package/dist/cjs/rtk-transcript.cjs.entry.js +1 -1
  31. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +1 -1
  32. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  33. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  34. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.css +1 -1
  35. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +8 -6
  36. package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
  37. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +2 -2
  38. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +2 -2
  39. package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +2 -2
  40. package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +1 -1
  41. package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +2 -2
  42. package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +4 -4
  43. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +2 -2
  44. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +3 -3
  45. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
  46. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
  47. package/dist/collection/components/rtk-clock/rtk-clock.js +3 -3
  48. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  49. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  50. package/dist/collection/components/rtk-counter/rtk-counter.js +2 -2
  51. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  52. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  53. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  54. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  55. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  56. package/dist/collection/components/rtk-file-message/rtk-file-message.js +2 -2
  57. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +1 -1
  58. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
  59. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  60. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  61. package/dist/collection/components/rtk-image-message/rtk-image-message.js +4 -4
  62. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +3 -3
  63. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  64. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
  65. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
  66. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  67. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +2 -2
  68. package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
  69. package/dist/collection/components/rtk-menu/rtk-menu.js +2 -2
  70. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  71. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  72. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +3 -3
  73. package/dist/collection/components/rtk-message-view/rtk-message-view.js +1 -1
  74. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +2 -2
  75. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  76. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
  77. package/dist/collection/components/rtk-notification/rtk-notification.css +0 -1
  78. package/dist/collection/components/rtk-notification/rtk-notification.js +2 -2
  79. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  80. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
  81. package/dist/collection/components/rtk-participant/rtk-participant.js +12 -12
  82. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +2 -2
  83. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  84. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  85. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  86. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  87. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  88. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +2 -2
  89. package/dist/collection/components/rtk-polls/rtk-polls.js +3 -3
  90. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  91. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +5 -5
  92. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
  93. package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
  94. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +2 -2
  95. package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
  96. package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
  97. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +1 -1
  98. package/dist/collection/components/rtk-text-message/rtk-text-message.js +2 -2
  99. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
  100. package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +1 -1
  101. package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
  102. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
  103. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +1 -1
  104. package/dist/components/{p-fb836f65.js → p-03bdc4c0.js} +1 -1
  105. package/dist/components/{p-4e55295e.js → p-08f6162d.js} +14 -14
  106. package/dist/components/{p-8935943a.js → p-0a583582.js} +16 -16
  107. package/dist/components/{p-5eb08127.js → p-0c5aab6d.js} +11 -11
  108. package/dist/components/{p-4e857a0d.js → p-1740eeb4.js} +1 -1
  109. package/dist/components/{p-3b34a317.js → p-17453290.js} +5 -5
  110. package/dist/components/{p-7c9cb546.js → p-1f8aeaf8.js} +1 -1
  111. package/dist/components/{p-ed31845a.js → p-22aa706b.js} +1 -1
  112. package/dist/components/{p-e5ef089b.js → p-25a4363c.js} +2 -2
  113. package/dist/components/{p-2475ba83.js → p-262377bc.js} +1 -1
  114. package/dist/components/{p-0081423d.js → p-27f15618.js} +1 -1
  115. package/dist/components/{p-e6cd5276.js → p-2e03f6fa.js} +43 -43
  116. package/dist/components/{p-af8be74e.js → p-2eb129f3.js} +1 -1
  117. package/dist/components/{p-96a0663a.js → p-30b81dcd.js} +4 -4
  118. package/dist/components/{p-3c344b0a.js → p-317b41b0.js} +2 -2
  119. package/dist/components/{p-a5750e39.js → p-31ccb362.js} +15 -15
  120. package/dist/components/{p-095e6b83.js → p-3570bda3.js} +2 -2
  121. package/dist/components/{p-faad6e1b.js → p-3ae9e606.js} +3 -3
  122. package/dist/components/{p-2e5d41d6.js → p-4a4c2102.js} +2 -2
  123. package/dist/components/{p-0f94d9ad.js → p-4a792ea5.js} +5 -5
  124. package/dist/components/{p-74d7f3a0.js → p-4e9d44f6.js} +2 -2
  125. package/dist/components/{p-b8845b46.js → p-519d58db.js} +3 -3
  126. package/dist/components/{p-9b4f77d0.js → p-5205ea87.js} +1 -1
  127. package/dist/components/{p-07ab7497.js → p-61a18b1f.js} +2 -2
  128. package/dist/components/{p-8df26513.js → p-632e7c39.js} +8 -8
  129. package/dist/components/{p-c3ec35db.js → p-63b4ff6e.js} +2 -2
  130. package/dist/components/{p-4bd4064f.js → p-654f389d.js} +2 -2
  131. package/dist/components/{p-5493aac4.js → p-74942069.js} +2 -2
  132. package/dist/components/{p-1c7de86c.js → p-7b0a9819.js} +2 -2
  133. package/dist/components/{p-906cc68f.js → p-7da6a349.js} +3 -3
  134. package/dist/components/{p-555bbef5.js → p-80c36767.js} +6 -6
  135. package/dist/components/{p-10d4f8a5.js → p-8336535d.js} +3 -3
  136. package/dist/components/{p-95b61f33.js → p-866a285b.js} +1 -1
  137. package/dist/components/{p-e91c4d3d.js → p-89ce3d1b.js} +2 -2
  138. package/dist/components/{p-ec54a0c7.js → p-919e71b8.js} +2 -2
  139. package/dist/components/{p-73b8c09f.js → p-929a81e6.js} +1 -1
  140. package/dist/components/{p-46a0aa0b.js → p-92f160e9.js} +2 -2
  141. package/dist/components/{p-914c0c0d.js → p-96baedfe.js} +12 -12
  142. package/dist/components/{p-d18cc4dc.js → p-978ab9a8.js} +1 -1
  143. package/dist/components/{p-bc911542.js → p-99e78dbe.js} +2 -2
  144. package/dist/components/{p-dc3143c0.js → p-a3ebfc10.js} +2 -2
  145. package/dist/components/{p-fe4cd240.js → p-a59a9c97.js} +1 -1
  146. package/dist/components/{p-a41a2311.js → p-a9bcec5d.js} +1 -1
  147. package/dist/components/{p-258274b1.js → p-a9d80b81.js} +1 -1
  148. package/dist/components/{p-f504adce.js → p-ac49fc4f.js} +9 -9
  149. package/dist/components/{p-f3fc3655.js → p-adca9df1.js} +2 -2
  150. package/dist/components/{p-e98d5a6d.js → p-afd22e6f.js} +8 -6
  151. package/dist/components/{p-a922eb37.js → p-b0a32a7d.js} +3 -3
  152. package/dist/components/{p-daaafd7a.js → p-b2c7ff74.js} +6 -6
  153. package/dist/components/{p-3b1c4e80.js → p-ba531eb3.js} +1 -1
  154. package/dist/components/{p-ab3007bd.js → p-c49f28a7.js} +3 -3
  155. package/dist/components/{p-2036dd73.js → p-c5b6ed4f.js} +1 -1
  156. package/dist/components/{p-1fb807e2.js → p-c8b8a942.js} +2 -2
  157. package/dist/components/{p-590b8d1c.js → p-cb7f0abe.js} +4 -4
  158. package/dist/components/{p-bb6d1fe9.js → p-d1fe3ce0.js} +1 -1
  159. package/dist/components/{p-90500e75.js → p-d3c93bcf.js} +1 -1
  160. package/dist/components/{p-dc92328d.js → p-da6a70f6.js} +2 -2
  161. package/dist/components/{p-53c730fe.js → p-de20d057.js} +6 -6
  162. package/dist/components/{p-30f43e99.js → p-e41c8029.js} +1 -1
  163. package/dist/components/{p-05b503da.js → p-e891d522.js} +4 -4
  164. package/dist/components/{p-ebbcc5b6.js → p-ebc865ec.js} +1 -1
  165. package/dist/components/{p-63225105.js → p-f45ceaa6.js} +2 -2
  166. package/dist/components/{p-13258097.js → p-f5c29229.js} +10 -10
  167. package/dist/components/{p-b9e78c21.js → p-f5f0b499.js} +1 -1
  168. package/dist/components/{p-ee929898.js → p-f6995a6b.js} +6 -6
  169. package/dist/components/{p-7b0b700d.js → p-ff8e5929.js} +2 -2
  170. package/dist/components/rtk-ai-toggle.js +2 -2
  171. package/dist/components/rtk-ai-transcriptions.js +1 -1
  172. package/dist/components/rtk-ai.js +1 -1
  173. package/dist/components/rtk-audio-grid.js +1 -1
  174. package/dist/components/rtk-audio-tile.js +3 -3
  175. package/dist/components/rtk-audio-visualizer.js +1 -1
  176. package/dist/components/rtk-avatar.js +1 -1
  177. package/dist/components/rtk-breakout-room-manager.js +1 -1
  178. package/dist/components/rtk-breakout-room-participants.js +1 -1
  179. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  180. package/dist/components/rtk-breakout-rooms-toggle.js +2 -2
  181. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  182. package/dist/components/rtk-camera-toggle.js +3 -3
  183. package/dist/components/rtk-caption-toggle.js +2 -2
  184. package/dist/components/rtk-channel-creator.js +1 -1
  185. package/dist/components/rtk-channel-details.js +1 -1
  186. package/dist/components/rtk-channel-header.js +1 -1
  187. package/dist/components/rtk-channel-selector-ui.js +4 -4
  188. package/dist/components/rtk-channel-selector-view.js +1 -1
  189. package/dist/components/rtk-chat-composer-ui.js +4 -4
  190. package/dist/components/rtk-chat-composer-view.js +1 -1
  191. package/dist/components/rtk-chat-message.js +1 -1
  192. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  193. package/dist/components/rtk-chat-messages-ui.js +1 -1
  194. package/dist/components/rtk-chat-search-results.js +1 -1
  195. package/dist/components/rtk-chat-toggle.js +2 -2
  196. package/dist/components/rtk-chat.js +1 -1
  197. package/dist/components/rtk-clock.js +3 -3
  198. package/dist/components/rtk-confirmation-modal.js +1 -1
  199. package/dist/components/rtk-controlbar-button.js +1 -1
  200. package/dist/components/rtk-controlbar.js +1 -1
  201. package/dist/components/rtk-counter.js +1 -1
  202. package/dist/components/rtk-debugger-toggle.js +3 -3
  203. package/dist/components/rtk-dialog-manager.js +1 -1
  204. package/dist/components/rtk-draft-attachment-view.js +1 -1
  205. package/dist/components/rtk-emoji-picker-button.js +1 -1
  206. package/dist/components/rtk-emoji-picker.js +1 -1
  207. package/dist/components/rtk-file-dropzone.js +1 -1
  208. package/dist/components/rtk-file-message-view.js +1 -1
  209. package/dist/components/rtk-file-message.js +1 -1
  210. package/dist/components/rtk-file-picker-button.js +1 -1
  211. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  212. package/dist/components/rtk-grid-pagination.js +1 -1
  213. package/dist/components/rtk-grid.js +4 -4
  214. package/dist/components/rtk-header.js +1 -1
  215. package/dist/components/rtk-idle-screen.js +2 -2
  216. package/dist/components/rtk-image-message-view.js +1 -1
  217. package/dist/components/rtk-image-message.js +1 -1
  218. package/dist/components/rtk-image-viewer.js +1 -1
  219. package/dist/components/rtk-information-tooltip.js +1 -1
  220. package/dist/components/rtk-join-stage.js +1 -1
  221. package/dist/components/rtk-leave-button.js +3 -3
  222. package/dist/components/rtk-leave-meeting.js +1 -1
  223. package/dist/components/rtk-livestream-player.js +1 -1
  224. package/dist/components/rtk-livestream-toggle.js +2 -2
  225. package/dist/components/rtk-markdown-view.js +1 -1
  226. package/dist/components/rtk-meeting-title.js +1 -1
  227. package/dist/components/rtk-meeting.js +44 -44
  228. package/dist/components/rtk-menu-item.js +1 -1
  229. package/dist/components/rtk-menu-list.js +1 -1
  230. package/dist/components/rtk-menu.js +1 -1
  231. package/dist/components/rtk-message-list-view.js +4 -4
  232. package/dist/components/rtk-message-view.js +1 -1
  233. package/dist/components/rtk-mic-toggle.js +3 -3
  234. package/dist/components/rtk-mixed-grid.js +3 -3
  235. package/dist/components/rtk-more-toggle.js +4 -4
  236. package/dist/components/rtk-mute-all-button.js +3 -3
  237. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  238. package/dist/components/rtk-name-tag.js +1 -1
  239. package/dist/components/rtk-notification.js +1 -1
  240. package/dist/components/rtk-notifications.js +1 -1
  241. package/dist/components/rtk-overlay-modal.js +1 -1
  242. package/dist/components/rtk-paginated-list.js +1 -1
  243. package/dist/components/rtk-participant-setup.js +2 -2
  244. package/dist/components/rtk-participant.js +1 -1
  245. package/dist/components/rtk-participants-audio.js +1 -1
  246. package/dist/components/rtk-participants-stage-list.js +1 -1
  247. package/dist/components/rtk-participants-stage-queue.js +1 -1
  248. package/dist/components/rtk-participants-toggle.js +2 -2
  249. package/dist/components/rtk-participants-viewer-list.js +1 -1
  250. package/dist/components/rtk-participants-waiting-list.js +1 -1
  251. package/dist/components/rtk-participants.js +11 -11
  252. package/dist/components/rtk-permissions-message.js +1 -1
  253. package/dist/components/rtk-pip-toggle.js +2 -2
  254. package/dist/components/rtk-plugins-toggle.js +2 -2
  255. package/dist/components/rtk-plugins.js +1 -1
  256. package/dist/components/rtk-poll-form.js +1 -1
  257. package/dist/components/rtk-poll.js +1 -1
  258. package/dist/components/rtk-polls-toggle.js +2 -2
  259. package/dist/components/rtk-polls.js +1 -1
  260. package/dist/components/rtk-recording-indicator.js +1 -1
  261. package/dist/components/rtk-recording-toggle.js +2 -2
  262. package/dist/components/rtk-screen-share-toggle.js +3 -3
  263. package/dist/components/rtk-screenshare-view.js +6 -6
  264. package/dist/components/rtk-settings-audio.js +1 -1
  265. package/dist/components/rtk-settings-toggle.js +3 -3
  266. package/dist/components/rtk-settings-video.js +1 -1
  267. package/dist/components/rtk-settings.js +4 -4
  268. package/dist/components/rtk-setup-screen.js +1 -1
  269. package/dist/components/rtk-sidebar.js +5 -5
  270. package/dist/components/rtk-spinner.js +1 -1
  271. package/dist/components/rtk-spotlight-grid.js +2 -2
  272. package/dist/components/rtk-spotlight-indicator.js +1 -1
  273. package/dist/components/rtk-stage-toggle.js +3 -3
  274. package/dist/components/rtk-stage.js +1 -1
  275. package/dist/components/rtk-switch.js +1 -1
  276. package/dist/components/rtk-tab-bar.js +1 -1
  277. package/dist/components/rtk-text-composer-view.js +1 -1
  278. package/dist/components/rtk-text-message-view.js +1 -1
  279. package/dist/components/rtk-text-message.js +1 -1
  280. package/dist/components/rtk-tooltip.js +1 -1
  281. package/dist/components/rtk-transcript.js +1 -1
  282. package/dist/components/rtk-transcripts.js +1 -1
  283. package/dist/components/rtk-virtualized-participant-list.js +1 -1
  284. package/dist/components/rtk-waiting-screen.js +1 -1
  285. package/dist/docs/docs-components.json +2 -2
  286. package/dist/docs/docs-vscode.json +1 -1
  287. package/dist/esm/loader.js +125 -123
  288. package/dist/esm/rtk-ai-transcriptions.entry.js +1 -1
  289. package/dist/esm/rtk-audio-grid.entry.js +1 -1
  290. package/dist/esm/rtk-audio-visualizer_4.entry.js +9 -7
  291. package/dist/esm/rtk-avatar_54.entry.js +58 -58
  292. package/dist/esm/rtk-channel-selector-ui.entry.js +2 -2
  293. package/dist/esm/rtk-clock.entry.js +3 -3
  294. package/dist/esm/rtk-controlbar.entry.js +1 -1
  295. package/dist/esm/rtk-debugger-toggle.entry.js +1 -1
  296. package/dist/esm/rtk-file-dropzone.entry.js +1 -1
  297. package/dist/esm/rtk-header.entry.js +1 -1
  298. package/dist/esm/rtk-idle-screen.entry.js +1 -1
  299. package/dist/esm/rtk-image-viewer.entry.js +1 -1
  300. package/dist/esm/rtk-information-tooltip.entry.js +1 -1
  301. package/dist/esm/rtk-leave-button.entry.js +1 -1
  302. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  303. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  304. package/dist/esm/rtk-name-tag.entry.js +1 -1
  305. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  306. package/dist/esm/rtk-participant_2.entry.js +14 -14
  307. package/dist/esm/rtk-participants-audio.entry.js +1 -1
  308. package/dist/esm/rtk-participants-stage-list_4.entry.js +1 -1
  309. package/dist/esm/rtk-plugins_2.entry.js +4 -4
  310. package/dist/esm/rtk-poll_2.entry.js +3 -3
  311. package/dist/esm/rtk-recording-indicator.entry.js +1 -1
  312. package/dist/esm/rtk-screenshare-view.entry.js +5 -5
  313. package/dist/esm/rtk-settings-toggle.entry.js +1 -1
  314. package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
  315. package/dist/esm/rtk-stage.entry.js +1 -1
  316. package/dist/esm/rtk-transcript.entry.js +1 -1
  317. package/dist/esm/rtk-waiting-screen.entry.js +1 -1
  318. package/dist/realtimekit-ui/{p-1b626699.entry.js → p-0125c45d.entry.js} +1 -1
  319. package/dist/realtimekit-ui/{p-efa54e8e.entry.js → p-04ab7c4a.entry.js} +1 -1
  320. package/dist/realtimekit-ui/{p-474b0f74.entry.js → p-11020a12.entry.js} +1 -1
  321. package/dist/realtimekit-ui/{p-5a54dec7.entry.js → p-13b6e4ee.entry.js} +1 -1
  322. package/dist/realtimekit-ui/{p-4212a5b9.entry.js → p-2764b447.entry.js} +1 -1
  323. package/dist/realtimekit-ui/p-307355b9.entry.js +1 -0
  324. package/dist/realtimekit-ui/{p-5b4a5301.entry.js → p-35a51c3b.entry.js} +1 -1
  325. package/dist/realtimekit-ui/{p-cd21ddd6.entry.js → p-3dadb4e9.entry.js} +1 -1
  326. package/dist/realtimekit-ui/{p-fa9d810a.entry.js → p-49e6f5e0.entry.js} +1 -1
  327. package/dist/realtimekit-ui/{p-ea543c78.entry.js → p-4b9f6d75.entry.js} +1 -1
  328. package/dist/realtimekit-ui/{p-eef196ea.entry.js → p-4d5449e8.entry.js} +1 -1
  329. package/dist/realtimekit-ui/{p-6a477e1f.entry.js → p-532c52bb.entry.js} +1 -1
  330. package/dist/realtimekit-ui/{p-5cdfc43a.entry.js → p-642f73a0.entry.js} +1 -1
  331. package/dist/realtimekit-ui/{p-25113d9f.entry.js → p-66370bf2.entry.js} +1 -1
  332. package/dist/realtimekit-ui/p-77645be9.entry.js +1 -0
  333. package/dist/realtimekit-ui/{p-58b50726.entry.js → p-7d15ea69.entry.js} +1 -1
  334. package/dist/realtimekit-ui/{p-e61bff28.entry.js → p-825932ec.entry.js} +1 -1
  335. package/dist/realtimekit-ui/{p-e6285f43.entry.js → p-839d29e1.entry.js} +1 -1
  336. package/dist/realtimekit-ui/{p-d676be68.entry.js → p-9f7e30fa.entry.js} +1 -1
  337. package/dist/realtimekit-ui/{p-6115915b.entry.js → p-a8885d0a.entry.js} +1 -1
  338. package/dist/realtimekit-ui/p-a9fd8cbe.entry.js +1 -0
  339. package/dist/realtimekit-ui/{p-c21daa47.entry.js → p-b420bb34.entry.js} +1 -1
  340. package/dist/realtimekit-ui/{p-82832d02.entry.js → p-b6d92858.entry.js} +1 -1
  341. package/dist/realtimekit-ui/p-c48d0286.entry.js +1 -0
  342. package/dist/realtimekit-ui/{p-c34d1441.entry.js → p-cfff77bc.entry.js} +1 -1
  343. package/dist/realtimekit-ui/{p-702b87ec.entry.js → p-ded409c8.entry.js} +1 -1
  344. package/dist/realtimekit-ui/{p-6db7b60d.entry.js → p-e28f5af8.entry.js} +1 -1
  345. package/dist/realtimekit-ui/{p-5f73b13c.entry.js → p-e6287ffc.entry.js} +1 -1
  346. package/dist/realtimekit-ui/{p-7f423b4c.entry.js → p-f02d9838.entry.js} +1 -1
  347. package/dist/realtimekit-ui/{p-1f264d14.entry.js → p-ff811d06.entry.js} +1 -1
  348. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  349. package/dist/types/components/rtk-audio-visualizer/rtk-audio-visualizer.d.ts +1 -1
  350. package/dist/types/components.d.ts +2 -2
  351. package/package.json +1 -1
  352. package/dist/realtimekit-ui/p-511cb129.entry.js +0 -1
  353. package/dist/realtimekit-ui/p-822bf597.entry.js +0 -1
  354. package/dist/realtimekit-ui/p-adbe5063.entry.js +0 -1
  355. package/dist/realtimekit-ui/p-d6d86a24.entry.js +0 -1
@@ -73,9 +73,9 @@ const RtkClock = class {
73
73
  }
74
74
  render() {
75
75
  const showClock = this.startedTime !== undefined;
76
- return (h(Host, { key: 'a389e7c6a9fc8183f3228564bfa61f606ceaf979', "data-hidden": !showClock, tabIndex: 0, role: "timer", "aria-live": "off" }, this.startedTime !== undefined && [
77
- h("rtk-icon", { key: '5fe283d25031c367f018d7a99ea46ed0c0d46a86', icon: this.iconPack.clock, "aria-hidden": true, tabIndex: -1, part: "icon" }),
78
- h("span", { key: 'e5e134c951f7bbb3f161ae01d88d9c83ed85c798', part: "text" }, this.getFormattedTime()),
76
+ return (h(Host, { key: '23a8a2e6c14a8c1d1dd70dce26df45f1a302f085', "data-hidden": !showClock, tabIndex: 0, role: "timer", "aria-live": "off" }, this.startedTime !== undefined && [
77
+ h("rtk-icon", { key: '914bd75f8e3a14df602bbb58b2c2d75b26f7cb27', icon: this.iconPack.clock, "aria-hidden": true, tabIndex: -1, part: "icon" }),
78
+ h("span", { key: 'abb38cd4d3dbb3a6be06d1bf98b082c42551af2c', part: "text" }, this.getFormattedTime()),
79
79
  ]));
80
80
  }
81
81
  static get watchers() { return {
@@ -39,7 +39,7 @@ const RtkControlbar = class {
39
39
  iconPack: this.iconPack,
40
40
  size: this.size,
41
41
  };
42
- return (h(Host, { key: 'f42df94eb381604cc1e4e9716e7908cab55da6b2' }, !this.disableRender && (h(Render, { key: '2c961c3e2546e7610cd2e18ea8aeaf72dbdd1075', element: "rtk-controlbar", defaults: defaults, onlyChildren: true })), h("slot", { key: '9e2a7239b36ba2f4c40bf7c7d63441c833927a97' })));
42
+ return (h(Host, { key: '65680394a70e60ccdb25b0a872ab433610e1b8b7' }, !this.disableRender && (h(Render, { key: '244f8d28e5a18483193a8a62fabd7550c06c110d', element: "rtk-controlbar", defaults: defaults, onlyChildren: true })), h("slot", { key: 'e77d170e9292b6b1c0962c196ea9232ea4372294' })));
43
43
  }
44
44
  };
45
45
  __decorate([
@@ -34,7 +34,7 @@ const RtkDebuggerToggle = class {
34
34
  });
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '38be7c2de47b57a51bb6feedc0f8ea05801eec58', title: this.t('Troubleshooting') }, h("rtk-controlbar-button", { key: '18d8b11e7a57d4930c2d300eaeb60b9a77c45c5c', size: this.size, iconPack: this.iconPack, onClick: () => this.toggleDebugger(), icon: this.iconPack.debug, label: this.t('Troubleshooting'), variant: this.variant })));
37
+ return (h(Host, { key: '5675d28a2da23df6c54e79827b0adf37ef128cd9', title: this.t('Troubleshooting') }, h("rtk-controlbar-button", { key: 'b8e16bbfb77fe9c4d50e872ed4eaecf351816a98', size: this.size, iconPack: this.iconPack, onClick: () => this.toggleDebugger(), icon: this.iconPack.debug, label: this.t('Troubleshooting'), variant: this.variant })));
38
38
  }
39
39
  };
40
40
  __decorate([
@@ -42,7 +42,7 @@ const RtkFileDropzone = class {
42
42
  });
43
43
  }
44
44
  render() {
45
- return (h(Host, { key: '6a205001d1e1e1f7c54855005cab34b81e95c9b9' }, h("div", { key: 'b87bcc6c90819127b2783665e541b69ce49f1032', id: "dropzone", class: { active: this.dropzoneActivated }, part: "dropzone" }, h("rtk-icon", { key: '1f603086a79a170a4fc3f3df53df9cfdfbae73fe', icon: this.iconPack.attach }), h("p", { key: '0b4914a3fb881006b1af20533750e6b273a82a48' }, this.t('chat.send_attachment')))));
45
+ return (h(Host, { key: 'b48025cbb3461f9eb95eb3731d3cf0e0b7c370c7' }, h("div", { key: '00112e25f54a6b0a1c66530abcf232bf553d02d2', id: "dropzone", class: { active: this.dropzoneActivated }, part: "dropzone" }, h("rtk-icon", { key: '57b13d941c10854e3144d6107135e610734ed9f1', icon: this.iconPack.attach }), h("p", { key: '5f803ce1f2938255b865a6b905658463f6870060' }, this.t('chat.send_attachment')))));
46
46
  }
47
47
  };
48
48
  __decorate([
@@ -39,7 +39,7 @@ const RtkHeader = class {
39
39
  iconPack: this.iconPack,
40
40
  size: this.size,
41
41
  };
42
- return (h(Host, { key: 'cc998eacd57a6ab5492229b6eb900caf9aa6cfaa' }, !this.disableRender && h(Render, { key: 'c8bfb68227fcea6955c7e4d07cfe3d1eb9d7906d', element: "rtk-header", defaults: defaults, onlyChildren: true }), h("slot", { key: '50848506efeeccf7a6bd4539d65374eb64279d17' })));
42
+ return (h(Host, { key: '1f3b7e1a0a0895e6429c12ddb44470ef35a30d23' }, !this.disableRender && h(Render, { key: '3b1525e4f4aaac177b466e4c72be4b7492bd404f', element: "rtk-header", defaults: defaults, onlyChildren: true }), h("slot", { key: '6f770052362e6daa803638e0857de41c2c894ed3' })));
43
43
  }
44
44
  };
45
45
  __decorate([
@@ -26,7 +26,7 @@ const RtkIdleScreen = class {
26
26
  this.t = useLanguage();
27
27
  }
28
28
  render() {
29
- return (h(Host, { key: '9542c3ce51e79f077f59e3c260884b117ee8d327' }, h("slot", { key: 'b0d7e6f916ef6bc00eb77c89a6ee6c4f55fe81c5' }, h("div", { key: '028702fec102195179abb5ad93803478cda2cd4d', class: "ctr", part: "container" }, h("rtk-logo", { key: '5fa9163f969de1ee7f9f02b585138e16d583bf2b', meeting: this.meeting, config: this.config, t: this.t, part: "logo" }), h("rtk-spinner", { key: 'cbf0b91e0455cb2be65059766d6eb713674f2dcb', "aria-label": "Idle, waiting for meeting data", part: "spinner", iconPack: this.iconPack })))));
29
+ return (h(Host, { key: 'c5eff1252dc42e20190130962994d713b95b922b' }, h("slot", { key: '99a385d737fba394bcce3340d7ceaa49fe290580' }, h("div", { key: '484cfb782b699eea5be2eac7c003dcaea922177a', class: "ctr", part: "container" }, h("rtk-logo", { key: '0e190078187680faec1df09a7a50bc80d405a978', meeting: this.meeting, config: this.config, t: this.t, part: "logo" }), h("rtk-spinner", { key: 'f00bae50ccb13120714d2d94c9629747824b5eaa', "aria-label": "Idle, waiting for meeting data", part: "spinner", iconPack: this.iconPack })))));
30
30
  }
31
31
  };
32
32
  __decorate([
@@ -41,7 +41,7 @@ const RtkImageViewer = class {
41
41
  document.removeEventListener('click', this.handleOutsideClick);
42
42
  }
43
43
  render() {
44
- return (h(Host, { key: 'd3d145c8bd304fbe0e9420e7746ea15872772f3b', class: "scrollbar", onClick: (e) => e.stopPropagation() }, h("div", { key: '3f9ceed6d177439c39438dbb6ac60d08d630bf0e', class: "header" }, h("div", { key: '3944264dcf9903e55b544bda02dfa8d6643ba3ff', class: "shared-by-user" }, this.t('chat.img.shared_by'), ' ', h("span", { key: '540b69c4f1abdd437a003fa4ba9c9ddf8aa71dd8', class: "displayName" }, formatName(shorten(this.image.displayName)))), h("div", { key: 'ed632e11bcdf8fa46a2c1bd0f6b02884ee635b5a', class: "actions" }, h("rtk-button", { key: '677ef4df0f7235a27c925b1e742a61222c90049f', onClick: () => downloadFile(this.image.link, { fallbackName: 'image' }) }, h("rtk-icon", { key: '2479f3a5e2f9eff5359d377625d06337b2023e8c', icon: this.iconPack.download, slot: "start" }), "Download"), h("rtk-button", { key: '6ff009deb6e385481254e9fa6a7ae30f1676cff0', kind: "icon", variant: "secondary", onClick: () => this.close.emit() }, h("rtk-icon", { key: '6ad51918f8e76980f61c02c10b9a2cccfe5a2a7f', icon: this.iconPack.dismiss })))), h("div", { key: '5fd522972d26d9b4815ffe37d2d418b784e751ae', class: "image-ctr" }, h("img", { key: 'a45df563ecdf79e020e3269f6fd055aee27cfab0', src: this.image.link }))));
44
+ return (h(Host, { key: 'f7d65ee86716b9bea4ff1839df12647fa03bc053', class: "scrollbar", onClick: (e) => e.stopPropagation() }, h("div", { key: '30715a0e1d52250815411be7a4339c47a9c050ff', class: "header" }, h("div", { key: '69bcd74cea972c9663f46549b1c62b08afd94558', class: "shared-by-user" }, this.t('chat.img.shared_by'), ' ', h("span", { key: '86b7f0095054d490e0a534d2c5df3733503dde72', class: "displayName" }, formatName(shorten(this.image.displayName)))), h("div", { key: '84b428b667da741f420753a0c58ef6a04169f765', class: "actions" }, h("rtk-button", { key: 'dce9d2b6c6e4b7dcfb429839762a0f350dc474df', onClick: () => downloadFile(this.image.link, { fallbackName: 'image' }) }, h("rtk-icon", { key: 'f9a6b1fbd5f770555ba4bc7267fff7ca6102f097', icon: this.iconPack.download, slot: "start" }), "Download"), h("rtk-button", { key: '4051efa57da483dc628769fdd1e754a49fd389b7', kind: "icon", variant: "secondary", onClick: () => this.close.emit() }, h("rtk-icon", { key: 'ee1e43b0f89ad76c5cad6db21d6f8759c5d87a89', icon: this.iconPack.dismiss })))), h("div", { key: '752ab0206aa1b1e9447f9814210bcaa346dfab5d', class: "image-ctr" }, h("img", { key: '7de531b58aa5aad94ab03d500d34d13c37b43ba1', src: this.image.link }))));
45
45
  }
46
46
  };
47
47
  __decorate([
@@ -22,7 +22,7 @@ const RtkInformationTooltip = class {
22
22
  this.iconPack = defaultIconPack;
23
23
  }
24
24
  render() {
25
- return (h(Host, { key: 'e6592aeb2d479a084f6100d1a32f6df61c2e979c' }, h("div", { key: '9406039d36b98781c2eb8dbbe37fab9a3390c90b', class: "tooltip-container" }, h("rtk-icon", { key: '97fd3324d790e8dc81d81bb272cacd95a2a95997', icon: this.iconPack.info, size: "sm" }), h("div", { key: 'e3b5b3a8e69cea34a1aa86b1a6eff2008028b673', class: "tooltip" }, h("slot", { key: '88608c68efc3287baf74d717a5e3ca418ef0dc9b', name: "tootlip-text" })))));
25
+ return (h(Host, { key: '71ecafbad168eb980530eb5e524f9b243ac49fc7' }, h("div", { key: 'beb675be20de89080d7fdeefb47367c5ab201a73', class: "tooltip-container" }, h("rtk-icon", { key: '8e135030eb60115c1f2a49ad71caedbd9e1b50e8', icon: this.iconPack.info, size: "sm" }), h("div", { key: '9b4c277f0d2c9311258c24f1001bf763936adde3', class: "tooltip" }, h("slot", { key: '66c6b7895cd23271cca393cc12dc075c1bf14923', name: "tootlip-text" })))));
26
26
  }
27
27
  };
28
28
  __decorate([
@@ -31,7 +31,7 @@ const RtkLeaveButton = class {
31
31
  }
32
32
  render() {
33
33
  const text = this.t('leave');
34
- return (h(Host, { key: 'fc176585ba4617c2b64d05d9b2e1ee66084666aa', label: text }, h("rtk-controlbar-button", { key: 'feb4ee03ff7d16bf6ab858a3207a628121fd477b', size: this.size, iconPack: this.iconPack, class: "leave red-icon", onClick: this.leave, icon: this.iconPack.call_end, label: text, variant: this.variant, part: "controlbar-button" })));
34
+ return (h(Host, { key: '9a760243cdb8a409f96b2e44b07e84495ecf8ba6', label: text }, h("rtk-controlbar-button", { key: '5a45791756d7e448493b4968876820230d7ce81f', size: this.size, iconPack: this.iconPack, class: "leave red-icon", onClick: this.leave, icon: this.iconPack.call_end, label: text, variant: this.variant, part: "controlbar-button" })));
35
35
  }
36
36
  };
37
37
  __decorate([
@@ -262,11 +262,11 @@ const RtkMessageListView = class {
262
262
  this.updateTotalHeight();
263
263
  }
264
264
  render() {
265
- return (h("div", { key: '17ccb3852a89ddb77e5799413f8ee0ef0ac7c132', class: "scrollbar content-wrapper", ref: (el) => (this.$listRef = el), onScroll: this.handleScroll }, h("div", { key: '044af22a10ae312a46d90f29dc9a793d86540fb8', class: "scroller" }, h("div", { key: '15a2b213883f210a44081c05c317f9da7a58380c', style: {
265
+ return (h("div", { key: '4da03366f085b87729d946b1633d031e4656f2ac', class: "scrollbar content-wrapper", ref: (el) => (this.$listRef = el), onScroll: this.handleScroll }, h("div", { key: '7a8268e8a3d5326d359f4722c341e6487e1f21f6', class: "scroller" }, h("div", { key: 'b856c5ec8c602963ab9bd74e9838b4ce6bf05f85', style: {
266
266
  height: `${this.totalHeight}px`,
267
- } }), h("div", { key: '918071c6d3aed045814c1c2b3908572edae480ac', class: "smallest-dom-element", id: "list-end", ref: (el) => (this.$listEndRef = el) })), h("div", { key: '19b2f45794fa73f44d54b9b91ef1cab0df6c4aae', class: "content", style: {
267
+ } }), h("div", { key: 'a7fe4267408199ffe0f81b56c00f3dffb5e2e59f', class: "smallest-dom-element", id: "list-end", ref: (el) => (this.$listEndRef = el) })), h("div", { key: 'bcd29a59a370c975ab344cabeefdd7ce905f37fe', class: "content", style: {
268
268
  transform: `translateY(${this.getRangeSize(0, this.range.start)}px)`,
269
- } }, this.isFetching && (h("div", { key: '1a05d8ec0a4a11812afef413226c472d797e7ebe', class: "loader" }, h("rtk-spinner", { key: '29f275642f8f8be5d9cbe12ff0eeedba48e1b4c1', size: "md" }))), this.getVisibleItems().map((msg, index) => (h("div", { key: msg.id, ref: (el) => this.rendererInternal(el, msg, index) }))))));
269
+ } }, this.isFetching && (h("div", { key: '6529fdc824381737d75e489f262dcf90bd12e186', class: "loader" }, h("rtk-spinner", { key: '8785a6b44007f8ce834639b5e6ae9221a6df704c', size: "md" }))), this.getVisibleItems().map((msg, index) => (h("div", { key: msg.id, ref: (el) => this.rendererInternal(el, msg, index) }))))));
270
270
  }
271
271
  static get watchers() { return {
272
272
  "messages": ["messagesUpdated"]
@@ -49,10 +49,10 @@ const RtkMoreToggle = class {
49
49
  }
50
50
  render() {
51
51
  const text = this.t('more');
52
- return (h(Host, { key: 'ae92dc374ab721ea86cfe8d0f658be4f4c624d51', title: text }, this.states.activeMoreMenu && (h("div", { key: '061d68748259df66e729ff830c9d72909b8185a6', class: "more-menu" }, h("slot", { key: '6a89ae4f51c32c560c83bb5fa10f694797f4d20c', name: "more-elements" }))), h("rtk-controlbar-button", { key: '775fcd968101f57f070159f6992ad55527fd424a', size: this.size, iconPack: this.iconPack, onClick: (e) => {
52
+ return (h(Host, { key: '8cee20061968a6658b164929fa725c0d56f3c5f4', title: text }, this.states.activeMoreMenu && (h("div", { key: '1cf7d2a85d4d1626a0c469d77c91131e9f86b451', class: "more-menu" }, h("slot", { key: '3c1507fa6561127f2d1a4f9d53899dece5d933a2', name: "more-elements" }))), h("rtk-controlbar-button", { key: '76ea4f7d1a55abc6928c6b6c55d89382d46b34e3', size: this.size, iconPack: this.iconPack, onClick: (e) => {
53
53
  e.stopPropagation();
54
54
  this.toggleMoreMenu();
55
- }, icon: this.iconPack.horizontal_dots, label: text, part: "controlbar-button" }), h("slot", { key: '4b2006186051bf7c0e80dc4d9536d610d25ae7ba', name: "expanded" })));
55
+ }, icon: this.iconPack.horizontal_dots, label: text, part: "controlbar-button" }), h("slot", { key: 'e38000e817552abd2b20668885effaf8a0b73592', name: "expanded" })));
56
56
  }
57
57
  get host() { return getElement(this); }
58
58
  };
@@ -45,7 +45,7 @@ const RtkNameTag = class {
45
45
  var _a, _b, _c;
46
46
  const name = formatName(((_a = this.participant) === null || _a === void 0 ? void 0 : _a.name) || '');
47
47
  const isSelf = ((_b = this.participant) === null || _b === void 0 ? void 0 : _b.id) === ((_c = this.meeting) === null || _c === void 0 ? void 0 : _c.self.id);
48
- return (h(Host, { key: '05fa4b586b3b0f02b881b889fa24ea3fded851ff', title: name }, h("slot", { key: '3687ef547d6bce55ecab7961e51e1b9a1beb9798', name: "start" }), h("span", { key: '6e1ef3741cdf635ab3eb6acf5d97cb0c133a1bcd', class: "name" }, this.formatNameTag(name, isSelf)), h("slot", { key: '102712f4ab6f1fdbb15c1a56676b3399ef1369f0', name: "end" })));
48
+ return (h(Host, { key: 'd42b26fe39b4a8643e32b420ec6cded7450dde20', title: name }, h("slot", { key: '5235adedfaef8eb0b99d46f9b6e89efe40e53f68', name: "start" }), h("span", { key: 'bd15296809e2caf334c6786e45e3b751633ff001', class: "name" }, this.formatNameTag(name, isSelf)), h("slot", { key: '6f5a39cfecf90b9d449b08274eb20b450bcba196', name: "end" })));
49
49
  }
50
50
  static get watchers() { return {
51
51
  "size": ["sizeChanged"]
@@ -86,11 +86,11 @@ const RtkParticipantSetup = class {
86
86
  }
87
87
  render() {
88
88
  var _a, _b, _c, _d;
89
- return (h(Host, { key: '0e892e1dfa9613f7fdd62dbca7254284eb6df977' }, h("video", { key: 'bc958a758eef2ada959c848ea85ab337daec8dc7', ref: (el) => (this.videoEl = el), class: {
89
+ return (h(Host, { key: 'b1470884fc7e85a79e6d6954547737690dd6923a' }, h("video", { key: 'c967c9e6716624e3a484d424fe33a50b4d9799c6', ref: (el) => (this.videoEl = el), class: {
90
90
  visible: (_a = this.videoState) === null || _a === void 0 ? void 0 : _a.videoEnabled,
91
91
  mirror: this.isMirrored(),
92
92
  [(_d = (_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.config) === null || _c === void 0 ? void 0 : _c.videoFit) !== null && _d !== void 0 ? _d : 'cover']: true,
93
- }, autoPlay: true, playsInline: true, muted: true }), h("slot", { key: '4271e84aaf556c68d2781da4b1e67ce709a1f00c' })));
93
+ }, autoPlay: true, playsInline: true, muted: true }), h("slot", { key: 'fe319fc4aa0cc4049024e3860a8af2b2d6d5bc68' })));
94
94
  }
95
95
  static get watchers() { return {
96
96
  "participant": ["participantsChanged"],
@@ -218,9 +218,9 @@ const RtkParticipant = class {
218
218
  iconPack: this.iconPack,
219
219
  t: this.t,
220
220
  };
221
- return (h(Host, { key: 'fca2be3a201295536c8401df43b0d7c574204d67' }, h("div", { class: "left", key: (_e = this.participant) === null || _e === void 0 ? void 0 : _e.id }, h("rtk-avatar", { key: 'fc9a18d3afb9e023f690cc09b61c8fece2117131', participant: this.participant, size: "sm", iconPack: this.iconPack, t: this.t }), h("p", { key: '76bde07e6b502ad5b329ca0780e96b7d13ca6c86', class: "name", title: name }, shorten(name, 16), " ", ((_f = this.meeting) === null || _f === void 0 ? void 0 : _f.self.id) === ((_g = this.participant) === null || _g === void 0 ? void 0 : _g.id) && this.t('(you)'))), this.view === 'sidebar' && (h("div", { key: 'f5475e848b7eb07f36b03514c2f140366fa9db75', class: "right" }, isActiveParticipant && (h("rtk-icon", { key: 'd79d3570137dc8f44d85d4f1325d2b7528ae2b09', class: {
221
+ return (h(Host, { key: '804f9c2daf473fd518c6697a51b82f5baf63fb17' }, h("div", { class: "left", key: (_e = this.participant) === null || _e === void 0 ? void 0 : _e.id }, h("rtk-avatar", { key: '98f6f1a031269f5ca6523ed38228bcb64a3fe97d', participant: this.participant, size: "sm", iconPack: this.iconPack, t: this.t }), h("p", { key: 'de05ef0806cb0e614bae951715ec263cb2271492', class: "name", title: name }, shorten(name, 16), " ", ((_f = this.meeting) === null || _f === void 0 ? void 0 : _f.self.id) === ((_g = this.participant) === null || _g === void 0 ? void 0 : _g.id) && this.t('(you)'))), this.view === 'sidebar' && (h("div", { key: '8393d899384cac8ff0e248a76f4095922f98e1cb', class: "right" }, isActiveParticipant && (h("rtk-icon", { key: '7b99b6269a101d01a8014dc4038b6bcada21203f', class: {
222
222
  red: !this.audioEnabled,
223
- }, icon: this.audioEnabled ? this.iconPack.mic_on : this.iconPack.mic_off })), isActiveParticipant && !isAudioRoom && (h("rtk-icon", { key: '8267f27a37e363ddc54708d31c6715fffd6bf057', class: {
223
+ }, icon: this.audioEnabled ? this.iconPack.mic_on : this.iconPack.mic_off })), isActiveParticipant && !isAudioRoom && (h("rtk-icon", { key: 'e6e7d7e8a50a9ad0be657b85245252300182c539', class: {
224
224
  red: !this.videoEnabled,
225
225
  }, icon: this.videoEnabled ? this.iconPack.video_on : this.iconPack.video_off })), (showMenu ||
226
226
  lenChildren({
@@ -229,34 +229,34 @@ const RtkParticipant = class {
229
229
  childProps: {
230
230
  participant: this.participant,
231
231
  },
232
- }) > 0) && (h("div", { key: '16a70e1c20fbc9b60bdc06c2b5621eeb92ffd456', class: "menu" }, h("span", { key: '2283145bee77a1d3cca5b78ab035df9295c0bd12', id: "trigger", onClick: this.onMenuToggle }, h("rtk-button", { key: 'f11c52baf39ff342d4bd6cac5882b7852bea5dd0', variant: "ghost", kind: "icon", slot: "trigger" }, h("rtk-icon", { key: '2d218acada676cb4fc8d2b720fd7a785932b05cb', class: "more", icon: this.iconPack.more_vertical }))), h("span", { key: '57eee96bfe16ec0792f068b1c5125020522b6ea0', id: "menu-list" }, this.menuOpen && (h("rtk-menu-list", { key: '73786a54c181560cf3744d41872860a4f9226182', iconPack: this.iconPack, t: this.t }, this.canPinParticipant && isActiveParticipant && !isAudioRoom && (h("rtk-menu-item", { key: '5e58a73a8ee20e682dfaea8352bf757f21f2074d', onClick: () => {
232
+ }) > 0) && (h("div", { key: '085e0ffe3c230ef1f21ed5de6c11ef70ccfeb69b', class: "menu" }, h("span", { key: 'ab295b485204509824a6bce511a80ec939e31fbb', id: "trigger", onClick: this.onMenuToggle }, h("rtk-button", { key: '0f0cb35c69e63ba8d8b3835cec42aba9f65dc6b8', variant: "ghost", kind: "icon", slot: "trigger" }, h("rtk-icon", { key: 'ebd5705879751573de28ddad204d8f16b055a2b9', class: "more", icon: this.iconPack.more_vertical }))), h("span", { key: '98ec81219c735d44ba36eb2e677b734cc43e478d', id: "menu-list" }, this.menuOpen && (h("rtk-menu-list", { key: '243c43eacd1c429f4c7bd2fcd24fef3983209226', iconPack: this.iconPack, t: this.t }, this.canPinParticipant && isActiveParticipant && !isAudioRoom && (h("rtk-menu-item", { key: '93b74a42b5b37fe15bcbe7a5217258c8cb2b48b9', onClick: () => {
233
233
  if (this.isPinned) {
234
234
  this.participant.unpin();
235
235
  }
236
236
  else {
237
237
  this.participant.pin();
238
238
  }
239
- }, iconPack: this.iconPack, t: this.t }, h("rtk-icon", { key: '7b1135f7ea874641440af548c170d7eed932f5aa', icon: this.isPinned ? this.iconPack.pin_off : this.iconPack.pin, slot: "start" }), this.isPinned ? this.t('unpin') : this.t('pin'))), isSelf && (h("rtk-menu-item", { key: '6f1a6e919ad72776e0a318bac3657e358a846e42', iconPack: this.iconPack, t: this.t, onClick: () => {
239
+ }, iconPack: this.iconPack, t: this.t }, h("rtk-icon", { key: '0c1c8f6cc7b10c2fdea37f79ad0fc00cbb50f1d6', icon: this.isPinned ? this.iconPack.pin_off : this.iconPack.pin, slot: "start" }), this.isPinned ? this.t('unpin') : this.t('pin'))), isSelf && (h("rtk-menu-item", { key: 'dd4d5dff2c77f93a233a5f565d9d64fddb660c0d', iconPack: this.iconPack, t: this.t, onClick: () => {
240
240
  this.isHidden
241
241
  ? this.participant.show()
242
242
  : this.participant.hide();
243
- } }, h("rtk-icon", { key: '6d2dc3f5a8fcbac7bee5855418f2d310a44ea581', icon: this.isHidden ? this.iconPack.minimize : this.iconPack.maximize, slot: "start" }), !this.meeting.self.hidden ? this.t('minimize') : this.t('maximize'))), this.canDisableParticipantAudio &&
243
+ } }, h("rtk-icon", { key: 'fdfc1cfeca1b1c63dd27fcc31a658f1d1a8d5c17', icon: this.isHidden ? this.iconPack.minimize : this.iconPack.maximize, slot: "start" }), !this.meeting.self.hidden ? this.t('minimize') : this.t('maximize'))), this.canDisableParticipantAudio &&
244
244
  isActiveParticipant &&
245
- this.audioEnabled && (h("rtk-menu-item", { key: '9f15f60f110f41b68a7e48c5f14f1826f291a76a', iconPack: this.iconPack, t: this.t, onClick: () => {
245
+ this.audioEnabled && (h("rtk-menu-item", { key: '95edf3439889a9c468acce8ef88ababef747e018', iconPack: this.iconPack, t: this.t, onClick: () => {
246
246
  this.participant.disableAudio();
247
- } }, h("rtk-icon", { key: '337bd8e35012e5d5db7c899246f5debff0e82a8f', icon: this.iconPack.mic_off, slot: "start" }), this.t('mute'))), this.canDisableParticipantVideo &&
247
+ } }, h("rtk-icon", { key: '1df60ff6541717369a5c8c1fa47dcb09e2499f8d', icon: this.iconPack.mic_off, slot: "start" }), this.t('mute'))), this.canDisableParticipantVideo &&
248
248
  isActiveParticipant &&
249
- this.videoEnabled && (h("rtk-menu-item", { key: '5c57b5c3e63efc77578849e1e631d92bece21b93', iconPack: this.iconPack, t: this.t, onClick: () => {
249
+ this.videoEnabled && (h("rtk-menu-item", { key: 'e3812a8631be2f84695b90ac80f0214a26495071', iconPack: this.iconPack, t: this.t, onClick: () => {
250
250
  this.participant.disableVideo();
251
- } }, h("rtk-icon", { key: 'dc95678f6f7fdc6dcbce86ee6a13d9891e039770', icon: this.iconPack.video_off, slot: "start" }), this.t('participants.turn_off_video'))), this.canAllowParticipantOnStage &&
252
- ((_h = this.participant) === null || _h === void 0 ? void 0 : _h.id) !== ((_j = this.meeting) === null || _j === void 0 ? void 0 : _j.self.id) && (h("rtk-menu-item", { key: '60aabc93efd82a76edcea10d895522d9c9d5e68f', iconPack: this.iconPack, t: this.t, class: this.isOnStage ? 'red' : '', onClick: this.inviteToStageToggle }, h("rtk-icon", { key: '6eef25ebdfae1932011b9764cdc3cbf7f07ecd1b', icon: this.isOnStage
251
+ } }, h("rtk-icon", { key: '634c9c452ecd36d6c024cbb0e22a79059f4b85a6', icon: this.iconPack.video_off, slot: "start" }), this.t('participants.turn_off_video'))), this.canAllowParticipantOnStage &&
252
+ ((_h = this.participant) === null || _h === void 0 ? void 0 : _h.id) !== ((_j = this.meeting) === null || _j === void 0 ? void 0 : _j.self.id) && (h("rtk-menu-item", { key: '3428e0c1d22f675bbec3a920670a26dd3c7c66e5', iconPack: this.iconPack, t: this.t, class: this.isOnStage ? 'red' : '', onClick: this.inviteToStageToggle }, h("rtk-icon", { key: '55cdf3825acd959945ce82b19fd69f36e26aa476', icon: this.isOnStage
253
253
  ? this.iconPack.leave_stage
254
254
  : this.iconPack.join_stage, slot: "start" }), this.isOnStage
255
255
  ? this.t('stage.remove_from_stage')
256
- : this.t('stage.add_to_stage'))), !isSelf && this.canKickParticipant && (h("rtk-menu-item", { key: '69ede235912eaf64e025d7b05dae7ee0e9089ab4', iconPack: this.iconPack, t: this.t, class: "red", onClick: () => {
256
+ : this.t('stage.add_to_stage'))), !isSelf && this.canKickParticipant && (h("rtk-menu-item", { key: 'affe710adb04e305b6a46b9de2d25984d6c075d6', iconPack: this.iconPack, t: this.t, class: "red", onClick: () => {
257
257
  var _a, _b;
258
258
  (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.participants.kick((_b = this.participant) === null || _b === void 0 ? void 0 : _b.id);
259
- } }, h("rtk-icon", { key: 'e4ad9ac63eea2e436374289d5e0b83a754bf65fd', icon: this.iconPack.dismiss, slot: "start" }), this.t('kick'))), h("slot", { key: '51235a7802e6878c7391c132e4bd8c3c636b57c5' }, h(Render, { key: '5ca8b68b79c748f3ced6cdb33ec8757caa7b597b', element: "rtk-participant", defaults: defaults, childProps: {
259
+ } }, h("rtk-icon", { key: 'd9c55c666231f76f00dd68ce0e2bedd92462ef89', icon: this.iconPack.dismiss, slot: "start" }), this.t('kick'))), h("slot", { key: '7017ef52152b1908e93ce539f762120425e50562' }, h(Render, { key: '28c3eacd6a4572c806748a7d09a861f000430b90', element: "rtk-participant", defaults: defaults, childProps: {
260
260
  participant: this.participant,
261
261
  }, deepProps: true, onlyChildren: true })))))))))));
262
262
  }
@@ -399,12 +399,12 @@ const RtkVirtualizedParticipantList = class {
399
399
  render() {
400
400
  var _a;
401
401
  const totalHeight = this.items.length * this.itemHeight; // Total height of the list
402
- return (h("div", { key: 'b2f64c371659124c270ecb75efe4ec12498bdf8e', class: "virtual-list-container", style: {
402
+ return (h("div", { key: '8928758911fd6ac3b955e727306f1ebfe19aba9b', class: "virtual-list-container", style: {
403
403
  position: 'relative',
404
404
  height: '100%',
405
405
  overflowX: 'hidden',
406
406
  overflowY: 'auto',
407
- } }, h("div", { key: '3467332664e7bc167748dea0ec64da614ad4915c', style: { height: `${totalHeight}px`, position: 'relative' } }, !((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) ? this.emptyListElement : this.renderItems()), h("div", { key: '738cc8ac54467c1a5b6d257885a19e29c10de5e1', style: { height: `${this.itemHeight}px` } })));
407
+ } }, h("div", { key: '4812952f05b7cbcb920cf5bfe54cd30c26cb8b0d', style: { height: `${totalHeight}px`, position: 'relative' } }, !((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) ? this.emptyListElement : this.renderItems()), h("div", { key: '0f9cd358e2d49af44765dbe560a323c9e8fa09f7', style: { height: `${this.itemHeight}px` } })));
408
408
  }
409
409
  get el() { return getElement(this); }
410
410
  static get watchers() { return {
@@ -180,7 +180,7 @@ const RtkParticipantsAudio = class {
180
180
  await this.handleEvents(meeting);
181
181
  }
182
182
  render() {
183
- return (h(Host, { key: '21a64212a6cc90c14a8f5593269be311b844c574' }, this.showPlayDialog && (h("rtk-dialog", { key: '9572a416560f8ebd569d977b0d6b1758fe9ffaa4', open: true, onRtkDialogClose: this.onRtkDialogClose, hideCloseButton: true, disableEscapeKey: true, iconPack: this.iconPack, t: this.t }, h("div", { key: 'dd3cea3ac1b3ba4feb4f85a0cc2d8505bf25597e', class: "modal" }, h("h3", { key: '3dc9046e0322029cee74b8d5688453f081b529e1' }, this.t('audio_playback.title')), h("p", { key: 'b9b076d73c0ac8fa13e25bfba2ebd6c968d41e58' }, this.t('audio_playback.description')), h("rtk-button", { key: '274d941ea5c4f3b6aa6e94f200dabd84856ebccc', kind: "wide", onClick: () => {
183
+ return (h(Host, { key: '6055104d2d2e54c60d42b51bcb4c296346d13a19' }, this.showPlayDialog && (h("rtk-dialog", { key: '8dce181e5c8f0f33f615bf48f1f85bd3c11efa2b', open: true, onRtkDialogClose: this.onRtkDialogClose, hideCloseButton: true, disableEscapeKey: true, iconPack: this.iconPack, t: this.t }, h("div", { key: '5be7e31e7776eecf09bcc981757d24da71ce6a43', class: "modal" }, h("h3", { key: '9e2df7d9e655102c51f841718e8e365d578e96fb' }, this.t('audio_playback.title')), h("p", { key: 'c7c406eeb93ab661cf144e69e0782cbde5588753' }, this.t('audio_playback.description')), h("rtk-button", { key: '0c5e9341edb22e32666591a0fb212aea54c61d0b', kind: "wide", onClick: () => {
184
184
  this.audio.play();
185
185
  this.onRtkDialogClose();
186
186
  }, title: this.t('audio_playback') }, this.t('audio_playback')))))));
@@ -104,7 +104,7 @@ const RtkParticipants = class {
104
104
  }
105
105
  }
106
106
  render() {
107
- return (h(Host, { key: 'd9102eb22990f801c354c45ee0ff46f4a13fef60' }, h("div", { key: '58644b83e1b580f2ffd41a61319e88cfb1aae584', class: "participants-container" }, !this.hideHeader && (h("div", { key: '4063fc5e4322b723f02d40fe80522236a7ae728d', class: "heading-count", part: "heading-count" }, this.t('participants'), " (", this.participants.length, ")")), h("rtk-virtualized-participant-list", { key: '45a95caaa31437c03679394305115045fa6a016f', items: this.participants, renderItem: this.createParticipantNode, part: "participants", class: "participants", emptyListElement: h("div", { class: "empty-stage-list" }, this.search.length > 0 ? this.t('search.could_not_find') : this.t('search.empty')) }))));
107
+ return (h(Host, { key: 'd799034511ea2f1b1125e0a5ba4ea52add1ac748' }, h("div", { key: 'e46415181eaa216bc46470ebbce23f4dfe3b96b8', class: "participants-container" }, !this.hideHeader && (h("div", { key: '83a22247b44cfd8a7bee2c89fdd199310d2cc008', class: "heading-count", part: "heading-count" }, this.t('participants'), " (", this.participants.length, ")")), h("rtk-virtualized-participant-list", { key: '64876afecf04945ed6ab8f567dd19298add079e9', items: this.participants, renderItem: this.createParticipantNode, part: "participants", class: "participants", emptyListElement: h("div", { class: "empty-stage-list" }, this.search.length > 0 ? this.t('search.could_not_find') : this.t('search.empty')) }))));
108
108
  }
109
109
  static get watchers() { return {
110
110
  "meeting": ["meetingChanged"],
@@ -56,7 +56,7 @@ const RtkPlugins = class {
56
56
  }
57
57
  }
58
58
  render() {
59
- return (h(Host, { key: '4df38ce202b9551b38746e549824ff800ffc9fc1' }, h("ul", { key: '19ad38b73ff77459cfda3227a013c2e28823386f', class: "scrollbar" }, this.plugins.map((plugin) => (h("li", { key: plugin.name, class: "plugin" }, h("div", { class: "metadata" }, h("img", { src: plugin.picture }), h("div", { class: "name" }, plugin.name)), !this.activatedPluginsId.includes(plugin.id) && this.canStartPlugins && (h("div", { class: "buttons" }, h("rtk-button", { kind: "icon", size: "lg", onClick: () => {
59
+ return (h(Host, { key: 'c0621bcd1d64b1eb9e4b913bb2707d66179848a8' }, h("ul", { key: '2796e509a4df169a3b6455b06e33bcf9e1e634d4', class: "scrollbar" }, this.plugins.map((plugin) => (h("li", { key: plugin.name, class: "plugin" }, h("div", { class: "metadata" }, h("img", { src: plugin.picture }), h("div", { class: "name" }, plugin.name)), !this.activatedPluginsId.includes(plugin.id) && this.canStartPlugins && (h("div", { class: "buttons" }, h("rtk-button", { kind: "icon", size: "lg", onClick: () => {
60
60
  plugin.activate();
61
61
  this.close();
62
62
  }, "aria-label": `${this.t('activate')} ${plugin.name}` }, h("rtk-icon", { icon: this.iconPack.rocket, tabIndex: -1, "aria-hidden": true })))), this.activatedPluginsId.includes(plugin.id) && this.canClosePlugins && (h("div", { class: "buttons" }, h("rtk-button", { kind: "icon", size: "lg", onClick: () => {
@@ -149,14 +149,14 @@ const RtkPolls = class {
149
149
  }
150
150
  render() {
151
151
  var _a, _b;
152
- return (h(Host, { key: 'f259b6fa652fe2e81c18d3a0fb85a15d0c091de3' }, h("div", { key: '6cc127127307bcb1a5482a260fe7ccaf65bb1e3d', class: "ctr", part: "container" }, h("div", { key: 'ef9df557e4a5fb99ea2ce66172b7a889410daeea', class: "polls-view scrollbar", ref: (el) => (this.pollEl = el), part: "polls" }, this.polls.length == 0 && this.create !== true && (h("div", { key: '0eb92f8f60ab00fb849b2d656a9d8bafb26195de', class: "empty-polls" }, this.t('polls.empty'))), this.polls.map((item) => {
152
+ return (h(Host, { key: '41908b79966d12fc13782a05b2763e233d0ef8c7' }, h("div", { key: '87f36d5e811009624ffc1f1d18f55aefc50f6c8e', class: "ctr", part: "container" }, h("div", { key: 'cc5170445db169e2de47e18d7d0dac0bf932726a', class: "polls-view scrollbar", ref: (el) => (this.pollEl = el), part: "polls" }, this.polls.length == 0 && this.create !== true && (h("div", { key: '9d1db7791f35b78137726957bcac10cba381227e', class: "empty-polls" }, this.t('polls.empty'))), this.polls.map((item) => {
153
153
  var _a;
154
154
  return (h("rtk-poll", { key: item.id, poll: item, onRtkVotePoll: (e) => {
155
155
  this.onVote(e.detail.id, e.detail.index);
156
156
  }, self: (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.self.userId, iconPack: this.iconPack, t: this.t, permissions: this.permissions }));
157
- }), this.create && (h("rtk-poll-form", { key: '71fc9e183684f5cafee5f0885af3d679d099a8ec', part: "poll-form", onRtkCreatePoll: (e) => {
157
+ }), this.create && (h("rtk-poll-form", { key: '9f73d645076a512dfffc3009dada18c137b918d0', part: "poll-form", onRtkCreatePoll: (e) => {
158
158
  this.onCreate(e.detail);
159
- }, iconPack: this.iconPack, t: this.t }))), ((_b = (_a = this.permissions) === null || _a === void 0 ? void 0 : _a.polls) === null || _b === void 0 ? void 0 : _b.canCreate) && (h("rtk-button", { key: '0639577353327ded0d1e7db08cbaadac47ec296c', kind: "wide", onClick: () => this.toggleCreateState(), variant: this.create ? 'secondary' : 'primary', part: "button" }, this.create ? this.t('polls.cancel') : this.t('polls.create'))))));
159
+ }, iconPack: this.iconPack, t: this.t }))), ((_b = (_a = this.permissions) === null || _a === void 0 ? void 0 : _a.polls) === null || _b === void 0 ? void 0 : _b.canCreate) && (h("rtk-button", { key: 'e24dd4ab4c0e61acdbcff002ef16553214cfb94e', kind: "wide", onClick: () => this.toggleCreateState(), variant: this.create ? 'secondary' : 'primary', part: "button" }, this.create ? this.t('polls.cancel') : this.t('polls.create'))))));
160
160
  }
161
161
  static get watchers() { return {
162
162
  "meeting": ["meetingChanged"]
@@ -36,7 +36,7 @@ const RtkPolls = class {
36
36
  }
37
37
  render() {
38
38
  const hasVoted = this.poll.voted.includes(this.self);
39
- return (h(Host, { key: '2951e932453e7c58f3d2a1bc0952b02c7f231fe2' }, h("div", { key: 'fda1240df8d21e01df14e749593f00ca81a4c4a2', class: "ctr" }, h("p", { key: '08459f706bdb922eddc7a3b7f3b2177293f18371', class: "poll-title" }, this.t('polls.by'), " ", shorten(formatName(this.poll.createdBy), 20)), h("div", { key: 'b8c1d0755a17862bf372c24c72b6ad5f9a774d81', class: "poll" }, h("p", { key: 'cd76bf5da75f3165eecac1c6845bbb5c0a69a99c', class: "poll-question" }, this.poll.question), h("div", { key: '00c702b964872b7883bcd656e3b8e03a1986b28e', class: "poll-answers" }, h("span", { key: 'e51a233616f792e6bcbbb8376099a4a5e9e7dd02' }, this.t('polls.answers')), h("span", { key: 'f3fe545292f85870d11f334c211099bdab8694f0' }, this.poll.voted.length)), this.poll.options.map((item, index) => (h("div", { class: {
39
+ return (h(Host, { key: 'f279288f91b6fe8d525fc8498733763081c8d33b' }, h("div", { key: '5919d49691938b1886af73aed2e84c9281d400ae', class: "ctr" }, h("p", { key: '9881e172379add503d5b7057719214ff7094e66d', class: "poll-title" }, this.t('polls.by'), " ", shorten(formatName(this.poll.createdBy), 20)), h("div", { key: 'f94d3f1184e1e40048cc2f3a5545a643b747b5f3', class: "poll" }, h("p", { key: 'f8a37e64dc447ca65308d7ca5024b19fd845492d', class: "poll-question" }, this.poll.question), h("div", { key: '89a0c12e8c9423c188c25e130852b0ead854eccd', class: "poll-answers" }, h("span", { key: '73c48104ca4ab450b6a16f17dfdaffa5802198a2' }, this.t('polls.answers')), h("span", { key: '3e2bf9df6ffcdc3d04bff203e7a6b5cfbc449d2c' }, this.poll.voted.length)), this.poll.options.map((item, index) => (h("div", { class: {
40
40
  active: item.votes.some((x) => x.id === this.self),
41
41
  'open-vote': this.permissions.polls.canVote && !hasVoted,
42
42
  'poll-option': true,
@@ -120,10 +120,10 @@ const RtkPoll = class {
120
120
  this.onCreate.emit(pollObject);
121
121
  }
122
122
  render() {
123
- return (h(Host, { key: '3b0e105480e37261b64a99552f20f65b467deb5c' }, h("div", { key: '8682faca7764a1669f589be097ccfee63d49e9b3', class: "create-poll" }, h("p", { key: '723847f27d92eeac805b7c55692d61ce48476eb0' }, this.t('polls.question')), h("textarea", { key: 'e85b887af5077f79a0542aa256cbc1ee2e209c67', onInput: () => {
123
+ return (h(Host, { key: '625bbf35e528f16b4a982a159c3631af1d444a85' }, h("div", { key: 'f0d20f8d5e53d1f8fd5063b7e533dc50d8184dc5', class: "create-poll" }, h("p", { key: '2dbcff9b0828790c4315e62f45c139f30971b72c' }, this.t('polls.question')), h("textarea", { key: '6ff40a7fe19cded416f45474065b9361de83d5a2', onInput: () => {
124
124
  if (this.error && this.error.code === 0)
125
125
  this.error = undefined;
126
- }, ref: (e) => (this.question = e), placeholder: this.t('polls.question.placeholder') }), this.options.map((item, index) => (h("div", { class: "option" }, h("input", { placeholder: this.t('polls.option.placeholder'), value: item, onInput: (event) => this.updateOption(event, index) }), index > 1 && (h("rtk-button", { kind: "icon", class: "auto remove-option", variant: "secondary", onClick: () => this.removeOption(index) }, h("rtk-icon", { icon: this.iconPack.subtract })))))), h("rtk-button", { key: '4b1552030c268c7b9c67e63f47ca4decbaca549f', class: "add-option", variant: "secondary", onClick: () => this.addOption() }, this.t('polls.option')), h("label", { key: '3af3d5e264c8acd9fd2348483489a02aaf9ac770' }, h("input", { key: '39339af087cc40813d79a211fd12866ade71403c', id: "anonymous", type: "checkbox", onChange: (e) => (this.anonymous = e.target.checked) }), this.t('polls.results.anon')), h("label", { key: '30a29efafcbd837057cfed7957d48c04d02e2570' }, h("input", { key: 'e5c949df6cfec33c4c31c14db9d2ff816211ca3f', id: "hideVotes", type: "checkbox", disabled: this.anonymous, checked: this.anonymous ? true : this.hideVotes, onChange: (e) => (this.hideVotes = e.target.checked) }), this.t('polls.results.hide')), h("rtk-button", { key: '994e07e64080cd4251202ac3090da2c4e71f8a02', kind: "wide", onClick: () => this.handleSubmit() }, this.t('polls.create')), this.error && h("span", { key: '27e0ab9385fe99ca5bab3a9ce4c756988dafbea4', class: "error-text" }, this.error.message))));
126
+ }, ref: (e) => (this.question = e), placeholder: this.t('polls.question.placeholder') }), this.options.map((item, index) => (h("div", { class: "option" }, h("input", { placeholder: this.t('polls.option.placeholder'), value: item, onInput: (event) => this.updateOption(event, index) }), index > 1 && (h("rtk-button", { kind: "icon", class: "auto remove-option", variant: "secondary", onClick: () => this.removeOption(index) }, h("rtk-icon", { icon: this.iconPack.subtract })))))), h("rtk-button", { key: '565c530735bf27e14b0a5ee33afca6f45b1e4fc5', class: "add-option", variant: "secondary", onClick: () => this.addOption() }, this.t('polls.option')), h("label", { key: 'c38d4c9bee1c086cb481a94b17853749d5de6b63' }, h("input", { key: '64f21e59d497ae0182da74064d96ad66a522515d', id: "anonymous", type: "checkbox", onChange: (e) => (this.anonymous = e.target.checked) }), this.t('polls.results.anon')), h("label", { key: 'ec293dc473b4d9d0df7fe9d93e036ff28c0ea3d1' }, h("input", { key: 'bef5ee43cee42d3c16927efc810ad4b76cb8994b', id: "hideVotes", type: "checkbox", disabled: this.anonymous, checked: this.anonymous ? true : this.hideVotes, onChange: (e) => (this.hideVotes = e.target.checked) }), this.t('polls.results.hide')), h("rtk-button", { key: '7b5646a77576a2836370d16dc2104d267c573de2', kind: "wide", onClick: () => this.handleSubmit() }, this.t('polls.create')), this.error && h("span", { key: 'd51a6301dba0c3686a5f1e59ebdc98eccfa7488b', class: "error-text" }, this.error.message))));
127
127
  }
128
128
  };
129
129
  __decorate([
@@ -43,7 +43,7 @@ const RtkRecordingIndicator = class {
43
43
  }
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '3bc3bfca9c1b7159afd2f79820c2b6e9a6726dfc', "data-hidden": !this.isRecording }, this.isRecording && (h("div", { key: '66fc2ee9663a4d1bfc4f1e3c200e712fa1c8b80f', class: "indicator", "aria-label": this.t('recording.indicator'), part: "indicator" }, h("rtk-icon", { key: '24f268ae015c0d8874a5e398e7e24bbea66b76df', icon: this.iconPack.recording, "aria-hidden": true, tabIndex: -1, part: "icon" }), h("span", { key: '033532a521765c2a5e9c1a5ceafbb453be9c2d86' }, this.t('recording.label'))))));
46
+ return (h(Host, { key: '421715a1e7084f9dc226cdf969393a9c9b58fd66', "data-hidden": !this.isRecording }, this.isRecording && (h("div", { key: 'fcfd0aa019c6d56ed5a872cdd2cf38ac7ac4258e', class: "indicator", "aria-label": this.t('recording.indicator'), part: "indicator" }, h("rtk-icon", { key: 'de97c04f6a1d81606285b2430ccf111dd7208bbf', icon: this.iconPack.recording, "aria-hidden": true, tabIndex: -1, part: "icon" }), h("span", { key: '6c142e85f186c7cdb77ccbb78453b2101e17f31a' }, this.t('recording.label'))))));
47
47
  }
48
48
  static get watchers() { return {
49
49
  "meeting": ["meetingChanged"]
@@ -105,7 +105,7 @@ const RtkScreenshareView = class {
105
105
  const icon = this.isFullScreen
106
106
  ? this.iconPack.full_screen_minimize
107
107
  : this.iconPack.full_screen_maximize;
108
- return (h(Host, { key: '2f708b5df22fcffc0d19fdf30896e4aaad29684b', class: { isSelf } }, h("div", { key: "video-container", id: "video-container", class: { expand: this.videoExpanded } }, h("video", { key: '7cdbbde096cad5a675757f87291150d5bd8087b6', ref: (el) => (this.videoEl = el), class: {
108
+ return (h(Host, { key: '34b2ef729d2ac2c5bdff2c29412a72d539ab512c', class: { isSelf } }, h("div", { key: "video-container", id: "video-container", class: { expand: this.videoExpanded } }, h("video", { key: '2ce3c6939616fa6bb4e487d3ba4ef0a343aaeb6f', ref: (el) => (this.videoEl = el), class: {
109
109
  visible: this.screenShareEnabled,
110
110
  'fit-in-container': this.participant.supportsRemoteControl,
111
111
  }, playsInline: true, onPlay: () => {
@@ -113,15 +113,15 @@ const RtkScreenshareView = class {
113
113
  screenshareParticipant: this.participant,
114
114
  participant: this.meeting.self,
115
115
  });
116
- }, autoPlay: true, muted: true, id: `screen-share-video-${this.participant.id}` })), h("div", { id: "controls", key: "controls" }, !this.hideFullScreenButton && !isSelf && isFullScreenSupported() && (h("rtk-tooltip", { key: 'c3340c5de0b70f2759a4654442a6ba9c85061a34', label: text }, h("rtk-button", { key: '882d093ec8c5af94ed7d15fa246319811eb45350', id: "full-screen-btn", kind: "icon", onClick: this.toggleFullScreen, title: text }, h("rtk-icon", { key: '59cf742dc69dc5407a0c575bef7cd9ad40c648dc', icon: icon, "aria-hidden": true, tabIndex: -1 }))))), isSelf && (h("div", { id: "self-message", key: "self-message" }, h("h3", { key: 'cddd41b2f2ce83d28c52f86c401ea41b847d1197' }, this.t('screenshare.shared')), h("div", { key: '475a0a10753366bf3ae5c25b18086155c1d57be7', class: "actions" }, this.meeting != null && (h("rtk-button", { key: '98dd92a16e1b26e22053868d07add3b38514b3d1', variant: "danger", onClick: () => {
116
+ }, autoPlay: true, muted: true, id: `screen-share-video-${this.participant.id}` })), h("div", { id: "controls", key: "controls" }, !this.hideFullScreenButton && !isSelf && isFullScreenSupported() && (h("rtk-tooltip", { key: '0d85023b8a8347a93279abafde8fbf09cb41b95a', label: text }, h("rtk-button", { key: '1c2de414eaa60015a51b332490a276e1372cd968', id: "full-screen-btn", kind: "icon", onClick: this.toggleFullScreen, title: text }, h("rtk-icon", { key: '4855d0ff22108ab6bb859d771955c5e3eb5d69f6', icon: icon, "aria-hidden": true, tabIndex: -1 }))))), isSelf && (h("div", { id: "self-message", key: "self-message" }, h("h3", { key: '052603a136533ed56f70dc1c8aa36f1423925c61' }, this.t('screenshare.shared')), h("div", { key: '25f07fbc055318abcf486ac977ec89fc6c65c191', class: "actions" }, this.meeting != null && (h("rtk-button", { key: '0740cd5d8b0dc40615d3142e07eb7f4ae36238d7', variant: "danger", onClick: () => {
117
117
  this.meeting.self.disableScreenShare();
118
- } }, h("rtk-icon", { key: '1147425c7c92aa8e8e9b15848e86b64e8fde3d5b', icon: this.iconPack.share_screen_stop, slot: "start" }), this.t('screenshare.stop'))), h("rtk-button", { key: '15aa7c156b00282d7b2c7be66eaef6d78768d166', variant: "secondary", id: "expand-btn", onClick: () => {
118
+ } }, h("rtk-icon", { key: '4d2a00a772c9dc2f6cb5b9b42a99b096838d0df0', icon: this.iconPack.share_screen_stop, slot: "start" }), this.t('screenshare.stop'))), h("rtk-button", { key: '5fda78778feed97ac9b5b44a449011927b855cfa', variant: "secondary", id: "expand-btn", onClick: () => {
119
119
  this.videoExpanded = !this.videoExpanded;
120
- } }, h("rtk-icon", { key: '3e15e3948c1226eb02ed2f573a57447d2b8459b6', icon: this.videoExpanded
120
+ } }, h("rtk-icon", { key: 'e20687dfdbdad334c23cb49e366c24fd1a71047d', icon: this.videoExpanded
121
121
  ? this.iconPack.full_screen_minimize
122
122
  : this.iconPack.full_screen_maximize, slot: "start" }), this.videoExpanded
123
123
  ? this.t('screenshare.min_preview')
124
- : this.t('screenshare.max_preview'))))), h("slot", { key: 'ec18e9db10beca7faa8191ab4da5f375c9d5e056' })));
124
+ : this.t('screenshare.max_preview'))))), h("slot", { key: '4a2fedd80bef177633ccdfee754d06186692e6bb' })));
125
125
  }
126
126
  get host() { return getElement(this); }
127
127
  static get watchers() { return {
@@ -33,7 +33,7 @@ const RtkSettingsToggle = class {
33
33
  }
34
34
  render() {
35
35
  const text = this.t('settings');
36
- return (h(Host, { key: 'b929e0a6febd8eb959bcb946ae123a0e993aace5', title: text }, h("rtk-controlbar-button", { key: 'a74581d52a7d9b8903098d0f1ff3b33e740206bc', part: "controlbar-button", size: this.size, iconPack: this.iconPack, onClick: () => this.toggleSettings(), icon: this.iconPack.settings, label: text, variant: this.variant })));
36
+ return (h(Host, { key: 'a35e91bc92a802afd3eaf6f3211d1db7693413d1', title: text }, h("rtk-controlbar-button", { key: '03fb21e343891459262180be282065331a6140a3', part: "controlbar-button", size: this.size, iconPack: this.iconPack, onClick: () => this.toggleSettings(), icon: this.iconPack.settings, label: text, variant: this.variant })));
37
37
  }
38
38
  };
39
39
  __decorate([
@@ -67,13 +67,13 @@ const RtkSpotlightGrid = class {
67
67
  t: this.t,
68
68
  };
69
69
  const nonPinnedParticipants = this.participants.filter((p) => this.pinnedParticipants.some((pt) => pt.id != p.id));
70
- return (h(Host, { key: '3e5596fe72e5df7684bfc51df9df3171358d094a' }, h("main", { key: '8c00ae24704582f775042399624a0274c9384d0c', part: "main" }, h(Render, { key: 'c5a06e7aff1aba7f4120acccf8e6e45d3267fccc', element: "rtk-simple-grid", defaults: defaults, props: {
70
+ return (h(Host, { key: '7640a44634c724d5964c4b4ac2e1a131483b1251' }, h("main", { key: 'ef00af9d4b4eabb86652d7b852c962bc71311012', part: "main" }, h(Render, { key: '6f3665ffdc49b0cb813b5b1a1d09132b685da2f7', element: "rtk-simple-grid", defaults: defaults, props: {
71
71
  part: 'main-grid',
72
72
  participants: this.pinnedParticipants,
73
73
  aspectRatio: this.aspectRatio,
74
74
  gap: this.gap,
75
75
  size: this.getAdaptiveSize(this.pinnedParticipants.length),
76
- } })), nonPinnedParticipants.length > 0 && (h("aside", { key: '24bafede04344ea964cf667c5ba90f6fe52d1962', part: "aside", class: this.gridSize.spotlight ? `grid-width-${this.gridSize.spotlight}` : 'grid-width-md' }, h(Render, { key: '2328434d5f2a309e27c4af59d863e3122ec9fbc9', element: "rtk-simple-grid", defaults: defaults, props: {
76
+ } })), nonPinnedParticipants.length > 0 && (h("aside", { key: '1b4f2c027f011b04a1f22dac96a82d5584f40aeb', part: "aside", class: this.gridSize.spotlight ? `grid-width-${this.gridSize.spotlight}` : 'grid-width-md' }, h(Render, { key: 'bcc34463bf791b77bb8f5050be2e5aeb3dd01289', element: "rtk-simple-grid", defaults: defaults, props: {
77
77
  part: 'aside-grid',
78
78
  participants: nonPinnedParticipants,
79
79
  aspectRatio: this.aspectRatio,
@@ -25,7 +25,7 @@ const RtkStage = class {
25
25
  this.t = useLanguage();
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: 'cfccb12248bda74943e89cfd663504499925e73f' }, h("slot", { key: 'c48c7b62c93cefeeaad9904bbd62ea06c376199e' })));
28
+ return (h(Host, { key: 'b0f0bb2c16e9965cc7f646624118a8cee13538a5' }, h("slot", { key: '9555e0c26d9ab23b6fb02e1e1d4025eaaf6df704' })));
29
29
  }
30
30
  };
31
31
  __decorate([
@@ -40,7 +40,7 @@ const RtkTranscript = class {
40
40
  }, 10000);
41
41
  }
42
42
  render() {
43
- return (h(Host, { key: '178bec61ca4e702446a1d8ef9cc700d614e473cb' }, h("div", { key: 'cc7f9847399f373bb93b74d5b56acb2636df3668', class: "ctr" }, h("p", { key: 'c8d6e26e1ce9038b73ca69e5ca75e658e9df2465', class: "message" }, h("span", { key: '1138ba7e3f8c131fb4c22315791ec480b8233e24', class: "name" }, this.transcript.name), ": ", this.transcript.transcript))));
43
+ return (h(Host, { key: 'f114d024507ae77ac2597ecd060e3ff44ff14b62' }, h("div", { key: '0a2b1de3c21d77fcf73a0e025e8faa82b61ac23e', class: "ctr" }, h("p", { key: 'eee54f37929772f547113c899cbbcd89e451f64d', class: "message" }, h("span", { key: '3599abf0271f4847d0e19629c9966b02a168bdb8', class: "name" }, this.transcript.name), ": ", this.transcript.transcript))));
44
44
  }
45
45
  static get watchers() { return {
46
46
  "transcript": ["transcriptChanged"]
@@ -26,7 +26,7 @@ const RtkWaitingScreen = class {
26
26
  this.t = useLanguage();
27
27
  }
28
28
  render() {
29
- return (h(Host, { key: '42ab084403fb118e17ca88c0aa9ca896d44893b7' }, h("slot", { key: 'd92a248417603793da8efb8d3b914f1730bd2fc0' }, h("div", { key: '45a4c570273ee8e070fea17c340c800859ee72e3', class: "centered", part: "content" }, h("rtk-logo", { key: '7c5fe652ea18ed2cac0c20351525250c83cf8a1d', meeting: this.meeting, config: this.config, part: "logo", t: this.t }), h("p", { key: 'a3ac66ef146ac1f04a9a8e912befa3de40d534a1' }, this.t('waitlist.body_text'))))));
29
+ return (h(Host, { key: '5f35f594c3c621db03b7d29397ebc5436bb8cb0d' }, h("slot", { key: '7e5eb00806056651b1fdd9cce1b7ff758a44afc2' }, h("div", { key: 'dd9dc281d1592383d23ad7045fa38f231140ec7e', class: "centered", part: "content" }, h("rtk-logo", { key: '59bbcae1ba6cc66d5a0e3b0994b9801c1eeb1884', meeting: this.meeting, config: this.config, part: "logo", t: this.t }), h("p", { key: 'b7dfb63fc063abf5eeb8cba203cb842f504d2d87' }, this.t('waitlist.body_text'))))));
30
30
  }
31
31
  };
32
32
  __decorate([
@@ -1 +1 @@
1
- import{r as t,c as r,h as a,H as i}from"./p-0ee570cd.js";import{c as s,e,h as o}from"./p-3c9aa206.js";import{S as l}from"./p-e51bb952.js";import{s as n}from"./p-0752f2ba.js";var c=function(t,r,a,i){var s,e=arguments.length,o=e<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(e<3?s(o):e>3?s(r,a,o):s(r,a))||o);return e>3&&o&&Object.defineProperty(r,a,o),o};const d=class{constructor(a){t(this,a),this.stateUpdate=r(this,"rtkStateUpdate",7),this.config=s(),this.iconPack=e,this.t=o(),this.plugins=[],this.canStartPlugins=!1,this.canClosePlugins=!1,this.activatedPluginsId=[],this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:void 0})}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.plugins.all.removeListener("stateUpdate",this.updateActivePlugins)}meetingChanged(t){null!=t&&(this.canStartPlugins=t.self.permissions.plugins.canStart,this.canClosePlugins=t.self.permissions.plugins.canClose,this.plugins=t.plugins.all.toArray().filter((r=>{var a;return!(null===(a=t.self.config.disabledPlugins)||void 0===a?void 0:a.includes(r.id))})),this.updateActivePlugins=()=>{this.activatedPluginsId=t.plugins.active.toArray().map((t=>t.id))},this.updateActivePlugins(),t.plugins.all.addListener("stateUpdate",this.updateActivePlugins))}render(){return a(i,{key:"4df38ce202b9551b38746e549824ff800ffc9fc1"},a("ul",{key:"19ad38b73ff77459cfda3227a013c2e28823386f",class:"scrollbar"},this.plugins.map((t=>a("li",{key:t.name,class:"plugin"},a("div",{class:"metadata"},a("img",{src:t.picture}),a("div",{class:"name"},t.name)),!this.activatedPluginsId.includes(t.id)&&this.canStartPlugins&&a("div",{class:"buttons"},a("rtk-button",{kind:"icon",size:"lg",onClick:()=>{t.activate(),this.close()},"aria-label":`${this.t("activate")} ${t.name}`},a("rtk-icon",{icon:this.iconPack.rocket,tabIndex:-1,"aria-hidden":!0}))),this.activatedPluginsId.includes(t.id)&&this.canClosePlugins&&a("div",{class:"buttons"},a("rtk-button",{kind:"icon",size:"lg",onClick:()=>{t.deactivate()},"aria-label":`${this.t("close")} ${t.name}`},a("rtk-icon",{icon:this.iconPack.dismiss,tabIndex:-1,"aria-hidden":!0}))))))))}static get watchers(){return{meeting:["meetingChanged"]}}};c([l()],d.prototype,"meeting",void 0),c([l()],d.prototype,"config",void 0),c([l()],d.prototype,"iconPack",void 0),c([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.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{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;height:100%;width:100%;flex-direction:column;font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}h3{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-4, 16px);display:block;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}ul{overflow-y:auto;padding:var(--rtk-space-0, 0px);flex-grow:1;flex-basis:0}.metadata{display:flex;align-items:center}.metadata img{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:var(--rtk-border-radius-sm, 4px)}.metadata .name{margin-left:var(--rtk-space-2, 8px);font-weight:500}.plugin{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}.plugin .buttons{display:flex;align-items:center}rtk-button:hover{--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(2px + 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);--tw-ring-opacity:1;--tw-ring-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-ring-opacity));--tw-ring-offset-width:2px;--tw-ring-offset-color:rgb(var(--rtk-colors-background-1000, 8 8 8))}";var p=function(t,r,a,i){var s,e=arguments.length,o=e<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(e<3?s(o):e>3?s(r,a,o):s(r,a))||o);return e>3&&o&&Object.defineProperty(r,a,o),o};const h=class{constructor(r){t(this,r),this.config=s(),this.iconPack=e,this.t=o(),this.create=!1,this.polls=[],this.onPollsUpdate=t=>{this.polls=[...t.polls]},this.onUpdatePermissions=()=>{this.permissions=this.meeting.self.permissions}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.meeting&&(null===(t=this.meeting.polls)||void 0===t||t.removeListener("pollsUpdate",this.onPollsUpdate),this.meeting.self.permissions.removeListener("pollsUpdate",this.onUpdatePermissions))}meetingChanged(t){t&&t.polls&&(this.permissions=this.meeting.self.permissions,this.polls=[...t.polls.items],t.polls.addListener("pollsUpdate",this.onPollsUpdate),this.meeting.self.permissions.addListener("pollsUpdate",this.onUpdatePermissions),this.onCreate=async r=>{this.create=!1,await t.polls.create(r.question,r.options,r.anonymous,r.hideVotes)},this.onVote=async(r,a)=>{await t.polls.vote(r,a)})}toggleCreateState(){this.create=!this.create}componentDidRender(){n(this.pollEl)}render(){var t,r;return a(i,{key:"f259b6fa652fe2e81c18d3a0fb85a15d0c091de3"},a("div",{key:"6cc127127307bcb1a5482a260fe7ccaf65bb1e3d",class:"ctr",part:"container"},a("div",{key:"ef9df557e4a5fb99ea2ce66172b7a889410daeea",class:"polls-view scrollbar",ref:t=>this.pollEl=t,part:"polls"},0==this.polls.length&&!0!==this.create&&a("div",{key:"0eb92f8f60ab00fb849b2d656a9d8bafb26195de",class:"empty-polls"},this.t("polls.empty")),this.polls.map((t=>{var r;return a("rtk-poll",{key:t.id,poll:t,onRtkVotePoll:t=>{this.onVote(t.detail.id,t.detail.index)},self:null===(r=this.meeting)||void 0===r?void 0:r.self.userId,iconPack:this.iconPack,t:this.t,permissions:this.permissions})})),this.create&&a("rtk-poll-form",{key:"71fc9e183684f5cafee5f0885af3d679d099a8ec",part:"poll-form",onRtkCreatePoll:t=>{this.onCreate(t.detail)},iconPack:this.iconPack,t:this.t})),(null===(r=null===(t=this.permissions)||void 0===t?void 0:t.polls)||void 0===r?void 0:r.canCreate)&&a("rtk-button",{key:"0639577353327ded0d1e7db08cbaadac47ec296c",kind:"wide",onClick:()=>this.toggleCreateState(),variant:this.create?"secondary":"primary",part:"button"},this.t(this.create?"polls.cancel":"polls.create"))))}static get watchers(){return{meeting:["meetingChanged"]}}};p([l()],h.prototype,"meeting",void 0),p([l()],h.prototype,"config",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)}.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{margin-top:var(--rtk-space-2, 8px);display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{box-sizing:border-box;padding:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);display:flex;flex:1 1 0%;flex-direction:column}.polls-view{overflow-y:auto;flex:1 1 0%;flex-basis:0}.empty-polls{display:flex;height:100%;width:100%;align-items:center;justify-content:center}";export{d as rtk_plugins,h as rtk_polls}
1
+ import{r as t,c as r,h as a,H as i}from"./p-0ee570cd.js";import{c as s,e,h as o}from"./p-3c9aa206.js";import{S as l}from"./p-e51bb952.js";import{s as n}from"./p-0752f2ba.js";var c=function(t,r,a,i){var s,e=arguments.length,o=e<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(e<3?s(o):e>3?s(r,a,o):s(r,a))||o);return e>3&&o&&Object.defineProperty(r,a,o),o};const d=class{constructor(a){t(this,a),this.stateUpdate=r(this,"rtkStateUpdate",7),this.config=s(),this.iconPack=e,this.t=o(),this.plugins=[],this.canStartPlugins=!1,this.canClosePlugins=!1,this.activatedPluginsId=[],this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:void 0})}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.plugins.all.removeListener("stateUpdate",this.updateActivePlugins)}meetingChanged(t){null!=t&&(this.canStartPlugins=t.self.permissions.plugins.canStart,this.canClosePlugins=t.self.permissions.plugins.canClose,this.plugins=t.plugins.all.toArray().filter((r=>{var a;return!(null===(a=t.self.config.disabledPlugins)||void 0===a?void 0:a.includes(r.id))})),this.updateActivePlugins=()=>{this.activatedPluginsId=t.plugins.active.toArray().map((t=>t.id))},this.updateActivePlugins(),t.plugins.all.addListener("stateUpdate",this.updateActivePlugins))}render(){return a(i,{key:"c0621bcd1d64b1eb9e4b913bb2707d66179848a8"},a("ul",{key:"2796e509a4df169a3b6455b06e33bcf9e1e634d4",class:"scrollbar"},this.plugins.map((t=>a("li",{key:t.name,class:"plugin"},a("div",{class:"metadata"},a("img",{src:t.picture}),a("div",{class:"name"},t.name)),!this.activatedPluginsId.includes(t.id)&&this.canStartPlugins&&a("div",{class:"buttons"},a("rtk-button",{kind:"icon",size:"lg",onClick:()=>{t.activate(),this.close()},"aria-label":`${this.t("activate")} ${t.name}`},a("rtk-icon",{icon:this.iconPack.rocket,tabIndex:-1,"aria-hidden":!0}))),this.activatedPluginsId.includes(t.id)&&this.canClosePlugins&&a("div",{class:"buttons"},a("rtk-button",{kind:"icon",size:"lg",onClick:()=>{t.deactivate()},"aria-label":`${this.t("close")} ${t.name}`},a("rtk-icon",{icon:this.iconPack.dismiss,tabIndex:-1,"aria-hidden":!0}))))))))}static get watchers(){return{meeting:["meetingChanged"]}}};c([l()],d.prototype,"meeting",void 0),c([l()],d.prototype,"config",void 0),c([l()],d.prototype,"iconPack",void 0),c([l()],d.prototype,"t",void 0),d.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.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{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;height:100%;width:100%;flex-direction:column;font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}h3{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-4, 16px);display:block;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}ul{overflow-y:auto;padding:var(--rtk-space-0, 0px);flex-grow:1;flex-basis:0}.metadata{display:flex;align-items:center}.metadata img{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:var(--rtk-border-radius-sm, 4px)}.metadata .name{margin-left:var(--rtk-space-2, 8px);font-weight:500}.plugin{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}.plugin .buttons{display:flex;align-items:center}rtk-button:hover{--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(2px + 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);--tw-ring-opacity:1;--tw-ring-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-ring-opacity));--tw-ring-offset-width:2px;--tw-ring-offset-color:rgb(var(--rtk-colors-background-1000, 8 8 8))}";var p=function(t,r,a,i){var s,e=arguments.length,o=e<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,i);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(o=(e<3?s(o):e>3?s(r,a,o):s(r,a))||o);return e>3&&o&&Object.defineProperty(r,a,o),o};const h=class{constructor(r){t(this,r),this.config=s(),this.iconPack=e,this.t=o(),this.create=!1,this.polls=[],this.onPollsUpdate=t=>{this.polls=[...t.polls]},this.onUpdatePermissions=()=>{this.permissions=this.meeting.self.permissions}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.meeting&&(null===(t=this.meeting.polls)||void 0===t||t.removeListener("pollsUpdate",this.onPollsUpdate),this.meeting.self.permissions.removeListener("pollsUpdate",this.onUpdatePermissions))}meetingChanged(t){t&&t.polls&&(this.permissions=this.meeting.self.permissions,this.polls=[...t.polls.items],t.polls.addListener("pollsUpdate",this.onPollsUpdate),this.meeting.self.permissions.addListener("pollsUpdate",this.onUpdatePermissions),this.onCreate=async r=>{this.create=!1,await t.polls.create(r.question,r.options,r.anonymous,r.hideVotes)},this.onVote=async(r,a)=>{await t.polls.vote(r,a)})}toggleCreateState(){this.create=!this.create}componentDidRender(){n(this.pollEl)}render(){var t,r;return a(i,{key:"41908b79966d12fc13782a05b2763e233d0ef8c7"},a("div",{key:"87f36d5e811009624ffc1f1d18f55aefc50f6c8e",class:"ctr",part:"container"},a("div",{key:"cc5170445db169e2de47e18d7d0dac0bf932726a",class:"polls-view scrollbar",ref:t=>this.pollEl=t,part:"polls"},0==this.polls.length&&!0!==this.create&&a("div",{key:"9d1db7791f35b78137726957bcac10cba381227e",class:"empty-polls"},this.t("polls.empty")),this.polls.map((t=>{var r;return a("rtk-poll",{key:t.id,poll:t,onRtkVotePoll:t=>{this.onVote(t.detail.id,t.detail.index)},self:null===(r=this.meeting)||void 0===r?void 0:r.self.userId,iconPack:this.iconPack,t:this.t,permissions:this.permissions})})),this.create&&a("rtk-poll-form",{key:"9f73d645076a512dfffc3009dada18c137b918d0",part:"poll-form",onRtkCreatePoll:t=>{this.onCreate(t.detail)},iconPack:this.iconPack,t:this.t})),(null===(r=null===(t=this.permissions)||void 0===t?void 0:t.polls)||void 0===r?void 0:r.canCreate)&&a("rtk-button",{key:"e24dd4ab4c0e61acdbcff002ef16553214cfb94e",kind:"wide",onClick:()=>this.toggleCreateState(),variant:this.create?"secondary":"primary",part:"button"},this.t(this.create?"polls.cancel":"polls.create"))))}static get watchers(){return{meeting:["meetingChanged"]}}};p([l()],h.prototype,"meeting",void 0),p([l()],h.prototype,"config",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)}.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{margin-top:var(--rtk-space-2, 8px);display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{box-sizing:border-box;padding:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);display:flex;flex:1 1 0%;flex-direction:column}.polls-view{overflow-y:auto;flex:1 1 0%;flex-basis:0}.empty-polls{display:flex;height:100%;width:100%;align-items:center;justify-content:center}";export{d as rtk_plugins,h as rtk_polls}
@@ -1 +1 @@
1
- import{r as t,h as i,H as a}from"./p-0ee570cd.js";import{h as e,e as r}from"./p-3c9aa206.js";import{S as n}from"./p-e51bb952.js";var s=function(t,i,a,e){var r,n=arguments.length,s=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,a,e);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(s=(n<3?r(s):n>3?r(i,a,s):r(i,a))||s);return n>3&&s&&Object.defineProperty(i,a,s),s};const c=class{constructor(i){t(this,i),this.t=e(),this.iconPack=r,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"3bc3bfca9c1b7159afd2f79820c2b6e9a6726dfc","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"66fc2ee9663a4d1bfc4f1e3c200e712fa1c8b80f",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"24f268ae015c0d8874a5e398e7e24bbea66b76df",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"033532a521765c2a5e9c1a5ceafbb453be9c2d86"},this.t("recording.label"))))}static get watchers(){return{meeting:["meetingChanged"]}}};s([n()],c.prototype,"meeting",void 0),s([n()],c.prototype,"t",void 0),s([n()],c.prototype,"iconPack",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}: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{c as rtk_recording_indicator}
1
+ import{r as t,h as i,H as a}from"./p-0ee570cd.js";import{h as e,e as r}from"./p-3c9aa206.js";import{S as n}from"./p-e51bb952.js";var c=function(t,i,a,e){var r,n=arguments.length,c=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,a,e);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(c=(n<3?r(c):n>3?r(i,a,c):r(i,a))||c);return n>3&&c&&Object.defineProperty(i,a,c),c};const s=class{constructor(i){t(this,i),this.t=e(),this.iconPack=r,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"421715a1e7084f9dc226cdf969393a9c9b58fd66","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"fcfd0aa019c6d56ed5a872cdd2cf38ac7ac4258e",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"de97c04f6a1d81606285b2430ccf111dd7208bbf",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"6c142e85f186c7cdb77ccbb78453b2101e17f31a"},this.t("recording.label"))))}static get watchers(){return{meeting:["meetingChanged"]}}};c([n()],s.prototype,"meeting",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}
@@ -1 +1 @@
1
- import{r as t,w as s,h as i}from"./p-0ee570cd.js";import{e as r}from"./p-3c9aa206.js";import{S as e}from"./p-e51bb952.js";import{d as h}from"./p-203a6c0b.js";const a=class{constructor(i){t(this,i),this.visibleItemsCount=20,this.estimateItemSize=100,this.iconPack=r,this.isFetching=!1,this.autoScroll=!0,this.totalHeight=0,this.sizes=new Map,this.lastScrollTop=0,this.scrollToBottomRetries=0,this.elementObserver=(()=>{let t=null;const s=()=>t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((t=>{t.forEach((t=>{this.measureElement(t.target,t)}))})):null);return{disconnect:()=>{var t;return null===(t=s())||void 0===t?void 0:t.disconnect()},observe:t=>{var i;return null===(i=s())||void 0===i?void 0:i.observe(t,{box:"border-box"})},unobserve:t=>{var i;return null===(i=s())||void 0===i?void 0:i.unobserve(t)}}})(),this.measureElement=(t,s)=>{if(!t)return;const i=t.dataset.id;if(this.sizes.has(i))return void this.elementObserver.unobserve(t);if(s){const r=s.borderBoxSize[0];if(r&&r.blockSize>0)return this.saveItemSize(i,r.blockSize),void this.elementObserver.unobserve(t)}const r=t.getBoundingClientRect();r.height>0&&this.saveItemSize(i,r.height)},this.getVisibleItems=()=>this.messages.slice(this.range.start,this.range.end+1),this.updateVisibleItems=(t,s)=>{const i=this.messages.length;let r=t,e=s;i<=this.visibleItemsCount?(r=0,e=i-1):s-t<this.visibleItemsCount-1&&(r=this.range.end-this.visibleItemsCount+1),this.range.start!==r&&(this.range={start:r,end:e},this.totalHeight=this.getRangeSize(0,i))},this.getEstimatedItemSize=()=>this.estimateItemSize,this.getRangeSize=(t,s)=>{let i=0,r=0;for(let e=t;e<s;e++)r=this.sizes.get(this.messages[e].id),i+=r||this.getEstimatedItemSize();return i},this.getScrollTop=()=>this.$listRef?Math.ceil(this.$listRef.scrollTop):0,this.getClientHeight=()=>this.$listRef?Math.ceil(this.$listRef.clientHeight):0,this.getScrollHeight=()=>this.$listRef?Math.ceil(this.$listRef.scrollHeight):0,this.getItemsScrolled=()=>{const t=this.lastScrollTop;if(t<=0)return 0;let s=0,i=0,r=0,e=this.messages.length;for(;s<=e;){if(i=s+e>>>1,r=this.getRangeSize(0,i),r===t)return i;r<t?s=i+1:r>t&&(e=i-1)}return s>0?--s:0},this.getEndByStart=t=>Math.min(t+this.visibleItemsCount,this.messages.length-1),this.scrollToOffset=t=>{this.$listRef&&(this.$listRef.scrollTop=t)},this.scrollToIndex=t=>{if(t>=this.messages.length-1)this.scrollToBottom();else{const s=t<1?0:this.getRangeSize(0,t);this.scrollToOffset(s)}},this.scrollToBottom=()=>{this.$listEndRef&&s((()=>{this.$listEndRef.scrollIntoView(),this.getScrollHeight()-(this.getScrollTop()+this.getClientHeight())>0&&this.scrollToBottomRetries<10?setTimeout((()=>{this.scrollToBottom()}),1e3/60):(this.scrollToBottomRetries=0,this.autoScroll=!0)}))},this.handleScroll=async()=>{if(this.isFetching)return;const t=this.getScrollTop(),s=t<this.lastScrollTop||0===t?"UP":"DOWN";if(this.lastScrollTop=t,this.loadMore&&0===t&&"UP"===s&&!1===this.isFetching){this.isFetching=!0;const t=await this.loadMore(this.messages[0]);t&&t.length&&(this.messages=[...t,...this.messages]),this.isFetching=!1}"UP"===s?this.handleTop():"DOWN"===s&&this.handleBottom()},this.handleTop=()=>{const t=this.getItemsScrolled();if(t<=this.range.end-5&&(this.autoScroll=!1),t>this.range.start+5)return;const s=Math.max(this.range.start-5,0);this.updateVisibleItems(s,this.getEndByStart(s))},this.handleBottom=()=>{if(this.getItemsScrolled()<this.range.start+5)return;const t=this.range.start+5,s=this.getEndByStart(t);this.updateVisibleItems(s===this.messages.length-1?s-this.visibleItemsCount:t,s)},this.updateTotalHeight=h((()=>{this.totalHeight=this.getRangeSize(0,this.messages.length)}),1e3/30,{leading:!0}),this.rendererInternal=(t,s,i)=>{if(!t)return;if(t.dataset.id===s.id)return;const r=this.renderer(s,i);t.hasChildNodes&&(t.innerHTML=""),this.elementObserver.observe(t),t.dataset.id=s.id,t.appendChild(r)}}connectedCallback(){const t=this.messages.length-1;this.range={start:t-this.visibleItemsCount,end:t},this.updateVisibleItems(this.range.start,this.range.end),this.totalHeight=this.getRangeSize(0,t)}componentDidLoad(){this.autoScroll&&this.scrollToBottom()}messagesUpdated(t,s){if(t.length>s.length){const i=t.length-s.length;this.updateVisibleItems(i,this.getEndByStart(i)),this.scrollToIndex(this.range.start)}}saveItemSize(t,s){this.sizes.set(t,Math.round(s)),this.updateTotalHeight()}render(){return i("div",{key:"17ccb3852a89ddb77e5799413f8ee0ef0ac7c132",class:"scrollbar content-wrapper",ref:t=>this.$listRef=t,onScroll:this.handleScroll},i("div",{key:"044af22a10ae312a46d90f29dc9a793d86540fb8",class:"scroller"},i("div",{key:"15a2b213883f210a44081c05c317f9da7a58380c",style:{height:`${this.totalHeight}px`}}),i("div",{key:"918071c6d3aed045814c1c2b3908572edae480ac",class:"smallest-dom-element",id:"list-end",ref:t=>this.$listEndRef=t})),i("div",{key:"19b2f45794fa73f44d54b9b91ef1cab0df6c4aae",class:"content",style:{transform:`translateY(${this.getRangeSize(0,this.range.start)}px)`}},this.isFetching&&i("div",{key:"1a05d8ec0a4a11812afef413226c472d797e7ebe",class:"loader"},i("rtk-spinner",{key:"29f275642f8f8be5d9cbe12ff0eeedba48e1b4c1",size:"md"})),this.getVisibleItems().map(((t,s)=>i("div",{key:t.id,ref:i=>this.rendererInternal(i,t,s)})))))}static get watchers(){return{messages:["messagesUpdated"]}}};(function(t,s,i,r){var e,h=arguments.length,a=h<3?s:null===r?r=Object.getOwnPropertyDescriptor(s,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,r);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(a=(h<3?e(a):h>3?e(s,i,a):e(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([e()],a.prototype,"iconPack",void 0),a.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)))}.loading{cursor:wait}.content-wrapper{height:100%;overflow-y:auto;position:relative;contain:strict}.scroller{width:1px;opacity:0}.content{position:absolute;top:0;width:100%}.smallest-dom-element{width:100%;height:2px;background:red}.loader{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;justify-content:center}";export{a as rtk_message_list_view}
1
+ import{r as t,w as s,h as i}from"./p-0ee570cd.js";import{e as r}from"./p-3c9aa206.js";import{S as e}from"./p-e51bb952.js";import{d as h}from"./p-203a6c0b.js";const a=class{constructor(i){t(this,i),this.visibleItemsCount=20,this.estimateItemSize=100,this.iconPack=r,this.isFetching=!1,this.autoScroll=!0,this.totalHeight=0,this.sizes=new Map,this.lastScrollTop=0,this.scrollToBottomRetries=0,this.elementObserver=(()=>{let t=null;const s=()=>t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((t=>{t.forEach((t=>{this.measureElement(t.target,t)}))})):null);return{disconnect:()=>{var t;return null===(t=s())||void 0===t?void 0:t.disconnect()},observe:t=>{var i;return null===(i=s())||void 0===i?void 0:i.observe(t,{box:"border-box"})},unobserve:t=>{var i;return null===(i=s())||void 0===i?void 0:i.unobserve(t)}}})(),this.measureElement=(t,s)=>{if(!t)return;const i=t.dataset.id;if(this.sizes.has(i))return void this.elementObserver.unobserve(t);if(s){const r=s.borderBoxSize[0];if(r&&r.blockSize>0)return this.saveItemSize(i,r.blockSize),void this.elementObserver.unobserve(t)}const r=t.getBoundingClientRect();r.height>0&&this.saveItemSize(i,r.height)},this.getVisibleItems=()=>this.messages.slice(this.range.start,this.range.end+1),this.updateVisibleItems=(t,s)=>{const i=this.messages.length;let r=t,e=s;i<=this.visibleItemsCount?(r=0,e=i-1):s-t<this.visibleItemsCount-1&&(r=this.range.end-this.visibleItemsCount+1),this.range.start!==r&&(this.range={start:r,end:e},this.totalHeight=this.getRangeSize(0,i))},this.getEstimatedItemSize=()=>this.estimateItemSize,this.getRangeSize=(t,s)=>{let i=0,r=0;for(let e=t;e<s;e++)r=this.sizes.get(this.messages[e].id),i+=r||this.getEstimatedItemSize();return i},this.getScrollTop=()=>this.$listRef?Math.ceil(this.$listRef.scrollTop):0,this.getClientHeight=()=>this.$listRef?Math.ceil(this.$listRef.clientHeight):0,this.getScrollHeight=()=>this.$listRef?Math.ceil(this.$listRef.scrollHeight):0,this.getItemsScrolled=()=>{const t=this.lastScrollTop;if(t<=0)return 0;let s=0,i=0,r=0,e=this.messages.length;for(;s<=e;){if(i=s+e>>>1,r=this.getRangeSize(0,i),r===t)return i;r<t?s=i+1:r>t&&(e=i-1)}return s>0?--s:0},this.getEndByStart=t=>Math.min(t+this.visibleItemsCount,this.messages.length-1),this.scrollToOffset=t=>{this.$listRef&&(this.$listRef.scrollTop=t)},this.scrollToIndex=t=>{if(t>=this.messages.length-1)this.scrollToBottom();else{const s=t<1?0:this.getRangeSize(0,t);this.scrollToOffset(s)}},this.scrollToBottom=()=>{this.$listEndRef&&s((()=>{this.$listEndRef.scrollIntoView(),this.getScrollHeight()-(this.getScrollTop()+this.getClientHeight())>0&&this.scrollToBottomRetries<10?setTimeout((()=>{this.scrollToBottom()}),1e3/60):(this.scrollToBottomRetries=0,this.autoScroll=!0)}))},this.handleScroll=async()=>{if(this.isFetching)return;const t=this.getScrollTop(),s=t<this.lastScrollTop||0===t?"UP":"DOWN";if(this.lastScrollTop=t,this.loadMore&&0===t&&"UP"===s&&!1===this.isFetching){this.isFetching=!0;const t=await this.loadMore(this.messages[0]);t&&t.length&&(this.messages=[...t,...this.messages]),this.isFetching=!1}"UP"===s?this.handleTop():"DOWN"===s&&this.handleBottom()},this.handleTop=()=>{const t=this.getItemsScrolled();if(t<=this.range.end-5&&(this.autoScroll=!1),t>this.range.start+5)return;const s=Math.max(this.range.start-5,0);this.updateVisibleItems(s,this.getEndByStart(s))},this.handleBottom=()=>{if(this.getItemsScrolled()<this.range.start+5)return;const t=this.range.start+5,s=this.getEndByStart(t);this.updateVisibleItems(s===this.messages.length-1?s-this.visibleItemsCount:t,s)},this.updateTotalHeight=h((()=>{this.totalHeight=this.getRangeSize(0,this.messages.length)}),1e3/30,{leading:!0}),this.rendererInternal=(t,s,i)=>{if(!t)return;if(t.dataset.id===s.id)return;const r=this.renderer(s,i);t.hasChildNodes&&(t.innerHTML=""),this.elementObserver.observe(t),t.dataset.id=s.id,t.appendChild(r)}}connectedCallback(){const t=this.messages.length-1;this.range={start:t-this.visibleItemsCount,end:t},this.updateVisibleItems(this.range.start,this.range.end),this.totalHeight=this.getRangeSize(0,t)}componentDidLoad(){this.autoScroll&&this.scrollToBottom()}messagesUpdated(t,s){if(t.length>s.length){const i=t.length-s.length;this.updateVisibleItems(i,this.getEndByStart(i)),this.scrollToIndex(this.range.start)}}saveItemSize(t,s){this.sizes.set(t,Math.round(s)),this.updateTotalHeight()}render(){return i("div",{key:"4da03366f085b87729d946b1633d031e4656f2ac",class:"scrollbar content-wrapper",ref:t=>this.$listRef=t,onScroll:this.handleScroll},i("div",{key:"7a8268e8a3d5326d359f4722c341e6487e1f21f6",class:"scroller"},i("div",{key:"b856c5ec8c602963ab9bd74e9838b4ce6bf05f85",style:{height:`${this.totalHeight}px`}}),i("div",{key:"a7fe4267408199ffe0f81b56c00f3dffb5e2e59f",class:"smallest-dom-element",id:"list-end",ref:t=>this.$listEndRef=t})),i("div",{key:"bcd29a59a370c975ab344cabeefdd7ce905f37fe",class:"content",style:{transform:`translateY(${this.getRangeSize(0,this.range.start)}px)`}},this.isFetching&&i("div",{key:"6529fdc824381737d75e489f262dcf90bd12e186",class:"loader"},i("rtk-spinner",{key:"8785a6b44007f8ce834639b5e6ae9221a6df704c",size:"md"})),this.getVisibleItems().map(((t,s)=>i("div",{key:t.id,ref:i=>this.rendererInternal(i,t,s)})))))}static get watchers(){return{messages:["messagesUpdated"]}}};(function(t,s,i,r){var e,h=arguments.length,a=h<3?s:null===r?r=Object.getOwnPropertyDescriptor(s,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,r);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(a=(h<3?e(a):h>3?e(s,i,a):e(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([e()],a.prototype,"iconPack",void 0),a.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)))}.loading{cursor:wait}.content-wrapper{height:100%;overflow-y:auto;position:relative;contain:strict}.scroller{width:1px;opacity:0}.content{position:absolute;top:0;width:100%}.smallest-dom-element{width:100%;height:2px;background:red}.loader{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;justify-content:center}";export{a as rtk_message_list_view}