@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,75 +1,7 @@
1
- import d from "./ReplyImageMessage.vue2.js";
2
- import { createElementBlock as o, openBlock as l, Fragment as g, createElementVNode as a, createBlock as m, createCommentVNode as n, toDisplayString as c, Teleport as _, createVNode as f, Transition as v, withCtx as r } from "vue";
1
+ import e from "./ReplyImageMessage.vue2.js";
3
2
  /* empty css */
4
- import h from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const u = ["src", "alt"], k = { class: "image-message__text-container" }, x = ["textContent"], y = ["innerHTML"], M = ["src", "alt"];
6
- function p(w, s, t, e, C, T) {
7
- return l(), o(
8
- g,
9
- null,
10
- [
11
- a("div", {
12
- class: "image-message__preview-button",
13
- onClick: s[0] || (s[0] = (i) => e.isOpenModal = !0)
14
- }, [
15
- a("img", {
16
- class: "image-message__preview-image",
17
- src: t.message.url,
18
- alt: t.message.alt
19
- }, null, 8, u)
20
- ]),
21
- a("div", k, [
22
- t.message.header ? (l(), o("p", {
23
- key: 0,
24
- textContent: c(`В ответ ${t.message.header}`)
25
- }, null, 8, x)) : n("v-if", !0),
26
- s[2] || (s[2] = a(
27
- "div",
28
- { class: "image-message__reply-description" },
29
- [
30
- a("span", { class: "pi pi-camera" }),
31
- a("p", null, "Фотография")
32
- ],
33
- -1
34
- /* CACHED */
35
- )),
36
- t.message.text ? (l(), o("p", {
37
- key: 1,
38
- class: "image-message__text",
39
- onClick: s[1] || (s[1] = (...i) => e.inNewWindow && e.inNewWindow(...i)),
40
- innerHTML: e.linkedHtml
41
- }, null, 8, y)) : n("v-if", !0)
42
- ]),
43
- (l(), m(_, { to: "body" }, [
44
- f(v, { name: "modal-fade" }, {
45
- default: r(() => [
46
- e.isOpenModal ? (l(), m(e.ModalFullscreen, {
47
- key: 0,
48
- "data-theme": e.getTheme().theme ? e.getTheme().theme : "light",
49
- title: t.message.alt,
50
- onClose: e.closeModal
51
- }, {
52
- default: r(() => [
53
- a("img", {
54
- class: "image-message__modal-image",
55
- src: t.message.url,
56
- alt: t.message.alt
57
- }, null, 8, M)
58
- ]),
59
- _: 1
60
- /* STABLE */
61
- }, 8, ["data-theme", "title"])) : n("v-if", !0)
62
- ]),
63
- _: 1
64
- /* STABLE */
65
- })
66
- ]))
67
- ],
68
- 64
69
- /* STABLE_FRAGMENT */
70
- );
71
- }
72
- const R = /* @__PURE__ */ h(d, [["render", p], ["__scopeId", "data-v-e6e76153"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue"]]);
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ o(e, [["__scopeId", "data-v-2e84f7a9"]]);
73
5
  export {
74
- R as default
6
+ p as default
75
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as a, inject as c, ref as l } from "vue";
2
- import u from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
1
+ import { defineComponent as k, inject as v, ref as x, createElementBlock as n, openBlock as a, Fragment as y, createElementVNode as t, createBlock as g, createCommentVNode as o, toDisplayString as C, unref as m, Teleport as _, createVNode as M, Transition as T, withCtx as d } from "vue";
2
+ import w from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
3
3
  import "../../../hooks/useMessageDraft.js";
4
4
  import "../../../hooks/useSearchModel.js";
5
- import { useTheme as d } from "../../../hooks/useTheme.js";
5
+ import { useTheme as N } from "../../../hooks/useTheme.js";
6
6
  import "../../../hooks/useEmojiNative.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  import "../../../locale/useLocale.js";
10
10
  /* empty css */
11
- import { useMessageLinks as f } from "../../../hooks/messages/useMessageLinks.js";
11
+ import { useMessageLinks as b } from "../../../hooks/messages/useMessageLinks.js";
12
12
  import "../../../functions/parseMarkdown.js";
13
- const A = /* @__PURE__ */ a({
13
+ const B = ["src", "alt"], H = { class: "image-message__text-container" }, I = ["textContent"], L = ["innerHTML"], V = ["src", "alt"], J = /* @__PURE__ */ k({
14
14
  __name: "ReplyImageMessage",
15
15
  props: {
16
16
  message: {
@@ -18,12 +18,61 @@ const A = /* @__PURE__ */ a({
18
18
  required: !0
19
19
  }
20
20
  },
21
- setup(s, { expose: p }) {
22
- p();
23
- const e = c("chatAppId"), { getTheme: m } = d(e), t = s, o = l(!1), { linkedHtml: i, inNewWindow: n } = f(() => t.message.text), r = { chatAppId: e, getTheme: m, props: t, isOpenModal: o, linkedHtml: i, inNewWindow: n, closeModal: () => o.value = !1, ModalFullscreen: u };
24
- return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
21
+ setup(e) {
22
+ const u = v("chatAppId"), { getTheme: i } = N(u), p = e, l = x(!1), { linkedHtml: f, inNewWindow: r } = b(() => p.message.text), h = () => l.value = !1;
23
+ return (j, s) => (a(), n(y, null, [
24
+ t("div", {
25
+ class: "image-message__preview-button",
26
+ onClick: s[0] || (s[0] = (c) => l.value = !0)
27
+ }, [
28
+ t("img", {
29
+ class: "image-message__preview-image",
30
+ src: e.message.url,
31
+ alt: e.message.alt
32
+ }, null, 8, B)
33
+ ]),
34
+ t("div", H, [
35
+ e.message.header ? (a(), n("p", {
36
+ key: 0,
37
+ textContent: C(`В ответ ${e.message.header}`)
38
+ }, null, 8, I)) : o("", !0),
39
+ s[2] || (s[2] = t("div", { class: "image-message__reply-description" }, [
40
+ t("span", { class: "pi pi-camera" }),
41
+ t("p", null, "Фотография")
42
+ ], -1)),
43
+ e.message.text ? (a(), n("p", {
44
+ key: 1,
45
+ class: "image-message__text",
46
+ onClick: s[1] || (s[1] = //@ts-ignore
47
+ (...c) => m(r) && m(r)(...c)),
48
+ innerHTML: m(f)
49
+ }, null, 8, L)) : o("", !0)
50
+ ]),
51
+ (a(), g(_, { to: "body" }, [
52
+ M(T, { name: "modal-fade" }, {
53
+ default: d(() => [
54
+ l.value ? (a(), g(w, {
55
+ key: 0,
56
+ "data-theme": m(i)().theme ? m(i)().theme : "light",
57
+ title: e.message.alt,
58
+ onClose: h
59
+ }, {
60
+ default: d(() => [
61
+ t("img", {
62
+ class: "image-message__modal-image",
63
+ src: e.message.url,
64
+ alt: e.message.alt
65
+ }, null, 8, V)
66
+ ]),
67
+ _: 1
68
+ }, 8, ["data-theme", "title"])) : o("", !0)
69
+ ]),
70
+ _: 1
71
+ })
72
+ ]))
73
+ ], 64));
25
74
  }
26
75
  });
27
76
  export {
28
- A as default
77
+ J as default
29
78
  };
@@ -1,145 +1,7 @@
1
- import c from "./ReplyStickerMessage.vue2.js";
2
- import { createElementBlock as a, openBlock as t, Fragment as r, createElementVNode as l, createBlock as d, createCommentVNode as o, toDisplayString as _, Teleport as g, createVNode as k, Transition as y, withCtx as m } from "vue";
1
+ import o from "./ReplyStickerMessage.vue2.js";
3
2
  /* empty css */
4
- import v from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const u = ["src"], f = ["src"], h = ["src", "alt"], T = { class: "sticker-message__text-container" }, x = ["textContent"], w = ["innerHTML"], M = ["src"], b = ["src"], F = ["src", "alt"];
6
- function p(C, i, s, e, L, S) {
7
- return t(), a(
8
- r,
9
- null,
10
- [
11
- l("div", {
12
- class: "sticker-message__preview-button",
13
- onClick: i[1] || (i[1] = (n) => e.isOpenModal = !0)
14
- }, [
15
- o(" TGS анимированные стикеры "),
16
- e.isTgsFile && e.tgsLibsLoaded ? (t(), a("tgs-player", {
17
- key: 0,
18
- class: "sticker-message__preview-image-animated",
19
- src: s.message.url,
20
- autoplay: "",
21
- loop: "",
22
- mode: "normal"
23
- }, null, 8, u)) : e.shouldTryVideo && !e.videoFailed ? (t(), a(
24
- r,
25
- { key: 1 },
26
- [
27
- o(" Нестатические стикеры (webm и прочее) "),
28
- l("video", {
29
- class: "sticker-message__preview-image",
30
- src: s.message.url,
31
- autoplay: "",
32
- loop: "",
33
- muted: "",
34
- playsinline: "",
35
- preload: "metadata",
36
- onError: i[0] || (i[0] = (n) => e.videoFailed = !0)
37
- }, null, 40, f)
38
- ],
39
- 2112
40
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
41
- )) : (t(), a(
42
- r,
43
- { key: 2 },
44
- [
45
- o(" WebP и другие статические стикеры "),
46
- l("img", {
47
- class: "sticker-message__preview-image",
48
- src: s.message.url,
49
- alt: s.message.alt
50
- }, null, 8, h)
51
- ],
52
- 2112
53
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
54
- ))
55
- ]),
56
- l("div", T, [
57
- s.message.header ? (t(), a("p", {
58
- key: 0,
59
- textContent: _(`В ответ ${s.message.header}`)
60
- }, null, 8, x)) : o("v-if", !0),
61
- i[3] || (i[3] = l(
62
- "div",
63
- { class: "sticker-message__reply-description" },
64
- [
65
- l("span", { class: "pi pi-image" }),
66
- l("p", null, "Стикер")
67
- ],
68
- -1
69
- /* CACHED */
70
- )),
71
- s.message.text ? (t(), a("p", {
72
- key: 1,
73
- class: "sticker-message__text",
74
- onClick: e.inNewWindow,
75
- innerHTML: e.linkedText
76
- }, null, 8, w)) : o("v-if", !0)
77
- ]),
78
- (t(), d(g, { to: "body" }, [
79
- k(y, { name: "modal-fade" }, {
80
- default: m(() => [
81
- e.isOpenModal ? (t(), d(e.ModalFullscreen, {
82
- key: 0,
83
- "data-theme": e.getTheme().theme ? e.getTheme().theme : "light",
84
- title: s.message.alt,
85
- onClose: e.closeModal
86
- }, {
87
- default: m(() => [
88
- o(" TGS анимированные стикеры "),
89
- e.isTgsFile && e.tgsLibsLoaded ? (t(), a("tgs-player", {
90
- key: 0,
91
- class: "sticker-message__modal-image-animated",
92
- src: s.message.url,
93
- autoplay: "",
94
- loop: "",
95
- mode: "normal"
96
- }, null, 8, M)) : e.shouldTryVideo && !e.videoFailed ? (t(), a(
97
- r,
98
- { key: 1 },
99
- [
100
- o(" Нестатические стикеры (webm и прочее) "),
101
- l("video", {
102
- class: "sticker-message__modal-image",
103
- src: s.message.url,
104
- autoplay: "",
105
- loop: "",
106
- muted: "",
107
- playsinline: "",
108
- preload: "metadata",
109
- onError: i[2] || (i[2] = (n) => e.videoFailed = !0)
110
- }, null, 40, b)
111
- ],
112
- 2112
113
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
114
- )) : (t(), a(
115
- r,
116
- { key: 2 },
117
- [
118
- o(" WebP и другие статические стикеры "),
119
- l("img", {
120
- class: "sticker-message__modal-image",
121
- src: s.message.url,
122
- alt: s.message.alt
123
- }, null, 8, F)
124
- ],
125
- 2112
126
- /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
127
- ))
128
- ]),
129
- _: 1
130
- /* STABLE */
131
- }, 8, ["data-theme", "title"])) : o("v-if", !0)
132
- ]),
133
- _: 1
134
- /* STABLE */
135
- })
136
- ]))
137
- ],
138
- 64
139
- /* STABLE_FRAGMENT */
140
- );
141
- }
142
- const R = /* @__PURE__ */ v(c, [["render", p], ["__scopeId", "data-v-5c90f3cd"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue"]]);
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-b09bf4cc"]]);
143
5
  export {
144
- R as default
6
+ p as default
145
7
  };
@@ -1,20 +1,20 @@
1
- import { defineComponent as w, inject as k, ref as r, watch as u, computed as d, onMounted as L } from "vue";
2
- import y from "../../../node_modules/linkify-string/dist/linkify-string.js";
3
- import S from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
1
+ import { defineComponent as E, inject as N, ref as n, watch as p, computed as x, onMounted as S, createElementBlock as l, openBlock as s, Fragment as j, createElementVNode as u, createBlock as L, createCommentVNode as v, toDisplayString as F, Teleport as I, createVNode as $, Transition as A, withCtx as T, unref as b } from "vue";
2
+ import V from "../../../node_modules/linkify-string/dist/linkify-string.js";
3
+ import B from "../../2_modals/ModalFullscreen/ModalFullscreen.vue.js";
4
4
  import "../../../hooks/useMessageDraft.js";
5
5
  import "../../../hooks/useSearchModel.js";
6
- import { useTheme as T } from "../../../hooks/useTheme.js";
7
- import { useEmojiNative as j } from "../../../hooks/useEmojiNative.js";
6
+ import { useTheme as H } from "../../../hooks/useTheme.js";
7
+ import { useEmojiNative as D } from "../../../hooks/useEmojiNative.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  import "../../../locale/useLocale.js";
11
11
  /* empty css */
12
12
  import "../../../node_modules/linkifyjs/dist/linkify.js";
13
13
  import "../../../functions/parseMarkdown.js";
14
- import { replaceEmojisInHtml as x } from "../../../functions/renderAppleEmojis.js";
15
- import { isAnimatedSticker as M } from "../StickerMessage/utils/stickerUtils.js";
14
+ import { replaceEmojisInHtml as O } from "../../../functions/renderAppleEmojis.js";
15
+ import { isAnimatedSticker as q } from "../StickerMessage/utils/stickerUtils.js";
16
16
  import "../StickerMessage/utils/suppress-lit-warning.js";
17
- const J = /* @__PURE__ */ w({
17
+ const G = ["src"], R = ["src"], W = ["src", "alt"], z = { class: "sticker-message__text-container" }, J = ["textContent"], K = ["innerHTML"], P = ["src"], Q = ["src"], U = ["src", "alt"], ge = /* @__PURE__ */ E({
18
18
  __name: "ReplyStickerMessage",
19
19
  props: {
20
20
  message: {
@@ -22,56 +22,140 @@ const J = /* @__PURE__ */ w({
22
22
  required: !0
23
23
  }
24
24
  },
25
- setup(g, { expose: v }) {
26
- v();
27
- const a = k("chatAppId"), { isNative: l } = j(a), { getTheme: _ } = T(a), o = r(!1), s = r(!1);
28
- async function m() {
29
- if (!(o.value || s.value)) {
30
- s.value = !0;
25
+ setup(t) {
26
+ const f = N("chatAppId"), { isNative: k } = D(f), { getTheme: y } = H(f), o = n(!1), c = n(!1);
27
+ async function h() {
28
+ if (!(o.value || c.value)) {
29
+ c.value = !0;
31
30
  try {
32
31
  await import("../StickerMessage/libs/tgs-player/lottie-player.esm.js"), await import("../StickerMessage/libs/tgs-player/tgs-player.esm.js"), o.value = !0;
33
32
  } catch (e) {
34
33
  console.error("Failed to load TGS libraries:", e);
35
34
  } finally {
36
- s.value = !1;
35
+ c.value = !1;
37
36
  }
38
37
  }
39
38
  }
40
- const t = g, p = r(!1), n = r("");
41
- u(
42
- [() => t.message.text, l],
39
+ const i = t, d = n(!1), g = n("");
40
+ p(
41
+ [() => i.message.text, k],
43
42
  () => {
44
- if (t.message.text) {
45
- let e = y(t.message.text);
46
- l.value || (e = x(e)), n.value = e;
43
+ if (i.message.text) {
44
+ let e = V(i.message.text);
45
+ k.value || (e = O(e)), g.value = e;
47
46
  } else
48
- n.value = "";
47
+ g.value = "";
49
48
  },
50
49
  { immediate: !0 }
51
50
  );
52
- const i = d(() => M(t.message.url, t.message.isAnimated)), c = r(!1), b = d(() => {
53
- if (i.value) return !1;
54
- const e = String(t.message.url || "").toLowerCase();
51
+ const r = x(() => q(i.message.url, i.message.isAnimated)), m = n(!1), w = x(() => {
52
+ if (r.value) return !1;
53
+ const e = String(i.message.url || "").toLowerCase();
55
54
  return !/\.(webp|png|jpe?g|gif|bmp|svg)(\?|#|$)/.test(e);
56
55
  });
57
- u(
58
- () => t.message.url,
56
+ p(
57
+ () => i.message.url,
59
58
  () => {
60
- c.value = !1;
59
+ m.value = !1;
61
60
  },
62
61
  { immediate: !0 }
63
- ), u(i, (e) => {
64
- e && !o.value && m();
65
- }, { immediate: !0 }), L(() => {
66
- i.value && !o.value && m();
62
+ ), p(r, (e) => {
63
+ e && !o.value && h();
64
+ }, { immediate: !0 }), S(() => {
65
+ r.value && !o.value && h();
67
66
  });
68
- function h(e) {
67
+ function C(e) {
69
68
  e.preventDefault(), e.target.href && window.open(e.target.href, "_blank");
70
69
  }
71
- const f = { chatAppId: a, isNative: l, getTheme: _, tgsLibsLoaded: o, tgsLibsLoading: s, loadTgsLibs: m, props: t, isOpenModal: p, linkedText: n, isTgsFile: i, videoFailed: c, shouldTryVideo: b, inNewWindow: h, closeModal: () => p.value = !1, ModalFullscreen: S };
72
- return Object.defineProperty(f, "__isScriptSetup", { enumerable: !1, value: !0 }), f;
70
+ const M = () => d.value = !1;
71
+ return (e, a) => (s(), l(j, null, [
72
+ u("div", {
73
+ class: "sticker-message__preview-button",
74
+ onClick: a[1] || (a[1] = (_) => d.value = !0)
75
+ }, [
76
+ r.value && o.value ? (s(), l("tgs-player", {
77
+ key: 0,
78
+ class: "sticker-message__preview-image-animated",
79
+ src: t.message.url,
80
+ autoplay: "",
81
+ loop: "",
82
+ mode: "normal"
83
+ }, null, 8, G)) : w.value && !m.value ? (s(), l("video", {
84
+ key: 1,
85
+ class: "sticker-message__preview-image",
86
+ src: t.message.url,
87
+ autoplay: "",
88
+ loop: "",
89
+ muted: "",
90
+ playsinline: "",
91
+ preload: "metadata",
92
+ onError: a[0] || (a[0] = (_) => m.value = !0)
93
+ }, null, 40, R)) : (s(), l("img", {
94
+ key: 2,
95
+ class: "sticker-message__preview-image",
96
+ src: t.message.url,
97
+ alt: t.message.alt
98
+ }, null, 8, W))
99
+ ]),
100
+ u("div", z, [
101
+ t.message.header ? (s(), l("p", {
102
+ key: 0,
103
+ textContent: F(`В ответ ${t.message.header}`)
104
+ }, null, 8, J)) : v("", !0),
105
+ a[3] || (a[3] = u("div", { class: "sticker-message__reply-description" }, [
106
+ u("span", { class: "pi pi-image" }),
107
+ u("p", null, "Стикер")
108
+ ], -1)),
109
+ t.message.text ? (s(), l("p", {
110
+ key: 1,
111
+ class: "sticker-message__text",
112
+ onClick: C,
113
+ innerHTML: g.value
114
+ }, null, 8, K)) : v("", !0)
115
+ ]),
116
+ (s(), L(I, { to: "body" }, [
117
+ $(A, { name: "modal-fade" }, {
118
+ default: T(() => [
119
+ d.value ? (s(), L(B, {
120
+ key: 0,
121
+ "data-theme": b(y)().theme ? b(y)().theme : "light",
122
+ title: t.message.alt,
123
+ onClose: M
124
+ }, {
125
+ default: T(() => [
126
+ r.value && o.value ? (s(), l("tgs-player", {
127
+ key: 0,
128
+ class: "sticker-message__modal-image-animated",
129
+ src: t.message.url,
130
+ autoplay: "",
131
+ loop: "",
132
+ mode: "normal"
133
+ }, null, 8, P)) : w.value && !m.value ? (s(), l("video", {
134
+ key: 1,
135
+ class: "sticker-message__modal-image",
136
+ src: t.message.url,
137
+ autoplay: "",
138
+ loop: "",
139
+ muted: "",
140
+ playsinline: "",
141
+ preload: "metadata",
142
+ onError: a[2] || (a[2] = (_) => m.value = !0)
143
+ }, null, 40, Q)) : (s(), l("img", {
144
+ key: 2,
145
+ class: "sticker-message__modal-image",
146
+ src: t.message.url,
147
+ alt: t.message.alt
148
+ }, null, 8, U))
149
+ ]),
150
+ _: 1
151
+ }, 8, ["data-theme", "title"])) : v("", !0)
152
+ ]),
153
+ _: 1
154
+ })
155
+ ]))
156
+ ], 64));
73
157
  }
74
158
  });
75
159
  export {
76
- J as default
160
+ ge as default
77
161
  };
@@ -1,52 +1,7 @@
1
- import l from "./ReplyTextMessage.vue2.js";
2
- import { createElementBlock as n, openBlock as t, createBlock as c, withCtx as r, createElementVNode as s, createCommentVNode as a, toDisplayString as i } from "vue";
1
+ import e from "./ReplyTextMessage.vue2.js";
3
2
  /* empty css */
4
- import d from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const _ = { class: "reply-text-message__wrapper" }, m = ["textContent"], x = ["innerHTML"], p = ["textContent"], f = ["innerHTML"];
6
- function h(k, y, o, e, C, T) {
7
- return t(), n("div", _, [
8
- e.tooltipText ? (t(), c(e.Tooltip, {
9
- key: 0,
10
- position: "top",
11
- offset: 8,
12
- delay: 1e3,
13
- "max-width": "25rem",
14
- text: e.tooltipText
15
- }, {
16
- default: r(() => [
17
- s("div", {
18
- class: "container",
19
- onClick: e.onQuoteClick
20
- }, [
21
- o.message.header ? (t(), n("p", {
22
- key: 0,
23
- textContent: i(`В ответ ${o.message.header}`)
24
- }, null, 8, m)) : a("v-if", !0),
25
- s("p", {
26
- class: "text",
27
- innerHTML: e.linkedHtml
28
- }, null, 8, x)
29
- ])
30
- ]),
31
- _: 1
32
- /* STABLE */
33
- }, 8, ["text"])) : (t(), n("div", {
34
- key: 1,
35
- class: "container",
36
- onClick: e.onQuoteClick
37
- }, [
38
- o.message.header ? (t(), n("p", {
39
- key: 0,
40
- textContent: i(`В ответ ${o.message.header}`)
41
- }, null, 8, p)) : a("v-if", !0),
42
- s("p", {
43
- class: "text",
44
- innerHTML: e.linkedHtml
45
- }, null, 8, f)
46
- ]))
47
- ]);
48
- }
49
- const H = /* @__PURE__ */ d(l, [["render", h], ["__scopeId", "data-v-a5264722"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue"]]);
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const r = /* @__PURE__ */ o(e, [["__scopeId", "data-v-31ae85ec"]]);
50
5
  export {
51
- H as default
6
+ r as default
52
7
  };
@@ -1,16 +1,16 @@
1
- import { defineComponent as a, computed as c } from "vue";
2
- import l from "../../1_atoms/Tooltip/Tooltip.vue.js";
1
+ import { defineComponent as x, computed as f, createElementBlock as r, openBlock as o, createBlock as h, withCtx as g, createElementVNode as s, createCommentVNode as p, toDisplayString as d, unref as u } from "vue";
2
+ import k from "../../1_atoms/Tooltip/Tooltip.vue.js";
3
3
  import "../../../locale/useLocale.js";
4
4
  /* empty css */
5
5
  import "../../../hooks/useTheme.js";
6
- import { useMessageLinks as u } from "../../../hooks/messages/useMessageLinks.js";
6
+ import { useMessageLinks as _ } from "../../../hooks/messages/useMessageLinks.js";
7
7
  import "../../../functions/parseMarkdown.js";
8
8
  import "../../../hooks/useMessageDraft.js";
9
9
  import "../../../hooks/useSearchModel.js";
10
10
  import "../../../hooks/useEmojiNative.js";
11
11
  /* empty css */
12
12
  /* empty css */
13
- const w = /* @__PURE__ */ a({
13
+ const C = { class: "reply-text-message__wrapper" }, y = ["textContent"], T = ["innerHTML"], M = ["textContent"], H = ["innerHTML"], A = /* @__PURE__ */ x({
14
14
  __name: "ReplyTextMessage",
15
15
  props: {
16
16
  message: {
@@ -18,19 +18,57 @@ const w = /* @__PURE__ */ a({
18
18
  required: !0
19
19
  }
20
20
  },
21
- setup(n, { expose: s }) {
22
- s();
23
- const t = n, { linkedHtml: i } = u(() => t.message.text), m = c(() => {
21
+ setup(t) {
22
+ const i = t, { linkedHtml: a } = _(() => i.message.text), c = f(() => {
24
23
  var e;
25
- return ((e = t.message.text) == null ? void 0 : e.trim()) || "";
26
- }), r = { props: t, linkedHtml: i, tooltipText: m, onQuoteClick: (e) => {
27
- var p;
28
- const o = (p = e.target) == null ? void 0 : p.closest("a");
29
- o instanceof HTMLAnchorElement && o.href && (e.preventDefault(), e.stopPropagation(), window.open(o.href, "_blank", "noopener,noreferrer"));
30
- }, Tooltip: l };
31
- return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
24
+ return ((e = i.message.text) == null ? void 0 : e.trim()) || "";
25
+ }), l = (e) => {
26
+ var m;
27
+ const n = (m = e.target) == null ? void 0 : m.closest("a");
28
+ n instanceof HTMLAnchorElement && n.href && (e.preventDefault(), e.stopPropagation(), window.open(n.href, "_blank", "noopener,noreferrer"));
29
+ };
30
+ return (e, n) => (o(), r("div", C, [
31
+ c.value ? (o(), h(k, {
32
+ key: 0,
33
+ position: "top",
34
+ offset: 8,
35
+ delay: 1e3,
36
+ "max-width": "25rem",
37
+ text: c.value
38
+ }, {
39
+ default: g(() => [
40
+ s("div", {
41
+ class: "container",
42
+ onClick: l
43
+ }, [
44
+ t.message.header ? (o(), r("p", {
45
+ key: 0,
46
+ textContent: d(`В ответ ${t.message.header}`)
47
+ }, null, 8, y)) : p("", !0),
48
+ s("p", {
49
+ class: "text",
50
+ innerHTML: u(a)
51
+ }, null, 8, T)
52
+ ])
53
+ ]),
54
+ _: 1
55
+ }, 8, ["text"])) : (o(), r("div", {
56
+ key: 1,
57
+ class: "container",
58
+ onClick: l
59
+ }, [
60
+ t.message.header ? (o(), r("p", {
61
+ key: 0,
62
+ textContent: d(`В ответ ${t.message.header}`)
63
+ }, null, 8, M)) : p("", !0),
64
+ s("p", {
65
+ class: "text",
66
+ innerHTML: u(a)
67
+ }, null, 8, H)
68
+ ]))
69
+ ]));
32
70
  }
33
71
  });
34
72
  export {
35
- w as default
73
+ A as default
36
74
  };