@cloudflare/realtimekit-ui 1.1.0-staging.10 → 1.1.0-staging.12

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 (768) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{ChatHead-e13f3b0e.js → ChatHead-777e6a2d.js} +1 -1
  3. package/dist/cjs/{TextMessage-1dc6f8b9.js → TextMessage-b9322340.js} +2 -2
  4. package/dist/cjs/{chat-2ae6f058.js → chat-f1a9fd6e.js} +1 -16
  5. package/dist/cjs/{config-0a88d50b.js → config-86164f93.js} +2 -2
  6. package/dist/cjs/{debounce-b06b27ca.js → debounce-267777c1.js} +1 -1
  7. package/dist/cjs/index-2e5758b6.js +4403 -0
  8. package/dist/cjs/{index-821d14b7.js → index-6f8c1928.js} +1 -1
  9. package/dist/cjs/{index-e4244d7d.js → index-92947ea7.js} +2 -2
  10. package/dist/cjs/index.cjs.js +6 -6
  11. package/dist/cjs/loader.cjs.js +2 -2
  12. package/dist/cjs/{merge-c46cfa17.js → merge-bb096d88.js} +1 -1
  13. package/dist/cjs/{notification-f3750b61.js → notification-ef397c71.js} +1 -1
  14. package/dist/cjs/realtimekit-ui.cjs.js +30 -3
  15. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +3 -3
  16. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +5 -5
  17. package/dist/cjs/rtk-ai.cjs.entry.js +3 -3
  18. package/dist/cjs/rtk-audio-grid.cjs.entry.js +5 -5
  19. package/dist/cjs/rtk-audio-tile.cjs.entry.js +3 -3
  20. package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +4 -4
  21. package/dist/cjs/{rtk-avatar_24.cjs.entry.js → rtk-avatar_26.cjs.entry.js} +538 -555
  22. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +8 -8
  23. package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +13 -13
  24. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +3 -3
  25. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +4 -4
  26. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +3 -3
  27. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +3 -3
  28. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +11 -25
  29. package/dist/cjs/rtk-chat-message.cjs.entry.js +6 -6
  30. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +13 -7
  31. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +4 -4
  32. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +4 -4
  33. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +9 -5
  34. package/dist/cjs/rtk-clock.cjs.entry.js +6 -6
  35. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +3 -3
  36. package/dist/cjs/rtk-controlbar.cjs.entry.js +5 -5
  37. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +3 -3
  38. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +4 -4
  39. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +4 -4
  40. package/dist/cjs/rtk-dialog.cjs.entry.js +4 -4
  41. package/dist/cjs/rtk-ended-screen.cjs.entry.js +3 -3
  42. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +4 -4
  43. package/dist/cjs/rtk-file-message_3.cjs.entry.js +14 -14
  44. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +3 -3
  45. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +4 -4
  46. package/dist/cjs/rtk-grid.cjs.entry.js +4 -4
  47. package/dist/cjs/rtk-header.cjs.entry.js +5 -5
  48. package/dist/cjs/rtk-idle-screen.cjs.entry.js +4 -4
  49. package/dist/cjs/rtk-image-viewer.cjs.entry.js +4 -4
  50. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +4 -4
  51. package/dist/cjs/rtk-leave-button.cjs.entry.js +4 -4
  52. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2477 -1450
  53. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +3 -3
  54. package/dist/cjs/rtk-logo.cjs.entry.js +3 -3
  55. package/dist/cjs/rtk-meeting-title.cjs.entry.js +3 -3
  56. package/dist/cjs/rtk-message-list-view.cjs.entry.js +7 -7
  57. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +3 -3
  58. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +4 -4
  59. package/dist/cjs/rtk-more-toggle.cjs.entry.js +5 -5
  60. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +3 -3
  61. package/dist/cjs/rtk-name-tag.cjs.entry.js +4 -4
  62. package/dist/cjs/rtk-network-indicator.cjs.entry.js +3 -3
  63. package/dist/cjs/rtk-notification.cjs.entry.js +7 -7
  64. package/dist/cjs/rtk-notifications.cjs.entry.js +5 -5
  65. package/dist/cjs/rtk-participant-count.cjs.entry.js +3 -3
  66. package/dist/cjs/rtk-participant-setup.cjs.entry.js +5 -5
  67. package/dist/cjs/rtk-participant_2.cjs.entry.js +19 -19
  68. package/dist/cjs/rtk-participants-audio.cjs.entry.js +4 -4
  69. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +5 -5
  70. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +4 -4
  71. package/dist/cjs/rtk-participants.cjs.entry.js +4 -4
  72. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +3 -3
  73. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +3 -3
  74. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +4 -4
  75. package/dist/cjs/rtk-plugins_2.cjs.entry.js +7 -7
  76. package/dist/cjs/rtk-poll_2.cjs.entry.js +6 -6
  77. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +4 -4
  78. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +4 -4
  79. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +3 -3
  80. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +3 -3
  81. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +8 -8
  82. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +3 -3
  83. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +4 -4
  84. package/dist/cjs/rtk-settings.cjs.entry.js +3 -3
  85. package/dist/cjs/rtk-setup-screen.cjs.entry.js +5 -5
  86. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +3 -3
  87. package/dist/cjs/rtk-sidebar.cjs.entry.js +5 -5
  88. package/dist/cjs/rtk-simple-grid.cjs.entry.js +4 -4
  89. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +6 -6
  90. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +3 -3
  91. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +3 -3
  92. package/dist/cjs/rtk-stage.cjs.entry.js +4 -4
  93. package/dist/cjs/rtk-transcript.cjs.entry.js +4 -4
  94. package/dist/cjs/rtk-transcripts.cjs.entry.js +3 -3
  95. package/dist/cjs/rtk-ui-provider.cjs.entry.js +3 -3
  96. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +4 -4
  97. package/dist/cjs/{sidebar-0eb1e4ef.js → sidebar-7df66d80.js} +1 -1
  98. package/dist/cjs/{ui-store-6c2d680f.js → ui-store-d0e80f30.js} +113 -34
  99. package/dist/collection/collection-manifest.json +4 -6
  100. package/dist/collection/components/rtk-ai/rtk-ai.js +3 -3
  101. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +3 -3
  102. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +3 -3
  103. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +4 -4
  104. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +4 -4
  105. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +3 -3
  106. package/dist/collection/components/rtk-avatar/rtk-avatar.js +3 -3
  107. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +3 -3
  108. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +5 -5
  109. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +4 -4
  110. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +4 -4
  111. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +5 -5
  112. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +3 -3
  113. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +3 -3
  114. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +3 -3
  115. package/dist/collection/components/rtk-chat/rtk-chat.css +2 -37
  116. package/dist/collection/components/rtk-chat/rtk-chat.js +27 -385
  117. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +16 -51
  118. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +2 -2
  119. package/dist/collection/components/{rtk-channel-details/rtk-channel-details.css → rtk-chat-header/rtk-chat-header.css} +28 -46
  120. package/dist/collection/components/rtk-chat-header/rtk-chat-header.js +32 -0
  121. package/dist/collection/components/rtk-chat-message/rtk-chat-message.css +0 -2
  122. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +9 -9
  123. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.css +0 -2
  124. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +6 -6
  125. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +91 -96
  126. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +4 -4
  127. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.css +142 -0
  128. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +421 -0
  129. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +2 -2
  130. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +8 -4
  131. package/dist/collection/components/rtk-clock/rtk-clock.js +5 -5
  132. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +4 -4
  133. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +4 -4
  134. package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +1 -1
  135. package/dist/collection/components/rtk-counter/rtk-counter.css +0 -2
  136. package/dist/collection/components/rtk-counter/rtk-counter.js +4 -4
  137. package/dist/collection/components/rtk-debugger/rtk-debugger.js +3 -3
  138. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +3 -3
  139. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +3 -3
  140. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +3 -3
  141. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +4 -4
  142. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +3 -3
  143. package/dist/collection/components/rtk-dialog/rtk-dialog.css +1 -2
  144. package/dist/collection/components/rtk-dialog/rtk-dialog.js +3 -3
  145. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +3 -3
  146. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +3 -3
  147. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.css +0 -2
  148. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +3 -3
  149. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +3 -3
  150. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +3 -3
  151. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +3 -3
  152. package/dist/collection/components/rtk-file-message/rtk-file-message.js +5 -5
  153. package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +2 -2
  154. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +4 -4
  155. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +2 -2
  156. package/dist/collection/components/rtk-grid/rtk-grid.js +3 -3
  157. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.css +0 -2
  158. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +3 -3
  159. package/dist/collection/components/rtk-header/rtk-header.js +4 -4
  160. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +4 -4
  161. package/dist/collection/components/rtk-image-message/rtk-image-message.js +7 -7
  162. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +5 -5
  163. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +4 -4
  164. package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +2 -2
  165. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +4 -4
  166. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +3 -3
  167. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +5 -5
  168. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +3 -3
  169. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +3 -3
  170. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +3 -3
  171. package/dist/collection/components/rtk-logo/rtk-logo.js +2 -2
  172. package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
  173. package/dist/collection/components/rtk-meeting/rtk-meeting.js +3 -3
  174. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +3 -3
  175. package/dist/collection/components/rtk-menu/rtk-menu.js +4 -4
  176. package/dist/collection/components/rtk-menu-item/rtk-menu-item.css +1 -1
  177. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +3 -3
  178. package/dist/collection/components/rtk-menu-list/rtk-menu-list.css +3 -3
  179. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +3 -3
  180. package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +4 -4
  181. package/dist/collection/components/rtk-message-view/rtk-message-view.js +3 -3
  182. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +3 -3
  183. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +3 -3
  184. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +5 -5
  185. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +4 -4
  186. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +3 -3
  187. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +4 -4
  188. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +5 -5
  189. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +4 -4
  190. package/dist/collection/components/rtk-notification/rtk-notification.js +4 -4
  191. package/dist/collection/components/rtk-notifications/rtk-notifications.js +3 -3
  192. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +4 -4
  193. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +88 -2
  194. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +50 -27
  195. package/dist/collection/components/rtk-participant/rtk-participant.js +16 -16
  196. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +3 -3
  197. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +5 -5
  198. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +5 -5
  199. package/dist/collection/components/rtk-participants/rtk-participants.js +3 -3
  200. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +4 -4
  201. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +4 -4
  202. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +3 -3
  203. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +3 -3
  204. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +3 -3
  205. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +3 -3
  206. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +4 -4
  207. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.css +112 -0
  208. package/dist/collection/components/{rtk-channel-header/rtk-channel-header.js → rtk-pinned-message-selector/rtk-pinned-message-selector.js} +181 -118
  209. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +3 -3
  210. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +5 -5
  211. package/dist/collection/components/rtk-plugins/rtk-plugins.js +4 -4
  212. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +3 -3
  213. package/dist/collection/components/rtk-poll/rtk-poll.js +5 -5
  214. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +4 -4
  215. package/dist/collection/components/rtk-polls/rtk-polls.js +6 -6
  216. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +3 -3
  217. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +4 -4
  218. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +3 -3
  219. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +3 -3
  220. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +9 -9
  221. package/dist/collection/components/rtk-settings/rtk-settings.js +3 -3
  222. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +3 -3
  223. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +3 -3
  224. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +3 -3
  225. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.css +0 -2
  226. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +3 -3
  227. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +3 -3
  228. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +3 -3
  229. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +3 -3
  230. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +3 -3
  231. package/dist/collection/components/rtk-spinner/rtk-spinner.js +2 -2
  232. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +5 -5
  233. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +3 -3
  234. package/dist/collection/components/rtk-stage/rtk-stage.js +3 -3
  235. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +3 -3
  236. package/dist/collection/components/rtk-switch/rtk-switch.js +3 -3
  237. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +3 -3
  238. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +3 -3
  239. package/dist/collection/components/rtk-text-message/rtk-text-message.js +5 -5
  240. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
  241. package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +1 -1
  242. package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
  243. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +2 -2
  244. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +3 -3
  245. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +3 -3
  246. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
  247. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +4 -4
  248. package/dist/collection/lib/icons/default-icon-pack.js +0 -2
  249. package/dist/collection/lib/lang/default-language.js +2 -5
  250. package/dist/collection/lib/overrides.js +1 -0
  251. package/dist/collection/utils/chat.js +0 -4
  252. package/dist/collection/utils/flags.js +0 -2
  253. package/dist/components/index.js +8 -8
  254. package/dist/components/{p-e375b50d.js → p-06de876f.js} +7 -7
  255. package/dist/components/{p-6c02b0d0.js → p-08351fd6.js} +8 -8
  256. package/dist/components/{p-44c32349.js → p-0a36cb4b.js} +11 -11
  257. package/dist/components/{p-dab9d3d6.js → p-0db812c2.js} +1 -12
  258. package/dist/components/{p-f0e4633e.js → p-1099c0fe.js} +5 -5
  259. package/dist/components/{p-eeb37b16.js → p-12b59b72.js} +5 -5
  260. package/dist/components/{p-fb836f65.js → p-15156a2c.js} +2 -2
  261. package/dist/components/{p-43bf8953.js → p-154bed23.js} +6 -6
  262. package/dist/components/{p-c05530c8.js → p-1b26fbf7.js} +3 -3
  263. package/dist/components/{p-7bde2b2d.js → p-2232de67.js} +2482 -1455
  264. package/dist/components/{p-fb900e8f.js → p-22827c53.js} +6 -6
  265. package/dist/components/{p-ad873f2d.js → p-2305aa2d.js} +1 -1
  266. package/dist/components/{p-6f8d2043.js → p-2690645d.js} +3 -3
  267. package/dist/components/{p-e64e3cec.js → p-2976fcb0.js} +8 -8
  268. package/dist/components/p-321a4aef.js +86 -0
  269. package/dist/components/{p-586482a8.js → p-345a07e8.js} +8 -8
  270. package/dist/components/{p-dfb42075.js → p-401ce922.js} +5 -5
  271. package/dist/components/{p-72fffe3e.js → p-41bf1c3d.js} +5 -5
  272. package/dist/components/{p-5f1b84f7.js → p-45a9a385.js} +11 -11
  273. package/dist/components/{p-3972098e.js → p-469f4396.js} +15 -15
  274. package/dist/components/{p-92729e09.js → p-4942bfd2.js} +9 -9
  275. package/dist/components/{p-dd89aff2.js → p-4a1144e2.js} +8 -8
  276. package/dist/components/{p-46d99dd9.js → p-4a5d3b4c.js} +7 -7
  277. package/dist/components/{p-74356882.js → p-52d9029f.js} +9 -9
  278. package/dist/components/p-54e0acc1.js +463 -0
  279. package/dist/components/{p-da87cc71.js → p-583f9282.js} +1 -1
  280. package/dist/components/{p-ecb016da.js → p-6ac87493.js} +6 -6
  281. package/dist/components/{p-f6c2e822.js → p-6e373d96.js} +4 -4
  282. package/dist/components/{p-aae4c250.js → p-707dced6.js} +2 -2
  283. package/dist/components/{p-1afc54bb.js → p-71fb663b.js} +4 -4
  284. package/dist/components/{p-fefc57f9.js → p-71fbfb8b.js} +7 -7
  285. package/dist/components/{p-282e8e83.js → p-7384c20c.js} +9 -9
  286. package/dist/components/{p-35e93724.js → p-73db39b8.js} +2 -2
  287. package/dist/components/{p-193d8051.js → p-76c443b7.js} +3 -3
  288. package/dist/components/{p-44a203bd.js → p-793f074d.js} +36 -15
  289. package/dist/components/{p-19b037c5.js → p-7adb3504.js} +5 -5
  290. package/dist/components/{p-b6869c32.js → p-7f3bfc54.js} +6 -6
  291. package/dist/components/p-7fcbd2dd.js +236 -0
  292. package/dist/components/{p-7a27fdb5.js → p-862ec1f9.js} +10 -10
  293. package/dist/components/{p-39e8b34a.js → p-8861d5a3.js} +4 -4
  294. package/dist/components/{p-6392204c.js → p-88aded7d.js} +11 -11
  295. package/dist/components/{p-7148ec6a.js → p-8a66a347.js} +5 -5
  296. package/dist/components/{p-05df465d.js → p-8cea6257.js} +1 -1
  297. package/dist/components/{p-cf8f725b.js → p-90420dc5.js} +3 -3
  298. package/dist/components/{p-600579a6.js → p-95a1fa70.js} +5 -5
  299. package/dist/components/{p-e72a0f16.js → p-9e1478a0.js} +7 -7
  300. package/dist/components/{p-977f9875.js → p-9f481b70.js} +5 -5
  301. package/dist/components/{p-73baf5ba.js → p-a3cc7425.js} +1 -1
  302. package/dist/components/{p-fa5aba68.js → p-a4d13056.js} +22 -22
  303. package/dist/components/{p-107e55c1.js → p-a6c93f34.js} +5 -5
  304. package/dist/components/{p-e552dc59.js → p-a74caccd.js} +4 -4
  305. package/dist/components/{p-33be3c19.js → p-a8d77615.js} +16 -16
  306. package/dist/components/{p-2309fb19.js → p-abf952f5.js} +5 -5
  307. package/dist/components/{p-e57e8041.js → p-ac6a5fc5.js} +7 -7
  308. package/dist/components/{p-d9f6db4f.js → p-af2b1476.js} +8 -8
  309. package/dist/components/{p-b76e3950.js → p-b226a124.js} +7 -7
  310. package/dist/components/{p-1a9e3806.js → p-b2d5329f.js} +5 -5
  311. package/dist/components/{p-89151c7a.js → p-b3240843.js} +5 -5
  312. package/dist/components/{p-1da807a2.js → p-bfc86230.js} +4 -4
  313. package/dist/components/{p-a54b82e9.js → p-c0790538.js} +1 -1
  314. package/dist/components/{p-395ef9c8.js → p-c0ad28ff.js} +9 -9
  315. package/dist/components/{p-d188f58b.js → p-c6c4c24e.js} +4 -4
  316. package/dist/components/{p-9bdc24b8.js → p-c9db1b82.js} +5 -5
  317. package/dist/components/{p-fb7666ce.js → p-cd6656bf.js} +8 -8
  318. package/dist/components/{p-819cb785.js → p-cd6f04ae.js} +5 -5
  319. package/dist/components/{p-f7bd10f1.js → p-d029dd2f.js} +8 -8
  320. package/dist/components/{p-dc3143c0.js → p-d0f54eea.js} +3 -3
  321. package/dist/components/{p-edd12f2f.js → p-d22fc130.js} +7 -7
  322. package/dist/components/{p-abdff498.js → p-d2cbc2d1.js} +11 -11
  323. package/dist/components/{p-851b90a6.js → p-d6024528.js} +4 -4
  324. package/dist/components/{p-7b6356e2.js → p-d9626191.js} +6 -6
  325. package/dist/components/p-d9fa18db.js +218 -0
  326. package/dist/components/{p-0a31ef52.js → p-dacaa250.js} +3 -3
  327. package/dist/components/{p-e4888ccc.js → p-db5556c3.js} +81 -58
  328. package/dist/components/{p-7c8096c2.js → p-dd8a892e.js} +5 -5
  329. package/dist/components/{p-e443d803.js → p-dfdbb665.js} +5 -5
  330. package/dist/components/{p-524d7900.js → p-e0ef3893.js} +7 -7
  331. package/dist/components/{p-1391bef0.js → p-e229128b.js} +1 -1
  332. package/dist/components/{p-6f7c46d2.js → p-e334e15c.js} +2 -2
  333. package/dist/components/{p-5476e3f3.js → p-e544a590.js} +6 -6
  334. package/dist/components/{p-2447a26f.js → p-e7b7abfe.js} +5 -5
  335. package/dist/components/{p-45b4f6a1.js → p-ecbb4e46.js} +7 -7
  336. package/dist/components/{p-6f361314.js → p-eff3c856.js} +6 -6
  337. package/dist/components/{p-e847fee9.js → p-f19b4abc.js} +114 -35
  338. package/dist/components/{p-60fdbd75.js → p-f3c261ec.js} +1 -1
  339. package/dist/components/{p-6739a399.js → p-f5aecaad.js} +3 -3
  340. package/dist/components/{p-89eb65a9.js → p-fa8cf270.js} +3 -3
  341. package/dist/components/p-fdad14c9.js +4028 -0
  342. package/dist/components/{p-3e58e0f3.js → p-fe0d125b.js} +4 -4
  343. package/dist/components/rtk-ai-toggle.js +6 -6
  344. package/dist/components/rtk-ai-transcriptions.js +1 -1
  345. package/dist/components/rtk-ai.js +6 -6
  346. package/dist/components/rtk-audio-grid.js +5 -5
  347. package/dist/components/rtk-audio-tile.js +7 -7
  348. package/dist/components/rtk-audio-visualizer.js +1 -1
  349. package/dist/components/rtk-avatar.js +1 -1
  350. package/dist/components/rtk-breakout-room-manager.js +1 -1
  351. package/dist/components/rtk-breakout-room-participants.js +1 -1
  352. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  353. package/dist/components/rtk-breakout-rooms-toggle.js +6 -6
  354. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  355. package/dist/components/rtk-button.js +1 -1
  356. package/dist/components/rtk-camera-selector.js +1 -1
  357. package/dist/components/rtk-camera-toggle.js +7 -7
  358. package/dist/components/rtk-caption-toggle.js +6 -6
  359. package/dist/components/rtk-chat-composer-ui.js +17 -34
  360. package/dist/components/rtk-chat-composer-view.js +1 -1
  361. package/dist/components/{rtk-channel-header.d.ts → rtk-chat-header.d.ts} +4 -4
  362. package/dist/components/rtk-chat-header.js +6 -0
  363. package/dist/components/rtk-chat-message.js +1 -1
  364. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  365. package/dist/components/rtk-chat-messages-ui.js +26 -20
  366. package/dist/components/rtk-chat-search-results.js +16 -16
  367. package/dist/components/rtk-chat-selector-ui.js +5 -5
  368. package/dist/components/{rtk-channel-creator.d.ts → rtk-chat-selector.d.ts} +4 -4
  369. package/dist/components/rtk-chat-selector.js +6 -0
  370. package/dist/components/rtk-chat-toggle.js +12 -8
  371. package/dist/components/rtk-chat.js +1 -1
  372. package/dist/components/rtk-clock.js +7 -7
  373. package/dist/components/rtk-confirmation-modal.js +1 -1
  374. package/dist/components/rtk-controlbar-button.js +1 -1
  375. package/dist/components/rtk-controlbar.js +5 -5
  376. package/dist/components/rtk-counter.js +1 -1
  377. package/dist/components/rtk-debugger-audio.js +1 -1
  378. package/dist/components/rtk-debugger-screenshare.js +1 -1
  379. package/dist/components/rtk-debugger-system.js +1 -1
  380. package/dist/components/rtk-debugger-toggle.js +7 -7
  381. package/dist/components/rtk-debugger-video.js +1 -1
  382. package/dist/components/rtk-debugger.js +1 -1
  383. package/dist/components/rtk-dialog-manager.js +26 -26
  384. package/dist/components/rtk-dialog.js +1 -1
  385. package/dist/components/rtk-draft-attachment-view.js +1 -1
  386. package/dist/components/rtk-emoji-picker-button.js +1 -1
  387. package/dist/components/rtk-emoji-picker.js +1 -1
  388. package/dist/components/rtk-ended-screen.js +5 -5
  389. package/dist/components/rtk-file-dropzone.js +5 -5
  390. package/dist/components/rtk-file-message-view.js +1 -1
  391. package/dist/components/rtk-file-message.js +1 -1
  392. package/dist/components/rtk-file-picker-button.js +1 -1
  393. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  394. package/dist/components/rtk-grid-pagination.js +7 -7
  395. package/dist/components/rtk-grid.js +12 -12
  396. package/dist/components/rtk-header.js +5 -5
  397. package/dist/components/rtk-icon.js +1 -1
  398. package/dist/components/rtk-idle-screen.js +7 -7
  399. package/dist/components/rtk-image-message-view.js +1 -1
  400. package/dist/components/rtk-image-message.js +1 -1
  401. package/dist/components/rtk-image-viewer.js +6 -6
  402. package/dist/components/rtk-information-tooltip.js +5 -5
  403. package/dist/components/rtk-join-stage.js +1 -1
  404. package/dist/components/rtk-leave-button.js +7 -7
  405. package/dist/components/rtk-leave-meeting.js +1 -1
  406. package/dist/components/rtk-livestream-indicator.js +1 -1
  407. package/dist/components/rtk-livestream-player.js +1 -1
  408. package/dist/components/rtk-livestream-toggle.js +6 -6
  409. package/dist/components/rtk-logo.js +1 -1
  410. package/dist/components/rtk-markdown-view.js +1 -1
  411. package/dist/components/rtk-meeting-title.js +4 -4
  412. package/dist/components/rtk-meeting.js +59 -47
  413. package/dist/components/rtk-menu-item.js +1 -1
  414. package/dist/components/rtk-menu-list.js +1 -1
  415. package/dist/components/rtk-menu.js +1 -1
  416. package/dist/components/rtk-message-list-view.js +8 -8
  417. package/dist/components/rtk-message-view.js +1 -1
  418. package/dist/components/rtk-mic-toggle.js +7 -7
  419. package/dist/components/rtk-microphone-selector.js +1 -1
  420. package/dist/components/rtk-mixed-grid.js +10 -10
  421. package/dist/components/rtk-more-toggle.js +8 -8
  422. package/dist/components/rtk-mute-all-button.js +7 -7
  423. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  424. package/dist/components/rtk-name-tag.js +1 -1
  425. package/dist/components/rtk-network-indicator.js +4 -4
  426. package/dist/components/rtk-notification.js +1 -1
  427. package/dist/components/rtk-notifications.js +8 -8
  428. package/dist/components/rtk-overlay-modal.js +1 -1
  429. package/dist/components/rtk-paginated-list.js +1 -1
  430. package/dist/components/rtk-participant-count.js +4 -4
  431. package/dist/components/rtk-participant-setup.js +5 -5
  432. package/dist/components/rtk-participant-tile.js +1 -1
  433. package/dist/components/rtk-participant.js +1 -1
  434. package/dist/components/rtk-participants-audio.js +7 -7
  435. package/dist/components/rtk-participants-stage-list.js +1 -1
  436. package/dist/components/rtk-participants-stage-queue.js +1 -1
  437. package/dist/components/rtk-participants-toggle.js +7 -7
  438. package/dist/components/rtk-participants-viewer-list.js +1 -1
  439. package/dist/components/rtk-participants-waiting-list.js +1 -1
  440. package/dist/components/rtk-participants.js +17 -17
  441. package/dist/components/rtk-permissions-message.js +1 -1
  442. package/dist/components/rtk-pinned-message-selector.d.ts +11 -0
  443. package/dist/components/rtk-pinned-message-selector.js +6 -0
  444. package/dist/components/rtk-pip-toggle.js +6 -6
  445. package/dist/components/rtk-plugin-main.js +1 -1
  446. package/dist/components/rtk-plugins-toggle.js +7 -7
  447. package/dist/components/rtk-plugins.js +1 -1
  448. package/dist/components/rtk-poll-form.js +1 -1
  449. package/dist/components/rtk-poll.js +1 -1
  450. package/dist/components/rtk-polls-toggle.js +7 -7
  451. package/dist/components/rtk-polls.js +1 -1
  452. package/dist/components/rtk-recording-indicator.js +5 -5
  453. package/dist/components/rtk-recording-toggle.js +6 -6
  454. package/dist/components/rtk-screen-share-toggle.js +7 -7
  455. package/dist/components/rtk-screenshare-view.js +11 -11
  456. package/dist/components/rtk-settings-audio.js +1 -1
  457. package/dist/components/rtk-settings-toggle.js +7 -7
  458. package/dist/components/rtk-settings-video.js +1 -1
  459. package/dist/components/rtk-settings.js +13 -13
  460. package/dist/components/rtk-setup-screen.js +11 -11
  461. package/dist/components/rtk-sidebar-ui.js +1 -1
  462. package/dist/components/rtk-sidebar.js +13 -13
  463. package/dist/components/rtk-simple-grid.js +4 -4
  464. package/dist/components/rtk-speaker-selector.js +1 -1
  465. package/dist/components/rtk-spinner.js +1 -1
  466. package/dist/components/rtk-spotlight-grid.js +6 -6
  467. package/dist/components/rtk-spotlight-indicator.js +1 -1
  468. package/dist/components/rtk-stage-toggle.js +7 -7
  469. package/dist/components/rtk-stage.js +4 -4
  470. package/dist/components/rtk-switch.js +1 -1
  471. package/dist/components/rtk-tab-bar.js +1 -1
  472. package/dist/components/rtk-text-composer-view.js +1 -1
  473. package/dist/components/rtk-text-message-view.js +1 -1
  474. package/dist/components/rtk-text-message.js +1 -1
  475. package/dist/components/rtk-tooltip.js +1 -1
  476. package/dist/components/rtk-transcript.js +1 -1
  477. package/dist/components/rtk-transcripts.js +4 -4
  478. package/dist/components/rtk-ui-provider.js +3 -3
  479. package/dist/components/rtk-viewer-count.js +1 -1
  480. package/dist/components/rtk-virtualized-participant-list.js +1 -1
  481. package/dist/components/rtk-waiting-screen.js +5 -5
  482. package/dist/docs/docs-components.json +10739 -18036
  483. package/dist/docs/docs-vscode.json +46 -108
  484. package/dist/esm/{ChatHead-15c2f8d4.js → ChatHead-148558a8.js} +1 -1
  485. package/dist/esm/{TextMessage-0d8be8c5.js → TextMessage-cdf76ced.js} +2 -2
  486. package/dist/esm/{chat-b2bea75f.js → chat-12f27725.js} +2 -13
  487. package/dist/esm/{config-325caca3.js → config-74c02ff0.js} +2 -2
  488. package/dist/esm/{debounce-3139f9e3.js → debounce-0c6e63e9.js} +1 -1
  489. package/dist/esm/{index-d31a2e33.js → index-3f51790f.js} +1 -1
  490. package/dist/esm/index-55463a54.js +4365 -0
  491. package/dist/esm/{index-6eb882e7.js → index-e677f28b.js} +2 -2
  492. package/dist/esm/index.js +8 -8
  493. package/dist/esm/loader.js +6360 -3546
  494. package/dist/esm/{merge-bc2a0775.js → merge-df16b7d2.js} +1 -1
  495. package/dist/esm/{notification-4beb1e0d.js → notification-dd8b1d52.js} +1 -1
  496. package/dist/esm/realtimekit-ui.js +31 -4
  497. package/dist/esm/rtk-ai-toggle.entry.js +3 -3
  498. package/dist/esm/rtk-ai-transcriptions.entry.js +5 -5
  499. package/dist/esm/rtk-ai.entry.js +3 -3
  500. package/dist/esm/rtk-audio-grid.entry.js +5 -5
  501. package/dist/esm/rtk-audio-tile.entry.js +3 -3
  502. package/dist/esm/rtk-audio-visualizer_4.entry.js +4 -4
  503. package/dist/esm/{rtk-avatar_24.entry.js → rtk-avatar_26.entry.js} +536 -555
  504. package/dist/esm/rtk-breakout-room-manager_3.entry.js +8 -8
  505. package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +13 -13
  506. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +3 -3
  507. package/dist/esm/rtk-camera-selector_2.entry.js +4 -4
  508. package/dist/esm/rtk-camera-toggle.entry.js +3 -3
  509. package/dist/esm/rtk-caption-toggle.entry.js +3 -3
  510. package/dist/esm/rtk-chat-composer-ui.entry.js +11 -25
  511. package/dist/esm/rtk-chat-message.entry.js +6 -6
  512. package/dist/esm/rtk-chat-messages-ui.entry.js +13 -7
  513. package/dist/esm/rtk-chat-search-results.entry.js +4 -4
  514. package/dist/esm/rtk-chat-selector-ui.entry.js +4 -4
  515. package/dist/esm/rtk-chat-toggle.entry.js +9 -5
  516. package/dist/esm/rtk-clock.entry.js +6 -6
  517. package/dist/esm/rtk-controlbar-button.entry.js +3 -3
  518. package/dist/esm/rtk-controlbar.entry.js +5 -5
  519. package/dist/esm/rtk-debugger-audio_4.entry.js +3 -3
  520. package/dist/esm/rtk-debugger-toggle.entry.js +4 -4
  521. package/dist/esm/rtk-dialog-manager.entry.js +4 -4
  522. package/dist/esm/rtk-dialog.entry.js +4 -4
  523. package/dist/esm/rtk-ended-screen.entry.js +3 -3
  524. package/dist/esm/rtk-file-dropzone.entry.js +4 -4
  525. package/dist/esm/rtk-file-message_3.entry.js +14 -14
  526. package/dist/esm/rtk-fullscreen-toggle.entry.js +3 -3
  527. package/dist/esm/rtk-grid-pagination.entry.js +4 -4
  528. package/dist/esm/rtk-grid.entry.js +4 -4
  529. package/dist/esm/rtk-header.entry.js +5 -5
  530. package/dist/esm/rtk-idle-screen.entry.js +4 -4
  531. package/dist/esm/rtk-image-viewer.entry.js +4 -4
  532. package/dist/esm/rtk-information-tooltip.entry.js +4 -4
  533. package/dist/esm/rtk-leave-button.entry.js +4 -4
  534. package/dist/esm/rtk-livestream-indicator_3.entry.js +2477 -1450
  535. package/dist/esm/rtk-livestream-toggle.entry.js +3 -3
  536. package/dist/esm/rtk-logo.entry.js +3 -3
  537. package/dist/esm/rtk-meeting-title.entry.js +3 -3
  538. package/dist/esm/rtk-message-list-view.entry.js +7 -7
  539. package/dist/esm/rtk-mic-toggle.entry.js +3 -3
  540. package/dist/esm/rtk-mixed-grid.entry.js +4 -4
  541. package/dist/esm/rtk-more-toggle.entry.js +5 -5
  542. package/dist/esm/rtk-mute-all-button.entry.js +3 -3
  543. package/dist/esm/rtk-name-tag.entry.js +4 -4
  544. package/dist/esm/rtk-network-indicator.entry.js +3 -3
  545. package/dist/esm/rtk-notification.entry.js +7 -7
  546. package/dist/esm/rtk-notifications.entry.js +5 -5
  547. package/dist/esm/rtk-participant-count.entry.js +3 -3
  548. package/dist/esm/rtk-participant-setup.entry.js +5 -5
  549. package/dist/esm/rtk-participant_2.entry.js +19 -19
  550. package/dist/esm/rtk-participants-audio.entry.js +4 -4
  551. package/dist/esm/rtk-participants-stage-list_4.entry.js +5 -5
  552. package/dist/esm/rtk-participants-toggle.entry.js +4 -4
  553. package/dist/esm/rtk-participants.entry.js +4 -4
  554. package/dist/esm/rtk-pip-toggle.entry.js +3 -3
  555. package/dist/esm/rtk-plugin-main_2.entry.js +3 -3
  556. package/dist/esm/rtk-plugins-toggle.entry.js +4 -4
  557. package/dist/esm/rtk-plugins_2.entry.js +7 -7
  558. package/dist/esm/rtk-poll_2.entry.js +6 -6
  559. package/dist/esm/rtk-polls-toggle.entry.js +4 -4
  560. package/dist/esm/rtk-recording-indicator.entry.js +4 -4
  561. package/dist/esm/rtk-recording-toggle.entry.js +3 -3
  562. package/dist/esm/rtk-screen-share-toggle.entry.js +3 -3
  563. package/dist/esm/rtk-screenshare-view.entry.js +8 -8
  564. package/dist/esm/rtk-settings-audio_2.entry.js +3 -3
  565. package/dist/esm/rtk-settings-toggle.entry.js +4 -4
  566. package/dist/esm/rtk-settings.entry.js +3 -3
  567. package/dist/esm/rtk-setup-screen.entry.js +5 -5
  568. package/dist/esm/rtk-sidebar-ui.entry.js +3 -3
  569. package/dist/esm/rtk-sidebar.entry.js +5 -5
  570. package/dist/esm/rtk-simple-grid.entry.js +4 -4
  571. package/dist/esm/rtk-spotlight-grid.entry.js +6 -6
  572. package/dist/esm/rtk-spotlight-indicator.entry.js +3 -3
  573. package/dist/esm/rtk-stage-toggle.entry.js +3 -3
  574. package/dist/esm/rtk-stage.entry.js +4 -4
  575. package/dist/esm/rtk-transcript.entry.js +4 -4
  576. package/dist/esm/rtk-transcripts.entry.js +3 -3
  577. package/dist/esm/rtk-ui-provider.entry.js +3 -3
  578. package/dist/esm/rtk-waiting-screen.entry.js +4 -4
  579. package/dist/esm/{sidebar-376c9917.js → sidebar-293fd302.js} +1 -1
  580. package/dist/esm/{ui-store-12132d9c.js → ui-store-644e4cb0.js} +114 -35
  581. package/dist/realtimekit-ui/index.esm.js +1 -1
  582. package/dist/realtimekit-ui/p-01ef7b4d.entry.js +1 -0
  583. package/dist/realtimekit-ui/p-06dcd55e.entry.js +1 -0
  584. package/dist/realtimekit-ui/p-0c3f571f.entry.js +1 -0
  585. package/dist/realtimekit-ui/{p-30dcb4cc.entry.js → p-0cfee5d3.entry.js} +1 -1
  586. package/dist/realtimekit-ui/p-10d4354c.entry.js +1 -0
  587. package/dist/realtimekit-ui/p-14dc10b8.entry.js +1 -0
  588. package/dist/realtimekit-ui/p-1517b428.entry.js +1 -0
  589. package/dist/realtimekit-ui/{p-6914a616.entry.js → p-15297e89.entry.js} +1 -1
  590. package/dist/realtimekit-ui/p-1e16ecb3.entry.js +1 -0
  591. package/dist/realtimekit-ui/{p-af58f450.entry.js → p-1feec027.entry.js} +1 -1
  592. package/dist/realtimekit-ui/{p-00445029.entry.js → p-2251059d.entry.js} +1 -1
  593. package/dist/realtimekit-ui/p-25f3e66a.entry.js +1 -0
  594. package/dist/realtimekit-ui/{p-e0c73820.entry.js → p-26b4e422.entry.js} +1 -1
  595. package/dist/realtimekit-ui/p-29549a05.entry.js +1 -0
  596. package/dist/realtimekit-ui/{p-a852e0cf.entry.js → p-29d3f735.entry.js} +1 -1
  597. package/dist/realtimekit-ui/{p-532e1a53.entry.js → p-2b47921e.entry.js} +1 -1
  598. package/dist/realtimekit-ui/p-2f93d90b.entry.js +1 -0
  599. package/dist/realtimekit-ui/{p-afa7211c.js → p-2ff77d78.js} +1 -1
  600. package/dist/realtimekit-ui/{p-c5f704a3.entry.js → p-309b8a96.entry.js} +1 -1
  601. package/dist/realtimekit-ui/{p-fcb7a6e2.entry.js → p-30a3007c.entry.js} +1 -1
  602. package/dist/realtimekit-ui/{p-9b550ec4.js → p-315cd380.js} +1 -1
  603. package/dist/realtimekit-ui/{p-a67e2a25.entry.js → p-36f7accb.entry.js} +1 -1
  604. package/dist/realtimekit-ui/{p-05d1b9d5.entry.js → p-3ec85ff3.entry.js} +1 -1
  605. package/dist/realtimekit-ui/{p-14569a57.entry.js → p-40ab8b0f.entry.js} +1 -1
  606. package/dist/realtimekit-ui/{p-be5bdd0a.entry.js → p-43fa4d95.entry.js} +1 -1
  607. package/dist/realtimekit-ui/{p-426bf45e.entry.js → p-4814e742.entry.js} +1 -1
  608. package/dist/realtimekit-ui/{p-616dc312.entry.js → p-4a5e203d.entry.js} +1 -1
  609. package/dist/realtimekit-ui/{p-a7172c2d.entry.js → p-4e604bf1.entry.js} +1 -1
  610. package/dist/realtimekit-ui/p-4ec77793.js +1 -0
  611. package/dist/realtimekit-ui/{p-e78ba202.entry.js → p-50aaac81.entry.js} +1 -1
  612. package/dist/realtimekit-ui/{p-323d1aa4.entry.js → p-5a425dac.entry.js} +1 -1
  613. package/dist/realtimekit-ui/{p-1834416c.entry.js → p-5ef7cf76.entry.js} +1 -1
  614. package/dist/realtimekit-ui/{p-85b3c0c4.entry.js → p-60b3fbb2.entry.js} +1 -1
  615. package/dist/realtimekit-ui/{p-c8773db0.entry.js → p-6573487e.entry.js} +1 -1
  616. package/dist/realtimekit-ui/p-67c674d4.entry.js +1 -0
  617. package/dist/realtimekit-ui/p-6acdcb4f.entry.js +1 -0
  618. package/dist/realtimekit-ui/{p-cb54bd67.entry.js → p-6c2ef845.entry.js} +1 -1
  619. package/dist/realtimekit-ui/{p-0baa78d7.entry.js → p-6f913b9b.entry.js} +1 -1
  620. package/dist/realtimekit-ui/p-71393f37.entry.js +1 -0
  621. package/dist/realtimekit-ui/{p-a7e0277f.js → p-77e5605f.js} +1 -1
  622. package/dist/realtimekit-ui/{p-f6c82f1b.entry.js → p-8329d4ae.entry.js} +1 -1
  623. package/dist/realtimekit-ui/{p-8778b3e6.entry.js → p-84476389.entry.js} +1 -1
  624. package/dist/realtimekit-ui/{p-342b4926.entry.js → p-879459bb.entry.js} +1 -1
  625. package/dist/realtimekit-ui/p-8cc26ae0.entry.js +1 -0
  626. package/dist/realtimekit-ui/{p-2441260e.entry.js → p-8e867ba8.entry.js} +1 -1
  627. package/dist/realtimekit-ui/p-8fc79c56.js +1 -0
  628. package/dist/realtimekit-ui/p-9599b2e4.entry.js +1 -0
  629. package/dist/realtimekit-ui/{p-7d01d588.entry.js → p-975cbc2e.entry.js} +1 -1
  630. package/dist/realtimekit-ui/p-9ff0dfdb.entry.js +1 -0
  631. package/dist/realtimekit-ui/{p-f32aecbc.entry.js → p-a43a7ffb.entry.js} +1 -1
  632. package/dist/realtimekit-ui/p-a599f720.js +2 -0
  633. package/dist/realtimekit-ui/p-abbee273.entry.js +1 -0
  634. package/dist/realtimekit-ui/p-ad11a64a.entry.js +1 -0
  635. package/dist/realtimekit-ui/p-aee32120.entry.js +1 -0
  636. package/dist/realtimekit-ui/{p-515a17ce.entry.js → p-b0eaeddc.entry.js} +1 -1
  637. package/dist/realtimekit-ui/p-b5e5e206.js +1 -0
  638. package/dist/realtimekit-ui/p-bb907330.entry.js +1 -0
  639. package/dist/realtimekit-ui/{p-5b00a8fa.entry.js → p-bbaf3e7d.entry.js} +1 -1
  640. package/dist/realtimekit-ui/{p-a1408db4.entry.js → p-be0cae77.entry.js} +1 -1
  641. package/dist/realtimekit-ui/{p-11a469d9.js → p-be0d2b90.js} +1 -1
  642. package/dist/realtimekit-ui/{p-94a37c73.entry.js → p-bea3ee08.entry.js} +1 -1
  643. package/dist/realtimekit-ui/{p-ebfde234.entry.js → p-c0e5ddd4.entry.js} +1 -1
  644. package/dist/realtimekit-ui/{p-1fe6003b.entry.js → p-c794adf9.entry.js} +1 -1
  645. package/dist/realtimekit-ui/p-c7ddf9a9.entry.js +1 -0
  646. package/dist/realtimekit-ui/{p-44d69c6b.entry.js → p-c8239122.entry.js} +1 -1
  647. package/dist/realtimekit-ui/p-c8f0b23e.entry.js +1 -0
  648. package/dist/realtimekit-ui/{p-573187b4.entry.js → p-cbbb09a2.entry.js} +1 -1
  649. package/dist/realtimekit-ui/{p-80e51a73.entry.js → p-cbfe61b9.entry.js} +1 -1
  650. package/dist/realtimekit-ui/{p-cc226b51.entry.js → p-cc71c33f.entry.js} +1 -1
  651. package/dist/realtimekit-ui/{p-ad5e9fdb.entry.js → p-cd086077.entry.js} +1 -1
  652. package/dist/realtimekit-ui/{p-6896e819.entry.js → p-cedff249.entry.js} +1 -1
  653. package/dist/realtimekit-ui/p-d107248e.entry.js +1 -0
  654. package/dist/realtimekit-ui/{p-a40cc665.entry.js → p-d10fe6c7.entry.js} +1 -1
  655. package/dist/realtimekit-ui/p-d1256212.entry.js +1 -0
  656. package/dist/realtimekit-ui/p-d24dd330.entry.js +1 -0
  657. package/dist/realtimekit-ui/{p-4b33b435.entry.js → p-d3d4e6de.entry.js} +1 -1
  658. package/dist/realtimekit-ui/p-d432c842.entry.js +1 -0
  659. package/dist/realtimekit-ui/p-d6126ff7.js +1 -0
  660. package/dist/realtimekit-ui/p-d8e64814.entry.js +1 -0
  661. package/dist/realtimekit-ui/{p-d3e520e5.js → p-ddcb6b8b.js} +1 -1
  662. package/dist/realtimekit-ui/{p-4485414e.entry.js → p-de253745.entry.js} +1 -1
  663. package/dist/realtimekit-ui/{p-369648b9.entry.js → p-de2fd3a4.entry.js} +1 -1
  664. package/dist/realtimekit-ui/{p-3dd04263.entry.js → p-e6fc5935.entry.js} +1 -1
  665. package/dist/realtimekit-ui/{p-c8eaa707.js → p-eccb6d78.js} +1 -1
  666. package/dist/realtimekit-ui/p-f1c4d507.entry.js +1 -0
  667. package/dist/realtimekit-ui/{p-fa86682c.entry.js → p-f42001bb.entry.js} +1 -1
  668. package/dist/realtimekit-ui/{p-a0d39ea3.entry.js → p-f423e125.entry.js} +1 -1
  669. package/dist/realtimekit-ui/p-f46787e0.entry.js +1 -0
  670. package/dist/realtimekit-ui/{p-f266302c.entry.js → p-f4e8a0b3.entry.js} +1 -1
  671. package/dist/realtimekit-ui/{p-cd0c5440.js → p-f6fdb3c3.js} +1 -1
  672. package/dist/realtimekit-ui/p-f8089097.entry.js +1 -0
  673. package/dist/realtimekit-ui/p-fc0eb2e6.entry.js +1 -0
  674. package/dist/realtimekit-ui/p-ff86148c.entry.js +1 -0
  675. package/dist/realtimekit-ui/{p-cd56beb7.entry.js → p-ffac36ba.entry.js} +1 -1
  676. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  677. package/dist/types/components/rtk-chat/rtk-chat.d.ts +5 -43
  678. package/dist/types/components/rtk-chat-composer-ui/rtk-chat-composer-ui.d.ts +1 -4
  679. package/dist/types/components/rtk-chat-header/rtk-chat-header.d.ts +7 -0
  680. package/dist/types/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.d.ts +6 -15
  681. package/dist/types/components/rtk-chat-selector/rtk-chat-selector.d.ts +52 -0
  682. package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +4 -2
  683. package/dist/types/components/rtk-pinned-message-selector/rtk-pinned-message-selector.d.ts +40 -0
  684. package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +0 -2
  685. package/dist/types/components.d.ts +186 -498
  686. package/dist/types/lib/icons/default-icon-pack.d.ts +0 -2
  687. package/dist/types/lib/lang/default-language.d.ts +1 -4
  688. package/dist/types/lib/overrides.d.ts +5 -0
  689. package/dist/types/types/props.d.ts +0 -4
  690. package/dist/types/utils/chat.d.ts +1 -3
  691. package/dist/types/utils/flags.d.ts +0 -2
  692. package/package.json +1 -1
  693. package/dist/cjs/index-05554ce6.js +0 -2251
  694. package/dist/cjs/rtk-channel-creator.cjs.entry.js +0 -163
  695. package/dist/cjs/rtk-channel-details.cjs.entry.js +0 -49
  696. package/dist/cjs/rtk-channel-header.cjs.entry.js +0 -83
  697. package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +0 -147
  698. package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.css +0 -210
  699. package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +0 -290
  700. package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +0 -149
  701. package/dist/collection/components/rtk-channel-header/rtk-channel-header.css +0 -99
  702. package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.css +0 -330
  703. package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +0 -286
  704. package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.css +0 -306
  705. package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +0 -341
  706. package/dist/components/p-210862ae.js +0 -736
  707. package/dist/components/p-33e73313.js +0 -85
  708. package/dist/components/p-c3592601.js +0 -1641
  709. package/dist/components/p-c78c26b1.js +0 -203
  710. package/dist/components/rtk-channel-creator.js +0 -214
  711. package/dist/components/rtk-channel-details.d.ts +0 -11
  712. package/dist/components/rtk-channel-details.js +0 -6
  713. package/dist/components/rtk-channel-header.js +0 -151
  714. package/dist/components/rtk-channel-selector-ui.d.ts +0 -11
  715. package/dist/components/rtk-channel-selector-ui.js +0 -194
  716. package/dist/components/rtk-channel-selector-view.d.ts +0 -11
  717. package/dist/components/rtk-channel-selector-view.js +0 -6
  718. package/dist/esm/index-c1fb98bb.js +0 -2218
  719. package/dist/esm/rtk-channel-creator.entry.js +0 -159
  720. package/dist/esm/rtk-channel-details.entry.js +0 -45
  721. package/dist/esm/rtk-channel-header.entry.js +0 -79
  722. package/dist/esm/rtk-channel-selector-ui.entry.js +0 -143
  723. package/dist/realtimekit-ui/p-0ee570cd.js +0 -2
  724. package/dist/realtimekit-ui/p-1462cbd9.entry.js +0 -1
  725. package/dist/realtimekit-ui/p-1669c53d.entry.js +0 -1
  726. package/dist/realtimekit-ui/p-21d4bb9c.entry.js +0 -1
  727. package/dist/realtimekit-ui/p-25c4d10f.js +0 -1
  728. package/dist/realtimekit-ui/p-2b054928.entry.js +0 -1
  729. package/dist/realtimekit-ui/p-322957ed.entry.js +0 -1
  730. package/dist/realtimekit-ui/p-3f4120cc.entry.js +0 -1
  731. package/dist/realtimekit-ui/p-43530cd3.entry.js +0 -1
  732. package/dist/realtimekit-ui/p-44531a97.entry.js +0 -1
  733. package/dist/realtimekit-ui/p-45f90b95.js +0 -1
  734. package/dist/realtimekit-ui/p-48c87789.entry.js +0 -1
  735. package/dist/realtimekit-ui/p-4b638184.entry.js +0 -1
  736. package/dist/realtimekit-ui/p-53680d55.entry.js +0 -1
  737. package/dist/realtimekit-ui/p-54a88fdf.entry.js +0 -1
  738. package/dist/realtimekit-ui/p-5892c1e0.entry.js +0 -1
  739. package/dist/realtimekit-ui/p-5b2d97fc.js +0 -1
  740. package/dist/realtimekit-ui/p-612a8d25.entry.js +0 -1
  741. package/dist/realtimekit-ui/p-639601b7.entry.js +0 -1
  742. package/dist/realtimekit-ui/p-64206b62.entry.js +0 -1
  743. package/dist/realtimekit-ui/p-67ead213.entry.js +0 -1
  744. package/dist/realtimekit-ui/p-685adc5f.entry.js +0 -1
  745. package/dist/realtimekit-ui/p-701cdf1b.entry.js +0 -1
  746. package/dist/realtimekit-ui/p-7108d1cd.entry.js +0 -1
  747. package/dist/realtimekit-ui/p-75f53ae6.entry.js +0 -1
  748. package/dist/realtimekit-ui/p-7a9a226e.entry.js +0 -1
  749. package/dist/realtimekit-ui/p-820dad23.entry.js +0 -1
  750. package/dist/realtimekit-ui/p-85b45c3b.entry.js +0 -1
  751. package/dist/realtimekit-ui/p-95fb25d6.entry.js +0 -1
  752. package/dist/realtimekit-ui/p-a5900df2.js +0 -1
  753. package/dist/realtimekit-ui/p-a680da64.entry.js +0 -1
  754. package/dist/realtimekit-ui/p-a9190330.entry.js +0 -1
  755. package/dist/realtimekit-ui/p-ac6c8ebe.entry.js +0 -1
  756. package/dist/realtimekit-ui/p-b25f7d7b.entry.js +0 -1
  757. package/dist/realtimekit-ui/p-b51e813e.entry.js +0 -1
  758. package/dist/realtimekit-ui/p-be03944b.entry.js +0 -1
  759. package/dist/realtimekit-ui/p-bf717b8c.entry.js +0 -1
  760. package/dist/realtimekit-ui/p-cda276d6.entry.js +0 -1
  761. package/dist/realtimekit-ui/p-d880fb69.entry.js +0 -1
  762. package/dist/realtimekit-ui/p-e5b426fa.entry.js +0 -1
  763. package/dist/realtimekit-ui/p-ec5ed8a4.entry.js +0 -1
  764. package/dist/types/components/rtk-channel-creator/rtk-channel-creator.d.ts +0 -37
  765. package/dist/types/components/rtk-channel-details/rtk-channel-details.d.ts +0 -16
  766. package/dist/types/components/rtk-channel-header/rtk-channel-header.d.ts +0 -32
  767. package/dist/types/components/rtk-channel-selector-ui/rtk-channel-selector-ui.d.ts +0 -35
  768. package/dist/types/components/rtk-channel-selector-view/rtk-channel-selector-view.d.ts +0 -62
