@mobilon-dev/chotto 0.3.98 → 0.3.99

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 +4 -29
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +61 -42
  4. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +4 -47
  5. package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +82 -55
  6. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +51 -86
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +4 -32
  8. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +28 -7
  9. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +38 -22
  10. package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +2 -33
  11. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +4 -37
  12. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +21 -7
  13. package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +19 -30
  14. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +4 -70
  15. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +108 -76
  16. package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
  17. package/dist/components/1_icons/CheckIcon.vue.js +13 -26
  18. package/dist/components/1_icons/CloseButtonIcon.vue.js +10 -16
  19. package/dist/components/1_icons/CloseIcon.vue.js +10 -16
  20. package/dist/components/1_icons/ContactCRMIcon.vue.js +10 -16
  21. package/dist/components/1_icons/MenuIcon.vue.js +10 -16
  22. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +3 -23
  23. package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +21 -12
  24. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +4 -36
  25. package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +26 -11
  26. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +3 -23
  27. package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +21 -12
  28. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +3 -23
  29. package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +20 -11
  30. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +4 -33
  31. package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +23 -11
  32. package/dist/components/1_icons/SearchIcon.vue.js +17 -29
  33. package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
  34. package/dist/components/1_icons/TelegramIcon.vue.js +20 -32
  35. package/dist/components/1_icons/WhatsAppIcon.vue.js +20 -32
  36. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +396 -546
  37. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +58 -101
  38. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +8 -14
  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 +13 -19
  42. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +10 -16
  43. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +23 -35
  44. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +20 -32
  45. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +11 -17
  46. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
  47. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +20 -32
  48. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +21 -33
  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 +4 -74
  52. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +42 -8
  53. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +4 -62
  54. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +36 -15
  55. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +4 -49
  56. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +45 -22
  57. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +4 -36
  58. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +37 -19
  59. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -61
  60. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +96 -79
  61. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +27 -31
  62. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +2 -13
  63. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -72
  64. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +83 -47
  65. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -19
  66. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +2 -13
  67. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +51 -80
  68. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +4 -182
  69. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +135 -25
  70. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +4 -78
  71. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +95 -73
  72. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -15
  73. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +2 -13
  74. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +33 -39
  75. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -220
  76. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +256 -146
  77. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +41 -39
  78. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +2 -13
  79. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +163 -233
  80. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +4 -164
  81. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +175 -87
  82. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +4 -73
  83. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +60 -34
  84. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +4 -47
  85. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +23 -10
  86. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +4 -52
  87. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +26 -8
  88. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +220 -299
  89. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +33 -39
  90. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +4 -306
  91. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +311 -134
  92. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +12 -18
  93. package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +11 -23
  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 +22 -34
  96. package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +9 -15
  97. package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +14 -26
  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 +24 -52
  100. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +4 -84
  101. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +67 -35
  102. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +38 -72
  103. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +57 -76
  104. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +29 -41
  105. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +115 -176
  106. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +27 -48
  107. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +28 -58
  108. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +4 -54
  109. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +39 -19
  110. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +4 -458
  111. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +471 -160
  112. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +4 -19
  113. package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +22 -12
  114. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +4 -26
  115. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +39 -26
  116. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -482
  117. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +448 -148
  118. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +19 -17
  119. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +2 -13
  120. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +19 -17
  121. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +2 -13
  122. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +4 -17
  123. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
  124. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +3 -16
  125. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
  126. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +4 -67
  127. package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +43 -11
  128. package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +10 -16
  129. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +4 -60
  130. package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +53 -36
  131. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +4 -22
  132. package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +15 -8
  133. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +4 -43
  134. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +25 -10
  135. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +4 -250
  136. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +233 -67
  137. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +4 -315
  138. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +319 -98
  139. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +4 -39
  140. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +22 -12
  141. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +4 -155
  142. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +212 -110
  143. package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +20 -32
  144. package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +20 -32
  145. package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +11 -17
  146. package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +10 -16
  147. package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +11 -17
  148. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +4 -22
  149. package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +23 -17
  150. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +4 -28
  151. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +29 -27
  152. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +4 -142
  153. package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +121 -33
  154. package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +22 -34
  155. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +4 -55
  156. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +30 -8
  157. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +4 -47
  158. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +25 -9
  159. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +4 -56
  160. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +37 -8
  161. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +4 -72
  162. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +59 -10
  163. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +4 -142
  164. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +120 -36
  165. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +4 -49
  166. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +53 -15
  167. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +4 -75
  168. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +63 -10
  169. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +4 -18
  170. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +17 -9
  171. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +4 -346
  172. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +307 -73
  173. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +4 -17
  174. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
  175. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +4 -307
  176. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +269 -65
  177. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +4 -37
  178. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +21 -7
  179. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +4 -307
  180. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +298 -76
  181. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +4 -64
  182. package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +45 -10
  183. package/dist/components/2_modals/CreateChat/CreateChat.vue.js +18 -35
  184. package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +92 -140
  185. package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +49 -96
  186. package/dist/components/2_modals/Modal/Modal.vue.js +50 -59
  187. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +38 -51
  188. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +30 -39
  189. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +4 -155
  190. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +121 -49
  191. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +43 -60
  192. package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +24 -41
  193. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +4 -85
  194. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +210 -149
  195. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +21 -25
  196. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +2 -13
  197. package/dist/components/3_compounds/ChatList/ChatList.vue.js +163 -253
  198. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +32 -50
  199. package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
  200. package/dist/components/3_compounds/Feed/Feed.vue.js +4 -172
  201. package/dist/components/3_compounds/Feed/Feed.vue2.js +257 -126
  202. package/dist/components/3_compounds/SideBar/SideBar.vue.js +202 -279
  203. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +36 -43
  204. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
  205. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +4 -32
  206. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +29 -7
  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 +18 -31
  210. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +56 -85
  211. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- import { defineComponent as Ge, inject as U, computed as n, unref as Z, toRefs as Ye, ref as d, watch as W, nextTick as qe } from "vue";
