isometrik-plugin-chat-sdk 2.0.21 → 2.0.23
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
|
@@ -3,18 +3,9 @@ import CancelIcon from "../../../../assets/svg/cancel.svg";
|
|
|
3
3
|
import ClearChatIcon from "../../../../assets/svg/clear-chat.svg";
|
|
4
4
|
import DeleteIcon from "../../../../assets/svg/delete.svg";
|
|
5
5
|
import LogoutIcon from "../../../../assets/svg/logout.svg";
|
|
6
|
-
import PhotosIcon from "../../../../assets/svg/photos.svg";
|
|
7
|
-
import LeftArrowIcon from "../../../../assets/svg/left-arrow.svg";
|
|
8
|
-
import PlayIcon from "../../../../assets/svg/play.svg";
|
|
9
6
|
import AddUserIcon from "../../../../assets/svg/add-user.svg";
|
|
10
7
|
import EditIcon from "../../../../assets/svg/edit.svg";
|
|
11
8
|
import CameraAddIcon from "../../../../assets/svg/camera-add.svg";
|
|
12
|
-
import DocumentsIcon from "../../../../assets/svg/documents.svg";
|
|
13
|
-
import PdfIcon from "../../../../assets/images/pdf.svg";
|
|
14
|
-
import ExcelIcon from "../../../../assets/images/excel.svg";
|
|
15
|
-
import RtfIcon from "../../../../assets/images/rtf.png";
|
|
16
|
-
import TxtIcon from "../../../../assets/images/txt.png";
|
|
17
|
-
import { splitSharedMessages, mediaPreviewUrls, docIconKind } from "../../../../lib/chat";
|
|
18
9
|
import { updateConversationNotifications, withConversationPushFlag, } from "../../../../lib/chat/conversation-notifications";
|
|
19
10
|
import { normalizeGroupTitle } from "../../../../lib/chat/group-title";
|
|
20
11
|
import { drawerDialogService } from "../../../../lib/drawer";
|
|
@@ -22,9 +13,13 @@ import { promptExitGroup } from "../../../../lib/prompt-exit-group";
|
|
|
22
13
|
import { showToast } from "../../../../lib/toast";
|
|
23
14
|
import { WEB_CONTENT } from "../../../../constants/content";
|
|
24
15
|
import "../profile-avatar/profile-avatar";
|
|
25
|
-
import "../
|
|
16
|
+
import "../info-panel-media/info-panel-media";
|
|
26
17
|
export class ContactInfo {
|
|
27
18
|
constructor() {
|
|
19
|
+
this.onMediaListOpenChange = (e) => {
|
|
20
|
+
var _a;
|
|
21
|
+
this.infoMediaListOpen = !!((_a = e.detail) === null || _a === void 0 ? void 0 : _a.open);
|
|
22
|
+
};
|
|
28
23
|
this.confirmClearChat = () => {
|
|
29
24
|
drawerDialogService.openDialog('confirm-dialog', {
|
|
30
25
|
title: 'Clear chat',
|
|
@@ -53,6 +48,8 @@ export class ContactInfo {
|
|
|
53
48
|
});
|
|
54
49
|
};
|
|
55
50
|
this.openAddMember = () => {
|
|
51
|
+
if (!this.isSelfAdmin())
|
|
52
|
+
return;
|
|
56
53
|
const id = this.groupcastId || this.conversationId;
|
|
57
54
|
if (!id)
|
|
58
55
|
return;
|
|
@@ -167,6 +164,40 @@ export class ContactInfo {
|
|
|
167
164
|
this.closeMemberMenu = () => {
|
|
168
165
|
this.memberMenuUserId = null;
|
|
169
166
|
};
|
|
167
|
+
/** Opens member profile in the right rail (reuses open-right-Sidebar → profile-info). */
|
|
168
|
+
this.openMemberProfile = (m) => {
|
|
169
|
+
var _a, _b;
|
|
170
|
+
const userName = m.userName || '';
|
|
171
|
+
if (!m.userId || !userName)
|
|
172
|
+
return;
|
|
173
|
+
this.closeMemberMenu();
|
|
174
|
+
this.el.dispatchEvent(new CustomEvent('open-right-Sidebar', {
|
|
175
|
+
bubbles: true,
|
|
176
|
+
composed: true,
|
|
177
|
+
detail: {
|
|
178
|
+
type: 'open-right-Sidebar',
|
|
179
|
+
renderComponent: 'profile-info',
|
|
180
|
+
userId: m.userId,
|
|
181
|
+
userName,
|
|
182
|
+
fromContactInfo: true,
|
|
183
|
+
userProfileImageUrl: m.userProfileImageUrl,
|
|
184
|
+
userIdentifier: (_a = m.userIdentifier) !== null && _a !== void 0 ? _a : (_b = m.metaData) === null || _b === void 0 ? void 0 : _b.status,
|
|
185
|
+
},
|
|
186
|
+
}));
|
|
187
|
+
};
|
|
188
|
+
this.onMemberRowClick = (m, isSelf) => {
|
|
189
|
+
if (isSelf)
|
|
190
|
+
return;
|
|
191
|
+
this.openMemberProfile(m);
|
|
192
|
+
};
|
|
193
|
+
this.onMemberRowKeyDown = (e, m, isSelf) => {
|
|
194
|
+
if (isSelf)
|
|
195
|
+
return;
|
|
196
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
197
|
+
e.preventDefault();
|
|
198
|
+
this.openMemberProfile(m);
|
|
199
|
+
}
|
|
200
|
+
};
|
|
170
201
|
this.confirmMakeAdmin = (m) => {
|
|
171
202
|
const name = m.userName || 'this member';
|
|
172
203
|
drawerDialogService.openDialog('confirm-dialog', {
|
|
@@ -201,28 +232,6 @@ export class ContactInfo {
|
|
|
201
232
|
}),
|
|
202
233
|
});
|
|
203
234
|
};
|
|
204
|
-
this.onPreviewError = (att) => {
|
|
205
|
-
const urls = mediaPreviewUrls(att);
|
|
206
|
-
const key = this.previewKey(att);
|
|
207
|
-
const i = this.previewTry[key] || 0;
|
|
208
|
-
if (i + 1 >= urls.length)
|
|
209
|
-
return;
|
|
210
|
-
this.previewTry = Object.assign(Object.assign({}, this.previewTry), { [key]: i + 1 });
|
|
211
|
-
};
|
|
212
|
-
this.openMediaList = () => {
|
|
213
|
-
this.mediaListOpen = true;
|
|
214
|
-
this.mediaTab = 'media';
|
|
215
|
-
};
|
|
216
|
-
this.switchTab = (tab) => {
|
|
217
|
-
this.mediaTab = tab;
|
|
218
|
-
if (tab === 'links' && this.conversationId) {
|
|
219
|
-
this.el.dispatchEvent(new CustomEvent('get-links', {
|
|
220
|
-
detail: { conversationId: this.conversationId },
|
|
221
|
-
bubbles: true,
|
|
222
|
-
composed: true,
|
|
223
|
-
}));
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
235
|
this.padding = undefined;
|
|
227
236
|
this.margin = undefined;
|
|
228
237
|
this.width = undefined;
|
|
@@ -275,12 +284,7 @@ export class ContactInfo {
|
|
|
275
284
|
this.groupcastId = undefined;
|
|
276
285
|
this.groupcastMembers = undefined;
|
|
277
286
|
this.closeContactInfo = undefined;
|
|
278
|
-
this.
|
|
279
|
-
this.mediaTab = 'media';
|
|
280
|
-
this.galleryIndex = -1;
|
|
281
|
-
this.mediaItems = [];
|
|
282
|
-
this.docItems = [];
|
|
283
|
-
this.previewTry = {};
|
|
287
|
+
this.infoMediaListOpen = false;
|
|
284
288
|
this.memberMenuUserId = null;
|
|
285
289
|
this.titleEditing = false;
|
|
286
290
|
this.titleDraft = '';
|
|
@@ -288,11 +292,7 @@ export class ContactInfo {
|
|
|
288
292
|
this.pushNotificationsEnabled = true;
|
|
289
293
|
this.pushNotificationsSaving = false;
|
|
290
294
|
}
|
|
291
|
-
onAttachmentsChange() {
|
|
292
|
-
this.extractAttachments();
|
|
293
|
-
}
|
|
294
295
|
componentWillLoad() {
|
|
295
|
-
this.extractAttachments();
|
|
296
296
|
this.syncPushNotificationsFromMeta();
|
|
297
297
|
}
|
|
298
298
|
onConversationMetaForPush() {
|
|
@@ -342,8 +342,9 @@ export class ContactInfo {
|
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
close() {
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
var _a;
|
|
346
|
+
if (this.infoMediaListOpen) {
|
|
347
|
+
void ((_a = this.mediaPanelRef) === null || _a === void 0 ? void 0 : _a.closeMediaList());
|
|
347
348
|
return;
|
|
348
349
|
}
|
|
349
350
|
this.closeRightSidebar.emit({ type: 'close-right-Sidebar' });
|
|
@@ -387,121 +388,37 @@ export class ContactInfo {
|
|
|
387
388
|
detail,
|
|
388
389
|
}));
|
|
389
390
|
}
|
|
390
|
-
previewKey(att) {
|
|
391
|
-
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) || '');
|
|
392
|
-
}
|
|
393
|
-
shownSrc(att) {
|
|
394
|
-
const urls = mediaPreviewUrls(att);
|
|
395
|
-
const i = this.previewTry[this.previewKey(att)] || 0;
|
|
396
|
-
return urls[i] || urls[0] || '';
|
|
397
|
-
}
|
|
398
|
-
attUrl(att) {
|
|
399
|
-
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) || '';
|
|
400
|
-
}
|
|
401
|
-
isVideo(att) {
|
|
402
|
-
const mime = String((att === null || att === void 0 ? void 0 : att.mimeType) || '');
|
|
403
|
-
return mime.startsWith('video/') || Number(att === null || att === void 0 ? void 0 : att.mediaType) === 1;
|
|
404
|
-
}
|
|
405
|
-
docIcon(doc) {
|
|
406
|
-
const kind = docIconKind(doc);
|
|
407
|
-
if (kind === 'excel')
|
|
408
|
-
return ExcelIcon;
|
|
409
|
-
if (kind === 'pdf')
|
|
410
|
-
return PdfIcon;
|
|
411
|
-
if (kind === 'rtf')
|
|
412
|
-
return RtfIcon;
|
|
413
|
-
if (kind === 'txt')
|
|
414
|
-
return TxtIcon;
|
|
415
|
-
return DocumentsIcon;
|
|
416
|
-
}
|
|
417
|
-
linkUrl(link) {
|
|
418
|
-
var _a;
|
|
419
|
-
const body = String((link === null || link === void 0 ? void 0 : link.body) || '');
|
|
420
|
-
return ((_a = body.match(/https?:\/\/\S+/)) === null || _a === void 0 ? void 0 : _a[0]) || body;
|
|
421
|
-
}
|
|
422
|
-
extractAttachments() {
|
|
423
|
-
const { media, docs } = splitSharedMessages(this.allAttachments);
|
|
424
|
-
const byTime = (a, b) => Number(b.date || 0) - Number(a.date || 0);
|
|
425
|
-
this.mediaItems = media.sort(byTime);
|
|
426
|
-
this.docItems = docs.sort(byTime);
|
|
427
|
-
}
|
|
428
|
-
groupByMonth(items, dateKey = 'date') {
|
|
429
|
-
const groups = {};
|
|
430
|
-
items.forEach(item => {
|
|
431
|
-
const raw = item === null || item === void 0 ? void 0 : item[dateKey];
|
|
432
|
-
const d = raw ? new Date(raw) : null;
|
|
433
|
-
const key = d && !isNaN(d.getTime())
|
|
434
|
-
? d.toLocaleString(undefined, { month: 'long', year: 'numeric' })
|
|
435
|
-
: 'Other';
|
|
436
|
-
if (!groups[key])
|
|
437
|
-
groups[key] = [];
|
|
438
|
-
groups[key].push(item);
|
|
439
|
-
});
|
|
440
|
-
return groups;
|
|
441
|
-
}
|
|
442
|
-
formatSize(bytes) {
|
|
443
|
-
if (!bytes)
|
|
444
|
-
return '';
|
|
445
|
-
const k = 1024;
|
|
446
|
-
const sizes = ['B', 'KB', 'MB', 'GB'];
|
|
447
|
-
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
448
|
-
return `${parseFloat((bytes / Math.pow(k, i)).toFixed(1))} ${sizes[i]}`;
|
|
449
|
-
}
|
|
450
|
-
renderMediaListBody() {
|
|
451
|
-
if (this.mediaTab === 'media') {
|
|
452
|
-
if (!this.mediaItems.length) {
|
|
453
|
-
return (h("div", { class: "empty" }, h("strong", null, "No Media"), "Share photos and videos in this chat to see them here."));
|
|
454
|
-
}
|
|
455
|
-
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)))));
|
|
456
|
-
}
|
|
457
|
-
if (this.mediaTab === 'docs') {
|
|
458
|
-
if (!this.docItems.length) {
|
|
459
|
-
return (h("div", { class: "empty" }, h("strong", null, "No Documents"), "Share documents with this chat to see them here."));
|
|
460
|
-
}
|
|
461
|
-
const byMonth = this.groupByMonth(this.docItems, 'date');
|
|
462
|
-
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(' · ')))))))));
|
|
463
|
-
}
|
|
464
|
-
// links
|
|
465
|
-
const links = Array.isArray(this.allLinks) ? this.allLinks : [];
|
|
466
|
-
if (!links.length) {
|
|
467
|
-
return (h("div", { class: "empty" }, h("strong", null, "No Links"), "URLs shared in this chat will appear here."));
|
|
468
|
-
}
|
|
469
|
-
const byMonth = this.groupByMonth(links, 'sentAt');
|
|
470
|
-
return Object.keys(byMonth).map(month => (h("div", null, h("div", { class: "month-sep" }, month), byMonth[month].map((link) => {
|
|
471
|
-
const url = this.linkUrl(link);
|
|
472
|
-
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 })));
|
|
473
|
-
}))));
|
|
474
|
-
}
|
|
475
|
-
renderGallery() {
|
|
476
|
-
if (this.galleryIndex < 0 || !this.mediaItems[this.galleryIndex])
|
|
477
|
-
return null;
|
|
478
|
-
const cur = this.mediaItems[this.galleryIndex];
|
|
479
|
-
const mime = String((cur === null || cur === void 0 ? void 0 : cur.mimeType) || '');
|
|
480
|
-
const isVideo = mime.startsWith('video/') || (cur === null || cur === void 0 ? void 0 : cur.mediaType) === 1;
|
|
481
|
-
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) }))));
|
|
482
|
-
}
|
|
483
391
|
render() {
|
|
484
392
|
const members = this.isGroupcast ? this.groupcastMembers || [] : this.groupMembers || [];
|
|
485
|
-
const thumbs = this.mediaItems.filter(m => !!this.attUrl(m)).slice(0, 2);
|
|
486
|
-
const linkCount = Array.isArray(this.allLinks) ? this.allLinks.length : 0;
|
|
487
|
-
const mediaCount = this.mediaItems.length + this.docItems.length + linkCount;
|
|
488
393
|
const isGroup = !!(this.isGroup || this.isGroupcast);
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
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) => {
|
|
394
|
+
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
|
|
395
|
+
? { flex: '1', display: 'flex', flexDirection: 'column', minHeight: '0', overflow: 'hidden' }
|
|
396
|
+
: 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) => {
|
|
493
397
|
var _a, _b, _c;
|
|
494
398
|
const isSelf = m.userId === ((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId);
|
|
495
399
|
const canManage = this.isSelfAdmin() && !isSelf;
|
|
496
400
|
const menuOpen = this.memberMenuUserId === m.userId;
|
|
497
|
-
|
|
498
|
-
|
|
401
|
+
const showMemberMenu = !isSelf;
|
|
402
|
+
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 => {
|
|
403
|
+
e.stopPropagation();
|
|
404
|
+
this.openMemberProfile(m);
|
|
405
|
+
} }, 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 => {
|
|
406
|
+
e.stopPropagation();
|
|
407
|
+
this.confirmRemoveAdmin(m);
|
|
408
|
+
} }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE_ADMIN)) : (h("button", { type: "button", role: "menuitem", onClick: e => {
|
|
409
|
+
e.stopPropagation();
|
|
410
|
+
this.confirmMakeAdmin(m);
|
|
411
|
+
} }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.MAKE_ADMIN)), h("button", { type: "button", class: "danger", role: "menuitem", onClick: e => {
|
|
412
|
+
e.stopPropagation();
|
|
413
|
+
this.confirmRemoveMember(m);
|
|
414
|
+
} }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE_MEMBER))) : null)) : null)) : null));
|
|
415
|
+
}))) : 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
|
|
499
416
|
? 'Off — you still get alerts for this chat'
|
|
500
|
-
: '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))));
|
|
417
|
+
: '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)));
|
|
501
418
|
}
|
|
502
419
|
static get is() { return "contact-info"; }
|
|
503
420
|
static get encapsulation() { return "shadow"; }
|
|
504
|
-
static get styles() { return ":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); }"; }
|
|
421
|
+
static get styles() { return ":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); }"; }
|
|
505
422
|
static get properties() {
|
|
506
423
|
return {
|
|
507
424
|
"padding": {
|
|
@@ -1390,12 +1307,7 @@ export class ContactInfo {
|
|
|
1390
1307
|
}
|
|
1391
1308
|
static get states() {
|
|
1392
1309
|
return {
|
|
1393
|
-
"
|
|
1394
|
-
"mediaTab": {},
|
|
1395
|
-
"galleryIndex": {},
|
|
1396
|
-
"mediaItems": {},
|
|
1397
|
-
"docItems": {},
|
|
1398
|
-
"previewTry": {},
|
|
1310
|
+
"infoMediaListOpen": {},
|
|
1399
1311
|
"memberMenuUserId": {},
|
|
1400
1312
|
"titleEditing": {},
|
|
1401
1313
|
"titleDraft": {},
|
|
@@ -1425,9 +1337,6 @@ export class ContactInfo {
|
|
|
1425
1337
|
static get elementRef() { return "el"; }
|
|
1426
1338
|
static get watchers() {
|
|
1427
1339
|
return [{
|
|
1428
|
-
"propName": "allAttachments",
|
|
1429
|
-
"methodName": "onAttachmentsChange"
|
|
1430
|
-
}, {
|
|
1431
1340
|
"propName": "conversationMetaData",
|
|
1432
1341
|
"methodName": "onConversationMetaForPush"
|
|
1433
1342
|
}, {
|