@mobilon-dev/chotto 0.3.98 → 0.3.99
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 +4 -29
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +61 -42
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +4 -47
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +82 -55
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +51 -86
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -32
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +28 -7
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +38 -22
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -33
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +4 -37
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +21 -7
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +19 -30
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +4 -70
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +108 -76
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +13 -26
- package/dist/components/1_icons/CloseButtonIcon.vue.js +10 -16
- package/dist/components/1_icons/CloseIcon.vue.js +10 -16
- package/dist/components/1_icons/ContactCRMIcon.vue.js +10 -16
- package/dist/components/1_icons/MenuIcon.vue.js +10 -16
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
- package/dist/components/1_icons/SearchIcon.vue.js +17 -29
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
- package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +396 -546
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
- 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 +13 -19
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
- 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 +4 -74
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +42 -8
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -61
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +96 -79
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +51 -80
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -182
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +135 -25
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -78
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +95 -73
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +60 -34
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +33 -39
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +311 -134
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +24 -52
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +67 -35
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +38 -72
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +57 -76
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +39 -19
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -458
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +471 -160
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -60
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +53 -36
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -250
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +233 -67
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -315
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +319 -98
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -155
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +212 -110
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +120 -36
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -75
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +63 -10
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -346
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +307 -73
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +269 -65
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -307
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +298 -76
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +18 -35
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
- package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -85
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +210 -149
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +163 -253
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +32 -50
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +4 -172
- package/dist/components/3_compounds/Feed/Feed.vue2.js +257 -126
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
- 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 +18 -31
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +56 -85
- package/package.json +1 -1
|
@@ -1,35 +1,47 @@
|
|
|
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 we, inject as pe, ref as w, computed as p, watch as Me, createElementBlock as m, openBlock as o, Fragment as S, createElementVNode as i, createBlock as d, unref as t, normalizeStyle as C, normalizeClass as y, createCommentVNode as l, createVNode as r, withCtx as c, createTextVNode as xe, toDisplayString as M, Transition as b, withModifiers as j, Teleport as D } from "vue";
|
|
2
|
+
import Re from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import Te from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import Se from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import Ce from "../BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
6
|
+
import Ie from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
|
|
7
|
+
import Ae from "../MessageReactions/MessageReactions.vue.js";
|
|
8
|
+
import H from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
9
|
+
import Ee from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
10
|
+
import Le from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
11
|
+
import Be from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
12
|
+
import { useMessageActions as Pe } from "../../../hooks/messages/useMessageActions.js";
|
|
13
|
+
import { useMessageMenuActions as Fe } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
14
|
+
import { useMessageLinks as Ne } from "../../../hooks/messages/useMessageLinks.js";
|
|
15
|
+
import { useChannelAccentColor as Ue } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
16
|
+
import { useSubtextTooltip as Oe } 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 je } 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 { safeMediaPlayVoid as
|
|
29
|
-
import { getMessageClass as
|
|
30
|
-
import { createReactionHandlers as
|
|
26
|
+
import { buildReplyPayload as V } from "../../../hooks/messages/buildReplyPayload.js";
|
|
27
|
+
import { getStatus as De, getStatusTitle as He } from "../../../functions/getStatusMessage.js";
|
|
28
|
+
import { safeMediaPlayVoid as q } from "../../../functions/safeMediaPlay.js";
|
|
29
|
+
import { getMessageClass as Ve } from "../../../functions/getMessageClass.js";
|
|
30
|
+
import { createReactionHandlers as qe } from "../../../functions/createReactionHandlers.js";
|
|
31
31
|
import "../../../functions/parseMarkdown.js";
|
|
32
|
-
const
|
|
32
|
+
const ze = ["messageId"], We = ["src"], Ge = {
|
|
33
|
+
key: 1,
|
|
34
|
+
class: "video-message__subtext"
|
|
35
|
+
}, Je = { class: "video-message__info-container" }, Ke = {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "video-message__time"
|
|
38
|
+
}, Qe = ["src"], Xe = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "video-message__info-container"
|
|
41
|
+
}, Ye = { class: "video-message__time" }, Ze = {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: "video-message__text-container"
|
|
44
|
+
}, _e = ["innerHTML"], es = ["src", "alt"], Ps = /* @__PURE__ */ we({
|
|
33
45
|
inheritAttrs: !1,
|
|
34
46
|
__name: "VideoMessage",
|
|
35
47
|
props: {
|
|
@@ -52,7 +64,7 @@ const mt = /* @__PURE__ */ ie({
|
|
|
52
64
|
reactionsMode: {
|
|
53
65
|
type: String,
|
|
54
66
|
default: "single",
|
|
55
|
-
validator: (
|
|
67
|
+
validator: (e) => ["single", "multi"].includes(e)
|
|
56
68
|
},
|
|
57
69
|
currentUserId: {
|
|
58
70
|
type: [String, Number],
|
|
@@ -74,76 +86,286 @@ const mt = /* @__PURE__ */ ie({
|
|
|
74
86
|
}
|
|
75
87
|
},
|
|
76
88
|
emits: ["action", "reply", "sms-invite"],
|
|
77
|
-
setup(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return Ce(o.position, "video-message");
|
|
89
|
+
setup(e, { emit: z }) {
|
|
90
|
+
const I = pe("chatAppId"), { getTheme: A } = je(I || ""), { menuActions: h } = Fe(() => a.message), { startReply: W } = $e(I || ""), a = e, x = z;
|
|
91
|
+
function R(u) {
|
|
92
|
+
return Ve(u.position, "video-message");
|
|
82
93
|
}
|
|
83
|
-
const
|
|
84
|
-
isOpenMenu:
|
|
85
|
-
buttonMenuVisible:
|
|
86
|
-
menuAnchorRef:
|
|
87
|
-
menuRef:
|
|
88
|
-
menuStyle:
|
|
89
|
-
menuTheme:
|
|
90
|
-
showMenu:
|
|
91
|
-
hideMenu:
|
|
92
|
-
openMenu:
|
|
93
|
-
toggleMenu:
|
|
94
|
-
onMenuMouseEnter:
|
|
95
|
-
onMenuMouseLeave:
|
|
96
|
-
clickAction:
|
|
94
|
+
const E = w(), g = w(), T = w(!1), v = w(!1), { linkedHtml: G, inNewWindow: L } = Ne(() => a.message.text), {
|
|
95
|
+
isOpenMenu: J,
|
|
96
|
+
buttonMenuVisible: K,
|
|
97
|
+
menuAnchorRef: Q,
|
|
98
|
+
menuRef: X,
|
|
99
|
+
menuStyle: Y,
|
|
100
|
+
menuTheme: Z,
|
|
101
|
+
showMenu: _,
|
|
102
|
+
hideMenu: B,
|
|
103
|
+
openMenu: ee,
|
|
104
|
+
toggleMenu: P,
|
|
105
|
+
onMenuMouseEnter: se,
|
|
106
|
+
onMenuMouseLeave: te,
|
|
107
|
+
clickAction: ae,
|
|
97
108
|
viewsAction: F,
|
|
98
|
-
handleClickReplied:
|
|
99
|
-
} =
|
|
100
|
-
onReply: () =>
|
|
101
|
-
}),
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
|
|
109
|
+
handleClickReplied: oe
|
|
110
|
+
} = Pe(a.message, x, {
|
|
111
|
+
onReply: () => W(V(a.message, "message.video"))
|
|
112
|
+
}), ne = () => {
|
|
113
|
+
_(), v.value = !0;
|
|
114
|
+
}, N = p(() => De(a.message.status)), U = p(() => He(a.message.status, a.message.statusMsg)), { bubbleStyle: ie } = Ue(
|
|
115
|
+
p(() => a.message),
|
|
105
116
|
{ cssVariable: "--chotto-videomessage-right-bg", position: "right" }
|
|
106
|
-
),
|
|
107
|
-
|
|
117
|
+
), le = () => {
|
|
118
|
+
g.value && (g.value.currentTime = 0, q(g.value));
|
|
108
119
|
};
|
|
109
|
-
|
|
110
|
-
|
|
120
|
+
Me([E, g], ([u, s]) => {
|
|
121
|
+
u ? s && (s.pause(), s.currentTime = 0) : s && (s.currentTime = 0, q(s));
|
|
111
122
|
});
|
|
112
|
-
const
|
|
113
|
-
var
|
|
114
|
-
if (
|
|
123
|
+
const me = p(() => a.message.reply && a.message.text ? "0" : a.message.text ? "var(--chotto-videomessage-preview-with-caption-border-radius, 7px 7px 0 0)" : a.message.reply ? "var(--chotto-videomessage-preview-with-reply-border-radius, 0 0 7px 7px)" : "var(--chotto-videomessage-preview-border-radius, 7px)"), re = () => T.value = !1, { onToggleReaction: ue, onAddReaction: de, onRemoveReaction: ce } = qe(x), ge = async () => {
|
|
124
|
+
var u, s;
|
|
125
|
+
if (a.message.url)
|
|
115
126
|
try {
|
|
116
|
-
const
|
|
127
|
+
const n = await fetch(a.message.url, {
|
|
117
128
|
headers: {
|
|
118
129
|
Accept: "video/*"
|
|
119
130
|
}
|
|
120
131
|
});
|
|
121
|
-
if (!
|
|
122
|
-
throw new Error(`HTTP error! status: ${
|
|
123
|
-
const
|
|
132
|
+
if (!n.ok)
|
|
133
|
+
throw new Error(`HTTP error! status: ${n.status}`);
|
|
134
|
+
const ye = n.headers.get("content-type") || "", be = await n.blob(), k = ((s = (u = a.message.url.split(".").pop()) == null ? void 0 : u.split("?")[0]) == null ? void 0 : s.toLowerCase()) || "", he = {
|
|
124
135
|
"video/mp4": "mp4",
|
|
125
136
|
"video/webm": "webm",
|
|
126
137
|
"video/ogg": "ogv",
|
|
127
138
|
"video/quicktime": "mov",
|
|
128
139
|
"video/x-matroska": "mkv",
|
|
129
|
-
"application/octet-stream":
|
|
140
|
+
"application/octet-stream": k || "mp4"
|
|
130
141
|
};
|
|
131
|
-
let
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
} catch (
|
|
135
|
-
console.error("Ошибка при скачивании видео:",
|
|
142
|
+
let O = k && ["mp4", "mov", "webm", "ogv", "mkv"].includes(k) ? k : he[ye] || "mp4";
|
|
143
|
+
const ke = a.message.alt ? a.message.alt.includes(".") ? a.message.alt : `${a.message.alt}.${O}` : `video-${a.message.messageId}.${O}`, $ = window.URL.createObjectURL(be), f = document.createElement("a");
|
|
144
|
+
f.href = $, f.download = ke, document.body.appendChild(f), f.click(), document.body.removeChild(f), window.URL.revokeObjectURL($);
|
|
145
|
+
} catch (n) {
|
|
146
|
+
console.error("Ошибка при скачивании видео:", n), window.open(a.message.url, "_blank");
|
|
136
147
|
}
|
|
137
|
-
},
|
|
138
|
-
function
|
|
139
|
-
|
|
148
|
+
}, ve = Oe(() => a.message, () => a.subtextTooltipData);
|
|
149
|
+
function fe() {
|
|
150
|
+
x("sms-invite", a.message);
|
|
140
151
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
152
|
+
return (u, s) => (o(), m(S, null, [
|
|
153
|
+
i("div", {
|
|
154
|
+
ref_key: "menuAnchorRef",
|
|
155
|
+
ref: Q,
|
|
156
|
+
class: y(["video-message", [
|
|
157
|
+
R(e.message),
|
|
158
|
+
e.applyStyle(e.message)
|
|
159
|
+
]]),
|
|
160
|
+
messageId: e.message.messageId,
|
|
161
|
+
style: C(t(ie)),
|
|
162
|
+
onMouseleave: s[5] || (s[5] = //@ts-ignore
|
|
163
|
+
(...n) => t(B) && t(B)(...n))
|
|
164
|
+
}, [
|
|
165
|
+
e.message.avatar && e.isFirstInSeries ? (o(), m("img", {
|
|
166
|
+
key: 0,
|
|
167
|
+
class: "video-message__avatar",
|
|
168
|
+
src: e.message.avatar,
|
|
169
|
+
height: "32",
|
|
170
|
+
width: "32"
|
|
171
|
+
}, null, 8, We)) : l("", !0),
|
|
172
|
+
e.message.subText && e.isFirstInSeries ? (o(), m("p", Ge, [
|
|
173
|
+
r(Be, {
|
|
174
|
+
text: t(ve),
|
|
175
|
+
position: e.message.position === "left" ? "right" : "left",
|
|
176
|
+
offset: 8
|
|
177
|
+
}, {
|
|
178
|
+
default: c(() => [
|
|
179
|
+
xe(M(e.message.subText), 1)
|
|
180
|
+
]),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["text", "position"])
|
|
183
|
+
])) : l("", !0),
|
|
184
|
+
i("div", {
|
|
185
|
+
class: y(["video-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar, "has-caption": !!e.message.text }])
|
|
186
|
+
}, [
|
|
187
|
+
s[9] || (s[9] = i("div", {
|
|
188
|
+
class: "video-message__bottom-shadow",
|
|
189
|
+
"aria-hidden": "true"
|
|
190
|
+
}, null, -1)),
|
|
191
|
+
e.message.deleted ? (o(), m(S, { key: 0 }, [
|
|
192
|
+
r(Le),
|
|
193
|
+
i("div", Je, [
|
|
194
|
+
e.message.time ? (o(), m("span", Ke, M(e.message.time), 1)) : l("", !0),
|
|
195
|
+
r(H, {
|
|
196
|
+
"base-class": "video-message",
|
|
197
|
+
"message-class": R(e.message),
|
|
198
|
+
"message-status": e.message.status,
|
|
199
|
+
"status-class": N.value,
|
|
200
|
+
"status-title": U.value
|
|
201
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
202
|
+
])
|
|
203
|
+
], 64)) : (o(), m(S, { key: 1 }, [
|
|
204
|
+
e.message.reply ? (o(), d(Ce, {
|
|
205
|
+
key: 0,
|
|
206
|
+
style: { margin: "10px 10px 4px 16px" },
|
|
207
|
+
class: y(e.message.position),
|
|
208
|
+
message: e.message.reply,
|
|
209
|
+
onReply: t(oe)
|
|
210
|
+
}, null, 8, ["class", "message", "onReply"])) : l("", !0),
|
|
211
|
+
i("div", {
|
|
212
|
+
class: "video-message__preview-button",
|
|
213
|
+
onClick: s[1] || (s[1] = (n) => T.value = !0),
|
|
214
|
+
onMouseenter: ne,
|
|
215
|
+
onMouseleave: s[2] || (s[2] = (n) => v.value = !v.value)
|
|
216
|
+
}, [
|
|
217
|
+
i("video", {
|
|
218
|
+
ref_key: "previewPlayer",
|
|
219
|
+
ref: g,
|
|
220
|
+
class: "video-message__video",
|
|
221
|
+
style: C({ borderRadius: me.value }),
|
|
222
|
+
src: e.message.url,
|
|
223
|
+
muted: !0,
|
|
224
|
+
autoplay: "",
|
|
225
|
+
onEnded: le
|
|
226
|
+
}, null, 44, Qe),
|
|
227
|
+
r(b, { name: "modal-fade" }, {
|
|
228
|
+
default: c(() => [
|
|
229
|
+
v.value ? (o(), m("div", Xe, [
|
|
230
|
+
e.message.views ? (o(), m("div", {
|
|
231
|
+
key: 0,
|
|
232
|
+
class: "video-message__views",
|
|
233
|
+
onClick: s[0] || (s[0] = j(
|
|
234
|
+
//@ts-ignore
|
|
235
|
+
(...n) => t(F) && t(F)(...n),
|
|
236
|
+
["stop"]
|
|
237
|
+
))
|
|
238
|
+
}, [
|
|
239
|
+
s[6] || (s[6] = i("span", { class: "pi pi-eye" }, null, -1)),
|
|
240
|
+
i("p", null, M(e.message.views), 1)
|
|
241
|
+
])) : l("", !0),
|
|
242
|
+
i("span", Ye, M(e.message.time), 1),
|
|
243
|
+
r(H, {
|
|
244
|
+
"base-class": "video-message",
|
|
245
|
+
"message-class": R(e.message),
|
|
246
|
+
"message-status": e.message.status,
|
|
247
|
+
"status-class": N.value,
|
|
248
|
+
"status-title": U.value
|
|
249
|
+
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
250
|
+
])) : l("", !0)
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
}),
|
|
254
|
+
r(b, { name: "modal-fade" }, {
|
|
255
|
+
default: c(() => [
|
|
256
|
+
v.value ? (o(), m("button", {
|
|
257
|
+
key: 0,
|
|
258
|
+
class: "video-message__download-button",
|
|
259
|
+
type: "button",
|
|
260
|
+
onClick: j(ge, ["stop"])
|
|
261
|
+
}, [...s[7] || (s[7] = [
|
|
262
|
+
i("span", { class: "pi pi-download" }, null, -1)
|
|
263
|
+
])])) : l("", !0)
|
|
264
|
+
]),
|
|
265
|
+
_: 1
|
|
266
|
+
})
|
|
267
|
+
], 32),
|
|
268
|
+
r(b, { name: "modal-fade" }, {
|
|
269
|
+
default: c(() => [
|
|
270
|
+
t(K) && t(h).length && !e.reactionsEnabled ? (o(), m("button", {
|
|
271
|
+
key: 0,
|
|
272
|
+
class: "video-message__menu-button",
|
|
273
|
+
onClick: s[3] || (s[3] = //@ts-ignore
|
|
274
|
+
(...n) => t(P) && t(P)(...n))
|
|
275
|
+
}, [...s[8] || (s[8] = [
|
|
276
|
+
i("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
277
|
+
])])) : l("", !0)
|
|
278
|
+
]),
|
|
279
|
+
_: 1
|
|
280
|
+
}),
|
|
281
|
+
(o(), d(D, { to: "body" }, [
|
|
282
|
+
r(b, { name: "context-menu" }, {
|
|
283
|
+
default: c(() => [
|
|
284
|
+
t(J) && t(h).length ? (o(), d(Re, {
|
|
285
|
+
key: 0,
|
|
286
|
+
ref_key: "menuRef",
|
|
287
|
+
ref: X,
|
|
288
|
+
class: "video-message__context-menu message-actions-menu",
|
|
289
|
+
style: C(t(Y)),
|
|
290
|
+
"data-theme": t(Z),
|
|
291
|
+
actions: t(h),
|
|
292
|
+
onClick: t(ae),
|
|
293
|
+
onMouseenter: t(se),
|
|
294
|
+
onMouseleave: t(te)
|
|
295
|
+
}, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter", "onMouseleave"])) : l("", !0)
|
|
296
|
+
]),
|
|
297
|
+
_: 1
|
|
298
|
+
})
|
|
299
|
+
])),
|
|
300
|
+
e.message.text ? (o(), m("div", Ze, [
|
|
301
|
+
i("p", {
|
|
302
|
+
onClick: s[4] || (s[4] = //@ts-ignore
|
|
303
|
+
(...n) => t(L) && t(L)(...n)),
|
|
304
|
+
innerHTML: t(G)
|
|
305
|
+
}, null, 8, _e)
|
|
306
|
+
])) : l("", !0),
|
|
307
|
+
r(Ee, {
|
|
308
|
+
status: e.message.status,
|
|
309
|
+
"has-messenger-account": e.message.hasMessengerAccount,
|
|
310
|
+
channel: e.channel,
|
|
311
|
+
onSmsInvite: fe
|
|
312
|
+
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
313
|
+
e.message.linkPreview ? (o(), d(Te, {
|
|
314
|
+
key: 2,
|
|
315
|
+
class: y(["video-message__link-preview", e.message.position]),
|
|
316
|
+
"link-preview": e.message.linkPreview
|
|
317
|
+
}, null, 8, ["class", "link-preview"])) : l("", !0),
|
|
318
|
+
e.message.embed ? (o(), d(Se, {
|
|
319
|
+
key: 3,
|
|
320
|
+
class: y(e.message.position),
|
|
321
|
+
embed: e.message.embed
|
|
322
|
+
}, null, 8, ["class", "embed"])) : l("", !0),
|
|
323
|
+
r(Ae, {
|
|
324
|
+
reactions: e.message.reactions,
|
|
325
|
+
"message-id": e.message.messageId,
|
|
326
|
+
reply: t(V)(e.message, "message.video"),
|
|
327
|
+
enabled: e.reactionsEnabled,
|
|
328
|
+
mode: e.reactionsMode,
|
|
329
|
+
"current-user-id": e.currentUserId,
|
|
330
|
+
"reaction-user-names": e.reactionUserNames,
|
|
331
|
+
"menu-enabled": t(h).length > 0,
|
|
332
|
+
onToggleReaction: t(ue),
|
|
333
|
+
onAddReaction: t(de),
|
|
334
|
+
onRemoveReaction: t(ce),
|
|
335
|
+
onMenu: t(ee)
|
|
336
|
+
}, null, 8, ["reactions", "message-id", "reply", "enabled", "mode", "current-user-id", "reaction-user-names", "menu-enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction", "onMenu"])
|
|
337
|
+
], 64))
|
|
338
|
+
], 2)
|
|
339
|
+
], 46, ze),
|
|
340
|
+
(o(), d(D, { to: "body" }, [
|
|
341
|
+
r(b, { name: "modal-fade" }, {
|
|
342
|
+
default: c(() => [
|
|
343
|
+
T.value && !e.message.deleted ? (o(), d(Ie, {
|
|
344
|
+
key: 0,
|
|
345
|
+
"data-theme": t(A)().theme ? t(A)().theme : "light",
|
|
346
|
+
title: e.message.alt,
|
|
347
|
+
onClose: re
|
|
348
|
+
}, {
|
|
349
|
+
default: c(() => [
|
|
350
|
+
i("video", {
|
|
351
|
+
ref_key: "player",
|
|
352
|
+
ref: E,
|
|
353
|
+
class: "video-message__modal-video",
|
|
354
|
+
src: e.message.url,
|
|
355
|
+
alt: e.message.alt,
|
|
356
|
+
controls: "",
|
|
357
|
+
autoplay: ""
|
|
358
|
+
}, null, 8, es)
|
|
359
|
+
]),
|
|
360
|
+
_: 1
|
|
361
|
+
}, 8, ["data-theme", "title"])) : l("", !0)
|
|
362
|
+
]),
|
|
363
|
+
_: 1
|
|
364
|
+
})
|
|
365
|
+
]))
|
|
366
|
+
], 64));
|
|
145
367
|
}
|
|
146
368
|
});
|
|
147
369
|
export {
|
|
148
|
-
|
|
370
|
+
Ps as default
|
|
149
371
|
};
|
|
@@ -1,67 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createBlock as a, openBlock as l, Transition as r, withCtx as m, createElementVNode as o, withModifiers as c, toDisplayString as s } from "vue";
|
|
1
|
+
import o from "./ConfirmDeleteMessage.vue3.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
id: "confirmDeleteMessageTitle",
|
|
7
|
-
class: "confirm-delete-message__title"
|
|
8
|
-
}, p = { class: "confirm-delete-message__actions" };
|
|
9
|
-
function g(b, t, C, e, v, D) {
|
|
10
|
-
return l(), a(r, { name: "confirm-delete-message-fade" }, {
|
|
11
|
-
default: m(() => [
|
|
12
|
-
o("div", {
|
|
13
|
-
class: "confirm-delete-message__backdrop",
|
|
14
|
-
"data-theme": e.props.theme,
|
|
15
|
-
role: "presentation",
|
|
16
|
-
onClick: e.closeOutside
|
|
17
|
-
}, [
|
|
18
|
-
o("div", {
|
|
19
|
-
class: "confirm-delete-message",
|
|
20
|
-
role: "dialog",
|
|
21
|
-
"aria-modal": "true",
|
|
22
|
-
"aria-labelledby": "confirmDeleteMessageTitle",
|
|
23
|
-
onClick: t[2] || (t[2] = c(() => {
|
|
24
|
-
}, ["stop"]))
|
|
25
|
-
}, [
|
|
26
|
-
o(
|
|
27
|
-
"p",
|
|
28
|
-
_,
|
|
29
|
-
s(e.t("component.ConfirmDeleteMessage.title")),
|
|
30
|
-
1
|
|
31
|
-
/* TEXT */
|
|
32
|
-
),
|
|
33
|
-
o("div", p, [
|
|
34
|
-
o(
|
|
35
|
-
"button",
|
|
36
|
-
{
|
|
37
|
-
type: "button",
|
|
38
|
-
class: "confirm-delete-message__btn confirm-delete-message__btn--delete",
|
|
39
|
-
onClick: t[0] || (t[0] = (n) => e.emit("confirm"))
|
|
40
|
-
},
|
|
41
|
-
s(e.t("component.ConfirmDeleteMessage.delete")),
|
|
42
|
-
1
|
|
43
|
-
/* TEXT */
|
|
44
|
-
),
|
|
45
|
-
o(
|
|
46
|
-
"button",
|
|
47
|
-
{
|
|
48
|
-
type: "button",
|
|
49
|
-
class: "confirm-delete-message__btn confirm-delete-message__btn--cancel",
|
|
50
|
-
onClick: t[1] || (t[1] = (n) => e.emit("cancel"))
|
|
51
|
-
},
|
|
52
|
-
s(e.t("component.ConfirmDeleteMessage.cancel")),
|
|
53
|
-
1
|
|
54
|
-
/* TEXT */
|
|
55
|
-
)
|
|
56
|
-
])
|
|
57
|
-
])
|
|
58
|
-
], 8, f)
|
|
59
|
-
]),
|
|
60
|
-
_: 1
|
|
61
|
-
/* STABLE */
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
const x = /* @__PURE__ */ d(i, [["render", g], ["__scopeId", "data-v-8fe0f609"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue"]]);
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ e(o, [["__scopeId", "data-v-34fc434c"]]);
|
|
65
5
|
export {
|
|
66
|
-
|
|
6
|
+
m as default
|
|
67
7
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useLocale as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as f, createBlock as _, openBlock as p, Transition as g, withCtx as u, createElementVNode as t, withModifiers as b, toDisplayString as o, unref as i } from "vue";
|
|
2
|
+
import { useLocale as C } from "../../../locale/useLocale.js";
|
|
3
|
+
const k = ["data-theme"], D = {
|
|
4
|
+
id: "confirmDeleteMessageTitle",
|
|
5
|
+
class: "confirm-delete-message__title"
|
|
6
|
+
}, M = { class: "confirm-delete-message__actions" }, y = /* @__PURE__ */ f({
|
|
4
7
|
__name: "ConfirmDeleteMessage",
|
|
5
8
|
props: {
|
|
6
9
|
theme: {
|
|
@@ -10,14 +13,46 @@ const u = /* @__PURE__ */ a({
|
|
|
10
13
|
}
|
|
11
14
|
},
|
|
12
15
|
emits: ["confirm", "cancel"],
|
|
13
|
-
setup(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
16
|
+
setup(a, { emit: c }) {
|
|
17
|
+
const m = a, s = c, { t: n } = C(), r = (l) => {
|
|
18
|
+
l.target.classList.contains("confirm-delete-message__backdrop") && s("cancel");
|
|
19
|
+
};
|
|
20
|
+
return (l, e) => (p(), _(g, { name: "confirm-delete-message-fade" }, {
|
|
21
|
+
default: u(() => [
|
|
22
|
+
t("div", {
|
|
23
|
+
class: "confirm-delete-message__backdrop",
|
|
24
|
+
"data-theme": m.theme,
|
|
25
|
+
role: "presentation",
|
|
26
|
+
onClick: r
|
|
27
|
+
}, [
|
|
28
|
+
t("div", {
|
|
29
|
+
class: "confirm-delete-message",
|
|
30
|
+
role: "dialog",
|
|
31
|
+
"aria-modal": "true",
|
|
32
|
+
"aria-labelledby": "confirmDeleteMessageTitle",
|
|
33
|
+
onClick: e[2] || (e[2] = b(() => {
|
|
34
|
+
}, ["stop"]))
|
|
35
|
+
}, [
|
|
36
|
+
t("p", D, o(i(n)("component.ConfirmDeleteMessage.title")), 1),
|
|
37
|
+
t("div", M, [
|
|
38
|
+
t("button", {
|
|
39
|
+
type: "button",
|
|
40
|
+
class: "confirm-delete-message__btn confirm-delete-message__btn--delete",
|
|
41
|
+
onClick: e[0] || (e[0] = (d) => s("confirm"))
|
|
42
|
+
}, o(i(n)("component.ConfirmDeleteMessage.delete")), 1),
|
|
43
|
+
t("button", {
|
|
44
|
+
type: "button",
|
|
45
|
+
class: "confirm-delete-message__btn confirm-delete-message__btn--cancel",
|
|
46
|
+
onClick: e[1] || (e[1] = (d) => s("cancel"))
|
|
47
|
+
}, o(i(n)("component.ConfirmDeleteMessage.cancel")), 1)
|
|
48
|
+
])
|
|
49
|
+
])
|
|
50
|
+
], 8, k)
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}));
|
|
19
54
|
}
|
|
20
55
|
});
|
|
21
56
|
export {
|
|
22
|
-
|
|
57
|
+
y as default
|
|
23
58
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { ref as m, createElementBlock as p, openBlock as s, createElementVNode as n, withDirectives as c, toDisplayString as u, vModelText as d } from "vue";
|
|
2
2
|
import "./CreateChat.vue2.js";
|
|
3
|
-
import
|
|
3
|
+
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const f = {
|
|
5
5
|
__name: "CreateChat",
|
|
6
6
|
props: {
|
|
@@ -10,40 +10,23 @@ const f = {
|
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
emits: ["change"],
|
|
13
|
-
setup(a, {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
function C(a, t, n, e, o, r) {
|
|
22
|
-
return m(), l("div", null, [
|
|
23
|
-
p(
|
|
24
|
-
"h2",
|
|
25
|
-
null,
|
|
26
|
-
u(n.title),
|
|
27
|
-
1
|
|
28
|
-
/* TEXT */
|
|
29
|
-
),
|
|
30
|
-
_(p(
|
|
31
|
-
"input",
|
|
32
|
-
{
|
|
33
|
-
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.name = s),
|
|
13
|
+
setup(a, { emit: o }) {
|
|
14
|
+
const e = m(""), r = o, l = () => {
|
|
15
|
+
r("change", { name: e.value });
|
|
16
|
+
};
|
|
17
|
+
return (v, t) => (s(), p("div", null, [
|
|
18
|
+
n("h2", null, u(a.title), 1),
|
|
19
|
+
c(n("input", {
|
|
20
|
+
"onUpdate:modelValue": t[0] || (t[0] = (i) => e.value = i),
|
|
34
21
|
type: "text",
|
|
35
22
|
class: "name",
|
|
36
|
-
onInput:
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
])
|
|
44
|
-
]);
|
|
45
|
-
}
|
|
46
|
-
const y = /* @__PURE__ */ h(f, [["render", C], ["__scopeId", "data-v-a5012820"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_modals/CreateChat/CreateChat.vue"]]);
|
|
23
|
+
onInput: l
|
|
24
|
+
}, null, 544), [
|
|
25
|
+
[d, e.value]
|
|
26
|
+
])
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
}, C = /* @__PURE__ */ _(f, [["__scopeId", "data-v-65f726e8"]]);
|
|
47
30
|
export {
|
|
48
|
-
|
|
31
|
+
C as default
|
|
49
32
|
};
|