@mobilon-dev/chotto 0.3.97 → 0.3.98
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 +42 -61
- 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 -38
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -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/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/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
- 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 +8 -42
- 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 +61 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
- 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 +80 -51
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
- 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 +34 -60
- 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 +39 -33
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
- 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 +35 -67
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
- 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 +19 -39
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
- 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/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
- 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/FileMessage/FileMessage.vue.js +250 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
- 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 +155 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
- 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 +36 -120
- 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 +75 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
- 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 +346 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
- 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 +307 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
- 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 +307 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
- 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 +35 -18
- 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 +85 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
- 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 +253 -163
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
- 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 +31 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
- package/package.json +1 -1
|
@@ -1,19 +1,19 @@
|
|
|
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
|
|
15
|
-
import { useSubtextTooltip as
|
|
16
|
-
import { useStartReply as
|
|
1
|
+
import { defineComponent as V, inject as W, computed as a } from "vue";
|
|
2
|
+
import z from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import G from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import J from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import K from "../BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
6
|
+
import Q from "../MessageReactions/MessageReactions.vue.js";
|
|
7
|
+
import X from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
8
|
+
import Y from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
9
|
+
import Z from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
10
|
+
import ee from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
11
|
+
import { useMessageActions as te } from "../../../hooks/messages/useMessageActions.js";
|
|
12
|
+
import { useMessageMenuActions as oe } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
13
|
+
import { useMessageLinks as se } from "../../../hooks/messages/useMessageLinks.js";
|
|
14
|
+
import { useChannelAccentColor as ne } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
15
|
+
import { useSubtextTooltip as ie } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
16
|
+
import { useStartReply as re } from "../../../hooks/messages/useStartReply.js";
|
|
17
17
|
import "../../../hooks/useMessageDraft.js";
|
|
18
18
|
import "../../../hooks/useSearchModel.js";
|
|
19
19
|
import "../../../hooks/useTheme.js";
|
|
@@ -22,21 +22,12 @@ import "../../../hooks/useEmojiNative.js";
|
|
|
22
22
|
/* empty css */
|
|
23
23
|
import "../../../locale/useLocale.js";
|
|
24
24
|
/* empty css */
|
|
25
|
-
import { buildReplyPayload as
|
|
26
|
-
import { getStatus as
|
|
27
|
-
import { getMessageClass as
|
|
28
|
-
import { createReactionHandlers as
|
|
25
|
+
import { buildReplyPayload as p } from "../../../hooks/messages/buildReplyPayload.js";
|
|
26
|
+
import { getStatus as ae, getStatusTitle as me } from "../../../functions/getStatusMessage.js";
|
|
27
|
+
import { getMessageClass as le } from "../../../functions/getMessageClass.js";
|
|
28
|
+
import { createReactionHandlers as ue } from "../../../functions/createReactionHandlers.js";
|
|
29
29
|
import "../../../functions/parseMarkdown.js";
|
|
30
|
-
const
|
|
31
|
-
key: 1,
|
|
32
|
-
class: "file-message__subtext"
|
|
33
|
-
}, Ae = { class: "file-message__footer" }, Ee = { class: "file-message__info-container" }, Le = {
|
|
34
|
-
key: 0,
|
|
35
|
-
class: "file-message__time"
|
|
36
|
-
}, Ue = ["href"], Fe = { class: "file-message__filename-text" }, Ne = {
|
|
37
|
-
key: 1,
|
|
38
|
-
class: "file-message__text-container"
|
|
39
|
-
}, Oe = ["innerHTML"], Be = { class: "file-message__footer" }, je = { class: "file-message__info-container" }, Pe = { class: "file-message__time" }, fs = /* @__PURE__ */ te({
|
|
30
|
+
const He = /* @__PURE__ */ V({
|
|
40
31
|
__name: "FileMessage",
|
|
41
32
|
props: {
|
|
42
33
|
message: {
|
|
@@ -58,7 +49,7 @@ const xe = ["messageId"], Ie = ["src"], pe = {
|
|
|
58
49
|
reactionsMode: {
|
|
59
50
|
type: String,
|
|
60
51
|
default: "single",
|
|
61
|
-
validator: (
|
|
52
|
+
validator: (i) => ["single", "multi"].includes(i)
|
|
62
53
|
},
|
|
63
54
|
currentUserId: {
|
|
64
55
|
type: [String, Number],
|
|
@@ -80,217 +71,60 @@ const xe = ["messageId"], Ie = ["src"], pe = {
|
|
|
80
71
|
}
|
|
81
72
|
},
|
|
82
73
|
emits: ["action", "reply", "sms-invite"],
|
|
83
|
-
setup(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
74
|
+
setup(i, { expose: d, emit: g }) {
|
|
75
|
+
d();
|
|
76
|
+
const e = i, n = g, { linkedHtml: f, inNewWindow: b } = se(() => e.message.text), { menuActions: y } = oe(() => e.message), m = W("chatAppId"), { startReply: l } = re(m || ""), {
|
|
77
|
+
isOpenMenu: h,
|
|
78
|
+
buttonMenuVisible: w,
|
|
79
|
+
menuAnchorRef: M,
|
|
80
|
+
menuRef: R,
|
|
81
|
+
menuStyle: S,
|
|
82
|
+
menuTheme: v,
|
|
83
|
+
showMenu: k,
|
|
84
|
+
hideMenu: C,
|
|
85
|
+
openMenu: _,
|
|
86
|
+
toggleMenu: A,
|
|
87
|
+
onMenuMouseEnter: I,
|
|
88
|
+
onMenuMouseLeave: T,
|
|
89
|
+
clickAction: O,
|
|
90
|
+
viewsAction: L,
|
|
91
|
+
handleClickReplied: U
|
|
92
|
+
} = te(e.message, n, {
|
|
93
|
+
onReply: () => l(p(e.message, "message.file"))
|
|
94
|
+
}), j = a(() => ae(e.message.status)), x = a(() => me(e.message.status, e.message.statusMsg)), { bubbleStyle: E } = ne(
|
|
95
|
+
a(() => e.message),
|
|
104
96
|
{ cssVariable: "--chotto-filemessage-right-bg", position: "right" }
|
|
105
97
|
);
|
|
106
|
-
function
|
|
107
|
-
return
|
|
98
|
+
function P(t) {
|
|
99
|
+
return le(t.position, "file-message");
|
|
108
100
|
}
|
|
109
|
-
const { onToggleReaction:
|
|
110
|
-
if (
|
|
101
|
+
const { onToggleReaction: B, onAddReaction: F, onRemoveReaction: q } = ue(n), D = async () => {
|
|
102
|
+
if (e.message.url)
|
|
111
103
|
try {
|
|
112
|
-
const
|
|
113
|
-
if (
|
|
114
|
-
const
|
|
115
|
-
|
|
104
|
+
const t = new URL(e.message.url, window.location.href);
|
|
105
|
+
if (t.origin === window.location.origin) {
|
|
106
|
+
const s = document.createElement("a");
|
|
107
|
+
s.href = t.toString(), s.download = e.message.filename || `file-${e.message.messageId}`, document.body.appendChild(s), s.click(), document.body.removeChild(s);
|
|
116
108
|
return;
|
|
117
109
|
}
|
|
118
|
-
const
|
|
119
|
-
if (!
|
|
120
|
-
throw new Error(`HTTP error! status: ${
|
|
121
|
-
const
|
|
122
|
-
|
|
123
|
-
} catch (
|
|
124
|
-
console.error("Ошибка при скачивании файла:",
|
|
110
|
+
const r = await fetch(e.message.url);
|
|
111
|
+
if (!r.ok)
|
|
112
|
+
throw new Error(`HTTP error! status: ${r.status}`);
|
|
113
|
+
const $ = await r.blob(), c = window.URL.createObjectURL($), o = document.createElement("a");
|
|
114
|
+
o.href = c, o.download = e.message.filename || `file-${e.message.messageId}`, document.body.appendChild(o), o.click(), document.body.removeChild(o), window.URL.revokeObjectURL(c);
|
|
115
|
+
} catch (t) {
|
|
116
|
+
console.error("Ошибка при скачивании файла:", t), window.open(e.message.url, "_blank");
|
|
125
117
|
}
|
|
126
|
-
},
|
|
127
|
-
function
|
|
128
|
-
|
|
118
|
+
}, H = ie(() => e.message, () => e.subtextTooltipData);
|
|
119
|
+
function N() {
|
|
120
|
+
n("sms-invite", e.message);
|
|
129
121
|
}
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
k(e.message),
|
|
135
|
-
e.applyStyle(e.message)
|
|
136
|
-
]]),
|
|
137
|
-
messageId: e.message.messageId,
|
|
138
|
-
style: v(s(K)),
|
|
139
|
-
onMouseleave: t[4] || (t[4] = //@ts-ignore
|
|
140
|
-
(...o) => s(S) && s(S)(...o))
|
|
141
|
-
}, [
|
|
142
|
-
e.message.avatar && e.isFirstInSeries ? (i(), m("img", {
|
|
143
|
-
key: 0,
|
|
144
|
-
class: "file-message__avatar",
|
|
145
|
-
src: e.message.avatar,
|
|
146
|
-
height: "32",
|
|
147
|
-
width: "32",
|
|
148
|
-
style: v({ gridRow: e.message.subText ? "2" : "1" })
|
|
149
|
-
}, null, 12, Ie)) : l("", !0),
|
|
150
|
-
e.message.subText && e.isFirstInSeries ? (i(), m("p", pe, [
|
|
151
|
-
u(ye, {
|
|
152
|
-
text: s(_),
|
|
153
|
-
position: e.message.position === "left" ? "right" : "left",
|
|
154
|
-
offset: 8
|
|
155
|
-
}, {
|
|
156
|
-
default: A(() => [
|
|
157
|
-
ne(f(e.message.subText), 1)
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}, 8, ["text", "position"])
|
|
161
|
-
])) : l("", !0),
|
|
162
|
-
n("div", {
|
|
163
|
-
class: d(["file-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
164
|
-
style: v({ gridRow: e.message.subText ? "2" : "1" }),
|
|
165
|
-
onMouseenter: t[3] || (t[3] = //@ts-ignore
|
|
166
|
-
(...o) => s(R) && s(R)(...o))
|
|
167
|
-
}, [
|
|
168
|
-
t[9] || (t[9] = n("div", {
|
|
169
|
-
class: "file-message__bottom-shadow",
|
|
170
|
-
"aria-hidden": "true"
|
|
171
|
-
}, null, -1)),
|
|
172
|
-
e.message.deleted ? (i(), m(E, { key: 0 }, [
|
|
173
|
-
u(fe),
|
|
174
|
-
n("div", Ae, [
|
|
175
|
-
n("div", Ee, [
|
|
176
|
-
e.message.time ? (i(), m("span", Le, f(e.message.time), 1)) : l("", !0),
|
|
177
|
-
u(L, {
|
|
178
|
-
"base-class": "file-message",
|
|
179
|
-
"message-class": k(e.message),
|
|
180
|
-
"message-status": e.message.status,
|
|
181
|
-
"status-class": x.value,
|
|
182
|
-
"status-title": I.value
|
|
183
|
-
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
184
|
-
])
|
|
185
|
-
])
|
|
186
|
-
], 64)) : (i(), m(E, { key: 1 }, [
|
|
187
|
-
e.message.reply ? (i(), y(ge, {
|
|
188
|
-
key: 0,
|
|
189
|
-
message: e.message.reply,
|
|
190
|
-
class: d(e.message.position),
|
|
191
|
-
onReply: s(J)
|
|
192
|
-
}, null, 8, ["message", "class", "onReply"])) : l("", !0),
|
|
193
|
-
n("a", {
|
|
194
|
-
class: "file-message__link",
|
|
195
|
-
href: e.message.url,
|
|
196
|
-
onClick: ie(Z, ["prevent"])
|
|
197
|
-
}, [
|
|
198
|
-
t[5] || (t[5] = n("span", { class: "pi pi-file" }, null, -1)),
|
|
199
|
-
n("p", Fe, f(e.message.filename), 1),
|
|
200
|
-
t[6] || (t[6] = n("div", { class: "file-message__download-button" }, [
|
|
201
|
-
n("span", { class: "pi pi-download" })
|
|
202
|
-
], -1))
|
|
203
|
-
], 8, Ue),
|
|
204
|
-
e.message.text ? (i(), m("div", Ne, [
|
|
205
|
-
n("p", {
|
|
206
|
-
onClick: t[0] || (t[0] = //@ts-ignore
|
|
207
|
-
(...o) => s(M) && s(M)(...o)),
|
|
208
|
-
innerHTML: s(N)
|
|
209
|
-
}, null, 8, Oe)
|
|
210
|
-
])) : l("", !0),
|
|
211
|
-
e.message.linkPreview ? (i(), y(re, {
|
|
212
|
-
key: 2,
|
|
213
|
-
class: d(e.message.position),
|
|
214
|
-
"link-preview": e.message.linkPreview
|
|
215
|
-
}, null, 8, ["class", "link-preview"])) : l("", !0),
|
|
216
|
-
e.message.embed ? (i(), y(ue, {
|
|
217
|
-
key: 3,
|
|
218
|
-
class: d(e.message.position),
|
|
219
|
-
embed: e.message.embed
|
|
220
|
-
}, null, 8, ["class", "embed"])) : l("", !0),
|
|
221
|
-
n("div", Be, [
|
|
222
|
-
u(ce, {
|
|
223
|
-
reactions: e.message.reactions,
|
|
224
|
-
"message-id": e.message.messageId,
|
|
225
|
-
reply: s(U)(e.message, "message.file"),
|
|
226
|
-
enabled: e.reactionsEnabled,
|
|
227
|
-
mode: e.reactionsMode,
|
|
228
|
-
"current-user-id": e.currentUserId,
|
|
229
|
-
"reaction-user-names": e.reactionUserNames,
|
|
230
|
-
"menu-enabled": s(b).length > 0,
|
|
231
|
-
onToggleReaction: s(Q),
|
|
232
|
-
onAddReaction: s(X),
|
|
233
|
-
onRemoveReaction: s(Y),
|
|
234
|
-
onMenu: s($)
|
|
235
|
-
}, null, 8, ["reactions", "message-id", "reply", "enabled", "mode", "current-user-id", "reaction-user-names", "menu-enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction", "onMenu"]),
|
|
236
|
-
n("div", je, [
|
|
237
|
-
e.message.views ? (i(), m("div", {
|
|
238
|
-
key: 0,
|
|
239
|
-
class: "file-message__views",
|
|
240
|
-
onClick: t[1] || (t[1] = //@ts-ignore
|
|
241
|
-
(...o) => s(T) && s(T)(...o))
|
|
242
|
-
}, [
|
|
243
|
-
t[7] || (t[7] = n("span", { class: "pi pi-eye" }, null, -1)),
|
|
244
|
-
n("p", null, f(e.message.views), 1)
|
|
245
|
-
])) : l("", !0),
|
|
246
|
-
n("span", Pe, f(e.message.time), 1),
|
|
247
|
-
u(L, {
|
|
248
|
-
"base-class": "file-message",
|
|
249
|
-
"message-class": k(e.message),
|
|
250
|
-
"message-status": e.message.status,
|
|
251
|
-
"status-class": x.value,
|
|
252
|
-
"status-title": I.value
|
|
253
|
-
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
254
|
-
])
|
|
255
|
-
]),
|
|
256
|
-
u(de, {
|
|
257
|
-
status: e.message.status,
|
|
258
|
-
"has-messenger-account": e.message.hasMessengerAccount,
|
|
259
|
-
channel: e.channel,
|
|
260
|
-
onSmsInvite: ee
|
|
261
|
-
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
262
|
-
s(P) && s(b).length && !e.reactionsEnabled ? (i(), m("button", {
|
|
263
|
-
key: 4,
|
|
264
|
-
class: "file-message__menu-button",
|
|
265
|
-
onClick: t[2] || (t[2] = //@ts-ignore
|
|
266
|
-
(...o) => s(C) && s(C)(...o))
|
|
267
|
-
}, [...t[8] || (t[8] = [
|
|
268
|
-
n("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
269
|
-
])])) : l("", !0),
|
|
270
|
-
(i(), y(oe, { to: "body" }, [
|
|
271
|
-
u(le, null, {
|
|
272
|
-
default: A(() => [
|
|
273
|
-
s(j) && s(b).length ? (i(), y(me, {
|
|
274
|
-
key: 0,
|
|
275
|
-
ref_key: "menuRef",
|
|
276
|
-
ref: H,
|
|
277
|
-
class: "file-message__context-menu message-actions-menu",
|
|
278
|
-
style: v(s(D)),
|
|
279
|
-
"data-theme": s(q),
|
|
280
|
-
actions: s(b),
|
|
281
|
-
onClick: s(G),
|
|
282
|
-
onMouseenter: s(z),
|
|
283
|
-
onMouseleave: s(W)
|
|
284
|
-
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter", "onMouseleave"])) : l("", !0)
|
|
285
|
-
]),
|
|
286
|
-
_: 1
|
|
287
|
-
})
|
|
288
|
-
]))
|
|
289
|
-
], 64))
|
|
290
|
-
], 38)
|
|
291
|
-
], 46, xe));
|
|
122
|
+
const u = { props: e, emit: n, linkedHtml: f, inNewWindow: b, menuActions: y, chatAppId: m, startReply: l, isOpenMenu: h, buttonMenuVisible: w, menuAnchorRef: M, menuRef: R, menuStyle: S, menuTheme: v, showMenu: k, hideMenu: C, openMenu: _, toggleMenu: A, onMenuMouseEnter: I, onMenuMouseLeave: T, clickAction: O, viewsAction: L, handleClickReplied: U, status: j, statusTitle: x, rightBubbleStyle: E, getClass: P, onToggleReaction: B, onAddReaction: F, onRemoveReaction: q, downloadFile: D, channelInfo: H, handleSmsInvite: N, ContextMenu: z, LinkPreview: G, EmbedPreview: J, BaseReplyMessage: K, MessageReactions: Q, MessageStatusIndicator: X, MessageSmsInvite: Y, DeletedMessageContent: Z, Tooltip: ee, get buildReplyPayload() {
|
|
123
|
+
return p;
|
|
124
|
+
} };
|
|
125
|
+
return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
|
|
292
126
|
}
|
|
293
127
|
});
|
|
294
128
|
export {
|
|
295
|
-
|
|
129
|
+
He as default
|
|
296
130
|
};
|
|
@@ -1,7 +1,318 @@
|
|
|
1
|
-
import
|
|
1
|
+
import y from "./ImageMessage.vue2.js";
|
|
2
|
+
import { createElementBlock as l, openBlock as a, normalizeStyle as _, normalizeClass as c, createCommentVNode as n, createElementVNode as i, createBlock as o, createVNode as m, withCtx as g, createTextVNode as b, toDisplayString as u, Fragment as v, Transition as r, withModifiers as f, Teleport as h } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import M from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const k = ["messageId"], w = ["src"], R = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "image-message__subtext"
|
|
8
|
+
}, x = { class: "image-message__info-container" }, I = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "image-message__time"
|
|
11
|
+
}, C = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "image-message__blur-wrapper"
|
|
14
|
+
}, T = ["src", "alt"], A = ["src", "alt"], S = ["src", "alt"], B = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "image-message__info-container"
|
|
17
|
+
}, N = { class: "image-message__time" }, V = {
|
|
18
|
+
key: 1,
|
|
19
|
+
ref: "textRef",
|
|
20
|
+
class: "image-message__text-container"
|
|
21
|
+
}, E = ["innerHTML"], F = ["src", "alt"];
|
|
22
|
+
function P(D, t, s, e, L, H) {
|
|
23
|
+
return a(), l("div", {
|
|
24
|
+
ref: "menuAnchorRef",
|
|
25
|
+
class: c(["image-message", [
|
|
26
|
+
e.getClass(s.message),
|
|
27
|
+
s.applyStyle(s.message)
|
|
28
|
+
]]),
|
|
29
|
+
messageId: s.message.messageId,
|
|
30
|
+
style: _(e.rightBubbleStyle),
|
|
31
|
+
onMouseleave: e.hideMenu
|
|
32
|
+
}, [
|
|
33
|
+
s.message.avatar && s.isFirstInSeries ? (a(), l("img", {
|
|
34
|
+
key: 0,
|
|
35
|
+
class: "image-message__avatar",
|
|
36
|
+
src: s.message.avatar,
|
|
37
|
+
height: "32",
|
|
38
|
+
width: "32"
|
|
39
|
+
}, null, 8, w)) : n("v-if", !0),
|
|
40
|
+
s.message.subText && s.isFirstInSeries ? (a(), l("p", R, [
|
|
41
|
+
m(e.Tooltip, {
|
|
42
|
+
text: e.channelInfo,
|
|
43
|
+
position: s.message.position === "left" ? "right" : "left",
|
|
44
|
+
offset: 8
|
|
45
|
+
}, {
|
|
46
|
+
default: g(() => [
|
|
47
|
+
b(
|
|
48
|
+
u(s.message.subText),
|
|
49
|
+
1
|
|
50
|
+
/* TEXT */
|
|
51
|
+
)
|
|
52
|
+
]),
|
|
53
|
+
_: 1
|
|
54
|
+
/* STABLE */
|
|
55
|
+
}, 8, ["text", "position"])
|
|
56
|
+
])) : n("v-if", !0),
|
|
57
|
+
i(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
class: c(["image-message__content", { "is-first": s.isFirstInSeries, "with-avatar-indent": !s.isFirstInSeries && s.message.avatar, "has-caption": !!s.message.text }])
|
|
61
|
+
},
|
|
62
|
+
[
|
|
63
|
+
t[7] || (t[7] = i(
|
|
64
|
+
"div",
|
|
65
|
+
{
|
|
66
|
+
class: "image-message__bottom-shadow",
|
|
67
|
+
"aria-hidden": "true"
|
|
68
|
+
},
|
|
69
|
+
null,
|
|
70
|
+
-1
|
|
71
|
+
/* CACHED */
|
|
72
|
+
)),
|
|
73
|
+
s.message.deleted ? (a(), l(
|
|
74
|
+
v,
|
|
75
|
+
{ key: 0 },
|
|
76
|
+
[
|
|
77
|
+
m(e.DeletedMessageContent),
|
|
78
|
+
i("div", x, [
|
|
79
|
+
s.message.time ? (a(), l(
|
|
80
|
+
"span",
|
|
81
|
+
I,
|
|
82
|
+
u(s.message.time),
|
|
83
|
+
1
|
|
84
|
+
/* TEXT */
|
|
85
|
+
)) : n("v-if", !0),
|
|
86
|
+
m(e.MessageStatusIndicator, {
|
|
87
|
+
"base-class": "image-message",
|
|
88
|
+
"message-class": e.getClass(s.message),
|
|
89
|
+
"message-status": s.message.status,
|
|
90
|
+
"status-class": e.status,
|
|
91
|
+
"status-title": e.statusTitle
|
|
92
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
93
|
+
])
|
|
94
|
+
],
|
|
95
|
+
64
|
|
96
|
+
/* STABLE_FRAGMENT */
|
|
97
|
+
)) : (a(), l(
|
|
98
|
+
v,
|
|
99
|
+
{ key: 1 },
|
|
100
|
+
[
|
|
101
|
+
s.message.reply ? (a(), o(e.BaseReplyMessage, {
|
|
102
|
+
key: 0,
|
|
103
|
+
style: { margin: "10px 10px 4px 16px" },
|
|
104
|
+
class: c(s.message.position),
|
|
105
|
+
message: s.message.reply,
|
|
106
|
+
onReply: e.handleClickReplied
|
|
107
|
+
}, null, 8, ["class", "message", "onReply"])) : n("v-if", !0),
|
|
108
|
+
i(
|
|
109
|
+
"div",
|
|
110
|
+
{
|
|
111
|
+
class: c(["image-message__preview-button", { "image-message__preview-button--blur-edges": e.shouldApplyBlur }]),
|
|
112
|
+
onClick: t[1] || (t[1] = (d) => e.isOpenModal = !0),
|
|
113
|
+
onMouseenter: e.showMenu,
|
|
114
|
+
onMouseleave: e.hideMenu
|
|
115
|
+
},
|
|
116
|
+
[
|
|
117
|
+
e.shouldApplyBlur ? (a(), l("div", C, [
|
|
118
|
+
i("img", {
|
|
119
|
+
class: "image-message__blur-left",
|
|
120
|
+
src: s.message.url,
|
|
121
|
+
alt: s.message.alt
|
|
122
|
+
}, null, 8, T),
|
|
123
|
+
i("img", {
|
|
124
|
+
class: "image-message__blur-right",
|
|
125
|
+
src: s.message.url,
|
|
126
|
+
alt: s.message.alt
|
|
127
|
+
}, null, 8, A)
|
|
128
|
+
])) : n("v-if", !0),
|
|
129
|
+
i("img", {
|
|
130
|
+
ref: "imageRef",
|
|
131
|
+
class: "image-message__preview-image",
|
|
132
|
+
style: _({ borderRadius: e.imageBorderRadius }),
|
|
133
|
+
src: s.message.url,
|
|
134
|
+
alt: s.message.alt
|
|
135
|
+
}, null, 12, S),
|
|
136
|
+
m(r, { name: "modal-fade" }, {
|
|
137
|
+
default: g(() => [
|
|
138
|
+
e.buttonDownloadVisible ? (a(), l("div", B, [
|
|
139
|
+
s.message.views ? (a(), l("div", {
|
|
140
|
+
key: 0,
|
|
141
|
+
class: "image-message__views",
|
|
142
|
+
onClick: t[0] || (t[0] = f((...d) => e.viewsAction && e.viewsAction(...d), ["stop"]))
|
|
143
|
+
}, [
|
|
144
|
+
t[4] || (t[4] = i(
|
|
145
|
+
"span",
|
|
146
|
+
{ class: "pi pi-eye" },
|
|
147
|
+
null,
|
|
148
|
+
-1
|
|
149
|
+
/* CACHED */
|
|
150
|
+
)),
|
|
151
|
+
i(
|
|
152
|
+
"p",
|
|
153
|
+
null,
|
|
154
|
+
u(s.message.views),
|
|
155
|
+
1
|
|
156
|
+
/* TEXT */
|
|
157
|
+
)
|
|
158
|
+
])) : n("v-if", !0),
|
|
159
|
+
i(
|
|
160
|
+
"span",
|
|
161
|
+
N,
|
|
162
|
+
u(s.message.time),
|
|
163
|
+
1
|
|
164
|
+
/* TEXT */
|
|
165
|
+
),
|
|
166
|
+
m(e.MessageStatusIndicator, {
|
|
167
|
+
"base-class": "image-message",
|
|
168
|
+
"message-class": e.getClass(s.message),
|
|
169
|
+
"message-status": s.message.status,
|
|
170
|
+
"status-class": e.status,
|
|
171
|
+
"status-title": e.statusTitle
|
|
172
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
173
|
+
])) : n("v-if", !0)
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
/* STABLE */
|
|
177
|
+
}),
|
|
178
|
+
m(r, { name: "modal-fade" }, {
|
|
179
|
+
default: g(() => [
|
|
180
|
+
e.buttonDownloadVisible ? (a(), l("button", {
|
|
181
|
+
key: 0,
|
|
182
|
+
class: "image-message__download-button",
|
|
183
|
+
onClick: f(e.downloadImage, ["stop"])
|
|
184
|
+
}, [...t[5] || (t[5] = [
|
|
185
|
+
i(
|
|
186
|
+
"span",
|
|
187
|
+
{ class: "pi pi-download" },
|
|
188
|
+
null,
|
|
189
|
+
-1
|
|
190
|
+
/* CACHED */
|
|
191
|
+
)
|
|
192
|
+
])])) : n("v-if", !0)
|
|
193
|
+
]),
|
|
194
|
+
_: 1
|
|
195
|
+
/* STABLE */
|
|
196
|
+
})
|
|
197
|
+
],
|
|
198
|
+
34
|
|
199
|
+
/* CLASS, NEED_HYDRATION */
|
|
200
|
+
),
|
|
201
|
+
m(r, { name: "modal-fade" }, {
|
|
202
|
+
default: g(() => [
|
|
203
|
+
e.buttonMenuVisible && e.menuActions.length && !s.reactionsEnabled ? (a(), l("button", {
|
|
204
|
+
key: 0,
|
|
205
|
+
class: "image-message__menu-button",
|
|
206
|
+
onClick: t[2] || (t[2] = (...d) => e.toggleMenu && e.toggleMenu(...d))
|
|
207
|
+
}, [...t[6] || (t[6] = [
|
|
208
|
+
i(
|
|
209
|
+
"span",
|
|
210
|
+
{ class: "pi pi-ellipsis-h" },
|
|
211
|
+
null,
|
|
212
|
+
-1
|
|
213
|
+
/* CACHED */
|
|
214
|
+
)
|
|
215
|
+
])])) : n("v-if", !0)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
/* STABLE */
|
|
219
|
+
}),
|
|
220
|
+
(a(), o(h, { to: "body" }, [
|
|
221
|
+
m(r, { name: "context-menu" }, {
|
|
222
|
+
default: g(() => [
|
|
223
|
+
e.isOpenMenu && e.menuActions.length ? (a(), o(e.ContextMenu, {
|
|
224
|
+
key: 0,
|
|
225
|
+
ref: "menuRef",
|
|
226
|
+
class: "image-message__context-menu message-actions-menu",
|
|
227
|
+
style: _(e.menuStyle),
|
|
228
|
+
"data-theme": e.menuTheme,
|
|
229
|
+
actions: e.menuActions,
|
|
230
|
+
onClick: e.clickAction,
|
|
231
|
+
onMouseenter: e.onMenuMouseEnter,
|
|
232
|
+
onMouseleave: e.onMenuMouseLeave
|
|
233
|
+
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter"])) : n("v-if", !0)
|
|
234
|
+
]),
|
|
235
|
+
_: 1
|
|
236
|
+
/* STABLE */
|
|
237
|
+
})
|
|
238
|
+
])),
|
|
239
|
+
s.message.text ? (a(), l(
|
|
240
|
+
"div",
|
|
241
|
+
V,
|
|
242
|
+
[
|
|
243
|
+
i("p", {
|
|
244
|
+
onClick: t[3] || (t[3] = (...d) => e.inNewWindow && e.inNewWindow(...d)),
|
|
245
|
+
innerHTML: e.linkedHtml
|
|
246
|
+
}, null, 8, E)
|
|
247
|
+
],
|
|
248
|
+
512
|
|
249
|
+
/* NEED_PATCH */
|
|
250
|
+
)) : n("v-if", !0),
|
|
251
|
+
m(e.MessageSmsInvite, {
|
|
252
|
+
status: s.message.status,
|
|
253
|
+
"has-messenger-account": s.message.hasMessengerAccount,
|
|
254
|
+
channel: s.channel,
|
|
255
|
+
onSmsInvite: e.handleSmsInvite
|
|
256
|
+
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
257
|
+
s.message.linkPreview ? (a(), o(e.LinkPreview, {
|
|
258
|
+
key: 2,
|
|
259
|
+
class: c(["image-message__link-preview", s.message.position]),
|
|
260
|
+
"link-preview": s.message.linkPreview
|
|
261
|
+
}, null, 8, ["class", "link-preview"])) : n("v-if", !0),
|
|
262
|
+
s.message.embed ? (a(), o(e.EmbedPreview, {
|
|
263
|
+
key: 3,
|
|
264
|
+
class: c(s.message.position),
|
|
265
|
+
embed: s.message.embed
|
|
266
|
+
}, null, 8, ["class", "embed"])) : n("v-if", !0),
|
|
267
|
+
m(e.MessageReactions, {
|
|
268
|
+
reactions: s.message.reactions,
|
|
269
|
+
"message-id": s.message.messageId,
|
|
270
|
+
reply: e.buildReplyPayload(s.message, "message.image"),
|
|
271
|
+
enabled: s.reactionsEnabled,
|
|
272
|
+
mode: s.reactionsMode,
|
|
273
|
+
"current-user-id": s.currentUserId,
|
|
274
|
+
"reaction-user-names": s.reactionUserNames,
|
|
275
|
+
"menu-enabled": e.menuActions.length > 0,
|
|
276
|
+
onToggleReaction: e.onToggleReaction,
|
|
277
|
+
onAddReaction: e.onAddReaction,
|
|
278
|
+
onRemoveReaction: e.onRemoveReaction,
|
|
279
|
+
onMenu: e.openMenu
|
|
280
|
+
}, null, 8, ["reactions", "message-id", "reply", "enabled", "mode", "current-user-id", "reaction-user-names", "menu-enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction", "onMenu"])
|
|
281
|
+
],
|
|
282
|
+
64
|
|
283
|
+
/* STABLE_FRAGMENT */
|
|
284
|
+
))
|
|
285
|
+
],
|
|
286
|
+
2
|
|
287
|
+
/* CLASS */
|
|
288
|
+
),
|
|
289
|
+
(a(), o(h, { to: "body" }, [
|
|
290
|
+
m(r, { name: "modal-fade" }, {
|
|
291
|
+
default: g(() => [
|
|
292
|
+
e.isOpenModal && !s.message.deleted ? (a(), o(e.ModalFullscreen, {
|
|
293
|
+
key: 0,
|
|
294
|
+
"data-theme": e.getTheme().theme ? e.getTheme().theme : "light",
|
|
295
|
+
title: s.message.alt,
|
|
296
|
+
onClose: e.closeModal
|
|
297
|
+
}, {
|
|
298
|
+
default: g(() => [
|
|
299
|
+
i("img", {
|
|
300
|
+
class: "image-message__modal-image",
|
|
301
|
+
src: s.message.url,
|
|
302
|
+
alt: s.message.alt
|
|
303
|
+
}, null, 8, F)
|
|
304
|
+
]),
|
|
305
|
+
_: 1
|
|
306
|
+
/* STABLE */
|
|
307
|
+
}, 8, ["data-theme", "title"])) : n("v-if", !0)
|
|
308
|
+
]),
|
|
309
|
+
_: 1
|
|
310
|
+
/* STABLE */
|
|
311
|
+
})
|
|
312
|
+
]))
|
|
313
|
+
], 46, k);
|
|
314
|
+
}
|
|
315
|
+
const j = /* @__PURE__ */ M(y, [["render", P], ["__scopeId", "data-v-5120d7dd"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/ImageMessage/ImageMessage.vue"]]);
|
|
5
316
|
export {
|
|
6
|
-
|
|
317
|
+
j as default
|
|
7
318
|
};
|