@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,32 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useMessageActions as
|
|
12
|
-
import { useMessageHoverActions as
|
|
13
|
-
import { useMessageReactionsInFeed as
|
|
14
|
-
import { useMessageMenuActions as
|
|
15
|
-
import { useMessageLinks as
|
|
16
|
-
import { useChannelAccentColor as
|
|
17
|
-
import { useSubtextTooltip as
|
|
18
|
-
import { useStartReply as
|
|
1
|
+
import { defineComponent as ye, computed as b, inject as be, ref as D, createElementBlock as m, openBlock as i, unref as t, normalizeStyle as w, normalizeClass as g, createCommentVNode as r, createElementVNode as o, createVNode as d, withCtx as q, createTextVNode as he, toDisplayString as h, Fragment as I, createBlock as f, renderList as ke, withModifiers as we, Teleport as Me, Transition as Re } from "vue";
|
|
2
|
+
import Se from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import Ie from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import Ce from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import Te from "../FeedReplyQuote/FeedReplyQuote.vue.js";
|
|
6
|
+
import pe from "../MessageReactions/MessageReactions.vue.js";
|
|
7
|
+
import z from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
8
|
+
import xe from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
9
|
+
import Ae from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
10
|
+
import Ee from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
11
|
+
import { useMessageActions as Fe } from "../../../hooks/messages/useMessageActions.js";
|
|
12
|
+
import { useMessageHoverActions as Le } from "../../../hooks/messages/useMessageHoverActions.js";
|
|
13
|
+
import { useMessageReactionsInFeed as Pe } from "../../../hooks/messages/useMessageReactionsInFeed.js";
|
|
14
|
+
import { useMessageMenuActions as Ue } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
15
|
+
import { useMessageLinks as Ne } from "../../../hooks/messages/useMessageLinks.js";
|
|
16
|
+
import { useChannelAccentColor as Oe } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
17
|
+
import { useSubtextTooltip as $e } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
18
|
+
import { useStartReply as He } from "../../../hooks/messages/useStartReply.js";
|
|
19
19
|
/* empty css */
|
|
20
20
|
/* empty css */
|
|
21
21
|
import "../../../locale/useLocale.js";
|
|
22
22
|
/* empty css */
|
|
23
|
-
import { buildReplyPayload as
|
|
24
|
-
import { getFileMessageItems as
|
|
25
|
-
import { getStatus as
|
|
26
|
-
import { getMessageClass as
|
|
27
|
-
import { createReactionHandlers as
|
|
23
|
+
import { buildReplyPayload as Q } from "../../../hooks/messages/buildReplyPayload.js";
|
|
24
|
+
import { getFileMessageItems as je } from "../../../hooks/messages/getFileMessageItems.js";
|
|
25
|
+
import { getStatus as Be, getStatusTitle as Ve } from "../../../functions/getStatusMessage.js";
|
|
26
|
+
import { getMessageClass as De } from "../../../functions/getMessageClass.js";
|
|
27
|
+
import { createReactionHandlers as qe } from "../../../functions/createReactionHandlers.js";
|
|
28
28
|
import "../../../functions/parseMarkdown.js";
|
|
29
|
-
const
|
|
29
|
+
const ze = ["messageId"], Qe = ["src"], We = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "file-message__subtext"
|
|
32
|
+
}, Ge = { class: "file-message__footer" }, Je = { class: "file-message__info-container" }, Ke = {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "file-message__time"
|
|
35
|
+
}, Xe = ["href", "onClick"], Ye = { class: "file-message__filename-text" }, Ze = {
|
|
36
|
+
key: 2,
|
|
37
|
+
class: "file-message__text-container"
|
|
38
|
+
}, _e = ["innerHTML"], es = { class: "file-message__footer" }, ss = { class: "file-message__info-container" }, ts = { class: "file-message__time" }, Fs = /* @__PURE__ */ ye({
|
|
30
39
|
__name: "FileMessage",
|
|
31
40
|
props: {
|
|
32
41
|
message: {
|
|
@@ -48,7 +57,7 @@ const st = /* @__PURE__ */ ne({
|
|
|
48
57
|
reactionsMode: {
|
|
49
58
|
type: String,
|
|
50
59
|
default: "single",
|
|
51
|
-
validator: (
|
|
60
|
+
validator: (e) => ["single", "multi"].includes(e)
|
|
52
61
|
},
|
|
53
62
|
currentUserId: {
|
|
54
63
|
type: [String, Number],
|
|
@@ -70,88 +79,258 @@ const st = /* @__PURE__ */ ne({
|
|
|
70
79
|
}
|
|
71
80
|
},
|
|
72
81
|
emits: ["action", "reply", "sms-invite"],
|
|
73
|
-
setup(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return e.message.filename && t === 0 ? e.message.filename : `file-${e.message.messageId}${a.value.length > 1 ? `-${t + 1}` : ""}`;
|
|
82
|
+
setup(e, { emit: W }) {
|
|
83
|
+
const n = e, M = W, c = b(() => je(n.message)), { linkedHtml: G, inNewWindow: C } = Ne(() => n.message.text);
|
|
84
|
+
function T(l) {
|
|
85
|
+
return n.message.filename && l === 0 ? n.message.filename : `file-${n.message.messageId}${c.value.length > 1 ? `-${l + 1}` : ""}`;
|
|
78
86
|
}
|
|
79
|
-
const { menuActions:
|
|
80
|
-
() =>
|
|
81
|
-
() =>
|
|
82
|
-
() =>
|
|
83
|
-
),
|
|
84
|
-
isOpenMenu:
|
|
85
|
-
buttonMenuVisible:
|
|
86
|
-
menuAnchorRef:
|
|
87
|
-
menuRef:
|
|
88
|
-
menuStyle:
|
|
89
|
-
menuTheme:
|
|
90
|
-
showMenu:
|
|
91
|
-
hideMenu:
|
|
92
|
-
openMenu:
|
|
93
|
-
toggleMenu:
|
|
94
|
-
onMenuMouseEnter:
|
|
95
|
-
onMenuMouseLeave:
|
|
96
|
-
clickAction:
|
|
97
|
-
viewsAction:
|
|
98
|
-
handleClickReplied:
|
|
99
|
-
} =
|
|
100
|
-
onReply: () =>
|
|
101
|
-
}),
|
|
102
|
-
|
|
87
|
+
const { menuActions: k } = Ue(() => n.message), { hoverActionsEnabled: p, reactionsActive: x } = Le(
|
|
88
|
+
() => n.channel,
|
|
89
|
+
() => n.reactionsEnabled,
|
|
90
|
+
() => n.message
|
|
91
|
+
), J = be("chatAppId"), { startReply: K } = He(J || ""), {
|
|
92
|
+
isOpenMenu: X,
|
|
93
|
+
buttonMenuVisible: Y,
|
|
94
|
+
menuAnchorRef: Z,
|
|
95
|
+
menuRef: _,
|
|
96
|
+
menuStyle: ee,
|
|
97
|
+
menuTheme: se,
|
|
98
|
+
showMenu: te,
|
|
99
|
+
hideMenu: A,
|
|
100
|
+
openMenu: ne,
|
|
101
|
+
toggleMenu: E,
|
|
102
|
+
onMenuMouseEnter: ae,
|
|
103
|
+
onMenuMouseLeave: ie,
|
|
104
|
+
clickAction: oe,
|
|
105
|
+
viewsAction: F,
|
|
106
|
+
handleClickReplied: le
|
|
107
|
+
} = Fe(n.message, M, {
|
|
108
|
+
onReply: () => K(Q(n.message, "message.file"))
|
|
109
|
+
}), L = b(() => Be(n.message.status)), P = b(() => Ve(n.message.status, n.message.statusMsg)), { bubbleStyle: me } = Oe(
|
|
110
|
+
b(() => n.message),
|
|
103
111
|
{ cssVariable: "--chotto-filemessage-right-bg", position: "right" }
|
|
104
112
|
);
|
|
105
|
-
function
|
|
106
|
-
return
|
|
113
|
+
function R(l) {
|
|
114
|
+
return De(l.position, "file-message");
|
|
107
115
|
}
|
|
108
|
-
const { onToggleReaction:
|
|
109
|
-
var
|
|
110
|
-
const
|
|
111
|
-
return
|
|
112
|
-
}), { showReactions:
|
|
113
|
-
message: () =>
|
|
114
|
-
messageId: () =>
|
|
115
|
-
reactions: () =>
|
|
116
|
-
reactionsActive:
|
|
117
|
-
reactionsMode: () =>
|
|
118
|
-
reply: () =>
|
|
119
|
-
menuEnabled: () =>
|
|
120
|
-
contentRef:
|
|
121
|
-
chipsRef:
|
|
116
|
+
const { onToggleReaction: U, onAddReaction: N, onRemoveReaction: O } = qe(M), $ = D(null), H = D(null), re = b(() => {
|
|
117
|
+
var s;
|
|
118
|
+
const l = (s = H.value) == null ? void 0 : s.$el;
|
|
119
|
+
return l instanceof HTMLElement ? l : null;
|
|
120
|
+
}), { showReactions: ue, onContentPointerEnter: j, onContentPointerLeave: B } = Pe({
|
|
121
|
+
message: () => n.message,
|
|
122
|
+
messageId: () => n.message.messageId,
|
|
123
|
+
reactions: () => n.message.reactions,
|
|
124
|
+
reactionsActive: x,
|
|
125
|
+
reactionsMode: () => n.reactionsMode,
|
|
126
|
+
reply: () => Q(n.message, "message.file"),
|
|
127
|
+
menuEnabled: () => k.value.length > 0,
|
|
128
|
+
contentRef: $,
|
|
129
|
+
chipsRef: re,
|
|
122
130
|
handlers: {
|
|
123
|
-
onToggleReaction:
|
|
124
|
-
onAddReaction:
|
|
125
|
-
onRemoveReaction:
|
|
126
|
-
onMenu:
|
|
131
|
+
onToggleReaction: U,
|
|
132
|
+
onAddReaction: N,
|
|
133
|
+
onRemoveReaction: O,
|
|
134
|
+
onMenu: ne
|
|
127
135
|
}
|
|
128
|
-
}),
|
|
129
|
-
const
|
|
130
|
-
if (!(
|
|
131
|
-
const
|
|
136
|
+
}), ce = async (l) => {
|
|
137
|
+
const s = l ?? c.value[0];
|
|
138
|
+
if (!(s != null && s.url)) return;
|
|
139
|
+
const a = s.filename || (l ? T(c.value.indexOf(l)) : n.message.filename) || `file-${n.message.messageId}`;
|
|
132
140
|
try {
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
|
|
141
|
+
const u = new URL(s.url, window.location.href);
|
|
142
|
+
if (u.origin === window.location.origin) {
|
|
143
|
+
const y = document.createElement("a");
|
|
144
|
+
y.href = u.toString(), y.download = a, document.body.appendChild(y), y.click(), document.body.removeChild(y);
|
|
137
145
|
return;
|
|
138
146
|
}
|
|
139
|
-
const
|
|
140
|
-
if (!
|
|
141
|
-
throw new Error(`HTTP error! status: ${
|
|
142
|
-
const
|
|
143
|
-
|
|
144
|
-
} catch (
|
|
145
|
-
console.error("Ошибка при скачивании файла:",
|
|
147
|
+
const S = await fetch(s.url);
|
|
148
|
+
if (!S.ok)
|
|
149
|
+
throw new Error(`HTTP error! status: ${S.status}`);
|
|
150
|
+
const ve = await S.blob(), V = window.URL.createObjectURL(ve), v = document.createElement("a");
|
|
151
|
+
v.href = V, v.download = a, document.body.appendChild(v), v.click(), document.body.removeChild(v), window.URL.revokeObjectURL(V);
|
|
152
|
+
} catch (u) {
|
|
153
|
+
console.error("Ошибка при скачивании файла:", u), window.open(s.url, "_blank");
|
|
146
154
|
}
|
|
147
|
-
},
|
|
148
|
-
function
|
|
149
|
-
|
|
155
|
+
}, ge = $e(() => n.message, () => n.subtextTooltipData);
|
|
156
|
+
function de() {
|
|
157
|
+
M("sms-invite", n.message);
|
|
150
158
|
}
|
|
151
|
-
|
|
152
|
-
|
|
159
|
+
return (l, s) => (i(), m("div", {
|
|
160
|
+
ref_key: "menuAnchorRef",
|
|
161
|
+
ref: Z,
|
|
162
|
+
class: g(["file-message", [
|
|
163
|
+
R(e.message),
|
|
164
|
+
e.applyStyle(e.message)
|
|
165
|
+
]]),
|
|
166
|
+
messageId: e.message.messageId,
|
|
167
|
+
style: w(t(me)),
|
|
168
|
+
onMouseleave: s[6] || (s[6] = //@ts-ignore
|
|
169
|
+
(...a) => t(A) && t(A)(...a))
|
|
170
|
+
}, [
|
|
171
|
+
e.message.avatar && e.isFirstInSeries ? (i(), m("img", {
|
|
172
|
+
key: 0,
|
|
173
|
+
class: "file-message__avatar",
|
|
174
|
+
src: e.message.avatar,
|
|
175
|
+
height: "32",
|
|
176
|
+
width: "32",
|
|
177
|
+
style: w({ gridRow: e.message.subText ? "2" : "1" })
|
|
178
|
+
}, null, 12, Qe)) : r("", !0),
|
|
179
|
+
e.message.subText && e.isFirstInSeries ? (i(), m("p", We, [
|
|
180
|
+
d(Ee, {
|
|
181
|
+
text: t(ge),
|
|
182
|
+
position: e.message.position === "left" ? "right" : "left",
|
|
183
|
+
offset: 8
|
|
184
|
+
}, {
|
|
185
|
+
default: q(() => [
|
|
186
|
+
he(h(e.message.subText), 1)
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 8, ["text", "position"])
|
|
190
|
+
])) : r("", !0),
|
|
191
|
+
o("div", {
|
|
192
|
+
ref_key: "contentRef",
|
|
193
|
+
ref: $,
|
|
194
|
+
class: g(["file-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
195
|
+
style: w({ gridRow: e.message.subText ? "2" : "1" }),
|
|
196
|
+
onMouseenter: s[3] || (s[3] = (a) => t(p) && t(te)()),
|
|
197
|
+
onPointerenter: s[4] || (s[4] = //@ts-ignore
|
|
198
|
+
(...a) => t(j) && t(j)(...a)),
|
|
199
|
+
onPointerleave: s[5] || (s[5] = //@ts-ignore
|
|
200
|
+
(...a) => t(B) && t(B)(...a))
|
|
201
|
+
}, [
|
|
202
|
+
s[11] || (s[11] = o("div", {
|
|
203
|
+
class: "file-message__bottom-shadow",
|
|
204
|
+
"aria-hidden": "true"
|
|
205
|
+
}, null, -1)),
|
|
206
|
+
e.message.deleted ? (i(), m(I, { key: 0 }, [
|
|
207
|
+
d(Ae),
|
|
208
|
+
o("div", Ge, [
|
|
209
|
+
o("div", Je, [
|
|
210
|
+
e.message.time ? (i(), m("span", Ke, h(e.message.time), 1)) : r("", !0),
|
|
211
|
+
d(z, {
|
|
212
|
+
"base-class": "file-message",
|
|
213
|
+
"message-class": R(e.message),
|
|
214
|
+
"message-status": e.message.status,
|
|
215
|
+
"status-class": L.value,
|
|
216
|
+
"status-title": P.value
|
|
217
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
218
|
+
])
|
|
219
|
+
])
|
|
220
|
+
], 64)) : (i(), m(I, { key: 1 }, [
|
|
221
|
+
e.message.reply ? (i(), f(Te, {
|
|
222
|
+
key: 0,
|
|
223
|
+
message: e.message.reply,
|
|
224
|
+
class: g(e.message.position),
|
|
225
|
+
onReply: t(le)
|
|
226
|
+
}, null, 8, ["message", "class", "onReply"])) : r("", !0),
|
|
227
|
+
c.value.length ? (i(), m("div", {
|
|
228
|
+
key: 1,
|
|
229
|
+
class: g(["file-message__files", { "file-message__files--many": c.value.length > 1 }])
|
|
230
|
+
}, [
|
|
231
|
+
(i(!0), m(I, null, ke(c.value, (a, u) => (i(), m("a", {
|
|
232
|
+
key: (a.url || "") + "-" + u,
|
|
233
|
+
class: "file-message__link",
|
|
234
|
+
href: a.url,
|
|
235
|
+
onClick: we((fe) => ce(a), ["prevent"])
|
|
236
|
+
}, [
|
|
237
|
+
s[7] || (s[7] = o("span", { class: "pi pi-file" }, null, -1)),
|
|
238
|
+
o("p", Ye, h(a.filename || T(u)), 1),
|
|
239
|
+
s[8] || (s[8] = o("div", { class: "file-message__download-button" }, [
|
|
240
|
+
o("span", { class: "pi pi-download" })
|
|
241
|
+
], -1))
|
|
242
|
+
], 8, Xe))), 128))
|
|
243
|
+
], 2)) : r("", !0),
|
|
244
|
+
e.message.text ? (i(), m("div", Ze, [
|
|
245
|
+
o("p", {
|
|
246
|
+
onClick: s[0] || (s[0] = //@ts-ignore
|
|
247
|
+
(...a) => t(C) && t(C)(...a)),
|
|
248
|
+
innerHTML: t(G)
|
|
249
|
+
}, null, 8, _e)
|
|
250
|
+
])) : r("", !0),
|
|
251
|
+
e.message.linkPreview ? (i(), f(Ie, {
|
|
252
|
+
key: 3,
|
|
253
|
+
class: g(e.message.position),
|
|
254
|
+
"link-preview": e.message.linkPreview
|
|
255
|
+
}, null, 8, ["class", "link-preview"])) : r("", !0),
|
|
256
|
+
e.message.embed ? (i(), f(Ce, {
|
|
257
|
+
key: 4,
|
|
258
|
+
class: g(e.message.position),
|
|
259
|
+
embed: e.message.embed
|
|
260
|
+
}, null, 8, ["class", "embed"])) : r("", !0),
|
|
261
|
+
o("div", es, [
|
|
262
|
+
t(ue) ? (i(), f(pe, {
|
|
263
|
+
key: 0,
|
|
264
|
+
ref_key: "reactionsRef",
|
|
265
|
+
ref: H,
|
|
266
|
+
reactions: e.message.reactions,
|
|
267
|
+
"message-id": e.message.messageId,
|
|
268
|
+
enabled: t(x),
|
|
269
|
+
mode: e.reactionsMode,
|
|
270
|
+
"current-user-id": e.currentUserId,
|
|
271
|
+
"reaction-user-names": e.reactionUserNames,
|
|
272
|
+
onToggleReaction: t(U),
|
|
273
|
+
onAddReaction: t(N),
|
|
274
|
+
onRemoveReaction: t(O)
|
|
275
|
+
}, null, 8, ["reactions", "message-id", "enabled", "mode", "current-user-id", "reaction-user-names", "onToggleReaction", "onAddReaction", "onRemoveReaction"])) : r("", !0),
|
|
276
|
+
o("div", ss, [
|
|
277
|
+
e.message.views ? (i(), m("div", {
|
|
278
|
+
key: 0,
|
|
279
|
+
class: "file-message__views",
|
|
280
|
+
onClick: s[1] || (s[1] = //@ts-ignore
|
|
281
|
+
(...a) => t(F) && t(F)(...a))
|
|
282
|
+
}, [
|
|
283
|
+
s[9] || (s[9] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
284
|
+
o("p", null, h(e.message.views), 1)
|
|
285
|
+
])) : r("", !0),
|
|
286
|
+
o("span", ts, h(e.message.time), 1),
|
|
287
|
+
d(z, {
|
|
288
|
+
"base-class": "file-message",
|
|
289
|
+
"message-class": R(e.message),
|
|
290
|
+
"message-status": e.message.status,
|
|
291
|
+
"status-class": L.value,
|
|
292
|
+
"status-title": P.value
|
|
293
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
294
|
+
])
|
|
295
|
+
]),
|
|
296
|
+
d(xe, {
|
|
297
|
+
status: e.message.status,
|
|
298
|
+
"has-messenger-account": e.message.hasMessengerAccount,
|
|
299
|
+
channel: e.channel,
|
|
300
|
+
onSmsInvite: de
|
|
301
|
+
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
302
|
+
t(Y) && t(k).length && !e.reactionsEnabled && t(p) ? (i(), m("button", {
|
|
303
|
+
key: 5,
|
|
304
|
+
class: "file-message__menu-button",
|
|
305
|
+
onClick: s[2] || (s[2] = //@ts-ignore
|
|
306
|
+
(...a) => t(E) && t(E)(...a))
|
|
307
|
+
}, [...s[10] || (s[10] = [
|
|
308
|
+
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
309
|
+
])])) : r("", !0),
|
|
310
|
+
(i(), f(Me, { to: "body" }, [
|
|
311
|
+
d(Re, null, {
|
|
312
|
+
default: q(() => [
|
|
313
|
+
t(X) && t(k).length ? (i(), f(Se, {
|
|
314
|
+
key: 0,
|
|
315
|
+
ref_key: "menuRef",
|
|
316
|
+
ref: _,
|
|
317
|
+
class: "file-message__context-menu message-actions-menu",
|
|
318
|
+
style: w(t(ee)),
|
|
319
|
+
"data-theme": t(se),
|
|
320
|
+
actions: t(k),
|
|
321
|
+
onClick: t(oe),
|
|
322
|
+
onMouseenter: t(ae),
|
|
323
|
+
onMouseleave: t(ie)
|
|
324
|
+
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter", "onMouseleave"])) : r("", !0)
|
|
325
|
+
]),
|
|
326
|
+
_: 1
|
|
327
|
+
})
|
|
328
|
+
]))
|
|
329
|
+
], 64))
|
|
330
|
+
], 38)
|
|
331
|
+
], 46, ze));
|
|
153
332
|
}
|
|
154
333
|
});
|
|
155
334
|
export {
|
|
156
|
-
|
|
335
|
+
Fs as default
|
|
157
336
|
};
|