@mobilon-dev/chotto 0.3.121 → 0.3.124
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/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/src/apps/data/chats.d.ts +48 -4
- package/dist/types/src/apps/data/messages.d.ts +366 -282
- package/dist/types/src/components/2_chatlist_elements/ChatTabs/styles/types.d.ts +2 -0
- package/dist/types/src/components/3_compounds/Feed/composables/useFeedScroll.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,32 +1,50 @@
|
|
|
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
|
|
19
|
-
import { useStartEdit as
|
|
20
|
-
import { buildReplyPayload as
|
|
21
|
-
import { buildEditPayload as
|
|
22
|
-
import { getEditTooltipLines as
|
|
23
|
-
import { getDeletedTooltipLines as
|
|
24
|
-
import { getStatus as
|
|
25
|
-
import { getMessageClass as
|
|
26
|
-
import { createReactionHandlers as
|
|
1
|
+
import { defineComponent as be, inject as he, ref as M, computed as r, createElementBlock as l, openBlock as n, unref as t, normalizeStyle as k, normalizeClass as f, createCommentVNode as i, createElementVNode as m, createVNode as v, withCtx as b, createTextVNode as Me, toDisplayString as u, Fragment as R, createBlock as g, createSlots as ke, renderList as Re, Teleport as Ie, Transition as Se } from "vue";
|
|
2
|
+
import Te from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import pe from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import we from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import Ee from "../FeedReplyQuote/FeedReplyQuote.vue.js";
|
|
6
|
+
import Ae from "../MessageReactions/MessageReactions.vue.js";
|
|
7
|
+
import q from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
8
|
+
import Ce from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
9
|
+
import Fe from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
10
|
+
import O from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
11
|
+
import { useMessageActions as Le } from "../../../hooks/messages/useMessageActions.js";
|
|
12
|
+
import { useMessageHoverActions as Pe } from "../../../hooks/messages/useMessageHoverActions.js";
|
|
13
|
+
import { useMessageReactionsInFeed as Be } from "../../../hooks/messages/useMessageReactionsInFeed.js";
|
|
14
|
+
import { useMessageMenuActions as Ne } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
15
|
+
import { useMessageLinks as He } from "../../../hooks/messages/useMessageLinks.js";
|
|
16
|
+
import { useChannelAccentColor as Ve } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
17
|
+
import { useSubtextTooltip as De } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
18
|
+
import { useStartReply as $e } from "../../../hooks/messages/useStartReply.js";
|
|
19
|
+
import { useStartEdit as je } from "../../../hooks/messages/useStartEdit.js";
|
|
20
|
+
import { buildReplyPayload as U } from "../../../hooks/messages/buildReplyPayload.js";
|
|
21
|
+
import { buildEditPayload as qe } from "../../../hooks/messages/buildEditPayload.js";
|
|
22
|
+
import { getEditTooltipLines as Oe } from "../../../hooks/messages/getEditTooltipLines.js";
|
|
23
|
+
import { getDeletedTooltipLines as Ue } from "../../../hooks/messages/getDeletedOriginalText.js";
|
|
24
|
+
import { getStatus as ze, getStatusTitle as Qe } from "../../../functions/getStatusMessage.js";
|
|
25
|
+
import { getMessageClass as We } from "../../../functions/getMessageClass.js";
|
|
26
|
+
import { createReactionHandlers as Ge } from "../../../functions/createReactionHandlers.js";
|
|
27
27
|
import "../../../functions/parseMarkdown.js";
|
|
28
|
-
import { useLocale as
|
|
29
|
-
const
|
|
28
|
+
import { useLocale as Je } from "../../../locale/useLocale.js";
|
|
29
|
+
const Ke = ["messageId"], Xe = ["src"], Ye = {
|
|
30
|
+
key: 1,
|
|
31
|
+
class: "text-message__subtext"
|
|
32
|
+
}, Ze = { class: "text-message__footer" }, _e = { class: "text-message__info-container" }, et = {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "text-message__time"
|
|
35
|
+
}, tt = ["innerHTML"], st = { class: "text-message__footer" }, at = { class: "text-message__info-container" }, nt = { class: "text-message__edit-tooltip" }, ot = {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "text-message__edit-tooltip-original"
|
|
38
|
+
}, it = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "text-message__edit-tooltip-original"
|
|
41
|
+
}, lt = {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: "text-message__edit-tooltip-meta"
|
|
44
|
+
}, mt = {
|
|
45
|
+
key: 2,
|
|
46
|
+
class: "text-message__time"
|
|
47
|
+
}, Vt = /* @__PURE__ */ be({
|
|
30
48
|
__name: "TextMessage",
|
|
31
49
|
props: {
|
|
32
50
|
message: {
|
|
@@ -48,7 +66,7 @@ const at = /* @__PURE__ */ ne({
|
|
|
48
66
|
reactionsMode: {
|
|
49
67
|
type: String,
|
|
50
68
|
default: "single",
|
|
51
|
-
validator: (
|
|
69
|
+
validator: (e) => ["single", "multi"].includes(e)
|
|
52
70
|
},
|
|
53
71
|
currentUserId: {
|
|
54
72
|
type: [String, Number],
|
|
@@ -70,79 +88,271 @@ const at = /* @__PURE__ */ ne({
|
|
|
70
88
|
}
|
|
71
89
|
},
|
|
72
90
|
emits: ["action", "reply", "sms-invite"],
|
|
73
|
-
setup(
|
|
74
|
-
T(
|
|
75
|
-
|
|
76
|
-
() =>
|
|
77
|
-
() =>
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
), z = t(() => xe(e.message)), G = {
|
|
91
|
+
setup(e, { emit: z }) {
|
|
92
|
+
const s = e, y = z, { t: Q } = Je(), { linkedHtml: W, inNewWindow: I } = He(() => s.message.text), { menuActions: x } = Ne(() => s.message), { hoverActionsEnabled: S, reactionsActive: T } = Pe(
|
|
93
|
+
() => s.channel,
|
|
94
|
+
() => s.reactionsEnabled,
|
|
95
|
+
() => s.message
|
|
96
|
+
), p = he("chatAppId"), { startReply: G } = $e(p || ""), { startEdit: J } = je(p || ""), w = M(!1), {
|
|
97
|
+
isOpenMenu: K,
|
|
98
|
+
buttonMenuVisible: X,
|
|
99
|
+
menuAnchorRef: Y,
|
|
100
|
+
menuRef: Z,
|
|
101
|
+
menuStyle: _,
|
|
102
|
+
menuTheme: ee,
|
|
103
|
+
showMenu: te,
|
|
104
|
+
hideMenu: E,
|
|
105
|
+
openMenu: se,
|
|
106
|
+
toggleMenu: A,
|
|
107
|
+
onMenuMouseEnter: ae,
|
|
108
|
+
onMenuMouseLeave: ne,
|
|
109
|
+
clickAction: oe,
|
|
110
|
+
viewsAction: C,
|
|
111
|
+
handleClickReplied: ie
|
|
112
|
+
} = Le(s.message, y, {
|
|
113
|
+
onReply: () => G(U(s.message, "message.text")),
|
|
114
|
+
onEdit: () => J(qe(s.message, "message.text"))
|
|
115
|
+
}), F = r(() => ze(s.message.status)), L = r(() => Qe(s.message.status, s.message.statusMsg)), le = r(() => Q("component.TextMessage.edited")), c = r(() => Oe(s.message.edited)), me = r(
|
|
116
|
+
() => !!(c.value.original || c.value.edits.length)
|
|
117
|
+
), P = r(() => Ue(s.message)), re = {
|
|
101
118
|
"--chotto-tooltip-border": "1px solid #5F5F5F"
|
|
102
|
-
}, { bubbleStyle:
|
|
103
|
-
|
|
119
|
+
}, { bubbleStyle: ue } = Ve(
|
|
120
|
+
r(() => s.message),
|
|
104
121
|
{ cssVariable: "--chotto-textmessage-right-bg", position: "right" }
|
|
105
122
|
);
|
|
106
|
-
function
|
|
107
|
-
return
|
|
123
|
+
function h(d) {
|
|
124
|
+
return We(d.position, "text-message");
|
|
108
125
|
}
|
|
109
|
-
const { onToggleReaction:
|
|
110
|
-
var
|
|
111
|
-
const
|
|
112
|
-
return
|
|
113
|
-
}), { showReactions:
|
|
114
|
-
message: () =>
|
|
115
|
-
messageId: () =>
|
|
116
|
-
reactions: () =>
|
|
117
|
-
reactionsActive:
|
|
118
|
-
reactionsMode: () =>
|
|
119
|
-
reply: () =>
|
|
120
|
-
menuEnabled: () =>
|
|
121
|
-
contentRef:
|
|
122
|
-
chipsRef:
|
|
126
|
+
const { onToggleReaction: B, onAddReaction: N, onRemoveReaction: H } = Ge(y), V = M(null), D = M(null), ge = r(() => {
|
|
127
|
+
var a;
|
|
128
|
+
const d = (a = D.value) == null ? void 0 : a.$el;
|
|
129
|
+
return d instanceof HTMLElement ? d : null;
|
|
130
|
+
}), { showReactions: ce, onContentPointerEnter: $, onContentPointerLeave: j } = Be({
|
|
131
|
+
message: () => s.message,
|
|
132
|
+
messageId: () => s.message.messageId,
|
|
133
|
+
reactions: () => s.message.reactions,
|
|
134
|
+
reactionsActive: T,
|
|
135
|
+
reactionsMode: () => s.reactionsMode,
|
|
136
|
+
reply: () => U(s.message, "message.text"),
|
|
137
|
+
menuEnabled: () => x.value.length > 0,
|
|
138
|
+
contentRef: V,
|
|
139
|
+
chipsRef: ge,
|
|
123
140
|
handlers: {
|
|
124
|
-
onToggleReaction:
|
|
125
|
-
onAddReaction:
|
|
126
|
-
onRemoveReaction:
|
|
127
|
-
onMenu:
|
|
141
|
+
onToggleReaction: B,
|
|
142
|
+
onAddReaction: N,
|
|
143
|
+
onRemoveReaction: H,
|
|
144
|
+
onMenu: se
|
|
128
145
|
}
|
|
129
|
-
}),
|
|
130
|
-
() =>
|
|
146
|
+
}), de = De(() => s.message, () => s.subtextTooltipData), fe = r(
|
|
147
|
+
() => s.message.status === "error" && s.message.hasMessengerAccount === !1
|
|
131
148
|
);
|
|
132
|
-
function
|
|
133
|
-
|
|
149
|
+
function ve() {
|
|
150
|
+
y("sms-invite", s.message);
|
|
134
151
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
152
|
+
function ye() {
|
|
153
|
+
w.value || !s.message.edited || (w.value = !0, y("action", {
|
|
137
154
|
action: "fetchEditInfo",
|
|
138
|
-
messageId:
|
|
155
|
+
messageId: s.message.messageId,
|
|
139
156
|
type: "editInfo"
|
|
140
157
|
}));
|
|
141
158
|
}
|
|
142
|
-
|
|
143
|
-
|
|
159
|
+
return (d, a) => (n(), l("div", {
|
|
160
|
+
ref_key: "menuAnchorRef",
|
|
161
|
+
ref: Y,
|
|
162
|
+
class: f(["text-message", [
|
|
163
|
+
h(e.message),
|
|
164
|
+
e.applyStyle(e.message)
|
|
165
|
+
]]),
|
|
166
|
+
messageId: e.message.messageId,
|
|
167
|
+
style: k(t(ue)),
|
|
168
|
+
onMouseleave: a[6] || (a[6] = //@ts-ignore
|
|
169
|
+
(...o) => t(E) && t(E)(...o))
|
|
170
|
+
}, [
|
|
171
|
+
e.message.avatar && e.isFirstInSeries ? (n(), l("img", {
|
|
172
|
+
key: 0,
|
|
173
|
+
class: "text-message__avatar",
|
|
174
|
+
src: e.message.avatar,
|
|
175
|
+
height: "32",
|
|
176
|
+
width: "32",
|
|
177
|
+
style: k({ gridRow: e.message.subText && e.isFirstInSeries ? "2" : "1" })
|
|
178
|
+
}, null, 12, Xe)) : i("", !0),
|
|
179
|
+
e.message.subText && e.isFirstInSeries ? (n(), l("p", Ye, [
|
|
180
|
+
v(O, {
|
|
181
|
+
text: t(de),
|
|
182
|
+
position: e.message.position === "left" ? "right" : "left",
|
|
183
|
+
offset: 8
|
|
184
|
+
}, {
|
|
185
|
+
default: b(() => [
|
|
186
|
+
Me(u(e.message.subText), 1)
|
|
187
|
+
]),
|
|
188
|
+
_: 1
|
|
189
|
+
}, 8, ["text", "position"])
|
|
190
|
+
])) : i("", !0),
|
|
191
|
+
m("div", {
|
|
192
|
+
ref_key: "contentRef",
|
|
193
|
+
ref: V,
|
|
194
|
+
class: f(["text-message__content", {
|
|
195
|
+
"is-first": e.isFirstInSeries,
|
|
196
|
+
"with-avatar-indent": !e.isFirstInSeries && e.message.avatar,
|
|
197
|
+
"has-reply": !!e.message.reply
|
|
198
|
+
}]),
|
|
199
|
+
onMouseenter: a[3] || (a[3] = (o) => t(S) && t(te)()),
|
|
200
|
+
onPointerenter: a[4] || (a[4] = //@ts-ignore
|
|
201
|
+
(...o) => t($) && t($)(...o)),
|
|
202
|
+
onPointerleave: a[5] || (a[5] = //@ts-ignore
|
|
203
|
+
(...o) => t(j) && t(j)(...o))
|
|
204
|
+
}, [
|
|
205
|
+
a[9] || (a[9] = m("div", {
|
|
206
|
+
class: "text-message__bottom-shadow",
|
|
207
|
+
"aria-hidden": "true"
|
|
208
|
+
}, null, -1)),
|
|
209
|
+
e.message.deleted ? (n(), l(R, { key: 0 }, [
|
|
210
|
+
v(Fe, {
|
|
211
|
+
"original-text": P.value.original,
|
|
212
|
+
meta: P.value.meta
|
|
213
|
+
}, null, 8, ["original-text", "meta"]),
|
|
214
|
+
m("div", Ze, [
|
|
215
|
+
m("div", _e, [
|
|
216
|
+
e.message.time ? (n(), l("span", et, u(e.message.time), 1)) : i("", !0),
|
|
217
|
+
v(q, {
|
|
218
|
+
"base-class": "text-message",
|
|
219
|
+
"message-class": h(e.message),
|
|
220
|
+
"message-status": e.message.status,
|
|
221
|
+
"status-class": F.value,
|
|
222
|
+
"status-title": L.value
|
|
223
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
224
|
+
])
|
|
225
|
+
])
|
|
226
|
+
], 64)) : (n(), l(R, { key: 1 }, [
|
|
227
|
+
e.message.reply ? (n(), g(Ee, {
|
|
228
|
+
key: 0,
|
|
229
|
+
class: f(e.message.position),
|
|
230
|
+
message: e.message.reply,
|
|
231
|
+
onReply: t(ie)
|
|
232
|
+
}, null, 8, ["class", "message", "onReply"])) : i("", !0),
|
|
233
|
+
m("p", {
|
|
234
|
+
class: "text-message__text",
|
|
235
|
+
onClick: a[0] || (a[0] = //@ts-ignore
|
|
236
|
+
(...o) => t(I) && t(I)(...o)),
|
|
237
|
+
innerHTML: t(W)
|
|
238
|
+
}, null, 8, tt),
|
|
239
|
+
e.message.linkPreview ? (n(), g(pe, {
|
|
240
|
+
key: 1,
|
|
241
|
+
class: f(e.message.position),
|
|
242
|
+
"link-preview": e.message.linkPreview
|
|
243
|
+
}, null, 8, ["class", "link-preview"])) : i("", !0),
|
|
244
|
+
e.message.embed ? (n(), g(we, {
|
|
245
|
+
key: 2,
|
|
246
|
+
class: f(e.message.position),
|
|
247
|
+
embed: e.message.embed
|
|
248
|
+
}, null, 8, ["class", "embed"])) : i("", !0),
|
|
249
|
+
m("div", st, [
|
|
250
|
+
t(ce) ? (n(), g(Ae, {
|
|
251
|
+
key: 0,
|
|
252
|
+
ref_key: "reactionsRef",
|
|
253
|
+
ref: D,
|
|
254
|
+
reactions: e.message.reactions,
|
|
255
|
+
"message-id": e.message.messageId,
|
|
256
|
+
enabled: t(T),
|
|
257
|
+
mode: e.reactionsMode,
|
|
258
|
+
"current-user-id": e.currentUserId,
|
|
259
|
+
"reaction-user-names": e.reactionUserNames,
|
|
260
|
+
onToggleReaction: t(B),
|
|
261
|
+
onAddReaction: t(N),
|
|
262
|
+
onRemoveReaction: t(H)
|
|
263
|
+
}, null, 8, ["reactions", "message-id", "enabled", "mode", "current-user-id", "reaction-user-names", "onToggleReaction", "onAddReaction", "onRemoveReaction"])) : i("", !0),
|
|
264
|
+
m("div", at, [
|
|
265
|
+
e.message.views ? (n(), l("div", {
|
|
266
|
+
key: 0,
|
|
267
|
+
class: "text-message__views",
|
|
268
|
+
onClick: a[1] || (a[1] = //@ts-ignore
|
|
269
|
+
(...o) => t(C) && t(C)(...o))
|
|
270
|
+
}, [
|
|
271
|
+
a[7] || (a[7] = m("span", { class: "pi pi-eye" }, null, -1)),
|
|
272
|
+
m("p", null, u(e.message.views), 1)
|
|
273
|
+
])) : i("", !0),
|
|
274
|
+
e.message.edited ? (n(), g(O, {
|
|
275
|
+
key: 1,
|
|
276
|
+
position: "bottom-right",
|
|
277
|
+
offset: 8,
|
|
278
|
+
delay: 400,
|
|
279
|
+
"max-width": "280px",
|
|
280
|
+
"bubble-style": re
|
|
281
|
+
}, ke({
|
|
282
|
+
default: b(() => [
|
|
283
|
+
m("span", {
|
|
284
|
+
class: "text-message__edited",
|
|
285
|
+
onMouseenter: ye
|
|
286
|
+
}, u(le.value), 33)
|
|
287
|
+
]),
|
|
288
|
+
_: 2
|
|
289
|
+
}, [
|
|
290
|
+
me.value ? {
|
|
291
|
+
name: "content",
|
|
292
|
+
fn: b(() => [
|
|
293
|
+
m("div", nt, [
|
|
294
|
+
c.value.original ? (n(), l("div", ot, u(c.value.original), 1)) : i("", !0),
|
|
295
|
+
(n(!0), l(R, null, Re(c.value.edits, (o, xe) => (n(), l("div", {
|
|
296
|
+
key: `${o.text}-${o.meta}-${xe}`,
|
|
297
|
+
class: "text-message__edit-tooltip-entry"
|
|
298
|
+
}, [
|
|
299
|
+
o.text ? (n(), l("div", it, u(o.text), 1)) : i("", !0),
|
|
300
|
+
o.meta ? (n(), l("div", lt, u(o.meta), 1)) : i("", !0)
|
|
301
|
+
]))), 128))
|
|
302
|
+
])
|
|
303
|
+
]),
|
|
304
|
+
key: "0"
|
|
305
|
+
} : void 0
|
|
306
|
+
]), 1024)) : i("", !0),
|
|
307
|
+
e.message.time ? (n(), l("span", mt, u(e.message.time), 1)) : i("", !0),
|
|
308
|
+
v(q, {
|
|
309
|
+
"base-class": "text-message",
|
|
310
|
+
"message-class": h(e.message),
|
|
311
|
+
"message-status": e.message.status,
|
|
312
|
+
"status-class": F.value,
|
|
313
|
+
"status-title": L.value
|
|
314
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
315
|
+
])
|
|
316
|
+
]),
|
|
317
|
+
fe.value ? (n(), g(Ce, {
|
|
318
|
+
key: 3,
|
|
319
|
+
status: e.message.status,
|
|
320
|
+
"has-messenger-account": e.message.hasMessengerAccount,
|
|
321
|
+
channel: e.channel,
|
|
322
|
+
onSmsInvite: ve
|
|
323
|
+
}, null, 8, ["status", "has-messenger-account", "channel"])) : i("", !0),
|
|
324
|
+
t(X) && t(x).length && !e.reactionsEnabled && t(S) ? (n(), l("button", {
|
|
325
|
+
key: 4,
|
|
326
|
+
class: "text-message__menu-button",
|
|
327
|
+
onClick: a[2] || (a[2] = //@ts-ignore
|
|
328
|
+
(...o) => t(A) && t(A)(...o))
|
|
329
|
+
}, [...a[8] || (a[8] = [
|
|
330
|
+
m("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
331
|
+
])])) : i("", !0),
|
|
332
|
+
(n(), g(Ie, { to: "body" }, [
|
|
333
|
+
v(Se, null, {
|
|
334
|
+
default: b(() => [
|
|
335
|
+
t(K) && t(x).length ? (n(), g(Te, {
|
|
336
|
+
key: 0,
|
|
337
|
+
ref_key: "menuRef",
|
|
338
|
+
ref: Z,
|
|
339
|
+
class: "text-message__context-menu message-actions-menu",
|
|
340
|
+
style: k(t(_)),
|
|
341
|
+
"data-theme": t(ee),
|
|
342
|
+
actions: t(x),
|
|
343
|
+
onClick: t(oe),
|
|
344
|
+
onMouseenter: t(ae),
|
|
345
|
+
onMouseleave: t(ne)
|
|
346
|
+
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter", "onMouseleave"])) : i("", !0)
|
|
347
|
+
]),
|
|
348
|
+
_: 1
|
|
349
|
+
})
|
|
350
|
+
]))
|
|
351
|
+
], 64))
|
|
352
|
+
], 34)
|
|
353
|
+
], 46, Ke));
|
|
144
354
|
}
|
|
145
355
|
});
|
|
146
356
|
export {
|
|
147
|
-
|
|
357
|
+
Vt as default
|
|
148
358
|
};
|
|
@@ -1,40 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as s, openBlock as t, createCommentVNode as o, createElementVNode as i, normalizeStyle as r, toDisplayString as c } from "vue";
|
|
1
|
+
import o from "./TypingMessage.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
key: 1,
|
|
7
|
-
class: "typing-message__subtext"
|
|
8
|
-
};
|
|
9
|
-
function l(p, a, e, f, y, u) {
|
|
10
|
-
return t(), s("div", m, [
|
|
11
|
-
e.message.avatar ? (t(), s("img", {
|
|
12
|
-
key: 0,
|
|
13
|
-
class: "typing-message__avatar",
|
|
14
|
-
src: e.message.avatar,
|
|
15
|
-
height: "32",
|
|
16
|
-
width: "32",
|
|
17
|
-
style: r({ gridRow: e.message.subText ? "2" : "1" })
|
|
18
|
-
}, null, 12, g)) : o("v-if", !0),
|
|
19
|
-
e.message.subText ? (t(), s(
|
|
20
|
-
"p",
|
|
21
|
-
d,
|
|
22
|
-
c(e.message.subText),
|
|
23
|
-
1
|
|
24
|
-
/* TEXT */
|
|
25
|
-
)) : o("v-if", !0),
|
|
26
|
-
a[0] || (a[0] = i(
|
|
27
|
-
"div",
|
|
28
|
-
{ class: "typing-message__loader-container" },
|
|
29
|
-
[
|
|
30
|
-
i("div", { class: "typing-message__loader" })
|
|
31
|
-
],
|
|
32
|
-
-1
|
|
33
|
-
/* CACHED */
|
|
34
|
-
))
|
|
35
|
-
]);
|
|
36
|
-
}
|
|
37
|
-
const b = /* @__PURE__ */ _(n, [["render", l], ["__scopeId", "data-v-f4b94ea0"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/TypingMessage/TypingMessage.vue"]]);
|
|
3
|
+
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-58b238c0"]]);
|
|
38
5
|
export {
|
|
39
|
-
|
|
6
|
+
a as default
|
|
40
7
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { defineComponent as t } from "vue";
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as r, createElementBlock as s, openBlock as t, createCommentVNode as n, createElementVNode as i, normalizeStyle as g, toDisplayString as m } from "vue";
|
|
2
|
+
const o = { class: "typing-message__container" }, c = ["src"], l = {
|
|
3
|
+
key: 1,
|
|
4
|
+
class: "typing-message__subtext"
|
|
5
|
+
}, y = /* @__PURE__ */ r({
|
|
3
6
|
__name: "TypingMessage",
|
|
4
7
|
props: {
|
|
5
8
|
message: {
|
|
@@ -7,12 +10,23 @@ const n = /* @__PURE__ */ t({
|
|
|
7
10
|
required: !0
|
|
8
11
|
}
|
|
9
12
|
},
|
|
10
|
-
setup(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
setup(e) {
|
|
14
|
+
return (d, a) => (t(), s("div", o, [
|
|
15
|
+
e.message.avatar ? (t(), s("img", {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "typing-message__avatar",
|
|
18
|
+
src: e.message.avatar,
|
|
19
|
+
height: "32",
|
|
20
|
+
width: "32",
|
|
21
|
+
style: g({ gridRow: e.message.subText ? "2" : "1" })
|
|
22
|
+
}, null, 12, c)) : n("", !0),
|
|
23
|
+
e.message.subText ? (t(), s("p", l, m(e.message.subText), 1)) : n("", !0),
|
|
24
|
+
a[0] || (a[0] = i("div", { class: "typing-message__loader-container" }, [
|
|
25
|
+
i("div", { class: "typing-message__loader" })
|
|
26
|
+
], -1))
|
|
27
|
+
]));
|
|
14
28
|
}
|
|
15
29
|
});
|
|
16
30
|
export {
|
|
17
|
-
|
|
31
|
+
y as default
|
|
18
32
|
};
|