@mobilon-dev/chotto 0.3.29 → 0.3.31

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 (322) hide show
  1. package/dist/_virtual/_plugin-vue_export-helper.js +9 -0
  2. package/dist/chotto.css +1 -1
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +7 -0
  4. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +106 -0
  5. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +46 -0
  6. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +7 -0
  7. package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +39 -0
  8. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +7 -0
  9. package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +32 -0
  10. package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +7 -0
  11. package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +77 -0
  12. package/dist/components/1_icons/AvatarIcon.vue.js +42 -0
  13. package/dist/components/1_icons/CheckIcon.vue.js +28 -0
  14. package/dist/components/1_icons/CloseButtonIcon.vue.js +21 -0
  15. package/dist/components/1_icons/ContactCRMIcon.vue.js +21 -0
  16. package/dist/components/1_icons/MenuIcon.vue.js +21 -0
  17. package/dist/components/1_icons/SearchIcon.vue.js +28 -0
  18. package/dist/components/1_icons/SettingsIcon.vue.js +18 -0
  19. package/dist/components/1_icons/TelegramIcon.vue.js +32 -0
  20. package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -0
  21. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +307 -0
  22. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.js +83 -0
  23. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationAttributes.js +60 -0
  24. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationChannels.js +70 -0
  25. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.js +36 -0
  26. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationMenu.js +37 -0
  27. package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationSubMenu.js +69 -0
  28. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +18 -0
  29. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +23 -0
  30. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +21 -0
  31. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +34 -0
  32. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -0
  33. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +21 -0
  34. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +18 -0
  35. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -0
  36. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +32 -0
  37. package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +18 -0
  38. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +7 -0
  39. package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +61 -0
  40. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +7 -0
  41. package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +58 -0
  42. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +7 -0
  43. package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +68 -0
  44. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +7 -0
  45. package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +70 -0
  46. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +106 -0
  47. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +18 -0
  48. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +105 -0
  49. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +25 -0
  50. package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +98 -0
  51. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +7 -0
  52. package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +157 -0
  53. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +7 -0
  54. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +105 -0
  55. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +21 -0
  56. package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +66 -0
  57. package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +206 -0
  58. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +7 -0
  59. package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +210 -0
  60. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +7 -0
  61. package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +126 -0
  62. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +7 -0
  63. package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +38 -0
  64. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +7 -0
  65. package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +41 -0
  66. package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +281 -0
  67. package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +49 -0
  68. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +7 -0
  69. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +193 -0
  70. package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +37 -0
  71. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +7 -0
  72. package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +116 -0
  73. package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +73 -0
  74. package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +93 -0
  75. package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +47 -0
  76. package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +158 -0
  77. package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +49 -0
  78. package/dist/components/2_elements/UserProfile/UserProfile.vue.js +39 -0
  79. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +7 -0
  80. package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +94 -0
  81. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +7 -0
  82. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +380 -0
  83. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +7 -0
  84. package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +57 -0
  85. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +7 -0
  86. package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +476 -0
  87. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +26 -0
  88. package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +4 -0
  89. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +26 -0
  90. package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +4 -0
  91. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +7 -0
  92. package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +20 -0
  93. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +7 -0
  94. package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +18 -0
  95. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +7 -0
  96. package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +42 -0
  97. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +7 -0
  98. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +204 -0
  99. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +7 -0
  100. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +266 -0
  101. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +7 -0
  102. package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +46 -0
  103. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +7 -0
  104. package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +161 -0
  105. package/dist/components/2_feed_elements/MessageReactions/composables/usePositioning.js +104 -0
  106. package/dist/components/2_feed_elements/MessageReactions/composables/useReactions.js +30 -0
  107. package/dist/components/2_feed_elements/MessageReactions/composables/useReactionsPanel.js +90 -0
  108. package/dist/components/2_feed_elements/MessageReactions/composables/useReactionsState.js +32 -0
  109. package/dist/components/2_feed_elements/MessageReactions/utils/quickReactions.js +17 -0
  110. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +73 -0
  111. package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +4 -0
  112. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +7 -0
  113. package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +39 -0
  114. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +7 -0
  115. package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +35 -0
  116. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +7 -0
  117. package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +46 -0
  118. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +7 -0
  119. package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +71 -0
  120. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +7 -0
  121. package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +119 -0
  122. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +7 -0
  123. package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +27 -0
  124. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +7 -0
  125. package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +75 -0
  126. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +7 -0
  127. package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +23 -0
  128. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +7 -0
  129. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +258 -0
  130. package/dist/components/2_feed_elements/StickerMessage/libs/tgs-player/lottie-player.esm.js +6469 -0
  131. package/dist/components/2_feed_elements/StickerMessage/libs/tgs-player/tgs-player.esm.js +7216 -0
  132. package/dist/components/2_feed_elements/StickerMessage/utils/stickerUtils.js +10 -0
  133. package/dist/components/2_feed_elements/StickerMessage/utils/suppress-lit-warning.js +21 -0
  134. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +7 -0
  135. package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +18 -0
  136. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +7 -0
  137. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +174 -0
  138. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +7 -0
  139. package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +32 -0
  140. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +7 -0
  141. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +286 -0
  142. package/dist/{CreateChat-2MSB5_mE.js → components/2_modals/CreateChat/CreateChat.vue.js} +8 -7
  143. package/dist/components/2_modals/CreateChat/CreateChat.vue2.js +1 -0
  144. package/dist/{CreateChat2-CMpXJzp0.js → components/2_modals/CreateChat2/CreateChat2.vue.js} +4 -3
  145. package/dist/{CreateDialog-CcDtIhwf.js → components/2_modals/CreateDialog/CreateDialog.vue.js} +12 -11
  146. package/dist/components/2_modals/Modal/Modal.vue.js +69 -0
  147. package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +46 -0
  148. package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +43 -0
  149. package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +7 -0
  150. package/dist/{ModalVideoRecorder-BCwswaCl.js → components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js} +48 -49
  151. package/dist/components/2_modals/SelectUser/SelectUser.vue.js +63 -0
  152. package/dist/{SelectUser2-C9PtiaqO.js → components/2_modals/SelectUser2/SelectUser2.vue.js} +4 -3
  153. package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +7 -0
  154. package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +192 -0
  155. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +35 -0
  156. package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +4 -0
  157. package/dist/components/3_compounds/ChatList/ChatList.vue.js +186 -0
  158. package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +27 -0
  159. package/dist/components/3_compounds/ChatList/composables/useChatListActions.js +16 -0
  160. package/dist/components/3_compounds/ChatList/composables/useChatListFilter.js +27 -0
  161. package/dist/components/3_compounds/ChatList/composables/useChatListScroll.js +47 -0
  162. package/dist/components/3_compounds/ChatList/composables/useChatListSelection.js +28 -0
  163. package/dist/components/3_compounds/Feed/Feed.vue.js +7 -0
  164. package/dist/components/3_compounds/Feed/Feed.vue2.js +295 -0
  165. package/dist/components/3_compounds/Feed/assets/chat-background.svg.js +7 -0
  166. package/dist/components/3_compounds/Feed/composables/useFeedButton.js +17 -0
  167. package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +29 -0
  168. package/dist/components/3_compounds/Feed/composables/useFeedGrouping.js +15 -0
  169. package/dist/components/3_compounds/Feed/composables/useFeedKeyboard.js +15 -0
  170. package/dist/components/3_compounds/Feed/composables/useFeedLoadMore.js +62 -0
  171. package/dist/components/3_compounds/Feed/composables/useFeedMessageVisibility.js +33 -0
  172. package/dist/components/3_compounds/Feed/composables/useFeedReply.js +42 -0
  173. package/dist/components/3_compounds/Feed/composables/useFeedScroll.js +63 -0
  174. package/dist/components/3_compounds/Feed/composables/useFeedScrollTo.js +18 -0
  175. package/dist/components/3_compounds/Feed/composables/useStickyDate.js +61 -0
  176. package/dist/components/3_compounds/Feed/functions/throttle.js +11 -0
  177. package/dist/components/3_compounds/SideBar/SideBar.vue.js +190 -0
  178. package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +63 -0
  179. package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +18 -0
  180. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +7 -0
  181. package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +53 -0
  182. package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +21 -0
  183. package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +15 -0
  184. package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +33 -0
  185. package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +104 -0
  186. package/dist/functions/createReactionHandlers.js +19 -0
  187. package/dist/functions/formatTimestamp.js +8 -0
  188. package/dist/functions/getChannelAccentColor.js +30 -0
  189. package/dist/functions/getMessageClass.js +6 -0
  190. package/dist/functions/getStatusMessage.js +42 -0
  191. package/dist/functions/insertDaySeparators.js +24 -0
  192. package/dist/functions/parseMarkdown.js +18 -0
  193. package/dist/functions/playNotificationAudio.js +13 -0
  194. package/dist/functions/sortByTimestamp.js +4 -0
  195. package/dist/hooks/messages/useChannelAccentColor.js +29 -0
  196. package/dist/hooks/messages/useMessageActions.js +28 -0
  197. package/dist/hooks/messages/useMessageLinks.js +48 -0
  198. package/dist/hooks/messages/useSubtextTooltip.js +12 -0
  199. package/dist/hooks/modals/useCreateChat.js +19 -0
  200. package/dist/hooks/modals/useCreateChat2.js +16 -0
  201. package/dist/hooks/modals/useCreateDialog.js +20 -0
  202. package/dist/hooks/modals/useModal.js +41 -0
  203. package/dist/hooks/modals/useModalSelectUser2.js +20 -0
  204. package/dist/hooks/modals/useVideoRecorder.js +14 -0
  205. package/dist/hooks/uploadFile/generatePreview.js +20 -0
  206. package/dist/hooks/uploadFile/getTypeFileByMime.js +7 -0
  207. package/dist/hooks/uploadFile/uploadFile.js +28 -0
  208. package/dist/hooks/useDelayDebouncedRef.js +18 -0
  209. package/dist/hooks/useImmediateDebouncedRef.js +18 -0
  210. package/dist/hooks/useMessageDraft.js +87 -0
  211. package/dist/hooks/useSearchModel.js +11 -0
  212. package/dist/hooks/useTheme.js +11 -0
  213. package/dist/hooks/validators/chats/chatValidator.js +79 -0
  214. package/dist/hooks/validators/chats/useChatValidator.js +82 -0
  215. package/dist/hooks/validators/messages/messageValidator.js +84 -0
  216. package/dist/hooks/validators/messages/useMessageValidator.js +82 -0
  217. package/dist/hooks/validators/sidebar/sidebarValidator.js +47 -0
  218. package/dist/hooks/validators/sidebar/useSidebarValidator.js +82 -0
  219. package/dist/hooks/validators/useValidation.js +94 -0
  220. package/dist/index.js +239 -0
  221. package/dist/locale/en.js +22 -0
  222. package/dist/locale/ru.js +22 -0
  223. package/dist/locale/useLocale.js +34 -0
  224. package/dist/node_modules/entities/lib/esm/decode.js +278 -0
  225. package/dist/node_modules/entities/lib/esm/decode_codepoint.js +46 -0
  226. package/dist/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
  227. package/dist/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
  228. package/dist/node_modules/linkify-it/index.js +187 -0
  229. package/dist/node_modules/linkify-it/lib/re.js +19 -0
  230. package/dist/node_modules/linkify-string/dist/linkify-string.js +41 -0
  231. package/dist/node_modules/linkifyjs/dist/linkify.js +679 -0
  232. package/dist/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
  233. package/dist/node_modules/markdown-it/lib/common/html_re.js +5 -0
  234. package/dist/node_modules/markdown-it/lib/common/utils.js +169 -0
  235. package/dist/node_modules/markdown-it/lib/helpers/index.js +8 -0
  236. package/dist/node_modules/markdown-it/lib/helpers/parse_link_destination.js +44 -0
  237. package/dist/node_modules/markdown-it/lib/helpers/parse_link_label.js +21 -0
  238. package/dist/node_modules/markdown-it/lib/helpers/parse_link_title.js +37 -0
  239. package/dist/node_modules/markdown-it/lib/index.js +112 -0
  240. package/dist/node_modules/markdown-it/lib/parser_block.js +63 -0
  241. package/dist/node_modules/markdown-it/lib/parser_core.js +34 -0
  242. package/dist/node_modules/markdown-it/lib/parser_inline.js +96 -0
  243. package/dist/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
  244. package/dist/node_modules/markdown-it/lib/presets/default.js +40 -0
  245. package/dist/node_modules/markdown-it/lib/presets/zero.js +59 -0
  246. package/dist/node_modules/markdown-it/lib/renderer.js +127 -0
  247. package/dist/node_modules/markdown-it/lib/ruler.js +95 -0
  248. package/dist/node_modules/markdown-it/lib/rules_block/blockquote.js +59 -0
  249. package/dist/node_modules/markdown-it/lib/rules_block/code.js +23 -0
  250. package/dist/node_modules/markdown-it/lib/rules_block/fence.js +30 -0
  251. package/dist/node_modules/markdown-it/lib/rules_block/heading.js +28 -0
  252. package/dist/node_modules/markdown-it/lib/rules_block/hr.js +27 -0
  253. package/dist/node_modules/markdown-it/lib/rules_block/html_block.js +37 -0
  254. package/dist/node_modules/markdown-it/lib/rules_block/lheading.js +43 -0
  255. package/dist/node_modules/markdown-it/lib/rules_block/list.js +110 -0
  256. package/dist/node_modules/markdown-it/lib/rules_block/paragraph.js +25 -0
  257. package/dist/node_modules/markdown-it/lib/rules_block/reference.js +95 -0
  258. package/dist/node_modules/markdown-it/lib/rules_block/state_block.js +84 -0
  259. package/dist/node_modules/markdown-it/lib/rules_block/table.js +99 -0
  260. package/dist/node_modules/markdown-it/lib/rules_core/block.js +7 -0
  261. package/dist/node_modules/markdown-it/lib/rules_core/inline.js +10 -0
  262. package/dist/node_modules/markdown-it/lib/rules_core/linkify.js +57 -0
  263. package/dist/node_modules/markdown-it/lib/rules_core/normalize.js +9 -0
  264. package/dist/node_modules/markdown-it/lib/rules_core/replacements.js +31 -0
  265. package/dist/node_modules/markdown-it/lib/rules_core/smartquotes.js +80 -0
  266. package/dist/node_modules/markdown-it/lib/rules_core/state_core.js +8 -0
  267. package/dist/node_modules/markdown-it/lib/rules_core/text_join.js +16 -0
  268. package/dist/node_modules/markdown-it/lib/rules_inline/autolink.js +46 -0
  269. package/dist/node_modules/markdown-it/lib/rules_inline/backticks.js +31 -0
  270. package/dist/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +34 -0
  271. package/dist/node_modules/markdown-it/lib/rules_inline/emphasis.js +57 -0
  272. package/dist/node_modules/markdown-it/lib/rules_inline/entity.js +33 -0
  273. package/dist/node_modules/markdown-it/lib/rules_inline/escape.js +32 -0
  274. package/dist/node_modules/markdown-it/lib/rules_inline/fragments_join.js +10 -0
  275. package/dist/node_modules/markdown-it/lib/rules_inline/html_inline.js +32 -0
  276. package/dist/node_modules/markdown-it/lib/rules_inline/image.js +48 -0
  277. package/dist/node_modules/markdown-it/lib/rules_inline/link.js +40 -0
  278. package/dist/node_modules/markdown-it/lib/rules_inline/linkify.js +28 -0
  279. package/dist/node_modules/markdown-it/lib/rules_inline/newline.js +23 -0
  280. package/dist/node_modules/markdown-it/lib/rules_inline/state_inline.js +27 -0
  281. package/dist/node_modules/markdown-it/lib/rules_inline/strikethrough.js +54 -0
  282. package/dist/node_modules/markdown-it/lib/rules_inline/text.js +39 -0
  283. package/dist/node_modules/markdown-it/lib/token.js +31 -0
  284. package/dist/node_modules/mdurl/index.js +10 -0
  285. package/dist/node_modules/mdurl/lib/decode.js +61 -0
  286. package/dist/node_modules/mdurl/lib/encode.js +48 -0
  287. package/dist/node_modules/mdurl/lib/format.js +7 -0
  288. package/dist/node_modules/mdurl/lib/parse.js +74 -0
  289. package/dist/node_modules/punycode.js/punycode.es6.js +139 -0
  290. package/dist/node_modules/uc.micro/categories/Cc/regex.js +4 -0
  291. package/dist/node_modules/uc.micro/categories/Cf/regex.js +4 -0
  292. package/dist/node_modules/uc.micro/categories/P/regex.js +4 -0
  293. package/dist/node_modules/uc.micro/categories/S/regex.js +4 -0
  294. package/dist/node_modules/uc.micro/categories/Z/regex.js +4 -0
  295. package/dist/node_modules/uc.micro/index.js +14 -0
  296. package/dist/node_modules/uc.micro/properties/Any/regex.js +4 -0
  297. package/dist/node_modules/vue3-emoji-picker-ru/dist/emoji-picker.es.js +16471 -0
  298. package/dist/types/components/1_icons/AvatarIcon.vue.d.ts +1 -1
  299. package/dist/types/components/2_blocks/FeedSearch/FeedSearch.vue.d.ts +2 -2
  300. package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.d.ts +2 -0
  301. package/dist/types/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.d.ts +2 -2
  302. package/dist/types/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.d.ts +2 -2
  303. package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +2 -2
  304. package/dist/types/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.d.ts +2 -2
  305. package/dist/types/components/2_feed_elements/CallMessage/CallMessage.vue.d.ts +2 -2
  306. package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +2 -2
  307. package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +2 -2
  308. package/dist/types/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.d.ts +1 -3
  309. package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +3 -5
  310. package/dist/types/components/2_feed_elements/StickerMessage/utils/stickerUtils.d.ts +19 -0
  311. package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +2 -2
  312. package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +2 -2
  313. package/dist/types/components/2_modals/CreateDialog/CreateDialog.vue.d.ts +2 -2
  314. package/dist/types/components/2_modals/CreateDialog/stories/CreateDialog.stories.d.ts +2 -2
  315. package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +1 -1
  316. package/dist/types/components/3_compounds/Feed/Feed.vue.d.ts +2 -2
  317. package/dist/types/main.d.ts +1 -1
  318. package/package.json +6 -6
  319. package/dist/index-5NsJv9hy.js +0 -43496
  320. package/dist/vuessages.es.js +0 -123
  321. package/dist/vuessages.umd.js +0 -624
  322. /package/dist/types/{utils → components/2_feed_elements/StickerMessage/utils}/suppress-lit-warning.d.ts +0 -0
