@cloudflare/realtimekit-ui 2.2.0-staging.3 → 2.2.0-staging.5

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 (670) hide show
  1. package/dist/browser.js +1 -1
  2. package/dist/cjs/{TextMessage-BA97TnvX.js → TextMessage-C4d86cID.js} +1 -1
  3. package/dist/cjs/{chat-NY588mAE.js → chat-_Z7QVSxx.js} +1 -1
  4. package/dist/cjs/{config-Chzt-h7l.js → config-C9cIVa2D.js} +5 -11
  5. package/dist/cjs/{debounce-CoFZKdWb.js → debounce-BaLnYFmQ.js} +1 -1
  6. package/dist/cjs/{index-BeKaBV5F.js → index-CSL0ebii.js} +1 -1
  7. package/dist/cjs/index.cjs.js +18 -10
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{ui-kit-metadata-zBJ8NnVE.js → merge-B4v4sEV3.js} +1 -290
  10. package/dist/cjs/realtimekit-ui.cjs.js +1 -1
  11. package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
  12. package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
  13. package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
  14. package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
  15. package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
  16. package/dist/cjs/rtk-audio-visualizer_3.cjs.entry.js +5 -6
  17. package/dist/cjs/rtk-avatar_26.cjs.entry.js +13 -12
  18. package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
  19. package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
  20. package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
  21. package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
  22. package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
  23. package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
  24. package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
  25. package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
  26. package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
  27. package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
  28. package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
  29. package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
  30. package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
  31. package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
  32. package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
  33. package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
  34. package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
  35. package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
  36. package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
  37. package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
  38. package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
  39. package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
  40. package/dist/cjs/rtk-file-message_3.cjs.entry.js +6 -6
  41. package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
  42. package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
  43. package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
  44. package/dist/cjs/rtk-header.cjs.entry.js +2 -2
  45. package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
  46. package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
  47. package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
  48. package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
  49. package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
  50. package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
  51. package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
  52. package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
  53. package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
  54. package/dist/cjs/rtk-mic-toggle.cjs.entry.js +4 -5
  55. package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
  56. package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
  57. package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
  58. package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
  59. package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
  60. package/dist/cjs/rtk-notification.cjs.entry.js +8 -6
  61. package/dist/cjs/rtk-notifications.cjs.entry.js +195 -205
  62. package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
  63. package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
  64. package/dist/cjs/rtk-participant_2.cjs.entry.js +5 -5
  65. package/dist/cjs/rtk-participants-audio.cjs.entry.js +3 -4
  66. package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
  67. package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
  68. package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
  69. package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
  70. package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
  71. package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
  72. package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
  73. package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
  74. package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
  75. package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
  76. package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
  77. package/dist/cjs/rtk-screenshare-view.cjs.entry.js +347 -34
  78. package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
  79. package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
  80. package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
  81. package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
  82. package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
  83. package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
  84. package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
  85. package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
  86. package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
  87. package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
  88. package/dist/cjs/rtk-stage.cjs.entry.js +3 -3
  89. package/dist/cjs/rtk-switch.cjs.entry.js +3 -3
  90. package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
  91. package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
  92. package/dist/cjs/rtk-ui-provider.cjs.entry.js +6 -5
  93. package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
  94. package/dist/cjs/ui-kit-metadata-BjBLJPVs.js +291 -0
  95. package/dist/cjs/{ui-store-DSyXGfDZ.js → ui-store-XQk2zaMR.js} +225 -8
  96. package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
  97. package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
  98. package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
  99. package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
  100. package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
  101. package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
  102. package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
  103. package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
  104. package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
  105. package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
  106. package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
  107. package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
  108. package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
  109. package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
  110. package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
  111. package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
  112. package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
  113. package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
  114. package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
  115. package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
  116. package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
  117. package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
  118. package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +1 -1
  119. package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
  120. package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
  121. package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
  122. package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
  123. package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
  124. package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
  125. package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
  126. package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
  127. package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
  128. package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
  129. package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
  130. package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
  131. package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
  132. package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
  133. package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
  134. package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
  135. package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
  136. package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
  137. package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
  138. package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
  139. package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
  140. package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
  141. package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
  142. package/dist/collection/components/rtk-header/rtk-header.js +1 -1
  143. package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
  144. package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
  145. package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
  146. package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
  147. package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
  148. package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
  149. package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
  150. package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
  151. package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
  152. package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
  153. package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
  154. package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
  155. package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
  156. package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
  157. package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
  158. package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
  159. package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
  160. package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
  161. package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
  162. package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
  163. package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
  164. package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
  165. package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
  166. package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
  167. package/dist/collection/components/rtk-notification/rtk-notification.js +5 -3
  168. package/dist/collection/components/rtk-notifications/rtk-notifications.js +194 -166
  169. package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
  170. package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
  171. package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
  172. package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
  173. package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
  174. package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
  175. package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
  176. package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
  177. package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
  178. package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
  179. package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
  180. package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
  181. package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
  182. package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
  183. package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +1 -1
  184. package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
  185. package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
  186. package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
  187. package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
  188. package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
  189. package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
  190. package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
  191. package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
  192. package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
  193. package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
  194. package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
  195. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +210 -0
  196. package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +371 -37
  197. package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
  198. package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
  199. package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +2 -2
  200. package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +1 -1
  201. package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +1 -1
  202. package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +1 -1
  203. package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
  204. package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +1 -1
  205. package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
  206. package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
  207. package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
  208. package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
  209. package/dist/collection/components/rtk-stage/rtk-stage.js +2 -2
  210. package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
  211. package/dist/collection/components/rtk-switch/rtk-switch.js +2 -2
  212. package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
  213. package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +2 -2
  214. package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -3
  215. package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
  216. package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
  217. package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
  218. package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
  219. package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
  220. package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
  221. package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +2 -2
  222. package/dist/collection/lib/default-ui-config.js +2 -8
  223. package/dist/collection/lib/lang/default-language.js +6 -0
  224. package/dist/collection/lib/notification.js +56 -2
  225. package/dist/collection/types/ui-config/config.js +101 -13
  226. package/dist/collection/utils/config.js +3 -8
  227. package/dist/collection/utils/notification.js +12 -3
  228. package/dist/collection/utils/ui-kit-metadata.js +1 -1
  229. package/dist/components/index.js +1 -1
  230. package/dist/components/{p-DC-3Hg9I.js → p-0DTiM_we.js} +1 -1
  231. package/dist/components/{p-kGPSVdob.js → p-1C_TdKq0.js} +1 -1
  232. package/dist/components/{p-CHSH0L_g.js → p-1J7p9yTO.js} +1 -1
  233. package/dist/components/{p-CGVMdadq.js → p-453sV-Ir.js} +1 -1
  234. package/dist/components/{p-0I1N5xHK.js → p-6A_cBfi7.js} +1 -1
  235. package/dist/components/{p-GMH-Dp75.js → p-B-L_tmky.js} +1 -1
  236. package/dist/components/{p-Zkjzr8ZL.js → p-B5e4-Gnb.js} +1 -1
  237. package/dist/components/{p-CugPCiPF.js → p-B7ZjIFa-.js} +1 -1
  238. package/dist/components/{p-xLck_VlO.js → p-B8xh8FL-.js} +1 -1
  239. package/dist/components/{p-BNjHUNwU.js → p-BDmVHB8l.js} +1 -1
  240. package/dist/components/{p-Bc2jtNZw.js → p-BJ7Hcvk1.js} +1 -1
  241. package/dist/components/p-BLyVHBPm.js +1 -0
  242. package/dist/components/{p-D9cHynev.js → p-BQ-x6_xE.js} +1 -1
  243. package/dist/components/{p-DAGCKEFc.js → p-BY_hQMNu.js} +1 -1
  244. package/dist/components/{p-BeWjGx1n.js → p-BaCQqa-Q.js} +1 -1
  245. package/dist/components/p-BbVYO_6g.js +1 -0
  246. package/dist/components/{p-CkNlX5-Y.js → p-BbdR8jiw.js} +1 -1
  247. package/dist/components/{p-GtIz3u0L.js → p-BeeuQPMZ.js} +1 -1
  248. package/dist/components/{p-BugzZ4hY.js → p-Bhp9Zffa.js} +1 -1
  249. package/dist/components/{p-Dc5xkFI9.js → p-BkWaCvJV.js} +1 -1
  250. package/dist/components/{p-Ds5j-VXZ.js → p-BmjopjI3.js} +1 -1
  251. package/dist/components/{p--F3BGV0E.js → p-Bo1ku_2a.js} +1 -1
  252. package/dist/components/{p-uxGiMP6W.js → p-BowkkEiR.js} +1 -1
  253. package/dist/components/p-BtMpJ0mM.js +1 -0
  254. package/dist/components/{p-DuRlksIi.js → p-BwnnHi0H.js} +1 -1
  255. package/dist/components/{p-CiX87kt0.js → p-BwpYVCMj.js} +1 -1
  256. package/dist/components/{p-DxZ5v-a-.js → p-Bxt73ql2.js} +1 -1
  257. package/dist/components/{p-gBEnKt4T.js → p-C-Jht7Ou.js} +1 -1
  258. package/dist/components/{p-CM3Y2kOg.js → p-C7qQzBOW.js} +1 -1
  259. package/dist/components/{p-BVRIm4Vt.js → p-CFL-ALsL.js} +1 -1
  260. package/dist/components/{p-ByMjaTnP.js → p-CNJG60uZ.js} +1 -1
  261. package/dist/components/{p-C7Rh2NRS.js → p-CNY9L4u1.js} +1 -1
  262. package/dist/components/{p-CH7w_Zrp.js → p-CP4anCBG.js} +1 -1
  263. package/dist/components/{p-Be6GRqFL.js → p-CQa16w_c.js} +1 -1
  264. package/dist/components/{p-CWxtbDEh.js → p-CSW-it45.js} +1 -1
  265. package/dist/components/{p-B2RoJ1tz.js → p-CVy_5Tvb.js} +1 -1
  266. package/dist/components/{p-U9jg1DvO.js → p-CY6CL9kK.js} +1 -1
  267. package/dist/components/{p-g5NPAxAj.js → p-C_fSXjwp.js} +1 -1
  268. package/dist/components/{p-BWLmBQB7.js → p-Cb3kcQH8.js} +1 -1
  269. package/dist/components/{p-oXCkwBKR.js → p-CjID2TEf.js} +1 -1
  270. package/dist/components/{p-BQMMBSP2.js → p-CjNPU4tr.js} +1 -1
  271. package/dist/components/{p-Ic4M6IZs.js → p-CoiejzBd.js} +1 -1
  272. package/dist/components/p-CpLLOHOq.js +1 -0
  273. package/dist/components/p-CsFRsJd2.js +1 -0
  274. package/dist/components/{p-BX3gY1PP.js → p-CsTjOsQ7.js} +1 -1
  275. package/dist/components/{p-BWqnoSw2.js → p-CsY7NAuq.js} +1 -1
  276. package/dist/components/{p-BC__OeWi.js → p-CshWFMrN.js} +1 -1
  277. package/dist/components/{p-vADJB1c2.js → p-D1dX_iSl.js} +1 -1
  278. package/dist/components/{p-B3ATJ-iD.js → p-D1ihibWt.js} +1 -1
  279. package/dist/components/{p-DNy6quyg.js → p-D3S9CkeA.js} +1 -1
  280. package/dist/components/{p-B2EHfWpD.js → p-D5NZi5H5.js} +1 -1
  281. package/dist/components/{p-Btj1QSzG.js → p-D6u-SXpn.js} +1 -1
  282. package/dist/components/p-D8OMvJbR.js +1 -0
  283. package/dist/components/p-DIblgdpF.js +1 -0
  284. package/dist/components/{p-BjZJaxt1.js → p-DLWL-o6Z.js} +1 -1
  285. package/dist/components/{p-BjG7yuwj.js → p-DRa-BDek.js} +1 -1
  286. package/dist/components/{p-DUIWB0ra.js → p-DW2Js6u1.js} +1 -1
  287. package/dist/components/p-DWYKl0rg.js +1 -0
  288. package/dist/components/{p-B6IcTqkN.js → p-DWgMo0uM.js} +1 -1
  289. package/dist/components/{p-msSLVaDl.js → p-D_HYgg0D.js} +1 -1
  290. package/dist/components/{p-D34dZlkT.js → p-D_Zth43B.js} +1 -1
  291. package/dist/components/{p-Bp8UGnBB.js → p-DcGAhFPL.js} +1 -1
  292. package/dist/components/{p-C07P-YzZ.js → p-DiO4NkoA.js} +1 -1
  293. package/dist/components/{p-CtPr1nvA.js → p-DtCdkVUQ.js} +1 -1
  294. package/dist/components/{p-ifBo9NHb.js → p-DuB7bImP.js} +1 -1
  295. package/dist/components/{p-Bjx68Nkv.js → p-DuheZw1w.js} +1 -1
  296. package/dist/components/{p-BBRpBb3D.js → p-DwHaSUu3.js} +1 -1
  297. package/dist/components/{p-CjOKLEdP.js → p-DxynE7R4.js} +1 -1
  298. package/dist/components/p-Dy7c6clK.js +1 -0
  299. package/dist/components/{p-CxPXk2ws.js → p-FI--hA8I.js} +1 -1
  300. package/dist/components/{p-IilUR0Z4.js → p-K3aT9e86.js} +1 -1
  301. package/dist/components/{p-B0Fo3cKf.js → p-LlsVAS7r.js} +1 -1
  302. package/dist/components/{p-CXDRC8Nb.js → p-R3NB2Rxd.js} +1 -1
  303. package/dist/components/{p-Dp2LhUKa.js → p-SJeISbFm.js} +1 -1
  304. package/dist/components/{p-DPENu38v.js → p-aAhxhPu6.js} +1 -1
  305. package/dist/components/{p-B_Wn0VnS.js → p-l4woSzxj.js} +1 -1
  306. package/dist/components/{p-DW9czTAD.js → p-ralyxXdZ.js} +1 -1
  307. package/dist/components/{p-BGaDuggr.js → p-sG2nShz-.js} +1 -1
  308. package/dist/components/{p-DAq4FN_d.js → p-w2nCsug-.js} +1 -1
  309. package/dist/components/rtk-ai-toggle.js +1 -1
  310. package/dist/components/rtk-ai-transcriptions.js +1 -1
  311. package/dist/components/rtk-ai.js +1 -1
  312. package/dist/components/rtk-audio-grid.js +1 -1
  313. package/dist/components/rtk-audio-tile.js +1 -1
  314. package/dist/components/rtk-audio-visualizer.js +1 -1
  315. package/dist/components/rtk-avatar.js +1 -1
  316. package/dist/components/rtk-breakout-room-manager.js +1 -1
  317. package/dist/components/rtk-breakout-room-participants.js +1 -1
  318. package/dist/components/rtk-breakout-rooms-manager.js +1 -1
  319. package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
  320. package/dist/components/rtk-broadcast-message-modal.js +1 -1
  321. package/dist/components/rtk-camera-selector.js +1 -1
  322. package/dist/components/rtk-camera-toggle.js +1 -1
  323. package/dist/components/rtk-caption-toggle.js +1 -1
  324. package/dist/components/rtk-chat-composer-ui.js +1 -1
  325. package/dist/components/rtk-chat-composer-view.js +1 -1
  326. package/dist/components/rtk-chat-header.js +1 -1
  327. package/dist/components/rtk-chat-message.js +1 -1
  328. package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
  329. package/dist/components/rtk-chat-messages-ui.js +1 -1
  330. package/dist/components/rtk-chat-search-results.js +1 -1
  331. package/dist/components/rtk-chat-selector-ui.js +1 -1
  332. package/dist/components/rtk-chat-selector.js +1 -1
  333. package/dist/components/rtk-chat-toggle.js +1 -1
  334. package/dist/components/rtk-chat.js +1 -1
  335. package/dist/components/rtk-clock.js +1 -1
  336. package/dist/components/rtk-confirmation-modal.js +1 -1
  337. package/dist/components/rtk-controlbar-button.js +1 -1
  338. package/dist/components/rtk-controlbar.js +1 -1
  339. package/dist/components/rtk-counter.js +1 -1
  340. package/dist/components/rtk-debugger-audio.js +1 -1
  341. package/dist/components/rtk-debugger-screenshare.js +1 -1
  342. package/dist/components/rtk-debugger-system.js +1 -1
  343. package/dist/components/rtk-debugger-toggle.js +1 -1
  344. package/dist/components/rtk-debugger-video.js +1 -1
  345. package/dist/components/rtk-debugger.js +1 -1
  346. package/dist/components/rtk-dialog-manager.js +1 -1
  347. package/dist/components/rtk-dialog.js +1 -1
  348. package/dist/components/rtk-draft-attachment-view.js +1 -1
  349. package/dist/components/rtk-emoji-picker-button.js +1 -1
  350. package/dist/components/rtk-emoji-picker.js +1 -1
  351. package/dist/components/rtk-ended-screen.js +1 -1
  352. package/dist/components/rtk-file-dropzone.js +1 -1
  353. package/dist/components/rtk-file-message-view.js +1 -1
  354. package/dist/components/rtk-file-message.js +1 -1
  355. package/dist/components/rtk-file-picker-button.js +1 -1
  356. package/dist/components/rtk-fullscreen-toggle.js +1 -1
  357. package/dist/components/rtk-grid-pagination.js +1 -1
  358. package/dist/components/rtk-grid.js +1 -1
  359. package/dist/components/rtk-header.js +1 -1
  360. package/dist/components/rtk-idle-screen.js +1 -1
  361. package/dist/components/rtk-image-message-view.js +1 -1
  362. package/dist/components/rtk-image-message.js +1 -1
  363. package/dist/components/rtk-image-viewer.js +1 -1
  364. package/dist/components/rtk-information-tooltip.js +1 -1
  365. package/dist/components/rtk-join-stage.js +1 -1
  366. package/dist/components/rtk-leave-button.js +1 -1
  367. package/dist/components/rtk-leave-meeting.js +1 -1
  368. package/dist/components/rtk-livestream-indicator.js +1 -1
  369. package/dist/components/rtk-livestream-player.js +1 -1
  370. package/dist/components/rtk-livestream-toggle.js +1 -1
  371. package/dist/components/rtk-logo.js +1 -1
  372. package/dist/components/rtk-meeting-title.js +1 -1
  373. package/dist/components/rtk-meeting.js +1 -1
  374. package/dist/components/rtk-menu-item.js +1 -1
  375. package/dist/components/rtk-menu-list.js +1 -1
  376. package/dist/components/rtk-menu.js +1 -1
  377. package/dist/components/rtk-message-list-view.js +1 -1
  378. package/dist/components/rtk-message-view.js +1 -1
  379. package/dist/components/rtk-mic-toggle.js +1 -1
  380. package/dist/components/rtk-microphone-selector.js +1 -1
  381. package/dist/components/rtk-mixed-grid.js +1 -1
  382. package/dist/components/rtk-more-toggle.js +1 -1
  383. package/dist/components/rtk-mute-all-button.js +1 -1
  384. package/dist/components/rtk-mute-all-confirmation.js +1 -1
  385. package/dist/components/rtk-name-tag.js +1 -1
  386. package/dist/components/rtk-network-indicator.js +1 -1
  387. package/dist/components/rtk-notification.js +1 -1
  388. package/dist/components/rtk-notifications.js +1 -1
  389. package/dist/components/rtk-overlay-modal.js +1 -1
  390. package/dist/components/rtk-paginated-list.js +1 -1
  391. package/dist/components/rtk-participant-count.js +1 -1
  392. package/dist/components/rtk-participant-setup.js +1 -1
  393. package/dist/components/rtk-participant-tile.js +1 -1
  394. package/dist/components/rtk-participant.js +1 -1
  395. package/dist/components/rtk-participants-audio.js +1 -1
  396. package/dist/components/rtk-participants-stage-list.js +1 -1
  397. package/dist/components/rtk-participants-stage-queue.js +1 -1
  398. package/dist/components/rtk-participants-toggle.js +1 -1
  399. package/dist/components/rtk-participants-viewer-list.js +1 -1
  400. package/dist/components/rtk-participants-waiting-list.js +1 -1
  401. package/dist/components/rtk-participants.js +1 -1
  402. package/dist/components/rtk-permissions-message.js +1 -1
  403. package/dist/components/rtk-pinned-message-selector.js +1 -1
  404. package/dist/components/rtk-pip-toggle.js +1 -1
  405. package/dist/components/rtk-plugin-main.js +1 -1
  406. package/dist/components/rtk-plugins-toggle.js +1 -1
  407. package/dist/components/rtk-plugins.js +1 -1
  408. package/dist/components/rtk-poll-form.js +1 -1
  409. package/dist/components/rtk-poll.js +1 -1
  410. package/dist/components/rtk-polls-toggle.js +1 -1
  411. package/dist/components/rtk-polls.js +1 -1
  412. package/dist/components/rtk-recording-indicator.js +1 -1
  413. package/dist/components/rtk-recording-toggle.js +1 -1
  414. package/dist/components/rtk-screen-share-toggle.js +1 -1
  415. package/dist/components/rtk-screenshare-view.js +1 -1
  416. package/dist/components/rtk-settings-audio.js +1 -1
  417. package/dist/components/rtk-settings-toggle.js +1 -1
  418. package/dist/components/rtk-settings-video.js +1 -1
  419. package/dist/components/rtk-settings.js +1 -1
  420. package/dist/components/rtk-setup-screen.js +1 -1
  421. package/dist/components/rtk-sidebar-ui.js +1 -1
  422. package/dist/components/rtk-sidebar.js +1 -1
  423. package/dist/components/rtk-simple-grid.js +1 -1
  424. package/dist/components/rtk-speaker-selector.js +1 -1
  425. package/dist/components/rtk-spinner.js +1 -1
  426. package/dist/components/rtk-spotlight-grid.js +1 -1
  427. package/dist/components/rtk-spotlight-indicator.js +1 -1
  428. package/dist/components/rtk-stage-toggle.js +1 -1
  429. package/dist/components/rtk-stage.js +1 -1
  430. package/dist/components/rtk-switch.js +1 -1
  431. package/dist/components/rtk-tab-bar.js +1 -1
  432. package/dist/components/rtk-text-composer-view.js +1 -1
  433. package/dist/components/rtk-text-message-view.js +1 -1
  434. package/dist/components/rtk-text-message.js +1 -1
  435. package/dist/components/rtk-transcript.js +1 -1
  436. package/dist/components/rtk-transcripts.js +1 -1
  437. package/dist/components/rtk-ui-provider.js +1 -1
  438. package/dist/components/rtk-viewer-count.js +1 -1
  439. package/dist/components/rtk-virtualized-participant-list.js +1 -1
  440. package/dist/components/rtk-waiting-screen.js +1 -1
  441. package/dist/docs/docs-components.json +3711 -742
  442. package/dist/docs/docs-vscode.json +5 -1
  443. package/dist/esm/{TextMessage-BZiVGmY1.js → TextMessage-yvgmoyno.js} +1 -1
  444. package/dist/esm/{chat-lvouWi7J.js → chat-C76CTGaE.js} +1 -1
  445. package/dist/esm/{config-B2jDqnc2.js → config-DP9lPGyT.js} +4 -10
  446. package/dist/esm/{debounce-aR8pwob-.js → debounce-wUcmtMrZ.js} +1 -1
  447. package/dist/esm/{index-CgECHQfr.js → index-BqWqJ0QM.js} +1 -1
  448. package/dist/esm/index.js +19 -11
  449. package/dist/esm/loader.js +1054 -579
  450. package/dist/esm/{ui-kit-metadata-DBkOnyOI.js → merge-CyAJSnqi.js} +2 -287
  451. package/dist/esm/realtimekit-ui.js +1 -1
  452. package/dist/esm/rtk-ai-toggle.entry.js +2 -2
  453. package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
  454. package/dist/esm/rtk-ai_3.entry.js +2 -2
  455. package/dist/esm/rtk-audio-grid.entry.js +2 -2
  456. package/dist/esm/rtk-audio-tile.entry.js +2 -2
  457. package/dist/esm/rtk-audio-visualizer_3.entry.js +2 -3
  458. package/dist/esm/rtk-avatar_26.entry.js +10 -9
  459. package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
  460. package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
  461. package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
  462. package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
  463. package/dist/esm/rtk-camera-toggle.entry.js +2 -2
  464. package/dist/esm/rtk-caption-toggle.entry.js +2 -2
  465. package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
  466. package/dist/esm/rtk-chat-message.entry.js +2 -2
  467. package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
  468. package/dist/esm/rtk-chat-search-results.entry.js +2 -2
  469. package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
  470. package/dist/esm/rtk-chat-toggle.entry.js +2 -2
  471. package/dist/esm/rtk-clock.entry.js +2 -2
  472. package/dist/esm/rtk-controlbar-button.entry.js +2 -2
  473. package/dist/esm/rtk-controlbar.entry.js +2 -2
  474. package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
  475. package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
  476. package/dist/esm/rtk-debugger.entry.js +2 -2
  477. package/dist/esm/rtk-dialog-manager.entry.js +2 -2
  478. package/dist/esm/rtk-dialog.entry.js +2 -2
  479. package/dist/esm/rtk-ended-screen.entry.js +2 -2
  480. package/dist/esm/rtk-file-dropzone.entry.js +2 -2
  481. package/dist/esm/rtk-file-message_3.entry.js +6 -6
  482. package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
  483. package/dist/esm/rtk-grid-pagination.entry.js +2 -2
  484. package/dist/esm/rtk-grid.entry.js +2 -2
  485. package/dist/esm/rtk-header.entry.js +2 -2
  486. package/dist/esm/rtk-idle-screen.entry.js +2 -2
  487. package/dist/esm/rtk-image-viewer.entry.js +2 -2
  488. package/dist/esm/rtk-information-tooltip.entry.js +2 -2
  489. package/dist/esm/rtk-leave-button.entry.js +2 -2
  490. package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
  491. package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
  492. package/dist/esm/rtk-logo.entry.js +2 -2
  493. package/dist/esm/rtk-meeting-title.entry.js +2 -2
  494. package/dist/esm/rtk-message-list-view.entry.js +3 -3
  495. package/dist/esm/rtk-mic-toggle.entry.js +2 -3
  496. package/dist/esm/rtk-mixed-grid.entry.js +2 -2
  497. package/dist/esm/rtk-more-toggle.entry.js +2 -2
  498. package/dist/esm/rtk-mute-all-button.entry.js +2 -2
  499. package/dist/esm/rtk-name-tag.entry.js +2 -2
  500. package/dist/esm/rtk-network-indicator.entry.js +2 -2
  501. package/dist/esm/rtk-notification.entry.js +8 -6
  502. package/dist/esm/rtk-notifications.entry.js +194 -204
  503. package/dist/esm/rtk-participant-count.entry.js +2 -2
  504. package/dist/esm/rtk-participant-setup.entry.js +2 -2
  505. package/dist/esm/rtk-participant_2.entry.js +5 -5
  506. package/dist/esm/rtk-participants-audio.entry.js +2 -3
  507. package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
  508. package/dist/esm/rtk-participants-toggle.entry.js +2 -2
  509. package/dist/esm/rtk-participants.entry.js +3 -3
  510. package/dist/esm/rtk-pip-toggle.entry.js +2 -2
  511. package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
  512. package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
  513. package/dist/esm/rtk-poll_2.entry.js +2 -2
  514. package/dist/esm/rtk-polls-toggle.entry.js +2 -2
  515. package/dist/esm/rtk-recording-indicator.entry.js +2 -2
  516. package/dist/esm/rtk-recording-toggle.entry.js +2 -2
  517. package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
  518. package/dist/esm/rtk-screenshare-view.entry.js +347 -34
  519. package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
  520. package/dist/esm/rtk-settings-toggle.entry.js +3 -3
  521. package/dist/esm/rtk-settings.entry.js +2 -2
  522. package/dist/esm/rtk-setup-screen.entry.js +2 -2
  523. package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
  524. package/dist/esm/rtk-sidebar.entry.js +2 -2
  525. package/dist/esm/rtk-simple-grid.entry.js +2 -2
  526. package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
  527. package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
  528. package/dist/esm/rtk-stage-toggle.entry.js +2 -2
  529. package/dist/esm/rtk-stage.entry.js +3 -3
  530. package/dist/esm/rtk-switch.entry.js +3 -3
  531. package/dist/esm/rtk-transcript.entry.js +3 -3
  532. package/dist/esm/rtk-transcripts.entry.js +2 -2
  533. package/dist/esm/rtk-ui-provider.entry.js +3 -2
  534. package/dist/esm/rtk-waiting-screen.entry.js +3 -3
  535. package/dist/esm/ui-kit-metadata-BLyVHBPm.js +286 -0
  536. package/dist/esm/{ui-store-25wIB_YH.js → ui-store-BDu-JN-c.js} +221 -9
  537. package/dist/realtimekit-ui/index.esm.js +1 -1
  538. package/dist/realtimekit-ui/{p-3ab9b329.entry.js → p-00d76359.entry.js} +1 -1
  539. package/dist/realtimekit-ui/{p-2999cb8d.entry.js → p-09c97ce7.entry.js} +1 -1
  540. package/dist/realtimekit-ui/{p-c7f7f0ee.entry.js → p-1649cd9b.entry.js} +1 -1
  541. package/dist/realtimekit-ui/{p-aa1bcc8d.entry.js → p-1cb35848.entry.js} +1 -1
  542. package/dist/realtimekit-ui/{p-2f380c20.entry.js → p-20ca622e.entry.js} +1 -1
  543. package/dist/realtimekit-ui/{p-a5afae52.entry.js → p-212b81f9.entry.js} +1 -1
  544. package/dist/realtimekit-ui/p-216d317b.entry.js +1 -0
  545. package/dist/realtimekit-ui/{p-e54dbacd.entry.js → p-21d6fbde.entry.js} +1 -1
  546. package/dist/realtimekit-ui/{p-6a985345.entry.js → p-2630a30f.entry.js} +1 -1
  547. package/dist/realtimekit-ui/{p-7878ab30.entry.js → p-2666b720.entry.js} +1 -1
  548. package/dist/realtimekit-ui/{p-1eac1ada.entry.js → p-29ca5030.entry.js} +1 -1
  549. package/dist/realtimekit-ui/p-2ac37cd3.entry.js +1 -0
  550. package/dist/realtimekit-ui/{p-69e11a90.entry.js → p-2b4a9798.entry.js} +1 -1
  551. package/dist/realtimekit-ui/{p-69445dc5.entry.js → p-2cc93fdf.entry.js} +1 -1
  552. package/dist/realtimekit-ui/{p-c35040dc.entry.js → p-2cffd80b.entry.js} +1 -1
  553. package/dist/realtimekit-ui/{p-6bca148a.entry.js → p-2e00a64f.entry.js} +1 -1
  554. package/dist/realtimekit-ui/{p-22cd2a40.entry.js → p-2f225d81.entry.js} +1 -1
  555. package/dist/realtimekit-ui/{p-94a286d0.entry.js → p-31cff3b4.entry.js} +1 -1
  556. package/dist/realtimekit-ui/{p-da857425.entry.js → p-339d78e0.entry.js} +1 -1
  557. package/dist/realtimekit-ui/p-39f4dfc2.entry.js +1 -0
  558. package/dist/realtimekit-ui/{p-d91222ea.entry.js → p-3df86b16.entry.js} +1 -1
  559. package/dist/realtimekit-ui/{p-7711649a.entry.js → p-40b5a3f6.entry.js} +1 -1
  560. package/dist/realtimekit-ui/{p-5ea44aa5.entry.js → p-40d669f7.entry.js} +1 -1
  561. package/dist/realtimekit-ui/p-465e03e3.entry.js +1 -0
  562. package/dist/realtimekit-ui/{p-a478656f.entry.js → p-468bbf25.entry.js} +1 -1
  563. package/dist/realtimekit-ui/{p-467cb881.entry.js → p-46f5bd65.entry.js} +1 -1
  564. package/dist/realtimekit-ui/{p-cdf80add.entry.js → p-4a2791af.entry.js} +1 -1
  565. package/dist/realtimekit-ui/{p-a732dd55.entry.js → p-4d1c520d.entry.js} +1 -1
  566. package/dist/realtimekit-ui/{p-fbde8aee.entry.js → p-4f4f74de.entry.js} +1 -1
  567. package/dist/realtimekit-ui/{p-6568c9be.entry.js → p-50964a67.entry.js} +1 -1
  568. package/dist/realtimekit-ui/{p-60e672f3.entry.js → p-590d9a6f.entry.js} +1 -1
  569. package/dist/realtimekit-ui/{p-73f2a2db.entry.js → p-59e85491.entry.js} +1 -1
  570. package/dist/realtimekit-ui/{p-cf9e2497.entry.js → p-5a316687.entry.js} +1 -1
  571. package/dist/realtimekit-ui/{p-8dc6db09.entry.js → p-5ad79e40.entry.js} +1 -1
  572. package/dist/realtimekit-ui/{p-a6b6f977.entry.js → p-65d4e49f.entry.js} +1 -1
  573. package/dist/realtimekit-ui/{p-69ee90c7.entry.js → p-66c16b99.entry.js} +1 -1
  574. package/dist/realtimekit-ui/p-679cff34.entry.js +1 -0
  575. package/dist/realtimekit-ui/p-68355fad.entry.js +1 -0
  576. package/dist/realtimekit-ui/{p-f202a199.entry.js → p-6c6da19f.entry.js} +1 -1
  577. package/dist/realtimekit-ui/{p-a1febe2c.entry.js → p-6db3f0b3.entry.js} +1 -1
  578. package/dist/realtimekit-ui/p-705c69ef.entry.js +1 -0
  579. package/dist/realtimekit-ui/{p-b29b686b.entry.js → p-71bd9c93.entry.js} +1 -1
  580. package/dist/realtimekit-ui/{p-3a0eaf1e.entry.js → p-780e1278.entry.js} +1 -1
  581. package/dist/realtimekit-ui/{p-590350ae.entry.js → p-7b95fcea.entry.js} +1 -1
  582. package/dist/realtimekit-ui/{p-c8cad0a6.entry.js → p-7f6cd05d.entry.js} +1 -1
  583. package/dist/realtimekit-ui/{p-77648ee7.entry.js → p-80e72f3b.entry.js} +1 -1
  584. package/dist/realtimekit-ui/p-81b64fa2.entry.js +1 -0
  585. package/dist/realtimekit-ui/{p-64b7ca52.entry.js → p-866df7d3.entry.js} +1 -1
  586. package/dist/realtimekit-ui/{p-64f46d1e.entry.js → p-8a113cfb.entry.js} +1 -1
  587. package/dist/realtimekit-ui/{p-00ae47eb.entry.js → p-915dec6c.entry.js} +1 -1
  588. package/dist/realtimekit-ui/{p-b783a853.entry.js → p-9169be62.entry.js} +1 -1
  589. package/dist/realtimekit-ui/{p-60f90e32.entry.js → p-95f35e70.entry.js} +1 -1
  590. package/dist/realtimekit-ui/{p-95818179.entry.js → p-983ca822.entry.js} +1 -1
  591. package/dist/realtimekit-ui/{p-3d95065e.entry.js → p-98e3caf7.entry.js} +1 -1
  592. package/dist/realtimekit-ui/p-9f5eb163.entry.js +1 -0
  593. package/dist/realtimekit-ui/p-BLyVHBPm.js +1 -0
  594. package/dist/realtimekit-ui/p-Bzni6MqK.js +1 -0
  595. package/dist/realtimekit-ui/p-DEqeU73W.js +1 -0
  596. package/dist/realtimekit-ui/p-DYdFtxVz.js +1 -0
  597. package/dist/realtimekit-ui/{p-CGOvNX5H.js → p-DjuLCOXk.js} +1 -1
  598. package/dist/realtimekit-ui/{p-CRQsZMW5.js → p-KiBrYIp4.js} +1 -1
  599. package/dist/realtimekit-ui/{p-8206b22d.entry.js → p-a058849b.entry.js} +1 -1
  600. package/dist/realtimekit-ui/{p-54c71e62.entry.js → p-a2fd9cf2.entry.js} +1 -1
  601. package/dist/realtimekit-ui/p-a3177447.entry.js +1 -0
  602. package/dist/realtimekit-ui/{p-39a410f5.entry.js → p-a583cc88.entry.js} +1 -1
  603. package/dist/realtimekit-ui/p-aIVgtPUf.js +1 -0
  604. package/dist/realtimekit-ui/{p-cfa03301.entry.js → p-ad8e4409.entry.js} +1 -1
  605. package/dist/realtimekit-ui/{p-13a913a9.entry.js → p-b16b8339.entry.js} +1 -1
  606. package/dist/realtimekit-ui/{p-0ce5b00f.entry.js → p-baa83772.entry.js} +1 -1
  607. package/dist/realtimekit-ui/{p-70672349.entry.js → p-be12bd8a.entry.js} +1 -1
  608. package/dist/realtimekit-ui/p-c132536f.entry.js +1 -0
  609. package/dist/realtimekit-ui/{p-7d7409e5.entry.js → p-ca45d169.entry.js} +1 -1
  610. package/dist/realtimekit-ui/{p-0df18cd8.entry.js → p-d1422675.entry.js} +1 -1
  611. package/dist/realtimekit-ui/{p-d7b10d53.entry.js → p-d33dcab8.entry.js} +1 -1
  612. package/dist/realtimekit-ui/{p-b56fe105.entry.js → p-d6177836.entry.js} +1 -1
  613. package/dist/realtimekit-ui/{p-2eb73b5f.entry.js → p-dfd083c9.entry.js} +1 -1
  614. package/dist/realtimekit-ui/p-e0fbcd2f.entry.js +1 -0
  615. package/dist/realtimekit-ui/{p-465c4010.entry.js → p-e2c07b34.entry.js} +1 -1
  616. package/dist/realtimekit-ui/{p-8a481d43.entry.js → p-e48f5b65.entry.js} +1 -1
  617. package/dist/realtimekit-ui/{p-4d59e280.entry.js → p-ea3591dd.entry.js} +1 -1
  618. package/dist/realtimekit-ui/{p-4b2ce9e5.entry.js → p-ea9632fb.entry.js} +1 -1
  619. package/dist/realtimekit-ui/{p-96b81823.entry.js → p-ebc2284a.entry.js} +1 -1
  620. package/dist/realtimekit-ui/{p-dcced1f6.entry.js → p-ed4e8032.entry.js} +1 -1
  621. package/dist/realtimekit-ui/{p-32079fea.entry.js → p-f163f7d0.entry.js} +1 -1
  622. package/dist/realtimekit-ui/{p-bef64365.entry.js → p-f42d1ca8.entry.js} +1 -1
  623. package/dist/realtimekit-ui/{p-9675893b.entry.js → p-f6964364.entry.js} +1 -1
  624. package/dist/realtimekit-ui/{p-21119a4d.entry.js → p-f6cc50c1.entry.js} +1 -1
  625. package/dist/realtimekit-ui/{p-18607b9a.entry.js → p-fb638463.entry.js} +1 -1
  626. package/dist/realtimekit-ui/p-fe56d5f4.entry.js +1 -0
  627. package/dist/realtimekit-ui/{p-df5b5a98.entry.js → p-febe71c5.entry.js} +1 -1
  628. package/dist/realtimekit-ui/{p-Dj-6QheV.js → p-kAmDs9rB.js} +1 -1
  629. package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
  630. package/dist/types/components/rtk-notifications/rtk-notifications.d.ts +12 -3
  631. package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +31 -7
  632. package/dist/types/components.d.ts +20 -13
  633. package/dist/types/lib/lang/default-language.d.ts +6 -0
  634. package/dist/types/lib/notification.d.ts +31 -2
  635. package/dist/types/types/ui-config/config.d.ts +49 -10
  636. package/dist/types/utils/notification.d.ts +11 -2
  637. package/package.json +1 -1
  638. package/dist/cjs/browser-qKzDfwbO.js +0 -5
  639. package/dist/cjs/notification-Bny5fHfy.js +0 -39
  640. package/dist/components/p--EktoJd3.js +0 -1
  641. package/dist/components/p-36vx_Mui.js +0 -1
  642. package/dist/components/p-B56IYWsZ.js +0 -1
  643. package/dist/components/p-B5Ikq3LV.js +0 -1
  644. package/dist/components/p-BeJhcBfy.js +0 -1
  645. package/dist/components/p-C8IQnQjR.js +0 -1
  646. package/dist/components/p-CAqYddlg.js +0 -1
  647. package/dist/components/p-C_e0a6jQ.js +0 -1
  648. package/dist/components/p-DalLUQa1.js +0 -1
  649. package/dist/components/p-aXMUeMjU.js +0 -1
  650. package/dist/esm/browser-CAqYddlg.js +0 -3
  651. package/dist/esm/notification-DZgheLdK.js +0 -37
  652. package/dist/realtimekit-ui/p-1ff01d5f.entry.js +0 -1
  653. package/dist/realtimekit-ui/p-20588357.entry.js +0 -1
  654. package/dist/realtimekit-ui/p-341159c7.entry.js +0 -1
  655. package/dist/realtimekit-ui/p-63413c07.entry.js +0 -1
  656. package/dist/realtimekit-ui/p-72b2fe54.entry.js +0 -1
  657. package/dist/realtimekit-ui/p-792d2533.entry.js +0 -1
  658. package/dist/realtimekit-ui/p-828ecefa.entry.js +0 -1
  659. package/dist/realtimekit-ui/p-82a226df.entry.js +0 -1
  660. package/dist/realtimekit-ui/p-9c53a0b7.entry.js +0 -1
  661. package/dist/realtimekit-ui/p-B3SWd1rN.js +0 -1
  662. package/dist/realtimekit-ui/p-B56IYWsZ.js +0 -1
  663. package/dist/realtimekit-ui/p-C8tHk7bV.js +0 -1
  664. package/dist/realtimekit-ui/p-CAqYddlg.js +0 -1
  665. package/dist/realtimekit-ui/p-DgbGa7ou.js +0 -1
  666. package/dist/realtimekit-ui/p-a05269d4.entry.js +0 -1
  667. package/dist/realtimekit-ui/p-b415ff27.entry.js +0 -1
  668. package/dist/realtimekit-ui/p-cc9228ee.entry.js +0 -1
  669. package/dist/realtimekit-ui/p-df0fe032.entry.js +0 -1
  670. package/dist/realtimekit-ui/p-x7gw0EVy.js +0 -1
