@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,34 +1,46 @@
1
- import { defineComponent as de, inject as fe, ref as l, watch as C, nextTick as h, onMounted as ve, onUnmounted as be, computed as m } from "vue";
2
- import he from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
3
- import we from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
4
- import Me from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
5
- import ye from "../BaseReplyMessage/BaseReplyMessage.vue.js";
6
- import Re from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
7
- import xe from "../MessageReactions/MessageReactions.vue.js";
8
- import Se from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
9
- import je from "../MessageSmsInvite/MessageSmsInvite.vue.js";
10
- import Oe from "../DeletedMessageContent/DeletedMessageContent.vue.js";
11
- import Te from "../../1_atoms/Tooltip/Tooltip.vue.js";
12
- import { useMessageActions as Ae } from "../../../hooks/messages/useMessageActions.js";
13
- import { useMessageMenuActions as Le } from "../../../hooks/messages/useMessageMenuActions.js";
14
- import { useMessageLinks as Ce } from "../../../hooks/messages/useMessageLinks.js";
15
- import { useChannelAccentColor as Ie } from "../../../hooks/messages/useChannelAccentColor.js";
16
- import { useSubtextTooltip as ze } from "../../../hooks/messages/useSubtextTooltip.js";
17
- import { useStartReply as _e } from "../../../hooks/messages/useStartReply.js";
1
+ import { defineComponent as Ie, inject as Ae, ref as b, watch as J, nextTick as E, onMounted as Le, onUnmounted as je, computed as k, createElementBlock as o, openBlock as n, normalizeStyle as O, normalizeClass as y, unref as s, createCommentVNode as i, createElementVNode as l, createBlock as f, createVNode as r, withCtx as v, createTextVNode as Ee, toDisplayString as C, Fragment as K, Transition as x, withModifiers as Q, Teleport as X } from "vue";
2
+ import Oe from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
3
+ import Be from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
4
+ import Ue from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
5
+ import ze from "../BaseReplyMessage/BaseReplyMessage.vue.js";
6
+ import Fe from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
7
+ import Ne from "../MessageReactions/MessageReactions.vue.js";
8
+ import Y from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
9
+ import Ve from "../MessageSmsInvite/MessageSmsInvite.vue.js";
10
+ import He from "../DeletedMessageContent/DeletedMessageContent.vue.js";
11
+ import We from "../../1_atoms/Tooltip/Tooltip.vue.js";
12
+ import { useMessageActions as De } from "../../../hooks/messages/useMessageActions.js";
13
+ import { useMessageMenuActions as Pe } from "../../../hooks/messages/useMessageMenuActions.js";
14
+ import { useMessageLinks as $e } from "../../../hooks/messages/useMessageLinks.js";
15
+ import { useChannelAccentColor as qe } from "../../../hooks/messages/useChannelAccentColor.js";
16
+ import { useSubtextTooltip as Ge } from "../../../hooks/messages/useSubtextTooltip.js";
17
+ import { useStartReply as Je } from "../../../hooks/messages/useStartReply.js";
18
18
  import "../../../hooks/useMessageDraft.js";
19
19
  import "../../../hooks/useSearchModel.js";
20
- import { useTheme as ke } from "../../../hooks/useTheme.js";
20
+ import { useTheme as Ke } from "../../../hooks/useTheme.js";
21
21
  import "../../../hooks/useEmojiNative.js";
22
22
  /* empty css */
23
23
  /* empty css */
24
24
  import "../../../locale/useLocale.js";
25
25
  /* empty css */
