@cloudflare/realtimekit-ui 2.2.0-staging.4 → 2.2.0-staging.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/cjs/{TextMessage-C_OMdhOv.js → TextMessage-C4d86cID.js} +1 -1
- package/dist/cjs/{chat-2G70V8h1.js → chat-_Z7QVSxx.js} +1 -1
- package/dist/cjs/{config-DNVD4for.js → config-C9cIVa2D.js} +5 -11
- package/dist/cjs/{debounce-CZxcmrOw.js → debounce-BaLnYFmQ.js} +1 -1
- package/dist/cjs/{index-bphCu7Kc.js → index-CSL0ebii.js} +1 -1
- package/dist/cjs/index.cjs.js +18 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{ui-kit-metadata-Db62SilF.js → merge-B4v4sEV3.js} +1 -290
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-visualizer_3.cjs.entry.js +5 -6
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +10 -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 +4 -4
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-header.cjs.entry.js +2 -2
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +4 -5
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-notification.cjs.entry.js +8 -6
- package/dist/cjs/rtk-notifications.cjs.entry.js +195 -205
- package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant_2.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +3 -4
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +2 -2
- package/dist/cjs/rtk-switch.cjs.entry.js +2 -2
- package/dist/cjs/rtk-transcript.cjs.entry.js +2 -2
- package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +6 -5
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +2 -2
- package/dist/cjs/ui-kit-metadata-BjBLJPVs.js +291 -0
- package/dist/cjs/{ui-store-XdzekVqK.js → ui-store-XQk2zaMR.js} +221 -8
- package/dist/collection/components/rtk-ai/rtk-ai.js +1 -1
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +1 -1
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +1 -1
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +1 -1
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +1 -1
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +1 -1
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +1 -1
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +1 -1
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +1 -1
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +1 -1
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +1 -1
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +1 -1
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +1 -1
- package/dist/collection/components/rtk-chat/rtk-chat.js +1 -1
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +1 -1
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +1 -1
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +1 -1
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +1 -1
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +1 -1
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +1 -1
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +1 -1
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +1 -1
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +1 -1
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +1 -1
- package/dist/collection/components/rtk-counter/rtk-counter.js +1 -1
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +1 -1
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +1 -1
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +1 -1
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +1 -1
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +1 -1
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +1 -1
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +1 -1
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +1 -1
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +1 -1
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +1 -1
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +1 -1
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +1 -1
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +1 -1
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +1 -1
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +1 -1
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +1 -1
- package/dist/collection/components/rtk-grid/rtk-grid.js +1 -1
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +1 -1
- package/dist/collection/components/rtk-header/rtk-header.js +1 -1
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +1 -1
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +1 -1
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +1 -1
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +1 -1
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +1 -1
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +1 -1
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +1 -1
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +1 -1
- package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +1 -1
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +1 -1
- package/dist/collection/components/rtk-menu/rtk-menu.js +1 -1
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +1 -1
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +1 -1
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +1 -1
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +1 -1
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +1 -1
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +1 -1
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +1 -1
- package/dist/collection/components/rtk-notification/rtk-notification.js +5 -3
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +194 -166
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +1 -1
- package/dist/collection/components/rtk-participant/rtk-participant.js +1 -1
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +1 -1
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +1 -1
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +1 -1
- package/dist/collection/components/rtk-participants/rtk-participants.js +1 -1
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +1 -1
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +1 -1
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +1 -1
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +1 -1
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +1 -1
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +1 -1
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +1 -1
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +1 -1
- package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +1 -1
- package/dist/collection/components/rtk-polls/rtk-polls.js +1 -1
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +1 -1
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +1 -1
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +1 -1
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +1 -1
- 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 +1 -1
- 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-spotlight-grid/rtk-spotlight-grid.js +1 -1
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +1 -1
- package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +1 -1
- package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
- 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 +1 -1
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +1 -1
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +1 -1
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +1 -1
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +1 -1
- package/dist/collection/lib/default-ui-config.js +2 -8
- package/dist/collection/lib/lang/default-language.js +2 -0
- package/dist/collection/lib/notification.js +56 -2
- package/dist/collection/types/ui-config/config.js +101 -13
- package/dist/collection/utils/config.js +3 -8
- package/dist/collection/utils/notification.js +12 -3
- package/dist/collection/utils/ui-kit-metadata.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Dft337Ll.js → p-0DTiM_we.js} +1 -1
- package/dist/components/{p-DxWuP9W-.js → p-1C_TdKq0.js} +1 -1
- package/dist/components/{p-CX0Xm7nC.js → p-1J7p9yTO.js} +1 -1
- package/dist/components/{p-woxb-Bmm.js → p-453sV-Ir.js} +1 -1
- package/dist/components/{p-DQpLF7Tl.js → p-6A_cBfi7.js} +1 -1
- package/dist/components/{p-FJMslKrI.js → p-B-L_tmky.js} +1 -1
- package/dist/components/{p-W6qOF1ab.js → p-B5e4-Gnb.js} +1 -1
- package/dist/components/{p-DTlvGHSC.js → p-B7ZjIFa-.js} +1 -1
- package/dist/components/{p-BIkikWuB.js → p-B8xh8FL-.js} +1 -1
- package/dist/components/{p-BMEVA63X.js → p-BDmVHB8l.js} +1 -1
- package/dist/components/{p-DeQvmRpj.js → p-BJ7Hcvk1.js} +1 -1
- package/dist/components/p-BLyVHBPm.js +1 -0
- package/dist/components/{p-CkAYE3S8.js → p-BQ-x6_xE.js} +1 -1
- package/dist/components/{p-CudchGV-.js → p-BY_hQMNu.js} +1 -1
- package/dist/components/{p-CNRlJgcv.js → p-BaCQqa-Q.js} +1 -1
- package/dist/components/p-BbVYO_6g.js +1 -0
- package/dist/components/{p-CCcFJzS9.js → p-BbdR8jiw.js} +1 -1
- package/dist/components/{p-lUHVcFOY.js → p-Bhp9Zffa.js} +1 -1
- package/dist/components/{p-DR4HIK_J.js → p-BkWaCvJV.js} +1 -1
- package/dist/components/{p-DT1PR6Br.js → p-BmjopjI3.js} +1 -1
- package/dist/components/{p-BrWD_P9J.js → p-Bo1ku_2a.js} +1 -1
- package/dist/components/{p-CjnaOcqP.js → p-BowkkEiR.js} +1 -1
- package/dist/components/p-BtMpJ0mM.js +1 -0
- package/dist/components/{p-CuQOcbEk.js → p-BwnnHi0H.js} +1 -1
- package/dist/components/{p-C78m8FSo.js → p-BwpYVCMj.js} +1 -1
- package/dist/components/{p-SuJdlCN6.js → p-Bxt73ql2.js} +1 -1
- package/dist/components/{p-DTcPOR7t.js → p-C-Jht7Ou.js} +1 -1
- package/dist/components/{p-C7kzxj2U.js → p-C7qQzBOW.js} +1 -1
- package/dist/components/{p-CjAIMy9F.js → p-CFL-ALsL.js} +1 -1
- package/dist/components/{p-16s5ZSAZ.js → p-CNJG60uZ.js} +1 -1
- package/dist/components/{p-D3hW0Kbk.js → p-CNY9L4u1.js} +1 -1
- package/dist/components/{p-CSQnL_EP.js → p-CP4anCBG.js} +1 -1
- package/dist/components/{p-DGf0eDeq.js → p-CQa16w_c.js} +1 -1
- package/dist/components/{p-BxJT0iOj.js → p-CSW-it45.js} +1 -1
- package/dist/components/{p-DYpMIlQ4.js → p-CVy_5Tvb.js} +1 -1
- package/dist/components/{p-D7C_eMze.js → p-CY6CL9kK.js} +1 -1
- package/dist/components/{p-De3mM3M-.js → p-C_fSXjwp.js} +1 -1
- package/dist/components/{p-Bev5JWZ0.js → p-Cb3kcQH8.js} +1 -1
- package/dist/components/{p-BxM6yQDX.js → p-CjID2TEf.js} +1 -1
- package/dist/components/{p-wCbKvvTJ.js → p-CjNPU4tr.js} +1 -1
- package/dist/components/{p-H0SF5wed.js → p-CoiejzBd.js} +1 -1
- package/dist/components/{p-BDZmvSZ5.js → p-CpLLOHOq.js} +1 -1
- package/dist/components/p-CsFRsJd2.js +1 -0
- package/dist/components/{p-CSdpb5b3.js → p-CsTjOsQ7.js} +1 -1
- package/dist/components/{p-DstiJHuo.js → p-CsY7NAuq.js} +1 -1
- package/dist/components/{p-D00_ZaOw.js → p-CshWFMrN.js} +1 -1
- package/dist/components/{p-pOJlVled.js → p-D1dX_iSl.js} +1 -1
- package/dist/components/{p-p_mTGyE6.js → p-D1ihibWt.js} +1 -1
- package/dist/components/{p-DzU0ms1z.js → p-D3S9CkeA.js} +1 -1
- package/dist/components/{p-CBBiuExR.js → p-D5NZi5H5.js} +1 -1
- package/dist/components/{p-EcdS-L-q.js → p-D6u-SXpn.js} +1 -1
- package/dist/components/{p-BWM_mzxz.js → p-D8OMvJbR.js} +1 -1
- package/dist/components/p-DIblgdpF.js +1 -0
- package/dist/components/{p-reX4rZOi.js → p-DLWL-o6Z.js} +1 -1
- package/dist/components/{p-BpMexaGX.js → p-DRa-BDek.js} +1 -1
- package/dist/components/{p-CAePd-oD.js → p-DW2Js6u1.js} +1 -1
- package/dist/components/p-DWYKl0rg.js +1 -0
- package/dist/components/{p-CT1iNAdo.js → p-DWgMo0uM.js} +1 -1
- package/dist/components/{p-TzHbL-Yw.js → p-D_HYgg0D.js} +1 -1
- package/dist/components/{p-Dvobsim-.js → p-D_Zth43B.js} +1 -1
- package/dist/components/{p-CddkXbJO.js → p-DcGAhFPL.js} +1 -1
- package/dist/components/{p-Qr0iq3rP.js → p-DiO4NkoA.js} +1 -1
- package/dist/components/{p-DDXAdlei.js → p-DtCdkVUQ.js} +1 -1
- package/dist/components/{p-BOs3IQB-.js → p-DuB7bImP.js} +1 -1
- package/dist/components/{p-B2HJVmyW.js → p-DuheZw1w.js} +1 -1
- package/dist/components/{p-BX-q0U6y.js → p-DwHaSUu3.js} +1 -1
- package/dist/components/{p-IIcKCSrk.js → p-DxynE7R4.js} +1 -1
- package/dist/components/p-Dy7c6clK.js +1 -0
- package/dist/components/{p-w39VkrD-.js → p-FI--hA8I.js} +1 -1
- package/dist/components/{p-bf44p3D-.js → p-K3aT9e86.js} +1 -1
- package/dist/components/{p-qzUtJdPs.js → p-LlsVAS7r.js} +1 -1
- package/dist/components/{p-BDBQ3yNX.js → p-R3NB2Rxd.js} +1 -1
- package/dist/components/{p-CuXI1Bo9.js → p-SJeISbFm.js} +1 -1
- package/dist/components/{p-TVGlb-lM.js → p-aAhxhPu6.js} +1 -1
- package/dist/components/{p-DCxpDhJk.js → p-ralyxXdZ.js} +1 -1
- package/dist/components/{p-Jrghj_Rb.js → p-sG2nShz-.js} +1 -1
- package/dist/components/{p-C27_nsxU.js → p-w2nCsug-.js} +1 -1
- package/dist/components/rtk-ai-toggle.js +1 -1
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +1 -1
- package/dist/components/rtk-audio-grid.js +1 -1
- package/dist/components/rtk-audio-tile.js +1 -1
- package/dist/components/rtk-audio-visualizer.js +1 -1
- package/dist/components/rtk-avatar.js +1 -1
- package/dist/components/rtk-breakout-room-manager.js +1 -1
- package/dist/components/rtk-breakout-room-participants.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.js +1 -1
- package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-camera-selector.js +1 -1
- package/dist/components/rtk-camera-toggle.js +1 -1
- package/dist/components/rtk-caption-toggle.js +1 -1
- package/dist/components/rtk-chat-composer-ui.js +1 -1
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-header.js +1 -1
- package/dist/components/rtk-chat-message.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-messages-ui.js +1 -1
- package/dist/components/rtk-chat-search-results.js +1 -1
- package/dist/components/rtk-chat-selector-ui.js +1 -1
- package/dist/components/rtk-chat-selector.js +1 -1
- package/dist/components/rtk-chat-toggle.js +1 -1
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +1 -1
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +1 -1
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-audio.js +1 -1
- package/dist/components/rtk-debugger-screenshare.js +1 -1
- package/dist/components/rtk-debugger-system.js +1 -1
- package/dist/components/rtk-debugger-toggle.js +1 -1
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +1 -1
- package/dist/components/rtk-dialog.js +1 -1
- package/dist/components/rtk-draft-attachment-view.js +1 -1
- package/dist/components/rtk-emoji-picker-button.js +1 -1
- package/dist/components/rtk-emoji-picker.js +1 -1
- package/dist/components/rtk-ended-screen.js +1 -1
- package/dist/components/rtk-file-dropzone.js +1 -1
- package/dist/components/rtk-file-message-view.js +1 -1
- package/dist/components/rtk-file-message.js +1 -1
- package/dist/components/rtk-file-picker-button.js +1 -1
- package/dist/components/rtk-fullscreen-toggle.js +1 -1
- package/dist/components/rtk-grid-pagination.js +1 -1
- package/dist/components/rtk-grid.js +1 -1
- package/dist/components/rtk-header.js +1 -1
- package/dist/components/rtk-idle-screen.js +1 -1
- package/dist/components/rtk-image-message-view.js +1 -1
- package/dist/components/rtk-image-message.js +1 -1
- package/dist/components/rtk-image-viewer.js +1 -1
- package/dist/components/rtk-information-tooltip.js +1 -1
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +1 -1
- package/dist/components/rtk-leave-meeting.js +1 -1
- package/dist/components/rtk-livestream-indicator.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-livestream-toggle.js +1 -1
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-meeting-title.js +1 -1
- package/dist/components/rtk-meeting.js +1 -1
- package/dist/components/rtk-menu-item.js +1 -1
- package/dist/components/rtk-menu-list.js +1 -1
- package/dist/components/rtk-menu.js +1 -1
- package/dist/components/rtk-message-list-view.js +1 -1
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +1 -1
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +1 -1
- package/dist/components/rtk-more-toggle.js +1 -1
- package/dist/components/rtk-mute-all-button.js +1 -1
- package/dist/components/rtk-mute-all-confirmation.js +1 -1
- package/dist/components/rtk-name-tag.js +1 -1
- package/dist/components/rtk-network-indicator.js +1 -1
- package/dist/components/rtk-notification.js +1 -1
- package/dist/components/rtk-notifications.js +1 -1
- package/dist/components/rtk-overlay-modal.js +1 -1
- package/dist/components/rtk-paginated-list.js +1 -1
- package/dist/components/rtk-participant-count.js +1 -1
- package/dist/components/rtk-participant-setup.js +1 -1
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +1 -1
- package/dist/components/rtk-participants-stage-list.js +1 -1
- package/dist/components/rtk-participants-stage-queue.js +1 -1
- package/dist/components/rtk-participants-toggle.js +1 -1
- package/dist/components/rtk-participants-viewer-list.js +1 -1
- package/dist/components/rtk-participants-waiting-list.js +1 -1
- package/dist/components/rtk-participants.js +1 -1
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pinned-message-selector.js +1 -1
- package/dist/components/rtk-pip-toggle.js +1 -1
- package/dist/components/rtk-plugin-main.js +1 -1
- package/dist/components/rtk-plugins-toggle.js +1 -1
- package/dist/components/rtk-plugins.js +1 -1
- package/dist/components/rtk-poll-form.js +1 -1
- package/dist/components/rtk-poll.js +1 -1
- package/dist/components/rtk-polls-toggle.js +1 -1
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +1 -1
- package/dist/components/rtk-recording-toggle.js +1 -1
- package/dist/components/rtk-screen-share-toggle.js +1 -1
- package/dist/components/rtk-screenshare-view.js +1 -1
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +1 -1
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +1 -1
- package/dist/components/rtk-setup-screen.js +1 -1
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +1 -1
- package/dist/components/rtk-simple-grid.js +1 -1
- package/dist/components/rtk-speaker-selector.js +1 -1
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +1 -1
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +1 -1
- package/dist/components/rtk-stage.js +1 -1
- package/dist/components/rtk-switch.js +1 -1
- package/dist/components/rtk-tab-bar.js +1 -1
- package/dist/components/rtk-text-composer-view.js +1 -1
- package/dist/components/rtk-text-message.js +1 -1
- package/dist/components/rtk-transcript.js +1 -1
- package/dist/components/rtk-transcripts.js +1 -1
- package/dist/components/rtk-ui-provider.js +1 -1
- package/dist/components/rtk-viewer-count.js +1 -1
- package/dist/components/rtk-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +1712 -736
- package/dist/esm/{TextMessage-Cisroi3Z.js → TextMessage-yvgmoyno.js} +1 -1
- package/dist/esm/{chat-CNKqhbws.js → chat-C76CTGaE.js} +1 -1
- package/dist/esm/{config-DRqODcfp.js → config-DP9lPGyT.js} +4 -10
- package/dist/esm/{debounce-B5AGeS26.js → debounce-wUcmtMrZ.js} +1 -1
- package/dist/esm/{index-vqQJVJal.js → index-BqWqJ0QM.js} +1 -1
- package/dist/esm/index.js +19 -11
- package/dist/esm/loader.js +692 -534
- package/dist/esm/{ui-kit-metadata-CIMhjc7J.js → merge-CyAJSnqi.js} +2 -287
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-ai-toggle.entry.js +2 -2
- package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
- package/dist/esm/rtk-ai_3.entry.js +2 -2
- package/dist/esm/rtk-audio-grid.entry.js +2 -2
- package/dist/esm/rtk-audio-tile.entry.js +2 -2
- package/dist/esm/rtk-audio-visualizer_3.entry.js +2 -3
- package/dist/esm/rtk-avatar_26.entry.js +7 -6
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
- package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
- package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
- package/dist/esm/rtk-camera-toggle.entry.js +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 +4 -4
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +2 -2
- package/dist/esm/rtk-header.entry.js +2 -2
- package/dist/esm/rtk-idle-screen.entry.js +2 -2
- package/dist/esm/rtk-image-viewer.entry.js +2 -2
- package/dist/esm/rtk-information-tooltip.entry.js +2 -2
- package/dist/esm/rtk-leave-button.entry.js +2 -2
- package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
- package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
- package/dist/esm/rtk-logo.entry.js +2 -2
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-mic-toggle.entry.js +2 -3
- package/dist/esm/rtk-mixed-grid.entry.js +2 -2
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-mute-all-button.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +2 -2
- package/dist/esm/rtk-network-indicator.entry.js +2 -2
- package/dist/esm/rtk-notification.entry.js +8 -6
- package/dist/esm/rtk-notifications.entry.js +194 -204
- package/dist/esm/rtk-participant-count.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +2 -2
- package/dist/esm/rtk-participant_2.entry.js +3 -3
- package/dist/esm/rtk-participants-audio.entry.js +2 -3
- package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
- package/dist/esm/rtk-participants-toggle.entry.js +2 -2
- package/dist/esm/rtk-participants.entry.js +3 -3
- package/dist/esm/rtk-pip-toggle.entry.js +2 -2
- package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
- package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
- package/dist/esm/rtk-poll_2.entry.js +2 -2
- package/dist/esm/rtk-polls-toggle.entry.js +2 -2
- package/dist/esm/rtk-recording-indicator.entry.js +2 -2
- package/dist/esm/rtk-recording-toggle.entry.js +2 -2
- package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
- package/dist/esm/rtk-screenshare-view.entry.js +2 -2
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +2 -2
- package/dist/esm/rtk-settings.entry.js +2 -2
- package/dist/esm/rtk-setup-screen.entry.js +2 -2
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-sidebar.entry.js +2 -2
- package/dist/esm/rtk-simple-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
- package/dist/esm/rtk-stage-toggle.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +2 -2
- package/dist/esm/rtk-switch.entry.js +2 -2
- package/dist/esm/rtk-transcript.entry.js +2 -2
- package/dist/esm/rtk-transcripts.entry.js +2 -2
- package/dist/esm/rtk-ui-provider.entry.js +3 -2
- package/dist/esm/rtk-waiting-screen.entry.js +2 -2
- package/dist/esm/ui-kit-metadata-BLyVHBPm.js +286 -0
- package/dist/esm/{ui-store-GPnCYQx5.js → ui-store-BDu-JN-c.js} +217 -9
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-b42581e5.entry.js → p-00d76359.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d85eea5e.entry.js → p-09c97ce7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-848260b5.entry.js → p-1649cd9b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3ade5cae.entry.js → p-1cb35848.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6d87671d.entry.js → p-20ca622e.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6e07513b.entry.js → p-212b81f9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-216d317b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f8bd6ef6.entry.js → p-21d6fbde.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7dc40b64.entry.js → p-2630a30f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-700e62e5.entry.js → p-2666b720.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-25550cf9.entry.js → p-29ca5030.entry.js} +1 -1
- package/dist/realtimekit-ui/p-2ac37cd3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-39915b72.entry.js → p-2b4a9798.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c7bd4da5.entry.js → p-2cc93fdf.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7407e5fb.entry.js → p-2cffd80b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a25790f7.entry.js → p-2e00a64f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-151eb58e.entry.js → p-2f225d81.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-37feaeaf.entry.js → p-31cff3b4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8662827c.entry.js → p-339d78e0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-70a4d8e8.entry.js → p-39f4dfc2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3bb06c62.entry.js → p-3df86b16.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cc198be3.entry.js → p-40b5a3f6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-266ca900.entry.js → p-40d669f7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-465e03e3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-7c511cf6.entry.js → p-468bbf25.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e2131b56.entry.js → p-46f5bd65.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0760dc9f.entry.js → p-4a2791af.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-43c99dd3.entry.js → p-4d1c520d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6747ca25.entry.js → p-4f4f74de.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d52833d6.entry.js → p-50964a67.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-dfce1619.entry.js → p-590d9a6f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8751b85c.entry.js → p-59e85491.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e1e2aa29.entry.js → p-5a316687.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d797e61a.entry.js → p-5ad79e40.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0558ad3d.entry.js → p-65d4e49f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c620f917.entry.js → p-66c16b99.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-452d0941.entry.js → p-679cff34.entry.js} +1 -1
- package/dist/realtimekit-ui/p-68355fad.entry.js +1 -0
- package/dist/realtimekit-ui/{p-0a9509ea.entry.js → p-6c6da19f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d3d39178.entry.js → p-6db3f0b3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8dbac5e8.entry.js → p-705c69ef.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6b0a4780.entry.js → p-71bd9c93.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c25ef602.entry.js → p-780e1278.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-aaad0c85.entry.js → p-7b95fcea.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-de8820d1.entry.js → p-7f6cd05d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1ff5cfd7.entry.js → p-80e72f3b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-81b64fa2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-11d7c342.entry.js → p-866df7d3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-df7a6471.entry.js → p-8a113cfb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0e89ddbe.entry.js → p-915dec6c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5a2c4639.entry.js → p-9169be62.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-831a4a72.entry.js → p-95f35e70.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b40651e7.entry.js → p-983ca822.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-76bea9ba.entry.js → p-98e3caf7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-9f5eb163.entry.js +1 -0
- package/dist/realtimekit-ui/p-BLyVHBPm.js +1 -0
- package/dist/realtimekit-ui/p-Bzni6MqK.js +1 -0
- package/dist/realtimekit-ui/p-DEqeU73W.js +1 -0
- package/dist/realtimekit-ui/p-DYdFtxVz.js +1 -0
- package/dist/realtimekit-ui/{p-Dk8hCkEY.js → p-DjuLCOXk.js} +1 -1
- package/dist/realtimekit-ui/{p-wx9iq4MT.js → p-KiBrYIp4.js} +1 -1
- package/dist/realtimekit-ui/{p-cb58b187.entry.js → p-a058849b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e9d6b2fc.entry.js → p-a2fd9cf2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-dc302f4a.entry.js → p-a3177447.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-727ff3ca.entry.js → p-a583cc88.entry.js} +1 -1
- package/dist/realtimekit-ui/p-aIVgtPUf.js +1 -0
- package/dist/realtimekit-ui/{p-7275df7a.entry.js → p-ad8e4409.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-db426f29.entry.js → p-b16b8339.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9b8c79ab.entry.js → p-baa83772.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e59aa67d.entry.js → p-be12bd8a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e7e918c5.entry.js → p-c132536f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c7916a62.entry.js → p-ca45d169.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e155abc4.entry.js → p-d1422675.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-226a8500.entry.js → p-d33dcab8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d3bfc744.entry.js → p-d6177836.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-06dfb82f.entry.js → p-dfd083c9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-577d3d6c.entry.js → p-e0fbcd2f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cfd6260a.entry.js → p-e2c07b34.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8e588d5b.entry.js → p-e48f5b65.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3c813199.entry.js → p-ea3591dd.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ba1b67a4.entry.js → p-ea9632fb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5a0a0b08.entry.js → p-ebc2284a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-352f5966.entry.js → p-ed4e8032.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-da137b88.entry.js → p-f163f7d0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cea57cb7.entry.js → p-f42d1ca8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f9e1d361.entry.js → p-f6964364.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cc509d39.entry.js → p-f6cc50c1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d3d70e76.entry.js → p-fb638463.entry.js} +1 -1
- package/dist/realtimekit-ui/p-fe56d5f4.entry.js +1 -0
- package/dist/realtimekit-ui/{p-5bbaaee6.entry.js → p-febe71c5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-im1XlbcC.js → p-kAmDs9rB.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-notifications/rtk-notifications.d.ts +12 -3
- package/dist/types/lib/lang/default-language.d.ts +2 -0
- package/dist/types/lib/notification.d.ts +31 -2
- package/dist/types/types/ui-config/config.d.ts +49 -10
- package/dist/types/utils/notification.d.ts +11 -2
- package/package.json +1 -1
- package/dist/cjs/browser-qKzDfwbO.js +0 -5
- package/dist/cjs/notification-Bny5fHfy.js +0 -39
- package/dist/components/p-B56IYWsZ.js +0 -1
- package/dist/components/p-CAqYddlg.js +0 -1
- package/dist/components/p-ChM1gCIW.js +0 -1
- package/dist/components/p-CtoKGHXg.js +0 -1
- package/dist/components/p-DSiVRqn-.js +0 -1
- package/dist/components/p-DU_5lopz.js +0 -1
- package/dist/components/p-cWoLKHJ3.js +0 -1
- package/dist/components/p-fQitJHsh.js +0 -1
- package/dist/esm/browser-CAqYddlg.js +0 -3
- package/dist/esm/notification-DZgheLdK.js +0 -37
- package/dist/realtimekit-ui/p-1ffa8cca.entry.js +0 -1
- package/dist/realtimekit-ui/p-3d663797.entry.js +0 -1
- package/dist/realtimekit-ui/p-41bc3d1f.entry.js +0 -1
- package/dist/realtimekit-ui/p-7955b7c2.entry.js +0 -1
- package/dist/realtimekit-ui/p-B56IYWsZ.js +0 -1
- package/dist/realtimekit-ui/p-B8OtSZCI.js +0 -1
- package/dist/realtimekit-ui/p-CAqYddlg.js +0 -1
- package/dist/realtimekit-ui/p-CkEIiUAw.js +0 -1
- package/dist/realtimekit-ui/p-DITWlMXR.js +0 -1
- package/dist/realtimekit-ui/p-DkW8b_It.js +0 -1
- package/dist/realtimekit-ui/p-a634bf29.entry.js +0 -1
- package/dist/realtimekit-ui/p-d0fe5d91.entry.js +0 -1
- package/dist/realtimekit-ui/p-fde9e0ea.entry.js +0 -1
|
@@ -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-BbVYO_6g.js";import{S as c}from"./p-CNJG60uZ.js";import{d as o}from"./p-BYIBbfJ8.js";var d=function(t,e,i,a){var r,n=arguments.length,s=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,i,a);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(s=(n<3?r(s):n>3?r(e,i,s):r(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const p=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.t=n(),this.iconPack=s,this.setIsRecording=t=>{this.isRecording="RECORDING"===t}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.updateRecordingStatus)}meetingChanged(t){null!=t&&(this.setIsRecording(t.recording.recordingState),this.updateRecordingStatus=t=>{this.setIsRecording(t)},t.recording.addListener("recordingUpdate",this.updateRecordingStatus))}render(){return i(a,{key:"c4246e4721b0ca5fbc689a90688f1239df60ecad","data-hidden":!this.isRecording},this.isRecording&&i("div",{key:"ce19b3649bba8a91cd22770534762c932b934557",class:"indicator","aria-label":this.t("recording.indicator"),part:"indicator"},i("rtk-icon",{key:"9d2ae89fef0d4e1e0d3546f765f48be8a6da6b5a",icon:this.iconPack.recording,"aria-hidden":!0,tabIndex:-1,part:"icon"}),i("span",{key:"cedf044a1a96c164022d734be2baf7e568fb849e"},this.t("recording.label"))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}:host[size='sm']{margin-left:var(--rtk-space-1, 4px);margin-right:var(--rtk-space-1, 4px)}.indicator{display:flex;flex-direction:row;align-items:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);animation:blink 4s linear infinite}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}:host([size='sm']) .indicator span{display:none}@keyframes blink{0%,10%{opacity:0}11%,100%{opacity:1}}"}},[1,"rtk-recording-indicator",{meeting:[16],size:[513],t:[16],iconPack:[16],isRecording:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function l(){"undefined"!=typeof customElements&&["rtk-recording-indicator","rtk-icon"].forEach((t=>{switch(t){case"rtk-recording-indicator":customElements.get(r(t))||customElements.define(r(t),p);break;case"rtk-icon":customElements.get(r(t))||o()}}))}d([c()],p.prototype,"meeting",void 0),d([c()],p.prototype,"t",void 0),d([c()],p.prototype,"iconPack",void 0),l();const h=p,f=l;export{h as RtkRecordingIndicator,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as e,h as i,d as s,t as n}from"./p-BBHQOrFK.js";import{i as o,e as a}from"./p-
|
|
1
|
+
import{p as t,H as r,c as e,h as i,d as s,t as n}from"./p-BBHQOrFK.js";import{i as o,e as a}from"./p-BbVYO_6g.js";import{S as c}from"./p-CNJG60uZ.js";import{d as h}from"./p-CshWFMrN.js";import{d}from"./p-BYIBbfJ8.js";import{d as l}from"./p-BJ7Hcvk1.js";var g=function(t,r,e,i){var s,n=arguments.length,o=n<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,e,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(r,e,o):s(r,e))||o);return n>3&&o&&Object.defineProperty(r,e,o),o};const u=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.apiError=e(this,"rtkApiError",7),this.variant="button",this.t=o(),this.iconPack=a,this.disabled=!1,this.canRecord=!1,this.permissionsUpdateListener=()=>{this.canRecord=!0===this.meeting.self.permissions.canRecord},this.toggleRecording=async()=>{var t,r,e;if(!this.isLoading()&&!this.disabled)switch(this.recordingState){case"IDLE":try{return void await(null===(t=this.meeting)||void 0===t?void 0:t.recording.start())}catch(t){const r="1005"===(null==t?void 0:t.code);this.apiError.emit({trace:this.t("recording.start"),message:this.t(r?"recording.error.already_recording":"recording.error.start")})}return;case"RECORDING":try{return void await(null===(r=this.meeting)||void 0===r?void 0:r.recording.stop())}catch(t){this.apiError.emit({trace:this.t("recording.stop"),message:this.t("recording.error.stop")})}return;case"PAUSED":try{return void await(null===(e=this.meeting)||void 0===e?void 0:e.recording.resume())}catch(t){this.apiError.emit({trace:this.t("recording.resume"),message:this.t("recording.error.resume")})}return;default:return}},this.isLoading=()=>!this.meeting||"STARTING"===this.recordingState||"STOPPING"===this.recordingState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,r;this.recordingStateUpdateListener&&(null===(t=this.meeting)||void 0===t||t.recording.removeListener("recordingUpdate",this.recordingStateUpdateListener)),null===(r=this.meeting)||void 0===r||r.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){null!=t&&(this.recordingState=t.recording.recordingState,this.permissionsUpdateListener(),this.recordingStateUpdateListener=t=>{this.recordingState=t},t.recording.addListener("recordingUpdate",this.recordingStateUpdateListener),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}getLabel(){switch(this.recordingState){case"IDLE":return"recording.idle";case"RECORDING":return"recording.stop";case"STARTING":return"recording.starting";case"STOPPING":return"recording.stopping";case"PAUSED":return"recording.resume";default:return"recording.loading"}}getIcon(){switch(this.recordingState){case"IDLE":case"STARTING":case"STOPPING":default:return this.iconPack.recording;case"RECORDING":return this.iconPack.stop_recording}}render(){return this.meeting?this.canRecord?i(s,{title:this.t("RECORDING"===this.recordingState?"recording.stop":"recording.idle")},i("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:this.toggleRecording,icon:this.getIcon(),isLoading:this.isLoading(),label:this.t(this.getLabel()),variant:this.variant,disabled:this.disabled})):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}"}},[1,"rtk-recording-toggle",{variant:[513],meeting:[16],t:[16],iconPack:[16],size:[513],disabled:[4],recordingState:[32],canRecord:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-recording-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-recording-toggle":customElements.get(n(t))||customElements.define(n(t),u);break;case"rtk-controlbar-button":customElements.get(n(t))||h();break;case"rtk-icon":customElements.get(n(t))||d();break;case"rtk-spinner":customElements.get(n(t))||l()}}))}g([c()],u.prototype,"meeting",void 0),g([c()],u.prototype,"t",void 0),g([c()],u.prototype,"iconPack",void 0),m();const p=u,f=m;export{p as RtkRecordingToggle,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{e as n,i as h}from"./p-CtoKGHXg.js";import{S as o}from"./p-16s5ZSAZ.js";import{d as c}from"./p-D00_ZaOw.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-BDZmvSZ5.js";import{d as p}from"./p-reX4rZOi.js";import{d as m}from"./p-H0SF5wed.js";import{d as u}from"./p-DeQvmRpj.js";import{d as k}from"./p-DHSRRtn3.js";var g=function(t,e,s,i){var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(n=(a<3?r(n):a>3?r(e,s,n):r(e,s))||n);return a>3&&n&&Object.defineProperty(e,s,n),n};const b=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,S=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=n,this.t=h(),this.maxScreenShareCount=-1,this.screenShareCount=0,this.screenShareEnabled=!1,this.canScreenShare=!1,this.shareScreenPermission="NOT_REQUESTED",this.screenShareState={tooltipLabel:this.t("screenshare.start"),label:this.t("screenshare.start"),icon:this.iconPack.share_screen_start,classList:{},showWarning:!1,disable:!1},this.stageStatus="OFF_STAGE",this.screenShareListener=()=>{const t=this.meeting.participants.active.toArray().filter((t=>t.screenShareEnabled)).length;this.screenShareCount=t+(this.meeting.self.screenShareEnabled?1:0),this.screenShareEnabled=this.meeting.self.screenShareEnabled,this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}})},this.participantLeftListener=({screenShareEnabled:t})=>{t&&(this.screenShareCount=Math.max(this.screenShareCount-1,0),this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}}))},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{"screenshare"===t&&(this.shareScreenPermission=e,this.getState(),"COULD_NOT_START"===e&&this.apiError.emit({trace:this.t("screenshare.permissions"),message:this.t("screenshare.error.unknown")}),this.hasPermissionError())&&this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}})},this.reachedMaxScreenShares=()=>this.maxScreenShareCount>0&&this.screenShareCount>=this.maxScreenShareCount,this.stopScreenShare=()=>{var t;this.screenShareState.disable||(null===(t=this.meeting)||void 0===t||t.self.disableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1}))},this.enableScreenShare=async()=>{if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const t=this.meeting,e=null==t?void 0:t.self;if(null!=e&&this.canScreenShare&&(!this.reachedMaxScreenShares()||this.screenShareEnabled)&&!this.hasPermissionError()){this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0});try{await e.enableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1})}catch(e){t.__internals__.logger.error("rtkScreenShare::enableScreenShare",{error:e})}finally{this.getState()}}},this.handleMenuItemKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget instanceof e&&t.currentTarget.click())}}connectedCallback(){b()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,e,s,i,r,a;null===(t=this.meeting)||void 0===t||t.participants.joined.removeListener("screenShareUpdate",this.screenShareListener),null===(e=this.meeting)||void 0===e||e.participants.joined.removeListener("participantLeft",this.participantLeftListener),null===(s=this.meeting)||void 0===s||s.self.removeListener("screenShareUpdate",this.screenShareListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(r=this.meeting)||void 0===r?void 0:r.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:e,stage:s}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=e.config.maxScreenShareCount,this.screenShareEnabled=e.screenShareEnabled;let i=0;for(const e of t.participants.joined.toArray())e.screenShareEnabled&&i++;this.screenShareCount=i,this.getState(),t.__internals__.logger.info("rtkScreenShare::initialise",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount,maxAllowedCount:this.maxScreenShareCount}}}),this.stageStatus=t.stage.status,t.participants.joined.addListener("screenShareUpdate",this.screenShareListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),e.addListener("screenShareUpdate",this.screenShareListener),e.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==s||s.addListener("stageStatusUpdate",this.stageStatusListener)}}screenShareAppearanceChanged(){this.getState()}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){var t;let e="",s="",i="",r={};const a=this.hasPermissionError()&&!this.screenShareEnabled,n=this.reachedMaxScreenShares()&&!this.screenShareEnabled,h="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!a?(s=this.t("screenshare.menu"),i=null!==(t=this.iconPack.share_screen_menu)&&void 0!==t?t:this.iconPack.share_screen_stop):(s=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(e=this.t("perm_sys_denied.screenshare"),r["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(e=this.t("perm_denied.screenshare"),r["red-icon"]=!0):e=s,n&&(e=this.t("screenshare.error.max_count")),h&&(e=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:e,label:s,icon:i,classList:r,disable:a||n,showWarning:a||n||h}}render(){var t;if(!b()||!this.canScreenShare||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return i(r,{"data-hidden":!0});const e=i("rtk-tooltip",{slot:this.screenShareEnabled?"trigger":void 0,placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",title:this.screenShareState.label,size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.screenShareEnabled?void 0:this.enableScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}));return i(r,null,this.screenShareEnabled?i("rtk-menu",{placement:"top",size:this.size,iconPack:this.iconPack,t:this.t},e,i("rtk-menu-list",{iconPack:this.iconPack,t:this.t},i("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.share_different_screen"),onClick:this.enableScreenShare,onKeyDown:this.handleMenuItemKeyDown},i("rtk-icon",{icon:null!==(t=this.iconPack.share_screen_different)&&void 0!==t?t:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),i("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.stop"),onClick:this.stopScreenShare,onKeyDown:this.handleMenuItemKeyDown},i("rtk-icon",{icon:this.iconPack.share_screen_stop,variant:"danger",slot:"start"}),this.t("screenshare.stop")))):e)}static get watchers(){return{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}rtk-menu{display:block}rtk-menu-list{max-width:calc(100vw - 24px)}rtk-menu-item{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);line-height:1.25rem}rtk-menu-item rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-shrink:0}:host([data-hidden]){display:none}"}},[1,"rtk-screen-share-toggle",{states:[16],variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],maxScreenShareCount:[32],screenShareCount:[32],screenShareEnabled:[32],canScreenShare:[32],shareScreenPermission:[32],screenShareState:[32],stageStatus:[32]},void 0,{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-screen-share-toggle","rtk-controlbar-button","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screen-share-toggle":customElements.get(a(t))||customElements.define(a(t),S);break;case"rtk-controlbar-button":customElements.get(a(t))||c();break;case"rtk-icon":customElements.get(a(t))||l();break;case"rtk-menu":customElements.get(a(t))||d();break;case"rtk-menu-item":customElements.get(a(t))||p();break;case"rtk-menu-list":customElements.get(a(t))||m();break;case"rtk-spinner":customElements.get(a(t))||u();break;case"rtk-tooltip":customElements.get(a(t))||k()}}))}g([o()],S.prototype,"states",void 0),g([o()],S.prototype,"meeting",void 0),g([o()],S.prototype,"iconPack",void 0),g([o()],S.prototype,"t",void 0),f();const v=S,E=f;export{v as RtkScreenShareToggle,E as defineCustomElement}
|
|
1
|
+
import{p as t,H as e,c as s,h as i,d as r,t as a}from"./p-BBHQOrFK.js";import{e as n,i as h}from"./p-BbVYO_6g.js";import{S as o}from"./p-CNJG60uZ.js";import{d as c}from"./p-CshWFMrN.js";import{d as l}from"./p-BYIBbfJ8.js";import{d}from"./p-CpLLOHOq.js";import{d as p}from"./p-DLWL-o6Z.js";import{d as m}from"./p-CoiejzBd.js";import{d as u}from"./p-BJ7Hcvk1.js";import{d as k}from"./p-DHSRRtn3.js";var g=function(t,e,s,i){var r,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(n=(a<3?r(n):a>3?r(e,s,n):r(e,s))||n);return a>3&&n&&Object.defineProperty(e,s,n),n};const b=()=>"undefined"!=typeof navigator&&void 0!==navigator.mediaDevices&&"getDisplayMedia"in navigator.mediaDevices,f=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.apiError=s(this,"rtkApiError",7),this.variant="button",this.iconPack=n,this.t=h(),this.maxScreenShareCount=-1,this.screenShareCount=0,this.screenShareEnabled=!1,this.canScreenShare=!1,this.shareScreenPermission="NOT_REQUESTED",this.screenShareState={tooltipLabel:this.t("screenshare.start"),label:this.t("screenshare.start"),icon:this.iconPack.share_screen_start,classList:{},showWarning:!1,disable:!1},this.stageStatus="OFF_STAGE",this.screenShareListener=()=>{const t=this.meeting.participants.active.toArray().filter((t=>t.screenShareEnabled)).length;this.screenShareCount=t+(this.meeting.self.screenShareEnabled?1:0),this.screenShareEnabled=this.meeting.self.screenShareEnabled,this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}})},this.participantLeftListener=({screenShareEnabled:t})=>{t&&(this.screenShareCount=Math.max(this.screenShareCount-1,0),this.getState(),this.meeting.__internals__.logger.info("rtkScreenShare::screenShareUpdate",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount}}}))},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{"screenshare"===t&&(this.shareScreenPermission=e,this.getState(),"COULD_NOT_START"===e&&this.apiError.emit({trace:this.t("screenshare.permissions"),message:this.t("screenshare.error.unknown")}),this.hasPermissionError())&&this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}})},this.reachedMaxScreenShares=()=>this.maxScreenShareCount>0&&this.screenShareCount>=this.maxScreenShareCount,this.stopScreenShare=()=>{var t;this.screenShareState.disable||(null===(t=this.meeting)||void 0===t||t.self.disableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1}))},this.enableScreenShare=async()=>{if(this.screenShareState.disable)return;if(this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"screenshare"}}),!1;const t=this.meeting,e=null==t?void 0:t.self;if(null!=e&&this.canScreenShare&&(!this.reachedMaxScreenShares()||this.screenShareEnabled)&&!this.hasPermissionError()){this.screenShareState=Object.assign(Object.assign({},this.screenShareState),{disable:!0});try{await e.enableScreenShare(),this.stateUpdate.emit({activeMoreMenu:!1})}catch(e){t.__internals__.logger.error("rtkScreenShare::enableScreenShare",{error:e})}finally{this.getState()}}},this.handleMenuItemKeyDown=t=>{"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.currentTarget instanceof e&&t.currentTarget.click())}}connectedCallback(){b()?this.meetingChanged(this.meeting):this.meeting.__internals__.logger.error("[rtk-screenshare-toggle] Device does not support screensharing.")}disconnectedCallback(){var t,e,s,i,r,a;null===(t=this.meeting)||void 0===t||t.participants.joined.removeListener("screenShareUpdate",this.screenShareListener),null===(e=this.meeting)||void 0===e||e.participants.joined.removeListener("participantLeft",this.participantLeftListener),null===(s=this.meeting)||void 0===s||s.self.removeListener("screenShareUpdate",this.screenShareListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(a=null===(r=this.meeting)||void 0===r?void 0:r.stage)||void 0===a||a.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){if(null!=t){const{self:e,stage:s}=t;this.canScreenShare="ALLOWED"===this.meeting.self.permissions.canProduceScreenshare,this.maxScreenShareCount=e.config.maxScreenShareCount,this.screenShareEnabled=e.screenShareEnabled;let i=0;for(const e of t.participants.joined.toArray())e.screenShareEnabled&&i++;this.screenShareCount=i,this.getState(),t.__internals__.logger.info("rtkScreenShare::initialise",{media:{screenshare:{enabled:this.screenShareEnabled,count:this.screenShareCount,maxAllowedCount:this.maxScreenShareCount}}}),this.stageStatus=t.stage.status,t.participants.joined.addListener("screenShareUpdate",this.screenShareListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),e.addListener("screenShareUpdate",this.screenShareListener),e.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==s||s.addListener("stageStatusUpdate",this.stageStatusListener)}}screenShareAppearanceChanged(){this.getState()}hasPermissionError(){return"SYSTEM_DENIED"===this.shareScreenPermission||"DENIED"===this.shareScreenPermission}getState(){var t;let e="",s="",i="",r={};const a=this.hasPermissionError()&&!this.screenShareEnabled,n=this.reachedMaxScreenShares()&&!this.screenShareEnabled,h="COULD_NOT_START"===this.shareScreenPermission;this.screenShareEnabled&&!a?(s=this.t("screenshare.menu"),i=null!==(t=this.iconPack.share_screen_menu)&&void 0!==t?t:this.iconPack.share_screen_stop):(s=this.t("screenshare.start"),i=this.iconPack.share_screen_start),"SYSTEM_DENIED"===this.shareScreenPermission?(e=this.t("perm_sys_denied.screenshare"),r["red-icon"]=!0):"DENIED"===this.shareScreenPermission?(e=this.t("perm_denied.screenshare"),r["red-icon"]=!0):e=s,n&&(e=this.t("screenshare.error.max_count")),h&&(e=this.t("screenshare.error.unknown")),this.screenShareState={tooltipLabel:e,label:s,icon:i,classList:r,disable:a||n,showWarning:a||n||h}}render(){var t;if(!b()||!this.canScreenShare||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return i(r,{"data-hidden":!0});const e=i("rtk-tooltip",{slot:this.screenShareEnabled?"trigger":void 0,placement:"top",kind:"block",label:this.screenShareState.tooltipLabel,delay:600,part:"tooltip"},i("rtk-controlbar-button",{part:"controlbar-button",title:this.screenShareState.label,size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.screenShareState.label,icon:this.screenShareState.icon,class:this.screenShareState.classList,onClick:this.screenShareEnabled?void 0:this.enableScreenShare,disabled:this.screenShareState.disable,showWarning:this.screenShareState.showWarning}));return i(r,null,this.screenShareEnabled?i("rtk-menu",{placement:"top",size:this.size,iconPack:this.iconPack,t:this.t},e,i("rtk-menu-list",{iconPack:this.iconPack,t:this.t},i("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.share_different_screen"),onClick:this.enableScreenShare,onKeyDown:this.handleMenuItemKeyDown},i("rtk-icon",{icon:null!==(t=this.iconPack.share_screen_different)&&void 0!==t?t:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),i("rtk-menu-item",{size:this.size,iconPack:this.iconPack,t:this.t,role:"button",tabIndex:0,"aria-disabled":this.screenShareState.disable,title:this.t("screenshare.stop"),onClick:this.stopScreenShare,onKeyDown:this.handleMenuItemKeyDown},i("rtk-icon",{icon:this.iconPack.share_screen_stop,variant:"danger",slot:"start"}),this.t("screenshare.stop")))):e)}static get watchers(){return{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}rtk-menu{display:block}rtk-menu-list{max-width:calc(100vw - 24px)}rtk-menu-item{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);line-height:1.25rem}rtk-menu-item rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-shrink:0}:host([data-hidden]){display:none}"}},[1,"rtk-screen-share-toggle",{states:[16],variant:[513],meeting:[16],size:[513],iconPack:[16],t:[16],maxScreenShareCount:[32],screenShareCount:[32],screenShareEnabled:[32],canScreenShare:[32],shareScreenPermission:[32],screenShareState:[32],stageStatus:[32]},void 0,{meeting:[{meetingChanged:0}],t:[{screenShareAppearanceChanged:0}],iconPack:[{screenShareAppearanceChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-screen-share-toggle","rtk-controlbar-button","rtk-icon","rtk-menu","rtk-menu-item","rtk-menu-list","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screen-share-toggle":customElements.get(a(t))||customElements.define(a(t),f);break;case"rtk-controlbar-button":customElements.get(a(t))||c();break;case"rtk-icon":customElements.get(a(t))||l();break;case"rtk-menu":customElements.get(a(t))||d();break;case"rtk-menu-item":customElements.get(a(t))||p();break;case"rtk-menu-list":customElements.get(a(t))||m();break;case"rtk-spinner":customElements.get(a(t))||u();break;case"rtk-tooltip":customElements.get(a(t))||k()}}))}g([o()],f.prototype,"states",void 0),g([o()],f.prototype,"meeting",void 0),g([o()],f.prototype,"iconPack",void 0),g([o()],f.prototype,"t",void 0),v();const S=f,E=v;export{S as RtkScreenShareToggle,E as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as e,w as r,h as a,d as s,t as o}from"./p-BBHQOrFK.js";import{e as n,i as d}from"./p-CtoKGHXg.js";import{i as l,r as c,e as p,a as h}from"./p-GSFejkz7.js";import{S as v}from"./p-16s5ZSAZ.js";import{d as g}from"./p-CudchGV-.js";import{d as b}from"./p-D6vw6bT2.js";import{d as u}from"./p-BYIBbfJ8.js";import{d as f}from"./p-DeQvmRpj.js";import{d as k}from"./p-DHSRRtn3.js";var m=function(t,i,e,r){var a,s=arguments.length,o=s<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(s<3?a(o):s>3?a(i,e,o):a(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const x="__rtk_screenshare_visibility__";let w=!1;const y=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.play=e(this,"screensharePlay",7),this.pendingViewerIds=new Set,this.viewerVisibilityRevision=0,this.handleScreenShareUpdate=({screenShareEnabled:t,screenShareTracks:i})=>{var e,a;const s=t&&null!=(null==i?void 0:i.video);(null===(e=this.participant)||void 0===e?void 0:e.id)===(null===(a=this.meeting)||void 0===a?void 0:a.self.id)?this.updateLocalScreenShareVisibilityTracking(s):this.prepareRemoteScreenShareVisibilityNotification(s),r((()=>{this.screenShareEnabled=s}))},this.handleViewerJoined=t=>{var i,e,r,a;(null===(i=this.participant)||void 0===i?void 0:i.id)===(null===(r=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===r?void 0:r.id)?this.trackJoinedViewerScreenshareVisibility(t):t.id===(null===(a=this.participant)||void 0===a?void 0:a.id)&&(this.lastNotifiedVisibility=void 0,this.notifySharerOfScreenShareVisibility(!0))},this.handleViewerLeft=t=>{var i,e,r;(null===(i=this.participant)||void 0===i?void 0:i.id)===(null===(r=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===r?void 0:r.id)&&this.removeDepartedViewerVisibility(t)},this.handleScreenShareVisibilityNotification=({type:t,payload:i,peerId:e})=>{var r;const a=this.meeting;if(t!==x||null==a||(null===(r=this.participant)||void 0===r?void 0:r.id)!==a.self.id||null==i||"object"!=typeof i)return;const{sharerId:s,producerId:o,visible:n}=i;if(s===a.self.id&&"string"==typeof o&&"boolean"==typeof n&&o===this.trackedScreenShareProducerId&&a.participants.joined.has(e)){if(n){if(!this.pendingViewerIds.delete(e))return}else{if(this.pendingViewerIds.has(e))return;this.pendingViewerIds.add(e)}this.viewerVisibilityRevision++,this.hidePendingViewerDetailsWhenEmpty()}},this.notifySharerOfScreenShareVisibility=(t,i,e)=>{var r,a;if(void 0===i&&(i=this.meeting),void 0===e&&(e=null===(r=this.participant)||void 0===r?void 0:r.id),!(null===(a=null==i?void 0:i.participants)||void 0===a?void 0:a.broadcastMessage)||!e||e===i.self.id)return;const s=this.trackedScreenShareProducerId;if(!s||t&&!this.isActivelyViewingScreenShare())return;const o=this.lastNotifiedVisibility;if(!t&&!(null==o?void 0:o.visible)||(null==o?void 0:o.producerId)===s&&o.visible===t)return;const n={producerId:s,visible:t};this.lastNotifiedVisibility=n,i.participants.broadcastMessage(x,{sharerId:e,producerId:s,visible:t},{participantIds:[e]}).catch((t=>{var e,r;this.lastNotifiedVisibility===n&&(this.lastNotifiedVisibility=void 0),null===(r=null===(e=i.__internals__)||void 0===e?void 0:e.logger)||void 0===r||r.error("rtkScreenshareView::validateScreenShare",{error:t})}))},this.handleActiveTabUpdate=()=>{this.notifySharerOfScreenShareVisibility(this.isActivelyViewingScreenShare())},this.handleVideoPause=()=>{this.notifySharerOfScreenShareVisibility(!1)},this.onVideoRef=t=>{var i;null!=t&&t!==this.videoEl&&(this.videoEl=t,null===(i=this.participant)||void 0===i||i.registerScreenshareVideoElement(t))},this.fullScreenListener=()=>{this.isFullScreen=l()},this.handleRemoteParticipantScreenShareUpdate=t=>{var i;t&&t.id===(null===(i=this.participant)||void 0===i?void 0:i.id)&&this.handleScreenShareUpdate(t)},this.hideFullScreenButton=!1,this.maxVisibleViewerAvatars=3,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=n,this.t=d(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isSwitchingScreen=!1,this.isFullScreen=!1,this.showRemainingViewers=!1,this.shareDifferentScreen=async()=>{const t=this.meeting;if(null!=t&&!this.isSwitchingScreen){this.isSwitchingScreen=!0;try{await t.self.enableScreenShare()}catch(i){t.__internals__.logger.error("rtkScreenshareView::shareDifferentScreen",{error:i})}finally{this.isSwitchingScreen=!1}}},this.toggleFullScreen=()=>{this.isFullScreen?(p(),this.isFullScreen=!1):(c(this.host),this.isFullScreen=!0)}}getLocalScreenShareVideoProducerId(){var t,i,e,r;return null===(r=null===(e=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.producers)||void 0===e?void 0:e.find((t=>{var i;return"video"===(null==t?void 0:t.kind)&&!0===(null===(i=null==t?void 0:t.appData)||void 0===i?void 0:i.screenShare)})))||void 0===r?void 0:r.id}getRemoteScreenShareVideoProducerId(){var t,i,e,r,a,s,o;const n=this.participant;if(null==n?void 0:n.id)return null===(o=null===(s=null===(a=null===(r=null===(e=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.participants)||void 0===i?void 0:i.joined)||void 0===e?void 0:e.get)||void 0===r?void 0:r.call(e,n.id))||void 0===a?void 0:a.producers)||void 0===s?void 0:s.find((t=>"video"===(null==t?void 0:t.kind)&&!0===(null==t?void 0:t.screenShare))))||void 0===o?void 0:o.producerId}updateLocalScreenShareVisibilityTracking(t){const i=t?this.getLocalScreenShareVideoProducerId():void 0;i!==this.trackedScreenShareProducerId&&(i?this.startTrackingScreenShareVisibility(i):this.resetScreenShareVisibilityTracking())}prepareRemoteScreenShareVisibilityNotification(t){const i=t?this.getRemoteScreenShareVideoProducerId():void 0;i!==this.trackedScreenShareProducerId&&(this.notifySharerOfScreenShareVisibility(!1),this.trackedScreenShareProducerId=i,this.lastNotifiedVisibility=void 0)}startTrackingScreenShareVisibility(t){this.resetScreenShareVisibilityTracking(),this.trackedScreenShareProducerId=t;for(const t of this.meeting.participants.joined.keys())this.pendingViewerIds.add(t);this.viewerVisibilityRevision++}resetScreenShareVisibilityTracking(){this.trackedScreenShareProducerId=void 0,this.lastNotifiedVisibility=void 0,this.pendingViewerIds.clear(),this.viewerVisibilityRevision++,this.previewedViewerId=void 0,this.showRemainingViewers=!1}trackJoinedViewerScreenshareVisibility(t){this.meeting&&this.trackedScreenShareProducerId&&(this.pendingViewerIds.add(t.id),this.viewerVisibilityRevision++)}removeDepartedViewerVisibility(t){const i=this.meeting;i&&this.trackedScreenShareProducerId&&(i.participants.joined.has(t.id)||(this.pendingViewerIds.delete(t.id),this.viewerVisibilityRevision++,this.hidePendingViewerDetailsWhenEmpty()))}hidePendingViewerDetailsWhenEmpty(){this.pendingViewerIds.size>0||(this.previewedViewerId=void 0,this.showRemainingViewers=!1)}isActivelyViewingScreenShare(){var t,i,e,r,a,s,o;const n=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.selfActiveTab,d=this.videoEl,l=null===(e=this.participant)||void 0===e?void 0:e.id,c=l?null===(s=null===(a=null===(r=this.meeting)||void 0===r?void 0:r.participants.joined.get(l))||void 0===a?void 0:a.screenShareTracks)||void 0===s?void 0:s.video:void 0,p=null==d?void 0:d.srcObject,h=p&&"getVideoTracks"in p?p.getVideoTracks()[0]:void 0;return null!=c&&h===c&&null!=d&&!d.paused&&d.readyState>=d.HAVE_CURRENT_DATA&&(null==n||"screenshare"===n.type&&n.id===(null===(o=this.participant)||void 0===o?void 0:o.id))}connectedCallback(){if(!w&&"undefined"!=typeof CSS&&"function"==typeof CSS.registerProperty){try{CSS.registerProperty({name:"--rtk-screenshare-view-progress",syntax:"<percentage>",inherits:!0,initialValue:"0%"})}catch(t){if(!(t instanceof DOMException&&"InvalidModificationError"===t.name))throw t}w=!0}null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener),this.meetingChanged(this.meeting)}disconnectedCallback(){this.notifySharerOfScreenShareVisibility(!1),this.cleanupParticipant(this.participant),this.cleanupMeeting(this.meeting),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t,i){this.cleanupParticipant(i),(null==i?void 0:i.id)!==(null==t?void 0:t.id)?(this.notifySharerOfScreenShareVisibility(!1,this.meeting,null==i?void 0:i.id),this.resetScreenShareVisibilityTracking()):i&&i!==t&&(this.lastNotifiedVisibility=void 0),null!=t&&(this.videoEl&&t.registerScreenshareVideoElement(this.videoEl),this.meeting&&(this.handleScreenShareUpdate(t),i&&i!==t&&this.notifySharerOfScreenShareVisibility(!0),t.id===this.meeting.self.id?t.addListener("screenShareUpdate",this.handleScreenShareUpdate):this.meeting.participants.joined.addListener("screenShareUpdate",this.handleRemoteParticipantScreenShareUpdate)))}meetingChanged(t,i){var e,r,a,s;i&&(this.notifySharerOfScreenShareVisibility(!1,i),this.cleanupParticipant(this.participant,i),this.cleanupMeeting(i)),this.resetScreenShareVisibilityTracking(),t&&(null===(r=(e=t.participants).addListener)||void 0===r||r.call(e,"broadcastedMessage",this.handleScreenShareVisibilityNotification),t.participants.joined.addListener("participantJoined",this.handleViewerJoined),t.participants.joined.addListener("participantLeft",this.handleViewerLeft),null===(a=t.meta)||void 0===a||a.addListener("selfTabUpdate",this.handleActiveTabUpdate),null===(s=t.meta)||void 0===s||s.addListener("activeTabUpdate",this.handleActiveTabUpdate),this.participantChanged(this.participant))}cleanupMeeting(t){var i,e,r,a;this.resetScreenShareVisibilityTracking(),t&&(null===(e=(i=t.participants).removeListener)||void 0===e||e.call(i,"broadcastedMessage",this.handleScreenShareVisibilityNotification),t.participants.joined.removeListener("participantJoined",this.handleViewerJoined),t.participants.joined.removeListener("participantLeft",this.handleViewerLeft),null===(r=t.meta)||void 0===r||r.removeListener("selfTabUpdate",this.handleActiveTabUpdate),null===(a=t.meta)||void 0===a||a.removeListener("activeTabUpdate",this.handleActiveTabUpdate))}cleanupParticipant(t,i=this.meeting){null!=t&&(this.videoEl&&t.deregisterScreenshareVideoElement(this.videoEl),i&&(t.id===i.self.id?t.removeListener("screenShareUpdate",this.handleScreenShareUpdate):i.participants.joined.removeListener("screenShareUpdate",this.handleRemoteParticipantScreenShareUpdate)))}render(){var t,i,e;const r=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id),o=this.trackedScreenShareProducerId&&this.meeting?this.meeting.participants.joined.size:0,n=this.pendingViewerIds.size,d=o>0&&n===o,l=o>0?(o-n)/o*100:0,c=r&&o>0,p=0===n,v=[],g=[];if(c&&!d&&!p)for(const t of this.pendingViewerIds){const i=this.meeting.participants.joined.get(t);i&&(v.length<this.maxVisibleViewerAvatars?v.push(i):this.showRemainingViewers&&g.push(i))}const b=Math.max(0,n-v.length),u=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),f=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return a(s,{key:"6986b5c16de2056d97623e685745c6990496babc",class:{isSelf:r}},a("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},a("video",{key:"c83c791c578fe1b7c4d669d0ffe0f1596e17a780",ref:this.onVideoRef,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},onPlaying:()=>this.notifySharerOfScreenShareVisibility(!0),onLoadedData:()=>{this.videoEl&&!this.videoEl.paused&&this.notifySharerOfScreenShareVisibility(!0)},onPause:this.handleVideoPause,onEnded:this.handleVideoPause,autoPlay:!0,muted:!0,id:"screen-share-video-"+this.participant.id})),a("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!r&&h()&&a("rtk-tooltip",{key:"17221ecf03be22834b3b1b23286dd075cfa885b1",label:u},a("rtk-button",{key:"c1414141153ff0c9a37bc849017e724811e8d536",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:u},a("rtk-icon",{key:"232665f29a058ab86a609025e7c369ace53f0368",icon:f,"aria-hidden":!0,tabIndex:-1})))),r&&a("div",{id:"self-message",key:"self-message"},a("h3",{key:"06a04f7f2feadba54a4c54f0cacd6c4bc557923f"},this.t("screenshare.shared")),a("div",{key:"4e1df4b305d5e4843cac9ae670ac8ff1a77648fa",class:"actions"},null!=this.meeting&&a("rtk-button",{key:"74d2f1793363035a32dc478585d3b5a02d7fdbea",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},a("rtk-icon",{key:"4c4cbf01b1cf9286953ccfb4b40b841eb8203e8b",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),null!=this.meeting&&a("rtk-button",{key:"9fe208d836de4daa414767db5b4e738ec53ce505",variant:"secondary",disabled:this.isSwitchingScreen,onClick:this.shareDifferentScreen},a("rtk-icon",{key:"4040344624fdd4019fa7acdd3a4f2004d68ec3f7",icon:null!==(e=this.iconPack.share_screen_different)&&void 0!==e?e:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),a("rtk-button",{key:"ed8b81b5ad16e2203bffe36651950ba882151d62",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},a("rtk-icon",{key:"23266b23609ce8696652bb3cd3d74bbe779d7262",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),c&&a("div",{key:"2b42d6f65ca92fdc92354f6afc6e1bb322dfd952",class:"validation-status",role:"status","aria-live":"polite"},p?a("span",{class:"all-visible"},this.t("screenshare.visibility.all")):d?a("span",{class:"none-visible"},this.t("screenshare.visibility.none")):a("div",{class:"waiting-viewers"},a("span",null,this.t("screenshare.visibility.not_viewing")),a("div",{class:"pending-avatars"},v.map((t=>a("button",{key:t.id,class:"avatar-trigger",type:"button","aria-label":t.name,onMouseEnter:()=>this.previewedViewerId=t.id,onMouseLeave:()=>this.previewedViewerId=void 0,onFocus:()=>this.previewedViewerId=t.id,onBlur:()=>this.previewedViewerId=void 0,onClick:()=>this.previewedViewerId=t.id},a("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),this.previewedViewerId===t.id&&a("span",{class:"viewer-name","aria-hidden":"true"},t.name)))),b>0&&a("button",{class:"more-avatar",type:"button","aria-label":`${this.t("screenshare.visibility.more")} ${b}`,"aria-expanded":this.showRemainingViewers,"aria-controls":this.showRemainingViewers?"remaining-viewers":void 0,onClick:()=>this.showRemainingViewers=!this.showRemainingViewers,onBlur:()=>this.showRemainingViewers=!1,onKeyDown:t=>{"Escape"===t.key&&(this.showRemainingViewers=!1)}},"+",b)),this.showRemainingViewers&&b>0&&a("div",{id:"remaining-viewers",class:"remaining-viewers",role:"list"},g.map((t=>a("div",{class:"remaining-viewer",role:"listitem",key:t.id},a("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),a("span",null,t.name))))))),c&&a("div",{key:"834ab58b84f6e8471ddc40f9a2ba210cf3390968",class:{"validation-border":!0,"none-active":d,complete:p},style:{"--validation-progress":(d?100:l)+"%"},"aria-hidden":"true"}),a("slot",{key:"63e420aff5f60c85c1c1f5031740e37ff4620214"}))}get host(){return this}static get watchers(){return{participant:[{participantChanged:0}],meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}.validation-border{pointer-events:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);left:var(--rtk-space-3, 12px);border-radius:var(--rtk-border-radius-md, 8px);border:2px solid rgb(var(--rtk-colors-background-600, 60 60 60));--validation-color:rgb(var(--rtk-colors-brand-500, 33 96 253));--rtk-screenshare-view-progress:var(--validation-progress);transition:--rtk-screenshare-view-progress 0.5s linear, border-color 0.5s linear}.validation-border.none-active{border-color:rgb(var(--rtk-colors-danger, 255 45 45));--rtk-screenshare-view-progress:0%;transition:none}.validation-border.complete{--validation-color:rgb(var(--rtk-colors-success, 98 165 4))}.validation-border::after{content:'';position:absolute;inset:-3px;padding:3px;border-radius:inherit;background:conic-gradient( from 0deg, var(--validation-color) var(--rtk-screenshare-view-progress), transparent 0 );-webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);-webkit-mask-composite:xor;-webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.validation-status{margin-top:var(--rtk-space-5, 20px);max-width:100%;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76));position:relative;z-index:2}.waiting-viewers{display:flex;max-width:100%;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px);position:relative}.pending-avatars{display:flex;max-width:100%;flex-wrap:wrap;align-items:center;justify-content:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}.pending-avatars button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;border-radius:9999px;font-size:10px;display:flex;cursor:pointer;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);border:2px solid rgb(var(--rtk-colors-video-bg, 24 24 24));-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative}.pending-avatars button:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-500, 33 96 253));outline-offset:2px}.pending-avatars .avatar-trigger{background-color:transparent}.pending-avatars rtk-avatar{height:100%;width:100%;font-size:10px;pointer-events:none}.pending-avatars button+button{margin-left:-10px}.pending-avatars button:hover,.pending-avatars button:focus-visible{z-index:1}.pending-avatars .more-avatar{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-weight:500;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.viewer-name{position:absolute;bottom:100%;left:50%;max-width:var(--rtk-space-48, 192px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;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));padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));pointer-events:none;transform:translateX(-50%);width:-moz-max-content;width:max-content;margin-bottom:4px}.remaining-viewers{max-height:var(--rtk-space-40, 160px);width:var(--rtk-space-64, 256px);max-width:100%;overflow-y: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-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);box-sizing:border-box;display:flex;flex-direction:column;gap:var(--rtk-space-1, 4px);flex-basis:100%;margin:0 auto}.remaining-viewer{display:flex;align-items:center;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-1, 4px);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.remaining-viewer rtk-avatar{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);flex-shrink:0;font-size:10px}.remaining-viewer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.none-visible{font-size:12px;font-weight:500;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}.all-visible{font-size:12px;font-weight:500;--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}"}},[257,"rtk-screenshare-view",{hideFullScreenButton:[4,"hide-full-screen-button"],maxVisibleViewerAvatars:[2,"max-visible-viewer-avatars"],nameTagPosition:[513,"name-tag-position"],participant:[16],meeting:[16],variant:[513],size:[513],iconPack:[16],t:[16],viewerVisibilityRevision:[32],videoExpanded:[32],screenShareEnabled:[32],isSwitchingScreen:[32],isFullScreen:[32],remoteControlInfo:[32],previewedViewerId:[32],showRemainingViewers:[32]},void 0,{participant:[{participantChanged:0}],meeting:[{meetingChanged:0}]}]);function S(){"undefined"!=typeof customElements&&["rtk-screenshare-view","rtk-avatar","rtk-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screenshare-view":customElements.get(o(t))||customElements.define(o(t),y);break;case"rtk-avatar":customElements.get(o(t))||g();break;case"rtk-button":customElements.get(o(t))||b();break;case"rtk-icon":customElements.get(o(t))||u();break;case"rtk-spinner":customElements.get(o(t))||f();break;case"rtk-tooltip":customElements.get(o(t))||k()}}))}m([v()],y.prototype,"meeting",void 0),m([v()],y.prototype,"iconPack",void 0),m([v()],y.prototype,"t",void 0),S();const z=y,j=S;export{z as RtkScreenshareView,j as defineCustomElement}
|
|
1
|
+
import{p as t,H as i,c as e,w as r,h as a,d as s,t as o}from"./p-BBHQOrFK.js";import{e as n,i as d}from"./p-BbVYO_6g.js";import{i as l,r as c,e as p,a as h}from"./p-GSFejkz7.js";import{S as v}from"./p-CNJG60uZ.js";import{d as b}from"./p-BY_hQMNu.js";import{d as g}from"./p-D6vw6bT2.js";import{d as u}from"./p-BYIBbfJ8.js";import{d as f}from"./p-BJ7Hcvk1.js";import{d as k}from"./p-DHSRRtn3.js";var m=function(t,i,e,r){var a,s=arguments.length,o=s<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,e,r);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(o=(s<3?a(o):s>3?a(i,e,o):a(i,e))||o);return s>3&&o&&Object.defineProperty(i,e,o),o};const x="__rtk_screenshare_visibility__";let w=!1;const y=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.play=e(this,"screensharePlay",7),this.pendingViewerIds=new Set,this.viewerVisibilityRevision=0,this.handleScreenShareUpdate=({screenShareEnabled:t,screenShareTracks:i})=>{var e,a;const s=t&&null!=(null==i?void 0:i.video);(null===(e=this.participant)||void 0===e?void 0:e.id)===(null===(a=this.meeting)||void 0===a?void 0:a.self.id)?this.updateLocalScreenShareVisibilityTracking(s):this.prepareRemoteScreenShareVisibilityNotification(s),r((()=>{this.screenShareEnabled=s}))},this.handleViewerJoined=t=>{var i,e,r,a;(null===(i=this.participant)||void 0===i?void 0:i.id)===(null===(r=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===r?void 0:r.id)?this.trackJoinedViewerScreenshareVisibility(t):t.id===(null===(a=this.participant)||void 0===a?void 0:a.id)&&(this.lastNotifiedVisibility=void 0,this.notifySharerOfScreenShareVisibility(!0))},this.handleViewerLeft=t=>{var i,e,r;(null===(i=this.participant)||void 0===i?void 0:i.id)===(null===(r=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===r?void 0:r.id)&&this.removeDepartedViewerVisibility(t)},this.handleScreenShareVisibilityNotification=({type:t,payload:i,peerId:e})=>{var r;const a=this.meeting;if(t!==x||null==a||(null===(r=this.participant)||void 0===r?void 0:r.id)!==a.self.id||null==i||"object"!=typeof i)return;const{sharerId:s,producerId:o,visible:n}=i;if(s===a.self.id&&"string"==typeof o&&"boolean"==typeof n&&o===this.trackedScreenShareProducerId&&a.participants.joined.has(e)){if(n){if(!this.pendingViewerIds.delete(e))return}else{if(this.pendingViewerIds.has(e))return;this.pendingViewerIds.add(e)}this.viewerVisibilityRevision++,this.hidePendingViewerDetailsWhenEmpty()}},this.notifySharerOfScreenShareVisibility=(t,i,e)=>{var r,a;if(void 0===i&&(i=this.meeting),void 0===e&&(e=null===(r=this.participant)||void 0===r?void 0:r.id),!(null===(a=null==i?void 0:i.participants)||void 0===a?void 0:a.broadcastMessage)||!e||e===i.self.id)return;const s=this.trackedScreenShareProducerId;if(!s||t&&!this.isActivelyViewingScreenShare())return;const o=this.lastNotifiedVisibility;if(!t&&!(null==o?void 0:o.visible)||(null==o?void 0:o.producerId)===s&&o.visible===t)return;const n={producerId:s,visible:t};this.lastNotifiedVisibility=n,i.participants.broadcastMessage(x,{sharerId:e,producerId:s,visible:t},{participantIds:[e]}).catch((t=>{var e,r;this.lastNotifiedVisibility===n&&(this.lastNotifiedVisibility=void 0),null===(r=null===(e=i.__internals__)||void 0===e?void 0:e.logger)||void 0===r||r.error("rtkScreenshareView::validateScreenShare",{error:t})}))},this.handleActiveTabUpdate=()=>{this.notifySharerOfScreenShareVisibility(this.isActivelyViewingScreenShare())},this.handleVideoPause=()=>{this.notifySharerOfScreenShareVisibility(!1)},this.onVideoRef=t=>{var i;null!=t&&t!==this.videoEl&&(this.videoEl=t,null===(i=this.participant)||void 0===i||i.registerScreenshareVideoElement(t))},this.fullScreenListener=()=>{this.isFullScreen=l()},this.handleRemoteParticipantScreenShareUpdate=t=>{var i;t&&t.id===(null===(i=this.participant)||void 0===i?void 0:i.id)&&this.handleScreenShareUpdate(t)},this.hideFullScreenButton=!1,this.maxVisibleViewerAvatars=3,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=n,this.t=d(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isSwitchingScreen=!1,this.isFullScreen=!1,this.showRemainingViewers=!1,this.shareDifferentScreen=async()=>{const t=this.meeting;if(null!=t&&!this.isSwitchingScreen){this.isSwitchingScreen=!0;try{await t.self.enableScreenShare()}catch(i){t.__internals__.logger.error("rtkScreenshareView::shareDifferentScreen",{error:i})}finally{this.isSwitchingScreen=!1}}},this.toggleFullScreen=()=>{this.isFullScreen?(p(),this.isFullScreen=!1):(c(this.host),this.isFullScreen=!0)}}getLocalScreenShareVideoProducerId(){var t,i,e,r;return null===(r=null===(e=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.producers)||void 0===e?void 0:e.find((t=>{var i;return"video"===(null==t?void 0:t.kind)&&!0===(null===(i=null==t?void 0:t.appData)||void 0===i?void 0:i.screenShare)})))||void 0===r?void 0:r.id}getRemoteScreenShareVideoProducerId(){var t,i,e,r,a,s,o;const n=this.participant;if(null==n?void 0:n.id)return null===(o=null===(s=null===(a=null===(r=null===(e=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.participants)||void 0===i?void 0:i.joined)||void 0===e?void 0:e.get)||void 0===r?void 0:r.call(e,n.id))||void 0===a?void 0:a.producers)||void 0===s?void 0:s.find((t=>"video"===(null==t?void 0:t.kind)&&!0===(null==t?void 0:t.screenShare))))||void 0===o?void 0:o.producerId}updateLocalScreenShareVisibilityTracking(t){const i=t?this.getLocalScreenShareVideoProducerId():void 0;i!==this.trackedScreenShareProducerId&&(i?this.startTrackingScreenShareVisibility(i):this.resetScreenShareVisibilityTracking())}prepareRemoteScreenShareVisibilityNotification(t){const i=t?this.getRemoteScreenShareVideoProducerId():void 0;i!==this.trackedScreenShareProducerId&&(this.notifySharerOfScreenShareVisibility(!1),this.trackedScreenShareProducerId=i,this.lastNotifiedVisibility=void 0)}startTrackingScreenShareVisibility(t){this.resetScreenShareVisibilityTracking(),this.trackedScreenShareProducerId=t;for(const t of this.meeting.participants.joined.keys())this.pendingViewerIds.add(t);this.viewerVisibilityRevision++}resetScreenShareVisibilityTracking(){this.trackedScreenShareProducerId=void 0,this.lastNotifiedVisibility=void 0,this.pendingViewerIds.clear(),this.viewerVisibilityRevision++,this.previewedViewerId=void 0,this.showRemainingViewers=!1}trackJoinedViewerScreenshareVisibility(t){this.meeting&&this.trackedScreenShareProducerId&&(this.pendingViewerIds.add(t.id),this.viewerVisibilityRevision++)}removeDepartedViewerVisibility(t){const i=this.meeting;i&&this.trackedScreenShareProducerId&&(i.participants.joined.has(t.id)||(this.pendingViewerIds.delete(t.id),this.viewerVisibilityRevision++,this.hidePendingViewerDetailsWhenEmpty()))}hidePendingViewerDetailsWhenEmpty(){this.pendingViewerIds.size>0||(this.previewedViewerId=void 0,this.showRemainingViewers=!1)}isActivelyViewingScreenShare(){var t,i,e,r,a,s,o;const n=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===i?void 0:i.selfActiveTab,d=this.videoEl,l=null===(e=this.participant)||void 0===e?void 0:e.id,c=l?null===(s=null===(a=null===(r=this.meeting)||void 0===r?void 0:r.participants.joined.get(l))||void 0===a?void 0:a.screenShareTracks)||void 0===s?void 0:s.video:void 0,p=null==d?void 0:d.srcObject,h=p&&"getVideoTracks"in p?p.getVideoTracks()[0]:void 0;return null!=c&&h===c&&null!=d&&!d.paused&&d.readyState>=d.HAVE_CURRENT_DATA&&(null==n||"screenshare"===n.type&&n.id===(null===(o=this.participant)||void 0===o?void 0:o.id))}connectedCallback(){if(!w&&"undefined"!=typeof CSS&&"function"==typeof CSS.registerProperty){try{CSS.registerProperty({name:"--rtk-screenshare-view-progress",syntax:"<percentage>",inherits:!0,initialValue:"0%"})}catch(t){if(!(t instanceof DOMException&&"InvalidModificationError"===t.name))throw t}w=!0}null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener),this.meetingChanged(this.meeting)}disconnectedCallback(){this.notifySharerOfScreenShareVisibility(!1),this.cleanupParticipant(this.participant),this.cleanupMeeting(this.meeting),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t,i){this.cleanupParticipant(i),(null==i?void 0:i.id)!==(null==t?void 0:t.id)?(this.notifySharerOfScreenShareVisibility(!1,this.meeting,null==i?void 0:i.id),this.resetScreenShareVisibilityTracking()):i&&i!==t&&(this.lastNotifiedVisibility=void 0),null!=t&&(this.videoEl&&t.registerScreenshareVideoElement(this.videoEl),this.meeting&&(this.handleScreenShareUpdate(t),i&&i!==t&&this.notifySharerOfScreenShareVisibility(!0),t.id===this.meeting.self.id?t.addListener("screenShareUpdate",this.handleScreenShareUpdate):this.meeting.participants.joined.addListener("screenShareUpdate",this.handleRemoteParticipantScreenShareUpdate)))}meetingChanged(t,i){var e,r,a,s;i&&(this.notifySharerOfScreenShareVisibility(!1,i),this.cleanupParticipant(this.participant,i),this.cleanupMeeting(i)),this.resetScreenShareVisibilityTracking(),t&&(null===(r=(e=t.participants).addListener)||void 0===r||r.call(e,"broadcastedMessage",this.handleScreenShareVisibilityNotification),t.participants.joined.addListener("participantJoined",this.handleViewerJoined),t.participants.joined.addListener("participantLeft",this.handleViewerLeft),null===(a=t.meta)||void 0===a||a.addListener("selfTabUpdate",this.handleActiveTabUpdate),null===(s=t.meta)||void 0===s||s.addListener("activeTabUpdate",this.handleActiveTabUpdate),this.participantChanged(this.participant))}cleanupMeeting(t){var i,e,r,a;this.resetScreenShareVisibilityTracking(),t&&(null===(e=(i=t.participants).removeListener)||void 0===e||e.call(i,"broadcastedMessage",this.handleScreenShareVisibilityNotification),t.participants.joined.removeListener("participantJoined",this.handleViewerJoined),t.participants.joined.removeListener("participantLeft",this.handleViewerLeft),null===(r=t.meta)||void 0===r||r.removeListener("selfTabUpdate",this.handleActiveTabUpdate),null===(a=t.meta)||void 0===a||a.removeListener("activeTabUpdate",this.handleActiveTabUpdate))}cleanupParticipant(t,i=this.meeting){null!=t&&(this.videoEl&&t.deregisterScreenshareVideoElement(this.videoEl),i&&(t.id===i.self.id?t.removeListener("screenShareUpdate",this.handleScreenShareUpdate):i.participants.joined.removeListener("screenShareUpdate",this.handleRemoteParticipantScreenShareUpdate)))}render(){var t,i,e;const r=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id),o=this.trackedScreenShareProducerId&&this.meeting?this.meeting.participants.joined.size:0,n=this.pendingViewerIds.size,d=o>0&&n===o,l=o>0?(o-n)/o*100:0,c=r&&o>0,p=0===n,v=[],b=[];if(c&&!d&&!p)for(const t of this.pendingViewerIds){const i=this.meeting.participants.joined.get(t);i&&(v.length<this.maxVisibleViewerAvatars?v.push(i):this.showRemainingViewers&&b.push(i))}const g=Math.max(0,n-v.length),u=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),f=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return a(s,{key:"6986b5c16de2056d97623e685745c6990496babc",class:{isSelf:r}},a("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},a("video",{key:"c83c791c578fe1b7c4d669d0ffe0f1596e17a780",ref:this.onVideoRef,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},onPlaying:()=>this.notifySharerOfScreenShareVisibility(!0),onLoadedData:()=>{this.videoEl&&!this.videoEl.paused&&this.notifySharerOfScreenShareVisibility(!0)},onPause:this.handleVideoPause,onEnded:this.handleVideoPause,autoPlay:!0,muted:!0,id:"screen-share-video-"+this.participant.id})),a("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!r&&h()&&a("rtk-tooltip",{key:"17221ecf03be22834b3b1b23286dd075cfa885b1",label:u},a("rtk-button",{key:"c1414141153ff0c9a37bc849017e724811e8d536",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:u},a("rtk-icon",{key:"232665f29a058ab86a609025e7c369ace53f0368",icon:f,"aria-hidden":!0,tabIndex:-1})))),r&&a("div",{id:"self-message",key:"self-message"},a("h3",{key:"06a04f7f2feadba54a4c54f0cacd6c4bc557923f"},this.t("screenshare.shared")),a("div",{key:"4e1df4b305d5e4843cac9ae670ac8ff1a77648fa",class:"actions"},null!=this.meeting&&a("rtk-button",{key:"74d2f1793363035a32dc478585d3b5a02d7fdbea",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},a("rtk-icon",{key:"4c4cbf01b1cf9286953ccfb4b40b841eb8203e8b",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),null!=this.meeting&&a("rtk-button",{key:"9fe208d836de4daa414767db5b4e738ec53ce505",variant:"secondary",disabled:this.isSwitchingScreen,onClick:this.shareDifferentScreen},a("rtk-icon",{key:"4040344624fdd4019fa7acdd3a4f2004d68ec3f7",icon:null!==(e=this.iconPack.share_screen_different)&&void 0!==e?e:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),a("rtk-button",{key:"ed8b81b5ad16e2203bffe36651950ba882151d62",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},a("rtk-icon",{key:"23266b23609ce8696652bb3cd3d74bbe779d7262",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),c&&a("div",{key:"2b42d6f65ca92fdc92354f6afc6e1bb322dfd952",class:"validation-status",role:"status","aria-live":"polite"},p?a("span",{class:"all-visible"},this.t("screenshare.visibility.all")):d?a("span",{class:"none-visible"},this.t("screenshare.visibility.none")):a("div",{class:"waiting-viewers"},a("span",null,this.t("screenshare.visibility.not_viewing")),a("div",{class:"pending-avatars"},v.map((t=>a("button",{key:t.id,class:"avatar-trigger",type:"button","aria-label":t.name,onMouseEnter:()=>this.previewedViewerId=t.id,onMouseLeave:()=>this.previewedViewerId=void 0,onFocus:()=>this.previewedViewerId=t.id,onBlur:()=>this.previewedViewerId=void 0,onClick:()=>this.previewedViewerId=t.id},a("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),this.previewedViewerId===t.id&&a("span",{class:"viewer-name","aria-hidden":"true"},t.name)))),g>0&&a("button",{class:"more-avatar",type:"button","aria-label":`${this.t("screenshare.visibility.more")} ${g}`,"aria-expanded":this.showRemainingViewers,"aria-controls":this.showRemainingViewers?"remaining-viewers":void 0,onClick:()=>this.showRemainingViewers=!this.showRemainingViewers,onBlur:()=>this.showRemainingViewers=!1,onKeyDown:t=>{"Escape"===t.key&&(this.showRemainingViewers=!1)}},"+",g)),this.showRemainingViewers&&g>0&&a("div",{id:"remaining-viewers",class:"remaining-viewers",role:"list"},b.map((t=>a("div",{class:"remaining-viewer",role:"listitem",key:t.id},a("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),a("span",null,t.name))))))),c&&a("div",{key:"834ab58b84f6e8471ddc40f9a2ba210cf3390968",class:{"validation-border":!0,"none-active":d,complete:p},style:{"--validation-progress":(d?100:l)+"%"},"aria-hidden":"true"}),a("slot",{key:"63e420aff5f60c85c1c1f5031740e37ff4620214"}))}get host(){return this}static get watchers(){return{participant:[{participantChanged:0}],meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}.validation-border{pointer-events:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);left:var(--rtk-space-3, 12px);border-radius:var(--rtk-border-radius-md, 8px);border:2px solid rgb(var(--rtk-colors-background-600, 60 60 60));--validation-color:rgb(var(--rtk-colors-brand-500, 33 96 253));--rtk-screenshare-view-progress:var(--validation-progress);transition:--rtk-screenshare-view-progress 0.5s linear, border-color 0.5s linear}.validation-border.none-active{border-color:rgb(var(--rtk-colors-danger, 255 45 45));--rtk-screenshare-view-progress:0%;transition:none}.validation-border.complete{--validation-color:rgb(var(--rtk-colors-success, 98 165 4))}.validation-border::after{content:'';position:absolute;inset:-3px;padding:3px;border-radius:inherit;background:conic-gradient( from 0deg, var(--validation-color) var(--rtk-screenshare-view-progress), transparent 0 );-webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);-webkit-mask-composite:xor;-webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.validation-status{margin-top:var(--rtk-space-5, 20px);max-width:100%;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76));position:relative;z-index:2}.waiting-viewers{display:flex;max-width:100%;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px);position:relative}.pending-avatars{display:flex;max-width:100%;flex-wrap:wrap;align-items:center;justify-content:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}.pending-avatars button{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;border-radius:9999px;font-size:10px;display:flex;cursor:pointer;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);border:2px solid rgb(var(--rtk-colors-video-bg, 24 24 24));-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative}.pending-avatars button:focus-visible{outline:2px solid rgb(var(--rtk-colors-brand-500, 33 96 253));outline-offset:2px}.pending-avatars .avatar-trigger{background-color:transparent}.pending-avatars rtk-avatar{height:100%;width:100%;font-size:10px;pointer-events:none}.pending-avatars button+button{margin-left:-10px}.pending-avatars button:hover,.pending-avatars button:focus-visible{z-index:1}.pending-avatars .more-avatar{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-weight:500;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.viewer-name{position:absolute;bottom:100%;left:50%;max-width:var(--rtk-space-48, 192px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;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));padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));pointer-events:none;transform:translateX(-50%);width:-moz-max-content;width:max-content;margin-bottom:4px}.remaining-viewers{max-height:var(--rtk-space-40, 160px);width:var(--rtk-space-64, 256px);max-width:100%;overflow-y: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-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);box-sizing:border-box;display:flex;flex-direction:column;gap:var(--rtk-space-1, 4px);flex-basis:100%;margin:0 auto}.remaining-viewer{display:flex;align-items:center;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-1, 4px);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.remaining-viewer rtk-avatar{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);flex-shrink:0;font-size:10px}.remaining-viewer span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.none-visible{font-size:12px;font-weight:500;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}.all-visible{font-size:12px;font-weight:500;--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}"}},[257,"rtk-screenshare-view",{hideFullScreenButton:[4,"hide-full-screen-button"],maxVisibleViewerAvatars:[2,"max-visible-viewer-avatars"],nameTagPosition:[513,"name-tag-position"],participant:[16],meeting:[16],variant:[513],size:[513],iconPack:[16],t:[16],viewerVisibilityRevision:[32],videoExpanded:[32],screenShareEnabled:[32],isSwitchingScreen:[32],isFullScreen:[32],remoteControlInfo:[32],previewedViewerId:[32],showRemainingViewers:[32]},void 0,{participant:[{participantChanged:0}],meeting:[{meetingChanged:0}]}]);function S(){"undefined"!=typeof customElements&&["rtk-screenshare-view","rtk-avatar","rtk-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screenshare-view":customElements.get(o(t))||customElements.define(o(t),y);break;case"rtk-avatar":customElements.get(o(t))||b();break;case"rtk-button":customElements.get(o(t))||g();break;case"rtk-icon":customElements.get(o(t))||u();break;case"rtk-spinner":customElements.get(o(t))||f();break;case"rtk-tooltip":customElements.get(o(t))||k()}}))}m([v()],y.prototype,"meeting",void 0),m([v()],y.prototype,"iconPack",void 0),m([v()],y.prototype,"t",void 0),S();const z=y,j=S;export{z as RtkScreenshareView,j as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-DwHaSUu3.js";const a=o,p=s;export{a as RtkSettingsAudio,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as o,d as i,t as r}from"./p-BBHQOrFK.js";import{e as n,i as a}from"./p-
|
|
1
|
+
import{p as t,H as e,c as s,h as o,d as i,t as r}from"./p-BBHQOrFK.js";import{e as n,i as a}from"./p-BbVYO_6g.js";import{S as c}from"./p-CNJG60uZ.js";import{d as l}from"./p-CshWFMrN.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as m}from"./p-BJ7Hcvk1.js";var p=function(t,e,s,o){var i,r=arguments.length,n=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(n=(r<3?i(n):r>3?i(e,s,n):i(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const k=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=a()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return o(i,{key:"4a7349ef852627dae7008d2fd0bd3491edce6327",title:t},o("rtk-controlbar-button",{key:"edd2c3e0fedcc8070855acf1bbc8f581775375ea",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}"}},[1,"rtk-settings-toggle",{variant:[513],states:[16],size:[513],iconPack:[16],t:[16]}]);function b(){"undefined"!=typeof customElements&&["rtk-settings-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-settings-toggle":customElements.get(r(t))||customElements.define(r(t),k);break;case"rtk-controlbar-button":customElements.get(r(t))||l();break;case"rtk-icon":customElements.get(r(t))||f();break;case"rtk-spinner":customElements.get(r(t))||m()}}))}p([c()],k.prototype,"states",void 0),p([c()],k.prototype,"iconPack",void 0),p([c()],k.prototype,"t",void 0),b();const u=k,d=b;export{u as RtkSettingsToggle,d as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-D5NZi5H5.js";const p=o,r=s;export{p as RtkSettingsVideo,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as o,h as s,d as i,t as a}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-CtoKGHXg.js";import{S as c}from"./p-16s5ZSAZ.js";import{d}from"./p-TzHbL-Yw.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-woxb-Bmm.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-ChM1gCIW.js";import{d as k}from"./p-C78m8FSo.js";import{d as u}from"./p-BX-q0U6y.js";import{d as g}from"./p-CBBiuExR.js";import{d as m}from"./p-fQitJHsh.js";import{d as v}from"./p-CSQnL_EP.js";var w=function(t,r,o,s){var i,a=arguments.length,e=a<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(e=(a<3?i(e):a>3?i(r,o,e):i(r,o))||e);return a>3&&e&&Object.defineProperty(r,o,e),e};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(i,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},t))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(a(t))||customElements.define(a(t),f);break;case"rtk-audio-visualizer":customElements.get(a(t))||d();break;case"rtk-button":customElements.get(a(t))||l();break;case"rtk-camera-selector":customElements.get(a(t))||p();break;case"rtk-icon":customElements.get(a(t))||b();break;case"rtk-microphone-selector":customElements.get(a(t))||h();break;case"rtk-participant-tile":customElements.get(a(t))||k();break;case"rtk-settings-audio":customElements.get(a(t))||u();break;case"rtk-settings-video":customElements.get(a(t))||g();break;case"rtk-speaker-selector":customElements.get(a(t))||m();break;case"rtk-switch":customElements.get(a(t))||v()}}))}w([c()],f.prototype,"meeting",void 0),w([c()],f.prototype,"states",void 0),w([c()],f.prototype,"iconPack",void 0),w([c()],f.prototype,"t",void 0),x();const y=f,j=x;export{y as RtkSettings,j as defineCustomElement}
|
|
1
|
+
import{p as t,H as r,c as o,h as s,d as a,t as i}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-BbVYO_6g.js";import{S as c}from"./p-CNJG60uZ.js";import{d}from"./p-D_HYgg0D.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-453sV-Ir.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-BtMpJ0mM.js";import{d as k}from"./p-BwpYVCMj.js";import{d as u}from"./p-DwHaSUu3.js";import{d as g}from"./p-D5NZi5H5.js";import{d as m}from"./p-DIblgdpF.js";import{d as v}from"./p-CP4anCBG.js";var w=function(t,r,o,s){var a,i=arguments.length,e=i<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(e=(i<3?a(e):i>3?a(r,o,e):a(r,o))||e);return i>3&&e&&Object.defineProperty(r,o,e),e};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(a,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},t))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(i(t))||customElements.define(i(t),f);break;case"rtk-audio-visualizer":customElements.get(i(t))||d();break;case"rtk-button":customElements.get(i(t))||l();break;case"rtk-camera-selector":customElements.get(i(t))||p();break;case"rtk-icon":customElements.get(i(t))||b();break;case"rtk-microphone-selector":customElements.get(i(t))||h();break;case"rtk-participant-tile":customElements.get(i(t))||k();break;case"rtk-settings-audio":customElements.get(i(t))||u();break;case"rtk-settings-video":customElements.get(i(t))||g();break;case"rtk-speaker-selector":customElements.get(i(t))||m();break;case"rtk-switch":customElements.get(i(t))||v()}}))}w([c()],f.prototype,"meeting",void 0),w([c()],f.prototype,"states",void 0),w([c()],f.prototype,"iconPack",void 0),w([c()],f.prototype,"t",void 0),x();const y=f,j=x;export{y as RtkSettings,j as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as i,h as r,F as o,d as s,t as a}from"./p-BBHQOrFK.js";import{s as n}from"./p-CJsXePY3.js";import{c,e as l,i as d,f as p}from"./p-CtoKGHXg.js";import{R as h}from"./p-CBJjerDR.js";import{a as m}from"./p-Bs5Z4Y29.js";import{S as v}from"./p-16s5ZSAZ.js";import{g as k}from"./p-vBfDtD_u.js";import{d as u}from"./p-D6vw6bT2.js";import{d as g}from"./p-woxb-Bmm.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as f}from"./p-ChM1gCIW.js";import{d as x}from"./p-fQitJHsh.js";import{d as w}from"./p-DeQvmRpj.js";var y=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const j=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=c(),this.iconPack=l,this.t=d(),this.overrides=p,this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"connected"===t&&(this.joinError=void 0,this.joinErrorCode=void 0),"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,e,i;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){if("connected"!==this.connectionState)return void(this.connectionState&&(this.joinError=this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")));this.isJoining=!0,this.joinError=void 0,this.joinErrorCode=void 0,null===(e=this.meeting)||void 0===e||e.self.setName(this.displayName),m.setItem("rtk-display-name",this.displayName);try{await(null===(i=this.meeting)||void 0===i?void 0:i.join())}catch(t){this.isJoining=!1;const{message:e,code:i}=k(this.t,t);this.joinError=e,this.joinErrorCode=i}}}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting.meta.removeListener("socketConnectionUpdate",this.socketStateUpdate)}componentDidLoad(){var t;null===(t=this.inputEl)||void 0===t||t.focus()}meetingChanged(t){var e,i,r;t&&(this.connectionState=null===(e=t.meta.socketState)||void 0===e?void 0:e.state,this.canEditName=null===(i=t.self.permissions.canEditDisplayName)||void 0===i||i,this.displayName=(null===(r=t.self.name)||void 0===r?void 0:r.trim())||(this.canEditName?"":"Participant"),t.meta.addListener("socketConnectionUpdate",this.socketStateUpdate))}render(){var t,e,i,a,c,l,d;if(!this.meeting)return;const p=!!this.connectionState&&"connected"!==this.connectionState&&!this.joinError,m=this.joinError?this.joinError:this.t("failed"===this.connectionState?"network.lost_extended":"network.lost"),v=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,k={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},u=null===(a=null===(i=null===(e=this.meeting)||void 0===e?void 0:e.meta)||void 0===i?void 0:i.meetingTitle)||void 0===a?void 0:a.trim();return r(s,null,r("div",{class:"container"},r("div",{class:"container-tile"},r(h,{element:"rtk-participant-tile",defaults:k,props:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md",isPreview:!0},childProps:{participant:null===(l=this.meeting)||void 0===l?void 0:l.self,size:"md"},deepProps:!0}),!(null===(d=this.overrides)||void 0===d?void 0:d.hideMediaSelectorsInSetupScreen)&&r("div",{class:"media-selectors"},r("rtk-microphone-selector",Object.assign({},k,{variant:"inline"})),r("rtk-camera-selector",Object.assign({},k,{variant:"inline"})),r("rtk-speaker-selector",Object.assign({},k,{variant:"inline"})))),r("div",{class:"metadata"},u&&""!==u&&r("div",{class:"meeting-title"},u),this.canEditName?r(o,null,r("div",{class:"join-as"},this.t("setup_screen.join_in_as")),r("input",{placeholder:this.t("setup_screen.your_name"),value:this.displayName,spellcheck:!1,autoFocus:!0,ref:t=>{this.inputEl=t},onInput:t=>{this.displayName=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.join()}})):r("div",{class:"uneditable-name"},r("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",r("div",{class:"name"},n(this.displayName,20))),r("rtk-button",{size:"lg",kind:"wide",onClick:this.join,disabled:v},this.isJoining?r("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),(this.joinError||p)&&r("div",{class:"no-network-badge",role:"alert"},r("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected}),m),this.meeting&&this.joinError&&r("a",{class:"troubleshoot-link",href:"https://test.realtime.cloudflare.com?authToken="+this.meeting.__internals__.authToken,target:"_blank",rel:"noopener noreferrer"},this.t("network.troubleshoot")),this.joinErrorCode&&r("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",this.joinErrorCode))))}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{box-sizing:border-box;padding:var(--rtk-space-4, 16px);height:100%;min-height:100%;width:100%;display:flex;place-items:center;justify-content:center;--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-700, 44 44 44))}.container{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-evenly;gap:var(--rtk-space-4, 16px)}.container-tile{display:flex;height:100%;width:100%;max-width:584px;flex-direction:column;gap:var(--rtk-space-2, 8px)}.metadata{display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;align-items:center;text-align:center}.meeting-title{margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:24px;font-weight:500}.join-as{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:16px;letter-spacing:-0.025em;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.uneditable-name{margin-bottom:var(--rtk-space-6, 24px)}.uneditable-name .text,.uneditable-name .name{display:inline-block}.uneditable-name .name{font-size:16px;font-weight:500}input{margin-bottom:var(--rtk-space-6, 24px);display:block;height:var(--rtk-space-10, 40px);width:100%;max-width:var(--rtk-space-80, 320px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));box-sizing:border-box;font-size:16px;outline:2px solid transparent;outline-offset:2px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}rtk-spinner{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--icon-size:var(--rtk-space-8, 32px)}:host([size='sm']) .container,:host([size='md']) .container{height:100%;flex-direction:column;justify-content:space-evenly}:host([size='sm']) .container-tile,:host([size='md']) .container-tile{height:-moz-min-content;height:min-content;flex-direction:column;justify-content:center}rtk-participant-tile{height:auto;width:100%;max-width:584px;overflow:visible}.media-selectors{display:flex;flex-direction:column;justify-content:space-between}.media-selectors .row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr))}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}.troubleshoot-link{margin-top:var(--rtk-space-1, 4px);font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:2px}.troubleshoot-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.error-code{margin-top:var(--rtk-space-1, 4px);font-size:10px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}"}},[1,"rtk-setup-screen",{meeting:[16],states:[16],size:[513],config:[16],iconPack:[16],t:[16],overrides:[16],displayName:[32],isJoining:[32],joinError:[32],joinErrorCode:[32],canEditName:[32],canProduceAudio:[32],connectionState:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function z(){"undefined"!=typeof customElements&&["rtk-setup-screen","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-speaker-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-setup-screen":customElements.get(a(t))||customElements.define(a(t),j);break;case"rtk-button":customElements.get(a(t))||u();break;case"rtk-camera-selector":customElements.get(a(t))||g();break;case"rtk-icon":customElements.get(a(t))||b();break;case"rtk-microphone-selector":customElements.get(a(t))||f();break;case"rtk-speaker-selector":customElements.get(a(t))||x();break;case"rtk-spinner":customElements.get(a(t))||w()}}))}y([v()],j.prototype,"meeting",void 0),y([v()],j.prototype,"states",void 0),y([v()],j.prototype,"config",void 0),y([v()],j.prototype,"iconPack",void 0),y([v()],j.prototype,"t",void 0),y([v()],j.prototype,"overrides",void 0),z();const C=j,E=z;export{C as RtkSetupScreen,E as defineCustomElement}
|
|
1
|
+
import{p as t,H as e,c as i,h as r,F as o,d as s,t as a}from"./p-BBHQOrFK.js";import{s as n}from"./p-CJsXePY3.js";import{c,e as l,i as d,f as p}from"./p-BbVYO_6g.js";import{R as h}from"./p-CBJjerDR.js";import{a as m}from"./p-Bs5Z4Y29.js";import{S as k}from"./p-CNJG60uZ.js";import{g as v}from"./p-vBfDtD_u.js";import{d as u}from"./p-D6vw6bT2.js";import{d as g}from"./p-453sV-Ir.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as f}from"./p-BtMpJ0mM.js";import{d as x}from"./p-DIblgdpF.js";import{d as w}from"./p-BJ7Hcvk1.js";var y=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const j=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=c(),this.iconPack=l,this.t=d(),this.overrides=p,this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"connected"===t&&(this.joinError=void 0,this.joinErrorCode=void 0),"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,e,i;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){if("connected"!==this.connectionState)return void(this.connectionState&&(this.joinError=this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")));this.isJoining=!0,this.joinError=void 0,this.joinErrorCode=void 0,null===(e=this.meeting)||void 0===e||e.self.setName(this.displayName),m.setItem("rtk-display-name",this.displayName);try{await(null===(i=this.meeting)||void 0===i?void 0:i.join())}catch(t){this.isJoining=!1;const{message:e,code:i}=v(this.t,t);this.joinError=e,this.joinErrorCode=i}}}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting.meta.removeListener("socketConnectionUpdate",this.socketStateUpdate)}componentDidLoad(){var t;null===(t=this.inputEl)||void 0===t||t.focus()}meetingChanged(t){var e,i,r;t&&(this.connectionState=null===(e=t.meta.socketState)||void 0===e?void 0:e.state,this.canEditName=null===(i=t.self.permissions.canEditDisplayName)||void 0===i||i,this.displayName=(null===(r=t.self.name)||void 0===r?void 0:r.trim())||(this.canEditName?"":"Participant"),t.meta.addListener("socketConnectionUpdate",this.socketStateUpdate))}render(){var t,e,i,a,c,l,d;if(!this.meeting)return;const p=!!this.connectionState&&"connected"!==this.connectionState&&!this.joinError,m=this.joinError?this.joinError:this.t("failed"===this.connectionState?"network.lost_extended":"network.lost"),k=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,v={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},u=null===(a=null===(i=null===(e=this.meeting)||void 0===e?void 0:e.meta)||void 0===i?void 0:i.meetingTitle)||void 0===a?void 0:a.trim();return r(s,null,r("div",{class:"container"},r("div",{class:"container-tile"},r(h,{element:"rtk-participant-tile",defaults:v,props:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md",isPreview:!0},childProps:{participant:null===(l=this.meeting)||void 0===l?void 0:l.self,size:"md"},deepProps:!0}),!(null===(d=this.overrides)||void 0===d?void 0:d.hideMediaSelectorsInSetupScreen)&&r("div",{class:"media-selectors"},r("rtk-microphone-selector",Object.assign({},v,{variant:"inline"})),r("rtk-camera-selector",Object.assign({},v,{variant:"inline"})),r("rtk-speaker-selector",Object.assign({},v,{variant:"inline"})))),r("div",{class:"metadata"},u&&""!==u&&r("div",{class:"meeting-title"},u),this.canEditName?r(o,null,r("div",{class:"join-as"},this.t("setup_screen.join_in_as")),r("input",{placeholder:this.t("setup_screen.your_name"),value:this.displayName,spellcheck:!1,autoFocus:!0,ref:t=>{this.inputEl=t},onInput:t=>{this.displayName=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.join()}})):r("div",{class:"uneditable-name"},r("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",r("div",{class:"name"},n(this.displayName,20))),r("rtk-button",{size:"lg",kind:"wide",onClick:this.join,disabled:k},this.isJoining?r("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),(this.joinError||p)&&r("div",{class:"no-network-badge",role:"alert"},r("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected}),m),this.meeting&&this.joinError&&r("a",{class:"troubleshoot-link",href:"https://test.realtime.cloudflare.com?authToken="+this.meeting.__internals__.authToken,target:"_blank",rel:"noopener noreferrer"},this.t("network.troubleshoot")),this.joinErrorCode&&r("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",this.joinErrorCode))))}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{box-sizing:border-box;padding:var(--rtk-space-4, 16px);height:100%;min-height:100%;width:100%;display:flex;place-items:center;justify-content:center;--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-700, 44 44 44))}.container{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-evenly;gap:var(--rtk-space-4, 16px)}.container-tile{display:flex;height:100%;width:100%;max-width:584px;flex-direction:column;gap:var(--rtk-space-2, 8px)}.metadata{display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;align-items:center;text-align:center}.meeting-title{margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:24px;font-weight:500}.join-as{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:16px;letter-spacing:-0.025em;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.uneditable-name{margin-bottom:var(--rtk-space-6, 24px)}.uneditable-name .text,.uneditable-name .name{display:inline-block}.uneditable-name .name{font-size:16px;font-weight:500}input{margin-bottom:var(--rtk-space-6, 24px);display:block;height:var(--rtk-space-10, 40px);width:100%;max-width:var(--rtk-space-80, 320px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));box-sizing:border-box;font-size:16px;outline:2px solid transparent;outline-offset:2px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}rtk-spinner{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--icon-size:var(--rtk-space-8, 32px)}:host([size='sm']) .container,:host([size='md']) .container{height:100%;flex-direction:column;justify-content:space-evenly}:host([size='sm']) .container-tile,:host([size='md']) .container-tile{height:-moz-min-content;height:min-content;flex-direction:column;justify-content:center}rtk-participant-tile{height:auto;width:100%;max-width:584px;overflow:visible}.media-selectors{display:flex;flex-direction:column;justify-content:space-between}.media-selectors .row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr))}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}.troubleshoot-link{margin-top:var(--rtk-space-1, 4px);font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:2px}.troubleshoot-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.error-code{margin-top:var(--rtk-space-1, 4px);font-size:10px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}"}},[1,"rtk-setup-screen",{meeting:[16],states:[16],size:[513],config:[16],iconPack:[16],t:[16],overrides:[16],displayName:[32],isJoining:[32],joinError:[32],joinErrorCode:[32],canEditName:[32],canProduceAudio:[32],connectionState:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function z(){"undefined"!=typeof customElements&&["rtk-setup-screen","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-speaker-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-setup-screen":customElements.get(a(t))||customElements.define(a(t),j);break;case"rtk-button":customElements.get(a(t))||u();break;case"rtk-camera-selector":customElements.get(a(t))||g();break;case"rtk-icon":customElements.get(a(t))||b();break;case"rtk-microphone-selector":customElements.get(a(t))||f();break;case"rtk-speaker-selector":customElements.get(a(t))||x();break;case"rtk-spinner":customElements.get(a(t))||w()}}))}y([k()],j.prototype,"meeting",void 0),y([k()],j.prototype,"states",void 0),y([k()],j.prototype,"config",void 0),y([k()],j.prototype,"iconPack",void 0),y([k()],j.prototype,"t",void 0),y([k()],j.prototype,"overrides",void 0),z();const _=j,E=z;export{_ as RtkSetupScreen,E as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as p}from"./p-Bhp9Zffa.js";const s=o,a=p;export{s as RtkSidebarUi,a as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,c as i,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{c as o,e as n,i as l}from"./p-
|
|
1
|
+
import{p as t,H as s,c as i,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{c as o,e as n,i as l}from"./p-BbVYO_6g.js";import{c as p,d as c,a as h,b as d,e as m}from"./p-D9HGXWKc.js";import{S as k}from"./p-CNJG60uZ.js";import{R as u}from"./p-CBJjerDR.js";import{d as b}from"./p-C7qQzBOW.js";import{d as v}from"./p-CsY7NAuq.js";import{d as g}from"./p-D6vw6bT2.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as w}from"./p-CjID2TEf.js";import{d as x}from"./p-CSW-it45.js";import{d as j}from"./p-sG2nShz-.js";import{d as C}from"./p-C-Jht7Ou.js";import{d as E}from"./p-Bhp9Zffa.js";import{d as y}from"./p-DHSRRtn3.js";var S=function(t,s,i,a){var e,r=arguments.length,o=r<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(o=(r<3?e(o):r>3?e(s,i,o):e(s,i))||o);return r>3&&o&&Object.defineProperty(s,i,o),o};const O=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=o(),this.iconPack=n,this.t=l(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>!(t.id in this.meeting.self.config.controlBar.elements)||this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var s,i;t&&(this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(i=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===i||i.on("stageStatusUpdate",this.onStageStatusUpdate))}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const s=[];p(t)&&s.push({id:"chat",name:this.t("chat")}),c(t)&&s.push({id:"polls",name:this.t("polls")}),h(t)&&s.push({id:"participants",name:this.t("participants")}),d(t)&&s.push({id:"plugins",name:this.t("plugins")}),m(t)&&s.push({id:"ai",name:this.t("ai.meeting_ai")}),this.enabledSections=s}render(){var t;if(!this.meeting)return null;const s={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=s.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?a(e,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},a("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&a("div",{class:"pinned-state",slot:"pinned-state"},a("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},a("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===s.states.sidebar&&a(u,{element:"rtk-chat",defaults:s,props:{slot:"chat"}}),"polls"===s.states.sidebar&&a("rtk-polls",Object.assign({},s,{slot:"polls"})),"participants"===s.states.sidebar&&a(u,{element:"rtk-participants",defaults:s,props:{slot:"participants"}}),"plugins"===s.states.sidebar&&a("rtk-plugins",Object.assign({},s,{slot:"plugins"})),"ai"===s.states.sidebar&&a("rtk-ai",Object.assign({},s,{slot:"ai"})))):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{margin-right:var(--rtk-space-0, 0px);height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-4, 16px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}"}},[1,"rtk-sidebar",{enabledSections:[1040],defaultSection:[1,"default-section"],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],size:[513],view:[513],currentTab:[32],isFloating:[32],enablePinning:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}]);function B(){"undefined"!=typeof customElements&&["rtk-sidebar","rtk-ai","rtk-ai-transcriptions","rtk-button","rtk-icon","rtk-plugins","rtk-poll","rtk-poll-form","rtk-polls","rtk-sidebar-ui","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-sidebar":customElements.get(r(t))||customElements.define(r(t),O);break;case"rtk-ai":customElements.get(r(t))||b();break;case"rtk-ai-transcriptions":customElements.get(r(t))||v();break;case"rtk-button":customElements.get(r(t))||g();break;case"rtk-icon":customElements.get(r(t))||f();break;case"rtk-plugins":customElements.get(r(t))||w();break;case"rtk-poll":customElements.get(r(t))||x();break;case"rtk-poll-form":customElements.get(r(t))||j();break;case"rtk-polls":customElements.get(r(t))||C();break;case"rtk-sidebar-ui":customElements.get(r(t))||E();break;case"rtk-tooltip":customElements.get(r(t))||y()}}))}S([k()],O.prototype,"meeting",void 0),S([k()],O.prototype,"states",void 0),S([k()],O.prototype,"config",void 0),S([k()],O.prototype,"iconPack",void 0),S([k()],O.prototype,"t",void 0),B();const R=O,z=B;export{R as RtkSidebar,z 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{c as o,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{c as o,e as a,i as r}from"./p-BbVYO_6g.js";import{R as h}from"./p-CBJjerDR.js";import{u as c}from"./p-CmmyVCoN.js";import{i as p}from"./p-FdeAvICb.js";import{S as l}from"./p-CNJG60uZ.js";var m=function(t,i,e,s){var n,o=arguments.length,a=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(o<3?n(a):o>3?n(i,e,a):n(i,e))||a);return o>3&&a&&Object.defineProperty(i,e,a),a};const d=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.participants=[],this.aspectRatio="16:9",this.gap=8,this.config=o(),this.iconPack=a,this.t=r(),this.dimensions={width:0,height:0},this.setHostDimensions=()=>{const{clientWidth:t,clientHeight:i}=this.host;this.dimensions={width:t,height:i}}}connectedCallback(){this.resizeObserver=new p(this.setHostDimensions),this.resizeObserver.observe(this.host),this.meetingChanged(this.meeting)}meetingChanged(t){const i=null==t?void 0:t.meta;i&&(this.mediaConnection=Object.assign({},i.mediaState))}disconnectedCallback(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},{width:i,height:n,getPosition:o}=c({dimensions:this.dimensions,count:this.participants.length,aspectRatio:this.aspectRatio,gap:this.gap});return e(s,null,e("slot",null,this.participants.map(((s,a)=>{const{top:r,left:c}=o(a);return e(h,{element:"rtk-participant-tile",defaults:t,props:{participant:s,style:{position:"absolute",top:r+"px",left:c+"px",width:i+"px",height:n+"px"},key:s.id,"data-participant":s.id,mediaConnection:this.mediaConnection},childProps:{participant:s},deepProps:!0})}))))}get host(){return this}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{position:relative;display:block;height:100%;width:100%}"}},[257,"rtk-simple-grid",{participants:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],dimensions:[32],mediaConnection:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-simple-grid"].forEach((t=>{"rtk-simple-grid"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))}m([l()],d.prototype,"meeting",void 0),m([l()],d.prototype,"states",void 0),m([l()],d.prototype,"config",void 0),m([l()],d.prototype,"iconPack",void 0),m([l()],d.prototype,"t",void 0),g();const f=d,u=g;export{f as RtkSimpleGrid,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as p}from"./p-DIblgdpF.js";const s=o,r=p;export{s as RtkSpeakerSelector,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as s}from"./p-BJ7Hcvk1.js";const p=o,r=s;export{p as RtkSpinner,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,h as s,d as e,t as d}from"./p-BBHQOrFK.js";import{c as a,e as h,i as
|
|
1
|
+
import{p as t,H as i,h as s,d as e,t as d}from"./p-BBHQOrFK.js";import{c as a,e as h,i as r}from"./p-BbVYO_6g.js";import{d as o}from"./p-CmmyVCoN.js";import{R as m}from"./p-CBJjerDR.js";import{S as n}from"./p-CNJG60uZ.js";var c=function(t,i,s,e){var d,a=arguments.length,h=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(d=t[r])&&(h=(a<3?d(h):a>3?d(i,s,h):d(i,s))||h);return a>3&&h&&Object.defineProperty(i,s,h),h};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=a(),this.iconPack=h,this.t=r(),this.gridSize=o,this.getAdaptiveSize=t=>"sm"===this.size||t>3||"md"===this.size?"sm":"md"}render(){const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},i=this.participants.filter((t=>this.pinnedParticipants.some((i=>i.id!=t.id))));return s(e,{key:"80307410481d7418e30c78351b6ec16e466b95da"},s("main",{key:"e454d37b226868e02f8da6f61abf18f274ce3fdd",part:"main"},s(m,{key:"b05d69dd12ea7f2da225e4c0456aa9979d6db153",element:"rtk-simple-grid",defaults:t,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),i.length>0&&s("aside",{key:"d7de316e63f1a4a770022f7da4ebc5836b3f28d6",part:"aside",class:this.gridSize.spotlight?"grid-width-"+this.gridSize.spotlight:"grid-width-md"},s(m,{key:"92c24d74113f04f8334be5a2fc1c68dd9d0ca421",element:"rtk-simple-grid",defaults:t,props:{part:"aside-grid",participants:i,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(i.length)}})))}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{display:flex;height:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}"}},[1,"rtk-spotlight-grid",{layout:[513],participants:[16],pinnedParticipants:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16]}]);function g(){"undefined"!=typeof customElements&&["rtk-spotlight-grid"].forEach((t=>{"rtk-spotlight-grid"===t&&(customElements.get(d(t))||customElements.define(d(t),p))}))}c([n()],p.prototype,"meeting",void 0),c([n()],p.prototype,"states",void 0),c([n()],p.prototype,"config",void 0),c([n()],p.prototype,"iconPack",void 0),c([n()],p.prototype,"t",void 0),g();const l=p,f=g;export{l as RtkSpotlightGrid,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-B5e4-Gnb.js";const p=o,r=s;export{p as RtkSpotlightIndicator,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as s,h as e,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import
|
|
1
|
+
import{p as t,H as i,c as s,h as e,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-Rq_6y0HI.js";import{e as n,i as l}from"./p-BbVYO_6g.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as r}from"./p-CNJG60uZ.js";import{d}from"./p-CshWFMrN.js";import{d as c}from"./p-BYIBbfJ8.js";import{d as h}from"./p-BJ7Hcvk1.js";import{d as u}from"./p-DHSRRtn3.js";var v=function(t,i,s,e){var o,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(n=(a<3?o(n):a>3?o(i,s,n):o(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=l(),this.stageStatus="OFF_STAGE",this.state={label:"",disabled:!1,icon:""},this.stageCallback=async()=>{var t,i,s,e,o,a,n;const l=null===(t=this.meeting.stage)||void 0===t?void 0:t.status;"ON_STAGE"===l&&await(null===(s=null===(i=null==this?void 0:this.meeting)||void 0===i?void 0:i.stage)||void 0===s?void 0:s.leave()),"OFF_STAGE"===l&&(null===(o=null===(e=null==this?void 0:this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.requestAccess(),(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"ALLOWED"===(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)&&(this.states.activeJoinStage=!0,this.stateUpdate.emit({activeJoinStage:!0}))),"REQUESTED_TO_JOIN_STAGE"===l&&(null===(n=null===(a=null==this?void 0:this.meeting)||void 0===a?void 0:a.stage)||void 0===n||n.cancelRequestAccess())}}connectedCallback(){this.meetingChanged(this.meeting)}stageStatusHandler(t,i){this.stageStatus=i,"ACCEPTED_TO_JOIN_STAGE"===i&&(t.self.setupTracks({audio:!1,video:!1}),this.stateUpdate.emit({activeJoinStage:!0})),this.state=this.getState()}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",(t=>this.stageStatusHandler(this.meeting,t)))}meetingChanged(t){var i,s,e,o;t&&(this.stageStatus=null===(i=t.stage)||void 0===i?void 0:i.status,this.stageStatusHandler(t,null===(s=t.stage)||void 0===s?void 0:s.status),null===(o=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.on("stageStatusUpdate",(i=>this.stageStatusHandler(t,i))))}getState(){let t="",i="",s=!1;switch(this.stageStatus){case"ON_STAGE":i=this.iconPack.leave_stage,t=this.t("stage_request.leave_stage"),s=!1;break;case"ACCEPTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!0;break;case"REQUESTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.requested"),s=!1;break;default:i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!1}return{label:t,disabled:s,icon:i}}render(){return(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"NOT_ALLOWED"!==(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)?e(o,{title:this.state.label},e("rtk-tooltip",{placement:"top",kind:"block",label:this.state.label,delay:600,part:"tooltip"},e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.state.label,icon:this.state.icon,onClick:this.stageCallback,disabled:this.state.disabled,showWarning:!1}))):e(o,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}"}},[1,"rtk-stage-toggle",{variant:[513],meeting:[16],size:[513],iconPack:[16],states:[16],t:[16],stageStatus:[32],state:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-stage-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-stage-toggle":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-controlbar-button":customElements.get(a(t))||d();break;case"rtk-icon":customElements.get(a(t))||c();break;case"rtk-spinner":customElements.get(a(t))||h();break;case"rtk-tooltip":customElements.get(a(t))||u()}}))}v([r()],p.prototype,"meeting",void 0),v([r()],p.prototype,"iconPack",void 0),v([r()],p.prototype,"states",void 0),v([r()],p.prototype,"t",void 0),m();const g=p,k=m;export{g as RtkStageToggle,k as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as
|
|
1
|
+
import{p as t,H as e,c as s,h as a,d as o,t as r}from"./p-BBHQOrFK.js";import{e as i,i as n}from"./p-BbVYO_6g.js";import{S as c}from"./p-CNJG60uZ.js";var f=function(t,e,s,a){var o,r=arguments.length,i=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,a);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r<3?o(i):r>3?o(e,s,i):o(e,s))||i);return r>3&&i&&Object.defineProperty(e,s,i),i};const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.iconPack=i,this.t=n()}render(){return a(o,{key:"f6dd0ce28b9760f1e0a176963f42d5d13e3fcee3"},a("slot",{key:"f6e3e11c57948dcc5207ae42a6c045e35657ac4e"}))}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;position:relative;overflow:hidden}"}},[257,"rtk-stage",{iconPack:[16],t:[16]}]);function p(){"undefined"!=typeof customElements&&["rtk-stage"].forEach((t=>{"rtk-stage"===t&&(customElements.get(r(t))||customElements.define(r(t),l))}))}f([c()],l.prototype,"iconPack",void 0),f([c()],l.prototype,"t",void 0),p();const d=l,m=p;export{d as RtkStage,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-CP4anCBG.js";const a=o,p=s;export{a as RtkSwitch,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-B7ZjIFa-.js";const a=o,p=s;export{a as RtkTabBar,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-CNY9L4u1.js";const p=o,r=s;export{p as RtkTextComposerView,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-D8OMvJbR.js";const p=o,r=s;export{p as RtkTextMessage,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as s}from"./p-DuB7bImP.js";const m=o,p=s;export{m as RtkTranscript,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,w as e,h as i,d as r,t as n}from"./p-BBHQOrFK.js";import{c as a,i as o,
|
|
1
|
+
import{p as t,H as s,w as e,h as i,d as r,t as n}from"./p-BBHQOrFK.js";import{c as a,i as o,j as c}from"./p-BbVYO_6g.js";import"./p-Rq_6y0HI.js";import"./p-C0vp-Q7v.js";import"./p-Bs5Z4Y29.js";import{S as h}from"./p-CNJG60uZ.js";import{d as p}from"./p-DuB7bImP.js";var d=function(t,s,e,i){var r,n=arguments.length,a=n<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,e,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(n<3?r(a):n>3?r(s,e,a):r(s,e))||a);return n>3&&a&&Object.defineProperty(s,e,a),a};const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=a(),this.t=o(),this.transcripts=[],this.listenerAttached=!1,this.onTranscript=t=>{t.transcript&&this.add(t)}}connectedCallback(){this.meetingChanged(this.meeting)}addListener(t){var s;null===(s=null==t?void 0:t.ai)||void 0===s||s.addListener("transcript",this.onTranscript),this.listenerAttached=!0}clearListeners(t){var s;this.onTranscript&&(null===(s=null==t?void 0:t.ai)||void 0===s||s.removeListener("transcript",this.onTranscript)),this.listenerAttached=!1,clearTimeout(this.disconnectTimeout),this.transcripts=[]}disconnectedCallback(){this.meeting&&this.clearListeners(this.meeting)}meetingChanged(t,s){clearTimeout(this.disconnectTimeout),s&&this.clearListeners(s),t&&this.states.activeCaptions&&this.addListener(t)}statesChanged(t){t&&(t.activeCaptions&&!this.listenerAttached&&this.addListener(this.meeting),!t.activeCaptions&&this.listenerAttached&&this.clearListeners(this.meeting))}transcriptionsReducer(t,s){if(!t.length)return[s];let e=t[t.length-1];return e.peerId!==s.peerId?t.concat(s):e.id===s.id?(e.transcript=s.transcript,t.pop(),t.concat(c(e))):t.concat(s)}add(t){this.transcripts=this.transcriptionsReducer(this.transcripts,t),this.pruneToLatestTwoGroups()}buildGroups(){const t=[];return this.transcripts.forEach((s=>{const e=t[t.length-1];!e||e.peerId!==s.peerId||e.combinedText.length+s.transcript.length>400?(t.push({renderedId:s.id,peerId:s.peerId,combinedText:s.transcript,entries:[s]}),s.renderedId=s.id):(e.combinedText+=" "+s.transcript,s.renderedId=e.renderedId,e.entries.push(s))})),t}pruneToLatestTwoGroups(){const t=this.buildGroups();if(t.length<=2)return;const s=new Set(t.slice(-2).flatMap((t=>t.entries)));this.transcripts=this.transcripts.filter((t=>s.has(t)))}remove(t){this.transcripts=this.transcripts.filter((s=>s.renderedId!==t))}handleDismiss(t){t.stopPropagation();const{id:s,renderedId:i}=t.detail,r=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==r||r.classList.add("exit"),setTimeout((()=>{e((()=>{this.remove(i)}))}),400)}renderTranscripts(){return this.buildGroups().slice(-2).map((t=>{const s=t.entries[0];return i("rtk-transcript",{key:s.id,"data-id":s.id,transcript:{name:s.name,date:s.date,peerId:t.peerId,userId:s.userId,customParticipantId:s.customParticipantId,transcript:t.combinedText,id:s.id,renderedId:t.renderedId},onRtkTranscriptDismiss:t=>this.handleDismiss(t),t:this.t})}))}render(){if(this.states.activeCaptions)return i(r,null,this.renderTranscripts())}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{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;justify-content:center;width:100%;z-index:5}rtk-transcript{margin-top:var(--rtk-space-2, 8px)}"}},[1,"rtk-transcripts",{meeting:[16],states:[16],config:[16],t:[16],transcripts:[32],listenerAttached:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-transcripts","rtk-transcript"].forEach((t=>{switch(t){case"rtk-transcripts":customElements.get(n(t))||customElements.define(n(t),l);break;case"rtk-transcript":customElements.get(n(t))||p()}}))}d([h()],l.prototype,"meeting",void 0),d([h()],l.prototype,"states",void 0),d([h()],l.prototype,"config",void 0),d([h()],l.prototype,"t",void 0),u();const m=l,f=u;export{m as RtkTranscripts,f as defineCustomElement}
|