@@ -1,35 +1,123 @@
1
+ import { SOUNDS } from "../../lib/notification";
1
2
  export const DEFAULT_NOTIFICATION_DURATION = 2000;
2
3
  export const DEFAULT_NOTIFICATION_CONFIG = Object.freeze({
3
4
  notifications: {
4
5
  participant_joined: true,
5
6
  participant_left: true,
6
7
  participant_joined_waitlist: true,
7
- chat: true,
8
- polls: true,
9
- webinar: true,
10
- tab_sync: true,
8
+ chat_new_message: true,
9
+ chat_message_edited: false,
10
+ chat_message_deleted: false,
11
+ polls_new_poll: true,
12
+ tab_sync_plugin_switched: true,
13
+ tab_sync_screen_share_switched: true,
11
14
  recording_started: true,
12
15
  recording_stopped: true,
16
+ stage_requested_to_join: false,
17
+ stage_joined: false,
18
+ stage_request_accepted: true,
19
+ stage_request_rejected: true,
20
+ stage_new_request_received: true,
21
+ stage_invite_sent: true,
22
+ speaker_switched: true,
23
+ camera_switched: true,
24
+ microphone_switched: true,
25
+ network_restored: true,
26
+ network_reconnecting: true,
27
+ network_delayed: true,
28
+ network_disconnected: true,
29
+ network_failed: true,
30
+ api_error: true,
31
+ custom: true,
13
32
  },
14
33
  notification_sounds: {
15
34
  participant_joined: true,
16
- participant_left: true,
17
- chat: true,
18
- polls: true,
19
- webinar: true,
35
+ participant_left: false,
20
36
  participant_joined_waitlist: true,
37
+ chat_new_message: true,
38
+ chat_message_edited: false,
39
+ chat_message_deleted: false,
40
+ polls_new_poll: true,
41
+ tab_sync_plugin_switched: false,
42
+ tab_sync_screen_share_switched: false,
43
+ recording_started: false,
44
+ recording_stopped: false,
45
+ stage_requested_to_join: false,
46
+ stage_joined: false,
47
+ stage_request_accepted: false,
48
+ stage_request_rejected: false,
49
+ stage_new_request_received: false,
50
+ stage_invite_sent: false,
51
+ speaker_switched: false,
52
+ camera_switched: false,
53
+ microphone_switched: false,
54
+ network_restored: false,
55
+ network_reconnecting: false,
56
+ network_delayed: false,
57
+ network_disconnected: false,
58
+ network_failed: false,
59
+ api_error: false,
60
+ custom: true,
21
61
  },
22
62
  notification_duration: {
23
63
  participant_joined: 2100,
24
64
  participant_left: 2100,
25
65
  participant_joined_waitlist: 4000,
26
- chat: DEFAULT_NOTIFICATION_DURATION,
27
- polls: DEFAULT_NOTIFICATION_DURATION,
28
- webinar: DEFAULT_NOTIFICATION_DURATION,
29
- tab_sync: DEFAULT_NOTIFICATION_DURATION,
66
+ chat_new_message: DEFAULT_NOTIFICATION_DURATION,
67
+ chat_message_edited: DEFAULT_NOTIFICATION_DURATION,
68
+ chat_message_deleted: DEFAULT_NOTIFICATION_DURATION,
69
+ polls_new_poll: DEFAULT_NOTIFICATION_DURATION,
70
+ tab_sync_plugin_switched: 2100,
71
+ tab_sync_screen_share_switched: DEFAULT_NOTIFICATION_DURATION,
30
72
  recording_started: DEFAULT_NOTIFICATION_DURATION,
31
73
  recording_stopped: DEFAULT_NOTIFICATION_DURATION,
74
+ stage_requested_to_join: DEFAULT_NOTIFICATION_DURATION,
75
+ stage_joined: DEFAULT_NOTIFICATION_DURATION,
76
+ stage_request_accepted: 3000,
77
+ stage_request_rejected: 3000,
78
+ stage_new_request_received: 3000,
79
+ stage_invite_sent: DEFAULT_NOTIFICATION_DURATION,
80
+ speaker_switched: 5000,
81
+ camera_switched: 5000,
82
+ microphone_switched: 5000,
83
+ network_restored: 3000,
84
+ network_reconnecting: 0,
85
+ network_delayed: 0,
86
+ network_disconnected: 0,
87
+ network_failed: 0,
88
+ api_error: DEFAULT_NOTIFICATION_DURATION,
89
+ custom: DEFAULT_NOTIFICATION_DURATION,
90
+ },
91
+ notification_sound_urls: {
92
+ participant_joined: SOUNDS.joined,
93
+ participant_left: SOUNDS.left,
94
+ participant_joined_waitlist: SOUNDS.message,
95
+ chat_new_message: SOUNDS.message,
96
+ chat_message_edited: SOUNDS.message,
97
+ chat_message_deleted: SOUNDS.message,
98
+ polls_new_poll: SOUNDS.message,
99
+ tab_sync_plugin_switched: SOUNDS.message,
100
+ tab_sync_screen_share_switched: SOUNDS.message,
101
+ recording_started: SOUNDS.message,
102
+ recording_stopped: SOUNDS.message,
103
+ stage_requested_to_join: SOUNDS.joined,
104
+ stage_joined: SOUNDS.joined,
105
+ stage_request_accepted: SOUNDS.message,
106
+ stage_request_rejected: SOUNDS.message,
107
+ stage_new_request_received: SOUNDS.message,
108
+ stage_invite_sent: SOUNDS.message,
109
+ speaker_switched: SOUNDS.message,
110
+ camera_switched: SOUNDS.message,
111
+ microphone_switched: SOUNDS.message,
112
+ network_restored: SOUNDS.message,
113
+ network_reconnecting: SOUNDS.message,
114
+ network_delayed: SOUNDS.message,
115
+ network_disconnected: SOUNDS.message,
116
+ network_failed: SOUNDS.message,
117
+ api_error: SOUNDS.message,
118
+ custom: undefined,
32
119
  },
33
- participant_joined_sound_notification_limit: 10,
120
+ participant_joined_sound_notification_limit: 3,
34
121
  participant_chat_message_sound_notification_limit: 10,
122
+ visible_notifications_limit: 5,
35
123
  });
