@mobilon-dev/chotto 0.3.121 → 0.3.124

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 (227) 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 +59 -40
  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 +35 -22
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -30
  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/DeletedMessageIcon.vue.js +11 -17
  22. package/dist/components/1_icons/MenuIcon.vue.js +10 -16
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
  24. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
  26. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
  28. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
  30. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
  32. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
  33. package/dist/components/1_icons/SearchIcon.vue.js +17 -29
  34. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  35. package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
  36. package/dist/components/1_icons/VerifiedBadge.vue.js +19 -25
  37. package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
  38. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +402 -552
  39. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
  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 +13 -19
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
  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 +4 -74
  54. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +46 -12
  55. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
  56. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
  57. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
  58. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
  59. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
  60. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -62
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +98 -80
  63. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
  64. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
  67. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
  68. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
  69. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +45 -76
  70. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -100
  71. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +91 -16
  72. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -79
  73. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +111 -88
  74. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
  75. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
  76. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
  77. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
  78. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
  79. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
  80. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
  81. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
  82. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
  83. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
  84. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
  85. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +58 -32
  86. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
  87. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
  88. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
  89. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
  90. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
  91. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +35 -41
  92. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
  93. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +314 -131
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
  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 +22 -34
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
  99. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
  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 +24 -52
  102. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
  103. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +68 -36
  104. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +37 -71
  105. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +62 -83
  106. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
  107. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
  108. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
  109. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
  110. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
  111. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +42 -22
  112. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -460
  113. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +499 -181
  114. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
  115. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
  116. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
  117. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
  118. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
  119. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
  120. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
  121. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
  122. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
  123. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
  124. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
  125. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
  127. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  128. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
  129. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -47
  131. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +46 -37
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
  133. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
  135. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
  136. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +4 -52
  137. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +39 -16
  138. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -270
  139. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +274 -95
  140. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -409
  141. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +422 -143
  142. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
  143. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
  144. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -57
  145. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +69 -41
  146. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +4 -97
  147. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +173 -102
  148. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
  149. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
  150. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
  151. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
  152. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
  153. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
  154. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
  155. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
  156. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
  157. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
  158. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
  159. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
  160. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
  161. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
  162. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
  163. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
  164. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
  165. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
  166. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
  167. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
  168. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
  169. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +118 -34
  170. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
  171. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
  172. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -94
  173. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +76 -10
  174. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
  175. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
  176. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -348
  177. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +339 -97
  178. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
  179. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  180. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -308
  181. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +299 -89
  182. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
  183. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
  184. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -321
  185. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +338 -96
  186. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
  187. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
  188. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +19 -36
  189. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
  190. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
  191. package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
  192. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
  193. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
  194. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
  195. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
  196. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
  197. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
  198. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -170
  199. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +336 -239
  200. package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +25 -43
  201. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
  202. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
  203. package/dist/components/3_compounds/ChatList/ChatList.vue.js +166 -256
  204. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +39 -57
  205. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  206. package/dist/components/3_compounds/Feed/Feed.vue.js +4 -185
  207. package/dist/components/3_compounds/Feed/Feed.vue2.js +314 -161
  208. package/dist/components/3_compounds/Feed/composables/useFeedScroll.js +19 -17
  209. package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
  210. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
  211. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  212. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
  213. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
  214. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  215. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  216. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +18 -33
  217. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +59 -90
  218. package/dist/themes/dark.css +1 -1
  219. package/dist/themes/default.css +1 -1
  220. package/dist/themes/glass.css +1 -1
  221. package/dist/themes/green.css +1 -1
  222. package/dist/themes/mobilon1.css +1 -1
  223. package/dist/types/src/apps/data/chats.d.ts +48 -4
  224. package/dist/types/src/apps/data/messages.d.ts +366 -282
  225. package/dist/types/src/components/2_chatlist_elements/ChatTabs/styles/types.d.ts +2 -0
  226. package/dist/types/src/components/3_compounds/Feed/composables/useFeedScroll.d.ts +2 -0
  227. package/package.json +1 -1
@@ -1,75 +1,7 @@
1
- import c from "./ButtonTemplateSelector.vue2.js";
2
- import { createElementBlock as n, openBlock as a, Fragment as d, createVNode as l, withCtx as r, createCommentVNode as m, normalizeClass as u, createElementVNode as i, Transition as v, withDirectives as f, vShow as p } from "vue";
1
+ import t from "./ButtonTemplateSelector.vue2.js";
3
2
  /* empty css */
