@mobilon-dev/chotto 0.3.33 → 0.3.35
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 +2 -2
- package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +28 -27
- package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +36 -22
- package/dist/components/1_icons/SettingsIcon.vue.js +6 -6
- package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +164 -156
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -103
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +135 -0
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +33 -11
- package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +4 -0
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -102
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +135 -0
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -18
- package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +4 -0
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +2 -2
- package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +89 -55
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -14
- package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +4 -0
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -337
- package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +360 -0
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +56 -11
- package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +4 -0
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +164 -100
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +184 -134
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +1 -1
- package/dist/components/3_compounds/ChatList/ChatList.vue.js +101 -91
- package/dist/components/3_compounds/SideBar/SideBar.vue.js +68 -67
- package/dist/hooks/messages/useChannelAccentColor.js +35 -19
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -0
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/apps/data/messages.d.ts +117 -86
- package/dist/types/components/1_atoms/ContextMenu/ContextMenu.vue.d.ts +5 -1
- package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +2 -0
- package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +2 -0
- package/dist/types/components/2_blocks/CommunicationPanel/styles/types.d.ts +4 -0
- package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.d.ts +31 -7
- package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.d.ts +6 -1
- package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/styles/types.d.ts +6 -0
- package/dist/types/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.d.ts +59 -11
- package/dist/types/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.d.ts +6 -1
- package/dist/types/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.d.ts +6 -1
- package/dist/types/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.d.ts +22 -10
- package/dist/types/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.d.ts +6 -1
- package/dist/types/components/2_chatlist_elements/ChatItem/ChatItem.vue.d.ts +2 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/styles/types.d.ts +2 -0
- package/dist/types/components/2_elements/ChatInfo/styles/types.d.ts +2 -0
- package/dist/types/components/2_feed_elements/AudioMessage/styles/types.d.ts +18 -0
- package/dist/types/components/2_feed_elements/CallMessage/styles/types.d.ts +24 -0
- package/dist/types/components/2_feed_elements/DateMessage/styles/types.d.ts +6 -0
- package/dist/types/components/2_feed_elements/DateMessageSticky/styles/types.d.ts +4 -0
- package/dist/types/components/2_feed_elements/FeedKeyboard/styles/types.d.ts +2 -0
- package/dist/types/components/2_feed_elements/FileMessage/styles/types.d.ts +12 -0
- package/dist/types/components/2_feed_elements/ImageMessage/styles/types.d.ts +126 -0
- package/dist/types/components/2_feed_elements/MessageReactions/styles/types.d.ts +8 -0
- package/dist/types/components/2_feed_elements/TextMessage/styles/types.d.ts +16 -0
- package/dist/types/components/3_compounds/ChatInput/styles/types.d.ts +2 -0
- package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +2 -0
- package/dist/types/components/3_compounds/ChatList/styles/types.d.ts +8 -0
- package/dist/types/components/3_compounds/SideBar/styles/types.d.ts +6 -16
- package/dist/types/components/4_layouts/ChatWrapper/styles/types.d.ts +4 -0
- package/dist/types/components/4_layouts/ExtendedLayout/styles/types.d.ts +8 -0
- package/package.json +2 -1
|
@@ -1,193 +1,257 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { getStatus as
|
|
1
|
+
import { defineComponent as lt, inject as rt, useId as ut, ref as p, computed as M, watch as dt, onMounted as ht, nextTick as b, onUnmounted as mt, createElementBlock as c, openBlock as s, createElementVNode as a, createCommentVNode as l, withModifiers as gt, normalizeClass as B, normalizeStyle as X, createVNode as I, withCtx as A, toDisplayString as r, createBlock as S, Teleport as vt, unref as C, Fragment as yt, renderList as ft } from "vue";
|
|
2
|
+
import { getStatus as pt, statuses as kt } from "../../../functions/getStatusMessage.js";
|
|
3
3
|
import "../../../functions/parseMarkdown.js";
|
|
4
|
-
import { t as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
4
|
+
import { t as U } from "../../../locale/useLocale.js";
|
|
5
|
+
import "../../../hooks/useMessageDraft.js";
|
|
6
|
+
import "../../../hooks/useSearchModel.js";
|
|
7
|
+
import { useTheme as xt } from "../../../hooks/useTheme.js";
|
|
8
|
+
/* empty css */
|
|
9
|
+
/* empty css */
|
|
10
|
+
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
11
|
+
import Y from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
12
|
+
import _t from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
|
|
13
|
+
import Mt from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
14
|
+
import Ct from "../../1_icons/AvatarIcon.vue.js";
|
|
15
|
+
const wt = { class: "chat-item__avatar-container" }, Tt = ["src"], Et = {
|
|
9
16
|
key: 1,
|
|
10
17
|
class: "chat-item__avatar-placeholder"
|
|
11
|
-
},
|
|
18
|
+
}, bt = { class: "chat-item__info-container" }, Bt = { class: "chat-item__name" }, It = {
|
|
12
19
|
key: 0,
|
|
13
20
|
class: "chat-item__last-message"
|
|
14
|
-
},
|
|
21
|
+
}, At = { class: "chat-item__details-container" }, St = {
|
|
15
22
|
key: 0,
|
|
16
23
|
class: "chat-item__time"
|
|
17
|
-
},
|
|
24
|
+
}, Ut = { class: "chat-item__status-unread-container" }, Lt = {
|
|
18
25
|
key: 0,
|
|
19
26
|
class: "pi pi-check"
|
|
20
|
-
},
|
|
27
|
+
}, Nt = {
|
|
21
28
|
key: 1,
|
|
22
29
|
class: "chat-item__unread"
|
|
23
|
-
},
|
|
30
|
+
}, Dt = {
|
|
24
31
|
key: 2,
|
|
25
32
|
class: "chat-item__status-chat-container"
|
|
26
|
-
},
|
|
33
|
+
}, Vt = {
|
|
27
34
|
key: 0,
|
|
28
35
|
class: "chat-item__fixed pi pi-thumbtack"
|
|
29
|
-
},
|
|
36
|
+
}, Xt = {
|
|
30
37
|
key: 0,
|
|
31
38
|
id: "noSelectButton",
|
|
32
39
|
class: "chat-item__menu-button"
|
|
33
|
-
},
|
|
40
|
+
}, Yt = {
|
|
34
41
|
key: 1,
|
|
35
42
|
id: "noSelectButton",
|
|
36
43
|
class: "chat-item__menu-button"
|
|
37
|
-
},
|
|
44
|
+
}, Ht = {
|
|
38
45
|
key: 0,
|
|
39
46
|
class: "dialog__container"
|
|
40
|
-
},
|
|
47
|
+
}, Ot = ["onClick"], Rt = ["src"], Ft = {
|
|
41
48
|
key: 1,
|
|
42
49
|
class: "dialog__icon pi pi-user"
|
|
43
|
-
},
|
|
50
|
+
}, $t = { class: "dialog__text-container" }, zt = { class: "dialog__name" }, Wt = { class: "dialog__time" }, ce = /* @__PURE__ */ lt({
|
|
44
51
|
__name: "ChatItem",
|
|
45
52
|
props: {
|
|
46
53
|
chat: {},
|
|
47
|
-
showDialogs: { type: Boolean, default: !0 }
|
|
54
|
+
showDialogs: { type: Boolean, default: !0 },
|
|
55
|
+
contextMenuTrigger: { default: "hover" }
|
|
48
56
|
},
|
|
49
57
|
emits: ["select", "action", "expand"],
|
|
50
|
-
setup(
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
() =>
|
|
58
|
+
setup(o, { emit: H }) {
|
|
59
|
+
const O = rt("chatAppId"), { getTheme: L } = xt(O), e = o, k = H, u = ut(), d = p(!1), h = p(!1), w = p(!1), R = p(null), F = () => {
|
|
60
|
+
w.value = !0;
|
|
61
|
+
}, $ = (t) => {
|
|
62
|
+
w.value || t.target instanceof HTMLElement && t.target.id != "noSelectButton" && k("select", { chat: e.chat, dialog: null }), w.value = !1;
|
|
63
|
+
}, z = (t) => {
|
|
64
|
+
k("select", { chat: e.chat, dialog: t });
|
|
65
|
+
}, W = () => e.chat.isSelected ? "chat-item__selected" : "", j = (t) => t.isSelected ? "dialog__selected" : "", N = (t) => {
|
|
66
|
+
e.contextMenuTrigger === "rightClick" && T(), k("action", { chat: e.chat, ...t });
|
|
67
|
+
}, T = () => {
|
|
68
|
+
const t = document.getElementById("context-menu-rightclick-" + u);
|
|
69
|
+
t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none"), h.value = !1;
|
|
70
|
+
}, q = () => {
|
|
71
|
+
document.querySelectorAll('[id^="context-menu-rightclick-"]').forEach((n) => {
|
|
72
|
+
const i = n;
|
|
73
|
+
i.id !== "context-menu-rightclick-" + u && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
|
|
74
|
+
});
|
|
75
|
+
}, G = () => e.chat.dialogs ? [...e.chat.dialogs].sort((t, n) => Number(t["lastActivity.timestamp"]) > Number(n["lastActivity.timestamp"]) ? -1 : Number(t["lastActivity.timestamp"]) < Number(n["lastActivity.timestamp"]) ? 1 : (Number(t["lastActivity.timestamp"]) == Number(n["lastActivity.timestamp"]), 0)) : [], J = M(() => pt(e.chat["lastMessage.status"])), K = M(() => e.chat.showEmptyIndicator || e.chat.countUnread > 0), P = M(() => e.chat.countUnread > 0 ? e.chat.countUnread > 99 ? "99+" : e.chat.countUnread : e.chat.showEmptyIndicator ? "" : void 0);
|
|
76
|
+
let x;
|
|
77
|
+
const m = p(0), Q = [U("component.ChatItem.typing") + ".", U("component.ChatItem.typing") + "..", U("component.ChatItem.typing") + "..."], Z = M(() => e.chat.typing ? Q[m.value] : e.chat.lastMessage);
|
|
78
|
+
dt(
|
|
79
|
+
() => e.chat.typing,
|
|
64
80
|
() => {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}, 1e3) : (
|
|
81
|
+
e.chat.typing ? x = setInterval(() => {
|
|
82
|
+
m.value < 2 ? m.value += 1 : m.value = 0;
|
|
83
|
+
}, 1e3) : (m.value = 0, x && (clearInterval(x), x = void 0));
|
|
68
84
|
},
|
|
69
85
|
{ immediate: !0 }
|
|
70
86
|
);
|
|
71
|
-
const
|
|
72
|
-
|
|
87
|
+
const tt = () => {
|
|
88
|
+
e.contextMenuTrigger === "hover" && (d.value = !0);
|
|
89
|
+
}, et = (t) => {
|
|
90
|
+
e.contextMenuTrigger === "hover" && (t.relatedTarget instanceof HTMLElement && t.relatedTarget.className == "context-menu__list" ? d.value = !0 : d.value = !1);
|
|
91
|
+
}, nt = (t) => {
|
|
92
|
+
e.contextMenuTrigger === "rightClick" && e.chat.actions && it(t);
|
|
93
|
+
}, it = (t) => {
|
|
94
|
+
q(), h.value = !0, b(() => {
|
|
95
|
+
const n = document.getElementById("context-menu-rightclick-" + u);
|
|
96
|
+
if (n) {
|
|
97
|
+
const i = t.clientX, E = t.clientY;
|
|
98
|
+
n.style.display = "inherit";
|
|
99
|
+
const _ = n.getBoundingClientRect();
|
|
100
|
+
n.style.display = "none", b(() => {
|
|
101
|
+
const ct = window.innerWidth, at = window.innerHeight, g = window.scrollX || window.pageXOffset, v = window.scrollY || window.pageYOffset;
|
|
102
|
+
let y = i + g, f = E + v;
|
|
103
|
+
y + _.width > ct + g && (y = i + g - _.width), f + _.height > at + v && (f = E + v - _.height), y < g && (y = g), f < v && (f = v), n.style.top = f + "px", n.style.left = y + "px", n.style.opacity = "1", n.style.display = "inherit";
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
}, ot = () => {
|
|
108
|
+
}, st = () => {
|
|
109
|
+
}, D = (t) => {
|
|
110
|
+
if (e.contextMenuTrigger === "rightClick" && h.value) {
|
|
111
|
+
const n = t.target, i = document.getElementById("context-menu-rightclick-" + u);
|
|
112
|
+
(!i || !i.contains(n)) && T();
|
|
113
|
+
}
|
|
114
|
+
}, V = () => {
|
|
115
|
+
e.contextMenuTrigger === "rightClick" && h.value && T();
|
|
73
116
|
};
|
|
74
|
-
return (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
117
|
+
return ht(() => {
|
|
118
|
+
e.contextMenuTrigger === "rightClick" && (document.addEventListener("click", D), window.addEventListener("scroll", V, !0), b(() => {
|
|
119
|
+
const t = document.getElementById("context-menu-rightclick-" + u);
|
|
120
|
+
t && (t.style.display = "none", t.style.opacity = "0");
|
|
121
|
+
}));
|
|
122
|
+
}), mt(() => {
|
|
123
|
+
document.removeEventListener("click", D), window.removeEventListener("scroll", V, !0);
|
|
124
|
+
}), (t, n) => (s(), c("div", null, [
|
|
125
|
+
a("div", {
|
|
126
|
+
ref_key: "containerRef",
|
|
127
|
+
ref: R,
|
|
128
|
+
class: B(["chat-item__container", W()]),
|
|
129
|
+
onMouseenter: tt,
|
|
130
|
+
onMouseleave: et,
|
|
131
|
+
onClick: $,
|
|
132
|
+
onContextmenu: gt(nt, ["prevent"])
|
|
80
133
|
}, [
|
|
81
|
-
|
|
82
|
-
|
|
134
|
+
a("div", wt, [
|
|
135
|
+
a("span", {
|
|
83
136
|
class: "chat-item__status-user",
|
|
84
|
-
style:
|
|
137
|
+
style: X({ backgroundColor: e.chat.status })
|
|
85
138
|
}, null, 4),
|
|
86
|
-
|
|
139
|
+
e.chat.avatar ? (s(), c("img", {
|
|
87
140
|
key: 0,
|
|
88
|
-
src:
|
|
141
|
+
src: e.chat.avatar,
|
|
89
142
|
height: "48",
|
|
90
143
|
width: "48"
|
|
91
|
-
}, null, 8,
|
|
92
|
-
|
|
144
|
+
}, null, 8, Tt)) : (s(), c("div", Et, [
|
|
145
|
+
I(Ct)
|
|
93
146
|
]))
|
|
94
147
|
]),
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
text:
|
|
148
|
+
a("div", bt, [
|
|
149
|
+
I(Y, {
|
|
150
|
+
text: o.chat.name,
|
|
98
151
|
position: "bottom"
|
|
99
152
|
}, {
|
|
100
|
-
default:
|
|
101
|
-
|
|
153
|
+
default: A(() => [
|
|
154
|
+
a("div", Bt, r(o.chat.name), 1)
|
|
102
155
|
]),
|
|
103
156
|
_: 1
|
|
104
157
|
}, 8, ["text"]),
|
|
105
|
-
|
|
106
|
-
text:
|
|
158
|
+
I(Y, {
|
|
159
|
+
text: o.chat.lastMessage,
|
|
107
160
|
position: "bottom"
|
|
108
161
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
|
|
162
|
+
default: A(() => [
|
|
163
|
+
o.chat.lastMessage || o.chat.typing ? (s(), c("div", It, r(Z.value), 1)) : l("", !0)
|
|
111
164
|
]),
|
|
112
165
|
_: 1
|
|
113
166
|
}, 8, ["text"])
|
|
114
167
|
]),
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
168
|
+
a("div", At, [
|
|
169
|
+
o.chat["lastActivity.time"] && (!o.chat.actions || !d.value) ? (s(), c("div", St, r(o.chat["lastActivity.time"]), 1)) : l("", !0),
|
|
170
|
+
d.value && o.chat.actions && o.contextMenuTrigger === "hover" ? (s(), S(_t, {
|
|
118
171
|
key: 1,
|
|
119
172
|
mode: "click",
|
|
120
|
-
"menu-side": "bottom",
|
|
121
|
-
actions:
|
|
122
|
-
onClick:
|
|
123
|
-
onButtonClick:
|
|
124
|
-
onMenuMouseLeave:
|
|
173
|
+
"menu-side": "bottom-right",
|
|
174
|
+
actions: o.chat.actions,
|
|
175
|
+
onClick: N,
|
|
176
|
+
onButtonClick: F,
|
|
177
|
+
onMenuMouseLeave: n[0] || (n[0] = (i) => d.value = !1)
|
|
125
178
|
}, {
|
|
126
|
-
default:
|
|
127
|
-
|
|
179
|
+
default: A(() => [...n[2] || (n[2] = [
|
|
180
|
+
a("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
|
|
128
181
|
])]),
|
|
129
182
|
_: 1
|
|
130
183
|
}, 8, ["actions"])) : l("", !0),
|
|
131
|
-
|
|
132
|
-
|
|
184
|
+
(s(), S(vt, { to: "body" }, [
|
|
185
|
+
o.contextMenuTrigger === "rightClick" && o.chat.actions && h.value ? (s(), S(Mt, {
|
|
133
186
|
key: 0,
|
|
134
|
-
|
|
187
|
+
id: "context-menu-rightclick-" + C(u),
|
|
188
|
+
actions: o.chat.actions,
|
|
189
|
+
"data-theme": C(L)().theme ? C(L)().theme : "light",
|
|
190
|
+
onClick: N,
|
|
191
|
+
onMouseenter: ot,
|
|
192
|
+
onMouseleave: st
|
|
193
|
+
}, null, 8, ["id", "actions", "data-theme"])) : l("", !0)
|
|
194
|
+
])),
|
|
195
|
+
a("div", Ut, [
|
|
196
|
+
C(kt).includes(o.chat["lastMessage.status"]) ? (s(), c("div", {
|
|
197
|
+
key: 0,
|
|
198
|
+
class: B(["chat-item__status-message", J.value])
|
|
135
199
|
}, [
|
|
136
|
-
|
|
137
|
-
|
|
200
|
+
o.chat["lastMessage.status"] !== "sent" ? (s(), c("span", Lt)) : l("", !0),
|
|
201
|
+
n[3] || (n[3] = a("span", { class: "pi pi-check" }, null, -1))
|
|
138
202
|
], 2)) : l("", !0),
|
|
139
|
-
|
|
203
|
+
K.value ? (s(), c("div", Nt, r(P.value), 1)) : l("", !0)
|
|
140
204
|
]),
|
|
141
|
-
|
|
142
|
-
|
|
205
|
+
o.chat.countUnread < 1 ? (s(), c("div", Dt, [
|
|
206
|
+
o.chat.isFixedTop || o.chat.isFixedBottom ? (s(), c("span", Vt)) : l("", !0)
|
|
143
207
|
])) : l("", !0)
|
|
144
208
|
]),
|
|
145
|
-
|
|
209
|
+
e.showDialogs && o.chat.dialogs ? (s(), c("div", {
|
|
146
210
|
key: 0,
|
|
147
211
|
class: "chat-item__dialog-buttons",
|
|
148
|
-
onClick:
|
|
212
|
+
onClick: n[1] || (n[1] = (i) => k("expand", e.chat))
|
|
149
213
|
}, [
|
|
150
|
-
|
|
151
|
-
|
|
214
|
+
e.showDialogs && !o.chat.dialogsExpanded ? (s(), c("button", Xt, [...n[4] || (n[4] = [
|
|
215
|
+
a("span", {
|
|
152
216
|
id: "noSelectButton",
|
|
153
217
|
class: "pi pi-angle-down"
|
|
154
218
|
}, null, -1)
|
|
155
219
|
])])) : l("", !0),
|
|
156
|
-
|
|
157
|
-
|
|
220
|
+
e.showDialogs && o.chat.dialogsExpanded ? (s(), c("button", Yt, [...n[5] || (n[5] = [
|
|
221
|
+
a("span", {
|
|
158
222
|
id: "noSelectButton",
|
|
159
223
|
class: "pi pi-angle-up"
|
|
160
224
|
}, null, -1)
|
|
161
225
|
])])) : l("", !0)
|
|
162
226
|
])) : l("", !0)
|
|
163
227
|
], 34),
|
|
164
|
-
|
|
165
|
-
(
|
|
166
|
-
key:
|
|
167
|
-
class:
|
|
168
|
-
onClick: (
|
|
228
|
+
e.showDialogs && o.chat.dialogsExpanded ? (s(), c("div", Ht, [
|
|
229
|
+
(s(!0), c(yt, null, ft(G(), (i) => (s(), c("div", {
|
|
230
|
+
key: i.dialogId,
|
|
231
|
+
class: B(["dialog__item", j(i)]),
|
|
232
|
+
onClick: (E) => z(i)
|
|
169
233
|
}, [
|
|
170
|
-
|
|
234
|
+
i.icon ? (s(), c("img", {
|
|
171
235
|
key: 0,
|
|
172
236
|
class: "dialog__icon",
|
|
173
|
-
src:
|
|
237
|
+
src: i.icon,
|
|
174
238
|
height: "16",
|
|
175
239
|
width: "16"
|
|
176
|
-
}, null, 8,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
240
|
+
}, null, 8, Rt)) : (s(), c("span", Ft)),
|
|
241
|
+
a("div", $t, [
|
|
242
|
+
a("div", zt, r(i.name), 1),
|
|
243
|
+
a("div", Wt, r(i["lastActivity.time"]), 1)
|
|
180
244
|
]),
|
|
181
|
-
|
|
245
|
+
i.countUnread > 0 ? (s(), c("div", {
|
|
182
246
|
key: 2,
|
|
183
247
|
class: "chat-item__unread",
|
|
184
|
-
style:
|
|
185
|
-
},
|
|
186
|
-
], 10,
|
|
248
|
+
style: X(i.colorUnread ? { backgroundColor: i.colorUnread } : {})
|
|
249
|
+
}, r(i.countUnread > 99 ? "99+" : i.countUnread), 5)) : l("", !0)
|
|
250
|
+
], 10, Ot))), 128))
|
|
187
251
|
])) : l("", !0)
|
|
188
252
|
]));
|
|
189
253
|
}
|
|
190
254
|
});
|
|
191
255
|
export {
|
|
192
|
-
|
|
256
|
+
ce as default
|
|
193
257
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ImageMessage.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6b1b745c"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|