2
- import { useMessageActions as Ve } from "../../../hooks/messages/useMessageActions.js";
3
- import { useMessageMenuActions as Be } from "../../../hooks/messages/useMessageMenuActions.js";
1
+ import { defineComponent as We, inject as Y, computed as r, unref as a, toRefs as et, ref as g, watch as de, createElementBlock as u, openBlock as n, normalizeClass as Z, createCommentVNode as p, createElementVNode as o, createVNode as P, withCtx as $, createTextVNode as b, toDisplayString as c, Fragment as y, createBlock as T, withDirectives as q, vShow as me, vModelText as tt, Transition as ve, Teleport as at, normalizeStyle as st, nextTick as lt } from "vue";
2
+ import { useMessageActions as nt } from "../../../hooks/messages/useMessageActions.js";
3
+ import { useMessageMenuActions as ot } from "../../../hooks/messages/useMessageMenuActions.js";
4
4
  import "../../../node_modules/linkifyjs/dist/linkify.js";
5
5
  import "../../../node_modules/linkify-string/dist/linkify-string.js";
6
6
  import "../../../functions/parseMarkdown.js";
7
7
  import "../../../hooks/useEmojiNative.js";
8
- import { useSubtextTooltip as He } from "../../../hooks/messages/useSubtextTooltip.js";
9
- import { useStartReply as ze } from "../../../hooks/messages/useStartReply.js";
8
+ import { useSubtextTooltip as ut } from "../../../hooks/messages/useSubtextTooltip.js";
9
+ import { useStartReply as it } from "../../../hooks/messages/useStartReply.js";
10
10
  import "../../../hooks/useMessageDraft.js";
11
11
  import "../../../hooks/useSearchModel.js";
12
12
  import "../../../hooks/useTheme.js";
@@ -14,13 +14,49 @@ import "../../../hooks/useTheme.js";
14
14
  /* empty css */
15
15
  import "../../../locale/useLocale.js";