4
- import _ from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const g = { class: "" };
6
- function h(w, o, t, e, T, b) {
7
- return a(), n(
8
- d,
9
- null,
10
- [
11
- l(e.Tooltip, {
12
- text: "Шаблоны сообщений",
13
- position: "left"
14
- }, {
15
- default: r(() => [
16
- e.getMessage().isRecording ? m("v-if", !0) : (a(), n(
17
- "button",
18
- {
19
- key: 0,
20
- ref: "templateButton",
21
- class: u(["button-template", { "button-template-disabled": t.state == "disabled" }]),
22
- onClick: e.toggle,
23
- onMouseover: e.hover,
24
- onMouseout: e.hoverout,
25
- onMouseenter: o[0] || (o[0] = (s) => e.isHovered = !0),
26
- onMouseleave: o[1] || (o[1] = (s) => e.isHovered = !1)
27
- },
28
- [
29
- i("span", g, [
30
- l(e.ChatTemplatesIcon, { fill: e.currentIconColor }, null, 8, ["fill"])
31
- ])
32
- ],
33
- 34
34
- /* CLASS, NEED_HYDRATION */
35
- ))
36
- ]),
37
- _: 1
38
- /* STABLE */
39
- }),
40
- l(v, { persisted: "" }, {
41
- default: r(() => [
42
- f(i(
43
- "div",
44
- {
45
- ref: "template",
46
- onMouseover: e.hover,
47
- onMouseout: e.hoverout
48
- },
49
- [
50
- l(e.TemplateSelector, {
51
- templates: t.templates,
52
- "group-templates": t.groupTemplates,
53
- "elevated-window": t.elevatedWindow,
54
- "chat-background": t.chatBackground,
55
- onCloseTemplateWindow: e.close
56
- }, null, 8, ["templates", "group-templates", "elevated-window", "chat-background"])
57
- ],
58
- 544
59
- /* NEED_HYDRATION, NEED_PATCH */
60
- ), [
61
- [p, e.props.state === "active"]
62
- ])
63
- ]),
64
- _: 1
65
- /* STABLE */
66
- })
67
- ],
68
- 64
69
- /* STABLE_FRAGMENT */
70
- );
71
- }
72
- const x = /* @__PURE__ */ _(c, [["render", h], ["__scopeId", "data-v-7f371ef9"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue"]]);
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(t, [["__scopeId", "data-v-478d6fd5"]]);
73
5
  export {
74
- x as default
6
+ p as default
75
7
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as S, inject as I, ref as s, computed as B, watchEffect as T, onMounted as w, onUnmounted as O } from "vue";
2
- import q from "../TemplateSelector/TemplateSelector.vue.js";
3
- import A from "../../1_atoms/Tooltip/Tooltip.vue.js";
4
- import { useMessageDraft as E } from "../../../hooks/useMessageDraft.js";
1
+ import { defineComponent as T, inject as E, ref as s, computed as I, watchEffect as V, onMounted as q, onUnmounted as x, createElementBlock as y, openBlock as g, Fragment as A, createVNode as d, withCtx as h, createCommentVNode as N, unref as b, normalizeClass as W, createElementVNode as F, Transition as $, withDirectives as D, vShow as H } from "vue";
2
+ import O from "../TemplateSelector/TemplateSelector.vue.js";
3
+ import P from "../../1_atoms/Tooltip/Tooltip.vue.js";
4
+ import { useMessageDraft as j } from "../../../hooks/useMessageDraft.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
7
  import "../../../locale/useLocale.js";
@@ -9,8 +9,8 @@ import "../../../locale/useLocale.js";
9
9
  import "../../../node_modules/linkifyjs/dist/linkify.js";
10
10
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
11
11
  import "../../../functions/parseMarkdown.js";
12
- import M from "./icons/ChatTemplatesIcon.vue.js";
13
- const J = /* @__PURE__ */ S({
12
+ import z from "./icons/ChatTemplatesIcon.vue.js";
13
+ const R = { class: "" }, oe = /* @__PURE__ */ T({
14
14
  __name: "ButtonTemplateSelector",
15
15
  props: {
16
16
  templates: {
@@ -41,60 +41,96 @@ const J = /* @__PURE__ */ S({
41
41
  default: void 0
42
42
  }
43
43
  },
44
- setup(d, { expose: v }) {
45
- v();
46
- const t = d, l = I("chatAppId"), { getMessage: f } = E(l || ""), y = s(null), e = s(null), a = s("#5F5F5F"), n = s("#404040"), p = s(!1);
47
- let o = null;
48
- const u = () => {
49
- if (!l) {
50
- a.value = "#5F5F5F", n.value = "#404040";
44
+ setup(l) {
45
+ const o = l, r = E("chatAppId"), { getMessage: w } = j(r || ""), k = s(null), e = s(null), i = s("#5F5F5F"), c = s("#404040"), m = s(!1);
46
+ let u = null;
47
+ const p = () => {
48
+ if (!r) {
49
+ i.value = "#5F5F5F", c.value = "#404040";
51
50
  return;
52
51
  }
53
- const r = document.getElementById(l);
54
- if (!r) {
55
- a.value = "#5F5F5F", n.value = "#404040";
52
+ const a = document.getElementById(r);
53
+ if (!a) {
54
+ i.value = "#5F5F5F", c.value = "#404040";
56
55
  return;
57
56
  }
58
- const i = window.getComputedStyle(r), c = i.getPropertyValue("--chotto-buttontemplateselector-button-span-color").trim(), C = i.getPropertyValue("--chotto-buttontemplateselector-button-span-hover-color").trim();
59
- a.value = c || "#5F5F5F", n.value = C || "#404040";
60
- }, h = B(() => p.value ? n.value : a.value);
61
- T(() => {
62
- u();
57
+ const t = window.getComputedStyle(a), n = t.getPropertyValue("--chotto-buttontemplateselector-button-span-color").trim(), S = t.getPropertyValue("--chotto-buttontemplateselector-button-span-hover-color").trim();
58
+ i.value = n || "#5F5F5F", c.value = S || "#404040";
59
+ }, C = I(() => m.value ? c.value : i.value);
60
+ V(() => {
61
+ p();
63
62
  });
64
- const g = () => {
65
- t.mode == "click" && t.state == "active" && e.value && (e.value.style.display == "none" ? e.value.style.display = "inherit" : e.value.style.display == "inherit" && (e.value.style.display = "none"));
66
- }, b = () => {
67
- t.mode == "hover" && t.state == "active" && e.value && (e.value.style.display = "inherit");
68
- }, F = () => {
69
- t.mode == "hover" && t.state == "active" && e.value && (e.value.style.display = "none");
70
- }, _ = () => {
63
+ const B = () => {
64
+ o.mode == "click" && o.state == "active" && e.value && (e.value.style.display == "none" ? e.value.style.display = "inherit" : e.value.style.display == "inherit" && (e.value.style.display = "none"));
65
+ }, v = () => {
66
+ o.mode == "hover" && o.state == "active" && e.value && (e.value.style.display = "inherit");
67
+ }, f = () => {
68
+ o.mode == "hover" && o.state == "active" && e.value && (e.value.style.display = "none");
69
+ }, M = () => {
71
70
  e.value && (e.value.style.display = "none");
72
71
  };
73
- w(() => {
74
- if (e.value && (e.value.style.display = "none"), u(), l) {
75
- const r = document.getElementById(l);
76
- r && (o = new MutationObserver((i) => {
77
- i.forEach((c) => {
78
- c.type === "attributes" && c.attributeName === "data-theme" && u();
72
+ return q(() => {
73
+ if (e.value && (e.value.style.display = "none"), p(), r) {
74
+ const a = document.getElementById(r);
75
+ a && (u = new MutationObserver((t) => {
76
+ t.forEach((n) => {
77
+ n.type === "attributes" && n.attributeName === "data-theme" && p();
79
78
  });
80
- }), o.observe(r, {
79
+ }), u.observe(a, {
81
80
  attributes: !0,
82
81
  attributeFilter: ["data-theme"]
83
82
  }));
84
83
  }
85
- }), O(() => {
86
- o && (o.disconnect(), o = null);
87
- });
88
- const m = { props: t, chatAppId: l, getMessage: f, templateButton: y, template: e, iconFillColor: a, iconHoverColor: n, isHovered: p, get themeObserver() {
89
- return o;
90
- }, set themeObserver(r) {
91
- o = r;
92
- }, updateIconColor: u, currentIconColor: h, toggle: g, hover: b, hoverout: F, close: _, TemplateSelector: q, Tooltip: A, get ChatTemplatesIcon() {
93
- return M;
94
- } };
95
- return Object.defineProperty(m, "__isScriptSetup", { enumerable: !1, value: !0 }), m;
84
+ }), x(() => {
85
+ u && (u.disconnect(), u = null);
86
+ }), (a, t) => (g(), y(A, null, [
87
+ d(P, {
88
+ text: "Шаблоны сообщений",
89
+ position: "left"
90
+ }, {
91
+ default: h(() => [
92
+ b(w)().isRecording ? N("", !0) : (g(), y("button", {
93
+ key: 0,
94
+ ref_key: "templateButton",
95
+ ref: k,
96
+ class: W(["button-template", { "button-template-disabled": l.state == "disabled" }]),
97
+ onClick: B,
98
+ onMouseover: v,
99
+ onMouseout: f,
100
+ onMouseenter: t[0] || (t[0] = (n) => m.value = !0),
101
+ onMouseleave: t[1] || (t[1] = (n) => m.value = !1)
102
+ }, [
103
+ F("span", R, [
104
+ d(b(z), { fill: C.value }, null, 8, ["fill"])
105
+ ])
106
+ ], 34))
107
+ ]),
108
+ _: 1
109
+ }),
110
+ d($, null, {
111
+ default: h(() => [
112
+ D(F("div", {
113
+ ref_key: "template",
114
+ ref: e,
115
+ onMouseover: v,
116
+ onMouseout: f
117
+ }, [
118
+ d(O, {
119
+ templates: l.templates,
120
+ "group-templates": l.groupTemplates,
121
+ "elevated-window": l.elevatedWindow,
122
+ "chat-background": l.chatBackground,
123
+ onCloseTemplateWindow: M
124
+ }, null, 8, ["templates", "group-templates", "elevated-window", "chat-background"])
125
+ ], 544), [
126
+ [H, o.state === "active"]
127
+ ])
128
+ ]),
129
+ _: 1
130
+ })
131
+ ], 64));
96
132
  }
97
133
  });
98
134
  export {
99
- J as default
135
+ oe as default
100
136
  };
@@ -1,26 +1,28 @@
1
- import e from "./ChatTemplatesIcon.vue2.js";
2
- import { createElementBlock as o, openBlock as l, createElementVNode as t } from "vue";
3
- import n from "../../../../_virtual/_plugin-vue_export-helper.js";
4
- const c = {
1
+ import { defineComponent as l, createElementBlock as t, openBlock as n, createElementVNode as e } from "vue";
2
+ const o = {
5
3
  width: "26",
6
4
  height: "26",
7
5
  viewBox: "0 0 26 26",
8
6
  fill: "none",
9
7
  xmlns: "http://www.w3.org/2000/svg"
10
- }, s = ["fill"], i = ["fill"];
11
- function r(a, _, C, p, f, h) {
12
- return l(), o("svg", c, [
13
- t("path", {
14
- d: "M22.75 1.625C23.181 1.625 23.5943 1.7962 23.899 2.10095C24.2038 2.4057 24.375 2.81902 24.375 3.25V16.25C24.375 16.681 24.2038 17.0943 23.899 17.399C23.5943 17.7038 23.181 17.875 22.75 17.875H18.6875C18.183 17.875 17.6853 17.9925 17.2341 18.2181C16.7828 18.4438 16.3902 18.7714 16.0875 19.175L13 23.2911L9.9125 19.175C9.60977 18.7714 9.21722 18.4438 8.76594 18.2181C8.31466 17.9925 7.81705 17.875 7.3125 17.875H3.25C2.81902 17.875 2.4057 17.7038 2.10095 17.399C1.7962 17.0943 1.625 16.681 1.625 16.25V3.25C1.625 2.81902 1.7962 2.4057 2.10095 2.10095C2.4057 1.7962 2.81902 1.625 3.25 1.625H22.75ZM3.25 0C2.38805 0 1.5614 0.34241 0.951903 0.951903C0.34241 1.5614 0 2.38805 0 3.25L0 16.25C0 17.112 0.34241 17.9386 0.951903 18.5481C1.5614 19.1576 2.38805 19.5 3.25 19.5H7.3125C7.56477 19.5 7.81358 19.5587 8.03922 19.6716C8.26486 19.7844 8.46114 19.9482 8.6125 20.15L11.7 24.2661C11.8514 24.4679 12.0476 24.6318 12.2733 24.7446C12.4989 24.8574 12.7477 24.9161 13 24.9161C13.2523 24.9161 13.5011 24.8574 13.7267 24.7446C13.9524 24.6318 14.1486 24.4679 14.3 24.2661L17.3875 20.15C17.5389 19.9482 17.7351 19.7844 17.9608 19.6716C18.1864 19.5587 18.4352 19.5 18.6875 19.5H22.75C23.612 19.5 24.4386 19.1576 25.0481 18.5481C25.6576 17.9386 26 17.112 26 16.25V3.25C26 2.38805 25.6576 1.5614 25.0481 0.951903C24.4386 0.34241 23.612 0 22.75 0L3.25 0Z",
15
- fill: C.fill
16
- }, null, 8, s),
17
- t("path", {
18
- d: "M4.875 5.6875C4.875 5.47201 4.9606 5.26535 5.11298 5.11298C5.26535 4.9606 5.47201 4.875 5.6875 4.875H20.3125C20.528 4.875 20.7347 4.9606 20.887 5.11298C21.0394 5.26535 21.125 5.47201 21.125 5.6875C21.125 5.90299 21.0394 6.10965 20.887 6.26202C20.7347 6.4144 20.528 6.5 20.3125 6.5H5.6875C5.47201 6.5 5.26535 6.4144 5.11298 6.26202C4.9606 6.10965 4.875 5.90299 4.875 5.6875ZM4.875 9.75C4.875 9.53451 4.9606 9.32785 5.11298 9.17548C5.26535 9.0231 5.47201 8.9375 5.6875 8.9375H20.3125C20.528 8.9375 20.7347 9.0231 20.887 9.17548C21.0394 9.32785 21.125 9.53451 21.125 9.75C21.125 9.96549 21.0394 10.1722 20.887 10.3245C20.7347 10.4769 20.528 10.5625 20.3125 10.5625H5.6875C5.47201 10.5625 5.26535 10.4769 5.11298 10.3245C4.9606 10.1722 4.875 9.96549 4.875 9.75ZM4.875 13.8125C4.875 13.597 4.9606 13.3903 5.11298 13.238C5.26535 13.0856 5.47201 13 5.6875 13H13.8125C14.028 13 14.2347 13.0856 14.387 13.238C14.5394 13.3903 14.625 13.597 14.625 13.8125C14.625 14.028 14.5394 14.2347 14.387 14.387C14.2347 14.5394 14.028 14.625 13.8125 14.625H5.6875C5.47201 14.625 5.26535 14.5394 5.11298 14.387C4.9606 14.2347 4.875 14.028 4.875 13.8125Z",
19
- fill: C.fill
20
- }, null, 8, i)
21
- ]);
22
- }
23
- const u = /* @__PURE__ */ n(e, [["render", r], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue"]]);
8
+ }, i = ["fill"], s = ["fill"], h = /* @__PURE__ */ l({
9
+ __name: "ChatTemplatesIcon",
10
+ props: {
11
+ fill: { default: "#5F5F5F" }
12
+ },
13
+ setup(C) {
14
+ return (c, f) => (n(), t("svg", o, [
15
+ e("path", {
16
+ d: "M22.75 1.625C23.181 1.625 23.5943 1.7962 23.899 2.10095C24.2038 2.4057 24.375 2.81902 24.375 3.25V16.25C24.375 16.681 24.2038 17.0943 23.899 17.399C23.5943 17.7038 23.181 17.875 22.75 17.875H18.6875C18.183 17.875 17.6853 17.9925 17.2341 18.2181C16.7828 18.4438 16.3902 18.7714 16.0875 19.175L13 23.2911L9.9125 19.175C9.60977 18.7714 9.21722 18.4438 8.76594 18.2181C8.31466 17.9925 7.81705 17.875 7.3125 17.875H3.25C2.81902 17.875 2.4057 17.7038 2.10095 17.399C1.7962 17.0943 1.625 16.681 1.625 16.25V3.25C1.625 2.81902 1.7962 2.4057 2.10095 2.10095C2.4057 1.7962 2.81902 1.625 3.25 1.625H22.75ZM3.25 0C2.38805 0 1.5614 0.34241 0.951903 0.951903C0.34241 1.5614 0 2.38805 0 3.25L0 16.25C0 17.112 0.34241 17.9386 0.951903 18.5481C1.5614 19.1576 2.38805 19.5 3.25 19.5H7.3125C7.56477 19.5 7.81358 19.5587 8.03922 19.6716C8.26486 19.7844 8.46114 19.9482 8.6125 20.15L11.7 24.2661C11.8514 24.4679 12.0476 24.6318 12.2733 24.7446C12.4989 24.8574 12.7477 24.9161 13 24.9161C13.2523 24.9161 13.5011 24.8574 13.7267 24.7446C13.9524 24.6318 14.1486 24.4679 14.3 24.2661L17.3875 20.15C17.5389 19.9482 17.7351 19.7844 17.9608 19.6716C18.1864 19.5587 18.4352 19.5 18.6875 19.5H22.75C23.612 19.5 24.4386 19.1576 25.0481 18.5481C25.6576 17.9386 26 17.112 26 16.25V3.25C26 2.38805 25.6576 1.5614 25.0481 0.951903C24.4386 0.34241 23.612 0 22.75 0L3.25 0Z",
17
+ fill: C.fill
18
+ }, null, 8, i),
19
+ e("path", {
20
+ d: "M4.875 5.6875C4.875 5.47201 4.9606 5.26535 5.11298 5.11298C5.26535 4.9606 5.47201 4.875 5.6875 4.875H20.3125C20.528 4.875 20.7347 4.9606 20.887 5.11298C21.0394 5.26535 21.125 5.47201 21.125 5.6875C21.125 5.90299 21.0394 6.10965 20.887 6.26202C20.7347 6.4144 20.528 6.5 20.3125 6.5H5.6875C5.47201 6.5 5.26535 6.4144 5.11298 6.26202C4.9606 6.10965 4.875 5.90299 4.875 5.6875ZM4.875 9.75C4.875 9.53451 4.9606 9.32785 5.11298 9.17548C5.26535 9.0231 5.47201 8.9375 5.6875 8.9375H20.3125C20.528 8.9375 20.7347 9.0231 20.887 9.17548C21.0394 9.32785 21.125 9.53451 21.125 9.75C21.125 9.96549 21.0394 10.1722 20.887 10.3245C20.7347 10.4769 20.528 10.5625 20.3125 10.5625H5.6875C5.47201 10.5625 5.26535 10.4769 5.11298 10.3245C4.9606 10.1722 4.875 9.96549 4.875 9.75ZM4.875 13.8125C4.875 13.597 4.9606 13.3903 5.11298 13.238C5.26535 13.0856 5.47201 13 5.6875 13H13.8125C14.028 13 14.2347 13.0856 14.387 13.238C14.5394 13.3903 14.625 13.597 14.625 13.8125C14.625 14.028 14.5394 14.2347 14.387 14.387C14.2347 14.5394 14.028 14.625 13.8125 14.625H5.6875C5.47201 14.625 5.26535 14.5394 5.11298 14.387C4.9606 14.2347 4.875 14.028 4.875 13.8125Z",
21
+ fill: C.fill
22
+ }, null, 8, s)
23
+ ]));
24
+ }
25
+ });
24
26
  export {
25
- u as default
27
+ h as default
26
28
  };
@@ -1,15 +1,4 @@
1
- import { defineComponent as r } from "vue";
2
- const o = /* @__PURE__ */ r({
3
- __name: "ChatTemplatesIcon",
4
- props: {
5
- fill: { type: String, required: !1, default: "#5F5F5F" }
6
- },
7
- setup(p, { expose: t }) {
8
- t();
9
- const e = {};
10
- return Object.defineProperty(e, "__isScriptSetup", { enumerable: !1, value: !0 }), e;
11
- }
12
- });
1
+ import f from "./ChatTemplatesIcon.vue.js";
13
2
  export {
14
- o as default
3
+ f as default
15
4
  };
@@ -1,9 +1,9 @@
1
- import { createElementBlock as p, openBlock as c, Fragment as w, createCommentVNode as T, createElementVNode as m, normalizeClass as k, createVNode as M, provide as r, inject as f, ref as n, onMounted as v } from "vue";
1
+ import { provide as s, inject as k, ref as i, onMounted as w, createElementBlock as u, openBlock as d, Fragment as B, createCommentVNode as W, createElementVNode as p, unref as S, normalizeClass as T, createVNode as M } from "vue";
2
2
  import V from "../WABATemplateSelector/WABATemplateSelector.vue.js";
3
- import { chottoUploadFileKey as y } from "../../../hooks/uploadFile/types.js";
4
- import { useMessageDraft as b } from "../../../hooks/useMessageDraft.js";
3
+ import { chottoUploadFileKey as A } from "../../../hooks/uploadFile/types.js";
4
+ import { useMessageDraft as q } from "../../../hooks/useMessageDraft.js";
5
5
  /* empty css */
6
- import A from "../../../_virtual/_plugin-vue_export-helper.js";
6
+ import C from "../../../_virtual/_plugin-vue_export-helper.js";
7
7
  /* empty css */
8
8
  import "../../../locale/useLocale.js";
9
9
  /* empty css */
@@ -55,85 +55,54 @@ const U = {
55
55
  }
56
56
  },
57
57
  emits: ["sendWabaValues"],
58
- setup(s, { expose: o, emit: a }) {
59
- o();
60
- const e = s;
61
- r("filebumpUrl", e.filebumpUrl), e.uploader && r(y, e.uploader);
62
- const l = f("chatAppId"), { getMessage: i } = b(l), g = n(null), t = n(null), u = a, h = () => {
58
+ setup(a, { emit: m }) {
59
+ const e = a;
60
+ s("filebumpUrl", e.filebumpUrl), e.uploader && s(A, e.uploader);
61
+ const c = k("chatAppId"), { getMessage: f } = q(c), y = i(null), t = i(null), v = m, b = () => {
63
62
  e.mode == "click" && e.state == "active" && (t.value.style.display == "none" ? t.value.style.display = "inherit" : t.value.style.display == "inherit" && (t.value.style.display = "none"));
64
- }, _ = () => {
63
+ }, o = () => {
65
64
  e.mode == "hover" && e.state == "active" && (t.value.style.display = "inherit");
66
- }, W = () => {
65
+ }, l = () => {
67
66
  e.mode == "hover" && e.state == "active" && (t.value.style.display = "none");
68
- }, B = () => {
67
+ }, g = () => {
69
68
  t.value.style.display = "none";
70
69
  };
71
- v(() => {
70
+ w(() => {
72
71
  t.value.style.display = "none";
73
72
  });
74
- const d = { props: e, chatAppId: l, getMessage: i, templateButton: g, template: t, emit: u, toggle: h, hover: _, hoverout: W, close: B, sendWabaValues: (S) => {
75
- u("sendWabaValues", S);
76
- }, ref: n, onMounted: v, provide: r, inject: f, WABATemplateSelector: V, get useMessageDraft() {
77
- return b;
78
- }, get chottoUploadFileKey() {
79
- return y;
80
- } };
81
- return Object.defineProperty(d, "__isScriptSetup", { enumerable: !1, value: !0 }), d;
73
+ const h = (n) => {
74
+ v("sendWabaValues", n);
75
+ };
76
+ return (n, r) => (d(), u(B, null, [
77
+ S(f)().isRecording ? W("", !0) : (d(), u("button", {
78
+ key: 0,
79
+ ref_key: "templateButton",
80
+ ref: y,
81
+ class: T(["button-template", { "button-template-disabled": a.state == "disabled" }]),
82
+ onClick: b,
83
+ onMouseover: o,
84
+ onMouseout: l
85
+ }, [...r[0] || (r[0] = [
86
+ p("span", { class: "pi pi-code" }, null, -1)
87
+ ])], 34)),
88
+ p("div", {
89
+ ref_key: "template",
90
+ ref: t,
91
+ onMouseover: o,
92
+ onMouseout: l
93
+ }, [
94
+ M(V, {
95
+ "waba-templates": a.wabaTemplates,
96
+ "group-templates": a.groupTemplates,
97
+ "elevated-window": a.elevatedWindow,
98
+ "chat-background": a.chatBackground,
99
+ onCloseTemplateWindow: g,
100
+ onSendWabaValues: h
101
+ }, null, 8, ["waba-templates", "group-templates", "elevated-window", "chat-background"])
102
+ ], 544)
103
+ ], 64));
82
104
  }
83
- };
84
- function q(s, o, a, e, l, i) {
85
- return c(), p(
86
- w,
87
- null,
88
- [
89
- e.getMessage().isRecording ? T("v-if", !0) : (c(), p(
90
- "button",
91
- {
92
- key: 0,
93
- ref: "templateButton",
94
- class: k(["button-template", { "button-template-disabled": a.state == "disabled" }]),
95
- onClick: e.toggle,
96
- onMouseover: e.hover,
97
- onMouseout: e.hoverout
98
- },
99
- [...o[0] || (o[0] = [
100
- m(
101
- "span",
102
- { class: "pi pi-code" },
103
- null,
104
- -1
105
- /* CACHED */
106
- )
107
- ])],
108
- 34
109
- /* CLASS, NEED_HYDRATION */
110
- )),
111
- m(
112
- "div",
113
- {
114
- ref: "template",
115
- onMouseover: e.hover,
116
- onMouseout: e.hoverout
117
- },
118
- [
119
- M(e.WABATemplateSelector, {
120
- "waba-templates": a.wabaTemplates,
121
- "group-templates": a.groupTemplates,
122
- "elevated-window": a.elevatedWindow,
123
- "chat-background": a.chatBackground,
124
- onCloseTemplateWindow: e.close,
125
- onSendWabaValues: e.sendWabaValues
126
- }, null, 8, ["waba-templates", "group-templates", "elevated-window", "chat-background"])
127
- ],
128
- 544
129
- /* NEED_HYDRATION, NEED_PATCH */
130
- )
131
- ],
132
- 64
133
- /* STABLE_FRAGMENT */
134
- );
135
- }
136
- const H = /* @__PURE__ */ A(U, [["render", q], ["__scopeId", "data-v-367ee7e9"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue"]]);
105
+ }, L = /* @__PURE__ */ C(U, [["__scopeId", "data-v-793420c8"]]);
137
106
  export {
138
- H as default
107
+ L as default
139
108
  };
@@ -1,104 +1,8 @@
1
- import d from "./FilePreview.vue2.js";
2
- import { createElementBlock as t, openBlock as i, createElementVNode as n, createBlock as s, createCommentVNode as a, toDisplayString as f, Teleport as c, createVNode as m, Transition as v, withCtx as r } from "vue";
1
+ import o from "./FilePreview.vue2.js";
3
2
  /* empty css */
4
3
  /* empty css */
5
- import h from "../../../_virtual/_plugin-vue_export-helper.js";
6
- const w = { class: "preview" }, u = ["src", "alt"], I = ["src"], y = {
7
- key: 2,
8
- class: "pi pi-play preview__thumb-play"
9
- }, k = {
10
- key: 1,
11
- class: "pi pi-file preview__icon"
12
- }, p = { class: "preview__info" }, b = ["title"], g = {
13
- key: 0,
14
- class: "preview__size"
15
- }, N = ["aria-label"], V = ["src"], C = ["src", "alt"];
16
- function F(x, o, e, l, M, P) {
17
- return i(), t("div", w, [
18
- l.hasVisualPreview ? (i(), t("div", {
19
- key: 0,
20
- class: "preview__thumb",
21
- onClick: o[0] || (o[0] = (_) => l.isOpenModal = !0)
22
- }, [
23
- e.fileInfo.isImage ? (i(), t("img", {
24
- key: 0,
25
- src: e.fileInfo.previewUrl,
26
- alt: e.fileInfo.fileName,
27
- class: "preview__thumb-media"
28
- }, null, 8, u)) : e.fileInfo.isVideo ? (i(), t("video", {
29
- key: 1,
30
- src: e.fileInfo.previewUrl,
31
- class: "preview__thumb-media",
32
- muted: "",
33
- playsinline: "",
34
- preload: "metadata",
35
- onLoadedmetadata: l.showVideoFrame
36
- }, null, 40, I)) : a("v-if", !0),
37
- e.fileInfo.isVideo ? (i(), t("span", y)) : a("v-if", !0)
38
- ])) : (i(), t("span", k)),
39
- n("div", p, [
40
- n("span", {
41
- class: "preview__name",
42
- title: e.fileInfo.fileName
43
- }, f(e.fileInfo.fileName), 9, b),
44
- e.fileInfo.fileSize ? (i(), t(
45
- "span",
46
- g,
47
- f(e.fileInfo.fileSize),
48
- 1
49
- /* TEXT */
50
- )) : a("v-if", !0)
51
- ]),
52
- n("button", {
53
- type: "button",
54
- class: "preview__reset",
55
- "aria-label": e.fileInfo.fileName,
56
- onClick: o[1] || (o[1] = (_) => l.emit("reset"))
57
- }, [...o[2] || (o[2] = [
58
- n(
59
- "span",
60
- { class: "pi pi-times" },
61
- null,
62
- -1
63
- /* CACHED */
64
- )
65
- ])], 8, N),
66
- (i(), s(c, { to: "body" }, [
67
- m(v, { name: "modal-fade" }, {
68
- default: r(() => [
69
- l.isOpenModal ? (i(), s(l.ModalFullscreen, {
70
- key: 0,
71
- theme: l.getTheme().theme ? l.getTheme().theme : "light",
72
- title: e.fileInfo.fileName,
73
- onClose: l.closeModal
74
- }, {
75
- default: r(() => [
76
- e.fileInfo.isVideo ? (i(), t("video", {
77
- key: 0,
78
- class: "preview__modal-video",
79
- src: e.fileInfo.previewUrl,
80
- controls: "",
81
- autoplay: "",
82
- playsinline: ""
83
- }, null, 8, V)) : a("v-if", !0),
84
- e.fileInfo.isImage ? (i(), t("img", {
85
- key: 1,
86
- class: "preview__modal-image",
87
- src: e.fileInfo.previewUrl,
88
- alt: e.fileInfo.fileName
89
- }, null, 8, C)) : a("v-if", !0)
90
- ]),
91
- _: 1
92
- /* STABLE */
93
- }, 8, ["theme", "title"])) : a("v-if", !0)
94
- ]),
95
- _: 1
96
- /* STABLE */
97
- })
98
- ]))
99
- ]);
100
- }
101
- const E = /* @__PURE__ */ h(d, [["render", F], ["__scopeId", "data-v-a48ddb15"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatinput_elements/FilePreview/FilePreview.vue"]]);
4
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
5
+ const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-592e055e"]]);
102
6
  export {
103
- E as default
7
+ p as default
104
8
  };