@cloudflare/realtimekit-ui 1.1.0-staging.1 → 1.1.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/dist/browser.js +1 -1
- package/dist/cjs/{TextMessage-7bb3e1fd.js → TextMessage-75b55b60.js} +1 -1
- package/dist/cjs/{chat-717e517d.js → chat-90670f84.js} +1 -16
- package/dist/cjs/{config-8c9ac89a.js → config-60d594e2.js} +2 -2
- package/dist/cjs/{debounce-a3e0d9e7.js → debounce-677e65cb.js} +1 -1
- package/dist/cjs/index-05554ce6.js +6 -22
- package/dist/cjs/{index-8d07e125.js → index-5442bdba.js} +1 -1
- package/dist/cjs/index.cjs.js +6 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{merge-73e2770b.js → merge-7ce7986a.js} +1 -1
- package/dist/cjs/{notification-567fe887.js → notification-b9d42aa0.js} +1 -1
- package/dist/cjs/realtimekit-ui.cjs.js +1 -1
- package/dist/cjs/rtk-ai-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ai-transcriptions.cjs.entry.js +3 -3
- package/dist/cjs/rtk-ai.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-grid.cjs.entry.js +3 -3
- package/dist/cjs/rtk-audio-tile.cjs.entry.js +2 -2
- package/dist/cjs/rtk-audio-visualizer_4.cjs.entry.js +3 -3
- package/dist/cjs/{rtk-avatar_24.cjs.entry.js → rtk-avatar_23.cjs.entry.js} +432 -599
- package/dist/cjs/rtk-breakout-room-manager_3.cjs.entry.js +6 -6
- package/dist/cjs/rtk-breakout-rooms-manager_9.cjs.entry.js +11 -11
- package/dist/cjs/rtk-breakout-rooms-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-selector_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-camera-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-caption-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-chat-composer-ui.cjs.entry.js +10 -24
- package/dist/cjs/rtk-chat-message.cjs.entry.js +4 -4
- package/dist/cjs/rtk-chat-messages-ui.cjs.entry.js +5 -5
- package/dist/cjs/rtk-chat-search-results.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-selector-ui.cjs.entry.js +3 -3
- package/dist/cjs/rtk-chat-toggle.cjs.entry.js +30 -25
- package/dist/cjs/rtk-clock.cjs.entry.js +5 -5
- package/dist/cjs/rtk-controlbar-button.cjs.entry.js +3 -3
- package/dist/cjs/rtk-controlbar.cjs.entry.js +3 -3
- package/dist/cjs/rtk-debugger-audio_4.cjs.entry.js +2 -2
- package/dist/cjs/rtk-debugger-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-dialog-manager.cjs.entry.js +2 -2
- package/dist/cjs/rtk-dialog.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ended-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-file-dropzone.cjs.entry.js +3 -3
- package/dist/cjs/rtk-file-message_3.cjs.entry.js +12 -12
- package/dist/cjs/rtk-fullscreen-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid-pagination.cjs.entry.js +2 -2
- package/dist/cjs/rtk-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-header.cjs.entry.js +3 -3
- package/dist/cjs/rtk-idle-screen.cjs.entry.js +3 -3
- package/dist/cjs/rtk-image-viewer.cjs.entry.js +3 -3
- package/dist/cjs/rtk-information-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/rtk-leave-button.cjs.entry.js +3 -3
- package/dist/cjs/rtk-livestream-indicator_3.cjs.entry.js +2 -2
- package/dist/cjs/rtk-livestream-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-logo.cjs.entry.js +2 -2
- package/dist/cjs/rtk-meeting-title.cjs.entry.js +2 -2
- package/dist/cjs/rtk-message-list-view.cjs.entry.js +6 -6
- package/dist/cjs/rtk-mic-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-mixed-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-more-toggle.cjs.entry.js +4 -4
- package/dist/cjs/rtk-mute-all-button.cjs.entry.js +2 -2
- package/dist/cjs/rtk-name-tag.cjs.entry.js +3 -3
- package/dist/cjs/rtk-network-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-notification.cjs.entry.js +6 -6
- package/dist/cjs/rtk-notifications.cjs.entry.js +8 -5
- package/dist/cjs/rtk-participant-count.cjs.entry.js +2 -2
- package/dist/cjs/rtk-participant-setup.cjs.entry.js +4 -4
- package/dist/cjs/rtk-participant_2.cjs.entry.js +17 -17
- package/dist/cjs/rtk-participants-audio.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants-stage-list_4.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-participants.cjs.entry.js +3 -3
- package/dist/cjs/rtk-pip-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-plugin-main_2.cjs.entry.js +3 -3
- package/dist/cjs/rtk-plugins-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-plugins_2.cjs.entry.js +6 -6
- package/dist/cjs/rtk-poll_2.cjs.entry.js +5 -5
- package/dist/cjs/rtk-polls-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-recording-indicator.cjs.entry.js +3 -3
- package/dist/cjs/rtk-recording-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screen-share-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-screenshare-view.cjs.entry.js +7 -7
- package/dist/cjs/rtk-settings-audio_2.cjs.entry.js +2 -2
- package/dist/cjs/rtk-settings-toggle.cjs.entry.js +3 -3
- package/dist/cjs/rtk-settings.cjs.entry.js +2 -2
- package/dist/cjs/rtk-setup-screen.cjs.entry.js +2 -2
- package/dist/cjs/rtk-sidebar-ui.cjs.entry.js +4 -4
- package/dist/cjs/rtk-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/rtk-simple-grid.cjs.entry.js +2 -2
- package/dist/cjs/rtk-spotlight-grid.cjs.entry.js +4 -4
- package/dist/cjs/rtk-spotlight-indicator.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage-toggle.cjs.entry.js +2 -2
- package/dist/cjs/rtk-stage.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcript.cjs.entry.js +3 -3
- package/dist/cjs/rtk-transcripts.cjs.entry.js +2 -2
- package/dist/cjs/rtk-ui-provider.cjs.entry.js +13 -3
- package/dist/cjs/rtk-waiting-screen.cjs.entry.js +3 -3
- package/dist/cjs/{sidebar-2ad915b1.js → sidebar-e172c4ae.js} +1 -1
- package/dist/cjs/{ui-store-1cb28da8.js → ui-store-594688bf.js} +12 -9
- package/dist/collection/collection-manifest.json +0 -5
- package/dist/collection/components/rtk-ai/rtk-ai.js +2 -2
- package/dist/collection/components/rtk-ai-toggle/rtk-ai-toggle.js +2 -2
- package/dist/collection/components/rtk-ai-transcriptions/rtk-ai-transcriptions.js +2 -2
- package/dist/collection/components/rtk-audio-grid/rtk-audio-grid.js +3 -3
- package/dist/collection/components/rtk-audio-tile/rtk-audio-tile.js +2 -2
- package/dist/collection/components/rtk-audio-visualizer/rtk-audio-visualizer.js +2 -2
- package/dist/collection/components/rtk-avatar/rtk-avatar.js +3 -3
- package/dist/collection/components/rtk-breakout-room-manager/rtk-breakout-room-manager.js +2 -2
- package/dist/collection/components/rtk-breakout-room-participants/rtk-breakout-room-participants.js +4 -4
- package/dist/collection/components/rtk-breakout-room-toggle/rtk-breakout-rooms-toggle.js +3 -3
- package/dist/collection/components/rtk-breakout-rooms-manager/rtk-breakout-rooms-manager.js +3 -3
- package/dist/collection/components/rtk-broadcast-message-modal/rtk-broadcast-message-modal.js +4 -4
- package/dist/collection/components/rtk-camera-selector/rtk-camera-selector.js +2 -2
- package/dist/collection/components/rtk-camera-toggle/rtk-camera-toggle.js +2 -2
- package/dist/collection/components/rtk-caption-toggle/rtk-caption-toggle.js +2 -2
- package/dist/collection/components/rtk-chat/rtk-chat.css +47 -45
- package/dist/collection/components/rtk-chat/rtk-chat.js +98 -158
- package/dist/collection/components/rtk-chat-composer-ui/rtk-chat-composer-ui.js +12 -48
- package/dist/collection/components/rtk-chat-composer-view/rtk-chat-composer-view.js +30 -17
- package/dist/collection/components/rtk-chat-message/rtk-chat-message.js +4 -4
- package/dist/collection/components/rtk-chat-messages-ui/rtk-chat-messages-ui.js +5 -5
- package/dist/collection/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.js +44 -87
- package/dist/collection/components/rtk-chat-search-results/rtk-chat-search-results.js +3 -3
- package/dist/collection/components/rtk-chat-selector-ui/rtk-chat-selector-ui.js +2 -2
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.css +1 -1
- package/dist/collection/components/rtk-chat-toggle/rtk-chat-toggle.js +29 -28
- package/dist/collection/components/rtk-clock/rtk-clock.js +4 -4
- package/dist/collection/components/rtk-confirmation-modal/rtk-confirmation-modal.js +3 -3
- package/dist/collection/components/rtk-controlbar/rtk-controlbar.js +3 -3
- package/dist/collection/components/rtk-controlbar-button/rtk-controlbar-button.js +2 -2
- package/dist/collection/components/rtk-counter/rtk-counter.js +4 -4
- package/dist/collection/components/rtk-debugger/rtk-debugger.js +2 -2
- package/dist/collection/components/rtk-debugger-audio/rtk-debugger-audio.js +2 -2
- package/dist/collection/components/rtk-debugger-screenshare/rtk-debugger-screenshare.js +2 -2
- package/dist/collection/components/rtk-debugger-system/rtk-debugger-system.js +2 -2
- package/dist/collection/components/rtk-debugger-toggle/rtk-debugger-toggle.js +3 -3
- package/dist/collection/components/rtk-debugger-video/rtk-debugger-video.js +2 -2
- package/dist/collection/components/rtk-dialog/rtk-dialog.js +2 -2
- package/dist/collection/components/rtk-dialog-manager/rtk-dialog-manager.js +2 -2
- package/dist/collection/components/rtk-draft-attachment-view/rtk-draft-attachment-view.js +3 -3
- package/dist/collection/components/rtk-emoji-picker/rtk-emoji-picker.js +3 -3
- package/dist/collection/components/rtk-emoji-picker-button/rtk-emoji-picker-button.js +3 -3
- package/dist/collection/components/rtk-ended-screen/rtk-ended-screen.js +2 -2
- package/dist/collection/components/rtk-file-dropzone/rtk-file-dropzone.js +3 -3
- package/dist/collection/components/rtk-file-message/rtk-file-message.js +4 -4
- package/dist/collection/components/rtk-file-message-view/rtk-file-message-view.js +2 -2
- package/dist/collection/components/rtk-file-picker-button/rtk-file-picker-button.js +4 -4
- package/dist/collection/components/rtk-fullscreen-toggle/rtk-fullscreen-toggle.js +2 -2
- package/dist/collection/components/rtk-grid/rtk-grid.js +2 -2
- package/dist/collection/components/rtk-grid-pagination/rtk-grid-pagination.js +2 -2
- package/dist/collection/components/rtk-header/rtk-header.js +3 -3
- package/dist/collection/components/rtk-icon/rtk-icon.js +1 -1
- package/dist/collection/components/rtk-idle-screen/rtk-idle-screen.js +3 -3
- package/dist/collection/components/rtk-image-message/rtk-image-message.js +6 -6
- package/dist/collection/components/rtk-image-message-view/rtk-image-message-view.js +5 -5
- package/dist/collection/components/rtk-image-viewer/rtk-image-viewer.js +3 -3
- package/dist/collection/components/rtk-information-tooltip/rtk-information-tooltip.js +2 -2
- package/dist/collection/components/rtk-join-stage/rtk-join-stage.js +3 -3
- package/dist/collection/components/rtk-leave-button/rtk-leave-button.js +3 -3
- package/dist/collection/components/rtk-leave-meeting/rtk-leave-meeting.js +4 -4
- package/dist/collection/components/rtk-livestream-indicator/rtk-livestream-indicator.js +2 -2
- package/dist/collection/components/rtk-livestream-player/rtk-livestream-player.js +2 -2
- package/dist/collection/components/rtk-livestream-toggle/rtk-livestream-toggle.js +2 -2
- package/dist/collection/components/rtk-logo/rtk-logo.js +1 -1
- package/dist/collection/components/rtk-markdown-view/rtk-markdown-view.js +1 -1
- package/dist/collection/components/rtk-meeting/rtk-meeting.js +39 -2
- package/dist/collection/components/rtk-meeting-title/rtk-meeting-title.js +2 -2
- package/dist/collection/components/rtk-menu/rtk-menu.js +4 -4
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.css +6 -1
- package/dist/collection/components/rtk-menu-item/rtk-menu-item.js +25 -3
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.css +15 -4
- package/dist/collection/components/rtk-menu-list/rtk-menu-list.js +25 -3
- package/dist/collection/components/rtk-message-list-view/rtk-message-list-view.js +4 -4
- package/dist/collection/components/rtk-message-view/rtk-message-view.css +30 -22
- package/dist/collection/components/rtk-message-view/rtk-message-view.js +73 -3
- package/dist/collection/components/rtk-mic-toggle/rtk-mic-toggle.js +2 -2
- package/dist/collection/components/rtk-microphone-selector/rtk-microphone-selector.js +2 -2
- package/dist/collection/components/rtk-mixed-grid/rtk-mixed-grid.js +2 -2
- package/dist/collection/components/rtk-more-toggle/rtk-more-toggle.js +4 -4
- package/dist/collection/components/rtk-mute-all-button/rtk-mute-all-button.js +2 -2
- package/dist/collection/components/rtk-mute-all-confirmation/rtk-mute-all-confirmation.js +3 -3
- package/dist/collection/components/rtk-name-tag/rtk-name-tag.js +3 -3
- package/dist/collection/components/rtk-network-indicator/rtk-network-indicator.js +2 -2
- package/dist/collection/components/rtk-notification/rtk-notification.js +4 -4
- package/dist/collection/components/rtk-notifications/rtk-notifications.js +6 -3
- package/dist/collection/components/rtk-overlay-modal/rtk-overlay-modal.js +3 -3
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.css +5 -5
- package/dist/collection/components/rtk-paginated-list/rtk-paginated-list.js +329 -266
- package/dist/collection/components/rtk-participant/rtk-participant.js +14 -14
- package/dist/collection/components/rtk-participant-count/rtk-participant-count.js +2 -2
- package/dist/collection/components/rtk-participant-setup/rtk-participant-setup.js +4 -4
- package/dist/collection/components/rtk-participant-tile/rtk-participant-tile.js +2 -2
- package/dist/collection/components/rtk-participants/rtk-participants.js +2 -2
- package/dist/collection/components/rtk-participants-audio/rtk-participants-audio.js +3 -3
- package/dist/collection/components/rtk-participants-stage-list/rtk-participants-stage-list.js +3 -3
- package/dist/collection/components/rtk-participants-stage-queue/rtk-participants-stage-queue.js +2 -2
- package/dist/collection/components/rtk-participants-toggle/rtk-participants-toggle.js +2 -2
- package/dist/collection/components/rtk-participants-viewer-list/rtk-participants-viewer-list.js +2 -2
- package/dist/collection/components/rtk-participants-waiting-list/rtk-participants-waiting-list.js +2 -2
- package/dist/collection/components/rtk-permissions-message/rtk-permissions-message.js +3 -3
- package/dist/collection/components/rtk-pip-toggle/rtk-pip-toggle.js +2 -2
- package/dist/collection/components/rtk-plugin-main/rtk-plugin-main.js +2 -2
- package/dist/collection/components/rtk-plugins/rtk-plugins.js +3 -3
- package/dist/collection/components/rtk-plugins-toggle/rtk-plugins-toggle.js +2 -2
- package/dist/collection/components/rtk-poll/rtk-poll.js +3 -3
- package/dist/collection/components/rtk-poll-form/rtk-poll-form.js +4 -4
- package/dist/collection/components/rtk-polls/rtk-polls.js +5 -5
- package/dist/collection/components/rtk-polls-toggle/rtk-polls-toggle.js +2 -2
- package/dist/collection/components/rtk-recording-indicator/rtk-recording-indicator.js +3 -3
- package/dist/collection/components/rtk-recording-toggle/rtk-recording-toggle.js +2 -2
- package/dist/collection/components/rtk-screen-share-toggle/rtk-screen-share-toggle.js +2 -2
- package/dist/collection/components/rtk-screenshare-view/rtk-screenshare-view.js +7 -7
- package/dist/collection/components/rtk-settings/rtk-settings.js +2 -2
- package/dist/collection/components/rtk-settings-audio/rtk-settings-audio.js +2 -2
- package/dist/collection/components/rtk-settings-toggle/rtk-settings-toggle.js +3 -3
- package/dist/collection/components/rtk-settings-video/rtk-settings-video.js +2 -2
- package/dist/collection/components/rtk-setup-screen/rtk-setup-screen.js +2 -2
- package/dist/collection/components/rtk-sidebar/rtk-sidebar.js +2 -2
- package/dist/collection/components/rtk-sidebar-ui/rtk-sidebar-ui.js +5 -5
- package/dist/collection/components/rtk-simple-grid/rtk-simple-grid.js +2 -2
- package/dist/collection/components/rtk-speaker-selector/rtk-speaker-selector.js +2 -2
- package/dist/collection/components/rtk-spinner/rtk-spinner.js +2 -2
- package/dist/collection/components/rtk-spotlight-grid/rtk-spotlight-grid.js +4 -4
- package/dist/collection/components/rtk-spotlight-indicator/rtk-spotlight-indicator.js +2 -2
- package/dist/collection/components/rtk-stage/rtk-stage.js +3 -3
- package/dist/collection/components/rtk-stage-toggle/rtk-stage-toggle.js +2 -2
- package/dist/collection/components/rtk-switch/rtk-switch.js +3 -3
- package/dist/collection/components/rtk-tab-bar/rtk-tab-bar.js +3 -3
- package/dist/collection/components/rtk-text-composer-view/rtk-text-composer-view.js +3 -3
- package/dist/collection/components/rtk-text-message/rtk-text-message.js +4 -4
- package/dist/collection/components/rtk-text-message-view/rtk-text-message-view.js +1 -1
- package/dist/collection/components/rtk-tooltip/rtk-tooltip.js +1 -1
- package/dist/collection/components/rtk-transcript/rtk-transcript.js +2 -2
- package/dist/collection/components/rtk-transcripts/rtk-transcripts.js +1 -1
- package/dist/collection/components/rtk-ui-provider/rtk-ui-provider.js +39 -3
- package/dist/collection/components/rtk-viewer-count/rtk-viewer-count.js +2 -2
- package/dist/collection/components/rtk-virtualized-list/rtk-virtualized-participant-list.js +2 -2
- package/dist/collection/components/rtk-waiting-screen/rtk-waiting-screen.js +3 -3
- package/dist/collection/exports.js +2 -1
- package/dist/collection/lib/icons/default-icon-pack.js +0 -2
- package/dist/collection/lib/lang/default-language.js +1 -4
- package/dist/collection/lib/overrides.js +6 -0
- package/dist/collection/utils/chat.js +0 -4
- package/dist/collection/utils/flags.js +0 -2
- package/dist/collection/utils/sync-with-store/ui-store.js +4 -1
- package/dist/components/index.js +7 -7
- package/dist/components/{p-8d25843a.js → p-0899c09f.js} +3 -3
- package/dist/components/{p-0a35a909.js → p-19d83dd6.js} +4 -4
- package/dist/components/{p-6f340109.js → p-1c5cc842.js} +1 -1
- package/dist/components/{p-5c92df32.js → p-1c678eab.js} +6 -6
- package/dist/components/{p-dbfc9151.js → p-1e9999d7.js} +4 -4
- package/dist/components/{p-65cd2fe3.js → p-1ea0d406.js} +5 -5
- package/dist/components/{p-6c2cfa0d.js → p-206acdcd.js} +5 -5
- package/dist/components/{p-fd68a52b.js → p-21becaf3.js} +9 -9
- package/dist/components/{p-4d582a90.js → p-23d37f65.js} +6 -6
- package/dist/components/{p-3da4880c.js → p-24481cb4.js} +5 -5
- package/dist/components/{p-d3de8b85.js → p-2ec120cd.js} +4 -4
- package/dist/components/{p-20290b0b.js → p-3245ace2.js} +5 -5
- package/dist/components/p-33db910f.js +409 -0
- package/dist/components/{p-188bfe87.js → p-34654ffc.js} +9 -9
- package/dist/components/{p-d107e9f4.js → p-410cef02.js} +4 -4
- package/dist/components/{p-afe77b50.js → p-4c82be72.js} +3 -3
- package/dist/components/{p-b011763d.js → p-5194f4d6.js} +4 -4
- package/dist/components/{p-f7430e46.js → p-51ef5a21.js} +6 -6
- package/dist/components/{p-0b4e526c.js → p-52e95364.js} +4 -4
- package/dist/components/{p-10ef077c.js → p-541e6de7.js} +3 -3
- package/dist/components/{p-aae4c250.js → p-56134994.js} +1 -1
- package/dist/components/{p-395d7140.js → p-565c8389.js} +5 -5
- package/dist/components/{p-33a87325.js → p-5791a91d.js} +3 -3
- package/dist/components/{p-fa8f6b4a.js → p-63c79efa.js} +1 -1
- package/dist/components/{p-121e073d.js → p-63e06c50.js} +2 -2
- package/dist/components/{p-b34865c7.js → p-63e51be4.js} +5 -5
- package/dist/components/{p-2f82e0b0.js → p-645b761e.js} +8 -8
- package/dist/components/{p-914563e7.js → p-6614c9e7.js} +6 -6
- package/dist/components/{p-9e87b2c9.js → p-66ba4031.js} +2 -2
- package/dist/components/{p-488d88a8.js → p-66d10db2.js} +5 -5
- package/dist/components/{p-5f26bba3.js → p-6e10fc42.js} +2 -2
- package/dist/components/{p-0d7bf41b.js → p-71f12515.js} +4 -4
- package/dist/components/{p-3b29dda1.js → p-73baf5ba.js} +1 -1
- package/dist/components/{p-a6f2b402.js → p-770c0fd7.js} +38 -60
- package/dist/components/{p-e675729a.js → p-777aa628.js} +5 -5
- package/dist/components/{p-78b61cce.js → p-7a424d82.js} +1 -1
- package/dist/components/{p-2e282643.js → p-7c84212d.js} +6 -6
- package/dist/components/{p-a6296b02.js → p-7e6ca4af.js} +7 -4
- package/dist/components/{p-b882f4a1.js → p-7f790526.js} +5 -5
- package/dist/components/{p-88bef213.js → p-8222af8c.js} +2 -2
- package/dist/components/{p-0d582365.js → p-8e285a44.js} +2 -2
- package/dist/components/{p-c078ae06.js → p-901c2375.js} +3 -3
- package/dist/components/{p-cf503999.js → p-91bc86f4.js} +5 -5
- package/dist/components/{p-e81fc1e8.js → p-93947678.js} +3 -3
- package/dist/components/{p-7481511c.js → p-93db20a6.js} +3 -3
- package/dist/components/{p-f8f5cb31.js → p-951a67af.js} +4 -4
- package/dist/components/{p-f47894a6.js → p-97d1dcb7.js} +22 -28
- package/dist/components/{p-47c25f64.js → p-9c3c75a9.js} +1 -1
- package/dist/components/{p-a94b2e67.js → p-a6aea524.js} +2 -2
- package/dist/components/{p-51de7af3.js → p-a72d3d19.js} +1 -1
- package/dist/components/{p-ee98bbaf.js → p-a89ee2d2.js} +13 -13
- package/dist/components/{p-a4a5ff5a.js → p-a99b0889.js} +6 -6
- package/dist/components/{p-2f08d7eb.js → p-ac80e7fc.js} +99 -183
- package/dist/components/{p-dab9d3d6.js → p-addb4be5.js} +1 -12
- package/dist/components/{p-d06d1eac.js → p-aeba1c02.js} +3 -3
- package/dist/components/{p-55501201.js → p-b2904963.js} +5 -5
- package/dist/components/{p-bb8f2597.js → p-b37f2227.js} +7 -7
- package/dist/components/{p-c515acba.js → p-b4a37662.js} +3 -3
- package/dist/components/{p-244cbe7b.js → p-b65d1760.js} +2 -2
- package/dist/components/{p-563c785d.js → p-b69a05ad.js} +3 -3
- package/dist/components/{p-82f8c924.js → p-b92c53c7.js} +3 -3
- package/dist/components/{p-a29c01fc.js → p-bbffc0e1.js} +3 -3
- package/dist/components/{p-e6710b76.js → p-c0942317.js} +4 -4
- package/dist/components/{p-84e5b453.js → p-c402a1db.js} +2 -2
- package/dist/components/{p-190db142.js → p-c643c410.js} +8 -8
- package/dist/components/{p-a10b9faa.js → p-c66a52b7.js} +3 -3
- package/dist/components/{p-102b6df8.js → p-caaca684.js} +2 -2
- package/dist/components/{p-c3621e10.js → p-cd8f62c9.js} +7 -7
- package/dist/components/{p-f4e75ea9.js → p-cec4d080.js} +5 -5
- package/dist/components/{p-fe911889.js → p-d3414935.js} +20 -11
- package/dist/components/{p-7fc0dc2f.js → p-dc9dde66.js} +12 -10
- package/dist/components/{p-e8df7ac5.js → p-e09955f3.js} +19 -19
- package/dist/components/{p-6f272732.js → p-e583a838.js} +9 -9
- package/dist/components/{p-618864a0.js → p-e60aa036.js} +3 -3
- package/dist/components/{p-2d08ab28.js → p-efbfe5a0.js} +4 -4
- package/dist/components/{p-abe1dbe6.js → p-f247cacc.js} +4 -4
- package/dist/components/{p-63ef7ea4.js → p-f5101af9.js} +7 -7
- package/dist/components/{p-f7eb9c47.js → p-f5a3ee43.js} +6 -6
- package/dist/components/{p-e4a080a5.js → p-f7a8a2d8.js} +4 -4
- package/dist/components/{p-9889bee5.js → p-f8a13473.js} +5 -5
- package/dist/components/{p-6756b222.js → p-f95c314b.js} +3 -3
- package/dist/components/{p-080acf18.js → p-fe648db5.js} +7 -4
- package/dist/components/rtk-ai-toggle.js +5 -5
- package/dist/components/rtk-ai-transcriptions.js +1 -1
- package/dist/components/rtk-ai.js +4 -4
- package/dist/components/rtk-audio-grid.js +3 -3
- package/dist/components/rtk-audio-tile.js +6 -6
- package/dist/components/rtk-audio-visualizer.js +1 -1
- package/dist/components/rtk-avatar.js +1 -1
- package/dist/components/rtk-breakout-room-manager.js +1 -1
- package/dist/components/rtk-breakout-room-participants.js +1 -1
- package/dist/components/rtk-breakout-rooms-manager.js +1 -1
- package/dist/components/rtk-breakout-rooms-toggle.js +5 -5
- package/dist/components/rtk-broadcast-message-modal.js +1 -1
- package/dist/components/rtk-camera-selector.js +1 -1
- package/dist/components/rtk-camera-toggle.js +6 -6
- package/dist/components/rtk-caption-toggle.js +5 -5
- package/dist/components/rtk-chat-composer-ui.js +15 -32
- package/dist/components/rtk-chat-composer-view.js +1 -1
- package/dist/components/rtk-chat-message.js +1 -1
- package/dist/components/rtk-chat-messages-ui-paginated.js +1 -1
- package/dist/components/rtk-chat-messages-ui.js +17 -17
- package/dist/components/rtk-chat-search-results.js +14 -14
- package/dist/components/rtk-chat-selector-ui.js +4 -4
- package/dist/components/rtk-chat-toggle.js +34 -30
- package/dist/components/rtk-chat.js +1 -1
- package/dist/components/rtk-clock.js +6 -6
- package/dist/components/rtk-confirmation-modal.js +1 -1
- package/dist/components/rtk-controlbar-button.js +1 -1
- package/dist/components/rtk-controlbar.js +3 -3
- package/dist/components/rtk-counter.js +1 -1
- package/dist/components/rtk-debugger-audio.js +1 -1
- package/dist/components/rtk-debugger-screenshare.js +1 -1
- package/dist/components/rtk-debugger-system.js +1 -1
- package/dist/components/rtk-debugger-toggle.js +6 -6
- package/dist/components/rtk-debugger-video.js +1 -1
- package/dist/components/rtk-debugger.js +1 -1
- package/dist/components/rtk-dialog-manager.js +23 -23
- package/dist/components/rtk-dialog.js +1 -1
- package/dist/components/rtk-draft-attachment-view.js +1 -1
- package/dist/components/rtk-emoji-picker-button.js +1 -1
- package/dist/components/rtk-emoji-picker.js +1 -1
- package/dist/components/rtk-ended-screen.js +4 -4
- package/dist/components/rtk-file-dropzone.js +4 -4
- package/dist/components/rtk-file-message-view.js +1 -1
- package/dist/components/rtk-file-message.js +1 -1
- package/dist/components/rtk-file-picker-button.js +1 -1
- package/dist/components/rtk-fullscreen-toggle.js +1 -1
- package/dist/components/rtk-grid-pagination.js +4 -4
- package/dist/components/rtk-grid.js +9 -9
- package/dist/components/rtk-header.js +3 -3
- package/dist/components/rtk-icon.js +1 -1
- package/dist/components/rtk-idle-screen.js +6 -6
- package/dist/components/rtk-image-message-view.js +1 -1
- package/dist/components/rtk-image-message.js +1 -1
- package/dist/components/rtk-image-viewer.js +4 -4
- package/dist/components/rtk-information-tooltip.js +4 -4
- package/dist/components/rtk-join-stage.js +1 -1
- package/dist/components/rtk-leave-button.js +6 -6
- package/dist/components/rtk-leave-meeting.js +1 -1
- package/dist/components/rtk-livestream-indicator.js +1 -1
- package/dist/components/rtk-livestream-player.js +1 -1
- package/dist/components/rtk-livestream-toggle.js +5 -5
- package/dist/components/rtk-logo.js +1 -1
- package/dist/components/rtk-markdown-view.js +1 -1
- package/dist/components/rtk-meeting-title.js +3 -3
- package/dist/components/rtk-meeting.js +42 -36
- package/dist/components/rtk-menu-item.js +1 -1
- package/dist/components/rtk-menu-list.js +1 -1
- package/dist/components/rtk-menu.js +1 -1
- package/dist/components/rtk-message-list-view.js +7 -7
- package/dist/components/rtk-message-view.js +1 -1
- package/dist/components/rtk-mic-toggle.js +6 -6
- package/dist/components/rtk-microphone-selector.js +1 -1
- package/dist/components/rtk-mixed-grid.js +7 -7
- package/dist/components/rtk-more-toggle.js +7 -7
- package/dist/components/rtk-mute-all-button.js +6 -6
- package/dist/components/rtk-mute-all-confirmation.js +1 -1
- package/dist/components/rtk-name-tag.js +1 -1
- package/dist/components/rtk-network-indicator.js +3 -3
- package/dist/components/rtk-notification.js +1 -1
- package/dist/components/rtk-notifications.js +10 -7
- package/dist/components/rtk-overlay-modal.js +1 -1
- package/dist/components/rtk-paginated-list.js +1 -1
- package/dist/components/rtk-participant-count.js +3 -3
- package/dist/components/rtk-participant-setup.js +4 -4
- package/dist/components/rtk-participant-tile.js +1 -1
- package/dist/components/rtk-participant.js +1 -1
- package/dist/components/rtk-participants-audio.js +5 -5
- package/dist/components/rtk-participants-stage-list.js +1 -1
- package/dist/components/rtk-participants-stage-queue.js +1 -1
- package/dist/components/rtk-participants-toggle.js +6 -6
- package/dist/components/rtk-participants-viewer-list.js +1 -1
- package/dist/components/rtk-participants-waiting-list.js +1 -1
- package/dist/components/rtk-participants.js +15 -15
- package/dist/components/rtk-permissions-message.js +1 -1
- package/dist/components/rtk-pip-toggle.js +5 -5
- package/dist/components/rtk-plugin-main.js +1 -1
- package/dist/components/rtk-plugins-toggle.js +6 -6
- package/dist/components/rtk-plugins.js +1 -1
- package/dist/components/rtk-poll-form.js +1 -1
- package/dist/components/rtk-poll.js +1 -1
- package/dist/components/rtk-polls-toggle.js +6 -6
- package/dist/components/rtk-polls.js +1 -1
- package/dist/components/rtk-recording-indicator.js +4 -4
- package/dist/components/rtk-recording-toggle.js +5 -5
- package/dist/components/rtk-screen-share-toggle.js +6 -6
- package/dist/components/rtk-screenshare-view.js +9 -9
- package/dist/components/rtk-settings-audio.js +1 -1
- package/dist/components/rtk-settings-toggle.js +6 -6
- package/dist/components/rtk-settings-video.js +1 -1
- package/dist/components/rtk-settings.js +11 -11
- package/dist/components/rtk-setup-screen.js +7 -7
- package/dist/components/rtk-sidebar-ui.js +1 -1
- package/dist/components/rtk-sidebar.js +10 -10
- package/dist/components/rtk-simple-grid.js +2 -2
- package/dist/components/rtk-speaker-selector.js +1 -1
- package/dist/components/rtk-spinner.js +1 -1
- package/dist/components/rtk-spotlight-grid.js +4 -4
- package/dist/components/rtk-spotlight-indicator.js +1 -1
- package/dist/components/rtk-stage-toggle.js +6 -6
- package/dist/components/rtk-stage.js +3 -3
- package/dist/components/rtk-switch.js +1 -1
- package/dist/components/rtk-tab-bar.js +1 -1
- package/dist/components/rtk-text-composer-view.js +1 -1
- package/dist/components/rtk-text-message-view.js +1 -1
- package/dist/components/rtk-text-message.js +1 -1
- package/dist/components/rtk-tooltip.js +1 -1
- package/dist/components/rtk-transcript.js +1 -1
- package/dist/components/rtk-transcripts.js +3 -3
- package/dist/components/rtk-ui-provider.js +17 -5
- package/dist/components/rtk-viewer-count.js +1 -1
- package/dist/components/rtk-virtualized-participant-list.js +1 -1
- package/dist/components/rtk-waiting-screen.js +4 -4
- package/dist/docs/docs-components.json +1429 -12236
- package/dist/docs/docs-vscode.json +42 -94
- package/dist/esm/{TextMessage-ca92045e.js → TextMessage-0aed30b2.js} +1 -1
- package/dist/esm/{chat-ff185374.js → chat-a170fc58.js} +2 -13
- package/dist/esm/{config-e684aa4d.js → config-cea9cd37.js} +2 -2
- package/dist/esm/{debounce-3ea4df36.js → debounce-b7ba967e.js} +1 -1
- package/dist/esm/index-c1fb98bb.js +6 -22
- package/dist/esm/{index-e65afca5.js → index-d08145ca.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/loader.js +1369 -1971
- package/dist/esm/{merge-7ffc04b3.js → merge-88832ad1.js} +1 -1
- package/dist/esm/{notification-78afaabf.js → notification-6fa40b68.js} +1 -1
- package/dist/esm/realtimekit-ui.js +1 -1
- package/dist/esm/rtk-ai-toggle.entry.js +2 -2
- package/dist/esm/rtk-ai-transcriptions.entry.js +3 -3
- package/dist/esm/rtk-ai.entry.js +2 -2
- package/dist/esm/rtk-audio-grid.entry.js +3 -3
- package/dist/esm/rtk-audio-tile.entry.js +2 -2
- package/dist/esm/rtk-audio-visualizer_4.entry.js +3 -3
- package/dist/esm/{rtk-avatar_24.entry.js → rtk-avatar_23.entry.js} +433 -599
- package/dist/esm/rtk-breakout-room-manager_3.entry.js +6 -6
- package/dist/esm/rtk-breakout-rooms-manager_9.entry.js +11 -11
- package/dist/esm/rtk-breakout-rooms-toggle.entry.js +2 -2
- package/dist/esm/rtk-camera-selector_2.entry.js +2 -2
- package/dist/esm/rtk-camera-toggle.entry.js +2 -2
- package/dist/esm/rtk-caption-toggle.entry.js +2 -2
- package/dist/esm/rtk-chat-composer-ui.entry.js +10 -24
- package/dist/esm/rtk-chat-message.entry.js +4 -4
- package/dist/esm/rtk-chat-messages-ui.entry.js +5 -5
- package/dist/esm/rtk-chat-search-results.entry.js +3 -3
- package/dist/esm/rtk-chat-selector-ui.entry.js +3 -3
- package/dist/esm/rtk-chat-toggle.entry.js +30 -25
- package/dist/esm/rtk-clock.entry.js +5 -5
- package/dist/esm/rtk-controlbar-button.entry.js +3 -3
- package/dist/esm/rtk-controlbar.entry.js +3 -3
- package/dist/esm/rtk-debugger-audio_4.entry.js +2 -2
- package/dist/esm/rtk-debugger-toggle.entry.js +3 -3
- package/dist/esm/rtk-dialog-manager.entry.js +2 -2
- package/dist/esm/rtk-dialog.entry.js +2 -2
- package/dist/esm/rtk-ended-screen.entry.js +2 -2
- package/dist/esm/rtk-file-dropzone.entry.js +3 -3
- package/dist/esm/rtk-file-message_3.entry.js +12 -12
- package/dist/esm/rtk-fullscreen-toggle.entry.js +2 -2
- package/dist/esm/rtk-grid-pagination.entry.js +2 -2
- package/dist/esm/rtk-grid.entry.js +2 -2
- package/dist/esm/rtk-header.entry.js +3 -3
- package/dist/esm/rtk-idle-screen.entry.js +3 -3
- package/dist/esm/rtk-image-viewer.entry.js +3 -3
- package/dist/esm/rtk-information-tooltip.entry.js +3 -3
- package/dist/esm/rtk-leave-button.entry.js +3 -3
- package/dist/esm/rtk-livestream-indicator_3.entry.js +2 -2
- package/dist/esm/rtk-livestream-toggle.entry.js +2 -2
- package/dist/esm/rtk-logo.entry.js +2 -2
- package/dist/esm/rtk-meeting-title.entry.js +2 -2
- package/dist/esm/rtk-message-list-view.entry.js +6 -6
- package/dist/esm/rtk-mic-toggle.entry.js +2 -2
- package/dist/esm/rtk-mixed-grid.entry.js +2 -2
- package/dist/esm/rtk-more-toggle.entry.js +4 -4
- package/dist/esm/rtk-mute-all-button.entry.js +2 -2
- package/dist/esm/rtk-name-tag.entry.js +3 -3
- package/dist/esm/rtk-network-indicator.entry.js +2 -2
- package/dist/esm/rtk-notification.entry.js +6 -6
- package/dist/esm/rtk-notifications.entry.js +8 -5
- package/dist/esm/rtk-participant-count.entry.js +2 -2
- package/dist/esm/rtk-participant-setup.entry.js +4 -4
- package/dist/esm/rtk-participant_2.entry.js +17 -17
- package/dist/esm/rtk-participants-audio.entry.js +3 -3
- package/dist/esm/rtk-participants-stage-list_4.entry.js +3 -3
- package/dist/esm/rtk-participants-toggle.entry.js +3 -3
- package/dist/esm/rtk-participants.entry.js +3 -3
- package/dist/esm/rtk-pip-toggle.entry.js +2 -2
- package/dist/esm/rtk-plugin-main_2.entry.js +3 -3
- package/dist/esm/rtk-plugins-toggle.entry.js +3 -3
- package/dist/esm/rtk-plugins_2.entry.js +6 -6
- package/dist/esm/rtk-poll_2.entry.js +5 -5
- package/dist/esm/rtk-polls-toggle.entry.js +3 -3
- package/dist/esm/rtk-recording-indicator.entry.js +3 -3
- package/dist/esm/rtk-recording-toggle.entry.js +2 -2
- package/dist/esm/rtk-screen-share-toggle.entry.js +2 -2
- package/dist/esm/rtk-screenshare-view.entry.js +7 -7
- package/dist/esm/rtk-settings-audio_2.entry.js +2 -2
- package/dist/esm/rtk-settings-toggle.entry.js +3 -3
- package/dist/esm/rtk-settings.entry.js +2 -2
- package/dist/esm/rtk-setup-screen.entry.js +2 -2
- package/dist/esm/rtk-sidebar-ui.entry.js +4 -4
- package/dist/esm/rtk-sidebar.entry.js +3 -3
- package/dist/esm/rtk-simple-grid.entry.js +2 -2
- package/dist/esm/rtk-spotlight-grid.entry.js +4 -4
- package/dist/esm/rtk-spotlight-indicator.entry.js +2 -2
- package/dist/esm/rtk-stage-toggle.entry.js +2 -2
- package/dist/esm/rtk-stage.entry.js +3 -3
- package/dist/esm/rtk-transcript.entry.js +3 -3
- package/dist/esm/rtk-transcripts.entry.js +2 -2
- package/dist/esm/rtk-ui-provider.entry.js +13 -3
- package/dist/esm/rtk-waiting-screen.entry.js +3 -3
- package/dist/esm/{sidebar-030fff49.js → sidebar-dd9a38aa.js} +1 -1
- package/dist/esm/{ui-store-9e486e1b.js → ui-store-5a66fa71.js} +12 -10
- package/dist/realtimekit-ui/index.esm.js +1 -1
- package/dist/realtimekit-ui/{p-a9dd63ef.entry.js → p-00fbc77d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-085b70ca.entry.js +1 -0
- package/dist/realtimekit-ui/{p-f5aa8af7.entry.js → p-0a6840aa.entry.js} +1 -1
- package/dist/realtimekit-ui/p-0a9761b4.entry.js +1 -0
- package/dist/realtimekit-ui/{p-9c1f42dd.entry.js → p-0d173282.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8f512d69.entry.js → p-0d6b6c0d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-91fd286c.js → p-0e513482.js} +1 -1
- package/dist/realtimekit-ui/{p-74e1b5a6.entry.js → p-136d3fe2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-61d3f74f.entry.js → p-186d21ad.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7786e9a7.entry.js → p-194ca93a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-e925ca8a.entry.js → p-1b6b75a7.entry.js} +1 -1
- package/dist/realtimekit-ui/p-1d9ba38f.entry.js +1 -0
- package/dist/realtimekit-ui/p-1dbbb8cb.entry.js +1 -0
- package/dist/realtimekit-ui/{p-c1b81873.entry.js → p-1e8a9290.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-80c856cd.js → p-1ff96b0f.js} +1 -1
- package/dist/realtimekit-ui/{p-31f58b98.entry.js → p-245c5d74.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ba51770e.entry.js → p-25a5687a.entry.js} +1 -1
- package/dist/realtimekit-ui/p-29c66766.entry.js +1 -0
- package/dist/realtimekit-ui/{p-77e04fb7.entry.js → p-2afa0984.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-62e0a141.entry.js → p-2be75f31.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-36c8dfa0.entry.js → p-2e996dd5.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3a325310.entry.js → p-3229431b.entry.js} +1 -1
- package/dist/realtimekit-ui/p-328d53bd.js +1 -0
- package/dist/realtimekit-ui/p-334f3f6d.entry.js +1 -0
- package/dist/realtimekit-ui/{p-2a0ec1c6.entry.js → p-38fb340d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6a45f305.js → p-3a14da51.js} +1 -1
- package/dist/realtimekit-ui/p-3a309e80.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d0384d90.entry.js → p-3c003b71.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-d7f16f24.entry.js → p-3cc15c7a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-8b189438.entry.js → p-3eb5a72d.entry.js} +1 -1
- package/dist/realtimekit-ui/p-423ff132.entry.js +1 -0
- package/dist/realtimekit-ui/p-55074d37.entry.js +1 -0
- package/dist/realtimekit-ui/{p-9ad2c746.entry.js → p-574fa8db.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-9cbf286a.entry.js → p-59ac307d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-5a2d8313.entry.js → p-5cd2b5e0.entry.js} +1 -1
- package/dist/realtimekit-ui/p-605e418e.entry.js +1 -0
- package/dist/realtimekit-ui/{p-882d07c9.entry.js → p-63c32e2d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-95f05e26.entry.js → p-6407dc7e.entry.js} +1 -1
- package/dist/realtimekit-ui/p-6560e903.entry.js +1 -0
- package/dist/realtimekit-ui/{p-de75d48d.entry.js → p-6acda400.entry.js} +1 -1
- package/dist/realtimekit-ui/p-6f8f175b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-61a16ccf.entry.js → p-731bcf94.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2b373e53.entry.js → p-740444e7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-6adb2de4.entry.js → p-75087c10.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-93b84c22.js → p-79731cb6.js} +1 -1
- package/dist/realtimekit-ui/{p-e7b83772.entry.js → p-7aa48099.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-11c964cf.entry.js → p-7c9ac5df.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-3369f405.entry.js → p-8000d8de.entry.js} +1 -1
- package/dist/realtimekit-ui/p-81beeff4.entry.js +1 -0
- package/dist/realtimekit-ui/p-872a05b0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-4eee77b0.entry.js → p-8bd79e77.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-b387e9a1.entry.js → p-904119a0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-12e4cb4a.js → p-91d15089.js} +1 -1
- package/dist/realtimekit-ui/p-91efc377.entry.js +1 -0
- package/dist/realtimekit-ui/{p-d9cad67f.entry.js → p-9b206390.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-0b8c47d9.entry.js → p-9b35d38b.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a1203856.entry.js → p-9b5c6928.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-ae7319ac.entry.js → p-9c7449a0.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-38aec474.entry.js → p-a37a936c.entry.js} +1 -1
- package/dist/realtimekit-ui/p-a417984b.entry.js +1 -0
- package/dist/realtimekit-ui/{p-643194e4.entry.js → p-a6bccc60.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-4eba1baa.entry.js → p-a71320ec.entry.js} +1 -1
- package/dist/realtimekit-ui/p-ab5b09f9.entry.js +1 -0
- package/dist/realtimekit-ui/p-ae9de69a.js +1 -0
- package/dist/realtimekit-ui/{p-3eefefa3.entry.js → p-aef75bbb.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7f76de48.entry.js → p-b89736c6.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a4e223e8.entry.js → p-bf87c56f.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c5c965b8.entry.js → p-c09f774c.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c638f666.entry.js → p-c0b75ca2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-f0f6c282.entry.js → p-c33b0b90.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-a9126c12.entry.js → p-c4fada74.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-98ee3341.entry.js → p-c77d9110.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7613857e.entry.js → p-cb72ae59.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-7b999408.entry.js → p-d543f03a.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-949b2b6a.entry.js → p-d6071b1d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-1666857d.entry.js → p-d644eed7.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-788f26c4.entry.js → p-d679ea25.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-91ea043c.js → p-d7b92a52.js} +1 -1
- package/dist/realtimekit-ui/p-d7c040f0.entry.js +1 -0
- package/dist/realtimekit-ui/{p-09869644.entry.js → p-d9117aa2.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-c7711712.entry.js → p-dfd41e7d.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-2fc5ef84.entry.js → p-e16f5890.entry.js} +1 -1
- package/dist/realtimekit-ui/p-e1f2d163.entry.js +1 -0
- package/dist/realtimekit-ui/p-e829a20f.entry.js +1 -0
- package/dist/realtimekit-ui/{p-3d0c4257.entry.js → p-f0054be9.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-61a53713.entry.js → p-f19fe2c3.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f39b89a3.entry.js +1 -0
- package/dist/realtimekit-ui/{p-a319e81f.entry.js → p-f4025c97.entry.js} +1 -1
- package/dist/realtimekit-ui/{p-54a31e02.entry.js → p-f6cd4525.entry.js} +1 -1
- package/dist/realtimekit-ui/p-f89bb70f.js +1 -0
- package/dist/realtimekit-ui/{p-385fddbd.entry.js → p-fa39a651.entry.js} +1 -1
- package/dist/realtimekit-ui/realtimekit-ui.esm.js +1 -1
- package/dist/types/components/rtk-chat/rtk-chat.d.ts +7 -15
- package/dist/types/components/rtk-chat-composer-ui/rtk-chat-composer-ui.d.ts +0 -4
- package/dist/types/components/rtk-chat-composer-view/rtk-chat-composer-view.d.ts +1 -0
- package/dist/types/components/rtk-chat-messages-ui-paginated/rtk-chat-messages-ui-paginated.d.ts +4 -12
- package/dist/types/components/rtk-chat-toggle/rtk-chat-toggle.d.ts +4 -6
- package/dist/types/components/rtk-meeting/rtk-meeting.d.ts +4 -0
- package/dist/types/components/rtk-menu-item/rtk-menu-item.d.ts +2 -0
- package/dist/types/components/rtk-menu-list/rtk-menu-list.d.ts +2 -0
- package/dist/types/components/rtk-message-view/rtk-message-view.d.ts +7 -0
- package/dist/types/components/rtk-paginated-list/rtk-paginated-list.d.ts +55 -54
- package/dist/types/components/rtk-sidebar-ui/rtk-sidebar-ui.d.ts +0 -2
- package/dist/types/components/rtk-ui-provider/rtk-ui-provider.d.ts +4 -1
- package/dist/types/components.d.ts +90 -467
- package/dist/types/exports.d.ts +2 -1
- package/dist/types/lib/icons/default-icon-pack.d.ts +0 -2
- package/dist/types/lib/lang/default-language.d.ts +1 -4
- package/dist/types/lib/overrides.d.ts +16 -0
- package/dist/types/types/props.d.ts +0 -4
- package/dist/types/utils/chat.d.ts +1 -3
- package/dist/types/utils/flags.d.ts +0 -2
- package/dist/types/utils/sync-with-store/ui-store.d.ts +4 -1
- package/package.json +1 -1
- package/dist/cjs/rtk-channel-creator.cjs.entry.js +0 -163
- package/dist/cjs/rtk-channel-details.cjs.entry.js +0 -49
- package/dist/cjs/rtk-channel-header.cjs.entry.js +0 -83
- package/dist/cjs/rtk-channel-selector-ui.cjs.entry.js +0 -147
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.css +0 -210
- package/dist/collection/components/rtk-channel-creator/rtk-channel-creator.js +0 -290
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.css +0 -93
- package/dist/collection/components/rtk-channel-details/rtk-channel-details.js +0 -149
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.css +0 -99
- package/dist/collection/components/rtk-channel-header/rtk-channel-header.js +0 -256
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.css +0 -330
- package/dist/collection/components/rtk-channel-selector-ui/rtk-channel-selector-ui.js +0 -286
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.css +0 -306
- package/dist/collection/components/rtk-channel-selector-view/rtk-channel-selector-view.js +0 -341
- package/dist/components/p-a9540d93.js +0 -357
- package/dist/components/p-adf73364.js +0 -85
- package/dist/components/p-d4e2ac64.js +0 -203
- package/dist/components/rtk-channel-creator.d.ts +0 -11
- package/dist/components/rtk-channel-creator.js +0 -214
- package/dist/components/rtk-channel-details.d.ts +0 -11
- package/dist/components/rtk-channel-details.js +0 -6
- package/dist/components/rtk-channel-header.d.ts +0 -11
- package/dist/components/rtk-channel-header.js +0 -151
- package/dist/components/rtk-channel-selector-ui.d.ts +0 -11
- package/dist/components/rtk-channel-selector-ui.js +0 -194
- package/dist/components/rtk-channel-selector-view.d.ts +0 -11
- package/dist/components/rtk-channel-selector-view.js +0 -6
- package/dist/esm/rtk-channel-creator.entry.js +0 -159
- package/dist/esm/rtk-channel-details.entry.js +0 -45
- package/dist/esm/rtk-channel-header.entry.js +0 -79
- package/dist/esm/rtk-channel-selector-ui.entry.js +0 -143
- package/dist/realtimekit-ui/p-0689d68b.entry.js +0 -1
- package/dist/realtimekit-ui/p-084b6f30.js +0 -1
- package/dist/realtimekit-ui/p-1bf58a84.entry.js +0 -1
- package/dist/realtimekit-ui/p-2f641bfa.entry.js +0 -1
- package/dist/realtimekit-ui/p-33228f0a.entry.js +0 -1
- package/dist/realtimekit-ui/p-38f4773b.entry.js +0 -1
- package/dist/realtimekit-ui/p-3e02ec0b.entry.js +0 -1
- package/dist/realtimekit-ui/p-481549ac.entry.js +0 -1
- package/dist/realtimekit-ui/p-50157a65.entry.js +0 -1
- package/dist/realtimekit-ui/p-50e861f9.entry.js +0 -1
- package/dist/realtimekit-ui/p-5383fe87.entry.js +0 -1
- package/dist/realtimekit-ui/p-53ac3d30.entry.js +0 -1
- package/dist/realtimekit-ui/p-57277553.entry.js +0 -1
- package/dist/realtimekit-ui/p-5dc40f1a.entry.js +0 -1
- package/dist/realtimekit-ui/p-60a29b69.entry.js +0 -1
- package/dist/realtimekit-ui/p-639ab9ad.entry.js +0 -1
- package/dist/realtimekit-ui/p-7a8ca3f2.entry.js +0 -1
- package/dist/realtimekit-ui/p-8b341608.entry.js +0 -1
- package/dist/realtimekit-ui/p-930f0255.entry.js +0 -1
- package/dist/realtimekit-ui/p-941f159e.entry.js +0 -1
- package/dist/realtimekit-ui/p-951a7b06.entry.js +0 -1
- package/dist/realtimekit-ui/p-aa70de39.entry.js +0 -1
- package/dist/realtimekit-ui/p-b564d931.entry.js +0 -1
- package/dist/realtimekit-ui/p-e62593a2.entry.js +0 -1
- package/dist/realtimekit-ui/p-e720b51e.js +0 -1
- package/dist/realtimekit-ui/p-e87928f7.js +0 -1
- package/dist/realtimekit-ui/p-f40a55e3.entry.js +0 -1
- package/dist/realtimekit-ui/p-f645b8bb.entry.js +0 -1
- package/dist/types/components/rtk-channel-creator/rtk-channel-creator.d.ts +0 -37
- package/dist/types/components/rtk-channel-details/rtk-channel-details.d.ts +0 -16
- package/dist/types/components/rtk-channel-header/rtk-channel-header.d.ts +0 -32
- package/dist/types/components/rtk-channel-selector-ui/rtk-channel-selector-ui.d.ts +0 -35
- package/dist/types/components/rtk-channel-selector-view/rtk-channel-selector-view.d.ts +0 -62
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host } from './index-c1fb98bb.js';
|
|
2
|
-
import { e as defaultIconPack, h as useLanguage } from './ui-store-9e486e1b.js';
|
|
3
|
-
import { S as SyncWithStore } from './index-e65afca5.js';
|
|
4
|
-
import { T as TextMessageView } from './TextMessage-ca92045e.js';
|
|
5
|
-
import './chat-ff185374.js';
|
|
6
|
-
|
|
7
|
-
const rtkChannelSelectorUiCss = ".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{display:flex}.container{display:flex;height:100%;width:var(--rtk-space-96, 384px);flex-direction:column;position:absolute;--tw-translate-x:calc(var(--rtk-space-96, 384px) * -1);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));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-top-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-sm, 1px);border-left-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-right-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-border-opacity));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}@keyframes fade{0%{opacity:0}100%{opacity:1}}.overlay-container{width:100vw;--tw-translate-x:var(--rtk-space-96, 384px);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));--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));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;animation:fade 0.8s}.overlay-container .sidebar-btn{position:static;padding:var(--rtk-space-4, 16px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity))}.sidebar-btn{position:absolute;right:calc(var(--rtk-space-9, 36px) * -1);top:var(--rtk-space-4, 16px);height:var(--rtk-space-8, 32px);width:var(--rtk-space-7, 28px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-sm, 4px)}@media (orientation: landscape) and (min-width: 400px){.container{position:static;--tw-translate-x:var(--rtk-space-0, 0px);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))}.sidebar-btn,.overlay-container{display:none}}.search-wrapper{display:flex;align-items:center;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-2, 8px);border-left-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-bottom-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-border-opacity))}.search{position:sticky;box-sizing:border-box;display:flex;align-items:center;border-radius:var(--rtk-border-radius-sm, 4px);margin-top:var(--rtk-space-0, 0px);margin-bottom:var(--rtk-space-0, 0px);height:var(--rtk-space-8, 32px);width:100%}.search .search-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);padding:var(--rtk-space-2, 8px);--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-600, 255 255 255 / 0.52));border-top-right-radius:var(--rtk-border-radius-sm, 4px);border-bottom-right-radius:var(--rtk-border-radius-sm, 4px)}.search input{box-sizing:border-box;width:100%;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-2, 8px);--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));border-width:var(--rtk-border-width-none, 0);border-style:none;outline:2px solid transparent;outline-offset:2px;font-size:14px;line-height:1.25rem}.search input::-moz-placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input::placeholder{color:rgb(var(--rtk-colors-text-800, 255 255 255 / 0.76))}.search input{border-top-left-radius:var(--rtk-border-radius-sm, 4px);border-bottom-left-radius:var(--rtk-border-radius-sm, 4px)}.channel-container{box-sizing:border-box;display:flex;flex-direction:column;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);overflow-y:scroll}.channel-container .channel{display:flex;align-items:center;justify-content:space-between;gap:var(--rtk-space-2, 8px);padding:var(--rtk-space-0, 0px);border-left-width:var(--rtk-border-width-none, 0);border-right-width:var(--rtk-border-width-none, 0);border-bottom-width:var(--rtk-border-width-sm, 1px);border-top-width:var(--rtk-border-width-none, 0);border-style:solid;--tw-border-opacity:1;border-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-border-opacity))}.channel-container .channel:hover{cursor:pointer;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.channel-container .channel:hover .latest-msg-time,.channel-container .channel:hover .latest-msg,.channel-container .channel:hover .latest-msg.new{color:rgb(var(--rtk-colors-text-on-brand-700, var(--rtk-colors-text-700, 255 255 255 / 0.64)))}.channel-container .channel-display{display:flex;gap:var(--rtk-space-2, 8px);align-self:center;padding-left:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-0, 0px)}.channel-container .channel-display rtk-avatar{height:var(--rtk-space-9, 36px);width:var(--rtk-space-9, 36px);flex-shrink:0;font-size:12px}.channel-container .channel-display rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);flex-shrink:0;padding:var(--rtk-space-2, 8px);border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-500, 33 96 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.channel-container .channel-card{width:100%;padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-2, 8px);padding-left:var(--rtk-space-1, 4px)}.channel-container .channel-card .channel-name{max-width:var(--rtk-space-60, 240px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500}.channel-container .channel-card .latest-msg{margin:var(--rtk-space-0, 0px);max-width:var(--rtk-space-56, 224px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.channel-container .channel-card .latest-msg.new{font-weight:200;font-style:italic;color:rgb(var(--rtk-colors-text-700, 255 255 255 / 0.64))}.channel-container .channel-card .latest-msg-time{font-size:12px;color:rgb(var(--rtk-colors-text-900, 255 255 255 / 0.88))}.channel-container .channel-meta{width:var(--rtk-space-12, 48px);display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:var(--rtk-space-1\\.5, 6px);font-size:12px;font-weight:600}.channel-container .new-msgs-count{height:var(--rtk-space-4, 16px);min-width:var(--rtk-space-4, 16px);padding-top:1px;padding-bottom:1px;padding-left:2px;padding-right:2px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-success, 98 165 4) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));border-radius:var(--rtk-border-radius-sm, 4px);text-align:center;font-size:12px}.channel-container .selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-900, var(--rtk-colors-text-900, 255 255 255 / 0.88)))}.channel-container .selected .latest-msg-time,.channel-container .selected .latest-msg,.channel-container .selected .latest-msg.new{color:rgb(var(--rtk-colors-text-on-brand-700, var(--rtk-colors-text-700, 255 255 255 / 0.64)))}.channel-container .highlight .channel-title span{font-weight:700}.latest-msg p{margin:var(--rtk-space-0, 0px);margin-right:var(--rtk-space-1, 4px);display:inline-block}.latest-msg blockquote{display:none}.recent-message-row{margin-bottom:var(--rtk-space-2, 8px);display:flex;width:100%;flex-direction:row;justify-content:space-between}";
|
|
8
|
-
const RtkChannelSelectorUiStyle0 = rtkChannelSelectorUiCss;
|
|
9
|
-
|
|
10
|
-
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
11
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
12
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
13
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
14
|
-
else
|
|
15
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
16
|
-
if (d = decorators[i])
|
|
17
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
18
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
19
|
-
};
|
|
20
|
-
const RtkChannelSelectorUi = class {
|
|
21
|
-
constructor(hostRef) {
|
|
22
|
-
registerInstance(this, hostRef);
|
|
23
|
-
this.channelChanged = createEvent(this, "channelChanged", 7);
|
|
24
|
-
/** Icon pack */
|
|
25
|
-
this.iconPack = defaultIconPack;
|
|
26
|
-
/** Language */
|
|
27
|
-
this.t = useLanguage();
|
|
28
|
-
/** show recent message in channel */
|
|
29
|
-
this.showRecentMessage = false;
|
|
30
|
-
this.isHidden = false;
|
|
31
|
-
this.searchQuery = '';
|
|
32
|
-
this.handleResize = (e) => {
|
|
33
|
-
this.isHidden = !e.matches;
|
|
34
|
-
};
|
|
35
|
-
this.channelSelected = (channelId) => {
|
|
36
|
-
this.channelChanged.emit(channelId);
|
|
37
|
-
this.onRevealClicked();
|
|
38
|
-
};
|
|
39
|
-
this.onSearchInput = (e) => {
|
|
40
|
-
this.searchQuery = e.target.value;
|
|
41
|
-
};
|
|
42
|
-
this.onRevealClicked = () => {
|
|
43
|
-
if (this.matchMedia.matches)
|
|
44
|
-
return;
|
|
45
|
-
this.isHidden = !this.isHidden;
|
|
46
|
-
};
|
|
47
|
-
this.renderChannelDisplayPic = (channel) => {
|
|
48
|
-
const hasDisplayPic = channel.displayPictureUrl && channel.displayPictureUrl.length !== 0;
|
|
49
|
-
if (channel.isDirectMessage || hasDisplayPic) {
|
|
50
|
-
return (h("div", { class: "channel-display" }, h("rtk-avatar", { participant: {
|
|
51
|
-
name: channel.displayName,
|
|
52
|
-
picture: channel.displayPictureUrl,
|
|
53
|
-
} })));
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return (h("div", { class: "channel-display" }, h("rtk-icon", { icon: this.iconPack.people, slot: "start" })));
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
this.renderRecentMessage = (channel) => {
|
|
60
|
-
if (!channel.latestMessage)
|
|
61
|
-
return h("p", { class: "latest-msg new" }, this.t('chat.start_conversation'));
|
|
62
|
-
let senderFragment = channel.isDirectMessage ? '' : `${channel.latestMessage.displayName}: `;
|
|
63
|
-
if (channel.latestMessage.type === 'text') {
|
|
64
|
-
return (h("p", { class: "latest-msg" }, senderFragment, h(TextMessageView, { message: channel.latestMessage.message })));
|
|
65
|
-
}
|
|
66
|
-
// non text
|
|
67
|
-
let messageFragment = '';
|
|
68
|
-
if (channel.latestMessage.type === 'image') {
|
|
69
|
-
messageFragment = this.t('image');
|
|
70
|
-
}
|
|
71
|
-
else if (channel.latestMessage.type === 'file') {
|
|
72
|
-
messageFragment = this.t('file');
|
|
73
|
-
}
|
|
74
|
-
return h("p", { class: "latest-msg" }, `${senderFragment}${messageFragment}`);
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
connectedCallback() {
|
|
78
|
-
this.matchMedia = window.matchMedia(`(orientation: landscape) and (min-width: 400px)`);
|
|
79
|
-
this.matchMedia.addEventListener('change', this.handleResize);
|
|
80
|
-
this.isHidden = !this.matchMedia.matches;
|
|
81
|
-
}
|
|
82
|
-
disconnectedCallback() {
|
|
83
|
-
this.matchMedia.removeEventListener('change', this.handleResize);
|
|
84
|
-
}
|
|
85
|
-
componentDidRender() {
|
|
86
|
-
this.$el.style.transform = this.isHidden ? 'translateX(-380px)' : 'translateX(0)';
|
|
87
|
-
}
|
|
88
|
-
getTimeLabel(message) {
|
|
89
|
-
const messageDate = message.time;
|
|
90
|
-
const today = new Date();
|
|
91
|
-
const yesterday = new Date(today);
|
|
92
|
-
yesterday.setDate(today.getDate() - 1);
|
|
93
|
-
const firstDayOfWeek = new Date(today);
|
|
94
|
-
firstDayOfWeek.setDate(today.getDate() - today.getDay() - 1);
|
|
95
|
-
if (messageDate.toDateString() === today.toDateString()) {
|
|
96
|
-
return messageDate.toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });
|
|
97
|
-
}
|
|
98
|
-
else if (messageDate.toDateString() === yesterday.toDateString()) {
|
|
99
|
-
return this.t('date.yesteday');
|
|
100
|
-
}
|
|
101
|
-
else if (messageDate > firstDayOfWeek) {
|
|
102
|
-
const weekdays = [
|
|
103
|
-
'date.sunday',
|
|
104
|
-
'date.monday',
|
|
105
|
-
'date.tuesday',
|
|
106
|
-
'date.wednesday',
|
|
107
|
-
'date.thursday',
|
|
108
|
-
'date.friday',
|
|
109
|
-
'date.saturday',
|
|
110
|
-
];
|
|
111
|
-
return this.t(weekdays[messageDate.getDay()]);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
return Intl.DateTimeFormat([], {
|
|
115
|
-
day: '2-digit',
|
|
116
|
-
month: '2-digit',
|
|
117
|
-
year: '2-digit',
|
|
118
|
-
}).format(messageDate);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
render() {
|
|
122
|
-
return (h(Host, { key: 'd4565e4906338b20c51ca9559f9aabcf6a54382a' }, h("div", { key: '3e196d8746296f4d8f118c5218b9c1c9818fd7c3', class: "container", ref: (el) => (this.$el = el) }, this.isHidden && (h("rtk-button", { key: 'a771768f868b0e1281281ff8dc721f8a3cb2c201', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: 'b6e75a2486cef93ad99e9e173258256ab048198b', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))), h("slot", { key: 'fd02665a1f80a946e9f6c2b642b80edc6f978a65', name: "header" }), h("div", { key: 'd24ad0988ef95f0ddabb8ff1c33f3740f8af4f76', class: "search-wrapper" }, h("div", { key: '1bb2aec77e2d1d6500709566a0bd1d9a8246ecc8', class: "search" }, h("input", { key: '10a989ac0e55bd37f67359e9ca14ea9e79edeb88', type: "search", autocomplete: "off", placeholder: this.t('chat.search_conversations'), onInput: this.onSearchInput }), h("rtk-icon", { key: 'ffaeb2e88ffc571a6271fafd9b9ef1c7f105803b', icon: this.iconPack.search, class: "search-icon" }))), h("div", { key: '9612379eb95b5d4fae3a4fa6db05660bfc92b6e8', class: "channel-container scrollbar", role: "list" }, this.channels
|
|
123
|
-
.filter((channel) => this.searchQuery === '' || channel.displayName.includes(this.searchQuery))
|
|
124
|
-
.map((channel) => {
|
|
125
|
-
return (h("div", { class: {
|
|
126
|
-
channel: true,
|
|
127
|
-
selected: channel.id === this.selectedChannelId,
|
|
128
|
-
highlight: !!channel.unreadCount,
|
|
129
|
-
}, role: "listitem", onClick: () => {
|
|
130
|
-
this.channelSelected(channel.id);
|
|
131
|
-
} }, this.renderChannelDisplayPic(channel), h("div", { class: "channel-card", "is-direct-message": channel.isDirectMessage }, h("div", { class: 'recent-message-row' }, h("span", { class: "channel-name" }, channel.displayName), channel.latestMessage && (h("span", { class: "latest-msg-time" }, this.getTimeLabel(channel.latestMessage)))), h("div", { class: 'recent-message-row' }, this.renderRecentMessage(channel), channel.unreadCount > 0 && channel.id !== this.selectedChannelId ? (h("span", { class: "new-msgs-count" }, channel.unreadCount < 99 ? channel.unreadCount : '99+')) : null))));
|
|
132
|
-
}))), !this.isHidden && (h("div", { key: '84b18823c07fc0dba89b8e11fb36044d36c4e9d3', class: "overlay-container" }, h("rtk-button", { key: '7aecee5541f731e264a5f12d10e7f7b07ce647ef', kind: "icon", variant: "ghost", size: "md", onClick: this.onRevealClicked, class: "sidebar-btn" }, h("rtk-icon", { key: '924fa966910f056fbe0e7ee57de122fcb7d6311c', icon: this.isHidden ? this.iconPack.chevron_left : this.iconPack.dismiss }))))));
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
__decorate([
|
|
136
|
-
SyncWithStore()
|
|
137
|
-
], RtkChannelSelectorUi.prototype, "iconPack", void 0);
|
|
138
|
-
__decorate([
|
|
139
|
-
SyncWithStore()
|
|
140
|
-
], RtkChannelSelectorUi.prototype, "t", void 0);
|
|
141
|
-
RtkChannelSelectorUi.style = RtkChannelSelectorUiStyle0;
|
|
142
|
-
|
|
143
|
-
export { RtkChannelSelectorUi as rtk_channel_selector_ui };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as i,H as s,a as e}from"./p-0ee570cd.js";import{c as a,e as r,h}from"./p-e87928f7.js";import{d as n}from"./p-b13ddb7d.js";import{R as d}from"./p-c8eaa707.js";import{S as o}from"./p-80c856cd.js";var l=function(t,i,s,e){var a,r=arguments.length,h=r<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,i,s,e);else for(var n=t.length-1;n>=0;n--)(a=t[n])&&(h=(r<3?a(h):r>3?a(i,s,h):a(i,s))||h);return r>3&&h&&Object.defineProperty(i,s,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=a(),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,s,e,a;null!=t&&(null!=(null===(i=t.meta)||void 0===i?void 0:i.selfActiveTab)&&this.onActiveTabUpdate(null===(s=t.meta.selfActiveTab)||void 0===s?void 0:s.type,null===(e=t.meta.selfActiveTab)||void 0===e?void 0:e.id),this.activeTabUpdateListener=t=>{this.onActiveTabUpdate(null==t?void 0:t.type,null==t?void 0:t.id)},null===(a=t.meta)||void 0===a||a.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 s;this.activeTab=t,i&&(null===(s=this.meeting.meta)||void 0===s||s.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 s=this.screenShareParticipants.find((t=>t.id===i));null!=s&&this.setActiveTab({type:"screenshare",participant:s},!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,e;if(!this.meeting)return null;const a={meeting:this.meeting,config:this.config,states:this.states,size:this.size,iconPack:this.iconPack,t:this.t};return i(s,null,i("main",{id:"main-view",part:"main-view"},(null===(t=this.getTabs())||void 0===t?void 0:t.length)>1&&i("rtk-tab-bar",Object.assign({activeTab:this.activeTab,tabs:this.getTabs(),onTabChange:t=>this.setActiveTab(t.detail)},a)),i("div",{id:"tabs",key:"tabs"},this.screenShareParticipants.map((t=>{var s,e;return i(d,{element:"rtk-screenshare-view",defaults:a,props:{participant:t,key:t.id,style:{display:"screenshare"===(null===(s=this.activeTab)||void 0===s?void 0:s.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.participant.id)===t.id?"flex":"none"}},childProps:{participant:t,isScreenShare:!0},deepProps:!0})})),this.plugins.map((t=>{var s,e;return i("rtk-plugin-main",Object.assign({},a,{plugin:t,key:t.id,style:{display:"plugin"===(null===(s=this.activeTab)||void 0===s?void 0:s.type)&&(null===(e=this.activeTab)||void 0===e?void 0:e.plugin.id)===t.id?"flex":"none"}}))})))),i(d,{element:"rtk-mixed-grid",defaults:a,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===(e=this.meeting.meta)||void 0===e?void 0:e.viewType)?"md":"sm",layout:"row"},onlyChildren:!0}))}get host(){return e(this)}static get watchers(){return{meeting:["meetingChanged"],screenShareParticipants:["screenShareParticipantsChanged"],plugins:["pluginsChanged"]}}};l([o()],p.prototype,"meeting",void 0),l([o()],p.prototype,"states",void 0),l([o()],p.prototype,"config",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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{G as t}from"./p-e87928f7.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]+)_/,g=/^~([^~\s]+)~/,m=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.,~#?&//=]*)/,_=/<blockquote>[.\s\S]*<\/blockquote>\n\n/m;function b(t,n=!1){if(!_.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(_,"")}const q=2e3,I=["<a>","<b>","<i>","<q>","<s>"];function w(t){t=(t=t.split(" ").map((t=>{if(m.test(t)){const n=m.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(g.test(t)){const n=g.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,b as j,_ as k,n as p,l as r,v as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as o,h as t,H as r}from"./p-0ee570cd.js";import{S as e}from"./p-80c856cd.js";import{e as a}from"./p-e87928f7.js";const i=class{constructor(t){o(this,t),this.iconPack=a}render(){return t(r,{key:"182572b0e68a80a504b3aed40ae526ae371a9921"},t("div",{key:"c46d1aedd29c015e36c0496dd36ccd7d2afcd4ee",class:"tooltip-container"},t("rtk-icon",{key:"25465b17d5b97a102273621e6e942fb34f542d53",icon:this.iconPack.info,size:"sm"}),t("div",{key:"9f3e5eea9a21b1ff48e8a3e7e91e3f81e748af79",class:"tooltip"},t("slot",{key:"a0f42e3681ffddf9287ddacd111ea3fa64f77c01",name:"tootlip-text"}))))}};(function(o,t,r,e){var a,i=arguments.length,c=i<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,r):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(o,t,r,e);else for(var p=o.length-1;p>=0;p--)(a=o[p])&&(c=(i<3?a(c):i>3?a(t,r,c):a(t,r))||c);i>3&&c&&Object.defineProperty(t,r,c)})([e()],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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as a}from"./p-0ee570cd.js";import{e as s,h as i}from"./p-e87928f7.js";import{S as r}from"./p-80c856cd.js";var o=function(t,e,a,s){var i,r=arguments.length,o=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,a):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,a,s);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(r<3?i(o):r>3?i(e,a,o):i(e,a))||o);return r>3&&o&&Object.defineProperty(e,a,o),o};const c=class{constructor(a){t(this,a),this.iconPack=s,this.t=i(),this.pageSize=50,this.searchMessages=async(t,e,a)=>this.meeting.chat.searchMessages(this.query,{channelId:this.channelId,timestamp:t,size:e,reversed:a}),this.nodeRenderer=t=>t.map((t=>e("rtk-chat-message",{key:t.id,message:t,disableControls:!0})))}render(){return e(a,{key:"226b9e52950fca3d296b041dbd93a6c060ad4abe"},e("rtk-paginated-list",{key:"102af9de7e52317a5f9a8272e9e8a302f99268da",pageSize:this.pageSize,pagesAllowed:3,fetchData:this.searchMessages,createNodes:this.nodeRenderer,selectedItemId:this.query}))}};o([r()],c.prototype,"meeting",void 0),o([r()],c.prototype,"iconPack",void 0),o([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:flex;height:100%;flex-direction:column;position:relative;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity))}";export{c as rtk_chat_search_results}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,c as t,h as a,H as r}from"./p-0ee570cd.js";import{e as o,h as i}from"./p-e87928f7.js";import{S as s}from"./p-80c856cd.js";var c=function(e,t,a,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,a,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,a,s):o(t,a))||s);return i>3&&s&&Object.defineProperty(t,a,s),s};const n=class{constructor(a){e(this,a),this.onDropCallback=t(this,"dropCallback",7),this.iconPack=o,this.t=i(),this.dropzoneActivated=!1}connectedCallback(){if(!this.hostEl)throw new Error("hostEl prop is required");this.hostEl.addEventListener("dragover",(e=>{e.preventDefault(),this.dropzoneActivated=!0})),this.hostEl.addEventListener("dragleave",(()=>{this.dropzoneActivated=!1})),this.hostEl.addEventListener("drop",(e=>{e.preventDefault(),this.dropzoneActivated=!1,this.onDropCallback.emit(e)}))}render(){return a(r,{key:"d3fd9af2a148277b2481c94305104e43088a9b42"},a("div",{key:"f889ddc5635013ae7f364a6d36ef51936e179f7d",id:"dropzone",class:{active:this.dropzoneActivated},part:"dropzone"},a("rtk-icon",{key:"ceb747a5fba7aa40ef108d404a7b8b02e6ab25b9",icon:this.iconPack.attach}),a("p",{key:"711b8a1ace2d73714f9abdbaba8c031e204fe07e"},this.t("chat.send_attachment"))))}};c([s()],n.prototype,"iconPack",void 0),c([s()],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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r,c as t,w as a,f as e,h as i,H as s,a as o}from"./p-0ee570cd.js";import{h as n,e as c}from"./p-e87928f7.js";import{S as p}from"./p-80c856cd.js";var l=function(r,t,a,e){var i,s=arguments.length,o=s<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(r,t,a,e);else for(var n=r.length-1;n>=0;n--)(i=r[n])&&(o=(s<3?i(o):s>3?i(t,a,o):i(t,a))||o);return s>3&&o&&Object.defineProperty(t,a,o),o};const d=class{constructor(s){r(this,s),this.stateUpdate=t(this,"rtkStateUpdate",7),this.switchChannel=t(this,"switchChannel",7),this.t=n(),this.iconPack=c,this.channelName="",this.searchQuery="",this.step=1,this.loading=!1,this.selectedMemberIds=new Set,this.focusedMemberIndex=-1,this.showAllMembersList=!1,this.allMembers=new Map,this.inputTextRef=null,this.searchInputTextRef=null,this.focusOnSearch=(r=!1)=>{this.focusedMemberIndex=-1,a((()=>{var t,a;null===(t=this.searchInputTextRef)||void 0===t||t.focus(),r&&(null===(a=this.searchInputTextRef)||void 0===a||a.select())}))},this.onClickHandler=async()=>{if(0!==this.channelName.length){if(1===this.step){const r=this.meeting.participants.all.toArray(),t=this.meeting.self.userId;return r.filter((r=>r.userId!==t)).forEach((r=>this.allMembers.set(r.userId,r))),this.step=2,void this.focusOnSearch()}await this.createChannel()}},this.createChannel=async()=>{const r=Array.from(this.selectedMemberIds),t=await this.meeting.chat.createChannel(this.channelName,r,{displayPictureUrl:"",visibility:"public",isDirectMessage:!1});this.switchChannel.emit(t.id),this.stateUpdate.emit({activeChannelCreator:!1})},this.onMemberAdd=r=>{this.showAllMembersList=!1,this.selectedMemberIds.add(r),this.searchQuery="",this.focusOnSearch()},this.keyDownHandler=(r,t)=>{if("ArrowDown"===r.key)this.focusedMemberIndex=Math.min(this.focusedMemberIndex+1,t.length-1);else if("ArrowUp"===r.key){if(-1===this.focusedMemberIndex)return;if(0===this.focusedMemberIndex)return void this.focusOnSearch(!0);this.focusedMemberIndex=Math.max(this.focusedMemberIndex-1,0)}else if("Enter"===r.key)this.onMemberAdd(t[this.focusedMemberIndex].userId);else if("Backspace"===r.key){if(0!==this.searchQuery.length)return;if(0===this.selectedMemberIds.size)return;const r=Array.from(this.selectedMemberIds.values()).at(-1);this.selectedMemberIds.delete(r),e(this.$el)}},this.renderMemberSelector=()=>{const r=Array.from(this.allMembers.values()).filter((r=>!this.selectedMemberIds.has(r.userId)&&r.name.toLowerCase().includes(this.searchQuery.toLowerCase()))),t=Array.from(this.selectedMemberIds.values()).map((r=>this.allMembers.get(r))),s=this.selectedMemberIds.size===this.allMembers.size;return i("div",{class:"input-container"},i("ul",{class:"members scrollbar",onClick:()=>{var r;null===(r=this.searchInputTextRef)||void 0===r||r.focus()}},t.map((r=>i("li",{class:"pill"},i("rtk-avatar",{participant:{name:r.name,picture:r.picture},size:"sm"}),i("span",null,r.name),i("rtk-icon",{icon:this.iconPack.dismiss,onClick:()=>{this.selectedMemberIds.delete(r.userId),e(this.$el),this.focusOnSearch()}})))),!s&&i("input",{type:"text",ref:r=>this.searchInputTextRef=r,value:this.searchQuery,placeholder:0===this.selectedMemberIds.size?this.t("chat.member_name"):"",class:{"wide-input":0===this.selectedMemberIds.size},onInput:r=>{this.searchQuery=r.target.value.trim()},onClick:()=>{this.showAllMembersList=!this.showAllMembersList},onKeyDown:t=>this.keyDownHandler(t,r)})),(0!==this.searchQuery.length||this.showAllMembersList)&&i("ul",{class:"search-results"},r.map(((r,t)=>i("li",{class:{member:!0,selected:t===this.focusedMemberIndex},onClick:()=>this.onMemberAdd(r.userId),ref:r=>{t===this.focusedMemberIndex&&a((()=>{r&&r.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}))}},i("rtk-avatar",{participant:{name:r.name,picture:r.picture},size:"sm"}),i("span",null,r.name)))),0===r.length&&i("li",{class:"member"},i("span",null,this.t("chat.error.empty_results")))))}}componentDidLoad(){var r;null===(r=this.inputTextRef)||void 0===r||r.focus()}render(){return i(s,{key:"5d65768a72c0769857b7d817d0b555d50a5645a5"},i("header",{key:"f8826c58072d2ddb73ed61a1813bf62b85cb9bc8"},this.t(1===this.step?"chat.new_channel":"chat.add_members")),1===this.step&&i("input",{key:"2bad468b946a896cb28a6206d5650c1b0192f9f9",class:"channel-name-input",type:"text",placeholder:this.t("chat.channel_name"),ref:r=>this.inputTextRef=r,onInput:r=>{this.channelName=r.target.value.trim()}}),2===this.step&&this.renderMemberSelector(),i("footer",{key:"d23db51c427fa67f67cc11514e241d052eb376fe"},i("rtk-button",{key:"5031f53ed0dc632d3e778f0ecaefb0165b74d74d",kind:"button",size:"lg",disabled:0===this.channelName.length,onClick:this.onClickHandler},this.t(1===this.step?"chat.add_members":"create"))))}get $el(){return o(this)}};l([p()],d.prototype,"meeting",void 0),l([p()],d.prototype,"t",void 0),l([p()],d.prototype,"iconPack",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)))}:host{border-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity));display:flex;flex-direction:column;width:var(--rtk-space-96, 384px);padding-left:var(--rtk-space-9, 36px);padding-right:var(--rtk-space-9, 36px);padding-top:var(--rtk-space-10, 40px);padding-bottom:var(--rtk-space-10, 40px)}header{margin-bottom:var(--rtk-space-8, 32px);display:flex;align-items:center;gap:var(--rtk-space-2, 8px);font-size:24px;font-weight:600}.channel-name-input{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-3, 12px);font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:1.25;outline:2px solid transparent;outline-offset:2px}.channel-name-input:focus{outline-width:2px;outline-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}footer{margin-top:var(--rtk-space-5, 20px);display:flex;justify-content:flex-end}.member{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding:var(--rtk-space-2, 8px)}.member rtk-avatar{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);font-size:14px;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.input-container{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;line-height:1.25;outline:2px solid transparent;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5);border-radius:var(--rtk-border-radius-sm, 4px)}.input-container .members{margin:var(--rtk-space-0, 0px);max-height:var(--rtk-space-28, 112px);border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);list-style-type:none;display:flex;flex-wrap:wrap;gap:var(--rtk-space-1, 4px);cursor:text;font-size:16px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));overflow-y:auto;min-height:var(--rtk-space-7, 28px)}.input-container .pill{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);border-radius:var(--rtk-border-radius-sm, 4px);padding:var(--rtk-space-2, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity))}.input-container .pill rtk-avatar{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);font-size:14px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.input-container .pill span{max-width:var(--rtk-space-32, 128px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.input-container .pill rtk-icon{height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);cursor:pointer}.input-container input{width:var(--rtk-space-24, 96px);border-radius:var(--rtk-border-radius-sm, 4px);border-width:var(--rtk-border-width-none, 0);border-style:none;padding:var(--rtk-space-1, 4px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-1000, 255 255 255));outline:2px solid transparent;outline-offset:2px;font-size:16px;line-height:1.25rem}.input-container input.wide-input{width:100%}.search-results{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-1, 4px);max-height:var(--rtk-space-28, 112px);width:100%;padding:var(--rtk-space-0, 0px);position:absolute;list-style-type:none;overflow-y:auto;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-md, 8px);--tw-border-spacing-x:var(--rtk-space-2, 8px);--tw-border-spacing-y:var(--rtk-space-2, 8px);border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-style:solid;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.search-results .member{cursor:pointer}.search-results .member rtk-avatar{color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.search-results .member:hover,.search-results .member.selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-700, 2 70 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}";export{d as rtk_channel_creator}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as n,c as t,h as e,H as a}from"./p-0ee570cd.js";import{S as r}from"./p-80c856cd.js";import{e as o,h as i}from"./p-e87928f7.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=()=>{var n;this.sidebarClose.emit(),document.activeElement instanceof HTMLElement&&(null===(n=document.activeElement.tagName)||void 0===n?void 0:n.includes("RTK-"))&&document.activeElement.blur instanceof Function&&document.activeElement.blur()}}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:"bc9969254516bb334f0bbc6216432121d675a83e",ref:n=>this.hostEl=n,class:this.view},!this.hideCloseAction&&e("rtk-button",{key:"ce9dabf448e0914fa516c717825ee00ad476d412",ref:n=>this.closeButton=n,variant:"ghost",kind:"icon",class:"close",onClick:this.onClose,"aria-label":this.t("close")},e("rtk-icon",{key:"5966e4c6a7bbdea25fa64e197c47fcded0625754",icon:this.iconPack.dismiss})),t&&!this.hideHeader&&e("header",{key:"3b7109ba37e019a3da3a0aeb07b54fcf28e869b4",class:"main-header"},e("h3",{key:"c57a8719fe6dca4ed092fbb21733c0d0ac074dc3"},t.name),e("slot",{key:"f95589b898e0b4a8001d45d5b4c833576fab4fd8",name:"pinned-state"})),n&&e("header",{key:"72cd52ea2a27caf4dc826d4222738325853281c8",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:"266ec59a2d04803b2d035f7929394e66e92aa542",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}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,H as r}from"./p-0ee570cd.js";import{e as s,h as o}from"./p-e87928f7.js";import{S as i}from"./p-80c856cd.js";var n=function(t,e,a,r){var s,o=arguments.length,i=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,a,r);else for(var n=t.length-1;n>=0;n--)(s=t[n])&&(i=(o<3?s(i):o>3?s(e,a,i):s(e,a))||i);return o>3&&i&&Object.defineProperty(e,a,i),i};const c=class{constructor(a){t(this,a),this.stateUpdate=e(this,"rtkStateUpdate",7),this.iconPack=s,this.t=o()}render(){return a(r,{key:"a8869602eda342c0c2de8682ab0b68cf68b4883e"},a("slot",{key:"f2c477f44bed9ac574795d934db9f72920b73180"}))}};n([i()],c.prototype,"iconPack",void 0),n([i()],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;position:relative;overflow:hidden}";export{c as rtk_stage}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as a,H as s}from"./p-0ee570cd.js";import{e,h as o}from"./p-e87928f7.js";import{c as n}from"./p-12e4cb4a.js";import{S as r}from"./p-80c856cd.js";var h=function(t,i,a,s){var e,o=arguments.length,n=o<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 r=t.length-1;r>=0;r--)(e=t[r])&&(n=(o<3?e(n):o>3?e(i,a,n):e(i,a))||n);return o>3&&n&&Object.defineProperty(i,a,n),n};const l=class{constructor(a){t(this,a),this.stateUpdate=i(this,"rtkStateUpdate",7),this.unreadMessageCount=0,this.variant="button",this.iconPack=e,this.t=o(),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,o;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===(o=null===(e=this.meeting)||void 0===e?void 0:e.self)||void 0===o||o.permissions.removeListener("chatUpdate",this.updateCanView)}meetingChanged(t){var i,a,s,e,o,r,h;if(!t)return;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 l=null!==(s=null===(a=t.meta)||void 0===a?void 0:a.meetingStartedTimestamp.getTime())&&void 0!==s?s:0,c=null===(e=t.chat)||void 0===e?void 0:e.messages.filter((t=>t.timeMs>l));this.unreadMessageCount=c.length||0,null===(o=t.chat)||void 0===o||o.addListener("chatUpdate",this.onChatUpdate),this.canViewChat=n(t),null===(r=null==t?void 0:t.stage)||void 0===r||r.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.meeting?this.canViewChat?a(s,{title:this.t("chat")},this.hasNewMessages&&a("div",{class:"unread-count-dot",part:"unread-count-dot"}),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}):null}static get watchers(){return{meeting:["meetingChanged"],states:["statesChanged"],chatActive:["handleChatActiveChange"]}}};h([r()],l.prototype,"meeting",void 0),h([r()],l.prototype,"states",void 0),h([r()],l.prototype,"iconPack",void 0),h([r()],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{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%;transform:translateY(-50%)}";export{l as rtk_chat_toggle}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as e,h as a,H as t,c as i}from"./p-0ee570cd.js";import{C as s}from"./p-5b2d97fc.js";import{s as c,h as f}from"./p-6f211c3e.js";import{e as d,h as o}from"./p-e87928f7.js";import{g as r,a as n,d as b}from"./p-40be18ee.js";import{S as l}from"./p-80c856cd.js";import{T as h}from"./p-91ea043c.js";import"./p-382270d8.js";import"./p-084b6f30.js";var k=function(e,a,t,i){var s,c=arguments.length,f=c<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,a,t,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(f=(c<3?s(f):c>3?s(a,t,f):s(a,t))||f);return c>3&&f&&Object.defineProperty(a,t,f),f};const m=class{constructor(a){e(this,a),this.now=new Date,this.isContinued=!1,this.iconPack=d,this.t=o(),this.showBubble=!1}render(){const e=c(this.message.link);return a(t,{key:"915330674d273f2c45ece29cb5e7c9408ee5cbe8"},!this.isContinued&&a(s,{key:"eb2877f6224de9be1c975f0d2dc010f29fef3bc9",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"87d7f309379f23b76e404da2039cd2fd3fb7c95a",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"7683a17adf5784ef0e6af8f396c58c005a369f6b",class:"file"},a("div",{key:"3005eb72a09ba4d241ec919f957b95f26077ed13",class:"file-data"},a("div",{key:"ca5fc3700f868fd321793d4da672e9c7aad38056",class:"name"},this.message.name),a("div",{key:"463c37838eec7b9ee9b096803cb785445206041a",class:"file-data-split"},a("div",{key:"9470b898708fc78ca01c2926f8fb6a3c6fae6eea",class:"ext"},r(this.message.name)),a("span",{key:"35fa7f199b45bb6e64a72614ca1eceaafa6044e7",class:"divider"}),a("div",{key:"b19a9d32151bb1ddbbb7689dc6d8e09b021d0612",class:"size"},n(this.message.size)))),a("rtk-button",{key:"6bb6a3223801a944fb9018765385ebadeae15e0f",variant:"secondary",kind:"icon",onClick:()=>b(e,{name:this.message.name,fallbackName:"file"}),part:"button"},a("rtk-icon",{key:"9a7335c6720295a7f0b9073e35ac86014be53316",icon:this.iconPack.download})))))}};k([l()],m.prototype,"iconPack",void 0),k([l()],m.prototype,"t",void 0);var y=function(e,a,t,i){var s,c=arguments.length,f=c<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,a,t,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(f=(c<3?s(f):c>3?s(a,t,f):s(a,t))||f);return c>3&&f&&Object.defineProperty(a,t,f),f};const p=class{constructor(a){e(this,a),this.stateUpdate=i(this,"rtkStateUpdate",7),this.now=new Date,this.isContinued=!1,this.iconPack=d,this.t=o(),this.showBubble=!1,this.status="loading"}render(){return a(t,{key:"1267763841d7162f1ad4152a5c4cdd809aaa3808"},!this.isContinued&&a(s,{key:"9b415f65f456f8624cd4f981d7f8ae191772a3ce",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"38ea5e45140f543ae6d16d2d00b0bf0c9a671910",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"3c842144038f9612fc46c3f5d18f87342f8376c4",class:{image:!0,loaded:"loaded"===this.status}},a("img",{key:"39b2978696328d6ed6ac3bbbdc83a57fc7fa7d88",src:c(this.message.link),onLoad:()=>{this.status="loaded"},onError:()=>{this.status="errored"},onClick:()=>{"loaded"===this.status&&this.stateUpdate.emit({image:this.message})}}),"loading"===this.status&&a("div",{key:"d83ca52f9330ddef301be3d4a84b663f91864ea3",class:"image-spinner",title:this.t("chat.img.loading"),"aria-label":this.t("chat.img.loading")},a("rtk-spinner",{key:"6333ce5847ecd62793d5777a886a3a1a33641fab",iconPack:this.iconPack})),"errored"===this.status&&a("div",{key:"e4063e68ad477069d8acaa03d0dd1c692f82c76f",class:"image-errored",title:this.t("chat.error.img_not_found"),"aria-label":this.t("chat.error.img_not_found")},a("rtk-icon",{key:"010562aee164fdb63e45da4c0eaa29ad1cbdf66c",icon:this.iconPack.image_off})),"loaded"===this.status&&a("div",{key:"14773362280e9dd167db61e58b3f729e0a86d88d",class:"actions"},a("rtk-button",{key:"8e0cd659fd47074729fa3e63897e3e8eab3193a3",class:"action",variant:"secondary",kind:"icon",onClick:()=>{this.stateUpdate.emit({image:this.message})}},a("rtk-icon",{key:"9db76d4971f2b6b45d87b6015b7ef449fa46ba85",icon:this.iconPack.full_screen_maximize})),a("rtk-button",{key:"978934fd136ab2c364521ec55d25e578940e5c7c",class:"action",variant:"secondary",kind:"icon",onClick:()=>b(this.message.link,{fallbackName:"image"})},a("rtk-icon",{key:"55be50aff54309a76e5348f437805e2872bcf548",icon:this.iconPack.download}))))))}};y([l()],p.prototype,"iconPack",void 0),y([l()],p.prototype,"t",void 0),p.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}.image-spinner{cursor:wait}.image-errored{cursor:not-allowed}";var v=function(e,a,t,i){var s,c=arguments.length,f=c<3?a:null===i?i=Object.getOwnPropertyDescriptor(a,t):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)f=Reflect.decorate(e,a,t,i);else for(var d=e.length-1;d>=0;d--)(s=e[d])&&(f=(c<3?s(f):c>3?s(a,t,f):s(a,t))||f);return c>3&&f&&Object.defineProperty(a,t,f),f};const u=class{constructor(a){e(this,a),this.now=new Date,this.isContinued=!1,this.iconPack=d,this.t=o(),this.showBubble=!1}render(){return a(t,{key:"4182f98abea77690fb9159047ef66c9ca0dbefbf"},!this.isContinued&&a(s,{key:"1132b1b04efd80d172e172cfa2c6a8c0de3ff9aa",name:this.message.displayName,time:this.message.time,now:this.now}),a("div",{key:"01736d14164f0b10c50243f721f82914012a47a9",class:{body:!0,bubble:this.showBubble},part:"body"},a("div",{key:"fa971c508e884fc58c434d14a5e398e04f046168",class:{text:!0,emoji:f(this.message.message)}},a(h,{key:"2ffdf13b83faef9f39f8cd2825ec042a92c6e6a6",message:this.message.message}))))}};v([l()],u.prototype,"iconPack",void 0),v([l()],u.prototype,"t",void 0);export{m as rtk_file_message,p as rtk_image_message,u as rtk_text_message}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as a,H as i}from"./p-0ee570cd.js";import{e as s,h as o}from"./p-e87928f7.js";import{S as r}from"./p-80c856cd.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:"27ea1d3f7593e32d53b8160537e00147be6e2a2d",label:t},a("rtk-controlbar-button",{key:"f0952b09acd1f7cff04fd521252ecf75715e9a74",size:this.size,iconPack:this.iconPack,class:"leave red-icon",onClick:this.leave,icon:this.iconPack.call_end,label:t,variant:this.variant,part:"controlbar-button"}))}};n([r()],c.prototype,"iconPack",void 0),n([r()],c.prototype,"t",void 0),c.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{display:block}";export{c as rtk_leave_button}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as r,w as a,h as e,H as i}from"./p-0ee570cd.js";import{e as s,h as o,I as c}from"./p-e87928f7.js";import{r as n,h as l,k as d,j as h,s as p,M as b}from"./p-084b6f30.js";import{S as k}from"./p-80c856cd.js";var f=function(t,r,a,e){var i,s=arguments.length,o=s<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,a):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,r,a,e);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(o=(s<3?i(o):s>3?i(r,a,o):i(r,a))||o);return s>3&&o&&Object.defineProperty(r,a,o),o};const v="@",g=class{constructor(i){t(this,i),this.onNewMessage=r(this,"rtkNewMessage",7),this.onEditMessage=r(this,"rtkEditMessage",7),this.onEditCancelled=r(this,"rtkEditCancelled",7),this.canSendTextMessage=!1,this.canSendFiles=!1,this.iconPack=s,this.t=o(),this.disableEmojiPicker=!1,this.prefill={},this.members=[],this.emojiPickerActive=!1,this.mentionQuery="",this.focusedMemberIndex=0,this.filePreview=null,this.fileReader=new FileReader,this.fileToUpload=null,this.handleKeyDown=t=>{if(t.key===v&&[void 0," "].includes(this.$textArea.value.at(-1))&&(this.mentionQuery=v),"ArrowDown"===t.key&&(this.focusedMemberIndex=Math.min(this.focusedMemberIndex+1,this.getFilteredMembers().length-1)),"ArrowUp"===t.key&&(this.focusedMemberIndex=Math.max(0,this.focusedMemberIndex-1)),("Escape"===t.key||"Backspace"===t.key&&this.mentionQuery===v)&&(this.mentionQuery=""),["Enter","Tab"," "].includes(t.key)&&""!==this.mentionQuery){const r=this.getFilteredMembers()[this.focusedMemberIndex];return this.onMemberSelect(r),void t.preventDefault()}"Enter"===t.key&&t.shiftKey?this.$textArea.clientHeight<200&&(this.$textArea.style.height=this.$textArea.clientHeight+20+"px"):"Enter"===t.key?(t.preventDefault(),this.prefill.editMessage?this.handleEditMessage():this.handleSendMessage()):"Backspace"===t.key&&(this.$textArea.value.endsWith("\n")?this.$textArea.style.height=this.$textArea.clientHeight-20+"px":""===this.$textArea.value&&(this.$textArea.style.height="auto"))},this.handleKeyUp=()=>{if(""!==this.mentionQuery){const t=n(this.$textArea.value.trim()),r=t.substring(0,t.indexOf(v));this.mentionQuery=`${v}${n(r)}`}},this.onPaste=t=>{const r=t.clipboardData||t.originalEvent.clipboardData;a((()=>{r&&r.items&&r.items.length>0&&(l(r.items,this.generateFilePreview),this.$textArea.value="")}))},this.generateFilePreview=(t,r)=>{this.fileToUpload={type:t,image:r,file:r},"image"===t?this.fileReader.readAsDataURL(r):"file"===t&&(this.filePreview=r.name)},this.sendFile=()=>{this.canSendFiles&&(this.onNewMessage.emit("image"===this.fileToUpload.type?{type:"image",file:this.fileToUpload.image,image:this.fileToUpload.image}:{type:"file",file:this.fileToUpload.file}),this.cleanUpFileUpload())},this.handleSendMessage=()=>{if(!this.canSendTextMessage)return;if(null!==this.fileToUpload)return void this.sendFile();const t=this.$textArea.value.trim();t.length>0&&(this.onNewMessage.emit(this.prefill.replyMessage?{type:"text",message:t,replyTo:this.prefill.replyMessage}:{type:"text",message:t}),this.cleanup())},this.cleanup=()=>{this.mentionQuery="",this.focusedMemberIndex=0,this.$textArea.value="",this.$textArea.style.height="auto",c.setItem(this.storageKey,"")},this.handleEditMessage=()=>{var t;let r=this.$textArea.value.trim();(null===(t=this.prefill.editMessage)||void 0===t?void 0:t.message)&&d.test(this.prefill.editMessage.message)&&(r=`${h(this.prefill.editMessage.message)}\n\n${r}`),this.onEditMessage.emit({id:this.prefill.editMessage.id,message:r,channelId:this.prefill.editMessage.channelId}),this.cleanup()},this.handleEditCancel=()=>{this.onEditCancelled.emit(),this.cleanup()},this.initializeTextField=t=>{this.$textArea=t;const r=c.getItem(this.storageKey)||"";this.$textArea.value=r},this.onMemberSelect=t=>{const r=n(this.mentionQuery),e=n(this.$textArea.value.trim()).replace(r,"");this.$textArea.value=n(e)+`${v}${t.name} `,this.mentionQuery="",this.focusedMemberIndex=0,a((()=>this.$textArea.focus()))},this.getFilteredMembers=()=>{const t=this.mentionQuery.replace(v,"");return this.members.filter((r=>r.name.toLowerCase().includes(t.toLowerCase())))},this.cleanUpFileUpload=()=>{this.filePreview=null,this.fileToUpload=null},this.renderSuggestedReplies=()=>{if(this.prefill.suggestedReplies&&0!==this.prefill.suggestedReplies.length)return e("ul",{class:"suggested-replies scrollbar"},this.prefill.suggestedReplies.map((t=>e("rtk-tooltip",{label:this.t("chat.click_to_send")},e("li",{onClick:()=>this.onNewMessage.emit({type:"text",message:t})},t)))))},this.renderMenu=()=>{if(0===this.mentionQuery.length)return;const t=this.getFilteredMembers();return 0!==t.length?e("ul",{class:"member-list scrollbar"},t.map(((t,r)=>e("li",{class:{member:!0,selected:r===this.focusedMemberIndex},onClick:()=>this.onMemberSelect(t),ref:t=>{r===this.focusedMemberIndex&&a((()=>{t&&t.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}))}},e("rtk-avatar",{participant:{name:t.name,picture:t.picture},size:"sm"}),e("span",null,t.name))))):void 0}}connectedCallback(){this.fileReader.onload=t=>{"string"==typeof t.target.result&&(this.filePreview=t.target.result)}}onChannelChanged(){this.mentionQuery="",this.focusedMemberIndex=0;const t=c.getItem(this.storageKey)||"";this.$textArea.value=t,this.emojiPickerActive=!1}componentDidRender(){(this.prefill.editMessage||this.prefill.replyMessage)&&a((()=>this.$textArea.focus()))}get storageKey(){return this.channelId?`rtk-text-message-${this.channelId}`:"rtk-text-message"}uploadFile(t){const r=document.createElement("input");r.type="file","image"===t&&(r.accept="image/*"),r.onchange=r=>{const{validity:a,files:[e]}=r.target;a.valid&&this.generateFilePreview(t,e)},r.click()}renderFilePreview(){if("string"==typeof this.filePreview)return e("div",{class:"preview-overlay"},e("div",{class:"file-preview"},e("rtk-tooltip",{label:this.t("chat.cancel_upload")},e("rtk-button",{variant:"secondary",kind:"icon",onClick:this.cleanUpFileUpload},e("rtk-icon",{icon:this.iconPack.dismiss}))),"image"===this.fileToUpload.type?e("img",{class:"preview-image",src:this.filePreview}):e("div",{class:"preview-file"},e("span",null,this.filePreview))))}render(){var t;let r="";return(null===(t=this.prefill.editMessage)||void 0===t?void 0:t.message)&&(r=p(this.prefill.editMessage.message)),e(i,{key:"0550423a075a5e445ebae18e70213e17dd79c6ff"},this.canSendTextMessage&&this.emojiPickerActive&&e("rtk-emoji-picker",{key:"89eaa1c1e0ae3da8fed3c203fd87a19cd5f19b8e",part:"emoji-picker",onPickerClose:()=>{this.emojiPickerActive=!1},onRtkEmojiClicked:t=>{this.$textArea.value+=t.detail,this.$textArea.focus()},t:this.t}),this.renderSuggestedReplies(),e("slot",{key:"6da586002dff47002d856c0204dee2bbe8571236",name:"chat-addon"}),e("slot",{key:"fa285ac5f4fb88ddcc3aa9b6a294d12b09cd94e9",name:"quote-block"}),e("div",{key:"c71568bf5344f9fcd3be019d02ca4bf1a8a9d9b8",class:"chat-input",part:"chat-input"},this.renderMenu(),this.canSendTextMessage&&e("textarea",{key:"ec57005f4795fefdaaba266d9e891853a5bded1f",class:"scrollbar",part:"textarea",ref:this.initializeTextField,autoFocus:!0,placeholder:this.fileToUpload?"":this.t("chat.message_placeholder"),value:r,onPaste:this.onPaste,maxLength:b,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onInput:t=>{c.setItem(this.storageKey,t.target.value)},disabled:!!this.filePreview}),e("div",{key:"322d141483c79366ef59dee65a5072a6f437a64a",class:"chat-buttons",part:"chat-buttons"},e("div",{key:"cb287e6ced3bb48f445af933a99a1f8100ac41c6",class:"left",part:"chat-buttons-left"},!this.prefill.editMessage&&this.canSendFiles&&[e("rtk-tooltip",{key:"78c91b6a2097013f3da368086e868d2d465ec9cb",label:this.t("chat.send_file")},e("rtk-button",{key:"278e56e0d1d012c658a74a07aece9f07fb13b486",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile("file"),title:this.t("chat.send_file")},e("rtk-icon",{key:"f0551578a82d14a0313044c257a2cd04b8a4320e",icon:this.iconPack.attach}))),e("rtk-tooltip",{key:"f1f658aece9261ff928f631b78545bfc2cc6b99e",label:this.t("chat.send_img")},e("rtk-button",{key:"31e9bb3127886607cb630db538b6acdc405df324",variant:"ghost",kind:"icon",onClick:()=>this.uploadFile("image"),title:this.t("chat.send_img")},e("rtk-icon",{key:"66f46b7128dcbb041a2e35a5a9d61eb087aae126",icon:this.iconPack.image})))],!this.prefill.editMessage&&this.canSendTextMessage&&!this.disableEmojiPicker&&e("rtk-tooltip",{key:"28524998014e48efa944db921c6ebaa644f7522c",label:this.t("chat.send_emoji")},e("rtk-button",{key:"2ab4710a53f8c399b94fdf89d8b3e26ecdfb38c9",variant:"ghost",kind:"icon",class:{active:this.emojiPickerActive},title:this.t("chat.send_emoji"),onClick:()=>{this.emojiPickerActive=!this.emojiPickerActive}},e("rtk-icon",{key:"eb26faa361adb34eb7afbd013c21a5039e32292d",icon:this.iconPack.emoji_multiple})))),!!this.filePreview&&this.renderFilePreview(),this.canSendTextMessage&&e("div",{key:"820a5ff20514c9802d3612045f36d95d2358dcda",class:"right",part:"chat-buttons-right"},!this.prefill.editMessage&&e("rtk-tooltip",{key:"405fb291f728f2afa6940a82cbc16777e8eba2bc",variant:"primary",label:this.t("chat.send_msg"),delay:2e3},e("rtk-button",{key:"4bff2c0bf52fc35da61d67760d82943b4516c358",kind:"icon",onClick:()=>this.handleSendMessage(),title:this.t("chat.send_msg")},e("rtk-icon",{key:"d5294b068fbb1e60bdccb899b7931c03e4fb9eb1",icon:this.iconPack.send}))),this.prefill.editMessage&&e("div",{key:"995aa908ccab6ab22252d78ddefed672474f56a0",class:"edit-buttons"},e("rtk-tooltip",{key:"2429c8023b38ba99c8e0b3a66206f719ce0e1932",variant:"secondary",label:this.t("cancel"),delay:2e3},e("rtk-button",{key:"2fbaa972db33e50976661f4a02a3be9d67ec78fa",kind:"icon",variant:"secondary",onClick:()=>this.handleEditCancel(),title:this.t("cancel")},e("rtk-icon",{key:"3466f90521e92efe325dec9bd7c3419f726713d8",icon:this.iconPack.dismiss}))),e("rtk-tooltip",{key:"84af3b7940bcdeec414e42cbda84359154a19a19",variant:"primary",label:this.t("chat.update_msg"),delay:2e3},e("rtk-button",{key:"580af6cecb00e77994e688a9bd70b63aeb1f0782",kind:"icon",onClick:()=>this.handleEditMessage(),title:this.t("chat.send_msg")},e("rtk-icon",{key:"a6266954cfa1ffbcc6e3606bfe993e54e3f5c5ee",icon:this.iconPack.checkmark}))))))))}static get watchers(){return{channelId:["onChannelChanged"]}}};f([k()],g.prototype,"iconPack",void 0),f([k()],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)}.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{display:flex;flex-direction:column;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-1000, 8 8 8) / var(--tw-bg-opacity))}.chat-input{position:relative;margin:var(--rtk-space-2, 8px);z-index:10;box-sizing:border-box;display:flex;flex-direction:column;border-radius:var(--rtk-border-radius-md, 8px);border:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60))}textarea{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));box-sizing:border-box;padding:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::-moz-placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea::placeholder{color:rgb(var(--rtk-colors-text-1000, 255 255 255))}textarea{border-top-left-radius:var(--rtk-border-radius-md, 8px);border-top-right-radius:var(--rtk-border-radius-md, 8px);font-family:var(--rtk-font-family, sans-serif);outline:2px solid transparent;outline-offset:2px;resize:none;overflow-y:auto;border-width:var(--rtk-border-width-none, 0);border-style:none;min-height:60px;font-size:16px}.chat-buttons{border-bottom-right-radius:var(--rtk-border-radius-md, 8px);border-bottom-left-radius:var(--rtk-border-radius-md, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));display:flex;height:var(--rtk-space-8, 32px);align-items:center;justify-content:space-between;padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px)}.chat-buttons .left rtk-button{margin-right:var(--rtk-space-1, 4px)}.chat-buttons .left rtk-button rtk-icon{height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px)}.chat-buttons .right{z-index:10}.chat-buttons .right .edit-buttons{display:flex;gap:var(--rtk-space-2, 8px)}.chat-buttons>div{display:flex;align-items:center}rtk-emoji-picker{z-index:0;position:absolute;bottom:var(--rtk-space-32, 128px);border-top:var(--rtk-border-width-sm, 1px) solid rgb(var(--rtk-colors-background-600, 60 60 60));animation:0.3s slide-up ease}@keyframes slide-up{from{transform:translateY(100%)}to{transform:translateY(0%)}}.member-list{margin:var(--rtk-space-0, 0px);margin-top:var(--rtk-space-1, 4px);max-height:var(--rtk-space-28, 112px);min-width:var(--rtk-space-40, 160px);max-width:var(--rtk-space-64, 256px);padding:var(--rtk-space-0, 0px);position:absolute;bottom:var(--rtk-space-28, 112px);list-style-type:none;overflow-y:auto;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-900, 26 26 26) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-sm, 4px);--tw-border-spacing-x:var(--rtk-space-2, 8px);--tw-border-spacing-y:var(--rtk-space-2, 8px);border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);border-style:solid;border-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.5)}.member-list .member{display:flex;align-items:center;gap:var(--rtk-space-1, 4px);padding:var(--rtk-space-2, 8px);padding-right:var(--rtk-space-4, 16px);cursor:pointer}.member-list .member rtk-avatar{flex-shrink:0;height:var(--rtk-space-5, 20px);width:var(--rtk-space-5, 20px);font-size:14px;color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.member-list .member span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.member-list .member:hover,.member-list .member.selected{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-700, 2 70 253) / var(--tw-bg-opacity));color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)))}.suggested-replies{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-3, 12px);display:flex;flex-wrap:nowrap;gap:var(--rtk-space-2, 8px);list-style-type:none;overflow-x:auto}.suggested-replies rtk-tooltip{flex-shrink:0}.suggested-replies li{padding:var(--rtk-space-2, 8px);border-radius:var(--rtk-border-radius-md, 8px);background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / 0.75);color:rgb(var(--rtk-colors-text-on-brand-1000, var(--rtk-colors-text-1000, 255 255 255)));cursor:pointer}.suggested-replies li:hover{--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-brand-300, 73 124 253) / var(--tw-bg-opacity))}.preview-overlay{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);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-800, 30 30 30) / var(--tw-bg-opacity));border-radius:var(--rtk-border-radius-md, 8px)}.file-preview{position:absolute;top:var(--rtk-space-4, 16px);left:var(--rtk-space-4, 16px);max-width:-moz-fit-content;max-width:fit-content;max-height:var(--rtk-space-20, 80px)}.file-preview:hover rtk-tooltip{display:block}.file-preview rtk-tooltip{position:absolute;top:calc(var(--rtk-space-1, 4px) * -1);left:calc(var(--rtk-space-1, 4px) * -1);display:none;margin-left:calc(var(--rtk-space-1, 4px) * -1);margin-top:calc(var(--rtk-space-1, 4px) * -1)}.file-preview rtk-button{display:flex;height:var(--rtk-space-4, 16px);width:var(--rtk-space-4, 16px);align-items:center;justify-content:center;border-radius:9999px;--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-600, 60 60 60) / var(--tw-bg-opacity));border:1px solid rgb(var(--rtk-colors-text-1000, 255 255 255))}.file-preview rtk-icon{height:var(--rtk-space-3, 12px);width:var(--rtk-space-3, 12px);color:rgb(var(--rtk-colors-text-1000, 255 255 255))}.preview-image{height:var(--rtk-space-16, 64px);width:var(--rtk-space-16, 64px);-o-object-fit:cover;object-fit:cover;max-height:100%;max-width:100%;overflow:clip;border-radius:var(--rtk-border-radius-md, 8px)}.preview-file{padding-left:var(--rtk-space-3, 12px);padding-right:var(--rtk-space-3, 12px);padding-top:var(--rtk-space-2, 8px);padding-bottom:var(--rtk-space-2, 8px);--tw-bg-opacity:1;background-color:rgba(var(--rtk-colors-background-700, 44 44 44) / var(--tw-bg-opacity));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:var(--rtk-border-radius-md, 8px);max-width:200px}@keyframes scroll-text{0%{transform:translateX(0%)}70%{transform:translateX(-100%)}80%{transform:translateX(0%)}100%{transform:translateX(0%)}}";export{g as rtk_chat_composer_ui}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as i,h as s,H as e,a}from"./p-0ee570cd.js";import{e as h,h as n,c as o,H as c}from"./p-e87928f7.js";import{l as d,R as r}from"./p-c8eaa707.js";import{f as l,a as p}from"./p-6f211c3e.js";import{c as b,b as f,o as v,s as k,h as u}from"./p-769bb885.js";import{S as m}from"./p-80c856cd.js";import{d as g}from"./p-e720b51e.js";var y=function(t,i,s,e){var a,h=arguments.length,n=h<3?i:null===e?e=Object.getOwnPropertyDescriptor(i,s):e;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,i,s,e);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(n=(h<3?a(n):h>3?a(i,s,n):a(i,s))||n);return h>3&&n&&Object.defineProperty(i,s,n),n};const x=class{constructor(s){t(this,s),this.rtkSendNotification=i(this,"rtkSendNotification",7),this.pinnedListener=({isPinned:t})=>{this.isPinned=t},this.toggleTileListener=({hidden:t})=>{this.isHidden=t},this.stageListener=({stageStatus:t})=>{this.isOnStage="ON_STAGE"===t},this.view="sidebar",this.iconPack=h,this.t=n(),this.config=o(),this.audioEnabled=!1,this.videoEnabled=!1,this.isPinned=!1,this.isHidden=!1,this.isOnStage=!1,this.canDisableParticipantAudio=!1,this.canDisableParticipantVideo=!1,this.canKickParticipant=!1,this.canPinParticipant=!1,this.canAllowParticipantOnStage=!1,this.menuOpen=!1,this.permissionsUpdateListener=()=>{this.meetingChanged(this.meeting)},this.inviteToStageToggle=async()=>{const t=this.participant,{stage:i}=this.meeting;"ACCEPTED_TO_JOIN_STAGE"!==t.stageStatus?(this.isOnStage?(t.isPinned&&t.unpin(),await i.kick([t.userId])):(await i.grantAccess([t.userId]),this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-invite-${t.id}`})),this.isOnStage="ON_STAGE"===t.stageStatus):this.rtkSendNotification.emit({message:`${t.name} ${this.t("stage.invited_notification")}`,trace:`join-stage-${t.id}`})},this.handleOutsideClick=t=>{!t.composedPath().includes(this.host)&&this.menuOpen&&(this.menuOpen=!1)},this.update=()=>{const t=this.host.shadowRoot.getElementById("trigger"),i=this.host.shadowRoot.getElementById("menu-list");b(t,i,{placement:"bottom-end",middleware:[f({allowedPlacements:["bottom-end","top-end"],alignment:"end"}),v(4),k({padding:8}),u()]}).then((({x:t,y:s,placement:e})=>{let a=null;a="bottom-end"===e?{right:`${t}px`,top:`${s}px`}:{right:`${t}px`,bottom:`${s}px`},Object.assign(i.style,a)}))},this.onMenuToggle=()=>{this.menuOpen=!this.menuOpen,this.menuOpen&&this.update()}}connectedCallback(){this.meetingChanged(this.meeting),this.participantChanged(this.participant),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){var t;document.removeEventListener("click",this.handleOutsideClick),null===(t=this.meeting)||void 0===t||t.self.permissions.removeListener("permissionsUpdate",this.permissionsUpdateListener),null!=this.participant&&null!=this.participant.removeListener&&(this.audioUpdateListener&&this.participant.removeListener("audioUpdate",this.audioUpdateListener),this.videoUpdateListener&&this.participant.removeListener("videoUpdate",this.videoUpdateListener),this.participant.removeListener("pinned",this.pinnedListener),this.participant.removeListener("unpinned",this.pinnedListener),this.participant.removeListener("stageStatusUpdate",this.stageListener),this.participant.removeListener("toggleTile",this.toggleTileListener))}meetingChanged(t){var i,s,e,a,h,n,o;if(null!=t){const{self:d}=t;this.canDisableParticipantAudio=d.permissions.canAllowParticipantAudio||d.permissions.canDisableParticipantAudio,this.canDisableParticipantVideo=d.permissions.canAllowParticipantVideo||d.permissions.canDisableParticipantVideo,this.canKickParticipant=d.permissions.kickParticipant&&!0!==(null===(i=this.meeting)||void 0===i?void 0:i.__internals__.features.hasFeature(c.DISABLE_KICKING))&&(!0!==(null===(s=this.meeting)||void 0===s?void 0:s.__internals__.features.hasFeature(c.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(e=this.participant)||void 0===e?void 0:e.presetName)),this.canPinParticipant=d.permissions.pinParticipant,this.canAllowParticipantOnStage=d.permissions.acceptStageRequests&&d.permissions.stageEnabled&&(!0!==(null===(a=this.meeting)||void 0===a?void 0:a.__internals__.features.hasFeature(c.ADMIN_CANTREMOVE_ADMIN))||"webinar_admin"!==(null===(h=this.participant)||void 0===h?void 0:h.presetName))&&(!0!==(null===(n=this.meeting)||void 0===n?void 0:n.__internals__.features.hasFeature(c.CANTINVITE_VIEWER))||"webinar_viewer"!==(null===(o=this.participant)||void 0===o?void 0:o.presetName)),t.self.permissions.addListener("permissionsUpdate",this.permissionsUpdateListener)}}participantChanged(t){var i;if(null!=t){if(this.audioEnabled=t.audioEnabled,this.videoEnabled=t.videoEnabled,this.isPinned=t.isPinned,this.isHidden=null!==(i=t.hidden)&&void 0!==i&&i,this.isOnStage="ON_STAGE"===t.stageStatus,this.audioUpdateListener=({audioEnabled:t})=>{this.audioEnabled=t},this.videoUpdateListener=({videoEnabled:t})=>{this.videoEnabled=t},null==t.addListener)return;t.addListener("audioUpdate",this.audioUpdateListener),t.addListener("videoUpdate",this.videoUpdateListener),t.addListener("pinned",this.pinnedListener),t.addListener("unpinned",this.pinnedListener),t.addListener("stageStatusUpdate",this.stageListener),this.participant.addListener("toggleTile",this.toggleTileListener)}}render(){var t,i,a,h,n,o,c,b,f;const v="AUDIO_ROOM"===(null===(t=this.meeting)||void 0===t?void 0:t.meta.viewType),k=(null===(i=this.meeting)||void 0===i?void 0:i.self.id)===this.participant.id,u=this.canDisableParticipantAudio&&this.audioEnabled||this.canDisableParticipantVideo&&this.videoEnabled&&!v||this.canKickParticipant||this.canPinParticipant&&this.isOnStage||this.canAllowParticipantOnStage,m=l((null===(a=this.participant)||void 0===a?void 0:a.name)||""),g=this.isOnStage||["GROUP_CALL","AUDIO_ROOM"].includes(null===(h=this.meeting)||void 0===h?void 0:h.meta.viewType),y={meeting:this.meeting,size:"sm",states:this.states,config:this.config,iconPack:this.iconPack,t:this.t};return s(e,{key:"d04f837e2d5eb2024ac202ad5ac77331adad43c9"},s("div",{class:"left",key:null===(n=this.participant)||void 0===n?void 0:n.id},s("rtk-avatar",{key:"357234a1dde242720daab827db2d8aeda595c96b",participant:this.participant,size:"sm",iconPack:this.iconPack,t:this.t}),s("p",{key:"f1cd6c6f0398e7f5275a65044a65429d5f0d1db4",class:"name",title:m},p(m,16)," ",(null===(o=this.meeting)||void 0===o?void 0:o.self.id)===(null===(c=this.participant)||void 0===c?void 0:c.id)&&this.t("(you)"))),"sidebar"===this.view&&s("div",{key:"bd12f811f09fdb1b722ac9597f8e70dd734d5737",class:"right"},g&&s("rtk-icon",{key:"20d4bd4f97e9edd4f86cb4b427fa60b1507906cd",class:{red:!this.audioEnabled},icon:this.audioEnabled?this.iconPack.mic_on:this.iconPack.mic_off}),g&&!v&&s("rtk-icon",{key:"bebf3ddc0a1b40a4cbb736edbee9bf2482890c32",class:{red:!this.videoEnabled},icon:this.videoEnabled?this.iconPack.video_on:this.iconPack.video_off}),(u||d({element:"rtk-participant",defaults:y,childProps:{participant:this.participant}})>0)&&s("div",{key:"98bbfa6d23c2b298f082b182ed4ff39b5ab6ffbd",class:"menu"},s("span",{key:"510be24b1e9000cea40bc1d19bead1092b882802",id:"trigger",onClick:this.onMenuToggle},s("rtk-button",{key:"ffc0397b8259769d5fe2407770507350449211e5",variant:"ghost",kind:"icon",slot:"trigger"},s("rtk-icon",{key:"a7c403786b7fd2be84e3cb59015e0c9532fbe7a8",class:"more",icon:this.iconPack.more_vertical}))),s("span",{key:"996cfcd1221be661ec4a7a1fb753a2979ef695b6",id:"menu-list"},this.menuOpen&&s("rtk-menu-list",{key:"16d3ce80e2d51cffb37617856dfec051958ef9b7",iconPack:this.iconPack,t:this.t},this.canPinParticipant&&g&&!v&&s("rtk-menu-item",{key:"2469c59d100fe34fbb0c271f9bf27263e9d3ce72",onClick:()=>{this.isPinned?this.participant.unpin():this.participant.pin()},iconPack:this.iconPack,t:this.t},s("rtk-icon",{key:"e69b81c2a557d2acf6f4254edb46836d9951cf3e",icon:this.isPinned?this.iconPack.pin_off:this.iconPack.pin,slot:"start"}),this.t(this.isPinned?"unpin":"pin")),k&&s("rtk-menu-item",{key:"52335e703f44cf8b1d3adc6c2d6750198906216b",iconPack:this.iconPack,t:this.t,onClick:()=>{this.isHidden?this.participant.show():this.participant.hide()}},s("rtk-icon",{key:"7b9aa493842c50422b909c1c98f4d16bda594d59",icon:this.isHidden?this.iconPack.minimize:this.iconPack.maximize,slot:"start"}),this.t(this.meeting.self.hidden?"maximize":"minimize")),this.canDisableParticipantAudio&&g&&this.audioEnabled&&s("rtk-menu-item",{key:"956e423b33a1db73ad692362708c2db9307604e3",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableAudio()}},s("rtk-icon",{key:"3f0d90c3e43059ee95b5bee9b52a0e3d03f67011",icon:this.iconPack.mic_off,slot:"start"}),this.t("mute")),this.canDisableParticipantVideo&&g&&this.videoEnabled&&s("rtk-menu-item",{key:"fc2f22ed04974fa40c10e730e3bb7aee2142d7a4",iconPack:this.iconPack,t:this.t,onClick:()=>{this.participant.disableVideo()}},s("rtk-icon",{key:"86ee677bb056d9e665ab81fc8246b17fb89ac699",icon:this.iconPack.video_off,slot:"start"}),this.t("participants.turn_off_video")),this.canAllowParticipantOnStage&&(null===(b=this.participant)||void 0===b?void 0:b.id)!==(null===(f=this.meeting)||void 0===f?void 0:f.self.id)&&s("rtk-menu-item",{key:"ca374ea886d695a5e78b75b3de9de9b9631ef19a",iconPack:this.iconPack,t:this.t,class:this.isOnStage?"red":"",onClick:this.inviteToStageToggle},s("rtk-icon",{key:"6166ff20a3fa00d28b6602a3a7e68c1a2ca008a5",icon:this.isOnStage?this.iconPack.leave_stage:this.iconPack.join_stage,slot:"start"}),this.t(this.isOnStage?"stage.remove_from_stage":"stage.add_to_stage")),!k&&this.canKickParticipant&&s("rtk-menu-item",{key:"95818a580073c6b3244a47020cafed3bb7b97dd6",iconPack:this.iconPack,t:this.t,class:"red",onClick:()=>{var t,i;null===(t=this.meeting)||void 0===t||t.participants.kick(null===(i=this.participant)||void 0===i?void 0:i.id)}},s("rtk-icon",{key:"9a2511e15d604cd672d85fb7cd99deb157e96bb0",icon:this.iconPack.dismiss,slot:"start"}),this.t("kick")),s("slot",{key:"8dad8df5005902e5af3325062ba4d81711dc8370"},s(r,{key:"915f440d18ae76a9330297122d6c8f22dbf629cd",element:"rtk-participant",defaults:y,childProps:{participant:this.participant},deepProps:!0,onlyChildren:!0})))))))}get host(){return a(this)}static get watchers(){return{meeting:["meetingChanged"],participant:["participantChanged"]}}};y([m()],x.prototype,"meeting",void 0),y([m()],x.prototype,"states",void 0),y([m()],x.prototype,"iconPack",void 0),y([m()],x.prototype,"t",void 0),y([m()],x.prototype,"config",void 0),x.style=":host{line-height:initial;font-family:var(--rtk-font-family, sans-serif);font-feature-settings:normal;font-variation-settings:normal}p{margin:var(--rtk-space-0, 0px);padding:var(--rtk-space-0, 0px)}:host{position:relative;display:flex;height:var(--rtk-space-14, 56px);align-items:center;justify-content:space-between;cursor:pointer;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}:host rtk-avatar{height:var(--rtk-space-8, 32px);width:var(--rtk-space-8, 32px);font-size:14px}.left{display:flex;align-items:center}.left>*{margin-right:var(--rtk-space-2, 8px)}.left>*:last-child{margin-right:var(--rtk-space-0, 0px)}.right{display:flex;align-items:center;justify-content:flex-end}.right>*{margin-left:var(--rtk-space-2, 8px)}.right>*:first-child{margin-left:var(--rtk-space-0, 0px)}.name{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}rtk-icon{height:var(--rtk-space-6, 24px);width:var(--rtk-space-6, 24px)}rtk-icon.red{--tw-text-opacity:1;color:rgba(var(--rtk-colors-danger, 255 45 45) / var(--tw-text-opacity))}rtk-icon.more{cursor:pointer}.menu{position:relative;display:inline-block;color:rgb(var(--rtk-colors-text-1000, 255 255 255))}#menu-list{position:absolute;z-index:20}";const w=class{constructor(i){t(this,i),this.items=[],this.itemHeight=55,this.bufferedItemsCount=5,this.emptyListElement=null,this.visibleStart=0,this.visibleEnd=0,this.containerHeight=0,this.lastScrollTop=0,this.recalculatePositioning=()=>{this.updateContainerHeight(),requestAnimationFrame((()=>{this.updateItemHeight()}))},this.updateContainerHeight=()=>{this.el.querySelector(".virtual-list-container").clientHeight&&(requestAnimationFrame((()=>{this.updateItemHeight()})),this.containerHeight=this.el.querySelector(".virtual-list-container").clientHeight,this.updateVisibleRange())},this.onScroll=g((()=>{const t=this.el.querySelector(".virtual-list-container").scrollTop;t>this.lastScrollTop&&this.visibleEnd===this.items.length||(this.lastScrollTop=t,this.updateVisibleRange())}))}itemsChanged(){this.recalculatePositioning()}componentDidLoad(){this.recalculatePositioning(),this.el.querySelector(".virtual-list-container").addEventListener("scroll",this.onScroll),window.addEventListener("resize",this.recalculatePositioning)}componentDidUpdate(){this.updateItemHeight()}disconnectedCallback(){this.el.querySelector(".virtual-list-container").removeEventListener("scroll",this.onScroll),window.removeEventListener("resize",this.recalculatePositioning)}updateVisibleRange(){const t=this.el.querySelector(".virtual-list-container").scrollTop,i=Math.floor(t/this.itemHeight),s=Math.ceil(this.containerHeight/this.itemHeight),e=Math.min(this.items.length,i+s+this.bufferedItemsCount);this.visibleStart=i,this.visibleEnd=e,this.el.querySelector(".virtual-list-container").scrollTop=this.lastScrollTop}updateItemHeight(){const t=this.el.querySelector(".virtual-list-item");if(t){const i=t.style.height;t.style.height="auto";const s=t.getBoundingClientRect().height;i&&(t.style.height=i),s&&Math.floor(s)!==Math.floor(this.itemHeight)&&(this.itemHeight=s)}}renderItems(){return this.items.slice(this.visibleStart,this.visibleEnd).map(((t,i)=>{const e=this.visibleStart+i;return s("div",{class:"virtual-list-item",key:t.id,style:{position:"absolute",top:e*this.itemHeight+"px",height:`${this.itemHeight}px`,width:"100%"}},this.renderItem(t,e))}))}render(){var t;return s("div",{key:"1833065e95b4a443bad339ad8eaccab0c3b6902a",class:"virtual-list-container",style:{position:"relative",height:"100%",overflowX:"hidden",overflowY:"auto"}},s("div",{key:"4b4bd2882d73ee7226c1654bd43649eeffe47ec9",style:{height:this.items.length*this.itemHeight+"px",position:"relative"}},(null===(t=this.items)||void 0===t?void 0:t.length)?this.renderItems():this.emptyListElement),s("div",{key:"ad6ae3e3416810066a1071725cee65e4a48e7455",style:{height:`${this.itemHeight}px`}}))}get el(){return a(this)}static get watchers(){return{items:["itemsChanged"]}}};w.style=":host{height:100%;width:100%}";export{x as rtk_participant,w as rtk_virtualized_participant_list}
|