@mobilon-dev/chotto 0.3.119 → 0.3.121
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 +40 -59
- 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 -35
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +30 -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/DeletedMessageIcon.vue.js +27 -0
- 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/VerifiedBadge.vue.js +25 -19
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +552 -402
- 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 +12 -46
- 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 +62 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +80 -98
- 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 +76 -45
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +100 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +16 -91
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +79 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +88 -111
- 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 +32 -58
- 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 +41 -35
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +143 -323
- 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 +36 -68
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +71 -37
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +83 -62
- 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 +22 -42
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +460 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +181 -499
- 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/DelimiterMessage/DelimiterMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +37 -46
- 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/FeedReplyQuote/FeedReplyQuote.vue.js +52 -4
- package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +16 -39
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +270 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +95 -274
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +409 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +143 -422
- 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 +57 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +41 -69
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +97 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +102 -173
- 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 +34 -118
- 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 +94 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -76
- 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 +348 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +97 -339
- 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 +308 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +89 -299
- 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 +321 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +96 -338
- 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 +36 -19
- 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 +170 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +239 -336
- package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +43 -25
- 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 +256 -166
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +57 -39
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +185 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +161 -305
- 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 +33 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +90 -59
- package/dist/types/src/apps/data/chats.d.ts +9 -2
- package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
- package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
- package/dist/types/src/components/2_feed_elements/types/components.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +0 -21
- /package/dist/types/src/components/{2_feed_elements/DeletedMessageContent/icons → 1_icons}/DeletedMessageIcon.vue.d.ts +0 -0
package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js
CHANGED
|
@@ -1,7 +1,75 @@
|
|
|
1
|
-
import
|
|
1
|
+
import c from "./ButtonTemplateSelector.vue2.js";
|
|
2
|
+
import { createElementBlock as n, openBlock as a, Fragment as d, createVNode as l, withCtx as r, createCommentVNode as m, normalizeClass as u, createElementVNode as i, Transition as v, withDirectives as f, vShow as p } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const g = { class: "" };
|
|
6
|
+
function h(w, o, t, e, T, b) {
|
|
7
|
+
return a(), n(
|
|
8
|
+
d,
|
|
9
|
+
null,
|
|
10
|
+
[
|
|
11
|
+
l(e.Tooltip, {
|
|
12
|
+
text: "Шаблоны сообщений",
|
|
13
|
+
position: "left"
|
|
14
|
+
}, {
|
|
15
|
+
default: r(() => [
|
|
16
|
+
e.getMessage().isRecording ? m("v-if", !0) : (a(), n(
|
|
17
|
+
"button",
|
|
18
|
+
{
|
|
19
|
+
key: 0,
|
|
20
|
+
ref: "templateButton",
|
|
21
|
+
class: u(["button-template", { "button-template-disabled": t.state == "disabled" }]),
|
|
22
|
+
onClick: e.toggle,
|
|
23
|
+
onMouseover: e.hover,
|
|
24
|
+
onMouseout: e.hoverout,
|
|
25
|
+
onMouseenter: o[0] || (o[0] = (s) => e.isHovered = !0),
|
|
26
|
+
onMouseleave: o[1] || (o[1] = (s) => e.isHovered = !1)
|
|
27
|
+
},
|
|
28
|
+
[
|
|
29
|
+
i("span", g, [
|
|
30
|
+
l(e.ChatTemplatesIcon, { fill: e.currentIconColor }, null, 8, ["fill"])
|
|
31
|
+
])
|
|
32
|
+
],
|
|
33
|
+
34
|
|
34
|
+
/* CLASS, NEED_HYDRATION */
|
|
35
|
+
))
|
|
36
|
+
]),
|
|
37
|
+
_: 1
|
|
38
|
+
/* STABLE */
|
|
39
|
+
}),
|
|
40
|
+
l(v, { persisted: "" }, {
|
|
41
|
+
default: r(() => [
|
|
42
|
+
f(i(
|
|
43
|
+
"div",
|
|
44
|
+
{
|
|
45
|
+
ref: "template",
|
|
46
|
+
onMouseover: e.hover,
|
|
47
|
+
onMouseout: e.hoverout
|
|
48
|
+
},
|
|
49
|
+
[
|
|
50
|
+
l(e.TemplateSelector, {
|
|
51
|
+
templates: t.templates,
|
|
52
|
+
"group-templates": t.groupTemplates,
|
|
53
|
+
"elevated-window": t.elevatedWindow,
|
|
54
|
+
"chat-background": t.chatBackground,
|
|
55
|
+
onCloseTemplateWindow: e.close
|
|
56
|
+
}, null, 8, ["templates", "group-templates", "elevated-window", "chat-background"])
|
|
57
|
+
],
|
|
58
|
+
544
|
|
59
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
60
|
+
), [
|
|
61
|
+
[p, e.props.state === "active"]
|
|
62
|
+
])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
/* STABLE */
|
|
66
|
+
})
|
|
67
|
+
],
|
|
68
|
+
64
|
|
69
|
+
/* STABLE_FRAGMENT */
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
const x = /* @__PURE__ */ _(c, [["render", h], ["__scopeId", "data-v-7f371ef9"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue"]]);
|
|
5
73
|
export {
|
|
6
|
-
|
|
74
|
+
x as default
|
|
7
75
|
};
|
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
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
7
|
import "../../../locale/useLocale.js";
|
|
@@ -9,8 +9,8 @@ import "../../../locale/useLocale.js";
|
|
|
9
9
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
10
10
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
11
11
|
import "../../../functions/parseMarkdown.js";
|
|
12
|
-
import
|
|
13
|
-
const
|
|
12
|
+
import M from "./icons/ChatTemplatesIcon.vue.js";
|
|
13
|
+
const J = /* @__PURE__ */ S({
|
|
14
14
|
__name: "ButtonTemplateSelector",
|
|
15
15
|
props: {
|
|
16
16
|
templates: {
|
|
@@ -41,96 +41,60 @@ const R = { class: "" }, oe = /* @__PURE__ */ T({
|
|
|
41
41
|
default: void 0
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
|
-
setup(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
setup(d, { expose: v }) {
|
|
45
|
+
v();
|
|
46
|
+
const t = d, l = I("chatAppId"), { getMessage: f } = E(l || ""), y = s(null), e = s(null), a = s("#5F5F5F"), n = s("#404040"), p = s(!1);
|
|
47
|
+
let o = null;
|
|
48
|
+
const u = () => {
|
|
49
|
+
if (!l) {
|
|
50
|
+
a.value = "#5F5F5F", n.value = "#404040";
|
|
50
51
|
return;
|
|
51
52
|
}
|
|
52
|
-
const
|
|
53
|
-
if (!
|
|
54
|
-
|
|
53
|
+
const r = document.getElementById(l);
|
|
54
|
+
if (!r) {
|
|
55
|
+
a.value = "#5F5F5F", n.value = "#404040";
|
|
55
56
|
return;
|
|
56
57
|
}
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
const i = window.getComputedStyle(r), c = i.getPropertyValue("--chotto-buttontemplateselector-button-span-color").trim(), C = i.getPropertyValue("--chotto-buttontemplateselector-button-span-hover-color").trim();
|
|
59
|
+
a.value = c || "#5F5F5F", n.value = C || "#404040";
|
|
60
|
+
}, h = B(() => p.value ? n.value : a.value);
|
|
61
|
+
T(() => {
|
|
62
|
+
u();
|
|
62
63
|
});
|
|
63
|
-
const
|
|
64
|
-
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
},
|
|
64
|
+
const g = () => {
|
|
65
|
+
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"));
|
|
66
|
+
}, b = () => {
|
|
67
|
+
t.mode == "hover" && t.state == "active" && e.value && (e.value.style.display = "inherit");
|
|
68
|
+
}, F = () => {
|
|
69
|
+
t.mode == "hover" && t.state == "active" && e.value && (e.value.style.display = "none");
|
|
70
|
+
}, _ = () => {
|
|
70
71
|
e.value && (e.value.style.display = "none");
|
|
71
72
|
};
|
|
72
|
-
|
|
73
|
-
if (e.value && (e.value.style.display = "none"),
|
|
74
|
-
const
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
73
|
+
w(() => {
|
|
74
|
+
if (e.value && (e.value.style.display = "none"), u(), l) {
|
|
75
|
+
const r = document.getElementById(l);
|
|
76
|
+
r && (o = new MutationObserver((i) => {
|
|
77
|
+
i.forEach((c) => {
|
|
78
|
+
c.type === "attributes" && c.attributeName === "data-theme" && u();
|
|
78
79
|
});
|
|
79
|
-
}),
|
|
80
|
+
}), o.observe(r, {
|
|
80
81
|
attributes: !0,
|
|
81
82
|
attributeFilter: ["data-theme"]
|
|
82
83
|
}));
|
|
83
84
|
}
|
|
84
|
-
}),
|
|
85
|
-
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
ref: k,
|
|
96
|
-
class: W(["button-template", { "button-template-disabled": l.state == "disabled" }]),
|
|
97
|
-
onClick: B,
|
|
98
|
-
onMouseover: v,
|
|
99
|
-
onMouseout: f,
|
|
100
|
-
onMouseenter: t[0] || (t[0] = (n) => m.value = !0),
|
|
101
|
-
onMouseleave: t[1] || (t[1] = (n) => m.value = !1)
|
|
102
|
-
}, [
|
|
103
|
-
F("span", R, [
|
|
104
|
-
d(b(z), { fill: C.value }, null, 8, ["fill"])
|
|
105
|
-
])
|
|
106
|
-
], 34))
|
|
107
|
-
]),
|
|
108
|
-
_: 1
|
|
109
|
-
}),
|
|
110
|
-
d($, null, {
|
|
111
|
-
default: h(() => [
|
|
112
|
-
D(F("div", {
|
|
113
|
-
ref_key: "template",
|
|
114
|
-
ref: e,
|
|
115
|
-
onMouseover: v,
|
|
116
|
-
onMouseout: f
|
|
117
|
-
}, [
|
|
118
|
-
d(O, {
|
|
119
|
-
templates: l.templates,
|
|
120
|
-
"group-templates": l.groupTemplates,
|
|
121
|
-
"elevated-window": l.elevatedWindow,
|
|
122
|
-
"chat-background": l.chatBackground,
|
|
123
|
-
onCloseTemplateWindow: M
|
|
124
|
-
}, null, 8, ["templates", "group-templates", "elevated-window", "chat-background"])
|
|
125
|
-
], 544), [
|
|
126
|
-
[H, o.state === "active"]
|
|
127
|
-
])
|
|
128
|
-
]),
|
|
129
|
-
_: 1
|
|
130
|
-
})
|
|
131
|
-
], 64));
|
|
85
|
+
}), O(() => {
|
|
86
|
+
o && (o.disconnect(), o = null);
|
|
87
|
+
});
|
|
88
|
+
const m = { props: t, chatAppId: l, getMessage: f, templateButton: y, template: e, iconFillColor: a, iconHoverColor: n, isHovered: p, get themeObserver() {
|
|
89
|
+
return o;
|
|
90
|
+
}, set themeObserver(r) {
|
|
91
|
+
o = r;
|
|
92
|
+
}, updateIconColor: u, currentIconColor: h, toggle: g, hover: b, hoverout: F, close: _, TemplateSelector: q, Tooltip: A, get ChatTemplatesIcon() {
|
|
93
|
+
return M;
|
|
94
|
+
} };
|
|
95
|
+
return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
|
|
132
96
|
}
|
|
133
97
|
});
|
|
134
98
|
export {
|
|
135
|
-
|
|
99
|
+
J as default
|
|
136
100
|
};
|
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,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createElementBlock as p, openBlock as c, Fragment as w, createCommentVNode as T, createElementVNode as m, normalizeClass as k, createVNode as M, provide as r, inject as f, ref as n, onMounted as v } from "vue";
|
|
2
2
|
import V from "../WABATemplateSelector/WABATemplateSelector.vue.js";
|
|
3
|
-
import { chottoUploadFileKey as
|
|
4
|
-
import { useMessageDraft as
|
|
3
|
+
import { chottoUploadFileKey as y } from "../../../hooks/uploadFile/types.js";
|
|
4
|
+
import { useMessageDraft as b } from "../../../hooks/useMessageDraft.js";
|
|
5
5
|
/* empty css */
|
|
6
|
-
import
|
|
6
|
+
import A from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
import "../../../locale/useLocale.js";
|
|
9
9
|
/* empty css */
|
|
@@ -55,54 +55,85 @@ const U = {
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
emits: ["sendWabaValues"],
|
|
58
|
-
setup(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
58
|
+
setup(s, { expose: o, emit: a }) {
|
|
59
|
+
o();
|
|
60
|
+
const e = s;
|
|
61
|
+
r("filebumpUrl", e.filebumpUrl), e.uploader && r(y, e.uploader);
|
|
62
|
+
const l = f("chatAppId"), { getMessage: i } = b(l), g = n(null), t = n(null), u = a, h = () => {
|
|
62
63
|
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"));
|
|
63
|
-
},
|
|
64
|
+
}, _ = () => {
|
|
64
65
|
e.mode == "hover" && e.state == "active" && (t.value.style.display = "inherit");
|
|
65
|
-
},
|
|
66
|
+
}, W = () => {
|
|
66
67
|
e.mode == "hover" && e.state == "active" && (t.value.style.display = "none");
|
|
67
|
-
},
|
|
68
|
+
}, B = () => {
|
|
68
69
|
t.value.style.display = "none";
|
|
69
70
|
};
|
|
70
|
-
|
|
71
|
+
v(() => {
|
|
71
72
|
t.value.style.display = "none";
|
|
72
73
|
});
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
class: T(["button-template", { "button-template-disabled": a.state == "disabled" }]),
|
|
82
|
-
onClick: b,
|
|
83
|
-
onMouseover: o,
|
|
84
|
-
onMouseout: l
|
|
85
|
-
}, [...r[0] || (r[0] = [
|
|
86
|
-
p("span", { class: "pi pi-code" }, null, -1)
|
|
87
|
-
])], 34)),
|
|
88
|
-
p("div", {
|
|
89
|
-
ref_key: "template",
|
|
90
|
-
ref: t,
|
|
91
|
-
onMouseover: o,
|
|
92
|
-
onMouseout: l
|
|
93
|
-
}, [
|
|
94
|
-
M(V, {
|
|
95
|
-
"waba-templates": a.wabaTemplates,
|
|
96
|
-
"group-templates": a.groupTemplates,
|
|
97
|
-
"elevated-window": a.elevatedWindow,
|
|
98
|
-
"chat-background": a.chatBackground,
|
|
99
|
-
onCloseTemplateWindow: g,
|
|
100
|
-
onSendWabaValues: h
|
|
101
|
-
}, null, 8, ["waba-templates", "group-templates", "elevated-window", "chat-background"])
|
|
102
|
-
], 544)
|
|
103
|
-
], 64));
|
|
74
|
+
const d = { props: e, chatAppId: l, getMessage: i, templateButton: g, template: t, emit: u, toggle: h, hover: _, hoverout: W, close: B, sendWabaValues: (S) => {
|
|
75
|
+
u("sendWabaValues", S);
|
|
76
|
+
}, ref: n, onMounted: v, provide: r, inject: f, WABATemplateSelector: V, get useMessageDraft() {
|
|
77
|
+
return b;
|
|
78
|
+
}, get chottoUploadFileKey() {
|
|
79
|
+
return y;
|
|
80
|
+
} };
|
|
81
|
+
return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
|
|
104
82
|
}
|
|
105
|
-
}
|
|
83
|
+
};
|
|
84
|
+
function q(s, o, a, e, l, i) {
|
|
85
|
+
return c(), p(
|
|
86
|
+
w,
|
|
87
|
+
null,
|
|
88
|
+
[
|
|
89
|
+
e.getMessage().isRecording ? T("v-if", !0) : (c(), p(
|
|
90
|
+
"button",
|
|
91
|
+
{
|
|
92
|
+
key: 0,
|
|
93
|
+
ref: "templateButton",
|
|
94
|
+
class: k(["button-template", { "button-template-disabled": a.state == "disabled" }]),
|
|
95
|
+
onClick: e.toggle,
|
|
96
|
+
onMouseover: e.hover,
|
|
97
|
+
onMouseout: e.hoverout
|
|
98
|
+
},
|
|
99
|
+
[...o[0] || (o[0] = [
|
|
100
|
+
m(
|
|
101
|
+
"span",
|
|
102
|
+
{ class: "pi pi-code" },
|
|
103
|
+
null,
|
|
104
|
+
-1
|
|
105
|
+
/* CACHED */
|
|
106
|
+
)
|
|
107
|
+
])],
|
|
108
|
+
34
|
|
109
|
+
/* CLASS, NEED_HYDRATION */
|
|
110
|
+
)),
|
|
111
|
+
m(
|
|
112
|
+
"div",
|
|
113
|
+
{
|
|
114
|
+
ref: "template",
|
|
115
|
+
onMouseover: e.hover,
|
|
116
|
+
onMouseout: e.hoverout
|
|
117
|
+
},
|
|
118
|
+
[
|
|
119
|
+
M(e.WABATemplateSelector, {
|
|
120
|
+
"waba-templates": a.wabaTemplates,
|
|
121
|
+
"group-templates": a.groupTemplates,
|
|
122
|
+
"elevated-window": a.elevatedWindow,
|
|
123
|
+
"chat-background": a.chatBackground,
|
|
124
|
+
onCloseTemplateWindow: e.close,
|
|
125
|
+
onSendWabaValues: e.sendWabaValues
|
|
126
|
+
}, null, 8, ["waba-templates", "group-templates", "elevated-window", "chat-background"])
|
|
127
|
+
],
|
|
128
|
+
544
|
|
129
|
+
/* NEED_HYDRATION, NEED_PATCH */
|
|
130
|
+
)
|
|
131
|
+
],
|
|
132
|
+
64
|
|
133
|
+
/* STABLE_FRAGMENT */
|
|
134
|
+
);
|
|
135
|
+
}
|
|
136
|
+
const H = /* @__PURE__ */ A(U, [["render", q], ["__scopeId", "data-v-367ee7e9"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue"]]);
|
|
106
137
|
export {
|
|
107
|
-
|
|
138
|
+
H as default
|
|
108
139
|
};
|
|
@@ -1,8 +1,104 @@
|
|
|
1
|
-
import
|
|
1
|
+
import d from "./FilePreview.vue2.js";
|
|
2
|
+
import { createElementBlock as t, openBlock as i, createElementVNode as n, createBlock as s, createCommentVNode as a, toDisplayString as f, Teleport as c, createVNode as m, Transition as v, withCtx as r } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
4
|
/* empty css */
|
|
4
|
-
import
|
|
5
|
-
const
|
|
5
|
+
import h from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const w = { class: "preview" }, u = ["src", "alt"], I = ["src"], y = {
|
|
7
|
+
key: 2,
|
|
8
|
+
class: "pi pi-play preview__thumb-play"
|
|
9
|
+
}, k = {
|
|
10
|
+
key: 1,
|
|
11
|
+
class: "pi pi-file preview__icon"
|
|
12
|
+
}, p = { class: "preview__info" }, b = ["title"], g = {
|
|
13
|
+
key: 0,
|
|
14
|
+
class: "preview__size"
|
|
15
|
+
}, N = ["aria-label"], V = ["src"], C = ["src", "alt"];
|
|
16
|
+
function F(x, o, e, l, M, P) {
|
|
17
|
+
return i(), t("div", w, [
|
|
18
|
+
l.hasVisualPreview ? (i(), t("div", {
|
|
19
|
+
key: 0,
|
|
20
|
+
class: "preview__thumb",
|
|
21
|
+
onClick: o[0] || (o[0] = (_) => l.isOpenModal = !0)
|
|
22
|
+
}, [
|
|
23
|
+
e.fileInfo.isImage ? (i(), t("img", {
|
|
24
|
+
key: 0,
|
|
25
|
+
src: e.fileInfo.previewUrl,
|
|
26
|
+
alt: e.fileInfo.fileName,
|
|
27
|
+
class: "preview__thumb-media"
|
|
28
|
+
}, null, 8, u)) : e.fileInfo.isVideo ? (i(), t("video", {
|
|
29
|
+
key: 1,
|
|
30
|
+
src: e.fileInfo.previewUrl,
|
|
31
|
+
class: "preview__thumb-media",
|
|
32
|
+
muted: "",
|
|
33
|
+
playsinline: "",
|
|
34
|
+
preload: "metadata",
|
|
35
|
+
onLoadedmetadata: l.showVideoFrame
|
|
36
|
+
}, null, 40, I)) : a("v-if", !0),
|
|
37
|
+
e.fileInfo.isVideo ? (i(), t("span", y)) : a("v-if", !0)
|
|
38
|
+
])) : (i(), t("span", k)),
|
|
39
|
+
n("div", p, [
|
|
40
|
+
n("span", {
|
|
41
|
+
class: "preview__name",
|
|
42
|
+
title: e.fileInfo.fileName
|
|
43
|
+
}, f(e.fileInfo.fileName), 9, b),
|
|
44
|
+
e.fileInfo.fileSize ? (i(), t(
|
|
45
|
+
"span",
|
|
46
|
+
g,
|
|
47
|
+
f(e.fileInfo.fileSize),
|
|
48
|
+
1
|
|
49
|
+
/* TEXT */
|
|
50
|
+
)) : a("v-if", !0)
|
|
51
|
+
]),
|
|
52
|
+
n("button", {
|
|
53
|
+
type: "button",
|
|
54
|
+
class: "preview__reset",
|
|
55
|
+
"aria-label": e.fileInfo.fileName,
|
|
56
|
+
onClick: o[1] || (o[1] = (_) => l.emit("reset"))
|
|
57
|
+
}, [...o[2] || (o[2] = [
|
|
58
|
+
n(
|
|
59
|
+
"span",
|
|
60
|
+
{ class: "pi pi-times" },
|
|
61
|
+
null,
|
|
62
|
+
-1
|
|
63
|
+
/* CACHED */
|
|
64
|
+
)
|
|
65
|
+
])], 8, N),
|
|
66
|
+
(i(), s(c, { to: "body" }, [
|
|
67
|
+
m(v, { name: "modal-fade" }, {
|
|
68
|
+
default: r(() => [
|
|
69
|
+
l.isOpenModal ? (i(), s(l.ModalFullscreen, {
|
|
70
|
+
key: 0,
|
|
71
|
+
theme: l.getTheme().theme ? l.getTheme().theme : "light",
|
|
72
|
+
title: e.fileInfo.fileName,
|
|
73
|
+
onClose: l.closeModal
|
|
74
|
+
}, {
|
|
75
|
+
default: r(() => [
|
|
76
|
+
e.fileInfo.isVideo ? (i(), t("video", {
|
|
77
|
+
key: 0,
|
|
78
|
+
class: "preview__modal-video",
|
|
79
|
+
src: e.fileInfo.previewUrl,
|
|
80
|
+
controls: "",
|
|
81
|
+
autoplay: "",
|
|
82
|
+
playsinline: ""
|
|
83
|
+
}, null, 8, V)) : a("v-if", !0),
|
|
84
|
+
e.fileInfo.isImage ? (i(), t("img", {
|
|
85
|
+
key: 1,
|
|
86
|
+
class: "preview__modal-image",
|
|
87
|
+
src: e.fileInfo.previewUrl,
|
|
88
|
+
alt: e.fileInfo.fileName
|
|
89
|
+
}, null, 8, C)) : a("v-if", !0)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
/* STABLE */
|
|
93
|
+
}, 8, ["theme", "title"])) : a("v-if", !0)
|
|
94
|
+
]),
|
|
95
|
+
_: 1
|
|
96
|
+
/* STABLE */
|
|
97
|
+
})
|
|
98
|
+
]))
|
|
99
|
+
]);
|
|
100
|
+
}
|
|
101
|
+
const E = /* @__PURE__ */ h(d, [["render", F], ["__scopeId", "data-v-a48ddb15"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/FilePreview/FilePreview.vue"]]);
|
|
6
102
|
export {
|
|
7
|
-
|
|
103
|
+
E as default
|
|
8
104
|
};
|