@mobilon-dev/chotto 0.3.119 → 0.3.121

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 (223) 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 +40 -59
  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 -35
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +30 -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/DeletedMessageIcon.vue.js +27 -0
  22. package/dist/components/1_icons/MenuIcon.vue.js +16 -10
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
  24. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
  26. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
  28. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
  30. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
  32. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
  33. package/dist/components/1_icons/SearchIcon.vue.js +29 -17
  34. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  35. package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
  36. package/dist/components/1_icons/VerifiedBadge.vue.js +25 -19
  37. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
  38. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +552 -402
  39. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
  41. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
  51. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
  52. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
  53. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
  54. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +12 -46
  55. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
  56. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
  57. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
  58. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
  59. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
  60. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +62 -4
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +80 -98
  63. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
  64. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
  67. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
  68. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
  69. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +76 -45
  70. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +100 -4
  71. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +16 -91
  72. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +79 -4
  73. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +88 -111
  74. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
  75. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
  76. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
  77. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
  78. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
  79. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
  80. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
  81. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
  82. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
  83. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
  84. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
  85. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +32 -58
  86. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
  87. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
  88. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
  89. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
  90. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
  91. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +41 -35
  92. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
  93. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +143 -323
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
  99. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
  100. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
  101. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
  102. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
  103. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +36 -68
  104. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +71 -37
  105. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +83 -62
  106. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
  107. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
  108. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
  109. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
  110. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
  111. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +22 -42
  112. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +460 -4
  113. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +181 -499
  114. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
  115. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
  116. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
  117. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
  118. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
  119. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
  120. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
  121. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
  122. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
  123. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
  124. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
  125. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
  127. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  128. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
  129. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +47 -4
  131. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +37 -46
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
  133. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
  135. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
  136. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +52 -4
  137. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +16 -39
  138. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +270 -4
  139. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +95 -274
  140. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +409 -4
  141. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +143 -422
  142. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
  143. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
  144. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +57 -4
  145. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +41 -69
  146. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +97 -4
  147. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +102 -173
  148. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
  149. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
  150. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
  151. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
  152. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
  153. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
  154. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
  155. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
  156. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
  157. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
  158. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
  159. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
  160. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
  161. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
  162. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
  163. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
  164. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
  165. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
  166. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
  167. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
  168. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
  169. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +34 -118
  170. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
  171. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
  172. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +94 -4
  173. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -76
  174. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
  175. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
  176. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +348 -4
  177. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +97 -339
  178. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
  179. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  180. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +308 -4
  181. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +89 -299
  182. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
  183. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
  184. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +321 -4
  185. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +96 -338
  186. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
  187. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
  188. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +36 -19
  189. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
  190. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
  191. package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
  192. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
  193. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
  194. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
  195. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
  196. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
  197. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
  198. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +170 -4
  199. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +239 -336
  200. package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +43 -25
  201. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
  202. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
  203. package/dist/components/3_compounds/ChatList/ChatList.vue.js +256 -166
  204. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +57 -39
  205. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  206. package/dist/components/3_compounds/Feed/Feed.vue.js +185 -4
  207. package/dist/components/3_compounds/Feed/Feed.vue2.js +161 -305
  208. package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
  209. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
  210. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  211. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
  212. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
  213. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  214. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  215. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +33 -18
  216. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +90 -59
  217. package/dist/types/src/apps/data/chats.d.ts +9 -2
  218. package/dist/types/src/components/2_chatlist_elements/ChatItem/stories/ChatItem.stories.d.ts +1 -0
  219. package/dist/types/src/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
  220. package/dist/types/src/components/2_feed_elements/types/components.d.ts +2 -0
  221. package/package.json +1 -1
  222. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +0 -21
  223. /package/dist/types/src/components/{2_feed_elements/DeletedMessageContent/icons → 1_icons}/DeletedMessageIcon.vue.d.ts +0 -0
@@ -1,374 +1,194 @@
1
- import { defineComponent as Ht, inject as Nt, useId as Ut, ref as E, computed as l, watch as Ft, onMounted as Pt, nextTick as F, onUnmounted as Rt, createElementBlock as a, openBlock as o, createElementVNode as m, createCommentVNode as c, withModifiers as Wt, normalizeClass as P, normalizeStyle as nt, createVNode as R, createBlock as d, renderSlot as $t, withCtx as W, toDisplayString as f, resolveDynamicComponent as it, unref as h, Teleport as jt, Fragment as Xt, renderList as Yt } from "vue";
2
- import { getStatus as zt, statuses as Ot } from "../../../functions/getStatusMessage.js";
1
+ import { defineComponent as At, inject as Lt, useId as Mt, ref as y, computed as r, watch as _t, onMounted as Vt, nextTick as H, onUnmounted as bt } from "vue";
2
+ import { getStatus as Bt, statuses as Dt } from "../../../functions/getStatusMessage.js";
3
3
  import "../../../functions/parseMarkdown.js";
