@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,7 +1,75 @@
|
|
|
1
|
-
import
|
|
1
|
+
import d from "./ReplyImageMessage.vue2.js";
|
|
2
|
+
import { createElementBlock as o, openBlock as l, Fragment as g, createElementVNode as a, createBlock as m, createCommentVNode as n, toDisplayString as c, Teleport as _, createVNode as f, Transition as v, withCtx as r } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import h from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const u = ["src", "alt"], k = { class: "image-message__text-container" }, x = ["textContent"], y = ["innerHTML"], M = ["src", "alt"];
|
|
6
|
+
function p(w, s, t, e, C, T) {
|
|
7
|
+
return l(), o(
|
|
8
|
+
g,
|
|
9
|
+
null,
|
|
10
|
+
[
|
|
11
|
+
a("div", {
|
|
12
|
+
class: "image-message__preview-button",
|
|
13
|
+
onClick: s[0] || (s[0] = (i) => e.isOpenModal = !0)
|
|
14
|
+
}, [
|
|
15
|
+
a("img", {
|
|
16
|
+
class: "image-message__preview-image",
|
|
17
|
+
src: t.message.url,
|
|
18
|
+
alt: t.message.alt
|
|
19
|
+
}, null, 8, u)
|
|
20
|
+
]),
|
|
21
|
+
a("div", k, [
|
|
22
|
+
t.message.header ? (l(), o("p", {
|
|
23
|
+
key: 0,
|
|
24
|
+
textContent: c(`В ответ ${t.message.header}`)
|
|
25
|
+
}, null, 8, x)) : n("v-if", !0),
|
|
26
|
+
s[2] || (s[2] = a(
|
|
27
|
+
"div",
|
|
28
|
+
{ class: "image-message__reply-description" },
|
|
29
|
+
[
|
|
30
|
+
a("span", { class: "pi pi-camera" }),
|
|
31
|
+
a("p", null, "Фотография")
|
|
32
|
+
],
|
|
33
|
+
-1
|
|
34
|
+
/* CACHED */
|
|
35
|
+
)),
|
|
36
|
+
t.message.text ? (l(), o("p", {
|
|
37
|
+
key: 1,
|
|
38
|
+
class: "image-message__text",
|
|
39
|
+
onClick: s[1] || (s[1] = (...i) => e.inNewWindow && e.inNewWindow(...i)),
|
|
40
|
+
innerHTML: e.linkedHtml
|
|
41
|
+
}, null, 8, y)) : n("v-if", !0)
|
|
42
|
+
]),
|
|
43
|
+
(l(), m(_, { to: "body" }, [
|
|
44
|
+
f(v, { name: "modal-fade" }, {
|
|
45
|
+
default: r(() => [
|
|
46
|
+
e.isOpenModal ? (l(), m(e.ModalFullscreen, {
|
|
47
|
+
key: 0,
|
|
48
|
+
"data-theme": e.getTheme().theme ? e.getTheme().theme : "light",
|
|
49
|
+
title: t.message.alt,
|
|
50
|
+
onClose: e.closeModal
|
|
51
|
+
}, {
|
|
52
|
+
default: r(() => [
|
|
53
|
+
a("img", {
|
|
54
|
+
class: "image-message__modal-image",
|
|
55
|
+
src: t.message.url,
|
|
56
|
+
alt: t.message.alt
|
|
57
|
+
}, null, 8, M)
|
|
58
|
+
]),
|
|
59
|
+
_: 1
|
|
60
|
+
/* STABLE */
|
|
61
|
+
}, 8, ["data-theme", "title"])) : n("v-if", !0)
|
|
62
|
+
]),
|
|
63
|
+
_: 1
|
|
64
|
+
/* STABLE */
|
|
65
|
+
})
|
|
66
|
+
]))
|
|
67
|
+
],
|
|
68
|
+
64
|
|
69
|
+
/* STABLE_FRAGMENT */
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
const R = /* @__PURE__ */ h(d, [["render", p], ["__scopeId", "data-v-e6e76153"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue"]]);
|
|
5
73
|
export {
|
|
6
|
-
|
|
74
|
+
R as default
|
|
7
75
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as a, inject as c, ref as l } from "vue";
|
|
2
|
+
import u from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
3
3
|
import "../../../hooks/useMessageDraft.js";
|
|
4
4
|
import "../../../hooks/useSearchModel.js";
|
|
5
|
-
import { useTheme as
|
|
5
|
+
import { useTheme as d } from "../../../hooks/useTheme.js";
|
|
6
6
|
import "../../../hooks/useEmojiNative.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
9
|
import "../../../locale/useLocale.js";
|
|
10
10
|
/* empty css */
|
|
11
|
-
import { useMessageLinks as
|
|
11
|
+
import { useMessageLinks as f } from "../../../hooks/messages/useMessageLinks.js";
|
|
12
12
|
import "../../../functions/parseMarkdown.js";
|
|
13
|
-
const
|
|
13
|
+
const A = /* @__PURE__ */ a({
|
|
14
14
|
__name: "ReplyImageMessage",
|
|
15
15
|
props: {
|
|
16
16
|
message: {
|
|
@@ -18,61 +18,12 @@ const B = ["src", "alt"], H = { class: "image-message__text-container" }, I = ["
|
|
|
18
18
|
required: !0
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
class: "image-message__preview-button",
|
|
26
|
-
onClick: s[0] || (s[0] = (c) => l.value = !0)
|
|
27
|
-
}, [
|
|
28
|
-
t("img", {
|
|
29
|
-
class: "image-message__preview-image",
|
|
30
|
-
src: e.message.url,
|
|
31
|
-
alt: e.message.alt
|
|
32
|
-
}, null, 8, B)
|
|
33
|
-
]),
|
|
34
|
-
t("div", H, [
|
|
35
|
-
e.message.header ? (a(), n("p", {
|
|
36
|
-
key: 0,
|
|
37
|
-
textContent: C(`В ответ ${e.message.header}`)
|
|
38
|
-
}, null, 8, I)) : o("", !0),
|
|
39
|
-
s[2] || (s[2] = t("div", { class: "image-message__reply-description" }, [
|
|
40
|
-
t("span", { class: "pi pi-camera" }),
|
|
41
|
-
t("p", null, "Фотография")
|
|
42
|
-
], -1)),
|
|
43
|
-
e.message.text ? (a(), n("p", {
|
|
44
|
-
key: 1,
|
|
45
|
-
class: "image-message__text",
|
|
46
|
-
onClick: s[1] || (s[1] = //@ts-ignore
|
|
47
|
-
(...c) => m(r) && m(r)(...c)),
|
|
48
|
-
innerHTML: m(f)
|
|
49
|
-
}, null, 8, L)) : o("", !0)
|
|
50
|
-
]),
|
|
51
|
-
(a(), g(_, { to: "body" }, [
|
|
52
|
-
M(T, { name: "modal-fade" }, {
|
|
53
|
-
default: d(() => [
|
|
54
|
-
l.value ? (a(), g(w, {
|
|
55
|
-
key: 0,
|
|
56
|
-
"data-theme": m(i)().theme ? m(i)().theme : "light",
|
|
57
|
-
title: e.message.alt,
|
|
58
|
-
onClose: h
|
|
59
|
-
}, {
|
|
60
|
-
default: d(() => [
|
|
61
|
-
t("img", {
|
|
62
|
-
class: "image-message__modal-image",
|
|
63
|
-
src: e.message.url,
|
|
64
|
-
alt: e.message.alt
|
|
65
|
-
}, null, 8, V)
|
|
66
|
-
]),
|
|
67
|
-
_: 1
|
|
68
|
-
}, 8, ["data-theme", "title"])) : o("", !0)
|
|
69
|
-
]),
|
|
70
|
-
_: 1
|
|
71
|
-
})
|
|
72
|
-
]))
|
|
73
|
-
], 64));
|
|
21
|
+
setup(s, { expose: p }) {
|
|
22
|
+
p();
|
|
23
|
+
const e = c("chatAppId"), { getTheme: m } = d(e), t = s, o = l(!1), { linkedHtml: i, inNewWindow: n } = f(() => t.message.text), r = { chatAppId: e, getTheme: m, props: t, isOpenModal: o, linkedHtml: i, inNewWindow: n, closeModal: () => o.value = !1, ModalFullscreen: u };
|
|
24
|
+
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
74
25
|
}
|
|
75
26
|
});
|
|
76
27
|
export {
|
|
77
|
-
|
|
28
|
+
A as default
|
|
78
29
|
};
|
|
@@ -1,7 +1,145 @@
|
|
|
1
|
-
import
|
|
1
|
+
import c from "./ReplyStickerMessage.vue2.js";
|
|
2
|
+
import { createElementBlock as a, openBlock as t, Fragment as r, createElementVNode as l, createBlock as d, createCommentVNode as o, toDisplayString as _, Teleport as g, createVNode as k, Transition as y, withCtx as m } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import v from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const u = ["src"], f = ["src"], h = ["src", "alt"], T = { class: "sticker-message__text-container" }, x = ["textContent"], w = ["innerHTML"], M = ["src"], b = ["src"], F = ["src", "alt"];
|
|
6
|
+
function p(C, i, s, e, L, S) {
|
|
7
|
+
return t(), a(
|
|
8
|
+
r,
|
|
9
|
+
null,
|
|
10
|
+
[
|
|
11
|
+
l("div", {
|
|
12
|
+
class: "sticker-message__preview-button",
|
|
13
|
+
onClick: i[1] || (i[1] = (n) => e.isOpenModal = !0)
|
|
14
|
+
}, [
|
|
15
|
+
o(" TGS анимированные стикеры "),
|
|
16
|
+
e.isTgsFile && e.tgsLibsLoaded ? (t(), a("tgs-player", {
|
|
17
|
+
key: 0,
|
|
18
|
+
class: "sticker-message__preview-image-animated",
|
|
19
|
+
src: s.message.url,
|
|
20
|
+
autoplay: "",
|
|
21
|
+
loop: "",
|
|
22
|
+
mode: "normal"
|
|
23
|
+
}, null, 8, u)) : e.shouldTryVideo && !e.videoFailed ? (t(), a(
|
|
24
|
+
r,
|
|
25
|
+
{ key: 1 },
|
|
26
|
+
[
|
|
27
|
+
o(" Нестатические стикеры (webm и прочее) "),
|
|
28
|
+
l("video", {
|
|
29
|
+
class: "sticker-message__preview-image",
|
|
30
|
+
src: s.message.url,
|
|
31
|
+
autoplay: "",
|
|
32
|
+
loop: "",
|
|
33
|
+
muted: "",
|
|
34
|
+
playsinline: "",
|
|
35
|
+
preload: "metadata",
|
|
36
|
+
onError: i[0] || (i[0] = (n) => e.videoFailed = !0)
|
|
37
|
+
}, null, 40, f)
|
|
38
|
+
],
|
|
39
|
+
2112
|
|
40
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
41
|
+
)) : (t(), a(
|
|
42
|
+
r,
|
|
43
|
+
{ key: 2 },
|
|
44
|
+
[
|
|
45
|
+
o(" WebP и другие статические стикеры "),
|
|
46
|
+
l("img", {
|
|
47
|
+
class: "sticker-message__preview-image",
|
|
48
|
+
src: s.message.url,
|
|
49
|
+
alt: s.message.alt
|
|
50
|
+
}, null, 8, h)
|
|
51
|
+
],
|
|
52
|
+
2112
|
|
53
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
54
|
+
))
|
|
55
|
+
]),
|
|
56
|
+
l("div", T, [
|
|
57
|
+
s.message.header ? (t(), a("p", {
|
|
58
|
+
key: 0,
|
|
59
|
+
textContent: _(`В ответ ${s.message.header}`)
|
|
60
|
+
}, null, 8, x)) : o("v-if", !0),
|
|
61
|
+
i[3] || (i[3] = l(
|
|
62
|
+
"div",
|
|
63
|
+
{ class: "sticker-message__reply-description" },
|
|
64
|
+
[
|
|
65
|
+
l("span", { class: "pi pi-image" }),
|
|
66
|
+
l("p", null, "Стикер")
|
|
67
|
+
],
|
|
68
|
+
-1
|
|
69
|
+
/* CACHED */
|
|
70
|
+
)),
|
|
71
|
+
s.message.text ? (t(), a("p", {
|
|
72
|
+
key: 1,
|
|
73
|
+
class: "sticker-message__text",
|
|
74
|
+
onClick: e.inNewWindow,
|
|
75
|
+
innerHTML: e.linkedText
|
|
76
|
+
}, null, 8, w)) : o("v-if", !0)
|
|
77
|
+
]),
|
|
78
|
+
(t(), d(g, { to: "body" }, [
|
|
79
|
+
k(y, { name: "modal-fade" }, {
|
|
80
|
+
default: m(() => [
|
|
81
|
+
e.isOpenModal ? (t(), d(e.ModalFullscreen, {
|
|
82
|
+
key: 0,
|
|
83
|
+
"data-theme": e.getTheme().theme ? e.getTheme().theme : "light",
|
|
84
|
+
title: s.message.alt,
|
|
85
|
+
onClose: e.closeModal
|
|
86
|
+
}, {
|
|
87
|
+
default: m(() => [
|
|
88
|
+
o(" TGS анимированные стикеры "),
|
|
89
|
+
e.isTgsFile && e.tgsLibsLoaded ? (t(), a("tgs-player", {
|
|
90
|
+
key: 0,
|
|
91
|
+
class: "sticker-message__modal-image-animated",
|
|
92
|
+
src: s.message.url,
|
|
93
|
+
autoplay: "",
|
|
94
|
+
loop: "",
|
|
95
|
+
mode: "normal"
|
|
96
|
+
}, null, 8, M)) : e.shouldTryVideo && !e.videoFailed ? (t(), a(
|
|
97
|
+
r,
|
|
98
|
+
{ key: 1 },
|
|
99
|
+
[
|
|
100
|
+
o(" Нестатические стикеры (webm и прочее) "),
|
|
101
|
+
l("video", {
|
|
102
|
+
class: "sticker-message__modal-image",
|
|
103
|
+
src: s.message.url,
|
|
104
|
+
autoplay: "",
|
|
105
|
+
loop: "",
|
|
106
|
+
muted: "",
|
|
107
|
+
playsinline: "",
|
|
108
|
+
preload: "metadata",
|
|
109
|
+
onError: i[2] || (i[2] = (n) => e.videoFailed = !0)
|
|
110
|
+
}, null, 40, b)
|
|
111
|
+
],
|
|
112
|
+
2112
|
|
113
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
114
|
+
)) : (t(), a(
|
|
115
|
+
r,
|
|
116
|
+
{ key: 2 },
|
|
117
|
+
[
|
|
118
|
+
o(" WebP и другие статические стикеры "),
|
|
119
|
+
l("img", {
|
|
120
|
+
class: "sticker-message__modal-image",
|
|
121
|
+
src: s.message.url,
|
|
122
|
+
alt: s.message.alt
|
|
123
|
+
}, null, 8, F)
|
|
124
|
+
],
|
|
125
|
+
2112
|
|
126
|
+
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
127
|
+
))
|
|
128
|
+
]),
|
|
129
|
+
_: 1
|
|
130
|
+
/* STABLE */
|
|
131
|
+
}, 8, ["data-theme", "title"])) : o("v-if", !0)
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
/* STABLE */
|
|
135
|
+
})
|
|
136
|
+
]))
|
|
137
|
+
],
|
|
138
|
+
64
|
|
139
|
+
/* STABLE_FRAGMENT */
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
const R = /* @__PURE__ */ v(c, [["render", p], ["__scopeId", "data-v-5c90f3cd"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue"]]);
|
|
5
143
|
export {
|
|
6
|
-
|
|
144
|
+
R as default
|
|
7
145
|
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { defineComponent as w, inject as k, ref as r, watch as u, computed as d, onMounted as L } from "vue";
|
|
2
|
+
import y from "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
3
|
+
import S from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
4
4
|
import "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import "../../../hooks/useSearchModel.js";
|
|
6
|
-
import { useTheme as
|
|
7
|
-
import { useEmojiNative as
|
|
6
|
+
import { useTheme as T } from "../../../hooks/useTheme.js";
|
|
7
|
+
import { useEmojiNative as j } from "../../../hooks/useEmojiNative.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import "../../../locale/useLocale.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
13
13
|
import "../../../functions/parseMarkdown.js";
|
|
14
|
-
import { replaceEmojisInHtml as
|
|
15
|
-
import { isAnimatedSticker as
|
|
14
|
+
import { replaceEmojisInHtml as x } from "../../../functions/renderAppleEmojis.js";
|
|
15
|
+
import { isAnimatedSticker as M } from "../StickerMessage/utils/stickerUtils.js";
|
|
16
16
|
import "../StickerMessage/utils/suppress-lit-warning.js";
|
|
17
|
-
const
|
|
17
|
+
const J = /* @__PURE__ */ w({
|
|
18
18
|
__name: "ReplyStickerMessage",
|
|
19
19
|
props: {
|
|
20
20
|
message: {
|
|
@@ -22,140 +22,56 @@ const G = ["src"], R = ["src"], W = ["src", "alt"], z = { class: "sticker-messag
|
|
|
22
22
|
required: !0
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
|
-
setup(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
setup(g, { expose: v }) {
|
|
26
|
+
v();
|
|
27
|
+
const a = k("chatAppId"), { isNative: l } = j(a), { getTheme: _ } = T(a), o = r(!1), s = r(!1);
|
|
28
|
+
async function m() {
|
|
29
|
+
if (!(o.value || s.value)) {
|
|
30
|
+
s.value = !0;
|
|
30
31
|
try {
|
|
31
32
|
await import("../StickerMessage/libs/tgs-player/lottie-player.esm.js"), await import("../StickerMessage/libs/tgs-player/tgs-player.esm.js"), o.value = !0;
|
|
32
33
|
} catch (e) {
|
|
33
34
|
console.error("Failed to load TGS libraries:", e);
|
|
34
35
|
} finally {
|
|
35
|
-
|
|
36
|
+
s.value = !1;
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
[() =>
|
|
40
|
+
const t = g, p = r(!1), n = r("");
|
|
41
|
+
u(
|
|
42
|
+
[() => t.message.text, l],
|
|
42
43
|
() => {
|
|
43
|
-
if (
|
|
44
|
-
let e =
|
|
45
|
-
|
|
44
|
+
if (t.message.text) {
|
|
45
|
+
let e = y(t.message.text);
|
|
46
|
+
l.value || (e = x(e)), n.value = e;
|
|
46
47
|
} else
|
|
47
|
-
|
|
48
|
+
n.value = "";
|
|
48
49
|
},
|
|
49
50
|
{ immediate: !0 }
|
|
50
51
|
);
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
const e = String(
|
|
52
|
+
const i = d(() => M(t.message.url, t.message.isAnimated)), c = r(!1), b = d(() => {
|
|
53
|
+
if (i.value) return !1;
|
|
54
|
+
const e = String(t.message.url || "").toLowerCase();
|
|
54
55
|
return !/\.(webp|png|jpe?g|gif|bmp|svg)(\?|#|$)/.test(e);
|
|
55
56
|
});
|
|
56
|
-
|
|
57
|
-
() =>
|
|
57
|
+
u(
|
|
58
|
+
() => t.message.url,
|
|
58
59
|
() => {
|
|
59
|
-
|
|
60
|
+
c.value = !1;
|
|
60
61
|
},
|
|
61
62
|
{ immediate: !0 }
|
|
62
|
-
),
|
|
63
|
-
e && !o.value &&
|
|
64
|
-
}, { immediate: !0 }),
|
|
65
|
-
|
|
63
|
+
), u(i, (e) => {
|
|
64
|
+
e && !o.value && m();
|
|
65
|
+
}, { immediate: !0 }), L(() => {
|
|
66
|
+
i.value && !o.value && m();
|
|
66
67
|
});
|
|
67
|
-
function
|
|
68
|
+
function h(e) {
|
|
68
69
|
e.preventDefault(), e.target.href && window.open(e.target.href, "_blank");
|
|
69
70
|
}
|
|
70
|
-
const
|
|
71
|
-
return (
|
|
72
|
-
u("div", {
|
|
73
|
-
class: "sticker-message__preview-button",
|
|
74
|
-
onClick: a[1] || (a[1] = (_) => d.value = !0)
|
|
75
|
-
}, [
|
|
76
|
-
r.value && o.value ? (s(), l("tgs-player", {
|
|
77
|
-
key: 0,
|
|
78
|
-
class: "sticker-message__preview-image-animated",
|
|
79
|
-
src: t.message.url,
|
|
80
|
-
autoplay: "",
|
|
81
|
-
loop: "",
|
|
82
|
-
mode: "normal"
|
|
83
|
-
}, null, 8, G)) : w.value && !m.value ? (s(), l("video", {
|
|
84
|
-
key: 1,
|
|
85
|
-
class: "sticker-message__preview-image",
|
|
86
|
-
src: t.message.url,
|
|
87
|
-
autoplay: "",
|
|
88
|
-
loop: "",
|
|
89
|
-
muted: "",
|
|
90
|
-
playsinline: "",
|
|
91
|
-
preload: "metadata",
|
|
92
|
-
onError: a[0] || (a[0] = (_) => m.value = !0)
|
|
93
|
-
}, null, 40, R)) : (s(), l("img", {
|
|
94
|
-
key: 2,
|
|
95
|
-
class: "sticker-message__preview-image",
|
|
96
|
-
src: t.message.url,
|
|
97
|
-
alt: t.message.alt
|
|
98
|
-
}, null, 8, W))
|
|
99
|
-
]),
|
|
100
|
-
u("div", z, [
|
|
101
|
-
t.message.header ? (s(), l("p", {
|
|
102
|
-
key: 0,
|
|
103
|
-
textContent: F(`В ответ ${t.message.header}`)
|
|
104
|
-
}, null, 8, J)) : v("", !0),
|
|
105
|
-
a[3] || (a[3] = u("div", { class: "sticker-message__reply-description" }, [
|
|
106
|
-
u("span", { class: "pi pi-image" }),
|
|
107
|
-
u("p", null, "Стикер")
|
|
108
|
-
], -1)),
|
|
109
|
-
t.message.text ? (s(), l("p", {
|
|
110
|
-
key: 1,
|
|
111
|
-
class: "sticker-message__text",
|
|
112
|
-
onClick: C,
|
|
113
|
-
innerHTML: g.value
|
|
114
|
-
}, null, 8, K)) : v("", !0)
|
|
115
|
-
]),
|
|
116
|
-
(s(), L(I, { to: "body" }, [
|
|
117
|
-
$(A, { name: "modal-fade" }, {
|
|
118
|
-
default: T(() => [
|
|
119
|
-
d.value ? (s(), L(B, {
|
|
120
|
-
key: 0,
|
|
121
|
-
"data-theme": b(y)().theme ? b(y)().theme : "light",
|
|
122
|
-
title: t.message.alt,
|
|
123
|
-
onClose: M
|
|
124
|
-
}, {
|
|
125
|
-
default: T(() => [
|
|
126
|
-
r.value && o.value ? (s(), l("tgs-player", {
|
|
127
|
-
key: 0,
|
|
128
|
-
class: "sticker-message__modal-image-animated",
|
|
129
|
-
src: t.message.url,
|
|
130
|
-
autoplay: "",
|
|
131
|
-
loop: "",
|
|
132
|
-
mode: "normal"
|
|
133
|
-
}, null, 8, P)) : w.value && !m.value ? (s(), l("video", {
|
|
134
|
-
key: 1,
|
|
135
|
-
class: "sticker-message__modal-image",
|
|
136
|
-
src: t.message.url,
|
|
137
|
-
autoplay: "",
|
|
138
|
-
loop: "",
|
|
139
|
-
muted: "",
|
|
140
|
-
playsinline: "",
|
|
141
|
-
preload: "metadata",
|
|
142
|
-
onError: a[2] || (a[2] = (_) => m.value = !0)
|
|
143
|
-
}, null, 40, Q)) : (s(), l("img", {
|
|
144
|
-
key: 2,
|
|
145
|
-
class: "sticker-message__modal-image",
|
|
146
|
-
src: t.message.url,
|
|
147
|
-
alt: t.message.alt
|
|
148
|
-
}, null, 8, U))
|
|
149
|
-
]),
|
|
150
|
-
_: 1
|
|
151
|
-
}, 8, ["data-theme", "title"])) : v("", !0)
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
})
|
|
155
|
-
]))
|
|
156
|
-
], 64));
|
|
71
|
+
const f = { chatAppId: a, isNative: l, getTheme: _, tgsLibsLoaded: o, tgsLibsLoading: s, loadTgsLibs: m, props: t, isOpenModal: p, linkedText: n, isTgsFile: i, videoFailed: c, shouldTryVideo: b, inNewWindow: h, closeModal: () => p.value = !1, ModalFullscreen: S };
|
|
72
|
+
return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
|
|
157
73
|
}
|
|
158
74
|
});
|
|
159
75
|
export {
|
|
160
|
-
|
|
76
|
+
J as default
|
|
161
77
|
};
|
|
@@ -1,7 +1,52 @@
|
|
|
1
|
-
import
|
|
1
|
+
import l from "./ReplyTextMessage.vue2.js";
|
|
2
|
+
import { createElementBlock as n, openBlock as t, createBlock as c, withCtx as r, createElementVNode as s, createCommentVNode as a, toDisplayString as i } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import d from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _ = { class: "reply-text-message__wrapper" }, m = ["textContent"], x = ["innerHTML"], p = ["textContent"], f = ["innerHTML"];
|
|
6
|
+
function h(k, y, o, e, C, T) {
|
|
7
|
+
return t(), n("div", _, [
|
|
8
|
+
e.tooltipText ? (t(), c(e.Tooltip, {
|
|
9
|
+
key: 0,
|
|
10
|
+
position: "top",
|
|
11
|
+
offset: 8,
|
|
12
|
+
delay: 1e3,
|
|
13
|
+
"max-width": "25rem",
|
|
14
|
+
text: e.tooltipText
|
|
15
|
+
}, {
|
|
16
|
+
default: r(() => [
|
|
17
|
+
s("div", {
|
|
18
|
+
class: "container",
|
|
19
|
+
onClick: e.onQuoteClick
|
|
20
|
+
}, [
|
|
21
|
+
o.message.header ? (t(), n("p", {
|
|
22
|
+
key: 0,
|
|
23
|
+
textContent: i(`В ответ ${o.message.header}`)
|
|
24
|
+
}, null, 8, m)) : a("v-if", !0),
|
|
25
|
+
s("p", {
|
|
26
|
+
class: "text",
|
|
27
|
+
innerHTML: e.linkedHtml
|
|
28
|
+
}, null, 8, x)
|
|
29
|
+
])
|
|
30
|
+
]),
|
|
31
|
+
_: 1
|
|
32
|
+
/* STABLE */
|
|
33
|
+
}, 8, ["text"])) : (t(), n("div", {
|
|
34
|
+
key: 1,
|
|
35
|
+
class: "container",
|
|
36
|
+
onClick: e.onQuoteClick
|
|
37
|
+
}, [
|
|
38
|
+
o.message.header ? (t(), n("p", {
|
|
39
|
+
key: 0,
|
|
40
|
+
textContent: i(`В ответ ${o.message.header}`)
|
|
41
|
+
}, null, 8, p)) : a("v-if", !0),
|
|
42
|
+
s("p", {
|
|
43
|
+
class: "text",
|
|
44
|
+
innerHTML: e.linkedHtml
|
|
45
|
+
}, null, 8, f)
|
|
46
|
+
]))
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
const H = /* @__PURE__ */ d(l, [["render", h], ["__scopeId", "data-v-a5264722"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue"]]);
|
|
5
50
|
export {
|
|
6
|
-
|
|
51
|
+
H as default
|
|
7
52
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as a, computed as c } from "vue";
|
|
2
|
+
import l from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
3
3
|
import "../../../locale/useLocale.js";
|
|
4
4
|
/* empty css */
|
|
5
5
|
import "../../../hooks/useTheme.js";
|
|
6
|
-
import { useMessageLinks as
|
|
6
|
+
import { useMessageLinks as u } from "../../../hooks/messages/useMessageLinks.js";
|
|
7
7
|
import "../../../functions/parseMarkdown.js";
|
|
8
8
|
import "../../../hooks/useMessageDraft.js";
|
|
9
9
|
import "../../../hooks/useSearchModel.js";
|
|
10
10
|
import "../../../hooks/useEmojiNative.js";
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
|
-
const
|
|
13
|
+
const w = /* @__PURE__ */ a({
|
|
14
14
|
__name: "ReplyTextMessage",
|
|
15
15
|
props: {
|
|
16
16
|
message: {
|
|
@@ -18,57 +18,19 @@ const C = { class: "reply-text-message__wrapper" }, y = ["textContent"], T = ["i
|
|
|
18
18
|
required: !0
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
|
|
21
|
+
setup(n, { expose: s }) {
|
|
22
|
+
s();
|
|
23
|
+
const t = n, { linkedHtml: i } = u(() => t.message.text), m = c(() => {
|
|
23
24
|
var e;
|
|
24
|
-
return ((e =
|
|
25
|
-
}),
|
|
26
|
-
var
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
};
|
|
30
|
-
return (
|
|
31
|
-
c.value ? (o(), h(k, {
|
|
32
|
-
key: 0,
|
|
33
|
-
position: "top",
|
|
34
|
-
offset: 8,
|
|
35
|
-
delay: 1e3,
|
|
36
|
-
"max-width": "25rem",
|
|
37
|
-
text: c.value
|
|
38
|
-
}, {
|
|
39
|
-
default: g(() => [
|
|
40
|
-
s("div", {
|
|
41
|
-
class: "container",
|
|
42
|
-
onClick: l
|
|
43
|
-
}, [
|
|
44
|
-
t.message.header ? (o(), r("p", {
|
|
45
|
-
key: 0,
|
|
46
|
-
textContent: d(`В ответ ${t.message.header}`)
|
|
47
|
-
}, null, 8, y)) : p("", !0),
|
|
48
|
-
s("p", {
|
|
49
|
-
class: "text",
|
|
50
|
-
innerHTML: u(a)
|
|
51
|
-
}, null, 8, T)
|
|
52
|
-
])
|
|
53
|
-
]),
|
|
54
|
-
_: 1
|
|
55
|
-
}, 8, ["text"])) : (o(), r("div", {
|
|
56
|
-
key: 1,
|
|
57
|
-
class: "container",
|
|
58
|
-
onClick: l
|
|
59
|
-
}, [
|
|
60
|
-
t.message.header ? (o(), r("p", {
|
|
61
|
-
key: 0,
|
|
62
|
-
textContent: d(`В ответ ${t.message.header}`)
|
|
63
|
-
}, null, 8, M)) : p("", !0),
|
|
64
|
-
s("p", {
|
|
65
|
-
class: "text",
|
|
66
|
-
innerHTML: u(a)
|
|
67
|
-
}, null, 8, H)
|
|
68
|
-
]))
|
|
69
|
-
]));
|
|
25
|
+
return ((e = t.message.text) == null ? void 0 : e.trim()) || "";
|
|
26
|
+
}), r = { props: t, linkedHtml: i, tooltipText: m, onQuoteClick: (e) => {
|
|
27
|
+
var p;
|
|
28
|
+
const o = (p = e.target) == null ? void 0 : p.closest("a");
|
|
29
|
+
o instanceof HTMLAnchorElement && o.href && (e.preventDefault(), e.stopPropagation(), window.open(o.href, "_blank", "noopener,noreferrer"));
|
|
30
|
+
}, Tooltip: l };
|
|
31
|
+
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
70
32
|
}
|
|
71
33
|
});
|
|
72
34
|
export {
|
|
73
|
-
|
|
35
|
+
w as default
|
|
74
36
|
};
|