@@ -1,7 +1,9 @@
1
1
  import { createDefaultConfig } from "../lib/default-ui-config";
2
+ import { DEFAULT_NOTIFICATION_CONFIG } from "../types/ui-config/config";
2
3
  import { isValidHexColor } from "./color";
3
4
  import deepMerge from "lodash-es/merge";
4
5
  import { isLiveStreamHost } from "./livestream";
6
+ import clone from "./clone";
5
7
  /**
6
8
  * Extend the default UI Config with your own
7
9
  * @param config Your extended UI Config
@@ -336,14 +338,7 @@ export const generateConfig = (oldConfig, meeting, toExtend = {}, options = { gr
336
338
  ['rtk-mic-toggle', { size: 'sm' }],
337
339
  ['rtk-camera-toggle', { size: 'sm' }],
338
340
  ], 'div#setupcontrols-settings': [['rtk-settings-toggle', { size: 'sm' }]], 'rtk-screenshare-view': ['rtk-name-tag', 'rtk-network-indicator'], 'rtk-name-tag': [['rtk-audio-visualizer', { slot: 'start' }]] }),
339
- config: {
340
- notification_sounds: {
341
- participant_left: false,
342
- },
343
- participant_joined_sound_notification_limit: 3,
344
- participant_chat_message_sound_notification_limit: 10,
345
- videoFit: 'cover',
346
- },
341
+ config: Object.assign(Object.assign({}, clone(DEFAULT_NOTIFICATION_CONFIG)), { videoFit: 'cover' }),
347
342
  };
348
343
  config = extendConfig(toExtend, config);
349
344
  data.showSetupScreen = (_t = (_s = oldConfig.setupScreen) === null || _s === void 0 ? void 0 : _s.isEnabled) !== null && _t !== void 0 ? _t : true;
@@ -1,14 +1,23 @@
1
1
  /**
2
2
  * Send notification which will be displayed in the `<rtk-notifications />` component.
3
3
  * @param notification Notification object
4
- * @param playSound Sound type, if sound type is sent plays that sound with the notification.
4
+ * @param playSound The sound to play with the notification. Pass the name of a built-in sound
5
+ * (`joined`, `left` or `message`) or the URL of an audio file.
6
+ * It must be an absolute URL that starts with `https://` or `http://` and ends with a
7
+ * supported audio file extension: `.mp3`, `.wav`, `.ogg`, `.m4a`, `.aac`, `.flac`, `.opus`
8
+ * or `.webm`.
9
+ * Any other URL is ignored.
10
+ * @param meeting The meeting that the notification is for. Pass it when the page has more than
11
+ * one meeting: only the `<rtk-notifications />` of this meeting shows the notification.
12
+ * Without it, every `<rtk-notifications />` on the page shows the notification.
5
13
  * @returns Return value of emitting the event
6
14
  */
