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