@mobilon-dev/chotto 0.3.96 → 0.3.98
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 +29 -4
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -38
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -2
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +26 -13
- package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
- package/dist/components/1_icons/CloseIcon.vue.js +16 -10
- package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
- package/dist/components/1_icons/MenuIcon.vue.js +16 -10
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
- package/dist/components/1_icons/SearchIcon.vue.js +29 -17
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
- 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 +19 -13
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
- 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 +74 -4
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
- package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
- 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 +31 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
- package/package.json +1 -1
|
@@ -1,362 +1,185 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getStatus as
|
|
1
|
+
import { defineComponent as wt, inject as Ct, useId as Tt, ref as v, computed as r, watch as St, onMounted as Et, nextTick as B, onUnmounted as kt } from "vue";
|
|
2
|
+
import { getStatus as At, statuses as _t } 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 Lt } from "../../../hooks/useMessageDraft.js";
|
|
6
6
|
import "../../../hooks/useSearchModel.js";
|
|
7
|
-
import { useTheme as
|
|
8
|
-
import { useEmojiNative as
|
|
7
|
+
import { useTheme as Mt } from "../../../hooks/useTheme.js";
|
|
8
|
+
import { useEmojiNative as Vt } 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
|
|
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({
|
|
14
|
+
import { textToAppleEmojiHtml as N, textContainsEmoji as F } from "../../../functions/renderAppleEmojis.js";
|
|
15
|
+
import bt from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
16
|
+
import Bt from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
|
|
17
|
+
import Nt from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
18
|
+
import Pt from "../../1_icons/AvatarIcon.vue.js";
|
|
19
|
+
import Ht from "../../1_icons/MessageStatus/ErrorStatusIcon.vue.js";
|
|
20
|
+
import Rt from "../../1_icons/MessageStatus/PendingStatusIcon.vue.js";
|
|
21
|
+
import Ut from "../../1_icons/MessageStatus/ReadStatusIcon.vue.js";
|
|
22
|
+
import jt from "../../1_icons/MessageStatus/ReceivedStatusIcon.vue.js";
|
|
23
|
+
import Dt from "../../1_icons/MessageStatus/SentStatusIcon.vue.js";
|
|
24
|
+
import X from "./icons/AudioIcon.vue.js";
|
|
25
|
+
import P from "./icons/FileIcon.vue.js";
|
|
26
|
+
import Y from "./icons/ImageIcon.vue.js";
|
|
27
|
+
import Wt from "./icons/MissedCallIcon.vue.js";
|
|
28
|
+
import H from "./icons/StickerIcon.vue.js";
|
|
29
|
+
import q from "./icons/VideoIcon.vue.js";
|
|
30
|
+
import O from "./icons/VoiceIcon.vue.js";
|
|
31
|
+
const ye = /* @__PURE__ */ wt({
|
|
76
32
|
__name: "ChatItem",
|
|
77
33
|
props: {
|
|
78
|
-
chat: {},
|
|
79
|
-
showDialogs: { type: Boolean, default: !0 },
|
|
80
|
-
contextMenuTrigger: { default: "hover" }
|
|
34
|
+
chat: { type: Object, required: !0 },
|
|
35
|
+
showDialogs: { type: Boolean, required: !1, default: !0 },
|
|
36
|
+
contextMenuTrigger: { type: String, required: !1, default: "hover" }
|
|
81
37
|
},
|
|
82
38
|
emits: ["select", "action", "expand"],
|
|
83
|
-
setup(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
39
|
+
setup($, { expose: z, emit: G }) {
|
|
40
|
+
z();
|
|
41
|
+
const y = Ct("chatAppId"), { getTheme: J } = Mt(y), { isNative: E } = Vt(y), e = $, x = G, a = Tt(), I = v(!1), m = v(!1), w = v(!1), K = v(null), Q = () => {
|
|
42
|
+
w.value = !0;
|
|
43
|
+
}, Z = (t) => {
|
|
44
|
+
w.value || t.target instanceof HTMLElement && t.target.id != "noSelectButton" && x("select", { chat: e.chat, dialog: null }), w.value = !1;
|
|
45
|
+
}, tt = (t) => {
|
|
46
|
+
x("select", { chat: e.chat, dialog: t });
|
|
47
|
+
}, et = () => e.chat.isSelected ? "chat-item__selected" : "", nt = (t) => t.isSelected ? "dialog__selected" : "", it = (t) => {
|
|
48
|
+
e.contextMenuTrigger === "rightClick" && C(), x("action", { chat: e.chat, ...t });
|
|
49
|
+
}, C = () => {
|
|
50
|
+
const t = document.getElementById("context-menu-rightclick-" + a);
|
|
51
|
+
t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none"), m.value = !1;
|
|
52
|
+
}, R = () => {
|
|
53
|
+
document.querySelectorAll('[id^="context-menu-rightclick-"]').forEach((n) => {
|
|
54
|
+
const i = n;
|
|
55
|
+
i.id !== "context-menu-rightclick-" + a && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
|
|
99
56
|
});
|
|
100
|
-
},
|
|
101
|
-
let
|
|
102
|
-
const
|
|
103
|
-
var
|
|
57
|
+
}, ot = () => e.chat.dialogs ? [...e.chat.dialogs].sort((t, n) => Number(t["lastActivity.timestamp"]) > Number(n["lastActivity.timestamp"]) ? -1 : Number(t["lastActivity.timestamp"]) < Number(n["lastActivity.timestamp"]) ? 1 : (Number(t["lastActivity.timestamp"]) == Number(n["lastActivity.timestamp"]), 0)) : [], rt = r(() => At(e.chat["lastMessage.status"])), ct = r(() => e.chat.showEmptyIndicator || e.chat.countUnread > 0), ut = r(() => e.chat.countUnread > 0 ? e.chat.countUnread > 99 ? "99+" : e.chat.countUnread : e.chat.showEmptyIndicator ? "" : void 0);
|
|
58
|
+
let l;
|
|
59
|
+
const s = v(0), k = [S("component.ChatItem.typing") + ".", S("component.ChatItem.typing") + "..", S("component.ChatItem.typing") + "..."], A = (t) => {
|
|
60
|
+
var c, o, u;
|
|
104
61
|
if (typeof t == "string")
|
|
105
62
|
return t;
|
|
106
63
|
if ((t == null ? void 0 : t.type) === "message.sticker")
|
|
107
64
|
return "Стикер";
|
|
108
65
|
if ((t == null ? void 0 : t.type) === "message.audio")
|
|
109
|
-
return (t.isVoiceMessage || ((
|
|
66
|
+
return (t.isVoiceMessage || ((c = t == null ? void 0 : t.data) == null ? void 0 : c.isVoiceMessage)) === !0 ? "Голосовое сообщение" : "Аудиофайл";
|
|
110
67
|
if ((t == null ? void 0 : t.type) === "message.missedCall")
|
|
111
68
|
return "Пропущенный звонок";
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
114
|
-
return
|
|
115
|
-
const i = (
|
|
69
|
+
const n = (o = t == null ? void 0 : t.data) == null ? void 0 : o.text;
|
|
70
|
+
if (n)
|
|
71
|
+
return n;
|
|
72
|
+
const i = (u = t == null ? void 0 : t.data) == null ? void 0 : u.filename;
|
|
116
73
|
return i || "";
|
|
117
|
-
},
|
|
118
|
-
const t =
|
|
74
|
+
}, U = (t) => typeof t == "string" ? null : (t == null ? void 0 : t.type) || null, _ = S("component.ChatItem.draft"), T = r(() => {
|
|
75
|
+
const t = Lt(String(y ?? ""), e.chat.chatId);
|
|
119
76
|
if (!(!t || t.edit) && !(!t.listPreviewText && !t.listPreviewFile) && !(!(t.text || "").trim() && !t.file))
|
|
120
77
|
return t;
|
|
121
|
-
}),
|
|
122
|
-
var
|
|
123
|
-
const t =
|
|
124
|
-
return t ? t.file ? (((
|
|
125
|
-
}),
|
|
126
|
-
const t =
|
|
78
|
+
}), L = r(() => !!T.value), f = r(() => {
|
|
79
|
+
var n;
|
|
80
|
+
const t = T.value;
|
|
81
|
+
return t ? t.file ? (((n = t.listPreviewFile) == null ? void 0 : n.name) || t.file.name || "").trim() : (t.listPreviewText || "").trim() : "";
|
|
82
|
+
}), st = r(() => {
|
|
83
|
+
const t = T.value;
|
|
127
84
|
if (!(t != null && t.file)) return null;
|
|
128
|
-
const
|
|
129
|
-
return i === "sticker" ||
|
|
130
|
-
}),
|
|
131
|
-
var
|
|
132
|
-
if (
|
|
85
|
+
const n = t.listPreviewFile, i = ((n == null ? void 0 : n.type) || t.file.type || "").toLowerCase(), c = ((n == null ? void 0 : n.name) || t.file.name || "").toLowerCase();
|
|
86
|
+
return i === "sticker" || c.endsWith(".tgs") || c.endsWith(".webp") ? H : i === "image" || i.includes("image") ? Y : i === "video" || i.includes("video") ? q : i === "audio" || i.includes("audio") ? c.includes("voice") || c.includes("голос") ? O : X : i === "file" || c ? P : P;
|
|
87
|
+
}), at = r(() => N(f.value || "")), lt = r(() => {
|
|
88
|
+
var n, i, c;
|
|
89
|
+
if (e.chat.typing || L.value)
|
|
133
90
|
return null;
|
|
134
|
-
const t =
|
|
91
|
+
const t = U(e.chat.lastMessage);
|
|
135
92
|
if (!t)
|
|
136
93
|
return null;
|
|
137
94
|
if (t === "message.sticker")
|
|
138
|
-
return
|
|
95
|
+
return H;
|
|
139
96
|
if (t === "message.image")
|
|
140
|
-
return
|
|
97
|
+
return Y;
|
|
141
98
|
if (t === "message.video")
|
|
142
|
-
return
|
|
99
|
+
return q;
|
|
143
100
|
if (t === "message.audio") {
|
|
144
|
-
const
|
|
145
|
-
return (
|
|
101
|
+
const o = e.chat.lastMessage;
|
|
102
|
+
return (o.isVoiceMessage || ((n = o == null ? void 0 : o.data) == null ? void 0 : n.isVoiceMessage)) === !0 ? O : X;
|
|
146
103
|
}
|
|
147
104
|
if (t === "message.missedCall")
|
|
148
|
-
return
|
|
105
|
+
return Wt;
|
|
149
106
|
if (t === "message.file") {
|
|
150
|
-
const
|
|
151
|
-
return
|
|
107
|
+
const o = e.chat.lastMessage, u = ((c = (i = o == null ? void 0 : o.data) == null ? void 0 : i.filename) == null ? void 0 : c.toLowerCase()) || "";
|
|
108
|
+
return u.endsWith(".tgs") || u.endsWith(".webp") ? H : P;
|
|
152
109
|
}
|
|
153
110
|
return null;
|
|
154
|
-
}),
|
|
155
|
-
() =>
|
|
156
|
-
),
|
|
157
|
-
() =>
|
|
158
|
-
),
|
|
159
|
-
|
|
160
|
-
() =>
|
|
111
|
+
}), mt = r(() => e.chat.typing ? k[s.value] : L.value ? f.value ? `${_} ${f.value}` : _ : A(e.chat.lastMessage)), M = r(() => e.chat.typing ? k[s.value] : A(e.chat.lastMessage)), ft = r(
|
|
112
|
+
() => !E.value && F(f.value || M.value || "")
|
|
113
|
+
), dt = r(
|
|
114
|
+
() => !E.value && F(e.chat.name || "")
|
|
115
|
+
), pt = r(() => N(M.value || "")), ht = r(() => N(e.chat.name || ""));
|
|
116
|
+
St(
|
|
117
|
+
() => e.chat.typing,
|
|
161
118
|
() => {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}, 1e3) : (
|
|
119
|
+
e.chat.typing ? l = setInterval(() => {
|
|
120
|
+
s.value < 2 ? s.value += 1 : s.value = 0;
|
|
121
|
+
}, 1e3) : (s.value = 0, l && (clearInterval(l), l = void 0));
|
|
165
122
|
},
|
|
166
123
|
{ immediate: !0 }
|
|
167
124
|
);
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
},
|
|
171
|
-
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
|
|
176
|
-
const
|
|
177
|
-
if (
|
|
178
|
-
const i = t.clientX,
|
|
179
|
-
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
const
|
|
183
|
-
let
|
|
184
|
-
|
|
125
|
+
const gt = () => {
|
|
126
|
+
e.contextMenuTrigger === "hover" && (I.value = !0);
|
|
127
|
+
}, vt = (t) => {
|
|
128
|
+
e.contextMenuTrigger === "hover" && (t.relatedTarget instanceof HTMLElement && t.relatedTarget.className == "context-menu__list" ? I.value = !0 : I.value = !1);
|
|
129
|
+
}, yt = (t) => {
|
|
130
|
+
e.contextMenuTrigger === "rightClick" && e.chat.actions && j(t);
|
|
131
|
+
}, j = (t) => {
|
|
132
|
+
R(), m.value = !0, B(() => {
|
|
133
|
+
const n = document.getElementById("context-menu-rightclick-" + a);
|
|
134
|
+
if (n) {
|
|
135
|
+
const i = t.clientX, c = t.clientY;
|
|
136
|
+
n.style.display = "inherit";
|
|
137
|
+
const o = n.getBoundingClientRect();
|
|
138
|
+
n.style.display = "none", B(() => {
|
|
139
|
+
const u = window.innerWidth, W = window.innerHeight, d = window.scrollX || window.pageXOffset, p = window.scrollY || window.pageYOffset;
|
|
140
|
+
let h = i + d, g = c + p;
|
|
141
|
+
h + o.width > u + d && (h = i + d - o.width), g + o.height > W + p && (g = c + p - o.height), h < d && (h = d), g < p && (g = p), n.style.top = g + "px", n.style.left = h + "px", n.style.opacity = "1", n.style.display = "inherit";
|
|
185
142
|
});
|
|
186
143
|
}
|
|
187
144
|
});
|
|
188
|
-
},
|
|
189
|
-
},
|
|
190
|
-
},
|
|
191
|
-
if (
|
|
192
|
-
const
|
|
193
|
-
(!i || !i.contains(
|
|
145
|
+
}, xt = () => {
|
|
146
|
+
}, It = () => {
|
|
147
|
+
}, V = (t) => {
|
|
148
|
+
if (e.contextMenuTrigger === "rightClick" && m.value) {
|
|
149
|
+
const n = t.target, i = document.getElementById("context-menu-rightclick-" + a);
|
|
150
|
+
(!i || !i.contains(n)) && C();
|
|
194
151
|
}
|
|
195
|
-
},
|
|
196
|
-
|
|
152
|
+
}, b = () => {
|
|
153
|
+
e.contextMenuTrigger === "rightClick" && m.value && C();
|
|
197
154
|
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
const t = document.getElementById("context-menu-rightclick-" +
|
|
155
|
+
Et(() => {
|
|
156
|
+
e.contextMenuTrigger === "rightClick" && (document.addEventListener("click", V), window.addEventListener("scroll", b, !0), B(() => {
|
|
157
|
+
const t = document.getElementById("context-menu-rightclick-" + a);
|
|
201
158
|
t && (t.style.display = "none", t.style.opacity = "0");
|
|
202
159
|
}));
|
|
203
|
-
}),
|
|
204
|
-
document.removeEventListener("click",
|
|
205
|
-
})
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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
|
-
]));
|
|
160
|
+
}), kt(() => {
|
|
161
|
+
document.removeEventListener("click", V), window.removeEventListener("scroll", b, !0);
|
|
162
|
+
});
|
|
163
|
+
const D = { chatAppId: y, getTheme: J, isNative: E, props: e, emit: x, contextMenuId: a, buttonMenuVisible: I, contextMenuVisible: m, preventEmit: w, containerRef: K, BCMclick: Q, selectChat: Z, selectDialog: tt, getClass: et, getDialogClass: nt, clickAction: it, hideContextMenu: C, closeAllOtherContextMenus: R, getSortedDialogs: ot, status: rt, showChatUnread: ct, chatUnreadText: ut, get timer() {
|
|
164
|
+
return l;
|
|
165
|
+
}, set timer(t) {
|
|
166
|
+
l = t;
|
|
167
|
+
}, typingIndex: s, typingText: k, getLastMessageText: A, getMessageType: U, draftLabel: _, draftSnapshot: T, hasDraftPreview: L, draftPreview: f, draftFileIcon: st, draftTextHtml: at, messageIcon: lt, lastMessageText: mt, showText: M, useAppleEmojisInLastMessage: ft, useAppleEmojisInName: dt, lastMessageHtml: pt, nameHtml: ht, onMouseEnter: gt, onMouseLeave: vt, onRightClick: yt, showContextMenu: j, onContextMenuMouseEnter: xt, onContextMenuMouseLeave: It, handleClickOutside: V, handleScroll: b, get statuses() {
|
|
168
|
+
return _t;
|
|
169
|
+
}, Tooltip: bt, ButtonContextMenu: Bt, ContextMenu: Nt, AvatarIcon: Pt, get ErrorStatusIcon() {
|
|
170
|
+
return Ht;
|
|
171
|
+
}, get PendingStatusIcon() {
|
|
172
|
+
return Rt;
|
|
173
|
+
}, get ReadStatusIcon() {
|
|
174
|
+
return Ut;
|
|
175
|
+
}, get ReceivedStatusIcon() {
|
|
176
|
+
return jt;
|
|
177
|
+
}, get SentStatusIcon() {
|
|
178
|
+
return Dt;
|
|
179
|
+
} };
|
|
180
|
+
return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
|
|
358
181
|
}
|
|
359
182
|
});
|
|
360
183
|
export {
|
|
361
|
-
|
|
184
|
+
ye as default
|
|
362
185
|
};
|
|
@@ -1,24 +1,30 @@
|
|
|
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 = {}, c = {
|
|
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
|
-
|
|
10
|
+
function i(l, o) {
|
|
11
|
+
return t(), e("svg", c, [...o[0] || (o[0] = [
|
|
12
|
+
r(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
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",
|
|
16
|
+
stroke: "currentColor",
|
|
17
|
+
"stroke-width": "2",
|
|
18
|
+
"stroke-linecap": "round",
|
|
19
|
+
"stroke-linejoin": "round"
|
|
20
|
+
},
|
|
21
|
+
null,
|
|
22
|
+
-1
|
|
23
|
+
/* CACHED */
|
|
24
|
+
)
|
|
19
25
|
])]);
|
|
20
26
|
}
|
|
21
|
-
const
|
|
27
|
+
const _ = /* @__PURE__ */ n(s, [["render", i], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue"]]);
|
|
22
28
|
export {
|
|
23
|
-
|
|
29
|
+
_ as default
|
|
24
30
|
};
|
|
@@ -7,19 +7,31 @@ const n = {}, l = {
|
|
|
7
7
|
fill: "none",
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
|
-
function c(
|
|
10
|
+
function c(s, C) {
|
|
11
11
|
return o(), t("svg", l, [...C[0] || (C[0] = [
|
|
12
|
-
e(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
e(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
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",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
},
|
|
18
|
+
null,
|
|
19
|
+
-1
|
|
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
|
+
)
|
|
20
32
|
])]);
|
|
21
33
|
}
|
|
22
|
-
const
|
|
34
|
+
const _ = /* @__PURE__ */ r(n, [["render", c], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue"]]);
|
|
23
35
|
export {
|
|
24
|
-
|
|
36
|
+
_ as default
|
|
25
37
|
};
|