@mobilon-dev/chotto 0.3.45 → 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.
- package/dist/chotto.css +1 -1
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue.js +1 -1
- package/dist/components/2_chatlist_elements/ChatItem/ChatItem.vue2.js +72 -67
- package/dist/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.js +34 -0
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/AudioMessage/AudioMessage.vue2.js +94 -89
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/FileMessage/FileMessage.vue2.js +90 -85
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/ImageMessage/ImageMessage.vue2.js +97 -92
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue.js +2 -2
- package/dist/components/2_feed_elements/StickerMessage/StickerMessage.vue2.js +91 -86
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue.js +1 -1
- package/dist/components/2_feed_elements/TextMessage/TextMessage.vue2.js +70 -65
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue.js +3 -3
- package/dist/components/2_feed_elements/VideoMessage/VideoMessage.vue2.js +93 -88
- package/dist/components/3_compounds/Feed/Feed.vue.js +2 -2
- package/dist/components/3_compounds/Feed/Feed.vue2.js +167 -154
- package/dist/types/apps/data/chats.d.ts +5 -2
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/MissedCallIcon.vue.d.ts +2 -0
- package/dist/types/components/2_chatlist_elements/ChatItem/icons/index.d.ts +7 -0
- package/dist/types/components/2_feed_elements/AudioMessage/AudioMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/FileMessage/FileMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/ImageMessage/ImageMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/StickerMessage/StickerMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/TextMessage/TextMessage.vue.d.ts +11 -0
- package/dist/types/components/2_feed_elements/VideoMessage/VideoMessage.vue.d.ts +11 -0
- package/package.json +1 -1
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { defineComponent as we, inject as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useMessageActions as
|
|
11
|
-
import { useMessageLinks as
|
|
12
|
-
import { useChannelAccentColor as
|
|
13
|
-
import { useSubtextTooltip as
|
|
14
|
-
import { getStatus as
|
|
15
|
-
import { getMessageClass as
|
|
16
|
-
import { createReactionHandlers as
|
|
1
|
+
import { defineComponent as we, inject as Ce, ref as d, computed as w, watch as ye, onMounted as be, createElementBlock as c, openBlock as l, unref as i, normalizeStyle as W, normalizeClass as h, createCommentVNode as m, createElementVNode as a, createVNode as C, withCtx as L, createTextVNode as he, toDisplayString as g, createBlock as k, withDirectives as N, vShow as G, vModelText as ke, Transition as J, Teleport as xe } from "vue";
|
|
2
|
+
import Te from "../../1_atoms/ContextMenu/ContextMenu.vue.js";
|
|
3
|
+
import Me from "../../1_atoms/LinkPreview/LinkPreview.vue.js";
|
|
4
|
+
import Se from "../../1_atoms/EmbedPreview/EmbedPreview.vue.js";
|
|
5
|
+
import Re from "../BaseReplyMessage/BaseReplyMessage.vue.js";
|
|
6
|
+
import Ie from "../MessageReactions/MessageReactions.vue.js";
|
|
7
|
+
import Fe from "../MessageStatusIndicator/MessageStatusIndicator.vue.js";
|
|
8
|
+
import Ee from "../MessageSmsInvite/MessageSmsInvite.vue.js";
|
|
9
|
+
import Ae from "../../1_atoms/Tooltip/Tooltip.vue.js";
|
|
10
|
+
import { useMessageActions as Le } from "../../../hooks/messages/useMessageActions.js";
|
|
11
|
+
import { useMessageLinks as Ne } from "../../../hooks/messages/useMessageLinks.js";
|
|
12
|
+
import { useChannelAccentColor as Ve } from "../../../hooks/messages/useChannelAccentColor.js";
|
|
13
|
+
import { useSubtextTooltip as $e } from "../../../hooks/messages/useSubtextTooltip.js";
|
|
14
|
+
import { getStatus as Be, getStatusTitle as Pe } from "../../../functions/getStatusMessage.js";
|
|
15
|
+
import { getMessageClass as De } from "../../../functions/getMessageClass.js";
|
|
16
|
+
import { createReactionHandlers as Ue } from "../../../functions/createReactionHandlers.js";
|
|
17
17
|
import "../../../functions/parseMarkdown.js";
|
|
18
18
|
import "../../../hooks/useMessageDraft.js";
|
|
19
19
|
import "../../../hooks/useSearchModel.js";
|
|
20
|
-
import { useTheme as
|
|
20
|
+
import { useTheme as Ze } from "../../../hooks/useTheme.js";
|
|
21
21
|
/* empty css */
|
|
22
22
|
/* empty css */
|
|
23
|
-
const
|
|
23
|
+
const je = ["messageId"], He = ["src"], Oe = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "audio-message__subtext"
|
|
26
|
-
},
|
|
26
|
+
}, qe = { class: "audio-message__audio-container" }, ze = ["src"], We = { class: "audio-message__progress-wrapper" }, Ge = ["max"], Je = { class: "audio-message__speed-btn-container" }, Ke = { class: "audio-message__player-controls" }, Qe = { class: "audio-message__current-time" }, Xe = { class: "audio-message__duration" }, Ye = {
|
|
27
27
|
key: 1,
|
|
28
28
|
class: "audio-message__transcript-container"
|
|
29
|
-
},
|
|
29
|
+
}, _e = {
|
|
30
30
|
key: 2,
|
|
31
31
|
class: "audio-message__text-container"
|
|
32
|
-
},
|
|
32
|
+
}, es = ["innerHTML"], ss = { class: "audio-message__info-container" }, ts = { class: "audio-message__time" }, as = ["data-theme"], ns = { class: "audio-message__modal" }, is = { style: { "word-wrap": "break-word", "max-width": "25rem" } }, Fs = /* @__PURE__ */ we({
|
|
33
33
|
__name: "AudioMessage",
|
|
34
34
|
props: {
|
|
35
35
|
message: {
|
|
@@ -52,11 +52,16 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
52
52
|
type: Object,
|
|
53
53
|
required: !1,
|
|
54
54
|
default: () => ({})
|
|
55
|
+
},
|
|
56
|
+
channel: {
|
|
57
|
+
type: String,
|
|
58
|
+
required: !1,
|
|
59
|
+
default: void 0
|
|
55
60
|
}
|
|
56
61
|
},
|
|
57
62
|
emits: ["action", "reply", "sms-invite"],
|
|
58
63
|
setup(e, { emit: K }) {
|
|
59
|
-
const Q =
|
|
64
|
+
const Q = Ce("chatAppId"), { getTheme: V } = Ze(Q), o = e, S = d([
|
|
60
65
|
{
|
|
61
66
|
text: "1.0x",
|
|
62
67
|
speed: 1
|
|
@@ -73,7 +78,7 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
73
78
|
text: "2.0x",
|
|
74
79
|
speed: 2
|
|
75
80
|
}
|
|
76
|
-
]), R = d(0), I =
|
|
81
|
+
]), R = d(0), I = w(() => S.value[R.value] ?? S.value[0]), X = () => {
|
|
77
82
|
R.value = (R.value + 1) % S.value.length, t.value && (t.value.playbackRate = I.value.speed);
|
|
78
83
|
}, F = K, t = d(), f = d(!1), y = d(0), r = d(0), p = d(!1), {
|
|
79
84
|
isOpenMenu: E,
|
|
@@ -83,18 +88,18 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
83
88
|
clickAction: _,
|
|
84
89
|
viewsAction: B,
|
|
85
90
|
handleClickReplied: ee
|
|
86
|
-
} =
|
|
91
|
+
} = Le(o.message, F), x = d(!1), se = async () => {
|
|
87
92
|
var u, s, v;
|
|
88
|
-
if (
|
|
93
|
+
if (o.message.url)
|
|
89
94
|
try {
|
|
90
|
-
const n = await fetch(
|
|
95
|
+
const n = await fetch(o.message.url, {
|
|
91
96
|
headers: {
|
|
92
97
|
Accept: "audio/*"
|
|
93
98
|
}
|
|
94
99
|
});
|
|
95
100
|
if (!n.ok)
|
|
96
101
|
throw new Error(`HTTP error! status: ${n.status}`);
|
|
97
|
-
const H = n.headers.get("content-type") || "",
|
|
102
|
+
const H = n.headers.get("content-type") || "", ve = await n.blob(), T = ((s = (u = o.message.url.split(".").pop()) == null ? void 0 : u.split("?")[0]) == null ? void 0 : s.toLowerCase()) || "", fe = {
|
|
98
103
|
"audio/mpeg": "mp3",
|
|
99
104
|
"audio/mp3": "mp3",
|
|
100
105
|
"audio/wav": "wav",
|
|
@@ -106,15 +111,15 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
106
111
|
"audio/m4a": "m4a",
|
|
107
112
|
"audio/x-m4a": "m4a",
|
|
108
113
|
"application/octet-stream": T || "mp3"
|
|
109
|
-
}, O = T && ["mp3", "wav", "ogg", "webm", "aac", "flac", "m4a"].includes(T) ? T :
|
|
110
|
-
b.href = z, b.download =
|
|
114
|
+
}, O = T && ["mp3", "wav", "ogg", "webm", "aac", "flac", "m4a"].includes(T) ? T : fe[H] || "mp3", q = o.message.url.split("/"), M = decodeURIComponent(((v = q[q.length - 1]) == null ? void 0 : v.split("?")[0]) || ""), pe = M ? M.includes(".") ? M : `${M}.${O}` : `audio-${o.message.messageId}.${O}`, z = window.URL.createObjectURL(ve), b = document.createElement("a");
|
|
115
|
+
b.href = z, b.download = pe, document.body.appendChild(b), b.click(), document.body.removeChild(b), window.URL.revokeObjectURL(z);
|
|
111
116
|
} catch (n) {
|
|
112
|
-
console.error("Ошибка при скачивании аудио:", n), window.open(
|
|
117
|
+
console.error("Ошибка при скачивании аудио:", n), window.open(o.message.url, "_blank");
|
|
113
118
|
}
|
|
114
119
|
}, te = (u) => {
|
|
115
120
|
u.action === "download" ? (se(), A()) : _(u);
|
|
116
|
-
}, { linkedHtml: ae, inNewWindow: P } =
|
|
117
|
-
|
|
121
|
+
}, { linkedHtml: ae, inNewWindow: P } = Ne(() => o.message.text), ne = w(() => Be(o.message.status)), ie = w(() => Pe(o.message.status, o.message.statusMsg)), { bubbleStyle: oe } = Ve(
|
|
122
|
+
w(() => o.message),
|
|
118
123
|
{ cssVariable: "--chotto-audiomessage-right-background-color", position: "right" }
|
|
119
124
|
);
|
|
120
125
|
function D() {
|
|
@@ -123,8 +128,8 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
123
128
|
const U = (u) => {
|
|
124
129
|
const s = Math.floor(u / 60), v = Math.floor(u % 60);
|
|
125
130
|
return `${s.toString().padStart(2, "0")}:${v.toString().padStart(2, "0")}`;
|
|
126
|
-
},
|
|
127
|
-
|
|
131
|
+
}, le = w(() => t.value ? U(r.value) : "0:00");
|
|
132
|
+
ye(
|
|
128
133
|
() => r.value,
|
|
129
134
|
() => {
|
|
130
135
|
t.value && p.value && (t.value.duration != 1 / 0 && !Number.isNaN(t.value.duration) && (t.value.currentTime = r.value), r.value == y.value && (f.value = !1));
|
|
@@ -132,15 +137,15 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
132
137
|
);
|
|
133
138
|
const Z = () => {
|
|
134
139
|
t.value && p.value && t.value.duration != 1 / 0 && !Number.isNaN(t.value.duration) && (t.value.currentTime = r.value), p.value = !1;
|
|
135
|
-
},
|
|
140
|
+
}, ue = w(() => t.value ? U(y.value) : "0:00");
|
|
136
141
|
function j(u) {
|
|
137
|
-
return
|
|
142
|
+
return De(u.position, "audio-message");
|
|
138
143
|
}
|
|
139
|
-
const { onToggleReaction:
|
|
140
|
-
function
|
|
141
|
-
F("sms-invite",
|
|
144
|
+
const { onToggleReaction: me, onAddReaction: re, onRemoveReaction: de } = Ue(F), ce = $e(() => o.message, () => o.subtextTooltipData);
|
|
145
|
+
function ge() {
|
|
146
|
+
F("sms-invite", o.message);
|
|
142
147
|
}
|
|
143
|
-
return
|
|
148
|
+
return be(() => {
|
|
144
149
|
t.value != null && (t.value.playbackRate = I.value.speed, t.value.addEventListener("loadedmetadata", () => {
|
|
145
150
|
t.value != null && (t.value.duration == 1 / 0 || Number.isNaN(t.value.duration)) && (t.value.currentTime = 1e101, t.value.addEventListener("timeupdate", () => {
|
|
146
151
|
t.value && (t.value.currentTime = 0, y.value = t.value.duration);
|
|
@@ -156,9 +161,9 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
156
161
|
e.applyStyle(e.message)
|
|
157
162
|
]]),
|
|
158
163
|
messageId: e.message.messageId,
|
|
159
|
-
style: W(
|
|
164
|
+
style: W(i(oe)),
|
|
160
165
|
onMouseleave: s[9] || (s[9] = //@ts-ignore
|
|
161
|
-
(...n) =>
|
|
166
|
+
(...n) => i(A) && i(A)(...n))
|
|
162
167
|
}, [
|
|
163
168
|
e.message.avatar && e.isFirstInSeries ? (l(), c("img", {
|
|
164
169
|
key: 0,
|
|
@@ -167,15 +172,15 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
167
172
|
height: "32",
|
|
168
173
|
width: "32",
|
|
169
174
|
style: W({ gridRow: e.message.subText ? "2" : "1" })
|
|
170
|
-
}, null, 12,
|
|
171
|
-
e.message.subText && e.isFirstInSeries ? (l(), c("p",
|
|
172
|
-
|
|
173
|
-
text:
|
|
175
|
+
}, null, 12, He)) : m("", !0),
|
|
176
|
+
e.message.subText && e.isFirstInSeries ? (l(), c("p", Oe, [
|
|
177
|
+
C(Ae, {
|
|
178
|
+
text: i(ce),
|
|
174
179
|
position: e.message.position === "left" ? "right" : "left",
|
|
175
180
|
offset: 8
|
|
176
181
|
}, {
|
|
177
182
|
default: L(() => [
|
|
178
|
-
|
|
183
|
+
he(g(e.message.subText), 1)
|
|
179
184
|
]),
|
|
180
185
|
_: 1
|
|
181
186
|
}, 8, ["text", "position"])
|
|
@@ -183,22 +188,22 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
183
188
|
a("div", {
|
|
184
189
|
class: h(["audio-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
185
190
|
onMouseenter: s[8] || (s[8] = //@ts-ignore
|
|
186
|
-
(...n) =>
|
|
191
|
+
(...n) => i($) && i($)(...n))
|
|
187
192
|
}, [
|
|
188
|
-
e.message.reply ? (l(), k(
|
|
193
|
+
e.message.reply ? (l(), k(Re, {
|
|
189
194
|
key: 0,
|
|
190
195
|
style: { "grid-column": "1/3" },
|
|
191
196
|
message: e.message.reply,
|
|
192
197
|
class: h(e.message.position),
|
|
193
|
-
onReply:
|
|
198
|
+
onReply: i(ee)
|
|
194
199
|
}, null, 8, ["message", "class", "onReply"])) : m("", !0),
|
|
195
|
-
a("div",
|
|
200
|
+
a("div", qe, [
|
|
196
201
|
a("audio", {
|
|
197
202
|
ref_key: "player",
|
|
198
203
|
ref: t,
|
|
199
204
|
src: e.message.url,
|
|
200
205
|
type: "audio/webm"
|
|
201
|
-
}, null, 8,
|
|
206
|
+
}, null, 8, ze),
|
|
202
207
|
N(a("button", {
|
|
203
208
|
class: "audio-message__play",
|
|
204
209
|
onClick: D
|
|
@@ -241,7 +246,7 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
241
246
|
])], 512), [
|
|
242
247
|
[G, f.value]
|
|
243
248
|
]),
|
|
244
|
-
a("div",
|
|
249
|
+
a("div", We, [
|
|
245
250
|
N(a("input", {
|
|
246
251
|
"onUpdate:modelValue": s[0] || (s[0] = (n) => r.value = n),
|
|
247
252
|
class: "audio-message__progress-bar-container",
|
|
@@ -253,10 +258,10 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
253
258
|
onMouseup: Z,
|
|
254
259
|
onTouchstartPassive: s[2] || (s[2] = (n) => p.value = !0),
|
|
255
260
|
onTouchendPassive: Z
|
|
256
|
-
}, null, 40,
|
|
257
|
-
[
|
|
261
|
+
}, null, 40, Ge), [
|
|
262
|
+
[ke, r.value]
|
|
258
263
|
]),
|
|
259
|
-
a("div",
|
|
264
|
+
a("div", Je, [
|
|
260
265
|
a("button", {
|
|
261
266
|
type: "button",
|
|
262
267
|
class: "audio-message__speed-btn",
|
|
@@ -264,70 +269,70 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
264
269
|
}, g(I.value.text), 1)
|
|
265
270
|
])
|
|
266
271
|
]),
|
|
267
|
-
a("div",
|
|
268
|
-
a("p",
|
|
269
|
-
a("p",
|
|
272
|
+
a("div", Ke, [
|
|
273
|
+
a("p", Qe, g(le.value), 1),
|
|
274
|
+
a("p", Xe, g(ue.value), 1)
|
|
270
275
|
])
|
|
271
276
|
]),
|
|
272
|
-
(v = e.message.transcript) != null && v.text ? (l(), c("div",
|
|
277
|
+
(v = e.message.transcript) != null && v.text ? (l(), c("div", Ye, [
|
|
273
278
|
a("p", {
|
|
274
279
|
onClick: s[3] || (s[3] = (n) => x.value = !x.value)
|
|
275
280
|
}, g(e.message.transcript.text), 1)
|
|
276
281
|
])) : m("", !0),
|
|
277
|
-
e.message.text ? (l(), c("div",
|
|
282
|
+
e.message.text ? (l(), c("div", _e, [
|
|
278
283
|
a("p", {
|
|
279
284
|
onClick: s[4] || (s[4] = //@ts-ignore
|
|
280
|
-
(...n) =>
|
|
281
|
-
innerHTML:
|
|
282
|
-
}, null, 8,
|
|
285
|
+
(...n) => i(P) && i(P)(...n)),
|
|
286
|
+
innerHTML: i(ae)
|
|
287
|
+
}, null, 8, es)
|
|
283
288
|
])) : m("", !0),
|
|
284
|
-
e.message.linkPreview ? (l(), k(
|
|
289
|
+
e.message.linkPreview ? (l(), k(Me, {
|
|
285
290
|
key: 3,
|
|
286
291
|
class: h(["audio-message__link-preview", e.message.position]),
|
|
287
292
|
"link-preview": e.message.linkPreview
|
|
288
293
|
}, null, 8, ["class", "link-preview"])) : m("", !0),
|
|
289
|
-
e.message.embed ? (l(), k(
|
|
294
|
+
e.message.embed ? (l(), k(Se, {
|
|
290
295
|
key: 4,
|
|
291
296
|
class: h(e.message.position),
|
|
292
297
|
embed: e.message.embed
|
|
293
298
|
}, null, 8, ["class", "embed"])) : m("", !0),
|
|
294
|
-
|
|
299
|
+
C(Ie, {
|
|
295
300
|
reactions: e.message.reactions,
|
|
296
301
|
"message-id": e.message.messageId,
|
|
297
302
|
enabled: e.reactionsEnabled,
|
|
298
|
-
onToggleReaction:
|
|
299
|
-
onAddReaction:
|
|
300
|
-
onRemoveReaction:
|
|
303
|
+
onToggleReaction: i(me),
|
|
304
|
+
onAddReaction: i(re),
|
|
305
|
+
onRemoveReaction: i(de)
|
|
301
306
|
}, null, 8, ["reactions", "message-id", "enabled", "onToggleReaction", "onAddReaction", "onRemoveReaction"]),
|
|
302
|
-
a("div",
|
|
307
|
+
a("div", ss, [
|
|
303
308
|
e.message.views ? (l(), c("div", {
|
|
304
309
|
key: 0,
|
|
305
310
|
class: "audio-message__views",
|
|
306
311
|
onClick: s[5] || (s[5] = //@ts-ignore
|
|
307
|
-
(...n) =>
|
|
312
|
+
(...n) => i(B) && i(B)(...n))
|
|
308
313
|
}, [
|
|
309
314
|
s[12] || (s[12] = a("span", { class: "pi pi-eye" }, null, -1)),
|
|
310
315
|
a("p", null, g(e.message.views), 1)
|
|
311
316
|
])) : m("", !0),
|
|
312
|
-
a("span",
|
|
313
|
-
|
|
317
|
+
a("span", ts, g(e.message.time), 1),
|
|
318
|
+
C(Fe, {
|
|
314
319
|
"base-class": "audio-message",
|
|
315
320
|
"message-class": j(e.message),
|
|
316
321
|
"message-status": e.message.status,
|
|
317
322
|
"status-class": ne.value,
|
|
318
|
-
"status-title":
|
|
323
|
+
"status-title": ie.value
|
|
319
324
|
}, null, 8, ["message-class", "message-status", "status-class", "status-title"])
|
|
320
325
|
]),
|
|
321
|
-
|
|
326
|
+
C(Ee, {
|
|
322
327
|
status: e.message.status,
|
|
323
328
|
"has-messenger-account": e.message.hasMessengerAccount,
|
|
324
|
-
channel:
|
|
325
|
-
onSmsInvite:
|
|
329
|
+
channel: e.channel,
|
|
330
|
+
onSmsInvite: ge
|
|
326
331
|
}, null, 8, ["status", "has-messenger-account", "channel"]),
|
|
327
|
-
|
|
332
|
+
i(Y) && e.message.actions ? (l(), c("button", {
|
|
328
333
|
key: 5,
|
|
329
334
|
class: "audio-message__menu-button",
|
|
330
|
-
onClick: s[6] || (s[6] = (n) => E.value = !
|
|
335
|
+
onClick: s[6] || (s[6] = (n) => E.value = !i(E))
|
|
331
336
|
}, [...s[13] || (s[13] = [
|
|
332
337
|
a("svg", {
|
|
333
338
|
width: "4",
|
|
@@ -342,9 +347,9 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
342
347
|
})
|
|
343
348
|
], -1)
|
|
344
349
|
])])) : m("", !0),
|
|
345
|
-
|
|
350
|
+
C(J, null, {
|
|
346
351
|
default: L(() => [
|
|
347
|
-
|
|
352
|
+
i(E) && e.message.actions ? (l(), k(Te, {
|
|
348
353
|
key: 0,
|
|
349
354
|
class: "audio-message__context-menu",
|
|
350
355
|
actions: e.message.actions,
|
|
@@ -353,17 +358,17 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
353
358
|
]),
|
|
354
359
|
_: 1
|
|
355
360
|
}),
|
|
356
|
-
(l(), k(
|
|
357
|
-
|
|
361
|
+
(l(), k(xe, { to: "body" }, [
|
|
362
|
+
C(J, { name: "modal-fade" }, {
|
|
358
363
|
default: L(() => {
|
|
359
364
|
var n;
|
|
360
365
|
return [
|
|
361
366
|
x.value ? (l(), c("div", {
|
|
362
367
|
key: 0,
|
|
363
368
|
class: "audio-message__modal-overlay",
|
|
364
|
-
"data-theme":
|
|
369
|
+
"data-theme": i(V)().theme ? i(V)().theme : null
|
|
365
370
|
}, [
|
|
366
|
-
a("div",
|
|
371
|
+
a("div", ns, [
|
|
367
372
|
a("button", {
|
|
368
373
|
class: "audio-message__modal-close-button",
|
|
369
374
|
onClick: s[7] || (s[7] = (H) => x.value = !1)
|
|
@@ -374,17 +379,17 @@ const He = ["messageId"], Oe = ["src"], qe = {
|
|
|
374
379
|
])]),
|
|
375
380
|
a("p", is, g((n = e.message.transcript) == null ? void 0 : n.text), 1)
|
|
376
381
|
])
|
|
377
|
-
], 8,
|
|
382
|
+
], 8, as)) : m("", !0)
|
|
378
383
|
];
|
|
379
384
|
}),
|
|
380
385
|
_: 1
|
|
381
386
|
})
|
|
382
387
|
]))
|
|
383
388
|
], 34)
|
|
384
|
-
], 46,
|
|
389
|
+
], 46, je);
|
|
385
390
|
};
|
|
386
391
|
}
|
|
387
392
|
});
|
|
388
393
|
export {
|
|
389
|
-
|
|
394
|
+
Fs as default
|
|
390
395
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./FileMessage.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const s = /* @__PURE__ */
|
|
3
|
+
import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const s = /* @__PURE__ */ e(o, [["__scopeId", "data-v-f58e6a40"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|