@mobilon-dev/chotto 0.3.33 → 0.3.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js +2 -2
  3. package/dist/components/1_atoms/ButtonContextMenu/ButtonContextMenu.vue2.js +28 -27
  4. package/dist/components/1_atoms/ContextMenu/ContextMenu.vue.js +36 -22
  5. package/dist/components/1_icons/SettingsIcon.vue.js +6 -6
  6. package/dist/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.js +164 -156
  7. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.js +4 -103
  8. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue2.js +135 -0
  9. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.js +33 -11
  10. package/dist/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue2.js +4 -0
  11. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.js +4 -102
  12. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue2.js +135 -0
  13. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.js +21 -18
  14. package/dist/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue2.js +4 -0
  15. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue.js +2 -2
  16. package/dist/components/2_chatinput_elements/FileUploader/FileUploader.vue2.js +89 -55
  17. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.js +17 -14
  18. package/dist/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue2.js +4 -0
  19. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.js +4 -337
  20. package/dist/components/2_chatinput_elements/StickerPicker/StickerPicker.vue2.js +360 -0
  21. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.js +56 -11
  22. package/dist/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue2.js +4 -0
  23. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
  24. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +164 -100
  25. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +1 -1
  26. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +184 -134
  27. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
  28. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +1 -1
  29. package/dist/components/3_compounds/ChatList/ChatList.vue.js +101 -91
  30. package/dist/components/3_compounds/SideBar/SideBar.vue.js +68 -67
  31. package/dist/hooks/messages/useChannelAccentColor.js +35 -19
  32. package/dist/themes/dark.css +1 -1
  33. package/dist/themes/default.css +1 -1
  34. package/dist/themes/glass.css +1 -0
  35. package/dist/themes/green.css +1 -1
  36. package/dist/themes/mobilon1.css +1 -1
  37. package/dist/types/apps/data/messages.d.ts +117 -86
  38. package/dist/types/components/1_atoms/ContextMenu/ContextMenu.vue.d.ts +5 -1
  39. package/dist/types/components/2_blocks/CommunicationPanel/CommunicationPanel.vue.d.ts +2 -0
  40. package/dist/types/components/2_blocks/CommunicationPanel/stories/CommunicationPanel.stories.d.ts +2 -0
  41. package/dist/types/components/2_blocks/CommunicationPanel/styles/types.d.ts +4 -0
  42. package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/ButtonEmojiPicker.vue.d.ts +31 -7
  43. package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/icons/SmilesIcon.vue.d.ts +6 -1
  44. package/dist/types/components/2_chatinput_elements/ButtonEmojiPicker/styles/types.d.ts +6 -0
  45. package/dist/types/components/2_chatinput_elements/ButtonTemplateSelector/ButtonTemplateSelector.vue.d.ts +59 -11
  46. package/dist/types/components/2_chatinput_elements/ButtonTemplateSelector/icons/ChatTemplatesIcon.vue.d.ts +6 -1
  47. package/dist/types/components/2_chatinput_elements/FileUploader/icons/FileUploaderIcon.vue.d.ts +6 -1
  48. package/dist/types/components/2_chatinput_elements/StickerPicker/StickerPicker.vue.d.ts +22 -10
  49. package/dist/types/components/2_chatinput_elements/StickerPicker/icons/StickerIcon.vue.d.ts +6 -1
  50. package/dist/types/components/2_chatlist_elements/ChatItem/ChatItem.vue.d.ts +2 -0
  51. package/dist/types/components/2_chatlist_elements/ChatItem/styles/types.d.ts +2 -0
  52. package/dist/types/components/2_elements/ChatInfo/styles/types.d.ts +2 -0
  53. package/dist/types/components/2_feed_elements/AudioMessage/styles/types.d.ts +18 -0
  54. package/dist/types/components/2_feed_elements/CallMessage/styles/types.d.ts +24 -0
  55. package/dist/types/components/2_feed_elements/DateMessage/styles/types.d.ts +6 -0
  56. package/dist/types/components/2_feed_elements/DateMessageSticky/styles/types.d.ts +4 -0
  57. package/dist/types/components/2_feed_elements/FeedKeyboard/styles/types.d.ts +2 -0
  58. package/dist/types/components/2_feed_elements/FileMessage/styles/types.d.ts +12 -0
  59. package/dist/types/components/2_feed_elements/ImageMessage/styles/types.d.ts +126 -0
  60. package/dist/types/components/2_feed_elements/MessageReactions/styles/types.d.ts +8 -0
  61. package/dist/types/components/2_feed_elements/TextMessage/styles/types.d.ts +16 -0
  62. package/dist/types/components/3_compounds/ChatInput/styles/types.d.ts +2 -0
  63. package/dist/types/components/3_compounds/ChatList/ChatList.vue.d.ts +2 -0
  64. package/dist/types/components/3_compounds/ChatList/styles/types.d.ts +8 -0
  65. package/dist/types/components/3_compounds/SideBar/styles/types.d.ts +6 -16
  66. package/dist/types/components/4_layouts/ChatWrapper/styles/types.d.ts +4 -0
  67. package/dist/types/components/4_layouts/ExtendedLayout/styles/types.d.ts +8 -0
  68. package/package.json +2 -1
