@cloudflare/realtimekit-ui 2.2.0-staging.2 → 2.2.0-staging.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/cjs/{TextMessage-BA97TnvX.js → TextMessage-C_OMdhOv.js} +1 -1
- package/dist/cjs/{chat-NY588mAE.js → chat-2G70V8h1.js} +1 -1
- package/dist/cjs/{config-Chzt-h7l.js → config-DNVD4for.js} +2 -2
- package/dist/cjs/{debounce-CoFZKdWb.js → debounce-CZxcmrOw.js} +1 -1
- package/dist/cjs/{index-BeKaBV5F.js → index-bphCu7Kc.js} +1 -1
- 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_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +9 -9
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
- package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +6 -6
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-header.cjs.entry.js +2 -2
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
- package/dist/cjs/rtk-notifications.cjs.entry.js +26 -4
- package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant_2.cjs.entry.js +5 -5
- 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 +347 -34
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +3 -3
- package/dist/cjs/rtk-switch.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +2 -2
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
- package/dist/cjs/{ui-kit-metadata-zBJ8NnVE.js → ui-kit-metadata-Db62SilF.js} +2 -2
- package/dist/cjs/{ui-store-DSyXGfDZ.js → ui-store-XdzekVqK.js} +4 -0
- package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
- package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +1 -1
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
- package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
- package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
- package/dist/collection/components/rtk-header/rtk-header.js +1 -1
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
- package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
- package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
- package/dist/collection/components/rtk-notification/rtk-notification.js +1 -1
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +24 -2
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
- package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
- package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +1 -1
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
- package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
- package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +210 -0
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +371 -37
- package/dist/collection/components/rtk-settings/rtk-settings.js +1 -1
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +1 -1
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +2 -2
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +1 -1
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +1 -1
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +1 -1
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +1 -1
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +1 -1
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +1 -1
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +3 -3
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
- package/dist/collection/components/rtk-stage/rtk-stage.js +2 -2
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
- package/dist/collection/components/rtk-switch/rtk-switch.js +2 -2
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +1 -1
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +2 -2
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +3 -3
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +2 -2
- package/dist/collection/lib/lang/default-language.js +4 -0
- package/dist/collection/utils/ui-kit-metadata.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-ByMjaTnP.js → p-16s5ZSAZ.js} +1 -1
- package/dist/components/{p-Bjx68Nkv.js → p-B2HJVmyW.js} +1 -1
- package/dist/components/{p-CXDRC8Nb.js → p-BDBQ3yNX.js} +1 -1
- package/dist/components/p-BDZmvSZ5.js +1 -0
- package/dist/components/{p-xLck_VlO.js → p-BIkikWuB.js} +1 -1
- package/dist/components/{p-BNjHUNwU.js → p-BMEVA63X.js} +1 -1
- package/dist/components/{p-ifBo9NHb.js → p-BOs3IQB-.js} +1 -1
- package/dist/components/p-BWM_mzxz.js +1 -0
- package/dist/components/{p-BBRpBb3D.js → p-BX-q0U6y.js} +1 -1
- package/dist/components/{p-GtIz3u0L.js → p-BeeuQPMZ.js} +1 -1
- package/dist/components/{p-BWLmBQB7.js → p-Bev5JWZ0.js} +1 -1
- package/dist/components/{p-BjG7yuwj.js → p-BpMexaGX.js} +1 -1
- package/dist/components/{p--F3BGV0E.js → p-BrWD_P9J.js} +1 -1
- package/dist/components/{p-CWxtbDEh.js → p-BxJT0iOj.js} +1 -1
- package/dist/components/{p-oXCkwBKR.js → p-BxM6yQDX.js} +1 -1
- package/dist/components/{p-DAq4FN_d.js → p-C27_nsxU.js} +1 -1
- package/dist/components/{p-CiX87kt0.js → p-C78m8FSo.js} +1 -1
- package/dist/components/{p-CM3Y2kOg.js → p-C7kzxj2U.js} +1 -1
- package/dist/components/{p-DUIWB0ra.js → p-CAePd-oD.js} +1 -1
- package/dist/components/{p-B2EHfWpD.js → p-CBBiuExR.js} +1 -1
- package/dist/components/{p-CkNlX5-Y.js → p-CCcFJzS9.js} +1 -1
- package/dist/components/{p-BeWjGx1n.js → p-CNRlJgcv.js} +1 -1
- package/dist/components/{p-CH7w_Zrp.js → p-CSQnL_EP.js} +1 -1
- package/dist/components/{p-BX3gY1PP.js → p-CSdpb5b3.js} +1 -1
- package/dist/components/{p-B6IcTqkN.js → p-CT1iNAdo.js} +1 -1
- package/dist/components/{p-CHSH0L_g.js → p-CX0Xm7nC.js} +1 -1
- package/dist/components/{p-Bp8UGnBB.js → p-CddkXbJO.js} +1 -1
- package/dist/components/{p-DalLUQa1.js → p-ChM1gCIW.js} +1 -1
- package/dist/components/{p-BVRIm4Vt.js → p-CjAIMy9F.js} +1 -1
- package/dist/components/{p-uxGiMP6W.js → p-CjnaOcqP.js} +1 -1
- package/dist/components/{p-D9cHynev.js → p-CkAYE3S8.js} +1 -1
- package/dist/components/p-CtoKGHXg.js +1 -0
- package/dist/components/{p-DuRlksIi.js → p-CuQOcbEk.js} +1 -1
- package/dist/components/{p-Dp2LhUKa.js → p-CuXI1Bo9.js} +1 -1
- package/dist/components/{p-DAGCKEFc.js → p-CudchGV-.js} +1 -1
- package/dist/components/{p-BC__OeWi.js → p-D00_ZaOw.js} +1 -1
- package/dist/components/{p-C7Rh2NRS.js → p-D3hW0Kbk.js} +1 -1
- package/dist/components/{p-U9jg1DvO.js → p-D7C_eMze.js} +1 -1
- package/dist/components/{p-DW9czTAD.js → p-DCxpDhJk.js} +1 -1
- package/dist/components/{p-CtPr1nvA.js → p-DDXAdlei.js} +1 -1
- package/dist/components/{p-Be6GRqFL.js → p-DGf0eDeq.js} +1 -1
- package/dist/components/{p-0I1N5xHK.js → p-DQpLF7Tl.js} +1 -1
- package/dist/components/{p-Dc5xkFI9.js → p-DR4HIK_J.js} +1 -1
- package/dist/components/{p-C_e0a6jQ.js → p-DSiVRqn-.js} +1 -1
- package/dist/components/{p-Ds5j-VXZ.js → p-DT1PR6Br.js} +1 -1
- package/dist/components/{p-gBEnKt4T.js → p-DTcPOR7t.js} +1 -1
- package/dist/components/{p-CugPCiPF.js → p-DTlvGHSC.js} +1 -1
- package/dist/components/{p-36vx_Mui.js → p-DU_5lopz.js} +1 -1
- package/dist/components/{p-B2RoJ1tz.js → p-DYpMIlQ4.js} +1 -1
- package/dist/components/{p-g5NPAxAj.js → p-De3mM3M-.js} +1 -1
- package/dist/components/{p-Bc2jtNZw.js → p-DeQvmRpj.js} +1 -1
- package/dist/components/{p-DC-3Hg9I.js → p-Dft337Ll.js} +1 -1
- package/dist/components/{p-BWqnoSw2.js → p-DstiJHuo.js} +1 -1
- package/dist/components/{p-D34dZlkT.js → p-Dvobsim-.js} +1 -1
- package/dist/components/{p-kGPSVdob.js → p-DxWuP9W-.js} +1 -1
- package/dist/components/{p-DNy6quyg.js → p-DzU0ms1z.js} +1 -1
- package/dist/components/{p-Btj1QSzG.js → p-EcdS-L-q.js} +1 -1
- package/dist/components/{p-GMH-Dp75.js → p-FJMslKrI.js} +1 -1
- package/dist/components/{p-Ic4M6IZs.js → p-H0SF5wed.js} +1 -1
- package/dist/components/{p-CjOKLEdP.js → p-IIcKCSrk.js} +1 -1
- package/dist/components/{p-BGaDuggr.js → p-Jrghj_Rb.js} +1 -1
- package/dist/components/{p-C07P-YzZ.js → p-Qr0iq3rP.js} +1 -1
- package/dist/components/{p-DxZ5v-a-.js → p-SuJdlCN6.js} +1 -1
- package/dist/components/{p-DPENu38v.js → p-TVGlb-lM.js} +1 -1
- package/dist/components/{p-msSLVaDl.js → p-TzHbL-Yw.js} +1 -1
- package/dist/components/{p-Zkjzr8ZL.js → p-W6qOF1ab.js} +1 -1
- package/dist/components/{p-IilUR0Z4.js → p-bf44p3D-.js} +1 -1
- package/dist/components/{p-BeJhcBfy.js → p-cWoLKHJ3.js} +1 -1
- package/dist/components/{p-C8IQnQjR.js → p-fQitJHsh.js} +1 -1
- package/dist/components/{p-B_Wn0VnS.js → p-l4woSzxj.js} +1 -1
- package/dist/components/{p-BugzZ4hY.js → p-lUHVcFOY.js} +1 -1
- package/dist/components/{p-vADJB1c2.js → p-pOJlVled.js} +1 -1
- package/dist/components/{p-B3ATJ-iD.js → p-p_mTGyE6.js} +1 -1
- package/dist/components/{p-B0Fo3cKf.js → p-qzUtJdPs.js} +1 -1
- package/dist/components/{p-BjZJaxt1.js → p-reX4rZOi.js} +1 -1
- package/dist/components/{p-CxPXk2ws.js → p-w39VkrD-.js} +1 -1
- package/dist/components/{p-BQMMBSP2.js → p-wCbKvvTJ.js} +1 -1
- package/dist/components/{p-CGVMdadq.js → p-woxb-Bmm.js} +1 -1
- package/dist/components/rtk-ai-toggle.js +1 -1
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +1 -1
- package/dist/components/rtk-audio-grid.js +1 -1
- package/dist/components/rtk-audio-tile.js +1 -1
- package/dist/components/rtk-audio-visualizer.js +1 -1
- package/dist/components/rtk-avatar.js +1 -1
- package/dist/components/rtk-breakout-room-manager.js +1 -1
- package/dist/components/rtk-breakout-room-participants.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.js +1 -1
- package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-camera-selector.js +1 -1
- package/dist/components/rtk-camera-toggle.js +1 -1
- package/dist/components/rtk-caption-toggle.js +1 -1
- package/dist/components/rtk-chat-composer-ui.js +1 -1
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-header.js +1 -1
- package/dist/components/rtk-chat-message.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-messages-ui.js +1 -1
- package/dist/components/rtk-chat-search-results.js +1 -1
- package/dist/components/rtk-chat-selector-ui.js +1 -1
- package/dist/components/rtk-chat-selector.js +1 -1
- package/dist/components/rtk-chat-toggle.js +1 -1
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +1 -1
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +1 -1
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-audio.js +1 -1
- package/dist/components/rtk-debugger-screenshare.js +1 -1
- package/dist/components/rtk-debugger-system.js +1 -1
- package/dist/components/rtk-debugger-toggle.js +1 -1
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +1 -1
- package/dist/components/rtk-dialog.js +1 -1
- package/dist/components/rtk-draft-attachment-view.js +1 -1
- package/dist/components/rtk-emoji-picker-button.js +1 -1
- package/dist/components/rtk-emoji-picker.js +1 -1
- package/dist/components/rtk-ended-screen.js +1 -1
- package/dist/components/rtk-file-dropzone.js +1 -1
- package/dist/components/rtk-file-message-view.js +1 -1
- package/dist/components/rtk-file-message.js +1 -1
- package/dist/components/rtk-file-picker-button.js +1 -1
- package/dist/components/rtk-fullscreen-toggle.js +1 -1
- package/dist/components/rtk-grid-pagination.js +1 -1
- package/dist/components/rtk-grid.js +1 -1
- package/dist/components/rtk-header.js +1 -1
- package/dist/components/rtk-idle-screen.js +1 -1
- package/dist/components/rtk-image-message-view.js +1 -1
- package/dist/components/rtk-image-message.js +1 -1
- package/dist/components/rtk-image-viewer.js +1 -1
- package/dist/components/rtk-information-tooltip.js +1 -1
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +1 -1
- package/dist/components/rtk-leave-meeting.js +1 -1
- package/dist/components/rtk-livestream-indicator.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-livestream-toggle.js +1 -1
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-meeting-title.js +1 -1
- package/dist/components/rtk-meeting.js +1 -1
- package/dist/components/rtk-menu-item.js +1 -1
- package/dist/components/rtk-menu-list.js +1 -1
- package/dist/components/rtk-menu.js +1 -1
- package/dist/components/rtk-message-list-view.js +1 -1
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +1 -1
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +1 -1
- package/dist/components/rtk-more-toggle.js +1 -1
- package/dist/components/rtk-mute-all-button.js +1 -1
- package/dist/components/rtk-mute-all-confirmation.js +1 -1
- package/dist/components/rtk-name-tag.js +1 -1
- package/dist/components/rtk-network-indicator.js +1 -1
- package/dist/components/rtk-notification.js +1 -1
- package/dist/components/rtk-notifications.js +1 -1
- package/dist/components/rtk-overlay-modal.js +1 -1
- package/dist/components/rtk-paginated-list.js +1 -1
- package/dist/components/rtk-participant-count.js +1 -1
- package/dist/components/rtk-participant-setup.js +1 -1
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +1 -1
- package/dist/components/rtk-participants-stage-list.js +1 -1
- package/dist/components/rtk-participants-stage-queue.js +1 -1
- package/dist/components/rtk-participants-toggle.js +1 -1
- package/dist/components/rtk-participants-viewer-list.js +1 -1
- package/dist/components/rtk-participants-waiting-list.js +1 -1
- package/dist/components/rtk-participants.js +1 -1
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pinned-message-selector.js +1 -1
- package/dist/components/rtk-pip-toggle.js +1 -1
- package/dist/components/rtk-plugin-main.js +1 -1
- package/dist/components/rtk-plugins-toggle.js +1 -1
- package/dist/components/rtk-plugins.js +1 -1
- package/dist/components/rtk-poll-form.js +1 -1
- package/dist/components/rtk-poll.js +1 -1
- package/dist/components/rtk-polls-toggle.js +1 -1
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +1 -1
- package/dist/components/rtk-recording-toggle.js +1 -1
- package/dist/components/rtk-screen-share-toggle.js +1 -1
- package/dist/components/rtk-screenshare-view.js +1 -1
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +1 -1
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +1 -1
- package/dist/components/rtk-setup-screen.js +1 -1
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +1 -1
- package/dist/components/rtk-simple-grid.js +1 -1
- package/dist/components/rtk-speaker-selector.js +1 -1
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +1 -1
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +1 -1
- package/dist/components/rtk-stage.js +1 -1
- package/dist/components/rtk-switch.js +1 -1
- package/dist/components/rtk-tab-bar.js +1 -1
- package/dist/components/rtk-text-composer-view.js +1 -1
- package/dist/components/rtk-text-message-view.js +1 -1
- package/dist/components/rtk-text-message.js +1 -1
- package/dist/components/rtk-transcript.js +1 -1
- package/dist/components/rtk-transcripts.js +1 -1
- package/dist/components/rtk-ui-provider.js +1 -1
- package/dist/components/rtk-viewer-count.js +1 -1
- package/dist/components/rtk-virtualized-participant-list.js +1 -1
- package/dist/components/rtk-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +2244 -251
- package/dist/docs/docs-vscode.json +5 -1
- package/dist/esm/{TextMessage-BZiVGmY1.js → TextMessage-Cisroi3Z.js} +1 -1
- package/dist/esm/{chat-lvouWi7J.js → chat-CNKqhbws.js} +1 -1
- package/dist/esm/{config-B2jDqnc2.js → config-DRqODcfp.js} +2 -2
- package/dist/esm/{debounce-aR8pwob-.js → debounce-B5AGeS26.js} +1 -1
- package/dist/esm/{index-CgECHQfr.js → index-vqQJVJal.js} +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/loader.js +387 -48
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-ai-toggle.entry.js +2 -2
- package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
- package/dist/esm/rtk-ai_3.entry.js +2 -2
- package/dist/esm/rtk-audio-grid.entry.js +2 -2
- package/dist/esm/rtk-audio-tile.entry.js +2 -2
- package/dist/esm/rtk-audio-visualizer_3.entry.js +2 -2
- package/dist/esm/rtk-avatar_26.entry.js +9 -9
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
- package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
- package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
- package/dist/esm/rtk-camera-toggle.entry.js +2 -2
- package/dist/esm/rtk-caption-toggle.entry.js +2 -2
- package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-message.entry.js +2 -2
- package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
- package/dist/esm/rtk-chat-search-results.entry.js +2 -2
- package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-toggle.entry.js +2 -2
- package/dist/esm/rtk-clock.entry.js +2 -2
- package/dist/esm/rtk-controlbar-button.entry.js +2 -2
- package/dist/esm/rtk-controlbar.entry.js +2 -2
- package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
- package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
- package/dist/esm/rtk-debugger.entry.js +2 -2
- package/dist/esm/rtk-dialog-manager.entry.js +2 -2
- package/dist/esm/rtk-dialog.entry.js +2 -2
- package/dist/esm/rtk-ended-screen.entry.js +2 -2
- package/dist/esm/rtk-file-dropzone.entry.js +2 -2
- package/dist/esm/rtk-file-message_3.entry.js +6 -6
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +2 -2
- package/dist/esm/rtk-header.entry.js +2 -2
- package/dist/esm/rtk-idle-screen.entry.js +2 -2
- package/dist/esm/rtk-image-viewer.entry.js +2 -2
- package/dist/esm/rtk-information-tooltip.entry.js +2 -2
- package/dist/esm/rtk-leave-button.entry.js +2 -2
- package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
- package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
- package/dist/esm/rtk-logo.entry.js +2 -2
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-mic-toggle.entry.js +2 -2
- package/dist/esm/rtk-mixed-grid.entry.js +2 -2
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-mute-all-button.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +2 -2
- package/dist/esm/rtk-network-indicator.entry.js +2 -2
- package/dist/esm/rtk-notification.entry.js +4 -4
- package/dist/esm/rtk-notifications.entry.js +26 -4
- package/dist/esm/rtk-participant-count.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +2 -2
- package/dist/esm/rtk-participant_2.entry.js +5 -5
- 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 +347 -34
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +3 -3
- package/dist/esm/rtk-settings.entry.js +2 -2
- package/dist/esm/rtk-setup-screen.entry.js +2 -2
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-sidebar.entry.js +2 -2
- package/dist/esm/rtk-simple-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
- package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
- package/dist/esm/rtk-stage-toggle.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +3 -3
- package/dist/esm/rtk-switch.entry.js +3 -3
- package/dist/esm/rtk-transcript.entry.js +3 -3
- package/dist/esm/rtk-transcripts.entry.js +2 -2
- package/dist/esm/rtk-ui-provider.entry.js +2 -2
- package/dist/esm/rtk-waiting-screen.entry.js +3 -3
- package/dist/esm/{ui-kit-metadata-DBkOnyOI.js → ui-kit-metadata-CIMhjc7J.js} +2 -2
- package/dist/esm/{ui-store-25wIB_YH.js → ui-store-GPnCYQx5.js} +4 -0
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-a6b6f977.entry.js → p-0558ad3d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2eb73b5f.entry.js → p-06dfb82f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cdf80add.entry.js → p-0760dc9f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f202a199.entry.js → p-0a9509ea.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-00ae47eb.entry.js → p-0e89ddbe.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-64b7ca52.entry.js → p-11d7c342.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-22cd2a40.entry.js → p-151eb58e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-1ff5cfd7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-63413c07.entry.js → p-1ffa8cca.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d7b10d53.entry.js → p-226a8500.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1eac1ada.entry.js → p-25550cf9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5ea44aa5.entry.js → p-266ca900.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-dcced1f6.entry.js → p-352f5966.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-94a286d0.entry.js → p-37feaeaf.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-69e11a90.entry.js → p-39915b72.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-aa1bcc8d.entry.js → p-3ade5cae.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d91222ea.entry.js → p-3bb06c62.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4d59e280.entry.js → p-3c813199.entry.js} +1 -1
- package/dist/realtimekit-ui/p-3d663797.entry.js +1 -0
- package/dist/realtimekit-ui/{p-828ecefa.entry.js → p-41bc3d1f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a732dd55.entry.js → p-43c99dd3.entry.js} +1 -1
- package/dist/realtimekit-ui/p-452d0941.entry.js +1 -0
- package/dist/realtimekit-ui/p-577d3d6c.entry.js +1 -0
- package/dist/realtimekit-ui/{p-96b81823.entry.js → p-5a0a0b08.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b783a853.entry.js → p-5a2c4639.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-df5b5a98.entry.js → p-5bbaaee6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fbde8aee.entry.js → p-6747ca25.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b29b686b.entry.js → p-6b0a4780.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2f380c20.entry.js → p-6d87671d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a5afae52.entry.js → p-6e07513b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7878ab30.entry.js → p-700e62e5.entry.js} +1 -1
- package/dist/realtimekit-ui/p-70a4d8e8.entry.js +1 -0
- package/dist/realtimekit-ui/{p-cfa03301.entry.js → p-7275df7a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-39a410f5.entry.js → p-727ff3ca.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c35040dc.entry.js → p-7407e5fb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3d95065e.entry.js → p-76bea9ba.entry.js} +1 -1
- package/dist/realtimekit-ui/p-7955b7c2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-a478656f.entry.js → p-7c511cf6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6a985345.entry.js → p-7dc40b64.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-60f90e32.entry.js → p-831a4a72.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c7f7f0ee.entry.js → p-848260b5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-da857425.entry.js → p-8662827c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-73f2a2db.entry.js → p-8751b85c.entry.js} +1 -1
- package/dist/realtimekit-ui/p-8dbac5e8.entry.js +1 -0
- package/dist/realtimekit-ui/{p-8a481d43.entry.js → p-8e588d5b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0ce5b00f.entry.js → p-9b8c79ab.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-x7gw0EVy.js → p-B8OtSZCI.js} +1 -1
- package/dist/realtimekit-ui/{p-B3SWd1rN.js → p-CkEIiUAw.js} +1 -1
- package/dist/realtimekit-ui/p-DITWlMXR.js +1 -0
- package/dist/realtimekit-ui/{p-CGOvNX5H.js → p-Dk8hCkEY.js} +1 -1
- package/dist/realtimekit-ui/{p-DgbGa7ou.js → p-DkW8b_It.js} +1 -1
- package/dist/realtimekit-ui/{p-6bca148a.entry.js → p-a25790f7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-82a226df.entry.js → p-a634bf29.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-590350ae.entry.js → p-aaad0c85.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-95818179.entry.js → p-b40651e7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3ab9b329.entry.js → p-b42581e5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4b2ce9e5.entry.js → p-ba1b67a4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3a0eaf1e.entry.js → p-c25ef602.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-69ee90c7.entry.js → p-c620f917.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7d7409e5.entry.js → p-c7916a62.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-69445dc5.entry.js → p-c7bd4da5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8206b22d.entry.js → p-cb58b187.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7711649a.entry.js → p-cc198be3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-21119a4d.entry.js → p-cc509d39.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bef64365.entry.js → p-cea57cb7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-465c4010.entry.js → p-cfd6260a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cc9228ee.entry.js → p-d0fe5d91.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b56fe105.entry.js → p-d3bfc744.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a1febe2c.entry.js → p-d3d39178.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-18607b9a.entry.js → p-d3d70e76.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6568c9be.entry.js → p-d52833d6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8dc6db09.entry.js → p-d797e61a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2999cb8d.entry.js → p-d85eea5e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-32079fea.entry.js → p-da137b88.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-13a913a9.entry.js → p-db426f29.entry.js} +1 -1
- package/dist/realtimekit-ui/p-dc302f4a.entry.js +1 -0
- package/dist/realtimekit-ui/{p-c8cad0a6.entry.js → p-de8820d1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-64f46d1e.entry.js → p-df7a6471.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-60e672f3.entry.js → p-dfce1619.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0df18cd8.entry.js → p-e155abc4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cf9e2497.entry.js → p-e1e2aa29.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-467cb881.entry.js → p-e2131b56.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-70672349.entry.js → p-e59aa67d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e7e918c5.entry.js +1 -0
- package/dist/realtimekit-ui/{p-54c71e62.entry.js → p-e9d6b2fc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e54dbacd.entry.js → p-f8bd6ef6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9675893b.entry.js → p-f9e1d361.entry.js} +1 -1
- package/dist/realtimekit-ui/p-fde9e0ea.entry.js +1 -0
- package/dist/realtimekit-ui/{p-Dj-6QheV.js → p-im1XlbcC.js} +1 -1
- package/dist/realtimekit-ui/{p-CRQsZMW5.js → p-wx9iq4MT.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +31 -7
- package/dist/types/components.d.ts +20 -13
- package/dist/types/lib/lang/default-language.d.ts +4 -0
- package/package.json +1 -1
- package/dist/components/p--EktoJd3.js +0 -1
- package/dist/components/p-B5Ikq3LV.js +0 -1
- package/dist/components/p-aXMUeMjU.js +0 -1
- package/dist/realtimekit-ui/p-1ff01d5f.entry.js +0 -1
- package/dist/realtimekit-ui/p-20588357.entry.js +0 -1
- package/dist/realtimekit-ui/p-341159c7.entry.js +0 -1
- package/dist/realtimekit-ui/p-72b2fe54.entry.js +0 -1
- package/dist/realtimekit-ui/p-77648ee7.entry.js +0 -1
- package/dist/realtimekit-ui/p-9c53a0b7.entry.js +0 -1
- package/dist/realtimekit-ui/p-C8tHk7bV.js +0 -1
- package/dist/realtimekit-ui/p-a05269d4.entry.js +0 -1
- package/dist/realtimekit-ui/p-b415ff27.entry.js +0 -1
- package/dist/realtimekit-ui/p-c1efb757.entry.js +0 -1
- package/dist/realtimekit-ui/p-df0fe032.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,h as e,d as s,t as a}from"./p-BBHQOrFK.js";import{c as r,e as n,i as h}from"./p-aXMUeMjU.js";import{d as o}from"./p-CmmyVCoN.js";import{R as d}from"./p-CBJjerDR.js";import{S as l}from"./p-ByMjaTnP.js";import{d as p}from"./p-D6vw6bT2.js";import{d as c}from"./p-BYIBbfJ8.js";import{d as g}from"./p-GMH-Dp75.js";import{d as m}from"./p-Zkjzr8ZL.js";import{d as u}from"./p-CugPCiPF.js";import{d as v}from"./p-DHSRRtn3.js";var x=function(t,i,e,s){var a,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(n=(r<3?a(n):r>3?a(i,e,n):a(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const f=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.aspectRatio="16:9",this.gap=8,this.config=r(),this.iconPack=n,this.t=h(),this.gridSize=o}componentWillLoad(){this.initialised=!1,this.screenShareParticipantsChanged(this.screenShareParticipants),this.pluginsChanged(this.plugins),this.initialised=!0}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)}meetingChanged(t){var i,e,s,a;null!=t&&(null!=(null===(i=t.meta)||void 0===i?void 0:i.selfActiveTab)&&this.onActiveTabUpdate(null===(e=t.meta.selfActiveTab)||void 0===e?void 0:e.type,null===(s=t.meta.selfActiveTab)||void 0===s?void 0:s.id),this.activeTabUpdateListener=t=>{this.onActiveTabUpdate(null==t?void 0:t.type,null==t?void 0:t.id)},null===(a=t.meta)||void 0===a||a.addListener("activeTabUpdate",this.activeTabUpdateListener))}screenShareParticipantsChanged(t=[]){(this.initialised||null==this.activeTab)&&(null==this.activeTab&&t.length>0?this.setActiveTab({type:"screenshare",participant:t[0]}):this.revalidateActiveTab())}pluginsChanged(t){(this.initialised||null==this.activeTab)&&(t.length>0?this.setActiveTab({type:"plugin",plugin:t[t.length-1]}):this.revalidateActiveTab())}revalidateActiveTab(){if(null!=this.activeTab)if("screenshare"===this.activeTab.type){const{participant:t}=this.activeTab;this.screenShareParticipants.some((i=>i.id===t.id))||this.reassignActiveTab()}else{const{plugin:t}=this.activeTab;this.plugins.some((i=>i.id===t.id))||this.reassignActiveTab()}}setActiveTab(t,i=!0){var e;this.activeTab=t,i&&(null===(e=this.meeting.meta)||void 0===e||e.setSelfActiveTab({type:t.type,id:"screenshare"===t.type?t.participant.id:t.plugin.id},0))}reassignActiveTab(){this.screenShareParticipants.length>0?this.setActiveTab({type:"screenshare",participant:this.screenShareParticipants[0]}):this.plugins.length>0&&this.setActiveTab({type:"plugin",plugin:this.plugins[this.plugins.length-1]})}onActiveTabUpdate(t,i){if(null!=t&&null!=i)switch(t){case"plugin":const t=this.plugins.find((t=>t.id===i));null!=t&&this.setActiveTab({type:"plugin",plugin:t},!1);break;case"screenshare":const e=this.screenShareParticipants.find((t=>t.id===i));null!=e&&this.setActiveTab({type:"screenshare",participant:e},!1)}}getTabs(){const t=this.screenShareParticipants.map((t=>({type:"screenshare",participant:t}))),i=this.plugins.map((t=>({type:"plugin",plugin:t})));return t.concat(i)}render(){var t,i;if(!this.meeting)return null;const a={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t};return e(s,null,e("main",{id:"main-view",part:"main-view"},(null===(t=this.getTabs())||void 0===t?void 0:t.length)>1&&e("rtk-tab-bar",Object.assign({activeTab:this.activeTab,tabs:this.getTabs(),onTabChange:t=>this.setActiveTab(t.detail)},a)),e("div",{id:"tabs",key:"tabs"},this.screenShareParticipants.map((t=>{var i,s;return e(d,{element:"rtk-screenshare-view",defaults:a,props:{participant:t,key:t.id,style:{display:"screenshare"===(null===(i=this.activeTab)||void 0===i?void 0:i.type)&&(null===(s=this.activeTab)||void 0===s?void 0:s.participant.id)===t.id?"flex":"none"}},childProps:{participant:t,isScreenShare:!0},deepProps:!0})})),this.plugins.map((t=>{var i,s;return e("rtk-plugin-main",Object.assign({},a,{plugin:t,key:t.id,style:{display:"plugin"===(null===(i=this.activeTab)||void 0===i?void 0:i.type)&&(null===(s=this.activeTab)||void 0===s?void 0:s.plugin.id)===t.id?"flex":"none"}}))})))),e(d,{element:"rtk-mixed-grid",defaults:a,childProps:{part:"participants-grid",class:this.gridSize.mixed?"grid-width-"+this.gridSize.mixed:"grid-width-lg",participants:this.participants,pinnedParticipants:this.pinnedParticipants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,aspectRatio:this.aspectRatio,gap:this.gap,size:"AUDIO_ROOM"===(null===(i=this.meeting.meta)||void 0===i?void 0:i.viewType)?"md":"sm",layout:"row"},onlyChildren:!0}))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%;display:flex}main{display:flex;flex:1 1 0%;padding-left:var(--rtk-space-4, 16px)}:host([layout='column']) main{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}main rtk-tab-bar{margin-right:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column}main #tabs{height:100%;flex:1 1 0%}rtk-button{z-index:10}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}:host([size='sm']){flex-direction:column}:host([size='sm']) .grid-width-lg,:host([size='sm']) .grid-width-md{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:33.333333%;width:100%;max-width:100%}:host([size='sm']) main{display:flex;flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{height:var(--rtk-space-12, 48px);width:100%;flex-direction:row}:host([size='sm']) #tabs{flex:1 1 0%}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}:host([layout='column']){flex-direction:column}:host([layout='column']) main{display:flex;flex:1 1 0%}:host([layout='column']) .grid-width-lg,:host([layout='column']) .grid-width-md{height:50%;max-width:100%;width:100%}:host([layout='column']) .grid-width-sm{height:33.333333%;max-width:100%;width:100%}@media (orientation: portrait){:host{flex-direction:column}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host .grid-width-md{height:33.333333%;width:100%;max-width:100%}:host .grid-width-sm{height:25%;width:100%;max-width:100%}:host main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='md']) main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host rtk-tab-bar{height:var(--rtk-space-16, 64px);width:100%;flex-direction:row}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}@media (orientation: landscape){:host{flex-direction:row}:host([size='sm']){flex-direction:row}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:100%;max-height:100%;width:16.666667%}:host([size='sm']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}:host([size='md']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{margin-right:var(--rtk-space-2, 8px);height:100%;width:var(--rtk-space-12, 48px);flex-direction:column}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}"}},[1,"rtk-mixed-grid",{layout:[513],participants:[16],pinnedParticipants:[16],screenShareParticipants:[16],plugins:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16],activeTab:[32],initialised:[32]},void 0,{meeting:[{meetingChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-mixed-grid","rtk-button","rtk-icon","rtk-plugin-main","rtk-spotlight-indicator","rtk-tab-bar","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-mixed-grid":customElements.get(a(t))||customElements.define(a(t),f);break;case"rtk-button":customElements.get(a(t))||p();break;case"rtk-icon":customElements.get(a(t))||c();break;case"rtk-plugin-main":customElements.get(a(t))||g();break;case"rtk-spotlight-indicator":customElements.get(a(t))||m();break;case"rtk-tab-bar":customElements.get(a(t))||u();break;case"rtk-tooltip":customElements.get(a(t))||v()}}))}x([l()],f.prototype,"meeting",void 0),x([l()],f.prototype,"states",void 0),x([l()],f.prototype,"config",void 0),x([l()],f.prototype,"iconPack",void 0),x([l()],f.prototype,"t",void 0),k();const b=f,w=k;export{b as RtkMixedGrid,w as defineCustomElement}
|
|
1
|
+
import{p as t,H as i,h as s,d as e,t as a}from"./p-BBHQOrFK.js";import{c as r,e as n,i as h}from"./p-CtoKGHXg.js";import{d as o}from"./p-CmmyVCoN.js";import{R as d}from"./p-CBJjerDR.js";import{S as l}from"./p-16s5ZSAZ.js";import{d as p}from"./p-D6vw6bT2.js";import{d as c}from"./p-BYIBbfJ8.js";import{d as g}from"./p-FJMslKrI.js";import{d as m}from"./p-W6qOF1ab.js";import{d as u}from"./p-DTlvGHSC.js";import{d as v}from"./p-DHSRRtn3.js";var x=function(t,i,s,e){var a,r=arguments.length,n=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(n=(r<3?a(n):r>3?a(i,s,n):a(i,s))||n);return r>3&&n&&Object.defineProperty(i,s,n),n};const f=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.aspectRatio="16:9",this.gap=8,this.config=r(),this.iconPack=n,this.t=h(),this.gridSize=o}componentWillLoad(){this.initialised=!1,this.screenShareParticipantsChanged(this.screenShareParticipants),this.pluginsChanged(this.plugins),this.initialised=!0}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)}meetingChanged(t){var i,s,e,a;null!=t&&(null!=(null===(i=t.meta)||void 0===i?void 0:i.selfActiveTab)&&this.onActiveTabUpdate(null===(s=t.meta.selfActiveTab)||void 0===s?void 0:s.type,null===(e=t.meta.selfActiveTab)||void 0===e?void 0:e.id),this.activeTabUpdateListener=t=>{this.onActiveTabUpdate(null==t?void 0:t.type,null==t?void 0:t.id)},null===(a=t.meta)||void 0===a||a.addListener("activeTabUpdate",this.activeTabUpdateListener))}screenShareParticipantsChanged(t=[]){(this.initialised||null==this.activeTab)&&(null==this.activeTab&&t.length>0?this.setActiveTab({type:"screenshare",participant:t[0]}):this.revalidateActiveTab())}pluginsChanged(t){(this.initialised||null==this.activeTab)&&(t.length>0?this.setActiveTab({type:"plugin",plugin:t[t.length-1]}):this.revalidateActiveTab())}revalidateActiveTab(){if(null!=this.activeTab)if("screenshare"===this.activeTab.type){const{participant:t}=this.activeTab;this.screenShareParticipants.some((i=>i.id===t.id))||this.reassignActiveTab()}else{const{plugin:t}=this.activeTab;this.plugins.some((i=>i.id===t.id))||this.reassignActiveTab()}}setActiveTab(t,i=!0){var s;this.activeTab=t,i&&(null===(s=this.meeting.meta)||void 0===s||s.setSelfActiveTab({type:t.type,id:"screenshare"===t.type?t.participant.id:t.plugin.id},0))}reassignActiveTab(){this.screenShareParticipants.length>0?this.setActiveTab({type:"screenshare",participant:this.screenShareParticipants[0]}):this.plugins.length>0&&this.setActiveTab({type:"plugin",plugin:this.plugins[this.plugins.length-1]})}onActiveTabUpdate(t,i){if(null!=t&&null!=i)switch(t){case"plugin":const t=this.plugins.find((t=>t.id===i));null!=t&&this.setActiveTab({type:"plugin",plugin:t},!1);break;case"screenshare":const s=this.screenShareParticipants.find((t=>t.id===i));null!=s&&this.setActiveTab({type:"screenshare",participant:s},!1)}}getTabs(){const t=this.screenShareParticipants.map((t=>({type:"screenshare",participant:t}))),i=this.plugins.map((t=>({type:"plugin",plugin:t})));return t.concat(i)}render(){var t,i;if(!this.meeting)return null;const a={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t};return s(e,null,s("main",{id:"main-view",part:"main-view"},(null===(t=this.getTabs())||void 0===t?void 0:t.length)>1&&s("rtk-tab-bar",Object.assign({activeTab:this.activeTab,tabs:this.getTabs(),onTabChange:t=>this.setActiveTab(t.detail)},a)),s("div",{id:"tabs",key:"tabs"},this.screenShareParticipants.map((t=>{var i,e;return s(d,{element:"rtk-screenshare-view",defaults:a,props:{participant:t,key:t.id,style:{display:"screenshare"===(null===(i=this.activeTab)||void 0===i?void 0:i.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.participant.id)===t.id?"flex":"none"}},childProps:{participant:t,isScreenShare:!0},deepProps:!0})})),this.plugins.map((t=>{var i,e;return s("rtk-plugin-main",Object.assign({},a,{plugin:t,key:t.id,style:{display:"plugin"===(null===(i=this.activeTab)||void 0===i?void 0:i.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.plugin.id)===t.id?"flex":"none"}}))})))),s(d,{element:"rtk-mixed-grid",defaults:a,childProps:{part:"participants-grid",class:this.gridSize.mixed?"grid-width-"+this.gridSize.mixed:"grid-width-lg",participants:this.participants,pinnedParticipants:this.pinnedParticipants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,aspectRatio:this.aspectRatio,gap:this.gap,size:"AUDIO_ROOM"===(null===(i=this.meeting.meta)||void 0===i?void 0:i.viewType)?"md":"sm",layout:"row"},onlyChildren:!0}))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;height:100%;width:100%;display:flex}main{display:flex;flex:1 1 0%;padding-left:var(--rtk-space-4, 16px)}:host([layout='column']) main{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}main rtk-tab-bar{margin-right:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column}main #tabs{height:100%;flex:1 1 0%}rtk-button{z-index:10}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}:host([size='sm']){flex-direction:column}:host([size='sm']) .grid-width-lg,:host([size='sm']) .grid-width-md{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:33.333333%;width:100%;max-width:100%}:host([size='sm']) main{display:flex;flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{height:var(--rtk-space-12, 48px);width:100%;flex-direction:row}:host([size='sm']) #tabs{flex:1 1 0%}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}:host([layout='column']){flex-direction:column}:host([layout='column']) main{display:flex;flex:1 1 0%}:host([layout='column']) .grid-width-lg,:host([layout='column']) .grid-width-md{height:50%;max-width:100%;width:100%}:host([layout='column']) .grid-width-sm{height:33.333333%;max-width:100%;width:100%}@media (orientation: portrait){:host{flex-direction:column}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host .grid-width-md{height:33.333333%;width:100%;max-width:100%}:host .grid-width-sm{height:25%;width:100%;max-width:100%}:host main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='md']) main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host rtk-tab-bar{height:var(--rtk-space-16, 64px);width:100%;flex-direction:row}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}@media (orientation: landscape){:host{flex-direction:row}:host([size='sm']){flex-direction:row}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:100%;max-height:100%;width:16.666667%}:host([size='sm']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}:host([size='md']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{margin-right:var(--rtk-space-2, 8px);height:100%;width:var(--rtk-space-12, 48px);flex-direction:column}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}"}},[1,"rtk-mixed-grid",{layout:[513],participants:[16],pinnedParticipants:[16],screenShareParticipants:[16],plugins:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16],activeTab:[32],initialised:[32]},void 0,{meeting:[{meetingChanged:0}],screenShareParticipants:[{screenShareParticipantsChanged:0}],plugins:[{pluginsChanged:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-mixed-grid","rtk-button","rtk-icon","rtk-plugin-main","rtk-spotlight-indicator","rtk-tab-bar","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-mixed-grid":customElements.get(a(t))||customElements.define(a(t),f);break;case"rtk-button":customElements.get(a(t))||p();break;case"rtk-icon":customElements.get(a(t))||c();break;case"rtk-plugin-main":customElements.get(a(t))||g();break;case"rtk-spotlight-indicator":customElements.get(a(t))||m();break;case"rtk-tab-bar":customElements.get(a(t))||u();break;case"rtk-tooltip":customElements.get(a(t))||v()}}))}x([l()],f.prototype,"meeting",void 0),x([l()],f.prototype,"states",void 0),x([l()],f.prototype,"config",void 0),x([l()],f.prototype,"iconPack",void 0),x([l()],f.prototype,"t",void 0),k();const b=f,w=k;export{b as RtkMixedGrid,w as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as e,h as o,d as a,t as s}from"./p-BBHQOrFK.js";import{e as i,i as c}from"./p-
|
|
1
|
+
import{p as t,H as r,c as e,h as o,d as a,t as s}from"./p-BBHQOrFK.js";import{e as i,i as c}from"./p-CtoKGHXg.js";import{S as n}from"./p-16s5ZSAZ.js";import{d as l}from"./p-D00_ZaOw.js";import{d as b}from"./p-BYIBbfJ8.js";import{d}from"./p-DeQvmRpj.js";var p=function(t,r,e,o){var a,s=arguments.length,i=s<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,r,e,o);else for(var c=t.length-1;c>=0;c--)(a=t[c])&&(i=(s<3?a(i):s>3?a(r,e,i):a(r,e))||i);return s>3&&i&&Object.defineProperty(r,e,i),i};const m=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.iconPack=i,this.t=c(),this.handleKeyDown=({key:t})=>{"Escape"===t&&this.stateUpdate.emit({activeMoreMenu:!1})},this.handleOnClick=t=>{!t.composedPath().includes(this.host)&&this.states.activeMoreMenu&&this.stateUpdate.emit({activeMoreMenu:!1})},this.toggleMoreMenu=()=>{this.stateUpdate.emit({activeMoreMenu:!this.states.activeMoreMenu})}}connectedCallback(){window.addEventListener("keydown",this.handleKeyDown),window.addEventListener("click",this.handleOnClick)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),window.removeEventListener("click",this.handleOnClick)}render(){const t=this.t("more");return o(a,{key:"bb6bc743afd9c5c2c91f48097f98afc0f58fface",title:t},this.states.activeMoreMenu&&o("div",{key:"ca5d042b877cd1bee68b2563d40764bbc2072df4",class:"more-menu"},o("slot",{key:"9931da3f9e96d792be362c64338d582be2990647",name:"more-elements"})),o("rtk-controlbar-button",{key:"d0d7e0f19a37029c9cdfb8238c0a7af88876b2c0",size:this.size,iconPack:this.iconPack,onClick:t=>{t.stopPropagation(),this.toggleMoreMenu()},icon:this.iconPack.horizontal_dots,label:t,part:"controlbar-button"}),o("slot",{key:"603c0b5f092419c98ed56614a1468b5802c95702",name:"expanded"}))}get host(){return this}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:visible}.more-menu{position:absolute;right:calc(var(--rtk-space-24, 96px) * -1);bottom:var(--rtk-space-16, 64px);z-index:50;margin-bottom:var(--rtk-space-3, 12px);box-sizing:border-box;max-height:60vh;width:var(--rtk-space-64, 256px);overflow:auto;border-radius:var(--rtk-border-radius-md, 8px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));outline:2px solid transparent;outline-offset:2px;display:flex;flex-direction:column;align-items:stretch}:host([size='sm']) .more-menu{bottom:var(--rtk-space-10, 40px)}.more-menu::-webkit-scrollbar{height:var(--rtk-space-0, 0px);width:var(--rtk-space-1\\.5, 6px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}.more-menu::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}"}},[257,"rtk-more-toggle",{states:[16],size:[513],iconPack:[16],t:[16]}]);function k(){"undefined"!=typeof customElements&&["rtk-more-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-more-toggle":customElements.get(s(t))||customElements.define(s(t),m);break;case"rtk-controlbar-button":customElements.get(s(t))||l();break;case"rtk-icon":customElements.get(s(t))||b();break;case"rtk-spinner":customElements.get(s(t))||d()}}))}p([n()],m.prototype,"states",void 0),p([n()],m.prototype,"iconPack",void 0),p([n()],m.prototype,"t",void 0),k();const f=m,u=k;export{f as RtkMoreToggle,u 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"./p-C0vp-Q7v.js";import{e as r,i as a}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"./p-C0vp-Q7v.js";import{e as r,i as a}from"./p-CtoKGHXg.js";import"./p-Bs5Z4Y29.js";import{S as l}from"./p-16s5ZSAZ.js";import{d as c}from"./p-D00_ZaOw.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as p}from"./p-DeQvmRpj.js";import{d as u}from"./p-DHSRRtn3.js";var h=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 d=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=r,this.t=a(),this.canDisable=!1,this.permissionsUpdateListener=()=>{var t;this.canDisable=!!(null===(t=this.meeting)||void 0===t?void 0:t.self.permissions.canDisableParticipantAudio)},this.onMuteAll=()=>{this.stateUpdate.emit({activeMuteAllConfirmation:!0})}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,e;null===(e=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===e||e.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){t&&(this.canDisable=!!(null==t?void 0:t.self.permissions.canDisableParticipantAudio),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}render(){if(!this.meeting)return null;if(!this.canDisable)return null;const t=this.t("mute_all");return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:this.iconPack.speaker_off,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,onClick:this.onMuteAll})))}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-mute-all-button",{variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],canDisable:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-mute-all-button","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-mute-all-button":customElements.get(n(t))||customElements.define(n(t),d);break;case"rtk-controlbar-button":customElements.get(n(t))||c();break;case"rtk-icon":customElements.get(n(t))||m();break;case"rtk-spinner":customElements.get(n(t))||p();break;case"rtk-tooltip":customElements.get(n(t))||u()}}))}h([l()],d.prototype,"meeting",void 0),h([l()],d.prototype,"iconPack",void 0),h([l()],d.prototype,"t",void 0),f();const k=d,b=f;export{k as RtkMuteAllButton,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-CCcFJzS9.js";const p=o,r=s;export{p as RtkMuteAllConfirmation,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-CT1iNAdo.js";const p=o,r=s;export{p as RtkNameTag,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,h as
|
|
1
|
+
import{p as t,H as r,h as e,d as a,t as i}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import{e as o,i as s}from"./p-CtoKGHXg.js";import"./p-Bs5Z4Y29.js";import{S as c}from"./p-16s5ZSAZ.js";import{d as n}from"./p-BYIBbfJ8.js";var p=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const l=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.t=s(),this.isScreenShare=!1,this.score=10,this.onMediaScoreUpdate=({kind:t,isScreenshare:r,score:e})=>{("video"===t||this.isScreenShare&&r)&&(this.score=e)}}connectedCallback(){this.participantChanged(this.participant)}participantChanged(t){t&&t.addListener("mediaScoreUpdate",this.onMediaScoreUpdate)}disconnectedCallback(){var t;null===(t=this.participant)||void 0===t||t.removeListener("mediaScoreUpdate",this.onMediaScoreUpdate)}render(){let t=Math.round(this.score/2),r="good";if(t>3)return null;switch(t<1&&(t=1),t){case 3:case 2:r="poor";break;case 1:r="poorest"}return e(a,null,e("rtk-icon",{icon:this.iconPack["signal_"+t],class:r}),e("rtk-icon",{icon:this.iconPack.signal_5,class:"bg-signal"}))}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{position:relative;display:block;height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}rtk-icon{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;height:100%;width:100%;--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}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))}:host([size='md']){height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.bg-signal{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:0;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}"}},[1,"rtk-network-indicator",{participant:[16],meeting:[16],iconPack:[16],t:[16],isScreenShare:[4,"is-screen-share"],score:[32]},void 0,{participant:[{participantChanged:0}]}]);function h(){"undefined"!=typeof customElements&&["rtk-network-indicator","rtk-icon"].forEach((t=>{switch(t){case"rtk-network-indicator":customElements.get(i(t))||customElements.define(i(t),l);break;case"rtk-icon":customElements.get(i(t))||n()}}))}p([c()],l.prototype,"meeting",void 0),p([c()],l.prototype,"iconPack",void 0),p([c()],l.prototype,"t",void 0),h();const k=l,v=h;export{k as RtkNetworkIndicator,v as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-DSiVRqn-.js";const p=o,r=s;export{p as RtkNotification,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,w as s,h as e,d as n,t as o}from"./p-BBHQOrFK.js";import{R as a}from"./p-B56IYWsZ.js";import{f as c}from"./p-CJsXePY3.js";import{c as h,i as r,e as d}from"./p-aXMUeMjU.js";import"./p-Rq_6y0HI.js";import{s as u}from"./p-C0vp-Q7v.js";import{f as l}from"./p-HuHRVcj4.js";import{S as p}from"./p-ByMjaTnP.js";import{d as g}from"./p-D6vw6bT2.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as f}from"./p-C_e0a6jQ.js";const v=2e3,k=Object.freeze({notifications:{participant_joined:!0,participant_left:!0,participant_joined_waitlist:!0,chat:!0,polls:!0,webinar:!0,tab_sync:!0,recording_started:!0,recording_stopped:!0},notification_sounds:{participant_joined:!0,participant_left:!0,chat:!0,polls:!0,webinar:!0,participant_joined_waitlist:!0},notification_duration:{participant_joined:2100,participant_left:2100,participant_joined_waitlist:4e3,chat:v,polls:v,webinar:v,tab_sync:v,recording_started:v,recording_stopped:v},participant_joined_sound_notification_limit:10,participant_chat_message_sound_notification_limit:10});var _=function(t,i,s,e){var n,o=arguments.length,a=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(o<3?n(a):o>3?n(i,s,a):n(i,s))||a);return o>3&&a&&Object.defineProperty(i,s,a),a};function j(t){return Object.keys(t).filter((i=>t[i]))}const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.permissions=k,this.enabledSounds=j(k.notification_sounds),this.config=h(),this.t=r(),this.iconPack=d,this.notifications=[],this.addStagePeersListeners=t=>{t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener)},this.removeStagePeersListeners=t=>{t.participants.joined.removeListener("participantJoined",this.participantJoinedListener),t.participants.joined.removeListener("participantLeft",this.participantLeftListener)},this.onNotification=t=>{this.add(t.detail);const i=t.detail.playSound;null!=i&&this.audio.play(i)},this.onRecordingUpdate=t=>{var i,s;"RECORDING"===t&&!1!==this.permissions.notifications.recording_started?this.add({id:"recording-started",icon:this.iconPack.recording,message:this.t("recording.started"),duration:null!==(i=this.permissions.notification_duration.recording_started)&&void 0!==i?i:v}):"STOPPING"===t&&!1!==this.permissions.notifications.recording_stopped&&this.add({id:"recording-stopped",icon:this.iconPack.stop_recording,message:this.t("recording.stopped"),duration:null!==(s=this.permissions.notification_duration.recording_stopped)&&void 0!==s?s:v})},this.paused=!1}connectedCallback(){"undefined"!=typeof document&&(null===document||void 0===document||document.addEventListener("rtkNotification",this.onNotification)),this.meetingChanged(this.meeting),this.configChanged(this.config),this.statesChanged(this.states)}clearListeners(t){var i,s,e,n,o,a,c,h;const r="LIVESTREAM"===t.meta.viewType;(r&&"ON_STAGE"===(null===(i=t.stage)||void 0===i?void 0:i.status)||!r)&&this.removeStagePeersListeners(t),this.chatUpdateListener&&(null===(s=t.chat)||void 0===s||s.removeListener("chatUpdate",this.chatUpdateListener)),this.pollUpdateListener&&(null===(e=t.polls)||void 0===e||e.removeListener("pollsUpdate",this.pollUpdateListener)),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener),this.stageRequestAccepted&&(null===(n=t.stage)||void 0===n||n.removeListener("stageRequestApproved",this.stageRequestAccepted)),this.stageRequestRejected&&(null===(o=t.stage)||void 0===o||o.removeListener("stageRequestRejected",this.stageRequestRejected)),this.newStageRequests&&(null===(a=t.stage)||void 0===a||a.removeListener("newStageRequest",this.newStageRequests)),this.stageStatusUpdateListener&&(null===(c=t.stage)||void 0===c||c.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)),null===(h=t.recording)||void 0===h||h.removeListener("recordingUpdate",this.onRecordingUpdate),clearTimeout(this.disconnectTimeout),t.self.removeListener("deviceUpdate",this.deviceUpdateListener)}disconnectedCallback(){var t;"undefined"!=typeof document&&(null===document||void 0===document||document.removeEventListener("rtkNotification",this.onNotification)),this.meeting&&(this.clearListeners(this.meeting),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.activeTabUpdateListener&&(null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)),this.peerStageStatusListener&&this.meeting.participants.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener))}meetingChanged(t,i){var s,e,n,o,h,r,d,p,g;if(clearTimeout(this.disconnectTimeout),i&&this.clearListeners(i),!t)return;const m="LIVESTREAM"===t.meta.viewType;this.audio=new a(t);const{notifications:f,notification_duration:v,notification_sounds:k}=this.permissions;if(this.participantJoinedListener=t=>{f.participant_joined&&this.add({id:t.id+"-joined",message:`${c(t.name)} ${this.t("notifications.joined")}`,image:t.picture,duration:v.participant_joined}),k.participant_joined&&this.canPlayParticipantJoinedSound()&&this.audio.play("joined")},this.participantLeftListener=t=>{const{socketState:{state:i}}=this.meeting.meta;f.participant_left&&"connected"!==i&&this.add({id:t.id+"-left",message:`${c(t.name)} ${this.t("notifications.left")}`,image:t.picture,duration:v.participant_left}),k.participant_left&&this.canPlayParticipantJoinedSound()&&this.audio.play("left")},this.waitlistedParticipantJoinedListener=t=>{if(!this.canAcceptWaitingRequests())return;const i=t.id+"-joined-waitlist";this.add({id:i,message:`${c(t.name)} ${this.t("notifications.requesting_to_join_meeting")}`,image:t.picture,duration:v.participant_joined_waitlist,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.participants.acceptWaitingRoomRequest(t.id),this.remove(i)}}}),k.participant_joined_waitlist&&this.canPlayParticipantJoinedSound()&&this.audio.play("message")},this.waitlistedParticipantLeftListener=t=>{this.remove(t.id+"-joined-waitlist")},this.chatUpdateListener=({message:i,action:s})=>{if("add"!==s)return;const e=l(i);if(null!=e){if(e.userId===t.self.userId)return;"text"===e.type&&(f.chat&&this.add({id:"message-"+Math.random().toString(36),icon:this.iconPack.chat,message:`${e.displayName}: ${e.message}`,duration:v.chat}),k.chat&&this.canPlayChatSound()&&this.audio.play("message"))}},this.pollUpdateListener=({polls:t,newPoll:i})=>{!1!==i&&(f.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.add({id:"poll-"+Math.random().toString(36),icon:this.iconPack.poll,message:`${this.t("notifications.new_poll_created_by")} ${t[t.length-1].createdBy}`,duration:v.polls}),k.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.canPlayChatSound()&&this.audio.play("message"))},this.deviceUpdateListener=({device:t,preview:i})=>{i||("audiooutput"===t.kind&&(this.audio.setDevice(t.deviceId),this.remove("speaker-switched"),this.add({id:"speaker-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.iconPack.speaker,duration:5e3})),"videoinput"===t.kind&&(this.remove("camera-switched"),this.add({id:"camera-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.videoEnabled?this.iconPack.video_on:this.iconPack.video_off,iconVariant:this.meeting.self.videoEnabled?"primary":"danger",duration:5e3})),"audioinput"===t.kind&&(this.remove("mic-switched"),this.add({id:"mic-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off,iconVariant:this.meeting.self.audioEnabled?"primary":"danger",duration:5e3})))},this.socketConnectionUpdateListener=({state:t,reconnectionAttempt:i,reconnected:s})=>{switch(t){case"connected":this.remove("socket"),s&&this.add({id:"socket",icon:this.iconPack.wifi,message:this.t("network.restored"),duration:3e3});break;case"disconnected":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.reconnecting")});break;case"reconnecting":i>=6?(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.disconnected"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})):i>=4&&(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.delay_extended")}));break;case"failed":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.leaving"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})}},this.activeTabUpdateListener=i=>{if(f.tab_sync)switch(i.type){case"plugin":const s=t.plugins.active.toArray().find((t=>t.id==i.id));null!=s&&this.add({id:"activeTab",message:`${this.t("notifications.plugin_switched_to")} ${s.name}`,duration:v.participant_joined});break;case"screenshare":const e=t.participants.joined.toArray().filter((t=>t.screenShareEnabled)).find((t=>t.id==i.id));null!=e&&this.add({id:"spotlight",message:`Now watching ${e.name}'s screen`,duration:v.webinar})}},this.peerStageStatusListener=t=>{"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(this.add({id:"stage-request-"+t.id,message:`${t.name} ${this.t("notifications.requested_to_join_stage")}`,duration:v.webinar,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.stage.grantAccess([t.userId]),this.remove("stage-request-"+t.id)}}}),k.webinar&&this.audio.play("joined")),"ON_STAGE"===t.stageStatus&&(this.add({id:"stage-joined-"+t.id,message:`${t.name} ${this.t("notifications.joined_stage")}`,duration:v.webinar}),k.webinar&&this.audio.play("joined"))},this.stageRequestAccepted=()=>{this.add({id:"stage-request-accepted",message:this.t("notifications.request_to_join_accepted"),duration:3e3})},this.stageRequestRejected=()=>{this.add({id:"stage-request-rejected",message:this.t("notifications.request_to_join_rejected"),duration:3e3})},this.newStageRequests=({count:t})=>{this.add({id:"new-stage-request",message:`You have ${t<0?"new stage":t+" pending"} request${1===t?"":"s"}`,duration:3e3})},this.stageStatusUpdateListener=i=>{"ON_STAGE"===i?this.addStagePeersListeners(t):this.removeStagePeersListeners(t)},!u(t)&&(null===(s=t.chat)||void 0===s||s.addListener("chatUpdate",this.chatUpdateListener)),"CHAT"===(null===(e=t.self.config.viewType)||void 0===e?void 0:""+e))return;const _=t.self.getCurrentDevices();null!=_.speaker&&this.audio.setDevice(_.speaker.deviceId),m?null===(n=t.stage)||void 0===n||n.on("stageStatusUpdate",this.stageStatusUpdateListener):this.addStagePeersListeners(t),this.canAcceptWaitingRequests()&&(t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),null===(o=t.polls)||void 0===o||o.addListener("pollsUpdate",this.pollUpdateListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),null===(h=t.meta)||void 0===h||h.addListener("activeTabUpdate",this.activeTabUpdateListener),null===(r=t.recording)||void 0===r||r.addListener("recordingUpdate",this.onRecordingUpdate),null===(d=t.stage)||void 0===d||d.addListener("stageRequestApproved",this.stageRequestAccepted),null===(p=t.stage)||void 0===p||p.addListener("stageRequestRejected",this.stageRequestRejected),t.self.permissions.stageEnabled&&t.self.permissions.acceptStageRequests&&(null===(g=t.stage)||void 0===g||g.addListener("newStageRequest",this.newStageRequests))}configChanged(t){null!=t&&null!=(null==t?void 0:t.config)&&(this.permissions=function(t){const i=Object.assign({},k);return null==t||(Object.assign(i.notification_sounds,t.notification_sounds),Object.assign(i.notifications,t.notifications),Object.assign(i.notification_duration,t.notification_duration),i.participant_chat_message_sound_notification_limit=t.participant_chat_message_sound_notification_limit,i.participant_joined_sound_notification_limit=t.participant_joined_sound_notification_limit),i}(t.config),this.enabledSounds=j(this.permissions.notification_sounds))}statesChanged(t){var i;if(null!=t){const s=!(null===(i=null==t?void 0:t.prefs)||void 0===i?void 0:i.muteNotificationSounds);for(const t of this.enabledSounds)t in this.permissions.notification_sounds&&(this.permissions.notification_sounds[t]=s)}}apiErrorListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:v,icon:this.iconPack.warning})}sendNotificationListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:v})}add(t){"visible"===document.visibilityState&&this.notifications.length<5&&(this.notifications=[...this.notifications,t])}remove(t){this.notifications=this.notifications.filter((i=>i.id!==t))}handleDismiss(t){t.stopPropagation();const i=t.detail,e=this.host.shadowRoot.querySelector(`[data-id="${i}"]`);null==e||e.classList.add("exit"),setTimeout((()=>{s((()=>{this.remove(i)}))}),400)}canPlayParticipantJoinedSound(){return null==this.permissions.participant_joined_sound_notification_limit||this.permissions.participant_joined_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_joined_sound_notification_limit}canPlayChatSound(){return null==this.permissions.participant_chat_message_sound_notification_limit||this.permissions.participant_chat_message_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_chat_message_sound_notification_limit}canAcceptWaitingRequests(){return this.permissions.notifications.participant_joined_waitlist&&this.meeting.self.permissions.acceptWaitingRequests}render(){if(this.meeting)return e(n,null,e("div",{onMouseEnter:()=>this.paused=!0,onFocusin:()=>this.paused=!0,onMouseLeave:()=>this.paused=!1,onFocusout:()=>this.paused=!1},this.notifications.map((t=>e("rtk-notification",{size:this.size,key:t.id,"data-id":t.id,notification:t,onRtkNotificationDismiss:t=>this.handleDismiss(t),iconPack:this.iconPack,paused:this.paused,t:this.t})))))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;z-index:100}rtk-notification{margin-top:var(--rtk-space-2, 8px)}"}},[1,"rtk-notifications",{meeting:[16],states:[16],config:[16],t:[16],size:[513],iconPack:[16],notifications:[32],paused:[32]},[[8,"rtkApiError","apiErrorListener"],[8,"rtkSendNotification","sendNotificationListener"]],{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}]);function w(){"undefined"!=typeof customElements&&["rtk-notifications","rtk-button","rtk-icon","rtk-notification"].forEach((t=>{switch(t){case"rtk-notifications":customElements.get(o(t))||customElements.define(o(t),b);break;case"rtk-button":customElements.get(o(t))||g();break;case"rtk-icon":customElements.get(o(t))||m();break;case"rtk-notification":customElements.get(o(t))||f()}}))}_([p()],b.prototype,"meeting",void 0),_([p()],b.prototype,"states",void 0),_([p()],b.prototype,"config",void 0),_([p()],b.prototype,"t",void 0),_([p()],b.prototype,"iconPack",void 0),w();const $=b,y=w;export{$ as RtkNotifications,y as defineCustomElement}
|
|
1
|
+
import{p as t,H as i,w as s,h as e,d as n,t as o}from"./p-BBHQOrFK.js";import{R as a}from"./p-B56IYWsZ.js";import{f as c}from"./p-CJsXePY3.js";import{c as h,i as r,e as d}from"./p-CtoKGHXg.js";import"./p-Rq_6y0HI.js";import{s as u}from"./p-C0vp-Q7v.js";import{f as l}from"./p-HuHRVcj4.js";import{S as p}from"./p-16s5ZSAZ.js";import{d as g}from"./p-D6vw6bT2.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as f}from"./p-DSiVRqn-.js";const v=2e3,k=Object.freeze({notifications:{participant_joined:!0,participant_left:!0,participant_joined_waitlist:!0,chat:!0,polls:!0,webinar:!0,tab_sync:!0,recording_started:!0,recording_stopped:!0},notification_sounds:{participant_joined:!0,participant_left:!0,chat:!0,polls:!0,webinar:!0,participant_joined_waitlist:!0},notification_duration:{participant_joined:2100,participant_left:2100,participant_joined_waitlist:4e3,chat:v,polls:v,webinar:v,tab_sync:v,recording_started:v,recording_stopped:v},participant_joined_sound_notification_limit:10,participant_chat_message_sound_notification_limit:10});var _=function(t,i,s,e){var n,o=arguments.length,a=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(a=(o<3?n(a):o>3?n(i,s,a):n(i,s))||a);return o>3&&a&&Object.defineProperty(i,s,a),a};function j(t){return Object.keys(t).filter((i=>t[i]))}const b=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.permissions=k,this.enabledSounds=j(k.notification_sounds),this.config=h(),this.t=r(),this.iconPack=d,this.notifications=[],this.addStagePeersListeners=t=>{t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener)},this.removeStagePeersListeners=t=>{t.participants.joined.removeListener("participantJoined",this.participantJoinedListener),t.participants.joined.removeListener("participantLeft",this.participantLeftListener)},this.onNotification=t=>{this.add(t.detail);const i=t.detail.playSound;null!=i&&this.audio.play(i)},this.onRecordingUpdate=t=>{var i,s;"RECORDING"===t&&!1!==this.permissions.notifications.recording_started?this.add({id:"recording-started",icon:this.iconPack.recording,message:this.t("recording.started"),duration:null!==(i=this.permissions.notification_duration.recording_started)&&void 0!==i?i:v}):"STOPPING"===t&&!1!==this.permissions.notifications.recording_stopped&&this.add({id:"recording-stopped",icon:this.iconPack.stop_recording,message:this.t("recording.stopped"),duration:null!==(s=this.permissions.notification_duration.recording_stopped)&&void 0!==s?s:v})},this.paused=!1}connectedCallback(){"undefined"!=typeof document&&(null===document||void 0===document||document.addEventListener("rtkNotification",this.onNotification)),this.meetingChanged(this.meeting),this.configChanged(this.config),this.statesChanged(this.states)}clearListeners(t){var i,s,e,n,o,a,c,h;const r="LIVESTREAM"===t.meta.viewType;(r&&"ON_STAGE"===(null===(i=t.stage)||void 0===i?void 0:i.status)||!r)&&this.removeStagePeersListeners(t),this.chatUpdateListener&&(null===(s=t.chat)||void 0===s||s.removeListener("chatUpdate",this.chatUpdateListener)),this.pollUpdateListener&&(null===(e=t.polls)||void 0===e||e.removeListener("pollsUpdate",this.pollUpdateListener)),t.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener),this.stageRequestAccepted&&(null===(n=t.stage)||void 0===n||n.removeListener("stageRequestApproved",this.stageRequestAccepted)),this.stageRequestRejected&&(null===(o=t.stage)||void 0===o||o.removeListener("stageRequestRejected",this.stageRequestRejected)),this.newStageRequests&&(null===(a=t.stage)||void 0===a||a.removeListener("newStageRequest",this.newStageRequests)),this.stageStatusUpdateListener&&(null===(c=t.stage)||void 0===c||c.removeListener("stageStatusUpdate",this.stageStatusUpdateListener)),null===(h=t.recording)||void 0===h||h.removeListener("recordingUpdate",this.onRecordingUpdate),clearTimeout(this.disconnectTimeout),t.self.removeListener("deviceUpdate",this.deviceUpdateListener)}disconnectedCallback(){var t;"undefined"!=typeof document&&(null===document||void 0===document||document.removeEventListener("rtkNotification",this.onNotification)),this.meeting&&(this.clearListeners(this.meeting),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.activeTabUpdateListener&&(null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)),this.peerStageStatusListener&&this.meeting.participants.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener))}meetingChanged(t,i){var s,e,n,o,h,r,d,p,g;if(clearTimeout(this.disconnectTimeout),i&&this.clearListeners(i),!t)return;const m="LIVESTREAM"===t.meta.viewType;this.audio=new a(t);const{notifications:f,notification_duration:v,notification_sounds:k}=this.permissions;if(this.participantJoinedListener=t=>{t.peerIdBeforeReconnect||(f.participant_joined&&this.add({id:t.id+"-joined",message:`${c(t.name)} ${this.t("notifications.joined")}`,image:t.picture,duration:v.participant_joined}),k.participant_joined&&this.canPlayParticipantJoinedSound()&&this.audio.play("joined"))},this.participantLeftListener=t=>{if(t.replacedByPeerId)return;const{socketState:{state:i}}=this.meeting.meta;f.participant_left&&"connected"===i&&this.add({id:t.id+"-left",message:`${c(t.name)} ${this.t("notifications.left")}`,image:t.picture,duration:v.participant_left}),k.participant_left&&this.canPlayParticipantJoinedSound()&&this.audio.play("left")},this.waitlistedParticipantJoinedListener=t=>{if(!this.canAcceptWaitingRequests())return;const i=t.id+"-joined-waitlist";this.add({id:i,message:`${c(t.name)} ${this.t("notifications.requesting_to_join_meeting")}`,image:t.picture,duration:v.participant_joined_waitlist,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.participants.acceptWaitingRoomRequest(t.id),this.remove(i)}}}),k.participant_joined_waitlist&&this.canPlayParticipantJoinedSound()&&this.audio.play("message")},this.waitlistedParticipantLeftListener=t=>{this.remove(t.id+"-joined-waitlist")},this.chatUpdateListener=({message:i,action:s})=>{if("add"!==s)return;const e=l(i);if(null!=e){if(e.userId===t.self.userId)return;"text"===e.type&&(f.chat&&this.add({id:"message-"+Math.random().toString(36),icon:this.iconPack.chat,message:`${e.displayName}: ${e.message}`,duration:v.chat}),k.chat&&this.canPlayChatSound()&&this.audio.play("message"))}},this.pollUpdateListener=({polls:t,newPoll:i})=>{!1!==i&&(f.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.add({id:"poll-"+Math.random().toString(36),icon:this.iconPack.poll,message:`${this.t("notifications.new_poll_created_by")} ${t[t.length-1].createdBy}`,duration:v.polls}),k.polls&&this.meeting.self.userId!==t[t.length-1].createdByUserId&&this.canPlayChatSound()&&this.audio.play("message"))},this.deviceUpdateListener=({device:t,preview:i})=>{i||("audiooutput"===t.kind&&(this.audio.setDevice(t.deviceId),this.remove("speaker-switched"),this.add({id:"speaker-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.iconPack.speaker,duration:5e3})),"videoinput"===t.kind&&(this.remove("camera-switched"),this.add({id:"camera-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.videoEnabled?this.iconPack.video_on:this.iconPack.video_off,iconVariant:this.meeting.self.videoEnabled?"primary":"danger",duration:5e3})),"audioinput"===t.kind&&(this.remove("mic-switched"),this.add({id:"mic-switched",message:`${this.t("notifications.connected_to")} ${t.label}`,icon:this.meeting.self.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off,iconVariant:this.meeting.self.audioEnabled?"primary":"danger",duration:5e3})))},this.socketConnectionUpdateListener=({state:t,reconnectionAttempt:i,reconnected:s})=>{switch(t){case"connected":this.remove("socket"),s&&this.add({id:"socket",icon:this.iconPack.wifi,message:this.t("network.restored"),duration:3e3});break;case"disconnected":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.reconnecting")});break;case"reconnecting":i>=6?(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.disconnected"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})):i>=4&&(this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.delay_extended")}));break;case"failed":this.remove("socket"),this.add({id:"socket",icon:this.iconPack.disconnected,message:this.t("network.leaving"),button:{text:this.t("end"),variant:"danger",onClick:()=>{var t;return null===(t=this.meeting)||void 0===t?void 0:t.leave()}}})}},this.activeTabUpdateListener=i=>{if(f.tab_sync)switch(i.type){case"plugin":const s=t.plugins.active.toArray().find((t=>t.id==i.id));null!=s&&this.add({id:"activeTab",message:`${this.t("notifications.plugin_switched_to")} ${s.name}`,duration:v.participant_joined});break;case"screenshare":const e=t.participants.joined.toArray().filter((t=>t.screenShareEnabled)).find((t=>t.id==i.id));null!=e&&this.add({id:"spotlight",message:`Now watching ${e.name}'s screen`,duration:v.webinar})}},this.peerStageStatusListener=t=>{"REQUESTED_TO_JOIN_STAGE"===t.stageStatus&&(this.add({id:"stage-request-"+t.id,message:`${t.name} ${this.t("notifications.requested_to_join_stage")}`,duration:v.webinar,button:{text:this.t("notifications.accept"),variant:"primary",onClick:async()=>{await this.meeting.stage.grantAccess([t.userId]),this.remove("stage-request-"+t.id)}}}),k.webinar&&this.audio.play("joined")),"ON_STAGE"===t.stageStatus&&(this.add({id:"stage-joined-"+t.id,message:`${t.name} ${this.t("notifications.joined_stage")}`,duration:v.webinar}),k.webinar&&this.audio.play("joined"))},this.stageRequestAccepted=()=>{this.add({id:"stage-request-accepted",message:this.t("notifications.request_to_join_accepted"),duration:3e3})},this.stageRequestRejected=()=>{this.add({id:"stage-request-rejected",message:this.t("notifications.request_to_join_rejected"),duration:3e3})},this.newStageRequests=({count:t})=>{this.add({id:"new-stage-request",message:`You have ${t<0?"new stage":t+" pending"} request${1===t?"":"s"}`,duration:3e3})},this.stageStatusUpdateListener=i=>{"ON_STAGE"===i?this.addStagePeersListeners(t):this.removeStagePeersListeners(t)},!u(t)&&(null===(s=t.chat)||void 0===s||s.addListener("chatUpdate",this.chatUpdateListener)),"CHAT"===(null===(e=t.self.config.viewType)||void 0===e?void 0:""+e))return;const _=t.self.getCurrentDevices();null!=_.speaker&&this.audio.setDevice(_.speaker.deviceId),m?null===(n=t.stage)||void 0===n||n.on("stageStatusUpdate",this.stageStatusUpdateListener):this.addStagePeersListeners(t),this.canAcceptWaitingRequests()&&(t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),null===(o=t.polls)||void 0===o||o.addListener("pollsUpdate",this.pollUpdateListener),t.self.addListener("deviceUpdate",this.deviceUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),null===(h=t.meta)||void 0===h||h.addListener("activeTabUpdate",this.activeTabUpdateListener),null===(r=t.recording)||void 0===r||r.addListener("recordingUpdate",this.onRecordingUpdate),null===(d=t.stage)||void 0===d||d.addListener("stageRequestApproved",this.stageRequestAccepted),null===(p=t.stage)||void 0===p||p.addListener("stageRequestRejected",this.stageRequestRejected),t.self.permissions.stageEnabled&&t.self.permissions.acceptStageRequests&&(null===(g=t.stage)||void 0===g||g.addListener("newStageRequest",this.newStageRequests))}configChanged(t){null!=t&&null!=(null==t?void 0:t.config)&&(this.permissions=function(t){const i=Object.assign({},k);return null==t||(Object.assign(i.notification_sounds,t.notification_sounds),Object.assign(i.notifications,t.notifications),Object.assign(i.notification_duration,t.notification_duration),i.participant_chat_message_sound_notification_limit=t.participant_chat_message_sound_notification_limit,i.participant_joined_sound_notification_limit=t.participant_joined_sound_notification_limit),i}(t.config),this.enabledSounds=j(this.permissions.notification_sounds))}statesChanged(t){var i;if(null!=t){const s=!(null===(i=null==t?void 0:t.prefs)||void 0===i?void 0:i.muteNotificationSounds);for(const t of this.enabledSounds)t in this.permissions.notification_sounds&&(this.permissions.notification_sounds[t]=s)}}apiErrorListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:v,icon:this.iconPack.warning})}sendNotificationListener({detail:t}){const{trace:i,message:s}=t;this.add({id:i,message:s,duration:v})}add(t){"visible"===document.visibilityState&&this.notifications.length<5&&(this.notifications=[...this.notifications,t])}remove(t){this.notifications=this.notifications.filter((i=>i.id!==t))}handleDismiss(t){t.stopPropagation();const i=t.detail,e=this.host.shadowRoot.querySelector(`[data-id="${i}"]`);null==e||e.classList.add("exit"),setTimeout((()=>{s((()=>{this.remove(i)}))}),400)}canPlayParticipantJoinedSound(){return null==this.permissions.participant_joined_sound_notification_limit||this.permissions.participant_joined_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_joined_sound_notification_limit}canPlayChatSound(){return null==this.permissions.participant_chat_message_sound_notification_limit||this.permissions.participant_chat_message_sound_notification_limit<=0||this.meeting.participants.count<=this.permissions.participant_chat_message_sound_notification_limit}canAcceptWaitingRequests(){return this.permissions.notifications.participant_joined_waitlist&&this.meeting.self.permissions.acceptWaitingRequests}render(){if(this.meeting)return e(n,null,e("div",{onMouseEnter:()=>this.paused=!0,onFocusin:()=>this.paused=!0,onMouseLeave:()=>this.paused=!1,onFocusout:()=>this.paused=!1},this.notifications.map((t=>e("rtk-notification",{size:this.size,key:t.id,"data-id":t.id,notification:t,onRtkNotificationDismiss:t=>this.handleDismiss(t),iconPack:this.iconPack,paused:this.paused,t:this.t})))))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;z-index:100}rtk-notification{margin-top:var(--rtk-space-2, 8px)}"}},[1,"rtk-notifications",{meeting:[16],states:[16],config:[16],t:[16],size:[513],iconPack:[16],notifications:[32],paused:[32]},[[8,"rtkApiError","apiErrorListener"],[8,"rtkSendNotification","sendNotificationListener"]],{meeting:[{meetingChanged:0}],config:[{configChanged:0}],states:[{statesChanged:0}]}]);function w(){"undefined"!=typeof customElements&&["rtk-notifications","rtk-button","rtk-icon","rtk-notification"].forEach((t=>{switch(t){case"rtk-notifications":customElements.get(o(t))||customElements.define(o(t),b);break;case"rtk-button":customElements.get(o(t))||g();break;case"rtk-icon":customElements.get(o(t))||m();break;case"rtk-notification":customElements.get(o(t))||f()}}))}_([p()],b.prototype,"meeting",void 0),_([p()],b.prototype,"states",void 0),_([p()],b.prototype,"config",void 0),_([p()],b.prototype,"t",void 0),_([p()],b.prototype,"iconPack",void 0),w();const $=b,y=w;export{$ as RtkNotifications,y as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-pOJlVled.js";const s=o,r=p;export{s as RtkOverlayModal,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-DYpMIlQ4.js";const s=o,r=p;export{s as RtkPaginatedList,r as defineCustomElement}
|
|
@@ -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-CtoKGHXg.js";import{a as o}from"./p-C0vp-Q7v.js";import{S as c}from"./p-16s5ZSAZ.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-CtoKGHXg.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as d}from"./p-16s5ZSAZ.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 o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-C78m8FSo.js";const m=o,p=s;export{m 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-Bev5JWZ0.js";const p=o,r=s;export{p as RtkParticipant,r 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 o}from"./p-BBHQOrFK.js";import{i as r}from"./p-CAqYddlg.js";import{e as n,i as h}from"./p-CtoKGHXg.js";import{S as d}from"./p-16s5ZSAZ.js";import{a as c}from"./p-C0vp-Q7v.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-CNRlJgcv.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;r(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,o=arguments.length,r=o<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 n=t.length-1;n>=0;n--)(e=t[n])&&(r=(o<3?e(r):o>3?e(i,s,r):e(i,s))||r);return o>3&&r&&Object.defineProperty(i,s,r),r};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 v(){"undefined"!=typeof customElements&&["rtk-participants-audio","rtk-button","rtk-dialog","rtk-icon"].forEach((t=>{switch(t){case"rtk-participants-audio":customElements.get(o(t))||customElements.define(o(t),b);break;case"rtk-button":customElements.get(o(t))||l();break;case"rtk-dialog":customElements.get(o(t))||p();break;case"rtk-icon":customElements.get(o(t))||u()}}))}m([d()],b.prototype,"meeting",void 0),m([d()],b.prototype,"iconPack",void 0),m([d()],b.prototype,"t",void 0),v();const f=b,g=v;export{f as RtkParticipantsAudio,g as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-CSdpb5b3.js";const s=o,r=p;export{s 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-Dft337Ll.js";const t=o,p=s;export{t as RtkParticipantsStageQueue,p 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-CtoKGHXg.js";import{a as c}from"./p-D9HGXWKc.js";import{S as h}from"./p-16s5ZSAZ.js";import{d as p}from"./p-D00_ZaOw.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-DeQvmRpj.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 o,d as r}from"./p-w39VkrD-.js";const s=o,p=r;export{s as RtkParticipantsViewerList,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as s}from"./p-CuQOcbEk.js";const p=o,r=s;export{p as RtkParticipantsWaitingList,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
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
|
+
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-CtoKGHXg.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as c}from"./p-16s5ZSAZ.js";import{d as l}from"./p-CudchGV-.js";import{d}from"./p-D6vw6bT2.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as m}from"./p-reX4rZOi.js";import{d as b}from"./p-H0SF5wed.js";import{d as u}from"./p-Bev5JWZ0.js";import{d as g}from"./p-CSdpb5b3.js";import{d as k}from"./p-Dft337Ll.js";import{d as v}from"./p-w39VkrD-.js";import{d as f}from"./p-CuQOcbEk.js";import{d as x}from"./p-lUHVcFOY.js";import{d as E}from"./p-DeQvmRpj.js";import{d as w}from"./p-DHSRRtn3.js";import{d as T}from"./p-l4woSzxj.js";import{d as j}from"./p-DLocSBO3.js";var S=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 O=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,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 y(){"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),O);break;case"rtk-avatar":customElements.get(e(t))||l();break;case"rtk-button":customElements.get(e(t))||d();break;case"rtk-icon":customElements.get(e(t))||h();break;case"rtk-menu-item":customElements.get(e(t))||m();break;case"rtk-menu-list":customElements.get(e(t))||b();break;case"rtk-participant":customElements.get(e(t))||u();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()],O.prototype,"meeting",void 0),S([c()],O.prototype,"states",void 0),S([c()],O.prototype,"config",void 0),S([c()],O.prototype,"iconPack",void 0),S([c()],O.prototype,"t",void 0),y();const C=O,_=y;export{C as RtkParticipants,_ as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as r,d as o}from"./p-Qr0iq3rP.js";const s=r,p=o;export{s as RtkPermissionsMessage,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as r}from"./p-DT1PR6Br.js";const s=o,p=r;export{s as RtkPinnedMessageSelector,p 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-CtoKGHXg.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as p}from"./p-16s5ZSAZ.js";import{d as l}from"./p-D00_ZaOw.js";import{d as m}from"./p-BYIBbfJ8.js";import{d as h}from"./p-DeQvmRpj.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
|
|
1
|
+
import{R as s,d as o}from"./p-FJMslKrI.js";const r=s,p=o;export{r as RtkPluginMain,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
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-
|
|
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-CtoKGHXg.js";import{b as r}from"./p-D9HGXWKc.js";import{S as c}from"./p-16s5ZSAZ.js";import{d as h}from"./p-D00_ZaOw.js";import{d}from"./p-BYIBbfJ8.js";import{d as u}from"./p-DeQvmRpj.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-BxM6yQDX.js";const p=o,r=s;export{p as RtkPlugins,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as r}from"./p-
|
|
1
|
+
import{R as o,d as r}from"./p-Jrghj_Rb.js";const s=o,p=r;export{s as RtkPollForm,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-BxJT0iOj.js";const p=o,r=s;export{p as RtkPoll,r 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-CtoKGHXg.js";import{d as l}from"./p-D9HGXWKc.js";import{S as c}from"./p-16s5ZSAZ.js";import{d as h}from"./p-D00_ZaOw.js";import{d}from"./p-BYIBbfJ8.js";import{d as p}from"./p-DeQvmRpj.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 o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-DTcPOR7t.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-CtoKGHXg.js";import{S as o}from"./p-16s5ZSAZ.js";import{d as c}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 o=t.length-1;o>=0;o--)(r=t[o])&&(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))||c()}}))}d([o()],p.prototype,"meeting",void 0),d([o()],p.prototype,"t",void 0),d([o()],p.prototype,"iconPack",void 0),l();const h=p,f=l;export{h as RtkRecordingIndicator,f as defineCustomElement}
|