@cloudflare/realtimekit-ui 2.1.1-staging.1 → 2.2.0-staging.2
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-BC_FZZjt.js → TextMessage-BA97TnvX.js} +1 -1
- package/dist/cjs/{chat-D-UECZep.js → chat-NY588mAE.js} +1 -1
- package/dist/cjs/{config-QKPY7hOX.js → config-Chzt-h7l.js} +2 -2
- package/dist/cjs/{debounce-DvnLkO30.js → debounce-CoFZKdWb.js} +1 -1
- package/dist/cjs/{index-BUlqL6tn.js → index-BeKaBV5F.js} +1 -1
- package/dist/cjs/index-Bi2L8zQ7.js +6 -2
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- 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_4.cjs.entry.js → rtk-audio-visualizer_3.cjs.entry.js} +14 -82
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +6 -6
- 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 +90 -13
- 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 +4 -4
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +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 +81 -10
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
- package/dist/cjs/rtk-notifications.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
- 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 +47 -41
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +10 -5
- 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 +2 -2
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
- package/dist/cjs/rtk-switch.cjs.entry.js +74 -0
- package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
- package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
- package/dist/cjs/{ui-kit-metadata-Cjs7_Xqr.js → ui-kit-metadata-zBJ8NnVE.js} +2 -2
- package/dist/cjs/{ui-store-CrqwtYqt.js → ui-store-DSyXGfDZ.js} +10 -0
- package/dist/collection/components/rtk-ai/rtk-ai.js +2 -2
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +2 -2
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +2 -2
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +2 -2
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +2 -2
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +2 -2
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +2 -2
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +2 -2
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +2 -2
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +2 -2
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +2 -2
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +2 -2
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +2 -2
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.css +149 -0
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +140 -13
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +2 -2
- package/dist/collection/components/rtk-chat/rtk-chat.js +3 -3
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +2 -2
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +2 -2
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +2 -2
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +2 -2
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +2 -2
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +2 -2
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +3 -3
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +2 -2
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +2 -2
- package/dist/collection/components/rtk-clock/rtk-clock.js +1 -1
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +2 -2
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +2 -2
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +1 -1
- package/dist/collection/components/rtk-counter/rtk-counter.js +2 -2
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +2 -2
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +2 -2
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +2 -2
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +2 -2
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +2 -2
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +2 -2
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +2 -2
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +2 -2
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +2 -2
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +2 -2
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +2 -2
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +2 -2
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +2 -2
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +2 -2
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +1 -1
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +3 -3
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +2 -2
- package/dist/collection/components/rtk-grid/rtk-grid.js +2 -2
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +2 -2
- package/dist/collection/components/rtk-header/rtk-header.js +2 -2
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +2 -2
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +2 -2
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +2 -2
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +2 -2
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +2 -2
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +2 -2
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +2 -2
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +2 -2
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +2 -2
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -2
- package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +3 -3
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +2 -2
- package/dist/collection/components/rtk-menu/rtk-menu.js +2 -2
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +2 -2
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +2 -2
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +1 -1
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +1 -1
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.css +136 -0
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +107 -10
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +2 -2
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +2 -2
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +2 -2
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +2 -2
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +2 -2
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +2 -2
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +2 -2
- package/dist/collection/components/rtk-notification/rtk-notification.js +2 -2
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +2 -2
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +2 -2
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +2 -2
- package/dist/collection/components/rtk-participant/rtk-participant.js +2 -2
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +2 -2
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +2 -2
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +2 -2
- package/dist/collection/components/rtk-participants/rtk-participants.js +2 -2
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +2 -2
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +2 -2
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -2
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +2 -2
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +2 -2
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +2 -2
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +2 -2
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +2 -2
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -2
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +2 -2
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +2 -2
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +2 -2
- package/dist/collection/components/rtk-poll/rtk-poll.js +2 -2
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +2 -2
- package/dist/collection/components/rtk-polls/rtk-polls.js +2 -2
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +2 -2
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +2 -2
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +2 -2
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +2 -2
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +47 -41
- package/dist/collection/components/rtk-settings/rtk-settings.js +2 -2
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +2 -2
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +2 -2
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +2 -2
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.css +1 -0
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +35 -4
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +2 -2
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +3 -3
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +2 -2
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +2 -2
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +2 -2
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +2 -2
- package/dist/collection/components/rtk-stage/rtk-stage.js +2 -2
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +2 -2
- package/dist/collection/components/rtk-switch/rtk-switch.js +2 -2
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +2 -2
- 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 +2 -2
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +3 -3
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +2 -2
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +2 -2
- package/dist/collection/lib/icons/default-icon-pack.js +2 -0
- package/dist/collection/lib/lang/default-language.js +6 -0
- package/dist/collection/lib/overrides.js +1 -0
- package/dist/collection/utils/ui-kit-metadata.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p--EktoJd3.js +1 -0
- package/dist/components/{p-7MYbXrJb.js → p--F3BGV0E.js} +1 -1
- package/dist/components/{p-B-Um3Y0q.js → p-0I1N5xHK.js} +1 -1
- package/dist/components/{p-CqIpJqLB.js → p-36vx_Mui.js} +1 -1
- package/dist/components/p-9axQDs3P.js +1 -0
- package/dist/components/{p-D3Csm8eQ.js → p-B0Fo3cKf.js} +1 -1
- package/dist/components/{p-G-tM5Cb1.js → p-B2EHfWpD.js} +1 -1
- package/dist/components/{p-DjY5-zh6.js → p-B2RoJ1tz.js} +1 -1
- package/dist/components/{p-TUA15Ldm.js → p-B3ATJ-iD.js} +1 -1
- package/dist/components/{p-CO2yazTI.js → p-B5Ikq3LV.js} +1 -1
- package/dist/components/{p-CzenMmyk.js → p-B6IcTqkN.js} +1 -1
- package/dist/components/{p-BSNjo06h.js → p-BBRpBb3D.js} +1 -1
- package/dist/components/{p-B8oiDtR2.js → p-BC__OeWi.js} +1 -1
- package/dist/components/{p-dd1Gb3yO.js → p-BGaDuggr.js} +1 -1
- package/dist/components/{p-jMTHZUBS.js → p-BNjHUNwU.js} +1 -1
- package/dist/components/{p-YvtLtXG0.js → p-BQMMBSP2.js} +1 -1
- package/dist/components/{p-C8f6mc2h.js → p-BVRIm4Vt.js} +1 -1
- package/dist/components/{p-CFixwcvq.js → p-BWLmBQB7.js} +1 -1
- package/dist/components/{p-BXDIi4ef.js → p-BWqnoSw2.js} +1 -1
- package/dist/components/{p-C4lt-ETX.js → p-BX3gY1PP.js} +1 -1
- package/dist/components/{p-CMjUxdV6.js → p-Bc2jtNZw.js} +1 -1
- package/dist/components/{p-BOEr6Iwn.js → p-Be6GRqFL.js} +1 -1
- package/dist/components/{p-CRh2Y0y5.js → p-BeJhcBfy.js} +1 -1
- package/dist/components/{p-smk-gW4k.js → p-BeWjGx1n.js} +1 -1
- package/dist/components/{p-C6xptC8n.js → p-BjG7yuwj.js} +1 -1
- package/dist/components/{p-Bki9SL7E.js → p-BjZJaxt1.js} +1 -1
- package/dist/components/{p-JLHMB5KF.js → p-Bjx68Nkv.js} +1 -1
- package/dist/components/{p-4YgSkkuy.js → p-Bp8UGnBB.js} +1 -1
- package/dist/components/{p-Dguuxuf6.js → p-Bs5Z4Y29.js} +1 -1
- package/dist/components/{p-CnRk9_SJ.js → p-Btj1QSzG.js} +1 -1
- package/dist/components/{p-Dy4fzIMn.js → p-BugzZ4hY.js} +1 -1
- package/dist/components/{p-C8uVSyiQ.js → p-ByMjaTnP.js} +1 -1
- package/dist/components/{p-C47OQEBv.js → p-C07P-YzZ.js} +1 -1
- package/dist/components/{p-Bn0NaoHe.js → p-C7Rh2NRS.js} +1 -1
- package/dist/components/{p-lZCkNPO8.js → p-C8IQnQjR.js} +1 -1
- package/dist/components/{p-B5VTCZYP.js → p-CGVMdadq.js} +1 -1
- package/dist/components/{p-DybK0cgl.js → p-CH7w_Zrp.js} +1 -1
- package/dist/components/{p-CZ-yWzjf.js → p-CHSH0L_g.js} +1 -1
- package/dist/components/{p-BmRBlzRm.js → p-CM3Y2kOg.js} +1 -1
- package/dist/components/{p-Cm_EjOFw.js → p-CWxtbDEh.js} +1 -1
- package/dist/components/{p-CcZ1rLgH.js → p-CXDRC8Nb.js} +1 -1
- package/dist/components/{p-BnrujTeq.js → p-C_e0a6jQ.js} +1 -1
- package/dist/components/{p-oXrlIvqH.js → p-CcGN9NRd.js} +1 -1
- package/dist/components/{p-C2sFSKW3.js → p-CiX87kt0.js} +1 -1
- package/dist/components/{p-D5_4BJmf.js → p-CjOKLEdP.js} +1 -1
- package/dist/components/{p-BDLrJQ3A.js → p-CkNlX5-Y.js} +1 -1
- package/dist/components/p-CtPr1nvA.js +1 -0
- package/dist/components/{p-CQs7VlOJ.js → p-CugPCiPF.js} +1 -1
- package/dist/components/{p-fRvBvGz0.js → p-CxPXk2ws.js} +1 -1
- package/dist/components/{p-CuvMKEb3.js → p-D34dZlkT.js} +1 -1
- package/dist/components/{p-CQTewof6.js → p-D9cHynev.js} +1 -1
- package/dist/components/{p-Cer_tqK4.js → p-DAGCKEFc.js} +1 -1
- package/dist/components/{p-BrckmZjB.js → p-DAq4FN_d.js} +1 -1
- package/dist/components/{p-Dzj9iKF_.js → p-DC-3Hg9I.js} +1 -1
- package/dist/components/{p-Dr9eIVd4.js → p-DNy6quyg.js} +1 -1
- package/dist/components/{p-3mW_xZnk.js → p-DPENu38v.js} +1 -1
- package/dist/components/{p-DfawVT5m.js → p-DUIWB0ra.js} +1 -1
- package/dist/components/{p-Bj2I3AdD.js → p-DW9czTAD.js} +1 -1
- package/dist/components/{p-CcwCRJb3.js → p-DalLUQa1.js} +1 -1
- package/dist/components/{p-3tT2SY78.js → p-Dc5xkFI9.js} +1 -1
- package/dist/components/{p-BdxzrANc.js → p-Dp2LhUKa.js} +1 -1
- package/dist/components/{p-yDQrj0hk.js → p-Ds5j-VXZ.js} +1 -1
- package/dist/components/{p-CsfjUh-o.js → p-DuRlksIi.js} +1 -1
- package/dist/components/{p-D7MMFHbo.js → p-DxZ5v-a-.js} +1 -1
- package/dist/components/{p-CYoLYETf.js → p-GMH-Dp75.js} +1 -1
- package/dist/components/{p-BlOYC_3W.js → p-GtIz3u0L.js} +1 -1
- package/dist/components/{p-Bj1kNPpe.js → p-HuHRVcj4.js} +1 -1
- package/dist/components/{p-BDVl60pn.js → p-Ic4M6IZs.js} +1 -1
- package/dist/components/{p-CYD_rssA.js → p-IilUR0Z4.js} +1 -1
- package/dist/components/{p-24rczPkc.js → p-U9jg1DvO.js} +1 -1
- package/dist/components/{p-D6A3HkFv.js → p-Zkjzr8ZL.js} +1 -1
- package/dist/components/p-aXMUeMjU.js +1 -0
- package/dist/components/{p-Brlo91Mk.js → p-g5NPAxAj.js} +1 -1
- package/dist/components/{p-SUA0Nsyy.js → p-gBEnKt4T.js} +1 -1
- package/dist/components/{p-Bjaz-VFa.js → p-ifBo9NHb.js} +1 -1
- package/dist/components/{p-QjucuYy0.js → p-kGPSVdob.js} +1 -1
- package/dist/components/{p-GyIcfxbi.js → p-msSLVaDl.js} +1 -1
- package/dist/components/{p-CC_VHXzN.js → p-oXCkwBKR.js} +1 -1
- package/dist/components/{p-Ce9i2yF0.js → p-uxGiMP6W.js} +1 -1
- package/dist/components/{p-BEJdtq2m.js → p-vADJB1c2.js} +1 -1
- package/dist/components/{p-BUnJ03If.js → p-xLck_VlO.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-markdown-view.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-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +3784 -652
- package/dist/docs/docs-vscode.json +14 -0
- package/dist/esm/{TextMessage-DU5jn82l.js → TextMessage-BZiVGmY1.js} +1 -1
- package/dist/esm/{chat-CTWJuGSF.js → chat-lvouWi7J.js} +1 -1
- package/dist/esm/{config-CvBBWjUo.js → config-B2jDqnc2.js} +2 -2
- package/dist/esm/{debounce-D73CxE5J.js → debounce-aR8pwob-.js} +1 -1
- package/dist/esm/{index-CH0HBE_K.js → index-CgECHQfr.js} +1 -1
- package/dist/esm/index-gJCRRBX0.js +6 -2
- package/dist/esm/index.js +6 -6
- package/dist/esm/loader.js +697 -524
- 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_4.entry.js → rtk-audio-visualizer_3.entry.js} +16 -83
- package/dist/esm/rtk-avatar_26.entry.js +6 -6
- 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 +90 -13
- 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 +4 -4
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +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 +81 -10
- package/dist/esm/rtk-mixed-grid.entry.js +2 -2
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-mute-all-button.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +2 -2
- package/dist/esm/rtk-network-indicator.entry.js +2 -2
- package/dist/esm/rtk-notification.entry.js +4 -4
- package/dist/esm/rtk-notifications.entry.js +3 -3
- package/dist/esm/rtk-participant-count.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +2 -2
- package/dist/esm/rtk-participant_2.entry.js +3 -3
- package/dist/esm/rtk-participants-audio.entry.js +2 -2
- 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 +47 -41
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +2 -2
- package/dist/esm/rtk-settings.entry.js +2 -2
- package/dist/esm/rtk-setup-screen.entry.js +10 -5
- 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 +2 -2
- package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
- package/dist/esm/rtk-stage-toggle.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +2 -2
- package/dist/esm/rtk-switch.entry.js +72 -0
- package/dist/esm/rtk-transcript.entry.js +2 -2
- package/dist/esm/rtk-transcripts.entry.js +2 -2
- package/dist/esm/rtk-ui-provider.entry.js +2 -2
- package/dist/esm/rtk-waiting-screen.entry.js +2 -2
- package/dist/esm/{ui-kit-metadata-BfDGhHU-.js → ui-kit-metadata-DBkOnyOI.js} +2 -2
- package/dist/esm/{ui-store-Bx-7w8Yb.js → ui-store-25wIB_YH.js} +10 -1
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/p-00ae47eb.entry.js +1 -0
- package/dist/realtimekit-ui/{p-660aa537.entry.js → p-0ce5b00f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d5c12931.entry.js → p-0df18cd8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6d717ccc.entry.js → p-13a913a9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6568b1ab.entry.js → p-18607b9a.entry.js} +1 -1
- package/dist/realtimekit-ui/p-1eac1ada.entry.js +1 -0
- package/dist/realtimekit-ui/{p-5f27dd4a.entry.js → p-1ff01d5f.entry.js} +1 -1
- package/dist/realtimekit-ui/p-20588357.entry.js +1 -0
- package/dist/realtimekit-ui/{p-37e705b5.entry.js → p-21119a4d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-183a312c.entry.js → p-22cd2a40.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-643a1927.entry.js → p-2999cb8d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4b3dce1f.entry.js → p-2eb73b5f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8153ed7f.entry.js → p-2f380c20.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3b485618.entry.js → p-32079fea.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bf065dd7.entry.js → p-341159c7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c8333864.entry.js → p-39a410f5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-205434fe.entry.js → p-3a0eaf1e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e352d5e2.entry.js → p-3ab9b329.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-363ce42f.entry.js → p-3d95065e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6195c623.entry.js → p-465c4010.entry.js} +1 -1
- package/dist/realtimekit-ui/p-467cb881.entry.js +1 -0
- package/dist/realtimekit-ui/{p-a2553f7d.entry.js → p-4b2ce9e5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e0249fd5.entry.js → p-4d59e280.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b94dfda1.entry.js → p-54c71e62.entry.js} +1 -1
- package/dist/realtimekit-ui/p-590350ae.entry.js +1 -0
- package/dist/realtimekit-ui/{p-7bdd40b8.entry.js → p-5ea44aa5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-205f9429.entry.js → p-60e672f3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-21796886.entry.js → p-60f90e32.entry.js} +1 -1
- package/dist/realtimekit-ui/p-63413c07.entry.js +1 -0
- package/dist/realtimekit-ui/{p-cc5ea463.entry.js → p-64b7ca52.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-058620d5.entry.js → p-64f46d1e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e1735083.entry.js → p-6568c9be.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8dd67156.entry.js → p-69445dc5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-718bae68.entry.js → p-69e11a90.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9d52fc8e.entry.js → p-69ee90c7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-abde760f.entry.js → p-6a985345.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fef5f872.entry.js → p-6bca148a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-933c3a7c.entry.js → p-70672349.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b245131f.entry.js → p-72b2fe54.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-723738bd.entry.js → p-73f2a2db.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-dfa06095.entry.js → p-7711649a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-86b82dbf.entry.js → p-77648ee7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-83861ea9.entry.js → p-7878ab30.entry.js} +1 -1
- package/dist/realtimekit-ui/p-7d7409e5.entry.js +1 -0
- package/dist/realtimekit-ui/{p-1ce8eaf9.entry.js → p-8206b22d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-828ecefa.entry.js +1 -0
- package/dist/realtimekit-ui/{p-207ce4c5.entry.js → p-82a226df.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-995ce594.entry.js → p-8a481d43.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-68e8289e.entry.js → p-8dc6db09.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9c7b6b83.entry.js → p-94a286d0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6d121798.entry.js → p-95818179.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-348d4b7d.entry.js → p-9675893b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bdb23405.entry.js → p-96b81823.entry.js} +1 -1
- package/dist/realtimekit-ui/p-9c53a0b7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-4wo9JvMs.js → p-B3SWd1rN.js} +1 -1
- package/dist/realtimekit-ui/p-C8tHk7bV.js +1 -0
- package/dist/realtimekit-ui/{p-DE_WFbDN.js → p-CGOvNX5H.js} +1 -1
- package/dist/realtimekit-ui/{p-B0XvZgA2.js → p-CRQsZMW5.js} +1 -1
- package/dist/realtimekit-ui/p-DgbGa7ou.js +1 -0
- package/dist/realtimekit-ui/{p-c4vw1R9K.js → p-Dj-6QheV.js} +1 -1
- package/dist/realtimekit-ui/{p-f97af682.entry.js → p-a05269d4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9e279393.entry.js → p-a1febe2c.entry.js} +1 -1
- package/dist/realtimekit-ui/p-a478656f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-aef96d8b.entry.js → p-a5afae52.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-732b25be.entry.js → p-a6b6f977.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4d93a6be.entry.js → p-a732dd55.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f58ede34.entry.js → p-aa1bcc8d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f8463bf8.entry.js → p-b29b686b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-b415ff27.entry.js +1 -0
- package/dist/realtimekit-ui/{p-5ed86313.entry.js → p-b56fe105.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3f7688e2.entry.js → p-b783a853.entry.js} +1 -1
- package/dist/realtimekit-ui/p-bef64365.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b5a8fe62.entry.js → p-c1efb757.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d4c7a8ad.entry.js → p-c35040dc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-75057984.entry.js → p-c7f7f0ee.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8b2ffaa1.entry.js → p-c8cad0a6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a4d9e0e1.entry.js → p-cc9228ee.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e2a9aea6.entry.js → p-cdf80add.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8f04a055.entry.js → p-cf9e2497.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-16734ef7.entry.js → p-cfa03301.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a4704c24.entry.js → p-d7b10d53.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5f2c7eca.entry.js → p-d91222ea.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-625aa771.entry.js → p-da857425.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4c6cf53f.entry.js → p-dcced1f6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-57b4007f.entry.js → p-df0fe032.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-26e7752a.entry.js → p-df5b5a98.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-efd86516.entry.js → p-e54dbacd.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a713e193.entry.js → p-f202a199.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e7b02202.entry.js → p-fbde8aee.entry.js} +1 -1
- package/dist/realtimekit-ui/p-x7gw0EVy.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-camera-toggle/rtk-camera-toggle.d.ts +17 -1
- package/dist/types/components/rtk-mic-toggle/rtk-mic-toggle.d.ts +15 -1
- package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +3 -2
- package/dist/types/components/rtk-setup-screen/rtk-setup-screen.d.ts +3 -0
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -0
- package/dist/types/components.d.ts +50 -10
- package/dist/types/lib/icons/default-icon-pack.d.ts +2 -0
- package/dist/types/lib/lang/default-language.d.ts +6 -0
- package/dist/types/lib/overrides.d.ts +4 -0
- package/package.json +1 -4
- package/dist/components/p-Bx38FZhs.js +0 -1
- package/dist/components/p-CNApM3eU.js +0 -1
- package/dist/components/p-D4GSX-co.js +0 -1
- package/dist/components/p-D9p14DJ_.js +0 -1
- package/dist/realtimekit-ui/p-1786b535.entry.js +0 -1
- package/dist/realtimekit-ui/p-3bd80e90.entry.js +0 -1
- package/dist/realtimekit-ui/p-4c2cba57.entry.js +0 -1
- package/dist/realtimekit-ui/p-56315661.entry.js +0 -1
- package/dist/realtimekit-ui/p-5f9ca1bf.entry.js +0 -1
- package/dist/realtimekit-ui/p-6e1c70b8.entry.js +0 -1
- package/dist/realtimekit-ui/p-7690e88e.entry.js +0 -1
- package/dist/realtimekit-ui/p-77352289.entry.js +0 -1
- package/dist/realtimekit-ui/p-7ca93eef.entry.js +0 -1
- package/dist/realtimekit-ui/p-BPp8I5C6.js +0 -1
- package/dist/realtimekit-ui/p-D2jt9uAV.js +0 -1
- package/dist/realtimekit-ui/p-a0a519d4.entry.js +0 -1
- package/dist/realtimekit-ui/p-c69a406e.entry.js +0 -1
- package/dist/realtimekit-ui/p-fJjgai7z.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,h as e,d as s,t as n}from"./p-BBHQOrFK.js";import{e as a,i as r}from"./p-
|
|
1
|
+
import{p as t,H as i,h as e,d as s,t as n}from"./p-BBHQOrFK.js";import{e as a,i as r}from"./p-aXMUeMjU.js";import{a as o}from"./p-C0vp-Q7v.js";import{S as c}from"./p-ByMjaTnP.js";import{d as h}from"./p-BYIBbfJ8.js";var p=function(t,i,e,s){var n,a=arguments.length,r=a<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(a<3?n(r):a>3?n(i,e,r):n(i,e))||r);return a>3&&r&&Object.defineProperty(i,e,r),r};const l=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=a,this.t=r(),this.participantCount=0,this.isViewer=!1,this.disconnectMeeting=t=>{null!=t&&null!=this.countListener&&(t.participants.joined.removeListener("participantJoined",this.countListener),t.participants.joined.removeListener("participantLeft",this.countListener),(null==t?void 0:t.stage)&&this.stageUpdateListener&&t.stage.removeListener("stageStatusUpdate",this.stageUpdateListener),t.self.removeListener("roomJoined",this.countListener))}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}meetingChanged(t,i){this.disconnectMeeting(i),null!=t&&(this.countListener=()=>{this.participantCount=t.participants.joined.size+(t.self.roomJoined?1:0)},this.countListener(),this.isViewer=o(this.meeting),t.participants.joined.addListener("participantJoined",this.countListener),t.participants.joined.addListener("participantLeft",this.countListener),(null==t?void 0:t.stage)&&(this.stageUpdateListener=()=>{this.isViewer=o(this.meeting)},null==t||t.stage.addListener("stageStatusUpdate",this.stageUpdateListener)),t.self.addListener("roomJoined",this.countListener))}render(){return this.isViewer?e(s,{"data-hidden":!0}):e(s,{tabIndex:0,role:"log","aria-label":`${this.participantCount} ${this.t("participants")}`},e("rtk-icon",{icon:this.iconPack.people,tabIndex:-1,"aria-hidden":!0,part:"icon"}),this.participantCount)}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:inline-flex;height:var(--rtk-space-10, 40px);-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}"}},[1,"rtk-participant-count",{meeting:[16],iconPack:[16],t:[16],size:[513],participantCount:[32],isViewer:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function d(){"undefined"!=typeof customElements&&["rtk-participant-count","rtk-icon"].forEach((t=>{switch(t){case"rtk-participant-count":customElements.get(n(t))||customElements.define(n(t),l);break;case"rtk-icon":customElements.get(n(t))||h()}}))}p([c()],l.prototype,"meeting",void 0),p([c()],l.prototype,"iconPack",void 0),p([c()],l.prototype,"t",void 0),d();const m=l,u=d;export{m as RtkParticipantCount,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,h as e,d as r,t as a}from"./p-BBHQOrFK.js";import{c as o,e as s,i as n}from"./p-
|
|
1
|
+
import{p as t,H as i,h as e,d as r,t as a}from"./p-BBHQOrFK.js";import{c as o,e as s,i as n}from"./p-aXMUeMjU.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as d}from"./p-ByMjaTnP.js";var c=function(t,i,e,r){var a,o=arguments.length,s=o<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,i,e,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(s=(o<3?a(s):o>3?a(i,e,s):a(i,e))||s);return o>3&&s&&Object.defineProperty(i,e,s),s};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.isPinned=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=o(),this.variant="solid",this.iconPack=s,this.t=n(),this.onVideoUpdate=t=>{this.videoState=t}}connectedCallback(){this.participantsChanged(this.participant)}componentDidLoad(){this.videoStateChanged(this.videoState)}disconnectedCallback(){null!=this.participant&&this.participant.removeListener("videoUpdate",this.onVideoUpdate)}async participantsChanged(t){null!=t&&(this.videoState={videoEnabled:t.videoEnabled,videoTrack:t.videoTrack},this.isPinned=t.isPinned,t.addListener("videoUpdate",this.onVideoUpdate))}videoStateChanged(t){if(null!=t&&null!=this.videoEl)if(t.videoEnabled){const i=new MediaStream;i.addTrack(t.videoTrack),this.videoEl.srcObject=i}else this.videoEl.srcObject=void 0}isMirrored(){var t;if(null!=this.participant&&("preview"in this.participant||this.isPreview)){const i=this.states,e=null===(t=null==i?void 0:i.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof e)return e}return!1}render(){var t,i,a,o;return e(r,{key:"28dd3343464f9c18cae6161f8ad56005b748a637"},e("video",{key:"556343e40a061ddb9522569a77b574309bed9f31",ref:t=>this.videoEl=t,class:{visible:null===(t=this.videoState)||void 0===t?void 0:t.videoEnabled,mirror:this.isMirrored(),[null!==(o=null===(a=null===(i=this.config)||void 0===i?void 0:i.config)||void 0===a?void 0:a.videoFit)&&void 0!==o?o:"cover"]:!0},autoPlay:!0,playsInline:!0,muted:!0}),e("slot",{key:"c5da0b57d92652e54ef88cedcc269ccc720d1054"}))}static get watchers(){return{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:16 / 9;height:var(--rtk-space-56, 224px);overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));transition-property:var(--rtk-transition-property, all);transition-duration:150ms}@media (prefers-reduced-motion){:host{--rtk-transition-property:none}}:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag){left:var(--rtk-space-2, 8px);bottom:var(--rtk-space-2, 8px);height:var(--rtk-space-4, 16px)}video{display:none;position:absolute;height:100%;width:100%;border-radius:var(--rtk-border-radius-lg, 12px)}video.contain{-o-object-fit:contain;object-fit:contain}video.cover{-o-object-fit:cover;object-fit:cover}video.visible{display:block}video::-webkit-media-controls{display:none !important}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}video.mirror{transform:scaleX(-1)}@media (orientation: portrait){:host{height:var(--rtk-space-44, 176px)}}"}},[257,"rtk-participant-setup",{nameTagPosition:[513,"name-tag-position"],isPreview:[4,"is-preview"],participant:[16],states:[16],config:[16],variant:[513],size:[513],iconPack:[16],t:[16],videoState:[32],isPinned:[32]},void 0,{participant:[{participantsChanged:0}],videoState:[{videoStateChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-participant-setup"].forEach((t=>{"rtk-participant-setup"===t&&(customElements.get(a(t))||customElements.define(a(t),p))}))}c([d()],p.prototype,"states",void 0),c([d()],p.prototype,"config",void 0),c([d()],p.prototype,"iconPack",void 0),c([d()],p.prototype,"t",void 0),l();const v=p,h=l;export{v as RtkParticipantSetup,h as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as s}from"./p-CiX87kt0.js";const t=o,p=s;export{t as RtkParticipantTile,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-BWLmBQB7.js";const m=o,p=s;export{m as RtkParticipant,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as s,h as a,d as e,t as
|
|
1
|
+
import{p as t,H as i,c as s,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{i as o}from"./p-CAqYddlg.js";import{e as n,i as h}from"./p-aXMUeMjU.js";import{S as d}from"./p-ByMjaTnP.js";import{a as c}from"./p-C0vp-Q7v.js";import{d as p}from"./p-D6vw6bT2.js";import{d as l}from"./p-BeWjGx1n.js";import{d as u}from"./p-BYIBbfJ8.js";class k{constructor(t,i){this.meeting=t,this.audio=null!=i?i:document.createElement("audio"),this.audio.autoplay=!0,this.logger=t.__internals__.logger,this.audioStream=new MediaStream,this.audio.srcObject=this.audioStream,this.trackIdByAudioIdMap=new Map,this.trackOwners=new Map}addTrack(t,i){const s=this.trackIdByAudioIdMap.get(t);if(s===i.id)return void this.play();s&&this.removeTrack(t),this.trackIdByAudioIdMap.set(t,i.id);const a=this.trackOwners.get(i.id);a?a.audioIds.add(t):(this.trackOwners.set(i.id,{track:i,audioIds:new Set([t])}),this.audioStream.addTrack(i)),this.play()}removeTrack(t){const i=this.trackIdByAudioIdMap.get(t);if(!i)return;this.trackIdByAudioIdMap.delete(t);const s=this.trackOwners.get(i);s&&(s.audioIds.delete(t),s.audioIds.size>0||(this.audioStream.removeTrack(s.track),this.trackOwners.delete(i)))}async play(){var t;this.audio.srcObject=this.audioStream,await(null===(t=this.audio.play())||void 0===t?void 0:t.catch((t=>{"NotAllowedError"===t.name?null!=this._onError&&this._onError():"AbortError"!==t.name&&this.logger.error("[rtk-audio] play() error\n",t)})))}async setDevice(t){var i,s,a;o(this.meeting)||await(null===(a=null===(s=(i=this.audio).setSinkId)||void 0===s?void 0:s.call(i,t))||void 0===a?void 0:a.catch((t=>{this.logger.error("[rtk-audio] setSinkId() error\n",t)})))}onError(t){this._onError=t}}var m=function(t,i,s,a){var e,r=arguments.length,o=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,s,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(o=(r<3?e(o):r>3?e(i,s,o):e(i,s))||o);return r>3&&o&&Object.defineProperty(i,s,o),o};const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dialogClose=s(this,"dialogClose",7),this.iconPack=n,this.t=h(),this.preloadedAudioElem=void 0,this.showPlayDialog=!1,this.onRtkDialogClose=()=>{this.showPlayDialog=!1,this.dialogClose.emit()}}componentDidLoad(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.meeting&&(this.audioUpdateListener&&this.meeting.participants.joined.removeListener("audioUpdate",this.audioUpdateListener),this.screenShareUpdateListener&&this.meeting.participants.joined.removeListener("screenShareUpdate",this.screenShareUpdateListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),this.deviceUpdateListener&&this.meeting.self.removeListener("deviceUpdate",this.deviceUpdateListener),this.stageStatusUpdateListener&&(null===(t=this.meeting.stage)||void 0===t||t.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)))}async setupAudio(){this.audio=new k(this.meeting,this.preloadedAudioElem);const t=this.meeting.self.getCurrentDevices();null!=t.speaker&&await this.audio.setDevice(t.speaker.deviceId)}async handleAutoPlayError(){this.audio||await this.setupAudio(),this.audio.onError((()=>{this.showPlayDialog=!0})),this.audio.play()}async handleEvents(t){this.audioUpdateListener=({id:t,audioEnabled:i,audioTrack:s})=>{const a="audio-"+t;i&&null!=s?this.audio.addTrack(a,s):this.audio.removeTrack(a)};const i=t.participants.joined.toArray();for(const t of i)this.audioUpdateListener(t);this.participantLeftListener=({id:t})=>{this.audio.removeTrack("audio-"+t),this.audio.removeTrack("screenshare-"+t)},this.screenShareUpdateListener=({id:t,screenShareEnabled:i,screenShareTracks:s})=>{const a="screenshare-"+t;i&&null!=s.audio?this.audio.addTrack(a,s.audio):this.audio.removeTrack(a)},this.deviceUpdateListener=({device:t,preview:i})=>{i||"audiooutput"===t.kind&&this.audio.setDevice(t.deviceId)},t.participants.joined.addListener("audioUpdate",this.audioUpdateListener),t.participants.joined.addListener("screenShareUpdate",this.screenShareUpdateListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener)}async meetingChanged(t){var i;t&&(this.setupAudio(),c(t)?(this.stageStatusUpdateListener=async t=>{"ON_STAGE"===t&&await this.handleAutoPlayError()},null===(i=t.stage)||void 0===i||i.on("stageStatusUpdate",this.stageStatusUpdateListener)):await this.handleAutoPlayError(),await this.handleEvents(t))}render(){return a(e,{key:"14ddae0562633e4433788c18fb89533248df6c2b"},this.showPlayDialog&&a("rtk-dialog",{key:"d0e33058fbcd77861009ce80d7d4e29b2b597475",open:!0,onRtkDialogClose:this.onRtkDialogClose,hideCloseButton:!0,disableEscapeKey:!0,iconPack:this.iconPack,t:this.t},a("div",{key:"e6a9a18c1eaf3e09d13e25373982183b3ad6f8ec",class:"modal"},a("h3",{key:"bc87cc408aad7117cc8d808e38142b3801e5ff53"},this.t("audio_playback.title")),a("p",{key:"b1927a5cd053c59e19a6c4c54044ca500691ee71"},this.t("audio_playback.description")),a("rtk-button",{key:"3c022bb0602295cbd5996ae2ee066e254b1af2fb",kind:"wide",onClick:()=>{this.audio.play(),this.onRtkDialogClose()},title:this.t("audio_playback")},this.t("audio_playback")))))}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;overflow-wrap:break-word;color:rgb(var(--rtk-colors-text-1000, 255 255 255));word-wrap:break-word}.modal{box-sizing:border-box;width:100%;max-width:var(--rtk-space-96, 384px);padding:var(--rtk-space-4, 16px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.modal h3{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);font-size:24px;font-weight:500}.modal p{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-6, 24px)}.modal rtk-button{width:100%}"}},[1,"rtk-participants-audio",{meeting:[16],iconPack:[16],t:[16],preloadedAudioElem:[16],showPlayDialog:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-participants-audio","rtk-button","rtk-dialog","rtk-icon"].forEach((t=>{switch(t){case"rtk-participants-audio":customElements.get(r(t))||customElements.define(r(t),b);break;case"rtk-button":customElements.get(r(t))||p();break;case"rtk-dialog":customElements.get(r(t))||l();break;case"rtk-icon":customElements.get(r(t))||u()}}))}m([d()],b.prototype,"meeting",void 0),m([d()],b.prototype,"iconPack",void 0),m([d()],b.prototype,"t",void 0),f();const v=b,g=f;export{v as RtkParticipantsAudio,g as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-BX3gY1PP.js";const p=o,r=s;export{p as RtkParticipantsStageList,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-DC-3Hg9I.js";const p=o,r=s;export{p as RtkParticipantsStageQueue,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as s,h as a,d as e,t as n}from"./p-BBHQOrFK.js";import{e as r,i as o}from"./p-
|
|
1
|
+
import{p as t,H as i,c as s,h as a,d as e,t as n}from"./p-BBHQOrFK.js";import{e as r,i as o}from"./p-aXMUeMjU.js";import{a as c}from"./p-D9HGXWKc.js";import{S as h}from"./p-ByMjaTnP.js";import{d as p}from"./p-BC__OeWi.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-Bc2jtNZw.js";var u=function(t,i,s,a){var e,n=arguments.length,r=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,a);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(r=(n<3?e(r):n>3?e(i,s,r):e(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const g=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=r,this.t=o(),this.participantsActive=!1,this.waitlistedParticipants=[],this.stageRequestedParticipants=[],this.badgeCount=0,this.canViewParticipants=!1,this.updateStageRequests=async t=>{var i,s,a;t||(t=null!==(a=null===(s=null===(i=this.meeting.stage)||void 0===i?void 0:i.getAccessRequests())||void 0===s?void 0:s.stageRequests)&&void 0!==a?a:[]),this.stageRequestedParticipants=t,this.stageRequestedParticipants="REQUESTED_TO_JOIN_STAGE"===this.meeting.stage.status?[this.meeting.self,...t]:t,this.updateBadgeCount()},this.updateBadgeCount=()=>{this.badgeCount=this.waitlistedParticipants.length+this.stageRequestedParticipants.length},this.updateCanView=()=>{this.canViewParticipants=c(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s;this.meeting&&(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),null===(s=this.meeting.stage)||void 0===s||s.removeListener("stageAccessRequestUpdate",this.updateStageRequests))}meetingChanged(t){var i;t&&(this.canViewParticipants=c(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),t.self.permissions.acceptWaitingRequests&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t],this.updateBadgeCount())},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id)),this.updateBadgeCount()},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&(this.updateStageRequests(),null==t||t.stage.on("stageAccessRequestUpdate",this.updateStageRequests)),this.updateBadgeCount())}statesChanged(t){null!=t&&(this.participantsActive=!0===t.activeSidebar&&"participants"===t.sidebar)}toggleParticipantsTab(){const t=this.states;this.participantsActive=!((null==t?void 0:t.activeSidebar)&&"participants"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.participantsActive,sidebar:this.participantsActive?"participants":void 0,activeMoreMenu:!1})}handleParticipantsActiveChange(){this.participantsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewParticipants)return a(e,{"data-hidden":!0});const t=this.t("participants");return a(e,{title:t},0!==this.badgeCount&&!this.participantsActive&&a("div",{class:"waiting-participants-count",part:"waiting-participants-count"},a("span",null,this.badgeCount<=100?this.badgeCount:"99+")),a("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.participantsActive},onClick:()=>this.toggleParticipantsTab(),icon:this.iconPack.participants,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],participantsActive:[{handleParticipantsActiveChange:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.waiting-participants-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .waiting-participants-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}"}},[1,"rtk-participants-toggle",{variant:[513],meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],participantsActive:[32],waitlistedParticipants:[32],stageRequestedParticipants:[32],badgeCount:[32],canViewParticipants:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],participantsActive:[{handleParticipantsActiveChange:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-participants-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-participants-toggle":customElements.get(n(t))||customElements.define(n(t),g);break;case"rtk-controlbar-button":customElements.get(n(t))||p();break;case"rtk-icon":customElements.get(n(t))||l();break;case"rtk-spinner":customElements.get(n(t))||d()}}))}u([h()],g.prototype,"meeting",void 0),u([h()],g.prototype,"states",void 0),u([h()],g.prototype,"iconPack",void 0),u([h()],g.prototype,"t",void 0),v();const m=g,f=v;export{m as RtkParticipantsToggle,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as s,d as o}from"./p-CxPXk2ws.js";const p=s,r=o;export{p as RtkParticipantsViewerList,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as s,d as o}from"./p-DuRlksIi.js";const p=s,r=o;export{p as RtkParticipantsWaitingList,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as s,h as i,d as a,t as e}from"./p-BBHQOrFK.js";import{c as o,e as n,i as p}from"./p-D4GSX-co.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-C8uVSyiQ.js";import{d as l}from"./p-Cer_tqK4.js";import{d as h}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as m}from"./p-Bki9SL7E.js";import{d as u}from"./p-BDVl60pn.js";import{d as b}from"./p-CFixwcvq.js";import{d as g}from"./p-C4lt-ETX.js";import{d as k}from"./p-Dzj9iKF_.js";import{d as v}from"./p-fRvBvGz0.js";import{d as f}from"./p-CsfjUh-o.js";import{d as x}from"./p-Dy4fzIMn.js";import{d as E}from"./p-CMjUxdV6.js";import{d as w}from"./p-DHSRRtn3.js";import{d as T}from"./p-B_Wn0VnS.js";import{d as j}from"./p-DLocSBO3.js";var S=function(t,r,s,i){var a,e=arguments.length,o=e<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,s,i);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(e<3?a(o):e>3?a(r,s,o):a(r,s))||o);return e>3&&o&&Object.defineProperty(r,s,o),o};const y=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.config=o(),this.iconPack=n,this.defaultParticipantsTabId="stage-list",this.t=p(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=j((()=>{var t;let r=(null===(t=this.meeting.participants.waitlisted)||void 0===t?void 0:t.size)||0,s=0,a=0;this.meeting.participants.joined.toArray().forEach((t=>{"ON_STAGE"===t.stageStatus&&s++,"OFF_STAGE"===t.stageStatus&&a++,"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(r++,a++),"ACCEPTED_TO_JOIN_STAGE"===t.stageStatus&&a++})),"ON_STAGE"===this.meeting.self.stageStatus&&s++,"OFF_STAGE"===this.meeting.self.stageStatus&&a++,"REQUESTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&(r++,a++),"ACCEPTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&a++;const e=[];this.shouldShowRequestsTab()&&e.push({id:"requests",name:i("span",null,this.t("requests")," ",i("span",{class:`tab-participant-count-badge ${r>0?"requests-pending":""} ${"requests"===this.currentParticipantsTabId?"selected-tab":""}`},r))}),e.push({id:"stage-list",name:i("span",null,this.t("participants")," ",i("span",{class:"tab-participant-count-badge "+("stage-list"===this.currentParticipantsTabId?"selected-tab":"")},s))}),this.shouldShowViewersTab()&&e.push({id:"viewer-list",name:i("span",null,this.t("viewers")," ",i("span",{class:"tab-participant-count-badge "+("viewer-list"===this.currentParticipantsTabId?"selected-tab":"")},a))}),this.tabs=e,this.hasRequests=r>0})),this.onSearchInput=t=>{this.search=t.target.value},this.shouldShowViewersTab=()=>{var t,r,s;return null===(s=null===(r=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.stageEnabled},this.shouldShowRequestsTab=()=>{var t;let r=!1;return r="LIVESTREAM"!==this.meeting.meta.viewType&&(null===(t=this.meeting.self.config.waitingRoom)||void 0===t?void 0:t.isEnabled)&&this.meeting.self.permissions.acceptWaitingRequests,this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests||r},this.viewSection=t=>{this.currentParticipantsTabId=t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.participants.joined.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantsUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.stage.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("stageStatusUpdate",this.updateParticipantCountsInTabs))}meetingChanged(t){t&&(t.participants.joined.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.joined.on("participantsUpdate",this.updateParticipantCountsInTabs),t.participants.joined.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.joined.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.stage.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("stageStatusUpdate",this.updateParticipantCountsInTabs),this.updateParticipantCountsInTabs())}currentParticipantsTabIdChanged(){this.stateUpdate.emit({participantsTabId:this.currentParticipantsTabId}),this.updateParticipantCountsInTabs()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t};return i(a,null,i("div",{class:"search",part:"search"},i("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),i("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),i("slot",{name:"start"}),i("div",{class:"ctr scrollbar "+("requests"!==this.currentParticipantsTabId?"virtualised":""),part:"container"},i("rtk-sidebar-ui",{tabs:this.tabs,currentTab:this.currentParticipantsTabId,view:"full-screen",hideHeader:!0,hideCloseAction:!0,style:{position:"relative"},onTabChange:t=>{this.viewSection(t.detail),t.stopPropagation()}},(!this.currentParticipantsTabId||"stage-list"===this.currentParticipantsTabId)&&i("div",{slot:"stage-list",style:{marginTop:"10px",height:"100%"}},i("rtk-participants-stage-list",Object.assign({},t,{search:this.search,hideHeader:!0}))),"requests"===this.currentParticipantsTabId&&i("div",{slot:"requests",style:{marginTop:"10px",height:"100%"}},!this.hasRequests&&i("div",{class:"no-pending-requests"},this.t("participants.no_pending_requests")),i("rtk-participants-stage-queue",Object.assign({},t)),i("rtk-participants-waiting-list",Object.assign({},t))),"viewer-list"===this.currentParticipantsTabId&&i("div",{slot:"viewer-list",style:{marginTop:"10px",height:"100%"}},i("rtk-participants-viewer-list",Object.assign({},t,{search:this.search,hideHeader:!0}))))),i("slot",{name:"end"}))}static get watchers(){return{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged: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)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.ctr.virtualised{overflow-y:hidden}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}:host([size='md']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}:host([size='sm']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}.no-pending-requests{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}"}},[257,"rtk-participants",{meeting:[16],states:[16],config:[16],size:[513],iconPack:[16],defaultParticipantsTabId:[1,"default-participants-tab-id"],t:[16],currentParticipantsTabId:[32],tabs:[32],hasRequests:[32],search:[32]},void 0,{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}]);function _(){"undefined"!=typeof customElements&&["rtk-participants","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-participant","rtk-participants-stage-list","rtk-participants-stage-queue","rtk-participants-viewer-list","rtk-participants-waiting-list","rtk-sidebar-ui","rtk-spinner","rtk-tooltip","rtk-virtualized-participant-list"].forEach((t=>{switch(t){case"rtk-participants":customElements.get(e(t))||customElements.define(e(t),y);break;case"rtk-avatar":customElements.get(e(t))||l();break;case"rtk-button":customElements.get(e(t))||h();break;case"rtk-icon":customElements.get(e(t))||d();break;case"rtk-menu-item":customElements.get(e(t))||m();break;case"rtk-menu-list":customElements.get(e(t))||u();break;case"rtk-participant":customElements.get(e(t))||b();break;case"rtk-participants-stage-list":customElements.get(e(t))||g();break;case"rtk-participants-stage-queue":customElements.get(e(t))||k();break;case"rtk-participants-viewer-list":customElements.get(e(t))||v();break;case"rtk-participants-waiting-list":customElements.get(e(t))||f();break;case"rtk-sidebar-ui":customElements.get(e(t))||x();break;case"rtk-spinner":customElements.get(e(t))||E();break;case"rtk-tooltip":customElements.get(e(t))||w();break;case"rtk-virtualized-participant-list":customElements.get(e(t))||T()}}))}S([c()],y.prototype,"meeting",void 0),S([c()],y.prototype,"states",void 0),S([c()],y.prototype,"config",void 0),S([c()],y.prototype,"iconPack",void 0),S([c()],y.prototype,"t",void 0),_();const C=y,O=_;export{C as RtkParticipants,O as defineCustomElement}
|
|
1
|
+
import{p as t,H as r,c as s,h as a,d as i,t as e}from"./p-BBHQOrFK.js";import{c as o,e as n,i as p}from"./p-aXMUeMjU.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as c}from"./p-ByMjaTnP.js";import{d as l}from"./p-DAGCKEFc.js";import{d as h}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as m}from"./p-BjZJaxt1.js";import{d as u}from"./p-Ic4M6IZs.js";import{d as b}from"./p-BWLmBQB7.js";import{d as g}from"./p-BX3gY1PP.js";import{d as k}from"./p-DC-3Hg9I.js";import{d as v}from"./p-CxPXk2ws.js";import{d as f}from"./p-DuRlksIi.js";import{d as x}from"./p-BugzZ4hY.js";import{d as E}from"./p-Bc2jtNZw.js";import{d as w}from"./p-DHSRRtn3.js";import{d as j}from"./p-B_Wn0VnS.js";import{d as T}from"./p-DLocSBO3.js";var y=function(t,r,s,a){var i,e=arguments.length,o=e<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,s,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(e<3?i(o):e>3?i(r,s,o):i(r,s))||o);return e>3&&o&&Object.defineProperty(r,s,o),o};const S=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.config=o(),this.iconPack=n,this.defaultParticipantsTabId="stage-list",this.t=p(),this.currentParticipantsTabId=this.defaultParticipantsTabId,this.tabs=[],this.hasRequests=!1,this.search="",this.updateParticipantCountsInTabs=T((()=>{var t;let r=(null===(t=this.meeting.participants.waitlisted)||void 0===t?void 0:t.size)||0,s=0,i=0;this.meeting.participants.joined.toArray().forEach((t=>{"ON_STAGE"===t.stageStatus&&s++,"OFF_STAGE"===t.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(r++,i++),"ACCEPTED_TO_JOIN_STAGE"===t.stageStatus&&i++})),"ON_STAGE"===this.meeting.self.stageStatus&&s++,"OFF_STAGE"===this.meeting.self.stageStatus&&i++,"REQUESTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&(r++,i++),"ACCEPTED_TO_JOIN_STAGE"===this.meeting.self.stageStatus&&i++;const e=[];this.shouldShowRequestsTab()&&e.push({id:"requests",name:a("span",null,this.t("requests")," ",a("span",{class:`tab-participant-count-badge ${r>0?"requests-pending":""} ${"requests"===this.currentParticipantsTabId?"selected-tab":""}`},r))}),e.push({id:"stage-list",name:a("span",null,this.t("participants")," ",a("span",{class:"tab-participant-count-badge "+("stage-list"===this.currentParticipantsTabId?"selected-tab":"")},s))}),this.shouldShowViewersTab()&&e.push({id:"viewer-list",name:a("span",null,this.t("viewers")," ",a("span",{class:"tab-participant-count-badge "+("viewer-list"===this.currentParticipantsTabId?"selected-tab":"")},i))}),this.tabs=e,this.hasRequests=r>0})),this.onSearchInput=t=>{this.search=t.target.value},this.shouldShowViewersTab=()=>{var t,r,s;return null===(s=null===(r=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===r?void 0:r.permissions)||void 0===s?void 0:s.stageEnabled},this.shouldShowRequestsTab=()=>{var t;let r=!1;return r="LIVESTREAM"!==this.meeting.meta.viewType&&(null===(t=this.meeting.self.config.waitingRoom)||void 0===t?void 0:t.isEnabled)&&this.meeting.self.permissions.acceptWaitingRequests,this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests||r},this.viewSection=t=>{this.currentParticipantsTabId=t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.participants.joined.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantsUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.joined.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.stage.off("stageStatusUpdate",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantJoined",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("participantLeft",this.updateParticipantCountsInTabs),this.meeting.participants.waitlisted.off("stageStatusUpdate",this.updateParticipantCountsInTabs))}meetingChanged(t){t&&(t.participants.joined.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.joined.on("participantsUpdate",this.updateParticipantCountsInTabs),t.participants.joined.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.joined.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.stage.on("stageStatusUpdate",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantJoined",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("participantLeft",this.updateParticipantCountsInTabs),t.participants.waitlisted.on("stageStatusUpdate",this.updateParticipantCountsInTabs),this.updateParticipantCountsInTabs())}currentParticipantsTabIdChanged(){this.stateUpdate.emit({participantsTabId:this.currentParticipantsTabId}),this.updateParticipantCountsInTabs()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,config:this.config,size:this.size,iconPack:this.iconPack,t:this.t};return a(i,null,a("div",{class:"search",part:"search"},a("rtk-icon",{icon:this.iconPack.search,part:"search-icon"}),a("input",{type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),a("slot",{name:"start"}),a("div",{class:"ctr scrollbar "+("requests"!==this.currentParticipantsTabId?"virtualised":""),part:"container"},a("rtk-sidebar-ui",{tabs:this.tabs,currentTab:this.currentParticipantsTabId,view:"full-screen",hideHeader:!0,hideCloseAction:!0,style:{position:"relative"},onTabChange:t=>{this.viewSection(t.detail),t.stopPropagation()}},(!this.currentParticipantsTabId||"stage-list"===this.currentParticipantsTabId)&&a("div",{slot:"stage-list",style:{marginTop:"10px",height:"100%"}},a("rtk-participants-stage-list",Object.assign({},t,{search:this.search,hideHeader:!0}))),"requests"===this.currentParticipantsTabId&&a("div",{slot:"requests",style:{marginTop:"10px",height:"100%"}},!this.hasRequests&&a("div",{class:"no-pending-requests"},this.t("participants.no_pending_requests")),a("rtk-participants-stage-queue",Object.assign({},t)),a("rtk-participants-waiting-list",Object.assign({},t))),"viewer-list"===this.currentParticipantsTabId&&a("div",{slot:"viewer-list",style:{marginTop:"10px",height:"100%"}},a("rtk-participants-viewer-list",Object.assign({},t,{search:this.search,hideHeader:!0}))))),a("slot",{name:"end"}))}static get watchers(){return{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged: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)))}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}*{box-sizing:border-box}.ctr{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);box-sizing:border-box;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.ctr.virtualised{overflow-y:hidden}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}:host([size='md']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}:host([size='sm']) .search{margin-top:var(--rtk-space-4, 16px) !important;margin-bottom:var(--rtk-space-4, 16px) !important}.no-pending-requests{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}"}},[257,"rtk-participants",{meeting:[16],states:[16],config:[16],size:[513],iconPack:[16],defaultParticipantsTabId:[1,"default-participants-tab-id"],t:[16],currentParticipantsTabId:[32],tabs:[32],hasRequests:[32],search:[32]},void 0,{meeting:[{meetingChanged:0}],currentParticipantsTabId:[{currentParticipantsTabIdChanged:0}]}]);function I(){"undefined"!=typeof customElements&&["rtk-participants","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-participant","rtk-participants-stage-list","rtk-participants-stage-queue","rtk-participants-viewer-list","rtk-participants-waiting-list","rtk-sidebar-ui","rtk-spinner","rtk-tooltip","rtk-virtualized-participant-list"].forEach((t=>{switch(t){case"rtk-participants":customElements.get(e(t))||customElements.define(e(t),S);break;case"rtk-avatar":customElements.get(e(t))||l();break;case"rtk-button":customElements.get(e(t))||h();break;case"rtk-icon":customElements.get(e(t))||d();break;case"rtk-menu-item":customElements.get(e(t))||m();break;case"rtk-menu-list":customElements.get(e(t))||u();break;case"rtk-participant":customElements.get(e(t))||b();break;case"rtk-participants-stage-list":customElements.get(e(t))||g();break;case"rtk-participants-stage-queue":customElements.get(e(t))||k();break;case"rtk-participants-viewer-list":customElements.get(e(t))||v();break;case"rtk-participants-waiting-list":customElements.get(e(t))||f();break;case"rtk-sidebar-ui":customElements.get(e(t))||x();break;case"rtk-spinner":customElements.get(e(t))||E();break;case"rtk-tooltip":customElements.get(e(t))||w();break;case"rtk-virtualized-participant-list":customElements.get(e(t))||j()}}))}y([c()],S.prototype,"meeting",void 0),y([c()],S.prototype,"states",void 0),y([c()],S.prototype,"config",void 0),y([c()],S.prototype,"iconPack",void 0),y([c()],S.prototype,"t",void 0),I();const O=S,_=I;export{O as RtkParticipants,_ as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-C07P-YzZ.js";const p=o,r=s;export{p as RtkPermissionsMessage,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as s,d as o}from"./p-Ds5j-VXZ.js";const p=s,r=o;export{p as RtkPinnedMessageSelector,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as e,h as s,d as o,t as n}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as r,e as a,i as c}from"./p-
|
|
1
|
+
import{p as t,H as i,c as e,h as s,d as o,t as n}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{c as r,e as a,i as c}from"./p-aXMUeMjU.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as p}from"./p-ByMjaTnP.js";import{d as l}from"./p-BC__OeWi.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as h}from"./p-Bc2jtNZw.js";var d=function(t,i,e,s){var o,n=arguments.length,r=n<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,e,s);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(i,e,r):o(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const f=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.config=r(),this.iconPack=a,this.t=c(),this.pipSupported=!1}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){var i,e,s;t&&(this.pipSupported=(null===(i=t.participants.pip)||void 0===i?void 0:i.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode)&&"LIVESTREAM"!==(null===(s=t.self.config)||void 0===s?void 0:s.viewType))}togglePip(){this.meeting.participants.pip&&(this.meeting.participants.pip.isActive?this.meeting.participants.pip.disable():this.meeting.participants.pip.enable(),this.stateUpdate.emit({activeMoreMenu:!1}))}render(){if(!this.meeting)return null;if(!this.pipSupported)return s(o,{"data-hidden":!0});const t=this.meeting.participants.pip.isActive;return s(o,{role:"log","aria-label":"Picture-in-Picture mode"},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.togglePip(),icon:t?this.iconPack.pip_on:this.iconPack.pip_off,label:this.t(t?"pip_off":"pip_on"),variant:this.variant}))}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-pip-toggle",{variant:[513],meeting:[16],states:[16],config:[16],iconPack:[16],size:[513],t:[16],pipSupported:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-pip-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-pip-toggle":customElements.get(n(t))||customElements.define(n(t),f);break;case"rtk-controlbar-button":customElements.get(n(t))||l();break;case"rtk-icon":customElements.get(n(t))||m();break;case"rtk-spinner":customElements.get(n(t))||h()}}))}d([p()],f.prototype,"meeting",void 0),d([p()],f.prototype,"states",void 0),d([p()],f.prototype,"config",void 0),d([p()],f.prototype,"iconPack",void 0),d([p()],f.prototype,"t",void 0),u();const g=f,v=u;export{g as RtkPipToggle,v as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-GMH-Dp75.js";const s=o,r=p;export{s as RtkPluginMain,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as
|
|
1
|
+
import{p as t,H as s,c as i,h as e,d as n,t as a}from"./p-BBHQOrFK.js";import{e as o,i as l}from"./p-aXMUeMjU.js";import{b as r}from"./p-D9HGXWKc.js";import{S as c}from"./p-ByMjaTnP.js";import{d as h}from"./p-BC__OeWi.js";import{d}from"./p-BYIBbfJ8.js";import{d as u}from"./p-Bc2jtNZw.js";var g=function(t,s,i,e){var n,a=arguments.length,o=a<3?s:null===e?e=Object.getOwnPropertyDescriptor(s,i):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,e);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(a<3?n(o):a>3?n(s,i,o):n(s,i))||o);return a>3&&o&&Object.defineProperty(s,i,o),o};const p=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=o,this.t=l(),this.pluginsActive=!1,this.canViewPlugins=!1,this.updateCanView=()=>{this.canViewPlugins=r(this.meeting)}}disconnectedCallback(){var t,s,i,e;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.updateCanView),null===(e=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===e||e.permissions.removeListener("pluginsUpdate",this.updateCanView)}connectedCallback(){this.statesChanged(this.states),this.meetingChanged(this.meeting)}meetingChanged(t){var s,i;t&&(this.canViewPlugins=r(t),null===(s=null==t?void 0:t.stage)||void 0===s||s.on("stageStatusUpdate",this.updateCanView),null===(i=null==t?void 0:t.self)||void 0===i||i.permissions.addListener("pluginsUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pluginsActive=!0===t.activeSidebar&&"plugins"===t.sidebar)}togglePlugins(){const t=this.states;this.pluginsActive=!((null==t?void 0:t.activeSidebar)&&"plugins"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pluginsActive,sidebar:this.pluginsActive?"plugins":void 0,activeMoreMenu:!1})}handlePluginsActiveChange(){this.pluginsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPlugins)return e(n,{"data-hidden":!0});const t=this.t("plugins");return e(n,{title:t},e("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pluginsActive},onClick:()=>this.togglePlugins(),icon:this.iconPack.rocket,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pluginsActive:[{handlePluginsActiveChange: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-plugins-toggle",{variant:[513],meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],pluginsActive:[32],canViewPlugins:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pluginsActive:[{handlePluginsActiveChange:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-plugins-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-plugins-toggle":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-controlbar-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||d();break;case"rtk-spinner":customElements.get(a(t))||u()}}))}g([c()],p.prototype,"meeting",void 0),g([c()],p.prototype,"states",void 0),g([c()],p.prototype,"iconPack",void 0),g([c()],p.prototype,"t",void 0),m();const v=p,f=m;export{v as RtkPluginsToggle,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-oXCkwBKR.js";const p=o,r=s;export{p as RtkPlugins,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as r}from"./p-BGaDuggr.js";const s=o,a=r;export{s as RtkPollForm,a as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-CWxtbDEh.js";const t=o,p=s;export{t as RtkPoll,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,c as e,h as i,d as o,t as a}from"./p-BBHQOrFK.js";import{e as n,i as r}from"./p-
|
|
1
|
+
import{p as t,H as s,c as e,h as i,d as o,t as a}from"./p-BBHQOrFK.js";import{e as n,i as r}from"./p-aXMUeMjU.js";import{d as l}from"./p-D9HGXWKc.js";import{S as c}from"./p-ByMjaTnP.js";import{d as h}from"./p-BC__OeWi.js";import{d}from"./p-BYIBbfJ8.js";import{d as p}from"./p-Bc2jtNZw.js";var u=function(t,s,e,i){var o,a=arguments.length,n=a<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(a<3?o(n):a>3?o(s,e,n):o(s,e))||n);return a>3&&n&&Object.defineProperty(s,e,n),n};const v=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=r(),this.pollsActive=!1,this.unreadPollsCount=0,this.canViewPolls=!1,this.onPollsUpdate=({newPoll:t})=>{!0===t&&(this.unreadPollsCount+=1)},this.updateCanView=()=>{this.canViewPolls=l(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,s,e,i,o,a;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.polls)||void 0===s||s.removeListener("pollsUpdate",this.onPollsUpdate),null===(i=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===i||i.permissions.removeListener("pollsUpdate",this.updateCanView),null===(a=null===(o=this.meeting)||void 0===o?void 0:o.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.updateCanView)}meetingChanged(t){var s,e;t&&t.polls&&(this.unreadPollsCount=t.polls.items.length,this.meeting.polls.addListener("pollsUpdate",this.onPollsUpdate),null===(s=null==t?void 0:t.self)||void 0===s||s.permissions.addListener("pollsUpdate",this.updateCanView),this.canViewPolls=l(t),null===(e=null==t?void 0:t.stage)||void 0===e||e.on("stageStatusUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pollsActive=!0===t.activeSidebar&&"polls"===t.sidebar)}togglePollsTab(){const t=this.states;this.unreadPollsCount=0,this.pollsActive=!((null==t?void 0:t.activeSidebar)&&"polls"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pollsActive,sidebar:this.pollsActive?"polls":void 0,activeMoreMenu:!1})}handlePollsActiveChange(){this.pollsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPolls)return i(o,{"data-hidden":!0});const t=this.t("polls");return i(o,{title:t},0!==this.unreadPollsCount&&!this.pollsActive&&i("div",{class:"unread-count",part:"unread-count"},i("span",null,this.unreadPollsCount<=100?this.unreadPollsCount:"99+")),i("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pollsActive},onClick:()=>this.togglePollsTab(),icon:this.iconPack.poll,label:t,variant:this.variant}))}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;transform:translateY(-50%)}"}},[1,"rtk-polls-toggle",{variant:[513],meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],pollsActive:[32],unreadPollsCount:[32],canViewPolls:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],pollsActive:[{handlePollsActiveChange:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-polls-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-polls-toggle":customElements.get(a(t))||customElements.define(a(t),v);break;case"rtk-controlbar-button":customElements.get(a(t))||h();break;case"rtk-icon":customElements.get(a(t))||d();break;case"rtk-spinner":customElements.get(a(t))||p()}}))}u([c()],v.prototype,"meeting",void 0),u([c()],v.prototype,"states",void 0),u([c()],v.prototype,"iconPack",void 0),u([c()],v.prototype,"t",void 0),g();const m=v,b=g;export{m as RtkPollsToggle,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as s}from"./p-gBEnKt4T.js";const t=o,p=s;export{t as RtkPolls,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as i,d as a,t as r}from"./p-BBHQOrFK.js";import{i as n,e as s}from"./p-
|
|
1
|
+
import{p as t,H as e,h as i,d as a,t as r}from"./p-BBHQOrFK.js";import{i as n,e as s}from"./p-aXMUeMjU.js";import{S as c}from"./p-ByMjaTnP.js";import{d as o}from"./p-BYIBbfJ8.js";var d=function(t,e,i,a){var r,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const p=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.t=n(),this.iconPack=s,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"c4246e4721b0ca5fbc689a90688f1239df60ecad","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"ce19b3649bba8a91cd22770534762c932b934557",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"9d2ae89fef0d4e1e0d3546f765f48be8a6da6b5a",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"cedf044a1a96c164022d734be2baf7e568fb849e"},this.t("recording.label"))))}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}:host[size='sm']{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px)}.indicator{display:flex;flex-direction:row;align-items:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);animation:blink 4s linear infinite}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='sm']) .indicator span{display:none}@keyframes blink{0%,10%{opacity:0}11%,100%{opacity:1}}"}},[1,"rtk-recording-indicator",{meeting:[16],size:[513],t:[16],iconPack:[16],isRecording:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-recording-indicator","rtk-icon"].forEach((t=>{switch(t){case"rtk-recording-indicator":customElements.get(r(t))||customElements.define(r(t),p);break;case"rtk-icon":customElements.get(r(t))||o()}}))}d([c()],p.prototype,"meeting",void 0),d([c()],p.prototype,"t",void 0),d([c()],p.prototype,"iconPack",void 0),l();const h=p,f=l;export{h as RtkRecordingIndicator,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as
|
|
1
|
+
import{p as t,H as e,c as r,h as i,d as s,t as n}from"./p-BBHQOrFK.js";import{i as o,e as a}from"./p-aXMUeMjU.js";import{S as c}from"./p-ByMjaTnP.js";import{d as h}from"./p-BC__OeWi.js";import{d}from"./p-BYIBbfJ8.js";import{d as l}from"./p-Bc2jtNZw.js";var g=function(t,e,r,i){var s,n=arguments.length,o=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,r,o):s(e,r))||o);return n>3&&o&&Object.defineProperty(e,r,o),o};const u=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.apiError=r(this,"rtkApiError",7),this.variant="button",this.t=o(),this.iconPack=a,this.disabled=!1,this.canRecord=!1,this.permissionsUpdateListener=()=>{this.canRecord=!0===this.meeting.self.permissions.canRecord},this.toggleRecording=async()=>{var t,e,r;if(!this.isLoading()&&!this.disabled)switch(this.recordingState){case"IDLE":try{return void await(null===(t=this.meeting)||void 0===t?void 0:t.recording.start())}catch(t){const e="1005"===(null==t?void 0:t.code);this.apiError.emit({trace:this.t("recording.start"),message:this.t(e?"recording.error.already_recording":"recording.error.start")})}return;case"RECORDING":try{return void await(null===(e=this.meeting)||void 0===e?void 0:e.recording.stop())}catch(t){this.apiError.emit({trace:this.t("recording.stop"),message:this.t("recording.error.stop")})}return;case"PAUSED":try{return void await(null===(r=this.meeting)||void 0===r?void 0:r.recording.resume())}catch(t){this.apiError.emit({trace:this.t("recording.resume"),message:this.t("recording.error.resume")})}return;default:return}},this.isLoading=()=>!this.meeting||"STARTING"===this.recordingState||"STOPPING"===this.recordingState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e;this.recordingStateUpdateListener&&(null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.recordingStateUpdateListener)),null===(e=this.meeting)||void 0===e||e.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){null!=t&&(this.recordingState=t.recording.recordingState,this.permissionsUpdateListener(),this.recordingStateUpdateListener=t=>{this.recordingState=t},t.recording.addListener("recordingUpdate",this.recordingStateUpdateListener),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}getLabel(){switch(this.recordingState){case"IDLE":return"recording.idle";case"RECORDING":return"recording.stop";case"STARTING":return"recording.starting";case"STOPPING":return"recording.stopping";case"PAUSED":return"recording.resume";default:return"recording.loading"}}getIcon(){switch(this.recordingState){case"IDLE":case"STARTING":case"STOPPING":default:return this.iconPack.recording;case"RECORDING":return this.iconPack.stop_recording}}render(){return this.meeting?this.canRecord?i(s,{title:this.t("RECORDING"===this.recordingState?"recording.stop":"recording.idle")},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:this.toggleRecording,icon:this.getIcon(),isLoading:this.isLoading(),label:this.t(this.getLabel()),variant:this.variant,disabled:this.disabled})):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}"}},[1,"rtk-recording-toggle",{variant:[513],meeting:[16],t:[16],iconPack:[16],size:[513],disabled:[4],recordingState:[32],canRecord:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-recording-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-recording-toggle":customElements.get(n(t))||customElements.define(n(t),u);break;case"rtk-controlbar-button":customElements.get(n(t))||h();break;case"rtk-icon":customElements.get(n(t))||d();break;case"rtk-spinner":customElements.get(n(t))||l()}}))}g([c()],u.prototype,"meeting",void 0),g([c()],u.prototype,"t",void 0),g([c()],u.prototype,"iconPack",void 0),m();const p=u,f=m;export{p as RtkRecordingToggle,f 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 h}from"./p-D4GSX-co.js";import{S as o}from"./p-C8uVSyiQ.js";import{d as c}from"./p-B8oiDtR2.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-D9p14DJ_.js";import{d as p}from"./p-Bki9SL7E.js";import{d as m}from"./p-BDVl60pn.js";import{d as u}from"./p-CMjUxdV6.js";import{d as k}from"./p-DHSRRtn3.js";var g=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 h=t.length-1;h>=0;h--)(r=t[h])&&(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 b=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,S=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=h(),this.maxScreenShareCount=-1,this.screenShareCount=0,this.screenShareEnabled=!1,this.canScreenShare=!1,this.shareScreenPermission="NOT_REQUESTED",this.screenShareState={tooltipLabel:this.t("screenshare.start"),label:this.t("screenshare.start"),icon:this.iconPack.share_screen_start,classList:{},showWarning:!1,disable:!1},this.stageStatus="OFF_STAGE",this.screenShareListener=()=>{const t=this.meeting.participants.active.toArray().filter((t=>t.screenShareEnabled)).length;this.screenShareCount=t+(this.meeting.self.screenShareEnabled?1:0),this.screenShareEnabled=this.meeting.self.screenShareEnabled,this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}})},this.participantLeftListener=({screenShareEnabled:t})=>{t&&(this.screenShareCount=Math.max(this.screenShareCount-1,0),this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}}))},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{"screenshare"===t&&(this.shareScreenPermission=e,this.getState(),"COULD_NOT_START"===e&&this.apiError.emit({trace:this.t("screenshare.permissions"),message:this.t("screenshare.error.unknown")}),this.hasPermissionError())&&this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}})},this.reachedMaxScreenShares=()=>this.maxScreenShareCount>0&&this.screenShareCount>=this.maxScreenShareCount,this.stopScreenShare=()=>{var t;this.screenShareState.disable||(null===(t=this.meeting)||void 0===t||t.self.disableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1}))},this.enableScreenShare=async()=>{if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const t=this.meeting,e=null==t?void 0:t.self;if(null!=e&&this.canScreenShare&&(!this.reachedMaxScreenShares()||this.screenShareEnabled)&&!this.hasPermissionError()){this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0});try{await e.enableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1})}catch(e){t.__internals__.logger.error("rtkScreenShare::enableScreenShare",{error:e})}finally{this.getState()}}},this.handleMenuItemKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget instanceof e&&t.currentTarget.click())}}connectedCallback(){b()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,e,s,i,r,a;null===(t=this.meeting)||void 0===t||t.participants.joined.removeListener("screenShareUpdate",this.screenShareListener),null===(e=this.meeting)||void 0===e||e.participants.joined.removeListener("participantLeft",this.participantLeftListener),null===(s=this.meeting)||void 0===s||s.self.removeListener("screenShareUpdate",this.screenShareListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(r=this.meeting)||void 0===r?void 0:r.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:e,stage:s}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=e.config.maxScreenShareCount,this.screenShareEnabled=e.screenShareEnabled;let i=0;for(const e of t.participants.joined.toArray())e.screenShareEnabled&&i++;this.screenShareCount=i,this.getState(),t.__internals__.logger.info("rtkScreenShare::initialise",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount,maxAllowedCount:this.maxScreenShareCount}}}),this.stageStatus=t.stage.status,t.participants.joined.addListener("screenShareUpdate",this.screenShareListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),e.addListener("screenShareUpdate",this.screenShareListener),e.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==s||s.addListener("stageStatusUpdate",this.stageStatusListener)}}screenShareAppearanceChanged(){this.getState()}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){var t;let e="",s="",i="",r={};const a=this.hasPermissionError()&&!this.screenShareEnabled,n=this.reachedMaxScreenShares()&&!this.screenShareEnabled,h="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!a?(s=this.t("screenshare.menu"),i=null!==(t=this.iconPack.share_screen_menu)&&void 0!==t?t:this.iconPack.share_screen_stop):(s=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(e=this.t("perm_sys_denied.screenshare"),r["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(e=this.t("perm_denied.screenshare"),r["red-icon"]=!0):e=s,n&&(e=this.t("screenshare.error.max_count")),h&&(e=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:e,label:s,icon:i,classList:r,disable:a||n,showWarning:a||n||h}}render(){var t;if(!b()||!this.canScreenShare||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return i(r,{"data-hidden":!0});const e=i("rtk-tooltip",{slot:this.screenShareEnabled?"trigger":void 0,placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",title:this.screenShareState.label,size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.screenShareEnabled?void 0:this.enableScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}));return i(r,null,this.screenShareEnabled?i("rtk-menu",{placement:"top",size:this.size,iconPack:this.iconPack,t:this.t},e,i("rtk-menu-list",{iconPack:this.iconPack,t:this.t},i("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.share_different_screen"),onClick:this.enableScreenShare,onKeyDown:this.handleMenuItemKeyDown},i("rtk-icon",{icon:null!==(t=this.iconPack.share_screen_different)&&void 0!==t?t:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),i("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.stop"),onClick:this.stopScreenShare,onKeyDown:this.handleMenuItemKeyDown},i("rtk-icon",{icon:this.iconPack.share_screen_stop,variant:"danger",slot:"start"}),this.t("screenshare.stop")))):e)}static get watchers(){return{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged: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}rtk-menu{display:block}rtk-menu-list{max-width:calc(100vw - 24px)}rtk-menu-item{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 rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-shrink:0}:host([data-hidden]){display:none}"}},[1,"rtk-screen-share-toggle",{states:[16],variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],maxScreenShareCount:[32],screenShareCount:[32],screenShareEnabled:[32],canScreenShare:[32],shareScreenPermission:[32],screenShareState:[32],stageStatus:[32]},void 0,{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-screen-share-toggle","rtk-controlbar-button","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screen-share-toggle":customElements.get(a(t))||customElements.define(a(t),S);break;case"rtk-controlbar-button":customElements.get(a(t))||c();break;case"rtk-icon":customElements.get(a(t))||l();break;case"rtk-menu":customElements.get(a(t))||d();break;case"rtk-menu-item":customElements.get(a(t))||p();break;case"rtk-menu-list":customElements.get(a(t))||m();break;case"rtk-spinner":customElements.get(a(t))||u();break;case"rtk-tooltip":customElements.get(a(t))||k()}}))}g([o()],S.prototype,"states",void 0),g([o()],S.prototype,"meeting",void 0),g([o()],S.prototype,"iconPack",void 0),g([o()],S.prototype,"t",void 0),f();const v=S,E=f;export{v as RtkScreenShareToggle,E as defineCustomElement}
|
|
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 h}from"./p-aXMUeMjU.js";import{S as o}from"./p-ByMjaTnP.js";import{d as c}from"./p-BC__OeWi.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p--EktoJd3.js";import{d as p}from"./p-BjZJaxt1.js";import{d as m}from"./p-Ic4M6IZs.js";import{d as k}from"./p-Bc2jtNZw.js";import{d as u}from"./p-DHSRRtn3.js";var g=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 h=t.length-1;h>=0;h--)(r=t[h])&&(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 b=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,f=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=h(),this.maxScreenShareCount=-1,this.screenShareCount=0,this.screenShareEnabled=!1,this.canScreenShare=!1,this.shareScreenPermission="NOT_REQUESTED",this.screenShareState={tooltipLabel:this.t("screenshare.start"),label:this.t("screenshare.start"),icon:this.iconPack.share_screen_start,classList:{},showWarning:!1,disable:!1},this.stageStatus="OFF_STAGE",this.screenShareListener=()=>{const t=this.meeting.participants.active.toArray().filter((t=>t.screenShareEnabled)).length;this.screenShareCount=t+(this.meeting.self.screenShareEnabled?1:0),this.screenShareEnabled=this.meeting.self.screenShareEnabled,this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}})},this.participantLeftListener=({screenShareEnabled:t})=>{t&&(this.screenShareCount=Math.max(this.screenShareCount-1,0),this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}}))},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{"screenshare"===t&&(this.shareScreenPermission=e,this.getState(),"COULD_NOT_START"===e&&this.apiError.emit({trace:this.t("screenshare.permissions"),message:this.t("screenshare.error.unknown")}),this.hasPermissionError())&&this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}})},this.reachedMaxScreenShares=()=>this.maxScreenShareCount>0&&this.screenShareCount>=this.maxScreenShareCount,this.stopScreenShare=()=>{var t;this.screenShareState.disable||(null===(t=this.meeting)||void 0===t||t.self.disableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1}))},this.enableScreenShare=async()=>{if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const t=this.meeting,e=null==t?void 0:t.self;if(null!=e&&this.canScreenShare&&(!this.reachedMaxScreenShares()||this.screenShareEnabled)&&!this.hasPermissionError()){this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0});try{await e.enableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1})}catch(e){t.__internals__.logger.error("rtkScreenShare::enableScreenShare",{error:e})}finally{this.getState()}}},this.handleMenuItemKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget instanceof e&&t.currentTarget.click())}}connectedCallback(){b()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,e,s,i,r,a;null===(t=this.meeting)||void 0===t||t.participants.joined.removeListener("screenShareUpdate",this.screenShareListener),null===(e=this.meeting)||void 0===e||e.participants.joined.removeListener("participantLeft",this.participantLeftListener),null===(s=this.meeting)||void 0===s||s.self.removeListener("screenShareUpdate",this.screenShareListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(r=this.meeting)||void 0===r?void 0:r.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:e,stage:s}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=e.config.maxScreenShareCount,this.screenShareEnabled=e.screenShareEnabled;let i=0;for(const e of t.participants.joined.toArray())e.screenShareEnabled&&i++;this.screenShareCount=i,this.getState(),t.__internals__.logger.info("rtkScreenShare::initialise",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount,maxAllowedCount:this.maxScreenShareCount}}}),this.stageStatus=t.stage.status,t.participants.joined.addListener("screenShareUpdate",this.screenShareListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),e.addListener("screenShareUpdate",this.screenShareListener),e.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==s||s.addListener("stageStatusUpdate",this.stageStatusListener)}}screenShareAppearanceChanged(){this.getState()}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){var t;let e="",s="",i="",r={};const a=this.hasPermissionError()&&!this.screenShareEnabled,n=this.reachedMaxScreenShares()&&!this.screenShareEnabled,h="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!a?(s=this.t("screenshare.menu"),i=null!==(t=this.iconPack.share_screen_menu)&&void 0!==t?t:this.iconPack.share_screen_stop):(s=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(e=this.t("perm_sys_denied.screenshare"),r["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(e=this.t("perm_denied.screenshare"),r["red-icon"]=!0):e=s,n&&(e=this.t("screenshare.error.max_count")),h&&(e=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:e,label:s,icon:i,classList:r,disable:a||n,showWarning:a||n||h}}render(){var t;if(!b()||!this.canScreenShare||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return i(r,{"data-hidden":!0});const e=i("rtk-tooltip",{slot:this.screenShareEnabled?"trigger":void 0,placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",title:this.screenShareState.label,size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.screenShareEnabled?void 0:this.enableScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}));return i(r,null,this.screenShareEnabled?i("rtk-menu",{placement:"top",size:this.size,iconPack:this.iconPack,t:this.t},e,i("rtk-menu-list",{iconPack:this.iconPack,t:this.t},i("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.share_different_screen"),onClick:this.enableScreenShare,onKeyDown:this.handleMenuItemKeyDown},i("rtk-icon",{icon:null!==(t=this.iconPack.share_screen_different)&&void 0!==t?t:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),i("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.stop"),onClick:this.stopScreenShare,onKeyDown:this.handleMenuItemKeyDown},i("rtk-icon",{icon:this.iconPack.share_screen_stop,variant:"danger",slot:"start"}),this.t("screenshare.stop")))):e)}static get watchers(){return{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged: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}rtk-menu{display:block}rtk-menu-list{max-width:calc(100vw - 24px)}rtk-menu-item{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 rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-shrink:0}:host([data-hidden]){display:none}"}},[1,"rtk-screen-share-toggle",{states:[16],variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],maxScreenShareCount:[32],screenShareCount:[32],screenShareEnabled:[32],canScreenShare:[32],shareScreenPermission:[32],screenShareState:[32],stageStatus:[32]},void 0,{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged:0}]}]);function S(){"undefined"!=typeof customElements&&["rtk-screen-share-toggle","rtk-controlbar-button","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screen-share-toggle":customElements.get(a(t))||customElements.define(a(t),f);break;case"rtk-controlbar-button":customElements.get(a(t))||c();break;case"rtk-icon":customElements.get(a(t))||l();break;case"rtk-menu":customElements.get(a(t))||d();break;case"rtk-menu-item":customElements.get(a(t))||p();break;case"rtk-menu-list":customElements.get(a(t))||m();break;case"rtk-spinner":customElements.get(a(t))||k();break;case"rtk-tooltip":customElements.get(a(t))||u()}}))}g([o()],f.prototype,"states",void 0),g([o()],f.prototype,"meeting",void 0),g([o()],f.prototype,"iconPack",void 0),g([o()],f.prototype,"t",void 0),S();const v=f,E=S;export{v as RtkScreenShareToggle,E as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as a,w as i,h as r,d as s,t as o}from"./p-BBHQOrFK.js";import{e as n,i as c}from"./p-D4GSX-co.js";import{i as d,r as l,e as p,a as h}from"./p-GSFejkz7.js";import{S as f}from"./p-C8uVSyiQ.js";import{d as k}from"./p-D6vw6bT2.js";import{d as g}from"./p-BYIBbfJ8.js";import{d as b}from"./p-DHSRRtn3.js";var v=function(t,e,a,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,a,o):r(e,a))||o);return s>3&&o&&Object.defineProperty(e,a,o),o};const m=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=a(this,"rtkStateUpdate",7),this.play=a(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=d()},this.participantScreenshareUpdate=t=>{t.id===this.participant.id&&this.screenShareListener(t)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=n,this.t=c(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isSwitchingScreen=!1,this.isFullScreen=!1,this.shareDifferentScreen=async()=>{const t=this.meeting;if(null!=t&&!this.isSwitchingScreen){this.isSwitchingScreen=!0;try{await t.self.enableScreenShare()}catch(e){t.__internals__.logger.error("rtkScreenshareView::shareDifferentScreen",{error:e})}finally{this.isSwitchingScreen=!1}}},this.toggleFullScreen=()=>{this.isFullScreen?(p(),this.isFullScreen=!1):(l(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:t}=this.meeting;this.participant.id===t.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t){if(null!=t&&this.meeting){const{self:e}=this.meeting;this.screenShareListener=({screenShareEnabled:t,screenShareTracks:e})=>{const a=t&&null!=e.video;if(i((()=>{this.screenShareEnabled=a})),a){const t=new MediaStream;t.addTrack(e.video),null!=this.videoEl&&(this.videoEl.srcObject=t,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(t),t.id===e.id?t.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var t,e,a;const i=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(e=this.meeting)||void 0===e?void 0:e.self.id),o=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),n=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return r(s,{key:"0de66f829d0426af746b72561e7470c50c703060",class:{isSelf:i}},r("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},r("video",{key:"2e56da582533ee6a8286483fa4495ff9a88453a0",ref:t=>this.videoEl=t,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:"screen-share-video-"+this.participant.id})),r("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!i&&h()&&r("rtk-tooltip",{key:"7cd30b509e71685bb28615fd0eeb289764bc6f4b",label:o},r("rtk-button",{key:"0610dd55ad5a29cdbb77c61ed024253a70c66020",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:o},r("rtk-icon",{key:"1ea3a04938cb5836afcf171fa881916f1a63da79",icon:n,"aria-hidden":!0,tabIndex:-1})))),i&&r("div",{id:"self-message",key:"self-message"},r("h3",{key:"4758cad86ab2453cbfbf9276e9db8f4f45889e4a"},this.t("screenshare.shared")),r("div",{key:"136f80c0f74bbc9d860dfc9a5f2f04531dc9fe80",class:"actions"},null!=this.meeting&&r("rtk-button",{key:"2588174e0054805565c0ae9d3d7001d812c25d6c",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},r("rtk-icon",{key:"10de1c2c538cc069d5ea9c4a8e89699cdb06e970",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),null!=this.meeting&&r("rtk-button",{key:"916802524a950adadd39eac97660d05034840a8b",variant:"secondary",disabled:this.isSwitchingScreen,onClick:this.shareDifferentScreen},r("rtk-icon",{key:"5142a5fe580a7c900d7435e5c638bef0533a289b",icon:null!==(a=this.iconPack.share_screen_different)&&void 0!==a?a:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),r("rtk-button",{key:"6b024ca8b2b537b84862f96f35ab1e2a9832c974",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},r("rtk-icon",{key:"aef5ba226ba681c6ec6d11f0ac78c03329a88f27",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),r("slot",{key:"f21ad85d1847864f268d1fa33235467f14de2420"}))}get host(){return this}static get watchers(){return{participant:[{participantChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{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)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}"}},[257,"rtk-screenshare-view",{hideFullScreenButton:[4,"hide-full-screen-button"],nameTagPosition:[513,"name-tag-position"],participant:[16],meeting:[16],variant:[513],size:[513],iconPack:[16],t:[16],videoExpanded:[32],screenShareEnabled:[32],isSwitchingScreen:[32],isFullScreen:[32],remoteControlInfo:[32]},void 0,{participant:[{participantChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-screenshare-view","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screenshare-view":customElements.get(o(t))||customElements.define(o(t),m);break;case"rtk-button":customElements.get(o(t))||k();break;case"rtk-icon":customElements.get(o(t))||g();break;case"rtk-tooltip":customElements.get(o(t))||b()}}))}v([f()],m.prototype,"meeting",void 0),v([f()],m.prototype,"iconPack",void 0),v([f()],m.prototype,"t",void 0),u();const x=m,w=u;export{x as RtkScreenshareView,w as defineCustomElement}
|
|
1
|
+
import{p as t,H as e,c as a,w as i,h as r,d as s,t as o}from"./p-BBHQOrFK.js";import{e as n,i as c}from"./p-aXMUeMjU.js";import{i as d,r as l,e as p,a as h}from"./p-GSFejkz7.js";import{S as b}from"./p-ByMjaTnP.js";import{d as f}from"./p-D6vw6bT2.js";import{d as k}from"./p-BYIBbfJ8.js";import{d as g}from"./p-DHSRRtn3.js";var v=function(t,e,a,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,a,o):r(e,a))||o);return s>3&&o&&Object.defineProperty(e,a,o),o};const m=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=a(this,"rtkStateUpdate",7),this.play=a(this,"screensharePlay",7),this.screenShareListener=({screenShareEnabled:t,screenShareTracks:e})=>{const a=t&&null!=e.video;i((()=>{this.screenShareEnabled=a}))},this.onVideoRef=t=>{var e;null!=t&&t!==this.videoEl&&(this.videoEl=t,null===(e=this.participant)||void 0===e||e.registerScreenshareVideoElement(t))},this.fullScreenListener=()=>{this.isFullScreen=d()},this.participantScreenshareUpdate=t=>{t.id===this.participant.id&&this.screenShareListener(t)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=n,this.t=c(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isSwitchingScreen=!1,this.isFullScreen=!1,this.shareDifferentScreen=async()=>{const t=this.meeting;if(null!=t&&!this.isSwitchingScreen){this.isSwitchingScreen=!0;try{await t.self.enableScreenShare()}catch(e){t.__internals__.logger.error("rtkScreenshareView::shareDifferentScreen",{error:e})}finally{this.isSwitchingScreen=!1}}},this.toggleFullScreen=()=>{this.isFullScreen?(p(),this.isFullScreen=!1):(l(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener),this.participantChanged(this.participant)}disconnectedCallback(){this.cleanupParticipant(this.participant),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t,e){this.cleanupParticipant(e),null!=t&&(this.videoEl&&t.registerScreenshareVideoElement(this.videoEl),this.meeting&&(this.screenShareListener(t),t.id===this.meeting.self.id?t.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)))}cleanupParticipant(t){null!=t&&(this.videoEl&&t.deregisterScreenshareVideoElement(this.videoEl),this.meeting&&(t.id===this.meeting.self.id?t.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate)))}render(){var t,e,a;const i=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(e=this.meeting)||void 0===e?void 0:e.self.id),o=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),n=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return r(s,{key:"194efb9fa8783a441c8050ebab07a2d3546446bf",class:{isSelf:i}},r("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},r("video",{key:"de008c1a856ba19e766c03b71b1be492a9975261",ref:this.onVideoRef,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:"screen-share-video-"+this.participant.id})),r("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!i&&h()&&r("rtk-tooltip",{key:"bf9a96bcba99bb9cf13bbcf572e5a9b71d53498b",label:o},r("rtk-button",{key:"06a5eb9396056114d9e1a339454e782b9c533a9b",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:o},r("rtk-icon",{key:"fa4e499769a910ceb9b2bffa6668db83adbad135",icon:n,"aria-hidden":!0,tabIndex:-1})))),i&&r("div",{id:"self-message",key:"self-message"},r("h3",{key:"1650592e64dd44004a53ccc168ab7138c78ea7f4"},this.t("screenshare.shared")),r("div",{key:"d09216ab62012e1d2d445b8f080ae18786fc197e",class:"actions"},null!=this.meeting&&r("rtk-button",{key:"f4e8c65eaaf40190eb566eb473d7932411731793",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},r("rtk-icon",{key:"215fd1e658442e6f9c70ee5f7cabcd22e0901886",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),null!=this.meeting&&r("rtk-button",{key:"a73b3774901661020ef20e9e48dc81a4277cc471",variant:"secondary",disabled:this.isSwitchingScreen,onClick:this.shareDifferentScreen},r("rtk-icon",{key:"f9a4304e8cb648f5f2ca6ee650f6b512e86f1833",icon:null!==(a=this.iconPack.share_screen_different)&&void 0!==a?a:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),r("rtk-button",{key:"b2f93bd50018b9a727860014d0d4c33ab8a23334",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},r("rtk-icon",{key:"40d5bb9a3dfc648035b946ced0c584b3a6312100",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),r("slot",{key:"a2908fef4320f0bf4408a6a07d2ba4bea0acdc4c"}))}get host(){return this}static get watchers(){return{participant:[{participantChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{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)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}"}},[257,"rtk-screenshare-view",{hideFullScreenButton:[4,"hide-full-screen-button"],nameTagPosition:[513,"name-tag-position"],participant:[16],meeting:[16],variant:[513],size:[513],iconPack:[16],t:[16],videoExpanded:[32],screenShareEnabled:[32],isSwitchingScreen:[32],isFullScreen:[32],remoteControlInfo:[32]},void 0,{participant:[{participantChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-screenshare-view","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screenshare-view":customElements.get(o(t))||customElements.define(o(t),m);break;case"rtk-button":customElements.get(o(t))||f();break;case"rtk-icon":customElements.get(o(t))||k();break;case"rtk-tooltip":customElements.get(o(t))||g()}}))}v([b()],m.prototype,"meeting",void 0),v([b()],m.prototype,"iconPack",void 0),v([b()],m.prototype,"t",void 0),u();const x=m,w=u;export{x as RtkScreenshareView,w as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-BBRpBb3D.js";const s=o,r=p;export{s as RtkSettingsAudio,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,c as e,h as
|
|
1
|
+
import{p as t,H as s,c as e,h as i,d as o,t as n}from"./p-BBHQOrFK.js";import{e as r,i as a}from"./p-aXMUeMjU.js";import{S as c}from"./p-ByMjaTnP.js";import{d as f}from"./p-BC__OeWi.js";import{d as l}from"./p-BYIBbfJ8.js";import{d as m}from"./p-Bc2jtNZw.js";var p=function(t,s,e,i){var o,n=arguments.length,r=n<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(n<3?o(r):n>3?o(s,e,r):o(s,e))||r);return n>3&&r&&Object.defineProperty(s,e,r),r};const d=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=r,this.t=a()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return i(o,{key:"ad7c5414e325d5ae40fd9d9c60d2cfe3a087205f",title:t},i("rtk-controlbar-button",{key:"4fd29a108fd3eff57cc3ab9069284dd72b703c71",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}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-settings-toggle",{variant:[513],states:[16],size:[513],iconPack:[16],t:[16]}]);function k(){"undefined"!=typeof customElements&&["rtk-settings-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-settings-toggle":customElements.get(n(t))||customElements.define(n(t),d);break;case"rtk-controlbar-button":customElements.get(n(t))||f();break;case"rtk-icon":customElements.get(n(t))||l();break;case"rtk-spinner":customElements.get(n(t))||m()}}))}p([c()],d.prototype,"states",void 0),p([c()],d.prototype,"iconPack",void 0),p([c()],d.prototype,"t",void 0),k();const u=d,b=k;export{u as RtkSettingsToggle,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-B2EHfWpD.js";const s=o,r=p;export{s as RtkSettingsVideo,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as o,h as s,d as i,t as a}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-D4GSX-co.js";import{S as c}from"./p-C8uVSyiQ.js";import{d}from"./p-GyIcfxbi.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-B5VTCZYP.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-CcwCRJb3.js";import{d as k}from"./p-C2sFSKW3.js";import{d as u}from"./p-BSNjo06h.js";import{d as g}from"./p-G-tM5Cb1.js";import{d as m}from"./p-lZCkNPO8.js";import{d as v}from"./p-DybK0cgl.js";var w=function(t,r,o,s){var i,a=arguments.length,e=a<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(e=(a<3?i(e):a>3?i(r,o,e):i(r,o))||e);return a>3&&e&&Object.defineProperty(r,o,e),e};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(i,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},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)}.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{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--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)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--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);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;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}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(a(t))||customElements.define(a(t),f);break;case"rtk-audio-visualizer":customElements.get(a(t))||d();break;case"rtk-button":customElements.get(a(t))||l();break;case"rtk-camera-selector":customElements.get(a(t))||p();break;case"rtk-icon":customElements.get(a(t))||b();break;case"rtk-microphone-selector":customElements.get(a(t))||h();break;case"rtk-participant-tile":customElements.get(a(t))||k();break;case"rtk-settings-audio":customElements.get(a(t))||u();break;case"rtk-settings-video":customElements.get(a(t))||g();break;case"rtk-speaker-selector":customElements.get(a(t))||m();break;case"rtk-switch":customElements.get(a(t))||v()}}))}w([c()],f.prototype,"meeting",void 0),w([c()],f.prototype,"states",void 0),w([c()],f.prototype,"iconPack",void 0),w([c()],f.prototype,"t",void 0),x();const y=f,j=x;export{y as RtkSettings,j as defineCustomElement}
|
|
1
|
+
import{p as t,H as r,c as o,h as s,d as a,t as i}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-aXMUeMjU.js";import{S as c}from"./p-ByMjaTnP.js";import{d}from"./p-msSLVaDl.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-CGVMdadq.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-DalLUQa1.js";import{d as k}from"./p-CiX87kt0.js";import{d as u}from"./p-BBRpBb3D.js";import{d as g}from"./p-B2EHfWpD.js";import{d as m}from"./p-C8IQnQjR.js";import{d as v}from"./p-CH7w_Zrp.js";var w=function(t,r,o,s){var a,i=arguments.length,e=i<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(e=(i<3?a(e):i>3?a(r,o,e):a(r,o))||e);return i>3&&e&&Object.defineProperty(r,o,e),e};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(a,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},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)}.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{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--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)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--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);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;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}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(i(t))||customElements.define(i(t),f);break;case"rtk-audio-visualizer":customElements.get(i(t))||d();break;case"rtk-button":customElements.get(i(t))||l();break;case"rtk-camera-selector":customElements.get(i(t))||p();break;case"rtk-icon":customElements.get(i(t))||b();break;case"rtk-microphone-selector":customElements.get(i(t))||h();break;case"rtk-participant-tile":customElements.get(i(t))||k();break;case"rtk-settings-audio":customElements.get(i(t))||u();break;case"rtk-settings-video":customElements.get(i(t))||g();break;case"rtk-speaker-selector":customElements.get(i(t))||m();break;case"rtk-switch":customElements.get(i(t))||v()}}))}w([c()],f.prototype,"meeting",void 0),w([c()],f.prototype,"states",void 0),w([c()],f.prototype,"iconPack",void 0),w([c()],f.prototype,"t",void 0),x();const y=f,j=x;export{y as RtkSettings,j as defineCustomElement}
|