@mobilon-dev/chotto 0.3.30 → 0.3.32
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/_virtual/_plugin-vue_export-helper.js +9 -0
- package/dist/chotto.css +1 -1
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +7 -0
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +106 -0
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +46 -0
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue.js +7 -0
- package/dist/components/1_atoms/EmbedPreview/EmbedPreview.vue2.js +39 -0
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue.js +7 -0
- package/dist/components/1_atoms/LinkPreview/LinkPreview.vue2.js +32 -0
- package/dist/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.js +23 -0
- package/dist/components/1_atoms/Tooltip/Tooltip.vue.js +7 -0
- package/dist/components/1_atoms/Tooltip/Tooltip.vue2.js +77 -0
- package/dist/components/1_icons/AvatarIcon.vue.js +42 -0
- package/dist/components/1_icons/CheckIcon.vue.js +28 -0
- package/dist/components/1_icons/CloseButtonIcon.vue.js +21 -0
- package/dist/components/1_icons/ContactCRMIcon.vue.js +21 -0
- package/dist/components/1_icons/MenuIcon.vue.js +21 -0
- package/dist/components/1_icons/SearchIcon.vue.js +28 -0
- package/dist/components/1_icons/SettingsIcon.vue.js +18 -0
- package/dist/components/1_icons/TelegramIcon.vue.js +32 -0
- package/dist/components/1_icons/WhatsAppIcon.vue.js +32 -0
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +307 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationActions.js +83 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationAttributes.js +60 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationChannels.js +70 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationDialogSync.js +36 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationMenu.js +37 -0
- package/dist/components/2_blocks/CommunicationPanel/composables/useCommunicationSubMenu.js +69 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelMaxIcon.vue.js +18 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelPhoneIcon.vue.js +23 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSMSIcon.vue.js +21 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuMaxIcon.vue.js +34 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuPhoneIcon.vue.js +32 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuSMSIcon.vue.js +21 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuTelegramIcon.vue.js +18 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelSubmenuWhatsAppIcon.vue.js +32 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelTelegramIcon.vue.js +32 -0
- package/dist/components/2_blocks/CommunicationPanel/icons/CommunicationPanelWhatsAppIcon.vue.js +18 -0
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue.js +7 -0
- package/dist/components/2_blocks/FeedFoundItem/FeedFoundItem.vue2.js +61 -0
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue.js +7 -0
- package/dist/components/2_blocks/FeedFoundObjects/FeedFoundObjects.vue2.js +58 -0
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue.js +7 -0
- package/dist/components/2_blocks/FeedSearch/FeedSearch.vue2.js +68 -0
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue.js +7 -0
- package/dist/components/2_chatinput_elements/ButtonCommandsSelector/ButtonCommandsSelector.vue2.js +70 -0
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +106 -0
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +18 -0
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +105 -0
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +25 -0
- package/dist/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.js +98 -0
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue.js +7 -0
- package/dist/components/2_chatinput_elements/FilePreview/FilePreview.vue2.js +157 -0
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +7 -0
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +105 -0
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +21 -0
- package/dist/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.js +66 -0
- package/dist/components/2_chatinput_elements/TemplateSelector/TemplateSelector.vue.js +206 -0
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue.js +7 -0
- package/dist/components/2_chatinput_elements/TextFormatToolbar/TextFormatToolbar.vue2.js +210 -0
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue.js +7 -0
- package/dist/components/2_chatinput_elements/WABAAttachmentSection/WABAAttachmentSection.vue2.js +126 -0
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js +7 -0
- package/dist/components/2_chatinput_elements/WABAQuickReplyButtons/WABAQuickReplyButtons.vue2.js +38 -0
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js +7 -0
- package/dist/components/2_chatinput_elements/WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue2.js +41 -0
- package/dist/components/2_chatinput_elements/WABATemplateSelector/WABATemplateSelector.vue.js +281 -0
- package/dist/components/2_chatlist_elements/ChatFilter/ChatFilter.vue.js +49 -0
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +7 -0
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +193 -0
- package/dist/components/2_chatlist_elements/ChatTabs/ChatTabs.vue.js +37 -0
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue.js +7 -0
- package/dist/components/2_elements/AudioRecorder/AudioRecorder.vue2.js +116 -0
- package/dist/components/2_elements/ChannelSelector/ChannelSelector.vue.js +73 -0
- package/dist/components/2_elements/ChatInfo/ChatInfo.vue.js +93 -0
- package/dist/components/2_elements/ChatPanel/ChatPanel.vue.js +47 -0
- package/dist/components/2_elements/ContactInfo/ContactInfo.vue.js +158 -0
- package/dist/components/2_elements/ThemeMode/ThemeMode.vue.js +49 -0
- package/dist/components/2_elements/UserProfile/UserProfile.vue.js +39 -0
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue.js +7 -0
- package/dist/components/2_elements/VideoRecorder/VideoRecorder.vue2.js +94 -0
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +380 -0
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue2.js +57 -0
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +476 -0
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue.js +26 -0
- package/dist/components/2_feed_elements/CallMessage/icons/IncomingCallIcon.vue2.js +4 -0
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue.js +26 -0
- package/dist/components/2_feed_elements/CallMessage/icons/OutgoingCallIcon.vue2.js +4 -0
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/DateMessage/DateMessage.vue2.js +20 -0
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue.js +7 -0
- package/dist/components/2_feed_elements/DateMessageSticky/DateMessageSticky.vue2.js +18 -0
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue.js +7 -0
- package/dist/components/2_feed_elements/FeedKeyboard/FeedKeyboard.vue2.js +42 -0
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +204 -0
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +266 -0
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue.js +7 -0
- package/dist/components/2_feed_elements/MessageKeyboard/MessageKeyboard.vue2.js +46 -0
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +7 -0
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +161 -0
- package/dist/components/2_feed_elements/MessageReactions/composables/usePositioning.js +104 -0
- package/dist/components/2_feed_elements/MessageReactions/composables/useReactions.js +30 -0
- package/dist/components/2_feed_elements/MessageReactions/composables/useReactionsPanel.js +90 -0
- package/dist/components/2_feed_elements/MessageReactions/composables/useReactionsState.js +32 -0
- package/dist/components/2_feed_elements/MessageReactions/utils/quickReactions.js +17 -0
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue.js +73 -0
- package/dist/components/2_feed_elements/MessageStatusIndicator/MessageStatusIndicator.vue2.js +4 -0
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyAudioMessage/ReplyAudioMessage.vue2.js +39 -0
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyCallMessage/ReplyCallMessage.vue2.js +35 -0
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyFileMessage/ReplyFileMessage.vue2.js +46 -0
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyImageMessage/ReplyImageMessage.vue2.js +71 -0
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue2.js +119 -0
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyTextMessage/ReplyTextMessage.vue2.js +27 -0
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/ReplyVideoMessage/ReplyVideoMessage.vue2.js +75 -0
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue.js +7 -0
- package/dist/components/2_feed_elements/SplashScreen/SplashScreen.vue2.js +23 -0
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +258 -0
- package/dist/components/2_feed_elements/StickerMessage/libs/tgs-player/lottie-player.esm.js +6469 -0
- package/dist/components/2_feed_elements/StickerMessage/libs/tgs-player/tgs-player.esm.js +7216 -0
- package/dist/components/2_feed_elements/StickerMessage/utils/stickerUtils.js +10 -0
- package/dist/components/2_feed_elements/StickerMessage/utils/suppress-lit-warning.js +21 -0
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/SystemMessage/SystemMessage.vue2.js +18 -0
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +174 -0
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/TypingMessage/TypingMessage.vue2.js +32 -0
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +7 -0
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +286 -0
- package/dist/{CreateChat-C4y1ddK_.js → components/2_modals/CreateChat/CreateChat.vue.js} +8 -7
- package/dist/components/2_modals/CreateChat/CreateChat.vue2.js +1 -0
- package/dist/{CreateChat2-Oy9JaaRC.js → components/2_modals/CreateChat2/CreateChat2.vue.js} +4 -3
- package/dist/{CreateDialog-DacwclUe.js → components/2_modals/CreateDialog/CreateDialog.vue.js} +12 -11
- package/dist/components/2_modals/Modal/Modal.vue.js +69 -0
- package/dist/components/2_modals/ModalFullscreen/ModalFullscreen.vue.js +46 -0
- package/dist/components/2_modals/ModalNoFooter/ModalNoFooter.vue.js +43 -0
- package/dist/components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue.js +7 -0
- package/dist/{ModalVideoRecorder-BkPr4JP7.js → components/2_modals/ModalVideoRecorder/ModalVideoRecorder.vue2.js} +48 -49
- package/dist/components/2_modals/SelectUser/SelectUser.vue.js +63 -0
- package/dist/{SelectUser2-kaPAmxhi.js → components/2_modals/SelectUser2/SelectUser2.vue.js} +4 -3
- package/dist/components/3_compounds/ChatInput/ChatInput.vue.js +7 -0
- package/dist/components/3_compounds/ChatInput/ChatInput.vue2.js +192 -0
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue.js +35 -0
- package/dist/components/3_compounds/ChatInput/icons/SendIcon.vue2.js +4 -0
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +195 -0
- package/dist/components/3_compounds/ChatList/ChatListHeader.vue.js +27 -0
- package/dist/components/3_compounds/ChatList/composables/useChatListActions.js +16 -0
- package/dist/components/3_compounds/ChatList/composables/useChatListFilter.js +27 -0
- package/dist/components/3_compounds/ChatList/composables/useChatListScroll.js +47 -0
- package/dist/components/3_compounds/ChatList/composables/useChatListSelection.js +28 -0
- package/dist/components/3_compounds/Feed/Feed.vue.js +7 -0
- package/dist/components/3_compounds/Feed/Feed.vue2.js +295 -0
- package/dist/components/3_compounds/Feed/assets/chat-background.svg.js +7 -0
- package/dist/components/3_compounds/Feed/composables/useFeedButton.js +17 -0
- package/dist/components/3_compounds/Feed/composables/useFeedComponents.js +29 -0
- package/dist/components/3_compounds/Feed/composables/useFeedGrouping.js +15 -0
- package/dist/components/3_compounds/Feed/composables/useFeedKeyboard.js +15 -0
- package/dist/components/3_compounds/Feed/composables/useFeedLoadMore.js +62 -0
- package/dist/components/3_compounds/Feed/composables/useFeedMessageVisibility.js +33 -0
- package/dist/components/3_compounds/Feed/composables/useFeedReply.js +42 -0
- package/dist/components/3_compounds/Feed/composables/useFeedScroll.js +63 -0
- package/dist/components/3_compounds/Feed/composables/useFeedScrollTo.js +18 -0
- package/dist/components/3_compounds/Feed/composables/useStickyDate.js +61 -0
- package/dist/components/3_compounds/Feed/functions/throttle.js +11 -0
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +190 -0
- package/dist/components/4_layouts/AdaptiveExtendedLayout/AdaptiveExtendedLayout.vue.js +63 -0
- package/dist/components/4_layouts/BaseLayout/BaseLayout.vue.js +18 -0
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue.js +7 -0
- package/dist/components/4_layouts/ChatWrapper/ChatWrapper.vue2.js +53 -0
- package/dist/components/4_layouts/ExtendedLayout/ExtendedLayout.vue.js +21 -0
- package/dist/components/4_layouts/FeedLayout/FeedLayout.vue.js +15 -0
- package/dist/components/5_containers/BaseContainer/BaseContainer.vue.js +33 -0
- package/dist/components/5_containers/FloatContainer/FloatContainer.vue.js +104 -0
- package/dist/functions/createReactionHandlers.js +19 -0
- package/dist/functions/formatTimestamp.js +8 -0
- package/dist/functions/getChannelAccentColor.js +30 -0
- package/dist/functions/getMessageClass.js +6 -0
- package/dist/functions/getStatusMessage.js +42 -0
- package/dist/functions/insertDaySeparators.js +24 -0
- package/dist/functions/parseMarkdown.js +18 -0
- package/dist/functions/playNotificationAudio.js +13 -0
- package/dist/functions/sortByTimestamp.js +4 -0
- package/dist/hooks/messages/useChannelAccentColor.js +29 -0
- package/dist/hooks/messages/useMessageActions.js +28 -0
- package/dist/hooks/messages/useMessageLinks.js +48 -0
- package/dist/hooks/messages/useSubtextTooltip.js +12 -0
- package/dist/hooks/modals/useCreateChat.js +19 -0
- package/dist/hooks/modals/useCreateChat2.js +16 -0
- package/dist/hooks/modals/useCreateDialog.js +20 -0
- package/dist/hooks/modals/useModal.js +41 -0
- package/dist/hooks/modals/useModalSelectUser2.js +20 -0
- package/dist/hooks/modals/useVideoRecorder.js +14 -0
- package/dist/hooks/uploadFile/generatePreview.js +20 -0
- package/dist/hooks/uploadFile/getTypeFileByMime.js +7 -0
- package/dist/hooks/uploadFile/uploadFile.js +28 -0
- package/dist/hooks/useDelayDebouncedRef.js +18 -0
- package/dist/hooks/useImmediateDebouncedRef.js +18 -0
- package/dist/hooks/useMessageDraft.js +87 -0
- package/dist/hooks/useSearchModel.js +11 -0
- package/dist/hooks/useTheme.js +11 -0
- package/dist/hooks/validators/chats/chatValidator.js +79 -0
- package/dist/hooks/validators/chats/useChatValidator.js +82 -0
- package/dist/hooks/validators/messages/messageValidator.js +84 -0
- package/dist/hooks/validators/messages/useMessageValidator.js +82 -0
- package/dist/hooks/validators/sidebar/sidebarValidator.js +47 -0
- package/dist/hooks/validators/sidebar/useSidebarValidator.js +82 -0
- package/dist/hooks/validators/useValidation.js +94 -0
- package/dist/index.js +239 -0
- package/dist/locale/en.js +22 -0
- package/dist/locale/ru.js +22 -0
- package/dist/locale/useLocale.js +34 -0
- package/dist/node_modules/entities/lib/esm/decode.js +278 -0
- package/dist/node_modules/entities/lib/esm/decode_codepoint.js +46 -0
- package/dist/node_modules/entities/lib/esm/generated/decode-data-html.js +7 -0
- package/dist/node_modules/entities/lib/esm/generated/decode-data-xml.js +7 -0
- package/dist/node_modules/linkify-it/index.js +187 -0
- package/dist/node_modules/linkify-it/lib/re.js +19 -0
- package/dist/node_modules/linkify-string/dist/linkify-string.js +41 -0
- package/dist/node_modules/linkifyjs/dist/linkify.js +679 -0
- package/dist/node_modules/markdown-it/lib/common/html_blocks.js +67 -0
- package/dist/node_modules/markdown-it/lib/common/html_re.js +5 -0
- package/dist/node_modules/markdown-it/lib/common/utils.js +169 -0
- package/dist/node_modules/markdown-it/lib/helpers/index.js +8 -0
- package/dist/node_modules/markdown-it/lib/helpers/parse_link_destination.js +44 -0
- package/dist/node_modules/markdown-it/lib/helpers/parse_link_label.js +21 -0
- package/dist/node_modules/markdown-it/lib/helpers/parse_link_title.js +37 -0
- package/dist/node_modules/markdown-it/lib/index.js +112 -0
- package/dist/node_modules/markdown-it/lib/parser_block.js +63 -0
- package/dist/node_modules/markdown-it/lib/parser_core.js +34 -0
- package/dist/node_modules/markdown-it/lib/parser_inline.js +96 -0
- package/dist/node_modules/markdown-it/lib/presets/commonmark.js +78 -0
- package/dist/node_modules/markdown-it/lib/presets/default.js +40 -0
- package/dist/node_modules/markdown-it/lib/presets/zero.js +59 -0
- package/dist/node_modules/markdown-it/lib/renderer.js +127 -0
- package/dist/node_modules/markdown-it/lib/ruler.js +95 -0
- package/dist/node_modules/markdown-it/lib/rules_block/blockquote.js +59 -0
- package/dist/node_modules/markdown-it/lib/rules_block/code.js +23 -0
- package/dist/node_modules/markdown-it/lib/rules_block/fence.js +30 -0
- package/dist/node_modules/markdown-it/lib/rules_block/heading.js +28 -0
- package/dist/node_modules/markdown-it/lib/rules_block/hr.js +27 -0
- package/dist/node_modules/markdown-it/lib/rules_block/html_block.js +37 -0
- package/dist/node_modules/markdown-it/lib/rules_block/lheading.js +43 -0
- package/dist/node_modules/markdown-it/lib/rules_block/list.js +110 -0
- package/dist/node_modules/markdown-it/lib/rules_block/paragraph.js +25 -0
- package/dist/node_modules/markdown-it/lib/rules_block/reference.js +95 -0
- package/dist/node_modules/markdown-it/lib/rules_block/state_block.js +84 -0
- package/dist/node_modules/markdown-it/lib/rules_block/table.js +99 -0
- package/dist/node_modules/markdown-it/lib/rules_core/block.js +7 -0
- package/dist/node_modules/markdown-it/lib/rules_core/inline.js +10 -0
- package/dist/node_modules/markdown-it/lib/rules_core/linkify.js +57 -0
- package/dist/node_modules/markdown-it/lib/rules_core/normalize.js +9 -0
- package/dist/node_modules/markdown-it/lib/rules_core/replacements.js +31 -0
- package/dist/node_modules/markdown-it/lib/rules_core/smartquotes.js +80 -0
- package/dist/node_modules/markdown-it/lib/rules_core/state_core.js +8 -0
- package/dist/node_modules/markdown-it/lib/rules_core/text_join.js +16 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/autolink.js +46 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/backticks.js +31 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/balance_pairs.js +34 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/emphasis.js +57 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/entity.js +33 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/escape.js +32 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/fragments_join.js +10 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/html_inline.js +32 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/image.js +48 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/link.js +40 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/linkify.js +28 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/newline.js +23 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/state_inline.js +27 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/strikethrough.js +54 -0
- package/dist/node_modules/markdown-it/lib/rules_inline/text.js +39 -0
- package/dist/node_modules/markdown-it/lib/token.js +31 -0
- package/dist/node_modules/mdurl/index.js +10 -0
- package/dist/node_modules/mdurl/lib/decode.js +61 -0
- package/dist/node_modules/mdurl/lib/encode.js +48 -0
- package/dist/node_modules/mdurl/lib/format.js +7 -0
- package/dist/node_modules/mdurl/lib/parse.js +74 -0
- package/dist/node_modules/punycode.js/punycode.es6.js +139 -0
- package/dist/node_modules/uc.micro/categories/Cc/regex.js +4 -0
- package/dist/node_modules/uc.micro/categories/Cf/regex.js +4 -0
- package/dist/node_modules/uc.micro/categories/P/regex.js +4 -0
- package/dist/node_modules/uc.micro/categories/S/regex.js +4 -0
- package/dist/node_modules/uc.micro/categories/Z/regex.js +4 -0
- package/dist/node_modules/uc.micro/index.js +14 -0
- package/dist/node_modules/uc.micro/properties/Any/regex.js +4 -0
- package/dist/node_modules/vue3-emoji-picker-ru/dist/emoji-picker.es.js +16471 -0
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/components/1_atoms/LoadingIndicator/LoadingIndicator.vue.d.ts +7 -0
- package/dist/types/components/1_atoms/LoadingIndicator/stories/LoadingIndicator.stories.d.ts +9 -0
- package/dist/types/components/1_atoms/LoadingIndicator/styles/types.d.ts +49 -0
- package/dist/types/components/1_icons/AvatarIcon.vue.d.ts +1 -1
- package/dist/types/components/2_blocks/CommunicationPanel/composables/useCommunicationChannels.d.ts +1 -1
- package/dist/types/components/2_blocks/FeedSearch/FeedSearch.vue.d.ts +2 -2
- package/dist/types/components/2_chatinput_elements/ButtonWabaTemplateSelector/ButtonWabaTemplateSelector.vue.d.ts +2 -2
- package/dist/types/components/2_chatinput_elements/PlaceholderComponent/PlaceholderComponent.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/BaseReplyMessage/BaseReplyMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/CallMessage/CallMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/ReplyStickerMessage/ReplyStickerMessage.vue.d.ts +1 -3
- package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +3 -5
- package/dist/types/components/2_feed_elements/StickerMessage/utils/stickerUtils.d.ts +19 -0
- package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +2 -2
- package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +2 -2
- package/dist/types/components/2_modals/CreateDialog/CreateDialog.vue.d.ts +2 -2
- package/dist/types/components/2_modals/CreateDialog/stories/CreateDialog.stories.d.ts +2 -2
- package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +3 -1
- package/dist/types/components/3_compounds/Feed/Feed.vue.d.ts +2 -2
- package/dist/types/main.d.ts +1 -1
- package/package.json +5 -5
- package/dist/index-BzAEsq7j.js +0 -43508
- package/dist/vuessages.es.js +0 -123
- package/dist/vuessages.umd.js +0 -624
- /package/dist/types/{utils → components/2_feed_elements/StickerMessage/utils}/suppress-lit-warning.d.ts +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { defineComponent as c, createElementBlock as n, openBlock as i, createElementVNode as t, Fragment as u, renderList as d, normalizeClass as _, toDisplayString as m } from "vue";
|
|
2
|
+
const b = { class: "separated-quick-buttons" }, k = { class: "separated-quick-buttons__title" }, f = { class: "separated-quick-buttons__actions scrollbar" }, A = /* @__PURE__ */ c({
|
|
3
|
+
__name: "WABASeparatedQuickButtons",
|
|
4
|
+
props: {
|
|
5
|
+
buttons: {
|
|
6
|
+
type: Array,
|
|
7
|
+
default: []
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
emits: ["selectAllVariants"],
|
|
11
|
+
setup(a, { emit: o }) {
|
|
12
|
+
const l = {
|
|
13
|
+
URL: "bi-box-arrow-up-right",
|
|
14
|
+
PHONE_NUMBER: "bi-telephone",
|
|
15
|
+
QUICK_REPLY: "bi-arrow-90deg-left"
|
|
16
|
+
}, r = o;
|
|
17
|
+
return (v, e) => (i(), n("div", b, [
|
|
18
|
+
t("div", k, [
|
|
19
|
+
e[1] || (e[1] = t("p", null, "Все варианты", -1)),
|
|
20
|
+
t("span", {
|
|
21
|
+
class: "pi pi-times",
|
|
22
|
+
onClick: e[0] || (e[0] = (s) => r("selectAllVariants"))
|
|
23
|
+
})
|
|
24
|
+
]),
|
|
25
|
+
t("div", f, [
|
|
26
|
+
(i(!0), n(u, null, d(a.buttons, (s, p) => (i(), n("div", {
|
|
27
|
+
key: p,
|
|
28
|
+
class: "separated-quick-buttons__action"
|
|
29
|
+
}, [
|
|
30
|
+
t("span", {
|
|
31
|
+
class: _(["pi pi-arrow-up-left", l[s.type]])
|
|
32
|
+
}, null, 2),
|
|
33
|
+
t("p", null, m(s.text), 1)
|
|
34
|
+
]))), 128))
|
|
35
|
+
])
|
|
36
|
+
]));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
export {
|
|
40
|
+
A as default
|
|
41
|
+
};
|
|
@@ -0,0 +1,281 @@
|
|
|
1
|
+
import { inject as re, ref as i, computed as u, reactive as ce, onMounted as ie, unref as F, createElementBlock as n, openBlock as o, createElementVNode as s, normalizeClass as j, createCommentVNode as p, Fragment as S, renderList as R, withDirectives as $, vModelRadio as ue, toDisplayString as I, vModelText as de, normalizeStyle as pe, createBlock as L, createVNode as me } from "vue";
|
|
2
|
+
import ve from "../../3_compounds/Feed/assets/chat-background.svg.js";
|
|
3
|
+
import _e from "../PlaceholderComponent/PlaceholderComponent.vue.js";
|
|
4
|
+
import fe from "../WABAAttachmentSection/WABAAttachmentSection.vue.js";
|
|
5
|
+
import ye from "../WABAQuickReplyButtons/WABAQuickReplyButtons.vue.js";
|
|
6
|
+
import he from "../WABASeparatedQuickButtons/WABASeparatedQuickButtons.vue.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import be from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const ge = { class: "template-selector" }, we = ["id"], ke = { style: { display: "flex" } }, Te = { style: { display: "flex" } }, Ce = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "template-selector__button-close"
|
|
12
|
+
}, xe = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "template-selector__button-close"
|
|
15
|
+
}, Ve = { class: "template-selector__layout" }, Se = { class: "template-selector__first-col" }, Ie = { class: "template-selector__list-groups" }, Ae = { class: "template-selector__label-group" }, Be = ["src", "alt"], We = ["id", "value"], Ee = { class: "template-selector__second-col" }, Pe = { class: "template-selector__searching-container" }, Fe = { class: "template-selector__templates" }, je = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "template-selector__list-templates"
|
|
18
|
+
}, Re = ["onClick"], Le = { class: "template-selector__item-template-info" }, Oe = { class: "template-selector__item-title" }, Ue = { class: "template-selector__item-text" }, ze = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "template-selector__plug"
|
|
21
|
+
}, Me = { class: "template-selector__third-col" }, Qe = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "template-selector__preview"
|
|
24
|
+
}, $e = { class: "template-selector__preview-wrapper" }, qe = { class: "template-selector__preview-text-container" }, Ne = { key: 0 }, Xe = {
|
|
25
|
+
key: 1,
|
|
26
|
+
class: "template-selector__plug"
|
|
27
|
+
}, De = {
|
|
28
|
+
key: 2,
|
|
29
|
+
class: "template-selector__reply-buttons"
|
|
30
|
+
}, Ge = ["disabled"], He = {
|
|
31
|
+
__name: "WABATemplateSelector",
|
|
32
|
+
props: {
|
|
33
|
+
wabaTemplates: {
|
|
34
|
+
type: Array,
|
|
35
|
+
required: !1,
|
|
36
|
+
default: () => []
|
|
37
|
+
},
|
|
38
|
+
groupTemplates: {
|
|
39
|
+
type: Array,
|
|
40
|
+
required: !1,
|
|
41
|
+
default: () => []
|
|
42
|
+
},
|
|
43
|
+
elevatedWindow: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
required: !1,
|
|
46
|
+
default: !1
|
|
47
|
+
},
|
|
48
|
+
chatBackground: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: void 0
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
emits: ["closeTemplateWindow", "sendWabaValues"],
|
|
54
|
+
setup(w, { emit: q }) {
|
|
55
|
+
const m = w, y = re("chatAppId"), A = q, N = () => {
|
|
56
|
+
A("closeTemplateWindow"), z();
|
|
57
|
+
}, X = () => {
|
|
58
|
+
A("closeTemplateWindow");
|
|
59
|
+
const e = {
|
|
60
|
+
text: "",
|
|
61
|
+
templateId: "",
|
|
62
|
+
values: [],
|
|
63
|
+
file: null,
|
|
64
|
+
buttons: null
|
|
65
|
+
};
|
|
66
|
+
v.value ? (e.text = M.value, e.templateId = a.value.templateId, e.values = Q.value, e.file = v.value) : (e.text = M.value, e.templateId = a.value.templateId, e.values = Q.value), a.value.buttons && (e.buttons = a.value.buttons), A("sendWabaValues", e), z();
|
|
67
|
+
}, D = (e) => {
|
|
68
|
+
v.value = e;
|
|
69
|
+
}, k = i(null), h = i(null), a = i(null), v = i(null), B = i(""), b = i(!1), W = () => {
|
|
70
|
+
b.value = !b.value, b.value ? (k.value.scrollTop = 0, k.value.style["overflow-y"] = "hidden") : k.value.style["overflow-y"] = "scroll";
|
|
71
|
+
}, G = (e) => {
|
|
72
|
+
Object.keys(r).forEach((l) => {
|
|
73
|
+
r[l] = "";
|
|
74
|
+
}), v.value = null, m.wabaTemplates.forEach((l) => l.isSelected = !1), e.isSelected = !0, a.value = e, b.value = !1, U();
|
|
75
|
+
}, H = () => {
|
|
76
|
+
P(), m.wabaTemplates.forEach((e) => e.isSelected = !1);
|
|
77
|
+
}, J = u(() => m.chatBackground ?? `data:image/svg+xml;charset=utf-8,${encodeURIComponent(ve)}`), K = u(() => h.value ? m.wabaTemplates.filter((e) => e.groupId === h.value.groupId) : m.wabaTemplates), O = u(() => {
|
|
78
|
+
const e = B.value.trim().toLowerCase();
|
|
79
|
+
return K.value.filter((l) => l.title.toLowerCase().includes(e) || l.template.toLowerCase().includes(e));
|
|
80
|
+
}), r = ce({}), Y = i(null), E = i(), T = i(""), d = i(""), C = i(""), _ = i(!1), Z = u(() => !!(_.value && (C.value == "grid" && d.value == "none" || d.value == "grid" && T.value == "none"))), ee = u(() => !!(_.value && (T.value == "grid" && d.value == "none" || d.value == "grid" && C.value == "none"))), te = () => {
|
|
81
|
+
_.value && (d.value == "grid" ? se() : C.value == "grid" && P());
|
|
82
|
+
}, le = () => {
|
|
83
|
+
_.value && (d.value == "grid" ? U() : T.value == "grid" && P());
|
|
84
|
+
}, se = () => {
|
|
85
|
+
const e = document.getElementById("waba-template-selector-container-" + y);
|
|
86
|
+
e.style.setProperty("--chotto-waba-template-first-col-display", "grid"), e.style.setProperty("--chotto-waba-template-second-col-display", "none"), console.log(e, window.getComputedStyle(e).getPropertyValue("--waba-template-first-col-display")), x();
|
|
87
|
+
}, U = () => {
|
|
88
|
+
const e = document.getElementById("waba-template-selector-container-" + y);
|
|
89
|
+
e.style.setProperty("--chotto-waba-template-third-col-display", "grid"), e.style.setProperty("--chotto-waba-template-second-col-display", "none"), x();
|
|
90
|
+
}, P = () => {
|
|
91
|
+
const e = document.getElementById("waba-template-selector-container-" + y);
|
|
92
|
+
e.style.setProperty("--chotto-waba-template-second-col-display", "grid"), e.style.setProperty("--chotto-waba-template-first-col-display", "none"), e.style.setProperty("--chotto-waba-template-third-col-display", "none"), x();
|
|
93
|
+
}, x = () => {
|
|
94
|
+
const e = document.getElementById("waba-template-selector-container-" + y), l = window.getComputedStyle(e);
|
|
95
|
+
T.value = l.getPropertyValue("--chotto-waba-template-first-col-display"), d.value = l.getPropertyValue("--chotto-waba-template-second-col-display"), C.value = l.getPropertyValue("--chotto-waba-template-third-col-display");
|
|
96
|
+
}, ae = (e) => {
|
|
97
|
+
r[e[1]] = e[0];
|
|
98
|
+
}, V = u(() => {
|
|
99
|
+
var f;
|
|
100
|
+
const e = (f = a.value) == null ? void 0 : f.template;
|
|
101
|
+
if (!e) return [];
|
|
102
|
+
const l = [...e.matchAll(/{{\d+}}/g)], t = [];
|
|
103
|
+
let c = 0;
|
|
104
|
+
return l.forEach((g) => {
|
|
105
|
+
g.index > c && t.push(e.substring(c, g.index)), t.push({ index: parseInt(g[0].slice(2, -2)) }), c = g.index + g[0].length;
|
|
106
|
+
}), c < e.length && t.push(e.substring(c)), t;
|
|
107
|
+
}), oe = u(() => {
|
|
108
|
+
var l, t;
|
|
109
|
+
if (!a.value)
|
|
110
|
+
return !0;
|
|
111
|
+
if (!((l = a.value) != null && l.template.match(/{{\d+}}/gi)))
|
|
112
|
+
return !1;
|
|
113
|
+
const e = Object.keys(r).length !== ((t = a.value) == null ? void 0 : t.template.match(/{{\d+}}/gi).length);
|
|
114
|
+
return a.value.type === "TEXT" ? e : a.value.type !== "TEXT" ? e || !v.value : !1;
|
|
115
|
+
}), z = () => {
|
|
116
|
+
Object.keys(r).forEach((e) => {
|
|
117
|
+
r[e] = "";
|
|
118
|
+
}), v.value = null, a.value = null, m.wabaTemplates.forEach((e) => e.isSelected = !1);
|
|
119
|
+
}, M = u(() => {
|
|
120
|
+
console.log(V.value, a.value.buttons);
|
|
121
|
+
let e = V.value.map((t) => typeof t == "string" ? t : r[t.index]).join(""), l = "";
|
|
122
|
+
return a.value.buttons && (l = a.value.buttons.map((t) => `
|
|
123
|
+
| [` + t.text + "]").join("")), e.concat(l);
|
|
124
|
+
}), Q = u(() => {
|
|
125
|
+
const e = [];
|
|
126
|
+
for (const l in r)
|
|
127
|
+
r[l] !== "" && r[l] !== "Заполнить" && e.push(r[l]);
|
|
128
|
+
return e;
|
|
129
|
+
}), ne = new ResizeObserver((e) => {
|
|
130
|
+
const l = e[0].target.clientWidth;
|
|
131
|
+
l > 700 && (_.value = !1), l < 700 && (_.value = !0);
|
|
132
|
+
});
|
|
133
|
+
return ie(() => {
|
|
134
|
+
x(), F(E) && ne.observe(F(E));
|
|
135
|
+
}), (e, l) => (o(), n("div", ge, [
|
|
136
|
+
s("div", {
|
|
137
|
+
id: "waba-template-selector-container-" + F(y),
|
|
138
|
+
ref_key: "refContainer",
|
|
139
|
+
ref: E,
|
|
140
|
+
class: j({
|
|
141
|
+
"template-selector__container-inline": !w.elevatedWindow,
|
|
142
|
+
"template-selector__container-elevated": w.elevatedWindow
|
|
143
|
+
})
|
|
144
|
+
}, [
|
|
145
|
+
s("div", ke, [
|
|
146
|
+
s("div", Te, [
|
|
147
|
+
Z.value ? (o(), n("button", Ce, [
|
|
148
|
+
s("span", {
|
|
149
|
+
class: "pi pi-arrow-left",
|
|
150
|
+
onClick: te
|
|
151
|
+
})
|
|
152
|
+
])) : p("", !0),
|
|
153
|
+
ee.value ? (o(), n("button", xe, [
|
|
154
|
+
s("span", {
|
|
155
|
+
class: "pi pi-arrow-right",
|
|
156
|
+
onClick: le
|
|
157
|
+
})
|
|
158
|
+
])) : p("", !0)
|
|
159
|
+
]),
|
|
160
|
+
s("button", { class: "template-selector__button-close" }, [
|
|
161
|
+
s("span", {
|
|
162
|
+
class: "pi pi-times",
|
|
163
|
+
onClick: N
|
|
164
|
+
})
|
|
165
|
+
])
|
|
166
|
+
]),
|
|
167
|
+
s("div", Ve, [
|
|
168
|
+
s("div", Se, [
|
|
169
|
+
s("ul", Ie, [
|
|
170
|
+
(o(!0), n(S, null, R(w.groupTemplates, (t, c) => (o(), n("li", {
|
|
171
|
+
key: c,
|
|
172
|
+
class: j(["template-selector__item-group", { "template-selector__item-selected": h.value === t }]),
|
|
173
|
+
onClick: H
|
|
174
|
+
}, [
|
|
175
|
+
s("label", Ae, [
|
|
176
|
+
t.iconUrl ? (o(), n("img", {
|
|
177
|
+
key: 0,
|
|
178
|
+
class: "template-selector__item-group-icon",
|
|
179
|
+
src: t.iconUrl,
|
|
180
|
+
alt: t.title
|
|
181
|
+
}, null, 8, Be)) : p("", !0),
|
|
182
|
+
$(s("input", {
|
|
183
|
+
id: c,
|
|
184
|
+
"onUpdate:modelValue": l[0] || (l[0] = (f) => h.value = f),
|
|
185
|
+
value: t,
|
|
186
|
+
class: "template-selector__input-group",
|
|
187
|
+
type: "radio"
|
|
188
|
+
}, null, 8, We), [
|
|
189
|
+
[ue, h.value]
|
|
190
|
+
]),
|
|
191
|
+
s("span", null, I(t.title), 1)
|
|
192
|
+
])
|
|
193
|
+
], 2))), 128))
|
|
194
|
+
])
|
|
195
|
+
]),
|
|
196
|
+
s("div", Ee, [
|
|
197
|
+
s("div", Pe, [
|
|
198
|
+
$(s("input", {
|
|
199
|
+
"onUpdate:modelValue": l[1] || (l[1] = (t) => B.value = t),
|
|
200
|
+
class: "template-selector__searching-input",
|
|
201
|
+
type: "text",
|
|
202
|
+
placeholder: "Поиск шаблона"
|
|
203
|
+
}, null, 512), [
|
|
204
|
+
[de, B.value]
|
|
205
|
+
])
|
|
206
|
+
]),
|
|
207
|
+
s("div", Fe, [
|
|
208
|
+
O.value.length !== 0 ? (o(), n("ul", je, [
|
|
209
|
+
(o(!0), n(S, null, R(O.value, (t, c) => (o(), n("li", {
|
|
210
|
+
key: c,
|
|
211
|
+
class: j(["template-selector__item-template", { "template-selector__item-selected": t.isSelected }]),
|
|
212
|
+
onClick: (f) => G(t)
|
|
213
|
+
}, [
|
|
214
|
+
s("div", Le, [
|
|
215
|
+
s("p", Oe, I(t.title), 1),
|
|
216
|
+
s("p", Ue, I(t.template), 1)
|
|
217
|
+
])
|
|
218
|
+
], 10, Re))), 128))
|
|
219
|
+
])) : (o(), n("p", ze, " Шаблоны отсутствуют "))
|
|
220
|
+
])
|
|
221
|
+
]),
|
|
222
|
+
s("div", Me, [
|
|
223
|
+
s("div", {
|
|
224
|
+
ref_key: "previewContainer",
|
|
225
|
+
ref: k,
|
|
226
|
+
class: "template-selector__preview-container",
|
|
227
|
+
style: pe({ backgroundImage: `url(${J.value})` })
|
|
228
|
+
}, [
|
|
229
|
+
V.value.length > 0 ? (o(), n("div", Qe, [
|
|
230
|
+
s("div", $e, [
|
|
231
|
+
a.value.type != "TEXT" ? (o(), L(fe, {
|
|
232
|
+
key: 0,
|
|
233
|
+
type: a.value.type,
|
|
234
|
+
"template-id": a.value.templateId,
|
|
235
|
+
onFileSelected: D
|
|
236
|
+
}, null, 8, ["type", "template-id"])) : p("", !0),
|
|
237
|
+
s("div", qe, [
|
|
238
|
+
(o(!0), n(S, null, R(V.value, (t, c) => (o(), n(S, { key: c }, [
|
|
239
|
+
typeof t == "string" ? (o(), n("span", Ne, I(t), 1)) : typeof t == "object" ? (o(), L(_e, {
|
|
240
|
+
key: 1,
|
|
241
|
+
index: t.index,
|
|
242
|
+
value: r[t.index] || "Заполнить",
|
|
243
|
+
"is-filled": !!r[t.index],
|
|
244
|
+
onClick: (f) => Y.value = t.index,
|
|
245
|
+
onEdit: ae
|
|
246
|
+
}, null, 8, ["index", "value", "is-filled", "onClick"])) : p("", !0)
|
|
247
|
+
], 64))), 128))
|
|
248
|
+
]),
|
|
249
|
+
l[2] || (l[2] = s("p", { class: "template-selector__preview-time" }, " 22:22 ", -1)),
|
|
250
|
+
a.value.buttons ? (o(), L(ye, {
|
|
251
|
+
key: 1,
|
|
252
|
+
buttons: a.value.buttons,
|
|
253
|
+
onSelectAllVariants: W
|
|
254
|
+
}, null, 8, ["buttons"])) : p("", !0)
|
|
255
|
+
])
|
|
256
|
+
])) : (o(), n("p", Xe, " Предпросмотр шаблона ")),
|
|
257
|
+
b.value ? (o(), n("div", De, [
|
|
258
|
+
s("div", {
|
|
259
|
+
class: "template-selector__semitransparent-overlay",
|
|
260
|
+
onClick: W
|
|
261
|
+
}),
|
|
262
|
+
me(he, {
|
|
263
|
+
buttons: a.value.buttons,
|
|
264
|
+
onSelectAllVariants: W
|
|
265
|
+
}, null, 8, ["buttons"])
|
|
266
|
+
])) : p("", !0)
|
|
267
|
+
], 4),
|
|
268
|
+
s("button", {
|
|
269
|
+
class: "template-selector__button-paste",
|
|
270
|
+
disabled: oe.value,
|
|
271
|
+
onClick: X
|
|
272
|
+
}, " Отправить ", 8, Ge)
|
|
273
|
+
])
|
|
274
|
+
])
|
|
275
|
+
], 10, we)
|
|
276
|
+
]));
|
|
277
|
+
}
|
|
278
|
+
}, at = /* @__PURE__ */ be(He, [["__scopeId", "data-v-3a4405f2"]]);
|
|
279
|
+
export {
|
|
280
|
+
at as default
|
|
281
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ref as a, createElementBlock as n, openBlock as s, createElementVNode as i, createCommentVNode as f, createVNode as p, unref as c } from "vue";
|
|
2
|
+
import { t as m } from "../../../locale/useLocale.js";
|
|
3
|
+
import h from "../../1_icons/SearchIcon.vue.js";
|
|
4
|
+
import v from "../../1_icons/CloseButtonIcon.vue.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import I from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const C = { class: "chat-filter__container" }, k = { class: "chat-filter__icon" }, x = ["placeholder"], y = {
|
|
8
|
+
__name: "ChatFilter",
|
|
9
|
+
props: {
|
|
10
|
+
placeholder: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !1,
|
|
13
|
+
default: null
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["update"],
|
|
17
|
+
setup(r, { emit: u }) {
|
|
18
|
+
const t = a(""), l = u, o = a(""), d = () => {
|
|
19
|
+
const e = c(t);
|
|
20
|
+
o.value = e.value, l("update", e.value);
|
|
21
|
+
}, _ = () => {
|
|
22
|
+
const e = c(t);
|
|
23
|
+
e.value = "", o.value = "", l("update", ""), e.focus();
|
|
24
|
+
};
|
|
25
|
+
return (e, V) => (s(), n("div", C, [
|
|
26
|
+
i("div", k, [
|
|
27
|
+
p(h)
|
|
28
|
+
]),
|
|
29
|
+
i("input", {
|
|
30
|
+
ref_key: "refInput",
|
|
31
|
+
ref: t,
|
|
32
|
+
class: "chat-filter__input",
|
|
33
|
+
type: "text",
|
|
34
|
+
placeholder: r.placeholder ? r.placeholder : c(m)("component.ChatFilter.InputPlaceholder"),
|
|
35
|
+
onInput: d
|
|
36
|
+
}, null, 40, x),
|
|
37
|
+
o.value ? (s(), n("div", {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "chat-filter__clear",
|
|
40
|
+
onClick: _
|
|
41
|
+
}, [
|
|
42
|
+
p(v)
|
|
43
|
+
])) : f("", !0)
|
|
44
|
+
]));
|
|
45
|
+
}
|
|
46
|
+
}, q = /* @__PURE__ */ I(y, [["__scopeId", "data-v-21a6c84e"]]);
|
|
47
|
+
export {
|
|
48
|
+
q as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import { defineComponent as $, ref as g, computed as v, watch as F, createElementBlock as s, openBlock as a, createElementVNode as o, createCommentVNode as l, normalizeClass as y, normalizeStyle as x, createVNode as f, withCtx as k, toDisplayString as u, createBlock as z, unref as H, Fragment as j, renderList as q } from "vue";
|
|
2
|
+
import { getStatus as G, statuses as J } from "../../../functions/getStatusMessage.js";
|
|
3
|
+
import "../../../functions/parseMarkdown.js";
|
|
4
|
+
import { t as p } from "../../../locale/useLocale.js";
|
|
5
|
+
import C from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
6
|
+
import K from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
|
|
7
|
+
import O from "../../1_icons/AvatarIcon.vue.js";
|
|
8
|
+
const P = { class: "chat-item__avatar-container" }, Q = ["src"], R = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "chat-item__avatar-placeholder"
|
|
11
|
+
}, W = { class: "chat-item__info-container" }, X = { class: "chat-item__name" }, Y = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "chat-item__last-message"
|
|
14
|
+
}, Z = { class: "chat-item__details-container" }, tt = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "chat-item__time"
|
|
17
|
+
}, et = { class: "chat-item__status-unread-container" }, at = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "pi pi-check"
|
|
20
|
+
}, st = {
|
|
21
|
+
key: 1,
|
|
22
|
+
class: "chat-item__unread"
|
|
23
|
+
}, it = {
|
|
24
|
+
key: 2,
|
|
25
|
+
class: "chat-item__status-chat-container"
|
|
26
|
+
}, nt = {
|
|
27
|
+
key: 0,
|
|
28
|
+
class: "chat-item__fixed pi pi-thumbtack"
|
|
29
|
+
}, ct = {
|
|
30
|
+
key: 0,
|
|
31
|
+
id: "noSelectButton",
|
|
32
|
+
class: "chat-item__menu-button"
|
|
33
|
+
}, ot = {
|
|
34
|
+
key: 1,
|
|
35
|
+
id: "noSelectButton",
|
|
36
|
+
class: "chat-item__menu-button"
|
|
37
|
+
}, lt = {
|
|
38
|
+
key: 0,
|
|
39
|
+
class: "dialog__container"
|
|
40
|
+
}, ut = ["onClick"], rt = ["src"], dt = {
|
|
41
|
+
key: 1,
|
|
42
|
+
class: "dialog__icon pi pi-user"
|
|
43
|
+
}, mt = { class: "dialog__text-container" }, ht = { class: "dialog__name" }, vt = { class: "dialog__time" }, bt = /* @__PURE__ */ $({
|
|
44
|
+
__name: "ChatItem",
|
|
45
|
+
props: {
|
|
46
|
+
chat: {},
|
|
47
|
+
showDialogs: { type: Boolean, default: !0 }
|
|
48
|
+
},
|
|
49
|
+
emits: ["select", "action", "expand"],
|
|
50
|
+
setup(e, { emit: b }) {
|
|
51
|
+
const t = e, m = b, r = g(!1), _ = g(!1), M = () => {
|
|
52
|
+
_.value = !0;
|
|
53
|
+
}, w = (n) => {
|
|
54
|
+
_.value || n.target instanceof HTMLElement && n.target.id != "noSelectButton" && m("select", { chat: t.chat, dialog: null }), _.value = !1;
|
|
55
|
+
}, B = (n) => {
|
|
56
|
+
m("select", { chat: t.chat, dialog: n });
|
|
57
|
+
}, U = () => t.chat.isSelected ? "chat-item__selected" : "", A = (n) => n.isSelected ? "dialog__selected" : "", I = (n) => {
|
|
58
|
+
m("action", { chat: t.chat, ...n });
|
|
59
|
+
}, S = () => t.chat.dialogs ? [...t.chat.dialogs].sort((n, i) => Number(n["lastActivity.timestamp"]) > Number(i["lastActivity.timestamp"]) ? -1 : Number(n["lastActivity.timestamp"]) < Number(i["lastActivity.timestamp"]) ? 1 : (Number(n["lastActivity.timestamp"]) == Number(i["lastActivity.timestamp"]), 0)) : [], E = v(() => G(t.chat["lastMessage.status"])), N = v(() => t.chat.showEmptyIndicator || t.chat.countUnread > 0), D = v(() => t.chat.countUnread > 0 ? t.chat.countUnread > 99 ? "99+" : t.chat.countUnread : t.chat.showEmptyIndicator ? "" : void 0);
|
|
60
|
+
let h;
|
|
61
|
+
const d = g(0), T = [p("component.ChatItem.typing") + ".", p("component.ChatItem.typing") + "..", p("component.ChatItem.typing") + "..."], L = v(() => t.chat.typing ? T[d.value] : t.chat.lastMessage);
|
|
62
|
+
F(
|
|
63
|
+
() => t.chat.typing,
|
|
64
|
+
() => {
|
|
65
|
+
t.chat.typing ? h = setInterval(() => {
|
|
66
|
+
d.value < 2 ? d.value += 1 : d.value = 0;
|
|
67
|
+
}, 1e3) : (d.value = 0, h && (clearInterval(h), h = void 0));
|
|
68
|
+
},
|
|
69
|
+
{ immediate: !0 }
|
|
70
|
+
);
|
|
71
|
+
const V = (n) => {
|
|
72
|
+
n.relatedTarget instanceof HTMLElement && n.relatedTarget.className == "context-menu__list" ? r.value = !0 : r.value = !1;
|
|
73
|
+
};
|
|
74
|
+
return (n, i) => (a(), s("div", null, [
|
|
75
|
+
o("div", {
|
|
76
|
+
class: y(["chat-item__container", U()]),
|
|
77
|
+
onMouseenter: i[2] || (i[2] = (c) => r.value = !0),
|
|
78
|
+
onMouseleave: V,
|
|
79
|
+
onClick: w
|
|
80
|
+
}, [
|
|
81
|
+
o("div", P, [
|
|
82
|
+
o("span", {
|
|
83
|
+
class: "chat-item__status-user",
|
|
84
|
+
style: x({ backgroundColor: t.chat.status })
|
|
85
|
+
}, null, 4),
|
|
86
|
+
t.chat.avatar ? (a(), s("img", {
|
|
87
|
+
key: 0,
|
|
88
|
+
src: t.chat.avatar,
|
|
89
|
+
height: "48",
|
|
90
|
+
width: "48"
|
|
91
|
+
}, null, 8, Q)) : (a(), s("div", R, [
|
|
92
|
+
f(O)
|
|
93
|
+
]))
|
|
94
|
+
]),
|
|
95
|
+
o("div", W, [
|
|
96
|
+
f(C, {
|
|
97
|
+
text: e.chat.name,
|
|
98
|
+
position: "bottom"
|
|
99
|
+
}, {
|
|
100
|
+
default: k(() => [
|
|
101
|
+
o("div", X, u(e.chat.name), 1)
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
}, 8, ["text"]),
|
|
105
|
+
f(C, {
|
|
106
|
+
text: e.chat.lastMessage,
|
|
107
|
+
position: "bottom"
|
|
108
|
+
}, {
|
|
109
|
+
default: k(() => [
|
|
110
|
+
e.chat.lastMessage || e.chat.typing ? (a(), s("div", Y, u(L.value), 1)) : l("", !0)
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}, 8, ["text"])
|
|
114
|
+
]),
|
|
115
|
+
o("div", Z, [
|
|
116
|
+
e.chat["lastActivity.time"] && (!e.chat.actions || !r.value) ? (a(), s("div", tt, u(e.chat["lastActivity.time"]), 1)) : l("", !0),
|
|
117
|
+
r.value && e.chat.actions ? (a(), z(K, {
|
|
118
|
+
key: 1,
|
|
119
|
+
mode: "click",
|
|
120
|
+
"menu-side": "bottom",
|
|
121
|
+
actions: e.chat.actions,
|
|
122
|
+
onClick: I,
|
|
123
|
+
onButtonClick: M,
|
|
124
|
+
onMenuMouseLeave: i[0] || (i[0] = (c) => r.value = !1)
|
|
125
|
+
}, {
|
|
126
|
+
default: k(() => [...i[3] || (i[3] = [
|
|
127
|
+
o("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
|
|
128
|
+
])]),
|
|
129
|
+
_: 1
|
|
130
|
+
}, 8, ["actions"])) : l("", !0),
|
|
131
|
+
o("div", et, [
|
|
132
|
+
H(J).includes(e.chat["lastMessage.status"]) ? (a(), s("div", {
|
|
133
|
+
key: 0,
|
|
134
|
+
class: y(["chat-item__status-message", E.value])
|
|
135
|
+
}, [
|
|
136
|
+
e.chat["lastMessage.status"] !== "sent" ? (a(), s("span", at)) : l("", !0),
|
|
137
|
+
i[4] || (i[4] = o("span", { class: "pi pi-check" }, null, -1))
|
|
138
|
+
], 2)) : l("", !0),
|
|
139
|
+
N.value ? (a(), s("div", st, u(D.value), 1)) : l("", !0)
|
|
140
|
+
]),
|
|
141
|
+
e.chat.countUnread < 1 ? (a(), s("div", it, [
|
|
142
|
+
e.chat.isFixedTop || e.chat.isFixedBottom ? (a(), s("span", nt)) : l("", !0)
|
|
143
|
+
])) : l("", !0)
|
|
144
|
+
]),
|
|
145
|
+
t.showDialogs && e.chat.dialogs ? (a(), s("div", {
|
|
146
|
+
key: 0,
|
|
147
|
+
class: "chat-item__dialog-buttons",
|
|
148
|
+
onClick: i[1] || (i[1] = (c) => m("expand", t.chat))
|
|
149
|
+
}, [
|
|
150
|
+
t.showDialogs && !e.chat.dialogsExpanded ? (a(), s("button", ct, [...i[5] || (i[5] = [
|
|
151
|
+
o("span", {
|
|
152
|
+
id: "noSelectButton",
|
|
153
|
+
class: "pi pi-angle-down"
|
|
154
|
+
}, null, -1)
|
|
155
|
+
])])) : l("", !0),
|
|
156
|
+
t.showDialogs && e.chat.dialogsExpanded ? (a(), s("button", ot, [...i[6] || (i[6] = [
|
|
157
|
+
o("span", {
|
|
158
|
+
id: "noSelectButton",
|
|
159
|
+
class: "pi pi-angle-up"
|
|
160
|
+
}, null, -1)
|
|
161
|
+
])])) : l("", !0)
|
|
162
|
+
])) : l("", !0)
|
|
163
|
+
], 34),
|
|
164
|
+
t.showDialogs && e.chat.dialogsExpanded ? (a(), s("div", lt, [
|
|
165
|
+
(a(!0), s(j, null, q(S(), (c) => (a(), s("div", {
|
|
166
|
+
key: c.dialogId,
|
|
167
|
+
class: y(["dialog__item", A(c)]),
|
|
168
|
+
onClick: (_t) => B(c)
|
|
169
|
+
}, [
|
|
170
|
+
c.icon ? (a(), s("img", {
|
|
171
|
+
key: 0,
|
|
172
|
+
class: "dialog__icon",
|
|
173
|
+
src: c.icon,
|
|
174
|
+
height: "16",
|
|
175
|
+
width: "16"
|
|
176
|
+
}, null, 8, rt)) : (a(), s("span", dt)),
|
|
177
|
+
o("div", mt, [
|
|
178
|
+
o("div", ht, u(c.name), 1),
|
|
179
|
+
o("div", vt, u(c["lastActivity.time"]), 1)
|
|
180
|
+
]),
|
|
181
|
+
c.countUnread > 0 ? (a(), s("div", {
|
|
182
|
+
key: 2,
|
|
183
|
+
class: "chat-item__unread",
|
|
184
|
+
style: x(c.colorUnread ? { backgroundColor: c.colorUnread } : {})
|
|
185
|
+
}, u(c.countUnread > 99 ? "99+" : c.countUnread), 5)) : l("", !0)
|
|
186
|
+
], 10, ut))), 128))
|
|
187
|
+
])) : l("", !0)
|
|
188
|
+
]));
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
export {
|
|
192
|
+
bt as default
|
|
193
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createElementBlock as t, openBlock as a, Fragment as o, renderList as i, normalizeClass as n, createElementVNode as _, createTextVNode as l, createCommentVNode as d, toDisplayString as s } from "vue";
|
|
2
|
+
/* empty css */
|
|
3
|
+
import m from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const u = { class: "chat-tabs__list" }, p = ["aria-pressed", "onClick"], h = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "chat-tabs__badge"
|
|
7
|
+
}, b = {
|
|
8
|
+
__name: "ChatTabs",
|
|
9
|
+
props: {
|
|
10
|
+
tabs: {
|
|
11
|
+
type: Array,
|
|
12
|
+
required: !0,
|
|
13
|
+
default: () => []
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
emits: ["tab-click"],
|
|
17
|
+
setup(c) {
|
|
18
|
+
return (r, k) => (a(), t("ul", u, [
|
|
19
|
+
(a(!0), t(o, null, i(c.tabs, (e) => (a(), t("li", {
|
|
20
|
+
key: e.id,
|
|
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
|
+
]));
|
|
33
|
+
}
|
|
34
|
+
}, g = /* @__PURE__ */ m(b, [["__scopeId", "data-v-08e917d3"]]);
|
|
35
|
+
export {
|
|
36
|
+
g as default
|
|
37
|
+
};
|