@cloudflare/realtimekit-ui 2.1.0-staging.1 → 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-ad7ALYJY.js → TextMessage-DVnzTDQZ.js} +1 -1
- package/dist/cjs/{chat-B92wFN5b.js → chat-D8i3i2bg.js} +1 -1
- package/dist/cjs/{config-Dbzo_bJK.js → config-t-J_04EF.js} +2 -2
- package/dist/cjs/{debounce-BpQRL6yu.js → debounce-CQIU-j5e.js} +1 -1
- package/dist/cjs/{index-BFnY1a32.js → index-C-oPvlkH.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{merge-D7WAq1ua.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 +9 -9
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-breakout-rooms-manager_8.cjs.entry.js +2 -2
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-message.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-clock.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-controlbar.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger.cjs.entry.js +2 -2
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
- package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +6 -6
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-header.cjs.entry.js +2 -2
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +2 -2
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/rtk-leave-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +2 -2
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-notification.cjs.entry.js +4 -4
- package/dist/cjs/rtk-notifications.cjs.entry.js +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 +2 -2
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
- package/dist/cjs/{ui-store-BSCRR2KM.js → ui-store-CLm8oxnm.js} +4 -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 +2 -0
- package/dist/components/index.js +1 -1
- package/dist/components/{p-WlTM-tEO.js → p--W18P86G.js} +1 -1
- package/dist/components/{p-CJxrr3ZY.js → p-0o65FHK8.js} +1 -1
- package/dist/components/{p-m-r-atNb.js → p-B-hQciXL.js} +1 -1
- package/dist/components/{p-C_dy1X1G.js → p-B3eMr0gA.js} +1 -1
- package/dist/components/{p-BfJzVZMy.js → p-BFuoKiMa.js} +1 -1
- package/dist/components/{p-DdOgYR3r.js → p-BG6eoJrp.js} +1 -1
- package/dist/components/{p-Ceaxb0fV.js → p-BMabll08.js} +1 -1
- package/dist/components/{p-BtTCkMjt.js → p-BOHEz75q.js} +1 -1
- package/dist/components/{p-Dh_F2aNK.js → p-BQ4E83Ra.js} +1 -1
- package/dist/components/{p-Ds1W9S1T.js → p-BTBcWMKG.js} +1 -1
- package/dist/components/{p-CpP1Oq1B.js → p-BUPrfLE2.js} +1 -1
- package/dist/components/{p-D9BcuQ_v.js → p-BWnrn7Wp.js} +1 -1
- package/dist/components/{p-Coi5x3I2.js → p-B_0SlQlL.js} +1 -1
- package/dist/components/{p-BbJzI1u1.js → p-B_Wn0VnS.js} +1 -1
- package/dist/components/{p-Dms_qKT9.js → p-BeyS1zas.js} +1 -1
- package/dist/components/{p-Bp77q4OZ.js → p-BfEeSTjF.js} +1 -1
- package/dist/components/{p-sSs7a3Ms.js → p-BlOYC_3W.js} +1 -1
- package/dist/components/{p-rSpNJvuH.js → p-BljtjP8B.js} +1 -1
- package/dist/components/{p-BfXglAT5.js → p-BmWn7Ryk.js} +1 -1
- package/dist/components/{p-BMURSJ6O.js → p-Bo5XUhsA.js} +1 -1
- package/dist/components/{p-kF6tsy3z.js → p-BrvutlhV.js} +1 -1
- package/dist/components/{p-BA1mdQNM.js → p-ByDKblxE.js} +1 -1
- package/dist/components/{p-C4LtJIM7.js → p-Bz1E3QS6.js} +1 -1
- package/dist/components/{p-B4eRurJb.js → p-C35YXAVu.js} +1 -1
- package/dist/components/{p-f4dz0Q95.js → p-C9jtzlam.js} +1 -1
- package/dist/components/{p-CaLHOQAr.js → p-CBijABOI.js} +1 -1
- package/dist/components/{p-BYeQWB0n.js → p-CDttXF5T.js} +1 -1
- package/dist/components/{p-DPhyyN8o.js → p-CEPlz2Z3.js} +1 -1
- package/dist/components/{p-DcNyG4cn.js → p-CE_ZjQoS.js} +1 -1
- package/dist/components/{p-CoqCgoLI.js → p-CIvRPwAZ.js} +1 -1
- package/dist/components/{p-D0E1dHQD.js → p-COVrbp3D.js} +1 -1
- package/dist/components/{p-BD_tAR0l.js → p-CPmk8YRb.js} +1 -1
- package/dist/components/{p-DQxMgOrh.js → p-CVZeTIGL.js} +1 -1
- package/dist/components/{p-Bz_z53UP.js → p-CWPY6JqF.js} +1 -1
- package/dist/components/{p-CTEkeDKZ.js → p-CWnxJ96q.js} +1 -1
- package/dist/components/{p-CneFaxcZ.js → p-CXeUXiXv.js} +1 -1
- package/dist/components/{p-406T43oR.js → p-CbhuOxYr.js} +1 -1
- package/dist/components/{p-CN9slvhR.js → p-Cf6I5oOr.js} +1 -1
- package/dist/components/{p-BTGG7zSl.js → p-ChFK4o3B.js} +1 -1
- package/dist/components/{p-x2mZ8BTq.js → p-Clv4ixaK.js} +1 -1
- package/dist/components/{p-P7-5QimH.js → p-CqK6MUJ1.js} +1 -1
- package/dist/components/{p-eykZRgXE.js → p-CqvKDoT_.js} +1 -1
- package/dist/components/{p-DDs1alfB.js → p-Ctu2bkh9.js} +1 -1
- package/dist/components/{p-CYfTjqOW.js → p-Cx5qgHA3.js} +1 -1
- package/dist/components/{p-BQAzaaPe.js → p-D4W6kia7.js} +1 -1
- package/dist/components/{p-CpejImHh.js → p-D8kn6Kmy.js} +1 -1
- package/dist/components/{p-BTonlp4Z.js → p-D9h2qpDP.js} +1 -1
- package/dist/components/p-DBekcxma.js +1 -0
- package/dist/components/{p-cfJ0D-dh.js → p-DC4xippU.js} +1 -1
- package/dist/components/{p-DJTzvKvV.js → p-DIHfjf2w.js} +1 -1
- package/dist/components/{p-1tnmJmZg.js → p-DJuk-FJe.js} +1 -1
- package/dist/components/p-DKItPEgV.js +1 -0
- package/dist/components/{p-COiw7loB.js → p-DWXhSwkc.js} +1 -1
- package/dist/components/{p-BJVF89z6.js → p-DXd0b0HH.js} +1 -1
- package/dist/components/{p-DdehD3Ic.js → p-DXj7Va5n.js} +1 -1
- package/dist/components/p-DYyhgQQD.js +1 -0
- package/dist/components/{p-BHJCAi-B.js → p-DbEL8KpE.js} +1 -1
- package/dist/components/{p-CyCI1p7C.js → p-Ddz1AfPy.js} +1 -1
- package/dist/components/{p-R38kp86h.js → p-DgwW5NHh.js} +1 -1
- package/dist/components/{p-CULWS8Fb.js → p-Dl1XVzON.js} +1 -1
- package/dist/components/{p-CYbyL1xB.js → p-DqiWqbuZ.js} +1 -1
- package/dist/components/{p-Co0j6YHk.js → p-Dr5J4rpX.js} +1 -1
- package/dist/components/{p-IDFkzrnD.js → p-H3_oZZcz.js} +1 -1
- package/dist/components/{p-Bx7LRRAp.js → p-IKuOHaBo.js} +1 -1
- package/dist/components/{p-CMXxXUg6.js → p-LSU6QPd1.js} +1 -1
- package/dist/components/{p-mHK3bMm5.js → p-OFImZpye.js} +1 -1
- package/dist/components/{p-BQutCq9K.js → p-OWmBzZJ6.js} +1 -1
- package/dist/components/{p-gTKpGq7q.js → p-Q3JXX_t4.js} +1 -1
- package/dist/components/{p-Du2bvW5k.js → p-SdekzV3F.js} +1 -1
- package/dist/components/{p-BUHdmTBZ.js → p-cYn1aFYj.js} +1 -1
- package/dist/components/{p-DsYErKjI.js → p-eqrDoLFs.js} +1 -1
- package/dist/components/{p-ercb3gkA.js → p-eyOPXk0e.js} +1 -1
- package/dist/components/{p-BGyhd1F2.js → p-fkMAgm6N.js} +1 -1
- package/dist/components/{p-yItboz3c.js → p-ihohqxEx.js} +1 -1
- package/dist/components/{p-qGbTl8DJ.js → p-lBkv8Hj9.js} +1 -1
- package/dist/components/{p-C1bmT06N.js → p-p1-4W0FG.js} +1 -1
- package/dist/components/{p-C_AHNvJ8.js → p-wKTUzoCV.js} +1 -1
- package/dist/components/{p-Bp6LuyCH.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 +1642 -634
- package/dist/docs/docs-vscode.json +6 -0
- package/dist/esm/{TextMessage-COdZoQcR.js → TextMessage-B_wsQIl_.js} +1 -1
- package/dist/esm/{chat-DkSooP-6.js → chat-Dcph1bVZ.js} +1 -1
- package/dist/esm/{config-DREWnlMs.js → config-BFnpcSIs.js} +2 -2
- package/dist/esm/{debounce-B7bFOuUM.js → debounce-DZ4DNGsg.js} +1 -1
- package/dist/esm/{index-Csk0uIpu.js → index-UHoULP2p.js} +1 -1
- package/dist/esm/index.js +6 -6
- package/dist/esm/loader.js +86 -37
- package/dist/esm/{merge-CCTLyhAg.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 +9 -9
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +2 -2
- package/dist/esm/rtk-breakout-rooms-manager_8.entry.js +2 -2
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
- package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
- package/dist/esm/rtk-camera-toggle.entry.js +2 -2
- package/dist/esm/rtk-caption-toggle.entry.js +2 -2
- package/dist/esm/rtk-chat-composer-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-message.entry.js +2 -2
- package/dist/esm/rtk-chat-messages-ui.entry.js +2 -2
- package/dist/esm/rtk-chat-search-results.entry.js +2 -2
- package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-toggle.entry.js +2 -2
- package/dist/esm/rtk-clock.entry.js +2 -2
- package/dist/esm/rtk-controlbar-button.entry.js +2 -2
- package/dist/esm/rtk-controlbar.entry.js +2 -2
- package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
- package/dist/esm/rtk-debugger-toggle.entry.js +2 -2
- package/dist/esm/rtk-debugger.entry.js +2 -2
- package/dist/esm/rtk-dialog-manager.entry.js +2 -2
- package/dist/esm/rtk-dialog.entry.js +2 -2
- package/dist/esm/rtk-ended-screen.entry.js +2 -2
- package/dist/esm/rtk-file-dropzone.entry.js +2 -2
- package/dist/esm/rtk-file-message_3.entry.js +6 -6
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +2 -2
- package/dist/esm/rtk-header.entry.js +2 -2
- package/dist/esm/rtk-idle-screen.entry.js +2 -2
- package/dist/esm/rtk-image-viewer.entry.js +2 -2
- package/dist/esm/rtk-information-tooltip.entry.js +2 -2
- package/dist/esm/rtk-leave-button.entry.js +2 -2
- package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
- package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
- package/dist/esm/rtk-logo.entry.js +2 -2
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-mic-toggle.entry.js +2 -2
- package/dist/esm/rtk-mixed-grid.entry.js +2 -2
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-mute-all-button.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +2 -2
- package/dist/esm/rtk-network-indicator.entry.js +2 -2
- package/dist/esm/rtk-notification.entry.js +4 -4
- package/dist/esm/rtk-notifications.entry.js +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 +2 -2
- package/dist/esm/rtk-waiting-screen.entry.js +3 -3
- package/dist/esm/{ui-store-B5zzvHhD.js → ui-store-g2F04f-Y.js} +4 -0
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-ab6c3f2e.entry.js → p-00415ca3.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c7e53604.entry.js → p-04b65763.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a197208b.entry.js → p-0ac14bbb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f3f00b7e.entry.js → p-10916df4.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-188638b5.entry.js → p-110e2f35.entry.js} +1 -1
- package/dist/realtimekit-ui/p-13f1e992.entry.js +1 -0
- package/dist/realtimekit-ui/p-1ca40d29.entry.js +1 -0
- package/dist/realtimekit-ui/{p-3952eda2.entry.js → p-1e772323.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0d52804f.entry.js → p-1fcb2e8c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-103ef0a8.entry.js → p-23a892b6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-43379fb0.entry.js → p-245d86bb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-73e34499.entry.js → p-24cda5b7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f1c25989.entry.js → p-272b6f6b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e7dec068.entry.js → p-30306508.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d705c033.entry.js → p-35b6a8d2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1aff1ac5.entry.js → p-361bf36c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-546d0b7a.entry.js → p-3ca75eb5.entry.js} +1 -1
- package/dist/realtimekit-ui/p-41705d10.entry.js +1 -0
- package/dist/realtimekit-ui/{p-2d48d192.entry.js → p-423143a0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-50ff8297.entry.js → p-4330b190.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-47589362.entry.js → p-43af899a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-42245196.entry.js → p-43cf80c7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0aa328b2.entry.js → p-49c8147f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-829516be.entry.js → p-4c9c4b30.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-606bd586.entry.js → p-4c9fac09.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f1ad312a.entry.js → p-4d3029ed.entry.js} +1 -1
- package/dist/realtimekit-ui/p-50abfb30.entry.js +1 -0
- package/dist/realtimekit-ui/{p-3729eae9.entry.js → p-59039323.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-252c3010.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-1abddbc7.entry.js → p-61459d9d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-334a0a97.entry.js → p-629e3543.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d8fff726.entry.js → p-63f70fa8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6cfb1d51.entry.js → p-65829152.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d364b98b.entry.js → p-6aecb59f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-04ea0bd4.entry.js → p-6d47bb46.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1e206fd2.entry.js → p-6e8e0782.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-bcf3e78a.entry.js → p-6ed10262.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-34bc7b35.entry.js → p-6f0c608b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1478801e.entry.js → p-72603fd8.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-adb134cf.entry.js → p-728fe692.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-867c65f8.entry.js → p-72afbc20.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4be90451.entry.js → p-776c9d43.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-73835c98.entry.js → p-79ba0219.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-af48b3de.entry.js → p-7a18aaf2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4dff766e.entry.js → p-7bfd8296.entry.js} +1 -1
- package/dist/realtimekit-ui/p-7cb6abe7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-4258eb53.entry.js → p-7d04d872.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2b1a514f.entry.js → p-7e2f41d7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2210cd4c.entry.js → p-7f553365.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7c355952.entry.js → p-7f5c287f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-153f04c0.entry.js → p-9251b8bc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5021a0b2.entry.js → p-9291666b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c5171e8c.entry.js → p-97e1efce.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-CLkcbaSv.js → p-B-xBEnhz.js} +1 -1
- package/dist/realtimekit-ui/p-BWYsSVnv.js +1 -0
- package/dist/realtimekit-ui/{p-9Kg_s9HA.js → p-C2mieCrY.js} +1 -1
- package/dist/realtimekit-ui/{p-DzPhNWCO.js → p-CM74mbyi.js} +1 -1
- package/dist/realtimekit-ui/{p-CVyP1Eab.js → p-CVHhOJXC.js} +1 -1
- package/dist/realtimekit-ui/{p-C6MbLp7O.js → p-DHdB7rAI.js} +1 -1
- package/dist/realtimekit-ui/{p-CBTF89OQ.js → p-J7ILCEoQ.js} +1 -1
- package/dist/realtimekit-ui/{p-736ae325.entry.js → p-a5f80b76.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2fe459da.entry.js → p-b9ad49be.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2ab0d5e4.entry.js → p-c18ccddc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c1b043d2.entry.js → p-c1b7e9ff.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-88b10b06.entry.js → p-c50ca0c0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a6be8453.entry.js → p-c5f6097a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ea3a0789.entry.js → p-c734f370.entry.js} +1 -1
- package/dist/realtimekit-ui/p-cedf36dc.entry.js +1 -0
- package/dist/realtimekit-ui/{p-b81546a9.entry.js → p-cff327e9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3be97778.entry.js → p-d3912c86.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ffb7e862.entry.js → p-d5bc0a67.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f3837eb2.entry.js → p-d6d0af86.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4e8c01f8.entry.js → p-e0591bc5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5ffe17ff.entry.js → p-e0d48f00.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-29c4ac3e.entry.js → p-e21f0412.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2ebc089a.entry.js → p-e451d1d5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3fa63103.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-291d186e.entry.js → p-ed1385e6.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f76043d2.entry.js +1 -0
- package/dist/realtimekit-ui/{p-2583d674.entry.js → p-f7667d39.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-dbd3c9f8.entry.js → p-fa1aad75.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b130cba4.entry.js → p-fc2d95fc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0bfd6466.entry.js → p-fc7ce3eb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cb512b27.entry.js → p-fd046233.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ab72d9ce.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 +2 -0
- package/package.json +1 -1
- package/dist/components/p-CMhZTWqm.js +0 -1
- package/dist/components/p-DCNf_hw3.js +0 -1
- package/dist/components/p-DNcV8eFN.js +0 -1
- package/dist/realtimekit-ui/p-0d897af2.entry.js +0 -1
- package/dist/realtimekit-ui/p-1cbad1b9.entry.js +0 -1
- package/dist/realtimekit-ui/p-305804ef.entry.js +0 -1
- package/dist/realtimekit-ui/p-3959a07f.entry.js +0 -1
- package/dist/realtimekit-ui/p-498e967d.entry.js +0 -1
- package/dist/realtimekit-ui/p-72f872da.entry.js +0 -1
- package/dist/realtimekit-ui/p-8c997ed7.entry.js +0 -1
- package/dist/realtimekit-ui/p-BV8JkayY.js +0 -1
- package/dist/realtimekit-ui/p-ac30f00d.entry.js +0 -1
- package/dist/realtimekit-ui/p-c92c6475.entry.js +0 -1
- package/dist/realtimekit-ui/p-ce769155.entry.js +0 -1
- package/dist/realtimekit-ui/p-ed41e0be.entry.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as a,w as i,h as r,d as s,t as o}from"./p-BBHQOrFK.js";import{e as n,i as c}from"./p-DNcV8eFN.js";import{i as d,r as l,e as p,a as h}from"./p-GSFejkz7.js";import{S as f}from"./p-Dms_qKT9.js";import{d as g}from"./p-D6vw6bT2.js";import{d as k}from"./p-BYIBbfJ8.js";import{d as m}from"./p-DHSRRtn3.js";var v=function(t,e,a,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,a,o):r(e,a))||o);return s>3&&o&&Object.defineProperty(e,a,o),o};const b=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=a(this,"rtkStateUpdate",7),this.play=a(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=d()},this.participantScreenshareUpdate=t=>{t.id===this.participant.id&&this.screenShareListener(t)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=n,this.t=c(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isFullScreen=!1,this.toggleFullScreen=()=>{this.isFullScreen?(p(),this.isFullScreen=!1):(l(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:t}=this.meeting;this.participant.id===t.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t){if(null!=t&&this.meeting){const{self:e}=this.meeting;this.screenShareListener=({screenShareEnabled:t,screenShareTracks:e})=>{const a=t&&null!=e.video;if(i((()=>{this.screenShareEnabled=a})),a){const t=new MediaStream;t.addTrack(e.video),null!=this.videoEl&&(this.videoEl.srcObject=t,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(t),t.id===e.id?t.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var t,e;const a=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(e=this.meeting)||void 0===e?void 0:e.self.id),i=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),o=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return r(s,{key:"10646f5ea7b7b9bc162c2a98af07928a0f68f605",class:{isSelf:a}},r("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},r("video",{key:"13e87cfee55fdd6d45a72ec55792fbbfefdc5206",ref:t=>this.videoEl=t,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:"screen-share-video-"+this.participant.id})),r("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!a&&h()&&r("rtk-tooltip",{key:"97ba6869139126f0114aee3239999bfe1172a798",label:i},r("rtk-button",{key:"0769449ffcba69117d10a7346e4881c207e7ac6f",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:i},r("rtk-icon",{key:"508cf201f0b2e6da061e35dff4d3899f1da0749a",icon:o,"aria-hidden":!0,tabIndex:-1})))),a&&r("div",{id:"self-message",key:"self-message"},r("h3",{key:"6f055da4722c11893e3f8640bddad7f6844838da"},this.t("screenshare.shared")),r("div",{key:"96fa5f8b47cef2a2a58352e4275c3c325f22a465",class:"actions"},null!=this.meeting&&r("rtk-button",{key:"144c3908476ac18d1ffcc1282a46a4d7fad698c2",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},r("rtk-icon",{key:"7a6f710ccb916ca78edbb5daa9b6bcf3547ed54e",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),r("rtk-button",{key:"1667e04e5a22c3edfdab9300ffca06df7eba4948",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},r("rtk-icon",{key:"6140671792e626d5de181861ee4c7aef1dd11e3e",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),r("slot",{key:"beeecb6fe5a1f46d259a86e698c31fb477949bf3"}))}get host(){return this}static get watchers(){return{participant:[{participantChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}"}},[257,"rtk-screenshare-view",{hideFullScreenButton:[4,"hide-full-screen-button"],nameTagPosition:[513,"name-tag-position"],participant:[16],meeting:[16],variant:[513],size:[513],iconPack:[16],t:[16],videoExpanded:[32],screenShareEnabled:[32],isFullScreen:[32],remoteControlInfo:[32]},void 0,{participant:[{participantChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-screenshare-view","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screenshare-view":customElements.get(o(t))||customElements.define(o(t),b);break;case"rtk-button":customElements.get(o(t))||g();break;case"rtk-icon":customElements.get(o(t))||k();break;case"rtk-tooltip":customElements.get(o(t))||m()}}))}v([f()],b.prototype,"meeting",void 0),v([f()],b.prototype,"iconPack",void 0),v([f()],b.prototype,"t",void 0),u();const x=b,w=u;export{x as RtkScreenshareView,w as defineCustomElement}
|
|
1
|
+
import{p as t,H as e,c as a,w as i,h as r,d as s,t as o}from"./p-BBHQOrFK.js";import{e as n,i as c}from"./p-DBekcxma.js";import{i as d,r as l,e as p,a as h}from"./p-GSFejkz7.js";import{S as f}from"./p-BeyS1zas.js";import{d as k}from"./p-D6vw6bT2.js";import{d as g}from"./p-BYIBbfJ8.js";import{d as b}from"./p-DHSRRtn3.js";var v=function(t,e,a,i){var r,s=arguments.length,o=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(s<3?r(o):s>3?r(e,a,o):r(e,a))||o);return s>3&&o&&Object.defineProperty(e,a,o),o};const m=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=a(this,"rtkStateUpdate",7),this.play=a(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=d()},this.participantScreenshareUpdate=t=>{t.id===this.participant.id&&this.screenShareListener(t)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=n,this.t=c(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isSwitchingScreen=!1,this.isFullScreen=!1,this.shareDifferentScreen=async()=>{const t=this.meeting;if(null!=t&&!this.isSwitchingScreen){this.isSwitchingScreen=!0;try{await t.self.enableScreenShare()}catch(e){t.__internals__.logger.error("rtkScreenshareView::shareDifferentScreen",{error:e})}finally{this.isSwitchingScreen=!1}}},this.toggleFullScreen=()=>{this.isFullScreen?(p(),this.isFullScreen=!1):(l(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:t}=this.meeting;this.participant.id===t.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(t){if(null!=t&&this.meeting){const{self:e}=this.meeting;this.screenShareListener=({screenShareEnabled:t,screenShareTracks:e})=>{const a=t&&null!=e.video;if(i((()=>{this.screenShareEnabled=a})),a){const t=new MediaStream;t.addTrack(e.video),null!=this.videoEl&&(this.videoEl.srcObject=t,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(t),t.id===e.id?t.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var t,e,a;const i=(null===(t=this.participant)||void 0===t?void 0:t.id)===(null===(e=this.meeting)||void 0===e?void 0:e.self.id),o=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),n=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return r(s,{key:"0de66f829d0426af746b72561e7470c50c703060",class:{isSelf:i}},r("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},r("video",{key:"2e56da582533ee6a8286483fa4495ff9a88453a0",ref:t=>this.videoEl=t,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:"screen-share-video-"+this.participant.id})),r("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!i&&h()&&r("rtk-tooltip",{key:"7cd30b509e71685bb28615fd0eeb289764bc6f4b",label:o},r("rtk-button",{key:"0610dd55ad5a29cdbb77c61ed024253a70c66020",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:o},r("rtk-icon",{key:"1ea3a04938cb5836afcf171fa881916f1a63da79",icon:n,"aria-hidden":!0,tabIndex:-1})))),i&&r("div",{id:"self-message",key:"self-message"},r("h3",{key:"4758cad86ab2453cbfbf9276e9db8f4f45889e4a"},this.t("screenshare.shared")),r("div",{key:"136f80c0f74bbc9d860dfc9a5f2f04531dc9fe80",class:"actions"},null!=this.meeting&&r("rtk-button",{key:"2588174e0054805565c0ae9d3d7001d812c25d6c",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},r("rtk-icon",{key:"10de1c2c538cc069d5ea9c4a8e89699cdb06e970",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),null!=this.meeting&&r("rtk-button",{key:"916802524a950adadd39eac97660d05034840a8b",variant:"secondary",disabled:this.isSwitchingScreen,onClick:this.shareDifferentScreen},r("rtk-icon",{key:"5142a5fe580a7c900d7435e5c638bef0533a289b",icon:null!==(a=this.iconPack.share_screen_different)&&void 0!==a?a:this.iconPack.share_screen_start,slot:"start"}),this.t("screenshare.share_different_screen")),r("rtk-button",{key:"6b024ca8b2b537b84862f96f35ab1e2a9832c974",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},r("rtk-icon",{key:"aef5ba226ba681c6ec6d11f0ac78c03329a88f27",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),r("slot",{key:"f21ad85d1847864f268d1fa33235467f14de2420"}))}get host(){return this}static get watchers(){return{participant:[{participantChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));container-type:inline-size;container-name:screentile}::slotted(rtk-name-tag){position:absolute;left:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px);opacity:0.8}#video-container{position:absolute;display:block;height:100%;width:100%}#video-container .fit-in-container{-o-object-fit:fill;object-fit:fill}video{height:100%;width:100%;-o-object-fit:contain;object-fit:contain}:host([variant='gradient']) ::slotted(rtk-audio-visualizer){position:absolute;top:var(--rtk-space-2, 8px);right:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px)}:host([variant='gradient']) ::slotted(rtk-name-tag){bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);display:flex;width:100%;align-items:center;justify-content:center;text-align:center;background-color:transparent;background-image:linear-gradient(to top, var(--tw-gradient-stops));--tw-gradient-from:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-gradient-to:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);--tw-gradient-stops:var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to:transparent}:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer){height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}video.visible{animation:video-fadein 0.4s ease}#controls{display:none;position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}:host(:hover) #controls,:host(:active) #controls,:host(:focus-visible) #controls{display:flex}#full-screen-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}h3{margin-top:var(--rtk-space-10, 40px);margin-bottom:var(--rtk-space-6, 24px);text-align:center;font-size:20px;font-weight:500}:host([size='sm']) h3{font-size:16px}#self-message{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.isSelf) #self-view{flex:1 1 0%}:host(.isSelf) #video-container{position:static;aspect-ratio:auto;height:auto;width:50%;max-width:var(--rtk-space-96, 384px);border-radius:var(--rtk-border-radius-md, 8px);transition:0.6s ease}:host(.isSelf) #video-container.expand{width:60%;max-width:100%}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:var(--rtk-space-2, 8px)}:host([size='sm'].isSelf) #video-container,:host([size='md'].isSelf) #video-container,:host([size='sm'].isSelf) #expand-btn,:host([size='md'].isSelf) #expand-btn{display:none}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.remote-control{z-index:10;height:100%;max-height:100%;flex:0 1 auto}#remote-control-self{position:absolute;top:var(--rtk-space-0, 0px);left:50%;z-index:10;width:-moz-max-content;width:max-content;max-width:100%;box-sizing:border-box;display:flex;height:var(--rtk-space-8, 32px);align-items:center;overflow:hidden;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));transform:translateX(-50%)}#remote-control-self p{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}#remote-control-self rtk-button{height:100%;border-radius:var(--rtk-border-radius-none, 0);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));font-size:12px}:host([size='sm']) #remote-control-self{height:auto;flex-direction:column}:host([size='sm']) #remote-control-self rtk-button{width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px)}:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag){left:auto;right:var(--rtk-space-3, 12px)}:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag){left:auto;right:auto}:host([name-tag-position='top-left']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);bottom:auto}:host([name-tag-position='top-right']) ::slotted(rtk-name-tag){top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);left:auto;bottom:auto}:host([name-tag-position='top-center']) ::slotted(rtk-name-tag){left:auto;right:auto;bottom:auto;top:var(--rtk-space-3, 12px)}@keyframes video-fadein{0%{opacity:0;transform:scale(1.4) translateY(20px)}100%{opacity:1;transform:scale(1) translateY(0)}}::slotted(rtk-network-indicator){position:absolute;right:var(--rtk-space-3, 12px);bottom:var(--rtk-space-3, 12px)}@media only screen and (max-height: 480px) and (orientation: landscape){:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),:host([size='sm'][variant='solid']) rtk-name-tag{left:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);border-radius:var(--rtk-border-radius-none, 0);transform-origin:0% 110%;transform:scale(0.6)}}@container screentile (max-width: 400px){::slotted(rtk-name-tag){transform-origin:0 130%;transform:scale(0.7)}}"}},[257,"rtk-screenshare-view",{hideFullScreenButton:[4,"hide-full-screen-button"],nameTagPosition:[513,"name-tag-position"],participant:[16],meeting:[16],variant:[513],size:[513],iconPack:[16],t:[16],videoExpanded:[32],screenShareEnabled:[32],isSwitchingScreen:[32],isFullScreen:[32],remoteControlInfo:[32]},void 0,{participant:[{participantChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-screenshare-view","rtk-button","rtk-icon","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-screenshare-view":customElements.get(o(t))||customElements.define(o(t),m);break;case"rtk-button":customElements.get(o(t))||k();break;case"rtk-icon":customElements.get(o(t))||g();break;case"rtk-tooltip":customElements.get(o(t))||b()}}))}v([f()],m.prototype,"meeting",void 0),v([f()],m.prototype,"iconPack",void 0),v([f()],m.prototype,"t",void 0),u();const x=m,w=u;export{x as RtkScreenshareView,w as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as r}from"./p-BrvutlhV.js";const s=o,t=r;export{s as RtkSettingsAudio,t as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as
|
|
1
|
+
import{p as t,H as s,c as e,h as o,d as i,t as n}from"./p-BBHQOrFK.js";import{e as r,i as a}from"./p-DBekcxma.js";import{S as c}from"./p-BeyS1zas.js";import{d as f}from"./p-Ddz1AfPy.js";import{d as l}from"./p-BYIBbfJ8.js";import{d as m}from"./p-D8kn6Kmy.js";var p=function(t,s,e,o){var i,n=arguments.length,r=n<3?s:null===o?o=Object.getOwnPropertyDescriptor(s,e):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,s,e,o);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(r=(n<3?i(r):n>3?i(s,e,r):i(s,e))||r);return n>3&&r&&Object.defineProperty(s,e,r),r};const k=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=r,this.t=a()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return o(i,{key:"ad7c5414e325d5ae40fd9d9c60d2cfe3a087205f",title:t},o("rtk-controlbar-button",{key:"4fd29a108fd3eff57cc3ab9069284dd72b703c71",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}"}},[1,"rtk-settings-toggle",{variant:[513],states:[16],size:[513],iconPack:[16],t:[16]}]);function d(){"undefined"!=typeof customElements&&["rtk-settings-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner"].forEach((t=>{switch(t){case"rtk-settings-toggle":customElements.get(n(t))||customElements.define(n(t),k);break;case"rtk-controlbar-button":customElements.get(n(t))||f();break;case"rtk-icon":customElements.get(n(t))||l();break;case"rtk-spinner":customElements.get(n(t))||m()}}))}p([c()],k.prototype,"states",void 0),p([c()],k.prototype,"iconPack",void 0),p([c()],k.prototype,"t",void 0),d();const u=k,b=d;export{u as RtkSettingsToggle,b as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as p,d as o}from"./p-DC4xippU.js";const s=p,r=o;export{s as RtkSettingsVideo,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as r,c as o,h as s,d as a,t as i}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-DNcV8eFN.js";import{S as c}from"./p-Dms_qKT9.js";import{d}from"./p-DDs1alfB.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-rSpNJvuH.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-BD_tAR0l.js";import{d as k}from"./p-CJxrr3ZY.js";import{d as u}from"./p-kF6tsy3z.js";import{d as g}from"./p-cfJ0D-dh.js";import{d as m}from"./p-BYeQWB0n.js";import{d as v}from"./p-BA1mdQNM.js";var w=function(t,r,o,s){var a,i=arguments.length,e=i<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(e=(i<3?a(e):i>3?a(r,o,e):a(r,o))||e);return i>3&&e&&Object.defineProperty(r,o,e),e};const f=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(a,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},t))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function x(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(i(t))||customElements.define(i(t),f);break;case"rtk-audio-visualizer":customElements.get(i(t))||d();break;case"rtk-button":customElements.get(i(t))||l();break;case"rtk-camera-selector":customElements.get(i(t))||p();break;case"rtk-icon":customElements.get(i(t))||b();break;case"rtk-microphone-selector":customElements.get(i(t))||h();break;case"rtk-participant-tile":customElements.get(i(t))||k();break;case"rtk-settings-audio":customElements.get(i(t))||u();break;case"rtk-settings-video":customElements.get(i(t))||g();break;case"rtk-speaker-selector":customElements.get(i(t))||m();break;case"rtk-switch":customElements.get(i(t))||v()}}))}w([c()],f.prototype,"meeting",void 0),w([c()],f.prototype,"states",void 0),w([c()],f.prototype,"iconPack",void 0),w([c()],f.prototype,"t",void 0),x();const y=f,j=x;export{y as RtkSettings,j as defineCustomElement}
|
|
1
|
+
import{p as t,H as r,c as o,h as s,d as a,t as i}from"./p-BBHQOrFK.js";import{e,i as n}from"./p-DBekcxma.js";import{S as c}from"./p-BeyS1zas.js";import{d}from"./p-Ctu2bkh9.js";import{d as l}from"./p-D6vw6bT2.js";import{d as p}from"./p-BljtjP8B.js";import{d as b}from"./p-BYIBbfJ8.js";import{d as h}from"./p-CPmk8YRb.js";import{d as k}from"./p-0o65FHK8.js";import{d as u}from"./p-BrvutlhV.js";import{d as g}from"./p-DC4xippU.js";import{d as m}from"./p-CDttXF5T.js";import{d as v}from"./p-ByDKblxE.js";var w=function(t,r,o,s){var a,i=arguments.length,e=i<3?r:null===s?s=Object.getOwnPropertyDescriptor(r,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,s);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(e=(i<3?a(e):i>3?a(r,o,e):a(r,o))||e);return i>3&&e&&Object.defineProperty(r,o,e),e};const x=t(class extends r{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=o(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=e,this.t=n(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return s(a,null,s("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},s("header",null,s("h2",null,this.t("settings"))),s("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&s("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&s("rtk-icon",{icon:this.iconPack.chevron_right}))),s("button",{type:"none",title:"Your network condition is "+this.networkStatus},this.t("connection"),s("div",{class:"right"},s("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),s("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&s("header",null,s("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},s("rtk-icon",{icon:this.iconPack.chevron_left})),s("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&s("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&s("rtk-settings-video",Object.assign({},t))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60))) var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar{height:var(--rtk-space-1\\.5, 6px);width:var(--rtk-space-1\\.5, 6px);border-radius:9999px;background-color:var(--rtk-scrollbar-background, transparent)}.scrollbar::-webkit-scrollbar-thumb{border-radius:9999px;background-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))}:host{position:relative;display:flex;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}"}},[1,"rtk-settings",{meeting:[16],states:[16],size:[513],iconPack:[16],t:[16],activeTab:[32],isMobileMainVisible:[32],networkStatus:[32],canProduceVideo:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function f(){"undefined"!=typeof customElements&&["rtk-settings","rtk-audio-visualizer","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-participant-tile","rtk-settings-audio","rtk-settings-video","rtk-speaker-selector","rtk-switch"].forEach((t=>{switch(t){case"rtk-settings":customElements.get(i(t))||customElements.define(i(t),x);break;case"rtk-audio-visualizer":customElements.get(i(t))||d();break;case"rtk-button":customElements.get(i(t))||l();break;case"rtk-camera-selector":customElements.get(i(t))||p();break;case"rtk-icon":customElements.get(i(t))||b();break;case"rtk-microphone-selector":customElements.get(i(t))||h();break;case"rtk-participant-tile":customElements.get(i(t))||k();break;case"rtk-settings-audio":customElements.get(i(t))||u();break;case"rtk-settings-video":customElements.get(i(t))||g();break;case"rtk-speaker-selector":customElements.get(i(t))||m();break;case"rtk-switch":customElements.get(i(t))||v()}}))}w([c()],x.prototype,"meeting",void 0),w([c()],x.prototype,"states",void 0),w([c()],x.prototype,"iconPack",void 0),w([c()],x.prototype,"t",void 0),f();const y=x,j=f;export{y as RtkSettings,j as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as i,h as r,F as o,d as s,t as a}from"./p-BBHQOrFK.js";import{s as n}from"./p-CJsXePY3.js";import{c,e as l,i as d}from"./p-DNcV8eFN.js";import{R as p}from"./p-CBJjerDR.js";import{g as h}from"./p-Dguuxuf6.js";import{S as m}from"./p-Dms_qKT9.js";import{g as k}from"./p-vBfDtD_u.js";import{d as v}from"./p-D6vw6bT2.js";import{d as u}from"./p-rSpNJvuH.js";import{d as g}from"./p-BYIBbfJ8.js";import{d as b}from"./p-BD_tAR0l.js";import{d as f}from"./p-BYeQWB0n.js";import{d as x}from"./p-CpejImHh.js";var w=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const y=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=c(),this.iconPack=l,this.t=d(),this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"connected"===t&&(this.joinError=void 0,this.joinErrorCode=void 0),"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,e,i;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){if("connected"!==this.connectionState)return void(this.connectionState&&(this.joinError=this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")));this.isJoining=!0,this.joinError=void 0,this.joinErrorCode=void 0,null===(e=this.meeting)||void 0===e||e.self.setName(this.displayName),h.setItem("rtk-display-name",this.displayName);try{await(null===(i=this.meeting)||void 0===i?void 0:i.join())}catch(t){this.isJoining=!1;const{message:e,code:i}=k(this.t,t);this.joinError=e,this.joinErrorCode=i}}}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting.meta.removeListener("socketConnectionUpdate",this.socketStateUpdate)}componentDidLoad(){var t;null===(t=this.inputEl)||void 0===t||t.focus()}meetingChanged(t){var e,i,r;t&&(this.connectionState=null===(e=t.meta.socketState)||void 0===e?void 0:e.state,this.canEditName=null===(i=t.self.permissions.canEditDisplayName)||void 0===i||i,this.displayName=(null===(r=t.self.name)||void 0===r?void 0:r.trim())||(this.canEditName?"":"Participant"),t.meta.addListener("socketConnectionUpdate",this.socketStateUpdate))}render(){var t,e,i,a,c,l;if(!this.meeting)return;const d=!!this.connectionState&&"connected"!==this.connectionState&&!this.joinError,h=this.joinError?this.joinError:this.t("failed"===this.connectionState?"network.lost_extended":"network.lost"),m=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,k={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},v=null===(a=null===(i=null===(e=this.meeting)||void 0===e?void 0:e.meta)||void 0===i?void 0:i.meetingTitle)||void 0===a?void 0:a.trim();return r(s,null,r("div",{class:"container"},r("div",{class:"container-tile"},r(p,{element:"rtk-participant-tile",defaults:k,props:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md",isPreview:!0},childProps:{participant:null===(l=this.meeting)||void 0===l?void 0:l.self,size:"md"},deepProps:!0}),r("div",{class:"media-selectors"},r("rtk-microphone-selector",Object.assign({},k,{variant:"inline"})),r("rtk-camera-selector",Object.assign({},k,{variant:"inline"})),r("rtk-speaker-selector",Object.assign({},k,{variant:"inline"})))),r("div",{class:"metadata"},v&&""!==v&&r("div",{class:"meeting-title"},v),this.canEditName?r(o,null,r("div",{class:"join-as"},this.t("setup_screen.join_in_as")),r("input",{placeholder:this.t("setup_screen.your_name"),value:this.displayName,spellcheck:!1,autoFocus:!0,ref:t=>{this.inputEl=t},onInput:t=>{this.displayName=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.join()}})):r("div",{class:"uneditable-name"},r("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",r("div",{class:"name"},n(this.displayName,20))),r("rtk-button",{size:"lg",kind:"wide",onClick:this.join,disabled:m},this.isJoining?r("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),(this.joinError||d)&&r("div",{class:"no-network-badge",role:"alert"},r("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected}),h),this.meeting&&this.joinError&&r("a",{class:"troubleshoot-link",href:"https://test.realtime.cloudflare.com?authToken="+this.meeting.__internals__.authToken,target:"_blank",rel:"noopener noreferrer"},this.t("network.troubleshoot")),this.joinErrorCode&&r("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",this.joinErrorCode))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;padding:var(--rtk-space-4, 16px);height:100%;min-height:100%;width:100%;display:flex;place-items:center;justify-content:center;--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-700, 44 44 44))}.container{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-evenly;gap:var(--rtk-space-4, 16px)}.container-tile{display:flex;height:100%;width:100%;max-width:584px;flex-direction:column;gap:var(--rtk-space-2, 8px)}.metadata{display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;align-items:center;text-align:center}.meeting-title{margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:24px;font-weight:500}.join-as{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:16px;letter-spacing:-0.025em;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.uneditable-name{margin-bottom:var(--rtk-space-6, 24px)}.uneditable-name .text,.uneditable-name .name{display:inline-block}.uneditable-name .name{font-size:16px;font-weight:500}input{margin-bottom:var(--rtk-space-6, 24px);display:block;height:var(--rtk-space-10, 40px);width:100%;max-width:var(--rtk-space-80, 320px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));box-sizing:border-box;font-size:16px;outline:2px solid transparent;outline-offset:2px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}rtk-spinner{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--icon-size:var(--rtk-space-8, 32px)}:host([size='sm']) .container,:host([size='md']) .container{height:100%;flex-direction:column;justify-content:space-evenly}:host([size='sm']) .container-tile,:host([size='md']) .container-tile{height:-moz-min-content;height:min-content;flex-direction:column;justify-content:center}rtk-participant-tile{height:auto;width:100%;max-width:584px}.media-selectors{display:flex;flex-direction:column;justify-content:space-between}.media-selectors .row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr))}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}.troubleshoot-link{margin-top:var(--rtk-space-1, 4px);font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:2px}.troubleshoot-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.error-code{margin-top:var(--rtk-space-1, 4px);font-size:10px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}"}},[1,"rtk-setup-screen",{meeting:[16],states:[16],size:[513],config:[16],iconPack:[16],t:[16],displayName:[32],isJoining:[32],joinError:[32],joinErrorCode:[32],canEditName:[32],canProduceAudio:[32],connectionState:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function j(){"undefined"!=typeof customElements&&["rtk-setup-screen","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-speaker-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-setup-screen":customElements.get(a(t))||customElements.define(a(t),y);break;case"rtk-button":customElements.get(a(t))||v();break;case"rtk-camera-selector":customElements.get(a(t))||u();break;case"rtk-icon":customElements.get(a(t))||g();break;case"rtk-microphone-selector":customElements.get(a(t))||b();break;case"rtk-speaker-selector":customElements.get(a(t))||f();break;case"rtk-spinner":customElements.get(a(t))||x()}}))}w([m()],y.prototype,"meeting",void 0),w([m()],y.prototype,"states",void 0),w([m()],y.prototype,"config",void 0),w([m()],y.prototype,"iconPack",void 0),w([m()],y.prototype,"t",void 0),j();const z=y,_=j;export{z as RtkSetupScreen,_ as defineCustomElement}
|
|
1
|
+
import{p as t,H as e,c as i,h as r,F as o,d as s,t as a}from"./p-BBHQOrFK.js";import{s as n}from"./p-CJsXePY3.js";import{c,e as l,i as d}from"./p-DBekcxma.js";import{R as p}from"./p-CBJjerDR.js";import{g as h}from"./p-Dguuxuf6.js";import{S as m}from"./p-BeyS1zas.js";import{g as k}from"./p-vBfDtD_u.js";import{d as v}from"./p-D6vw6bT2.js";import{d as u}from"./p-BljtjP8B.js";import{d as g}from"./p-BYIBbfJ8.js";import{d as b}from"./p-CPmk8YRb.js";import{d as f}from"./p-CDttXF5T.js";import{d as x}from"./p-D8kn6Kmy.js";var w=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const y=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=c(),this.iconPack=l,this.t=d(),this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"connected"===t&&(this.joinError=void 0,this.joinErrorCode=void 0),"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,e,i;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){if("connected"!==this.connectionState)return void(this.connectionState&&(this.joinError=this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")));this.isJoining=!0,this.joinError=void 0,this.joinErrorCode=void 0,null===(e=this.meeting)||void 0===e||e.self.setName(this.displayName),h.setItem("rtk-display-name",this.displayName);try{await(null===(i=this.meeting)||void 0===i?void 0:i.join())}catch(t){this.isJoining=!1;const{message:e,code:i}=k(this.t,t);this.joinError=e,this.joinErrorCode=i}}}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.meeting.meta.removeListener("socketConnectionUpdate",this.socketStateUpdate)}componentDidLoad(){var t;null===(t=this.inputEl)||void 0===t||t.focus()}meetingChanged(t){var e,i,r;t&&(this.connectionState=null===(e=t.meta.socketState)||void 0===e?void 0:e.state,this.canEditName=null===(i=t.self.permissions.canEditDisplayName)||void 0===i||i,this.displayName=(null===(r=t.self.name)||void 0===r?void 0:r.trim())||(this.canEditName?"":"Participant"),t.meta.addListener("socketConnectionUpdate",this.socketStateUpdate))}render(){var t,e,i,a,c,l;if(!this.meeting)return;const d=!!this.connectionState&&"connected"!==this.connectionState&&!this.joinError,h=this.joinError?this.joinError:this.t("failed"===this.connectionState?"network.lost_extended":"network.lost"),m=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,k={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},v=null===(a=null===(i=null===(e=this.meeting)||void 0===e?void 0:e.meta)||void 0===i?void 0:i.meetingTitle)||void 0===a?void 0:a.trim();return r(s,null,r("div",{class:"container"},r("div",{class:"container-tile"},r(p,{element:"rtk-participant-tile",defaults:k,props:{participant:null===(c=this.meeting)||void 0===c?void 0:c.self,size:"md",isPreview:!0},childProps:{participant:null===(l=this.meeting)||void 0===l?void 0:l.self,size:"md"},deepProps:!0}),r("div",{class:"media-selectors"},r("rtk-microphone-selector",Object.assign({},k,{variant:"inline"})),r("rtk-camera-selector",Object.assign({},k,{variant:"inline"})),r("rtk-speaker-selector",Object.assign({},k,{variant:"inline"})))),r("div",{class:"metadata"},v&&""!==v&&r("div",{class:"meeting-title"},v),this.canEditName?r(o,null,r("div",{class:"join-as"},this.t("setup_screen.join_in_as")),r("input",{placeholder:this.t("setup_screen.your_name"),value:this.displayName,spellcheck:!1,autoFocus:!0,ref:t=>{this.inputEl=t},onInput:t=>{this.displayName=t.target.value},onKeyDown:t=>{"Enter"===t.key&&this.join()}})):r("div",{class:"uneditable-name"},r("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",r("div",{class:"name"},n(this.displayName,20))),r("rtk-button",{size:"lg",kind:"wide",onClick:this.join,disabled:m},this.isJoining?r("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),(this.joinError||d)&&r("div",{class:"no-network-badge",role:"alert"},r("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected}),h),this.meeting&&this.joinError&&r("a",{class:"troubleshoot-link",href:"https://test.realtime.cloudflare.com?authToken="+this.meeting.__internals__.authToken,target:"_blank",rel:"noopener noreferrer"},this.t("network.troubleshoot")),this.joinErrorCode&&r("span",{class:"error-code",part:"error-code"},this.t("join.error_code"),": ",this.joinErrorCode))))}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;padding:var(--rtk-space-4, 16px);height:100%;min-height:100%;width:100%;display:flex;place-items:center;justify-content:center;--rtk-controlbar-button-background-color:rgb(var(--rtk-colors-background-700, 44 44 44))}.container{width:100%;max-width:1080px;display:flex;align-items:center;justify-content:space-evenly;gap:var(--rtk-space-4, 16px)}.container-tile{display:flex;height:100%;width:100%;max-width:584px;flex-direction:column;gap:var(--rtk-space-2, 8px)}.metadata{display:flex;width:100%;max-width:var(--rtk-space-80, 320px);flex-direction:column;align-items:center;text-align:center}.meeting-title{margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:24px;font-weight:500}.join-as{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:16px;letter-spacing:-0.025em;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.uneditable-name{margin-bottom:var(--rtk-space-6, 24px)}.uneditable-name .text,.uneditable-name .name{display:inline-block}.uneditable-name .name{font-size:16px;font-weight:500}input{margin-bottom:var(--rtk-space-6, 24px);display:block;height:var(--rtk-space-10, 40px);width:100%;max-width:var(--rtk-space-80, 320px);border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255));box-sizing:border-box;font-size:16px;outline:2px solid transparent;outline-offset:2px;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}input::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}input{border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}input:focus{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}rtk-spinner{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--icon-size:var(--rtk-space-8, 32px)}:host([size='sm']) .container,:host([size='md']) .container{height:100%;flex-direction:column;justify-content:space-evenly}:host([size='sm']) .container-tile,:host([size='md']) .container-tile{height:-moz-min-content;height:min-content;flex-direction:column;justify-content:center}rtk-participant-tile{height:auto;width:100%;max-width:584px}.media-selectors{display:flex;flex-direction:column;justify-content:space-between}.media-selectors .row{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr))}.no-network-badge{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;align-items:center;justify-content:flex-start;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));background-color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.1);padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);font-size:12px;color:rgba(var(--rtk-colors-danger, 255 45 45) / 0.75)}.no-network-badge rtk-icon{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px)}.troubleshoot-link{margin-top:var(--rtk-space-1, 4px);font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity));text-decoration-line:underline;text-underline-offset:2px}.troubleshoot-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.error-code{margin-top:var(--rtk-space-1, 4px);font-size:10px;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}"}},[1,"rtk-setup-screen",{meeting:[16],states:[16],size:[513],config:[16],iconPack:[16],t:[16],displayName:[32],isJoining:[32],joinError:[32],joinErrorCode:[32],canEditName:[32],canProduceAudio:[32],connectionState:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function j(){"undefined"!=typeof customElements&&["rtk-setup-screen","rtk-button","rtk-camera-selector","rtk-icon","rtk-microphone-selector","rtk-speaker-selector","rtk-spinner"].forEach((t=>{switch(t){case"rtk-setup-screen":customElements.get(a(t))||customElements.define(a(t),y);break;case"rtk-button":customElements.get(a(t))||v();break;case"rtk-camera-selector":customElements.get(a(t))||u();break;case"rtk-icon":customElements.get(a(t))||g();break;case"rtk-microphone-selector":customElements.get(a(t))||b();break;case"rtk-speaker-selector":customElements.get(a(t))||f();break;case"rtk-spinner":customElements.get(a(t))||x()}}))}w([m()],y.prototype,"meeting",void 0),w([m()],y.prototype,"states",void 0),w([m()],y.prototype,"config",void 0),w([m()],y.prototype,"iconPack",void 0),w([m()],y.prototype,"t",void 0),j();const z=y,C=j;export{z as RtkSetupScreen,C as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as s}from"./p-DgwW5NHh.js";const p=o,r=s;export{p as RtkSidebarUi,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,c as i,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{c as o,e as n,i as l}from"./p-
|
|
1
|
+
import{p as t,H as s,c as i,h as a,d as e,t as r}from"./p-BBHQOrFK.js";import{c as o,e as n,i as l}from"./p-DBekcxma.js";import{c,d as p,a as h,b as d,e as m}from"./p-D9HGXWKc.js";import{S as k}from"./p-BeyS1zas.js";import{R as u}from"./p-CBJjerDR.js";import{d as b}from"./p-Bz1E3QS6.js";import{d as v}from"./p-CbhuOxYr.js";import{d as g}from"./p-D6vw6bT2.js";import{d as f}from"./p-BYIBbfJ8.js";import{d as w}from"./p-OWmBzZJ6.js";import{d as x}from"./p-ChFK4o3B.js";import{d as j}from"./p-DXj7Va5n.js";import{d as C}from"./p-C35YXAVu.js";import{d as y}from"./p-DgwW5NHh.js";import{d as E}from"./p-DHSRRtn3.js";var S=function(t,s,i,a){var e,r=arguments.length,o=r<3?s:null===a?a=Object.getOwnPropertyDescriptor(s,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,s,i,a);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(o=(r<3?e(o):r>3?e(s,i,o):e(s,i))||o);return r>3&&o&&Object.defineProperty(s,i,o),o};const B=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=i(this,"rtkStateUpdate",7),this.enabledSections=[],this.defaultSection="chat",this.config=o(),this.iconPack=n,this.t=l(),this.view="sidebar",this.currentTab=this.defaultSection,this.isFloating=!1,this.enablePinning=!0,this.getTabs=()=>this.meeting.self.config?this.enabledSections.filter((t=>!(t.id in this.meeting.self.config.controlBar.elements)||this.meeting.self.config.controlBar.elements[t.id])):this.enabledSections,this.close=()=>{this.stateUpdate.emit({activeSidebar:!1,sidebar:this.defaultSection})},this.toggleFloating=()=>{this.isFloating=!this.isFloating}}connectedCallback(){var t;this.viewChanged(this.view),this.statesChanged(this.states),this.meetingChanged(this.meeting),this.isFloating=(null===(t=this.states)||void 0===t?void 0:t.sidebarFloating)||!1}disconnectedCallback(){var t,s;null===(s=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.onStageStatusUpdate),this.onStageStatusUpdate=null}meetingChanged(t){var s,i;t&&(this.updateEnabledSections(t),this.onStageStatusUpdate=()=>{this.updateEnabledSections(this.meeting)},null===(i=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===i||i.on("stageStatusUpdate",this.onStageStatusUpdate))}statesChanged(t){(null==t?void 0:t.sidebar)&&(this.currentTab=t.sidebar)}viewChanged(t){this.enablePinning="full-screen"!==t}viewSection(t){this.currentTab=t,this.stateUpdate.emit({activeSidebar:!0,sidebar:this.currentTab})}updateEnabledSections(t=this.meeting){const s=[];c(t)&&s.push({id:"chat",name:this.t("chat")}),p(t)&&s.push({id:"polls",name:this.t("polls")}),h(t)&&s.push({id:"participants",name:this.t("participants")}),d(t)&&s.push({id:"plugins",name:this.t("plugins")}),m(t)&&s.push({id:"ai",name:this.t("ai.meeting_ai")}),this.enabledSections=s}render(){var t;if(!this.meeting)return null;const s={meeting:this.meeting,config:this.config,states:this.states,size:this.size,t:this.t,iconPack:this.iconPack};return!1!==(null===(t=s.states)||void 0===t?void 0:t.activeSidebar)&&this.currentTab?a(e,{class:this.enablePinning?this.isFloating?"floating":"":"floating"},a("rtk-sidebar-ui",{tabs:this.getTabs(),currentTab:this.currentTab,view:this.view,onTabChange:t=>{this.viewSection(t.detail)},onSidebarClose:this.close},this.enablePinning&&a("div",{class:"pinned-state",slot:"pinned-state"},a("rtk-button",{variant:"ghost",kind:"icon",onClick:this.toggleFloating,"aria-label":this.t(this.isFloating?"pin":"unpin")},a("rtk-icon",{icon:this.isFloating?this.iconPack.pin:this.iconPack.pin_off}))),"chat"===s.states.sidebar&&a(u,{element:"rtk-chat",defaults:s,props:{slot:"chat"}}),"polls"===s.states.sidebar&&a("rtk-polls",Object.assign({},s,{slot:"polls"})),"participants"===s.states.sidebar&&a(u,{element:"rtk-participants",defaults:s,props:{slot:"participants"}}),"plugins"===s.states.sidebar&&a("rtk-plugins",Object.assign({},s,{slot:"plugins"})),"ai"===s.states.sidebar&&a("rtk-ai",Object.assign({},s,{slot:"ai"})))):null}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{margin-right:var(--rtk-space-0, 0px);height:100%;width:100%;max-width:var(--rtk-space-96, 384px);box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}:host([view='sidebar']){right:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-4, 16px);overflow:clip;border-radius:var(--rtk-border-radius-lg, 12px);--tw-shadow:0 25px 50px -12px rgb(0 0 0 / 0.25);--tw-shadow-colored:0 25px 50px -12px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-900, 26 26 26));--tw-shadow:var(--tw-shadow-colored)}:host([view='full-screen']){top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);max-width:100%}:host(.floating){position:absolute !important;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);left:auto;z-index:50}.pinned-state{position:absolute;right:var(--rtk-space-1, 4px);display:inline-flex;width:var(--rtk-space-2, 8px);justify-content:flex-end}"}},[1,"rtk-sidebar",{enabledSections:[1040],defaultSection:[1,"default-section"],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],size:[513],view:[513],currentTab:[32],isFloating:[32],enablePinning:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}],view:[{viewChanged:0}]}]);function O(){"undefined"!=typeof customElements&&["rtk-sidebar","rtk-ai","rtk-ai-transcriptions","rtk-button","rtk-icon","rtk-plugins","rtk-poll","rtk-poll-form","rtk-polls","rtk-sidebar-ui","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-sidebar":customElements.get(r(t))||customElements.define(r(t),B);break;case"rtk-ai":customElements.get(r(t))||b();break;case"rtk-ai-transcriptions":customElements.get(r(t))||v();break;case"rtk-button":customElements.get(r(t))||g();break;case"rtk-icon":customElements.get(r(t))||f();break;case"rtk-plugins":customElements.get(r(t))||w();break;case"rtk-poll":customElements.get(r(t))||x();break;case"rtk-poll-form":customElements.get(r(t))||j();break;case"rtk-polls":customElements.get(r(t))||C();break;case"rtk-sidebar-ui":customElements.get(r(t))||y();break;case"rtk-tooltip":customElements.get(r(t))||E()}}))}S([k()],B.prototype,"meeting",void 0),S([k()],B.prototype,"states",void 0),S([k()],B.prototype,"config",void 0),S([k()],B.prototype,"iconPack",void 0),S([k()],B.prototype,"t",void 0),O();const z=B,D=O;export{z as RtkSidebar,D as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,h as e,d as s,t as n}from"./p-BBHQOrFK.js";import{c as o,e as a,i as r}from"./p-
|
|
1
|
+
import{p as t,H as i,h as e,d as s,t as n}from"./p-BBHQOrFK.js";import{c as o,e as a,i as r}from"./p-DBekcxma.js";import{R as h}from"./p-CBJjerDR.js";import{u as c}from"./p-CmmyVCoN.js";import{i as p}from"./p-FdeAvICb.js";import{S as l}from"./p-BeyS1zas.js";var m=function(t,i,e,s){var n,o=arguments.length,a=o<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(n=t[r])&&(a=(o<3?n(a):o>3?n(i,e,a):n(i,e))||a);return o>3&&a&&Object.defineProperty(i,e,a),a};const d=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.participants=[],this.aspectRatio="16:9",this.gap=8,this.config=o(),this.iconPack=a,this.t=r(),this.dimensions={width:0,height:0},this.setHostDimensions=()=>{const{clientWidth:t,clientHeight:i}=this.host;this.dimensions={width:t,height:i}}}connectedCallback(){this.resizeObserver=new p(this.setHostDimensions),this.resizeObserver.observe(this.host),this.meetingChanged(this.meeting)}meetingChanged(t){const i=null==t?void 0:t.meta;i&&(this.mediaConnection=Object.assign({},i.mediaState))}disconnectedCallback(){var t;null===(t=this.resizeObserver)||void 0===t||t.disconnect()}render(){if(!this.meeting)return null;const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},{width:i,height:n,getPosition:o}=c({dimensions:this.dimensions,count:this.participants.length,aspectRatio:this.aspectRatio,gap:this.gap});return e(s,null,e("slot",null,this.participants.map(((s,a)=>{const{top:r,left:c}=o(a);return e(h,{element:"rtk-participant-tile",defaults:t,props:{participant:s,style:{position:"absolute",top:r+"px",left:c+"px",width:i+"px",height:n+"px"},key:s.id,"data-participant":s.id,mediaConnection:this.mediaConnection},childProps:{participant:s},deepProps:!0})}))))}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:block;height:100%;width:100%}"}},[257,"rtk-simple-grid",{participants:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],dimensions:[32],mediaConnection:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function g(){"undefined"!=typeof customElements&&["rtk-simple-grid"].forEach((t=>{"rtk-simple-grid"===t&&(customElements.get(n(t))||customElements.define(n(t),d))}))}m([l()],d.prototype,"meeting",void 0),m([l()],d.prototype,"states",void 0),m([l()],d.prototype,"config",void 0),m([l()],d.prototype,"iconPack",void 0),m([l()],d.prototype,"t",void 0),g();const f=d,u=g;export{f as RtkSimpleGrid,u as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as t,d as o}from"./p-CDttXF5T.js";const s=t,p=o;export{s as RtkSpeakerSelector,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as s}from"./p-D8kn6Kmy.js";const m=o,p=s;export{m as RtkSpinner,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,h as s,d as e,t as
|
|
1
|
+
import{p as t,H as i,h as s,d as e,t as a}from"./p-BBHQOrFK.js";import{c as d,e as h,i as r}from"./p-DBekcxma.js";import{d as o}from"./p-CmmyVCoN.js";import{R as m}from"./p-CBJjerDR.js";import{S as n}from"./p-BeyS1zas.js";var c=function(t,i,s,e){var a,d=arguments.length,h=d<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,s,e);else for(var r=t.length-1;r>=0;r--)(a=t[r])&&(h=(d<3?a(h):d>3?a(i,s,h):a(i,s))||h);return d>3&&h&&Object.defineProperty(i,s,h),h};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.aspectRatio="16:9",this.gap=8,this.config=d(),this.iconPack=h,this.t=r(),this.gridSize=o,this.getAdaptiveSize=t=>"sm"===this.size||t>3||"md"===this.size?"sm":"md"}render(){const t={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},i=this.participants.filter((t=>this.pinnedParticipants.some((i=>i.id!=t.id))));return s(e,{key:"89eb01a359afac77b549cf1874a66ee3c71b3c03"},s("main",{key:"c3d6ec072a2f6ad20f74075c1f14ed35d338542d",part:"main"},s(m,{key:"3beb850780222b5de7733b4f784cd8a009cc6f5a",element:"rtk-simple-grid",defaults:t,props:{part:"main-grid",participants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(this.pinnedParticipants.length)}})),i.length>0&&s("aside",{key:"3e729aed79f80a9f12bb586654ef654613a1035d",part:"aside",class:this.gridSize.spotlight?"grid-width-"+this.gridSize.spotlight:"grid-width-md"},s(m,{key:"d23ad2d8775a4714b0681c39289930cfef90d531",element:"rtk-simple-grid",defaults:t,props:{part:"aside-grid",participants:i,aspectRatio:this.aspectRatio,gap:this.gap,size:this.getAdaptiveSize(i.length)}})))}get host(){return this}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%}main{flex:1 1 0%}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}:host([size='sm']),:host([size='md']){flex-direction:column}:host([size='md']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='md']) .grid-width-sm{height:25%}:host([size='md']) .grid-width-md{height:50%}:host([size='md']) .grid-width-lg{height:66.666667%}:host([size='sm']) aside{max-height:var(--rtk-space-96, 384px);width:100%;max-width:100%}:host([size='sm']) .grid-width-sm,:host([size='sm']) .grid-width-md,:host([size='sm']) .grid-width-lg{height:50%}:host([size='xl']) .grid-width-sm,:host([size='xl']) .grid-width-md,:host([size='xl']) .grid-width-lg{width:400px}:host([layout='column']){flex-direction:column}:host([layout='column']) main{flex:4}:host([layout='column']) aside{flex:2;max-width:100%;width:100%}"}},[1,"rtk-spotlight-grid",{layout:[513],participants:[16],pinnedParticipants:[16],aspectRatio:[1,"aspect-ratio"],gap:[2],size:[513],meeting:[16],states:[16],config:[16],iconPack:[16],t:[16],gridSize:[16]}]);function g(){"undefined"!=typeof customElements&&["rtk-spotlight-grid"].forEach((t=>{"rtk-spotlight-grid"===t&&(customElements.get(a(t))||customElements.define(a(t),p))}))}c([n()],p.prototype,"meeting",void 0),c([n()],p.prototype,"states",void 0),c([n()],p.prototype,"config",void 0),c([n()],p.prototype,"iconPack",void 0),c([n()],p.prototype,"t",void 0),g();const l=p,f=g;export{l as RtkSpotlightGrid,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-CEPlz2Z3.js";const p=o,r=s;export{p as RtkSpotlightIndicator,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as i,c as s,h as e,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as n,i as l}from"./p-
|
|
1
|
+
import{p as t,H as i,c as s,h as e,d as o,t as a}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import{e as n,i as l}from"./p-DBekcxma.js";import"./p-Dguuxuf6.js";import{S as r}from"./p-BeyS1zas.js";import{d}from"./p-Ddz1AfPy.js";import{d as c}from"./p-BYIBbfJ8.js";import{d as u}from"./p-D8kn6Kmy.js";import{d as h}from"./p-DHSRRtn3.js";var v=function(t,i,s,e){var o,a=arguments.length,n=a<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(n=(a<3?o(n):a>3?o(i,s,n):o(i,s))||n);return a>3&&n&&Object.defineProperty(i,s,n),n};const p=t(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=n,this.t=l(),this.stageStatus="OFF_STAGE",this.state={label:"",disabled:!1,icon:""},this.stageCallback=async()=>{var t,i,s,e,o,a,n;const l=null===(t=this.meeting.stage)||void 0===t?void 0:t.status;"ON_STAGE"===l&&await(null===(s=null===(i=null==this?void 0:this.meeting)||void 0===i?void 0:i.stage)||void 0===s?void 0:s.leave()),"OFF_STAGE"===l&&(null===(o=null===(e=null==this?void 0:this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.requestAccess(),(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"ALLOWED"===(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)&&(this.states.activeJoinStage=!0,this.stateUpdate.emit({activeJoinStage:!0}))),"REQUESTED_TO_JOIN_STAGE"===l&&(null===(n=null===(a=null==this?void 0:this.meeting)||void 0===a?void 0:a.stage)||void 0===n||n.cancelRequestAccess())}}connectedCallback(){this.meetingChanged(this.meeting)}stageStatusHandler(t,i){this.stageStatus=i,"ACCEPTED_TO_JOIN_STAGE"===i&&(t.self.setupTracks({audio:!1,video:!1}),this.stateUpdate.emit({activeJoinStage:!0})),this.state=this.getState()}disconnectedCallback(){var t,i;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",(t=>this.stageStatusHandler(this.meeting,t)))}meetingChanged(t){var i,s,e,o;t&&(this.stageStatus=null===(i=t.stage)||void 0===i?void 0:i.status,this.stageStatusHandler(t,null===(s=t.stage)||void 0===s?void 0:s.status),null===(o=null===(e=this.meeting)||void 0===e?void 0:e.stage)||void 0===o||o.on("stageStatusUpdate",(i=>this.stageStatusHandler(t,i))))}getState(){let t="",i="",s=!1;switch(this.stageStatus){case"ON_STAGE":i=this.iconPack.leave_stage,t=this.t("stage_request.leave_stage"),s=!1;break;case"ACCEPTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!0;break;case"REQUESTED_TO_JOIN_STAGE":i=this.iconPack.join_stage,t=this.t("stage_request.requested"),s=!1;break;default:i=this.iconPack.join_stage,t=this.t("stage_request.request"),s=!1}return{label:t,disabled:s,icon:i}}render(){return(t=>{var i,s;return(null===(i=null==t?void 0:t.self)||void 0===i?void 0:i.permissions.stageEnabled)&&"NOT_ALLOWED"!==(null===(s=null==t?void 0:t.self)||void 0===s?void 0:s.permissions.stageAccess)})(this.meeting)?e(o,{title:this.state.label},e("rtk-tooltip",{placement:"top",kind:"block",label:this.state.label,delay:600,part:"tooltip"},e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,variant:this.variant,label:this.state.label,icon:this.state.icon,onClick:this.stageCallback,disabled:this.state.disabled,showWarning:!1}))):e(o,{"data-hidden":!0})}static get watchers(){return{meeting:[{meetingChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}:host([data-hidden]){display:none}"}},[1,"rtk-stage-toggle",{variant:[513],meeting:[16],size:[513],iconPack:[16],states:[16],t:[16],stageStatus:[32],state:[32]},void 0,{meeting:[{meetingChanged:0}]}]);function m(){"undefined"!=typeof customElements&&["rtk-stage-toggle","rtk-controlbar-button","rtk-icon","rtk-spinner","rtk-tooltip"].forEach((t=>{switch(t){case"rtk-stage-toggle":customElements.get(a(t))||customElements.define(a(t),p);break;case"rtk-controlbar-button":customElements.get(a(t))||d();break;case"rtk-icon":customElements.get(a(t))||c();break;case"rtk-spinner":customElements.get(a(t))||u();break;case"rtk-tooltip":customElements.get(a(t))||h()}}))}v([r()],p.prototype,"meeting",void 0),v([r()],p.prototype,"iconPack",void 0),v([r()],p.prototype,"states",void 0),v([r()],p.prototype,"t",void 0),m();const g=p,k=m;export{g as RtkStageToggle,k as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,c as s,h as a,d as o,t as r}from"./p-BBHQOrFK.js";import{e as i,i as n}from"./p-
|
|
1
|
+
import{p as t,H as e,c as s,h as a,d as o,t as r}from"./p-BBHQOrFK.js";import{e as i,i as n}from"./p-DBekcxma.js";import{S as c}from"./p-BeyS1zas.js";var f=function(t,e,s,a){var o,r=arguments.length,i=r<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,a);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(i=(r<3?o(i):r>3?o(e,s,i):o(e,s))||i);return r>3&&i&&Object.defineProperty(e,s,i),i};const l=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.stateUpdate=s(this,"rtkStateUpdate",7),this.iconPack=i,this.t=n()}render(){return a(o,{key:"2f1f0816b48e44bb3eae63b61e47adf34c31c24b"},a("slot",{key:"030180b3dd7d9342fdb604c6dddcb81b54568ba5"}))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block;position:relative;overflow:hidden}"}},[257,"rtk-stage",{iconPack:[16],t:[16]}]);function d(){"undefined"!=typeof customElements&&["rtk-stage"].forEach((t=>{"rtk-stage"===t&&(customElements.get(r(t))||customElements.define(r(t),l))}))}f([c()],l.prototype,"iconPack",void 0),f([c()],l.prototype,"t",void 0),d();const p=l,m=d;export{p as RtkStage,m as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-ByDKblxE.js";const p=o,r=s;export{p as RtkSwitch,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as s}from"./p-DJuk-FJe.js";const p=o,r=s;export{p as RtkTabBar,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-BmWn7Ryk.js";const m=o,p=s;export{m as RtkTextComposerView,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as o,d as s}from"./p-BlOYC_3W.js";const p=o,r=s;export{p as RtkTextMessageView,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-DKItPEgV.js";const t=o,p=s;export{t as RtkTextMessage,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as
|
|
1
|
+
import{R as o,d as s}from"./p-eyOPXk0e.js";const e=o,p=s;export{e as RtkTranscript,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as s,w as e,h as i,d as r,t as n}from"./p-BBHQOrFK.js";import{c as a,i as o,D as c}from"./p-
|
|
1
|
+
import{p as t,H as s,w as e,h as i,d as r,t as n}from"./p-BBHQOrFK.js";import{c as a,i as o,D as c}from"./p-DBekcxma.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as h}from"./p-BeyS1zas.js";import{d as p}from"./p-eyOPXk0e.js";var d=function(t,s,e,i){var r,n=arguments.length,a=n<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,e,i);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(n<3?r(a):n>3?r(s,e,a):r(s,e))||a);return n>3&&a&&Object.defineProperty(s,e,a),a};const l=t(class extends s{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=a(),this.t=o(),this.transcripts=[],this.listenerAttached=!1,this.onTranscript=t=>{t.transcript&&this.add(t)}}connectedCallback(){this.meetingChanged(this.meeting)}addListener(t){var s;null===(s=null==t?void 0:t.ai)||void 0===s||s.addListener("transcript",this.onTranscript),this.listenerAttached=!0}clearListeners(t){var s;this.onTranscript&&(null===(s=null==t?void 0:t.ai)||void 0===s||s.removeListener("transcript",this.onTranscript)),this.listenerAttached=!1,clearTimeout(this.disconnectTimeout),this.transcripts=[]}disconnectedCallback(){this.meeting&&this.clearListeners(this.meeting)}meetingChanged(t,s){clearTimeout(this.disconnectTimeout),s&&this.clearListeners(s),t&&this.states.activeCaptions&&this.addListener(t)}statesChanged(t){t&&(t.activeCaptions&&!this.listenerAttached&&this.addListener(this.meeting),!t.activeCaptions&&this.listenerAttached&&this.clearListeners(this.meeting))}transcriptionsReducer(t,s){if(!t.length)return[s];let e=t[t.length-1];return e.peerId!==s.peerId?t.concat(s):e.id===s.id?(e.transcript=s.transcript,t.pop(),t.concat(c(e))):t.concat(s)}add(t){this.transcripts=this.transcriptionsReducer(this.transcripts,t),this.pruneToLatestTwoGroups()}buildGroups(){const t=[];return this.transcripts.forEach((s=>{const e=t[t.length-1];!e||e.peerId!==s.peerId||e.combinedText.length+s.transcript.length>400?(t.push({renderedId:s.id,peerId:s.peerId,combinedText:s.transcript,entries:[s]}),s.renderedId=s.id):(e.combinedText+=" "+s.transcript,s.renderedId=e.renderedId,e.entries.push(s))})),t}pruneToLatestTwoGroups(){const t=this.buildGroups();if(t.length<=2)return;const s=new Set(t.slice(-2).flatMap((t=>t.entries)));this.transcripts=this.transcripts.filter((t=>s.has(t)))}remove(t){this.transcripts=this.transcripts.filter((s=>s.renderedId!==t))}handleDismiss(t){t.stopPropagation();const{id:s,renderedId:i}=t.detail,r=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==r||r.classList.add("exit"),setTimeout((()=>{e((()=>{this.remove(i)}))}),400)}renderTranscripts(){return this.buildGroups().slice(-2).map((t=>{const s=t.entries[0];return i("rtk-transcript",{key:s.id,"data-id":s.id,transcript:{name:s.name,date:s.date,peerId:t.peerId,userId:s.userId,customParticipantId:s.customParticipantId,transcript:t.combinedText,id:s.id,renderedId:t.renderedId},onRtkTranscriptDismiss:t=>this.handleDismiss(t),t:this.t})}))}render(){if(this.states.activeCaptions)return i(r,null,this.renderTranscripts())}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;justify-content:center;width:100%;z-index:5}rtk-transcript{margin-top:var(--rtk-space-2, 8px)}"}},[1,"rtk-transcripts",{meeting:[16],states:[16],config:[16],t:[16],transcripts:[32],listenerAttached:[32]},void 0,{meeting:[{meetingChanged:0}],states:[{statesChanged:0}]}]);function u(){"undefined"!=typeof customElements&&["rtk-transcripts","rtk-transcript"].forEach((t=>{switch(t){case"rtk-transcripts":customElements.get(n(t))||customElements.define(n(t),l);break;case"rtk-transcript":customElements.get(n(t))||p()}}))}d([h()],l.prototype,"meeting",void 0),d([h()],l.prototype,"states",void 0),d([h()],l.prototype,"config",void 0),d([h()],l.prototype,"t",void 0),u();const m=l,f=u;export{m as RtkTranscripts,f as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t,p as e,H as i,c as s,h as o,d as n}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import{m as r,p as h}from"./p-
|
|
1
|
+
import{t,p as e,H as i,c as s,h as o,d as n}from"./p-BBHQOrFK.js";import"./p-D9EtbXLL.js";import{m as r,p as h}from"./p-cYn1aFYj.js";import{e as a,i as d,c,f as p,u as m,b as g}from"./p-DBekcxma.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{g as l}from"./p-Cj-LCS8F.js";import{g as u}from"./p-vBfDtD_u.js";const f=e(class extends i{constructor(t){super(),!1!==t&&this.__registerHost(),this.statesUpdate=s(this,"rtkStatesUpdate",7),this.peerStore=null,this.providerId="provider-"+Math.floor(100*Math.random()),this.meeting=null,this.iconPack=a,this.t=d(),this.config=c(),this.mode="fixed",this.showSetupScreen=!1,this.overrides=p,this.roomJoinedListener=()=>{this.updateStates({meeting:"joined",preJoinError:null})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:e})=>{!["audio","video"].includes(t)||"DENIED"!==e&&"SYSTEM_DENIED"!==e||!0===(this.peerStore||m).state.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),1e4)},this.handleChangingMeeting=t=>{this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},this.peerStore.state.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}}connectedCallback(){"undefined"!=typeof window&&(this.initErrorListener=t=>{const e=l(this.t,t.detail);e&&this.updateStates({preJoinError:e})},window.addEventListener("ClientError",this.initErrorListener)),this.setupStoreRequestListener(),this.meetingChanged(this.meeting),this.iconPackChanged(this.iconPack),this.tChanged(this.t),this.configChanged(this.config),this.overridesChanged(this.overrides)}disconnectedCallback(){window.removeEventListener("ClientError",this.initErrorListener),this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.meeting&&(this.meeting.self.removeListener("roomLeft",this.roomLeftListener),this.meeting.self.removeListener("roomJoined",this.roomJoinedListener),this.meeting.self.removeListener("waitlisted",this.waitlistedListener),this.meeting.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.meeting.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}updateStates(t){const e=this.peerStore||m,i=Object.assign({},e.state.states);e.state.states=r(i,t),this.statesUpdate.emit(e.state.states);const s=new CustomEvent("rtkStatesUpdate",{detail:e.state.states,bubbles:!0,composed:!0});this.host.dispatchEvent(s)}setupStateUpdateListener(){this.stateUpdateListener&&this.host.removeEventListener("rtkStateUpdate",this.stateUpdateListener),this.stateUpdateListener=t=>{this.updateStates(t.detail)},this.host.addEventListener("rtkStateUpdate",this.stateUpdateListener)}setupStoreRequestListener(){this.storeRequestListener&&this.host.removeEventListener("rtkRequestStore",this.storeRequestListener),this.storeRequestListener=t=>{if(!this.peerStore)return;const e=new CustomEvent("rtkProvideStore",{detail:{store:this.peerStore,requestId:t.detail.requestId}});document.dispatchEvent(e),t.stopPropagation()},this.host.addEventListener("rtkRequestStore",this.storeRequestListener)}meetingChanged(t,e){if(t&&(this.peerStore=g({meeting:t,config:this.config,iconPack:this.iconPack,t:this.t,providerId:this.providerId,overrides:r(Object.assign({},p),this.overrides)}),document.dispatchEvent(new CustomEvent("rtkPeerStoreReady",{detail:{peerId:t.self.id}}))),this.setupStateUpdateListener(),t){const i=this.peerStore||m;i.state.meeting=t,this.updateStates({viewType:t.meta.viewType,activeCaptions:e?!!i.state.states.activeCaptions:!!t.self.permissions.transcriptionEnabled}),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.join().then((()=>{this.updateStates({preJoinError:null})})).catch((t=>{const{message:e,code:i}=u(this.t,t);this.updateStates({preJoinError:{message:e,code:i}})})),window.removeEventListener("ClientError",this.initErrorListener)}}iconPackChanged(t){this.peerStore&&(this.peerStore.state.iconPack=t)}tChanged(t){this.peerStore&&(this.peerStore.state.t=t)}configChanged(t){this.peerStore&&(this.peerStore.state.config=t),(null==t?void 0:t.designTokens)&&"undefined"!=typeof document&&!0!==(this.peerStore||m).state.states.activeDebugger&&h(document.documentElement,t.designTokens)}overridesChanged(t){this.peerStore&&(this.peerStore.state.overrides=r(Object.assign({},p),t))}render(){return this.meeting?o(n,null,o("slot",null)):null}get host(){return this}static get watchers(){return{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{box-sizing:border-box;display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));overflow:hidden;position:fixed;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);height:100%;width:100%}:host([mode='fill']){position:relative}"}},[260,"rtk-ui-provider",{meeting:[16],iconPack:[16],t:[16],config:[16],mode:[513],showSetupScreen:[4,"show-setup-screen"],overrides:[16]},void 0,{meeting:[{meetingChanged:0}],iconPack:[{iconPackChanged:0}],t:[{tChanged:0}],config:[{configChanged:0}],overrides:[{overridesChanged:0}]}]);function k(){"undefined"!=typeof customElements&&["rtk-ui-provider"].forEach((e=>{"rtk-ui-provider"===e&&(customElements.get(t(e))||customElements.define(t(e),f))}))}k();const v=f,C=k;export{v as RtkUiProvider,C as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as
|
|
1
|
+
import{R as r,d as o}from"./p-Dr5J4rpX.js";const p=r,s=o;export{p as RtkViewerCount,s as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as o,d as s}from"./p-
|
|
1
|
+
import{R as o,d as s}from"./p-B_Wn0VnS.js";const n=o,p=s;export{n as RtkVirtualizedParticipantList,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as t,H as e,h as r,d as a,t as i}from"./p-BBHQOrFK.js";import{c as o,e as s,i as c}from"./p-
|
|
1
|
+
import{p as t,H as e,h as r,d as a,t as i}from"./p-BBHQOrFK.js";import{c as o,e as s,i as c}from"./p-DBekcxma.js";import"./p-D9EtbXLL.js";import"./p-C0vp-Q7v.js";import"./p-Dguuxuf6.js";import{S as n}from"./p-BeyS1zas.js";import{d as p}from"./p-DqiWqbuZ.js";var f=function(t,e,r,a){var i,o=arguments.length,s=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};const d=t(class extends e{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.config=o(),this.iconPack=s,this.t=c()}render(){return r(a,{key:"26f7376b6a9342f61a633af98dbd52cfb776db89"},r("slot",{key:"b0f9d9c034e0e34fa1beaa8b74c0bb186972752d"},r("div",{key:"9d564d44c7e587b2a1517e9f190f52ce994bc0b0",class:"centered",part:"content"},r("rtk-logo",{key:"690aa7dce99175cdc91e5a9dc4a333ab1250ab82",meeting:this.meeting,config:this.config,part:"logo",t:this.t}),r("p",{key:"1bf08c2f97e04ea74c420ce1f26535d7f8fe5390"},this.t("waitlist.body_text")))))}static get style(){return":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.centered{display:flex;flex-direction:column;align-items:center}rtk-logo{margin-bottom:var(--rtk-space-8, 32px);height:var(--rtk-space-12, 48px)}p{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}"}},[257,"rtk-waiting-screen",{meeting:[16],config:[16],iconPack:[16],t:[16]}]);function l(){"undefined"!=typeof customElements&&["rtk-waiting-screen","rtk-logo"].forEach((t=>{switch(t){case"rtk-waiting-screen":customElements.get(i(t))||customElements.define(i(t),d);break;case"rtk-logo":customElements.get(i(t))||p()}}))}f([n()],d.prototype,"meeting",void 0),f([n()],d.prototype,"config",void 0),f([n()],d.prototype,"iconPack",void 0),f([n()],d.prototype,"t",void 0),l();const g=d,m=l;export{g as RtkWaitingScreen,m as defineCustomElement}
|