@mobilon-dev/chotto 0.3.119 → 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/dist/types/src/components/2_feed_elements/types/components.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,52 +1,34 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { useMessageActions as
|
|
13
|
-
import { useMessageHoverActions as
|
|
14
|
-
import { useMessageReactionsInFeed as
|
|
15
|
-
import { useMessageMenuActions as
|
|
16
|
-
import { useMessageLinks as
|
|
17
|
-
import { useChannelAccentColor as
|
|
18
|
-
import { useSubtextTooltip as
|
|
19
|
-
import { useStartReply as
|
|
20
|
-
import { useTheme as
|
|
1
|
+
import { defineComponent as Fe, inject as Ne, ref as i, computed as s, watch as E, nextTick as k, onMounted as Ve, onUnmounted as qe } from "vue";
|
|
2
|
+
import Ke from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import Qe from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import Ge from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import Je from "../FeedReplyQuote/FeedReplyQuote.vue.js";
|
|
6
|
+
import Xe from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
7
|
+
import Ye from "../MessageReactions/MessageReactions.vue.js";
|
|
8
|
+
import Ze from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
9
|
+
import et from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
10
|
+
import tt from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
11
|
+
import st from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
12
|
+
import { useMessageActions as nt } from "../../../hooks/messages/useMessageActions.js";
|
|
13
|
+
import { useMessageHoverActions as ot } from "../../../hooks/messages/useMessageHoverActions.js";
|
|
14
|
+
import { useMessageReactionsInFeed as at } from "../../../hooks/messages/useMessageReactionsInFeed.js";
|
|
15
|
+
import { useMessageMenuActions as it } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
16
|
+
import { useMessageLinks as rt } from "../../../hooks/messages/useMessageLinks.js";
|
|
17
|
+
import { useChannelAccentColor as lt } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
18
|
+
import { useSubtextTooltip as ut } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
19
|
+
import { useStartReply as mt } from "../../../hooks/messages/useStartReply.js";
|
|
20
|
+
import { useTheme as ct } from "../../../hooks/useTheme.js";
|
|
21
21
|
/* empty css */
|
|
22
22
|
/* empty css */
|
|
23
23
|
import "../../../locale/useLocale.js";
|
|
24
24
|
/* empty css */
|
|
25
|
-
import { buildReplyPayload as
|
|
26
|
-
import { getImageMessageItems as
|
|
27
|
-
import { getStatus as
|
|
28
|
-
import { getMessageClass as
|
|
29
|
-
import { createReactionHandlers as
|
|
25
|
+
import { buildReplyPayload as te } from "../../../hooks/messages/buildReplyPayload.js";
|
|
26
|
+
import { getImageMessageItems as gt } from "../../../hooks/messages/getImageMessageItems.js";
|
|
27
|
+
import { getStatus as dt, getStatusTitle as vt } from "../../../functions/getStatusMessage.js";
|
|
28
|
+
import { getMessageClass as pt } from "../../../functions/getMessageClass.js";
|
|
29
|
+
import { createReactionHandlers as ft } from "../../../functions/createReactionHandlers.js";
|
|
30
30
|
import "../../../functions/parseMarkdown.js";
|
|
31
|
-
const
|
|
32
|
-
key: 1,
|
|
33
|
-
class: "image-message__subtext"
|
|
34
|
-
}, Os = { class: "image-message__info-container" }, Bs = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "image-message__time"
|
|
37
|
-
}, Fs = ["onClick"], Ns = ["src", "alt"], zs = {
|
|
38
|
-
key: 0,
|
|
39
|
-
class: "image-message__album-overflow"
|
|
40
|
-
}, Hs = {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "image-message__blur-wrapper"
|
|
43
|
-
}, Vs = ["src", "alt"], $s = ["src", "alt"], Ds = ["src", "alt"], Ws = {
|
|
44
|
-
key: 0,
|
|
45
|
-
class: "image-message__info-container"
|
|
46
|
-
}, _s = { class: "image-message__time" }, qs = ["innerHTML"], Ks = { class: "image-message__modal-body" }, Qs = ["src", "alt"], Gs = {
|
|
47
|
-
key: 2,
|
|
48
|
-
class: "image-message__modal-counter"
|
|
49
|
-
}, B = 4, Ct = /* @__PURE__ */ as({
|
|
31
|
+
const f = 4, Kt = /* @__PURE__ */ Fe({
|
|
50
32
|
__name: "ImageMessage",
|
|
51
33
|
props: {
|
|
52
34
|
message: {
|
|
@@ -68,7 +50,7 @@ const Us = ["messageId"], Ps = ["src"], js = {
|
|
|
68
50
|
reactionsMode: {
|
|
69
51
|
type: String,
|
|
70
52
|
default: "single",
|
|
71
|
-
validator: (
|
|
53
|
+
validator: (x) => ["single", "multi"].includes(x)
|
|
72
54
|
},
|
|
73
55
|
currentUserId: {
|
|
74
56
|
type: [String, Number],
|
|
@@ -90,118 +72,119 @@ const Us = ["messageId"], Ps = ["src"], js = {
|
|
|
90
72
|
}
|
|
91
73
|
},
|
|
92
74
|
emits: ["action", "reply", "sms-invite"],
|
|
93
|
-
setup(
|
|
94
|
-
|
|
75
|
+
setup(x, { expose: se, emit: ne }) {
|
|
76
|
+
se();
|
|
77
|
+
const A = Ne("chatAppId"), { getTheme: oe } = ct(A || ""), { menuActions: O } = it(() => t.message), { hoverActionsEnabled: ae, reactionsActive: C } = ot(
|
|
95
78
|
() => t.channel,
|
|
96
79
|
() => t.reactionsEnabled,
|
|
97
80
|
() => t.message
|
|
98
|
-
), { startReply:
|
|
99
|
-
const
|
|
100
|
-
return (
|
|
101
|
-
}),
|
|
102
|
-
var
|
|
103
|
-
return ((
|
|
104
|
-
}),
|
|
105
|
-
var
|
|
106
|
-
return ((
|
|
107
|
-
}),
|
|
108
|
-
function
|
|
109
|
-
|
|
81
|
+
), { startReply: j } = mt(A || ""), t = x, b = ne, m = i(!1), r = i(0), o = s(() => gt(t.message)), v = s(() => o.value.length > 1), U = s(() => o.value.slice(0, f)), _ = s(() => Math.max(0, o.value.length - f)), ie = s(() => String(Math.min(o.value.length, f))), re = s(() => {
|
|
82
|
+
const e = o.value[0];
|
|
83
|
+
return (e == null ? void 0 : e.imagePreviewUrl) || (e == null ? void 0 : e.url) || "";
|
|
84
|
+
}), w = s(() => o.value[r.value] || o.value[0]), le = s(() => {
|
|
85
|
+
var e;
|
|
86
|
+
return ((e = w.value) == null ? void 0 : e.url) || "";
|
|
87
|
+
}), L = s(() => {
|
|
88
|
+
var e;
|
|
89
|
+
return ((e = w.value) == null ? void 0 : e.filename) || t.message.alt;
|
|
90
|
+
}), ue = s(() => v.value ? L.value || `${r.value + 1} / ${o.value.length}` : L.value);
|
|
91
|
+
function S(e) {
|
|
92
|
+
r.value = e, m.value = !0;
|
|
110
93
|
}
|
|
111
|
-
function
|
|
112
|
-
|
|
94
|
+
function me() {
|
|
95
|
+
v.value || S(0);
|
|
113
96
|
}
|
|
114
|
-
function
|
|
115
|
-
const
|
|
116
|
-
|
|
97
|
+
function ce(e) {
|
|
98
|
+
const u = _.value > 0 && e === U.value.length - 1;
|
|
99
|
+
S(u ? f : e);
|
|
117
100
|
}
|
|
118
|
-
function
|
|
119
|
-
const
|
|
120
|
-
|
|
101
|
+
function z() {
|
|
102
|
+
const e = o.value.length;
|
|
103
|
+
e < 2 || (r.value = (r.value - 1 + e) % e);
|
|
121
104
|
}
|
|
122
|
-
function
|
|
123
|
-
const
|
|
124
|
-
|
|
105
|
+
function P() {
|
|
106
|
+
const e = o.value.length;
|
|
107
|
+
e < 2 || (r.value = (r.value + 1) % e);
|
|
125
108
|
}
|
|
126
|
-
function
|
|
127
|
-
!
|
|
109
|
+
function h(e) {
|
|
110
|
+
!m.value || !v.value || (e.key === "ArrowLeft" ? (e.preventDefault(), z()) : e.key === "ArrowRight" && (e.preventDefault(), P()));
|
|
128
111
|
}
|
|
129
|
-
|
|
130
|
-
|
|
112
|
+
E(m, (e) => {
|
|
113
|
+
e ? window.addEventListener("keydown", h) : window.removeEventListener("keydown", h);
|
|
131
114
|
});
|
|
132
115
|
const {
|
|
133
|
-
isOpenMenu:
|
|
134
|
-
buttonMenuVisible:
|
|
135
|
-
menuAnchorRef:
|
|
136
|
-
menuRef:
|
|
137
|
-
menuStyle:
|
|
138
|
-
menuTheme:
|
|
139
|
-
showMenu:
|
|
140
|
-
hideMenu:
|
|
141
|
-
openMenu:
|
|
142
|
-
toggleMenu:
|
|
143
|
-
onMenuMouseEnter:
|
|
144
|
-
onMenuMouseLeave:
|
|
145
|
-
clickAction:
|
|
146
|
-
viewsAction:
|
|
147
|
-
handleClickReplied:
|
|
148
|
-
} =
|
|
149
|
-
onReply: () =>
|
|
150
|
-
}),
|
|
151
|
-
|
|
152
|
-
() =>
|
|
116
|
+
isOpenMenu: ge,
|
|
117
|
+
buttonMenuVisible: B,
|
|
118
|
+
menuAnchorRef: de,
|
|
119
|
+
menuRef: ve,
|
|
120
|
+
menuStyle: pe,
|
|
121
|
+
menuTheme: fe,
|
|
122
|
+
showMenu: H,
|
|
123
|
+
hideMenu: $,
|
|
124
|
+
openMenu: D,
|
|
125
|
+
toggleMenu: be,
|
|
126
|
+
onMenuMouseEnter: we,
|
|
127
|
+
onMenuMouseLeave: W,
|
|
128
|
+
clickAction: he,
|
|
129
|
+
viewsAction: Me,
|
|
130
|
+
handleClickReplied: ye
|
|
131
|
+
} = nt(t.message, b, {
|
|
132
|
+
onReply: () => j(te(t.message, "message.image"))
|
|
133
|
+
}), M = i(!1), { linkedHtml: F, inNewWindow: Re } = rt(() => t.message.text), l = i(null), a = i(null), c = i(0), y = i(0);
|
|
134
|
+
E(
|
|
135
|
+
() => F.value,
|
|
153
136
|
() => {
|
|
154
|
-
|
|
155
|
-
|
|
137
|
+
g(), k(() => {
|
|
138
|
+
n && a.value && n.observe(a.value);
|
|
156
139
|
});
|
|
157
140
|
}
|
|
158
141
|
);
|
|
159
|
-
const
|
|
160
|
-
|
|
161
|
-
|
|
142
|
+
const g = () => {
|
|
143
|
+
k(() => {
|
|
144
|
+
l.value && (c.value = l.value.offsetWidth), a.value && (y.value = a.value.offsetWidth);
|
|
162
145
|
});
|
|
163
146
|
};
|
|
164
|
-
let
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}),
|
|
169
|
-
}),
|
|
170
|
-
|
|
171
|
-
}),
|
|
147
|
+
let n = null, d = null;
|
|
148
|
+
Ve(() => {
|
|
149
|
+
g(), d = () => g(), window.addEventListener("resize", d), typeof ResizeObserver < "u" && (n = new ResizeObserver(() => {
|
|
150
|
+
g();
|
|
151
|
+
}), l.value && n.observe(l.value), a.value && n.observe(a.value));
|
|
152
|
+
}), qe(() => {
|
|
153
|
+
d && window.removeEventListener("resize", d), n && n.disconnect(), window.removeEventListener("keydown", h);
|
|
154
|
+
}), E(
|
|
172
155
|
() => [t.message.text, t.message.url, t.message.imagePreviewUrl, t.message.items],
|
|
173
156
|
() => {
|
|
174
|
-
|
|
175
|
-
|
|
157
|
+
g(), k(() => {
|
|
158
|
+
n && (n.disconnect(), l.value && n.observe(l.value), a.value && n.observe(a.value));
|
|
176
159
|
});
|
|
177
160
|
},
|
|
178
161
|
{ immediate: !0 }
|
|
179
162
|
);
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
},
|
|
183
|
-
|
|
184
|
-
},
|
|
185
|
-
|
|
186
|
-
},
|
|
187
|
-
|
|
163
|
+
const Ie = s(() => v.value ? !1 : !!t.message.text && y.value > c.value && c.value > 0), xe = () => {
|
|
164
|
+
H(), M.value = !0;
|
|
165
|
+
}, Ae = (e) => {
|
|
166
|
+
$(e), B.value || (M.value = !1);
|
|
167
|
+
}, Le = () => {
|
|
168
|
+
W(), M.value = !1;
|
|
169
|
+
}, Se = s(() => t.message.reply && t.message.text ? "0" : t.message.text ? y.value > c.value && c.value > 0 ? "0" : "var(--chotto-imagemessage-preview-with-caption-border-radius, 7px 7px 0 0)" : t.message.reply ? "var(--chotto-imagemessage-preview-with-reply-border-radius, 0 0 7px 7px)" : "var(--chotto-imagemessage-preview-border-radius, 7px)"), Te = s(() => dt(t.message.status)), Ee = s(() => vt(t.message.status, t.message.statusMsg)), { bubbleStyle: ke } = lt(
|
|
170
|
+
s(() => t.message),
|
|
188
171
|
{ cssVariable: "--chotto-imagemessage-right-bg", position: "right" }
|
|
189
172
|
);
|
|
190
|
-
function
|
|
191
|
-
return
|
|
173
|
+
function Oe(e) {
|
|
174
|
+
return pt(e.position, "image-message");
|
|
192
175
|
}
|
|
193
|
-
const
|
|
194
|
-
|
|
195
|
-
},
|
|
196
|
-
var
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
176
|
+
const Ce = () => {
|
|
177
|
+
m.value = !1;
|
|
178
|
+
}, N = s(() => m.value ? w.value : o.value[0]), je = async () => {
|
|
179
|
+
var u, Y;
|
|
180
|
+
const e = N.value;
|
|
181
|
+
if (e != null && e.url)
|
|
199
182
|
try {
|
|
200
|
-
const
|
|
183
|
+
const R = await fetch(e.url, {
|
|
201
184
|
headers: {
|
|
202
185
|
Accept: "image/*"
|
|
203
186
|
}
|
|
204
|
-
}),
|
|
187
|
+
}), He = R.headers.get("content-type") || "", $e = await R.blob(), T = ((Y = (u = e.url.split(".").pop()) == null ? void 0 : u.split("?")[0]) == null ? void 0 : Y.toLowerCase()) || "", De = {
|
|
205
188
|
"image/jpeg": "jpg",
|
|
206
189
|
"image/jpg": "jpg",
|
|
207
190
|
"image/png": "png",
|
|
@@ -210,310 +193,48 @@ const Us = ["messageId"], Ps = ["src"], js = {
|
|
|
210
193
|
"image/svg+xml": "svg",
|
|
211
194
|
"image/bmp": "bmp"
|
|
212
195
|
};
|
|
213
|
-
let
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
} catch (
|
|
217
|
-
console.error("Ошибка при скачивании изображения:",
|
|
196
|
+
let Z = T && ["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp"].includes(T) ? T : De[He] || "jpg";
|
|
197
|
+
const I = e.filename || t.message.alt, We = I ? I.includes(".") ? I : `${I}.${Z}` : `image-${t.message.messageId}.${Z}`, ee = window.URL.createObjectURL($e), p = document.createElement("a");
|
|
198
|
+
p.href = ee, p.download = We, document.body.appendChild(p), p.click(), document.body.removeChild(p), window.URL.revokeObjectURL(ee);
|
|
199
|
+
} catch (R) {
|
|
200
|
+
console.error("Ошибка при скачивании изображения:", R);
|
|
218
201
|
}
|
|
219
|
-
}, { onToggleReaction:
|
|
220
|
-
var
|
|
221
|
-
const
|
|
222
|
-
return
|
|
223
|
-
}), { showReactions:
|
|
202
|
+
}, { onToggleReaction: V, onAddReaction: q, onRemoveReaction: K } = ft(b), Q = i(null), G = i(null), J = s(() => {
|
|
203
|
+
var u;
|
|
204
|
+
const e = (u = G.value) == null ? void 0 : u.$el;
|
|
205
|
+
return e instanceof HTMLElement ? e : null;
|
|
206
|
+
}), { showReactions: Ue, onContentPointerEnter: _e, onContentPointerLeave: ze } = at({
|
|
224
207
|
message: () => t.message,
|
|
225
208
|
messageId: () => t.message.messageId,
|
|
226
209
|
reactions: () => t.message.reactions,
|
|
227
|
-
reactionsActive:
|
|
210
|
+
reactionsActive: C,
|
|
228
211
|
reactionsMode: () => t.reactionsMode,
|
|
229
|
-
reply: () =>
|
|
230
|
-
menuEnabled: () =>
|
|
231
|
-
contentRef:
|
|
232
|
-
chipsRef:
|
|
212
|
+
reply: () => te(t.message, "message.image"),
|
|
213
|
+
menuEnabled: () => O.value.length > 0,
|
|
214
|
+
contentRef: Q,
|
|
215
|
+
chipsRef: J,
|
|
233
216
|
handlers: {
|
|
234
|
-
onToggleReaction:
|
|
235
|
-
onAddReaction:
|
|
236
|
-
onRemoveReaction:
|
|
237
|
-
onMenu:
|
|
217
|
+
onToggleReaction: V,
|
|
218
|
+
onAddReaction: q,
|
|
219
|
+
onRemoveReaction: K,
|
|
220
|
+
onMenu: D
|
|
238
221
|
}
|
|
239
|
-
}),
|
|
240
|
-
function
|
|
241
|
-
|
|
222
|
+
}), Pe = ut(() => t.message, () => t.subtextTooltipData);
|
|
223
|
+
function Be() {
|
|
224
|
+
b("sms-invite", t.message);
|
|
242
225
|
}
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
}, [
|
|
254
|
-
e.message.avatar && e.isFirstInSeries ? (l(), o("img", {
|
|
255
|
-
key: 0,
|
|
256
|
-
class: "image-message__avatar",
|
|
257
|
-
src: e.message.avatar,
|
|
258
|
-
height: "32",
|
|
259
|
-
width: "32"
|
|
260
|
-
}, null, 8, Ps)) : i("", !0),
|
|
261
|
-
e.message.subText && e.isFirstInSeries ? (l(), o("p", js, [
|
|
262
|
-
v(ys, {
|
|
263
|
-
text: a(Ye),
|
|
264
|
-
position: e.message.position === "left" ? "right" : "left",
|
|
265
|
-
offset: 8
|
|
266
|
-
}, {
|
|
267
|
-
default: M(() => [
|
|
268
|
-
is(R(e.message.subText), 1)
|
|
269
|
-
]),
|
|
270
|
-
_: 1
|
|
271
|
-
}, 8, ["text", "position"])
|
|
272
|
-
])) : i("", !0),
|
|
273
|
-
m("div", {
|
|
274
|
-
ref_key: "contentRef",
|
|
275
|
-
ref: ve,
|
|
276
|
-
class: k(["image-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar, "has-caption": !!e.message.text }]),
|
|
277
|
-
onPointerenter: n[3] || (n[3] = //@ts-ignore
|
|
278
|
-
(...u) => a(be) && a(be)(...u)),
|
|
279
|
-
onPointerleave: n[4] || (n[4] = //@ts-ignore
|
|
280
|
-
(...u) => a(ye) && a(ye)(...u))
|
|
281
|
-
}, [
|
|
282
|
-
n[8] || (n[8] = m("div", {
|
|
283
|
-
class: "image-message__bottom-shadow",
|
|
284
|
-
"aria-hidden": "true"
|
|
285
|
-
}, null, -1)),
|
|
286
|
-
e.message.deleted ? (l(), o(O, { key: 0 }, [
|
|
287
|
-
v(bs),
|
|
288
|
-
m("div", Os, [
|
|
289
|
-
e.message.time ? (l(), o("span", Bs, R(e.message.time), 1)) : i("", !0),
|
|
290
|
-
v(Me, {
|
|
291
|
-
"base-class": "image-message",
|
|
292
|
-
"message-class": _(e.message),
|
|
293
|
-
"message-status": e.message.status,
|
|
294
|
-
"status-class": ue.value,
|
|
295
|
-
"status-title": re.value
|
|
296
|
-
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
297
|
-
])
|
|
298
|
-
], 64)) : (l(), o(O, { key: 1 }, [
|
|
299
|
-
e.message.reply ? (l(), p(cs, {
|
|
300
|
-
key: 0,
|
|
301
|
-
style: { margin: "10px 10px 4px 16px" },
|
|
302
|
-
class: k(e.message.position),
|
|
303
|
-
message: e.message.reply,
|
|
304
|
-
onReply: a(De)
|
|
305
|
-
}, null, 8, ["class", "message", "onReply"])) : i("", !0),
|
|
306
|
-
m("div", {
|
|
307
|
-
class: k(["image-message__preview-button", {
|
|
308
|
-
"image-message__preview-button--blur-edges": oe.value,
|
|
309
|
-
"image-message__preview-button--album": d.value
|
|
310
|
-
}]),
|
|
311
|
-
style: j(d.value ? { borderRadius: me.value } : void 0),
|
|
312
|
-
onClick: Le,
|
|
313
|
-
onMouseenter: We,
|
|
314
|
-
onMouseleave: ie
|
|
315
|
-
}, [
|
|
316
|
-
d.value ? (l(), o("div", {
|
|
317
|
-
key: 0,
|
|
318
|
-
class: k(["image-message__album", "image-message__album--" + Te.value])
|
|
319
|
-
}, [
|
|
320
|
-
(l(!0), o(O, null, ms(N.value, (u, h) => (l(), o("button", {
|
|
321
|
-
key: (u.url || "") + "-" + h,
|
|
322
|
-
type: "button",
|
|
323
|
-
class: "image-message__album-tile",
|
|
324
|
-
onClick: A((he) => Ee(h), ["stop"])
|
|
325
|
-
}, [
|
|
326
|
-
m("img", {
|
|
327
|
-
class: "image-message__album-image",
|
|
328
|
-
src: u.imagePreviewUrl || u.url,
|
|
329
|
-
alt: u.filename
|
|
330
|
-
}, null, 8, Ns),
|
|
331
|
-
z.value > 0 && h === N.value.length - 1 ? (l(), o("span", zs, "+" + R(z.value), 1)) : i("", !0)
|
|
332
|
-
], 8, Fs))), 128))
|
|
333
|
-
], 2)) : (l(), o(O, { key: 1 }, [
|
|
334
|
-
oe.value ? (l(), o("div", Hs, [
|
|
335
|
-
m("img", {
|
|
336
|
-
class: "image-message__blur-left",
|
|
337
|
-
src: H.value,
|
|
338
|
-
alt: e.message.alt
|
|
339
|
-
}, null, 8, Vs),
|
|
340
|
-
m("img", {
|
|
341
|
-
class: "image-message__blur-right",
|
|
342
|
-
src: H.value,
|
|
343
|
-
alt: e.message.alt
|
|
344
|
-
}, null, 8, $s)
|
|
345
|
-
])) : i("", !0),
|
|
346
|
-
m("img", {
|
|
347
|
-
ref_key: "imageRef",
|
|
348
|
-
ref: w,
|
|
349
|
-
class: "image-message__preview-image",
|
|
350
|
-
style: j({ borderRadius: me.value }),
|
|
351
|
-
src: H.value,
|
|
352
|
-
alt: e.message.alt
|
|
353
|
-
}, null, 12, Ds)
|
|
354
|
-
], 64)),
|
|
355
|
-
v(L, { name: "modal-fade" }, {
|
|
356
|
-
default: M(() => [
|
|
357
|
-
I.value ? (l(), o("div", Ws, [
|
|
358
|
-
e.message.views ? (l(), o("div", {
|
|
359
|
-
key: 0,
|
|
360
|
-
class: "image-message__views",
|
|
361
|
-
onClick: n[0] || (n[0] = A(
|
|
362
|
-
//@ts-ignore
|
|
363
|
-
(...u) => a(ae) && a(ae)(...u),
|
|
364
|
-
["stop"]
|
|
365
|
-
))
|
|
366
|
-
}, [
|
|
367
|
-
n[5] || (n[5] = m("span", { class: "pi pi-eye" }, null, -1)),
|
|
368
|
-
m("p", null, R(e.message.views), 1)
|
|
369
|
-
])) : i("", !0),
|
|
370
|
-
m("span", _s, R(e.message.time), 1),
|
|
371
|
-
v(Me, {
|
|
372
|
-
"base-class": "image-message",
|
|
373
|
-
"message-class": _(e.message),
|
|
374
|
-
"message-status": e.message.status,
|
|
375
|
-
"status-class": ue.value,
|
|
376
|
-
"status-title": re.value
|
|
377
|
-
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
378
|
-
])) : i("", !0)
|
|
379
|
-
]),
|
|
380
|
-
_: 1
|
|
381
|
-
}),
|
|
382
|
-
v(L, { name: "modal-fade" }, {
|
|
383
|
-
default: M(() => [
|
|
384
|
-
I.value ? (l(), o("button", {
|
|
385
|
-
key: 0,
|
|
386
|
-
class: "image-message__download-button",
|
|
387
|
-
onClick: A(Ge, ["stop"])
|
|
388
|
-
}, [...n[6] || (n[6] = [
|
|
389
|
-
m("span", { class: "pi pi-download" }, null, -1)
|
|
390
|
-
])])) : i("", !0)
|
|
391
|
-
]),
|
|
392
|
-
_: 1
|
|
393
|
-
})
|
|
394
|
-
], 38),
|
|
395
|
-
v(L, { name: "modal-fade" }, {
|
|
396
|
-
default: M(() => [
|
|
397
|
-
a(se) && a(E).length && !e.reactionsEnabled && a(Ie) ? (l(), o("button", {
|
|
398
|
-
key: 0,
|
|
399
|
-
class: "image-message__menu-button",
|
|
400
|
-
onClick: n[1] || (n[1] = //@ts-ignore
|
|
401
|
-
(...u) => a(te) && a(te)(...u))
|
|
402
|
-
}, [...n[7] || (n[7] = [
|
|
403
|
-
m("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
404
|
-
])])) : i("", !0)
|
|
405
|
-
]),
|
|
406
|
-
_: 1
|
|
407
|
-
}),
|
|
408
|
-
(l(), p(ke, { to: "body" }, [
|
|
409
|
-
v(L, { name: "context-menu" }, {
|
|
410
|
-
default: M(() => [
|
|
411
|
-
a(Ue) && a(E).length ? (l(), p(us, {
|
|
412
|
-
key: 0,
|
|
413
|
-
ref_key: "menuRef",
|
|
414
|
-
ref: je,
|
|
415
|
-
class: "image-message__context-menu message-actions-menu",
|
|
416
|
-
style: j(a(Oe)),
|
|
417
|
-
"data-theme": a(Be),
|
|
418
|
-
actions: a(E),
|
|
419
|
-
onClick: a($e),
|
|
420
|
-
onMouseenter: a(He),
|
|
421
|
-
onMouseleave: _e
|
|
422
|
-
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter"])) : i("", !0)
|
|
423
|
-
]),
|
|
424
|
-
_: 1
|
|
425
|
-
})
|
|
426
|
-
])),
|
|
427
|
-
e.message.text ? (l(), o("div", {
|
|
428
|
-
key: 1,
|
|
429
|
-
ref_key: "textRef",
|
|
430
|
-
ref: f,
|
|
431
|
-
class: "image-message__text-container"
|
|
432
|
-
}, [
|
|
433
|
-
m("p", {
|
|
434
|
-
onClick: n[2] || (n[2] = //@ts-ignore
|
|
435
|
-
(...u) => a(le) && a(le)(...u)),
|
|
436
|
-
innerHTML: a(ne)
|
|
437
|
-
}, null, 8, qs)
|
|
438
|
-
], 512)) : i("", !0),
|
|
439
|
-
v(fs, {
|
|
440
|
-
status: e.message.status,
|
|
441
|
-
"has-messenger-account": e.message.hasMessengerAccount,
|
|
442
|
-
channel: e.channel,
|
|
443
|
-
onSmsInvite: Ze
|
|
444
|
-
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
445
|
-
e.message.linkPreview ? (l(), p(rs, {
|
|
446
|
-
key: 2,
|
|
447
|
-
class: k(["image-message__link-preview", e.message.position]),
|
|
448
|
-
"link-preview": e.message.linkPreview
|
|
449
|
-
}, null, 8, ["class", "link-preview"])) : i("", !0),
|
|
450
|
-
e.message.embed ? (l(), p(gs, {
|
|
451
|
-
key: 3,
|
|
452
|
-
class: k(e.message.position),
|
|
453
|
-
embed: e.message.embed
|
|
454
|
-
}, null, 8, ["class", "embed"])) : i("", !0),
|
|
455
|
-
a(Xe) ? (l(), p(vs, {
|
|
456
|
-
key: 4,
|
|
457
|
-
ref_key: "reactionsRef",
|
|
458
|
-
ref: fe,
|
|
459
|
-
reactions: e.message.reactions,
|
|
460
|
-
"message-id": e.message.messageId,
|
|
461
|
-
enabled: a(X),
|
|
462
|
-
mode: e.reactionsMode,
|
|
463
|
-
"current-user-id": e.currentUserId,
|
|
464
|
-
"reaction-user-names": e.reactionUserNames,
|
|
465
|
-
onToggleReaction: a(ge),
|
|
466
|
-
onAddReaction: a(ce),
|
|
467
|
-
onRemoveReaction: a(de)
|
|
468
|
-
}, null, 8, ["reactions", "message-id", "enabled", "mode", "current-user-id", "reaction-user-names", "onToggleReaction", "onAddReaction", "onRemoveReaction"])) : i("", !0)
|
|
469
|
-
], 64))
|
|
470
|
-
], 34),
|
|
471
|
-
(l(), p(ke, { to: "body" }, [
|
|
472
|
-
v(L, { name: "modal-fade" }, {
|
|
473
|
-
default: M(() => [
|
|
474
|
-
x.value && !e.message.deleted ? (l(), p(ds, {
|
|
475
|
-
key: 0,
|
|
476
|
-
"data-theme": a(J)().theme ? a(J)().theme : "light",
|
|
477
|
-
title: Ae.value,
|
|
478
|
-
onClose: Ke
|
|
479
|
-
}, {
|
|
480
|
-
default: M(() => [
|
|
481
|
-
m("div", Ks, [
|
|
482
|
-
d.value ? (l(), o("button", {
|
|
483
|
-
key: 0,
|
|
484
|
-
type: "button",
|
|
485
|
-
class: "image-message__modal-nav image-message__modal-nav--prev",
|
|
486
|
-
"aria-label": "Предыдущее изображение",
|
|
487
|
-
onClick: A(Z, ["stop"])
|
|
488
|
-
}, [...n[9] || (n[9] = [
|
|
489
|
-
m("span", { class: "pi pi-chevron-left" }, null, -1)
|
|
490
|
-
])])) : i("", !0),
|
|
491
|
-
m("img", {
|
|
492
|
-
class: "image-message__modal-image",
|
|
493
|
-
src: Se.value,
|
|
494
|
-
alt: $.value
|
|
495
|
-
}, null, 8, Qs),
|
|
496
|
-
d.value ? (l(), o("button", {
|
|
497
|
-
key: 1,
|
|
498
|
-
type: "button",
|
|
499
|
-
class: "image-message__modal-nav image-message__modal-nav--next",
|
|
500
|
-
"aria-label": "Следующее изображение",
|
|
501
|
-
onClick: A(ee, ["stop"])
|
|
502
|
-
}, [...n[10] || (n[10] = [
|
|
503
|
-
m("span", { class: "pi pi-chevron-right" }, null, -1)
|
|
504
|
-
])])) : i("", !0),
|
|
505
|
-
d.value ? (l(), o("span", Gs, R(y.value + 1) + " / " + R(g.value.length), 1)) : i("", !0)
|
|
506
|
-
])
|
|
507
|
-
]),
|
|
508
|
-
_: 1
|
|
509
|
-
}, 8, ["data-theme", "title"])) : i("", !0)
|
|
510
|
-
]),
|
|
511
|
-
_: 1
|
|
512
|
-
})
|
|
513
|
-
]))
|
|
514
|
-
], 46, Us));
|
|
226
|
+
const X = { chatAppId: A, getTheme: oe, menuActions: O, hoverActionsEnabled: ae, reactionsActive: C, startReply: j, props: t, emit: b, isOpenModal: m, modalIndex: r, ALBUM_VISIBLE_LIMIT: f, imageItems: o, isAlbum: v, visibleAlbumItems: U, albumOverflow: _, albumLayout: ie, feedImageUrl: re, modalImage: w, modalImageUrl: le, modalImageAlt: L, modalTitle: ue, openModal: S, onPreviewClick: me, onAlbumTileClick: ce, showPrevModalImage: z, showNextModalImage: P, onModalKeydown: h, isOpenMenu: ge, buttonMenuVisible: B, menuAnchorRef: de, menuRef: ve, menuStyle: pe, menuTheme: fe, baseShowMenu: H, baseHideMenu: $, openMenu: D, toggleMenu: be, onMenuMouseEnter: we, baseOnMenuMouseLeave: W, clickAction: he, viewsAction: Me, handleClickReplied: ye, buttonDownloadVisible: M, linkedHtml: F, inNewWindow: Re, imageRef: l, textRef: a, imageWidth: c, textWidth: y, updateWidths: g, get resizeObserver() {
|
|
227
|
+
return n;
|
|
228
|
+
}, set resizeObserver(e) {
|
|
229
|
+
n = e;
|
|
230
|
+
}, get windowResizeHandler() {
|
|
231
|
+
return d;
|
|
232
|
+
}, set windowResizeHandler(e) {
|
|
233
|
+
d = e;
|
|
234
|
+
}, shouldApplyBlur: Ie, showMenu: xe, hideMenu: Ae, onMenuMouseLeave: Le, imageBorderRadius: Se, status: Te, statusTitle: Ee, rightBubbleStyle: ke, getClass: Oe, closeModal: Ce, downloadTarget: N, downloadImage: je, onToggleReaction: V, onAddReaction: q, onRemoveReaction: K, contentRef: Q, reactionsRef: G, chipsRef: J, showReactions: Ue, onContentPointerEnter: _e, onContentPointerLeave: ze, channelInfo: Pe, handleSmsInvite: Be, ContextMenu: Ke, LinkPreview: Qe, EmbedPreview: Ge, FeedReplyQuote: Je, ModalFullscreen: Xe, MessageReactions: Ye, MessageStatusIndicator: Ze, MessageSmsInvite: et, DeletedMessageContent: tt, Tooltip: st };
|
|
235
|
+
return Object.defineProperty(X, "__isScriptSetup", { enumerable: !1, value: !0 }), X;
|
|
515
236
|
}
|
|
516
237
|
});
|
|
517
238
|
export {
|
|
518
|
-
|
|
239
|
+
Kt as default
|
|
519
240
|
};
|