@@ -0,0 +1,476 @@
1
+ import { defineComponent as Se, inject as P, computed as v, unref as s, toRefs as $e, ref as y, watch as ee, createElementBlock as c, openBlock as n, normalizeClass as te, createCommentVNode as f, createElementVNode as l, createVNode as R, withCtx as N, createTextVNode as _, toDisplayString as i, createBlock as k, Fragment as w, withDirectives as j, vShow as ae, vModelText as De, Transition as se, Teleport as Ne, renderList as Ve } from "vue";
2
+ import "../../../hooks/useMessageDraft.js";
3
+ import "../../../hooks/useSearchModel.js";
4
+ import { useTheme as Ae } from "../../../hooks/useTheme.js";
5
+ /* empty css */
6
+ /* empty css */
7
+ import { useMessageActions as Ee } from "../../../hooks/messages/useMessageActions.js";
8
+ import "../../../node_modules/linkifyjs/dist/linkify.js";
9
+ import "../../../functions/parseMarkdown.js";
10
+ import { useSubtextTooltip as Le } from "../../../hooks/messages/useSubtextTooltip.js";
11
+ import Pe from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
12
+ import le from "../../1_atoms/Tooltip/Tooltip.vue.js";
13
+ import Re from "./icons/IncomingCallIcon.vue.js";
14
+ import je from "./icons/OutgoingCallIcon.vue.js";
15
+ const Be = ["messageId"], Ue = ["src"], Oe = {
16
+ key: 1,
17
+ class: "call-message__subtext"
18
+ }, Ze = { class: "call-message__content" }, qe = { class: "call-message__header-container" }, ze = { class: "call-message__title-wrapper" }, He = {
19
+ key: 0,
20
+ class: "call-message__title"
21
+ }, Ge = { class: "call-message__call-participant" }, Je = {
22
+ key: 1,
23
+ class: "call-message__title call-message__title--missed"
24
+ }, Ke = { class: "call-message__call-participant" }, Qe = {
25
+ key: 0,
26
+ class: "call-message__title"
27
+ }, Xe = { class: "call-message__call-participant" }, Ye = {
28
+ key: 1,
29
+ class: "call-message__title call-message__title--missed"
30
+ }, We = { class: "call-message__call-participant" }, et = {
31
+ key: 0,
32
+ class: "call-message__missed-info"
33
+ }, tt = {
34
+ key: 1,
35
+ class: "call-message__audio-wrapper"
36
+ }, at = ["src"], st = { class: "call-message__audio-progress" }, lt = { class: "call-message__audio-progress-bar" }, ot = ["max"], nt = { class: "call-message__audio-time" }, it = { class: "call-message__info-container" }, ut = { class: "call-message__time" }, ct = ["data-theme"], rt = { class: "call-message__modal" }, Mt = /* @__PURE__ */ Se({
37
+ __name: "CallMessage",
38
+ props: {
39
+ message: {
40
+ type: Object,
41
+ required: !0
42
+ },
43
+ applyStyle: {
44
+ type: Function,
45
+ default: () => null
46
+ },
47
+ subtextTooltipData: {
48
+ type: Object,
49
+ required: !1,
50
+ default: () => ({})
51
+ }
52
+ },
53
+ emits: ["action", "reply"],
54
+ setup(oe, { emit: ne }) {
55
+ const ie = P("chatAppId"), { getTheme: B } = Ae(ie), U = P("channels", void 0), O = P("selectedChat", void 0), ue = v(() => {
56
+ if (U)
57
+ return s(U);
58
+ }), ce = v(() => {
59
+ if (O)
60
+ return s(O);
61
+ }), re = ne, T = oe, { message: a, applyStyle: de } = $e(T), {
62
+ isOpenMenu: V,
63
+ buttonMenuVisible: me,
64
+ showMenu: Z,
65
+ hideMenu: A,
66
+ clickAction: pe
67
+ } = Ee(T.message, re), M = y(!1), o = y(null), m = y(!1), C = y(0), p = y(0), h = y(!1), F = y(0), E = [
68
+ {
69
+ text: "1.0x",
70
+ speed: 1
71
+ },
72
+ {
73
+ text: "1.25x",
74
+ speed: 1.25
75
+ },
76
+ {
77
+ text: "1.5x",
78
+ speed: 1.5
79
+ },
80
+ {
81
+ text: "2.0x",
82
+ speed: 2
83
+ }
84
+ ], L = v(() => E[F.value] ?? E[0]), ve = () => {
85
+ m.value = !1, p.value = 0, C.value = 0, h.value = !1, F.value = 0;
86
+ };
87
+ ee(
88
+ () => {
89
+ var t;
90
+ return (t = a.value) == null ? void 0 : t.url;
91
+ },
92
+ (t, e) => {
93
+ t !== e && (ve(), o.value && (o.value.pause(), o.value.currentTime = 0, o.value.load()));
94
+ }
95
+ );
96
+ const q = (t) => {
97
+ const e = Math.floor(t / 60), r = Math.floor(t % 60);
98
+ return `${e.toString().padStart(2, "0")}:${r.toString().padStart(2, "0")}`;
99
+ }, ge = v(() => q(p.value)), _e = v(() => q(C.value)), z = async () => {
100
+ if (o.value)
101
+ if (m.value)
102
+ o.value.pause(), m.value = !1;
103
+ else
104
+ try {
105
+ await o.value.play(), m.value = !0;
106
+ } catch (t) {
107
+ console.error("Не удалось воспроизвести запись звонка", t), m.value = !1;
108
+ }
109
+ }, fe = () => {
110
+ F.value = (F.value + 1) % E.length, o.value && (o.value.playbackRate = L.value.speed);
111
+ };
112
+ ee(
113
+ () => p.value,
114
+ () => {
115
+ o.value && h.value && (o.value.duration !== 1 / 0 && !Number.isNaN(o.value.duration) && (o.value.currentTime = p.value), Math.abs(p.value - C.value) < 0.1 && (m.value = !1));
116
+ }
117
+ );
118
+ const H = () => {
119
+ o.value && h.value && o.value.duration !== 1 / 0 && !Number.isNaN(o.value.duration) && (o.value.currentTime = p.value), h.value = !1;
120
+ }, Ce = () => {
121
+ if (!o.value) return;
122
+ const t = o.value;
123
+ if (C.value = 0, p.value = t.currentTime || 0, t.duration === 1 / 0 || Number.isNaN(t.duration)) {
124
+ t.currentTime = 1e101;
125
+ const e = () => {
126
+ o.value && (C.value = o.value.duration || 0, p.value = 0, o.value.currentTime = 0);
127
+ };
128
+ t.addEventListener("timeupdate", e, { once: !0 });
129
+ } else
130
+ C.value = t.duration || 0;
131
+ t.playbackRate = L.value.speed;
132
+ }, he = () => {
133
+ o.value && (h.value || (p.value = o.value.currentTime), o.value.ended && m.value && (m.value = !1));
134
+ }, ye = () => {
135
+ m.value = !1;
136
+ }, I = v(() => {
137
+ var t;
138
+ switch ((t = a.value) == null ? void 0 : t.direction) {
139
+ case "incoming":
140
+ return "Входящий";
141
+ case "outgoing":
142
+ return "Исходящий";
143
+ default:
144
+ return "Звонок";
145
+ }
146
+ }), S = v(() => {
147
+ var t;
148
+ switch ((t = a.value) == null ? void 0 : t.direction) {
149
+ case "incoming":
150
+ return "к";
151
+ case "outgoing":
152
+ return "от";
153
+ default:
154
+ return "к";
155
+ }
156
+ }), G = v(() => {
157
+ var e, r;
158
+ const t = (e = a.value) == null ? void 0 : e.isMissedCall;
159
+ switch ((r = a.value) == null ? void 0 : r.direction) {
160
+ case "incoming":
161
+ return t ? "#F84932" : "#00AC47";
162
+ case "outgoing":
163
+ return t ? "#5F5F5F" : "#118ABF";
164
+ default:
165
+ return t ? "#5F5F5F" : "#00AC47";
166
+ }
167
+ }), we = v(() => {
168
+ var t;
169
+ return ((t = a.value) == null ? void 0 : t.direction) === "outgoing" ? "Без ответа" : "Пропущенный";
170
+ }), J = v(() => {
171
+ var g;
172
+ const t = a.value, e = ue.value, r = ce.value;
173
+ if (!(t != null && t.dialogId) || !e || !r)
174
+ return null;
175
+ const u = (g = r.dialogs) == null ? void 0 : g.find((x) => x.dialogId === t.dialogId);
176
+ if (!(u != null && u.channelId))
177
+ return null;
178
+ const d = e.find((x) => x.channelId === u.channelId);
179
+ return (d == null ? void 0 : d.title) || null;
180
+ }), xe = Le(() => T.message, () => T.subtextTooltipData), K = {
181
+ textDialog: "textDialog",
182
+ message: "message"
183
+ };
184
+ function Q(t, e) {
185
+ const r = t.position;
186
+ switch (e) {
187
+ case "textDialog":
188
+ return r === "left" ? "call-message__text-dialog-left" : "call-message__text-dialog-right";
189
+ case "message":
190
+ return r === "left" ? "call-message__left" : "call-message__right";
191
+ default:
192
+ return "";
193
+ }
194
+ }
195
+ const be = () => {
196
+ alert("Перезвонить");
197
+ }, ke = async () => {
198
+ var t, e, r, u, d;
199
+ if ((t = a.value) != null && t.url)
200
+ try {
201
+ const g = await fetch(a.value.url, {
202
+ headers: {
203
+ Accept: "audio/*"
204
+ }
205
+ });
206
+ if (!g.ok)
207
+ throw new Error(`HTTP error! status: ${g.status}`);
208
+ const x = g.headers.get("content-type") || "", Me = await g.blob(), $ = ((r = (e = a.value.url.split(".").pop()) == null ? void 0 : e.split("?")[0]) == null ? void 0 : r.toLowerCase()) || "", Fe = {
209
+ "audio/mpeg": "mp3",
210
+ "audio/mp3": "mp3",
211
+ "audio/wav": "wav",
212
+ "audio/x-wav": "wav",
213
+ "audio/ogg": "ogg",
214
+ "audio/webm": "webm",
215
+ "audio/aac": "aac",
216
+ "audio/flac": "flac",
217
+ "audio/m4a": "m4a",
218
+ "audio/x-m4a": "m4a",
219
+ "application/octet-stream": $ || "mp3"
220
+ }, X = $ && ["mp3", "wav", "ogg", "webm", "aac", "flac", "m4a"].includes($) ? $ : Fe[x] || "mp3", Y = a.value.url.split("/"), D = decodeURIComponent(((u = Y[Y.length - 1]) == null ? void 0 : u.split("?")[0]) || ""), Ie = D ? D.includes(".") ? D : `${D}.${X}` : `call-${a.value.messageId}.${X}`, W = window.URL.createObjectURL(Me), b = document.createElement("a");
221
+ b.href = W, b.download = Ie, document.body.appendChild(b), b.click(), document.body.removeChild(b), window.URL.revokeObjectURL(W);
222
+ } catch (g) {
223
+ console.error("Ошибка при скачивании аудио звонка:", g), (d = a.value) != null && d.url && window.open(a.value.url, "_blank");
224
+ }
225
+ }, Te = (t) => {
226
+ t.action === "download" ? (ke(), A()) : pe(t);
227
+ };
228
+ return (t, e) => {
229
+ var r;
230
+ return n(), c("div", {
231
+ class: te([
232
+ Q(s(a), K.message),
233
+ s(de)(s(a))
234
+ ]),
235
+ messageId: s(a).messageId,
236
+ onMouseenter: e[6] || (e[6] = //@ts-ignore
237
+ (...u) => s(Z) && s(Z)(...u)),
238
+ onMouseleave: e[7] || (e[7] = //@ts-ignore
239
+ (...u) => s(A) && s(A)(...u))
240
+ }, [
241
+ s(a).avatar ? (n(), c("img", {
242
+ key: 0,
243
+ class: "call-message__avatar",
244
+ src: s(a).avatar,
245
+ height: "32",
246
+ width: "32"
247
+ }, null, 8, Ue)) : f("", !0),
248
+ s(a).subText ? (n(), c("p", Oe, [
249
+ R(le, {
250
+ text: s(xe),
251
+ position: s(a).position === "left" ? "right" : "left",
252
+ offset: 8
253
+ }, {
254
+ default: N(() => [
255
+ _(i(s(a).subText), 1)
256
+ ]),
257
+ _: 1
258
+ }, 8, ["text", "position"])
259
+ ])) : f("", !0),
260
+ l("div", Ze, [
261
+ l("div", qe, [
262
+ l("div", ze, [
263
+ s(a).direction === "incoming" || !s(a).direction ? (n(), k(Re, {
264
+ key: 0,
265
+ class: "call-message__direction-icon",
266
+ color: G.value
267
+ }, null, 8, ["color"])) : (n(), k(je, {
268
+ key: 1,
269
+ class: "call-message__direction-icon",
270
+ color: G.value
271
+ }, null, 8, ["color"])),
272
+ J.value ? (n(), k(le, {
273
+ key: 2,
274
+ text: J.value,
275
+ position: "top",
276
+ offset: 8
277
+ }, {
278
+ default: N(() => [
279
+ s(a).isMissedCall ? (n(), c("span", Je, [
280
+ _(i(I.value) + " ", 1),
281
+ s(a).direction !== "incoming" ? (n(), c(w, { key: 0 }, [
282
+ e[8] || (e[8] = _(" звонок ", -1)),
283
+ l("span", Ke, i(S.value) + " " + i(s(a).callParticipant), 1)
284
+ ], 64)) : (n(), c(w, { key: 1 }, [
285
+ _(" звонок ")
286
+ ], 64))
287
+ ])) : (n(), c("span", He, [
288
+ _(i(I.value) + " звонок ", 1),
289
+ l("span", Ge, i(S.value) + " " + i(s(a).callParticipant), 1)
290
+ ]))
291
+ ]),
292
+ _: 1
293
+ }, 8, ["text"])) : (n(), c(w, { key: 3 }, [
294
+ s(a).isMissedCall ? (n(), c("span", Ye, [
295
+ _(i(I.value) + " ", 1),
296
+ s(a).direction !== "incoming" ? (n(), c(w, { key: 0 }, [
297
+ e[9] || (e[9] = _(" звонок ", -1)),
298
+ l("span", We, i(S.value) + " " + i(s(a).callParticipant), 1)
299
+ ], 64)) : (n(), c(w, { key: 1 }, [
300
+ _(" звонок ")
301
+ ], 64))
302
+ ])) : (n(), c("span", Qe, [
303
+ _(i(I.value) + " звонок ", 1),
304
+ l("span", Xe, i(S.value) + " " + i(s(a).callParticipant), 1)
305
+ ]))
306
+ ], 64))
307
+ ]),
308
+ s(a).isMissedCall ? (n(), c("p", et, i(we.value) + ": " + i(s(a).callAttemptDuration), 1)) : f("", !0),
309
+ s(a).url && !s(a).isMissedCall ? (n(), c("div", tt, [
310
+ l("audio", {
311
+ ref_key: "player",
312
+ ref: o,
313
+ src: s(a).url,
314
+ type: "audio/webm",
315
+ onLoadedmetadata: Ce,
316
+ onTimeupdate: he,
317
+ onEnded: ye
318
+ }, null, 40, at),
319
+ j(l("button", {
320
+ class: "call-message__audio-play",
321
+ type: "button",
322
+ onClick: z
323
+ }, [...e[10] || (e[10] = [
324
+ l("div", { class: "call-message__audio-play-icon" }, [
325
+ l("svg", {
326
+ width: "20",
327
+ height: "23",
328
+ viewBox: "0 0 20 23",
329
+ fill: "none",
330
+ xmlns: "http://www.w3.org/2000/svg"
331
+ }, [
332
+ l("path", {
333
+ 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",
334
+ fill: "#5F5F5F"
335
+ })
336
+ ])
337
+ ], -1)
338
+ ])], 512), [
339
+ [ae, !m.value]
340
+ ]),
341
+ j(l("button", {
342
+ class: "call-message__audio-pause",
343
+ type: "button",
344
+ onClick: z
345
+ }, [...e[11] || (e[11] = [
346
+ l("div", { class: "call-message__audio-pause-icon" }, [
347
+ l("svg", {
348
+ width: "20",
349
+ height: "23",
350
+ viewBox: "0 0 20 23",
351
+ fill: "none",
352
+ xmlns: "http://www.w3.org/2000/svg"
353
+ }, [
354
+ l("path", {
355
+ 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",
356
+ fill: "#5F5F5F"
357
+ })
358
+ ])
359
+ ], -1)
360
+ ])], 512), [
361
+ [ae, m.value]
362
+ ]),
363
+ l("div", st, [
364
+ l("div", lt, [
365
+ j(l("input", {
366
+ "onUpdate:modelValue": e[0] || (e[0] = (u) => p.value = u),
367
+ class: "call-message__audio-slider",
368
+ type: "range",
369
+ min: 0,
370
+ max: C.value,
371
+ step: "0.1",
372
+ onMousedown: e[1] || (e[1] = (u) => h.value = !0),
373
+ onMouseup: H,
374
+ onTouchstart: e[2] || (e[2] = (u) => h.value = !0),
375
+ onTouchend: H
376
+ }, null, 40, ot), [
377
+ [De, p.value]
378
+ ]),
379
+ l("button", {
380
+ type: "button",
381
+ class: "call-message__audio-speed-btn",
382
+ onClick: fe
383
+ }, i(L.value.text), 1)
384
+ ]),
385
+ l("div", nt, [
386
+ l("span", null, i(ge.value), 1),
387
+ l("span", null, i(_e.value), 1)
388
+ ])
389
+ ])
390
+ ])) : f("", !0)
391
+ ]),
392
+ l("div", it, [
393
+ l("button", {
394
+ class: "call-message__call-button",
395
+ type: "button",
396
+ onClick: be
397
+ }, " Нажмите, чтобы перезвонить "),
398
+ l("span", ut, i(s(a).time), 1)
399
+ ]),
400
+ (r = s(a).transcript) != null && r.dialog ? (n(), c("button", {
401
+ key: 0,
402
+ class: "call-message__download-button",
403
+ onClick: e[3] || (e[3] = (u) => M.value = !M.value)
404
+ }, [...e[12] || (e[12] = [
405
+ l("span", { class: "pi pi-arrow-up-right" }, null, -1)
406
+ ])])) : f("", !0),
407
+ s(me) && s(a).actions ? (n(), c("button", {
408
+ key: 1,
409
+ class: "call-message__menu-button",
410
+ onClick: e[4] || (e[4] = (u) => V.value = !s(V))
411
+ }, [...e[13] || (e[13] = [
412
+ l("svg", {
413
+ width: "4",
414
+ height: "17",
415
+ viewBox: "0 0 4 17",
416
+ fill: "none",
417
+ xmlns: "http://www.w3.org/2000/svg"
418
+ }, [
419
+ l("path", {
420
+ 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",
421
+ fill: "#5F5F5F"
422
+ })
423
+ ], -1)
424
+ ])])) : f("", !0),
425
+ R(se, null, {
426
+ default: N(() => [
427
+ s(V) && s(a).actions ? (n(), k(Pe, {
428
+ key: 0,
429
+ class: "call-message__context-menu",
430
+ actions: s(a).actions,
431
+ onClick: Te
432
+ }, null, 8, ["actions"])) : f("", !0)
433
+ ]),
434
+ _: 1
435
+ }),
436
+ (n(), k(Ne, { to: "body" }, [
437
+ R(se, { name: "modal-fade" }, {
438
+ default: N(() => {
439
+ var u;
440
+ return [
441
+ M.value ? (n(), c("div", {
442
+ key: 0,
443
+ class: "call-message__modal-overlay",
444
+ "data-theme": s(B)().theme ? s(B)().theme : "light"
445
+ }, [
446
+ l("div", rt, [
447
+ l("button", {
448
+ class: "call-message__modal-close-button",
449
+ onClick: e[5] || (e[5] = (d) => M.value = !1)
450
+ }, [...e[14] || (e[14] = [
451
+ l("span", null, [
452
+ l("i", { class: "pi pi-times" })
453
+ ], -1)
454
+ ])]),
455
+ (n(!0), c(w, null, Ve((u = s(a).transcript) == null ? void 0 : u.dialog, (d) => (n(), c("div", {
456
+ key: d.time,
457
+ class: te(Q(d, K.textDialog))
458
+ }, [
459
+ l("p", null, i(d.text), 1),
460
+ l("span", null, i(d.time), 1)
461
+ ], 2))), 128))
462
+ ])
463
+ ], 8, ct)) : f("", !0)
464
+ ];
465
+ }),
466
+ _: 1
467
+ })
468
+ ]))
469
+ ])
470
+ ], 42, Be);
471
+ };
472
+ }
473
+ });
474
+ export {
475
+ Mt as default
476
+ };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as o, createElementBlock as l, openBlock as t, createElementVNode as n } from "vue";
2
+ const C = {
3
+ width: "16",
4
+ height: "16",
5
+ viewBox: "0 0 16 16",
6
+ fill: "none",
7
+ xmlns: "http://www.w3.org/2000/svg"
8
+ }, c = ["fill"], s = /* @__PURE__ */ o({
9
+ __name: "IncomingCallIcon",
10
+ props: {
11
+ color: { default: "#00AC47" }
12
+ },
13
+ setup(e) {
14
+ return (r, i) => (t(), l("svg", C, [
15
+ n("path", {
16
+ "fill-rule": "evenodd",
17
+ "clip-rule": "evenodd",
18
+ d: "M14.0001 13.5006C14.0001 13.6332 13.9475 13.7604 13.8537 13.8542C13.7599 13.948 13.6328 14.0006 13.5001 14.0006H7.50014C7.36753 14.0006 7.24036 13.948 7.14659 13.8542C7.05282 13.7604 7.00014 13.6332 7.00014 13.5006C7.00014 13.368 7.05282 13.2408 7.14659 13.1471C7.24036 13.0533 7.36753 13.0006 7.50014 13.0006H12.2931L2.14614 2.85463C2.09966 2.80814 2.06278 2.75295 2.03762 2.69221C2.01246 2.63148 1.99951 2.56638 1.99951 2.50063C1.99951 2.43489 2.01246 2.36979 2.03762 2.30905C2.06278 2.24831 2.09966 2.19312 2.14614 2.14663C2.19263 2.10014 2.24782 2.06327 2.30856 2.03811C2.3693 2.01295 2.4344 2 2.50014 2C2.56589 2 2.63099 2.01295 2.69173 2.03811C2.75247 2.06327 2.80766 2.10014 2.85414 2.14663L13.0001 12.2936V7.50063C13.0001 7.36802 13.0528 7.24085 13.1466 7.14708C13.2404 7.05331 13.3675 7.00063 13.5001 7.00063C13.6328 7.00063 13.7599 7.05331 13.8537 7.14708C13.9475 7.24085 14.0001 7.36802 14.0001 7.50063V13.5006Z",
19
+ fill: e.color
20
+ }, null, 8, c)
21
+ ]));
22
+ }
23
+ });
24
+ export {
25
+ s as default
26
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./IncomingCallIcon.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as o, createElementBlock as l, openBlock as t, createElementVNode as n } from "vue";
2
+ const C = {
3
+ width: "16",
4
+ height: "16",
5
+ viewBox: "0 0 16 16",
6
+ fill: "none",
7
+ xmlns: "http://www.w3.org/2000/svg"
8
+ }, c = ["fill"], s = /* @__PURE__ */ o({
9
+ __name: "OutgoingCallIcon",
10
+ props: {
11
+ color: { default: "#118ABF" }
12
+ },
13
+ setup(e) {
14
+ return (r, i) => (t(), l("svg", C, [
15
+ n("path", {
16
+ "fill-rule": "evenodd",
17
+ "clip-rule": "evenodd",
18
+ d: "M2 2.5C2 2.36739 2.05268 2.24021 2.14645 2.14645C2.24021 2.05268 2.36739 2 2.5 2H8.5C8.63261 2 8.75979 2.05268 8.85355 2.14645C8.94732 2.24021 9 2.36739 9 2.5C9 2.63261 8.94732 2.75979 8.85355 2.85355C8.75979 2.94732 8.63261 3 8.5 3H3.707L13.854 13.146C13.9479 13.2399 14.0006 13.3672 14.0006 13.5C14.0006 13.6328 13.9479 13.7601 13.854 13.854C13.7601 13.9479 13.6328 14.0006 13.5 14.0006C13.3672 14.0006 13.2399 13.9479 13.146 13.854L3 3.707V8.5C3 8.63261 2.94732 8.75979 2.85355 8.85355C2.75979 8.94732 2.63261 9 2.5 9C2.36739 9 2.24021 8.94732 2.14645 8.85355C2.05268 8.75979 2 8.63261 2 8.5V2.5Z",
19
+ fill: e.color
20
+ }, null, 8, c)
21
+ ]));
22
+ }
23
+ });
24
+ export {
25
+ s as default
26
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./OutgoingCallIcon.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./DateMessage.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0369ddcb"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,20 @@
1
+ import { defineComponent as t, createElementBlock as s, openBlock as a, createElementVNode as o, toDisplayString as n } from "vue";
2
+ const c = { class: "date-message__container" }, r = { class: "date-message__text" }, i = /* @__PURE__ */ t({
3
+ __name: "DateMessage",
4
+ props: {
5
+ message: {
6
+ type: Object,
7
+ required: !0,
8
+ default: () => {
9
+ }
10
+ }
11
+ },
12
+ setup(e) {
13
+ return (_, m) => (a(), s("div", c, [
14
+ o("p", r, n(e.message.text), 1)
15
+ ]));
16
+ }
17
+ });
18
+ export {
19
+ i as default
20
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./DateMessageSticky.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const s = /* @__PURE__ */ o(t, [["__scopeId", "data-v-b651f78e"]]);
5
+ export {
6
+ s as default
7
+ };
@@ -0,0 +1,18 @@
1
+ import { defineComponent as t, createElementBlock as s, openBlock as a, createElementVNode as c, toDisplayString as n } from "vue";
2
+ const o = { class: "date-message-sticky__container" }, r = { class: "date-message-sticky__text" }, d = /* @__PURE__ */ t({
3
+ __name: "DateMessageSticky",
4
+ props: {
5
+ text: {
6
+ type: String,
7
+ required: !0
8
+ }
9
+ },
10
+ setup(e) {
11
+ return (i, _) => (a(), s("div", o, [
12
+ c("p", r, n(e.text), 1)
13
+ ]));
14
+ }
15
+ });
16
+ export {
17
+ d as default
18
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./FeedKeyboard.vue2.js";
2
+ /* empty css */
3
+ import r from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-af2fc142"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as p, computed as f, createElementBlock as t, openBlock as n, normalizeClass as m, Fragment as y, renderList as u, normalizeStyle as _, createElementVNode as h, toDisplayString as x } from "vue";
2
+ const k = ["onClick"], w = /* @__PURE__ */ p({
3
+ __name: "FeedKeyboard",
4
+ props: {
5
+ buttons: {
6
+ type: Array,
7
+ required: !0,
8
+ default: () => []
9
+ },
10
+ align: {
11
+ type: String,
12
+ default: "right",
13
+ validator: (r) => ["left", "center", "right"].includes(r)
14
+ }
15
+ },
16
+ emits: ["action"],
17
+ setup(r, { emit: i }) {
18
+ const l = r, c = i, s = f(() => [...l.buttons].sort((o, a) => o.order - a.order)), d = (o) => {
19
+ typeof o.action == "function" ? o.action() : o.action != null && c("action", o.action);
20
+ };
21
+ return (o, a) => (n(), t("div", {
22
+ class: m(["feed-keyboard__container", [
23
+ `feed-keyboard__container--${r.align}`
24
+ ]])
25
+ }, [
26
+ (n(!0), t(y, null, u(s.value, (e) => (n(), t("div", {
27
+ key: e.key,
28
+ class: "feed-keyboard__button",
29
+ style: _({
30
+ "box-shadow": e["shadow-color"] && e["shadow-color"] !== "none" ? `0px 4px 4px ${e["shadow-color"]}, 0px 1px 2px ${e["shadow-color"]}` : "none",
31
+ color: e["text-color"] || "inherit"
32
+ }),
33
+ onClick: (g) => d(e)
34
+ }, [
35
+ h("p", null, x(e.text), 1)
36
+ ], 12, k))), 128))
37
+ ], 2));
38
+ }
39
+ });
40
+ export {
41
+ w as default
42
+ };
@@ -0,0 +1,7 @@
1
+ import a from "./FileMessage.vue2.js";
2
+ /* empty css */
3
+ import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const s = /* @__PURE__ */ o(a, [["__scopeId", "data-v-aad85a6d"]]);
5
+ export {
6
+ s as default
7
+ };