@@ -1,193 +1,257 @@
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";
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 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 = {
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
- }, W = { class: "chat-item__info-container" }, X = { class: "chat-item__name" }, Y = {
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
- }, Z = { class: "chat-item__details-container" }, tt = {
21
+ }, At = { class: "chat-item__details-container" }, St = {
15
22
  key: 0,
16
23
  class: "chat-item__time"
17
- }, et = { class: "chat-item__status-unread-container" }, at = {
24
+ }, Ut = { class: "chat-item__status-unread-container" }, Lt = {
18
25
  key: 0,
19
26
  class: "pi pi-check"
20
- }, st = {
27
+ }, Nt = {
21
28
  key: 1,
22
29
  class: "chat-item__unread"
23
- }, it = {
30
+ }, Dt = {
24
31
  key: 2,
25
32
  class: "chat-item__status-chat-container"
26
- }, nt = {
33
+ }, Vt = {
27
34
  key: 0,
28
35
  class: "chat-item__fixed pi pi-thumbtack"
29
- }, ct = {
36
+ }, Xt = {
30
37
  key: 0,
31
38
  id: "noSelectButton",
32
39
  class: "chat-item__menu-button"
33
- }, ot = {
40
+ }, Yt = {
34
41
  key: 1,
35
42
  id: "noSelectButton",
36
43
  class: "chat-item__menu-button"
37
- }, lt = {
44
+ }, Ht = {
38
45
  key: 0,
39
46
  class: "dialog__container"
40
- }, ut = ["onClick"], rt = ["src"], dt = {
47
+ }, Ot = ["onClick"], Rt = ["src"], Ft = {
41
48
  key: 1,
42
49
  class: "dialog__icon pi pi-user"
43
- }, mt = { class: "dialog__text-container" }, ht = { class: "dialog__name" }, vt = { class: "dialog__time" }, bt = /* @__PURE__ */ $({
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(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,
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
- 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));
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 V = (n) => {
72
- n.relatedTarget instanceof HTMLElement && n.relatedTarget.className == "context-menu__list" ? r.value = !0 : r.value = !1;
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 (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
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
- o("div", P, [
82
- o("span", {
134
+ a("div", wt, [
135
+ a("span", {
83
136
  class: "chat-item__status-user",
84
- style: x({ backgroundColor: t.chat.status })
137
+ style: X({ backgroundColor: e.chat.status })
85
138
  }, null, 4),
86
- t.chat.avatar ? (a(), s("img", {
139
+ e.chat.avatar ? (s(), c("img", {
87
140
  key: 0,
88
- src: t.chat.avatar,
141
+ src: e.chat.avatar,
89
142
  height: "48",
90
143
  width: "48"
91
- }, null, 8, Q)) : (a(), s("div", R, [
92
- f(O)
144
+ }, null, 8, Tt)) : (s(), c("div", Et, [
145
+ I(Ct)
93
146
  ]))
94
147
  ]),
95
- o("div", W, [
96
- f(C, {
97
- text: e.chat.name,
148
+ a("div", bt, [
149
+ I(Y, {
150
+ text: o.chat.name,
98
151
  position: "bottom"
99
152
  }, {
100
- default: k(() => [
101
- o("div", X, u(e.chat.name), 1)
153
+ default: A(() => [
154
+ a("div", Bt, r(o.chat.name), 1)
102
155
  ]),
103
156
  _: 1
104
157
  }, 8, ["text"]),
105
- f(C, {
106
- text: e.chat.lastMessage,
158
+ I(Y, {
159
+ text: o.chat.lastMessage,
107
160
  position: "bottom"
108
161
  }, {
109
- default: k(() => [
110
- e.chat.lastMessage || e.chat.typing ? (a(), s("div", Y, u(L.value), 1)) : l("", !0)
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
- 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, {
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: e.chat.actions,
122
- onClick: I,
123
- onButtonClick: M,
124
- onMenuMouseLeave: i[0] || (i[0] = (c) => r.value = !1)
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: k(() => [...i[3] || (i[3] = [
127
- o("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
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
- o("div", et, [
132
- H(J).includes(e.chat["lastMessage.status"]) ? (a(), s("div", {
184
+ (s(), S(vt, { to: "body" }, [
185
+ o.contextMenuTrigger === "rightClick" && o.chat.actions && h.value ? (s(), S(Mt, {
133
186
  key: 0,
134
- class: y(["chat-item__status-message", E.value])
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
- e.chat["lastMessage.status"] !== "sent" ? (a(), s("span", at)) : l("", !0),
137
- i[4] || (i[4] = o("span", { class: "pi pi-check" }, null, -1))
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
- N.value ? (a(), s("div", st, u(D.value), 1)) : l("", !0)
203
+ K.value ? (s(), c("div", Nt, r(P.value), 1)) : l("", !0)
140
204
  ]),
141
- e.chat.countUnread < 1 ? (a(), s("div", it, [
142
- e.chat.isFixedTop || e.chat.isFixedBottom ? (a(), s("span", nt)) : l("", !0)
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
- t.showDialogs && e.chat.dialogs ? (a(), s("div", {
209
+ e.showDialogs && o.chat.dialogs ? (s(), c("div", {
146
210
  key: 0,
147
211
  class: "chat-item__dialog-buttons",
148
- onClick: i[1] || (i[1] = (c) => m("expand", t.chat))
212
+ onClick: n[1] || (n[1] = (i) => k("expand", e.chat))
149
213
  }, [
150
- t.showDialogs && !e.chat.dialogsExpanded ? (a(), s("button", ct, [...i[5] || (i[5] = [
151
- o("span", {
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
- t.showDialogs && e.chat.dialogsExpanded ? (a(), s("button", ot, [...i[6] || (i[6] = [
157
- o("span", {
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
- 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)
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
- c.icon ? (a(), s("img", {
234
+ i.icon ? (s(), c("img", {
171
235
  key: 0,
172
236
  class: "dialog__icon",
173
- src: c.icon,
237
+ src: i.icon,
174
238
  height: "16",
175
239
  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)
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
- c.countUnread > 0 ? (a(), s("div", {
245
+ i.countUnread > 0 ? (s(), c("div", {
182
246
  key: 2,
183
247
  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))
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
- bt as default
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-db94d3b9"]]);
4
+ const r = /* @__PURE__ */ t(o, [["__scopeId", "data-v-6b1b745c"]]);
5
5
  export {
6
6
  r as default
7
7
  };