@mobilon-dev/chotto 0.3.96 → 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
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 S, inject as I, ref as s, computed as B, watchEffect as T, onMounted as w, onUnmounted as O } from "vue";
|
|
2
|
+
import q from "../TemplateSelector/TemplateSelector.vue.js";
|
|
3
|
+
import A from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
4
|
+
import { useMessageDraft as E } 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 M from "./icons/ChatTemplatesIcon.vue.js";
|
|
16
|
+
const Q = /* @__PURE__ */ S({
|
|
17
17
|
__name: "ButtonTemplateSelector",
|
|
18
18
|
props: {
|
|
19
19
|
templates: {
|
|
@@ -44,96 +44,60 @@ const R = { class: "" }, ne = /* @__PURE__ */ T({
|
|
|
44
44
|
default: void 0
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
|
-
setup(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
setup(d, { expose: v }) {
|
|
48
|
+
v();
|
|
49
|
+
const t = d, l = I("chatAppId"), { getMessage: f } = E(l || ""), y = s(null), e = s(null), a = s("#5F5F5F"), n = s("#404040"), c = s(!1);
|
|
50
|
+
let o = null;
|
|
51
|
+
const i = () => {
|
|
52
|
+
if (!l) {
|
|
53
|
+
a.value = "#5F5F5F", n.value = "#404040";
|
|
53
54
|
return;
|
|
54
55
|
}
|
|
55
|
-
const
|
|
56
|
-
if (!
|
|
57
|
-
|
|
56
|
+
const r = document.getElementById(l);
|
|
57
|
+
if (!r) {
|
|
58
|
+
a.value = "#5F5F5F", n.value = "#404040";
|
|
58
59
|
return;
|
|
59
60
|
}
|
|
60
|
-
const
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
const u = window.getComputedStyle(r), p = u.getPropertyValue("--chotto-buttontemplateselector-button-span-color").trim(), C = u.getPropertyValue("--chotto-buttontemplateselector-button-span-hover-color").trim();
|
|
62
|
+
a.value = p || "#5F5F5F", n.value = C || "#404040";
|
|
63
|
+
}, h = B(() => c.value ? n.value : a.value);
|
|
64
|
+
T(() => {
|
|
65
|
+
i();
|
|
65
66
|
});
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
72
|
-
},
|
|
67
|
+
const g = () => {
|
|
68
|
+
t.mode == "click" && t.state == "active" && e.value && (e.value.style.display == "none" ? e.value.style.display = "inherit" : e.value.style.display == "inherit" && (e.value.style.display = "none"));
|
|
69
|
+
}, b = () => {
|
|
70
|
+
t.mode == "hover" && t.state == "active" && e.value && (e.value.style.display = "inherit");
|
|
71
|
+
}, F = () => {
|
|
72
|
+
t.mode == "hover" && t.state == "active" && e.value && (e.value.style.display = "none");
|
|
73
|
+
}, _ = () => {
|
|
73
74
|
e.value && (e.value.style.display = "none");
|
|
74
75
|
};
|
|
75
|
-
|
|
76
|
-
if (e.value && (e.value.style.display = "none"),
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
76
|
+
w(() => {
|
|
77
|
+
if (e.value && (e.value.style.display = "none"), i(), l) {
|
|
78
|
+
const r = document.getElementById(l);
|
|
79
|
+
r && (o = new MutationObserver((u) => {
|
|
80
|
+
u.forEach((p) => {
|
|
81
|
+
p.type === "attributes" && p.attributeName === "data-theme" && i();
|
|
81
82
|
});
|
|
82
|
-
}),
|
|
83
|
+
}), o.observe(r, {
|
|
83
84
|
attributes: !0,
|
|
84
85
|
attributeFilter: ["data-theme"]
|
|
85
86
|
}));
|
|
86
87
|
}
|
|
87
|
-
}),
|
|
88
|
-
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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));
|
|
88
|
+
}), O(() => {
|
|
89
|
+
o && (o.disconnect(), o = null);
|
|
90
|
+
});
|
|
91
|
+
const m = { props: t, chatAppId: l, getMessage: f, templateButton: y, template: e, iconFillColor: a, iconHoverColor: n, isHovered: c, get themeObserver() {
|
|
92
|
+
return o;
|
|
93
|
+
}, set themeObserver(r) {
|
|
94
|
+
o = r;
|
|
95
|
+
}, updateIconColor: i, currentIconColor: h, toggle: g, hover: b, hoverout: F, close: _, TemplateSelector: q, Tooltip: A, get ChatTemplatesIcon() {
|
|
96
|
+
return M;
|
|
97
|
+
} };
|
|
98
|
+
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
135
99
|
}
|
|
136
100
|
});
|
|
137
101
|
export {
|
|
138
|
-
|
|
102
|
+
Q as default
|
|
139
103
|
};
|
package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js
CHANGED
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import e from "./ChatTemplatesIcon.vue2.js";
|
|
2
|
+
import { createElementBlock as o, openBlock as l, createElementVNode as t } from "vue";
|
|
3
|
+
import n from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const c = {
|
|
3
5
|
width: "26",
|
|
4
6
|
height: "26",
|
|
5
7
|
viewBox: "0 0 26 26",
|
|
6
8
|
fill: "none",
|
|
7
9
|
xmlns: "http://www.w3.org/2000/svg"
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, null, 8, s)
|
|
23
|
-
]));
|
|
24
|
-
}
|
|
25
|
-
});
|
|
10
|
+
}, s = ["fill"], i = ["fill"];
|
|
11
|
+
function r(a, _, C, p, f, h) {
|
|
12
|
+
return l(), o("svg", c, [
|
|
13
|
+
t("path", {
|
|
14
|
+
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",
|
|
15
|
+
fill: C.fill
|
|
16
|
+
}, null, 8, s),
|
|
17
|
+
t("path", {
|
|
18
|
+
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",
|
|
19
|
+
fill: C.fill
|
|
20
|
+
}, null, 8, i)
|
|
21
|
+
]);
|
|
22
|
+
}
|
|
23
|
+
const u = /* @__PURE__ */ n(e, [["render", r], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue"]]);
|
|
26
24
|
export {
|
|
27
|
-
|
|
25
|
+
u as default
|
|
28
26
|
};
|
package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { defineComponent as r } from "vue";
|
|
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
|
+
});
|
|
2
13
|
export {
|
|
3
|
-
|
|
14
|
+
o as default
|
|
4
15
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { useMessageDraft as
|
|
1
|
+
import { createElementBlock as p, openBlock as c, Fragment as S, createCommentVNode as w, createElementVNode as d, normalizeClass as T, createVNode as k, provide as m, inject as f, ref as r, onMounted as v } from "vue";
|
|
2
|
+
import M from "../WABATemplateSelector/WABATemplateSelector.vue.js";
|
|
3
|
+
import { useMessageDraft as b } 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 V 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 A = {
|
|
17
17
|
__name: "ButtonWabaTemplateSelector",
|
|
18
18
|
props: {
|
|
19
19
|
wabaTemplates: {
|
|
@@ -49,54 +49,83 @@ const C = {
|
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
51
|
emits: ["sendWabaValues"],
|
|
52
|
-
setup(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
setup(n, { expose: o, emit: a }) {
|
|
53
|
+
o();
|
|
54
|
+
const e = n;
|
|
55
|
+
m("filebumpUrl", e.filebumpUrl);
|
|
56
|
+
const l = f("chatAppId"), { getMessage: s } = b(l), y = r(null), t = r(null), i = a, g = () => {
|
|
57
|
+
e.mode == "click" && e.state == "active" && (t.value.style.display == "none" ? t.value.style.display = "inherit" : t.value.style.display == "inherit" && (t.value.style.display = "none"));
|
|
58
|
+
}, h = () => {
|
|
59
|
+
e.mode == "hover" && e.state == "active" && (t.value.style.display = "inherit");
|
|
60
|
+
}, _ = () => {
|
|
61
|
+
e.mode == "hover" && e.state == "active" && (t.value.style.display = "none");
|
|
62
|
+
}, W = () => {
|
|
63
|
+
t.value.style.display = "none";
|
|
63
64
|
};
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
v(() => {
|
|
66
|
+
t.value.style.display = "none";
|
|
66
67
|
});
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
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));
|
|
68
|
+
const u = { props: e, chatAppId: l, getMessage: s, templateButton: y, template: t, emit: i, toggle: g, hover: h, hoverout: _, close: W, sendWabaValues: (B) => {
|
|
69
|
+
i("sendWabaValues", B);
|
|
70
|
+
}, ref: r, onMounted: v, provide: m, inject: f, WABATemplateSelector: M, get useMessageDraft() {
|
|
71
|
+
return b;
|
|
72
|
+
} };
|
|
73
|
+
return Object.defineProperty(u, "__isScriptSetup", { enumerable: !1, value: !0 }), u;
|
|
98
74
|
}
|
|
99
|
-
}
|
|
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"]]);
|
|
100
129
|
export {
|
|
101
|
-
|
|
130
|
+
K as default
|
|
102
131
|
};
|
|
@@ -1,7 +1,185 @@
|
|
|
1
|
-
import
|
|
1
|
+
import v from "./FilePreview.vue2.js";
|
|
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";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import u from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const y = { class: "preview__container" }, I = { class: "preview__block" }, h = ["src"], k = ["src"], g = {
|
|
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"]]);
|
|
5
183
|
export {
|
|
6
|
-
|
|
184
|
+
J as default
|
|
7
185
|
};
|