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