@mobilon-dev/chotto 0.3.65 → 0.3.66
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/2_feed_elements/AudioMessage/AudioMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +412 -342
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue.js +4 -4
- package/dist/components/2_feed_elements/CallMessage/CallMessage.vue2.js +445 -362
- package/dist/themes/dark.css +1 -1
- package/dist/themes/default.css +1 -1
- package/dist/themes/glass.css +1 -1
- package/dist/themes/green.css +1 -1
- package/dist/themes/mobilon1.css +1 -1
- package/dist/types/apps/data/messages.d.ts +235 -10
- package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +1 -1
- package/dist/types/components/2_feed_elements/AudioMessage/styles/types.d.ts +64 -0
- package/dist/types/components/2_feed_elements/CallMessage/CallMessage.vue.d.ts +1 -1
- package/dist/types/components/2_feed_elements/CallMessage/styles/types.d.ts +44 -44
- package/dist/types/components/2_feed_elements/types/messages.d.ts +31 -1
- package/package.json +1 -1
|
@@ -1,40 +1,50 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import "../../../hooks/
|
|
3
|
-
import "../../../hooks/useSearchModel.js";
|
|
4
|
-
import { useTheme as Re } from "../../../hooks/useTheme.js";
|
|
5
|
-
/* empty css */
|
|
6
|
-
/* empty css */
|
|
7
|
-
import { useMessageActions as je } from "../../../hooks/messages/useMessageActions.js";
|
|
1
|
+
import { defineComponent as He, inject as re, computed as m, unref as l, toRefs as Ge, ref as y, watch as ue, createElementBlock as i, openBlock as o, normalizeClass as B, createCommentVNode as p, createElementVNode as r, createVNode as O, withCtx as E, createTextVNode as h, toDisplayString as c, createBlock as L, Fragment as g, withDirectives as Z, vShow as ce, vModelText as Ke, Transition as de, renderList as me, nextTick as Qe } from "vue";
|
|
2
|
+
import { useMessageActions as We } from "../../../hooks/messages/useMessageActions.js";
|
|
8
3
|
import "../../../node_modules/linkifyjs/dist/linkify.js";
|
|
9
4
|
import "../../../node_modules/linkify-string/dist/linkify-string.js";
|
|
10
5
|
import "../../../functions/parseMarkdown.js";
|
|
11
|
-
import { useSubtextTooltip as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
6
|
+
import { useSubtextTooltip as Xe } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
7
|
+
import Ye from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
8
|
+
import ve from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
9
|
+
import et from "./icons/IncomingCallIcon.vue.js";
|
|
10
|
+
import tt from "./icons/OutgoingCallIcon.vue.js";
|
|
11
|
+
const at = ["messageId"], st = ["src"], lt = {
|
|
17
12
|
key: 1,
|
|
18
13
|
class: "call-message__subtext"
|
|
19
|
-
},
|
|
14
|
+
}, nt = { class: "call-message__content" }, ot = { class: "call-message__header-container" }, it = { class: "call-message__title-wrapper" }, rt = {
|
|
20
15
|
key: 0,
|
|
21
16
|
class: "call-message__title"
|
|
22
|
-
},
|
|
17
|
+
}, ut = {
|
|
23
18
|
key: 1,
|
|
24
19
|
class: "call-message__title call-message__title--missed"
|
|
25
|
-
},
|
|
20
|
+
}, ct = {
|
|
26
21
|
key: 0,
|
|
27
22
|
class: "call-message__title"
|
|
28
|
-
},
|
|
23
|
+
}, dt = {
|
|
29
24
|
key: 1,
|
|
30
25
|
class: "call-message__title call-message__title--missed"
|
|
31
|
-
},
|
|
26
|
+
}, mt = {
|
|
32
27
|
key: 0,
|
|
33
28
|
class: "call-message__missed-info"
|
|
34
|
-
},
|
|
29
|
+
}, vt = {
|
|
35
30
|
key: 1,
|
|
36
31
|
class: "call-message__audio-wrapper"
|
|
37
|
-
},
|
|
32
|
+
}, pt = ["src"], ft = { class: "call-message__audio-progress" }, gt = { class: "call-message__audio-progress-bar" }, _t = ["max"], yt = { class: "call-message__audio-time" }, ht = { class: "call-message__info-container" }, Ct = { class: "call-message__actions" }, xt = { class: "call-message__time" }, bt = {
|
|
33
|
+
key: 0,
|
|
34
|
+
class: "call-message__expand-panel"
|
|
35
|
+
}, kt = { class: "call-message__expand-inner" }, wt = {
|
|
36
|
+
key: 0,
|
|
37
|
+
class: "call-message__expand-placeholder"
|
|
38
|
+
}, Tt = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "call-message__expand-plain"
|
|
41
|
+
}, Mt = {
|
|
42
|
+
key: 1,
|
|
43
|
+
class: "call-message__expand-plain"
|
|
44
|
+
}, St = {
|
|
45
|
+
key: 0,
|
|
46
|
+
class: "call-message__expand-placeholder"
|
|
47
|
+
}, Ft = { class: "call-message__expand-close-wrap" }, pe = "Распознаем звонок, пожалуйста подождите...", Ut = /* @__PURE__ */ He({
|
|
38
48
|
__name: "CallMessage",
|
|
39
49
|
props: {
|
|
40
50
|
message: {
|
|
@@ -52,20 +62,99 @@ const qe = ["messageId"], ze = ["src"], He = {
|
|
|
52
62
|
}
|
|
53
63
|
},
|
|
54
64
|
emits: ["action", "reply"],
|
|
55
|
-
setup(
|
|
56
|
-
|
|
57
|
-
if (
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
setup(fe, { emit: ge }) {
|
|
66
|
+
function q(e) {
|
|
67
|
+
if (e == null) return null;
|
|
68
|
+
if (typeof e == "object") return e;
|
|
69
|
+
if (typeof e != "string") return null;
|
|
70
|
+
const t = e.trim();
|
|
71
|
+
if (!t) return null;
|
|
72
|
+
try {
|
|
73
|
+
return JSON.parse(t);
|
|
74
|
+
} catch {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
function _e(e) {
|
|
79
|
+
if (!Number.isFinite(e) || e < 0) return "0:00";
|
|
80
|
+
const t = Math.floor(e), a = Math.floor(t / 60), u = t % 60;
|
|
81
|
+
return `${a}:${u.toString().padStart(2, "0")}`;
|
|
82
|
+
}
|
|
83
|
+
function ye(e) {
|
|
84
|
+
return e === "2" ? "right" : "left";
|
|
85
|
+
}
|
|
86
|
+
function z(e) {
|
|
87
|
+
const t = e.transcript;
|
|
88
|
+
return t && typeof t == "object" && "replies" in t ? t : typeof t == "string" && t.trim() ? q(t) : null;
|
|
89
|
+
}
|
|
90
|
+
function he(e) {
|
|
91
|
+
return e != null && e.length ? e.map((t) => {
|
|
92
|
+
const a = typeof t.timecode == "number" ? t.timecode : Number(t.timecode);
|
|
93
|
+
return {
|
|
94
|
+
time: _e(a),
|
|
95
|
+
text: t.text ?? "",
|
|
96
|
+
position: ye(String(t.user ?? ""))
|
|
97
|
+
};
|
|
98
|
+
}) : [];
|
|
99
|
+
}
|
|
100
|
+
function Ce(e) {
|
|
101
|
+
var a;
|
|
102
|
+
if (e == null) return null;
|
|
103
|
+
const t = String(e).trim();
|
|
104
|
+
if (!t) return null;
|
|
105
|
+
if (t.startsWith("{")) {
|
|
106
|
+
const u = q(t);
|
|
107
|
+
return ((a = u == null ? void 0 : u.summary) == null ? void 0 : a.trim()) || null;
|
|
108
|
+
}
|
|
109
|
+
return t;
|
|
110
|
+
}
|
|
111
|
+
function xe(e) {
|
|
112
|
+
const t = e.callSummary;
|
|
113
|
+
return t == null ? null : typeof t == "object" && t !== null && "summary" in t ? String(t.summary ?? "").trim() || null : typeof t == "string" ? Ce(t) : null;
|
|
114
|
+
}
|
|
115
|
+
const J = re("channels", void 0), H = re("selectedChat", void 0), be = m(() => {
|
|
116
|
+
if (J)
|
|
117
|
+
return l(J);
|
|
118
|
+
}), ke = m(() => {
|
|
119
|
+
if (H)
|
|
120
|
+
return l(H);
|
|
121
|
+
}), D = ge, T = fe, { message: s, applyStyle: we } = Ge(T), M = m(() => {
|
|
122
|
+
const e = s.value;
|
|
123
|
+
return e.url ? e.url : typeof e.recordUrl == "string" ? e.recordUrl : void 0;
|
|
124
|
+
}), {
|
|
125
|
+
isOpenMenu: R,
|
|
126
|
+
buttonMenuVisible: Te,
|
|
127
|
+
showMenu: G,
|
|
66
128
|
hideMenu: V,
|
|
67
|
-
clickAction:
|
|
68
|
-
} =
|
|
129
|
+
clickAction: Me
|
|
130
|
+
} = We(T.message, D), _ = y(null), S = m(() => {
|
|
131
|
+
var u;
|
|
132
|
+
const e = s.value, t = e.transcript;
|
|
133
|
+
if (t && typeof t == "object" && "dialog" in t && ((u = t.dialog) != null && u.length))
|
|
134
|
+
return t.dialog;
|
|
135
|
+
const a = z(e);
|
|
136
|
+
return he(a == null ? void 0 : a.replies);
|
|
137
|
+
}), K = m(() => {
|
|
138
|
+
var u;
|
|
139
|
+
if (S.value.length) return "";
|
|
140
|
+
const e = s.value, t = e.transcript;
|
|
141
|
+
if (t && typeof t == "object" && "text" in t && t.text)
|
|
142
|
+
return t.text;
|
|
143
|
+
const a = z(e);
|
|
144
|
+
return (u = a == null ? void 0 : a.replies) != null && u.length ? a.replies.map((d) => d.text).filter(Boolean).join(`
|
|
145
|
+
`) : "Текст недоступен";
|
|
146
|
+
}), Q = m(() => S.value.length ? [] : K.value.split(/\r?\n+/g).map((e) => e.trim()).filter(Boolean)), W = m(() => {
|
|
147
|
+
var t, a;
|
|
148
|
+
const e = (t = s.value) == null ? void 0 : t.transcript;
|
|
149
|
+
return e ? typeof e == "string" ? e.trim().length > 0 : !!(typeof e == "object" && ("dialog" in e && Array.isArray(e.dialog) && e.dialog.length || "text" in e && typeof e.text == "string" && e.text.trim() || "replies" in e && Array.isArray(e.replies) && ((a = e.replies) != null && a.length))) : !1;
|
|
150
|
+
}), X = m(() => {
|
|
151
|
+
var t;
|
|
152
|
+
const e = (t = s.value) == null ? void 0 : t.callSummary;
|
|
153
|
+
return e ? typeof e == "string" ? e.trim().length > 0 : typeof e == "object" && e !== null && "summary" in e ? String(e.summary ?? "").trim().length > 0 : !1 : !1;
|
|
154
|
+
}), F = y({
|
|
155
|
+
text: !1,
|
|
156
|
+
summary: !1
|
|
157
|
+
}), Se = m(() => xe(s.value) ?? "Резюме недоступно"), n = y(null), b = y(void 0), v = y(!1), C = y(0), f = y(0), x = y(!1), N = y(0), P = [
|
|
69
158
|
{
|
|
70
159
|
text: "1.0x",
|
|
71
160
|
speed: 1
|
|
@@ -82,72 +171,69 @@ const qe = ["messageId"], ze = ["src"], He = {
|
|
|
82
171
|
text: "2.0x",
|
|
83
172
|
speed: 2
|
|
84
173
|
}
|
|
85
|
-
],
|
|
174
|
+
], U = m(() => P[N.value] ?? P[0]), Fe = (e) => {
|
|
86
175
|
if (!e) return;
|
|
87
|
-
const
|
|
88
|
-
if (!
|
|
89
|
-
const
|
|
90
|
-
if (!(Number.isNaN(
|
|
91
|
-
return
|
|
92
|
-
},
|
|
176
|
+
const a = e.trim().match(/^(\d+):([0-5]\d)$/);
|
|
177
|
+
if (!a) return;
|
|
178
|
+
const u = Number(a[1]), d = Number(a[2]);
|
|
179
|
+
if (!(Number.isNaN(u) || Number.isNaN(d)))
|
|
180
|
+
return u * 60 + d;
|
|
181
|
+
}, Y = () => {
|
|
93
182
|
var e;
|
|
94
|
-
|
|
183
|
+
v.value = !1, f.value = 0, C.value = Fe((e = s.value) == null ? void 0 : e.callDuration) ?? 0, x.value = !1, N.value = 0;
|
|
95
184
|
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var e;
|
|
99
|
-
return (e = a.value) == null ? void 0 : e.url;
|
|
100
|
-
},
|
|
185
|
+
Y(), ue(
|
|
186
|
+
M,
|
|
101
187
|
(e, t) => {
|
|
102
|
-
e !== t && (
|
|
188
|
+
e !== t && (Y(), b.value = void 0, n.value && (n.value.pause(), n.value.currentTime = 0, n.value.removeAttribute("src"), n.value.load()));
|
|
103
189
|
}
|
|
104
190
|
);
|
|
105
|
-
const
|
|
106
|
-
const t = Math.floor(e / 60),
|
|
107
|
-
return `${t.toString().padStart(2, "0")}:${
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
if (!(!
|
|
111
|
-
if (
|
|
112
|
-
|
|
191
|
+
const ee = (e) => {
|
|
192
|
+
const t = Math.floor(e / 60), a = Math.floor(e % 60);
|
|
193
|
+
return `${t.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
|
|
194
|
+
}, Ne = m(() => ee(f.value)), Ie = m(() => ee(C.value)), te = async () => {
|
|
195
|
+
const e = M.value;
|
|
196
|
+
if (!(!n.value || !e))
|
|
197
|
+
if (v.value)
|
|
198
|
+
n.value.pause(), v.value = !1;
|
|
113
199
|
else
|
|
114
200
|
try {
|
|
115
|
-
b.value || (b.value =
|
|
201
|
+
b.value || (b.value = e, await Qe(), n.value.load()), await n.value.play(), v.value = !0;
|
|
116
202
|
} catch (t) {
|
|
117
|
-
console.error("Не удалось воспроизвести запись звонка", t),
|
|
203
|
+
console.error("Не удалось воспроизвести запись звонка", t), v.value = !1;
|
|
118
204
|
}
|
|
119
|
-
},
|
|
120
|
-
N.value = (N.value + 1) %
|
|
205
|
+
}, Ae = () => {
|
|
206
|
+
N.value = (N.value + 1) % P.length, n.value && (n.value.playbackRate = U.value.speed);
|
|
121
207
|
};
|
|
122
|
-
|
|
123
|
-
() =>
|
|
208
|
+
ue(
|
|
209
|
+
() => f.value,
|
|
124
210
|
() => {
|
|
125
|
-
|
|
211
|
+
n.value && x.value && (n.value.duration !== 1 / 0 && !Number.isNaN(n.value.duration) && (n.value.currentTime = f.value), Math.abs(f.value - C.value) < 0.1 && (v.value = !1));
|
|
126
212
|
}
|
|
127
213
|
);
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
},
|
|
131
|
-
if (!
|
|
132
|
-
const e =
|
|
133
|
-
if (
|
|
214
|
+
const ae = () => {
|
|
215
|
+
n.value && x.value && n.value.duration !== 1 / 0 && !Number.isNaN(n.value.duration) && (n.value.currentTime = f.value), x.value = !1;
|
|
216
|
+
}, $e = () => {
|
|
217
|
+
if (!n.value) return;
|
|
218
|
+
const e = n.value;
|
|
219
|
+
if (C.value = 0, f.value = e.currentTime || 0, e.duration === 1 / 0 || Number.isNaN(e.duration)) {
|
|
134
220
|
e.currentTime = 1e101;
|
|
135
221
|
const t = () => {
|
|
136
|
-
|
|
222
|
+
n.value && (C.value = n.value.duration || 0, f.value = 0, n.value.currentTime = 0);
|
|
137
223
|
};
|
|
138
224
|
e.addEventListener("timeupdate", t, { once: !0 });
|
|
139
225
|
} else
|
|
140
|
-
|
|
141
|
-
e.playbackRate =
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
},
|
|
145
|
-
|
|
146
|
-
},
|
|
147
|
-
console.error("Не удалось загрузить запись звонка"),
|
|
148
|
-
}, I =
|
|
226
|
+
C.value = e.duration || 0;
|
|
227
|
+
e.playbackRate = U.value.speed;
|
|
228
|
+
}, je = () => {
|
|
229
|
+
n.value && (x.value || (f.value = n.value.currentTime), n.value.ended && v.value && (v.value = !1));
|
|
230
|
+
}, Ee = () => {
|
|
231
|
+
v.value = !1;
|
|
232
|
+
}, Le = () => {
|
|
233
|
+
console.error("Не удалось загрузить запись звонка"), v.value = !1, b.value = void 0, n.value && (n.value.pause(), n.value.currentTime = 0, n.value.removeAttribute("src"), n.value.load());
|
|
234
|
+
}, I = m(() => {
|
|
149
235
|
var e;
|
|
150
|
-
switch ((e =
|
|
236
|
+
switch ((e = s.value) == null ? void 0 : e.direction) {
|
|
151
237
|
case "incoming":
|
|
152
238
|
return "Входящий";
|
|
153
239
|
case "outgoing":
|
|
@@ -155,20 +241,10 @@ const qe = ["messageId"], ze = ["src"], He = {
|
|
|
155
241
|
default:
|
|
156
242
|
return "Звонок";
|
|
157
243
|
}
|
|
158
|
-
}),
|
|
159
|
-
var
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
return "к";
|
|
163
|
-
case "outgoing":
|
|
164
|
-
return "на";
|
|
165
|
-
default:
|
|
166
|
-
return "к";
|
|
167
|
-
}
|
|
168
|
-
}), K = p(() => {
|
|
169
|
-
var t, r;
|
|
170
|
-
const e = (t = a.value) == null ? void 0 : t.isMissedCall;
|
|
171
|
-
switch ((r = a.value) == null ? void 0 : r.direction) {
|
|
244
|
+
}), se = m(() => {
|
|
245
|
+
var t, a;
|
|
246
|
+
const e = (t = s.value) == null ? void 0 : t.isMissedCall;
|
|
247
|
+
switch ((a = s.value) == null ? void 0 : a.direction) {
|
|
172
248
|
case "incoming":
|
|
173
249
|
return e ? "#F84932" : "#00AC47";
|
|
174
250
|
case "outgoing":
|
|
@@ -176,48 +252,52 @@ const qe = ["messageId"], ze = ["src"], He = {
|
|
|
176
252
|
default:
|
|
177
253
|
return e ? "#5F5F5F" : "#00AC47";
|
|
178
254
|
}
|
|
179
|
-
}),
|
|
255
|
+
}), De = m(() => {
|
|
180
256
|
var e;
|
|
181
|
-
return ((e =
|
|
182
|
-
}),
|
|
183
|
-
var
|
|
184
|
-
const e =
|
|
185
|
-
if (!(e != null && e.dialogId) || !t || !
|
|
257
|
+
return ((e = s.value) == null ? void 0 : e.direction) === "outgoing" ? "Без ответа" : "Пропущенный";
|
|
258
|
+
}), le = m(() => {
|
|
259
|
+
var A;
|
|
260
|
+
const e = s.value, t = be.value, a = ke.value;
|
|
261
|
+
if (!(e != null && e.dialogId) || !t || !a)
|
|
186
262
|
return null;
|
|
187
|
-
const
|
|
188
|
-
if (!(
|
|
263
|
+
const u = (A = a.dialogs) == null ? void 0 : A.find((k) => k.dialogId === e.dialogId);
|
|
264
|
+
if (!(u != null && u.channelId))
|
|
189
265
|
return null;
|
|
190
|
-
const d = t.find((
|
|
266
|
+
const d = t.find((k) => k.channelId === u.channelId);
|
|
191
267
|
return (d == null ? void 0 : d.title) || null;
|
|
192
|
-
}),
|
|
193
|
-
textDialog: "textDialog",
|
|
268
|
+
}), Re = Xe(() => T.message, () => T.subtextTooltipData), Ve = {
|
|
194
269
|
message: "message"
|
|
195
270
|
};
|
|
196
|
-
function
|
|
197
|
-
const
|
|
271
|
+
function Pe(e, t) {
|
|
272
|
+
const a = e.position;
|
|
198
273
|
switch (t) {
|
|
199
|
-
case "textDialog":
|
|
200
|
-
return r === "left" ? "call-message__text-dialog-left" : "call-message__text-dialog-right";
|
|
201
274
|
case "message":
|
|
202
|
-
return
|
|
275
|
+
return a === "left" ? "call-message__left" : "call-message__right";
|
|
203
276
|
default:
|
|
204
277
|
return "";
|
|
205
278
|
}
|
|
206
279
|
}
|
|
207
|
-
const
|
|
280
|
+
const Ue = () => {
|
|
208
281
|
alert("Перезвонить");
|
|
209
|
-
},
|
|
210
|
-
|
|
211
|
-
|
|
282
|
+
}, Be = () => {
|
|
283
|
+
const e = _.value === "text" ? null : "text";
|
|
284
|
+
_.value = e, e === "text" && !W.value && !F.value.text && (F.value.text = !0, D("action", { action: "fetchTranscript", messageId: s.value.messageId }));
|
|
285
|
+
}, Oe = () => {
|
|
286
|
+
const e = _.value === "summary" ? null : "summary";
|
|
287
|
+
_.value = e, e === "summary" && !X.value && !F.value.summary && (F.value.summary = !0, D("action", { action: "fetchCallSummary", messageId: s.value.messageId }));
|
|
288
|
+
}, Ze = async () => {
|
|
289
|
+
var t, a, u;
|
|
290
|
+
const e = M.value;
|
|
291
|
+
if (e)
|
|
212
292
|
try {
|
|
213
|
-
const
|
|
293
|
+
const d = await fetch(e, {
|
|
214
294
|
headers: {
|
|
215
295
|
Accept: "audio/*"
|
|
216
296
|
}
|
|
217
297
|
});
|
|
218
|
-
if (!
|
|
219
|
-
throw new Error(`HTTP error! status: ${
|
|
220
|
-
const
|
|
298
|
+
if (!d.ok)
|
|
299
|
+
throw new Error(`HTTP error! status: ${d.status}`);
|
|
300
|
+
const A = d.headers.get("content-type") || "", k = await d.blob(), $ = ((a = (t = e.split(".").pop()) == null ? void 0 : t.split("?")[0]) == null ? void 0 : a.toLowerCase()) || "", ze = {
|
|
221
301
|
"audio/mpeg": "mp3",
|
|
222
302
|
"audio/mp3": "mp3",
|
|
223
303
|
"audio/wav": "wav",
|
|
@@ -228,262 +308,265 @@ const qe = ["messageId"], ze = ["src"], He = {
|
|
|
228
308
|
"audio/flac": "flac",
|
|
229
309
|
"audio/m4a": "m4a",
|
|
230
310
|
"audio/x-m4a": "m4a",
|
|
231
|
-
"application/octet-stream":
|
|
232
|
-
},
|
|
233
|
-
|
|
234
|
-
} catch (
|
|
235
|
-
console.error("Ошибка при скачивании аудио звонка:",
|
|
311
|
+
"application/octet-stream": $ || "mp3"
|
|
312
|
+
}, ne = $ && ["mp3", "wav", "ogg", "webm", "aac", "flac", "m4a"].includes($) ? $ : ze[A] || "mp3", oe = e.split("/"), j = decodeURIComponent(((u = oe[oe.length - 1]) == null ? void 0 : u.split("?")[0]) || ""), Je = j ? j.includes(".") ? j : `${j}.${ne}` : `call-${s.value.messageId}.${ne}`, ie = window.URL.createObjectURL(k), w = document.createElement("a");
|
|
313
|
+
w.href = ie, w.download = Je, document.body.appendChild(w), w.click(), document.body.removeChild(w), window.URL.revokeObjectURL(ie);
|
|
314
|
+
} catch (d) {
|
|
315
|
+
console.error("Ошибка при скачивании аудио звонка:", d), e && window.open(e, "_blank");
|
|
236
316
|
}
|
|
237
|
-
},
|
|
238
|
-
e.action === "download" ? (
|
|
317
|
+
}, qe = (e) => {
|
|
318
|
+
e.action === "download" ? (Ze(), V()) : Me(e);
|
|
239
319
|
};
|
|
240
|
-
return (e, t) => {
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
l(
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
s("span", We, u(S.value) + " " + u(l(a).callParticipant), 1)
|
|
296
|
-
], 64)) : (n(), c(w, { key: 1 }, [
|
|
297
|
-
_(" звонок ")
|
|
298
|
-
], 64))
|
|
299
|
-
])) : (n(), c("span", Qe, [
|
|
300
|
-
_(u(I.value) + " звонок ", 1),
|
|
301
|
-
s("span", Xe, u(S.value) + " " + u(l(a).callParticipant), 1)
|
|
302
|
-
]))
|
|
303
|
-
]),
|
|
304
|
-
_: 1
|
|
305
|
-
}, 8, ["text"])) : (n(), c(w, { key: 3 }, [
|
|
306
|
-
l(a).isMissedCall ? (n(), c("span", at, [
|
|
307
|
-
_(u(I.value) + " ", 1),
|
|
308
|
-
l(a).direction !== "incoming" ? (n(), c(w, { key: 0 }, [
|
|
309
|
-
t[9] || (t[9] = _(" звонок ", -1)),
|
|
310
|
-
s("span", lt, u(S.value) + " " + u(l(a).callParticipant), 1)
|
|
311
|
-
], 64)) : (n(), c(w, { key: 1 }, [
|
|
312
|
-
_(" звонок ")
|
|
320
|
+
return (e, t) => (o(), i("div", {
|
|
321
|
+
class: B([
|
|
322
|
+
Pe(l(s), Ve.message),
|
|
323
|
+
l(we)(l(s))
|
|
324
|
+
]),
|
|
325
|
+
messageId: l(s).messageId,
|
|
326
|
+
onMouseenter: t[5] || (t[5] = //@ts-ignore
|
|
327
|
+
(...a) => l(G) && l(G)(...a)),
|
|
328
|
+
onMouseleave: t[6] || (t[6] = //@ts-ignore
|
|
329
|
+
(...a) => l(V) && l(V)(...a))
|
|
330
|
+
}, [
|
|
331
|
+
l(s).avatar ? (o(), i("img", {
|
|
332
|
+
key: 0,
|
|
333
|
+
class: "call-message__avatar",
|
|
334
|
+
src: l(s).avatar,
|
|
335
|
+
height: "32",
|
|
336
|
+
width: "32"
|
|
337
|
+
}, null, 8, st)) : p("", !0),
|
|
338
|
+
l(s).subText ? (o(), i("p", lt, [
|
|
339
|
+
O(ve, {
|
|
340
|
+
text: l(Re),
|
|
341
|
+
position: l(s).position === "left" ? "right" : "left",
|
|
342
|
+
offset: 8
|
|
343
|
+
}, {
|
|
344
|
+
default: E(() => [
|
|
345
|
+
h(c(l(s).subText), 1)
|
|
346
|
+
]),
|
|
347
|
+
_: 1
|
|
348
|
+
}, 8, ["text", "position"])
|
|
349
|
+
])) : p("", !0),
|
|
350
|
+
r("div", nt, [
|
|
351
|
+
r("div", ot, [
|
|
352
|
+
r("div", it, [
|
|
353
|
+
l(s).direction === "incoming" || !l(s).direction ? (o(), L(et, {
|
|
354
|
+
key: 0,
|
|
355
|
+
class: "call-message__direction-icon",
|
|
356
|
+
color: se.value
|
|
357
|
+
}, null, 8, ["color"])) : (o(), L(tt, {
|
|
358
|
+
key: 1,
|
|
359
|
+
class: "call-message__direction-icon",
|
|
360
|
+
color: se.value
|
|
361
|
+
}, null, 8, ["color"])),
|
|
362
|
+
le.value ? (o(), L(ve, {
|
|
363
|
+
key: 2,
|
|
364
|
+
text: le.value,
|
|
365
|
+
position: "top",
|
|
366
|
+
offset: 8
|
|
367
|
+
}, {
|
|
368
|
+
default: E(() => [
|
|
369
|
+
l(s).isMissedCall ? (o(), i("span", ut, [
|
|
370
|
+
h(c(I.value) + " ", 1),
|
|
371
|
+
l(s).direction !== "incoming" ? (o(), i(g, { key: 0 }, [
|
|
372
|
+
h(" звонок ")
|
|
373
|
+
], 64)) : (o(), i(g, { key: 1 }, [
|
|
374
|
+
h(" звонок ")
|
|
313
375
|
], 64))
|
|
314
|
-
])) : (
|
|
315
|
-
_(u(I.value) + " звонок ", 1),
|
|
316
|
-
s("span", tt, u(S.value) + " " + u(l(a).callParticipant), 1)
|
|
317
|
-
]))
|
|
318
|
-
], 64))
|
|
319
|
-
]),
|
|
320
|
-
l(a).isMissedCall ? (n(), c("p", st, u(ke.value) + ": " + u(l(a).callAttemptDuration), 1)) : C("", !0),
|
|
321
|
-
l(a).url && !l(a).isMissedCall ? (n(), c("div", ot, [
|
|
322
|
-
s("audio", {
|
|
323
|
-
ref_key: "player",
|
|
324
|
-
ref: o,
|
|
325
|
-
src: b.value,
|
|
326
|
-
type: "audio/webm",
|
|
327
|
-
onLoadedmetadata: ye,
|
|
328
|
-
onTimeupdate: we,
|
|
329
|
-
onEnded: be,
|
|
330
|
-
onError: xe
|
|
331
|
-
}, null, 40, nt),
|
|
332
|
-
B(s("button", {
|
|
333
|
-
class: "call-message__audio-play",
|
|
334
|
-
type: "button",
|
|
335
|
-
onClick: G
|
|
336
|
-
}, [...t[10] || (t[10] = [
|
|
337
|
-
s("div", { class: "call-message__audio-play-icon" }, [
|
|
338
|
-
s("svg", {
|
|
339
|
-
width: "20",
|
|
340
|
-
height: "23",
|
|
341
|
-
viewBox: "0 0 20 23",
|
|
342
|
-
fill: "none",
|
|
343
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
344
|
-
}, [
|
|
345
|
-
s("path", {
|
|
346
|
-
d: "M18.99 12.9934L3.0825 22.2234C1.7325 23.0059 0 22.0584 0 20.4809V2.02087C0 0.44587 1.73 -0.50413 3.0825 0.28087L18.99 9.51087C19.2971 9.68618 19.5524 9.93959 19.7299 10.2454C19.9075 10.5512 20.001 10.8985 20.001 11.2521C20.001 11.6057 19.9075 11.953 19.7299 12.2589C19.5524 12.5647 19.2971 12.8181 18.99 12.9934Z",
|
|
347
|
-
fill: "#5F5F5F"
|
|
348
|
-
})
|
|
349
|
-
])
|
|
350
|
-
], -1)
|
|
351
|
-
])], 512), [
|
|
352
|
-
[se, !m.value]
|
|
353
|
-
]),
|
|
354
|
-
B(s("button", {
|
|
355
|
-
class: "call-message__audio-pause",
|
|
356
|
-
type: "button",
|
|
357
|
-
onClick: G
|
|
358
|
-
}, [...t[11] || (t[11] = [
|
|
359
|
-
s("div", { class: "call-message__audio-pause-icon" }, [
|
|
360
|
-
s("svg", {
|
|
361
|
-
width: "20",
|
|
362
|
-
height: "23",
|
|
363
|
-
viewBox: "0 0 20 23",
|
|
364
|
-
fill: "none",
|
|
365
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
366
|
-
}, [
|
|
367
|
-
s("path", {
|
|
368
|
-
d: "M3.75 0C4.74456 0 5.69839 0.395088 6.40165 1.09835C7.10491 1.80161 7.5 2.75544 7.5 3.75V18.75C7.5 19.7446 7.10491 20.6984 6.40165 21.4017C5.69839 22.1049 4.74456 22.5 3.75 22.5C2.75544 22.5 1.80161 22.1049 1.09835 21.4017C0.395088 20.6984 0 19.7446 0 18.75V3.75C0 2.75544 0.395088 1.80161 1.09835 1.09835C1.80161 0.395088 2.75544 0 3.75 0ZM16.25 0C17.2446 0 18.1984 0.395088 18.9017 1.09835C19.6049 1.80161 20 2.75544 20 3.75V18.75C20 19.7446 19.6049 20.6984 18.9017 21.4017C18.1984 22.1049 17.2446 22.5 16.25 22.5C15.2554 22.5 14.3016 22.1049 13.5983 21.4017C12.8951 20.6984 12.5 19.7446 12.5 18.75V3.75C12.5 2.75544 12.8951 1.80161 13.5983 1.09835C14.3016 0.395088 15.2554 0 16.25 0Z",
|
|
369
|
-
fill: "#5F5F5F"
|
|
370
|
-
})
|
|
371
|
-
])
|
|
372
|
-
], -1)
|
|
373
|
-
])], 512), [
|
|
374
|
-
[se, m.value]
|
|
376
|
+
])) : (o(), i("span", rt, c(I.value) + " звонок ", 1))
|
|
375
377
|
]),
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
378
|
+
_: 1
|
|
379
|
+
}, 8, ["text"])) : (o(), i(g, { key: 3 }, [
|
|
380
|
+
l(s).isMissedCall ? (o(), i("span", dt, [
|
|
381
|
+
h(c(I.value) + " ", 1),
|
|
382
|
+
l(s).direction !== "incoming" ? (o(), i(g, { key: 0 }, [
|
|
383
|
+
h(" звонок ")
|
|
384
|
+
], 64)) : (o(), i(g, { key: 1 }, [
|
|
385
|
+
h(" звонок ")
|
|
386
|
+
], 64))
|
|
387
|
+
])) : (o(), i("span", ct, c(I.value) + " звонок ", 1))
|
|
388
|
+
], 64))
|
|
389
|
+
]),
|
|
390
|
+
l(s).isMissedCall ? (o(), i("p", mt, c(De.value) + ": " + c(l(s).callAttemptDuration), 1)) : p("", !0),
|
|
391
|
+
M.value && !l(s).isMissedCall ? (o(), i("div", vt, [
|
|
392
|
+
r("audio", {
|
|
393
|
+
ref_key: "player",
|
|
394
|
+
ref: n,
|
|
395
|
+
src: b.value,
|
|
396
|
+
type: "audio/webm",
|
|
397
|
+
onLoadedmetadata: $e,
|
|
398
|
+
onTimeupdate: je,
|
|
399
|
+
onEnded: Ee,
|
|
400
|
+
onError: Le
|
|
401
|
+
}, null, 40, pt),
|
|
402
|
+
Z(r("button", {
|
|
403
|
+
class: "call-message__audio-play",
|
|
404
|
+
type: "button",
|
|
405
|
+
onClick: te
|
|
406
|
+
}, [...t[7] || (t[7] = [
|
|
407
|
+
r("div", { class: "call-message__audio-play-icon" }, [
|
|
408
|
+
r("svg", {
|
|
409
|
+
width: "20",
|
|
410
|
+
height: "23",
|
|
411
|
+
viewBox: "0 0 20 23",
|
|
412
|
+
fill: "none",
|
|
413
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
414
|
+
}, [
|
|
415
|
+
r("path", {
|
|
416
|
+
d: "M18.99 12.9934L3.0825 22.2234C1.7325 23.0059 0 22.0584 0 20.4809V2.02087C0 0.44587 1.73 -0.50413 3.0825 0.28087L18.99 9.51087C19.2971 9.68618 19.5524 9.93959 19.7299 10.2454C19.9075 10.5512 20.001 10.8985 20.001 11.2521C20.001 11.6057 19.9075 11.953 19.7299 12.2589C19.5524 12.5647 19.2971 12.8181 18.99 12.9934Z",
|
|
417
|
+
fill: "#5F5F5F"
|
|
418
|
+
})
|
|
401
419
|
])
|
|
420
|
+
], -1)
|
|
421
|
+
])], 512), [
|
|
422
|
+
[ce, !v.value]
|
|
423
|
+
]),
|
|
424
|
+
Z(r("button", {
|
|
425
|
+
class: "call-message__audio-pause",
|
|
426
|
+
type: "button",
|
|
427
|
+
onClick: te
|
|
428
|
+
}, [...t[8] || (t[8] = [
|
|
429
|
+
r("div", { class: "call-message__audio-pause-icon" }, [
|
|
430
|
+
r("svg", {
|
|
431
|
+
width: "20",
|
|
432
|
+
height: "23",
|
|
433
|
+
viewBox: "0 0 20 23",
|
|
434
|
+
fill: "none",
|
|
435
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
436
|
+
}, [
|
|
437
|
+
r("path", {
|
|
438
|
+
d: "M3.75 0C4.74456 0 5.69839 0.395088 6.40165 1.09835C7.10491 1.80161 7.5 2.75544 7.5 3.75V18.75C7.5 19.7446 7.10491 20.6984 6.40165 21.4017C5.69839 22.1049 4.74456 22.5 3.75 22.5C2.75544 22.5 1.80161 22.1049 1.09835 21.4017C0.395088 20.6984 0 19.7446 0 18.75V3.75C0 2.75544 0.395088 1.80161 1.09835 1.09835C1.80161 0.395088 2.75544 0 3.75 0ZM16.25 0C17.2446 0 18.1984 0.395088 18.9017 1.09835C19.6049 1.80161 20 2.75544 20 3.75V18.75C20 19.7446 19.6049 20.6984 18.9017 21.4017C18.1984 22.1049 17.2446 22.5 16.25 22.5C15.2554 22.5 14.3016 22.1049 13.5983 21.4017C12.8951 20.6984 12.5 19.7446 12.5 18.75V3.75C12.5 2.75544 12.8951 1.80161 13.5983 1.09835C14.3016 0.395088 15.2554 0 16.25 0Z",
|
|
439
|
+
fill: "#5F5F5F"
|
|
440
|
+
})
|
|
441
|
+
])
|
|
442
|
+
], -1)
|
|
443
|
+
])], 512), [
|
|
444
|
+
[ce, v.value]
|
|
445
|
+
]),
|
|
446
|
+
r("div", ft, [
|
|
447
|
+
r("div", gt, [
|
|
448
|
+
Z(r("input", {
|
|
449
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => f.value = a),
|
|
450
|
+
class: "call-message__audio-slider",
|
|
451
|
+
type: "range",
|
|
452
|
+
min: 0,
|
|
453
|
+
max: C.value,
|
|
454
|
+
step: "0.1",
|
|
455
|
+
onMousedown: t[1] || (t[1] = (a) => x.value = !0),
|
|
456
|
+
onMouseup: ae,
|
|
457
|
+
onTouchstartPassive: t[2] || (t[2] = (a) => x.value = !0),
|
|
458
|
+
onTouchendPassive: ae
|
|
459
|
+
}, null, 40, _t), [
|
|
460
|
+
[Ke, f.value]
|
|
461
|
+
]),
|
|
462
|
+
r("button", {
|
|
463
|
+
type: "button",
|
|
464
|
+
class: "call-message__audio-speed-btn",
|
|
465
|
+
onClick: Ae
|
|
466
|
+
}, c(U.value.text), 1)
|
|
467
|
+
]),
|
|
468
|
+
r("div", yt, [
|
|
469
|
+
r("span", null, c(Ne.value), 1),
|
|
470
|
+
r("span", null, c(Ie.value), 1)
|
|
402
471
|
])
|
|
403
|
-
])
|
|
404
|
-
]),
|
|
405
|
-
|
|
406
|
-
|
|
472
|
+
])
|
|
473
|
+
])) : p("", !0)
|
|
474
|
+
]),
|
|
475
|
+
r("div", ht, [
|
|
476
|
+
r("div", Ct, [
|
|
477
|
+
l(s).isMissedCall ? p("", !0) : (o(), i("button", {
|
|
478
|
+
key: 0,
|
|
479
|
+
class: B([
|
|
480
|
+
"call-message__call-button",
|
|
481
|
+
{ "call-message__call-button--active": _.value === "text" }
|
|
482
|
+
]),
|
|
483
|
+
type: "button",
|
|
484
|
+
onClick: Be
|
|
485
|
+
}, " Текст ", 2)),
|
|
486
|
+
l(s).isMissedCall ? p("", !0) : (o(), i("button", {
|
|
487
|
+
key: 1,
|
|
488
|
+
class: B([
|
|
489
|
+
"call-message__call-button",
|
|
490
|
+
{ "call-message__call-button--active": _.value === "summary" }
|
|
491
|
+
]),
|
|
492
|
+
type: "button",
|
|
493
|
+
onClick: Oe
|
|
494
|
+
}, " Резюме ", 2)),
|
|
495
|
+
r("button", {
|
|
407
496
|
class: "call-message__call-button",
|
|
408
497
|
type: "button",
|
|
409
|
-
onClick:
|
|
410
|
-
}, "
|
|
411
|
-
s("span", mt, u(l(a).time), 1)
|
|
498
|
+
onClick: Ue
|
|
499
|
+
}, " Перезвонить ")
|
|
412
500
|
]),
|
|
413
|
-
(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
s("span", null, [
|
|
465
|
-
s("i", { class: "pi pi-times" })
|
|
466
|
-
], -1)
|
|
467
|
-
])]),
|
|
468
|
-
(n(!0), c(w, null, Le((i = l(a).transcript) == null ? void 0 : i.dialog, (d) => (n(), c("div", {
|
|
469
|
-
key: d.time,
|
|
470
|
-
class: le(Y(d, X.textDialog))
|
|
471
|
-
}, [
|
|
472
|
-
s("p", null, u(d.text), 1),
|
|
473
|
-
s("span", null, u(d.time), 1)
|
|
474
|
-
], 2))), 128))
|
|
475
|
-
])
|
|
476
|
-
], 8, vt)) : C("", !0)
|
|
477
|
-
];
|
|
478
|
-
}),
|
|
479
|
-
_: 1
|
|
501
|
+
r("span", xt, c(l(s).time), 1)
|
|
502
|
+
]),
|
|
503
|
+
O(de, { name: "call-message-expand" }, {
|
|
504
|
+
default: E(() => [
|
|
505
|
+
_.value ? (o(), i("div", bt, [
|
|
506
|
+
r("div", kt, [
|
|
507
|
+
_.value === "text" ? (o(), i(g, { key: 0 }, [
|
|
508
|
+
W.value ? p("", !0) : (o(), i("p", wt, c(pe))),
|
|
509
|
+
(o(!0), i(g, null, me(S.value, (a, u) => (o(), i("p", {
|
|
510
|
+
key: `tr-${u}`,
|
|
511
|
+
class: "call-message__expand-line"
|
|
512
|
+
}, c(a.text), 1))), 128)),
|
|
513
|
+
S.value.length ? p("", !0) : (o(), i(g, { key: 1 }, [
|
|
514
|
+
(o(!0), i(g, null, me(Q.value, (a, u) => (o(), i("p", {
|
|
515
|
+
key: `tr-fallback-${u}`,
|
|
516
|
+
class: "call-message__expand-line"
|
|
517
|
+
}, c(a), 1))), 128)),
|
|
518
|
+
Q.value.length ? p("", !0) : (o(), i("p", Tt, c(K.value), 1))
|
|
519
|
+
], 64))
|
|
520
|
+
], 64)) : (o(), i("p", Mt, [
|
|
521
|
+
X.value ? (o(), i(g, { key: 1 }, [
|
|
522
|
+
h(c(Se.value), 1)
|
|
523
|
+
], 64)) : (o(), i("span", St, c(pe)))
|
|
524
|
+
]))
|
|
525
|
+
]),
|
|
526
|
+
r("div", Ft, [
|
|
527
|
+
r("button", {
|
|
528
|
+
type: "button",
|
|
529
|
+
class: "call-message__expand-close",
|
|
530
|
+
onClick: t[3] || (t[3] = (a) => _.value = null)
|
|
531
|
+
}, " Закрыть ")
|
|
532
|
+
])
|
|
533
|
+
])) : p("", !0)
|
|
534
|
+
]),
|
|
535
|
+
_: 1
|
|
536
|
+
}),
|
|
537
|
+
l(Te) && l(s).actions ? (o(), i("button", {
|
|
538
|
+
key: 0,
|
|
539
|
+
class: "call-message__menu-button",
|
|
540
|
+
onClick: t[4] || (t[4] = (a) => R.value = !l(R))
|
|
541
|
+
}, [...t[9] || (t[9] = [
|
|
542
|
+
r("svg", {
|
|
543
|
+
width: "4",
|
|
544
|
+
height: "17",
|
|
545
|
+
viewBox: "0 0 4 17",
|
|
546
|
+
fill: "none",
|
|
547
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
548
|
+
}, [
|
|
549
|
+
r("path", {
|
|
550
|
+
d: "M3.75 14.375C3.75 14.8723 3.55246 15.3492 3.20083 15.7008C2.84919 16.0525 2.37228 16.25 1.875 16.25C1.37772 16.25 0.900805 16.0525 0.549175 15.7008C0.197544 15.3492 0 14.8723 0 14.375C0 13.8777 0.197544 13.4008 0.549175 13.0492C0.900805 12.6975 1.37772 12.5 1.875 12.5C2.37228 12.5 2.84919 12.6975 3.20083 13.0492C3.55246 13.4008 3.75 13.8777 3.75 14.375ZM3.75 8.125C3.75 8.62228 3.55246 9.09919 3.20083 9.45083C2.84919 9.80246 2.37228 10 1.875 10C1.37772 10 0.900805 9.80246 0.549175 9.45083C0.197544 9.09919 0 8.62228 0 8.125C0 7.62772 0.197544 7.15081 0.549175 6.79917C0.900805 6.44754 1.37772 6.25 1.875 6.25C2.37228 6.25 2.84919 6.44754 3.20083 6.79917C3.55246 7.15081 3.75 7.62772 3.75 8.125ZM3.75 1.875C3.75 2.37228 3.55246 2.84919 3.20083 3.20083C2.84919 3.55246 2.37228 3.75 1.875 3.75C1.37772 3.75 0.900805 3.55246 0.549175 3.20083C0.197544 2.84919 0 2.37228 0 1.875C0 1.37772 0.197544 0.900806 0.549175 0.549175C0.900805 0.197544 1.37772 0 1.875 0C2.37228 0 2.84919 0.197544 3.20083 0.549175C3.55246 0.900806 3.75 1.37772 3.75 1.875Z",
|
|
551
|
+
fill: "#5F5F5F"
|
|
480
552
|
})
|
|
481
|
-
])
|
|
482
|
-
])
|
|
483
|
-
|
|
484
|
-
|
|
553
|
+
], -1)
|
|
554
|
+
])])) : p("", !0),
|
|
555
|
+
O(de, null, {
|
|
556
|
+
default: E(() => [
|
|
557
|
+
l(R) && l(s).actions ? (o(), L(Ye, {
|
|
558
|
+
key: 0,
|
|
559
|
+
class: "call-message__context-menu",
|
|
560
|
+
actions: l(s).actions,
|
|
561
|
+
onClick: qe
|
|
562
|
+
}, null, 8, ["actions"])) : p("", !0)
|
|
563
|
+
]),
|
|
564
|
+
_: 1
|
|
565
|
+
})
|
|
566
|
+
])
|
|
567
|
+
], 42, at));
|
|
485
568
|
}
|
|
486
569
|
});
|
|
487
570
|
export {
|
|
488
|
-
|
|
571
|
+
Ut as default
|
|
489
572
|
};
|