@cloudflare/realtimekit-ui 2.0.2 → 2.0.3-staging.10
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.
- package/dist/browser.js +1 -1
- package/dist/cjs/{TextMessage-CXP5MCz2.js → TextMessage-cfaZckxh.js} +1 -1
- package/dist/cjs/{chat-BJwmnHGm.js → chat-Dmb93Uku.js} +1 -1
- package/dist/cjs/{config-lVBc97X8.js → config-wbyoqfPs.js} +2 -2
- package/dist/cjs/{debounce-BfjpS8nk.js → debounce-B5TJRWkG.js} +1 -1
- package/dist/cjs/index-Bi2L8zQ7.js +10 -6
- package/dist/cjs/{index-iml9xkbo.js → index-CmhPLhux.js} +1 -1
- package/dist/cjs/index.cjs.js +5 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{merge-BJWi-sVV.js → merge-B7Yr5DGf.js} +1 -1
- package/dist/cjs/{notification-BM6CUHyL.js → notification-Bny5fHfy.js} +3 -3
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +5 -2
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +3 -3
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +25 -25
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/{rtk-breakout-rooms-manager_9.cjs.entry.js → rtk-breakout-rooms-manager_8.cjs.entry.js} +19 -112
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +10 -16
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger.cjs.entry.js +99 -0
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +3 -3
- package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +4 -4
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +10 -10
- package/dist/cjs/rtk-header.cjs.entry.js +2 -2
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +6 -6
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
- package/dist/cjs/rtk-notifications.cjs.entry.js +4 -4
- package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +57 -14
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +4 -4
- package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
- package/dist/cjs/rtk-transcript.cjs.entry.js +6 -3
- package/dist/cjs/rtk-transcripts.cjs.entry.js +61 -30
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
- package/dist/cjs/{ui-store-C8bSJOfE.js → ui-store-C7CyFWPZ.js} +1 -1
- package/dist/collection/components/rtk-ai/rtk-ai.js +2 -4
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +3 -0
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +4 -6
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +8 -7
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +9 -10
- package/dist/collection/components/rtk-debugger/rtk-debugger.css +28 -18
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.css +8 -15
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.css +8 -15
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.css +7 -14
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -8
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.css +8 -15
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
- package/dist/collection/components/rtk-grid/rtk-grid.js +8 -8
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -4
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +4 -4
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +4 -4
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -4
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -4
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +4 -6
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +4 -1
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +59 -28
- package/dist/collection/lib/audio.js +55 -12
- package/dist/collection/lib/notification.js +3 -3
- package/dist/collection/utils/clone.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BssX9KwA.js → p--CEA0NQj.js} +1 -1
- package/dist/components/{p-CWHbCyoL.js → p--VK1POSX.js} +1 -1
- package/dist/components/{p-kwrAj1JQ.js → p-5i84b0Gw.js} +1 -1
- package/dist/components/{p-DCtgO53p.js → p-93ZUKlQ1.js} +1 -1
- package/dist/components/{p-DXSMSSbW.js → p-B0SC1Zj-.js} +1 -1
- package/dist/components/{p-CPF_oopS.js → p-B1HaRABx.js} +1 -1
- package/dist/components/{p-Dy1vyj0N.js → p-B1oyTNvb.js} +1 -1
- package/dist/components/{p-BQkUbUdr.js → p-B3dQhqRr.js} +1 -1
- package/dist/components/{p-Bgm0SnIA.js → p-B4dw_Fnl.js} +1 -1
- package/dist/components/p-B56IYWsZ.js +1 -0
- package/dist/components/{p-BNRJKXAG.js → p-BHHJ7_MS.js} +1 -1
- package/dist/components/{p-Bj4I4jh7.js → p-BQJoMtIK.js} +1 -1
- package/dist/components/{p-Bqf3TobZ.js → p-BXHUa6x_.js} +1 -1
- package/dist/components/p-BY_rxRub.js +1 -0
- package/dist/components/p-BbE6o8zj.js +1 -0
- package/dist/components/{p-CwNP8xfN.js → p-Bf-HIBwL.js} +1 -1
- package/dist/components/{p-CfFkjBT0.js → p-Bf-vQ6U9.js} +1 -1
- package/dist/components/{p-BbtnaCk4.js → p-Bn6JMUc9.js} +1 -1
- package/dist/components/{p-CVfA5R2h.js → p-BoqfUgTL.js} +1 -1
- package/dist/components/{p-vBjvMv_5.js → p-Bux-kSlP.js} +1 -1
- package/dist/components/{p-Chf25Wxh.js → p-BvLjh5Yy.js} +1 -1
- package/dist/components/{p-C9KgVl-d.js → p-BxPmWGqJ.js} +1 -1
- package/dist/components/p-ByPpyWt6.js +1 -0
- package/dist/components/{p-C-ZKbHGI.js → p-C0ESgBoj.js} +1 -1
- package/dist/components/p-C5kkSbkd.js +1 -0
- package/dist/components/{p-B17zaVfB.js → p-C6AgOKhg.js} +1 -1
- package/dist/components/{p-CXK5Hixp.js → p-C7WazpNf.js} +1 -1
- package/dist/components/{p-Bvn365hl.js → p-C9UuqXCX.js} +1 -1
- package/dist/components/{p-DcBUj_Ju.js → p-CAMtxcI_.js} +1 -1
- package/dist/components/{p-C71rbtpI.js → p-CAsupO2z.js} +1 -1
- package/dist/components/p-CBWhDYEo.js +1 -0
- package/dist/components/{p-Ba4odlrT.js → p-CCxMYXjI.js} +1 -1
- package/dist/components/{p-mm-pzvJ-.js → p-CEK_XoGw.js} +1 -1
- package/dist/components/{p-DPxfGgCX.js → p-CFBS-gbK.js} +1 -1
- package/dist/components/p-CHOs-ZsL.js +1 -0
- package/dist/components/p-CHh7GAdL.js +1 -0
- package/dist/components/p-CJGAvEk3.js +1 -0
- package/dist/components/{p-Bjmpb3KI.js → p-CMyYEHgz.js} +1 -1
- package/dist/components/{p-BUosYxgI.js → p-CNaazJXM.js} +1 -1
- package/dist/components/{p-BGMQOFEz.js → p-CTuYqZY2.js} +1 -1
- package/dist/components/{p-oNFda96T.js → p-CU7xL-hP.js} +1 -1
- package/dist/components/{p-fEIEB26m.js → p-CW-FAeNP.js} +1 -1
- package/dist/components/{p-iZinM7-j.js → p-CfIrQkMg.js} +1 -1
- package/dist/components/{p-V9huV8XH.js → p-CjstGmGh.js} +1 -1
- package/dist/components/{p-CkA8t9GX.js → p-CkB6Me6q.js} +1 -1
- package/dist/components/{p-Cj0CCucK.js → p-CnPYfRgf.js} +1 -1
- package/dist/components/{p-nkadiHul.js → p-CpD_SehU.js} +1 -1
- package/dist/components/{p-iaFYN7Sj.js → p-CuRSxmeD.js} +1 -1
- package/dist/components/{p-66poN2qn.js → p-DMbGWtns.js} +1 -1
- package/dist/components/{p-D__Gipxn.js → p-DONfrqzk.js} +1 -1
- package/dist/components/{p-CIfkVpTJ.js → p-DSUStc8e.js} +1 -1
- package/dist/components/{p-BIdrWJJD.js → p-DSe3wsBa.js} +1 -1
- package/dist/components/{p-B77rBORD.js → p-DViKr-34.js} +1 -1
- package/dist/components/{p-B2GVx1qA.js → p-DZcwJOUW.js} +1 -1
- package/dist/components/p-D_AEDHUV.js +1 -0
- package/dist/components/{p-BhG6UsF5.js → p-DdSpe6Sb.js} +1 -1
- package/dist/components/{p-nad0N2DI.js → p-Dh8N1Wv8.js} +1 -1
- package/dist/components/{p-C8Dgpnzx.js → p-DhG2PF_5.js} +1 -1
- package/dist/components/p-DhwysA2e.js +1 -0
- package/dist/components/{p-DfGTdsn0.js → p-DjOiGHfI.js} +1 -1
- package/dist/components/{p-CAgV-5OF.js → p-DnOzzBR9.js} +1 -1
- package/dist/components/{p-CNv9-uKL.js → p-DnkJztTd.js} +1 -1
- package/dist/components/{p-Cz9_MmLt.js → p-Dq8iLPzP.js} +1 -1
- package/dist/components/{p-DSm20Isy.js → p-E1D1eNFh.js} +1 -1
- package/dist/components/{p-CuqFnmgF.js → p-M0IaFpEv.js} +1 -1
- package/dist/components/{p-ebQT96VB.js → p-NKK4fZcP.js} +1 -1
- package/dist/components/{p-jyZncre7.js → p-ObGKzmP7.js} +1 -1
- package/dist/components/{p-D_tCWiMP.js → p-Ryaxu6vl.js} +1 -1
- package/dist/components/{p-CSO-O3S1.js → p-Smh6fH4v.js} +1 -1
- package/dist/components/{p-COCm8rOB.js → p-VHRH6fkb.js} +1 -1
- package/dist/components/{p-CSt7vW9Z.js → p-Z8VMlEx7.js} +1 -1
- package/dist/components/{p-DL4GSZ2e.js → p-bRRQr4xn.js} +1 -1
- package/dist/components/{p-B6TKlHLV.js → p-gixOLeKl.js} +1 -1
- package/dist/components/{p-BRPrcA0X.js → p-mgE9e3Hm.js} +1 -1
- package/dist/components/{p-RjS7wlRV.js → p-pcKO_EeI.js} +1 -1
- package/dist/components/{p-CRr8LXGp.js → p-vqPkhXWC.js} +1 -1
- package/dist/components/{p-D3IRX-4x.js → p-y_feb08f.js} +1 -1
- package/dist/components/rtk-ai-toggle.js +1 -1
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +1 -1
- package/dist/components/rtk-audio-grid.js +1 -1
- package/dist/components/rtk-audio-tile.js +1 -1
- package/dist/components/rtk-audio-visualizer.js +1 -1
- package/dist/components/rtk-avatar.js +1 -1
- package/dist/components/rtk-breakout-room-manager.js +1 -1
- package/dist/components/rtk-breakout-room-participants.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.js +1 -1
- package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-camera-selector.js +1 -1
- package/dist/components/rtk-camera-toggle.js +1 -1
- package/dist/components/rtk-caption-toggle.js +1 -1
- package/dist/components/rtk-chat-composer-ui.js +1 -1
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-header.js +1 -1
- package/dist/components/rtk-chat-message.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-messages-ui.js +1 -1
- package/dist/components/rtk-chat-search-results.js +1 -1
- package/dist/components/rtk-chat-selector-ui.js +1 -1
- package/dist/components/rtk-chat-selector.js +1 -1
- package/dist/components/rtk-chat-toggle.js +1 -1
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +1 -1
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +1 -1
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-audio.js +1 -1
- package/dist/components/rtk-debugger-screenshare.js +1 -1
- package/dist/components/rtk-debugger-system.js +1 -1
- package/dist/components/rtk-debugger-toggle.js +1 -1
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +1 -1
- package/dist/components/rtk-dialog.js +1 -1
- package/dist/components/rtk-draft-attachment-view.js +1 -1
- package/dist/components/rtk-emoji-picker-button.js +1 -1
- package/dist/components/rtk-emoji-picker.js +1 -1
- package/dist/components/rtk-ended-screen.js +1 -1
- package/dist/components/rtk-file-dropzone.js +1 -1
- package/dist/components/rtk-file-message-view.js +1 -1
- package/dist/components/rtk-file-message.js +1 -1
- package/dist/components/rtk-file-picker-button.js +1 -1
- package/dist/components/rtk-fullscreen-toggle.js +1 -1
- package/dist/components/rtk-grid-pagination.js +1 -1
- package/dist/components/rtk-grid.js +1 -1
- package/dist/components/rtk-header.js +1 -1
- package/dist/components/rtk-idle-screen.js +1 -1
- package/dist/components/rtk-image-message-view.js +1 -1
- package/dist/components/rtk-image-message.js +1 -1
- package/dist/components/rtk-image-viewer.js +1 -1
- package/dist/components/rtk-information-tooltip.js +1 -1
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +1 -1
- package/dist/components/rtk-leave-meeting.js +1 -1
- package/dist/components/rtk-livestream-indicator.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-livestream-toggle.js +1 -1
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-meeting-title.js +1 -1
- package/dist/components/rtk-meeting.js +1 -1
- package/dist/components/rtk-menu-item.js +1 -1
- package/dist/components/rtk-menu-list.js +1 -1
- package/dist/components/rtk-menu.js +1 -1
- package/dist/components/rtk-message-list-view.js +1 -1
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +1 -1
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +1 -1
- package/dist/components/rtk-more-toggle.js +1 -1
- package/dist/components/rtk-mute-all-button.js +1 -1
- package/dist/components/rtk-mute-all-confirmation.js +1 -1
- package/dist/components/rtk-name-tag.js +1 -1
- package/dist/components/rtk-network-indicator.js +1 -1
- package/dist/components/rtk-notification.js +1 -1
- package/dist/components/rtk-notifications.js +1 -1
- package/dist/components/rtk-overlay-modal.js +1 -1
- package/dist/components/rtk-paginated-list.js +1 -1
- package/dist/components/rtk-participant-count.js +1 -1
- package/dist/components/rtk-participant-setup.js +1 -1
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +1 -1
- package/dist/components/rtk-participants-stage-list.js +1 -1
- package/dist/components/rtk-participants-stage-queue.js +1 -1
- package/dist/components/rtk-participants-toggle.js +1 -1
- package/dist/components/rtk-participants-viewer-list.js +1 -1
- package/dist/components/rtk-participants-waiting-list.js +1 -1
- package/dist/components/rtk-participants.js +1 -1
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pinned-message-selector.js +1 -1
- package/dist/components/rtk-pip-toggle.js +1 -1
- package/dist/components/rtk-plugin-main.js +1 -1
- package/dist/components/rtk-plugins-toggle.js +1 -1
- package/dist/components/rtk-plugins.js +1 -1
- package/dist/components/rtk-poll-form.js +1 -1
- package/dist/components/rtk-poll.js +1 -1
- package/dist/components/rtk-polls-toggle.js +1 -1
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +1 -1
- package/dist/components/rtk-recording-toggle.js +1 -1
- package/dist/components/rtk-screen-share-toggle.js +1 -1
- package/dist/components/rtk-screenshare-view.js +1 -1
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +1 -1
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +1 -1
- package/dist/components/rtk-setup-screen.js +1 -1
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +1 -1
- package/dist/components/rtk-simple-grid.js +1 -1
- package/dist/components/rtk-speaker-selector.js +1 -1
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +1 -1
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +1 -1
- package/dist/components/rtk-stage.js +1 -1
- package/dist/components/rtk-switch.js +1 -1
- package/dist/components/rtk-tab-bar.js +1 -1
- package/dist/components/rtk-text-composer-view.js +1 -1
- package/dist/components/rtk-text-message.js +1 -1
- package/dist/components/rtk-transcript.js +1 -1
- package/dist/components/rtk-transcripts.js +1 -1
- package/dist/components/rtk-ui-provider.js +1 -1
- package/dist/components/rtk-viewer-count.js +1 -1
- package/dist/components/rtk-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +12 -27
- package/dist/docs/docs-vscode.json +8 -8
- package/dist/esm/{TextMessage-C1lPu3R8.js → TextMessage-B-38YeFE.js} +1 -1
- package/dist/esm/{chat-DRqOBXqN.js → chat-a6CRyl2K.js} +1 -1
- package/dist/esm/{config-BiYmSYD9.js → config-wP0cqv4b.js} +2 -2
- package/dist/esm/{debounce-BmgYF10w.js → debounce-lqMlEJcq.js} +1 -1
- package/dist/esm/{index-BnFmFXDx.js → index-CP1LPkYZ.js} +1 -1
- package/dist/esm/index-gJCRRBX0.js +10 -6
- package/dist/esm/index.js +7 -7
- package/dist/esm/loader.js +1139 -1059
- package/dist/esm/{merge-Bnx8tW3F.js → merge-BWjuIacB.js} +1 -1
- package/dist/esm/{notification-DcR6dHfn.js → notification-DZgheLdK.js} +3 -3
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-ai-toggle.entry.js +2 -2
- package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
- package/dist/esm/rtk-ai_3.entry.js +2 -2
- package/dist/esm/rtk-audio-grid.entry.js +2 -2
- package/dist/esm/rtk-audio-tile.entry.js +5 -2
- package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
- package/dist/esm/rtk-avatar_26.entry.js +25 -25
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
- package/dist/esm/{rtk-breakout-rooms-manager_9.entry.js → rtk-breakout-rooms-manager_8.entry.js} +20 -112
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
- package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
- package/dist/esm/rtk-camera-toggle.entry.js +2 -2
- package/dist/esm/rtk-caption-toggle.entry.js +2 -2
- package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-message.entry.js +2 -2
- package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
- package/dist/esm/rtk-chat-search-results.entry.js +2 -2
- package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-toggle.entry.js +2 -2
- package/dist/esm/rtk-clock.entry.js +2 -2
- package/dist/esm/rtk-controlbar-button.entry.js +2 -2
- package/dist/esm/rtk-controlbar.entry.js +2 -2
- package/dist/esm/rtk-debugger-audio_4.entry.js +10 -16
- package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
- package/dist/esm/rtk-debugger.entry.js +97 -0
- package/dist/esm/rtk-dialog-manager.entry.js +3 -3
- package/dist/esm/rtk-dialog.entry.js +2 -2
- package/dist/esm/rtk-ended-screen.entry.js +2 -2
- package/dist/esm/rtk-file-dropzone.entry.js +2 -2
- package/dist/esm/rtk-file-message_3.entry.js +4 -4
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +10 -10
- package/dist/esm/rtk-header.entry.js +2 -2
- package/dist/esm/rtk-idle-screen.entry.js +2 -2
- package/dist/esm/rtk-image-viewer.entry.js +2 -2
- package/dist/esm/rtk-information-tooltip.entry.js +2 -2
- package/dist/esm/rtk-leave-button.entry.js +2 -2
- package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
- package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
- package/dist/esm/rtk-logo.entry.js +2 -2
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +6 -6
- package/dist/esm/rtk-mic-toggle.entry.js +2 -2
- package/dist/esm/rtk-mixed-grid.entry.js +2 -2
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-mute-all-button.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +2 -2
- package/dist/esm/rtk-network-indicator.entry.js +2 -2
- package/dist/esm/rtk-notification.entry.js +4 -4
- package/dist/esm/rtk-notifications.entry.js +4 -4
- package/dist/esm/rtk-participant-count.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +2 -2
- package/dist/esm/rtk-participant_2.entry.js +3 -3
- package/dist/esm/rtk-participants-audio.entry.js +57 -14
- package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
- package/dist/esm/rtk-participants-toggle.entry.js +2 -2
- package/dist/esm/rtk-participants.entry.js +3 -3
- package/dist/esm/rtk-pip-toggle.entry.js +2 -2
- package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
- package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
- package/dist/esm/rtk-poll_2.entry.js +2 -2
- package/dist/esm/rtk-polls-toggle.entry.js +2 -2
- package/dist/esm/rtk-recording-indicator.entry.js +2 -2
- package/dist/esm/rtk-recording-toggle.entry.js +2 -2
- package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
- package/dist/esm/rtk-screenshare-view.entry.js +2 -2
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +2 -2
- package/dist/esm/rtk-settings.entry.js +2 -2
- package/dist/esm/rtk-setup-screen.entry.js +2 -2
- package/dist/esm/rtk-sidebar-ui.entry.js +4 -4
- package/dist/esm/rtk-sidebar.entry.js +2 -2
- package/dist/esm/rtk-simple-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
- package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
- package/dist/esm/rtk-stage-toggle.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +2 -2
- package/dist/esm/rtk-transcript.entry.js +6 -3
- package/dist/esm/rtk-transcripts.entry.js +61 -30
- package/dist/esm/rtk-ui-provider.entry.js +2 -2
- package/dist/esm/rtk-waiting-screen.entry.js +2 -2
- package/dist/esm/{ui-store-CkvSNsmd.js → ui-store-Ctcbman-.js} +1 -1
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/p-0051564a.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b7f7e42a.entry.js → p-0195bd60.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0c1a8f1a.entry.js → p-01c014e4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f2380597.entry.js → p-0264d57f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-eeb3d851.entry.js → p-09ce95b2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b90a0bf4.entry.js → p-194ebf74.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ee470245.entry.js → p-20734a3a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-71b0d221.entry.js → p-21b69da3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d9061f53.entry.js → p-21f69c50.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e3015917.entry.js → p-23e14ccd.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-607f649e.entry.js → p-27751707.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-11a08757.entry.js → p-286ce4d7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-2fd5255e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-ff436b41.entry.js → p-384db558.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-12fa2370.entry.js → p-3ed792bf.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-588dcb34.entry.js → p-401b9ed3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-af7bffbb.entry.js → p-462d4e8f.entry.js} +1 -1
- package/dist/realtimekit-ui/p-47abb821.entry.js +1 -0
- package/dist/realtimekit-ui/{p-458e87f0.entry.js → p-481e75eb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d79a49f3.entry.js → p-4a1ec4a2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e1542a67.entry.js → p-4aa24ae6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cf8e7495.entry.js → p-4add313e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d1c91dad.entry.js → p-4bd89bff.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7bf3de16.entry.js → p-4ed011a1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ad1157e0.entry.js → p-5361cd19.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-727fa3f2.entry.js → p-55ec635e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2438cd32.entry.js → p-56df9c19.entry.js} +1 -1
- package/dist/realtimekit-ui/p-5810f0c4.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f95e96b7.entry.js → p-58366145.entry.js} +1 -1
- package/dist/realtimekit-ui/p-61032e04.entry.js +1 -0
- package/dist/realtimekit-ui/{p-64224592.entry.js → p-62a46799.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b04cc83e.entry.js → p-67ee7fdd.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e010a673.entry.js → p-6ab2602a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d10a73b2.entry.js → p-6b387775.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d438c98e.entry.js → p-6e0f43e4.entry.js} +1 -1
- package/dist/realtimekit-ui/p-80b42139.entry.js +1 -0
- package/dist/realtimekit-ui/{p-3e34195d.entry.js → p-815d9724.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-92f6959e.entry.js → p-893da38a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1e4ffceb.entry.js → p-8cdd8307.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8cb45932.entry.js → p-959917cc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-932c7070.entry.js → p-9aac22a5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b491565f.entry.js → p-9ce9b595.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ae82b88b.entry.js → p-9fa91df2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-676d4a41.entry.js → p-9fb75436.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1de6c388.entry.js → p-9fd3cb5e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-B56IYWsZ.js +1 -0
- package/dist/realtimekit-ui/{p-3h3Qc6lD.js → p-B91vjjSJ.js} +1 -1
- package/dist/realtimekit-ui/{p-Dy41dnX2.js → p-BmRffDYW.js} +1 -1
- package/dist/realtimekit-ui/{p-BmaxriWP.js → p-CQ2xadpP.js} +1 -1
- package/dist/realtimekit-ui/{p-Cm8ENd-O.js → p-CfUJPUNx.js} +1 -1
- package/dist/realtimekit-ui/p-DI7wP4CL.js +1 -0
- package/dist/realtimekit-ui/{p-BTwUl5G9.js → p-MlOz-emx.js} +1 -1
- package/dist/realtimekit-ui/{p-2d1b8896.entry.js → p-a34a267b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-a646f038.entry.js +1 -0
- package/dist/realtimekit-ui/{p-df4122cb.entry.js → p-ab63946e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-ac4c182d.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d089d2bb.entry.js → p-ac79ef88.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-207aa239.entry.js → p-b27db286.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cffb7c0e.entry.js → p-b41fc081.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-066359c2.entry.js → p-b46d416b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7e0daf2a.entry.js → p-b9f47f88.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-86b027f8.entry.js → p-ba7fb049.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9e855d5f.entry.js → p-bcc20509.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ecac916f.entry.js → p-bcc42454.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-34e01092.entry.js → p-bd848924.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a74a3bd7.entry.js → p-bdd8ebec.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cb9955f1.entry.js → p-bf54cdd9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-c6d03162.entry.js +1 -0
- package/dist/realtimekit-ui/{p-fc6bfa36.entry.js → p-c6f6afcd.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8f4c582b.entry.js → p-cd5069ea.entry.js} +1 -1
- package/dist/realtimekit-ui/p-ce81ffaa.entry.js +1 -0
- package/dist/realtimekit-ui/{p-cb9a3294.entry.js → p-d29c5a04.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-538b2ecf.entry.js → p-d4ff2477.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4d2fcc46.entry.js → p-d52b8b3d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9139643b.entry.js → p-d85e142c.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d9c7c4d8.entry.js +1 -0
- package/dist/realtimekit-ui/{p-CKXY5S4J.js → p-dYOM3dvx.js} +1 -1
- package/dist/realtimekit-ui/{p-6fa0e07e.entry.js → p-da9c7efe.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5f9fdbf1.entry.js → p-dc7a28a6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8f362ed0.entry.js → p-dd6fa0d8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7b94fb4f.entry.js → p-de4ecd17.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-691a610d.entry.js → p-e347e0d8.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e38967d0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-c2ea0c8a.entry.js → p-e8e6a1c8.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f2de718a.entry.js +1 -0
- package/dist/realtimekit-ui/{p-bbe8664e.entry.js → p-f5377574.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-260169b4.entry.js → p-f5809d7c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2bbc4dfc.entry.js → p-f6085321.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-255290c6.entry.js → p-fb0a9fa6.entry.js} +1 -1
- package/dist/realtimekit-ui/p-ff89f0f6.entry.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-ai/rtk-ai.d.ts +2 -4
- package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +2 -4
- package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +1 -0
- package/dist/types/components/rtk-chat-selector/rtk-chat-selector.d.ts +1 -1
- package/dist/types/components/rtk-debugger-system/rtk-debugger-system.d.ts +0 -3
- package/dist/types/components/rtk-grid/rtk-grid.d.ts +1 -2
- package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +2 -4
- package/dist/types/components/rtk-message-list-view/rtk-message-list-view.d.ts +1 -1
- package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +1 -1
- package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +2 -4
- package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +2 -4
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -4
- package/dist/types/components/rtk-spotlight-grid/rtk-spotlight-grid.d.ts +1 -1
- package/dist/types/components/rtk-transcript/rtk-transcript.d.ts +1 -0
- package/dist/types/components/rtk-transcripts/rtk-transcripts.d.ts +14 -0
- package/dist/types/components.d.ts +57 -79
- package/dist/types/lib/audio.d.ts +6 -3
- package/package.json +2 -3
- package/dist/components/p-48gPeJ33.js +0 -1
- package/dist/components/p-BCuMxcZN.js +0 -1
- package/dist/components/p-BoeW-RxV.js +0 -1
- package/dist/components/p-BsxEHBW2.js +0 -1
- package/dist/components/p-BthnOddY.js +0 -1
- package/dist/components/p-CEjlztlu.js +0 -1
- package/dist/components/p-DX_XkIXf.js +0 -1
- package/dist/components/p-DjSGHZA8.js +0 -1
- package/dist/components/p-Dr2k6gxY.js +0 -1
- package/dist/components/p-UCR1gRqj.js +0 -1
- package/dist/components/p-xmJ8IJTr.js +0 -1
- package/dist/components/p-yIxFaBq2.js +0 -1
- package/dist/realtimekit-ui/p-0872cae4.entry.js +0 -1
- package/dist/realtimekit-ui/p-14204827.entry.js +0 -1
- package/dist/realtimekit-ui/p-27dd7099.entry.js +0 -1
- package/dist/realtimekit-ui/p-56a5c456.entry.js +0 -1
- package/dist/realtimekit-ui/p-6454c955.entry.js +0 -1
- package/dist/realtimekit-ui/p-8b08fbc0.entry.js +0 -1
- package/dist/realtimekit-ui/p-94f25ba4.entry.js +0 -1
- package/dist/realtimekit-ui/p-98b33e56.entry.js +0 -1
- package/dist/realtimekit-ui/p-BCuMxcZN.js +0 -1
- package/dist/realtimekit-ui/p-D9rFUUCb.js +0 -1
- package/dist/realtimekit-ui/p-c6be9e1f.entry.js +0 -1
- package/dist/realtimekit-ui/p-c8f68298.entry.js +0 -1
- package/dist/realtimekit-ui/p-de1b894a.entry.js +0 -1
- package/dist/realtimekit-ui/p-f182042f.entry.js +0 -1
- package/dist/realtimekit-ui/p-f5a30d5b.entry.js +0 -1
|
@@ -13,6 +13,8 @@ import { useLanguage } from "../../lib/lang";
|
|
|
13
13
|
import { createDefaultConfig } from "../../exports";
|
|
14
14
|
import { SyncWithStore } from "../../utils/sync-with-store";
|
|
15
15
|
import clone from "../../utils/clone";
|
|
16
|
+
/** Maximum character length of a single rendered caption group. */
|
|
17
|
+
const MAX_GROUP_LENGTH = 400;
|
|
16
18
|
/**
|
|
17
19
|
* A component which handles transcripts.
|
|
18
20
|
*
|
|
@@ -89,9 +91,50 @@ export class RtkTranscripts {
|
|
|
89
91
|
return acc.concat(t);
|
|
90
92
|
}
|
|
91
93
|
add(transcript) {
|
|
92
|
-
// show transcripts only if tab is in focus and a maximum of 3 at a time
|
|
93
|
-
// this.transcripts.splice(0, this.transcripts.length - 2);
|
|
94
94
|
this.transcripts = this.transcriptionsReducer(this.transcripts, transcript);
|
|
95
|
+
this.pruneToLatestTwoGroups();
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Groups raw transcript entries using the same merging rules as the renderer:
|
|
99
|
+
* consecutive entries from the same peer are combined with a separator space
|
|
100
|
+
* until the accumulated text exceeds MAX_GROUP_LENGTH, at which point a new
|
|
101
|
+
* group begins. Assigns renderedId on each entry as a side effect so that
|
|
102
|
+
* pruning and rendering stay in sync.
|
|
103
|
+
*/
|
|
104
|
+
buildGroups() {
|
|
105
|
+
const groups = [];
|
|
106
|
+
this.transcripts.forEach((transcript) => {
|
|
107
|
+
const last = groups[groups.length - 1];
|
|
108
|
+
if (!last ||
|
|
109
|
+
last.peerId !== transcript.peerId ||
|
|
110
|
+
last.combinedText.length + transcript.transcript.length > MAX_GROUP_LENGTH) {
|
|
111
|
+
groups.push({
|
|
112
|
+
renderedId: transcript.id,
|
|
113
|
+
peerId: transcript.peerId,
|
|
114
|
+
combinedText: transcript.transcript,
|
|
115
|
+
entries: [transcript],
|
|
116
|
+
});
|
|
117
|
+
transcript.renderedId = transcript.id;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
last.combinedText += ' ' + transcript.transcript;
|
|
121
|
+
transcript.renderedId = last.renderedId;
|
|
122
|
+
last.entries.push(transcript);
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
return groups;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Keeps only the raw entries that belong to the latest two rendered groups.
|
|
129
|
+
* Entries that fall outside the visible two groups are removed immediately
|
|
130
|
+
* so they cannot resurface after current captions expire.
|
|
131
|
+
*/
|
|
132
|
+
pruneToLatestTwoGroups() {
|
|
133
|
+
const groups = this.buildGroups();
|
|
134
|
+
if (groups.length <= 2)
|
|
135
|
+
return;
|
|
136
|
+
const visible = new Set(groups.slice(-2).flatMap((g) => g.entries));
|
|
137
|
+
this.transcripts = this.transcripts.filter((t) => visible.has(t));
|
|
95
138
|
}
|
|
96
139
|
remove(renderedId) {
|
|
97
140
|
this.transcripts = this.transcripts.filter((transcript) => transcript.renderedId !== renderedId);
|
|
@@ -109,34 +152,22 @@ export class RtkTranscripts {
|
|
|
109
152
|
}, 400);
|
|
110
153
|
}
|
|
111
154
|
renderTranscripts() {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
155
|
+
return this.buildGroups()
|
|
156
|
+
.slice(-2)
|
|
157
|
+
.map((group) => {
|
|
158
|
+
const first = group.entries[0];
|
|
159
|
+
const transcript = {
|
|
160
|
+
name: first.name,
|
|
161
|
+
date: first.date,
|
|
162
|
+
peerId: group.peerId,
|
|
163
|
+
userId: first.userId,
|
|
164
|
+
customParticipantId: first.customParticipantId,
|
|
165
|
+
transcript: group.combinedText,
|
|
166
|
+
id: first.id,
|
|
167
|
+
renderedId: group.renderedId,
|
|
121
168
|
};
|
|
122
|
-
|
|
123
|
-
transcript.renderedId = t.renderedId;
|
|
124
|
-
renderedTranscripts.push(t);
|
|
125
|
-
return;
|
|
126
|
-
}
|
|
127
|
-
const lastTranscript = renderedTranscripts[renderedTranscripts.length - 1];
|
|
128
|
-
const maxTranscriptLength = 400;
|
|
129
|
-
if (lastTranscript.transcript.length + t.transcript.length > maxTranscriptLength ||
|
|
130
|
-
lastTranscript.peerId !== transcript.peerId) {
|
|
131
|
-
transcript.renderedId = t.renderedId;
|
|
132
|
-
renderedTranscripts.push(t);
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
lastTranscript.transcript += ' ' + transcript.transcript;
|
|
136
|
-
transcript.renderedId = lastTranscript.renderedId;
|
|
169
|
+
return (h("rtk-transcript", { key: first.id, "data-id": first.id, transcript: transcript, onRtkTranscriptDismiss: (e) => this.handleDismiss(e), t: this.t }));
|
|
137
170
|
});
|
|
138
|
-
renderedTranscripts.splice(0, renderedTranscripts.length - 2);
|
|
139
|
-
return renderedTranscripts === null || renderedTranscripts === void 0 ? void 0 : renderedTranscripts.map((transcript) => (h("rtk-transcript", { key: transcript.id, "data-id": transcript.id, transcript: transcript, onRtkTranscriptDismiss: (e) => this.handleDismiss(e), t: this.t })));
|
|
140
171
|
}
|
|
141
172
|
render() {
|
|
142
173
|
if (!this.states.activeCaptions)
|
|
@@ -10,21 +10,64 @@ export default class RTKAudio {
|
|
|
10
10
|
this.logger = meeting.__internals__.logger;
|
|
11
11
|
this.audioStream = new MediaStream();
|
|
12
12
|
this.audio.srcObject = this.audioStream;
|
|
13
|
-
this.
|
|
13
|
+
this.trackIdByAudioIdMap = new Map();
|
|
14
|
+
this.trackOwners = new Map();
|
|
14
15
|
}
|
|
15
|
-
addTrack(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
addTrack(audioId, track) {
|
|
17
|
+
/**
|
|
18
|
+
* NOTE(ravindra-cloudflare):
|
|
19
|
+
* audioId format: audio-${peerId} or screenshare-${peerId}.
|
|
20
|
+
*
|
|
21
|
+
* During reconnection, the old and new peer IDs of the same participant
|
|
22
|
+
* can temporarily co-own the same track.
|
|
23
|
+
*
|
|
24
|
+
* Before adding track, we should check if the track is already added with a different audio ID.
|
|
25
|
+
*/
|
|
26
|
+
const currentTrackId = this.trackIdByAudioIdMap.get(audioId);
|
|
27
|
+
// Track already added, just play it
|
|
28
|
+
if (currentTrackId === track.id) {
|
|
29
|
+
this.play();
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
// A logical audio ID owns one track. Release its previous track before replacing it.
|
|
33
|
+
if (currentTrackId)
|
|
34
|
+
this.removeTrack(audioId);
|
|
35
|
+
this.trackIdByAudioIdMap.set(audioId, track.id);
|
|
36
|
+
const owners = this.trackOwners.get(track.id);
|
|
37
|
+
if (owners) {
|
|
38
|
+
// Set membership is idempotent when reconnect events repeat or arrive out of order.
|
|
39
|
+
owners.audioIds.add(audioId);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
// If you are the first owner of this track, add it to the audio stream
|
|
43
|
+
this.trackOwners.set(track.id, { track, audioIds: new Set([audioId]) });
|
|
44
|
+
this.audioStream.addTrack(track);
|
|
45
|
+
}
|
|
20
46
|
this.play();
|
|
21
47
|
}
|
|
22
|
-
removeTrack(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
48
|
+
removeTrack(audioId) {
|
|
49
|
+
/**
|
|
50
|
+
* NOTE(ravindra-cloudflare):
|
|
51
|
+
* audioId format: audio-${peerId} or screenshare-${peerId}.
|
|
52
|
+
*
|
|
53
|
+
* During reconnection, the old and new peer IDs of the same participant
|
|
54
|
+
* can temporarily co-own the same track.
|
|
55
|
+
*
|
|
56
|
+
* Before removing track, we should check if the track is still owned by other audio IDs.
|
|
57
|
+
*/
|
|
58
|
+
const trackId = this.trackIdByAudioIdMap.get(audioId);
|
|
59
|
+
if (!trackId)
|
|
60
|
+
return;
|
|
61
|
+
this.trackIdByAudioIdMap.delete(audioId);
|
|
62
|
+
const owners = this.trackOwners.get(trackId);
|
|
63
|
+
if (!owners)
|
|
64
|
+
return;
|
|
65
|
+
owners.audioIds.delete(audioId);
|
|
66
|
+
if (owners.audioIds.size > 0)
|
|
67
|
+
return;
|
|
68
|
+
// Remove the physical track only after its final logical owner is gone.
|
|
69
|
+
this.audioStream.removeTrack(owners.track);
|
|
70
|
+
this.trackOwners.delete(trackId);
|
|
28
71
|
}
|
|
29
72
|
async play() {
|
|
30
73
|
var _a;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { isFirefox } from "../utils/browser";
|
|
2
2
|
const SOUNDS = {
|
|
3
|
-
joined: 'https://rtk-
|
|
4
|
-
left: 'https://rtk-
|
|
5
|
-
message: 'https://rtk-
|
|
3
|
+
joined: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3',
|
|
4
|
+
left: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3',
|
|
5
|
+
message: 'https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_message.mp3',
|
|
6
6
|
};
|
|
7
7
|
/**
|
|
8
8
|
* Handles notification sounds in a meeting
|
package/dist/components/index.js
CHANGED
|
@@ -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-DxDYE5-a.js";export{p as provideRtkDesignSystem}from"./p-
|
|
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-DxDYE5-a.js";export{p as provideRtkDesignSystem}from"./p-CfIrQkMg.js";import{g as t}from"./p-B4dw_Fnl.js";export{e as extendConfig}from"./p-B4dw_Fnl.js";import{c as o}from"./p-DhwysA2e.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-DhwysA2e.js";export{R as RtkNotificationsAudio}from"./p-B56IYWsZ.js";export{g as generateChatGroupKey,a as getChatGroups,c as getParticipantUserId,b as getUnreadChatCounts}from"./p-Bj1kNPpe.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 A{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 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 v(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 r,c as e,h as a,d as o,t as i}from"./p-BBHQOrFK.js";import{S as c}from"./p-
|
|
1
|
+
import{p as t,H as r,c as e,h as a,d as o,t as i}from"./p-BBHQOrFK.js";import{S as c}from"./p-bRRQr4xn.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as s,i as p}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{d as n}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as l}from"./p-DHSRRtn3.js";var h=function(t,r,e,a){var o,i=arguments.length,c=i<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,r,e,a);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(c=(i<3?o(c):i>3?o(r,e,c):o(r,e))||c);return i>3&&c&&Object.defineProperty(r,e,c),c};const v=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onDeleteAttachment=e(this,"deleteAttachment",7),this.iconPack=s,this.t=p(),this.attachment=null,this.filePreview=null,this.fileReader=new FileReader,this.generatePreview=()=>{"image"===this.attachment.type?this.fileReader.readAsDataURL(this.attachment.file):"file"===this.attachment.type&&(this.filePreview=this.attachment.file.name)},this.onDeleteClickHandler=()=>{this.filePreview=null,this.onDeleteAttachment.emit()}}onAttachmentChange(){this.generatePreview()}connectedCallback(){this.fileReader.onload=t=>{"string"==typeof t.target.result&&(this.filePreview=t.target.result)}}componentWillLoad(){this.onAttachmentChange()}render(){return a(o,{key:"4bdc44453552e63a40d31d851a752009d4df74d1"},a("div",{key:"c3024512c383063e7b7be4c3006c726ce9641670",class:"preview-overlay"},a("div",{key:"a14d0cd7148029828baea3fc9261c7b8f70f5bfc",class:"preview"},a("rtk-tooltip",{key:"600f07d41fcf00b156120268fdbdff165ae9c040",label:this.t("chat.cancel_upload")},a("rtk-button",{key:"99059cb78c5451758fe859bb002a05ab3827f718",variant:"secondary",kind:"icon",onClick:this.onDeleteClickHandler},a("rtk-icon",{key:"422f06eb7d08f0708e9c46dc64eb329708a9307a",icon:this.iconPack.dismiss}))),"image"===this.attachment.type?a("img",{class:"preview-image",src:this.filePreview}):a("div",{class:"preview-file"},a("span",null,this.filePreview)))))}static get watchers(){return{attachment:[{onAttachmentChange:0}]}}static get style(){return":host{display:flex;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));border-top-left-radius:var(--rtk-border-radius-md, 8px);border-top-right-radius:var(--rtk-border-radius-md, 8px)}.preview-overlay{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);background-color:inherit}.preview{position:absolute;top:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);max-width:-moz-fit-content;max-width:fit-content;max-height:var(--rtk-space-20, 80px)}.preview:hover rtk-tooltip{display:block}.preview rtk-tooltip{position:absolute;top:calc(var(--rtk-space-1, 4px) * -1);left:calc(var(--rtk-space-1, 4px) * -1);display:none;margin-left:calc(var(--rtk-space-1, 4px) * -1);margin-top:calc(var(--rtk-space-1, 4px) * -1)}.preview rtk-button{display:flex;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));border:1px solid rgb(var(--rtk-colors-text-1000, 255 255 255))}.preview rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.preview-image{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);-o-object-fit:cover;object-fit:cover;max-height:100%;max-width:100%;overflow:clip;border-radius:var(--rtk-border-radius-md, 8px)}.preview-file{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--rtk-border-radius-md, 8px);max-width:200px}"}},[1,"rtk-draft-attachment-view",{iconPack:[16],t:[16],attachment:[16],filePreview:[32]},void 0,{attachment:[{onAttachmentChange:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-draft-attachment-view","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-draft-attachment-view":customElements.get(i(t))||customElements.define(i(t),v);break;case"rtk-button":customElements.get(i(t))||n();break;case"rtk-icon":customElements.get(i(t))||d();break;case"rtk-tooltip":customElements.get(i(t))||l()}}))}h([c()],v.prototype,"iconPack",void 0),h([c()],v.prototype,"t",void 0),k();export{v as R,k as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as s,h as e,d as a,t as n}from"./p-BBHQOrFK.js";import{e as c,i as o,c as r}from"./p-BthnOddY.js";import{l as h,R as d}from"./p-CBJjerDR.js";import{f as l,s as p}from"./p-CJsXePY3.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{c as f,b as m,o as k,s as b,h as u}from"./p-B1SWgSTZ.js";import{S as v}from"./p-DL4GSZ2e.js";import{d as g}from"./p-BNRJKXAG.js";import{d as y}from"./p-D6vw6bT2.js";import{d as x}from"./p-BYIBbfJ8.js";import{d as P}from"./p-66poN2qn.js";import{d as j}from"./p-CSt7vW9Z.js";import{d as C}from"./p-DXSMSSbW.js";var E=function(t,i,s,e){var a,n=arguments.length,c=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(c=(n<3?a(c):n>3?a(i,s,c):a(i,s))||c);return n>3&&c&&Object.defineProperty(i,s,c),c};const O=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.rtkSendNotification=s(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=c,this.t=o(),this.config=r(),this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");f(t,i,{placement:"bottom-end",middleware:[m({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),k(4),b({padding:8}),u()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){if(null!=t){const{self:i}=t;this.canDisableParticipantAudio=i.permissions.canAllowParticipantAudio||i.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=i.permissions.canAllowParticipantVideo||i.permissions.canDisableParticipantVideo,this.canKickParticipant=i.permissions.kickParticipant,this.canPinParticipant=i.permissions.pinParticipant,this.canAllowParticipantOnStage=i.permissions.acceptStageRequests&&i.permissions.stageEnabled,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,s,n,c,o,r,f,m;const k="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),b=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,u=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!k||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,v=l((null===(s=this.participant)||void 0===s?void 0:s.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(n=this.meeting)||void 0===n?void 0:n.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return e(a,{key:"72dec22593ebf143608cd671c2fdf533378acae2"},e("div",{class:"left",key:null===(c=this.participant)||void 0===c?void 0:c.id},e("rtk-avatar",{key:"e71b096c53fe07f425adf1e47d9adb6ee9e7c212",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),e("p",{key:"492fe90030df26c000d2db3b0355d713e3a8ccf9",class:"name",title:v},p(v,16)," ",(null===(o=this.meeting)||void 0===o?void 0:o.self.id)===(null===(r=this.participant)||void 0===r?void 0:r.id)&&this.t("(you)"))),"sidebar"===this.view&&e("div",{key:"66ef58575c0c27d7afe631a544a44cb37c526c4c",class:"right"},g&&e("rtk-icon",{key:"adbbf629c1a4f1034127be89c09f8003d3cfe3a7",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!k&&e("rtk-icon",{key:"ef0b24e9fb292968c96cb74be8d63f14fde38a44",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(u||h({element:"rtk-participant",defaults:y})>0)&&e("div",{key:"38d52737db83f9c444211e3040cf09f5f47c1513",class:"menu"},e("span",{key:"f061992198025919d2bcf14cd1a6eee3f077beaf",id:"trigger",onClick:this.onMenuToggle},e("rtk-button",{key:"7eb863089acda3f9e20e5aedbcf55742c4b4eb64",variant:"ghost",kind:"icon",slot:"trigger"},e("rtk-icon",{key:"a7ff6d6dc9e1139f3b367ab662ad49b79e8258ff",class:"more",icon:this.iconPack.more_vertical}))),e("span",{key:"9188d1538accf4e4769f58580651e0ededa3dd75",id:"menu-list"},this.menuOpen&&e("rtk-menu-list",{key:"ef8b7d03841f4920dc7eb295456669975d06ee2f",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!k&&e("rtk-menu-item",{key:"d82737dc1227c642ce9c3880fcbe373ff6e0ec0c",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},e("rtk-icon",{key:"50e63cba1117df61588026b064046779a1e905fb",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),b&&e("rtk-menu-item",{key:"662d993d406bd00f014f41425ceb728ab4454ebd",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},e("rtk-icon",{key:"8b296bdb308c3a18a7ec13bca1047277a60b0887",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&e("rtk-menu-item",{key:"efea4ce4a51bbe2203635e0a95878d80cfe460e4",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},e("rtk-icon",{key:"cdc27b2554c89ef5c3441de551c2bdbf4e91ed72",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&e("rtk-menu-item",{key:"4f1f4e0610cb9fa7a993b824defc71af47711cb1",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},e("rtk-icon",{key:"234d891a3ea80dbda3172e8e6a89d71a44676770",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(f=this.participant)||void 0===f?void 0:f.id)!==(null===(m=this.meeting)||void 0===m?void 0:m.self.id)&&e("rtk-menu-item",{key:"90c465f0f66a792f160b6226714dd07e51c57616",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},e("rtk-icon",{key:"a5605d8b2864e27817646fc585e6598cd547ca70",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!b&&this.canKickParticipant&&e("rtk-menu-item",{key:"0e5fe7c7f6e61599293843466c5b473226348d26",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.participants.joined.get(null===(i=this.participant)||void 0===i?void 0:i.id))||void 0===s||s.kick()}},e("rtk-icon",{key:"c7d370837be33a1a14fb32f64a35da3fdceafe28",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),e("slot",{key:"ec5dea9563b71323776808d8ef1991cda87e625f"},e(d,{key:"6c423497a1c2f31a7190305913dce0019cf943f1",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;z-index:20}"}},[257,"rtk-participant",{meeting:[16],states:[16],view:[1],participant:[16],iconPack:[16],t:[16],config:[16],audioEnabled:[32],videoEnabled:[32],isPinned:[32],isHidden:[32],isOnStage:[32],canDisableParticipantAudio:[32],canDisableParticipantVideo:[32],canKickParticipant:[32],canPinParticipant:[32],canAllowParticipantOnStage:[32],menuOpen:[32]},void 0,{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}]);function w(){"undefined"!=typeof customElements&&["rtk-participant","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-spinner"].forEach((t=>{switch(t){case"rtk-participant":customElements.get(n(t))||customElements.define(n(t),O);break;case"rtk-avatar":customElements.get(n(t))||g();break;case"rtk-button":customElements.get(n(t))||y();break;case"rtk-icon":customElements.get(n(t))||x();break;case"rtk-menu-item":customElements.get(n(t))||P();break;case"rtk-menu-list":customElements.get(n(t))||j();break;case"rtk-spinner":customElements.get(n(t))||C()}}))}E([v()],O.prototype,"meeting",void 0),E([v()],O.prototype,"states",void 0),E([v()],O.prototype,"iconPack",void 0),E([v()],O.prototype,"t",void 0),E([v()],O.prototype,"config",void 0),w();export{O as R,w as d}
|
|
1
|
+
import{p as t,H as i,c as s,h as e,d as a,t as n}from"./p-BBHQOrFK.js";import{e as c,i as o,c as r}from"./p-DhwysA2e.js";import{l as h,R as d}from"./p-CBJjerDR.js";import{f as l,s as p}from"./p-CJsXePY3.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{c as f,b as m,o as k,s as b,h as u}from"./p-B1SWgSTZ.js";import{S as v}from"./p-bRRQr4xn.js";import{d as g}from"./p-BHHJ7_MS.js";import{d as y}from"./p-D6vw6bT2.js";import{d as x}from"./p-BYIBbfJ8.js";import{d as j}from"./p-DMbGWtns.js";import{d as P}from"./p-Z8VMlEx7.js";import{d as C}from"./p-B0SC1Zj-.js";var E=function(t,i,s,e){var a,n=arguments.length,c=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(c=(n<3?a(c):n>3?a(i,s,c):a(i,s))||c);return n>3&&c&&Object.defineProperty(i,s,c),c};const w=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.rtkSendNotification=s(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=c,this.t=o(),this.config=r(),this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");f(t,i,{placement:"bottom-end",middleware:[m({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),k(4),b({padding:8}),u()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){if(null!=t){const{self:i}=t;this.canDisableParticipantAudio=i.permissions.canAllowParticipantAudio||i.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=i.permissions.canAllowParticipantVideo||i.permissions.canDisableParticipantVideo,this.canKickParticipant=i.permissions.kickParticipant,this.canPinParticipant=i.permissions.pinParticipant,this.canAllowParticipantOnStage=i.permissions.acceptStageRequests&&i.permissions.stageEnabled,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,s,n,c,o,r,f,m;const k="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),b=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,u=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!k||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,v=l((null===(s=this.participant)||void 0===s?void 0:s.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(n=this.meeting)||void 0===n?void 0:n.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return e(a,{key:"72dec22593ebf143608cd671c2fdf533378acae2"},e("div",{class:"left",key:null===(c=this.participant)||void 0===c?void 0:c.id},e("rtk-avatar",{key:"e71b096c53fe07f425adf1e47d9adb6ee9e7c212",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),e("p",{key:"492fe90030df26c000d2db3b0355d713e3a8ccf9",class:"name",title:v},p(v,16)," ",(null===(o=this.meeting)||void 0===o?void 0:o.self.id)===(null===(r=this.participant)||void 0===r?void 0:r.id)&&this.t("(you)"))),"sidebar"===this.view&&e("div",{key:"66ef58575c0c27d7afe631a544a44cb37c526c4c",class:"right"},g&&e("rtk-icon",{key:"adbbf629c1a4f1034127be89c09f8003d3cfe3a7",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!k&&e("rtk-icon",{key:"ef0b24e9fb292968c96cb74be8d63f14fde38a44",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(u||h({element:"rtk-participant",defaults:y})>0)&&e("div",{key:"38d52737db83f9c444211e3040cf09f5f47c1513",class:"menu"},e("span",{key:"f061992198025919d2bcf14cd1a6eee3f077beaf",id:"trigger",onClick:this.onMenuToggle},e("rtk-button",{key:"7eb863089acda3f9e20e5aedbcf55742c4b4eb64",variant:"ghost",kind:"icon",slot:"trigger"},e("rtk-icon",{key:"a7ff6d6dc9e1139f3b367ab662ad49b79e8258ff",class:"more",icon:this.iconPack.more_vertical}))),e("span",{key:"9188d1538accf4e4769f58580651e0ededa3dd75",id:"menu-list"},this.menuOpen&&e("rtk-menu-list",{key:"ef8b7d03841f4920dc7eb295456669975d06ee2f",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!k&&e("rtk-menu-item",{key:"d82737dc1227c642ce9c3880fcbe373ff6e0ec0c",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},e("rtk-icon",{key:"50e63cba1117df61588026b064046779a1e905fb",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),b&&e("rtk-menu-item",{key:"662d993d406bd00f014f41425ceb728ab4454ebd",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},e("rtk-icon",{key:"8b296bdb308c3a18a7ec13bca1047277a60b0887",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&e("rtk-menu-item",{key:"efea4ce4a51bbe2203635e0a95878d80cfe460e4",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},e("rtk-icon",{key:"cdc27b2554c89ef5c3441de551c2bdbf4e91ed72",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&e("rtk-menu-item",{key:"4f1f4e0610cb9fa7a993b824defc71af47711cb1",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},e("rtk-icon",{key:"234d891a3ea80dbda3172e8e6a89d71a44676770",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(f=this.participant)||void 0===f?void 0:f.id)!==(null===(m=this.meeting)||void 0===m?void 0:m.self.id)&&e("rtk-menu-item",{key:"90c465f0f66a792f160b6226714dd07e51c57616",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},e("rtk-icon",{key:"a5605d8b2864e27817646fc585e6598cd547ca70",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!b&&this.canKickParticipant&&e("rtk-menu-item",{key:"0e5fe7c7f6e61599293843466c5b473226348d26",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.participants.joined.get(null===(i=this.participant)||void 0===i?void 0:i.id))||void 0===s||s.kick()}},e("rtk-icon",{key:"c7d370837be33a1a14fb32f64a35da3fdceafe28",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),e("slot",{key:"ec5dea9563b71323776808d8ef1991cda87e625f"},e(d,{key:"6c423497a1c2f31a7190305913dce0019cf943f1",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;z-index:20}"}},[257,"rtk-participant",{meeting:[16],states:[16],view:[1],participant:[16],iconPack:[16],t:[16],config:[16],audioEnabled:[32],videoEnabled:[32],isPinned:[32],isHidden:[32],isOnStage:[32],canDisableParticipantAudio:[32],canDisableParticipantVideo:[32],canKickParticipant:[32],canPinParticipant:[32],canAllowParticipantOnStage:[32],menuOpen:[32]},void 0,{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}]);function O(){"undefined"!=typeof customElements&&["rtk-participant","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-spinner"].forEach((t=>{switch(t){case"rtk-participant":customElements.get(n(t))||customElements.define(n(t),w);break;case"rtk-avatar":customElements.get(n(t))||g();break;case"rtk-button":customElements.get(n(t))||y();break;case"rtk-icon":customElements.get(n(t))||x();break;case"rtk-menu-item":customElements.get(n(t))||j();break;case"rtk-menu-list":customElements.get(n(t))||P();break;case"rtk-spinner":customElements.get(n(t))||C()}}))}E([v()],w.prototype,"meeting",void 0),E([v()],w.prototype,"states",void 0),E([v()],w.prototype,"iconPack",void 0),E([v()],w.prototype,"t",void 0),E([v()],w.prototype,"config",void 0),O();export{w as R,O as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as r,d as i,t as a}from"./p-BBHQOrFK.js";import{e as c,i as o}from"./p-
|
|
1
|
+
import{p as t,H as e,c as s,h as r,d as i,t as a}from"./p-BBHQOrFK.js";import{e as c,i as o}from"./p-DhwysA2e.js";import{S as n}from"./p-bRRQr4xn.js";var h=function(t,e,s,r){var i,a=arguments.length,c=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,s,r);else for(var o=t.length-1;o>=0;o--)(i=t[o])&&(c=(a<3?i(c):a>3?i(e,s,c):i(e,s))||c);return a>3&&c&&Object.defineProperty(e,s,c),c};const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onChange=s(this,"rtkChange",4),this.checked=!1,this.readonly=!1,this.disabled=!1,this.iconPack=c,this.t=o(),this.onClick=()=>{this.readonly||this.disabled||(this.checked=!this.checked)},this.onKeyPress=t=>{if(!this.readonly)switch(t.key){case"Enter":case" ":this.checked=!this.checked}}}connectedCallback(){this.checkedChange(this.checked)}checkedChange(t){this.checked=t,this.onChange.emit(t)}render(){return r(i,{key:"af0bcf0202cda77f3ec27510b867ed149c478bdf",role:"switch",tabIndex:this.disabled&&0,"aria-readonly":this.readonly,"aria-checked":this.checked,"aria-disabled":this.disabled,class:{checked:this.checked},onClick:this.onClick,onKeyPress:this.onKeyPress},r("div",{key:"e6f5eeb8acf33e9f058b029423eddc099033053c",class:"switch",part:"switch"}))}static get watchers(){return{checked:[{checkedChange:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:inline-flex;height:var(--rtk-space-6, 24px);width:var(--rtk-space-10, 40px);align-items:center;padding:var(--rtk-space-1, 4px);border-radius:9999px;background-color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));cursor:pointer}.switch{box-sizing:border-box;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);background-color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));border-radius:9999px;transition-property:var(--rtk-transition-property, all);transition-duration:200ms}:host(.checked){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host(.checked) .switch{transform:translateX(100%)}:host([readonly]),:host([disabled]){cursor:not-allowed;opacity:0.6}"}},[1,"rtk-switch",{checked:[1028],readonly:[4],disabled:[516],iconPack:[16],t:[16]},void 0,{checked:[{checkedChange:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-switch"].forEach((t=>{"rtk-switch"===t&&(customElements.get(a(t))||customElements.define(a(t),d))}))}h([n()],d.prototype,"iconPack",void 0),h([n()],d.prototype,"t",void 0),l();export{d as R,l as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,h as a,t as s}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import{c as e,e as r,i as n}from"./p-
|
|
1
|
+
import{p as t,H as i,h as a,t as s}from"./p-BBHQOrFK.js";import"./p-DxDYE5-a.js";import{c as e,e as r,i as n}from"./p-DhwysA2e.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-bRRQr4xn.js";import{d as o}from"./p-BHHJ7_MS.js";import{d as p}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-B0SC1Zj-.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 t,H as e,h as r,d as s,t as i}from"./p-BBHQOrFK.js";import{e as n}from"./p-
|
|
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-DhwysA2e.js";import{S as a}from"./p-bRRQr4xn.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:"5e435f3b94bf3a2b9d242d78407390996a76be15"},r("rtk-icon",{key:"9e9e4200e0dc295bfe9048e57beb6cd809bf53a2",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 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,d as i,t as n}from"./p-BBHQOrFK.js";import{c as o,o as a,f as c,s as r}from"./p-B1SWgSTZ.js";import{e as f,i as l}from"./p-
|
|
1
|
+
import{p as t,H as e,h as s,d as i,t as n}from"./p-BBHQOrFK.js";import{c as o,o as a,f as c,s as r}from"./p-B1SWgSTZ.js";import{e as f,i as l}from"./p-DhwysA2e.js";import{S as d}from"./p-bRRQr4xn.js";var p=function(t,e,s,i){var n,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,s,i);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(o<3?n(a):o>3?n(e,s,a):n(e,s))||a);return o>3&&a&&Object.defineProperty(e,s,a),a};const m=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.clickedThis=!1,this.placement="bottom-end",this.offset=10,this.iconPack=f,this.t=l(),this.handleOutsideClick=()=>{this.clickedThis||(this.menuListEl.style.display="none"),this.clickedThis=!1}}componentDidLoad(){document.addEventListener("click",this.handleOutsideClick),this.update()}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}update(){o(this.triggerEl,this.menuListEl,{placement:this.placement,middleware:[a(this.offset),c(),r({padding:5})]}).then((({x:t,y:e})=>{Object.assign(this.menuListEl.style,{left:`${t}px`,top:`${e}px`})}))}render(){return s(i,{key:"c7cf93be6e90e8e8e09b1ff8ff717b328ab91660"},s("span",{key:"6b77e648ffbf038450bfdc36c45a50d7a73e6bb4",id:"trigger",ref:t=>this.triggerEl=t,onClick:()=>{this.clickedThis=!0,"block"!==this.menuListEl.style.display?(this.menuListEl.style.display="block",this.update()):this.menuListEl.style.display="none"}},s("slot",{key:"08c30f54a39dfc8c21a248e63c9879fcb93b4ad0",name:"trigger"})),s("span",{key:"7d824c0d9140fa47cf4a72463b5d795c86f026a4",part:"menu-list",id:"menu-list",ref:t=>this.menuListEl=t},s("slot",{key:"fc13149fe4447fada518248c30258d0e908d3030"})))}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:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;z-index:20;display:none}"}},[257,"rtk-menu",{size:[513],placement:[1],offset:[2],iconPack:[16],t:[16]}]);function h(){"undefined"!=typeof customElements&&["rtk-menu"].forEach((t=>{"rtk-menu"===t&&(customElements.get(n(t))||customElements.define(n(t),m))}))}p([d()],m.prototype,"iconPack",void 0),p([d()],m.prototype,"t",void 0),h();export{m as R,h as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as
|
|
1
|
+
import{p as t,H as r,h as e,d as s,t as i}from"./p-BBHQOrFK.js";import{c as o,e as a,i as n}from"./p-DhwysA2e.js";import{S as c}from"./p-bRRQr4xn.js";import{d as p}from"./p-CAMtxcI_.js";import{d as l}from"./p-BYIBbfJ8.js";var f=function(t,r,e,s){var i,o=arguments.length,a=o<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,r,e,s);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(a=(o<3?i(a):o>3?i(r,e,a):i(r,e))||a);return o>3&&a&&Object.defineProperty(r,e,a),a};const m=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=o(),this.iconPack=a,this.t=n(),this.view="sidebar"}render(){return this.meeting?e(s,null,e("rtk-ai-transcriptions",Object.assign({},{meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack}))):null}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;box-sizing:border-box;display:flex;width:100%;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden}.close{position:absolute;top:var(--rtk-space-3, 12px);left:var(--rtk-space-3, 12px)}.title{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-2, 8px);-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:var(--rtk-space-0, 0px);text-align:center;font-size:14px;font-weight:400}rtk-ai-transcriptions{flex:1}:host([view='sidebar']){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}:host([view='full-screen']){position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:50;max-width:100%;border:none}"}},[1,"rtk-ai",{meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],size:[513],view:[513]}]);function k(){"undefined"!=typeof customElements&&["rtk-ai","rtk-ai-transcriptions","rtk-icon"].forEach((t=>{switch(t){case"rtk-ai":customElements.get(i(t))||customElements.define(i(t),m);break;case"rtk-ai-transcriptions":customElements.get(i(t))||p();break;case"rtk-icon":customElements.get(i(t))||l()}}))}f([c()],m.prototype,"meeting",void 0),f([c()],m.prototype,"states",void 0),f([c()],m.prototype,"config",void 0),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,c as a,h as r,d as s,t as i}from"./p-BBHQOrFK.js";import{e as o,i as c}from"./p-
|
|
1
|
+
import{p as t,H as e,c as a,h as r,d as s,t as i}from"./p-BBHQOrFK.js";import{e as o,i as c}from"./p-DhwysA2e.js";import{S as n}from"./p-bRRQr4xn.js";import{d as f}from"./p-BYIBbfJ8.js";var p=function(t,e,a,r){var s,i=arguments.length,o=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=a(this,"rtkStateUpdate",7),this.iconPack=o,this.t=c()}connectedCallback(){this.states.activeOverlayModal.timeout&&setTimeout((()=>{this.stateUpdate.emit({activeOverlayModal:{active:!1}})}),this.states.activeOverlayModal.timeout)}render(){return r(s,{key:"1c15f5569d6914a3cbbd9685c354f9c14e38d7af"},r("rtk-icon",{key:"b3a08daa8c951ca46a8b98c64fca1d178f56ac72",icon:this.states.activeOverlayModal.icon}),r("h2",{key:"e8498afe9cf9434aaf8e4f1157c174b3268dbd41"},this.states.activeOverlayModal.title),r("p",{key:"a48d9a3ed6634682e1f2fc7af69e357d57cb9aaf"},this.states.activeOverlayModal.description))}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;align-items:center;justify-content:center;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0.6);position:fixed;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);z-index:50}rtk-icon{height:var(--rtk-space-20, 80px)}h2{margin:var(--rtk-space-2, 8px);font-weight:500}p{margin:var(--rtk-space-0, 0px);font-size:16px}"}},[1,"rtk-overlay-modal",{meeting:[16],states:[16],iconPack:[16],t:[16]}]);function l(){"undefined"!=typeof customElements&&["rtk-overlay-modal","rtk-icon"].forEach((t=>{switch(t){case"rtk-overlay-modal":customElements.get(i(t))||customElements.define(i(t),d);break;case"rtk-icon":customElements.get(i(t))||f()}}))}p([n()],d.prototype,"meeting",void 0),p([n()],d.prototype,"states",void 0),p([n()],d.prototype,"iconPack",void 0),p([n()],d.prototype,"t",void 0),l();export{d as R,l as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"./p-
|
|
1
|
+
import{c as t}from"./p-DhwysA2e.js";import{i as e,m as r}from"./p-CfIrQkMg.js";import{i}from"./p-C0vp-Q7v.js";const a=(e,i=t())=>{let a=Object.assign({},i);return r(a,e),a},o=(t,r,o={},l={grid_pagination:!0,settings_toggle:!0})=>{var n,d,g,s,c,v,k,p,m,u,h,b,x,f,y,S,w,O;const I={showSetupScreen:!0};let M,_=["rtk-stage"],T={},j={};const R=!1!==(null==l?void 0:l.settings_toggle),C=!1!==(null==l?void 0:l.grid_pagination);if(null===(n=t.controlBar)||void 0===n?void 0:n.isEnabled){_.push("rtk-controlbar");const{elements:e}=t.controlBar,a=[...e.fullscreen?["rtk-fullscreen-toggle"]:[],...R?["rtk-settings-toggle"]:[]],o=[],l=[];(null===(d=r.participants.pip)||void 0===d?void 0:d.isSupported())&&(null===(s=null===(g=r.self)||void 0===g?void 0:g.config)||void 0===s?void 0:s.pipMode)&&"LIVESTREAM"!==(null===(c=r.self.config)||void 0===c?void 0:c.viewType)&&l.push("rtk-pip-toggle"),(null==r?void 0:r.self.permissions.canDisableParticipantAudio)&&l.push("rtk-mute-all-button"),l.push("rtk-breakout-rooms-toggle"),(null===(v=r.self)||void 0===v?void 0:v.permissions.canRecord)&&l.push("rtk-recording-toggle"),null!==(k=r.self.permissions.transcriptionEnabled)&&void 0!==k&&k&&l.push("rtk-caption-toggle"),"ReactNative"!==navigator.product&&l.push("rtk-debugger-toggle"),i(r)&&a.push("rtk-livestream-toggle"),e.screenshare&&a.push("rtk-screen-share-toggle"),e.chat&&o.push("rtk-chat-toggle"),e.polls&&o.push("rtk-polls-toggle"),e.participants&&o.push("rtk-participants-toggle"),e.plugins&&o.push("rtk-plugins-toggle"),o.push("rtk-ai-toggle");const n=["rtk-mic-toggle","rtk-camera-toggle","rtk-stage-toggle","rtk-leave-button"];l.length>0&&n.push("rtk-more-toggle");const p=a.concat(o).concat(l);let m=!1;p.length>0&&(m=!0),j={"rtk-controlbar":{states:["activeMoreMenu"],children:["div#controlbar-left","div#controlbar-center","div#controlbar-right"]},"div#controlbar-left":a,"div#controlbar-center":n,"div#controlbar-right":o,"rtk-more-toggle":{states:["activeMoreMenu"],children:[]},"rtk-more-toggle.activeMoreMenu":l.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"rtk-controlbar.sm":["div#controlbar-mobile"],"rtk-controlbar.md":["div#controlbar-mobile"],"rtk-more-toggle.activeMoreMenu.md":p.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"rtk-more-toggle.activeMoreMenu.sm":p.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"div#controlbar-mobile":["rtk-mic-toggle","rtk-camera-toggle","rtk-stage-toggle",m&&"rtk-more-toggle","rtk-leave-button"]}}if(null===(p=t.header)||void 0===p?void 0:p.isEnabled){_.unshift("rtk-header");const{elements:e}=t.header;let r=["rtk-recording-indicator","rtk-livestream-indicator"],i=[],a=[];C&&a.push("rtk-grid-pagination"),e.title&&i.push("rtk-meeting-title"),"string"==typeof e.logo&&e.logo.length>0&&(M=e.logo,r.unshift("rtk-logo")),e.participantCount&&a.push("rtk-participant-count","rtk-viewer-count"),e.timer&&a.push("rtk-clock"),T={"rtk-header":["div#header-left","div#header-center","div#header-right"],"rtk-header.sm":{remove:["div#header-center"]},"div#header-left":r,"div#header-center":i,"div#header-right":a,"div#header-left.sm":{remove:["rtk-logo"],prepend:["rtk-meeting-title"]}}}_.push("rtk-participants-audio","rtk-dialog-manager");let A={logo:M};A=t.designTokens,e(null===(u=null===(m=null==t?void 0:t.designTokens)||void 0===m?void 0:m.colors)||void 0===u?void 0:u.textOnBrand)&&(A.colors["text-on-brand"]=null===(b=null===(h=null==t?void 0:t.designTokens)||void 0===h?void 0:h.colors)||void 0===b?void 0:b.textOnBrand),e(null===(f=null===(x=null==t?void 0:t.designTokens)||void 0===x?void 0:x.colors)||void 0===f?void 0:f.videoBg)&&(A.colors["video-bg"]=null===(S=null===(y=null==t?void 0:t.designTokens)||void 0===y?void 0:y.colors)||void 0===S?void 0:S.videoBg);let z={designTokens:A,styles:{"rtk-header":{display:"grid",height:"48px",gridTemplateColumns:"repeat(3, 1fr)",gridTemplateRows:"1fr",alignItems:"center","--header-section-gap":"var(--rtk-space-2, 8px)"},"rtk-header.sm":{display:"grid",gridArea:"header",gridTemplateColumns:"repeat(2, 1fr)",gridTemplateRows:"1fr",alignItems:"center","--header-section-gap":"var(--rtk-space-1, 4px)"},"div#header-left":{display:"flex",alignItems:"center",height:"48px",wordBreak:"break-all",gap:"var(--header-section-gap)"},"rtk-logo":{height:"26px"},"div#header-center":{display:"flex",alignItems:"center",justifyContent:"center",wordBreak:"break-all",gap:"var(--header-section-gap)",paddingInline:"var(--rtk-space-3, 12px)"},"div#header-right":{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--header-section-gap)"},"rtk-stage":{display:"flex",flex:"1"},"rtk-grid":{flex:"1",height:"auto"},"rtk-controlbar":{display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"1fr",alignItems:"center",padding:"8px"},"rtk-controlbar.sm":{display:"flex",position:"relative",backgroundColor:"var(--rtk-colors-background-1000, #000)"},"rtk-controlbar.md":{display:"flex",position:"relative",backgroundColor:"var(--rtk-colors-background-1000, #000)"},"div#controlbar-left":{display:"flex",alignItems:"center",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-center":{display:"flex",alignItems:"center",position:"relative",overflow:"visible",justifyContent:"center",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-mobile":{display:"flex",flex:"1",alignItems:"center",justifyContent:"center",zIndex:"10000",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-right":{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--rtk-space-1, 4px)"},"rtk-settings":{width:"720px",height:"480px"},"rtk-debugger":{width:"720px",height:"480px"},"div#setupcontrols-indicator":{position:"absolute",bottom:"12px",left:"12px",display:"flex",gap:"6px",background:"rgb(var(--rtk-colors-background-800, 0 0 0))",borderRadius:"100%"},"div#setupcontrols-media":{position:"absolute",bottom:"8px",right:"8px",display:"flex",gap:"6px"},"div#setupcontrols-settings":{position:"absolute",top:"8px",right:"8px",display:"flex",flexDirection:"column",gap:"6px"},"rtk-meeting-title.sm":{marginLeft:"0"},"rtk-clock":{marginRight:"0"}},root:Object.assign(Object.assign(Object.assign({"rtk-meeting":{state:"meeting",states:["activeSidebar"]},"rtk-meeting[meeting=idle]":["rtk-idle-screen"],"rtk-meeting[meeting=waiting]":["rtk-waiting-screen"],"rtk-meeting[meeting=setup]":["rtk-setup-screen","rtk-dialog-manager"],"rtk-meeting[meeting=joined]":_,"rtk-meeting[meeting=joined].activeSidebar.sm":{add:[["rtk-sidebar",{view:"full-screen"}]]},"rtk-meeting[meeting=joined].activeSidebar.md":{add:[["rtk-sidebar",{view:"full-screen"}]]},"rtk-meeting[meeting=ended]":["rtk-ended-screen"]},T),j),{"rtk-stage":{states:["activeSidebar"],children:["rtk-grid","rtk-notifications","rtk-transcripts"]},"rtk-stage.activeSidebar":{add:[["rtk-sidebar",{view:"sidebar"}]]},"rtk-stage.activeSidebar.sm":{remove:["rtk-sidebar"]},"rtk-grid":{states:["activeScreenShare","activePlugin","activeSpotlight"],state:"viewType",children:["rtk-simple-grid"]},"rtk-grid[viewType=AUDIO_ROOM]":["rtk-audio-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activeScreenshare":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin.activeSpotlight":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activeSpotlight":["rtk-spotlight-grid"],"rtk-grid.activeScreenShare":["rtk-mixed-grid"],"rtk-grid.activePlugin":["rtk-mixed-grid"],"rtk-grid.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activePlugin.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activePlugin.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-mixed-grid":{states:["activeSpotlight"],state:"viewType",children:["rtk-simple-grid"]},"rtk-mixed-grid[viewType=AUDIO_ROOM]":["rtk-audio-grid"],"rtk-mixed-grid.activeSpotlight":["rtk-spotlight-grid"],"rtk-participant-tile":{state:"meeting",children:["rtk-name-tag","rtk-avatar","rtk-network-indicator"]},"rtk-participant-setup":["rtk-avatar","div#setupcontrols-media"],"rtk-participant-tile[meeting=setup]":["rtk-avatar","div#setupcontrols-indicator","div#setupcontrols-media",...R?["div#setupcontrols-settings"]:[]],"div#setupcontrols-indicator":[["rtk-audio-visualizer",{slot:"start",hideMuted:!0}]],"div#setupcontrols-media":[["rtk-mic-toggle",{size:"sm"}],["rtk-camera-toggle",{size:"sm"}]],"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"}]]}),config:{notification_sounds:{participant_left:!1},participant_joined_sound_notification_limit:3,participant_chat_message_sound_notification_limit:10,videoFit:"cover"}};return z=a(o,z),I.showSetupScreen=null===(O=null===(w=t.setupScreen)||void 0===w?void 0:w.isEnabled)||void 0===O||O,{config:z,data:I}};export{a as e,o as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as t}from"./p-CAqYddlg.js";const i={joined:"https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3",left:"https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_join.mp3",message:"https://rtk-assets.realtime.cloudflare.com/ui-kit/sounds/notification_message.mp3"};class s{constructor(t){this.meeting=t,this.audio=document.createElement("audio"),this.audio.volume=.3}play(t,s=3e3){var o;this.playing||(this.playing=!0,this.audio.src=i[t],this.audio.volume=.3,null===(o=this.audio.play())||void 0===o||o.catch((()=>{})),setTimeout((()=>{this.playing=!1}),s))}async setDevice(i){var s,o,e;t(this.meeting)||await(null===(e=null===(o=null===(s=this.audio)||void 0===s?void 0:s.setSinkId)||void 0===o?void 0:o.call(s,i))||void 0===e?void 0:e.catch((()=>{})))}}export{s as R}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as r,d as i,t as a}from"./p-BBHQOrFK.js";import{e as s,i as o}from"./p-
|
|
1
|
+
import{p as t,H as e,h as r,d as i,t as a}from"./p-BBHQOrFK.js";import{e as s,i as o}from"./p-DhwysA2e.js";import{f as n,g as c}from"./p-CJsXePY3.js";import{S as l}from"./p-bRRQr4xn.js";import{d as p}from"./p-BYIBbfJ8.js";import{d}from"./p-B0SC1Zj-.js";var h=function(t,e,r,i){var a,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(s<3?a(o):s>3?a(e,r,o):a(e,r))||o);return s>3&&o&&Object.defineProperty(e,r,o),o};const g=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="circular",this.iconPack=s,this.t=o(),this.imageState="loading",this.getAvatar=()=>{var t;const e=n((null===(t=this.participant)||void 0===t?void 0:t.name)||"");let i;if(null!=this.participant&&"picture"in this.participant&&(i=this.participant.picture),i&&i.length>0&&"errored"!==this.imageState)return r("div",{class:"image-ctr"},"loading"===this.imageState&&r("rtk-spinner",{iconPack:this.iconPack}),r("img",{src:i,class:{loaded:"loaded"===this.imageState},loading:"lazy",title:e,onLoad:()=>this.imageState="loaded",onError:()=>this.imageState="errored",part:"image"}));const a=c(e);return r("div",{class:"initials",title:e,part:"initials"},a)}}render(){return r(i,{key:"d7d3a7b03a3807984dc6798b5e35cec4418e06e7"},this.getAvatar(),r("slot",{key:"25aa9fe632a132c1e2f8ef88ac98043bb8ef085a"}))}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:var(--rtk-space-32, 128px);width:var(--rtk-space-32, 128px);align-items:center;justify-content:center;font-size:28px;--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)));overflow:clip;border-radius:9999px;-webkit-user-select:none;-moz-user-select:none;user-select:none}rtk-icon{height:50%;width:50%}.image-ctr{display:flex;height:100%;width:100%;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}img{height:var(--rtk-space-0, 0px);width:var(--rtk-space-0, 0px);-o-object-fit:cover;object-fit:cover}img.loaded{height:100%;width:100%}.initials{display:flex;height:100%;width:100%;align-items:center;justify-content:center;text-transform:uppercase}.image{display:flex;height:100%;width:100%;align-items:center;justify-content:center}.image img{display:none;height:100%;width:100%;-o-object-fit:cover;object-fit:cover}.image img.loaded{display:block}:host([variant='hexagon']){border-radius:var(--rtk-border-radius-none, 0);clip-path:polygon(50% 0, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%)}:host([variant='square']){border-radius:var(--rtk-border-radius-none, 0);clip-path:polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%)}:host([size='sm']){height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);font-size:12px}:host([size='md']){height:var(--rtk-space-28, 112px);width:var(--rtk-space-28, 112px)}:host([size='lg']){height:var(--rtk-space-32, 128px);width:var(--rtk-space-32, 128px)}"}},[257,"rtk-avatar",{participant:[16],variant:[513],size:[513],iconPack:[16],t:[16],imageState:[32]}]);function f(){"undefined"!=typeof customElements&&["rtk-avatar","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-avatar":customElements.get(a(t))||customElements.define(a(t),g);break;case"rtk-icon":customElements.get(a(t))||p();break;case"rtk-spinner":customElements.get(a(t))||d()}}))}h([l()],g.prototype,"iconPack",void 0),h([l()],g.prototype,"t",void 0),f();export{g as R,f 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-
|
|
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-bRRQr4xn.js";import"./p-DxDYE5-a.js";import"./p-C0vp-Q7v.js";import{e as d}from"./p-DhwysA2e.js";import"./p-Dguuxuf6.js";import{d as l}from"./p-BHHJ7_MS.js";import{d as p}from"./p-BYIBbfJ8.js";import{d as b}from"./p-B1HaRABx.js";import{d as m}from"./p-DMbGWtns.js";import{d as k}from"./p-Z8VMlEx7.js";import{d as f}from"./p-B0SC1Zj-.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}
|