@mobilon-dev/chotto 0.3.97 → 0.3.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
  4. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
  5. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
  6. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
  8. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
  9. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -38
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -2
  11. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
  12. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
  13. package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
  14. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
  15. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
  16. package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
  17. package/dist/components/1_icons/CheckIcon.vue.js +26 -13
  18. package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
  19. package/dist/components/1_icons/CloseIcon.vue.js +16 -10
  20. package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
  21. package/dist/components/1_icons/MenuIcon.vue.js +16 -10
  22. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
  24. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
  26. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
  28. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
  30. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
  32. package/dist/components/1_icons/SearchIcon.vue.js +29 -17
  33. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  34. package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
  35. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
  36. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
  37. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
  38. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
  39. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
  41. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
  51. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
  52. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
  53. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
  54. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
  55. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
  56. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
  57. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
  58. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
  59. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
  60. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
  63. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
  64. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
  67. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
  68. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
  69. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
  70. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
  71. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
  72. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
  73. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
  74. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
  75. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
  76. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
  77. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
  78. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
  79. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
  80. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
  81. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
  82. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
  83. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
  84. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
  85. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
  86. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
  87. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
  88. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
  89. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
  90. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
  91. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
  92. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
  93. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
  99. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
  100. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
  101. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
  102. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
  103. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
  104. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
  105. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
  106. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
  107. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
  108. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
  109. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
  110. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
  111. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
  112. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
  113. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
  114. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
  115. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
  116. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
  117. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
  118. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
  119. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
  120. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
  121. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
  122. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
  123. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  124. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
  125. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
  127. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
  128. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
  129. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
  131. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
  133. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
  135. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
  136. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
  137. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
  138. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
  139. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
  140. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
  141. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
  142. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
  143. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
  144. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
  145. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
  146. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
  147. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
  148. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
  149. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
  150. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
  151. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
  152. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
  153. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
  154. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
  155. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
  156. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
  157. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
  158. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
  159. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
  160. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
  161. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
  162. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
  163. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
  164. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
  165. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
  166. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
  167. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
  168. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
  169. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
  170. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
  171. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
  172. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
  173. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
  174. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  175. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
  176. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
  177. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
  178. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
  179. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
  180. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
  181. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
  182. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
  183. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
  184. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
  185. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
  186. package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
  187. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
  188. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
  189. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
  190. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
  191. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
  192. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
  193. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
  194. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
  195. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
  196. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
  197. package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
  198. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
  199. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  200. package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
  201. package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
  202. package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
  203. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
  204. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  205. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
  206. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
  207. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  208. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  209. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +31 -18
  210. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
  211. package/package.json +1 -1
@@ -1,46 +1,34 @@
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";
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";
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 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";
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";
30
30
  import "../../../functions/parseMarkdown.js";
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({
31
+ const ft = /* @__PURE__ */ de({
44
32
  __name: "ImageMessage",
45
33
  props: {
46
34
  message: {
@@ -62,7 +50,7 @@ const _e = ["messageId"], es = ["src"], ss = {
62
50
  reactionsMode: {
63
51
  type: String,
64
52
  default: "single",
65
- validator: (e) => ["single", "multi"].includes(e)
53
+ validator: (f) => ["single", "multi"].includes(f)
66
54
  },
67
55
  currentUserId: {
68
56
  type: [String, Number],
@@ -84,77 +72,78 @@ const _e = ["messageId"], es = ["src"], ss = {
84
72
  }
85
73
  },
86
74
  emits: ["action", "reply", "sms-invite"],
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,
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,
102
91
  viewsAction: N,
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,
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,
109
98
  () => {
110
- M(), E(() => {
111
- m && g.value && m.observe(g.value);
99
+ a(), h(() => {
100
+ t && o.value && t.observe(o.value);
112
101
  });
113
102
  }
114
103
  );
115
- const M = () => {
116
- E(() => {
117
- c.value && (w.value = c.value.offsetWidth), g.value && (A.value = g.value.offsetWidth);
104
+ const a = () => {
105
+ h(() => {
106
+ n.value && (i.value = n.value.offsetWidth), o.value && (g.value = o.value.offsetWidth);
118
107
  });
119
108
  };
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],
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],
129
118
  () => {
130
- M(), E(() => {
131
- m && (m.disconnect(), c.value && m.observe(c.value), g.value && m.observe(g.value));
119
+ a(), h(() => {
120
+ t && (t.disconnect(), n.value && t.observe(n.value), o.value && t.observe(o.value));
132
121
  });
133
122
  },
134
123
  { immediate: !0 }
135
124
  );
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),
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),
144
133
  { cssVariable: "--chotto-imagemessage-right-bg", position: "right" }
145
134
  );
146
- function L(d) {
147
- return Ye(d.position, "image-message");
135
+ function se(s) {
136
+ return Be(s.position, "image-message");
148
137
  }
149
- const ye = () => I.value = !1, he = async () => {
150
- var d, a;
151
- if (t.message.url)
138
+ const oe = () => M.value = !1, ne = async () => {
139
+ var s, T;
140
+ if (e.message.url)
152
141
  try {
153
- const u = await fetch(t.message.url, {
142
+ const d = await fetch(e.message.url, {
154
143
  headers: {
155
144
  Accept: "image/*"
156
145
  }
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 = {
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 = {
158
147
  "image/jpeg": "jpg",
159
148
  "image/jpg": "jpg",
160
149
  "image/png": "png",
@@ -163,240 +152,30 @@ const _e = ["messageId"], es = ["src"], ss = {
163
152
  "image/svg+xml": "svg",
164
153
  "image/bmp": "bmp"
165
154
  };
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);
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);
171
160
  }
172
- }, { onToggleReaction: we, onAddReaction: Me, onRemoveReaction: pe } = Ze(T), ke = Ge(() => t.message, () => t.subtextTooltipData);
173
- function xe() {
174
- T("sms-invite", t.message);
161
+ }, { onToggleReaction: ie, onAddReaction: ae, onRemoveReaction: re } = He(p), le = ze(() => e.message, () => e.subtextTooltipData);
162
+ function ue() {
163
+ p("sms-invite", e.message);
175
164
  }
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));
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;
398
177
  }
399
178
  });
400
179
  export {
401
- Ds as default
180
+ ft as default
402
181
  };
@@ -1,7 +1,42 @@
1
- import o from "./MessageKeyboard.vue2.js";
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";
2
3
  /* empty css */
3
- import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ r(o, [["__scopeId", "data-v-973cd877"]]);
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"]]);
5
40
  export {
6
- s as default
41
+ K as default
7
42
  };
@@ -1,5 +1,5 @@
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";
1
+ import { defineComponent as u, useTemplateRef as d, inject as f } from "vue";
2
+ import { useMessageDraft as l } 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 v = ["onClick"], w = /* @__PURE__ */ u({
13
+ const C = /* @__PURE__ */ u({
14
14
  __name: "MessageKeyboard",
15
15
  props: {
16
16
  keyboard: {
@@ -24,27 +24,17 @@ const v = ["onClick"], w = /* @__PURE__ */ u({
24
24
  }
25
25
  },
26
26
  emits: ["action"],
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));
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));
30
30
  };
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));
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;
46
36
  }
47
37
  });
48
38
  export {
49
- w as default
39
+ C as default
50
40
  };