@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.
Files changed (211) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
  4. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
  5. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
  6. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
  8. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
  9. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -38
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -2
  11. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
  12. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
  13. package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
  14. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
  15. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
  16. package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
  17. package/dist/components/1_icons/CheckIcon.vue.js +26 -13
  18. package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
  19. package/dist/components/1_icons/CloseIcon.vue.js +16 -10
  20. package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
  21. package/dist/components/1_icons/MenuIcon.vue.js +16 -10
  22. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
  24. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
  26. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
  28. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
  30. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
  32. package/dist/components/1_icons/SearchIcon.vue.js +29 -17
  33. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  34. package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
  35. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
  36. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
  37. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
  38. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
  39. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
  41. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
  51. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
  52. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
  53. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
  54. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
  55. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
  56. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
  57. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
  58. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
  59. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
  60. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
  63. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
  64. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
  67. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
  68. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
  69. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
  70. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
  71. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
  72. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
  73. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
  74. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
  75. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
  76. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
  77. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
  78. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
  79. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
  80. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
  81. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
  82. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
  83. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
  84. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
  85. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
  86. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
  87. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
  88. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
  89. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
  90. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
  91. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
  92. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
  93. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
  99. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
  100. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
  101. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
  102. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
  103. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
  104. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
  105. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
  106. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
  107. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
  108. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
  109. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
  110. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
  111. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
  112. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
  113. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
  114. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
  115. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
  116. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
  117. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
  118. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
  119. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
  120. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
  121. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
  122. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
  123. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  124. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
  125. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
  127. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
  128. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
  129. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
  131. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
  133. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
  135. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
  136. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
  137. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
  138. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
  139. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
  140. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
  141. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
  142. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
  143. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
  144. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
  145. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
  146. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
  147. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
  148. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
  149. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
  150. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
  151. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
  152. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
  153. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
  154. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
  155. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
  156. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
  157. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
  158. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
  159. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
  160. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
  161. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
  162. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
  163. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
  164. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
  165. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
  166. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
  167. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
  168. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
  169. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
  170. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
  171. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
  172. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
  173. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
  174. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  175. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
  176. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
  177. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
  178. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
  179. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
  180. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
  181. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
  182. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
  183. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
  184. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
  185. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
  186. package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
  187. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
  188. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
  189. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
  190. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
  191. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
  192. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
  193. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
  194. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
  195. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
  196. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
  197. package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
  198. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
  199. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  200. package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
  201. package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
  202. package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
  203. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
  204. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  205. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
  206. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
  207. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  208. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  209. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +31 -18
  210. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
  211. package/package.json +1 -1
@@ -1,33 +1,12 @@
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";
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 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 = {
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(w, { emit: q }) {
55
- const m = w, y = re("chatAppId"), A = q, N = () => {
56
- A("closeTemplateWindow"), z();
57
- }, X = () => {
58
- A("closeTemplateWindow");
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 = 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) => {
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
- }, 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 = () => {
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")), x();
87
- }, U = () => {
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"), x();
90
- }, P = () => {
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"), 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;
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 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)
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 (!((l = a.value) != null && l.template.match(/{{\d+}}/gi)))
91
+ if (!((a = n.value) != null && a.template.match(/{{\d+}}/gi)))
112
92
  return !1;
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);
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 l in r)
127
- r[l] !== "" && r[l] !== "Заполнить" && e.push(r[l]);
106
+ for (const a in d)
107
+ d[a] !== "" && d[a] !== "Заполнить" && e.push(d[a]);
128
108
  return e;
129
- }), ne = new ResizeObserver((e) => {
130
- const l = e[0].target.clientWidth;
131
- l > 700 && (_.value = !1), l < 700 && (_.value = !0);
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
- 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
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
- 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),
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
- }, 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)
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
- s("div", Me, [
223
- s("div", {
224
- ref_key: "previewContainer",
225
- ref: k,
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: 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, {
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: 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))
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
- l[2] || (l[2] = s("p", { class: "template-selector__preview-time" }, " 22:22 ", -1)),
250
- a.value.buttons ? (o(), L(ye, {
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: a.value.buttons,
253
- onSelectAllVariants: W
254
- }, null, 8, ["buttons"])) : p("", !0)
328
+ buttons: t.selectedTemplate.buttons,
329
+ onSelectAllVariants: t.selectAllVariants
330
+ }, null, 8, ["buttons"])) : h("v-if", !0)
255
331
  ])
256
- ])) : (o(), n("p", Xe, " Предпросмотр шаблона ")),
257
- b.value ? (o(), n("div", De, [
258
- s("div", {
332
+ ])) : (s(), r("p", Je, " Предпросмотр шаблона ")),
333
+ t.allVariantsShow ? (s(), r("div", Ke, [
334
+ l("div", {
259
335
  class: "template-selector__semitransparent-overlay",
260
- onClick: W
336
+ onClick: t.selectAllVariants
261
337
  }),
262
- me(he, {
263
- buttons: a.value.buttons,
264
- onSelectAllVariants: W
338
+ fe(t.WABASeparatedQuickButtons, {
339
+ buttons: t.selectedTemplate.buttons,
340
+ onSelectAllVariants: t.selectAllVariants
265
341
  }, null, 8, ["buttons"])
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
- ])
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
- ], 10, we)
276
- ]));
277
- }
278
- }, at = /* @__PURE__ */ be(He, [["__scopeId", "data-v-3a4405f2"]]);
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
- at as default
359
+ rt as default
281
360
  };