@@ -1,159 +0,0 @@
1
- import { r as registerInstance, c as createEvent, w as writeTask, f as forceUpdate, h, H as Host, a as getElement } from './index-c1fb98bb.js';
2
- import { i as useLanguage, e as defaultIconPack } from './ui-store-12132d9c.js';
3
- import { S as SyncWithStore } from './index-6eb882e7.js';
4
-
5
- const rtkChannelCreatorCss = ":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{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));display:flex;flex-direction:column;width:var(--rtk-space-96, 384px);padding-left:var(--rtk-space-9, 36px);padding-right:var(--rtk-space-9, 36px);padding-top:var(--rtk-space-10, 40px);padding-bottom:var(--rtk-space-10, 40px)}header{margin-bottom:var(--rtk-space-8, 32px);display:flex;align-items:center;gap:var(--rtk-space-2, 8px);font-size:24px;font-weight:600}.channel-name-input{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-3, 12px);font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:1.25;outline:2px solid transparent;outline-offset:2px}.channel-name-input:focus{outline-width:2px;outline-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}footer{margin-top:var(--rtk-space-5, 20px);display:flex;justify-content:flex-end}.member{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding:var(--rtk-space-2, 8px)}.member rtk-avatar{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.input-container{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:1.25;outline:2px solid transparent;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5);border-radius:var(--rtk-border-radius-sm, 4px)}.input-container .members{margin:var(--rtk-space-0, 0px);max-height:var(--rtk-space-28, 112px);border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);list-style-type:none;display:flex;flex-wrap:wrap;gap:var(--rtk-space-1, 4px);cursor:text;font-size:16px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));overflow-y:auto;min-height:var(--rtk-space-7, 28px)}.input-container .pill{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.input-container .pill rtk-avatar{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);font-size:14px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.input-container .pill span{max-width:var(--rtk-space-32, 128px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-container .pill rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);cursor:pointer}.input-container input{width:var(--rtk-space-24, 96px);border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-1, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;font-size:16px;line-height:1.25rem}.input-container input.wide-input{width:100%}.search-results{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-1, 4px);max-height:var(--rtk-space-28, 112px);width:100%;padding:var(--rtk-space-0, 0px);position:absolute;list-style-type:none;overflow-y:auto;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-md, 8px);--tw-border-spacing-x:var(--rtk-space-2, 8px);--tw-border-spacing-y:var(--rtk-space-2, 8px);border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-style:solid;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.search-results .member{cursor:pointer}.search-results .member rtk-avatar{color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.search-results .member:hover,.search-results .member.selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-700, 2 70 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}";
6
- const RtkChannelCreatorStyle0 = rtkChannelCreatorCss;
7
-
8
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
11
- r = Reflect.decorate(decorators, target, key, desc);
12
- else
13
- for (var i = decorators.length - 1; i >= 0; i--)
14
- if (d = decorators[i])
15
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17
- };
18
- const RtkChannelCreator = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- this.stateUpdate = createEvent(this, "rtkStateUpdate", 7);
22
- this.switchChannel = createEvent(this, "switchChannel", 7);
23
- /** Language */
24
- this.t = useLanguage();
25
- /** Icon pack */
26
- this.iconPack = defaultIconPack;
27
- this.channelName = '';
28
- this.searchQuery = '';
29
- this.step = 1;
30
- this.loading = false;
31
- this.selectedMemberIds = new Set();
32
- this.focusedMemberIndex = -1;
33
- this.showAllMembersList = false;
34
- this.allMembers = new Map();
35
- this.inputTextRef = null;
36
- this.searchInputTextRef = null;
37
- this.focusOnSearch = (selectText = false) => {
38
- this.focusedMemberIndex = -1;
39
- writeTask(() => {
40
- var _a, _b;
41
- (_a = this.searchInputTextRef) === null || _a === void 0 ? void 0 : _a.focus();
42
- if (selectText)
43
- (_b = this.searchInputTextRef) === null || _b === void 0 ? void 0 : _b.select();
44
- });
45
- };
46
- this.onClickHandler = async () => {
47
- if (this.channelName.length === 0)
48
- return;
49
- if (this.step === 1) {
50
- const members = this.meeting.participants.all.toArray();
51
- const selfId = this.meeting.self.userId;
52
- const nonSelfMembers = members.filter((member) => member.userId !== selfId);
53
- nonSelfMembers.forEach((member) => this.allMembers.set(member.userId, member));
54
- this.step = 2;
55
- this.focusOnSearch();
56
- return;
57
- }
58
- // step 2 - add members and create channel
59
- await this.createChannel();
60
- };
61
- this.createChannel = async () => {
62
- const members = Array.from(this.selectedMemberIds);
63
- const newChannel = await this.meeting.chat.createChannel(this.channelName, members, {
64
- displayPictureUrl: '',
65
- visibility: 'public',
66
- isDirectMessage: false,
67
- });
68
- this.switchChannel.emit(newChannel.id);
69
- this.stateUpdate.emit({ activeChannelCreator: false });
70
- };
71
- this.onMemberAdd = (id) => {
72
- this.showAllMembersList = false;
73
- this.selectedMemberIds.add(id);
74
- this.searchQuery = '';
75
- this.focusOnSearch();
76
- };
77
- this.keyDownHandler = (e, filteredMembers) => {
78
- if (e.key === 'ArrowDown') {
79
- this.focusedMemberIndex = Math.min(this.focusedMemberIndex + 1, filteredMembers.length - 1);
80
- }
81
- else if (e.key === 'ArrowUp') {
82
- if (this.focusedMemberIndex === -1)
83
- return;
84
- if (this.focusedMemberIndex === 0) {
85
- this.focusOnSearch(true);
86
- return;
87
- }
88
- this.focusedMemberIndex = Math.max(this.focusedMemberIndex - 1, 0);
89
- }
90
- else if (e.key === 'Enter') {
91
- this.onMemberAdd(filteredMembers[this.focusedMemberIndex].userId);
92
- }
93
- else if (e.key === 'Backspace') {
94
- if (this.searchQuery.length !== 0)
95
- return;
96
- if (this.selectedMemberIds.size === 0)
97
- return;
98
- const lastMemberId = Array.from(this.selectedMemberIds.values()).at(-1);
99
- this.selectedMemberIds.delete(lastMemberId);
100
- forceUpdate(this.$el);
101
- }
102
- };
103
- this.renderMemberSelector = () => {
104
- const filteredMembers = Array.from(this.allMembers.values()).filter((member) => !this.selectedMemberIds.has(member.userId) &&
105
- member.name.toLowerCase().includes(this.searchQuery.toLowerCase()));
106
- const selectedMembers = Array.from(this.selectedMemberIds.values()).map((id) => this.allMembers.get(id));
107
- const disableInput = this.selectedMemberIds.size === this.allMembers.size;
108
- return (h("div", { class: "input-container" }, h("ul", { class: "members scrollbar", onClick: () => {
109
- var _a;
110
- (_a = this.searchInputTextRef) === null || _a === void 0 ? void 0 : _a.focus();
111
- } }, selectedMembers.map((member) => (h("li", { class: "pill" }, h("rtk-avatar", { participant: {
112
- name: member.name,
113
- picture: member.picture,
114
- }, size: "sm" }), h("span", null, member.name), h("rtk-icon", { icon: this.iconPack.dismiss, onClick: () => {
115
- this.selectedMemberIds.delete(member.userId);
116
- forceUpdate(this.$el);
117
- this.focusOnSearch();
118
- } })))), !disableInput && (h("input", { type: "text", ref: (el) => (this.searchInputTextRef = el), value: this.searchQuery, placeholder: this.selectedMemberIds.size === 0 ? this.t('chat.member_name') : '', class: {
119
- 'wide-input': this.selectedMemberIds.size === 0,
120
- }, onInput: (e) => {
121
- this.searchQuery = e.target.value.trim();
122
- }, onClick: () => {
123
- this.showAllMembersList = !this.showAllMembersList;
124
- }, onKeyDown: (e) => this.keyDownHandler(e, filteredMembers) }))), (this.searchQuery.length !== 0 || this.showAllMembersList) && (h("ul", { class: "search-results" }, filteredMembers.map((member, index) => (h("li", { class: { member: true, selected: index === this.focusedMemberIndex }, onClick: () => this.onMemberAdd(member.userId), ref: ($li) => {
125
- if (index === this.focusedMemberIndex) {
126
- writeTask(() => {
127
- if ($li)
128
- $li.scrollIntoView({ behavior: 'smooth', block: 'end', inline: 'nearest' });
129
- });
130
- }
131
- } }, h("rtk-avatar", { participant: {
132
- name: member.name,
133
- picture: member.picture,
134
- }, size: "sm" }), h("span", null, member.name)))), filteredMembers.length === 0 && (h("li", { class: "member" }, h("span", null, this.t('chat.error.empty_results'))))))));
135
- };
136
- }
137
- componentDidLoad() {
138
- var _a;
139
- (_a = this.inputTextRef) === null || _a === void 0 ? void 0 : _a.focus();
140
- }
141
- render() {
142
- return (h(Host, { key: '0e938e24a3838a8b3cff8be5f8f56e0e828a656a' }, h("header", { key: 'b0aed03cea09e2105feee1bbfd1acad453cc924e' }, this.step === 1 ? this.t('chat.new_channel') : this.t('chat.add_members')), this.step === 1 && (h("input", { key: 'f252b9a1d899fa189837d6dd44097ee3e132907b', class: "channel-name-input", type: "text", placeholder: this.t('chat.channel_name'), ref: (el) => (this.inputTextRef = el), onInput: (e) => {
143
- this.channelName = e.target.value.trim();
144
- } })), this.step === 2 && this.renderMemberSelector(), h("footer", { key: '4dc3bc442c35be9c21d5c0a510aac74f8f94bc6a' }, h("rtk-button", { key: 'de530ede30a33ae9cf14c155cbf3b53d25d434ae', kind: "button", size: "lg", disabled: this.channelName.length === 0, onClick: this.onClickHandler }, this.step === 1 ? this.t('chat.add_members') : this.t('create')))));
145
- }
146
- get $el() { return getElement(this); }
147
- };
148
- __decorate([
149
- SyncWithStore()
150
- ], RtkChannelCreator.prototype, "meeting", void 0);
151
- __decorate([
152
- SyncWithStore()
153
- ], RtkChannelCreator.prototype, "t", void 0);
154
- __decorate([
155
- SyncWithStore()
156
- ], RtkChannelCreator.prototype, "iconPack", void 0);
157
- RtkChannelCreator.style = RtkChannelCreatorStyle0;
158
-
159
- export { RtkChannelCreator as rtk_channel_creator };
@@ -1,45 +0,0 @@
1
- import { r as registerInstance, h, H as Host } from './index-c1fb98bb.js';
2
- import { i as useLanguage, e as defaultIconPack } from './ui-store-12132d9c.js';
3
- import { S as SyncWithStore } from './index-6eb882e7.js';
4
-
5
- const rtkChannelDetailsCss = ":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{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));display:flex;flex-direction:column;width:var(--rtk-space-72, 288px);padding-top:var(--rtk-space-5, 20px);padding-bottom:var(--rtk-space-5, 20px);padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px)}header{font-size:20px}rtk-spinner{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-10, 40px);margin-left:auto;margin-right:auto}ul{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-6, 24px);margin-bottom:var(--rtk-space-4, 16px);height:var(--rtk-space-48, 192px);padding:var(--rtk-space-0, 0px);overflow-y:auto;list-style-type:none;display:flex;flex-direction:column;gap:var(--rtk-space-2, 8px)}ul li{margin-right:var(--rtk-space-2, 8px);display:flex;align-items:center;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}ul li:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}ul li rtk-avatar{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}";
6
- const RtkChannelDetailsStyle0 = rtkChannelDetailsCss;
7
-
8
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
11
- r = Reflect.decorate(decorators, target, key, desc);
12
- else
13
- for (var i = decorators.length - 1; i >= 0; i--)
14
- if (d = decorators[i])
15
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17
- };
18
- const RtkChannelDetails = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- /** Language */
22
- this.t = useLanguage();
23
- /** Icon pack */
24
- this.iconPack = defaultIconPack;
25
- /** List of channel members */
26
- this.members = [];
27
- }
28
- renderMembers() {
29
- return (h("ul", { class: "scrollbar" }, this.members.map((member) => {
30
- return (h("li", null, h("rtk-avatar", { participant: { name: member.name, picture: member.picture }, size: "sm" }), h("span", null, member.name)));
31
- })));
32
- }
33
- render() {
34
- return (h(Host, { key: '0d50bc8ecef99900be123c21754cc7e865425c65' }, h("header", { key: '4b595171c0c7f10835230d7ed66508d5b2412ac4' }, this.t('chat.channel_members')), this.renderMembers()));
35
- }
36
- };
37
- __decorate([
38
- SyncWithStore()
39
- ], RtkChannelDetails.prototype, "t", void 0);
40
- __decorate([
41
- SyncWithStore()
42
- ], RtkChannelDetails.prototype, "iconPack", void 0);
43
- RtkChannelDetails.style = RtkChannelDetailsStyle0;
44
-
45
- export { RtkChannelDetails as rtk_channel_details };
@@ -1,79 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-c1fb98bb.js';
2
- import { e as defaultIconPack, i as useLanguage } from './ui-store-12132d9c.js';
3
- import { S as SyncWithStore } from './index-6eb882e7.js';
4
-
5
- const rtkChannelHeaderCss = "header{box-sizing:border-box;height:var(--rtk-space-16, 64px);width:100%;padding:var(--rtk-space-4, 16px);display:flex;justify-content:space-between;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-left-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-bottom-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-border-opacity))}header.searching{justify-content:flex-end}header.searching .channel-details{display:none}header .channel-details{display:flex;flex-grow:1;flex-direction:column;justify-content:center;height:var(--rtk-space-9, 36px);width:var(--rtk-space-1, 4px)}header .channel-details .name{font-weight:500}header .channel-details .members{margin-top:var(--rtk-space-0\\.5, 2px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}header .channel-tools{display:flex;flex-shrink:0;justify-content:flex-end;gap:var(--rtk-space-1, 4px);min-width:var(--rtk-space-24, 96px)}header .channel-tools rtk-tooltip{height:var(--rtk-space-8, 32px);width:var(--rtk-space-10, 40px);display:flex}header .search-input{height:var(--rtk-space-8, 32px);width:var(--rtk-space-48, 192px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header .name{font-size:16px}header .br-primary-btn{background-color:transparent}header .br-primary-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}@media (orientation: landscape) and (min-width: 400px){header.searching .channel-details{display:flex}}.back-btn{margin-right:var(--rtk-space-3, 12px)}";
6
- const RtkChannelHeaderStyle0 = rtkChannelHeaderCss;
7
-
8
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
9
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
10
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
11
- r = Reflect.decorate(decorators, target, key, desc);
12
- else
13
- for (var i = decorators.length - 1; i >= 0; i--)
14
- if (d = decorators[i])
15
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
16
- return c > 3 && r && Object.defineProperty(target, key, r), r;
17
- };
18
- const RtkChannelHeader = class {
19
- constructor(hostRef) {
20
- registerInstance(this, hostRef);
21
- this.search = createEvent(this, "search", 7);
22
- this.searchDismissed = createEvent(this, "searchDismissed", 7);
23
- this.back = createEvent(this, "back", 7);
24
- /** Icon pack */
25
- this.iconPack = defaultIconPack;
26
- /** Language */
27
- this.t = useLanguage();
28
- this.showChannelDetailsDialog = false;
29
- this.showSearchBar = false;
30
- this.members = [];
31
- /** Show back button */
32
- this.showBackButton = false;
33
- }
34
- onChannelChanged() {
35
- if (this.$searchInput)
36
- this.$searchInput.value = '';
37
- this.showSearchBar = false;
38
- if (!this.channel.isDirectMessage) {
39
- this.meeting.chat.getChannelMembers(this.channel.id).then((members) => {
40
- this.members = members;
41
- });
42
- }
43
- }
44
- connectedCallback() {
45
- this.onChannelChanged();
46
- }
47
- renderChannelDetails() {
48
- return (h("rtk-dialog", { open: true, onRtkDialogClose: () => {
49
- this.showChannelDetailsDialog = false;
50
- }, iconPack: this.iconPack, t: this.t }, h("rtk-channel-details", { members: this.members, channel: this.channel })));
51
- }
52
- render() {
53
- if (!this.channel) {
54
- return null;
55
- }
56
- return (h(Host, null, this.showChannelDetailsDialog && this.renderChannelDetails(), h("header", { class: {
57
- searching: this.showSearchBar,
58
- } }, this.showBackButton && (h("rtk-button", { kind: "icon", variant: "secondary", class: "back-btn", onClick: () => {
59
- this.back.emit();
60
- } }, h("rtk-icon", { icon: this.iconPack.chevron_left }))), h("div", { class: "channel-details" }, h("span", { class: "name" }, this.channel.displayName), !this.channel.isDirectMessage && (h("span", { class: "members" }, this.members.map((member) => member.name).join(', ')))), h("div", { class: "channel-tools" }, !this.channel.isDirectMessage && (h("rtk-tooltip", { label: this.t('chat.channel_members'), variant: "primary" }, h("rtk-button", { kind: "button", variant: "secondary", size: "md", onClick: () => {
61
- this.showChannelDetailsDialog = !this.showChannelDetailsDialog;
62
- }, class: "br-primary-btn" }, h("rtk-icon", { icon: this.iconPack.people }))))))));
63
- }
64
- static get watchers() { return {
65
- "channel": ["onChannelChanged"]
66
- }; }
67
- };
68
- __decorate([
69
- SyncWithStore()
70
- ], RtkChannelHeader.prototype, "meeting", void 0);
71
- __decorate([
72
- SyncWithStore()
73
- ], RtkChannelHeader.prototype, "iconPack", void 0);
74
- __decorate([
75
- SyncWithStore()
76
- ], RtkChannelHeader.prototype, "t", void 0);
77
- RtkChannelHeader.style = RtkChannelHeaderStyle0;
78
-
79
- export { RtkChannelHeader as rtk_channel_header };
@@ -1,143 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host } from './index-c1fb98bb.js';
2
- import { e as defaultIconPack, i as useLanguage } from './ui-store-12132d9c.js';
3
- import { S as SyncWithStore } from './index-6eb882e7.js';
4
- import { T as TextMessageView } from './TextMessage-0d8be8c5.js';
5
- import './chat-b2bea75f.js';
6
-
7
- const rtkChannelSelectorUiCss = ".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\n var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex}.container{display:flex;height:100%;width:var(--rtk-space-96, 384px);flex-direction:column;position:absolute;--tw-translate-x:calc(var(--rtk-space-96, 384px) * -1);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-top-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-sm, 1px);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-right-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-border-opacity));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}@keyframes fade{0%{opacity:0}100%{opacity:1}}.overlay-container{width:100vw;--tw-translate-x:var(--rtk-space-96, 384px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;animation:fade 0.8s}.overlay-container .sidebar-btn{position:static;padding:var(--rtk-space-4, 16px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.sidebar-btn{position:absolute;right:calc(var(--rtk-space-9, 36px) * -1);top:var(--rtk-space-4, 16px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-7, 28px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-sm, 4px)}@media (orientation: landscape) and (min-width: 400px){.container{position:static;--tw-translate-x:var(--rtk-space-0, 0px);transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sidebar-btn,.overlay-container{display:none}}.search-wrapper{display:flex;align-items:center;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-2, 8px);border-left-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-bottom-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-border-opacity))}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);height:var(--rtk-space-8, 32px);width:100%}.search .search-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);padding:var(--rtk-space-2, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));border-top-right-radius:var(--rtk-border-radius-sm, 4px);border-bottom-right-radius:var(--rtk-border-radius-sm, 4px)}.search input{box-sizing:border-box;width:100%;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;font-size:14px;line-height:1.25rem}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input{border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px)}.channel-container{box-sizing:border-box;display:flex;flex-direction:column;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);overflow-y:scroll}.channel-container .channel{display:flex;align-items:center;justify-content:space-between;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px);border-left-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}.channel-container .channel:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.channel-container .channel:hover .latest-msg-time,.channel-container .channel:hover .latest-msg,.channel-container .channel:hover .latest-msg.new{color:rgb(var(--rtk-colors-text-on-brand-700, var(--rtk-colors-text-700, 255 255 255 / 0.64)))}.channel-container .channel-display{display:flex;gap:var(--rtk-space-2, 8px);align-self:center;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-0, 0px)}.channel-container .channel-display rtk-avatar{height:var(--rtk-space-9, 36px);width:var(--rtk-space-9, 36px);flex-shrink:0;font-size:12px}.channel-container .channel-display rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-shrink:0;padding:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.channel-container .channel-card{width:100%;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-1, 4px)}.channel-container .channel-card .channel-name{max-width:var(--rtk-space-60, 240px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500}.channel-container .channel-card .latest-msg{margin:var(--rtk-space-0, 0px);max-width:var(--rtk-space-56, 224px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.channel-container .channel-card .latest-msg.new{font-weight:200;font-style:italic;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.channel-container .channel-card .latest-msg-time{font-size:12px;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.channel-container .channel-meta{width:var(--rtk-space-12, 48px);display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:var(--rtk-space-1\\.5, 6px);font-size:12px;font-weight:600}.channel-container .new-msgs-count{height:var(--rtk-space-4, 16px);min-width:var(--rtk-space-4, 16px);padding-top:1px;padding-bottom:1px;padding-left:2px;padding-right:2px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));border-radius:var(--rtk-border-radius-sm, 4px);text-align:center;font-size:12px}.channel-container .selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.channel-container .selected .latest-msg-time,.channel-container .selected .latest-msg,.channel-container .selected .latest-msg.new{color:rgb(var(--rtk-colors-text-on-brand-700, var(--rtk-colors-text-700, 255 255 255 / 0.64)))}.channel-container .highlight .channel-title span{font-weight:700}.latest-msg p{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-1, 4px);display:inline-block}.latest-msg blockquote{display:none}.recent-message-row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;justify-content:space-between}";
8
- const RtkChannelSelectorUiStyle0 = rtkChannelSelectorUiCss;
9
-
10
- var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
11
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
12
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
13
- r = Reflect.decorate(decorators, target, key, desc);
14
- else
15
- for (var i = decorators.length - 1; i >= 0; i--)
16
- if (d = decorators[i])
17
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
20
- const RtkChannelSelectorUi = class {
21
- constructor(hostRef) {
22
- registerInstance(this, hostRef);
23
- this.channelChanged = createEvent(this, "channelChanged", 7);
24
- /** Icon pack */
25
- this.iconPack = defaultIconPack;
26
- /** Language */
27
- this.t = useLanguage();
28
- /** show recent message in channel */
29
- this.showRecentMessage = false;
30
- this.isHidden = false;
31
- this.searchQuery = '';
32
- this.handleResize = (e) => {
33
- this.isHidden = !e.matches;
34
- };
35
- this.channelSelected = (channelId) => {
36
- this.channelChanged.emit(channelId);
37
- this.onRevealClicked();
38
- };
39
- this.onSearchInput = (e) => {
40
- this.searchQuery = e.target.value;
41
- };
42
- this.onRevealClicked = () => {
43
- if (this.matchMedia.matches)
44
- return;
45
- this.isHidden = !this.isHidden;
46
- };
47
- this.renderChannelDisplayPic = (channel) => {
48
- const hasDisplayPic = channel.displayPictureUrl && channel.displayPictureUrl.length !== 0;
49
- if (channel.isDirectMessage || hasDisplayPic) {
50
- return (h("div", { class: "channel-display" }, h("rtk-avatar", { participant: {
51
- name: channel.displayName,
52
- picture: channel.displayPictureUrl,
53
- } })));
54
- }
55
- else {
56
- return (h("div", { class: "channel-display" }, h("rtk-icon", { icon: this.iconPack.people, slot: "start" })));
57
- }
58
- };
59
- this.renderRecentMessage = (channel) => {
60
- if (!channel.latestMessage)
61
- return h("p", { class: "latest-msg new" }, this.t('chat.start_conversation'));
62
- let senderFragment = channel.isDirectMessage ? '' : `${channel.latestMessage.displayName}: `;
63
- if (channel.latestMessage.type === 'text') {
64
- return (h("p", { class: "latest-msg" }, senderFragment, h(TextMessageView, { message: channel.latestMessage.message })));
65
- }
66
- // non text
67
- let messageFragment = '';
68
- if (channel.latestMessage.type === 'image') {
69
- messageFragment = this.t('image');
70
- }
71
- else if (channel.latestMessage.type === 'file') {
72
- messageFragment = this.t('file');
73
- }
74
- return h("p", { class: "latest-msg" }, `${senderFragment}${messageFragment}`);
75
- };
76
- }
77
- connectedCallback() {
78
- this.matchMedia = window.matchMedia(`(orientation: landscape) and (min-width: 400px)`);
79
- this.matchMedia.addEventListener('change', this.handleResize);
80
- this.isHidden = !this.matchMedia.matches;
81
- }
82
- disconnectedCallback() {
83
- this.matchMedia.removeEventListener('change', this.handleResize);
84
- }
85
- componentDidRender() {
86
- this.$el.style.transform = this.isHidden ? 'translateX(-380px)' : 'translateX(0)';
87
- }
88
- getTimeLabel(message) {
89
- const messageDate = message.time;
90
- const today = new Date();
91
- const yesterday = new Date(today);
92
- yesterday.setDate(today.getDate() - 1);
93
- const firstDayOfWeek = new Date(today);
94
- firstDayOfWeek.setDate(today.getDate() - today.getDay() - 1);
95
- if (messageDate.toDateString() === today.toDateString()) {
96
- return messageDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
97
- }
98
- else if (messageDate.toDateString() === yesterday.toDateString()) {
99
- return this.t('date.yesteday');
100
- }
101
- else if (messageDate > firstDayOfWeek) {
102
- const weekdays = [
103
- 'date.sunday',
104
- 'date.monday',
105
- 'date.tuesday',
106
- 'date.wednesday',
107
- 'date.thursday',
108
- 'date.friday',
109
- 'date.saturday',
110
- ];
111
- return this.t(weekdays[messageDate.getDay()]);
112
- }
113
- else {
114
- return Intl.DateTimeFormat([], {
115
- day: '2-digit',
116
- month: '2-digit',
117
- year: '2-digit',
118
- }).format(messageDate);
119
- }
120
- }
121
- render() {
122
- return (h(Host, { key: '8c0e21c2edeb6cedf5e4332d361dd06fef80e2c3' }, h("div", { key: 'b4f0bdc102cf4a6bdaafe945ccacc65691cda6c8', class: "container", ref: (el) => (this.$el = el) }, this.isHidden && (h("rtk-button", { key: 'c0a4ffa6a83074b59d39827dd0d49db89d0bbe86', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: '51316a7127bc3f780d4110fe62a6114156859fef', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))), h("slot", { key: '9f62d231516e418d40e73ff4e7128c3df93fa516', name: "header" }), h("div", { key: 'e337d9c1c2599b894812d1f9d68740ddff45a417', class: "search-wrapper" }, h("div", { key: 'a4e60014174739d658cac4a8a2b4cc6170a718c3', class: "search" }, h("input", { key: 'e4b02408f7893c2ac6dc4d7f52dbafbd6acba59b', type: "search", autocomplete: "off", placeholder: this.t('chat.search_conversations'), onInput: this.onSearchInput }), h("rtk-icon", { key: 'ab9fd67f26aebf1062ed89d0411f00cd3a1ce30b', icon: this.iconPack.search, class: "search-icon" }))), h("div", { key: 'ac46c45d8f8ee6a93c04748e8eae278fecc9d2a9', class: "channel-container scrollbar", role: "list" }, this.channels
123
- .filter((channel) => this.searchQuery === '' || channel.displayName.includes(this.searchQuery))
124
- .map((channel) => {
125
- return (h("div", { class: {
126
- channel: true,
127
- selected: channel.id === this.selectedChannelId,
128
- highlight: !!channel.unreadCount,
129
- }, role: "listitem", onClick: () => {
130
- this.channelSelected(channel.id);
131
- } }, this.renderChannelDisplayPic(channel), h("div", { class: "channel-card", "is-direct-message": channel.isDirectMessage }, h("div", { class: 'recent-message-row' }, h("span", { class: "channel-name" }, channel.displayName), channel.latestMessage && (h("span", { class: "latest-msg-time" }, this.getTimeLabel(channel.latestMessage)))), h("div", { class: 'recent-message-row' }, this.renderRecentMessage(channel), channel.unreadCount > 0 && channel.id !== this.selectedChannelId ? (h("span", { class: "new-msgs-count" }, channel.unreadCount < 99 ? channel.unreadCount : '99+')) : null))));
132
- }))), !this.isHidden && (h("div", { key: '7c886fbae80b1248db515317cfcf525eb74ffa6b', class: "overlay-container" }, h("rtk-button", { key: 'f48116160f38d361ec4842dbe2a550a1154d0b00', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: '29f1f41eb90dddacf0ef6a42479d7468a03ee005', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))))));
133
- }
134
- };
135
- __decorate([
136
- SyncWithStore()
137
- ], RtkChannelSelectorUi.prototype, "iconPack", void 0);
138
- __decorate([
139
- SyncWithStore()
140
- ], RtkChannelSelectorUi.prototype, "t", void 0);
141
- RtkChannelSelectorUi.style = RtkChannelSelectorUiStyle0;
142
-
143
- export { RtkChannelSelectorUi as rtk_channel_selector_ui };
@@ -1,2 +0,0 @@
1
- var t=Object.defineProperty,e=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},n=(t,e)=>{t.__stencil__getHostRef=()=>e,e.t=t},o=(t,e)=>e in t,l=(t,e)=>(0,console.error)(t,e),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="http://www.w3.org/1999/xlink",u="undefined"!=typeof window?window:{},f={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},a=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),h=!1,p=[],v=[],m=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&f.o?w(b):f.raf(b))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){l(t)}t.length=0},b=()=>{y(p),y(v),(h=p.length>0)&&f.raf(b)},w=t=>a().then(t),$=m(v,!0),S=t=>"object"==(t=typeof t)||"function"===t;function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>j,map:()=>O,ok:()=>k,unwrap:()=>E,unwrapErr:()=>C});var k=t=>({isOk:!0,isErr:!1,value:t}),j=t=>({isOk:!1,isErr:!0,value:t});function O(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>k(t))):k(n)}if(t.isErr)return j(t.value);throw"should never get here"}var E=t=>{if(t.isOk)return t.value;throw t.value},C=t=>{if(t.isErr)return t.value;throw t.value},M=t=>{const e=R(t,"childNodes");t.tagName&&t.tagName.includes("-")&&t["s-cr"]&&"SLOT-FB"!==t.tagName&&x(e,t.tagName).forEach((t=>{1===t.nodeType&&"SLOT-FB"===t.tagName&&(t.hidden=!!F(t,P(t),!1).length)}));let n=0;for(n=0;n<e.length;n++){const t=e[n];1===t.nodeType&&R(t,"childNodes").length&&M(t)}};function x(t,e,n){let o,l=0,s=[];for(;l<t.length;l++){if(o=t[l],o["s-sr"]&&(!e||o["s-hn"]===e)&&(void 0===n||P(o)===n)&&(s.push(o),void 0!==n))return s;s=[...s,...x(o.childNodes,e,n)]}return s}var F=(t,e,n=!0)=>{const o=[];(n&&t["s-sr"]||!t["s-sr"])&&o.push(t);let l=t;for(;l=l.nextSibling;)P(l)!==e||!n&&l["s-sr"]||o.push(l);return o},N=(t,e)=>1===t.nodeType?null===t.getAttribute("slot")&&""===e||t.getAttribute("slot")===e:t["s-sn"]===e||""===e,P=t=>"string"==typeof t["s-sn"]?t["s-sn"]:1===t.nodeType&&t.getAttribute("slot")||void 0;function R(t,e){if("__"+e in t){const n=t["__"+e];return"function"!=typeof n?n:n.bind(t)}return"function"!=typeof t[e]?t[e]:t[e].bind(t)}var T,L,A=(t,e,...n)=>{let o=null,l=null,s=null,i=!1,r=!1;const c=[],u=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?u(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!S(o))&&(o+=""),i&&r?c[c.length-1].i+=o:c.push(i?D(null,o):o),r=i)};if(u(n),e){e.key&&(l=e.key),e.name&&(s=e.name);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,c,W);const f=D(t,null);return f.u=e,c.length>0&&(f.h=c),f.p=l,f.v=s,f},D=(t,e)=>({o:0,m:t,i:e,$:null,h:null,u:null,p:null,v:null}),U={},W={forEach:(t,e)=>t.map(_).forEach(e),map:(t,e)=>t.map(_).map(e).map(H)},_=t=>({vattrs:t.u,vchildren:t.h,vkey:t.p,vname:t.v,vtag:t.m,vtext:t.i}),H=t=>{if("function"==typeof t.vtag){const e={...t.vattrs};return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),A(t.vtag,e,...t.vchildren||[])}const e=D(t.vtag,t.vtext);return e.u=t.vattrs,e.h=t.vchildren,e.p=t.vkey,e.v=t.vname,e},B=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,z=t=>e(t).$hostElement$,I=(t,e,n)=>{const o=z(t);return{emit:t=>V(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},V=(t,e,n)=>{const o=f.ce(e,n);return t.dispatchEvent(o),o},Y=new WeakMap,q=t=>"sc-"+t.S,G=(t,e,n,l,s,i)=>{if(n===l)return;let r=o(t,e),a=e.toLowerCase();if("class"===e){const e=t.classList,o=K(n);let s=K(l);e.remove(...o.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!o.includes(t))))}else if("style"===e){for(const e in n)l&&null!=l[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in l)n&&l[e]===n[e]||(e.includes("-")?t.style.setProperty(e,l[e]):t.style[e]=l[e])}else if("key"===e);else if("ref"===e)l&&l(t);else if(r||"o"!==e[0]||"n"!==e[1]){const o=S(l);if((r||o&&null!==l)&&!s)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]==o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}let u=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(e=a,u=!0),null==l||!1===l?!1===l&&""!==t.getAttribute(e)||(u?t.removeAttributeNS(c,e):t.removeAttribute(e)):(!r||4&i||s)&&!o&&1===t.nodeType&&(l=!0===l?"":l,u?t.setAttributeNS(c,e,l):t.setAttribute(e,l))}else if(e="-"===e[2]?e.slice(3):o(u,a)?a.slice(2):a[2]+e.slice(3),n||l){const o=e.endsWith(Q);e=e.replace(X,""),n&&f.rel(t,e,n,o),l&&f.ael(t,e,l,o)}},J=/\s/,K=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(J):[]),Q="Capture",X=RegExp(Q+"$"),Z=(t,e,n)=>{const o=11===e.$.nodeType&&e.$.host?e.$.host:e.$,l=t&&t.u||{},s=e.u||{};for(const t of tt(Object.keys(l)))t in s||G(o,t,l[t],void 0,n,e.o);for(const t of tt(Object.keys(s)))G(o,t,l[t],s[t],n,e.o)};function tt(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var et=!1,nt=!1,ot=!1,lt=!1,st=(t,e,n)=>{var o;const l=e.h[n];let s,i,r,c=0;if(et||(ot=!0,"slot"===l.m&&(l.o|=l.h?2:1)),null!==l.i)s=l.$=u.document.createTextNode(l.i);else if(1&l.o)s=l.$=u.document.createTextNode(""),Z(null,l,lt);else{if(!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(s=l.$=u.document.createElement(!et&&2&l.o?"slot-fb":l.m),Z(null,l,lt),l.h)for(c=0;c<l.h.length;++c)i=st(t,l,c),i&&s.appendChild(i)}return s["s-hn"]=L,3&l.o&&(s["s-sr"]=!0,s["s-cr"]=T,s["s-sn"]=l.v||"",s["s-rf"]=null==(o=l.u)?void 0:o.ref,function(t){if(t.assignedElements||t.assignedNodes||!t["s-sr"])return;const e=e=>function(t){const n=[],o=this["s-sn"];(null==t?void 0:t.flatten)&&console.error("\n Flattening is not supported for Stencil non-shadow slots. \n You can use `.childNodes` to nested slot fallback content.\n If you have a particular use case, please open an issue on the Stencil repo.\n ");const l=this["s-cr"].parentElement;return(l.__childNodes?l.childNodes:(t=>{const e=[];for(let n=0;n<t.length;n++){const o=t[n]["s-nr"]||void 0;o&&o.isConnected&&e.push(o)}return e})(l.childNodes)).forEach((t=>{o===P(t)&&n.push(t)})),e?n.filter((t=>1===t.nodeType)):n}.bind(t);t.assignedElements=e(!0),t.assignedNodes=e(!1)}(s),r=t&&t.h&&t.h[n],r&&r.m===l.m&&t.$&&it(t.$,!1)),s},it=(t,e)=>{f.o|=1;const n=Array.from(t.__childNodes||t.childNodes);for(let t=n.length-1;t>=0;t--){const o=n[t];o["s-hn"]!==L&&o["s-ol"]&&(vt(ft(o).parentNode,o,ft(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,ot=!0),e&&it(o,e)}f.o&=-2},rt=(t,e,n,o,l,s)=>{let i,r=t["s-cr"]&&t["s-cr"].parentNode||t;for(r.shadowRoot&&r.tagName===L&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=st(null,n,l),i&&(o[l].$=i,vt(r,i,ft(e))))},ct=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.$;pt(e),t&&(nt=!0,t["s-ol"]?t["s-ol"].remove():it(t,!0),t.remove())}}},ut=(t,e,n=!1)=>t.m===e.m&&("slot"===t.m?t.v===e.v:n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),ft=t=>t&&t["s-ol"]||t,at=(t,e,n=!1)=>{const o=e.$=t.$,l=t.h,s=e.h,i=e.i;let r;null===i?(Z(t,e,lt),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,v=o[0],m=o[p];for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==v)v=o[++c];else if(null==m)m=o[--p];else if(ut(d,v,l))at(d,v,l),d=e[++r],v=o[++c];else if(ut(h,m,l))at(h,m,l),h=e[--a],m=o[--p];else if(ut(d,m,l))"slot"!==d.m&&"slot"!==m.m||it(d.$.parentNode,!1),at(d,m,l),vt(t,d.$,h.$.nextSibling),d=e[++r],m=o[--p];else if(ut(h,v,l))"slot"!==d.m&&"slot"!==m.m||it(h.$.parentNode,!1),at(h,v,l),vt(t,h.$,d.$),h=e[--a],v=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].p&&e[f].p===v.p){u=f;break}u>=0?(i=e[u],i.m!==v.m?s=st(e&&e[c],n,u):(at(i,v,l),e[u]=void 0,s=i.$),v=o[++c]):(s=st(e&&e[c],n,c),v=o[++c]),s&&vt(ft(d.$).parentNode,s,ft(d.$))}r>a?rt(t,null==o[p+1]?null:o[p+1].$,n,o,c,p):c>p&&ct(e,r,a)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),rt(o,null,e,s,0,s.length-1)):!n&&null!==l&&ct(l,0,l.length-1)):(r=o["s-cr"])?r.parentNode.textContent=i:t.i!==i&&(o.data=i)},dt=[],ht=t=>{let e,n,o;const l=t.__childNodes||t.childNodes;for(const t of l){if(t["s-sr"]&&(e=t["s-cr"])&&e.parentNode){n=e.parentNode.__childNodes||e.parentNode.childNodes;const l=t["s-sn"];for(o=n.length-1;o>=0;o--)if(e=n[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"])if(N(e,l)){let n=dt.find((t=>t.k===e));nt=!0,e["s-sn"]=e["s-sn"]||l,n?(n.k["s-sh"]=t["s-hn"],n.j=t):(e["s-sh"]=t["s-hn"],dt.push({j:t,k:e})),e["s-sr"]&&dt.map((t=>{N(t.k,e["s-sn"])&&(n=dt.find((t=>t.k===e)),n&&!t.j&&(t.j=n.j))}))}else dt.some((t=>t.k===e))||dt.push({k:e})}1===t.nodeType&&ht(t)}},pt=t=>{t.u&&t.u.ref&&t.u.ref(null),t.h&&t.h.map(pt)},vt=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),mt=(t,e)=>{if(e&&!t.O&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.O=()=>{e["s-p"].splice(n-1,1),o()})))}},yt=(t,e)=>{if(t.o|=16,!(4&t.o))return mt(t,t.C),$((()=>bt(t,e)));t.o|=512},bt=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.o|=256,t.M&&(t.M.map((([t,e])=>Mt(o,t,e,n))),t.M=void 0),l=Mt(o,"componentWillLoad",void 0,n)):l=Mt(o,"componentWillUpdate",void 0,n),l=wt(l,(()=>Mt(o,"componentWillRender",void 0,n))),wt(l,(()=>St(t,o,e)))},wt=(t,e)=>$t(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),$t=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,St=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.F,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=q(e),l=i.get(o);if(!u.document)return o;if(t=11===t.nodeType?t:u.document,l)if("string"==typeof l){let s,i=Y.get(t=t.head||t);if(i||Y.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.document.createElement("style"),s.innerHTML=l;const i=null!=(n=f.N)?n:g(u.document);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=r),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);kt(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Ot(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},gt=null,kt=(t,e,n,o)=>{try{gt=e,e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{var o,l,s,i;const r=t.$hostElement$,c=t.F,a=t.P||D(null,null),d=(t=>t&&t.m===U)(e)?e:A(null,null,e);if(L=r.tagName,c.R&&(d.u=d.u||{},c.R.map((([t,e])=>d.u[e]=r[t]))),n&&d.u)for(const t of Object.keys(d.u))r.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(d.u[t]=r[t]);if(d.m=null,d.o|=4,t.P=d,d.$=a.$=r.shadowRoot||r,et=!(!(1&c.o)||128&c.o),T=r["s-cr"],nt=!1,at(a,d,n),f.o|=1,ot){ht(d.$);for(const t of dt){const e=t.k;if(!e["s-ol"]&&u.document){const t=u.document.createTextNode("");t["s-nr"]=e,vt(e.parentNode,e["s-ol"]=t,e)}}for(const t of dt){const e=t.k,r=t.j;if(r){const t=r.parentNode;let n=r.nextSibling;{let s=null==(o=e["s-ol"])?void 0:o.previousSibling;for(;s;){let o=null!=(l=s["s-nr"])?l:null;if(o&&o["s-sn"]===e["s-sn"]&&t===(o.__parentNode||o.parentNode)){for(o=o.nextSibling;o===e||(null==o?void 0:o["s-sr"]);)o=null==o?void 0:o.nextSibling;if(!o||!o["s-nr"]){n=o;break}}s=s.previousSibling}}(!n&&t!==(e.__parentNode||e.parentNode)||(e.__nextSibling||e.nextSibling)!==n)&&e!==n&&(!e["s-hn"]&&e["s-ol"]&&(e["s-hn"]=e["s-ol"].parentNode.nodeName),vt(t,e,n),1===e.nodeType&&"SLOT-FB"!==e.tagName&&(e.hidden=null!=(s=e["s-ih"])&&s)),e&&"function"==typeof r["s-rf"]&&r["s-rf"](r)}else 1===e.nodeType&&(n&&(e["s-ih"]=null!=(i=e.hidden)&&i),e.hidden=!0)}}nt&&M(d.$),f.o&=-2,dt.length=0,T=void 0})(t,e,o)}catch(e){l(e,t.$hostElement$)}return gt=null,null},jt=()=>gt,Ot=t=>{const e=t.$hostElement$,n=t.t,o=t.C;Mt(n,"componentDidRender",void 0,e),64&t.o?Mt(n,"componentDidUpdate",void 0,e):(t.o|=64,xt(e),Mt(n,"componentDidLoad",void 0,e),t.T(e),o||Ct()),t.L(e),t.O&&(t.O(),t.O=void 0),512&t.o&&w((()=>yt(t,!1))),t.o&=-517},Et=t=>{{const n=e(t),o=n.$hostElement$.isConnected;return o&&2==(18&n.o)&&yt(n,!1),o}},Ct=()=>{w((()=>V(u,"appload",{detail:{namespace:"realtimekit-ui"}})))},Mt=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){l(t,o)}},xt=t=>t.classList.add("hydrated"),Ft=(t,n,o,s)=>{const i=e(t);if(!i)throw Error(`Couldn't find host element for "${s.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.A.get(n),u=i.o,f=i.t;if(o=B(o,s.D[n][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.A.set(n,o),f)){if(s.U&&128&u){const t=s.U[n];t&&t.map((t=>{try{f[t](o,c,n)}catch(t){l(t,r)}}))}if(2==(18&u)){if(f.componentShouldUpdate&&!1===f.componentShouldUpdate(o,c,n))return;yt(i,!1)}}},Nt=(t,n,o)=>{var l,s;const i=t.prototype;if(n.D||n.U||t.watchers){t.watchers&&!n.U&&(n.U=t.watchers);const r=Object.entries(null!=(l=n.D)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(n.D[t][0]|=2048),r&&(n.D[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&n.D[t][0]))return((t,n)=>e(this).A.get(n))(0,t);const o=e(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=e(this);if(r){const e=32&l?this[t]:i.$hostElement$[t];return void 0===e&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&e&&i.A.set(t,e),r.call(this,B(s,l)),void Ft(this,t,s=32&l?this[t]:i.$hostElement$[t],n)}{if(!(1&o&&4096&n.D[t][0]))return Ft(this,t,s,n),void(1&o&&!i.t&&i.W.then((()=>{4096&n.D[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const e=()=>{const e=i.t[t];!i.A.get(t)&&e&&i.A.set(t,e),i.t[t]=B(s,l),Ft(this,t,i.t[t],n)};i.t?e():i.W.then((()=>e()))}}})}else 1&o&&64&l&&Object.defineProperty(i,t,{value(...n){var o;const l=e(this);return null==(o=null==l?void 0:l._)?void 0:o.then((()=>{var e;return null==(e=l.t)?void 0:e[t](...n)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){f.jmp((()=>{var r;const c=o.get(t);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=e(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const e=o.t,i=null==(r=n.U)?void 0:r[t];null==i||i.forEach((n=>{null!=e[n]&&e[n].call(e,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.U)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,e])=>{var l;const s=e[1]||t;return o.set(s,t),512&e[0]&&(null==(l=n.R)||l.push([t,s])),s}))]))}}return t},Pt=(t,e)=>{Mt(t,"connectedCallback",void 0,e)},Rt=(t,e)=>{Mt(t,"disconnectedCallback",void 0,e||t)},Tt=(t,n={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],a=n.exclude||[],h=u.customElements,p=u.document.head,v=p.querySelector("meta[charset]"),m=u.document.createElement("style"),y=[];let b,w=!0;Object.assign(f,n),f.l=new URL(n.resourcesUrl||"./",u.document.baseURI).href;let $=!1;if(t.map((t=>{t[1].map((n=>{var o;const r={o:n[0],S:n[1],D:n[2],H:n[3]};4&r.o&&($=!0),r.D=n[2],r.H=n[3],r.R=[],r.U=null!=(o=n[4])?o:{};const p=r.S,v=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,e)=>{const n={o:0,$hostElement$:t,F:e,A:new Map};n._=new Promise((t=>n.L=t)),n.W=new Promise((t=>n.T=t)),t["s-p"]=[],t["s-rc"]=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,r),1&r.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.S}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open",delegatesFocus:!!(16&r.o)})}connectedCallback(){const t=e(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,At(this,t,r.H)),b&&(clearTimeout(b),b=null),w?y.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const n=e(t),o=n.F,r=()=>{};if(1&n.o)At(t,n,o.H),(null==n?void 0:n.t)?Pt(n.t,t):(null==n?void 0:n.W)&&n.W.then((()=>Pt(n.t,t)));else{n.o|=1,12&o.o&&(t=>{if(!u.document)return;const e=t["s-cr"]=u.document.createComment("");e["s-cn"]=!0,vt(t,e,t.firstChild)})(t);{let e=t;for(;e=e.parentNode||e.host;)if(e["s-p"]){mt(n,n.C=e);break}}o.D&&Object.entries(o.D).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.B){const i=((t,e)=>{const n=t.S.replace(/-/g,"_"),o=t.B;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{l(t,e.$hostElement$)}))
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(i&&"then"in i){const t=()=>{};o=await i,t()}else o=i;if(!o)throw Error(`Constructor for "${n.S}#${e.I}" was not found`);o.isProxied||(n.U=o.watchers,Nt(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){l(e,t)}e.o&=-9,e.o|=128,r(),Pt(e.t,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=q(n);if(!i.has(e)){const o=()=>{};((t,e,n)=>{let o=i.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,i.set(t,o)})(e,t,!!(1&n.o)),o()}}}const r=e.C,c=()=>yt(e,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(t,n,o)}r()}})(this)))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.o)){const n=e(t);n.V&&(n.V.map((t=>t())),n.V=void 0),(null==n?void 0:n.t)?Rt(n.t,t):(null==n?void 0:n.W)&&n.W.then((()=>Rt(n.t,t)))}Y.has(t)&&Y.delete(t),t.shadowRoot&&Y.has(t.shadowRoot)&&Y.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const n=e(this),o=y.findIndex((t=>t===this));o>-1&&y.splice(o,1),(null==(t=null==n?void 0:n.P)?void 0:t.$)instanceof Node&&!n.P.$.isConnected&&delete n.P.$}))}componentOnReady(){return e(this).W}};r.B=t[0],a.includes(p)||h.get(p)||(c.push(p),h.define(p,Nt(v,r,1)))}))})),c.length>0&&($&&(m.textContent+=r),m.textContent+=c.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(o=f.N)?o:g(u.document);null!=t&&m.setAttribute("nonce",t),p.insertBefore(m,v?v.nextSibling:p.firstChild)}w=!1,y.length?y.map((t=>t.connectedCallback())):f.jmp((()=>b=setTimeout(Ct,30)))},Lt=(t,e)=>e,At=(t,e,n)=>{n&&u.document&&n.map((([n,o,l])=>{const s=Ut(u.document,t,n),i=Dt(e,l),r=Wt(n);f.ael(s,o,i,r),(e.V=e.V||[]).push((()=>f.rel(s,o,i,r)))}))},Dt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.M=t.M||[]).push([e,n])}catch(e){l(e,t.$hostElement$)}},Ut=(t,e,n)=>8&n?u:e,Wt=t=>({passive:!!(1&t),capture:!!(2&t)}),_t=t=>f.N=t;export{Lt as F,U as H,z as a,Tt as b,I as c,Et as f,jt as g,A as h,a as p,n as r,_t as s,$ as w}
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as s,H as a}from"./p-0ee570cd.js";import{e,i as n}from"./p-25c4d10f.js";import{a as r}from"./p-11a469d9.js";import{S as h}from"./p-9b550ec4.js";var o=function(t,i,s,a){var e,n=arguments.length,r=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,a);else for(var h=t.length-1;h>=0;h--)(e=t[h])&&(r=(n<3?e(r):n>3?e(i,s,r):e(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=n(),this.participantsActive=!1,this.waitlistedParticipants=[],this.stageRequestedParticipants=[],this.badgeCount=0,this.canViewParticipants=!1,this.updateStageRequests=async t=>{var i,s,a;t||(t=null!==(a=null===(s=null===(i=this.meeting.stage)||void 0===i?void 0:i.getAccessRequests())||void 0===s?void 0:s.stageRequests)&&void 0!==a?a:[]),this.stageRequestedParticipants=t,this.stageRequestedParticipants="REQUESTED_TO_JOIN_STAGE"===this.meeting.stage.status?[this.meeting.self,...t]:t,this.updateBadgeCount()},this.updateBadgeCount=()=>{this.badgeCount=this.waitlistedParticipants.length+this.stageRequestedParticipants.length},this.updateCanView=()=>{this.canViewParticipants=r(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s;this.meeting&&(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),null===(s=this.meeting.stage)||void 0===s||s.removeListener("stageAccessRequestUpdate",this.updateStageRequests))}meetingChanged(t){var i;t&&(this.canViewParticipants=r(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),t.self.permissions.acceptWaitingRequests&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t],this.updateBadgeCount())},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id)),this.updateBadgeCount()},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&(this.updateStageRequests(),null==t||t.stage.on("stageAccessRequestUpdate",this.updateStageRequests)),this.updateBadgeCount())}statesChanged(t){null!=t&&(this.participantsActive=!0===t.activeSidebar&&"participants"===t.sidebar)}toggleParticipantsTab(){const t=this.states;this.participantsActive=!((null==t?void 0:t.activeSidebar)&&"participants"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.participantsActive,sidebar:this.participantsActive?"participants":void 0,activeMoreMenu:!1,activeAI:!1})}handleParticipantsActiveChange(){this.participantsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewParticipants)return s(a,{"data-hidden":!0});const t=this.t("participants");return s(a,{title:t},0!==this.badgeCount&&!this.participantsActive&&s("div",{class:"waiting-participants-count",part:"waiting-participants-count"},s("span",null,this.badgeCount<=100?this.badgeCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.participantsActive},onClick:()=>this.toggleParticipantsTab(),icon:this.iconPack.participants,label:t,variant:this.variant}))}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],participantsActive:["handleParticipantsActiveChange"]}}};o([h()],c.prototype,"meeting",void 0),o([h()],c.prototype,"states",void 0),o([h()],c.prototype,"iconPack",void 0),o([h()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.waiting-participants-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .waiting-participants-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}";export{c as rtk_participants_toggle}