@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,185 +1,362 @@
1
- import { defineComponent as wt, inject as Ct, useId as Tt, ref as v, computed as r, watch as St, onMounted as Et, nextTick as B, onUnmounted as kt } from "vue";
2
- import { getStatus as At, statuses as _t } from "../../../functions/getStatusMessage.js";
1
+ import { defineComponent as Bt, inject as Vt, useId as Ht, ref as M, computed as u, watch as Nt, onMounted as Ut, nextTick as U, onUnmounted as Dt, createElementBlock as a, openBlock as o, createElementVNode as m, createCommentVNode as r, withModifiers as Ft, normalizeClass as D, normalizeStyle as tt, createVNode as F, withCtx as P, toDisplayString as f, createBlock as d, resolveDynamicComponent as et, unref as h, Teleport as Pt, Fragment as Rt, renderList as Wt } from "vue";
2
+ import { getStatus as Xt, statuses as Yt } from "../../../functions/getStatusMessage.js";
3
3
  import "../../../functions/parseMarkdown.js";
4
4
  import { t as S } from "../../../locale/useLocale.js";
5
- import { getChatDraft as Lt } from "../../../hooks/useMessageDraft.js";
5
+ import { getChatDraft as $t } from "../../../hooks/useMessageDraft.js";
6
6
  import "../../../hooks/useSearchModel.js";