16
16
  /* empty css */
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({
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({
24
60
  __name: "CallMessage",
25
61
  props: {
26
62
  message: {
@@ -47,66 +83,65 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", wt = /* @__PURE__ */ Ge({
47
83
  }
48
84
  },
49
85
  emits: ["action", "reply", "call"],
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;
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;
60
95
  return e.url ? e.url : typeof e.recordUrl == "string" ? e.recordUrl : void 0;
61
96
  }), {
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(() => {
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(() => {
77
112
  var t;
78
- const e = (t = o.value) == null ? void 0 : t.transcript;
113
+ const e = (t = s.value) == null ? void 0 : t.transcript;
79
114
  return !e || typeof e != "object" ? null : e;
80
- }), h = n(() => {
115
+ }), S = r(() => {
81
116
  var t;
82
- const e = (t = o.value) == null ? void 0 : t.summary;
117
+ const e = (t = s.value) == null ? void 0 : t.summary;
83
118
  return !e || typeof e != "object" ? null : e;
84
- }), Y = n(() => {
119
+ }), X = r(() => {
85
120
  var t;
86
- const e = (t = g.value) == null ? void 0 : t.html;
121
+ const e = (t = I.value) == null ? void 0 : t.html;
87
122
  return typeof e != "string" ? "" : e.trim();
88
- }), q = n(() => {
123
+ }), W = r(() => {
89
124
  var t;
90
- const e = (t = h.value) == null ? void 0 : t.html;
125
+ const e = (t = S.value) == null ? void 0 : t.html;
91
126
  return typeof e != "string" ? "" : e.trim();
92
- }), V = n(() => {
127
+ }), ee = r(() => {
93
128
  var e;
94
- return ((e = g.value) == null ? void 0 : e.status) === ee && Y.value.length > 0;
95
- }), B = n(() => {
129
+ return ((e = I.value) == null ? void 0 : e.status) === Gt && X.value.length > 0;
130
+ }), te = r(() => {
96
131
  var e;
97
- return ((e = h.value) == null ? void 0 : e.status) === te && q.value.length > 0;
98
- }), y = d({
132
+ return ((e = S.value) == null ? void 0 : e.status) === Yt && W.value.length > 0;
133
+ }), A = g({
99
134
  text: !1,
100
135
  summary: !1
101
- }), O = n(() => {
136
+ }), E = r(() => {
102
137
  var e, t;
103
- return !!((e = g.value) != null && e.status) && !((t = o.value) != null && t.isMissedCall);
104
- }), _ = n(() => {
138
+ return !!((e = I.value) != null && e.status) && !((t = s.value) != null && t.isMissedCall);
139
+ }), F = r(() => {
105
140
  var e, t;
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(() => {
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(() => {
108
143
  var e;
109
- switch ((e = g.value) == null ? void 0 : e.status) {
144
+ switch ((e = I.value) == null ? void 0 : e.status) {
110
145
  case "RECOGNITION_PLANNED":
111
146
  return "Распознаем звонок, пожалуйста подождите...";
112
147
  case "RECOGNITION_ERROR":
@@ -116,9 +151,9 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", wt = /* @__PURE__ */ Ge({
116
151
  default:
117
152
  return "Текст звонка недоступен";
118
153
  }
119
- }), xe = n(() => {
154
+ }), Fe = r(() => {
120
155
  var e;
121
- switch ((e = h.value) == null ? void 0 : e.status) {
156
+ switch ((e = S.value) == null ? void 0 : e.status) {
122
157
  case "SUMMARY_PLANNED":
123
158
  return "Формируем резюме, пожалуйста подождите...";
124
159
  case "SUMMARY_ERROR":
@@ -128,7 +163,7 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", wt = /* @__PURE__ */ Ge({
128
163
  default:
129
164
  return "Резюме недоступно";
130
165
  }
131
- }), a = d(null), x = d(void 0), r = d(!1), v = d(0), s = d(0), p = d(!1), T = d(0), w = [
166
+ }), l = g(null), w = g(void 0), m = g(!1), C = g(0), v = g(0), x = g(!1), O = g(0), H = [
132
167
  {
133
168
  text: "1.0x",
134
169
  speed: 1
@@ -145,69 +180,69 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", wt = /* @__PURE__ */ Ge({
145
180
  text: "2.0x",
146
181
  speed: 2
147
182
  }
148
- ], E = n(() => w[T.value] ?? w[0]), H = (e) => {
183
+ ], G = r(() => H[O.value] ?? H[0]), Oe = (e) => {
149
184
  if (!e) return;
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 = () => {
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 = () => {
156
191
  var e;
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;
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;
158
193
  };
159
- D(), W(
160
- R,
194
+ ae(), de(
195
+ N,
161
196
  (e, t) => {
162
- e !== t && (D(), x.value = void 0, a.value && (a.value.pause(), a.value.currentTime = 0, a.value.removeAttribute("src"), a.value.load()));
197
+ e !== t && (ae(), w.value = void 0, l.value && (l.value.pause(), l.value.currentTime = 0, l.value.removeAttribute("src"), l.value.load()));
163
198
  }
164
199
  );
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;
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;
173
208
  else
174
209
  try {
175
- x.value || (x.value = e, await qe(), a.value.load()), await a.value.play(), r.value = !0;
210
+ w.value || (w.value = e, await lt(), l.value.load()), await l.value.play(), m.value = !0;
176
211
  } catch (t) {
177
- console.error("Не удалось воспроизвести запись звонка", t), r.value = !1;
212
+ console.error("Не удалось воспроизвести запись звонка", t), m.value = !1;
178
213
  }
179
- }, Re = () => {
180
- T.value = (T.value + 1) % w.length, a.value && (a.value.playbackRate = E.value.speed);
214
+ }, Ue = () => {
215
+ O.value = (O.value + 1) % H.length, l.value && (l.value.playbackRate = G.value.speed);
181
216
  };
182
- W(
183
- () => s.value,
217
+ de(
218
+ () => v.value,
184
219
  () => {
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));
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));
186
221
  }
187
222
  );
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)) {
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)) {
194
229
  e.currentTime = 1e101;
195
230
  const t = () => {
196
- a.value && (v.value = a.value.duration || 0, s.value = 0, a.value.currentTime = 0);
231
+ l.value && (C.value = l.value.duration || 0, v.value = 0, l.value.currentTime = 0);
197
232
  };
198
233
  e.addEventListener("timeupdate", t, { once: !0 });
199
234
  } else
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(() => {
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(() => {
209
244
  var e;
210
- switch ((e = o.value) == null ? void 0 : e.direction) {
245
+ switch ((e = s.value) == null ? void 0 : e.direction) {
211
246
  case "incoming":
212
247
  return "Входящий";
213
248
  case "outgoing":
@@ -215,10 +250,10 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", wt = /* @__PURE__ */ Ge({
215
250
  default:
216
251
  return "Звонок";
217
252
  }
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) {
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) {
222
257
  case "incoming":
223
258
  return e ? "#F84932" : "#00AC47";
224
259
  case "outgoing":
@@ -226,58 +261,58 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", wt = /* @__PURE__ */ Ge({
226
261
  default:
227
262
  return e ? "#5F5F5F" : "#00AC47";
228
263
  }
229
- }), _e = n(() => {
264
+ }), Be = r(() => {
230
265
  var e;
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)
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)
236
271
  return null;
237
- const i = (I = l.dialogs) == null ? void 0 : I.find((b) => b.dialogId === e.dialogId);
238
- if (!(i != null && i.channelId))
272
+ const f = (L = i.dialogs) == null ? void 0 : L.find((k) => k.dialogId === e.dialogId);
273
+ if (!(f != null && f.channelId))
239
274
  return null;
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 = {
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 = {
243
278
  message: "message"
244
279
  };
245
- function Ue(e, t) {
246
- const l = e.position;
280
+ function Ye(e, t) {
281
+ const i = e.position;
247
282
  switch (t) {
248
283
  case "message":
249
- return l === "left" ? "call-message__left" : "call-message__right";
284
+ return i === "left" ? "call-message__left" : "call-message__right";
250
285
  default:
251
286
  return "";
252
287
  }
253
288
  }
254
- const Fe = () => {
255
- if (typeof c.onCall == "function") {
256
- c.onCall(o.value);
289
+ const Ze = () => {
290
+ if (typeof h.onCall == "function") {
291
+ h.onCall(s.value);
257
292
  return;
258
293
  }
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;
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;
271
306
  if (e)
272
307
  try {
273
- const u = await fetch(e, {
308
+ const d = await fetch(e, {
274
309
  headers: {
275
310
  Accept: "audio/*"
276
311
  }
277
312
  });
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 = {
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 = {
281
316
  "audio/mpeg": "mp3",
282
317
  "audio/mp3": "mp3",
283
318
  "audio/wav": "wav",
@@ -288,18 +323,283 @@ const ee = "RECOGNITION_READY", te = "SUMMARY_READY", wt = /* @__PURE__ */ Ge({
288
323
  "audio/flac": "flac",
289
324
  "audio/m4a": "m4a",
290
325
  "audio/x-m4a": "m4a",
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");
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");
296
331
  }
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;
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));
301
601
  }
302
602
  });
303
603
  export {
304
- wt as default
604
+ _a as default
305
605
  };