@mobilon-dev/chotto 0.3.44 → 0.3.46

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 (34) hide show
  1. package/dist/chotto.css +1 -1
  2. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +2 -2
  3. package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +145 -132
  4. package/dist/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.js +24 -0
  5. package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -0
  6. package/dist/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.js +19 -0
  7. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +1 -1
  8. package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +94 -89
  9. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +2 -2
  10. package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +90 -85
  11. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +2 -2
  12. package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +97 -92
  13. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +2 -2
  14. package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +91 -86
  15. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +1 -1
  16. package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +70 -65
  17. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
  18. package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +93 -88
  19. package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
  20. package/dist/components/3_compounds/Feed/Feed.vue2.js +167 -154
  21. package/dist/types/apps/data/chats.d.ts +73 -2
  22. package/dist/types/components/2_chatlist_elements/ChatItem/icons/AudioIcon.vue.d.ts +2 -0
  23. package/dist/types/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.d.ts +2 -0
  24. package/dist/types/components/2_chatlist_elements/ChatItem/icons/VoiceIcon.vue.d.ts +2 -0
  25. package/dist/types/components/2_chatlist_elements/ChatItem/icons/index.d.ts +7 -0
  26. package/dist/types/components/2_chatlist_elements/ChatItem/types.d.ts +2 -0
  27. package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +11 -0
  28. package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +11 -0
  29. package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +11 -0
  30. package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +11 -0
  31. package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +11 -0
  32. package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +11 -0
  33. package/dist/types/components/2_feed_elements/types/messages.d.ts +1 -0
  34. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import t from "./ChatItem.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const a = /* @__PURE__ */ o(t, [["__scopeId", "data-v-64cee51b"]]);
4
+ const e = /* @__PURE__ */ o(t, [["__scopeId", "data-v-7011fb0e"]]);
5
5
  export {
6
- a as default
6
+ e as default
7
7
  };
@@ -1,63 +1,66 @@
1
- import { defineComponent as gt, inject as ft, useId as yt, ref as x, computed as f, watch as vt, onMounted as pt, nextTick as b, onUnmounted as kt, createElementBlock as s, openBlock as o, createElementVNode as a, createCommentVNode as l, withModifiers as _t, normalizeClass as B, normalizeStyle as H, createVNode as A, withCtx as S, toDisplayString as d, createBlock as M, resolveDynamicComponent as xt, Teleport as Ct, unref as T, Fragment as R, renderList as wt } from "vue";
2
- import { getStatus as Mt, statuses as Tt } from "../../../functions/getStatusMessage.js";
1
+ import { defineComponent as ft, inject as gt, useId as yt, ref as C, computed as y, watch as vt, onMounted as pt, nextTick as b, onUnmounted as kt, createElementBlock as s, openBlock as o, createElementVNode as r, createCommentVNode as l, withModifiers as _t, normalizeClass as A, normalizeStyle as W, createVNode as V, withCtx as S, toDisplayString as m, createBlock as T, resolveDynamicComponent as xt, Teleport as Ct, unref as M, Fragment as $, renderList as wt } from "vue";
2
+ import { getStatus as It, statuses as Tt } from "../../../functions/getStatusMessage.js";
3
3
  import "../../../functions/parseMarkdown.js";
4
4
  import { t as U } from "../../../locale/useLocale.js";
5
5
  import "../../../hooks/useMessageDraft.js";
6
6
  import "../../../hooks/useSearchModel.js";
7
- import { useTheme as It } from "../../../hooks/useTheme.js";
7
+ import { useTheme as Mt } from "../../../hooks/useTheme.js";
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  import "../../../node_modules/linkifyjs/dist/linkify.js";
11
- import W from "../../1_atoms/Tooltip/Tooltip.vue.js";
11
+ import z from "../../1_atoms/Tooltip/Tooltip.vue.js";
12
12
  import Et from "../../1_atoms/ButtonContextMenu/ButtonContextMenu.vue.js";
13
- import bt from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
14
- import Bt from "../../1_icons/AvatarIcon.vue.js";
15
- import At from "./icons/FileIcon.vue.js";
13
+ import Bt from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
14
+ import bt from "../../1_icons/AvatarIcon.vue.js";
15
+ import At from "./icons/AudioIcon.vue.js";
16
+ import Vt from "./icons/FileIcon.vue.js";
16
17
  import St from "./icons/ImageIcon.vue.js";
18
+ import Ut from "./icons/MissedCallIcon.vue.js";
17
19
  import O from "./icons/StickerIcon.vue.js";
