@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,46 +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 { useMessageMenuActions as
|
|
14
|
-
import { useMessageLinks as
|
|
15
|
-
import { useChannelAccentColor as
|
|
16
|
-
import { useSubtextTooltip as
|
|
17
|
-
import { useStartReply as
|
|
1
|
+
import { defineComponent as de, inject as fe, ref as l, watch as C, nextTick as h, onMounted as ve, onUnmounted as be, computed as m } from "vue";
|
|
2
|
+
import he from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import we from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import Me from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import ye from "../BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
6
|
+
import Re from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
7
|
+
import xe from "../MessageReactions/MessageReactions.vue.js";
|
|
8
|
+
import Se from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
9
|
+
import je from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
10
|
+
import Oe from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
11
|
+
import Te from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
12
|
+
import { useMessageActions as Ae } from "../../../hooks/messages/useMessageActions.js";
|
|
13
|
+
import { useMessageMenuActions as Le } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
14
|
+
import { useMessageLinks as Ce } from "../../../hooks/messages/useMessageLinks.js";
|
|
15
|
+
import { useChannelAccentColor as Ie } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
16
|
+
import { useSubtextTooltip as ze } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
17
|
+
import { useStartReply as _e } from "../../../hooks/messages/useStartReply.js";
|
|
18
18
|
import "../../../hooks/useMessageDraft.js";
|
|
19
19
|
import "../../../hooks/useSearchModel.js";
|
|
20
|
-
import { useTheme as
|
|
20
|
+
import { useTheme as ke } from "../../../hooks/useTheme.js";
|
|
21
21
|
import "../../../hooks/useEmojiNative.js";
|
|
22
22
|
/* empty css */
|
|
23
23
|
/* empty css */
|
|
24
24
|
import "../../../locale/useLocale.js";
|
|
25
25
|
/* empty css */
|
|
26
|
-
import { buildReplyPayload as
|
|
27
|
-
import { getStatus as
|
|
28
|
-
import { getMessageClass as
|
|
29
|
-
import { createReactionHandlers as
|
|
26
|
+
import { buildReplyPayload as I } from "../../../hooks/messages/buildReplyPayload.js";
|
|
27
|
+
import { getStatus as Ee, getStatusTitle as Ue } from "../../../functions/getStatusMessage.js";
|
|
28
|
+
import { getMessageClass as Be } from "../../../functions/getMessageClass.js";
|
|
29
|
+
import { createReactionHandlers as He } from "../../../functions/createReactionHandlers.js";
|
|
30
30
|
import "../../../functions/parseMarkdown.js";
|
|
31
|
-
const
|
|
32
|
-
key: 1,
|
|
33
|
-
class: "image-message__subtext"
|
|
34
|
-
}, ts = { class: "image-message__info-container" }, as = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "image-message__time"
|
|
37
|
-
}, ns = {
|
|
38
|
-
key: 0,
|
|
39
|
-
class: "image-message__blur-wrapper"
|
|
40
|
-
}, is = ["src", "alt"], ls = ["src", "alt"], os = ["src", "alt"], ms = {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "image-message__info-container"
|
|
43
|
-
}, us = { class: "image-message__time" }, rs = ["innerHTML"], gs = ["src", "alt"], Ds = /* @__PURE__ */ Ie({
|
|
31
|
+
const ft = /* @__PURE__ */ de({
|
|
44
32
|
__name: "ImageMessage",
|
|
45
33
|
props: {
|
|
46
34
|
message: {
|
|
@@ -62,7 +50,7 @@ const _e = ["messageId"], es = ["src"], ss = {
|
|
|
62
50
|
reactionsMode: {
|
|
63
51
|
type: String,
|
|
64
52
|
default: "single",
|
|
65
|
-
validator: (
|
|
53
|
+
validator: (f) => ["single", "multi"].includes(f)
|
|
66
54
|
},
|
|
67
55
|
currentUserId: {
|
|
68
56
|
type: [String, Number],
|
|
@@ -84,77 +72,78 @@ const _e = ["messageId"], es = ["src"], ss = {
|
|
|
84
72
|
}
|
|
85
73
|
},
|
|
86
74
|
emits: ["action", "reply", "sms-invite"],
|
|
87
|
-
setup(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
75
|
+
setup(f, { expose: z, emit: _ }) {
|
|
76
|
+
z();
|
|
77
|
+
const v = fe("chatAppId"), { getTheme: k } = ke(v || ""), { menuActions: E } = Le(() => e.message), { startReply: w } = _e(v || ""), e = f, p = _, M = l(!1), {
|
|
78
|
+
isOpenMenu: U,
|
|
79
|
+
buttonMenuVisible: y,
|
|
80
|
+
menuAnchorRef: B,
|
|
81
|
+
menuRef: H,
|
|
82
|
+
menuStyle: W,
|
|
83
|
+
menuTheme: P,
|
|
84
|
+
showMenu: R,
|
|
85
|
+
hideMenu: x,
|
|
86
|
+
openMenu: D,
|
|
87
|
+
toggleMenu: $,
|
|
88
|
+
onMenuMouseEnter: q,
|
|
89
|
+
onMenuMouseLeave: S,
|
|
90
|
+
clickAction: F,
|
|
102
91
|
viewsAction: N,
|
|
103
|
-
handleClickReplied:
|
|
104
|
-
} =
|
|
105
|
-
onReply: () =>
|
|
106
|
-
}),
|
|
107
|
-
|
|
108
|
-
() =>
|
|
92
|
+
handleClickReplied: V
|
|
93
|
+
} = Ae(e.message, p, {
|
|
94
|
+
onReply: () => w(I(e.message, "message.image"))
|
|
95
|
+
}), c = l(!1), { linkedHtml: j, inNewWindow: G } = Ce(() => e.message.text), n = l(null), o = l(null), i = l(0), g = l(0);
|
|
96
|
+
C(
|
|
97
|
+
() => j.value,
|
|
109
98
|
() => {
|
|
110
|
-
|
|
111
|
-
|
|
99
|
+
a(), h(() => {
|
|
100
|
+
t && o.value && t.observe(o.value);
|
|
112
101
|
});
|
|
113
102
|
}
|
|
114
103
|
);
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
104
|
+
const a = () => {
|
|
105
|
+
h(() => {
|
|
106
|
+
n.value && (i.value = n.value.offsetWidth), o.value && (g.value = o.value.offsetWidth);
|
|
118
107
|
});
|
|
119
108
|
};
|
|
120
|
-
let
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}),
|
|
125
|
-
}),
|
|
126
|
-
|
|
127
|
-
}),
|
|
128
|
-
() => [
|
|
109
|
+
let t = null, r = null;
|
|
110
|
+
ve(() => {
|
|
111
|
+
a(), r = () => a(), window.addEventListener("resize", r), typeof ResizeObserver < "u" && (t = new ResizeObserver(() => {
|
|
112
|
+
a();
|
|
113
|
+
}), n.value && t.observe(n.value), o.value && t.observe(o.value));
|
|
114
|
+
}), be(() => {
|
|
115
|
+
r && window.removeEventListener("resize", r), t && t.disconnect();
|
|
116
|
+
}), C(
|
|
117
|
+
() => [e.message.text, e.message.url],
|
|
129
118
|
() => {
|
|
130
|
-
|
|
131
|
-
|
|
119
|
+
a(), h(() => {
|
|
120
|
+
t && (t.disconnect(), n.value && t.observe(n.value), o.value && t.observe(o.value));
|
|
132
121
|
});
|
|
133
122
|
},
|
|
134
123
|
{ immediate: !0 }
|
|
135
124
|
);
|
|
136
|
-
const
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
},
|
|
143
|
-
|
|
125
|
+
const J = m(() => e.message.text && g.value > i.value && i.value > 0), K = () => {
|
|
126
|
+
R(), c.value = !0;
|
|
127
|
+
}, Q = (s) => {
|
|
128
|
+
x(s), y.value || (c.value = !1);
|
|
129
|
+
}, X = () => {
|
|
130
|
+
S(), c.value = !1;
|
|
131
|
+
}, Y = m(() => e.message.reply && e.message.text ? "0" : e.message.text ? g.value > i.value && i.value > 0 ? "0" : "var(--chotto-imagemessage-preview-with-caption-border-radius, 7px 7px 0 0)" : e.message.reply ? "var(--chotto-imagemessage-preview-with-reply-border-radius, 0 0 7px 7px)" : "var(--chotto-imagemessage-preview-border-radius, 7px)"), Z = m(() => Ee(e.message.status)), ee = m(() => Ue(e.message.status, e.message.statusMsg)), { bubbleStyle: te } = Ie(
|
|
132
|
+
m(() => e.message),
|
|
144
133
|
{ cssVariable: "--chotto-imagemessage-right-bg", position: "right" }
|
|
145
134
|
);
|
|
146
|
-
function
|
|
147
|
-
return
|
|
135
|
+
function se(s) {
|
|
136
|
+
return Be(s.position, "image-message");
|
|
148
137
|
}
|
|
149
|
-
const
|
|
150
|
-
var
|
|
151
|
-
if (
|
|
138
|
+
const oe = () => M.value = !1, ne = async () => {
|
|
139
|
+
var s, T;
|
|
140
|
+
if (e.message.url)
|
|
152
141
|
try {
|
|
153
|
-
const
|
|
142
|
+
const d = await fetch(e.message.url, {
|
|
154
143
|
headers: {
|
|
155
144
|
Accept: "image/*"
|
|
156
145
|
}
|
|
157
|
-
}),
|
|
146
|
+
}), me = d.headers.get("content-type") || "", pe = await d.blob(), b = ((T = (s = e.message.url.split(".").pop()) == null ? void 0 : s.split("?")[0]) == null ? void 0 : T.toLowerCase()) || "", ce = {
|
|
158
147
|
"image/jpeg": "jpg",
|
|
159
148
|
"image/jpg": "jpg",
|
|
160
149
|
"image/png": "png",
|
|
@@ -163,240 +152,30 @@ const _e = ["messageId"], es = ["src"], ss = {
|
|
|
163
152
|
"image/svg+xml": "svg",
|
|
164
153
|
"image/bmp": "bmp"
|
|
165
154
|
};
|
|
166
|
-
let
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
} catch (
|
|
170
|
-
console.error("Ошибка при скачивании изображения:",
|
|
155
|
+
let A = b && ["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp"].includes(b) ? b : ce[me] || "jpg";
|
|
156
|
+
const ge = e.message.alt ? e.message.alt.includes(".") ? e.message.alt : `${e.message.alt}.${A}` : `image-${e.message.messageId}.${A}`, L = window.URL.createObjectURL(pe), u = document.createElement("a");
|
|
157
|
+
u.href = L, u.download = ge, document.body.appendChild(u), u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(L);
|
|
158
|
+
} catch (d) {
|
|
159
|
+
console.error("Ошибка при скачивании изображения:", d);
|
|
171
160
|
}
|
|
172
|
-
}, { onToggleReaction:
|
|
173
|
-
function
|
|
174
|
-
|
|
161
|
+
}, { onToggleReaction: ie, onAddReaction: ae, onRemoveReaction: re } = He(p), le = ze(() => e.message, () => e.subtextTooltipData);
|
|
162
|
+
function ue() {
|
|
163
|
+
p("sms-invite", e.message);
|
|
175
164
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
key: 0,
|
|
189
|
-
class: "image-message__avatar",
|
|
190
|
-
src: e.message.avatar,
|
|
191
|
-
height: "32",
|
|
192
|
-
width: "32"
|
|
193
|
-
}, null, 8, es)) : i("", !0),
|
|
194
|
-
e.message.subText && e.isFirstInSeries ? (n(), o("p", ss, [
|
|
195
|
-
r(We, {
|
|
196
|
-
text: s(ke),
|
|
197
|
-
position: e.message.position === "left" ? "right" : "left",
|
|
198
|
-
offset: 8
|
|
199
|
-
}, {
|
|
200
|
-
default: v(() => [
|
|
201
|
-
Ee(C(e.message.subText), 1)
|
|
202
|
-
]),
|
|
203
|
-
_: 1
|
|
204
|
-
}, 8, ["text", "position"])
|
|
205
|
-
])) : i("", !0),
|
|
206
|
-
l("div", {
|
|
207
|
-
class: y(["image-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar, "has-caption": !!e.message.text }])
|
|
208
|
-
}, [
|
|
209
|
-
a[7] || (a[7] = l("div", {
|
|
210
|
-
class: "image-message__bottom-shadow",
|
|
211
|
-
"aria-hidden": "true"
|
|
212
|
-
}, null, -1)),
|
|
213
|
-
e.message.deleted ? (n(), o(K, { key: 0 }, [
|
|
214
|
-
r(He),
|
|
215
|
-
l("div", ts, [
|
|
216
|
-
e.message.time ? (n(), o("span", as, C(e.message.time), 1)) : i("", !0),
|
|
217
|
-
r(Y, {
|
|
218
|
-
"base-class": "image-message",
|
|
219
|
-
"message-class": L(e.message),
|
|
220
|
-
"message-status": e.message.status,
|
|
221
|
-
"status-class": P.value,
|
|
222
|
-
"status-title": $.value
|
|
223
|
-
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
224
|
-
])
|
|
225
|
-
], 64)) : (n(), o(K, { key: 1 }, [
|
|
226
|
-
e.message.reply ? (n(), f(ze, {
|
|
227
|
-
key: 0,
|
|
228
|
-
style: { margin: "10px 10px 4px 16px" },
|
|
229
|
-
class: y(e.message.position),
|
|
230
|
-
message: e.message.reply,
|
|
231
|
-
onReply: s(ce)
|
|
232
|
-
}, null, 8, ["class", "message", "onReply"])) : i("", !0),
|
|
233
|
-
l("div", {
|
|
234
|
-
class: y(["image-message__preview-button", { "image-message__preview-button--blur-edges": W.value }]),
|
|
235
|
-
onClick: a[1] || (a[1] = (u) => I.value = !0),
|
|
236
|
-
onMouseenter: de,
|
|
237
|
-
onMouseleave: D
|
|
238
|
-
}, [
|
|
239
|
-
W.value ? (n(), o("div", ns, [
|
|
240
|
-
l("img", {
|
|
241
|
-
class: "image-message__blur-left",
|
|
242
|
-
src: e.message.url,
|
|
243
|
-
alt: e.message.alt
|
|
244
|
-
}, null, 8, is),
|
|
245
|
-
l("img", {
|
|
246
|
-
class: "image-message__blur-right",
|
|
247
|
-
src: e.message.url,
|
|
248
|
-
alt: e.message.alt
|
|
249
|
-
}, null, 8, ls)
|
|
250
|
-
])) : i("", !0),
|
|
251
|
-
l("img", {
|
|
252
|
-
ref_key: "imageRef",
|
|
253
|
-
ref: c,
|
|
254
|
-
class: "image-message__preview-image",
|
|
255
|
-
style: O({ borderRadius: ve.value }),
|
|
256
|
-
src: e.message.url,
|
|
257
|
-
alt: e.message.alt
|
|
258
|
-
}, null, 12, os),
|
|
259
|
-
r(x, { name: "modal-fade" }, {
|
|
260
|
-
default: v(() => [
|
|
261
|
-
h.value ? (n(), o("div", ms, [
|
|
262
|
-
e.message.views ? (n(), o("div", {
|
|
263
|
-
key: 0,
|
|
264
|
-
class: "image-message__views",
|
|
265
|
-
onClick: a[0] || (a[0] = Q(
|
|
266
|
-
//@ts-ignore
|
|
267
|
-
(...u) => s(N) && s(N)(...u),
|
|
268
|
-
["stop"]
|
|
269
|
-
))
|
|
270
|
-
}, [
|
|
271
|
-
a[4] || (a[4] = l("span", { class: "pi pi-eye" }, null, -1)),
|
|
272
|
-
l("p", null, C(e.message.views), 1)
|
|
273
|
-
])) : i("", !0),
|
|
274
|
-
l("span", us, C(e.message.time), 1),
|
|
275
|
-
r(Y, {
|
|
276
|
-
"base-class": "image-message",
|
|
277
|
-
"message-class": L(e.message),
|
|
278
|
-
"message-status": e.message.status,
|
|
279
|
-
"status-class": P.value,
|
|
280
|
-
"status-title": $.value
|
|
281
|
-
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
282
|
-
])) : i("", !0)
|
|
283
|
-
]),
|
|
284
|
-
_: 1
|
|
285
|
-
}),
|
|
286
|
-
r(x, { name: "modal-fade" }, {
|
|
287
|
-
default: v(() => [
|
|
288
|
-
h.value ? (n(), o("button", {
|
|
289
|
-
key: 0,
|
|
290
|
-
class: "image-message__download-button",
|
|
291
|
-
onClick: Q(he, ["stop"])
|
|
292
|
-
}, [...a[5] || (a[5] = [
|
|
293
|
-
l("span", { class: "pi pi-download" }, null, -1)
|
|
294
|
-
])])) : i("", !0)
|
|
295
|
-
]),
|
|
296
|
-
_: 1
|
|
297
|
-
})
|
|
298
|
-
], 34),
|
|
299
|
-
r(x, { name: "modal-fade" }, {
|
|
300
|
-
default: v(() => [
|
|
301
|
-
s(z) && s(R).length && !e.reactionsEnabled ? (n(), o("button", {
|
|
302
|
-
key: 0,
|
|
303
|
-
class: "image-message__menu-button",
|
|
304
|
-
onClick: a[2] || (a[2] = //@ts-ignore
|
|
305
|
-
(...u) => s(F) && s(F)(...u))
|
|
306
|
-
}, [...a[6] || (a[6] = [
|
|
307
|
-
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
308
|
-
])])) : i("", !0)
|
|
309
|
-
]),
|
|
310
|
-
_: 1
|
|
311
|
-
}),
|
|
312
|
-
(n(), f(X, { to: "body" }, [
|
|
313
|
-
r(x, { name: "context-menu" }, {
|
|
314
|
-
default: v(() => [
|
|
315
|
-
s(se) && s(R).length ? (n(), f(Oe, {
|
|
316
|
-
key: 0,
|
|
317
|
-
ref_key: "menuRef",
|
|
318
|
-
ref: ae,
|
|
319
|
-
class: "image-message__context-menu message-actions-menu",
|
|
320
|
-
style: O(s(ne)),
|
|
321
|
-
"data-theme": s(ie),
|
|
322
|
-
actions: s(R),
|
|
323
|
-
onClick: s(ge),
|
|
324
|
-
onMouseenter: s(ue),
|
|
325
|
-
onMouseleave: fe
|
|
326
|
-
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter"])) : i("", !0)
|
|
327
|
-
]),
|
|
328
|
-
_: 1
|
|
329
|
-
})
|
|
330
|
-
])),
|
|
331
|
-
e.message.text ? (n(), o("div", {
|
|
332
|
-
key: 1,
|
|
333
|
-
ref_key: "textRef",
|
|
334
|
-
ref: g,
|
|
335
|
-
class: "image-message__text-container"
|
|
336
|
-
}, [
|
|
337
|
-
l("p", {
|
|
338
|
-
onClick: a[3] || (a[3] = //@ts-ignore
|
|
339
|
-
(...u) => s(H) && s(H)(...u)),
|
|
340
|
-
innerHTML: s(V)
|
|
341
|
-
}, null, 8, rs)
|
|
342
|
-
], 512)) : i("", !0),
|
|
343
|
-
r(Ve, {
|
|
344
|
-
status: e.message.status,
|
|
345
|
-
"has-messenger-account": e.message.hasMessengerAccount,
|
|
346
|
-
channel: e.channel,
|
|
347
|
-
onSmsInvite: xe
|
|
348
|
-
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
349
|
-
e.message.linkPreview ? (n(), f(Be, {
|
|
350
|
-
key: 2,
|
|
351
|
-
class: y(["image-message__link-preview", e.message.position]),
|
|
352
|
-
"link-preview": e.message.linkPreview
|
|
353
|
-
}, null, 8, ["class", "link-preview"])) : i("", !0),
|
|
354
|
-
e.message.embed ? (n(), f(Ue, {
|
|
355
|
-
key: 3,
|
|
356
|
-
class: y(e.message.position),
|
|
357
|
-
embed: e.message.embed
|
|
358
|
-
}, null, 8, ["class", "embed"])) : i("", !0),
|
|
359
|
-
r(Ne, {
|
|
360
|
-
reactions: e.message.reactions,
|
|
361
|
-
"message-id": e.message.messageId,
|
|
362
|
-
reply: s(Z)(e.message, "message.image"),
|
|
363
|
-
enabled: e.reactionsEnabled,
|
|
364
|
-
mode: e.reactionsMode,
|
|
365
|
-
"current-user-id": e.currentUserId,
|
|
366
|
-
"reaction-user-names": e.reactionUserNames,
|
|
367
|
-
"menu-enabled": s(R).length > 0,
|
|
368
|
-
onToggleReaction: s(we),
|
|
369
|
-
onAddReaction: s(Me),
|
|
370
|
-
onRemoveReaction: s(pe),
|
|
371
|
-
onMenu: s(me)
|
|
372
|
-
}, null, 8, ["reactions", "message-id", "reply", "enabled", "mode", "current-user-id", "reaction-user-names", "menu-enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction", "onMenu"])
|
|
373
|
-
], 64))
|
|
374
|
-
], 2),
|
|
375
|
-
(n(), f(X, { to: "body" }, [
|
|
376
|
-
r(x, { name: "modal-fade" }, {
|
|
377
|
-
default: v(() => [
|
|
378
|
-
I.value && !e.message.deleted ? (n(), f(Fe, {
|
|
379
|
-
key: 0,
|
|
380
|
-
"data-theme": s(U)().theme ? s(U)().theme : "light",
|
|
381
|
-
title: e.message.alt,
|
|
382
|
-
onClose: ye
|
|
383
|
-
}, {
|
|
384
|
-
default: v(() => [
|
|
385
|
-
l("img", {
|
|
386
|
-
class: "image-message__modal-image",
|
|
387
|
-
src: e.message.url,
|
|
388
|
-
alt: e.message.alt
|
|
389
|
-
}, null, 8, gs)
|
|
390
|
-
]),
|
|
391
|
-
_: 1
|
|
392
|
-
}, 8, ["data-theme", "title"])) : i("", !0)
|
|
393
|
-
]),
|
|
394
|
-
_: 1
|
|
395
|
-
})
|
|
396
|
-
]))
|
|
397
|
-
], 46, _e));
|
|
165
|
+
const O = { chatAppId: v, getTheme: k, menuActions: E, startReply: w, props: e, emit: p, isOpenModal: M, isOpenMenu: U, buttonMenuVisible: y, menuAnchorRef: B, menuRef: H, menuStyle: W, menuTheme: P, baseShowMenu: R, baseHideMenu: x, openMenu: D, toggleMenu: $, onMenuMouseEnter: q, baseOnMenuMouseLeave: S, clickAction: F, viewsAction: N, handleClickReplied: V, buttonDownloadVisible: c, linkedHtml: j, inNewWindow: G, imageRef: n, textRef: o, imageWidth: i, textWidth: g, updateWidths: a, get resizeObserver() {
|
|
166
|
+
return t;
|
|
167
|
+
}, set resizeObserver(s) {
|
|
168
|
+
t = s;
|
|
169
|
+
}, get windowResizeHandler() {
|
|
170
|
+
return r;
|
|
171
|
+
}, set windowResizeHandler(s) {
|
|
172
|
+
r = s;
|
|
173
|
+
}, shouldApplyBlur: J, showMenu: K, hideMenu: Q, onMenuMouseLeave: X, imageBorderRadius: Y, status: Z, statusTitle: ee, rightBubbleStyle: te, getClass: se, closeModal: oe, downloadImage: ne, onToggleReaction: ie, onAddReaction: ae, onRemoveReaction: re, channelInfo: le, handleSmsInvite: ue, ContextMenu: he, LinkPreview: we, EmbedPreview: Me, BaseReplyMessage: ye, ModalFullscreen: Re, MessageReactions: xe, MessageStatusIndicator: Se, MessageSmsInvite: je, DeletedMessageContent: Oe, Tooltip: Te, get buildReplyPayload() {
|
|
174
|
+
return I;
|
|
175
|
+
} };
|
|
176
|
+
return Object.defineProperty(O, "__isScriptSetup", { enumerable: !1, value: !0 }), O;
|
|
398
177
|
}
|
|
399
178
|
});
|
|
400
179
|
export {
|
|
401
|
-
|
|
180
|
+
ft as default
|
|
402
181
|
};
|
|
@@ -1,7 +1,42 @@
|
|
|
1
|
-
import
|
|
1
|
+
import n from "./MessageKeyboard.vue2.js";
|
|
2
|
+
import { createElementBlock as o, openBlock as t, normalizeClass as s, Fragment as c, renderList as l, normalizeStyle as d, createElementVNode as i, toDisplayString as _ } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import p from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = ["onClick"];
|
|
6
|
+
function f(y, b, r, a, x, k) {
|
|
7
|
+
return t(), o(
|
|
8
|
+
"div",
|
|
9
|
+
{
|
|
10
|
+
ref: "keyboard",
|
|
11
|
+
class: s(["keyboard__container", [`keyboard__container--${r.align}`]])
|
|
12
|
+
},
|
|
13
|
+
[
|
|
14
|
+
(t(!0), o(
|
|
15
|
+
c,
|
|
16
|
+
null,
|
|
17
|
+
l(r.keyboard, (e) => (t(), o("div", {
|
|
18
|
+
key: e.text,
|
|
19
|
+
class: "keyboard__key",
|
|
20
|
+
style: d({ "box-shadow": "0px 0px 10px 5px " + e.color }),
|
|
21
|
+
onClick: (u) => a.handleClickKey(e)
|
|
22
|
+
}, [
|
|
23
|
+
i(
|
|
24
|
+
"p",
|
|
25
|
+
null,
|
|
26
|
+
_(e.text),
|
|
27
|
+
1
|
|
28
|
+
/* TEXT */
|
|
29
|
+
)
|
|
30
|
+
], 12, m))),
|
|
31
|
+
128
|
|
32
|
+
/* KEYED_FRAGMENT */
|
|
33
|
+
))
|
|
34
|
+
],
|
|
35
|
+
2
|
|
36
|
+
/* CLASS */
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
const K = /* @__PURE__ */ p(n, [["render", f], ["__scopeId", "data-v-ef794b11"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue"]]);
|
|
5
40
|
export {
|
|
6
|
-
|
|
41
|
+
K as default
|
|
7
42
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as u, useTemplateRef as
|
|
2
|
-
import { useMessageDraft as
|
|
1
|
+
import { defineComponent as u, useTemplateRef as d, inject as f } from "vue";
|
|
2
|
+
import { useMessageDraft as l } from "../../../hooks/useMessageDraft.js";
|
|
3
3
|
import "../../../hooks/useSearchModel.js";
|
|
4
4
|
import "../../../hooks/useTheme.js";
|
|
5
5
|
import "../../../hooks/useEmojiNative.js";
|
|
@@ -10,7 +10,7 @@ import "../../../locale/useLocale.js";
|
|
|
10
10
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
11
11
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
12
12
|
import "../../../functions/parseMarkdown.js";
|
|
13
|
-
const
|
|
13
|
+
const C = /* @__PURE__ */ u({
|
|
14
14
|
__name: "MessageKeyboard",
|
|
15
15
|
props: {
|
|
16
16
|
keyboard: {
|
|
@@ -24,27 +24,17 @@ const v = ["onClick"], w = /* @__PURE__ */ u({
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
emits: ["action"],
|
|
27
|
-
setup(t, { expose:
|
|
28
|
-
const
|
|
29
|
-
e.action && typeof e.action == "function" ? e.action() : e.action != null ?
|
|
27
|
+
setup(t, { expose: s, emit: c }) {
|
|
28
|
+
const r = d("keyboard"), o = c, i = f("chatAppId"), { setMessageText: n, setForceSendMessage: a } = l(i), m = (e) => {
|
|
29
|
+
e.action && typeof e.action == "function" ? e.action() : e.action != null ? o("action", e.action) : (n(e.text), a(!0));
|
|
30
30
|
};
|
|
31
|
-
|
|
32
|
-
refKeyboard:
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
(n(!0), r(g, null, y(t.keyboard, (o) => (n(), r("div", {
|
|
38
|
-
key: o.text,
|
|
39
|
-
class: "keyboard__key",
|
|
40
|
-
style: b({ "box-shadow": "0px 0px 10px 5px " + o.color }),
|
|
41
|
-
onClick: (S) => d(o)
|
|
42
|
-
}, [
|
|
43
|
-
h("p", null, k(o.text), 1)
|
|
44
|
-
], 12, v))), 128))
|
|
45
|
-
], 2));
|
|
31
|
+
s({
|
|
32
|
+
refKeyboard: r
|
|
33
|
+
});
|
|
34
|
+
const p = { refKeyboard: r, emit: o, chatAppId: i, setMessageText: n, setForceSendMessage: a, handleClickKey: m };
|
|
35
|
+
return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
|
|
46
36
|
}
|
|
47
37
|
});
|
|
48
38
|
export {
|
|
49
|
-
|
|
39
|
+
C as default
|
|
50
40
|
};
|