isometrik-plugin-chat-sdk 2.0.5 → 2.0.8
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 +44 -0
- package/dist/cjs/admin-transfer-dialog.cjs.entry.js.map +1 -0
- package/dist/cjs/{app-globals-dba84d07.js → app-globals-c433d8a6.js} +2 -2
- package/dist/cjs/{app-globals-dba84d07.js.map → app-globals-c433d8a6.js.map} +1 -1
- package/dist/cjs/attachment-preview_22.cjs.entry.js +201 -61
- package/dist/cjs/attachment-preview_22.cjs.entry.js.map +1 -1
- package/dist/cjs/audio-bubble_4.cjs.entry.js +9 -9
- 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-video-message-bubble.cjs.entry.js +1 -1
- package/dist/cjs/delete-message.cjs.entry.js +1 -1
- package/dist/cjs/{drawer-811d2ce8.js → drawer-960b3f5d.js} +3 -1
- package/dist/cjs/drawer-960b3f5d.js.map +1 -0
- package/dist/cjs/forward-memebers.cjs.entry.js +3 -3
- package/dist/cjs/forward-message.cjs.entry.js +2 -2
- package/dist/cjs/group-admin-leave-b5cfdb33.js +55 -0
- package/dist/cjs/group-admin-leave-b5cfdb33.js.map +1 -0
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/isometrik-webchat.cjs.js +4 -4
- package/dist/cjs/link-preview.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +4 -4
- package/dist/cjs/login-page_3.cjs.entry.js +30 -11
- package/dist/cjs/login-page_3.cjs.entry.js.map +1 -1
- package/dist/cjs/member-add.cjs.entry.js +4 -4
- package/dist/cjs/message-bubble.cjs.entry.js +2 -2
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/{profile-avatar_2.cjs.entry.js → profile-avatar.cjs.entry.js} +1 -25
- package/dist/cjs/profile-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/reaction-container.cjs.entry.js +2 -2
- package/dist/cjs/{runtime-controls-b5a3836e.js → runtime-controls-95f6cb3b.js} +4 -2
- package/dist/cjs/runtime-controls-95f6cb3b.js.map +1 -0
- package/dist/cjs/{send-media-2c02bba7.js → send-media-37e09e83.js} +39 -1
- package/dist/cjs/send-media-37e09e83.js.map +1 -0
- package/dist/cjs/share-popup.cjs.entry.js +1 -1
- package/dist/cjs/spinner-loader.cjs.entry.js +32 -0
- package/dist/cjs/spinner-loader.cjs.entry.js.map +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ChatUIComponent/AddMember.js +3 -3
- package/dist/collection/components/ChatUIComponent/ChatDocumentMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/ChatImageMessageBubble.js +1 -1
- package/dist/collection/components/ChatUIComponent/ChatSidebar/ChatSidebar.js +20 -0
- 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 +1 -1
- package/dist/collection/components/ChatUIComponent/Header/WebChatHeader.js +41 -8
- 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 +44 -23
- package/dist/collection/components/ChatUIComponent/WebChatBody/WebChatBody.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/AudioBubble/AudioBubble.js +3 -3
- package/dist/collection/components/ChatUIComponent/shared/ForwardMessageList/ForwardMessageList.js +2 -2
- package/dist/collection/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.js +101 -0
- package/dist/collection/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.js.map +1 -0
- 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/contact-info/contact-info.js +20 -5
- 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 +3 -3
- package/dist/collection/components/ChatUIComponent/shared/forward-message/forward-message.js +2 -2
- package/dist/collection/components/ChatUIComponent/shared/image-message/image-message.js +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/index.js +1 -0
- package/dist/collection/components/ChatUIComponent/shared/index.js.map +1 -1
- package/dist/collection/components/ChatUIComponent/shared/link-preview/link-preview.js +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/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-info/profile-info.js +2 -2
- 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 +1 -1
- package/dist/collection/components/ChatUIComponent/shared/share-popup/share-popup.js +1 -1
- package/dist/collection/components/ChatUIComponent/shared/video-message/video-message.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/event-handlers.js +5 -0
- package/dist/collection/components/my-component/web-chat/event-handlers.js.map +1 -1
- package/dist/collection/components/my-component/web-chat/mqtt-host.js +24 -9
- package/dist/collection/components/my-component/web-chat/mqtt-host.js.map +1 -1
- package/dist/collection/lib/chat/index.js +1 -1
- package/dist/collection/lib/chat/index.js.map +1 -1
- package/dist/collection/lib/chat/messages.js +36 -0
- package/dist/collection/lib/chat/messages.js.map +1 -1
- package/dist/collection/lib/drawer.js +3 -0
- package/dist/collection/lib/drawer.js.map +1 -1
- package/dist/collection/lib/group-admin-leave.js +47 -0
- package/dist/collection/lib/group-admin-leave.js.map +1 -0
- package/dist/collection/lib/prompt-exit-group.js +59 -0
- package/dist/collection/lib/prompt-exit-group.js.map +1 -0
- package/dist/collection/sdk/headless-api.js +3 -1
- package/dist/collection/sdk/headless-api.js.map +1 -1
- package/dist/components/AudioBubble.js +3 -3
- package/dist/components/BlockChatList.js +1 -1
- package/dist/components/ChatFooter.js +1 -1
- package/dist/components/ChatSidebar.js +21 -1
- package/dist/components/ChatSidebar.js.map +1 -1
- package/dist/components/WebChat.js +32 -13
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/WebChatBody.js +44 -23
- package/dist/components/WebChatBody.js.map +1 -1
- package/dist/components/WebChatHeader.js +42 -9
- package/dist/components/WebChatHeader.js.map +1 -1
- package/dist/components/WebchatRightSide.js +4 -35
- package/dist/components/WebchatRightSide.js.map +1 -1
- package/dist/components/admin-transfer-dialog.d.ts +11 -0
- package/dist/components/admin-transfer-dialog.js +69 -0
- package/dist/components/admin-transfer-dialog.js.map +1 -0
- package/dist/components/attachment-preview2.js +1 -1
- package/dist/components/chat-app.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-video-message-bubble.js +1 -1
- package/dist/components/contact-info2.js +22 -6
- package/dist/components/contact-info2.js.map +1 -1
- package/dist/components/conversation.js +2 -283
- package/dist/components/conversation.js.map +1 -1
- package/dist/components/delete-message.js +1 -1
- package/dist/components/document-message2.js +3 -3
- package/dist/components/drawer.js +2 -0
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/forward-memebers.js +2 -2
- package/dist/components/forward-message.js +2 -2
- package/dist/components/group-admin-leave.js +50 -0
- package/dist/components/group-admin-leave.js.map +1 -0
- package/dist/components/group-members.js +298 -26
- package/dist/components/group-members.js.map +1 -1
- package/dist/components/group-members2.js +37 -0
- package/dist/components/group-members2.js.map +1 -0
- package/dist/components/image-message2.js +1 -1
- package/dist/components/incoming-text-message-bubble2.js +1 -1
- package/dist/components/index.js +3 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/link-preview2.js +1 -1
- package/dist/components/member-add.js +4 -4
- package/dist/components/message-bubble2.js +2 -2
- package/dist/components/message-date-pill2.js +1 -1
- package/dist/components/message-info2.js +1 -1
- package/dist/components/message-search2.js +1 -1
- package/dist/components/messages.js +37 -1
- package/dist/components/messages.js.map +1 -1
- package/dist/components/my-component.js +1 -1
- package/dist/components/outgoing-text-message-bubble2.js +1 -1
- package/dist/components/profile-info2.js +2 -2
- package/dist/components/profile-sidebar2.js +1 -1
- package/dist/components/prompt-exit-group.js +73 -0
- package/dist/components/prompt-exit-group.js.map +1 -0
- package/dist/components/reaction-container.js +2 -2
- package/dist/components/reply-block2.js +1 -1
- package/dist/components/reply-message-container2.js +1 -1
- package/dist/components/share-popup.js +1 -1
- package/dist/components/video-message2.js +2 -2
- package/dist/esm/admin-transfer-dialog.entry.js +40 -0
- package/dist/esm/admin-transfer-dialog.entry.js.map +1 -0
- package/dist/esm/{app-globals-8fea092d.js → app-globals-dfce8a5b.js} +2 -2
- package/dist/esm/{app-globals-8fea092d.js.map → app-globals-dfce8a5b.js.map} +1 -1
- package/dist/esm/attachment-preview_22.entry.js +202 -62
- package/dist/esm/attachment-preview_22.entry.js.map +1 -1
- package/dist/esm/audio-bubble_4.entry.js +9 -9
- 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-video-message-bubble.entry.js +1 -1
- package/dist/esm/delete-message.entry.js +1 -1
- package/dist/esm/{drawer-74c188f1.js → drawer-d54c2f10.js} +3 -1
- package/dist/esm/drawer-d54c2f10.js.map +1 -0
- package/dist/esm/forward-memebers.entry.js +3 -3
- package/dist/esm/forward-message.entry.js +2 -2
- package/dist/esm/group-admin-leave-a60b9b1a.js +50 -0
- package/dist/esm/group-admin-leave-a60b9b1a.js.map +1 -0
- package/dist/esm/index.js +3 -3
- package/dist/esm/isometrik-webchat.js +4 -4
- package/dist/esm/link-preview.entry.js +1 -1
- package/dist/esm/loader.js +4 -4
- package/dist/esm/login-page_3.entry.js +30 -11
- package/dist/esm/login-page_3.entry.js.map +1 -1
- package/dist/esm/member-add.entry.js +4 -4
- package/dist/esm/message-bubble.entry.js +2 -2
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/{profile-avatar_2.entry.js → profile-avatar.entry.js} +2 -25
- package/dist/esm/profile-avatar.entry.js.map +1 -0
- package/dist/esm/reaction-container.entry.js +2 -2
- package/dist/esm/{runtime-controls-c5ba5009.js → runtime-controls-ec6d5c75.js} +4 -2
- package/dist/esm/runtime-controls-ec6d5c75.js.map +1 -0
- package/dist/esm/{send-media-588837c7.js → send-media-a946c6dd.js} +38 -2
- package/dist/esm/send-media-a946c6dd.js.map +1 -0
- package/dist/esm/share-popup.entry.js +1 -1
- package/dist/esm/spinner-loader.entry.js +28 -0
- package/dist/esm/spinner-loader.entry.js.map +1 -0
- package/dist/isometrik-webchat/index.esm.js +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-a876991d.entry.js → p-0ccfbe90.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-1854b156.entry.js → p-161fcb35.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-a43ad157.entry.js → p-1eecc7c5.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-fdd327f5.entry.js → p-2195b0c0.entry.js} +2 -2
- package/dist/isometrik-webchat/p-2e9974e1.entry.js +2 -0
- package/dist/isometrik-webchat/p-30dc94e0.js +2 -0
- package/dist/isometrik-webchat/p-30dc94e0.js.map +1 -0
- package/dist/isometrik-webchat/p-35d9ecdc.entry.js +2 -0
- package/dist/isometrik-webchat/p-35d9ecdc.entry.js.map +1 -0
- package/dist/isometrik-webchat/{p-c1e8c38e.entry.js → p-3664e0ad.entry.js} +2 -2
- package/dist/isometrik-webchat/p-3f355f9e.js +2 -0
- package/dist/isometrik-webchat/p-3f355f9e.js.map +1 -0
- package/dist/isometrik-webchat/p-46dcd38f.js +2 -0
- package/dist/isometrik-webchat/p-46dcd38f.js.map +1 -0
- package/dist/isometrik-webchat/p-46e0048e.js +2 -0
- package/dist/isometrik-webchat/p-46e0048e.js.map +1 -0
- package/dist/isometrik-webchat/p-48ce4dca.entry.js +2 -0
- package/dist/isometrik-webchat/{p-d720cf14.entry.js → p-76341adb.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-2d3e8cd4.entry.js → p-7af9a7f3.entry.js} +2 -2
- package/dist/isometrik-webchat/p-7b25f234.entry.js +2 -0
- package/dist/isometrik-webchat/p-7b25f234.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-86be30fe.js +2 -0
- package/dist/isometrik-webchat/p-9db196a4.entry.js +2 -0
- package/dist/isometrik-webchat/p-9db196a4.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-a119be75.entry.js +2 -0
- package/dist/isometrik-webchat/p-a119be75.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-ad02a8ca.entry.js +2 -0
- package/dist/isometrik-webchat/p-c5bff6a1.entry.js +2 -0
- package/dist/isometrik-webchat/p-c5bff6a1.entry.js.map +1 -0
- package/dist/isometrik-webchat/p-c83e2d5d.entry.js +2 -0
- package/dist/isometrik-webchat/{p-fb705915.entry.js → p-cc5b86e6.entry.js} +2 -2
- package/dist/isometrik-webchat/{p-f1fbf3be.entry.js → p-d8b65cf4.entry.js} +2 -2
- package/dist/isometrik-webchat/p-e48a1217.entry.js +2 -0
- package/dist/types/components/ChatUIComponent/Header/WebChatHeader.d.ts +1 -0
- package/dist/types/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.d.ts +13 -0
- package/dist/types/components/ChatUIComponent/shared/contact-info/contact-info.d.ts +1 -0
- package/dist/types/components/ChatUIComponent/shared/index.d.ts +1 -0
- package/dist/types/components.d.ts +27 -0
- package/dist/types/lib/chat/index.d.ts +1 -1
- package/dist/types/lib/drawer.d.ts +1 -0
- package/dist/types/lib/group-admin-leave.d.ts +20 -0
- package/dist/types/lib/prompt-exit-group.d.ts +9 -0
- package/dist/types/sdk/headless-api.d.ts +3 -1
- package/package.json +1 -1
- package/dist/cjs/drawer-811d2ce8.js.map +0 -1
- package/dist/cjs/profile-avatar_2.cjs.entry.js.map +0 -1
- package/dist/cjs/runtime-controls-b5a3836e.js.map +0 -1
- package/dist/cjs/send-media-2c02bba7.js.map +0 -1
- package/dist/esm/drawer-74c188f1.js.map +0 -1
- package/dist/esm/profile-avatar_2.entry.js.map +0 -1
- package/dist/esm/runtime-controls-c5ba5009.js.map +0 -1
- package/dist/esm/send-media-588837c7.js.map +0 -1
- package/dist/isometrik-webchat/p-0392c7be.entry.js +0 -2
- package/dist/isometrik-webchat/p-1a6e6524.js +0 -2
- package/dist/isometrik-webchat/p-1a6e6524.js.map +0 -1
- package/dist/isometrik-webchat/p-3c70c22c.entry.js +0 -2
- package/dist/isometrik-webchat/p-5d243250.entry.js +0 -2
- package/dist/isometrik-webchat/p-70f66001.js +0 -2
- package/dist/isometrik-webchat/p-70f66001.js.map +0 -1
- package/dist/isometrik-webchat/p-8816acc1.js +0 -2
- package/dist/isometrik-webchat/p-92eec03b.entry.js +0 -2
- package/dist/isometrik-webchat/p-92eec03b.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-b16c3db0.entry.js +0 -2
- package/dist/isometrik-webchat/p-b16c3db0.entry.js.map +0 -1
- package/dist/isometrik-webchat/p-b857775d.entry.js +0 -2
- package/dist/isometrik-webchat/p-c0c19621.entry.js +0 -2
- package/dist/isometrik-webchat/p-dd62bd69.js +0 -2
- package/dist/isometrik-webchat/p-dd62bd69.js.map +0 -1
- package/dist/isometrik-webchat/p-ed4699a0.entry.js +0 -2
- package/dist/isometrik-webchat/p-ed4699a0.entry.js.map +0 -1
- /package/dist/isometrik-webchat/{p-a876991d.entry.js.map → p-0ccfbe90.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-1854b156.entry.js.map → p-161fcb35.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-a43ad157.entry.js.map → p-1eecc7c5.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-fdd327f5.entry.js.map → p-2195b0c0.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-3c70c22c.entry.js.map → p-2e9974e1.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-c1e8c38e.entry.js.map → p-3664e0ad.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-b857775d.entry.js.map → p-48ce4dca.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-d720cf14.entry.js.map → p-76341adb.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-2d3e8cd4.entry.js.map → p-7af9a7f3.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-8816acc1.js.map → p-86be30fe.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-5d243250.entry.js.map → p-ad02a8ca.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-c0c19621.entry.js.map → p-c83e2d5d.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-fb705915.entry.js.map → p-cc5b86e6.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-f1fbf3be.entry.js.map → p-d8b65cf4.entry.js.map} +0 -0
- /package/dist/isometrik-webchat/{p-0392c7be.entry.js.map → p-e48a1217.entry.js.map} +0 -0
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { r as registerInstance, a as createEvent, h, g as getElement, F as Fragment, f as Host } from './index-bc463197.js';
|
|
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, 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,
|
|
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-bb056958.js';
|
|
3
3
|
import { C as CancelIcon } from './cancel-4f6541af.js';
|
|
4
|
-
import { M as MAX_MEDIA_PER_MESSAGE, t as takeMediaFiles,
|
|
4
|
+
import { M as MAX_MEDIA_PER_MESSAGE, t as takeMediaFiles, l as mediaLimitToastMessage, A as ATTACHMENT_BODY_PLACEHOLDER, j as attachmentBodyForApi, i as buildReplyMetaData, o as mediaPreviewUrls, q as docIconKind, r as splitSharedMessages, v as attachmentCaption } from './send-media-a946c6dd.js';
|
|
5
5
|
import { i as isPdfAttachment, D as DoubleCheck } from './doublecheck-261763ef.js';
|
|
6
6
|
import { M } from './index.m-8c70037f.js';
|
|
7
|
-
import { d as drawerDialogService } from './drawer-
|
|
7
|
+
import { d as drawerDialogService } from './drawer-d54c2f10.js';
|
|
8
8
|
import { c as clearAll, d as debounce, e as getFormattedTime, a as getDeviceID, b as getGroupcastUrlQuery, g as generateProfileImageByInitials, f as getFormattedDeliveryTime } from './helpers-f33b895c.js';
|
|
9
9
|
import { g as getCustomPartTag, f as findWebChatHost, h as hasNamedSlot } from './index-4c865e34.js';
|
|
10
10
|
import { s as showToast } from './toast-533dd183.js';
|
|
11
11
|
import { p as postGroupCast, f as getPresignedUrlForGroupcastMedia, h as postGroupCastMessage, i as getGroupcastMessageReadStatus, j as getGroupcastMessageDeliveryStatus, k as deleteGroupcastMessageSelf, l as deleteGroupcastMessageEveryone } from './groupcast-9c7d2a32.js';
|
|
12
12
|
import { i as isometrikLogo } from './IsometrikLogo-36cb0542.js';
|
|
13
13
|
import { c as createStore, g as groupMembersStore } from './group-members-05414da2.js';
|
|
14
|
+
import { n as needsAdminTransferBeforeLeave, b as adminTransferCandidates, m as memberDisplayName, a as memberUserId } from './group-admin-leave-a60b9b1a.js';
|
|
14
15
|
import { W as WEB_CONTENT } from './content-fb138a93.js';
|
|
15
16
|
import { r as renderMessageBody, e as emitTagUser } from './message-body-render-f5ab3a62.js';
|
|
16
17
|
import { p as postReaction, d as deleteReaction } from './message-reaction-0a2bb115.js';
|
|
@@ -1027,6 +1028,24 @@ const ChatSidebar = class {
|
|
|
1027
1028
|
}
|
|
1028
1029
|
}
|
|
1029
1030
|
async exitGroup(conversationId) {
|
|
1031
|
+
var _a, _b;
|
|
1032
|
+
const selfId = String(((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId) || '');
|
|
1033
|
+
const storeMembers = groupMembersStore.getCurrentConversationId() === conversationId
|
|
1034
|
+
? groupMembersStore.getMembers()
|
|
1035
|
+
: [];
|
|
1036
|
+
const detailMembers = Array.isArray((_b = this.conversationDetails) === null || _b === void 0 ? void 0 : _b.members)
|
|
1037
|
+
? this.conversationDetails.members
|
|
1038
|
+
: [];
|
|
1039
|
+
const members = storeMembers.length ? storeMembers : detailMembers;
|
|
1040
|
+
if (needsAdminTransferBeforeLeave(selfId, members)) {
|
|
1041
|
+
showToast({
|
|
1042
|
+
message: 'Make another member an admin before leaving this group',
|
|
1043
|
+
type: 'error',
|
|
1044
|
+
position: 'bottom-right',
|
|
1045
|
+
});
|
|
1046
|
+
drawerDialogService.closeDialog('confirm-dialog');
|
|
1047
|
+
return;
|
|
1048
|
+
}
|
|
1030
1049
|
try {
|
|
1031
1050
|
this.isLoading = true;
|
|
1032
1051
|
await M.getInstance().Conversation.deleteConversationLeave({ conversationId });
|
|
@@ -1404,6 +1423,70 @@ const GroupCast = class {
|
|
|
1404
1423
|
};
|
|
1405
1424
|
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); }";
|
|
1406
1425
|
|
|
1426
|
+
const makeAdmin = async (conversationId, userId) => {
|
|
1427
|
+
const response = await M.getInstance().Conversation.putConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
1428
|
+
return response;
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
const removeAdmin = async (conversationId, userId) => {
|
|
1432
|
+
const response = await M.getInstance().Conversation.deleteConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
1433
|
+
return response;
|
|
1434
|
+
};
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Exit-group UX: normal confirm, or sole-admin transfer picker first.
|
|
1438
|
+
*/
|
|
1439
|
+
function promptExitGroup(opts) {
|
|
1440
|
+
const { selfId, members, conversationId, onLeave } = opts;
|
|
1441
|
+
if (!conversationId)
|
|
1442
|
+
return;
|
|
1443
|
+
if (!needsAdminTransferBeforeLeave(selfId, members)) {
|
|
1444
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
1445
|
+
title: 'Exit group',
|
|
1446
|
+
description: 'Are you sure you want to exit this group?',
|
|
1447
|
+
handleConfirm: () => onLeave(),
|
|
1448
|
+
});
|
|
1449
|
+
return;
|
|
1450
|
+
}
|
|
1451
|
+
const candidates = adminTransferCandidates(selfId, members);
|
|
1452
|
+
if (!candidates.length) {
|
|
1453
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
1454
|
+
title: 'Cannot exit yet',
|
|
1455
|
+
description: 'You are the only admin. Add another member and make them an admin before leaving.',
|
|
1456
|
+
yesText: 'OK',
|
|
1457
|
+
noText: 'Close',
|
|
1458
|
+
handleConfirm: () => drawerDialogService.closeDialog('confirm-dialog'),
|
|
1459
|
+
});
|
|
1460
|
+
return;
|
|
1461
|
+
}
|
|
1462
|
+
drawerDialogService.openDialog('admin-transfer', {
|
|
1463
|
+
candidates,
|
|
1464
|
+
handlePick: async (member) => {
|
|
1465
|
+
const memberId = memberUserId(member);
|
|
1466
|
+
const name = memberDisplayName(member);
|
|
1467
|
+
if (!memberId)
|
|
1468
|
+
return;
|
|
1469
|
+
try {
|
|
1470
|
+
await makeAdmin(conversationId, memberId);
|
|
1471
|
+
// Keep leave safety-net in sync — API succeeded, store must reflect it.
|
|
1472
|
+
if (groupMembersStore.getCurrentConversationId() === conversationId) {
|
|
1473
|
+
groupMembersStore.updateAdminStatus(memberId, true);
|
|
1474
|
+
}
|
|
1475
|
+
drawerDialogService.closeDialog('admin-transfer');
|
|
1476
|
+
onLeave();
|
|
1477
|
+
}
|
|
1478
|
+
catch (err) {
|
|
1479
|
+
console.error('[webchat] make admin before leave failed', err);
|
|
1480
|
+
showToast({
|
|
1481
|
+
message: `Could not make ${name} an admin. Try again or pick someone else.`,
|
|
1482
|
+
type: 'error',
|
|
1483
|
+
position: 'bottom-right',
|
|
1484
|
+
});
|
|
1485
|
+
}
|
|
1486
|
+
},
|
|
1487
|
+
});
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1407
1490
|
const WebChatHeader = class {
|
|
1408
1491
|
constructor(hostRef) {
|
|
1409
1492
|
registerInstance(this, hostRef);
|
|
@@ -1418,6 +1501,24 @@ const WebChatHeader = class {
|
|
|
1418
1501
|
this.onConversationCleared();
|
|
1419
1502
|
}
|
|
1420
1503
|
};
|
|
1504
|
+
this.deleteChat = () => {
|
|
1505
|
+
this.menuOpen = false;
|
|
1506
|
+
const conversationId = this.conversationId();
|
|
1507
|
+
if (!conversationId)
|
|
1508
|
+
return;
|
|
1509
|
+
const name = this.title() || 'this chat';
|
|
1510
|
+
drawerDialogService.openDialog('confirm-dialog', {
|
|
1511
|
+
title: 'Delete chat',
|
|
1512
|
+
description: `Are you sure you want to delete chat with ${name}?`,
|
|
1513
|
+
handleConfirm: () => {
|
|
1514
|
+
this.el.dispatchEvent(new CustomEvent('contact-action', {
|
|
1515
|
+
bubbles: true,
|
|
1516
|
+
composed: true,
|
|
1517
|
+
detail: { action: 'delete-chat', conversationId },
|
|
1518
|
+
}));
|
|
1519
|
+
},
|
|
1520
|
+
});
|
|
1521
|
+
};
|
|
1421
1522
|
this.handleSearchInput = (searchText) => {
|
|
1422
1523
|
var _a;
|
|
1423
1524
|
(_a = this.onSearchHandler) === null || _a === void 0 ? void 0 : _a.call(this, searchText);
|
|
@@ -1471,15 +1572,28 @@ const WebChatHeader = class {
|
|
|
1471
1572
|
this.handleTextClick();
|
|
1472
1573
|
};
|
|
1473
1574
|
this.exitGroup = () => {
|
|
1575
|
+
var _a, _b;
|
|
1474
1576
|
this.menuOpen = false;
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1577
|
+
const conversationId = this.conversationId();
|
|
1578
|
+
const fromDetails = (_a = this.conversationDetails) === null || _a === void 0 ? void 0 : _a.members;
|
|
1579
|
+
const fromStore = groupMembersStore.getCurrentConversationId() === conversationId
|
|
1580
|
+
? groupMembersStore.getMembers()
|
|
1581
|
+
: [];
|
|
1582
|
+
const members = (Array.isArray(fromDetails) && fromDetails.length ? fromDetails : null) ||
|
|
1583
|
+
(Array.isArray(this.groupMembers) && this.groupMembers.length
|
|
1584
|
+
? this.groupMembers
|
|
1585
|
+
: null) ||
|
|
1586
|
+
fromStore ||
|
|
1587
|
+
[];
|
|
1588
|
+
promptExitGroup({
|
|
1589
|
+
selfId: String(((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) || ''),
|
|
1590
|
+
members,
|
|
1591
|
+
conversationId: String(conversationId || ''),
|
|
1592
|
+
onLeave: () => {
|
|
1479
1593
|
this.el.dispatchEvent(new CustomEvent('contact-action', {
|
|
1480
1594
|
bubbles: true,
|
|
1481
1595
|
composed: true,
|
|
1482
|
-
detail: { action: 'exit-group', conversationId
|
|
1596
|
+
detail: { action: 'exit-group', conversationId },
|
|
1483
1597
|
}));
|
|
1484
1598
|
},
|
|
1485
1599
|
});
|
|
@@ -1624,10 +1738,10 @@ const WebChatHeader = class {
|
|
|
1624
1738
|
const groupcast = this.isGroupcast();
|
|
1625
1739
|
const isGroup = !!((_a = this.conversationDetails) === null || _a === void 0 ? void 0 : _a.isGroup) && !groupcast;
|
|
1626
1740
|
const showBlock = !groupcast && !((_b = this.conversationDetails) === null || _b === void 0 ? void 0 : _b.isGroup);
|
|
1627
|
-
return (h(Fragment, { key: '
|
|
1741
|
+
return (h(Fragment, { key: '7dc9c100c2cc052b961fdb0236f3d63e688bffef' }, h("div", { key: 'e69c6bd3d8cb3bece316ed7ba5f14bbc7b5ddd76', class: "head-container", style: {
|
|
1628
1742
|
backgroundColor: this.headerBgColor || undefined,
|
|
1629
1743
|
color: this.headerUsernameColor || undefined,
|
|
1630
|
-
} }, h("div", { key: '
|
|
1744
|
+
} }, h("div", { key: '1173e55f29d15c2350b03a54d0228bdebc677d51', class: "head-left" }, h("button", { key: '692dccf76fe4d36c308916d81b7a3389e47bf798', class: "back-button", type: "button", onClick: () => typeof this.onBackButtonClick === 'function' && this.onBackButtonClick(), "aria-label": "Back" }, h("img", { key: 'f8a8b07ca105e9863979362eab889c5e23352922', class: "theme-icon", src: Left_Arrow, alt: "" })), h("div", { key: 'c11d43e4fa2d86d8de96dc77b6192d0a2bf9dec0', class: "identity", onClick: this.handleTextClick }, h("profile-avatar", { key: 'e80c2aa7d3616f7c334d10021ebadf9ca32d9aef', src: this.avatarSrc(), name: this.title(), size: "var(--avatar-sm)", isGroup: this.avatarIsGroup() }), h("div", { key: '9ab9a076176a0479ef6c41e1f601f32a4acdde7c', class: "text-container" }, h("div", { key: 'f084abe95d6e178ffa88adb2ce9927e83f5b5414', class: "title" }, this.title()), h("div", { key: 'c59d4d4e7ac40c245494ad2020f40cb319fa5eb0', class: "subtitle", style: { color: this.headerLastSeenColor || undefined } }, this.subtitle(formattedLastSeen))))), h("div", { key: '8b36023afce02adeb5b730a6ca374ad2ccc05c65', 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: '02c33a403e1473bee5b18025dccb9897e1f2edf0', class: "more-wrap" }, h("button", { key: '0708283365c2edebd24af299c02d841fb47a8d62', 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: '76da82722f5077a85423988ee223717b5cbce143', class: "theme-icon", src: Three_Dots, alt: "" })), this.menuOpen ? (h("div", { class: "more-menu", role: "menu" }, isGroup ? (h(Fragment, null, 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")), 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")), 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, 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: '2c224ca39a8de2a2fb8c6e07191789eb2cb265ba', class: "loading-overlay" }, h("spinner-loader", { key: 'ee2338eec76f57045431a28c78f3c105def0da09', height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" })))));
|
|
1631
1745
|
}
|
|
1632
1746
|
get el() { return getElement(this); }
|
|
1633
1747
|
static get watchers() { return {
|
|
@@ -4762,7 +4876,7 @@ const AttachmentPreview = class {
|
|
|
4762
4876
|
const type = this.typeOf(cur, this.localIndex);
|
|
4763
4877
|
const fileMode = this.isFilePreview(type);
|
|
4764
4878
|
const fileTitle = this.fileName(cur);
|
|
4765
|
-
return (h("div", { key: '
|
|
4879
|
+
return (h("div", { key: 'e4dbf47c2492175a7c1b502741b3f42f123c704a', class: "preview-container" }, h("div", { key: 'aa47dfa5328eb329d88a907fb2cd24785310eaab', 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: 'b0eadf608ac9f4107aa9d0581e64ae68ac512f24', 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) => {
|
|
4766
4880
|
const t = this.typeOf(item, i);
|
|
4767
4881
|
const isFile = this.isFilePreview(t);
|
|
4768
4882
|
const pdf = this.isPdf(item);
|
|
@@ -4831,7 +4945,7 @@ const ReplyBlock = class {
|
|
|
4831
4945
|
return this.messageBody;
|
|
4832
4946
|
}
|
|
4833
4947
|
render() {
|
|
4834
|
-
return (h("div", { key: '
|
|
4948
|
+
return (h("div", { key: '4a67c3ddbbdd334f69be375acdec82ad654378b7', class: "reply-block-container" }, h("div", { key: 'fdf6a1c768d57e37fa9825ad8890ac2708eeca4a', class: "reply-main" }, h("div", { key: '2c4cdb6961182bac974ed1d1bc4274ece697caaa', class: "accent" }), h("div", { key: '5de9fd10baa48e611cf61d755ebe756a1b8ea9ef', class: "reply-body" }, h("div", { key: 'd0b1c362ad10a86d3dd33d01f4380041b4fad776', class: "sender" }, this.senderName), h("div", { key: '232c1757e27f21685c44a36713f64d236749dc1a', class: "message-body-container" }, this.bodyLabel()))), h("button", { key: '87ca553ed902defb6ecaa7989354b84fca348c5b', 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: '545aa0ea40ea13491f9dfaa81faae8a45f03dff6', class: "theme-icon", src: CloseButton, alt: "" }))));
|
|
4835
4949
|
}
|
|
4836
4950
|
};
|
|
4837
4951
|
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); }";
|
|
@@ -5643,7 +5757,7 @@ const ChatFooter = class {
|
|
|
5643
5757
|
const webChat = findWebChatHost(this.el);
|
|
5644
5758
|
const hasCustomReply = (webChat ? hasNamedSlot(webChat, 'reply-preview') : false) || hasNamedSlot(this.el, 'reply-preview');
|
|
5645
5759
|
const showAttachment = this.attachmentDetails || this.showCamera;
|
|
5646
|
-
return (h(Host, { key: '
|
|
5760
|
+
return (h(Host, { key: '4aecc1f90f540e9082f8abbaf4faadbbcd549fd4', class: { 'attachment-open': !!showAttachment } }, h("div", { key: 'f11f01df71447e564785543322ad9cefffb2df19', 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)
|
|
5647
5761
|
? 'You'
|
|
5648
5762
|
: (_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: "" })))))))))))));
|
|
5649
5763
|
}
|
|
@@ -5738,7 +5852,7 @@ const BlockChatList = class {
|
|
|
5738
5852
|
}
|
|
5739
5853
|
render() {
|
|
5740
5854
|
var _a, _b;
|
|
5741
|
-
return (h("div", { key: '
|
|
5855
|
+
return (h("div", { key: '012322ba96f6b096fe7857cae36c30a322620827', class: "blocked-users-container" }, h("div", { key: '7fc77bfcb108603e7eed5e0f25aef3dc58127ac7', class: "header" }, h("button", { key: '9697c52f5e372884c4270c0c258a3ba21dfef0cf', 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: '0c6b0dc3f69d7c62a0d3ea132d08d4c8d93b34e4', class: "theme-icon", src: Left_Arrow, alt: "" })), h("h2", { key: '3322096a3259618ab665c791a444dcaf318aa991', style: { margin: '0', fontSize: '18px' } }, "Blocked Users")), h("div", { key: '04e0436cf07effc38946264793414d50bc2f1667', class: "search-container" }, h("input", { key: 'bbb909a7b2ba1b756d7d5770657184539c89785c', class: "search-input", type: "text", placeholder: "Search users...", value: this.searchTerm, onInput: (e) => {
|
|
5742
5856
|
this.searchTerm = e.target.value;
|
|
5743
5857
|
this.debouncedSearch(this.searchTerm);
|
|
5744
5858
|
} })), 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
|
|
@@ -5968,13 +6082,15 @@ const ProfileSidebar = class {
|
|
|
5968
6082
|
}
|
|
5969
6083
|
render() {
|
|
5970
6084
|
var _a, _b;
|
|
5971
|
-
return (h("div", { key: '
|
|
6085
|
+
return (h("div", { key: '55246be4cb99d67f1a4d3210bed4ef1bfae7fe84', class: "profile-tab" }, h("div", { key: '22bd741640954f50a478f861ad11809cbd80e879', class: "top-buttons" }, h("div", { key: '81ab0727f845eb42370d4342168c343354505be8', class: `chat-button${this.activeTab === 'Chat' ? ' active' : ''}`, title: "Chat", onClick: () => this.call(this.openChat) }, h("img", { key: 'aabcb91dbc626c4e14e6f577560d0e8f8d05251a', src: Message, class: "theme-icon", alt: "chat" }), this.unreadConversationsCount > 0 ? (h("div", { class: "unread-count" }, this.unreadConversationsCount)) : null), h("div", { key: '0d2ce5f28848e3cf872a757695dcd16e1abdc446', class: `chat-button${this.activeTab === 'GroupCast' ? ' active' : ''}`, title: "GroupCast", onClick: () => this.call(this.openGroupCast) }, h("img", { key: 'eb6fb9a32070d6b20ad2466b0ee571c8a1a07e00', src: Group_cast, class: "theme-icon", alt: "broadcast" }))), h("div", { key: '96b301bc866b6b44570b9b2ac9b8b42b0c6c0da9', class: "bottom-buttons" }, h("div", { key: 'f480664f2413cb7e802e2c0df84dffdc4c981090', class: `avatar-wrap${this.activeTab === 'Profile' ? ' active' : ''}`, title: "Profile", onClick: () => this.call(this.openProfile) }, h("profile-avatar", { key: 'ae4e299d9399997d976f18a0e3c138db7b4f9f48', 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)" })))));
|
|
5972
6086
|
}
|
|
5973
6087
|
};
|
|
5974
6088
|
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 }";
|
|
5975
6089
|
|
|
5976
6090
|
const clearChatSvg = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBmaWxsPSJub25lIj4KICA8Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSI5IiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KICA8cGF0aCBkPSJNOCAxMkgxNiIgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KPC9zdmc+Cg==';const ClearChatIcon = clearChatSvg;
|
|
5977
6091
|
|
|
6092
|
+
const deleteSvg = 'data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPCEtLSBHZW5lcmF0b3I6IHZpc2lvbmNvc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DMTAuNjgzNCAzLjkwMjM3IDExLjMxNjYgMy45MDIzNyAxMS43MDcxIDQuMjkyODlaIiBmaWxsPSJjdXJyZW50Q29sb3IiLz4KPC9zdmc+';const LeftArrowIcon = leftArrowSvg;
|
|
@@ -6002,11 +6118,24 @@ const ContactInfo = class {
|
|
|
6002
6118
|
handleConfirm: () => this.emitAction('clear-chat'),
|
|
6003
6119
|
});
|
|
6004
6120
|
};
|
|
6005
|
-
this.
|
|
6121
|
+
this.confirmDeleteChat = () => {
|
|
6122
|
+
const name = this.contactName || 'this chat';
|
|
6006
6123
|
drawerDialogService.openDialog('confirm-dialog', {
|
|
6007
|
-
title: '
|
|
6008
|
-
description:
|
|
6009
|
-
handleConfirm: () => this.emitAction('
|
|
6124
|
+
title: 'Delete chat',
|
|
6125
|
+
description: `Are you sure you want to delete chat with ${name}?`,
|
|
6126
|
+
handleConfirm: () => this.emitAction('delete-chat'),
|
|
6127
|
+
});
|
|
6128
|
+
};
|
|
6129
|
+
this.confirmExitGroup = () => {
|
|
6130
|
+
var _a;
|
|
6131
|
+
const members = this.isGroupcast
|
|
6132
|
+
? this.groupcastMembers || []
|
|
6133
|
+
: this.groupMembers || [];
|
|
6134
|
+
promptExitGroup({
|
|
6135
|
+
selfId: String(((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId) || ''),
|
|
6136
|
+
members,
|
|
6137
|
+
conversationId: String(this.conversationId || ''),
|
|
6138
|
+
onLeave: () => this.emitAction('exit-group'),
|
|
6010
6139
|
});
|
|
6011
6140
|
};
|
|
6012
6141
|
this.openAddMember = () => {
|
|
@@ -6289,7 +6418,7 @@ const ContactInfo = class {
|
|
|
6289
6418
|
const canManage = this.isSelfAdmin() && !isSelf;
|
|
6290
6419
|
const menuOpen = this.memberMenuUserId === m.userId;
|
|
6291
6420
|
return (h("div", { class: "member", "data-member-id": m.userId }, 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), canManage ? (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" }, m.isAdmin ? (h("button", { type: "button", role: "menuitem", onClick: () => this.confirmRemoveAdmin(m) }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE_ADMIN)) : (h("button", { type: "button", role: "menuitem", onClick: () => this.confirmMakeAdmin(m) }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.MAKE_ADMIN)), h("button", { type: "button", class: "danger", role: "menuitem", onClick: () => this.confirmRemoveMember(m) }, WEB_CONTENT.CHAT.GROUP_INFO.GROUP_MEMBERS.REMOVE_MEMBER))) : null)) : null));
|
|
6292
|
-
}))) : 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"), isGroup ? (h("button", { class: "action", type: "button", onClick: this.confirmExitGroup }, h("span", { class: "action-icon", style: { ['--action-mask']: `url(${LogoutIcon})` } }), "Exit group")) : null))));
|
|
6421
|
+
}))) : 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))));
|
|
6293
6422
|
}
|
|
6294
6423
|
get el() { return getElement(this); }
|
|
6295
6424
|
static get watchers() { return {
|
|
@@ -6359,7 +6488,7 @@ const ProfileInfo = class {
|
|
|
6359
6488
|
}
|
|
6360
6489
|
render() {
|
|
6361
6490
|
const avatar = this.contactImage || generateProfileImageByInitials(this.contactName || '?', 96, 96);
|
|
6362
|
-
return (h("div", { key: '
|
|
6491
|
+
return (h("div", { key: 'f5f2d99774f205ee64e022f0099495df8bc0d6e2', class: "panel", style: {
|
|
6363
6492
|
padding: this.padding,
|
|
6364
6493
|
margin: this.margin,
|
|
6365
6494
|
width: this.width,
|
|
@@ -6368,21 +6497,11 @@ const ProfileInfo = class {
|
|
|
6368
6497
|
backgroundColor: this.backgroundColor,
|
|
6369
6498
|
color: this.textColor,
|
|
6370
6499
|
fontFamily: this.fontFamily,
|
|
6371
|
-
} }, h("div", { key: '
|
|
6500
|
+
} }, h("div", { key: 'abe6b2979c84a16ac7fdb80fa37c743ca80b9b02', class: "header" }, h("strong", { key: '73779826bbb27ccfa126aa1af18b7921dccdc474' }, "Profile"), h("button", { key: '0e27a1393f72079f9c2b35f4f77c49f09218b7b5', class: "close-btn", type: "button", onClick: () => this.close() }, "\u2715")), h("div", { key: 'bc3004b96617cc989c5c1d1f39a660829ceaf37b', class: "hero" }, h("img", { key: '0b01732603938aff0f9ec5911032e90b20e9e440', class: "avatar", src: avatar, alt: "", onClick: () => typeof this.openOwnProfile === 'function' && this.openOwnProfile() }), h("div", { key: '0fb3419e0102105777bfe63b0090cf226e97e804', class: "name" }, this.isEditingName ? this.editedName || this.contactName : this.contactName || 'Unknown'), this.contactEmail ? h("div", { class: "email" }, this.contactEmail) : null), h("div", { key: 'f140d43fefdc6f1ac258b2223a9ace8444e1e220', class: "section" }, h("h4", { key: 'b31611ea9f971e42337e5bc4a80de5dc4368f051' }, "Media"), h("div", { key: '7f88774bd7e612427305b444dda71d64a88c4ce4' }, (this.allAttachments || []).length, " items")), h("div", { key: '198d3d0193c90d864315b84b0250e6e457eacfae', class: "actions" }, typeof this.handleChatSelect === 'function' ? (h("button", { type: "button", onClick: () => this.handleChatSelect() }, "Message")) : null)));
|
|
6372
6501
|
}
|
|
6373
6502
|
};
|
|
6374
6503
|
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); padding: 12px; gap: 12px;\n }\n .header { display: flex; align-items: center; gap: 10px; }\n .close-btn { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 20px; color: inherit; }\n .hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0; }\n .avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--bg-tertiary); }\n .name { font-size: 20px; font-weight: 600; }\n .email { font-size: 13px; opacity: 0.7; }\n .section { border-top: 1px solid var(--bg-secondary); padding-top: 12px; }\n .section h4 { margin: 0 0 8px; font-size: 13px; opacity: 0.75; text-transform: uppercase; }\n .actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }\n .actions button {\n padding: 10px 12px; border-radius: 8px; border: 1px solid var(--bg-secondary);\n background: var(--bg-secondary); color: inherit; cursor: pointer; text-align: left;\n }";
|
|
6375
6504
|
|
|
6376
|
-
const makeAdmin = async (conversationId, userId) => {
|
|
6377
|
-
const response = await M.getInstance().Conversation.putConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
6378
|
-
return response;
|
|
6379
|
-
};
|
|
6380
|
-
|
|
6381
|
-
const removeAdmin = async (conversationId, userId) => {
|
|
6382
|
-
const response = await M.getInstance().Conversation.deleteConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
6383
|
-
return response;
|
|
6384
|
-
};
|
|
6385
|
-
|
|
6386
6505
|
const MessageSearch = class {
|
|
6387
6506
|
constructor(hostRef) {
|
|
6388
6507
|
registerInstance(this, hostRef);
|
|
@@ -6439,7 +6558,7 @@ const MessageSearch = class {
|
|
|
6439
6558
|
}
|
|
6440
6559
|
render() {
|
|
6441
6560
|
const results = this.searchedMessageDetails || [];
|
|
6442
|
-
return (h("div", { key: '
|
|
6561
|
+
return (h("div", { key: '991a3aab62e0de33ad78a6fc12f2877b9dcb119b', class: "panel", onClick: e => e.stopPropagation() }, h("div", { key: 'c33084e8cede5b2722b7e8abc2096ea11e1da7d9', class: "header" }, h("button", { key: '5d37359264c899a926eba4f4085a2e7036c5911f', class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.closeSearch() }, h("img", { key: 'a3663ac6fe3ec8219c5df8cd9130e2acdf6ed0c9', class: "theme-icon", src: CancelIcon, alt: "" })), h("h3", { key: 'a9cbdc0cfa4814189852d8b57bcd4bcc20db41dd', class: "title" }, "Search messages")), h("div", { key: '9a940abd01df7b290747cbb0aa1e30ac02b34fba', class: "search-wrap" }, h("div", { key: 'c872e78b1c380faef04a373a7f692b7b02e7effe', class: "search-bar" }, h("img", { key: 'fcb9b448a8053ff49eaee65d644b034a7c8e60af', class: "theme-icon search-icon", src: Search, alt: "" }), h("input", { key: 'eab5cdb1a8e1ccfb063cb3e9f47e1e76073c1130', 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: 'af8a7bd79ae5975ab876c8c19114a285dec80bcb', 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)))))))));
|
|
6443
6562
|
}
|
|
6444
6563
|
};
|
|
6445
6564
|
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); }";
|
|
@@ -6697,7 +6816,7 @@ const ChatLoadingPlaceholder = class {
|
|
|
6697
6816
|
}
|
|
6698
6817
|
render() {
|
|
6699
6818
|
const pct = Math.max(0, Math.min(100, Number(this.progress) || 0));
|
|
6700
|
-
return (h("div", { key: '
|
|
6819
|
+
return (h("div", { key: '1d94ae77a3b84334f8baccfc56ce2626d49fbe5c', class: "box" }, h("div", { key: 'c5e6ee763f846855de73c4dfd3a11712ab67e179', class: "logo", innerHTML: isometrikLogo }), h("div", { key: 'b0406f8e134260c4a6ca950d86628c4206a51e0e', class: "bar" }, h("div", { key: '3f1e832c8a3c18bcf627562b31a742f77f99f893', class: "fill", style: { width: `${pct}%` } })), h("div", { key: '01787478f77aa07380c661e54e7144a335252224', class: "pct" }, pct, "%")));
|
|
6701
6820
|
}
|
|
6702
6821
|
};
|
|
6703
6822
|
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 }";
|
|
@@ -6788,7 +6907,7 @@ const MessageInfo = class {
|
|
|
6788
6907
|
render() {
|
|
6789
6908
|
const delivery = this.deliveryUserList || [];
|
|
6790
6909
|
const read = this.readUserList || [];
|
|
6791
|
-
return (h("div", { key: '
|
|
6910
|
+
return (h("div", { key: '8cbb260b458f09271cd6b1675b65d25b518a5b62', class: "panel" }, h("div", { key: '5a985b94d89e5a4197cb62e11cdf18f1bdc1871d', class: "header" }, h("button", { key: 'db8c9ed3526898872e1f368c7ec5ba09addb5cad', class: "close-btn", type: "button", "aria-label": "Close", title: "Close", onClick: () => this.close() }, h("img", { key: '083f8274705e283259aae905deaa436e5f4b245f', class: "theme-icon", src: CancelIcon, alt: "" })), h("h2", { key: 'a058a67fdacca067d745bdb50cbd7b8a816fa29e' }, "Message info")), h("div", { key: '55b49021b93e4083a2fda96a185ebd5c42d95025', class: "body" }, h("div", { key: '6c1d2b82c79b070909448af67538582e9f8d378b', class: "preview-wrap" }, h("div", { key: '1515cfcb240da83d3c7f190e2dcf9d082e9add0d', class: "preview-bubble" }, h("p", { key: '70df9dd2a094607d3d19eff09559ab8a5199cf1a', class: "preview-text" }, this.previewText()), h("div", { key: 'c85a9579c7071ccb31b92752cf1f5d5cae2be107', class: "preview-meta" }, h("span", { key: 'da4b0fb14e4704778ee2dae312418bdb5d3f7bd7' }, this.bubbleTime())))), h("div", { key: '1413b77d30d10cdce084d6ea98e4bfd5c5b97aac', class: "status-list" }, h("div", { key: '66f72522b946e8331c18dcbb17252b205ac4c962', class: "status-row" }, this.ticksIcon('read'), h("div", { key: '389e7a90d1c4b68641ed70b09f0780e4e74cc041', class: "status-content" }, h("div", { key: 'ee49e7669508a13c75672148127d691a0019a192', class: "status-title" }, "Read"), h("p", { key: '500268878c0716daea5124d781b26a4861fed4d4', 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: 'faddbe446898e96d1d8b7d37a44d019ed7ccd30e', class: "status-row" }, this.ticksIcon('delivered'), h("div", { key: '72953384928b55b8d6c6864b26250b2d4c2f7aa0', class: "status-content" }, h("div", { key: '8bb0a893faa9bef1c99c4eef221446044193d02c', class: "status-title" }, "Delivered"), h("p", { key: '8baa9cf3f7e8973c03a5526371dab136e8895659', 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))))))))));
|
|
6792
6911
|
}
|
|
6793
6912
|
};
|
|
6794
6913
|
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); }";
|
|
@@ -6819,7 +6938,7 @@ const IncomingTextMessageBubble = class {
|
|
|
6819
6938
|
this.showReactionOnHover = false;
|
|
6820
6939
|
}
|
|
6821
6940
|
render() {
|
|
6822
|
-
return (h("message-bubble", { key: '
|
|
6941
|
+
return (h("message-bubble", { key: '918370c86bf0b7e135e67b3b86e41331269cc98f', 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: 'a69f51b6c043a1baec73ed1b068792ff2ccacce6', style: { fontFamily: this.fontFamily, color: this.color, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, renderMessageBody(this.textContent, this.mentionedUsers, u => emitTagUser(this.tagUserClick, u), false))));
|
|
6823
6942
|
}
|
|
6824
6943
|
};
|
|
6825
6944
|
IncomingTextMessageBubble.style = ":host { display: block; max-width: 80%; margin-left: 10px; }";
|
|
@@ -6840,7 +6959,7 @@ const MessageDatePill = class {
|
|
|
6840
6959
|
this.content = '';
|
|
6841
6960
|
}
|
|
6842
6961
|
render() {
|
|
6843
|
-
return (h("span", { key: '
|
|
6962
|
+
return (h("span", { key: '9ba025a7d2726e79e9cc52353787434e7ee414f4', class: "pill", style: {
|
|
6844
6963
|
background: this.bgColor,
|
|
6845
6964
|
color: this.textColor,
|
|
6846
6965
|
width: this.width,
|
|
@@ -6885,7 +7004,7 @@ const OutgoingTextMessageBubble = class {
|
|
|
6885
7004
|
this.fontFamily = 'var(--font-primary)';
|
|
6886
7005
|
}
|
|
6887
7006
|
render() {
|
|
6888
|
-
return (h("message-bubble", { key: '
|
|
7007
|
+
return (h("message-bubble", { key: 'afc55ff86f19f328ac69cf2169d1b9a0dbbf715a', 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: '00b057946676eccc6bb97dfe223398ab4806673f', style: { fontFamily: this.fontFamily, color: this.textColor, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, renderMessageBody(this.textContent, this.mentionedUsers, u => emitTagUser(this.tagUserClick, u), true))));
|
|
6889
7008
|
}
|
|
6890
7009
|
};
|
|
6891
7010
|
OutgoingTextMessageBubble.style = ":host { display: block; max-width: 80%; margin-right: 10px; }";
|
|
@@ -6943,7 +7062,7 @@ const ReplyMessageContainer = class {
|
|
|
6943
7062
|
render() {
|
|
6944
7063
|
const parentBody = this.parentMessageBody || this.parentmessageBody || this.repliedMessage || '';
|
|
6945
7064
|
const parentName = this.parentMessageSenderName || this.senderName || 'Reply';
|
|
6946
|
-
return (h("message-bubble", { key: '
|
|
7065
|
+
return (h("message-bubble", { key: 'eb31f7a04555d65b448a7c54ed58d3b13ad2d788', 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: '016db93d605068afc6c51d16eccc8b9dd89821b9', class: "quote", onClick: e => { var _a; return (_a = this.onMediaClick) === null || _a === void 0 ? void 0 : _a.call(this, e); } }, h("div", { key: 'c4acc4bd04ec7279baeb6aaad48098bacb9888e9', class: "quote-sender" }, parentName), h("div", { key: '72a4c0a1a561666d78b3c8a9de2cfefaa86aa96a', class: "quote-body" }, parentBody), this.parentMessageMediaUrl ? (h("img", { class: "quote-media", src: this.parentMessageMediaUrl, alt: "" })) : null), h("div", { key: 'eceb7aa34cc3482cc31ce9e60d575cf8dcb2c731', class: "reply-body", style: { color: this.color, fontSize: this.fontSize, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, this.messageBody)));
|
|
6947
7066
|
}
|
|
6948
7067
|
};
|
|
6949
7068
|
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; }";
|
|
@@ -7126,21 +7245,39 @@ const WebChatBody = class {
|
|
|
7126
7245
|
};
|
|
7127
7246
|
this.putReadAll = async () => {
|
|
7128
7247
|
var _a, _b;
|
|
7129
|
-
|
|
7130
|
-
|
|
7248
|
+
if (!this.selectedConversationId)
|
|
7249
|
+
return;
|
|
7250
|
+
const hasUnreadMessages = (_a = this.allMessages) === null || _a === void 0 ? void 0 : _a.some(message => {
|
|
7251
|
+
var _a, _b;
|
|
7252
|
+
return ((message === null || message === void 0 ? void 0 : message.senderId) || ((_a = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _a === void 0 ? void 0 : _a.userId)) != ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) &&
|
|
7253
|
+
!(message === null || message === void 0 ? void 0 : message.readByAll);
|
|
7254
|
+
});
|
|
7255
|
+
// Always hit the server on open/visible — unread flags on local rows race and miss.
|
|
7256
|
+
try {
|
|
7131
7257
|
await M.getInstance().message.putRead({ conversationId: this.selectedConversationId });
|
|
7132
|
-
|
|
7258
|
+
}
|
|
7259
|
+
catch (err) {
|
|
7260
|
+
console.warn('[webchat] putRead failed', err);
|
|
7261
|
+
return;
|
|
7262
|
+
}
|
|
7263
|
+
if (hasUnreadMessages) {
|
|
7264
|
+
const newUpdatedAllMessages = (_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.map(message => {
|
|
7265
|
+
var _a, _b;
|
|
7266
|
+
return (message === null || message === void 0 ? void 0 : message.readByAll) != true &&
|
|
7267
|
+
((message === null || message === void 0 ? void 0 : message.senderId) || ((_a = message === null || message === void 0 ? void 0 : message.senderInfo) === null || _a === void 0 ? void 0 : _a.userId)) != ((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId)
|
|
7268
|
+
? Object.assign(Object.assign({}, message), { readByAll: true }) : message;
|
|
7269
|
+
});
|
|
7133
7270
|
this.updateAllMessages(newUpdatedAllMessages);
|
|
7134
|
-
this.el.dispatchEvent(new CustomEvent('message-read-status-updated', {
|
|
7135
|
-
bubbles: true,
|
|
7136
|
-
composed: true,
|
|
7137
|
-
detail: {
|
|
7138
|
-
conversationId: this.selectedConversationId,
|
|
7139
|
-
isRead: true,
|
|
7140
|
-
isDelivered: true,
|
|
7141
|
-
},
|
|
7142
|
-
}));
|
|
7143
7271
|
}
|
|
7272
|
+
this.el.dispatchEvent(new CustomEvent('message-read-status-updated', {
|
|
7273
|
+
bubbles: true,
|
|
7274
|
+
composed: true,
|
|
7275
|
+
detail: {
|
|
7276
|
+
conversationId: this.selectedConversationId,
|
|
7277
|
+
isRead: true,
|
|
7278
|
+
isDelivered: true,
|
|
7279
|
+
},
|
|
7280
|
+
}));
|
|
7144
7281
|
};
|
|
7145
7282
|
this.handleVisibilityChange = async () => {
|
|
7146
7283
|
if (document.visibilityState === 'visible') {
|
|
@@ -7414,7 +7551,7 @@ const WebChatBody = class {
|
|
|
7414
7551
|
this.messageDate = '';
|
|
7415
7552
|
this.messageDeliveryTime = 0;
|
|
7416
7553
|
this.messageReadTime = 0;
|
|
7417
|
-
this.showScrollButton =
|
|
7554
|
+
this.showScrollButton = false;
|
|
7418
7555
|
this.isScrolling = false;
|
|
7419
7556
|
this.unreadMessageCount = 0;
|
|
7420
7557
|
this.isChatBodyUnscrollable = false;
|
|
@@ -7756,21 +7893,24 @@ const WebChatBody = class {
|
|
|
7756
7893
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7757
7894
|
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);
|
|
7758
7895
|
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'));
|
|
7759
|
-
return (h("div", { key: '
|
|
7896
|
+
return (h("div", { key: '04d498fc21493a71497a28f855d184eb14e32763', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, (this.showScrollButton || this.newMessageNotification) && (h("div", { key: '42c9a73991cfb913403d104dce510ba6ca9eb5bb', class: "jump-latest", onClick: this.scrollToBottom, role: "button", "aria-label": "Jump to latest messages", style: {
|
|
7760
7897
|
position: 'sticky',
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7898
|
+
bottom: '1rem',
|
|
7899
|
+
marginLeft: 'auto',
|
|
7900
|
+
marginRight: '1rem',
|
|
7901
|
+
marginTop: '-2.5rem',
|
|
7902
|
+
backgroundColor: 'var(--bg-primary, #fff)',
|
|
7903
|
+
border: '1px solid var(--border, #e4e4e7)',
|
|
7764
7904
|
borderRadius: '50%',
|
|
7765
|
-
width: '
|
|
7766
|
-
height: '
|
|
7905
|
+
width: '2.5rem',
|
|
7906
|
+
height: '2.5rem',
|
|
7767
7907
|
display: 'flex',
|
|
7768
7908
|
alignItems: 'center',
|
|
7769
7909
|
justifyContent: 'center',
|
|
7770
7910
|
cursor: 'pointer',
|
|
7771
|
-
boxShadow: '0 2px
|
|
7911
|
+
boxShadow: '0 2px 8px rgba(0,0,0,0.14)',
|
|
7772
7912
|
zIndex: '100',
|
|
7773
|
-
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '
|
|
7913
|
+
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (h("div", { key: '2004cdee625a06da51879110339379878072d93f', style: {
|
|
7774
7914
|
position: 'absolute',
|
|
7775
7915
|
bottom: '22px',
|
|
7776
7916
|
right: '-2px',
|
|
@@ -7784,7 +7924,7 @@ const WebChatBody = class {
|
|
|
7784
7924
|
justifyContent: 'center',
|
|
7785
7925
|
fontSize: '12px',
|
|
7786
7926
|
padding: '0 4px',
|
|
7787
|
-
} })), h("svg", { key: '
|
|
7927
|
+
} })), h("svg", { key: '12e09d0c2ac7327e64ae671ebb1ce406ca0a5538', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'e67f759077573794ea5923aeaff2a18143ec1887', 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: 'ad56d354279bc44df4e53a583976cb02f208bdc8', style: {
|
|
7788
7928
|
display: 'flex',
|
|
7789
7929
|
flexDirection: 'column',
|
|
7790
7930
|
alignItems: 'center',
|
|
@@ -7794,7 +7934,7 @@ const WebChatBody = class {
|
|
|
7794
7934
|
textAlign: 'center',
|
|
7795
7935
|
color: 'var(--text-secondary-color)',
|
|
7796
7936
|
marginTop: '20px',
|
|
7797
|
-
} }, h("img", { key: '
|
|
7937
|
+
} }, h("img", { key: 'bd08d76f2db678ee4af1aae5d39bf0ae3c083b6f', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), h("div", { key: '1fbb6c63dbc25065bf7248c4e03503b6693901d4', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, h("span", { key: 'ffdfd34864bfa277e433ced72e0de8670301b86b', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), h("span", { key: '5c3827cbd2ab1dacb9f75f248d7bbf4c83b33e89', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (h("spinner-loader", { key: '88169d80e7d17419beb4094b3ce89f91927d8784', 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 &&
|
|
7798
7938
|
((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
|
|
7799
7939
|
(() => {
|
|
7800
7940
|
const total = this.allMessages.length;
|