@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/WABATemplateSelector/WABATemplateSelector.vue.js
CHANGED
|
@@ -1,12 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { inject as re, ref as i, computed as u, reactive as ce, onMounted as ie, unref as F, createElementBlock as n, openBlock as o, createElementVNode as s, normalizeClass as j, createCommentVNode as p, Fragment as S, renderList as R, withDirectives as $, vModelRadio as ue, toDisplayString as I, vModelText as de, normalizeStyle as pe, createBlock as L, createVNode as me } from "vue";
|
|
2
|
+
import ve from "../../3_compounds/Feed/assets/chat-background.svg.js";
|
|
3
|
+
import _e from "../PlaceholderComponent/PlaceholderComponent.vue.js";
|
|
4
|
+
import fe from "../WABAAttachmentSection/WABAAttachmentSection.vue.js";
|
|
5
|
+
import ye from "../WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js";
|
|
6
|
+
import he from "../WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js";
|
|
7
7
|
/* empty css */
|
|
8
|
-
import
|
|
9
|
-
const Te = {
|
|
8
|
+
import be from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const ge = { class: "template-selector" }, we = ["id"], ke = { style: { display: "flex" } }, Te = { style: { display: "flex" } }, Ce = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "template-selector__button-close"
|
|
12
|
+
}, xe = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "template-selector__button-close"
|
|
15
|
+
}, Ve = { class: "template-selector__layout" }, Se = { class: "template-selector__first-col" }, Ie = { class: "template-selector__list-groups" }, Ae = { class: "template-selector__label-group" }, Be = ["src", "alt"], We = ["id", "value"], Ee = { class: "template-selector__second-col" }, Pe = { class: "template-selector__searching-container" }, Fe = { class: "template-selector__templates" }, je = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "template-selector__list-templates"
|
|
18
|
+
}, Re = ["onClick"], Le = { class: "template-selector__item-template-info" }, Oe = { class: "template-selector__item-title" }, Ue = { class: "template-selector__item-text" }, ze = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "template-selector__plug"
|
|
21
|
+
}, Me = { class: "template-selector__third-col" }, Qe = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "template-selector__preview"
|
|
24
|
+
}, $e = { class: "template-selector__preview-wrapper" }, qe = { class: "template-selector__preview-text-container" }, Ne = { key: 0 }, Xe = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "template-selector__plug"
|
|
27
|
+
}, De = {
|
|
28
|
+
key: 2,
|
|
29
|
+
class: "template-selector__reply-buttons"
|
|
30
|
+
}, Ge = ["disabled"], He = {
|
|
10
31
|
__name: "WABATemplateSelector",
|
|
11
32
|
props: {
|
|
12
33
|
wabaTemplates: {
|
|
@@ -30,12 +51,11 @@ const Te = {
|
|
|
30
51
|
}
|
|
31
52
|
},
|
|
32
53
|
emits: ["closeTemplateWindow", "sendWabaValues"],
|
|
33
|
-
setup(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
g("closeTemplateWindow");
|
|
54
|
+
setup(w, { emit: q }) {
|
|
55
|
+
const m = w, y = re("chatAppId"), A = q, N = () => {
|
|
56
|
+
A("closeTemplateWindow"), z();
|
|
57
|
+
}, X = () => {
|
|
58
|
+
A("closeTemplateWindow");
|
|
39
59
|
const e = {
|
|
40
60
|
text: "",
|
|
41
61
|
templateId: "",
|
|
@@ -43,318 +63,219 @@ const Te = {
|
|
|
43
63
|
file: null,
|
|
44
64
|
buttons: null
|
|
45
65
|
};
|
|
46
|
-
v.value ? (e.text =
|
|
47
|
-
},
|
|
66
|
+
v.value ? (e.text = M.value, e.templateId = a.value.templateId, e.values = Q.value, e.file = v.value) : (e.text = M.value, e.templateId = a.value.templateId, e.values = Q.value), a.value.buttons && (e.buttons = a.value.buttons), A("sendWabaValues", e), z();
|
|
67
|
+
}, D = (e) => {
|
|
48
68
|
v.value = e;
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
Object.keys(
|
|
53
|
-
|
|
54
|
-
}), v.value = null,
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
const e =
|
|
59
|
-
return
|
|
60
|
-
}),
|
|
61
|
-
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
},
|
|
69
|
+
}, k = i(null), h = i(null), a = i(null), v = i(null), B = i(""), b = i(!1), W = () => {
|
|
70
|
+
b.value = !b.value, b.value ? (k.value.scrollTop = 0, k.value.style["overflow-y"] = "hidden") : k.value.style["overflow-y"] = "scroll";
|
|
71
|
+
}, G = (e) => {
|
|
72
|
+
Object.keys(r).forEach((l) => {
|
|
73
|
+
r[l] = "";
|
|
74
|
+
}), v.value = null, m.wabaTemplates.forEach((l) => l.isSelected = !1), e.isSelected = !0, a.value = e, b.value = !1, U();
|
|
75
|
+
}, H = () => {
|
|
76
|
+
P(), m.wabaTemplates.forEach((e) => e.isSelected = !1);
|
|
77
|
+
}, J = u(() => m.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(ve)}`), K = u(() => h.value ? m.wabaTemplates.filter((e) => e.groupId === h.value.groupId) : m.wabaTemplates), O = u(() => {
|
|
78
|
+
const e = B.value.trim().toLowerCase();
|
|
79
|
+
return K.value.filter((l) => l.title.toLowerCase().includes(e) || l.template.toLowerCase().includes(e));
|
|
80
|
+
}), r = ce({}), Y = i(null), E = i(), T = i(""), d = i(""), C = i(""), _ = i(!1), Z = u(() => !!(_.value && (C.value == "grid" && d.value == "none" || d.value == "grid" && T.value == "none"))), ee = u(() => !!(_.value && (T.value == "grid" && d.value == "none" || d.value == "grid" && C.value == "none"))), te = () => {
|
|
81
|
+
_.value && (d.value == "grid" ? se() : C.value == "grid" && P());
|
|
82
|
+
}, le = () => {
|
|
83
|
+
_.value && (d.value == "grid" ? U() : T.value == "grid" && P());
|
|
84
|
+
}, se = () => {
|
|
65
85
|
const e = document.getElementById("waba-template-selector-container-" + y);
|
|
66
|
-
e.style.setProperty("--chotto-waba-template-first-col-display", "grid"), e.style.setProperty("--chotto-waba-template-second-col-display", "none"), console.log(e, window.getComputedStyle(e).getPropertyValue("--waba-template-first-col-display")),
|
|
67
|
-
},
|
|
86
|
+
e.style.setProperty("--chotto-waba-template-first-col-display", "grid"), e.style.setProperty("--chotto-waba-template-second-col-display", "none"), console.log(e, window.getComputedStyle(e).getPropertyValue("--waba-template-first-col-display")), x();
|
|
87
|
+
}, U = () => {
|
|
68
88
|
const e = document.getElementById("waba-template-selector-container-" + y);
|
|
69
|
-
e.style.setProperty("--chotto-waba-template-third-col-display", "grid"), e.style.setProperty("--chotto-waba-template-second-col-display", "none"),
|
|
70
|
-
},
|
|
89
|
+
e.style.setProperty("--chotto-waba-template-third-col-display", "grid"), e.style.setProperty("--chotto-waba-template-second-col-display", "none"), x();
|
|
90
|
+
}, P = () => {
|
|
71
91
|
const e = document.getElementById("waba-template-selector-container-" + y);
|
|
72
|
-
e.style.setProperty("--chotto-waba-template-second-col-display", "grid"), e.style.setProperty("--chotto-waba-template-first-col-display", "none"), e.style.setProperty("--chotto-waba-template-third-col-display", "none"),
|
|
73
|
-
},
|
|
74
|
-
const e = document.getElementById("waba-template-selector-container-" + y),
|
|
75
|
-
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
var
|
|
80
|
-
const e = (
|
|
92
|
+
e.style.setProperty("--chotto-waba-template-second-col-display", "grid"), e.style.setProperty("--chotto-waba-template-first-col-display", "none"), e.style.setProperty("--chotto-waba-template-third-col-display", "none"), x();
|
|
93
|
+
}, x = () => {
|
|
94
|
+
const e = document.getElementById("waba-template-selector-container-" + y), l = window.getComputedStyle(e);
|
|
95
|
+
T.value = l.getPropertyValue("--chotto-waba-template-first-col-display"), d.value = l.getPropertyValue("--chotto-waba-template-second-col-display"), C.value = l.getPropertyValue("--chotto-waba-template-third-col-display");
|
|
96
|
+
}, ae = (e) => {
|
|
97
|
+
r[e[1]] = e[0];
|
|
98
|
+
}, V = u(() => {
|
|
99
|
+
var f;
|
|
100
|
+
const e = (f = a.value) == null ? void 0 : f.template;
|
|
81
101
|
if (!e) return [];
|
|
82
|
-
const
|
|
83
|
-
let
|
|
84
|
-
return
|
|
85
|
-
|
|
86
|
-
}),
|
|
87
|
-
}),
|
|
88
|
-
var
|
|
89
|
-
if (!
|
|
102
|
+
const l = [...e.matchAll(/{{\d+}}/g)], t = [];
|
|
103
|
+
let c = 0;
|
|
104
|
+
return l.forEach((g) => {
|
|
105
|
+
g.index > c && t.push(e.substring(c, g.index)), t.push({ index: parseInt(g[0].slice(2, -2)) }), c = g.index + g[0].length;
|
|
106
|
+
}), c < e.length && t.push(e.substring(c)), t;
|
|
107
|
+
}), oe = u(() => {
|
|
108
|
+
var l, t;
|
|
109
|
+
if (!a.value)
|
|
90
110
|
return !0;
|
|
91
|
-
if (!((
|
|
111
|
+
if (!((l = a.value) != null && l.template.match(/{{\d+}}/gi)))
|
|
92
112
|
return !1;
|
|
93
|
-
const e = Object.keys(
|
|
94
|
-
return
|
|
95
|
-
}),
|
|
96
|
-
Object.keys(
|
|
97
|
-
|
|
98
|
-
}), v.value = null,
|
|
99
|
-
},
|
|
100
|
-
console.log(
|
|
101
|
-
let e =
|
|
102
|
-
return
|
|
103
|
-
| [` +
|
|
113
|
+
const e = Object.keys(r).length !== ((t = a.value) == null ? void 0 : t.template.match(/{{\d+}}/gi).length);
|
|
114
|
+
return a.value.type === "TEXT" ? e : a.value.type !== "TEXT" ? e || !v.value : !1;
|
|
115
|
+
}), z = () => {
|
|
116
|
+
Object.keys(r).forEach((e) => {
|
|
117
|
+
r[e] = "";
|
|
118
|
+
}), v.value = null, a.value = null, m.wabaTemplates.forEach((e) => e.isSelected = !1);
|
|
119
|
+
}, M = u(() => {
|
|
120
|
+
console.log(V.value, a.value.buttons);
|
|
121
|
+
let e = V.value.map((t) => typeof t == "string" ? t : r[t.index]).join(""), l = "";
|
|
122
|
+
return a.value.buttons && (l = a.value.buttons.map((t) => `
|
|
123
|
+
| [` + t.text + "]").join("")), e.concat(l);
|
|
104
124
|
}), Q = u(() => {
|
|
105
125
|
const e = [];
|
|
106
|
-
for (const
|
|
107
|
-
|
|
126
|
+
for (const l in r)
|
|
127
|
+
r[l] !== "" && r[l] !== "Заполнить" && e.push(r[l]);
|
|
108
128
|
return e;
|
|
109
|
-
}),
|
|
110
|
-
const
|
|
111
|
-
|
|
129
|
+
}), ne = new ResizeObserver((e) => {
|
|
130
|
+
const l = e[0].target.clientWidth;
|
|
131
|
+
l > 700 && (_.value = !1), l < 700 && (_.value = !0);
|
|
112
132
|
});
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
})
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
return s(), r("div", ke, [
|
|
145
|
-
l("div", {
|
|
146
|
-
id: "waba-template-selector-container-" + t.chatAppId,
|
|
147
|
-
ref: "refContainer",
|
|
148
|
-
class: O({
|
|
149
|
-
"template-selector__container-inline": !b.elevatedWindow,
|
|
150
|
-
"template-selector__container-elevated": b.elevatedWindow
|
|
151
|
-
})
|
|
152
|
-
}, [
|
|
153
|
-
l("div", Se, [
|
|
154
|
-
l("div", xe, [
|
|
155
|
-
t.allowTurnLeft ? (s(), r("button", Ce, [
|
|
156
|
-
l("span", {
|
|
157
|
-
class: "pi pi-arrow-left",
|
|
158
|
-
onClick: t.turnLeft
|
|
159
|
-
})
|
|
160
|
-
])) : h("v-if", !0),
|
|
161
|
-
t.allowTurnRight ? (s(), r("button", Ve, [
|
|
162
|
-
l("span", {
|
|
163
|
-
class: "pi pi-arrow-right",
|
|
164
|
-
onClick: t.turnRight
|
|
133
|
+
return ie(() => {
|
|
134
|
+
x(), F(E) && ne.observe(F(E));
|
|
135
|
+
}), (e, l) => (o(), n("div", ge, [
|
|
136
|
+
s("div", {
|
|
137
|
+
id: "waba-template-selector-container-" + F(y),
|
|
138
|
+
ref_key: "refContainer",
|
|
139
|
+
ref: E,
|
|
140
|
+
class: j({
|
|
141
|
+
"template-selector__container-inline": !w.elevatedWindow,
|
|
142
|
+
"template-selector__container-elevated": w.elevatedWindow
|
|
143
|
+
})
|
|
144
|
+
}, [
|
|
145
|
+
s("div", ke, [
|
|
146
|
+
s("div", Te, [
|
|
147
|
+
Z.value ? (o(), n("button", Ce, [
|
|
148
|
+
s("span", {
|
|
149
|
+
class: "pi pi-arrow-left",
|
|
150
|
+
onClick: te
|
|
151
|
+
})
|
|
152
|
+
])) : p("", !0),
|
|
153
|
+
ee.value ? (o(), n("button", xe, [
|
|
154
|
+
s("span", {
|
|
155
|
+
class: "pi pi-arrow-right",
|
|
156
|
+
onClick: le
|
|
157
|
+
})
|
|
158
|
+
])) : p("", !0)
|
|
159
|
+
]),
|
|
160
|
+
s("button", { class: "template-selector__button-close" }, [
|
|
161
|
+
s("span", {
|
|
162
|
+
class: "pi pi-times",
|
|
163
|
+
onClick: N
|
|
165
164
|
})
|
|
166
|
-
])) : h("v-if", !0)
|
|
167
|
-
]),
|
|
168
|
-
l("button", { class: "template-selector__button-close" }, [
|
|
169
|
-
l("span", {
|
|
170
|
-
class: "pi pi-times",
|
|
171
|
-
onClick: t.closeTemplateWindow
|
|
172
|
-
})
|
|
173
|
-
])
|
|
174
|
-
]),
|
|
175
|
-
l("div", Be, [
|
|
176
|
-
l("div", We, [
|
|
177
|
-
l("ul", Ie, [
|
|
178
|
-
(s(!0), r(
|
|
179
|
-
W,
|
|
180
|
-
null,
|
|
181
|
-
U(b.groupTemplates, (o, m) => (s(), r(
|
|
182
|
-
"li",
|
|
183
|
-
{
|
|
184
|
-
key: m,
|
|
185
|
-
class: O(["template-selector__item-group", { "template-selector__item-selected": t.selectedGroup === o }]),
|
|
186
|
-
onClick: t.clearSelectedTemplate
|
|
187
|
-
},
|
|
188
|
-
[
|
|
189
|
-
l("label", Pe, [
|
|
190
|
-
o.iconUrl ? (s(), r("img", {
|
|
191
|
-
key: 0,
|
|
192
|
-
class: "template-selector__item-group-icon",
|
|
193
|
-
src: o.iconUrl,
|
|
194
|
-
alt: o.title
|
|
195
|
-
}, null, 8, Ee)) : h("v-if", !0),
|
|
196
|
-
K(l("input", {
|
|
197
|
-
id: m,
|
|
198
|
-
"onUpdate:modelValue": p[0] || (p[0] = (w) => t.selectedGroup = w),
|
|
199
|
-
value: o,
|
|
200
|
-
class: "template-selector__input-group",
|
|
201
|
-
type: "radio"
|
|
202
|
-
}, null, 8, Fe), [
|
|
203
|
-
[me, t.selectedGroup]
|
|
204
|
-
]),
|
|
205
|
-
l(
|
|
206
|
-
"span",
|
|
207
|
-
null,
|
|
208
|
-
I(o.title),
|
|
209
|
-
1
|
|
210
|
-
/* TEXT */
|
|
211
|
-
)
|
|
212
|
-
])
|
|
213
|
-
],
|
|
214
|
-
2
|
|
215
|
-
/* CLASS */
|
|
216
|
-
))),
|
|
217
|
-
128
|
|
218
|
-
/* KEYED_FRAGMENT */
|
|
219
|
-
))
|
|
220
165
|
])
|
|
221
166
|
]),
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
"
|
|
226
|
-
|
|
227
|
-
|
|
167
|
+
s("div", Ve, [
|
|
168
|
+
s("div", Se, [
|
|
169
|
+
s("ul", Ie, [
|
|
170
|
+
(o(!0), n(S, null, R(w.groupTemplates, (t, c) => (o(), n("li", {
|
|
171
|
+
key: c,
|
|
172
|
+
class: j(["template-selector__item-group", { "template-selector__item-selected": h.value === t }]),
|
|
173
|
+
onClick: H
|
|
174
|
+
}, [
|
|
175
|
+
s("label", Ae, [
|
|
176
|
+
t.iconUrl ? (o(), n("img", {
|
|
177
|
+
key: 0,
|
|
178
|
+
class: "template-selector__item-group-icon",
|
|
179
|
+
src: t.iconUrl,
|
|
180
|
+
alt: t.title
|
|
181
|
+
}, null, 8, Be)) : p("", !0),
|
|
182
|
+
$(s("input", {
|
|
183
|
+
id: c,
|
|
184
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => h.value = f),
|
|
185
|
+
value: t,
|
|
186
|
+
class: "template-selector__input-group",
|
|
187
|
+
type: "radio"
|
|
188
|
+
}, null, 8, We), [
|
|
189
|
+
[ue, h.value]
|
|
190
|
+
]),
|
|
191
|
+
s("span", null, I(t.title), 1)
|
|
192
|
+
])
|
|
193
|
+
], 2))), 128))
|
|
194
|
+
])
|
|
195
|
+
]),
|
|
196
|
+
s("div", Ee, [
|
|
197
|
+
s("div", Pe, [
|
|
198
|
+
$(s("input", {
|
|
199
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => B.value = t),
|
|
228
200
|
class: "template-selector__searching-input",
|
|
229
201
|
type: "text",
|
|
230
202
|
placeholder: "Поиск шаблона"
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
(s(!0), r(
|
|
242
|
-
W,
|
|
243
|
-
null,
|
|
244
|
-
U(t.searchedTemplate, (o, m) => (s(), r("li", {
|
|
245
|
-
key: m,
|
|
246
|
-
class: O(["template-selector__item-template", { "template-selector__item-selected": o.isSelected }]),
|
|
247
|
-
onClick: (w) => t.selectTemplate(o)
|
|
203
|
+
}, null, 512), [
|
|
204
|
+
[de, B.value]
|
|
205
|
+
])
|
|
206
|
+
]),
|
|
207
|
+
s("div", Fe, [
|
|
208
|
+
O.value.length !== 0 ? (o(), n("ul", je, [
|
|
209
|
+
(o(!0), n(S, null, R(O.value, (t, c) => (o(), n("li", {
|
|
210
|
+
key: c,
|
|
211
|
+
class: j(["template-selector__item-template", { "template-selector__item-selected": t.isSelected }]),
|
|
212
|
+
onClick: (f) => G(t)
|
|
248
213
|
}, [
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
Me,
|
|
253
|
-
I(o.title),
|
|
254
|
-
1
|
|
255
|
-
/* TEXT */
|
|
256
|
-
),
|
|
257
|
-
l(
|
|
258
|
-
"p",
|
|
259
|
-
ze,
|
|
260
|
-
I(o.template),
|
|
261
|
-
1
|
|
262
|
-
/* TEXT */
|
|
263
|
-
)
|
|
214
|
+
s("div", Le, [
|
|
215
|
+
s("p", Oe, I(t.title), 1),
|
|
216
|
+
s("p", Ue, I(t.template), 1)
|
|
264
217
|
])
|
|
265
|
-
], 10,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
l(
|
|
274
|
-
"div",
|
|
275
|
-
{
|
|
276
|
-
ref: "previewContainer",
|
|
218
|
+
], 10, Re))), 128))
|
|
219
|
+
])) : (o(), n("p", ze, " Шаблоны отсутствуют "))
|
|
220
|
+
])
|
|
221
|
+
]),
|
|
222
|
+
s("div", Me, [
|
|
223
|
+
s("div", {
|
|
224
|
+
ref_key: "previewContainer",
|
|
225
|
+
ref: k,
|
|
277
226
|
class: "template-selector__preview-container",
|
|
278
|
-
style:
|
|
279
|
-
},
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
t.selectedTemplate.type != "TEXT" ? (s(), M(t.WABAAttachmentSection, {
|
|
227
|
+
style: pe({ backgroundImage: `url(${J.value})` })
|
|
228
|
+
}, [
|
|
229
|
+
V.value.length > 0 ? (o(), n("div", Qe, [
|
|
230
|
+
s("div", $e, [
|
|
231
|
+
a.value.type != "TEXT" ? (o(), L(fe, {
|
|
284
232
|
key: 0,
|
|
285
|
-
type:
|
|
286
|
-
"template-id":
|
|
287
|
-
onFileSelected:
|
|
288
|
-
}, null, 8, ["type", "template-id"])) :
|
|
289
|
-
|
|
290
|
-
(
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
I(o),
|
|
301
|
-
1
|
|
302
|
-
/* TEXT */
|
|
303
|
-
)) : typeof o == "object" ? (s(), M(t.PlaceholderComponent, {
|
|
304
|
-
key: 1,
|
|
305
|
-
index: o.index,
|
|
306
|
-
value: t.wabaValues[o.index] || "Заполнить",
|
|
307
|
-
"is-filled": !!t.wabaValues[o.index],
|
|
308
|
-
onClick: (w) => t.selectedIndex = o.index,
|
|
309
|
-
onEdit: t.updateWabaValue
|
|
310
|
-
}, null, 8, ["index", "value", "is-filled", "onClick"])) : h("v-if", !0)
|
|
311
|
-
],
|
|
312
|
-
64
|
|
313
|
-
/* STABLE_FRAGMENT */
|
|
314
|
-
))),
|
|
315
|
-
128
|
|
316
|
-
/* KEYED_FRAGMENT */
|
|
317
|
-
))
|
|
233
|
+
type: a.value.type,
|
|
234
|
+
"template-id": a.value.templateId,
|
|
235
|
+
onFileSelected: D
|
|
236
|
+
}, null, 8, ["type", "template-id"])) : p("", !0),
|
|
237
|
+
s("div", qe, [
|
|
238
|
+
(o(!0), n(S, null, R(V.value, (t, c) => (o(), n(S, { key: c }, [
|
|
239
|
+
typeof t == "string" ? (o(), n("span", Ne, I(t), 1)) : typeof t == "object" ? (o(), L(_e, {
|
|
240
|
+
key: 1,
|
|
241
|
+
index: t.index,
|
|
242
|
+
value: r[t.index] || "Заполнить",
|
|
243
|
+
"is-filled": !!r[t.index],
|
|
244
|
+
onClick: (f) => Y.value = t.index,
|
|
245
|
+
onEdit: ae
|
|
246
|
+
}, null, 8, ["index", "value", "is-filled", "onClick"])) : p("", !0)
|
|
247
|
+
], 64))), 128))
|
|
318
248
|
]),
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
{ class: "template-selector__preview-time" },
|
|
322
|
-
" 22:22 ",
|
|
323
|
-
-1
|
|
324
|
-
/* CACHED */
|
|
325
|
-
)),
|
|
326
|
-
t.selectedTemplate.buttons ? (s(), M(t.WABAQuickReplyButtons, {
|
|
249
|
+
l[2] || (l[2] = s("p", { class: "template-selector__preview-time" }, " 22:22 ", -1)),
|
|
250
|
+
a.value.buttons ? (o(), L(ye, {
|
|
327
251
|
key: 1,
|
|
328
|
-
buttons:
|
|
329
|
-
onSelectAllVariants:
|
|
330
|
-
}, null, 8, ["buttons"])) :
|
|
252
|
+
buttons: a.value.buttons,
|
|
253
|
+
onSelectAllVariants: W
|
|
254
|
+
}, null, 8, ["buttons"])) : p("", !0)
|
|
331
255
|
])
|
|
332
|
-
])) : (
|
|
333
|
-
|
|
334
|
-
|
|
256
|
+
])) : (o(), n("p", Xe, " Предпросмотр шаблона ")),
|
|
257
|
+
b.value ? (o(), n("div", De, [
|
|
258
|
+
s("div", {
|
|
335
259
|
class: "template-selector__semitransparent-overlay",
|
|
336
|
-
onClick:
|
|
260
|
+
onClick: W
|
|
337
261
|
}),
|
|
338
|
-
|
|
339
|
-
buttons:
|
|
340
|
-
onSelectAllVariants:
|
|
262
|
+
me(he, {
|
|
263
|
+
buttons: a.value.buttons,
|
|
264
|
+
onSelectAllVariants: W
|
|
341
265
|
}, null, 8, ["buttons"])
|
|
342
|
-
])) :
|
|
343
|
-
],
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
onClick: t.handlePutMessage
|
|
351
|
-
}, " Отправить ", 8, Ye)
|
|
266
|
+
])) : p("", !0)
|
|
267
|
+
], 4),
|
|
268
|
+
s("button", {
|
|
269
|
+
class: "template-selector__button-paste",
|
|
270
|
+
disabled: oe.value,
|
|
271
|
+
onClick: X
|
|
272
|
+
}, " Отправить ", 8, Ge)
|
|
273
|
+
])
|
|
352
274
|
])
|
|
353
|
-
])
|
|
354
|
-
]
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
const rt = /* @__PURE__ */ we(Te, [["render", Ze], ["__scopeId", "data-v-e9bb3fee"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue"]]);
|
|
275
|
+
], 10, we)
|
|
276
|
+
]));
|
|
277
|
+
}
|
|
278
|
+
}, at = /* @__PURE__ */ be(He, [["__scopeId", "data-v-3a4405f2"]]);
|
|
358
279
|
export {
|
|
359
|
-
|
|
280
|
+
at as default
|
|
360
281
|
};
|