@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
package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useMessageDraft as
|
|
1
|
+
import { defineComponent as T, inject as E, ref as i, computed as I, watchEffect as V, onMounted as q, onUnmounted as x, createElementBlock as y, openBlock as g, Fragment as A, createVNode as m, withCtx as h, createCommentVNode as N, unref as b, normalizeClass as W, createElementVNode as F, Transition as $, withDirectives as D, vShow as H } from "vue";
|
|
2
|
+
import O from "../TemplateSelector/TemplateSelector.vue.js";
|
|
3
|
+
import P from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
4
|
+
import { useMessageDraft as j } from "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import "../../../hooks/useSearchModel.js";
|
|
6
6
|
import "../../../hooks/useTheme.js";
|
|
7
7
|
import "../../../hooks/useEmojiNative.js";
|
|
@@ -12,8 +12,8 @@ import "../../../locale/useLocale.js";
|
|
|
12
12
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
13
13
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
14
14
|
import "../../../functions/parseMarkdown.js";
|
|
15
|
-
import
|
|
16
|
-
const
|
|
15
|
+
import z from "./icons/ChatTemplatesIcon.vue.js";
|
|
16
|
+
const R = { class: "" }, ne = /* @__PURE__ */ T({
|
|
17
17
|
__name: "ButtonTemplateSelector",
|
|
18
18
|
props: {
|
|
19
19
|
templates: {
|
|
@@ -44,60 +44,96 @@ const Q = /* @__PURE__ */ S({
|
|
|
44
44
|
default: void 0
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
setup(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
a.value = "#5F5F5F", n.value = "#404040";
|
|
47
|
+
setup(l) {
|
|
48
|
+
const o = l, r = E("chatAppId"), { getMessage: w } = j(r || ""), k = i(null), e = i(null), s = i("#5F5F5F"), c = i("#404040"), d = i(!1);
|
|
49
|
+
let u = null;
|
|
50
|
+
const p = () => {
|
|
51
|
+
if (!r) {
|
|
52
|
+
s.value = "#5F5F5F", c.value = "#404040";
|
|
54
53
|
return;
|
|
55
54
|
}
|
|
56
|
-
const
|
|
57
|
-
if (!
|
|
58
|
-
|
|
55
|
+
const a = document.getElementById(r);
|
|
56
|
+
if (!a) {
|
|
57
|
+
s.value = "#5F5F5F", c.value = "#404040";
|
|
59
58
|
return;
|
|
60
59
|
}
|
|
61
|
-
const
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
60
|
+
const t = window.getComputedStyle(a), n = t.getPropertyValue("--chotto-buttontemplateselector-button-span-color").trim(), S = t.getPropertyValue("--chotto-buttontemplateselector-button-span-hover-color").trim();
|
|
61
|
+
s.value = n || "#5F5F5F", c.value = S || "#404040";
|
|
62
|
+
}, C = I(() => d.value ? c.value : s.value);
|
|
63
|
+
V(() => {
|
|
64
|
+
p();
|
|
66
65
|
});
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
},
|
|
66
|
+
const B = () => {
|
|
67
|
+
o.mode == "click" && o.state == "active" && e.value && (e.value.style.display == "none" ? e.value.style.display = "inherit" : e.value.style.display == "inherit" && (e.value.style.display = "none"));
|
|
68
|
+
}, v = () => {
|
|
69
|
+
o.mode == "hover" && o.state == "active" && e.value && (e.value.style.display = "inherit");
|
|
70
|
+
}, f = () => {
|
|
71
|
+
o.mode == "hover" && o.state == "active" && e.value && (e.value.style.display = "none");
|
|
72
|
+
}, M = () => {
|
|
74
73
|
e.value && (e.value.style.display = "none");
|
|
75
74
|
};
|
|
76
|
-
|
|
77
|
-
if (e.value && (e.value.style.display = "none"),
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
75
|
+
return q(() => {
|
|
76
|
+
if (e.value && (e.value.style.display = "none"), p(), r) {
|
|
77
|
+
const a = document.getElementById(r);
|
|
78
|
+
a && (u = new MutationObserver((t) => {
|
|
79
|
+
t.forEach((n) => {
|
|
80
|
+
n.type === "attributes" && n.attributeName === "data-theme" && p();
|
|
82
81
|
});
|
|
83
|
-
}),
|
|
82
|
+
}), u.observe(a, {
|
|
84
83
|
attributes: !0,
|
|
85
84
|
attributeFilter: ["data-theme"]
|
|
86
85
|
}));
|
|
87
86
|
}
|
|
88
|
-
}),
|
|
89
|
-
|
|
90
|
-
})
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
87
|
+
}), x(() => {
|
|
88
|
+
u && (u.disconnect(), u = null);
|
|
89
|
+
}), (a, t) => (g(), y(A, null, [
|
|
90
|
+
m(P, {
|
|
91
|
+
text: "Шаблоны сообщений",
|
|
92
|
+
position: "left"
|
|
93
|
+
}, {
|
|
94
|
+
default: h(() => [
|
|
95
|
+
b(w)().isRecording ? N("", !0) : (g(), y("button", {
|
|
96
|
+
key: 0,
|
|
97
|
+
ref_key: "templateButton",
|
|
98
|
+
ref: k,
|
|
99
|
+
class: W(["button-template", { "button-template-disabled": l.state == "disabled" }]),
|
|
100
|
+
onClick: B,
|
|
101
|
+
onMouseover: v,
|
|
102
|
+
onMouseout: f,
|
|
103
|
+
onMouseenter: t[0] || (t[0] = (n) => d.value = !0),
|
|
104
|
+
onMouseleave: t[1] || (t[1] = (n) => d.value = !1)
|
|
105
|
+
}, [
|
|
106
|
+
F("span", R, [
|
|
107
|
+
m(b(z), { fill: C.value }, null, 8, ["fill"])
|
|
108
|
+
])
|
|
109
|
+
], 34))
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
}),
|
|
113
|
+
m($, null, {
|
|
114
|
+
default: h(() => [
|
|
115
|
+
D(F("div", {
|
|
116
|
+
ref_key: "template",
|
|
117
|
+
ref: e,
|
|
118
|
+
onMouseover: v,
|
|
119
|
+
onMouseout: f
|
|
120
|
+
}, [
|
|
121
|
+
m(O, {
|
|
122
|
+
templates: l.templates,
|
|
123
|
+
"group-templates": l.groupTemplates,
|
|
124
|
+
"elevated-window": l.elevatedWindow,
|
|
125
|
+
"chat-background": l.chatBackground,
|
|
126
|
+
onCloseTemplateWindow: M
|
|
127
|
+
}, null, 8, ["templates", "group-templates", "elevated-window", "chat-background"])
|
|
128
|
+
], 544), [
|
|
129
|
+
[H, o.state === "active"]
|
|
130
|
+
])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
})
|
|
134
|
+
], 64));
|
|
99
135
|
}
|
|
100
136
|
});
|
|
101
137
|
export {
|
|
102
|
-
|
|
138
|
+
ne as default
|
|
103
139
|
};
|
package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
|
|
3
|
-
import n from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const c = {
|
|
1
|
+
import { defineComponent as l, createElementBlock as t, openBlock as n, createElementVNode as e } from "vue";
|
|
2
|
+
const o = {
|
|
5
3
|
width: "26",
|
|
6
4
|
height: "26",
|
|
7
5
|
viewBox: "0 0 26 26",
|
|
8
6
|
fill: "none",
|
|
9
7
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
8
|
+
}, i = ["fill"], s = ["fill"], h = /* @__PURE__ */ l({
|
|
9
|
+
__name: "ChatTemplatesIcon",
|
|
10
|
+
props: {
|
|
11
|
+
fill: { default: "#5F5F5F" }
|
|
12
|
+
},
|
|
13
|
+
setup(C) {
|
|
14
|
+
return (c, f) => (n(), t("svg", o, [
|
|
15
|
+
e("path", {
|
|
16
|
+
d: "M22.75 1.625C23.181 1.625 23.5943 1.7962 23.899 2.10095C24.2038 2.4057 24.375 2.81902 24.375 3.25V16.25C24.375 16.681 24.2038 17.0943 23.899 17.399C23.5943 17.7038 23.181 17.875 22.75 17.875H18.6875C18.183 17.875 17.6853 17.9925 17.2341 18.2181C16.7828 18.4438 16.3902 18.7714 16.0875 19.175L13 23.2911L9.9125 19.175C9.60977 18.7714 9.21722 18.4438 8.76594 18.2181C8.31466 17.9925 7.81705 17.875 7.3125 17.875H3.25C2.81902 17.875 2.4057 17.7038 2.10095 17.399C1.7962 17.0943 1.625 16.681 1.625 16.25V3.25C1.625 2.81902 1.7962 2.4057 2.10095 2.10095C2.4057 1.7962 2.81902 1.625 3.25 1.625H22.75ZM3.25 0C2.38805 0 1.5614 0.34241 0.951903 0.951903C0.34241 1.5614 0 2.38805 0 3.25L0 16.25C0 17.112 0.34241 17.9386 0.951903 18.5481C1.5614 19.1576 2.38805 19.5 3.25 19.5H7.3125C7.56477 19.5 7.81358 19.5587 8.03922 19.6716C8.26486 19.7844 8.46114 19.9482 8.6125 20.15L11.7 24.2661C11.8514 24.4679 12.0476 24.6318 12.2733 24.7446C12.4989 24.8574 12.7477 24.9161 13 24.9161C13.2523 24.9161 13.5011 24.8574 13.7267 24.7446C13.9524 24.6318 14.1486 24.4679 14.3 24.2661L17.3875 20.15C17.5389 19.9482 17.7351 19.7844 17.9608 19.6716C18.1864 19.5587 18.4352 19.5 18.6875 19.5H22.75C23.612 19.5 24.4386 19.1576 25.0481 18.5481C25.6576 17.9386 26 17.112 26 16.25V3.25C26 2.38805 25.6576 1.5614 25.0481 0.951903C24.4386 0.34241 23.612 0 22.75 0L3.25 0Z",
|
|
17
|
+
fill: C.fill
|
|
18
|
+
}, null, 8, i),
|
|
19
|
+
e("path", {
|
|
20
|
+
d: "M4.875 5.6875C4.875 5.47201 4.9606 5.26535 5.11298 5.11298C5.26535 4.9606 5.47201 4.875 5.6875 4.875H20.3125C20.528 4.875 20.7347 4.9606 20.887 5.11298C21.0394 5.26535 21.125 5.47201 21.125 5.6875C21.125 5.90299 21.0394 6.10965 20.887 6.26202C20.7347 6.4144 20.528 6.5 20.3125 6.5H5.6875C5.47201 6.5 5.26535 6.4144 5.11298 6.26202C4.9606 6.10965 4.875 5.90299 4.875 5.6875ZM4.875 9.75C4.875 9.53451 4.9606 9.32785 5.11298 9.17548C5.26535 9.0231 5.47201 8.9375 5.6875 8.9375H20.3125C20.528 8.9375 20.7347 9.0231 20.887 9.17548C21.0394 9.32785 21.125 9.53451 21.125 9.75C21.125 9.96549 21.0394 10.1722 20.887 10.3245C20.7347 10.4769 20.528 10.5625 20.3125 10.5625H5.6875C5.47201 10.5625 5.26535 10.4769 5.11298 10.3245C4.9606 10.1722 4.875 9.96549 4.875 9.75ZM4.875 13.8125C4.875 13.597 4.9606 13.3903 5.11298 13.238C5.26535 13.0856 5.47201 13 5.6875 13H13.8125C14.028 13 14.2347 13.0856 14.387 13.238C14.5394 13.3903 14.625 13.597 14.625 13.8125C14.625 14.028 14.5394 14.2347 14.387 14.387C14.2347 14.5394 14.028 14.625 13.8125 14.625H5.6875C5.47201 14.625 5.26535 14.5394 5.11298 14.387C4.9606 14.2347 4.875 14.028 4.875 13.8125Z",
|
|
21
|
+
fill: C.fill
|
|
22
|
+
}, null, 8, s)
|
|
23
|
+
]));
|
|
24
|
+
}
|
|
25
|
+
});
|
|
24
26
|
export {
|
|
25
|
-
|
|
27
|
+
h as default
|
|
26
28
|
};
|
package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js
CHANGED
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
const o = /* @__PURE__ */ r({
|
|
3
|
-
__name: "ChatTemplatesIcon",
|
|
4
|
-
props: {
|
|
5
|
-
fill: { type: String, required: !1, default: "#5F5F5F" }
|
|
6
|
-
},
|
|
7
|
-
setup(p, { expose: t }) {
|
|
8
|
-
t();
|
|
9
|
-
const e = {};
|
|
10
|
-
return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
1
|
+
import f from "./ChatTemplatesIcon.vue.js";
|
|
13
2
|
export {
|
|
14
|
-
|
|
3
|
+
f as default
|
|
15
4
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { useMessageDraft as
|
|
1
|
+
import { provide as h, inject as k, ref as s, onMounted as w, createElementBlock as i, openBlock as u, Fragment as B, createCommentVNode as W, createElementVNode as p, unref as S, normalizeClass as T, createVNode as M } from "vue";
|
|
2
|
+
import V from "../WABATemplateSelector/WABATemplateSelector.vue.js";
|
|
3
|
+
import { useMessageDraft as A } from "../../../hooks/useMessageDraft.js";
|
|
4
4
|
import "../../../hooks/useSearchModel.js";
|
|
5
5
|
import "../../../hooks/useTheme.js";
|
|
6
6
|
import "../../../hooks/useEmojiNative.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
8
|
+
import q from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
9
|
/* empty css */
|
|
10
10
|
import "../../../locale/useLocale.js";
|
|
11
11
|
/* empty css */
|
|
@@ -13,7 +13,7 @@ import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
|
13
13
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
14
14
|
import "../../../functions/parseMarkdown.js";
|
|
15
15
|
/* empty css */
|
|
16
|
-
const
|
|
16
|
+
const C = {
|
|
17
17
|
__name: "ButtonWabaTemplateSelector",
|
|
18
18
|
props: {
|
|
19
19
|
wabaTemplates: {
|
|
@@ -49,83 +49,54 @@ const A = {
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
emits: ["sendWabaValues"],
|
|
52
|
-
setup(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
m("
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
t.value.style.display = "none";
|
|
52
|
+
setup(a, { emit: d }) {
|
|
53
|
+
const t = a;
|
|
54
|
+
h("filebumpUrl", t.filebumpUrl);
|
|
55
|
+
const m = k("chatAppId"), { getMessage: c } = A(m), f = s(null), e = s(null), y = d, v = () => {
|
|
56
|
+
t.mode == "click" && t.state == "active" && (e.value.style.display == "none" ? e.value.style.display = "inherit" : e.value.style.display == "inherit" && (e.value.style.display = "none"));
|
|
57
|
+
}, o = () => {
|
|
58
|
+
t.mode == "hover" && t.state == "active" && (e.value.style.display = "inherit");
|
|
59
|
+
}, l = () => {
|
|
60
|
+
t.mode == "hover" && t.state == "active" && (e.value.style.display = "none");
|
|
61
|
+
}, b = () => {
|
|
62
|
+
e.value.style.display = "none";
|
|
64
63
|
};
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
w(() => {
|
|
65
|
+
e.value.style.display = "none";
|
|
67
66
|
});
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
67
|
+
const g = (n) => {
|
|
68
|
+
y("sendWabaValues", n);
|
|
69
|
+
};
|
|
70
|
+
return (n, r) => (u(), i(B, null, [
|
|
71
|
+
S(c)().isRecording ? W("", !0) : (u(), i("button", {
|
|
72
|
+
key: 0,
|
|
73
|
+
ref_key: "templateButton",
|
|
74
|
+
ref: f,
|
|
75
|
+
class: T(["button-template", { "button-template-disabled": a.state == "disabled" }]),
|
|
76
|
+
onClick: v,
|
|
77
|
+
onMouseover: o,
|
|
78
|
+
onMouseout: l
|
|
79
|
+
}, [...r[0] || (r[0] = [
|
|
80
|
+
p("span", { class: "pi pi-code" }, null, -1)
|
|
81
|
+
])], 34)),
|
|
82
|
+
p("div", {
|
|
83
|
+
ref_key: "template",
|
|
84
|
+
ref: e,
|
|
85
|
+
onMouseover: o,
|
|
86
|
+
onMouseout: l
|
|
87
|
+
}, [
|
|
88
|
+
M(V, {
|
|
89
|
+
"waba-templates": a.wabaTemplates,
|
|
90
|
+
"group-templates": a.groupTemplates,
|
|
91
|
+
"elevated-window": a.elevatedWindow,
|
|
92
|
+
"chat-background": a.chatBackground,
|
|
93
|
+
onCloseTemplateWindow: b,
|
|
94
|
+
onSendWabaValues: g
|
|
95
|
+
}, null, 8, ["waba-templates", "group-templates", "elevated-window", "chat-background"])
|
|
96
|
+
], 544)
|
|
97
|
+
], 64));
|
|
74
98
|
}
|
|
75
|
-
};
|
|
76
|
-
function q(n, o, a, e, l, s) {
|
|
77
|
-
return c(), p(
|
|
78
|
-
S,
|
|
79
|
-
null,
|
|
80
|
-
[
|
|
81
|
-
e.getMessage().isRecording ? w("v-if", !0) : (c(), p(
|
|
82
|
-
"button",
|
|
83
|
-
{
|
|
84
|
-
key: 0,
|
|
85
|
-
ref: "templateButton",
|
|
86
|
-
class: T(["button-template", { "button-template-disabled": a.state == "disabled" }]),
|
|
87
|
-
onClick: e.toggle,
|
|
88
|
-
onMouseover: e.hover,
|
|
89
|
-
onMouseout: e.hoverout
|
|
90
|
-
},
|
|
91
|
-
[...o[0] || (o[0] = [
|
|
92
|
-
d(
|
|
93
|
-
"span",
|
|
94
|
-
{ class: "pi pi-code" },
|
|
95
|
-
null,
|
|
96
|
-
-1
|
|
97
|
-
/* CACHED */
|
|
98
|
-
)
|
|
99
|
-
])],
|
|
100
|
-
34
|
|
101
|
-
/* CLASS, NEED_HYDRATION */
|
|
102
|
-
)),
|
|
103
|
-
d(
|
|
104
|
-
"div",
|
|
105
|
-
{
|
|
106
|
-
ref: "template",
|
|
107
|
-
onMouseover: e.hover,
|
|
108
|
-
onMouseout: e.hoverout
|
|
109
|
-
},
|
|
110
|
-
[
|
|
111
|
-
k(e.WABATemplateSelector, {
|
|
112
|
-
"waba-templates": a.wabaTemplates,
|
|
113
|
-
"group-templates": a.groupTemplates,
|
|
114
|
-
"elevated-window": a.elevatedWindow,
|
|
115
|
-
"chat-background": a.chatBackground,
|
|
116
|
-
onCloseTemplateWindow: e.close,
|
|
117
|
-
onSendWabaValues: e.sendWabaValues
|
|
118
|
-
}, null, 8, ["waba-templates", "group-templates", "elevated-window", "chat-background"])
|
|
119
|
-
],
|
|
120
|
-
544
|
|
121
|
-
/* NEED_HYDRATION, NEED_PATCH */
|
|
122
|
-
)
|
|
123
|
-
],
|
|
124
|
-
64
|
|
125
|
-
/* STABLE_FRAGMENT */
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
const K = /* @__PURE__ */ V(A, [["render", q], ["__scopeId", "data-v-367ee7e9"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue"]]);
|
|
99
|
+
}, O = /* @__PURE__ */ q(C, [["__scopeId", "data-v-e300d7b9"]]);
|
|
129
100
|
export {
|
|
130
|
-
|
|
101
|
+
O as default
|
|
131
102
|
};
|
|
@@ -1,185 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { createElementBlock as t, openBlock as l, createElementVNode as e, createBlock as d, withDirectives as _, vShow as f, createCommentVNode as n, toDisplayString as a, Teleport as m, createVNode as p, Transition as w, withCtx as c } from "vue";
|
|
1
|
+
import o from "./FilePreview.vue2.js";
|
|
3
2
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
key: 2,
|
|
7
|
-
style: { display: "flex", gap: "5px" }
|
|
8
|
-
}, P = ["src"], C = { class: "pi pi-play" }, V = { class: "pi pi-pause" }, x = { key: 3 }, b = { class: "preview__control-block" }, M = { class: "preview__information" }, N = { class: "preview__name" }, T = {
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "preview__size"
|
|
11
|
-
}, U = {
|
|
12
|
-
key: 1,
|
|
13
|
-
class: "preview__audio-time"
|
|
14
|
-
}, z = {
|
|
15
|
-
key: 2,
|
|
16
|
-
class: "preview__audio-time"
|
|
17
|
-
}, D = { class: "preview__reset" }, F = ["src"], A = ["src"];
|
|
18
|
-
function B(O, o, i, s, S, E) {
|
|
19
|
-
return l(), t("div", y, [
|
|
20
|
-
e("div", I, [
|
|
21
|
-
i.fileInfo.isImage ? (l(), t("div", {
|
|
22
|
-
key: 0,
|
|
23
|
-
style: { position: "relative" },
|
|
24
|
-
onClick: o[0] || (o[0] = (r) => s.isOpenModal = !0)
|
|
25
|
-
}, [
|
|
26
|
-
e("img", {
|
|
27
|
-
src: i.fileInfo.previewUrl,
|
|
28
|
-
alt: "Image Preview",
|
|
29
|
-
class: "preview__image"
|
|
30
|
-
}, null, 8, h),
|
|
31
|
-
o[3] || (o[3] = e(
|
|
32
|
-
"div",
|
|
33
|
-
{ class: "preview__shadow" },
|
|
34
|
-
[
|
|
35
|
-
e("span", { class: "pi pi-plus-circle" })
|
|
36
|
-
],
|
|
37
|
-
-1
|
|
38
|
-
/* CACHED */
|
|
39
|
-
))
|
|
40
|
-
])) : i.fileInfo.isVideo ? (l(), t("div", {
|
|
41
|
-
key: 1,
|
|
42
|
-
style: { position: "relative" },
|
|
43
|
-
onClick: o[1] || (o[1] = (r) => s.isOpenModal = !0)
|
|
44
|
-
}, [
|
|
45
|
-
e("video", {
|
|
46
|
-
ref: "video",
|
|
47
|
-
src: i.fileInfo.previewUrl,
|
|
48
|
-
class: "preview__video"
|
|
49
|
-
}, null, 8, k),
|
|
50
|
-
o[4] || (o[4] = e(
|
|
51
|
-
"div",
|
|
52
|
-
{ class: "preview__shadow" },
|
|
53
|
-
[
|
|
54
|
-
e("span", { class: "pi pi-play" })
|
|
55
|
-
],
|
|
56
|
-
-1
|
|
57
|
-
/* CACHED */
|
|
58
|
-
))
|
|
59
|
-
])) : i.fileInfo.isAudio ? (l(), t("div", g, [
|
|
60
|
-
o[5] || (o[5] = e(
|
|
61
|
-
"span",
|
|
62
|
-
{
|
|
63
|
-
class: "pi pi-headphones",
|
|
64
|
-
style: { "font-size": "1rem", margin: "auto" }
|
|
65
|
-
},
|
|
66
|
-
null,
|
|
67
|
-
-1
|
|
68
|
-
/* CACHED */
|
|
69
|
-
)),
|
|
70
|
-
e("audio", {
|
|
71
|
-
ref: "audio",
|
|
72
|
-
src: i.fileInfo.previewUrl
|
|
73
|
-
}, null, 8, P),
|
|
74
|
-
e("button", {
|
|
75
|
-
class: "preview__audio-control",
|
|
76
|
-
onClick: s.togglePlayPause
|
|
77
|
-
}, [
|
|
78
|
-
_(e(
|
|
79
|
-
"span",
|
|
80
|
-
C,
|
|
81
|
-
null,
|
|
82
|
-
512
|
|
83
|
-
/* NEED_PATCH */
|
|
84
|
-
), [
|
|
85
|
-
[f, !s.isPlaying]
|
|
86
|
-
]),
|
|
87
|
-
_(e(
|
|
88
|
-
"span",
|
|
89
|
-
V,
|
|
90
|
-
null,
|
|
91
|
-
512
|
|
92
|
-
/* NEED_PATCH */
|
|
93
|
-
), [
|
|
94
|
-
[f, s.isPlaying]
|
|
95
|
-
])
|
|
96
|
-
])
|
|
97
|
-
])) : (l(), t("div", x, [...o[6] || (o[6] = [
|
|
98
|
-
e(
|
|
99
|
-
"span",
|
|
100
|
-
{
|
|
101
|
-
class: "pi pi-file",
|
|
102
|
-
style: { "font-size": "2.5rem" }
|
|
103
|
-
},
|
|
104
|
-
null,
|
|
105
|
-
-1
|
|
106
|
-
/* CACHED */
|
|
107
|
-
)
|
|
108
|
-
])]))
|
|
109
|
-
]),
|
|
110
|
-
e("div", b, [
|
|
111
|
-
e("div", M, [
|
|
112
|
-
e(
|
|
113
|
-
"span",
|
|
114
|
-
N,
|
|
115
|
-
a(i.fileInfo.fileName),
|
|
116
|
-
1
|
|
117
|
-
/* TEXT */
|
|
118
|
-
),
|
|
119
|
-
!i.fileInfo.isAudio && !i.fileInfo.isVideo ? (l(), t(
|
|
120
|
-
"span",
|
|
121
|
-
T,
|
|
122
|
-
a(i.fileInfo.fileSize),
|
|
123
|
-
1
|
|
124
|
-
/* TEXT */
|
|
125
|
-
)) : n("v-if", !0),
|
|
126
|
-
i.fileInfo.isAudio ? (l(), t(
|
|
127
|
-
"span",
|
|
128
|
-
U,
|
|
129
|
-
a(`${s.formatCurrentTime} / ${s.formatDuration}`),
|
|
130
|
-
1
|
|
131
|
-
/* TEXT */
|
|
132
|
-
)) : n("v-if", !0),
|
|
133
|
-
i.fileInfo.isVideo ? (l(), t(
|
|
134
|
-
"span",
|
|
135
|
-
z,
|
|
136
|
-
a(s.formatDuration),
|
|
137
|
-
1
|
|
138
|
-
/* TEXT */
|
|
139
|
-
)) : n("v-if", !0)
|
|
140
|
-
]),
|
|
141
|
-
e("div", D, [
|
|
142
|
-
e("span", {
|
|
143
|
-
class: "pi pi-times",
|
|
144
|
-
onClick: o[2] || (o[2] = (r) => s.emit("reset"))
|
|
145
|
-
})
|
|
146
|
-
])
|
|
147
|
-
]),
|
|
148
|
-
(l(), d(m, { to: "body" }, [
|
|
149
|
-
p(w, { name: "modal-fade" }, {
|
|
150
|
-
default: c(() => [
|
|
151
|
-
s.isOpenModal ? (l(), d(s.ModalFullscreen, {
|
|
152
|
-
key: 0,
|
|
153
|
-
theme: s.getTheme().theme ? s.getTheme().theme : "",
|
|
154
|
-
title: i.fileInfo.fileName,
|
|
155
|
-
onClose: s.closeModal
|
|
156
|
-
}, {
|
|
157
|
-
default: c(() => [
|
|
158
|
-
i.fileInfo.isVideo ? (l(), t("video", {
|
|
159
|
-
key: 0,
|
|
160
|
-
class: "preview__modal-video",
|
|
161
|
-
src: i.fileInfo.previewUrl,
|
|
162
|
-
controls: "",
|
|
163
|
-
autoplay: ""
|
|
164
|
-
}, null, 8, F)) : n("v-if", !0),
|
|
165
|
-
i.fileInfo.isImage ? (l(), t("img", {
|
|
166
|
-
key: 1,
|
|
167
|
-
class: "preview__modal-image",
|
|
168
|
-
src: i.fileInfo.previewUrl,
|
|
169
|
-
alt: "Image Preview"
|
|
170
|
-
}, null, 8, A)) : n("v-if", !0)
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
/* STABLE */
|
|
174
|
-
}, 8, ["theme", "title"])) : n("v-if", !0)
|
|
175
|
-
]),
|
|
176
|
-
_: 1
|
|
177
|
-
/* STABLE */
|
|
178
|
-
})
|
|
179
|
-
]))
|
|
180
|
-
]);
|
|
181
|
-
}
|
|
182
|
-
const J = /* @__PURE__ */ u(v, [["render", B], ["__scopeId", "data-v-a48ddb15"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/FilePreview/FilePreview.vue"]]);
|
|
3
|
+
import r from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const i = /* @__PURE__ */ r(o, [["__scopeId", "data-v-94cf2f67"]]);
|
|
183
5
|
export {
|
|
184
|
-
|
|
6
|
+
i as default
|
|
185
7
|
};
|