@mobilon-dev/chotto 0.3.96 → 0.3.98

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
  4. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
  5. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
  6. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
  8. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
  9. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -38
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -2
  11. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
  12. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
  13. package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
  14. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
  15. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
  16. package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
  17. package/dist/components/1_icons/CheckIcon.vue.js +26 -13
  18. package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
  19. package/dist/components/1_icons/CloseIcon.vue.js +16 -10
  20. package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
  21. package/dist/components/1_icons/MenuIcon.vue.js +16 -10
  22. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
  24. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
  26. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
  28. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
  30. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
  32. package/dist/components/1_icons/SearchIcon.vue.js +29 -17
  33. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  34. package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
  35. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
  36. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
  37. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
  38. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
  39. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
  41. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
  51. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
  52. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
  53. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
  54. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
  55. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
  56. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
  57. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
  58. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
  59. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
  60. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
  63. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
  64. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
  67. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
  68. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
  69. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
  70. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
  71. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
  72. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
  73. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
  74. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
  75. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
  76. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
  77. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
  78. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
  79. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
  80. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
  81. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
  82. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
  83. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
  84. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
  85. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
  86. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
  87. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
  88. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
  89. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
  90. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
  91. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
  92. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
  93. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
  99. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
  100. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
  101. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
  102. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
  103. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
  104. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
  105. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
  106. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
  107. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
  108. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
  109. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
  110. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
  111. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
  112. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
  113. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
  114. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
  115. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
  116. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
  117. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
  118. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
  119. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
  120. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
  121. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
  122. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
  123. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  124. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
  125. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
  127. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
  128. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
  129. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
  131. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
  133. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
  135. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
  136. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
  137. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
  138. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
  139. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
  140. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
  141. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
  142. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
  143. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
  144. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
  145. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
  146. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
  147. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
  148. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
  149. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
  150. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
  151. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
  152. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
  153. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
  154. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
  155. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
  156. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
  157. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
  158. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
  159. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
  160. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
  161. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
  162. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
  163. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
  164. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
  165. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
  166. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
  167. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
  168. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
  169. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
  170. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
  171. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
  172. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
  173. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
  174. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  175. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
  176. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
  177. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
  178. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
  179. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
  180. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
  181. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
  182. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
  183. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
  184. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
  185. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
  186. package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
  187. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
  188. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
  189. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
  190. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
  191. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
  192. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
  193. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
  194. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
  195. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
  196. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
  197. package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
  198. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
  199. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  200. package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
  201. package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
  202. package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
  203. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
  204. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  205. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
  206. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
  207. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  208. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  209. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +31 -18
  210. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
  211. package/package.json +1 -1
@@ -1,362 +1,185 @@
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";
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";
3
3
  import "../../../functions/parseMarkdown.js";
4
4
  import { t as S } from "../../../locale/useLocale.js";
5
- import { getChatDraft as $t } from "../../../hooks/useMessageDraft.js";
5
+ import { getChatDraft as Lt } from "../../../hooks/useMessageDraft.js";
6
6
  import "../../../hooks/useSearchModel.js";
7
- import { useTheme as jt } from "../../../hooks/useTheme.js";
8
- import { useEmojiNative as zt } from "../../../hooks/useEmojiNative.js";
7
+ import { useTheme as Mt } from "../../../hooks/useTheme.js";
8
+ import { useEmojiNative as Vt } 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 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({
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({
76
32
  __name: "ChatItem",
77
33
  props: {
78
- chat: {},
79
- showDialogs: { type: Boolean, default: !0 },
80
- contextMenuTrigger: { default: "hover" }
34
+ chat: { type: Object, required: !0 },
35
+ showDialogs: { type: Boolean, required: !1, default: !0 },
36
+ contextMenuTrigger: { type: String, required: !1, default: "hover" }
81
37
  },
82
38
  emits: ["select", "action", "expand"],
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");
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");
99
56
  });
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;
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;
104
61
  if (typeof t == "string")
105
62
  return t;
106
63
  if ((t == null ? void 0 : t.type) === "message.sticker")
107
64
  return "Стикер";
108
65
  if ((t == null ? void 0 : t.type) === "message.audio")
109
- return (t.isVoiceMessage || ((l = t == null ? void 0 : t.data) == null ? void 0 : l.isVoiceMessage)) === !0 ? "Голосовое сообщение" : "Аудиофайл";
66
+ return (t.isVoiceMessage || ((c = t == null ? void 0 : t.data) == null ? void 0 : c.isVoiceMessage)) === !0 ? "Голосовое сообщение" : "Аудиофайл";
110
67
  if ((t == null ? void 0 : t.type) === "message.missedCall")
111
68
  return "Пропущенный звонок";
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;
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;
116
73
  return i || "";
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);
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);
119
76
  if (!(!t || t.edit) && !(!t.listPreviewText && !t.listPreviewFile) && !(!(t.text || "").trim() && !t.file))
120
77
  return t;
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;
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;
127
84
  if (!(t != null && t.file)) return null;
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)
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)
133
90
  return null;
134
- const t = kt(n.chat.lastMessage);
91
+ const t = U(e.chat.lastMessage);
135
92
  if (!t)
136
93
  return null;
137
94
  if (t === "message.sticker")
138
- return X;
95
+ return H;
139
96
  if (t === "message.image")
140
- return ct;
97
+ return Y;
141
98
  if (t === "message.video")
142
- return at;
99
+ return q;
143
100
  if (t === "message.audio") {
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;
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;
146
103
  }
147
104
  if (t === "message.missedCall")
148
- return ee;
105
+ return Wt;
149
106
  if (t === "message.file") {
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;
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;
152
109
  }
153
110
  return null;
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,
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,
161
118
  () => {
162
- n.chat.typing ? L = setInterval(() => {
163
- _.value < 2 ? _.value += 1 : _.value = 0;
164
- }, 1e3) : (_.value = 0, L && (clearInterval(L), L = void 0));
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));
165
122
  },
166
123
  { immediate: !0 }
167
124
  );
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";
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";
185
142
  });
186
143
  }
187
144
  });
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();
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();
194
151
  }
195
- }, Q = () => {
196
- n.contextMenuTrigger === "rightClick" && k.value && B();
152
+ }, b = () => {
153
+ e.contextMenuTrigger === "rightClick" && m.value && C();
197
154
  };
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);
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);
201
158
  t && (t.style.display = "none", t.style.opacity = "0");
202
159
  }));
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
- ]));
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;
358
181
  }
359
182
  });
360
183
  export {
361
- sn as default
184
+ ye as default
362
185
  };
@@ -1,24 +1,30 @@
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 = {}, i = {
3
+ const s = {}, c = {
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 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)
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
+ )
19
25
  ])]);
20
26
  }
21
- const C = /* @__PURE__ */ n(s, [["render", c]]);
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"]]);
22
28
  export {
23
- C as default
29
+ _ as default
24
30
  };
@@ -7,19 +7,31 @@ const n = {}, l = {
7
7
  fill: "none",
8
8
  xmlns: "http://www.w3.org/2000/svg"
9
9
  };
10
- function c(i, C) {
10
+ function c(s, C) {
11
11
  return o(), t("svg", l, [...C[0] || (C[0] = [
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)
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
+ )
20
32
  ])]);
21
33
  }
22
- const f = /* @__PURE__ */ r(n, [["render", c]]);
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"]]);
23
35
  export {
24
- f as default
36
+ _ as default
25
37
  };