isometrik-plugin-chat-sdk 2.0.20 → 2.0.22
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/cjs/admin-transfer-dialog.cjs.entry.js +2 -2
- package/dist/cjs/{app-globals-2824b330.js → app-globals-0e7848be.js} +3 -3
- package/dist/cjs/{app-globals-2824b330.js.map → app-globals-0e7848be.js.map} +1 -1
- package/dist/cjs/{attachment-preview_22.cjs.entry.js → attachment-preview_23.cjs.entry.js} +692 -388
- package/dist/cjs/attachment-preview_23.cjs.entry.js.map +1 -0
- package/dist/cjs/audio-bubble_4.cjs.entry.js +66 -22
- package/dist/cjs/audio-bubble_4.cjs.entry.js.map +1 -1
- package/dist/cjs/chat-app.cjs.entry.js +1 -1
- package/dist/cjs/chat-document-message-bubble.cjs.entry.js +1 -1
- package/dist/cjs/chat-image-message-bubble.cjs.entry.js +1 -1
- package/dist/cjs/chat-tile_3.cjs.entry.js +14 -10
- package/dist/cjs/chat-tile_3.cjs.entry.js.map +1 -1
- package/dist/cjs/chat-video-message-bubble.cjs.entry.js +1 -1
- package/dist/cjs/confirm-dialog.cjs.entry.js +1 -1
- package/dist/cjs/{content-ebca062a.js → content-8b271b56.js} +3 -1
- package/dist/cjs/content-8b271b56.js.map +1 -0
- package/dist/cjs/delete-message.cjs.entry.js +1 -1
- package/dist/cjs/download-9ccc0a6c.js +120 -0
- package/dist/cjs/download-9ccc0a6c.js.map +1 -0
- package/dist/cjs/{drawer-00a2323a.js → drawer-3f9c87b4.js} +42 -5
- package/dist/cjs/drawer-3f9c87b4.js.map +1 -0
- package/dist/cjs/forward-memebers.cjs.entry.js +61 -24
- package/dist/cjs/forward-memebers.cjs.entry.js.map +1 -1
- package/dist/cjs/forward-message.cjs.entry.js +2 -2
- package/dist/cjs/group-chat-contacts.cjs.entry.js +2 -2
- package/dist/cjs/{group-members-b3bea06e.js → group-members-1205fc4c.js} +5 -5
- package/dist/cjs/{group-members-b3bea06e.js.map → group-members-1205fc4c.js.map} +1 -1
- package/dist/cjs/{groupcast-8441b4df.js → groupcast-bb393c81.js} +14 -54
- package/dist/cjs/groupcast-bb393c81.js.map +1 -0
- package/dist/cjs/{groupcast-f24da720.js → groupcast-e1e52bd1.js} +16 -16
- package/dist/cjs/{groupcast-f24da720.js.map → groupcast-e1e52bd1.js.map} +1 -1
- package/dist/cjs/{helpers-154861e9.js → helpers-877a7116.js} +30 -1
- package/dist/cjs/helpers-877a7116.js.map +1 -0
- package/dist/cjs/index.cjs.js +8 -6
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/{toast-91093c84.js → index.m-ff115b26.js} +1 -156
- package/dist/cjs/{toast-91093c84.js.map → index.m-ff115b26.js.map} +1 -1
- package/dist/cjs/info-panel-media_2.cjs.entry.js +244 -0
- package/dist/cjs/info-panel-media_2.cjs.entry.js.map +1 -0
- package/dist/cjs/isometrik-webchat.cjs.js +11 -9
- package/dist/cjs/isometrik-webchat.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +11 -9
- package/dist/cjs/loader.cjs.js.map +1 -1
- package/dist/cjs/{local-notification-bdd04d7a.js → local-notification-a86a2b34.js} +3 -3
- package/dist/cjs/local-notification-a86a2b34.js.map +1 -0
- package/dist/cjs/login-page_3.cjs.entry.js +258 -104
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/cjs/media-gallery.cjs.entry.js +10 -2
- package/dist/cjs/media-gallery.cjs.entry.js.map +1 -1
- package/dist/cjs/member-add.cjs.entry.js +20 -11
- package/dist/cjs/member-add.cjs.entry.js.map +1 -1
- package/dist/cjs/message-bubble.cjs.entry.js +2 -2
- package/dist/cjs/{message-reaction-82a4f93c.js → message-reaction-8f93a048.js} +5 -5
- package/dist/cjs/{message-reaction-82a4f93c.js.map → message-reaction-8f93a048.js.map} +1 -1
- package/dist/cjs/messages-e129b34d.js +179 -0
- package/dist/cjs/messages-e129b34d.js.map +1 -0
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/new-chat-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/play-b473e0ab.js +13 -0
- package/dist/cjs/play-b473e0ab.js.map +1 -0
- package/dist/cjs/profile-avatar.cjs.entry.js +1 -1
- package/dist/cjs/reaction-container.cjs.entry.js +5 -4
- package/dist/cjs/reaction-container.cjs.entry.js.map +1 -1
- package/dist/cjs/{runtime-controls-cfc8fc31.js → runtime-controls-a70872fe.js} +33 -15
- package/dist/cjs/runtime-controls-a70872fe.js.map +1 -0
- package/dist/cjs/{send-media-4ee967d4.js → send-media-8a841e50.js} +559 -192
- package/dist/cjs/send-media-8a841e50.js.map +1 -0
- package/dist/cjs/share-popup.cjs.entry.js +1 -1
- package/dist/cjs/signup-page.cjs.entry.js +2 -2
- package/dist/cjs/spinner-loader.cjs.entry.js +1 -1
- package/dist/cjs/{group-members-cef1198e.js → storage-quota-2e81fb71.js} +254 -10
- package/dist/cjs/storage-quota-2e81fb71.js.map +1 -0
- package/dist/cjs/toast-a75f822c.js +159 -0
- package/dist/cjs/toast-a75f822c.js.map +1 -0
- package/dist/collection/collection-manifest.json +10 -8
- package/dist/collection/components/ChatUIComponent/AddMember.js +14 -7
- package/dist/collection/components/ChatUIComponent/AddMember.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js +8 -2
- package/dist/collection/components/ChatUIComponent/ChatOwnProfile/Profile.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +90 -47
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/ChatVideoMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js +105 -37
- package/dist/collection/components/ChatUIComponent/Footer/ChatFooter.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +45 -11
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/ReactionContainer.js +2 -2
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js +38 -13
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/WebChatBody/web-chat-body.css +1 -0
- package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js +22 -10
- package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js +55 -19
- package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.js +2 -2
- package/dist/collection/components/ChatUIComponent/shared/attachment-preview/attachment-preview.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/block chatlist/BlockChatList.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/chat-loading-placeholder/chat-loading-placeholder.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/chat-tile/chat-tile.js +31 -9
- package/dist/collection/components/ChatUIComponent/shared/chat-tile/chat-tile.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/confirm-dialog/confirm-dialog.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js +66 -157
- package/dist/collection/components/ChatUIComponent/shared/contact-info/contact-info.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/delete-message/delete-message.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js +14 -4
- package/dist/collection/components/ChatUIComponent/shared/document-message/document-message.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/forward-message/forward-message.js +2 -2
- package/dist/collection/components/ChatUIComponent/shared/group-info/group-info.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js +65 -2
- package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/incoming-text-message-bubble/incoming-text-message-bubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/info-panel-media/info-panel-media.js +335 -0
- package/dist/collection/components/ChatUIComponent/shared/info-panel-media/info-panel-media.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/shared/link-preview/link-preview.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/media-gallery/media-gallery.js +11 -2
- package/dist/collection/components/ChatUIComponent/shared/media-gallery/media-gallery.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/message-bubble/message-bubble.js +2 -2
- package/dist/collection/components/ChatUIComponent/shared/message-date-pill/message-date-pill.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/message-info/message-info.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/message-search/message-search.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/new chat/new-chat.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/outgoing-text-message-bubble/outgoing-text-message-bubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/profile sidebar/profile-sidebar.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/profile-avatar/profile-avatar.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/profile-info/profile-info.js +70 -3
- package/dist/collection/components/ChatUIComponent/shared/profile-info/profile-info.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/reply-block/reply-block.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js +31 -2
- package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/reply-message-container/reply-message-container.stories.js +10 -6
- package/dist/collection/components/ChatUIComponent/shared/searchable list/searchable-list.js +3 -3
- package/dist/collection/components/ChatUIComponent/shared/share-popup/share-popup.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/spinner-loader/spinner-loader.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/storage/storage-manager.js +140 -0
- package/dist/collection/components/ChatUIComponent/shared/storage/storage-manager.js.map +1 -0
- package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js +35 -3
- package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.js.map +1 -1
- package/dist/collection/components/Login.js +1 -1
- package/dist/collection/components/Signup.js +2 -2
- package/dist/collection/components/chat-main.js +1 -1
- package/dist/collection/components/my-component/my-component.js +1 -1
- package/dist/collection/components/my-component/web-chat/WebChat.js +145 -1
- package/dist/collection/components/my-component/web-chat/WebChat.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js +44 -2
- package/dist/collection/components/my-component/web-chat/WebchatRightSide.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/bootstrap.js +1 -0
- package/dist/collection/components/my-component/web-chat/bootstrap.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/conversation-ops.js +22 -2
- package/dist/collection/components/my-component/web-chat/conversation-ops.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/data-fetch.js +9 -4
- package/dist/collection/components/my-component/web-chat/data-fetch.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/event-handlers.js +51 -10
- package/dist/collection/components/my-component/web-chat/event-handlers.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/mutations.js +38 -8
- package/dist/collection/components/my-component/web-chat/mutations.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/offline-host.js +31 -17
- package/dist/collection/components/my-component/web-chat/offline-host.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/public-send.js +6 -1
- package/dist/collection/components/my-component/web-chat/public-send.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/shell-render.js +11 -9
- package/dist/collection/components/my-component/web-chat/shell-render.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/web-chat.css +40 -3
- package/dist/collection/components/theme-provider.js +1 -1
- package/dist/collection/constants/content.js +2 -0
- package/dist/collection/lib/chat/block-status.js +12 -0
- package/dist/collection/lib/chat/block-status.js.map +1 -0
- package/dist/collection/lib/chat/clipboard-paste.js +68 -0
- package/dist/collection/lib/chat/clipboard-paste.js.map +1 -0
- package/dist/collection/lib/chat/conversations.js +47 -3
- package/dist/collection/lib/chat/conversations.js.map +1 -1
- package/dist/collection/lib/chat/download-media.js +112 -0
- package/dist/collection/lib/chat/download-media.js.map +1 -0
- package/dist/collection/lib/chat/index.js +6 -2
- package/dist/collection/lib/chat/index.js.map +1 -1
- package/dist/collection/lib/chat/local-notification.js +1 -1
- package/dist/collection/lib/chat/local-notification.js.map +1 -1
- package/dist/collection/lib/chat/same-name-upload.js +53 -0
- package/dist/collection/lib/chat/same-name-upload.js.map +1 -0
- package/dist/collection/lib/chat/send-media.js +194 -27
- package/dist/collection/lib/chat/send-media.js.map +1 -1
- package/dist/collection/lib/chat/session.js +9 -3
- package/dist/collection/lib/chat/session.js.map +1 -1
- package/dist/collection/lib/chat/storage-quota.js +226 -0
- package/dist/collection/lib/chat/storage-quota.js.map +1 -0
- package/dist/collection/lib/custom-ui/public-api.js +5 -0
- package/dist/collection/lib/custom-ui/public-api.js.map +1 -1
- package/dist/collection/lib/drawer.js +42 -4
- package/dist/collection/lib/drawer.js.map +1 -1
- package/dist/collection/lib/helpers.js +29 -1
- package/dist/collection/lib/mqtt/dispatch.js +7 -3
- package/dist/collection/lib/mqtt/dispatch.js.map +1 -1
- package/dist/collection/sdk/headless-api.js +8 -0
- package/dist/collection/sdk/headless-api.js.map +1 -1
- package/dist/collection/sdk/index.js +1 -0
- package/dist/collection/sdk/index.js.map +1 -1
- package/dist/collection/sdk/webchat-api.js +5 -0
- package/dist/collection/sdk/webchat-api.js.map +1 -1
- package/dist/collection/store/storage-quota.js +244 -0
- package/dist/collection/store/storage-quota.js.map +1 -0
- package/dist/collection/testing/iso-chat-sdk-mock.js +10 -6
- package/dist/components/AudioBubble.js +22 -10
- package/dist/components/AudioBubble.js.map +1 -1
- package/dist/components/BlockChatList.js +2 -2
- package/dist/components/ChatFooter.js +172 -37
- package/dist/components/ChatFooter.js.map +1 -1
- package/dist/components/ChatSidebar.js +102 -49
- package/dist/components/ChatSidebar.js.map +1 -1
- package/dist/components/GroupCast2.js +1 -1
- package/dist/components/Login.js +1 -1
- package/dist/components/Profile.js +20 -9
- package/dist/components/Profile.js.map +1 -1
- package/dist/components/WebChat.js +301 -126
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/WebChatBody.js +39 -14
- package/dist/components/WebChatBody.js.map +1 -1
- package/dist/components/WebChatHeader.js +48 -15
- package/dist/components/WebChatHeader.js.map +1 -1
- package/dist/components/WebchatRightSide.js +22 -7
- package/dist/components/WebchatRightSide.js.map +1 -1
- package/dist/components/admin-transfer-dialog.js +2 -2
- package/dist/components/attachment-preview2.js +1 -1
- package/dist/components/chat-app.js +85 -73
- package/dist/components/chat-app.js.map +1 -1
- package/dist/components/chat-assets.js +1 -1
- package/dist/components/chat-document-message-bubble.js +1 -1
- package/dist/components/chat-image-message-bubble.js +1 -1
- package/dist/components/chat-loading-placeholder2.js +1 -1
- package/dist/components/chat-tile2.js +12 -7
- package/dist/components/chat-tile2.js.map +1 -1
- package/dist/components/chat-video-message-bubble.js +1 -1
- package/dist/components/client.js +11 -47
- package/dist/components/client.js.map +1 -1
- package/dist/components/confirm-dialog.js +1 -1
- package/dist/components/contact-info2.js +73 -162
- package/dist/components/contact-info2.js.map +1 -1
- package/dist/components/content.js +2 -0
- package/dist/components/content.js.map +1 -1
- package/dist/components/conversation.js +1 -1
- package/dist/components/conversations.js +91 -0
- package/dist/components/conversations.js.map +1 -0
- package/dist/components/delete-message.js +1 -1
- package/dist/components/document-message2.js +15 -6
- package/dist/components/document-message2.js.map +1 -1
- package/dist/components/download-media.js +115 -0
- package/dist/components/download-media.js.map +1 -0
- package/dist/components/download.js +5 -0
- package/dist/components/download.js.map +1 -0
- package/dist/components/drawer.js +42 -5
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/forward-memebers.js +56 -20
- package/dist/components/forward-memebers.js.map +1 -1
- package/dist/components/forward-message.js +2 -2
- package/dist/components/group-chat-contacts2.js +1 -1
- package/dist/components/group-info.js +1 -1
- package/dist/components/group-members.js +26 -298
- package/dist/components/group-members.js.map +1 -1
- package/dist/components/helpers.js +28 -1
- package/dist/components/helpers.js.map +1 -1
- package/dist/components/image-message2.js +17 -2
- package/dist/components/image-message2.js.map +1 -1
- package/dist/components/incoming-text-message-bubble2.js +1 -1
- package/dist/components/index.js +21 -2
- package/dist/components/index.js.map +1 -1
- package/dist/{esm/group-members-7909941c.js → components/index3.js} +3 -52
- package/dist/components/index3.js.map +1 -0
- package/dist/components/info-panel-media.d.ts +11 -0
- package/dist/components/info-panel-media.js +8 -0
- package/dist/components/info-panel-media.js.map +1 -0
- package/dist/components/info-panel-media2.js +242 -0
- package/dist/components/info-panel-media2.js.map +1 -0
- package/dist/components/link-preview2.js +1 -1
- package/dist/components/local-notification.js +1 -1
- package/dist/components/local-notification.js.map +1 -1
- package/dist/components/media-gallery.js +11 -2
- package/dist/components/media-gallery.js.map +1 -1
- package/dist/components/member-add.js +16 -9
- package/dist/components/member-add.js.map +1 -1
- package/dist/components/message-bubble2.js +2 -2
- package/dist/components/message-date-pill2.js +1 -1
- package/dist/components/message-info2.js +2 -2
- package/dist/components/message-search2.js +1 -1
- package/dist/components/messages.js +1 -1
- package/dist/components/my-component.js +1 -1
- package/dist/components/new-chat-sidebar.js +1 -1
- package/dist/components/new-chat2.js +1 -1
- package/dist/components/outgoing-text-message-bubble2.js +1 -1
- package/dist/components/profile-avatar2.js +1 -1
- package/dist/components/profile-info2.js +69 -6
- package/dist/components/profile-info2.js.map +1 -1
- package/dist/components/profile-sidebar2.js +2 -2
- package/dist/components/prompt-exit-group.js +26 -3
- package/dist/components/prompt-exit-group.js.map +1 -1
- package/dist/components/reaction-container.js +2 -2
- package/dist/components/reply-block2.js +1 -1
- package/dist/components/reply-message-container2.js +12 -2
- package/dist/components/reply-message-container2.js.map +1 -1
- package/dist/components/searchable-list2.js +3 -3
- package/dist/components/send-media.js +242 -33
- package/dist/components/send-media.js.map +1 -1
- package/dist/components/share-popup.js +1 -1
- package/dist/components/signup-page.js +2 -2
- package/dist/components/spinner-loader2.js +1 -1
- package/dist/components/storage-manager.js +125 -0
- package/dist/components/storage-manager.js.map +1 -0
- package/dist/components/storage-quota.js +223 -0
- package/dist/components/storage-quota.js.map +1 -0
- package/dist/components/storage-quota2.js +248 -0
- package/dist/components/storage-quota2.js.map +1 -0
- package/dist/components/theme-provider2.js +1 -1
- package/dist/components/video-message2.js +19 -3
- package/dist/components/video-message2.js.map +1 -1
- package/dist/components/web-chat-storage.d.ts +11 -0
- package/dist/components/web-chat-storage.js +8 -0
- package/dist/components/web-chat-storage.js.map +1 -0
- package/dist/esm/admin-transfer-dialog.entry.js +2 -2
- package/dist/esm/{app-globals-e3f4717b.js → app-globals-eba1ca0c.js} +3 -3
- package/dist/esm/{app-globals-e3f4717b.js.map → app-globals-eba1ca0c.js.map} +1 -1
- package/dist/esm/{attachment-preview_22.entry.js → attachment-preview_23.entry.js} +657 -354
- package/dist/esm/attachment-preview_23.entry.js.map +1 -0
- package/dist/esm/audio-bubble_4.entry.js +66 -22
- package/dist/esm/audio-bubble_4.entry.js.map +1 -1
- package/dist/esm/chat-app.entry.js +1 -1
- package/dist/esm/chat-document-message-bubble.entry.js +1 -1
- package/dist/esm/chat-image-message-bubble.entry.js +1 -1
- package/dist/esm/chat-tile_3.entry.js +15 -11
- package/dist/esm/chat-tile_3.entry.js.map +1 -1
- package/dist/esm/chat-video-message-bubble.entry.js +1 -1
- package/dist/esm/confirm-dialog.entry.js +1 -1
- package/dist/esm/{content-fb138a93.js → content-fd0af283.js} +3 -1
- package/dist/esm/content-fd0af283.js.map +1 -0
- package/dist/esm/delete-message.entry.js +1 -1
- package/dist/esm/download-5368a10f.js +117 -0
- package/dist/esm/download-5368a10f.js.map +1 -0
- package/dist/esm/{drawer-7de04622.js → drawer-a457d820.js} +43 -6
- package/dist/esm/drawer-a457d820.js.map +1 -0
- package/dist/esm/forward-memebers.entry.js +59 -22
- package/dist/esm/forward-memebers.entry.js.map +1 -1
- package/dist/esm/forward-message.entry.js +2 -2
- package/dist/esm/group-chat-contacts.entry.js +2 -2
- package/dist/esm/{group-members-36cf9395.js → group-members-d603f29f.js} +2 -2
- package/dist/esm/{group-members-36cf9395.js.map → group-members-d603f29f.js.map} +1 -1
- package/dist/esm/{groupcast-5fb19ec3.js → groupcast-4f15b050.js} +14 -50
- package/dist/esm/groupcast-4f15b050.js.map +1 -0
- package/dist/esm/{groupcast-f96c1d9e.js → groupcast-c6da3918.js} +2 -2
- package/dist/esm/{groupcast-f96c1d9e.js.map → groupcast-c6da3918.js.map} +1 -1
- package/dist/esm/{helpers-f33b895c.js → helpers-1632a4c7.js} +29 -2
- package/dist/esm/helpers-1632a4c7.js.map +1 -0
- package/dist/esm/index.js +9 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{toast-a1531088.js → index.m-8c70037f.js} +2 -156
- package/dist/esm/{toast-a1531088.js.map → index.m-8c70037f.js.map} +1 -1
- package/dist/esm/info-panel-media_2.entry.js +239 -0
- package/dist/esm/info-panel-media_2.entry.js.map +1 -0
- package/dist/esm/isometrik-webchat.js +11 -9
- package/dist/esm/isometrik-webchat.js.map +1 -1
- package/dist/esm/loader.js +11 -9
- package/dist/esm/loader.js.map +1 -1
- package/dist/esm/{local-notification-4c1e166d.js → local-notification-f9ae9062.js} +3 -3
- package/dist/esm/local-notification-f9ae9062.js.map +1 -0
- package/dist/esm/login-page_3.entry.js +219 -65
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/esm/media-gallery.entry.js +10 -2
- package/dist/esm/media-gallery.entry.js.map +1 -1
- package/dist/esm/member-add.entry.js +20 -11
- package/dist/esm/member-add.entry.js.map +1 -1
- package/dist/esm/message-bubble.entry.js +2 -2
- package/dist/esm/{message-reaction-0d2ef75f.js → message-reaction-0a2bb115.js} +2 -2
- package/dist/esm/{message-reaction-0d2ef75f.js.map → message-reaction-0a2bb115.js.map} +1 -1
- package/dist/esm/messages-057dbecb.js +167 -0
- package/dist/esm/messages-057dbecb.js.map +1 -0
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/new-chat-sidebar.entry.js +2 -2
- package/dist/esm/play-05ae077a.js +9 -0
- package/dist/esm/play-05ae077a.js.map +1 -0
- package/dist/esm/profile-avatar.entry.js +1 -1
- package/dist/esm/reaction-container.entry.js +5 -4
- package/dist/esm/reaction-container.entry.js.map +1 -1
- package/dist/esm/{runtime-controls-ff81e90a.js → runtime-controls-bdb84aeb.js} +21 -3
- package/dist/esm/runtime-controls-bdb84aeb.js.map +1 -0
- package/dist/esm/{send-media-58e7145b.js → send-media-04f7ca0a.js} +533 -180
- package/dist/esm/send-media-04f7ca0a.js.map +1 -0
- package/dist/esm/share-popup.entry.js +1 -1
- package/dist/esm/signup-page.entry.js +2 -2
- package/dist/esm/spinner-loader.entry.js +1 -1
- package/dist/esm/storage-quota-6329fabe.js +578 -0
- package/dist/esm/storage-quota-6329fabe.js.map +1 -0
- package/dist/esm/toast-f681e916.js +157 -0
- package/dist/esm/toast-f681e916.js.map +1 -0
- package/dist/isometrik-webchat/index.esm.js +1 -1
- package/dist/isometrik-webchat/index.esm.js.map +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js +1 -1
- package/dist/isometrik-webchat/isometrik-webchat.esm.js.map +1 -1
- package/dist/isometrik-webchat/p-0161f40b.js +2 -0
- package/dist/isometrik-webchat/p-0161f40b.js.map +1 -0
- package/dist/isometrik-webchat/{p-d892b4d4.entry.js → p-02db2116.entry.js} +2 -2
- package/dist/isometrik-webchat/p-03933431.entry.js +2 -0
- package/dist/isometrik-webchat/{p-352b589e.entry.js.map → p-03933431.entry.js.map} +1 -1
- package/dist/isometrik-webchat/{p-c591fa45.js → p-04fdbd0a.js} +2 -2
- package/dist/isometrik-webchat/p-0bb42151.entry.js +2 -0
- package/dist/isometrik-webchat/p-0bb42151.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-c5bff6a1.entry.js → p-119fc683.entry.js} +2 -2
- package/dist/isometrik-webchat/p-19d37e1f.js +2 -0
- package/dist/isometrik-webchat/p-19d37e1f.js.map +1 -0
- package/dist/isometrik-webchat/{p-925decda.js → p-1dc52239.js} +2 -2
- package/dist/isometrik-webchat/p-1f0e8230.entry.js +2 -0
- package/dist/isometrik-webchat/p-1f0e8230.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-7b25f234.entry.js → p-35f2b9ae.entry.js} +2 -2
- package/dist/isometrik-webchat/p-3a0409fc.js +2 -0
- package/dist/isometrik-webchat/p-3a0409fc.js.map +1 -0
- package/dist/isometrik-webchat/{p-9982fa21.js → p-3dca1e56.js} +2 -2
- package/dist/isometrik-webchat/p-3dca1e56.js.map +1 -0
- package/dist/isometrik-webchat/p-40217f22.js +2 -0
- package/dist/isometrik-webchat/p-40217f22.js.map +1 -0
- package/dist/isometrik-webchat/{p-3b3dc33e.js → p-46be73c5.js} +2 -2
- package/dist/isometrik-webchat/p-56521ea4.entry.js +2 -0
- package/dist/isometrik-webchat/{p-f7d05551.entry.js → p-57f97cef.entry.js} +2 -2
- package/dist/isometrik-webchat/p-5f7eebbf.entry.js +2 -0
- package/dist/isometrik-webchat/p-605cb14e.entry.js +2 -0
- package/dist/isometrik-webchat/p-605cb14e.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-640e2c03.entry.js +2 -0
- package/dist/isometrik-webchat/p-69d953cb.entry.js +2 -0
- package/dist/isometrik-webchat/p-69d953cb.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-6c5eb178.js +2 -0
- package/dist/isometrik-webchat/{p-d8b65cf4.entry.js → p-6eadaa6c.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-161fcb35.entry.js → p-7130f547.entry.js} +2 -2
- package/dist/isometrik-webchat/p-782d1bd2.js +2 -0
- package/dist/isometrik-webchat/p-782d1bd2.js.map +1 -0
- package/dist/isometrik-webchat/p-8142a54d.js +2 -0
- package/dist/isometrik-webchat/p-8142a54d.js.map +1 -0
- package/dist/isometrik-webchat/{p-cbb1179b.entry.js → p-89a8fc58.entry.js} +2 -2
- package/dist/isometrik-webchat/p-8f17345f.js +7 -0
- package/dist/isometrik-webchat/p-8f17345f.js.map +1 -0
- package/dist/isometrik-webchat/p-991d5437.js +2 -0
- package/dist/isometrik-webchat/p-991d5437.js.map +1 -0
- package/dist/isometrik-webchat/p-9b70e93f.entry.js +2 -0
- package/dist/isometrik-webchat/p-a5faa465.entry.js +2 -0
- package/dist/isometrik-webchat/p-a5faa465.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-a83932d4.js +2 -0
- package/dist/isometrik-webchat/p-a83932d4.js.map +1 -0
- package/dist/isometrik-webchat/p-b0f6f9ab.entry.js +2 -0
- package/dist/isometrik-webchat/p-b0f6f9ab.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-3664e0ad.entry.js → p-b431d864.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-0ccfbe90.entry.js → p-b516938b.entry.js} +2 -2
- package/dist/isometrik-webchat/p-be09cdc8.js +2 -0
- package/dist/isometrik-webchat/p-be09cdc8.js.map +1 -0
- package/dist/isometrik-webchat/{p-5b965e04.js → p-c4b7babb.js} +2 -2
- package/dist/isometrik-webchat/{p-5b965e04.js.map → p-c4b7babb.js.map} +1 -1
- package/dist/isometrik-webchat/p-d0f6679d.entry.js +2 -0
- package/dist/isometrik-webchat/p-d0f6679d.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-d44c612a.entry.js +2 -0
- package/dist/isometrik-webchat/p-dc963574.entry.js +2 -0
- package/dist/isometrik-webchat/{p-5d1877d1.entry.js.map → p-dc963574.entry.js.map} +1 -1
- package/dist/isometrik-webchat/p-eb1f3118.entry.js +2 -0
- package/dist/isometrik-webchat/p-f18fa23d.js +2 -0
- package/dist/isometrik-webchat/p-f18fa23d.js.map +1 -0
- package/dist/isometrik-webchat/{p-08ba6153.entry.js → p-f5502a63.entry.js} +2 -2
- package/dist/types/components/ChatUIComponent/ChatOwnProfile/Profile.d.ts +2 -0
- package/dist/types/components/ChatUIComponent/ChatSidebar/ChatSidebar.d.ts +10 -0
- package/dist/types/components/ChatUIComponent/Footer/ChatFooter.d.ts +3 -0
- package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +3 -0
- package/dist/types/components/ChatUIComponent/WebChatBody/WebChatBody.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.d.ts +5 -2
- package/dist/types/components/ChatUIComponent/shared/chat-tile/chat-tile.d.ts +4 -1
- package/dist/types/components/ChatUIComponent/shared/contact-info/contact-info.d.ts +8 -22
- package/dist/types/components/ChatUIComponent/shared/image-message/image-message.d.ts +5 -0
- package/dist/types/components/ChatUIComponent/shared/info-panel-media/info-panel-media.d.ts +45 -0
- package/dist/types/components/ChatUIComponent/shared/media-gallery/media-gallery.d.ts +1 -0
- package/dist/types/components/ChatUIComponent/shared/profile-info/profile-info.d.ts +8 -0
- package/dist/types/components/ChatUIComponent/shared/reply-message-container/reply-message-container.d.ts +3 -0
- package/dist/types/components/ChatUIComponent/shared/storage/storage-manager.d.ts +17 -0
- package/dist/types/components/ChatUIComponent/shared/video-message/video-message.d.ts +3 -0
- package/dist/types/components/my-component/web-chat/WebChat.d.ts +22 -0
- package/dist/types/components/my-component/web-chat/WebchatRightSide.d.ts +7 -0
- package/dist/types/components/my-component/web-chat/conversation-ops.d.ts +10 -2
- package/dist/types/components/my-component/web-chat/event-handlers.d.ts +5 -0
- package/dist/types/components/my-component/web-chat/mutations.d.ts +2 -2
- package/dist/types/components.d.ts +133 -2
- package/dist/types/lib/chat/block-status.d.ts +11 -0
- package/dist/types/lib/chat/clipboard-paste.d.ts +16 -0
- package/dist/types/lib/chat/download-media.d.ts +11 -0
- package/dist/types/lib/chat/index.d.ts +6 -2
- package/dist/types/lib/chat/same-name-upload.d.ts +24 -0
- package/dist/types/lib/chat/send-media.d.ts +90 -0
- package/dist/types/lib/chat/storage-quota.d.ts +98 -0
- package/dist/types/lib/custom-ui/public-api.d.ts +1 -1
- package/dist/types/lib/drawer.d.ts +1 -0
- package/dist/types/sdk/headless-api.d.ts +7 -0
- package/dist/types/sdk/index.d.ts +1 -0
- package/dist/types/sdk/webchat-api.d.ts +14 -0
- package/dist/types/store/storage-quota.d.ts +64 -0
- package/docs/MEDIA_STORAGE_QUOTA.md +130 -0
- package/package.json +3 -2
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +0 -1
- package/dist/cjs/content-ebca062a.js.map +0 -1
- package/dist/cjs/drawer-00a2323a.js.map +0 -1
- package/dist/cjs/group-members-cef1198e.js.map +0 -1
- package/dist/cjs/groupcast-8441b4df.js.map +0 -1
- package/dist/cjs/helpers-154861e9.js.map +0 -1
- package/dist/cjs/link-preview.cjs.entry.js +0 -49
- package/dist/cjs/link-preview.cjs.entry.js.map +0 -1
- package/dist/cjs/local-notification-bdd04d7a.js.map +0 -1
- package/dist/cjs/runtime-controls-cfc8fc31.js.map +0 -1
- package/dist/cjs/send-media-4ee967d4.js.map +0 -1
- package/dist/components/group-members2.js +0 -37
- package/dist/components/group-members2.js.map +0 -1
- package/dist/esm/attachment-preview_22.entry.js.map +0 -1
- package/dist/esm/content-fb138a93.js.map +0 -1
- package/dist/esm/drawer-7de04622.js.map +0 -1
- package/dist/esm/group-members-7909941c.js.map +0 -1
- package/dist/esm/groupcast-5fb19ec3.js.map +0 -1
- package/dist/esm/helpers-f33b895c.js.map +0 -1
- package/dist/esm/link-preview.entry.js +0 -45
- package/dist/esm/link-preview.entry.js.map +0 -1
- package/dist/esm/local-notification-4c1e166d.js.map +0 -1
- package/dist/esm/runtime-controls-ff81e90a.js.map +0 -1
- package/dist/esm/send-media-58e7145b.js.map +0 -1
- package/dist/isometrik-webchat/p-09980c53.entry.js +0 -2
- package/dist/isometrik-webchat/p-09980c53.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-1eecc7c5.entry.js +0 -2
- package/dist/isometrik-webchat/p-1eecc7c5.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-2cf296e6.entry.js +0 -2
- package/dist/isometrik-webchat/p-2e9974e1.entry.js +0 -2
- package/dist/isometrik-webchat/p-343f50b4.js +0 -7
- package/dist/isometrik-webchat/p-343f50b4.js.map +0 -1
- package/dist/isometrik-webchat/p-352b589e.entry.js +0 -2
- package/dist/isometrik-webchat/p-44da28d3.entry.js +0 -2
- package/dist/isometrik-webchat/p-44da28d3.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-48ce4dca.entry.js +0 -2
- package/dist/isometrik-webchat/p-52a575c0.entry.js +0 -2
- package/dist/isometrik-webchat/p-52a575c0.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-5cfb953d.js +0 -2
- package/dist/isometrik-webchat/p-5cfb953d.js.map +0 -1
- package/dist/isometrik-webchat/p-5d1877d1.entry.js +0 -2
- package/dist/isometrik-webchat/p-6f5037b2.js +0 -2
- package/dist/isometrik-webchat/p-6f5037b2.js.map +0 -1
- package/dist/isometrik-webchat/p-78fb47c4.js +0 -2
- package/dist/isometrik-webchat/p-78fb47c4.js.map +0 -1
- package/dist/isometrik-webchat/p-9982fa21.js.map +0 -1
- package/dist/isometrik-webchat/p-a9efcf1c.entry.js +0 -2
- package/dist/isometrik-webchat/p-a9efcf1c.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-ad02a8ca.entry.js +0 -2
- package/dist/isometrik-webchat/p-b0baa9ad.entry.js +0 -2
- package/dist/isometrik-webchat/p-b0baa9ad.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-b385ac4b.js +0 -2
- package/dist/isometrik-webchat/p-b385ac4b.js.map +0 -1
- package/dist/isometrik-webchat/p-c83e2d5d.entry.js +0 -2
- package/dist/isometrik-webchat/p-d758e431.js +0 -2
- package/dist/isometrik-webchat/p-d864bb9f.entry.js +0 -2
- package/dist/isometrik-webchat/p-d864bb9f.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-dab06d54.js +0 -2
- package/dist/isometrik-webchat/p-dab06d54.js.map +0 -1
- package/dist/isometrik-webchat/p-e40e8866.js +0 -2
- package/dist/isometrik-webchat/p-e40e8866.js.map +0 -1
- package/dist/isometrik-webchat/p-e48a1217.entry.js +0 -2
- /package/dist/isometrik-webchat/{p-d892b4d4.entry.js.map → p-02db2116.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-c591fa45.js.map → p-04fdbd0a.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-c5bff6a1.entry.js.map → p-119fc683.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-925decda.js.map → p-1dc52239.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-7b25f234.entry.js.map → p-35f2b9ae.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-3b3dc33e.js.map → p-46be73c5.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-2cf296e6.entry.js.map → p-56521ea4.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-f7d05551.entry.js.map → p-57f97cef.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-ad02a8ca.entry.js.map → p-5f7eebbf.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-c83e2d5d.entry.js.map → p-640e2c03.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-d758e431.js.map → p-6c5eb178.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-d8b65cf4.entry.js.map → p-6eadaa6c.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-161fcb35.entry.js.map → p-7130f547.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-cbb1179b.entry.js.map → p-89a8fc58.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-e48a1217.entry.js.map → p-9b70e93f.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-3664e0ad.entry.js.map → p-b431d864.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-0ccfbe90.entry.js.map → p-b516938b.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-48ce4dca.entry.js.map → p-d44c612a.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-2e9974e1.entry.js.map → p-eb1f3118.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-08ba6153.entry.js.map → p-f5502a63.entry.js.map} +0 -0
|
@@ -1,23 +1,105 @@
|
|
|
1
1
|
import { r as registerInstance, a as createEvent, h, g as getElement, F as Fragment, f as Host } from './index-bc463197.js';
|
|
2
2
|
import { N as New_Group, c as Group_cast, d as Left_Arrow, e as New_Chat, T as Three_Dots, f as Logout, a as Search, A as Add_User, I as Info, g as CloseButton, h as Clear_Chat, D as Delete, B as Block_User, i as Icon_Doc, j as Icon_Excel, k as Icon_Rtf, l as Icon_Txt, m as Smile, S as Send, n as Attachment, M as Microphone, o as Camera_Add, E as Edit, p as Dark_Theme, q as Message, R as Reply, F as Forward } from './chat-assets-27beb552.js';
|
|
3
3
|
import { C as CancelIcon } from './cancel-4f6541af.js';
|
|
4
|
-
import { A as ATTACHMENT_BODY_PLACEHOLDER, M as MAX_MEDIA_PER_MESSAGE, t as takeMediaFiles,
|
|
4
|
+
import { y as formatBytes, z as isOverLimit, A as usedFraction, B as shouldWarnNearQuota, o as normalizeConversationSearchTag, C as ATTACHMENT_BODY_PLACEHOLDER, D as conversationMatchesSearch, M as MAX_MEDIA_PER_MESSAGE, t as takeMediaFiles, r as mediaLimitToastMessage, p as prepareMediaAttachments, n as isSameNameUploadCancelledError, x as resolveCustomTypeForUpload, w as attachmentBodyForOutgoing, d as buildReplyMetaData, E as canUploadBytes, F as presignedSlotsByMediaId, G as isQuotaExceededError, H as uploadPresignedMediaAttachment, I as resolveAttachmentPayloads, J as mapOutgoingAttachmentsForApi, K as isPresignDuplicateSlot, L as attachmentCaption, N as attachmentFileLabel, O as suppressDuplicateFileCaption } from './send-media-04f7ca0a.js';
|
|
5
5
|
import { i as isPdfAttachment, D as DoubleCheck } from './doublecheck-261763ef.js';
|
|
6
|
-
import { M
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { M } from './index.m-8c70037f.js';
|
|
7
|
+
import { drawerDialogService } from './drawer-a457d820.js';
|
|
8
|
+
import { d as clearAll, u as uniqueById, a as appendUniqueById, e as debounce, f as getFormattedTime, b as getDeviceID, c as getGroupcastUrlQuery, g as generateProfileImageByInitials, h as getFormattedDeliveryTime } from './helpers-1632a4c7.js';
|
|
9
9
|
import { b as getCustomPartTag, f as findWebChatHost, h as hasNamedSlot } from './index-142896ce.js';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { s as showToast } from './toast-f681e916.js';
|
|
11
|
+
import { c as createStore, s as storageQuotaStore, g as groupMembersStore, u as updateConversationNotifications, w as withConversationPushFlag } from './storage-quota-6329fabe.js';
|
|
12
|
+
import { m as messagePushContextFrom, w as withHostMessagePushFields } from './local-notification-f9ae9062.js';
|
|
13
|
+
import { p as postGroupCast, f as getPresignedUrlForGroupcastMedia, h as postGroupCastMessage, i as getGroupcastMessageReadStatus, j as getGroupcastMessageDeliveryStatus, k as deleteGroupcastMessageSelf, l as deleteGroupcastMessageEveryone } from './groupcast-c6da3918.js';
|
|
14
|
+
import { P as PlayIcon, D as DocumentsIcon, a as PhotosIcon } from './play-05ae077a.js';
|
|
12
15
|
import { i as isometrikLogo } from './IsometrikLogo-36cb0542.js';
|
|
13
|
-
import { c as createStore, g as groupMembersStore, u as updateConversationNotifications, w as withConversationPushFlag } from './group-members-7909941c.js';
|
|
14
16
|
import { n as needsAdminTransferBeforeLeave, b as adminTransferCandidates, m as memberDisplayName, a as memberUserId } from './group-admin-leave-a60b9b1a.js';
|
|
15
|
-
import { W as WEB_CONTENT } from './content-
|
|
17
|
+
import { W as WEB_CONTENT } from './content-fd0af283.js';
|
|
16
18
|
import { r as renderMessageBody, e as emitTagUser } from './message-body-render-f5ab3a62.js';
|
|
17
|
-
import { p as postReaction, d as deleteReaction } from './message-reaction-
|
|
19
|
+
import { p as postReaction, d as deleteReaction } from './message-reaction-0a2bb115.js';
|
|
18
20
|
import { d as deriveMessageStatus } from './contracts-50f4ddae.js';
|
|
19
21
|
import './destroy-chat-d0ee28d6.js';
|
|
20
22
|
|
|
23
|
+
/**
|
|
24
|
+
* DM block state for menus and tiles.
|
|
25
|
+
* Uses the latest system message on the conversation row; patchListAfterBlockToggle keeps this accurate after local block/unblock.
|
|
26
|
+
*/
|
|
27
|
+
/** True when the current user initiated the most recent block on this DM (not when they were blocked by the opponent). */
|
|
28
|
+
function isDmBlockedByCurrentUser(conversation, currentUserId) {
|
|
29
|
+
if (!conversation || !currentUserId)
|
|
30
|
+
return false;
|
|
31
|
+
const d = conversation.lastMessageDetails;
|
|
32
|
+
return (d === null || d === void 0 ? void 0 : d.action) === 'userBlockConversation' && d.initiatorId === currentUserId;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Clipboard image paste for the chat composer (ChatFooter).
|
|
37
|
+
* Reuse via `filesFromClipboardData` + `normalizePastedImageFile` before `handleFileUpload`.
|
|
38
|
+
*/
|
|
39
|
+
const IMAGE_MIME_PREFIX = 'image/';
|
|
40
|
+
/** Extension for common image MIME types when the clipboard File has no name. */
|
|
41
|
+
function extensionFromImageMime(mime) {
|
|
42
|
+
const m = (mime || '').toLowerCase();
|
|
43
|
+
if (m === 'image/jpeg' || m === 'image/jpg')
|
|
44
|
+
return 'jpg';
|
|
45
|
+
if (m === 'image/png')
|
|
46
|
+
return 'png';
|
|
47
|
+
if (m === 'image/gif')
|
|
48
|
+
return 'gif';
|
|
49
|
+
if (m === 'image/webp')
|
|
50
|
+
return 'webp';
|
|
51
|
+
if (m === 'image/bmp')
|
|
52
|
+
return 'bmp';
|
|
53
|
+
if (m === 'image/heic' || m === 'image/heif')
|
|
54
|
+
return 'heic';
|
|
55
|
+
if (m.startsWith(IMAGE_MIME_PREFIX))
|
|
56
|
+
return 'png';
|
|
57
|
+
return 'png';
|
|
58
|
+
}
|
|
59
|
+
function isImageMime(type) {
|
|
60
|
+
return (type || '').toLowerCase().startsWith(IMAGE_MIME_PREFIX);
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Collect image files from a ClipboardEvent `clipboardData` / DataTransfer.
|
|
64
|
+
* Prefers `items` (standard for screenshots); falls back to `files` when empty.
|
|
65
|
+
*/
|
|
66
|
+
function filesFromClipboardData(data) {
|
|
67
|
+
if (!data)
|
|
68
|
+
return [];
|
|
69
|
+
const fromItems = [];
|
|
70
|
+
const items = data.items;
|
|
71
|
+
if (items === null || items === void 0 ? void 0 : items.length) {
|
|
72
|
+
for (let i = 0; i < items.length; i++) {
|
|
73
|
+
const item = items[i];
|
|
74
|
+
if (item.kind !== 'file' || !isImageMime(item.type))
|
|
75
|
+
continue;
|
|
76
|
+
const file = item.getAsFile();
|
|
77
|
+
if (file)
|
|
78
|
+
fromItems.push(file);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
if (fromItems.length)
|
|
82
|
+
return fromItems;
|
|
83
|
+
const files = data.files;
|
|
84
|
+
if (!(files === null || files === void 0 ? void 0 : files.length))
|
|
85
|
+
return [];
|
|
86
|
+
return Array.from(files).filter(f => isImageMime(f.type));
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Screenshots often arrive as unnamed blobs; give uploads a stable filename for UI + API.
|
|
90
|
+
*/
|
|
91
|
+
function normalizePastedImageFile(file, now = Date.now()) {
|
|
92
|
+
const name = (file.name || '').trim();
|
|
93
|
+
if (name)
|
|
94
|
+
return file;
|
|
95
|
+
const ext = extensionFromImageMime(file.type || 'image/png');
|
|
96
|
+
return new File([file], `pasted-image-${now}.${ext}`, { type: file.type || `image/${ext === 'jpg' ? 'jpeg' : ext}` });
|
|
97
|
+
}
|
|
98
|
+
function normalizePastedImageFiles(files) {
|
|
99
|
+
const ts = Date.now();
|
|
100
|
+
return files.map((file, i) => normalizePastedImageFile(file, ts + i));
|
|
101
|
+
}
|
|
102
|
+
|
|
21
103
|
/**
|
|
22
104
|
* API `mentionedUsers` shape for postMessages.
|
|
23
105
|
* Callers (custom UI / HOA) may pass `{ userId, userName }`; we map to
|
|
@@ -141,7 +223,7 @@ const NewChat = class {
|
|
|
141
223
|
}
|
|
142
224
|
render() {
|
|
143
225
|
const items = this.contactList || [];
|
|
144
|
-
return (h("div", { key: '
|
|
226
|
+
return (h("div", { key: '6a69060131e8cb8f616713c0e5d17500454e30de', class: "new-chat" }, h("div", { key: '97e167ee5933caa9e3950392639369ca412ab198', class: "header" }, h("button", { key: 'caae4ccc6bef8e789ee24ec67d0c767a8700c67f', type: "button", class: "back-btn", onClick: () => { var _a; return (_a = this.onClose) === null || _a === void 0 ? void 0 : _a.call(this); }, "aria-label": "Back" }, h("img", { key: '11da09f253241b66d185721252c3bdb63a4dea07', class: "theme-icon", src: Left_Arrow, alt: "" })), h("h2", { key: 'ecf17ade3e7d1881553d1042acade30bdb8baadb', class: "title" }, "New Chat")), h("div", { key: '6a4f0476cabffd68efe586fb73e1d033beb4bea1', class: "search-wrap" }, h("div", { key: '0dabd4d0c20862730cbc79bfeb4c2c3798001337', class: "search-bar" }, h("input", { key: '2907730f65e195bd068ca34ff69122b0f1087dd9', type: "text", placeholder: "Search name or number", value: this.searchText, onInput: this.handleSearch }))), this.isLoading ? (h("div", { class: "empty" }, h("spinner-loader", { height: "24px", width: "24px" }))) : (h("div", { class: "list", onScroll: this.handleScroll }, h("div", { class: "row", onClick: this.openGroup }, h("div", { class: "action-icon" }, h("img", { class: "theme-icon", src: New_Group, alt: "" })), h("span", { class: "action-label" }, "New Group")), this.groupcastEnabled !== false ? (h("div", { class: "row", onClick: this.openGroupCast }, h("div", { class: "action-icon" }, h("img", { class: "theme-icon", src: Group_cast, alt: "" })), h("span", { class: "action-label" }, "New Group Cast"))) : null, h("div", { class: "section-label" }, "Contacts"), items.length === 0 ? (h("div", { class: "empty" }, "No results")) : (items.map(item => {
|
|
145
227
|
var _a, _b;
|
|
146
228
|
const name = this.nameOf(item);
|
|
147
229
|
const imageUrl = this.imageOf(item) || '';
|
|
@@ -187,6 +269,161 @@ const conversationStore = {
|
|
|
187
269
|
onChange: onChange
|
|
188
270
|
};
|
|
189
271
|
|
|
272
|
+
const TYPE_LABEL = {
|
|
273
|
+
0: 'Image',
|
|
274
|
+
1: 'Video',
|
|
275
|
+
2: 'Audio',
|
|
276
|
+
3: 'Document',
|
|
277
|
+
8: 'File',
|
|
278
|
+
};
|
|
279
|
+
const TYPE_GLYPH = {
|
|
280
|
+
0: '🖼️',
|
|
281
|
+
1: '🎬',
|
|
282
|
+
2: '🎵',
|
|
283
|
+
3: '📄',
|
|
284
|
+
8: '📎',
|
|
285
|
+
};
|
|
286
|
+
const WebChatStorage = class {
|
|
287
|
+
constructor(hostRef) {
|
|
288
|
+
registerInstance(this, hostRef);
|
|
289
|
+
this.onScroll = (e) => {
|
|
290
|
+
const el = e.target;
|
|
291
|
+
if (el.scrollHeight - el.scrollTop - el.clientHeight < 240) {
|
|
292
|
+
storageQuotaStore.loadMore();
|
|
293
|
+
}
|
|
294
|
+
};
|
|
295
|
+
this.goBack = undefined;
|
|
296
|
+
this.conversationId = '';
|
|
297
|
+
this.version = 0;
|
|
298
|
+
}
|
|
299
|
+
componentWillLoad() {
|
|
300
|
+
this.unsubscribe = storageQuotaStore.subscribe(() => this.version++);
|
|
301
|
+
storageQuotaStore.initialize(this.conversationId || null);
|
|
302
|
+
}
|
|
303
|
+
disconnectedCallback() {
|
|
304
|
+
var _a;
|
|
305
|
+
(_a = this.unsubscribe) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
306
|
+
storageQuotaStore.clearSelection();
|
|
307
|
+
}
|
|
308
|
+
typeLabel(t) {
|
|
309
|
+
var _a;
|
|
310
|
+
return (_a = TYPE_LABEL[t]) !== null && _a !== void 0 ? _a : 'File';
|
|
311
|
+
}
|
|
312
|
+
renderUsage() {
|
|
313
|
+
const u = storageQuotaStore.state.usage;
|
|
314
|
+
if (!u) {
|
|
315
|
+
return storageQuotaStore.state.loadingUsage ? (h("div", { class: "note" }, h("spinner-loader", { height: "20px", width: "20px" }))) : null;
|
|
316
|
+
}
|
|
317
|
+
if (!u.quotaEnabled) {
|
|
318
|
+
return h("div", { class: "note" }, "Storage usage is not limited on this project.");
|
|
319
|
+
}
|
|
320
|
+
const over = isOverLimit(u);
|
|
321
|
+
const pct = `${Math.round(usedFraction(u) * 100)}%`;
|
|
322
|
+
return (h("div", { class: "card" }, h("div", { class: "card-top" }, h("span", { class: "title" }, "Storage"), h("span", { class: "tier", style: {
|
|
323
|
+
background: u.tier === 'paid' ? 'rgba(76,187,23,.14)' : 'var(--bg-tertiary)',
|
|
324
|
+
color: u.tier === 'paid' ? '#2e7d32' : 'var(--text-primary)',
|
|
325
|
+
} }, (u.tier || 'free').toUpperCase())), h("div", { class: "meter" }, h("span", { style: { width: pct, background: over ? '#d32f2f' : 'var(--accent, #6b4df0)' } })), h("div", { class: "figures" }, h("span", null, formatBytes(u.usedBytes), " of ", formatBytes(u.quotaBytes), " used"), h("span", { style: { color: over ? '#d32f2f' : 'inherit', fontWeight: '500' } }, formatBytes(u.remainingBytes), " free")), over ? (h("div", { class: "banner" }, "Storage is full. Delete media to upload again. You can still send and receive text.")) : null));
|
|
326
|
+
}
|
|
327
|
+
renderToolbar() {
|
|
328
|
+
const types = Array.from(new Set(storageQuotaStore.state.media.map(m => m.attachmentType)));
|
|
329
|
+
if (!types.length)
|
|
330
|
+
return null;
|
|
331
|
+
const active = storageQuotaStore.state.typeFilter;
|
|
332
|
+
return (h("div", { class: "toolbar" }, h("button", { type: "button", class: `chip${active == null ? ' on' : ''}`, onClick: () => storageQuotaStore.setTypeFilter(null) }, "All"), types.map(t => (h("button", { type: "button", class: `chip${active === t ? ' on' : ''}`, onClick: () => storageQuotaStore.setTypeFilter(t) }, this.typeLabel(t)))), h("button", { type: "button", class: `chip${storageQuotaStore.state.sortBySizeDesc ? ' on' : ''}`, onClick: () => storageQuotaStore.toggleSortBySize() }, storageQuotaStore.state.sortBySizeDesc ? 'Largest first' : 'Newest first')));
|
|
333
|
+
}
|
|
334
|
+
renderRow(media) {
|
|
335
|
+
var _a;
|
|
336
|
+
const selected = storageQuotaStore.isSelected(media.mediaId);
|
|
337
|
+
const canThumb = !media.restricted && media.thumbnailUrl && (media.attachmentType === 0 || media.attachmentType === 1);
|
|
338
|
+
return (h("div", { class: `row${selected ? ' sel' : ''}`, onClick: () => storageQuotaStore.toggleSelection(media.mediaId) }, h("div", { class: "thumb" }, canThumb ? h("img", { src: media.thumbnailUrl, alt: "" }) : h("span", null, (_a = TYPE_GLYPH[media.attachmentType]) !== null && _a !== void 0 ? _a : '📎')), h("div", { class: "meta" }, h("div", { class: "name" }, media.name || this.typeLabel(media.attachmentType)), h("div", { class: "sub" }, this.typeLabel(media.attachmentType), " \u00B7 ", formatBytes(media.size), media.restricted ? h("span", { class: "restricted" }, "Restricted") : null)), h("input", { class: "check", type: "checkbox", checked: selected, onClick: e => e.stopPropagation(), onChange: () => storageQuotaStore.toggleSelection(media.mediaId) })));
|
|
339
|
+
}
|
|
340
|
+
renderList() {
|
|
341
|
+
const items = storageQuotaStore.visibleMedia();
|
|
342
|
+
if (storageQuotaStore.state.loadingMedia && !items.length) {
|
|
343
|
+
return (h("div", { class: "note", style: { justifyContent: 'center' } }, h("spinner-loader", { height: "26px", width: "26px" })));
|
|
344
|
+
}
|
|
345
|
+
if (!items.length) {
|
|
346
|
+
return (h("div", { class: "empty" }, storageQuotaStore.quotaEnabled ? 'No media uses your storage yet' : 'No media to show'));
|
|
347
|
+
}
|
|
348
|
+
return (h("div", null, items.map(m => this.renderRow(m)), storageQuotaStore.state.paginating ? (h("div", { class: "load-more" }, h("spinner-loader", { height: "20px", width: "20px" }))) : null));
|
|
349
|
+
}
|
|
350
|
+
renderSelectionBar() {
|
|
351
|
+
const count = storageQuotaStore.state.selectedIds.length;
|
|
352
|
+
if (!count)
|
|
353
|
+
return null;
|
|
354
|
+
const bytes = storageQuotaStore.selectedBytes();
|
|
355
|
+
return (h("div", { class: "sel-bar" }, h("span", { class: "count" }, count, " selected", bytes > 0 ? ` · ${formatBytes(bytes)}` : ''), h("button", { type: "button", class: "danger-btn", disabled: storageQuotaStore.state.deleting, onClick: () => storageQuotaStore.deleteSelected() }, "Delete")));
|
|
356
|
+
}
|
|
357
|
+
render() {
|
|
358
|
+
return (h("div", { key: '7088fa1b475801b7be41e29a101f535a7f292c38', class: "storage" }, h("div", { key: 'f13dd77de39152c74ff2d4f4907ebf022833683f', class: "header" }, h("button", { key: '6db7da8a582b7756cba3836eed06bf7322768372', type: "button", class: "back-btn", "aria-label": "Back", onClick: () => { var _a; return (_a = this.goBack) === null || _a === void 0 ? void 0 : _a.call(this); } }, h("img", { key: 'd109013d170ddd77ebdbafce9877319ee2d29d2c', src: Left_Arrow, class: "theme-icon", alt: "" })), h("span", { key: '06d132279bd2f1292c680077e063faee52b09444', class: "title" }, "Manage storage")), h("div", { key: '783dd1ba9529d9a3b265bd93df820a9f5296c53b', class: "scroll", onScroll: this.onScroll }, this.renderUsage(), this.conversationId ? (h("div", { class: "conv-actions" }, h("span", { class: "sub" }, "Showing one conversation"), h("button", { type: "button", class: "link-danger", onClick: () => storageQuotaStore.deleteAllInConversation(this.conversationId) }, "Delete all"))) : null, this.renderToolbar(), this.renderList()), this.renderSelectionBar()));
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
WebChatStorage.style = ":host { display: block; height: 100%; }\n .storage { display: flex; flex-direction: column; height: 100%;\n background: var(--bg-primary); color: var(--text-primary); }\n .header { display: flex; align-items: center; padding: 12px 10px;\n border-bottom: 1px solid var(--border); flex: 0 0 auto; }\n .back-btn { background: none; border: none; cursor: pointer; margin-right: 8px;\n display: flex; align-items: center; padding: 0; }\n .back-btn img { width: var(--icon-md); height: var(--icon-md); }\n .title { font-size: 16px; font-weight: 600; }\n .scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; }\n .card { margin: 12px; padding: 16px; border-radius: 14px;\n border: 1px solid var(--border); background: var(--bg-secondary); }\n .card-top { display: flex; align-items: center; justify-content: space-between; }\n .tier { font-size: 11px; font-weight: 700; letter-spacing: .5px;\n padding: 3px 10px; border-radius: 20px; }\n .meter { height: 8px; border-radius: 8px; overflow: hidden;\n background: var(--bg-tertiary); margin: 12px 0 8px; }\n .meter > span { display: block; height: 100%; border-radius: 8px; }\n .figures { display: flex; justify-content: space-between; font-size: 13px; }\n .banner { margin-top: 12px; padding: 10px 12px; border-radius: 10px;\n font-size: 12.5px; background: rgba(244, 67, 54, .1); color: #d32f2f; }\n .note { margin: 12px; display: flex; gap: 10px; align-items: center;\n color: var(--text-secondary); }\n .toolbar { display: flex; gap: 8px; padding: 0 12px 4px; overflow-x: auto; }\n .chip { border: 1px solid var(--border); background: transparent;\n color: var(--text-primary); border-radius: 16px; padding: 4px 12px;\n font-size: 12.5px; cursor: pointer; white-space: nowrap; }\n .chip.on { background: var(--bg-tertiary); font-weight: 600; }\n .row { display: flex; align-items: center; gap: 12px; padding: 8px 14px;\n cursor: pointer; }\n .row.sel { background: var(--bg-tertiary); }\n .thumb { width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto;\n object-fit: cover; background: var(--bg-tertiary);\n display: flex; align-items: center; justify-content: center; font-size: 20px; }\n .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }\n .meta { flex: 1 1 auto; min-width: 0; }\n .name { font-size: 14px; font-weight: 500; white-space: nowrap;\n overflow: hidden; text-overflow: ellipsis; }\n .sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }\n .restricted { color: #d32f2f; font-weight: 600; margin-left: 6px; }\n .check { width: 22px; height: 22px; flex: 0 0 auto; }\n .empty { text-align: center; color: var(--text-secondary); padding: 48px 16px; }\n .sel-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 12px;\n padding: 10px 14px; border-top: 1px solid var(--border); }\n .sel-bar .count { flex: 1 1 auto; font-weight: 500; }\n .danger-btn { border: none; border-radius: 8px; padding: 8px 16px; cursor: pointer;\n background: #d32f2f; color: #fff; font-weight: 600; }\n .danger-btn[disabled] { opacity: .5; cursor: not-allowed; }\n .load-more { text-align: center; padding: 14px; }\n .conv-actions { display: flex; align-items: center; justify-content: space-between;\n padding: 4px 14px; }\n .link-danger { background: none; border: none; color: #d32f2f; cursor: pointer;\n font-size: 13px; font-weight: 600; }";
|
|
362
|
+
|
|
363
|
+
const makeAdmin = async (conversationId, userId) => {
|
|
364
|
+
const response = await M.getInstance().Conversation.putConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
365
|
+
return response;
|
|
366
|
+
};
|
|
367
|
+
|
|
368
|
+
const removeAdmin = async (conversationId, userId) => {
|
|
369
|
+
const response = await M.getInstance().Conversation.deleteConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
370
|
+
return response;
|
|
371
|
+
};
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Exit-group UX: normal confirm, or sole-admin transfer picker first.
|
|
375
|
+
*/
|
|
376
|
+
function promptExitGroup(opts) {
|
|
377
|
+
const { selfId, members, conversationId, onLeave } = opts;
|
|
378
|
+
if (!conversationId)
|
|
379
|
+
return;
|
|
380
|
+
if (!needsAdminTransferBeforeLeave(selfId, members)) {
|
|
381
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
382
|
+
title: 'Exit group',
|
|
383
|
+
description: 'Are you sure you want to exit this group?',
|
|
384
|
+
handleConfirm: () => onLeave(),
|
|
385
|
+
});
|
|
386
|
+
return;
|
|
387
|
+
}
|
|
388
|
+
const candidates = adminTransferCandidates(selfId, members);
|
|
389
|
+
if (!candidates.length) {
|
|
390
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
391
|
+
title: 'Cannot exit yet',
|
|
392
|
+
description: 'You are the only admin. Add another member and make them an admin before leaving.',
|
|
393
|
+
yesText: 'OK',
|
|
394
|
+
noText: 'Close',
|
|
395
|
+
handleConfirm: () => drawerDialogService.closeDialog('confirm-dialog'),
|
|
396
|
+
});
|
|
397
|
+
return;
|
|
398
|
+
}
|
|
399
|
+
drawerDialogService.openDialog('admin-transfer', {
|
|
400
|
+
candidates,
|
|
401
|
+
handlePick: async (member) => {
|
|
402
|
+
const memberId = memberUserId(member);
|
|
403
|
+
const name = memberDisplayName(member);
|
|
404
|
+
if (!memberId)
|
|
405
|
+
return;
|
|
406
|
+
try {
|
|
407
|
+
await makeAdmin(conversationId, memberId);
|
|
408
|
+
// Keep leave safety-net in sync — API succeeded, store must reflect it.
|
|
409
|
+
if (groupMembersStore.getCurrentConversationId() === conversationId) {
|
|
410
|
+
groupMembersStore.updateAdminStatus(memberId, true);
|
|
411
|
+
}
|
|
412
|
+
drawerDialogService.closeDialog('admin-transfer');
|
|
413
|
+
onLeave();
|
|
414
|
+
}
|
|
415
|
+
catch (err) {
|
|
416
|
+
console.error('[webchat] make admin before leave failed', err);
|
|
417
|
+
showToast({
|
|
418
|
+
message: `Could not make ${name} an admin. Try again or pick someone else.`,
|
|
419
|
+
type: 'error',
|
|
420
|
+
position: 'bottom-right',
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
|
|
190
427
|
function formatUnixTimestamp(unixTimestamp) {
|
|
191
428
|
const date = new Date(unixTimestamp);
|
|
192
429
|
|
|
@@ -221,6 +458,12 @@ const ChatSidebar = class {
|
|
|
221
458
|
registerInstance(this, hostRef);
|
|
222
459
|
this.chatTileSelected = createEvent(this, "chatTileSelected", 7);
|
|
223
460
|
this.groupExited = createEvent(this, "groupExited", 7);
|
|
461
|
+
this.openStorageManagementFromBanner = () => {
|
|
462
|
+
drawerDialogService.openDrawer('storage', { conversationId: '' }, { id: 'storage' });
|
|
463
|
+
};
|
|
464
|
+
this.dismissStorageQuotaBanner = () => {
|
|
465
|
+
this.storageQuotaBannerDismissed = true;
|
|
466
|
+
};
|
|
224
467
|
this.toggleMoreMenu = (e) => {
|
|
225
468
|
e.stopPropagation();
|
|
226
469
|
this.showMoreMenu = !this.showMoreMenu;
|
|
@@ -351,12 +594,10 @@ const ChatSidebar = class {
|
|
|
351
594
|
// Filter out selected users from the results
|
|
352
595
|
const filteredUsers = res.users.filter(user => !(selectedUserIds === null || selectedUserIds === void 0 ? void 0 : selectedUserIds.includes(user.userId)));
|
|
353
596
|
if (skip === 0) {
|
|
354
|
-
this.nonBlockedContacts =
|
|
597
|
+
this.nonBlockedContacts = uniqueById(filteredUsers, (c) => c.userId);
|
|
355
598
|
}
|
|
356
599
|
else {
|
|
357
|
-
|
|
358
|
-
const uniqueContacts = filteredUsers.filter(newContact => !this.nonBlockedContacts.some(existingContact => existingContact.userId === newContact.userId));
|
|
359
|
-
this.nonBlockedContacts = [...this.nonBlockedContacts, ...uniqueContacts];
|
|
600
|
+
this.nonBlockedContacts = appendUniqueById(this.nonBlockedContacts, filteredUsers, (c) => c.userId);
|
|
360
601
|
}
|
|
361
602
|
if (res.users.length < paramsForNonBlockedContacts.limit) {
|
|
362
603
|
this.hasMoreMembers = false;
|
|
@@ -453,9 +694,19 @@ const ChatSidebar = class {
|
|
|
453
694
|
this.memberPickerIsGroupCast = false;
|
|
454
695
|
this.pendingGroupMembers = [];
|
|
455
696
|
this.showMoreMenu = false;
|
|
697
|
+
this.storageQuotaVersion = 0;
|
|
698
|
+
this.storageQuotaBannerDismissed = false;
|
|
456
699
|
}
|
|
457
700
|
componentWillLoad() {
|
|
458
701
|
var _a, _b;
|
|
702
|
+
this.unsubscribeStorageQuota = storageQuotaStore.subscribe(() => {
|
|
703
|
+
this.storageQuotaVersion++;
|
|
704
|
+
const u = storageQuotaStore.state.usage;
|
|
705
|
+
if (u && !shouldWarnNearQuota(u)) {
|
|
706
|
+
this.storageQuotaBannerDismissed = false;
|
|
707
|
+
}
|
|
708
|
+
});
|
|
709
|
+
void storageQuotaStore.loadUsage();
|
|
459
710
|
this.debouncedSearchHandler = debounce((query) => {
|
|
460
711
|
var _a;
|
|
461
712
|
(_a = this.handleSearchData) === null || _a === void 0 ? void 0 : _a.call(this, query);
|
|
@@ -478,6 +729,20 @@ const ChatSidebar = class {
|
|
|
478
729
|
}, {});
|
|
479
730
|
this.sortConversations();
|
|
480
731
|
}
|
|
732
|
+
disconnectedCallback() {
|
|
733
|
+
var _a;
|
|
734
|
+
(_a = this.unsubscribeStorageQuota) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
735
|
+
}
|
|
736
|
+
shouldShowStorageQuotaBanner() {
|
|
737
|
+
const u = storageQuotaStore.state.usage;
|
|
738
|
+
return !!u && !this.storageQuotaBannerDismissed && shouldWarnNearQuota(u);
|
|
739
|
+
}
|
|
740
|
+
renderStorageQuotaBanner() {
|
|
741
|
+
const u = storageQuotaStore.state.usage;
|
|
742
|
+
if (!u || !this.shouldShowStorageQuotaBanner())
|
|
743
|
+
return null;
|
|
744
|
+
return (h("div", { class: "storage-quota-banner", role: "alert" }, h("div", { class: "storage-quota-banner-icon-cell", "aria-hidden": "true" }, h("span", { class: "storage-quota-banner-icon" }, "\u26A0\uFE0F")), h("div", { class: "storage-quota-banner-body" }, h("p", { class: "storage-quota-banner-title" }, "Media storage almost full"), h("p", { class: "storage-quota-banner-sub" }, "Free up space to keep sending media."), h("div", { class: "storage-quota-banner-actions" }, h("button", { type: "button", class: "storage-quota-banner-manage", onClick: this.openStorageManagementFromBanner }, "Manage storage"))), h("button", { type: "button", class: "storage-quota-banner-dismiss", "aria-label": "Dismiss storage notice", onClick: this.dismissStorageQuotaBanner }, "\u00D7")));
|
|
745
|
+
}
|
|
481
746
|
handleConversationListChange() {
|
|
482
747
|
this.sortConversations();
|
|
483
748
|
if (this.selectedConversationID) {
|
|
@@ -580,10 +845,11 @@ const ChatSidebar = class {
|
|
|
580
845
|
this.chatTileSelected.emit(selectedConvoId);
|
|
581
846
|
}
|
|
582
847
|
handleSearch(e) {
|
|
583
|
-
var _a
|
|
848
|
+
var _a;
|
|
584
849
|
const input = e.target;
|
|
585
|
-
this.searchQuery = (
|
|
586
|
-
|
|
850
|
+
this.searchQuery = (input === null || input === void 0 ? void 0 : input.value) || '';
|
|
851
|
+
const normalized = normalizeConversationSearchTag(this.searchQuery);
|
|
852
|
+
(_a = this.debouncedSearchHandler) === null || _a === void 0 ? void 0 : _a.call(this, normalized !== null && normalized !== void 0 ? normalized : '');
|
|
587
853
|
}
|
|
588
854
|
isTileSelected(conversationId) {
|
|
589
855
|
if (this.selectedConversationID) {
|
|
@@ -777,7 +1043,7 @@ const ChatSidebar = class {
|
|
|
777
1043
|
return formatUnixTimestamp((details === null || details === void 0 ? void 0 : details.updatedAt) || (details === null || details === void 0 ? void 0 : details.sentAt) || (tile === null || tile === void 0 ? void 0 : tile.updatedAt) || '');
|
|
778
1044
|
}
|
|
779
1045
|
renderConversationTile(tile) {
|
|
780
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u;
|
|
1046
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
781
1047
|
const conversationId = tile.conversationId;
|
|
782
1048
|
const isSelected = this.isTileSelected(conversationId);
|
|
783
1049
|
const previewText = this.getLastMessageText(tile, this.userMetaData) || '';
|
|
@@ -808,14 +1074,14 @@ const ChatSidebar = class {
|
|
|
808
1074
|
((_k = tile === null || tile === void 0 ? void 0 : tile.lastMessageDetails) === null || _k === void 0 ? void 0 : _k.readByAll) ||
|
|
809
1075
|
((_m = (_l = tile === null || tile === void 0 ? void 0 : tile.lastMessageDetails) === null || _l === void 0 ? void 0 : _l.readBy) === null || _m === void 0 ? void 0 : _m.length) === ((_o = tile === null || tile === void 0 ? void 0 : tile.members) === null || _o === void 0 ? void 0 : _o.length) - 1, isDelivered: ((_p = tile.lastMessageDetails) === null || _p === void 0 ? void 0 : _p.isDeliveredToAllMembers) ||
|
|
810
1076
|
((_q = tile === null || tile === void 0 ? void 0 : tile.lastMessageDetails) === null || _q === void 0 ? void 0 : _q.deliveredToAll) ||
|
|
811
|
-
((_r = tile === null || tile === void 0 ? void 0 : tile.members) === null || _r === void 0 ? void 0 : _r.length) - 1 === ((_t = (_s = tile === null || tile === void 0 ? void 0 : tile.lastMessageDetails) === null || _s === void 0 ? void 0 : _s.deliveredTo) === null || _t === void 0 ? void 0 : _t.length), isPending: (_u = tile.lastMessageDetails) === null || _u === void 0 ? void 0 : _u.isPendingAllMembers, isTyping: isTyping, typingUserName: typingUserName }));
|
|
1077
|
+
((_r = tile === null || tile === void 0 ? void 0 : tile.members) === null || _r === void 0 ? void 0 : _r.length) - 1 === ((_t = (_s = tile === null || tile === void 0 ? void 0 : tile.lastMessageDetails) === null || _s === void 0 ? void 0 : _s.deliveredTo) === null || _t === void 0 ? void 0 : _t.length), isPending: (_u = tile.lastMessageDetails) === null || _u === void 0 ? void 0 : _u.isPendingAllMembers, isTyping: isTyping, typingUserName: typingUserName, isBlockedByMe: isDmBlockedByCurrentUser(tile, (_v = this.userMetaData) === null || _v === void 0 ? void 0 : _v.userId) }));
|
|
812
1078
|
}
|
|
813
1079
|
handleDeleteConversation(event) {
|
|
814
1080
|
const { conversationId } = event.detail;
|
|
815
1081
|
this.onDeleteConversation(conversationId);
|
|
816
1082
|
}
|
|
817
1083
|
handleChatTileMenu(event) {
|
|
818
|
-
var _a, _b;
|
|
1084
|
+
var _a, _b, _c, _d, _e;
|
|
819
1085
|
const { action, conversationId } = event.detail || {};
|
|
820
1086
|
if (!conversationId || !action)
|
|
821
1087
|
return;
|
|
@@ -823,19 +1089,20 @@ const ChatSidebar = class {
|
|
|
823
1089
|
const name = (tile === null || tile === void 0 ? void 0 : tile.isGroup)
|
|
824
1090
|
? tile === null || tile === void 0 ? void 0 : tile.conversationTitle
|
|
825
1091
|
: ((_a = tile === null || tile === void 0 ? void 0 : tile.opponentDetails) === null || _a === void 0 ? void 0 : _a.userName) || ((_b = tile === null || tile === void 0 ? void 0 : tile.lastMessageDetails) === null || _b === void 0 ? void 0 : _b.userName) || 'chat';
|
|
826
|
-
if (action === 'block') {
|
|
1092
|
+
if (action === 'block' || action === 'unblock') {
|
|
827
1093
|
if (tile === null || tile === void 0 ? void 0 : tile.isGroup)
|
|
828
1094
|
return;
|
|
1095
|
+
const isUnblock = action === 'unblock';
|
|
829
1096
|
drawerDialogService.openDialog('confirm-dialog', {
|
|
830
|
-
title: 'Block',
|
|
831
|
-
description: `Are you sure you want to block ${name} ?`,
|
|
1097
|
+
title: isUnblock ? 'Unblock' : 'Block',
|
|
1098
|
+
description: `Are you sure you want to ${isUnblock ? 'unblock' : 'block'} ${name} ?`,
|
|
832
1099
|
handleConfirm: () => {
|
|
833
1100
|
var _a;
|
|
834
1101
|
this.el.dispatchEvent(new CustomEvent('contact-action', {
|
|
835
1102
|
bubbles: true,
|
|
836
1103
|
composed: true,
|
|
837
1104
|
detail: {
|
|
838
|
-
action: 'block-contact',
|
|
1105
|
+
action: isUnblock ? 'unblock-contact' : 'block-contact',
|
|
839
1106
|
oppenentId: (_a = tile === null || tile === void 0 ? void 0 : tile.opponentDetails) === null || _a === void 0 ? void 0 : _a.userId,
|
|
840
1107
|
userName: name,
|
|
841
1108
|
},
|
|
@@ -858,7 +1125,40 @@ const ChatSidebar = class {
|
|
|
858
1125
|
});
|
|
859
1126
|
return;
|
|
860
1127
|
}
|
|
1128
|
+
if (action === 'exit') {
|
|
1129
|
+
if (!(tile === null || tile === void 0 ? void 0 : tile.isGroup))
|
|
1130
|
+
return;
|
|
1131
|
+
const selfId = String(((_c = this.userMetaData) === null || _c === void 0 ? void 0 : _c.userId) || '');
|
|
1132
|
+
const storeMembers = groupMembersStore.getCurrentConversationId() === conversationId
|
|
1133
|
+
? groupMembersStore.getMembers()
|
|
1134
|
+
: [];
|
|
1135
|
+
const detailMembers = conversationId === ((_d = this.conversationDetails) === null || _d === void 0 ? void 0 : _d.conversationId) &&
|
|
1136
|
+
Array.isArray((_e = this.conversationDetails) === null || _e === void 0 ? void 0 : _e.members)
|
|
1137
|
+
? this.conversationDetails.members
|
|
1138
|
+
: [];
|
|
1139
|
+
const tileMembers = Array.isArray(tile === null || tile === void 0 ? void 0 : tile.members) ? tile.members : [];
|
|
1140
|
+
const members = storeMembers.length
|
|
1141
|
+
? storeMembers
|
|
1142
|
+
: detailMembers.length
|
|
1143
|
+
? detailMembers
|
|
1144
|
+
: tileMembers;
|
|
1145
|
+
promptExitGroup({
|
|
1146
|
+
selfId,
|
|
1147
|
+
members,
|
|
1148
|
+
conversationId,
|
|
1149
|
+
onLeave: () => {
|
|
1150
|
+
this.el.dispatchEvent(new CustomEvent('contact-action', {
|
|
1151
|
+
bubbles: true,
|
|
1152
|
+
composed: true,
|
|
1153
|
+
detail: { action: 'exit-group', conversationId },
|
|
1154
|
+
}));
|
|
1155
|
+
},
|
|
1156
|
+
});
|
|
1157
|
+
return;
|
|
1158
|
+
}
|
|
861
1159
|
if (action === 'delete') {
|
|
1160
|
+
if (tile === null || tile === void 0 ? void 0 : tile.isGroup)
|
|
1161
|
+
return;
|
|
862
1162
|
drawerDialogService.openDialog('confirm-dialog', {
|
|
863
1163
|
title: 'Delete chat',
|
|
864
1164
|
description: `Are you sure you want to delete chat with ${name} ?`,
|
|
@@ -1120,24 +1420,6 @@ const ChatSidebar = class {
|
|
|
1120
1420
|
}
|
|
1121
1421
|
}
|
|
1122
1422
|
async exitGroup(conversationId) {
|
|
1123
|
-
var _a, _b;
|
|
1124
|
-
const selfId = String(((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId) || '');
|
|
1125
|
-
const storeMembers = groupMembersStore.getCurrentConversationId() === conversationId
|
|
1126
|
-
? groupMembersStore.getMembers()
|
|
1127
|
-
: [];
|
|
1128
|
-
const detailMembers = Array.isArray((_b = this.conversationDetails) === null || _b === void 0 ? void 0 : _b.members)
|
|
1129
|
-
? this.conversationDetails.members
|
|
1130
|
-
: [];
|
|
1131
|
-
const members = storeMembers.length ? storeMembers : detailMembers;
|
|
1132
|
-
if (needsAdminTransferBeforeLeave(selfId, members)) {
|
|
1133
|
-
showToast({
|
|
1134
|
-
message: 'Make another member an admin before leaving this group',
|
|
1135
|
-
type: 'error',
|
|
1136
|
-
position: 'bottom-right',
|
|
1137
|
-
});
|
|
1138
|
-
drawerDialogService.closeDialog('confirm-dialog');
|
|
1139
|
-
return;
|
|
1140
|
-
}
|
|
1141
1423
|
try {
|
|
1142
1424
|
this.isLoading = true;
|
|
1143
1425
|
await M.getInstance().Conversation.deleteConversationLeave({ conversationId });
|
|
@@ -1177,17 +1459,9 @@ const ChatSidebar = class {
|
|
|
1177
1459
|
});
|
|
1178
1460
|
}
|
|
1179
1461
|
render() {
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
var _a;
|
|
1184
|
-
if (!searchQuery)
|
|
1185
|
-
return true;
|
|
1186
|
-
const title = tile.isGroup ? tile.conversationTitle : (_a = tile === null || tile === void 0 ? void 0 : tile.opponentDetails) === null || _a === void 0 ? void 0 : _a.userName;
|
|
1187
|
-
return (title || '').toLowerCase().includes(searchQuery);
|
|
1188
|
-
});
|
|
1189
|
-
return (h("div", { class: "chat-sidebar-container", style: { backgroundColor: this.sidebarColor || undefined } }, this.isGroupCreationLoading && (h("div", { class: "loader" }, h("spinner-loader", { height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" }))), this.showGroupInfo ? (h("div", { class: "new-chat-panel" }, h("iso-group-info", { label: this.memberPickerIsGroupCast ? 'Create New Groupcast' : 'Create New Group', selectedUserIds: this.pendingGroupMembers.map(m => m.userId), selectedUsers: this.pendingGroupMembers, isGroupCast: this.memberPickerIsGroupCast, closeGroupInfo: this.closeGroupInfoStep, afterCreate: this.finishGroupInfoStep }))) : this.showMemberPicker ? (h("div", { class: "new-chat-panel" }, h("div", { class: "picker-back" }, h("button", { type: "button", onClick: this.closeMemberPicker, "aria-label": "Back" }, h("img", { class: "theme-icon", src: Left_Arrow, alt: "" })), h("h2", { class: "picker-title" }, this.memberPickerIsGroupCast ? 'New Group Cast' : 'New Group')), h("searchable-list", { label: this.memberPickerIsGroupCast ? 'New Group Cast' : 'New Group', hideTopbar: true, contactList: this.nonBlockedContacts, isSearching: true, isLoading: this.isLoadingMember, hasMore: this.hasMoreMembers, skip: this.skip, paginationLoading: this.isPaginationMember, getForwardMessageMemberList: (query, skip) => this.getAllGroupMemeber(query || '', skip || 0), onSend: this.submitMemberPicker, height: "100%" }))) : this.showNewChat ? (h("div", { class: "new-chat-panel" }, h("new-chat", { contactList: this.nonBlockedContacts, isLoading: this.isLoadingMember, hasMore: this.hasMoreMembers, skip: this.skip, paginationLoading: this.isPaginationMember, onSearch: (query, skip) => this.getAllMemeber(query || '', skip || 0), onSelect: this.handleNewChatContactPick, onClose: () => this.closeNewChat(), customParts: this.customParts, groupcastEnabled: this.groupcastEnabled }))) : ([
|
|
1190
|
-
h("div", { class: "chat-sidebar-top" }, h("div", { class: "chat-sidebar-header-row" }, this.isSidebarHeaderLabel ? (h("h1", { class: "chat-sidebar-header" }, this.sidebarHeaderLabel || 'Chats')) : (h("span", null)), h("div", { class: "chat-sidebar-actions" }, this.showMqttStatus !== false ? (h("span", { class: { 'mqtt-status': true, 'is-offline': !this.isMqttConnected }, title: this.isMqttConnected ? 'Realtime connected' : 'Realtime disconnected', "aria-label": this.isMqttConnected ? 'MQTT connected' : 'MQTT disconnected' }, h("span", { class: { 'mqtt-status-dot': true, 'is-connected': !!this.isMqttConnected } }), this.isMqttConnected ? 'Live' : 'Offline')) : null, h("button", { type: "button", class: "icon-btn", title: "New Chat", onClick: () => this.openNewChat() }, h("img", { src: New_Chat, alt: "New chat" })), h("div", { class: "more-wrap" }, h("button", { type: "button", class: "icon-btn", title: "More Options", "aria-label": "More options", "aria-haspopup": "menu", "aria-expanded": this.showMoreMenu ? 'true' : 'false', onClick: this.toggleMoreMenu }, h("img", { class: "theme-icon", src: Three_Dots, alt: "" })), this.showMoreMenu ? (h("div", { class: "more-menu", role: "menu" }, h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.onNewGroupFromMenu }, h("img", { class: "theme-icon", src: New_Group, alt: "" }), h("span", null, "New group")), h("div", { class: "more-divider" }), h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.onLogoutFromMenu }, h("img", { class: "theme-icon", src: Logout, alt: "" }), h("span", null, "Log out")))) : null))), this.isSidebarHeaderSearch !== false ? (h("div", { class: "chat-sidebar-search" }, h("input", { type: "search", placeholder: "Search or start new chat", value: this.searchQuery, onInput: (e) => this.handleSearch(e) }))) : null),
|
|
1462
|
+
const filteredConversations = (this.sortedConversationList || []).filter((tile) => conversationMatchesSearch(tile, this.searchQuery));
|
|
1463
|
+
return (h("div", { key: '04cd944ba6d3cac807478f04f4a5d14beb0bf7e5', class: "chat-sidebar-container", style: { backgroundColor: this.sidebarColor || undefined } }, this.isGroupCreationLoading && (h("div", { key: 'ca7206e5bd615031208237dc5bc975f37996a40f', class: "loader" }, h("spinner-loader", { key: 'eaf545407ed631f6d6529d40b0a6309bd9623eee', height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" }))), this.showGroupInfo ? (h("div", { class: "new-chat-panel" }, h("iso-group-info", { label: this.memberPickerIsGroupCast ? 'Create New Groupcast' : 'Create New Group', selectedUserIds: this.pendingGroupMembers.map(m => m.userId), selectedUsers: this.pendingGroupMembers, isGroupCast: this.memberPickerIsGroupCast, closeGroupInfo: this.closeGroupInfoStep, afterCreate: this.finishGroupInfoStep }))) : this.showMemberPicker ? (h("div", { class: "new-chat-panel" }, h("div", { class: "picker-back" }, h("button", { type: "button", onClick: this.closeMemberPicker, "aria-label": "Back" }, h("img", { class: "theme-icon", src: Left_Arrow, alt: "" })), h("h2", { class: "picker-title" }, this.memberPickerIsGroupCast ? 'New Group Cast' : 'New Group')), h("searchable-list", { label: this.memberPickerIsGroupCast ? 'New Group Cast' : 'New Group', hideTopbar: true, contactList: this.nonBlockedContacts, isSearching: true, isLoading: this.isLoadingMember, hasMore: this.hasMoreMembers, skip: this.skip, paginationLoading: this.isPaginationMember, getForwardMessageMemberList: (query, skip) => this.getAllGroupMemeber(query || '', skip || 0), onSend: this.submitMemberPicker, height: "100%" }))) : this.showNewChat ? (h("div", { class: "new-chat-panel" }, h("new-chat", { contactList: this.nonBlockedContacts, isLoading: this.isLoadingMember, hasMore: this.hasMoreMembers, skip: this.skip, paginationLoading: this.isPaginationMember, onSearch: (query, skip) => this.getAllMemeber(query || '', skip || 0), onSelect: this.handleNewChatContactPick, onClose: () => this.closeNewChat(), customParts: this.customParts, groupcastEnabled: this.groupcastEnabled }))) : ([
|
|
1464
|
+
h("div", { class: "chat-sidebar-top" }, h("div", { class: "chat-sidebar-header-row" }, this.isSidebarHeaderLabel ? (h("h1", { class: "chat-sidebar-header" }, this.sidebarHeaderLabel || 'Chats')) : (h("span", null)), h("div", { class: "chat-sidebar-actions" }, this.showMqttStatus !== false ? (h("span", { class: { 'mqtt-status': true, 'is-offline': !this.isMqttConnected }, title: this.isMqttConnected ? 'Realtime connected' : 'Realtime disconnected', "aria-label": this.isMqttConnected ? 'MQTT connected' : 'MQTT disconnected' }, h("span", { class: { 'mqtt-status-dot': true, 'is-connected': !!this.isMqttConnected } }), this.isMqttConnected ? 'Live' : 'Offline')) : null, h("button", { type: "button", class: "icon-btn", title: "New Chat", onClick: () => this.openNewChat() }, h("img", { src: New_Chat, alt: "New chat" })), h("div", { class: "more-wrap" }, h("button", { type: "button", class: "icon-btn", title: "More Options", "aria-label": "More options", "aria-haspopup": "menu", "aria-expanded": this.showMoreMenu ? 'true' : 'false', onClick: this.toggleMoreMenu }, h("img", { class: "theme-icon", src: Three_Dots, alt: "" })), this.showMoreMenu ? (h("div", { class: "more-menu", role: "menu" }, h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.onNewGroupFromMenu }, h("img", { class: "theme-icon", src: New_Group, alt: "" }), h("span", null, "New group")), h("div", { class: "more-divider" }), h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.onLogoutFromMenu }, h("img", { class: "theme-icon", src: Logout, alt: "" }), h("span", null, "Log out")))) : null))), this.isSidebarHeaderSearch !== false ? (h("div", { class: "chat-sidebar-search" }, h("input", { type: "search", placeholder: "Search or start new chat", value: this.searchQuery, onInput: (e) => this.handleSearch(e) }))) : null, this.renderStorageQuotaBanner()),
|
|
1191
1465
|
h("div", { class: "chat-sidebar-list", onScroll: (e) => this.handleListScroll(e) }, this.isConversationLoading ? (h("div", { class: "chat-sidebar-loading" }, h("spinner-loader", { height: "15px", width: "15px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" }))) : filteredConversations.length > 0 ? (filteredConversations.map((tile) => this.renderConversationTile(tile))) : (h("div", { class: "chat-sidebar-empty" }, "No conversation found")), this.isLoading && this.hasMoreConversations && (h("div", { class: "chat-sidebar-loading" }, h("spinner-loader", { height: "15px", width: "15px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" })))),
|
|
1192
1466
|
])));
|
|
1193
1467
|
}
|
|
@@ -1197,7 +1471,7 @@ const ChatSidebar = class {
|
|
|
1197
1471
|
"conversationDetails": ["handleConversationDetailsChange"]
|
|
1198
1472
|
}; }
|
|
1199
1473
|
};
|
|
1200
|
-
ChatSidebar.style = ":host {\n display: block;\n height: var(--h-full);\n width: var(--w-full);\n min-width: 0;\n max-width: var(--w-full);\n min-height: 0;\n overflow: hidden;\n font-family: var(--font-primary);\n }\n .chat-sidebar-container {\n display: flex;\n flex-direction: column;\n height: var(--h-full);\n width: var(--w-full);\n max-width: var(--w-full);\n min-width: 0;\n min-height: 0;\n box-sizing: border-box;\n background: var(--bg-primary);\n border-right: 1px solid var(--border);\n z-index: 10;\n font-family: var(--font-primary);\n overflow: hidden;\n }\n .chat-sidebar-top {\n padding: var(--space-16) var(--space-16) var(--space-8);\n }\n .chat-sidebar-header-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: var(--gap-4);\n }\n .chat-sidebar-header {\n font-size: var(--text-24);\n font-weight: 700;\n letter-spacing: -0.02em;\n color: var(--text-primary);\n margin: 0;\n }\n .chat-sidebar-actions {\n display: flex;\n align-items: center;\n gap: var(--gap-4);\n }\n .icon-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--space-8);\n border: none;\n background: transparent;\n border-radius: var(--rounded-full);\n cursor: pointer;\n color: var(--icon);\n transition: background-color 0.15s;\n }\n .icon-btn:hover {\n background-color: var(--hover-overlay);\n }\n .icon-btn img {\n width: var(--icon-lg);\n height: var(--icon-lg);\n display: block;\n }\n .more-wrap .icon-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n }\n .more-wrap {\n position: relative;\n }\n .more-menu {\n position: absolute;\n right: 0;\n top: 100%;\n margin-top: var(--gap-4);\n width: 13rem;\n background: var(--bg-primary);\n border-radius: var(--rounded-12);\n box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);\n border: 1px solid var(--border-subtle);\n padding: var(--space-8) 0;\n z-index: 50;\n }\n .more-item {\n width: calc(100% - 12px);\n margin: 0 6px;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-8) var(--space-12);\n border: none;\n background: transparent;\n border-radius: var(--rounded-8);\n cursor: pointer;\n text-align: left;\n font-size: var(--text-14);\n color: var(--text-primary);\n }\n .more-item:hover {\n background: var(--brand-soft);\n color: var(--brand);\n }\n .more-item.danger {\n color: var(--danger);\n }\n .more-item.danger:hover {\n background: rgba(250, 0, 0, 0.08);\n color: var(--danger);\n }\n .more-item img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n }\n .more-divider {\n height: 1px;\n background: var(--border-subtle);\n margin: var(--gap-4) var(--space-8);\n }\n .chat-sidebar-header-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .chat-sidebar-header-actions button {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n }\n .chat-sidebar-header-actions img {\n width: 28px;\n height: 28px;\n }\n .new-chat-overlay {\n position: absolute;\n inset: 0;\n z-index: 20;\n background: var(--bg-primary-color);\n }\n .chat-sidebar-search {\n position: relative;\n margin-bottom: var(--gap-8);\n }\n .chat-sidebar-search input {\n width: var(--w-full);\n box-sizing: border-box;\n padding: var(--space-12) var(--space-12);\n border: none;\n border-radius: var(--rounded-8);\n background: var(--bg-input);\n color: var(--text-primary);\n font-size: var(--text-14);\n outline: none;\n }\n .chat-sidebar-search input::placeholder {\n color: var(--text-tertiary);\n }\n .chat-sidebar-search input:focus {\n box-shadow: 0 0 0 2px var(--focus-ring);\n }\n .chat-sidebar-list {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n }\n .chat-sidebar-list::-webkit-scrollbar {\n width: var(--scrollbar);\n }\n .chat-sidebar-list::-webkit-scrollbar-track {\n background: transparent;\n }\n .chat-sidebar-list::-webkit-scrollbar-thumb {\n background-color: var(--bg-input);\n border-radius: var(--rounded-10);\n }\n .chat-sidebar-empty,\n .chat-sidebar-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--space-16) var(--space-12);\n color: var(--text-primary);\n text-align: center;\n }\n .loader {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: var(--space-16);\n border-radius: var(--rounded-4);\n z-index: 10000;\n height: var(--h-full);\n width: var(--w-full);\n background: var(--overlay);\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .toaster {\n position: fixed;\n bottom: var(--space-16);\n right: var(--space-16);\n z-index: 1000;\n }\n .new-chat-panel {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n height: var(--h-full);\n }\n .new-chat-panel new-chat,\n .new-chat-panel searchable-list {\n display: block;\n flex: 1;\n min-height: 0;\n height: var(--h-full);\n }\n .picker-back {\n height: 4rem;\n padding: 0 var(--space-16);\n border-bottom: 1px solid var(--border);\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n flex-shrink: 0;\n font-family: var(--font-primary);\n }\n .picker-back button {\n width: 2.25rem;\n height: 2.25rem;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n background: transparent;\n border-radius: var(--rounded-full);\n cursor: pointer;\n padding: 0;\n }\n .picker-back button img {\n width: var(--icon-md);\n height: var(--icon-md);\n display: block;\n }\n .picker-back button:hover {\n background: var(--hover-overlay);\n }\n .picker-title {\n margin: 0;\n font-size: var(--text-16);\n font-weight: 600;\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .theme-icon { filter: var(--svg-icon-filter); }\n .mqtt-status {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n margin-right: 4px;\n padding: 4px 8px;\n border-radius: 999px;\n border: 1px solid var(--border-subtle, #e4e4e7);\n background: var(--bg-surface, #fff);\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n line-height: 1;\n color: #16a34a;\n user-select: none;\n white-space: nowrap;\n }\n .mqtt-status.is-offline {\n color: #dc2626;\n }\n .mqtt-status-dot {\n width: 6px;\n height: 6px;\n border-radius: 999px;\n flex-shrink: 0;\n background: #ef4444;\n }\n .mqtt-status-dot.is-connected {\n background: #22c55e;\n }";
|
|
1474
|
+
ChatSidebar.style = ":host {\n display: block;\n height: var(--h-full);\n width: var(--w-full);\n min-width: 0;\n max-width: var(--w-full);\n min-height: 0;\n overflow: hidden;\n font-family: var(--font-primary);\n }\n .chat-sidebar-container {\n display: flex;\n flex-direction: column;\n height: var(--h-full);\n width: var(--w-full);\n max-width: var(--w-full);\n min-width: 0;\n min-height: 0;\n box-sizing: border-box;\n background: var(--bg-primary);\n border-right: 1px solid var(--border);\n z-index: 10;\n font-family: var(--font-primary);\n overflow: hidden;\n }\n .chat-sidebar-top {\n padding: var(--space-16) var(--space-16) var(--space-8);\n }\n .chat-sidebar-header-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin-bottom: var(--gap-4);\n }\n .chat-sidebar-header {\n font-size: var(--text-24);\n font-weight: 700;\n letter-spacing: -0.02em;\n color: var(--text-primary);\n margin: 0;\n }\n .chat-sidebar-actions {\n display: flex;\n align-items: center;\n gap: var(--gap-4);\n }\n .icon-btn {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--space-8);\n border: none;\n background: transparent;\n border-radius: var(--rounded-full);\n cursor: pointer;\n color: var(--icon);\n transition: background-color 0.15s;\n }\n .icon-btn:hover {\n background-color: var(--hover-overlay);\n }\n .icon-btn img {\n width: var(--icon-lg);\n height: var(--icon-lg);\n display: block;\n }\n .more-wrap .icon-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n }\n .more-wrap {\n position: relative;\n }\n .more-menu {\n position: absolute;\n right: 0;\n top: 100%;\n margin-top: var(--gap-4);\n width: 13rem;\n background: var(--bg-primary);\n border-radius: var(--rounded-12);\n box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);\n border: 1px solid var(--border-subtle);\n padding: var(--space-8) 0;\n z-index: 50;\n }\n .more-item {\n width: calc(100% - 12px);\n margin: 0 6px;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-8) var(--space-12);\n border: none;\n background: transparent;\n border-radius: var(--rounded-8);\n cursor: pointer;\n text-align: left;\n font-size: var(--text-14);\n color: var(--text-primary);\n }\n .more-item:hover {\n background: var(--brand-soft);\n color: var(--brand);\n }\n .more-item.danger {\n color: var(--danger);\n }\n .more-item.danger:hover {\n background: rgba(250, 0, 0, 0.08);\n color: var(--danger);\n }\n .more-item img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n }\n .more-divider {\n height: 1px;\n background: var(--border-subtle);\n margin: var(--gap-4) var(--space-8);\n }\n .chat-sidebar-header-actions {\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .chat-sidebar-header-actions button {\n background: none;\n border: none;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n }\n .chat-sidebar-header-actions img {\n width: 28px;\n height: 28px;\n }\n .new-chat-overlay {\n position: absolute;\n inset: 0;\n z-index: 20;\n background: var(--bg-primary-color);\n }\n .chat-sidebar-search {\n position: relative;\n margin-bottom: var(--gap-8);\n }\n .chat-sidebar-search input {\n width: var(--w-full);\n box-sizing: border-box;\n padding: var(--space-12) var(--space-12);\n border: none;\n border-radius: var(--rounded-8);\n background: var(--bg-input);\n color: var(--text-primary);\n font-size: var(--text-14);\n outline: none;\n }\n .chat-sidebar-search input::placeholder {\n color: var(--text-tertiary);\n }\n .chat-sidebar-search input:focus {\n box-shadow: 0 0 0 2px var(--focus-ring);\n }\n /* Mirrors Flutter IsmChatStorageQuotaListBanner \u2014 shown when usage \u2265 90% (see shouldWarnNearQuota). */\n .storage-quota-banner {\n display: flex;\n align-items: flex-start;\n gap: 0;\n /* Horizontal edge aligns with search/header: parent .chat-sidebar-top already has side padding. */\n margin: var(--gap-8) 0 0;\n /* Comfortable inset so icon + copy are not flush to rounded edges (matches product reference). */\n padding: var(--space-16) 42px var(--space-16) var(--space-16);\n border-radius: var(--rounded-12);\n background: var(--bg-secondary, rgba(0, 0, 0, 0.04));\n border: 1px solid var(--border-subtle);\n position: relative;\n box-sizing: border-box;\n }\n /* Icon column: own padding so the warning glyph has a safe area from the banner border. */\n .storage-quota-banner-icon-cell {\n flex: 0 0 auto;\n display: flex;\n align-items: flex-start;\n justify-content: center;\n padding: 2px 12px 4px 2px;\n box-sizing: border-box;\n }\n .storage-quota-banner-icon {\n font-size: 22px;\n line-height: 1;\n display: block;\n }\n /* Text stack: vertical padding keeps title/subtitle/CTA off the bottom edge. */\n .storage-quota-banner-body {\n flex: 1 1 auto;\n min-width: 0;\n padding: 2px 0 4px;\n box-sizing: border-box;\n }\n .storage-quota-banner-title {\n margin: 0;\n font-size: var(--text-15, 15px);\n font-weight: 600;\n color: var(--text-primary);\n }\n .storage-quota-banner-sub {\n margin: 4px 0 0;\n font-size: var(--text-13, 13px);\n line-height: 1.35;\n color: var(--text-secondary);\n }\n .storage-quota-banner-actions {\n margin-top: var(--gap-8);\n display: flex;\n align-items: center;\n gap: var(--gap-8);\n }\n .storage-quota-banner-manage {\n border: none;\n background: none;\n padding: 0;\n cursor: pointer;\n font-size: var(--text-14, 14px);\n font-weight: 600;\n color: var(--brand, var(--accent, #6b4df0));\n }\n .storage-quota-banner-manage:hover {\n text-decoration: underline;\n }\n .storage-quota-banner-dismiss {\n position: absolute;\n top: 10px;\n right: 10px;\n width: 28px;\n height: 28px;\n border: none;\n border-radius: var(--rounded-8);\n background: transparent;\n cursor: pointer;\n color: var(--text-tertiary);\n font-size: 18px;\n line-height: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .storage-quota-banner-dismiss:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n .chat-sidebar-list {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n overflow-x: hidden;\n }\n .chat-sidebar-list::-webkit-scrollbar {\n width: var(--scrollbar);\n }\n .chat-sidebar-list::-webkit-scrollbar-track {\n background: transparent;\n }\n .chat-sidebar-list::-webkit-scrollbar-thumb {\n background-color: var(--bg-input);\n border-radius: var(--rounded-10);\n }\n .chat-sidebar-empty,\n .chat-sidebar-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n padding: var(--space-16) var(--space-12);\n color: var(--text-primary);\n text-align: center;\n }\n .loader {\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n padding: var(--space-16);\n border-radius: var(--rounded-4);\n z-index: 10000;\n height: var(--h-full);\n width: var(--w-full);\n background: var(--overlay);\n display: flex;\n align-items: center;\n justify-content: center;\n }\n .toaster {\n position: fixed;\n bottom: var(--space-16);\n right: var(--space-16);\n z-index: 1000;\n }\n .new-chat-panel {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n height: var(--h-full);\n }\n .new-chat-panel new-chat,\n .new-chat-panel searchable-list {\n display: block;\n flex: 1;\n min-height: 0;\n height: var(--h-full);\n }\n .picker-back {\n height: 4rem;\n padding: 0 var(--space-16);\n border-bottom: 1px solid var(--border);\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n flex-shrink: 0;\n font-family: var(--font-primary);\n }\n .picker-back button {\n width: 2.25rem;\n height: 2.25rem;\n display: flex;\n align-items: center;\n justify-content: center;\n border: none;\n background: transparent;\n border-radius: var(--rounded-full);\n cursor: pointer;\n padding: 0;\n }\n .picker-back button img {\n width: var(--icon-md);\n height: var(--icon-md);\n display: block;\n }\n .picker-back button:hover {\n background: var(--hover-overlay);\n }\n .picker-title {\n margin: 0;\n font-size: var(--text-16);\n font-weight: 600;\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .theme-icon { filter: var(--svg-icon-filter); }\n .mqtt-status {\n display: inline-flex;\n align-items: center;\n gap: 6px;\n margin-right: 4px;\n padding: 4px 8px;\n border-radius: 999px;\n border: 1px solid var(--border-subtle, #e4e4e7);\n background: var(--bg-surface, #fff);\n font-size: 10px;\n font-weight: 600;\n letter-spacing: 0.04em;\n text-transform: uppercase;\n line-height: 1;\n color: #16a34a;\n user-select: none;\n white-space: nowrap;\n }\n .mqtt-status.is-offline {\n color: #dc2626;\n }\n .mqtt-status-dot {\n width: 6px;\n height: 6px;\n border-radius: 999px;\n flex-shrink: 0;\n background: #ef4444;\n }\n .mqtt-status-dot.is-connected {\n background: #22c55e;\n }";
|
|
1201
1475
|
|
|
1202
1476
|
const ContextMenu = class {
|
|
1203
1477
|
constructor(hostRef) {
|
|
@@ -1503,70 +1777,6 @@ const GroupCast = class {
|
|
|
1503
1777
|
};
|
|
1504
1778
|
GroupCast.style = ":host {\n display: block;\n height: 100%;\n background: var(--bg-primary, var(--bg-primary-color));\n color: var(--text-primary, var(--text-primary-color));\n }\n .group-cast-container {\n padding: 20px 0 20px 20px;\n height: 96%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n box-sizing: border-box;\n }\n .group-cast-header-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: 0 20px 0 0;\n }\n .group-cast-header {\n font-size: var(--title-font-size, 24px);\n font-weight: 600;\n margin: 0;\n }\n .icon-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0;\n display: flex;\n align-items: center;\n }\n .icon-btn img {\n width: 28px;\n height: 28px;\n }\n .group-cast-body {\n flex: 1;\n min-height: 0;\n overflow: hidden auto;\n padding: 0 15px 0 0;\n }\n .group-cast-body::-webkit-scrollbar { width: 5px; }\n .group-cast-body::-webkit-scrollbar-track { background: transparent; }\n .group-cast-body::-webkit-scrollbar-thumb {\n background-color: var(--bg-secondary, var(--bg-secondary-color)) !important;\n border-radius: 10px;\n }\n chat-tile:hover {\n background-color: var(--bg-secondary, var(--bg-secondary-color)) !important;\n }\n .create-panel {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-height: 0;\n height: 100%;\n padding-right: 20px;\n }\n .create-panel searchable-list,\n .create-panel iso-group-info {\n display: block;\n flex: 1;\n min-height: 0;\n height: 100%;\n }\n .picker-back {\n display: flex;\n align-items: center;\n padding: 0 0 8px;\n }\n .picker-back button {\n border: none;\n background: transparent;\n color: inherit;\n font-size: 18px;\n cursor: pointer;\n }\n .empty {\n text-align: center;\n padding: 20px;\n color: var(--text-tertiary, var(--text-tertiary-color));\n }\n .loader {\n position: absolute;\n inset: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(0,0,0,0.25);\n z-index: 5;\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
|
|
1505
1779
|
|
|
1506
|
-
const makeAdmin = async (conversationId, userId) => {
|
|
1507
|
-
const response = await M.getInstance().Conversation.putConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
1508
|
-
return response;
|
|
1509
|
-
};
|
|
1510
|
-
|
|
1511
|
-
const removeAdmin = async (conversationId, userId) => {
|
|
1512
|
-
const response = await M.getInstance().Conversation.deleteConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
1513
|
-
return response;
|
|
1514
|
-
};
|
|
1515
|
-
|
|
1516
|
-
/**
|
|
1517
|
-
* Exit-group UX: normal confirm, or sole-admin transfer picker first.
|
|
1518
|
-
*/
|
|
1519
|
-
function promptExitGroup(opts) {
|
|
1520
|
-
const { selfId, members, conversationId, onLeave } = opts;
|
|
1521
|
-
if (!conversationId)
|
|
1522
|
-
return;
|
|
1523
|
-
if (!needsAdminTransferBeforeLeave(selfId, members)) {
|
|
1524
|
-
drawerDialogService.openDialog('confirm-dialog', {
|
|
1525
|
-
title: 'Exit group',
|
|
1526
|
-
description: 'Are you sure you want to exit this group?',
|
|
1527
|
-
handleConfirm: () => onLeave(),
|
|
1528
|
-
});
|
|
1529
|
-
return;
|
|
1530
|
-
}
|
|
1531
|
-
const candidates = adminTransferCandidates(selfId, members);
|
|
1532
|
-
if (!candidates.length) {
|
|
1533
|
-
drawerDialogService.openDialog('confirm-dialog', {
|
|
1534
|
-
title: 'Cannot exit yet',
|
|
1535
|
-
description: 'You are the only admin. Add another member and make them an admin before leaving.',
|
|
1536
|
-
yesText: 'OK',
|
|
1537
|
-
noText: 'Close',
|
|
1538
|
-
handleConfirm: () => drawerDialogService.closeDialog('confirm-dialog'),
|
|
1539
|
-
});
|
|
1540
|
-
return;
|
|
1541
|
-
}
|
|
1542
|
-
drawerDialogService.openDialog('admin-transfer', {
|
|
1543
|
-
candidates,
|
|
1544
|
-
handlePick: async (member) => {
|
|
1545
|
-
const memberId = memberUserId(member);
|
|
1546
|
-
const name = memberDisplayName(member);
|
|
1547
|
-
if (!memberId)
|
|
1548
|
-
return;
|
|
1549
|
-
try {
|
|
1550
|
-
await makeAdmin(conversationId, memberId);
|
|
1551
|
-
// Keep leave safety-net in sync — API succeeded, store must reflect it.
|
|
1552
|
-
if (groupMembersStore.getCurrentConversationId() === conversationId) {
|
|
1553
|
-
groupMembersStore.updateAdminStatus(memberId, true);
|
|
1554
|
-
}
|
|
1555
|
-
drawerDialogService.closeDialog('admin-transfer');
|
|
1556
|
-
onLeave();
|
|
1557
|
-
}
|
|
1558
|
-
catch (err) {
|
|
1559
|
-
console.error('[webchat] make admin before leave failed', err);
|
|
1560
|
-
showToast({
|
|
1561
|
-
message: `Could not make ${name} an admin. Try again or pick someone else.`,
|
|
1562
|
-
type: 'error',
|
|
1563
|
-
position: 'bottom-right',
|
|
1564
|
-
});
|
|
1565
|
-
}
|
|
1566
|
-
},
|
|
1567
|
-
});
|
|
1568
|
-
}
|
|
1569
|
-
|
|
1570
1780
|
const WebChatHeader = class {
|
|
1571
1781
|
constructor(hostRef) {
|
|
1572
1782
|
registerInstance(this, hostRef);
|
|
@@ -1623,22 +1833,33 @@ const WebChatHeader = class {
|
|
|
1623
1833
|
this.menuOpen = !this.menuOpen;
|
|
1624
1834
|
};
|
|
1625
1835
|
this.doBlock = () => {
|
|
1626
|
-
var _a
|
|
1836
|
+
var _a;
|
|
1627
1837
|
this.menuOpen = false;
|
|
1628
1838
|
const d = this.conversationDetails || {};
|
|
1629
1839
|
if (d.isGroup || d.groupcastId)
|
|
1630
1840
|
return;
|
|
1631
|
-
this.
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1841
|
+
const isUnblock = !!this.isBlocked;
|
|
1842
|
+
const name = ((_a = d.opponentDetails) === null || _a === void 0 ? void 0 : _a.userName) || this.title() || 'this chat';
|
|
1843
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
1844
|
+
title: isUnblock ? 'Unblock' : 'Block',
|
|
1845
|
+
description: `Are you sure you want to ${isUnblock ? 'unblock' : 'block'} ${name}?`,
|
|
1846
|
+
handleConfirm: () => {
|
|
1847
|
+
var _a;
|
|
1848
|
+
this.el.dispatchEvent(new CustomEvent('contact-action', {
|
|
1849
|
+
bubbles: true,
|
|
1850
|
+
composed: true,
|
|
1851
|
+
detail: {
|
|
1852
|
+
action: isUnblock ? 'unblock-contact' : 'block-contact',
|
|
1853
|
+
oppenentId: (_a = d.opponentDetails) === null || _a === void 0 ? void 0 : _a.userId,
|
|
1854
|
+
userName: name,
|
|
1855
|
+
},
|
|
1856
|
+
}));
|
|
1638
1857
|
},
|
|
1639
|
-
})
|
|
1858
|
+
});
|
|
1640
1859
|
};
|
|
1641
1860
|
this.openAddMember = () => {
|
|
1861
|
+
if (!this.isSelfAdmin())
|
|
1862
|
+
return;
|
|
1642
1863
|
this.menuOpen = false;
|
|
1643
1864
|
const id = this.conversationId();
|
|
1644
1865
|
drawerDialogService.openDialog('member-add', {
|
|
@@ -1827,16 +2048,39 @@ const WebChatHeader = class {
|
|
|
1827
2048
|
const d = this.conversationDetails || {};
|
|
1828
2049
|
return this.selectedConversationId || d.conversationId || d.groupcastId || '';
|
|
1829
2050
|
}
|
|
2051
|
+
/** Same member-resolution pattern as exitGroup; used for admin-only UI (e.g. Add member). */
|
|
2052
|
+
groupMembersList() {
|
|
2053
|
+
var _a;
|
|
2054
|
+
const conversationId = this.conversationId();
|
|
2055
|
+
const fromDetails = (_a = this.conversationDetails) === null || _a === void 0 ? void 0 : _a.members;
|
|
2056
|
+
const fromStore = groupMembersStore.getCurrentConversationId() === conversationId
|
|
2057
|
+
? groupMembersStore.getMembers()
|
|
2058
|
+
: [];
|
|
2059
|
+
return ((Array.isArray(fromDetails) && fromDetails.length ? fromDetails : null) ||
|
|
2060
|
+
(Array.isArray(this.groupMembers) && this.groupMembers.length
|
|
2061
|
+
? this.groupMembers
|
|
2062
|
+
: null) ||
|
|
2063
|
+
fromStore ||
|
|
2064
|
+
[]);
|
|
2065
|
+
}
|
|
2066
|
+
isSelfAdmin() {
|
|
2067
|
+
var _a;
|
|
2068
|
+
const me = (_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId;
|
|
2069
|
+
if (!me)
|
|
2070
|
+
return false;
|
|
2071
|
+
const self = this.groupMembersList().find((m) => m.userId === me);
|
|
2072
|
+
return !!(self === null || self === void 0 ? void 0 : self.isAdmin);
|
|
2073
|
+
}
|
|
1830
2074
|
render() {
|
|
1831
2075
|
var _a, _b;
|
|
1832
2076
|
const formattedLastSeen = getFormattedTime(this.lastSeen, true);
|
|
1833
2077
|
const groupcast = this.isGroupcast();
|
|
1834
2078
|
const isGroup = !!((_a = this.conversationDetails) === null || _a === void 0 ? void 0 : _a.isGroup) && !groupcast;
|
|
1835
2079
|
const showBlock = !groupcast && !((_b = this.conversationDetails) === null || _b === void 0 ? void 0 : _b.isGroup);
|
|
1836
|
-
return (h(Fragment, { key: '
|
|
2080
|
+
return (h(Fragment, { key: 'd39abd61fac46e3e67b995f5bb4e7e43d2fc7318' }, h("div", { key: '8478d9eb4064b04fdc69dbe2427b0b99a291c72b', class: "head-container", style: {
|
|
1837
2081
|
backgroundColor: this.headerBgColor || undefined,
|
|
1838
2082
|
color: this.headerUsernameColor || undefined,
|
|
1839
|
-
} }, h("div", { key: '
|
|
2083
|
+
} }, h("div", { key: 'bf30b727e5f565eb42f470e4b3640d96a0f9dae4', class: "head-left" }, h("button", { key: '1e8b79d784c4589f2bec8113dd793a94f4dcb2f6', class: "back-button", type: "button", onClick: () => typeof this.onBackButtonClick === 'function' && this.onBackButtonClick(), "aria-label": "Back" }, h("img", { key: 'baf86843d1aec9a555b2e9edbcc2187a7fef96af', class: "theme-icon", src: Left_Arrow, alt: "" })), h("div", { key: '755580dd8e9102cc4073f9839180ab5753179a03', class: "identity", onClick: this.handleTextClick }, h("profile-avatar", { key: 'c6e6e4222b8785b5536999ba1ac17962c3d6a43d', src: this.avatarSrc(), name: this.title(), size: "var(--avatar-sm)", isGroup: this.avatarIsGroup() }), h("div", { key: 'd6415f2b9799c4ed2119dd516d2fb07c62a55691', class: "text-container" }, h("div", { key: '15caf9732f0acf226ed33fd4bb5fca886831c8f5', class: "title" }, this.title()), h("div", { key: 'e0b5497af228582717c48c060111b588560a8ddd', class: "subtitle", style: { color: this.headerLastSeenColor || undefined } }, this.subtitle(formattedLastSeen))))), h("div", { key: 'ce09c125c5a02751b30599c7ada06cca1ed21168', class: "actions" }, !groupcast ? (h("button", { type: "button", class: "icon-btn", title: "Search in conversation", onClick: () => this.openSearch() }, h("img", { class: "theme-icon", src: Search, alt: "" }))) : null, h("div", { key: '75e45981604a599f7c29ab100c6fa2667195bd22', class: "more-wrap" }, h("button", { key: '7db6514d805e7db511a73fa6606b9c1de3c09635', type: "button", class: "icon-btn", title: "Menu", "aria-label": "Menu", "aria-haspopup": "menu", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: this.toggleMenu }, h("img", { key: 'b3707fef1c9dedc0909b8b9a79d59581da86a1d2', class: "theme-icon", src: Three_Dots, alt: "" })), this.menuOpen ? (h("div", { class: "more-menu", role: "menu" }, isGroup ? (h(Fragment, null, this.isSelfAdmin() ? (h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.openAddMember }, h("img", { class: "theme-icon", src: Add_User, alt: "" }), h("span", null, "Add member"))) : null, h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.openGroupInfo }, h("img", { class: "theme-icon", src: Info, alt: "" }), h("span", null, "Group info")))) : null, !groupcast ? (h("button", { type: "button", class: "more-item", role: "menuitem", onClick: () => this.openSearch() }, h("img", { class: "theme-icon", src: Search, alt: "" }), h("span", null, "Search"))) : null, h("button", { type: "button", class: "more-item", role: "menuitem", onClick: () => this.doCloseChat() }, h("img", { class: "theme-icon", src: CloseButton, alt: "" }), h("span", null, "Close chat")), !groupcast ? (h(Fragment, null, h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.handleClearChat }, h("img", { class: "theme-icon", src: Clear_Chat, alt: "" }), h("span", null, "Clear chat")), !isGroup ? (h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.deleteChat }, h("img", { class: "theme-icon", src: Delete, alt: "" }), h("span", null, "Delete chat"))) : null)) : null, isGroup ? (h(Fragment, null, h("div", { class: "more-divider" }), h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.exitGroup }, h("img", { class: "theme-icon", src: Logout, alt: "" }), h("span", null, "Exit group")))) : null, showBlock ? (h(Fragment, null, h("div", { class: "more-divider" }), h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.doBlock }, h("img", { class: "theme-icon", src: Block_User, alt: "" }), h("span", null, this.isBlocked ? 'Unblock Chat' : 'Block Chat')))) : null)) : null))), this.isLoading && (h("div", { key: 'b83dea3e2fc398388b23d25497b84082f84021d7', class: "loading-overlay" }, h("spinner-loader", { key: '4da6e6cfa82e7cb40e9c9bf3b840dd75e72240d4', height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" })))));
|
|
1840
2084
|
}
|
|
1841
2085
|
get el() { return getElement(this); }
|
|
1842
2086
|
static get watchers() { return {
|
|
@@ -4971,7 +5215,7 @@ const AttachmentPreview = class {
|
|
|
4971
5215
|
const type = this.typeOf(cur, this.localIndex);
|
|
4972
5216
|
const fileMode = this.isFilePreview(type);
|
|
4973
5217
|
const fileTitle = this.fileName(cur);
|
|
4974
|
-
return (h("div", { key: '
|
|
5218
|
+
return (h("div", { key: 'dc210c3aef76e589407834b6894e773bb84e445a', class: "preview-container" }, h("div", { key: '9877e129f6a5a898f0d67cbbaa7396bbe17c4b43', class: "topbar" }, fileMode && !this.showCamera ? (h(Fragment, null, h("button", { class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.close() }, h("img", { class: "theme-icon", src: CancelIcon, alt: "" })), h("span", { class: "topbar-title centered" }, fileTitle), h("span", { class: "topbar-spacer" }))) : (h("button", { class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.close() }, h("img", { class: "theme-icon", src: CancelIcon, alt: "" })))), h("div", { key: '69725e2cc6ee37cb051dd1cff9a5d1c1be262b51', class: "main" }, this.showCamera ? (h("div", { class: "camera-view" }, this.cameraError ? h("p", { class: "camera-error" }, this.cameraError) : null, !this.cameraReady && !this.cameraError ? h("p", { class: "camera-loading" }, "Opening camera\u2026") : null, h("video", { class: this.cameraReady ? 'is-ready' : '', ref: this.bindVideo, autoplay: true, playsinline: true, muted: true, style: { transform: this.facingMode === 'user' ? 'scaleX(-1)' : 'none' } }), this.cameraReady ? (h("button", { class: "snap-btn", type: "button", title: "Take photo", onClick: this.snap })) : null)) : !cur ? (h("div", null, "No attachment")) : type === 'video' ? (h("video", { class: "preview-media", src: this.srcOf(cur), controls: true, preload: "metadata" })) : type === 'audio' ? (h("div", { class: "audio-stage" }, h("p", { class: "audio-title" }, fileTitle), h("audio", { src: this.srcOf(cur), controls: true, preload: "metadata" }), h("p", { class: "file-preview-meta" }, this.formatSize((_b = (_a = cur === null || cur === void 0 ? void 0 : cur.file) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : cur === null || cur === void 0 ? void 0 : cur.size)))) : type === 'image' || (!type && !fileMode) ? (h("img", { src: this.srcOf(cur), alt: fileTitle })) : this.isPdf(cur) && this.srcOf(cur) ? (h("div", { class: "pdf-stage" }, h("iframe", { class: "pdf-frame", src: `${this.srcOf(cur)}#toolbar=1&navpanes=0`, title: fileTitle }))) : fileMode ? (h("div", { class: "file-preview" }, h("div", { class: "file-preview-icon-wrap" }, h("img", { src: this.fileIconSrc(cur), alt: "" })), h("h3", { class: "file-preview-title" }, fileTitle), h("p", { class: "file-preview-meta" }, [this.formatSize((_d = (_c = cur === null || cur === void 0 ? void 0 : cur.file) === null || _c === void 0 ? void 0 : _c.size) !== null && _d !== void 0 ? _d : cur === null || cur === void 0 ? void 0 : cur.size), this.fileKind(cur)].filter(Boolean).join(' · ')), h("div", { class: "file-preview-actions" }, this.srcOf(cur) ? (h("button", { type: "button", onClick: () => this.openInNewTab(this.srcOf(cur)) }, "Open")) : null, this.srcOf(cur) ? (h("a", { class: "secondary", href: this.srcOf(cur), download: fileTitle }, "Download")) : null))) : (h("div", { class: "file-chip" }, ((_e = cur === null || cur === void 0 ? void 0 : cur.file) === null || _e === void 0 ? void 0 : _e.name) || (cur === null || cur === void 0 ? void 0 : cur.name) || type || 'File'))), !this.showCamera ? (h("div", { class: "footer" }, h("div", { class: "composer" }, this.showEmojiPicker ? (h("div", { class: "emoji-panel" }, h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, h("div", { class: "composer-pill" }, h("input", { type: "text", placeholder: this.inputPlaceholder || 'Type a message', value: this.inputValue || '', onInput: this.onCaption, ref: el => (this.captionInputRef = el) }), h("button", { class: "icon-btn smile-btn", type: "button", title: "Emoji", "aria-label": "Emoji", onClick: this.toggleEmoji }, h("img", { src: Smile, alt: "" }))), h("button", { class: "send-btn", type: "button", title: "Send", onClick: () => this.send() }, h("img", { src: Send, alt: "" }), list.length > 1 ? h("span", { class: "send-badge" }, list.length) : null)), h("div", { class: "action-row" }, h("div", { class: "thumbs" }, list.map((item, i) => {
|
|
4975
5219
|
const t = this.typeOf(item, i);
|
|
4976
5220
|
const isFile = this.isFilePreview(t);
|
|
4977
5221
|
const pdf = this.isPdf(item);
|
|
@@ -5040,19 +5284,13 @@ const ReplyBlock = class {
|
|
|
5040
5284
|
return this.messageBody;
|
|
5041
5285
|
}
|
|
5042
5286
|
render() {
|
|
5043
|
-
return (h("div", { key: '
|
|
5287
|
+
return (h("div", { key: '5e3b2444554a78d672c7c0682f0eb4f246e96e40', class: "reply-block-container" }, h("div", { key: 'bfb18b2616518b66d23a79a64c4f5a282086ba37', class: "reply-main" }, h("div", { key: '7293cac2e02f13b74b8b267e2745005928c9836a', class: "accent" }), h("div", { key: '6287df2ef94439aa4bab7df377de49ffce3e50f0', class: "reply-body" }, h("div", { key: 'f24ba856744c0f5622b7c73e82c1df46728d4e0d', class: "sender" }, this.senderName), h("div", { key: '11b2968b5a88b9f06b2b0b596e6552ad471316ab', class: "message-body-container" }, this.bodyLabel()))), h("button", { key: '45dc20ef25fe8087adfb83a03998d72badf65a93', type: "button", class: "close-btn", "aria-label": "Cancel reply", title: "Cancel reply", onClick: () => { var _a; return (_a = this.onIconClick) === null || _a === void 0 ? void 0 : _a.call(this); } }, h("img", { key: 'd370b0d31ebebced2a9e8a19b46687f0f46dd206', class: "theme-icon", src: CloseButton, alt: "" }))));
|
|
5044
5288
|
}
|
|
5045
5289
|
};
|
|
5046
5290
|
ReplyBlock.style = ":host {\n display: block;\n width: var(--w-full);\n font-family: var(--font-primary);\n margin-bottom: var(--gap-6);\n }\n .reply-block-container {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-10);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n border-radius: var(--rounded-12);\n box-shadow: 0 1px 2px var(--overlay);\n padding: var(--space-8) var(--space-12);\n box-sizing: border-box;\n }\n .reply-main {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n min-width: 0;\n flex: 1;\n }\n .accent {\n width: var(--strip);\n height: var(--control);\n border-radius: var(--rounded-full);\n background: var(--brand);\n flex-shrink: 0;\n }\n .reply-body {\n display: flex;\n flex-direction: column;\n min-width: 0;\n gap: var(--gap-2);\n }\n .sender {\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n color: var(--brand);\n line-height: 1.2;\n }\n .message-body-container {\n font-size: var(--text-12);\n color: var(--text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n line-height: 1.3;\n }\n .close-btn {\n cursor: pointer;\n border: none;\n background: transparent;\n padding: var(--gap-4);\n border-radius: var(--rounded-full);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n color: var(--text-tertiary);\n }\n .close-btn:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n .close-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n object-fit: contain;\n opacity: 0.7;\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
|
|
5047
5291
|
|
|
5048
|
-
const documentsSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLSBHZW5lcmF0b3I6IHZpc2lvbmNvcnRleCBWVHJhY2V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5NyA4LjUyIDE3LjM5NyAxNy43N3MtLjE3OCAxMTcuODA5LS4xNzggMTI3YzAgOS4xOTItNy42NjQgMTcuMTItMTYuMzIzIDE3LjA3Mi04LjY2LS4wNS0yNi4zNTQgMC0zNC45OTEuMDQ4LTguNjM4LjA1LTE3Ljk4LTguNTgyLTE4LjAwNy0xNy43ODMtLjAyNy05LjIwMS0uMDU1LTExNi43NjMtLjAyNy0xMjYuNTY2em0xNi45MTcuNTU0cy0uMDg5IDExOC4xNDUtLjA4OSAxMjMuNjkyYzAgNS41NDcgMy4xMjMgNS4zMTQgNi40OCA1LjgzMiAzLjM1OS41MTggMjEuNDU1LjQ3IDI0LjQwMi40NyAyLjk0OCAwIDcuMDg2LTEuNjU5IDcuMTY3LTYuMTQxLjA4MS00LjQ4Mi0uMDgtMTE5LjUwNi0uMDgtMTIzLjI0OCAwLTMuNzQyLTQuMy00LjI2NS03LjA4Ny00LjY2LTIuNzg2LS4zOTYtMjUuNzk2IDAtMjUuNzk2IDBsLTQuOTk3IDQuMDU1eiIgZmlsbC1ydWxlPSJldmVub2RkIi8+Cjwvc3ZnPg==';const PauseIcon = pauseSvg;
|
|
5057
5295
|
|
|
5058
5296
|
const ChatFooter = class {
|
|
@@ -5189,6 +5427,19 @@ const ChatFooter = class {
|
|
|
5189
5427
|
this.handleSendMessage();
|
|
5190
5428
|
}
|
|
5191
5429
|
};
|
|
5430
|
+
/** Paste screenshot / copied image into the same attach flow as the file picker. */
|
|
5431
|
+
this.handleComposerPaste = (event) => {
|
|
5432
|
+
if (this.isRecording || this.showCamera)
|
|
5433
|
+
return;
|
|
5434
|
+
const raw = filesFromClipboardData(event.clipboardData);
|
|
5435
|
+
if (!raw.length)
|
|
5436
|
+
return;
|
|
5437
|
+
event.preventDefault();
|
|
5438
|
+
const files = normalizePastedImageFiles(raw);
|
|
5439
|
+
this.handleFileUpload({
|
|
5440
|
+
detail: { files, fileTypes: files.map(f => (f.type || '').split('/')[0]), totalFiles: files.length },
|
|
5441
|
+
});
|
|
5442
|
+
};
|
|
5192
5443
|
this.handleAttachClick = () => {
|
|
5193
5444
|
const next = !this.showAttachMenu;
|
|
5194
5445
|
this.showAttachMenu = next;
|
|
@@ -5367,14 +5618,7 @@ const ChatFooter = class {
|
|
|
5367
5618
|
this.changeMessageSendingState(true);
|
|
5368
5619
|
const conversationId = this.selectedConversationId;
|
|
5369
5620
|
let messageId = Date.now().toString() + Math.random() * 100;
|
|
5370
|
-
const attachment =
|
|
5371
|
-
nameWithExtension: audioFile.name,
|
|
5372
|
-
mediaType: 2, // Audio type
|
|
5373
|
-
mediaId: audioFile.lastModified + '',
|
|
5374
|
-
mimeType: audioFile.type,
|
|
5375
|
-
size: audioFile.size,
|
|
5376
|
-
file: audioFile,
|
|
5377
|
-
};
|
|
5621
|
+
const attachment = prepareMediaAttachments([audioFile])[0];
|
|
5378
5622
|
const localAttachment = {
|
|
5379
5623
|
name: audioFile.name,
|
|
5380
5624
|
size: audioFile.size,
|
|
@@ -5410,6 +5654,10 @@ const ChatFooter = class {
|
|
|
5410
5654
|
}
|
|
5411
5655
|
catch (error) {
|
|
5412
5656
|
console.error(error, 'Error while uploading the audio');
|
|
5657
|
+
if (isSameNameUploadCancelledError(error)) {
|
|
5658
|
+
this.removeLocalMessage(messageId);
|
|
5659
|
+
return;
|
|
5660
|
+
}
|
|
5413
5661
|
showToast({
|
|
5414
5662
|
message: error === null || error === void 0 ? void 0 : error.message,
|
|
5415
5663
|
type: 'error',
|
|
@@ -5656,7 +5904,7 @@ const ChatFooter = class {
|
|
|
5656
5904
|
}
|
|
5657
5905
|
}
|
|
5658
5906
|
async sendMediaMessage(conversationId) {
|
|
5659
|
-
var _a, _b;
|
|
5907
|
+
var _a, _b, _c, _d;
|
|
5660
5908
|
this.changeMessageSendingState(true);
|
|
5661
5909
|
let messageId = Date.now().toString() + Math.random() * 100;
|
|
5662
5910
|
const files = takeMediaFiles(this.attachmentDetails || [], 0).accepted;
|
|
@@ -5695,12 +5943,47 @@ const ChatFooter = class {
|
|
|
5695
5943
|
attachments: attachments,
|
|
5696
5944
|
};
|
|
5697
5945
|
try {
|
|
5946
|
+
let quotaUsage = storageQuotaStore.state.usage;
|
|
5947
|
+
if (quotaUsage === null)
|
|
5948
|
+
quotaUsage = await storageQuotaStore.loadUsage();
|
|
5698
5949
|
let resForPresignedUrl;
|
|
5699
5950
|
if (this.isGroupcast) {
|
|
5700
|
-
resForPresignedUrl = await getPresignedUrlForGroupcastMedia((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userIdentifier, attachments === null || attachments === void 0 ? void 0 : attachments.mimeType);
|
|
5951
|
+
resForPresignedUrl = await getPresignedUrlForGroupcastMedia((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userIdentifier, (_c = attachments === null || attachments === void 0 ? void 0 : attachments[0]) === null || _c === void 0 ? void 0 : _c.mimeType);
|
|
5952
|
+
const totalBytes = files.reduce((sum, f) => sum + (f.size || 0), 0);
|
|
5953
|
+
if (!canUploadBytes(quotaUsage, totalBytes)) {
|
|
5954
|
+
this.removeLocalMessage(messageId);
|
|
5955
|
+
showToast({
|
|
5956
|
+
message: 'Storage full. Delete some media to upload new files. Text messages still work.',
|
|
5957
|
+
type: 'error',
|
|
5958
|
+
position: 'bottom-right',
|
|
5959
|
+
});
|
|
5960
|
+
return;
|
|
5961
|
+
}
|
|
5701
5962
|
}
|
|
5702
5963
|
else {
|
|
5703
5964
|
resForPresignedUrl = await M.getInstance().message.postMessagesPresignedurls(payload);
|
|
5965
|
+
const slots = (resForPresignedUrl === null || resForPresignedUrl === void 0 ? void 0 : resForPresignedUrl.presignedUrls)
|
|
5966
|
+
? resForPresignedUrl.presignedUrls
|
|
5967
|
+
: (resForPresignedUrl === null || resForPresignedUrl === void 0 ? void 0 : resForPresignedUrl.presignedUrl)
|
|
5968
|
+
? [resForPresignedUrl]
|
|
5969
|
+
: [];
|
|
5970
|
+
const slotById = presignedSlotsByMediaId(slots);
|
|
5971
|
+
let newUploadBytes = 0;
|
|
5972
|
+
for (const att of attachments) {
|
|
5973
|
+
const slot = (_d = slotById.get(att.mediaId)) !== null && _d !== void 0 ? _d : slots[attachments.indexOf(att)];
|
|
5974
|
+
if (!slot || !isPresignDuplicateSlot(slot)) {
|
|
5975
|
+
newUploadBytes += att.size || 0;
|
|
5976
|
+
}
|
|
5977
|
+
}
|
|
5978
|
+
if (newUploadBytes > 0 && !canUploadBytes(quotaUsage, newUploadBytes)) {
|
|
5979
|
+
this.removeLocalMessage(messageId);
|
|
5980
|
+
showToast({
|
|
5981
|
+
message: 'Storage full. Delete some media to upload new files. Text messages still work.',
|
|
5982
|
+
type: 'error',
|
|
5983
|
+
position: 'bottom-right',
|
|
5984
|
+
});
|
|
5985
|
+
return;
|
|
5986
|
+
}
|
|
5704
5987
|
}
|
|
5705
5988
|
if (resForPresignedUrl === null || resForPresignedUrl === void 0 ? void 0 : resForPresignedUrl.presignedUrls) {
|
|
5706
5989
|
await this.uploadAndSendMedia(resForPresignedUrl.presignedUrls, attachments, conversationId, messageId);
|
|
@@ -5711,37 +5994,57 @@ const ChatFooter = class {
|
|
|
5711
5994
|
}
|
|
5712
5995
|
catch (error) {
|
|
5713
5996
|
console.error(error, 'Error while uploading the media for Presignedurls');
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5997
|
+
if (isSameNameUploadCancelledError(error)) {
|
|
5998
|
+
this.removeLocalMessage(messageId);
|
|
5999
|
+
return;
|
|
6000
|
+
}
|
|
6001
|
+
if (isQuotaExceededError(error)) {
|
|
6002
|
+
// Server blocked the send for being over quota — refresh usage + prompt.
|
|
6003
|
+
void storageQuotaStore.loadUsage();
|
|
6004
|
+
showToast({ message: 'Storage quota exceeded.', type: 'error', position: 'bottom-right' });
|
|
6005
|
+
}
|
|
6006
|
+
else {
|
|
6007
|
+
showToast({
|
|
6008
|
+
message: error === null || error === void 0 ? void 0 : error.message,
|
|
6009
|
+
type: 'error',
|
|
6010
|
+
position: 'bottom-right',
|
|
6011
|
+
});
|
|
6012
|
+
}
|
|
5719
6013
|
}
|
|
5720
6014
|
finally {
|
|
5721
6015
|
this.changeMessageSendingState(false);
|
|
5722
6016
|
this.messageBody = '';
|
|
5723
6017
|
}
|
|
5724
6018
|
}
|
|
6019
|
+
removeLocalMessage(messageId) {
|
|
6020
|
+
this.allMessages = (this.allMessages || []).filter(m => m.messageId !== messageId);
|
|
6021
|
+
}
|
|
5725
6022
|
async uploadAndSendMedia(presignedUrls, attachments, conversationId, oldMessageId) {
|
|
5726
6023
|
var _a, _b;
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5739
|
-
|
|
6024
|
+
let allPayloads;
|
|
6025
|
+
if (this.isGroupcast) {
|
|
6026
|
+
allPayloads = [];
|
|
6027
|
+
const uploadPromises = presignedUrls.map(async (urlDetails, index) => {
|
|
6028
|
+
const attachmentPayload = attachments[index];
|
|
6029
|
+
if (!attachmentPayload)
|
|
6030
|
+
return;
|
|
6031
|
+
const normalized = Object.assign(Object.assign({}, urlDetails), { mediaPresignedUrl: (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.presignedUrl) || (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.mediaPresignedUrl), mediaId: (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.mediaId) || (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.mediaUrl), thumbnailUrl: (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.thumbnailUrl) || (urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.mediaUrl), thumbnailPresignedUrl: urlDetails === null || urlDetails === void 0 ? void 0 : urlDetails.thumbnailPresignedUrl });
|
|
6032
|
+
const payload = await uploadPresignedMediaAttachment({
|
|
6033
|
+
urlDetails: normalized,
|
|
6034
|
+
attachment: attachmentPayload,
|
|
6035
|
+
});
|
|
6036
|
+
if (payload)
|
|
6037
|
+
allPayloads.push(payload);
|
|
5740
6038
|
});
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
6039
|
+
await Promise.all(uploadPromises);
|
|
6040
|
+
}
|
|
6041
|
+
else {
|
|
6042
|
+
allPayloads = await resolveAttachmentPayloads({
|
|
6043
|
+
conversationId,
|
|
6044
|
+
attachments,
|
|
6045
|
+
presignedSlots: presignedUrls,
|
|
6046
|
+
});
|
|
6047
|
+
}
|
|
5745
6048
|
const customType = resolveCustomTypeForUpload(attachments);
|
|
5746
6049
|
const caption = ((_a = this.messageBody) === null || _a === void 0 ? void 0 : _a.trim()) || '';
|
|
5747
6050
|
const pushContext = messagePushContextFrom({
|
|
@@ -5757,7 +6060,7 @@ const ChatFooter = class {
|
|
|
5757
6060
|
// API rejects empty body; caption text or placeholder. Real caption also in metaData.caption
|
|
5758
6061
|
body: attachmentBodyForOutgoing(caption, attachments),
|
|
5759
6062
|
customType: customType,
|
|
5760
|
-
attachments: allPayloads,
|
|
6063
|
+
attachments: mapOutgoingAttachmentsForApi(allPayloads),
|
|
5761
6064
|
deviceId: this.deviceId,
|
|
5762
6065
|
metaData: this.getReplyMetadata(),
|
|
5763
6066
|
}, pushContext, this.el);
|
|
@@ -5827,9 +6130,9 @@ const ChatFooter = class {
|
|
|
5827
6130
|
const webChat = findWebChatHost(this.el);
|
|
5828
6131
|
const hasCustomReply = (webChat ? hasNamedSlot(webChat, 'reply-preview') : false) || hasNamedSlot(this.el, 'reply-preview');
|
|
5829
6132
|
const showAttachment = this.attachmentDetails || this.showCamera;
|
|
5830
|
-
return (h(Host, { key: '
|
|
6133
|
+
return (h(Host, { key: '2027c6442c93f1edefb0ef6fae8e12396a637ae3', class: { 'attachment-open': !!showAttachment } }, h("div", { key: '80681229f6adff5168ccb2c331ba4323f7907143', class: "chat-footer-container" }, showAttachment ? (h("slot", { name: "attachment-preview" }, h("attachment-preview", { showCamera: this.showCamera, onClose: this.handleClearAttachment, width: "150px", height: "150px", bgColor: "var(--bg-primary-light)", padding: "3px", margin: "10px 0 0 0", contentType: contentType, content: this.mediaPreviews, onSend: this.handleSendMessage, "onfile-uploaded": this.handleFileUpload, "onattachment-removed": this.handleRemoveAttachment, "oncamera-retake": this.handleCameraRetake, key: this.inputKey, inputValue: this.messageBody, "oninput-change": this.handleInputChange, backgroundColor: "var(--bg-primary-color)", containerBoxShadow: "none", inputFontColor: "var(--text-primary-color)", inputBorderRadius: "10px", conversationDetails: this.conversationDetails, userMetaData: this.userMetaData }))) : (h(Fragment, null, hasCustomReply ? h("slot", { name: "reply-preview" }) : null, h("slot", { name: "composer-input" }, !hasCustomReply && this.replyMessage ? (h("reply-block", { messageBody: (_a = this.replyMessage) === null || _a === void 0 ? void 0 : _a.body, messageInfo: this.replyMessage, senderName: ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) === ((_d = (_c = this.replyMessage) === null || _c === void 0 ? void 0 : _c.senderInfo) === null || _d === void 0 ? void 0 : _d.userId)
|
|
5831
6134
|
? 'You'
|
|
5832
|
-
: (_f = (_e = this.replyMessage) === null || _e === void 0 ? void 0 : _e.senderInfo) === null || _f === void 0 ? void 0 : _f.userName, onIconClick: this.handleremoveReplyMessage })) : null, h("div", { class: "composer-wrap", key: this.inputKey, ref: el => (this.composerWrapRef = el) }, this.showEmojiPicker ? (h("div", { class: "emoji-panel", style: this.emojiPanelStyle }, h("div", { class: "emoji-panel-header" }, h("span", null, "Emoji"), h("button", { class: "emoji-panel-close", type: "button", "aria-label": "Close", onClick: this.handleEmojiToggle }, "\u00D7")), h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, h("div", { class: { composer: true, recording: this.isRecording } }, this.isRecording ? (h("div", { class: "rec-body" }, h("div", { class: "rec-left" }, h("button", { class: "rec-icon-btn danger", type: "button", title: "Delete recording", "aria-label": "Delete recording", onClick: this.handleRecDelete }, h("img", { class: "theme-icon", src: Delete, alt: "" })), h("div", { class: "rec-timer-wrap" }, h("span", { class: { 'rec-dot': true, live: !this.isPaused } }), h("span", { class: "rec-timer" }, this.formatRecTime(this.recordingSeconds)))), h("div", { class: "rec-wave" }, h("audio-bubble", { liveRecord: true, audioProgressColor: "#2563eb", audioWaveColor: "#2563eb", ref: el => (this.recBubble = el), onRecordingProgress: this.onRecordingProgress, onRecordingError: this.onRecordingError })), h("button", { class: { 'rec-icon-btn': true, 'rec-toggle': true, pause: !this.isPaused }, type: "button", title: this.isPaused ? 'Resume recording' : 'Pause recording', "aria-label": this.isPaused ? 'Resume recording' : 'Pause recording', onClick: this.handleRecPauseToggle }, h("img", { class: "theme-icon", src: this.isPaused ? PlayIcon : PauseIcon, alt: "" })), h("button", { class: "rec-send", type: "button", title: "Send voice note", "aria-label": "Send voice note", onClick: this.handleRecSend }, h("img", { src: Send, alt: "" })))) : (h(Fragment, null, h("div", { class: "attach-wrap" }, h("button", { class: "icon-btn", type: "button", title: "Attach file", "aria-label": "Attach", onClick: this.handleAttachClick }, h("img", { src: Attachment, alt: "" })), this.showAttachMenu ? (h("div", { class: "attach-menu", style: this.attachMenuStyle }, h("button", { class: "attach-opt", type: "button", onClick: this.pickDocument }, h("span", { class: "attach-opt-icon attach-opt-icon--doc" }, h("img", { src: DocumentsIcon, alt: "" })), h("span", null, "Document")), h("button", { class: "attach-opt", type: "button", onClick: this.pickPhotos }, h("span", { class: "attach-opt-icon attach-opt-icon--photos" }, h("img", { class: "theme-icon", src: PhotosIcon, alt: "" })), h("span", null, "Photos & videos")), h("button", { class: "attach-opt", type: "button", onClick: this.pickCamera }, h("span", { class: "attach-opt-icon attach-opt-icon--camera" }, h("img", { class: "theme-icon", src: CameraIcon, alt: "" })), h("span", null, "Camera")))) : null), h("button", { class: "icon-btn", type: "button", title: "Emojis", "aria-label": "Emojis", onClick: this.handleEmojiToggle }, h("img", { src: Smile, alt: "" })), h("input", { class: "file-input", type: "file", multiple: true, accept: ".jpg,.jpeg,.png,.gif,.webp,.bmp,.heic,.mp4,.mov,.webm,.mkv,.mp3,.wav,.m4a,.aac,.ogg", ref: el => (this.mediaInputRef = el), onChange: this.handleNativeFileChange }), h("input", { class: "file-input", type: "file", multiple: true, accept: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.rtf,application/*", ref: el => (this.docInputRef = el), onChange: this.handleNativeFileChange }), h("textarea", { class: "composer-input", rows: 1, placeholder: "Type a message", value: this.messageBody, ref: el => (this.inputRef = el), onInput: this.handleComposerInput, onKeyDown: this.handleComposerKeyDown }), this.messageBody.trim() ? (h("button", { class: "icon-btn", type: "button", title: "Send", "aria-label": "Send", onClick: this.handleSendMessage }, h("img", { src: Send, alt: "" }))) : (h("button", { class: "icon-btn", type: "button", title: "Voice note", "aria-label": "Voice note", onClick: this.handleMicClick }, h("img", { src: Microphone, alt: "" })))))))))))));
|
|
6135
|
+
: (_f = (_e = this.replyMessage) === null || _e === void 0 ? void 0 : _e.senderInfo) === null || _f === void 0 ? void 0 : _f.userName, onIconClick: this.handleremoveReplyMessage })) : null, h("div", { class: "composer-wrap", key: this.inputKey, ref: el => (this.composerWrapRef = el) }, this.showEmojiPicker ? (h("div", { class: "emoji-panel", style: this.emojiPanelStyle }, h("div", { class: "emoji-panel-header" }, h("span", null, "Emoji"), h("button", { class: "emoji-panel-close", type: "button", "aria-label": "Close", onClick: this.handleEmojiToggle }, "\u00D7")), h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, h("div", { class: { composer: true, recording: this.isRecording } }, this.isRecording ? (h("div", { class: "rec-body" }, h("div", { class: "rec-left" }, h("button", { class: "rec-icon-btn danger", type: "button", title: "Delete recording", "aria-label": "Delete recording", onClick: this.handleRecDelete }, h("img", { class: "theme-icon", src: Delete, alt: "" })), h("div", { class: "rec-timer-wrap" }, h("span", { class: { 'rec-dot': true, live: !this.isPaused } }), h("span", { class: "rec-timer" }, this.formatRecTime(this.recordingSeconds)))), h("div", { class: "rec-wave" }, h("audio-bubble", { liveRecord: true, audioProgressColor: "#2563eb", audioWaveColor: "#2563eb", ref: el => (this.recBubble = el), onRecordingProgress: this.onRecordingProgress, onRecordingError: this.onRecordingError })), h("button", { class: { 'rec-icon-btn': true, 'rec-toggle': true, pause: !this.isPaused }, type: "button", title: this.isPaused ? 'Resume recording' : 'Pause recording', "aria-label": this.isPaused ? 'Resume recording' : 'Pause recording', onClick: this.handleRecPauseToggle }, h("img", { class: "theme-icon", src: this.isPaused ? PlayIcon : PauseIcon, alt: "" })), h("button", { class: "rec-send", type: "button", title: "Send voice note", "aria-label": "Send voice note", onClick: this.handleRecSend }, h("img", { src: Send, alt: "" })))) : (h(Fragment, null, h("div", { class: "attach-wrap" }, h("button", { class: "icon-btn", type: "button", title: "Attach file", "aria-label": "Attach", onClick: this.handleAttachClick }, h("img", { src: Attachment, alt: "" })), this.showAttachMenu ? (h("div", { class: "attach-menu", style: this.attachMenuStyle }, h("button", { class: "attach-opt", type: "button", onClick: this.pickDocument }, h("span", { class: "attach-opt-icon attach-opt-icon--doc" }, h("img", { src: DocumentsIcon, alt: "" })), h("span", null, "Document")), h("button", { class: "attach-opt", type: "button", onClick: this.pickPhotos }, h("span", { class: "attach-opt-icon attach-opt-icon--photos" }, h("img", { class: "theme-icon", src: PhotosIcon, alt: "" })), h("span", null, "Photos & videos")), h("button", { class: "attach-opt", type: "button", onClick: this.pickCamera }, h("span", { class: "attach-opt-icon attach-opt-icon--camera" }, h("img", { class: "theme-icon", src: CameraIcon, alt: "" })), h("span", null, "Camera")))) : null), h("button", { class: "icon-btn", type: "button", title: "Emojis", "aria-label": "Emojis", onClick: this.handleEmojiToggle }, h("img", { src: Smile, alt: "" })), h("input", { class: "file-input", type: "file", multiple: true, accept: ".jpg,.jpeg,.png,.gif,.webp,.bmp,.heic,.mp4,.mov,.webm,.mkv,.mp3,.wav,.m4a,.aac,.ogg", ref: el => (this.mediaInputRef = el), onChange: this.handleNativeFileChange }), h("input", { class: "file-input", type: "file", multiple: true, accept: ".pdf,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.txt,.csv,.rtf,application/*", ref: el => (this.docInputRef = el), onChange: this.handleNativeFileChange }), h("textarea", { class: "composer-input", rows: 1, placeholder: "Type a message", value: this.messageBody, ref: el => (this.inputRef = el), onInput: this.handleComposerInput, onKeyDown: this.handleComposerKeyDown, onPaste: this.handleComposerPaste }), this.messageBody.trim() ? (h("button", { class: "icon-btn", type: "button", title: "Send", "aria-label": "Send", onClick: this.handleSendMessage }, h("img", { src: Send, alt: "" }))) : (h("button", { class: "icon-btn", type: "button", title: "Voice note", "aria-label": "Voice note", onClick: this.handleMicClick }, h("img", { src: Microphone, alt: "" })))))))))))));
|
|
5833
6136
|
}
|
|
5834
6137
|
get el() { return getElement(this); }
|
|
5835
6138
|
static get watchers() { return {
|
|
@@ -5838,7 +6141,7 @@ const ChatFooter = class {
|
|
|
5838
6141
|
"replyMessage": ["replyFocusHandler"]
|
|
5839
6142
|
}; }
|
|
5840
6143
|
};
|
|
5841
|
-
ChatFooter.style = ":host {\n display: block;\n width: var(--w-full);\n flex-shrink: 0;\n overflow: visible;\n position: relative;\n z-index: 40;\n font-family: var(--font-primary);\n }\n :host(.attachment-open) {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 4rem; /* keep web-chat-header visible */\n z-index: 60;\n flex-shrink: 0;\n overflow: hidden;\n }\n .chat-footer-container {\n position: relative;\n width: var(--w-full);\n padding: var(--space-12) var(--space-16);\n box-sizing: border-box;\n background: transparent;\n overflow: visible;\n }\n :host(.attachment-open) .chat-footer-container {\n height: var(--h-full);\n padding: 0;\n background: var(--bg-primary);\n overflow: hidden;\n }\n :host(.attachment-open) attachment-preview {\n display: block;\n height: var(--h-full);\n }\n .toaster {\n position: fixed;\n bottom: var(--space-16);\n right: var(--space-16);\n z-index: 1000;\n }\n .composer-wrap {\n position: relative;\n width: var(--w-full);\n overflow: visible;\n }\n .composer {\n display: flex;\n align-items: flex-end;\n gap: var(--gap-10);\n width: var(--w-full);\n box-sizing: border-box;\n padding: var(--space-8) var(--gap-14);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n border-radius: 1.5rem;\n box-shadow: 0 1px 2px var(--overlay);\n }\n .composer-input {\n flex: 1;\n min-height: var(--icon-md);\n max-height: 10rem;\n resize: none;\n overflow-y: auto;\n border: none;\n outline: none;\n background: transparent;\n color: var(--text-primary);\n font-size: var(--text-14);\n font-family: inherit;\n line-height: 1.4;\n padding: var(--gap-4);\n box-sizing: border-box;\n }\n .composer-input::placeholder {\n color: var(--text-tertiary);\n }\n .icon-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0 0 var(--gap-4);\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n opacity: 0.85;\n }\n .icon-btn:hover {\n opacity: 1;\n color: var(--brand);\n }\n .icon-btn img {\n width: var(--icon-md);\n height: var(--icon-md);\n display: block;\n object-fit: contain;\n }\n .emoji-panel {\n position: fixed;\n width: min(380px, calc(100vw - 24px));\n background: var(--bg-tertiary);\n border-radius: var(--rounded-12);\n box-shadow: 0 12px 40px var(--overlay);\n overflow: hidden;\n z-index: 9999;\n display: flex;\n flex-direction: column;\n isolation: isolate;\n }\n .emoji-panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-8);\n padding: var(--space-12) var(--space-12) var(--space-8) var(--space-16);\n background: var(--bg-tertiary);\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--text-primary);\n flex-shrink: 0;\n }\n .emoji-panel-close {\n border: none;\n background: transparent;\n cursor: pointer;\n width: var(--control);\n height: var(--control);\n border-radius: var(--rounded-8);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n font-size: var(--text-22);\n line-height: 1;\n padding: 0;\n flex-shrink: 0;\n }\n .emoji-panel-close:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n emoji-picker.emoji-picker {\n --background: var(--bg-tertiary);\n --border-color: transparent;\n --border-size: 0;\n --border-radius: 0;\n --indicator-color: var(--brand);\n --indicator-height: 3px;\n --input-border-radius: var(--rounded-8);\n --input-border-color: var(--border);\n --input-placeholder-color: var(--text-secondary);\n --input-font-color: var(--text-primary);\n --button-hover-background: var(--hover-overlay);\n --button-active-background: var(--bg-row-hover);\n --num-columns: 8;\n --emoji-size: 1.5rem;\n width: var(--w-full);\n height: 320px;\n }\n .file-input { display: none; }\n .attach-wrap {\n position: relative;\n flex-shrink: 0;\n }\n /* Fixed + JS coords \u2014 absolute left:0 breaks in split hosts (sidebar+pane). */\n .attach-menu {\n position: fixed;\n min-width: 12.5rem;\n background: var(--bg-primary);\n border-radius: var(--rounded-12);\n box-shadow: 0 2px 16px var(--overlay);\n border: 1px solid var(--border-subtle);\n padding: var(--space-8) 0;\n display: flex;\n flex-direction: column;\n z-index: 10050;\n }\n .attach-opt {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n width: var(--w-full);\n padding: var(--space-8) var(--space-16);\n border: none;\n background: transparent;\n cursor: pointer;\n text-align: left;\n font-family: inherit;\n font-size: var(--text-14);\n font-weight: var(--fw-400);\n color: var(--text-primary);\n white-space: nowrap;\n }\n .attach-opt:hover {\n background: var(--hover-overlay);\n }\n .attach-opt-icon {\n width: var(--text-16);\n height: var(--text-16);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n .attach-opt-icon img {\n width: var(--text-16);\n height: var(--text-16);\n object-fit: contain;\n display: block;\n }\n .attach-opt-icon--doc img {\n filter: none;\n }\n .attach-opt-icon--photos img {\n /* maps to --brand */\n filter: invert(32%) sepia(98%) saturate(1800%) hue-rotate(204deg) brightness(95%) contrast(95%);\n }\n .attach-opt-icon--camera img {\n /* maps to --danger */\n filter: invert(14%) sepia(98%) saturate(7400%) hue-rotate(0deg) brightness(100%) contrast(118%);\n }\n .composer.recording {\n align-items: center;\n justify-content: center;\n gap: var(--gap-16);\n padding: var(--space-8) var(--space-16);\n }\n .rec-body {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--gap-16);\n min-width: 0;\n width: auto;\n flex: 0 1 auto;\n max-width: 100%;\n }\n .rec-left, .rec-right {\n display: flex;\n align-items: center;\n gap: var(--gap-10);\n flex-shrink: 0;\n }\n .rec-timer-wrap {\n display: flex;\n align-items: center;\n gap: var(--gap-8);\n padding-left: var(--gap-4);\n }\n .rec-dot {\n width: 0.625rem;\n height: 0.625rem;\n border-radius: 9999px;\n background: var(--danger, #ef4444);\n flex-shrink: 0;\n }\n .rec-dot.live {\n animation: rec-pulse 1s ease-in-out infinite;\n }\n @keyframes rec-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.35; }\n }\n .rec-timer {\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n font-variant-numeric: tabular-nums;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n color: var(--text-primary);\n letter-spacing: -0.02em;\n }\n .rec-wave {\n flex: none;\n width: min(18rem, 42vw);\n min-width: 8rem;\n display: flex;\n align-items: center;\n justify-content: center;\n height:
|
|
6144
|
+
ChatFooter.style = ":host {\n display: block;\n width: var(--w-full);\n flex-shrink: 0;\n overflow: visible;\n position: relative;\n z-index: 40;\n font-family: var(--font-primary);\n }\n :host(.attachment-open) {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 4rem; /* keep web-chat-header visible */\n z-index: 60;\n flex-shrink: 0;\n overflow: hidden;\n }\n .chat-footer-container {\n position: relative;\n width: var(--w-full);\n padding: var(--space-12) var(--space-16);\n box-sizing: border-box;\n background: transparent;\n overflow: visible;\n }\n :host(.attachment-open) .chat-footer-container {\n height: var(--h-full);\n padding: 0;\n background: var(--bg-primary);\n overflow: hidden;\n }\n :host(.attachment-open) attachment-preview {\n display: block;\n height: var(--h-full);\n }\n .toaster {\n position: fixed;\n bottom: var(--space-16);\n right: var(--space-16);\n z-index: 1000;\n }\n .composer-wrap {\n position: relative;\n width: var(--w-full);\n overflow: visible;\n }\n .composer {\n display: flex;\n align-items: flex-end;\n gap: var(--gap-10);\n width: var(--w-full);\n box-sizing: border-box;\n padding: var(--space-8) var(--gap-14);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n border-radius: 1.5rem;\n box-shadow: 0 1px 2px var(--overlay);\n }\n .composer-input {\n flex: 1;\n min-height: var(--icon-md);\n max-height: 10rem;\n resize: none;\n overflow-y: auto;\n border: none;\n outline: none;\n background: transparent;\n color: var(--text-primary);\n font-size: var(--text-14);\n font-family: inherit;\n line-height: 1.4;\n padding: var(--gap-4);\n box-sizing: border-box;\n }\n .composer-input::placeholder {\n color: var(--text-tertiary);\n }\n .icon-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0 0 var(--gap-4);\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n opacity: 0.85;\n }\n .icon-btn:hover {\n opacity: 1;\n color: var(--brand);\n }\n .icon-btn img {\n width: var(--icon-md);\n height: var(--icon-md);\n display: block;\n object-fit: contain;\n }\n .emoji-panel {\n position: fixed;\n width: min(380px, calc(100vw - 24px));\n background: var(--bg-tertiary);\n border-radius: var(--rounded-12);\n box-shadow: 0 12px 40px var(--overlay);\n overflow: hidden;\n z-index: 9999;\n display: flex;\n flex-direction: column;\n isolation: isolate;\n }\n .emoji-panel-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-8);\n padding: var(--space-12) var(--space-12) var(--space-8) var(--space-16);\n background: var(--bg-tertiary);\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--text-primary);\n flex-shrink: 0;\n }\n .emoji-panel-close {\n border: none;\n background: transparent;\n cursor: pointer;\n width: var(--control);\n height: var(--control);\n border-radius: var(--rounded-8);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n font-size: var(--text-22);\n line-height: 1;\n padding: 0;\n flex-shrink: 0;\n }\n .emoji-panel-close:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n emoji-picker.emoji-picker {\n --background: var(--bg-tertiary);\n --border-color: transparent;\n --border-size: 0;\n --border-radius: 0;\n --indicator-color: var(--brand);\n --indicator-height: 3px;\n --input-border-radius: var(--rounded-8);\n --input-border-color: var(--border);\n --input-placeholder-color: var(--text-secondary);\n --input-font-color: var(--text-primary);\n --button-hover-background: var(--hover-overlay);\n --button-active-background: var(--bg-row-hover);\n --num-columns: 8;\n --emoji-size: 1.5rem;\n width: var(--w-full);\n height: 320px;\n }\n .file-input { display: none; }\n .attach-wrap {\n position: relative;\n flex-shrink: 0;\n }\n /* Fixed + JS coords \u2014 absolute left:0 breaks in split hosts (sidebar+pane). */\n .attach-menu {\n position: fixed;\n min-width: 12.5rem;\n background: var(--bg-primary);\n border-radius: var(--rounded-12);\n box-shadow: 0 2px 16px var(--overlay);\n border: 1px solid var(--border-subtle);\n padding: var(--space-8) 0;\n display: flex;\n flex-direction: column;\n z-index: 10050;\n }\n .attach-opt {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n width: var(--w-full);\n padding: var(--space-8) var(--space-16);\n border: none;\n background: transparent;\n cursor: pointer;\n text-align: left;\n font-family: inherit;\n font-size: var(--text-14);\n font-weight: var(--fw-400);\n color: var(--text-primary);\n white-space: nowrap;\n }\n .attach-opt:hover {\n background: var(--hover-overlay);\n }\n .attach-opt-icon {\n width: var(--text-16);\n height: var(--text-16);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n .attach-opt-icon img {\n width: var(--text-16);\n height: var(--text-16);\n object-fit: contain;\n display: block;\n }\n .attach-opt-icon--doc img {\n filter: none;\n }\n .attach-opt-icon--photos img {\n /* maps to --brand */\n filter: invert(32%) sepia(98%) saturate(1800%) hue-rotate(204deg) brightness(95%) contrast(95%);\n }\n .attach-opt-icon--camera img {\n /* maps to --danger */\n filter: invert(14%) sepia(98%) saturate(7400%) hue-rotate(0deg) brightness(100%) contrast(118%);\n }\n .composer.recording {\n align-items: center;\n justify-content: center;\n gap: var(--gap-16);\n padding: var(--space-8) var(--space-16);\n }\n .rec-body {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: var(--gap-16);\n min-width: 0;\n width: auto;\n flex: 0 1 auto;\n max-width: 100%;\n }\n .rec-left, .rec-right {\n display: flex;\n align-items: center;\n gap: var(--gap-10);\n flex-shrink: 0;\n }\n .rec-timer-wrap {\n display: flex;\n align-items: center;\n gap: var(--gap-8);\n padding-left: var(--gap-4);\n }\n .rec-dot {\n width: 0.625rem;\n height: 0.625rem;\n border-radius: 9999px;\n background: var(--danger, #ef4444);\n flex-shrink: 0;\n }\n .rec-dot.live {\n animation: rec-pulse 1s ease-in-out infinite;\n }\n @keyframes rec-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.35; }\n }\n .rec-timer {\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n font-variant-numeric: tabular-nums;\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n color: var(--text-primary);\n letter-spacing: -0.02em;\n }\n /* 2.5rem = AudioBubble LIVE_RECORD_WAVE_HEIGHT_PX (40) */\n .rec-wave {\n flex: none;\n width: min(18rem, 42vw);\n min-width: 8rem;\n display: flex;\n align-items: center;\n justify-content: center;\n height: 2.5rem;\n overflow: hidden;\n padding: 0 var(--space-8);\n }\n .rec-wave audio-bubble {\n display: block;\n width: 100%;\n height: 2.5rem;\n min-width: 0;\n }\n .rec-icon-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0.375rem;\n border-radius: 9999px;\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n flex-shrink: 0;\n }\n .rec-icon-btn:hover {\n background: var(--hover-overlay);\n }\n .rec-icon-btn.danger {\n color: var(--danger, #ef4444);\n }\n .rec-icon-btn.danger:hover {\n background: color-mix(in srgb, var(--danger, #ef4444) 10%, transparent);\n }\n .rec-icon-btn img {\n width: 1.25rem;\n height: 1.25rem;\n display: block;\n object-fit: contain;\n }\n .rec-icon-btn.danger img {\n filter: invert(27%) sepia(98%) saturate(2800%) hue-rotate(346deg) brightness(95%) contrast(95%);\n }\n .rec-icon-btn.pause img {\n filter: invert(27%) sepia(98%) saturate(2800%) hue-rotate(346deg) brightness(95%) contrast(95%);\n }\n .rec-toggle {\n padding: 0.25rem;\n }\n .rec-toggle img {\n width: 1rem;\n height: 1rem;\n }\n .rec-send {\n width: 2.5rem;\n height: 2.5rem;\n border: none;\n border-radius: 9999px;\n background: var(--brand, #2563eb);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n box-shadow: 0 1px 2px var(--overlay);\n padding: 0;\n margin-left: var(--gap-4);\n }\n .rec-send:hover {\n filter: brightness(0.92);\n }\n .rec-send:active {\n transform: scale(0.95);\n }\n .rec-send img {\n width: 1.25rem;\n height: 1.25rem;\n display: block;\n object-fit: contain;\n filter: brightness(0) invert(1);\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
|
|
5842
6145
|
|
|
5843
6146
|
const BlockChatList = class {
|
|
5844
6147
|
constructor(hostRef) {
|
|
@@ -5922,7 +6225,7 @@ const BlockChatList = class {
|
|
|
5922
6225
|
}
|
|
5923
6226
|
render() {
|
|
5924
6227
|
var _a, _b;
|
|
5925
|
-
return (h("div", { key: '
|
|
6228
|
+
return (h("div", { key: '7cbd6b4279f35ef4d996cf3d84ab9f789d751aad', class: "blocked-users-container" }, h("div", { key: '5ee28a4f1f50937a6ed9b872461c510634cc9459', class: "header" }, h("button", { key: '347682bd7d807d7b29aa7333dc1d3f28a9666b0e', class: "back-button", type: "button", onClick: () => { var _a; return (_a = this.goBack) === null || _a === void 0 ? void 0 : _a.call(this); }, "aria-label": "Back" }, h("img", { key: 'e5b6b887a3f76fa27e6d742bf61602fbca7e2d11', class: "theme-icon", src: Left_Arrow, alt: "" })), h("h2", { key: '8da9e43ebfc3b35f7700fdd2e6cfd080657cfed0', style: { margin: '0', fontSize: '18px' } }, "Blocked Users")), h("div", { key: '002e096cb9fe29049888081f215ccd6d9cc9a4c5', class: "search-container" }, h("input", { key: 'fed61d10d3b820b43ba42f1ebcfcccf1fe0e2ce8', class: "search-input", type: "text", placeholder: "Search users...", value: this.searchTerm, onInput: (e) => {
|
|
5926
6229
|
this.searchTerm = e.target.value;
|
|
5927
6230
|
this.debouncedSearch(this.searchTerm);
|
|
5928
6231
|
} })), this.isLoading ? (h("div", { class: "loading-spinner" }, h("spinner-loader", { height: "30px", width: "30px" }))) : ((_a = this.blockUsers) === null || _a === void 0 ? void 0 : _a.length) === 0 ? (h("div", { class: "empty-state" }, this.searchTerm
|
|
@@ -6063,6 +6366,7 @@ const ProfilePage = class {
|
|
|
6063
6366
|
this.selectedFile = null;
|
|
6064
6367
|
this.tempProfilePhotoUrl = '';
|
|
6065
6368
|
this.showBlocked = false;
|
|
6369
|
+
this.showStorage = false;
|
|
6066
6370
|
this.conversationId = '';
|
|
6067
6371
|
this.getUserDetails = undefined;
|
|
6068
6372
|
this.closeDrawer = undefined;
|
|
@@ -6122,9 +6426,12 @@ const ProfilePage = class {
|
|
|
6122
6426
|
if (this.showBlocked) {
|
|
6123
6427
|
return (h("div", { class: "profile blocked-wrap" }, h("block-chat-list", { goBack: () => (this.showBlocked = false) })));
|
|
6124
6428
|
}
|
|
6429
|
+
if (this.showStorage) {
|
|
6430
|
+
return (h("div", { class: "profile blocked-wrap" }, h("web-chat-storage", { goBack: () => (this.showStorage = false) })));
|
|
6431
|
+
}
|
|
6125
6432
|
const hasChanges = this.newName !== this.name || this.selectedFile !== null;
|
|
6126
6433
|
const isDark = (this.defaultTheme || '').toLowerCase() === 'dark';
|
|
6127
|
-
return (h("div", { class: "profile", style: { position: 'relative' } }, this.isLoading ? (h("div", { class: "spinner-overlay" }, h("spinner-loader", { height: "30px", width: "30px" }))) : null, h("div", { class: "header" }, h("button", { type: "button", class: "back-btn", onClick: () => { var _a; return (_a = this.closeDrawer) === null || _a === void 0 ? void 0 : _a.call(this); }, "aria-label": "Back" }, h("img", { src: Left_Arrow, class: "theme-icon", alt: "" })), h("h2", { class: "header-title" }, "Edit profile")), h("div", { class: "body" }, h("div", { class: "photo-wrap" }, h("div", { class: "avatar", onClick: this.triggerFileInput }, h("profile-avatar", { src: this.tempProfilePhotoUrl || '', name: this.name || '?', size: "8rem" })), h("button", { type: "button", class: "change-photo", onClick: this.triggerFileInput }, h("img", { src: Camera_Add, class: "theme-icon", width: "16", height: "16", alt: "", "aria-hidden": "true" }), "Change photo"), h("input", { type: "file", accept: "image/*", class: "file-input", onChange: this.handleFileChange })), h("div", { class: "fields" }, h("div", { class: "field-card" }, h("div", { class: "field-meta" }, h("span", { class: "field-label" }, "Name"), this.isEditingName ? (h("input", { type: "text", value: this.newName, class: "name-input", onInput: this.handleNameChange, onKeyDown: this.handleNameKeyDown, maxlength: 20, placeholder: "Enter your name" })) : (h("span", { class: "field-value" }, this.name))), h("button", { type: "button", class: "icon-btn", onClick: this.handleNameEdit, "aria-label": "Edit name" }, h("img", { src: Edit, class: "theme-icon", alt: "" }))), h("p", { class: "helper" }, "Only lowercase letters, numbers and underscore (max 20 chars).")), hasChanges ? (h("div", { class: "actions" }, h("button", { type: "button", class: "btn btn-primary", onClick: this.handleManualUpdate }, "Update Profile"), h("button", { type: "button", class: "btn btn-secondary", onClick: this.cancelChanges }, "Cancel"))) : null, h("div", { class: "menu" }, h("button", { type: "button", class: "menu-row", onClick: () => { var _a; return (_a = this.toggleTheme) === null || _a === void 0 ? void 0 : _a.call(this); } }, h("span", { class: "menu-left" }, h("span", { class: "glyph", "aria-hidden": "true" }, h("img", { src: Dark_Theme, class: "theme-icon", alt: "" })), "Dark Theme"), h("div", { class: `switch${isDark ? ' on' : ''}` }, h("div", { class: "switch-knob" }))), h("button", { type: "button", class: "menu-row", onClick: () => (this.showBlocked = true) }, h("span", { class: "menu-left" }, h("span", { class: "glyph sm", "aria-hidden": "true" }, h("img", { src: Block_User, class: "theme-icon", alt: "" })), "Blocked Users")), h("button", { type: "button", class: "menu-row danger", onClick: this.handleLogout }, h("span", { class: "menu-left" }, h("span", { class: "glyph sm", "aria-hidden": "true" }, h("img", { src: Logout, class: "theme-icon", alt: "" })), "Log out"))))));
|
|
6434
|
+
return (h("div", { class: "profile", style: { position: 'relative' } }, this.isLoading ? (h("div", { class: "spinner-overlay" }, h("spinner-loader", { height: "30px", width: "30px" }))) : null, h("div", { class: "header" }, h("button", { type: "button", class: "back-btn", onClick: () => { var _a; return (_a = this.closeDrawer) === null || _a === void 0 ? void 0 : _a.call(this); }, "aria-label": "Back" }, h("img", { src: Left_Arrow, class: "theme-icon", alt: "" })), h("h2", { class: "header-title" }, "Edit profile")), h("div", { class: "body" }, h("div", { class: "photo-wrap" }, h("div", { class: "avatar", onClick: this.triggerFileInput }, h("profile-avatar", { src: this.tempProfilePhotoUrl || '', name: this.name || '?', size: "8rem" })), h("button", { type: "button", class: "change-photo", onClick: this.triggerFileInput }, h("img", { src: Camera_Add, class: "theme-icon", width: "16", height: "16", alt: "", "aria-hidden": "true" }), "Change photo"), h("input", { type: "file", accept: "image/*", class: "file-input", onChange: this.handleFileChange })), h("div", { class: "fields" }, h("div", { class: "field-card" }, h("div", { class: "field-meta" }, h("span", { class: "field-label" }, "Name"), this.isEditingName ? (h("input", { type: "text", value: this.newName, class: "name-input", onInput: this.handleNameChange, onKeyDown: this.handleNameKeyDown, maxlength: 20, placeholder: "Enter your name" })) : (h("span", { class: "field-value" }, this.name))), h("button", { type: "button", class: "icon-btn", onClick: this.handleNameEdit, "aria-label": "Edit name" }, h("img", { src: Edit, class: "theme-icon", alt: "" }))), h("p", { class: "helper" }, "Only lowercase letters, numbers and underscore (max 20 chars).")), hasChanges ? (h("div", { class: "actions" }, h("button", { type: "button", class: "btn btn-primary", onClick: this.handleManualUpdate }, "Update Profile"), h("button", { type: "button", class: "btn btn-secondary", onClick: this.cancelChanges }, "Cancel"))) : null, h("div", { class: "menu" }, h("button", { type: "button", class: "menu-row", onClick: () => { var _a; return (_a = this.toggleTheme) === null || _a === void 0 ? void 0 : _a.call(this); } }, h("span", { class: "menu-left" }, h("span", { class: "glyph", "aria-hidden": "true" }, h("img", { src: Dark_Theme, class: "theme-icon", alt: "" })), "Dark Theme"), h("div", { class: `switch${isDark ? ' on' : ''}` }, h("div", { class: "switch-knob" }))), h("button", { type: "button", class: "menu-row", onClick: () => (this.showBlocked = true) }, h("span", { class: "menu-left" }, h("span", { class: "glyph sm", "aria-hidden": "true" }, h("img", { src: Block_User, class: "theme-icon", alt: "" })), "Blocked Users")), h("button", { type: "button", class: "menu-row", onClick: () => (this.showStorage = true) }, h("span", { class: "menu-left" }, h("span", { class: "glyph sm", "aria-hidden": "true" }, "\uD83D\uDCBE"), "Manage Storage")), h("button", { type: "button", class: "menu-row danger", onClick: this.handleLogout }, h("span", { class: "menu-left" }, h("span", { class: "glyph sm", "aria-hidden": "true" }, h("img", { src: Logout, class: "theme-icon", alt: "" })), "Log out"))))));
|
|
6128
6435
|
}
|
|
6129
6436
|
get el() { return getElement(this); }
|
|
6130
6437
|
static get watchers() { return {
|
|
@@ -6152,7 +6459,7 @@ const ProfileSidebar = class {
|
|
|
6152
6459
|
}
|
|
6153
6460
|
render() {
|
|
6154
6461
|
var _a, _b;
|
|
6155
|
-
return (h("div", { key: '
|
|
6462
|
+
return (h("div", { key: '11f871013013625c2fcb4d2e62bdc1a895cfcfaa', class: "profile-tab" }, h("div", { key: '5483740d3b8474d2f4d4d7e8ac4551fa57f61e58', class: "top-buttons" }, h("div", { key: 'fc19c05bf449fc4e382ad7ddb135f86e21a3c186', class: `chat-button${this.activeTab === 'Chat' ? ' active' : ''}`, title: "Chat", onClick: () => this.call(this.openChat) }, h("img", { key: '8e13cd6e9e3c847c025793a96d43be7055c486b2', src: Message, class: "theme-icon", alt: "chat" }), this.unreadConversationsCount > 0 ? (h("div", { class: "unread-count" }, this.unreadConversationsCount)) : null), h("div", { key: 'a48b04d1685f089b5a3afc81ceca3d5685d44ca2', class: `chat-button${this.activeTab === 'GroupCast' ? ' active' : ''}`, title: "GroupCast", onClick: () => this.call(this.openGroupCast) }, h("img", { key: 'f385357332b4ae67b50a1d20e0da81d7053448f8', src: Group_cast, class: "theme-icon", alt: "broadcast" }))), h("div", { key: '4ca3ab5643e2c3d417d51653724a7eb8a610c438', class: "bottom-buttons" }, h("div", { key: '0538bbe0d4bab60437367ac0486e9ca69b68119a', class: `avatar-wrap${this.activeTab === 'Profile' ? ' active' : ''}`, title: "Profile", onClick: () => this.call(this.openProfile) }, h("profile-avatar", { key: 'ef5bae38706945fdfc0156de15bbe8a7a31a41a4', src: ((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userProfileImageUrl) || '', name: ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userName) || '', size: "var(--avatar-sm)" })))));
|
|
6156
6463
|
}
|
|
6157
6464
|
};
|
|
6158
6465
|
ProfileSidebar.style = ":host {\n display: flex;\n height: var(--h-full);\n flex-shrink: 0;\n background-color: var(--bg-tertiary);\n }\n .profile-tab {\n width: var(--rail-width);\n height: var(--h-full);\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n background-color: var(--bg-tertiary);\n border-right: 1px solid var(--border);\n padding: var(--space-16);\n box-sizing: border-box;\n z-index: 20;\n }\n .top-buttons,\n .bottom-buttons {\n display: flex;\n flex-direction: column;\n align-items: center;\n width: var(--w-full);\n gap: var(--gap-16);\n }\n .top-buttons {\n margin-top: var(--gap-4);\n }\n .bottom-buttons {\n gap: var(--gap-12);\n }\n .chat-button {\n width: var(--control);\n height: var(--control);\n display: flex;\n align-items: center;\n justify-content: center;\n border-radius: var(--rounded-full);\n cursor: pointer;\n position: relative;\n color: var(--icon);\n transition: background-color 0.15s, color 0.15s, transform 0.1s;\n border: none;\n background: transparent;\n padding: 0;\n }\n .chat-button:hover {\n background-color: var(--hover-overlay);\n color: var(--text-primary);\n }\n .chat-button:active {\n transform: scale(0.95);\n }\n .chat-button.active {\n background-color: var(--brand-soft);\n color: var(--brand);\n }\n .chat-button img {\n width: var(--icon-md);\n height: var(--icon-md);\n display: block;\n }\n .theme-icon { filter: var(--svg-icon-filter); }\n .unread-count {\n position: absolute;\n top: calc(var(--gap-4) * -1);\n right: calc(var(--gap-4) * -1);\n min-width: var(--badge);\n height: var(--badge);\n padding: var(--gap-2) var(--gap-6);\n border-radius: var(--rounded-full);\n background: var(--brand);\n color: var(--text-on-brand);\n font-size: var(--text-10);\n font-weight: 700;\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n line-height: 1;\n }\n .avatar-wrap {\n width: var(--avatar-sm);\n height: var(--avatar-sm);\n border-radius: var(--rounded-full);\n overflow: hidden;\n cursor: pointer;\n position: relative;\n box-sizing: border-box;\n box-shadow: 0 0 0 2px transparent;\n transition: box-shadow 0.15s;\n }\n .avatar-wrap:hover {\n box-shadow: 0 0 0 2px var(--brand-soft);\n }\n .avatar-wrap.active {\n box-shadow: 0 0 0 2px var(--brand);\n }\n .avatar {\n width: var(--w-full);\n height: var(--h-full);\n object-fit: cover;\n display: block;\n }\n @media (max-width: 768px) {\n .profile-tab {\n display: none;\n }\n }";
|
|
@@ -6163,28 +6470,20 @@ const deleteSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGl
|
|
|
6163
6470
|
|
|
6164
6471
|
const logoutSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNMTAgNEg3YTMgMyAwIDAgMC0zIDN2MTBhMyAzIDAgMCAwIDMgM2gzIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgogIDxwYXRoIGQ9Ik0xNCAxMmg3IiBzdHJva2U9ImN1c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vciIvPgo8L3N2Zz4=';const EditIcon = editSvg;
|
|
6171
6476
|
|
|
6172
6477
|
const cameraAddSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IS0tIFVwbG9hZGVkIHRvOiBTVkcgUmVwbywgd3d3LnN2Z3JlcG8uY29tLCBHZW5lcmF0b3I6IFNWRyBSZXBvIE1peGVyIFRvb2xzIC0tPgo8c3ZnIHdpZHRoPSI4MDBweCIgaGVpZ2h0PSI4MDBweCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMTMgNUg5LjMyODQzQzguNzk3OTkgNSA4LjI4OTI5IDUuMjEwNzEgNy45MTQyMSA1LjU4NTc5TDcuMDg1NzkgNi40MTQyMUM2LjcxMDcxIDYuNzg5MjkgNi4yMDIwMSA3IDUuNjcxNTcgN0g0QzIuODk1NDMgNyAyIDcuODk1NDMgMiA5TDIgMTlDMiAyMC4xMDQ2IDIuODk1NDMgMjEgNCAyMUgxOEMxOS4xMDQ2IDIxIDIwIDIwLjEwNDYgMjAgMTlWMTJNMTcgNUgyM00yMCA4VjJNMTEgMThDMTMuMjA5MSAxOCAxNSAxNi4yMDkxIDE1IDE0QzE1IDExLjc5MDkgMTMuMjA5MSAxMCAxMSAxMEM4Ljc5MDg2IDEwIDcgMTEuNzkwOSA3IDE0QzcgMTYuMjA5MSA4Ljc5MDg2IDE4IDExIDE4WiIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+Cjwvc3ZnPg==';const CameraAddIcon = cameraAddSvg;
|
|
6173
6478
|
|
|
6174
|
-
const pdfSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBl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AAAASUVORK5CYII=";
|
|
6179
|
-
const RtfIcon = img$1;
|
|
6180
|
-
|
|
6181
|
-
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFwAAABoCAYAAAB8BJfjAAAABHNCSVQICAgIfAhkiAAACwpJREFUeF7tnXtwVNUdx393N7sQkmw2CZJshgEMD7MBCeRBO0ynOGpbaBLCFKZ2rECr2MG2Wlrb4B/VAa0M8rJKX1qraKl9+Wg2m3TGgogKVAuCCmITwkOwVJAmG4IJ2dx7+j2EwO6yyZ69r90N98xsksme3+N+7m9/55zfPfeuRHG2OU1smD3YsZQRLZckKohT3LTuTCGlcVdzK8nO2bSu9IhphmMYkuJxZPbLbePS7LYmyBTHI5eIvn3AW+yw3UYKq6G1lTsS4UekTWHg1b6uMcR69pBEecngeCwfGD6CjTtb+o6PUZCYtJDWlv85lpzR74sDrw+8DthfMNohvfSHAe9XytjDtKbyp3rZUKNHCHiV/6xXUpQDagwkSiYkpYS7wNhL1OW+lTZOPJ8I38SA+9qWSWTbkAgH1docEHifwj0kO76KwfSUWv1q5YSAV9cHfo50co9aI4mQiwGcu/Qx8vqXaE35QTP9EwPuCzwGp+420zGttgSAcxOdCKT5tLriFa32ROXFgDcENmKk/56o0mToJwicu6rg2H5IayoeN8NvMeD1gV8gEr5rhkN62YgDeL/J31J6+VJaISl6+RBNjxDwKl/gl+h4l5GO6K1bBXA+X99GXb3zaOPnO/T2p1+fEPDqhsCv4MxSo5wwQq8q4BccYc0UZDfThhnHjfBLCHiVr+M3ErHvGOGAUTrVA+fM6VP8qMIi6W29/RMCXuPreIIRu1Nv40bq0wS8z7EeUqRFepcDhIBX13c8SRJbYiQgvXXrALzPJcZWItJX6OWfEHCklKeQUm7Xy6hZevw7LhavtBusp8+yb9GjHCAEHBH+O0T4t7X7ba4G/5vNCkkSL9Hq0NhesktVtKripBZlYsB9HU/js/UtLYYSIYsID8KuUzfbjE4Rs3+F1k7fp1anEHDMw59Bx8VqjSRKDsC7YHuEvvZZ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rI6nGJzQIex5nGNolmbJMIL+DHIc+7SpJUYkW4IDQ9tkkwm22yBVwQ+OdKPIeuydG2L8UCLgibd9Njq5us2KZYES4IXY/NnP3AeWU/W9DuVdsNEX4UO6/GagGAb2y8nkf436CkVouiIS8rUUf1zImaH/zeB/y+veOIyRy6pstHQxU6dmScxaLntNatypwPBs2pl+9iu+9fNwwErbQof7HTaZ82VKEOdlxYXWL7gD5faxAOfBCrqfqw32QLEEWxlwrdp2kB1+fU9TL7NAu4PiyFtFjAhTDp2EmyT7ciXEeesVQpslImBLw6Rb+SIBYAs98XBl7TENiEve+LzHZwqNmTmVIuFuEp+CXUyXiyhIHj+zRXY5tWXTIeRGr5xCqEIryqPnA/7jpYmVoHl3zeMplVigH3tS1D4WVD8h1CankkPGhW17ffiQtyT6TW4SWXt/xBkYqDP75DoFX524skWWrBziGh/gIqr7ouEpNea6h13SgMsNrX/jKqZlbdXGWoyMRu/vtc96vCwGsaOkbiRtS3YE/TIyxU+pvaYhL9zF+T/QA/CGHgvPOcps9G24PBbZDS9FSF1KYXp/dMWuevdV2aUscFnJtCPs8hRboXf94F4Zw4zV9N3Xfg++tW+GvcW0MP+v87PdHcYmBtWgAAAABJRU5ErkJggg==";
|
|
6182
|
-
const TxtIcon = img;
|
|
6183
|
-
|
|
6184
6479
|
const ContactInfo = class {
|
|
6185
6480
|
constructor(hostRef) {
|
|
6186
6481
|
registerInstance(this, hostRef);
|
|
6187
6482
|
this.closeRightSidebar = createEvent(this, "close-right-Sidebar", 7);
|
|
6483
|
+
this.onMediaListOpenChange = (e) => {
|
|
6484
|
+
var _a;
|
|
6485
|
+
this.infoMediaListOpen = !!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.open);
|
|
6486
|
+
};
|
|
6188
6487
|
this.confirmClearChat = () => {
|
|
6189
6488
|
drawerDialogService.openDialog('confirm-dialog', {
|
|
6190
6489
|
title: 'Clear chat',
|
|
@@ -6213,6 +6512,8 @@ const ContactInfo = class {
|
|
|
6213
6512
|
});
|
|
6214
6513
|
};
|
|
6215
6514
|
this.openAddMember = () => {
|
|
6515
|
+
if (!this.isSelfAdmin())
|
|
6516
|
+
return;
|
|
6216
6517
|
const id = this.groupcastId || this.conversationId;
|
|
6217
6518
|
if (!id)
|
|
6218
6519
|
return;
|
|
@@ -6327,6 +6628,40 @@ const ContactInfo = class {
|
|
|
6327
6628
|
this.closeMemberMenu = () => {
|
|
6328
6629
|
this.memberMenuUserId = null;
|
|
6329
6630
|
};
|
|
6631
|
+
/** Opens member profile in the right rail (reuses open-right-Sidebar → profile-info). */
|
|
6632
|
+
this.openMemberProfile = (m) => {
|
|
6633
|
+
var _a, _b;
|
|
6634
|
+
const userName = m.userName || '';
|
|
6635
|
+
if (!m.userId || !userName)
|
|
6636
|
+
return;
|
|
6637
|
+
this.closeMemberMenu();
|
|
6638
|
+
this.el.dispatchEvent(new CustomEvent('open-right-Sidebar', {
|
|
6639
|
+
bubbles: true,
|
|
6640
|
+
composed: true,
|
|
6641
|
+
detail: {
|
|
6642
|
+
type: 'open-right-Sidebar',
|
|
6643
|
+
renderComponent: 'profile-info',
|
|
6644
|
+
userId: m.userId,
|
|
6645
|
+
userName,
|
|
6646
|
+
fromContactInfo: true,
|
|
6647
|
+
userProfileImageUrl: m.userProfileImageUrl,
|
|
6648
|
+
userIdentifier: (_a = m.userIdentifier) !== null && _a !== void 0 ? _a : (_b = m.metaData) === null || _b === void 0 ? void 0 : _b.status,
|
|
6649
|
+
},
|
|
6650
|
+
}));
|
|
6651
|
+
};
|
|
6652
|
+
this.onMemberRowClick = (m, isSelf) => {
|
|
6653
|
+
if (isSelf)
|
|
6654
|
+
return;
|
|
6655
|
+
this.openMemberProfile(m);
|
|
6656
|
+
};
|
|
6657
|
+
this.onMemberRowKeyDown = (e, m, isSelf) => {
|
|
6658
|
+
if (isSelf)
|
|
6659
|
+
return;
|
|
6660
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
6661
|
+
e.preventDefault();
|
|
6662
|
+
this.openMemberProfile(m);
|
|
6663
|
+
}
|
|
6664
|
+
};
|
|
6330
6665
|
this.confirmMakeAdmin = (m) => {
|
|
6331
6666
|
const name = m.userName || 'this member';
|
|
6332
6667
|
drawerDialogService.openDialog('confirm-dialog', {
|
|
@@ -6361,28 +6696,6 @@ const ContactInfo = class {
|
|
|
6361
6696
|
}),
|
|
6362
6697
|
});
|
|
6363
6698
|
};
|
|
6364
|
-
this.onPreviewError = (att) => {
|
|
6365
|
-
const urls = mediaPreviewUrls(att);
|
|
6366
|
-
const key = this.previewKey(att);
|
|
6367
|
-
const i = this.previewTry[key] || 0;
|
|
6368
|
-
if (i + 1 >= urls.length)
|
|
6369
|
-
return;
|
|
6370
|
-
this.previewTry = Object.assign(Object.assign({}, this.previewTry), { [key]: i + 1 });
|
|
6371
|
-
};
|
|
6372
|
-
this.openMediaList = () => {
|
|
6373
|
-
this.mediaListOpen = true;
|
|
6374
|
-
this.mediaTab = 'media';
|
|
6375
|
-
};
|
|
6376
|
-
this.switchTab = (tab) => {
|
|
6377
|
-
this.mediaTab = tab;
|
|
6378
|
-
if (tab === 'links' && this.conversationId) {
|
|
6379
|
-
this.el.dispatchEvent(new CustomEvent('get-links', {
|
|
6380
|
-
detail: { conversationId: this.conversationId },
|
|
6381
|
-
bubbles: true,
|
|
6382
|
-
composed: true,
|
|
6383
|
-
}));
|
|
6384
|
-
}
|
|
6385
|
-
};
|
|
6386
6699
|
this.padding = undefined;
|
|
6387
6700
|
this.margin = undefined;
|
|
6388
6701
|
this.width = undefined;
|
|
@@ -6435,12 +6748,7 @@ const ContactInfo = class {
|
|
|
6435
6748
|
this.groupcastId = undefined;
|
|
6436
6749
|
this.groupcastMembers = undefined;
|
|
6437
6750
|
this.closeContactInfo = undefined;
|
|
6438
|
-
this.
|
|
6439
|
-
this.mediaTab = 'media';
|
|
6440
|
-
this.galleryIndex = -1;
|
|
6441
|
-
this.mediaItems = [];
|
|
6442
|
-
this.docItems = [];
|
|
6443
|
-
this.previewTry = {};
|
|
6751
|
+
this.infoMediaListOpen = false;
|
|
6444
6752
|
this.memberMenuUserId = null;
|
|
6445
6753
|
this.titleEditing = false;
|
|
6446
6754
|
this.titleDraft = '';
|
|
@@ -6448,11 +6756,7 @@ const ContactInfo = class {
|
|
|
6448
6756
|
this.pushNotificationsEnabled = true;
|
|
6449
6757
|
this.pushNotificationsSaving = false;
|
|
6450
6758
|
}
|
|
6451
|
-
onAttachmentsChange() {
|
|
6452
|
-
this.extractAttachments();
|
|
6453
|
-
}
|
|
6454
6759
|
componentWillLoad() {
|
|
6455
|
-
this.extractAttachments();
|
|
6456
6760
|
this.syncPushNotificationsFromMeta();
|
|
6457
6761
|
}
|
|
6458
6762
|
onConversationMetaForPush() {
|
|
@@ -6502,8 +6806,9 @@ const ContactInfo = class {
|
|
|
6502
6806
|
}
|
|
6503
6807
|
}
|
|
6504
6808
|
close() {
|
|
6505
|
-
|
|
6506
|
-
|
|
6809
|
+
var _a;
|
|
6810
|
+
if (this.infoMediaListOpen) {
|
|
6811
|
+
void ((_a = this.mediaPanelRef) === null || _a === void 0 ? void 0 : _a.closeMediaList());
|
|
6507
6812
|
return;
|
|
6508
6813
|
}
|
|
6509
6814
|
this.closeRightSidebar.emit({ type: 'close-right-Sidebar' });
|
|
@@ -6547,131 +6852,73 @@ const ContactInfo = class {
|
|
|
6547
6852
|
detail,
|
|
6548
6853
|
}));
|
|
6549
6854
|
}
|
|
6550
|
-
previewKey(att) {
|
|
6551
|
-
return String((att === null || att === void 0 ? void 0 : att.mediaId) || (att === null || att === void 0 ? void 0 : att.mediaUrl) || (att === null || att === void 0 ? void 0 : att.name) || '');
|
|
6552
|
-
}
|
|
6553
|
-
shownSrc(att) {
|
|
6554
|
-
const urls = mediaPreviewUrls(att);
|
|
6555
|
-
const i = this.previewTry[this.previewKey(att)] || 0;
|
|
6556
|
-
return urls[i] || urls[0] || '';
|
|
6557
|
-
}
|
|
6558
|
-
attUrl(att) {
|
|
6559
|
-
return this.shownSrc(att) || (att === null || att === void 0 ? void 0 : att.mediaUrl) || (att === null || att === void 0 ? void 0 : att.thumbnailUrl) || (att === null || att === void 0 ? void 0 : att.url) || '';
|
|
6560
|
-
}
|
|
6561
|
-
isVideo(att) {
|
|
6562
|
-
const mime = String((att === null || att === void 0 ? void 0 : att.mimeType) || '');
|
|
6563
|
-
return mime.startsWith('video/') || Number(att === null || att === void 0 ? void 0 : att.mediaType) === 1;
|
|
6564
|
-
}
|
|
6565
|
-
docIcon(doc) {
|
|
6566
|
-
const kind = docIconKind(doc);
|
|
6567
|
-
if (kind === 'excel')
|
|
6568
|
-
return ExcelIcon;
|
|
6569
|
-
if (kind === 'pdf')
|
|
6570
|
-
return PdfIcon;
|
|
6571
|
-
if (kind === 'rtf')
|
|
6572
|
-
return RtfIcon;
|
|
6573
|
-
if (kind === 'txt')
|
|
6574
|
-
return TxtIcon;
|
|
6575
|
-
return DocumentsIcon;
|
|
6576
|
-
}
|
|
6577
|
-
linkUrl(link) {
|
|
6578
|
-
var _a;
|
|
6579
|
-
const body = String((link === null || link === void 0 ? void 0 : link.body) || '');
|
|
6580
|
-
return ((_a = body.match(/https?:\/\/\S+/)) === null || _a === void 0 ? void 0 : _a[0]) || body;
|
|
6581
|
-
}
|
|
6582
|
-
extractAttachments() {
|
|
6583
|
-
const { media, docs } = splitSharedMessages(this.allAttachments);
|
|
6584
|
-
const byTime = (a, b) => Number(b.date || 0) - Number(a.date || 0);
|
|
6585
|
-
this.mediaItems = media.sort(byTime);
|
|
6586
|
-
this.docItems = docs.sort(byTime);
|
|
6587
|
-
}
|
|
6588
|
-
groupByMonth(items, dateKey = 'date') {
|
|
6589
|
-
const groups = {};
|
|
6590
|
-
items.forEach(item => {
|
|
6591
|
-
const raw = item === null || item === void 0 ? void 0 : item[dateKey];
|
|
6592
|
-
const d = raw ? new Date(raw) : null;
|
|
6593
|
-
const key = d && !isNaN(d.getTime())
|
|
6594
|
-
? d.toLocaleString(undefined, { month: 'long', year: 'numeric' })
|
|
6595
|
-
: 'Other';
|
|
6596
|
-
if (!groups[key])
|
|
6597
|
-
groups[key] = [];
|
|
6598
|
-
groups[key].push(item);
|
|
6599
|
-
});
|
|
6600
|
-
return groups;
|
|
6601
|
-
}
|
|
6602
|
-
formatSize(bytes) {
|
|
6603
|
-
if (!bytes)
|
|
6604
|
-
return '';
|
|
6605
|
-
const k = 1024;
|
|
6606
|
-
const sizes = ['B', 'KB', 'MB', 'GB'];
|
|
6607
|
-
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
6608
|
-
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(1))} ${sizes[i]}`;
|
|
6609
|
-
}
|
|
6610
|
-
renderMediaListBody() {
|
|
6611
|
-
if (this.mediaTab === 'media') {
|
|
6612
|
-
if (!this.mediaItems.length) {
|
|
6613
|
-
return (h("div", { class: "empty" }, h("strong", null, "No Media"), "Share photos and videos in this chat to see them here."));
|
|
6614
|
-
}
|
|
6615
|
-
return (h("div", { class: "media-list-grid" }, this.mediaItems.map((item, i) => (h("div", { class: "media-list-cell", onClick: () => (this.galleryIndex = i) }, this.isVideo(item) ? (h("video", { src: item.mediaUrl || this.attUrl(item), muted: true, preload: "metadata" })) : (h("img", { src: this.shownSrc(item), alt: "", onError: () => this.onPreviewError(item) })), this.isVideo(item) ? h("img", { class: "play-badge", src: PlayIcon, alt: "" }) : null)))));
|
|
6616
|
-
}
|
|
6617
|
-
if (this.mediaTab === 'docs') {
|
|
6618
|
-
if (!this.docItems.length) {
|
|
6619
|
-
return (h("div", { class: "empty" }, h("strong", null, "No Documents"), "Share documents with this chat to see them here."));
|
|
6620
|
-
}
|
|
6621
|
-
const byMonth = this.groupByMonth(this.docItems, 'date');
|
|
6622
|
-
return Object.keys(byMonth).map(month => (h("div", null, h("div", { class: "month-sep" }, month), byMonth[month].map(doc => (h("button", { class: "doc-item", type: "button", onClick: () => doc.mediaUrl && window.open(doc.mediaUrl, '_blank') }, h("span", { class: "doc-icon" }, h("img", { src: this.docIcon(doc), alt: "" })), h("div", { class: "doc-meta" }, h("p", { class: "doc-name" }, doc.name || doc.fileName || 'Document'), h("p", { class: "doc-sub" }, [this.formatSize(doc.size || doc.mediaSize), doc.sender].filter(Boolean).join(' · ')))))))));
|
|
6623
|
-
}
|
|
6624
|
-
// links
|
|
6625
|
-
const links = Array.isArray(this.allLinks) ? this.allLinks : [];
|
|
6626
|
-
if (!links.length) {
|
|
6627
|
-
return (h("div", { class: "empty" }, h("strong", null, "No Links"), "URLs shared in this chat will appear here."));
|
|
6628
|
-
}
|
|
6629
|
-
const byMonth = this.groupByMonth(links, 'sentAt');
|
|
6630
|
-
return Object.keys(byMonth).map(month => (h("div", null, h("div", { class: "month-sep" }, month), byMonth[month].map((link) => {
|
|
6631
|
-
const url = this.linkUrl(link);
|
|
6632
|
-
return (h("a", { class: "link-item", href: url, target: "_blank", rel: "noopener noreferrer" }, h("link-preview", { url: url, time: link.sentAt, showReactionOnHover: false, isShowFooter: false })));
|
|
6633
|
-
}))));
|
|
6634
|
-
}
|
|
6635
|
-
renderGallery() {
|
|
6636
|
-
if (this.galleryIndex < 0 || !this.mediaItems[this.galleryIndex])
|
|
6637
|
-
return null;
|
|
6638
|
-
const cur = this.mediaItems[this.galleryIndex];
|
|
6639
|
-
const mime = String((cur === null || cur === void 0 ? void 0 : cur.mimeType) || '');
|
|
6640
|
-
const isVideo = mime.startsWith('video/') || (cur === null || cur === void 0 ? void 0 : cur.mediaType) === 1;
|
|
6641
|
-
return (h("div", { class: "gallery-overlay" }, h("div", { class: "gallery-top" }, h("button", { type: "button", "aria-label": "Close", onClick: () => (this.galleryIndex = -1) }, "\u2715")), h("div", { class: "gallery-main" }, isVideo ? h("video", { src: cur.mediaUrl || this.attUrl(cur), controls: true }) : h("img", { src: this.shownSrc(cur), alt: "", onError: () => this.onPreviewError(cur) }))));
|
|
6642
|
-
}
|
|
6643
6855
|
render() {
|
|
6644
6856
|
const members = this.isGroupcast ? this.groupcastMembers || [] : this.groupMembers || [];
|
|
6645
|
-
const thumbs = this.mediaItems.filter(m => !!this.attUrl(m)).slice(0, 2);
|
|
6646
|
-
const linkCount = Array.isArray(this.allLinks) ? this.allLinks.length : 0;
|
|
6647
|
-
const mediaCount = this.mediaItems.length + this.docItems.length + linkCount;
|
|
6648
6857
|
const isGroup = !!(this.isGroup || this.isGroupcast);
|
|
6649
|
-
|
|
6650
|
-
|
|
6651
|
-
|
|
6652
|
-
return (h("div", { class: "panel" }, h("div", { class: "header" }, h("button", { class: "close-btn", type: "button", "aria-label": "Close", title: "Close", onClick: () => this.close() }, h("img", { class: "theme-icon", src: CancelIcon, alt: "" })), h("h2", null, isGroup ? 'Group info' : 'Contact info')), h("div", { class: "body" }, h("div", { class: "card hero" }, h("div", { class: "hero-avatar-wrap" }, h("profile-avatar", { src: this.contactImage || '', name: this.contactName || '?', size: "7rem", isGroup: isGroup }), this.canEditGroupInfo() ? (h("button", { class: "photo-edit-btn", type: "button", "aria-label": "Change group photo", title: "Change group photo", disabled: this.imageUploading, onClick: this.openImagePicker }, h("img", { class: "theme-icon", src: CameraAddIcon, alt: "" }))) : null, h("input", { type: "file", accept: "image/*", hidden: true, ref: el => (this.imageFileInput = el), onChange: this.onImageFileChange })), this.titleEditing ? (h("div", { class: "title-edit-row" }, h("input", { class: "title-edit-input", type: "text", maxlength: 100, value: this.titleDraft, "aria-label": "Group name", onInput: this.onTitleDraftInput, onKeyDown: this.onTitleDraftKeyDown }), h("button", { class: "title-edit-save", type: "button", onClick: this.saveTitleEdit }, "Save"), h("button", { class: "title-edit-cancel", type: "button", onClick: this.cancelTitleEdit }, "Cancel"))) : (h("div", { class: "hero-name-row" }, h("h3", { class: "hero-name" }, this.contactName || 'Unknown'), this.canEditGroupInfo() ? (h("button", { class: "title-edit-btn", type: "button", "aria-label": "Edit group name", title: "Edit group name", onClick: this.startTitleEdit }, h("img", { class: "theme-icon", src: EditIcon, alt: "" }))) : null)), isGroup ? (h("p", { class: "hero-meta" }, "Group \u00B7 ", h("span", { class: "count" }, members.length, " members"))) : this.contactEmail ? (h("p", { class: "hero-meta" }, this.contactEmail)) : null), h("div", { class: "card" }, h("div", { class: "media-head", onClick: this.openMediaList }, h("div", { class: "media-label-row" }, h("span", { class: "media-icon", style: { ['--media-mask']: `url(${PhotosIcon})` } }), h("span", { class: "media-label" }, "Media, links and docs")), h("div", { class: "media-count-row" }, h("span", null, mediaCount || 0), h("span", { class: "chevron" }))), thumbs.length > 0 ? (h("div", { class: "media-grid" }, thumbs.map(item => (h("div", { class: "media-cell", onClick: this.openMediaList }, this.isVideo(item) ? (h("video", { src: item.mediaUrl || this.attUrl(item), muted: true, preload: "metadata" })) : (h("img", { src: this.shownSrc(item), alt: "", onError: () => this.onPreviewError(item) })), this.isVideo(item) ? h("img", { class: "play-badge", src: PlayIcon, alt: "" }) : null))))) : (h("div", { style: { height: 'var(--space-16)' } }))), isGroup ? (h("div", { class: "card" }, h("div", { class: "members-head" }, members.length, " members"), h("button", { type: "button", class: "add-member-row", onClick: this.openAddMember }, h("span", { class: "add-member-icon" }, h("img", { class: "theme-icon", src: AddUserIcon, alt: "" })), h("span", null, "Add member")), members.map((m) => {
|
|
6858
|
+
return (h("div", { key: '54ab0a8c531c6fef92d87f02ff21ddb9793d7588', class: "panel" }, !this.infoMediaListOpen ? (h("div", { class: "header" }, h("button", { class: "close-btn", type: "button", "aria-label": "Close", title: "Close", onClick: () => this.close() }, h("img", { class: "theme-icon", src: CancelIcon, alt: "" })), h("h2", null, isGroup ? 'Group info' : 'Contact info'))) : null, h("div", { key: '8e9a20ec0aad8cb248321384cdbdce331714b324', class: "body", style: this.infoMediaListOpen
|
|
6859
|
+
? { flex: '1', display: 'flex', flexDirection: 'column', minHeight: '0', overflow: 'hidden' }
|
|
6860
|
+
: undefined }, !this.infoMediaListOpen ? (h("div", { class: "card hero" }, h("div", { class: "hero-avatar-wrap" }, h("profile-avatar", { src: this.contactImage || '', name: this.contactName || '?', size: "7rem", isGroup: isGroup }), this.canEditGroupInfo() ? (h("button", { class: "photo-edit-btn", type: "button", "aria-label": "Change group photo", title: "Change group photo", disabled: this.imageUploading, onClick: this.openImagePicker }, h("img", { class: "theme-icon", src: CameraAddIcon, alt: "" }))) : null, h("input", { type: "file", accept: "image/*", hidden: true, ref: el => (this.imageFileInput = el), onChange: this.onImageFileChange })), this.titleEditing ? (h("div", { class: "title-edit-row" }, h("input", { class: "title-edit-input", type: "text", maxlength: 100, value: this.titleDraft, "aria-label": "Group name", onInput: this.onTitleDraftInput, onKeyDown: this.onTitleDraftKeyDown }), h("button", { class: "title-edit-save", type: "button", onClick: this.saveTitleEdit }, "Save"), h("button", { class: "title-edit-cancel", type: "button", onClick: this.cancelTitleEdit }, "Cancel"))) : (h("div", { class: "hero-name-row" }, h("h3", { class: "hero-name" }, this.contactName || 'Unknown'), this.canEditGroupInfo() ? (h("button", { class: "title-edit-btn", type: "button", "aria-label": "Edit group name", title: "Edit group name", onClick: this.startTitleEdit }, h("img", { class: "theme-icon", src: EditIcon, alt: "" }))) : null)), isGroup ? (h("p", { class: "hero-meta" }, "Group \u00B7 ", h("span", { class: "count" }, members.length, " members"))) : this.contactEmail ? (h("p", { class: "hero-meta" }, this.contactEmail)) : null)) : null, h("info-panel-media", { key: 'b1f00b0e31f509e8743ae3b73d78c1f8f532d298', ref: el => (this.mediaPanelRef = el), allAttachments: this.allAttachments, allLinks: this.allLinks, allLinksCount: this.allLinksCount, conversationId: this.conversationId, onMediaListOpenChange: this.onMediaListOpenChange }), !this.infoMediaListOpen && isGroup ? (h("div", { class: "card" }, h("div", { class: "members-head" }, members.length, " members"), this.isSelfAdmin() ? (h("button", { type: "button", class: "add-member-row", onClick: this.openAddMember }, h("span", { class: "add-member-icon" }, h("img", { class: "theme-icon", src: AddUserIcon, alt: "" })), h("span", null, "Add member"))) : null, members.map((m) => {
|
|
6653
6861
|
var _a, _b, _c;
|
|
6654
6862
|
const isSelf = m.userId === ((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId);
|
|
6655
6863
|
const canManage = this.isSelfAdmin() && !isSelf;
|
|
6656
6864
|
const menuOpen = this.memberMenuUserId === m.userId;
|
|
6657
|
-
|
|
6658
|
-
|
|
6865
|
+
const showMemberMenu = !isSelf;
|
|
6866
|
+
return (h("div", { class: { member: true, 'member-clickable': !isSelf }, "data-member-id": m.userId, role: !isSelf ? 'button' : undefined, tabIndex: !isSelf ? 0 : undefined, "aria-label": !isSelf ? `View ${m.userName || 'member'} info` : undefined, onClick: () => this.onMemberRowClick(m, isSelf), onKeyDown: e => this.onMemberRowKeyDown(e, m, isSelf) }, h("profile-avatar", { src: m.userProfileImageUrl || '', name: m.userName || '?', size: "2.25rem" }), h("div", { class: "member-text" }, h("p", { class: "member-name" }, h("span", null, isSelf ? 'You' : m.userName), m.isAdmin ? h("span", { class: "member-badge" }, "Admin") : null), m.userIdentifier || ((_b = m.metaData) === null || _b === void 0 ? void 0 : _b.status) ? (h("p", { class: "member-sub" }, ((_c = m.metaData) === null || _c === void 0 ? void 0 : _c.status) || m.userIdentifier)) : null), showMemberMenu ? (h("div", { class: "member-more-wrap" }, h("button", { type: "button", class: "member-more-btn", "aria-label": "Member actions", "aria-expanded": menuOpen ? 'true' : 'false', onClick: e => this.toggleMemberMenu(m.userId, e) }, "\u22EE"), menuOpen ? (h("div", { class: "member-menu", role: "menu", onClick: e => e.stopPropagation() }, h("button", { type: "button", role: "menuitem", onClick: e => {
|
|
6867
|
+
e.stopPropagation();
|
|
6868
|
+
this.openMemberProfile(m);
|
|
6869
|
+
} }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.VIEW_INFO), canManage ? (h("div", null, h("div", { class: "member-menu-divider", role: "separator" }), m.isAdmin ? (h("button", { type: "button", role: "menuitem", onClick: e => {
|
|
6870
|
+
e.stopPropagation();
|
|
6871
|
+
this.confirmRemoveAdmin(m);
|
|
6872
|
+
} }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE_ADMIN)) : (h("button", { type: "button", role: "menuitem", onClick: e => {
|
|
6873
|
+
e.stopPropagation();
|
|
6874
|
+
this.confirmMakeAdmin(m);
|
|
6875
|
+
} }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.MAKE_ADMIN)), h("button", { type: "button", class: "danger", role: "menuitem", onClick: e => {
|
|
6876
|
+
e.stopPropagation();
|
|
6877
|
+
this.confirmRemoveMember(m);
|
|
6878
|
+
} }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE_MEMBER))) : null)) : null)) : null));
|
|
6879
|
+
}))) : null, !this.infoMediaListOpen && !this.isGroupcast ? (h("div", { class: "card" }, h("div", { class: "pref-row" }, h("div", { class: "pref-copy" }, h("p", { class: "pref-title" }, "Mute notifications"), h("p", { class: "pref-sub" }, this.pushNotificationsEnabled
|
|
6659
6880
|
? 'Off — you still get alerts for this chat'
|
|
6660
|
-
: 'On — alerts muted for this chat')), h("button", { type: "button", class: "switch", role: "switch", "aria-checked": this.pushNotificationsEnabled ? 'false' : 'true', "aria-label": "Mute chat notifications", disabled: this.pushNotificationsSaving, onClick: () => this.togglePushNotifications() }, h("span", { class: "switch-knob" }))))) : null, h("div", { class: "card actions" }, h("button", { class: "action", type: "button", onClick: this.confirmClearChat }, h("span", { class: "action-icon", style: { ['--action-mask']: `url(${ClearChatIcon})` } }), "Clear chat"), h("button", { class: "action danger", type: "button", onClick: this.confirmDeleteChat }, h("span", { class: "action-icon", style: { ['--action-mask']: `url(${DeleteIcon})` } }), "Delete chat"), isGroup ? (h("button", { class: "action", type: "button", onClick: this.confirmExitGroup }, h("span", { class: "action-icon", style: { ['--action-mask']: `url(${LogoutIcon})` } }), "Exit group")) : null))));
|
|
6881
|
+
: 'On — alerts muted for this chat')), h("button", { type: "button", class: "switch", role: "switch", "aria-checked": this.pushNotificationsEnabled ? 'false' : 'true', "aria-label": "Mute chat notifications", disabled: this.pushNotificationsSaving, onClick: () => this.togglePushNotifications() }, h("span", { class: "switch-knob" }))))) : null, !this.infoMediaListOpen ? (h("div", { class: "card actions" }, h("button", { class: "action", type: "button", onClick: this.confirmClearChat }, h("span", { class: "action-icon", style: { ['--action-mask']: `url(${ClearChatIcon})` } }), "Clear chat"), !this.isGroup && !this.isGroupcast ? (h("button", { class: "action danger", type: "button", onClick: this.confirmDeleteChat }, h("span", { class: "action-icon", style: { ['--action-mask']: `url(${DeleteIcon})` } }), "Delete chat")) : null, this.isGroup ? (h("button", { class: "action", type: "button", onClick: this.confirmExitGroup }, h("span", { class: "action-icon", style: { ['--action-mask']: `url(${LogoutIcon})` } }), "Exit group")) : null)) : null)));
|
|
6661
6882
|
}
|
|
6662
6883
|
get el() { return getElement(this); }
|
|
6663
6884
|
static get watchers() { return {
|
|
6664
|
-
"allAttachments": ["onAttachmentsChange"],
|
|
6665
6885
|
"conversationMetaData": ["onConversationMetaForPush"],
|
|
6666
6886
|
"conversationId": ["onConversationMetaForPush", "onConversationChange"],
|
|
6667
6887
|
"contactImage": ["onContactImageChange"]
|
|
6668
6888
|
}; }
|
|
6669
6889
|
};
|
|
6670
|
-
ContactInfo.style = ":host {\n display: block;\n height: var(--h-full);\n width: var(--w-full);\n font-family: var(--font-primary);\n color: var(--text-primary);\n }\n .panel {\n display: flex;\n flex-direction: column;\n height: var(--h-full);\n background: var(--bg-primary);\n }\n .header {\n height: var(--rail-width);\n padding: 0 var(--space-16);\n background: var(--bg-primary);\n border-bottom: 1px solid var(--border);\n display: flex;\n align-items: center;\n gap: var(--gap-16);\n flex-shrink: 0;\n box-sizing: border-box;\n }\n .header h2 {\n margin: 0;\n font-size: var(--text-16);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .close-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n width: var(--control);\n height: var(--control);\n border-radius: var(--rounded-full);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n color: var(--icon);\n }\n .close-btn:hover { background: var(--hover-overlay); color: var(--text-primary); }\n .close-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n }\n .body {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n background: var(--bg-primary);\n }\n .card {\n background: var(--bg-primary);\n border-bottom: 1px solid var(--border);\n box-sizing: border-box;\n }\n .hero {\n padding: 1.5rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n }\n .hero-avatar-wrap {\n position: relative;\n width: 7rem;\n height: 7rem;\n flex-shrink: 0;\n }\n .photo-edit-btn {\n position: absolute;\n right: 0;\n bottom: 0;\n width: 2rem;\n height: 2rem;\n border: 1px solid var(--border);\n border-radius: var(--rounded-full);\n background: var(--bg-primary);\n color: var(--text-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n padding: 0;\n box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);\n z-index: 2;\n }\n .photo-edit-btn:hover { background: var(--hover-overlay); }\n .photo-edit-btn:disabled {\n opacity: 0.55;\n cursor: wait;\n }\n .photo-edit-btn img {\n width: 0.95rem;\n height: 0.95rem;\n display: block;\n }\n .hero-name-row {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--gap-4);\n margin: var(--gap-16) 0 var(--gap-4);\n max-width: 100%;\n }\n .hero-name {\n margin: 0;\n font-size: var(--text-20);\n font-weight: var(--fw-700);\n color: var(--text-primary);\n word-break: break-word;\n }\n .title-edit-btn {\n flex-shrink: 0;\n width: 1.75rem;\n height: 1.75rem;\n border: none;\n border-radius: var(--rounded-8);\n background: transparent;\n color: var(--text-secondary);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n padding: 0;\n }\n .title-edit-btn:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n .title-edit-btn img {\n width: 0.95rem;\n height: 0.95rem;\n display: block;\n }\n .title-edit-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n gap: var(--gap-8);\n margin: var(--gap-16) 0 var(--gap-4);\n width: 100%;\n max-width: 18rem;\n }\n .title-edit-input {\n flex: 1 1 8rem;\n min-width: 0;\n height: 2.25rem;\n padding: 0 0.75rem;\n border: 1px solid var(--border);\n border-radius: var(--rounded-8);\n background: var(--bg-input, var(--bg-primary));\n color: var(--text-primary);\n font: inherit;\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n box-sizing: border-box;\n }\n .title-edit-input:focus {\n outline: none;\n border-color: var(--brand, var(--text-primary));\n }\n .title-edit-save,\n .title-edit-cancel {\n height: 2.25rem;\n padding: 0 0.75rem;\n border-radius: var(--rounded-8);\n font: inherit;\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n cursor: pointer;\n }\n .title-edit-save {\n border: none;\n background: var(--text-primary);\n color: var(--bg-primary);\n }\n .title-edit-cancel {\n border: 1px solid var(--border);\n background: transparent;\n color: var(--text-secondary);\n }\n .hero-meta {\n margin: 0;\n font-size: var(--text-12);\n font-weight: var(--fw-500);\n color: var(--text-secondary);\n }\n .hero-meta .count { color: var(--brand); font-weight: var(--fw-600); }\n .media-head {\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: var(--space-16) 1.25rem 0;\n cursor: pointer;\n }\n .media-head:hover .media-label { color: var(--brand); }\n .media-label-row {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n }\n .media-icon {\n width: var(--icon-sm);\n height: var(--icon-sm);\n min-width: var(--icon-sm);\n flex-shrink: 0;\n background-color: var(--icon);\n -webkit-mask: var(--media-mask) center / contain no-repeat;\n mask: var(--media-mask) center / contain no-repeat;\n }\n .media-label {\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--text-primary);\n }\n .media-count-row {\n display: flex;\n align-items: center;\n gap: var(--gap-4);\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n color: var(--text-secondary);\n }\n .chevron {\n width: 0.4rem;\n height: 0.4rem;\n border-right: 2px solid var(--text-secondary);\n border-bottom: 2px solid var(--text-secondary);\n transform: rotate(-45deg);\n margin-left: 2px;\n }\n .media-grid {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: var(--gap-8);\n padding: var(--gap-8) 1.25rem 1.25rem;\n }\n .media-cell {\n position: relative;\n aspect-ratio: 16 / 9;\n border-radius: var(--rounded-8);\n overflow: hidden;\n background: var(--bg-input);\n border: 1px solid var(--border);\n cursor: pointer;\n }\n .members-head {\n padding: var(--space-16) 1.25rem var(--space-12);\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n color: var(--text-secondary);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n }\n .add-member-row {\n width: 100%;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: 0.625rem 1.25rem;\n border: none;\n border-top: 1px solid var(--border-subtle);\n background: transparent;\n cursor: pointer;\n text-align: left;\n font-family: inherit;\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--text-primary);\n box-sizing: border-box;\n }\n .add-member-row:hover { background: var(--hover-overlay); }\n .add-member-icon {\n width: 2.25rem;\n height: 2.25rem;\n border-radius: var(--rounded-full);\n background: var(--brand);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n .add-member-icon img {\n width: 1.25rem;\n height: 1.25rem;\n display: block;\n filter: brightness(0) invert(1);\n }\n .member {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: 0.625rem 1.25rem;\n border-top: 1px solid var(--border-subtle);\n box-sizing: border-box;\n }\n .member-text { min-width: 0; flex: 1; }\n .member-name {\n margin: 0;\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n gap: var(--gap-6);\n }\n .member-badge {\n flex-shrink: 0;\n font-size: var(--text-10);\n font-weight: var(--fw-600);\n padding: 0.1rem 0.35rem;\n border-radius: var(--rounded-full);\n background: var(--brand-soft);\n color: var(--brand);\n text-transform: uppercase;\n letter-spacing: 0.02em;\n }\n .member-sub {\n margin: 0;\n font-size: var(--text-12);\n color: var(--text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .member-more-wrap { position: relative; flex-shrink: 0; }\n .member-more-btn {\n width: 2rem;\n height: 2rem;\n border: none;\n border-radius: var(--rounded-full);\n background: transparent;\n color: var(--icon);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1.125rem;\n line-height: 1;\n padding: 0;\n }\n .member-more-btn:hover { background: var(--hover-overlay); }\n .member-menu {\n position: absolute;\n right: 0;\n top: calc(100% + 0.25rem);\n min-width: 10.5rem;\n padding: 0.35rem;\n border-radius: var(--rounded-8);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);\n z-index: 20;\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n }\n .member-menu button {\n border: none;\n background: transparent;\n text-align: left;\n padding: 0.55rem 0.65rem;\n border-radius: var(--rounded-6);\n cursor: pointer;\n font-family: var(--font-primary);\n font-size: var(--text-13, 0.8125rem);\n color: var(--text-primary);\n }\n .member-menu button:hover { background: var(--hover-overlay); }\n .member-menu button.danger { color: var(--danger); }\n .pref-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-12);\n padding: var(--space-16);\n box-sizing: border-box;\n }\n .pref-copy {\n flex: 1;\n min-width: 0;\n }\n .pref-title {\n margin: 0;\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n letter-spacing: -0.02em;\n color: var(--text-primary);\n }\n .pref-sub {\n margin: 0.2rem 0 0;\n font-size: var(--text-12, 0.75rem);\n line-height: 1.35;\n color: var(--text-secondary, var(--text-muted, #71717a));\n }\n .switch {\n position: relative;\n width: 2.5rem;\n height: 1.4rem;\n flex-shrink: 0;\n border: none;\n border-radius: 9999px;\n background: var(--border, #d4d4d8);\n cursor: pointer;\n padding: 0;\n transition: background 150ms ease-out;\n }\n .switch[aria-checked=\"true\"] { background: var(--text-primary, #18181b); }\n .switch:disabled { opacity: 0.55; cursor: not-allowed; }\n .switch-knob {\n position: absolute;\n top: 0.15rem;\n left: 0.15rem;\n width: 1.1rem;\n height: 1.1rem;\n border-radius: 9999px;\n background: #fff;\n box-shadow: 0 1px 2px rgba(0,0,0,0.18);\n transition: transform 150ms ease-out;\n }\n .switch[aria-checked=\"true\"] .switch-knob { transform: translateX(1.1rem); }\n .actions {\n padding: var(--space-16);\n display: flex;\n flex-direction: column;\n gap: var(--gap-8);\n }\n .action {\n width: 100%;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-8);\n border: none;\n border-radius: var(--rounded-8);\n background: transparent;\n cursor: pointer;\n text-align: left;\n font-family: var(--font-primary);\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--danger);\n box-sizing: border-box;\n }\n .action:hover { background: rgba(250, 0, 0, 0.08); }\n .action-icon {\n width: var(--icon-md);\n height: var(--icon-md);\n min-width: var(--icon-md);\n min-height: var(--icon-md);\n flex-shrink: 0;\n background-color: currentColor;\n -webkit-mask: var(--action-mask) center / contain no-repeat;\n mask: var(--action-mask) center / contain no-repeat;\n }\n\n /* Media list (full Media / Docs / Links) */\n .tabs {\n display: flex;\n border-bottom: 1px solid var(--border);\n flex-shrink: 0;\n background: var(--bg-primary);\n }\n .tab {\n flex: 1;\n padding: var(--space-12) var(--space-8);\n border: none;\n background: transparent;\n cursor: pointer;\n font-family: var(--font-primary);\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--text-secondary);\n position: relative;\n }\n .tab.active { color: var(--brand); font-weight: var(--fw-600); }\n .tab.active::after {\n content: '';\n position: absolute;\n left: 20%;\n right: 20%;\n bottom: 0;\n height: 2px;\n background: var(--brand);\n border-radius: 2px 2px 0 0;\n }\n .tab-body {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n padding: var(--space-12);\n background: var(--bg-primary);\n }\n .media-list-grid {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n gap: var(--gap-8);\n }\n .media-list-cell {\n position: relative;\n aspect-ratio: 1;\n border-radius: var(--rounded-8);\n overflow: hidden;\n background: var(--bg-input);\n cursor: pointer;\n }\n .media-list-cell img, .media-list-cell video,\n .media-cell img, .media-cell video {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n display: block;\n }\n .media-list-cell .play-badge, .media-cell .play-badge {\n position: absolute;\n inset: auto;\n left: 50%;\n top: 50%;\n width: 1.5rem;\n height: 1.5rem;\n object-fit: contain;\n transform: translate(-50%, -50%);\n pointer-events: none;\n }\n .empty {\n padding: 2.5rem var(--space-16);\n text-align: center;\n color: var(--text-secondary);\n font-size: var(--text-14);\n }\n .empty strong {\n display: block;\n margin-bottom: var(--gap-4);\n color: var(--text-primary);\n font-size: var(--text-16);\n }\n .doc-item, .link-item {\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-12);\n border-radius: var(--rounded-8);\n text-decoration: none;\n color: inherit;\n cursor: pointer;\n border: none;\n background: transparent;\n width: 100%;\n text-align: left;\n font-family: var(--font-primary);\n box-sizing: border-box;\n }\n .doc-item:hover, .link-item:hover { background: var(--hover-overlay); }\n .doc-icon {\n width: 2.5rem;\n height: 2.5rem;\n border-radius: var(--rounded-8);\n background: var(--bg-input);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n .doc-icon img {\n width: var(--icon-md);\n height: var(--icon-md);\n display: block;\n }\n .doc-meta { min-width: 0; flex: 1; }\n .doc-name {\n margin: 0;\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .doc-sub {\n margin: 0;\n font-size: var(--text-12);\n color: var(--text-secondary);\n }\n .month-sep {\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n color: var(--text-secondary);\n padding: var(--space-8) var(--space-4);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n }\n .gallery-overlay {\n position: fixed;\n inset: 0;\n z-index: 1000;\n background: rgba(0, 0, 0, 0.85);\n display: flex;\n flex-direction: column;\n }\n .gallery-top {\n display: flex;\n justify-content: flex-end;\n padding: var(--space-12);\n }\n .gallery-top button {\n border: none;\n background: transparent;\n color: #fff;\n font-size: 1.5rem;\n cursor: pointer;\n width: var(--control);\n height: var(--control);\n }\n .gallery-main {\n flex: 1;\n display: flex;\n align-items: center;\n justify-content: center;\n min-height: 0;\n padding: var(--space-16);\n }\n .gallery-main img, .gallery-main video {\n max-width: 100%;\n max-height: 100%;\n object-fit: contain;\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
|
|
6890
|
+
ContactInfo.style = ":host {\n display: block;\n height: var(--h-full);\n width: var(--w-full);\n font-family: var(--font-primary);\n color: var(--text-primary);\n }\n .panel {\n display: flex;\n flex-direction: column;\n height: var(--h-full);\n background: var(--bg-primary);\n }\n .header {\n height: var(--rail-width);\n padding: 0 var(--space-16);\n background: var(--bg-primary);\n border-bottom: 1px solid var(--border);\n display: flex;\n align-items: center;\n gap: var(--gap-16);\n flex-shrink: 0;\n box-sizing: border-box;\n }\n .header h2 {\n margin: 0;\n font-size: var(--text-16);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .close-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n width: var(--control);\n height: var(--control);\n border-radius: var(--rounded-full);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n color: var(--icon);\n }\n .close-btn:hover { background: var(--hover-overlay); color: var(--text-primary); }\n .close-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n }\n .body {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n background: var(--bg-primary);\n }\n .card {\n background: var(--bg-primary);\n border-bottom: 1px solid var(--border);\n box-sizing: border-box;\n }\n .hero {\n padding: 1.5rem;\n display: flex;\n flex-direction: column;\n align-items: center;\n text-align: center;\n }\n .hero-avatar-wrap {\n position: relative;\n width: 7rem;\n height: 7rem;\n flex-shrink: 0;\n }\n .photo-edit-btn {\n position: absolute;\n right: 0;\n bottom: 0;\n width: 2rem;\n height: 2rem;\n border: 1px solid var(--border);\n border-radius: var(--rounded-full);\n background: var(--bg-primary);\n color: var(--text-primary);\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n padding: 0;\n box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);\n z-index: 2;\n }\n .photo-edit-btn:hover { background: var(--hover-overlay); }\n .photo-edit-btn:disabled {\n opacity: 0.55;\n cursor: wait;\n }\n .photo-edit-btn img {\n width: 0.95rem;\n height: 0.95rem;\n display: block;\n }\n .hero-name-row {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--gap-4);\n margin: var(--gap-16) 0 var(--gap-4);\n max-width: 100%;\n }\n .hero-name {\n margin: 0;\n font-size: var(--text-20);\n font-weight: var(--fw-700);\n color: var(--text-primary);\n word-break: break-word;\n }\n .title-edit-btn {\n flex-shrink: 0;\n width: 1.75rem;\n height: 1.75rem;\n border: none;\n border-radius: var(--rounded-8);\n background: transparent;\n color: var(--text-secondary);\n display: inline-flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n padding: 0;\n }\n .title-edit-btn:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n .title-edit-btn img {\n width: 0.95rem;\n height: 0.95rem;\n display: block;\n }\n .title-edit-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n gap: var(--gap-8);\n margin: var(--gap-16) 0 var(--gap-4);\n width: 100%;\n max-width: 18rem;\n }\n .title-edit-input {\n flex: 1 1 8rem;\n min-width: 0;\n height: 2.25rem;\n padding: 0 0.75rem;\n border: 1px solid var(--border);\n border-radius: var(--rounded-8);\n background: var(--bg-input, var(--bg-primary));\n color: var(--text-primary);\n font: inherit;\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n box-sizing: border-box;\n }\n .title-edit-input:focus {\n outline: none;\n border-color: var(--brand, var(--text-primary));\n }\n .title-edit-save,\n .title-edit-cancel {\n height: 2.25rem;\n padding: 0 0.75rem;\n border-radius: var(--rounded-8);\n font: inherit;\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n cursor: pointer;\n }\n .title-edit-save {\n border: none;\n background: var(--text-primary);\n color: var(--bg-primary);\n }\n .title-edit-cancel {\n border: 1px solid var(--border);\n background: transparent;\n color: var(--text-secondary);\n }\n .hero-meta {\n margin: 0;\n font-size: var(--text-12);\n font-weight: var(--fw-500);\n color: var(--text-secondary);\n }\n .hero-meta .count { color: var(--brand); font-weight: var(--fw-600); }\n .members-head {\n padding: var(--space-16) 1.25rem var(--space-12);\n font-size: var(--text-12);\n font-weight: var(--fw-600);\n color: var(--text-secondary);\n text-transform: uppercase;\n letter-spacing: 0.04em;\n }\n .add-member-row {\n width: 100%;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: 0.625rem 1.25rem;\n border: none;\n border-top: 1px solid var(--border-subtle);\n background: transparent;\n cursor: pointer;\n text-align: left;\n font-family: inherit;\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--text-primary);\n box-sizing: border-box;\n }\n .add-member-row:hover { background: var(--hover-overlay); }\n .add-member-icon {\n width: 2.25rem;\n height: 2.25rem;\n border-radius: var(--rounded-full);\n background: var(--brand);\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n .add-member-icon img {\n width: 1.25rem;\n height: 1.25rem;\n display: block;\n filter: brightness(0) invert(1);\n }\n .member {\n position: relative;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: 0.625rem 1.25rem;\n border-top: 1px solid var(--border-subtle);\n box-sizing: border-box;\n }\n .member.member-clickable {\n cursor: pointer;\n }\n .member.member-clickable:hover {\n background: var(--hover-overlay);\n }\n .member-menu-divider {\n height: 1px;\n margin: 0.25rem 0;\n background: var(--border-subtle);\n }\n .member-text { min-width: 0; flex: 1; }\n .member-name {\n margin: 0;\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n display: flex;\n align-items: center;\n gap: var(--gap-6);\n }\n .member-badge {\n flex-shrink: 0;\n font-size: var(--text-10);\n font-weight: var(--fw-600);\n padding: 0.1rem 0.35rem;\n border-radius: var(--rounded-full);\n background: var(--brand-soft);\n color: var(--brand);\n text-transform: uppercase;\n letter-spacing: 0.02em;\n }\n .member-sub {\n margin: 0;\n font-size: var(--text-12);\n color: var(--text-secondary);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n .member-more-wrap { position: relative; flex-shrink: 0; }\n .member-more-btn {\n width: 2rem;\n height: 2rem;\n border: none;\n border-radius: var(--rounded-full);\n background: transparent;\n color: var(--icon);\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 1.125rem;\n line-height: 1;\n padding: 0;\n }\n .member-more-btn:hover { background: var(--hover-overlay); }\n .member-menu {\n position: absolute;\n right: 0;\n top: calc(100% + 0.25rem);\n min-width: 10.5rem;\n padding: 0.35rem;\n border-radius: var(--rounded-8);\n background: var(--bg-primary);\n border: 1px solid var(--border);\n box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);\n z-index: 20;\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n }\n .member-menu button {\n border: none;\n background: transparent;\n text-align: left;\n padding: 0.55rem 0.65rem;\n border-radius: var(--rounded-6);\n cursor: pointer;\n font-family: var(--font-primary);\n font-size: var(--text-13, 0.8125rem);\n color: var(--text-primary);\n }\n .member-menu button:hover { background: var(--hover-overlay); }\n .member-menu button.danger { color: var(--danger); }\n .pref-row {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--gap-12);\n padding: var(--space-16);\n box-sizing: border-box;\n }\n .pref-copy {\n flex: 1;\n min-width: 0;\n }\n .pref-title {\n margin: 0;\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n letter-spacing: -0.02em;\n color: var(--text-primary);\n }\n .pref-sub {\n margin: 0.2rem 0 0;\n font-size: var(--text-12, 0.75rem);\n line-height: 1.35;\n color: var(--text-secondary, var(--text-muted, #71717a));\n }\n .switch {\n position: relative;\n width: 2.5rem;\n height: 1.4rem;\n flex-shrink: 0;\n border: none;\n border-radius: 9999px;\n background: var(--border, #d4d4d8);\n cursor: pointer;\n padding: 0;\n transition: background 150ms ease-out;\n }\n .switch[aria-checked=\"true\"] { background: var(--text-primary, #18181b); }\n .switch:disabled { opacity: 0.55; cursor: not-allowed; }\n .switch-knob {\n position: absolute;\n top: 0.15rem;\n left: 0.15rem;\n width: 1.1rem;\n height: 1.1rem;\n border-radius: 9999px;\n background: #fff;\n box-shadow: 0 1px 2px rgba(0,0,0,0.18);\n transition: transform 150ms ease-out;\n }\n .switch[aria-checked=\"true\"] .switch-knob { transform: translateX(1.1rem); }\n .actions {\n padding: var(--space-16);\n display: flex;\n flex-direction: column;\n gap: var(--gap-8);\n }\n .action {\n width: 100%;\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n padding: var(--space-8);\n border: none;\n border-radius: var(--rounded-8);\n background: transparent;\n cursor: pointer;\n text-align: left;\n font-family: var(--font-primary);\n font-size: var(--text-14);\n font-weight: var(--fw-500);\n color: var(--danger);\n box-sizing: border-box;\n }\n .action:hover { background: rgba(250, 0, 0, 0.08); }\n .action-icon {\n width: var(--icon-md);\n height: var(--icon-md);\n min-width: var(--icon-md);\n min-height: var(--icon-md);\n flex-shrink: 0;\n background-color: currentColor;\n -webkit-mask: var(--action-mask) center / contain no-repeat;\n mask: var(--action-mask) center / contain no-repeat;\n }\n\n .theme-icon { filter: var(--svg-icon-filter); }";
|
|
6671
6891
|
|
|
6672
6892
|
const ProfileInfo = class {
|
|
6673
6893
|
constructor(hostRef) {
|
|
6674
6894
|
registerInstance(this, hostRef);
|
|
6895
|
+
this.onMediaListOpenChange = (e) => {
|
|
6896
|
+
var _a;
|
|
6897
|
+
this.infoMediaListOpen = !!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.open);
|
|
6898
|
+
};
|
|
6899
|
+
this.canMessage = () => typeof this.handleChatSelect === 'function' &&
|
|
6900
|
+
(this.conversationId || (this.oppenentId && this.contactName));
|
|
6901
|
+
this.openMessage = () => {
|
|
6902
|
+
const id = this.conversationId;
|
|
6903
|
+
if (id && typeof this.handleChatSelect === 'function') {
|
|
6904
|
+
this.handleChatSelect(id);
|
|
6905
|
+
this.el.dispatchEvent(new CustomEvent('close-right-Sidebar', {
|
|
6906
|
+
bubbles: true,
|
|
6907
|
+
composed: true,
|
|
6908
|
+
detail: { type: 'close-right-Sidebar' },
|
|
6909
|
+
}));
|
|
6910
|
+
return;
|
|
6911
|
+
}
|
|
6912
|
+
const userId = this.oppenentId;
|
|
6913
|
+
const userName = this.contactName;
|
|
6914
|
+
if (userId && userName) {
|
|
6915
|
+
this.el.dispatchEvent(new CustomEvent('member-message-clicked', {
|
|
6916
|
+
bubbles: true,
|
|
6917
|
+
composed: true,
|
|
6918
|
+
detail: { userId, userName },
|
|
6919
|
+
}));
|
|
6920
|
+
}
|
|
6921
|
+
};
|
|
6675
6922
|
this.padding = undefined;
|
|
6676
6923
|
this.margin = undefined;
|
|
6677
6924
|
this.width = undefined;
|
|
@@ -6723,14 +6970,25 @@ const ProfileInfo = class {
|
|
|
6723
6970
|
this.isBlocked = undefined;
|
|
6724
6971
|
this.conversationMetaData = undefined;
|
|
6725
6972
|
this.closeContactInfo = undefined;
|
|
6973
|
+
this.fromContactInfo = false;
|
|
6974
|
+
this.infoMediaListOpen = false;
|
|
6726
6975
|
}
|
|
6727
6976
|
close() {
|
|
6977
|
+
if (this.fromContactInfo) {
|
|
6978
|
+
this.el.dispatchEvent(new CustomEvent('close-contact-info', {
|
|
6979
|
+
bubbles: true,
|
|
6980
|
+
composed: true,
|
|
6981
|
+
detail: { type: 'close-contact-info' },
|
|
6982
|
+
}));
|
|
6983
|
+
return;
|
|
6984
|
+
}
|
|
6728
6985
|
if (typeof this.closeContactInfo === 'function')
|
|
6729
6986
|
this.closeContactInfo();
|
|
6730
6987
|
}
|
|
6731
6988
|
render() {
|
|
6732
6989
|
const avatar = this.contactImage || generateProfileImageByInitials(this.contactName || '?', 96, 96);
|
|
6733
|
-
|
|
6990
|
+
const messageLabel = WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.MESSAGE;
|
|
6991
|
+
return (h("div", { key: 'ee02eea37c1821f727112499b71bda5f0ee024f6', class: "panel", style: {
|
|
6734
6992
|
padding: this.padding,
|
|
6735
6993
|
margin: this.margin,
|
|
6736
6994
|
width: this.width,
|
|
@@ -6739,10 +6997,13 @@ const ProfileInfo = class {
|
|
|
6739
6997
|
backgroundColor: this.backgroundColor,
|
|
6740
6998
|
color: this.textColor,
|
|
6741
6999
|
fontFamily: this.fontFamily,
|
|
6742
|
-
} }, h("div", {
|
|
7000
|
+
} }, !this.infoMediaListOpen ? (h("div", { class: "header" }, this.fromContactInfo ? (h("button", { class: "back-btn", type: "button", "aria-label": "Back to group info", onClick: () => this.close() }, "\u2190")) : null, h("strong", null, "Profile"), !this.fromContactInfo ? (h("button", { class: "close-btn", type: "button", "aria-label": "Close", onClick: () => this.close() }, "\u2715")) : null)) : null, h("div", { key: 'c2c1e1a9e18a3a760608f96eb25f390696981342', class: "body", style: this.infoMediaListOpen
|
|
7001
|
+
? { flex: '1', display: 'flex', flexDirection: 'column', minHeight: '0', overflow: 'hidden' }
|
|
7002
|
+
: undefined }, !this.infoMediaListOpen ? (h("div", { class: "hero" }, h("img", { class: "avatar", src: avatar, alt: "", onClick: () => typeof this.openOwnProfile === 'function' && this.openOwnProfile() }), h("div", { class: "name" }, this.isEditingName ? this.editedName || this.contactName : this.contactName || 'Unknown'), this.contactEmail ? h("p", { class: "email" }, this.contactEmail) : null, this.canMessage() ? (h("div", { class: "hero-actions" }, h("button", { type: "button", class: "hero-action-btn", "aria-label": messageLabel, disabled: !this.conversationId && !(this.oppenentId && this.contactName), onClick: () => this.openMessage() }, h("span", { class: "action-icon" }, h("img", { src: Message, alt: "" })), h("span", { class: "action-label" }, messageLabel)))) : null)) : null, h("info-panel-media", { key: '0f017b665f1b9cff5f0049aa186a990684e1ce52', allAttachments: this.allAttachments || [], allLinks: this.allLinks, allLinksCount: this.allLinksCount, conversationId: this.conversationId, onMediaListOpenChange: this.onMediaListOpenChange }))));
|
|
6743
7003
|
}
|
|
7004
|
+
get el() { return getElement(this); }
|
|
6744
7005
|
};
|
|
6745
|
-
ProfileInfo.style = ":host { display: block; height: 100%; }\n .panel {\n display: flex; flex-direction: column; height: 100%; box-sizing: border-box;\n background: var(--bg-primary); color: var(--text-primary)
|
|
7006
|
+
ProfileInfo.style = ":host { display: block; height: 100%; }\n .panel {\n display: flex; flex-direction: column; height: 100%; box-sizing: border-box;\n background: var(--bg-primary); color: var(--text-primary);\n }\n .header {\n height: var(--rail-width);\n padding: 0 var(--space-16);\n background: var(--bg-primary);\n border-bottom: 1px solid var(--border);\n display: flex;\n align-items: center;\n gap: var(--gap-16);\n flex-shrink: 0;\n box-sizing: border-box;\n }\n .back-btn, .close-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n width: var(--control);\n height: var(--control);\n border-radius: var(--rounded-full);\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n font-size: 20px;\n color: inherit;\n }\n .back-btn:hover, .close-btn:hover { background: var(--hover-overlay, rgba(0,0,0,0.06)); }\n .close-btn { margin-left: auto; }\n .body {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n background: var(--bg-primary);\n }\n .hero {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--gap-8);\n padding: 1.5rem;\n text-align: center;\n border-bottom: 1px solid var(--border);\n }\n .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg-tertiary); }\n .name { font-size: 20px; font-weight: 600; margin: 0; }\n .email { font-size: 13px; opacity: 0.7; margin: 0; }\n .hero-actions {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--gap-8);\n margin-top: var(--gap-12);\n }\n .hero-action-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n padding: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--gap-6);\n color: inherit;\n font-family: inherit;\n }\n .hero-action-btn:disabled {\n opacity: 0.45;\n cursor: not-allowed;\n }\n .action-icon {\n width: var(--avatar, 3rem);\n height: var(--avatar, 3rem);\n border-radius: var(--rounded-full);\n background: var(--bg-secondary, rgba(255,255,255,0.08));\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n }\n .action-icon img {\n width: var(--icon-md, 1.25rem);\n height: var(--icon-md, 1.25rem);\n filter: var(--svg-icon-filter, none);\n }\n .action-label {\n font-size: var(--text-12);\n font-weight: var(--fw-500);\n color: var(--text-primary);\n }";
|
|
6746
7007
|
|
|
6747
7008
|
const MessageSearch = class {
|
|
6748
7009
|
constructor(hostRef) {
|
|
@@ -6800,7 +7061,7 @@ const MessageSearch = class {
|
|
|
6800
7061
|
}
|
|
6801
7062
|
render() {
|
|
6802
7063
|
const results = this.searchedMessageDetails || [];
|
|
6803
|
-
return (h("div", { key: '
|
|
7064
|
+
return (h("div", { key: 'f06b9a66110e7adf70d0ca923c3618eb730666de', class: "panel", onClick: e => e.stopPropagation() }, h("div", { key: '82610e71d865d99fd6b2640adec5eaa97158a1d0', class: "header" }, h("button", { key: 'b426ada4e41c0e9178e61ad54fc2aded08ecd5e3', class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.closeSearch() }, h("img", { key: '9d82fefa704bc7296dfec5146caecba6d7a2933e', class: "theme-icon", src: CancelIcon, alt: "" })), h("h3", { key: 'b42d1bcca8081319f9c2db6443110a8146b9c4d3', class: "title" }, "Search messages")), h("div", { key: '0bb34078a8caaa489cf0c59c5c36e920a133c88d', class: "search-wrap" }, h("div", { key: 'fb93e47ea36d45e0ea2235ae1081ac7b1e51f875', class: "search-bar" }, h("img", { key: '1eba82570c14154272893e048c30450ecd3a5b2c', class: "theme-icon search-icon", src: Search, alt: "" }), h("input", { key: '061a618229732021166c5c90944093b92c7eefc4', type: "text", placeholder: "Search", value: this.searchValue, onInput: this.onInput, autofocus: true }), this.searchValue ? (h("button", { class: "clear-btn", type: "button", "aria-label": "Clear", onClick: this.clearInput }, h("img", { class: "theme-icon", src: CancelIcon, alt: "" }))) : null)), h("div", { key: '576cc805e35187314f71cc70204ef0ce5dede2dd', class: "results" }, this.isLoadingMessage ? (h("div", { class: "empty" }, h("spinner-loader", { height: "15px", width: "15px" }))) : results.length === 0 ? (h("div", { class: "empty" }, h("p", null, this.searchValue ? 'No results found' : 'Search for messages'))) : (results.map(message => (h("div", { class: "row", onClick: () => this.handleResultClick(message.messageId) }, h("span", { class: "date" }, this.formatDate(message.sentAt)), h("span", { class: "body" }, this.highlight(message.body)))))))));
|
|
6804
7065
|
}
|
|
6805
7066
|
};
|
|
6806
7067
|
MessageSearch.style = ":host {\n display: block;\n height: 100%;\n font-family: var(--font-primary);\n color: var(--text-primary);\n }\n .panel {\n display: flex;\n flex-direction: column;\n height: 100%;\n box-sizing: border-box;\n background: var(--bg-primary);\n }\n .header {\n height: 4rem;\n padding: 0 var(--space-16);\n display: flex;\n align-items: center;\n gap: var(--gap-12);\n border-bottom: 1px solid var(--border);\n flex-shrink: 0;\n box-sizing: border-box;\n }\n .icon-btn {\n width: var(--control);\n height: var(--control);\n border: none;\n border-radius: var(--rounded-full);\n background: transparent;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n color: var(--icon);\n flex-shrink: 0;\n }\n .icon-btn:hover { background: var(--hover-overlay); color: var(--text-primary); }\n .icon-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n }\n .title {\n margin: 0;\n font-size: var(--text-16);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .search-wrap {\n padding: var(--space-16) var(--space-16) var(--space-8);\n border-bottom: 1px solid var(--border-subtle);\n }\n .search-bar {\n position: relative;\n display: flex;\n align-items: center;\n }\n .search-icon {\n position: absolute;\n left: 0.75rem;\n width: 1.125rem;\n height: 1.125rem;\n opacity: 0.55;\n pointer-events: none;\n }\n .search-bar input {\n width: 100%;\n box-sizing: border-box;\n border: none;\n outline: none;\n border-radius: var(--rounded-8);\n background: var(--bg-input);\n color: var(--text-primary);\n font-size: var(--text-14);\n font-family: var(--font-primary);\n padding: var(--gap-8) 2.25rem var(--gap-8) 2.25rem;\n }\n .search-bar input::placeholder { color: var(--text-tertiary); }\n .search-bar input:focus {\n box-shadow: 0 0 0 2px var(--focus-ring);\n }\n .clear-btn {\n position: absolute;\n right: 0.5rem;\n width: 1.75rem;\n height: 1.75rem;\n border: none;\n border-radius: var(--rounded-full);\n background: transparent;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 0;\n color: var(--text-tertiary);\n }\n .clear-btn:hover { color: var(--text-secondary); }\n .clear-btn img { width: 0.875rem; height: 0.875rem; display: block; }\n .results {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n }\n .empty {\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n padding: 2rem;\n text-align: center;\n box-sizing: border-box;\n }\n .empty p {\n margin: 0;\n max-width: 15rem;\n font-size: var(--text-12);\n color: var(--text-tertiary);\n line-height: 1.6;\n }\n .row {\n display: flex;\n flex-direction: column;\n gap: var(--gap-4);\n padding: var(--space-12) var(--space-16);\n border-bottom: 1px solid var(--border-subtle);\n cursor: pointer;\n }\n .row:hover { background: var(--hover-overlay); }\n .date {\n font-size: var(--text-12);\n color: var(--text-secondary);\n }\n .body {\n font-size: var(--text-14);\n color: var(--text-primary);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n .hit {\n background-color: var(--brand, #2563eb);\n color: var(--text-on-brand, #ffffff);\n border-radius: var(--rounded-2);\n padding: 0 2px;\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
|
|
@@ -6875,6 +7136,8 @@ const WebChatRightSide = class {
|
|
|
6875
7136
|
this.allLinksCount = undefined;
|
|
6876
7137
|
this.isBlocked = null;
|
|
6877
7138
|
this.groupcastMembers = [];
|
|
7139
|
+
this.profileOpenedFromContactInfo = false;
|
|
7140
|
+
this.pendingProfileMember = null;
|
|
6878
7141
|
}
|
|
6879
7142
|
async handleRemoveAdmin(event) {
|
|
6880
7143
|
const { userId, username } = event.detail;
|
|
@@ -7044,13 +7307,19 @@ const WebChatRightSide = class {
|
|
|
7044
7307
|
}));
|
|
7045
7308
|
}
|
|
7046
7309
|
render() {
|
|
7047
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y
|
|
7310
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
7048
7311
|
// Return the right sidebar content or null if nothing should be displayed
|
|
7049
7312
|
if (this.isContactInfoOpen) {
|
|
7050
7313
|
return (h("slot", { name: "contact-info" }, h("contact-info", { height: "var(--h-full)", width: "var(--w-full)", boxShadow: "none", backgroundColor: "var(--bg-primary)", textColor: "var(--text-primary)", contactName: ((_a = this.conversationMetaData) === null || _a === void 0 ? void 0 : _a.groupcastId) ? (_b = this.conversationMetaData) === null || _b === void 0 ? void 0 : _b.groupcastTitle : ((_c = this.conversationMetaData) === null || _c === void 0 ? void 0 : _c.conversationTitle) || ((_e = (_d = this.conversationMetaData) === null || _d === void 0 ? void 0 : _d.opponentDetails) === null || _e === void 0 ? void 0 : _e.userName), contactEmail: (_g = (_f = this.conversationMetaData) === null || _f === void 0 ? void 0 : _f.opponentDetails) === null || _g === void 0 ? void 0 : _g.userIdentifier, oppenentId: (_j = (_h = this.conversationMetaData) === null || _h === void 0 ? void 0 : _h.opponentDetails) === null || _j === void 0 ? void 0 : _j.userId, messageAction: this.messageAction, isGroup: (_k = this.conversationMetaData) === null || _k === void 0 ? void 0 : _k.isGroup, contactImage: ((_l = this.conversationMetaData) === null || _l === void 0 ? void 0 : _l.groupcastId) ? (_m = this.conversationMetaData) === null || _m === void 0 ? void 0 : _m.groupcastImageUrl : ((_o = this.conversationMetaData) === null || _o === void 0 ? void 0 : _o.isGroup) ? this.conversationMetaData.conversationImageUrl : (_q = (_p = this.conversationMetaData) === null || _p === void 0 ? void 0 : _p.opponentDetails) === null || _q === void 0 ? void 0 : _q.userProfileImageUrl, groupMembers: ((_r = this.conversationMetaData) === null || _r === void 0 ? void 0 : _r.members) || ((_t = (_s = this.conversationMetaData) === null || _s === void 0 ? void 0 : _s.metaData) === null || _t === void 0 ? void 0 : _t.members), allAttachments: this.allAttachments, closeContactInfo: () => (this.isContactInfoOpen = false), conversationId: this.selectedConversationId, userMetaData: this.userMetaData, eligibleMembers: this.eligibleMembers, hasMoreEligibleMembers: this.hasMoreEligibleMembers, openOwnProfile: this.openOwnProfile, allLinks: this.allLinks, allLinksCount: this.allLinksCount, isBlocked: this.isBlocked, conversationMetaData: this.conversationMetaData, groupcastMembers: this.groupcastMembers })));
|
|
7051
7314
|
}
|
|
7052
7315
|
if (this.isProfileInfoOpen) {
|
|
7053
|
-
|
|
7316
|
+
const pending = this.pendingProfileMember;
|
|
7317
|
+
const meta = this.conversationMetaData;
|
|
7318
|
+
const profileName = ((_u = meta === null || meta === void 0 ? void 0 : meta.opponentDetails) === null || _u === void 0 ? void 0 : _u.userName) || (pending === null || pending === void 0 ? void 0 : pending.userName) || (meta === null || meta === void 0 ? void 0 : meta.conversationTitle) || '';
|
|
7319
|
+
const profileEmail = ((_v = meta === null || meta === void 0 ? void 0 : meta.opponentDetails) === null || _v === void 0 ? void 0 : _v.userIdentifier) || (pending === null || pending === void 0 ? void 0 : pending.userIdentifier) || '';
|
|
7320
|
+
const profileImage = ((_w = meta === null || meta === void 0 ? void 0 : meta.opponentDetails) === null || _w === void 0 ? void 0 : _w.userProfileImageUrl) || (pending === null || pending === void 0 ? void 0 : pending.userProfileImageUrl) || '';
|
|
7321
|
+
const profileOpponentId = ((_x = meta === null || meta === void 0 ? void 0 : meta.opponentDetails) === null || _x === void 0 ? void 0 : _x.userId) || (pending === null || pending === void 0 ? void 0 : pending.userId) || '';
|
|
7322
|
+
return (h("slot", { name: "profile-info" }, h("profile-info", { height: "var(--h-full)", width: "var(--w-full)", boxShadow: "none", backgroundColor: "var(--bg-primary)", textColor: "var(--text-primary)", contactName: profileName, contactEmail: profileEmail, oppenentId: profileOpponentId, messageAction: this.messageAction, isGroup: false, contactImage: profileImage, groupMembers: (_y = this.conversationMetaData) === null || _y === void 0 ? void 0 : _y.members, allAttachments: this.allAttachments, allLinks: this.allLinks, allLinksCount: this.allLinksCount, closeContactInfo: () => (this.isProfileInfoOpen = false), fromContactInfo: this.profileOpenedFromContactInfo, conversationId: this.conversationIdFromContactinfo, userMetaData: this.userMetaData, eligibleMembers: this.eligibleMembers, hasMoreEligibleMembers: this.hasMoreEligibleMembers, handleChatSelect: this.handleChatSelect, isBlocked: this.isBlocked, conversationMetaData: this.conversationMetaData })));
|
|
7054
7323
|
}
|
|
7055
7324
|
if (this.isOpenSearchBar) {
|
|
7056
7325
|
return (h("slot", { name: "message-search" }, h("message-search", { onSearchResultClick: this.onSearchResultClick, onSearchHandler: this.onSearchHandler, searchedMessageDetails: this.searchedMessageDetails, onSearchInput: this.handleSearchInput, chatBodyRef: this.chatBodyRef, isLoadingMessage: this.isLoadingMessage })));
|
|
@@ -7073,7 +7342,7 @@ const ChatLoadingPlaceholder = class {
|
|
|
7073
7342
|
}
|
|
7074
7343
|
render() {
|
|
7075
7344
|
const pct = Math.max(0, Math.min(100, Number(this.progress) || 0));
|
|
7076
|
-
return (h("div", { key: '
|
|
7345
|
+
return (h("div", { key: 'f65fb2cef8d2642dfae594d5224415b81e7d6f11', class: "box" }, h("div", { key: '04396f25abd20a86cce72d96112b6773c876f59d', class: "logo", innerHTML: isometrikLogo }), h("div", { key: '48880af3a787a1b513bb1fa64da82f06e9f1fe5b', class: "bar" }, h("div", { key: '191778e44d60daef3aab92da1ddfa8121497d5f3', class: "fill", style: { width: `${pct}%` } })), h("div", { key: '4cc45d5652ba08937a897f3169a6342e1f98e74a', class: "pct" }, pct, "%")));
|
|
7077
7346
|
}
|
|
7078
7347
|
};
|
|
7079
7348
|
ChatLoadingPlaceholder.style = ":host {\n display: flex;\n box-sizing: border-box;\n width: var(--w-full);\n min-height: var(--h-screen);\n height: var(--h-full);\n align-items: center;\n justify-content: center;\n background: var(--bg-secondary);\n color: var(--text-primary);\n font-family: var(--font-primary);\n }\n .box {\n display: flex;\n flex-direction: column;\n gap: var(--gap-16);\n align-items: center;\n min-width: 220px;\n max-width: 320px;\n width: min(320px, 80vw);\n padding: calc(var(--space-16) + var(--space-8));\n }\n .logo {\n width: 180px;\n max-width: 70vw;\n }\n .logo svg {\n width: var(--w-full);\n height: var(--h-auto);\n display: block;\n }\n .bar {\n width: var(--w-full);\n height: var(--gap-6);\n border-radius: var(--rounded-full);\n background: var(--bg-primary);\n overflow: hidden;\n }\n .fill {\n height: var(--h-full);\n background: var(--brand);\n transition: width 0.2s ease;\n }\n .pct {\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n color: var(--text-secondary);\n text-align: center;\n }";
|
|
@@ -7169,7 +7438,7 @@ const MessageInfo = class {
|
|
|
7169
7438
|
render() {
|
|
7170
7439
|
const delivery = this.deliveryUserList || [];
|
|
7171
7440
|
const read = this.readUserList || [];
|
|
7172
|
-
return (h("div", { key: '
|
|
7441
|
+
return (h("div", { key: 'bc2bc7a2f632504120c331b51c7e9a7997cf2093', class: "panel" }, h("div", { key: '517b545620c454fbaf02869a72aa37914ad2a93b', class: "header" }, h("button", { key: 'a3595c578a6c34e9d4dcb5f8fa1e1437e8431847', class: "close-btn", type: "button", "aria-label": "Close", title: "Close", onClick: () => this.close() }, h("img", { key: '37c8975373eae526797b643e52bd9d15450535d9', class: "theme-icon", src: CancelIcon, alt: "" })), h("h2", { key: '020886aabecf6274c36555026b67a02beb254e18' }, "Message info")), h("div", { key: '31fda0c5160d4dccb1ac4f0f3c31babe263b62f3', class: "body" }, h("div", { key: '9d65024411a0c54daba6643e7bdee632e7101978', class: "preview-wrap" }, h("div", { key: '6baf2ef481a9b0bf0c038b6d50ee25337ca6b7a6', class: "preview-bubble" }, h("p", { key: '511f83782726c2cef54813342b7283aa8969b438', class: "preview-text" }, this.previewText()), h("div", { key: 'be3716118e6bf33b6f6e04916bcf524cd792faec', class: "preview-meta" }, h("span", { key: '037d5712f2c1c9a2bdd212a55e191f618b09ee73' }, this.bubbleTime())))), h("div", { key: 'd64602914b5ddc7027f604534aefeeb019531027', class: "status-list" }, h("div", { key: '62eb1cf0366513b9553639707cd52123edb3de2e', class: "status-row" }, this.ticksIcon('read'), h("div", { key: 'c0015e0a5417ef811f7f4d67aba713534a0a5599', class: "status-content" }, h("div", { key: 'f75721e74508c023aa3dfd498b37006d602acf1e', class: "status-title" }, "Read"), h("p", { key: '84a0b4245f94cd8ac54fbd7a25d3d7353881cc9b', class: "status-time" }, this.formatTime(this.messageReadTime)), read.map(u => (h("div", { class: "user-row" }, h("profile-avatar", { src: u.userProfileImageUrl || '', name: u.userName || '', size: "2rem" }), h("span", { class: "user-name" }, u.userName)))))), h("div", { key: '511699de7456dbe40b07b46cb846e77732200ce3', class: "status-row" }, this.ticksIcon('delivered'), h("div", { key: 'dd976e0e25bf45a3114c784e02c99bd1ab6a476d', class: "status-content" }, h("div", { key: '5b5ece3a8ee0fe5e2cc4a23bef95b1f3b47414d1', class: "status-title" }, "Delivered"), h("p", { key: '7b85c4c39e423c57a9cc2f3a4512dfa79aa139d9', class: "status-time" }, this.formatTime(this.messageDeliveryTime)), delivery.map(u => (h("div", { class: "user-row" }, h("profile-avatar", { src: u.userProfileImageUrl || '', name: u.userName || '', size: "2rem" }), h("span", { class: "user-name" }, u.userName))))))))));
|
|
7173
7442
|
}
|
|
7174
7443
|
};
|
|
7175
7444
|
MessageInfo.style = ":host {\n display: block;\n height: var(--h-full);\n width: var(--w-full);\n font-family: var(--font-primary);\n color: var(--text-primary);\n }\n .panel {\n display: flex;\n flex-direction: column;\n height: var(--h-full);\n background: var(--bg-primary);\n }\n .header {\n height: var(--rail-width);\n padding: 0 var(--space-16);\n background: var(--bg-primary);\n border-bottom: 1px solid var(--border);\n display: flex;\n align-items: center;\n gap: var(--gap-16);\n flex-shrink: 0;\n box-sizing: border-box;\n }\n .header h2 {\n margin: 0;\n font-size: var(--text-16);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .close-btn {\n border: none;\n background: transparent;\n cursor: pointer;\n width: var(--icon-lg);\n height: var(--icon-lg);\n border-radius: var(--rounded-full);\n display: flex;\n align-items: center;\n justify-content: center;\n color: var(--icon);\n padding: 0;\n }\n .close-btn:hover {\n background: var(--hover-overlay);\n color: var(--text-primary);\n }\n .close-btn img {\n width: var(--icon-sm);\n height: var(--icon-sm);\n display: block;\n }\n .body {\n flex: 1;\n min-height: 0;\n overflow-y: auto;\n background: var(--bg-tertiary);\n display: flex;\n flex-direction: column;\n }\n .preview-wrap {\n padding: var(--space-16);\n background: var(--bg-secondary);\n border-bottom: 1px solid var(--border);\n display: flex;\n justify-content: flex-end;\n box-sizing: border-box;\n }\n .preview-bubble {\n background: var(--brand);\n color: var(--text-on-brand);\n border-radius: var(--rounded-12) var(--rounded-12) var(--rounded-2) var(--rounded-12);\n padding: var(--gap-10) var(--space-16);\n max-width: 20rem;\n box-shadow: 0 1px 2px var(--overlay);\n box-sizing: border-box;\n }\n .preview-text {\n margin: 0;\n font-size: var(--text-14);\n line-height: 1.5;\n word-break: break-word;\n white-space: pre-wrap;\n }\n .preview-meta {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n margin-top: var(--gap-4);\n font-size: var(--text-10);\n color: var(--text-on-brand);\n opacity: 0.85;\n }\n .status-list {\n background: var(--bg-primary);\n box-shadow: 0 1px 2px var(--overlay);\n }\n .status-row {\n display: flex;\n align-items: flex-start;\n gap: var(--space-16);\n padding: var(--space-16);\n border-bottom: 1px solid var(--border-subtle);\n box-sizing: border-box;\n }\n .status-row:last-child {\n border-bottom: none;\n }\n .status-row:hover {\n background: var(--hover-overlay);\n }\n .status-icon {\n flex-shrink: 0;\n margin-top: var(--gap-2);\n width: var(--icon-md);\n height: var(--icon-md);\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--text-tertiary);\n -webkit-mask: var(--tick-mask) center / contain no-repeat;\n mask: var(--tick-mask) center / contain no-repeat;\n }\n .status-icon.read {\n background-color: var(--brand);\n }\n .status-icon.delivered {\n background-color: var(--text-tertiary);\n }\n .status-content {\n flex: 1;\n min-width: 0;\n }\n .status-title {\n font-size: var(--text-14);\n font-weight: var(--fw-600);\n color: var(--text-primary);\n }\n .status-time {\n margin: var(--gap-2) 0 0;\n font-size: var(--text-12);\n color: var(--text-tertiary);\n }\n .user-row {\n display: flex;\n align-items: center;\n gap: var(--space-8);\n margin-top: var(--space-8);\n }\n .user-name {\n font-size: var(--text-14);\n color: var(--text-primary);\n }\n .theme-icon { filter: var(--svg-icon-filter); }";
|
|
@@ -7200,7 +7469,7 @@ const IncomingTextMessageBubble = class {
|
|
|
7200
7469
|
this.showReactionOnHover = false;
|
|
7201
7470
|
}
|
|
7202
7471
|
render() {
|
|
7203
|
-
return (h("message-bubble", { key: '
|
|
7472
|
+
return (h("message-bubble", { key: 'c071c545514180fd556f803a8d5f99b74c488ca9', isSelf: false, time: this.time, timeColor: this.timeColor, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor || '#EFF1FA', borderRadius: this.borderRadius || '7px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, h("div", { key: 'b616c81d3e2a99e3e946aa12f4430d6b18c8af6f', style: { fontFamily: this.fontFamily, color: this.color, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, renderMessageBody(this.textContent, this.mentionedUsers, u => emitTagUser(this.tagUserClick, u), false))));
|
|
7204
7473
|
}
|
|
7205
7474
|
};
|
|
7206
7475
|
IncomingTextMessageBubble.style = ":host { display: block; max-width: 80%; margin-left: 10px; }";
|
|
@@ -7221,7 +7490,7 @@ const MessageDatePill = class {
|
|
|
7221
7490
|
this.content = '';
|
|
7222
7491
|
}
|
|
7223
7492
|
render() {
|
|
7224
|
-
return (h("span", { key: '
|
|
7493
|
+
return (h("span", { key: '5bdb255938e6e324a488bc692d1f013d6f46d623', class: "pill", style: {
|
|
7225
7494
|
background: this.bgColor,
|
|
7226
7495
|
color: this.textColor,
|
|
7227
7496
|
width: this.width,
|
|
@@ -7266,7 +7535,7 @@ const OutgoingTextMessageBubble = class {
|
|
|
7266
7535
|
this.fontFamily = 'var(--font-primary)';
|
|
7267
7536
|
}
|
|
7268
7537
|
render() {
|
|
7269
|
-
return (h("message-bubble", { key: '
|
|
7538
|
+
return (h("message-bubble", { key: '90de7e83d1b3c96880b9922181d5556474a168e1', isSelf: true, time: this.time, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, deliveryStatus: this.deliveryStatus, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, isForwarded: this.messageType === 1, backgroundColor: this.bgColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px' }, h("div", { key: '47b9a9ad3662ebaab6e5ff60e8d8d20055a26bc2', style: { fontFamily: this.fontFamily, color: this.textColor, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, renderMessageBody(this.textContent, this.mentionedUsers, u => emitTagUser(this.tagUserClick, u), true))));
|
|
7270
7539
|
}
|
|
7271
7540
|
};
|
|
7272
7541
|
OutgoingTextMessageBubble.style = ":host { display: block; max-width: 80%; margin-right: 10px; }";
|
|
@@ -7274,6 +7543,14 @@ OutgoingTextMessageBubble.style = ":host { display: block; max-width: 80%; margi
|
|
|
7274
7543
|
const ReplyMessageContainer = class {
|
|
7275
7544
|
constructor(hostRef) {
|
|
7276
7545
|
registerInstance(this, hostRef);
|
|
7546
|
+
this.handleQuoteClick = (event) => {
|
|
7547
|
+
var _a;
|
|
7548
|
+
event.stopPropagation();
|
|
7549
|
+
const parentId = this.parentMessageId;
|
|
7550
|
+
if (parentId) {
|
|
7551
|
+
(_a = this.onQuoteClick) === null || _a === void 0 ? void 0 : _a.call(this, parentId, event);
|
|
7552
|
+
}
|
|
7553
|
+
};
|
|
7277
7554
|
this.color = undefined;
|
|
7278
7555
|
this.fontSize = undefined;
|
|
7279
7556
|
this.textAlign = undefined;
|
|
@@ -7310,6 +7587,7 @@ const ReplyMessageContainer = class {
|
|
|
7310
7587
|
this.parentMessageSenderName = undefined;
|
|
7311
7588
|
this.isSelf = undefined;
|
|
7312
7589
|
this.onMediaClick = undefined;
|
|
7590
|
+
this.onQuoteClick = undefined;
|
|
7313
7591
|
this.allAttachments = undefined;
|
|
7314
7592
|
this.showEmojiReactions = undefined;
|
|
7315
7593
|
this.reactions = {};
|
|
@@ -7324,10 +7602,10 @@ const ReplyMessageContainer = class {
|
|
|
7324
7602
|
render() {
|
|
7325
7603
|
const parentBody = this.parentMessageBody || this.parentmessageBody || this.repliedMessage || '';
|
|
7326
7604
|
const parentName = this.parentMessageSenderName || this.senderName || 'Reply';
|
|
7327
|
-
return (h("message-bubble", { key: '
|
|
7605
|
+
return (h("message-bubble", { key: '93e49b15f5c7d2ae4796abeb5b2a2888be103932', isSelf: !!this.isSelf, time: this.messageTime, timeColor: this.timeColor, isRead: this.isRead, isDelivered: this.isDelivered, reactions: this.reactions, messageId: this.messageId, userMetaData: this.userMetaData, backgroundColor: this.backgroundColor, borderRadius: this.borderRadius || '10px', padding: this.padding || '10px', showReactionOnHover: this.showReactionOnHover }, h("div", { key: 'a485810dcacae0fb861e269d172aa996b9303cce', class: "quote", onClick: this.handleQuoteClick }, h("div", { key: 'de20dc1a269dc02323dbb4af256d5206cda7ff5e', class: "quote-sender" }, parentName), h("div", { key: '0c39ec13ebe42d421fd8d465423d5627bfbafbf7', class: "quote-body" }, parentBody), this.parentMessageMediaUrl ? (h("img", { class: "quote-media", src: this.parentMessageMediaUrl, alt: "" })) : null), h("div", { key: '588766212f8716890b2267ec709e92ef8cbc2d4b', class: "reply-body", style: { color: this.color, fontSize: this.fontSize, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, this.messageBody)));
|
|
7328
7606
|
}
|
|
7329
7607
|
};
|
|
7330
|
-
ReplyMessageContainer.style = ":host { display: block; }\n .quote {\n border-left: 3px solid var(--brand);\n background: var(--hover-overlay);\n border-radius: 6px;\n padding: 6px 8px;\n margin-bottom: 6px;\n font-size: 12px;\n max-width: 100%;\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n }\n .quote-sender { font-weight: 600; margin-bottom: 2px; color: var(--brand); }\n .quote-body { opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .quote-media { max-width: 120px; max-height: 80px; border-radius: 6px; margin-top: 4px; object-fit: cover; }\n .reply-body { width: 100%; text-align: left; }";
|
|
7608
|
+
ReplyMessageContainer.style = ":host { display: block; }\n .quote {\n border-left: 3px solid var(--brand);\n background: var(--hover-overlay);\n border-radius: 6px;\n padding: 6px 8px;\n margin-bottom: 6px;\n font-size: 12px;\n max-width: 100%;\n width: 100%;\n box-sizing: border-box;\n text-align: left;\n cursor: pointer;\n }\n .quote:hover {\n filter: brightness(0.97);\n }\n .quote-sender { font-weight: 600; margin-bottom: 2px; color: var(--brand); }\n .quote-body { opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n .quote-media { max-width: 120px; max-height: 80px; border-radius: 6px; margin-top: 4px; object-fit: cover; }\n .reply-body { width: 100%; text-align: left; }";
|
|
7331
7609
|
|
|
7332
7610
|
const formatMessageDateFromTimestamp = (timestamp) => {
|
|
7333
7611
|
if (!timestamp) {
|
|
@@ -7707,8 +7985,26 @@ const WebChatBody = class {
|
|
|
7707
7985
|
this.emitMessageInfoPanel(true, false);
|
|
7708
7986
|
}
|
|
7709
7987
|
};
|
|
7988
|
+
/**
|
|
7989
|
+
* Placeholder bubble for media that is past the owner's storage allowance
|
|
7990
|
+
* (`restricted`). Keeps any caption; never shows a broken image.
|
|
7991
|
+
*/
|
|
7992
|
+
this.renderRestrictedMedia = (caption, isSelf, props) => {
|
|
7993
|
+
const bg = isSelf ? 'var(--bg-outgoing-message)' : 'var(--bg-incoming-message)';
|
|
7994
|
+
const fg = isSelf ? 'var(--text-outgoing-message)' : 'var(--text-incoming-message)';
|
|
7995
|
+
return (h("div", { class: "restricted-media-bubble", style: {
|
|
7996
|
+
background: bg,
|
|
7997
|
+
color: fg,
|
|
7998
|
+
borderRadius: (props === null || props === void 0 ? void 0 : props.borderRadius) || '6px',
|
|
7999
|
+
padding: '10px 12px',
|
|
8000
|
+
maxWidth: '260px',
|
|
8001
|
+
display: 'flex',
|
|
8002
|
+
flexDirection: 'column',
|
|
8003
|
+
gap: '6px',
|
|
8004
|
+
} }, h("div", { style: { display: 'flex', alignItems: 'center', gap: '8px', opacity: '0.85' } }, h("span", { style: { fontSize: '16px' }, "aria-hidden": "true" }, "\uD83D\uDEAB"), h("span", { style: { fontStyle: 'italic', fontSize: '13px' } }, "Media unavailable")), caption ? h("span", { style: { fontSize: '14px' } }, caption) : null));
|
|
8005
|
+
};
|
|
7710
8006
|
this.renderAttachmentMessage = (message, isSelf) => {
|
|
7711
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
8007
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
7712
8008
|
// Caption from metaData.caption (Flutter/Swift); never show AttachmentMessage:* body placeholders
|
|
7713
8009
|
const caption = attachmentCaption(message);
|
|
7714
8010
|
// Common props for all message types
|
|
@@ -7741,30 +8037,37 @@ const WebChatBody = class {
|
|
|
7741
8037
|
userMetaData: this.userMetaData,
|
|
7742
8038
|
};
|
|
7743
8039
|
const props = isSelf ? commonOutgoingProps : commonIncomingProps;
|
|
7744
|
-
|
|
7745
|
-
|
|
8040
|
+
// Media storage quota: when the server has blanked a media attachment
|
|
8041
|
+
// (restricted), never render a broken image — show a placeholder and keep
|
|
8042
|
+
// any caption.
|
|
8043
|
+
if ((_a = message === null || message === void 0 ? void 0 : message.attachments) === null || _a === void 0 ? void 0 : _a.some((a) => a === null || a === void 0 ? void 0 : a.restricted)) {
|
|
8044
|
+
return this.renderRestrictedMedia(caption, isSelf, props);
|
|
8045
|
+
}
|
|
8046
|
+
if (((_b = message === null || message === void 0 ? void 0 : message.attachments) === null || _b === void 0 ? void 0 : _b.length) > 1 && !((_e = (_d = (_c = message === null || message === void 0 ? void 0 : message.attachments) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.mimeType) === null || _e === void 0 ? void 0 : _e.startsWith('application/'))) {
|
|
8047
|
+
return (h("image-message", Object.assign({}, props, { height: '220px', width: '250px', padding: "10px 10px 10px 10px", imageSrc: (_g = (_f = message === null || message === void 0 ? void 0 : message.attachments) === null || _f === void 0 ? void 0 : _f[0]) === null || _g === void 0 ? void 0 : _g.mediaUrl, downloadUrl: (_j = (_h = message === null || message === void 0 ? void 0 : message.attachments) === null || _h === void 0 ? void 0 : _h[0]) === null || _j === void 0 ? void 0 : _j.mediaUrl, downloadFileName: (_l = (_k = message === null || message === void 0 ? void 0 : message.attachments) === null || _k === void 0 ? void 0 : _k[0]) === null || _l === void 0 ? void 0 : _l.name, mimeType: (_o = (_m = message === null || message === void 0 ? void 0 : message.attachments) === null || _m === void 0 ? void 0 : _m[0]) === null || _o === void 0 ? void 0 : _o.mimeType, borderWidth: '5px', borderColor: isSelf ? 'var(--bg-grey-color)' : '#F2F2F2', borderStyle: 'solid', allAttachments: this.allAttachments, onImageClick: this.onMediaClick, totalMedia: ((_p = message === null || message === void 0 ? void 0 : message.attachments) === null || _p === void 0 ? void 0 : _p.length) - 1, mediaType: (_r = (_q = message.attachments) === null || _q === void 0 ? void 0 : _q[0]) === null || _r === void 0 ? void 0 : _r.mediaType, loadingMediaGallery: this.loadingMediaGallery })));
|
|
7746
8048
|
}
|
|
7747
8049
|
else {
|
|
7748
|
-
const nodes = (
|
|
8050
|
+
const nodes = (_s = message === null || message === void 0 ? void 0 : message.attachments) === null || _s === void 0 ? void 0 : _s.map(attachment => {
|
|
7749
8051
|
var _a, _b, _c, _d, _e;
|
|
7750
8052
|
if (((_a = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _a === void 0 ? void 0 : _a.startsWith('application/')) ||
|
|
7751
8053
|
(attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === 'text/plain' ||
|
|
7752
8054
|
((_b = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _b === void 0 ? void 0 : _b.includes('rtf')) ||
|
|
7753
8055
|
(message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:File' ||
|
|
7754
8056
|
(message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:Doc') {
|
|
7755
|
-
|
|
8057
|
+
const fileLabel = attachmentFileLabel(attachment);
|
|
8058
|
+
return (h("document-message", Object.assign({}, props, { message: suppressDuplicateFileCaption(caption, attachment), docType: attachment === null || attachment === void 0 ? void 0 : attachment.mimeType, fileName: fileLabel, href: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, width: "220px", padding: "10px", docName: fileLabel })));
|
|
7756
8059
|
}
|
|
7757
8060
|
if (((_c = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _c === void 0 ? void 0 : _c.startsWith('video/')) || (message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:Video') {
|
|
7758
|
-
return (h("video-message", Object.assign({}, props, { height: '220px', width: '250px', padding: "10px 10px 30px 10px", type: attachment === null || attachment === void 0 ? void 0 : attachment.mimeType, videoSrc: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, poster: (attachment === null || attachment === void 0 ? void 0 : attachment.thumbnailUrl) || '' })));
|
|
8061
|
+
return (h("video-message", Object.assign({}, props, { height: '220px', width: '250px', padding: "10px 10px 30px 10px", type: attachment === null || attachment === void 0 ? void 0 : attachment.mimeType, videoSrc: (attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl) || (attachment === null || attachment === void 0 ? void 0 : attachment.url), downloadFileName: attachment === null || attachment === void 0 ? void 0 : attachment.name, poster: (attachment === null || attachment === void 0 ? void 0 : attachment.thumbnailUrl) || '' })));
|
|
7759
8062
|
}
|
|
7760
8063
|
if (((_d = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _d === void 0 ? void 0 : _d.startsWith('image/')) || (message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:Image') {
|
|
7761
|
-
return (h("image-message", Object.assign({}, props, { height: '220px', width: '250px', padding: "10px 10px 10px 10px", imageSrc: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, borderWidth: '5px', borderColor: isSelf ? 'var(--bg-grey-color)' : '#F2F2F2', borderStyle: 'solid', allAttachments: this.allAttachments, onImageClick: this.onMediaClick, loadingMediaGallery: this.loadingMediaGallery })));
|
|
8064
|
+
return (h("image-message", Object.assign({}, props, { height: '220px', width: '250px', padding: "10px 10px 10px 10px", imageSrc: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, downloadUrl: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, downloadFileName: attachment === null || attachment === void 0 ? void 0 : attachment.name, mimeType: attachment === null || attachment === void 0 ? void 0 : attachment.mimeType, borderWidth: '5px', borderColor: isSelf ? 'var(--bg-grey-color)' : '#F2F2F2', borderStyle: 'solid', allAttachments: this.allAttachments, onImageClick: this.onMediaClick, loadingMediaGallery: this.loadingMediaGallery })));
|
|
7762
8065
|
}
|
|
7763
8066
|
if (((_e = attachment === null || attachment === void 0 ? void 0 : attachment.mimeType) === null || _e === void 0 ? void 0 : _e.startsWith('audio/')) || (message === null || message === void 0 ? void 0 : message.customType) === 'AttachmentMessage:Audio') {
|
|
7764
8067
|
return h("audio-bubble", Object.assign({}, props, { isRead: message.readByAll, isDelivered: message.deliveredToAll, audioUrl: attachment === null || attachment === void 0 ? void 0 : attachment.mediaUrl, showFooter: true }));
|
|
7765
8068
|
}
|
|
7766
8069
|
});
|
|
7767
|
-
if ((((
|
|
8070
|
+
if ((((_t = message === null || message === void 0 ? void 0 : message.attachments) === null || _t === void 0 ? void 0 : _t.length) || 0) < 2)
|
|
7768
8071
|
return nodes;
|
|
7769
8072
|
return (h("div", { style: { display: 'flex', flexDirection: 'column', gap: '8px', alignItems: isSelf ? 'flex-end' : 'flex-start' } }, nodes));
|
|
7770
8073
|
}
|
|
@@ -8155,7 +8458,7 @@ const WebChatBody = class {
|
|
|
8155
8458
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
8156
8459
|
const currentConversation = (_a = this.conversationList) === null || _a === void 0 ? void 0 : _a.find(conversation => (conversation === null || conversation === void 0 ? void 0 : conversation.conversationId) === this.selectedConversationId);
|
|
8157
8460
|
const shouldShowPlaceholder = ((_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.length) === 1 && ((_d = (_c = this.allMessages) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.action) !== 'clearConversation' && ((_e = this.allMessages) === null || _e === void 0 ? void 0 : _e.some(message => (message === null || message === void 0 ? void 0 : message.action) === 'clearConversation'));
|
|
8158
|
-
return (h("div", { key: '
|
|
8461
|
+
return (h("div", { key: '9c5e6e127f8e565aae3ea86498308ffccab58e3f', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, (this.showScrollButton || this.newMessageNotification) && (h("div", { key: '3f76fb23f4cc17082f97aacefcb2097ee21cc9f6', class: "jump-latest", onClick: this.scrollToBottom, role: "button", "aria-label": "Jump to latest messages", style: {
|
|
8159
8462
|
position: 'sticky',
|
|
8160
8463
|
bottom: '1rem',
|
|
8161
8464
|
marginLeft: 'auto',
|
|
@@ -8172,7 +8475,7 @@ const WebChatBody = class {
|
|
|
8172
8475
|
cursor: 'pointer',
|
|
8173
8476
|
boxShadow: '0 2px 8px rgba(0,0,0,0.14)',
|
|
8174
8477
|
zIndex: '100',
|
|
8175
|
-
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '
|
|
8478
|
+
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '1e0717bd0f35d8358c12d692023b04500fe7f525', style: {
|
|
8176
8479
|
position: 'absolute',
|
|
8177
8480
|
bottom: '22px',
|
|
8178
8481
|
right: '-2px',
|
|
@@ -8186,7 +8489,7 @@ const WebChatBody = class {
|
|
|
8186
8489
|
justifyContent: 'center',
|
|
8187
8490
|
fontSize: '12px',
|
|
8188
8491
|
padding: '0 4px',
|
|
8189
|
-
} })), h("svg", { key: '
|
|
8492
|
+
} })), h("svg", { key: '5a83d31bcca78c3f8a9c1f35932a450c3d563e00', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '3d0271d9a78d5587b94768166bec5f2824a1245e', d: "M12 5V19M12 19L19 12M12 19L5 12", stroke: "var(--text-primary-color)", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), shouldShowPlaceholder && (h("div", { key: 'db8fdfa1ce6903d75891d6ecfe898fd612dfe056', style: {
|
|
8190
8493
|
display: 'flex',
|
|
8191
8494
|
flexDirection: 'column',
|
|
8192
8495
|
alignItems: 'center',
|
|
@@ -8196,7 +8499,7 @@ const WebChatBody = class {
|
|
|
8196
8499
|
textAlign: 'center',
|
|
8197
8500
|
color: 'var(--text-secondary-color)',
|
|
8198
8501
|
marginTop: '20px',
|
|
8199
|
-
} }, h("img", { key: '
|
|
8502
|
+
} }, h("img", { key: '0e3c073ce868cf762b34e8ad5dec3aee493a9cdc', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), h("div", { key: '5a32629dbfe5407fa3314d9eb1caf4a6a7f90ac6', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, h("span", { key: '97b4b97972a5a0e54919ea0bfd2f4f60f992722b', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), h("span", { key: '9a64770152ab31951820896af458e462fc4b957e', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (h("spinner-loader", { key: 'b7fbf684e778497b2244e7a0d8bcdf628080208b', height: "20px", width: "20px", spinTime: "1s", spinnerPrimaryColor: "#000", spinnerSecondaryColor: "var(--bg-grey-color)", spinnerBorderWidth: "3px" })), ((_g = this.allMessages) === null || _g === void 0 ? void 0 : _g.length) > 0 &&
|
|
8200
8503
|
((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
|
|
8201
8504
|
(() => {
|
|
8202
8505
|
const total = this.allMessages.length;
|
|
@@ -8309,6 +8612,6 @@ const WebChatBody = class {
|
|
|
8309
8612
|
};
|
|
8310
8613
|
WebChatBody.style = WebChatBodyStyle0;
|
|
8311
8614
|
|
|
8312
|
-
export { AttachmentPreview as attachment_preview, BlockChatList as block_chat_list, ChatFooter as chat_footer, ChatLoadingPlaceholder as chat_loading_placeholder, ChatSidebar as chat_side_bar, ContactInfo as contact_info, ContextMenu as context_menu, GroupCast as group_cast, IncomingTextMessageBubble as incoming_text_message_bubble, MessageDatePill as message_date_pill, MessageInfo as message_info, MessageSearch as message_search, NewChat as new_chat, OutgoingTextMessageBubble as outgoing_text_message_bubble, ProfileInfo as profile_info, ProfilePage as profile_page, ProfileSidebar as profile_sidebar, ReplyBlock as reply_block, ReplyMessageContainer as reply_message_container, WebChatBody as web_chat_body, WebChatHeader as web_chat_header, WebChatRightSide as web_chat_right_sidebar };
|
|
8615
|
+
export { AttachmentPreview as attachment_preview, BlockChatList as block_chat_list, ChatFooter as chat_footer, ChatLoadingPlaceholder as chat_loading_placeholder, ChatSidebar as chat_side_bar, ContactInfo as contact_info, ContextMenu as context_menu, GroupCast as group_cast, IncomingTextMessageBubble as incoming_text_message_bubble, MessageDatePill as message_date_pill, MessageInfo as message_info, MessageSearch as message_search, NewChat as new_chat, OutgoingTextMessageBubble as outgoing_text_message_bubble, ProfileInfo as profile_info, ProfilePage as profile_page, ProfileSidebar as profile_sidebar, ReplyBlock as reply_block, ReplyMessageContainer as reply_message_container, WebChatBody as web_chat_body, WebChatHeader as web_chat_header, WebChatRightSide as web_chat_right_sidebar, WebChatStorage as web_chat_storage };
|
|
8313
8616
|
|
|
8314
|
-
//# sourceMappingURL=attachment-
|
|
8617
|
+
//# sourceMappingURL=attachment-preview_23.entry.js.map
|