@mobilon-dev/chotto 0.3.120 → 0.3.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +40 -59
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -35
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +30 -2
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +26 -13
- package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
- package/dist/components/1_icons/CloseIcon.vue.js +16 -10
- package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
- package/dist/components/1_icons/DeletedMessageIcon.vue.js +27 -0
- package/dist/components/1_icons/MenuIcon.vue.js +16 -10
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
- package/dist/components/1_icons/SearchIcon.vue.js +29 -17
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
- package/dist/components/1_icons/VerifiedBadge.vue.js +25 -19
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +552 -402
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +12 -46
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +62 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +80 -98
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +76 -45
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +100 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +16 -91
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +79 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +88 -111
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +32 -58
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +41 -35
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +143 -323
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +36 -68
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +71 -37
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +83 -62
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +22 -42
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +460 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +181 -499
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +37 -46
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +52 -4
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +16 -39
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +270 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +95 -274
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +409 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +143 -422
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +57 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +41 -69
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +97 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +102 -173
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +34 -118
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +94 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -76
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +348 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +97 -339
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +308 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +89 -299
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +321 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +96 -338
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +36 -19
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
- package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +170 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +239 -336
- package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +43 -25
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +256 -166
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +57 -39
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +185 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +161 -305
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +33 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +90 -59
- package/dist/types/src/apps/data/chats.d.ts +9 -2
- package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
- package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +0 -21
- /package/dist/types/src/components/{2_feed_elements/DeletedMessageContent/icons → 1_icons}/DeletedMessageIcon.vue.d.ts +0 -0
|
@@ -1,50 +1,32 @@
|
|
|
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 ne, inject as ie, ref as m, computed as t } from "vue";
|
|
2
|
+
import ae from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import re from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import me from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import le from "../FeedReplyQuote/FeedReplyQuote.vue.js";
|
|
6
|
+
import ue from "../MessageReactions/MessageReactions.vue.js";
|
|
7
|
+
import ce from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
8
|
+
import de from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
9
|
+
import pe from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
10
|
+
import ge from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
11
|
+
import { useMessageActions as fe } from "../../../hooks/messages/useMessageActions.js";
|
|
12
|
+
import { useMessageHoverActions as Me } from "../../../hooks/messages/useMessageHoverActions.js";
|
|
13
|
+
import { useMessageReactionsInFeed as be } from "../../../hooks/messages/useMessageReactionsInFeed.js";
|
|
14
|
+
import { useMessageMenuActions as he } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
15
|
+
import { useMessageLinks as ve } from "../../../hooks/messages/useMessageLinks.js";
|
|
16
|
+
import { useChannelAccentColor as ye } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
17
|
+
import { useSubtextTooltip as Re } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
18
|
+
import { useStartReply as Se } from "../../../hooks/messages/useStartReply.js";
|
|
19
|
+
import { useStartEdit as Ie } from "../../../hooks/messages/useStartEdit.js";
|
|
20
|
+
import { buildReplyPayload as I } from "../../../hooks/messages/buildReplyPayload.js";
|
|
21
|
+
import { buildEditPayload as Te } from "../../../hooks/messages/buildEditPayload.js";
|
|
22
|
+
import { getEditTooltipLines as Ee } from "../../../hooks/messages/getEditTooltipLines.js";
|
|
23
|
+
import { getDeletedTooltipLines as xe } from "../../../hooks/messages/getDeletedOriginalText.js";
|
|
24
|
+
import { getStatus as Ae, getStatusTitle as Ce } from "../../../functions/getStatusMessage.js";
|
|
25
|
+
import { getMessageClass as Le } from "../../../functions/getMessageClass.js";
|
|
26
|
+
import { createReactionHandlers as _e } from "../../../functions/createReactionHandlers.js";
|
|
27
27
|
import "../../../functions/parseMarkdown.js";
|
|
28
|
-
import { useLocale as
|
|
29
|
-
const
|
|
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({
|
|
28
|
+
import { useLocale as we } from "../../../locale/useLocale.js";
|
|
29
|
+
const at = /* @__PURE__ */ ne({
|
|
48
30
|
__name: "TextMessage",
|
|
49
31
|
props: {
|
|
50
32
|
message: {
|
|
@@ -66,7 +48,7 @@ const Ke = ["messageId"], Xe = ["src"], Ye = {
|
|
|
66
48
|
reactionsMode: {
|
|
67
49
|
type: String,
|
|
68
50
|
default: "single",
|
|
69
|
-
validator: (
|
|
51
|
+
validator: (n) => ["single", "multi"].includes(n)
|
|
70
52
|
},
|
|
71
53
|
currentUserId: {
|
|
72
54
|
type: [String, Number],
|
|
@@ -88,271 +70,79 @@ const Ke = ["messageId"], Xe = ["src"], Ye = {
|
|
|
88
70
|
}
|
|
89
71
|
},
|
|
90
72
|
emits: ["action", "reply", "sms-invite"],
|
|
91
|
-
setup(
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
() =>
|
|
95
|
-
() =>
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
73
|
+
setup(n, { expose: T, emit: E }) {
|
|
74
|
+
T();
|
|
75
|
+
const e = n, s = E, { t: l } = we(), { linkedHtml: x, inNewWindow: A } = ve(() => e.message.text), { menuActions: u } = he(() => e.message), { hoverActionsEnabled: C, reactionsActive: c } = Me(
|
|
76
|
+
() => e.channel,
|
|
77
|
+
() => e.reactionsEnabled,
|
|
78
|
+
() => e.message
|
|
79
|
+
), i = ie("chatAppId"), { startReply: d } = Se(i || ""), { startEdit: p } = Ie(i || ""), a = m(!1), {
|
|
80
|
+
isOpenMenu: L,
|
|
81
|
+
buttonMenuVisible: _,
|
|
82
|
+
menuAnchorRef: w,
|
|
83
|
+
menuRef: F,
|
|
84
|
+
menuStyle: P,
|
|
85
|
+
menuTheme: j,
|
|
86
|
+
showMenu: k,
|
|
87
|
+
hideMenu: H,
|
|
88
|
+
openMenu: g,
|
|
89
|
+
toggleMenu: O,
|
|
90
|
+
onMenuMouseEnter: q,
|
|
91
|
+
onMenuMouseLeave: B,
|
|
92
|
+
clickAction: D,
|
|
93
|
+
viewsAction: N,
|
|
94
|
+
handleClickReplied: U
|
|
95
|
+
} = fe(e.message, s, {
|
|
96
|
+
onReply: () => d(I(e.message, "message.text")),
|
|
97
|
+
onEdit: () => p(Te(e.message, "message.text"))
|
|
98
|
+
}), V = t(() => Ae(e.message.status)), Q = t(() => Ce(e.message.status, e.message.statusMsg)), W = t(() => l("component.TextMessage.edited")), r = t(() => Ee(e.message.edited)), $ = t(
|
|
99
|
+
() => !!(r.value.original || r.value.edits.length)
|
|
100
|
+
), z = t(() => xe(e.message)), G = {
|
|
118
101
|
"--chotto-tooltip-border": "1px solid #5F5F5F"
|
|
119
|
-
}, { bubbleStyle:
|
|
120
|
-
|
|
102
|
+
}, { bubbleStyle: J } = ye(
|
|
103
|
+
t(() => e.message),
|
|
121
104
|
{ cssVariable: "--chotto-textmessage-right-bg", position: "right" }
|
|
122
105
|
);
|
|
123
|
-
function
|
|
124
|
-
return
|
|
106
|
+
function K(o) {
|
|
107
|
+
return Le(o.position, "text-message");
|
|
125
108
|
}
|
|
126
|
-
const { onToggleReaction:
|
|
127
|
-
var
|
|
128
|
-
const
|
|
129
|
-
return
|
|
130
|
-
}), { showReactions:
|
|
131
|
-
message: () =>
|
|
132
|
-
messageId: () =>
|
|
133
|
-
reactions: () =>
|
|
134
|
-
reactionsActive:
|
|
135
|
-
reactionsMode: () =>
|
|
136
|
-
reply: () =>
|
|
137
|
-
menuEnabled: () =>
|
|
138
|
-
contentRef:
|
|
139
|
-
chipsRef:
|
|
109
|
+
const { onToggleReaction: f, onAddReaction: M, onRemoveReaction: b } = _e(s), h = m(null), v = m(null), y = t(() => {
|
|
110
|
+
var S;
|
|
111
|
+
const o = (S = v.value) == null ? void 0 : S.$el;
|
|
112
|
+
return o instanceof HTMLElement ? o : null;
|
|
113
|
+
}), { showReactions: X, onContentPointerEnter: Y, onContentPointerLeave: Z } = be({
|
|
114
|
+
message: () => e.message,
|
|
115
|
+
messageId: () => e.message.messageId,
|
|
116
|
+
reactions: () => e.message.reactions,
|
|
117
|
+
reactionsActive: c,
|
|
118
|
+
reactionsMode: () => e.reactionsMode,
|
|
119
|
+
reply: () => I(e.message, "message.text"),
|
|
120
|
+
menuEnabled: () => u.value.length > 0,
|
|
121
|
+
contentRef: h,
|
|
122
|
+
chipsRef: y,
|
|
140
123
|
handlers: {
|
|
141
|
-
onToggleReaction:
|
|
142
|
-
onAddReaction:
|
|
143
|
-
onRemoveReaction:
|
|
144
|
-
onMenu:
|
|
124
|
+
onToggleReaction: f,
|
|
125
|
+
onAddReaction: M,
|
|
126
|
+
onRemoveReaction: b,
|
|
127
|
+
onMenu: g
|
|
145
128
|
}
|
|
146
|
-
}),
|
|
147
|
-
() =>
|
|
129
|
+
}), ee = Re(() => e.message, () => e.subtextTooltipData), te = t(
|
|
130
|
+
() => e.message.status === "error" && e.message.hasMessengerAccount === !1
|
|
148
131
|
);
|
|
149
|
-
function
|
|
150
|
-
|
|
132
|
+
function se() {
|
|
133
|
+
s("sms-invite", e.message);
|
|
151
134
|
}
|
|
152
|
-
function
|
|
153
|
-
|
|
135
|
+
function oe() {
|
|
136
|
+
a.value || !e.message.edited || (a.value = !0, s("action", {
|
|
154
137
|
action: "fetchEditInfo",
|
|
155
|
-
messageId:
|
|
138
|
+
messageId: e.message.messageId,
|
|
156
139
|
type: "editInfo"
|
|
157
140
|
}));
|
|
158
141
|
}
|
|
159
|
-
|
|
160
|
-
|
|
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));
|
|
142
|
+
const R = { props: e, emit: s, t: l, linkedHtml: x, inNewWindow: A, menuActions: u, hoverActionsEnabled: C, reactionsActive: c, chatAppId: i, startReply: d, startEdit: p, editInfoRequested: a, isOpenMenu: L, buttonMenuVisible: _, menuAnchorRef: w, menuRef: F, menuStyle: P, menuTheme: j, showMenu: k, hideMenu: H, openMenu: g, toggleMenu: O, onMenuMouseEnter: q, onMenuMouseLeave: B, clickAction: D, viewsAction: N, handleClickReplied: U, status: V, statusTitle: Q, editedLabel: W, editTooltipLines: r, hasEditTooltip: $, deletedTooltip: z, editTooltipBubbleStyle: G, rightBubbleStyle: J, getClass: K, onToggleReaction: f, onAddReaction: M, onRemoveReaction: b, contentRef: h, reactionsRef: v, chipsRef: y, showReactions: X, onContentPointerEnter: Y, onContentPointerLeave: Z, channelInfo: ee, showSmsInvite: te, handleSmsInvite: se, onEditedHover: oe, ContextMenu: ae, LinkPreview: re, EmbedPreview: me, FeedReplyQuote: le, MessageReactions: ue, MessageStatusIndicator: ce, MessageSmsInvite: de, DeletedMessageContent: pe, Tooltip: ge };
|
|
143
|
+
return Object.defineProperty(R, "__isScriptSetup", { enumerable: !1, value: !0 }), R;
|
|
354
144
|
}
|
|
355
145
|
});
|
|
356
146
|
export {
|
|
357
|
-
|
|
147
|
+
at as default
|
|
358
148
|
};
|
|
@@ -1,7 +1,40 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./TypingMessage.vue2.js";
|
|
2
|
+
import { createElementBlock as s, openBlock as t, createCommentVNode as o, createElementVNode as i, normalizeStyle as r, toDisplayString as c } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = { class: "typing-message__container" }, g = ["src"], d = {
|
|
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"]]);
|
|
5
38
|
export {
|
|
6
|
-
|
|
39
|
+
b as default
|
|
7
40
|
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
key: 1,
|
|
4
|
-
class: "typing-message__subtext"
|
|
5
|
-
}, y = /* @__PURE__ */ r({
|
|
1
|
+
import { defineComponent as t } from "vue";
|
|
2
|
+
const n = /* @__PURE__ */ t({
|
|
6
3
|
__name: "TypingMessage",
|
|
7
4
|
props: {
|
|
8
5
|
message: {
|
|
@@ -10,23 +7,12 @@ const o = { class: "typing-message__container" }, c = ["src"], l = {
|
|
|
10
7
|
required: !0
|
|
11
8
|
}
|
|
12
9
|
},
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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
|
-
]));
|
|
10
|
+
setup(p, { expose: r }) {
|
|
11
|
+
r();
|
|
12
|
+
const e = {};
|
|
13
|
+
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
28
14
|
}
|
|
29
15
|
});
|
|
30
16
|
export {
|
|
31
|
-
|
|
17
|
+
n as default
|
|
32
18
|
};
|