4
- import { t as A } from "../../../locale/useLocale.js";
5
- import { resolveMessageDraftStore as qt } from "../../../hooks/useMessageDraft.js";
6
- import { useTheme as Gt } from "../../../hooks/useTheme.js";
7
- import { useEmojiNative as Jt } from "../../../hooks/useEmojiNative.js";
4
+ import { t as x } from "../../../locale/useLocale.js";
5
+ import { resolveMessageDraftStore as Nt } from "../../../hooks/useMessageDraft.js";
6
+ import { useTheme as Pt } from "../../../hooks/useTheme.js";
7
+ import { useEmojiNative as Ht } from "../../../hooks/useEmojiNative.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import "../../../node_modules/linkifyjs/dist/linkify.js";
12
12
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
13
- import { textToAppleEmojiHtml as $, textContainsEmoji as ot } from "../../../functions/renderAppleEmojis.js";
14
- import at from "../../1_atoms/Tooltip/Tooltip.vue.js";
15
- import Kt from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
16
- import Qt from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
17
- import Zt from "../../1_icons/AvatarIcon.vue.js";
18
- import te from "../../1_icons/VerifiedBadge.vue.js";
19
- import ee from "../../1_icons/MessageStatus/ErrorStatusIcon.vue.js";
20
- import ne from "../../1_icons/MessageStatus/PendingStatusIcon.vue.js";
21
- import ie from "../../1_icons/MessageStatus/ReadStatusIcon.vue.js";
22
- import oe from "../../1_icons/MessageStatus/ReceivedStatusIcon.vue.js";
23
- import ae from "../../1_icons/MessageStatus/SentStatusIcon.vue.js";
24
- import st from "./icons/AudioIcon.vue.js";
25
- import j from "./icons/FileIcon.vue.js";
26
- import ct from "./icons/ImageIcon.vue.js";
27
- import se from "./icons/MissedCallIcon.vue.js";
28
- import X from "./icons/StickerIcon.vue.js";
29
- import rt from "./icons/VideoIcon.vue.js";
30
- import lt from "./icons/VoiceIcon.vue.js";
31
- const ce = ["data-chat-id"], re = { class: "chat-item__avatar-container" }, le = ["src"], ue = {
32
- key: 1,
33
- class: "chat-item__avatar-placeholder"
34
- }, me = { class: "chat-item__info-container" }, de = { class: "chat-item__title-row" }, he = ["innerHTML"], fe = {
35
- key: 1,
36
- class: "chat-item__name"
37
- }, ve = {
38
- key: 0,
39
- class: "chat-item__last-message"
40
- }, ge = {
41
- key: 1,
42
- class: "chat-item__last-message-text chat-item__last-message-text--draft"
43
- }, ye = { class: "chat-item__draft-label" }, pe = ["innerHTML"], _e = {
44
- key: 2,
45
- class: "chat-item__draft-text"
46
- }, ke = ["innerHTML"], xe = {
47
- key: 3,
48
- class: "chat-item__last-message-text"
49
- }, we = { class: "chat-item__details-container" }, Ce = {
50
- key: 0,
51
- class: "chat-item__time"
52
- }, Ie = { class: "chat-item__status-unread-container" }, Te = {
53
- key: 1,
54
- class: "chat-item__unread"
55
- }, Me = {
56
- key: 2,
57
- class: "chat-item__status-chat-container"
58
- }, Ee = {
59
- key: 0,
60
- class: "chat-item__fixed pi pi-thumbtack"
61
- }, Se = {
62
- key: 0,
63
- id: "noSelectButton",
64
- class: "chat-item__menu-button"
65
- }, Le = {
66
- key: 1,
67
- id: "noSelectButton",
68
- class: "chat-item__menu-button"
69
- }, be = {
70
- key: 0,
71
- class: "dialog__container"
72
- }, Ae = ["onClick"], Be = ["src"], Ve = {
73
- key: 1,
74
- class: "dialog__icon pi pi-user"
75
- }, De = { class: "dialog__text-container" }, He = { class: "dialog__name" }, Ne = { class: "dialog__time" }, fn = /* @__PURE__ */ Ht({
13
+ import { textToAppleEmojiHtml as j, textContainsEmoji as z } from "../../../functions/renderAppleEmojis.js";
14
+ import jt from "../../1_atoms/Tooltip/Tooltip.vue.js";
15
+ import Rt from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
16
+ import Ut from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
17
+ import Wt from "../../1_icons/AvatarIcon.vue.js";
18
+ import Ft from "../../1_icons/VerifiedBadge.vue.js";
19
+ import Ot from "../../1_icons/MessageStatus/ErrorStatusIcon.vue.js";
20
+ import Xt from "../../1_icons/MessageStatus/PendingStatusIcon.vue.js";
21
+ import Yt from "../../1_icons/MessageStatus/ReadStatusIcon.vue.js";
22
+ import qt from "../../1_icons/MessageStatus/ReceivedStatusIcon.vue.js";
23
+ import $t from "../../1_icons/MessageStatus/SentStatusIcon.vue.js";
24
+ import G from "./icons/AudioIcon.vue.js";
25
+ import R from "./icons/FileIcon.vue.js";
26
+ import J from "./icons/ImageIcon.vue.js";
27
+ import zt from "./icons/MissedCallIcon.vue.js";
28
+ import U from "./icons/StickerIcon.vue.js";
29
+ import K from "./icons/VideoIcon.vue.js";
30
+ import Q from "./icons/VoiceIcon.vue.js";
31
+ import Gt from "../../1_icons/DeletedMessageIcon.vue.js";
32
+ const Ae = /* @__PURE__ */ At({
76
33
  __name: "ChatItem",
77
34
  props: {
78
- chat: {},
79
- showDialogs: { type: Boolean, default: !0 },
80
- contextMenuTrigger: { default: "hover" }
35
+ chat: { type: Object, required: !0 },
36
+ showDialogs: { type: Boolean, required: !1, default: !0 },
37
+ contextMenuTrigger: { type: String, required: !1, default: "hover" }
81
38
  },
82
39
  emits: ["select", "action", "expand"],
83
- setup(s, { emit: ut }) {
84
- const S = Nt("chatAppId"), { getTheme: Y } = Gt(S), { isNative: z, emojiSrc: B } = Jt(S), mt = qt(String(S ?? "")), n = s, L = ut, y = Ut(), p = E(!1), k = E(!1), V = E(!1), dt = E(null), x = l(
40
+ setup(Z, { expose: tt, emit: et }) {
41
+ tt();
42
+ const m = Lt("chatAppId"), { getTheme: nt } = Pt(m), { isNative: A, emojiSrc: I } = Ht(m), W = Nt(String(m ?? "")), e = Z, w = et, a = Mt(), C = y(!1), f = y(!1), S = y(!1), it = y(null), L = r(
85
43
  () => {
86
44
  var t;
87
- return (((t = n.chat.actions) == null ? void 0 : t.length) ?? 0) > 0;
45
+ return (((t = e.chat.actions) == null ? void 0 : t.length) ?? 0) > 0;
88
46
  }
89
- ), ht = () => {
90
- V.value = !0;
91
- }, ft = (t) => {
92
- V.value || t.target instanceof HTMLElement && t.target.id != "noSelectButton" && L("select", { chat: n.chat, dialog: null }), V.value = !1;
93
- }, vt = (t) => {
94
- L("select", { chat: n.chat, dialog: t });
95
- }, gt = () => n.chat.isSelected ? "chat-item__selected" : "", yt = (t) => t.isSelected ? "dialog__selected" : "", O = (t) => {
96
- n.contextMenuTrigger === "rightClick" && D(), L("action", { chat: n.chat, ...t });
97
- }, D = () => {
98
- const t = document.getElementById("context-menu-rightclick-" + y);
99
- t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none"), k.value = !1;
100
- }, pt = () => {
101
- document.querySelectorAll('[id^="context-menu-rightclick-"]').forEach((e) => {
102
- const i = e;
103
- i.id !== "context-menu-rightclick-" + y && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
47
+ ), ot = () => {
48
+ S.value = !0;
49
+ }, rt = (t) => {
50
+ S.value || t.target instanceof HTMLElement && t.target.id != "noSelectButton" && w("select", { chat: e.chat, dialog: null }), S.value = !1;
51
+ }, ct = (t) => {
52
+ w("select", { chat: e.chat, dialog: t });
53
+ }, st = () => e.chat.isSelected ? "chat-item__selected" : "", ut = (t) => t.isSelected ? "dialog__selected" : "", at = (t) => {
54
+ e.contextMenuTrigger === "rightClick" && T(), w("action", { chat: e.chat, ...t });
55
+ }, T = () => {
56
+ const t = document.getElementById("context-menu-rightclick-" + a);
57
+ t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none"), f.value = !1;
58
+ }, F = () => {
59
+ document.querySelectorAll('[id^="context-menu-rightclick-"]').forEach((n) => {
60
+ const i = n;
61
+ i.id !== "context-menu-rightclick-" + a && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
104
62
  });
105
- }, _t = () => 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)) : [], kt = l(() => zt(n.chat["lastMessage.status"])), xt = l(() => n.chat.showEmptyIndicator || n.chat.countUnread > 0), wt = l(() => n.chat.countUnread > 0 ? n.chat.countUnread > 99 ? "99+" : n.chat.countUnread : n.chat.showEmptyIndicator ? "" : void 0);
106
- let b;
107
- const _ = E(0), q = [A("component.ChatItem.typing") + ".", A("component.ChatItem.typing") + "..", A("component.ChatItem.typing") + "..."], G = (t) => {
108
- var u, r, v;
63
+ }, lt = () => 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)) : [], mt = r(() => Bt(e.chat["lastMessage.status"])), ft = r(() => e.chat.showEmptyIndicator || e.chat.countUnread > 0), dt = r(() => e.chat.countUnread > 0 ? e.chat.countUnread > 99 ? "99+" : e.chat.countUnread : e.chat.showEmptyIndicator ? "" : void 0);
64
+ let l;
65
+ const u = y(0), M = [x("component.ChatItem.typing") + ".", x("component.ChatItem.typing") + "..", x("component.ChatItem.typing") + "..."], O = x("component.DeletedMessageContent.text"), E = (t) => typeof t != "string" && (t == null ? void 0 : t.deleted) === !0, _ = (t) => {
66
+ var c, o, s;
109
67
  if (typeof t == "string")
110
68
  return t;
111
69
  if ((t == null ? void 0 : t.type) === "message.sticker")
112
70
  return "Стикер";
113
71
  if ((t == null ? void 0 : t.type) === "message.audio")
114
- return (t.isVoiceMessage || ((u = t == null ? void 0 : t.data) == null ? void 0 : u.isVoiceMessage)) === !0 ? "Голосовое сообщение" : "Аудиофайл";
72
+ return (t.isVoiceMessage || ((c = t == null ? void 0 : t.data) == null ? void 0 : c.isVoiceMessage)) === !0 ? "Голосовое сообщение" : "Аудиофайл";
115
73
  if ((t == null ? void 0 : t.type) === "message.missedCall")
116
74
  return "Пропущенный звонок";
117
- const e = (r = t == null ? void 0 : t.data) == null ? void 0 : r.text;
118
- if (e)
119
- return e;
120
- const i = (v = t == null ? void 0 : t.data) == null ? void 0 : v.filename;
75
+ const n = (o = t == null ? void 0 : t.data) == null ? void 0 : o.text;
76
+ if (n)
77
+ return n;
78
+ const i = (s = t == null ? void 0 : t.data) == null ? void 0 : s.filename;
121
79
  return i || "";
122
- }, Ct = (t) => typeof t == "string" ? null : (t == null ? void 0 : t.type) || null, H = A("component.ChatItem.draft"), N = l(() => {
123
- var e;
124
- const t = mt.getChatDraft(String(S ?? ""), n.chat.chatId);
125
- if (!(!t || t.edit) && !(!t.listPreviewText && !t.listPreviewFile) && !(!(t.text || "").trim() && !t.file && !((e = t.files) != null && e.length)))
80
+ }, V = (t) => E(t) ? O : _(t), X = (t) => typeof t == "string" ? null : (t == null ? void 0 : t.type) || null, b = x("component.ChatItem.draft"), k = r(() => {
81
+ var n;
82
+ const t = W.getChatDraft(String(m ?? ""), e.chat.chatId);
83
+ if (!(!t || t.edit) && !(!t.listPreviewText && !t.listPreviewFile) && !(!(t.text || "").trim() && !t.file && !((n = t.files) != null && n.length)))
126
84
  return t;
127
- }), w = l(() => !!N.value), g = l(() => {
128
- var e;
129
- const t = N.value;
130
- return t ? t.file ? (((e = t.listPreviewFile) == null ? void 0 : e.name) || t.file.name || "").trim() : (t.listPreviewText || "").trim() : "";
131
- }), J = l(() => {
132
- const t = N.value;
85
+ }), B = r(() => !!k.value), d = r(() => {
86
+ var n;
87
+ const t = k.value;
88
+ return t ? t.file ? (((n = t.listPreviewFile) == null ? void 0 : n.name) || t.file.name || "").trim() : (t.listPreviewText || "").trim() : "";
89
+ }), pt = r(() => {
90
+ const t = k.value;
133
91
  if (!(t != null && t.file)) return null;
134
- const e = t.listPreviewFile, i = ((e == null ? void 0 : e.type) || t.file.type || "").toLowerCase(), u = ((e == null ? void 0 : e.name) || t.file.name || "").toLowerCase();
135
- return i === "sticker" || u.endsWith(".tgs") || u.endsWith(".webp") ? X : i === "image" || i.includes("image") ? ct : i === "video" || i.includes("video") ? rt : i === "audio" || i.includes("audio") ? u.includes("voice") || u.includes("голос") ? lt : st : i === "file" || u ? j : j;
136
- }), It = l(() => $(g.value || "", null, B.value)), K = l(() => {
137
- var e, i, u;
138
- if (n.chat.typing || w.value)
92
+ 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();
93
+ return i === "sticker" || c.endsWith(".tgs") || c.endsWith(".webp") ? U : i === "image" || i.includes("image") ? J : i === "video" || i.includes("video") ? K : i === "audio" || i.includes("audio") ? c.includes("voice") || c.includes("голос") ? Q : G : i === "file" || c ? R : R;
94
+ }), ht = r(() => j(d.value || "", null, I.value)), gt = r(() => {
95
+ var n, i, c;
96
+ if (e.chat.typing || B.value)
139
97
  return null;
140
- const t = Ct(n.chat.lastMessage);
98
+ if (E(e.chat.lastMessage))
99
+ return Gt;
100
+ const t = X(e.chat.lastMessage);
141
101
  if (!t)
142
102
  return null;
143
103
  if (t === "message.sticker")
144
- return X;
104
+ return U;
145
105
  if (t === "message.image")
146
- return ct;
106
+ return J;
147
107
  if (t === "message.video")
148
- return rt;
108
+ return K;
149
109
  if (t === "message.audio") {
150
- const r = n.chat.lastMessage;
151
- return (r.isVoiceMessage || ((e = r == null ? void 0 : r.data) == null ? void 0 : e.isVoiceMessage)) === !0 ? lt : st;
110
+ const o = e.chat.lastMessage;
111
+ return (o.isVoiceMessage || ((n = o == null ? void 0 : o.data) == null ? void 0 : n.isVoiceMessage)) === !0 ? Q : G;
152
112
  }
153
113
  if (t === "message.missedCall")
154
- return se;
114
+ return zt;
155
115
  if (t === "message.file") {
156
- const r = n.chat.lastMessage, v = ((u = (i = r == null ? void 0 : r.data) == null ? void 0 : i.filename) == null ? void 0 : u.toLowerCase()) || "";
157
- return v.endsWith(".tgs") || v.endsWith(".webp") ? X : j;
116
+ const o = e.chat.lastMessage, s = ((c = (i = o == null ? void 0 : o.data) == null ? void 0 : i.filename) == null ? void 0 : c.toLowerCase()) || "";
117
+ return s.endsWith(".tgs") || s.endsWith(".webp") ? U : R;
158
118
  }
159
119
  return null;
160
- }), Tt = l(() => n.chat.typing ? q[_.value] : w.value ? g.value ? `${H} ${g.value}` : H : G(n.chat.lastMessage)), U = l(() => n.chat.typing ? q[_.value] : G(n.chat.lastMessage)), Q = l(
161
- () => !z.value && ot(g.value || U.value || "")
162
- ), Mt = l(
163
- () => !z.value && ot(n.chat.name || "")
164
- ), Et = l(() => $(U.value || "", null, B.value)), St = l(() => $(n.chat.name || "", null, B.value));
165
- Ft(
166
- () => n.chat.typing,
120
+ }), vt = r(() => e.chat.typing ? M[u.value] : B.value ? d.value ? `${b} ${d.value}` : b : E(e.chat.lastMessage) ? _(e.chat.lastMessage) : V(e.chat.lastMessage)), D = r(() => e.chat.typing ? M[u.value] : V(e.chat.lastMessage)), yt = r(
121
+ () => !A.value && z(d.value || D.value || "")
122
+ ), xt = r(
123
+ () => !A.value && z(e.chat.name || "")
124
+ ), It = r(() => j(D.value || "", null, I.value)), wt = r(() => j(e.chat.name || "", null, I.value));
125
+ _t(
126
+ () => e.chat.typing,
167
127
  () => {
168
- n.chat.typing ? b = setInterval(() => {
169
- _.value < 2 ? _.value += 1 : _.value = 0;
170
- }, 1e3) : (_.value = 0, b && (clearInterval(b), b = void 0));
128
+ e.chat.typing ? l = setInterval(() => {
129
+ u.value < 2 ? u.value += 1 : u.value = 0;
130
+ }, 1e3) : (u.value = 0, l && (clearInterval(l), l = void 0));
171
131
  },
172
132
  { immediate: !0 }
173
133
  );
174
- const Lt = () => {
175
- n.contextMenuTrigger === "hover" && x.value && (p.value = !0);
176
- }, bt = (t) => {
177
- n.contextMenuTrigger === "hover" && (t.relatedTarget instanceof HTMLElement && t.relatedTarget.className == "context-menu__list" ? p.value = !0 : p.value = !1);
178
- }, At = (t) => {
179
- n.contextMenuTrigger === "rightClick" && x.value && Bt(t);
180
- }, Bt = (t) => {
181
- pt(), k.value = !0, F(() => {
182
- const e = document.getElementById("context-menu-rightclick-" + y);
183
- if (e) {
184
- const i = t.clientX, u = t.clientY;
185
- e.style.display = "inherit";
186
- const r = e.getBoundingClientRect();
187
- e.style.display = "none", F(() => {
188
- const v = window.innerWidth, et = window.innerHeight, C = window.scrollX || window.pageXOffset, I = window.scrollY || window.pageYOffset;
189
- let T = i + C, M = u + I;
190
- T + r.width > v + C && (T = i + C - r.width), M + r.height > et + I && (M = u + I - r.height), T < C && (T = C), M < I && (M = I), e.style.top = M + "px", e.style.left = T + "px", e.style.opacity = "1", e.style.display = "inherit";
134
+ const Ct = () => {
135
+ e.contextMenuTrigger === "hover" && L.value && (C.value = !0);
136
+ }, St = (t) => {
137
+ e.contextMenuTrigger === "hover" && (t.relatedTarget instanceof HTMLElement && t.relatedTarget.className == "context-menu__list" ? C.value = !0 : C.value = !1);
138
+ }, Tt = (t) => {
139
+ e.contextMenuTrigger === "rightClick" && L.value && Y(t);
140
+ }, Y = (t) => {
141
+ F(), f.value = !0, H(() => {
142
+ const n = document.getElementById("context-menu-rightclick-" + a);
143
+ if (n) {
144
+ const i = t.clientX, c = t.clientY;
145
+ n.style.display = "inherit";
146
+ const o = n.getBoundingClientRect();
147
+ n.style.display = "none", H(() => {
148
+ const s = window.innerWidth, $ = window.innerHeight, p = window.scrollX || window.pageXOffset, h = window.scrollY || window.pageYOffset;
149
+ let g = i + p, v = c + h;
150
+ g + o.width > s + p && (g = i + p - o.width), v + o.height > $ + h && (v = c + h - o.height), g < p && (g = p), v < h && (v = h), n.style.top = v + "px", n.style.left = g + "px", n.style.opacity = "1", n.style.display = "inherit";
191
151
  });
192
152
  }
193
153
  });
194
- }, Vt = () => {
195
- }, Dt = () => {
196
- }, Z = (t) => {
197
- if (n.contextMenuTrigger === "rightClick" && k.value) {
198
- const e = t.target, i = document.getElementById("context-menu-rightclick-" + y);
199
- (!i || !i.contains(e)) && D();
154
+ }, Et = () => {
155
+ }, kt = () => {
156
+ }, N = (t) => {
157
+ if (e.contextMenuTrigger === "rightClick" && f.value) {
158
+ const n = t.target, i = document.getElementById("context-menu-rightclick-" + a);
159
+ (!i || !i.contains(n)) && T();
200
160
  }
201
- }, tt = () => {
202
- n.contextMenuTrigger === "rightClick" && k.value && D();
161
+ }, P = () => {
162
+ e.contextMenuTrigger === "rightClick" && f.value && T();
203
163
  };
204
- return Pt(() => {
205
- n.contextMenuTrigger === "rightClick" && (document.addEventListener("click", Z), window.addEventListener("scroll", tt, !0), F(() => {
206
- const t = document.getElementById("context-menu-rightclick-" + y);
164
+ Vt(() => {
165
+ e.contextMenuTrigger === "rightClick" && (document.addEventListener("click", N), window.addEventListener("scroll", P, !0), H(() => {
166
+ const t = document.getElementById("context-menu-rightclick-" + a);
207
167
  t && (t.style.display = "none", t.style.opacity = "0");
208
168
  }));
209
- }), Rt(() => {
210
- document.removeEventListener("click", Z), window.removeEventListener("scroll", tt, !0);
211
- }), (t, e) => (o(), a("div", null, [
212
- m("div", {
213
- ref_key: "containerRef",
214
- ref: dt,
215
- class: P(["chat-item__container", gt()]),
216
- "data-testid": "chat-item",
217
- "data-chat-id": n.chat.chatId,
218
- onMouseenter: Lt,
219
- onMouseleave: bt,
220
- onClick: ft,
221
- onContextmenu: Wt(At, ["prevent"])
222
- }, [
223
- m("div", re, [
224
- m("span", {
225
- class: "chat-item__status-user",
226
- style: nt({ backgroundColor: n.chat.status })
227
- }, null, 4),
228
- n.chat.avatar ? (o(), a("img", {
229
- key: 0,
230
- src: n.chat.avatar,
231
- height: "48",
232
- width: "48"
233
- }, null, 8, le)) : (o(), a("div", ue, [
234
- R(Zt)
235
- ]))
236
- ]),
237
- m("div", me, [
238
- m("div", de, [
239
- R(at, {
240
- text: s.chat.name,
241
- position: "bottom"
242
- }, {
243
- default: W(() => [
244
- Mt.value ? (o(), a("div", {
245
- key: 0,
246
- class: "chat-item__name",
247
- innerHTML: St.value
248
- }, null, 8, he)) : (o(), a("div", fe, f(s.chat.name), 1))
249
- ]),
250
- _: 1
251
- }, 8, ["text"]),
252
- s.chat.verified ? (o(), d(te, { key: 0 })) : c("", !0),
253
- $t(t.$slots, "name-suffix", {}, void 0, !0)
254
- ]),
255
- R(at, {
256
- text: Tt.value,
257
- position: "bottom"
258
- }, {
259
- default: W(() => [
260
- s.chat.lastMessage || s.chat.typing || w.value ? (o(), a("div", ve, [
261
- K.value && !w.value ? (o(), d(it(K.value), {
262
- key: 0,
263
- class: "chat-item__message-icon"
264
- })) : c("", !0),
265
- w.value ? (o(), a("span", ge, [
266
- m("span", ye, f(h(H)), 1),
267
- J.value ? (o(), d(it(J.value), {
268
- key: 0,
269
- class: "chat-item__message-icon"
270
- })) : c("", !0),
271
- g.value && Q.value ? (o(), a("span", {
272
- key: 1,
273
- class: "chat-item__draft-text",
274
- innerHTML: It.value
275
- }, null, 8, pe)) : g.value ? (o(), a("span", _e, f(g.value), 1)) : c("", !0)
276
- ])) : Q.value ? (o(), a("span", {
277
- key: 2,
278
- class: "chat-item__last-message-text",
279
- innerHTML: Et.value
280
- }, null, 8, ke)) : (o(), a("span", xe, f(U.value), 1))
281
- ])) : c("", !0)
282
- ]),
283
- _: 1
284
- }, 8, ["text"])
285
- ]),
286
- m("div", we, [
287
- s.chat["lastActivity.time"] && (!x.value || !p.value) ? (o(), a("div", Ce, f(s.chat["lastActivity.time"]), 1)) : c("", !0),
288
- p.value && x.value && s.contextMenuTrigger === "hover" ? (o(), d(Kt, {
289
- key: 1,
290
- mode: "click",
291
- "menu-side": "bottom-right",
292
- actions: s.chat.actions,
293
- onClick: O,
294
- onButtonClick: ht,
295
- onMenuMouseLeave: e[0] || (e[0] = (i) => p.value = !1)
296
- }, {
297
- default: W(() => [...e[2] || (e[2] = [
298
- m("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
299
- ])]),
300
- _: 1
301
- }, 8, ["actions"])) : c("", !0),
302
- (o(), d(jt, { to: "body" }, [
303
- s.contextMenuTrigger === "rightClick" && x.value && k.value ? (o(), d(Qt, {
304
- key: 0,
305
- id: "context-menu-rightclick-" + h(y),
306
- actions: s.chat.actions,
307
- "data-theme": h(Y)().theme ? h(Y)().theme : "light",
308
- onClick: O,
309
- onMouseenter: Vt,
310
- onMouseleave: Dt
311
- }, null, 8, ["id", "actions", "data-theme"])) : c("", !0)
312
- ])),
313
- m("div", Ie, [
314
- h(Ot).includes(s.chat["lastMessage.status"]) ? (o(), a("div", {
315
- key: 0,
316
- class: P(["chat-item__status-message", kt.value])
317
- }, [
318
- s.chat["lastMessage.status"] === "pending" ? (o(), d(h(ne), { key: 0 })) : s.chat["lastMessage.status"] === "error" ? (o(), d(h(ee), { key: 1 })) : s.chat["lastMessage.status"] === "read" ? (o(), d(h(ie), { key: 2 })) : s.chat["lastMessage.status"] === "received" ? (o(), d(h(oe), { key: 3 })) : (o(), d(h(ae), { key: 4 }))
319
- ], 2)) : c("", !0),
320
- xt.value ? (o(), a("div", Te, f(wt.value), 1)) : c("", !0)
321
- ]),
322
- s.chat.countUnread < 1 ? (o(), a("div", Me, [
323
- s.chat.isFixedTop || s.chat.isFixedBottom ? (o(), a("span", Ee)) : c("", !0)
324
- ])) : c("", !0)
325
- ]),
326
- n.showDialogs && s.chat.dialogs ? (o(), a("div", {
327
- key: 0,
328
- class: "chat-item__dialog-buttons",
329
- onClick: e[1] || (e[1] = (i) => L("expand", n.chat))
330
- }, [
331
- n.showDialogs && !s.chat.dialogsExpanded ? (o(), a("button", Se, [...e[3] || (e[3] = [
332
- m("span", {
333
- id: "noSelectButton",
334
- class: "pi pi-angle-down"
335
- }, null, -1)
336
- ])])) : c("", !0),
337
- n.showDialogs && s.chat.dialogsExpanded ? (o(), a("button", Le, [...e[4] || (e[4] = [
338
- m("span", {
339
- id: "noSelectButton",
340
- class: "pi pi-angle-up"
341
- }, null, -1)
342
- ])])) : c("", !0)
343
- ])) : c("", !0)
344
- ], 42, ce),
345
- n.showDialogs && s.chat.dialogsExpanded ? (o(), a("div", be, [
346
- (o(!0), a(Xt, null, Yt(_t(), (i) => (o(), a("div", {
347
- key: i.dialogId,
348
- class: P(["dialog__item", yt(i)]),
349
- onClick: (u) => vt(i)
350
- }, [
351
- i.icon ? (o(), a("img", {
352
- key: 0,
353
- class: "dialog__icon",
354
- src: i.icon,
355
- height: "16",
356
- width: "16"
357
- }, null, 8, Be)) : (o(), a("span", Ve)),
358
- m("div", De, [
359
- m("div", He, f(i.name), 1),
360
- m("div", Ne, f(i["lastActivity.time"]), 1)
361
- ]),
362
- i.countUnread > 0 ? (o(), a("div", {
363
- key: 2,
364
- class: "chat-item__unread",
365
- style: nt(i.colorUnread ? { backgroundColor: i.colorUnread } : {})
366
- }, f(i.countUnread > 99 ? "99+" : i.countUnread), 5)) : c("", !0)
367
- ], 10, Ae))), 128))
368
- ])) : c("", !0)
369
- ]));
169
+ }), bt(() => {
170
+ document.removeEventListener("click", N), window.removeEventListener("scroll", P, !0);
171
+ });
172
+ const q = { chatAppId: m, getTheme: nt, isNative: A, emojiSrc: I, messageDraftStore: W, props: e, emit: w, contextMenuId: a, buttonMenuVisible: C, contextMenuVisible: f, preventEmit: S, containerRef: it, hasChatActions: L, BCMclick: ot, selectChat: rt, selectDialog: ct, getClass: st, getDialogClass: ut, clickAction: at, hideContextMenu: T, closeAllOtherContextMenus: F, getSortedDialogs: lt, status: mt, showChatUnread: ft, chatUnreadText: dt, get timer() {
173
+ return l;
174
+ }, set timer(t) {
175
+ l = t;
176
+ }, typingIndex: u, typingText: M, deletedMessageLabel: O, isLastMessageDeleted: E, getLastMessageOriginalText: _, getLastMessageText: V, getMessageType: X, draftLabel: b, draftSnapshot: k, hasDraftPreview: B, draftPreview: d, draftFileIcon: pt, draftTextHtml: ht, messageIcon: gt, lastMessageTooltipText: vt, showText: D, useAppleEmojisInLastMessage: yt, useAppleEmojisInName: xt, lastMessageHtml: It, nameHtml: wt, onMouseEnter: Ct, onMouseLeave: St, onRightClick: Tt, showContextMenu: Y, onContextMenuMouseEnter: Et, onContextMenuMouseLeave: kt, handleClickOutside: N, handleScroll: P, get statuses() {
177
+ return Dt;
178
+ }, Tooltip: jt, ButtonContextMenu: Rt, ContextMenu: Ut, AvatarIcon: Wt, VerifiedBadge: Ft, get ErrorStatusIcon() {
179
+ return Ot;
180
+ }, get PendingStatusIcon() {
181
+ return Xt;
182
+ }, get ReadStatusIcon() {
183
+ return Yt;
184
+ }, get ReceivedStatusIcon() {
185
+ return qt;
186
+ }, get SentStatusIcon() {
187
+ return $t;
188
+ } };
189
+ return Object.defineProperty(q, "__isScriptSetup", { enumerable: !1, value: !0 }), q;
370
190
  }
371
191
  });
372
192
  export {
373
- fn as default
193
+ Ae as default
374
194
  };
@@ -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
  };