@mobilon-dev/chotto 0.3.98 → 0.3.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +4 -29
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +61 -42
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +4 -47
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +82 -55
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +51 -86
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -32
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +28 -7
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +38 -22
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -33
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +4 -37
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +21 -7
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +19 -30
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +4 -70
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +108 -76
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +13 -26
- package/dist/components/1_icons/CloseButtonIcon.vue.js +10 -16
- package/dist/components/1_icons/CloseIcon.vue.js +10 -16
- package/dist/components/1_icons/ContactCRMIcon.vue.js +10 -16
- package/dist/components/1_icons/MenuIcon.vue.js +10 -16
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
- package/dist/components/1_icons/SearchIcon.vue.js +17 -29
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
- package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +396 -546
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +13 -19
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +4 -74
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +42 -8
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -61
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +96 -79
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +51 -80
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -182
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +135 -25
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -78
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +95 -73
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +60 -34
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +33 -39
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +311 -134
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +24 -52
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +67 -35
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +38 -72
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +57 -76
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +39 -19
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -458
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +471 -160
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -60
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +53 -36
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -250
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +233 -67
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -315
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +319 -98
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -155
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +212 -110
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +120 -36
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -75
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +63 -10
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -346
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +307 -73
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +269 -65
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +298 -76
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +18 -35
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
- package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -85
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +210 -149
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +163 -253
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +32 -50
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +4 -172
- package/dist/components/3_compounds/Feed/Feed.vue2.js +257 -126
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +18 -31
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +56 -85
- package/package.json +1 -1
|
@@ -1,34 +1,46 @@
|
|
|
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 { useMessageMenuActions as
|
|
13
|
-
import { useMessageLinks as
|
|
14
|
-
import { useChannelAccentColor as
|
|
1
|
+
import { defineComponent as ge, inject as de, ref as y, computed as b, watch as $, onMounted as ve, createElementBlock as n, openBlock as t, unref as s, normalizeStyle as j, normalizeClass as M, createCommentVNode as l, createElementVNode as r, createBlock as c, toDisplayString as S, Fragment as H, createVNode as m, Transition as h, withCtx as d, withModifiers as O, Teleport as U } from "vue";
|
|
2
|
+
import ke from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import fe from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import ye from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import be from "../BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
6
|
+
import Me from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
7
|
+
import he from "../MessageReactions/MessageReactions.vue.js";
|
|
8
|
+
import D from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
9
|
+
import we from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
10
|
+
import Se from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
11
|
+
import { useMessageActions as Re } from "../../../hooks/messages/useMessageActions.js";
|
|
12
|
+
import { useMessageMenuActions as Ce } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
13
|
+
import { useMessageLinks as Ie } from "../../../hooks/messages/useMessageLinks.js";
|
|
14
|
+
import { useChannelAccentColor as Te } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
15
15
|
import { useStartReply as pe } from "../../../hooks/messages/useStartReply.js";
|
|
16
16
|
import "../../../hooks/useMessageDraft.js";
|
|
17
17
|
import "../../../hooks/useSearchModel.js";
|
|
18
|
-
import { useTheme as
|
|
18
|
+
import { useTheme as xe } from "../../../hooks/useTheme.js";
|
|
19
19
|
import "../../../hooks/useEmojiNative.js";
|
|
20
20
|
/* empty css */
|
|
21
21
|
/* empty css */
|
|
22
22
|
import "../../../locale/useLocale.js";
|
|
23
23
|
/* empty css */
|
|
24
|
-
import { buildReplyPayload as
|
|
25
|
-
import { getStatus as
|
|
26
|
-
import { getMessageClass as
|
|
27
|
-
import { createReactionHandlers as
|
|
24
|
+
import { buildReplyPayload as q } from "../../../hooks/messages/buildReplyPayload.js";
|
|
25
|
+
import { getStatus as Ae, getStatusTitle as Le } from "../../../functions/getStatusMessage.js";
|
|
26
|
+
import { getMessageClass as Fe } from "../../../functions/getMessageClass.js";
|
|
27
|
+
import { createReactionHandlers as Ee } from "../../../functions/createReactionHandlers.js";
|
|
28
28
|
import "../../../functions/parseMarkdown.js";
|
|
29
|
-
import { isAnimatedSticker as
|
|
29
|
+
import { isAnimatedSticker as Be } from "./utils/stickerUtils.js";
|
|
30
30
|
import "./utils/suppress-lit-warning.js";
|
|
31
|
-
const
|
|
31
|
+
const Ne = ["messageId"], Ve = ["src"], Pe = {
|
|
32
|
+
key: 1,
|
|
33
|
+
class: "sticker-message__subtext"
|
|
34
|
+
}, $e = { class: "sticker-message__info-container" }, je = {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "sticker-message__time"
|
|
37
|
+
}, He = ["src"], Oe = ["src"], Ue = ["src", "alt"], De = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "sticker-message__info-container"
|
|
40
|
+
}, qe = { class: "sticker-message__time" }, ze = ["href"], Ge = {
|
|
41
|
+
key: 1,
|
|
42
|
+
class: "sticker-message__text-container"
|
|
43
|
+
}, We = ["innerHTML"], Je = ["src"], Ke = ["src"], Qe = ["src", "alt"], Ts = /* @__PURE__ */ ge({
|
|
32
44
|
__name: "StickerMessage",
|
|
33
45
|
props: {
|
|
34
46
|
message: {
|
|
@@ -50,7 +62,7 @@ const Qe = /* @__PURE__ */ Q({
|
|
|
50
62
|
reactionsMode: {
|
|
51
63
|
type: String,
|
|
52
64
|
default: "single",
|
|
53
|
-
validator: (
|
|
65
|
+
validator: (e) => ["single", "multi"].includes(e)
|
|
54
66
|
},
|
|
55
67
|
currentUserId: {
|
|
56
68
|
type: [String, Number],
|
|
@@ -67,73 +79,295 @@ const Qe = /* @__PURE__ */ Q({
|
|
|
67
79
|
}
|
|
68
80
|
},
|
|
69
81
|
emits: ["action", "reply", "sms-invite"],
|
|
70
|
-
setup(
|
|
71
|
-
y();
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
r.value = !0;
|
|
82
|
+
setup(e, { emit: z }) {
|
|
83
|
+
const p = de("chatAppId"), { getTheme: x } = xe(p || ""), { menuActions: w } = Ce(() => i.message), { startReply: G } = pe(p || ""), g = y(!1), R = y(!1);
|
|
84
|
+
async function A() {
|
|
85
|
+
if (!(g.value || R.value)) {
|
|
86
|
+
R.value = !0;
|
|
76
87
|
try {
|
|
77
|
-
await import("./libs/tgs-player/lottie-player.esm.js"), await import("./libs/tgs-player/tgs-player.esm.js"),
|
|
78
|
-
} catch (
|
|
79
|
-
console.error("Failed to load TGS libraries:",
|
|
88
|
+
await import("./libs/tgs-player/lottie-player.esm.js"), await import("./libs/tgs-player/tgs-player.esm.js"), g.value = !0;
|
|
89
|
+
} catch (u) {
|
|
90
|
+
console.error("Failed to load TGS libraries:", u);
|
|
80
91
|
} finally {
|
|
81
|
-
|
|
92
|
+
R.value = !1;
|
|
82
93
|
}
|
|
83
94
|
}
|
|
84
95
|
}
|
|
85
|
-
const
|
|
86
|
-
isOpenMenu:
|
|
87
|
-
buttonMenuVisible:
|
|
88
|
-
menuAnchorRef:
|
|
89
|
-
menuRef:
|
|
90
|
-
menuStyle:
|
|
91
|
-
menuTheme:
|
|
92
|
-
showMenu:
|
|
93
|
-
hideMenu:
|
|
94
|
-
openMenu:
|
|
96
|
+
const i = e, C = z, I = y(!1), {
|
|
97
|
+
isOpenMenu: W,
|
|
98
|
+
buttonMenuVisible: J,
|
|
99
|
+
menuAnchorRef: K,
|
|
100
|
+
menuRef: Q,
|
|
101
|
+
menuStyle: X,
|
|
102
|
+
menuTheme: Y,
|
|
103
|
+
showMenu: Z,
|
|
104
|
+
hideMenu: L,
|
|
105
|
+
openMenu: _,
|
|
95
106
|
toggleMenu: F,
|
|
96
|
-
onMenuMouseEnter:
|
|
97
|
-
onMenuMouseLeave:
|
|
98
|
-
clickAction:
|
|
99
|
-
viewsAction:
|
|
100
|
-
handleClickReplied:
|
|
101
|
-
} =
|
|
102
|
-
onReply: () =>
|
|
103
|
-
}),
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
+
onMenuMouseEnter: ee,
|
|
108
|
+
onMenuMouseLeave: se,
|
|
109
|
+
clickAction: te,
|
|
110
|
+
viewsAction: E,
|
|
111
|
+
handleClickReplied: ae
|
|
112
|
+
} = Re(i.message, C, {
|
|
113
|
+
onReply: () => G(q(i.message, "message.sticker"))
|
|
114
|
+
}), v = y(!1), { linkedHtml: ne, inNewWindow: B } = Ie(() => i.message.text), ie = () => {
|
|
115
|
+
Z(), v.value = !0;
|
|
116
|
+
}, N = b(() => Ae(i.message.status)), V = b(() => Le(i.message.status, i.message.statusMsg)), { bubbleStyle: le } = Te(
|
|
117
|
+
b(() => i.message),
|
|
107
118
|
{ cssVariable: "--chotto-stickermessage-right-bg", position: "right" }
|
|
108
|
-
),
|
|
109
|
-
if (
|
|
110
|
-
const
|
|
111
|
-
return !/\.(webp|png|jpe?g|gif|bmp|svg)(\?|#|$)/.test(
|
|
119
|
+
), k = b(() => Be(i.message.url, i.message.isAnimated)), f = y(!1), P = b(() => {
|
|
120
|
+
if (k.value) return !1;
|
|
121
|
+
const u = String(i.message.url || "").toLowerCase();
|
|
122
|
+
return !/\.(webp|png|jpe?g|gif|bmp|svg)(\?|#|$)/.test(u);
|
|
112
123
|
});
|
|
113
|
-
|
|
114
|
-
() =>
|
|
124
|
+
$(
|
|
125
|
+
() => i.message.url,
|
|
115
126
|
() => {
|
|
116
127
|
f.value = !1;
|
|
117
128
|
},
|
|
118
129
|
{ immediate: !0 }
|
|
119
|
-
),
|
|
120
|
-
|
|
121
|
-
}, { immediate: !0 }),
|
|
122
|
-
|
|
130
|
+
), $(k, (u) => {
|
|
131
|
+
u && !g.value && A();
|
|
132
|
+
}, { immediate: !0 }), ve(() => {
|
|
133
|
+
k.value && !g.value && A();
|
|
123
134
|
});
|
|
124
|
-
function
|
|
125
|
-
return
|
|
135
|
+
function T(u) {
|
|
136
|
+
return Fe(u.position, "sticker-message");
|
|
126
137
|
}
|
|
127
|
-
const
|
|
128
|
-
function
|
|
129
|
-
|
|
138
|
+
const oe = () => I.value = !1, { onToggleReaction: me, onAddReaction: re, onRemoveReaction: ue } = Ee(C);
|
|
139
|
+
function ce() {
|
|
140
|
+
C("sms-invite", i.message);
|
|
130
141
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
142
|
+
return (u, a) => (t(), n("div", {
|
|
143
|
+
ref_key: "menuAnchorRef",
|
|
144
|
+
ref: K,
|
|
145
|
+
class: M(["sticker-message", [
|
|
146
|
+
T(e.message),
|
|
147
|
+
e.applyStyle(e.message)
|
|
148
|
+
]]),
|
|
149
|
+
messageId: e.message.messageId,
|
|
150
|
+
style: j(s(le)),
|
|
151
|
+
onMouseleave: a[7] || (a[7] = //@ts-ignore
|
|
152
|
+
(...o) => s(L) && s(L)(...o))
|
|
153
|
+
}, [
|
|
154
|
+
e.message.avatar && e.isFirstInSeries ? (t(), n("img", {
|
|
155
|
+
key: 0,
|
|
156
|
+
class: "sticker-message__avatar",
|
|
157
|
+
src: e.message.avatar,
|
|
158
|
+
height: "32",
|
|
159
|
+
width: "32"
|
|
160
|
+
}, null, 8, Ve)) : l("", !0),
|
|
161
|
+
e.message.subText && e.isFirstInSeries ? (t(), n("p", Pe, S(e.message.subText), 1)) : l("", !0),
|
|
162
|
+
r("div", {
|
|
163
|
+
class: M(["sticker-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }])
|
|
164
|
+
}, [
|
|
165
|
+
e.message.deleted ? (t(), n(H, { key: 0 }, [
|
|
166
|
+
m(Se),
|
|
167
|
+
r("div", $e, [
|
|
168
|
+
e.message.time ? (t(), n("span", je, S(e.message.time), 1)) : l("", !0),
|
|
169
|
+
m(D, {
|
|
170
|
+
"base-class": "sticker-message",
|
|
171
|
+
"message-class": T(e.message),
|
|
172
|
+
"message-status": e.message.status,
|
|
173
|
+
"status-class": N.value,
|
|
174
|
+
"status-title": V.value
|
|
175
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
176
|
+
])
|
|
177
|
+
], 64)) : (t(), n(H, { key: 1 }, [
|
|
178
|
+
e.message.reply ? (t(), c(be, {
|
|
179
|
+
key: 0,
|
|
180
|
+
style: { margin: "10px 10px 4px 16px" },
|
|
181
|
+
class: M(e.message.position),
|
|
182
|
+
message: e.message.reply,
|
|
183
|
+
onReply: s(ae)
|
|
184
|
+
}, null, 8, ["class", "message", "onReply"])) : l("", !0),
|
|
185
|
+
r("div", {
|
|
186
|
+
class: "sticker-message__preview-button",
|
|
187
|
+
onClick: a[2] || (a[2] = (o) => I.value = !0),
|
|
188
|
+
onMouseenter: ie,
|
|
189
|
+
onMouseleave: a[3] || (a[3] = (o) => v.value = !v.value)
|
|
190
|
+
}, [
|
|
191
|
+
k.value && g.value ? (t(), n("tgs-player", {
|
|
192
|
+
key: 0,
|
|
193
|
+
class: "sticker-message__preview-image-animated",
|
|
194
|
+
src: e.message.url,
|
|
195
|
+
autoplay: "",
|
|
196
|
+
loop: "",
|
|
197
|
+
mode: "normal"
|
|
198
|
+
}, null, 8, He)) : P.value && !f.value ? (t(), n("video", {
|
|
199
|
+
key: 1,
|
|
200
|
+
class: "sticker-message__preview-image",
|
|
201
|
+
src: e.message.url,
|
|
202
|
+
autoplay: "",
|
|
203
|
+
loop: "",
|
|
204
|
+
muted: "",
|
|
205
|
+
playsinline: "",
|
|
206
|
+
preload: "metadata",
|
|
207
|
+
onError: a[0] || (a[0] = (o) => f.value = !0)
|
|
208
|
+
}, null, 40, Oe)) : (t(), n("img", {
|
|
209
|
+
key: 2,
|
|
210
|
+
class: "sticker-message__preview-image",
|
|
211
|
+
src: e.message.url,
|
|
212
|
+
alt: e.message.alt
|
|
213
|
+
}, null, 8, Ue)),
|
|
214
|
+
m(h, { name: "modal-fade" }, {
|
|
215
|
+
default: d(() => [
|
|
216
|
+
v.value ? (t(), n("div", De, [
|
|
217
|
+
e.message.views ? (t(), n("div", {
|
|
218
|
+
key: 0,
|
|
219
|
+
class: "sticker-message__views",
|
|
220
|
+
onClick: a[1] || (a[1] = O(
|
|
221
|
+
//@ts-ignore
|
|
222
|
+
(...o) => s(E) && s(E)(...o),
|
|
223
|
+
["stop"]
|
|
224
|
+
))
|
|
225
|
+
}, [
|
|
226
|
+
a[8] || (a[8] = r("span", { class: "pi pi-eye" }, null, -1)),
|
|
227
|
+
r("p", null, S(e.message.views), 1)
|
|
228
|
+
])) : l("", !0),
|
|
229
|
+
r("span", qe, S(e.message.time), 1),
|
|
230
|
+
m(D, {
|
|
231
|
+
"base-class": "sticker-message",
|
|
232
|
+
"message-class": T(e.message),
|
|
233
|
+
"message-status": e.message.status,
|
|
234
|
+
"status-class": N.value,
|
|
235
|
+
"status-title": V.value
|
|
236
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
237
|
+
])) : l("", !0)
|
|
238
|
+
]),
|
|
239
|
+
_: 1
|
|
240
|
+
}),
|
|
241
|
+
m(h, { name: "modal-fade" }, {
|
|
242
|
+
default: d(() => [
|
|
243
|
+
v.value ? (t(), n("a", {
|
|
244
|
+
key: 0,
|
|
245
|
+
class: "sticker-message__download-button",
|
|
246
|
+
href: e.message.url,
|
|
247
|
+
download: "",
|
|
248
|
+
target: "_blank",
|
|
249
|
+
onClick: O(() => "//Предотвращаем всплытие события клика", ["stop"])
|
|
250
|
+
}, [...a[9] || (a[9] = [
|
|
251
|
+
r("span", { class: "pi pi-download" }, null, -1)
|
|
252
|
+
])], 8, ze)) : l("", !0)
|
|
253
|
+
]),
|
|
254
|
+
_: 1
|
|
255
|
+
})
|
|
256
|
+
], 32),
|
|
257
|
+
m(h, { name: "modal-fade" }, {
|
|
258
|
+
default: d(() => [
|
|
259
|
+
s(J) && s(w).length && !e.reactionsEnabled ? (t(), n("button", {
|
|
260
|
+
key: 0,
|
|
261
|
+
class: "sticker-message__menu-button",
|
|
262
|
+
onClick: a[4] || (a[4] = //@ts-ignore
|
|
263
|
+
(...o) => s(F) && s(F)(...o))
|
|
264
|
+
}, [...a[10] || (a[10] = [
|
|
265
|
+
r("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
266
|
+
])])) : l("", !0)
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
}),
|
|
270
|
+
(t(), c(U, { to: "body" }, [
|
|
271
|
+
m(h, { name: "context-menu" }, {
|
|
272
|
+
default: d(() => [
|
|
273
|
+
s(W) && s(w).length ? (t(), c(ke, {
|
|
274
|
+
key: 0,
|
|
275
|
+
ref_key: "menuRef",
|
|
276
|
+
ref: Q,
|
|
277
|
+
class: "sticker-message__context-menu message-actions-menu",
|
|
278
|
+
style: j(s(X)),
|
|
279
|
+
"data-theme": s(Y),
|
|
280
|
+
actions: s(w),
|
|
281
|
+
onClick: s(te),
|
|
282
|
+
onMouseenter: s(ee),
|
|
283
|
+
onMouseleave: s(se)
|
|
284
|
+
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter", "onMouseleave"])) : l("", !0)
|
|
285
|
+
]),
|
|
286
|
+
_: 1
|
|
287
|
+
})
|
|
288
|
+
])),
|
|
289
|
+
e.message.text ? (t(), n("div", Ge, [
|
|
290
|
+
r("p", {
|
|
291
|
+
onClick: a[5] || (a[5] = //@ts-ignore
|
|
292
|
+
(...o) => s(B) && s(B)(...o)),
|
|
293
|
+
innerHTML: s(ne)
|
|
294
|
+
}, null, 8, We)
|
|
295
|
+
])) : l("", !0),
|
|
296
|
+
m(we, {
|
|
297
|
+
status: e.message.status,
|
|
298
|
+
"has-messenger-account": e.message.hasMessengerAccount,
|
|
299
|
+
channel: e.channel,
|
|
300
|
+
onSmsInvite: ce
|
|
301
|
+
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
302
|
+
e.message.linkPreview ? (t(), c(fe, {
|
|
303
|
+
key: 2,
|
|
304
|
+
class: M(["sticker-message__link-preview", e.message.position]),
|
|
305
|
+
"link-preview": e.message.linkPreview
|
|
306
|
+
}, null, 8, ["class", "link-preview"])) : l("", !0),
|
|
307
|
+
e.message.embed ? (t(), c(ye, {
|
|
308
|
+
key: 3,
|
|
309
|
+
class: M(e.message.position),
|
|
310
|
+
embed: e.message.embed
|
|
311
|
+
}, null, 8, ["class", "embed"])) : l("", !0),
|
|
312
|
+
m(he, {
|
|
313
|
+
reactions: e.message.reactions,
|
|
314
|
+
"message-id": e.message.messageId,
|
|
315
|
+
reply: s(q)(e.message, "message.sticker"),
|
|
316
|
+
enabled: e.reactionsEnabled,
|
|
317
|
+
mode: e.reactionsMode,
|
|
318
|
+
"current-user-id": e.currentUserId,
|
|
319
|
+
"reaction-user-names": e.reactionUserNames,
|
|
320
|
+
"menu-enabled": s(w).length > 0,
|
|
321
|
+
onToggleReaction: s(me),
|
|
322
|
+
onAddReaction: s(re),
|
|
323
|
+
onRemoveReaction: s(ue),
|
|
324
|
+
onMenu: s(_)
|
|
325
|
+
}, null, 8, ["reactions", "message-id", "reply", "enabled", "mode", "current-user-id", "reaction-user-names", "menu-enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction", "onMenu"])
|
|
326
|
+
], 64))
|
|
327
|
+
], 2),
|
|
328
|
+
(t(), c(U, { to: "body" }, [
|
|
329
|
+
m(h, { name: "modal-fade" }, {
|
|
330
|
+
default: d(() => [
|
|
331
|
+
I.value && !e.message.deleted ? (t(), c(Me, {
|
|
332
|
+
key: 0,
|
|
333
|
+
"data-theme": s(x)().theme ? s(x)().theme : "light",
|
|
334
|
+
title: e.message.alt,
|
|
335
|
+
onClose: oe
|
|
336
|
+
}, {
|
|
337
|
+
default: d(() => [
|
|
338
|
+
k.value && g.value ? (t(), n("tgs-player", {
|
|
339
|
+
key: 0,
|
|
340
|
+
class: "sticker-message__modal-image-animated",
|
|
341
|
+
src: e.message.url,
|
|
342
|
+
autoplay: "",
|
|
343
|
+
loop: "",
|
|
344
|
+
mode: "normal"
|
|
345
|
+
}, null, 8, Je)) : P.value && !f.value ? (t(), n("video", {
|
|
346
|
+
key: 1,
|
|
347
|
+
class: "sticker-message__modal-image",
|
|
348
|
+
src: e.message.url,
|
|
349
|
+
autoplay: "",
|
|
350
|
+
loop: "",
|
|
351
|
+
muted: "",
|
|
352
|
+
playsinline: "",
|
|
353
|
+
preload: "metadata",
|
|
354
|
+
onError: a[6] || (a[6] = (o) => f.value = !0)
|
|
355
|
+
}, null, 40, Ke)) : (t(), n("img", {
|
|
356
|
+
key: 2,
|
|
357
|
+
class: "sticker-message__modal-image",
|
|
358
|
+
src: e.message.url,
|
|
359
|
+
alt: e.message.alt
|
|
360
|
+
}, null, 8, Qe))
|
|
361
|
+
]),
|
|
362
|
+
_: 1
|
|
363
|
+
}, 8, ["data-theme", "title"])) : l("", !0)
|
|
364
|
+
]),
|
|
365
|
+
_: 1
|
|
366
|
+
})
|
|
367
|
+
]))
|
|
368
|
+
], 46, Ne));
|
|
135
369
|
}
|
|
136
370
|
});
|
|
137
371
|
export {
|
|
138
|
-
|
|
372
|
+
Ts as default
|
|
139
373
|
};
|
|
@@ -1,20 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as t, openBlock as o, createElementVNode as c, toDisplayString as r } from "vue";
|
|
1
|
+
import o from "./SystemMessage.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
function n(p, i, e, d, f, l) {
|
|
7
|
-
return o(), t("div", _, [
|
|
8
|
-
c(
|
|
9
|
-
"p",
|
|
10
|
-
m,
|
|
11
|
-
r(e.message.text),
|
|
12
|
-
1
|
|
13
|
-
/* TEXT */
|
|
14
|
-
)
|
|
15
|
-
]);
|
|
16
|
-
}
|
|
17
|
-
const v = /* @__PURE__ */ a(s, [["render", n], ["__scopeId", "data-v-825a80e3"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/SystemMessage/SystemMessage.vue"]]);
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2333b3c7"]]);
|
|
18
5
|
export {
|
|
19
|
-
|
|
6
|
+
r as default
|
|
20
7
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as t, createElementBlock as s, openBlock as o, createElementVNode as a, toDisplayString as n } from "vue";
|
|
2
|
+
const c = { class: "system-message__container" }, r = { class: "system-message__text" }, p = /* @__PURE__ */ t({
|
|
3
3
|
__name: "SystemMessage",
|
|
4
4
|
props: {
|
|
5
5
|
message: {
|
|
@@ -7,12 +7,12 @@ const _ = /* @__PURE__ */ r({
|
|
|
7
7
|
required: !0
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
setup(e) {
|
|
11
|
+
return (m, _) => (o(), s("div", c, [
|
|
12
|
+
a("p", r, n(e.message.text), 1)
|
|
13
|
+
]));
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
p as default
|
|
18
18
|
};
|