26
- import { buildReplyPayload as I } from "../../../hooks/messages/buildReplyPayload.js";
27
- import { getStatus as Ee, getStatusTitle as Ue } from "../../../functions/getStatusMessage.js";
28
- import { getMessageClass as Be } from "../../../functions/getMessageClass.js";
29
- import { createReactionHandlers as He } from "../../../functions/createReactionHandlers.js";
26
+ import { buildReplyPayload as Z } from "../../../hooks/messages/buildReplyPayload.js";
27
+ import { getStatus as Qe, getStatusTitle as Xe } from "../../../functions/getStatusMessage.js";
28
+ import { getMessageClass as Ye } from "../../../functions/getMessageClass.js";
29
+ import { createReactionHandlers as Ze } from "../../../functions/createReactionHandlers.js";
30
30
  import "../../../functions/parseMarkdown.js";
31
- const ft = /* @__PURE__ */ de({
31
+ const _e = ["messageId"], es = ["src"], ss = {
32
+ key: 1,
33
+ class: "image-message__subtext"
34
+ }, ts = { class: "image-message__info-container" }, as = {
35
+ key: 0,
36
+ class: "image-message__time"
37
+ }, ns = {
38
+ key: 0,
39
+ class: "image-message__blur-wrapper"
40
+ }, is = ["src", "alt"], ls = ["src", "alt"], os = ["src", "alt"], ms = {
41
+ key: 0,
42
+ class: "image-message__info-container"
43
+ }, us = { class: "image-message__time" }, rs = ["innerHTML"], gs = ["src", "alt"], Ds = /* @__PURE__ */ Ie({
32
44
  __name: "ImageMessage",
33
45
  props: {
34
46
  message: {
@@ -50,7 +62,7 @@ const ft = /* @__PURE__ */ de({
50
62
  reactionsMode: {
51
63
  type: String,
52
64
  default: "single",
53
- validator: (f) => ["single", "multi"].includes(f)
65
+ validator: (e) => ["single", "multi"].includes(e)
54
66
  },
55
67
  currentUserId: {
56
68
  type: [String, Number],
@@ -72,78 +84,77 @@ const ft = /* @__PURE__ */ de({
72
84
  }
73
85
  },
74
86
  emits: ["action", "reply", "sms-invite"],
75
- setup(f, { expose: z, emit: _ }) {
76
- z();
77
- const v = fe("chatAppId"), { getTheme: k } = ke(v || ""), { menuActions: E } = Le(() => e.message), { startReply: w } = _e(v || ""), e = f, p = _, M = l(!1), {
78
- isOpenMenu: U,
79
- buttonMenuVisible: y,
80
- menuAnchorRef: B,
81
- menuRef: H,
82
- menuStyle: W,
83
- menuTheme: P,
84
- showMenu: R,
85
- hideMenu: x,
86
- openMenu: D,
87
- toggleMenu: $,
88
- onMenuMouseEnter: q,
89
- onMenuMouseLeave: S,
90
- clickAction: F,
87
+ setup(e, { emit: _ }) {
88
+ const B = Ae("chatAppId"), { getTheme: U } = Ke(B || ""), { menuActions: R } = Pe(() => t.message), { startReply: ee } = Je(B || ""), t = e, T = _, I = b(!1), {
89
+ isOpenMenu: se,
90
+ buttonMenuVisible: z,
91
+ menuAnchorRef: te,
92
+ menuRef: ae,
93
+ menuStyle: ne,
94
+ menuTheme: ie,
95
+ showMenu: le,
96
+ hideMenu: oe,
97
+ openMenu: me,
98
+ toggleMenu: F,
99
+ onMenuMouseEnter: ue,
100
+ onMenuMouseLeave: re,
101
+ clickAction: ge,
91
102
  viewsAction: N,
92
- handleClickReplied: V
93
- } = Ae(e.message, p, {
94
- onReply: () => w(I(e.message, "message.image"))
95
- }), c = l(!1), { linkedHtml: j, inNewWindow: G } = Ce(() => e.message.text), n = l(null), o = l(null), i = l(0), g = l(0);
96
- C(
97
- () => j.value,
103
+ handleClickReplied: ce
104
+ } = De(t.message, T, {
105
+ onReply: () => ee(Z(t.message, "message.image"))
106
+ }), h = b(!1), { linkedHtml: V, inNewWindow: H } = $e(() => t.message.text), c = b(null), g = b(null), w = b(0), A = b(0);
107
+ J(
108
+ () => V.value,
98
109
  () => {
99
- a(), h(() => {
100
- t && o.value && t.observe(o.value);
110
+ M(), E(() => {
111
+ m && g.value && m.observe(g.value);
101
112
  });
102
113
  }
103
114
  );
104
- const a = () => {
105
- h(() => {
106
- n.value && (i.value = n.value.offsetWidth), o.value && (g.value = o.value.offsetWidth);
115
+ const M = () => {
116
+ E(() => {
117
+ c.value && (w.value = c.value.offsetWidth), g.value && (A.value = g.value.offsetWidth);
107
118
  });
108
119
  };
109
- let t = null, r = null;
110
- ve(() => {
111
- a(), r = () => a(), window.addEventListener("resize", r), typeof ResizeObserver < "u" && (t = new ResizeObserver(() => {
112
- a();
113
- }), n.value && t.observe(n.value), o.value && t.observe(o.value));
114
- }), be(() => {
115
- r && window.removeEventListener("resize", r), t && t.disconnect();
116
- }), C(
117
- () => [e.message.text, e.message.url],
120
+ let m = null, S = null;
121
+ Le(() => {
122
+ M(), S = () => M(), window.addEventListener("resize", S), typeof ResizeObserver < "u" && (m = new ResizeObserver(() => {
123
+ M();
124
+ }), c.value && m.observe(c.value), g.value && m.observe(g.value));
125
+ }), je(() => {
126
+ S && window.removeEventListener("resize", S), m && m.disconnect();
127
+ }), J(
128
+ () => [t.message.text, t.message.url],
118
129
  () => {
119
- a(), h(() => {
120
- t && (t.disconnect(), n.value && t.observe(n.value), o.value && t.observe(o.value));
130
+ M(), E(() => {
131
+ m && (m.disconnect(), c.value && m.observe(c.value), g.value && m.observe(g.value));
121
132
  });
122
133
  },
123
134
  { immediate: !0 }
124
135
  );
125
- const J = m(() => e.message.text && g.value > i.value && i.value > 0), K = () => {
126
- R(), c.value = !0;
127
- }, Q = (s) => {
128
- x(s), y.value || (c.value = !1);
129
- }, X = () => {
130
- S(), c.value = !1;
131
- }, Y = m(() => e.message.reply && e.message.text ? "0" : e.message.text ? g.value > i.value && i.value > 0 ? "0" : "var(--chotto-imagemessage-preview-with-caption-border-radius, 7px 7px 0 0)" : e.message.reply ? "var(--chotto-imagemessage-preview-with-reply-border-radius, 0 0 7px 7px)" : "var(--chotto-imagemessage-preview-border-radius, 7px)"), Z = m(() => Ee(e.message.status)), ee = m(() => Ue(e.message.status, e.message.statusMsg)), { bubbleStyle: te } = Ie(
132
- m(() => e.message),
136
+ const W = k(() => t.message.text && A.value > w.value && w.value > 0), de = () => {
137
+ le(), h.value = !0;
138
+ }, D = (d) => {
139
+ oe(d), z.value || (h.value = !1);
140
+ }, fe = () => {
141
+ re(), h.value = !1;
142
+ }, ve = k(() => t.message.reply && t.message.text ? "0" : t.message.text ? A.value > w.value && w.value > 0 ? "0" : "var(--chotto-imagemessage-preview-with-caption-border-radius, 7px 7px 0 0)" : t.message.reply ? "var(--chotto-imagemessage-preview-with-reply-border-radius, 0 0 7px 7px)" : "var(--chotto-imagemessage-preview-border-radius, 7px)"), P = k(() => Qe(t.message.status)), $ = k(() => Xe(t.message.status, t.message.statusMsg)), { bubbleStyle: be } = qe(
143
+ k(() => t.message),
133
144
  { cssVariable: "--chotto-imagemessage-right-bg", position: "right" }
134
145
  );
135
- function se(s) {
136
- return Be(s.position, "image-message");
146
+ function L(d) {
147
+ return Ye(d.position, "image-message");
137
148
  }
138
- const oe = () => M.value = !1, ne = async () => {
139
- var s, T;
140
- if (e.message.url)
149
+ const ye = () => I.value = !1, he = async () => {
150
+ var d, a;
151
+ if (t.message.url)
141
152
  try {
142
- const d = await fetch(e.message.url, {
153
+ const u = await fetch(t.message.url, {
143
154
  headers: {
144
155
  Accept: "image/*"
145
156
  }
146
- }), me = d.headers.get("content-type") || "", pe = await d.blob(), b = ((T = (s = e.message.url.split(".").pop()) == null ? void 0 : s.split("?")[0]) == null ? void 0 : T.toLowerCase()) || "", ce = {
157
+ }), Re = u.headers.get("content-type") || "", Se = await u.blob(), j = ((a = (d = t.message.url.split(".").pop()) == null ? void 0 : d.split("?")[0]) == null ? void 0 : a.toLowerCase()) || "", Ce = {
147
158
  "image/jpeg": "jpg",
148
159
  "image/jpg": "jpg",
149
160
  "image/png": "png",
@@ -152,30 +163,240 @@ const ft = /* @__PURE__ */ de({
152
163
  "image/svg+xml": "svg",
153
164
  "image/bmp": "bmp"
154
165
  };
155
- let A = b && ["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp"].includes(b) ? b : ce[me] || "jpg";
156
- const ge = e.message.alt ? e.message.alt.includes(".") ? e.message.alt : `${e.message.alt}.${A}` : `image-${e.message.messageId}.${A}`, L = window.URL.createObjectURL(pe), u = document.createElement("a");
157
- u.href = L, u.download = ge, document.body.appendChild(u), u.click(), document.body.removeChild(u), window.URL.revokeObjectURL(L);
158
- } catch (d) {
159
- console.error("Ошибка при скачивании изображения:", d);
166
+ let q = j && ["jpg", "jpeg", "png", "gif", "webp", "svg", "bmp"].includes(j) ? j : Ce[Re] || "jpg";
167
+ const Te = t.message.alt ? t.message.alt.includes(".") ? t.message.alt : `${t.message.alt}.${q}` : `image-${t.message.messageId}.${q}`, G = window.URL.createObjectURL(Se), p = document.createElement("a");
168
+ p.href = G, p.download = Te, document.body.appendChild(p), p.click(), document.body.removeChild(p), window.URL.revokeObjectURL(G);
169
+ } catch (u) {
170
+ console.error("Ошибка при скачивании изображения:", u);
160
171
  }
161
- }, { onToggleReaction: ie, onAddReaction: ae, onRemoveReaction: re } = He(p), le = ze(() => e.message, () => e.subtextTooltipData);
162
- function ue() {
163
- p("sms-invite", e.message);
172
+ }, { onToggleReaction: we, onAddReaction: Me, onRemoveReaction: pe } = Ze(T), ke = Ge(() => t.message, () => t.subtextTooltipData);
173
+ function xe() {
174
+ T("sms-invite", t.message);
164
175
  }
165
- const O = { chatAppId: v, getTheme: k, menuActions: E, startReply: w, props: e, emit: p, isOpenModal: M, isOpenMenu: U, buttonMenuVisible: y, menuAnchorRef: B, menuRef: H, menuStyle: W, menuTheme: P, baseShowMenu: R, baseHideMenu: x, openMenu: D, toggleMenu: $, onMenuMouseEnter: q, baseOnMenuMouseLeave: S, clickAction: F, viewsAction: N, handleClickReplied: V, buttonDownloadVisible: c, linkedHtml: j, inNewWindow: G, imageRef: n, textRef: o, imageWidth: i, textWidth: g, updateWidths: a, get resizeObserver() {
166
- return t;
167
- }, set resizeObserver(s) {
168
- t = s;
169
- }, get windowResizeHandler() {
170
- return r;
171
- }, set windowResizeHandler(s) {
172
- r = s;
173
- }, shouldApplyBlur: J, showMenu: K, hideMenu: Q, onMenuMouseLeave: X, imageBorderRadius: Y, status: Z, statusTitle: ee, rightBubbleStyle: te, getClass: se, closeModal: oe, downloadImage: ne, onToggleReaction: ie, onAddReaction: ae, onRemoveReaction: re, channelInfo: le, handleSmsInvite: ue, ContextMenu: he, LinkPreview: we, EmbedPreview: Me, BaseReplyMessage: ye, ModalFullscreen: Re, MessageReactions: xe, MessageStatusIndicator: Se, MessageSmsInvite: je, DeletedMessageContent: Oe, Tooltip: Te, get buildReplyPayload() {
174
- return I;
175
- } };
176
- return Object.defineProperty(O, "__isScriptSetup", { enumerable: !1, value: !0 }), O;
176
+ return (d, a) => (n(), o("div", {
177
+ ref_key: "menuAnchorRef",
178
+ ref: te,
179
+ class: y(["image-message", [
180
+ L(e.message),
181
+ e.applyStyle(e.message)
182
+ ]]),
183
+ messageId: e.message.messageId,
184
+ style: O(s(be)),
185
+ onMouseleave: D
186
+ }, [
187
+ e.message.avatar && e.isFirstInSeries ? (n(), o("img", {
188
+ key: 0,
189
+ class: "image-message__avatar",
190
+ src: e.message.avatar,
191
+ height: "32",
192
+ width: "32"
193
+ }, null, 8, es)) : i("", !0),
194
+ e.message.subText && e.isFirstInSeries ? (n(), o("p", ss, [
195
+ r(We, {
196
+ text: s(ke),
197
+ position: e.message.position === "left" ? "right" : "left",
198
+ offset: 8
199
+ }, {
200
+ default: v(() => [
201
+ Ee(C(e.message.subText), 1)
202
+ ]),
203
+ _: 1
204
+ }, 8, ["text", "position"])
205
+ ])) : i("", !0),
206
+ l("div", {
207
+ class: y(["image-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar, "has-caption": !!e.message.text }])
208
+ }, [
209
+ a[7] || (a[7] = l("div", {
210
+ class: "image-message__bottom-shadow",
211
+ "aria-hidden": "true"
212
+ }, null, -1)),
213
+ e.message.deleted ? (n(), o(K, { key: 0 }, [
214
+ r(He),
215
+ l("div", ts, [
216
+ e.message.time ? (n(), o("span", as, C(e.message.time), 1)) : i("", !0),
217
+ r(Y, {
218
+ "base-class": "image-message",
219
+ "message-class": L(e.message),
220
+ "message-status": e.message.status,
221
+ "status-class": P.value,
222
+ "status-title": $.value
223
+ }, null, 8, ["message-class", "message-status", "status-class", "status-title"])
224
+ ])
225
+ ], 64)) : (n(), o(K, { key: 1 }, [
226
+ e.message.reply ? (n(), f(ze, {
227
+ key: 0,
228
+ style: { margin: "10px 10px 4px 16px" },
229
+ class: y(e.message.position),
230
+ message: e.message.reply,
231
+ onReply: s(ce)
232
+ }, null, 8, ["class", "message", "onReply"])) : i("", !0),
233
+ l("div", {
234
+ class: y(["image-message__preview-button", { "image-message__preview-button--blur-edges": W.value }]),
235
+ onClick: a[1] || (a[1] = (u) => I.value = !0),
236
+ onMouseenter: de,
237
+ onMouseleave: D
238
+ }, [
239
+ W.value ? (n(), o("div", ns, [
240
+ l("img", {
241
+ class: "image-message__blur-left",
242
+ src: e.message.url,
243
+ alt: e.message.alt
244
+ }, null, 8, is),
245
+ l("img", {
246
+ class: "image-message__blur-right",
247
+ src: e.message.url,
248
+ alt: e.message.alt
249
+ }, null, 8, ls)
250
+ ])) : i("", !0),
251
+ l("img", {
252
+ ref_key: "imageRef",
253
+ ref: c,
254
+ class: "image-message__preview-image",
255
+ style: O({ borderRadius: ve.value }),
256
+ src: e.message.url,
257
+ alt: e.message.alt
258
+ }, null, 12, os),
259
+ r(x, { name: "modal-fade" }, {
260
+ default: v(() => [
261
+ h.value ? (n(), o("div", ms, [
262
+ e.message.views ? (n(), o("div", {
263
+ key: 0,
264
+ class: "image-message__views",
265
+ onClick: a[0] || (a[0] = Q(
266
+ //@ts-ignore
267
+ (...u) => s(N) && s(N)(...u),
268
+ ["stop"]
269
+ ))
270
+ }, [
271
+ a[4] || (a[4] = l("span", { class: "pi pi-eye" }, null, -1)),
272
+ l("p", null, C(e.message.views), 1)
273
+ ])) : i("", !0),
274
+ l("span", us, C(e.message.time), 1),
275
+ r(Y, {
276
+ "base-class": "image-message",
277
+ "message-class": L(e.message),
278
+ "message-status": e.message.status,
279
+ "status-class": P.value,
280
+ "status-title": $.value
281
+ }, null, 8, ["message-class", "message-status", "status-class", "status-title"])
282
+ ])) : i("", !0)
283
+ ]),
284
+ _: 1
285
+ }),
286
+ r(x, { name: "modal-fade" }, {
287
+ default: v(() => [
288
+ h.value ? (n(), o("button", {
289
+ key: 0,
290
+ class: "image-message__download-button",
291
+ onClick: Q(he, ["stop"])
292
+ }, [...a[5] || (a[5] = [
293
+ l("span", { class: "pi pi-download" }, null, -1)
294
+ ])])) : i("", !0)
295
+ ]),
296
+ _: 1
297
+ })
298
+ ], 34),
299
+ r(x, { name: "modal-fade" }, {
300
+ default: v(() => [
301
+ s(z) && s(R).length && !e.reactionsEnabled ? (n(), o("button", {
302
+ key: 0,
303
+ class: "image-message__menu-button",
304
+ onClick: a[2] || (a[2] = //@ts-ignore
305
+ (...u) => s(F) && s(F)(...u))
306
+ }, [...a[6] || (a[6] = [
307
+ l("span", { class: "pi pi-ellipsis-h" }, null, -1)
308
+ ])])) : i("", !0)
309
+ ]),
310
+ _: 1
311
+ }),
312
+ (n(), f(X, { to: "body" }, [
313
+ r(x, { name: "context-menu" }, {
314
+ default: v(() => [
315
+ s(se) && s(R).length ? (n(), f(Oe, {
316
+ key: 0,
317
+ ref_key: "menuRef",
318
+ ref: ae,
319
+ class: "image-message__context-menu message-actions-menu",
320
+ style: O(s(ne)),
321
+ "data-theme": s(ie),
322
+ actions: s(R),
323
+ onClick: s(ge),
324
+ onMouseenter: s(ue),
325
+ onMouseleave: fe
326
+ }, null, 8, ["style", "data-theme", "actions", "onClick", "onMouseenter"])) : i("", !0)
327
+ ]),
328
+ _: 1
329
+ })
330
+ ])),
331
+ e.message.text ? (n(), o("div", {
332
+ key: 1,
333
+ ref_key: "textRef",
334
+ ref: g,
335
+ class: "image-message__text-container"
336
+ }, [
337
+ l("p", {
338
+ onClick: a[3] || (a[3] = //@ts-ignore
339
+ (...u) => s(H) && s(H)(...u)),
340
+ innerHTML: s(V)
341
+ }, null, 8, rs)
342
+ ], 512)) : i("", !0),
343
+ r(Ve, {
344
+ status: e.message.status,
345
+ "has-messenger-account": e.message.hasMessengerAccount,
346
+ channel: e.channel,
347
+ onSmsInvite: xe
348
+ }, null, 8, ["status", "has-messenger-account", "channel"]),
349
+ e.message.linkPreview ? (n(), f(Be, {
350
+ key: 2,
351
+ class: y(["image-message__link-preview", e.message.position]),
352
+ "link-preview": e.message.linkPreview
353
+ }, null, 8, ["class", "link-preview"])) : i("", !0),
354
+ e.message.embed ? (n(), f(Ue, {
355
+ key: 3,
356
+ class: y(e.message.position),
357
+ embed: e.message.embed
358
+ }, null, 8, ["class", "embed"])) : i("", !0),
359
+ r(Ne, {
360
+ reactions: e.message.reactions,
361
+ "message-id": e.message.messageId,
362
+ reply: s(Z)(e.message, "message.image"),
363
+ enabled: e.reactionsEnabled,
364
+ mode: e.reactionsMode,
365
+ "current-user-id": e.currentUserId,
366
+ "reaction-user-names": e.reactionUserNames,
367
+ "menu-enabled": s(R).length > 0,
368
+ onToggleReaction: s(we),
369
+ onAddReaction: s(Me),
370
+ onRemoveReaction: s(pe),
371
+ onMenu: s(me)
372
+ }, null, 8, ["reactions", "message-id", "reply", "enabled", "mode", "current-user-id", "reaction-user-names", "menu-enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction", "onMenu"])
373
+ ], 64))
374
+ ], 2),
375
+ (n(), f(X, { to: "body" }, [
376
+ r(x, { name: "modal-fade" }, {
377
+ default: v(() => [
378
+ I.value && !e.message.deleted ? (n(), f(Fe, {
379
+ key: 0,
380
+ "data-theme": s(U)().theme ? s(U)().theme : "light",
381
+ title: e.message.alt,
382
+ onClose: ye
383
+ }, {
384
+ default: v(() => [
385
+ l("img", {
386
+ class: "image-message__modal-image",
387
+ src: e.message.url,
388
+ alt: e.message.alt
389
+ }, null, 8, gs)
390
+ ]),
391
+ _: 1
392
+ }, 8, ["data-theme", "title"])) : i("", !0)
393
+ ]),
394
+ _: 1
395
+ })
396
+ ]))
397
+ ], 46, _e));
177
398
  }
178
399
  });
179
400
  export {
180
- ft as default
401
+ Ds as default
181
402
  };
@@ -1,42 +1,7 @@
1
- import n from "./MessageKeyboard.vue2.js";
2
- import { createElementBlock as o, openBlock as t, normalizeClass as s, Fragment as c, renderList as l, normalizeStyle as d, createElementVNode as i, toDisplayString as _ } from "vue";
1
+ import o from "./MessageKeyboard.vue2.js";
3
2
  /* empty css */
4
- import p from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const m = ["onClick"];
6
- function f(y, b, r, a, x, k) {
7
- return t(), o(
8
- "div",
9
- {
10
- ref: "keyboard",
11
- class: s(["keyboard__container", [`keyboard__container--${r.align}`]])
12
- },
13
- [
14
- (t(!0), o(
15
- c,
16
- null,
17
- l(r.keyboard, (e) => (t(), o("div", {
18
- key: e.text,
19
- class: "keyboard__key",
20
- style: d({ "box-shadow": "0px 0px 10px 5px " + e.color }),
21
- onClick: (u) => a.handleClickKey(e)
22
- }, [
23
- i(
24
- "p",
25
- null,
26
- _(e.text),
27
- 1
28
- /* TEXT */
29
- )
30
- ], 12, m))),
31
- 128
32
- /* KEYED_FRAGMENT */
33
- ))
34
- ],
35
- 2
36
- /* CLASS */
37
- );
38
- }
39
- const K = /* @__PURE__ */ p(n, [["render", f], ["__scopeId", "data-v-ef794b11"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue"]]);
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const s = /* @__PURE__ */ r(o, [["__scopeId", "data-v-973cd877"]]);
40
5
  export {
41
- K as default
6
+ s as default
42
7
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as u, useTemplateRef as d, inject as f } from "vue";
2
- import { useMessageDraft as l } from "../../../hooks/useMessageDraft.js";
1
+ import { defineComponent as u, useTemplateRef as f, inject as x, createElementBlock as r, openBlock as n, normalizeClass as _, Fragment as g, renderList as y, normalizeStyle as b, createElementVNode as h, toDisplayString as k } from "vue";
2
+ import { useMessageDraft as C } from "../../../hooks/useMessageDraft.js";
3
3
  import "../../../hooks/useSearchModel.js";
4
4
  import "../../../hooks/useTheme.js";
5
5
  import "../../../hooks/useEmojiNative.js";
@@ -10,7 +10,7 @@ import "../../../locale/useLocale.js";
10
10
  import "../../../node_modules/linkifyjs/dist/linkify.js";
11
11
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
12
12
  import "../../../functions/parseMarkdown.js";
13
- const C = /* @__PURE__ */ u({
13
+ const v = ["onClick"], w = /* @__PURE__ */ u({
14
14
  __name: "MessageKeyboard",
15
15
  props: {
16
16
  keyboard: {
@@ -24,17 +24,27 @@ const C = /* @__PURE__ */ u({
24
24
  }
25
25
  },
26
26
  emits: ["action"],
27
- setup(t, { expose: s, emit: c }) {
28
- const r = d("keyboard"), o = c, i = f("chatAppId"), { setMessageText: n, setForceSendMessage: a } = l(i), m = (e) => {
29
- e.action && typeof e.action == "function" ? e.action() : e.action != null ? o("action", e.action) : (n(e.text), a(!0));
27
+ setup(t, { expose: i, emit: a }) {
28
+ const s = f("keyboard"), c = a, l = x("chatAppId"), { setMessageText: p, setForceSendMessage: m } = C(l), d = (e) => {
29
+ e.action && typeof e.action == "function" ? e.action() : e.action != null ? c("action", e.action) : (p(e.text), m(!0));
30
30
  };
31
- s({
32
- refKeyboard: r
33
- });
34
- const p = { refKeyboard: r, emit: o, chatAppId: i, setMessageText: n, setForceSendMessage: a, handleClickKey: m };
35
- return Object.defineProperty(p, "__isScriptSetup", { enumerable: !1, value: !0 }), p;
31
+ return i({
32
+ refKeyboard: s
33
+ }), (e, M) => (n(), r("div", {
34
+ ref: "keyboard",
35
+ class: _(["keyboard__container", [`keyboard__container--${t.align}`]])
36
+ }, [
37
+ (n(!0), r(g, null, y(t.keyboard, (o) => (n(), r("div", {
38
+ key: o.text,
39
+ class: "keyboard__key",
40
+ style: b({ "box-shadow": "0px 0px 10px 5px " + o.color }),
41
+ onClick: (S) => d(o)
42
+ }, [
43
+ h("p", null, k(o.text), 1)
44
+ ], 12, v))), 128))
45
+ ], 2));
36
46
  }
37
47
  });
38
48
  export {
39
- C as default
49
+ w as default
40
50
  };