7
- export const sendNotification = (notification, playSound = undefined) => {
15
+ export const sendNotification = (notification, playSound = undefined, meeting = undefined) => {
16
+ var _a;
8
17
  if (typeof document === 'undefined')
9
18
  return false;
10
19
  const event = new CustomEvent('rtkNotification', {
11
- detail: Object.assign(Object.assign({}, notification), { playSound }),
20
+ detail: Object.assign(Object.assign({}, notification), { playSound, meetingId: (_a = meeting === null || meeting === void 0 ? void 0 : meeting.meta) === null || _a === void 0 ? void 0 : _a.meetingId }),
12
21
  composed: true,
13
22
  });
14
23
  return document.dispatchEvent(event);
@@ -2,7 +2,7 @@
2
2
  * The literal below is replaced with the released package version by `prepublish.js`.
3
3
  * Builds that are not published (local, dev) report it as is.
4
4
  */
5
- const UI_KIT_VERSION = '2.2.0-staging.3';
5
+ const UI_KIT_VERSION = '2.2.0-staging.5';
6
6
  /**
7
7
  * The wrapper packages load components from the loader bundle, which carries its own copy of
8
8
  * this module, separate from the copy behind the main entry. The registered symbol is the one
@@ -1 +1 @@
1
- export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-BBHQOrFK.js";export{B as BreakoutRoomsManager}from"./p-Rq_6y0HI.js";export{p as provideRtkDesignSystem,s as setUiKitSdkName}from"./p-36vx_Mui.js";import{g as t}from"./p-BeJhcBfy.js";export{e as extendConfig}from"./p-BeJhcBfy.js";import{c as o}from"./p-aXMUeMjU.js";export{b as createPeerStore,d as defaultConfig,e as defaultIconPack,h as defaultLanguage,f as defaultOverrides,g as getInitialStates,a as uiState,u as uiStore,i as useLanguage}from"./p-aXMUeMjU.js";export{R as RtkNotificationsAudio}from"./p-B56IYWsZ.js";export{g as generateChatGroupKey,a as getChatGroups,c as getParticipantUserId,b as getUnreadChatCounts}from"./p-HuHRVcj4.js";const n=(t,s)=>{if("undefined"==typeof document)return!1;const e=new CustomEvent("rtkNotification",{detail:Object.assign(Object.assign({},t),{playSound:s}),composed:!0});return document.dispatchEvent(e)};function l(t){return s=>Array.isArray(s)?s[0]===t:s===t}function m(t){return s=>Array.isArray(s)?s[0]!==t:s!==t}function y(t){return t.replace(/([a-z])([A-Z])/g,(t=>`${t[0]}-${t[1]}`.toLowerCase()))}class v{constructor(t,s,e){this.elem=t,this.config=s,this.keyString=e}add(t,s={}){var e;let r=t=y(t);return Object.keys(s).length>0&&(r=[t,s]),Array.isArray(this.elem)?this.elem.push(r):"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=[...this.elem.children,r]:"remove"in this.elem&&Array.isArray(this.elem.remove)&&this.elem.remove.find(l(t))?this.elem.remove=this.elem.remove.filter(m(t)):("add"in this.elem||(this.elem.add=[]),null===(e=this.elem.add)||void 0===e||e.push(r)),this}remove(t){var s;if(t=y(t),Array.isArray(this.elem)){const s=this.elem.findIndex(l(t));s>-1&&this.elem.splice(s,1)}else"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=this.elem.children.filter(m(t)):"add"in this.elem&&Array.isArray(this.elem.add)&&this.elem.add.find((s=>s===t))?this.elem.add=this.elem.add.filter(m(t)):("remove"in this.elem||(this.elem.remove=[]),null===(s=this.elem.remove)||void 0===s||s.push(t));return this}set style(t){console.log(t)}setChildrenProps(t,s){console.log(this.keyString,t,s)}getChildrenProps(t){return console.log(this.keyString,t),{}}replace(t){console.log(this.config,t)}}class j{constructor(t){this.config=t||o()}find(t,s={}){t=y(t);const e=[],r=[];Object.keys(s||{}).forEach((t=>{"boolean"==typeof s[t]?e.push(t):r.push([t,s[t]])})),e.sort();const i=this.config.root;if(void 0===i)return;let a=t,o="";e.length>0&&(o="."+e.join("."),a=`${t}${o}`,Array.isArray(i[t])&&(i[t]={states:[],children:i[t]}),void 0===i[t].states&&(i[t].states=[]),e.forEach((s=>{var e,r;-1===(null===(e=i[t].states)||void 0===e?void 0:e.indexOf(s))&&(null===(r=i[t].states)||void 0===r||r.push(s))}))),r.length>0&&r.forEach((s=>{a=`${t}[${s[0]}=${s[1]}]${o}`,Array.isArray(i[t])&&(i[t]={state:s[0],children:i[t]})}));let n=i[a];return void 0===n&&(i[a]={},n=i[a]),new v(n,this.config,a)}build(){return this.config}}function A(s,e,r){if(!r){const s=t(e.self.config,e);r=s.config}return s.map((t=>{r=t.register(r,e,(t=>new j(t)))})),r}export{j as RtkUiBuilder,o as createDefaultConfig,t as generateConfig,A as registerAddons,n as sendNotification}
1
+ export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-BBHQOrFK.js";export{B as BreakoutRoomsManager}from"./p-Rq_6y0HI.js";export{p as provideRtkDesignSystem,s as setUiKitSdkName}from"./p-BLyVHBPm.js";import{g as t}from"./p-Dy7c6clK.js";export{e as extendConfig}from"./p-Dy7c6clK.js";import{c as o}from"./p-BbVYO_6g.js";export{R as RtkNotificationsAudio,b as createPeerStore,d as defaultConfig,e as defaultIconPack,h as defaultLanguage,f as defaultOverrides,g as getInitialStates,a as uiState,u as uiStore,i as useLanguage}from"./p-BbVYO_6g.js";export{g as generateChatGroupKey,a as getChatGroups,c as getParticipantUserId,b as getUnreadChatCounts}from"./p-HuHRVcj4.js";const n=(t,s,e)=>{var r;if("undefined"==typeof document)return!1;const i=new CustomEvent("rtkNotification",{detail:Object.assign(Object.assign({},t),{playSound:s,meetingId:null===(r=null==e?void 0:e.meta)||void 0===r?void 0:r.meetingId}),composed:!0});return document.dispatchEvent(i)};function l(t){return s=>Array.isArray(s)?s[0]===t:s===t}function m(t){return s=>Array.isArray(s)?s[0]!==t:s!==t}function v(t){return t.replace(/([a-z])([A-Z])/g,(t=>`${t[0]}-${t[1]}`.toLowerCase()))}class y{constructor(t,s,e){this.elem=t,this.config=s,this.keyString=e}add(t,s={}){var e;let r=t=v(t);return Object.keys(s).length>0&&(r=[t,s]),Array.isArray(this.elem)?this.elem.push(r):"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=[...this.elem.children,r]:"remove"in this.elem&&Array.isArray(this.elem.remove)&&this.elem.remove.find(l(t))?this.elem.remove=this.elem.remove.filter(m(t)):("add"in this.elem||(this.elem.add=[]),null===(e=this.elem.add)||void 0===e||e.push(r)),this}remove(t){var s;if(t=v(t),Array.isArray(this.elem)){const s=this.elem.findIndex(l(t));s>-1&&this.elem.splice(s,1)}else"children"in this.elem&&Array.isArray(this.elem.children)?this.elem.children=this.elem.children.filter(m(t)):"add"in this.elem&&Array.isArray(this.elem.add)&&this.elem.add.find((s=>s===t))?this.elem.add=this.elem.add.filter(m(t)):("remove"in this.elem||(this.elem.remove=[]),null===(s=this.elem.remove)||void 0===s||s.push(t));return this}set style(t){console.log(t)}setChildrenProps(t,s){console.log(this.keyString,t,s)}getChildrenProps(t){return console.log(this.keyString,t),{}}replace(t){console.log(this.config,t)}}class A{constructor(t){this.config=t||o()}find(t,s={}){t=v(t);const e=[],r=[];Object.keys(s||{}).forEach((t=>{"boolean"==typeof s[t]?e.push(t):r.push([t,s[t]])})),e.sort();const i=this.config.root;if(void 0===i)return;let o=t,a="";e.length>0&&(a="."+e.join("."),o=`${t}${a}`,Array.isArray(i[t])&&(i[t]={states:[],children:i[t]}),void 0===i[t].states&&(i[t].states=[]),e.forEach((s=>{var e,r;-1===(null===(e=i[t].states)||void 0===e?void 0:e.indexOf(s))&&(null===(r=i[t].states)||void 0===r||r.push(s))}))),r.length>0&&r.forEach((s=>{o=`${t}[${s[0]}=${s[1]}]${a}`,Array.isArray(i[t])&&(i[t]={state:s[0],children:i[t]})}));let n=i[o];return void 0===n&&(i[o]={},n=i[o]),new y(n,this.config,o)}build(){return this.config}}function j(s,e,r){if(!r){const s=t(e.self.config,e);r=s.config}return s.map((t=>{r=t.register(r,e,(t=>new A(t)))})),r}export{A as RtkUiBuilder,o as createDefaultConfig,t as generateConfig,j as registerAddons,n as sendNotification}
@@ -1 +1 @@
1
- import{p as t,H as i,h as a,t as s}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as e,e as r,i as n}from"./p-aXMUeMjU.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as c}from"./p-ByMjaTnP.js";import{d as o}from"./p-DAGCKEFc.js";import{d as p}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-Bc2jtNZw.js";import{d as h}from"./p-DHSRRtn3.js";var u=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=e(),this.iconPack=r,this.view="sidebar",this.t=n(),this.stageRequestedParticipants=[],this.updateStageRequestedParticipants=()=>{this.stageRequestedParticipants=this.meeting.participants.joined.toArray().filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus))},this.acceptStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.grantAccess([i])},this.rejectStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.denyAccess([i])},this.acceptAllStageRequest=async()=>{await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((t=>t.userId)))},this.denyAllStageRequest=async()=>{var t;await(null===(t=this.meeting.stage)||void 0===t?void 0:t.denyAccess(this.stageRequestedParticipants.map((t=>t.userId))))},this.shouldShowStageRequests=()=>this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&this.stageRequestedParticipants.length>0,this.updateRequestList=async t=>{var i,a,s,e,r,n,c;this.meeting.self.permissions.acceptStageRequests&&this.meeting.self.permissions.stageEnabled?"LIVESTREAM"===this.meeting.meta.viewType||"HIVE"===(null===(s=null===(a=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===a?void 0:a.permissions)||void 0===s?void 0:s.mediaRoomType)?(t||(t=null!==(n=null===(r=await(null===(e=this.meeting.stage)||void 0===e?void 0:e.getAccessRequests()))||void 0===r?void 0:r.stageRequests)&&void 0!==n?n:[]),this.stageRequestedParticipants=t.map((t=>Object.assign(Object.assign({},t),{name:t.displayName})))):this.stageRequestedParticipants=null===(c=[this.meeting.self,...this.meeting.participants.joined.toArray()])||void 0===c?void 0:c.filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus)):this.stageRequestedParticipants=[]}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;const{stage:i}=this.meeting;null==i||i.removeListener("stageAccessRequestUpdate",this.updateRequestList),null===(t=this.meeting.participants.joined)||void 0===t||t.removeListener("stageStatusUpdate",this.updateStageRequestedParticipants)}meetingChanged(t){var i;t&&(this.updateRequestList(),t.participants.joined.on("stageStatusUpdate",this.updateStageRequestedParticipants),null===(i=t.stage)||void 0===i||i.on("stageAccessRequestUpdate",this.updateRequestList))}render(){return this.meeting?"sidebar"===this.view&&this.shouldShowStageRequests()?a("div",{class:"stage-requested-participants"},a("div",{class:"heading-count",part:"staged-heading-count"},this.t("stage_request.header_title")," (",this.stageRequestedParticipants.length,")"),a("ul",{class:"participants",part:"staged-participants"},this.stageRequestedParticipants.map((t=>a("li",{class:"waiting-participant",key:t.id},a("div",{class:"participant-details"},a("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),a("p",{class:"name",title:t.name},t.name)),a("div",{class:"waitlist-controls"},a("rtk-tooltip",{label:this.t("stage_request.deny_request"),variant:"secondary"},a("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectStageRequest(t)},a("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),a("rtk-tooltip",{label:this.t("stage_request.accept_request"),variant:"secondary"},a("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptStageRequest(t)},a("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),a("div",{class:"bulk-actions"},a("rtk-button",{class:"accept-all-button",variant:"secondary",onClick:this.acceptAllStageRequest},this.t("stage_request.accept_all")),a("rtk-button",{class:"deny-all-button",variant:"danger",onClick:this.denyAllStageRequest},this.t("stage_request.deny_all")))):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:column;font-size:14px}.stage-requested-participants{margin-bottom:var(--rtk-space-8, 32px)}.stage-requested-participants .bulk-actions{display:flex;gap:var(--rtk-space-2, 8px)}.stage-requested-participants .bulk-actions .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.stage-requested-participants .bulk-actions rtk-button{flex:1 1 0%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[1,"rtk-participants-stage-queue",{meeting:[16],config:[16],size:[513],iconPack:[16],view:[1],t:[16],stageRequestedParticipants:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-participants-stage-queue","rtk-avatar","rtk-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-participants-stage-queue":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-avatar":customElements.get(s(t))||o();break;case"rtk-button":customElements.get(s(t))||p();break;case"rtk-icon":customElements.get(s(t))||l();break;case"rtk-spinner":customElements.get(s(t))||d();break;case"rtk-tooltip":customElements.get(s(t))||h()}}))}u([c()],g.prototype,"meeting",void 0),u([c()],g.prototype,"config",void 0),u([c()],g.prototype,"iconPack",void 0),u([c()],g.prototype,"t",void 0),v();export{g as R,v as d}
1
+ import{p as t,H as i,h as a,t as s}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as e,e as r,i as n}from"./p-BbVYO_6g.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as c}from"./p-CNJG60uZ.js";import{d as o}from"./p-BY_hQMNu.js";import{d as p}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-BJ7Hcvk1.js";import{d as h}from"./p-DHSRRtn3.js";var u=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=e(),this.iconPack=r,this.view="sidebar",this.t=n(),this.stageRequestedParticipants=[],this.updateStageRequestedParticipants=()=>{this.stageRequestedParticipants=this.meeting.participants.joined.toArray().filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus))},this.acceptStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.grantAccess([i])},this.rejectStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.denyAccess([i])},this.acceptAllStageRequest=async()=>{await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((t=>t.userId)))},this.denyAllStageRequest=async()=>{var t;await(null===(t=this.meeting.stage)||void 0===t?void 0:t.denyAccess(this.stageRequestedParticipants.map((t=>t.userId))))},this.shouldShowStageRequests=()=>this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&this.stageRequestedParticipants.length>0,this.updateRequestList=async t=>{var i,a,s,e,r,n,c;this.meeting.self.permissions.acceptStageRequests&&this.meeting.self.permissions.stageEnabled?"LIVESTREAM"===this.meeting.meta.viewType||"HIVE"===(null===(s=null===(a=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===a?void 0:a.permissions)||void 0===s?void 0:s.mediaRoomType)?(t||(t=null!==(n=null===(r=await(null===(e=this.meeting.stage)||void 0===e?void 0:e.getAccessRequests()))||void 0===r?void 0:r.stageRequests)&&void 0!==n?n:[]),this.stageRequestedParticipants=t.map((t=>Object.assign(Object.assign({},t),{name:t.displayName})))):this.stageRequestedParticipants=null===(c=[this.meeting.self,...this.meeting.participants.joined.toArray()])||void 0===c?void 0:c.filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus)):this.stageRequestedParticipants=[]}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;const{stage:i}=this.meeting;null==i||i.removeListener("stageAccessRequestUpdate",this.updateRequestList),null===(t=this.meeting.participants.joined)||void 0===t||t.removeListener("stageStatusUpdate",this.updateStageRequestedParticipants)}meetingChanged(t){var i;t&&(this.updateRequestList(),t.participants.joined.on("stageStatusUpdate",this.updateStageRequestedParticipants),null===(i=t.stage)||void 0===i||i.on("stageAccessRequestUpdate",this.updateRequestList))}render(){return this.meeting?"sidebar"===this.view&&this.shouldShowStageRequests()?a("div",{class:"stage-requested-participants"},a("div",{class:"heading-count",part:"staged-heading-count"},this.t("stage_request.header_title")," (",this.stageRequestedParticipants.length,")"),a("ul",{class:"participants",part:"staged-participants"},this.stageRequestedParticipants.map((t=>a("li",{class:"waiting-participant",key:t.id},a("div",{class:"participant-details"},a("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),a("p",{class:"name",title:t.name},t.name)),a("div",{class:"waitlist-controls"},a("rtk-tooltip",{label:this.t("stage_request.deny_request"),variant:"secondary"},a("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectStageRequest(t)},a("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),a("rtk-tooltip",{label:this.t("stage_request.accept_request"),variant:"secondary"},a("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptStageRequest(t)},a("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),a("div",{class:"bulk-actions"},a("rtk-button",{class:"accept-all-button",variant:"secondary",onClick:this.acceptAllStageRequest},this.t("stage_request.accept_all")),a("rtk-button",{class:"deny-all-button",variant:"danger",onClick:this.denyAllStageRequest},this.t("stage_request.deny_all")))):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:column;font-size:14px}.stage-requested-participants{margin-bottom:var(--rtk-space-8, 32px)}.stage-requested-participants .bulk-actions{display:flex;gap:var(--rtk-space-2, 8px)}.stage-requested-participants .bulk-actions .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.stage-requested-participants .bulk-actions rtk-button{flex:1 1 0%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[1,"rtk-participants-stage-queue",{meeting:[16],config:[16],size:[513],iconPack:[16],view:[1],t:[16],stageRequestedParticipants:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-participants-stage-queue","rtk-avatar","rtk-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-participants-stage-queue":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-avatar":customElements.get(s(t))||o();break;case"rtk-button":customElements.get(s(t))||p();break;case"rtk-icon":customElements.get(s(t))||l();break;case"rtk-spinner":customElements.get(s(t))||d();break;case"rtk-tooltip":customElements.get(s(t))||h()}}))}u([c()],g.prototype,"meeting",void 0),u([c()],g.prototype,"config",void 0),u([c()],g.prototype,"iconPack",void 0),u([c()],g.prototype,"t",void 0),v();export{g as R,v as d}
@@ -1 +1 @@
1
- import{p as r,H as t,c as a,h as e,d as o,t as s}from"./p-BBHQOrFK.js";import{f as i,e as c}from"./p-jvwnrxra.js";import{S as n}from"./p-ByMjaTnP.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as d}from"./p-aXMUeMjU.js";import"./p-Bs5Z4Y29.js";import{d as l}from"./p-DAGCKEFc.js";import{d as p}from"./p-BYIBbfJ8.js";import{d as b}from"./p--EktoJd3.js";import{d as m}from"./p-BjZJaxt1.js";import{d as k}from"./p-Ic4M6IZs.js";import{d as f}from"./p-Bc2jtNZw.js";const v=r(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.onAction=a(this,"action",7),this.actions=[],this.variant="bubble",this.pinned=!1,this.viewType="outgoing",this.hideAvatar=!1,this.isSelf=!1,this.hideAuthorName=!1,this.hideMetadata=!1,this.iconPack=d}renderActions(){return e("rtk-menu",{placement:this.isSelf?"bottom-start":"bottom-end",offset:1},e("button",{slot:"trigger",class:"actions"},e("rtk-icon",{icon:this.iconPack.chevron_down})),e("rtk-menu-list",{menuVariant:this.isSelf?"primary":"secondary"},this.actions.map((r=>{if("edit_message"!==r.id||"text"===this.messageType)return e("rtk-menu-item",{menuVariant:this.isSelf?"primary":"secondary",onClick:()=>this.onAction.emit(r.id)},r.icon&&e("rtk-icon",{icon:r.icon,slot:"start"}),r.label)}))))}render(){return e(o,{key:"3d53fc59bda6a82e4c4753e34f915c8f62611f6b"},e("div",{key:"1f9cbd79c9e5526645fafd0c4436b91c6c612f08",class:{"message-wrapper":!0,[this.viewType]:!0}},!this.hideAvatar&&e("aside",{key:"23071b4dff9dd4ecc1385be9a1610ffbab98a9e9",class:"avatar",part:"avatar"},e("rtk-avatar",{key:"9a4596ea3636188ef391e65f86d6a608b3aa02d5",participant:{name:this.authorName,picture:this.avatarUrl},size:"sm"})),e("div",{key:"eefe1bf5803e371266a0b8ee230dd2f42a193dc2",class:"message",part:"message"},!this.hideAuthorName&&e("div",{key:"45ba437f7a3ba2b253f22a1885d7e5be954a387e",class:"header"},this.authorName," ",this.isSelf?" (You)":""),e("div",{key:"e9636fb45358423d5cc4e8144b6b47cf065117cc",class:{body:!0,bubble:"bubble"===this.variant}},e("slot",{key:"1d6cd92eb8d4514b7ae4266fae8cd060a56ac1e3"}),!this.hideMetadata&&!!this.time&&e("div",{key:"77b29974a960e4b4809025305ce005aeab8edebc",class:"metadata",title:i(this.time)},this.pinned&&e("span",{key:"e6b99085f2cbcbc9505c20e5407a98c382306614",class:"metadata-content"},e("rtk-icon",{key:"45ad875ef38b1db0105c85659cf938cc9bd792d8",icon:this.iconPack.pin,size:"sm"})," •"),this.isEdited&&e("span",{key:"48d5ecd659fe2308d8c33e94a2216049a2bea5ef",class:"metadata-content"},e("span",{key:"9203ff6d3f65b81b875f5bc17231fd2c65c1c2c2"},"Edited")," •"),c(this.time,new Date(Date.now()))),0!==this.actions.length&&this.renderActions()))))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{max-width:var(--rtk-space-96, 384px)}.message-wrapper{display:flex;flex-direction:row-reverse;align-items:flex-start;gap:var(--rtk-space-2, 8px)}.message-wrapper.incoming{flex-direction:row}.message{display:flex;flex-direction:column;align-items:flex-end}.incoming .message{display:flex;flex-direction:column;align-items:flex-start}.header{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);align-self:flex-end;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));font-size:12px;font-weight:600}.incoming .header{align-self:flex-start}.body{display:flex;flex-direction:column;min-width:var(--rtk-space-24, 96px);font-family:var(--rtk-font-family, sans-serif);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));font-size:14px;line-height:1.375;position:relative}.bubble{max-width:90%;padding:var(--rtk-space-2, 8px);border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));--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)));border-radius:var(--rtk-border-radius-md, 8px);line-height:1}.incoming .bubble{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--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-900, 255 255 255 / 0.88))}.metadata{margin-top:var(--rtk-space-1, 4px);display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-1, 4px);align-self:flex-end;font-size:11px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.incoming .metadata{margin-top:var(--rtk-space-1, 4px);display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-1, 4px);align-self:flex-end;font-size:11px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.metadata-content{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-1, 4px)}.avatar{display:none}rtk-menu{position:absolute;right:var(--rtk-space-1, 4px);top:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-lg, 12px)}rtk-menu rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);cursor:pointer}.actions{display:flex;align-items:center;justify-content:center;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));padding:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none}.actions rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.incoming rtk-avatar{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.incoming .actions{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}@media (min-width: 400px){.avatar{display:flex;width:var(--rtk-space-6, 24px)}.avatar rtk-avatar{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);font-size:10px;overflow:clip;border-radius:9999px}}@media (hover: hover){rtk-menu{visibility:hidden}.body:hover rtk-menu{visibility:visible}}"}},[257,"rtk-message-view",{actions:[16],messageType:[1,"message-type"],isEdited:[4,"is-edited"],variant:[1],pinned:[4],viewType:[1,"view-type"],avatarUrl:[1,"avatar-url"],hideAvatar:[4,"hide-avatar"],authorName:[1,"author-name"],isSelf:[4,"is-self"],hideAuthorName:[4,"hide-author-name"],hideMetadata:[4,"hide-metadata"],time:[16],iconPack:[16]}]);function g(){"undefined"!=typeof customElements&&["rtk-message-view","rtk-avatar","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner"].forEach((r=>{switch(r){case"rtk-message-view":customElements.get(s(r))||customElements.define(s(r),v);break;case"rtk-avatar":customElements.get(s(r))||l();break;case"rtk-icon":customElements.get(s(r))||p();break;case"rtk-menu":customElements.get(s(r))||b();break;case"rtk-menu-item":customElements.get(s(r))||m();break;case"rtk-menu-list":customElements.get(s(r))||k();break;case"rtk-spinner":customElements.get(s(r))||f()}}))}(function(r,t,a,e){var o,s=arguments.length,i=s<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,t,a,e);else for(var c=r.length-1;c>=0;c--)(o=r[c])&&(i=(s<3?o(i):s>3?o(t,a,i):o(t,a))||i);s>3&&i&&Object.defineProperty(t,a,i)})([n()],v.prototype,"iconPack",void 0),g();export{v as R,g as d}
1
+ import{p as r,H as t,c as a,h as e,d as o,t as s}from"./p-BBHQOrFK.js";import{f as i,e as c}from"./p-jvwnrxra.js";import{S as n}from"./p-CNJG60uZ.js";import"./p-Rq_6y0HI.js";import{e as d}from"./p-BbVYO_6g.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{d as l}from"./p-BY_hQMNu.js";import{d as p}from"./p-BYIBbfJ8.js";import{d as b}from"./p-CpLLOHOq.js";import{d as m}from"./p-DLWL-o6Z.js";import{d as k}from"./p-CoiejzBd.js";import{d as f}from"./p-BJ7Hcvk1.js";const v=r(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.onAction=a(this,"action",7),this.actions=[],this.variant="bubble",this.pinned=!1,this.viewType="outgoing",this.hideAvatar=!1,this.isSelf=!1,this.hideAuthorName=!1,this.hideMetadata=!1,this.iconPack=d}renderActions(){return e("rtk-menu",{placement:this.isSelf?"bottom-start":"bottom-end",offset:1},e("button",{slot:"trigger",class:"actions"},e("rtk-icon",{icon:this.iconPack.chevron_down})),e("rtk-menu-list",{menuVariant:this.isSelf?"primary":"secondary"},this.actions.map((r=>{if("edit_message"!==r.id||"text"===this.messageType)return e("rtk-menu-item",{menuVariant:this.isSelf?"primary":"secondary",onClick:()=>this.onAction.emit(r.id)},r.icon&&e("rtk-icon",{icon:r.icon,slot:"start"}),r.label)}))))}render(){return e(o,{key:"3d53fc59bda6a82e4c4753e34f915c8f62611f6b"},e("div",{key:"1f9cbd79c9e5526645fafd0c4436b91c6c612f08",class:{"message-wrapper":!0,[this.viewType]:!0}},!this.hideAvatar&&e("aside",{key:"23071b4dff9dd4ecc1385be9a1610ffbab98a9e9",class:"avatar",part:"avatar"},e("rtk-avatar",{key:"9a4596ea3636188ef391e65f86d6a608b3aa02d5",participant:{name:this.authorName,picture:this.avatarUrl},size:"sm"})),e("div",{key:"eefe1bf5803e371266a0b8ee230dd2f42a193dc2",class:"message",part:"message"},!this.hideAuthorName&&e("div",{key:"45ba437f7a3ba2b253f22a1885d7e5be954a387e",class:"header"},this.authorName," ",this.isSelf?" (You)":""),e("div",{key:"e9636fb45358423d5cc4e8144b6b47cf065117cc",class:{body:!0,bubble:"bubble"===this.variant}},e("slot",{key:"1d6cd92eb8d4514b7ae4266fae8cd060a56ac1e3"}),!this.hideMetadata&&!!this.time&&e("div",{key:"77b29974a960e4b4809025305ce005aeab8edebc",class:"metadata",title:i(this.time)},this.pinned&&e("span",{key:"e6b99085f2cbcbc9505c20e5407a98c382306614",class:"metadata-content"},e("rtk-icon",{key:"45ad875ef38b1db0105c85659cf938cc9bd792d8",icon:this.iconPack.pin,size:"sm"})," •"),this.isEdited&&e("span",{key:"48d5ecd659fe2308d8c33e94a2216049a2bea5ef",class:"metadata-content"},e("span",{key:"9203ff6d3f65b81b875f5bc17231fd2c65c1c2c2"},"Edited")," •"),c(this.time,new Date(Date.now()))),0!==this.actions.length&&this.renderActions()))))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{max-width:var(--rtk-space-96, 384px)}.message-wrapper{display:flex;flex-direction:row-reverse;align-items:flex-start;gap:var(--rtk-space-2, 8px)}.message-wrapper.incoming{flex-direction:row}.message{display:flex;flex-direction:column;align-items:flex-end}.incoming .message{display:flex;flex-direction:column;align-items:flex-start}.header{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);align-self:flex-end;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));font-size:12px;font-weight:600}.incoming .header{align-self:flex-start}.body{display:flex;flex-direction:column;min-width:var(--rtk-space-24, 96px);font-family:var(--rtk-font-family, sans-serif);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));font-size:14px;line-height:1.375;position:relative}.bubble{max-width:90%;padding:var(--rtk-space-2, 8px);border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));--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)));border-radius:var(--rtk-border-radius-md, 8px);line-height:1}.incoming .bubble{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--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-900, 255 255 255 / 0.88))}.metadata{margin-top:var(--rtk-space-1, 4px);display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-1, 4px);align-self:flex-end;font-size:11px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.incoming .metadata{margin-top:var(--rtk-space-1, 4px);display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-1, 4px);align-self:flex-end;font-size:11px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.metadata-content{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-1, 4px)}.avatar{display:none}rtk-menu{position:absolute;right:var(--rtk-space-1, 4px);top:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-lg, 12px)}rtk-menu rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);cursor:pointer}.actions{display:flex;align-items:center;justify-content:center;border-width:1px;border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));padding:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none}.actions rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.incoming rtk-avatar{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.incoming .actions{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}@media (min-width: 400px){.avatar{display:flex;width:var(--rtk-space-6, 24px)}.avatar rtk-avatar{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);font-size:10px;overflow:clip;border-radius:9999px}}@media (hover: hover){rtk-menu{visibility:hidden}.body:hover rtk-menu{visibility:visible}}"}},[257,"rtk-message-view",{actions:[16],messageType:[1,"message-type"],isEdited:[4,"is-edited"],variant:[1],pinned:[4],viewType:[1,"view-type"],avatarUrl:[1,"avatar-url"],hideAvatar:[4,"hide-avatar"],authorName:[1,"author-name"],isSelf:[4,"is-self"],hideAuthorName:[4,"hide-author-name"],hideMetadata:[4,"hide-metadata"],time:[16],iconPack:[16]}]);function g(){"undefined"!=typeof customElements&&["rtk-message-view","rtk-avatar","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner"].forEach((r=>{switch(r){case"rtk-message-view":customElements.get(s(r))||customElements.define(s(r),v);break;case"rtk-avatar":customElements.get(s(r))||l();break;case"rtk-icon":customElements.get(s(r))||p();break;case"rtk-menu":customElements.get(s(r))||b();break;case"rtk-menu-item":customElements.get(s(r))||m();break;case"rtk-menu-list":customElements.get(s(r))||k();break;case"rtk-spinner":customElements.get(s(r))||f()}}))}(function(r,t,a,e){var o,s=arguments.length,i=s<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,t,a,e);else for(var c=r.length-1;c>=0;c--)(o=r[c])&&(i=(s<3?o(i):s>3?o(t,a,i):o(t,a))||i);s>3&&i&&Object.defineProperty(t,a,i)})([n()],v.prototype,"iconPack",void 0),g();export{v as R,g as d}
@@ -1 +1 @@
1
- import{p as t,H as i,h as o,d as e,t as n}from"./p-BBHQOrFK.js";import{c as s,i as r}from"./p-aXMUeMjU.js";import{S as l}from"./p-ByMjaTnP.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";var a=function(t,i,o,e){var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,o,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,o,r):n(i,o))||r);return s>3&&r&&Object.defineProperty(i,o,r),r};const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=s(),this.t=r()}connectedCallback(){this.configChanged(this.config),this.meetingChanged(this.meeting)}configChanged(t){var i;if(null!=t){const o=null===(i=null==t?void 0:t.designTokens)||void 0===i?void 0:i.logo;null!=o&&null==this.logoUrl&&(this.logoUrl=o)}}meetingChanged(t){var i,o,e,n;if(null!=t){const s=null===(n=null===(e=null===(o=null===(i=t.self)||void 0===i?void 0:i.config)||void 0===o?void 0:o.header)||void 0===e?void 0:e.elements)||void 0===n?void 0:n.logo;null!=s&&null==this.logoUrl&&(this.logoUrl=s)}}render(){if(!this.logoUrl||""===this.logoUrl)return null;const t=this.logoUrl,i=this.t("logo");return o(e,{class:"loaded"},o("img",{src:t,alt:i}))}static get watchers(){return{config:[{configChanged:0}],meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;flex-direction:column;align-items:center;justify-content:center;color:rgb(var(--rtk-colors-text-1000, 255 255 255));height:100%;width:auto}svg,img{height:100%;width:auto}.brand-color{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}"}},[1,"rtk-logo",{logoUrl:[1025,"logo-url"],config:[16],meeting:[16],t:[16]},void 0,{config:[{configChanged:0}],meeting:[{meetingChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-logo"].forEach((t=>{"rtk-logo"===t&&(customElements.get(n(t))||customElements.define(n(t),c))}))}a([l()],c.prototype,"config",void 0),a([l()],c.prototype,"meeting",void 0),a([l()],c.prototype,"t",void 0),g();export{c as R,g as d}
1
+ import{p as t,H as i,h as o,d as e,t as n}from"./p-BBHQOrFK.js";import{c as s,i as r}from"./p-BbVYO_6g.js";import{S as l}from"./p-CNJG60uZ.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";var a=function(t,i,o,e){var n,s=arguments.length,r=s<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,o,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(i,o,r):n(i,o))||r);return s>3&&r&&Object.defineProperty(i,o,r),r};const c=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=s(),this.t=r()}connectedCallback(){this.configChanged(this.config),this.meetingChanged(this.meeting)}configChanged(t){var i;if(null!=t){const o=null===(i=null==t?void 0:t.designTokens)||void 0===i?void 0:i.logo;null!=o&&null==this.logoUrl&&(this.logoUrl=o)}}meetingChanged(t){var i,o,e,n;if(null!=t){const s=null===(n=null===(e=null===(o=null===(i=t.self)||void 0===i?void 0:i.config)||void 0===o?void 0:o.header)||void 0===e?void 0:e.elements)||void 0===n?void 0:n.logo;null!=s&&null==this.logoUrl&&(this.logoUrl=s)}}render(){if(!this.logoUrl||""===this.logoUrl)return null;const t=this.logoUrl,i=this.t("logo");return o(e,{class:"loaded"},o("img",{src:t,alt:i}))}static get watchers(){return{config:[{configChanged:0}],meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;flex-direction:column;align-items:center;justify-content:center;color:rgb(var(--rtk-colors-text-1000, 255 255 255));height:100%;width:auto}svg,img{height:100%;width:auto}.brand-color{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}"}},[1,"rtk-logo",{logoUrl:[1025,"logo-url"],config:[16],meeting:[16],t:[16]},void 0,{config:[{configChanged:0}],meeting:[{meetingChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-logo"].forEach((t=>{"rtk-logo"===t&&(customElements.get(n(t))||customElements.define(n(t),c))}))}a([l()],c.prototype,"config",void 0),a([l()],c.prototype,"meeting",void 0),a([l()],c.prototype,"t",void 0),g();export{c as R,g as d}
@@ -1 +1 @@
1
- import{p as t,H as e,w as i,h as r,d as a,t as s}from"./p-BBHQOrFK.js";import{e as o,i as n}from"./p-aXMUeMjU.js";import{S as c}from"./p-ByMjaTnP.js";import{d as p}from"./p-BYIBbfJ8.js";var l=function(t,e,i,r){var a,s=arguments.length,o=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(s<3?a(o):s>3?a(e,i,o):a(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.variant="full",this.t=n(),this.videoDevices=[],this.canProduceVideo=!0,this.stageStateListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.deviceListUpdateListener=({devices:t})=>{this.videoDevices=t.filter((t=>"videoinput"===t.kind))},this.deviceUpdateListener=({device:t})=>{"videoinput"===t.kind&&(this.currentDevice=t)},this.mediaPermissionUpdateListener=async({kind:t,message:e})=>{this.meeting&&"video"===t&&"ACCEPTED"===e&&(this.videoDevices=await this.meeting.self.getVideoDevices())}}meetingChanged(t){var e,r,a;t&&(null===(e=t.self)||void 0===e||e.addListener("deviceListUpdate",this.deviceListUpdateListener),null===(r=t.self)||void 0===r||r.addListener("deviceUpdate",this.deviceUpdateListener),null===(a=t.self)||void 0===a||a.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),i((async()=>{var e,i;const r=await t.self.getVideoDevices(),a=null===(e=t.self.getCurrentDevices())||void 0===e?void 0:e.video;this.videoDevices=null!=a?[null!==(i=r.find((t=>t.deviceId===a.deviceId)))&&void 0!==i?i:a,...r.filter((t=>t.deviceId!==a.deviceId))]:r})))}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e,i,r,a;null===(e=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===e||e.removeListener("stageStatusUpdate",this.stageStateListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(r=this.meeting)||void 0===r||r.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(a=this.meeting)||void 0===a||a.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener)}async setDevice(t){var e;const i=this.videoDevices.find((e=>e.deviceId===t));this.currentDevice=i,null!=i&&await(null===(e=this.meeting)||void 0===e?void 0:e.self.setDevice(i))}render(){if(!this.meeting)return null;let t=0;return r(a,null,this.canProduceVideo&&r("div",{class:"group container "+this.variant,part:"camera-selection"},r("label",null,"inline"!==this.variant&&this.t("camera"),r("rtk-icon",{icon:this.iconPack.video_on,size:"sm"})),r("div",{class:"row"},r("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.videoDevices.map((({deviceId:e,label:i})=>{var a;return r("option",{selected:(null===(a=this.currentDevice)||void 0===a?void 0:a.deviceId)===e,value:e},i||"Camera "+ ++t)}))))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return".rtk-select{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline.container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}"}},[1,"rtk-camera-selector",{meeting:[16],size:[513],iconPack:[16],variant:[1],t:[16],videoDevices:[32],currentDevice:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-camera-selector","rtk-icon"].forEach((t=>{switch(t){case"rtk-camera-selector":customElements.get(s(t))||customElements.define(s(t),d);break;case"rtk-icon":customElements.get(s(t))||p()}}))}l([c()],d.prototype,"meeting",void 0),l([c()],d.prototype,"iconPack",void 0),l([c()],d.prototype,"t",void 0),v();export{d as R,v as d}
1
+ import{p as t,H as e,w as i,h as r,d as a,t as s}from"./p-BBHQOrFK.js";import{e as o,i as n}from"./p-BbVYO_6g.js";import{S as c}from"./p-CNJG60uZ.js";import{d as p}from"./p-BYIBbfJ8.js";var l=function(t,e,i,r){var a,s=arguments.length,o=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(s<3?a(o):s>3?a(e,i,o):a(e,i))||o);return s>3&&o&&Object.defineProperty(e,i,o),o};const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.variant="full",this.t=n(),this.videoDevices=[],this.canProduceVideo=!0,this.stageStateListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.deviceListUpdateListener=({devices:t})=>{this.videoDevices=t.filter((t=>"videoinput"===t.kind))},this.deviceUpdateListener=({device:t})=>{"videoinput"===t.kind&&(this.currentDevice=t)},this.mediaPermissionUpdateListener=async({kind:t,message:e})=>{this.meeting&&"video"===t&&"ACCEPTED"===e&&(this.videoDevices=await this.meeting.self.getVideoDevices())}}meetingChanged(t){var e,r,a;t&&(null===(e=t.self)||void 0===e||e.addListener("deviceListUpdate",this.deviceListUpdateListener),null===(r=t.self)||void 0===r||r.addListener("deviceUpdate",this.deviceUpdateListener),null===(a=t.self)||void 0===a||a.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),i((async()=>{var e,i;const r=await t.self.getVideoDevices(),a=null===(e=t.self.getCurrentDevices())||void 0===e?void 0:e.video;this.videoDevices=null!=a?[null!==(i=r.find((t=>t.deviceId===a.deviceId)))&&void 0!==i?i:a,...r.filter((t=>t.deviceId!==a.deviceId))]:r})))}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e,i,r,a;null===(e=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===e||e.removeListener("stageStatusUpdate",this.stageStateListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(r=this.meeting)||void 0===r||r.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(a=this.meeting)||void 0===a||a.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener)}async setDevice(t){var e;const i=this.videoDevices.find((e=>e.deviceId===t));this.currentDevice=i,null!=i&&await(null===(e=this.meeting)||void 0===e?void 0:e.self.setDevice(i))}render(){if(!this.meeting)return null;let t=0;return r(a,null,this.canProduceVideo&&r("div",{class:"group container "+this.variant,part:"camera-selection"},r("label",null,"inline"!==this.variant&&this.t("camera"),r("rtk-icon",{icon:this.iconPack.video_on,size:"sm"})),r("div",{class:"row"},r("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.videoDevices.map((({deviceId:e,label:i})=>{var a;return r("option",{selected:(null===(a=this.currentDevice)||void 0===a?void 0:a.deviceId)===e,value:e},i||"Camera "+ ++t)}))))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return".rtk-select{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline.container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}"}},[1,"rtk-camera-selector",{meeting:[16],size:[513],iconPack:[16],variant:[1],t:[16],videoDevices:[32],currentDevice:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-camera-selector","rtk-icon"].forEach((t=>{switch(t){case"rtk-camera-selector":customElements.get(s(t))||customElements.define(s(t),d);break;case"rtk-icon":customElements.get(s(t))||p()}}))}l([c()],d.prototype,"meeting",void 0),l([c()],d.prototype,"iconPack",void 0),l([c()],d.prototype,"t",void 0),v();export{d as R,v as d}
@@ -1 +1 @@
1
- import{p as e,H as a,h as t,t as i}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as r}from"./p-aXMUeMjU.js";import"./p-Bs5Z4Y29.js";import{a as s}from"./p-CJsXePY3.js";import{S as c}from"./p-ByMjaTnP.js";import{g as o,a as f,d as l}from"./p-DDaHXyCC.js";import{d as p}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";const n=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.iconPack=r}render(){return t("div",{key:"10de68cdb7ebb9bc5579f1d26ac20b00909f5236",class:"file"},t("rtk-button",{key:"ba255f55de300a1d9cbc4ccf3fb5ec3f93670d50",variant:"secondary",kind:"icon",onClick:()=>l(s(this.url),{name:this.name,fallbackName:"file"}),part:"button"},t("rtk-icon",{key:"2ff668ad0b4b48f0cb05acc9f62727bf4cb9bbd5",icon:this.iconPack.download})),t("div",{key:"4b77a03fc4896994430c1bf814767622e5c21cf4",class:"file-data"},t("div",{key:"df4dfdf5d2cffb47cc635c8bc410e5bd3f478570",class:"name"},this.name),t("div",{key:"6bafabd74cc4d6fe0585874542f183519c6e1000",class:"file-data-split"},t("div",{key:"5ba6f3fcc10a2d8e580e584597c946c650e6d58c",class:"ext"},o(this.name)),t("span",{key:"682887e1f3ebaf33c48704f7443bb1de3c3c5201",class:"divider"}),t("div",{key:"fc2c82f17558a794a2192c9e4a23d9888a176b6e",class:"size"},f(this.size)))))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.file{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.file .file-data{margin-left:var(--rtk-space-1, 4px);flex:1 1 0%}.file .file-data .name{word-break:break-all;color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split{margin-top:var(--rtk-space-0\\.5, 2px);display:flex;align-items:center;font-size:12px}.file .file-data .file-data-split .ext{margin-right:var(--rtk-space-2, 8px);text-transform:uppercase;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split .divider{height:var(--rtk-space-4, 16px);width:var(--rtk-space-0\\.5, 2px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.file .file-data .file-data-split .size{margin-left:var(--rtk-space-2, 8px)}"}},[1,"rtk-file-message-view",{name:[1],size:[2],url:[1],iconPack:[16]}]);function b(){"undefined"!=typeof customElements&&["rtk-file-message-view","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-file-message-view":customElements.get(i(e))||customElements.define(i(e),n);break;case"rtk-button":customElements.get(i(e))||p();break;case"rtk-icon":customElements.get(i(e))||d()}}))}(function(e,a,t,i){var r,s=arguments.length,c=s<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,a,t,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(c=(s<3?r(c):s>3?r(a,t,c):r(a,t))||c);s>3&&c&&Object.defineProperty(a,t,c)})([c()],n.prototype,"iconPack",void 0),b();export{n as R,b as d}
1
+ import{p as e,H as a,h as t,t as i}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{e as r}from"./p-BbVYO_6g.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{a as s}from"./p-CJsXePY3.js";import{S as c}from"./p-CNJG60uZ.js";import{g as o,a as f,d as l}from"./p-DDaHXyCC.js";import{d as p}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";const n=e(class extends a{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.iconPack=r}render(){return t("div",{key:"10de68cdb7ebb9bc5579f1d26ac20b00909f5236",class:"file"},t("rtk-button",{key:"ba255f55de300a1d9cbc4ccf3fb5ec3f93670d50",variant:"secondary",kind:"icon",onClick:()=>l(s(this.url),{name:this.name,fallbackName:"file"}),part:"button"},t("rtk-icon",{key:"2ff668ad0b4b48f0cb05acc9f62727bf4cb9bbd5",icon:this.iconPack.download})),t("div",{key:"4b77a03fc4896994430c1bf814767622e5c21cf4",class:"file-data"},t("div",{key:"df4dfdf5d2cffb47cc635c8bc410e5bd3f478570",class:"name"},this.name),t("div",{key:"6bafabd74cc4d6fe0585874542f183519c6e1000",class:"file-data-split"},t("div",{key:"5ba6f3fcc10a2d8e580e584597c946c650e6d58c",class:"ext"},o(this.name)),t("span",{key:"682887e1f3ebaf33c48704f7443bb1de3c3c5201",class:"divider"}),t("div",{key:"fc2c82f17558a794a2192c9e4a23d9888a176b6e",class:"size"},f(this.size)))))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.file{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.file .file-data{margin-left:var(--rtk-space-1, 4px);flex:1 1 0%}.file .file-data .name{word-break:break-all;color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split{margin-top:var(--rtk-space-0\\.5, 2px);display:flex;align-items:center;font-size:12px}.file .file-data .file-data-split .ext{margin-right:var(--rtk-space-2, 8px);text-transform:uppercase;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.file .file-data .file-data-split .divider{height:var(--rtk-space-4, 16px);width:var(--rtk-space-0\\.5, 2px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.file .file-data .file-data-split .size{margin-left:var(--rtk-space-2, 8px)}"}},[1,"rtk-file-message-view",{name:[1],size:[2],url:[1],iconPack:[16]}]);function b(){"undefined"!=typeof customElements&&["rtk-file-message-view","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-file-message-view":customElements.get(i(e))||customElements.define(i(e),n);break;case"rtk-button":customElements.get(i(e))||p();break;case"rtk-icon":customElements.get(i(e))||d()}}))}(function(e,a,t,i){var r,s=arguments.length,c=s<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,a,t,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(c=(s<3?r(c):s>3?r(a,t,c):r(a,t))||c);s>3&&c&&Object.defineProperty(a,t,c)})([c()],n.prototype,"iconPack",void 0),b();export{n as R,b as d}
@@ -1 +1 @@
1
- import{p as t,H as i,h as e,d as r,t as n}from"./p-BBHQOrFK.js";import{e as a,i as s}from"./p-aXMUeMjU.js";import{S as o}from"./p-ByMjaTnP.js";import{d as c}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";var d=function(t,i,e,r){var n,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(s=(a<3?n(s):a>3?n(i,e,s):n(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=a,this.t=s(),this.canDeactivatePlugin=!1}connectedCallback(){this.pluginChanged(this.plugin)}pluginChanged(t){var i,e;null!=t&&(this.canDeactivatePlugin=null!==(e=null===(i=t.permissions)||void 0===i?void 0:i.canDeactivate)&&void 0!==e&&e,this.attachView(t))}attachView(t){const e=t.component;if(e instanceof i&&this.host.firstElementChild!==e){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild);this.host.appendChild(e)}}disconnectedCallback(){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild)}render(){return null==this.plugin?null:e(r,null,e("header",{part:"header"},e("div",null,this.plugin.name),this.canDeactivatePlugin&&e("div",null,e("rtk-button",{kind:"icon",onClick:()=>this.plugin.deactivate(),part:"button"},e("rtk-icon",{icon:this.iconPack.dismiss})))),e("div",{class:"view-container"},e("slot",null)))}get host(){return this}static get watchers(){return{plugin:[{pluginChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}header>div{display:flex;align-items:center}rtk-button{display:flex;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-direction:column;align-items:center;border-radius:9999px}rtk-button rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.view-container{position:relative;height:100%;width:100%;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity))}.view-container ::slotted(*){width:100%;height:100%;display:block}"}},[257,"rtk-plugin-main",{meeting:[16],plugin:[16],iconPack:[16],t:[16],canDeactivatePlugin:[32]},void 0,{plugin:[{pluginChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["rtk-plugin-main","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-plugin-main":customElements.get(n(t))||customElements.define(n(t),p);break;case"rtk-button":customElements.get(n(t))||c();break;case"rtk-icon":customElements.get(n(t))||l()}}))}d([o()],p.prototype,"meeting",void 0),d([o()],p.prototype,"iconPack",void 0),d([o()],p.prototype,"t",void 0),h();export{p as R,h as d}
1
+ import{p as t,H as i,h as e,d as r,t as n}from"./p-BBHQOrFK.js";import{e as a,i as s}from"./p-BbVYO_6g.js";import{S as o}from"./p-CNJG60uZ.js";import{d as c}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";var d=function(t,i,e,r){var n,a=arguments.length,s=a<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(s=(a<3?n(s):a>3?n(i,e,s):n(i,e))||s);return a>3&&s&&Object.defineProperty(i,e,s),s};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=a,this.t=s(),this.canDeactivatePlugin=!1}connectedCallback(){this.pluginChanged(this.plugin)}pluginChanged(t){var i,e;null!=t&&(this.canDeactivatePlugin=null!==(e=null===(i=t.permissions)||void 0===i?void 0:i.canDeactivate)&&void 0!==e&&e,this.attachView(t))}attachView(t){const e=t.component;if(e instanceof i&&this.host.firstElementChild!==e){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild);this.host.appendChild(e)}}disconnectedCallback(){for(;this.host.firstChild;)this.host.removeChild(this.host.firstChild)}render(){return null==this.plugin?null:e(r,null,e("header",{part:"header"},e("div",null,this.plugin.name),this.canDeactivatePlugin&&e("div",null,e("rtk-button",{kind:"icon",onClick:()=>this.plugin.deactivate(),part:"button"},e("rtk-icon",{icon:this.iconPack.dismiss})))),e("div",{class:"view-container"},e("slot",null)))}get host(){return this}static get watchers(){return{plugin:[{pluginChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}header>div{display:flex;align-items:center}rtk-button{display:flex;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-direction:column;align-items:center;border-radius:9999px}rtk-button rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}.view-container{position:relative;height:100%;width:100%;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity))}.view-container ::slotted(*){width:100%;height:100%;display:block}"}},[257,"rtk-plugin-main",{meeting:[16],plugin:[16],iconPack:[16],t:[16],canDeactivatePlugin:[32]},void 0,{plugin:[{pluginChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["rtk-plugin-main","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-plugin-main":customElements.get(n(t))||customElements.define(n(t),p);break;case"rtk-button":customElements.get(n(t))||c();break;case"rtk-icon":customElements.get(n(t))||l()}}))}d([o()],p.prototype,"meeting",void 0),d([o()],p.prototype,"iconPack",void 0),d([o()],p.prototype,"t",void 0),h();export{p as R,h as d}
@@ -1 +1 @@
1
- import{p as t,H as i,h as e,d as s,t as r}from"./p-BBHQOrFK.js";import{e as o,i as a}from"./p-aXMUeMjU.js";import{S as n}from"./p-ByMjaTnP.js";import{d as c}from"./p-BYIBbfJ8.js";import{d as p}from"./p-DHSRRtn3.js";var h=function(t,i,e,s){var r,o=arguments.length,a=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(o<3?r(a):o>3?r(i,e,a):r(i,e))||a);return o>3&&a&&Object.defineProperty(i,e,a),a};const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.t=a(),this.permissionsUpdateListener=()=>{this.canSpotlight=this.meeting.self.permissions.canSpotlight}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){var i,e;null!=t&&(this.canSpotlight=t.self.permissions.canSpotlight,this.isSpotlighted=null!==(e=null===(i=t.meta)||void 0===i?void 0:i.broadcastTabChanges)&&void 0!==e&&e,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}updateSpotlightState(t){var i;try{null===(i=this.meeting.meta)||void 0===i||i.setBroadcastTabChanges(t),this.isSpotlighted=t}catch(t){console.error(t)}}render(){if(this.canSpotlight)return e(s,null,e("rtk-tooltip",{size:"md",label:this.t("remote_access.indicator")},e("div",{id:"sync-button",class:{tab:!0,active:this.isSpotlighted},onClick:()=>this.updateSpotlightState(!this.isSpotlighted)},e("span",{class:"name"},"Sync"),e("rtk-icon",{id:"icon",icon:this.isSpotlighted?this.iconPack.checkmark:this.iconPack.warning,tabIndex:-1,"aria-hidden":!0}))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{font-size:12px}#sync-button{flex-direction:row;border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-1, 4px);display:flex;align-items:center;justify-content:center;margin-bottom:var(--rtk-space-1, 4px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) rtk-tooltip,:host([size='md']) rtk-tooltip{width:100%}:host([size='sm'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px);padding-left:var(--rtk-space-0, 0px)}:host([size='md'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}:host([size='lg'])>#sync-button{flex-direction:row;height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}@media (orientation: portrait){:host([size='lg']) #sync-button{flex-direction:column-reverse;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='md']) #sync-button{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='sm']) #sync-button{height:var(--rtk-space-10, 40px);width:var(--rtk-space-16, 64px);flex-direction:row}}#sync-button>rtk-icon{max-height:14px}#sync-button rtk-icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']) #sync-button>rtk-icon{width:auto}#sync-button.active rtk-icon{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}div{align-content:center;line-height:2rem}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-8, 32px)}#sync-button.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-bg-opacity))}"}},[1,"rtk-spotlight-indicator",{meeting:[16],iconPack:[16],t:[16],size:[513],canSpotlight:[32],isSpotlighted:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function d(){"undefined"!=typeof customElements&&["rtk-spotlight-indicator","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-spotlight-indicator":customElements.get(r(t))||customElements.define(r(t),l);break;case"rtk-icon":customElements.get(r(t))||c();break;case"rtk-tooltip":customElements.get(r(t))||p()}}))}h([n()],l.prototype,"meeting",void 0),h([n()],l.prototype,"iconPack",void 0),h([n()],l.prototype,"t",void 0),d();export{l as R,d}
1
+ import{p as t,H as i,h as e,d as s,t as r}from"./p-BBHQOrFK.js";import{e as o,i as a}from"./p-BbVYO_6g.js";import{S as n}from"./p-CNJG60uZ.js";import{d as c}from"./p-BYIBbfJ8.js";import{d as p}from"./p-DHSRRtn3.js";var h=function(t,i,e,s){var r,o=arguments.length,a=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(o<3?r(a):o>3?r(i,e,a):r(i,e))||a);return o>3&&a&&Object.defineProperty(i,e,a),a};const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.t=a(),this.permissionsUpdateListener=()=>{this.canSpotlight=this.meeting.self.permissions.canSpotlight}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){var i,e;null!=t&&(this.canSpotlight=t.self.permissions.canSpotlight,this.isSpotlighted=null!==(e=null===(i=t.meta)||void 0===i?void 0:i.broadcastTabChanges)&&void 0!==e&&e,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}updateSpotlightState(t){var i;try{null===(i=this.meeting.meta)||void 0===i||i.setBroadcastTabChanges(t),this.isSpotlighted=t}catch(t){console.error(t)}}render(){if(this.canSpotlight)return e(s,null,e("rtk-tooltip",{size:"md",label:this.t("remote_access.indicator")},e("div",{id:"sync-button",class:{tab:!0,active:this.isSpotlighted},onClick:()=>this.updateSpotlightState(!this.isSpotlighted)},e("span",{class:"name"},"Sync"),e("rtk-icon",{id:"icon",icon:this.isSpotlighted?this.iconPack.checkmark:this.iconPack.warning,tabIndex:-1,"aria-hidden":!0}))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{font-size:12px}#sync-button{flex-direction:row;border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-1, 4px);display:flex;align-items:center;justify-content:center;margin-bottom:var(--rtk-space-1, 4px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) rtk-tooltip,:host([size='md']) rtk-tooltip{width:100%}:host([size='sm'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px);padding-left:var(--rtk-space-0, 0px)}:host([size='md'])>#sync-button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}:host([size='lg'])>#sync-button{flex-direction:row;height:var(--rtk-space-8, 32px);width:var(--rtk-space-16, 64px)}@media (orientation: portrait){:host([size='lg']) #sync-button{flex-direction:column-reverse;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='md']) #sync-button{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px)}:host([size='sm']) #sync-button{height:var(--rtk-space-10, 40px);width:var(--rtk-space-16, 64px);flex-direction:row}}#sync-button>rtk-icon{max-height:14px}#sync-button rtk-icon{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}:host([size='sm']) #sync-button>rtk-icon{width:auto}#sync-button.active rtk-icon{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}div{align-content:center;line-height:2rem}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-8, 32px)}#sync-button.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-bg-opacity))}"}},[1,"rtk-spotlight-indicator",{meeting:[16],iconPack:[16],t:[16],size:[513],canSpotlight:[32],isSpotlighted:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function d(){"undefined"!=typeof customElements&&["rtk-spotlight-indicator","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-spotlight-indicator":customElements.get(r(t))||customElements.define(r(t),l);break;case"rtk-icon":customElements.get(r(t))||c();break;case"rtk-tooltip":customElements.get(r(t))||p()}}))}h([n()],l.prototype,"meeting",void 0),h([n()],l.prototype,"iconPack",void 0),h([n()],l.prototype,"t",void 0),d();export{l as R,d}
@@ -1 +1 @@
1
- import{p as t,H as r,c as a,h as i,d as e,t as s}from"./p-BBHQOrFK.js";import{c as o,e as c,i as n}from"./p-aXMUeMjU.js";import{f as l,s as p}from"./p-CJsXePY3.js";import{S as h}from"./p-ByMjaTnP.js";import{d}from"./p-D6vw6bT2.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as k}from"./p-Zkjzr8ZL.js";import{d as b}from"./p-DHSRRtn3.js";var v=function(t,r,a,i){var e,s=arguments.length,o=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,i);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(o=(s<3?e(o):s>3?e(r,a,o):e(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const g=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tabChange=a(this,"tabChange",7),this.config=o(),this.layout="row",this.iconPack=c,this.t=n(),this.tabs=[]}render(){return i(e,{key:"1c4bce26c4c5baa19cd89be862922267c408ab97"},i("rtk-spotlight-indicator",{key:"496f3634771c4b9c94ff64e23fa5695e2e1532e2",meeting:this.meeting,iconPack:this.iconPack,t:this.t,size:this.size}),this.tabs.map((t=>{var r,a,e,s,o;let c=!1;if(("plugin"===(null===(r=this.activeTab)||void 0===r?void 0:r.type)&&t.plugin&&(null===(a=this.activeTab)||void 0===a?void 0:a.plugin.id)===t.plugin.id||"screenshare"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&t.participant&&(null===(s=this.activeTab)||void 0===s?void 0:s.participant.id)===t.participant.id)&&(c=!0),"screenshare"===t.type){const r=t.participant,a=l(r.name);return i("rtk-button",{title:`${a}'s Screen Share`,key:t.participant.id,kind:"icon",variant:c?"primary":"secondary",class:{tab:!0,active:c},onClick:()=>this.tabChange.emit(t)},i("div",{class:"center col"},i("rtk-icon",{icon:this.iconPack.share_screen_person}),i("span",{class:"name"},r.id===(null===(o=this.meeting)||void 0===o?void 0:o.self.id)?this.t("you"):p(a,6))))}if("plugin"===t.type){const r=t.plugin;return i("rtk-button",{title:r.name,key:r.id,kind:"icon",variant:c?"primary":"secondary",class:{tab:!0,active:c},onClick:()=>this.tabChange.emit(t)},i("div",{class:"center col"},i("img",{src:r.icon,alt:r.name}),i("span",{class:"name"},p(r.name,6))))}})))}static get style(){return".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column;gap:var(--rtk-space-2, 8px);overflow-y:auto;font-family:var(--rtk-font-family, sans-serif)}rtk-button{z-index:10}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}.tab .name{margin-top:var(--rtk-space-0\\.5, 2px)}:host([size='sm']){flex-direction:column;margin-top:var(--rtk-space-4, 16px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-x:auto}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);text-overflow:clip;min-width:100px;height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}:host([layout='column']){flex-direction:column}:host([layout='column']) .aside{flex:2;max-width:100%;width:100%}@media (orientation: portrait){:host([size='sm']){margin-top:var(--rtk-space-2, 8px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;transition:all 0.3s linear}:host([size='md']){height:var(--rtk-space-24, 96px);width:100%;flex-direction:row;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}}@media (orientation: landscape){:host([size='sm']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host([size='md']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);width:100%;text-overflow:clip;min-width:0px;min-height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-2, 8px);font-size:10px}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}}"}},[1,"rtk-tab-bar",{size:[513],meeting:[16],states:[16],config:[16],layout:[513],iconPack:[16],t:[16],activeTab:[16],tabs:[16]}]);function x(){"undefined"!=typeof customElements&&["rtk-tab-bar","rtk-button","rtk-icon","rtk-spotlight-indicator","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-tab-bar":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-button":customElements.get(s(t))||d();break;case"rtk-icon":customElements.get(s(t))||m();break;case"rtk-spotlight-indicator":customElements.get(s(t))||k();break;case"rtk-tooltip":customElements.get(s(t))||b()}}))}v([h()],g.prototype,"meeting",void 0),v([h()],g.prototype,"states",void 0),v([h()],g.prototype,"config",void 0),v([h()],g.prototype,"iconPack",void 0),v([h()],g.prototype,"t",void 0),x();export{g as R,x as d}
1
+ import{p as t,H as r,c as a,h as i,d as e,t as s}from"./p-BBHQOrFK.js";import{c as o,e as c,i as n}from"./p-BbVYO_6g.js";import{f as l,s as p}from"./p-CJsXePY3.js";import{S as h}from"./p-CNJG60uZ.js";import{d}from"./p-D6vw6bT2.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as b}from"./p-B5e4-Gnb.js";import{d as k}from"./p-DHSRRtn3.js";var v=function(t,r,a,i){var e,s=arguments.length,o=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,i);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(o=(s<3?e(o):s>3?e(r,a,o):e(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const g=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.tabChange=a(this,"tabChange",7),this.config=o(),this.layout="row",this.iconPack=c,this.t=n(),this.tabs=[]}render(){return i(e,{key:"1c4bce26c4c5baa19cd89be862922267c408ab97"},i("rtk-spotlight-indicator",{key:"496f3634771c4b9c94ff64e23fa5695e2e1532e2",meeting:this.meeting,iconPack:this.iconPack,t:this.t,size:this.size}),this.tabs.map((t=>{var r,a,e,s,o;let c=!1;if(("plugin"===(null===(r=this.activeTab)||void 0===r?void 0:r.type)&&t.plugin&&(null===(a=this.activeTab)||void 0===a?void 0:a.plugin.id)===t.plugin.id||"screenshare"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&t.participant&&(null===(s=this.activeTab)||void 0===s?void 0:s.participant.id)===t.participant.id)&&(c=!0),"screenshare"===t.type){const r=t.participant,a=l(r.name);return i("rtk-button",{title:`${a}'s Screen Share`,key:t.participant.id,kind:"icon",variant:c?"primary":"secondary",class:{tab:!0,active:c},onClick:()=>this.tabChange.emit(t)},i("div",{class:"center col"},i("rtk-icon",{icon:this.iconPack.share_screen_person}),i("span",{class:"name"},r.id===(null===(o=this.meeting)||void 0===o?void 0:o.self.id)?this.t("you"):p(a,6))))}if("plugin"===t.type){const r=t.plugin;return i("rtk-button",{title:r.name,key:r.id,kind:"icon",variant:c?"primary":"secondary",class:{tab:!0,active:c},onClick:()=>this.tabChange.emit(t)},i("div",{class:"center col"},i("img",{src:r.icon,alt:r.name}),i("span",{class:"name"},p(r.name,6))))}})))}static get style(){return".scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column;gap:var(--rtk-space-2, 8px);overflow-y:auto;font-family:var(--rtk-font-family, sans-serif)}rtk-button{z-index:10}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}.tab .name{margin-top:var(--rtk-space-0\\.5, 2px)}:host([size='sm']){flex-direction:column;margin-top:var(--rtk-space-4, 16px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-x:auto}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);text-overflow:clip;min-width:100px;height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:row;align-items:center;gap:var(--rtk-space-2, 8px)}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}:host([layout='column']){flex-direction:column}:host([layout='column']) .aside{flex:2;max-width:100%;width:100%}@media (orientation: portrait){:host([size='sm']){margin-top:var(--rtk-space-2, 8px);height:var(--rtk-space-16, 64px);width:100%;flex-direction:row;transition:all 0.3s linear}:host([size='md']){height:var(--rtk-space-24, 96px);width:100%;flex-direction:row;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}}@media (orientation: landscape){:host([size='sm']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host([size='md']){margin-right:var(--rtk-space-4, 16px);height:100%;width:var(--rtk-space-14, 56px);flex-direction:row;gap:var(--rtk-space-2, 8px);overflow-y:auto;overflow-x:hidden;transition:all 0.3s linear}:host .tab{margin:var(--rtk-space-0, 0px)}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);width:100%;text-overflow:clip;min-width:0px;min-height:40px}:host([size='sm']) .tab .col{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-2, 8px);font-size:10px}:host([size='sm']) .tab .col img,:host([size='sm']) .tab .col rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px)}:host([size='sm']) .tab .col .name{gap:var(--rtk-space-1, 4px)}}"}},[1,"rtk-tab-bar",{size:[513],meeting:[16],states:[16],config:[16],layout:[513],iconPack:[16],t:[16],activeTab:[16],tabs:[16]}]);function x(){"undefined"!=typeof customElements&&["rtk-tab-bar","rtk-button","rtk-icon","rtk-spotlight-indicator","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-tab-bar":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-button":customElements.get(s(t))||d();break;case"rtk-icon":customElements.get(s(t))||m();break;case"rtk-spotlight-indicator":customElements.get(s(t))||b();break;case"rtk-tooltip":customElements.get(s(t))||k()}}))}v([h()],g.prototype,"meeting",void 0),v([h()],g.prototype,"states",void 0),v([h()],g.prototype,"config",void 0),v([h()],g.prototype,"iconPack",void 0),v([h()],g.prototype,"t",void 0),x();export{g as R,x as d}
@@ -1 +1 @@
1
- import{p as t,H as r,c as e,h as a,d as o,t as s}from"./p-BBHQOrFK.js";import{e as i,i as c}from"./p-aXMUeMjU.js";import{S as n}from"./p-ByMjaTnP.js";import{d}from"./p-D6vw6bT2.js";import{d as p}from"./p-BYIBbfJ8.js";var l=function(t,r,e,a){var o,s=arguments.length,i=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(i=(s<3?o(i):s>3?o(r,e,i):o(r,e))||i);return s>3&&i&&Object.defineProperty(r,e,i),i};const b=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.iconPack=i,this.t=c(),this.messagePayload={to:"Everyone",message:""},this.successMessage=!1}close(){var t;null===(t=this.stateUpdate)||void 0===t||t.emit({activeBroadcastMessageModal:!1})}sendMessage(){this.successMessage=!0,setTimeout((()=>{this.close()}),2e3)}render(){return a(o,{key:"d7559b6aadff8f45387ac2f0b67ba20a18d9fed4"},a("div",{key:"8b14c6d8b673244408b681f50bed87c3ab9af8bf",class:"content-col"},a("h2",{key:"560e1e2cd73f07776fe670f4412dace898683f7e"},"Broadcast message to"),a("select",{key:"f0a8ddbcea08243f0c496cdc14916eea928ad520",onChange:t=>{this.messagePayload=Object.assign(Object.assign({},this.messagePayload),{to:t.target.value})}},a("option",{key:"daa2217e90ccd31d3a7fff136069bebe28b34da3"},"Everyone"),a("option",{key:"72133e1507e26a555875bba037d2b0cb824a16f9"},"List of rooms")),a("textarea",{key:"eb523131f3bbe458cf802db5860029b2ce69c74f",placeholder:"Type message here...",onInput:t=>{this.messagePayload=Object.assign(Object.assign({},this.messagePayload),{message:t.target.value})}}),this.successMessage?a("p",null,"Message sent to ",this.messagePayload.to,a("rtk-icon",{icon:this.iconPack.checkmark})):a("div",{class:"content-row"},a("rtk-button",{onClick:()=>this.close(),variant:"secondary"},"Cancel")," ",a("rtk-button",{variant:"primary",onClick:()=>this.sendMessage()},"Send"))))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);padding:var(--rtk-space-4, 16px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));width:400px;max-width:80%}.content-col{display:flex;width:100%;flex-direction:column}h2{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-2, 8px)}.content-row{display:flex;width:100%;flex-direction:row}.content-row rtk-button{margin-top:var(--rtk-space-4, 16px);width:100%}textarea{margin-top:var(--rtk-space-3, 12px);resize:none;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;font-family:var(--rtk-font-family, sans-serif);outline:2px solid transparent;outline-offset:2px;height:var(--rtk-space-16, 64px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}textarea::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}textarea::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}select{border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);outline:2px solid transparent;outline-offset:2px;border-right-width:var(--rtk-border-width-md, 2px);border-style:solid;border-color:transparent;--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))}p{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-2, 8px);width:100%;text-align:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));display:flex;flex-direction:row;align-items:center;justify-content:center}p rtk-icon{margin-left:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px)}"}},[1,"rtk-broadcast-message-modal",{meeting:[16],states:[16],iconPack:[16],t:[16],messagePayload:[32],successMessage:[32]}]);function f(){"undefined"!=typeof customElements&&["rtk-broadcast-message-modal","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-broadcast-message-modal":customElements.get(s(t))||customElements.define(s(t),b);break;case"rtk-button":customElements.get(s(t))||d();break;case"rtk-icon":customElements.get(s(t))||p()}}))}l([n()],b.prototype,"meeting",void 0),l([n()],b.prototype,"states",void 0),l([n()],b.prototype,"iconPack",void 0),l([n()],b.prototype,"t",void 0),f();export{b as R,f as d}
1
+ import{p as t,H as r,c as e,h as a,d as o,t as s}from"./p-BBHQOrFK.js";import{e as i,i as c}from"./p-BbVYO_6g.js";import{S as n}from"./p-CNJG60uZ.js";import{d}from"./p-D6vw6bT2.js";import{d as p}from"./p-BYIBbfJ8.js";var l=function(t,r,e,a){var o,s=arguments.length,i=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(o=t[c])&&(i=(s<3?o(i):s>3?o(r,e,i):o(r,e))||i);return s>3&&i&&Object.defineProperty(r,e,i),i};const b=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.iconPack=i,this.t=c(),this.messagePayload={to:"Everyone",message:""},this.successMessage=!1}close(){var t;null===(t=this.stateUpdate)||void 0===t||t.emit({activeBroadcastMessageModal:!1})}sendMessage(){this.successMessage=!0,setTimeout((()=>{this.close()}),2e3)}render(){return a(o,{key:"d7559b6aadff8f45387ac2f0b67ba20a18d9fed4"},a("div",{key:"8b14c6d8b673244408b681f50bed87c3ab9af8bf",class:"content-col"},a("h2",{key:"560e1e2cd73f07776fe670f4412dace898683f7e"},"Broadcast message to"),a("select",{key:"f0a8ddbcea08243f0c496cdc14916eea928ad520",onChange:t=>{this.messagePayload=Object.assign(Object.assign({},this.messagePayload),{to:t.target.value})}},a("option",{key:"daa2217e90ccd31d3a7fff136069bebe28b34da3"},"Everyone"),a("option",{key:"72133e1507e26a555875bba037d2b0cb824a16f9"},"List of rooms")),a("textarea",{key:"eb523131f3bbe458cf802db5860029b2ce69c74f",placeholder:"Type message here...",onInput:t=>{this.messagePayload=Object.assign(Object.assign({},this.messagePayload),{message:t.target.value})}}),this.successMessage?a("p",null,"Message sent to ",this.messagePayload.to,a("rtk-icon",{icon:this.iconPack.checkmark})):a("div",{class:"content-row"},a("rtk-button",{onClick:()=>this.close(),variant:"secondary"},"Cancel")," ",a("rtk-button",{variant:"primary",onClick:()=>this.sendMessage()},"Send"))))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);padding:var(--rtk-space-4, 16px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));width:400px;max-width:80%}.content-col{display:flex;width:100%;flex-direction:column}h2{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-2, 8px)}.content-row{display:flex;width:100%;flex-direction:row}.content-row rtk-button{margin-top:var(--rtk-space-4, 16px);width:100%}textarea{margin-top:var(--rtk-space-3, 12px);resize:none;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;font-family:var(--rtk-font-family, sans-serif);outline:2px solid transparent;outline-offset:2px;height:var(--rtk-space-16, 64px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}textarea::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}textarea::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}select{border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);outline:2px solid transparent;outline-offset:2px;border-right-width:var(--rtk-border-width-md, 2px);border-style:solid;border-color:transparent;--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))}p{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-2, 8px);width:100%;text-align:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));display:flex;flex-direction:row;align-items:center;justify-content:center}p rtk-icon{margin-left:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px)}"}},[1,"rtk-broadcast-message-modal",{meeting:[16],states:[16],iconPack:[16],t:[16],messagePayload:[32],successMessage:[32]}]);function f(){"undefined"!=typeof customElements&&["rtk-broadcast-message-modal","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-broadcast-message-modal":customElements.get(s(t))||customElements.define(s(t),b);break;case"rtk-button":customElements.get(s(t))||d();break;case"rtk-icon":customElements.get(s(t))||p()}}))}l([n()],b.prototype,"meeting",void 0),l([n()],b.prototype,"states",void 0),l([n()],b.prototype,"iconPack",void 0),l([n()],b.prototype,"t",void 0),f();export{b as R,f as d}
@@ -1 +1 @@
1
- import{p as t,H as e,c as s,h as i,t as o}from"./p-BBHQOrFK.js";import{S as c}from"./p-ByMjaTnP.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as n,i as r}from"./p-aXMUeMjU.js";import"./p-Bs5Z4Y29.js";import{d as a}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";import{d as p}from"./p-DHSRRtn3.js";var f=function(t,e,s,i){var o,c=arguments.length,n=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(c<3?o(n):c>3?o(e,s,n):o(e,s))||n);return c>3&&n&&Object.defineProperty(e,s,n),n};const m=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onFileChange=s(this,"fileChange",7),this.icon="attach",this.iconPack=n,this.t=r(),this.uploadFile=()=>{const t=this.fileInputField;t.type="file",this.filter&&(t.accept=this.filter),t.onchange=t=>{const{validity:e,files:[s]}=t.target;e.valid&&this.onFileChange.emit(s)},t.click()}}connectedCallback(){this.fileInputField=document.createElement("input")}disconnectedCallback(){this.fileInputField=void 0}render(){const t=this.label||this.t("chat.send_file");return i("rtk-tooltip",{key:"329c452b2de6664978946000c6264e823c87830d",label:t},i("rtk-button",{key:"7b6a275ab946ad2aa751c8e36a6c9701f5fa0dab",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile(),title:t},i("rtk-icon",{key:"d3306859b107d0988c24f098db21467787b03afc",icon:this.iconPack[this.icon]})))}static get style(){return":host{}"}},[1,"rtk-file-picker-button",{filter:[1],label:[1],icon:[1],iconPack:[16],t:[16]}]);function k(){"undefined"!=typeof customElements&&["rtk-file-picker-button","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-file-picker-button":customElements.get(o(t))||customElements.define(o(t),m);break;case"rtk-button":customElements.get(o(t))||a();break;case"rtk-icon":customElements.get(o(t))||l();break;case"rtk-tooltip":customElements.get(o(t))||p()}}))}f([c()],m.prototype,"iconPack",void 0),f([c()],m.prototype,"t",void 0),k();export{m as R,k as d}
1
+ import{p as t,H as e,c as s,h as i,t as o}from"./p-BBHQOrFK.js";import{S as c}from"./p-CNJG60uZ.js";import"./p-Rq_6y0HI.js";import{e as r,i as n}from"./p-BbVYO_6g.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{d as a}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";import{d as p}from"./p-DHSRRtn3.js";var f=function(t,e,s,i){var o,c=arguments.length,r=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,s,i);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(c<3?o(r):c>3?o(e,s,r):o(e,s))||r);return c>3&&r&&Object.defineProperty(e,s,r),r};const m=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onFileChange=s(this,"fileChange",7),this.icon="attach",this.iconPack=r,this.t=n(),this.uploadFile=()=>{const t=this.fileInputField;t.type="file",this.filter&&(t.accept=this.filter),t.onchange=t=>{const{validity:e,files:[s]}=t.target;e.valid&&this.onFileChange.emit(s)},t.click()}}connectedCallback(){this.fileInputField=document.createElement("input")}disconnectedCallback(){this.fileInputField=void 0}render(){const t=this.label||this.t("chat.send_file");return i("rtk-tooltip",{key:"329c452b2de6664978946000c6264e823c87830d",label:t},i("rtk-button",{key:"7b6a275ab946ad2aa751c8e36a6c9701f5fa0dab",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile(),title:t},i("rtk-icon",{key:"d3306859b107d0988c24f098db21467787b03afc",icon:this.iconPack[this.icon]})))}static get style(){return":host{}"}},[1,"rtk-file-picker-button",{filter:[1],label:[1],icon:[1],iconPack:[16],t:[16]}]);function k(){"undefined"!=typeof customElements&&["rtk-file-picker-button","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-file-picker-button":customElements.get(o(t))||customElements.define(o(t),m);break;case"rtk-button":customElements.get(o(t))||a();break;case"rtk-icon":customElements.get(o(t))||l();break;case"rtk-tooltip":customElements.get(o(t))||p()}}))}f([c()],m.prototype,"iconPack",void 0),f([c()],m.prototype,"t",void 0),k();export{m as R,k as d}
@@ -1 +1 @@
1
- import{p as t,H as e,h as r,d as s,t as i}from"./p-BBHQOrFK.js";import{e as n}from"./p-aXMUeMjU.js";import{S as a}from"./p-ByMjaTnP.js";import{d as o}from"./p-BYIBbfJ8.js";const c=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=n,this.size="md"}render(){return r(s,{key:"3903fcae064050f9c3acbf65c872cec32075de22"},r("rtk-icon",{key:"73641dc07b1ab8dc19739b621fe5026eb2c2d95a",class:"spinner",icon:this.iconPack.spinner}))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:block;height:var(--rtk-space-10, 40px);width:var(--rtk-space-10, 40px);--rtk-spinner-color:currentColor}.spinner{height:100%;width:100%}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite;border-radius:9999px;background-color:transparent;animation-duration:1.3s}:host([size='md']){height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}"}},[1,"rtk-spinner",{iconPack:[16],size:[513]}]);function p(){"undefined"!=typeof customElements&&["rtk-spinner","rtk-icon"].forEach((t=>{switch(t){case"rtk-spinner":customElements.get(i(t))||customElements.define(i(t),c);break;case"rtk-icon":customElements.get(i(t))||o()}}))}(function(t,e,r,s){var i,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,s);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(a=(n<3?i(a):n>3?i(e,r,a):i(e,r))||a);n>3&&a&&Object.defineProperty(e,r,a)})([a()],c.prototype,"iconPack",void 0),p();export{c as R,p as d}
1
+ import{p as t,H as e,h as r,d as s,t as i}from"./p-BBHQOrFK.js";import{e as n}from"./p-BbVYO_6g.js";import{S as a}from"./p-CNJG60uZ.js";import{d as o}from"./p-BYIBbfJ8.js";const c=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=n,this.size="md"}render(){return r(s,{key:"701717fea85393517c84a813043abc939c325d83"},r("rtk-icon",{key:"ce9c25244a8748231c2ba4656e19e527e9926b3a",class:"spinner",icon:this.iconPack.spinner}))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:block;height:var(--rtk-space-10, 40px);width:var(--rtk-space-10, 40px);--rtk-spinner-color:currentColor}.spinner{height:100%;width:100%}@keyframes spin{to{transform:rotate(360deg)}}.spinner{animation:spin 1s linear infinite;border-radius:9999px;background-color:transparent;animation-duration:1.3s}:host([size='md']){height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}"}},[1,"rtk-spinner",{iconPack:[16],size:[513]}]);function p(){"undefined"!=typeof customElements&&["rtk-spinner","rtk-icon"].forEach((t=>{switch(t){case"rtk-spinner":customElements.get(i(t))||customElements.define(i(t),c);break;case"rtk-icon":customElements.get(i(t))||o()}}))}(function(t,e,r,s){var i,n=arguments.length,a=n<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,s);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(a=(n<3?i(a):n>3?i(e,r,a):i(e,r))||a);n>3&&a&&Object.defineProperty(e,r,a)})([a()],c.prototype,"iconPack",void 0),p();export{c as R,p as d}
@@ -0,0 +1 @@
1
+ var t=[0,.5,1,1.5,2,3,4,5,6,7,8,9,10,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96];const o={darkest:{background:{1e3:"#080808",900:"#1A1A1A",800:"#1E1E1E",700:"#2C2C2C",600:"#393939"},text:"#FFFFFF"},dark:{background:{1e3:"#252525",900:"#2F2F2F",800:"#323232",700:"#3E3E3E",600:"#4A4A4A"},text:"#F5F5F5","video-bg":"#1C1C1C"},light:{background:{1e3:"#FFFFFF",900:"#F5F5F5",800:"#EBEBEB",700:"#E0E0E0",600:"#D6D6D6"},text:"#111111","text-on-brand":"#ffffff","video-bg":"#DADADA"}},n={none:{none:0,sm:0,md:0,lg:0},thin:{none:0,sm:1,md:2,lg:4},fat:{none:0,sm:2,md:4,lg:8}},e={sharp:{none:0,sm:0,md:0,lg:0},rounded:{none:0,sm:4,md:8,lg:12},"extra-rounded":{none:0,sm:8,md:16,lg:24},circular:{none:9999,sm:9999,md:9999,lg:9999}};function s(t){let o="0",n="0",e="0";return 4==(t=t.trim()).length?(o="0x"+t[1]+t[1],n="0x"+t[2]+t[2],e="0x"+t[3]+t[3]):t.length>6&&(o="0x"+t[1]+t[2],n="0x"+t[3]+t[4],e="0x"+t[5]+t[6]),[+o,+n,+e]}const r=t=>"string"==typeof t&&7===t.length&&t.startsWith("#"),i="--rtk-";function c(t,o=i){return o+t}const l=(t,o,n=i)=>{Object.keys(o).forEach((e=>{const r=o[e];if("string"==typeof r)if("text"===e||"text-on-brand"===e){const o=s(r).join(" ");t.style.setProperty(c(`colors-${e}-1000`,n),`${o}`),t.style.setProperty(c(`colors-${e}-900`,n),`${o} / 0.88`),t.style.setProperty(c(`colors-${e}-800`,n),`${o} / 0.76`),t.style.setProperty(c(`colors-${e}-700`,n),`${o} / 0.64`),t.style.setProperty(c(`colors-${e}-600`,n),`${o} / 0.52`)}else{const o=s(r).join(" ");t.style.setProperty(c(`colors-${e}`,n),o)}else"object"==typeof r&&Object.keys(r).forEach((o=>{const i=s(r[o]).join(" ");t.style.setProperty(c(`colors-${e}-${o}`,n),i)}))}))},d=(s,{spacingBase:r,borderRadius:d,borderWidth:a,colors:f,fontFamily:m,googleFont:g,theme:u,tokenPrefix:p=i})=>{if("object"!=typeof s)throw new Error("[rtk-ui-kit] (provideRtkDesignSystem): Passed element is not a valid HTML Element");if("string"==typeof g&&((t=>{const o=[];if(null==document.querySelector("link[data-rtk-font]")){const t=document.createElement("link");t.rel="preconnect",t.setAttribute("data-rtk-font","true"),t.href="https://fonts.googleapis.com";const n=t.cloneNode(!0);n.href="https://fonts.gstatic.com",n.crossOrigin="",o.push(t,n)}const n=document.createElement("link");n.rel="stylesheet",n.setAttribute("data-rtk-font",t),n.href=encodeURI(`https://fonts.googleapis.com/css2?family=${t}:wght@${[400,500,700].join(";")}&display=swap`),o.push(n),document.head.append(...o)})(g),s.style.setProperty(c("font-family",p),g)),"string"==typeof m&&s.style.setProperty(c("font-family",p),m),"number"==typeof r&&((o,n,e=i)=>{t.forEach((t=>{o.style.setProperty(c(`space-${t}`,e),t*n+"px")}))})(s,r,p),"string"==typeof a&&((t,o,e=i)=>{if(o in n){const s=n[o];Object.keys(s).forEach((o=>{t.style.setProperty(c(`border-width-${o}`,e),`${s[o]}px`)}))}})(s,a,p),"string"==typeof d&&((t,o,n=i)=>{if(o in e){const s=e[o];Object.keys(s).forEach((o=>{t.style.setProperty(c(`border-radius-${o}`,n),`${s[o]}px`)}))}})(s,d,p),"string"==typeof u){const t=o[u];null!=t&&l(s,t,p)}"object"==typeof f&&l(s,f,p)},a=Symbol.for("rtk.uikit.sdkName"),f=globalThis;function m(t){f[a]=t}function g(){var t;return null!==(t=f[a])&&void 0!==t?t:"html"}function u(t){var o,n;try{null===(n=null===(o=null==t?void 0:t.__internals__)||void 0===o?void 0:o.setUiKitMetadata)||void 0===n||n.call(o,{sdkVersion:"2.2.0-staging.5",sdkName:g()})}catch(t){}}export{r as i,d as p,u as r,m as s}