@mobilon-dev/chotto 0.3.121 → 0.3.123

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 (219) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +4 -29
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +59 -40
  4. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +4 -47
  5. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +82 -55
  6. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +51 -86
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -32
  8. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +28 -7
  9. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +35 -22
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -30
  11. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +4 -37
  12. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +21 -7
  13. package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +19 -30
  14. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +4 -70
  15. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +108 -76
  16. package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
  17. package/dist/components/1_icons/CheckIcon.vue.js +13 -26
  18. package/dist/components/1_icons/CloseButtonIcon.vue.js +10 -16
  19. package/dist/components/1_icons/CloseIcon.vue.js +10 -16
  20. package/dist/components/1_icons/ContactCRMIcon.vue.js +10 -16
  21. package/dist/components/1_icons/DeletedMessageIcon.vue.js +11 -17
  22. package/dist/components/1_icons/MenuIcon.vue.js +10 -16
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
  24. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
  26. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
  28. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
  30. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
  32. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
  33. package/dist/components/1_icons/SearchIcon.vue.js +17 -29
  34. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  35. package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
  36. package/dist/components/1_icons/VerifiedBadge.vue.js +19 -25
  37. package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
  38. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +402 -552
  39. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
  40. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
  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 +13 -19
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  49. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
  50. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
  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 +4 -74
  54. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +46 -12
  55. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
  56. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
  57. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
  58. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
  59. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
  60. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -62
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +98 -80
  63. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
  64. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
  67. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
  68. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
  69. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +45 -76
  70. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -100
  71. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +91 -16
  72. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -79
  73. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +111 -88
  74. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
  75. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
  76. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
  77. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
  78. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
  79. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
  80. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
  81. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
  82. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
  83. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
  84. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
  85. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +58 -32
  86. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
  87. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
  88. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
  89. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
  90. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
  91. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +35 -41
  92. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
  93. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +314 -131
  94. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
  95. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
  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 +22 -34
  98. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
  99. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
  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 +24 -52
  102. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
  103. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +68 -36
  104. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +37 -71
  105. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +62 -83
  106. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
  107. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
  108. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
  109. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
  110. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
  111. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +42 -22
  112. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -460
  113. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +499 -181
  114. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
  115. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
  116. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
  117. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
  118. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
  119. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
  120. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
  121. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
  122. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
  123. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
  124. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
  125. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
  127. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  128. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
  129. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -47
  131. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +46 -37
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
  133. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
  135. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
  136. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue.js +4 -52
  137. package/dist/components/2_feed_elements/FeedReplyQuote/FeedReplyQuote.vue2.js +39 -16
  138. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -270
  139. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +274 -95
  140. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -409
  141. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +422 -143
  142. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
  143. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
  144. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -57
  145. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +69 -41
  146. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +4 -97
  147. package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +173 -102
  148. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
  149. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
  150. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
  151. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
  152. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
  153. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
  154. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
  155. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
  156. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
  157. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
  158. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
  159. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
  160. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
  161. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
  162. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
  163. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
  164. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
  165. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
  166. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
  167. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
  168. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
  169. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +118 -34
  170. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
  171. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
  172. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -94
  173. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +76 -10
  174. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
  175. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
  176. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -348
  177. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +339 -97
  178. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
  179. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  180. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -308
  181. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +299 -89
  182. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
  183. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
  184. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -321
  185. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +338 -96
  186. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
  187. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
  188. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +19 -36
  189. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
  190. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
  191. package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
  192. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
  193. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
  194. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
  195. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
  196. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
  197. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
  198. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -170
  199. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +336 -239
  200. package/dist/components/3_compounds/ChatInput/icons/ArrowIcon.vue.js +25 -43
  201. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
  202. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
  203. package/dist/components/3_compounds/ChatList/ChatList.vue.js +166 -256
  204. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +39 -57
  205. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  206. package/dist/components/3_compounds/Feed/Feed.vue.js +4 -185
  207. package/dist/components/3_compounds/Feed/Feed.vue2.js +314 -161
  208. package/dist/components/3_compounds/Feed/composables/useFeedScroll.js +19 -17
  209. package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
  210. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
  211. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  212. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
  213. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
  214. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
  215. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
  216. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +18 -33
  217. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +59 -90
  218. package/dist/types/src/components/3_compounds/Feed/composables/useFeedScroll.d.ts +2 -0
  219. package/package.json +1 -1
@@ -1,22 +1,58 @@
1
- import { defineComponent as Ge, inject as U, computed as n, unref as Z, toRefs as Ye, ref as d, watch as W, nextTick as qe } from "vue";
2
- import { useMessageActions as Ve } from "../../../hooks/messages/useMessageActions.js";
3
- import { useMessageMenuActions as Be } from "../../../hooks/messages/useMessageMenuActions.js";
1
+ import { defineComponent as We, inject as Y, computed as r, unref as a, toRefs as et, ref as g, watch as de, createElementBlock as u, openBlock as n, normalizeClass as Z, createCommentVNode as p, createElementVNode as o, createVNode as P, withCtx as $, createTextVNode as b, toDisplayString as c, Fragment as y, createBlock as T, withDirectives as q, vShow as me, vModelText as tt, Transition as ve, Teleport as at, normalizeStyle as st, nextTick as lt } from "vue";
2
+ import { useMessageActions as nt } from "../../../hooks/messages/useMessageActions.js";
3
+ import { useMessageMenuActions as ot } from "../../../hooks/messages/useMessageMenuActions.js";
4
4
  import "../../../node_modules/linkifyjs/dist/linkify.js";
5
5
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
6
6
  import "../../../functions/parseMarkdown.js";