7
- import { useTheme as Mt } from "../../../hooks/useTheme.js";
8
- import { useEmojiNative as Vt } from "../../../hooks/useEmojiNative.js";
7
+ import { useTheme as jt } from "../../../hooks/useTheme.js";
8
+ import { useEmojiNative as zt } from "../../../hooks/useEmojiNative.js";
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import "../../../node_modules/linkifyjs/dist/linkify.js";
13
13
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
14
- import { textToAppleEmojiHtml as N, textContainsEmoji as F } from "../../../functions/renderAppleEmojis.js";
15
- import bt from "../../1_atoms/Tooltip/Tooltip.vue.js";
16
- import Bt from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
17
- import Nt from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
18
- import Pt from "../../1_icons/AvatarIcon.vue.js";
19
- import Ht from "../../1_icons/MessageStatus/ErrorStatusIcon.vue.js";
20
- import Rt from "../../1_icons/MessageStatus/PendingStatusIcon.vue.js";
21
- import Ut from "../../1_icons/MessageStatus/ReadStatusIcon.vue.js";
22
- import jt from "../../1_icons/MessageStatus/ReceivedStatusIcon.vue.js";
23
- import Dt from "../../1_icons/MessageStatus/SentStatusIcon.vue.js";
24
- import X from "./icons/AudioIcon.vue.js";
25
- import P from "./icons/FileIcon.vue.js";
26
- import Y from "./icons/ImageIcon.vue.js";
27
- import Wt from "./icons/MissedCallIcon.vue.js";
28
- import H from "./icons/StickerIcon.vue.js";
29
- import q from "./icons/VideoIcon.vue.js";
30
- import O from "./icons/VoiceIcon.vue.js";
31
- const ye = /* @__PURE__ */ wt({
14
+ import { textToAppleEmojiHtml as R, textContainsEmoji as nt } from "../../../functions/renderAppleEmojis.js";
15
+ import it from "../../1_atoms/Tooltip/Tooltip.vue.js";
16
+ import Ot from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
17
+ import qt from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
18
+ import Gt from "../../1_icons/AvatarIcon.vue.js";
19
+ import Jt from "../../1_icons/MessageStatus/ErrorStatusIcon.vue.js";
20
+ import Kt from "../../1_icons/MessageStatus/PendingStatusIcon.vue.js";
21
+ import Qt from "../../1_icons/MessageStatus/ReadStatusIcon.vue.js";
22
+ import Zt from "../../1_icons/MessageStatus/ReceivedStatusIcon.vue.js";
23
+ import te from "../../1_icons/MessageStatus/SentStatusIcon.vue.js";
24
+ import ot from "./icons/AudioIcon.vue.js";
25
+ import W from "./icons/FileIcon.vue.js";
26
+ import ct from "./icons/ImageIcon.vue.js";
27
+ import ee from "./icons/MissedCallIcon.vue.js";
28
+ import X from "./icons/StickerIcon.vue.js";
29
+ import at from "./icons/VideoIcon.vue.js";
30
+ import st from "./icons/VoiceIcon.vue.js";
31
+ const ne = { class: "chat-item__avatar-container" }, ie = ["src"], oe = {
32
+ key: 1,
33
+ class: "chat-item__avatar-placeholder"
34
+ }, ce = { class: "chat-item__info-container" }, ae = ["innerHTML"], se = {
35
+ key: 1,
36
+ class: "chat-item__name"
37
+ }, re = {
38
+ key: 0,
39
+ class: "chat-item__last-message"
40
+ }, le = {
41
+ key: 1,
42
+ class: "chat-item__last-message-text chat-item__last-message-text--draft"
43
+ }, ue = { class: "chat-item__draft-label" }, me = ["innerHTML"], de = {
44
+ key: 2,
45
+ class: "chat-item__draft-text"
46
+ }, he = ["innerHTML"], fe = {
47
+ key: 3,
48
+ class: "chat-item__last-message-text"
49
+ }, ve = { class: "chat-item__details-container" }, ge = {
50
+ key: 0,
51
+ class: "chat-item__time"
52
+ }, ye = { class: "chat-item__status-unread-container" }, pe = {
53
+ key: 1,
54
+ class: "chat-item__unread"
55
+ }, _e = {
56
+ key: 2,
57
+ class: "chat-item__status-chat-container"
58
+ }, ke = {
59
+ key: 0,
60
+ class: "chat-item__fixed pi pi-thumbtack"
61
+ }, xe = {
62
+ key: 0,
63
+ id: "noSelectButton",
64
+ class: "chat-item__menu-button"
65
+ }, we = {
66
+ key: 1,
67
+ id: "noSelectButton",
68
+ class: "chat-item__menu-button"
69
+ }, Ce = {
70
+ key: 0,
71
+ class: "dialog__container"
72
+ }, Ie = ["onClick"], Te = ["src"], Me = {
73
+ key: 1,
74
+ class: "dialog__icon pi pi-user"
75
+ }, Ee = { class: "dialog__text-container" }, Le = { class: "dialog__name" }, Se = { class: "dialog__time" }, sn = /* @__PURE__ */ Bt({
32
76
  __name: "ChatItem",
33
77
  props: {
34
- chat: { type: Object, required: !0 },
35
- showDialogs: { type: Boolean, required: !1, default: !0 },
36
- contextMenuTrigger: { type: String, required: !1, default: "hover" }
78
+ chat: {},
79
+ showDialogs: { type: Boolean, default: !0 },
80
+ contextMenuTrigger: { default: "hover" }
37
81
  },
38
82
  emits: ["select", "action", "expand"],
39
- setup($, { expose: z, emit: G }) {
40
- z();
41
- const y = Ct("chatAppId"), { getTheme: J } = Mt(y), { isNative: E } = Vt(y), e = $, x = G, a = Tt(), I = v(!1), m = v(!1), w = v(!1), K = v(null), Q = () => {
42
- w.value = !0;
43
- }, Z = (t) => {
44
- w.value || t.target instanceof HTMLElement && t.target.id != "noSelectButton" && x("select", { chat: e.chat, dialog: null }), w.value = !1;
45
- }, tt = (t) => {
46
- x("select", { chat: e.chat, dialog: t });
47
- }, et = () => e.chat.isSelected ? "chat-item__selected" : "", nt = (t) => t.isSelected ? "dialog__selected" : "", it = (t) => {
48
- e.contextMenuTrigger === "rightClick" && C(), x("action", { chat: e.chat, ...t });
49
- }, C = () => {
50
- const t = document.getElementById("context-menu-rightclick-" + a);
51
- t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none"), m.value = !1;
52
- }, R = () => {
53
- document.querySelectorAll('[id^="context-menu-rightclick-"]').forEach((n) => {
54
- const i = n;
55
- i.id !== "context-menu-rightclick-" + a && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
83
+ setup(c, { emit: rt }) {
84
+ const b = Vt("chatAppId"), { getTheme: Y } = jt(b), { isNative: $ } = zt(b), n = c, E = rt, y = Ht(), p = M(!1), k = M(!1), A = M(!1), lt = M(null), ut = () => {
85
+ A.value = !0;
86
+ }, mt = (t) => {
87
+ A.value || t.target instanceof HTMLElement && t.target.id != "noSelectButton" && E("select", { chat: n.chat, dialog: null }), A.value = !1;
88
+ }, dt = (t) => {
89
+ E("select", { chat: n.chat, dialog: t });
90
+ }, ht = () => n.chat.isSelected ? "chat-item__selected" : "", ft = (t) => t.isSelected ? "dialog__selected" : "", j = (t) => {
91
+ n.contextMenuTrigger === "rightClick" && B(), E("action", { chat: n.chat, ...t });
92
+ }, B = () => {
93
+ const t = document.getElementById("context-menu-rightclick-" + y);
94
+ t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none"), k.value = !1;
95
+ }, vt = () => {
96
+ document.querySelectorAll('[id^="context-menu-rightclick-"]').forEach((e) => {
97
+ const i = e;
98
+ i.id !== "context-menu-rightclick-" + y && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
56
99
  });
57
- }, ot = () => e.chat.dialogs ? [...e.chat.dialogs].sort((t, n) => Number(t["lastActivity.timestamp"]) > Number(n["lastActivity.timestamp"]) ? -1 : Number(t["lastActivity.timestamp"]) < Number(n["lastActivity.timestamp"]) ? 1 : (Number(t["lastActivity.timestamp"]) == Number(n["lastActivity.timestamp"]), 0)) : [], rt = r(() => At(e.chat["lastMessage.status"])), ct = r(() => e.chat.showEmptyIndicator || e.chat.countUnread > 0), ut = r(() => e.chat.countUnread > 0 ? e.chat.countUnread > 99 ? "99+" : e.chat.countUnread : e.chat.showEmptyIndicator ? "" : void 0);
58
- let l;
59
- const s = v(0), k = [S("component.ChatItem.typing") + ".", S("component.ChatItem.typing") + "..", S("component.ChatItem.typing") + "..."], A = (t) => {
60
- var c, o, u;
100
+ }, gt = () => n.chat.dialogs ? [...n.chat.dialogs].sort((t, e) => Number(t["lastActivity.timestamp"]) > Number(e["lastActivity.timestamp"]) ? -1 : Number(t["lastActivity.timestamp"]) < Number(e["lastActivity.timestamp"]) ? 1 : (Number(t["lastActivity.timestamp"]) == Number(e["lastActivity.timestamp"]), 0)) : [], yt = u(() => Xt(n.chat["lastMessage.status"])), pt = u(() => n.chat.showEmptyIndicator || n.chat.countUnread > 0), _t = u(() => n.chat.countUnread > 0 ? n.chat.countUnread > 99 ? "99+" : n.chat.countUnread : n.chat.showEmptyIndicator ? "" : void 0);
101
+ let L;
102
+ const _ = M(0), z = [S("component.ChatItem.typing") + ".", S("component.ChatItem.typing") + "..", S("component.ChatItem.typing") + "..."], O = (t) => {
103
+ var l, s, v;
61
104
  if (typeof t == "string")
62
105
  return t;
63
106
  if ((t == null ? void 0 : t.type) === "message.sticker")
64
107
  return "Стикер";
65
108
  if ((t == null ? void 0 : t.type) === "message.audio")
66
- return (t.isVoiceMessage || ((c = t == null ? void 0 : t.data) == null ? void 0 : c.isVoiceMessage)) === !0 ? "Голосовое сообщение" : "Аудиофайл";
109
+ return (t.isVoiceMessage || ((l = t == null ? void 0 : t.data) == null ? void 0 : l.isVoiceMessage)) === !0 ? "Голосовое сообщение" : "Аудиофайл";
67
110
  if ((t == null ? void 0 : t.type) === "message.missedCall")
68
111
  return "Пропущенный звонок";
69
- const n = (o = t == null ? void 0 : t.data) == null ? void 0 : o.text;
70
- if (n)
71
- return n;
72
- const i = (u = t == null ? void 0 : t.data) == null ? void 0 : u.filename;
112
+ const e = (s = t == null ? void 0 : t.data) == null ? void 0 : s.text;
113
+ if (e)
114
+ return e;
115
+ const i = (v = t == null ? void 0 : t.data) == null ? void 0 : v.filename;
73
116
  return i || "";
74
- }, U = (t) => typeof t == "string" ? null : (t == null ? void 0 : t.type) || null, _ = S("component.ChatItem.draft"), T = r(() => {
75
- const t = Lt(String(y ?? ""), e.chat.chatId);
117
+ }, kt = (t) => typeof t == "string" ? null : (t == null ? void 0 : t.type) || null, V = S("component.ChatItem.draft"), H = u(() => {
118
+ const t = $t(String(b ?? ""), n.chat.chatId);
76
119
  if (!(!t || t.edit) && !(!t.listPreviewText && !t.listPreviewFile) && !(!(t.text || "").trim() && !t.file))
77
120
  return t;
78
- }), L = r(() => !!T.value), f = r(() => {
79
- var n;
80
- const t = T.value;
81
- return t ? t.file ? (((n = t.listPreviewFile) == null ? void 0 : n.name) || t.file.name || "").trim() : (t.listPreviewText || "").trim() : "";
82
- }), st = r(() => {
83
- const t = T.value;
121
+ }), x = u(() => !!H.value), g = u(() => {
122
+ var e;
123
+ const t = H.value;
124
+ return t ? t.file ? (((e = t.listPreviewFile) == null ? void 0 : e.name) || t.file.name || "").trim() : (t.listPreviewText || "").trim() : "";
125
+ }), q = u(() => {
126
+ const t = H.value;
84
127
  if (!(t != null && t.file)) return null;
85
- const n = t.listPreviewFile, i = ((n == null ? void 0 : n.type) || t.file.type || "").toLowerCase(), c = ((n == null ? void 0 : n.name) || t.file.name || "").toLowerCase();
86
- return i === "sticker" || c.endsWith(".tgs") || c.endsWith(".webp") ? H : i === "image" || i.includes("image") ? Y : i === "video" || i.includes("video") ? q : i === "audio" || i.includes("audio") ? c.includes("voice") || c.includes("голос") ? O : X : i === "file" || c ? P : P;
87
- }), at = r(() => N(f.value || "")), lt = r(() => {
88
- var n, i, c;
89
- if (e.chat.typing || L.value)
128
+ const e = t.listPreviewFile, i = ((e == null ? void 0 : e.type) || t.file.type || "").toLowerCase(), l = ((e == null ? void 0 : e.name) || t.file.name || "").toLowerCase();
129
+ return i === "sticker" || l.endsWith(".tgs") || l.endsWith(".webp") ? X : i === "image" || i.includes("image") ? ct : i === "video" || i.includes("video") ? at : i === "audio" || i.includes("audio") ? l.includes("voice") || l.includes("голос") ? st : ot : i === "file" || l ? W : W;
130
+ }), xt = u(() => R(g.value || "")), G = u(() => {
131
+ var e, i, l;
132
+ if (n.chat.typing || x.value)
90
133
  return null;
91
- const t = U(e.chat.lastMessage);
134
+ const t = kt(n.chat.lastMessage);
92
135
  if (!t)
93
136
  return null;
94
137
  if (t === "message.sticker")
95
- return H;
138
+ return X;
96
139
  if (t === "message.image")
97
- return Y;
140
+ return ct;
98
141
  if (t === "message.video")
99
- return q;
142
+ return at;
100
143
  if (t === "message.audio") {
101
- const o = e.chat.lastMessage;
102
- return (o.isVoiceMessage || ((n = o == null ? void 0 : o.data) == null ? void 0 : n.isVoiceMessage)) === !0 ? O : X;
144
+ const s = n.chat.lastMessage;
145
+ return (s.isVoiceMessage || ((e = s == null ? void 0 : s.data) == null ? void 0 : e.isVoiceMessage)) === !0 ? st : ot;
103
146
  }
104
147
  if (t === "message.missedCall")
105
- return Wt;
148
+ return ee;
106
149
  if (t === "message.file") {
107
- const o = e.chat.lastMessage, u = ((c = (i = o == null ? void 0 : o.data) == null ? void 0 : i.filename) == null ? void 0 : c.toLowerCase()) || "";
108
- return u.endsWith(".tgs") || u.endsWith(".webp") ? H : P;
150
+ const s = n.chat.lastMessage, v = ((l = (i = s == null ? void 0 : s.data) == null ? void 0 : i.filename) == null ? void 0 : l.toLowerCase()) || "";
151
+ return v.endsWith(".tgs") || v.endsWith(".webp") ? X : W;
109
152
  }
110
153
  return null;
111
- }), mt = r(() => e.chat.typing ? k[s.value] : L.value ? f.value ? `${_} ${f.value}` : _ : A(e.chat.lastMessage)), M = r(() => e.chat.typing ? k[s.value] : A(e.chat.lastMessage)), ft = r(
112
- () => !E.value && F(f.value || M.value || "")
113
- ), dt = r(
114
- () => !E.value && F(e.chat.name || "")
115
- ), pt = r(() => N(M.value || "")), ht = r(() => N(e.chat.name || ""));
116
- St(
117
- () => e.chat.typing,
154
+ }), wt = u(() => n.chat.typing ? z[_.value] : x.value ? g.value ? `${V} ${g.value}` : V : O(n.chat.lastMessage)), N = u(() => n.chat.typing ? z[_.value] : O(n.chat.lastMessage)), J = u(
155
+ () => !$.value && nt(g.value || N.value || "")
156
+ ), Ct = u(
157
+ () => !$.value && nt(n.chat.name || "")
158
+ ), It = u(() => R(N.value || "")), Tt = u(() => R(n.chat.name || ""));
159
+ Nt(
160
+ () => n.chat.typing,
118
161
  () => {
119
- e.chat.typing ? l = setInterval(() => {
120
- s.value < 2 ? s.value += 1 : s.value = 0;
121
- }, 1e3) : (s.value = 0, l && (clearInterval(l), l = void 0));
162
+ n.chat.typing ? L = setInterval(() => {
163
+ _.value < 2 ? _.value += 1 : _.value = 0;
164
+ }, 1e3) : (_.value = 0, L && (clearInterval(L), L = void 0));
122
165
  },
123
166
  { immediate: !0 }
124
167
  );
125
- const gt = () => {
126
- e.contextMenuTrigger === "hover" && (I.value = !0);
127
- }, vt = (t) => {
128
- e.contextMenuTrigger === "hover" && (t.relatedTarget instanceof HTMLElement && t.relatedTarget.className == "context-menu__list" ? I.value = !0 : I.value = !1);
129
- }, yt = (t) => {
130
- e.contextMenuTrigger === "rightClick" && e.chat.actions && j(t);
131
- }, j = (t) => {
132
- R(), m.value = !0, B(() => {
133
- const n = document.getElementById("context-menu-rightclick-" + a);
134
- if (n) {
135
- const i = t.clientX, c = t.clientY;
136
- n.style.display = "inherit";
137
- const o = n.getBoundingClientRect();
138
- n.style.display = "none", B(() => {
139
- const u = window.innerWidth, W = window.innerHeight, d = window.scrollX || window.pageXOffset, p = window.scrollY || window.pageYOffset;
140
- let h = i + d, g = c + p;
141
- h + o.width > u + d && (h = i + d - o.width), g + o.height > W + p && (g = c + p - o.height), h < d && (h = d), g < p && (g = p), n.style.top = g + "px", n.style.left = h + "px", n.style.opacity = "1", n.style.display = "inherit";
168
+ const Mt = () => {
169
+ n.contextMenuTrigger === "hover" && (p.value = !0);
170
+ }, Et = (t) => {
171
+ n.contextMenuTrigger === "hover" && (t.relatedTarget instanceof HTMLElement && t.relatedTarget.className == "context-menu__list" ? p.value = !0 : p.value = !1);
172
+ }, Lt = (t) => {
173
+ n.contextMenuTrigger === "rightClick" && n.chat.actions && St(t);
174
+ }, St = (t) => {
175
+ vt(), k.value = !0, U(() => {
176
+ const e = document.getElementById("context-menu-rightclick-" + y);
177
+ if (e) {
178
+ const i = t.clientX, l = t.clientY;
179
+ e.style.display = "inherit";
180
+ const s = e.getBoundingClientRect();
181
+ e.style.display = "none", U(() => {
182
+ const v = window.innerWidth, Z = window.innerHeight, w = window.scrollX || window.pageXOffset, C = window.scrollY || window.pageYOffset;
183
+ let I = i + w, T = l + C;
184
+ I + s.width > v + w && (I = i + w - s.width), T + s.height > Z + C && (T = l + C - s.height), I < w && (I = w), T < C && (T = C), e.style.top = T + "px", e.style.left = I + "px", e.style.opacity = "1", e.style.display = "inherit";
142
185
  });
143
186
  }
144
187
  });
145
- }, xt = () => {
146
- }, It = () => {
147
- }, V = (t) => {
148
- if (e.contextMenuTrigger === "rightClick" && m.value) {
149
- const n = t.target, i = document.getElementById("context-menu-rightclick-" + a);
150
- (!i || !i.contains(n)) && C();
188
+ }, bt = () => {
189
+ }, At = () => {
190
+ }, K = (t) => {
191
+ if (n.contextMenuTrigger === "rightClick" && k.value) {
192
+ const e = t.target, i = document.getElementById("context-menu-rightclick-" + y);
193
+ (!i || !i.contains(e)) && B();
151
194
  }
152
- }, b = () => {
153
- e.contextMenuTrigger === "rightClick" && m.value && C();
195
+ }, Q = () => {
196
+ n.contextMenuTrigger === "rightClick" && k.value && B();
154
197
  };
155
- Et(() => {
156
- e.contextMenuTrigger === "rightClick" && (document.addEventListener("click", V), window.addEventListener("scroll", b, !0), B(() => {
157
- const t = document.getElementById("context-menu-rightclick-" + a);
198
+ return Ut(() => {
199
+ n.contextMenuTrigger === "rightClick" && (document.addEventListener("click", K), window.addEventListener("scroll", Q, !0), U(() => {
200
+ const t = document.getElementById("context-menu-rightclick-" + y);
158
201
  t && (t.style.display = "none", t.style.opacity = "0");
159
202
  }));
160
- }), kt(() => {
161
- document.removeEventListener("click", V), window.removeEventListener("scroll", b, !0);
162
- });
163
- const D = { chatAppId: y, getTheme: J, isNative: E, props: e, emit: x, contextMenuId: a, buttonMenuVisible: I, contextMenuVisible: m, preventEmit: w, containerRef: K, BCMclick: Q, selectChat: Z, selectDialog: tt, getClass: et, getDialogClass: nt, clickAction: it, hideContextMenu: C, closeAllOtherContextMenus: R, getSortedDialogs: ot, status: rt, showChatUnread: ct, chatUnreadText: ut, get timer() {
164
- return l;
165
- }, set timer(t) {
166
- l = t;
167
- }, typingIndex: s, typingText: k, getLastMessageText: A, getMessageType: U, draftLabel: _, draftSnapshot: T, hasDraftPreview: L, draftPreview: f, draftFileIcon: st, draftTextHtml: at, messageIcon: lt, lastMessageText: mt, showText: M, useAppleEmojisInLastMessage: ft, useAppleEmojisInName: dt, lastMessageHtml: pt, nameHtml: ht, onMouseEnter: gt, onMouseLeave: vt, onRightClick: yt, showContextMenu: j, onContextMenuMouseEnter: xt, onContextMenuMouseLeave: It, handleClickOutside: V, handleScroll: b, get statuses() {
168
- return _t;
169
- }, Tooltip: bt, ButtonContextMenu: Bt, ContextMenu: Nt, AvatarIcon: Pt, get ErrorStatusIcon() {
170
- return Ht;
171
- }, get PendingStatusIcon() {
172
- return Rt;
173
- }, get ReadStatusIcon() {
174
- return Ut;
175
- }, get ReceivedStatusIcon() {
176
- return jt;
177
- }, get SentStatusIcon() {
178
- return Dt;
179
- } };
180
- return Object.defineProperty(D, "__isScriptSetup", { enumerable: !1, value: !0 }), D;
203
+ }), Dt(() => {
204
+ document.removeEventListener("click", K), window.removeEventListener("scroll", Q, !0);
205
+ }), (t, e) => (o(), a("div", null, [
206
+ m("div", {
207
+ ref_key: "containerRef",
208
+ ref: lt,
209
+ class: D(["chat-item__container", ht()]),
210
+ onMouseenter: Mt,
211
+ onMouseleave: Et,
212
+ onClick: mt,
213
+ onContextmenu: Ft(Lt, ["prevent"])
214
+ }, [
215
+ m("div", ne, [
216
+ m("span", {
217
+ class: "chat-item__status-user",
218
+ style: tt({ backgroundColor: n.chat.status })
219
+ }, null, 4),
220
+ n.chat.avatar ? (o(), a("img", {
221
+ key: 0,
222
+ src: n.chat.avatar,
223
+ height: "48",
224
+ width: "48"
225
+ }, null, 8, ie)) : (o(), a("div", oe, [
226
+ F(Gt)
227
+ ]))
228
+ ]),
229
+ m("div", ce, [
230
+ F(it, {
231
+ text: c.chat.name,
232
+ position: "bottom"
233
+ }, {
234
+ default: P(() => [
235
+ Ct.value ? (o(), a("div", {
236
+ key: 0,
237
+ class: "chat-item__name",
238
+ innerHTML: Tt.value
239
+ }, null, 8, ae)) : (o(), a("div", se, f(c.chat.name), 1))
240
+ ]),
241
+ _: 1
242
+ }, 8, ["text"]),
243
+ F(it, {
244
+ text: wt.value,
245
+ position: "bottom"
246
+ }, {
247
+ default: P(() => [
248
+ c.chat.lastMessage || c.chat.typing || x.value ? (o(), a("div", re, [
249
+ G.value && !x.value ? (o(), d(et(G.value), {
250
+ key: 0,
251
+ class: "chat-item__message-icon"
252
+ })) : r("", !0),
253
+ x.value ? (o(), a("span", le, [
254
+ m("span", ue, f(h(V)), 1),
255
+ q.value ? (o(), d(et(q.value), {
256
+ key: 0,
257
+ class: "chat-item__message-icon"
258
+ })) : r("", !0),
259
+ g.value && J.value ? (o(), a("span", {
260
+ key: 1,
261
+ class: "chat-item__draft-text",
262
+ innerHTML: xt.value
263
+ }, null, 8, me)) : g.value ? (o(), a("span", de, f(g.value), 1)) : r("", !0)
264
+ ])) : J.value ? (o(), a("span", {
265
+ key: 2,
266
+ class: "chat-item__last-message-text",
267
+ innerHTML: It.value
268
+ }, null, 8, he)) : (o(), a("span", fe, f(N.value), 1))
269
+ ])) : r("", !0)
270
+ ]),
271
+ _: 1
272
+ }, 8, ["text"])
273
+ ]),
274
+ m("div", ve, [
275
+ c.chat["lastActivity.time"] && (!c.chat.actions || !p.value) ? (o(), a("div", ge, f(c.chat["lastActivity.time"]), 1)) : r("", !0),
276
+ p.value && c.chat.actions && c.contextMenuTrigger === "hover" ? (o(), d(Ot, {
277
+ key: 1,
278
+ mode: "click",
279
+ "menu-side": "bottom-right",
280
+ actions: c.chat.actions,
281
+ onClick: j,
282
+ onButtonClick: ut,
283
+ onMenuMouseLeave: e[0] || (e[0] = (i) => p.value = !1)
284
+ }, {
285
+ default: P(() => [...e[2] || (e[2] = [
286
+ m("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
287
+ ])]),
288
+ _: 1
289
+ }, 8, ["actions"])) : r("", !0),
290
+ (o(), d(Pt, { to: "body" }, [
291
+ c.contextMenuTrigger === "rightClick" && c.chat.actions && k.value ? (o(), d(qt, {
292
+ key: 0,
293
+ id: "context-menu-rightclick-" + h(y),
294
+ actions: c.chat.actions,
295
+ "data-theme": h(Y)().theme ? h(Y)().theme : "light",
296
+ onClick: j,
297
+ onMouseenter: bt,
298
+ onMouseleave: At
299
+ }, null, 8, ["id", "actions", "data-theme"])) : r("", !0)
300
+ ])),
301
+ m("div", ye, [
302
+ h(Yt).includes(c.chat["lastMessage.status"]) ? (o(), a("div", {
303
+ key: 0,
304
+ class: D(["chat-item__status-message", yt.value])
305
+ }, [
306
+ c.chat["lastMessage.status"] === "pending" ? (o(), d(h(Kt), { key: 0 })) : c.chat["lastMessage.status"] === "error" ? (o(), d(h(Jt), { key: 1 })) : c.chat["lastMessage.status"] === "read" ? (o(), d(h(Qt), { key: 2 })) : c.chat["lastMessage.status"] === "received" ? (o(), d(h(Zt), { key: 3 })) : (o(), d(h(te), { key: 4 }))
307
+ ], 2)) : r("", !0),
308
+ pt.value ? (o(), a("div", pe, f(_t.value), 1)) : r("", !0)
309
+ ]),
310
+ c.chat.countUnread < 1 ? (o(), a("div", _e, [
311
+ c.chat.isFixedTop || c.chat.isFixedBottom ? (o(), a("span", ke)) : r("", !0)
312
+ ])) : r("", !0)
313
+ ]),
314
+ n.showDialogs && c.chat.dialogs ? (o(), a("div", {
315
+ key: 0,
316
+ class: "chat-item__dialog-buttons",
317
+ onClick: e[1] || (e[1] = (i) => E("expand", n.chat))
318
+ }, [
319
+ n.showDialogs && !c.chat.dialogsExpanded ? (o(), a("button", xe, [...e[3] || (e[3] = [
320
+ m("span", {
321
+ id: "noSelectButton",
322
+ class: "pi pi-angle-down"
323
+ }, null, -1)
324
+ ])])) : r("", !0),
325
+ n.showDialogs && c.chat.dialogsExpanded ? (o(), a("button", we, [...e[4] || (e[4] = [
326
+ m("span", {
327
+ id: "noSelectButton",
328
+ class: "pi pi-angle-up"
329
+ }, null, -1)
330
+ ])])) : r("", !0)
331
+ ])) : r("", !0)
332
+ ], 34),
333
+ n.showDialogs && c.chat.dialogsExpanded ? (o(), a("div", Ce, [
334
+ (o(!0), a(Rt, null, Wt(gt(), (i) => (o(), a("div", {
335
+ key: i.dialogId,
336
+ class: D(["dialog__item", ft(i)]),
337
+ onClick: (l) => dt(i)
338
+ }, [
339
+ i.icon ? (o(), a("img", {
340
+ key: 0,
341
+ class: "dialog__icon",
342
+ src: i.icon,
343
+ height: "16",
344
+ width: "16"
345
+ }, null, 8, Te)) : (o(), a("span", Me)),
346
+ m("div", Ee, [
347
+ m("div", Le, f(i.name), 1),
348
+ m("div", Se, f(i["lastActivity.time"]), 1)
349
+ ]),
350
+ i.countUnread > 0 ? (o(), a("div", {
351
+ key: 2,
352
+ class: "chat-item__unread",
353
+ style: tt(i.colorUnread ? { backgroundColor: i.colorUnread } : {})
354
+ }, f(i.countUnread > 99 ? "99+" : i.countUnread), 5)) : r("", !0)
355
+ ], 10, Ie))), 128))
356
+ ])) : r("", !0)
357
+ ]));
181
358
  }
182
359
  });
183
360
  export {
184
- ye as default
361
+ sn as default
185
362
  };
@@ -1,30 +1,24 @@
1
1
  import { createElementBlock as e, openBlock as t, createElementVNode as r } from "vue";
2
2
  import n from "../../../../_virtual/_plugin-vue_export-helper.js";
3
- const s = {}, c = {
3
+ const s = {}, i = {
4
4
  width: "800px",
5
5
  height: "800px",
6
6
  viewBox: "0 0 24 24",
7
7
  fill: "none",
8
8
  xmlns: "http://www.w3.org/2000/svg"
9
9
  };
10
- function i(l, o) {
11
- return t(), e("svg", c, [...o[0] || (o[0] = [
12
- r(
13
- "path",
14
- {
15
- d: "M9 19C9 20.1046 7.65685 21 6 21C4.34315 21 3 20.1046 3 19C3 17.8954 4.34315 17 6 17C7.65685 17 9 17.8954 9 19ZM9 19V5L21 3V17M21 17C21 18.1046 19.6569 19 18 19C16.3431 19 15 18.1046 15 17C15 15.8954 16.3431 15 18 15C19.6569 15 21 15.8954 21 17ZM9 9L21 7",
16
- stroke: "currentColor",
17
- "stroke-width": "2",
18
- "stroke-linecap": "round",
19
- "stroke-linejoin": "round"
20
- },
21
- null,
22
- -1
23
- /* CACHED */
24
- )
10
+ function c(l, o) {
11
+ return t(), e("svg", i, [...o[0] || (o[0] = [
12
+ r("path", {
13
+ d: "M9 19C9 20.1046 7.65685 21 6 21C4.34315 21 3 20.1046 3 19C3 17.8954 4.34315 17 6 17C7.65685 17 9 17.8954 9 19ZM9 19V5L21 3V17M21 17C21 18.1046 19.6569 19 18 19C16.3431 19 15 18.1046 15 17C15 15.8954 16.3431 15 18 15C19.6569 15 21 15.8954 21 17ZM9 9L21 7",
14
+ stroke: "currentColor",
15
+ "stroke-width": "2",
16
+ "stroke-linecap": "round",
17
+ "stroke-linejoin": "round"
18
+ }, null, -1)
25
19
  ])]);
26
20
  }
27
- const _ = /* @__PURE__ */ n(s, [["render", i], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue"]]);
21
+ const C = /* @__PURE__ */ n(s, [["render", c]]);
28
22
  export {
29
- _ as default
23
+ C as default
30
24
  };
@@ -7,31 +7,19 @@ const n = {}, l = {
7
7
  fill: "none",
8
8
  xmlns: "http://www.w3.org/2000/svg"
9
9
  };
10
- function c(s, C) {
10
+ function c(i, C) {
11
11
  return o(), t("svg", l, [...C[0] || (C[0] = [
12
- e(
13
- "path",
14
- {
15
- d: "M5.5 7C5.36739 7 5.24021 7.05268 5.14645 7.14645C5.05268 7.24021 5 7.36739 5 7.5C5 7.63261 5.05268 7.75979 5.14645 7.85355C5.24021 7.94732 5.36739 8 5.5 8H10.5C10.6326 8 10.7598 7.94732 10.8536 7.85355C10.9473 7.75979 11 7.63261 11 7.5C11 7.36739 10.9473 7.24021 10.8536 7.14645C10.7598 7.05268 10.6326 7 10.5 7H5.5ZM5 9.5C5 9.36739 5.05268 9.24021 5.14645 9.14645C5.24021 9.05268 5.36739 9 5.5 9H10.5C10.6326 9 10.7598 9.05268 10.8536 9.14645C10.9473 9.24021 11 9.36739 11 9.5C11 9.63261 10.9473 9.75979 10.8536 9.85355C10.7598 9.94732 10.6326 10 10.5 10H5.5C5.36739 10 5.24021 9.94732 5.14645 9.85355C5.05268 9.75979 5 9.63261 5 9.5ZM5 11.5C5 11.3674 5.05268 11.2402 5.14645 11.1464C5.24021 11.0527 5.36739 11 5.5 11H7.5C7.63261 11 7.75979 11.0527 7.85355 11.1464C7.94732 11.2402 8 11.3674 8 11.5C8 11.6326 7.94732 11.7598 7.85355 11.8536C7.75979 11.9473 7.63261 12 7.5 12H5.5C5.36739 12 5.24021 11.9473 5.14645 11.8536C5.05268 11.7598 5 11.6326 5 11.5Z",
16
- fill: "currentColor"
17
- },
18
- null,
19
- -1
20
- /* CACHED */
21
- ),
22
- e(
23
- "path",
24
- {
25
- d: "M9.5 0H4C3.46957 0 2.96086 0.210714 2.58579 0.585786C2.21071 0.960859 2 1.46957 2 2V14C2 14.5304 2.21071 15.0391 2.58579 15.4142C2.96086 15.7893 3.46957 16 4 16H12C12.5304 16 13.0391 15.7893 13.4142 15.4142C13.7893 15.0391 14 14.5304 14 14V4.5L9.5 0ZM9.5 1V3C9.5 3.39782 9.65804 3.77936 9.93934 4.06066C10.2206 4.34196 10.6022 4.5 11 4.5H13V14C13 14.2652 12.8946 14.5196 12.7071 14.7071C12.5196 14.8946 12.2652 15 12 15H4C3.73478 15 3.48043 14.8946 3.29289 14.7071C3.10536 14.5196 3 14.2652 3 14V2C3 1.73478 3.10536 1.48043 3.29289 1.29289C3.48043 1.10536 3.73478 1 4 1H9.5Z",
26
- fill: "currentColor"
27
- },
28
- null,
29
- -1
30
- /* CACHED */
31
- )
12
+ e("path", {
13
+ d: "M5.5 7C5.36739 7 5.24021 7.05268 5.14645 7.14645C5.05268 7.24021 5 7.36739 5 7.5C5 7.63261 5.05268 7.75979 5.14645 7.85355C5.24021 7.94732 5.36739 8 5.5 8H10.5C10.6326 8 10.7598 7.94732 10.8536 7.85355C10.9473 7.75979 11 7.63261 11 7.5C11 7.36739 10.9473 7.24021 10.8536 7.14645C10.7598 7.05268 10.6326 7 10.5 7H5.5ZM5 9.5C5 9.36739 5.05268 9.24021 5.14645 9.14645C5.24021 9.05268 5.36739 9 5.5 9H10.5C10.6326 9 10.7598 9.05268 10.8536 9.14645C10.9473 9.24021 11 9.36739 11 9.5C11 9.63261 10.9473 9.75979 10.8536 9.85355C10.7598 9.94732 10.6326 10 10.5 10H5.5C5.36739 10 5.24021 9.94732 5.14645 9.85355C5.05268 9.75979 5 9.63261 5 9.5ZM5 11.5C5 11.3674 5.05268 11.2402 5.14645 11.1464C5.24021 11.0527 5.36739 11 5.5 11H7.5C7.63261 11 7.75979 11.0527 7.85355 11.1464C7.94732 11.2402 8 11.3674 8 11.5C8 11.6326 7.94732 11.7598 7.85355 11.8536C7.75979 11.9473 7.63261 12 7.5 12H5.5C5.36739 12 5.24021 11.9473 5.14645 11.8536C5.05268 11.7598 5 11.6326 5 11.5Z",
14
+ fill: "currentColor"
15
+ }, null, -1),
16
+ e("path", {
17
+ d: "M9.5 0H4C3.46957 0 2.96086 0.210714 2.58579 0.585786C2.21071 0.960859 2 1.46957 2 2V14C2 14.5304 2.21071 15.0391 2.58579 15.4142C2.96086 15.7893 3.46957 16 4 16H12C12.5304 16 13.0391 15.7893 13.4142 15.4142C13.7893 15.0391 14 14.5304 14 14V4.5L9.5 0ZM9.5 1V3C9.5 3.39782 9.65804 3.77936 9.93934 4.06066C10.2206 4.34196 10.6022 4.5 11 4.5H13V14C13 14.2652 12.8946 14.5196 12.7071 14.7071C12.5196 14.8946 12.2652 15 12 15H4C3.73478 15 3.48043 14.8946 3.29289 14.7071C3.10536 14.5196 3 14.2652 3 14V2C3 1.73478 3.10536 1.48043 3.29289 1.29289C3.48043 1.10536 3.73478 1 4 1H9.5Z",
18
+ fill: "currentColor"
19
+ }, null, -1)
32
20
  ])]);
33
21
  }
34
- const _ = /* @__PURE__ */ r(n, [["render", c], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue"]]);
22
+ const f = /* @__PURE__ */ r(n, [["render", c]]);
35
23
  export {
36
- _ as default
24
+ f as default
37
25
  };