18
- import Ut from "./icons/VideoIcon.vue.js";
19
- const Lt = { class: "chat-item__avatar-container" }, Dt = ["src"], Nt = {
20
+ import Lt from "./icons/VideoIcon.vue.js";
21
+ import Dt from "./icons/VoiceIcon.vue.js";
22
+ const Nt = { class: "chat-item__avatar-container" }, Xt = ["src"], Yt = {
20
23
  key: 1,
21
24
  class: "chat-item__avatar-placeholder"
22
- }, Vt = { class: "chat-item__info-container" }, Xt = { class: "chat-item__name" }, Yt = {
25
+ }, Ft = { class: "chat-item__info-container" }, Ht = { class: "chat-item__name" }, Rt = {
23
26
  key: 0,
24
27
  class: "chat-item__last-message"
25
- }, Ft = { class: "chat-item__last-message-text" }, Ht = { class: "chat-item__details-container" }, Rt = {
28
+ }, Wt = { class: "chat-item__last-message-text" }, $t = { class: "chat-item__details-container" }, zt = {
26
29
  key: 0,
27
30
  class: "chat-item__time"
28
- }, Wt = { class: "chat-item__status-unread-container" }, Ot = {
31
+ }, Ot = { class: "chat-item__status-unread-container" }, qt = {
29
32
  key: 0,
30
33
  class: "pi pi-clock"
31
- }, $t = {
34
+ }, Gt = {
32
35
  key: 1,
33
36
  class: "pi pi-exclamation-circle"
34
- }, zt = {
37
+ }, Jt = {
35
38
  key: 0,
36
39
  class: "pi pi-check"
37
- }, qt = {
40
+ }, Kt = {
38
41
  key: 1,
39
42
  class: "chat-item__unread"
40
- }, jt = {
43
+ }, Pt = {
41
44
  key: 2,
42
45
  class: "chat-item__status-chat-container"
43
- }, Gt = {
46
+ }, Qt = {
44
47
  key: 0,
45
48
  class: "chat-item__fixed pi pi-thumbtack"
46
- }, Jt = {
49
+ }, Zt = {
47
50
  key: 0,
48
51
  id: "noSelectButton",
49
52
  class: "chat-item__menu-button"
50
- }, Kt = {
53
+ }, jt = {
51
54
  key: 1,
52
55
  id: "noSelectButton",
53
56
  class: "chat-item__menu-button"
54
- }, Pt = {
57
+ }, te = {
55
58
  key: 0,
56
59
  class: "dialog__container"
57
- }, Qt = ["onClick"], Zt = ["src"], te = {
60
+ }, ee = ["onClick"], ne = ["src"], ie = {
58
61
  key: 1,
59
62
  class: "dialog__icon pi pi-user"
60
- }, ee = { class: "dialog__text-container" }, ne = { class: "dialog__name" }, ie = { class: "dialog__time" }, Ce = /* @__PURE__ */ gt({
63
+ }, oe = { class: "dialog__text-container" }, ce = { class: "dialog__name" }, se = { class: "dialog__time" }, Be = /* @__PURE__ */ ft({
61
64
  __name: "ChatItem",
62
65
  props: {
63
66
  chat: {},
@@ -65,41 +68,45 @@ const Lt = { class: "chat-item__avatar-container" }, Dt = ["src"], Nt = {
65
68
  contextMenuTrigger: { default: "hover" }
66
69
  },
67
70
  emits: ["select", "action", "expand"],
68
- setup(c, { emit: $ }) {
69
- const z = ft("chatAppId"), { getTheme: L } = It(z), e = c, C = $, m = yt(), h = x(!1), y = x(!1), I = x(!1), q = x(null), j = () => {
70
- I.value = !0;
71
- }, G = (t) => {
72
- I.value || t.target instanceof HTMLElement && t.target.id != "noSelectButton" && C("select", { chat: e.chat, dialog: null }), I.value = !1;
73
- }, J = (t) => {
74
- C("select", { chat: e.chat, dialog: t });
75
- }, K = () => e.chat.isSelected ? "chat-item__selected" : "", P = (t) => t.isSelected ? "dialog__selected" : "", D = (t) => {
76
- e.contextMenuTrigger === "rightClick" && E(), C("action", { chat: e.chat, ...t });
77
- }, E = () => {
78
- const t = document.getElementById("context-menu-rightclick-" + m);
79
- t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none"), y.value = !1;
80
- }, Q = () => {
71
+ setup(c, { emit: q }) {
72
+ const G = gt("chatAppId"), { getTheme: L } = Mt(G), e = c, w = q, h = yt(), f = C(!1), v = C(!1), E = C(!1), J = C(null), K = () => {
73
+ E.value = !0;
74
+ }, P = (t) => {
75
+ E.value || t.target instanceof HTMLElement && t.target.id != "noSelectButton" && w("select", { chat: e.chat, dialog: null }), E.value = !1;
76
+ }, Q = (t) => {
77
+ w("select", { chat: e.chat, dialog: t });
78
+ }, Z = () => e.chat.isSelected ? "chat-item__selected" : "", j = (t) => t.isSelected ? "dialog__selected" : "", D = (t) => {
79
+ e.contextMenuTrigger === "rightClick" && B(), w("action", { chat: e.chat, ...t });
80
+ }, B = () => {
81
+ const t = document.getElementById("context-menu-rightclick-" + h);
82
+ t && (t.style.top = "0", t.style.left = "0", t.style.opacity = "0", t.style.display = "none"), v.value = !1;
83
+ }, tt = () => {
81
84
  document.querySelectorAll('[id^="context-menu-rightclick-"]').forEach((n) => {
82
85
  const i = n;
83
- i.id !== "context-menu-rightclick-" + m && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
86
+ i.id !== "context-menu-rightclick-" + h && (i.style.top = "0", i.style.left = "0", i.style.opacity = "0", i.style.display = "none");
84
87
  });
85
- }, Z = () => 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)) : [], tt = f(() => Mt(e.chat["lastMessage.status"])), et = f(() => e.chat.showEmptyIndicator || e.chat.countUnread > 0), nt = f(() => e.chat.countUnread > 0 ? e.chat.countUnread > 99 ? "99+" : e.chat.countUnread : e.chat.showEmptyIndicator ? "" : void 0);
86
- let w;
87
- const g = x(0), N = [U("component.ChatItem.typing") + ".", U("component.ChatItem.typing") + "..", U("component.ChatItem.typing") + "..."], V = (t) => {
88
- var r, u;
88
+ }, et = () => 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)) : [], nt = y(() => It(e.chat["lastMessage.status"])), it = y(() => e.chat.showEmptyIndicator || e.chat.countUnread > 0), ot = y(() => e.chat.countUnread > 0 ? e.chat.countUnread > 99 ? "99+" : e.chat.countUnread : e.chat.showEmptyIndicator ? "" : void 0);
89
+ let I;
90
+ const g = C(0), N = [U("component.ChatItem.typing") + ".", U("component.ChatItem.typing") + "..", U("component.ChatItem.typing") + "..."], X = (t) => {
91
+ var u, a, d;
89
92
  if (typeof t == "string")
90
93
  return t;
91
94
  if ((t == null ? void 0 : t.type) === "message.sticker")
92
95
  return "Стикер";
93
- const n = (r = t == null ? void 0 : t.data) == null ? void 0 : r.text;
96
+ if ((t == null ? void 0 : t.type) === "message.audio")
97
+ return (t.isVoiceMessage || ((u = t == null ? void 0 : t.data) == null ? void 0 : u.isVoiceMessage)) === !0 ? "Голосовое сообщение" : "Аудиофайл";
98
+ if ((t == null ? void 0 : t.type) === "message.missedCall")
99
+ return "Пропущенный звонок";
100
+ const n = (a = t == null ? void 0 : t.data) == null ? void 0 : a.text;
94
101
  if (n)
95
102
  return n;
96
- const i = (u = t == null ? void 0 : t.data) == null ? void 0 : u.filename;
103
+ const i = (d = t == null ? void 0 : t.data) == null ? void 0 : d.filename;
97
104
  return i || "";
98
- }, it = (t) => typeof t == "string" ? null : (t == null ? void 0 : t.type) || null, X = f(() => {
99
- var n, i;
105
+ }, ct = (t) => typeof t == "string" ? null : (t == null ? void 0 : t.type) || null, Y = y(() => {
106
+ var n, i, u;
100
107
  if (e.chat.typing)
101
108
  return null;
102
- const t = it(e.chat.lastMessage);
109
+ const t = ct(e.chat.lastMessage);
103
110
  if (!t)
104
111
  return null;
105
112
  if (t === "message.sticker")
@@ -107,176 +114,182 @@ const Lt = { class: "chat-item__avatar-container" }, Dt = ["src"], Nt = {
107
114
  if (t === "message.image")
108
115
  return St;
109
116
  if (t === "message.video")
117
+ return Lt;
118
+ if (t === "message.audio") {
119
+ const a = e.chat.lastMessage;
120
+ return (a.isVoiceMessage || ((n = a == null ? void 0 : a.data) == null ? void 0 : n.isVoiceMessage)) === !0 ? Dt : At;
121
+ }
122
+ if (t === "message.missedCall")
110
123
  return Ut;
111
124
  if (t === "message.file") {
112
- const r = e.chat.lastMessage, u = ((i = (n = r == null ? void 0 : r.data) == null ? void 0 : n.filename) == null ? void 0 : i.toLowerCase()) || "";
113
- return u.endsWith(".tgs") || u.endsWith(".webp") ? O : At;
125
+ const a = e.chat.lastMessage, d = ((u = (i = a == null ? void 0 : a.data) == null ? void 0 : i.filename) == null ? void 0 : u.toLowerCase()) || "";
126
+ return d.endsWith(".tgs") || d.endsWith(".webp") ? O : Vt;
114
127
  }
115
128
  return null;
116
- }), ot = f(() => e.chat.typing ? N[g.value] : V(e.chat.lastMessage)), ct = f(() => e.chat.typing ? N[g.value] : V(e.chat.lastMessage));
129
+ }), st = y(() => e.chat.typing ? N[g.value] : X(e.chat.lastMessage)), at = y(() => e.chat.typing ? N[g.value] : X(e.chat.lastMessage));
117
130
  vt(
118
131
  () => e.chat.typing,
119
132
  () => {
120
- e.chat.typing ? w = setInterval(() => {
133
+ e.chat.typing ? I = setInterval(() => {
121
134
  g.value < 2 ? g.value += 1 : g.value = 0;
122
- }, 1e3) : (g.value = 0, w && (clearInterval(w), w = void 0));
135
+ }, 1e3) : (g.value = 0, I && (clearInterval(I), I = void 0));
123
136
  },
124
137
  { immediate: !0 }
125
138
  );
126
- const st = () => {
127
- e.contextMenuTrigger === "hover" && (h.value = !0);
128
- }, at = (t) => {
129
- e.contextMenuTrigger === "hover" && (t.relatedTarget instanceof HTMLElement && t.relatedTarget.className == "context-menu__list" ? h.value = !0 : h.value = !1);
139
+ const rt = () => {
140
+ e.contextMenuTrigger === "hover" && (f.value = !0);
130
141
  }, lt = (t) => {
131
- e.contextMenuTrigger === "rightClick" && e.chat.actions && rt(t);
132
- }, rt = (t) => {
133
- Q(), y.value = !0, b(() => {
134
- const n = document.getElementById("context-menu-rightclick-" + m);
142
+ e.contextMenuTrigger === "hover" && (t.relatedTarget instanceof HTMLElement && t.relatedTarget.className == "context-menu__list" ? f.value = !0 : f.value = !1);
143
+ }, ut = (t) => {
144
+ e.contextMenuTrigger === "rightClick" && e.chat.actions && dt(t);
145
+ }, dt = (t) => {
146
+ tt(), v.value = !0, b(() => {
147
+ const n = document.getElementById("context-menu-rightclick-" + h);
135
148
  if (n) {
136
- const i = t.clientX, r = t.clientY;
149
+ const i = t.clientX, u = t.clientY;
137
150
  n.style.display = "inherit";
138
- const u = n.getBoundingClientRect();
151
+ const a = n.getBoundingClientRect();
139
152
  n.style.display = "none", b(() => {
140
- const mt = window.innerWidth, ht = window.innerHeight, v = window.scrollX || window.pageXOffset, p = window.scrollY || window.pageYOffset;
141
- let k = i + v, _ = r + p;
142
- k + u.width > mt + v && (k = i + v - u.width), _ + u.height > ht + p && (_ = r + p - u.height), k < v && (k = v), _ < p && (_ = p), n.style.top = _ + "px", n.style.left = k + "px", n.style.opacity = "1", n.style.display = "inherit";
153
+ const d = window.innerWidth, R = window.innerHeight, p = window.scrollX || window.pageXOffset, k = window.scrollY || window.pageYOffset;
154
+ let _ = i + p, x = u + k;
155
+ _ + a.width > d + p && (_ = i + p - a.width), x + a.height > R + k && (x = u + k - a.height), _ < p && (_ = p), x < k && (x = k), n.style.top = x + "px", n.style.left = _ + "px", n.style.opacity = "1", n.style.display = "inherit";
143
156
  });
144
157
  }
145
158
  });
146
- }, ut = () => {
147
- }, dt = () => {
148
- }, Y = (t) => {
149
- if (e.contextMenuTrigger === "rightClick" && y.value) {
150
- const n = t.target, i = document.getElementById("context-menu-rightclick-" + m);
151
- (!i || !i.contains(n)) && E();
159
+ }, mt = () => {
160
+ }, ht = () => {
161
+ }, F = (t) => {
162
+ if (e.contextMenuTrigger === "rightClick" && v.value) {
163
+ const n = t.target, i = document.getElementById("context-menu-rightclick-" + h);
164
+ (!i || !i.contains(n)) && B();
152
165
  }
153
- }, F = () => {
154
- e.contextMenuTrigger === "rightClick" && y.value && E();
166
+ }, H = () => {
167
+ e.contextMenuTrigger === "rightClick" && v.value && B();
155
168
  };
156
169
  return pt(() => {
157
- e.contextMenuTrigger === "rightClick" && (document.addEventListener("click", Y), window.addEventListener("scroll", F, !0), b(() => {
158
- const t = document.getElementById("context-menu-rightclick-" + m);
170
+ e.contextMenuTrigger === "rightClick" && (document.addEventListener("click", F), window.addEventListener("scroll", H, !0), b(() => {
171
+ const t = document.getElementById("context-menu-rightclick-" + h);
159
172
  t && (t.style.display = "none", t.style.opacity = "0");
160
173
  }));
161
174
  }), kt(() => {
162
- document.removeEventListener("click", Y), window.removeEventListener("scroll", F, !0);
175
+ document.removeEventListener("click", F), window.removeEventListener("scroll", H, !0);
163
176
  }), (t, n) => (o(), s("div", null, [
164
- a("div", {
177
+ r("div", {
165
178
  ref_key: "containerRef",
166
- ref: q,
167
- class: B(["chat-item__container", K()]),
168
- onMouseenter: st,
169
- onMouseleave: at,
170
- onClick: G,
171
- onContextmenu: _t(lt, ["prevent"])
179
+ ref: J,
180
+ class: A(["chat-item__container", Z()]),
181
+ onMouseenter: rt,
182
+ onMouseleave: lt,
183
+ onClick: P,
184
+ onContextmenu: _t(ut, ["prevent"])
172
185
  }, [
173
- a("div", Lt, [
174
- a("span", {
186
+ r("div", Nt, [
187
+ r("span", {
175
188
  class: "chat-item__status-user",
176
- style: H({ backgroundColor: e.chat.status })
189
+ style: W({ backgroundColor: e.chat.status })
177
190
  }, null, 4),
178
191
  e.chat.avatar ? (o(), s("img", {
179
192
  key: 0,
180
193
  src: e.chat.avatar,
181
194
  height: "48",
182
195
  width: "48"
183
- }, null, 8, Dt)) : (o(), s("div", Nt, [
184
- A(Bt)
196
+ }, null, 8, Xt)) : (o(), s("div", Yt, [
197
+ V(bt)
185
198
  ]))
186
199
  ]),
187
- a("div", Vt, [
188
- A(W, {
200
+ r("div", Ft, [
201
+ V(z, {
189
202
  text: c.chat.name,
190
203
  position: "bottom"
191
204
  }, {
192
205
  default: S(() => [
193
- a("div", Xt, d(c.chat.name), 1)
206
+ r("div", Ht, m(c.chat.name), 1)
194
207
  ]),
195
208
  _: 1
196
209
  }, 8, ["text"]),
197
- A(W, {
198
- text: ot.value,
210
+ V(z, {
211
+ text: st.value,
199
212
  position: "bottom"
200
213
  }, {
201
214
  default: S(() => [
202
- c.chat.lastMessage || c.chat.typing ? (o(), s("div", Yt, [
203
- X.value ? (o(), M(xt(X.value), {
215
+ c.chat.lastMessage || c.chat.typing ? (o(), s("div", Rt, [
216
+ Y.value ? (o(), T(xt(Y.value), {
204
217
  key: 0,
205
218
  class: "chat-item__message-icon"
206
219
  })) : l("", !0),
207
- a("span", Ft, d(ct.value), 1)
220
+ r("span", Wt, m(at.value), 1)
208
221
  ])) : l("", !0)
209
222
  ]),
210
223
  _: 1
211
224
  }, 8, ["text"])
212
225
  ]),
213
- a("div", Ht, [
214
- c.chat["lastActivity.time"] && (!c.chat.actions || !h.value) ? (o(), s("div", Rt, d(c.chat["lastActivity.time"]), 1)) : l("", !0),
215
- h.value && c.chat.actions && c.contextMenuTrigger === "hover" ? (o(), M(Et, {
226
+ r("div", $t, [
227
+ c.chat["lastActivity.time"] && (!c.chat.actions || !f.value) ? (o(), s("div", zt, m(c.chat["lastActivity.time"]), 1)) : l("", !0),
228
+ f.value && c.chat.actions && c.contextMenuTrigger === "hover" ? (o(), T(Et, {
216
229
  key: 1,
217
230
  mode: "click",
218
231
  "menu-side": "bottom-right",
219
232
  actions: c.chat.actions,
220
233
  onClick: D,
221
- onButtonClick: j,
222
- onMenuMouseLeave: n[0] || (n[0] = (i) => h.value = !1)
234
+ onButtonClick: K,
235
+ onMenuMouseLeave: n[0] || (n[0] = (i) => f.value = !1)
223
236
  }, {
224
237
  default: S(() => [...n[2] || (n[2] = [
225
- a("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
238
+ r("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
226
239
  ])]),
227
240
  _: 1
228
241
  }, 8, ["actions"])) : l("", !0),
229
- (o(), M(Ct, { to: "body" }, [
230
- c.contextMenuTrigger === "rightClick" && c.chat.actions && y.value ? (o(), M(bt, {
242
+ (o(), T(Ct, { to: "body" }, [
243
+ c.contextMenuTrigger === "rightClick" && c.chat.actions && v.value ? (o(), T(Bt, {
231
244
  key: 0,
232
- id: "context-menu-rightclick-" + T(m),
245
+ id: "context-menu-rightclick-" + M(h),
233
246
  actions: c.chat.actions,
234
- "data-theme": T(L)().theme ? T(L)().theme : "light",
247
+ "data-theme": M(L)().theme ? M(L)().theme : "light",
235
248
  onClick: D,
236
- onMouseenter: ut,
237
- onMouseleave: dt
249
+ onMouseenter: mt,
250
+ onMouseleave: ht
238
251
  }, null, 8, ["id", "actions", "data-theme"])) : l("", !0)
239
252
  ])),
240
- a("div", Wt, [
241
- T(Tt).includes(c.chat["lastMessage.status"]) ? (o(), s("div", {
253
+ r("div", Ot, [
254
+ M(Tt).includes(c.chat["lastMessage.status"]) ? (o(), s("div", {
242
255
  key: 0,
243
- class: B(["chat-item__status-message", tt.value])
256
+ class: A(["chat-item__status-message", nt.value])
244
257
  }, [
245
- c.chat["lastMessage.status"] === "pending" ? (o(), s("span", Ot)) : c.chat["lastMessage.status"] === "error" ? (o(), s("span", $t)) : (o(), s(R, { key: 2 }, [
246
- c.chat["lastMessage.status"] !== "sent" ? (o(), s("span", zt)) : l("", !0),
247
- n[3] || (n[3] = a("span", { class: "pi pi-check" }, null, -1))
258
+ c.chat["lastMessage.status"] === "pending" ? (o(), s("span", qt)) : c.chat["lastMessage.status"] === "error" ? (o(), s("span", Gt)) : (o(), s($, { key: 2 }, [
259
+ c.chat["lastMessage.status"] !== "sent" ? (o(), s("span", Jt)) : l("", !0),
260
+ n[3] || (n[3] = r("span", { class: "pi pi-check" }, null, -1))
248
261
  ], 64))
249
262
  ], 2)) : l("", !0),
250
- et.value ? (o(), s("div", qt, d(nt.value), 1)) : l("", !0)
263
+ it.value ? (o(), s("div", Kt, m(ot.value), 1)) : l("", !0)
251
264
  ]),
252
- c.chat.countUnread < 1 ? (o(), s("div", jt, [
253
- c.chat.isFixedTop || c.chat.isFixedBottom ? (o(), s("span", Gt)) : l("", !0)
265
+ c.chat.countUnread < 1 ? (o(), s("div", Pt, [
266
+ c.chat.isFixedTop || c.chat.isFixedBottom ? (o(), s("span", Qt)) : l("", !0)
254
267
  ])) : l("", !0)
255
268
  ]),
256
269
  e.showDialogs && c.chat.dialogs ? (o(), s("div", {
257
270
  key: 0,
258
271
  class: "chat-item__dialog-buttons",
259
- onClick: n[1] || (n[1] = (i) => C("expand", e.chat))
272
+ onClick: n[1] || (n[1] = (i) => w("expand", e.chat))
260
273
  }, [
261
- e.showDialogs && !c.chat.dialogsExpanded ? (o(), s("button", Jt, [...n[4] || (n[4] = [
262
- a("span", {
274
+ e.showDialogs && !c.chat.dialogsExpanded ? (o(), s("button", Zt, [...n[4] || (n[4] = [
275
+ r("span", {
263
276
  id: "noSelectButton",
264
277
  class: "pi pi-angle-down"
265
278
  }, null, -1)
266
279
  ])])) : l("", !0),
267
- e.showDialogs && c.chat.dialogsExpanded ? (o(), s("button", Kt, [...n[5] || (n[5] = [
268
- a("span", {
280
+ e.showDialogs && c.chat.dialogsExpanded ? (o(), s("button", jt, [...n[5] || (n[5] = [
281
+ r("span", {
269
282
  id: "noSelectButton",
270
283
  class: "pi pi-angle-up"
271
284
  }, null, -1)
272
285
  ])])) : l("", !0)
273
286
  ])) : l("", !0)
274
287
  ], 34),
275
- e.showDialogs && c.chat.dialogsExpanded ? (o(), s("div", Pt, [
276
- (o(!0), s(R, null, wt(Z(), (i) => (o(), s("div", {
288
+ e.showDialogs && c.chat.dialogsExpanded ? (o(), s("div", te, [
289
+ (o(!0), s($, null, wt(et(), (i) => (o(), s("div", {
277
290
  key: i.dialogId,
278
- class: B(["dialog__item", P(i)]),
279
- onClick: (r) => J(i)
291
+ class: A(["dialog__item", j(i)]),
292
+ onClick: (u) => Q(i)
280
293
  }, [
281
294
  i.icon ? (o(), s("img", {
282
295
  key: 0,
@@ -284,21 +297,21 @@ const Lt = { class: "chat-item__avatar-container" }, Dt = ["src"], Nt = {
284
297
  src: i.icon,
285
298
  height: "16",
286
299
  width: "16"
287
- }, null, 8, Zt)) : (o(), s("span", te)),
288
- a("div", ee, [
289
- a("div", ne, d(i.name), 1),
290
- a("div", ie, d(i["lastActivity.time"]), 1)
300
+ }, null, 8, ne)) : (o(), s("span", ie)),
301
+ r("div", oe, [
302
+ r("div", ce, m(i.name), 1),
303
+ r("div", se, m(i["lastActivity.time"]), 1)
291
304
  ]),
292
305
  i.countUnread > 0 ? (o(), s("div", {
293
306
  key: 2,
294
307
  class: "chat-item__unread",
295
- style: H(i.colorUnread ? { backgroundColor: i.colorUnread } : {})
296
- }, d(i.countUnread > 99 ? "99+" : i.countUnread), 5)) : l("", !0)
297
- ], 10, Qt))), 128))
308
+ style: W(i.colorUnread ? { backgroundColor: i.colorUnread } : {})
309
+ }, m(i.countUnread > 99 ? "99+" : i.countUnread), 5)) : l("", !0)
310
+ ], 10, ee))), 128))
298
311
  ])) : l("", !0)
299
312
  ]));
300
313
  }
301
314
  });
302
315
  export {
303
- Ce as default
316
+ Be as default
304
317
  };
@@ -0,0 +1,24 @@
1
+ import { createElementBlock as e, openBlock as t, createElementVNode as r } from "vue";
2
+ import n from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const s = {}, i = {
4
+ width: "800px",
5
+ height: "800px",
6
+ viewBox: "0 0 24 24",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function c(l, o) {
11
+ return t(), e("svg", i, [...o[0] || (o[0] = [
12
+ r("path", {
13
+ d: "M9 19C9 20.1046 7.65685 21 6 21C4.34315 21 3 20.1046 3 19C3 17.8954 4.34315 17 6 17C7.65685 17 9 17.8954 9 19ZM9 19V5L21 3V17M21 17C21 18.1046 19.6569 19 18 19C16.3431 19 15 18.1046 15 17C15 15.8954 16.3431 15 18 15C19.6569 15 21 15.8954 21 17ZM9 9L21 7",
14
+ stroke: "currentColor",
15
+ "stroke-width": "2",
16
+ "stroke-linecap": "round",
17
+ "stroke-linejoin": "round"
18
+ }, null, -1)
19
+ ])]);
20
+ }
21
+ const C = /* @__PURE__ */ n(s, [["render", c]]);
22
+ export {
23
+ C as default
24
+ };
@@ -0,0 +1,34 @@
1
+ import { createElementBlock as t, openBlock as l, createElementVNode as C } from "vue";
2
+ import o from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const i = {}, r = {
4
+ width: "16",
5
+ height: "16",
6
+ viewBox: "0 0 16 16",
7
+ fill: "none",
8
+ xmlns: "http://www.w3.org/2000/svg"
9
+ };
10
+ function n(c, e) {
11
+ return l(), t("svg", r, [...e[0] || (e[0] = [
12
+ C("g", { "clip-path": "url(#clip0_8058_5201)" }, [
13
+ C("path", {
14
+ "fill-rule": "evenodd",
15
+ "clip-rule": "evenodd",
16
+ d: "M1.88547 0.511894C2.06045 0.337182 2.27055 0.201652 2.50187 0.114284C2.73318 0.0269155 2.98043 -0.0102955 3.22721 0.00511669C3.47399 0.0205289 3.71469 0.0882124 3.93333 0.203682C4.15198 0.319151 4.34359 0.47977 4.49547 0.674894L6.29047 2.98089C6.61947 3.40389 6.73547 3.95489 6.60547 4.47489L6.05847 6.66489C6.03019 6.77832 6.03172 6.89714 6.06291 7.0098C6.0941 7.12247 6.15388 7.22516 6.23647 7.30789L8.69347 9.76489C8.77631 9.84765 8.87916 9.90754 8.99202 9.93873C9.10488 9.96992 9.22389 9.97136 9.33747 9.94289L11.5265 9.39589C11.7831 9.33173 12.0509 9.32675 12.3098 9.38132C12.5686 9.43589 12.8116 9.54859 13.0205 9.71089L15.3265 11.5049C16.1555 12.1499 16.2315 13.3749 15.4895 14.1159L14.4555 15.1499C13.7155 15.8899 12.6095 16.2149 11.5785 15.8519C8.93965 14.9234 6.54374 13.4127 4.56847 11.4319C2.58776 9.45691 1.07708 7.06135 0.148471 4.42289C-0.213529 3.39289 0.111471 2.28589 0.851471 1.54589L1.88547 0.511894ZM15.8545 0.146894C15.901 0.193339 15.938 0.248515 15.9632 0.30926C15.9884 0.370005 16.0014 0.435126 16.0014 0.500894C16.0014 0.566661 15.9884 0.631782 15.9632 0.692527C15.938 0.753273 15.901 0.808448 15.8545 0.854894L11.7075 5.00089H14.5005C14.6331 5.00089 14.7603 5.05357 14.854 5.14734C14.9478 5.24111 15.0005 5.36829 15.0005 5.50089C15.0005 5.6335 14.9478 5.76068 14.854 5.85445C14.7603 5.94822 14.6331 6.00089 14.5005 6.00089H10.5005C10.3679 6.00089 10.2407 5.94822 10.1469 5.85445C10.0531 5.76068 10.0005 5.6335 10.0005 5.50089V1.50089C10.0005 1.36829 10.0531 1.24111 10.1469 1.14734C10.2407 1.05357 10.3679 1.00089 10.5005 1.00089C10.6331 1.00089 10.7603 1.05357 10.854 1.14734C10.9478 1.24111 11.0005 1.36829 11.0005 1.50089V4.29389L15.1465 0.146894C15.1929 0.100331 15.2481 0.0633877 15.3088 0.0381813C15.3696 0.0129748 15.4347 0 15.5005 0C15.5662 0 15.6314 0.0129748 15.6921 0.0381813C15.7528 0.0633877 15.808 0.100331 15.8545 0.146894Z",
17
+ fill: "currentColor"
18
+ })
19
+ ], -1),
20
+ C("defs", null, [
21
+ C("clipPath", { id: "clip0_8058_5201" }, [
22
+ C("rect", {
23
+ width: "16",
24
+ height: "16",
25
+ fill: "white"
26
+ })
27
+ ])
28
+ ], -1)
29
+ ])]);
30
+ }
31
+ const p = /* @__PURE__ */ o(i, [["render", n]]);
32
+ export {
33
+ p as default
34
+ };
@@ -0,0 +1,19 @@
1
+ import { createElementBlock as e, openBlock as r, createStaticVNode as o } from "vue";
2
+ import i from "../../../../_virtual/_plugin-vue_export-helper.js";
3
+ const n = {}, l = {
4
+ width: "16px",
5
+ height: "16px",
6
+ viewBox: "4 2 16 20",
7
+ version: "1.1",
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
10
+ };
11
+ function s(c, t) {
12
+ return r(), e("svg", l, [...t[0] || (t[0] = [
13
+ o('<title>Mic</title><g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Mic"><rect id="Rectangle" stroke="currentColor" stroke-width="2" stroke-linecap="round" x="9" y="3" width="6" height="11" rx="3"></rect><line id="Path" x1="12" y1="18" x2="12" y2="21" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line><line id="Path" x1="8" y1="21" x2="16" y2="21" stroke="currentColor" stroke-width="2" stroke-linecap="round"></line><path id="Path" d="M19,11 C19,14.866 15.866,18 12,18 C8.13401,18 5,14.866 5,11" stroke="currentColor" stroke-width="2" stroke-linecap="round"></path></g></g>', 2)
14
+ ])]);
15
+ }
16
+ const k = /* @__PURE__ */ i(n, [["render", s]]);
17
+ export {
18
+ k as default
19
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./AudioMessage.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a051d273"]]);
4
+ const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c8075a05"]]);
5
5
  export {
6
6
  e as default
7
7
  };