@cloudflare/realtimekit-ui 2.2.0-staging.3 → 2.2.0-staging.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/cjs/{TextMessage-BA97TnvX.js → TextMessage-C4d86cID.js} +1 -1
- package/dist/cjs/{chat-NY588mAE.js → chat-_Z7QVSxx.js} +1 -1
- package/dist/cjs/{config-Chzt-h7l.js → config-C9cIVa2D.js} +5 -11
- package/dist/cjs/{debounce-CoFZKdWb.js → debounce-BaLnYFmQ.js} +1 -1
- package/dist/cjs/{index-BeKaBV5F.js → index-CSL0ebii.js} +1 -1
- package/dist/cjs/index.cjs.js +18 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ui-kit-metadata-zBJ8NnVE.js → merge-B4v4sEV3.js} +1 -290
- 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 +2 -2
- package/dist/cjs/rtk-audio-visualizer_3.cjs.entry.js +5 -6
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +13 -12
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
- 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 +6 -6
- 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 +2 -2
- 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 +3 -3
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +4 -5
- 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 +8 -6
- package/dist/cjs/rtk-notifications.cjs.entry.js +195 -205
- 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 +5 -5
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +3 -4
- 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 +347 -34
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
- 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 +2 -2
- 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 +3 -3
- package/dist/cjs/rtk-switch.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +6 -5
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
- package/dist/cjs/ui-kit-metadata-BjBLJPVs.js +291 -0
- package/dist/cjs/{ui-store-DSyXGfDZ.js → ui-store-XQk2zaMR.js} +225 -8
- package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
- package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +1 -1
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
- package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
- package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
- package/dist/collection/components/rtk-header/rtk-header.js +1 -1
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
- package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
- package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
- package/dist/collection/components/rtk-notification/rtk-notification.js +5 -3
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +194 -166
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
- package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
- package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +1 -1
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
- package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
- package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +210 -0
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +371 -37
- package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +2 -2
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +1 -1
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +1 -1
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +1 -1
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +1 -1
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
- package/dist/collection/components/rtk-stage/rtk-stage.js +2 -2
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
- package/dist/collection/components/rtk-switch/rtk-switch.js +2 -2
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +2 -2
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -3
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +2 -2
- package/dist/collection/lib/default-ui-config.js +2 -8
- package/dist/collection/lib/lang/default-language.js +6 -0
- package/dist/collection/lib/notification.js +56 -2
- package/dist/collection/types/ui-config/config.js +101 -13
- package/dist/collection/utils/config.js +3 -8
- package/dist/collection/utils/notification.js +12 -3
- package/dist/collection/utils/ui-kit-metadata.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DC-3Hg9I.js → p-0DTiM_we.js} +1 -1
- package/dist/components/{p-kGPSVdob.js → p-1C_TdKq0.js} +1 -1
- package/dist/components/{p-CHSH0L_g.js → p-1J7p9yTO.js} +1 -1
- package/dist/components/{p-CGVMdadq.js → p-453sV-Ir.js} +1 -1
- package/dist/components/{p-0I1N5xHK.js → p-6A_cBfi7.js} +1 -1
- package/dist/components/{p-GMH-Dp75.js → p-B-L_tmky.js} +1 -1
- package/dist/components/{p-Zkjzr8ZL.js → p-B5e4-Gnb.js} +1 -1
- package/dist/components/{p-CugPCiPF.js → p-B7ZjIFa-.js} +1 -1
- package/dist/components/{p-xLck_VlO.js → p-B8xh8FL-.js} +1 -1
- package/dist/components/{p-BNjHUNwU.js → p-BDmVHB8l.js} +1 -1
- package/dist/components/{p-Bc2jtNZw.js → p-BJ7Hcvk1.js} +1 -1
- package/dist/components/p-BLyVHBPm.js +1 -0
- package/dist/components/{p-D9cHynev.js → p-BQ-x6_xE.js} +1 -1
- package/dist/components/{p-DAGCKEFc.js → p-BY_hQMNu.js} +1 -1
- package/dist/components/{p-BeWjGx1n.js → p-BaCQqa-Q.js} +1 -1
- package/dist/components/p-BbVYO_6g.js +1 -0
- package/dist/components/{p-CkNlX5-Y.js → p-BbdR8jiw.js} +1 -1
- package/dist/components/{p-GtIz3u0L.js → p-BeeuQPMZ.js} +1 -1
- package/dist/components/{p-BugzZ4hY.js → p-Bhp9Zffa.js} +1 -1
- package/dist/components/{p-Dc5xkFI9.js → p-BkWaCvJV.js} +1 -1
- package/dist/components/{p-Ds5j-VXZ.js → p-BmjopjI3.js} +1 -1
- package/dist/components/{p--F3BGV0E.js → p-Bo1ku_2a.js} +1 -1
- package/dist/components/{p-uxGiMP6W.js → p-BowkkEiR.js} +1 -1
- package/dist/components/p-BtMpJ0mM.js +1 -0
- package/dist/components/{p-DuRlksIi.js → p-BwnnHi0H.js} +1 -1
- package/dist/components/{p-CiX87kt0.js → p-BwpYVCMj.js} +1 -1
- package/dist/components/{p-DxZ5v-a-.js → p-Bxt73ql2.js} +1 -1
- package/dist/components/{p-gBEnKt4T.js → p-C-Jht7Ou.js} +1 -1
- package/dist/components/{p-CM3Y2kOg.js → p-C7qQzBOW.js} +1 -1
- package/dist/components/{p-BVRIm4Vt.js → p-CFL-ALsL.js} +1 -1
- package/dist/components/{p-ByMjaTnP.js → p-CNJG60uZ.js} +1 -1
- package/dist/components/{p-C7Rh2NRS.js → p-CNY9L4u1.js} +1 -1
- package/dist/components/{p-CH7w_Zrp.js → p-CP4anCBG.js} +1 -1
- package/dist/components/{p-Be6GRqFL.js → p-CQa16w_c.js} +1 -1
- package/dist/components/{p-CWxtbDEh.js → p-CSW-it45.js} +1 -1
- package/dist/components/{p-B2RoJ1tz.js → p-CVy_5Tvb.js} +1 -1
- package/dist/components/{p-U9jg1DvO.js → p-CY6CL9kK.js} +1 -1
- package/dist/components/{p-g5NPAxAj.js → p-C_fSXjwp.js} +1 -1
- package/dist/components/{p-BWLmBQB7.js → p-Cb3kcQH8.js} +1 -1
- package/dist/components/{p-oXCkwBKR.js → p-CjID2TEf.js} +1 -1
- package/dist/components/{p-BQMMBSP2.js → p-CjNPU4tr.js} +1 -1
- package/dist/components/{p-Ic4M6IZs.js → p-CoiejzBd.js} +1 -1
- package/dist/components/p-CpLLOHOq.js +1 -0
- package/dist/components/p-CsFRsJd2.js +1 -0
- package/dist/components/{p-BX3gY1PP.js → p-CsTjOsQ7.js} +1 -1
- package/dist/components/{p-BWqnoSw2.js → p-CsY7NAuq.js} +1 -1
- package/dist/components/{p-BC__OeWi.js → p-CshWFMrN.js} +1 -1
- package/dist/components/{p-vADJB1c2.js → p-D1dX_iSl.js} +1 -1
- package/dist/components/{p-B3ATJ-iD.js → p-D1ihibWt.js} +1 -1
- package/dist/components/{p-DNy6quyg.js → p-D3S9CkeA.js} +1 -1
- package/dist/components/{p-B2EHfWpD.js → p-D5NZi5H5.js} +1 -1
- package/dist/components/{p-Btj1QSzG.js → p-D6u-SXpn.js} +1 -1
- package/dist/components/p-D8OMvJbR.js +1 -0
- package/dist/components/p-DIblgdpF.js +1 -0
- package/dist/components/{p-BjZJaxt1.js → p-DLWL-o6Z.js} +1 -1
- package/dist/components/{p-BjG7yuwj.js → p-DRa-BDek.js} +1 -1
- package/dist/components/{p-DUIWB0ra.js → p-DW2Js6u1.js} +1 -1
- package/dist/components/p-DWYKl0rg.js +1 -0
- package/dist/components/{p-B6IcTqkN.js → p-DWgMo0uM.js} +1 -1
- package/dist/components/{p-msSLVaDl.js → p-D_HYgg0D.js} +1 -1
- package/dist/components/{p-D34dZlkT.js → p-D_Zth43B.js} +1 -1
- package/dist/components/{p-Bp8UGnBB.js → p-DcGAhFPL.js} +1 -1
- package/dist/components/{p-C07P-YzZ.js → p-DiO4NkoA.js} +1 -1
- package/dist/components/{p-CtPr1nvA.js → p-DtCdkVUQ.js} +1 -1
- package/dist/components/{p-ifBo9NHb.js → p-DuB7bImP.js} +1 -1
- package/dist/components/{p-Bjx68Nkv.js → p-DuheZw1w.js} +1 -1
- package/dist/components/{p-BBRpBb3D.js → p-DwHaSUu3.js} +1 -1
- package/dist/components/{p-CjOKLEdP.js → p-DxynE7R4.js} +1 -1
- package/dist/components/p-Dy7c6clK.js +1 -0
- package/dist/components/{p-CxPXk2ws.js → p-FI--hA8I.js} +1 -1
- package/dist/components/{p-IilUR0Z4.js → p-K3aT9e86.js} +1 -1
- package/dist/components/{p-B0Fo3cKf.js → p-LlsVAS7r.js} +1 -1
- package/dist/components/{p-CXDRC8Nb.js → p-R3NB2Rxd.js} +1 -1
- package/dist/components/{p-Dp2LhUKa.js → p-SJeISbFm.js} +1 -1
- package/dist/components/{p-DPENu38v.js → p-aAhxhPu6.js} +1 -1
- package/dist/components/{p-B_Wn0VnS.js → p-l4woSzxj.js} +1 -1
- package/dist/components/{p-DW9czTAD.js → p-ralyxXdZ.js} +1 -1
- package/dist/components/{p-BGaDuggr.js → p-sG2nShz-.js} +1 -1
- package/dist/components/{p-DAq4FN_d.js → p-w2nCsug-.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-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-virtualized-participant-list.js +1 -1
- package/dist/components/rtk-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +3711 -742
- package/dist/docs/docs-vscode.json +5 -1
- package/dist/esm/{TextMessage-BZiVGmY1.js → TextMessage-yvgmoyno.js} +1 -1
- package/dist/esm/{chat-lvouWi7J.js → chat-C76CTGaE.js} +1 -1
- package/dist/esm/{config-B2jDqnc2.js → config-DP9lPGyT.js} +4 -10
- package/dist/esm/{debounce-aR8pwob-.js → debounce-wUcmtMrZ.js} +1 -1
- package/dist/esm/{index-CgECHQfr.js → index-BqWqJ0QM.js} +1 -1
- package/dist/esm/index.js +19 -11
- package/dist/esm/loader.js +1054 -579
- package/dist/esm/{ui-kit-metadata-DBkOnyOI.js → merge-CyAJSnqi.js} +2 -287
- 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 +2 -2
- package/dist/esm/rtk-audio-visualizer_3.entry.js +2 -3
- package/dist/esm/rtk-avatar_26.entry.js +10 -9
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
- package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
- package/dist/esm/rtk-debugger.entry.js +2 -2
- package/dist/esm/rtk-dialog-manager.entry.js +2 -2
- 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 +6 -6
- 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 +2 -2
- 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 +3 -3
- package/dist/esm/rtk-mic-toggle.entry.js +2 -3
- 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 +8 -6
- package/dist/esm/rtk-notifications.entry.js +194 -204
- 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 +5 -5
- package/dist/esm/rtk-participants-audio.entry.js +2 -3
- 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 +347 -34
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +3 -3
- 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 +2 -2
- 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 +3 -3
- package/dist/esm/rtk-switch.entry.js +3 -3
- package/dist/esm/rtk-transcript.entry.js +3 -3
- package/dist/esm/rtk-transcripts.entry.js +2 -2
- package/dist/esm/rtk-ui-provider.entry.js +3 -2
- package/dist/esm/rtk-waiting-screen.entry.js +3 -3
- package/dist/esm/ui-kit-metadata-BLyVHBPm.js +286 -0
- package/dist/esm/{ui-store-25wIB_YH.js → ui-store-BDu-JN-c.js} +221 -9
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-3ab9b329.entry.js → p-00d76359.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2999cb8d.entry.js → p-09c97ce7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c7f7f0ee.entry.js → p-1649cd9b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-aa1bcc8d.entry.js → p-1cb35848.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2f380c20.entry.js → p-20ca622e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a5afae52.entry.js → p-212b81f9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-216d317b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-e54dbacd.entry.js → p-21d6fbde.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6a985345.entry.js → p-2630a30f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7878ab30.entry.js → p-2666b720.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1eac1ada.entry.js → p-29ca5030.entry.js} +1 -1
- package/dist/realtimekit-ui/p-2ac37cd3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-69e11a90.entry.js → p-2b4a9798.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-69445dc5.entry.js → p-2cc93fdf.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c35040dc.entry.js → p-2cffd80b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6bca148a.entry.js → p-2e00a64f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-22cd2a40.entry.js → p-2f225d81.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-94a286d0.entry.js → p-31cff3b4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-da857425.entry.js → p-339d78e0.entry.js} +1 -1
- package/dist/realtimekit-ui/p-39f4dfc2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d91222ea.entry.js → p-3df86b16.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7711649a.entry.js → p-40b5a3f6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5ea44aa5.entry.js → p-40d669f7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-465e03e3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-a478656f.entry.js → p-468bbf25.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-467cb881.entry.js → p-46f5bd65.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cdf80add.entry.js → p-4a2791af.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a732dd55.entry.js → p-4d1c520d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fbde8aee.entry.js → p-4f4f74de.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6568c9be.entry.js → p-50964a67.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-60e672f3.entry.js → p-590d9a6f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-73f2a2db.entry.js → p-59e85491.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cf9e2497.entry.js → p-5a316687.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8dc6db09.entry.js → p-5ad79e40.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a6b6f977.entry.js → p-65d4e49f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-69ee90c7.entry.js → p-66c16b99.entry.js} +1 -1
- package/dist/realtimekit-ui/p-679cff34.entry.js +1 -0
- package/dist/realtimekit-ui/p-68355fad.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f202a199.entry.js → p-6c6da19f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a1febe2c.entry.js → p-6db3f0b3.entry.js} +1 -1
- package/dist/realtimekit-ui/p-705c69ef.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b29b686b.entry.js → p-71bd9c93.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3a0eaf1e.entry.js → p-780e1278.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-590350ae.entry.js → p-7b95fcea.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c8cad0a6.entry.js → p-7f6cd05d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-77648ee7.entry.js → p-80e72f3b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-81b64fa2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-64b7ca52.entry.js → p-866df7d3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-64f46d1e.entry.js → p-8a113cfb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-00ae47eb.entry.js → p-915dec6c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b783a853.entry.js → p-9169be62.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-60f90e32.entry.js → p-95f35e70.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-95818179.entry.js → p-983ca822.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3d95065e.entry.js → p-98e3caf7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-9f5eb163.entry.js +1 -0
- package/dist/realtimekit-ui/p-BLyVHBPm.js +1 -0
- package/dist/realtimekit-ui/p-Bzni6MqK.js +1 -0
- package/dist/realtimekit-ui/p-DEqeU73W.js +1 -0
- package/dist/realtimekit-ui/p-DYdFtxVz.js +1 -0
- package/dist/realtimekit-ui/{p-CGOvNX5H.js → p-DjuLCOXk.js} +1 -1
- package/dist/realtimekit-ui/{p-CRQsZMW5.js → p-KiBrYIp4.js} +1 -1
- package/dist/realtimekit-ui/{p-8206b22d.entry.js → p-a058849b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-54c71e62.entry.js → p-a2fd9cf2.entry.js} +1 -1
- package/dist/realtimekit-ui/p-a3177447.entry.js +1 -0
- package/dist/realtimekit-ui/{p-39a410f5.entry.js → p-a583cc88.entry.js} +1 -1
- package/dist/realtimekit-ui/p-aIVgtPUf.js +1 -0
- package/dist/realtimekit-ui/{p-cfa03301.entry.js → p-ad8e4409.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-13a913a9.entry.js → p-b16b8339.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0ce5b00f.entry.js → p-baa83772.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-70672349.entry.js → p-be12bd8a.entry.js} +1 -1
- package/dist/realtimekit-ui/p-c132536f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-7d7409e5.entry.js → p-ca45d169.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0df18cd8.entry.js → p-d1422675.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d7b10d53.entry.js → p-d33dcab8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b56fe105.entry.js → p-d6177836.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2eb73b5f.entry.js → p-dfd083c9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e0fbcd2f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-465c4010.entry.js → p-e2c07b34.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8a481d43.entry.js → p-e48f5b65.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4d59e280.entry.js → p-ea3591dd.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4b2ce9e5.entry.js → p-ea9632fb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-96b81823.entry.js → p-ebc2284a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-dcced1f6.entry.js → p-ed4e8032.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-32079fea.entry.js → p-f163f7d0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bef64365.entry.js → p-f42d1ca8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9675893b.entry.js → p-f6964364.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-21119a4d.entry.js → p-f6cc50c1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-18607b9a.entry.js → p-fb638463.entry.js} +1 -1
- package/dist/realtimekit-ui/p-fe56d5f4.entry.js +1 -0
- package/dist/realtimekit-ui/{p-df5b5a98.entry.js → p-febe71c5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-Dj-6QheV.js → p-kAmDs9rB.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-notifications/rtk-notifications.d.ts +12 -3
- package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +31 -7
- package/dist/types/components.d.ts +20 -13
- package/dist/types/lib/lang/default-language.d.ts +6 -0
- package/dist/types/lib/notification.d.ts +31 -2
- package/dist/types/types/ui-config/config.d.ts +49 -10
- package/dist/types/utils/notification.d.ts +11 -2
- package/package.json +1 -1
- package/dist/cjs/browser-qKzDfwbO.js +0 -5
- package/dist/cjs/notification-Bny5fHfy.js +0 -39
- package/dist/components/p--EktoJd3.js +0 -1
- package/dist/components/p-36vx_Mui.js +0 -1
- package/dist/components/p-B56IYWsZ.js +0 -1
- package/dist/components/p-B5Ikq3LV.js +0 -1
- package/dist/components/p-BeJhcBfy.js +0 -1
- package/dist/components/p-C8IQnQjR.js +0 -1
- package/dist/components/p-CAqYddlg.js +0 -1
- package/dist/components/p-C_e0a6jQ.js +0 -1
- package/dist/components/p-DalLUQa1.js +0 -1
- package/dist/components/p-aXMUeMjU.js +0 -1
- package/dist/esm/browser-CAqYddlg.js +0 -3
- package/dist/esm/notification-DZgheLdK.js +0 -37
- package/dist/realtimekit-ui/p-1ff01d5f.entry.js +0 -1
- package/dist/realtimekit-ui/p-20588357.entry.js +0 -1
- package/dist/realtimekit-ui/p-341159c7.entry.js +0 -1
- package/dist/realtimekit-ui/p-63413c07.entry.js +0 -1
- package/dist/realtimekit-ui/p-72b2fe54.entry.js +0 -1
- package/dist/realtimekit-ui/p-792d2533.entry.js +0 -1
- package/dist/realtimekit-ui/p-828ecefa.entry.js +0 -1
- package/dist/realtimekit-ui/p-82a226df.entry.js +0 -1
- package/dist/realtimekit-ui/p-9c53a0b7.entry.js +0 -1
- package/dist/realtimekit-ui/p-B3SWd1rN.js +0 -1
- package/dist/realtimekit-ui/p-B56IYWsZ.js +0 -1
- package/dist/realtimekit-ui/p-C8tHk7bV.js +0 -1
- package/dist/realtimekit-ui/p-CAqYddlg.js +0 -1
- package/dist/realtimekit-ui/p-DgbGa7ou.js +0 -1
- package/dist/realtimekit-ui/p-a05269d4.entry.js +0 -1
- package/dist/realtimekit-ui/p-b415ff27.entry.js +0 -1
- package/dist/realtimekit-ui/p-cc9228ee.entry.js +0 -1
- package/dist/realtimekit-ui/p-df0fe032.entry.js +0 -1
- package/dist/realtimekit-ui/p-x7gw0EVy.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,h as i,d as a,t as s}from"./p-BBHQOrFK.js";import{e as o,i as e}from"./p-
|
|
1
|
+
import{p as t,H as r,h as i,d as a,t as s}from"./p-BBHQOrFK.js";import{e as o,i as e}from"./p-BbVYO_6g.js";import{S as n}from"./p-CNJG60uZ.js";import{d as c}from"./p-t72veIFj.js";import{d as h}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as p}from"./p-DHSRRtn3.js";var g=function(t,r,i,a){var s,o=arguments.length,e=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(e=(o<3?s(e):o>3?s(r,i,e):s(r,i))||e);return o>3&&e&&Object.defineProperty(r,i,e),e};const l=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="rounded",this.iconPack=o,this.t=e(),this.page=1,this.pageCount=0,this.activeCount=0,this.activeComputedCount=0,this.showPagination=!1,this.onPageChanged=({currentPage:t,pageCount:r})=>{this.pageCount=r,this.page=t},this.toggleGridPagination=c((()=>{var t;const{self:r,participants:i}=this.meeting,{mobile:a,desktop:s}=null===(t=r.config)||void 0===t?void 0:t.maxVideoStreams,o="sm"===this.size?a:s,e=i.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus)).length;this.showPagination=!(e<o)}),50),this.onParticipantJoin=c((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onParticipantLeave=c((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onStateStatusUpdate=c((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.prevPage=()=>{if(!this.meeting)return;const{participants:t}=this.meeting;this.page>1?t.setPage(this.page-=1):"PAGINATED"===t.viewMode&&t.setViewMode("ACTIVE_GRID")},this.nextPage=()=>{if(!this.meeting)return;const{participants:t}=this.meeting;this.page>0&&this.page<this.pageCount?t.setPage(this.page+=1):t.count>0&&0===this.pageCount&&t.setViewMode("PAGINATED")}}connectedCallback(){this.meetingChanged(this.meeting),this.sizeChanged()}disconnectedCallback(){if(!this.meeting)return;const{participants:t,stage:r}=this.meeting;t.removeListener("pageChanged",this.onPageChanged),t.removeListener("viewModeChanged",this.onPageChanged),t.joined.removeListener("participantJoined",this.onParticipantJoin),t.joined.removeListener("participantLeft",this.onParticipantLeave),t.joined.removeListener("stageStatusUpdate",this.onStateStatusUpdate),r.removeListener("stageStatusUpdate",this.onStateStatusUpdate)}meetingChanged(t){if(null!=t){const{stage:r,participants:i}=t;this.page=i.currentPage,this.pageCount=i.pageCount,i.addListener("viewModeChanged",this.onPageChanged),i.addListener("pageChanged",this.onPageChanged),i.joined.addListener("participantJoined",this.onParticipantJoin),i.joined.addListener("participantLeft",this.onParticipantLeave),i.joined.addListener("stageStatusUpdate",this.onStateStatusUpdate),r.addListener("stageStatusUpdate",this.onStateStatusUpdate),this.activeCount=this.meeting.participants.joined.size,this.activeComputedCount=this.meeting.participants.joined.size,this.toggleGridPagination()}}sizeChanged(){this.toggleGridPagination()}render(){if(!this.meeting)return null;const{meta:t}=this.meeting;return"AUDIO_ROOM"!==(null==t?void 0:t.viewType)&&this.showPagination?i(a,null,i("rtk-button",{class:"prev",variant:"secondary",kind:"icon",disabled:0===this.pageCount,onClick:this.prevPage,"aria-label":this.t("page.prev")},i("rtk-icon",{icon:this.iconPack.chevron_left})),"grid"!==this.variant&&i("div",{class:"center"},i("span",{class:"page"},0===this.pageCount?i("rtk-tooltip",{label:this.t("layout.auto")},i("rtk-button",{kind:"icon",class:"auto"},i("rtk-icon",{icon:this.iconPack.wand}))):this.page),0!==this.pageCount&&[i("span",{class:"slash"},"/"),i("span",{class:"pages"},this.pageCount)]),"grid"===this.variant&&this.pageCount>0&&i("div",{class:"dots"},[...Array(this.pageCount)].map(((t,r)=>i("div",{key:"dot-"+r,class:{dot:!0,active:r+1===this.page}})))),i("rtk-button",{class:"next",variant:"secondary",kind:"icon",disabled:0!==this.page&&this.page===this.pageCount,onClick:this.nextPage,"aria-label":this.t("page.next")},i("rtk-icon",{icon:this.iconPack.chevron_right,tabIndex:-1,"aria-hidden":!0}))):i(a,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}],size:[{sizeChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;font-size:16px}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}:host([size='sm']) .center{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px)}:host([size='sm']) rtk-button{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) rtk-button rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}rtk-button{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.center{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.center .page{color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.center .slash{margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-0\\.5, 2px)}.center .pages{align-self:flex-end;font-size:12px}:host([variant='rounded']){overflow:hidden;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button{border-radius:9999px;border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='rounded']) rtk-button:not([disabled]):hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button:not([disabled]):focus{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='grid']) rtk-button{position:absolute;top:50%;height:var(--rtk-space-20, 80px);width:var(--rtk-space-20, 80px);opacity:0.2;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='grid']) rtk-button:hover{opacity:1}:host([variant='grid']) rtk-button{transform:translateY(-50%)}:host([variant='grid']) rtk-button.prev{left:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) rtk-button.next{right:var(--rtk-space-0, 0px);border-top-left-radius:9999px;border-bottom-left-radius:9999px}:host([variant='grid']) rtk-button.auto{left:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) .dots{position:absolute;left:50%;bottom:var(--rtk-space-3, 12px);display:flex;align-items:center;transform:translateX(-50%)}:host([variant='grid']) .dots .dot{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-2, 8px);width:var(--rtk-space-2, 8px);cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([variant='grid']) .dots .dot:last-child{margin-right:var(--rtk-space-0, 0px)}:host([variant='grid']) .dots .dot.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host([variant='grid'][size='sm']) rtk-button{height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);opacity:0.1}"}},[1,"rtk-grid-pagination",{meeting:[16],states:[16],size:[513],variant:[513],iconPack:[16],t:[16],page:[32],pageCount:[32],activeCount:[32],activeComputedCount:[32],showPagination:[32]},void 0,{meeting:[{meetingChanged:0}],size:[{sizeChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-grid-pagination","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-grid-pagination":customElements.get(s(t))||customElements.define(s(t),l);break;case"rtk-button":customElements.get(s(t))||h();break;case"rtk-icon":customElements.get(s(t))||d();break;case"rtk-tooltip":customElements.get(s(t))||p()}}))}g([n()],l.prototype,"meeting",void 0),g([n()],l.prototype,"states",void 0),g([n()],l.prototype,"iconPack",void 0),g([n()],l.prototype,"t",void 0),u();const b=l,k=u;export{b as RtkGridPagination,k as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as s,h as e,d as r,t as a}from"./p-BBHQOrFK.js";import{c as n,e as o,i as h}from"./p-aXMUeMjU.js";import{d as p}from"./p-t72veIFj.js";import{R as c}from"./p-CBJjerDR.js";import{a as d}from"./p-C0vp-Q7v.js";import{S as l}from"./p-ByMjaTnP.js";import{d as g}from"./p-CmmyVCoN.js";import{d as m}from"./p-D6vw6bT2.js";import{d as v}from"./p-BC__OeWi.js";import{d as u}from"./p-DAq4FN_d.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as k}from"./p-CjOKLEdP.js";import{d as x}from"./p-D9cHynev.js";import{d as b}from"./p-Bc2jtNZw.js";import{d as S}from"./p-uxGiMP6W.js";var y=function(t,i,s,e){var r,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(i,s,n):r(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const C=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=n(),this.iconPack=o,this.t=h(),this.gridSize=g,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{this.meeting&&this.updateActiveParticipants()},this.refreshParticipants=p((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=d(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(!t)return;this.refreshParticipants.cancel(),this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:r}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==r||r.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.refreshParticipants),e.active.removeListener("participantJoined",this.refreshParticipants),e.active.removeListener("participantsUpdate",this.refreshParticipants),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,r,a;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:n,plugins:o,stage:h}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...n.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...n.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=n.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==o?void 0:o.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||"ALLOWED"===p.canProduceAudio||"ALLOWED"===p.canProduceVideo||"ALLOWED"===p.canProduceScreenshare,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==h||h.addListener("stageStatusUpdate",this.stageStatusListener),null==o||o.all.addListener("stateUpdate",this.onPluginStateUpdate),n.addListener("viewModeChanged",this.onViewModeChanged),n.active.addListener("participantLeft",this.refreshParticipants),null===(r=null==n?void 0:n.joined)||void 0===r||r.on("stageStatusUpdate",this.peerStageStatusListener),n.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),n.active.addListener("participantJoined",this.refreshParticipants),n.active.addListener("participantsUpdate",this.refreshParticipants),n.pinned.addListener("participantJoined",this.onParticipantPinned),n.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(a=t.stage)||void 0===a?void 0:a.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!this.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),this.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!this.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),this.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!this.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),this.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),...!["ACTIVE_GRID","MANUAL"].includes(s.viewMode)||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){var t,i,s,a;const n={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};if(this.invalidRoomStates.includes(this.roomState))return e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),e("h3",null,this.t("disconnected")),e("p",null,this.t("disconnected.description"))));if("disconnected"===this.roomState){const n=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.mediaState;if("connected"!==(null===(s=null==n?void 0:n.send)||void 0===s?void 0:s.state)||"connected"!==(null===(a=null==n?void 0:n.recv)||void 0===a?void 0:a.state))return e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),e("h3",null,this.t("offline")),e("p",null,this.t("offline.description"))))}return"failed"===this.roomState?e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),e("h3",null,this.t("failed")),e("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?e(r,null,e("rtk-livestream-player",{meeting:this.meeting,size:this.size}),e("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),e("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?e(r,null,e("div",{class:"webinar-stage"},e("div",{class:"center"},this.canCurrentPeerHost&&e("div",{class:"ctr",part:"container"},e("p",{class:"message",part:"message"},this.t("stage.empty_host")),e("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&e("div",{class:"ctr",part:"container"},e("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):e(r,null,e(c,{element:"rtk-grid",defaults:n,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),e("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),e("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t}))}static get watchers(){return{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}"}},[1,"rtk-grid",{layout:[513],aspectRatio:[513,"aspect-ratio"],meeting:[16],gap:[514],size:[513],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16],overrides:[8],participants:[32],pinnedParticipants:[32],screenShareParticipants:[32],plugins:[32],emptyStage:[32],showLiveStreamPlayer:[32],canCurrentPeerHost:[32],pipSupported:[32],pipEnabled:[32],hidden:[32],roomState:[32]},void 0,{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}]);function j(){"undefined"!=typeof customElements&&["rtk-grid","rtk-button","rtk-controlbar-button","rtk-fullscreen-toggle","rtk-icon","rtk-livestream-indicator","rtk-livestream-player","rtk-spinner","rtk-viewer-count"].forEach((t=>{switch(t){case"rtk-grid":customElements.get(a(t))||customElements.define(a(t),C);break;case"rtk-button":customElements.get(a(t))||m();break;case"rtk-controlbar-button":customElements.get(a(t))||v();break;case"rtk-fullscreen-toggle":customElements.get(a(t))||u();break;case"rtk-icon":customElements.get(a(t))||f();break;case"rtk-livestream-indicator":customElements.get(a(t))||k();break;case"rtk-livestream-player":customElements.get(a(t))||x();break;case"rtk-spinner":customElements.get(a(t))||b();break;case"rtk-viewer-count":customElements.get(a(t))||S()}}))}y([l()],C.prototype,"meeting",void 0),y([l()],C.prototype,"states",void 0),y([l()],C.prototype,"config",void 0),y([l()],C.prototype,"iconPack",void 0),y([l()],C.prototype,"t",void 0),j();const w=C,P=j;export{w as RtkGrid,P as defineCustomElement}
|
|
1
|
+
import{p as t,H as i,c as s,h as e,d as r,t as a}from"./p-BBHQOrFK.js";import{c as n,e as o,i as h}from"./p-BbVYO_6g.js";import{d as p}from"./p-t72veIFj.js";import{R as c}from"./p-CBJjerDR.js";import{a as l}from"./p-C0vp-Q7v.js";import{S as d}from"./p-CNJG60uZ.js";import{d as g}from"./p-CmmyVCoN.js";import{d as m}from"./p-D6vw6bT2.js";import{d as v}from"./p-CshWFMrN.js";import{d as u}from"./p-w2nCsug-.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as k}from"./p-DxynE7R4.js";import{d as x}from"./p-BQ-x6_xE.js";import{d as b}from"./p-BJ7Hcvk1.js";import{d as S}from"./p-BowkkEiR.js";var y=function(t,i,s,e){var r,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(i,s,n):r(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const C=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=n(),this.iconPack=o,this.t=h(),this.gridSize=g,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{this.meeting&&this.updateActiveParticipants()},this.refreshParticipants=p((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=l(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(!t)return;this.refreshParticipants.cancel(),this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:r}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==r||r.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.refreshParticipants),e.active.removeListener("participantJoined",this.refreshParticipants),e.active.removeListener("participantsUpdate",this.refreshParticipants),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,r,a;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:n,plugins:o,stage:h}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...n.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...n.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=n.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==o?void 0:o.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||"ALLOWED"===p.canProduceAudio||"ALLOWED"===p.canProduceVideo||"ALLOWED"===p.canProduceScreenshare,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==h||h.addListener("stageStatusUpdate",this.stageStatusListener),null==o||o.all.addListener("stateUpdate",this.onPluginStateUpdate),n.addListener("viewModeChanged",this.onViewModeChanged),n.active.addListener("participantLeft",this.refreshParticipants),null===(r=null==n?void 0:n.joined)||void 0===r||r.on("stageStatusUpdate",this.peerStageStatusListener),n.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),n.active.addListener("participantJoined",this.refreshParticipants),n.active.addListener("participantsUpdate",this.refreshParticipants),n.pinned.addListener("participantJoined",this.onParticipantPinned),n.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(a=t.stage)||void 0===a?void 0:a.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!this.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),this.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!this.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),this.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!this.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),this.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),...!["ACTIVE_GRID","MANUAL"].includes(s.viewMode)||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){var t,i,s,a;const n={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};if(this.invalidRoomStates.includes(this.roomState))return e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),e("h3",null,this.t("disconnected")),e("p",null,this.t("disconnected.description"))));if("disconnected"===this.roomState){const n=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.mediaState;if("connected"!==(null===(s=null==n?void 0:n.send)||void 0===s?void 0:s.state)||"connected"!==(null===(a=null==n?void 0:n.recv)||void 0===a?void 0:a.state))return e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),e("h3",null,this.t("offline")),e("p",null,this.t("offline.description"))))}return"failed"===this.roomState?e(r,null,e("div",{class:"offline-grid"},e("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),e("h3",null,this.t("failed")),e("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?e(r,null,e("rtk-livestream-player",{meeting:this.meeting,size:this.size}),e("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),e("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?e(r,null,e("div",{class:"webinar-stage"},e("div",{class:"center"},this.canCurrentPeerHost&&e("div",{class:"ctr",part:"container"},e("p",{class:"message",part:"message"},this.t("stage.empty_host")),e("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&e("div",{class:"ctr",part:"container"},e("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):e(r,null,e(c,{element:"rtk-grid",defaults:n,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),e("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),e("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t}))}static get watchers(){return{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}"}},[1,"rtk-grid",{layout:[513],aspectRatio:[513,"aspect-ratio"],meeting:[16],gap:[514],size:[513],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16],overrides:[8],participants:[32],pinnedParticipants:[32],screenShareParticipants:[32],plugins:[32],emptyStage:[32],showLiveStreamPlayer:[32],canCurrentPeerHost:[32],pipSupported:[32],pipEnabled:[32],hidden:[32],roomState:[32]},void 0,{meeting:[{meetingChanged:0}],overrides:[{overridesChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}],pinnedParticipants:[{pinnedParticipantsChanged:0}]}]);function w(){"undefined"!=typeof customElements&&["rtk-grid","rtk-button","rtk-controlbar-button","rtk-fullscreen-toggle","rtk-icon","rtk-livestream-indicator","rtk-livestream-player","rtk-spinner","rtk-viewer-count"].forEach((t=>{switch(t){case"rtk-grid":customElements.get(a(t))||customElements.define(a(t),C);break;case"rtk-button":customElements.get(a(t))||m();break;case"rtk-controlbar-button":customElements.get(a(t))||v();break;case"rtk-fullscreen-toggle":customElements.get(a(t))||u();break;case"rtk-icon":customElements.get(a(t))||f();break;case"rtk-livestream-indicator":customElements.get(a(t))||k();break;case"rtk-livestream-player":customElements.get(a(t))||x();break;case"rtk-spinner":customElements.get(a(t))||b();break;case"rtk-viewer-count":customElements.get(a(t))||S()}}))}y([d()],C.prototype,"meeting",void 0),y([d()],C.prototype,"states",void 0),y([d()],C.prototype,"config",void 0),y([d()],C.prototype,"iconPack",void 0),y([d()],C.prototype,"t",void 0),w();const E=C,j=w;export{E as RtkGrid,j as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as a,d as i,t as s}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as
|
|
1
|
+
import{p as t,H as e,h as a,d as i,t as s}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as r,e as n,i as o}from"./p-BbVYO_6g.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{R as c}from"./p-CBJjerDR.js";import{S as d}from"./p-CNJG60uZ.js";var p=function(t,e,a,i){var s,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,a,i);else for(var o=t.length-1;o>=0;o--)(s=t[o])&&(n=(r<3?s(n):r>3?s(e,a,n):s(e,a))||n);return r>3&&n&&Object.defineProperty(e,a,n),n};const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="solid",this.disableRender=!1,this.config=r(),this.iconPack=n,this.t=o()}render(){return a(i,{key:"a323f95dac8cde8fdb77b1ecb0950402b7d418bb"},!this.disableRender&&a(c,{key:"a7beb145a76f2f879af3f54c9ec08317865b17d2",element:"rtk-header",defaults:{meeting:this.meeting,config:this.config,states:this.states,t:this.t,iconPack:this.iconPack,size:this.size},onlyChildren:!0}),a("slot",{key:"5bee25d9949611736d9c772e438314655ab8ae58"}))}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-12, 48px);align-items:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host{display:none !important}}@media only screen and (max-height: 480px) and (orientation: landscape){:host{display:none !important}}"}},[257,"rtk-header",{variant:[513],disableRender:[4,"disable-render"],meeting:[16],config:[16],states:[16],iconPack:[16],t:[16],size:[513]}]);function f(){"undefined"!=typeof customElements&&["rtk-header"].forEach((t=>{"rtk-header"===t&&(customElements.get(s(t))||customElements.define(s(t),l))}))}p([d()],l.prototype,"meeting",void 0),p([d()],l.prototype,"config",void 0),p([d()],l.prototype,"states",void 0),p([d()],l.prototype,"iconPack",void 0),p([d()],l.prototype,"t",void 0),f();const m=l,h=f;export{m as RtkHeader,h as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as r,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as i,e as n,i as s}from"./p-
|
|
1
|
+
import{p as t,H as e,h as r,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as i,e as n,i as s}from"./p-BbVYO_6g.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as c}from"./p-CNJG60uZ.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-1J7p9yTO.js";import{d as p}from"./p-BJ7Hcvk1.js";var g=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};const k=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=i(),this.iconPack=n,this.t=s(),this.socketStateUpdate=({state:t})=>{var e;this.connectionState=t,"connected"===t&&((null===(e=this.states)||void 0===e?void 0:e.preJoinError)||(this.preJoinError=void 0))}}connectedCallback(){this.meetingChanged(this.meeting,void 0),this.statesChanged(this.states)}disconnectedCallback(){var t,e;null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e||e.removeListener("socketConnectionUpdate",this.socketStateUpdate)}meetingChanged(t,e){var r,o,a,i;null===(r=null==e?void 0:e.meta)||void 0===r||r.removeListener("socketConnectionUpdate",this.socketStateUpdate),t&&(this.connectionState=null===(a=null===(o=t.meta)||void 0===o?void 0:o.socketState)||void 0===a?void 0:a.state,null===(i=t.meta)||void 0===i||i.addListener("socketConnectionUpdate",this.socketStateUpdate))}statesChanged(t){this.preJoinError=null==t?void 0:t.preJoinError}render(){var t,e;const a=null===(t=this.preJoinError)||void 0===t?void 0:t.message,i=null===(e=this.preJoinError)||void 0===e?void 0:e.code,n=!!this.connectionState&&"connected"!==this.connectionState&&!a,s=a||this.t("failed"===this.connectionState?"network.lost_extended":"network.lost");return r(o,{key:"5fbe382c783b15c48e8eeed8bed062e6a80bffca"},r("slot",{key:"45e242986aad838894c2f27292f163d62367398c"},r("div",{key:"7d67aec81786055ece1ab723628a8d574497a89a",class:"ctr",part:"container"},r("rtk-logo",{key:"4619a800a8a28678d7872a0c246a92d1a08ec359",meeting:this.meeting,config:this.config,t:this.t,part:"logo"}),a||n?r("div",{class:"error-state"},r("div",{class:"no-network-badge",part:"network-badge",role:"alert"},r("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected,part:"network-badge-icon"}),s),this.meeting&&a&&r("a",{class:"troubleshoot-link",href:"https://test.realtime.cloudflare.com?authToken="+this.meeting.__internals__.authToken,target:"_blank",rel:"noopener noreferrer"},this.t("network.troubleshoot")),i&&r("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",i)):r("rtk-spinner",{"aria-label":"Idle, waiting for meeting data",part:"spinner",iconPack:this.iconPack}))))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged: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{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}.error-state{display:flex;width:100%;flex-direction:column;align-items:center}.troubleshoot-link{margin-top:var(--rtk-space-1, 4px);font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:2px}.troubleshoot-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.error-code{margin-top:var(--rtk-space-1, 4px);font-size:10px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}rtk-spinner{height:var(--rtk-space-12, 48px);width:var(--rtk-space-12, 48px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}"}},[257,"rtk-idle-screen",{meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],preJoinError:[32],connectionState:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-idle-screen","rtk-icon","rtk-logo","rtk-spinner"].forEach((t=>{switch(t){case"rtk-idle-screen":customElements.get(a(t))||customElements.define(a(t),k);break;case"rtk-icon":customElements.get(a(t))||l();break;case"rtk-logo":customElements.get(a(t))||d();break;case"rtk-spinner":customElements.get(a(t))||p()}}))}g([c()],k.prototype,"meeting",void 0),g([c()],k.prototype,"states",void 0),g([c()],k.prototype,"config",void 0),g([c()],k.prototype,"iconPack",void 0),g([c()],k.prototype,"t",void 0),v();const h=k,m=v;export{h as RtkIdleScreen,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-CQa16w_c.js";const a=o,p=s;export{a as RtkImageMessageView,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-BkWaCvJV.js";const a=o,p=s;export{a as RtkImageMessage,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as e,H as t,c as r,h as a,d as o,t as c}from"./p-BBHQOrFK.js";import{i as s,e as i}from"./p-
|
|
1
|
+
import{p as e,H as t,c as r,h as a,d as o,t as c}from"./p-BBHQOrFK.js";import{i as s,e as i}from"./p-BbVYO_6g.js";import{d as n}from"./p-DDaHXyCC.js";import{S as d}from"./p-CNJG60uZ.js";import{f as l,s as b}from"./p-CJsXePY3.js";import{d as f}from"./p-D6vw6bT2.js";import{d as k}from"./p-BYIBbfJ8.js";var p=function(e,t,r,a){var o,c=arguments.length,s=c<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,r,a);else for(var i=e.length-1;i>=0;i--)(o=e[i])&&(s=(c<3?o(s):c>3?o(t,r,s):o(t,r))||s);return c>3&&s&&Object.defineProperty(t,r,s),s};const m=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.close=r(this,"close",7),this.t=s(),this.iconPack=i,this.keypressListener=e=>{"Escape"===e.key&&this.close.emit()},this.handleOutsideClick=()=>this.close.emit()}connectedCallback(){document.addEventListener("keydown",this.keypressListener),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("keydown",this.keypressListener),document.removeEventListener("click",this.handleOutsideClick)}render(){return a(o,{key:"09122e4d61355092a9c82bc337ea002a6c2acd58",class:"scrollbar",onClick:e=>e.stopPropagation()},a("div",{key:"2c6c3f705abf067d866e02b81c4b3d610f09fede",class:"header"},a("div",{key:"66cd4c200a2e8704acdf75d8830c94ac2abdc6be",class:"shared-by-user"},this.t("chat.img.shared_by")," ",a("span",{key:"3b4a866b673f35a454e7115fdc5c915d68966b1d",class:"displayName"},l(b(this.image.displayName)))),a("div",{key:"29e0e95e3e3d3b36917745a8f0a47beb9b5e3f02",class:"actions"},a("rtk-button",{key:"5cd7383e265a02c8b57a0f712e9e445495498c32",onClick:()=>n(this.image.link,{fallbackName:"image"})},a("rtk-icon",{key:"b098e89f707cc4cf413a620319e0eb2fd10b729a",icon:this.iconPack.download,slot:"start"}),"Download"),a("rtk-button",{key:"2cd6b7c21f0357d3104618d96d853d8bd8fcc542",kind:"icon",variant:"secondary",onClick:()=>this.close.emit()},a("rtk-icon",{key:"891428595d7a61c5400dc884bf8e1a501009eed5",icon:this.iconPack.dismiss})))),a("div",{key:"6194a26ac1357b93776b1c77ff72d1502151d619",class:"image-ctr"},a("img",{key:"24f21e7fff100bea8e79d261f180a57dc14fa5f4",src:this.image.link})))}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{width:1140px;max-width:100%;box-sizing:border-box;display:flex;flex-direction:column;padding:var(--rtk-space-6, 24px);padding-top:var(--rtk-space-5, 20px);overflow-y:auto;color:rgb(var(--rtk-colors-text-1000, 255 255 255));z-index:40;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.displayName{font-weight:700}.image-ctr{margin-top:var(--rtk-space-2, 8px);box-sizing:border-box;display:flex;justify-content:center;overflow:hidden}.actions{display:flex;align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}img{box-sizing:border-box;display:block;max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}.header{display:flex;align-items:center;justify-content:space-between;padding-bottom:var(--rtk-space-4, 16px)}.shared-by-user{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}:host([size='sm']) .header{flex-direction:column}:host([size='sm']) .header .actions{margin-top:var(--rtk-space-4, 16px)}"}},[1,"rtk-image-viewer",{image:[16],size:[513],t:[16],iconPack:[16]}]);function h(){"undefined"!=typeof customElements&&["rtk-image-viewer","rtk-button","rtk-icon"].forEach((e=>{switch(e){case"rtk-image-viewer":customElements.get(c(e))||customElements.define(c(e),m);break;case"rtk-button":customElements.get(c(e))||f();break;case"rtk-icon":customElements.get(c(e))||k()}}))}p([d()],m.prototype,"t",void 0),p([d()],m.prototype,"iconPack",void 0),h();const u=m,g=h;export{u as RtkImageViewer,g as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as o,h as r,d as e,t as a}from"./p-BBHQOrFK.js";import{S as i}from"./p-
|
|
1
|
+
import{p as t,H as o,h as r,d as e,t as a}from"./p-BBHQOrFK.js";import{S as i}from"./p-CNJG60uZ.js";import"./p-Rq_6y0HI.js";import{e as s}from"./p-BbVYO_6g.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{d as c}from"./p-BYIBbfJ8.js";const p=t(class extends o{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=s}render(){return r(e,{key:"ff8e44d0644f3a81e71ec3595f109c396effd80e"},r("div",{key:"9b07fcd50ec2050f65008ad447b42fe0a2431fba",class:"tooltip-container"},r("rtk-icon",{key:"09393761a1ee443f54d08034c451397adf05c0a2",icon:this.iconPack.info,size:"sm"}),r("div",{key:"edcc65636e3888864a4f619b34929a494a748b43",class:"tooltip"},r("slot",{key:"298db1c52802862d8d1da4a3b9cfc33e3695163d",name:"tootlip-text"}))))}static get style(){return":host{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer}.tooltip-container{position:relative;display:flex;flex-direction:row;align-items:center}.tooltip-container rtk-icon{cursor:pointer;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.tooltip-container rtk-icon:hover+.tooltip{display:flex !important}.tooltip{position:absolute;margin-left:var(--rtk-space-2, 8px);display:none !important;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));z-index:50;display:flex;min-width:var(--rtk-space-60, 240px);flex-direction:column;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);left:14px}"}},[257,"rtk-information-tooltip",{iconPack:[16]}]);function n(){"undefined"!=typeof customElements&&["rtk-information-tooltip","rtk-icon"].forEach((t=>{switch(t){case"rtk-information-tooltip":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-icon":customElements.get(a(t))||c()}}))}(function(t,o,r,e){var a,i=arguments.length,s=i<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,o,r,e);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(s=(i<3?a(s):i>3?a(o,r,s):a(o,r))||s);i>3&&s&&Object.defineProperty(o,r,s)})([i()],p.prototype,"iconPack",void 0),n();const l=p,d=n;export{l as RtkInformationTooltip,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as s,d as o}from"./p-CFL-ALsL.js";const p=s,r=o;export{p as RtkJoinStage,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as
|
|
1
|
+
import{p as t,H as e,c as s,h as r,d as o,t as a}from"./p-BBHQOrFK.js";import{e as n,i}from"./p-BbVYO_6g.js";import{S as c}from"./p-CNJG60uZ.js";import{d as l}from"./p-CshWFMrN.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as m}from"./p-BJ7Hcvk1.js";var b=function(t,e,s,r){var o,a=arguments.length,n=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(n=(a<3?o(n):a>3?o(e,s,n):o(e,s))||n);return a>3&&n&&Object.defineProperty(e,s,n),n};const p=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=i(),this.leave=()=>{this.stateUpdate.emit({activeLeaveConfirmation:!0})}}render(){const t=this.t("leave");return r(o,{key:"b81ffe328736f1df741c1ef1f88a128771b5366e",label:t},r("rtk-controlbar-button",{key:"0674e4975571a6cbccca1b1252c33405ab8c1cb4",size:this.size,iconPack:this.iconPack,class:"leave red-icon",onClick:this.leave,icon:this.iconPack.call_end,label:t,variant:this.variant,part:"controlbar-button"}))}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:block}"}},[1,"rtk-leave-button",{variant:[513],size:[513],iconPack:[16],t:[16]}]);function u(){"undefined"!=typeof customElements&&["rtk-leave-button","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-leave-button":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-controlbar-button":customElements.get(a(t))||l();break;case"rtk-icon":customElements.get(a(t))||f();break;case"rtk-spinner":customElements.get(a(t))||m()}}))}b([c()],p.prototype,"iconPack",void 0),b([c()],p.prototype,"t",void 0),u();const k=p,h=u;export{k as RtkLeaveButton,h as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-C_fSXjwp.js";const s=o,r=p;export{s as RtkLeaveMeeting,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-DxynE7R4.js";const p=o,r=s;export{p as RtkLivestreamIndicator,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-BQ-x6_xE.js";const p=o,r=s;export{p as RtkLivestreamPlayer,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{e as n,i as o}from"./p-
|
|
1
|
+
import{p as t,H as e,c as s,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{e as n,i as o}from"./p-BbVYO_6g.js";import{i as l}from"./p-C0vp-Q7v.js";import{S as c}from"./p-CNJG60uZ.js";import{d as h}from"./p-CshWFMrN.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as v}from"./p-BJ7Hcvk1.js";var d=function(t,e,s,i){var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(n=(a<3?r(n):a>3?r(e,s,n):r(e,s))||n);return a>3&&n&&Object.defineProperty(e,s,n),n};const u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=n,this.t=o(),this.livestreamState="IDLE",this.livestreamStateListener=t=>{this.livestreamState=t,"LIVESTREAMING"!==t&&"IDLE"!==t||this.stateUpdate.emit({activeMoreMenu:!1})},this.isLoading=()=>!this.meeting||"STARTING"===this.livestreamState||"STOPPING"===this.livestreamState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.clearListeners()}meetingChanged(t){var e,s;t&&(this.livestreamState=null===(e=this.meeting.livestream)||void 0===e?void 0:e.state,null===(s=this.meeting.livestream)||void 0===s||s.on("livestreamUpdate",this.livestreamStateListener))}async toggleLivestream(){var t,e;if("LIVESTREAMING"===this.livestreamState)try{await(null===(t=this.meeting.livestream)||void 0===t?void 0:t.stop())}catch(t){this.apiError.emit({trace:this.t("livestream.stop"),message:this.t("livestream.error.stop")})}else try{await(null===(e=this.meeting.livestream)||void 0===e?void 0:e.start())}catch(t){this.apiError.emit({trace:this.t("livestream.start"),message:this.t("livestream.error.start")})}}clearListeners(){var t;null===(t=this.meeting.livestream)||void 0===t||t.removeListener("livestreamUpdate",this.livestreamStateListener)}getLivestreamLabel(){switch(this.livestreamState){case"IDLE":return this.t("livestream.go_live");case"LIVESTREAMING":return this.t("livestream.end_live");case"WAITING_ON_MANUAL_INGESTION":return this.t("livestream.waiting_on_manual_ingestion");case"STARTING":return this.t("livestream.starting");case"STOPPING":return this.t("livestream.stopping");default:return this.t("livestream.error")}}getLivestreamIcon(){switch(this.livestreamState){case"IDLE":case"WAITING_ON_MANUAL_INGESTION":return this.iconPack.start_livestream;default:return this.iconPack.stop_livestream}}render(){return this.meeting?l(this.meeting)?i(r,null,i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,isLoading:this.isLoading(),class:{"active-livestream":"LIVESTREAMING"===this.livestreamState},onClick:()=>this.toggleLivestream(),icon:this.getLivestreamIcon(),disabled:this.isLoading(),label:this.t(this.getLivestreamLabel()),variant:this.variant})):i(r,{"data-hidden":!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{display:block}:host([data-hidden]){display:none}"}},[1,"rtk-livestream-toggle",{variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],livestreamState:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["rtk-livestream-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-livestream-toggle":customElements.get(a(t))||customElements.define(a(t),u);break;case"rtk-controlbar-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||m();break;case"rtk-spinner":customElements.get(a(t))||v()}}))}d([c()],u.prototype,"meeting",void 0),d([c()],u.prototype,"iconPack",void 0),d([c()],u.prototype,"t",void 0),p();const g=u,f=p;export{g as RtkLivestreamToggle,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-1J7p9yTO.js";const s=o,r=p;export{s as RtkLogo,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,w as e,h as s,d as n,t as o}from"./p-BBHQOrFK.js";import{e as l,i as r}from"./p-
|
|
1
|
+
import{p as t,H as i,w as e,h as s,d as n,t as o}from"./p-BBHQOrFK.js";import{e as l,i as r}from"./p-BbVYO_6g.js";import{S as a}from"./p-CNJG60uZ.js";import{d}from"./p-D6vw6bT2.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as c}from"./p-DHSRRtn3.js";var v=function(t,i,e,s){var n,o=arguments.length,l=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(l=(o<3?n(l):o>3?n(i,e,l):n(i,e))||l);return o>3&&l&&Object.defineProperty(i,e,l),l};const u=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isSaving=!1,this.iconPack=l,this.t=r(),this.canEdit=!1,this.isEditing=!1,this.titleUpdateListener=({meetingTitle:t})=>{this.meetingTitle=t},this.updateCanEdit=()=>{var t,i,e,s,n,o,l,r;const a=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions;this.canEdit=(null===(n=null===(s=null===(e=this.meeting)||void 0===e?void 0:e.connectedMeetings)||void 0===s?void 0:s.parentMeeting)||void 0===n?void 0:n.id)&&(null===(l=null===(o=this.meeting)||void 0===o?void 0:o.connectedMeetings)||void 0===l?void 0:l.isActive)?!!(null===(r=null==a?void 0:a.connectedMeetings)||void 0===r?void 0:r.canAlterConnectedMeetings):!!(null==a?void 0:a.canEditMeetingTitle),this.canEdit||(this.isEditing=!1)},this.startEditing=()=>{this.draftTitle=this.meetingTitle,this.isEditing=!0,e((()=>{var t,i;null===(t=this.inputEl)||void 0===t||t.focus(),null===(i=this.inputEl)||void 0===i||i.select()}))},this.onTitleKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),this.startEditing())},this.stopEditing=()=>{this.isEditing=!1,e((()=>{var t;return null===(t=this.titleEl)||void 0===t?void 0:t.focus()}))},this.save=async()=>{var t;if(this.isSaving)return;const i=null===(t=this.inputEl)||void 0===t?void 0:t.value.trim();if(i&&i!==this.meetingTitle){this.isSaving=!0;try{await this.meeting.meta.setMeetingTitle(i)}catch(t){this.meeting.__internals__.logger.error("rtkMeetingTitle::setMeetingTitle failed",{error:t})}finally{this.isSaving=!1}}this.stopEditing()},this.onKeyDown=t=>{"Enter"!==t.key||t.isComposing||this.save(),"Escape"===t.key&&this.stopEditing()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.removeListeners(this.meeting)}removeListeners(t){var i,e,s,n;null===(i=null==t?void 0:t.meta)||void 0===i||i.removeListener("meetingTitleUpdate",this.titleUpdateListener),null===(s=null===(e=null==t?void 0:t.self)||void 0===e?void 0:e.permissions)||void 0===s||s.removeListener("permissionsUpdate",this.updateCanEdit),null===(n=null==t?void 0:t.connectedMeetings)||void 0===n||n.removeListener("stateUpdate",this.updateCanEdit)}meetingChanged(t,i){var e,s,n,o,l;this.removeListeners(i),this.removeListeners(t),this.meetingTitle=null===(e=null==t?void 0:t.meta)||void 0===e?void 0:e.meetingTitle,this.isEditing=!1,this.updateCanEdit(),null===(s=null==t?void 0:t.meta)||void 0===s||s.addListener("meetingTitleUpdate",this.titleUpdateListener),null===(o=null===(n=null==t?void 0:t.self)||void 0===n?void 0:n.permissions)||void 0===o||o.addListener("permissionsUpdate",this.updateCanEdit),null===(l=null==t?void 0:t.connectedMeetings)||void 0===l||l.addListener("stateUpdate",this.updateCanEdit)}render(){const t=this.meetingTitle;if(null==t)return s(n,{"data-hidden":!0});if(this.isEditing)return s(n,{role:"banner","aria-label":t},s("input",{ref:t=>this.inputEl=t,value:this.draftTitle,"aria-label":this.t("meeting_title.edit"),onKeyDown:this.onKeyDown,part:"input"}),s("rtk-tooltip",{label:this.t("meeting_title.save")},s("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("meeting_title.save"),onClick:this.save},s("rtk-icon",{icon:this.iconPack.checkmark}))),s("rtk-tooltip",{label:this.t("cancel")},s("rtk-button",{kind:"icon",variant:"ghost",size:"sm","aria-label":this.t("cancel"),onClick:this.stopEditing},s("rtk-icon",{icon:this.iconPack.dismiss}))));const i=this.canEdit&&{role:"button",tabIndex:0,"aria-label":this.t("meeting_title.edit"),onClick:this.startEditing,onKeyDown:this.onTitleKeyDown};return s(n,{role:"banner","aria-label":t},s("rtk-tooltip",{label:t,part:"tooltip"},s("div",Object.assign({class:"title",part:"title",ref:t=>this.titleEl=t},i),t)))}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{-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:16px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;align-items:center;gap:var(--rtk-space-1, 4px)}input{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-1, 4px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));-webkit-user-select:text;-moz-user-select:text;user-select:text;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;font-size:inherit}:host([data-hidden]){display:none}.title{min-width:var(--rtk-space-0, 0px);text-align:center;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.title[role='button']{cursor:pointer}:host([size='sm']){font-size:12px}"}},[1,"rtk-meeting-title",{meeting:[16],iconPack:[16],t:[16],meetingTitle:[32],canEdit:[32],isEditing:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function p(){"undefined"!=typeof customElements&&["rtk-meeting-title","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-meeting-title":customElements.get(o(t))||customElements.define(o(t),u);break;case"rtk-button":customElements.get(o(t))||d();break;case"rtk-icon":customElements.get(o(t))||h();break;case"rtk-tooltip":customElements.get(o(t))||c()}}))}v([a()],u.prototype,"meeting",void 0),v([a()],u.prototype,"iconPack",void 0),v([a()],u.prototype,"t",void 0),p();const m=u,b=p;export{m as RtkMeetingTitle,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as s,c as i,h as r}from"./p-BBHQOrFK.js";import{p as o,r as a,m as n}from"./p-36vx_Mui.js";import{u as m,i as h,c,e as d,f as p,b as k}from"./p-aXMUeMjU.js";import{R as l}from"./p-CBJjerDR.js";import"./p-Rq_6y0HI.js";import{g as u}from"./p-BeJhcBfy.js";import"./p-Bs5Z4Y29.js";import{i as g}from"./p-FdeAvICb.js";import{g as f}from"./p-Cj-LCS8F.js";import{g as v}from"./p-vBfDtD_u.js";import{d as b}from"./p-DAGCKEFc.js";import{d as j}from"./p-D6vw6bT2.js";import{d as w}from"./p-Bp8UGnBB.js";import{d as E}from"./p-BQMMBSP2.js";import{d as C}from"./p-IilUR0Z4.js";import{d as S}from"./p-Bjx68Nkv.js";import{d as x}from"./p-Dp2LhUKa.js";import{d as y}from"./p-B0Fo3cKf.js";import{d as B}from"./p-CXDRC8Nb.js";import{d as R}from"./p-CtPr1nvA.js";import{d as P}from"./p-0I1N5xHK.js";import{d as U}from"./p-BNjHUNwU.js";import{d as D}from"./p-BYIBbfJ8.js";import{d as I}from"./p-Be6GRqFL.js";import{d as M}from"./p-CcGN9NRd.js";import{d as J}from"./p--EktoJd3.js";import{d as L}from"./p-BjZJaxt1.js";import{d as N}from"./p-Ic4M6IZs.js";import{d as O}from"./p-kGPSVdob.js";import{d as q}from"./p-B2RoJ1tz.js";import{d as F}from"./p-Ds5j-VXZ.js";import{d as H}from"./p-Bc2jtNZw.js";import{d as z}from"./p-C7Rh2NRS.js";import{d as G}from"./p-GtIz3u0L.js";import{d as Z}from"./p-DHSRRtn3.js";const K=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.statesUpdate=i(this,"rtkStatesUpdate",7),this.providerId="provider-"+Math.floor(100*Math.random()),this.roomJoinedListener=()=>{this.updateStates({meeting:"joined",preJoinError:null})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{!["audio","video"].includes(t)||"DENIED"!==e&&"SYSTEM_DENIED"!==e||!0===(this.peerStore||m).state.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),this.leaveRoomTimer)},this.peerStore=null,this.loadConfigFromPreset=!1,this.applyDesignSystem=!1,this.mode="fixed",this.leaveOnUnmount=!1,this.t=h(),this.config=c(),this.gridLayout="row",this.iconPack=d,this.overrides=p,this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},(this.peerStore||m).state.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}connectedCallback(){var t;"undefined"!=typeof window&&(this.initErrorListener=t=>{const e=f(this.t,t.detail);e&&this.updateStates({preJoinError:e})},window.addEventListener("ClientError",this.initErrorListener)),this.leaveRoomTimer=1e4,this.loadConfigFromPreset=!0,this.applyDesignSystem=!0,this.setupStoreRequestListener(),this.setupStateUpdateListener(),this.meetingChanged(this.meeting),this.iconPackChanged(this.iconPack),this.tChanged(this.t),this.configChanged(this.config),this.overridesChanged(this.overrides),this.resizeObserver=new g((()=>this.handleResize())),this.resizeObserver.observe(this.host),this.applyDesignSystem&&null!=(null===(t=this.config)||void 0===t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||m).state.states.activeDebugger&&o(document.documentElement,this.config.designTokens)}disconnectedCallback(){var t;this.leaveOnUnmount&&(null===(t=this.meeting)||void 0===t||t.leave()),this.resizeObserver.disconnect(),window.removeEventListener("ClientError",this.initErrorListener),this.storeRequestListener&&(this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=null),this.stateUpdateListener&&(this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=null),this.meeting&&this.clearListeners(this.meeting)}setupStoreRequestListener(){this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=t=>{if(!this.peerStore)return;const e=new CustomEvent("rtkProvideStore",{detail:{store:this.peerStore,requestId:t.detail.requestId}});document.dispatchEvent(e),t.stopPropagation()},this.host.addEventListener("rtkRequestStore",this.storeRequestListener)}setupStateUpdateListener(){this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=t=>{this.host.contains(t.target)&&this.updateStates(t.detail)},this.host.addEventListener("rtkStateUpdate",this.stateUpdateListener)}clearListeners(t){t&&(t.self.removeListener("roomLeft",this.roomLeftListener),t.self.removeListener("roomJoined",this.roomJoinedListener),t.self.removeListener("waitlisted",this.waitlistedListener),t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}meetingChanged(t,e){var s,i;if(!t)return;a(t),t?(this.peerStore=k({meeting:t,config:this.config,iconPack:this.iconPack,t:this.t,providerId:this.providerId,overrides:n(Object.assign({},p),this.overrides)}),document.dispatchEvent(new CustomEvent("rtkPeerStoreReady",{detail:{peerId:t.self.id}}))):this.peerStore=null;const r=this.peerStore||m;if(this.updateStates({viewType:t.meta.viewType,activeCaptions:e?!!r.state.states.activeCaptions:!!t.self.permissions.transcriptionEnabled}),this.loadConfigFromPreset&&null!=t.self.config){const e=t.self.config,{config:i,data:o}=u(e,t);this.config=i,null==this.showSetupScreen&&(this.showSetupScreen=o.showSetupScreen),(null===(s=r.state.states.activeBreakoutRoomsManager)||void 0===s?void 0:s.destinationMeetingId)&&(this.showSetupScreen=!1)}this.applyDesignSystem&&null!=(null===(i=this.config)||void 0===i?void 0:i.designTokens)&&"undefined"!=typeof document&&!0!==r.state.states.activeDebugger&&o(document.documentElement,this.config.designTokens),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.join().then((()=>{this.updateStates({preJoinError:null})})).catch((t=>{const{message:e,code:s}=v(this.t,t);this.updateStates({preJoinError:{message:e,code:s}})})),window.removeEventListener("ClientError",this.initErrorListener)}iconPackChanged(t){this.peerStore&&(this.peerStore.state.iconPack=t)}tChanged(t){this.peerStore&&(this.peerStore.state.t=t)}configChanged(t){this.peerStore&&(this.peerStore.state.config=t),(null==t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||m).state.states.activeDebugger&&o(document.documentElement,t.designTokens)}overridesChanged(t){this.peerStore&&(this.peerStore.state.overrides=n(Object.assign({},p),t))}handleResize(){this.size=(t=>t>=1080?"lg":t>=768?"md":"sm")(this.host.clientWidth)}updateStates(t){const e=this.peerStore||m,s=Object.assign({},e.state.states);e.state.states=n(s,t),this.statesUpdate.emit(e.state.states);const i=new CustomEvent("rtkStatesUpdate",{detail:e.state.states,bubbles:!0,composed:!0});this.host.dispatchEvent(i)}render(){const t={meeting:this.meeting,size:this.size,states:(this.peerStore||m).state.states,config:this.config||c(),iconPack:this.iconPack,t:this.t};return"CHAT"===(this.peerStore||m).state.states.viewType?r("rtk-chat",Object.assign({},t)):r(l,{element:"rtk-meeting",defaults:t,asHost:!0,elementProps:{"rtk-grid":{layout:this.gridLayout}}})}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged: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:flex;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-900, 255 255 255 / 0.88));overflow:hidden;position:fixed;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);height:100%;width:100%}:host([mode='fill']){position:relative}"}},[1,"rtk-meeting",{loadConfigFromPreset:[1028,"load-config-from-preset"],applyDesignSystem:[1028,"apply-design-system"],mode:[513],leaveOnUnmount:[4,"leave-on-unmount"],meeting:[16],showSetupScreen:[1028,"show-setup-screen"],t:[16],config:[1040],size:[1537],gridLayout:[1,"grid-layout"],iconPack:[16],overrides:[16]},void 0,{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}]);function T(){"undefined"!=typeof customElements&&["rtk-meeting","rtk-avatar","rtk-button","rtk-chat","rtk-chat-composer-view","rtk-chat-header","rtk-chat-messages-ui-paginated","rtk-chat-selector","rtk-draft-attachment-view","rtk-emoji-picker","rtk-emoji-picker-button","rtk-file-message-view","rtk-file-picker-button","rtk-icon","rtk-image-message-view","rtk-markdown-view","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-message-view","rtk-paginated-list","rtk-pinned-message-selector","rtk-spinner","rtk-text-composer-view","rtk-text-message-view","rtk-tooltip"].forEach((e=>{switch(e){case"rtk-meeting":customElements.get(t(e))||customElements.define(t(e),K);break;case"rtk-avatar":customElements.get(t(e))||b();break;case"rtk-button":customElements.get(t(e))||j();break;case"rtk-chat":customElements.get(t(e))||w();break;case"rtk-chat-composer-view":customElements.get(t(e))||E();break;case"rtk-chat-header":customElements.get(t(e))||C();break;case"rtk-chat-messages-ui-paginated":customElements.get(t(e))||S();break;case"rtk-chat-selector":customElements.get(t(e))||x();break;case"rtk-draft-attachment-view":customElements.get(t(e))||y();break;case"rtk-emoji-picker":customElements.get(t(e))||B();break;case"rtk-emoji-picker-button":customElements.get(t(e))||R();break;case"rtk-file-message-view":customElements.get(t(e))||P();break;case"rtk-file-picker-button":customElements.get(t(e))||U();break;case"rtk-icon":customElements.get(t(e))||D();break;case"rtk-image-message-view":customElements.get(t(e))||I();break;case"rtk-markdown-view":customElements.get(t(e))||M();break;case"rtk-menu":customElements.get(t(e))||J();break;case"rtk-menu-item":customElements.get(t(e))||L();break;case"rtk-menu-list":customElements.get(t(e))||N();break;case"rtk-message-view":customElements.get(t(e))||O();break;case"rtk-paginated-list":customElements.get(t(e))||q();break;case"rtk-pinned-message-selector":customElements.get(t(e))||F();break;case"rtk-spinner":customElements.get(t(e))||H();break;case"rtk-text-composer-view":customElements.get(t(e))||z();break;case"rtk-text-message-view":customElements.get(t(e))||G();break;case"rtk-tooltip":customElements.get(t(e))||Z()}}))}T();const A=K,_=T;export{A as RtkMeeting,_ as defineCustomElement}
|
|
1
|
+
import{t,p as e,H as s,c as i,h as r}from"./p-BBHQOrFK.js";import{m as o}from"./p-DWYKl0rg.js";import{u as a,i as n,c as m,e as h,f as c,b as d}from"./p-BbVYO_6g.js";import{R as p}from"./p-CBJjerDR.js";import"./p-Rq_6y0HI.js";import{p as k,r as l}from"./p-BLyVHBPm.js";import{g as u}from"./p-Dy7c6clK.js";import"./p-Bs5Z4Y29.js";import{i as g}from"./p-FdeAvICb.js";import{g as f}from"./p-Cj-LCS8F.js";import{g as v}from"./p-vBfDtD_u.js";import{d as b}from"./p-BY_hQMNu.js";import{d as j}from"./p-D6vw6bT2.js";import{d as w}from"./p-DcGAhFPL.js";import{d as E}from"./p-CjNPU4tr.js";import{d as C}from"./p-K3aT9e86.js";import{d as y}from"./p-DuheZw1w.js";import{d as S}from"./p-SJeISbFm.js";import{d as x}from"./p-LlsVAS7r.js";import{d as B}from"./p-R3NB2Rxd.js";import{d as P}from"./p-DtCdkVUQ.js";import{d as D}from"./p-6A_cBfi7.js";import{d as L}from"./p-BDmVHB8l.js";import{d as R}from"./p-BYIBbfJ8.js";import{d as U}from"./p-CQa16w_c.js";import{d as I}from"./p-CcGN9NRd.js";import{d as O}from"./p-CpLLOHOq.js";import{d as J}from"./p-DLWL-o6Z.js";import{d as H}from"./p-CoiejzBd.js";import{d as M}from"./p-1C_TdKq0.js";import{d as _}from"./p-CVy_5Tvb.js";import{d as q}from"./p-BmjopjI3.js";import{d as N}from"./p-BJ7Hcvk1.js";import{d as T}from"./p-CNY9L4u1.js";import{d as Y}from"./p-BeeuQPMZ.js";import{d as F}from"./p-DHSRRtn3.js";const V=e(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.statesUpdate=i(this,"rtkStatesUpdate",7),this.providerId="provider-"+Math.floor(100*Math.random()),this.roomJoinedListener=()=>{this.updateStates({meeting:"joined",preJoinError:null})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{!["audio","video"].includes(t)||"DENIED"!==e&&"SYSTEM_DENIED"!==e||!0===(this.peerStore||a).state.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),this.leaveRoomTimer)},this.peerStore=null,this.loadConfigFromPreset=!1,this.applyDesignSystem=!1,this.mode="fixed",this.leaveOnUnmount=!1,this.t=n(),this.config=m(),this.gridLayout="row",this.iconPack=h,this.overrides=c,this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},(this.peerStore||a).state.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}connectedCallback(){var t;"undefined"!=typeof window&&(this.initErrorListener=t=>{const e=f(this.t,t.detail);e&&this.updateStates({preJoinError:e})},window.addEventListener("ClientError",this.initErrorListener)),this.leaveRoomTimer=1e4,this.loadConfigFromPreset=!0,this.applyDesignSystem=!0,this.setupStoreRequestListener(),this.setupStateUpdateListener(),this.meetingChanged(this.meeting),this.iconPackChanged(this.iconPack),this.tChanged(this.t),this.configChanged(this.config),this.overridesChanged(this.overrides),this.resizeObserver=new g((()=>this.handleResize())),this.resizeObserver.observe(this.host),this.applyDesignSystem&&null!=(null===(t=this.config)||void 0===t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||a).state.states.activeDebugger&&k(document.documentElement,this.config.designTokens)}disconnectedCallback(){var t;this.leaveOnUnmount&&(null===(t=this.meeting)||void 0===t||t.leave()),this.resizeObserver.disconnect(),window.removeEventListener("ClientError",this.initErrorListener),this.storeRequestListener&&(this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=null),this.stateUpdateListener&&(this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=null),this.meeting&&this.clearListeners(this.meeting)}setupStoreRequestListener(){this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=t=>{if(!this.peerStore)return;const e=new CustomEvent("rtkProvideStore",{detail:{store:this.peerStore,requestId:t.detail.requestId}});document.dispatchEvent(e),t.stopPropagation()},this.host.addEventListener("rtkRequestStore",this.storeRequestListener)}setupStateUpdateListener(){this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=t=>{this.host.contains(t.target)&&this.updateStates(t.detail)},this.host.addEventListener("rtkStateUpdate",this.stateUpdateListener)}clearListeners(t){t&&(t.self.removeListener("roomLeft",this.roomLeftListener),t.self.removeListener("roomJoined",this.roomJoinedListener),t.self.removeListener("waitlisted",this.waitlistedListener),t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}meetingChanged(t,e){var s,i;if(!t)return;l(t),t?(this.peerStore=d({meeting:t,config:this.config,iconPack:this.iconPack,t:this.t,providerId:this.providerId,overrides:o(Object.assign({},c),this.overrides)}),document.dispatchEvent(new CustomEvent("rtkPeerStoreReady",{detail:{peerId:t.self.id}}))):this.peerStore=null;const r=this.peerStore||a;if(this.updateStates({viewType:t.meta.viewType,activeCaptions:e?!!r.state.states.activeCaptions:!!t.self.permissions.transcriptionEnabled}),this.loadConfigFromPreset&&null!=t.self.config){const e=t.self.config,{config:i,data:o}=u(e,t);this.config=i,null==this.showSetupScreen&&(this.showSetupScreen=o.showSetupScreen),(null===(s=r.state.states.activeBreakoutRoomsManager)||void 0===s?void 0:s.destinationMeetingId)&&(this.showSetupScreen=!1)}this.applyDesignSystem&&null!=(null===(i=this.config)||void 0===i?void 0:i.designTokens)&&"undefined"!=typeof document&&!0!==r.state.states.activeDebugger&&k(document.documentElement,this.config.designTokens),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.join().then((()=>{this.updateStates({preJoinError:null})})).catch((t=>{const{message:e,code:s}=v(this.t,t);this.updateStates({preJoinError:{message:e,code:s}})})),window.removeEventListener("ClientError",this.initErrorListener)}iconPackChanged(t){this.peerStore&&(this.peerStore.state.iconPack=t)}tChanged(t){this.peerStore&&(this.peerStore.state.t=t)}configChanged(t){this.peerStore&&(this.peerStore.state.config=t),(null==t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||a).state.states.activeDebugger&&k(document.documentElement,t.designTokens)}overridesChanged(t){this.peerStore&&(this.peerStore.state.overrides=o(Object.assign({},c),t))}handleResize(){this.size=(t=>t>=1080?"lg":t>=768?"md":"sm")(this.host.clientWidth)}updateStates(t){const e=this.peerStore||a,s=Object.assign({},e.state.states);e.state.states=o(s,t),this.statesUpdate.emit(e.state.states);const i=new CustomEvent("rtkStatesUpdate",{detail:e.state.states,bubbles:!0,composed:!0});this.host.dispatchEvent(i)}render(){const t={meeting:this.meeting,size:this.size,states:(this.peerStore||a).state.states,config:this.config||m(),iconPack:this.iconPack,t:this.t};return"CHAT"===(this.peerStore||a).state.states.viewType?r("rtk-chat",Object.assign({},t)):r(p,{element:"rtk-meeting",defaults:t,asHost:!0,elementProps:{"rtk-grid":{layout:this.gridLayout}}})}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged: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:flex;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-900, 255 255 255 / 0.88));overflow:hidden;position:fixed;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);height:100%;width:100%}:host([mode='fill']){position:relative}"}},[1,"rtk-meeting",{loadConfigFromPreset:[1028,"load-config-from-preset"],applyDesignSystem:[1028,"apply-design-system"],mode:[513],leaveOnUnmount:[4,"leave-on-unmount"],meeting:[16],showSetupScreen:[1028,"show-setup-screen"],t:[16],config:[1040],size:[1537],gridLayout:[1,"grid-layout"],iconPack:[16],overrides:[16]},void 0,{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}]);function z(){"undefined"!=typeof customElements&&["rtk-meeting","rtk-avatar","rtk-button","rtk-chat","rtk-chat-composer-view","rtk-chat-header","rtk-chat-messages-ui-paginated","rtk-chat-selector","rtk-draft-attachment-view","rtk-emoji-picker","rtk-emoji-picker-button","rtk-file-message-view","rtk-file-picker-button","rtk-icon","rtk-image-message-view","rtk-markdown-view","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-message-view","rtk-paginated-list","rtk-pinned-message-selector","rtk-spinner","rtk-text-composer-view","rtk-text-message-view","rtk-tooltip"].forEach((e=>{switch(e){case"rtk-meeting":customElements.get(t(e))||customElements.define(t(e),V);break;case"rtk-avatar":customElements.get(t(e))||b();break;case"rtk-button":customElements.get(t(e))||j();break;case"rtk-chat":customElements.get(t(e))||w();break;case"rtk-chat-composer-view":customElements.get(t(e))||E();break;case"rtk-chat-header":customElements.get(t(e))||C();break;case"rtk-chat-messages-ui-paginated":customElements.get(t(e))||y();break;case"rtk-chat-selector":customElements.get(t(e))||S();break;case"rtk-draft-attachment-view":customElements.get(t(e))||x();break;case"rtk-emoji-picker":customElements.get(t(e))||B();break;case"rtk-emoji-picker-button":customElements.get(t(e))||P();break;case"rtk-file-message-view":customElements.get(t(e))||D();break;case"rtk-file-picker-button":customElements.get(t(e))||L();break;case"rtk-icon":customElements.get(t(e))||R();break;case"rtk-image-message-view":customElements.get(t(e))||U();break;case"rtk-markdown-view":customElements.get(t(e))||I();break;case"rtk-menu":customElements.get(t(e))||O();break;case"rtk-menu-item":customElements.get(t(e))||J();break;case"rtk-menu-list":customElements.get(t(e))||H();break;case"rtk-message-view":customElements.get(t(e))||M();break;case"rtk-paginated-list":customElements.get(t(e))||_();break;case"rtk-pinned-message-selector":customElements.get(t(e))||q();break;case"rtk-spinner":customElements.get(t(e))||N();break;case"rtk-text-composer-view":customElements.get(t(e))||T();break;case"rtk-text-message-view":customElements.get(t(e))||Y();break;case"rtk-tooltip":customElements.get(t(e))||F()}}))}z();const A=V,K=z;export{A as RtkMeeting,K as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-DLWL-o6Z.js";const p=o,r=s;export{p as RtkMenuItem,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as s}from"./p-CoiejzBd.js";const p=o,r=s;export{p as RtkMenuList,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-CpLLOHOq.js";const s=o,r=p;export{s as RtkMenu,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,w as i,h as e,t as r}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import"./p-
|
|
1
|
+
import{p as t,H as s,w as i,h as e,t as r}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{e as h}from"./p-BbVYO_6g.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as a}from"./p-CNJG60uZ.js";import{d as o}from"./p-BYIBbfJ8.js";import{d as n}from"./p-BJ7Hcvk1.js";import{d as c}from"./p-DLocSBO3.js";const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.visibleItemsCount=20,this.estimateItemSize=100,this.iconPack=h,this.isFetching=!1,this.autoScroll=!0,this.totalHeight=0,this.sizes=new Map,this.lastScrollTop=0,this.scrollToBottomRetries=0,this.elementObserver=(()=>{let t=null;const s=()=>t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((t=>{t.forEach((t=>{this.measureElement(t.target,t)}))})):null);return{disconnect:()=>{var t;return null===(t=s())||void 0===t?void 0:t.disconnect()},observe:t=>{var i;return null===(i=s())||void 0===i?void 0:i.observe(t,{box:"border-box"})},unobserve:t=>{var i;return null===(i=s())||void 0===i?void 0:i.unobserve(t)}}})(),this.measureElement=(t,s)=>{if(!t)return;const i=t.dataset.id;if(this.sizes.has(i))return void this.elementObserver.unobserve(t);if(s){const e=s.borderBoxSize[0];if(e&&e.blockSize>0)return this.saveItemSize(i,e.blockSize),void this.elementObserver.unobserve(t)}const e=t.getBoundingClientRect();e.height>0&&this.saveItemSize(i,e.height)},this.getVisibleItems=()=>this.messages.slice(this.range.start,this.range.end+1),this.updateVisibleItems=(t,s)=>{const i=this.messages.length;let e=t,r=s;i<=this.visibleItemsCount?(e=0,r=i-1):s-t<this.visibleItemsCount-1&&(e=this.range.end-this.visibleItemsCount+1),this.range.start!==e&&(this.range={start:e,end:r},this.totalHeight=this.getRangeSize(0,i))},this.getEstimatedItemSize=()=>this.estimateItemSize,this.getRangeSize=(t,s)=>{let i=0,e=0;for(let r=t;r<s;r++)e=this.sizes.get(this.messages[r].id),i+=e||this.getEstimatedItemSize();return i},this.getScrollTop=()=>this.$listRef?Math.ceil(this.$listRef.scrollTop):0,this.getClientHeight=()=>this.$listRef?Math.ceil(this.$listRef.clientHeight):0,this.getScrollHeight=()=>this.$listRef?Math.ceil(this.$listRef.scrollHeight):0,this.getItemsScrolled=()=>{const t=this.lastScrollTop;if(t<=0)return 0;let s=0,i=0,e=0,r=this.messages.length;for(;s<=r;){if(i=s+r>>>1,e=this.getRangeSize(0,i),e===t)return i;e<t?s=i+1:e>t&&(r=i-1)}return s>0?--s:0},this.getEndByStart=t=>Math.min(t+this.visibleItemsCount,this.messages.length-1),this.scrollToOffset=t=>{this.$listRef&&(this.$listRef.scrollTop=t)},this.scrollToIndex=t=>{if(t>=this.messages.length-1)this.scrollToBottom();else{const s=t<1?0:this.getRangeSize(0,t);this.scrollToOffset(s)}},this.scrollToBottom=()=>{this.$listEndRef&&i((()=>{this.$listEndRef.scrollIntoView(),this.getScrollHeight()-(this.getScrollTop()+this.getClientHeight())>0&&this.scrollToBottomRetries<10?setTimeout((()=>{this.scrollToBottom()}),1e3/60):(this.scrollToBottomRetries=0,this.autoScroll=!0)}))},this.handleScroll=async()=>{if(this.isFetching)return;const t=this.getScrollTop(),s=t<this.lastScrollTop||0===t?"UP":"DOWN";if(this.lastScrollTop=t,this.loadMore&&0===t&&"UP"===s&&!1===this.isFetching){this.isFetching=!0;const t=await this.loadMore(this.messages[0]);t&&t.length&&(this.messages=[...t,...this.messages]),this.isFetching=!1}"UP"===s?this.handleTop():"DOWN"===s&&this.handleBottom()},this.handleTop=()=>{const t=this.getItemsScrolled();if(t<=this.range.end-5&&(this.autoScroll=!1),t>this.range.start+5)return;const s=Math.max(this.range.start-5,0);this.updateVisibleItems(s,this.getEndByStart(s))},this.handleBottom=()=>{if(this.getItemsScrolled()<this.range.start+5)return;const t=this.range.start+5,s=this.getEndByStart(t);this.updateVisibleItems(s===this.messages.length-1?s-this.visibleItemsCount:t,s)},this.updateTotalHeight=c((()=>{this.totalHeight=this.getRangeSize(0,this.messages.length)}),1e3/30,{leading:!0}),this.rendererInternal=(t,s,i)=>{if(!t)return;if(t.dataset.id===s.id)return;const e=this.renderer(s,i);t.hasChildNodes&&(t.innerHTML=""),this.elementObserver.observe(t),t.dataset.id=s.id,t.appendChild(e)}}connectedCallback(){const t=this.messages.length-1;this.range={start:t-this.visibleItemsCount,end:t},this.updateVisibleItems(this.range.start,this.range.end),this.totalHeight=this.getRangeSize(0,t)}componentDidLoad(){this.autoScroll&&this.scrollToBottom()}messagesUpdated(t,s){if(t.length>s.length){const i=t.length-s.length;this.updateVisibleItems(i,this.getEndByStart(i)),this.scrollToIndex(this.range.start)}}saveItemSize(t,s){this.sizes.set(t,Math.round(s)),this.updateTotalHeight()}render(){return e("div",{key:"8da5ac7ee83f43da54ce1af023e178d206436b80",class:"scrollbar content-wrapper",ref:t=>this.$listRef=t,onScroll:this.handleScroll},e("div",{key:"3aeec25e25aeb2864b7ce0d68a08d58bb2b63cef",class:"scroller"},e("div",{key:"b65b2fb4471307f38c08480d268adfaafdb696fb",style:{height:this.totalHeight+"px"}}),e("div",{key:"08aa1dcf4740ce438b152527e8d60aff28704e8a",class:"smallest-dom-element",id:"list-end",ref:t=>this.$listEndRef=t})),e("div",{key:"48ba3788f83f2329174fb3ddd107eaf4da91699a",class:"content",style:{transform:`translateY(${this.getRangeSize(0,this.range.start)}px)`}},this.isFetching&&e("div",{key:"1a53b6b02899df6ce80c781b44fcd71802105fdf",class:"loader"},e("rtk-spinner",{key:"222bdf5ad19f45914f48c91afb65075e3fef277f",size:"md"})),this.getVisibleItems().map(((t,s)=>e("div",{key:t.id,ref:i=>this.rendererInternal(i,t,s)})))))}static get watchers(){return{messages:[{messagesUpdated: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)}.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)))}.loading{cursor:wait}.content-wrapper{height:100%;overflow-y:auto;position:relative;contain:strict}.scroller{width:1px;opacity:0}.content{position:absolute;top:0;width:100%}.smallest-dom-element{width:100%;height:2px;background:red}.loader{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;justify-content:center}"}},[0,"rtk-message-list-view",{messages:[16],renderer:[16],loadMore:[16],visibleItemsCount:[2,"visible-items-count"],estimateItemSize:[2,"estimate-item-size"],iconPack:[16],range:[32],isFetching:[32],autoScroll:[32],totalHeight:[32]},void 0,{messages:[{messagesUpdated:0}]}]);function d(){"undefined"!=typeof customElements&&["rtk-message-list-view","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-message-list-view":customElements.get(r(t))||customElements.define(r(t),l);break;case"rtk-icon":customElements.get(r(t))||o();break;case"rtk-spinner":customElements.get(r(t))||n()}}))}(function(t,s,i,e){var r,h=arguments.length,a=h<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(h<3?r(a):h>3?r(s,i,a):r(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([a()],l.prototype,"iconPack",void 0),d();const f=l,p=d;export{f as RtkMessageListView,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-1C_TdKq0.js";const p=o,r=s;export{p as RtkMessageView,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as e,h as o,d as r,t as s}from"./p-BBHQOrFK.js";import{e as a,i as n}from"./p-aXMUeMjU.js";import{S as d}from"./p-ByMjaTnP.js";import{i as l}from"./p-CAqYddlg.js";import{d as c}from"./p-BC__OeWi.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as u}from"./p--EktoJd3.js";import{d as m}from"./p-BjZJaxt1.js";import{d as p}from"./p-Ic4M6IZs.js";import{d as v}from"./p-Bc2jtNZw.js";import{d as b}from"./p-DHSRRtn3.js";var k=function(t,i,e,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(i,e,a):r(i,e))||a);return s>3&&a&&Object.defineProperty(i,e,a),a};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.deviceListUpdateListener=({devices:t})=>{this.audioInputDevices=t.filter((t=>"audioinput"===t.kind&&!!t.deviceId)),this.speakerDevices=t.filter((t=>"audiooutput"===t.kind&&!!t.deviceId))},this.deviceUpdateListener=()=>{this.currentDevices=Object.assign({},this.meeting.self.getCurrentDevices())},this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t,this.currentDevices=Object.assign({},this.meeting.self.getCurrentDevices())},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:t,message:i})=>{"audio"===t&&(this.micPermission=i)},this.meetingPermissionsUpdateListener=t=>{var i;(null===(i=null==t?void 0:t.media)||void 0===i?void 0:i.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.hideDeviceSelectionMenu=!1,this.iconPack=a,this.t=n(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.audioInputDevices=[],this.speakerDevices=[],this.hasAdditionalMenuItems=!1,this.setDevice=async t=>{const i=this.meeting;if(i&&("audiooutput"!==t.kind||!l(i)))try{await i.self.setDevice(t),i===this.meeting&&(this.currentDevices=Object.assign({},i.self.getCurrentDevices()))}catch(t){i.__internals__.logger.warn("rtkMicToggle::setDevice",{error:t})}},this.handleDeviceKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget.click())},this.toggleMic=()=>{var t,i,e,o,r,s,a,n,d,l,c,h;if(null===(t=this.meeting)||void 0===t||t.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:!!(null===(e=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===e?void 0:e.audioEnabled),permission:this.micPermission,canProduce:null===(s=null===(r=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.canProduceAudio}},webinar:{stageStatus:null===(n=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(l=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===l?void 0:l.status},moduleExists:{self:!!(null===(c=this.meeting)||void 0===c?void 0:c.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const u=null===(h=this.meeting)||void 0===h?void 0:h.self;null!=u&&this.canProduceAudio&&(u.audioEnabled?u.disableAudio():u.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.removeMeetingListeners(this.meeting)}removeMeetingListeners(t){var i,e,o;null==t||t.self.removeListener("audioUpdate",this.audioUpdateListener),null==t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==t||t.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null==t||t.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(i=null==t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),null===(o=null===(e=null==t?void 0:t.self)||void 0===e?void 0:e.permissions)||void 0===o||o.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}async refreshDevices(t){if(!t)return;const[i,e]=await Promise.all([t.self.getAudioDevices(),t.self.getSpeakerDevices()]);t===this.meeting&&(this.audioInputDevices=i.filter((t=>"audioinput"===t.kind&&!!t.deviceId)),this.speakerDevices=e.filter((t=>"audiooutput"===t.kind&&!!t.deviceId)),this.currentDevices=Object.assign({},t.self.getCurrentDevices()))}meetingChanged(t,i){var e,o;if(this.removeMeetingListeners(i),null!=t){const{self:i,stage:r}=t;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=t.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=i.audioEnabled,this.stageStatus=t.stage.status,this.audioInputDevices=[],this.speakerDevices=[],this.currentDevices=Object.assign({},i.getCurrentDevices()),i.addListener("audioUpdate",this.audioUpdateListener),i.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),i.addListener("deviceListUpdate",this.deviceListUpdateListener),i.addListener("deviceUpdate",this.deviceUpdateListener),null==r||r.addListener("stageStatusUpdate",this.stageStatusListener),null===(o=null===(e=t.self)||void 0===e?void 0:e.permissions)||void 0===o||o.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener),this.refreshDevices(t)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let t="",i="",e="",o={},r=this.hasPermissionError(),s="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!r?(i=this.t("mic_on"),e=this.iconPack.mic_on):(i=this.t("mic_off"),e=this.iconPack.mic_off,o["red-icon"]=!0),t=this.t(s?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:t,label:i,icon:e,classList:o,showWarning:r||s,disable:r}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return o(r,{"data-hidden":!0});const{tooltipLabel:t,label:i,icon:e,classList:s,showWarning:a,disable:n}=this.getState();return o(r,{title:i},o("div",{class:"mic-controls"},o("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},o("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:i,size:this.size,iconPack:this.iconPack,variant:this.variant,class:s,onClick:this.toggleMic,showWarning:a,disabled:n})),!this.hideDeviceSelectionMenu&&o("rtk-menu",{placement:"top",offset:4,size:this.size,iconPack:this.iconPack,t:this.t},o("button",{class:"device-trigger",type:"button",slot:"trigger","aria-label":this.t("mic_toggle.audio_devices"),"aria-haspopup":"menu",title:this.t("mic_toggle.audio_devices")},o("rtk-icon",{icon:this.iconPack.chevron_up,size:"sm"})),o("rtk-menu-list",{role:"menu",iconPack:this.iconPack,t:this.t},0===this.audioInputDevices.length&&o("div",{class:"empty-devices"},this.t("not_found_microphone")),this.audioInputDevices.map((t=>{var i,e,r,s;return o("rtk-menu-item",{role:"menuitemradio","aria-checked":((null===(e=null===(i=this.currentDevices)||void 0===i?void 0:i.audio)||void 0===e?void 0:e.deviceId)===t.deviceId)+"",tabIndex:0,title:t.label,onClick:()=>{this.setDevice(t)},onKeyDown:this.handleDeviceKeyDown},o("span",{class:"device-label"},t.label),(null===(s=null===(r=this.currentDevices)||void 0===r?void 0:r.audio)||void 0===s?void 0:s.deviceId)===t.deviceId&&o("rtk-icon",{icon:this.iconPack.checkmark,size:"sm",slot:"end"}))})),o("div",{class:"menu-divider",role:"separator"}),0===this.speakerDevices.length&&o("div",{class:"empty-devices"},this.t("not_found_speaker")),this.speakerDevices.map((t=>{var i,e,r,s;return o("rtk-menu-item",{role:"menuitemradio","aria-checked":((null===(e=null===(i=this.currentDevices)||void 0===i?void 0:i.speaker)||void 0===e?void 0:e.deviceId)===t.deviceId)+"","aria-disabled":l(this.meeting)+"",tabIndex:l(this.meeting)?-1:0,title:t.label,onClick:()=>{this.setDevice(t)},onKeyDown:this.handleDeviceKeyDown},o("span",{class:"device-label"},t.label),(null===(s=null===(r=this.currentDevices)||void 0===r?void 0:r.speaker)||void 0===s?void 0:s.deviceId)===t.deviceId&&o("rtk-icon",{icon:this.iconPack.checkmark,size:"sm",slot:"end"}))})),o("div",{class:{"additional-menu-items":!0,"has-items":this.hasAdditionalMenuItems}},this.hasAdditionalMenuItems&&o("div",{class:"menu-divider",role:"separator"}),o("slot",{name:"additional-menu-items",onSlotchange:t=>{this.hasAdditionalMenuItems=t.target.assignedElements().length>0}}))))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}.mic-controls{display:inline-flex;height:100%;align-items:stretch;border-radius:var(--rtk-border-radius-md, 8px);transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.mic-controls:hover{--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-800, 30 30 30))}rtk-tooltip{flex-shrink:0;width:-moz-max-content;width:max-content}rtk-controlbar-button{height:100%}:host(:not([hide-device-selection-menu])) rtk-controlbar-button{min-width:56px;width:-moz-max-content;width:max-content;border-top-right-radius:0;border-bottom-right-radius:0}:host(:not([hide-device-selection-menu])[size='sm']) rtk-controlbar-button{min-width:40px}:host(:not([hide-device-selection-menu])) rtk-controlbar-button::part(button){border-top-right-radius:0;border-bottom-right-radius:0}rtk-tooltip:hover rtk-controlbar-button::part(button){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}rtk-menu{display:flex;flex-shrink:0;width:28px}.device-trigger{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-7, 28px);cursor:pointer;align-items:center;justify-content:center;border-top-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--rtk-controlbar-button-background-color, rgb(var(--rtk-colors-background-1000, 8 8 8)))}.device-trigger:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.device-trigger:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}rtk-menu-list{box-sizing:border-box;max-height:60vh;overflow-y:auto;width:min(360px, calc(100vw - 24px))}rtk-menu-item{justify-content:space-between;gap:var(--rtk-space-3, 12px);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);line-height:1.25rem}rtk-menu-item:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253));outline-offset:-2px}rtk-menu-item[aria-disabled='true']{cursor:not-allowed;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.device-label{min-width:var(--rtk-space-0, 0px);overflow-wrap:anywhere}.empty-devices{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);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.menu-divider{border-top-width:var(--rtk-border-width-sm, 1px);border-bottom-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}.additional-menu-items:not(.has-items){display:none}::slotted([slot='additional-menu-items']){box-sizing:border-box;width:100%}:host([data-hidden]){display:none}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[257,"rtk-mic-toggle",{variant:[513],meeting:[16],size:[513],hideDeviceSelectionMenu:[516,"hide-device-selection-menu"],iconPack:[16],t:[16],audioEnabled:[32],canProduceAudio:[32],micPermission:[32],stageStatus:[32],audioInputDevices:[32],speakerDevices:[32],currentDevices:[32],hasAdditionalMenuItems:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-mic-toggle","rtk-controlbar-button","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-mic-toggle":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-controlbar-button":customElements.get(s(t))||c();break;case"rtk-icon":customElements.get(s(t))||h();break;case"rtk-menu":customElements.get(s(t))||u();break;case"rtk-menu-item":customElements.get(s(t))||m();break;case"rtk-menu-list":customElements.get(s(t))||p();break;case"rtk-spinner":customElements.get(s(t))||v();break;case"rtk-tooltip":customElements.get(s(t))||b()}}))}k([d()],g.prototype,"meeting",void 0),k([d()],g.prototype,"iconPack",void 0),k([d()],g.prototype,"t",void 0),f();const x=g,w=f;export{x as RtkMicToggle,w as defineCustomElement}
|
|
1
|
+
import{p as t,H as i,c as e,h as o,d as r,t as s}from"./p-BBHQOrFK.js";import{e as a,i as n,F as d}from"./p-BbVYO_6g.js";import{S as l}from"./p-CNJG60uZ.js";import{d as c}from"./p-CshWFMrN.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as u}from"./p-CpLLOHOq.js";import{d as m}from"./p-DLWL-o6Z.js";import{d as p}from"./p-CoiejzBd.js";import{d as v}from"./p-BJ7Hcvk1.js";import{d as b}from"./p-DHSRRtn3.js";var k=function(t,i,e,o){var r,s=arguments.length,a=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(a=(s<3?r(a):s>3?r(i,e,a):r(i,e))||a);return s>3&&a&&Object.defineProperty(i,e,a),a};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.deviceListUpdateListener=({devices:t})=>{this.audioInputDevices=t.filter((t=>"audioinput"===t.kind&&!!t.deviceId)),this.speakerDevices=t.filter((t=>"audiooutput"===t.kind&&!!t.deviceId))},this.deviceUpdateListener=()=>{this.currentDevices=Object.assign({},this.meeting.self.getCurrentDevices())},this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t,this.currentDevices=Object.assign({},this.meeting.self.getCurrentDevices())},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:t,message:i})=>{"audio"===t&&(this.micPermission=i)},this.meetingPermissionsUpdateListener=t=>{var i;(null===(i=null==t?void 0:t.media)||void 0===i?void 0:i.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.hideDeviceSelectionMenu=!1,this.iconPack=a,this.t=n(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.audioInputDevices=[],this.speakerDevices=[],this.hasAdditionalMenuItems=!1,this.setDevice=async t=>{const i=this.meeting;if(i&&("audiooutput"!==t.kind||!d(i)))try{await i.self.setDevice(t),i===this.meeting&&(this.currentDevices=Object.assign({},i.self.getCurrentDevices()))}catch(t){i.__internals__.logger.warn("rtkMicToggle::setDevice",{error:t})}},this.handleDeviceKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget.click())},this.toggleMic=()=>{var t,i,e,o,r,s,a,n,d,l,c,h;if(null===(t=this.meeting)||void 0===t||t.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:!!(null===(e=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===e?void 0:e.audioEnabled),permission:this.micPermission,canProduce:null===(s=null===(r=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.canProduceAudio}},webinar:{stageStatus:null===(n=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(l=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===l?void 0:l.status},moduleExists:{self:!!(null===(c=this.meeting)||void 0===c?void 0:c.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const u=null===(h=this.meeting)||void 0===h?void 0:h.self;null!=u&&this.canProduceAudio&&(u.audioEnabled?u.disableAudio():u.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.removeMeetingListeners(this.meeting)}removeMeetingListeners(t){var i,e,o;null==t||t.self.removeListener("audioUpdate",this.audioUpdateListener),null==t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==t||t.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null==t||t.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(i=null==t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),null===(o=null===(e=null==t?void 0:t.self)||void 0===e?void 0:e.permissions)||void 0===o||o.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}async refreshDevices(t){if(!t)return;const[i,e]=await Promise.all([t.self.getAudioDevices(),t.self.getSpeakerDevices()]);t===this.meeting&&(this.audioInputDevices=i.filter((t=>"audioinput"===t.kind&&!!t.deviceId)),this.speakerDevices=e.filter((t=>"audiooutput"===t.kind&&!!t.deviceId)),this.currentDevices=Object.assign({},t.self.getCurrentDevices()))}meetingChanged(t,i){var e,o;if(this.removeMeetingListeners(i),null!=t){const{self:i,stage:r}=t;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=t.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=i.audioEnabled,this.stageStatus=t.stage.status,this.audioInputDevices=[],this.speakerDevices=[],this.currentDevices=Object.assign({},i.getCurrentDevices()),i.addListener("audioUpdate",this.audioUpdateListener),i.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),i.addListener("deviceListUpdate",this.deviceListUpdateListener),i.addListener("deviceUpdate",this.deviceUpdateListener),null==r||r.addListener("stageStatusUpdate",this.stageStatusListener),null===(o=null===(e=t.self)||void 0===e?void 0:e.permissions)||void 0===o||o.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener),this.refreshDevices(t)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let t="",i="",e="",o={},r=this.hasPermissionError(),s="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!r?(i=this.t("mic_on"),e=this.iconPack.mic_on):(i=this.t("mic_off"),e=this.iconPack.mic_off,o["red-icon"]=!0),t=this.t(s?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:t,label:i,icon:e,classList:o,showWarning:r||s,disable:r}}render(){if(!this.meeting)return null;if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return o(r,{"data-hidden":!0});const{tooltipLabel:t,label:i,icon:e,classList:s,showWarning:a,disable:n}=this.getState();return o(r,{title:i},o("div",{class:"mic-controls"},o("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},o("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:i,size:this.size,iconPack:this.iconPack,variant:this.variant,class:s,onClick:this.toggleMic,showWarning:a,disabled:n})),!this.hideDeviceSelectionMenu&&o("rtk-menu",{placement:"top",offset:4,size:this.size,iconPack:this.iconPack,t:this.t},o("button",{class:"device-trigger",type:"button",slot:"trigger","aria-label":this.t("mic_toggle.audio_devices"),"aria-haspopup":"menu",title:this.t("mic_toggle.audio_devices")},o("rtk-icon",{icon:this.iconPack.chevron_up,size:"sm"})),o("rtk-menu-list",{role:"menu",iconPack:this.iconPack,t:this.t},0===this.audioInputDevices.length&&o("div",{class:"empty-devices"},this.t("not_found_microphone")),this.audioInputDevices.map((t=>{var i,e,r,s;return o("rtk-menu-item",{role:"menuitemradio","aria-checked":((null===(e=null===(i=this.currentDevices)||void 0===i?void 0:i.audio)||void 0===e?void 0:e.deviceId)===t.deviceId)+"",tabIndex:0,title:t.label,onClick:()=>{this.setDevice(t)},onKeyDown:this.handleDeviceKeyDown},o("span",{class:"device-label"},t.label),(null===(s=null===(r=this.currentDevices)||void 0===r?void 0:r.audio)||void 0===s?void 0:s.deviceId)===t.deviceId&&o("rtk-icon",{icon:this.iconPack.checkmark,size:"sm",slot:"end"}))})),o("div",{class:"menu-divider",role:"separator"}),0===this.speakerDevices.length&&o("div",{class:"empty-devices"},this.t("not_found_speaker")),this.speakerDevices.map((t=>{var i,e,r,s;return o("rtk-menu-item",{role:"menuitemradio","aria-checked":((null===(e=null===(i=this.currentDevices)||void 0===i?void 0:i.speaker)||void 0===e?void 0:e.deviceId)===t.deviceId)+"","aria-disabled":d(this.meeting)+"",tabIndex:d(this.meeting)?-1:0,title:t.label,onClick:()=>{this.setDevice(t)},onKeyDown:this.handleDeviceKeyDown},o("span",{class:"device-label"},t.label),(null===(s=null===(r=this.currentDevices)||void 0===r?void 0:r.speaker)||void 0===s?void 0:s.deviceId)===t.deviceId&&o("rtk-icon",{icon:this.iconPack.checkmark,size:"sm",slot:"end"}))})),o("div",{class:{"additional-menu-items":!0,"has-items":this.hasAdditionalMenuItems}},this.hasAdditionalMenuItems&&o("div",{class:"menu-divider",role:"separator"}),o("slot",{name:"additional-menu-items",onSlotchange:t=>{this.hasAdditionalMenuItems=t.target.assignedElements().length>0}}))))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}.mic-controls{display:inline-flex;height:100%;align-items:stretch;border-radius:var(--rtk-border-radius-md, 8px);transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}.mic-controls:hover{--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-800, 30 30 30))}rtk-tooltip{flex-shrink:0;width:-moz-max-content;width:max-content}rtk-controlbar-button{height:100%}:host(:not([hide-device-selection-menu])) rtk-controlbar-button{min-width:56px;width:-moz-max-content;width:max-content;border-top-right-radius:0;border-bottom-right-radius:0}:host(:not([hide-device-selection-menu])[size='sm']) rtk-controlbar-button{min-width:40px}:host(:not([hide-device-selection-menu])) rtk-controlbar-button::part(button){border-top-right-radius:0;border-bottom-right-radius:0}rtk-tooltip:hover rtk-controlbar-button::part(button){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}rtk-menu{display:flex;flex-shrink:0;width:28px}.device-trigger{box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-7, 28px);cursor:pointer;align-items:center;justify-content:center;border-top-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;color:rgb(var(--rtk-colors-text-1000, 255 255 255));background-color:var(--rtk-controlbar-button-background-color, rgb(var(--rtk-colors-background-1000, 8 8 8)))}.device-trigger:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.device-trigger:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253))}rtk-menu-list{box-sizing:border-box;max-height:60vh;overflow-y:auto;width:min(360px, calc(100vw - 24px))}rtk-menu-item{justify-content:space-between;gap:var(--rtk-space-3, 12px);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);line-height:1.25rem}rtk-menu-item:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-400, 53 110 253));outline-offset:-2px}rtk-menu-item[aria-disabled='true']{cursor:not-allowed;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.device-label{min-width:var(--rtk-space-0, 0px);overflow-wrap:anywhere}.empty-devices{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);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.menu-divider{border-top-width:var(--rtk-border-width-sm, 1px);border-bottom-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}.additional-menu-items:not(.has-items){display:none}::slotted([slot='additional-menu-items']){box-sizing:border-box;width:100%}:host([data-hidden]){display:none}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}"}},[257,"rtk-mic-toggle",{variant:[513],meeting:[16],size:[513],hideDeviceSelectionMenu:[516,"hide-device-selection-menu"],iconPack:[16],t:[16],audioEnabled:[32],canProduceAudio:[32],micPermission:[32],stageStatus:[32],audioInputDevices:[32],speakerDevices:[32],currentDevices:[32],hasAdditionalMenuItems:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-mic-toggle","rtk-controlbar-button","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-mic-toggle":customElements.get(s(t))||customElements.define(s(t),g);break;case"rtk-controlbar-button":customElements.get(s(t))||c();break;case"rtk-icon":customElements.get(s(t))||h();break;case"rtk-menu":customElements.get(s(t))||u();break;case"rtk-menu-item":customElements.get(s(t))||m();break;case"rtk-menu-list":customElements.get(s(t))||p();break;case"rtk-spinner":customElements.get(s(t))||v();break;case"rtk-tooltip":customElements.get(s(t))||b()}}))}k([l()],g.prototype,"meeting",void 0),k([l()],g.prototype,"iconPack",void 0),k([l()],g.prototype,"t",void 0),f();const x=g,w=f;export{x as RtkMicToggle,w as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as p}from"./p-BtMpJ0mM.js";const s=o,t=p;export{s as RtkMicrophoneSelector,t as defineCustomElement}
|