@mobilon-dev/chotto 0.3.119 → 0.3.121

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) 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 +40 -59
  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 -35
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +30 -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/DeletedMessageIcon.vue.js +27 -0
  22. package/dist/components/1_icons/MenuIcon.vue.js +16 -10
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
  24. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
  26. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
  28. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
  30. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
  32. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
  33. package/dist/components/1_icons/SearchIcon.vue.js +29 -17
  34. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  35. package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
  36. package/dist/components/1_icons/VerifiedBadge.vue.js +25 -19
  37. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
  38. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +552 -402
  39. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
  41. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
  51. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
  52. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
  53. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
  54. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +12 -46
  55. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
  56. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
  57. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
  58. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
  59. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
  60. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +62 -4
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +80 -98
  63. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
  64. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
  67. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
  68. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
  69. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +76 -45
  70. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +100 -4
  71. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +16 -91
  72. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +79 -4
  73. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +88 -111
  74. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
  75. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
  76. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
  77. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
  78. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
  79. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
  80. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
  81. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
  82. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
  83. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
  84. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
  85. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +32 -58
  86. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
  87. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
  88. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
  89. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
  90. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
  91. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +41 -35
  92. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
  93. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +143 -323
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
  99. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
  100. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
  101. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
  102. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
  103. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +36 -68
  104. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +71 -37
  105. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +83 -62
  106. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
  107. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
  108. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
  109. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
  110. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
  111. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +22 -42
  112. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +460 -4
  113. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +181 -499
  114. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
  115. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
  116. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
  117. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
  118. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
  119. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
  120. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
  121. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
  122. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
  123. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
  124. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
  125. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
  127. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  128. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
  129. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +47 -4
  131. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +37 -46
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
  133. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
  135. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
  136. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +52 -4
  137. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +16 -39
  138. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +270 -4
  139. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +95 -274
  140. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +409 -4
  141. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +143 -422
  142. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
  143. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
  144. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +57 -4
  145. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +41 -69
  146. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +97 -4
  147. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +102 -173
  148. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
  149. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
  150. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
  151. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
  152. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
  153. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
  154. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
  155. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
  156. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
  157. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
  158. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
  159. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
  160. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
  161. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
  162. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
  163. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
  164. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
  165. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
  166. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
  167. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
  168. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
  169. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +34 -118
  170. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
  171. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
  172. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +94 -4
  173. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -76
  174. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
  175. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
  176. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +348 -4
  177. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +97 -339
  178. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
  179. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  180. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +308 -4
  181. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +89 -299
  182. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
  183. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
  184. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +321 -4
  185. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +96 -338
  186. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
  187. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
  188. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +36 -19
  189. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
  190. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
  191. package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
  192. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
  193. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
  194. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
  195. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
  196. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
  197. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
  198. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +170 -4
  199. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +239 -336
  200. package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +43 -25
  201. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
  202. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
  203. package/dist/components/3_compounds/ChatList/ChatList.vue.js +256 -166
  204. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +57 -39
  205. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  206. package/dist/components/3_compounds/Feed/Feed.vue.js +185 -4
  207. package/dist/components/3_compounds/Feed/Feed.vue2.js +161 -305
  208. package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
  209. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
  210. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  211. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
  212. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
  213. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  214. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  215. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +33 -18
  216. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +90 -59
  217. package/dist/types/src/apps/data/chats.d.ts +9 -2
  218. package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
  219. package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
  220. package/dist/types/src/components/2_feed_elements/types/components.d.ts +2 -0
  221. package/package.json +1 -1
  222. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +0 -21
  223. /package/dist/types/src/components/{2_feed_elements/DeletedMessageContent/icons → 1_icons}/DeletedMessageIcon.vue.d.ts +0 -0
@@ -1,13 +1,13 @@
1
- import { defineComponent as N, inject as O, ref as c, watch as U, onMounted as W, onUnmounted as X, createBlock as P, openBlock as z, Teleport as Q, createVNode as D, Transition as G, withCtx as J, createElementBlock as K, createCommentVNode as Z, normalizeStyle as ee, unref as u, createElementVNode as o, nextTick as te } from "vue";
2
- import { useTheme as oe } from "../../../hooks/useTheme.js";
1
+ import { defineComponent as I, inject as P, ref as a, watch as W, onMounted as B, onUnmounted as U, nextTick as V } from "vue";
2
+ import { useTheme as z } from "../../../hooks/useTheme.js";
3
3
  /* empty css */
4
4
  /* empty css */
