@mobilon-dev/chotto 0.3.120 → 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 (222) 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/package.json +1 -1
  221. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +0 -21
  222. /package/dist/types/src/components/{2_feed_elements/DeletedMessageContent/icons → 1_icons}/DeletedMessageIcon.vue.d.ts +0 -0
@@ -1,58 +1,22 @@
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";
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";
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 ut } from "../../../hooks/messages/useSubtextTooltip.js";
8
- import { useStartReply as it } from "../../../hooks/messages/useStartReply.js";
7
+ import { useSubtextTooltip as He } from "../../../hooks/messages/useSubtextTooltip.js";
8
+ import { useStartReply as ze } 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 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({
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({
56
20
  __name: "CallMessage",
57
21
  props: {
58
22
  message: {
@@ -79,65 +43,66 @@ const pt = ["messageId"], _t = ["src"], ft = {
79
43
  }
80
44
  },
81
45
  emits: ["action", "reply", "call"],
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;
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;
91
56
  return e.url ? e.url : typeof e.recordUrl == "string" ? e.recordUrl : void 0;
92
57
  }), {
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(() => {
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(() => {
108
73
  var t;
109
- const e = (t = s.value) == null ? void 0 : t.transcript;
74
+ const e = (t = l.value) == null ? void 0 : t.transcript;
110
75
  return !e || typeof e != "object" ? null : e;
111
- }), S = r(() => {
76
+ }), h = n(() => {
112
77
  var t;
113
- const e = (t = s.value) == null ? void 0 : t.summary;
78
+ const e = (t = l.value) == null ? void 0 : t.summary;
114
79
  return !e || typeof e != "object" ? null : e;
115
- }), X = r(() => {
80
+ }), Y = n(() => {
116
81
  var t;
117
- const e = (t = I.value) == null ? void 0 : t.html;
82
+ const e = (t = g.value) == null ? void 0 : t.html;
118
83
  return typeof e != "string" ? "" : e.trim();
119
- }), W = r(() => {
84
+ }), q = n(() => {
120
85
  var t;
121
- const e = (t = S.value) == null ? void 0 : t.html;
86
+ const e = (t = h.value) == null ? void 0 : t.html;
122
87
  return typeof e != "string" ? "" : e.trim();
123
- }), ee = r(() => {
88
+ }), V = n(() => {
124
89
  var e;
125
- return ((e = I.value) == null ? void 0 : e.status) === Gt && X.value.length > 0;
126
- }), te = r(() => {
90
+ return ((e = g.value) == null ? void 0 : e.status) === ee && Y.value.length > 0;
91
+ }), B = n(() => {
127
92
  var e;
128
- return ((e = S.value) == null ? void 0 : e.status) === Yt && W.value.length > 0;
129
- }), A = g({
93
+ return ((e = h.value) == null ? void 0 : e.status) === te && q.value.length > 0;
94
+ }), y = d({
130
95
  text: !1,
131
96
  summary: !1
132
- }), E = r(() => {
97
+ }), O = n(() => {
133
98
  var e, t;
134
- return !!((e = I.value) != null && e.status) && !((t = s.value) != null && t.isMissedCall);
135
- }), F = r(() => {
99
+ return !!((e = g.value) != null && e.status) && !((t = l.value) != null && t.isMissedCall);
100
+ }), _ = n(() => {
136
101
  var e, t;
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(() => {
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(() => {
139
104
  var e;
140
- switch ((e = I.value) == null ? void 0 : e.status) {
105
+ switch ((e = g.value) == null ? void 0 : e.status) {
141
106
  case "RECOGNITION_PLANNED":
142
107
  return "Распознаем звонок, пожалуйста подождите...";
143
108
  case "RECOGNITION_ERROR":
@@ -147,9 +112,9 @@ const pt = ["messageId"], _t = ["src"], ft = {
147
112
  default:
148
113
  return "Текст звонка недоступен";
149
114
  }
150
- }), Fe = r(() => {
115
+ }), xe = n(() => {
151
116
  var e;
152
- switch ((e = S.value) == null ? void 0 : e.status) {
117
+ switch ((e = h.value) == null ? void 0 : e.status) {
153
118
  case "SUMMARY_PLANNED":
154
119
  return "Формируем резюме, пожалуйста подождите...";
155
120
  case "SUMMARY_ERROR":
@@ -159,7 +124,7 @@ const pt = ["messageId"], _t = ["src"], ft = {
159
124
  default:
160
125
  return "Резюме недоступно";
161
126
  }
162
- }), l = g(null), w = g(void 0), m = g(!1), C = g(0), v = g(0), x = g(!1), O = g(0), H = [
127
+ }), a = d(null), x = d(void 0), s = d(!1), v = d(0), r = d(0), p = d(!1), T = d(0), w = [
163
128
  {
164
129
  text: "1.0x",
165
130
  speed: 1
@@ -176,69 +141,69 @@ const pt = ["messageId"], _t = ["src"], ft = {
176
141
  text: "2.0x",
177
142
  speed: 2
178
143
  }
179
- ], G = r(() => H[O.value] ?? H[0]), Oe = (e) => {
144
+ ], E = n(() => w[T.value] ?? w[0]), H = (e) => {
180
145
  if (!e) return;
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 = () => {
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 = () => {
187
152
  var e;
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;
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;
189
154
  };
190
- ae(), de(
191
- N,
155
+ D(), W(
156
+ R,
192
157
  (e, t) => {
193
- e !== t && (ae(), w.value = void 0, l.value && (l.value.pause(), l.value.currentTime = 0, l.value.removeAttribute("src"), l.value.load()));
158
+ e !== t && (D(), x.value = void 0, a.value && (a.value.pause(), a.value.currentTime = 0, a.value.removeAttribute("src"), a.value.load()));
194
159
  }
195
160
  );
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;
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;
204
169
  else
205
170
  try {
206
- w.value || (w.value = e, await lt(), l.value.load()), await l.value.play(), m.value = !0;
171
+ x.value || (x.value = e, await qe(), a.value.load()), await a.value.play(), s.value = !0;
207
172
  } catch (t) {
208
- console.error("Не удалось воспроизвести запись звонка", t), m.value = !1;
173
+ console.error("Не удалось воспроизвести запись звонка", t), s.value = !1;
209
174
  }
210
- }, Ue = () => {
211
- O.value = (O.value + 1) % H.length, l.value && (l.value.playbackRate = G.value.speed);
175
+ }, Re = () => {
176
+ T.value = (T.value + 1) % w.length, a.value && (a.value.playbackRate = E.value.speed);
212
177
  };
213
- de(
214
- () => v.value,
178
+ W(
179
+ () => r.value,
215
180
  () => {
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));
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));
217
182
  }
218
183
  );
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)) {
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)) {
225
190
  e.currentTime = 1e101;
226
191
  const t = () => {
227
- l.value && (C.value = l.value.duration || 0, v.value = 0, l.value.currentTime = 0);
192
+ a.value && (v.value = a.value.duration || 0, r.value = 0, a.value.currentTime = 0);
228
193
  };
229
194
  e.addEventListener("timeupdate", t, { once: !0 });
230
195
  } else
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(() => {
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(() => {
240
205
  var e;
241
- switch ((e = s.value) == null ? void 0 : e.direction) {
206
+ switch ((e = l.value) == null ? void 0 : e.direction) {
242
207
  case "incoming":
243
208
  return "Входящий";
244
209
  case "outgoing":
@@ -246,10 +211,10 @@ const pt = ["messageId"], _t = ["src"], ft = {
246
211
  default:
247
212
  return "Звонок";
248
213
  }
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) {
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) {
253
218
  case "incoming":
254
219
  return e ? "#F84932" : "#00AC47";
255
220
  case "outgoing":
@@ -257,58 +222,58 @@ const pt = ["messageId"], _t = ["src"], ft = {
257
222
  default:
258
223
  return e ? "#5F5F5F" : "#00AC47";
259
224
  }
260
- }), Be = r(() => {
225
+ }), _e = n(() => {
261
226
  var e;
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)
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)
267
232
  return null;
268
- const f = (L = i.dialogs) == null ? void 0 : L.find((k) => k.dialogId === e.dialogId);
269
- if (!(f != null && f.channelId))
233
+ const i = (I = o.dialogs) == null ? void 0 : I.find((b) => b.dialogId === e.dialogId);
234
+ if (!(i != null && i.channelId))
270
235
  return null;
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 = {
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 = {
274
239
  message: "message"
275
240
  };
276
- function Ye(e, t) {
277
- const i = e.position;
241
+ function Ue(e, t) {
242
+ const o = e.position;
278
243
  switch (t) {
279
244
  case "message":
280
- return i === "left" ? "call-message__left" : "call-message__right";
245
+ return o === "left" ? "call-message__left" : "call-message__right";
281
246
  default:
282
247
  return "";
283
248
  }
284
249
  }
285
- const Ze = () => {
286
- if (typeof h.onCall == "function") {
287
- h.onCall(s.value);
250
+ const Fe = () => {
251
+ if (typeof c.onCall == "function") {
252
+ c.onCall(l.value);
288
253
  return;
289
254
  }
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;
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;
302
267
  if (e)
303
268
  try {
304
- const d = await fetch(e, {
269
+ const u = await fetch(e, {
305
270
  headers: {
306
271
  Accept: "audio/*"
307
272
  }
308
273
  });
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 = {
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 = {
312
277
  "audio/mpeg": "mp3",
313
278
  "audio/mp3": "mp3",
314
279
  "audio/wav": "wav",
@@ -319,283 +284,18 @@ const pt = ["messageId"], _t = ["src"], ft = {
319
284
  "audio/flac": "flac",
320
285
  "audio/m4a": "m4a",
321
286
  "audio/x-m4a": "m4a",
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");
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");
327
292
  }
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));
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;
597
297
  }
598
298
  });
599
299
  export {
600
- da as default
300
+ Tt as default
601
301
  };