@mobilon-dev/chotto 0.3.96 → 0.3.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +29 -4
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +42 -61
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue.js +47 -4
- package/dist/components/1_atoms/ContactContextMenu/ContactContextMenu.vue2.js +55 -82
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +86 -51
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +32 -4
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +7 -28
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue.js +22 -38
- package/dist/components/1_atoms/EmojiGlyph/EmojiGlyph.vue2.js +33 -2
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +37 -4
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +7 -21
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +30 -19
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +70 -4
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +76 -108
- package/dist/components/1_icons/AvatarIcon.vue.js +8 -8
- package/dist/components/1_icons/CheckIcon.vue.js +26 -13
- package/dist/components/1_icons/CloseButtonIcon.vue.js +16 -10
- package/dist/components/1_icons/CloseIcon.vue.js +16 -10
- package/dist/components/1_icons/ContactCRMIcon.vue.js +16 -10
- package/dist/components/1_icons/MenuIcon.vue.js +16 -10
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ErrorStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue.js +36 -4
- package/dist/components/1_icons/MessageStatus/PendingStatusIcon.vue2.js +11 -26
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReadStatusIcon.vue2.js +12 -21
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue.js +23 -3
- package/dist/components/1_icons/MessageStatus/ReceivedStatusIcon.vue2.js +11 -20
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue.js +33 -4
- package/dist/components/1_icons/MessageStatus/SentStatusIcon.vue2.js +11 -23
- package/dist/components/1_icons/SearchIcon.vue.js +29 -17
- package/dist/components/1_icons/SettingsIcon.vue.js +8 -8
- package/dist/components/1_icons/TelegramIcon.vue.js +32 -20
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +546 -396
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanelAttributeIndicator.vue.js +101 -58
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelCheckIcon.vue.js +14 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelConfirmSpinner.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +19 -13
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +16 -10
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +35 -23
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +17 -11
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +8 -8
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -20
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +33 -21
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelUnconfirmedIcon.vue.js +7 -7
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +8 -8
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +74 -4
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +8 -42
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +62 -4
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +15 -36
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +49 -4
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +22 -45
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +36 -4
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +19 -37
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +61 -4
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +79 -96
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +31 -27
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +72 -4
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +47 -83
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +19 -21
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +80 -51
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +182 -4
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +25 -135
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +78 -4
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +73 -95
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +15 -17
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +39 -33
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +220 -4
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +146 -256
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +39 -41
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +13 -2
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +233 -163
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +164 -4
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +87 -175
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +73 -4
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +34 -60
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +47 -4
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +10 -23
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +52 -4
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +8 -26
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +299 -220
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +39 -33
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +306 -4
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +134 -311
- package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +18 -12
- package/dist/components/2_chatlist_elements/ChatItem/icons/FileIcon.vue.js +23 -11
- package/dist/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue.js +15 -9
- package/dist/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue.js +26 -14
- package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +7 -7
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +52 -24
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +84 -4
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +35 -67
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +72 -38
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +76 -57
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +41 -29
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +176 -115
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +48 -27
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +58 -28
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +54 -4
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +19 -39
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +458 -4
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +160 -471
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue.js +19 -4
- package/dist/components/2_feed_elements/BaseEditMessage/BaseEditMessage.vue2.js +12 -22
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +26 -4
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +26 -39
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +482 -4
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +148 -448
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +17 -19
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +13 -2
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +16 -3
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +7 -7
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue.js +67 -4
- package/dist/components/2_feed_elements/DeletedMessageContent/DeletedMessageContent.vue2.js +11 -43
- package/dist/components/2_feed_elements/DeletedMessageContent/icons/DeletedMessageIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue.js +60 -4
- package/dist/components/2_feed_elements/DelimiterMessage/DelimiterMessage.vue2.js +36 -53
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue.js +22 -4
- package/dist/components/2_feed_elements/EditTextMessage/EditTextMessage.vue2.js +8 -15
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +43 -4
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +10 -25
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +250 -4
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +67 -233
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +315 -4
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +98 -319
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +39 -4
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +12 -22
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +155 -4
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +110 -212
- package/dist/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/EditIcon.vue.js +32 -20
- package/dist/components/2_feed_elements/MessageReactions/icons/ExpandReactionsIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageReactions/icons/MessageActionsIcon.vue.js +16 -10
- package/dist/components/2_feed_elements/MessageReactions/icons/ReplyIcon.vue.js +17 -11
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue.js +22 -4
- package/dist/components/2_feed_elements/MessageSmsInvite/MessageSmsInvite.vue2.js +17 -23
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +28 -4
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +27 -29
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/MissedCallMessage/MissedCallMessage.vue2.js +33 -121
- package/dist/components/2_feed_elements/MissedCallMessage/icons/MissedCallIcon.vue.js +34 -22
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +55 -4
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +8 -30
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +47 -4
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +9 -25
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +56 -4
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +8 -37
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +72 -4
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +10 -59
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +142 -4
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +36 -120
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +49 -4
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +15 -53
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +75 -4
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +10 -63
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +18 -4
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +9 -17
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +346 -4
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +73 -307
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +17 -4
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +7 -7
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +65 -269
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +37 -4
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +7 -21
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +307 -4
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +76 -298
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue.js +64 -4
- package/dist/components/2_modals/ConfirmDeleteMessage/ConfirmDeleteMessage.vue3.js +10 -45
- package/dist/components/2_modals/CreateChat/CreateChat.vue.js +35 -18
- package/dist/components/2_modals/CreateChat2/CreateChat2.vue.js +140 -92
- package/dist/components/2_modals/CreateDialog/CreateDialog.vue.js +96 -49
- package/dist/components/2_modals/Modal/Modal.vue.js +59 -50
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +51 -38
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +39 -30
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +155 -4
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js +49 -121
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +60 -43
- package/dist/components/2_modals/SelectUser2/SelectUser2.vue.js +41 -24
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +85 -4
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +149 -210
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +25 -21
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +13 -2
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +253 -163
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +50 -32
- package/dist/components/3_compounds/ChatList/icons/LogoIcon.vue.js +6 -6
- package/dist/components/3_compounds/Feed/Feed.vue.js +172 -4
- package/dist/components/3_compounds/Feed/Feed.vue2.js +126 -257
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +279 -202
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +43 -36
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +5 -5
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +32 -4
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +7 -29
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +7 -7
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +8 -8
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +31 -18
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +85 -56
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createElementBlock as e, openBlock as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { createElementBlock as e, openBlock as o, createStaticVNode as c } from "vue";
|
|
2
|
+
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const C = {}, i = {
|
|
4
4
|
width: "16",
|
|
5
5
|
height: "16",
|
|
6
6
|
viewBox: "0 0 16 16",
|
|
@@ -8,11 +8,11 @@ const i = {}, c = {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
10
|
function l(n, t) {
|
|
11
|
-
return
|
|
12
|
-
|
|
11
|
+
return o(), e("svg", i, [...t[0] || (t[0] = [
|
|
12
|
+
c('<g clip-path="url(#clip0_7951_1209)"><path d="M6.00195 5.5C6.00195 5.89782 5.84392 6.27936 5.56261 6.56066C5.28131 6.84196 4.89978 7 4.50195 7C4.10413 7 3.7226 6.84196 3.44129 6.56066C3.15999 6.27936 3.00195 5.89782 3.00195 5.5C3.00195 5.10218 3.15999 4.72064 3.44129 4.43934C3.7226 4.15804 4.10413 4 4.50195 4C4.89978 4 5.28131 4.15804 5.56261 4.43934C5.84392 4.72064 6.00195 5.10218 6.00195 5.5Z" fill="currentColor"></path><path d="M2.00195 1C1.47152 1 0.962812 1.21071 0.58774 1.58579C0.212667 1.96086 0.00195313 2.46957 0.00195312 3V13C0.00195313 13.5304 0.212667 14.0391 0.58774 14.4142C0.962812 14.7893 1.47152 15 2.00195 15H14.002C14.5324 15 15.0411 14.7893 15.4162 14.4142C15.7912 14.0391 16.002 13.5304 16.002 13V3C16.002 2.46957 15.7912 1.96086 15.4162 1.58579C15.0411 1.21071 14.5324 1 14.002 1H2.00195ZM14.002 2C14.2672 2 14.5215 2.10536 14.7091 2.29289C14.8966 2.48043 15.002 2.73478 15.002 3V9.5L11.225 7.553C11.1312 7.50602 11.025 7.48973 10.9215 7.50642C10.8179 7.52311 10.7222 7.57194 10.648 7.646L6.93795 11.356L4.27795 9.584C4.18191 9.52006 4.06672 9.4913 3.95189 9.5026C3.83707 9.5139 3.72969 9.56456 3.64795 9.646L1.00195 12V3C1.00195 2.73478 1.10731 2.48043 1.29485 2.29289C1.48238 2.10536 1.73674 2 2.00195 2H14.002Z" fill="currentColor"></path></g><defs><clipPath id="clip0_7951_1209"><rect width="16" height="16" fill="white"></rect></clipPath></defs>', 2)
|
|
13
13
|
])]);
|
|
14
14
|
}
|
|
15
|
-
const
|
|
15
|
+
const h = /* @__PURE__ */ r(C, [["render", l], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/icons/ImageIcon.vue"]]);
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
h as default
|
|
18
18
|
};
|
|
@@ -1,34 +1,46 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { createElementBlock as C, openBlock as o, createElementVNode as e } from "vue";
|
|
2
|
+
import l from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const c = {}, r = {
|
|
4
4
|
width: "16",
|
|
5
5
|
height: "16",
|
|
6
6
|
viewBox: "0 0 16 16",
|
|
7
7
|
fill: "none",
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
|
-
function n
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
C("clipPath", { id: "clip0_8058_5201" }, [
|
|
22
|
-
C("rect", {
|
|
23
|
-
width: "16",
|
|
24
|
-
height: "16",
|
|
25
|
-
fill: "white"
|
|
10
|
+
function i(n, t) {
|
|
11
|
+
return o(), C("svg", r, [...t[0] || (t[0] = [
|
|
12
|
+
e(
|
|
13
|
+
"g",
|
|
14
|
+
{ "clip-path": "url(#clip0_8058_5201)" },
|
|
15
|
+
[
|
|
16
|
+
e("path", {
|
|
17
|
+
"fill-rule": "evenodd",
|
|
18
|
+
"clip-rule": "evenodd",
|
|
19
|
+
d: "M1.88547 0.511894C2.06045 0.337182 2.27055 0.201652 2.50187 0.114284C2.73318 0.0269155 2.98043 -0.0102955 3.22721 0.00511669C3.47399 0.0205289 3.71469 0.0882124 3.93333 0.203682C4.15198 0.319151 4.34359 0.47977 4.49547 0.674894L6.29047 2.98089C6.61947 3.40389 6.73547 3.95489 6.60547 4.47489L6.05847 6.66489C6.03019 6.77832 6.03172 6.89714 6.06291 7.0098C6.0941 7.12247 6.15388 7.22516 6.23647 7.30789L8.69347 9.76489C8.77631 9.84765 8.87916 9.90754 8.99202 9.93873C9.10488 9.96992 9.22389 9.97136 9.33747 9.94289L11.5265 9.39589C11.7831 9.33173 12.0509 9.32675 12.3098 9.38132C12.5686 9.43589 12.8116 9.54859 13.0205 9.71089L15.3265 11.5049C16.1555 12.1499 16.2315 13.3749 15.4895 14.1159L14.4555 15.1499C13.7155 15.8899 12.6095 16.2149 11.5785 15.8519C8.93965 14.9234 6.54374 13.4127 4.56847 11.4319C2.58776 9.45691 1.07708 7.06135 0.148471 4.42289C-0.213529 3.39289 0.111471 2.28589 0.851471 1.54589L1.88547 0.511894ZM15.8545 0.146894C15.901 0.193339 15.938 0.248515 15.9632 0.30926C15.9884 0.370005 16.0014 0.435126 16.0014 0.500894C16.0014 0.566661 15.9884 0.631782 15.9632 0.692527C15.938 0.753273 15.901 0.808448 15.8545 0.854894L11.7075 5.00089H14.5005C14.6331 5.00089 14.7603 5.05357 14.854 5.14734C14.9478 5.24111 15.0005 5.36829 15.0005 5.50089C15.0005 5.6335 14.9478 5.76068 14.854 5.85445C14.7603 5.94822 14.6331 6.00089 14.5005 6.00089H10.5005C10.3679 6.00089 10.2407 5.94822 10.1469 5.85445C10.0531 5.76068 10.0005 5.6335 10.0005 5.50089V1.50089C10.0005 1.36829 10.0531 1.24111 10.1469 1.14734C10.2407 1.05357 10.3679 1.00089 10.5005 1.00089C10.6331 1.00089 10.7603 1.05357 10.854 1.14734C10.9478 1.24111 11.0005 1.36829 11.0005 1.50089V4.29389L15.1465 0.146894C15.1929 0.100331 15.2481 0.0633877 15.3088 0.0381813C15.3696 0.0129748 15.4347 0 15.5005 0C15.5662 0 15.6314 0.0129748 15.6921 0.0381813C15.7528 0.0633877 15.808 0.100331 15.8545 0.146894Z",
|
|
20
|
+
fill: "currentColor"
|
|
26
21
|
})
|
|
27
|
-
]
|
|
28
|
-
|
|
22
|
+
],
|
|
23
|
+
-1
|
|
24
|
+
/* CACHED */
|
|
25
|
+
),
|
|
26
|
+
e(
|
|
27
|
+
"defs",
|
|
28
|
+
null,
|
|
29
|
+
[
|
|
30
|
+
e("clipPath", { id: "clip0_8058_5201" }, [
|
|
31
|
+
e("rect", {
|
|
32
|
+
width: "16",
|
|
33
|
+
height: "16",
|
|
34
|
+
fill: "white"
|
|
35
|
+
})
|
|
36
|
+
])
|
|
37
|
+
],
|
|
38
|
+
-1
|
|
39
|
+
/* CACHED */
|
|
40
|
+
)
|
|
29
41
|
])]);
|
|
30
42
|
}
|
|
31
|
-
const p = /* @__PURE__ */
|
|
43
|
+
const p = /* @__PURE__ */ l(c, [["render", i], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue"]]);
|
|
32
44
|
export {
|
|
33
45
|
p as default
|
|
34
46
|
};
|
|
@@ -1,21 +1,27 @@
|
|
|
1
1
|
import { createElementBlock as t, openBlock as o, createElementVNode as r } from "vue";
|
|
2
|
-
import
|
|
3
|
-
const n = {},
|
|
2
|
+
import c from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const n = {}, s = {
|
|
4
4
|
width: "16",
|
|
5
5
|
height: "16",
|
|
6
6
|
viewBox: "0 0 16 16",
|
|
7
7
|
fill: "none",
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
|
-
function l
|
|
11
|
-
return o(), t("svg",
|
|
12
|
-
r(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
function C(l, e) {
|
|
11
|
+
return o(), t("svg", s, [...e[0] || (e[0] = [
|
|
12
|
+
r(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M2.5 1C2.10218 1 1.72064 1.15804 1.43934 1.43934C1.15804 1.72064 1 2.10218 1 2.5V13.5C1 13.8978 1.15804 14.2794 1.43934 14.5607C1.72064 14.842 2.10218 15 2.5 15H8.586C8.98369 14.9997 9.36497 14.8414 9.646 14.56L14.561 9.646C14.842 9.3648 14.9999 8.98355 15 8.586V2.5C15 2.10218 14.842 1.72064 14.5607 1.43934C14.2794 1.15804 13.8978 1 13.5 1H2.5ZM2 2.5C2 2.36739 2.05268 2.24021 2.14645 2.14645C2.24021 2.05268 2.36739 2 2.5 2H13.5C13.6326 2 13.7598 2.05268 13.8536 2.14645C13.9473 2.24021 14 2.36739 14 2.5V8H9.5C9.10218 8 8.72064 8.15804 8.43934 8.43934C8.15804 8.72064 8 9.10218 8 9.5V14H2.5C2.36739 14 2.24021 13.9473 2.14645 13.8536C2.05268 13.7598 2 13.6326 2 13.5V2.5ZM9 13.793V9.5C9 9.36739 9.05268 9.24021 9.14645 9.14645C9.24021 9.05268 9.36739 9 9.5 9H13.793L9 13.793Z",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
},
|
|
18
|
+
null,
|
|
19
|
+
-1
|
|
20
|
+
/* CACHED */
|
|
21
|
+
)
|
|
16
22
|
])]);
|
|
17
23
|
}
|
|
18
|
-
const m = /* @__PURE__ */
|
|
24
|
+
const m = /* @__PURE__ */ c(n, [["render", C], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/icons/StickerIcon.vue"]]);
|
|
19
25
|
export {
|
|
20
26
|
m as default
|
|
21
27
|
};
|
|
@@ -1,25 +1,37 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as t, openBlock as C, createElementVNode as o } from "vue";
|
|
2
2
|
import r from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const n = {},
|
|
3
|
+
const n = {}, c = {
|
|
4
4
|
width: "16",
|
|
5
5
|
height: "16",
|
|
6
6
|
viewBox: "0 0 16 16",
|
|
7
7
|
fill: "none",
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
return
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
function l(s, e) {
|
|
11
|
+
return C(), t("svg", c, [...e[0] || (e[0] = [
|
|
12
|
+
o(
|
|
13
|
+
"path",
|
|
14
|
+
{
|
|
15
|
+
d: "M6.79 5.09269C6.71524 5.03946 6.62726 5.00783 6.53572 5.00128C6.44418 4.99472 6.35259 5.01349 6.27101 5.05552C6.18942 5.09755 6.12098 5.16123 6.07317 5.23958C6.02537 5.31792 6.00006 5.40791 6 5.49969V10.4997C6.00006 10.5915 6.02537 10.6815 6.07317 10.7598C6.12098 10.8382 6.18942 10.9018 6.27101 10.9439C6.35259 10.9859 6.44418 11.0047 6.53572 10.9981C6.62726 10.9915 6.71524 10.9599 6.79 10.9067L10.29 8.40669C10.3548 8.36044 10.4076 8.29938 10.4441 8.22858C10.4805 8.15779 10.4996 8.07932 10.4996 7.99969C10.4996 7.92007 10.4805 7.84159 10.4441 7.7708C10.4076 7.70001 10.3548 7.63894 10.29 7.59269L6.79 5.09269Z",
|
|
16
|
+
fill: "currentColor"
|
|
17
|
+
},
|
|
18
|
+
null,
|
|
19
|
+
-1
|
|
20
|
+
/* CACHED */
|
|
21
|
+
),
|
|
22
|
+
o(
|
|
23
|
+
"path",
|
|
24
|
+
{
|
|
25
|
+
d: "M0 4C0 3.46957 0.210714 2.96086 0.585786 2.58579C0.960859 2.21071 1.46957 2 2 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V12C16 12.5304 15.7893 13.0391 15.4142 13.4142C15.0391 13.7893 14.5304 14 14 14H2C1.46957 14 0.960859 13.7893 0.585786 13.4142C0.210714 13.0391 0 12.5304 0 12V4ZM15 4C15 3.73478 14.8946 3.48043 14.7071 3.29289C14.5196 3.10536 14.2652 3 14 3H2C1.73478 3 1.48043 3.10536 1.29289 3.29289C1.10536 3.48043 1 3.73478 1 4V12C1 12.2652 1.10536 12.5196 1.29289 12.7071C1.48043 12.8946 1.73478 13 2 13H14C14.2652 13 14.5196 12.8946 14.7071 12.7071C14.8946 12.5196 15 12.2652 15 12V4Z",
|
|
26
|
+
fill: "currentColor"
|
|
27
|
+
},
|
|
28
|
+
null,
|
|
29
|
+
-1
|
|
30
|
+
/* CACHED */
|
|
31
|
+
)
|
|
20
32
|
])]);
|
|
21
33
|
}
|
|
22
|
-
const
|
|
34
|
+
const _ = /* @__PURE__ */ r(n, [["render", l], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/icons/VideoIcon.vue"]]);
|
|
23
35
|
export {
|
|
24
|
-
|
|
36
|
+
_ as default
|
|
25
37
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as t, openBlock as o, createStaticVNode as r } from "vue";
|
|
2
2
|
import i from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const n = {},
|
|
3
|
+
const n = {}, c = {
|
|
4
4
|
width: "16px",
|
|
5
5
|
height: "16px",
|
|
6
6
|
viewBox: "4 2 16 20",
|
|
@@ -8,12 +8,12 @@ const n = {}, l = {
|
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9
9
|
"xmlns:xlink": "http://www.w3.org/1999/xlink"
|
|
10
10
|
};
|
|
11
|
-
function s(
|
|
12
|
-
return
|
|
13
|
-
|
|
11
|
+
function s(l, e) {
|
|
12
|
+
return o(), t("svg", c, [...e[0] || (e[0] = [
|
|
13
|
+
r('<title>Mic</title><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Mic"><rect id="Rectangle" stroke="currentColor" stroke-width="2" stroke-linecap="round" x="9" y="3" width="6" height="11" rx="3"></rect><line id="Path" x1="12" y1="18" x2="12" y2="21" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line><line id="Path" x1="8" y1="21" x2="16" y2="21" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line><path id="Path" d="M19,11 C19,14.866 15.866,18 12,18 C8.13401,18 5,14.866 5,11" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></g></g>', 2)
|
|
14
14
|
])]);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const a = /* @__PURE__ */ i(n, [["render", s], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue"]]);
|
|
17
17
|
export {
|
|
18
|
-
|
|
18
|
+
a as default
|
|
19
19
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as s, openBlock as a, Fragment as n, renderList as _, normalizeClass as i, createElementVNode as l, createTextVNode as p, createCommentVNode as d, toDisplayString as o } from "vue";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "chat-tabs__badge"
|
|
7
|
-
}, b = {
|
|
3
|
+
import u from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = {
|
|
8
5
|
__name: "ChatTabs",
|
|
9
6
|
props: {
|
|
10
7
|
tabs: {
|
|
@@ -14,24 +11,55 @@ const u = { class: "chat-tabs__list" }, p = ["aria-pressed", "onClick"], h = {
|
|
|
14
11
|
}
|
|
15
12
|
},
|
|
16
13
|
emits: ["tab-click"],
|
|
17
|
-
setup(c) {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
class: n(["chat-tabs__item", { "chat-tabs__item--active": e.active }])
|
|
22
|
-
}, [
|
|
23
|
-
_("button", {
|
|
24
|
-
class: "chat-tabs__button",
|
|
25
|
-
"aria-pressed": e.active,
|
|
26
|
-
onClick: (f) => r.$emit("tab-click", e.id)
|
|
27
|
-
}, [
|
|
28
|
-
l(s(e.label) + " ", 1),
|
|
29
|
-
e.count !== void 0 ? (a(), t("span", h, s(e.count), 1)) : d("", !0)
|
|
30
|
-
], 8, p)
|
|
31
|
-
], 2))), 128))
|
|
32
|
-
]));
|
|
14
|
+
setup(r, { expose: c }) {
|
|
15
|
+
c();
|
|
16
|
+
const t = {};
|
|
17
|
+
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
33
18
|
}
|
|
34
|
-
},
|
|
19
|
+
}, h = { class: "chat-tabs__list" }, b = ["aria-pressed", "onClick"], f = {
|
|
20
|
+
key: 0,
|
|
21
|
+
class: "chat-tabs__badge"
|
|
22
|
+
};
|
|
23
|
+
function v(r, c, t, k, C, y) {
|
|
24
|
+
return a(), s("ul", h, [
|
|
25
|
+
(a(!0), s(
|
|
26
|
+
n,
|
|
27
|
+
null,
|
|
28
|
+
_(t.tabs, (e) => (a(), s(
|
|
29
|
+
"li",
|
|
30
|
+
{
|
|
31
|
+
key: e.id,
|
|
32
|
+
class: i(["chat-tabs__item", { "chat-tabs__item--active": e.active }])
|
|
33
|
+
},
|
|
34
|
+
[
|
|
35
|
+
l("button", {
|
|
36
|
+
class: "chat-tabs__button",
|
|
37
|
+
"aria-pressed": e.active,
|
|
38
|
+
onClick: (T) => r.$emit("tab-click", e.id)
|
|
39
|
+
}, [
|
|
40
|
+
p(
|
|
41
|
+
o(e.label) + " ",
|
|
42
|
+
1
|
|
43
|
+
/* TEXT */
|
|
44
|
+
),
|
|
45
|
+
e.count !== void 0 ? (a(), s(
|
|
46
|
+
"span",
|
|
47
|
+
f,
|
|
48
|
+
o(e.count),
|
|
49
|
+
1
|
|
50
|
+
/* TEXT */
|
|
51
|
+
)) : d("v-if", !0)
|
|
52
|
+
], 8, b)
|
|
53
|
+
],
|
|
54
|
+
2
|
|
55
|
+
/* CLASS */
|
|
56
|
+
))),
|
|
57
|
+
128
|
|
58
|
+
/* KEYED_FRAGMENT */
|
|
59
|
+
))
|
|
60
|
+
]);
|
|
61
|
+
}
|
|
62
|
+
const N = /* @__PURE__ */ u(m, [["render", v], ["__scopeId", "data-v-ce671e3e"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_chatlist_elements/ChatTabs/ChatTabs.vue"]]);
|
|
35
63
|
export {
|
|
36
|
-
|
|
64
|
+
N as default
|
|
37
65
|
};
|
|
@@ -1,7 +1,87 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s from "./AudioRecorder.vue2.js";
|
|
2
|
+
import { createElementBlock as i, openBlock as d, createCommentVNode as t, createElementVNode as e, toDisplayString as a, normalizeClass as c } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import l from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const u = { class: "audio-recorder__container" }, _ = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "audio-recorder__status"
|
|
8
|
+
}, p = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "audio-recorder__recording-container"
|
|
11
|
+
}, m = { class: "audio-recorder__recording-time" };
|
|
12
|
+
function g(f, r, n, o, b, v) {
|
|
13
|
+
return d(), i("div", u, [
|
|
14
|
+
o.uploadStatus === "uploading" ? (d(), i("div", _, [...r[0] || (r[0] = [
|
|
15
|
+
e(
|
|
16
|
+
"span",
|
|
17
|
+
null,
|
|
18
|
+
"Загрузка файла...",
|
|
19
|
+
-1
|
|
20
|
+
/* CACHED */
|
|
21
|
+
)
|
|
22
|
+
])])) : t("v-if", !0),
|
|
23
|
+
o.audioRecording && o.uploadStatus != "uploading" ? (d(), i("div", p, [
|
|
24
|
+
r[3] || (r[3] = e(
|
|
25
|
+
"span",
|
|
26
|
+
{ class: "audio-recorder__recording-icon pi pi-circle-fill" },
|
|
27
|
+
null,
|
|
28
|
+
-1
|
|
29
|
+
/* CACHED */
|
|
30
|
+
)),
|
|
31
|
+
e("button", {
|
|
32
|
+
class: "audio-recorder__button audio-recorder__button-record",
|
|
33
|
+
onClick: o.cancelAudioRecording
|
|
34
|
+
}, [...r[1] || (r[1] = [
|
|
35
|
+
e(
|
|
36
|
+
"span",
|
|
37
|
+
{ class: "pi pi-trash" },
|
|
38
|
+
null,
|
|
39
|
+
-1
|
|
40
|
+
/* CACHED */
|
|
41
|
+
)
|
|
42
|
+
])]),
|
|
43
|
+
e("button", {
|
|
44
|
+
class: "audio-recorder__button audio-recorder__button-record",
|
|
45
|
+
onClick: o.stopAudioRecording
|
|
46
|
+
}, [...r[2] || (r[2] = [
|
|
47
|
+
e(
|
|
48
|
+
"div",
|
|
49
|
+
{ class: "audio-recorder__stop" },
|
|
50
|
+
null,
|
|
51
|
+
-1
|
|
52
|
+
/* CACHED */
|
|
53
|
+
)
|
|
54
|
+
])]),
|
|
55
|
+
e(
|
|
56
|
+
"span",
|
|
57
|
+
m,
|
|
58
|
+
a(o.elapsedTime),
|
|
59
|
+
1
|
|
60
|
+
/* TEXT */
|
|
61
|
+
)
|
|
62
|
+
])) : t("v-if", !0),
|
|
63
|
+
!o.audioRecording && o.uploadStatus != "uploading" && !o.getMessage().isRecording ? (d(), i(
|
|
64
|
+
"button",
|
|
65
|
+
{
|
|
66
|
+
key: 2,
|
|
67
|
+
class: c(["audio-recorder__button", { "audio-recorder__button-disabled": n.state == "disabled" || o.getMessage().file }]),
|
|
68
|
+
onClick: o.startAudioRecording
|
|
69
|
+
},
|
|
70
|
+
[...r[4] || (r[4] = [
|
|
71
|
+
e(
|
|
72
|
+
"span",
|
|
73
|
+
{ class: "pi pi-microphone" },
|
|
74
|
+
null,
|
|
75
|
+
-1
|
|
76
|
+
/* CACHED */
|
|
77
|
+
)
|
|
78
|
+
])],
|
|
79
|
+
2
|
|
80
|
+
/* CLASS */
|
|
81
|
+
)) : t("v-if", !0)
|
|
82
|
+
]);
|
|
83
|
+
}
|
|
84
|
+
const y = /* @__PURE__ */ l(s, [["render", g], ["__scopeId", "data-v-1e819cf3"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_elements/AudioRecorder/AudioRecorder.vue"]]);
|
|
5
85
|
export {
|
|
6
|
-
|
|
86
|
+
y as default
|
|
7
87
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { buildFilePreview as
|
|
3
|
-
import { uploadFile as
|
|
4
|
-
import { useMessageDraft as
|
|
1
|
+
import { defineComponent as I, inject as j, ref as a, computed as x } from "vue";
|
|
2
|
+
import { buildFilePreview as z } from "../../../hooks/uploadFile/generatePreview.js";
|
|
3
|
+
import { uploadFile as D } from "../../../hooks/uploadFile/uploadFile.js";
|
|
4
|
+
import { useMessageDraft as L } from "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import "../../../hooks/useSearchModel.js";
|
|
6
6
|
import "../../../hooks/useTheme.js";
|
|
7
7
|
import "../../../hooks/useEmojiNative.js";
|
|
@@ -12,13 +12,7 @@ import "../../../locale/useLocale.js";
|
|
|
12
12
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
13
13
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
14
14
|
import "../../../functions/parseMarkdown.js";
|
|
15
|
-
const
|
|
16
|
-
key: 0,
|
|
17
|
-
class: "audio-recorder__status"
|
|
18
|
-
}, O = {
|
|
19
|
-
key: 1,
|
|
20
|
-
class: "audio-recorder__recording-container"
|
|
21
|
-
}, P = { class: "audio-recorder__recording-time" }, ae = /* @__PURE__ */ z({
|
|
15
|
+
const V = /* @__PURE__ */ I({
|
|
22
16
|
__name: "AudioRecorder",
|
|
23
17
|
props: {
|
|
24
18
|
state: {
|
|
@@ -30,67 +24,41 @@ const T = { class: "audio-recorder__container" }, V = {
|
|
|
30
24
|
default: null
|
|
31
25
|
}
|
|
32
26
|
},
|
|
33
|
-
setup(
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
27
|
+
setup(h, { expose: w }) {
|
|
28
|
+
w();
|
|
29
|
+
const R = j("chatAppId"), { getMessage: _, setMessageFile: y, setRecordingMessage: v } = L(R), c = a(), e = a(0), l = a(0), u = a(0), o = a(0), A = x(() => {
|
|
30
|
+
let i = o.value < 10 ? "0" + o.value : o.value, r = u.value < 10 ? "0" + u.value : u.value, t = l.value < 10 ? "0" + l.value : l.value, F = e.value < 10 ? "00" + e.value : e.value < 100 ? "0" + e.value : e.value;
|
|
31
|
+
return i + ":" + r + ":" + t + ":" + F;
|
|
32
|
+
}), p = a(""), m = a(!1), s = a(), n = a([]), d = a(), f = h, M = async () => {
|
|
33
|
+
if (!_().file && f.state == "active") {
|
|
34
|
+
const i = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
|
|
35
|
+
c.value = setInterval(() => {
|
|
36
|
+
e.value += 10, e.value == 1e3 && (e.value = 0, l.value++, l.value == 60 && (l.value = 0, u.value++, u.value == 60 && (u.value = 0, o.value++)));
|
|
37
|
+
}, 10), v(!0), m.value = !0, s.value = new MediaRecorder(i), s.value.start(), s.value.ondataavailable = (r) => {
|
|
38
|
+
n.value.push(r.data);
|
|
44
39
|
};
|
|
45
40
|
}
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
url:
|
|
54
|
-
name:
|
|
55
|
-
size:
|
|
56
|
-
type:
|
|
57
|
-
preview:
|
|
41
|
+
}, S = () => {
|
|
42
|
+
g(), d.value = void 0;
|
|
43
|
+
}, U = () => {
|
|
44
|
+
s.value && (s.value.stop(), s.value.onstop = async () => {
|
|
45
|
+
const i = new File(n.value, "voicemessage.mp3", { type: "audio/*" }), r = URL.createObjectURL(i);
|
|
46
|
+
d.value = r, p.value = "uploading", await D(f.filebumpUrl, i).then((t) => {
|
|
47
|
+
p.value = t.status, t.status == "success" && y({
|
|
48
|
+
url: t.url,
|
|
49
|
+
name: t.name,
|
|
50
|
+
size: t.size,
|
|
51
|
+
type: t.type,
|
|
52
|
+
preview: z(t.name, t.preview)
|
|
58
53
|
});
|
|
59
54
|
});
|
|
60
|
-
}),
|
|
61
|
-
},
|
|
62
|
-
clearInterval(
|
|
63
|
-
};
|
|
64
|
-
return (
|
|
65
|
-
c.value === "uploading" ? (p(), v("div", V, [...e[0] || (e[0] = [
|
|
66
|
-
l("span", null, "Загрузка файла...", -1)
|
|
67
|
-
])])) : _("", !0),
|
|
68
|
-
d.value && c.value != "uploading" ? (p(), v("div", O, [
|
|
69
|
-
e[3] || (e[3] = l("span", { class: "audio-recorder__recording-icon pi pi-circle-fill" }, null, -1)),
|
|
70
|
-
l("button", {
|
|
71
|
-
class: "audio-recorder__button audio-recorder__button-record",
|
|
72
|
-
onClick: F
|
|
73
|
-
}, [...e[1] || (e[1] = [
|
|
74
|
-
l("span", { class: "pi pi-trash" }, null, -1)
|
|
75
|
-
])]),
|
|
76
|
-
l("button", {
|
|
77
|
-
class: "audio-recorder__button audio-recorder__button-record",
|
|
78
|
-
onClick: I
|
|
79
|
-
}, [...e[2] || (e[2] = [
|
|
80
|
-
l("div", { class: "audio-recorder__stop" }, null, -1)
|
|
81
|
-
])]),
|
|
82
|
-
l("span", P, x(U.value), 1)
|
|
83
|
-
])) : _("", !0),
|
|
84
|
-
!d.value && c.value != "uploading" && !A(m)().isRecording ? (p(), v("button", {
|
|
85
|
-
key: 2,
|
|
86
|
-
class: B(["audio-recorder__button", { "audio-recorder__button-disabled": g.state == "disabled" || A(m)().file }]),
|
|
87
|
-
onClick: h
|
|
88
|
-
}, [...e[4] || (e[4] = [
|
|
89
|
-
l("span", { class: "pi pi-microphone" }, null, -1)
|
|
90
|
-
])], 2)) : _("", !0)
|
|
91
|
-
]));
|
|
55
|
+
}), g();
|
|
56
|
+
}, g = () => {
|
|
57
|
+
clearInterval(c.value), e.value = 0, l.value = 0, u.value = 0, o.value = 0, v(!1), m.value = !1, s.value = void 0, n.value = [];
|
|
58
|
+
}, b = { chatAppId: R, getMessage: _, setMessageFile: y, setRecordingMessage: v, timer: c, ms: e, s: l, m: u, h: o, elapsedTime: A, uploadStatus: p, audioRecording: m, mediaRecorder: s, chunks: n, audio: d, props: f, startAudioRecording: M, cancelAudioRecording: S, stopAudioRecording: U, clearTemp: g };
|
|
59
|
+
return Object.defineProperty(b, "__isScriptSetup", { enumerable: !1, value: !0 }), b;
|
|
92
60
|
}
|
|
93
61
|
});
|
|
94
62
|
export {
|
|
95
|
-
|
|
63
|
+
V as default
|
|
96
64
|
};
|