7
- import { useSubtextTooltip as He } from "../../../hooks/messages/useSubtextTooltip.js";
8
- import { useStartReply as ze } from "../../../hooks/messages/useStartReply.js";
7
+ import { useSubtextTooltip as ut } from "../../../hooks/messages/useSubtextTooltip.js";
8
+ import { useStartReply as it } from "../../../hooks/messages/useStartReply.js";
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  import "../../../locale/useLocale.js";
12
12
  /* empty css */
13
- import { buildReplyPayload as Je } from "../../../hooks/messages/buildReplyPayload.js";
14
- import Ke from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
15
- import Qe from "../../1_atoms/Tooltip/Tooltip.vue.js";
16
- import Xe from "../DeletedMessageContent/DeletedMessageContent.vue.js";
17
- import Ze from "./icons/IncomingCallIcon.vue.js";
18
- import We from "./icons/OutgoingCallIcon.vue.js";
19
- const ee = "RECOGNITION_READY", te = "SUMMARY_READY", Tt = /* @__PURE__ */ Ge({
13
+ import { buildReplyPayload as rt } from "../../../hooks/messages/buildReplyPayload.js";
14
+ import ct from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
15
+ import pe from "../../1_atoms/Tooltip/Tooltip.vue.js";
16
+ import dt from "../DeletedMessageContent/DeletedMessageContent.vue.js";
17
+ import mt from "./icons/IncomingCallIcon.vue.js";
18
+ import vt from "./icons/OutgoingCallIcon.vue.js";
19
+ const pt = ["messageId"], _t = ["src"], ft = {
20
+ key: 1,
21
+ class: "call-message__subtext"
22
+ }, gt = { class: "call-message__content" }, yt = { class: "call-message__info-container" }, ht = {
23
+ key: 0,
24
+ class: "call-message__time"
25
+ }, Ct = { class: "call-message__header-container" }, xt = { class: "call-message__title-wrapper" }, bt = {
26
+ key: 0,
27
+ class: "call-message__title"
28
+ }, wt = {
29
+ key: 1,
30
+ class: "call-message__title call-message__title--missed"
31
+ }, kt = {
32
+ key: 0,
33
+ class: "call-message__title"
34
+ }, Mt = {
35
+ key: 1,
36
+ class: "call-message__title call-message__title--missed"
37
+ }, Tt = {
38
+ key: 0,
39
+ class: "call-message__missed-info"
40
+ }, Rt = {
41
+ key: 1,
42
+ class: "call-message__audio-wrapper"
43
+ }, Nt = ["src"], It = { class: "call-message__audio-progress" }, St = { class: "call-message__audio-progress-bar" }, At = ["max"], Et = { class: "call-message__audio-time" }, Ft = { class: "call-message__info-container" }, Ot = { class: "call-message__actions" }, Dt = { class: "call-message__time" }, Lt = {
44
+ key: 0,
45
+ class: "call-message__expand-panel"
46
+ }, Ut = { class: "call-message__expand-inner" }, Vt = {
47
+ key: 0,
48
+ class: "call-message__expand-placeholder"
49
+ }, Pt = ["innerHTML"], $t = {
50
+ key: 1,
51
+ class: "call-message__expand-plain"
52
+ }, jt = {
53
+ key: 0,
54
+ class: "call-message__expand-placeholder"
55
+ }, Bt = ["innerHTML"], Ht = { class: "call-message__expand-close-wrap" }, Gt = "RECOGNITION_READY", Yt = "SUMMARY_READY", da = /* @__PURE__ */ We({
20
56
  __name: "CallMessage",
21
57
  props: {
22
58
  message: {
@@ -43,66 +79,65 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", Tt = /* @__PURE__ */ Ge({
43
79
  }
44
80
  },
45
81
  emits: ["action", "reply", "call"],
46
- setup(ae, { expose: ne, emit: le }) {
47
- ne();
48
- const S = U("channels", void 0), A = U("selectedChat", void 0), F = n(() => {
49
- if (S)
50
- return Z(S);
51
- }), P = n(() => {
52
- if (A)
53
- return Z(A);
54
- }), f = le, { menuActions: oe } = Be(() => c.message), L = U("chatAppId"), { startReply: j } = ze(L || ""), c = ae, { message: l, applyStyle: ue } = Ye(c), R = n(() => {
55
- const e = l.value;
82
+ setup(_e, { emit: fe }) {
83
+ const z = Y("channels", void 0), J = Y("selectedChat", void 0), ge = r(() => {
84
+ if (z)
85
+ return a(z);
86
+ }), ye = r(() => {
87
+ if (J)
88
+ return a(J);
89
+ }), R = fe, { menuActions: j } = ot(() => h.message), he = Y("chatAppId"), { startReply: Ce } = it(he || ""), h = _e, { message: s, applyStyle: xe } = et(h), N = r(() => {
90
+ const e = s.value;
56
91
  return e.url ? e.url : typeof e.recordUrl == "string" ? e.recordUrl : void 0;
57
92
  }), {
58
- isOpenMenu: se,
59
- buttonMenuVisible: re,
60
- menuAnchorRef: ie,
61
- menuRef: ce,
62
- menuStyle: de,
63
- menuTheme: me,
64
- showMenu: ve,
65
- hideMenu: $,
66
- toggleMenu: pe,
67
- onMenuMouseEnter: fe,
68
- onMenuMouseLeave: ge,
69
- clickAction: G
70
- } = Ve(c.message, f, {
71
- onReply: () => j(Je(c.message, "message.call"))
72
- }), m = d(null), g = n(() => {
93
+ isOpenMenu: be,
94
+ buttonMenuVisible: we,
95
+ menuAnchorRef: ke,
96
+ menuRef: Me,
97
+ menuStyle: Te,
98
+ menuTheme: Re,
99
+ showMenu: K,
100
+ hideMenu: B,
101
+ toggleMenu: Q,
102
+ onMenuMouseEnter: Ne,
103
+ onMenuMouseLeave: Ie,
104
+ clickAction: Se
105
+ } = nt(h.message, R, {
106
+ onReply: () => Ce(rt(h.message, "message.call"))
107
+ }), _ = g(null), I = r(() => {
73
108
  var t;
74
- const e = (t = l.value) == null ? void 0 : t.transcript;
109
+ const e = (t = s.value) == null ? void 0 : t.transcript;
75
110
  return !e || typeof e != "object" ? null : e;
76
- }), h = n(() => {
111
+ }), S = r(() => {
77
112
  var t;
78
- const e = (t = l.value) == null ? void 0 : t.summary;
113
+ const e = (t = s.value) == null ? void 0 : t.summary;
79
114
  return !e || typeof e != "object" ? null : e;
80
- }), Y = n(() => {
115
+ }), X = r(() => {
81
116
  var t;
82
- const e = (t = g.value) == null ? void 0 : t.html;
117
+ const e = (t = I.value) == null ? void 0 : t.html;
83
118
  return typeof e != "string" ? "" : e.trim();
84
- }), q = n(() => {
119
+ }), W = r(() => {
85
120
  var t;
86
- const e = (t = h.value) == null ? void 0 : t.html;
121
+ const e = (t = S.value) == null ? void 0 : t.html;
87
122
  return typeof e != "string" ? "" : e.trim();
88
- }), V = n(() => {
123
+ }), ee = r(() => {
89
124
  var e;
90
- return ((e = g.value) == null ? void 0 : e.status) === ee && Y.value.length > 0;
91
- }), B = n(() => {
125
+ return ((e = I.value) == null ? void 0 : e.status) === Gt && X.value.length > 0;
126
+ }), te = r(() => {
92
127
  var e;
93
- return ((e = h.value) == null ? void 0 : e.status) === te && q.value.length > 0;
94
- }), y = d({
128
+ return ((e = S.value) == null ? void 0 : e.status) === Yt && W.value.length > 0;
129
+ }), A = g({
95
130
  text: !1,
96
131
  summary: !1
97
- }), O = n(() => {
132
+ }), E = r(() => {
98
133
  var e, t;
99
- return !!((e = g.value) != null && e.status) && !((t = l.value) != null && t.isMissedCall);
100
- }), _ = n(() => {
134
+ return !!((e = I.value) != null && e.status) && !((t = s.value) != null && t.isMissedCall);
135
+ }), F = r(() => {
101
136
  var e, t;
102
- return !!((e = h.value) != null && e.status) && !((t = l.value) != null && t.isMissedCall);
103
- }), he = n(() => m.value === "text" ? O.value : m.value === "summary" ? _.value : !1), ye = n(() => {
137
+ return !!((e = S.value) != null && e.status) && !((t = s.value) != null && t.isMissedCall);
138
+ }), Ae = r(() => _.value === "text" ? E.value : _.value === "summary" ? F.value : !1), Ee = r(() => {
104
139
  var e;
105
- switch ((e = g.value) == null ? void 0 : e.status) {
140
+ switch ((e = I.value) == null ? void 0 : e.status) {
106
141
  case "RECOGNITION_PLANNED":
107
142
  return "Распознаем звонок, пожалуйста подождите...";
108
143
  case "RECOGNITION_ERROR":
@@ -112,9 +147,9 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", Tt = /* @__PURE__ */ Ge({
112
147
  default:
113
148
  return "Текст звонка недоступен";
114
149
  }
115
- }), xe = n(() => {
150
+ }), Fe = r(() => {
116
151
  var e;
117
- switch ((e = h.value) == null ? void 0 : e.status) {
152
+ switch ((e = S.value) == null ? void 0 : e.status) {
118
153
  case "SUMMARY_PLANNED":
119
154
  return "Формируем резюме, пожалуйста подождите...";
120
155
  case "SUMMARY_ERROR":
@@ -124,7 +159,7 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", Tt = /* @__PURE__ */ Ge({
124
159
  default:
125
160
  return "Резюме недоступно";
126
161
  }
127
- }), a = d(null), x = d(void 0), s = d(!1), v = d(0), r = d(0), p = d(!1), T = d(0), w = [
162
+ }), l = g(null), w = g(void 0), m = g(!1), C = g(0), v = g(0), x = g(!1), O = g(0), H = [
128
163
  {
129
164
  text: "1.0x",
130
165
  speed: 1
@@ -141,69 +176,69 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", Tt = /* @__PURE__ */ Ge({
141
176
  text: "2.0x",
142
177
  speed: 2
143
178
  }
144
- ], E = n(() => w[T.value] ?? w[0]), H = (e) => {
179
+ ], G = r(() => H[O.value] ?? H[0]), Oe = (e) => {
145
180
  if (!e) return;
146
- const o = e.trim().match(/^(\d+):([0-5]\d)$/);
147
- if (!o) return;
148
- const i = Number(o[1]), u = Number(o[2]);
149
- if (!(Number.isNaN(i) || Number.isNaN(u)))
150
- return i * 60 + u;
151
- }, D = () => {
181
+ const i = e.trim().match(/^(\d+):([0-5]\d)$/);
182
+ if (!i) return;
183
+ const f = Number(i[1]), d = Number(i[2]);
184
+ if (!(Number.isNaN(f) || Number.isNaN(d)))
185
+ return f * 60 + d;
186
+ }, ae = () => {
152
187
  var e;
153
- s.value = !1, r.value = 0, v.value = H((e = l.value) == null ? void 0 : e.callDuration) ?? 0, p.value = !1, T.value = 0;
188
+ m.value = !1, v.value = 0, C.value = Oe((e = s.value) == null ? void 0 : e.callDuration) ?? 0, x.value = !1, O.value = 0;
154
189
  };
155
- D(), W(
156
- R,
190
+ ae(), de(
191
+ N,
157
192
  (e, t) => {
158
- e !== t && (D(), x.value = void 0, a.value && (a.value.pause(), a.value.currentTime = 0, a.value.removeAttribute("src"), a.value.load()));
193
+ e !== t && (ae(), w.value = void 0, l.value && (l.value.pause(), l.value.currentTime = 0, l.value.removeAttribute("src"), l.value.load()));
159
194
  }
160
195
  );
161
- const k = (e) => {
162
- const t = Math.floor(e / 60), o = Math.floor(e % 60);
163
- return `${t.toString().padStart(2, "0")}:${o.toString().padStart(2, "0")}`;
164
- }, Te = n(() => k(r.value)), be = n(() => k(v.value)), Ce = async () => {
165
- const e = R.value;
166
- if (!(!a.value || !e))
167
- if (s.value)
168
- a.value.pause(), s.value = !1;
196
+ const se = (e) => {
197
+ const t = Math.floor(e / 60), i = Math.floor(e % 60);
198
+ return `${t.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
199
+ }, De = r(() => se(v.value)), Le = r(() => se(C.value)), le = async () => {
200
+ const e = N.value;
201
+ if (!(!l.value || !e))
202
+ if (m.value)
203
+ l.value.pause(), m.value = !1;
169
204
  else
170
205
  try {
171
- x.value || (x.value = e, await qe(), a.value.load()), await a.value.play(), s.value = !0;
206
+ w.value || (w.value = e, await lt(), l.value.load()), await l.value.play(), m.value = !0;
172
207
  } catch (t) {
173
- console.error("Не удалось воспроизвести запись звонка", t), s.value = !1;
208
+ console.error("Не удалось воспроизвести запись звонка", t), m.value = !1;
174
209
  }
175
- }, Re = () => {
176
- T.value = (T.value + 1) % w.length, a.value && (a.value.playbackRate = E.value.speed);
210
+ }, Ue = () => {
211
+ O.value = (O.value + 1) % H.length, l.value && (l.value.playbackRate = G.value.speed);
177
212
  };
178
- W(
179
- () => r.value,
213
+ de(
214
+ () => v.value,
180
215
  () => {
181
- a.value && p.value && (a.value.duration !== 1 / 0 && !Number.isNaN(a.value.duration) && (a.value.currentTime = r.value), Math.abs(r.value - v.value) < 0.1 && (s.value = !1));
216
+ l.value && x.value && (l.value.duration !== 1 / 0 && !Number.isNaN(l.value.duration) && (l.value.currentTime = v.value), Math.abs(v.value - C.value) < 0.1 && (m.value = !1));
182
217
  }
183
218
  );
184
- const we = () => {
185
- a.value && p.value && a.value.duration !== 1 / 0 && !Number.isNaN(a.value.duration) && (a.value.currentTime = r.value), p.value = !1;
186
- }, Ie = () => {
187
- if (!a.value) return;
188
- const e = a.value;
189
- if (v.value = 0, r.value = e.currentTime || 0, e.duration === 1 / 0 || Number.isNaN(e.duration)) {
219
+ const ne = () => {
220
+ l.value && x.value && l.value.duration !== 1 / 0 && !Number.isNaN(l.value.duration) && (l.value.currentTime = v.value), x.value = !1;
221
+ }, Ve = () => {
222
+ if (!l.value) return;
223
+ const e = l.value;
224
+ if (C.value = 0, v.value = e.currentTime || 0, e.duration === 1 / 0 || Number.isNaN(e.duration)) {
190
225
  e.currentTime = 1e101;
191
226
  const t = () => {
192
- a.value && (v.value = a.value.duration || 0, r.value = 0, a.value.currentTime = 0);
227
+ l.value && (C.value = l.value.duration || 0, v.value = 0, l.value.currentTime = 0);
193
228
  };
194
229
  e.addEventListener("timeupdate", t, { once: !0 });
195
230
  } else
196
- v.value = e.duration || 0;
197
- e.playbackRate = E.value.speed;
198
- }, Ne = () => {
199
- a.value && (p.value || (r.value = a.value.currentTime), a.value.ended && s.value && (s.value = !1));
200
- }, Me = () => {
201
- s.value = !1;
202
- }, Se = () => {
203
- console.error("Не удалось загрузить запись звонка"), s.value = !1, x.value = void 0, a.value && (a.value.pause(), a.value.currentTime = 0, a.value.removeAttribute("src"), a.value.load());
204
- }, Ae = n(() => {
231
+ C.value = e.duration || 0;
232
+ e.playbackRate = G.value.speed;
233
+ }, Pe = () => {
234
+ l.value && (x.value || (v.value = l.value.currentTime), l.value.ended && m.value && (m.value = !1));
235
+ }, $e = () => {
236
+ m.value = !1;
237
+ }, je = () => {
238
+ console.error("Не удалось загрузить запись звонка"), m.value = !1, w.value = void 0, l.value && (l.value.pause(), l.value.currentTime = 0, l.value.removeAttribute("src"), l.value.load());
239
+ }, D = r(() => {
205
240
  var e;
206
- switch ((e = l.value) == null ? void 0 : e.direction) {
241
+ switch ((e = s.value) == null ? void 0 : e.direction) {
207
242
  case "incoming":
208
243
  return "Входящий";
209
244
  case "outgoing":
@@ -211,10 +246,10 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", Tt = /* @__PURE__ */ Ge({
211
246
  default:
212
247
  return "Звонок";
213
248
  }
214
- }), Oe = n(() => {
215
- var t, o;
216
- const e = (t = l.value) == null ? void 0 : t.isMissedCall;
217
- switch ((o = l.value) == null ? void 0 : o.direction) {
249
+ }), oe = r(() => {
250
+ var t, i;
251
+ const e = (t = s.value) == null ? void 0 : t.isMissedCall;
252
+ switch ((i = s.value) == null ? void 0 : i.direction) {
218
253
  case "incoming":
219
254
  return e ? "#F84932" : "#00AC47";
220
255
  case "outgoing":
@@ -222,58 +257,58 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", Tt = /* @__PURE__ */ Ge({
222
257
  default:
223
258
  return e ? "#5F5F5F" : "#00AC47";
224
259
  }
225
- }), _e = n(() => {
260
+ }), Be = r(() => {
226
261
  var e;
227
- return ((e = l.value) == null ? void 0 : e.direction) === "outgoing" ? "Без ответа" : "Пропущенный";
228
- }), Ee = n(() => {
229
- var I;
230
- const e = l.value, t = F.value, o = P.value;
231
- if (!(e != null && e.dialogId) || !t || !o)
262
+ return ((e = s.value) == null ? void 0 : e.direction) === "outgoing" ? "Без ответа" : "Пропущенный";
263
+ }), ue = r(() => {
264
+ var L;
265
+ const e = s.value, t = ge.value, i = ye.value;
266
+ if (!(e != null && e.dialogId) || !t || !i)
232
267
  return null;
233
- const i = (I = o.dialogs) == null ? void 0 : I.find((b) => b.dialogId === e.dialogId);
234
- if (!(i != null && i.channelId))
268
+ const f = (L = i.dialogs) == null ? void 0 : L.find((k) => k.dialogId === e.dialogId);
269
+ if (!(f != null && f.channelId))
235
270
  return null;
236
- const u = t.find((b) => b.channelId === i.channelId);
237
- return (u == null ? void 0 : u.title) || null;
238
- }), De = He(() => c.message, () => c.subtextTooltipData), ke = {
271
+ const d = t.find((k) => k.channelId === f.channelId);
272
+ return (d == null ? void 0 : d.title) || null;
273
+ }), He = ut(() => h.message, () => h.subtextTooltipData), Ge = {
239
274
  message: "message"
240
275
  };
241
- function Ue(e, t) {
242
- const o = e.position;
276
+ function Ye(e, t) {
277
+ const i = e.position;
243
278
  switch (t) {
244
279
  case "message":
245
- return o === "left" ? "call-message__left" : "call-message__right";
280
+ return i === "left" ? "call-message__left" : "call-message__right";
246
281
  default:
247
282
  return "";
248
283
  }
249
284
  }
250
- const Fe = () => {
251
- if (typeof c.onCall == "function") {
252
- c.onCall(l.value);
285
+ const Ze = () => {
286
+ if (typeof h.onCall == "function") {
287
+ h.onCall(s.value);
253
288
  return;
254
289
  }
255
- f("call", { message: l.value });
256
- }, Pe = () => {
257
- if (!O.value) return;
258
- const e = m.value === "text" ? null : "text";
259
- m.value = e, e === "text" && !V.value && !y.value.text && (y.value.text = !0, f("action", { action: "fetchTranscript", messageId: l.value.messageId }));
260
- }, Le = () => {
261
- if (!_.value) return;
262
- const e = m.value === "summary" ? null : "summary";
263
- m.value = e, e === "summary" && !B.value && !y.value.summary && (y.value.summary = !0, f("action", { action: "fetchCallSummary", messageId: l.value.messageId }));
264
- }, z = async () => {
265
- var t, o, i;
266
- const e = R.value;
290
+ R("call", { message: s.value });
291
+ }, qe = () => {
292
+ if (!E.value) return;
293
+ const e = _.value === "text" ? null : "text";
294
+ _.value = e, e === "text" && !ee.value && !A.value.text && (A.value.text = !0, R("action", { action: "fetchTranscript", messageId: s.value.messageId }));
295
+ }, ze = () => {
296
+ if (!F.value) return;
297
+ const e = _.value === "summary" ? null : "summary";
298
+ _.value = e, e === "summary" && !te.value && !A.value.summary && (A.value.summary = !0, R("action", { action: "fetchCallSummary", messageId: s.value.messageId }));
299
+ }, Je = async () => {
300
+ var t, i, f;
301
+ const e = N.value;
267
302
  if (e)
268
303
  try {
269
- const u = await fetch(e, {
304
+ const d = await fetch(e, {
270
305
  headers: {
271
306
  Accept: "audio/*"
272
307
  }
273
308
  });
274
- if (!u.ok)
275
- throw new Error(`HTTP error! status: ${u.status}`);
276
- const I = u.headers.get("content-type") || "", b = await u.blob(), N = ((o = (t = e.split(".").pop()) == null ? void 0 : t.split("?")[0]) == null ? void 0 : o.toLowerCase()) || "", je = {
309
+ if (!d.ok)
310
+ throw new Error(`HTTP error! status: ${d.status}`);
311
+ const L = d.headers.get("content-type") || "", k = await d.blob(), U = ((i = (t = e.split(".").pop()) == null ? void 0 : t.split("?")[0]) == null ? void 0 : i.toLowerCase()) || "", Qe = {
277
312
  "audio/mpeg": "mp3",
278
313
  "audio/mp3": "mp3",
279
314
  "audio/wav": "wav",
@@ -284,18 +319,283 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", Tt = /* @__PURE__ */ Ge({
284
319
  "audio/flac": "flac",
285
320
  "audio/m4a": "m4a",
286
321
  "audio/x-m4a": "m4a",
287
- "application/octet-stream": N || "mp3"
288
- }, K = N && ["mp3", "wav", "ogg", "webm", "aac", "flac", "m4a"].includes(N) ? N : je[I] || "mp3", Q = e.split("/"), M = decodeURIComponent(((i = Q[Q.length - 1]) == null ? void 0 : i.split("?")[0]) || ""), $e = M ? M.includes(".") ? M : `${M}.${K}` : `call-${l.value.messageId}.${K}`, X = window.URL.createObjectURL(b), C = document.createElement("a");
289
- C.href = X, C.download = $e, document.body.appendChild(C), C.click(), document.body.removeChild(C), window.URL.revokeObjectURL(X);
290
- } catch (u) {
291
- console.error("Ошибка при скачивании аудио звонка:", u), e && window.open(e, "_blank");
322
+ "application/octet-stream": U || "mp3"
323
+ }, ie = U && ["mp3", "wav", "ogg", "webm", "aac", "flac", "m4a"].includes(U) ? U : Qe[L] || "mp3", re = e.split("/"), V = decodeURIComponent(((f = re[re.length - 1]) == null ? void 0 : f.split("?")[0]) || ""), Xe = V ? V.includes(".") ? V : `${V}.${ie}` : `call-${s.value.messageId}.${ie}`, ce = window.URL.createObjectURL(k), M = document.createElement("a");
324
+ M.href = ce, M.download = Xe, document.body.appendChild(M), M.click(), document.body.removeChild(M), window.URL.revokeObjectURL(ce);
325
+ } catch (d) {
326
+ console.error("Ошибка при скачивании аудио звонка:", d), e && window.open(e, "_blank");
292
327
  }
293
- }, J = { channelsInjected: S, selectedChatInjected: A, channels: F, selectedChat: P, emit: f, menuActions: oe, chatAppId: L, startReply: j, props: c, message: l, applyStyle: ue, callRecordUrl: R, isOpenMenu: se, buttonMenuVisible: re, menuAnchorRef: ie, menuRef: ce, menuStyle: de, menuTheme: me, showMenu: ve, hideMenu: $, toggleMenu: pe, onMenuMouseEnter: fe, onMenuMouseLeave: ge, clickAction: G, expandedPanel: m, recognitionReadyStatus: ee, summaryReadyStatus: te, transcriptData: g, summaryData: h, transcriptHtml: Y, summaryHtml: q, isTranscriptReady: V, isCallSummaryReady: B, requestedOnDemand: y, hasTextOption: O, hasSummaryOption: _, isExpandedPanelVisible: he, transcriptPlaceholderText: ye, summaryPlaceholderText: xe, player: a, lazyAudioSrc: x, isPlaying: s, audioDuration: v, currentTime: r, isSeeking: p, speedIndex: T, speedOptions: w, currentSpeed: E, parseCallDurationToSeconds: H, resetAudioState: D, formatTime: k, formatCurrentTime: Te, formatDuration: be, togglePlayPause: Ce, cycleSpeed: Re, handleSeekEnd: we, handleLoadedMetadata: Ie, handleTimeUpdate: Ne, handleEnded: Me, handleAudioError: Se, callDirectionTitle: Ae, callIconColor: Oe, missedCallLabel: _e, channelTitle: Ee, subtextTooltipText: De, elementType: ke, getClass: Ue, handleCall: Fe, handleText: Pe, handleResume: Le, downloadAudio: z, handleActionClick: (e) => {
294
- e.action === "download" ? (z(), $()) : G(e);
295
- }, ContextMenu: Ke, Tooltip: Qe, DeletedMessageContent: Xe, IncomingCallIcon: Ze, OutgoingCallIcon: We };
296
- return Object.defineProperty(J, "__isScriptSetup", { enumerable: !1, value: !0 }), J;
328
+ }, Ke = (e) => {
329
+ e.action === "download" ? (Je(), B()) : Se(e);
330
+ };
331
+ return (e, t) => (n(), u("div", {
332
+ ref_key: "menuAnchorRef",
333
+ ref: ke,
334
+ class: Z([
335
+ Ye(a(s), Ge.message),
336
+ a(xe)(a(s))
337
+ ]),
338
+ messageId: a(s).messageId,
339
+ onMouseenter: t[5] || (t[5] = //@ts-ignore
340
+ (...i) => a(K) && a(K)(...i)),
341
+ onMouseleave: t[6] || (t[6] = //@ts-ignore
342
+ (...i) => a(B) && a(B)(...i))
343
+ }, [
344
+ a(s).avatar ? (n(), u("img", {
345
+ key: 0,
346
+ class: "call-message__avatar",
347
+ src: a(s).avatar,
348
+ height: "32",
349
+ width: "32"
350
+ }, null, 8, _t)) : p("", !0),
351
+ a(s).subText ? (n(), u("p", ft, [
352
+ P(pe, {
353
+ text: a(He),
354
+ position: a(s).position === "left" ? "right" : "left",
355
+ offset: 8
356
+ }, {
357
+ default: $(() => [
358
+ b(c(a(s).subText), 1)
359
+ ]),
360
+ _: 1
361
+ }, 8, ["text", "position"])
362
+ ])) : p("", !0),
363
+ o("div", gt, [
364
+ t[10] || (t[10] = o("div", {
365
+ class: "call-message__bottom-shadow",
366
+ "aria-hidden": "true"
367
+ }, null, -1)),
368
+ a(s).deleted ? (n(), u(y, { key: 0 }, [
369
+ P(dt),
370
+ o("div", yt, [
371
+ a(s).time ? (n(), u("span", ht, c(a(s).time), 1)) : p("", !0)
372
+ ])
373
+ ], 64)) : (n(), u(y, { key: 1 }, [
374
+ o("div", Ct, [
375
+ o("div", xt, [
376
+ a(s).direction === "incoming" || !a(s).direction ? (n(), T(mt, {
377
+ key: 0,
378
+ class: "call-message__direction-icon",
379
+ color: oe.value
380
+ }, null, 8, ["color"])) : (n(), T(vt, {
381
+ key: 1,
382
+ class: "call-message__direction-icon",
383
+ color: oe.value
384
+ }, null, 8, ["color"])),
385
+ ue.value ? (n(), T(pe, {
386
+ key: 2,
387
+ text: ue.value,
388
+ position: "top",
389
+ offset: 8
390
+ }, {
391
+ default: $(() => [
392
+ a(s).isMissedCall ? (n(), u("span", wt, [
393
+ b(c(D.value) + " ", 1),
394
+ a(s).direction !== "incoming" ? (n(), u(y, { key: 0 }, [
395
+ b(" звонок ")
396
+ ], 64)) : (n(), u(y, { key: 1 }, [
397
+ b(" звонок ")
398
+ ], 64))
399
+ ])) : (n(), u("span", bt, c(D.value) + " звонок ", 1))
400
+ ]),
401
+ _: 1
402
+ }, 8, ["text"])) : (n(), u(y, { key: 3 }, [
403
+ a(s).isMissedCall ? (n(), u("span", Mt, [
404
+ b(c(D.value) + " ", 1),
405
+ a(s).direction !== "incoming" ? (n(), u(y, { key: 0 }, [
406
+ b(" звонок ")
407
+ ], 64)) : (n(), u(y, { key: 1 }, [
408
+ b(" звонок ")
409
+ ], 64))
410
+ ])) : (n(), u("span", kt, c(D.value) + " звонок ", 1))
411
+ ], 64))
412
+ ]),
413
+ a(s).isMissedCall ? (n(), u("p", Tt, c(Be.value) + ": " + c(a(s).callAttemptDuration), 1)) : p("", !0),
414
+ N.value && !a(s).isMissedCall ? (n(), u("div", Rt, [
415
+ o("audio", {
416
+ ref_key: "player",
417
+ ref: l,
418
+ src: w.value,
419
+ type: "audio/webm",
420
+ onLoadedmetadata: Ve,
421
+ onTimeupdate: Pe,
422
+ onEnded: $e,
423
+ onError: je
424
+ }, null, 40, Nt),
425
+ q(o("button", {
426
+ class: "call-message__audio-play",
427
+ type: "button",
428
+ onClick: le
429
+ }, [...t[7] || (t[7] = [
430
+ o("div", { class: "call-message__audio-play-icon" }, [
431
+ o("svg", {
432
+ width: "20",
433
+ height: "23",
434
+ viewBox: "0 0 20 23",
435
+ fill: "none",
436
+ xmlns: "http://www.w3.org/2000/svg"
437
+ }, [
438
+ o("path", {
439
+ d: "M18.99 12.9934L3.0825 22.2234C1.7325 23.0059 0 22.0584 0 20.4809V2.02087C0 0.44587 1.73 -0.50413 3.0825 0.28087L18.99 9.51087C19.2971 9.68618 19.5524 9.93959 19.7299 10.2454C19.9075 10.5512 20.001 10.8985 20.001 11.2521C20.001 11.6057 19.9075 11.953 19.7299 12.2589C19.5524 12.5647 19.2971 12.8181 18.99 12.9934Z",
440
+ fill: "#5F5F5F"
441
+ })
442
+ ])
443
+ ], -1)
444
+ ])], 512), [
445
+ [me, !m.value]
446
+ ]),
447
+ q(o("button", {
448
+ class: "call-message__audio-pause",
449
+ type: "button",
450
+ onClick: le
451
+ }, [...t[8] || (t[8] = [
452
+ o("div", { class: "call-message__audio-pause-icon" }, [
453
+ o("svg", {
454
+ width: "20",
455
+ height: "23",
456
+ viewBox: "0 0 20 23",
457
+ fill: "none",
458
+ xmlns: "http://www.w3.org/2000/svg"
459
+ }, [
460
+ o("path", {
461
+ d: "M3.75 0C4.74456 0 5.69839 0.395088 6.40165 1.09835C7.10491 1.80161 7.5 2.75544 7.5 3.75V18.75C7.5 19.7446 7.10491 20.6984 6.40165 21.4017C5.69839 22.1049 4.74456 22.5 3.75 22.5C2.75544 22.5 1.80161 22.1049 1.09835 21.4017C0.395088 20.6984 0 19.7446 0 18.75V3.75C0 2.75544 0.395088 1.80161 1.09835 1.09835C1.80161 0.395088 2.75544 0 3.75 0ZM16.25 0C17.2446 0 18.1984 0.395088 18.9017 1.09835C19.6049 1.80161 20 2.75544 20 3.75V18.75C20 19.7446 19.6049 20.6984 18.9017 21.4017C18.1984 22.1049 17.2446 22.5 16.25 22.5C15.2554 22.5 14.3016 22.1049 13.5983 21.4017C12.8951 20.6984 12.5 19.7446 12.5 18.75V3.75C12.5 2.75544 12.8951 1.80161 13.5983 1.09835C14.3016 0.395088 15.2554 0 16.25 0Z",
462
+ fill: "#5F5F5F"
463
+ })
464
+ ])
465
+ ], -1)
466
+ ])], 512), [
467
+ [me, m.value]
468
+ ]),
469
+ o("div", It, [
470
+ o("div", St, [
471
+ q(o("input", {
472
+ "onUpdate:modelValue": t[0] || (t[0] = (i) => v.value = i),
473
+ class: "call-message__audio-slider",
474
+ type: "range",
475
+ min: 0,
476
+ max: C.value,
477
+ step: "0.1",
478
+ onMousedown: t[1] || (t[1] = (i) => x.value = !0),
479
+ onMouseup: ne,
480
+ onTouchstartPassive: t[2] || (t[2] = (i) => x.value = !0),
481
+ onTouchendPassive: ne
482
+ }, null, 40, At), [
483
+ [tt, v.value]
484
+ ]),
485
+ o("button", {
486
+ type: "button",
487
+ class: "call-message__audio-speed-btn",
488
+ onClick: Ue
489
+ }, c(G.value.text), 1)
490
+ ]),
491
+ o("div", Et, [
492
+ o("span", null, c(De.value), 1),
493
+ o("span", null, c(Le.value), 1)
494
+ ])
495
+ ])
496
+ ])) : p("", !0)
497
+ ]),
498
+ o("div", Ft, [
499
+ o("div", Ot, [
500
+ !a(s).isMissedCall && (E.value || F.value) ? (n(), u(y, { key: 0 }, [
501
+ E.value ? (n(), u("button", {
502
+ key: 0,
503
+ class: Z([
504
+ "call-message__call-button",
505
+ { "call-message__call-button--active": _.value === "text" }
506
+ ]),
507
+ type: "button",
508
+ onClick: qe
509
+ }, " Текст ", 2)) : p("", !0),
510
+ F.value ? (n(), u("button", {
511
+ key: 1,
512
+ class: Z([
513
+ "call-message__call-button",
514
+ { "call-message__call-button--active": _.value === "summary" }
515
+ ]),
516
+ type: "button",
517
+ onClick: ze
518
+ }, " Резюме ", 2)) : p("", !0)
519
+ ], 64)) : p("", !0),
520
+ o("button", {
521
+ class: "call-message__call-button",
522
+ type: "button",
523
+ onClick: Ze
524
+ }, " Перезвонить ")
525
+ ]),
526
+ o("span", Dt, c(a(s).time), 1)
527
+ ]),
528
+ P(ve, { name: "call-message-expand" }, {
529
+ default: $(() => [
530
+ Ae.value ? (n(), u("div", Lt, [
531
+ o("div", Ut, [
532
+ _.value === "text" ? (n(), u(y, { key: 0 }, [
533
+ ee.value ? (n(), u("p", {
534
+ key: 1,
535
+ class: "call-message__expand-plain",
536
+ innerHTML: X.value
537
+ }, null, 8, Pt)) : (n(), u("p", Vt, c(Ee.value), 1))
538
+ ], 64)) : (n(), u("p", $t, [
539
+ te.value ? (n(), u("span", {
540
+ key: 1,
541
+ innerHTML: W.value
542
+ }, null, 8, Bt)) : (n(), u("span", jt, c(Fe.value), 1))
543
+ ]))
544
+ ]),
545
+ o("div", Ht, [
546
+ o("button", {
547
+ type: "button",
548
+ class: "call-message__expand-close",
549
+ onClick: t[3] || (t[3] = (i) => _.value = null)
550
+ }, " Закрыть ")
551
+ ])
552
+ ])) : p("", !0)
553
+ ]),
554
+ _: 1
555
+ }),
556
+ a(we) && a(j).length ? (n(), u("button", {
557
+ key: 0,
558
+ class: "call-message__menu-button",
559
+ onClick: t[4] || (t[4] = //@ts-ignore
560
+ (...i) => a(Q) && a(Q)(...i))
561
+ }, [...t[9] || (t[9] = [
562
+ o("svg", {
563
+ width: "4",
564
+ height: "17",
565
+ viewBox: "0 0 4 17",
566
+ fill: "none",
567
+ xmlns: "http://www.w3.org/2000/svg"
568
+ }, [
569
+ o("path", {
570
+ d: "M3.75 14.375C3.75 14.8723 3.55246 15.3492 3.20083 15.7008C2.84919 16.0525 2.37228 16.25 1.875 16.25C1.37772 16.25 0.900805 16.0525 0.549175 15.7008C0.197544 15.3492 0 14.8723 0 14.375C0 13.8777 0.197544 13.4008 0.549175 13.0492C0.900805 12.6975 1.37772 12.5 1.875 12.5C2.37228 12.5 2.84919 12.6975 3.20083 13.0492C3.55246 13.4008 3.75 13.8777 3.75 14.375ZM3.75 8.125C3.75 8.62228 3.55246 9.09919 3.20083 9.45083C2.84919 9.80246 2.37228 10 1.875 10C1.37772 10 0.900805 9.80246 0.549175 9.45083C0.197544 9.09919 0 8.62228 0 8.125C0 7.62772 0.197544 7.15081 0.549175 6.79917C0.900805 6.44754 1.37772 6.25 1.875 6.25C2.37228 6.25 2.84919 6.44754 3.20083 6.79917C3.55246 7.15081 3.75 7.62772 3.75 8.125ZM3.75 1.875C3.75 2.37228 3.55246 2.84919 3.20083 3.20083C2.84919 3.55246 2.37228 3.75 1.875 3.75C1.37772 3.75 0.900805 3.55246 0.549175 3.20083C0.197544 2.84919 0 2.37228 0 1.875C0 1.37772 0.197544 0.900806 0.549175 0.549175C0.900805 0.197544 1.37772 0 1.875 0C2.37228 0 2.84919 0.197544 3.20083 0.549175C3.55246 0.900806 3.75 1.37772 3.75 1.875Z",
571
+ fill: "#5F5F5F"
572
+ })
573
+ ], -1)
574
+ ])])) : p("", !0),
575
+ (n(), T(at, { to: "body" }, [
576
+ P(ve, null, {
577
+ default: $(() => [
578
+ a(be) && a(j).length ? (n(), T(ct, {
579
+ key: 0,
580
+ ref_key: "menuRef",
581
+ ref: Me,
582
+ class: "call-message__context-menu message-actions-menu",
583
+ style: st(a(Te)),
584
+ "data-theme": a(Re),
585
+ actions: a(j),
586
+ onClick: Ke,
587
+ onMouseenter: a(Ne),
588
+ onMouseleave: a(Ie)
589
+ }, null, 8, ["style", "data-theme", "actions", "onMouseenter", "onMouseleave"])) : p("", !0)
590
+ ]),
591
+ _: 1
592
+ })
593
+ ]))
594
+ ], 64))
595
+ ])
596
+ ], 42, pt));
297
597
  }
298
598
  });
299
599
  export {
300
- Tt as default
600
+ da as default
301
601
  };