@cloudflare/realtimekit-ui 1.1.0 → 1.1.1-staging.1
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/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-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 +5 -5
- 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-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 +5 -5
- 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/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-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-2232de67.js → p-a6c17b0d.js} +3 -3
- package/dist/components/{p-abf952f5.js → p-ad179bea.js} +1 -1
- 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-6ac87493.js → p-d0b9b4a1.js} +2 -2
- 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-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 +5 -5
- 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/loader.js +137 -70
- 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-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 +5 -5
- 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-10d4354c.entry.js → p-0511529f.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-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/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/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
|
@@ -31,7 +31,7 @@ const RtkLeaveButton = class {
|
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
33
|
const text = this.t('leave');
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'f9d5f5cbd3323721da299d2422fee1bd17c65535', label: text }, h("rtk-controlbar-button", { key: 'f33758dc5b8d3f31cfeefed9b7fd8e0a10b9fd76', size: this.size, iconPack: this.iconPack, class: "leave red-icon", onClick: this.leave, icon: this.iconPack.call_end, label: text, variant: this.variant, part: "controlbar-button" })));
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
__decorate([
|
|
@@ -262,11 +262,11 @@ const RtkMessageListView = class {
|
|
|
262
262
|
this.updateTotalHeight();
|
|
263
263
|
}
|
|
264
264
|
render() {
|
|
265
|
-
return (h("div", { key: '
|
|
265
|
+
return (h("div", { key: '9c8a4073886acf540a8beeea0ac31f865231f771', class: "scrollbar content-wrapper", ref: (el) => (this.$listRef = el), onScroll: this.handleScroll }, h("div", { key: 'c64abddfc09ec7c88305b732df889f9de0597b53', class: "scroller" }, h("div", { key: 'c3e94f33890509b22f2b89022a76865f6776b217', style: {
|
|
266
266
|
height: `${this.totalHeight}px`,
|
|
267
|
-
} }), h("div", { key: '
|
|
267
|
+
} }), h("div", { key: 'f8c95faa0af4b1f31465a113707f0e4f753dadad', class: "smallest-dom-element", id: "list-end", ref: (el) => (this.$listEndRef = el) })), h("div", { key: '02d045f8c54072388c3c7df52ff4c92f2438a545', class: "content", style: {
|
|
268
268
|
transform: `translateY(${this.getRangeSize(0, this.range.start)}px)`,
|
|
269
|
-
} }, this.isFetching && (h("div", { key: '
|
|
269
|
+
} }, this.isFetching && (h("div", { key: '7ba90240987e1ecfb553d69bd7465cb20bb86274', class: "loader" }, h("rtk-spinner", { key: '2fa19c46da125e4c5280625aefdf555f09ce2faa', size: "md" }))), this.getVisibleItems().map((msg, index) => (h("div", { key: msg.id, ref: (el) => this.rendererInternal(el, msg, index) }))))));
|
|
270
270
|
}
|
|
271
271
|
static get watchers() { return {
|
|
272
272
|
"messages": ["messagesUpdated"]
|
|
@@ -49,10 +49,10 @@ const RtkMoreToggle = class {
|
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
51
|
const text = this.t('more');
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '16c3abc8550c71c16a99c3fccab792f102995142', title: text }, this.states.activeMoreMenu && (h("div", { key: 'bbe79e428f395a429586776c1cd53f3a4dafde72', class: "more-menu" }, h("slot", { key: '54bd0e016bce80d279d8e4214e8bf978e14f1c0a', name: "more-elements" }))), h("rtk-controlbar-button", { key: '242815c9b79d2f3c99f3289125756dbc2cff835f', size: this.size, iconPack: this.iconPack, onClick: (e) => {
|
|
53
53
|
e.stopPropagation();
|
|
54
54
|
this.toggleMoreMenu();
|
|
55
|
-
}, icon: this.iconPack.horizontal_dots, label: text, part: "controlbar-button" }), h("slot", { key: '
|
|
55
|
+
}, icon: this.iconPack.horizontal_dots, label: text, part: "controlbar-button" }), h("slot", { key: '7bd36f0994c7fd9ffe5591fd8b325ed521fbda6c', name: "expanded" })));
|
|
56
56
|
}
|
|
57
57
|
get host() { return getElement(this); }
|
|
58
58
|
};
|
|
@@ -47,9 +47,9 @@ const RtkNotification = class {
|
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
49
|
var _a;
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: 'd8f87edf560d58d8c50524a8d5d15b78372e2f0a' }, h("div", { key: '0d1590baa03f69ae6b7aeb8ecfb0227393e68296', class: "ctr" }, this.notification.icon != null && (h("rtk-icon", { key: '65f2e9ca0e53e0d5f41301346930f60983218bff', class: "icon", icon: this.notification.icon, variant: (_a = this.notification.iconVariant) !== null && _a !== void 0 ? _a : 'primary' })), this.notification.image != null &&
|
|
51
51
|
this.notification.icon == null &&
|
|
52
|
-
this.imageState !== 'errored' && (h("img", { key: '
|
|
52
|
+
this.imageState !== 'errored' && (h("img", { key: '728d4bc0a6ba7978a7bf922dab208b0a53cca149', src: this.notification.image, class: { loaded: this.imageState === 'loaded' }, onLoad: () => (this.imageState = 'loaded'), onError: () => (this.imageState = 'errored') })), h("p", { key: 'f0908696b480de954e8d87f8588fb2d7caa05c9e', class: "message" }, h(TextMessageView, { key: '6727949c1a6100f04c58dfbceb32b65268dfbfd3', message: this.notification.message })), h("div", { key: '00f22a20100da8c6faa3d94b5cda8c37a201b953', class: "right" }, this.notification.button != null && (h("rtk-button", { key: 'd8e609d225ba6c8ff0aedad1efcaf84fd8f0183e', size: "sm", variant: this.notification.button.variant, onClick: () => this.notification.button.onClick() }, this.notification.button.text)), h("button", { key: '1fb7a3610c1197359f4c9f9e0a40ae67c2874447', onClick: () => this.dismiss.emit(this.notification.id), class: "dismiss" }, h("rtk-icon", { key: 'a13f8cb2e31921910b29aa53df15741cd78b860e', "aria-label": this.t('dismiss'), icon: this.iconPack.dismiss }))))));
|
|
53
53
|
}
|
|
54
54
|
static get watchers() { return {
|
|
55
55
|
"paused": ["pausedChanged"],
|
|
@@ -86,11 +86,11 @@ const RtkParticipantSetup = class {
|
|
|
86
86
|
}
|
|
87
87
|
render() {
|
|
88
88
|
var _a, _b, _c, _d;
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '496e80e4d4c85229f6acc90d7caa46305c92e101' }, h("video", { key: 'b09d1e7ace8f7bb561997fcbddc41a7acbe91e51', ref: (el) => (this.videoEl = el), class: {
|
|
90
90
|
visible: (_a = this.videoState) === null || _a === void 0 ? void 0 : _a.videoEnabled,
|
|
91
91
|
mirror: this.isMirrored(),
|
|
92
92
|
[(_d = (_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.config) === null || _c === void 0 ? void 0 : _c.videoFit) !== null && _d !== void 0 ? _d : 'cover']: true,
|
|
93
|
-
}, autoPlay: true, playsInline: true, muted: true }), h("slot", { key: '
|
|
93
|
+
}, autoPlay: true, playsInline: true, muted: true }), h("slot", { key: 'da2678d7a8c226b23ffc6258fd90f3632efec30c' })));
|
|
94
94
|
}
|
|
95
95
|
static get watchers() { return {
|
|
96
96
|
"participant": ["participantsChanged"],
|
|
@@ -399,12 +399,12 @@ const RtkVirtualizedParticipantList = class {
|
|
|
399
399
|
render() {
|
|
400
400
|
var _a;
|
|
401
401
|
const totalHeight = this.items.length * this.itemHeight; // Total height of the list
|
|
402
|
-
return (h("div", { key: '
|
|
402
|
+
return (h("div", { key: '279498eedaa6605456a2fffc004bd0204179ffde', class: "virtual-list-container", style: {
|
|
403
403
|
position: 'relative',
|
|
404
404
|
height: '100%',
|
|
405
405
|
overflowX: 'hidden',
|
|
406
406
|
overflowY: 'auto',
|
|
407
|
-
} }, h("div", { key: '
|
|
407
|
+
} }, h("div", { key: 'debb114c51c7c229b72cfcd7e87aa845ab6647e1', style: { height: `${totalHeight}px`, position: 'relative' } }, !((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) ? this.emptyListElement : this.renderItems()), h("div", { key: '7a97a5dd632fe6d4227674e46e091a1466c725bf', style: { height: `${this.itemHeight}px` } })));
|
|
408
408
|
}
|
|
409
409
|
get el() { return getElement(this); }
|
|
410
410
|
static get watchers() { return {
|
|
@@ -180,7 +180,7 @@ const RtkParticipantsAudio = class {
|
|
|
180
180
|
await this.handleEvents(meeting);
|
|
181
181
|
}
|
|
182
182
|
render() {
|
|
183
|
-
return (h(Host, { key: '
|
|
183
|
+
return (h(Host, { key: 'b4dc66ad5570492c73e3fc2d88f92c67de90c392' }, this.showPlayDialog && (h("rtk-dialog", { key: 'b0e893eee0ce675ba927f4bbb817ab7c0c4473f6', open: true, onRtkDialogClose: this.onRtkDialogClose, hideCloseButton: true, disableEscapeKey: true, iconPack: this.iconPack, t: this.t }, h("div", { key: 'a0f78ba76265d38a77dfbbe0bc680052f3d0393c', class: "modal" }, h("h3", { key: 'b150dc2862b2c626ecf27a5e78de86c98309ddee' }, this.t('audio_playback.title')), h("p", { key: 'f4a8eb77ba14a074eb105741240e3cb6765364bf' }, this.t('audio_playback.description')), h("rtk-button", { key: 'c6fc0f2d1e4d48f2d187fca780fafee841e69175', kind: "wide", onClick: () => {
|
|
184
184
|
this.audio.play();
|
|
185
185
|
this.onRtkDialogClose();
|
|
186
186
|
}, title: this.t('audio_playback') }, this.t('audio_playback')))))));
|
|
@@ -104,7 +104,7 @@ const RtkParticipants = class {
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
render() {
|
|
107
|
-
return (h(Host, { key: '
|
|
107
|
+
return (h(Host, { key: '82b79281405ea4012121471e245fd23b3b9c7bc6' }, h("div", { key: '231fbe8a811f49a92f6b16fb06e7246aebee7b77', class: "participants-container" }, !this.hideHeader && (h("div", { key: '0398c09c5c203bb6e581d3c016910542f36ba0d5', class: "heading-count", part: "heading-count" }, this.t('participants'), " (", this.participants.length, ")")), h("rtk-virtualized-participant-list", { key: '7e33ce03b36d42fd91f360e7bcd19d08d77a5ac0', items: this.participants, renderItem: this.createParticipantNode, part: "participants", class: "participants", emptyListElement: h("div", { class: "empty-stage-list" }, this.search.length > 0 ? this.t('search.could_not_find') : this.t('search.empty')) }))));
|
|
108
108
|
}
|
|
109
109
|
static get watchers() { return {
|
|
110
110
|
"meeting": ["meetingChanged"],
|
|
@@ -56,7 +56,7 @@ const RtkPlugins = class {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '14fa34c2c6d5ef9f1739b4b3a916ebf418b6f1e1' }, h("ul", { key: '705bf03c63c0848f80874277024ec91fad2ccfa1', class: "scrollbar" }, this.plugins.map((plugin) => (h("li", { key: plugin.name, class: "plugin" }, h("div", { class: "metadata" }, h("img", { src: plugin.picture }), h("div", { class: "name" }, plugin.name)), !this.activatedPluginsId.includes(plugin.id) && this.canStartPlugins && (h("div", { class: "buttons" }, h("rtk-button", { kind: "icon", size: "lg", onClick: () => {
|
|
60
60
|
plugin.activate();
|
|
61
61
|
this.close();
|
|
62
62
|
}, "aria-label": `${this.t('activate')} ${plugin.name}` }, h("rtk-icon", { icon: this.iconPack.rocket, tabIndex: -1, "aria-hidden": true })))), this.activatedPluginsId.includes(plugin.id) && this.canClosePlugins && (h("div", { class: "buttons" }, h("rtk-button", { kind: "icon", size: "lg", onClick: () => {
|
|
@@ -149,14 +149,14 @@ const RtkPolls = class {
|
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
151
|
var _a, _b;
|
|
152
|
-
return (h(Host, { key: '
|
|
152
|
+
return (h(Host, { key: '0e868573a28a637e9df91a0c2e10bc1a73da2848' }, h("div", { key: '63cf282074f7c9eb248c4a645f6798001379907b', class: "ctr", part: "container" }, h("div", { key: '3237128bcbff4b513970e9832f26326a8be1cf56', class: "polls-view scrollbar", ref: (el) => (this.pollEl = el), part: "polls" }, this.polls.length == 0 && this.create !== true && (h("div", { key: '12b3c463d0f63f0a62ab33f17c0f18bb44fa0408', class: "empty-polls" }, this.t('polls.empty'))), this.polls.map((item) => {
|
|
153
153
|
var _a;
|
|
154
154
|
return (h("rtk-poll", { key: item.id, poll: item, onRtkVotePoll: (e) => {
|
|
155
155
|
this.onVote(e.detail.id, e.detail.index);
|
|
156
156
|
}, self: (_a = this.meeting) === null || _a === void 0 ? void 0 : _a.self.userId, iconPack: this.iconPack, t: this.t, permissions: this.permissions }));
|
|
157
|
-
}), this.create && (h("rtk-poll-form", { key: '
|
|
157
|
+
}), this.create && (h("rtk-poll-form", { key: 'fb8b90bb86654aa8742ced745f88e5fbdc9282bf', part: "poll-form", onRtkCreatePoll: (e) => {
|
|
158
158
|
this.onCreate(e.detail);
|
|
159
|
-
}, iconPack: this.iconPack, t: this.t }))), ((_b = (_a = this.permissions) === null || _a === void 0 ? void 0 : _a.polls) === null || _b === void 0 ? void 0 : _b.canCreate) && (h("rtk-button", { key: '
|
|
159
|
+
}, iconPack: this.iconPack, t: this.t }))), ((_b = (_a = this.permissions) === null || _a === void 0 ? void 0 : _a.polls) === null || _b === void 0 ? void 0 : _b.canCreate) && (h("rtk-button", { key: '7fffe35088db7620b4301145c6efa2f6da05153c', kind: "wide", onClick: () => this.toggleCreateState(), variant: this.create ? 'secondary' : 'primary', part: "button" }, this.create ? this.t('polls.cancel') : this.t('polls.create'))))));
|
|
160
160
|
}
|
|
161
161
|
static get watchers() { return {
|
|
162
162
|
"meeting": ["meetingChanged"]
|
|
@@ -36,7 +36,7 @@ const RtkPolls = class {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
const hasVoted = this.poll.voted.includes(this.self);
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: '69e61c49e0f7f2015538447a8862bdb7fd3b4840' }, h("div", { key: '00dec58cb19f30a4fc01926dd383edb270cd61c3', class: "ctr" }, h("p", { key: '04d88ddf1f20e1a7e5b017f058b585723498f474', class: "poll-title" }, this.t('polls.by'), " ", shorten(formatName(this.poll.createdBy), 20)), h("div", { key: '5432167291df04bc4a4bfa23117df79c8512027d', class: "poll" }, h("p", { key: 'bee55a8193f96f582cf1c3006393740ab652dea7', class: "poll-question" }, this.poll.question), h("div", { key: 'aefe01131512e992e756196b5b451d4423bb9635', class: "poll-answers" }, h("span", { key: '973f566c9d84a6519f7ab307fd072215fe76f72d' }, this.t('polls.answers')), h("span", { key: '2a87b4bd72b99916cf20070c792742d04c1a44ca' }, this.poll.voted.length)), this.poll.options.map((item, index) => (h("div", { class: {
|
|
40
40
|
active: item.votes.some((x) => x.id === this.self),
|
|
41
41
|
'open-vote': this.permissions.polls.canVote && !hasVoted,
|
|
42
42
|
'poll-option': true,
|
|
@@ -120,10 +120,10 @@ const RtkPoll = class {
|
|
|
120
120
|
this.onCreate.emit(pollObject);
|
|
121
121
|
}
|
|
122
122
|
render() {
|
|
123
|
-
return (h(Host, { key: '
|
|
123
|
+
return (h(Host, { key: 'ff160dd70e52bfa8a0c5116acea73a16cb84b9b8' }, h("div", { key: '2f14946249e12cbc38db8cca86d370030286dc8e', class: "create-poll" }, h("p", { key: 'a6e3704c58e3526aa2e0f517f529c7ee48627f30' }, this.t('polls.question')), h("textarea", { key: '6b076d162f80cc4e08ecc9379e829f37d43d06bb', onInput: () => {
|
|
124
124
|
if (this.error && this.error.code === 0)
|
|
125
125
|
this.error = undefined;
|
|
126
|
-
}, ref: (e) => (this.question = e), placeholder: this.t('polls.question.placeholder') }), this.options.map((item, index) => (h("div", { class: "option" }, h("input", { placeholder: this.t('polls.option.placeholder'), value: item, onInput: (event) => this.updateOption(event, index) }), index > 1 && (h("rtk-button", { kind: "icon", class: "auto remove-option", variant: "secondary", onClick: () => this.removeOption(index) }, h("rtk-icon", { icon: this.iconPack.subtract })))))), h("rtk-button", { key: '
|
|
126
|
+
}, ref: (e) => (this.question = e), placeholder: this.t('polls.question.placeholder') }), this.options.map((item, index) => (h("div", { class: "option" }, h("input", { placeholder: this.t('polls.option.placeholder'), value: item, onInput: (event) => this.updateOption(event, index) }), index > 1 && (h("rtk-button", { kind: "icon", class: "auto remove-option", variant: "secondary", onClick: () => this.removeOption(index) }, h("rtk-icon", { icon: this.iconPack.subtract })))))), h("rtk-button", { key: 'be4055b21c6c810d0721fe2daf3308011b2c6d8f', class: "add-option", variant: "secondary", onClick: () => this.addOption() }, this.t('polls.option')), h("label", { key: '0e22f9da27289adf831d5a9458237aa11758fd41' }, h("input", { key: '577da1d275259a4e9ebffedf153f52e799172c42', id: "anonymous", type: "checkbox", onChange: (e) => (this.anonymous = e.target.checked) }), this.t('polls.results.anon')), h("label", { key: 'c06bcbfb6d15125c614764002985d20713e672a4' }, h("input", { key: '9e9bb29126ed51c0bbd06481b44f690d737fbb64', id: "hideVotes", type: "checkbox", disabled: this.anonymous, checked: this.anonymous ? true : this.hideVotes, onChange: (e) => (this.hideVotes = e.target.checked) }), this.t('polls.results.hide')), h("rtk-button", { key: 'ab48323f46db1f6e485bea960f6d7ec6bb684075', kind: "wide", onClick: () => this.handleSubmit() }, this.t('polls.create')), this.error && h("span", { key: '1d61b167ee24001d0b66acdb361262bf7f2ffcc6', class: "error-text" }, this.error.message))));
|
|
127
127
|
}
|
|
128
128
|
};
|
|
129
129
|
__decorate([
|
|
@@ -43,7 +43,7 @@ const RtkRecordingIndicator = class {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
render() {
|
|
46
|
-
return (h(Host, { key: '
|
|
46
|
+
return (h(Host, { key: 'c4246e4721b0ca5fbc689a90688f1239df60ecad', "data-hidden": !this.isRecording }, this.isRecording && (h("div", { key: 'ce19b3649bba8a91cd22770534762c932b934557', class: "indicator", "aria-label": this.t('recording.indicator'), part: "indicator" }, h("rtk-icon", { key: '9d2ae89fef0d4e1e0d3546f765f48be8a6da6b5a', icon: this.iconPack.recording, "aria-hidden": true, tabIndex: -1, part: "icon" }), h("span", { key: 'cedf044a1a96c164022d734be2baf7e568fb849e' }, this.t('recording.label'))))));
|
|
47
47
|
}
|
|
48
48
|
static get watchers() { return {
|
|
49
49
|
"meeting": ["meetingChanged"]
|
|
@@ -105,7 +105,7 @@ const RtkScreenshareView = class {
|
|
|
105
105
|
const icon = this.isFullScreen
|
|
106
106
|
? this.iconPack.full_screen_minimize
|
|
107
107
|
: this.iconPack.full_screen_maximize;
|
|
108
|
-
return (h(Host, { key: '
|
|
108
|
+
return (h(Host, { key: '9ee4407d83a5b437f91813eedec6fd0836620a8c', class: { isSelf } }, h("div", { key: "video-container", id: "video-container", class: { expand: this.videoExpanded } }, h("video", { key: 'bfbee68ee2700aba43d1aae85a8456c40dc55244', ref: (el) => (this.videoEl = el), class: {
|
|
109
109
|
visible: this.screenShareEnabled,
|
|
110
110
|
'fit-in-container': this.participant.supportsRemoteControl,
|
|
111
111
|
}, playsInline: true, onPlay: () => {
|
|
@@ -113,15 +113,15 @@ const RtkScreenshareView = class {
|
|
|
113
113
|
screenshareParticipant: this.participant,
|
|
114
114
|
participant: this.meeting.self,
|
|
115
115
|
});
|
|
116
|
-
}, autoPlay: true, muted: true, id: `screen-share-video-${this.participant.id}` })), h("div", { id: "controls", key: "controls" }, !this.hideFullScreenButton && !isSelf && isFullScreenSupported() && (h("rtk-tooltip", { key: '
|
|
116
|
+
}, autoPlay: true, muted: true, id: `screen-share-video-${this.participant.id}` })), h("div", { id: "controls", key: "controls" }, !this.hideFullScreenButton && !isSelf && isFullScreenSupported() && (h("rtk-tooltip", { key: '25d8a59dae9afe875761f4ecaaae6d8f0c12792c', label: text }, h("rtk-button", { key: '9b294b9b0a987c8e54f6bca1ab3edc3e1a5238f9', id: "full-screen-btn", kind: "icon", onClick: this.toggleFullScreen, title: text }, h("rtk-icon", { key: 'd768caec415a0b75f42d39cfb15f3821264046da', icon: icon, "aria-hidden": true, tabIndex: -1 }))))), isSelf && (h("div", { id: "self-message", key: "self-message" }, h("h3", { key: '7f4802409d87bb07dedac257e75f3e1d23ca4757' }, this.t('screenshare.shared')), h("div", { key: 'acd80c0b62e14b88c1a0c717814dcdc49c1c5a40', class: "actions" }, this.meeting != null && (h("rtk-button", { key: '721fc83372b3a9752b06fbffa61072f88aa9e1b0', variant: "danger", onClick: () => {
|
|
117
117
|
this.meeting.self.disableScreenShare();
|
|
118
|
-
} }, h("rtk-icon", { key: '
|
|
118
|
+
} }, h("rtk-icon", { key: '7aa2e4a597a1411e000209c6db95babf9c7f0366', icon: this.iconPack.share_screen_stop, slot: "start" }), this.t('screenshare.stop'))), h("rtk-button", { key: '4243b29230fc663db287f7db50dd4b5a8345a9bd', variant: "secondary", id: "expand-btn", onClick: () => {
|
|
119
119
|
this.videoExpanded = !this.videoExpanded;
|
|
120
|
-
} }, h("rtk-icon", { key: '
|
|
120
|
+
} }, h("rtk-icon", { key: '09c4a34f83662e5d1749e1dfd449d25da92c9976', icon: this.videoExpanded
|
|
121
121
|
? this.iconPack.full_screen_minimize
|
|
122
122
|
: this.iconPack.full_screen_maximize, slot: "start" }), this.videoExpanded
|
|
123
123
|
? this.t('screenshare.min_preview')
|
|
124
|
-
: this.t('screenshare.max_preview'))))), h("slot", { key: '
|
|
124
|
+
: this.t('screenshare.max_preview'))))), h("slot", { key: 'a2046aecd50bc6fc0b8fb94a781bdd25c1d491ea' })));
|
|
125
125
|
}
|
|
126
126
|
get host() { return getElement(this); }
|
|
127
127
|
static get watchers() { return {
|
|
@@ -33,7 +33,7 @@ const RtkSettingsToggle = class {
|
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
35
35
|
const text = this.t('settings');
|
|
36
|
-
return (h(Host, { key: '
|
|
36
|
+
return (h(Host, { key: '921afc41ed4a6019ff882c896855ab455b3edfb7', title: text }, h("rtk-controlbar-button", { key: '88d4194fee24f1b96769e06e3a935d516ad543b0', part: "controlbar-button", size: this.size, iconPack: this.iconPack, onClick: () => this.toggleSettings(), icon: this.iconPack.settings, label: text, variant: this.variant })));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
__decorate([
|
|
@@ -32,13 +32,26 @@ const RtkSetupScreen = class {
|
|
|
32
32
|
this.canProduceAudio = true;
|
|
33
33
|
this.socketStateUpdate = ({ state }) => {
|
|
34
34
|
this.connectionState = state;
|
|
35
|
+
if (state === 'connected') {
|
|
36
|
+
this.joinError = undefined;
|
|
37
|
+
}
|
|
35
38
|
if (state === 'failed')
|
|
36
39
|
this.isJoining = false;
|
|
37
40
|
};
|
|
38
41
|
this.join = async () => {
|
|
39
42
|
var _a, _b, _c;
|
|
40
43
|
if (((_a = this.displayName) === null || _a === void 0 ? void 0 : _a.trim()) !== '' && !this.isJoining) {
|
|
44
|
+
if (this.connectionState !== 'connected') {
|
|
45
|
+
if (this.connectionState) {
|
|
46
|
+
this.joinError =
|
|
47
|
+
this.connectionState === 'failed'
|
|
48
|
+
? this.t('network.lost_extended')
|
|
49
|
+
: this.t('network.lost');
|
|
50
|
+
}
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
41
53
|
this.isJoining = true;
|
|
54
|
+
this.joinError = undefined;
|
|
42
55
|
(_b = this.meeting) === null || _b === void 0 ? void 0 : _b.self.setName(this.displayName);
|
|
43
56
|
gracefulStorage.setItem('rtk-display-name', this.displayName);
|
|
44
57
|
try {
|
|
@@ -46,6 +59,7 @@ const RtkSetupScreen = class {
|
|
|
46
59
|
}
|
|
47
60
|
catch (e) {
|
|
48
61
|
this.isJoining = false;
|
|
62
|
+
this.joinError = (e === null || e === void 0 ? void 0 : e.message) ? e.message : this.t('network.lost_extended');
|
|
49
63
|
}
|
|
50
64
|
}
|
|
51
65
|
};
|
|
@@ -74,6 +88,12 @@ const RtkSetupScreen = class {
|
|
|
74
88
|
if (!this.meeting) {
|
|
75
89
|
return;
|
|
76
90
|
}
|
|
91
|
+
const showSocketError = !!this.connectionState && this.connectionState !== 'connected' && !this.joinError;
|
|
92
|
+
const errorText = this.joinError
|
|
93
|
+
? this.joinError
|
|
94
|
+
: this.connectionState === 'failed'
|
|
95
|
+
? this.t('network.lost_extended')
|
|
96
|
+
: this.t('network.lost');
|
|
77
97
|
const disabled = ((_a = this.displayName) === null || _a === void 0 ? void 0 : _a.trim()) === '' || this.connectionState !== 'connected' || this.isJoining;
|
|
78
98
|
const defaults = {
|
|
79
99
|
meeting: this.meeting,
|
|
@@ -92,9 +112,7 @@ const RtkSetupScreen = class {
|
|
|
92
112
|
if (e.key === 'Enter') {
|
|
93
113
|
this.join();
|
|
94
114
|
}
|
|
95
|
-
} }))) : (h("div", { class: "uneditable-name" }, h("span", { class: "text" }, this.t('setup_screen.join_in_as'), " "), ' ', h("div", { class: "name" }, shorten(this.displayName, 20)))), h("rtk-button", { size: "lg", kind: "wide", onClick: this.join, disabled: disabled }, this.isJoining ? h("rtk-spinner", { iconPack: this.iconPack }) : this.t('join')), this.
|
|
96
|
-
? this.t('network.lost_extended')
|
|
97
|
-
: this.t('network.lost')))))));
|
|
115
|
+
} }))) : (h("div", { class: "uneditable-name" }, h("span", { class: "text" }, this.t('setup_screen.join_in_as'), " "), ' ', h("div", { class: "name" }, shorten(this.displayName, 20)))), h("rtk-button", { size: "lg", kind: "wide", onClick: this.join, disabled: disabled }, this.isJoining ? h("rtk-spinner", { iconPack: this.iconPack }) : this.t('join')), (this.joinError || showSocketError) && (h("div", { class: "no-network-badge" }, h("rtk-icon", { size: "md", variant: "danger", icon: this.iconPack.disconnected }), errorText))))));
|
|
98
116
|
}
|
|
99
117
|
static get watchers() { return {
|
|
100
118
|
"meeting": ["meetingChanged"]
|
|
@@ -69,11 +69,11 @@ const RtkSidebarUi = class {
|
|
|
69
69
|
render() {
|
|
70
70
|
const isFullScreen = this.view === 'full-screen';
|
|
71
71
|
const activeTab = this.tabs.find((tab) => tab.id === this.currentTab);
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: '239f279ceccceeaa57181d4a71f3e04ede4132ce', ref: (el) => (this.hostEl = el), class: this.view }, !this.hideCloseAction && (h("rtk-button", { key: '921847fd946de305dce6f1fc7fe8a9ff175e38ee', ref: (el) => (this.closeButton = el), variant: "ghost", kind: "icon", class: "close", onClick: this.onClose, "aria-label": this.t('close') }, h("rtk-icon", { key: '1de9f1edf8ecce2d0390b7b8a1253de02affd9d1', icon: this.iconPack.dismiss }))), activeTab && !this.hideHeader && (h("header", { key: '4cd288feeb658e62d3ad1efd47aea237119918e1', class: "main-header" }, h("h3", { key: 'd6c4129537b4e090f3c429c66057be9a1072a864' }, activeTab.name), h("slot", { key: 'dfb1ea30cfa476b515a3a4b628c036083f1fe0a5', name: "pinned-state" }))), isFullScreen && (h("header", { key: '7dafb426628960ba26718530417854a533de3664', class: "mobile-tabs" }, this.tabs.map((tab) => (h("button", { onClick: () => {
|
|
73
73
|
this.tabChange.emit(tab.id);
|
|
74
74
|
}, class: {
|
|
75
75
|
active: this.currentTab === tab.id,
|
|
76
|
-
} }, tab.name))))), h("slot", { key: '
|
|
76
|
+
} }, tab.name))))), h("slot", { key: '2696ccd9fcad418ad7738164cd5a9e6305320899', name: this.currentTab })));
|
|
77
77
|
}
|
|
78
78
|
static get watchers() { return {
|
|
79
79
|
"currentTab": ["handleFocusCloseButton"]
|
|
@@ -67,13 +67,13 @@ const RtkSpotlightGrid = class {
|
|
|
67
67
|
t: this.t,
|
|
68
68
|
};
|
|
69
69
|
const nonPinnedParticipants = this.participants.filter((p) => this.pinnedParticipants.some((pt) => pt.id != p.id));
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '1cb846cc92b660a8244d16a74f48dfadcef903b6' }, h("main", { key: '8564f8b0bf6e7bd668132e2833fe73c73855d090', part: "main" }, h(Render, { key: '61b96f305727dc74de15f4c3c645069d6300afd9', element: "rtk-simple-grid", defaults: defaults, props: {
|
|
71
71
|
part: 'main-grid',
|
|
72
72
|
participants: this.pinnedParticipants,
|
|
73
73
|
aspectRatio: this.aspectRatio,
|
|
74
74
|
gap: this.gap,
|
|
75
75
|
size: this.getAdaptiveSize(this.pinnedParticipants.length),
|
|
76
|
-
} })), nonPinnedParticipants.length > 0 && (h("aside", { key: '
|
|
76
|
+
} })), nonPinnedParticipants.length > 0 && (h("aside", { key: '2e297a8d83c1f7241d8688b643c055331d69299b', part: "aside", class: this.gridSize.spotlight ? `grid-width-${this.gridSize.spotlight}` : 'grid-width-md' }, h(Render, { key: '2c1969c610018dfb0a23308316f072e3b8d87a6e', element: "rtk-simple-grid", defaults: defaults, props: {
|
|
77
77
|
part: 'aside-grid',
|
|
78
78
|
participants: nonPinnedParticipants,
|
|
79
79
|
aspectRatio: this.aspectRatio,
|
|
@@ -25,7 +25,7 @@ const RtkStage = class {
|
|
|
25
25
|
this.t = useLanguage();
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h(Host, { key: '
|
|
28
|
+
return (h(Host, { key: '681977138d7984d09fce875a7de3ccf763dbe3f7' }, h("slot", { key: '8412278c7a9491758d6cc0b96b262b616a8ba04f' })));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
__decorate([
|
|
@@ -40,7 +40,7 @@ const RtkTranscript = class {
|
|
|
40
40
|
}, 10000);
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: '0c5388d7f66dc55a13ccd85b83292bacfe4d1c7a' }, h("div", { key: '3b1684efa2f6b9e5653cec33572ffe41654460e9', class: "ctr" }, h("p", { key: 'b055b2371877d999c7ac60ff67f1c7ece9e4ec42', class: "message" }, h("span", { key: '283903c7e3cd282f6f377e93bd13faba265acdd8', class: "name" }, this.transcript.name), ": ", this.transcript.transcript))));
|
|
44
44
|
}
|
|
45
45
|
static get watchers() { return {
|
|
46
46
|
"transcript": ["transcriptChanged"]
|
|
@@ -26,7 +26,7 @@ const RtkWaitingScreen = class {
|
|
|
26
26
|
this.t = useLanguage();
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return (h(Host, { key: '
|
|
29
|
+
return (h(Host, { key: 'ac7096bd5df59387dcef15bbd4ef8955a4a42298' }, h("slot", { key: '6dd0f5b9555c956c1371311ef3c4ac8f661e9523' }, h("div", { key: '07925b636545e1196b10512cd504516df2cfbbf4', class: "centered", part: "content" }, h("rtk-logo", { key: '9b3fcf182d7c68aaf525a8170dbab9e59fc40404', meeting: this.meeting, config: this.config, part: "logo", t: this.t }), h("p", { key: '763a6403bc98a16f020101090bbed250041ae7cd' }, this.t('waitlist.body_text'))))));
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
32
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as n,d as t,e,h as a,a as i,g as r}from"./p-a599f720.js";import{e as o,i as s}from"./p-8fc79c56.js";import{i as c,r as d,e as l,a as p}from"./p-02f19345.js";import{S as h}from"./p-315cd380.js";var f=function(n,t,e,a){var i,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,a);else for(var s=n.length-1;s>=0;s--)(i=n[s])&&(o=(r<3?i(o):r>3?i(t,e,o):i(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};const g=class{constructor(e){n(this,e),this.stateUpdate=t(this,"rtkStateUpdate",7),this.play=t(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=c()},this.participantScreenshareUpdate=n=>{n.id===this.participant.id&&this.screenShareListener(n)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=o,this.t=s(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isFullScreen=!1,this.toggleFullScreen=()=>{this.isFullScreen?(l(),this.isFullScreen=!1):(d(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:n}=this.meeting;this.participant.id===n.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(n){if(null!=n&&this.meeting){const{self:t}=this.meeting;this.screenShareListener=({screenShareEnabled:n,screenShareTracks:t})=>{const a=n&&null!=t.video;if(e((()=>{this.screenShareEnabled=a})),a){const n=new MediaStream;n.addTrack(t.video),null!=this.videoEl&&(this.videoEl.srcObject=n,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(n),n.id===t.id?n.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var n,t;const e=(null===(n=this.participant)||void 0===n?void 0:n.id)===(null===(t=this.meeting)||void 0===t?void 0:t.self.id),r=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),o=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return a(i,{key:"df55771dd36de2c1014e47c8d713b6d1d7ef08ad",class:{isSelf:e}},a("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},a("video",{key:"83fe484dc37fce119266950f3584b8af79fcc14b",ref:n=>this.videoEl=n,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:`screen-share-video-${this.participant.id}`})),a("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!e&&p()&&a("rtk-tooltip",{key:"6b27dd39bea31267c5e3167aa3e5d922955c27cd",label:r},a("rtk-button",{key:"2421ac7332eac3ff164412adcabfad0a0260a4af",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:r},a("rtk-icon",{key:"98480f5f702d93bdcfaa98afd317eccaa053a5d1",icon:o,"aria-hidden":!0,tabIndex:-1})))),e&&a("div",{id:"self-message",key:"self-message"},a("h3",{key:"66d58882193ac51ee9527934a9203fd66d7d7c52"},this.t("screenshare.shared")),a("div",{key:"023c29fddee876bccef4052c51197b759a6bab2e",class:"actions"},null!=this.meeting&&a("rtk-button",{key:"c267d7178808f282c7c6d275c449bcaab934bc08",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},a("rtk-icon",{key:"bc63ef8e2f217a6b87e99d99e7e4098474d05b39",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),a("rtk-button",{key:"397f312bbd347f61566df2659c75f82de34b3808",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},a("rtk-icon",{key:"feaf388308067f245ec3ed422d2591db23001ba3",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),a("slot",{key:"794b21a6d0df0eb104a56efd930e7e52ee1c5fcb"}))}get host(){return r(this)}static get watchers(){return{participant:["participantChanged"]}}};f([h()],g.prototype,"meeting",void 0),f([h()],g.prototype,"iconPack",void 0),f([h()],g.prototype,"t",void 0),g.style=":host {\n line-height: initial;\n font-family: var(--rtk-font-family, sans-serif);\n\n font-feature-settings: normal;\n font-variation-settings: normal;\n}\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n\n:host {\n height: 100%;\n width: 100%;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: var(--rtk-border-radius-lg, 12px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));\n container-type: inline-size;\n container-name: screentile;\n}\n\n::slotted(rtk-name-tag) {\n position: absolute;\n left: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n opacity: 0.8;\n}\n\n#video-container {\n position: absolute;\n display: block;\n height: 100%;\n width: 100%;\n}\n\n#video-container .fit-in-container {\n -o-object-fit: fill;\n object-fit: fill;\n}\n\nvideo {\n height: 100%;\n width: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n:host([variant='gradient']) ::slotted(rtk-audio-visualizer) {\n position: absolute;\n top: var(--rtk-space-2, 8px);\n right: var(--rtk-space-2, 8px);\n border-radius: 9999px;\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));\n padding: var(--rtk-space-2, 8px);\n}\n\n:host([variant='gradient']) ::slotted(rtk-name-tag) {\n bottom: var(--rtk-space-0, 0px);\n left: var(--rtk-space-0, 0px);\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: transparent;\n background-image: linear-gradient(to top, var(--tw-gradient-stops));\n --tw-gradient-from: rgb(var(--rtk-colors-background-1000, 8 8 8));\n --tw-gradient-to: rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n --tw-gradient-to: transparent;\n}\n\n:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer) {\n height: var(--rtk-space-5, 20px);\n width: var(--rtk-space-5, 20px);\n}\n\nvideo.visible {\n animation: video-fadein 0.4s ease;\n}\n\n#controls {\n display: none;\n position: absolute;\n top: var(--rtk-space-3, 12px);\n right: var(--rtk-space-3, 12px);\n align-items: center;\n justify-content: flex-end;\n gap: var(--rtk-space-2, 8px);\n}\n\n:host(:hover) #controls, \n:host(:active) #controls, \n:host(:focus-visible) #controls {\n display: flex;\n}\n\n#full-screen-btn {\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));\n}\n\n/** For self view */\n\nh3 {\n margin-top: var(--rtk-space-10, 40px);\n margin-bottom: var(--rtk-space-6, 24px);\n text-align: center;\n font-size: 20px;\n font-weight: 500;\n}\n\n:host([size='sm']) h3 {\n font-size: 16px;\n}\n\n#self-message {\n padding-left: var(--rtk-space-4, 16px);\n padding-right: var(--rtk-space-4, 16px);\n}\n\n:host(.isSelf) #self-view {\n flex: 1 1 0%;\n}\n\n:host(.isSelf) #video-container {\n position: static;\n aspect-ratio: auto;\n height: auto;\n width: 50%;\n max-width: var(--rtk-space-96, 384px);\n border-radius: var(--rtk-border-radius-md, 8px);\n transition: 0.6s ease;\n}\n\n:host(.isSelf) #video-container.expand {\n width: 60%;\n max-width: 100%;\n}\n\n.actions {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--rtk-space-2, 8px);\n}\n\n:host([size='sm'].isSelf) #video-container,\n:host([size='md'].isSelf) #video-container,\n:host([size='sm'].isSelf) #expand-btn,\n:host([size='md'].isSelf) #expand-btn {\n /** Hide video, fullscreen buttons in sm and md breakpoints */\n display: none;\n}\n\n/** Remote control */\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n.remote-control {\n z-index: 10;\n height: 100%;\n max-height: 100%;\n flex: 0 1 auto;\n}\n\n#remote-control-self {\n position: absolute;\n top: var(--rtk-space-0, 0px);\n left: 50%;\n z-index: 10;\n width: -moz-max-content;\n width: max-content;\n max-width: 100%;\n box-sizing: border-box;\n display: flex;\n height: var(--rtk-space-8, 32px);\n align-items: center;\n overflow: hidden;\n border-radius: var(--rtk-border-radius-sm, 4px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));\n font-size: 12px;\n color: rgb(var(--rtk-colors-text-1000, 255 255 255));\n transform: translateX(-50%);\n}\n\n#remote-control-self p {\n padding-left: var(--rtk-space-3, 12px);\n padding-right: var(--rtk-space-3, 12px);\n padding-top: var(--rtk-space-2, 8px);\n padding-bottom: var(--rtk-space-2, 8px);\n}\n\n#remote-control-self rtk-button {\n height: 100%;\n border-radius: var(--rtk-border-radius-none, 0);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));\n font-size: 12px;\n}\n\n:host([size='sm']) #remote-control-self {\n height: auto;\n flex-direction: column;\n}\n\n:host([size='sm']) #remote-control-self rtk-button {\n width: 100%;\n padding-top: var(--rtk-space-1, 4px);\n padding-bottom: var(--rtk-space-1, 4px);\n}\n\n/** Name tag positions */\n\n:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag) {\n left: auto;\n right: var(--rtk-space-3, 12px);\n}\n\n:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag) {\n left: auto;\n right: auto;\n}\n\n:host([name-tag-position='top-left']) ::slotted(rtk-name-tag) {\n top: var(--rtk-space-3, 12px);\n bottom: auto;\n}\n\n:host([name-tag-position='top-right']) ::slotted(rtk-name-tag) {\n top: var(--rtk-space-3, 12px);\n right: var(--rtk-space-3, 12px);\n left: auto;\n bottom: auto;\n}\n\n:host([name-tag-position='top-center']) ::slotted(rtk-name-tag) {\n left: auto;\n right: auto;\n bottom: auto;\n top: var(--rtk-space-3, 12px);\n}\n\n/** Keyframes */\n\n@keyframes video-fadein {\n 0% {\n opacity: 0;\n transform: scale(1.4) translateY(20px);\n }\n\n 100% {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n}\n\n::slotted(rtk-network-indicator) {\n position: absolute;\n right: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n}\n\n@media only screen and (max-height: 480px) and (orientation: landscape) {\n :host([size='sm'][variant='solid']) ::slotted(rtk-name-tag), \n :host([size='sm'][variant='solid']) rtk-name-tag {\n left: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n border-radius: var(--rtk-border-radius-none, 0);\n transform-origin: 0% 110%;\n transform: scale(0.6);\n }\n}\n\n@container screentile (max-width: 400px) {\n ::slotted(rtk-name-tag) {\n transform-origin: 0 130%;\n transform: scale(0.7);\n }\n}\n";export{g as rtk_screenshare_view}
|
|
1
|
+
import{r as n,d as t,e,h as a,a as i,g as r}from"./p-a599f720.js";import{e as o,i as s}from"./p-8fc79c56.js";import{i as c,r as d,e as l,a as p}from"./p-02f19345.js";import{S as h}from"./p-315cd380.js";var f=function(n,t,e,a){var i,r=arguments.length,o=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(n,t,e,a);else for(var s=n.length-1;s>=0;s--)(i=n[s])&&(o=(r<3?i(o):r>3?i(t,e,o):i(t,e))||o);return r>3&&o&&Object.defineProperty(t,e,o),o};const g=class{constructor(e){n(this,e),this.stateUpdate=t(this,"rtkStateUpdate",7),this.play=t(this,"screensharePlay",7),this.fullScreenListener=()=>{this.isFullScreen=c()},this.participantScreenshareUpdate=n=>{n.id===this.participant.id&&this.screenShareListener(n)},this.hideFullScreenButton=!1,this.nameTagPosition="bottom-left",this.variant="solid",this.iconPack=o,this.t=s(),this.videoExpanded=!1,this.screenShareEnabled=!1,this.isFullScreen=!1,this.toggleFullScreen=()=>{this.isFullScreen?(l(),this.isFullScreen=!1):(d(this.host),this.isFullScreen=!0)}}connectedCallback(){null===window||void 0===window||window.addEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.addEventListener("webkitfullscreenchange",this.fullScreenListener)}componentDidLoad(){this.participantChanged(this.participant)}disconnectedCallback(){if(!this.meeting)return;const{self:n}=this.meeting;this.participant.id===n.id&&this.screenShareListener?this.participant.removeListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.removeListener("screenShareUpdate",this.participantScreenshareUpdate),null===window||void 0===window||window.removeEventListener("fullscreenchange",this.fullScreenListener),null===window||void 0===window||window.removeEventListener("webkitfullscreenchange",this.fullScreenListener)}participantChanged(n){if(null!=n&&this.meeting){const{self:t}=this.meeting;this.screenShareListener=({screenShareEnabled:n,screenShareTracks:t})=>{const a=n&&null!=t.video;if(e((()=>{this.screenShareEnabled=a})),a){const n=new MediaStream;n.addTrack(t.video),null!=this.videoEl&&(this.videoEl.srcObject=n,this.videoEl.play())}else null!=this.videoEl&&(this.videoEl.srcObject=void 0)},this.screenShareListener(n),n.id===t.id?n.addListener("screenShareUpdate",this.screenShareListener):this.meeting.participants.joined.addListener("screenShareUpdate",this.participantScreenshareUpdate)}}render(){var n,t;const e=(null===(n=this.participant)||void 0===n?void 0:n.id)===(null===(t=this.meeting)||void 0===t?void 0:t.self.id),r=this.t(this.isFullScreen?"full_screen.exit":"full_screen"),o=this.isFullScreen?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize;return a(i,{key:"9ee4407d83a5b437f91813eedec6fd0836620a8c",class:{isSelf:e}},a("div",{key:"video-container",id:"video-container",class:{expand:this.videoExpanded}},a("video",{key:"bfbee68ee2700aba43d1aae85a8456c40dc55244",ref:n=>this.videoEl=n,class:{visible:this.screenShareEnabled,"fit-in-container":this.participant.supportsRemoteControl},playsInline:!0,onPlay:()=>{this.play.emit({screenshareParticipant:this.participant,participant:this.meeting.self})},autoPlay:!0,muted:!0,id:`screen-share-video-${this.participant.id}`})),a("div",{id:"controls",key:"controls"},!this.hideFullScreenButton&&!e&&p()&&a("rtk-tooltip",{key:"25d8a59dae9afe875761f4ecaaae6d8f0c12792c",label:r},a("rtk-button",{key:"9b294b9b0a987c8e54f6bca1ab3edc3e1a5238f9",id:"full-screen-btn",kind:"icon",onClick:this.toggleFullScreen,title:r},a("rtk-icon",{key:"d768caec415a0b75f42d39cfb15f3821264046da",icon:o,"aria-hidden":!0,tabIndex:-1})))),e&&a("div",{id:"self-message",key:"self-message"},a("h3",{key:"7f4802409d87bb07dedac257e75f3e1d23ca4757"},this.t("screenshare.shared")),a("div",{key:"acd80c0b62e14b88c1a0c717814dcdc49c1c5a40",class:"actions"},null!=this.meeting&&a("rtk-button",{key:"721fc83372b3a9752b06fbffa61072f88aa9e1b0",variant:"danger",onClick:()=>{this.meeting.self.disableScreenShare()}},a("rtk-icon",{key:"7aa2e4a597a1411e000209c6db95babf9c7f0366",icon:this.iconPack.share_screen_stop,slot:"start"}),this.t("screenshare.stop")),a("rtk-button",{key:"4243b29230fc663db287f7db50dd4b5a8345a9bd",variant:"secondary",id:"expand-btn",onClick:()=>{this.videoExpanded=!this.videoExpanded}},a("rtk-icon",{key:"09c4a34f83662e5d1749e1dfd449d25da92c9976",icon:this.videoExpanded?this.iconPack.full_screen_minimize:this.iconPack.full_screen_maximize,slot:"start"}),this.t(this.videoExpanded?"screenshare.min_preview":"screenshare.max_preview")))),a("slot",{key:"a2046aecd50bc6fc0b8fb94a781bdd25c1d491ea"}))}get host(){return r(this)}static get watchers(){return{participant:["participantChanged"]}}};f([h()],g.prototype,"meeting",void 0),f([h()],g.prototype,"iconPack",void 0),f([h()],g.prototype,"t",void 0),g.style=":host {\n line-height: initial;\n font-family: var(--rtk-font-family, sans-serif);\n\n font-feature-settings: normal;\n font-variation-settings: normal;\n}\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n\n:host {\n height: 100%;\n width: 100%;\n position: relative;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n overflow: hidden;\n border-radius: var(--rtk-border-radius-lg, 12px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));\n container-type: inline-size;\n container-name: screentile;\n}\n\n::slotted(rtk-name-tag) {\n position: absolute;\n left: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n opacity: 0.8;\n}\n\n#video-container {\n position: absolute;\n display: block;\n height: 100%;\n width: 100%;\n}\n\n#video-container .fit-in-container {\n -o-object-fit: fill;\n object-fit: fill;\n}\n\nvideo {\n height: 100%;\n width: 100%;\n -o-object-fit: contain;\n object-fit: contain;\n}\n\n:host([variant='gradient']) ::slotted(rtk-audio-visualizer) {\n position: absolute;\n top: var(--rtk-space-2, 8px);\n right: var(--rtk-space-2, 8px);\n border-radius: 9999px;\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));\n padding: var(--rtk-space-2, 8px);\n}\n\n:host([variant='gradient']) ::slotted(rtk-name-tag) {\n bottom: var(--rtk-space-0, 0px);\n left: var(--rtk-space-0, 0px);\n display: flex;\n width: 100%;\n align-items: center;\n justify-content: center;\n text-align: center;\n background-color: transparent;\n background-image: linear-gradient(to top, var(--tw-gradient-stops));\n --tw-gradient-from: rgb(var(--rtk-colors-background-1000, 8 8 8));\n --tw-gradient-to: rgba(var(--rtk-colors-background-1000, 8 8 8) / 0);\n --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);\n --tw-gradient-to: transparent;\n}\n\n:host([size='sm'][variant='gradient']) ::slotted(rtk-audio-visualizer) {\n height: var(--rtk-space-5, 20px);\n width: var(--rtk-space-5, 20px);\n}\n\nvideo.visible {\n animation: video-fadein 0.4s ease;\n}\n\n#controls {\n display: none;\n position: absolute;\n top: var(--rtk-space-3, 12px);\n right: var(--rtk-space-3, 12px);\n align-items: center;\n justify-content: flex-end;\n gap: var(--rtk-space-2, 8px);\n}\n\n:host(:hover) #controls, \n:host(:active) #controls, \n:host(:focus-visible) #controls {\n display: flex;\n}\n\n#full-screen-btn {\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));\n}\n\n/** For self view */\n\nh3 {\n margin-top: var(--rtk-space-10, 40px);\n margin-bottom: var(--rtk-space-6, 24px);\n text-align: center;\n font-size: 20px;\n font-weight: 500;\n}\n\n:host([size='sm']) h3 {\n font-size: 16px;\n}\n\n#self-message {\n padding-left: var(--rtk-space-4, 16px);\n padding-right: var(--rtk-space-4, 16px);\n}\n\n:host(.isSelf) #self-view {\n flex: 1 1 0%;\n}\n\n:host(.isSelf) #video-container {\n position: static;\n aspect-ratio: auto;\n height: auto;\n width: 50%;\n max-width: var(--rtk-space-96, 384px);\n border-radius: var(--rtk-border-radius-md, 8px);\n transition: 0.6s ease;\n}\n\n:host(.isSelf) #video-container.expand {\n width: 60%;\n max-width: 100%;\n}\n\n.actions {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--rtk-space-2, 8px);\n}\n\n:host([size='sm'].isSelf) #video-container,\n:host([size='md'].isSelf) #video-container,\n:host([size='sm'].isSelf) #expand-btn,\n:host([size='md'].isSelf) #expand-btn {\n /** Hide video, fullscreen buttons in sm and md breakpoints */\n display: none;\n}\n\n/** Remote control */\n\np {\n margin: var(--rtk-space-0, 0px);\n padding: var(--rtk-space-0, 0px);\n}\n\n.remote-control {\n z-index: 10;\n height: 100%;\n max-height: 100%;\n flex: 0 1 auto;\n}\n\n#remote-control-self {\n position: absolute;\n top: var(--rtk-space-0, 0px);\n left: 50%;\n z-index: 10;\n width: -moz-max-content;\n width: max-content;\n max-width: 100%;\n box-sizing: border-box;\n display: flex;\n height: var(--rtk-space-8, 32px);\n align-items: center;\n overflow: hidden;\n border-radius: var(--rtk-border-radius-sm, 4px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-bg-opacity));\n font-size: 12px;\n color: rgb(var(--rtk-colors-text-1000, 255 255 255));\n transform: translateX(-50%);\n}\n\n#remote-control-self p {\n padding-left: var(--rtk-space-3, 12px);\n padding-right: var(--rtk-space-3, 12px);\n padding-top: var(--rtk-space-2, 8px);\n padding-bottom: var(--rtk-space-2, 8px);\n}\n\n#remote-control-self rtk-button {\n height: 100%;\n border-radius: var(--rtk-border-radius-none, 0);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-bg-opacity));\n font-size: 12px;\n}\n\n:host([size='sm']) #remote-control-self {\n height: auto;\n flex-direction: column;\n}\n\n:host([size='sm']) #remote-control-self rtk-button {\n width: 100%;\n padding-top: var(--rtk-space-1, 4px);\n padding-bottom: var(--rtk-space-1, 4px);\n}\n\n/** Name tag positions */\n\n:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag) {\n left: auto;\n right: var(--rtk-space-3, 12px);\n}\n\n:host([name-tag-position='bottom-center']) ::slotted(rtk-name-tag) {\n left: auto;\n right: auto;\n}\n\n:host([name-tag-position='top-left']) ::slotted(rtk-name-tag) {\n top: var(--rtk-space-3, 12px);\n bottom: auto;\n}\n\n:host([name-tag-position='top-right']) ::slotted(rtk-name-tag) {\n top: var(--rtk-space-3, 12px);\n right: var(--rtk-space-3, 12px);\n left: auto;\n bottom: auto;\n}\n\n:host([name-tag-position='top-center']) ::slotted(rtk-name-tag) {\n left: auto;\n right: auto;\n bottom: auto;\n top: var(--rtk-space-3, 12px);\n}\n\n/** Keyframes */\n\n@keyframes video-fadein {\n 0% {\n opacity: 0;\n transform: scale(1.4) translateY(20px);\n }\n\n 100% {\n opacity: 1;\n transform: scale(1) translateY(0);\n }\n}\n\n::slotted(rtk-network-indicator) {\n position: absolute;\n right: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n}\n\n@media only screen and (max-height: 480px) and (orientation: landscape) {\n :host([size='sm'][variant='solid']) ::slotted(rtk-name-tag), \n :host([size='sm'][variant='solid']) rtk-name-tag {\n left: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n border-radius: var(--rtk-border-radius-none, 0);\n transform-origin: 0% 110%;\n transform: scale(0.6);\n }\n}\n\n@container screentile (max-width: 400px) {\n ::slotted(rtk-name-tag) {\n transform-origin: 0 130%;\n transform: scale(0.7);\n }\n}\n";export{g as rtk_screenshare_view}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,e as s,h as i}from"./p-a599f720.js";import{e as r}from"./p-8fc79c56.js";import{S as e}from"./p-315cd380.js";import{d as h}from"./p-d6126ff7.js";const a=class{constructor(i){t(this,i),this.visibleItemsCount=20,this.estimateItemSize=100,this.iconPack=r,this.isFetching=!1,this.autoScroll=!0,this.totalHeight=0,this.sizes=new Map,this.lastScrollTop=0,this.scrollToBottomRetries=0,this.elementObserver=(()=>{let t=null;const s=()=>t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((t=>{t.forEach((t=>{this.measureElement(t.target,t)}))})):null);return{disconnect:()=>{var t;return null===(t=s())||void 0===t?void 0:t.disconnect()},observe:t=>{var i;return null===(i=s())||void 0===i?void 0:i.observe(t,{box:"border-box"})},unobserve:t=>{var i;return null===(i=s())||void 0===i?void 0:i.unobserve(t)}}})(),this.measureElement=(t,s)=>{if(!t)return;const i=t.dataset.id;if(this.sizes.has(i))return void this.elementObserver.unobserve(t);if(s){const r=s.borderBoxSize[0];if(r&&r.blockSize>0)return this.saveItemSize(i,r.blockSize),void this.elementObserver.unobserve(t)}const r=t.getBoundingClientRect();r.height>0&&this.saveItemSize(i,r.height)},this.getVisibleItems=()=>this.messages.slice(this.range.start,this.range.end+1),this.updateVisibleItems=(t,s)=>{const i=this.messages.length;let r=t,e=s;i<=this.visibleItemsCount?(r=0,e=i-1):s-t<this.visibleItemsCount-1&&(r=this.range.end-this.visibleItemsCount+1),this.range.start!==r&&(this.range={start:r,end:e},this.totalHeight=this.getRangeSize(0,i))},this.getEstimatedItemSize=()=>this.estimateItemSize,this.getRangeSize=(t,s)=>{let i=0,r=0;for(let e=t;e<s;e++)r=this.sizes.get(this.messages[e].id),i+=r||this.getEstimatedItemSize();return i},this.getScrollTop=()=>this.$listRef?Math.ceil(this.$listRef.scrollTop):0,this.getClientHeight=()=>this.$listRef?Math.ceil(this.$listRef.clientHeight):0,this.getScrollHeight=()=>this.$listRef?Math.ceil(this.$listRef.scrollHeight):0,this.getItemsScrolled=()=>{const t=this.lastScrollTop;if(t<=0)return 0;let s=0,i=0,r=0,e=this.messages.length;for(;s<=e;){if(i=s+e>>>1,r=this.getRangeSize(0,i),r===t)return i;r<t?s=i+1:r>t&&(e=i-1)}return s>0?--s:0},this.getEndByStart=t=>Math.min(t+this.visibleItemsCount,this.messages.length-1),this.scrollToOffset=t=>{this.$listRef&&(this.$listRef.scrollTop=t)},this.scrollToIndex=t=>{if(t>=this.messages.length-1)this.scrollToBottom();else{const s=t<1?0:this.getRangeSize(0,t);this.scrollToOffset(s)}},this.scrollToBottom=()=>{this.$listEndRef&&s((()=>{this.$listEndRef.scrollIntoView(),this.getScrollHeight()-(this.getScrollTop()+this.getClientHeight())>0&&this.scrollToBottomRetries<10?setTimeout((()=>{this.scrollToBottom()}),1e3/60):(this.scrollToBottomRetries=0,this.autoScroll=!0)}))},this.handleScroll=async()=>{if(this.isFetching)return;const t=this.getScrollTop(),s=t<this.lastScrollTop||0===t?"UP":"DOWN";if(this.lastScrollTop=t,this.loadMore&&0===t&&"UP"===s&&!1===this.isFetching){this.isFetching=!0;const t=await this.loadMore(this.messages[0]);t&&t.length&&(this.messages=[...t,...this.messages]),this.isFetching=!1}"UP"===s?this.handleTop():"DOWN"===s&&this.handleBottom()},this.handleTop=()=>{const t=this.getItemsScrolled();if(t<=this.range.end-5&&(this.autoScroll=!1),t>this.range.start+5)return;const s=Math.max(this.range.start-5,0);this.updateVisibleItems(s,this.getEndByStart(s))},this.handleBottom=()=>{if(this.getItemsScrolled()<this.range.start+5)return;const t=this.range.start+5,s=this.getEndByStart(t);this.updateVisibleItems(s===this.messages.length-1?s-this.visibleItemsCount:t,s)},this.updateTotalHeight=h((()=>{this.totalHeight=this.getRangeSize(0,this.messages.length)}),1e3/30,{leading:!0}),this.rendererInternal=(t,s,i)=>{if(!t)return;if(t.dataset.id===s.id)return;const r=this.renderer(s,i);t.hasChildNodes&&(t.innerHTML=""),this.elementObserver.observe(t),t.dataset.id=s.id,t.appendChild(r)}}connectedCallback(){const t=this.messages.length-1;this.range={start:t-this.visibleItemsCount,end:t},this.updateVisibleItems(this.range.start,this.range.end),this.totalHeight=this.getRangeSize(0,t)}componentDidLoad(){this.autoScroll&&this.scrollToBottom()}messagesUpdated(t,s){if(t.length>s.length){const i=t.length-s.length;this.updateVisibleItems(i,this.getEndByStart(i)),this.scrollToIndex(this.range.start)}}saveItemSize(t,s){this.sizes.set(t,Math.round(s)),this.updateTotalHeight()}render(){return i("div",{key:"
|
|
1
|
+
import{r as t,e as s,h as i}from"./p-a599f720.js";import{e as r}from"./p-8fc79c56.js";import{S as e}from"./p-315cd380.js";import{d as h}from"./p-d6126ff7.js";const a=class{constructor(i){t(this,i),this.visibleItemsCount=20,this.estimateItemSize=100,this.iconPack=r,this.isFetching=!1,this.autoScroll=!0,this.totalHeight=0,this.sizes=new Map,this.lastScrollTop=0,this.scrollToBottomRetries=0,this.elementObserver=(()=>{let t=null;const s=()=>t||("undefined"!=typeof ResizeObserver?t=new ResizeObserver((t=>{t.forEach((t=>{this.measureElement(t.target,t)}))})):null);return{disconnect:()=>{var t;return null===(t=s())||void 0===t?void 0:t.disconnect()},observe:t=>{var i;return null===(i=s())||void 0===i?void 0:i.observe(t,{box:"border-box"})},unobserve:t=>{var i;return null===(i=s())||void 0===i?void 0:i.unobserve(t)}}})(),this.measureElement=(t,s)=>{if(!t)return;const i=t.dataset.id;if(this.sizes.has(i))return void this.elementObserver.unobserve(t);if(s){const r=s.borderBoxSize[0];if(r&&r.blockSize>0)return this.saveItemSize(i,r.blockSize),void this.elementObserver.unobserve(t)}const r=t.getBoundingClientRect();r.height>0&&this.saveItemSize(i,r.height)},this.getVisibleItems=()=>this.messages.slice(this.range.start,this.range.end+1),this.updateVisibleItems=(t,s)=>{const i=this.messages.length;let r=t,e=s;i<=this.visibleItemsCount?(r=0,e=i-1):s-t<this.visibleItemsCount-1&&(r=this.range.end-this.visibleItemsCount+1),this.range.start!==r&&(this.range={start:r,end:e},this.totalHeight=this.getRangeSize(0,i))},this.getEstimatedItemSize=()=>this.estimateItemSize,this.getRangeSize=(t,s)=>{let i=0,r=0;for(let e=t;e<s;e++)r=this.sizes.get(this.messages[e].id),i+=r||this.getEstimatedItemSize();return i},this.getScrollTop=()=>this.$listRef?Math.ceil(this.$listRef.scrollTop):0,this.getClientHeight=()=>this.$listRef?Math.ceil(this.$listRef.clientHeight):0,this.getScrollHeight=()=>this.$listRef?Math.ceil(this.$listRef.scrollHeight):0,this.getItemsScrolled=()=>{const t=this.lastScrollTop;if(t<=0)return 0;let s=0,i=0,r=0,e=this.messages.length;for(;s<=e;){if(i=s+e>>>1,r=this.getRangeSize(0,i),r===t)return i;r<t?s=i+1:r>t&&(e=i-1)}return s>0?--s:0},this.getEndByStart=t=>Math.min(t+this.visibleItemsCount,this.messages.length-1),this.scrollToOffset=t=>{this.$listRef&&(this.$listRef.scrollTop=t)},this.scrollToIndex=t=>{if(t>=this.messages.length-1)this.scrollToBottom();else{const s=t<1?0:this.getRangeSize(0,t);this.scrollToOffset(s)}},this.scrollToBottom=()=>{this.$listEndRef&&s((()=>{this.$listEndRef.scrollIntoView(),this.getScrollHeight()-(this.getScrollTop()+this.getClientHeight())>0&&this.scrollToBottomRetries<10?setTimeout((()=>{this.scrollToBottom()}),1e3/60):(this.scrollToBottomRetries=0,this.autoScroll=!0)}))},this.handleScroll=async()=>{if(this.isFetching)return;const t=this.getScrollTop(),s=t<this.lastScrollTop||0===t?"UP":"DOWN";if(this.lastScrollTop=t,this.loadMore&&0===t&&"UP"===s&&!1===this.isFetching){this.isFetching=!0;const t=await this.loadMore(this.messages[0]);t&&t.length&&(this.messages=[...t,...this.messages]),this.isFetching=!1}"UP"===s?this.handleTop():"DOWN"===s&&this.handleBottom()},this.handleTop=()=>{const t=this.getItemsScrolled();if(t<=this.range.end-5&&(this.autoScroll=!1),t>this.range.start+5)return;const s=Math.max(this.range.start-5,0);this.updateVisibleItems(s,this.getEndByStart(s))},this.handleBottom=()=>{if(this.getItemsScrolled()<this.range.start+5)return;const t=this.range.start+5,s=this.getEndByStart(t);this.updateVisibleItems(s===this.messages.length-1?s-this.visibleItemsCount:t,s)},this.updateTotalHeight=h((()=>{this.totalHeight=this.getRangeSize(0,this.messages.length)}),1e3/30,{leading:!0}),this.rendererInternal=(t,s,i)=>{if(!t)return;if(t.dataset.id===s.id)return;const r=this.renderer(s,i);t.hasChildNodes&&(t.innerHTML=""),this.elementObserver.observe(t),t.dataset.id=s.id,t.appendChild(r)}}connectedCallback(){const t=this.messages.length-1;this.range={start:t-this.visibleItemsCount,end:t},this.updateVisibleItems(this.range.start,this.range.end),this.totalHeight=this.getRangeSize(0,t)}componentDidLoad(){this.autoScroll&&this.scrollToBottom()}messagesUpdated(t,s){if(t.length>s.length){const i=t.length-s.length;this.updateVisibleItems(i,this.getEndByStart(i)),this.scrollToIndex(this.range.start)}}saveItemSize(t,s){this.sizes.set(t,Math.round(s)),this.updateTotalHeight()}render(){return i("div",{key:"9c8a4073886acf540a8beeea0ac31f865231f771",class:"scrollbar content-wrapper",ref:t=>this.$listRef=t,onScroll:this.handleScroll},i("div",{key:"c64abddfc09ec7c88305b732df889f9de0597b53",class:"scroller"},i("div",{key:"c3e94f33890509b22f2b89022a76865f6776b217",style:{height:`${this.totalHeight}px`}}),i("div",{key:"f8c95faa0af4b1f31465a113707f0e4f753dadad",class:"smallest-dom-element",id:"list-end",ref:t=>this.$listEndRef=t})),i("div",{key:"02d045f8c54072388c3c7df52ff4c92f2438a545",class:"content",style:{transform:`translateY(${this.getRangeSize(0,this.range.start)}px)`}},this.isFetching&&i("div",{key:"7ba90240987e1ecfb553d69bd7465cb20bb86274",class:"loader"},i("rtk-spinner",{key:"2fa19c46da125e4c5280625aefdf555f09ce2faa",size:"md"})),this.getVisibleItems().map(((t,s)=>i("div",{key:t.id,ref:i=>this.rendererInternal(i,t,s)})))))}static get watchers(){return{messages:["messagesUpdated"]}}};(function(t,s,i,r){var e,h=arguments.length,a=h<3?s:null===r?r=Object.getOwnPropertyDescriptor(s,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,s,i,r);else for(var o=t.length-1;o>=0;o--)(e=t[o])&&(a=(h<3?e(a):h>3?e(s,i,a):e(s,i))||a);h>3&&a&&Object.defineProperty(s,i,a)})([e()],a.prototype,"iconPack",void 0),a.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)))}.loading{cursor:wait}.content-wrapper{height:100%;overflow-y:auto;position:relative;contain:strict}.scroller{width:1px;opacity:0}.content{position:absolute;top:0;width:100%}.smallest-dom-element{width:100%;height:2px;background:red}.loader{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;justify-content:center}";export{a as rtk_message_list_view}
|