@cloudflare/realtimekit-ui 2.0.4-staging.4 → 2.1.0-staging.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/cjs/{TextMessage-cfaZckxh.js → TextMessage-DVnzTDQZ.js} +1 -1
- package/dist/cjs/{chat-Dmb93Uku.js → chat-D8i3i2bg.js} +1 -1
- package/dist/cjs/{config-wbyoqfPs.js → config-t-J_04EF.js} +2 -2
- package/dist/cjs/{debounce-B5TJRWkG.js → debounce-CQIU-j5e.js} +1 -1
- package/dist/cjs/{index-CmhPLhux.js → index-C-oPvlkH.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{init-error-BC4ECjPk.js → init-error-ByISl9tW.js} +15 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{merge-B7Yr5DGf.js → merge-KLUu1Byd.js} +1 -1
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +3 -3
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +10 -10
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
- package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +6 -6
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-header.cjs.entry.js +2 -2
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
- package/dist/cjs/rtk-notifications.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant_2.cjs.entry.js +5 -5
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-poll_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +46 -17
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +25 -9
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +3 -3
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
- package/dist/cjs/{ui-store-C7CyFWPZ.js → ui-store-CLm8oxnm.js} +9 -0
- package/dist/collection/components/rtk-ai/rtk-ai.js +2 -2
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +2 -2
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +2 -2
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +2 -2
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +2 -2
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +2 -2
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +2 -2
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +2 -2
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +2 -2
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +2 -2
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +2 -2
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +2 -2
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +2 -2
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +2 -2
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +2 -2
- package/dist/collection/components/rtk-chat/rtk-chat.js +2 -2
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +2 -2
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +2 -2
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +2 -2
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +2 -2
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +2 -2
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +2 -2
- package/dist/collection/components/rtk-chat-selector/rtk-chat-selector.js +2 -2
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +2 -2
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +2 -2
- package/dist/collection/components/rtk-clock/rtk-clock.js +1 -1
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +2 -2
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +2 -2
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +1 -1
- package/dist/collection/components/rtk-counter/rtk-counter.js +2 -2
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +2 -2
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +2 -2
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +2 -2
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +2 -2
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +2 -2
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +2 -2
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +2 -2
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +2 -2
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +2 -2
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +2 -2
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +2 -2
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +2 -2
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +2 -2
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +2 -2
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +1 -1
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +3 -3
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +2 -2
- package/dist/collection/components/rtk-grid/rtk-grid.js +2 -2
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +2 -2
- package/dist/collection/components/rtk-header/rtk-header.js +2 -2
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +2 -2
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +2 -2
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +2 -2
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +2 -2
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +2 -2
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +2 -2
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +2 -2
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +2 -2
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +2 -2
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -2
- package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +2 -2
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +2 -2
- package/dist/collection/components/rtk-menu/rtk-menu.js +2 -2
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +2 -2
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +2 -2
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +1 -1
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +1 -1
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +2 -2
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +2 -2
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +2 -2
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +2 -2
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +2 -2
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +2 -2
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +2 -2
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +2 -2
- package/dist/collection/components/rtk-notification/rtk-notification.js +2 -2
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +2 -2
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +2 -2
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +2 -2
- package/dist/collection/components/rtk-participant/rtk-participant.js +2 -2
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +2 -2
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +2 -2
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +2 -2
- package/dist/collection/components/rtk-participants/rtk-participants.js +2 -2
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +2 -2
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +2 -2
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -2
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +2 -2
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +2 -2
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +2 -2
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +2 -2
- package/dist/collection/components/rtk-pinned-message-selector/rtk-pinned-message-selector.js +2 -2
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -2
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +2 -2
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +2 -2
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +2 -2
- package/dist/collection/components/rtk-poll/rtk-poll.js +2 -2
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +2 -2
- package/dist/collection/components/rtk-polls/rtk-polls.js +2 -2
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +2 -2
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +2 -2
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +2 -2
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.css +22 -0
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +45 -16
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +1 -0
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +25 -8
- package/dist/collection/components/rtk-settings/rtk-settings.js +2 -2
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +2 -2
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +3 -3
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +2 -2
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +2 -2
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +2 -2
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +3 -3
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +2 -2
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +2 -2
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +2 -2
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +4 -4
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +2 -2
- package/dist/collection/components/rtk-stage/rtk-stage.js +3 -3
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +2 -2
- package/dist/collection/components/rtk-switch/rtk-switch.js +3 -3
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +2 -2
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +3 -3
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +4 -4
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +2 -2
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +2 -2
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +3 -3
- package/dist/collection/lib/icons/default-icon-pack.js +2 -0
- package/dist/collection/lib/lang/default-language.js +7 -0
- package/dist/collection/utils/init-error.js +15 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DSe3wsBa.js → p--W18P86G.js} +1 -1
- package/dist/components/{p-CRI4EXkA.js → p-0o65FHK8.js} +1 -1
- package/dist/components/{p-xnw0dG3-.js → p-B-hQciXL.js} +1 -1
- package/dist/components/{p-CkB6Me6q.js → p-B3eMr0gA.js} +1 -1
- package/dist/components/{p-Z8VMlEx7.js → p-BFuoKiMa.js} +1 -1
- package/dist/components/{p-ObGKzmP7.js → p-BG6eoJrp.js} +1 -1
- package/dist/components/{p-BVwe7Wfq.js → p-BMabll08.js} +1 -1
- package/dist/components/{p-BODcekJl.js → p-BOHEz75q.js} +1 -1
- package/dist/components/{p-M0IaFpEv.js → p-BQ4E83Ra.js} +1 -1
- package/dist/components/{p-CgQKQwo8.js → p-BTBcWMKG.js} +1 -1
- package/dist/components/{p-ukr4mPVB.js → p-BUPrfLE2.js} +1 -1
- package/dist/components/{p-DMbGWtns.js → p-BWnrn7Wp.js} +1 -1
- package/dist/components/{p-5quurE-Z.js → p-B_0SlQlL.js} +1 -1
- package/dist/components/{p-BbJzI1u1.js → p-B_Wn0VnS.js} +1 -1
- package/dist/components/{p-bRRQr4xn.js → p-BeyS1zas.js} +1 -1
- package/dist/components/{p-tZ9CpAsl.js → p-BfEeSTjF.js} +1 -1
- package/dist/components/{p-sSs7a3Ms.js → p-BlOYC_3W.js} +1 -1
- package/dist/components/{p-CW-FAeNP.js → p-BljtjP8B.js} +1 -1
- package/dist/components/{p-Bw12zqoT.js → p-BmWn7Ryk.js} +1 -1
- package/dist/components/{p-B3XpiAaE.js → p-Bo5XUhsA.js} +1 -1
- package/dist/components/{p-mgE9e3Hm.js → p-BrvutlhV.js} +1 -1
- package/dist/components/{p-5i84b0Gw.js → p-ByDKblxE.js} +1 -1
- package/dist/components/{p-B1oyTNvb.js → p-Bz1E3QS6.js} +1 -1
- package/dist/components/{p-DhkCjo6N.js → p-C35YXAVu.js} +1 -1
- package/dist/components/{p-CxE6v80l.js → p-C9jtzlam.js} +1 -1
- package/dist/components/{p-C6AgOKhg.js → p-CBijABOI.js} +1 -1
- package/dist/components/{p-CHOs-ZsL.js → p-CDttXF5T.js} +1 -1
- package/dist/components/{p-Smh6fH4v.js → p-CEPlz2Z3.js} +1 -1
- package/dist/components/{p-CTuYqZY2.js → p-CE_ZjQoS.js} +1 -1
- package/dist/components/{p-iyI_rAph.js → p-CIvRPwAZ.js} +1 -1
- package/dist/components/{p-oJLPa1F-.js → p-COVrbp3D.js} +1 -1
- package/dist/components/{p-BxPmWGqJ.js → p-CPmk8YRb.js} +1 -1
- package/dist/components/{p-B4Ap4n7a.js → p-CVZeTIGL.js} +1 -1
- package/dist/components/{p-CpD_SehU.js → p-CWPY6JqF.js} +1 -1
- package/dist/components/{p-B4dw_Fnl.js → p-CWnxJ96q.js} +1 -1
- package/dist/components/{p-hPdGZ_Bf.js → p-CXeUXiXv.js} +1 -1
- package/dist/components/{p-CAMtxcI_.js → p-CbhuOxYr.js} +1 -1
- package/dist/components/{p-CCxMYXjI.js → p-Cf6I5oOr.js} +1 -1
- package/dist/components/{p-DjOiGHfI.js → p-ChFK4o3B.js} +1 -1
- package/dist/components/p-Cj-LCS8F.js +1 -0
- package/dist/components/{p-NKK4fZcP.js → p-Clv4ixaK.js} +1 -1
- package/dist/components/{p-CBGt9ESN.js → p-CqK6MUJ1.js} +1 -1
- package/dist/components/{p-CGBdi6J9.js → p-CqvKDoT_.js} +1 -1
- package/dist/components/{p-Dh8N1Wv8.js → p-Ctu2bkh9.js} +1 -1
- package/dist/components/{p-B3dQhqRr.js → p-Cx5qgHA3.js} +1 -1
- package/dist/components/{p-BoqfUgTL.js → p-D4W6kia7.js} +1 -1
- package/dist/components/{p-B0SC1Zj-.js → p-D8kn6Kmy.js} +1 -1
- package/dist/components/{p-xKvr8ufu.js → p-D9h2qpDP.js} +1 -1
- package/dist/components/p-DBekcxma.js +1 -0
- package/dist/components/{p-Djf3ZrmN.js → p-DC4xippU.js} +1 -1
- package/dist/components/{p-LohuIsNV.js → p-DIHfjf2w.js} +1 -1
- package/dist/components/{p-C7WazpNf.js → p-DJuk-FJe.js} +1 -1
- package/dist/components/p-DKItPEgV.js +1 -0
- package/dist/components/{p-BHHJ7_MS.js → p-DWXhSwkc.js} +1 -1
- package/dist/components/{p-BYNelMao.js → p-DXd0b0HH.js} +1 -1
- package/dist/components/{p-BvLjh5Yy.js → p-DXj7Va5n.js} +1 -1
- package/dist/components/p-DYyhgQQD.js +1 -0
- package/dist/components/{p-B5XTxQov.js → p-DbEL8KpE.js} +1 -1
- package/dist/components/{p-CFBS-gbK.js → p-Ddz1AfPy.js} +1 -1
- package/dist/components/{p-D3fF-6sB.js → p-DgwW5NHh.js} +1 -1
- package/dist/components/{p-BL_lNnwE.js → p-Dl1XVzON.js} +1 -1
- package/dist/components/{p-BueZc6Xo.js → p-DqiWqbuZ.js} +1 -1
- package/dist/components/{p-DViKr-34.js → p-Dr5J4rpX.js} +1 -1
- package/dist/components/{p-Dq8iLPzP.js → p-H3_oZZcz.js} +1 -1
- package/dist/components/{p-CNaazJXM.js → p-IKuOHaBo.js} +1 -1
- package/dist/components/{p-CjstGmGh.js → p-LSU6QPd1.js} +1 -1
- package/dist/components/{p-D6Vrf7V1.js → p-OFImZpye.js} +1 -1
- package/dist/components/{p-DRDGwBZ3.js → p-OWmBzZJ6.js} +1 -1
- package/dist/components/{p-DONfrqzk.js → p-Q3JXX_t4.js} +1 -1
- package/dist/components/{p-DSUStc8e.js → p-SdekzV3F.js} +1 -1
- package/dist/components/{p-CfIrQkMg.js → p-cYn1aFYj.js} +1 -1
- package/dist/components/{p-C9UuqXCX.js → p-eqrDoLFs.js} +1 -1
- package/dist/components/{p-CJGAvEk3.js → p-eyOPXk0e.js} +1 -1
- package/dist/components/{p-CPnv0ZqZ.js → p-fkMAgm6N.js} +1 -1
- package/dist/components/{p-CEK_XoGw.js → p-ihohqxEx.js} +1 -1
- package/dist/components/{p-BW3eEJGd.js → p-lBkv8Hj9.js} +1 -1
- package/dist/components/{p-CnPYfRgf.js → p-p1-4W0FG.js} +1 -1
- package/dist/components/{p-igDs79FY.js → p-wKTUzoCV.js} +1 -1
- package/dist/components/{p-BD2FfUwc.js → p-xlE47ORV.js} +1 -1
- package/dist/components/rtk-ai-toggle.js +1 -1
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +1 -1
- package/dist/components/rtk-audio-grid.js +1 -1
- package/dist/components/rtk-audio-tile.js +1 -1
- package/dist/components/rtk-audio-visualizer.js +1 -1
- package/dist/components/rtk-avatar.js +1 -1
- package/dist/components/rtk-breakout-room-manager.js +1 -1
- package/dist/components/rtk-breakout-room-participants.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.js +1 -1
- package/dist/components/rtk-breakout-rooms-toggle.js +1 -1
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-camera-selector.js +1 -1
- package/dist/components/rtk-camera-toggle.js +1 -1
- package/dist/components/rtk-caption-toggle.js +1 -1
- package/dist/components/rtk-chat-composer-ui.js +1 -1
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-header.js +1 -1
- package/dist/components/rtk-chat-message.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-messages-ui.js +1 -1
- package/dist/components/rtk-chat-search-results.js +1 -1
- package/dist/components/rtk-chat-selector-ui.js +1 -1
- package/dist/components/rtk-chat-selector.js +1 -1
- package/dist/components/rtk-chat-toggle.js +1 -1
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +1 -1
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +1 -1
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-audio.js +1 -1
- package/dist/components/rtk-debugger-screenshare.js +1 -1
- package/dist/components/rtk-debugger-system.js +1 -1
- package/dist/components/rtk-debugger-toggle.js +1 -1
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +1 -1
- package/dist/components/rtk-dialog.js +1 -1
- package/dist/components/rtk-draft-attachment-view.js +1 -1
- package/dist/components/rtk-emoji-picker-button.js +1 -1
- package/dist/components/rtk-emoji-picker.js +1 -1
- package/dist/components/rtk-ended-screen.js +1 -1
- package/dist/components/rtk-file-dropzone.js +1 -1
- package/dist/components/rtk-file-message-view.js +1 -1
- package/dist/components/rtk-file-message.js +1 -1
- package/dist/components/rtk-file-picker-button.js +1 -1
- package/dist/components/rtk-fullscreen-toggle.js +1 -1
- package/dist/components/rtk-grid-pagination.js +1 -1
- package/dist/components/rtk-grid.js +1 -1
- package/dist/components/rtk-header.js +1 -1
- package/dist/components/rtk-idle-screen.js +1 -1
- package/dist/components/rtk-image-message-view.js +1 -1
- package/dist/components/rtk-image-message.js +1 -1
- package/dist/components/rtk-image-viewer.js +1 -1
- package/dist/components/rtk-information-tooltip.js +1 -1
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +1 -1
- package/dist/components/rtk-leave-meeting.js +1 -1
- package/dist/components/rtk-livestream-indicator.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-livestream-toggle.js +1 -1
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-meeting-title.js +1 -1
- package/dist/components/rtk-meeting.js +1 -1
- package/dist/components/rtk-menu-item.js +1 -1
- package/dist/components/rtk-menu-list.js +1 -1
- package/dist/components/rtk-menu.js +1 -1
- package/dist/components/rtk-message-list-view.js +1 -1
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +1 -1
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +1 -1
- package/dist/components/rtk-more-toggle.js +1 -1
- package/dist/components/rtk-mute-all-button.js +1 -1
- package/dist/components/rtk-mute-all-confirmation.js +1 -1
- package/dist/components/rtk-name-tag.js +1 -1
- package/dist/components/rtk-network-indicator.js +1 -1
- package/dist/components/rtk-notification.js +1 -1
- package/dist/components/rtk-notifications.js +1 -1
- package/dist/components/rtk-overlay-modal.js +1 -1
- package/dist/components/rtk-paginated-list.js +1 -1
- package/dist/components/rtk-participant-count.js +1 -1
- package/dist/components/rtk-participant-setup.js +1 -1
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +1 -1
- package/dist/components/rtk-participants-stage-list.js +1 -1
- package/dist/components/rtk-participants-stage-queue.js +1 -1
- package/dist/components/rtk-participants-toggle.js +1 -1
- package/dist/components/rtk-participants-viewer-list.js +1 -1
- package/dist/components/rtk-participants-waiting-list.js +1 -1
- package/dist/components/rtk-participants.js +1 -1
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pinned-message-selector.js +1 -1
- package/dist/components/rtk-pip-toggle.js +1 -1
- package/dist/components/rtk-plugin-main.js +1 -1
- package/dist/components/rtk-plugins-toggle.js +1 -1
- package/dist/components/rtk-plugins.js +1 -1
- package/dist/components/rtk-poll-form.js +1 -1
- package/dist/components/rtk-poll.js +1 -1
- package/dist/components/rtk-polls-toggle.js +1 -1
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +1 -1
- package/dist/components/rtk-recording-toggle.js +1 -1
- package/dist/components/rtk-screen-share-toggle.js +1 -1
- package/dist/components/rtk-screenshare-view.js +1 -1
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +1 -1
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +1 -1
- package/dist/components/rtk-setup-screen.js +1 -1
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +1 -1
- package/dist/components/rtk-simple-grid.js +1 -1
- package/dist/components/rtk-speaker-selector.js +1 -1
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +1 -1
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +1 -1
- package/dist/components/rtk-stage.js +1 -1
- package/dist/components/rtk-switch.js +1 -1
- package/dist/components/rtk-tab-bar.js +1 -1
- package/dist/components/rtk-text-composer-view.js +1 -1
- package/dist/components/rtk-text-message-view.js +1 -1
- package/dist/components/rtk-text-message.js +1 -1
- package/dist/components/rtk-transcript.js +1 -1
- package/dist/components/rtk-transcripts.js +1 -1
- package/dist/components/rtk-ui-provider.js +1 -1
- package/dist/components/rtk-viewer-count.js +1 -1
- package/dist/components/rtk-virtualized-participant-list.js +1 -1
- package/dist/components/rtk-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +4082 -634
- package/dist/docs/docs-vscode.json +6 -0
- package/dist/esm/{TextMessage-B-38YeFE.js → TextMessage-B_wsQIl_.js} +1 -1
- package/dist/esm/{chat-a6CRyl2K.js → chat-Dcph1bVZ.js} +1 -1
- package/dist/esm/{config-wP0cqv4b.js → config-BFnpcSIs.js} +2 -2
- package/dist/esm/{debounce-lqMlEJcq.js → debounce-DZ4DNGsg.js} +1 -1
- package/dist/esm/{index-CP1LPkYZ.js → index-UHoULP2p.js} +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/{init-error-DE1s0fDa.js → init-error-Cj-LCS8F.js} +15 -2
- package/dist/esm/loader.js +106 -39
- package/dist/esm/{merge-BWjuIacB.js → merge-LzcOkag9.js} +1 -1
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-ai-toggle.entry.js +2 -2
- package/dist/esm/rtk-ai-transcriptions.entry.js +2 -2
- package/dist/esm/rtk-ai_3.entry.js +2 -2
- package/dist/esm/rtk-audio-grid.entry.js +2 -2
- package/dist/esm/rtk-audio-tile.entry.js +2 -2
- package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
- package/dist/esm/rtk-avatar_26.entry.js +10 -10
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
- package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
- package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
- package/dist/esm/rtk-camera-toggle.entry.js +2 -2
- package/dist/esm/rtk-caption-toggle.entry.js +2 -2
- package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-message.entry.js +2 -2
- package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
- package/dist/esm/rtk-chat-search-results.entry.js +2 -2
- package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-toggle.entry.js +2 -2
- package/dist/esm/rtk-clock.entry.js +2 -2
- package/dist/esm/rtk-controlbar-button.entry.js +2 -2
- package/dist/esm/rtk-controlbar.entry.js +2 -2
- package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
- package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
- package/dist/esm/rtk-debugger.entry.js +2 -2
- package/dist/esm/rtk-dialog-manager.entry.js +2 -2
- package/dist/esm/rtk-dialog.entry.js +2 -2
- package/dist/esm/rtk-ended-screen.entry.js +2 -2
- package/dist/esm/rtk-file-dropzone.entry.js +2 -2
- package/dist/esm/rtk-file-message_3.entry.js +6 -6
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +2 -2
- package/dist/esm/rtk-header.entry.js +2 -2
- package/dist/esm/rtk-idle-screen.entry.js +2 -2
- package/dist/esm/rtk-image-viewer.entry.js +2 -2
- package/dist/esm/rtk-information-tooltip.entry.js +2 -2
- package/dist/esm/rtk-leave-button.entry.js +2 -2
- package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
- package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
- package/dist/esm/rtk-logo.entry.js +2 -2
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-mic-toggle.entry.js +2 -2
- package/dist/esm/rtk-mixed-grid.entry.js +2 -2
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-mute-all-button.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +2 -2
- package/dist/esm/rtk-network-indicator.entry.js +2 -2
- package/dist/esm/rtk-notification.entry.js +4 -4
- package/dist/esm/rtk-notifications.entry.js +3 -3
- package/dist/esm/rtk-participant-count.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +2 -2
- package/dist/esm/rtk-participant_2.entry.js +5 -5
- package/dist/esm/rtk-participants-audio.entry.js +2 -2
- package/dist/esm/rtk-participants-stage-list_4.entry.js +2 -2
- package/dist/esm/rtk-participants-toggle.entry.js +2 -2
- package/dist/esm/rtk-participants.entry.js +3 -3
- package/dist/esm/rtk-pip-toggle.entry.js +2 -2
- package/dist/esm/rtk-plugin-main_2.entry.js +2 -2
- package/dist/esm/rtk-plugins-toggle.entry.js +2 -2
- package/dist/esm/rtk-poll_2.entry.js +2 -2
- package/dist/esm/rtk-polls-toggle.entry.js +2 -2
- package/dist/esm/rtk-recording-indicator.entry.js +2 -2
- package/dist/esm/rtk-recording-toggle.entry.js +2 -2
- package/dist/esm/rtk-screen-share-toggle.entry.js +46 -17
- package/dist/esm/rtk-screenshare-view.entry.js +25 -9
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +3 -3
- package/dist/esm/rtk-settings.entry.js +2 -2
- package/dist/esm/rtk-setup-screen.entry.js +2 -2
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-sidebar.entry.js +2 -2
- package/dist/esm/rtk-simple-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
- package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
- package/dist/esm/rtk-stage-toggle.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +3 -3
- package/dist/esm/rtk-transcript.entry.js +3 -3
- package/dist/esm/rtk-transcripts.entry.js +2 -2
- package/dist/esm/rtk-ui-provider.entry.js +3 -3
- package/dist/esm/rtk-waiting-screen.entry.js +3 -3
- package/dist/esm/{ui-store-Ctcbman-.js → ui-store-g2F04f-Y.js} +9 -0
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-b16313e9.entry.js → p-00415ca3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f33e4112.entry.js → p-04b65763.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-286ce4d7.entry.js → p-0ac14bbb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-29ab5d68.entry.js → p-10916df4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e7a4954c.entry.js → p-110e2f35.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-959917cc.entry.js → p-13f1e992.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f27494e7.entry.js → p-1ca40d29.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d29c5a04.entry.js → p-1e772323.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5810f0c4.entry.js → p-1fcb2e8c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bd848924.entry.js → p-23a892b6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-55ba62c3.entry.js → p-245d86bb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-481e75eb.entry.js → p-24cda5b7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-893da38a.entry.js → p-272b6f6b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fa84f55a.entry.js → p-30306508.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-77c92672.entry.js → p-35b6a8d2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-da2e626e.entry.js → p-361bf36c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4aa24ae6.entry.js → p-3ca75eb5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ac4c182d.entry.js → p-41705d10.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-462d4e8f.entry.js → p-423143a0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8cdd8307.entry.js → p-4330b190.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-91bcabc0.entry.js → p-43af899a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9aac22a5.entry.js → p-43cf80c7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-194ebf74.entry.js → p-49c8147f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a34a267b.entry.js → p-4c9c4b30.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0264d57f.entry.js → p-4c9fac09.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ef030197.entry.js → p-4d3029ed.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4a7927d1.entry.js → p-50abfb30.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2715643b.entry.js → p-59039323.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-58366145.entry.js → p-5947e4a9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-5d05e378.entry.js +1 -0
- package/dist/realtimekit-ui/p-608b1cae.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d003eb81.entry.js → p-61459d9d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5e3931a3.entry.js → p-629e3543.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f5809d7c.entry.js → p-63f70fa8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5361cd19.entry.js → p-65829152.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-67ee7fdd.entry.js → p-6aecb59f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9fb75436.entry.js → p-6d47bb46.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f6085321.entry.js → p-6e8e0782.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9fa91df2.entry.js → p-6ed10262.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6d3b4996.entry.js → p-6f0c608b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-21b69da3.entry.js → p-72603fd8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0742c744.entry.js → p-728fe692.entry.js} +1 -1
- package/dist/realtimekit-ui/p-72afbc20.entry.js +1 -0
- package/dist/realtimekit-ui/{p-fb0a9fa6.entry.js → p-776c9d43.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-70de46f0.entry.js → p-79ba0219.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-52e797c1.entry.js → p-7a18aaf2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1f144efb.entry.js → p-7bfd8296.entry.js} +1 -1
- package/dist/realtimekit-ui/p-7cb6abe7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-c317b4a0.entry.js → p-7d04d872.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ee65922b.entry.js → p-7e2f41d7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9913c4ca.entry.js → p-7f553365.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2fd5255e.entry.js → p-7f5c287f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b918e87c.entry.js → p-9251b8bc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4f3e5cb4.entry.js → p-9291666b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d30c178f.entry.js → p-97e1efce.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-CfUJPUNx.js → p-B-xBEnhz.js} +1 -1
- package/dist/realtimekit-ui/p-BWYsSVnv.js +1 -0
- package/dist/realtimekit-ui/{p-BmRffDYW.js → p-C2mieCrY.js} +1 -1
- package/dist/realtimekit-ui/{p-CQ2xadpP.js → p-CM74mbyi.js} +1 -1
- package/dist/realtimekit-ui/{p-dYOM3dvx.js → p-CVHhOJXC.js} +1 -1
- package/dist/realtimekit-ui/p-Cj-LCS8F.js +1 -0
- package/dist/realtimekit-ui/{p-MlOz-emx.js → p-DHdB7rAI.js} +1 -1
- package/dist/realtimekit-ui/{p-B91vjjSJ.js → p-J7ILCEoQ.js} +1 -1
- package/dist/realtimekit-ui/{p-55ec635e.entry.js → p-a5f80b76.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-384db558.entry.js → p-b9ad49be.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0051564a.entry.js → p-c18ccddc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bdd8ebec.entry.js → p-c1b7e9ff.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3ed792bf.entry.js → p-c50ca0c0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6ab2602a.entry.js → p-c5f6097a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bac3c4fb.entry.js → p-c734f370.entry.js} +1 -1
- package/dist/realtimekit-ui/p-cedf36dc.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b41fc081.entry.js → p-cff327e9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-dd6fa0d8.entry.js → p-d3912c86.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-439c8ce4.entry.js → p-d5bc0a67.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d51ab494.entry.js → p-d6d0af86.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6cc9da9f.entry.js → p-e0591bc5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-661b7281.entry.js → p-e0d48f00.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8c77aa57.entry.js → p-e21f0412.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d52b8b3d.entry.js → p-e451d1d5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0195bd60.entry.js → p-e6a483c6.entry.js} +1 -1
- package/dist/realtimekit-ui/p-eb99aa46.entry.js +1 -0
- package/dist/realtimekit-ui/p-ec8dbcd1.entry.js +1 -0
- package/dist/realtimekit-ui/{p-8e7d8c30.entry.js → p-ed1385e6.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f76043d2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-62a46799.entry.js → p-f7667d39.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ebdece22.entry.js → p-fa1aad75.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5093081b.entry.js → p-fc2d95fc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-77e9a0cb.entry.js → p-fc7ce3eb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9ce9b595.entry.js → p-fd046233.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d85e142c.entry.js → p-ff9bbf6d.entry.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-screen-share-toggle/rtk-screen-share-toggle.d.ts +4 -1
- package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +2 -0
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +2 -0
- package/dist/types/components.d.ts +2 -2
- package/dist/types/lib/icons/default-icon-pack.d.ts +2 -0
- package/dist/types/lib/lang/default-language.d.ts +7 -0
- package/dist/types/utils/init-error.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/p-B1HaRABx.js +0 -1
- package/dist/components/p-C5kkSbkd.js +0 -1
- package/dist/components/p-DE1s0fDa.js +0 -1
- package/dist/components/p-DhwysA2e.js +0 -1
- package/dist/realtimekit-ui/p-1b3ffb5e.entry.js +0 -1
- package/dist/realtimekit-ui/p-4a1ec4a2.entry.js +0 -1
- package/dist/realtimekit-ui/p-9fd3cb5e.entry.js +0 -1
- package/dist/realtimekit-ui/p-DE1s0fDa.js +0 -1
- package/dist/realtimekit-ui/p-DI7wP4CL.js +0 -1
- package/dist/realtimekit-ui/p-a6ec2863.entry.js +0 -1
- package/dist/realtimekit-ui/p-ab63946e.entry.js +0 -1
- package/dist/realtimekit-ui/p-b9f47f88.entry.js +0 -1
- package/dist/realtimekit-ui/p-c6d03162.entry.js +0 -1
- package/dist/realtimekit-ui/p-f5377574.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as r,d as s,t as o}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as a}from"./p-
|
|
1
|
+
import{p as t,H as e,h as r,d as s,t as o}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as a}from"./p-DBekcxma.js";import"./p-Dguuxuf6.js";import{S as n}from"./p-BeyS1zas.js";import{g as d,a as c,b as l,c as b}from"./p-BcCYogfR.js";var g=function(t,e,r,s){var o,i=arguments.length,a=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(i<3?o(a):i>3?o(e,r,a):o(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};const p=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=i,this.t=a(),this.isNetworkOpen=!0,this.isDevicesOpen=!1,this.videoProducerFormattedStats=[],this.videoProducerScoreStats=null,this.networkBasedMediaHealth=null,this.devicesHealth=null,this.mediaScoreUpdateListener=({kind:t,isScreenshare:e,scoreStats:r})=>{"video"!==t||e||(this.videoProducerScoreStats=r)},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getVideoDevices();this.devicesHealth=(null==t?void 0:t.length)>0?"Good":"Poor"},this.videoUpdateListener=()=>{this.meeting.self.videoEnabled||(this.videoProducerScoreStats=null)}}async videoProducerScoreStatsChanged(t){if(!t)return void(this.videoProducerFormattedStats=[]);const e=t,r=[];r.push({name:this.t("debugger.stats.cpu_limitations.label"),value:e.cpuLimitations?"Yes":"No",description:this.t("debugger.stats.cpu_limitations.description"),verdict:e.cpuLimitations?"Poor":"Good"}),r.push({name:this.t("debugger.stats.bandwidth_limitations.label"),value:e.bandwidthLimitations?"Yes":"No",description:this.t("debugger.stats.bandwidth_limitations.description"),verdict:e.bandwidthLimitations?"Poor":"Good"}),r.push({name:this.t("debugger.stats.bitrate.label"),value:`${Math.round(e.bitrate/1024)} kbps`,description:this.t("debugger.stats.bitrate.description"),verdict:d({bitrate:e.bitrate})}),r.push({name:this.t("debugger.stats.packet_loss.label"),value:`${e.packetsLostPercentage}%`,description:this.t("debugger.stats.packet_loss.description"),verdict:c({packetLossPercentage:e.packetsLostPercentage})}),r.push({name:this.t("debugger.stats.jitter.label"),value:`${Math.round(1e3*e.jitter)} ms`,description:this.t("debugger.stats.jitter.description"),verdict:l({jitterInMS:1e3*e.jitter})}),this.videoProducerFormattedStats=r,this.networkBasedMediaHealth=b({stats:r})}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting&&(this.meeting.self.off("mediaScoreUpdate",this.mediaScoreUpdateListener),this.meeting.self.off("videoUpdate",this.videoUpdateListener),this.meeting.self.off("deviceListUpdate",this.deviceListUpdateListener))}async meetingChanged(t){t&&(t.self.on("mediaScoreUpdate",this.mediaScoreUpdateListener),t.self.on("videoUpdate",this.videoUpdateListener),t.self.on("deviceListUpdate",this.deviceListUpdateListener),await this.deviceListUpdateListener())}render(){var t,e;if(this.meeting)return r(s,null,r("div",{class:"tab-body"},r("div",{class:"status-container"},r("div",{class:"status-section"},r("div",{class:"section-header "+(this.networkBasedMediaHealth?"":"only-child")},r("span",null,this.t("debugger.video.sections.network_media")),this.networkBasedMediaHealth&&r("span",{class:`status ${null===(t=this.networkBasedMediaHealth)||void 0===t?void 0:t.toLowerCase()}`},this.t(`debugger.quality.${null===(e=this.networkBasedMediaHealth)||void 0===e?void 0:e.toLowerCase()}`))),this.isNetworkOpen&&!this.videoProducerFormattedStats.length&&r("div",{class:"section-body missing-stats"},r("span",null,this.t(this.meeting.self.videoEnabled?"debugger.video.messages.generating_report":"debugger.video.messages.enable_media"))),this.isNetworkOpen&&!!this.videoProducerFormattedStats.length&&r("div",{class:"section-body network-table"},this.videoProducerFormattedStats.map((t=>{var e,s;return r("div",{class:"network-row"},r("div",{class:"network-cell label"},r("strong",null,t.name),r("span",{class:"description"},t.description)),r("div",{class:"network-cell value"},r("span",{class:`status ${null===(e=t.verdict)||void 0===e?void 0:e.toLowerCase()}`},this.t(`debugger.quality.${null===(s=t.verdict)||void 0===s?void 0:s.toLowerCase()}`)),r("span",{class:"value"},t.value)))})))))))}static get watchers(){return{videoProducerScoreStats:[{videoProducerScoreStatsChanged: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)}.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;flex-direction:column;overflow:hidden;height:100%;width:100%;color:rgb(var(--rtk-colors-text-1000, 255 255 255));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.tab-body::-webkit-scrollbar{width:var(--rtk-space-1\\.5, 6px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.tab-body::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:600}.tab-body{margin:var(--rtk-space-4, 16px);display:flex;min-height:0px;flex:1 1 0%;flex-direction:column;justify-content:space-between;overflow-y:auto}.status-container{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));border-radius:8px;padding:16px}.status-section{margin-bottom:12px}.section-header{display:flex;justify-content:space-between;align-items:center;font-weight:bold;padding:8px 0}.section-header.only-child{justify-content:center}.section-body.missing-stats{display:flex;text-align:center;justify-content:center}.section-header .status{color:rgba(var(--rtk-colors-success));font-weight:bold}.section-header .arrow{font-size:14px}.network-table{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30));border-radius:8px;margin-top:8px;overflow:hidden}.network-row{display:flex;justify-content:space-between;padding:12px;border-bottom:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-800, 30 30 30))}.network-row:last-child{border-bottom:none}.network-cell{display:flex;flex-direction:column}.network-cell.label strong{font-size:14px}.network-cell.label .description{font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));margin-top:4px}.network-cell.value{text-align:right}.status.good{color:rgba(var(--rtk-colors-success))}.status.average{color:rgba(var(--rtk-colors-warning))}.status.poor{color:rgba(var(--rtk-colors-danger))}.value{font-size:14px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));margin-top:4px}rtk-settings-video{display:flex;flex-direction:column}"}},[1,"rtk-debugger-video",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],isNetworkOpen:[32],isDevicesOpen:[32],videoProducerFormattedStats:[32],videoProducerScoreStats:[32],networkBasedMediaHealth:[32],devicesHealth:[32]},void 0,{videoProducerScoreStats:[{videoProducerScoreStatsChanged:0}],meeting:[{meetingChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-debugger-video"].forEach((t=>{"rtk-debugger-video"===t&&(customElements.get(o(t))||customElements.define(o(t),p))}))}g([n()],p.prototype,"meeting",void 0),g([n()],p.prototype,"states",void 0),g([n()],p.prototype,"iconPack",void 0),g([n()],p.prototype,"t",void 0),u();export{p as R,u as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,h as s,t as e}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import{c as
|
|
1
|
+
import{p as t,H as i,h as s,t as e}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import{c as a,e as r,i as n}from"./p-DBekcxma.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as p}from"./p-BeyS1zas.js";import{d as o}from"./p-DWXhSwkc.js";import{d as c}from"./p-D6vw6bT2.js";import{d as h}from"./p-BYIBbfJ8.js";import{d as m}from"./p-BWnrn7Wp.js";import{d as l}from"./p-BFuoKiMa.js";import{d}from"./p-CqK6MUJ1.js";import{d as u}from"./p-D8kn6Kmy.js";import{d as g}from"./p-B_Wn0VnS.js";var k=function(t,i,s,e){var a,r=arguments.length,n=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var p=t.length-1;p>=0;p--)(a=t[p])&&(n=(r<3?a(n):r>3?a(i,s,n):a(i,s))||n);return r>3&&n&&Object.defineProperty(i,s,n),n};const v=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.updateStageViewers=()=>{this.getViewers(this.search)},this.config=a(),this.hideHeader=!1,this.iconPack=r,this.view="sidebar",this.search="",this.t=n(),this.stageViewers=[],this.createParticipantNode=t=>s("rtk-participant",{role:"listitem",key:t.id,meeting:this.meeting,participant:t,view:this.view,iconPack:this.iconPack,config:this.config,t:this.t}),this.shouldShowViewers=()=>{var t,i,s;return null===(s=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===s?void 0:s.stageEnabled}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}meetingChanged(t){t&&(this.participantJoinedListener=t=>{if("ON_STAGE"===t.stageStatus)return;const i=this.search.toLowerCase();i.length>0&&!t.name.toLowerCase().includes(i)||(this.stageViewers=[...this.stageViewers.filter((i=>i.id!==t.id)),t])},this.participantLeftListener=t=>{this.stageViewers=this.stageViewers.filter((i=>i.id!==t.id))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.participants.joined.on("stageStatusUpdate",this.updateStageViewers),t.stage.on("stageStatusUpdate",this.updateStageViewers))}searchChanged(t){this.getViewers(t)}disconnectedCallback(){const{participants:t,stage:i}=this.meeting;this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),t.joined.removeListener("stageStatusUpdate",this.updateStageViewers),i.removeListener("stageStatusUpdate",this.updateStageViewers)}getViewers(t){let i="ON_STAGE"===this.meeting.stage.status?[]:[this.meeting.self];i=[...i,...this.meeting.participants.joined.toArray()].filter((t=>"ON_STAGE"!==t.stageStatus)),this.stageViewers=""===t?i:i.filter((i=>{var s;return(null!==(s=i.name)&&void 0!==s?s:i.id).toLowerCase().includes(t.toLowerCase())}))}render(){return this.meeting?"sidebar"===this.view&&this.shouldShowViewers()?s("div",{class:"list"},!this.hideHeader&&s("div",{class:"heading-count",part:"heading-count"},this.t("viewers")," (",this.stageViewers.length,")"),s("rtk-virtualized-participant-list",{items:this.stageViewers,renderItem:this.createParticipantNode,class:"participants",part:"participants",style:{height:"100%"},emptyListElement:s("div",{class:"empty-viewers-list"},this.t(this.search.length>0?"participants.errors.empty_results":"participants.empty_list"))})):void 0:null}static get watchers(){return{meeting:[{meetingChanged:0}],search:[{searchChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%;flex-direction:column;font-size:14px}.list{margin-bottom:var(--rtk-space-4, 16px);display:flex;height:100%;flex-direction:column}h3,.heading-count{margin:var(--rtk-space-0, 0px);align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.empty-viewers-list{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}"}},[1,"rtk-participants-viewer-list",{meeting:[16],config:[16],size:[513],hideHeader:[4,"hide-header"],iconPack:[16],view:[1],search:[1],t:[16],stageViewers:[32]},void 0,{meeting:[{meetingChanged:0}],search:[{searchChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-participants-viewer-list","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-participant","rtk-spinner","rtk-virtualized-participant-list"].forEach((t=>{switch(t){case"rtk-participants-viewer-list":customElements.get(e(t))||customElements.define(e(t),v);break;case"rtk-avatar":customElements.get(e(t))||o();break;case"rtk-button":customElements.get(e(t))||c();break;case"rtk-icon":customElements.get(e(t))||h();break;case"rtk-menu-item":customElements.get(e(t))||m();break;case"rtk-menu-list":customElements.get(e(t))||l();break;case"rtk-participant":customElements.get(e(t))||d();break;case"rtk-spinner":customElements.get(e(t))||u();break;case"rtk-virtualized-participant-list":customElements.get(e(t))||g()}}))}k([p()],v.prototype,"meeting",void 0),k([p()],v.prototype,"config",void 0),k([p()],v.prototype,"iconPack",void 0),k([p()],v.prototype,"t",void 0),f();export{v as R,f as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,w as i,h as r,d as s,t as a}from"./p-BBHQOrFK.js";import{e as o,i as n}from"./p-
|
|
1
|
+
import{p as t,H as e,w as i,h as r,d as s,t as a}from"./p-BBHQOrFK.js";import{e as o,i as n}from"./p-DBekcxma.js";import{S as c}from"./p-BeyS1zas.js";import{i as p}from"./p-CAqYddlg.js";import{d as l}from"./p-BYIBbfJ8.js";var d=function(t,e,i,r){var s,a=arguments.length,o=a<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(o=(a<3?s(o):a>3?s(e,i,o):s(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o};const h=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=o,this.variant="full",this.t=n(),this.audioinputDevices=[],this.canProduceAudio=!0,this.currentDevices={audio:void 0},this.stageStateListener=()=>{this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.deviceListUpdateListener=async()=>{const t=await this.meeting.self.getAudioDevices();this.audioinputDevices=t},this.deviceUpdateListener=({device:t})=>{"audioinput"===t.kind&&(this.currentDevices={audio:t})},this.mediaPermissionUpdateListener=async({kind:t,message:e})=>{this.meeting&&"audio"===t&&"ACCEPTED"===e&&(this.audioinputDevices=await this.meeting.self.getAudioDevices())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,e,i,r,s;null===(e=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===e||e.removeListener("stageStatusUpdate",this.stageStateListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(r=this.meeting)||void 0===r||r.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(s=this.meeting)||void 0===s||s.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener)}meetingChanged(t){t&&i((async()=>{var e,i;const{self:r,stage:s}=t,a=await t.self.getAudioDevices(),o=null===(e=t.self.getCurrentDevices())||void 0===e?void 0:e.audio;this.currentDevices={audio:o},this.canProduceAudio="ALLOWED"===t.self.permissions.canProduceAudio,null==s||s.addListener("stageStatusUpdate",this.stageStateListener),r.addListener("deviceListUpdate",this.deviceListUpdateListener),r.addListener("deviceUpdate",this.deviceUpdateListener),r.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.audioinputDevices=null!=o?[null!==(i=a.find((t=>t.deviceId===o.deviceId)))&&void 0!==i?i:o,...a.filter((t=>t.deviceId!==o.deviceId))]:a}))}setDevice(t){var e;if(p(this.meeting))return;const i=this.audioinputDevices.find((e=>e.deviceId===t));null!=i&&(this.currentDevices={audio:i},null===(e=this.meeting)||void 0===e||e.self.setDevice(i))}render(){if(!this.meeting)return null;let t=0;return r(s,null,this.canProduceAudio&&r("div",{part:"microphone-selection",class:"group container "+this.variant},r("label",{slot:"label"},"inline"!==this.variant&&this.t("settings.microphone_input"),r("rtk-icon",{icon:this.iconPack.mic_on,size:"sm"})),r("div",{class:"row"},r("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.audioinputDevices.map((({deviceId:e,label:i})=>{var s;return r("option",{value:e,selected:(null===(s=this.currentDevices.audio)||void 0===s?void 0:s.deviceId)===e},i||"Microphone "+ ++t)}))),r("slot",{name:"indicator"}))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return".rtk-select{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.inline.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0\\.5, 2px)}.inline.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline.container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}"}},[257,"rtk-microphone-selector",{meeting:[16],size:[513],iconPack:[16],variant:[1],t:[16],audioinputDevices:[32],canProduceAudio:[32],currentDevices:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function v(){"undefined"!=typeof customElements&&["rtk-microphone-selector","rtk-icon"].forEach((t=>{switch(t){case"rtk-microphone-selector":customElements.get(a(t))||customElements.define(a(t),h);break;case"rtk-icon":customElements.get(a(t))||l()}}))}d([c()],h.prototype,"meeting",void 0),d([c()],h.prototype,"iconPack",void 0),d([c()],h.prototype,"t",void 0),v();export{h as R,v as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as e,h as a,d as i,t as n}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as o,i as s}from"./p-
|
|
1
|
+
import{p as t,H as r,c as e,h as a,d as i,t as n}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as o,i as s}from"./p-DBekcxma.js";import"./p-Dguuxuf6.js";import{S as c}from"./p-BeyS1zas.js";import{d as p}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";var b=function(t,r,e,a){var i,n=arguments.length,o=n<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,e,a);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(o=(n<3?i(o):n>3?i(r,e,o):i(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.onChange=e(this,"valueChange",7),this.input="1",this.minValue=0,this.iconPack=o,this.t=s()}connectedCallback(){this.watchStateHandler(this.input),this.input=this.value.toString()}watchStateHandler(t){this.onChange.emit(t)}increment(){this.input=Math.max(parseInt(this.input)+1,this.minValue).toString()}decrement(){this.input=Math.max(this.minValue,parseInt(this.input)-1).toString()}render(){return a(i,{key:"ded6fcf73ce9b011ca2a005cce767c9180d9fa7f"},a("rtk-button",{key:"29a016773f430a03572a58a21f61495baabcaae7",kind:"icon",variant:"ghost",onClick:()=>this.decrement()},a("rtk-icon",{key:"75dab16bd637f72e2ea1dc932e19b0e38d220caa",icon:this.iconPack.subtract})),a("input",{key:"335b77366096033514acb4421f3e6b774392b900",type:"number",value:this.input,min:this.minValue,onInput:t=>{const r=parseInt(t.target.value,10);this.input=isNaN(r)||r<this.minValue?this.minValue.toString():r.toString()}}),a("rtk-button",{key:"47d300cb7857a37467f7f2a4a5b5004b4fa91356",kind:"icon",variant:"ghost",onClick:()=>this.increment()},a("rtk-icon",{key:"4febc41d26a2c5afff18ec136f325e97a699b3f5",icon:this.iconPack.add})))}static get watchers(){return{input:[{watchStateHandler:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;flex-direction:row;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));width:-moz-fit-content;width:fit-content;border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-1, 4px)}p{margin:var(--rtk-space-0, 0px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}input{margin:var(--rtk-space-0, 0px);width:var(--rtk-space-6, 24px);padding:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;border-color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));text-align:center;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));border-radius:var(--rtk-border-radius-sm, 4px);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::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:var(--rtk-space-0, 0px);appearance:none;-webkit-appearance:none}input[type='number']{-moz-appearance:textfield}"}},[1,"rtk-counter",{size:[513],value:[2],minValue:[2,"min-value"],iconPack:[16],t:[16],input:[32]},void 0,{input:[{watchStateHandler:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-counter","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-counter":customElements.get(n(t))||customElements.define(n(t),u);break;case"rtk-button":customElements.get(n(t))||p();break;case"rtk-icon":customElements.get(n(t))||d()}}))}b([c()],u.prototype,"iconPack",void 0),b([c()],u.prototype,"t",void 0),f();export{u as R,f as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as a,h as e,d as i,t as s}from"./p-BBHQOrFK.js";import{e as o,i as c}from"./p-DhwysA2e.js";import{p,g as n}from"./p-Daj_55_i.js";import{S as d}from"./p-bRRQr4xn.js";import{f as b,s as l}from"./p-CJsXePY3.js";import{d as h}from"./p-BHHJ7_MS.js";import{d as k}from"./p-BYIBbfJ8.js";import{d as g}from"./p-B0SC1Zj-.js";import{d as f}from"./p-DHSRRtn3.js";var m=function(t,r,a,e){var i,s=arguments.length,o=s<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(r,a,o):i(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const v=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onSelectedParticipantsUpdate=a(this,"selectedParticipantsUpdate",7),this.onAllToggled=a(this,"allParticipantsToggleUpdate",7),this.onParticipantsDragging=a(this,"participantsDragging",7),this.participantIds=[],this.iconPack=o,this.t=c(),this.search="",this.participantsToShow=[],this.selectedParticipantIds=[],this.isDragging=!1,this.onSearchInput=t=>{this.search=t.target.value},this.onDragStart=t=>{this.isDragging=!0,this.onParticipantsDragging.emit(!0),this.updateSelectedParticipants(t,!0)},this.onDragEnd=t=>{this.isDragging=!1,this.onParticipantsDragging.emit(!1),this.updateSelectedParticipants(t,!1)},this.onClick=t=>{const r=this.selectedParticipantIds.includes(p(t));this.updateSelectedParticipants(t,!r)},this.onToggleAll=t=>{const r=t?this.participantsToShow.map(p):[];this.onAllToggled.emit(r)}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}disconnectedCallback(){}updateSelectedParticipants(t,r){const a=p(t);let e=[];e=r&&!this.selectedParticipantIds.includes(a)?[...this.selectedParticipantIds,a]:[...this.selectedParticipantIds.filter((t=>t!==a))],this.onSelectedParticipantsUpdate.emit(e)}meetingChanged(t){t&&this.getParticipants(this.search)}participantsChanged(){this.getParticipants(this.search)}searchChanged(t){this.getParticipants(t)}getParticipants(t){const r=n(this.meeting);this.participantsToShow=r.filter((r=>{var a;return this.participantIds.includes(p(r))&&(null!==(a=r.displayName)&&void 0!==a?a:"").toLowerCase().includes(t.toLowerCase())}))}renderPeer(t){const r=b(t.displayName||"");return e("div",{class:"peer-ui-container"},e("rtk-avatar",{participant:{name:t.displayName,picture:t.displayPictureUrl},size:"sm"}),e("p",{class:"name",title:r},l(r,16),this.meeting.self.userId===t.id&&` (${this.t("you")})`))}render(){return e(i,{key:"94cb6d982e09320de84247ed54125112bd3e13d3"},e("div",{key:"209bf3e3aab27fa05592bb24242bd6b4d0311437",class:"search-wrapper"},e("div",{key:"a827dcb5f643d421e6974f37f61b9d491332467f",class:"search",part:"search"},e("rtk-icon",{key:"cf06dfdf881b67faeff7c99445eb96994e73c87f",icon:this.iconPack.search,part:"search-icon",class:"search-icon"}),e("input",{key:"d70fda9e533d770f1e03735ff7f1a69a49e8e8ad",type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),e("slot",{key:"14ae3d89ee242081fdbc953b4c5b6416c873933f",name:"shuffle-button"})),e("div",{key:"c86217a6ccf23ce29d6cf366be8c401556f5b72e",class:"header"},e("div",{key:"217d658e89b4647628fb826d11dd05bcf9ac892f",class:"title-wrapper"},e("span",{key:"7fa37a9e42871c36543f2107a872f1e14fb03bb8"},this.t("breakout_rooms.main_room")),e("span",{key:"956a5b53d06dea779b1bd00df955f653ea26202f",class:"participant-count"},"(",e("rtk-icon",{key:"9f9de13fc327edc1f90beddbf1edefb70bcedbe0",icon:this.iconPack.people}),this.participantsToShow.length,")")),0!==this.selectedParticipantIds.length&&e("rtk-tooltip",{key:"abc39eba7b381b8beae1ecc6d6afda27ba37975a",label:this.t("breakout_rooms.select_all")},e("input",{key:"5e5dfa6c0f68a80b58d44d8b2be8d31c5c22bc69",type:"checkbox",checked:this.selectedParticipantIds.length===this.participantsToShow.length,onChange:t=>this.onToggleAll(!!t.target.checked)}))),e("div",{key:"fcb0a2ceac16b68948d3f93ddc0f6f9e2542d6d8",class:"ctr scrollbar",part:"container"},this.participantsToShow.length>0&&e("ul",{key:"19916d9d462370718445dfb01a23d2806a57f1ff",class:"participants",part:"participants"},this.participantsToShow.map((t=>e("li",{class:{"participant-item":!0,dragging:this.isDragging},onClick:()=>this.onClick(t),onDragStart:()=>this.onDragStart(t),onDragEnd:()=>this.onDragEnd(t),draggable:0===this.selectedParticipantIds.length,role:"listitem",key:t.id},this.renderPeer(t),!this.isDragging&&e("input",{type:"checkbox",class:{"hide-checkbox":0===this.selectedParticipantIds.length},checked:this.selectedParticipantIds.includes(p(t))}))))),0===this.participantsToShow.length&&this.search.length>0&&e("div",{key:"2b0898cb78599610406ff0ec2b2be0ef8c4615cf",class:"empty-message"},this.t("participants.errors.empty_results")),0===this.participantsToShow.length&&0===this.search.length&&e("div",{key:"f6bdab6034aa82bf26dfa1a08615d36dcd00dcf6",class:"empty-room"},e("rtk-icon",{key:"115e987588beb229aba15dffbd05ffbef71cb74c",icon:this.iconPack.people_checked,part:"search-icon",class:"search-icon"}),e("p",{key:"d8b6120c1361b97d1e73969d9da119aa7488a7b3"},this.t("breakout_rooms.all_assigned")),e("span",{key:"020aa6e5440976f89960b0972784c997a1f765a8"},this.t("breakout_rooms.empty_main_room")))))}static get watchers(){return{meeting:[{meetingChanged:0}],participantIds:[{participantsChanged:0}],search:[{searchChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;flex-direction:column;font-size:14px}:host input[type='checkbox']{margin:var(--rtk-space-0, 0px);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rtk-border-radius-sm, 4px);position:relative;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;border-color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}:host input[type='checkbox']:checked{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host input[type='checkbox']:checked::before{position:absolute;top:1px;left:1px;height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);background-color:rgb(var(--rtk-colors-text-1000, 255 255 255));content:'';clip-path:polygon(5% 60%, 35% 93%, 100% 19%, 86% 4%, 36% 62%, 19% 44%)}*{box-sizing:border-box}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.ctr{box-sizing:border-box;padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.empty-message{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-10, 40px);text-align:center;font-size:14px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.empty-room{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px);height:100%;text-align:center;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.empty-room rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}.empty-room p{font-size:16px;font-weight:500;margin:var(--rtk-space-0, 0px)}.empty-room span{font-size:12px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search-wrapper{margin-bottom:var(--rtk-space-1, 4px);display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);height:var(--rtk-space-8, 32px)}.search .search-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:inherit;color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.header{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-1\\.5, 6px);height:var(--rtk-space-9, 36px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-0\\.5, 2px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-bottom-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));display:flex;align-items:center;justify-content:space-between}.title-wrapper{display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.participant-count{display:flex;align-items:center;font-size:14px}.participant-count rtk-icon{margin-right:var(--rtk-space-0\\.5, 2px);width:var(--rtk-space-3, 12px)}.participant-item{display:flex;align-items:center;justify-content:space-between;margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);cursor:pointer}.participant-item input.hide-checkbox{display:none}.participant-item input:checked{display:inline-block}.dragging input{display:none}.participant-item:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.participant-item:hover input{display:inline-block}.peer-ui-container{position:relative;display:flex;align-items:center;gap:var(--rtk-space-2, 8px);height:var(--rtk-space-10, 40px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.peer-ui-container rtk-avatar{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.peer-ui-container .name{font-size:14px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}"}},[257,"rtk-breakout-room-participants",{meeting:[16],participantIds:[16],iconPack:[16],t:[16],selectedParticipantIds:[16],search:[32],participantsToShow:[32],isDragging:[32]},void 0,{meeting:[{meetingChanged:0}],participantIds:[{participantsChanged:0}],search:[{searchChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-breakout-room-participants","rtk-avatar","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-breakout-room-participants":customElements.get(s(t))||customElements.define(s(t),v);break;case"rtk-avatar":customElements.get(s(t))||h();break;case"rtk-icon":customElements.get(s(t))||k();break;case"rtk-spinner":customElements.get(s(t))||g();break;case"rtk-tooltip":customElements.get(s(t))||f()}}))}m([d()],v.prototype,"meeting",void 0),m([d()],v.prototype,"iconPack",void 0),m([d()],v.prototype,"t",void 0),x();export{v as R,x as d}
|
|
1
|
+
import{p as t,H as r,c as a,h as e,d as i,t as s}from"./p-BBHQOrFK.js";import{e as o,i as c}from"./p-DBekcxma.js";import{p,g as n}from"./p-Daj_55_i.js";import{S as d}from"./p-BeyS1zas.js";import{f as b,s as l}from"./p-CJsXePY3.js";import{d as h}from"./p-DWXhSwkc.js";import{d as k}from"./p-BYIBbfJ8.js";import{d as g}from"./p-D8kn6Kmy.js";import{d as f}from"./p-DHSRRtn3.js";var m=function(t,r,a,e){var i,s=arguments.length,o=s<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(r,a,o):i(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const v=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.onSelectedParticipantsUpdate=a(this,"selectedParticipantsUpdate",7),this.onAllToggled=a(this,"allParticipantsToggleUpdate",7),this.onParticipantsDragging=a(this,"participantsDragging",7),this.participantIds=[],this.iconPack=o,this.t=c(),this.search="",this.participantsToShow=[],this.selectedParticipantIds=[],this.isDragging=!1,this.onSearchInput=t=>{this.search=t.target.value},this.onDragStart=t=>{this.isDragging=!0,this.onParticipantsDragging.emit(!0),this.updateSelectedParticipants(t,!0)},this.onDragEnd=t=>{this.isDragging=!1,this.onParticipantsDragging.emit(!1),this.updateSelectedParticipants(t,!1)},this.onClick=t=>{const r=this.selectedParticipantIds.includes(p(t));this.updateSelectedParticipants(t,!r)},this.onToggleAll=t=>{const r=t?this.participantsToShow.map(p):[];this.onAllToggled.emit(r)}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}disconnectedCallback(){}updateSelectedParticipants(t,r){const a=p(t);let e=[];e=r&&!this.selectedParticipantIds.includes(a)?[...this.selectedParticipantIds,a]:[...this.selectedParticipantIds.filter((t=>t!==a))],this.onSelectedParticipantsUpdate.emit(e)}meetingChanged(t){t&&this.getParticipants(this.search)}participantsChanged(){this.getParticipants(this.search)}searchChanged(t){this.getParticipants(t)}getParticipants(t){const r=n(this.meeting);this.participantsToShow=r.filter((r=>{var a;return this.participantIds.includes(p(r))&&(null!==(a=r.displayName)&&void 0!==a?a:"").toLowerCase().includes(t.toLowerCase())}))}renderPeer(t){const r=b(t.displayName||"");return e("div",{class:"peer-ui-container"},e("rtk-avatar",{participant:{name:t.displayName,picture:t.displayPictureUrl},size:"sm"}),e("p",{class:"name",title:r},l(r,16),this.meeting.self.userId===t.id&&` (${this.t("you")})`))}render(){return e(i,{key:"94cb6d982e09320de84247ed54125112bd3e13d3"},e("div",{key:"209bf3e3aab27fa05592bb24242bd6b4d0311437",class:"search-wrapper"},e("div",{key:"a827dcb5f643d421e6974f37f61b9d491332467f",class:"search",part:"search"},e("rtk-icon",{key:"cf06dfdf881b67faeff7c99445eb96994e73c87f",icon:this.iconPack.search,part:"search-icon",class:"search-icon"}),e("input",{key:"d70fda9e533d770f1e03735ff7f1a69a49e8e8ad",type:"search",autocomplete:"off",placeholder:this.t("search"),onInput:this.onSearchInput,part:"search-input"})),e("slot",{key:"14ae3d89ee242081fdbc953b4c5b6416c873933f",name:"shuffle-button"})),e("div",{key:"c86217a6ccf23ce29d6cf366be8c401556f5b72e",class:"header"},e("div",{key:"217d658e89b4647628fb826d11dd05bcf9ac892f",class:"title-wrapper"},e("span",{key:"7fa37a9e42871c36543f2107a872f1e14fb03bb8"},this.t("breakout_rooms.main_room")),e("span",{key:"956a5b53d06dea779b1bd00df955f653ea26202f",class:"participant-count"},"(",e("rtk-icon",{key:"9f9de13fc327edc1f90beddbf1edefb70bcedbe0",icon:this.iconPack.people}),this.participantsToShow.length,")")),0!==this.selectedParticipantIds.length&&e("rtk-tooltip",{key:"abc39eba7b381b8beae1ecc6d6afda27ba37975a",label:this.t("breakout_rooms.select_all")},e("input",{key:"5e5dfa6c0f68a80b58d44d8b2be8d31c5c22bc69",type:"checkbox",checked:this.selectedParticipantIds.length===this.participantsToShow.length,onChange:t=>this.onToggleAll(!!t.target.checked)}))),e("div",{key:"fcb0a2ceac16b68948d3f93ddc0f6f9e2542d6d8",class:"ctr scrollbar",part:"container"},this.participantsToShow.length>0&&e("ul",{key:"19916d9d462370718445dfb01a23d2806a57f1ff",class:"participants",part:"participants"},this.participantsToShow.map((t=>e("li",{class:{"participant-item":!0,dragging:this.isDragging},onClick:()=>this.onClick(t),onDragStart:()=>this.onDragStart(t),onDragEnd:()=>this.onDragEnd(t),draggable:0===this.selectedParticipantIds.length,role:"listitem",key:t.id},this.renderPeer(t),!this.isDragging&&e("input",{type:"checkbox",class:{"hide-checkbox":0===this.selectedParticipantIds.length},checked:this.selectedParticipantIds.includes(p(t))}))))),0===this.participantsToShow.length&&this.search.length>0&&e("div",{key:"2b0898cb78599610406ff0ec2b2be0ef8c4615cf",class:"empty-message"},this.t("participants.errors.empty_results")),0===this.participantsToShow.length&&0===this.search.length&&e("div",{key:"f6bdab6034aa82bf26dfa1a08615d36dcd00dcf6",class:"empty-room"},e("rtk-icon",{key:"115e987588beb229aba15dffbd05ffbef71cb74c",icon:this.iconPack.people_checked,part:"search-icon",class:"search-icon"}),e("p",{key:"d8b6120c1361b97d1e73969d9da119aa7488a7b3"},this.t("breakout_rooms.all_assigned")),e("span",{key:"020aa6e5440976f89960b0972784c997a1f765a8"},this.t("breakout_rooms.empty_main_room")))))}static get watchers(){return{meeting:[{meetingChanged:0}],participantIds:[{participantsChanged:0}],search:[{searchChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{display:flex;height:100%;flex-direction:column;font-size:14px}:host input[type='checkbox']{margin:var(--rtk-space-0, 0px);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:var(--rtk-border-radius-sm, 4px);position:relative;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);border-width:var(--rtk-border-width-sm, 1px);border-style:solid;border-color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}:host input[type='checkbox']:checked{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host input[type='checkbox']:checked::before{position:absolute;top:1px;left:1px;height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);background-color:rgb(var(--rtk-colors-text-1000, 255 255 255));content:'';clip-path:polygon(5% 60%, 35% 93%, 100% 19%, 86% 4%, 36% 62%, 19% 44%)}*{box-sizing:border-box}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.ctr{box-sizing:border-box;padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);overflow-y:auto;flex-grow:1;flex-basis:0}.empty-message{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-10, 40px);text-align:center;font-size:14px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.empty-room{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px);height:100%;text-align:center;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.empty-room rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}.empty-room p{font-size:16px;font-weight:500;margin:var(--rtk-space-0, 0px)}.empty-room span{font-size:12px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search-wrapper{margin-bottom:var(--rtk-space-1, 4px);display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);height:var(--rtk-space-8, 32px)}.search .search-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:inherit;color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.header{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-1\\.5, 6px);height:var(--rtk-space-9, 36px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-0\\.5, 2px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-bottom-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));display:flex;align-items:center;justify-content:space-between}.title-wrapper{display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.participant-count{display:flex;align-items:center;font-size:14px}.participant-count rtk-icon{margin-right:var(--rtk-space-0\\.5, 2px);width:var(--rtk-space-3, 12px)}.participant-item{display:flex;align-items:center;justify-content:space-between;margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);cursor:pointer}.participant-item input.hide-checkbox{display:none}.participant-item input:checked{display:inline-block}.dragging input{display:none}.participant-item:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.participant-item:hover input{display:inline-block}.peer-ui-container{position:relative;display:flex;align-items:center;gap:var(--rtk-space-2, 8px);height:var(--rtk-space-10, 40px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.peer-ui-container rtk-avatar{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.peer-ui-container .name{font-size:14px;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}"}},[257,"rtk-breakout-room-participants",{meeting:[16],participantIds:[16],iconPack:[16],t:[16],selectedParticipantIds:[16],search:[32],participantsToShow:[32],isDragging:[32]},void 0,{meeting:[{meetingChanged:0}],participantIds:[{participantsChanged:0}],search:[{searchChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-breakout-room-participants","rtk-avatar","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-breakout-room-participants":customElements.get(s(t))||customElements.define(s(t),v);break;case"rtk-avatar":customElements.get(s(t))||h();break;case"rtk-icon":customElements.get(s(t))||k();break;case"rtk-spinner":customElements.get(s(t))||g();break;case"rtk-tooltip":customElements.get(s(t))||f()}}))}m([d()],v.prototype,"meeting",void 0),m([d()],v.prototype,"iconPack",void 0),m([d()],v.prototype,"t",void 0),x();export{v as R,x as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as t}from"./p-
|
|
1
|
+
import{c as t}from"./p-DBekcxma.js";import{i as e,m as r}from"./p-cYn1aFYj.js";import{i}from"./p-C0vp-Q7v.js";const a=(e,i=t())=>{let a=Object.assign({},i);return r(a,e),a},o=(t,r,o={},l={grid_pagination:!0,settings_toggle:!0})=>{var n,d,g,s,c,v,k,p,m,u,h,b,x,f,y,S,w,O;const I={showSetupScreen:!0};let _,M=["rtk-stage"],j={},T={};const R=!1!==(null==l?void 0:l.settings_toggle),C=!1!==(null==l?void 0:l.grid_pagination);if(null===(n=t.controlBar)||void 0===n?void 0:n.isEnabled){M.push("rtk-controlbar");const{elements:e}=t.controlBar,a=[...e.fullscreen?["rtk-fullscreen-toggle"]:[],...R?["rtk-settings-toggle"]:[]],o=[],l=[];(null===(d=r.participants.pip)||void 0===d?void 0:d.isSupported())&&(null===(s=null===(g=r.self)||void 0===g?void 0:g.config)||void 0===s?void 0:s.pipMode)&&"LIVESTREAM"!==(null===(c=r.self.config)||void 0===c?void 0:c.viewType)&&l.push("rtk-pip-toggle"),(null==r?void 0:r.self.permissions.canDisableParticipantAudio)&&l.push("rtk-mute-all-button"),l.push("rtk-breakout-rooms-toggle"),(null===(v=r.self)||void 0===v?void 0:v.permissions.canRecord)&&l.push("rtk-recording-toggle"),null!==(k=r.self.permissions.transcriptionEnabled)&&void 0!==k&&k&&l.push("rtk-caption-toggle"),"ReactNative"!==navigator.product&&l.push("rtk-debugger-toggle"),i(r)&&a.push("rtk-livestream-toggle"),e.screenshare&&a.push("rtk-screen-share-toggle"),e.chat&&o.push("rtk-chat-toggle"),e.polls&&o.push("rtk-polls-toggle"),e.participants&&o.push("rtk-participants-toggle"),e.plugins&&o.push("rtk-plugins-toggle"),o.push("rtk-ai-toggle");const n=["rtk-mic-toggle","rtk-camera-toggle","rtk-stage-toggle","rtk-leave-button"];l.length>0&&n.push("rtk-more-toggle");const p=a.concat(o).concat(l);let m=!1;p.length>0&&(m=!0),T={"rtk-controlbar":{states:["activeMoreMenu"],children:["div#controlbar-left","div#controlbar-center","div#controlbar-right"]},"div#controlbar-left":a,"div#controlbar-center":n,"div#controlbar-right":o,"rtk-more-toggle":{states:["activeMoreMenu"],children:[]},"rtk-more-toggle.activeMoreMenu":l.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"rtk-controlbar.sm":["div#controlbar-mobile"],"rtk-controlbar.md":["div#controlbar-mobile"],"rtk-more-toggle.activeMoreMenu.md":p.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"rtk-more-toggle.activeMoreMenu.sm":p.map((t=>[t,{variant:"horizontal",slot:"more-elements"}])),"div#controlbar-mobile":["rtk-mic-toggle","rtk-camera-toggle","rtk-stage-toggle",m&&"rtk-more-toggle","rtk-leave-button"]}}if(null===(p=t.header)||void 0===p?void 0:p.isEnabled){M.unshift("rtk-header");const{elements:e}=t.header;let r=["rtk-recording-indicator","rtk-livestream-indicator"],i=[],a=[];C&&a.push("rtk-grid-pagination"),e.title&&i.push("rtk-meeting-title"),"string"==typeof e.logo&&e.logo.length>0&&(_=e.logo,r.unshift("rtk-logo")),e.participantCount&&a.push("rtk-participant-count","rtk-viewer-count"),e.timer&&a.push("rtk-clock"),j={"rtk-header":["div#header-left","div#header-center","div#header-right"],"rtk-header.sm":{remove:["div#header-center"]},"div#header-left":r,"div#header-center":i,"div#header-right":a,"div#header-left.sm":{remove:["rtk-logo"],prepend:["rtk-meeting-title"]}}}M.push("rtk-participants-audio","rtk-dialog-manager");let z={logo:_};z=t.designTokens,e(null===(u=null===(m=null==t?void 0:t.designTokens)||void 0===m?void 0:m.colors)||void 0===u?void 0:u.textOnBrand)&&(z.colors["text-on-brand"]=null===(b=null===(h=null==t?void 0:t.designTokens)||void 0===h?void 0:h.colors)||void 0===b?void 0:b.textOnBrand),e(null===(f=null===(x=null==t?void 0:t.designTokens)||void 0===x?void 0:x.colors)||void 0===f?void 0:f.videoBg)&&(z.colors["video-bg"]=null===(S=null===(y=null==t?void 0:t.designTokens)||void 0===y?void 0:y.colors)||void 0===S?void 0:S.videoBg);let A={designTokens:z,styles:{"rtk-header":{display:"grid",height:"48px",gridTemplateColumns:"repeat(3, 1fr)",gridTemplateRows:"1fr",alignItems:"center","--header-section-gap":"var(--rtk-space-2, 8px)"},"rtk-header.sm":{display:"grid",gridArea:"header",gridTemplateColumns:"repeat(2, 1fr)",gridTemplateRows:"1fr",alignItems:"center","--header-section-gap":"var(--rtk-space-1, 4px)"},"div#header-left":{display:"flex",alignItems:"center",height:"48px",wordBreak:"break-all",gap:"var(--header-section-gap)"},"rtk-logo":{height:"26px"},"div#header-center":{display:"flex",alignItems:"center",justifyContent:"center",wordBreak:"break-all",gap:"var(--header-section-gap)",paddingInline:"var(--rtk-space-3, 12px)"},"div#header-right":{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--header-section-gap)"},"rtk-stage":{display:"flex",flex:"1"},"rtk-grid":{flex:"1",height:"auto"},"rtk-controlbar":{display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"1fr",alignItems:"center",padding:"8px"},"rtk-controlbar.sm":{display:"flex",position:"relative",backgroundColor:"var(--rtk-colors-background-1000, #000)"},"rtk-controlbar.md":{display:"flex",position:"relative",backgroundColor:"var(--rtk-colors-background-1000, #000)"},"div#controlbar-left":{display:"flex",alignItems:"center",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-center":{display:"flex",alignItems:"center",position:"relative",overflow:"visible",justifyContent:"center",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-mobile":{display:"flex",flex:"1",alignItems:"center",justifyContent:"center",zIndex:"10000",gap:"var(--rtk-space-1, 4px)"},"div#controlbar-right":{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"var(--rtk-space-1, 4px)"},"rtk-settings":{width:"720px",height:"480px"},"rtk-debugger":{width:"720px",height:"480px"},"div#setupcontrols-indicator":{position:"absolute",bottom:"12px",left:"12px",display:"flex",gap:"6px",background:"rgb(var(--rtk-colors-background-800, 0 0 0))",borderRadius:"100%"},"div#setupcontrols-media":{position:"absolute",bottom:"8px",right:"8px",display:"flex",gap:"6px"},"div#setupcontrols-settings":{position:"absolute",top:"8px",right:"8px",display:"flex",flexDirection:"column",gap:"6px"},"rtk-meeting-title.sm":{marginLeft:"0"},"rtk-clock":{marginRight:"0"}},root:Object.assign(Object.assign(Object.assign({"rtk-meeting":{state:"meeting",states:["activeSidebar"]},"rtk-meeting[meeting=idle]":["rtk-idle-screen"],"rtk-meeting[meeting=waiting]":["rtk-waiting-screen"],"rtk-meeting[meeting=setup]":["rtk-setup-screen","rtk-dialog-manager"],"rtk-meeting[meeting=joined]":M,"rtk-meeting[meeting=joined].activeSidebar.sm":{add:[["rtk-sidebar",{view:"full-screen"}]]},"rtk-meeting[meeting=joined].activeSidebar.md":{add:[["rtk-sidebar",{view:"full-screen"}]]},"rtk-meeting[meeting=ended]":["rtk-ended-screen"]},j),T),{"rtk-stage":{states:["activeSidebar"],children:["rtk-grid","rtk-notifications","rtk-transcripts"]},"rtk-stage.activeSidebar":{add:[["rtk-sidebar",{view:"sidebar"}]]},"rtk-stage.activeSidebar.sm":{remove:["rtk-sidebar"]},"rtk-grid":{states:["activeScreenShare","activePlugin","activeSpotlight"],state:"viewType",children:["rtk-simple-grid"]},"rtk-grid[viewType=AUDIO_ROOM]":["rtk-audio-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activeScreenshare":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin.activeSpotlight":["rtk-mixed-grid"],"rtk-grid[viewType=AUDIO_ROOM].activePlugin.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activeSpotlight":["rtk-spotlight-grid"],"rtk-grid.activeScreenShare":["rtk-mixed-grid"],"rtk-grid.activePlugin":["rtk-mixed-grid"],"rtk-grid.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activePlugin.activeSpotlight":["rtk-mixed-grid"],"rtk-grid.activePlugin.activeScreenShare.activeSpotlight":["rtk-mixed-grid"],"rtk-mixed-grid":{states:["activeSpotlight"],state:"viewType",children:["rtk-simple-grid"]},"rtk-mixed-grid[viewType=AUDIO_ROOM]":["rtk-audio-grid"],"rtk-mixed-grid.activeSpotlight":["rtk-spotlight-grid"],"rtk-participant-tile":{state:"meeting",children:["rtk-name-tag","rtk-avatar","rtk-network-indicator"]},"rtk-participant-setup":["rtk-avatar","div#setupcontrols-media"],"rtk-participant-tile[meeting=setup]":["rtk-avatar","div#setupcontrols-indicator","div#setupcontrols-media",...R?["div#setupcontrols-settings"]:[]],"div#setupcontrols-indicator":[["rtk-audio-visualizer",{slot:"start",hideMuted:!0}]],"div#setupcontrols-media":[["rtk-mic-toggle",{size:"sm"}],["rtk-camera-toggle",{size:"sm"}]],"div#setupcontrols-settings":[["rtk-settings-toggle",{size:"sm"}]],"rtk-screenshare-view":["rtk-name-tag","rtk-network-indicator"],"rtk-name-tag":[["rtk-audio-visualizer",{slot:"start"}]]}),config:{notification_sounds:{participant_left:!1},participant_joined_sound_notification_limit:3,participant_chat_message_sound_notification_limit:10,videoFit:"cover"}};return A=a(o,A),I.showSetupScreen=null===(O=null===(w=t.setupScreen)||void 0===w?void 0:w.isEnabled)||void 0===O||O,{config:A,data:I}};export{a as e,o as g}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as
|
|
1
|
+
import{p as a,H as r,c as t,h as e,t as o}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as i,i as s}from"./p-DBekcxma.js";import"./p-Dguuxuf6.js";import{a as c}from"./p-CJsXePY3.js";import{S as n}from"./p-BeyS1zas.js";import{d}from"./p-DDaHXyCC.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-BYIBbfJ8.js";import{d as b}from"./p-D8kn6Kmy.js";var f=function(a,r,t,e){var o,i=arguments.length,s=i<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,t):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(a,r,t,e);else for(var c=a.length-1;c>=0;c--)(o=a[c])&&(s=(i<3?o(s):i>3?o(r,t,s):o(r,t))||s);return i>3&&s&&Object.defineProperty(r,t,s),s};const g=a(class extends r{constructor(a){super(),!1!==a&&this.__registerHost(),this.__attachShadow(),this.onPreview=t(this,"preview",7),this.iconPack=i,this.t=s(),this.status="loading"}render(){return e("div",{key:"4f52d3d7ff948d02832cf5f53ae9b483c8502b84",class:{image:!0,loaded:"loaded"===this.status}},e("img",{key:"06efe7798b2d59ee6b3acde68418763c89fc285f",src:c(this.url),onLoad:()=>{this.status="loaded"},onError:()=>{this.status="errored"},onClick:()=>{"loaded"===this.status&&this.onPreview.emit(this.url)}}),"loading"===this.status&&e("div",{key:"366f02c0b48cf06e527cc0b3c42ef1ac5ff0ac36",class:"image-spinner",title:this.t("chat.img.loading"),"aria-label":this.t("chat.img.loading")},e("rtk-spinner",{key:"90cd7d607487b8016ab838a31bcee39aacec0ba2",iconPack:this.iconPack})),"errored"===this.status&&e("div",{key:"d7b1fe803153799855aa8220af81f6b973b9117d",class:"image-errored",title:this.t("chat.error.img_not_found"),"aria-label":this.t("chat.error.img_not_found")},e("rtk-icon",{key:"83060f609b0df333aa91d3b21a4634d943d2352f",icon:this.iconPack.image_off})),"loaded"===this.status&&e("div",{key:"1db7dc269511f477c60faa681fb39cfa09a517ab",class:"actions"},e("rtk-button",{key:"a45138b3cfeeae245d28d3493396e5c5ea102b49",class:"action",variant:"secondary",kind:"icon",onClick:()=>{this.onPreview.emit(this.url)}},e("rtk-icon",{key:"b44a303fa4ed28a2a39ef372dfa5b58908698a2c",icon:this.iconPack.full_screen_maximize})),e("rtk-button",{key:"0e687d5c92264a8d2fa28e1921ccbd4797bfd2e3",class:"action",variant:"secondary",kind:"icon",onClick:()=>d(this.url,{fallbackName:"image"})},e("rtk-icon",{key:"1f2d01d576a2faa7483ada2e82f5cbf4cb8534b5",icon:this.iconPack.download}))))}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)}.image-spinner{cursor:wait}.image-errored{cursor:not-allowed}.image{display:block;font-family:var(--rtk-font-family, sans-serif);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));position:relative;height:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);cursor:pointer}.image img{display:none;height:100%;width:100%;border-radius:var(--rtk-border-radius-sm, 4px);-o-object-fit:cover;object-fit:cover}.image .image-spinner{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.image .image-spinner rtk-spinner{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}.image .image-errored{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-sm, 4px);background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}.image .actions{display:none;height:var(--rtk-space-8, 32px);align-items:center;position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));overflow:hidden;--tw-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.image .actions .action{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);border-radius:var(--rtk-border-radius-none, 0);border-width:var(--rtk-border-width-none, 0);border-style:none;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)}.image .actions .action:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.image.loaded img{display:block}.image.loaded .image-spinner{display:none}.image:hover .actions,.image:focus .actions{display:flex}"}},[1,"rtk-image-message-view",{url:[1],iconPack:[16],t:[16],status:[32]}]);function m(){"undefined"!=typeof customElements&&["rtk-image-message-view","rtk-button","rtk-icon","rtk-spinner"].forEach((a=>{switch(a){case"rtk-image-message-view":customElements.get(o(a))||customElements.define(o(a),g);break;case"rtk-button":customElements.get(o(a))||l();break;case"rtk-icon":customElements.get(o(a))||p();break;case"rtk-spinner":customElements.get(o(a))||b()}}))}f([n()],g.prototype,"iconPack",void 0),f([n()],g.prototype,"t",void 0),m();export{g as R,m as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,H as t,h as e,d as a,t as s}from"./p-BBHQOrFK.js";import{e as i,i as o,D as n}from"./p-
|
|
1
|
+
import{p as r,H as t,h as e,d as a,t as s}from"./p-BBHQOrFK.js";import{e as i,i as o,D as n}from"./p-DBekcxma.js";import{C as c}from"./p-aS2wpIc0.js";import{s as d}from"./p-BIplIdLH.js";import{S as l}from"./p-BeyS1zas.js";import{d as p}from"./p-BYIBbfJ8.js";var b=function(r,t,e,a){var s,i=arguments.length,o=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(r,t,e,a);else for(var n=r.length-1;n>=0;n--)(s=r[n])&&(o=(i<3?s(o):i>3?s(t,e,o):s(t,e))||o);return i>3&&o&&Object.defineProperty(t,e,o),o};const h=r(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.searchQuery="",this.isProcessing=!1,this.iconPack=i,this.t=o(),this.transcriptions=[],this.autoScrollEnabled=!0,this.onScroll=r=>{const{scrollTop:t,clientHeight:e,scrollHeight:a}=r.target;this.autoScrollEnabled=t+e+10>=a},this.onTranscriptHandler=r=>{this.transcriptions=this.transcriptionsReducer(this.transcriptions,r)}}transcriptionsReducer(r,t){if(!r.length||r[r.length-1].peerId!==t.peerId)return r.concat(t);const e=r[r.length-1];return e.id===t.id?(e.transcript=t.transcript,r.pop(),r.concat(e)):r.concat(t)}connectedCallback(){this.meeting&&this.meetingChanged(this.meeting)}componentDidLoad(){var r;null===(r=this.contentContainer)||void 0===r||r.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var r,t,e;null===(t=null===(r=this.meeting)||void 0===r?void 0:r.ai)||void 0===t||t.off("transcript",this.onTranscriptHandler),null===(e=this.contentContainer)||void 0===e||e.removeEventListener("scroll",this.onScroll)}meetingChanged(r){var t,e;this.transcriptions=n(null===(t=null==r?void 0:r.ai)||void 0===t?void 0:t.transcripts),this.transcriptions=this.transcriptions.reduce(this.transcriptionsReducer,[]),null===(e=null==r?void 0:r.ai)||void 0===e||e.on("transcript",this.onTranscriptHandler)}transcriptionsChanged(){this.autoScrollEnabled&&setTimeout((()=>{d(this.contentContainer,!1)}),100)}renderContent(){const r=this.renderTranscripts();return e("div",{class:"content scrollbar",ref:r=>this.contentContainer=r},0===this.transcriptions.length&&e("div",{class:"started-message"},this.t("ai.transcriptions.no_transcripts_yet")),r,this.transcriptions.length>0&&this.searchQuery&&0===r.length&&e("div",{class:"started-message"},this.t("ai.transcriptions.no_transcripts_found")))}renderTranscripts(){var r;const t=null===(r=this.searchQuery)||void 0===r?void 0:r.toLowerCase(),a=this.transcriptions.filter((r=>{var e,a;return!t||(null===(e=r.name)||void 0===e?void 0:e.toLowerCase().includes(t))||(null===(a=r.transcript)||void 0===a?void 0:a.toLowerCase().includes(t))})),s=[];return a.forEach((r=>{const t={name:r.name,date:r.date,peerId:r.peerId,transcript:r.transcript};if(!s.length)return void s.push(t);const e=s[s.length-1];r.peerId===e.peerId?e.transcript+=" "+r.transcript:s.push(t)})),s.map((r=>e("div",{class:"message"},e(c,{name:r.name,time:new Date(r.date),now:new Date}),e("div",{class:"body"},r.transcript))))}render(){return e(a,{key:"08b41c4274270f9df80881c0a1fee9cdb5621ed7"},e("div",{key:"debebf0ef34437b1d9266cf5470a3d47975a865b",class:"search"},e("rtk-icon",{key:"5a17bcacd6ee1813ca40f5d6d550cc7425060d14",icon:this.iconPack.search}),e("input",{key:"b36d618edaccca47d5a076bf28e2af4c08039929",type:"search",autocomplete:"off",placeholder:this.t("ai.transcriptions.search_placeholder"),value:this.searchQuery,onInput:r=>this.searchQuery=r.target.value})),this.isProcessing&&e("div",{key:"8a9a5fda23dec97e14faaacc6bbade22a711b137",class:"processing"},e("p",{key:"24385d63e55281e957bed28b5055560b9a860c63"},"Processing audio....")),!this.isProcessing&&this.renderContent())}static get watchers(){return{meeting:[{meetingChanged:0}],transcriptions:[{transcriptionsChanged: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)}.head{display:flex;align-items:center}.head .name{margin-right:var(--rtk-space-4, 16px);font-size:12px;font-weight:700}.head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.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)))}*{box-sizing:border-box;border-width:0;border-style:solid}:host{width:100%;display:flex;flex-direction:column}.processing{display:flex;flex:1 1 0%;flex-direction:column;align-items:center;justify-content:center}.content{box-sizing:border-box;display:flex;flex-direction:column;padding:var(--rtk-space-3, 12px);flex:1 0 0px;overflow-y:scroll}.started-message{margin-top:var(--rtk-space-5, 20px);margin-bottom:var(--rtk-space-5, 20px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));margin-left:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-3, 12px);margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px)}.search rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.search input{box-sizing:border-box;height:var(--rtk-space-9, 36px);width:100%;padding-right:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;border-radius:var(--rtk-border-radius-sm, 4px);font-size:14px}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.caption-view{height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);border-bottom-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));display:flex;align-items:center;justify-content:space-between;font-size:14px}.message .body{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);font-size:14px;word-break:break-word}.message{margin-bottom:var(--rtk-space-3, 12px)}.message:last-child{margin-bottom:var(--rtk-space-0, 0px)}"}},[1,"rtk-ai-transcriptions",{meeting:[16],iconPack:[16],t:[16],initialTranscriptions:[16],searchQuery:[32],isProcessing:[32],transcriptions:[32]},void 0,{meeting:[{meetingChanged:0}],transcriptions:[{transcriptionsChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-ai-transcriptions","rtk-icon"].forEach((r=>{switch(r){case"rtk-ai-transcriptions":customElements.get(s(r))||customElements.define(s(r),h);break;case"rtk-icon":customElements.get(s(r))||p()}}))}b([l()],h.prototype,"meeting",void 0),b([l()],h.prototype,"iconPack",void 0),b([l()],h.prototype,"t",void 0),g();export{h as R,g as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as e,h as a,d as i,t as s}from"./p-BBHQOrFK.js";import{e as o,i as n}from"./p-
|
|
1
|
+
import{p as t,H as r,c as e,h as a,d as i,t as s}from"./p-BBHQOrFK.js";import{e as o,i as n}from"./p-DBekcxma.js";import{S as c}from"./p-BeyS1zas.js";import{T as d}from"./p-Bx38FZhs.js";import{d as p}from"./p-D6vw6bT2.js";import{d as l}from"./p-BYIBbfJ8.js";var h=function(t,r,e,a){var i,s=arguments.length,o=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,e,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(s<3?i(o):s>3?i(r,e,o):i(r,e))||o);return s>3&&o&&Object.defineProperty(r,e,o),o};const b=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.dismiss=e(this,"rtkNotificationDismiss",7),this.iconPack=o,this.t=n(),this.imageState="loading"}connectedCallback(){this.notificationChanged(this.notification)}pausedChanged(t){t?clearTimeout(this.timeout):this.notificationChanged(this.notification)}notificationChanged(t){null==t||"number"!=typeof t.duration||this.paused||(this.timeout=window.setTimeout((()=>{this.dismiss.emit(t.id)}),t.duration))}render(){var t;return a(i,{key:"f8ddbd9e32a05c36d3b7ea8d1589bba1b6009fab"},a("div",{key:"61fe82306da70295f9530edf9acdb28d891ae9d5",class:"ctr"},null!=this.notification.icon&&a("rtk-icon",{key:"59cb7c56120f3c3d52fc9d39c7e1c7066d7f5d72",class:"icon",icon:this.notification.icon,variant:null!==(t=this.notification.iconVariant)&&void 0!==t?t:"primary"}),null!=this.notification.image&&null==this.notification.icon&&"errored"!==this.imageState&&a("img",{key:"3dce9047059aa31989e0205f1fe20abade6b56f7",src:this.notification.image,class:{loaded:"loaded"===this.imageState},onLoad:()=>this.imageState="loaded",onError:()=>this.imageState="errored"}),a("p",{key:"eaf2809d755002b226552111f52e5d6ec35f1731",class:"message"},a(d,{key:"5fc9377a438bcb3fe70d8ad85d753ed30123204c",message:this.notification.message})),a("div",{key:"5d4562cd5dd565b107f39b1eb0cbbd400281082b",class:"right"},null!=this.notification.button&&a("rtk-button",{key:"f21316499b4f85b4ab7b3b1194c8014b969f2358",size:"sm",variant:this.notification.button.variant,onClick:()=>this.notification.button.onClick()},this.notification.button.text),a("button",{key:"299be899a5cd4e7e23b9e0006e69d030b5f06b10",onClick:()=>this.dismiss.emit(this.notification.id),class:"dismiss"},a("rtk-icon",{key:"ef56fd50689c3166a3f6f7f8cebb2ed9d902dc3d","aria-label":this.t("dismiss"),icon:this.iconPack.dismiss})))))}static get watchers(){return{paused:[{pausedChanged:0}],notification:[{notificationChanged: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{pointer-events:none;display:block;height:var(--rtk-space-10, 40px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));animation:show 0.4s ease;transition:0.4s;z-index:100}.ctr{box-sizing:border-box;display:inline-flex;height:100%;min-width:var(--rtk-space-40, 160px);align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-2, 8px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-shadow:var(--tw-shadow-colored);pointer-events:auto}img{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-0, 0px);width:var(--rtk-space-0, 0px);border-radius:9999px}img.loaded{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}.message{margin-right:var(--rtk-space-2, 8px);max-width:var(--rtk-space-72, 288px) !important;font-size:14px !important;overflow:hidden !important;display:-webkit-box !important;-webkit-box-orient:vertical !important;-webkit-line-clamp:2 !important}.message p{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-1, 4px)}.message blockquote{display:none}rtk-icon.icon{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}button.dismiss{display:flex;height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px);align-items:center;justify-content:center;border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));outline-width:1px;outline-color:rgb(var(--rtk-colors-text-1000, 255 255 255))}button.dismiss:hover{cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}button.dismiss:focus-visible{outline-style:solid}button.dismiss{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}.dismiss rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}rtk-button{border-radius:var(--rtk-border-radius-sm, 4px)}.right{margin-left:auto;display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateX(-120px)}100%{opacity:1;transform:translateX(0px)}}@keyframes exit{0%{opacity:1;transform:translateX(0)}100%{opacity:0;transform:translateX(-120px)}}:host([size='sm']){font-size:14px}"}},[1,"rtk-notification",{notification:[16],paused:[4],size:[513],iconPack:[16],t:[16],imageState:[32]},void 0,{paused:[{pausedChanged:0}],notification:[{notificationChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-notification","rtk-button","rtk-icon"].forEach((t=>{switch(t){case"rtk-notification":customElements.get(s(t))||customElements.define(s(t),b);break;case"rtk-button":customElements.get(s(t))||p();break;case"rtk-icon":customElements.get(s(t))||l()}}))}h([c()],b.prototype,"iconPack",void 0),h([c()],b.prototype,"t",void 0),f();export{b as R,f as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,H as t,c as a,h as o,d as e,t as s}from"./p-BBHQOrFK.js";import{e as i,i as l}from"./p-
|
|
1
|
+
import{p as r,H as t,c as a,h as o,d as e,t as s}from"./p-BBHQOrFK.js";import{e as i,i as l}from"./p-DBekcxma.js";import{S as c}from"./p-BeyS1zas.js";import{s as p,f as n,g as d}from"./p-CJsXePY3.js";import{d as b}from"./p-DHSRRtn3.js";var k=function(r,t,a,o){var e,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,t,a,o);else for(var l=r.length-1;l>=0;l--)(e=r[l])&&(i=(s<3?e(i):s>3?e(t,a,i):e(t,a))||i);return s>3&&i&&Object.defineProperty(t,a,i),i};const v=r(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.onVote=a(this,"rtkVotePoll",7),this.iconPack=i,this.t=l(),this.MAX_VOTES_RENDER=10}vote(r,t){this.poll.voted.includes(this.self)?r.preventDefault():this.onVote.emit({id:this.poll.id,index:t})}render(){const r=this.poll.voted.includes(this.self);return o(e,{key:"69e61c49e0f7f2015538447a8862bdb7fd3b4840"},o("div",{key:"00dec58cb19f30a4fc01926dd383edb270cd61c3",class:"ctr"},o("p",{key:"04d88ddf1f20e1a7e5b017f058b585723498f474",class:"poll-title"},this.t("polls.by")," ",p(n(this.poll.createdBy),20)),o("div",{key:"5432167291df04bc4a4bfa23117df79c8512027d",class:"poll"},o("p",{key:"bee55a8193f96f582cf1c3006393740ab652dea7",class:"poll-question"},this.poll.question),o("div",{key:"aefe01131512e992e756196b5b451d4423bb9635",class:"poll-answers"},o("span",{key:"973f566c9d84a6519f7ab307fd072215fe76f72d"},this.t("polls.answers")),o("span",{key:"2a87b4bd72b99916cf20070c792742d04c1a44ca"},this.poll.voted.length)),this.poll.options.map(((t,a)=>o("div",{class:{active:t.votes.some((r=>r.id===this.self)),"open-vote":this.permissions.polls.canVote&&!r,"poll-option":!0}},o("div",{class:"poll-option-header","data-disabled":!this.permissions.polls.canVote},o("label",null,!r&&o("input",{disabled:!this.permissions.polls.canVote,readOnly:r,type:"radio",checked:t.votes.some((r=>r.id===this.self)),onClick:r=>this.vote(r,a)}),o("p",null,t.text)),o("span",{class:"counter"},t.count)),o("div",{class:"votes"},t.votes.slice(0,this.MAX_VOTES_RENDER).map((r=>{if(!this.poll.anonymous||this.self===this.poll.createdByUserId)return o("rtk-tooltip",{label:r.name},o("div",{class:"vote"},d(r.name)))})),t.votes.length>this.MAX_VOTES_RENDER&&o("rtk-tooltip",{label:`+${t.votes.length-this.MAX_VOTES_RENDER} more `},o("div",{class:"vote"},"+",t.votes.length-this.MAX_VOTES_RENDER)))))))))}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)))}.ctr{margin-bottom:var(--rtk-space-3, 12px);display:flex;width:100%;flex-direction:column;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.poll-title{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-4, 16px);font-size:12px}.poll{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));display:flex;flex-direction:column;padding:var(--rtk-space-4, 16px)}.poll-question{padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:14px;overflow-wrap:break-word}.poll-answers{display:flex;flex-direction:row;justify-content:space-between;font-size:12px;margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-3, 12px)}.poll-option{display:flex;flex-direction:column;margin-top:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);word-break:break-word}.poll-option.open-vote:hover{cursor:pointer}.poll-option label{display:flex;flex-direction:row;cursor:inherit}.poll-option-header{display:flex;flex-direction:row;justify-content:space-between;padding:var(--rtk-space-1, 4px)}.poll-option-header[data-disabled='true']:hover{cursor:default}.poll-option-header input{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-2, 8px);cursor:inherit}.poll-option-header .counter{color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:12px}.votes{margin-top:var(--rtk-space-1, 4px);display:flex;flex-direction:row;flex-wrap:wrap}.vote{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);display:flex;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-radius:var(--rtk-border-radius-none, 0);clip-path:circle()}.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.active .counter{color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}"}},[1,"rtk-poll",{poll:[16],self:[1],permissions:[16],iconPack:[16],t:[16]}]);function f(){"undefined"!=typeof customElements&&["rtk-poll","rtk-tooltip"].forEach((r=>{switch(r){case"rtk-poll":customElements.get(s(r))||customElements.define(s(r),v);break;case"rtk-tooltip":customElements.get(s(r))||b()}}))}k([c()],v.prototype,"iconPack",void 0),k([c()],v.prototype,"t",void 0),f();export{v as R,f as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function e(e,t){const r=null==t?void 0:t.code;switch(r){case"0004":switch(null==t?void 0:t.reason){case"participant_token_not_yet_valid":return{message:e("init.token_not_yet_valid")||e("init.auth_error"),code:r};case"participant_token_expired":return{message:e("init.token_expired")||e("init.auth_error"),code:r};case"participant_token_revoked":return{message:e("init.token_revoked")||e("init.auth_error"),code:r};case"participant_token_invalid":return{message:e("init.token_invalid")||e("init.auth_error"),code:r};case"meeting_inactive":return{message:e("init.meeting_inactive")||e("init.auth_error"),code:r};default:return{message:e("init.auth_error"),code:r}}case"0001":return{message:e("init.network_error"),code:r};case"0010":return{message:e("init.browser_error"),code:r};case"0904":case"0102":case"0404":return{message:e("init.default_error"),code:r};default:return null}}export{e as g}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as r,H as t,c as o,h as e,d as
|
|
1
|
+
import{p as r,H as t,c as o,h as e,d as a,t as i}from"./p-BBHQOrFK.js";import{e as s,i as n}from"./p-DBekcxma.js";import{S as c}from"./p-BeyS1zas.js";import{d as l}from"./p-D6vw6bT2.js";import{d}from"./p-BYIBbfJ8.js";import{d as b}from"./p-D8kn6Kmy.js";let p;var k=function(r,t,o,e){var a,i=arguments.length,s=i<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,o):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(r,t,o,e);else for(var n=r.length-1;n>=0;n--)(a=r[n])&&(s=(i<3?a(s):i>3?a(t,o,s):a(t,o))||s);return i>3&&s&&Object.defineProperty(t,o,s),s};const h=r(class extends t{constructor(r){super(),!1!==r&&this.__registerHost(),this.__attachShadow(),this.pickerClose=o(this,"pickerClose",7),this.emojiClicked=o(this,"rtkEmojiClicked",7),this.iconPack=s,this.t=n(),this.focusWhenOpened=!0,this.filterVal="",this.filteredEmojis=[]}componentWillLoad(){(async()=>{if(!p){const r=await fetch("https://rtk-assets.realtime.cloudflare.com/assets/emojis-data.json");p=r.json()}return p})().then((r=>{this.emojiList=r,this.handleInputChange(this.inputElement)}))}componentDidLoad(){this.focusWhenOpened&&this.inputElement.focus()}handleInputChange(r){this.filterVal=r.value;const t=new RegExp(`([^,]*?${this.filterVal}[^,]*):(\\d+)`,"g");this.filteredEmojis=Array.from(this.emojiList.search.matchAll(t)).map((r=>({name:r[1],emoji:this.emojiList.emojis[r[2]]})))}handleEmojiClick(r){this.emojiClicked.emit(r)}mapEmojiList(){var r;return(null===(r=this.emojiList)||void 0===r?void 0:r.length)>0?e("div",{id:"loader"},e("rtk-spinner",{iconPack:this.iconPack})):e("div",{id:"emoji-grid",class:"scrollbar max-w-40"},this.filteredEmojis.map((r=>e("rtk-button",{key:`emoji-button-${r.name}`,class:"emoji",variant:"ghost",kind:"icon",title:r.name,onClick:()=>this.handleEmojiClick(r.emoji)},r.emoji))))}render(){return e(a,{key:"e2b74cd93028974812eeba320368eb7d645b8e6d"},e("div",{key:"4656f9afbcde1e6a952a5eb7229649e3d9f7bf8a",class:"close-parent"},e("rtk-button",{key:"03759c6ee2b3b8bedcf965d340425bf9b7a9f370",variant:"ghost",kind:"icon",class:"close",onClick:()=>{var r;return null===(r=this.pickerClose)||void 0===r?void 0:r.emit()},"aria-label":this.t("close")},e("rtk-icon",{key:"b5b746e6c18e2a67a57f550f35bb32ea4de37cb9",icon:this.iconPack.dismiss}))),e("div",{key:"73235fd8e554ece4539e4d2fc9b086c32e43bd47",class:"emoji-parent"},e("input",{key:"315f45bcc6560f61d7c8448fee7d2e36ca04784d",value:this.filterVal,onInput:r=>this.handleInputChange(r.target),placeholder:this.t("search"),ref:r=>this.inputElement=r}),this.mapEmojiList()))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{width:100%}.emoji-parent{box-sizing:border-box;display:inline-flex;height:var(--rtk-space-64, 256px);width:100%;max-width:640px;flex-direction:column;padding:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-0, 0px);-webkit-user-select:none;-moz-user-select:none;user-select:none;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;--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))}.close-parent{display:flex;flex:1 1 0%;justify-content:flex-end;padding:var(--rtk-space-0, 0px);--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))}#emoji-grid{margin-top:var(--rtk-space-2, 8px);box-sizing:border-box;display:flex;flex-direction:row;flex-wrap:wrap;align-content:flex-start;overflow-x:hidden;overflow-y:scroll;height:100%;grid-auto-rows:minmax(min-content, max-content)}#loader{display:flex;height:100%;width:100%;align-items:center;justify-content:center}input{display:block;height:var(--rtk-space-8, 32px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:14px;border-width:var(--rtk-border-width-none, 0);border-style:solid;border-style:none;border-color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}input::placeholder{color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}input{border-radius:var(--rtk-border-radius-sm, 4px);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;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-300, 73 124 253) / var(--tw-border-opacity));--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);--tw-ring-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-ring-opacity));--tw-ring-opacity:0.3}.emoji{height:var(--rtk-space-10, 40px);width:var(--rtk-space-10, 40px);font-size:20px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}"}},[1,"rtk-emoji-picker",{iconPack:[16],t:[16],focusWhenOpened:[4,"focus-when-opened"],emojiList:[32],filterVal:[32],filteredEmojis:[32]}]);function f(){"undefined"!=typeof customElements&&["rtk-emoji-picker","rtk-button","rtk-icon","rtk-spinner"].forEach((r=>{switch(r){case"rtk-emoji-picker":customElements.get(i(r))||customElements.define(i(r),h);break;case"rtk-button":customElements.get(i(r))||l();break;case"rtk-icon":customElements.get(i(r))||d();break;case"rtk-spinner":customElements.get(i(r))||b()}}))}k([c()],h.prototype,"iconPack",void 0),k([c()],h.prototype,"t",void 0),f();export{h as R,f as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as s,h as e,d as a,t as n}from"./p-BBHQOrFK.js";import{e as c,i as o,c as r}from"./p-DhwysA2e.js";import{l as h,R as d}from"./p-CBJjerDR.js";import{f as l,s as p}from"./p-CJsXePY3.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{c as f,b as m,o as k,s as b,h as u}from"./p-B1SWgSTZ.js";import{S as v}from"./p-bRRQr4xn.js";import{d as g}from"./p-BHHJ7_MS.js";import{d as y}from"./p-D6vw6bT2.js";import{d as x}from"./p-BYIBbfJ8.js";import{d as j}from"./p-DMbGWtns.js";import{d as P}from"./p-Z8VMlEx7.js";import{d as C}from"./p-B0SC1Zj-.js";var E=function(t,i,s,e){var a,n=arguments.length,c=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(c=(n<3?a(c):n>3?a(i,s,c):a(i,s))||c);return n>3&&c&&Object.defineProperty(i,s,c),c};const w=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.rtkSendNotification=s(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=c,this.t=o(),this.config=r(),this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");f(t,i,{placement:"bottom-end",middleware:[m({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),k(4),b({padding:8}),u()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){if(null!=t){const{self:i}=t;this.canDisableParticipantAudio=i.permissions.canAllowParticipantAudio||i.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=i.permissions.canAllowParticipantVideo||i.permissions.canDisableParticipantVideo,this.canKickParticipant=i.permissions.kickParticipant,this.canPinParticipant=i.permissions.pinParticipant,this.canAllowParticipantOnStage=i.permissions.acceptStageRequests&&i.permissions.stageEnabled,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,s,n,c,o,r,f,m;const k="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),b=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,u=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!k||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,v=l((null===(s=this.participant)||void 0===s?void 0:s.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(n=this.meeting)||void 0===n?void 0:n.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return e(a,{key:"72dec22593ebf143608cd671c2fdf533378acae2"},e("div",{class:"left",key:null===(c=this.participant)||void 0===c?void 0:c.id},e("rtk-avatar",{key:"e71b096c53fe07f425adf1e47d9adb6ee9e7c212",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),e("p",{key:"492fe90030df26c000d2db3b0355d713e3a8ccf9",class:"name",title:v},p(v,16)," ",(null===(o=this.meeting)||void 0===o?void 0:o.self.id)===(null===(r=this.participant)||void 0===r?void 0:r.id)&&this.t("(you)"))),"sidebar"===this.view&&e("div",{key:"66ef58575c0c27d7afe631a544a44cb37c526c4c",class:"right"},g&&e("rtk-icon",{key:"adbbf629c1a4f1034127be89c09f8003d3cfe3a7",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!k&&e("rtk-icon",{key:"ef0b24e9fb292968c96cb74be8d63f14fde38a44",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(u||h({element:"rtk-participant",defaults:y})>0)&&e("div",{key:"38d52737db83f9c444211e3040cf09f5f47c1513",class:"menu"},e("span",{key:"f061992198025919d2bcf14cd1a6eee3f077beaf",id:"trigger",onClick:this.onMenuToggle},e("rtk-button",{key:"7eb863089acda3f9e20e5aedbcf55742c4b4eb64",variant:"ghost",kind:"icon",slot:"trigger"},e("rtk-icon",{key:"a7ff6d6dc9e1139f3b367ab662ad49b79e8258ff",class:"more",icon:this.iconPack.more_vertical}))),e("span",{key:"9188d1538accf4e4769f58580651e0ededa3dd75",id:"menu-list"},this.menuOpen&&e("rtk-menu-list",{key:"ef8b7d03841f4920dc7eb295456669975d06ee2f",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!k&&e("rtk-menu-item",{key:"d82737dc1227c642ce9c3880fcbe373ff6e0ec0c",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},e("rtk-icon",{key:"50e63cba1117df61588026b064046779a1e905fb",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),b&&e("rtk-menu-item",{key:"662d993d406bd00f014f41425ceb728ab4454ebd",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},e("rtk-icon",{key:"8b296bdb308c3a18a7ec13bca1047277a60b0887",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&e("rtk-menu-item",{key:"efea4ce4a51bbe2203635e0a95878d80cfe460e4",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},e("rtk-icon",{key:"cdc27b2554c89ef5c3441de551c2bdbf4e91ed72",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&e("rtk-menu-item",{key:"4f1f4e0610cb9fa7a993b824defc71af47711cb1",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},e("rtk-icon",{key:"234d891a3ea80dbda3172e8e6a89d71a44676770",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(f=this.participant)||void 0===f?void 0:f.id)!==(null===(m=this.meeting)||void 0===m?void 0:m.self.id)&&e("rtk-menu-item",{key:"90c465f0f66a792f160b6226714dd07e51c57616",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},e("rtk-icon",{key:"a5605d8b2864e27817646fc585e6598cd547ca70",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!b&&this.canKickParticipant&&e("rtk-menu-item",{key:"0e5fe7c7f6e61599293843466c5b473226348d26",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.participants.joined.get(null===(i=this.participant)||void 0===i?void 0:i.id))||void 0===s||s.kick()}},e("rtk-icon",{key:"c7d370837be33a1a14fb32f64a35da3fdceafe28",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),e("slot",{key:"ec5dea9563b71323776808d8ef1991cda87e625f"},e(d,{key:"6c423497a1c2f31a7190305913dce0019cf943f1",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;z-index:20}"}},[257,"rtk-participant",{meeting:[16],states:[16],view:[1],participant:[16],iconPack:[16],t:[16],config:[16],audioEnabled:[32],videoEnabled:[32],isPinned:[32],isHidden:[32],isOnStage:[32],canDisableParticipantAudio:[32],canDisableParticipantVideo:[32],canKickParticipant:[32],canPinParticipant:[32],canAllowParticipantOnStage:[32],menuOpen:[32]},void 0,{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}]);function O(){"undefined"!=typeof customElements&&["rtk-participant","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-spinner"].forEach((t=>{switch(t){case"rtk-participant":customElements.get(n(t))||customElements.define(n(t),w);break;case"rtk-avatar":customElements.get(n(t))||g();break;case"rtk-button":customElements.get(n(t))||y();break;case"rtk-icon":customElements.get(n(t))||x();break;case"rtk-menu-item":customElements.get(n(t))||j();break;case"rtk-menu-list":customElements.get(n(t))||P();break;case"rtk-spinner":customElements.get(n(t))||C()}}))}E([v()],w.prototype,"meeting",void 0),E([v()],w.prototype,"states",void 0),E([v()],w.prototype,"iconPack",void 0),E([v()],w.prototype,"t",void 0),E([v()],w.prototype,"config",void 0),O();export{w as R,O as d}
|
|
1
|
+
import{p as t,H as i,c as s,h as e,d as a,t as n}from"./p-BBHQOrFK.js";import{e as c,i as o,c as r}from"./p-DBekcxma.js";import{l as h,R as d}from"./p-CBJjerDR.js";import{f as l,s as p}from"./p-CJsXePY3.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{c as f,b as m,o as k,s as b,h as u}from"./p-B1SWgSTZ.js";import{S as v}from"./p-BeyS1zas.js";import{d as g}from"./p-DWXhSwkc.js";import{d as y}from"./p-D6vw6bT2.js";import{d as x}from"./p-BYIBbfJ8.js";import{d as P}from"./p-BWnrn7Wp.js";import{d as j}from"./p-BFuoKiMa.js";import{d as C}from"./p-D8kn6Kmy.js";var E=function(t,i,s,e){var a,n=arguments.length,c=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(c=(n<3?a(c):n>3?a(i,s,c):a(i,s))||c);return n>3&&c&&Object.defineProperty(i,s,c),c};const w=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.rtkSendNotification=s(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=c,this.t=o(),this.config=r(),this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");f(t,i,{placement:"bottom-end",middleware:[m({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),k(4),b({padding:8}),u()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){if(null!=t){const{self:i}=t;this.canDisableParticipantAudio=i.permissions.canAllowParticipantAudio||i.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=i.permissions.canAllowParticipantVideo||i.permissions.canDisableParticipantVideo,this.canKickParticipant=i.permissions.kickParticipant,this.canPinParticipant=i.permissions.pinParticipant,this.canAllowParticipantOnStage=i.permissions.acceptStageRequests&&i.permissions.stageEnabled,t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,s,n,c,o,r,f,m;const k="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),b=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,u=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!k||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,v=l((null===(s=this.participant)||void 0===s?void 0:s.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(n=this.meeting)||void 0===n?void 0:n.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return e(a,{key:"72dec22593ebf143608cd671c2fdf533378acae2"},e("div",{class:"left",key:null===(c=this.participant)||void 0===c?void 0:c.id},e("rtk-avatar",{key:"e71b096c53fe07f425adf1e47d9adb6ee9e7c212",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),e("p",{key:"492fe90030df26c000d2db3b0355d713e3a8ccf9",class:"name",title:v},p(v,16)," ",(null===(o=this.meeting)||void 0===o?void 0:o.self.id)===(null===(r=this.participant)||void 0===r?void 0:r.id)&&this.t("(you)"))),"sidebar"===this.view&&e("div",{key:"66ef58575c0c27d7afe631a544a44cb37c526c4c",class:"right"},g&&e("rtk-icon",{key:"adbbf629c1a4f1034127be89c09f8003d3cfe3a7",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!k&&e("rtk-icon",{key:"ef0b24e9fb292968c96cb74be8d63f14fde38a44",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(u||h({element:"rtk-participant",defaults:y})>0)&&e("div",{key:"38d52737db83f9c444211e3040cf09f5f47c1513",class:"menu"},e("span",{key:"f061992198025919d2bcf14cd1a6eee3f077beaf",id:"trigger",onClick:this.onMenuToggle},e("rtk-button",{key:"7eb863089acda3f9e20e5aedbcf55742c4b4eb64",variant:"ghost",kind:"icon",slot:"trigger"},e("rtk-icon",{key:"a7ff6d6dc9e1139f3b367ab662ad49b79e8258ff",class:"more",icon:this.iconPack.more_vertical}))),e("span",{key:"9188d1538accf4e4769f58580651e0ededa3dd75",id:"menu-list"},this.menuOpen&&e("rtk-menu-list",{key:"ef8b7d03841f4920dc7eb295456669975d06ee2f",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!k&&e("rtk-menu-item",{key:"d82737dc1227c642ce9c3880fcbe373ff6e0ec0c",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},e("rtk-icon",{key:"50e63cba1117df61588026b064046779a1e905fb",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),b&&e("rtk-menu-item",{key:"662d993d406bd00f014f41425ceb728ab4454ebd",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},e("rtk-icon",{key:"8b296bdb308c3a18a7ec13bca1047277a60b0887",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&e("rtk-menu-item",{key:"efea4ce4a51bbe2203635e0a95878d80cfe460e4",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},e("rtk-icon",{key:"cdc27b2554c89ef5c3441de551c2bdbf4e91ed72",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&e("rtk-menu-item",{key:"4f1f4e0610cb9fa7a993b824defc71af47711cb1",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},e("rtk-icon",{key:"234d891a3ea80dbda3172e8e6a89d71a44676770",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(f=this.participant)||void 0===f?void 0:f.id)!==(null===(m=this.meeting)||void 0===m?void 0:m.self.id)&&e("rtk-menu-item",{key:"90c465f0f66a792f160b6226714dd07e51c57616",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},e("rtk-icon",{key:"a5605d8b2864e27817646fc585e6598cd547ca70",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!b&&this.canKickParticipant&&e("rtk-menu-item",{key:"0e5fe7c7f6e61599293843466c5b473226348d26",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.participants.joined.get(null===(i=this.participant)||void 0===i?void 0:i.id))||void 0===s||s.kick()}},e("rtk-icon",{key:"c7d370837be33a1a14fb32f64a35da3fdceafe28",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),e("slot",{key:"ec5dea9563b71323776808d8ef1991cda87e625f"},e(d,{key:"6c423497a1c2f31a7190305913dce0019cf943f1",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;z-index:20}"}},[257,"rtk-participant",{meeting:[16],states:[16],view:[1],participant:[16],iconPack:[16],t:[16],config:[16],audioEnabled:[32],videoEnabled:[32],isPinned:[32],isHidden:[32],isOnStage:[32],canDisableParticipantAudio:[32],canDisableParticipantVideo:[32],canKickParticipant:[32],canPinParticipant:[32],canAllowParticipantOnStage:[32],menuOpen:[32]},void 0,{meeting:[{meetingChanged:0}],participant:[{participantChanged:0}]}]);function O(){"undefined"!=typeof customElements&&["rtk-participant","rtk-avatar","rtk-button","rtk-icon","rtk-menu-item","rtk-menu-list","rtk-spinner"].forEach((t=>{switch(t){case"rtk-participant":customElements.get(n(t))||customElements.define(n(t),w);break;case"rtk-avatar":customElements.get(n(t))||g();break;case"rtk-button":customElements.get(n(t))||y();break;case"rtk-icon":customElements.get(n(t))||x();break;case"rtk-menu-item":customElements.get(n(t))||P();break;case"rtk-menu-list":customElements.get(n(t))||j();break;case"rtk-spinner":customElements.get(n(t))||C()}}))}E([v()],w.prototype,"meeting",void 0),E([v()],w.prototype,"states",void 0),E([v()],w.prototype,"iconPack",void 0),E([v()],w.prototype,"t",void 0),E([v()],w.prototype,"config",void 0),O();export{w as R,O as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as s,t as o}from"./p-BBHQOrFK.js";import{S as i}from"./p-
|
|
1
|
+
import{p as t,H as e,h as s,t as o}from"./p-BBHQOrFK.js";import{S as i}from"./p-BeyS1zas.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as r,i as c}from"./p-DBekcxma.js";import"./p-Dguuxuf6.js";import{d as a}from"./p-D6vw6bT2.js";import{d as n}from"./p-BYIBbfJ8.js";import{d as m}from"./p-DHSRRtn3.js";var p=function(t,e,s,o){var i,r=arguments.length,c=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(t,e,s,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(c=(r<3?i(c):r>3?i(e,s,c):i(e,s))||c);return r>3&&c&&Object.defineProperty(e,s,c),c};const f=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.iconPack=r,this.t=c()}render(){return s("rtk-tooltip",{key:"aef7b8c5bfdd8888a7fcca9ba9ba2df7ca801da4",label:this.t("chat.send_emoji")},s("rtk-button",{key:"e7b23bcd81515fe0cae3916b4de7565547472171",variant:"ghost",kind:"icon",class:{active:this.isActive},title:this.t("chat.send_emoji")},s("rtk-icon",{key:"af7e05bb06b9fe01b47e8f11f09a957e37187f63",icon:this.iconPack.emoji_multiple})))}static get style(){return":host{}"}},[1,"rtk-emoji-picker-button",{iconPack:[16],t:[16],isActive:[4,"is-active"]}]);function b(){"undefined"!=typeof customElements&&["rtk-emoji-picker-button","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-emoji-picker-button":customElements.get(o(t))||customElements.define(o(t),f);break;case"rtk-button":customElements.get(o(t))||a();break;case"rtk-icon":customElements.get(o(t))||n();break;case"rtk-tooltip":customElements.get(o(t))||m()}}))}p([i()],f.prototype,"iconPack",void 0),p([i()],f.prototype,"t",void 0),b();export{f as R,b as d}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,h as a,d as s,t as e}from"./p-BBHQOrFK.js";import{h as r}from"./p-BWNToYSb.js";import{e as n,i as o}from"./p-
|
|
1
|
+
import{p as t,H as i,h as a,d as s,t as e}from"./p-BBHQOrFK.js";import{h as r}from"./p-BWNToYSb.js";import{e as n,i as o}from"./p-DBekcxma.js";import{S as c}from"./p-BeyS1zas.js";import{d as h}from"./p-BYIBbfJ8.js";const l=(t,i)=>{if(null==t)return;const a=Math.round(1.5),s=[...Array(3)].map(((t,s)=>{let e=s;return e>a-1&&(e=3-e-1),Math.round((e+1)/(a+1)*i)})),{width:e,height:r}=t,n=t.getContext("2d");let o=2;const c=1*e/s.length,h=c-4;n.clearRect(0,0,e,r),n.fillStyle="rgb(0,0,0,0.0)",n.fillRect(0,0,e,r);const l=getComputedStyle(t).getPropertyValue("color");n.fillStyle=l,n.strokeStyle=l,n.lineCap="round",n.lineWidth=4,n.beginPath();for(const t of s){const i=Math.min(-Math.abs(1.2*t/10*r)+r/2,r/2-2.5),a=Math.max(2*(r/2-i),5);n.moveTo(o+h/2,i),n.lineTo(o+h/2,i+a),o+=c}n.stroke()};var d=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.variant="bars",this.iconPack=n,this.t=o(),this.hideMuted=!1,this.isScreenShare=!1,this.volume=0}connectedCallback(){this.participantChanged(this.participant)}componentDidLoad(){l(this.visualizer,0)}disconnectedCallback(){var t,i,a;null===(t=this.hark)||void 0===t||t.stop(),this.audioUpdateListener&&(null===(i=this.participant)||void 0===i||i.removeListener("audioUpdate",this.audioUpdateListener)),this.screenShareUpdateListener&&(null===(a=this.participant)||void 0===a||a.removeListener("screenShareUpdate",this.screenShareUpdateListener))}participantChanged(t){null!=t&&(this.audioUpdateListener=({audioEnabled:t,audioTrack:i})=>{var a;if(null===(a=this.hark)||void 0===a||a.stop(),t&&null!=i){this.audioEnabled=!0;const t=new MediaStream;t.addTrack(i),this.calcVolume(t),l(this.visualizer,0)}else this.volume=0,this.audioEnabled=!1},this.isScreenShare?(this.screenShareUpdateListener=({screenShareEnabled:t,screenShareTracks:i})=>{this.audioUpdateListener({audioEnabled:t&&null!=i.audio,audioTrack:i.audio})},this.screenShareUpdateListener({screenShareEnabled:t.screenShareEnabled,screenShareTracks:{audio:t.screenShareTracks.audio,video:t.screenShareTracks.video}}),t.addListener("screenShareUpdate",this.screenShareUpdateListener)):(this.audioUpdateListener(t),t.addListener("audioUpdate",this.audioUpdateListener)))}calcVolume(t){this.hark=r(t,{play:!1,interval:100}),this.hark.on("volume_change",(t=>{const i=this.volume;let a=Math.round(10**(t/115)*10);a<3&&(a=0);let s=Math.round((2*i+a)/3);i!==s&&(this.volume=s,l(this.visualizer,this.volume))}))}render(){return this.hideMuted&&!this.audioEnabled?null:a(s,null,a("div",{class:{audioActivePadding:this.hideMuted&&this.audioEnabled}},a("canvas",{width:"24",height:"24",class:{bars:!0,visible:this.audioEnabled},ref:t=>this.visualizer=t,part:"canvas"}),!this.isScreenShare&&!this.audioEnabled&&a("rtk-icon",{icon:this.iconPack.mic_off,part:"mic-off-icon"})))}static get watchers(){return{participant:[{participantChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;width:-moz-fit-content;width:fit-content}.audioActivePadding{padding:var(--rtk-space-1, 4px)}canvas,rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']){transform:scale(0.9)}canvas{display:none}canvas.visible{display:block}canvas.bars{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}"}},[1,"rtk-audio-visualizer",{variant:[513],participant:[16],size:[513],iconPack:[16],t:[16],hideMuted:[4,"hide-muted"],isScreenShare:[4,"is-screen-share"],audioEnabled:[32],volume:[32]},void 0,{participant:[{participantChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-audio-visualizer","rtk-icon"].forEach((t=>{switch(t){case"rtk-audio-visualizer":customElements.get(e(t))||customElements.define(e(t),p);break;case"rtk-icon":customElements.get(e(t))||h()}}))}d([c()],p.prototype,"iconPack",void 0),d([c()],p.prototype,"t",void 0),u();export{p as R,u as d}
|