@mobilon-dev/chotto 0.3.97 → 0.3.98

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