isometrik-plugin-chat-sdk 2.0.5 → 2.0.7
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 +162 -53
- 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 +15 -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 +22 -7
- 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 +34 -16
- 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 +10 -4
- 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 +9 -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 +17 -13
- package/dist/components/WebChat.js.map +1 -1
- package/dist/components/WebChatBody.js +34 -16
- package/dist/components/WebChatBody.js.map +1 -1
- package/dist/components/WebChatHeader.js +23 -8
- 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 +11 -5
- 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 +162 -53
- 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 +15 -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-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-84424caa.entry.js +2 -0
- package/dist/isometrik-webchat/p-84424caa.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-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/isometrik-webchat/p-ff023d39.entry.js +2 -0
- package/dist/isometrik-webchat/p-ff023d39.entry.js.map +1 -0
- package/dist/types/components/ChatUIComponent/shared/admin-transfer-dialog/admin-transfer-dialog.d.ts +13 -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
|
@@ -5,16 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f624fc47.js');
|
|
6
6
|
const chatAssets = require('./chat-assets-686620e7.js');
|
|
7
7
|
const cancel = require('./cancel-1ffd86d3.js');
|
|
8
|
-
const sendMedia = require('./send-media-
|
|
8
|
+
const sendMedia = require('./send-media-37e09e83.js');
|
|
9
9
|
const doublecheck = require('./doublecheck-c2461adc.js');
|
|
10
10
|
const index_m = require('./index.m-ff115b26.js');
|
|
11
|
-
const drawer = require('./drawer-
|
|
11
|
+
const drawer = require('./drawer-960b3f5d.js');
|
|
12
12
|
const helpers = require('./helpers-154861e9.js');
|
|
13
13
|
const index$1 = require('./index-66f98408.js');
|
|
14
14
|
const toast = require('./toast-f810e550.js');
|
|
15
15
|
const groupcast = require('./groupcast-c93d4a7d.js');
|
|
16
16
|
const IsometrikLogo = require('./IsometrikLogo-9e642f65.js');
|
|
17
17
|
const groupMembers = require('./group-members-5a82ec8a.js');
|
|
18
|
+
const groupAdminLeave = require('./group-admin-leave-b5cfdb33.js');
|
|
18
19
|
const content = require('./content-ebca062a.js');
|
|
19
20
|
const messageBodyRender = require('./message-body-render-7c7a026e.js');
|
|
20
21
|
const messageReaction = require('./message-reaction-8f93a048.js');
|
|
@@ -1031,6 +1032,24 @@ const ChatSidebar = class {
|
|
|
1031
1032
|
}
|
|
1032
1033
|
}
|
|
1033
1034
|
async exitGroup(conversationId) {
|
|
1035
|
+
var _a, _b;
|
|
1036
|
+
const selfId = String(((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId) || '');
|
|
1037
|
+
const storeMembers = groupMembers.groupMembersStore.getCurrentConversationId() === conversationId
|
|
1038
|
+
? groupMembers.groupMembersStore.getMembers()
|
|
1039
|
+
: [];
|
|
1040
|
+
const detailMembers = Array.isArray((_b = this.conversationDetails) === null || _b === void 0 ? void 0 : _b.members)
|
|
1041
|
+
? this.conversationDetails.members
|
|
1042
|
+
: [];
|
|
1043
|
+
const members = storeMembers.length ? storeMembers : detailMembers;
|
|
1044
|
+
if (groupAdminLeave.needsAdminTransferBeforeLeave(selfId, members)) {
|
|
1045
|
+
toast.showToast({
|
|
1046
|
+
message: 'Make another member an admin before leaving this group',
|
|
1047
|
+
type: 'error',
|
|
1048
|
+
position: 'bottom-right',
|
|
1049
|
+
});
|
|
1050
|
+
drawer.drawerDialogService.closeDialog('confirm-dialog');
|
|
1051
|
+
return;
|
|
1052
|
+
}
|
|
1034
1053
|
try {
|
|
1035
1054
|
this.isLoading = true;
|
|
1036
1055
|
await index_m.M.getInstance().Conversation.deleteConversationLeave({ conversationId });
|
|
@@ -1408,6 +1427,70 @@ const GroupCast = class {
|
|
|
1408
1427
|
};
|
|
1409
1428
|
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); }";
|
|
1410
1429
|
|
|
1430
|
+
const makeAdmin = async (conversationId, userId) => {
|
|
1431
|
+
const response = await index_m.M.getInstance().Conversation.putConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
1432
|
+
return response;
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
const removeAdmin = async (conversationId, userId) => {
|
|
1436
|
+
const response = await index_m.M.getInstance().Conversation.deleteConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
1437
|
+
return response;
|
|
1438
|
+
};
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* Exit-group UX: normal confirm, or sole-admin transfer picker first.
|
|
1442
|
+
*/
|
|
1443
|
+
function promptExitGroup(opts) {
|
|
1444
|
+
const { selfId, members, conversationId, onLeave } = opts;
|
|
1445
|
+
if (!conversationId)
|
|
1446
|
+
return;
|
|
1447
|
+
if (!groupAdminLeave.needsAdminTransferBeforeLeave(selfId, members)) {
|
|
1448
|
+
drawer.drawerDialogService.openDialog('confirm-dialog', {
|
|
1449
|
+
title: 'Exit group',
|
|
1450
|
+
description: 'Are you sure you want to exit this group?',
|
|
1451
|
+
handleConfirm: () => onLeave(),
|
|
1452
|
+
});
|
|
1453
|
+
return;
|
|
1454
|
+
}
|
|
1455
|
+
const candidates = groupAdminLeave.adminTransferCandidates(selfId, members);
|
|
1456
|
+
if (!candidates.length) {
|
|
1457
|
+
drawer.drawerDialogService.openDialog('confirm-dialog', {
|
|
1458
|
+
title: 'Cannot exit yet',
|
|
1459
|
+
description: 'You are the only admin. Add another member and make them an admin before leaving.',
|
|
1460
|
+
yesText: 'OK',
|
|
1461
|
+
noText: 'Close',
|
|
1462
|
+
handleConfirm: () => drawer.drawerDialogService.closeDialog('confirm-dialog'),
|
|
1463
|
+
});
|
|
1464
|
+
return;
|
|
1465
|
+
}
|
|
1466
|
+
drawer.drawerDialogService.openDialog('admin-transfer', {
|
|
1467
|
+
candidates,
|
|
1468
|
+
handlePick: async (member) => {
|
|
1469
|
+
const memberId = groupAdminLeave.memberUserId(member);
|
|
1470
|
+
const name = groupAdminLeave.memberDisplayName(member);
|
|
1471
|
+
if (!memberId)
|
|
1472
|
+
return;
|
|
1473
|
+
try {
|
|
1474
|
+
await makeAdmin(conversationId, memberId);
|
|
1475
|
+
// Keep leave safety-net in sync — API succeeded, store must reflect it.
|
|
1476
|
+
if (groupMembers.groupMembersStore.getCurrentConversationId() === conversationId) {
|
|
1477
|
+
groupMembers.groupMembersStore.updateAdminStatus(memberId, true);
|
|
1478
|
+
}
|
|
1479
|
+
drawer.drawerDialogService.closeDialog('admin-transfer');
|
|
1480
|
+
onLeave();
|
|
1481
|
+
}
|
|
1482
|
+
catch (err) {
|
|
1483
|
+
console.error('[webchat] make admin before leave failed', err);
|
|
1484
|
+
toast.showToast({
|
|
1485
|
+
message: `Could not make ${name} an admin. Try again or pick someone else.`,
|
|
1486
|
+
type: 'error',
|
|
1487
|
+
position: 'bottom-right',
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
},
|
|
1491
|
+
});
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1411
1494
|
const WebChatHeader = class {
|
|
1412
1495
|
constructor(hostRef) {
|
|
1413
1496
|
index.registerInstance(this, hostRef);
|
|
@@ -1475,15 +1558,28 @@ const WebChatHeader = class {
|
|
|
1475
1558
|
this.handleTextClick();
|
|
1476
1559
|
};
|
|
1477
1560
|
this.exitGroup = () => {
|
|
1561
|
+
var _a, _b;
|
|
1478
1562
|
this.menuOpen = false;
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1563
|
+
const conversationId = this.conversationId();
|
|
1564
|
+
const fromDetails = (_a = this.conversationDetails) === null || _a === void 0 ? void 0 : _a.members;
|
|
1565
|
+
const fromStore = groupMembers.groupMembersStore.getCurrentConversationId() === conversationId
|
|
1566
|
+
? groupMembers.groupMembersStore.getMembers()
|
|
1567
|
+
: [];
|
|
1568
|
+
const members = (Array.isArray(fromDetails) && fromDetails.length ? fromDetails : null) ||
|
|
1569
|
+
(Array.isArray(this.groupMembers) && this.groupMembers.length
|
|
1570
|
+
? this.groupMembers
|
|
1571
|
+
: null) ||
|
|
1572
|
+
fromStore ||
|
|
1573
|
+
[];
|
|
1574
|
+
promptExitGroup({
|
|
1575
|
+
selfId: String(((_b = this.userMetaData) === null || _b === void 0 ? void 0 : _b.userId) || ''),
|
|
1576
|
+
members,
|
|
1577
|
+
conversationId: String(conversationId || ''),
|
|
1578
|
+
onLeave: () => {
|
|
1483
1579
|
this.el.dispatchEvent(new CustomEvent('contact-action', {
|
|
1484
1580
|
bubbles: true,
|
|
1485
1581
|
composed: true,
|
|
1486
|
-
detail: { action: 'exit-group', conversationId
|
|
1582
|
+
detail: { action: 'exit-group', conversationId },
|
|
1487
1583
|
}));
|
|
1488
1584
|
},
|
|
1489
1585
|
});
|
|
@@ -1628,10 +1724,10 @@ const WebChatHeader = class {
|
|
|
1628
1724
|
const groupcast = this.isGroupcast();
|
|
1629
1725
|
const isGroup = !!((_a = this.conversationDetails) === null || _a === void 0 ? void 0 : _a.isGroup) && !groupcast;
|
|
1630
1726
|
const showBlock = !groupcast && !((_b = this.conversationDetails) === null || _b === void 0 ? void 0 : _b.isGroup);
|
|
1631
|
-
return (index.h(index.Fragment, { key: '
|
|
1727
|
+
return (index.h(index.Fragment, { key: 'f69b1ff89bd8cbb686af42fea6cbe5d7d0372f4d' }, index.h("div", { key: 'b3a85a44a6b10b177987d9df97c5545caa9eb545', class: "head-container", style: {
|
|
1632
1728
|
backgroundColor: this.headerBgColor || undefined,
|
|
1633
1729
|
color: this.headerUsernameColor || undefined,
|
|
1634
|
-
} }, index.h("div", { key: '
|
|
1730
|
+
} }, index.h("div", { key: '1c25ac2995fd196618d842b018fe5ead158aa0bf', class: "head-left" }, index.h("button", { key: '623aab35ec496f1d17150c50303f4fcaee1fc521', class: "back-button", type: "button", onClick: () => typeof this.onBackButtonClick === 'function' && this.onBackButtonClick(), "aria-label": "Back" }, index.h("img", { key: 'a10dbf338a89839bb729393ba196b09244388fbb', class: "theme-icon", src: chatAssets.Left_Arrow, alt: "" })), index.h("div", { key: '58f51fda7f45e45ef4d9f8c60e1b1702c940e0ed', class: "identity", onClick: this.handleTextClick }, index.h("profile-avatar", { key: '301f581d815101e8c7e5f35051063784bdcff3dd', src: this.avatarSrc(), name: this.title(), size: "var(--avatar-sm)", isGroup: this.avatarIsGroup() }), index.h("div", { key: 'd3965924dd15944444e46907ba7e4710ed4ec71e', class: "text-container" }, index.h("div", { key: '34098ad59a669252193b72de2be172f4f596aaec', class: "title" }, this.title()), index.h("div", { key: '056426edd6da5abf00736baffd35d30c1420f797', class: "subtitle", style: { color: this.headerLastSeenColor || undefined } }, this.subtitle(formattedLastSeen))))), index.h("div", { key: 'da3984f8bb92923b17f2ef3415aeb94e7ba605e1', class: "actions" }, !groupcast ? (index.h("button", { type: "button", class: "icon-btn", title: "Search in conversation", onClick: () => this.openSearch() }, index.h("img", { class: "theme-icon", src: chatAssets.Search, alt: "" }))) : null, index.h("div", { key: 'df68b4da79c8a0d1ce2b7800b6562e100b42c24b', class: "more-wrap" }, index.h("button", { key: 'ccf5fd29b11027279e979ce1c24a380219d23d59', type: "button", class: "icon-btn", title: "Menu", "aria-label": "Menu", "aria-haspopup": "menu", "aria-expanded": this.menuOpen ? 'true' : 'false', onClick: this.toggleMenu }, index.h("img", { key: '8494806478460e4447c05753554e4bd74f845826', class: "theme-icon", src: chatAssets.Three_Dots, alt: "" })), this.menuOpen ? (index.h("div", { class: "more-menu", role: "menu" }, isGroup ? (index.h(index.Fragment, null, index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.openAddMember }, index.h("img", { class: "theme-icon", src: chatAssets.Add_User, alt: "" }), index.h("span", null, "Add member")), index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.openGroupInfo }, index.h("img", { class: "theme-icon", src: chatAssets.Info, alt: "" }), index.h("span", null, "Group info")))) : null, !groupcast ? (index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: () => this.openSearch() }, index.h("img", { class: "theme-icon", src: chatAssets.Search, alt: "" }), index.h("span", null, "Search"))) : null, index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: () => this.doCloseChat() }, index.h("img", { class: "theme-icon", src: chatAssets.CloseButton, alt: "" }), index.h("span", null, "Close chat")), !groupcast ? (index.h("button", { type: "button", class: "more-item", role: "menuitem", onClick: this.handleClearChat }, index.h("img", { class: "theme-icon", src: chatAssets.Clear_Chat, alt: "" }), index.h("span", null, "Clear chat"))) : null, isGroup ? (index.h(index.Fragment, null, index.h("div", { class: "more-divider" }), index.h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.exitGroup }, index.h("img", { class: "theme-icon", src: chatAssets.Logout, alt: "" }), index.h("span", null, "Exit group")))) : null, showBlock ? (index.h(index.Fragment, null, index.h("div", { class: "more-divider" }), index.h("button", { type: "button", class: "more-item danger", role: "menuitem", onClick: this.doBlock }, index.h("img", { class: "theme-icon", src: chatAssets.Block_User, alt: "" }), index.h("span", null, this.isBlocked ? 'Unblock Chat' : 'Block Chat')))) : null)) : null))), this.isLoading && (index.h("div", { key: '55f81b2d021ca262054d214c36fbc2f3d8ebb150', class: "loading-overlay" }, index.h("spinner-loader", { key: 'f124da66a180e08a7db55c2dfbe2e6438f478bee', height: "30px", width: "30px", spinTime: "1s", spinnerPrimaryColor: "var(--bg-primary)", spinnerSecondaryColor: "var(--text-primary)", spinnerBorderWidth: "2px" })))));
|
|
1635
1731
|
}
|
|
1636
1732
|
get el() { return index.getElement(this); }
|
|
1637
1733
|
static get watchers() { return {
|
|
@@ -4766,7 +4862,7 @@ const AttachmentPreview = class {
|
|
|
4766
4862
|
const type = this.typeOf(cur, this.localIndex);
|
|
4767
4863
|
const fileMode = this.isFilePreview(type);
|
|
4768
4864
|
const fileTitle = this.fileName(cur);
|
|
4769
|
-
return (index.h("div", { key: '
|
|
4865
|
+
return (index.h("div", { key: 'e4dbf47c2492175a7c1b502741b3f42f123c704a', class: "preview-container" }, index.h("div", { key: 'aa47dfa5328eb329d88a907fb2cd24785310eaab', class: "topbar" }, fileMode && !this.showCamera ? (index.h(index.Fragment, null, index.h("button", { class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.close() }, index.h("img", { class: "theme-icon", src: cancel.CancelIcon, alt: "" })), index.h("span", { class: "topbar-title centered" }, fileTitle), index.h("span", { class: "topbar-spacer" }))) : (index.h("button", { class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.close() }, index.h("img", { class: "theme-icon", src: cancel.CancelIcon, alt: "" })))), index.h("div", { key: 'b0eadf608ac9f4107aa9d0581e64ae68ac512f24', class: "main" }, this.showCamera ? (index.h("div", { class: "camera-view" }, this.cameraError ? index.h("p", { class: "camera-error" }, this.cameraError) : null, !this.cameraReady && !this.cameraError ? index.h("p", { class: "camera-loading" }, "Opening camera\u2026") : null, index.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 ? (index.h("button", { class: "snap-btn", type: "button", title: "Take photo", onClick: this.snap })) : null)) : !cur ? (index.h("div", null, "No attachment")) : type === 'video' ? (index.h("video", { class: "preview-media", src: this.srcOf(cur), controls: true, preload: "metadata" })) : type === 'audio' ? (index.h("div", { class: "audio-stage" }, index.h("p", { class: "audio-title" }, fileTitle), index.h("audio", { src: this.srcOf(cur), controls: true, preload: "metadata" }), index.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) ? (index.h("img", { src: this.srcOf(cur), alt: fileTitle })) : this.isPdf(cur) && this.srcOf(cur) ? (index.h("div", { class: "pdf-stage" }, index.h("iframe", { class: "pdf-frame", src: `${this.srcOf(cur)}#toolbar=1&navpanes=0`, title: fileTitle }))) : fileMode ? (index.h("div", { class: "file-preview" }, index.h("div", { class: "file-preview-icon-wrap" }, index.h("img", { src: this.fileIconSrc(cur), alt: "" })), index.h("h3", { class: "file-preview-title" }, fileTitle), index.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(' · ')), index.h("div", { class: "file-preview-actions" }, this.srcOf(cur) ? (index.h("button", { type: "button", onClick: () => this.openInNewTab(this.srcOf(cur)) }, "Open")) : null, this.srcOf(cur) ? (index.h("a", { class: "secondary", href: this.srcOf(cur), download: fileTitle }, "Download")) : null))) : (index.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 ? (index.h("div", { class: "footer" }, index.h("div", { class: "composer" }, this.showEmojiPicker ? (index.h("div", { class: "emoji-panel" }, index.h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, index.h("div", { class: "composer-pill" }, index.h("input", { type: "text", placeholder: this.inputPlaceholder || 'Type a message', value: this.inputValue || '', onInput: this.onCaption, ref: el => (this.captionInputRef = el) }), index.h("button", { class: "icon-btn smile-btn", type: "button", title: "Emoji", "aria-label": "Emoji", onClick: this.toggleEmoji }, index.h("img", { src: chatAssets.Smile, alt: "" }))), index.h("button", { class: "send-btn", type: "button", title: "Send", onClick: () => this.send() }, index.h("img", { src: chatAssets.Send, alt: "" }), list.length > 1 ? index.h("span", { class: "send-badge" }, list.length) : null)), index.h("div", { class: "action-row" }, index.h("div", { class: "thumbs" }, list.map((item, i) => {
|
|
4770
4866
|
const t = this.typeOf(item, i);
|
|
4771
4867
|
const isFile = this.isFilePreview(t);
|
|
4772
4868
|
const pdf = this.isPdf(item);
|
|
@@ -4835,7 +4931,7 @@ const ReplyBlock = class {
|
|
|
4835
4931
|
return this.messageBody;
|
|
4836
4932
|
}
|
|
4837
4933
|
render() {
|
|
4838
|
-
return (index.h("div", { key: '
|
|
4934
|
+
return (index.h("div", { key: '4a67c3ddbbdd334f69be375acdec82ad654378b7', class: "reply-block-container" }, index.h("div", { key: 'fdf6a1c768d57e37fa9825ad8890ac2708eeca4a', class: "reply-main" }, index.h("div", { key: '2c4cdb6961182bac974ed1d1bc4274ece697caaa', class: "accent" }), index.h("div", { key: '5de9fd10baa48e611cf61d755ebe756a1b8ea9ef', class: "reply-body" }, index.h("div", { key: 'd0b1c362ad10a86d3dd33d01f4380041b4fad776', class: "sender" }, this.senderName), index.h("div", { key: '232c1757e27f21685c44a36713f64d236749dc1a', class: "message-body-container" }, this.bodyLabel()))), index.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); } }, index.h("img", { key: '545aa0ea40ea13491f9dfaa81faae8a45f03dff6', class: "theme-icon", src: chatAssets.CloseButton, alt: "" }))));
|
|
4839
4935
|
}
|
|
4840
4936
|
};
|
|
4841
4937
|
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); }";
|
|
@@ -5647,7 +5743,7 @@ const ChatFooter = class {
|
|
|
5647
5743
|
const webChat = index$1.findWebChatHost(this.el);
|
|
5648
5744
|
const hasCustomReply = (webChat ? index$1.hasNamedSlot(webChat, 'reply-preview') : false) || index$1.hasNamedSlot(this.el, 'reply-preview');
|
|
5649
5745
|
const showAttachment = this.attachmentDetails || this.showCamera;
|
|
5650
|
-
return (index.h(index.Host, { key: '
|
|
5746
|
+
return (index.h(index.Host, { key: '4aecc1f90f540e9082f8abbaf4faadbbcd549fd4', class: { 'attachment-open': !!showAttachment } }, index.h("div", { key: 'f11f01df71447e564785543322ad9cefffb2df19', class: "chat-footer-container" }, showAttachment ? (index.h("slot", { name: "attachment-preview" }, index.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 }))) : (index.h(index.Fragment, null, hasCustomReply ? index.h("slot", { name: "reply-preview" }) : null, index.h("slot", { name: "composer-input" }, !hasCustomReply && this.replyMessage ? (index.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)
|
|
5651
5747
|
? 'You'
|
|
5652
5748
|
: (_f = (_e = this.replyMessage) === null || _e === void 0 ? void 0 : _e.senderInfo) === null || _f === void 0 ? void 0 : _f.userName, onIconClick: this.handleremoveReplyMessage })) : null, index.h("div", { class: "composer-wrap", key: this.inputKey, ref: el => (this.composerWrapRef = el) }, this.showEmojiPicker ? (index.h("div", { class: "emoji-panel", style: this.emojiPanelStyle }, index.h("div", { class: "emoji-panel-header" }, index.h("span", null, "Emoji"), index.h("button", { class: "emoji-panel-close", type: "button", "aria-label": "Close", onClick: this.handleEmojiToggle }, "\u00D7")), index.h("emoji-picker", { class: "emoji-picker light", ref: this.bindEmojiPicker }))) : null, index.h("div", { class: { composer: true, recording: this.isRecording } }, this.isRecording ? (index.h("div", { class: "rec-body" }, index.h("div", { class: "rec-left" }, index.h("button", { class: "rec-icon-btn danger", type: "button", title: "Delete recording", "aria-label": "Delete recording", onClick: this.handleRecDelete }, index.h("img", { class: "theme-icon", src: chatAssets.Delete, alt: "" })), index.h("div", { class: "rec-timer-wrap" }, index.h("span", { class: { 'rec-dot': true, live: !this.isPaused } }), index.h("span", { class: "rec-timer" }, this.formatRecTime(this.recordingSeconds)))), index.h("div", { class: "rec-wave" }, index.h("audio-bubble", { liveRecord: true, audioProgressColor: "#2563eb", audioWaveColor: "#2563eb", ref: el => (this.recBubble = el), onRecordingProgress: this.onRecordingProgress, onRecordingError: this.onRecordingError })), index.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 }, index.h("img", { class: "theme-icon", src: this.isPaused ? PlayIcon : PauseIcon, alt: "" })), index.h("button", { class: "rec-send", type: "button", title: "Send voice note", "aria-label": "Send voice note", onClick: this.handleRecSend }, index.h("img", { src: chatAssets.Send, alt: "" })))) : (index.h(index.Fragment, null, index.h("div", { class: "attach-wrap" }, index.h("button", { class: "icon-btn", type: "button", title: "Attach file", "aria-label": "Attach", onClick: this.handleAttachClick }, index.h("img", { src: chatAssets.Attachment, alt: "" })), this.showAttachMenu ? (index.h("div", { class: "attach-menu", style: this.attachMenuStyle }, index.h("button", { class: "attach-opt", type: "button", onClick: this.pickDocument }, index.h("span", { class: "attach-opt-icon attach-opt-icon--doc" }, index.h("img", { src: DocumentsIcon, alt: "" })), index.h("span", null, "Document")), index.h("button", { class: "attach-opt", type: "button", onClick: this.pickPhotos }, index.h("span", { class: "attach-opt-icon attach-opt-icon--photos" }, index.h("img", { class: "theme-icon", src: PhotosIcon, alt: "" })), index.h("span", null, "Photos & videos")), index.h("button", { class: "attach-opt", type: "button", onClick: this.pickCamera }, index.h("span", { class: "attach-opt-icon attach-opt-icon--camera" }, index.h("img", { class: "theme-icon", src: CameraIcon, alt: "" })), index.h("span", null, "Camera")))) : null), index.h("button", { class: "icon-btn", type: "button", title: "Emojis", "aria-label": "Emojis", onClick: this.handleEmojiToggle }, index.h("img", { src: chatAssets.Smile, alt: "" })), index.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 }), index.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 }), index.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() ? (index.h("button", { class: "icon-btn", type: "button", title: "Send", "aria-label": "Send", onClick: this.handleSendMessage }, index.h("img", { src: chatAssets.Send, alt: "" }))) : (index.h("button", { class: "icon-btn", type: "button", title: "Voice note", "aria-label": "Voice note", onClick: this.handleMicClick }, index.h("img", { src: chatAssets.Microphone, alt: "" })))))))))))));
|
|
5653
5749
|
}
|
|
@@ -5742,7 +5838,7 @@ const BlockChatList = class {
|
|
|
5742
5838
|
}
|
|
5743
5839
|
render() {
|
|
5744
5840
|
var _a, _b;
|
|
5745
|
-
return (index.h("div", { key: '
|
|
5841
|
+
return (index.h("div", { key: '012322ba96f6b096fe7857cae36c30a322620827', class: "blocked-users-container" }, index.h("div", { key: '7fc77bfcb108603e7eed5e0f25aef3dc58127ac7', class: "header" }, index.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" }, index.h("img", { key: '0c6b0dc3f69d7c62a0d3ea132d08d4c8d93b34e4', class: "theme-icon", src: chatAssets.Left_Arrow, alt: "" })), index.h("h2", { key: '3322096a3259618ab665c791a444dcaf318aa991', style: { margin: '0', fontSize: '18px' } }, "Blocked Users")), index.h("div", { key: '04e0436cf07effc38946264793414d50bc2f1667', class: "search-container" }, index.h("input", { key: 'bbb909a7b2ba1b756d7d5770657184539c89785c', class: "search-input", type: "text", placeholder: "Search users...", value: this.searchTerm, onInput: (e) => {
|
|
5746
5842
|
this.searchTerm = e.target.value;
|
|
5747
5843
|
this.debouncedSearch(this.searchTerm);
|
|
5748
5844
|
} })), this.isLoading ? (index.h("div", { class: "loading-spinner" }, index.h("spinner-loader", { height: "30px", width: "30px" }))) : ((_a = this.blockUsers) === null || _a === void 0 ? void 0 : _a.length) === 0 ? (index.h("div", { class: "empty-state" }, this.searchTerm
|
|
@@ -5972,7 +6068,7 @@ const ProfileSidebar = class {
|
|
|
5972
6068
|
}
|
|
5973
6069
|
render() {
|
|
5974
6070
|
var _a, _b;
|
|
5975
|
-
return (index.h("div", { key: '
|
|
6071
|
+
return (index.h("div", { key: '55246be4cb99d67f1a4d3210bed4ef1bfae7fe84', class: "profile-tab" }, index.h("div", { key: '22bd741640954f50a478f861ad11809cbd80e879', class: "top-buttons" }, index.h("div", { key: '81ab0727f845eb42370d4342168c343354505be8', class: `chat-button${this.activeTab === 'Chat' ? ' active' : ''}`, title: "Chat", onClick: () => this.call(this.openChat) }, index.h("img", { key: 'aabcb91dbc626c4e14e6f577560d0e8f8d05251a', src: chatAssets.Message, class: "theme-icon", alt: "chat" }), this.unreadConversationsCount > 0 ? (index.h("div", { class: "unread-count" }, this.unreadConversationsCount)) : null), index.h("div", { key: '0d2ce5f28848e3cf872a757695dcd16e1abdc446', class: `chat-button${this.activeTab === 'GroupCast' ? ' active' : ''}`, title: "GroupCast", onClick: () => this.call(this.openGroupCast) }, index.h("img", { key: 'eb6fb9a32070d6b20ad2466b0ee571c8a1a07e00', src: chatAssets.Group_cast, class: "theme-icon", alt: "broadcast" }))), index.h("div", { key: '96b301bc866b6b44570b9b2ac9b8b42b0c6c0da9', class: "bottom-buttons" }, index.h("div", { key: 'f480664f2413cb7e802e2c0df84dffdc4c981090', class: `avatar-wrap${this.activeTab === 'Profile' ? ' active' : ''}`, title: "Profile", onClick: () => this.call(this.openProfile) }, index.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)" })))));
|
|
5976
6072
|
}
|
|
5977
6073
|
};
|
|
5978
6074
|
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 }";
|
|
@@ -6007,10 +6103,15 @@ const ContactInfo = class {
|
|
|
6007
6103
|
});
|
|
6008
6104
|
};
|
|
6009
6105
|
this.confirmExitGroup = () => {
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6106
|
+
var _a;
|
|
6107
|
+
const members = this.isGroupcast
|
|
6108
|
+
? this.groupcastMembers || []
|
|
6109
|
+
: this.groupMembers || [];
|
|
6110
|
+
promptExitGroup({
|
|
6111
|
+
selfId: String(((_a = this.userMetaData) === null || _a === void 0 ? void 0 : _a.userId) || ''),
|
|
6112
|
+
members,
|
|
6113
|
+
conversationId: String(this.conversationId || ''),
|
|
6114
|
+
onLeave: () => this.emitAction('exit-group'),
|
|
6014
6115
|
});
|
|
6015
6116
|
};
|
|
6016
6117
|
this.openAddMember = () => {
|
|
@@ -6363,7 +6464,7 @@ const ProfileInfo = class {
|
|
|
6363
6464
|
}
|
|
6364
6465
|
render() {
|
|
6365
6466
|
const avatar = this.contactImage || helpers.generateProfileImageByInitials(this.contactName || '?', 96, 96);
|
|
6366
|
-
return (index.h("div", { key: '
|
|
6467
|
+
return (index.h("div", { key: 'f5f2d99774f205ee64e022f0099495df8bc0d6e2', class: "panel", style: {
|
|
6367
6468
|
padding: this.padding,
|
|
6368
6469
|
margin: this.margin,
|
|
6369
6470
|
width: this.width,
|
|
@@ -6372,21 +6473,11 @@ const ProfileInfo = class {
|
|
|
6372
6473
|
backgroundColor: this.backgroundColor,
|
|
6373
6474
|
color: this.textColor,
|
|
6374
6475
|
fontFamily: this.fontFamily,
|
|
6375
|
-
} }, index.h("div", { key: '
|
|
6476
|
+
} }, index.h("div", { key: 'abe6b2979c84a16ac7fdb80fa37c743ca80b9b02', class: "header" }, index.h("strong", { key: '73779826bbb27ccfa126aa1af18b7921dccdc474' }, "Profile"), index.h("button", { key: '0e27a1393f72079f9c2b35f4f77c49f09218b7b5', class: "close-btn", type: "button", onClick: () => this.close() }, "\u2715")), index.h("div", { key: 'bc3004b96617cc989c5c1d1f39a660829ceaf37b', class: "hero" }, index.h("img", { key: '0b01732603938aff0f9ec5911032e90b20e9e440', class: "avatar", src: avatar, alt: "", onClick: () => typeof this.openOwnProfile === 'function' && this.openOwnProfile() }), index.h("div", { key: '0fb3419e0102105777bfe63b0090cf226e97e804', class: "name" }, this.isEditingName ? this.editedName || this.contactName : this.contactName || 'Unknown'), this.contactEmail ? index.h("div", { class: "email" }, this.contactEmail) : null), index.h("div", { key: 'f140d43fefdc6f1ac258b2223a9ace8444e1e220', class: "section" }, index.h("h4", { key: 'b31611ea9f971e42337e5bc4a80de5dc4368f051' }, "Media"), index.h("div", { key: '7f88774bd7e612427305b444dda71d64a88c4ce4' }, (this.allAttachments || []).length, " items")), index.h("div", { key: '198d3d0193c90d864315b84b0250e6e457eacfae', class: "actions" }, typeof this.handleChatSelect === 'function' ? (index.h("button", { type: "button", onClick: () => this.handleChatSelect() }, "Message")) : null)));
|
|
6376
6477
|
}
|
|
6377
6478
|
};
|
|
6378
6479
|
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 }";
|
|
6379
6480
|
|
|
6380
|
-
const makeAdmin = async (conversationId, userId) => {
|
|
6381
|
-
const response = await index_m.M.getInstance().Conversation.putConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
6382
|
-
return response;
|
|
6383
|
-
};
|
|
6384
|
-
|
|
6385
|
-
const removeAdmin = async (conversationId, userId) => {
|
|
6386
|
-
const response = await index_m.M.getInstance().Conversation.deleteConversationAdmin({conversationId: conversationId, memberId: userId});
|
|
6387
|
-
return response;
|
|
6388
|
-
};
|
|
6389
|
-
|
|
6390
6481
|
const MessageSearch = class {
|
|
6391
6482
|
constructor(hostRef) {
|
|
6392
6483
|
index.registerInstance(this, hostRef);
|
|
@@ -6443,7 +6534,7 @@ const MessageSearch = class {
|
|
|
6443
6534
|
}
|
|
6444
6535
|
render() {
|
|
6445
6536
|
const results = this.searchedMessageDetails || [];
|
|
6446
|
-
return (index.h("div", { key: '
|
|
6537
|
+
return (index.h("div", { key: '991a3aab62e0de33ad78a6fc12f2877b9dcb119b', class: "panel", onClick: e => e.stopPropagation() }, index.h("div", { key: 'c33084e8cede5b2722b7e8abc2096ea11e1da7d9', class: "header" }, index.h("button", { key: '5d37359264c899a926eba4f4085a2e7036c5911f', class: "icon-btn", type: "button", "aria-label": "Close", onClick: () => this.closeSearch() }, index.h("img", { key: 'a3663ac6fe3ec8219c5df8cd9130e2acdf6ed0c9', class: "theme-icon", src: cancel.CancelIcon, alt: "" })), index.h("h3", { key: 'a9cbdc0cfa4814189852d8b57bcd4bcc20db41dd', class: "title" }, "Search messages")), index.h("div", { key: '9a940abd01df7b290747cbb0aa1e30ac02b34fba', class: "search-wrap" }, index.h("div", { key: 'c872e78b1c380faef04a373a7f692b7b02e7effe', class: "search-bar" }, index.h("img", { key: 'fcb9b448a8053ff49eaee65d644b034a7c8e60af', class: "theme-icon search-icon", src: chatAssets.Search, alt: "" }), index.h("input", { key: 'eab5cdb1a8e1ccfb063cb3e9f47e1e76073c1130', type: "text", placeholder: "Search", value: this.searchValue, onInput: this.onInput, autofocus: true }), this.searchValue ? (index.h("button", { class: "clear-btn", type: "button", "aria-label": "Clear", onClick: this.clearInput }, index.h("img", { class: "theme-icon", src: cancel.CancelIcon, alt: "" }))) : null)), index.h("div", { key: 'af8a7bd79ae5975ab876c8c19114a285dec80bcb', class: "results" }, this.isLoadingMessage ? (index.h("div", { class: "empty" }, index.h("spinner-loader", { height: "15px", width: "15px" }))) : results.length === 0 ? (index.h("div", { class: "empty" }, index.h("p", null, this.searchValue ? 'No results found' : 'Search for messages'))) : (results.map(message => (index.h("div", { class: "row", onClick: () => this.handleResultClick(message.messageId) }, index.h("span", { class: "date" }, this.formatDate(message.sentAt)), index.h("span", { class: "body" }, this.highlight(message.body)))))))));
|
|
6447
6538
|
}
|
|
6448
6539
|
};
|
|
6449
6540
|
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); }";
|
|
@@ -6701,7 +6792,7 @@ const ChatLoadingPlaceholder = class {
|
|
|
6701
6792
|
}
|
|
6702
6793
|
render() {
|
|
6703
6794
|
const pct = Math.max(0, Math.min(100, Number(this.progress) || 0));
|
|
6704
|
-
return (index.h("div", { key: '
|
|
6795
|
+
return (index.h("div", { key: '1d94ae77a3b84334f8baccfc56ce2626d49fbe5c', class: "box" }, index.h("div", { key: 'c5e6ee763f846855de73c4dfd3a11712ab67e179', class: "logo", innerHTML: IsometrikLogo.isometrikLogo }), index.h("div", { key: 'b0406f8e134260c4a6ca950d86628c4206a51e0e', class: "bar" }, index.h("div", { key: '3f1e832c8a3c18bcf627562b31a742f77f99f893', class: "fill", style: { width: `${pct}%` } })), index.h("div", { key: '01787478f77aa07380c661e54e7144a335252224', class: "pct" }, pct, "%")));
|
|
6705
6796
|
}
|
|
6706
6797
|
};
|
|
6707
6798
|
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 }";
|
|
@@ -6792,7 +6883,7 @@ const MessageInfo = class {
|
|
|
6792
6883
|
render() {
|
|
6793
6884
|
const delivery = this.deliveryUserList || [];
|
|
6794
6885
|
const read = this.readUserList || [];
|
|
6795
|
-
return (index.h("div", { key: '
|
|
6886
|
+
return (index.h("div", { key: '8cbb260b458f09271cd6b1675b65d25b518a5b62', class: "panel" }, index.h("div", { key: '5a985b94d89e5a4197cb62e11cdf18f1bdc1871d', class: "header" }, index.h("button", { key: 'db8c9ed3526898872e1f368c7ec5ba09addb5cad', class: "close-btn", type: "button", "aria-label": "Close", title: "Close", onClick: () => this.close() }, index.h("img", { key: '083f8274705e283259aae905deaa436e5f4b245f', class: "theme-icon", src: cancel.CancelIcon, alt: "" })), index.h("h2", { key: 'a058a67fdacca067d745bdb50cbd7b8a816fa29e' }, "Message info")), index.h("div", { key: '55b49021b93e4083a2fda96a185ebd5c42d95025', class: "body" }, index.h("div", { key: '6c1d2b82c79b070909448af67538582e9f8d378b', class: "preview-wrap" }, index.h("div", { key: '1515cfcb240da83d3c7f190e2dcf9d082e9add0d', class: "preview-bubble" }, index.h("p", { key: '70df9dd2a094607d3d19eff09559ab8a5199cf1a', class: "preview-text" }, this.previewText()), index.h("div", { key: 'c85a9579c7071ccb31b92752cf1f5d5cae2be107', class: "preview-meta" }, index.h("span", { key: 'da4b0fb14e4704778ee2dae312418bdb5d3f7bd7' }, this.bubbleTime())))), index.h("div", { key: '1413b77d30d10cdce084d6ea98e4bfd5c5b97aac', class: "status-list" }, index.h("div", { key: '66f72522b946e8331c18dcbb17252b205ac4c962', class: "status-row" }, this.ticksIcon('read'), index.h("div", { key: '389e7a90d1c4b68641ed70b09f0780e4e74cc041', class: "status-content" }, index.h("div", { key: 'ee49e7669508a13c75672148127d691a0019a192', class: "status-title" }, "Read"), index.h("p", { key: '500268878c0716daea5124d781b26a4861fed4d4', class: "status-time" }, this.formatTime(this.messageReadTime)), read.map(u => (index.h("div", { class: "user-row" }, index.h("profile-avatar", { src: u.userProfileImageUrl || '', name: u.userName || '', size: "2rem" }), index.h("span", { class: "user-name" }, u.userName)))))), index.h("div", { key: 'faddbe446898e96d1d8b7d37a44d019ed7ccd30e', class: "status-row" }, this.ticksIcon('delivered'), index.h("div", { key: '72953384928b55b8d6c6864b26250b2d4c2f7aa0', class: "status-content" }, index.h("div", { key: '8bb0a893faa9bef1c99c4eef221446044193d02c', class: "status-title" }, "Delivered"), index.h("p", { key: '8baa9cf3f7e8973c03a5526371dab136e8895659', class: "status-time" }, this.formatTime(this.messageDeliveryTime)), delivery.map(u => (index.h("div", { class: "user-row" }, index.h("profile-avatar", { src: u.userProfileImageUrl || '', name: u.userName || '', size: "2rem" }), index.h("span", { class: "user-name" }, u.userName))))))))));
|
|
6796
6887
|
}
|
|
6797
6888
|
};
|
|
6798
6889
|
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); }";
|
|
@@ -6823,7 +6914,7 @@ const IncomingTextMessageBubble = class {
|
|
|
6823
6914
|
this.showReactionOnHover = false;
|
|
6824
6915
|
}
|
|
6825
6916
|
render() {
|
|
6826
|
-
return (index.h("message-bubble", { key: '
|
|
6917
|
+
return (index.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 }, index.h("div", { key: 'a69f51b6c043a1baec73ed1b068792ff2ccacce6', style: { fontFamily: this.fontFamily, color: this.color, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, messageBodyRender.renderMessageBody(this.textContent, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), false))));
|
|
6827
6918
|
}
|
|
6828
6919
|
};
|
|
6829
6920
|
IncomingTextMessageBubble.style = ":host { display: block; max-width: 80%; margin-left: 10px; }";
|
|
@@ -6844,7 +6935,7 @@ const MessageDatePill = class {
|
|
|
6844
6935
|
this.content = '';
|
|
6845
6936
|
}
|
|
6846
6937
|
render() {
|
|
6847
|
-
return (index.h("span", { key: '
|
|
6938
|
+
return (index.h("span", { key: '9ba025a7d2726e79e9cc52353787434e7ee414f4', class: "pill", style: {
|
|
6848
6939
|
background: this.bgColor,
|
|
6849
6940
|
color: this.textColor,
|
|
6850
6941
|
width: this.width,
|
|
@@ -6889,7 +6980,7 @@ const OutgoingTextMessageBubble = class {
|
|
|
6889
6980
|
this.fontFamily = 'var(--font-primary)';
|
|
6890
6981
|
}
|
|
6891
6982
|
render() {
|
|
6892
|
-
return (index.h("message-bubble", { key: '
|
|
6983
|
+
return (index.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' }, index.h("div", { key: '00b057946676eccc6bb97dfe223398ab4806673f', style: { fontFamily: this.fontFamily, color: this.textColor, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, messageBodyRender.renderMessageBody(this.textContent, this.mentionedUsers, u => messageBodyRender.emitTagUser(this.tagUserClick, u), true))));
|
|
6893
6984
|
}
|
|
6894
6985
|
};
|
|
6895
6986
|
OutgoingTextMessageBubble.style = ":host { display: block; max-width: 80%; margin-right: 10px; }";
|
|
@@ -6947,7 +7038,7 @@ const ReplyMessageContainer = class {
|
|
|
6947
7038
|
render() {
|
|
6948
7039
|
const parentBody = this.parentMessageBody || this.parentmessageBody || this.repliedMessage || '';
|
|
6949
7040
|
const parentName = this.parentMessageSenderName || this.senderName || 'Reply';
|
|
6950
|
-
return (index.h("message-bubble", { key: '
|
|
7041
|
+
return (index.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 }, index.h("div", { key: '016db93d605068afc6c51d16eccc8b9dd89821b9', class: "quote", onClick: e => { var _a; return (_a = this.onMediaClick) === null || _a === void 0 ? void 0 : _a.call(this, e); } }, index.h("div", { key: 'c4acc4bd04ec7279baeb6aaad48098bacb9888e9', class: "quote-sender" }, parentName), index.h("div", { key: '72a4c0a1a561666d78b3c8a9de2cfefaa86aa96a', class: "quote-body" }, parentBody), this.parentMessageMediaUrl ? (index.h("img", { class: "quote-media", src: this.parentMessageMediaUrl, alt: "" })) : null), index.h("div", { key: 'eceb7aa34cc3482cc31ce9e60d575cf8dcb2c731', class: "reply-body", style: { color: this.color, fontSize: this.fontSize, whiteSpace: 'pre-wrap', wordBreak: 'break-word' } }, this.messageBody)));
|
|
6951
7042
|
}
|
|
6952
7043
|
};
|
|
6953
7044
|
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; }";
|
|
@@ -7130,21 +7221,39 @@ const WebChatBody = class {
|
|
|
7130
7221
|
};
|
|
7131
7222
|
this.putReadAll = async () => {
|
|
7132
7223
|
var _a, _b;
|
|
7133
|
-
|
|
7134
|
-
|
|
7224
|
+
if (!this.selectedConversationId)
|
|
7225
|
+
return;
|
|
7226
|
+
const hasUnreadMessages = (_a = this.allMessages) === null || _a === void 0 ? void 0 : _a.some(message => {
|
|
7227
|
+
var _a, _b;
|
|
7228
|
+
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) &&
|
|
7229
|
+
!(message === null || message === void 0 ? void 0 : message.readByAll);
|
|
7230
|
+
});
|
|
7231
|
+
// Always hit the server on open/visible — unread flags on local rows race and miss.
|
|
7232
|
+
try {
|
|
7135
7233
|
await index_m.M.getInstance().message.putRead({ conversationId: this.selectedConversationId });
|
|
7136
|
-
|
|
7234
|
+
}
|
|
7235
|
+
catch (err) {
|
|
7236
|
+
console.warn('[webchat] putRead failed', err);
|
|
7237
|
+
return;
|
|
7238
|
+
}
|
|
7239
|
+
if (hasUnreadMessages) {
|
|
7240
|
+
const newUpdatedAllMessages = (_b = this.allMessages) === null || _b === void 0 ? void 0 : _b.map(message => {
|
|
7241
|
+
var _a, _b;
|
|
7242
|
+
return (message === null || message === void 0 ? void 0 : message.readByAll) != true &&
|
|
7243
|
+
((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)
|
|
7244
|
+
? Object.assign(Object.assign({}, message), { readByAll: true }) : message;
|
|
7245
|
+
});
|
|
7137
7246
|
this.updateAllMessages(newUpdatedAllMessages);
|
|
7138
|
-
this.el.dispatchEvent(new CustomEvent('message-read-status-updated', {
|
|
7139
|
-
bubbles: true,
|
|
7140
|
-
composed: true,
|
|
7141
|
-
detail: {
|
|
7142
|
-
conversationId: this.selectedConversationId,
|
|
7143
|
-
isRead: true,
|
|
7144
|
-
isDelivered: true,
|
|
7145
|
-
},
|
|
7146
|
-
}));
|
|
7147
7247
|
}
|
|
7248
|
+
this.el.dispatchEvent(new CustomEvent('message-read-status-updated', {
|
|
7249
|
+
bubbles: true,
|
|
7250
|
+
composed: true,
|
|
7251
|
+
detail: {
|
|
7252
|
+
conversationId: this.selectedConversationId,
|
|
7253
|
+
isRead: true,
|
|
7254
|
+
isDelivered: true,
|
|
7255
|
+
},
|
|
7256
|
+
}));
|
|
7148
7257
|
};
|
|
7149
7258
|
this.handleVisibilityChange = async () => {
|
|
7150
7259
|
if (document.visibilityState === 'visible') {
|
|
@@ -7760,7 +7869,7 @@ const WebChatBody = class {
|
|
|
7760
7869
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
7761
7870
|
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);
|
|
7762
7871
|
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'));
|
|
7763
|
-
return (index.h("div", { key: '
|
|
7872
|
+
return (index.h("div", { key: '017c85307bdbe5be7616541e79f9822d37238192', class: `chat-body ${this.isChatBodyUnscrollable ? 'unscrollable' : null}` }, this.showScrollButton || this.newMessageNotification && (index.h("div", { key: 'faa75f085f8866011206e9df18c19e70608b73ee', onClick: this.scrollToBottom, style: {
|
|
7764
7873
|
position: 'sticky',
|
|
7765
7874
|
top: '90%',
|
|
7766
7875
|
left: '95%',
|
|
@@ -7774,7 +7883,7 @@ const WebChatBody = class {
|
|
|
7774
7883
|
cursor: 'pointer',
|
|
7775
7884
|
boxShadow: '0 2px 5px rgba(0,0,0,0.2)',
|
|
7776
7885
|
zIndex: '100',
|
|
7777
|
-
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (index.h("div", { key: '
|
|
7886
|
+
} }, ((_f = this.newMessageNotification) === null || _f === void 0 ? void 0 : _f.count) > 0 && (index.h("div", { key: '8d8ce11d2b6a6605123263fdad1c9cbd3cc69c57', style: {
|
|
7778
7887
|
position: 'absolute',
|
|
7779
7888
|
bottom: '22px',
|
|
7780
7889
|
right: '-2px',
|
|
@@ -7788,7 +7897,7 @@ const WebChatBody = class {
|
|
|
7788
7897
|
justifyContent: 'center',
|
|
7789
7898
|
fontSize: '12px',
|
|
7790
7899
|
padding: '0 4px',
|
|
7791
|
-
} })), index.h("svg", { key: '
|
|
7900
|
+
} })), index.h("svg", { key: '8e151339669a3cb217c5a2dc8d91ed505b5bc19e', width: "20px", height: "30px", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '03721744e4913ee969fd54b8fbe56f56df430a2b', d: "M12 5V19M12 19L19 12M12 19L5 12", stroke: "var(--text-primary-color)", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" })))), shouldShowPlaceholder && (index.h("div", { key: '6ad033ccc314f2e9405c2a70c344535797401d75', style: {
|
|
7792
7901
|
display: 'flex',
|
|
7793
7902
|
flexDirection: 'column',
|
|
7794
7903
|
alignItems: 'center',
|
|
@@ -7798,7 +7907,7 @@ const WebChatBody = class {
|
|
|
7798
7907
|
textAlign: 'center',
|
|
7799
7908
|
color: 'var(--text-secondary-color)',
|
|
7800
7909
|
marginTop: '20px',
|
|
7801
|
-
} }, index.h("img", { key: '
|
|
7910
|
+
} }, index.h("img", { key: 'ed586743164aa9421c3fa670d41490ea6348c6ba', src: NoMessagePlaceholder, alt: "No messages", style: { width: '200px', height: '200px' } }), index.h("div", { key: 'ae7b72d55f359fa4499dd0389780fd3eea42c5d1', style: { display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '10px' } }, index.h("span", { key: 'c8646251c1736ffcfc1f57d66d3e39aa1d0c2661', style: { fontSize: '24px', color: 'var(--text-primary-color)' } }, "No messages"), index.h("span", { key: '6f26a1c1449f381d7d18fd09caebbf14d2db6958', style: { fontSize: '16px', color: 'var(--text-secondary-color)' } }, "Send a \"Hi\" and make someone's day brighter!")))), this.isMessagesLoading && (index.h("spinner-loader", { key: '17eb012be71eac04a736212baea3ebf611825ddf', 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 &&
|
|
7802
7911
|
((_h = this.userMetaData) === null || _h === void 0 ? void 0 : _h.userId) &&
|
|
7803
7912
|
(() => {
|
|
7804
7913
|
const total = this.allMessages.length;
|