5
- import { t as f } from "../../../locale/useLocale.js";
5
+ import { t as D } from "../../../locale/useLocale.js";
6
6
  /* empty css */
7
7
  import "../../../node_modules/linkifyjs/dist/linkify.js";
8
8
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
9
9
  import "../../../functions/parseMarkdown.js";
10
- const ne = ["data-theme"], ie = ["title"], se = ["title"], re = ["title"], le = ["title"], ae = ["title"], ue = ["title"], Me = /* @__PURE__ */ N({
10
+ const ie = /* @__PURE__ */ I({
11
11
  __name: "TextFormatToolbar",
12
12
  props: {
13
13
  textarea: {
@@ -16,195 +16,107 @@ const ne = ["data-theme"], ie = ["title"], se = ["title"], re = ["title"], le =
16
16
  }
17
17
  },
18
18
  emits: ["format-applied"],
19
- setup(H, { emit: R }) {
20
- const m = H, F = R, A = O("chatAppId"), { getTheme: k } = oe(A), x = c(), h = c(!1), q = c({ top: "0px", left: "0px" }), S = c(""), $ = c(0), y = c(0);
21
- let b = !1, a = null, i = null, B = 0, T = 0;
22
- const V = {
19
+ setup(X, { expose: Y, emit: R }) {
20
+ Y();
21
+ const l = X, $ = R, y = P("chatAppId"), { getTheme: q } = z(y), g = a(), T = a(!1), S = a({ top: "0px", left: "0px" }), k = a(""), b = a(0), E = a(0);
22
+ let c = !1, i = null, t = null, f = 0, m = 0;
23
+ const O = {
23
24
  bold: { prefix: "**", suffix: "**" },
24
25
  italic: { prefix: "*", suffix: "*" },
25
26
  underline: { prefix: "<u>", suffix: "</u>" },
26
27
  strikethrough: { prefix: "~~", suffix: "~~" },
27
28
  code: { prefix: "`", suffix: "`" },
28
29
  quote: { prefix: "> ", suffix: "" }
29
- }, g = (t) => {
30
- B = t.clientX, T = t.clientY;
31
- }, r = () => {
32
- const t = i || m.textarea;
33
- if (!t)
30
+ }, d = (e) => {
31
+ f = e.clientX, m = e.clientY;
32
+ }, o = () => {
33
+ const e = t || l.textarea;
34
+ if (!e)
34
35
  return;
35
- const e = t.selectionStart, n = t.selectionEnd;
36
- if (e === n) {
37
- w();
36
+ const r = e.selectionStart, s = e.selectionEnd;
37
+ if (r === s) {
38
+ v();
38
39
  return;
39
40
  }
40
- const s = t.value.substring(e, n);
41
- s.trim().length > 0 ? (S.value = s, $.value = e, y.value = n, Y(), h.value = !0, a && (clearTimeout(a), a = null)) : w();
42
- }, M = () => {
43
- const t = i || m.textarea;
44
- !t || document.activeElement !== t || r();
45
- }, _ = (t) => {
46
- i && (i.removeEventListener("mouseup", r), i.removeEventListener("keyup", r), i.removeEventListener("select", r), i.removeEventListener("mousemove", g)), document.removeEventListener("selectionchange", M), t ? (i = t, t.addEventListener("mouseup", r), t.addEventListener("keyup", r), t.addEventListener("select", r), t.addEventListener("mousemove", g), document.addEventListener("selectionchange", M)) : i = null;
47
- }, Y = () => {
48
- te(() => {
49
- if (!x.value) return;
50
- const t = x.value.getBoundingClientRect(), e = window.innerWidth, n = window.innerHeight;
51
- let s = B - t.width / 2, l = T - t.height - 10;
52
- s < 10 ? s = 10 : s + t.width > e - 10 && (s = e - t.width - 10), l < 10 ? l = T + 20 : l + t.height > n - 10 && (l = n - t.height - 10), q.value = {
53
- top: `${l}px`,
54
- left: `${s}px`
41
+ const n = e.value.substring(r, s);
42
+ n.trim().length > 0 ? (k.value = n, b.value = r, E.value = s, j(), T.value = !0, i && (clearTimeout(i), i = null)) : v();
43
+ }, p = () => {
44
+ const e = t || l.textarea;
45
+ !e || document.activeElement !== e || o();
46
+ }, L = (e) => {
47
+ t && (t.removeEventListener("mouseup", o), t.removeEventListener("keyup", o), t.removeEventListener("select", o), t.removeEventListener("mousemove", d)), document.removeEventListener("selectionchange", p), e ? (t = e, e.addEventListener("mouseup", o), e.addEventListener("keyup", o), e.addEventListener("select", o), e.addEventListener("mousemove", d), document.addEventListener("selectionchange", p)) : t = null;
48
+ }, j = () => {
49
+ V(() => {
50
+ if (!g.value) return;
51
+ const e = g.value.getBoundingClientRect(), r = window.innerWidth, s = window.innerHeight;
52
+ let n = f - e.width / 2, u = m - e.height - 10;
53
+ n < 10 ? n = 10 : n + e.width > r - 10 && (n = r - e.width - 10), u < 10 ? u = m + 20 : u + e.height > s - 10 && (u = s - e.height - 10), S.value = {
54
+ top: `${u}px`,
55
+ left: `${n}px`
55
56
  };
56
57
  });
57
- }, d = (t) => {
58
- const e = m.textarea;
59
- if (!e) return;
60
- const n = V[t];
61
- if (!n) return;
62
- const s = e.value, l = $.value, p = y.value, C = s.substring(l, p);
63
- let v, L;
64
- t === "quote" ? (v = C.split(`
58
+ }, A = (e) => {
59
+ const r = l.textarea;
60
+ if (!r) return;
61
+ const s = O[e];
62
+ if (!s) return;
63
+ const n = r.value, u = b.value, x = E.value, w = n.substring(u, x);
64
+ let h, _;
65
+ e === "quote" ? (h = w.split(`
65
66
  `).map(
66
- (E) => E.trim() ? `${n.prefix}${E}${n.suffix}` : E
67
+ (M) => M.trim() ? `${s.prefix}${M}${s.suffix}` : M
67
68
  ).join(`
68
- `), L = s.substring(0, l) + v + s.substring(p)) : (v = `${n.prefix}${C}${n.suffix}`, L = s.substring(0, l) + v + s.substring(p)), F("format-applied", {
69
- format: t,
70
- selectedText: C,
71
- start: l,
72
- end: p,
73
- newText: L
69
+ `), _ = n.substring(0, u) + h + n.substring(x)) : (h = `${s.prefix}${w}${s.suffix}`, _ = n.substring(0, u) + h + n.substring(x)), $("format-applied", {
70
+ format: e,
71
+ selectedText: w,
72
+ start: u,
73
+ end: x,
74
+ newText: _
74
75
  }), setTimeout(() => {
75
- r();
76
+ o();
76
77
  }, 10);
77
- }, w = () => {
78
- b || (h.value = !1);
79
- }, j = () => {
80
- b = !0, a && (clearTimeout(a), a = null);
81
- }, I = () => {
82
- b = !1, a = setTimeout(() => {
83
- w();
78
+ }, v = () => {
79
+ c || (T.value = !1);
80
+ }, F = () => {
81
+ c = !0, i && (clearTimeout(i), i = null);
82
+ }, H = () => {
83
+ c = !1, i = setTimeout(() => {
84
+ v();
84
85
  }, 200);
85
86
  };
86
- return U(() => m.textarea, (t, e) => {
87
- t !== e && _(t);
88
- }, { immediate: !0 }), W(() => {
89
- m.textarea && _(m.textarea);
90
- }), X(() => {
91
- i && (i.removeEventListener("mouseup", r), i.removeEventListener("keyup", r), i.removeEventListener("select", r), i.removeEventListener("mousemove", g)), document.removeEventListener("selectionchange", M), a && clearTimeout(a);
92
- }), (t, e) => (z(), P(Q, { to: "body" }, [
93
- D(G, { name: "fade" }, {
94
- default: J(() => [
95
- h.value ? (z(), K("div", {
96
- key: 0,
97
- ref_key: "toolbarRef",
98
- ref: x,
99
- "data-theme": u(k)().theme ? u(k)().theme : "light",
100
- class: "text-format-toolbar",
101
- style: ee(q.value),
102
- onMouseenter: j,
103
- onMouseleave: I
104
- }, [
105
- o("button", {
106
- class: "text-format-toolbar__button",
107
- title: u(f)("component.TextFormatToolbar.Bold"),
108
- onClick: e[0] || (e[0] = (n) => d("bold"))
109
- }, [...e[6] || (e[6] = [
110
- o("svg", {
111
- viewBox: "0 0 24 24",
112
- width: "20",
113
- preserveAspectRatio: "xMidYMid meet",
114
- class: "",
115
- fill: "currentColor"
116
- }, [
117
- o("path", { d: "M6.8 19V5h5.525q1.624 0 3 1T16.7 8.775q0 1.275-.575 1.963-.575.687-1.075.987.626.275 1.387 1.025.763.75.763 2.25 0 2.224-1.625 3.113-1.625.887-3.05.887zm3.025-2.8h2.6q1.2 0 1.462-.612.263-.614.263-.888 0-.275-.263-.887-.262-.613-1.537-.613H9.825zm0-5.7h2.325q.825 0 1.2-.425a1.4 1.4 0 0 0 .375-.95q0-.6-.425-.975t-1.1-.375H9.825z" })
118
- ], -1)
119
- ])], 8, ie),
120
- o("button", {
121
- class: "text-format-toolbar__button",
122
- title: u(f)("component.TextFormatToolbar.Italic"),
123
- onClick: e[1] || (e[1] = (n) => d("italic"))
124
- }, [...e[7] || (e[7] = [
125
- o("svg", {
126
- viewBox: "0 0 24 24",
127
- width: "20",
128
- preserveAspectRatio: "xMidYMid meet",
129
- class: "",
130
- fill: "currentColor"
131
- }, [
132
- o("path", { d: "M5 19v-2.5h4l3-9H8V5h10v2.5h-3.5l-3 9H15V19z" })
133
- ], -1)
134
- ])], 8, se),
135
- o("button", {
136
- class: "text-format-toolbar__button",
137
- title: u(f)("component.TextFormatToolbar.Underline"),
138
- onClick: e[2] || (e[2] = (n) => d("underline"))
139
- }, [...e[8] || (e[8] = [
140
- o("svg", {
141
- viewBox: "0 0 512 512",
142
- width: "13",
143
- height: "13",
144
- preserveAspectRatio: "xMidYMid meet",
145
- class: "",
146
- fill: "currentColor"
147
- }, [
148
- o("rect", {
149
- x: "16.65",
150
- y: "443.317",
151
- width: "478.699",
152
- height: "68.683"
153
- }),
154
- o("path", { d: `M303.383,0h-94L87.689,376.715h88.041l21.225-72.846H315.81l21.496,72.846h88.043L303.383,0z M216.38,235.187
155
- l39.103-133.203h1.544l39.362,133.203H216.38z` })
156
- ], -1)
157
- ])], 8, re),
158
- o("button", {
159
- class: "text-format-toolbar__button",
160
- title: u(f)("component.TextFormatToolbar.Strikethrough"),
161
- onClick: e[3] || (e[3] = (n) => d("strikethrough"))
162
- }, [...e[9] || (e[9] = [
163
- o("svg", {
164
- viewBox: "0 0 24 24",
165
- width: "20",
166
- preserveAspectRatio: "xMidYMid meet",
167
- class: "",
168
- fill: "currentColor"
169
- }, [
170
- o("path", { d: "M13.99 15.27q0-.83-.586-1.27-.585-.45-2.11-.937L11.107 13H4v-2h16v2h-3.76q.69.96.69 2.25 0 1.845-1.397 2.9-1.396 1.045-3.76 1.045-1.64 0-2.988-.595-1.347-.606-2.06-1.65a4 4 0 0 1-.472-.951l2.451-.98c.145.303.363.651.667.962l.014.019h.004a2.87 2.87 0 0 0 1.971.867q.199.014.413.014 1.045 0 1.631-.42.586-.43.586-1.191M10.548 10h-3.79a3.5 3.5 0 0 1-.297-1.44q0-1.152.644-2.05.655-.909 1.866-1.416 1.22-.508 2.734-.508 1.523 0 2.715.557 1.191.546 1.846 1.552.26.394.418.831l-2.492.997C13.85 7.823 13 7 11.656 6.92q-1.074 0-1.67.459a1.42 1.42 0 0 0-.595 1.191q0 .694.693 1.162.204.136.464.268" })
171
- ], -1)
172
- ])], 8, le),
173
- o("button", {
174
- class: "text-format-toolbar__button",
175
- title: u(f)("component.TextFormatToolbar.Code"),
176
- onClick: e[4] || (e[4] = (n) => d("code"))
177
- }, [...e[10] || (e[10] = [
178
- o("span", { class: "pi pi-code" }, null, -1)
179
- ])], 8, ae),
180
- o("button", {
181
- class: "text-format-toolbar__button",
182
- title: u(f)("component.TextFormatToolbar.Quote"),
183
- onClick: e[5] || (e[5] = (n) => d("quote"))
184
- }, [...e[11] || (e[11] = [
185
- o("svg", {
186
- viewBox: "0 0 512 512",
187
- width: "13",
188
- height: "13",
189
- preserveAspectRatio: "xMidYMid meet",
190
- class: "",
191
- fill: "currentColor"
192
- }, [
193
- o("path", { d: `M119.472,66.59C53.489,66.59,0,120.094,0,186.1c0,65.983,53.489,119.487,119.472,119.487
194
- c0,0-0.578,44.392-36.642,108.284c-4.006,12.802,3.135,26.435,15.945,30.418c9.089,2.859,18.653,0.08,24.829-6.389
195
- c82.925-90.7,115.385-197.448,115.385-251.8C238.989,120.094,185.501,66.59,119.472,66.59z` }),
196
- o("path", { d: `M392.482,66.59c-65.983,0-119.472,53.505-119.472,119.51c0,65.983,53.489,119.487,119.472,119.487
197
- c0,0-0.578,44.392-36.642,108.284c-4.006,12.802,3.136,26.435,15.945,30.418c9.089,2.859,18.653,0.08,24.828-6.389
198
- C479.539,347.2,512,240.452,512,186.1C512,120.094,458.511,66.59,392.482,66.59z` })
199
- ], -1)
200
- ])], 8, ue)
201
- ], 44, ne)) : Z("", !0)
202
- ]),
203
- _: 1
204
- })
205
- ]));
87
+ W(() => l.textarea, (e, r) => {
88
+ e !== r && L(e);
89
+ }, { immediate: !0 }), B(() => {
90
+ l.textarea && L(l.textarea);
91
+ }), U(() => {
92
+ t && (t.removeEventListener("mouseup", o), t.removeEventListener("keyup", o), t.removeEventListener("select", o), t.removeEventListener("mousemove", d)), document.removeEventListener("selectionchange", p), i && clearTimeout(i);
93
+ });
94
+ const C = { props: l, emit: $, chatAppId: y, getTheme: q, toolbarRef: g, isVisible: T, toolbarStyle: S, selectedText: k, selectionStart: b, selectionEnd: E, get isMouseOverToolbar() {
95
+ return c;
96
+ }, set isMouseOverToolbar(e) {
97
+ c = e;
98
+ }, get hideTimeout() {
99
+ return i;
100
+ }, set hideTimeout(e) {
101
+ i = e;
102
+ }, get currentTextarea() {
103
+ return t;
104
+ }, set currentTextarea(e) {
105
+ t = e;
106
+ }, get mouseX() {
107
+ return f;
108
+ }, set mouseX(e) {
109
+ f = e;
110
+ }, get mouseY() {
111
+ return m;
112
+ }, set mouseY(e) {
113
+ m = e;
114
+ }, formatMap: O, handleMouseMove: d, handleSelection: o, handleSelectionChange: p, setupTextareaListeners: L, updateToolbarPosition: j, applyFormat: A, hideToolbar: v, handleMouseEnter: F, handleMouseLeave: H, get t() {
115
+ return D;
116
+ } };
117
+ return Object.defineProperty(C, "__isScriptSetup", { enumerable: !1, value: !0 }), C;
206
118
  }
207
119
  });
208
120
  export {
209
- Me as default
121
+ ie as default
210
122
  };
@@ -1,7 +1,76 @@
1
- import t from "./WABAAttachmentSection.vue2.js";
1
+ import l from "./WABAAttachmentSection.vue2.js";
2
+ import { createElementBlock as i, openBlock as n, Fragment as s, createBlock as _, createCommentVNode as a, normalizeClass as m, createElementVNode as t, toDisplayString as r } from "vue";
2
3
  /* empty css */
3
- import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = /* @__PURE__ */ o(t, [["__scopeId", "data-v-ad2e24d7"]]);
4
+ import d from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ const f = ["accept"], p = { class: "attachment-section__info" }, h = {
6
+ key: 2,
7
+ class: "attachment-section__error-text"
8
+ };
9
+ function v(u, o, c, e, y, A) {
10
+ return n(), i(
11
+ s,
12
+ null,
13
+ [
14
+ e.uploadStatus !== "success" ? (n(), i(
15
+ "div",
16
+ {
17
+ key: 0,
18
+ class: m(["attachment-section", { "attachment-section__error": e.error }]),
19
+ onClick: e.triggerFileUpload
20
+ },
21
+ [
22
+ t("input", {
23
+ id: "file-upload",
24
+ ref: "fileInput",
25
+ type: "file",
26
+ style: { display: "none" },
27
+ accept: e.fileInfo[c.type].accept,
28
+ onChange: e.handleFileChange
29
+ }, null, 40, f),
30
+ o[1] || (o[1] = t(
31
+ "span",
32
+ { class: "pi pi-paperclip attachment-section__icon" },
33
+ null,
34
+ -1
35
+ /* CACHED */
36
+ )),
37
+ t("div", null, [
38
+ o[0] || (o[0] = t(
39
+ "p",
40
+ { class: "attachment-section__title" },
41
+ " Прикрепить файл ",
42
+ -1
43
+ /* CACHED */
44
+ )),
45
+ t(
46
+ "p",
47
+ p,
48
+ r(e.fileInfo[c.type].text),
49
+ 1
50
+ /* TEXT */
51
+ )
52
+ ])
53
+ ],
54
+ 2
55
+ /* CLASS */
56
+ )) : e.uploadStatus === "success" && e.preview ? (n(), _(e.FilePreview, {
57
+ key: 1,
58
+ "file-info": e.preview,
59
+ onReset: e.handleFileDecline
60
+ }, null, 8, ["file-info"])) : a("v-if", !0),
61
+ e.error ? (n(), i(
62
+ "div",
63
+ h,
64
+ r(e.error),
65
+ 1
66
+ /* TEXT */
67
+ )) : a("v-if", !0)
68
+ ],
69
+ 64
70
+ /* STABLE_FRAGMENT */
71
+ );
72
+ }
73
+ const x = /* @__PURE__ */ d(l, [["render", v], ["__scopeId", "data-v-cdbee945"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue"]]);
5
74
  export {
6
- r as default
75
+ x as default
7
76
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as I, inject as E, ref as r, watch as g, createElementBlock as v, openBlock as u, Fragment as U, createBlock as A, createCommentVNode as h, normalizeClass as D, createElementVNode as c, toDisplayString as S } from "vue";
2
- import P from "../FilePreview/FilePreview.vue.js";
3
- import { useChottoUploader as V } from "../../../hooks/uploadFile/useChottoUploader.js";
1
+ import { defineComponent as F, inject as I, ref as n, watch as S } from "vue";
2
+ import U from "../FilePreview/FilePreview.vue.js";
3
+ import { useChottoUploader as P } from "../../../hooks/uploadFile/useChottoUploader.js";
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  import "../../../locale/useLocale.js";
@@ -8,10 +8,7 @@ import "../../../locale/useLocale.js";
8
8
  import "../../../node_modules/linkifyjs/dist/linkify.js";
9
9
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
10
10
  import "../../../functions/parseMarkdown.js";
11
- const N = ["accept"], O = { class: "attachment-section__info" }, j = {
12
- key: 2,
13
- class: "attachment-section__error-text"
14
- }, H = /* @__PURE__ */ I({
11
+ const k = /* @__PURE__ */ F({
15
12
  __name: "WABAAttachmentSection",
16
13
  props: {
17
14
  type: {
@@ -28,13 +25,14 @@ const N = ["accept"], O = { class: "attachment-section__info" }, j = {
28
25
  }
29
26
  },
30
27
  emits: ["fileSelected"],
31
- setup(m, { emit: _ }) {
32
- const o = m, w = E("filebumpUrl", void 0), { upload: k } = V({
33
- uploader: () => o.uploader,
34
- filebumpUrl: () => w
35
- }), p = r(null), n = r(), l = r(""), i = r(""), f = r(), d = _, z = () => {
36
- n.value && i.value != "success" && n.value.click();
37
- }, s = {
28
+ setup(g, { expose: w, emit: h }) {
29
+ w();
30
+ const t = g, a = I("filebumpUrl", void 0), { upload: f } = P({
31
+ uploader: () => t.uploader,
32
+ filebumpUrl: () => a
33
+ }), l = n(null), r = n(), o = n(""), i = n(""), m = n(), s = h, y = () => {
34
+ r.value && i.value != "success" && r.value.click();
35
+ }, u = {
38
36
  DOCUMENT: {
39
37
  text: "Документ до 100 МБ",
40
38
  accept: ".pdf,.doc,.docx,.xls,.xlsx",
@@ -56,19 +54,19 @@ const N = ["accept"], O = { class: "attachment-section__info" }, j = {
56
54
  error: "Некорректный тип файла, выберите MP4 или MOV",
57
55
  icon: "pi pi-video"
58
56
  }
59
- }, C = (a) => {
60
- var x;
61
- const t = (x = a.target.files) == null ? void 0 : x[0];
62
- if (t) {
63
- l.value = "";
64
- const y = t.name.split(".");
65
- s[o.type].accept.indexOf(y[y.length - 1]) == -1 ? l.value = s[o.type].error : t.size > s[o.type].maxSize ? l.value = "Файл слишком большого размера" : l.value || (p.value = t, i.value = "uploading", k(t, { kind: "file" }).then((e) => {
66
- i.value = e.status, e.status == "success" && (d("fileSelected", {
57
+ }, _ = (c) => {
58
+ var d;
59
+ const p = (d = c.target.files) == null ? void 0 : d[0];
60
+ if (p) {
61
+ o.value = "";
62
+ const x = p.name.split(".");
63
+ u[t.type].accept.indexOf(x[x.length - 1]) == -1 ? o.value = u[t.type].error : p.size > u[t.type].maxSize ? o.value = "Файл слишком большого размера" : o.value || (l.value = p, i.value = "uploading", f(p, { kind: "file" }).then((e) => {
64
+ i.value = e.status, e.status == "success" && (s("fileSelected", {
67
65
  url: e.url,
68
66
  filename: e.name,
69
67
  filesize: e.size,
70
68
  filetype: e.type
71
- }), e.preview && (f.value = {
69
+ }), e.preview && (m.value = {
72
70
  previewUrl: e.preview.previewUrl,
73
71
  isImage: e.preview.isImage,
74
72
  isVideo: e.preview.isVideo,
@@ -78,48 +76,24 @@ const N = ["accept"], O = { class: "attachment-section__info" }, j = {
78
76
  }));
79
77
  }));
80
78
  }
81
- }, F = () => {
82
- p.value && (p.value = null, i.value = "");
79
+ }, z = () => {
80
+ l.value && (l.value = null, i.value = "");
83
81
  };
84
- return g(
82
+ S(
85
83
  () => i.value,
86
- (a) => {
87
- a === "" && (n.value && (n.value.value = ""), p.value = null, d("fileSelected", null));
84
+ (c) => {
85
+ c === "" && (r.value && (r.value.value = ""), l.value = null, s("fileSelected", null));
88
86
  }
89
- ), g(
90
- () => o.templateId,
87
+ ), S(
88
+ () => t.templateId,
91
89
  () => {
92
90
  i.value = "";
93
91
  }
94
- ), (a, t) => (u(), v(U, null, [
95
- i.value !== "success" ? (u(), v("div", {
96
- key: 0,
97
- class: D(["attachment-section", { "attachment-section__error": l.value }]),
98
- onClick: z
99
- }, [
100
- c("input", {
101
- id: "file-upload",
102
- ref_key: "fileInput",
103
- ref: n,
104
- type: "file",
105
- style: { display: "none" },
106
- accept: s[m.type].accept,
107
- onChange: C
108
- }, null, 40, N),
109
- t[1] || (t[1] = c("span", { class: "pi pi-paperclip attachment-section__icon" }, null, -1)),
110
- c("div", null, [
111
- t[0] || (t[0] = c("p", { class: "attachment-section__title" }, " Прикрепить файл ", -1)),
112
- c("p", O, S(s[m.type].text), 1)
113
- ])
114
- ], 2)) : i.value === "success" && f.value ? (u(), A(P, {
115
- key: 1,
116
- "file-info": f.value,
117
- onReset: F
118
- }, null, 8, ["file-info"])) : h("", !0),
119
- l.value ? (u(), v("div", j, S(l.value), 1)) : h("", !0)
120
- ], 64));
92
+ );
93
+ const v = { props: t, injectedFilebumpUrl: a, upload: f, selectedFile: l, fileInput: r, error: o, uploadStatus: i, preview: m, emit: s, triggerFileUpload: y, fileInfo: u, handleFileChange: _, handleFileDecline: z, FilePreview: U };
94
+ return Object.defineProperty(v, "__isScriptSetup", { enumerable: !1, value: !0 }), v;
121
95
  }
122
96
  });
123
97
  export {
124
- H as default
98
+ k as default
125
99
  };
@@ -1,7 +1,50 @@
1
- import o from "./WABAQuickReplyButtons.vue2.js";
1
+ import i from "./WABAQuickReplyButtons.vue2.js";
2
+ import { createElementBlock as s, openBlock as n, Fragment as u, renderList as p, createElementVNode as e, normalizeClass as a, toDisplayString as _ } from "vue";
2
3
  /* empty css */
3
- import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-ce7b10d6"]]);
4
+ import d from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ const k = { class: "quick-reply-buttons" }, m = ["onClick"], y = { class: "quick-reply-buttons__line" };
6
+ function f(h, l, o, c, v, B) {
7
+ return n(), s("div", k, [
8
+ (n(!0), s(
9
+ u,
10
+ null,
11
+ p(o.buttons.slice(0, 3), (r, t) => (n(), s("div", {
12
+ key: t,
13
+ class: "quick-reply-buttons__preview-action",
14
+ onClick: (b) => c.handleQuickReplyClick(t)
15
+ }, [
16
+ l[0] || (l[0] = e(
17
+ "hr",
18
+ { class: "quick-reply-buttons__separator" },
19
+ null,
20
+ -1
21
+ /* CACHED */
22
+ )),
23
+ e("div", y, [
24
+ e(
25
+ "span",
26
+ {
27
+ class: a(["quick-reply-buttons__icon pi pi-arrow-up-left", t == 2 && o.buttons.length > 3 ? "pi-list" : c.icons[r.type]])
28
+ },
29
+ null,
30
+ 2
31
+ /* CLASS */
32
+ ),
33
+ e(
34
+ "p",
35
+ null,
36
+ _(t == 2 && o.buttons.length > 3 ? "Смотреть все варианты" : r.text),
37
+ 1
38
+ /* TEXT */
39
+ )
40
+ ])
41
+ ], 8, m))),
42
+ 128
43
+ /* KEYED_FRAGMENT */
44
+ ))
45
+ ]);
46
+ }
47
+ const Q = /* @__PURE__ */ d(i, [["render", f], ["__scopeId", "data-v-c7dd3663"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue"]]);
5
48
  export {
6
- e as default
49
+ Q as default
7
50
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as k, createElementBlock as s, openBlock as l, Fragment as m, renderList as y, createElementVNode as n, normalizeClass as b, toDisplayString as d } from "vue";
2
- const h = { class: "quick-reply-buttons" }, f = ["onClick"], g = { class: "quick-reply-buttons__line" }, v = /* @__PURE__ */ k({
1
+ import { defineComponent as p } from "vue";
2
+ const u = /* @__PURE__ */ p({
3
3
  __name: "WABAQuickReplyButtons",
4
4
  props: {
5
5
  buttons: {
@@ -8,31 +8,18 @@ const h = { class: "quick-reply-buttons" }, f = ["onClick"], g = { class: "quick
8
8
  }
9
9
  },
10
10
  emits: ["selectAllVariants"],
11
- setup(t, { emit: c }) {
12
- const u = c, a = t, p = {
11
+ setup(s, { expose: i, emit: o }) {
12
+ i();
13
+ const e = o, t = s, n = { emit: e, props: t, icons: {
13
14
  URL: "pi-arrow-up-right",
14
15
  PHONE_NUMBER: "pi-phone",
15
16
  QUICK_REPLY: "pi-arrow-up-left"
16
- }, _ = (o) => {
17
- o == 2 && a.buttons.length > 3 && u("selectAllVariants");
18
- };
19
- return (o, i) => (l(), s("div", h, [
20
- (l(!0), s(m, null, y(t.buttons.slice(0, 3), (r, e) => (l(), s("div", {
21
- key: e,
22
- class: "quick-reply-buttons__preview-action",
23
- onClick: (C) => _(e)
24
- }, [
25
- i[0] || (i[0] = n("hr", { class: "quick-reply-buttons__separator" }, null, -1)),
26
- n("div", g, [
27
- n("span", {
28
- class: b(["quick-reply-buttons__icon pi pi-arrow-up-left", e == 2 && t.buttons.length > 3 ? "pi-list" : p[r.type]])
29
- }, null, 2),
30
- n("p", null, d(e == 2 && t.buttons.length > 3 ? "Смотреть все варианты" : r.text), 1)
31
- ])
32
- ], 8, f))), 128))
33
- ]));
17
+ }, handleQuickReplyClick: (r) => {
18
+ r == 2 && t.buttons.length > 3 && e("selectAllVariants");
19
+ } };
20
+ return Object.defineProperty(n, "__isScriptSetup", { enumerable: !1, value: !0 }), n;
34
21
  }
35
22
  });
36
23
  export {
37
- v as default
24
+ u as default
38
25
  };