@mobilon-dev/chotto 0.3.106 → 0.3.107
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 +2 -2
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +295 -268
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +185 -158
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +227 -200
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue.js +2 -2
- package/dist/components/2_feed_elements/MessageReactions/MessageReactions.vue2.js +62 -245
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.js +7 -0
- package/dist/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue2.js +231 -0
- package/dist/components/2_feed_elements/MessageReactions/composables/usePositioning.js +25 -25
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +209 -182
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +190 -164
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +208 -181
- package/dist/components/3_compounds/Feed/Feed.vue.js +1 -1
- package/dist/components/3_compounds/Feed/Feed.vue2.js +207 -197
- package/dist/components/3_compounds/Feed/composables/useFeedProgressiveRender.js +52 -49
- package/dist/components/3_compounds/Feed/composables/useFeedReactionsOverlay.js +34 -0
- package/dist/hooks/messages/useMessageActions.js +81 -70
- package/dist/hooks/messages/useMessageReactionsInFeed.js +53 -0
- package/dist/hooks/messages/useMessageReactionsMount.js +21 -0
- package/dist/index.js +149 -144
- package/dist/types/components/2_feed_elements/MessageReactions/MessageReactions.vue.d.ts +4 -71
- package/dist/types/components/2_feed_elements/MessageReactions/MessageReactionsOverlay.vue.d.ts +2 -0
- package/dist/types/components/2_feed_elements/MessageReactions/composables/usePositioning.d.ts +2 -1
- package/dist/types/components/3_compounds/Feed/composables/index.d.ts +1 -0
- package/dist/types/components/3_compounds/Feed/composables/useFeedReactionsOverlay.d.ts +52 -0
- package/dist/types/hooks/messages/index.d.ts +2 -0
- package/dist/types/hooks/messages/useMessageReactionsInFeed.d.ts +25 -0
- package/dist/types/hooks/messages/useMessageReactionsMount.d.ts +10 -0
- package/package.json +1 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { useMessageActions as
|
|
12
|
-
import { useMessageHoverActions as
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
1
|
+
import { defineComponent as ut, ref as g, computed as r, inject as lt, watch as G, createElementBlock as m, openBlock as l, unref as o, normalizeStyle as Y, normalizeClass as C, createCommentVNode as d, createElementVNode as i, createVNode as w, withCtx as Z, createTextVNode as rt, toDisplayString as y, Fragment as q, createBlock as k, withDirectives as z, vShow as Ce, vModelText as mt, Transition as we, Teleport as dt, nextTick as ct } from "vue";
|
|
2
|
+
import vt from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import gt from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import ft from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import pt from "../FeedReplyQuote/FeedReplyQuote.vue.js";
|
|
6
|
+
import yt from "../MessageReactions/MessageReactions.vue.js";
|
|
7
|
+
import xe from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
8
|
+
import ht from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
9
|
+
import bt from "../DeletedMessageContent/DeletedMessageContent.vue.js";
|
|
10
|
+
import Ct from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
11
|
+
import { useMessageActions as wt } from "../../../hooks/messages/useMessageActions.js";
|
|
12
|
+
import { useMessageHoverActions as xt } from "../../../hooks/messages/useMessageHoverActions.js";
|
|
13
|
+
import { useMessageReactionsInFeed as Mt } from "../../../hooks/messages/useMessageReactionsInFeed.js";
|
|
14
|
+
import { useMessageMenuActions as kt } from "../../../hooks/messages/useMessageMenuActions.js";
|
|
15
|
+
import { useMessageLinks as Rt } from "../../../hooks/messages/useMessageLinks.js";
|
|
16
|
+
import { useChannelAccentColor as Tt } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
17
|
+
import { useSubtextTooltip as St } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
18
|
+
import { useStartReply as It } from "../../../hooks/messages/useStartReply.js";
|
|
18
19
|
import "../../../hooks/useMessageDraft.js";
|
|
19
20
|
import "../../../hooks/useSearchModel.js";
|
|
20
21
|
import "../../../hooks/useTheme.js";
|
|
@@ -23,36 +24,36 @@ import "../../../hooks/useEmojiNative.js";
|
|
|
23
24
|
/* empty css */
|
|
24
25
|
import "../../../locale/useLocale.js";
|
|
25
26
|
/* empty css */
|
|
26
|
-
import { buildReplyPayload as
|
|
27
|
-
import { getStatus as
|
|
28
|
-
import { getMessageClass as
|
|
29
|
-
import { createReactionHandlers as
|
|
27
|
+
import { buildReplyPayload as Me } from "../../../hooks/messages/buildReplyPayload.js";
|
|
28
|
+
import { getStatus as Nt, getStatusTitle as _t } from "../../../functions/getStatusMessage.js";
|
|
29
|
+
import { getMessageClass as Et } from "../../../functions/getMessageClass.js";
|
|
30
|
+
import { createReactionHandlers as At } from "../../../functions/createReactionHandlers.js";
|
|
30
31
|
import "../../../functions/parseMarkdown.js";
|
|
31
|
-
const
|
|
32
|
+
const Ft = ["messageId"], Lt = ["src"], Ot = {
|
|
32
33
|
key: 1,
|
|
33
34
|
class: "audio-message__subtext"
|
|
34
|
-
},
|
|
35
|
+
}, Pt = { class: "audio-message__footer" }, Dt = { class: "audio-message__info-container" }, Ut = {
|
|
35
36
|
key: 0,
|
|
36
37
|
class: "audio-message__time"
|
|
37
|
-
},
|
|
38
|
+
}, $t = { class: "audio-message__audio-container" }, Ht = ["src"], Vt = { class: "audio-message__progress-wrapper" }, Bt = ["max"], jt = { class: "audio-message__speed-btn-container" }, Gt = { class: "audio-message__player-controls" }, Yt = { class: "audio-message__current-time" }, Zt = { class: "audio-message__duration" }, qt = {
|
|
38
39
|
key: 1,
|
|
39
40
|
class: "audio-message__text-container"
|
|
40
|
-
},
|
|
41
|
+
}, zt = ["innerHTML"], Qt = { class: "audio-message__footer" }, Wt = { class: "audio-message__info-container" }, Jt = {
|
|
41
42
|
key: 0,
|
|
42
43
|
class: "audio-message__actions"
|
|
43
|
-
},
|
|
44
|
+
}, Kt = { class: "audio-message__time" }, Xt = {
|
|
44
45
|
key: 0,
|
|
45
46
|
class: "audio-message__expand-panel"
|
|
46
|
-
},
|
|
47
|
+
}, es = { class: "audio-message__expand-inner" }, ts = {
|
|
47
48
|
key: 0,
|
|
48
49
|
class: "audio-message__expand-placeholder"
|
|
49
|
-
},
|
|
50
|
+
}, ss = ["innerHTML"], as = {
|
|
50
51
|
key: 1,
|
|
51
52
|
class: "audio-message__expand-plain"
|
|
52
|
-
},
|
|
53
|
+
}, ns = {
|
|
53
54
|
key: 0,
|
|
54
55
|
class: "audio-message__expand-placeholder"
|
|
55
|
-
},
|
|
56
|
+
}, os = ["innerHTML"], is = { class: "audio-message__expand-close-wrap" }, us = "RECOGNITION_READY", ls = "SUMMARY_READY", Vs = /* @__PURE__ */ ut({
|
|
56
57
|
__name: "AudioMessage",
|
|
57
58
|
props: {
|
|
58
59
|
message: {
|
|
@@ -96,8 +97,8 @@ const Tt = ["messageId"], St = ["src"], Nt = {
|
|
|
96
97
|
}
|
|
97
98
|
},
|
|
98
99
|
emits: ["action", "reply", "sms-invite"],
|
|
99
|
-
setup(s, { emit:
|
|
100
|
-
const u = s,
|
|
100
|
+
setup(s, { emit: ke }) {
|
|
101
|
+
const u = s, O = g([
|
|
101
102
|
{
|
|
102
103
|
text: "1.0x",
|
|
103
104
|
speed: 1
|
|
@@ -114,16 +115,16 @@ const Tt = ["messageId"], St = ["src"], Nt = {
|
|
|
114
115
|
text: "2.0x",
|
|
115
116
|
speed: 2
|
|
116
117
|
}
|
|
117
|
-
]),
|
|
118
|
-
|
|
119
|
-
},
|
|
118
|
+
]), P = g(0), D = r(() => O.value[P.value] ?? O.value[0]), Re = () => {
|
|
119
|
+
P.value = (P.value + 1) % O.value.length, n.value && (n.value.playbackRate = D.value.speed);
|
|
120
|
+
}, R = ke, { menuActions: S } = kt(() => u.message), { hoverActionsEnabled: Q, reactionsActive: W } = xt(
|
|
120
121
|
() => u.channel,
|
|
121
122
|
() => u.reactionsEnabled,
|
|
122
123
|
() => u.message
|
|
123
|
-
),
|
|
124
|
-
var t,
|
|
124
|
+
), Te = lt("chatAppId"), { startReply: Se } = It(Te || ""), n = g(null), x = g(void 0), c = g(!1), h = g(0), f = g(0), b = g(!1), U = r(() => {
|
|
125
|
+
var t, a;
|
|
125
126
|
const e = u.message;
|
|
126
|
-
return e.url || (typeof ((t = e.meta) == null ? void 0 : t.url) == "string" ? e.meta.url : void 0) || ((
|
|
127
|
+
return e.url || (typeof ((t = e.meta) == null ? void 0 : t.url) == "string" ? e.meta.url : void 0) || ((a = e.data) == null ? void 0 : a.url);
|
|
127
128
|
}), $ = (e) => {
|
|
128
129
|
if (e == null) return;
|
|
129
130
|
if (typeof e == "number")
|
|
@@ -134,20 +135,20 @@ const Tt = ["messageId"], St = ["src"], Nt = {
|
|
|
134
135
|
const v = Number(t);
|
|
135
136
|
return Number.isFinite(v) && v >= 0 ? Math.floor(v) : void 0;
|
|
136
137
|
}
|
|
137
|
-
const
|
|
138
|
-
if (
|
|
139
|
-
const v = Number(
|
|
138
|
+
const a = t.match(/^(\d+):([0-5]\d):([0-5]\d)$/);
|
|
139
|
+
if (a) {
|
|
140
|
+
const v = Number(a[1]), B = Number(a[2]), j = Number(a[3]);
|
|
140
141
|
return v * 3600 + B * 60 + j;
|
|
141
142
|
}
|
|
142
143
|
const M = t.match(/^(\d+):([0-5]\d)$/);
|
|
143
144
|
if (M) return Number(M[1]) * 60 + Number(M[2]);
|
|
144
|
-
},
|
|
145
|
-
c.value = !1,
|
|
145
|
+
}, J = () => {
|
|
146
|
+
c.value = !1, f.value = 0, h.value = $(u.message.duration) ?? 0, b.value = !1;
|
|
146
147
|
};
|
|
147
|
-
|
|
148
|
+
J(), G(
|
|
148
149
|
() => U.value,
|
|
149
150
|
(e, t) => {
|
|
150
|
-
e !== t && (
|
|
151
|
+
e !== t && (J(), x.value = void 0, n.value && (n.value.pause(), n.value.currentTime = 0, n.value.removeAttribute("src"), n.value.load()));
|
|
151
152
|
}
|
|
152
153
|
), G(
|
|
153
154
|
() => u.message.duration,
|
|
@@ -156,54 +157,54 @@ const Tt = ["messageId"], St = ["src"], Nt = {
|
|
|
156
157
|
}
|
|
157
158
|
);
|
|
158
159
|
const {
|
|
159
|
-
isOpenMenu:
|
|
160
|
-
buttonMenuVisible:
|
|
161
|
-
menuAnchorRef:
|
|
162
|
-
menuRef:
|
|
163
|
-
menuStyle:
|
|
164
|
-
menuTheme:
|
|
165
|
-
showMenu:
|
|
166
|
-
hideMenu:
|
|
167
|
-
openMenu:
|
|
168
|
-
toggleMenu:
|
|
169
|
-
onMenuMouseEnter:
|
|
170
|
-
onMenuMouseLeave:
|
|
171
|
-
clickAction:
|
|
172
|
-
viewsAction:
|
|
173
|
-
handleClickReplied:
|
|
174
|
-
} =
|
|
175
|
-
onReply: () =>
|
|
176
|
-
}),
|
|
177
|
-
var
|
|
178
|
-
const e = u.message, t = e.transcript ?? ((
|
|
160
|
+
isOpenMenu: Ie,
|
|
161
|
+
buttonMenuVisible: Ne,
|
|
162
|
+
menuAnchorRef: _e,
|
|
163
|
+
menuRef: Ee,
|
|
164
|
+
menuStyle: Ae,
|
|
165
|
+
menuTheme: Fe,
|
|
166
|
+
showMenu: Le,
|
|
167
|
+
hideMenu: H,
|
|
168
|
+
openMenu: Oe,
|
|
169
|
+
toggleMenu: K,
|
|
170
|
+
onMenuMouseEnter: Pe,
|
|
171
|
+
onMenuMouseLeave: De,
|
|
172
|
+
clickAction: Ue,
|
|
173
|
+
viewsAction: X,
|
|
174
|
+
handleClickReplied: $e
|
|
175
|
+
} = wt(u.message, R, {
|
|
176
|
+
onReply: () => Se(Me(u.message, "message.audio"))
|
|
177
|
+
}), p = g(null), I = g({ text: !1, summary: !1 }), N = r(() => {
|
|
178
|
+
var a;
|
|
179
|
+
const e = u.message, t = e.transcript ?? ((a = e.meta) == null ? void 0 : a.transcript);
|
|
179
180
|
return !t || typeof t != "object" ? null : t;
|
|
180
|
-
}),
|
|
181
|
-
var
|
|
182
|
-
const e = u.message, t = e.summary ?? ((
|
|
181
|
+
}), _ = r(() => {
|
|
182
|
+
var a;
|
|
183
|
+
const e = u.message, t = e.summary ?? ((a = e.meta) == null ? void 0 : a.summary);
|
|
183
184
|
return !t || typeof t != "object" ? null : t;
|
|
184
|
-
}),
|
|
185
|
+
}), ee = r(() => {
|
|
185
186
|
var t;
|
|
186
|
-
const e = (t =
|
|
187
|
+
const e = (t = N.value) == null ? void 0 : t.html;
|
|
187
188
|
return typeof e != "string" ? "" : e.trim();
|
|
188
|
-
}),
|
|
189
|
+
}), te = r(() => {
|
|
189
190
|
var e;
|
|
190
|
-
return ((e =
|
|
191
|
-
}),
|
|
191
|
+
return ((e = N.value) == null ? void 0 : e.status) === us && ee.value.length > 0;
|
|
192
|
+
}), se = r(() => {
|
|
192
193
|
var t;
|
|
193
|
-
const e = (t =
|
|
194
|
+
const e = (t = _.value) == null ? void 0 : t.html;
|
|
194
195
|
return typeof e != "string" ? "" : e.trim();
|
|
195
|
-
}),
|
|
196
|
+
}), ae = r(() => {
|
|
196
197
|
var e;
|
|
197
|
-
return ((e =
|
|
198
|
-
}),
|
|
198
|
+
return ((e = _.value) == null ? void 0 : e.status) === ls && se.value.length > 0;
|
|
199
|
+
}), E = r(() => {
|
|
199
200
|
var e;
|
|
200
|
-
return !!((e =
|
|
201
|
-
}),
|
|
201
|
+
return !!((e = N.value) != null && e.status);
|
|
202
|
+
}), A = r(() => {
|
|
202
203
|
var e;
|
|
203
|
-
return !!((e =
|
|
204
|
-
}),
|
|
204
|
+
return !!((e = _.value) != null && e.status);
|
|
205
|
+
}), He = r(() => p.value === "text" ? E.value : p.value === "summary" ? A.value : !1), Ve = r(() => {
|
|
205
206
|
var e;
|
|
206
|
-
switch ((e =
|
|
207
|
+
switch ((e = N.value) == null ? void 0 : e.status) {
|
|
207
208
|
case "RECOGNITION_PLANNED":
|
|
208
209
|
return "Распознаем сообщение, пожалуйста подождите...";
|
|
209
210
|
case "RECOGNITION_ERROR":
|
|
@@ -213,9 +214,9 @@ const Tt = ["messageId"], St = ["src"], Nt = {
|
|
|
213
214
|
default:
|
|
214
215
|
return "Текст сообщения недоступен";
|
|
215
216
|
}
|
|
216
|
-
}),
|
|
217
|
+
}), Be = r(() => {
|
|
217
218
|
var e;
|
|
218
|
-
switch ((e =
|
|
219
|
+
switch ((e = _.value) == null ? void 0 : e.status) {
|
|
219
220
|
case "SUMMARY_PLANNED":
|
|
220
221
|
return "Формируем резюме, пожалуйста подождите...";
|
|
221
222
|
case "SUMMARY_ERROR":
|
|
@@ -225,8 +226,8 @@ const Tt = ["messageId"], St = ["src"], Nt = {
|
|
|
225
226
|
default:
|
|
226
227
|
return "Резюме недоступно";
|
|
227
228
|
}
|
|
228
|
-
}),
|
|
229
|
-
var t,
|
|
229
|
+
}), je = async () => {
|
|
230
|
+
var t, a, M;
|
|
230
231
|
const e = U.value;
|
|
231
232
|
if (e)
|
|
232
233
|
try {
|
|
@@ -237,7 +238,7 @@ const Tt = ["messageId"], St = ["src"], Nt = {
|
|
|
237
238
|
});
|
|
238
239
|
if (!v.ok)
|
|
239
240
|
throw new Error(`HTTP error! status: ${v.status}`);
|
|
240
|
-
const B = v.headers.get("content-type") || "", j = await v.blob(),
|
|
241
|
+
const B = v.headers.get("content-type") || "", j = await v.blob(), F = ((a = (t = e.split(".").pop()) == null ? void 0 : t.split("?")[0]) == null ? void 0 : a.toLowerCase()) || "", ot = {
|
|
241
242
|
"audio/mpeg": "mp3",
|
|
242
243
|
"audio/mp3": "mp3",
|
|
243
244
|
"audio/wav": "wav",
|
|
@@ -248,357 +249,383 @@ const Tt = ["messageId"], St = ["src"], Nt = {
|
|
|
248
249
|
"audio/flac": "flac",
|
|
249
250
|
"audio/m4a": "m4a",
|
|
250
251
|
"audio/x-m4a": "m4a",
|
|
251
|
-
"application/octet-stream":
|
|
252
|
-
},
|
|
253
|
-
|
|
252
|
+
"application/octet-stream": F || "mp3"
|
|
253
|
+
}, ye = F && ["mp3", "wav", "ogg", "webm", "aac", "flac", "m4a"].includes(F) ? F : ot[B] || "mp3", he = e.split("/"), L = decodeURIComponent(((M = he[he.length - 1]) == null ? void 0 : M.split("?")[0]) || ""), it = L ? L.includes(".") ? L : `${L}.${ye}` : `audio-${u.message.messageId}.${ye}`, be = window.URL.createObjectURL(j), T = document.createElement("a");
|
|
254
|
+
T.href = be, T.download = it, document.body.appendChild(T), T.click(), document.body.removeChild(T), window.URL.revokeObjectURL(be);
|
|
254
255
|
} catch (v) {
|
|
255
256
|
console.error("Ошибка при скачивании аудио:", v), e && window.open(e, "_blank");
|
|
256
257
|
}
|
|
257
|
-
},
|
|
258
|
-
e.action === "download" ? (
|
|
259
|
-
}, { linkedHtml:
|
|
260
|
-
|
|
258
|
+
}, Ge = (e) => {
|
|
259
|
+
e.action === "download" ? (je(), H()) : Ue(e);
|
|
260
|
+
}, { linkedHtml: Ye, inNewWindow: ne } = Rt(() => u.message.text), oe = r(() => Nt(u.message.status)), ie = r(() => _t(u.message.status, u.message.statusMsg)), { bubbleStyle: Ze } = Tt(
|
|
261
|
+
r(() => u.message),
|
|
261
262
|
{ cssVariable: "--chotto-audiomessage-right-background-color", position: "right" }
|
|
262
|
-
),
|
|
263
|
+
), ue = async () => {
|
|
263
264
|
const e = U.value;
|
|
264
|
-
if (!(!
|
|
265
|
+
if (!(!n.value || !e))
|
|
265
266
|
if (c.value)
|
|
266
|
-
|
|
267
|
+
n.value.pause(), c.value = !1;
|
|
267
268
|
else
|
|
268
269
|
try {
|
|
269
|
-
x.value || (x.value = e, await
|
|
270
|
+
x.value || (x.value = e, await ct(), n.value.load()), await n.value.play(), c.value = !0;
|
|
270
271
|
} catch (t) {
|
|
271
272
|
console.error("Не удалось воспроизвести аудио", t), c.value = !1;
|
|
272
273
|
}
|
|
273
|
-
},
|
|
274
|
-
const t = Math.floor(e / 60),
|
|
275
|
-
return `${t.toString().padStart(2, "0")}:${
|
|
276
|
-
},
|
|
274
|
+
}, le = (e) => {
|
|
275
|
+
const t = Math.floor(e / 60), a = Math.floor(e % 60);
|
|
276
|
+
return `${t.toString().padStart(2, "0")}:${a.toString().padStart(2, "0")}`;
|
|
277
|
+
}, qe = r(() => le(f.value));
|
|
277
278
|
G(
|
|
278
|
-
() =>
|
|
279
|
+
() => f.value,
|
|
279
280
|
() => {
|
|
280
|
-
|
|
281
|
+
n.value && b.value && (n.value.duration != 1 / 0 && !Number.isNaN(n.value.duration) && (n.value.currentTime = f.value), Math.abs(f.value - h.value) < 0.1 && (c.value = !1));
|
|
281
282
|
}
|
|
282
283
|
);
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
},
|
|
286
|
-
if (!
|
|
287
|
-
const e =
|
|
288
|
-
if (
|
|
284
|
+
const re = () => {
|
|
285
|
+
n.value && b.value && n.value.duration != 1 / 0 && !Number.isNaN(n.value.duration) && (n.value.currentTime = f.value), b.value = !1;
|
|
286
|
+
}, ze = r(() => le(h.value)), Qe = () => {
|
|
287
|
+
if (!n.value) return;
|
|
288
|
+
const e = n.value;
|
|
289
|
+
if (f.value = e.currentTime || 0, e.duration === 1 / 0 || Number.isNaN(e.duration)) {
|
|
289
290
|
e.currentTime = 1e101;
|
|
290
291
|
const t = () => {
|
|
291
|
-
|
|
292
|
+
n.value && (h.value = n.value.duration || 0, f.value = 0, n.value.currentTime = 0);
|
|
292
293
|
};
|
|
293
294
|
e.addEventListener("timeupdate", t, { once: !0 });
|
|
294
295
|
} else
|
|
295
296
|
h.value = e.duration || 0;
|
|
296
|
-
e.playbackRate =
|
|
297
|
-
},
|
|
298
|
-
|
|
299
|
-
},
|
|
297
|
+
e.playbackRate = D.value.speed;
|
|
298
|
+
}, We = () => {
|
|
299
|
+
n.value && (b.value || (f.value = n.value.currentTime), n.value.ended && c.value && (c.value = !1));
|
|
300
|
+
}, Je = () => {
|
|
300
301
|
c.value = !1;
|
|
301
|
-
},
|
|
302
|
-
console.error("Не удалось загрузить аудио"), c.value = !1, x.value = void 0,
|
|
302
|
+
}, Ke = () => {
|
|
303
|
+
console.error("Не удалось загрузить аудио"), c.value = !1, x.value = void 0, n.value && (n.value.pause(), n.value.currentTime = 0, n.value.removeAttribute("src"), n.value.load()), h.value = $(u.message.duration) ?? 0;
|
|
303
304
|
};
|
|
304
|
-
function
|
|
305
|
-
return
|
|
305
|
+
function V(e) {
|
|
306
|
+
return Et(e.position, "audio-message");
|
|
306
307
|
}
|
|
307
|
-
const { onToggleReaction:
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
const { onToggleReaction: me, onAddReaction: de, onRemoveReaction: ce } = At(R), ve = g(null), ge = g(null), Xe = r(() => {
|
|
309
|
+
var t;
|
|
310
|
+
const e = (t = ge.value) == null ? void 0 : t.$el;
|
|
311
|
+
return e instanceof HTMLElement ? e : null;
|
|
312
|
+
}), { showReactions: et, onContentPointerEnter: fe, onContentPointerLeave: pe } = Mt({
|
|
313
|
+
message: () => u.message,
|
|
314
|
+
messageId: () => u.message.messageId,
|
|
315
|
+
reactions: () => u.message.reactions,
|
|
316
|
+
reactionsActive: W,
|
|
317
|
+
reactionsMode: () => u.reactionsMode,
|
|
318
|
+
reply: () => Me(u.message, "message.audio"),
|
|
319
|
+
menuEnabled: () => S.value.length > 0,
|
|
320
|
+
contentRef: ve,
|
|
321
|
+
chipsRef: Xe,
|
|
322
|
+
handlers: {
|
|
323
|
+
onToggleReaction: me,
|
|
324
|
+
onAddReaction: de,
|
|
325
|
+
onRemoveReaction: ce,
|
|
326
|
+
onMenu: Oe
|
|
327
|
+
}
|
|
328
|
+
}), tt = St(() => u.message, () => u.subtextTooltipData);
|
|
329
|
+
function st() {
|
|
330
|
+
R("sms-invite", u.message);
|
|
310
331
|
}
|
|
311
|
-
const
|
|
312
|
-
if (!A.value) return;
|
|
313
|
-
const e = f.value === "text" ? null : "text";
|
|
314
|
-
f.value = e, e === "text" && !ee.value && !N.value.text && (N.value.text = !0, k("action", { action: "fetchTranscript", messageId: u.message.messageId }));
|
|
315
|
-
}, Ke = () => {
|
|
332
|
+
const at = () => {
|
|
316
333
|
if (!E.value) return;
|
|
317
|
-
const e =
|
|
318
|
-
|
|
334
|
+
const e = p.value === "text" ? null : "text";
|
|
335
|
+
p.value = e, e === "text" && !te.value && !I.value.text && (I.value.text = !0, R("action", { action: "fetchTranscript", messageId: u.message.messageId }));
|
|
336
|
+
}, nt = () => {
|
|
337
|
+
if (!A.value) return;
|
|
338
|
+
const e = p.value === "summary" ? null : "summary";
|
|
339
|
+
p.value = e, e === "summary" && !ae.value && !I.value.summary && (I.value.summary = !0, R("action", { action: "fetchSummary", messageId: u.message.messageId }));
|
|
319
340
|
};
|
|
320
|
-
return (e, t) => (l(),
|
|
341
|
+
return (e, t) => (l(), m("div", {
|
|
321
342
|
ref_key: "menuAnchorRef",
|
|
322
|
-
ref:
|
|
323
|
-
class:
|
|
324
|
-
|
|
343
|
+
ref: _e,
|
|
344
|
+
class: C(["audio-message", [
|
|
345
|
+
V(s.message),
|
|
325
346
|
s.applyStyle(s.message)
|
|
326
347
|
]]),
|
|
327
348
|
messageId: s.message.messageId,
|
|
328
|
-
style: Y(
|
|
329
|
-
onMouseleave: t[
|
|
330
|
-
(...
|
|
349
|
+
style: Y(o(Ze)),
|
|
350
|
+
onMouseleave: t[10] || (t[10] = //@ts-ignore
|
|
351
|
+
(...a) => o(H) && o(H)(...a))
|
|
331
352
|
}, [
|
|
332
|
-
s.message.avatar && s.isFirstInSeries ? (l(),
|
|
353
|
+
s.message.avatar && s.isFirstInSeries ? (l(), m("img", {
|
|
333
354
|
key: 0,
|
|
334
355
|
class: "audio-message__avatar",
|
|
335
356
|
src: s.message.avatar,
|
|
336
357
|
height: "32",
|
|
337
358
|
width: "32",
|
|
338
359
|
style: Y({ gridRow: s.message.subText ? "2" : "1" })
|
|
339
|
-
}, null, 12,
|
|
340
|
-
s.message.subText && s.isFirstInSeries ? (l(),
|
|
341
|
-
|
|
342
|
-
text:
|
|
360
|
+
}, null, 12, Lt)) : d("", !0),
|
|
361
|
+
s.message.subText && s.isFirstInSeries ? (l(), m("p", Ot, [
|
|
362
|
+
w(Ct, {
|
|
363
|
+
text: o(tt),
|
|
343
364
|
position: s.message.position === "left" ? "right" : "left",
|
|
344
365
|
offset: 8
|
|
345
366
|
}, {
|
|
346
367
|
default: Z(() => [
|
|
347
|
-
|
|
368
|
+
rt(y(s.message.subText), 1)
|
|
348
369
|
]),
|
|
349
370
|
_: 1
|
|
350
371
|
}, 8, ["text", "position"])
|
|
351
372
|
])) : d("", !0),
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
373
|
+
i("div", {
|
|
374
|
+
ref_key: "contentRef",
|
|
375
|
+
ref: ve,
|
|
376
|
+
class: C(["audio-message__content", { "is-first": s.isFirstInSeries, "with-avatar-indent": !s.isFirstInSeries && s.message.avatar }]),
|
|
377
|
+
onMouseenter: t[7] || (t[7] = (a) => o(Q) && o(Le)()),
|
|
378
|
+
onPointerenter: t[8] || (t[8] = //@ts-ignore
|
|
379
|
+
(...a) => o(fe) && o(fe)(...a)),
|
|
380
|
+
onPointerleave: t[9] || (t[9] = //@ts-ignore
|
|
381
|
+
(...a) => o(pe) && o(pe)(...a))
|
|
355
382
|
}, [
|
|
356
|
-
t[
|
|
383
|
+
t[15] || (t[15] = i("div", {
|
|
357
384
|
class: "audio-message__bottom-shadow",
|
|
358
385
|
"aria-hidden": "true"
|
|
359
386
|
}, null, -1)),
|
|
360
|
-
s.message.deleted ? (l(),
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
s.message.time ? (l(),
|
|
365
|
-
|
|
387
|
+
s.message.deleted ? (l(), m(q, { key: 0 }, [
|
|
388
|
+
w(bt),
|
|
389
|
+
i("div", Pt, [
|
|
390
|
+
i("div", Dt, [
|
|
391
|
+
s.message.time ? (l(), m("span", Ut, y(s.message.time), 1)) : d("", !0),
|
|
392
|
+
w(xe, {
|
|
366
393
|
"base-class": "audio-message",
|
|
367
|
-
"message-class":
|
|
394
|
+
"message-class": V(s.message),
|
|
368
395
|
"message-status": s.message.status,
|
|
369
|
-
"status-class":
|
|
370
|
-
"status-title":
|
|
396
|
+
"status-class": oe.value,
|
|
397
|
+
"status-title": ie.value
|
|
371
398
|
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
372
399
|
])
|
|
373
400
|
])
|
|
374
|
-
], 64)) : (l(),
|
|
375
|
-
s.message.reply ? (l(),
|
|
401
|
+
], 64)) : (l(), m(q, { key: 1 }, [
|
|
402
|
+
s.message.reply ? (l(), k(pt, {
|
|
376
403
|
key: 0,
|
|
377
404
|
style: { "grid-column": "1/3" },
|
|
378
405
|
message: s.message.reply,
|
|
379
|
-
class:
|
|
380
|
-
onReply:
|
|
406
|
+
class: C(s.message.position),
|
|
407
|
+
onReply: o($e)
|
|
381
408
|
}, null, 8, ["message", "class", "onReply"])) : d("", !0),
|
|
382
|
-
|
|
383
|
-
|
|
409
|
+
i("div", $t, [
|
|
410
|
+
i("audio", {
|
|
384
411
|
ref_key: "player",
|
|
385
|
-
ref:
|
|
412
|
+
ref: n,
|
|
386
413
|
src: x.value,
|
|
387
414
|
type: "audio/webm",
|
|
388
|
-
onLoadedmetadata:
|
|
389
|
-
onTimeupdate:
|
|
390
|
-
onEnded:
|
|
391
|
-
onError:
|
|
392
|
-
}, null, 40,
|
|
393
|
-
z(
|
|
415
|
+
onLoadedmetadata: Qe,
|
|
416
|
+
onTimeupdate: We,
|
|
417
|
+
onEnded: Je,
|
|
418
|
+
onError: Ke
|
|
419
|
+
}, null, 40, Ht),
|
|
420
|
+
z(i("button", {
|
|
394
421
|
class: "audio-message__play",
|
|
395
|
-
onClick:
|
|
396
|
-
}, [...t[
|
|
397
|
-
|
|
398
|
-
|
|
422
|
+
onClick: ue
|
|
423
|
+
}, [...t[11] || (t[11] = [
|
|
424
|
+
i("div", { class: "audio-message__play-icon" }, [
|
|
425
|
+
i("svg", {
|
|
399
426
|
width: "20",
|
|
400
427
|
height: "23",
|
|
401
428
|
viewBox: "0 0 20 23",
|
|
402
429
|
fill: "none",
|
|
403
430
|
xmlns: "http://www.w3.org/2000/svg"
|
|
404
431
|
}, [
|
|
405
|
-
|
|
432
|
+
i("path", {
|
|
406
433
|
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",
|
|
407
434
|
fill: "#5F5F5F"
|
|
408
435
|
})
|
|
409
436
|
])
|
|
410
437
|
], -1)
|
|
411
438
|
])], 512), [
|
|
412
|
-
[
|
|
439
|
+
[Ce, !c.value]
|
|
413
440
|
]),
|
|
414
|
-
z(
|
|
441
|
+
z(i("button", {
|
|
415
442
|
class: "audio-message__pause",
|
|
416
|
-
onClick:
|
|
417
|
-
}, [...t[
|
|
418
|
-
|
|
419
|
-
|
|
443
|
+
onClick: ue
|
|
444
|
+
}, [...t[12] || (t[12] = [
|
|
445
|
+
i("div", { class: "audio-message__pause-icon" }, [
|
|
446
|
+
i("svg", {
|
|
420
447
|
width: "20",
|
|
421
448
|
height: "23",
|
|
422
449
|
viewBox: "0 0 20 23",
|
|
423
450
|
fill: "none",
|
|
424
451
|
xmlns: "http://www.w3.org/2000/svg"
|
|
425
452
|
}, [
|
|
426
|
-
|
|
453
|
+
i("path", {
|
|
427
454
|
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 2.09588e-08 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",
|
|
428
455
|
fill: "#5F5F5F"
|
|
429
456
|
})
|
|
430
457
|
])
|
|
431
458
|
], -1)
|
|
432
459
|
])], 512), [
|
|
433
|
-
[
|
|
460
|
+
[Ce, c.value]
|
|
434
461
|
]),
|
|
435
|
-
|
|
436
|
-
z(
|
|
437
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
462
|
+
i("div", Vt, [
|
|
463
|
+
z(i("input", {
|
|
464
|
+
"onUpdate:modelValue": t[0] || (t[0] = (a) => f.value = a),
|
|
438
465
|
class: "audio-message__progress-bar-container",
|
|
439
466
|
type: "range",
|
|
440
467
|
min: 0,
|
|
441
468
|
max: h.value,
|
|
442
469
|
step: "0.1",
|
|
443
|
-
onMousedown: t[1] || (t[1] = (
|
|
444
|
-
onMouseup:
|
|
445
|
-
onTouchstartPassive: t[2] || (t[2] = (
|
|
446
|
-
onTouchendPassive:
|
|
447
|
-
}, null, 40,
|
|
448
|
-
[
|
|
470
|
+
onMousedown: t[1] || (t[1] = (a) => b.value = !0),
|
|
471
|
+
onMouseup: re,
|
|
472
|
+
onTouchstartPassive: t[2] || (t[2] = (a) => b.value = !0),
|
|
473
|
+
onTouchendPassive: re
|
|
474
|
+
}, null, 40, Bt), [
|
|
475
|
+
[mt, f.value]
|
|
449
476
|
]),
|
|
450
|
-
|
|
451
|
-
|
|
477
|
+
i("div", jt, [
|
|
478
|
+
i("button", {
|
|
452
479
|
type: "button",
|
|
453
480
|
class: "audio-message__speed-btn",
|
|
454
|
-
onClick:
|
|
455
|
-
},
|
|
481
|
+
onClick: Re
|
|
482
|
+
}, y(D.value.text), 1)
|
|
456
483
|
])
|
|
457
484
|
]),
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
485
|
+
i("div", Gt, [
|
|
486
|
+
i("p", Yt, y(qe.value), 1),
|
|
487
|
+
i("p", Zt, y(ze.value), 1)
|
|
461
488
|
])
|
|
462
489
|
]),
|
|
463
|
-
s.message.text ? (l(),
|
|
464
|
-
|
|
490
|
+
s.message.text ? (l(), m("div", qt, [
|
|
491
|
+
i("p", {
|
|
465
492
|
onClick: t[3] || (t[3] = //@ts-ignore
|
|
466
|
-
(...
|
|
467
|
-
innerHTML:
|
|
468
|
-
}, null, 8,
|
|
493
|
+
(...a) => o(ne) && o(ne)(...a)),
|
|
494
|
+
innerHTML: o(Ye)
|
|
495
|
+
}, null, 8, zt)
|
|
469
496
|
])) : d("", !0),
|
|
470
|
-
s.message.linkPreview ? (l(),
|
|
497
|
+
s.message.linkPreview ? (l(), k(gt, {
|
|
471
498
|
key: 2,
|
|
472
|
-
class:
|
|
499
|
+
class: C(["audio-message__link-preview", s.message.position]),
|
|
473
500
|
"link-preview": s.message.linkPreview
|
|
474
501
|
}, null, 8, ["class", "link-preview"])) : d("", !0),
|
|
475
|
-
s.message.embed ? (l(),
|
|
502
|
+
s.message.embed ? (l(), k(ft, {
|
|
476
503
|
key: 3,
|
|
477
|
-
class:
|
|
504
|
+
class: C(s.message.position),
|
|
478
505
|
embed: s.message.embed
|
|
479
506
|
}, null, 8, ["class", "embed"])) : d("", !0),
|
|
480
|
-
|
|
481
|
-
|
|
507
|
+
i("div", Qt, [
|
|
508
|
+
o(et) ? (l(), k(yt, {
|
|
509
|
+
key: 0,
|
|
510
|
+
ref_key: "reactionsRef",
|
|
511
|
+
ref: ge,
|
|
482
512
|
reactions: s.message.reactions,
|
|
483
513
|
"message-id": s.message.messageId,
|
|
484
|
-
|
|
485
|
-
enabled: i(he),
|
|
514
|
+
enabled: o(W),
|
|
486
515
|
mode: s.reactionsMode,
|
|
487
516
|
"current-user-id": s.currentUserId,
|
|
488
517
|
"reaction-user-names": s.reactionUserNames,
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
A.value || E.value ? (l(), r("div", Gt, [
|
|
497
|
-
A.value ? (l(), r("button", {
|
|
518
|
+
onToggleReaction: o(me),
|
|
519
|
+
onAddReaction: o(de),
|
|
520
|
+
onRemoveReaction: o(ce)
|
|
521
|
+
}, null, 8, ["reactions", "message-id", "enabled", "mode", "current-user-id", "reaction-user-names", "onToggleReaction", "onAddReaction", "onRemoveReaction"])) : d("", !0),
|
|
522
|
+
i("div", Wt, [
|
|
523
|
+
E.value || A.value ? (l(), m("div", Jt, [
|
|
524
|
+
E.value ? (l(), m("button", {
|
|
498
525
|
key: 0,
|
|
499
|
-
class:
|
|
526
|
+
class: C([
|
|
500
527
|
"audio-message__action-button",
|
|
501
|
-
{ "audio-message__action-button--active":
|
|
528
|
+
{ "audio-message__action-button--active": p.value === "text" }
|
|
502
529
|
]),
|
|
503
530
|
type: "button",
|
|
504
|
-
onClick:
|
|
531
|
+
onClick: at
|
|
505
532
|
}, " Текст ", 2)) : d("", !0),
|
|
506
|
-
|
|
533
|
+
A.value ? (l(), m("button", {
|
|
507
534
|
key: 1,
|
|
508
|
-
class:
|
|
535
|
+
class: C([
|
|
509
536
|
"audio-message__action-button",
|
|
510
|
-
{ "audio-message__action-button--active":
|
|
537
|
+
{ "audio-message__action-button--active": p.value === "summary" }
|
|
511
538
|
]),
|
|
512
539
|
type: "button",
|
|
513
|
-
onClick:
|
|
540
|
+
onClick: nt
|
|
514
541
|
}, " Резюме ", 2)) : d("", !0)
|
|
515
542
|
])) : d("", !0),
|
|
516
|
-
s.message.views ? (l(),
|
|
543
|
+
s.message.views ? (l(), m("div", {
|
|
517
544
|
key: 1,
|
|
518
545
|
class: "audio-message__views",
|
|
519
546
|
onClick: t[4] || (t[4] = //@ts-ignore
|
|
520
|
-
(...
|
|
547
|
+
(...a) => o(X) && o(X)(...a))
|
|
521
548
|
}, [
|
|
522
|
-
t[
|
|
523
|
-
|
|
549
|
+
t[13] || (t[13] = i("span", { class: "pi pi-eye" }, null, -1)),
|
|
550
|
+
i("p", null, y(s.message.views), 1)
|
|
524
551
|
])) : d("", !0),
|
|
525
|
-
|
|
526
|
-
|
|
552
|
+
i("span", Kt, y(s.message.time), 1),
|
|
553
|
+
w(xe, {
|
|
527
554
|
"base-class": "audio-message",
|
|
528
|
-
"message-class":
|
|
555
|
+
"message-class": V(s.message),
|
|
529
556
|
"message-status": s.message.status,
|
|
530
|
-
"status-class":
|
|
531
|
-
"status-title":
|
|
557
|
+
"status-class": oe.value,
|
|
558
|
+
"status-title": ie.value
|
|
532
559
|
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
533
560
|
])
|
|
534
561
|
]),
|
|
535
|
-
|
|
562
|
+
w(we, { name: "audio-message-expand" }, {
|
|
536
563
|
default: Z(() => [
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
564
|
+
He.value ? (l(), m("div", Xt, [
|
|
565
|
+
i("div", es, [
|
|
566
|
+
p.value === "text" ? (l(), m(q, { key: 0 }, [
|
|
567
|
+
te.value ? (l(), m("p", {
|
|
541
568
|
key: 1,
|
|
542
569
|
class: "audio-message__expand-plain",
|
|
543
|
-
innerHTML:
|
|
544
|
-
}, null, 8,
|
|
545
|
-
], 64)) : (l(),
|
|
546
|
-
|
|
570
|
+
innerHTML: ee.value
|
|
571
|
+
}, null, 8, ss)) : (l(), m("p", ts, y(Ve.value), 1))
|
|
572
|
+
], 64)) : (l(), m("p", as, [
|
|
573
|
+
ae.value ? (l(), m("span", {
|
|
547
574
|
key: 1,
|
|
548
|
-
innerHTML:
|
|
549
|
-
}, null, 8,
|
|
575
|
+
innerHTML: se.value
|
|
576
|
+
}, null, 8, os)) : (l(), m("span", ns, y(Be.value), 1))
|
|
550
577
|
]))
|
|
551
578
|
]),
|
|
552
|
-
|
|
553
|
-
|
|
579
|
+
i("div", is, [
|
|
580
|
+
i("button", {
|
|
554
581
|
type: "button",
|
|
555
582
|
class: "audio-message__expand-close",
|
|
556
|
-
onClick: t[5] || (t[5] = (
|
|
583
|
+
onClick: t[5] || (t[5] = (a) => p.value = null)
|
|
557
584
|
}, " Закрыть ")
|
|
558
585
|
])
|
|
559
586
|
])) : d("", !0)
|
|
560
587
|
]),
|
|
561
588
|
_: 1
|
|
562
589
|
}),
|
|
563
|
-
|
|
590
|
+
w(ht, {
|
|
564
591
|
status: s.message.status,
|
|
565
592
|
"has-messenger-account": s.message.hasMessengerAccount,
|
|
566
593
|
channel: s.channel,
|
|
567
|
-
onSmsInvite:
|
|
594
|
+
onSmsInvite: st
|
|
568
595
|
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
569
|
-
|
|
596
|
+
o(Ne) && o(S).length && !s.reactionsEnabled && o(Q) ? (l(), m("button", {
|
|
570
597
|
key: 4,
|
|
571
598
|
class: "audio-message__menu-button",
|
|
572
599
|
onClick: t[6] || (t[6] = //@ts-ignore
|
|
573
|
-
(...
|
|
574
|
-
}, [...t[
|
|
575
|
-
|
|
600
|
+
(...a) => o(K) && o(K)(...a))
|
|
601
|
+
}, [...t[14] || (t[14] = [
|
|
602
|
+
i("svg", {
|
|
576
603
|
width: "4",
|
|
577
604
|
height: "17",
|
|
578
605
|
viewBox: "0 0 4 17",
|
|
579
606
|
fill: "none",
|
|
580
607
|
xmlns: "http://www.w3.org/2000/svg"
|
|
581
608
|
}, [
|
|
582
|
-
|
|
609
|
+
i("path", {
|
|
583
610
|
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",
|
|
584
611
|
fill: "#5F5F5F"
|
|
585
612
|
})
|
|
586
613
|
], -1)
|
|
587
614
|
])])) : d("", !0),
|
|
588
|
-
(l(),
|
|
589
|
-
|
|
615
|
+
(l(), k(dt, { to: "body" }, [
|
|
616
|
+
w(we, null, {
|
|
590
617
|
default: Z(() => [
|
|
591
|
-
|
|
618
|
+
o(Ie) && o(S).length ? (l(), k(vt, {
|
|
592
619
|
key: 0,
|
|
593
620
|
ref_key: "menuRef",
|
|
594
|
-
ref:
|
|
621
|
+
ref: Ee,
|
|
595
622
|
class: "audio-message__context-menu message-actions-menu",
|
|
596
|
-
style: Y(
|
|
597
|
-
"data-theme":
|
|
598
|
-
actions:
|
|
599
|
-
onClick:
|
|
600
|
-
onMouseenter:
|
|
601
|
-
onMouseleave:
|
|
623
|
+
style: Y(o(Ae)),
|
|
624
|
+
"data-theme": o(Fe),
|
|
625
|
+
actions: o(S),
|
|
626
|
+
onClick: Ge,
|
|
627
|
+
onMouseenter: o(Pe),
|
|
628
|
+
onMouseleave: o(De)
|
|
602
629
|
}, null, 8, ["style", "data-theme", "actions", "onMouseenter", "onMouseleave"])) : d("", !0)
|
|
603
630
|
]),
|
|
604
631
|
_: 1
|
|
@@ -606,9 +633,9 @@ const Tt = ["messageId"], St = ["src"], Nt = {
|
|
|
606
633
|
]))
|
|
607
634
|
], 64))
|
|
608
635
|
], 34)
|
|
609
|
-
], 46,
|
|
636
|
+
], 46, Ft));
|
|
610
637
|
}
|
|
611
638
|
});
|
|
612
639
|
export {
|
|
613
|
-
|
|
640
|
+
Vs as default
|
|
614
641
|
};
|