@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,7 +1,158 @@
|
|
|
1
|
-
import
|
|
1
|
+
import M from "./MessageReactions.vue2.js";
|
|
2
|
+
import { createElementBlock as s, openBlock as n, normalizeClass as k, createCommentVNode as c, createBlock as m, Fragment as _, renderList as v, withCtx as d, createElementVNode as l, createVNode as a, toDisplayString as E, Teleport as C, Transition as y, withDirectives as g, normalizeStyle as f, withModifiers as r, vShow as u } from "vue";
|
|
2
3
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
4
|
+
import R from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const b = ["onClick"], P = { class: "message-reactions__emoji" }, j = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "message-reactions__count"
|
|
8
|
+
}, x = ["title", "onClick"];
|
|
9
|
+
function q(S, i, t, e, w, L) {
|
|
10
|
+
return n(), s(
|
|
11
|
+
"div",
|
|
12
|
+
{
|
|
13
|
+
ref: "reactionsContainerRef",
|
|
14
|
+
class: k(["message-reactions", { "has-reactions": e.hasReactions, "is-right-message": e.isRight, "is-disabled": !t.enabled }]),
|
|
15
|
+
onPointerenter: e.onMessageMouseEnter,
|
|
16
|
+
onPointerleave: e.onMessageMouseLeave
|
|
17
|
+
},
|
|
18
|
+
[
|
|
19
|
+
(n(!0), s(
|
|
20
|
+
_,
|
|
21
|
+
null,
|
|
22
|
+
v(e.displayedReactions, (o) => (n(), m(e.Tooltip, {
|
|
23
|
+
key: o.key,
|
|
24
|
+
text: e.getReactionTooltip(o),
|
|
25
|
+
position: "bottom-right",
|
|
26
|
+
offset: 6,
|
|
27
|
+
delay: 400
|
|
28
|
+
}, {
|
|
29
|
+
default: d(() => [
|
|
30
|
+
l("button", {
|
|
31
|
+
class: k(["message-reactions__chip", { "is-active": o.reactedByMe && o.count === 1 }]),
|
|
32
|
+
onClick: (h) => e.onToggle(o.key)
|
|
33
|
+
}, [
|
|
34
|
+
l("span", P, [
|
|
35
|
+
a(e.EmojiGlyph, {
|
|
36
|
+
emoji: o.key
|
|
37
|
+
}, null, 8, ["emoji"])
|
|
38
|
+
]),
|
|
39
|
+
e.showCount || o.count > 1 ? (n(), s(
|
|
40
|
+
"span",
|
|
41
|
+
j,
|
|
42
|
+
E(o.count),
|
|
43
|
+
1
|
|
44
|
+
/* TEXT */
|
|
45
|
+
)) : c("v-if", !0)
|
|
46
|
+
], 10, b)
|
|
47
|
+
]),
|
|
48
|
+
_: 2
|
|
49
|
+
/* DYNAMIC */
|
|
50
|
+
}, 1032, ["text"]))),
|
|
51
|
+
128
|
|
52
|
+
/* KEYED_FRAGMENT */
|
|
53
|
+
)),
|
|
54
|
+
c(" Панель быстрых реакций и полный EmojiPicker — в body, чтобы не обрезались overflow ленты "),
|
|
55
|
+
(n(), m(C, { to: "body" }, [
|
|
56
|
+
a(y, {
|
|
57
|
+
name: "message-reactions-popover",
|
|
58
|
+
persisted: ""
|
|
59
|
+
}, {
|
|
60
|
+
default: d(() => [
|
|
61
|
+
g(l(
|
|
62
|
+
"div",
|
|
63
|
+
{
|
|
64
|
+
ref: "quickReactionsRef",
|
|
65
|
+
class: "message-reactions__quick-panel",
|
|
66
|
+
style: f(e.quickPanelStyle),
|
|
67
|
+
onMouseenter: i[0] || (i[0] = (...o) => e.handleQuickPanelMouseEnter && e.handleQuickPanelMouseEnter(...o)),
|
|
68
|
+
onMouseleave: i[1] || (i[1] = (...o) => e.handleQuickPanelMouseLeave && e.handleQuickPanelMouseLeave(...o))
|
|
69
|
+
},
|
|
70
|
+
[
|
|
71
|
+
(n(!0), s(
|
|
72
|
+
_,
|
|
73
|
+
null,
|
|
74
|
+
v(e.quickEmojis, (o) => (n(), s("button", {
|
|
75
|
+
key: o,
|
|
76
|
+
class: "message-reactions__quick-item",
|
|
77
|
+
title: o,
|
|
78
|
+
onClick: r((h) => e.onQuickEmojiClick(o), ["stop"])
|
|
79
|
+
}, [
|
|
80
|
+
a(e.EmojiGlyph, { emoji: o }, null, 8, ["emoji"])
|
|
81
|
+
], 8, x))),
|
|
82
|
+
128
|
|
83
|
+
/* KEYED_FRAGMENT */
|
|
84
|
+
)),
|
|
85
|
+
l("button", {
|
|
86
|
+
class: "message-reactions__expand",
|
|
87
|
+
title: "Развернуть",
|
|
88
|
+
onClick: r(e.onExpandClick, ["stop"])
|
|
89
|
+
}, [
|
|
90
|
+
a(e.ExpandReactionsIcon)
|
|
91
|
+
]),
|
|
92
|
+
t.replyEnabled && t.reply ? (n(), s("button", {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "message-reactions__quick-item",
|
|
95
|
+
title: "Ответить",
|
|
96
|
+
onClick: r(e.onReplyClick, ["stop"])
|
|
97
|
+
}, [
|
|
98
|
+
a(e.ReplyIcon)
|
|
99
|
+
])) : c("v-if", !0),
|
|
100
|
+
t.menuEnabled ? (n(), s("button", {
|
|
101
|
+
key: 1,
|
|
102
|
+
class: "message-reactions__quick-item",
|
|
103
|
+
title: "Действия",
|
|
104
|
+
onClick: r(e.onMenuClick, ["stop"])
|
|
105
|
+
}, [
|
|
106
|
+
a(e.MessageActionsIcon)
|
|
107
|
+
])) : c("v-if", !0)
|
|
108
|
+
],
|
|
109
|
+
36
|
|
110
|
+
/* STYLE, NEED_HYDRATION */
|
|
111
|
+
), [
|
|
112
|
+
[u, e.isQuickReactionsOpen && !t.readonly && t.enabled]
|
|
113
|
+
])
|
|
114
|
+
]),
|
|
115
|
+
_: 1
|
|
116
|
+
/* STABLE */
|
|
117
|
+
}),
|
|
118
|
+
a(y, {
|
|
119
|
+
name: "message-reactions-popover",
|
|
120
|
+
persisted: ""
|
|
121
|
+
}, {
|
|
122
|
+
default: d(() => [
|
|
123
|
+
g(l(
|
|
124
|
+
"div",
|
|
125
|
+
{
|
|
126
|
+
ref: "pickerRef",
|
|
127
|
+
class: "message-reactions__picker",
|
|
128
|
+
style: f(e.pickerStyle),
|
|
129
|
+
onMouseenter: i[2] || (i[2] = (...o) => e.handlePickerMouseEnter && e.handlePickerMouseEnter(...o)),
|
|
130
|
+
onMouseleave: i[3] || (i[3] = (...o) => e.handlePickerMouseLeave && e.handlePickerMouseLeave(...o))
|
|
131
|
+
},
|
|
132
|
+
[
|
|
133
|
+
a(e.EmojiPicker, {
|
|
134
|
+
native: e.isNative,
|
|
135
|
+
theme: e.emojiTheme,
|
|
136
|
+
"picker-type": "",
|
|
137
|
+
onSelect: e.onSelectEmoji
|
|
138
|
+
}, null, 8, ["native", "theme"])
|
|
139
|
+
],
|
|
140
|
+
36
|
|
141
|
+
/* STYLE, NEED_HYDRATION */
|
|
142
|
+
), [
|
|
143
|
+
[u, e.isFullPickerOpen && !t.readonly && t.enabled]
|
|
144
|
+
])
|
|
145
|
+
]),
|
|
146
|
+
_: 1
|
|
147
|
+
/* STABLE */
|
|
148
|
+
})
|
|
149
|
+
]))
|
|
150
|
+
],
|
|
151
|
+
34
|
|
152
|
+
/* CLASS, NEED_HYDRATION */
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
const N = /* @__PURE__ */ R(M, [["render", q], ["__scopeId", "data-v-254a0217"], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/MessageReactions/MessageReactions.vue"]]);
|
|
5
156
|
export {
|
|
6
|
-
|
|
157
|
+
N as default
|
|
7
158
|
};
|
|
@@ -1,32 +1,29 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as de, inject as b, ref as k, computed as s, unref as w, onMounted as me, onUnmounted as pe, watch as fe } from "vue";
|
|
2
|
+
import ge from "../../../node_modules/vue3-emoji-picker-ru/dist/emoji-picker.es.js";
|
|
3
3
|
/* empty css */
|
|
4
4
|
import "../../../hooks/useMessageDraft.js";
|
|
5
5
|
import "../../../hooks/useSearchModel.js";
|
|
6
6
|
import "../../../hooks/useTheme.js";
|
|
7
|
-
import { useEmojiNative as
|
|
7
|
+
import { useEmojiNative as ve } from "../../../hooks/useEmojiNative.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
/* empty css */
|
|
10
10
|
import "../../../locale/useLocale.js";
|
|
11
11
|
/* empty css */
|
|
12
|
-
import { isRightMessage as
|
|
13
|
-
import
|
|
12
|
+
import { isRightMessage as ye, findMessageContent as Ie } from "./composables/usePositioning.js";
|
|
13
|
+
import he from "./icons/ReplyIcon.vue.js";
|
|
14
14
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
15
15
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
16
16
|
import "../../../functions/parseMarkdown.js";
|
|
17
|
-
import { useStartReply as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { QUICK_REACTION_EMOJIS as
|
|
23
|
-
import { buildReactionTooltipText as
|
|
24
|
-
import { useReactionsState as
|
|
25
|
-
import { useReactionsPanel as
|
|
26
|
-
const
|
|
27
|
-
key: 0,
|
|
28
|
-
class: "message-reactions__count"
|
|
29
|
-
}, He = ["title", "onClick"], ht = /* @__PURE__ */ Ce({
|
|
17
|
+
import { useStartReply as Ee } from "../../../hooks/messages/useStartReply.js";
|
|
18
|
+
import Re from "../../1_atoms/EmojiGlyph/EmojiGlyph.vue.js";
|
|
19
|
+
import Me from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
20
|
+
import be from "./icons/ExpandReactionsIcon.vue.js";
|
|
21
|
+
import ke from "./icons/MessageActionsIcon.vue.js";
|
|
22
|
+
import { QUICK_REACTION_EMOJIS as je } from "./utils/quickReactions.js";
|
|
23
|
+
import { buildReactionTooltipText as Se } from "./utils/reactionTooltip.js";
|
|
24
|
+
import { useReactionsState as Ue } from "./composables/useReactionsState.js";
|
|
25
|
+
import { useReactionsPanel as Ne } from "./composables/useReactionsPanel.js";
|
|
26
|
+
const et = /* @__PURE__ */ de({
|
|
30
27
|
__name: "MessageReactions",
|
|
31
28
|
props: {
|
|
32
29
|
reactions: {
|
|
@@ -49,7 +46,7 @@ const Ve = ["onClick"], $e = { class: "message-reactions__emoji" }, ze = {
|
|
|
49
46
|
mode: {
|
|
50
47
|
type: String,
|
|
51
48
|
default: "single",
|
|
52
|
-
validator: (
|
|
49
|
+
validator: (f) => ["single", "multi"].includes(f)
|
|
53
50
|
},
|
|
54
51
|
/** Id текущего пользователя — для расчёта reactedByMe и локальных add/remove */
|
|
55
52
|
currentUserId: {
|
|
@@ -81,224 +78,125 @@ const Ve = ["onClick"], $e = { class: "message-reactions__emoji" }, ze = {
|
|
|
81
78
|
}
|
|
82
79
|
},
|
|
83
80
|
emits: ["toggle-reaction", "add-reaction", "remove-reaction", "menu"],
|
|
84
|
-
setup(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
81
|
+
setup(f, { expose: A, emit: F }) {
|
|
82
|
+
A();
|
|
83
|
+
const t = f, r = F, l = b("chatAppId"), j = b("currentUserId", void 0), S = b("reactionUserNames", void 0), { startReply: U } = Ee(l || ""), a = k(null), c = k(null), N = k("light"), { isNative: D } = ve(l || ""), C = s(() => je), P = s(() => t.mode), d = s(() => t.currentUserId ?? w(j)), g = s(() => t.reactionUserNames ?? w(S)), _ = s(() => {
|
|
84
|
+
var o, i;
|
|
85
|
+
const e = (o = t.currentUserName) == null ? void 0 : o.trim();
|
|
88
86
|
if (e) return e;
|
|
89
|
-
const
|
|
90
|
-
if (
|
|
91
|
-
return (
|
|
92
|
-
}),
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
), { displayedReactions:
|
|
98
|
-
function
|
|
99
|
-
return
|
|
87
|
+
const n = d.value;
|
|
88
|
+
if (n != null)
|
|
89
|
+
return (i = g.value) == null ? void 0 : i[String(n)];
|
|
90
|
+
}), G = s(() => t.mode === "multi"), v = Ue(
|
|
91
|
+
s(() => t.reactions),
|
|
92
|
+
P,
|
|
93
|
+
d,
|
|
94
|
+
_
|
|
95
|
+
), { displayedReactions: H, hasReactions: J, addReaction: m, removeReaction: y, toggleReaction: L, isMyReaction: I } = v;
|
|
96
|
+
function z(e) {
|
|
97
|
+
return Se(e.events, g.value);
|
|
100
98
|
}
|
|
101
|
-
const
|
|
102
|
-
isQuickReactionsOpen:
|
|
103
|
-
isFullPickerOpen:
|
|
104
|
-
pickerRef:
|
|
105
|
-
quickReactionsRef:
|
|
106
|
-
quickPanelStyle:
|
|
107
|
-
pickerStyle:
|
|
108
|
-
closeQuickPanel:
|
|
109
|
-
handleMessageMouseEnter:
|
|
110
|
-
handleMessageMouseLeave:
|
|
111
|
-
openFullPicker:
|
|
112
|
-
closeFullPicker:
|
|
113
|
-
handleQuickPanelMouseEnter:
|
|
114
|
-
handleQuickPanelMouseLeave:
|
|
115
|
-
handlePickerMouseEnter:
|
|
116
|
-
handlePickerMouseLeave:
|
|
117
|
-
handleClickOutside:
|
|
118
|
-
} =
|
|
119
|
-
var
|
|
120
|
-
if (!
|
|
121
|
-
const e = document.getElementById(
|
|
122
|
-
return (
|
|
99
|
+
const O = Ne(C, a), {
|
|
100
|
+
isQuickReactionsOpen: V,
|
|
101
|
+
isFullPickerOpen: W,
|
|
102
|
+
pickerRef: X,
|
|
103
|
+
quickReactionsRef: Y,
|
|
104
|
+
quickPanelStyle: Z,
|
|
105
|
+
pickerStyle: $,
|
|
106
|
+
closeQuickPanel: u,
|
|
107
|
+
handleMessageMouseEnter: T,
|
|
108
|
+
handleMessageMouseLeave: K,
|
|
109
|
+
openFullPicker: x,
|
|
110
|
+
closeFullPicker: h,
|
|
111
|
+
handleQuickPanelMouseEnter: ee,
|
|
112
|
+
handleQuickPanelMouseLeave: te,
|
|
113
|
+
handlePickerMouseEnter: ne,
|
|
114
|
+
handlePickerMouseLeave: oe,
|
|
115
|
+
handleClickOutside: E
|
|
116
|
+
} = O, re = s(() => a.value ? ye(a.value) : !1), B = () => {
|
|
117
|
+
var n;
|
|
118
|
+
if (!l) return "light";
|
|
119
|
+
const e = document.getElementById(l);
|
|
120
|
+
return (n = e == null ? void 0 : e.getAttribute("data-theme")) != null && n.includes("dark") ? "dark" : "light";
|
|
123
121
|
};
|
|
124
|
-
function
|
|
125
|
-
return !
|
|
122
|
+
function p() {
|
|
123
|
+
return !t.readonly && t.enabled && d.value != null;
|
|
126
124
|
}
|
|
127
|
-
function
|
|
128
|
-
if (
|
|
129
|
-
if (
|
|
130
|
-
if (
|
|
131
|
-
|
|
125
|
+
function ie(e) {
|
|
126
|
+
if (p()) {
|
|
127
|
+
if (t.mode === "single") {
|
|
128
|
+
if (v.myReactionKey.value === e)
|
|
129
|
+
y(e), r("remove-reaction", { messageId: t.messageId, key: e });
|
|
132
130
|
else {
|
|
133
|
-
const
|
|
134
|
-
|
|
131
|
+
const o = m(e);
|
|
132
|
+
o && r("remove-reaction", { messageId: t.messageId, key: o }), r("add-reaction", { messageId: t.messageId, key: e });
|
|
135
133
|
}
|
|
136
134
|
return;
|
|
137
135
|
}
|
|
138
|
-
|
|
136
|
+
L(e), r("toggle-reaction", { messageId: t.messageId, key: e });
|
|
139
137
|
}
|
|
140
138
|
}
|
|
141
|
-
function
|
|
142
|
-
var
|
|
143
|
-
return e instanceof Node ? !!((
|
|
139
|
+
function Q(e) {
|
|
140
|
+
var n, o;
|
|
141
|
+
return e instanceof Node ? !!((n = c.value) != null && n.contains(e) || (o = a.value) != null && o.contains(e)) : !1;
|
|
144
142
|
}
|
|
145
|
-
function
|
|
146
|
-
|
|
143
|
+
function R() {
|
|
144
|
+
t.readonly || !t.enabled || T();
|
|
147
145
|
}
|
|
148
|
-
function
|
|
149
|
-
|
|
146
|
+
function M(e) {
|
|
147
|
+
t.readonly || !t.enabled || Q(e.relatedTarget) || K();
|
|
150
148
|
}
|
|
151
|
-
function
|
|
152
|
-
if (
|
|
153
|
-
if (
|
|
154
|
-
|
|
149
|
+
function se(e) {
|
|
150
|
+
if (p()) {
|
|
151
|
+
if (I(e))
|
|
152
|
+
y(e), r("remove-reaction", { messageId: t.messageId, key: e });
|
|
155
153
|
else {
|
|
156
|
-
const
|
|
157
|
-
|
|
154
|
+
const n = m(e);
|
|
155
|
+
n && r("remove-reaction", { messageId: t.messageId, key: n }), r("add-reaction", { messageId: t.messageId, key: e });
|
|
158
156
|
}
|
|
159
|
-
|
|
157
|
+
u();
|
|
160
158
|
}
|
|
161
159
|
}
|
|
162
|
-
function
|
|
163
|
-
|
|
160
|
+
function ae() {
|
|
161
|
+
t.readonly || !t.enabled || !t.reply || (U(t.reply), u());
|
|
164
162
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
const
|
|
168
|
-
const
|
|
169
|
-
return { top:
|
|
163
|
+
function ce(e) {
|
|
164
|
+
if (t.readonly || !t.enabled || !t.menuEnabled) return;
|
|
165
|
+
const n = e.currentTarget, o = n instanceof HTMLElement ? (() => {
|
|
166
|
+
const i = n.getBoundingClientRect();
|
|
167
|
+
return { top: i.top, right: i.right, bottom: i.bottom, left: i.left, width: i.width, height: i.height };
|
|
170
168
|
})() : void 0;
|
|
171
|
-
|
|
169
|
+
r("menu", { messageId: t.messageId, triggerRect: o, event: e });
|
|
172
170
|
}
|
|
173
|
-
async function
|
|
174
|
-
|
|
171
|
+
async function le() {
|
|
172
|
+
t.readonly || !t.enabled || (N.value = B(), await x());
|
|
175
173
|
}
|
|
176
|
-
function
|
|
177
|
-
if (
|
|
178
|
-
const
|
|
179
|
-
if (
|
|
174
|
+
function ue(e) {
|
|
175
|
+
if (h(), u(), !p()) return;
|
|
176
|
+
const n = e.i;
|
|
177
|
+
if (I(n))
|
|
180
178
|
return;
|
|
181
|
-
const
|
|
182
|
-
|
|
179
|
+
const o = m(n);
|
|
180
|
+
o && r("remove-reaction", { messageId: t.messageId, key: o }), r("add-reaction", { messageId: t.messageId, key: n });
|
|
183
181
|
}
|
|
184
|
-
|
|
185
|
-
document.addEventListener("click",
|
|
186
|
-
const e =
|
|
187
|
-
e && (
|
|
188
|
-
}),
|
|
189
|
-
document.removeEventListener("click",
|
|
190
|
-
}),
|
|
191
|
-
() => [
|
|
192
|
-
([e,
|
|
193
|
-
(!e ||
|
|
182
|
+
me(() => {
|
|
183
|
+
document.addEventListener("click", E);
|
|
184
|
+
const e = Ie(a.value);
|
|
185
|
+
e && (c.value = e, e.addEventListener("pointerenter", R), e.addEventListener("pointerleave", M));
|
|
186
|
+
}), pe(() => {
|
|
187
|
+
document.removeEventListener("click", E), c.value && (c.value.removeEventListener("pointerenter", R), c.value.removeEventListener("pointerleave", M));
|
|
188
|
+
}), fe(
|
|
189
|
+
() => [t.enabled, t.readonly],
|
|
190
|
+
([e, n]) => {
|
|
191
|
+
(!e || n) && (u(), h());
|
|
194
192
|
}
|
|
195
|
-
)
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
onPointerleave: R
|
|
201
|
-
}, [
|
|
202
|
-
(l(!0), d(A, null, F(i(ne), (t) => (l(), Q(we, {
|
|
203
|
-
key: t.key,
|
|
204
|
-
text: se(t),
|
|
205
|
-
position: "bottom-right",
|
|
206
|
-
offset: 6,
|
|
207
|
-
delay: 400
|
|
208
|
-
}, {
|
|
209
|
-
default: C(() => [
|
|
210
|
-
p("button", {
|
|
211
|
-
class: K(["message-reactions__chip", { "is-active": t.reactedByMe && t.count === 1 }]),
|
|
212
|
-
onClick: (r) => ke(t.key)
|
|
213
|
-
}, [
|
|
214
|
-
p("span", $e, [
|
|
215
|
-
u(H, {
|
|
216
|
-
emoji: t.key
|
|
217
|
-
}, null, 8, ["emoji"])
|
|
218
|
-
]),
|
|
219
|
-
te.value || t.count > 1 ? (l(), d("span", ze, Ue(t.count), 1)) : _("", !0)
|
|
220
|
-
], 10, Ve)
|
|
221
|
-
]),
|
|
222
|
-
_: 2
|
|
223
|
-
}, 1032, ["text"]))), 128)),
|
|
224
|
-
(l(), Q(je, { to: "body" }, [
|
|
225
|
-
u(D, { name: "message-reactions-popover" }, {
|
|
226
|
-
default: C(() => [
|
|
227
|
-
V(p("div", {
|
|
228
|
-
ref_key: "quickReactionsRef",
|
|
229
|
-
ref: ue,
|
|
230
|
-
class: "message-reactions__quick-panel",
|
|
231
|
-
style: $(i(de)),
|
|
232
|
-
onMouseenter: o[0] || (o[0] = //@ts-ignore
|
|
233
|
-
(...t) => i(q) && i(q)(...t)),
|
|
234
|
-
onMouseleave: o[1] || (o[1] = //@ts-ignore
|
|
235
|
-
(...t) => i(x) && i(x)(...t))
|
|
236
|
-
}, [
|
|
237
|
-
(l(!0), d(A, null, F(S.value, (t) => (l(), d("button", {
|
|
238
|
-
key: t,
|
|
239
|
-
class: "message-reactions__quick-item",
|
|
240
|
-
title: t,
|
|
241
|
-
onClick: y((r) => Ie(t), ["stop"])
|
|
242
|
-
}, [
|
|
243
|
-
u(H, { emoji: t }, null, 8, ["emoji"])
|
|
244
|
-
], 8, He))), 128)),
|
|
245
|
-
p("button", {
|
|
246
|
-
class: "message-reactions__expand",
|
|
247
|
-
title: "Развернуть",
|
|
248
|
-
onClick: y(Ee, ["stop"])
|
|
249
|
-
}, [
|
|
250
|
-
u(Oe)
|
|
251
|
-
]),
|
|
252
|
-
s.replyEnabled && s.reply ? (l(), d("button", {
|
|
253
|
-
key: 0,
|
|
254
|
-
class: "message-reactions__quick-item",
|
|
255
|
-
title: "Ответить",
|
|
256
|
-
onClick: y(be, ["stop"])
|
|
257
|
-
}, [
|
|
258
|
-
u(xe)
|
|
259
|
-
])) : _("", !0),
|
|
260
|
-
s.menuEnabled ? (l(), d("button", {
|
|
261
|
-
key: 1,
|
|
262
|
-
class: "message-reactions__quick-item",
|
|
263
|
-
title: "Действия",
|
|
264
|
-
onClick: y(Re, ["stop"])
|
|
265
|
-
}, [
|
|
266
|
-
u(Ke)
|
|
267
|
-
])) : _("", !0)
|
|
268
|
-
], 36), [
|
|
269
|
-
[z, i(ae) && !s.readonly && s.enabled]
|
|
270
|
-
])
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
}),
|
|
274
|
-
u(D, { name: "message-reactions-popover" }, {
|
|
275
|
-
default: C(() => [
|
|
276
|
-
V(p("div", {
|
|
277
|
-
ref_key: "pickerRef",
|
|
278
|
-
ref: ce,
|
|
279
|
-
class: "message-reactions__picker",
|
|
280
|
-
style: $(i(me)),
|
|
281
|
-
onMouseenter: o[2] || (o[2] = //@ts-ignore
|
|
282
|
-
(...t) => i(B) && i(B)(...t)),
|
|
283
|
-
onMouseleave: o[3] || (o[3] = //@ts-ignore
|
|
284
|
-
(...t) => i(w) && i(w)(...t))
|
|
285
|
-
}, [
|
|
286
|
-
u(i(Pe), {
|
|
287
|
-
native: i(Y),
|
|
288
|
-
theme: N.value,
|
|
289
|
-
"picker-type": "",
|
|
290
|
-
onSelect: Me
|
|
291
|
-
}, null, 8, ["native", "theme"])
|
|
292
|
-
], 36), [
|
|
293
|
-
[z, i(le) && !s.readonly && s.enabled]
|
|
294
|
-
])
|
|
295
|
-
]),
|
|
296
|
-
_: 1
|
|
297
|
-
})
|
|
298
|
-
]))
|
|
299
|
-
], 34));
|
|
193
|
+
);
|
|
194
|
+
const q = { props: t, emit: r, chatAppId: l, injectedUserId: j, injectedUserNames: S, startReply: U, reactionsContainerRef: a, messageContentEl: c, emojiTheme: N, isNative: D, quickEmojis: C, reactionsMode: P, resolvedUserId: d, resolvedUserNames: g, resolvedUserName: _, showCount: G, reactionsState: v, displayedReactions: H, hasReactions: J, addReaction: m, removeReaction: y, toggleReaction: L, isMyReaction: I, getReactionTooltip: z, panel: O, isQuickReactionsOpen: V, isFullPickerOpen: W, pickerRef: X, quickReactionsRef: Y, quickPanelStyle: Z, pickerStyle: $, closeQuickPanel: u, handleMessageMouseEnter: T, handleMessageMouseLeave: K, openFullPicker: x, closeFullPicker: h, handleQuickPanelMouseEnter: ee, handleQuickPanelMouseLeave: te, handlePickerMouseEnter: ne, handlePickerMouseLeave: oe, handleClickOutside: E, isRight: re, changeThemeDialogEmoji: B, canMutate: p, onToggle: ie, isStillInsideMessage: Q, onMessageMouseEnter: R, onMessageMouseLeave: M, onQuickEmojiClick: se, onReplyClick: ae, onMenuClick: ce, onExpandClick: le, onSelectEmoji: ue, get EmojiPicker() {
|
|
195
|
+
return ge;
|
|
196
|
+
}, EmojiGlyph: Re, Tooltip: Me, ExpandReactionsIcon: be, ReplyIcon: he, MessageActionsIcon: ke };
|
|
197
|
+
return Object.defineProperty(q, "__isScriptSetup", { enumerable: !1, value: !0 }), q;
|
|
300
198
|
}
|
|
301
199
|
});
|
|
302
200
|
export {
|
|
303
|
-
|
|
201
|
+
et as default
|
|
304
202
|
};
|
|
@@ -1,32 +1,44 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
2
|
-
import
|
|
3
|
-
const n = {},
|
|
1
|
+
import { createElementBlock as o, openBlock as c, createElementVNode as e } from "vue";
|
|
2
|
+
import l from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
+
const n = {}, s = {
|
|
4
4
|
width: "24",
|
|
5
5
|
height: "24",
|
|
6
6
|
viewBox: "0 0 24 24",
|
|
7
7
|
fill: "none",
|
|
8
8
|
xmlns: "http://www.w3.org/2000/svg"
|
|
9
9
|
};
|
|
10
|
-
function
|
|
11
|
-
return
|
|
12
|
-
e(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
e("clipPath", { id: "clip0_11494_26173" }, [
|
|
20
|
-
e("rect", {
|
|
21
|
-
width: "24",
|
|
22
|
-
height: "24",
|
|
23
|
-
fill: "white"
|
|
10
|
+
function i(r, t) {
|
|
11
|
+
return c(), o("svg", s, [...t[0] || (t[0] = [
|
|
12
|
+
e(
|
|
13
|
+
"g",
|
|
14
|
+
{ "clip-path": "url(#clip0_11494_26173)" },
|
|
15
|
+
[
|
|
16
|
+
e("path", {
|
|
17
|
+
d: "M16 9V19H8V9H16ZM14.5 3H9.5L8.5 4H5V6H19V4H15.5L14.5 3ZM18 7H6V19C6 20.1 6.9 21 8 21H16C17.1 21 18 20.1 18 19V7Z",
|
|
18
|
+
fill: "#DC3545"
|
|
24
19
|
})
|
|
25
|
-
]
|
|
26
|
-
|
|
20
|
+
],
|
|
21
|
+
-1
|
|
22
|
+
/* CACHED */
|
|
23
|
+
),
|
|
24
|
+
e(
|
|
25
|
+
"defs",
|
|
26
|
+
null,
|
|
27
|
+
[
|
|
28
|
+
e("clipPath", { id: "clip0_11494_26173" }, [
|
|
29
|
+
e("rect", {
|
|
30
|
+
width: "24",
|
|
31
|
+
height: "24",
|
|
32
|
+
fill: "white"
|
|
33
|
+
})
|
|
34
|
+
])
|
|
35
|
+
],
|
|
36
|
+
-1
|
|
37
|
+
/* CACHED */
|
|
38
|
+
)
|
|
27
39
|
])]);
|
|
28
40
|
}
|
|
29
|
-
const f = /* @__PURE__ */
|
|
41
|
+
const f = /* @__PURE__ */ l(n, [["render", i], ["__file", "/var/store/dev-space/repos-projects/chotto/chotto/src/components/2_feed_elements/MessageReactions/icons/DeleteIcon.vue"]]);
|
|
30
42
|
export {
|
|
31
43
|
f as default
|
|
32
44
|
};
|