@cloudflare/realtimekit-ui 1.1.0 → 1.1.1-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/{full-screen-de3e9caf.js → full-screen-b02d13dd.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +1 -1
- package/dist/cjs/rtk-avatar_26.cjs.entry.js +21 -13
- package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +7 -7
- 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-idle-screen.cjs.entry.js +43 -2
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +1 -1
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/rtk-leave-button.cjs.entry.js +1 -1
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +3 -3
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-notification.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 +2 -2
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +1 -1
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +1 -1
- package/dist/cjs/rtk-plugins_2.cjs.entry.js +4 -4
- package/dist/cjs/rtk-poll_2.cjs.entry.js +3 -3
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +1 -1
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +7 -7
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +1 -1
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +21 -3
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +1 -1
- package/dist/cjs/rtk-transcript.cjs.entry.js +1 -1
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +1 -1
- package/dist/collection/components/rtk-ai/rtk-ai.js +6 -0
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +1 -1
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +1 -1
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +8 -2
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +2 -2
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.css +22 -0
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +76 -1
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +4 -4
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +3 -3
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +1 -1
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +1 -1
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +1 -1
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +2 -2
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +6 -0
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +10 -2
- package/dist/collection/components/rtk-menu/rtk-menu.js +2 -2
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +1 -1
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +1 -1
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +3 -3
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +2 -2
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +1 -1
- package/dist/collection/components/rtk-notification/rtk-notification.js +2 -2
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +1 -1
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +2 -2
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +1 -1
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +1 -1
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +6 -0
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +1 -1
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +6 -0
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +1 -1
- package/dist/collection/components/rtk-poll/rtk-poll.js +1 -1
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +2 -2
- package/dist/collection/components/rtk-polls/rtk-polls.js +3 -3
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +1 -1
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +7 -7
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +1 -1
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +22 -3
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +8 -2
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +1 -1
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +2 -2
- package/dist/collection/components/rtk-stage/rtk-stage.js +1 -1
- package/dist/collection/components/rtk-switch/rtk-switch.js +1 -1
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +1 -1
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +2 -2
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +1 -1
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +1 -1
- package/dist/collection/utils/full-screen.js +1 -1
- package/dist/components/{p-8861d5a3.js → p-00551379.js} +1 -1
- package/dist/components/{p-7adb3504.js → p-08698341.js} +1 -1
- package/dist/components/{p-e544a590.js → p-0d76966c.js} +2 -2
- package/dist/components/{p-88aded7d.js → p-0f065bee.js} +5 -5
- package/dist/components/{p-8a66a347.js → p-0f39e8ae.js} +1 -1
- package/dist/components/{p-a6c93f34.js → p-1186c3c8.js} +1 -1
- package/dist/components/{p-71fbfb8b.js → p-1cbbf87d.js} +1 -1
- package/dist/components/{p-d0f54eea.js → p-1fd0aeb8.js} +2 -2
- package/dist/components/{p-4a1144e2.js → p-2281c2c4.js} +2 -2
- package/dist/components/{p-52d9029f.js → p-2c66d025.js} +2 -2
- package/dist/components/{p-0a36cb4b.js → p-2f56d366.js} +5 -5
- package/dist/components/{p-d029dd2f.js → p-3577385a.js} +1 -1
- package/dist/components/{p-c9db1b82.js → p-38ba07d0.js} +1 -1
- package/dist/components/{p-02f19345.js → p-3974d97a.js} +2 -2
- package/dist/components/{p-4a5d3b4c.js → p-41d43013.js} +2 -2
- package/dist/components/{p-a8d77615.js → p-4870263f.js} +7 -7
- package/dist/components/{p-c3bfa8f1.js → p-4a8d69ae.js} +1 -1
- package/dist/components/{p-4942bfd2.js → p-4b7af749.js} +1 -1
- package/dist/components/{p-b226a124.js → p-512c4515.js} +2 -2
- package/dist/components/{p-881e5548.js → p-526870e9.js} +10 -10
- package/dist/components/{p-c9ee0428.js → p-528cc24e.js} +3 -3
- package/dist/components/{p-e93218b8.js → p-5c4de4b9.js} +5 -5
- package/dist/components/{p-08351fd6.js → p-5cce54f2.js} +2 -2
- package/dist/components/{p-27029836.js → p-61dcdd44.js} +1 -1
- package/dist/components/{p-c39c6e12.js → p-6857797f.js} +3 -3
- package/dist/components/{p-45a9a385.js → p-6c0eb5d7.js} +4 -4
- package/dist/components/{p-af2b1476.js → p-7210157d.js} +2 -2
- package/dist/components/{p-15d2291f.js → p-8123217e.js} +2 -2
- package/dist/components/{p-22827c53.js → p-81658a62.js} +2 -2
- package/dist/components/{p-345a07e8.js → p-81f479e2.js} +2 -2
- package/dist/components/{p-7f71b3c7.js → p-8a0106ed.js} +17 -17
- package/dist/components/{p-a4d13056.js → p-9bf3a2cd.js} +4 -4
- package/dist/components/{p-dfdbb665.js → p-9cf41ab1.js} +1 -1
- package/dist/components/{p-d2cbc2d1.js → p-a101bff7.js} +6 -6
- package/dist/components/{p-2f68e7bb.js → p-a339a693.js} +5 -5
- package/dist/components/{p-abf952f5.js → p-ad179bea.js} +1 -1
- package/dist/components/{p-6ac87493.js → p-ad194cf2.js} +4 -4
- package/dist/components/{p-cd6f04ae.js → p-b1723439.js} +1 -1
- package/dist/components/{p-fe0d125b.js → p-bcff8acc.js} +1 -1
- package/dist/components/{p-b3240843.js → p-c0de7320.js} +1 -1
- package/dist/components/{p-d9626191.js → p-cb053923.js} +1 -1
- package/dist/components/{p-7384c20c.js → p-d0eb78a2.js} +4 -4
- package/dist/components/{p-e7b7abfe.js → p-d70fbc37.js} +2 -2
- package/dist/components/{p-dd8a892e.js → p-da13b457.js} +1 -1
- package/dist/components/{p-9f481b70.js → p-f1fa3b2a.js} +2 -2
- package/dist/components/{p-ac6a5fc5.js → p-f4bd3f50.js} +2 -2
- package/dist/components/{p-7f3bfc54.js → p-f517e595.js} +1 -1
- package/dist/components/{p-2232de67.js → p-fad88ee4.js} +3 -3
- package/dist/components/{p-298aa8be.js → p-fb5a823a.js} +5 -5
- package/dist/components/rtk-ai-toggle.js +2 -2
- package/dist/components/rtk-audio-tile.js +2 -2
- 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 +2 -2
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-camera-toggle.js +2 -2
- package/dist/components/rtk-caption-toggle.js +2 -2
- package/dist/components/rtk-chat-composer-ui.js +3 -3
- 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 +9 -9
- package/dist/components/rtk-chat-search-results.js +9 -9
- package/dist/components/rtk-chat-selector.js +1 -1
- package/dist/components/rtk-chat-toggle.js +2 -2
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-debugger-toggle.js +2 -2
- package/dist/components/rtk-dialog-manager.js +10 -10
- package/dist/components/rtk-emoji-picker.js +1 -1
- package/dist/components/rtk-fullscreen-toggle.js +1 -1
- package/dist/components/rtk-grid.js +4 -4
- package/dist/components/rtk-idle-screen.js +51 -4
- 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-leave-button.js +3 -3
- package/dist/components/rtk-leave-meeting.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-livestream-toggle.js +2 -2
- package/dist/components/rtk-markdown-view.js +1 -1
- package/dist/components/rtk-meeting.js +28 -20
- 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 +4 -4
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +2 -2
- package/dist/components/rtk-more-toggle.js +4 -4
- package/dist/components/rtk-mute-all-button.js +2 -2
- package/dist/components/rtk-mute-all-confirmation.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-setup.js +2 -2
- 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 +2 -2
- 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 +11 -11
- 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 +2 -2
- package/dist/components/rtk-plugins-toggle.js +2 -2
- 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 +2 -2
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +1 -1
- package/dist/components/rtk-recording-toggle.js +2 -2
- package/dist/components/rtk-screen-share-toggle.js +2 -2
- package/dist/components/rtk-screenshare-view.js +7 -7
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +3 -3
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +3 -3
- package/dist/components/rtk-setup-screen.js +23 -4
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +5 -5
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +2 -2
- package/dist/components/rtk-stage-toggle.js +2 -2
- package/dist/components/rtk-stage.js +1 -1
- package/dist/components/rtk-switch.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-virtualized-participant-list.js +1 -1
- package/dist/components/rtk-waiting-screen.js +1 -1
- package/dist/docs/docs-components.json +54 -12
- package/dist/docs/docs-vscode.json +6 -6
- package/dist/esm/{full-screen-1f58c594.js → full-screen-d36ffc68.js} +2 -2
- package/dist/esm/loader.js +140 -73
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-audio-visualizer_4.entry.js +1 -1
- package/dist/esm/rtk-avatar_26.entry.js +21 -13
- package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +7 -7
- 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-idle-screen.entry.js +43 -2
- package/dist/esm/rtk-image-viewer.entry.js +1 -1
- package/dist/esm/rtk-information-tooltip.entry.js +1 -1
- package/dist/esm/rtk-leave-button.entry.js +1 -1
- package/dist/esm/rtk-message-list-view.entry.js +3 -3
- package/dist/esm/rtk-more-toggle.entry.js +2 -2
- package/dist/esm/rtk-notification.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +2 -2
- package/dist/esm/rtk-participant_2.entry.js +2 -2
- package/dist/esm/rtk-participants-audio.entry.js +1 -1
- package/dist/esm/rtk-participants-stage-list_4.entry.js +1 -1
- package/dist/esm/rtk-plugins_2.entry.js +4 -4
- package/dist/esm/rtk-poll_2.entry.js +3 -3
- package/dist/esm/rtk-recording-indicator.entry.js +1 -1
- package/dist/esm/rtk-screenshare-view.entry.js +7 -7
- package/dist/esm/rtk-settings-toggle.entry.js +1 -1
- package/dist/esm/rtk-setup-screen.entry.js +21 -3
- package/dist/esm/rtk-sidebar-ui.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +1 -1
- package/dist/esm/rtk-transcript.entry.js +1 -1
- package/dist/esm/rtk-waiting-screen.entry.js +1 -1
- package/dist/realtimekit-ui/{p-be0cae77.entry.js → p-07860158.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9e27670a.entry.js → p-0bd7eedc.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4e604bf1.entry.js → p-1a4f0b00.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cc71c33f.entry.js → p-1efb8f44.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8e867ba8.entry.js → p-1f877b80.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f46787e0.entry.js → p-205590ae.entry.js} +1 -1
- package/dist/realtimekit-ui/p-3125a6e7.entry.js +1 -0
- package/dist/realtimekit-ui/{p-10d4354c.entry.js → p-319034e1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-309b8a96.entry.js → p-6038d773.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1e16ecb3.entry.js → p-6741242b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-67e751d5.entry.js +1 -0
- package/dist/realtimekit-ui/{p-60b3fbb2.entry.js → p-67f94206.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c7ddf9a9.entry.js → p-6a1faaf1.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c794adf9.entry.js → p-6d0690f6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-29d3f735.entry.js → p-76b45a0d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-84476389.entry.js → p-78802076.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d8e64814.entry.js → p-8dd8bab2.entry.js} +1 -1
- package/dist/realtimekit-ui/p-8e9ff91e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-2251059d.entry.js → p-91735c98.entry.js} +1 -1
- package/dist/realtimekit-ui/p-a09b6b2c.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f42001bb.entry.js → p-aac14289.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6f913b9b.entry.js → p-b5d279fd.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-cedff249.entry.js → p-b7bbc696.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-fc0eb2e6.entry.js → p-d1a6e546.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c8239122.entry.js → p-d3acf8e9.entry.js} +1 -1
- package/dist/realtimekit-ui/p-d5af89d0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d3d4e6de.entry.js → p-e62baf7c.entry.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-ai/rtk-ai.d.ts +6 -0
- package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +6 -0
- package/dist/types/components/rtk-idle-screen/rtk-idle-screen.d.ts +11 -0
- package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +6 -0
- package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +6 -0
- package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +6 -0
- package/dist/types/components/rtk-setup-screen/rtk-setup-screen.d.ts +1 -0
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +6 -0
- package/dist/types/components.d.ts +128 -0
- package/dist/types/types/props.d.ts +1 -0
- package/dist/types/utils/full-screen.d.ts +1 -1
- package/package.json +2 -3
- package/dist/realtimekit-ui/p-14dc10b8.entry.js +0 -1
- package/dist/realtimekit-ui/p-5ef7cf76.entry.js +0 -1
- package/dist/realtimekit-ui/p-9599b2e4.entry.js +0 -1
- package/dist/realtimekit-ui/p-bb907330.entry.js +0 -1
- package/dist/realtimekit-ui/p-f8089097.entry.js +0 -1
- /package/dist/realtimekit-ui/{p-02f19345.js → p-3974d97a.js} +0 -0
|
@@ -86,6 +86,11 @@ export { MeetingMode as MeetingMode1 } from "./components/rtk-meeting/rtk-meetin
|
|
|
86
86
|
export { ViewerCountVariant } from "./components/rtk-viewer-count/rtk-viewer-count";
|
|
87
87
|
export { Peer as Peer1 } from ".";
|
|
88
88
|
export namespace Components {
|
|
89
|
+
/**
|
|
90
|
+
* An AI assistant component for meeting interactions.
|
|
91
|
+
* Provides AI-powered features like transcription, summarization, and
|
|
92
|
+
* intelligent meeting assistance. Can be displayed in different view modes.
|
|
93
|
+
*/
|
|
89
94
|
interface RtkAi {
|
|
90
95
|
/**
|
|
91
96
|
* Config
|
|
@@ -391,6 +396,11 @@ export namespace Components {
|
|
|
391
396
|
*/
|
|
392
397
|
"variant": ControlBarVariant;
|
|
393
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
* A modal for sending broadcast messages to all meeting participants.
|
|
401
|
+
* Allows hosts and moderators to send important announcements that
|
|
402
|
+
* appear prominently to all users in the meeting.
|
|
403
|
+
*/
|
|
394
404
|
interface RtkBroadcastMessageModal {
|
|
395
405
|
/**
|
|
396
406
|
* Icon pack
|
|
@@ -1599,6 +1609,10 @@ export namespace Components {
|
|
|
1599
1609
|
* Meeting
|
|
1600
1610
|
*/
|
|
1601
1611
|
"meeting": Meeting;
|
|
1612
|
+
/**
|
|
1613
|
+
* States object
|
|
1614
|
+
*/
|
|
1615
|
+
"states": States;
|
|
1602
1616
|
/**
|
|
1603
1617
|
* Language
|
|
1604
1618
|
*/
|
|
@@ -1787,6 +1801,11 @@ export namespace Components {
|
|
|
1787
1801
|
*/
|
|
1788
1802
|
"t": RtkI18n1;
|
|
1789
1803
|
}
|
|
1804
|
+
/**
|
|
1805
|
+
* A toggle button for starting/stopping livestream broadcasting.
|
|
1806
|
+
* Only visible to users with livestream permissions. Allows hosts to
|
|
1807
|
+
* broadcast the meeting to external streaming platforms.
|
|
1808
|
+
*/
|
|
1790
1809
|
interface RtkLivestreamToggle {
|
|
1791
1810
|
/**
|
|
1792
1811
|
* Icon pack
|
|
@@ -2686,6 +2705,11 @@ export namespace Components {
|
|
|
2686
2705
|
*/
|
|
2687
2706
|
"view": ParticipantsViewMode;
|
|
2688
2707
|
}
|
|
2708
|
+
/**
|
|
2709
|
+
* A component that displays participants waiting in the stage queue.
|
|
2710
|
+
* Shows users who are waiting to be promoted to the stage in meetings
|
|
2711
|
+
* with stage functionality enabled.
|
|
2712
|
+
*/
|
|
2689
2713
|
interface RtkParticipantsStageQueue {
|
|
2690
2714
|
/**
|
|
2691
2715
|
* Config
|
|
@@ -2842,6 +2866,11 @@ export namespace Components {
|
|
|
2842
2866
|
*/
|
|
2843
2867
|
"t": RtkI18n;
|
|
2844
2868
|
}
|
|
2869
|
+
/**
|
|
2870
|
+
* A toggle button for enabling/disabling Picture-in-Picture mode.
|
|
2871
|
+
* Allows users to switch the video display to a floating window that stays
|
|
2872
|
+
* on top of other applications.
|
|
2873
|
+
*/
|
|
2845
2874
|
interface RtkPipToggle {
|
|
2846
2875
|
/**
|
|
2847
2876
|
* Config
|
|
@@ -3371,6 +3400,11 @@ export namespace Components {
|
|
|
3371
3400
|
*/
|
|
3372
3401
|
"view": RtkSidebarView;
|
|
3373
3402
|
}
|
|
3403
|
+
/**
|
|
3404
|
+
* A sidebar UI component with tabbed navigation.
|
|
3405
|
+
* Provides a container for sidebar content with tab switching functionality.
|
|
3406
|
+
* Can be displayed as a sidebar or in full-screen mode.
|
|
3407
|
+
*/
|
|
3374
3408
|
interface RtkSidebarUi {
|
|
3375
3409
|
/**
|
|
3376
3410
|
* Default tab to open
|
|
@@ -4236,6 +4270,11 @@ declare global {
|
|
|
4236
4270
|
interface HTMLRtkAiElementEventMap {
|
|
4237
4271
|
"rtkStateUpdate": States;
|
|
4238
4272
|
}
|
|
4273
|
+
/**
|
|
4274
|
+
* An AI assistant component for meeting interactions.
|
|
4275
|
+
* Provides AI-powered features like transcription, summarization, and
|
|
4276
|
+
* intelligent meeting assistance. Can be displayed in different view modes.
|
|
4277
|
+
*/
|
|
4239
4278
|
interface HTMLRtkAiElement extends Components.RtkAi, HTMLStencilElement {
|
|
4240
4279
|
addEventListener<K extends keyof HTMLRtkAiElementEventMap>(type: K, listener: (this: HTMLRtkAiElement, ev: RtkAiCustomEvent<HTMLRtkAiElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4241
4280
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -4394,6 +4433,11 @@ declare global {
|
|
|
4394
4433
|
interface HTMLRtkBroadcastMessageModalElementEventMap {
|
|
4395
4434
|
"rtkStateUpdate": States1;
|
|
4396
4435
|
}
|
|
4436
|
+
/**
|
|
4437
|
+
* A modal for sending broadcast messages to all meeting participants.
|
|
4438
|
+
* Allows hosts and moderators to send important announcements that
|
|
4439
|
+
* appear prominently to all users in the meeting.
|
|
4440
|
+
*/
|
|
4397
4441
|
interface HTMLRtkBroadcastMessageModalElement extends Components.RtkBroadcastMessageModal, HTMLStencilElement {
|
|
4398
4442
|
addEventListener<K extends keyof HTMLRtkBroadcastMessageModalElementEventMap>(type: K, listener: (this: HTMLRtkBroadcastMessageModalElement, ev: RtkBroadcastMessageModalCustomEvent<HTMLRtkBroadcastMessageModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4399
4443
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5204,6 +5248,11 @@ declare global {
|
|
|
5204
5248
|
message: string;
|
|
5205
5249
|
};
|
|
5206
5250
|
}
|
|
5251
|
+
/**
|
|
5252
|
+
* A toggle button for starting/stopping livestream broadcasting.
|
|
5253
|
+
* Only visible to users with livestream permissions. Allows hosts to
|
|
5254
|
+
* broadcast the meeting to external streaming platforms.
|
|
5255
|
+
*/
|
|
5207
5256
|
interface HTMLRtkLivestreamToggleElement extends Components.RtkLivestreamToggle, HTMLStencilElement {
|
|
5208
5257
|
addEventListener<K extends keyof HTMLRtkLivestreamToggleElementEventMap>(type: K, listener: (this: HTMLRtkLivestreamToggleElement, ev: RtkLivestreamToggleCustomEvent<HTMLRtkLivestreamToggleElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5209
5258
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -5609,6 +5658,11 @@ declare global {
|
|
|
5609
5658
|
prototype: HTMLRtkParticipantsStageListElement;
|
|
5610
5659
|
new (): HTMLRtkParticipantsStageListElement;
|
|
5611
5660
|
};
|
|
5661
|
+
/**
|
|
5662
|
+
* A component that displays participants waiting in the stage queue.
|
|
5663
|
+
* Shows users who are waiting to be promoted to the stage in meetings
|
|
5664
|
+
* with stage functionality enabled.
|
|
5665
|
+
*/
|
|
5612
5666
|
interface HTMLRtkParticipantsStageQueueElement extends Components.RtkParticipantsStageQueue, HTMLStencilElement {
|
|
5613
5667
|
}
|
|
5614
5668
|
var HTMLRtkParticipantsStageQueueElement: {
|
|
@@ -5693,6 +5747,11 @@ declare global {
|
|
|
5693
5747
|
interface HTMLRtkPipToggleElementEventMap {
|
|
5694
5748
|
"rtkStateUpdate": States1;
|
|
5695
5749
|
}
|
|
5750
|
+
/**
|
|
5751
|
+
* A toggle button for enabling/disabling Picture-in-Picture mode.
|
|
5752
|
+
* Allows users to switch the video display to a floating window that stays
|
|
5753
|
+
* on top of other applications.
|
|
5754
|
+
*/
|
|
5696
5755
|
interface HTMLRtkPipToggleElement extends Components.RtkPipToggle, HTMLStencilElement {
|
|
5697
5756
|
addEventListener<K extends keyof HTMLRtkPipToggleElementEventMap>(type: K, listener: (this: HTMLRtkPipToggleElement, ev: RtkPipToggleCustomEvent<HTMLRtkPipToggleElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
5698
5757
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -6073,6 +6132,11 @@ declare global {
|
|
|
6073
6132
|
"tabChange": string;
|
|
6074
6133
|
"sidebarClose": void;
|
|
6075
6134
|
}
|
|
6135
|
+
/**
|
|
6136
|
+
* A sidebar UI component with tabbed navigation.
|
|
6137
|
+
* Provides a container for sidebar content with tab switching functionality.
|
|
6138
|
+
* Can be displayed as a sidebar or in full-screen mode.
|
|
6139
|
+
*/
|
|
6076
6140
|
interface HTMLRtkSidebarUiElement extends Components.RtkSidebarUi, HTMLStencilElement {
|
|
6077
6141
|
addEventListener<K extends keyof HTMLRtkSidebarUiElementEventMap>(type: K, listener: (this: HTMLRtkSidebarUiElement, ev: RtkSidebarUiCustomEvent<HTMLRtkSidebarUiElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
6078
6142
|
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -6488,6 +6552,11 @@ declare global {
|
|
|
6488
6552
|
}
|
|
6489
6553
|
}
|
|
6490
6554
|
declare namespace LocalJSX {
|
|
6555
|
+
/**
|
|
6556
|
+
* An AI assistant component for meeting interactions.
|
|
6557
|
+
* Provides AI-powered features like transcription, summarization, and
|
|
6558
|
+
* intelligent meeting assistance. Can be displayed in different view modes.
|
|
6559
|
+
*/
|
|
6491
6560
|
interface RtkAi {
|
|
6492
6561
|
/**
|
|
6493
6562
|
* Config
|
|
@@ -6846,6 +6915,11 @@ declare namespace LocalJSX {
|
|
|
6846
6915
|
*/
|
|
6847
6916
|
"variant"?: ControlBarVariant;
|
|
6848
6917
|
}
|
|
6918
|
+
/**
|
|
6919
|
+
* A modal for sending broadcast messages to all meeting participants.
|
|
6920
|
+
* Allows hosts and moderators to send important announcements that
|
|
6921
|
+
* appear prominently to all users in the meeting.
|
|
6922
|
+
*/
|
|
6849
6923
|
interface RtkBroadcastMessageModal {
|
|
6850
6924
|
/**
|
|
6851
6925
|
* Icon pack
|
|
@@ -8209,6 +8283,10 @@ declare namespace LocalJSX {
|
|
|
8209
8283
|
* Meeting
|
|
8210
8284
|
*/
|
|
8211
8285
|
"meeting"?: Meeting;
|
|
8286
|
+
/**
|
|
8287
|
+
* States object
|
|
8288
|
+
*/
|
|
8289
|
+
"states"?: States;
|
|
8212
8290
|
/**
|
|
8213
8291
|
* Language
|
|
8214
8292
|
*/
|
|
@@ -8436,6 +8514,11 @@ declare namespace LocalJSX {
|
|
|
8436
8514
|
*/
|
|
8437
8515
|
"t"?: RtkI18n1;
|
|
8438
8516
|
}
|
|
8517
|
+
/**
|
|
8518
|
+
* A toggle button for starting/stopping livestream broadcasting.
|
|
8519
|
+
* Only visible to users with livestream permissions. Allows hosts to
|
|
8520
|
+
* broadcast the meeting to external streaming platforms.
|
|
8521
|
+
*/
|
|
8439
8522
|
interface RtkLivestreamToggle {
|
|
8440
8523
|
/**
|
|
8441
8524
|
* Icon pack
|
|
@@ -9377,6 +9460,11 @@ declare namespace LocalJSX {
|
|
|
9377
9460
|
*/
|
|
9378
9461
|
"view"?: ParticipantsViewMode;
|
|
9379
9462
|
}
|
|
9463
|
+
/**
|
|
9464
|
+
* A component that displays participants waiting in the stage queue.
|
|
9465
|
+
* Shows users who are waiting to be promoted to the stage in meetings
|
|
9466
|
+
* with stage functionality enabled.
|
|
9467
|
+
*/
|
|
9380
9468
|
interface RtkParticipantsStageQueue {
|
|
9381
9469
|
/**
|
|
9382
9470
|
* Config
|
|
@@ -9545,6 +9633,11 @@ declare namespace LocalJSX {
|
|
|
9545
9633
|
*/
|
|
9546
9634
|
"t"?: RtkI18n;
|
|
9547
9635
|
}
|
|
9636
|
+
/**
|
|
9637
|
+
* A toggle button for enabling/disabling Picture-in-Picture mode.
|
|
9638
|
+
* Allows users to switch the video display to a floating window that stays
|
|
9639
|
+
* on top of other applications.
|
|
9640
|
+
*/
|
|
9548
9641
|
interface RtkPipToggle {
|
|
9549
9642
|
/**
|
|
9550
9643
|
* Config
|
|
@@ -10154,6 +10247,11 @@ declare namespace LocalJSX {
|
|
|
10154
10247
|
*/
|
|
10155
10248
|
"view"?: RtkSidebarView;
|
|
10156
10249
|
}
|
|
10250
|
+
/**
|
|
10251
|
+
* A sidebar UI component with tabbed navigation.
|
|
10252
|
+
* Provides a container for sidebar content with tab switching functionality.
|
|
10253
|
+
* Can be displayed as a sidebar or in full-screen mode.
|
|
10254
|
+
*/
|
|
10157
10255
|
interface RtkSidebarUi {
|
|
10158
10256
|
/**
|
|
10159
10257
|
* Default tab to open
|
|
@@ -10888,6 +10986,11 @@ export { LocalJSX as JSX };
|
|
|
10888
10986
|
declare module "@stencil/core" {
|
|
10889
10987
|
export namespace JSX {
|
|
10890
10988
|
interface IntrinsicElements {
|
|
10989
|
+
/**
|
|
10990
|
+
* An AI assistant component for meeting interactions.
|
|
10991
|
+
* Provides AI-powered features like transcription, summarization, and
|
|
10992
|
+
* intelligent meeting assistance. Can be displayed in different view modes.
|
|
10993
|
+
*/
|
|
10891
10994
|
"rtk-ai": LocalJSX.RtkAi & JSXBase.HTMLAttributes<HTMLRtkAiElement>;
|
|
10892
10995
|
"rtk-ai-toggle": LocalJSX.RtkAiToggle & JSXBase.HTMLAttributes<HTMLRtkAiToggleElement>;
|
|
10893
10996
|
"rtk-ai-transcriptions": LocalJSX.RtkAiTranscriptions & JSXBase.HTMLAttributes<HTMLRtkAiTranscriptionsElement>;
|
|
@@ -10914,6 +11017,11 @@ declare module "@stencil/core" {
|
|
|
10914
11017
|
* You need to pass the `meeting` object to it.
|
|
10915
11018
|
*/
|
|
10916
11019
|
"rtk-breakout-rooms-toggle": LocalJSX.RtkBreakoutRoomsToggle & JSXBase.HTMLAttributes<HTMLRtkBreakoutRoomsToggleElement>;
|
|
11020
|
+
/**
|
|
11021
|
+
* A modal for sending broadcast messages to all meeting participants.
|
|
11022
|
+
* Allows hosts and moderators to send important announcements that
|
|
11023
|
+
* appear prominently to all users in the meeting.
|
|
11024
|
+
*/
|
|
10917
11025
|
"rtk-broadcast-message-modal": LocalJSX.RtkBroadcastMessageModal & JSXBase.HTMLAttributes<HTMLRtkBroadcastMessageModalElement>;
|
|
10918
11026
|
/**
|
|
10919
11027
|
* A button that follows RTK Design System.
|
|
@@ -11093,6 +11201,11 @@ declare module "@stencil/core" {
|
|
|
11093
11201
|
"rtk-leave-meeting": LocalJSX.RtkLeaveMeeting & JSXBase.HTMLAttributes<HTMLRtkLeaveMeetingElement>;
|
|
11094
11202
|
"rtk-livestream-indicator": LocalJSX.RtkLivestreamIndicator & JSXBase.HTMLAttributes<HTMLRtkLivestreamIndicatorElement>;
|
|
11095
11203
|
"rtk-livestream-player": LocalJSX.RtkLivestreamPlayer & JSXBase.HTMLAttributes<HTMLRtkLivestreamPlayerElement>;
|
|
11204
|
+
/**
|
|
11205
|
+
* A toggle button for starting/stopping livestream broadcasting.
|
|
11206
|
+
* Only visible to users with livestream permissions. Allows hosts to
|
|
11207
|
+
* broadcast the meeting to external streaming platforms.
|
|
11208
|
+
*/
|
|
11096
11209
|
"rtk-livestream-toggle": LocalJSX.RtkLivestreamToggle & JSXBase.HTMLAttributes<HTMLRtkLivestreamToggleElement>;
|
|
11097
11210
|
/**
|
|
11098
11211
|
* A component which loads the logo from your config, or via the `logo-url` attribute.
|
|
@@ -11209,6 +11322,11 @@ declare module "@stencil/core" {
|
|
|
11209
11322
|
* run privileged actions on each participant according to your permissions.
|
|
11210
11323
|
*/
|
|
11211
11324
|
"rtk-participants-stage-list": LocalJSX.RtkParticipantsStageList & JSXBase.HTMLAttributes<HTMLRtkParticipantsStageListElement>;
|
|
11325
|
+
/**
|
|
11326
|
+
* A component that displays participants waiting in the stage queue.
|
|
11327
|
+
* Shows users who are waiting to be promoted to the stage in meetings
|
|
11328
|
+
* with stage functionality enabled.
|
|
11329
|
+
*/
|
|
11212
11330
|
"rtk-participants-stage-queue": LocalJSX.RtkParticipantsStageQueue & JSXBase.HTMLAttributes<HTMLRtkParticipantsStageQueueElement>;
|
|
11213
11331
|
/**
|
|
11214
11332
|
* A button which toggles visibility of participants.
|
|
@@ -11226,6 +11344,11 @@ declare module "@stencil/core" {
|
|
|
11226
11344
|
*/
|
|
11227
11345
|
"rtk-permissions-message": LocalJSX.RtkPermissionsMessage & JSXBase.HTMLAttributes<HTMLRtkPermissionsMessageElement>;
|
|
11228
11346
|
"rtk-pinned-message-selector": LocalJSX.RtkPinnedMessageSelector & JSXBase.HTMLAttributes<HTMLRtkPinnedMessageSelectorElement>;
|
|
11347
|
+
/**
|
|
11348
|
+
* A toggle button for enabling/disabling Picture-in-Picture mode.
|
|
11349
|
+
* Allows users to switch the video display to a floating window that stays
|
|
11350
|
+
* on top of other applications.
|
|
11351
|
+
*/
|
|
11229
11352
|
"rtk-pip-toggle": LocalJSX.RtkPipToggle & JSXBase.HTMLAttributes<HTMLRtkPipToggleElement>;
|
|
11230
11353
|
/**
|
|
11231
11354
|
* A component which loads a plugin.
|
|
@@ -11336,6 +11459,11 @@ declare module "@stencil/core" {
|
|
|
11336
11459
|
* you can customize which sections you want, and which section you want as the default.
|
|
11337
11460
|
*/
|
|
11338
11461
|
"rtk-sidebar": LocalJSX.RtkSidebar & JSXBase.HTMLAttributes<HTMLRtkSidebarElement>;
|
|
11462
|
+
/**
|
|
11463
|
+
* A sidebar UI component with tabbed navigation.
|
|
11464
|
+
* Provides a container for sidebar content with tab switching functionality.
|
|
11465
|
+
* Can be displayed as a sidebar or in full-screen mode.
|
|
11466
|
+
*/
|
|
11339
11467
|
"rtk-sidebar-ui": LocalJSX.RtkSidebarUi & JSXBase.HTMLAttributes<HTMLRtkSidebarUiElement>;
|
|
11340
11468
|
/**
|
|
11341
11469
|
* A grid component which renders only the participants in a simple grid.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const requestFullScreen: (el: HTMLElement) => void;
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const exitFullScreen: () => void;
|
|
3
3
|
export declare const isFullScreenEnabled: () => boolean;
|
|
4
4
|
export declare const isFullScreenSupported: () => any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloudflare/realtimekit-ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1-staging.2",
|
|
4
4
|
"description": "Pre-built, ready-to-use UI components and utilities for integrating with Cloudflare RealtimeKit",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
},
|
|
57
57
|
"homepage": "https://realtime.cloudflare.com",
|
|
58
58
|
"publishConfig": {
|
|
59
|
-
"
|
|
60
|
-
"tag": "latest"
|
|
59
|
+
"tag": "staging"
|
|
61
60
|
}
|
|
62
61
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,a}from"./p-a599f720.js";import{c as r,e as i,i as c}from"./p-8fc79c56.js";import{S as o}from"./p-315cd380.js";var n=function(t,e,a,r){var i,c=arguments.length,o=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(o=(c<3?i(o):c>3?i(e,a,o):i(e,a))||o);return c>3&&o&&Object.defineProperty(e,a,o),o};const s=class{constructor(e){t(this,e),this.config=r(),this.iconPack=i,this.t=c()}render(){return e(a,{key:"40d0feae613a4df0b10179faa2b08389305c6f93"},e("slot",{key:"ea791fce784fbd1fbd2642b3b51ebdcc8ad6ad57"},e("div",{key:"224e0e8d68c3650f923637aefd7a318186ceea5e",class:"ctr",part:"container"},e("rtk-logo",{key:"2d5c44766521abc60ba50a64f66349d5de7b19df",meeting:this.meeting,config:this.config,t:this.t,part:"logo"}),e("rtk-spinner",{key:"aa9bc5a73a4cb9d70e3a44303cb3cd96da8b4c5f","aria-label":"Idle, waiting for meeting data",part:"spinner",iconPack:this.iconPack}))))}};n([o()],s.prototype,"meeting",void 0),n([o()],s.prototype,"config",void 0),n([o()],s.prototype,"iconPack",void 0),n([o()],s.prototype,"t",void 0),s.style=":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}.ctr{display:flex;flex-direction:column;align-items:center;gap:var(--rtk-space-8, 32px)}rtk-logo.loaded{height:var(--rtk-space-12, 48px)}rtk-spinner{height:var(--rtk-space-12, 48px);width:var(--rtk-space-12, 48px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity))}";export{s as rtk_idle_screen}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,d as i,h as e,F as r,a}from"./p-a599f720.js";import{a as o}from"./p-6f211c3e.js";import{c as n,e as s,i as c,I as l}from"./p-8fc79c56.js";import{R as d}from"./p-eccb6d78.js";import{S as p}from"./p-315cd380.js";var h=function(t,i,e,r){var a,o=arguments.length,n=o<3?i:null===r?r=Object.getOwnPropertyDescriptor(i,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,r);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(o<3?a(n):o>3?a(i,e,n):a(i,e))||n);return o>3&&n&&Object.defineProperty(i,e,n),n};const v=class{constructor(e){t(this,e),this.stateUpdate=i(this,"rtkStateUpdate",7),this.config=n(),this.iconPack=s,this.t=c(),this.isJoining=!1,this.canEditName=!0,this.canProduceAudio=!0,this.socketStateUpdate=({state:t})=>{this.connectionState=t,"failed"===t&&(this.isJoining=!1)},this.join=async()=>{var t,i,e;if(""!==(null===(t=this.displayName)||void 0===t?void 0:t.trim())&&!this.isJoining){this.isJoining=!0,null===(i=this.meeting)||void 0===i||i.self.setName(this.displayName),l.setItem("rtk-display-name",this.displayName);try{await(null===(e=this.meeting)||void 0===e?void 0:e.joinRoom())}catch(t){this.isJoining=!1}}}}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 i,e,r;t&&(this.connectionState=null===(i=t.meta.socketState)||void 0===i?void 0:i.state,this.canEditName=null===(e=t.self.permissions.canEditDisplayName)||void 0===e||e,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,i,n,s,c,l;if(!this.meeting)return;const p=""===(null===(t=this.displayName)||void 0===t?void 0:t.trim())||"connected"!==this.connectionState||this.isJoining,h={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t},v=null===(s=null===(n=null===(i=this.meeting)||void 0===i?void 0:i.meta)||void 0===n?void 0:n.meetingTitle)||void 0===s?void 0:s.trim();return e(a,null,e("div",{class:"container"},e("div",{class:"container-tile"},e(d,{element:"rtk-participant-tile",defaults:h,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}),e("div",{class:"media-selectors"},e("rtk-microphone-selector",Object.assign({},h,{variant:"inline"})),e("rtk-camera-selector",Object.assign({},h,{variant:"inline"})),e("rtk-speaker-selector",Object.assign({},h,{variant:"inline"})))),e("div",{class:"metadata"},v&&""!==v&&e("div",{class:"meeting-title"},v),this.canEditName?e(r,null,e("div",{class:"join-as"},this.t("setup_screen.join_in_as")),e("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()}})):e("div",{class:"uneditable-name"},e("span",{class:"text"},this.t("setup_screen.join_in_as")," ")," ",e("div",{class:"name"},o(this.displayName,20))),e("rtk-button",{size:"lg",kind:"wide",onClick:this.join,disabled:p},this.isJoining?e("rtk-spinner",{iconPack:this.iconPack}):this.t("join")),"connected"!==this.connectionState&&e("div",{class:"no-network-badge"},e("rtk-icon",{size:"md",variant:"danger",icon:this.iconPack.disconnected}),this.t("failed"===this.connectionState?"network.lost_extended":"network.lost")))))}static get watchers(){return{meeting:["meetingChanged"]}}};h([p()],v.prototype,"meeting",void 0),h([p()],v.prototype,"states",void 0),h([p()],v.prototype,"config",void 0),h([p()],v.prototype,"iconPack",void 0),h([p()],v.prototype,"t",void 0),v.style=":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)}";export{v as rtk_setup_screen}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,a as t,d as i}from"./p-a599f720.js";import{C as s}from"./p-4ec77793.js";import{s as c,h as f}from"./p-6f211c3e.js";import{e as d,i as o}from"./p-8fc79c56.js";import{g as r,a as n,d as b}from"./p-40be18ee.js";import{S as l}from"./p-315cd380.js";import{T as h}from"./p-77e5605f.js";import"./p-382270d8.js";import"./p-b5e5e206.js";var k=function(e,a,t,i){var s,c=arguments.length,f=c<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,a,t,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(f=(c<3?s(f):c>3?s(a,t,f):s(a,t))||f);return c>3&&f&&Object.defineProperty(a,t,f),f};const m=class{constructor(a){e(this,a),this.now=new Date,this.isContinued=!1,this.iconPack=d,this.t=o(),this.showBubble=!1}render(){const e=c(this.message.link);return a(t,{key:"76c8da9d878e7c1fb3b8ffa315237cd913338276"},!this.isContinued&&a(s,{key:"efd7339f8335d7da577f61caa61642fe48f5a412",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"53947f39384592b44f42199a3c8eb2f4d90adafd",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"1a09d5b047cfa88912e8fada39a5cf8b0e138736",class:"file"},a("div",{key:"fc6a30c8ddb0f8ac895de7ffad4bc4c455a59dfa",class:"file-data"},a("div",{key:"4ad8fa217942ca3f61faea3ed4de9fd0f158bbb1",class:"name"},this.message.name),a("div",{key:"d4adc2dd11b6be4ce508ac50eea67e8d500f1929",class:"file-data-split"},a("div",{key:"cca022a6825fbafa4c257ac9f32f4d25f2eece2b",class:"ext"},r(this.message.name)),a("span",{key:"62917b4cb5371045f8fcee541c2cc872038a90f9",class:"divider"}),a("div",{key:"9cae7724db8096dfa64f2f2e70915fddd0b1fb43",class:"size"},n(this.message.size)))),a("rtk-button",{key:"d2645e34ed2f984fa0403820c47329fa82ae4d58",variant:"secondary",kind:"icon",onClick:()=>b(e,{name:this.message.name,fallbackName:"file"}),part:"button"},a("rtk-icon",{key:"5650ea4473efec76a2e8942fa32be671ac143fb7",icon:this.iconPack.download})))))}};k([l()],m.prototype,"iconPack",void 0),k([l()],m.prototype,"t",void 0);var y=function(e,a,t,i){var s,c=arguments.length,f=c<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,a,t,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(f=(c<3?s(f):c>3?s(a,t,f):s(a,t))||f);return c>3&&f&&Object.defineProperty(a,t,f),f};const p=class{constructor(a){e(this,a),this.stateUpdate=i(this,"rtkStateUpdate",7),this.now=new Date,this.isContinued=!1,this.iconPack=d,this.t=o(),this.showBubble=!1,this.status="loading"}render(){return a(t,{key:"f2c796e1ec01980130f206b10fe8a175ecca7a77"},!this.isContinued&&a(s,{key:"45779e0ab66b85aa48a3625093eddc9da41c5e15",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"cb1f03e098ec2c39a783ef569623af67fd5fddb0",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"9583beaf426c7d85c7bb4dfc44f114dfb46f6f46",class:{image:!0,loaded:"loaded"===this.status}},a("img",{key:"4af1c3751391b8d32968ca99ff7ff42e4e7e8317",src:c(this.message.link),onLoad:()=>{this.status="loaded"},onError:()=>{this.status="errored"},onClick:()=>{"loaded"===this.status&&this.stateUpdate.emit({image:this.message})}}),"loading"===this.status&&a("div",{key:"3afb633d9e354ac8708f8baa053482b04328bacd",class:"image-spinner",title:this.t("chat.img.loading"),"aria-label":this.t("chat.img.loading")},a("rtk-spinner",{key:"b99d2db712845cd483fb4ceda883a86fe84a73dc",iconPack:this.iconPack})),"errored"===this.status&&a("div",{key:"b80119f6feead15f8368e808038db5d09409934c",class:"image-errored",title:this.t("chat.error.img_not_found"),"aria-label":this.t("chat.error.img_not_found")},a("rtk-icon",{key:"2efcd053e7ba6e0ab60bbb3912bbc0cd949c4658",icon:this.iconPack.image_off})),"loaded"===this.status&&a("div",{key:"5fab3e9757d86a5dda14cdcf4bf47f0e068e7d8e",class:"actions"},a("rtk-button",{key:"7ea9d753fbab944d5a64899f2d464aa90efa609b",class:"action",variant:"secondary",kind:"icon",onClick:()=>{this.stateUpdate.emit({image:this.message})}},a("rtk-icon",{key:"a514098c2005f75671e08fd30be6f68e5749fad2",icon:this.iconPack.full_screen_maximize})),a("rtk-button",{key:"c5eded64f98cea9d1d950030fb1c658bb0bd4b6c",class:"action",variant:"secondary",kind:"icon",onClick:()=>b(this.message.link,{fallbackName:"image"})},a("rtk-icon",{key:"573eb181cae03693b8ac5536f167de13dce373f5",icon:this.iconPack.download}))))))}};y([l()],p.prototype,"iconPack",void 0),y([l()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.image-spinner{cursor:wait}.image-errored{cursor:not-allowed}";var v=function(e,a,t,i){var s,c=arguments.length,f=c<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,a,t,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(f=(c<3?s(f):c>3?s(a,t,f):s(a,t))||f);return c>3&&f&&Object.defineProperty(a,t,f),f};const u=class{constructor(a){e(this,a),this.now=new Date,this.isContinued=!1,this.iconPack=d,this.t=o(),this.showBubble=!1}render(){return a(t,{key:"67e6670499ec4da0e5058fb5f8fd4a507e074319"},!this.isContinued&&a(s,{key:"ebb24560c3ff255a4269b5ba2063e254f8b6b47e",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"3d9a5abfd95cf388a405f368f72c68a63b178ac1",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"f2be9eaca8a82008d68bbdf077a2611227b474d5",class:{text:!0,emoji:f(this.message.message)}},a(h,{key:"1166f0aa5a25c5ad3559e1424d9d4f3ef3e76d63",message:this.message.message}))))}};v([l()],u.prototype,"iconPack",void 0),v([l()],u.prototype,"t",void 0);export{m as rtk_file_message,p as rtk_image_message,u as rtk_text_message}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,d as a,h as e,a as i}from"./p-a599f720.js";import{e as s,i as o}from"./p-8fc79c56.js";import{S as r}from"./p-315cd380.js";var n=function(t,a,e,i){var s,o=arguments.length,r=o<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,a,e,i);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(o<3?s(r):o>3?s(a,e,r):s(a,e))||r);return o>3&&r&&Object.defineProperty(a,e,r),r};const c=class{constructor(e){t(this,e),this.stateUpdate=a(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=s,this.t=o(),this.leave=()=>{this.stateUpdate.emit({activeLeaveConfirmation:!0})}}render(){const t=this.t("leave");return e(i,{key:"ba1140c49eac63f9121a5b91f2a437b27e7e7d5e",label:t},e("rtk-controlbar-button",{key:"1cc8dac1ea7130c47364c966af69c2d9dad3f96f",size:this.size,iconPack:this.iconPack,class:"leave red-icon",onClick:this.leave,icon:this.iconPack.call_end,label:t,variant:this.variant,part:"controlbar-button"}))}};n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":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}";export{c as rtk_leave_button}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,d as r,h as e,a}from"./p-a599f720.js";import{e as i,i as o,Q as s,B as c,R as n,c as d}from"./p-8fc79c56.js";import{S as l}from"./p-315cd380.js";import{R as h}from"./p-eccb6d78.js";var p=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const b=class{constructor(e){t(this,e),this.stateUpdate=r(this,"rtkStateUpdate",7),this.loading=!1,this.roomConfig={rooms:2,step:"room-config",mode:"create",applyingChanges:!1},this.assigningParticipants=!1,this.selectedParticipants=[],this.ephemeralStatusText="",this.isDragMode=!1,this.iconPack=i,this.t=o(),this.permissionsUpdateListener=()=>{this.permissions=this.meeting.self.permissions.connectedMeetings},this.updateLocalState=t=>{this.stateManager.updateCurrentState(t),this.draftState=this.stateManager.currentState,this.meeting.connectedMeetings.isActive&&(this.roomConfig=Object.assign(Object.assign({},this.roomConfig),{mode:"edit"})),"create"!==this.roomConfig.mode||this.meeting.connectedMeetings.isActive||s(),["edit","view"].includes(this.roomConfig.mode)&&(this.roomConfig=Object.assign(Object.assign({},this.roomConfig),{rooms:t.meetings.length,step:"participants-config"}),this.selectedParticipants=[])},this.onAddNewRoom=()=>{this.stateManager.addNewMeeting(),this.draftState=this.stateManager.currentState,this.selectorRef.scrollTo({top:this.selectorRef.scrollHeight,behavior:"smooth"})},this.onRoomUpdate=t=>{const{detail:r}=t;this.stateManager.updateMeetingTitle(r.id,r.title),this.draftState=this.stateManager.currentState},this.onRoomDelete=t=>{this.stateManager.allConnectedMeetings.find((r=>r.id===t))&&(this.stateManager.deleteMeeting(t),this.draftState=this.stateManager.currentState)},this.unassignParticipant=t=>{this.stateManager.unassignParticipants([t]),this.draftState=this.stateManager.currentState},this.onUnassignAll=()=>{this.stateManager.unassignAllParticipants(),this.draftState=this.stateManager.currentState},this.assignParticipantsToRoom=t=>{0!==this.selectedParticipants.length&&0!=this.assigningParticipants&&(this.stateManager.assignParticipantsToMeeting(this.selectedParticipants,t),this.draftState=this.stateManager.currentState,this.selectedParticipants=[],this.assigningParticipants=!1,this.setEphemeralStatus(this.t("breakout_rooms.ephemeral_status.participants_assigned")))},this.handleClose=(t,r)=>{t.emit({activeBreakoutRoomsManager:{active:!0}}),r.activeBreakoutRoomsManager={active:!0}},this.enableConfirmationModal=(t="start-breakout")=>{let r={active:!0,header:"breakout_rooms.confirm_modal.start_breakout.header",content:"breakout_rooms.confirm_modal.start_breakout.content",variant:"primary",cancelText:"breakout_rooms.confirm_modal.start_breakout.cancelText",ctaText:"breakout_rooms.confirm_modal.start_breakout.ctaText",onClick:()=>this.applyChanges(),onClose:this.handleClose};"close-breakout"===t&&(r={active:!0,header:"breakout_rooms.confirm_modal.close_breakout.header",content:"breakout_rooms.confirm_modal.close_breakout.content",variant:"danger",cancelText:"cancel",ctaText:"breakout_rooms.confirm_modal.close_breakout.ctaText",onClick:()=>this.closeBreakout(),onClose:this.handleClose}),this.stateUpdate.emit({activeBreakoutRoomsManager:{active:!1},activeConfirmationModal:r})},this.close=()=>{this.stateManager.discardChanges(),this.stateUpdate.emit({activeBreakoutRoomsManager:{active:!1}})},this.applyChanges=async()=>{this.roomConfig=Object.assign(Object.assign({},this.roomConfig),{applyingChanges:!0}),await this.stateManager.applyChanges(this.meeting),this.close(),this.roomConfig=Object.assign(Object.assign({},this.roomConfig),{applyingChanges:!1})}}onSelectedParticipantsChanged(t){this.assigningParticipants=t.length>0}connectedCallback(){this.permissionsUpdateListener(),this.meeting.connectedMeetings.on("stateUpdate",this.updateLocalState),this.meeting.connectedMeetings.on("changingMeeting",this.close),this.meeting.self.permissions.on("permissionsUpdate",this.permissionsUpdateListener),this.stateManager=new c,this.fetchRoomState()}disconnectedCallback(){this.meeting.connectedMeetings.off("stateUpdate",this.updateLocalState),this.meeting.connectedMeetings.off("changingMeeting",this.close),this.meeting.self.permissions.off("permissionsUpdate",this.permissionsUpdateListener)}async fetchRoomState(){this.loading=!0,await this.meeting.connectedMeetings.getConnectedMeetings(),this.loading=!1}setEphemeralStatus(t){this.ephemeralStatusText=t,setTimeout((()=>{this.ephemeralStatusText=""}),3e3)}onCreateRooms(){this.selectedParticipants=[],this.stateManager.addNewMeetings(this.roomConfig.rooms),this.draftState=this.stateManager.currentState,this.roomConfig=Object.assign(Object.assign({},this.roomConfig),{step:"participants-config"})}onParticipantDelete(t){const{detail:r}=t,e=n(r);null!=e&&this.unassignParticipant(e)}toggleDragMode(t){this.isDragMode=t.detail}assignParticipantsRandomly(){0!==this.stateManager.unassignedParticipants.length&&(this.stateManager.assignParticipantsRandomly(),this.draftState=this.stateManager.currentState,this.setEphemeralStatus(this.t("breakout_rooms.ephemeral_status.participants_assigned_randomly")))}async joinRoom(t){const r=n(this.meeting.self);this.stateManager.assignParticipantsToMeeting([r],t),await this.applyChanges()}async closeBreakout(){this.stateManager.allConnectedMeetings.forEach((t=>this.stateManager.deleteMeeting(t.id))),await this.applyChanges()}updateSelectedParticipants(t){this.selectedParticipants=t.detail}updateAllParticipants(t){this.selectedParticipants=t.detail}getStatusText(){if(""!==this.ephemeralStatusText)return this.ephemeralStatusText;let t="";return"create"===this.roomConfig.mode&&(t=this.t("breakout_rooms.status.assign_multiple"),0!==this.selectedParticipants.length&&(t=this.t("breakout_rooms.status.select_room"))),t}getApproxDistribution(){return Math.max(1,Math.round(this.stateManager.unassignedParticipants.length/(this.roomConfig.rooms||1)))}deselectAll(){this.selectedParticipants=[]}async discardChanges(){this.stateManager.discardChanges(),await this.fetchRoomState(),this.setEphemeralStatus(this.t("breakout_rooms.ephemeral_status.changes_discarded"))}shouldShowOnlyRoomSwitcher(){return!1===this.permissions.canAlterConnectedMeetings}getPermittedRooms(){return this.permissions.canAlterConnectedMeetings||this.permissions.canSwitchConnectedMeetings?this.stateManager.allConnectedMeetings:this.stateManager.allConnectedMeetings.filter((t=>t.id===this.meeting.meta.meetingId))}renderMainRoomMaybe(){return this.meeting.connectedMeetings.isActive&&this.permissions.canSwitchToParentMeeting?e("rtk-breakout-room-manager",{key:this.stateManager.currentState.parentMeeting.id,assigningParticipants:this.assigningParticipants,isDragMode:this.isDragMode,meeting:this.meeting,mode:this.roomConfig.mode,onParticipantsAdd:()=>this.assignParticipantsToRoom(this.stateManager.currentState.parentMeeting.id),onRoomJoin:()=>this.joinRoom(this.stateManager.currentState.parentMeeting.id),onUpdate:this.onRoomUpdate,states:this.states,room:Object.assign({},this.stateManager.currentState.parentMeeting),iconPack:this.iconPack,t:this.t}):null}renderRoomSwitcher(){return e(a,null,e("div",{class:"room-switcher-container"},e("header",null,e("rtk-icon",{icon:this.iconPack.breakout_rooms}),e("span",null,this.t("breakout_rooms.join_breakout_header"))),e("div",{class:"rooms",ref:t=>this.selectorRef=t},this.renderMainRoomMaybe(),this.getPermittedRooms().map(((t,r)=>e("rtk-breakout-room-manager",{key:t.id,assigningParticipants:this.assigningParticipants,isDragMode:this.isDragMode,defaultExpanded:0===r,meeting:this.meeting,mode:this.roomConfig.mode,onDelete:()=>this.onRoomDelete(t.id),onParticipantsAdd:()=>this.assignParticipantsToRoom(t.id),onRoomJoin:()=>this.joinRoom(t.id),states:this.states,room:Object.assign({},t),iconPack:this.iconPack,t:this.t,allowDelete:!1}))))))}renderLoading(){return e(a,null,e("div",{class:"loading-content"},e("rtk-spinner",{size:"xl"})))}renderRoomConfig(){return e(a,null,e("div",{class:"room-config"},e("header",null,e("rtk-icon",{icon:this.iconPack.breakout_rooms}),e("span",null,this.t("breakout_rooms.room_config_header"))),e("div",{class:"create-room"},e("p",null,this.t("breakout_rooms.num_of_rooms")),e("rtk-counter",{value:this.roomConfig.rooms,minValue:1,iconPack:this.iconPack,t:this.t,onValueChange:t=>{this.roomConfig=Object.assign(Object.assign({},this.roomConfig),{rooms:Math.max(+t.detail,1)})}})),e("span",{class:"distribution-hint"},`${this.t("breakout_rooms.approx")} `," ",e("em",null,this.getApproxDistribution()," ",this.t("breakout_rooms.participants_per_room"))," ",this.t("breakout_rooms.division_text")),e("footer",null,e("rtk-button",{kind:"button",size:"lg",title:this.t("create"),disabled:0===this.roomConfig.rooms,onClick:()=>this.onCreateRooms()},this.t("create")))))}render(){return this.loading?this.renderLoading():this.shouldShowOnlyRoomSwitcher()?this.renderRoomSwitcher():"room-config"===this.roomConfig.step?this.renderRoomConfig():e(a,null,e("div",{class:"participant-config-wrapper"},e("div",{class:"participant-config"},e("aside",{part:"menu"},e("header",null,this.t("breakout_rooms.assign_participants")),e("rtk-breakout-room-participants",{meeting:this.meeting,iconPack:this.iconPack,t:this.t,participantIds:this.stateManager.unassignedParticipants.map(n),selectedParticipantIds:this.selectedParticipants},e("rtk-tooltip",{label:this.t("breakout_rooms.shuffle_participants"),slot:"shuffle-button"},e("rtk-button",{disabled:"edit"===this.roomConfig.mode||0===this.stateManager.unassignedParticipants.length,kind:"button",variant:"secondary",size:"md",onClick:()=>this.assignParticipantsRandomly(),class:"shuffle-button br-primary-btn"},e("rtk-icon",{icon:this.iconPack.shuffle})))),0!==this.selectedParticipants.length&&e("div",{class:"participants-assign-actions"},e("span",null,`${this.selectedParticipants.length} ${this.t("breakout_rooms.selected")}`),e("rtk-button",{disabled:"edit"===this.roomConfig.mode,kind:"button",variant:"ghost",size:"md",onClick:()=>this.deselectAll(),class:"deselect-button color-danger"},this.t("breakout_rooms.deselect")))),e("div",{class:"assign-rooms"},e("div",{class:"row"},e("p",{class:"row-header"},this.t("breakout_rooms.rooms")," (",this.stateManager.allConnectedMeetings.length,")"),!this.assigningParticipants&&e("div",{class:"cta-buttons"},e("rtk-button",{kind:"button",variant:"secondary",class:"br-primary-btn"},e("div",{onClick:this.onAddNewRoom},e("rtk-icon",{icon:this.iconPack.add}),this.t("breakout_rooms.add_room"))),0!==this.stateManager.allConnectedMeetings.flatMap((t=>t.participants)).length&&e("rtk-button",{kind:"button",variant:"ghost",onClick:this.onUnassignAll},this.t("breakout_rooms.unassign_all")))),e("div",{class:"rooms",ref:t=>this.selectorRef=t},this.renderMainRoomMaybe(),this.getPermittedRooms().map(((t,r)=>e("rtk-breakout-room-manager",{key:t.id,assigningParticipants:this.assigningParticipants,isDragMode:this.isDragMode,defaultExpanded:0===r,meeting:this.meeting,mode:this.roomConfig.mode,onDelete:()=>this.onRoomDelete(t.id),onParticipantsAdd:()=>this.assignParticipantsToRoom(t.id),onRoomJoin:()=>this.joinRoom(t.id),onUpdate:this.onRoomUpdate,states:this.states,room:Object.assign({},t),iconPack:this.iconPack,t:this.t,allowDelete:this.stateManager.allConnectedMeetings.length>1}))),e("rtk-button",{kind:"button",variant:"secondary",onClick:this.onAddNewRoom,class:"add-room-jumbo-btn br-secondary-btn"},e("div",null,e("rtk-icon",{icon:this.iconPack.add}),e("span",null,this.t("breakout_rooms.add_room_brief"))))))),e("div",{class:"participant-config-actions"},e("div",{class:{"status-bar":!0,"ephemeral-status":""!==this.ephemeralStatusText}},""!==this.ephemeralStatusText&&e("rtk-icon",{icon:this.iconPack.checkmark}),this.getStatusText()),e("div",{class:"breakout-actions"},"create"===this.roomConfig.mode&&this.permissions.canAlterConnectedMeetings&&e("rtk-button",{size:"md",class:"start-breakout-button",onClick:()=>this.enableConfirmationModal("start-breakout")},this.t("breakout_rooms.start_breakout")),"edit"===this.roomConfig.mode&&this.stateManager.hasLocalChanges&&this.permissions.canAlterConnectedMeetings&&e("rtk-button",{size:"md",class:"color-danger",variant:"ghost",onClick:()=>this.discardChanges()},this.t("breakout_rooms.discard_changes")),"edit"===this.roomConfig.mode&&this.stateManager.hasLocalChanges&&this.permissions.canAlterConnectedMeetings&&e("rtk-button",{size:"md",class:"update-breakout-button",onClick:this.applyChanges},this.t("breakout_rooms.update_breakout")),"edit"===this.roomConfig.mode&&!this.stateManager.hasLocalChanges&&this.permissions.canAlterConnectedMeetings&&e("rtk-button",{size:"md",class:"close-breakout-button",onClick:()=>this.enableConfirmationModal("close-breakout")},this.t("breakout_rooms.close_breakout"))))))}static get watchers(){return{selectedParticipants:["onSelectedParticipantsChanged"]}}};p([l()],b.prototype,"meeting",void 0),p([l()],b.prototype,"states",void 0),p([l()],b.prototype,"iconPack",void 0),p([l()],b.prototype,"t",void 0),b.style=":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)}.color-brand{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.color-danger{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}.loading-content{height:var(--rtk-space-60, 240px);width:var(--rtk-space-96, 384px);padding:var(--rtk-space-9, 36px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));display:flex;align-items:center;justify-content:center}.room-config{overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));display:flex;flex-direction:column;width:var(--rtk-space-96, 384px);padding-left:var(--rtk-space-9, 36px);padding-right:var(--rtk-space-9, 36px);padding-top:var(--rtk-space-10, 40px);padding-bottom:var(--rtk-space-10, 40px)}header{margin-bottom:var(--rtk-space-8, 32px);display:flex;align-items:center;gap:var(--rtk-space-2, 8px);font-size:24px;font-weight:600}header rtk-icon{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}.create-room{margin-bottom:var(--rtk-space-4, 16px);display:flex;align-items:center;gap:var(--rtk-space-3, 12px);width:100%}.create-room p{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-1, 4px);font-size:16px}.distribution-hint{margin-bottom:var(--rtk-space-8, 32px);font-size:14px;font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.distribution-hint em{font-style:normal;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}footer{display:flex;flex-direction:row;vertical-align:middle;justify-content:center}footer rtk-button{width:100%;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}label{margin-bottom:var(--rtk-space-3, 12px);font-weight:400;color:rgb(var(--rtk-colors-text-1000, 255 255 255));opacity:0.4}.participant-config-wrapper{width:850px;min-height:595px;max-width:100%;max-height:100%;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));display:flex;flex-direction:column}.participant-config-actions{display:flex;justify-content:space-between;padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-5, 20px);padding-bottom:var(--rtk-space-5, 20px);border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-left-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.participant-config{display:flex;flex-grow:1;flex-direction:row;overflow:hidden}aside{box-sizing:border-box;display:flex;width:var(--rtk-space-96, 384px);flex-grow:1;flex-direction:column;padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-4, 16px);border-right-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-none, 0);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-right-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity))}aside header{margin-bottom:var(--rtk-space-4, 16px);width:100%;padding-left:var(--rtk-space-0, 0px);padding-right:var(--rtk-space-0, 0px);padding-top:var(--rtk-space-8, 32px);font-size:20px;font-weight:500;line-height:2rem}.shuffle-button{display:flex;flex-direction:row;align-items:center}.shuffle-button rtk-icon{height:var(--rtk-space-8, 32px)}.participants-assign-actions{display:flex;flex-direction:row;align-items:center;justify-content:space-between;font-size:14px;padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-2, 8px);margin-left:calc(var(--rtk-space-8, 32px) * -1);margin-right:calc(var(--rtk-space-4, 16px) * -1);padding-top:var(--rtk-space-0\\.5, 2px);padding-bottom:var(--rtk-space-0\\.5, 2px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.participants-assign-actions .deselect-button{height:var(--rtk-space-6, 24px)}.participants-assign-actions .deselect-button:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.assign-rooms{padding:var(--rtk-space-8, 32px);display:flex;width:100%;flex-direction:column}.assign-rooms .disabled{opacity:0.2}.assign-rooms .back{display:flex;cursor:pointer;flex-direction:row;align-items:center;justify-content:flex-start;padding:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-0, 0px);font-size:14px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.assign-rooms .back rtk-icon{height:var(--rtk-space-5, 20px)}.assign-rooms .row{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}.assign-rooms .row-header{margin:var(--rtk-space-0, 0px);font-size:16px;line-height:2rem}.assign-rooms .cta-buttons{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px)}.assign-rooms .cta-buttons rtk-button div{display:flex;flex-direction:row;align-items:center}.assign-rooms .cta-buttons rtk-button div rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}.rooms{margin-bottom:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-1, 4px);display:flex;flex-grow:1;flex-direction:column;gap:var(--rtk-space-2, 8px);overflow-y:auto;max-height:500px}.rooms::-webkit-scrollbar{width:var(--rtk-space-1\\.5, 6px);border-radius:var(--rtk-border-radius-sm, 4px)}.rooms::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.rooms::-webkit-scrollbar-track{border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.breakout-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:var(--rtk-space-2, 8px)}.breakout-actions .start-breakout-button{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.breakout-actions .close-breakout-button{color:rgb(var(--rtk-colors-text-1000, 255 255 255));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity))}.breakout-actions .update-breakout-button{background-color:transparent;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-text-opacity));border-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity))}.status-bar{display:flex;align-items:center;font-size:14px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));width:var(--rtk-space-80, 320px)}.ephemeral-status{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.ephemeral-status rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}.room-switcher-container{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));width:468px;padding:var(--rtk-space-8, 32px)}.add-room-jumbo-btn div{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity))}.add-room-jumbo-btn div rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}.br-primary-btn:not([disabled]){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.br-primary-btn:not([disabled]):hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-bg-opacity))}.br-secondary-btn:not([disabled]){--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.br-secondary-btn:not([disabled]):hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";var g=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const k=class{constructor(e){t(this,e),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=o(),this.messagePayload={to:"Everyone",message:""},this.successMessage=!1}close(){var t;null===(t=this.stateUpdate)||void 0===t||t.emit({activeBroadcastMessageModal:!1})}sendMessage(){this.successMessage=!0,setTimeout((()=>{this.close()}),2e3)}render(){return e(a,{key:"834484040a926117171f62f1cc3af87ba60b519e"},e("div",{key:"d1ea5faed40e44eb416b07b309591383c54fdb1b",class:"content-col"},e("h2",{key:"9a776c30542a7b85d30b3a857c9a99e153df944c"},"Broadcast message to"),e("select",{key:"e94a561dc33884cdbfcc2ac7a655f7997fd3dadf",onChange:t=>{this.messagePayload=Object.assign(Object.assign({},this.messagePayload),{to:t.target.value})}},e("option",{key:"fa6feec1e8cdac987c3ecc6e45bf3325eec44046"},"Everyone"),e("option",{key:"b45c084f6860928c23e5ed3feda1b47064f12363"},"List of rooms")),e("textarea",{key:"392cf082528381245f1ef6be00da1d6d27ff0396",placeholder:"Type message here...",onInput:t=>{this.messagePayload=Object.assign(Object.assign({},this.messagePayload),{message:t.target.value})}}),this.successMessage?e("p",null,"Message sent to ",this.messagePayload.to,e("rtk-icon",{icon:this.iconPack.checkmark})):e("div",{class:"content-row"},e("rtk-button",{onClick:()=>this.close(),variant:"secondary"},"Cancel")," ",e("rtk-button",{variant:"primary",onClick:()=>this.sendMessage()},"Send"))))}};g([l()],k.prototype,"meeting",void 0),g([l()],k.prototype,"states",void 0),g([l()],k.prototype,"iconPack",void 0),g([l()],k.prototype,"t",void 0),k.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);padding:var(--rtk-space-4, 16px);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));width:400px;max-width:80%}.content-col{display:flex;width:100%;flex-direction:column}h2{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-2, 8px)}.content-row{display:flex;width:100%;flex-direction:row}.content-row rtk-button{margin-top:var(--rtk-space-4, 16px);width:100%}textarea{margin-top:var(--rtk-space-3, 12px);resize:none;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;font-family:var(--rtk-font-family, sans-serif);outline:2px solid transparent;outline-offset:2px;height:var(--rtk-space-16, 64px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}textarea::-moz-placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}textarea::placeholder{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}select{border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);outline:2px solid transparent;outline-offset:2px;border-right-width:var(--rtk-border-width-md, 2px);border-style:solid;border-color:transparent;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}p{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-2, 8px);width:100%;text-align:center;font-size:14px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));display:flex;flex-direction:row;align-items:center;justify-content:center}p rtk-icon{margin-left:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px)}";var v=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const u=class{constructor(e){t(this,e),this.stateUpdate=r(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.iconPack=i,this.t=o(),this.close=()=>{this.states.activeConfirmationModal.onClose(this.stateUpdate,this.states,this.meeting),this.stateUpdate.emit({activeConfirmationModal:{active:!1}}),this.states.activeConfirmationModal={active:!1}},this.onConfirmation=async()=>{this.states.activeConfirmationModal.onClick(this.stateUpdate,this.states,this.meeting),this.stateUpdate.emit({activeConfirmationModal:{active:!1}}),this.states.activeConfirmationModal={active:!1}}}connectedCallback(){document.addEventListener("keydown",this.keyPressListener)}componentDidLoad(){}disconnectedCallback(){document.removeEventListener("keydown",this.keyPressListener)}render(){var t,r;const i=this.states.activeConfirmationModal;return e(a,{key:"2eed83d0225e57671c7039bc014556865e8df128"},e("div",{key:"0c110b2e644334e91e3e904e79f0b6792954ef82",class:"leave-modal"},e("div",{key:"02186a0ea5072a7144bbc80a61d60c8dd9eb0fbb",class:"header"},e("h2",{key:"bfaa8ae13149b4decc820663850bdbcadd3a4edf",class:"title"},this.t(i.header?i.header:"cta.confirmation"))),i.content&&e("p",{key:"59763c35fc925fefa3a7f30fe8918f4ff9c6dc25",class:"message"},this.t(i.content)),e("div",{key:"c6245c328e93a663b89d5ae61accc6484453cca5",class:"content"},e("div",{key:"5f48291e64473e56380e624cdfd571d56075f0b8",class:"leave-meeting"},e("rtk-button",{key:"4dd43baac193b83996c305e02443e5e047cd6bc5",variant:"secondary",title:this.t(i.cancelText?i.cancelText:"cancel"),onClick:this.close,class:"br-secondary-btn"},this.t(i.cancelText?i.cancelText:"cancel")),e("rtk-button",{key:"4741c90b5191f53373657fdf184e1a1dbe15af47",onClick:()=>this.onConfirmation(),variant:null!==(r=null===(t=this.states.activeConfirmationModal)||void 0===t?void 0:t.variant)&&void 0!==r?r:"danger",title:this.t(i.ctaText?i.ctaText:"yes")},this.t(i.ctaText?i.ctaText:"yes"))))))}};v([l()],u.prototype,"meeting",void 0),v([l()],u.prototype,"states",void 0),v([l()],u.prototype,"iconPack",void 0),v([l()],u.prototype,"t",void 0),u.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--rtk-border-radius-md, 8px);padding:var(--rtk-space-8, 32px);width:100%;--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-1000, 255 255 255));width:400px;max-width:80%}.leave-modal{width:100%;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.leave-modal .header h2{margin:var(--rtk-space-0, 0px)}.leave-modal .content{font-size:14px}.leave-modal p{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px)}.leave-meeting{display:flex;flex-direction:row;justify-content:space-between;gap:var(--rtk-space-4, 16px)}.leave-meeting rtk-button{color:rgb(var(--rtk-colors-text-1000, 255 255 255));flex:1 1 0%}.br-secondary-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.br-secondary-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}";var m=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const f=class{constructor(e){t(this,e),this.stateUpdate=r(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.iconPack=i,this.t=o(),this.activeTab="audio",this.isMobileMainVisible=!1,this.progress=0}connectedCallback(){document.addEventListener("keydown",this.keyPressListener)}disconnectedCallback(){this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener)}progressUpdate(t){this.progress=t.detail}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeDebugger:!1})}getActiveTab(){switch(this.activeTab){case"audio":return this.t("debugger.audio.troubleshooting.label");case"screenshare":return this.t("debugger.screenshare.troubleshooting.label");case"video":return this.t("debugger.video.troubleshooting.label");case"system":return this.t("debugger.system.troubleshooting.label");default:return this.t("debugger.troubleshooting.label")}}render(){if(!this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t,size:this.size},r=this.getActiveTab(),i=void 0!==navigator.getBattery;return e(a,null,e("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},e("header",null,e("h3",null,this.t("debugger.troubleshooting.label"))),e("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("debugger.audio.label"),e("div",{class:"right"},e("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&e("rtk-icon",{icon:this.iconPack.chevron_right}))),e("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("debugger.video.label"),e("div",{class:"right"},e("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&e("rtk-icon",{icon:this.iconPack.chevron_right}))),e("button",{type:"button",class:{active:"screenshare"===this.activeTab},onClick:()=>this.changeTab("screenshare")},this.t("debugger.screenshare.label"),e("div",{class:"right"},e("rtk-icon",{icon:this.iconPack.share_screen_start}),"sm"===this.size&&e("rtk-icon",{icon:this.iconPack.chevron_right}))),e("button",{type:"button",class:{active:"system"===this.activeTab,hidden:!i},onClick:()=>this.changeTab("system")},this.t("debugger.system.label"),e("div",{class:"right"},e("rtk-icon",{icon:this.iconPack.settings}),"sm"===this.size&&e("rtk-icon",{icon:this.iconPack.chevron_right})))),e("main",{class:{active:this.isMobileMainVisible},part:"main-content"},"sm"===this.size&&e("header",null,e("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},e("rtk-icon",{icon:this.iconPack.chevron_left})),e("h4",null,r)),"audio"===this.activeTab&&e("rtk-debugger-audio",Object.assign({},t)),"video"===this.activeTab&&e("rtk-debugger-video",Object.assign({},t)),"screenshare"===this.activeTab&&e("rtk-debugger-screenshare",Object.assign({},t)),"system"===this.activeTab&&i&&e("rtk-debugger-system",Object.assign({},t))))}};m([l()],f.prototype,"meeting",void 0),m([l()],f.prototype,"states",void 0),m([l()],f.prototype,"iconPack",void 0),m([l()],f.prototype,"t",void 0),f.style=":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)))\n 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-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{margin-right:var(--rtk-space-2, 8px);display:flex;align-items:center;justify-content:space-between;padding-top:var(--rtk-space-0, 0px);padding-bottom:var(--rtk-space-0, 0px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}header h3{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px)}.back-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{--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;max-width:var(--rtk-space-56, 224px) !important;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / 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:14px;--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-5, 20px);width:var(--rtk-space-5, 20px)}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)}aside button.hidden{display:none}main{position:relative;box-sizing:border-box;display:flex;height:100%;width:100%;flex-direction:column}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));width:100% !important;max-width:100% !important;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 button.hidden{display:none}:host([size='sm']) aside.hide{display:none}aside button:host([size='sm']) aside.hide{display:none}:host([size='sm']) aside button:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;height:100%;width:100%;padding:var(--rtk-space-0, 0px)}aside button:host([size='sm']) main{display:none}:host([size='sm']) aside button:host([size='sm']) main{display:none}:host([size='sm']) main.active{display:block}:host([size='sm']) header{margin:var(--rtk-space-0, 0px);justify-content:center}:host([size='sm']) header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}::-webkit-scrollbar{width:8px}::-webkit-scrollbar-track{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))}::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}::-webkit-scrollbar-thumb:hover{border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.progress-bar{height:var(--rtk-space-1, 4px);width:100%;overflow:hidden;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.progress-indicator{height:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}";var x=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const y=class{constructor(e){t(this,e),this.stateUpdate=r(this,"rtkStateUpdate",7),this.joinStage=r(this,"rtkJoinStage",7),this.leaveStage=r(this,"rtkLeaveStage",7),this.config=d(),this.iconPack=i,this.t=o(),this.dataConfig={title:this.t("stage.join_title"),label:{accept:this.t("stage.join_confirm"),reject:this.t("stage.join_cancel")},description:this.t("stage.join_summary")},this.isLoading=!1}render(){var t,r;const i={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return e(a,{key:"2000c74c7b15b8ad8cc8d7b2940ee1c47c504111",class:{stage:!0}},e("header",{key:"1be2b7c17338f42472bd47c761e8a972d960eb45"},e("h2",{key:"8a2d2e49eb154fc58f121f26c067519473007aa1"},this.dataConfig.title)),e(h,{key:"17476c475c67d3eedfce7e66a2dc1829211e6f7b",element:"rtk-participant-setup",defaults:i,props:{participant:null===(t=this.meeting)||void 0===t?void 0:t.self,size:"md"},childProps:{participant:null===(r=this.meeting)||void 0===r?void 0:r.self,size:"md"},deepProps:!0}),e("div",{key:"708a514d2f5c903c5e01161a374455134f9c5fde",class:"summary"},this.dataConfig.description),e("div",{key:"690c062b55469b6d2757628cf9c841db05cb50dd",class:"container"},e("rtk-button",{key:"3c840601730f7c31da94f58fcc7a36fa7f2e98ac",variant:"secondary",onClick:()=>this.leaveStage.emit(),title:this.dataConfig.label.reject},this.dataConfig.label.reject),e("rtk-button",{key:"d4838af3f9b36c6d91ce04d9862840ee838111de",onClick:()=>{this.isLoading||(this.isLoading=!0,this.joinStage.emit())},title:this.dataConfig.label.accept},this.isLoading?e("rtk-icon",{icon:this.iconPack.spinner}):this.dataConfig.label.accept)))}};x([l()],y.prototype,"meeting",void 0),x([l()],y.prototype,"config",void 0),x([l()],y.prototype,"states",void 0),x([l()],y.prototype,"iconPack",void 0),x([l()],y.prototype,"t",void 0),y.style=":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)))\n 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::-webkit-scrollbar{width:var(--rtk-space-1\\.5, 6px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}:host::-webkit-scrollbar-thumb{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host(.stage){box-sizing:border-box;display:block;width:512px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding:var(--rtk-space-6, 24px);-webkit-user-select:none;-moz-user-select:none;user-select:none;overflow:auto;border-radius:var(--rtk-border-radius-md, 8px);line-height:1.25}:host(.stage) rtk-participant-setup{display:flex;flex:1 1 0%;align-items:center;justify-content:space-around;margin-left:auto;margin-right:auto}:host(.stage) .container rtk-button{flex-grow:1;padding:var(--rtk-space-1, 4px);width:50%}:host(.stage) .container rtk-button:nth-child(1){margin-right:var(--rtk-space-1\\.5, 6px)}:host(.stage) .container rtk-button:nth-child(2){margin-left:var(--rtk-space-1\\.5, 6px)}:host(.stage) h2{font-size:24px;font-weight:500;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host(.stage) header{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host(.stage) .summary{padding:var(--rtk-space-4, 16px)}.deny-access{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.container{width:100%;max-width:1080px;display:flex;flex:1 1 0%;align-items:center;justify-content:space-around}header{display:flex;align-items:center;justify-content:space-between}";var w=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const _=class{constructor(e){t(this,e),this.stateUpdate=r(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.iconPack=i,this.t=o(),this.canEndMeeting=!1,this.isBreakoutRoomsActive=!1,this.isChildMeeting=!1,this.canJoinMainRoom=!1,this.permissionsUpdateListener=()=>{this.canEndMeeting=this.meeting.self.permissions.kickParticipant,this.canJoinMainRoom=this.meeting.self.permissions.connectedMeetings.canSwitchToParentMeeting},this.close=()=>{this.stateUpdate.emit({activeLeaveConfirmation:!1})},this.handleLeave=()=>{var t;null===(t=this.meeting)||void 0===t||t.leaveRoom(),this.close()},this.handleJoinMainRoom=()=>{this.meeting.connectedMeetings.moveParticipants(this.meeting.meta.meetingId,this.meeting.connectedMeetings.parentMeeting.id,[this.meeting.self.userId]),this.close()},this.handleEndMeeting=()=>{var t;null===(t=this.meeting)||void 0===t||t.participants.kickAll(),this.close()}}connectedCallback(){this.meetingChanged(this.meeting),document.addEventListener("keydown",this.keyPressListener)}disconnectedCallback(){var t;document.removeEventListener("keydown",this.keyPressListener),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){null!=t&&(this.isBreakoutRoomsActive=this.meeting.connectedMeetings.supportsConnectedMeetings&&this.meeting.connectedMeetings.isActive,this.isChildMeeting=this.meeting.connectedMeetings.supportsConnectedMeetings&&this.meeting.connectedMeetings.meetings.some((r=>r.id===t.meta.meetingId)),this.meeting.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener),this.permissionsUpdateListener())}render(){return e(a,{key:"2c6988ec78abec3e2eee5fa1dc9d9276d9b77e0a"},e("div",{key:"0cafb5ec2dd215fde89a12c2c1ead9e5f29df017",class:"leave-modal"},e("div",{key:"766eb28182ae10ccc1709d5662c0ec9001b2fab1",class:"header"},e("h2",{key:"446c4c5ddcffbc5a23bb5b1f12511138c056d855",class:"title"},this.t("leave"))),e("p",{key:"ecc21313d241ca4da229fbcc99c31f9a21cc6a16",class:"message"},this.t(this.isBreakoutRoomsActive&&this.isChildMeeting?"breakout_rooms.leave_confirmation":"leave_confirmation")),e("div",{key:"3f9140c825f3dafe74a19269386578f41052f89c",class:"content"},e("rtk-button",{key:"78f52a153437dfa9f450132b61fd66979836b020",variant:"secondary",onClick:this.close,class:"secondary-btn"},this.t("cancel")),this.isBreakoutRoomsActive&&this.isChildMeeting&&this.canJoinMainRoom&&e("rtk-button",{key:"f8a70a7b5b448567e4db67d8febfc475e5b5df35",variant:"secondary",onClick:this.handleJoinMainRoom,class:"secondary-btn"},this.t("breakout_rooms.leave_confirmation.main_room_btn")),e("rtk-button",{key:"7108e14f1f94f45e47b55899d5c2d323b3f82f14",variant:"danger",title:this.t("leave"),onClick:this.handleLeave},this.t("leave")),this.canEndMeeting&&e("rtk-button",{key:"38b07ece29d359370c27161ff644459277e26233",variant:"danger",class:"secondary-btn secondary-danger-btn",onClick:this.handleEndMeeting},this.t("end.all")))))}static get watchers(){return{meeting:["meetingChanged"]}}};w([l()],_.prototype,"meeting",void 0),w([l()],_.prototype,"states",void 0),w([l()],_.prototype,"iconPack",void 0),w([l()],_.prototype,"t",void 0),_.style=":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)}.leave-modal{width:var(--rtk-space-72, 288px)}@media (min-width: 768px){.leave-modal{width:var(--rtk-space-96, 384px)}}.leave-modal{position:relative;display:flex;flex-direction:column;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding:var(--rtk-space-8, 32px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.leave-modal .header h2{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-3, 12px)}.leave-modal .message{color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.leave-modal .content{margin-top:var(--rtk-space-4, 16px);font-size:14px;display:flex;flex-wrap:wrap;gap:var(--rtk-space-4, 16px)}.leave-modal .content rtk-button{height:var(--rtk-space-9, 36px);min-width:var(--rtk-space-44, 176px);flex-grow:1}.leave-modal .content .secondary-btn{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.leave-modal .content .secondary-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.leave-modal .content .secondary-danger-btn{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";var j=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const C=class{constructor(e){t(this,e),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=o(),this.allowUnmute=!0,this.onClose=()=>{this.stateUpdate.emit({activeMuteAllConfirmation:!1})},this.onMuteAll=()=>{var t;null===(t=this.meeting)||void 0===t||t.participants.disableAllAudio(this.allowUnmute),this.onClose()}}render(){return e(a,{key:"09ac6d366f7e831dc4c230a095362e3052d6b660"},e("div",{key:"b61c716f655d8498369a44fc428eaa66cc3ac3e4",class:"leave-modal"},e("div",{key:"fd29e553be01e54aca6103150eb93ee813165910",class:"header"},e("h2",{key:"0f51a2bd668ee218fd24ed2c159bb9b3a242de69",class:"title"},this.t("mute_all.header"))),e("p",{key:"ad73531526726e07ecb12ce0cee079ec13eba45b",class:"message"},this.t("mute_all.description")),e("div",{key:"0b1afc1be6bdcbbe938f381f0d03cd6dbb5fd78d",class:"content"},e("div",{key:"7df30df11df3ac465be7d2efc5b8192788cb25f0",class:"leave-meeting"},e("rtk-button",{key:"f53cf09dd418a9df6d48d1bbb9b5a39effbdfd89",variant:"secondary",title:this.t("close"),onClick:this.onClose},this.t("cancel")),e("rtk-button",{key:"a459d494e2087c8794f4b0dd31b1544b59628916",variant:"danger",title:this.t("mute_all"),onClick:this.onMuteAll},this.t("mute_all"))))))}};j([l()],C.prototype,"meeting",void 0),j([l()],C.prototype,"states",void 0),j([l()],C.prototype,"iconPack",void 0),j([l()],C.prototype,"t",void 0),C.style=":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;-webkit-user-select:none;-moz-user-select:none;user-select:none}.leave-modal{position:relative;display:flex;flex-direction:column;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.leave-modal .header h2{margin:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-3, 12px)}.leave-modal .content{font-size:14px}.leave-message p{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px)}.leave-meeting{display:flex;flex-direction:row;justify-content:space-between;gap:var(--rtk-space-2, 8px)}.leave-meeting rtk-button{flex:1 1 0%}.end-meeting{margin-top:var(--rtk-space-2, 8px)}.message{margin-bottom:var(--rtk-space-4, 16px)}label{display:flex;align-items:center}input[type='checkbox']{margin-right:var(--rtk-space-2, 8px);accent-color:rgb(var(--rtk-colors-brand-500, 33 96 253))}";var z=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const O=class{constructor(e){t(this,e),this.stateUpdate=r(this,"rtkStateUpdate",7),this.iconPack=i,this.t=o()}connectedCallback(){this.states.activeOverlayModal.timeout&&setTimeout((()=>{this.stateUpdate.emit({activeOverlayModal:{active:!1}})}),this.states.activeOverlayModal.timeout)}render(){return e(a,{key:"f5a1c1c5237881a419062ba14e2545bbd1281482"},e("rtk-icon",{key:"39229b9afcb15d8bcb428bce4bb9e73862b5f9ea",icon:this.states.activeOverlayModal.icon}),e("h2",{key:"44a7256fef3163a3b058e1fb20f0081fc6dc5df9"},this.states.activeOverlayModal.title),e("p",{key:"50416aebd7ee213bb4698d0b0095875e5556299d"},this.states.activeOverlayModal.description))}};z([l()],O.prototype,"meeting",void 0),z([l()],O.prototype,"states",void 0),z([l()],O.prototype,"iconPack",void 0),z([l()],O.prototype,"t",void 0),O.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / 0.6);position:fixed;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);z-index:50}rtk-icon{height:var(--rtk-space-20, 80px)}h2{margin:var(--rtk-space-2, 8px);font-weight:500}p{margin:var(--rtk-space-0, 0px);font-size:16px}";var R=function(t,r,e,a){var i,o=arguments.length,s=o<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,r,e,a);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(r,e,s):i(r,e))||s);return o>3&&s&&Object.defineProperty(r,e,s),s};const P={"Chrome.Desktop.audio":["Chrome1.svg","Chrome2.svg","Chrome3.svg"],"Chrome.Desktop.video":["Chrome1.svg","Chrome2.svg","Chrome3.svg"]},M=class{constructor(e){t(this,e),this.stateUpdate=r(this,"rtkStateUpdate",7),this.t=o(),this.iconPack=i,this.currentStep=0,this.svgSteps=[],this.continue=()=>{this.stateUpdate.emit({activePermissionsMessage:{enabled:!1}})},this.reload=()=>{"undefined"!=typeof window&&window.location.reload()},this.getImage=async t=>{function r(t,r,e){return t.split(r).join(e)}const e=await fetch(`https://rtk-assets.realtime.cloudflare.com/ui-kit/permissions/${t}`);let a=await e.text();return a=r(a,"yoursite.com",location.host),a=r(a,"Yoursite",document.title.length>14?`${document.title.slice(0,14)}...`:document.title),a},this.nextStep=()=>{this.currentStep=(this.currentStep+1)%this.svgSteps.length},this.openMacSystemSettings=()=>{const t=document.createElement("a");switch(this.mediaType){case"audio":t.href="x-apple.systempreferences:com.apple.preference.security?Privacy_Microphone";break;case"screenshare":t.href="x-apple.systempreferences:com.apple.preference.security?Privacy_ScreenCapture";break;case"video":t.href="x-apple.systempreferences:com.apple.preference.security?Privacy_Camera"}t.click()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.stepsTimer&&clearTimeout(this.stepsTimer)}meetingChanged(t){var r,e,a;if(null!=t){this.device=t.self.device;const i=(null===(r=this.device)||void 0===r?void 0:r.isMobile)?"Mobile":"Desktop",o=null!==(a=P[`${null===(e=this.device)||void 0===e?void 0:e.browserName}.${i}.${this.mediaType}`])&&void 0!==a?a:[];Promise.all(o.map(this.getImage)).then((t=>{this.svgSteps=t}))}}getLink(t){let r;switch(t){case"audio":r="microphone";break;case"video":r="camera";break;default:r="screenshare"}let e=`Allow+${r}+access`;if(null!=this.device){const{browserName:t,isMobile:r}=this.device;e+="+"+t,r&&(e+="+mobile")}return"https://www.google.com/search?q="+e}isDeniedBySystem(){var t;const r=null===(t=this.meeting)||void 0===t?void 0:t.self.mediaPermissions;return null!=r&&"SYSTEM_DENIED"===r[this.mediaType]}getTitle(){const t=this.isDeniedBySystem();return this.t(t?`perm_sys_denied.${this.mediaType}`:`perm_denied.${this.mediaType}`)}get mediaType(){var t,r,e;return null!==(e=null===(r=null===(t=this.states)||void 0===t?void 0:t.activePermissionsMessage)||void 0===r?void 0:r.kind)&&void 0!==e?e:"audio"}getMessage(){var t;const{browserName:r,osName:e}=this.meeting.self.device,a=this.isDeniedBySystem(),i=null!==(t=r.toLowerCase())&&void 0!==t?t:"others";if(a){const t=`perm_sys_denied.${this.mediaType}.${(null!=e?e:"others").toLowerCase()}.message`;return this.t(t)===t?this.t(`perm_sys_denied.${this.mediaType}.others.message`):this.t(t)}const o=`perm_denied.${this.mediaType}.${i}.message`;return this.t(o)===o?this.t(`perm_denied.${this.mediaType}.others.message`):this.t(o)}render(){var t,r,i;const o=this.isDeniedBySystem();this.svgSteps.length>0&&(this.stepsTimer&&clearTimeout(this.stepsTimer),this.stepsTimer=setTimeout(this.nextStep,2500));const s=o&&"macOS"==this.meeting.self.device.osName;return e(a,{key:"4039ee7e099db1e32b90619998663e1eec6b5636"},e("h2",{key:"1508f630cd15cf10818a68862e559229ab6fa67c"},e("rtk-icon",{key:"585e52aef1f40b78782ab28cf18fb1fcb84e2e52",class:"text-icon",icon:this.iconPack.warning}),this.getTitle()),this.svgSteps.length>0&&e("div",{key:"734e887eff67190ef6d69ebd5986e56f3f9f9622",class:"svg-container"},this.svgSteps.map(((t,r)=>e("p",{innerHTML:t,class:"svg-ins",key:this.currentStep,hidden:r!==this.currentStep})))),e("div",{key:"98f2aab426b5f566e6550ba4d731a6d3ff7e0db2"},this.getMessage()),!o&&e("a",{key:"b6bb451aa68e871779404e734b6b7628214dc20c",class:"need-help-link",href:this.getLink(null!==(i=null===(r=null===(t=this.states)||void 0===t?void 0:t.activePermissionsMessage)||void 0===r?void 0:r.kind)&&void 0!==i?i:"audio"),target:"_blank",rel:"noreferrer external noreferrer noopener"},e("rtk-icon",{key:"d52a30a9e660fe79e401fcd18ef176616f33c8bc",class:"text-icon",icon:this.iconPack.attach}),this.t("cta.help")),e("div",{key:"bbf73dbe6c30b9ee7da51e4a73baf00d2c0c2536",class:"actions"},e("rtk-button",{key:"af07b342e5d0357827df64dfa576647faebe40c1",size:"lg",kind:"wide",variant:"secondary",onClick:this.continue},this.t("cta.continue")),s?e("rtk-button",{size:"lg",kind:"wide",onClick:this.openMacSystemSettings},this.t("cta.system_settings")):e("rtk-button",{size:"lg",kind:"wide",onClick:this.reload},this.t("cta.reload"))),e("slot",{key:"dd59fc9130e7e69563646681fa6f86efd292d5d6"}))}static get watchers(){return{meeting:["meetingChanged"]}}};R([l()],M.prototype,"meeting",void 0),R([l()],M.prototype,"t",void 0),R([l()],M.prototype,"iconPack",void 0),R([l()],M.prototype,"states",void 0),M.style=":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:block;max-height:100%;width:600px;overflow-y:auto;padding:var(--rtk-space-6, 24px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));overflow-wrap:break-word;color:rgb(var(--rtk-colors-text-1000, 255 255 255));word-wrap:break-word}.actions{display:flex;align-items:center;gap:var(--rtk-space-2, 8px)}.text-icon{display:inline-block;vertical-align:middle}h2{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px)}h2 .text-icon{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}p{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-4, 16px)}.need-help-link{margin-top:var(--rtk-space-2, 8px);display:inline-block;text-underline-offset:2px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-400, 53 110 253) / var(--tw-text-opacity))}.need-help-link:hover{--tw-text-opacity:1;color:rgba(var(--rtk-colors-brand-600, 13 81 253) / var(--tw-text-opacity))}a rtk-icon{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) .actions{flex-direction:column;align-items:flex-start;justify-content:center}:host([size='sm']) .action{width:100%;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}.actions{margin-top:var(--rtk-space-6, 24px)}.actions rtk-button{flex:1 1 0%}.svg-container{display:flex;width:100%;justify-content:center !important}.svg-ins{width:80%;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}";export{b as rtk_breakout_rooms_manager,k as rtk_broadcast_message_modal,u as rtk_confirmation_modal,f as rtk_debugger,y as rtk_join_stage,_ as rtk_leave_meeting,C as rtk_mute_all_confirmation,O as rtk_overlay_modal,M as rtk_permissions_message}
|
|
File without changes
|