@mobilon-dev/chotto 0.3.121 → 0.3.123
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 +59 -40
- 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 +35 -22
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -30
- 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/DeletedMessageIcon.vue.js +11 -17
- 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/VerifiedBadge.vue.js +19 -25
- package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +402 -552
- 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 +46 -12
- 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 -62
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +98 -80
- 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 +45 -76
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -100
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +91 -16
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -79
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +111 -88
- 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 +58 -32
- 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 +35 -41
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +314 -131
- 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 +68 -36
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +37 -71
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +62 -83
- 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 +42 -22
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -460
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +499 -181
- 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/DelimiterMessage/DelimiterMessage.vue.js +4 -47
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +46 -37
- 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/FeedReplyQuote/FeedReplyQuote.vue.js +4 -52
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +39 -16
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -270
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +274 -95
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -409
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +422 -143
- 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 -57
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +69 -41
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +4 -97
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +173 -102
- 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 +118 -34
- 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 -94
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +76 -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 -348
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +339 -97
- 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 -308
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +299 -89
- 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 -321
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +338 -96
- 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 +19 -36
- 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 -170
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +336 -239
- package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +25 -43
- 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 +166 -256
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +39 -57
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +4 -185
- package/dist/components/3_compounds/Feed/Feed.vue2.js +314 -161
- package/dist/components/3_compounds/Feed/composables/useFeedScroll.js +19 -17
- 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 -33
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +59 -90
- package/dist/types/src/components/3_compounds/Feed/composables/useFeedScroll.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,34 +1,52 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useMessageActions as
|
|
13
|
-
import { useMessageHoverActions as
|
|
14
|
-
import { useMessageReactionsInFeed as
|
|
15
|
-
import { useMessageMenuActions as
|
|
16
|
-
import { useMessageLinks as
|
|
17
|
-
import { useChannelAccentColor as
|
|
18
|
-
import { useSubtextTooltip as
|
|
19
|
-
import { useStartReply as
|
|
20
|
-
import { useTheme as
|
|
1
|
+
import { defineComponent as as, inject as ns, ref as b, computed as r, watch as K, nextTick as Q, onMounted as ls, onUnmounted as os, createElementBlock as o, openBlock as l, normalizeStyle as j, normalizeClass as k, unref as a, createCommentVNode as i, createElementVNode as m, createBlock as p, createVNode as v, withCtx as M, createTextVNode as is, toDisplayString as R, Fragment as O, renderList as ms, withModifiers as A, Transition as L, Teleport as ke } from "vue";
|
|
2
|
+
import us from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import rs from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import gs from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import cs from "../FeedReplyQuote/FeedReplyQuote.vue.js";
|
|
6
|
+
import ds from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
7
|
+
import vs from "../MessageReactions/MessageReactions.vue.js";
|
|
8
|
+
import Me from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
9
|
+
import fs from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
10
|
+
import bs from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
11
|
+
import ys from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
12
|
+
import { useMessageActions as hs } from "../../../hooks/messages/useMessageActions.js";
|
|
13
|
+
import { useMessageHoverActions as ps } from "../../../hooks/messages/useMessageHoverActions.js";
|
|
14
|
+
import { useMessageReactionsInFeed as ws } from "../../../hooks/messages/useMessageReactionsInFeed.js";
|
|
15
|
+
import { useMessageMenuActions as ks } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
16
|
+
import { useMessageLinks as Ms } from "../../../hooks/messages/useMessageLinks.js";
|
|
17
|
+
import { useChannelAccentColor as Rs } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
18
|
+
import { useSubtextTooltip as xs } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
19
|
+
import { useStartReply as Is } from "../../../hooks/messages/useStartReply.js";
|
|
20
|
+
import { useTheme as Cs } from "../../../hooks/useTheme.js";
|
|
21
21
|
/* empty css */
|
|
22
22
|
/* empty css */
|
|
23
23
|
import "../../../locale/useLocale.js";
|
|
24
24
|
/* empty css */
|
|
25
|
-
import { buildReplyPayload as
|
|
26
|
-
import { getImageMessageItems as
|
|
27
|
-
import { getStatus as
|
|
28
|
-
import { getMessageClass as
|
|
29
|
-
import { createReactionHandlers as
|
|
25
|
+
import { buildReplyPayload as Re } from "../../../hooks/messages/buildReplyPayload.js";
|
|
26
|
+
import { getImageMessageItems as Ts } from "../../../hooks/messages/getImageMessageItems.js";
|
|
27
|
+
import { getStatus as Ss, getStatusTitle as As } from "../../../functions/getStatusMessage.js";
|
|
28
|
+
import { getMessageClass as Ls } from "../../../functions/getMessageClass.js";
|
|
29
|
+
import { createReactionHandlers as Es } from "../../../functions/createReactionHandlers.js";
|
|
30
30
|
import "../../../functions/parseMarkdown.js";
|
|
31
|
-
const
|
|
31
|
+
const Us = ["messageId"], Ps = ["src"], js = {
|
|
32
|
+
key: 1,
|
|
33
|
+
class: "image-message__subtext"
|
|
34
|
+
}, Os = { class: "image-message__info-container" }, Bs = {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "image-message__time"
|
|
37
|
+
}, Fs = ["onClick"], Ns = ["src", "alt"], zs = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "image-message__album-overflow"
|
|
40
|
+
}, Hs = {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "image-message__blur-wrapper"
|
|
43
|
+
}, Vs = ["src", "alt"], $s = ["src", "alt"], Ds = ["src", "alt"], Ws = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "image-message__info-container"
|
|
46
|
+
}, _s = { class: "image-message__time" }, qs = ["innerHTML"], Ks = { class: "image-message__modal-body" }, Qs = ["src", "alt"], Gs = {
|
|
47
|
+
key: 2,
|
|
48
|
+
class: "image-message__modal-counter"
|
|
49
|
+
}, B = 4, Ct = /* @__PURE__ */ as({
|
|
32
50
|
__name: "ImageMessage",
|
|
33
51
|
props: {
|
|
34
52
|
message: {
|
|
@@ -50,7 +68,7 @@ const f = 4, Kt = /* @__PURE__ */ Fe({
|
|
|
50
68
|
reactionsMode: {
|
|
51
69
|
type: String,
|
|
52
70
|
default: "single",
|
|
53
|
-
validator: (
|
|
71
|
+
validator: (e) => ["single", "multi"].includes(e)
|
|
54
72
|
},
|
|
55
73
|
currentUserId: {
|
|
56
74
|
type: [String, Number],
|
|
@@ -72,119 +90,118 @@ const f = 4, Kt = /* @__PURE__ */ Fe({
|
|
|
72
90
|
}
|
|
73
91
|
},
|
|
74
92
|
emits: ["action", "reply", "sms-invite"],
|
|
75
|
-
setup(
|
|
76
|
-
|
|
77
|
-
const A = Ne("chatAppId"), { getTheme: oe } = ct(A || ""), { menuActions: O } = it(() => t.message), { hoverActionsEnabled: ae, reactionsActive: C } = ot(
|
|
93
|
+
setup(e, { emit: xe }) {
|
|
94
|
+
const G = ns("chatAppId"), { getTheme: J } = Cs(G || ""), { menuActions: E } = ks(() => t.message), { hoverActionsEnabled: Ie, reactionsActive: X } = ps(
|
|
78
95
|
() => t.channel,
|
|
79
96
|
() => t.reactionsEnabled,
|
|
80
97
|
() => t.message
|
|
81
|
-
), { startReply:
|
|
82
|
-
const
|
|
83
|
-
return (
|
|
84
|
-
}),
|
|
85
|
-
var
|
|
86
|
-
return ((
|
|
87
|
-
}),
|
|
88
|
-
var
|
|
89
|
-
return ((
|
|
90
|
-
}),
|
|
91
|
-
function
|
|
92
|
-
|
|
98
|
+
), { startReply: Ce } = Is(G || ""), t = e, F = xe, x = b(!1), y = b(0), g = r(() => Ts(t.message)), d = r(() => g.value.length > 1), N = r(() => g.value.slice(0, B)), z = r(() => Math.max(0, g.value.length - B)), Te = r(() => String(Math.min(g.value.length, B))), H = r(() => {
|
|
99
|
+
const s = g.value[0];
|
|
100
|
+
return (s == null ? void 0 : s.imagePreviewUrl) || (s == null ? void 0 : s.url) || "";
|
|
101
|
+
}), V = r(() => g.value[y.value] || g.value[0]), Se = r(() => {
|
|
102
|
+
var s;
|
|
103
|
+
return ((s = V.value) == null ? void 0 : s.url) || "";
|
|
104
|
+
}), $ = r(() => {
|
|
105
|
+
var s;
|
|
106
|
+
return ((s = V.value) == null ? void 0 : s.filename) || t.message.alt;
|
|
107
|
+
}), Ae = r(() => d.value ? $.value || `${y.value + 1} / ${g.value.length}` : $.value);
|
|
108
|
+
function Y(s) {
|
|
109
|
+
y.value = s, x.value = !0;
|
|
93
110
|
}
|
|
94
|
-
function
|
|
95
|
-
|
|
111
|
+
function Le() {
|
|
112
|
+
d.value || Y(0);
|
|
96
113
|
}
|
|
97
|
-
function
|
|
98
|
-
const
|
|
99
|
-
|
|
114
|
+
function Ee(s) {
|
|
115
|
+
const n = z.value > 0 && s === N.value.length - 1;
|
|
116
|
+
Y(n ? B : s);
|
|
100
117
|
}
|
|
101
|
-
function
|
|
102
|
-
const
|
|
103
|
-
|
|
118
|
+
function Z() {
|
|
119
|
+
const s = g.value.length;
|
|
120
|
+
s < 2 || (y.value = (y.value - 1 + s) % s);
|
|
104
121
|
}
|
|
105
|
-
function
|
|
106
|
-
const
|
|
107
|
-
|
|
122
|
+
function ee() {
|
|
123
|
+
const s = g.value.length;
|
|
124
|
+
s < 2 || (y.value = (y.value + 1) % s);
|
|
108
125
|
}
|
|
109
|
-
function
|
|
110
|
-
!
|
|
126
|
+
function D(s) {
|
|
127
|
+
!x.value || !d.value || (s.key === "ArrowLeft" ? (s.preventDefault(), Z()) : s.key === "ArrowRight" && (s.preventDefault(), ee()));
|
|
111
128
|
}
|
|
112
|
-
|
|
113
|
-
|
|
129
|
+
K(x, (s) => {
|
|
130
|
+
s ? window.addEventListener("keydown", D) : window.removeEventListener("keydown", D);
|
|
114
131
|
});
|
|
115
132
|
const {
|
|
116
|
-
isOpenMenu:
|
|
117
|
-
buttonMenuVisible:
|
|
118
|
-
menuAnchorRef:
|
|
119
|
-
menuRef:
|
|
120
|
-
menuStyle:
|
|
121
|
-
menuTheme:
|
|
122
|
-
showMenu:
|
|
123
|
-
hideMenu:
|
|
124
|
-
openMenu:
|
|
125
|
-
toggleMenu:
|
|
126
|
-
onMenuMouseEnter:
|
|
127
|
-
onMenuMouseLeave:
|
|
128
|
-
clickAction:
|
|
129
|
-
viewsAction:
|
|
130
|
-
handleClickReplied:
|
|
131
|
-
} =
|
|
132
|
-
onReply: () =>
|
|
133
|
-
}),
|
|
134
|
-
|
|
135
|
-
() =>
|
|
133
|
+
isOpenMenu: Ue,
|
|
134
|
+
buttonMenuVisible: se,
|
|
135
|
+
menuAnchorRef: Pe,
|
|
136
|
+
menuRef: je,
|
|
137
|
+
menuStyle: Oe,
|
|
138
|
+
menuTheme: Be,
|
|
139
|
+
showMenu: Fe,
|
|
140
|
+
hideMenu: Ne,
|
|
141
|
+
openMenu: ze,
|
|
142
|
+
toggleMenu: te,
|
|
143
|
+
onMenuMouseEnter: He,
|
|
144
|
+
onMenuMouseLeave: Ve,
|
|
145
|
+
clickAction: $e,
|
|
146
|
+
viewsAction: ae,
|
|
147
|
+
handleClickReplied: De
|
|
148
|
+
} = hs(t.message, F, {
|
|
149
|
+
onReply: () => Ce(Re(t.message, "message.image"))
|
|
150
|
+
}), I = b(!1), { linkedHtml: ne, inNewWindow: le } = Ms(() => t.message.text), w = b(null), f = b(null), C = b(0), W = b(0);
|
|
151
|
+
K(
|
|
152
|
+
() => ne.value,
|
|
136
153
|
() => {
|
|
137
|
-
|
|
138
|
-
|
|
154
|
+
T(), Q(() => {
|
|
155
|
+
c && f.value && c.observe(f.value);
|
|
139
156
|
});
|
|
140
157
|
}
|
|
141
158
|
);
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
|
|
159
|
+
const T = () => {
|
|
160
|
+
Q(() => {
|
|
161
|
+
w.value && (C.value = w.value.offsetWidth), f.value && (W.value = f.value.offsetWidth);
|
|
145
162
|
});
|
|
146
163
|
};
|
|
147
|
-
let
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}),
|
|
152
|
-
}),
|
|
153
|
-
|
|
154
|
-
}),
|
|
164
|
+
let c = null, U = null;
|
|
165
|
+
ls(() => {
|
|
166
|
+
T(), U = () => T(), window.addEventListener("resize", U), typeof ResizeObserver < "u" && (c = new ResizeObserver(() => {
|
|
167
|
+
T();
|
|
168
|
+
}), w.value && c.observe(w.value), f.value && c.observe(f.value));
|
|
169
|
+
}), os(() => {
|
|
170
|
+
U && window.removeEventListener("resize", U), c && c.disconnect(), window.removeEventListener("keydown", D);
|
|
171
|
+
}), K(
|
|
155
172
|
() => [t.message.text, t.message.url, t.message.imagePreviewUrl, t.message.items],
|
|
156
173
|
() => {
|
|
157
|
-
|
|
158
|
-
|
|
174
|
+
T(), Q(() => {
|
|
175
|
+
c && (c.disconnect(), w.value && c.observe(w.value), f.value && c.observe(f.value));
|
|
159
176
|
});
|
|
160
177
|
},
|
|
161
178
|
{ immediate: !0 }
|
|
162
179
|
);
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
},
|
|
170
|
-
|
|
180
|
+
const oe = r(() => d.value ? !1 : !!t.message.text && W.value > C.value && C.value > 0), We = () => {
|
|
181
|
+
Fe(), I.value = !0;
|
|
182
|
+
}, ie = (s) => {
|
|
183
|
+
Ne(s), se.value || (I.value = !1);
|
|
184
|
+
}, _e = () => {
|
|
185
|
+
Ve(), I.value = !1;
|
|
186
|
+
}, me = r(() => t.message.reply && t.message.text ? "0" : t.message.text ? W.value > C.value && C.value > 0 ? "0" : "var(--chotto-imagemessage-preview-with-caption-border-radius, 7px 7px 0 0)" : t.message.reply ? "var(--chotto-imagemessage-preview-with-reply-border-radius, 0 0 7px 7px)" : "var(--chotto-imagemessage-preview-border-radius, 7px)"), ue = r(() => Ss(t.message.status)), re = r(() => As(t.message.status, t.message.statusMsg)), { bubbleStyle: qe } = Rs(
|
|
187
|
+
r(() => t.message),
|
|
171
188
|
{ cssVariable: "--chotto-imagemessage-right-bg", position: "right" }
|
|
172
189
|
);
|
|
173
|
-
function
|
|
174
|
-
return
|
|
190
|
+
function _(s) {
|
|
191
|
+
return Ls(s.position, "image-message");
|
|
175
192
|
}
|
|
176
|
-
const
|
|
177
|
-
|
|
178
|
-
},
|
|
179
|
-
var
|
|
180
|
-
const
|
|
181
|
-
if (
|
|
193
|
+
const Ke = () => {
|
|
194
|
+
x.value = !1;
|
|
195
|
+
}, Qe = r(() => x.value ? V.value : g.value[0]), Ge = async () => {
|
|
196
|
+
var n, u;
|
|
197
|
+
const s = Qe.value;
|
|
198
|
+
if (s != null && s.url)
|
|
182
199
|
try {
|
|
183
|
-
const
|
|
200
|
+
const h = await fetch(s.url, {
|
|
184
201
|
headers: {
|
|
185
202
|
Accept: "image/*"
|
|
186
203
|
}
|
|
187
|
-
}),
|
|
204
|
+
}), he = h.headers.get("content-type") || "", es = await h.blob(), q = ((u = (n = s.url.split(".").pop()) == null ? void 0 : n.split("?")[0]) == null ? void 0 : u.toLowerCase()) || "", ss = {
|
|
188
205
|
"image/jpeg": "jpg",
|
|
189
206
|
"image/jpg": "jpg",
|
|
190
207
|
"image/png": "png",
|
|
@@ -193,48 +210,310 @@ const f = 4, Kt = /* @__PURE__ */ Fe({
|
|
|
193
210
|
"image/svg+xml": "svg",
|
|
194
211
|
"image/bmp": "bmp"
|
|
195
212
|
};
|
|
196
|
-
let
|
|
197
|
-
const
|
|
198
|
-
|
|
199
|
-
} catch (
|
|
200
|
-
console.error("Ошибка при скачивании изображения:",
|
|
213
|
+
let pe = q && ["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp"].includes(q) ? q : ss[he] || "jpg";
|
|
214
|
+
const P = s.filename || t.message.alt, ts = P ? P.includes(".") ? P : `${P}.${pe}` : `image-${t.message.messageId}.${pe}`, we = window.URL.createObjectURL(es), S = document.createElement("a");
|
|
215
|
+
S.href = we, S.download = ts, document.body.appendChild(S), S.click(), document.body.removeChild(S), window.URL.revokeObjectURL(we);
|
|
216
|
+
} catch (h) {
|
|
217
|
+
console.error("Ошибка при скачивании изображения:", h);
|
|
201
218
|
}
|
|
202
|
-
}, { onToggleReaction:
|
|
203
|
-
var
|
|
204
|
-
const
|
|
205
|
-
return
|
|
206
|
-
}), { showReactions:
|
|
219
|
+
}, { onToggleReaction: ge, onAddReaction: ce, onRemoveReaction: de } = Es(F), ve = b(null), fe = b(null), Je = r(() => {
|
|
220
|
+
var n;
|
|
221
|
+
const s = (n = fe.value) == null ? void 0 : n.$el;
|
|
222
|
+
return s instanceof HTMLElement ? s : null;
|
|
223
|
+
}), { showReactions: Xe, onContentPointerEnter: be, onContentPointerLeave: ye } = ws({
|
|
207
224
|
message: () => t.message,
|
|
208
225
|
messageId: () => t.message.messageId,
|
|
209
226
|
reactions: () => t.message.reactions,
|
|
210
|
-
reactionsActive:
|
|
227
|
+
reactionsActive: X,
|
|
211
228
|
reactionsMode: () => t.reactionsMode,
|
|
212
|
-
reply: () =>
|
|
213
|
-
menuEnabled: () =>
|
|
214
|
-
contentRef:
|
|
215
|
-
chipsRef:
|
|
229
|
+
reply: () => Re(t.message, "message.image"),
|
|
230
|
+
menuEnabled: () => E.value.length > 0,
|
|
231
|
+
contentRef: ve,
|
|
232
|
+
chipsRef: Je,
|
|
216
233
|
handlers: {
|
|
217
|
-
onToggleReaction:
|
|
218
|
-
onAddReaction:
|
|
219
|
-
onRemoveReaction:
|
|
220
|
-
onMenu:
|
|
234
|
+
onToggleReaction: ge,
|
|
235
|
+
onAddReaction: ce,
|
|
236
|
+
onRemoveReaction: de,
|
|
237
|
+
onMenu: ze
|
|
221
238
|
}
|
|
222
|
-
}),
|
|
223
|
-
function
|
|
224
|
-
|
|
239
|
+
}), Ye = xs(() => t.message, () => t.subtextTooltipData);
|
|
240
|
+
function Ze() {
|
|
241
|
+
F("sms-invite", t.message);
|
|
225
242
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
243
|
+
return (s, n) => (l(), o("div", {
|
|
244
|
+
ref_key: "menuAnchorRef",
|
|
245
|
+
ref: Pe,
|
|
246
|
+
class: k(["image-message", [
|
|
247
|
+
_(e.message),
|
|
248
|
+
e.applyStyle(e.message)
|
|
249
|
+
]]),
|
|
250
|
+
messageId: e.message.messageId,
|
|
251
|
+
style: j(a(qe)),
|
|
252
|
+
onMouseleave: ie
|
|
253
|
+
}, [
|
|
254
|
+
e.message.avatar && e.isFirstInSeries ? (l(), o("img", {
|
|
255
|
+
key: 0,
|
|
256
|
+
class: "image-message__avatar",
|
|
257
|
+
src: e.message.avatar,
|
|
258
|
+
height: "32",
|
|
259
|
+
width: "32"
|
|
260
|
+
}, null, 8, Ps)) : i("", !0),
|
|
261
|
+
e.message.subText && e.isFirstInSeries ? (l(), o("p", js, [
|
|
262
|
+
v(ys, {
|
|
263
|
+
text: a(Ye),
|
|
264
|
+
position: e.message.position === "left" ? "right" : "left",
|
|
265
|
+
offset: 8
|
|
266
|
+
}, {
|
|
267
|
+
default: M(() => [
|
|
268
|
+
is(R(e.message.subText), 1)
|
|
269
|
+
]),
|
|
270
|
+
_: 1
|
|
271
|
+
}, 8, ["text", "position"])
|
|
272
|
+
])) : i("", !0),
|
|
273
|
+
m("div", {
|
|
274
|
+
ref_key: "contentRef",
|
|
275
|
+
ref: ve,
|
|
276
|
+
class: k(["image-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar, "has-caption": !!e.message.text }]),
|
|
277
|
+
onPointerenter: n[3] || (n[3] = //@ts-ignore
|
|
278
|
+
(...u) => a(be) && a(be)(...u)),
|
|
279
|
+
onPointerleave: n[4] || (n[4] = //@ts-ignore
|
|
280
|
+
(...u) => a(ye) && a(ye)(...u))
|
|
281
|
+
}, [
|
|
282
|
+
n[8] || (n[8] = m("div", {
|
|
283
|
+
class: "image-message__bottom-shadow",
|
|
284
|
+
"aria-hidden": "true"
|
|
285
|
+
}, null, -1)),
|
|
286
|
+
e.message.deleted ? (l(), o(O, { key: 0 }, [
|
|
287
|
+
v(bs),
|
|
288
|
+
m("div", Os, [
|
|
289
|
+
e.message.time ? (l(), o("span", Bs, R(e.message.time), 1)) : i("", !0),
|
|
290
|
+
v(Me, {
|
|
291
|
+
"base-class": "image-message",
|
|
292
|
+
"message-class": _(e.message),
|
|
293
|
+
"message-status": e.message.status,
|
|
294
|
+
"status-class": ue.value,
|
|
295
|
+
"status-title": re.value
|
|
296
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
297
|
+
])
|
|
298
|
+
], 64)) : (l(), o(O, { key: 1 }, [
|
|
299
|
+
e.message.reply ? (l(), p(cs, {
|
|
300
|
+
key: 0,
|
|
301
|
+
style: { margin: "10px 10px 4px 16px" },
|
|
302
|
+
class: k(e.message.position),
|
|
303
|
+
message: e.message.reply,
|
|
304
|
+
onReply: a(De)
|
|
305
|
+
}, null, 8, ["class", "message", "onReply"])) : i("", !0),
|
|
306
|
+
m("div", {
|
|
307
|
+
class: k(["image-message__preview-button", {
|
|
308
|
+
"image-message__preview-button--blur-edges": oe.value,
|
|
309
|
+
"image-message__preview-button--album": d.value
|
|
310
|
+
}]),
|
|
311
|
+
style: j(d.value ? { borderRadius: me.value } : void 0),
|
|
312
|
+
onClick: Le,
|
|
313
|
+
onMouseenter: We,
|
|
314
|
+
onMouseleave: ie
|
|
315
|
+
}, [
|
|
316
|
+
d.value ? (l(), o("div", {
|
|
317
|
+
key: 0,
|
|
318
|
+
class: k(["image-message__album", "image-message__album--" + Te.value])
|
|
319
|
+
}, [
|
|
320
|
+
(l(!0), o(O, null, ms(N.value, (u, h) => (l(), o("button", {
|
|
321
|
+
key: (u.url || "") + "-" + h,
|
|
322
|
+
type: "button",
|
|
323
|
+
class: "image-message__album-tile",
|
|
324
|
+
onClick: A((he) => Ee(h), ["stop"])
|
|
325
|
+
}, [
|
|
326
|
+
m("img", {
|
|
327
|
+
class: "image-message__album-image",
|
|
328
|
+
src: u.imagePreviewUrl || u.url,
|
|
329
|
+
alt: u.filename
|
|
330
|
+
}, null, 8, Ns),
|
|
331
|
+
z.value > 0 && h === N.value.length - 1 ? (l(), o("span", zs, "+" + R(z.value), 1)) : i("", !0)
|
|
332
|
+
], 8, Fs))), 128))
|
|
333
|
+
], 2)) : (l(), o(O, { key: 1 }, [
|
|
334
|
+
oe.value ? (l(), o("div", Hs, [
|
|
335
|
+
m("img", {
|
|
336
|
+
class: "image-message__blur-left",
|
|
337
|
+
src: H.value,
|
|
338
|
+
alt: e.message.alt
|
|
339
|
+
}, null, 8, Vs),
|
|
340
|
+
m("img", {
|
|
341
|
+
class: "image-message__blur-right",
|
|
342
|
+
src: H.value,
|
|
343
|
+
alt: e.message.alt
|
|
344
|
+
}, null, 8, $s)
|
|
345
|
+
])) : i("", !0),
|
|
346
|
+
m("img", {
|
|
347
|
+
ref_key: "imageRef",
|
|
348
|
+
ref: w,
|
|
349
|
+
class: "image-message__preview-image",
|
|
350
|
+
style: j({ borderRadius: me.value }),
|
|
351
|
+
src: H.value,
|
|
352
|
+
alt: e.message.alt
|
|
353
|
+
}, null, 12, Ds)
|
|
354
|
+
], 64)),
|
|
355
|
+
v(L, { name: "modal-fade" }, {
|
|
356
|
+
default: M(() => [
|
|
357
|
+
I.value ? (l(), o("div", Ws, [
|
|
358
|
+
e.message.views ? (l(), o("div", {
|
|
359
|
+
key: 0,
|
|
360
|
+
class: "image-message__views",
|
|
361
|
+
onClick: n[0] || (n[0] = A(
|
|
362
|
+
//@ts-ignore
|
|
363
|
+
(...u) => a(ae) && a(ae)(...u),
|
|
364
|
+
["stop"]
|
|
365
|
+
))
|
|
366
|
+
}, [
|
|
367
|
+
n[5] || (n[5] = m("span", { class: "pi pi-eye" }, null, -1)),
|
|
368
|
+
m("p", null, R(e.message.views), 1)
|
|
369
|
+
])) : i("", !0),
|
|
370
|
+
m("span", _s, R(e.message.time), 1),
|
|
371
|
+
v(Me, {
|
|
372
|
+
"base-class": "image-message",
|
|
373
|
+
"message-class": _(e.message),
|
|
374
|
+
"message-status": e.message.status,
|
|
375
|
+
"status-class": ue.value,
|
|
376
|
+
"status-title": re.value
|
|
377
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
378
|
+
])) : i("", !0)
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
}),
|
|
382
|
+
v(L, { name: "modal-fade" }, {
|
|
383
|
+
default: M(() => [
|
|
384
|
+
I.value ? (l(), o("button", {
|
|
385
|
+
key: 0,
|
|
386
|
+
class: "image-message__download-button",
|
|
387
|
+
onClick: A(Ge, ["stop"])
|
|
388
|
+
}, [...n[6] || (n[6] = [
|
|
389
|
+
m("span", { class: "pi pi-download" }, null, -1)
|
|
390
|
+
])])) : i("", !0)
|
|
391
|
+
]),
|
|
392
|
+
_: 1
|
|
393
|
+
})
|
|
394
|
+
], 38),
|
|
395
|
+
v(L, { name: "modal-fade" }, {
|
|
396
|
+
default: M(() => [
|
|
397
|
+
a(se) && a(E).length && !e.reactionsEnabled && a(Ie) ? (l(), o("button", {
|
|
398
|
+
key: 0,
|
|
399
|
+
class: "image-message__menu-button",
|
|
400
|
+
onClick: n[1] || (n[1] = //@ts-ignore
|
|
401
|
+
(...u) => a(te) && a(te)(...u))
|
|
402
|
+
}, [...n[7] || (n[7] = [
|
|
403
|
+
m("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
404
|
+
])])) : i("", !0)
|
|
405
|
+
]),
|
|
406
|
+
_: 1
|
|
407
|
+
}),
|
|
408
|
+
(l(), p(ke, { to: "body" }, [
|
|
409
|
+
v(L, { name: "context-menu" }, {
|
|
410
|
+
default: M(() => [
|
|
411
|
+
a(Ue) && a(E).length ? (l(), p(us, {
|
|
412
|
+
key: 0,
|
|
413
|
+
ref_key: "menuRef",
|
|
414
|
+
ref: je,
|
|
415
|
+
class: "image-message__context-menu message-actions-menu",
|
|
416
|
+
style: j(a(Oe)),
|
|
417
|
+
"data-theme": a(Be),
|
|
418
|
+
actions: a(E),
|
|
419
|
+
onClick: a($e),
|
|
420
|
+
onMouseenter: a(He),
|
|
421
|
+
onMouseleave: _e
|
|
422
|
+
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter"])) : i("", !0)
|
|
423
|
+
]),
|
|
424
|
+
_: 1
|
|
425
|
+
})
|
|
426
|
+
])),
|
|
427
|
+
e.message.text ? (l(), o("div", {
|
|
428
|
+
key: 1,
|
|
429
|
+
ref_key: "textRef",
|
|
430
|
+
ref: f,
|
|
431
|
+
class: "image-message__text-container"
|
|
432
|
+
}, [
|
|
433
|
+
m("p", {
|
|
434
|
+
onClick: n[2] || (n[2] = //@ts-ignore
|
|
435
|
+
(...u) => a(le) && a(le)(...u)),
|
|
436
|
+
innerHTML: a(ne)
|
|
437
|
+
}, null, 8, qs)
|
|
438
|
+
], 512)) : i("", !0),
|
|
439
|
+
v(fs, {
|
|
440
|
+
status: e.message.status,
|
|
441
|
+
"has-messenger-account": e.message.hasMessengerAccount,
|
|
442
|
+
channel: e.channel,
|
|
443
|
+
onSmsInvite: Ze
|
|
444
|
+
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
445
|
+
e.message.linkPreview ? (l(), p(rs, {
|
|
446
|
+
key: 2,
|
|
447
|
+
class: k(["image-message__link-preview", e.message.position]),
|
|
448
|
+
"link-preview": e.message.linkPreview
|
|
449
|
+
}, null, 8, ["class", "link-preview"])) : i("", !0),
|
|
450
|
+
e.message.embed ? (l(), p(gs, {
|
|
451
|
+
key: 3,
|
|
452
|
+
class: k(e.message.position),
|
|
453
|
+
embed: e.message.embed
|
|
454
|
+
}, null, 8, ["class", "embed"])) : i("", !0),
|
|
455
|
+
a(Xe) ? (l(), p(vs, {
|
|
456
|
+
key: 4,
|
|
457
|
+
ref_key: "reactionsRef",
|
|
458
|
+
ref: fe,
|
|
459
|
+
reactions: e.message.reactions,
|
|
460
|
+
"message-id": e.message.messageId,
|
|
461
|
+
enabled: a(X),
|
|
462
|
+
mode: e.reactionsMode,
|
|
463
|
+
"current-user-id": e.currentUserId,
|
|
464
|
+
"reaction-user-names": e.reactionUserNames,
|
|
465
|
+
onToggleReaction: a(ge),
|
|
466
|
+
onAddReaction: a(ce),
|
|
467
|
+
onRemoveReaction: a(de)
|
|
468
|
+
}, null, 8, ["reactions", "message-id", "enabled", "mode", "current-user-id", "reaction-user-names", "onToggleReaction", "onAddReaction", "onRemoveReaction"])) : i("", !0)
|
|
469
|
+
], 64))
|
|
470
|
+
], 34),
|
|
471
|
+
(l(), p(ke, { to: "body" }, [
|
|
472
|
+
v(L, { name: "modal-fade" }, {
|
|
473
|
+
default: M(() => [
|
|
474
|
+
x.value && !e.message.deleted ? (l(), p(ds, {
|
|
475
|
+
key: 0,
|
|
476
|
+
"data-theme": a(J)().theme ? a(J)().theme : "light",
|
|
477
|
+
title: Ae.value,
|
|
478
|
+
onClose: Ke
|
|
479
|
+
}, {
|
|
480
|
+
default: M(() => [
|
|
481
|
+
m("div", Ks, [
|
|
482
|
+
d.value ? (l(), o("button", {
|
|
483
|
+
key: 0,
|
|
484
|
+
type: "button",
|
|
485
|
+
class: "image-message__modal-nav image-message__modal-nav--prev",
|
|
486
|
+
"aria-label": "Предыдущее изображение",
|
|
487
|
+
onClick: A(Z, ["stop"])
|
|
488
|
+
}, [...n[9] || (n[9] = [
|
|
489
|
+
m("span", { class: "pi pi-chevron-left" }, null, -1)
|
|
490
|
+
])])) : i("", !0),
|
|
491
|
+
m("img", {
|
|
492
|
+
class: "image-message__modal-image",
|
|
493
|
+
src: Se.value,
|
|
494
|
+
alt: $.value
|
|
495
|
+
}, null, 8, Qs),
|
|
496
|
+
d.value ? (l(), o("button", {
|
|
497
|
+
key: 1,
|
|
498
|
+
type: "button",
|
|
499
|
+
class: "image-message__modal-nav image-message__modal-nav--next",
|
|
500
|
+
"aria-label": "Следующее изображение",
|
|
501
|
+
onClick: A(ee, ["stop"])
|
|
502
|
+
}, [...n[10] || (n[10] = [
|
|
503
|
+
m("span", { class: "pi pi-chevron-right" }, null, -1)
|
|
504
|
+
])])) : i("", !0),
|
|
505
|
+
d.value ? (l(), o("span", Gs, R(y.value + 1) + " / " + R(g.value.length), 1)) : i("", !0)
|
|
506
|
+
])
|
|
507
|
+
]),
|
|
508
|
+
_: 1
|
|
509
|
+
}, 8, ["data-theme", "title"])) : i("", !0)
|
|
510
|
+
]),
|
|
511
|
+
_: 1
|
|
512
|
+
})
|
|
513
|
+
]))
|
|
514
|
+
], 46, Us));
|
|
236
515
|
}
|
|
237
516
|
});
|
|
238
517
|
export {
|
|
239
|
-
|
|
518
|
+
Ct as default
|
|
240
519
|
};
|