@cloudflare/realtimekit-ui 0.0.0 → 1.0.0-staging.11
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/README.md +62 -0
- package/dist/browser.js +1 -0
- package/dist/cjs/ChatHead-d2f094ec.js +46 -0
- package/dist/cjs/ResizeObserver.es-ba961f16.js +930 -0
- package/dist/cjs/TextMessage-e9ca06aa.js +69 -0
- package/dist/cjs/app-globals-3a1e7e63.js +5 -0
- package/dist/cjs/chat-46e7e4fe.js +217 -0
- package/dist/cjs/clone-2e9a4cae.js +754 -0
- package/dist/cjs/config-dba24e25.js +1183 -0
- package/dist/cjs/debounce-6080cc73.js +544 -0
- package/dist/cjs/debounce-6dabb441.js +331 -0
- package/dist/cjs/file-33e9ed90.js +61 -0
- package/dist/cjs/floating-ui.dom.esm-c3c35b98.js +1900 -0
- package/dist/cjs/full-screen-de3e9caf.js +55 -0
- package/dist/cjs/grid-edc342a7.js +99 -0
- package/dist/cjs/hark-c97d0a59.js +301 -0
- package/dist/cjs/index-05554ce6.js +2191 -0
- package/dist/cjs/index-821d14b7.js +227 -0
- package/dist/cjs/index-daae8cee.js +26 -0
- package/dist/cjs/index.cjs.js +268 -0
- package/dist/cjs/isObjectLike-73d13a39.js +171 -0
- package/dist/cjs/keysIn-8bdbe83d.js +1438 -0
- package/dist/cjs/loader.cjs.js +15 -0
- package/dist/cjs/logger-3df9c75d.js +5 -0
- package/dist/cjs/notification-1948ed2f.js +44 -0
- package/dist/cjs/realtimekit-ui.cjs.js +25 -0
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +76 -0
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +138 -0
- package/dist/cjs/rtk-ai.cjs.entry.js +91 -0
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +116 -0
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +130 -0
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +501 -0
- package/dist/cjs/rtk-avatar_54.cjs.entry.js +6378 -0
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +86 -0
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +281 -0
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +186 -0
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +84 -0
- package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +147 -0
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +315 -0
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +78 -0
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +138 -0
- package/dist/cjs/rtk-clock.cjs.entry.js +98 -0
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +49 -0
- package/dist/cjs/rtk-controlbar.cjs.entry.js +66 -0
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +61 -0
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +109 -0
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +60 -0
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +86 -0
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +159 -0
- package/dist/cjs/rtk-grid.cjs.entry.js +362 -0
- package/dist/cjs/rtk-header.cjs.entry.js +66 -0
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +47 -0
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +62 -0
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +37 -0
- package/dist/cjs/rtk-leave-button.cjs.entry.js +52 -0
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +29148 -0
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +142 -0
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +49 -0
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +285 -0
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +184 -0
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +226 -0
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +77 -0
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +79 -0
- package/dist/cjs/rtk-name-tag.cjs.entry.js +72 -0
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +86 -0
- package/dist/cjs/rtk-participant-count.cjs.entry.js +91 -0
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +118 -0
- package/dist/cjs/rtk-participant_2.cjs.entry.js +419 -0
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +207 -0
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +467 -0
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +150 -0
- package/dist/cjs/rtk-participants.cjs.entry.js +190 -0
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +88 -0
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +196 -0
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +106 -0
- package/dist/cjs/rtk-plugins_2.cjs.entry.js +181 -0
- package/dist/cjs/rtk-poll_2.cjs.entry.js +142 -0
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +117 -0
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +70 -0
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +162 -0
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +266 -0
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +149 -0
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +150 -0
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +57 -0
- package/dist/cjs/rtk-settings.cjs.entry.js +124 -0
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +120 -0
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +80 -0
- package/dist/cjs/rtk-sidebar.cjs.entry.js +151 -0
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +118 -0
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +107 -0
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +85 -0
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +147 -0
- package/dist/cjs/rtk-stage.cjs.entry.js +43 -0
- package/dist/cjs/rtk-transcript.cjs.entry.js +58 -0
- package/dist/cjs/rtk-transcripts.cjs.entry.js +167 -0
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +168 -0
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +47 -0
- package/dist/cjs/scroll-c6404609.js +15 -0
- package/dist/cjs/sidebar-a3c87828.js +50 -0
- package/dist/cjs/size-2a406e36.js +28 -0
- package/dist/cjs/string-a410fab6.js +64 -0
- package/dist/cjs/ui-store-3ddce955.js +1608 -0
- package/dist/collection/collection-manifest.json +149 -0
- package/dist/collection/components/rtk-ai/rtk-ai.css +69 -0
- package/dist/collection/components/rtk-ai/rtk-ai.js +292 -0
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.css +8 -0
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +257 -0
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.css +139 -0
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +221 -0
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.css +102 -0
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +292 -0
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.css +118 -0
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +308 -0
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.css +46 -0
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +324 -0
- package/dist/collection/components/rtk-avatar/rtk-avatar.css +117 -0
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +202 -0
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.css +272 -0
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +509 -0
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.css +269 -0
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +305 -0
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.css +17 -0
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +273 -0
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.css +379 -0
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +481 -0
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.css +111 -0
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +198 -0
- package/dist/collection/components/rtk-button/rtk-button.css +185 -0
- package/dist/collection/components/rtk-button/rtk-button.js +198 -0
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.css +146 -0
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +263 -0
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.css +22 -0
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +350 -0
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.css +17 -0
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +289 -0
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.css +210 -0
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +287 -0
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.css +93 -0
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +148 -0
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.css +99 -0
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +255 -0
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.css +330 -0
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +283 -0
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.css +306 -0
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +341 -0
- package/dist/collection/components/rtk-chat/components/ChatHead.js +6 -0
- package/dist/collection/components/rtk-chat/rtk-chat.css +224 -0
- package/dist/collection/components/rtk-chat/rtk-chat.js +866 -0
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.css +304 -0
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +583 -0
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.css +111 -0
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +535 -0
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.css +428 -0
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +569 -0
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.css +191 -0
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +420 -0
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.css +7 -0
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +465 -0
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.css +22 -0
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +170 -0
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.css +219 -0
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +245 -0
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.css +65 -0
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +338 -0
- package/dist/collection/components/rtk-clock/rtk-clock.css +46 -0
- package/dist/collection/components/rtk-clock/rtk-clock.js +163 -0
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.css +68 -0
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +198 -0
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.css +32 -0
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +259 -0
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.css +188 -0
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +248 -0
- package/dist/collection/components/rtk-counter/rtk-counter.css +64 -0
- package/dist/collection/components/rtk-counter/rtk-counter.js +219 -0
- package/dist/collection/components/rtk-debugger/rtk-debugger.css +262 -0
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +271 -0
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.css +180 -0
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +294 -0
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.css +175 -0
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +339 -0
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.css +176 -0
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +260 -0
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.css +17 -0
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +234 -0
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.css +180 -0
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +306 -0
- package/dist/collection/components/rtk-dialog/rtk-dialog.css +47 -0
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +322 -0
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.css +17 -0
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +343 -0
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.css +81 -0
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +180 -0
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.css +141 -0
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +192 -0
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.css +3 -0
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +113 -0
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.css +80 -0
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +270 -0
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.css +20 -0
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +162 -0
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +186 -0
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.css +76 -0
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +127 -0
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.css +3 -0
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +206 -0
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.css +22 -0
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +268 -0
- package/dist/collection/components/rtk-grid/rtk-grid.css +122 -0
- package/dist/collection/components/rtk-grid/rtk-grid.js +678 -0
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.css +174 -0
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +327 -0
- package/dist/collection/components/rtk-header/rtk-header.css +35 -0
- package/dist/collection/components/rtk-header/rtk-header.js +259 -0
- package/dist/collection/components/rtk-icon/rtk-icon.css +73 -0
- package/dist/collection/components/rtk-icon/rtk-icon.js +124 -0
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.css +40 -0
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +152 -0
- package/dist/collection/components/rtk-image-message/rtk-image-message.css +21 -0
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +235 -0
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.css +117 -0
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +152 -0
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.css +99 -0
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +183 -0
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.css +41 -0
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +65 -0
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.css +131 -0
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +310 -0
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.css +17 -0
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +182 -0
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.css +75 -0
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +239 -0
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.css +65 -0
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +180 -0
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.css +177 -0
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +485 -0
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.css +22 -0
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +315 -0
- package/dist/collection/components/rtk-logo/rtk-logo.css +34 -0
- package/dist/collection/components/rtk-logo/rtk-logo.js +177 -0
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.css +44 -0
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +136 -0
- package/dist/collection/components/rtk-meeting/rtk-meeting.css +43 -0
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +520 -0
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.css +38 -0
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +128 -0
- package/dist/collection/components/rtk-menu/rtk-menu.css +25 -0
- package/dist/collection/components/rtk-menu/rtk-menu.js +217 -0
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.css +46 -0
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +130 -0
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.css +30 -0
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +100 -0
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.css +68 -0
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +439 -0
- package/dist/collection/components/rtk-message-view/rtk-message-view.css +169 -0
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +283 -0
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.css +27 -0
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +348 -0
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.css +146 -0
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +276 -0
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.css +257 -0
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +577 -0
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.css +61 -0
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +210 -0
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.css +17 -0
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +237 -0
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.css +74 -0
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +185 -0
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.css +55 -0
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +253 -0
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.css +68 -0
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +213 -0
- package/dist/collection/components/rtk-notification/rtk-notification.css +161 -0
- package/dist/collection/components/rtk-notification/rtk-notification.js +226 -0
- package/dist/collection/components/rtk-notifications/rtk-notifications.css +30 -0
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +736 -0
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.css +41 -0
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +181 -0
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +337 -0
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +591 -0
- package/dist/collection/components/rtk-participant/rtk-participant.css +91 -0
- package/dist/collection/components/rtk-participant/rtk-participant.js +503 -0
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.css +42 -0
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +205 -0
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.css +111 -0
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +338 -0
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.css +283 -0
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +464 -0
- package/dist/collection/components/rtk-participants/rtk-participants.css +127 -0
- package/dist/collection/components/rtk-participants/rtk-participants.js +404 -0
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.css +46 -0
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +282 -0
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.css +61 -0
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +364 -0
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.css +116 -0
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +286 -0
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.css +50 -0
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +348 -0
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.css +58 -0
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +326 -0
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.css +107 -0
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +263 -0
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.css +110 -0
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +325 -0
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.css +22 -0
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +293 -0
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.css +89 -0
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +232 -0
- package/dist/collection/components/rtk-plugins/rtk-plugins.css +105 -0
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +251 -0
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.css +22 -0
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +301 -0
- package/dist/collection/components/rtk-poll/rtk-poll.css +153 -0
- package/dist/collection/components/rtk-poll/rtk-poll.js +202 -0
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.css +121 -0
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +175 -0
- package/dist/collection/components/rtk-polls/rtk-polls.css +69 -0
- package/dist/collection/components/rtk-polls/rtk-polls.js +242 -0
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.css +51 -0
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +315 -0
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.css +63 -0
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +184 -0
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.css +17 -0
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +342 -0
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.css +22 -0
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +470 -0
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.css +294 -0
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +394 -0
- package/dist/collection/components/rtk-settings/rtk-settings.css +241 -0
- package/dist/collection/components/rtk-settings/rtk-settings.js +286 -0
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.css +59 -0
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +230 -0
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.css +17 -0
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +216 -0
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.css +135 -0
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +256 -0
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.css +175 -0
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +309 -0
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.css +65 -0
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +417 -0
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.css +135 -0
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +289 -0
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.css +20 -0
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +343 -0
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.css +144 -0
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +299 -0
- package/dist/collection/components/rtk-spinner/rtk-spinner.css +52 -0
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +99 -0
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.css +88 -0
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +402 -0
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.css +102 -0
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +195 -0
- package/dist/collection/components/rtk-stage/rtk-stage.css +19 -0
- package/dist/collection/components/rtk-stage/rtk-stage.js +125 -0
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.css +22 -0
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +321 -0
- package/dist/collection/components/rtk-switch/rtk-switch.css +51 -0
- package/dist/collection/components/rtk-switch/rtk-switch.js +211 -0
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.css +194 -0
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +330 -0
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.css +81 -0
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +316 -0
- package/dist/collection/components/rtk-text-message/components/TextMessage.js +62 -0
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +185 -0
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.css +25 -0
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +68 -0
- package/dist/collection/components/rtk-tooltip/rtk-tooltip.css +67 -0
- package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +349 -0
- package/dist/collection/components/rtk-transcript/rtk-transcript.css +96 -0
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +140 -0
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.css +32 -0
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +281 -0
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.css +5 -0
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +374 -0
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.css +61 -0
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +191 -0
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.css +4 -0
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +264 -0
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.css +45 -0
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +148 -0
- package/dist/collection/exports.js +16 -0
- package/dist/collection/index.js +2 -0
- package/dist/collection/lib/addons/index.js +19 -0
- package/dist/collection/lib/audio.js +54 -0
- package/dist/collection/lib/builder/index.js +203 -0
- package/dist/collection/lib/default-ui-config.js +324 -0
- package/dist/collection/lib/grid.js +94 -0
- package/dist/collection/lib/icons/default-icon-pack.js +87 -0
- package/dist/collection/lib/icons/index.js +20 -0
- package/dist/collection/lib/lang/default-language.js +415 -0
- package/dist/collection/lib/lang/index.js +17 -0
- package/dist/collection/lib/notification.js +39 -0
- package/dist/collection/lib/render/index.js +97 -0
- package/dist/collection/lib/render/utils.js +115 -0
- package/dist/collection/lib/visualizer.js +42 -0
- package/dist/collection/theme/colors.js +130 -0
- package/dist/collection/theme/index.js +65 -0
- package/dist/collection/theme/presets/border.js +46 -0
- package/dist/collection/theme/presets/themes.js +35 -0
- package/dist/collection/theme/space.js +17 -0
- package/dist/collection/theme/tests/space.spec.js +17 -0
- package/dist/collection/types/floating-ui.js +1 -0
- package/dist/collection/types/props.js +1 -0
- package/dist/collection/types/rtk-ai.js +1 -0
- package/dist/collection/types/rtk-client.js +10 -0
- package/dist/collection/types/ui-config/config.js +35 -0
- package/dist/collection/types/ui-config/design-tokens.js +1 -0
- package/dist/collection/types/ui-config/index.js +1 -0
- package/dist/collection/types/ui-config/root.js +1 -0
- package/dist/collection/utils/assets.js +13 -0
- package/dist/collection/utils/breakout-rooms-manager.js +299 -0
- package/dist/collection/utils/breakout-rooms.js +69 -0
- package/dist/collection/utils/chat.js +198 -0
- package/dist/collection/utils/clone.js +7 -0
- package/dist/collection/utils/color.js +175 -0
- package/dist/collection/utils/config.js +359 -0
- package/dist/collection/utils/date.js +30 -0
- package/dist/collection/utils/debugger-utils.js +83 -0
- package/dist/collection/utils/file.js +54 -0
- package/dist/collection/utils/flags.js +24 -0
- package/dist/collection/utils/full-screen.js +48 -0
- package/dist/collection/utils/graceful-storage.js +18 -0
- package/dist/collection/utils/livestream.js +100 -0
- package/dist/collection/utils/logger.js +1 -0
- package/dist/collection/utils/notification.js +15 -0
- package/dist/collection/utils/provide-design-system.js +114 -0
- package/dist/collection/utils/scroll.js +11 -0
- package/dist/collection/utils/sidebar.js +42 -0
- package/dist/collection/utils/size.js +14 -0
- package/dist/collection/utils/stage.js +9 -0
- package/dist/collection/utils/string.js +56 -0
- package/dist/collection/utils/sync-with-store/index.js +21 -0
- package/dist/collection/utils/sync-with-store/ui-store.js +56 -0
- package/dist/collection/utils/time.js +9 -0
- package/dist/collection/utils/troubleshooter.js +469 -0
- package/dist/collection/utils/user-prefs.js +20 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +246 -0
- package/dist/components/p-02f19345.js +50 -0
- package/dist/components/p-0752f2ba.js +13 -0
- package/dist/components/p-0a9d8224.js +168 -0
- package/dist/components/p-0abe4b8a.js +200 -0
- package/dist/components/p-0c4a1808.js +305 -0
- package/dist/components/p-0c94b402.js +309 -0
- package/dist/components/p-0e02697c.js +85 -0
- package/dist/components/p-0ea515b2.js +108 -0
- package/dist/components/p-0eab3933.js +97 -0
- package/dist/components/p-10182034.js +61 -0
- package/dist/components/p-10759cad.js +95 -0
- package/dist/components/p-135d5d2f.js +82 -0
- package/dist/components/p-1a546cf4.js +628 -0
- package/dist/components/p-24e9b37b.js +157 -0
- package/dist/components/p-24ffce5a.js +227 -0
- package/dist/components/p-260b86da.js +131 -0
- package/dist/components/p-2c3cda13.js +164 -0
- package/dist/components/p-2ecf028f.js +168 -0
- package/dist/components/p-2f2fb96d.js +62 -0
- package/dist/components/p-31964573.js +1892 -0
- package/dist/components/p-31a1dc4d.js +159 -0
- package/dist/components/p-31ce3b90.js +182 -0
- package/dist/components/p-32d788e7.js +149 -0
- package/dist/components/p-3358d7dc.js +108 -0
- package/dist/components/p-338c7261.js +58 -0
- package/dist/components/p-35d6211b.js +81 -0
- package/dist/components/p-382270d8.js +32 -0
- package/dist/components/p-3d845f44.js +131 -0
- package/dist/components/p-3f882e7c.js +299 -0
- package/dist/components/p-406292be.js +68 -0
- package/dist/components/p-4096426e.js +92 -0
- package/dist/components/p-4307888c.js +96 -0
- package/dist/components/p-4608147b.js +105 -0
- package/dist/components/p-46690510.js +157 -0
- package/dist/components/p-46923b34.js +1409 -0
- package/dist/components/p-4880c342.js +148 -0
- package/dist/components/p-4a436e2d.js +1178 -0
- package/dist/components/p-4cc0e9a5.js +64 -0
- package/dist/components/p-4cedc9e8.js +105 -0
- package/dist/components/p-4e3d7f9d.js +95 -0
- package/dist/components/p-50ecaaf1.js +42 -0
- package/dist/components/p-5279fae9.js +125 -0
- package/dist/components/p-55598b38.js +76 -0
- package/dist/components/p-5605a420.js +3 -0
- package/dist/components/p-563bc723.js +156 -0
- package/dist/components/p-56919690.js +29080 -0
- package/dist/components/p-59ea0ce1.js +116 -0
- package/dist/components/p-59fb6900.js +204 -0
- package/dist/components/p-5c3d1c4f.js +148 -0
- package/dist/components/p-5ffcbba3.js +95 -0
- package/dist/components/p-606ca241.js +119 -0
- package/dist/components/p-60fdbd75.js +224 -0
- package/dist/components/p-62a6b783.js +194 -0
- package/dist/components/p-68b6f23b.js +223 -0
- package/dist/components/p-71e0f6f2.js +79 -0
- package/dist/components/p-734a10e4.js +86 -0
- package/dist/components/p-7a7d1710.js +134 -0
- package/dist/components/p-81f4e985.js +63 -0
- package/dist/components/p-898da6ae.js +307 -0
- package/dist/components/p-8f99c783.js +316 -0
- package/dist/components/p-922f201f.js +103 -0
- package/dist/components/p-935b5e0f.js +77 -0
- package/dist/components/p-965a4bd9.js +101 -0
- package/dist/components/p-96be234f.js +26 -0
- package/dist/components/p-9c17c7ce.js +93 -0
- package/dist/components/p-9cace38c.js +203 -0
- package/dist/components/p-9cfe5c7c.js +353 -0
- package/dist/components/p-9da5b9d0.js +211 -0
- package/dist/components/p-9fc565cf.js +57 -0
- package/dist/components/p-a08b5a59.js +329 -0
- package/dist/components/p-a24309fd.js +118 -0
- package/dist/components/p-a2f4f9e3.js +67 -0
- package/dist/components/p-a41e1b94.js +161 -0
- package/dist/components/p-a83ccdbd.js +40 -0
- package/dist/components/p-aa9ee9a5.js +180 -0
- package/dist/components/p-ab87c5be.js +178 -0
- package/dist/components/p-ae239151.js +150 -0
- package/dist/components/p-b12e5011.js +115 -0
- package/dist/components/p-b13ddb7d.js +96 -0
- package/dist/components/p-b3537ccc.js +69 -0
- package/dist/components/p-b373da43.js +357 -0
- package/dist/components/p-b39c779d.js +114 -0
- package/dist/components/p-bcb91396.js +43 -0
- package/dist/components/p-bdbaa65b.js +83 -0
- package/dist/components/p-c11b2f37.js +45 -0
- package/dist/components/p-c15d924f.js +752 -0
- package/dist/components/p-c2723ebb.js +213 -0
- package/dist/components/p-c27c353f.js +128 -0
- package/dist/components/p-c3592601.js +1641 -0
- package/dist/components/p-c7dcb441.js +57 -0
- package/dist/components/p-c939f92d.js +114 -0
- package/dist/components/p-cbdd7a99.js +542 -0
- package/dist/components/p-cd50770d.js +127 -0
- package/dist/components/p-d5791958.js +24 -0
- package/dist/components/p-dba3cdd1.js +951 -0
- package/dist/components/p-ddf6148a.js +125 -0
- package/dist/components/p-e2b78972.js +153 -0
- package/dist/components/p-e3b59650.js +155 -0
- package/dist/components/p-e3ffbf6c.js +124 -0
- package/dist/components/p-e4376670.js +162 -0
- package/dist/components/p-e542eda6.js +264 -0
- package/dist/components/p-e6d09c50.js +1544 -0
- package/dist/components/p-eb10c563.js +390 -0
- package/dist/components/p-ece96324.js +107 -0
- package/dist/components/p-ef376a73.js +103 -0
- package/dist/components/p-f0dfdfea.js +120 -0
- package/dist/components/p-f33bb583.js +199 -0
- package/dist/components/p-f47d4fe8.js +928 -0
- package/dist/components/p-f6046472.js +85 -0
- package/dist/components/p-fe278fba.js +215 -0
- package/dist/components/p-febe3ebc.js +11 -0
- package/dist/components/rtk-ai-toggle.d.ts +11 -0
- package/dist/components/rtk-ai-toggle.js +119 -0
- package/dist/components/rtk-ai-transcriptions.d.ts +11 -0
- package/dist/components/rtk-ai-transcriptions.js +6 -0
- package/dist/components/rtk-ai.d.ts +11 -0
- package/dist/components/rtk-ai.js +134 -0
- package/dist/components/rtk-audio-grid.d.ts +11 -0
- package/dist/components/rtk-audio-grid.js +145 -0
- package/dist/components/rtk-audio-tile.d.ts +11 -0
- package/dist/components/rtk-audio-tile.js +182 -0
- package/dist/components/rtk-audio-visualizer.d.ts +11 -0
- package/dist/components/rtk-audio-visualizer.js +6 -0
- package/dist/components/rtk-avatar.d.ts +11 -0
- package/dist/components/rtk-avatar.js +6 -0
- package/dist/components/rtk-breakout-room-manager.d.ts +11 -0
- package/dist/components/rtk-breakout-room-manager.js +6 -0
- package/dist/components/rtk-breakout-room-participants.d.ts +11 -0
- package/dist/components/rtk-breakout-room-participants.js +6 -0
- package/dist/components/rtk-breakout-rooms-manager.d.ts +11 -0
- package/dist/components/rtk-breakout-rooms-manager.js +6 -0
- package/dist/components/rtk-breakout-rooms-toggle.d.ts +11 -0
- package/dist/components/rtk-breakout-rooms-toggle.js +129 -0
- package/dist/components/rtk-broadcast-message-modal.d.ts +11 -0
- package/dist/components/rtk-broadcast-message-modal.js +6 -0
- package/dist/components/rtk-button.d.ts +11 -0
- package/dist/components/rtk-button.js +6 -0
- package/dist/components/rtk-camera-selector.d.ts +11 -0
- package/dist/components/rtk-camera-selector.js +6 -0
- package/dist/components/rtk-camera-toggle.d.ts +11 -0
- package/dist/components/rtk-camera-toggle.js +237 -0
- package/dist/components/rtk-caption-toggle.d.ts +11 -0
- package/dist/components/rtk-caption-toggle.js +129 -0
- package/dist/components/rtk-channel-creator.d.ts +11 -0
- package/dist/components/rtk-channel-creator.js +6 -0
- package/dist/components/rtk-channel-details.d.ts +11 -0
- package/dist/components/rtk-channel-details.js +6 -0
- package/dist/components/rtk-channel-header.d.ts +11 -0
- package/dist/components/rtk-channel-header.js +6 -0
- package/dist/components/rtk-channel-selector-ui.d.ts +11 -0
- package/dist/components/rtk-channel-selector-ui.js +194 -0
- package/dist/components/rtk-channel-selector-view.d.ts +11 -0
- package/dist/components/rtk-channel-selector-view.js +6 -0
- package/dist/components/rtk-chat-composer-ui.d.ts +11 -0
- package/dist/components/rtk-chat-composer-ui.js +383 -0
- package/dist/components/rtk-chat-composer-view.d.ts +11 -0
- package/dist/components/rtk-chat-composer-view.js +6 -0
- package/dist/components/rtk-chat-message.d.ts +11 -0
- package/dist/components/rtk-chat-message.js +6 -0
- package/dist/components/rtk-chat-messages-ui-paginated.d.ts +11 -0
- package/dist/components/rtk-chat-messages-ui-paginated.js +6 -0
- package/dist/components/rtk-chat-messages-ui.d.ts +11 -0
- package/dist/components/rtk-chat-messages-ui.js +6 -0
- package/dist/components/rtk-chat-search-results.d.ts +11 -0
- package/dist/components/rtk-chat-search-results.js +6 -0
- package/dist/components/rtk-chat-selector-ui.d.ts +11 -0
- package/dist/components/rtk-chat-selector-ui.js +108 -0
- package/dist/components/rtk-chat-toggle.d.ts +11 -0
- package/dist/components/rtk-chat-toggle.js +186 -0
- package/dist/components/rtk-chat.d.ts +11 -0
- package/dist/components/rtk-chat.js +6 -0
- package/dist/components/rtk-clock.d.ts +11 -0
- package/dist/components/rtk-clock.js +127 -0
- package/dist/components/rtk-confirmation-modal.d.ts +11 -0
- package/dist/components/rtk-confirmation-modal.js +6 -0
- package/dist/components/rtk-controlbar-button.d.ts +11 -0
- package/dist/components/rtk-controlbar-button.js +6 -0
- package/dist/components/rtk-controlbar.d.ts +11 -0
- package/dist/components/rtk-controlbar.js +91 -0
- package/dist/components/rtk-counter.d.ts +11 -0
- package/dist/components/rtk-counter.js +6 -0
- package/dist/components/rtk-debugger-audio.d.ts +11 -0
- package/dist/components/rtk-debugger-audio.js +6 -0
- package/dist/components/rtk-debugger-screenshare.d.ts +11 -0
- package/dist/components/rtk-debugger-screenshare.js +6 -0
- package/dist/components/rtk-debugger-system.d.ts +11 -0
- package/dist/components/rtk-debugger-system.js +6 -0
- package/dist/components/rtk-debugger-toggle.d.ts +11 -0
- package/dist/components/rtk-debugger-toggle.js +101 -0
- package/dist/components/rtk-debugger-video.d.ts +11 -0
- package/dist/components/rtk-debugger-video.js +6 -0
- package/dist/components/rtk-debugger.d.ts +11 -0
- package/dist/components/rtk-debugger.js +6 -0
- package/dist/components/rtk-dialog-manager.d.ts +11 -0
- package/dist/components/rtk-dialog-manager.js +6 -0
- package/dist/components/rtk-dialog.d.ts +11 -0
- package/dist/components/rtk-dialog.js +6 -0
- package/dist/components/rtk-draft-attachment-view.d.ts +11 -0
- package/dist/components/rtk-draft-attachment-view.js +6 -0
- package/dist/components/rtk-emoji-picker-button.d.ts +11 -0
- package/dist/components/rtk-emoji-picker-button.js +6 -0
- package/dist/components/rtk-emoji-picker.d.ts +11 -0
- package/dist/components/rtk-emoji-picker.js +6 -0
- package/dist/components/rtk-ended-screen.d.ts +11 -0
- package/dist/components/rtk-ended-screen.js +148 -0
- package/dist/components/rtk-file-dropzone.d.ts +11 -0
- package/dist/components/rtk-file-dropzone.js +87 -0
- package/dist/components/rtk-file-message-view.d.ts +11 -0
- package/dist/components/rtk-file-message-view.js +6 -0
- package/dist/components/rtk-file-message.d.ts +11 -0
- package/dist/components/rtk-file-message.js +6 -0
- package/dist/components/rtk-file-picker-button.d.ts +11 -0
- package/dist/components/rtk-file-picker-button.js +6 -0
- package/dist/components/rtk-fullscreen-toggle.d.ts +11 -0
- package/dist/components/rtk-fullscreen-toggle.js +6 -0
- package/dist/components/rtk-grid-pagination.d.ts +11 -0
- package/dist/components/rtk-grid-pagination.js +207 -0
- package/dist/components/rtk-grid.d.ts +11 -0
- package/dist/components/rtk-grid.js +454 -0
- package/dist/components/rtk-header.d.ts +11 -0
- package/dist/components/rtk-header.js +91 -0
- package/dist/components/rtk-icon.d.ts +11 -0
- package/dist/components/rtk-icon.js +6 -0
- package/dist/components/rtk-idle-screen.d.ts +11 -0
- package/dist/components/rtk-idle-screen.js +86 -0
- package/dist/components/rtk-image-message-view.d.ts +11 -0
- package/dist/components/rtk-image-message-view.js +6 -0
- package/dist/components/rtk-image-message.d.ts +11 -0
- package/dist/components/rtk-image-message.js +6 -0
- package/dist/components/rtk-image-viewer.d.ts +11 -0
- package/dist/components/rtk-image-viewer.js +94 -0
- package/dist/components/rtk-information-tooltip.d.ts +11 -0
- package/dist/components/rtk-information-tooltip.js +61 -0
- package/dist/components/rtk-join-stage.d.ts +11 -0
- package/dist/components/rtk-join-stage.js +6 -0
- package/dist/components/rtk-leave-button.d.ts +11 -0
- package/dist/components/rtk-leave-button.js +90 -0
- package/dist/components/rtk-leave-meeting.d.ts +11 -0
- package/dist/components/rtk-leave-meeting.js +6 -0
- package/dist/components/rtk-livestream-indicator.d.ts +11 -0
- package/dist/components/rtk-livestream-indicator.js +6 -0
- package/dist/components/rtk-livestream-player.d.ts +11 -0
- package/dist/components/rtk-livestream-player.js +6 -0
- package/dist/components/rtk-livestream-toggle.d.ts +11 -0
- package/dist/components/rtk-livestream-toggle.js +184 -0
- package/dist/components/rtk-logo.d.ts +11 -0
- package/dist/components/rtk-logo.js +6 -0
- package/dist/components/rtk-markdown-view.d.ts +11 -0
- package/dist/components/rtk-markdown-view.js +6 -0
- package/dist/components/rtk-meeting-title.d.ts +11 -0
- package/dist/components/rtk-meeting-title.js +74 -0
- package/dist/components/rtk-meeting.d.ts +11 -0
- package/dist/components/rtk-meeting.js +566 -0
- package/dist/components/rtk-menu-item.d.ts +11 -0
- package/dist/components/rtk-menu-item.js +6 -0
- package/dist/components/rtk-menu-list.d.ts +11 -0
- package/dist/components/rtk-menu-list.js +6 -0
- package/dist/components/rtk-menu.d.ts +11 -0
- package/dist/components/rtk-menu.js +6 -0
- package/dist/components/rtk-message-list-view.d.ts +11 -0
- package/dist/components/rtk-message-list-view.js +324 -0
- package/dist/components/rtk-message-view.d.ts +11 -0
- package/dist/components/rtk-message-view.js +6 -0
- package/dist/components/rtk-mic-toggle.d.ts +11 -0
- package/dist/components/rtk-mic-toggle.js +235 -0
- package/dist/components/rtk-microphone-selector.d.ts +11 -0
- package/dist/components/rtk-microphone-selector.js +6 -0
- package/dist/components/rtk-mixed-grid.d.ts +11 -0
- package/dist/components/rtk-mixed-grid.js +298 -0
- package/dist/components/rtk-more-toggle.d.ts +11 -0
- package/dist/components/rtk-more-toggle.js +115 -0
- package/dist/components/rtk-mute-all-button.d.ts +11 -0
- package/dist/components/rtk-mute-all-button.js +128 -0
- package/dist/components/rtk-mute-all-confirmation.d.ts +11 -0
- package/dist/components/rtk-mute-all-confirmation.js +6 -0
- package/dist/components/rtk-name-tag.d.ts +11 -0
- package/dist/components/rtk-name-tag.js +6 -0
- package/dist/components/rtk-network-indicator.d.ts +11 -0
- package/dist/components/rtk-network-indicator.js +117 -0
- package/dist/components/rtk-notification.d.ts +11 -0
- package/dist/components/rtk-notification.js +6 -0
- package/dist/components/rtk-notifications.d.ts +11 -0
- package/dist/components/rtk-notifications.js +6 -0
- package/dist/components/rtk-overlay-modal.d.ts +11 -0
- package/dist/components/rtk-overlay-modal.js +6 -0
- package/dist/components/rtk-paginated-list.d.ts +11 -0
- package/dist/components/rtk-paginated-list.js +6 -0
- package/dist/components/rtk-participant-count.d.ts +11 -0
- package/dist/components/rtk-participant-count.js +121 -0
- package/dist/components/rtk-participant-setup.d.ts +11 -0
- package/dist/components/rtk-participant-setup.js +149 -0
- package/dist/components/rtk-participant-tile.d.ts +11 -0
- package/dist/components/rtk-participant-tile.js +6 -0
- package/dist/components/rtk-participant.d.ts +11 -0
- package/dist/components/rtk-participant.js +6 -0
- package/dist/components/rtk-participants-audio.d.ts +11 -0
- package/dist/components/rtk-participants-audio.js +248 -0
- package/dist/components/rtk-participants-stage-list.d.ts +11 -0
- package/dist/components/rtk-participants-stage-list.js +6 -0
- package/dist/components/rtk-participants-stage-queue.d.ts +11 -0
- package/dist/components/rtk-participants-stage-queue.js +6 -0
- package/dist/components/rtk-participants-toggle.d.ts +11 -0
- package/dist/components/rtk-participants-toggle.js +199 -0
- package/dist/components/rtk-participants-viewer-list.d.ts +11 -0
- package/dist/components/rtk-participants-viewer-list.js +6 -0
- package/dist/components/rtk-participants-waiting-list.d.ts +11 -0
- package/dist/components/rtk-participants-waiting-list.js +6 -0
- package/dist/components/rtk-participants.d.ts +11 -0
- package/dist/components/rtk-participants.js +304 -0
- package/dist/components/rtk-permissions-message.d.ts +11 -0
- package/dist/components/rtk-permissions-message.js +6 -0
- package/dist/components/rtk-pip-toggle.d.ts +11 -0
- package/dist/components/rtk-pip-toggle.js +133 -0
- package/dist/components/rtk-plugin-main.d.ts +11 -0
- package/dist/components/rtk-plugin-main.js +6 -0
- package/dist/components/rtk-plugins-toggle.d.ts +11 -0
- package/dist/components/rtk-plugins-toggle.js +152 -0
- package/dist/components/rtk-plugins.d.ts +11 -0
- package/dist/components/rtk-plugins.js +6 -0
- package/dist/components/rtk-poll-form.d.ts +11 -0
- package/dist/components/rtk-poll-form.js +6 -0
- package/dist/components/rtk-poll.d.ts +11 -0
- package/dist/components/rtk-poll.js +6 -0
- package/dist/components/rtk-polls-toggle.d.ts +11 -0
- package/dist/components/rtk-polls-toggle.js +164 -0
- package/dist/components/rtk-polls.d.ts +11 -0
- package/dist/components/rtk-polls.js +6 -0
- package/dist/components/rtk-recording-indicator.d.ts +11 -0
- package/dist/components/rtk-recording-indicator.js +99 -0
- package/dist/components/rtk-recording-toggle.d.ts +11 -0
- package/dist/components/rtk-recording-toggle.js +206 -0
- package/dist/components/rtk-screen-share-toggle.d.ts +11 -0
- package/dist/components/rtk-screen-share-toggle.js +321 -0
- package/dist/components/rtk-screenshare-view.d.ts +11 -0
- package/dist/components/rtk-screenshare-view.js +197 -0
- package/dist/components/rtk-settings-audio.d.ts +11 -0
- package/dist/components/rtk-settings-audio.js +6 -0
- package/dist/components/rtk-settings-toggle.d.ts +11 -0
- package/dist/components/rtk-settings-toggle.js +96 -0
- package/dist/components/rtk-settings-video.d.ts +11 -0
- package/dist/components/rtk-settings-video.js +6 -0
- package/dist/components/rtk-settings.d.ts +11 -0
- package/dist/components/rtk-settings.js +211 -0
- package/dist/components/rtk-setup-screen.d.ts +11 -0
- package/dist/components/rtk-setup-screen.js +186 -0
- package/dist/components/rtk-sidebar-ui.d.ts +11 -0
- package/dist/components/rtk-sidebar-ui.js +6 -0
- package/dist/components/rtk-sidebar.d.ts +11 -0
- package/dist/components/rtk-sidebar.js +231 -0
- package/dist/components/rtk-simple-grid.d.ts +11 -0
- package/dist/components/rtk-simple-grid.js +147 -0
- package/dist/components/rtk-speaker-selector.d.ts +11 -0
- package/dist/components/rtk-speaker-selector.js +6 -0
- package/dist/components/rtk-spinner.d.ts +11 -0
- package/dist/components/rtk-spinner.js +6 -0
- package/dist/components/rtk-spotlight-grid.d.ts +11 -0
- package/dist/components/rtk-spotlight-grid.js +135 -0
- package/dist/components/rtk-spotlight-indicator.d.ts +11 -0
- package/dist/components/rtk-spotlight-indicator.js +6 -0
- package/dist/components/rtk-stage-toggle.d.ts +11 -0
- package/dist/components/rtk-stage-toggle.js +198 -0
- package/dist/components/rtk-stage.d.ts +11 -0
- package/dist/components/rtk-stage.js +61 -0
- package/dist/components/rtk-switch.d.ts +11 -0
- package/dist/components/rtk-switch.js +6 -0
- package/dist/components/rtk-tab-bar.d.ts +11 -0
- package/dist/components/rtk-tab-bar.js +6 -0
- package/dist/components/rtk-text-composer-view.d.ts +11 -0
- package/dist/components/rtk-text-composer-view.js +6 -0
- package/dist/components/rtk-text-message-view.d.ts +11 -0
- package/dist/components/rtk-text-message-view.js +6 -0
- package/dist/components/rtk-text-message.d.ts +11 -0
- package/dist/components/rtk-text-message.js +6 -0
- package/dist/components/rtk-tooltip.d.ts +11 -0
- package/dist/components/rtk-tooltip.js +6 -0
- package/dist/components/rtk-transcript.d.ts +11 -0
- package/dist/components/rtk-transcript.js +6 -0
- package/dist/components/rtk-transcripts.d.ts +11 -0
- package/dist/components/rtk-transcripts.js +197 -0
- package/dist/components/rtk-ui-provider.d.ts +11 -0
- package/dist/components/rtk-ui-provider.js +195 -0
- package/dist/components/rtk-viewer-count.d.ts +11 -0
- package/dist/components/rtk-viewer-count.js +6 -0
- package/dist/components/rtk-virtualized-participant-list.d.ts +11 -0
- package/dist/components/rtk-virtualized-participant-list.js +6 -0
- package/dist/components/rtk-waiting-screen.d.ts +11 -0
- package/dist/components/rtk-waiting-screen.js +74 -0
- package/dist/docs/docs-components.d.ts +443 -0
- package/dist/docs/docs-components.json +239263 -0
- package/dist/docs/docs-vscode.json +4429 -0
- package/dist/esm/ChatHead-cf7a7e22.js +41 -0
- package/dist/esm/ResizeObserver.es-02979d4e.js +928 -0
- package/dist/esm/TextMessage-efd224db.js +67 -0
- package/dist/esm/app-globals-0f993ce5.js +3 -0
- package/dist/esm/chat-c25836b0.js +200 -0
- package/dist/esm/clone-acd4af50.js +752 -0
- package/dist/esm/config-1ca1ba30.js +1178 -0
- package/dist/esm/debounce-0169a54d.js +542 -0
- package/dist/esm/debounce-ea0579b2.js +329 -0
- package/dist/esm/file-1d408324.js +57 -0
- package/dist/esm/floating-ui.dom.esm-cf1488a2.js +1892 -0
- package/dist/esm/full-screen-1f58c594.js +50 -0
- package/dist/esm/grid-a3ca5a3e.js +96 -0
- package/dist/esm/hark-6327d91e.js +299 -0
- package/dist/esm/index-6aaa85ca.js +24 -0
- package/dist/esm/index-c1fb98bb.js +2158 -0
- package/dist/esm/index-d31a2e33.js +224 -0
- package/dist/esm/index.js +249 -0
- package/dist/esm/isObjectLike-773b9473.js +164 -0
- package/dist/esm/keysIn-310f65c1.js +1409 -0
- package/dist/esm/loader.js +56266 -0
- package/dist/esm/logger-31448943.js +3 -0
- package/dist/esm/notification-800f2bcd.js +42 -0
- package/dist/esm/realtimekit-ui.js +20 -0
- package/dist/esm/rtk-ai-toggle.entry.js +72 -0
- package/dist/esm/rtk-ai-transcriptions.entry.js +134 -0
- package/dist/esm/rtk-ai.entry.js +87 -0
- package/dist/esm/rtk-audio-grid.entry.js +112 -0
- package/dist/esm/rtk-audio-tile.entry.js +126 -0
- package/dist/esm/rtk-audio-visualizer_4.entry.js +494 -0
- package/dist/esm/rtk-avatar_54.entry.js +6321 -0
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +82 -0
- package/dist/esm/rtk-camera-selector_2.entry.js +276 -0
- package/dist/esm/rtk-camera-toggle.entry.js +182 -0
- package/dist/esm/rtk-caption-toggle.entry.js +80 -0
- package/dist/esm/rtk-channel-selector-ui.entry.js +143 -0
- package/dist/esm/rtk-chat-composer-ui.entry.js +311 -0
- package/dist/esm/rtk-chat-selector-ui.entry.js +74 -0
- package/dist/esm/rtk-chat-toggle.entry.js +134 -0
- package/dist/esm/rtk-clock.entry.js +94 -0
- package/dist/esm/rtk-controlbar-button.entry.js +45 -0
- package/dist/esm/rtk-controlbar.entry.js +62 -0
- package/dist/esm/rtk-debugger-toggle.entry.js +57 -0
- package/dist/esm/rtk-ended-screen.entry.js +105 -0
- package/dist/esm/rtk-file-dropzone.entry.js +56 -0
- package/dist/esm/rtk-fullscreen-toggle.entry.js +82 -0
- package/dist/esm/rtk-grid-pagination.entry.js +155 -0
- package/dist/esm/rtk-grid.entry.js +358 -0
- package/dist/esm/rtk-header.entry.js +62 -0
- package/dist/esm/rtk-idle-screen.entry.js +43 -0
- package/dist/esm/rtk-image-viewer.entry.js +58 -0
- package/dist/esm/rtk-information-tooltip.entry.js +33 -0
- package/dist/esm/rtk-leave-button.entry.js +48 -0
- package/dist/esm/rtk-livestream-indicator_3.entry.js +29142 -0
- package/dist/esm/rtk-livestream-toggle.entry.js +138 -0
- package/dist/esm/rtk-meeting-title.entry.js +45 -0
- package/dist/esm/rtk-message-list-view.entry.js +281 -0
- package/dist/esm/rtk-mic-toggle.entry.js +180 -0
- package/dist/esm/rtk-mixed-grid.entry.js +222 -0
- package/dist/esm/rtk-more-toggle.entry.js +73 -0
- package/dist/esm/rtk-mute-all-button.entry.js +75 -0
- package/dist/esm/rtk-name-tag.entry.js +68 -0
- package/dist/esm/rtk-network-indicator.entry.js +82 -0
- package/dist/esm/rtk-participant-count.entry.js +87 -0
- package/dist/esm/rtk-participant-setup.entry.js +114 -0
- package/dist/esm/rtk-participant_2.entry.js +414 -0
- package/dist/esm/rtk-participants-audio.entry.js +203 -0
- package/dist/esm/rtk-participants-stage-list_4.entry.js +460 -0
- package/dist/esm/rtk-participants-toggle.entry.js +146 -0
- package/dist/esm/rtk-participants.entry.js +186 -0
- package/dist/esm/rtk-pip-toggle.entry.js +84 -0
- package/dist/esm/rtk-plugin-main_2.entry.js +191 -0
- package/dist/esm/rtk-plugins-toggle.entry.js +102 -0
- package/dist/esm/rtk-plugins_2.entry.js +176 -0
- package/dist/esm/rtk-poll_2.entry.js +137 -0
- package/dist/esm/rtk-polls-toggle.entry.js +113 -0
- package/dist/esm/rtk-recording-indicator.entry.js +66 -0
- package/dist/esm/rtk-recording-toggle.entry.js +158 -0
- package/dist/esm/rtk-screen-share-toggle.entry.js +262 -0
- package/dist/esm/rtk-screenshare-view.entry.js +145 -0
- package/dist/esm/rtk-settings-audio_2.entry.js +145 -0
- package/dist/esm/rtk-settings-toggle.entry.js +53 -0
- package/dist/esm/rtk-settings.entry.js +120 -0
- package/dist/esm/rtk-setup-screen.entry.js +116 -0
- package/dist/esm/rtk-sidebar-ui.entry.js +76 -0
- package/dist/esm/rtk-sidebar.entry.js +147 -0
- package/dist/esm/rtk-simple-grid.entry.js +114 -0
- package/dist/esm/rtk-spotlight-grid.entry.js +103 -0
- package/dist/esm/rtk-spotlight-indicator.entry.js +81 -0
- package/dist/esm/rtk-stage-toggle.entry.js +143 -0
- package/dist/esm/rtk-stage.entry.js +39 -0
- package/dist/esm/rtk-transcript.entry.js +54 -0
- package/dist/esm/rtk-transcripts.entry.js +163 -0
- package/dist/esm/rtk-ui-provider.entry.js +164 -0
- package/dist/esm/rtk-waiting-screen.entry.js +43 -0
- package/dist/esm/scroll-2d8e810c.js +13 -0
- package/dist/esm/sidebar-cafaa8d3.js +45 -0
- package/dist/esm/size-505ade24.js +26 -0
- package/dist/esm/string-ed1380fb.js +58 -0
- package/dist/esm/ui-store-b453cdf2.js +1582 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/realtimekit-ui/index.esm.js +1 -0
- package/dist/realtimekit-ui/p-01f5aba6.entry.js +1 -0
- package/dist/realtimekit-ui/p-02f19345.js +1 -0
- package/dist/realtimekit-ui/p-03a04390.entry.js +1 -0
- package/dist/realtimekit-ui/p-050f0b1f.entry.js +1 -0
- package/dist/realtimekit-ui/p-0752f2ba.js +1 -0
- package/dist/realtimekit-ui/p-0a1d9e02.entry.js +1 -0
- package/dist/realtimekit-ui/p-0b1fabf5.js +1 -0
- package/dist/realtimekit-ui/p-0d4db84d.entry.js +1 -0
- package/dist/realtimekit-ui/p-0e777b3f.entry.js +1 -0
- package/dist/realtimekit-ui/p-0ee570cd.js +2 -0
- package/dist/realtimekit-ui/p-131b1e94.entry.js +1 -0
- package/dist/realtimekit-ui/p-139da463.entry.js +1 -0
- package/dist/realtimekit-ui/p-18fdb6bb.entry.js +1 -0
- package/dist/realtimekit-ui/p-235b7aa8.entry.js +1 -0
- package/dist/realtimekit-ui/p-238a19f8.entry.js +1 -0
- package/dist/realtimekit-ui/p-29802710.entry.js +1 -0
- package/dist/realtimekit-ui/p-2aa242f4.js +1 -0
- package/dist/realtimekit-ui/p-2bfa32da.entry.js +1 -0
- package/dist/realtimekit-ui/p-2c3cda13.js +1 -0
- package/dist/realtimekit-ui/p-31964573.js +1 -0
- package/dist/realtimekit-ui/p-338c7261.js +1 -0
- package/dist/realtimekit-ui/p-3f882e7c.js +1 -0
- package/dist/realtimekit-ui/p-3fd79328.entry.js +1 -0
- package/dist/realtimekit-ui/p-42a64cbb.entry.js +1 -0
- package/dist/realtimekit-ui/p-44915a3b.entry.js +1 -0
- package/dist/realtimekit-ui/p-457a0412.entry.js +1 -0
- package/dist/realtimekit-ui/p-46923b34.js +1 -0
- package/dist/realtimekit-ui/p-4b882b41.js +1 -0
- package/dist/realtimekit-ui/p-4d8ab9a5.entry.js +1 -0
- package/dist/realtimekit-ui/p-4f2ec64b.entry.js +1 -0
- package/dist/realtimekit-ui/p-4f45e362.entry.js +1 -0
- package/dist/realtimekit-ui/p-4ff47eb0.entry.js +1 -0
- package/dist/realtimekit-ui/p-5325b5e5.entry.js +1 -0
- package/dist/realtimekit-ui/p-55040827.entry.js +1 -0
- package/dist/realtimekit-ui/p-55503b00.entry.js +1 -0
- package/dist/realtimekit-ui/p-556db3a1.entry.js +1 -0
- package/dist/realtimekit-ui/p-5605a420.js +1 -0
- package/dist/realtimekit-ui/p-560c3d93.entry.js +1 -0
- package/dist/realtimekit-ui/p-58e58de6.entry.js +1 -0
- package/dist/realtimekit-ui/p-5b15e3cf.entry.js +1 -0
- package/dist/realtimekit-ui/p-61c38e05.entry.js +1 -0
- package/dist/realtimekit-ui/p-621a7265.entry.js +1 -0
- package/dist/realtimekit-ui/p-679bd218.entry.js +1 -0
- package/dist/realtimekit-ui/p-6be9be47.entry.js +1 -0
- package/dist/realtimekit-ui/p-6c238609.entry.js +1 -0
- package/dist/realtimekit-ui/p-6ededa68.js +1 -0
- package/dist/realtimekit-ui/p-73bc3abd.entry.js +1 -0
- package/dist/realtimekit-ui/p-7536cb87.entry.js +1 -0
- package/dist/realtimekit-ui/p-7c1a2584.entry.js +1 -0
- package/dist/realtimekit-ui/p-7dbd2a25.entry.js +1 -0
- package/dist/realtimekit-ui/p-807dd186.entry.js +1 -0
- package/dist/realtimekit-ui/p-85ff4a34.entry.js +1 -0
- package/dist/realtimekit-ui/p-89f6a08a.entry.js +1 -0
- package/dist/realtimekit-ui/p-8cc2459d.entry.js +1 -0
- package/dist/realtimekit-ui/p-8fe6b03c.entry.js +1 -0
- package/dist/realtimekit-ui/p-917f2951.entry.js +1 -0
- package/dist/realtimekit-ui/p-93f881e2.entry.js +1 -0
- package/dist/realtimekit-ui/p-9435f236.entry.js +1 -0
- package/dist/realtimekit-ui/p-94b739b4.entry.js +1 -0
- package/dist/realtimekit-ui/p-96be234f.js +1 -0
- package/dist/realtimekit-ui/p-9946b484.entry.js +1 -0
- package/dist/realtimekit-ui/p-9bbe1d7c.entry.js +1 -0
- package/dist/realtimekit-ui/p-9fc565cf.js +1 -0
- package/dist/realtimekit-ui/p-9ff45356.entry.js +1 -0
- package/dist/realtimekit-ui/p-a08b5a59.js +1 -0
- package/dist/realtimekit-ui/p-a5d22edf.entry.js +1 -0
- package/dist/realtimekit-ui/p-a6f03681.entry.js +1 -0
- package/dist/realtimekit-ui/p-a738a7b3.entry.js +1 -0
- package/dist/realtimekit-ui/p-aaba206b.js +1 -0
- package/dist/realtimekit-ui/p-ac91f9f9.entry.js +1 -0
- package/dist/realtimekit-ui/p-affaaf1a.entry.js +1 -0
- package/dist/realtimekit-ui/p-b13ddb7d.js +1 -0
- package/dist/realtimekit-ui/p-b14563cb.entry.js +1 -0
- package/dist/realtimekit-ui/p-b16cee89.js +1 -0
- package/dist/realtimekit-ui/p-b62f9abb.entry.js +1 -0
- package/dist/realtimekit-ui/p-b80f1bed.entry.js +1 -0
- package/dist/realtimekit-ui/p-bc17c582.entry.js +1 -0
- package/dist/realtimekit-ui/p-bf56688f.entry.js +1 -0
- package/dist/realtimekit-ui/p-c15d924f.js +1 -0
- package/dist/realtimekit-ui/p-c6f7cd03.entry.js +1 -0
- package/dist/realtimekit-ui/p-c8eaa707.js +1 -0
- package/dist/realtimekit-ui/p-c8f8b690.entry.js +1 -0
- package/dist/realtimekit-ui/p-cbdd7a99.js +1 -0
- package/dist/realtimekit-ui/p-d013442a.entry.js +1 -0
- package/dist/realtimekit-ui/p-d075d673.entry.js +1 -0
- package/dist/realtimekit-ui/p-d77f7f22.entry.js +1 -0
- package/dist/realtimekit-ui/p-d9217d24.entry.js +1 -0
- package/dist/realtimekit-ui/p-d9e81b11.entry.js +1 -0
- package/dist/realtimekit-ui/p-dbb95589.entry.js +1 -0
- package/dist/realtimekit-ui/p-e1255160.js +1 -0
- package/dist/realtimekit-ui/p-e13b5128.entry.js +1 -0
- package/dist/realtimekit-ui/p-e171b1c4.entry.js +1 -0
- package/dist/realtimekit-ui/p-e80cf367.entry.js +1 -0
- package/dist/realtimekit-ui/p-ee167b96.js +1 -0
- package/dist/realtimekit-ui/p-f47d4fe8.js +1 -0
- package/dist/realtimekit-ui/p-f7c6931d.entry.js +1 -0
- package/dist/realtimekit-ui/p-fc36f92c.js +1 -0
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -0
- package/dist/types/components/rtk-ai/rtk-ai.d.ts +31 -0
- package/dist/types/components/rtk-ai-toggle/rtk-ai-toggle.d.ts +26 -0
- package/dist/types/components/rtk-ai-transcriptions/rtk-ai-transcriptions.d.ts +26 -0
- package/dist/types/components/rtk-audio-grid/rtk-audio-grid.d.ts +29 -0
- package/dist/types/components/rtk-audio-tile/rtk-audio-tile.d.ts +33 -0
- package/dist/types/components/rtk-audio-visualizer/rtk-audio-visualizer.d.ts +42 -0
- package/dist/types/components/rtk-avatar/rtk-avatar.d.ts +26 -0
- package/dist/types/components/rtk-breakout-room-manager/rtk-breakout-room-manager.d.ts +70 -0
- package/dist/types/components/rtk-breakout-room-participants/rtk-breakout-room-participants.d.ts +46 -0
- package/dist/types/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.d.ts +34 -0
- package/dist/types/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.d.ts +82 -0
- package/dist/types/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.d.ts +26 -0
- package/dist/types/components/rtk-button/rtk-button.d.ts +25 -0
- package/dist/types/components/rtk-camera-selector/rtk-camera-selector.d.ts +40 -0
- package/dist/types/components/rtk-camera-toggle/rtk-camera-toggle.d.ts +39 -0
- package/dist/types/components/rtk-caption-toggle/rtk-caption-toggle.d.ts +30 -0
- package/dist/types/components/rtk-channel-creator/rtk-channel-creator.d.ts +34 -0
- package/dist/types/components/rtk-channel-details/rtk-channel-details.d.ts +15 -0
- package/dist/types/components/rtk-channel-header/rtk-channel-header.d.ts +31 -0
- package/dist/types/components/rtk-channel-selector-ui/rtk-channel-selector-ui.d.ts +32 -0
- package/dist/types/components/rtk-channel-selector-view/rtk-channel-selector-view.d.ts +62 -0
- package/dist/types/components/rtk-chat/components/ChatHead.d.ts +8 -0
- package/dist/types/components/rtk-chat/rtk-chat.d.ts +122 -0
- package/dist/types/components/rtk-chat-composer-ui/rtk-chat-composer-ui.d.ts +84 -0
- package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +73 -0
- package/dist/types/components/rtk-chat-message/rtk-chat-message.d.ts +67 -0
- package/dist/types/components/rtk-chat-messages-ui/rtk-chat-messages-ui.d.ts +46 -0
- package/dist/types/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.d.ts +61 -0
- package/dist/types/components/rtk-chat-search-results/rtk-chat-search-results.d.ts +18 -0
- package/dist/types/components/rtk-chat-selector-ui/rtk-chat-selector-ui.d.ts +29 -0
- package/dist/types/components/rtk-chat-toggle/rtk-chat-toggle.d.ts +50 -0
- package/dist/types/components/rtk-clock/rtk-clock.d.ts +23 -0
- package/dist/types/components/rtk-confirmation-modal/rtk-confirmation-modal.d.ts +27 -0
- package/dist/types/components/rtk-controlbar/rtk-controlbar.d.ts +28 -0
- package/dist/types/components/rtk-controlbar-button/rtk-controlbar-button.d.ts +30 -0
- package/dist/types/components/rtk-counter/rtk-counter.d.ts +27 -0
- package/dist/types/components/rtk-debugger/rtk-debugger.d.ts +34 -0
- package/dist/types/components/rtk-debugger-audio/rtk-debugger-audio.d.ts +36 -0
- package/dist/types/components/rtk-debugger-screenshare/rtk-debugger-screenshare.d.ts +38 -0
- package/dist/types/components/rtk-debugger-system/rtk-debugger-system.d.ts +40 -0
- package/dist/types/components/rtk-debugger-toggle/rtk-debugger-toggle.d.ts +24 -0
- package/dist/types/components/rtk-debugger-video/rtk-debugger-video.d.ts +36 -0
- package/dist/types/components/rtk-dialog/rtk-dialog.d.ts +38 -0
- package/dist/types/components/rtk-dialog-manager/rtk-dialog-manager.d.ts +41 -0
- package/dist/types/components/rtk-draft-attachment-view/rtk-draft-attachment-view.d.ts +26 -0
- package/dist/types/components/rtk-emoji-picker/rtk-emoji-picker.d.ts +32 -0
- package/dist/types/components/rtk-emoji-picker-button/rtk-emoji-picker-button.d.ts +10 -0
- package/dist/types/components/rtk-ended-screen/rtk-ended-screen.d.ts +30 -0
- package/dist/types/components/rtk-file-dropzone/rtk-file-dropzone.d.ts +15 -0
- package/dist/types/components/rtk-file-message/rtk-file-message.d.ts +21 -0
- package/dist/types/components/rtk-file-message-view/rtk-file-message-view.d.ts +15 -0
- package/dist/types/components/rtk-file-picker-button/rtk-file-picker-button.d.ts +21 -0
- package/dist/types/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.d.ts +32 -0
- package/dist/types/components/rtk-grid/rtk-grid.d.ts +83 -0
- package/dist/types/components/rtk-grid-pagination/rtk-grid-pagination.d.ts +40 -0
- package/dist/types/components/rtk-header/rtk-header.d.ts +28 -0
- package/dist/types/components/rtk-icon/rtk-icon.d.ts +14 -0
- package/dist/types/components/rtk-idle-screen/rtk-idle-screen.d.ts +19 -0
- package/dist/types/components/rtk-image-message/rtk-image-message.d.ts +26 -0
- package/dist/types/components/rtk-image-message-view/rtk-image-message-view.d.ts +17 -0
- package/dist/types/components/rtk-image-viewer/rtk-image-viewer.d.ts +25 -0
- package/dist/types/components/rtk-information-tooltip/rtk-information-tooltip.d.ts +6 -0
- package/dist/types/components/rtk-join-stage/rtk-join-stage.d.ts +38 -0
- package/dist/types/components/rtk-leave-button/rtk-leave-button.d.ts +22 -0
- package/dist/types/components/rtk-leave-meeting/rtk-leave-meeting.d.ts +35 -0
- package/dist/types/components/rtk-livestream-indicator/rtk-livestream-indicator.d.ts +18 -0
- package/dist/types/components/rtk-livestream-player/rtk-livestream-player.d.ts +60 -0
- package/dist/types/components/rtk-livestream-toggle/rtk-livestream-toggle.d.ts +40 -0
- package/dist/types/components/rtk-logo/rtk-logo.d.ts +20 -0
- package/dist/types/components/rtk-markdown-view/rtk-markdown-view.d.ts +15 -0
- package/dist/types/components/rtk-meeting/rtk-meeting.d.ts +59 -0
- package/dist/types/components/rtk-meeting-title/rtk-meeting-title.d.ts +15 -0
- package/dist/types/components/rtk-menu/rtk-menu.d.ts +30 -0
- package/dist/types/components/rtk-menu-item/rtk-menu-item.d.ts +19 -0
- package/dist/types/components/rtk-menu-list/rtk-menu-list.d.ts +14 -0
- package/dist/types/components/rtk-message-list-view/rtk-message-list-view.d.ts +62 -0
- package/dist/types/components/rtk-message-view/rtk-message-view.d.ts +33 -0
- package/dist/types/components/rtk-mic-toggle/rtk-mic-toggle.d.ts +39 -0
- package/dist/types/components/rtk-microphone-selector/rtk-microphone-selector.d.ts +42 -0
- package/dist/types/components/rtk-mixed-grid/rtk-mixed-grid.d.ts +61 -0
- package/dist/types/components/rtk-more-toggle/rtk-more-toggle.d.ts +32 -0
- package/dist/types/components/rtk-mute-all-button/rtk-mute-all-button.d.ts +26 -0
- package/dist/types/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.d.ts +21 -0
- package/dist/types/components/rtk-name-tag/rtk-name-tag.d.ts +28 -0
- package/dist/types/components/rtk-network-indicator/rtk-network-indicator.d.ts +20 -0
- package/dist/types/components/rtk-notification/rtk-notification.d.ts +30 -0
- package/dist/types/components/rtk-notifications/rtk-notifications.d.ts +69 -0
- package/dist/types/components/rtk-overlay-modal/rtk-overlay-modal.d.ts +22 -0
- package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +91 -0
- package/dist/types/components/rtk-participant/rtk-participant.d.ts +62 -0
- package/dist/types/components/rtk-participant-count/rtk-participant-count.d.ts +26 -0
- package/dist/types/components/rtk-participant-setup/rtk-participant-setup.d.ts +37 -0
- package/dist/types/components/rtk-participant-tile/rtk-participant-tile.d.ts +55 -0
- package/dist/types/components/rtk-participants/rtk-participants.d.ts +48 -0
- package/dist/types/components/rtk-participants-audio/rtk-participants-audio.d.ts +34 -0
- package/dist/types/components/rtk-participants-stage-list/rtk-participants-stage-list.d.ts +42 -0
- package/dist/types/components/rtk-participants-stage-queue/rtk-participants-stage-queue.d.ts +29 -0
- package/dist/types/components/rtk-participants-toggle/rtk-participants-toggle.d.ts +49 -0
- package/dist/types/components/rtk-participants-viewer-list/rtk-participants-viewer-list.d.ts +33 -0
- package/dist/types/components/rtk-participants-waiting-list/rtk-participants-waiting-list.d.ts +29 -0
- package/dist/types/components/rtk-permissions-message/rtk-permissions-message.d.ts +40 -0
- package/dist/types/components/rtk-pip-toggle/rtk-pip-toggle.d.ts +28 -0
- package/dist/types/components/rtk-plugin-main/rtk-plugin-main.d.ts +28 -0
- package/dist/types/components/rtk-plugins/rtk-plugins.d.ts +35 -0
- package/dist/types/components/rtk-plugins-toggle/rtk-plugins-toggle.d.ts +42 -0
- package/dist/types/components/rtk-poll/rtk-poll.d.ts +30 -0
- package/dist/types/components/rtk-poll-form/rtk-poll-form.d.ts +30 -0
- package/dist/types/components/rtk-polls/rtk-polls.d.ts +38 -0
- package/dist/types/components/rtk-polls-toggle/rtk-polls-toggle.d.ts +46 -0
- package/dist/types/components/rtk-recording-indicator/rtk-recording-indicator.d.ts +26 -0
- package/dist/types/components/rtk-recording-toggle/rtk-recording-toggle.d.ts +47 -0
- package/dist/types/components/rtk-screen-share-toggle/rtk-screen-share-toggle.d.ts +67 -0
- package/dist/types/components/rtk-screenshare-view/rtk-screenshare-view.d.ts +52 -0
- package/dist/types/components/rtk-settings/rtk-settings.d.ts +38 -0
- package/dist/types/components/rtk-settings-audio/rtk-settings-audio.d.ts +32 -0
- package/dist/types/components/rtk-settings-toggle/rtk-settings-toggle.d.ts +30 -0
- package/dist/types/components/rtk-settings-video/rtk-settings-video.d.ts +37 -0
- package/dist/types/components/rtk-setup-screen/rtk-setup-screen.d.ts +40 -0
- package/dist/types/components/rtk-sidebar/rtk-sidebar.d.ts +49 -0
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +120 -0
- package/dist/types/components/rtk-simple-grid/rtk-simple-grid.d.ts +43 -0
- package/dist/types/components/rtk-speaker-selector/rtk-speaker-selector.d.ts +44 -0
- package/dist/types/components/rtk-spinner/rtk-spinner.d.ts +12 -0
- package/dist/types/components/rtk-spotlight-grid/rtk-spotlight-grid.d.ts +47 -0
- package/dist/types/components/rtk-spotlight-indicator/rtk-spotlight-indicator.d.ts +22 -0
- package/dist/types/components/rtk-stage/rtk-stage.d.ts +19 -0
- package/dist/types/components/rtk-stage-toggle/rtk-stage-toggle.d.ts +36 -0
- package/dist/types/components/rtk-switch/rtk-switch.d.ts +25 -0
- package/dist/types/components/rtk-tab-bar/rtk-tab-bar.d.ts +37 -0
- package/dist/types/components/rtk-text-composer-view/rtk-text-composer-view.d.ts +34 -0
- package/dist/types/components/rtk-text-message/components/TextMessage.d.ts +6 -0
- package/dist/types/components/rtk-text-message/rtk-text-message.d.ts +21 -0
- package/dist/types/components/rtk-text-message-view/rtk-text-message-view.d.ts +10 -0
- package/dist/types/components/rtk-tooltip/rtk-tooltip.d.ts +42 -0
- package/dist/types/components/rtk-transcript/rtk-transcript.d.ts +30 -0
- package/dist/types/components/rtk-transcripts/rtk-transcripts.d.ts +39 -0
- package/dist/types/components/rtk-ui-provider/rtk-ui-provider.d.ts +45 -0
- package/dist/types/components/rtk-viewer-count/rtk-viewer-count.d.ts +24 -0
- package/dist/types/components/rtk-virtualized-list/rtk-virtualized-participant-list.d.ts +30 -0
- package/dist/types/components/rtk-waiting-screen/rtk-waiting-screen.d.ts +15 -0
- package/dist/types/components.d.ts +11544 -0
- package/dist/types/exports.d.ts +20 -0
- package/dist/types/globals.d.ts +15 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/lib/addons/index.d.ts +27 -0
- package/dist/types/lib/audio.d.ts +17 -0
- package/dist/types/lib/builder/index.d.ts +42 -0
- package/dist/types/lib/default-ui-config.d.ts +5 -0
- package/dist/types/lib/grid.d.ts +43 -0
- package/dist/types/lib/icons/default-icon-pack.d.ts +88 -0
- package/dist/types/lib/icons/index.d.ts +9 -0
- package/dist/types/lib/lang/default-language.d.ts +415 -0
- package/dist/types/lib/lang/index.d.ts +16 -0
- package/dist/types/lib/notification.d.ts +19 -0
- package/dist/types/lib/render/index.d.ts +45 -0
- package/dist/types/lib/render/utils.d.ts +31 -0
- package/dist/types/lib/visualizer.d.ts +6 -0
- package/dist/types/stencil-public-runtime.d.ts +1680 -0
- package/dist/types/theme/presets/border.d.ts +13 -0
- package/dist/types/theme/presets/themes.d.ts +2 -0
- package/dist/types/types/floating-ui.d.ts +1 -0
- package/dist/types/types/props.d.ts +175 -0
- package/dist/types/types/rtk-ai.d.ts +9 -0
- package/dist/types/types/rtk-client.d.ts +16 -0
- package/dist/types/types/ui-config/config.d.ts +25 -0
- package/dist/types/types/ui-config/design-tokens.d.ts +41 -0
- package/dist/types/types/ui-config/index.d.ts +15 -0
- package/dist/types/types/ui-config/root.d.ts +23 -0
- package/dist/types/types/web-core.d.ts +9 -0
- package/dist/types/utils/assets.d.ts +6 -0
- package/dist/types/utils/breakout-rooms-manager.d.ts +100 -0
- package/dist/types/utils/breakout-rooms.d.ts +24 -0
- package/dist/types/utils/chat.d.ts +49 -0
- package/dist/types/utils/clone.d.ts +1 -0
- package/dist/types/utils/color.d.ts +69 -0
- package/dist/types/utils/config.d.ts +28 -0
- package/dist/types/utils/date.d.ts +3 -0
- package/dist/types/utils/debugger-utils.d.ts +40 -0
- package/dist/types/utils/file.d.ts +23 -0
- package/dist/types/utils/full-screen.d.ts +4 -0
- package/dist/types/utils/graceful-storage.d.ts +2 -0
- package/dist/types/utils/logger.d.ts +1 -0
- package/dist/types/utils/notification.d.ts +9 -0
- package/dist/types/utils/provide-design-system.d.ts +7 -0
- package/dist/types/utils/scroll.d.ts +7 -0
- package/dist/types/utils/sidebar.d.ts +5 -0
- package/dist/types/utils/size.d.ts +7 -0
- package/dist/types/utils/stage.d.ts +3 -0
- package/dist/types/utils/string.d.ts +24 -0
- package/dist/types/utils/sync-with-store/index.d.ts +3 -0
- package/dist/types/utils/sync-with-store/ui-store.d.ts +20 -0
- package/dist/types/utils/time.d.ts +1 -0
- package/dist/types/utils/troubleshooter.d.ts +151 -0
- package/dist/types/utils/user-prefs.d.ts +7 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +59 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,H as o}from"./p-0ee570cd.js";import{c as s,a}from"./p-ee167b96.js";import{S as r}from"./p-2aa242f4.js";var n=function(t,e,i,o){var s,a=arguments.length,r=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(a<3?s(r):a>3?s(e,i,r):s(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};const c=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.t=s(),this.iconPack=a}toggleDebugger(){var t;this.stateUpdate.emit({activeDebugger:!(null===(t=this.states)||void 0===t?void 0:t.activeDebugger),activeMoreMenu:!1})}render(){return i(o,{key:"e46722c024802f6c96cebb487c9049e8834c48f8",title:this.t("Troubleshooting")},i("rtk-controlbar-button",{key:"ee3d60dd6993d2757f763a0ae8ba173887c9ceba",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleDebugger(),icon:this.iconPack.debug,label:this.t("Troubleshooting"),variant:this.variant}))}};n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"t",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"size",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_debugger_toggle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as r,h as o,H as a}from"./p-0ee570cd.js";import{a as i,c as s}from"./p-ee167b96.js";import{S as e}from"./p-2aa242f4.js";var n=function(t,r,o,a){var i,s=arguments.length,e=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,o):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,o,a);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(e=(s<3?i(e):s>3?i(r,o,e):i(r,o))||e);return s>3&&e&&Object.defineProperty(r,o,e),e};const c=class{constructor(o){t(this,o),this.stateUpdate=r(this,"rtkStateUpdate",7),this.keyPressListener=t=>{"Escape"===t.key&&this.close()},this.stageStatusListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.iconPack=i,this.t=s(),this.activeTab="connection",this.isMobileMainVisible=!1,this.networkStatus="good",this.canProduceVideo=!1}connectedCallback(){document.addEventListener("keydown",this.keyPressListener),this.meetingChanged(this.meeting)}disconnectedCallback(){var t;this.keyPressListener&&document.removeEventListener("keydown",this.keyPressListener),this.poorConnectionListener&&(null===(t=this.meeting)||void 0===t||t.meta.removeListener("poorConnection",this.poorConnectionListener)),this.meeting.stage.removeListener("stageStatusUpdate",this.stageStatusListener)}meetingChanged(t){null!=t&&(this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo,this.activeTab=this.canProduceVideo?"video":"audio",this.poorConnectionListener=({score:t})=>{t<7?this.networkStatus="poor":t<4&&(this.networkStatus="poorest"),setTimeout((()=>{this.networkStatus="good"}),5e3)},t.meta.addListener("poorConnection",this.poorConnectionListener),t.stage.addListener("stageStatusUpdate",this.stageStatusListener))}changeTab(t){this.activeTab=t,"sm"===this.size&&(this.isMobileMainVisible||(this.isMobileMainVisible=!0))}close(){this.stateUpdate.emit({activeSettings:!1})}render(){if(null==this.meeting)return null;const t={meeting:this.meeting,states:this.states,iconPack:this.iconPack,t:this.t};return o(a,null,o("aside",{class:{hide:this.isMobileMainVisible},part:"menu"},o("header",null,o("h2",null,this.t("settings"))),o("button",{type:"button",class:{active:"audio"===this.activeTab},onClick:()=>this.changeTab("audio")},this.t("audio"),o("div",{class:"right"},o("rtk-icon",{icon:this.iconPack.mic_on}),"sm"===this.size&&o("rtk-icon",{icon:this.iconPack.chevron_right}))),this.canProduceVideo&&o("button",{type:"button",class:{active:"video"===this.activeTab},onClick:()=>this.changeTab("video")},this.t("video"),o("div",{class:"right"},o("rtk-icon",{icon:this.iconPack.video_on}),"sm"===this.size&&o("rtk-icon",{icon:this.iconPack.chevron_right}))),o("button",{type:"none",title:`Your network condition is ${this.networkStatus}`},this.t("connection"),o("div",{class:"right"},o("rtk-icon",{icon:this.iconPack.wifi,class:this.networkStatus})))),o("main",{class:{active:this.isMobileMainVisible,scrollbar:!0},part:"main-content"},"sm"===this.size&&o("header",null,o("rtk-button",{kind:"icon",class:"back-btn",onClick:()=>this.isMobileMainVisible=!1},o("rtk-icon",{icon:this.iconPack.chevron_left})),o("h2",null,this.t("audio"===this.activeTab?"audio":"video"))),"audio"===this.activeTab&&o("rtk-settings-audio",Object.assign({},t)),"video"===this.activeTab&&o("rtk-settings-video",Object.assign({},t))))}static get watchers(){return{meeting:["meetingChanged"]}}};n([e()],c.prototype,"meeting",void 0),n([e()],c.prototype,"states",void 0),n([e()],c.prototype,"size",void 0),n([e()],c.prototype,"iconPack",void 0),n([e()],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)}.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-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}header{display:flex;align-items:center;justify-content:space-between;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}.title{font-size:20px;line-height:1}.back-btn,.dismiss-btn{border-radius:var(--rtk-border-radius-sm, 4px);background-color:transparent;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.back-btn:hover,.dismiss-btn:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside{box-sizing:border-box;display:flex;min-width:var(--rtk-space-56, 224px);flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));padding-left:var(--rtk-space-2, 8px)}aside button{margin-top:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;width:100%;align-items:center;justify-content:space-between;border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px);padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);background-color:transparent;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));cursor:default;font-size:16px;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px}aside button .right{display:flex;align-items:center}aside button .right rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}aside button .right rtk-icon:last-child{margin-left:var(--rtk-space-4, 16px)}aside button[type='button']{cursor:pointer;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}aside button[type='button']:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}aside button[type='button']{border-right:var(--rtk-border-width-md, 2px) solid transparent}aside button.active{--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-border-opacity));background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}aside button.active:hover{background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / 0.2)}rtk-icon.poor{--tw-text-opacity:1;color:rgba(var(--rtk-colors-warning, 255 205 7) / var(--tw-text-opacity))}rtk-icon.poorest{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.good{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}main{display:flex;flex:1 1 0%;align-items:center;justify-content:center;padding-left:var(--rtk-space-6, 24px);padding-right:var(--rtk-space-6, 24px);box-sizing:border-box;width:100%;max-width:calc(100% - var(--rtk-space-56, 224px))}.dismiss-btn{position:absolute;top:var(--rtk-space-3, 12px);right:var(--rtk-space-3, 12px);height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}:host([size='sm']) aside{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([size='sm']) .dismiss-btn{top:var(--rtk-space-5, 20px);right:var(--rtk-space-4, 16px)}:host([size='sm']) aside{width:100%;padding-left:var(--rtk-space-0, 0px)}:host([size='sm']) aside button{border-radius:var(--rtk-border-radius-none, 0)}:host([size='sm']) aside button.active{border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent}:host([size='sm']) aside button.active:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([size='sm']) aside.hide{display:none}:host([size='sm']) main{display:none;max-width:100%;overflow-y:auto;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) main header{justify-content:center}:host([size='sm']) main header rtk-button{position:absolute;left:var(--rtk-space-4, 16px)}:host([size='sm']) main.active{display:block}";export{c as rtk_settings}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as t,h as s,H as o}from"./p-0ee570cd.js";import{a as e,c as a}from"./p-ee167b96.js";import{S as l}from"./p-2aa242f4.js";var n=function(i,t,s,o){var e,a=arguments.length,l=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(i,t,s,o);else for(var n=i.length-1;n>=0;n--)(e=i[n])&&(l=(a<3?e(l):a>3?e(t,s,l):e(t,s))||l);return a>3&&l&&Object.defineProperty(t,s,l),l};const d=class{constructor(s){i(this,s),this.stateUpdate=t(this,"rtkStateUpdate",7),this.audioUpdateListener=({audioEnabled:i})=>{this.audioEnabled=i},this.stageStatusListener=()=>{this.stageStatus=this.meeting.stage.status,this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio},this.mediaPermissionUpdateListener=({kind:i,message:t})=>{"audio"===i&&(this.micPermission=t)},this.meetingPermissionsUpdateListener=i=>{var t;(null===(t=null==i?void 0:i.media)||void 0===t?void 0:t.audio)&&(this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio)},this.variant="button",this.iconPack=e,this.t=a(),this.audioEnabled=!1,this.canProduceAudio=!1,this.micPermission="NOT_REQUESTED",this.stageStatus="OFF_STAGE",this.toggleMic=()=>{var i,t,s,o,e,a,l,n,d,h,r,c;if(null===(i=this.meeting)||void 0===i||i.__internals__.logger.info("rtkMicToggle::toggleMic",{media:{audio:{enabled:Boolean(null===(s=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===s?void 0:s.audioEnabled),permission:this.micPermission,canProduce:null===(a=null===(e=null===(o=this.meeting)||void 0===o?void 0:o.self)||void 0===e?void 0:e.permissions)||void 0===a?void 0:a.canProduceAudio}},webinar:{stageStatus:null===(n=null===(l=this.meeting)||void 0===l?void 0:l.stage)||void 0===n?void 0:n.status},livestream:{stageStatus:null===(h=null===(d=this.meeting)||void 0===d?void 0:d.stage)||void 0===h?void 0:h.status},moduleExists:{self:Boolean(null===(r=this.meeting)||void 0===r?void 0:r.self)}}),this.hasPermissionError())return this.stateUpdate.emit({activePermissionsMessage:{enabled:!0,kind:"audio"}}),!1;const v=null===(c=this.meeting)||void 0===c?void 0:c.self;null!=v&&this.canProduceAudio&&(v.audioEnabled?v.disableAudio():v.enableAudio())}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var i,t,s,o,e,a,l;null===(i=this.meeting)||void 0===i||i.self.removeListener("audioUpdate",this.audioUpdateListener),null===(t=this.meeting)||void 0===t||t.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null===(o=null===(s=this.meeting)||void 0===s?void 0:s.stage)||void 0===o||o.removeListener("stageStatusUpdate",this.stageStatusListener),null===(l=null===(a=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===a?void 0:a.permissions)||void 0===l||l.removeListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}meetingChanged(i){var t,s;if(null!=i){const{self:o,stage:e}=i;this.canProduceAudio="ALLOWED"===this.meeting.self.permissions.canProduceAudio,this.micPermission=i.self.mediaPermissions.audio||"NOT_REQUESTED",this.audioEnabled=o.audioEnabled,this.stageStatus=i.stage.status,o.addListener("audioUpdate",this.audioUpdateListener),o.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),null==e||e.addListener("stageStatusUpdate",this.stageStatusListener),null===(s=null===(t=i.self)||void 0===t?void 0:t.permissions)||void 0===s||s.addListener("permissionsUpdate",this.meetingPermissionsUpdateListener)}}hasPermissionError(){return"DENIED"===this.micPermission||"SYSTEM_DENIED"===this.micPermission}getState(){let i="",t="",s="",o={},e=this.hasPermissionError(),a="COULD_NOT_START"===this.micPermission;return this.audioEnabled&&!e?(t=this.t("mic_on"),s=this.iconPack.mic_on):(t=this.t("mic_off"),s=this.iconPack.mic_off,o["red-icon"]=!0),i=this.t(a?"perm_could_not_start.audio":"SYSTEM_DENIED"===this.micPermission?"perm_sys_denied.audio":"DENIED"===this.micPermission?"perm_denied.audio":this.audioEnabled?"disable_mic":"enable_mic"),{tooltipLabel:i,label:t,icon:s,classList:o,showWarning:e||a,disable:e}}render(){if(!this.canProduceAudio||["OFF_STAGE","REQUESTED_TO_JOIN_STAGE"].includes(this.stageStatus))return s(o,{"data-hidden":!0});const{tooltipLabel:i,label:t,icon:e,classList:a,showWarning:l,disable:n}=this.getState();return s(o,{title:t},s("rtk-tooltip",{kind:"block",label:i,part:"tooltip"},s("rtk-controlbar-button",{part:"controlbar-button",icon:e,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,class:a,onClick:this.toggleMic,showWarning:l,disabled:n})))}static get watchers(){return{meeting:["meetingChanged"]}}};n([l()],d.prototype,"meeting",void 0),n([l()],d.prototype,"size",void 0),n([l()],d.prototype,"iconPack",void 0),n([l()],d.prototype,"t",void 0),d.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}:host([data-hidden]){display:none}:host(.audioDisabled) :slotted(rtk-icon){--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_mic_toggle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as a,H as i}from"./p-0ee570cd.js";import{a as s,c as o}from"./p-ee167b96.js";import{S as r}from"./p-2aa242f4.js";var n=function(t,e,a,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,a,i);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(r=(o<3?s(r):o>3?s(e,a,r):s(e,a))||r);return o>3&&r&&Object.defineProperty(e,a,r),r};const c=class{constructor(a){t(this,a),this.stateUpdate=e(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 a(i,{key:"2ce38b68e83d44e924766230f74b18111db72771",label:t},a("rtk-controlbar-button",{key:"5bdc59145416c548a980178df00225781bbbadcc",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,"size",void 0),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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const s=s=>s>=1080?"lg":s>=768?"md":"sm";export{s as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as a}from"./p-0ee570cd.js";import{a as e,c as n}from"./p-ee167b96.js";import{a as r}from"./p-b16cee89.js";import{S as h}from"./p-2aa242f4.js";var o=function(t,i,s,a){var e,n=arguments.length,r=n<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,a);else for(var h=t.length-1;h>=0;h--)(e=t[h])&&(r=(n<3?e(r):n>3?e(i,s,r):e(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=e,this.t=n(),this.participantsActive=!1,this.waitlistedParticipants=[],this.stageRequestedParticipants=[],this.badgeCount=0,this.canViewParticipants=!1,this.updateStageRequests=async t=>{var i,s,a;t||(t=null!==(a=null===(s=null===(i=this.meeting.stage)||void 0===i?void 0:i.getAccessRequests())||void 0===s?void 0:s.stageRequests)&&void 0!==a?a:[]),this.stageRequestedParticipants=t,this.stageRequestedParticipants="REQUESTED_TO_JOIN_STAGE"===this.meeting.stage.status?[this.meeting.self,...t]:t,this.updateBadgeCount()},this.updateBadgeCount=()=>{this.badgeCount=this.waitlistedParticipants.length+this.stageRequestedParticipants.length},this.updateCanView=()=>{this.canViewParticipants=r(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,s;null!=this.meeting&&(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),this.waitlistedParticipantJoinedListener&&this.meeting.participants.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&this.meeting.participants.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),null===(s=this.meeting.stage)||void 0===s||s.removeListener("stageAccessRequestUpdate",this.updateStageRequests))}meetingChanged(t){var i;null!=t&&(this.canViewParticipants=r(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),t.self.permissions.acceptWaitingRequests&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t],this.updateBadgeCount())},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id)),this.updateBadgeCount()},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener)),this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&(this.updateStageRequests(),null==t||t.stage.on("stageAccessRequestUpdate",this.updateStageRequests)),this.updateBadgeCount())}statesChanged(t){null!=t&&(this.participantsActive=!0===t.activeSidebar&&"participants"===t.sidebar)}toggleParticipantsTab(){const t=this.states;this.participantsActive=!((null==t?void 0:t.activeSidebar)&&"participants"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.participantsActive,sidebar:this.participantsActive?"participants":void 0,activeMoreMenu:!1,activeAI:!1})}handleParticipantsActiveChange(){this.participantsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewParticipants)return s(a,{"data-hidden":!0});const t=this.t("participants");return s(a,{title:t},0!==this.badgeCount&&!this.participantsActive&&s("div",{class:"waiting-participants-count",part:"waiting-participants-count"},s("span",null,this.badgeCount<=100?this.badgeCount:"99+")),s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.participantsActive},onClick:()=>this.toggleParticipantsTab(),icon:this.iconPack.participants,label:t,variant:this.variant}))}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],participantsActive:["handleParticipantsActiveChange"]}}};o([h()],c.prototype,"meeting",void 0),o([h()],c.prototype,"states",void 0),o([h()],c.prototype,"size",void 0),o([h()],c.prototype,"iconPack",void 0),o([h()],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{position:relative;display:block}:host([data-hidden]){display:none}.waiting-participants-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}:host([variant='horizontal']) .waiting-participants-count{right:var(--rtk-space-4, 16px);top:50%;--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}";export{c as rtk_participants_toggle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as a,h as t,H as e}from"./p-0ee570cd.js";import{d as i,a as s,c as r}from"./p-ee167b96.js";import{R as n}from"./p-c8eaa707.js";import{S as o}from"./p-2aa242f4.js";var c=function(a,t,e,i){var s,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(a,t,e,i);else for(var o=a.length-1;o>=0;o--)(s=a[o])&&(n=(r<3?s(n):r>3?s(t,e,n):s(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};const d=class{constructor(t){a(this,t),this.variant="solid",this.disableRender=!1,this.config=i,this.iconPack=s,this.t=r()}render(){return t(e,{key:"0b3c18e3927465e198c26f79d810dadc31ebb74b"},!this.disableRender&&t(n,{key:"480d2f17a6d831dabb3d39abceb33fbc1aa6d78d",element:"rtk-header",defaults:{meeting:this.meeting,config:this.config,states:this.states,t:this.t,iconPack:this.iconPack,size:this.size},onlyChildren:!0}),t("slot",{key:"67f89c4a3574ba22976d3aa57268aabe4ce78d2a"}))}};c([o()],d.prototype,"meeting",void 0),c([o()],d.prototype,"states",void 0),c([o()],d.prototype,"iconPack",void 0),c([o()],d.prototype,"t",void 0),c([o()],d.prototype,"size",void 0),d.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:var(--rtk-space-12, 48px);align-items:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}@media only screen and (max-device-height: 480px) and (orientation: landscape){:host{display:none !important}}@media only screen and (max-height: 480px) and (orientation: landscape){:host{display:none !important}}";export{d as rtk_header}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./p-338c7261.js";const n=t=>t.split(/[#?]/)[0].split(".").pop().trim(),a=t=>{if(!t)return"0 B";const n=Math.floor(Math.log(t)/Math.log(1024));return`${(t/1024**n).toFixed(2)} ${["B","kB","MB","GB","TB"][n]}`},r=async(n,a)=>{n=t(n);let r=null==a?void 0:a.name;const o=await fetch(n);if(!o.ok)return void window.open(n,"_blank");const c=URL.createObjectURL(await o.blob()),e=document.createElement("a");e.href=c,e.download=null!=r?r:((t,n="file")=>{try{const a=new URL(t).pathname.split("/").pop();return"/"!==a?a:n}catch(t){return n}})(n,null==a?void 0:a.fallbackName),e.click()};export{a,r as d,n as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{a,c as o}from"./p-ee167b96.js";import{S as r}from"./p-2aa242f4.js";var n=function(t,i,s,e){var a,o=arguments.length,r=o<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(r=(o<3?a(r):o>3?a(i,s,r):a(i,s))||r);return o>3&&r&&Object.defineProperty(i,s,r),r};const c=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=o(),this.aiActive=!1}statesChanged(t){this.aiActive=t.activeAI}toggleAI(){var t;this.aiActive=!(null===(t=this.states)||void 0===t?void 0:t.activeAI),this.stateUpdate.emit({activeAI:this.aiActive,activeMoreMenu:!1,activeSidebar:!1})}render(){var t,i;const a=this.t("ai.meeting_ai");return(null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions).transcriptionEnabled?s(e,{title:a},s("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.aiActive},onClick:()=>this.toggleAI(),icon:this.iconPack.meeting_ai,label:a,variant:this.variant,brandIcon:!0})):s(e,{"data-hidden":!0})}static get watchers(){return{states:["statesChanged"]}}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"meeting",void 0),n([r()],c.prototype,"size",void 0),n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{display:block}:host([data-hidden]){display:none}";export{c as rtk_ai_toggle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as r,b as t,a as n,r as i}from"./p-2c3cda13.js";var o="[object Symbol]",e=/\s/,u=/^\s+/;var f=NaN,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,v=/^0o[0-7]+$/i,s=parseInt;function d(i){if("number"==typeof i)return i;if(function(n){return"symbol"==typeof n||r(n)&&t(n)==o}(i))return f;if(n(i)){var d="function"==typeof i.valueOf?i.valueOf():i;i=n(d)?d+"":d}if("string"!=typeof i)return 0===i?i:+i;var m;i=(m=i)?m.slice(0,function(r){for(var t=r.length;t--&&e.test(r.charAt(t)););return t}(m)+1).replace(u,""):m;var p=c.test(i);return p||v.test(i)?s(i.slice(2),p?2:8):a.test(i)?f:+i}const m=function(){return i.Date.now()};var p=Math.max,y=Math.min;function T(r,t,i){var o,e,u,f,a,c,v=0,s=!1,T=!1,b=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function l(t){var n=o,i=e;return o=e=void 0,v=t,f=r.apply(i,n)}function h(r){var n=r-c;return void 0===c||n>=t||n<0||T&&r-v>=u}function x(){var r=m();if(h(r))return $(r);a=setTimeout(x,function(r){var n=t-(r-c);return T?y(n,u-(r-v)):n}(r))}function $(r){return a=void 0,b&&o?l(r):(o=e=void 0,f)}function g(){var r=m(),n=h(r);if(o=arguments,e=this,c=r,n){if(void 0===a)return function(r){return v=r,a=setTimeout(x,t),s?l(r):f}(c);if(T)return clearTimeout(a),a=setTimeout(x,t),l(c)}return void 0===a&&(a=setTimeout(x,t)),f}return t=d(t)||0,n(i)&&(s=!!i.leading,u=(T="maxWait"in i)?p(d(i.maxWait)||0,t):u,b="trailing"in i?!!i.trailing:b),g.cancel=function(){void 0!==a&&clearTimeout(a),v=0,o=c=e=a=void 0},g.flush=function(){return void 0===a?f:$(m())},g}export{T as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as o,h as t,H as r}from"./p-0ee570cd.js";import{S as a}from"./p-2aa242f4.js";import{a as e}from"./p-ee167b96.js";const i=class{constructor(t){o(this,t),this.iconPack=e}render(){return t(r,{key:"3dc48c8a69876a68b038340a948057dd04a5e9ef"},t("div",{key:"1f5a9c5379f882b249dee77376959d9b4de09d0b",class:"tooltip-container"},t("rtk-icon",{key:"cb0232b6e72f565895d3027747f957cba0e4910f",icon:this.iconPack.info,size:"sm"}),t("div",{key:"35a1b7abbb2026badb606444b330fcb239865d9f",class:"tooltip"},t("slot",{key:"3295df905bcd5c10f31d211e74bf7a0e4413dd87",name:"tootlip-text"}))))}};(function(o,t,r,a){var e,i=arguments.length,c=i<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(o,t,r,a);else for(var p=o.length-1;p>=0;p--)(e=o[p])&&(c=(i<3?e(c):i>3?e(t,r,c):e(t,r))||c);i>3&&c&&Object.defineProperty(t,r,c)})([a()],i.prototype,"iconPack",void 0),i.style=":host{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);cursor:pointer}.tooltip-container{position:relative;display:flex;flex-direction:row;align-items:center}.tooltip-container rtk-icon{cursor:pointer;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52))}.tooltip-container rtk-icon:hover+.tooltip{display:flex !important}.tooltip{position:absolute;margin-left:var(--rtk-space-2, 8px);display:none !important;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);font-weight:400;color:rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));z-index:50;display:flex;min-width:var(--rtk-space-60, 240px);flex-direction:column;--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);left:14px}";export{i as rtk_information_tooltip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as e,H as s}from"./p-0ee570cd.js";import{a as o,c as a}from"./p-ee167b96.js";import{S as n}from"./p-2aa242f4.js";var r=function(t,i,e,s){var o,a=arguments.length,n=a<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(a<3?o(n):a>3?o(i,e,n):o(i,e))||n);return a>3&&n&&Object.defineProperty(i,e,n),n};const l=class{constructor(e){t(this,e),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=o,this.t=a(),this.canDisable=!1,this.permissionsUpdateListener=()=>{var t;this.canDisable=!!(null===(t=this.meeting)||void 0===t?void 0:t.self.permissions.canDisableParticipantAudio)},this.onMuteAll=()=>{this.stateUpdate.emit({activeMuteAllConfirmation:!0})}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,i,e;null===(e=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===e||e.removeListener("permissionsUpdate",this.permissionsUpdateListener)}meetingChanged(t){t&&(this.canDisable=!!(null==t?void 0:t.self.permissions.canDisableParticipantAudio),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener))}render(){if(!this.canDisable)return null;const t=this.t("mute_all");return e(s,{title:t},e("rtk-tooltip",{kind:"block",label:t,part:"tooltip"},e("rtk-controlbar-button",{part:"controlbar-button",icon:this.iconPack.speaker_off,label:t,size:this.size,iconPack:this.iconPack,variant:this.variant,onClick:this.onMuteAll})))}static get watchers(){return{meeting:["meetingChanged"]}}};r([n()],l.prototype,"meeting",void 0),r([n()],l.prototype,"size",void 0),r([n()],l.prototype,"iconPack",void 0),r([n()],l.prototype,"t",void 0),l.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{l as rtk_mute_all_button}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{a,c as n}from"./p-ee167b96.js";import{b as l}from"./p-b16cee89.js";import{S as o}from"./p-2aa242f4.js";var h=function(t,i,s,e){var a,n=arguments.length,l=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(l=(n<3?a(l):n>3?a(i,s,l):a(i,s))||l);return n>3&&l&&Object.defineProperty(i,s,l),l};const r=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=a,this.t=n(),this.pluginsActive=!1,this.canViewPlugins=!1,this.updateCanView=()=>{this.canViewPlugins=l(this.meeting)}}disconnectedCallback(){var t,i,s,e;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.updateCanView),null===(e=null===(s=this.meeting)||void 0===s?void 0:s.self)||void 0===e||e.permissions.removeListener("pluginsUpdate",this.updateCanView)}connectedCallback(){this.statesChanged(this.states),this.meetingChanged(this.meeting)}meetingChanged(t){var i,s;null!=t&&(this.canViewPlugins=l(t),null===(i=null==t?void 0:t.stage)||void 0===i||i.on("stageStatusUpdate",this.updateCanView),null===(s=null==t?void 0:t.self)||void 0===s||s.permissions.addListener("pluginsUpdate",this.updateCanView))}statesChanged(t){null!=t&&(this.pluginsActive=!0===t.activeSidebar&&"plugins"===t.sidebar)}togglePlugins(){const t=this.states;this.pluginsActive=!((null==t?void 0:t.activeSidebar)&&"plugins"===(null==t?void 0:t.sidebar)),this.stateUpdate.emit({activeSidebar:this.pluginsActive,sidebar:this.pluginsActive?"plugins":void 0,activeMoreMenu:!1,activeAI:!1})}handlePluginsActiveChange(){this.pluginsActive||this.states.activeSidebar||this.buttonEl.focus()}render(){if(!this.canViewPlugins)return s(e,{"data-hidden":!0});const t=this.t("plugins");return s(e,{title:t},s("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.pluginsActive},onClick:()=>this.togglePlugins(),icon:this.iconPack.rocket,label:t,variant:this.variant}))}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],pluginsActive:["handlePluginsActiveChange"]}}};h([o()],r.prototype,"meeting",void 0),h([o()],r.prototype,"states",void 0),h([o()],r.prototype,"size",void 0),h([o()],r.prototype,"iconPack",void 0),h([o()],r.prototype,"t",void 0),r.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}:host([data-hidden]){display:none}";export{r as rtk_plugins_toggle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{f as t}from"./p-ee167b96.js";const n=t=>{let n=null;try{const e=JSON.parse(t.message),{target:s,message:r}=e;n=void 0===s||void 0===r?t:Object.assign(Object.assign({},t),{targetUserIds:s,message:r})}catch(e){n=t}return n};function e(t,n){return t.localeCompare(n)}function s(t){return t.sort(((t,n)=>t.localeCompare(n))).join("_")}function r(t,n){if(null==t)return!0;for(const e of t)if("file"===e.kind){const t=e.getAsFile();e.type.startsWith("image/")?n("image",t):n("file",t)}}function o({messages:t,participants:e,selfUserId:r}){const o={};for(const t of e)o[s([t.userId,r])]=[];return t.forEach((t=>{var e;const r=n(t);let c="everyone";if((null===(e=r.targetUserIds)||void 0===e?void 0:e.length)>0){const t=new Set([r.userId,...r.targetUserIds]);c=s(Array.from(t))}o[c]||(o[c]=[]),o[c].push({type:"chat",message:r})})),o}function c({messages:n,selfUserId:e,selectedGroupId:s,participants:r}){var c;const a=o({messages:n,selfUserId:e,participants:r}),i={};for(const n in a){const r=null!==(c=t[n])&&void 0!==c?c:0;n===s?(i[n]=0,t[n]=new Date):i[n]=a[n].filter((t=>"chat"==t.type&&t.message.time>r&&t.message.userId!==e)).length}return i}function a({groupId:t,selfUserId:n}){return t.split("_").find((t=>t!=n))}const i="dm__";function u(t){return t.isDirectMessage}function f(t){return[...new Set(t)].sort(e).join("<>")}function l(t){return t.split("").reverse().join("")}const p=/^\*([^*\s]+)\*/,d=/^_([^_\s]+)_/,b=/^~([^~\s]+)~/,g=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.,~#?&//=]*)/,m=/<blockquote>[.\s\S]*<\/blockquote>\n\n/m;function _(t,n=!1){if(!m.test(t))return"";let e=0,s=13;return n&&(e=12,s=0),t.substring(t.indexOf("<blockquote>")+e,t.indexOf("</blockquote>")+s)}function v(t){return t.replace(m,"")}const q=2e3,I=["<a>","<b>","<i>","<q>","<s>"];function w(t){t=(t=t.split(" ").map((t=>{if(g.test(t)){const n=g.exec(t);t=t.replace(n[0],`<a>${n[0]}</a>`)}else{if(p.test(t)){const n=p.exec(t);t=t.replace(n[0],`<b>${n[1]}</b>`)}if(d.test(t)){const n=d.exec(t);t=t.replace(n[0],`<i>${n[1]}</i>`)}if(b.test(t)){const n=b.exec(t);t=t.replace(n[0],`<s>${n[1]}</s>`)}}return t})).join(" ")).split(" ").map(((t,n)=>">"!==t||0!==n&&">"!==t[n-1]?t:"<q></q>")).join(" ");const[n]=y(t);return n}function y(t,n=""){const e=[];if(0===t.length)return[e,0];let s=0;for(;s<t.length;){if(n.length&&n===t.substring(s,s+n.length))return[e,s+n.length];if(I.includes(t.substring(s,s+3))){const[n,r]=y(t.substring(s+3),`</${t[s+1]}>`);e.push({type:t[s+1],content:1===n.length&&"plain_text"===n[0].type?n[0].content:n}),s+=r+3}else{let n=e[e.length-1];n&&"plain_text"===n.type||(e.push({type:"plain_text",content:""}),n=e[e.length-1]),n.content+=t[s],s++}}return[e,s]}export{q as M,i as T,o as a,c as b,a as c,e as d,f as e,w as f,s as g,r as h,u as i,_ as j,m as k,n as p,l as r,v as s}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as r,H as a}from"./p-0ee570cd.js";import{c as s}from"./p-ee167b96.js";import{S as o}from"./p-2aa242f4.js";const i=class{constructor(r){t(this,r),this.dismiss=e(this,"rtkTranscriptDismiss",7),this.t=s()}connectedCallback(){this.transcriptChanged(this.transcript)}transcriptChanged(t,e){if((null==e?void 0:e.renderedId)===t.renderedId&&(null==e?void 0:e.transcript)===t.transcript)return;if(clearTimeout(this.timeout),!(null==t?void 0:t.name)||!(null==t?void 0:t.transcript))return;const{id:r,renderedId:a}=t;this.timeout=setTimeout((()=>{this.dismiss.emit({id:r,renderedId:a})}),1e4)}render(){return r(a,{key:"40777059dc796ccc9772d79ce7507762bc8f9323"},r("div",{key:"b2c9181f66d7dcc024d7f1dedee09429139285a1",class:"ctr"},r("p",{key:"261023413c7bad6207249d93dbd61222aafa0df8",class:"message"},r("span",{key:"822c6ecc8dd33bc9395f21a5bec49183f207fd7b",class:"name"},this.transcript.name),": ",this.transcript.transcript)))}static get watchers(){return{transcript:["transcriptChanged"]}}};(function(t,e,r,a){var s,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(o<3?s(i):o>3?s(e,r,i):s(e,r))||i);o>3&&i&&Object.defineProperty(e,r,i)})([o()],i.prototype,"t",void 0),i.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{pointer-events:none;display:block;color:rgb(var(--rtk-colors-text-1000, 255 255 255));display:flex;justify-content:center;vertical-align:middle;animation:show 0.4s ease;transition:0.4s;z-index:5;width:100%}.ctr{box-sizing:border-box;display:inline-flex;height:100%;align-items:center;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));--tw-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);--tw-shadow-color:rgb(var(--rtk-colors-background-1000, 8 8 8));--tw-shadow:var(--tw-shadow-colored);pointer-events:auto;padding:var(--rtk-space-3, 12px);overflow:auto;max-width:50%}.message{margin:var(--rtk-space-0, 0px);display:inline-block;justify-content:center;max-width:100%;text-wrap:wrap;line-height:1.5rem}.message .name{font-weight:bold}:host(.exit){animation:exit 0.4s ease}@keyframes show{0%{opacity:0;transform:translateY(120px)}100%{opacity:1;transform:translateY(0px)}}@keyframes exit{0%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-120px)}}:host([size='sm']){font-size:14px}";export{i as rtk_transcript}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,h as t,H as a}from"./p-0ee570cd.js";import{c as e}from"./p-ee167b96.js";import{C as o}from"./p-0b1fabf5.js";import{s}from"./p-0752f2ba.js";import{S as i}from"./p-2aa242f4.js";import{c}from"./p-c15d924f.js";import"./p-338c7261.js";import"./p-46923b34.js";import"./p-2c3cda13.js";var n=function(r,t,a,e){var o,s=arguments.length,i=s<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(r,t,a,e);else for(var c=r.length-1;c>=0;c--)(o=r[c])&&(i=(s<3?o(i):s>3?o(t,a,i):o(t,a))||i);return s>3&&i&&Object.defineProperty(t,a,i),i};const d=class{constructor(t){r(this,t),this.participantQuery="",this.isProcessing=!1,this.t=e(),this.transcriptions=[],this.autoScrollEnabled=!0,this.onScroll=r=>{const{scrollTop:t,clientHeight:a,scrollHeight:e}=r.target;this.autoScrollEnabled=t+a+10>=e},this.onTranscriptHandler=r=>{this.transcriptions=this.transcriptionsReducer(this.transcriptions,r)}}transcriptionsReducer(r,t){if(!r.length||r[r.length-1].peerId!==t.peerId)return r.concat(t);const a=r[r.length-1];return a.id===t.id?(a.transcript=t.transcript,r.pop(),r.concat(a)):r.concat(t)}connectedCallback(){this.meeting&&this.meetingChanged(this.meeting)}componentDidLoad(){var r;null===(r=this.contentContainer)||void 0===r||r.addEventListener("scroll",this.onScroll)}disconnectedCallback(){var r,t,a;null===(t=null===(r=this.meeting)||void 0===r?void 0:r.ai)||void 0===t||t.off("transcript",this.onTranscriptHandler),null===(a=this.contentContainer)||void 0===a||a.removeEventListener("scroll",this.onScroll)}meetingChanged(r){var t,a;this.transcriptions=c(null===(t=null==r?void 0:r.ai)||void 0===t?void 0:t.transcripts),this.transcriptions=this.transcriptions.reduce(this.transcriptionsReducer,[]),null===(a=null==r?void 0:r.ai)||void 0===a||a.on("transcript",this.onTranscriptHandler)}transcriptionsChanged(){this.autoScrollEnabled&&setTimeout((()=>{s(this.contentContainer,!1)}),100)}renderTranscripts(){const r=this.transcriptions.filter((r=>!this.participantQuery||r.name.toLowerCase().includes(this.participantQuery.toLowerCase()))),a=[];return r.forEach((r=>{const t={name:r.name,date:r.date,peerId:r.peerId,transcript:r.transcript};if(!a.length)return void a.push(t);const e=a[a.length-1];r.peerId===e.peerId?e.transcript+=" "+r.transcript:a.push(t)})),a.map((r=>t("div",{class:"message"},t(o,{name:r.name,time:new Date(r.date),now:new Date}),t("div",{class:"body"},r.transcript))))}render(){return t(a,{key:"12573001a05a586495a63ecd420f99ad04ce780f"},t("div",{key:"2a51f65ba7cd339aee33291c77cdf9f5d69b8f07",class:"search-bar"},t("input",{key:"6cb5505e84ddff6e39c29012752a7309f715505c",type:"text",placeholder:"Search Participant",value:this.participantQuery,onInput:r=>this.participantQuery=r.target.value})),this.isProcessing&&t("div",{key:"b7f1c33aae0d2613e28dc328e5ccfd92ad067576",class:"processing"},t("p",{key:"ae8dc349ff7017a92b9c15e8c8ab051313c07e67"},"Processing audio....")),!this.isProcessing&&t("div",{key:"f5d9e637661b2b10dd323c6b9d6fa7381fd7768c",class:"content scrollbar",ref:r=>this.contentContainer=r},t("div",{key:"a029f8903f82deab573e2372f1c645de98fbc417",class:"started-message"},"Transcription started"),this.renderTranscripts()))}static get watchers(){return{meeting:["meetingChanged"],transcriptions:["transcriptionsChanged"]}}};n([i()],d.prototype,"t",void 0),n([i()],d.prototype,"meeting",void 0),d.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)}.head{display:flex;align-items:center}.head .name{margin-right:var(--rtk-space-4, 16px);font-size:12px;font-weight:700}.head .time{font-size:12px;color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.scrollbar{scrollbar-width:thin;scrollbar-color:var(--rtk-scrollbar-color, rgb(var(--rtk-colors-background-600, 60 60 60)))\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)))}*{box-sizing:border-box;border-width:0;border-style:solid}:host{width:100%;display:flex;flex-direction:column}.processing{display:flex;flex:1 1 0%;flex-direction:column;align-items:center;justify-content:center}.content{box-sizing:border-box;display:flex;flex-direction:column;padding:var(--rtk-space-3, 12px);flex:1 0 0px;overflow-y:scroll}.started-message{margin-top:var(--rtk-space-5, 20px);margin-bottom:var(--rtk-space-5, 20px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.search-bar{height:var(--rtk-space-14, 56px);width:100%;border-bottom-width:var(--rtk-border-width-sm, 1px);--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));padding:var(--rtk-space-3, 12px)}input{height:100%;width:100%;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.caption-view{height:var(--rtk-space-12, 48px);width:100%;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-3, 12px);padding-bottom:var(--rtk-space-3, 12px);border-bottom-width:var(--rtk-border-width-sm, 1px);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-border-opacity));display:flex;align-items:center;justify-content:space-between;font-size:14px}.message .body{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);font-size:14px;word-break:break-word}.message{margin-bottom:var(--rtk-space-3, 12px)}.message:last-child{margin-bottom:var(--rtk-space-0, 0px)}";export{d as rtk_ai_transcriptions}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function t(t,n){const o=Math.pow(10,n);return Math.floor(t*o)/o}function n({dimensions:n,count:s,aspectRatio:i,gap:e}){const{width:c,height:h,rows:r,cols:a}=function({count:n,dimensions:s,aspectRatio:i,gap:e}){let{width:c,height:h}=s;if(0===c||0===h)return{width:0,height:0,rows:1,cols:1};c-=2*e,h-=2*e;const r=e,a=n,u=o(i);let d=0,g=0,p=1,w=1;const l=[];for(let t=1;t<=a;t++)l.push((c-r*(t-1))/t),l.push((h-r*(t-1))/(t*u));l.sort(((t,n)=>n-t));for(const n of l)if(d=t(n,4),g=t(d*u,4),p=Math.floor((c+r)/(d+r)),w=Math.floor((h+r)/(g+r)),p*w>=a){w=Math.ceil(a/p);break}return{width:d,height:g,rows:w,cols:p}}({dimensions:n,count:s,aspectRatio:i,gap:e}),u=function({parentDimensions:t,dimensions:n,rows:o,cols:s,count:i,gap:e}){const{width:c,height:h}=t,{width:r,height:a}=n,u=(h-(a*o+(o-1)*e))/2;let d=(c-(r*s+(s-1)*e))/2;const g=a+e,p=r+e;let w=0,l=0;const m=i%s;return function(t){const n=i-t;n===m&&(d=(c-(r*n+(n-1)*e))/2);const o=u+l*g,h=d+w*p;return w++,(t+1)%s==0&&(l++,w=0),{top:o,left:h}}}({parentDimensions:n,dimensions:{width:c,height:h},rows:r,cols:a,count:s,gap:e});return{width:c,height:h,getPosition:u}}const o=t=>{const[n,o]=t.split(":");return Number.parseInt(o)/Number.parseInt(n)},s={spotlight:"sm",mixed:"sm"};export{s as d,n as u}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as n,c as t,h as e,H as a}from"./p-0ee570cd.js";import{S as r}from"./p-2aa242f4.js";import{a as o,c as i}from"./p-ee167b96.js";const s=class{constructor(e){n(this,e),this.tabChange=t(this,"tabChange",7),this.sidebarClose=t(this,"sidebarClose",7),this.view="sidebar",this.tabs=[],this.hideHeader=!1,this.hideCloseAction=!1,this.iconPack=o,this.focusCloseButton=!0,this.t=i(),this.onClose=()=>{this.sidebarClose.emit()}}componentDidLoad(){this.keydownListener=n=>{"Escape"===n.key&&this.onClose()},this.hostEl.addEventListener("keydown",this.keydownListener),this.handleFocusCloseButton()}handleFocusCloseButton(){"chat"===this.currentTab||this.hideCloseAction||this.closeButton.focus()}disconnectedCallback(){this.hostEl.removeEventListener("keydown",this.keydownListener)}render(){const n="full-screen"===this.view,t=this.tabs.find((n=>n.id===this.currentTab));return e(a,{key:"4afc881e8aeb5f51014817e1287aed7700bb56fb",ref:n=>this.hostEl=n,class:this.view},!this.hideCloseAction&&e("rtk-button",{key:"e95b2c25d32535630e0ccf30b46f067395c41a7f",ref:n=>this.closeButton=n,variant:"ghost",kind:"icon",class:"close",onClick:this.onClose,"aria-label":this.t("close")},e("rtk-icon",{key:"0d6398171fbebd8d9b0895fc2e9f0b08e7980ab2",icon:this.iconPack.dismiss})),t&&!this.hideHeader&&e("header",{key:"e92a6c60fa280a36b4643873d48adca3210e3c51",class:"main-header"},e("h3",{key:"8097b3e815c3005c7750c7076eb54242406034a9"},t.name),e("slot",{key:"f91814a6fb62726790ae5c91111be0f6d1ea121c",name:"pinned-state"})),n&&e("header",{key:"5ec434bbc22ffa7acf8a76361e02718080c7a99d",class:"mobile-tabs"},this.tabs.map((n=>e("button",{onClick:()=>{this.tabChange.emit(n.id)},class:{active:this.currentTab===n.id}},n.name)))),e("slot",{key:"77ee9da399e6991cc7bf3e0d979ffeec47e4b769",name:this.currentTab}))}static get watchers(){return{currentTab:["handleFocusCloseButton"]}}};(function(n,t,e,a){var r,o=arguments.length,i=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(n,t,e,a);else for(var s=n.length-1;s>=0;s--)(r=n[s])&&(i=(o<3?r(i):o>3?r(t,e,i):r(t,e))||i);o>3&&i&&Object.defineProperty(t,e,i)})([r()],s.prototype,"t",void 0),s.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 position: relative;\n height: 100%;\n width: 100%;\n font-family: var(--rtk-font-family, sans-serif);\n z-index: 50;\n display: flex;\n flex-direction: column;\n\n container-type: size;\n container-name: sidebarui;\n}\n\n@container sidebarui (height < 370px) {\n .main-header {\n height: var(--rtk-space-8, 32px) !important;\n }\n .close {\n top: var(--rtk-space-0\\.5, 2px) !important;\n left: var(--rtk-space-0, 0px) !important;\n color: rgba(var(--rtk-colors-danger, 255 45 45) / 0.6);\n }\n}\n\n:host([view='sidebar']) {\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));\n}\n\n:host([view='full-screen']) {\n position: absolute;\n top: var(--rtk-space-0, 0px);\n right: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n left: var(--rtk-space-0, 0px);\n max-width: 100%;\n border: none;\n}\n\n::slotted(*) {\n flex-grow: 1;\n}\n\n.close {\n position: absolute;\n top: var(--rtk-space-2, 8px);\n left: var(--rtk-space-2, 8px);\n z-index: 10;\n}\n\n.main-header {\n position: relative;\n display: flex;\n height: var(--rtk-space-12, 48px);\n place-items: center;\n justify-content: center;\n}\n\n.main-header, \n.mobile-tabs {\n flex-shrink: 0;\n}\n\n.mobile-tabs {\n display: flex;\n place-items: center;\n justify-content: space-evenly;\n border-bottom: 1px solid rgb(var(--rtk-colors-background-700, 44 44 44));\n}\n\n.mobile-tabs button {\n margin: var(--rtk-space-0, 0px);\n border-width: var(--rtk-border-width-none, 0);\n border-style: none;\n background-color: transparent;\n padding: var(--rtk-space-0, 0px);\n color: rgb(var(--rtk-colors-text-600, 255 255 255 / 0.52));\n height: var(--rtk-space-10, 40px);\n cursor: pointer;\n padding-left: var(--rtk-space-4, 16px);\n padding-right: var(--rtk-space-4, 16px);\n font-weight: 500;\n border-bottom: 1px solid transparent;\n}\n\n.mobile-tabs button.active {\n --tw-border-opacity: 1;\n border-color: rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-border-opacity));\n --tw-text-opacity: 1;\n color: rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-text-opacity));\n}\n\nheader h3 {\n font-size: 14px;\n font-weight: 500;\n}\n\n@media only screen and (max-device-height: 480px) and (orientation: landscape) {\n .main-header {\n display: none !important;\n }\n}\n\n.tab-participant-count-badge {\n display: inline-block;\n padding: 2px 5px;\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 font-size: 12px;\n color: rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));\n}\n\n.tab-participant-count-badge:not(.selected-tab) {\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));\n}\n\n.tab-participant-count-badge.requests-pending{\n background-color: rgba(var(--rtk-colors-danger));\n}\n";export{s as rtk_sidebar_ui}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{q as r}from"./p-ee167b96.js";const t=r=>{if(r&&!r.chat)return!1;const{chatPublic:t,chatPrivate:n}=r.self.permissions;return t.canSend||t.canReceive||t.text||t.files||n.canSend||n.canReceive||n.files||n.text},n=r=>{if(r&&!r.polls)return!1;const{polls:t}=r.self.permissions;return t.canCreate||t.canView||t.canVote},e=r=>{var t;if(!(null===(t=r.self.permissions)||void 0===t?void 0:t.showParticipantList))return!1;if(r&&!r.participants)return!1;const n=null==r?void 0:r.self.config;return!(n&&!n.controlBar.elements.participants)},u=t=>{if(r(t))return!1;if(t&&!t.plugins)return!1;if("LIVESTREAM"===t.meta.viewType)return"ON_STAGE"===t.stage.status;const{plugins:n}=t.self.permissions;return n.canClose||n.canStart};export{e as a,u as b,t as c,n as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,w as s,h as i}from"./p-0ee570cd.js";import{a as r}from"./p-ee167b96.js";import{S as e}from"./p-2aa242f4.js";import{d as h}from"./p-a08b5a59.js";import"./p-2c3cda13.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:"0bd9791d55b2c7b17e0f2165815d592e400612b6",class:"scrollbar content-wrapper",ref:t=>this.$listRef=t,onScroll:this.handleScroll},i("div",{key:"b255bce421935f065862a6a3a34e9ae588c936cd",class:"scroller"},i("div",{key:"3eab5b317790b234f1a5c1935d7b8bf4d48620eb",style:{height:`${this.totalHeight}px`}}),i("div",{key:"47d070acc6cdd5e5cdd146594dbcb53906e5fc37",class:"smallest-dom-element",id:"list-end",ref:t=>this.$listEndRef=t})),i("div",{key:"348ec8b65c0f76146f6ab65cbda80057dde6d93d",class:"content",style:{transform:`translateY(${this.getRangeSize(0,this.range.start)}px)`}},this.isFetching&&i("div",{key:"100d528dae04469574a6c908ba4e0159d61a928f",class:"loader"},i("rtk-spinner",{key:"a3a7cc932bd40b71bf67d9bb95cb7cdd8e36696f",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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,w as n,h as a,H as i,c as r}from"./p-0ee570cd.js";import{a as e,c as o,d as s,F as d}from"./p-ee167b96.js";import{S as p}from"./p-2aa242f4.js";import{R as c}from"./p-c8eaa707.js";var l=function(t,n,a,i){var r,e=arguments.length,o=e<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,a,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(e<3?r(o):e>3?r(n,a,o):r(n,a))||o);return e>3&&o&&Object.defineProperty(n,a,o),o};const h=class{constructor(n){t(this,n),this.iconPack=e,this.variant="full",this.t=o(),this.videoDevices=[],this.canProduceVideo=!0,this.stageStateListener=()=>{this.canProduceVideo="ALLOWED"===this.meeting.self.permissions.canProduceVideo},this.deviceListUpdateListener=({devices:t})=>{this.videoDevices=t.filter((t=>"videoinput"===t.kind))},this.deviceUpdateListener=({device:t})=>{"videoinput"===t.kind&&(this.currentDevice=t)},this.mediaPermissionUpdateListener=async({kind:t,message:n})=>{this.meeting&&"video"===t&&"ACCEPTED"===n&&(this.videoDevices=await this.meeting.self.getVideoDevices())}}meetingChanged(t){var a,i,r;null!=t&&(null===(a=t.self)||void 0===a||a.addListener("deviceListUpdate",this.deviceListUpdateListener),null===(i=t.self)||void 0===i||i.addListener("deviceUpdate",this.deviceUpdateListener),null===(r=t.self)||void 0===r||r.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),n((async()=>{var n,a;const i=await t.self.getVideoDevices(),r=null===(n=t.self.getCurrentDevices())||void 0===n?void 0:n.video;this.videoDevices=null!=r?[null!==(a=i.find((t=>t.deviceId===r.deviceId)))&&void 0!==a?a:r,...i.filter((t=>t.deviceId!==r.deviceId))]:i})))}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t,n,a,i,r;null===(n=null===(t=this.meeting)||void 0===t?void 0:t.stage)||void 0===n||n.removeListener("stageStatusUpdate",this.stageStateListener),null===(a=this.meeting)||void 0===a||a.self.removeListener("deviceListUpdate",this.deviceListUpdateListener),null===(i=this.meeting)||void 0===i||i.self.removeListener("deviceUpdate",this.deviceUpdateListener),null===(r=this.meeting)||void 0===r||r.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener)}async setDevice(t){var n;const a=this.videoDevices.find((n=>n.deviceId===t));this.currentDevice=a,null!=a&&await(null===(n=this.meeting)||void 0===n?void 0:n.self.setDevice(a))}render(){if(null==this.meeting)return null;let t=0;return a(i,null,this.canProduceVideo&&a("div",{class:"group container "+this.variant,part:"camera-selection"},a("label",null,"inline"!==this.variant&&this.t("camera"),a("rtk-icon",{icon:this.iconPack.video_on,size:"sm"})),a("div",{class:"row"},a("select",{class:"rtk-select",onChange:t=>this.setDevice(t.target.value)},this.videoDevices.map((({deviceId:n,label:i})=>{var r;return a("option",{selected:(null===(r=this.currentDevice)||void 0===r?void 0:r.deviceId)===n,value:n},i||"Camera "+ ++t)}))))))}static get watchers(){return{meeting:["meetingChanged"]}}};l([p()],h.prototype,"meeting",void 0),l([p()],h.prototype,"size",void 0),l([p()],h.prototype,"iconPack",void 0),l([p()],h.prototype,"t",void 0),h.style=".rtk-select{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.rtk-select:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)}.rtk-select{display:block;border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--rtk-space-3, 12px);font-size:16px;--icon-size:var(--rtk-select-chevron-size, var(--rtk-space-6, 24px));--icon-right-position:var(--rtk-select-chevron-right-position, var(--rtk-space-2, 8px));background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\");background-position:right var(--icon-right-position) center;background-repeat:no-repeat;background-size:var(--icon-size) var(--icon-size);padding-right:calc(var(--icon-right-position) * 5);width:100%;max-width:100%;text-overflow:ellipsis}.inline .rtk-select{margin-top:var(--rtk-space-1, 4px);width:100%;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-8, 32px);font-size:14px}.row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;align-items:center;justify-content:space-between;gap:var(--rtk-space-3, 12px)}.group{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px)}.group>*{margin-bottom:var(--rtk-space-2, 8px)}.group>*:last-child{margin-bottom:var(--rtk-space-0, 0px)}.group select{flex:1 1 0%}.group{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px)}.group>*{margin-bottom:var(--rtk-space-0, 0px)}label{display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;gap:var(--rtk-space-1, 4px);font-size:14px}.inline.container{display:flex;align-items:center;justify-content:flex-start;gap:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}";var v=function(t,n,a,i){var r,e=arguments.length,o=e<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,a):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,n,a,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(o=(e<3?r(o):e>3?r(n,a,o):r(n,a))||o);return e>3&&o&&Object.defineProperty(n,a,o),o};const g=class{constructor(n){t(this,n),this.tileLoad=r(this,"tileLoad",7),this.tileUnload=r(this,"tileUnload",7),this.isPinned=!1,this.mediaConnectionError=!1,this.nameTagPosition="bottom-left",this.isPreview=!1,this.config=s,this.variant="solid",this.iconPack=e,this.t=o(),this.onPinned=({isPinned:t})=>{this.isPinned=t},this.isSelf=()=>{var t;return this.isPreview||this.participant.id===(null===(t=this.meeting)||void 0===t?void 0:t.self.id)},this.onPause=t=>{var n,a;this.isSelf()&&(null===(n=this.meeting)||void 0===n?void 0:n.__internals__.features.hasFeature(d.PLAY_PARTICIPANT_TILE_VIDEO_ON_PAUSE))&&(this.meeting.__internals__.logger.warn(`Video player paused for ${this.participant.id} isSelf: ${this.isSelf()}`),null===(a=null==t?void 0:t.target)||void 0===a||a.play())},this.onPlaying=()=>{this.playTimeout&&clearTimeout(this.playTimeout)}}onVideoRef(t){this.participant&&this.meeting&&t!==this.videoEl&&(this.videoEl=t,this.participant.registerVideoElement(this.videoEl,this.isPreview),this.tileLoad.emit({participant:this.participant,videoElement:this.videoEl}))}connectedCallback(){this.meeting?this.meetingChanged(this.meeting):this.participantsChanged(this.participant)}disconnectedCallback(){this.playTimeout&&clearTimeout(this.playTimeout),null!=this.participant&&(this.participant.deregisterVideoElement(this.videoEl,this.isPreview),this.participant.removeListener("pinned",this.onPinned),this.participant.removeListener("unpinned",this.onPinned),this.meeting.meta.off("mediaConnectionUpdate",this.mediaConnectionUpdateListener),this.tileUnload.emit(this.participant))}meetingChanged(t){null!=t&&this.participantsChanged(this.participant)}participantsChanged(t){null!=t&&(void 0!==this.meeting?(this.isPinned=t.isPinned,this.videoEl&&this.participant.registerVideoElement(this.videoEl,this.isPreview),t.addListener("pinned",this.onPinned),t.addListener("unpinned",this.onPinned),this.meeting.meta.on("mediaConnectionUpdate",this.mediaConnectionUpdateListener.bind(this))):this.isPreview&&this.videoEl&&this.participant.registerVideoElement(this.videoEl,this.isPreview))}mediaConnectionUpdateListener(){var t,n,a;const{recv:i,send:r}=null!==(a=null===(n=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===n?void 0:n.mediaState)&&void 0!==a?a:{};this.mediaConnectionError="connected"!==(null==i?void 0:i.state)&&!this.isSelf()||!("connected"===(null==r?void 0:r.state)||!this.isSelf())}isMirrored(){var t;if(null!=this.participant&&this.isSelf()){const n=this.states,a=null===(t=null==n?void 0:n.prefs)||void 0===t?void 0:t.mirrorVideo;if("boolean"==typeof a)return a}return!1}render(){var t,n,r;const e={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return a(i,{key:"3e979a21a98a39b061612531ef9bd644d39a983e"},a("video",{key:"3ba45f4944aafeb8673afc8daa1e15db82ec42b5",ref:t=>this.onVideoRef(t),class:{mirror:this.isMirrored(),[null!==(r=null===(n=null===(t=this.config)||void 0===t?void 0:t.config)||void 0===n?void 0:n.videoFit)&&void 0!==r?r:"cover"]:!0},onPlaying:this.onPlaying,onPause:this.onPause,autoPlay:!0,playsInline:!0,muted:!0,part:"video"}),this.isPinned&&a("rtk-icon",{key:"02ca6b139670e6ac3ac16a24248329a4dc09976d",class:"pinned-icon",icon:this.iconPack.pin,"aria-label":this.t("pinned"),part:"pinned-icon"}),this.mediaConnectionError&&a("div",{key:"5bf2f0b14e7d077b3ebd9bec74291bf746fcf6c9",class:"network-container",part:"network-indicator"},a("rtk-icon",{key:"32ee83f5d08430273ae0bce3424e2e1a3206419a",class:"network-icon",icon:this.iconPack.disconnected,"aria-label":this.t("pinned"),part:"pinned-icon"})),a("slot",{key:"781a75e98ff649fb94672cb7ce4f176ef0c1c090"},a(c,{key:"b756c2269429153fbab8dd3c79978d0a2d3a153d",element:"rtk-participant-tile",defaults:e,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))}static get watchers(){return{meeting:["meetingChanged"],participant:["participantsChanged"]}}};v([p()],g.prototype,"meeting",void 0),v([p()],g.prototype,"states",void 0),v([p()],g.prototype,"size",void 0),v([p()],g.prototype,"iconPack",void 0),v([p()],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 position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n aspect-ratio: 16 / 9;\n height: var(--rtk-space-56, 224px);\n overflow: hidden;\n border-radius: var(--rtk-border-radius-lg, 12px);\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));\n\n transition-property: var(--rtk-transition-property, all);\n transition-duration: 150ms;\n container-type: inline-size;\n container-name: participanttile;\n}\n\n@media (prefers-reduced-motion) {\n /* No transitions when disabled */\n :host {\n --rtk-transition-property: none;\n }\n}\n\nrtk-avatar {\n z-index: -1;\n}\n\n/**\n NOTE: provided :slotted(rtk-name-tag) & rtk-name-tag separately\n because ::slotted isn't applied on default slots.\n*/\n\n::slotted(rtk-name-tag), \nrtk-name-tag {\n position: absolute;\n left: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n}\n\n:host([size='sm'][variant='solid']) ::slotted(rtk-name-tag), \n :host([size='sm'][variant='solid']) rtk-name-tag {\n left: var(--rtk-space-2, 8px);\n bottom: var(--rtk-space-2, 8px);\n height: var(--rtk-space-4, 16px);\n}\n\n::slotted(rtk-network-indicator), \nrtk-network-indicator {\n position: absolute;\n right: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n}\n\n:host([size='sm']) ::slotted(rtk-network-indicator), \n :host([size='sm']) rtk-network-indicator {\n right: var(--rtk-space-2, 8px);\n bottom: var(--rtk-space-2, 8px);\n}\n\nvideo {\n position: absolute;\n height: 100%;\n width: 100%;\n border-radius: var(--rtk-border-radius-lg, 12px);\n}\n\nvideo.contain {\n -o-object-fit: contain;\n object-fit: contain;\n}\n\nvideo.cover {\n -o-object-fit: cover;\n object-fit: cover;\n}\n\nvideo::-webkit-media-controls {\n display: none !important;\n}\n\n.pinned-icon {\n position: absolute;\n left: var(--rtk-space-3, 12px);\n top: var(--rtk-space-3, 12px);\n height: var(--rtk-space-5, 20px);\n width: var(--rtk-space-5, 20px);\n padding: var(--rtk-space-1, 4px);\n border-radius: var(--rtk-border-radius-md, 8px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));\n}\n\n.network-container {\n position: absolute;\n right: var(--rtk-space-3, 12px);\n bottom: var(--rtk-space-3, 12px);\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: var(--rtk-space-2, 8px);\n font-size: 12px;\n border-radius: var(--rtk-border-radius-md, 8px);\n --tw-bg-opacity: 1;\n background-color: rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));\n}\n.network-icon {\n height: var(--rtk-space-5, 20px);\n width: var(--rtk-space-5, 20px);\n --tw-text-opacity: 1;\n color: rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity));\n}\n\n:host([size='sm']) .pinned-icon {\n top: var(--rtk-space-2, 8px);\n left: var(--rtk-space-2, 8px);\n}\n\n:host([variant='gradient']) ::slotted(rtk-audio-visualizer), \n :host([variant='gradient']) 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 :host([variant='gradient']) 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\nvideo.mirror {\n transform: scaleX(-1);\n}\n\n/** Name tag positions */\n\n:host([name-tag-position='bottom-right']) ::slotted(rtk-name-tag), \n :host([name-tag-position='bottom-right']) 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 :host([name-tag-position='bottom-center']) rtk-name-tag {\n left: auto;\n right: auto;\n}\n\n:host([name-tag-position='top-left']) ::slotted(rtk-name-tag), \n :host([name-tag-position='top-left']) 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 :host([name-tag-position='top-right']) 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 :host([name-tag-position='top-center']) rtk-name-tag {\n left: auto;\n right: auto;\n bottom: auto;\n top: var(--rtk-space-3, 12px);\n}\n\n@media only screen and (max-height: 480px) and (orientation: landscape) {\n :host([size='sm']) {\n border-radius: var(--rtk-border-radius-sm, 4px);\n }\n\n :host([size='sm']) > video {\n border-radius: var(--rtk-border-radius-sm, 4px);\n }\n\n ::slotted(rtk-avatar), \n rtk-avatar {\n height: var(--rtk-space-12, 48px);\n width: var(--rtk-space-12, 48px);\n }\n :host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),\n :host([size='sm'][variant='solid']) rtk-name-tag {\n transform-origin: -2% 100%;\n transform: scale(0.6);\n z-index: 10;\n left: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n border-radius: var(--rtk-border-radius-none, 0);\n }\n}\n\n@media only screen and (max-width: 480px) and (orientation: portrait) {\n :host([size='sm']) {\n border-radius: var(--rtk-border-radius-sm, 4px);\n }\n\n :host([size='sm']) > video {\n border-radius: var(--rtk-border-radius-sm, 4px);\n }\n\n ::slotted(rtk-avatar), \n rtk-avatar {\n height: var(--rtk-space-12, 48px);\n width: var(--rtk-space-12, 48px);\n }\n :host([size='sm'][variant='solid']) ::slotted(rtk-name-tag),\n :host([size='sm'][variant='solid']) rtk-name-tag {\n transform-origin: -5% 110%;\n transform: scale(0.6);\n z-index: 10;\n left: var(--rtk-space-0, 0px);\n bottom: var(--rtk-space-0, 0px);\n border-radius: var(--rtk-border-radius-none, 0);\n }\n}\n\n@container participanttile (max-width: 300px) {\n ::slotted(rtk-name-tag),\n rtk-name-tag {\n transform-origin: 0 100%;\n transform: scale(0.8);\n }\n\n ::slotted(rtk-avatar), \n rtk-avatar {\n height: var(--rtk-space-8, 32px) !important;\n width: var(--rtk-space-8, 32px) !important;\n }\n}\n\n@container participanttile (max-width: 150px) {\n ::slotted(rtk-name-tag),\n rtk-name-tag[variant='solid'] {\n transform-origin: -10% 130%;\n transform: scale(0.6);\n z-index: 10;\n border-radius: 9999px;\n }\n\n ::slotted(rtk-avatar), \n rtk-avatar {\n height: 6 !important;\n width: 6 !important;\n }\n}\n";export{h as rtk_camera_selector,g as rtk_participant_tile}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,H as e}from"./p-0ee570cd.js";import{d as a,a as n,c as r,q as h,l as o}from"./p-ee167b96.js";import{d as p}from"./p-cbdd7a99.js";import{R as c}from"./p-c8eaa707.js";import{S as l}from"./p-2aa242f4.js";import{d}from"./p-b13ddb7d.js";var g=function(t,i,s,e){var a,n=arguments.length,r=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,i,s,e);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(r=(n<3?a(r):n>3?a(i,s,r):a(i,s))||r);return n>3&&r&&Object.defineProperty(i,s,r),r};const v=class{constructor(s){t(this,s),this.stateUpdate=i(this,"rtkStateUpdate",7),this.hideSelf=!1,this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.emptyStage=!1,this.showLiveStreamPlayer=!1,this.canCurrentPeerHost=!1,this.pipSupported=!1,this.pipEnabled=!1,this.hidden=!1,this.layout="row",this.aspectRatio="16:9",this.gap=8,this.config=a,this.iconPack=n,this.t=r(),this.gridSize=d,this.overrides={},this.invalidRoomStates=["init","waitlisted","ended","kicked","rejected"],this.filterParticipants=t=>{var i;if(this.overrides&&(null===(i=this.overrides)||void 0===i?void 0:i.videoUnsubscribed)){const i=this.overrides.videoUnsubscribed.preset;i.length>0&&(t=t.filter((t=>!i.some((i=>void 0!==t.presetName&&t.presetName.match(i))))))}return t},this.onViewModeChanged=()=>{null!=this.meeting&&this.updateActiveParticipants()},this.onParticipantJoined=p((()=>{this.updateActiveParticipants()}),50),this.onParticipantLeft=p((()=>{this.updateActiveParticipants()}),50),this.stageStatusListener=()=>{this.updateActiveParticipants(),this.showLiveStreamPlayer=h(this.meeting),"ON_STAGE"!==this.meeting.stage.status&&this.removeScreenShare(this.meeting.self)},this.peerStageStatusListener=t=>{this.updateActiveParticipants(),"ON_STAGE"!==this.meeting.stage.status&&(this.removePinned(t),this.removeScreenShare(t))},this.onScreenShareUpdate=t=>{t.screenShareEnabled?this.addScreenShare(t):this.removeScreenShare(t)},this.onSelfScreenShareUpdate=({screenShareEnabled:t})=>{t?this.addScreenShare(this.meeting.self):this.removeScreenShare(this.meeting.self)},this.toggleTileListener=({hidden:t})=>{this.hidden=t,this.updateActiveParticipants()},this.onPluginStateUpdate=(t,{active:i})=>{i?this.plugins.some((i=>i.id===t.id))||(this.plugins=[...this.plugins,t]):this.plugins=this.plugins.filter((i=>i.id!==t.id))},this.onParticipantPinned=()=>{this.updateActiveParticipants()},this.onParticipantUnpinned=()=>{this.updateActiveParticipants()},this.updateRoomStateListener=()=>{this.roomState=this.meeting.self.roomState}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting(this.meeting)}disconnectMeeting(t){var i;if(null==t)return;this.participants=[],this.plugins=[];const{self:s,participants:e,plugins:a}=t;s.removeListener("pinned",this.onParticipantPinned),s.removeListener("unpinned",this.onParticipantUnpinned),s.removeListener("roomLeft",this.updateRoomStateListener),s.removeListener("roomJoined",this.updateRoomStateListener),s.removeListener("screenShareUpdate",this.onSelfScreenShareUpdate),s.removeListener("toggleTile",this.toggleTileListener),null==a||a.all.removeListener("stateUpdate",this.onPluginStateUpdate),null===(i=t.stage)||void 0===i||i.removeListener("stageStatusUpdate",this.stageStatusListener),e.removeListener("viewModeChanged",this.onViewModeChanged),e.active.removeListener("participantLeft",this.onParticipantLeft),e.active.removeListener("participantJoined",this.onParticipantJoined),e.pinned.removeListener("participantJoined",this.onParticipantPinned),e.pinned.removeListener("participantLeft",this.onParticipantUnpinned),e.joined.removeListener("screenShareUpdate",this.onScreenShareUpdate),e.joined.removeListener("stageStatusUpdate",this.peerStageStatusListener)}meetingChanged(t,i){var s,e,a,n;if(null!==i&&this.disconnectMeeting(i),null!=t){const{self:i,participants:r,plugins:h,stage:o}=t;this.pipSupported=(null===(s=this.meeting.participants.pip)||void 0===s?void 0:s.isSupported())&&(null===(e=t.self.config)||void 0===e?void 0:e.pipMode),this.pipSupported&&this.meeting.participants.pip.init();const{permissions:p}=i;this.roomState=i.roomState,this.hideSelf="ON_STAGE"!==this.meeting.stage.status||(null==p?void 0:p.isRecorder)||p.hiddenParticipant,this.participants=this.filterParticipants([...r.active.toArray(),...i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...r.pinned.toArray(),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=r.joined.toArray().filter((t=>t.screenShareEnabled)),this.plugins=(null==h?void 0:h.active.toArray())||[],(null==p?void 0:p.stageEnabled)&&(this.canCurrentPeerHost=p.acceptStageRequests||p.canPresent,this.updateStage()),this.hidden=t.self.hidden,i.addListener("roomLeft",this.updateRoomStateListener),i.addListener("roomJoined",this.updateRoomStateListener),i.addListener("screenShareUpdate",this.onSelfScreenShareUpdate),i.addListener("pinned",this.onParticipantPinned),i.addListener("unpinned",this.onParticipantUnpinned),i.addListener("toggleTile",this.toggleTileListener),null==o||o.addListener("stageStatusUpdate",this.stageStatusListener),null==h||h.all.addListener("stateUpdate",this.onPluginStateUpdate),r.addListener("viewModeChanged",this.onViewModeChanged),r.active.addListener("participantLeft",this.onParticipantLeft),null===(a=null==r?void 0:r.joined)||void 0===a||a.on("stageStatusUpdate",this.peerStageStatusListener),r.joined.addListener("screenShareUpdate",this.onScreenShareUpdate),r.active.addListener("participantJoined",this.onParticipantJoined),r.pinned.addListener("participantJoined",this.onParticipantPinned),r.pinned.addListener("participantLeft",this.onParticipantUnpinned),(null===(n=t.stage)||void 0===n?void 0:n.status)&&this.stageStatusListener()}}overridesChanged(t){this.updateActiveParticipants()}screenShareParticipantsChanged(t){const i=t.length>0;!!o.states.activeScreenShare!==i&&(this.stateUpdate.emit({activeScreenShare:i}),o.states.activeScreenShare=i)}pluginsChanged(t){const i=t.length>0;!!o.states.activePlugin!==i&&(this.stateUpdate.emit({activePlugin:i}),o.states.activePlugin=i)}pinnedParticipantsChanged(t){const i=t.length>0;!!o.states.activeSpotlight!==i&&(this.stateUpdate.emit({activeSpotlight:i}),o.states.activeSpotlight=i)}updateActiveParticipants(){var t;const{self:i,participants:s,stage:e}=this.meeting;this.hideSelf=this.hidden||"ON_STAGE"!==e.status||(null===(t=i.permissions)||void 0===t?void 0:t.isRecorder)||i.permissions.hiddenParticipant,this.participants=this.filterParticipants([...s.active.toArray().filter((t=>t.id!==i.id)),..."ACTIVE_GRID"!==s.viewMode||i.isPinned||this.hideSelf?[]:[i]]),this.pinnedParticipants=[...s.pinned.toArray().filter((t=>t.id!==i.id)),...i.isPinned&&!this.hideSelf?[i]:[]],this.screenShareParticipants=s.joined.toArray().filter((t=>t.screenShareEnabled)),i.screenShareEnabled&&(this.screenShareParticipants=this.screenShareParticipants.concat([i])),this.updateStage()}updateStage(){var t;const{self:i}=this.meeting;this.meeting&&(this.emptyStage=!!(null===(t=null==i?void 0:i.permissions)||void 0===t?void 0:t.stageEnabled)&&0===this.participants.length&&0===this.pinnedParticipants.length)}addScreenShare(t){this.screenShareParticipants.some((i=>i.id===t.id))||(this.screenShareParticipants=[...this.screenShareParticipants,t])}removeScreenShare(t){this.screenShareParticipants=this.screenShareParticipants.filter((i=>i.id!==t.id))}removePinned(t){this.pinnedParticipants=this.pinnedParticipants.filter((i=>i.id!==t.id))}render(){const t={meeting:this.meeting,size:this.size,states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return this.invalidRoomStates.includes(this.roomState)?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.join_stage,size:"xl"}),s("h3",null,this.t("disconnected")),s("p",null,this.t("disconnected.description")))):"disconnected"===this.roomState?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("offline")),s("p",null,this.t("offline.description")))):"failed"===this.roomState?s(e,null,s("div",{class:"offline-grid"},s("rtk-icon",{icon:this.iconPack.disconnected,size:"xl"}),s("h3",null,this.t("failed")),s("p",null,this.t("failed.description")))):this.showLiveStreamPlayer?s(e,null,s("rtk-livestream-player",{meeting:this.meeting,size:this.size}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded",t:this.t})):this.emptyStage?s(e,null,s("div",{class:"webinar-stage"},s("div",{class:"center"},this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_host")),s("span",{class:"description",part:"description"},this.t("stage.empty_host_summary"))),!this.canCurrentPeerHost&&s("div",{class:"ctr",part:"container"},s("p",{class:"message",part:"message"},this.t("stage.empty_viewer")))))):s(e,null,s(c,{element:"rtk-grid",defaults:t,childProps:{participants:this.participants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,pinnedParticipants:this.pinnedParticipants,aspectRatio:this.aspectRatio,gap:this.gap,layout:this.layout,gridSize:this.gridSize},onlyChildren:!0}),s("rtk-livestream-indicator",{meeting:this.meeting,size:"sm",t:this.t}),s("rtk-viewer-count",{meeting:this.meeting,variant:"embedded"}))}static get watchers(){return{meeting:["meetingChanged"],overrides:["overridesChanged"],screenShareParticipants:["screenShareParticipantsChanged"],plugins:["pluginsChanged"],pinnedParticipants:["pinnedParticipantsChanged"]}}};g([l()],v.prototype,"meeting",void 0),g([l()],v.prototype,"size",void 0),g([l()],v.prototype,"states",void 0),g([l()],v.prototype,"iconPack",void 0),g([l()],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{display:block;height:100%;width:100%}.offline-grid{display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}.offline-grid h3{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);font-size:20px;font-weight:500;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.offline-grid p{margin-top:var(--rtk-space-1, 4px);margin-bottom:var(--rtk-space-1, 4px);margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px);text-align:center;font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.offline-grid rtk-icon{margin-bottom:var(--rtk-space-2, 8px)}.webinar-stage{box-sizing:border-box;height:100%;display:flex;align-content:center;align-items:center;justify-content:center;text-align:center}.webinar-stage h2{margin:var(--rtk-space-0, 0px);font-weight:normal}rtk-viewer-count{display:none}.ctr{display:flex;flex-direction:column;align-items:center}.message{font-size:16px;border-radius:var(--rtk-border-radius-lg, 12px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));padding-left:var(--rtk-space-8, 32px);padding-right:var(--rtk-space-8, 32px);padding-top:var(--rtk-space-4, 16px);padding-bottom:var(--rtk-space-4, 16px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.description{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);font-size:14px}rtk-livestream-indicator{display:none}@media only screen and (max-device-height: 480px) and (orientation: landscape){rtk-viewer-count[variant='embedded']{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}rtk-livestream-indicator{position:absolute;top:var(--rtk-space-0, 0px);left:var(--rtk-space-2, 8px);z-index:20;margin-top:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0, 0px);display:flex}}";export{v as rtk_grid}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as a}from"./p-0ee570cd.js";import{s as r,f as s}from"./p-338c7261.js";import{a as i,c as o}from"./p-ee167b96.js";import{S as n}from"./p-2aa242f4.js";var c=function(t,e,a,r){var s,i=arguments.length,o=i<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--)(s=t[n])&&(o=(i<3?s(o):i>3?s(e,a,o):s(e,a))||o);return i>3&&o&&Object.defineProperty(e,a,o),o};const d=class{constructor(e){t(this,e),this.isScreenShare=!1,this.variant="default",this.iconPack=i,this.t=o(),this.length=13}sizeChanged(t){this.length="sm"===t?8:13}formatNameTag(t,e){return this.isScreenShare?e?`${this.t("screen")} - ${r(t,this.length-3)} (${this.t("you")})`:`${this.t("screen")} - ${r(t,this.length)}`:e?`${r(t,this.length-3)} (${this.t("you")})`:r(t,this.length)}render(){var t,r,i;const o=s((null===(t=this.participant)||void 0===t?void 0:t.name)||""),n=(null===(r=this.participant)||void 0===r?void 0:r.id)===(null===(i=this.meeting)||void 0===i?void 0:i.self.id);return e(a,{key:"52aa7e44f5a12d953eb5637346fff58cd40ed0bb",title:o},e("slot",{key:"24d7325456abe1ec7051c44eaf6067446e459f2d",name:"start"}),e("span",{key:"c2e7c6d2ca6ab1f5e097ccccad09b52fcc9c846a",class:"name"},this.formatNameTag(o,n)),e("slot",{key:"586b6e09b16c88cc219f45843ac8dfd746c0482a",name:"end"}))}static get watchers(){return{size:["sizeChanged"]}}};c([n()],d.prototype,"meeting",void 0),c([n()],d.prototype,"size",void 0),c([n()],d.prototype,"iconPack",void 0),c([n()],d.prototype,"t",void 0),d.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:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;padding-top:var(--rtk-space-1, 4px);padding-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1\\.5, 6px);padding-right:var(--rtk-space-1\\.5, 6px);font-size:14px;border-radius:var(--rtk-border-radius-sm, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}span.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}::slotted(rtk-audio-visualizer[slot='start']){margin-right:var(--rtk-space-1\\.5, 6px)}::slotted(rtk-audio-visualizer[slot='end']){margin-left:var(--rtk-space-1\\.5, 6px)}:host([size='sm']){font-size:12px;--tw-bg-opacity:0.6}:host([variant='text']){background-color:transparent;padding:var(--rtk-space-0, 0px)}";export{d as rtk_name_tag}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,s as e,t,i as n,u as c,c as a,k as o,g as u,a as s,v as i,M as f,w as b,l as j,x as v,y as w,h as l,d as y,j as p,o as A,S as O,z as d}from"./p-46923b34.js";import{r as m,b as S,S as M,i as g,a as x}from"./p-2c3cda13.js";const D=r(m,"WeakMap"),F=e(Object.keys,Object);var U=Object.prototype.hasOwnProperty;function h(r){return n(r)?c(r):function(r){if(!t(r))return F(r);var e=[];for(var n in Object(r))U.call(r,n)&&"constructor"!=n&&e.push(n);return e}(r)}function k(r,e){for(var t=-1,n=e.length,c=r.length;++t<n;)r[c+t]=e[t];return r}function B(){return[]}var C=Object.prototype.propertyIsEnumerable,I=Object.getOwnPropertySymbols;const V=I?function(r){return null==r?[]:(r=Object(r),function(e){for(var t=-1,n=null==e?0:e.length,c=0,a=[];++t<n;){var o=e[t];C.call(r,o)&&(a[c++]=o)}return a}(I(r)))}:B,P=Object.getOwnPropertySymbols?function(r){for(var e=[];r;)k(e,V(r)),r=u(r);return e}:B;function W(r,e,t){var n=e(r);return s(r)?n:k(n,t(r))}function z(r){return W(r,h,V)}function E(r){return W(r,o,P)}const G=r(m,"DataView"),N=r(m,"Promise"),R=r(m,"Set");var $="[object Map]",q="[object Promise]",H="[object Set]",J="[object WeakMap]",K="[object DataView]",L=i(G),Q=i(f),T=i(N),X=i(R),Y=i(D),Z=S;(G&&Z(new G(new ArrayBuffer(1)))!=K||f&&Z(new f)!=$||N&&Z(N.resolve())!=q||R&&Z(new R)!=H||D&&Z(new D)!=J)&&(Z=function(r){var e=S(r),t="[object Object]"==e?r.constructor:void 0,n=t?i(t):"";if(n)switch(n){case L:return K;case Q:return $;case T:return q;case X:return H;case Y:return J}return e});const _=Z;var rr=Object.prototype.hasOwnProperty,er=/\w*$/,tr=M?M.prototype:void 0,nr=tr?tr.valueOf:void 0,cr="[object Boolean]",ar="[object Date]",or="[object Map]",ur="[object Number]",sr="[object RegExp]",ir="[object Set]",fr="[object String]",br="[object Symbol]",jr="[object ArrayBuffer]",vr="[object DataView]",wr="[object Float32Array]",lr="[object Float64Array]",yr="[object Int8Array]",pr="[object Int16Array]",Ar="[object Int32Array]",Or="[object Uint8Array]",dr="[object Uint8ClampedArray]",mr="[object Uint16Array]",Sr="[object Uint32Array]";var Mr=w&&w.isMap;const gr=Mr?v(Mr):function(r){return g(r)&&"[object Map]"==_(r)};var xr=w&&w.isSet;const Dr=xr?v(xr):function(r){return g(r)&&"[object Set]"==_(r)};var Fr=1,Ur=2,hr=4,kr="[object Arguments]",Br="[object Function]",Cr="[object GeneratorFunction]",Ir="[object Object]",Vr={};function Pr(r,e,t,n,c,u){var i,f=e&Fr,v=e&Ur,w=e&hr;if(t&&(i=c?t(r,n,c,u):t(r)),void 0!==i)return i;if(!x(r))return r;var m=s(r);if(m){if(i=function(r){var e=r.length,t=new r.constructor(e);return e&&"string"==typeof r[0]&&rr.call(r,"index")&&(t.index=r.index,t.input=r.input),t}(r),!f)return l(r,i)}else{var S=_(r),M=S==Br||S==Cr;if(y(r))return p(r,f);if(S==Ir||S==kr||M&&!c){if(i=v||M?{}:A(r),!f)return v?function(r,e){return a(r,P(r),e)}(r,function(r,e){return r&&a(e,o(e),r)}(i,r)):function(r,e){return a(r,V(r),e)}(r,function(r,e){return r&&a(e,h(e),r)}(i,r))}else{if(!Vr[S])return c?r:{};i=function(r,e,t){var n,c,a=r.constructor;switch(e){case jr:return b(r);case cr:case ar:return new a(+r);case vr:return function(r,e){var t=e?b(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}(r,t);case wr:case lr:case yr:case pr:case Ar:case Or:case dr:case mr:case Sr:return j(r,t);case or:return new a;case ur:case fr:return new a(r);case sr:return(c=new(n=r).constructor(n.source,er.exec(n))).lastIndex=n.lastIndex,c;case ir:return new a;case br:return nr?Object(nr.call(r)):{}}}(r,S,f)}}u||(u=new O);var g=u.get(r);if(g)return g;u.set(r,i),Dr(r)?r.forEach((function(n){i.add(Pr(n,e,t,n,r,u))})):gr(r)&&r.forEach((function(n,c){i.set(c,Pr(n,e,t,c,r,u))}));var D=m?void 0:(w?v?E:z:v?o:h)(r);return function(r,e){for(var t=-1,n=null==r?0:r.length;++t<n&&!1!==e(r[t],t););}(D||r,(function(n,c){D&&(n=r[c=n]),d(i,c,Pr(n,e,t,c,r,u))})),i}Vr[kr]=Vr["[object Array]"]=Vr["[object ArrayBuffer]"]=Vr["[object DataView]"]=Vr["[object Boolean]"]=Vr["[object Date]"]=Vr["[object Float32Array]"]=Vr["[object Float64Array]"]=Vr["[object Int8Array]"]=Vr["[object Int16Array]"]=Vr["[object Int32Array]"]=Vr["[object Map]"]=Vr["[object Number]"]=Vr[Ir]=Vr["[object RegExp]"]=Vr["[object Set]"]=Vr["[object String]"]=Vr["[object Symbol]"]=Vr["[object Uint8Array]"]=Vr["[object Uint8ClampedArray]"]=Vr["[object Uint16Array]"]=Vr["[object Uint32Array]"]=!0,Vr["[object Error]"]=Vr[Br]=Vr["[object WeakMap]"]=!1;function Wr(r){return structuredClone?structuredClone(r):Pr(r,5)}export{Wr as c}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r,c as t,h as a,H as o}from"./p-0ee570cd.js";import{a as e,c as i}from"./p-ee167b96.js";import{S as s}from"./p-2aa242f4.js";import{s as c,f as l,g as n}from"./p-338c7261.js";var p=function(r,t,a,o){var e,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(r,t,a,o);else for(var c=r.length-1;c>=0;c--)(e=r[c])&&(s=(i<3?e(s):i>3?e(t,a,s):e(t,a))||s);return i>3&&s&&Object.defineProperty(t,a,s),s};const d=class{constructor(a){r(this,a),this.onVote=t(this,"rtkVotePoll",7),this.iconPack=e,this.t=i(),this.MAX_VOTES_RENDER=10}vote(r,t){this.poll.voted.includes(this.self)?r.preventDefault():this.onVote.emit({id:this.poll.id,index:t})}render(){const r=this.poll.voted.includes(this.self);return a(o,{key:"3436a978185495090fcf81a59f40e3d0f9bac969"},a("div",{key:"1349450369add7268b290b2b75ca07aa28820683",class:"ctr"},a("p",{key:"f36ddcb1f30368e5b311fe7f11cca87785c9570c",class:"poll-title"},this.t("polls.by")," ",c(l(this.poll.createdBy),20)),a("div",{key:"6c5ac869b1c182d09d9e1490a312797c913d24b1",class:"poll"},a("p",{key:"1c3ca8f47cf9a08f3ac7ef47e144330b922534fc",class:"poll-question"},this.poll.question),a("div",{key:"e5e60be4359714828d1d25bb24f5f143a1c6428f",class:"poll-answers"},a("span",{key:"60eeb63b59d1f3d8c44a1cbd53c42e82877f22d1"},this.t("polls.answers")),a("span",{key:"6c6a42a4e6b84ec18ad94bcd4015ed4047b7b0aa"},this.poll.voted.length)),this.poll.options.map(((t,o)=>a("div",{class:{active:t.votes.some((r=>r.id===this.self)),"open-vote":this.permissions.polls.canVote&&!r,"poll-option":!0}},a("div",{class:"poll-option-header","data-disabled":!this.permissions.polls.canVote},a("label",null,!r&&a("input",{disabled:!this.permissions.polls.canVote,readOnly:r,type:"radio",checked:t.votes.some((r=>r.id===this.self)),onClick:r=>this.vote(r,o)}),a("p",null,t.text)),a("span",{class:"counter"},t.count)),a("div",{class:"votes"},t.votes.slice(0,this.MAX_VOTES_RENDER).map((r=>{if(!this.poll.anonymous||this.self===this.poll.createdByUserId)return a("rtk-tooltip",{label:r.name},a("div",{class:"vote"},n(r.name)))})),t.votes.length>this.MAX_VOTES_RENDER&&a("rtk-tooltip",{label:`+${t.votes.length-this.MAX_VOTES_RENDER} more `},a("div",{class:"vote"},"+",t.votes.length-this.MAX_VOTES_RENDER)))))))))}};p([s()],d.prototype,"iconPack",void 0),p([s()],d.prototype,"t",void 0),d.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)))}.ctr{margin-bottom:var(--rtk-space-3, 12px);display:flex;width:100%;flex-direction:column;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.poll-title{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);margin-right:var(--rtk-space-4, 16px);font-size:12px}.poll{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));display:flex;flex-direction:column;padding:var(--rtk-space-4, 16px)}.poll-question{padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);font-size:14px;overflow-wrap:break-word}.poll-answers{display:flex;flex-direction:row;justify-content:space-between;font-size:12px;margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-1, 4px);padding-left:var(--rtk-space-1, 4px);padding-right:var(--rtk-space-3, 12px)}.poll-option{display:flex;flex-direction:column;margin-top:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));padding:var(--rtk-space-2, 8px);word-break:break-word}.poll-option.open-vote:hover{cursor:pointer}.poll-option label{display:flex;flex-direction:row;cursor:inherit}.poll-option-header{display:flex;flex-direction:row;justify-content:space-between;padding:var(--rtk-space-1, 4px)}.poll-option-header[data-disabled='true']:hover{cursor:default}.poll-option-header input{margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-2, 8px);cursor:inherit}.poll-option-header .counter{color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-size:12px}.votes{margin-top:var(--rtk-space-1, 4px);display:flex;flex-direction:row;flex-wrap:wrap}.vote{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);display:flex;align-items:center;justify-content:center;border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-video-bg, 24 24 24) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-radius:var(--rtk-border-radius-none, 0);clip-path:circle()}.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.active .counter{color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}";var b=function(r,t,a,o){var e,i=arguments.length,s=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,a):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(r,t,a,o);else for(var c=r.length-1;c>=0;c--)(e=r[c])&&(s=(i<3?e(s):i>3?e(t,a,s):e(t,a))||s);return i>3&&s&&Object.defineProperty(t,a,s),s};const k=class{constructor(a){r(this,a),this.onCreate=t(this,"rtkCreatePoll",7),this.iconPack=e,this.t=i(),this.options=["",""],this.anonymous=!1,this.hideVotes=!0}removeOption(r){var t;this.options=this.options.filter(((t,a)=>a!==r)),1===(null===(t=this.error)||void 0===t?void 0:t.code)&&(this.error=void 0)}addOption(){this.options=[...this.options,""]}updateOption(r,t){var a;this.options[t]=r.target.value,1===(null===(a=this.error)||void 0===a?void 0:a.code)&&(this.error=void 0)}handleSubmit(){const r={question:this.question.value,options:this.options,anonymous:this.anonymous,hideVotes:!!this.anonymous||this.hideVotes};r.question?this.options.filter((r=>""===r.trim())).length>0?this.error={code:1,message:this.t("polls.errors.empty_option")}:this.onCreate.emit(r):this.error={code:0,message:this.t("polls.errors.question_required")}}render(){return a(o,{key:"a5d66ad4586b3e3bf360fc7f3330cbebfcc27d29"},a("div",{key:"ab293118b0a4e4f0839da8b1f28e8bb4c3075e00",class:"create-poll"},a("p",{key:"dd851c73436db148c85fa4ae605841acc4047114"},this.t("polls.question")),a("textarea",{key:"f2fc86324169b0eb23eccbf6f9a9425b2fa43cef",onInput:()=>{this.error&&0===this.error.code&&(this.error=void 0)},ref:r=>this.question=r,placeholder:this.t("polls.question.placeholder")}),this.options.map(((r,t)=>a("div",{class:"option"},a("input",{placeholder:this.t("polls.option.placeholder"),value:r,onInput:r=>this.updateOption(r,t)}),t>1&&a("rtk-button",{kind:"icon",class:"auto remove-option",variant:"secondary",onClick:()=>this.removeOption(t)},a("rtk-icon",{icon:this.iconPack.subtract}))))),a("rtk-button",{key:"d33f567bcd74edf4ace17cd3a0ca36daf69eeb8c",class:"add-option",variant:"secondary",onClick:()=>this.addOption()},this.t("polls.option")),a("label",{key:"1ded9b5aeec6b5b5fec3cc2ec43c488b48a0568b"},a("input",{key:"37047cb8a6ccb8c37fc56261fb2f32fa0ff19d92",id:"anonymous",type:"checkbox",onChange:r=>this.anonymous=r.target.checked}),this.t("polls.results.anon")),a("label",{key:"50ac11b8af600d337cc2a1d8ec934e1abac7eaf6"},a("input",{key:"6d3df46887a4285d923cc2f8b82abf396a2df8fa",id:"hideVotes",type:"checkbox",disabled:this.anonymous,checked:!!this.anonymous||this.hideVotes,onChange:r=>this.hideVotes=r.target.checked}),this.t("polls.results.hide")),a("rtk-button",{key:"36f2228ca82a29f9d72f768fa65028690230a26f",kind:"wide",onClick:()=>this.handleSubmit()},this.t("polls.create")),this.error&&a("span",{key:"fe7a37df641bcf672e8c85a87251df19d8d1fc91",class:"error-text"},this.error.message)))}};b([s()],k.prototype,"iconPack",void 0),b([s()],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)}.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)))}.create-poll{margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);display:flex;flex:1 1 0%;flex-direction:column;padding:var(--rtk-space-3, 12px);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))}.create-poll p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px);text-align:center}.create-poll textarea{display:flex;border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);font-family:var(--rtk-font-family, sans-serif);border-width:var(--rtk-border-width-none, 0);border-style:none;font-weight:500;outline:2px solid transparent;outline-offset:2px;margin-top:var(--rtk-space-3, 12px);margin-bottom:var(--rtk-space-3, 12px);resize:vertical;--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-700, 255 255 255 / 0.64))}.create-poll textarea:focus{outline-style:solid;outline-offset:2px;outline-color:rgb(var(--rtk-colors-background-600, 60 60 60))}.option{display:flex;flex-direction:row;align-items:center;margin-bottom:var(--rtk-space-3, 12px);width:100%}.option input{width:100%;border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;--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-700, 255 255 255 / 0.64))}.remove-option{margin-left:var(--rtk-space-2, 8px);width:var(--rtk-space-10, 40px);border-radius:var(--rtk-border-radius-sm, 4px)}.add-option{margin-bottom:var(--rtk-space-3, 12px)}label{margin-bottom:var(--rtk-space-3, 12px)}.error-text{margin-top:var(--rtk-space-3, 12px);text-align:center;font-size:12px;--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{d as rtk_poll,k as rtk_poll_form}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as e,H as t}from"./p-0ee570cd.js";const r=({element:e,size:t,states:r={},config:s={}})=>{let o=[];const n=null==s?void 0:s.root[e],l=e=>{o.push(e),"string"==typeof t&&o.push(`${e}.${t}`)};if(l(e),"object"==typeof n&&!Array.isArray(n)&&null!==n){const{state:t,states:s}=n;let o=e,c=[];if(Array.isArray(s)){c=s.filter((e=>r[e])),c.sort();for(const e of c)l(`${o}.${e}`);c.length>1&&l([o,...c].join("."))}if("string"==typeof t){const s=`${e}[${t}=${r[t]}]`;l(s);for(const e of c)l(`${s}.${e}`);c.length>1&&l([s,...c].join("."))}}return o},s=({selectors:e,root:t})=>{if(!t||!Array.isArray(e))return[];let r=[];for(const s of e){const e=t[s];if(Array.isArray(e))r=[...e];else if(e){if(e.children&&(r=[...e.children]),Array.isArray(e.remove))for(const t of e.remove)r=r.filter((e=>"string"==typeof e?e!==t:!Array.isArray(e)||e[0]!==t));if(e.addBefore)for(const[t,s]of Object.entries(e.addBefore)){const e=r.findIndex((e=>"string"==typeof e?e===t:!!Array.isArray(e)&&e[0]===t));e>=0&&r.splice(e,0,...s)}Array.isArray(e.add)&&(r=r.concat(e.add)),Array.isArray(e.prepend)&&(r=e.prepend.concat(r))}}return r},o=({elements:t,defaults:r,props:s={},deepProps:o=!1,elementProps:n={}})=>Array.isArray(t)&&0!==t.length?t.map((t=>e(l,{element:t,defaults:r,props:s,childProps:o&&s,elementProps:n}))):null,n=({element:e,defaults:t,props:o={},elementProps:n={}})=>{var l;const{config:c,size:p,states:f}=t;let i,a={},u=[];Array.isArray(e)?[i,a,...u]=e:i=e;const d=null===(l=null==c?void 0:c.root)||void 0===l?void 0:l[i];null!=d&&"props"in d&&(o=Object.assign(Object.assign({},d.props),o)),o=Object.assign(Object.assign({},o),a),i in n&&(o=Object.assign(Object.assign({},o),n[i]));const y=r({element:i,size:p,states:f,config:c});return s({selectors:y,root:c.root}).length},l=({element:n,defaults:l,childProps:c={},props:p={},onlyChildren:f=!1,asHost:i=!1,deepProps:a=!1,elementProps:u={}},d)=>{var y;const{config:b,size:j,states:m}=l;let O,A={},P=[];Array.isArray(n)?[O,A,...P]=n:O=n;const g=null===(y=null==b?void 0:b.root)||void 0===y?void 0:y[O];null!=g&&"props"in g&&(p=Object.assign(Object.assign({},g.props),p)),p=Object.assign(Object.assign({},p),A),O in u&&(p=Object.assign(Object.assign({},p),u[O]));const v=r({element:O,size:j,states:m,config:b}),$=s({selectors:v,root:b.root});if(f)return e(o,{elements:$,defaults:l,props:c,deepProps:a,elementProps:u});const z=(({selectors:e,styles:t})=>{if(!Array.isArray(e)||null==t)return{};const r={};for(const s of e){const e=t[s];null!=e&&Object.assign(r,e)}return r})({selectors:v,styles:b.styles});if(i)return e(t,Object.assign({},l,{style:z},p),e(o,{elements:$,defaults:l,props:c,deepProps:a,elementProps:u}),d,P.map((t=>{if(Array.isArray(t)){const[r,s]=t;return e(r,Object.assign({},l,s))}return t})));if(["rtk-header","rtk-controlbar"].includes(O)&&(p.disableRender=!0),O.startsWith("rtk-"))return e(O,Object.assign({},l,{style:z},p),e(o,{elements:$,defaults:l,props:c,deepProps:a,elementProps:u}),d,P.map((t=>{if(Array.isArray(t)){const[r,s]=t;return e(r,Object.assign({},l,s))}return t})));{const[t,r]=O.split("#");return e(t,Object.assign({id:r,style:z},p),e(o,{elements:$,defaults:l,props:c,deepProps:a,elementProps:u}),d,P.map((t=>{if(Array.isArray(t)){const[r,s]=t;return e(r,Object.assign({},l,s))}return t})))}};export{l as R,n as l}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as a}from"./p-0ee570cd.js";import{d as s,a as e,c as r}from"./p-ee167b96.js";import{R as n}from"./p-c8eaa707.js";import{S as c}from"./p-2aa242f4.js";var p=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const o=class{constructor(a){t(this,a),this.config=s,this.hideHeader=!1,this.iconPack=e,this.view="sidebar",this.t=r(),this.search="",this.participants=[],this.createParticipantNode=t=>{const a={meeting:this.meeting,view:this.view,t:this.t,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack};return i("div",null,i(n,{element:"rtk-participant",defaults:a,props:{role:"listitem",participant:t,key:t.id},childProps:Object.assign(Object.assign({},a),{participant:t,size:this.size}),deepProps:!0}))},this.updateStageList=()=>{this.getParticipants(this.search)}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}disconnectedCallback(){const{participants:t,stage:i}=this.meeting;null!=this.meeting&&(this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),t.joined.removeListener("stageStatusUpdate",this.updateStageList),null==i||i.removeListener("stageStatusUpdate",this.updateStageList))}meetingChanged(t){null!=t&&(this.participantJoinedListener=t=>{if("ON_STAGE"!==t.stageStatus)return;const i=this.search.toLowerCase();t.name.toLowerCase().includes(i)&&t.id.toLowerCase().includes(i)&&(this.participants=[...this.participants.filter((i=>i.id!==t.id)),t])},this.participantLeftListener=t=>{this.participants=this.participants.filter((i=>i.id!==t.id))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),this.updateStageList(),null==t||t.participants.joined.on("stageStatusUpdate",this.updateStageList),null==t||t.stage.on("stageStatusUpdate",this.updateStageList))}searchChanged(t){this.getParticipants(t)}getParticipants(t=this.search){let i="ON_STAGE"===this.meeting.stage.status?[this.meeting.self]:[];i=[...i,...this.meeting.participants.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus))],this.participants=""===t?i:i.filter((i=>{var a;return(null!==(a=i.name)&&void 0!==a?a:i.id).toLowerCase().includes(t.toLowerCase())}))}render(){return i(a,{key:"54501f9cebd4dee4398cb0161341c72008a1bf22"},i("div",{key:"9157670e4ed76beb38ad5c6e3405a1707ff8d262",class:"participants-container"},!this.hideHeader&&i("div",{key:"71d44cb3842d749a19526068700f788727ff5c28",class:"heading-count",part:"heading-count"},this.t("participants")," (",this.participants.length,")"),i("rtk-virtualized-participant-list",{key:"8239db7509da6cc5334b8d860e9954527febacf2",items:this.participants,renderItem:this.createParticipantNode,part:"participants",class:"participants",emptyListElement:i("div",{class:"empty-stage-list"},this.t(this.search.length>0?"search.could_not_find":"search.empty"))})))}static get watchers(){return{meeting:["meetingChanged"],search:["searchChanged"]}}};p([c()],o.prototype,"meeting",void 0),p([c()],o.prototype,"states",void 0),p([c()],o.prototype,"size",void 0),p([c()],o.prototype,"iconPack",void 0),p([c()],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;width:100%;flex-direction:column;font-size:14px}.participants-container{margin-bottom:var(--rtk-space-4, 16px);height:100%;width:100%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.empty-stage-list{margin-top:var(--rtk-space-4, 16px);margin-bottom:var(--rtk-space-4, 16px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}rtk-participant{width:100%}";var l=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const h=class{constructor(i){t(this,i),this.config=s,this.iconPack=e,this.view="sidebar",this.t=r(),this.stageRequestedParticipants=[],this.updateStageRequestedParticipants=()=>{this.stageRequestedParticipants=this.meeting.participants.joined.toArray().filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus))},this.acceptStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.grantAccess([i]),this.updateStageRequestedParticipants()},this.rejectStageRequest=async t=>{const{userId:i}=t;await this.meeting.stage.denyAccess([i]),this.updateStageRequestedParticipants()},this.acceptAllStageRequest=async()=>{await this.meeting.stage.grantAccess(this.stageRequestedParticipants.map((t=>t.userId))),this.updateStageRequestedParticipants()},this.denyAllStageRequest=async()=>{var t;await(null===(t=this.meeting.stage)||void 0===t?void 0:t.denyAccess(this.stageRequestedParticipants.map((t=>t.userId)))),this.updateStageRequestedParticipants()},this.shouldShowStageRequests=()=>this.meeting.self.permissions.stageEnabled&&this.meeting.self.permissions.acceptStageRequests&&this.stageRequestedParticipants.length>0,this.updateRequestList=async t=>{var i,a,s,e,r,n,c;this.meeting.self.permissions.acceptStageRequests&&this.meeting.self.permissions.stageEnabled?"LIVESTREAM"===this.meeting.meta.viewType||"HIVE"===(null===(s=null===(a=null===(i=this.meeting)||void 0===i?void 0:i.self)||void 0===a?void 0:a.permissions)||void 0===s?void 0:s.mediaRoomType)?(t||(t=null!==(n=null===(r=await(null===(e=this.meeting.stage)||void 0===e?void 0:e.getAccessRequests()))||void 0===r?void 0:r.stageRequests)&&void 0!==n?n:[]),this.stageRequestedParticipants=t.map((t=>Object.assign(Object.assign({},t),{name:t.displayName})))):this.stageRequestedParticipants=null===(c=[this.meeting.self,...this.meeting.participants.joined.toArray()])||void 0===c?void 0:c.filter((t=>"REQUESTED_TO_JOIN_STAGE"===t.stageStatus)):this.stageRequestedParticipants=[]}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){const{stage:t}=this.meeting;null==t||t.removeListener("stageAccessRequestUpdate",this.updateRequestList)}meetingChanged(t){var i;null!=t&&(this.updateRequestList(),null===(i=t.stage)||void 0===i||i.on("stageAccessRequestUpdate",this.updateRequestList))}render(){if("sidebar"===this.view&&this.shouldShowStageRequests())return i("div",{class:"stage-requested-participants"},i("div",{class:"heading-count",part:"staged-heading-count"},this.t("stage_request.header_title")," (",this.stageRequestedParticipants.length,")"),i("ul",{class:"participants",part:"staged-participants"},this.stageRequestedParticipants.map((t=>i("li",{class:"waiting-participant",key:t.id},i("div",{class:"participant-details"},i("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),i("p",{class:"name",title:t.name},t.name)),i("div",{class:"waitlist-controls"},i("rtk-tooltip",{label:this.t("stage_request.deny_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectStageRequest(t)},i("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),i("rtk-tooltip",{label:this.t("stage_request.accept_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptStageRequest(t)},i("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),i("div",{class:"bulk-actions"},i("rtk-button",{class:"accept-all-button",variant:"secondary",onClick:this.acceptAllStageRequest},this.t("stage_request.accept_all")),i("rtk-button",{class:"deny-all-button",variant:"danger",onClick:this.denyAllStageRequest},this.t("stage_request.deny_all"))))}static get watchers(){return{meeting:["meetingChanged"]}}};l([c()],h.prototype,"meeting",void 0),l([c()],h.prototype,"size",void 0),l([c()],h.prototype,"iconPack",void 0),l([c()],h.prototype,"t",void 0),h.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{margin-top:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:column;font-size:14px}.stage-requested-participants{margin-bottom:var(--rtk-space-8, 32px)}.stage-requested-participants .bulk-actions{display:flex;gap:var(--rtk-space-2, 8px)}.stage-requested-participants .bulk-actions .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.stage-requested-participants .bulk-actions rtk-button{flex:1 1 0%}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";var d=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const g=class{constructor(a){t(this,a),this.updateStageViewers=()=>{this.getViewers(this.search)},this.config=s,this.hideHeader=!1,this.iconPack=e,this.view="sidebar",this.search="",this.t=r(),this.stageViewers=[],this.createParticipantNode=t=>i("rtk-participant",{role:"listitem",key:t.id,meeting:this.meeting,participant:t,view:this.view,iconPack:this.iconPack,config:this.config,t:this.t}),this.shouldShowViewers=()=>{var t,i,a;return null===(a=null===(i=null===(t=this.meeting)||void 0===t?void 0:t.self)||void 0===i?void 0:i.permissions)||void 0===a?void 0:a.stageEnabled}}connectedCallback(){this.meetingChanged(this.meeting),this.searchChanged(this.search)}meetingChanged(t){null!=t&&(this.participantJoinedListener=t=>{if("ON_STAGE"===t.stageStatus)return;const i=this.search.toLowerCase();i.length>0&&!t.name.toLowerCase().includes(i)||(this.stageViewers=[...this.stageViewers.filter((i=>i.id!==t.id)),t])},this.participantLeftListener=t=>{this.stageViewers=this.stageViewers.filter((i=>i.id!==t.id))},t.participants.joined.addListener("participantJoined",this.participantJoinedListener),t.participants.joined.addListener("participantLeft",this.participantLeftListener),t.participants.joined.on("stageStatusUpdate",this.updateStageViewers),t.stage.on("stageStatusUpdate",this.updateStageViewers))}searchChanged(t){this.getViewers(t)}disconnectedCallback(){const{participants:t,stage:i}=this.meeting;this.participantJoinedListener&&this.meeting.participants.joined.removeListener("participantJoined",this.participantJoinedListener),this.participantLeftListener&&this.meeting.participants.joined.removeListener("participantLeft",this.participantLeftListener),t.joined.removeListener("stageStatusUpdate",this.updateStageViewers),i.removeListener("stageStatusUpdate",this.updateStageViewers)}getViewers(t){let i="ON_STAGE"===this.meeting.stage.status?[]:[this.meeting.self];i=[...i,...this.meeting.participants.joined.toArray()].filter((t=>"ON_STAGE"!==t.stageStatus)),this.stageViewers=""===t?i:i.filter((i=>{var a;return(null!==(a=i.name)&&void 0!==a?a:i.id).toLowerCase().includes(t.toLowerCase())}))}render(){if("sidebar"===this.view&&this.shouldShowViewers())return i("div",{class:"list"},!this.hideHeader&&i("div",{class:"heading-count",part:"heading-count"},this.t("viewers")," (",this.stageViewers.length,")"),i("rtk-virtualized-participant-list",{items:this.stageViewers,renderItem:this.createParticipantNode,class:"participants",part:"participants",style:{height:"100%"},emptyListElement:i("div",{class:"empty-viewers-list"},this.t(this.search.length>0?"participants.errors.empty_results":"participants.empty_list"))}))}static get watchers(){return{meeting:["meetingChanged"],search:["searchChanged"]}}};d([c()],g.prototype,"meeting",void 0),d([c()],g.prototype,"size",void 0),d([c()],g.prototype,"iconPack",void 0),d([c()],g.prototype,"t",void 0),g.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;font-size:14px}.list{margin-bottom:var(--rtk-space-4, 16px);display:flex;height:100%;flex-direction:column}h3,.heading-count{margin:var(--rtk-space-0, 0px);align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.empty-viewers-list{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);text-align:center;font-size:12px;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}";var v=function(t,i,a,s){var e,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,a,s);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(n=(r<3?e(n):r>3?e(i,a,n):e(i,a))||n);return r>3&&n&&Object.defineProperty(i,a,n),n};const u=class{constructor(i){t(this,i),this.config=s,this.iconPack=e,this.view="sidebar",this.t=r(),this.acceptWaitingRoomRequest=async t=>{await this.meeting.participants.acceptWaitingRoomRequest(t)},this.waitlistedParticipants=[],this.acceptAllWaitingRoomRequests=async()=>{await this.meeting.participants.acceptAllWaitingRoomRequest(this.waitlistedParticipants.map((t=>t.id)))},this.rejectWaitingRoomRequest=async t=>{await this.meeting.participants.rejectWaitingRoomRequest(t)},this.shouldShowWaitlist=()=>"LIVESTREAM"!==this.meeting.meta.viewType&&this.meeting.self.permissions.acceptWaitingRequests&&0!==this.waitlistedParticipants.length}disconnectedCallback(){const{participants:t}=this.meeting;this.waitlistedParticipantJoinedListener&&t.waitlisted.removeListener("participantJoined",this.waitlistedParticipantJoinedListener),this.waitlistedParticipantLeftListener&&t.waitlisted.removeListener("participantLeft",this.waitlistedParticipantLeftListener),this.waitlistedParticipantsClearedListener&&t.waitlisted.removeListener("participantsCleared",this.waitlistedParticipantsClearedListener)}connectedCallback(){this.meetingChanged(this.meeting)}meetingChanged(t){null!=t&&(this.waitlistedParticipants=t.participants.waitlisted.toArray(),this.waitlistedParticipantJoinedListener=t=>{this.waitlistedParticipants.some((i=>i.id===t.id))||(this.waitlistedParticipants=[...this.waitlistedParticipants,t])},this.waitlistedParticipantLeftListener=t=>{this.waitlistedParticipants=this.waitlistedParticipants.filter((i=>i.id!==t.id))},this.waitlistedParticipantsClearedListener=()=>{this.waitlistedParticipants=[]},t.participants.waitlisted.addListener("participantJoined",this.waitlistedParticipantJoinedListener),t.participants.waitlisted.addListener("participantLeft",this.waitlistedParticipantLeftListener),t.participants.waitlisted.addListener("participantsCleared",this.waitlistedParticipantsClearedListener))}render(){if("sidebar"===this.view&&this.shouldShowWaitlist())return i("div",{class:"waiting-participants"},i("div",{class:"heading-count",part:"waitlisted-heading-count"},this.t("waitlist.header_title")," (",this.waitlistedParticipants.length,")"),i("ul",{class:"participants",part:"waitlisted-participants"},this.waitlistedParticipants.map((t=>i("li",{class:"waiting-participant",key:t.id},i("div",{class:"participant-details"},i("rtk-avatar",{participant:t,size:"sm",iconPack:this.iconPack,t:this.t}),i("p",{class:"name",title:t.name},t.name)),i("div",{class:"waitlist-controls"},i("rtk-tooltip",{label:this.t("waitlist.deny_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.rejectWaitingRoomRequest(t.id)},i("rtk-icon",{class:"deny",icon:this.iconPack.dismiss}))),i("rtk-tooltip",{label:this.t("waitlist.accept_request"),variant:"secondary"},i("rtk-button",{variant:"secondary",kind:"icon",onClick:()=>this.acceptWaitingRoomRequest(t.id)},i("rtk-icon",{class:"accept",icon:this.iconPack.checkmark})))))))),i("rtk-button",{class:"accept-all-button",variant:"secondary",kind:"wide",onClick:this.acceptAllWaitingRoomRequests},this.t("waitlist.accept_all")))}static get watchers(){return{meeting:["meetingChanged"]}}};v([c()],u.prototype,"meeting",void 0),v([c()],u.prototype,"size",void 0),v([c()],u.prototype,"iconPack",void 0),v([c()],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{margin-top:var(--rtk-space-4, 16px);margin-bottom:calc(var(--rtk-space-2, 8px) * -1);display:flex;width:100%;flex-direction:column;font-size:14px}.waiting-participants{margin-bottom:var(--rtk-space-8, 32px)}.waiting-participants .accept-all-button{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}h3,.heading-count{margin:var(--rtk-space-0, 0px);display:flex;align-items:center;justify-content:center;padding:var(--rtk-space-0, 0px);font-size:16px;font-weight:400;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88));text-align:center}.heading-count{font-size:14px}.participants{margin-top:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px)}.waiting-participant{margin-top:var(--rtk-space-2, 8px);margin-bottom:var(--rtk-space-2, 8px);display:flex;align-items:center}.waiting-participant .participant-details{margin-right:auto;display:flex;align-items:center}.waiting-participant .participant-details rtk-avatar{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);flex-shrink:0;font-size:14px}.waiting-participant .participant-details .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width: 1080px){.waiting-participant .participant-details .name{max-width:var(--rtk-space-40, 160px)}}.waiting-participant .waitlist-controls{display:flex}.waiting-participant .waitlist-controls rtk-button{margin-left:var(--rtk-space-2, 8px);cursor:pointer;border-radius:var(--rtk-border-radius-sm, 4px)}.waiting-participant .waitlist-controls rtk-icon.accept{--tw-text-opacity:1;color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-text-opacity))}.waiting-participant .waitlist-controls rtk-icon.deny{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}";export{o as rtk_participants_stage_list,h as rtk_participants_stage_queue,g as rtk_participants_viewer_list,u as rtk_participants_waiting_list}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=function(t){var n=typeof t;return null!=t&&("object"==n||"function"==n)},e="object"==typeof self&&self&&self.Object===Object&&self,o="object"==typeof t&&t&&t.Object===Object&&t||e||Function("return this")(),r=o,i=/\s/,u=/^\s+/,f=o.Symbol,c=Object.prototype,a=c.hasOwnProperty,d=c.toString,l=f?f.toStringTag:void 0,v=Object.prototype.toString,b=f?f.toStringTag:void 0,s=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":b&&b in Object(t)?function(t){var n=a.call(t,l),e=t[l];try{t[l]=void 0;var o=!0}catch(t){}var r=d.call(t);return o&&(n?t[l]=e:delete t[l]),r}(t):function(t){return v.call(t)}(t)},p=function(t){return t?t.slice(0,function(t){for(var n=t.length;n--&&i.test(t.charAt(n)););return n}(t)+1).replace(u,""):t},y=n,j=/^[-+]0x[0-9a-f]+$/i,m=/^0b[01]+$/i,T=/^0o[0-7]+$/i,h=parseInt,g=n,w=function(){return r.Date.now()},N=function(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return null!=t&&"object"==typeof t}(t)&&"[object Symbol]"==s(t)}(t))return NaN;if(y(t)){var n="function"==typeof t.valueOf?t.valueOf():t;t=y(n)?n+"":n}if("string"!=typeof t)return 0===t?t:+t;t=p(t);var e=m.test(t);return e||T.test(t)?h(t.slice(2),e?2:8):j.test(t)?NaN:+t},O=Math.max,x=Math.min,$=function(t,n,e){var o,r,i,u,f,c,a=0,d=!1,l=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(n){var e=o,i=r;return o=r=void 0,a=n,u=t.apply(i,e)}function s(t){var e=t-c;return void 0===c||e>=n||e<0||l&&t-a>=i}function p(){var t=w();if(s(t))return y(t);f=setTimeout(p,function(t){var e=n-(t-c);return l?x(e,i-(t-a)):e}(t))}function y(t){return f=void 0,v&&o?b(t):(o=r=void 0,u)}function j(){var t=w(),e=s(t);if(o=arguments,r=this,c=t,e){if(void 0===f)return function(t){return a=t,f=setTimeout(p,n),d?b(t):u}(c);if(l)return clearTimeout(f),f=setTimeout(p,n),b(c)}return void 0===f&&(f=setTimeout(p,n)),u}return n=N(n)||0,g(e)&&(d=!!e.leading,i=(l="maxWait"in e)?O(N(e.maxWait)||0,n):i,v="trailing"in e?!!e.trailing:v),j.cancel=function(){void 0!==f&&clearTimeout(f),a=0,o=c=r=f=void 0},j.flush=function(){return void 0===f?u:y(w())},j};export{$ as d}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as i,H as e,a}from"./p-0ee570cd.js";import{d as s,a as r,c as h}from"./p-ee167b96.js";import{d as n}from"./p-b13ddb7d.js";import{R as d}from"./p-c8eaa707.js";import{S as o}from"./p-2aa242f4.js";var l=function(t,i,e,a){var s,r=arguments.length,h=r<3?i:null===a?a=Object.getOwnPropertyDescriptor(i,e):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,e,a);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(h=(r<3?s(h):r>3?s(i,e,h):s(i,e))||h);return r>3&&h&&Object.defineProperty(i,e,h),h};const p=class{constructor(i){t(this,i),this.layout="row",this.participants=[],this.pinnedParticipants=[],this.screenShareParticipants=[],this.plugins=[],this.aspectRatio="16:9",this.gap=8,this.config=s,this.iconPack=r,this.t=h(),this.gridSize=n}componentWillLoad(){this.initialised=!1,this.screenShareParticipantsChanged(this.screenShareParticipants),this.pluginsChanged(this.plugins),this.initialised=!0}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){var t;null===(t=this.meeting.meta)||void 0===t||t.removeListener("activeTabUpdate",this.activeTabUpdateListener)}meetingChanged(t){var i,e,a,s;null!=t&&(null!=(null===(i=t.meta)||void 0===i?void 0:i.selfActiveTab)&&this.onActiveTabUpdate(null===(e=t.meta.selfActiveTab)||void 0===e?void 0:e.type,null===(a=t.meta.selfActiveTab)||void 0===a?void 0:a.id),this.activeTabUpdateListener=t=>{this.onActiveTabUpdate(null==t?void 0:t.type,null==t?void 0:t.id)},null===(s=t.meta)||void 0===s||s.addListener("activeTabUpdate",this.activeTabUpdateListener))}screenShareParticipantsChanged(t=[]){(this.initialised||null==this.activeTab)&&(null==this.activeTab&&t.length>0?this.setActiveTab({type:"screenshare",participant:t[0]}):this.revalidateActiveTab())}pluginsChanged(t){(this.initialised||null==this.activeTab)&&(t.length>0?this.setActiveTab({type:"plugin",plugin:t[t.length-1]}):this.revalidateActiveTab())}revalidateActiveTab(){if(null!=this.activeTab)if("screenshare"===this.activeTab.type){const{participant:t}=this.activeTab;this.screenShareParticipants.some((i=>i.id===t.id))||this.reassignActiveTab()}else{const{plugin:t}=this.activeTab;this.plugins.some((i=>i.id===t.id))||this.reassignActiveTab()}}setActiveTab(t,i=!0){var e;this.activeTab=t,i&&(null===(e=this.meeting.meta)||void 0===e||e.setSelfActiveTab({type:t.type,id:"screenshare"===t.type?t.participant.id:t.plugin.id},0))}reassignActiveTab(){this.screenShareParticipants.length>0?this.setActiveTab({type:"screenshare",participant:this.screenShareParticipants[0]}):this.plugins.length>0&&this.setActiveTab({type:"plugin",plugin:this.plugins[this.plugins.length-1]})}onActiveTabUpdate(t,i){if(null!=t&&null!=i)switch(t){case"plugin":const t=this.plugins.find((t=>t.id===i));null!=t&&this.setActiveTab({type:"plugin",plugin:t},!1);break;case"screenshare":const e=this.screenShareParticipants.find((t=>t.id===i));null!=e&&this.setActiveTab({type:"screenshare",participant:e},!1)}}getTabs(){const t=this.screenShareParticipants.map((t=>({type:"screenshare",participant:t}))),i=this.plugins.map((t=>({type:"plugin",plugin:t})));return t.concat(i)}render(){var t,a;const s={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t};return i(e,{key:"52e26a16c20eee51ac0f3d01d932df88d58acb05"},i("main",{key:"1838e7498d579bf70346bf921c9f3966721a1eea",id:"main-view",part:"main-view"},(null===(t=this.getTabs())||void 0===t?void 0:t.length)>1&&i("rtk-tab-bar",Object.assign({key:"b3f5f77e4b0bd36d12014881f0507c9de6e613af",activeTab:this.activeTab,tabs:this.getTabs(),onTabChange:t=>this.setActiveTab(t.detail)},s)),i("div",{id:"tabs",key:"tabs"},this.screenShareParticipants.map((t=>{var e,a;return i(d,{element:"rtk-screenshare-view",defaults:s,props:{participant:t,key:t.id,style:{display:"screenshare"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&(null===(a=this.activeTab)||void 0===a?void 0:a.participant.id)===t.id?"flex":"none"}},childProps:{participant:t,isScreenShare:!0},deepProps:!0})})),this.plugins.map((t=>{var e,a;return i("rtk-plugin-main",Object.assign({},s,{plugin:t,key:t.id,style:{display:"plugin"===(null===(e=this.activeTab)||void 0===e?void 0:e.type)&&(null===(a=this.activeTab)||void 0===a?void 0:a.plugin.id)===t.id?"flex":"none"}}))})))),i(d,{key:"c3a9ce4706096e385fc522a37e3de7d9d30d1b70",element:"rtk-mixed-grid",defaults:s,childProps:{part:"participants-grid",class:this.gridSize.mixed?`grid-width-${this.gridSize.mixed}`:"grid-width-lg",participants:this.participants,pinnedParticipants:this.pinnedParticipants,screenShareParticipants:this.screenShareParticipants,plugins:this.plugins,aspectRatio:this.aspectRatio,gap:this.gap,size:"AUDIO_ROOM"===(null===(a=this.meeting.meta)||void 0===a?void 0:a.viewType)?"md":"sm",layout:"row"},onlyChildren:!0}))}get host(){return a(this)}static get watchers(){return{meeting:["meetingChanged"],screenShareParticipants:["screenShareParticipantsChanged"],plugins:["pluginsChanged"]}}};l([o()],p.prototype,"size",void 0),l([o()],p.prototype,"meeting",void 0),l([o()],p.prototype,"states",void 0),l([o()],p.prototype,"iconPack",void 0),l([o()],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)}:host{display:block;height:100%;width:100%;display:flex}main{display:flex;flex:1 1 0%;padding-left:var(--rtk-space-4, 16px)}:host([layout='column']) main{padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}main rtk-tab-bar{margin-right:var(--rtk-space-4, 16px);box-sizing:border-box;display:flex;height:100%;width:var(--rtk-space-16, 64px);flex-direction:column}main #tabs{height:100%;flex:1 1 0%}rtk-button{z-index:10}.grid-width-sm{width:25%}.grid-width-md{width:50%}.grid-width-lg{width:66.666667%}.col{display:flex;flex-direction:column;align-items:center}.tab{display:flex;height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);align-items:center;justify-content:center;margin-bottom:var(--rtk-space-2, 8px);font-size:12px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}.tab.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}.tab img{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px);border-radius:var(--rtk-border-radius-sm, 4px)}:host([size='sm']){flex-direction:column}:host([size='sm']) .grid-width-lg,:host([size='sm']) .grid-width-md{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:33.333333%;width:100%;max-width:100%}:host([size='sm']) main{display:flex;flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{height:var(--rtk-space-12, 48px);width:100%;flex-direction:row}:host([size='sm']) #tabs{flex:1 1 0%}:host([size='sm']) .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}:host([layout='column']){flex-direction:column}:host([layout='column']) main{display:flex;flex:1 1 0%}:host([layout='column']) .grid-width-lg,:host([layout='column']) .grid-width-md{height:50%;max-width:100%;width:100%}:host([layout='column']) .grid-width-sm{height:33.333333%;max-width:100%;width:100%}@media (orientation: portrait){:host{flex-direction:column}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host .grid-width-md{height:33.333333%;width:100%;max-width:100%}:host .grid-width-sm{height:25%;width:100%;max-width:100%}:host main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='md']) main{flex:1 1 0%;flex-direction:column;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host rtk-tab-bar{height:var(--rtk-space-16, 64px);width:100%;flex-direction:row}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}@media (orientation: landscape){:host{flex-direction:row}:host([size='sm']){flex-direction:row}:host .grid-width-lg{height:50%;width:100%;max-width:100%}:host([size='sm']) .grid-width-sm{height:100%;max-height:100%;width:16.666667%}:host([size='sm']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px)}:host([size='md']) main{flex:1 1 0%;flex-direction:row;padding-left:var(--rtk-space-4, 16px);padding-right:var(--rtk-space-4, 16px)}:host([size='sm']) rtk-tab-bar{margin-right:var(--rtk-space-2, 8px);height:100%;width:var(--rtk-space-12, 48px);flex-direction:column}:host #tabs{flex:1 1 0%}:host .tab{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-2, 8px)}}";export{p as rtk_mixed_grid}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as e,H as s}from"./p-0ee570cd.js";import{a,c as r,i as n}from"./p-ee167b96.js";import{S as h}from"./p-2aa242f4.js";var o=function(t,i,e,s){var a,r=arguments.length,n=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,e):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,e,s);else for(var h=t.length-1;h>=0;h--)(a=t[h])&&(n=(r<3?a(n):r>3?a(i,e,n):a(i,e))||n);return r>3&&n&&Object.defineProperty(i,e,n),n};const l=class{constructor(e){t(this,e),this.stateUpdate=i(this,"rtkStateUpdate",7),this.apiError=i(this,"rtkApiError",7),this.variant="button",this.iconPack=a,this.t=r(),this.livestreamState="IDLE",this.livestreamStateListener=t=>{this.livestreamState=t,"LIVESTREAMING"!==t&&"IDLE"!==t||this.stateUpdate.emit({activeMoreMenu:!1})},this.isLoading=()=>null==this.meeting||"STARTING"===this.livestreamState||"STOPPING"===this.livestreamState}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.clearListeners()}meetingChanged(t){var i,e;null!=t&&(this.livestreamState=null===(i=this.meeting.livestream)||void 0===i?void 0:i.state,null===(e=this.meeting.livestream)||void 0===e||e.on("livestreamUpdate",this.livestreamStateListener))}async toggleLivestream(){var t,i;if("LIVESTREAMING"===this.livestreamState)try{await(null===(t=this.meeting.livestream)||void 0===t?void 0:t.stop())}catch(t){this.apiError.emit({trace:this.t("livestream.stop"),message:this.t("livestream.error.stop")})}else try{await(null===(i=this.meeting.livestream)||void 0===i?void 0:i.start())}catch(t){this.apiError.emit({trace:this.t("livestream.start"),message:this.t("livestream.error.start")})}}clearListeners(){var t;null===(t=this.meeting.livestream)||void 0===t||t.removeListener("livestreamUpdate",this.livestreamStateListener)}getLivestreamLabel(){switch(this.livestreamState){case"IDLE":return this.t("livestream.go_live");case"LIVESTREAMING":return this.t("livestream.end_live");case"WAITING_ON_MANUAL_INGESTION":return this.t("livestream.waiting_on_manual_ingestion");case"STARTING":return this.t("livestream.starting");case"STOPPING":return this.t("livestream.stopping");default:return this.t("livestream.error")}}getLivestreamIcon(){switch(this.livestreamState){case"IDLE":case"WAITING_ON_MANUAL_INGESTION":return this.iconPack.start_livestream;default:return this.iconPack.stop_livestream}}render(){return n(this.meeting)?e(s,null,e("rtk-controlbar-button",{part:"controlbar-button",size:this.size,iconPack:this.iconPack,isLoading:this.isLoading(),class:{"active-livestream":"LIVESTREAMING"===this.livestreamState},onClick:()=>this.toggleLivestream(),icon:this.getLivestreamIcon(),disabled:this.isLoading(),label:this.t(this.getLivestreamLabel()),variant:this.variant})):e(s,{"data-hidden":!0})}static get watchers(){return{meeting:["meetingChanged"]}}};o([h()],l.prototype,"meeting",void 0),o([h()],l.prototype,"size",void 0),o([h()],l.prototype,"iconPack",void 0),o([h()],l.prototype,"t",void 0),l.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}:host([data-hidden]){display:none}";export{l as rtk_livestream_toggle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as i}from"./p-0ee570cd.js";import{a}from"./p-ee167b96.js";import{S as n}from"./p-2aa242f4.js";var s=function(t,e,i,a){var n,s=arguments.length,r=s<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var o=t.length-1;o>=0;o--)(n=t[o])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const r=t=>Math.trunc(t).toString().padStart(2,"0"),o=class{constructor(e){t(this,e),this.iconPack=a,this.disconnectMeeting=()=>{var t,e;this.timeout&&clearTimeout(this.timeout),"number"==typeof this.request&&cancelAnimationFrame(this.request),null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e||e.removeListener("meetingStartTimeUpdate",this.startedTimeUpdateListener)},this.startedTimeUpdateListener=()=>{var t,e,i;this.startedTime=null===(i=null===(e=null===(t=this.meeting)||void 0===t?void 0:t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString()}}connectedCallback(){this.meetingChanged(this.meeting)}disconnectedCallback(){this.disconnectMeeting()}meetingChanged(t){var e,i,a;this.disconnectMeeting(),null!=t&&(this.startedTime=null===(i=null===(e=t.meta)||void 0===e?void 0:e.meetingStartedTimestamp)||void 0===i?void 0:i.toISOString(),null===(a=t.meta)||void 0===a||a.addListener("meetingStartTimeUpdate",this.startedTimeUpdateListener))}startedTimeChanged(t){if(void 0!==t){const t=()=>{this.timeDiff=(Date.now()-new Date(this.startedTime).getTime())/1e3,this.timeout=setTimeout((()=>{null!=this.request&&(this.request=requestAnimationFrame(t))}),500)};this.request=requestAnimationFrame(t)}}getFormattedTime(){if(null==this.timeDiff)return null;const t=this.timeDiff;let e="";return t>=3600&&(e=`${r(t/3600)}:`),e+=`${r(t%3600/60)}:${r(t%60)}`,e}render(){return e(i,{key:"2775471382c6d07aae0ba8e18677d6850fd9cb34","data-hidden":!(void 0!==this.startedTime),tabIndex:0,role:"timer","aria-live":"off"},void 0!==this.startedTime&&[e("rtk-icon",{key:"48b8bdfeef973d7f3eb4cdd526e386226a4b999a",icon:this.iconPack.clock,"aria-hidden":!0,tabIndex:-1,part:"icon"}),e("span",{key:"9f2bb7aa7adc6ecb65c5fef57e406801e6592e59",part:"text"},this.getFormattedTime())])}static get watchers(){return{meeting:["meetingChanged"],startedTime:["startedTimeChanged"]}}};s([n()],o.prototype,"meeting",void 0),s([n()],o.prototype,"iconPack",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:inline-flex;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255));font-variant-numeric:tabular-nums}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}rtk-icon{margin-right:var(--rtk-space-1, 4px);height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}:host([size='sm']) rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}";export{o as rtk_clock}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,w as i,h as s,H as e,a as r}from"./p-0ee570cd.js";import{d as n,c as a}from"./p-ee167b96.js";import{S as o}from"./p-2aa242f4.js";import{c}from"./p-c15d924f.js";import"./p-46923b34.js";import"./p-2c3cda13.js";var h=function(t,i,s,e){var r,n=arguments.length,a=n<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(r=t[o])&&(a=(n<3?r(a):n>3?r(i,s,a):r(i,s))||a);return n>3&&a&&Object.defineProperty(i,s,a),a};const d=class{constructor(i){t(this,i),this.config=n,this.t=a(),this.transcripts=[],this.listenerAttached=!1,this.onTranscript=t=>{t.transcript&&this.add(t)}}connectedCallback(){this.meetingChanged(this.meeting)}addListener(t){var i;null===(i=null==t?void 0:t.ai)||void 0===i||i.addListener("transcript",this.onTranscript),this.listenerAttached=!0}clearListeners(t){var i;this.onTranscript&&(null===(i=null==t?void 0:t.ai)||void 0===i||i.removeListener("transcript",this.onTranscript)),this.listenerAttached=!1,clearTimeout(this.disconnectTimeout),this.transcripts=[]}disconnectedCallback(){null!=this.meeting&&this.clearListeners(this.meeting)}meetingChanged(t,i){clearTimeout(this.disconnectTimeout),void 0!==i&&this.clearListeners(i),null!=t&&this.states.activeCaptions&&this.addListener(t)}statesChanged(t){t&&(t.activeCaptions&&!this.listenerAttached&&this.addListener(this.meeting),!t.activeCaptions&&this.listenerAttached&&this.clearListeners(this.meeting))}transcriptionsReducer(t,i){if(!t.length)return[i];let s=t[t.length-1];return s.peerId!==i.peerId?t.concat(i):s.id===i.id?(s.transcript=i.transcript,t.pop(),t.concat(c(s))):t.concat(i)}add(t){this.transcripts=this.transcriptionsReducer(this.transcripts,t)}remove(t){this.transcripts=this.transcripts.filter((i=>i.renderedId!==t))}handleDismiss(t){t.stopPropagation();const{id:s,renderedId:e}=t.detail,r=this.host.shadowRoot.querySelector(`[data-id="${s}"]`);null==r||r.classList.add("exit"),setTimeout((()=>{i((()=>{this.remove(e)}))}),400)}renderTranscripts(){const t=[];return this.transcripts.forEach((i=>{const s={name:i.name,date:i.date,peerId:i.peerId,transcript:i.transcript,id:i.id,renderedId:i.id};if(!t.length)return i.renderedId=s.renderedId,void t.push(s);const e=t[t.length-1];if(e.transcript.length+s.transcript.length>400||e.peerId!==i.peerId)return i.renderedId=s.renderedId,void t.push(s);e.transcript+=" "+i.transcript,i.renderedId=e.renderedId})),t.splice(0,t.length-2),null==t?void 0:t.map((t=>s("rtk-transcript",{key:t.id,"data-id":t.id,transcript:t,onRtkTranscriptDismiss:t=>this.handleDismiss(t),t:this.t})))}render(){if(this.states.activeCaptions)return s(e,null,this.renderTranscripts())}get host(){return r(this)}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"]}}};h([o()],d.prototype,"meeting",void 0),h([o()],d.prototype,"states",void 0),h([o()],d.prototype,"t",void 0),d.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:absolute;top:var(--rtk-space-4, 16px);right:var(--rtk-space-4, 16px);bottom:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);top:auto;display:flex;flex-direction:column;pointer-events:none;justify-content:center;width:100%;z-index:5}rtk-transcript{margin-top:var(--rtk-space-2, 8px)}";export{d as rtk_transcripts}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as i,H as s}from"./p-0ee570cd.js";import{a as o,c as a}from"./p-ee167b96.js";import{S as r}from"./p-2aa242f4.js";var n=function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};const c=class{constructor(i){t(this,i),this.stateUpdate=e(this,"rtkStateUpdate",7),this.variant="button",this.iconPack=o,this.t=a()}toggleSettings(){const t={activeSettings:!0,activeMoreMenu:!1};this.states=Object.assign(Object.assign({},this.states),t),this.stateUpdate.emit(t)}render(){const t=this.t("settings");return i(s,{key:"11653f887305c7ba74c0e62197b0b8502f64bb22",title:t},i("rtk-controlbar-button",{key:"4e4985182d0c63d2f9f8f2fc8173f2cd10edf91d",part:"controlbar-button",size:this.size,iconPack:this.iconPack,onClick:()=>this.toggleSettings(),icon:this.iconPack.settings,label:t,variant:this.variant}))}};n([r()],c.prototype,"states",void 0),n([r()],c.prototype,"size",void 0),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_settings_toggle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as r,H as i}from"./p-0ee570cd.js";import{a,c as o}from"./p-ee167b96.js";import{S as s}from"./p-2aa242f4.js";import{d as e}from"./p-cbdd7a99.js";var n=function(t,r,i,a){var o,s=arguments.length,e=s<3?r:null===a?a=Object.getOwnPropertyDescriptor(r,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)e=Reflect.decorate(t,r,i,a);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(e=(s<3?o(e):s>3?o(r,i,e):o(r,i))||e);return s>3&&e&&Object.defineProperty(r,i,e),e};const c=class{constructor(r){t(this,r),this.variant="rounded",this.iconPack=a,this.t=o(),this.page=1,this.pageCount=0,this.activeCount=0,this.activeComputedCount=0,this.showPagination=!1,this.onPageChanged=({currentPage:t,pageCount:r})=>{this.pageCount=r,this.page=t},this.toggleGridPagination=e((()=>{var t;const{self:r,participants:i}=this.meeting,{mobile:a,desktop:o}=null===(t=r.config)||void 0===t?void 0:t.maxVideoStreams,s="sm"===this.size?a:o,e=i.joined.toArray().filter((t=>"ON_STAGE"===t.stageStatus)).length;this.showPagination=!(e<s)}),50),this.onParticipantJoin=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onParticipantLeave=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.onStateStatusUpdate=e((()=>{this.pageCount=this.meeting.participants.pageCount,this.toggleGridPagination()}),50),this.prevPage=()=>{if(null==this.meeting)return;const{participants:t}=this.meeting;this.page>1?t.setPage(this.page-=1):"PAGINATED"===t.viewMode&&t.setViewMode("ACTIVE_GRID")},this.nextPage=()=>{if(null==this.meeting)return;const{participants:t}=this.meeting;this.page>0&&this.page<this.pageCount?t.setPage(this.page+=1):t.count>0&&0===this.pageCount&&t.setViewMode("PAGINATED")}}connectedCallback(){this.meetingChanged(this.meeting),this.sizeChanged()}disconnectedCallback(){if(null==this.meeting)return;const{participants:t,stage:r}=this.meeting;t.removeListener("pageChanged",this.onPageChanged),t.removeListener("viewModeChanged",this.onPageChanged),t.joined.removeListener("participantJoined",this.onParticipantJoin),t.joined.removeListener("participantLeft",this.onParticipantLeave),t.joined.removeListener("stageStatusUpdate",this.onStateStatusUpdate),r.removeListener("stageStatusUpdate",this.onStateStatusUpdate)}meetingChanged(t){if(null!=t){const{stage:r,participants:i}=t;this.page=i.currentPage,this.pageCount=i.pageCount,i.addListener("viewModeChanged",this.onPageChanged),i.addListener("pageChanged",this.onPageChanged),i.joined.addListener("participantJoined",this.onParticipantJoin),i.joined.addListener("participantLeft",this.onParticipantLeave),i.joined.addListener("stageStatusUpdate",this.onStateStatusUpdate),r.addListener("stageStatusUpdate",this.onStateStatusUpdate),this.activeCount=this.meeting.participants.joined.size,this.activeComputedCount=this.meeting.participants.joined.size,this.toggleGridPagination()}}sizeChanged(){this.toggleGridPagination()}render(){const{meta:t}=this.meeting;return"AUDIO_ROOM"!==(null==t?void 0:t.viewType)&&this.showPagination?r(i,null,r("rtk-button",{class:"prev",variant:"secondary",kind:"icon",disabled:0===this.pageCount,onClick:this.prevPage,"aria-label":this.t("page.prev")},r("rtk-icon",{icon:this.iconPack.chevron_left})),"grid"!==this.variant&&r("div",{class:"center"},r("span",{class:"page"},0===this.pageCount?r("rtk-tooltip",{label:this.t("layout.auto")},r("rtk-button",{kind:"icon",class:"auto"},r("rtk-icon",{icon:this.iconPack.wand}))):this.page),0!==this.pageCount&&[r("span",{class:"slash"},"/"),r("span",{class:"pages"},this.pageCount)]),"grid"===this.variant&&this.pageCount>0&&r("div",{class:"dots"},[...Array(this.pageCount)].map(((t,i)=>r("div",{key:`dot-${i}`,class:{dot:!0,active:i+1===this.page}})))),r("rtk-button",{class:"next",variant:"secondary",kind:"icon",disabled:0!==this.page&&this.page===this.pageCount,onClick:this.nextPage,"aria-label":this.t("page.next")},r("rtk-icon",{icon:this.iconPack.chevron_right,tabIndex:-1,"aria-hidden":!0}))):r(i,{"data-hidden":!0})}static get watchers(){return{meeting:["meetingChanged"],size:["sizeChanged"]}}};n([s()],c.prototype,"meeting",void 0),n([s()],c.prototype,"states",void 0),n([s()],c.prototype,"size",void 0),n([s()],c.prototype,"iconPack",void 0),n([s()],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:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;align-items:center;font-size:16px}:host([data-hidden]){display:none}:host([size='sm']){font-size:12px}:host([size='sm']) .center{margin-left:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-0, 0px)}:host([size='sm']) rtk-button{height:var(--rtk-space-7, 28px);width:var(--rtk-space-7, 28px)}:host([size='sm']) rtk-button rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px)}rtk-button{--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)}.center{margin-left:var(--rtk-space-2, 8px);margin-right:var(--rtk-space-2, 8px);color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.center .page{color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.center .slash{margin-left:var(--rtk-space-0\\.5, 2px);margin-right:var(--rtk-space-0\\.5, 2px)}.center .pages{align-self:flex-end;font-size:12px}:host([variant='rounded']){overflow:hidden;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button{border-radius:9999px;border-width:var(--rtk-border-width-none, 0);border-style:none;background-color:transparent;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64));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}:host([variant='rounded']) rtk-button:not([disabled]):hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='rounded']) rtk-button:not([disabled]):focus{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}:host([variant='grid']) rtk-button{position:absolute;top:50%;height:var(--rtk-space-20, 80px);width:var(--rtk-space-20, 80px);opacity:0.2;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms}:host([variant='grid']) rtk-button:hover{opacity:1}:host([variant='grid']) rtk-button{transform:translateY(-50%)}:host([variant='grid']) rtk-button.prev{left:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) rtk-button.next{right:var(--rtk-space-0, 0px);border-top-left-radius:9999px;border-bottom-left-radius:9999px}:host([variant='grid']) rtk-button.auto{left:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);border-top-right-radius:9999px;border-bottom-right-radius:9999px}:host([variant='grid']) .dots{position:absolute;left:50%;bottom:var(--rtk-space-3, 12px);display:flex;align-items:center;transform:translateX(-50%)}:host([variant='grid']) .dots .dot{margin-right:var(--rtk-space-2, 8px);height:var(--rtk-space-2, 8px);width:var(--rtk-space-2, 8px);cursor:pointer;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity))}:host([variant='grid']) .dots .dot:last-child{margin-right:var(--rtk-space-0, 0px)}:host([variant='grid']) .dots .dot.active{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity))}:host([variant='grid'][size='sm']) rtk-button{height:var(--rtk-space-14, 56px);width:var(--rtk-space-14, 56px);opacity:0.1}";export{c as rtk_grid_pagination}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const o=()=>{};export{o as g}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as a,H as s}from"./p-0ee570cd.js";import{a as e,c as r,j as o}from"./p-ee167b96.js";import{c as n}from"./p-b16cee89.js";import{S as l}from"./p-2aa242f4.js";var h=function(t,i,a,s){var e,r=arguments.length,o=r<3?i:null===s?s=Object.getOwnPropertyDescriptor(i,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,i,a,s);else for(var n=t.length-1;n>=0;n--)(e=t[n])&&(o=(r<3?e(o):r>3?e(i,a,o):e(i,a))||o);return r>3&&o&&Object.defineProperty(i,a,o),o};const c=class{constructor(a){t(this,a),this.stateUpdate=i(this,"rtkStateUpdate",7),this.unreadMessageCount=0,this.variant="button",this.iconPack=e,this.t=r(),this.chatActive=!1,this.canViewChat=!1,this.hasNewMessages=!1,this.onChatUpdate=({action:t,message:i})=>{var a;this.chatActive||"add"===t&&i.userId!==(null===(a=this.meeting)||void 0===a?void 0:a.self.userId)&&(this.hasNewMessages=!0,this.unreadMessageCount+=1)},this.toggleChat=()=>{const t=this.states;this.chatActive=!((null==t?void 0:t.activeSidebar)&&"chat"===(null==t?void 0:t.sidebar)),this.chatActive&&(this.unreadMessageCount=0,this.hasNewMessages=!1),this.stateUpdate.emit({activeSidebar:this.chatActive,sidebar:this.chatActive?"chat":void 0,activeMoreMenu:!1,activeAI:!1})},this.updateCanView=()=>{this.canViewChat=n(this.meeting)}}connectedCallback(){this.meetingChanged(this.meeting),this.statesChanged(this.states)}disconnectedCallback(){var t,i,a,s,e,r;null===(i=null===(t=this.meeting)||void 0===t?void 0:t.chat)||void 0===i||i.removeListener("chatUpdate",this.onChatUpdate),null===(s=null===(a=this.meeting)||void 0===a?void 0:a.stage)||void 0===s||s.removeListener("stageStatusUpdate",this.updateCanView),null===(r=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===r||r.permissions.removeListener("chatUpdate",this.updateCanView)}meetingChanged(t){var i,a,s,e,r,l,h;if(null==t)return;o(t)&&(null===(i=t.chat)||void 0===i||i.getMessages((new Date).getTime(),1,!0).then((t=>{var i;(null===(i=null==t?void 0:t.messages)||void 0===i?void 0:i.length)&&(this.hasNewMessages=!0)})));const c=null!==(s=null===(a=t.meta)||void 0===a?void 0:a.meetingStartedTimestamp.getTime())&&void 0!==s?s:0,d=null===(e=t.chat)||void 0===e?void 0:e.messages.filter((t=>t.timeMs>c));this.unreadMessageCount=d.length||0,null===(r=t.chat)||void 0===r||r.addListener("chatUpdate",this.onChatUpdate),this.canViewChat=n(t),null===(l=null==t?void 0:t.stage)||void 0===l||l.on("stageStatusUpdate",this.updateCanView),null===(h=null==t?void 0:t.self)||void 0===h||h.permissions.on("chatUpdate",this.updateCanView)}statesChanged(t){null!=t&&(this.chatActive=!0===t.activeSidebar&&"chat"===t.sidebar)}handleChatActiveChange(){this.chatActive||this.states.activeSidebar||this.buttonEl.focus()}render(){return this.canViewChat?a(s,{title:this.t("chat")},o(this.meeting)?this.hasNewMessages&&a("div",{class:"unread-count-dot",part:"unread-count-dot"}):0!==this.unreadMessageCount&&!this.chatActive&&a("div",{class:"unread-count",part:"unread-count"},a("span",null,this.unreadMessageCount<=100?this.unreadMessageCount:"99+")),a("rtk-controlbar-button",{ref:t=>this.buttonEl=t,part:"controlbar-button",size:this.size,iconPack:this.iconPack,class:{active:this.chatActive},onClick:this.toggleChat,icon:this.iconPack.chat,label:this.t("chat"),variant:this.variant})):a(s,{"data-hidden":!0})}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],chatActive:["handleChatActiveChange"]}}};h([l()],c.prototype,"meeting",void 0),h([l()],c.prototype,"states",void 0),h([l()],c.prototype,"size",void 0),h([l()],c.prototype,"iconPack",void 0),h([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{position:relative;display:block}:host([data-hidden]){display:none}.unread-count{position:absolute;right:var(--rtk-space-3, 12px);box-sizing:border-box;padding:var(--rtk-space-0\\.5, 2px);-webkit-user-select:none;-moz-user-select:none;user-select:none;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));font-size:12px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));display:flex;height:var(--rtk-space-5, 20px);min-width:var(--rtk-space-5, 20px);align-items:center;justify-content:center;border-radius:9999px;z-index:1}.unread-count-dot{position:absolute;right:var(--rtk-space-3, 12px);z-index:10;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));border-radius:50%;display:flex;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);align-items:center;justify-content:center}:host([variant='horizontal']) .unread-count{right:var(--rtk-space-4, 16px);top:50%;--tw-translate-y:-50%;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}";export{c as rtk_chat_toggle}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as e,h as r,H as o}from"./p-0ee570cd.js";import{a,c}from"./p-ee167b96.js";import{S as i}from"./p-2aa242f4.js";var s=function(t,e,r,o){var a,c=arguments.length,i=c<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(i=(c<3?a(i):c>3?a(e,r,i):a(e,r))||i);return c>3&&i&&Object.defineProperty(e,r,i),i};const n=class{constructor(r){t(this,r),this.onDropCallback=e(this,"dropCallback",7),this.iconPack=a,this.t=c(),this.dropzoneActivated=!1}connectedCallback(){if(!this.hostEl)throw new Error("hostEl prop is required");this.hostEl.addEventListener("dragover",(t=>{t.preventDefault(),this.dropzoneActivated=!0})),this.hostEl.addEventListener("dragleave",(()=>{this.dropzoneActivated=!1})),this.hostEl.addEventListener("drop",(t=>{t.preventDefault(),this.dropzoneActivated=!1,this.onDropCallback.emit(t)}))}render(){return r(o,{key:"197cf2a1b1deff5e45125b4e489d020d474a02dd"},r("div",{key:"84e88151d3080dc0bd9f44f22b401d605f7f286f",id:"dropzone",class:{active:this.dropzoneActivated},part:"dropzone"},r("rtk-icon",{key:"debea53f3376bb54bca692aed0450cf218f576d3",icon:this.iconPack.attach}),r("p",{key:"19b161b26bd4acc13447c47f5ee17b9645f91cc3"},this.t("chat.send_attachment"))))}};s([i()],n.prototype,"iconPack",void 0),s([i()],n.prototype,"t",void 0),n.style="#dropzone{position:absolute;top:var(--rtk-space-0, 0px);right:var(--rtk-space-0, 0px);bottom:var(--rtk-space-0, 0px);left:var(--rtk-space-0, 0px);z-index:10;display:none;flex-direction:column;align-items:center;justify-content:center;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}#dropzone.active{display:flex;animation:0.2s slide-up ease-in}";export{n as rtk_file_dropzone}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as e,H as s,a as n}from"./p-0ee570cd.js";import{d as h,l as o,u as a}from"./p-ee167b96.js";import{g as d,p as r,d as c}from"./p-6ededa68.js";import{g}from"./p-96be234f.js";import"./p-46923b34.js";import"./p-2c3cda13.js";const m=class{constructor(e){t(this,e),this.statesUpdate=i(this,"rtkStatesUpdate",7),this.config=h,this.showSetupScreen=!1,this.noRenderUntilMeeting=!1,this.handleResize=()=>{this.size=g(this.host.clientWidth)},this.loadTheme=()=>{var t;if(this.config===h){const{config:t}=d(this.meeting.self.config,this.meeting);this.config=t}(null===(t=this.config)||void 0===t?void 0:t.designTokens)&&r(document.documentElement,this.config.designTokens)},this.roomJoinedListener=()=>{this.updateStates({meeting:"joined"})},this.waitlistedListener=()=>{this.updateStates({meeting:"waiting"})},this.roomLeftListener=({state:t})=>{"disconnected"!==t&&"failed"!==t&&this.updateStates({meeting:"ended",roomLeftState:t})},this.mediaPermissionUpdateListener=({kind:t,message:i})=>{!["audio","video"].includes(t)||"DENIED"!==i&&"SYSTEM_DENIED"!==i||!0===o.states.activeDebugger||this.updateStates({activePermissionsMessage:{enabled:!0,kind:t}})},this.socketConnectionUpdateListener=({state:t})=>{"failed"===t&&setTimeout((()=>{this.meeting.leave("disconnected")}),1e4)}}listenState(t){this.updateStates(t.detail)}updateStates(t){const i=Object.assign({},o.states);o.states=c(i,t),this.statesUpdate.emit(o.states)}connectedCallback(){"undefined"!=typeof window&&(this.authErrorListener=t=>{t.detail.message.includes("401")&&this.updateStates({meeting:"ended",roomLeftState:"unauthorized"})},window.addEventListener("rtkError",this.authErrorListener)),this.onMeetingChange(this.meeting),this.onIconPackChange(this.iconPack),this.onTChange(this.t),this.onConfigChange(this.config),this.onSizeChange(this.size),this.resizeObserver=new ResizeObserver((()=>this.handleResize())),this.resizeObserver.observe(this.host)}disconnectedCallback(){this.resizeObserver.disconnect(),window.removeEventListener("rtkError",this.authErrorListener),this.meeting&&(this.meeting.self.removeListener("roomLeft",this.roomLeftListener),this.meeting.self.removeListener("roomJoined",this.roomJoinedListener),this.meeting.self.removeListener("waitlisted",this.waitlistedListener),this.meeting.self.removeListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),this.meeting.meta.removeListener("socketConnectionUpdate",this.socketConnectionUpdateListener))}onMeetingChange(t){a.state.meeting=t,t&&(this.updateStates({viewType:t.meta.viewType}),this.loadTheme(),t.self.addListener("roomJoined",this.roomJoinedListener),t.self.addListener("waitlisted",this.waitlistedListener),t.self.addListener("roomLeft",this.roomLeftListener),t.self.addListener("mediaPermissionUpdate",this.mediaPermissionUpdateListener),t.meta.addListener("socketConnectionUpdate",this.socketConnectionUpdateListener),t.connectedMeetings.supportsConnectedMeetings&&t.connectedMeetings.once("changingMeeting",this.handleChangingMeeting),t.self.roomJoined?this.updateStates({meeting:"joined"}):this.showSetupScreen?this.updateStates({meeting:"setup"}):t.joinRoom(),window.removeEventListener("rtkError",this.authErrorListener))}onIconPackChange(t){a.state.iconPack=t}onTChange(t){a.state.t=t}onConfigChange(t){a.state.config=t}onSizeChange(t){a.state.size=t}handleChangingMeeting(t){this.updateStates({activeBreakoutRoomsManager:Object.assign(Object.assign({},o.states.activeBreakoutRoomsManager),{destinationMeetingId:t})})}render(){return e(s,{key:"4c5b692de4bf1486e1c17ab6f9d61684705cfa95"},this.noRenderUntilMeeting&&!this.meeting?null:e("slot",null))}get host(){return n(this)}static get watchers(){return{meeting:["onMeetingChange"],iconPack:["onIconPackChange"],t:["onTChange"],config:["onConfigChange"],size:["onSizeChange"]}}};m.style="rtk-ui-provider{display:block;width:100%;height:100%}";export{m as rtk_ui_provider}
|