@mobilon-dev/chotto 0.3.98 → 0.3.99
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/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +4 -29
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +61 -42
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +4 -47
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +82 -55
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +51 -86
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -32
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +28 -7
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +38 -22
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -33
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +4 -37
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +21 -7
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +19 -30
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +4 -70
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +108 -76
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +13 -26
- package/dist/components/1_icons/CloseButtonIcon.vue.js +10 -16
- package/dist/components/1_icons/CloseIcon.vue.js +10 -16
- package/dist/components/1_icons/ContactCRMIcon.vue.js +10 -16
- package/dist/components/1_icons/MenuIcon.vue.js +10 -16
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
- package/dist/components/1_icons/SearchIcon.vue.js +17 -29
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
- package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +396 -546
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +13 -19
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +4 -74
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +42 -8
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -61
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +96 -79
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +51 -80
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -182
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +135 -25
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -78
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +95 -73
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +60 -34
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +33 -39
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +311 -134
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +24 -52
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +67 -35
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +38 -72
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +57 -76
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +39 -19
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -458
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +471 -160
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -60
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +53 -36
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -250
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +233 -67
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -315
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +319 -98
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -155
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +212 -110
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +120 -36
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -75
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +63 -10
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -346
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +307 -73
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +269 -65
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +298 -76
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +18 -35
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
- package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -85
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +210 -149
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +163 -253
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +32 -50
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +4 -172
- package/dist/components/3_compounds/Feed/Feed.vue2.js +257 -126
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +18 -31
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +56 -85
- package/package.json +1 -1
|
@@ -1,185 +1,362 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getStatus as
|
|
1
|
+
import { defineComponent as Bt, inject as Vt, useId as Ht, ref as M, computed as u, watch as Nt, onMounted as Ut, nextTick as U, onUnmounted as Dt, createElementBlock as a, openBlock as o, createElementVNode as m, createCommentVNode as r, withModifiers as Ft, normalizeClass as D, normalizeStyle as tt, createVNode as F, withCtx as P, toDisplayString as f, createBlock as d, resolveDynamicComponent as et, unref as h, Teleport as Pt, Fragment as Rt, renderList as Wt } from "vue";
|
|
2
|
+
import { getStatus as Xt, statuses as Yt } from "../../../functions/getStatusMessage.js";
|
|
3
3
|
import "../../../functions/parseMarkdown.js";
|
|
4
4
|
import { t as S } from "../../../locale/useLocale.js";
|
|
5
|
-
import { getChatDraft as
|
|
5
|
+
import { getChatDraft as $t } from "../../../hooks/useMessageDraft.js";
|
|
6
6
|
import "../../../hooks/useSearchModel.js";
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import { useEmojiNative as
|
|
7
|
+
import { useTheme as jt } from "../../../hooks/useTheme.js";
|
|
8
|
+
import { useEmojiNative as zt } from "../../../hooks/useEmojiNative.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
13
13
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
14
|
-
import { textToAppleEmojiHtml as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
const
|
|
14
|
+
import { textToAppleEmojiHtml as R, textContainsEmoji as nt } from "../../../functions/renderAppleEmojis.js";
|
|
15
|
+
import it from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
16
|
+
import Ot from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
|
|
17
|
+
import qt from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
18
|
+
import Gt from "../../1_icons/AvatarIcon.vue.js";
|
|
19
|
+
import Jt from "../../1_icons/MessageStatus/ErrorStatusIcon.vue.js";
|
|
20
|
+
import Kt from "../../1_icons/MessageStatus/PendingStatusIcon.vue.js";
|
|
21
|
+
import Qt from "../../1_icons/MessageStatus/ReadStatusIcon.vue.js";
|
|
22
|
+
import Zt from "../../1_icons/MessageStatus/ReceivedStatusIcon.vue.js";
|
|
23
|
+
import te from "../../1_icons/MessageStatus/SentStatusIcon.vue.js";
|
|
24
|
+
import ot from "./icons/AudioIcon.vue.js";
|
|
25
|
+
import W from "./icons/FileIcon.vue.js";
|
|
26
|
+
import ct from "./icons/ImageIcon.vue.js";
|
|
27
|
+
import ee from "./icons/MissedCallIcon.vue.js";
|
|
28
|
+
import X from "./icons/StickerIcon.vue.js";
|
|
29
|
+
import at from "./icons/VideoIcon.vue.js";
|
|
30
|
+
import st from "./icons/VoiceIcon.vue.js";
|
|
31
|
+
const ne = { class: "chat-item__avatar-container" }, ie = ["src"], oe = {
|
|
32
|
+
key: 1,
|
|
33
|
+
class: "chat-item__avatar-placeholder"
|
|
34
|
+
}, ce = { class: "chat-item__info-container" }, ae = ["innerHTML"], se = {
|
|
35
|
+
key: 1,
|
|
36
|
+
class: "chat-item__name"
|
|
37
|
+
}, re = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "chat-item__last-message"
|
|
40
|
+
}, le = {
|
|
41
|
+
key: 1,
|
|
42
|
+
class: "chat-item__last-message-text chat-item__last-message-text--draft"
|
|
43
|
+
}, ue = { class: "chat-item__draft-label" }, me = ["innerHTML"], de = {
|
|
44
|
+
key: 2,
|
|
45
|
+
class: "chat-item__draft-text"
|
|
46
|
+
}, he = ["innerHTML"], fe = {
|
|
47
|
+
key: 3,
|
|
48
|
+
class: "chat-item__last-message-text"
|
|
49
|
+
}, ve = { class: "chat-item__details-container" }, ge = {
|
|
50
|
+
key: 0,
|
|
51
|
+
class: "chat-item__time"
|
|
52
|
+
}, ye = { class: "chat-item__status-unread-container" }, pe = {
|
|
53
|
+
key: 1,
|
|
54
|
+
class: "chat-item__unread"
|
|
55
|
+
}, _e = {
|
|
56
|
+
key: 2,
|
|
57
|
+
class: "chat-item__status-chat-container"
|
|
58
|
+
}, ke = {
|
|
59
|
+
key: 0,
|
|
60
|
+
class: "chat-item__fixed pi pi-thumbtack"
|
|
61
|
+
}, xe = {
|
|
62
|
+
key: 0,
|
|
63
|
+
id: "noSelectButton",
|
|
64
|
+
class: "chat-item__menu-button"
|
|
65
|
+
}, we = {
|
|
66
|
+
key: 1,
|
|
67
|
+
id: "noSelectButton",
|
|
68
|
+
class: "chat-item__menu-button"
|
|
69
|
+
}, Ce = {
|
|
70
|
+
key: 0,
|
|
71
|
+
class: "dialog__container"
|
|
72
|
+
}, Ie = ["onClick"], Te = ["src"], Me = {
|
|
73
|
+
key: 1,
|
|
74
|
+
class: "dialog__icon pi pi-user"
|
|
75
|
+
}, Ee = { class: "dialog__text-container" }, Le = { class: "dialog__name" }, Se = { class: "dialog__time" }, sn = /* @__PURE__ */ Bt({
|
|
32
76
|
__name: "ChatItem",
|
|
33
77
|
props: {
|
|
34
|
-
chat: {
|
|
35
|
-
showDialogs: { type: Boolean,
|
|
36
|
-
contextMenuTrigger: {
|
|
78
|
+
chat: {},
|
|
79
|
+
showDialogs: { type: Boolean, default: !0 },
|
|
80
|
+
contextMenuTrigger: { default: "hover" }
|
|
37
81
|
},
|
|
38
82
|
emits: ["select", "action", "expand"],
|
|
39
|
-
setup(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
i.id !== "context-menu-rightclick-" + a && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
|
|
83
|
+
setup(c, { emit: rt }) {
|
|
84
|
+
const b = Vt("chatAppId"), { getTheme: Y } = jt(b), { isNative: $ } = zt(b), n = c, E = rt, y = Ht(), p = M(!1), k = M(!1), A = M(!1), lt = M(null), ut = () => {
|
|
85
|
+
A.value = !0;
|
|
86
|
+
}, mt = (t) => {
|
|
87
|
+
A.value || t.target instanceof HTMLElement && t.target.id != "noSelectButton" && E("select", { chat: n.chat, dialog: null }), A.value = !1;
|
|
88
|
+
}, dt = (t) => {
|
|
89
|
+
E("select", { chat: n.chat, dialog: t });
|
|
90
|
+
}, ht = () => n.chat.isSelected ? "chat-item__selected" : "", ft = (t) => t.isSelected ? "dialog__selected" : "", j = (t) => {
|
|
91
|
+
n.contextMenuTrigger === "rightClick" && B(), E("action", { chat: n.chat, ...t });
|
|
92
|
+
}, B = () => {
|
|
93
|
+
const t = document.getElementById("context-menu-rightclick-" + y);
|
|
94
|
+
t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none"), k.value = !1;
|
|
95
|
+
}, vt = () => {
|
|
96
|
+
document.querySelectorAll('[id^="context-menu-rightclick-"]').forEach((e) => {
|
|
97
|
+
const i = e;
|
|
98
|
+
i.id !== "context-menu-rightclick-" + y && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
|
|
56
99
|
});
|
|
57
|
-
},
|
|
58
|
-
let
|
|
59
|
-
const
|
|
60
|
-
var
|
|
100
|
+
}, gt = () => n.chat.dialogs ? [...n.chat.dialogs].sort((t, e) => Number(t["lastActivity.timestamp"]) > Number(e["lastActivity.timestamp"]) ? -1 : Number(t["lastActivity.timestamp"]) < Number(e["lastActivity.timestamp"]) ? 1 : (Number(t["lastActivity.timestamp"]) == Number(e["lastActivity.timestamp"]), 0)) : [], yt = u(() => Xt(n.chat["lastMessage.status"])), pt = u(() => n.chat.showEmptyIndicator || n.chat.countUnread > 0), _t = u(() => n.chat.countUnread > 0 ? n.chat.countUnread > 99 ? "99+" : n.chat.countUnread : n.chat.showEmptyIndicator ? "" : void 0);
|
|
101
|
+
let L;
|
|
102
|
+
const _ = M(0), z = [S("component.ChatItem.typing") + ".", S("component.ChatItem.typing") + "..", S("component.ChatItem.typing") + "..."], O = (t) => {
|
|
103
|
+
var l, s, v;
|
|
61
104
|
if (typeof t == "string")
|
|
62
105
|
return t;
|
|
63
106
|
if ((t == null ? void 0 : t.type) === "message.sticker")
|
|
64
107
|
return "Стикер";
|
|
65
108
|
if ((t == null ? void 0 : t.type) === "message.audio")
|
|
66
|
-
return (t.isVoiceMessage || ((
|
|
109
|
+
return (t.isVoiceMessage || ((l = t == null ? void 0 : t.data) == null ? void 0 : l.isVoiceMessage)) === !0 ? "Голосовое сообщение" : "Аудиофайл";
|
|
67
110
|
if ((t == null ? void 0 : t.type) === "message.missedCall")
|
|
68
111
|
return "Пропущенный звонок";
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
71
|
-
return
|
|
72
|
-
const i = (
|
|
112
|
+
const e = (s = t == null ? void 0 : t.data) == null ? void 0 : s.text;
|
|
113
|
+
if (e)
|
|
114
|
+
return e;
|
|
115
|
+
const i = (v = t == null ? void 0 : t.data) == null ? void 0 : v.filename;
|
|
73
116
|
return i || "";
|
|
74
|
-
},
|
|
75
|
-
const t =
|
|
117
|
+
}, kt = (t) => typeof t == "string" ? null : (t == null ? void 0 : t.type) || null, V = S("component.ChatItem.draft"), H = u(() => {
|
|
118
|
+
const t = $t(String(b ?? ""), n.chat.chatId);
|
|
76
119
|
if (!(!t || t.edit) && !(!t.listPreviewText && !t.listPreviewFile) && !(!(t.text || "").trim() && !t.file))
|
|
77
120
|
return t;
|
|
78
|
-
}),
|
|
79
|
-
var
|
|
80
|
-
const t =
|
|
81
|
-
return t ? t.file ? (((
|
|
82
|
-
}),
|
|
83
|
-
const t =
|
|
121
|
+
}), x = u(() => !!H.value), g = u(() => {
|
|
122
|
+
var e;
|
|
123
|
+
const t = H.value;
|
|
124
|
+
return t ? t.file ? (((e = t.listPreviewFile) == null ? void 0 : e.name) || t.file.name || "").trim() : (t.listPreviewText || "").trim() : "";
|
|
125
|
+
}), q = u(() => {
|
|
126
|
+
const t = H.value;
|
|
84
127
|
if (!(t != null && t.file)) return null;
|
|
85
|
-
const
|
|
86
|
-
return i === "sticker" ||
|
|
87
|
-
}),
|
|
88
|
-
var
|
|
89
|
-
if (
|
|
128
|
+
const e = t.listPreviewFile, i = ((e == null ? void 0 : e.type) || t.file.type || "").toLowerCase(), l = ((e == null ? void 0 : e.name) || t.file.name || "").toLowerCase();
|
|
129
|
+
return i === "sticker" || l.endsWith(".tgs") || l.endsWith(".webp") ? X : i === "image" || i.includes("image") ? ct : i === "video" || i.includes("video") ? at : i === "audio" || i.includes("audio") ? l.includes("voice") || l.includes("голос") ? st : ot : i === "file" || l ? W : W;
|
|
130
|
+
}), xt = u(() => R(g.value || "")), G = u(() => {
|
|
131
|
+
var e, i, l;
|
|
132
|
+
if (n.chat.typing || x.value)
|
|
90
133
|
return null;
|
|
91
|
-
const t =
|
|
134
|
+
const t = kt(n.chat.lastMessage);
|
|
92
135
|
if (!t)
|
|
93
136
|
return null;
|
|
94
137
|
if (t === "message.sticker")
|
|
95
|
-
return
|
|
138
|
+
return X;
|
|
96
139
|
if (t === "message.image")
|
|
97
|
-
return
|
|
140
|
+
return ct;
|
|
98
141
|
if (t === "message.video")
|
|
99
|
-
return
|
|
142
|
+
return at;
|
|
100
143
|
if (t === "message.audio") {
|
|
101
|
-
const
|
|
102
|
-
return (
|
|
144
|
+
const s = n.chat.lastMessage;
|
|
145
|
+
return (s.isVoiceMessage || ((e = s == null ? void 0 : s.data) == null ? void 0 : e.isVoiceMessage)) === !0 ? st : ot;
|
|
103
146
|
}
|
|
104
147
|
if (t === "message.missedCall")
|
|
105
|
-
return
|
|
148
|
+
return ee;
|
|
106
149
|
if (t === "message.file") {
|
|
107
|
-
const
|
|
108
|
-
return
|
|
150
|
+
const s = n.chat.lastMessage, v = ((l = (i = s == null ? void 0 : s.data) == null ? void 0 : i.filename) == null ? void 0 : l.toLowerCase()) || "";
|
|
151
|
+
return v.endsWith(".tgs") || v.endsWith(".webp") ? X : W;
|
|
109
152
|
}
|
|
110
153
|
return null;
|
|
111
|
-
}),
|
|
112
|
-
() =>
|
|
113
|
-
),
|
|
114
|
-
() =>
|
|
115
|
-
),
|
|
116
|
-
|
|
117
|
-
() =>
|
|
154
|
+
}), wt = u(() => n.chat.typing ? z[_.value] : x.value ? g.value ? `${V} ${g.value}` : V : O(n.chat.lastMessage)), N = u(() => n.chat.typing ? z[_.value] : O(n.chat.lastMessage)), J = u(
|
|
155
|
+
() => !$.value && nt(g.value || N.value || "")
|
|
156
|
+
), Ct = u(
|
|
157
|
+
() => !$.value && nt(n.chat.name || "")
|
|
158
|
+
), It = u(() => R(N.value || "")), Tt = u(() => R(n.chat.name || ""));
|
|
159
|
+
Nt(
|
|
160
|
+
() => n.chat.typing,
|
|
118
161
|
() => {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}, 1e3) : (
|
|
162
|
+
n.chat.typing ? L = setInterval(() => {
|
|
163
|
+
_.value < 2 ? _.value += 1 : _.value = 0;
|
|
164
|
+
}, 1e3) : (_.value = 0, L && (clearInterval(L), L = void 0));
|
|
122
165
|
},
|
|
123
166
|
{ immediate: !0 }
|
|
124
167
|
);
|
|
125
|
-
const
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
135
|
-
const i = t.clientX,
|
|
136
|
-
|
|
137
|
-
const
|
|
138
|
-
|
|
139
|
-
const
|
|
140
|
-
let
|
|
141
|
-
|
|
168
|
+
const Mt = () => {
|
|
169
|
+
n.contextMenuTrigger === "hover" && (p.value = !0);
|
|
170
|
+
}, Et = (t) => {
|
|
171
|
+
n.contextMenuTrigger === "hover" && (t.relatedTarget instanceof HTMLElement && t.relatedTarget.className == "context-menu__list" ? p.value = !0 : p.value = !1);
|
|
172
|
+
}, Lt = (t) => {
|
|
173
|
+
n.contextMenuTrigger === "rightClick" && n.chat.actions && St(t);
|
|
174
|
+
}, St = (t) => {
|
|
175
|
+
vt(), k.value = !0, U(() => {
|
|
176
|
+
const e = document.getElementById("context-menu-rightclick-" + y);
|
|
177
|
+
if (e) {
|
|
178
|
+
const i = t.clientX, l = t.clientY;
|
|
179
|
+
e.style.display = "inherit";
|
|
180
|
+
const s = e.getBoundingClientRect();
|
|
181
|
+
e.style.display = "none", U(() => {
|
|
182
|
+
const v = window.innerWidth, Z = window.innerHeight, w = window.scrollX || window.pageXOffset, C = window.scrollY || window.pageYOffset;
|
|
183
|
+
let I = i + w, T = l + C;
|
|
184
|
+
I + s.width > v + w && (I = i + w - s.width), T + s.height > Z + C && (T = l + C - s.height), I < w && (I = w), T < C && (T = C), e.style.top = T + "px", e.style.left = I + "px", e.style.opacity = "1", e.style.display = "inherit";
|
|
142
185
|
});
|
|
143
186
|
}
|
|
144
187
|
});
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
},
|
|
148
|
-
if (
|
|
149
|
-
const
|
|
150
|
-
(!i || !i.contains(
|
|
188
|
+
}, bt = () => {
|
|
189
|
+
}, At = () => {
|
|
190
|
+
}, K = (t) => {
|
|
191
|
+
if (n.contextMenuTrigger === "rightClick" && k.value) {
|
|
192
|
+
const e = t.target, i = document.getElementById("context-menu-rightclick-" + y);
|
|
193
|
+
(!i || !i.contains(e)) && B();
|
|
151
194
|
}
|
|
152
|
-
},
|
|
153
|
-
|
|
195
|
+
}, Q = () => {
|
|
196
|
+
n.contextMenuTrigger === "rightClick" && k.value && B();
|
|
154
197
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const t = document.getElementById("context-menu-rightclick-" +
|
|
198
|
+
return Ut(() => {
|
|
199
|
+
n.contextMenuTrigger === "rightClick" && (document.addEventListener("click", K), window.addEventListener("scroll", Q, !0), U(() => {
|
|
200
|
+
const t = document.getElementById("context-menu-rightclick-" + y);
|
|
158
201
|
t && (t.style.display = "none", t.style.opacity = "0");
|
|
159
202
|
}));
|
|
160
|
-
}),
|
|
161
|
-
document.removeEventListener("click",
|
|
162
|
-
})
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
203
|
+
}), Dt(() => {
|
|
204
|
+
document.removeEventListener("click", K), window.removeEventListener("scroll", Q, !0);
|
|
205
|
+
}), (t, e) => (o(), a("div", null, [
|
|
206
|
+
m("div", {
|
|
207
|
+
ref_key: "containerRef",
|
|
208
|
+
ref: lt,
|
|
209
|
+
class: D(["chat-item__container", ht()]),
|
|
210
|
+
onMouseenter: Mt,
|
|
211
|
+
onMouseleave: Et,
|
|
212
|
+
onClick: mt,
|
|
213
|
+
onContextmenu: Ft(Lt, ["prevent"])
|
|
214
|
+
}, [
|
|
215
|
+
m("div", ne, [
|
|
216
|
+
m("span", {
|
|
217
|
+
class: "chat-item__status-user",
|
|
218
|
+
style: tt({ backgroundColor: n.chat.status })
|
|
219
|
+
}, null, 4),
|
|
220
|
+
n.chat.avatar ? (o(), a("img", {
|
|
221
|
+
key: 0,
|
|
222
|
+
src: n.chat.avatar,
|
|
223
|
+
height: "48",
|
|
224
|
+
width: "48"
|
|
225
|
+
}, null, 8, ie)) : (o(), a("div", oe, [
|
|
226
|
+
F(Gt)
|
|
227
|
+
]))
|
|
228
|
+
]),
|
|
229
|
+
m("div", ce, [
|
|
230
|
+
F(it, {
|
|
231
|
+
text: c.chat.name,
|
|
232
|
+
position: "bottom"
|
|
233
|
+
}, {
|
|
234
|
+
default: P(() => [
|
|
235
|
+
Ct.value ? (o(), a("div", {
|
|
236
|
+
key: 0,
|
|
237
|
+
class: "chat-item__name",
|
|
238
|
+
innerHTML: Tt.value
|
|
239
|
+
}, null, 8, ae)) : (o(), a("div", se, f(c.chat.name), 1))
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}, 8, ["text"]),
|
|
243
|
+
F(it, {
|
|
244
|
+
text: wt.value,
|
|
245
|
+
position: "bottom"
|
|
246
|
+
}, {
|
|
247
|
+
default: P(() => [
|
|
248
|
+
c.chat.lastMessage || c.chat.typing || x.value ? (o(), a("div", re, [
|
|
249
|
+
G.value && !x.value ? (o(), d(et(G.value), {
|
|
250
|
+
key: 0,
|
|
251
|
+
class: "chat-item__message-icon"
|
|
252
|
+
})) : r("", !0),
|
|
253
|
+
x.value ? (o(), a("span", le, [
|
|
254
|
+
m("span", ue, f(h(V)), 1),
|
|
255
|
+
q.value ? (o(), d(et(q.value), {
|
|
256
|
+
key: 0,
|
|
257
|
+
class: "chat-item__message-icon"
|
|
258
|
+
})) : r("", !0),
|
|
259
|
+
g.value && J.value ? (o(), a("span", {
|
|
260
|
+
key: 1,
|
|
261
|
+
class: "chat-item__draft-text",
|
|
262
|
+
innerHTML: xt.value
|
|
263
|
+
}, null, 8, me)) : g.value ? (o(), a("span", de, f(g.value), 1)) : r("", !0)
|
|
264
|
+
])) : J.value ? (o(), a("span", {
|
|
265
|
+
key: 2,
|
|
266
|
+
class: "chat-item__last-message-text",
|
|
267
|
+
innerHTML: It.value
|
|
268
|
+
}, null, 8, he)) : (o(), a("span", fe, f(N.value), 1))
|
|
269
|
+
])) : r("", !0)
|
|
270
|
+
]),
|
|
271
|
+
_: 1
|
|
272
|
+
}, 8, ["text"])
|
|
273
|
+
]),
|
|
274
|
+
m("div", ve, [
|
|
275
|
+
c.chat["lastActivity.time"] && (!c.chat.actions || !p.value) ? (o(), a("div", ge, f(c.chat["lastActivity.time"]), 1)) : r("", !0),
|
|
276
|
+
p.value && c.chat.actions && c.contextMenuTrigger === "hover" ? (o(), d(Ot, {
|
|
277
|
+
key: 1,
|
|
278
|
+
mode: "click",
|
|
279
|
+
"menu-side": "bottom-right",
|
|
280
|
+
actions: c.chat.actions,
|
|
281
|
+
onClick: j,
|
|
282
|
+
onButtonClick: ut,
|
|
283
|
+
onMenuMouseLeave: e[0] || (e[0] = (i) => p.value = !1)
|
|
284
|
+
}, {
|
|
285
|
+
default: P(() => [...e[2] || (e[2] = [
|
|
286
|
+
m("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
|
|
287
|
+
])]),
|
|
288
|
+
_: 1
|
|
289
|
+
}, 8, ["actions"])) : r("", !0),
|
|
290
|
+
(o(), d(Pt, { to: "body" }, [
|
|
291
|
+
c.contextMenuTrigger === "rightClick" && c.chat.actions && k.value ? (o(), d(qt, {
|
|
292
|
+
key: 0,
|
|
293
|
+
id: "context-menu-rightclick-" + h(y),
|
|
294
|
+
actions: c.chat.actions,
|
|
295
|
+
"data-theme": h(Y)().theme ? h(Y)().theme : "light",
|
|
296
|
+
onClick: j,
|
|
297
|
+
onMouseenter: bt,
|
|
298
|
+
onMouseleave: At
|
|
299
|
+
}, null, 8, ["id", "actions", "data-theme"])) : r("", !0)
|
|
300
|
+
])),
|
|
301
|
+
m("div", ye, [
|
|
302
|
+
h(Yt).includes(c.chat["lastMessage.status"]) ? (o(), a("div", {
|
|
303
|
+
key: 0,
|
|
304
|
+
class: D(["chat-item__status-message", yt.value])
|
|
305
|
+
}, [
|
|
306
|
+
c.chat["lastMessage.status"] === "pending" ? (o(), d(h(Kt), { key: 0 })) : c.chat["lastMessage.status"] === "error" ? (o(), d(h(Jt), { key: 1 })) : c.chat["lastMessage.status"] === "read" ? (o(), d(h(Qt), { key: 2 })) : c.chat["lastMessage.status"] === "received" ? (o(), d(h(Zt), { key: 3 })) : (o(), d(h(te), { key: 4 }))
|
|
307
|
+
], 2)) : r("", !0),
|
|
308
|
+
pt.value ? (o(), a("div", pe, f(_t.value), 1)) : r("", !0)
|
|
309
|
+
]),
|
|
310
|
+
c.chat.countUnread < 1 ? (o(), a("div", _e, [
|
|
311
|
+
c.chat.isFixedTop || c.chat.isFixedBottom ? (o(), a("span", ke)) : r("", !0)
|
|
312
|
+
])) : r("", !0)
|
|
313
|
+
]),
|
|
314
|
+
n.showDialogs && c.chat.dialogs ? (o(), a("div", {
|
|
315
|
+
key: 0,
|
|
316
|
+
class: "chat-item__dialog-buttons",
|
|
317
|
+
onClick: e[1] || (e[1] = (i) => E("expand", n.chat))
|
|
318
|
+
}, [
|
|
319
|
+
n.showDialogs && !c.chat.dialogsExpanded ? (o(), a("button", xe, [...e[3] || (e[3] = [
|
|
320
|
+
m("span", {
|
|
321
|
+
id: "noSelectButton",
|
|
322
|
+
class: "pi pi-angle-down"
|
|
323
|
+
}, null, -1)
|
|
324
|
+
])])) : r("", !0),
|
|
325
|
+
n.showDialogs && c.chat.dialogsExpanded ? (o(), a("button", we, [...e[4] || (e[4] = [
|
|
326
|
+
m("span", {
|
|
327
|
+
id: "noSelectButton",
|
|
328
|
+
class: "pi pi-angle-up"
|
|
329
|
+
}, null, -1)
|
|
330
|
+
])])) : r("", !0)
|
|
331
|
+
])) : r("", !0)
|
|
332
|
+
], 34),
|
|
333
|
+
n.showDialogs && c.chat.dialogsExpanded ? (o(), a("div", Ce, [
|
|
334
|
+
(o(!0), a(Rt, null, Wt(gt(), (i) => (o(), a("div", {
|
|
335
|
+
key: i.dialogId,
|
|
336
|
+
class: D(["dialog__item", ft(i)]),
|
|
337
|
+
onClick: (l) => dt(i)
|
|
338
|
+
}, [
|
|
339
|
+
i.icon ? (o(), a("img", {
|
|
340
|
+
key: 0,
|
|
341
|
+
class: "dialog__icon",
|
|
342
|
+
src: i.icon,
|
|
343
|
+
height: "16",
|
|
344
|
+
width: "16"
|
|
345
|
+
}, null, 8, Te)) : (o(), a("span", Me)),
|
|
346
|
+
m("div", Ee, [
|
|
347
|
+
m("div", Le, f(i.name), 1),
|
|
348
|
+
m("div", Se, f(i["lastActivity.time"]), 1)
|
|
349
|
+
]),
|
|
350
|
+
i.countUnread > 0 ? (o(), a("div", {
|
|
351
|
+
key: 2,
|
|
352
|
+
class: "chat-item__unread",
|
|
353
|
+
style: tt(i.colorUnread ? { backgroundColor: i.colorUnread } : {})
|
|
354
|
+
}, f(i.countUnread > 99 ? "99+" : i.countUnread), 5)) : r("", !0)
|
|
355
|
+
], 10, Ie))), 128))
|
|
356
|
+
])) : r("", !0)
|
|
357
|
+
]));
|
|
181
358
|
}
|
|
182
359
|
});
|
|
183
360
|
export {
|
|
184
|
-
|
|
361
|
+
sn as default
|
|
185
362
|
};
|
|
@@ -1,30 +1,24 @@
|
|
|
1
1
|
import { createElementBlock as e, openBlock as t, createElementVNode as r } from "vue";
|
|
2
2
|
import n from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const s = {},
|
|
3
|
+
const s = {}, i = {
|
|
4
4
|
width: "800px",
|
|
5
5
|
height: "800px",
|
|
6
6
|
viewBox: "0 0 24 24",
|
|
7
7
|
fill: "none",
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
return t(), e("svg",
|
|
12
|
-
r(
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"stroke-linejoin": "round"
|
|
20
|
-
},
|
|
21
|
-
null,
|
|
22
|
-
-1
|
|
23
|
-
/* CACHED */
|
|
24
|
-
)
|
|
10
|
+
function c(l, o) {
|
|
11
|
+
return t(), e("svg", i, [...o[0] || (o[0] = [
|
|
12
|
+
r("path", {
|
|
13
|
+
d: "M9 19C9 20.1046 7.65685 21 6 21C4.34315 21 3 20.1046 3 19C3 17.8954 4.34315 17 6 17C7.65685 17 9 17.8954 9 19ZM9 19V5L21 3V17M21 17C21 18.1046 19.6569 19 18 19C16.3431 19 15 18.1046 15 17C15 15.8954 16.3431 15 18 15C19.6569 15 21 15.8954 21 17ZM9 9L21 7",
|
|
14
|
+
stroke: "currentColor",
|
|
15
|
+
"stroke-width": "2",
|
|
16
|
+
"stroke-linecap": "round",
|
|
17
|
+
"stroke-linejoin": "round"
|
|
18
|
+
}, null, -1)
|
|
25
19
|
])]);
|
|
26
20
|
}
|
|
27
|
-
const
|
|
21
|
+
const C = /* @__PURE__ */ n(s, [["render", c]]);
|
|
28
22
|
export {
|
|
29
|
-
|
|
23
|
+
C as default
|
|
30
24
|
};
|
|
@@ -7,31 +7,19 @@ const n = {}, l = {
|
|
|
7
7
|
fill: "none",
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
|
-
function c(
|
|
10
|
+
function c(i, C) {
|
|
11
11
|
return o(), t("svg", l, [...C[0] || (C[0] = [
|
|
12
|
-
e(
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
/* CACHED */
|
|
21
|
-
),
|
|
22
|
-
e(
|
|
23
|
-
"path",
|
|
24
|
-
{
|
|
25
|
-
d: "M9.5 0H4C3.46957 0 2.96086 0.210714 2.58579 0.585786C2.21071 0.960859 2 1.46957 2 2V14C2 14.5304 2.21071 15.0391 2.58579 15.4142C2.96086 15.7893 3.46957 16 4 16H12C12.5304 16 13.0391 15.7893 13.4142 15.4142C13.7893 15.0391 14 14.5304 14 14V4.5L9.5 0ZM9.5 1V3C9.5 3.39782 9.65804 3.77936 9.93934 4.06066C10.2206 4.34196 10.6022 4.5 11 4.5H13V14C13 14.2652 12.8946 14.5196 12.7071 14.7071C12.5196 14.8946 12.2652 15 12 15H4C3.73478 15 3.48043 14.8946 3.29289 14.7071C3.10536 14.5196 3 14.2652 3 14V2C3 1.73478 3.10536 1.48043 3.29289 1.29289C3.48043 1.10536 3.73478 1 4 1H9.5Z",
|
|
26
|
-
fill: "currentColor"
|
|
27
|
-
},
|
|
28
|
-
null,
|
|
29
|
-
-1
|
|
30
|
-
/* CACHED */
|
|
31
|
-
)
|
|
12
|
+
e("path", {
|
|
13
|
+
d: "M5.5 7C5.36739 7 5.24021 7.05268 5.14645 7.14645C5.05268 7.24021 5 7.36739 5 7.5C5 7.63261 5.05268 7.75979 5.14645 7.85355C5.24021 7.94732 5.36739 8 5.5 8H10.5C10.6326 8 10.7598 7.94732 10.8536 7.85355C10.9473 7.75979 11 7.63261 11 7.5C11 7.36739 10.9473 7.24021 10.8536 7.14645C10.7598 7.05268 10.6326 7 10.5 7H5.5ZM5 9.5C5 9.36739 5.05268 9.24021 5.14645 9.14645C5.24021 9.05268 5.36739 9 5.5 9H10.5C10.6326 9 10.7598 9.05268 10.8536 9.14645C10.9473 9.24021 11 9.36739 11 9.5C11 9.63261 10.9473 9.75979 10.8536 9.85355C10.7598 9.94732 10.6326 10 10.5 10H5.5C5.36739 10 5.24021 9.94732 5.14645 9.85355C5.05268 9.75979 5 9.63261 5 9.5ZM5 11.5C5 11.3674 5.05268 11.2402 5.14645 11.1464C5.24021 11.0527 5.36739 11 5.5 11H7.5C7.63261 11 7.75979 11.0527 7.85355 11.1464C7.94732 11.2402 8 11.3674 8 11.5C8 11.6326 7.94732 11.7598 7.85355 11.8536C7.75979 11.9473 7.63261 12 7.5 12H5.5C5.36739 12 5.24021 11.9473 5.14645 11.8536C5.05268 11.7598 5 11.6326 5 11.5Z",
|
|
14
|
+
fill: "currentColor"
|
|
15
|
+
}, null, -1),
|
|
16
|
+
e("path", {
|
|
17
|
+
d: "M9.5 0H4C3.46957 0 2.96086 0.210714 2.58579 0.585786C2.21071 0.960859 2 1.46957 2 2V14C2 14.5304 2.21071 15.0391 2.58579 15.4142C2.96086 15.7893 3.46957 16 4 16H12C12.5304 16 13.0391 15.7893 13.4142 15.4142C13.7893 15.0391 14 14.5304 14 14V4.5L9.5 0ZM9.5 1V3C9.5 3.39782 9.65804 3.77936 9.93934 4.06066C10.2206 4.34196 10.6022 4.5 11 4.5H13V14C13 14.2652 12.8946 14.5196 12.7071 14.7071C12.5196 14.8946 12.2652 15 12 15H4C3.73478 15 3.48043 14.8946 3.29289 14.7071C3.10536 14.5196 3 14.2652 3 14V2C3 1.73478 3.10536 1.48043 3.29289 1.29289C3.48043 1.10536 3.73478 1 4 1H9.5Z",
|
|
18
|
+
fill: "currentColor"
|
|
19
|
+
}, null, -1)
|
|
32
20
|
])]);
|
|
33
21
|
}
|
|
34
|
-
const
|
|
22
|
+
const f = /* @__PURE__ */ r(n, [["render", c]]);
|
|
35
23
|
export {
|
|
36
|
-
|
|
24
|
+
f as default
|
|
37
25
|
};
|