@mobilon-dev/chotto 0.0.54 → 0.0.56
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.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { openBlock as c, createElementBlock as d, createElementVNode as
|
1
|
+
import { openBlock as c, createElementBlock as d, createElementVNode as l, toDisplayString as w, createCommentVNode as b, renderSlot as G, ref as I, inject as ye, watch as Oe, nextTick as vt, unref as j, withDirectives as ke, withKeys as Ma, vModelText as xt, normalizeClass as x, createVNode as L, Transition as q, withCtx as H, createBlock as F, Fragment as $, renderList as Z, defineComponent as K, onUpdated as ya, resolveDynamicComponent as ba, normalizeStyle as P, useId as St, onMounted as Ne, onUnmounted as zt, computed as U, Teleport as Ot, toRef as va, vModelRadio as Ia, getCurrentInstance as _a, toRaw as Cn, onBeforeUnmount as wa, provide as Ct, reactive as ka, readonly as Na, vShow as Df, resolveComponent as If, h as un, defineAsyncComponent as Da, createApp as ja } from "vue";
|
2
2
|
const z = (e, f) => {
|
3
3
|
const t = e.__vccOpts || e;
|
4
4
|
for (const [n, a] of f)
|
@@ -25,7 +25,7 @@ const z = (e, f) => {
|
|
25
25
|
setup(e, { emit: f }) {
|
26
26
|
const t = e;
|
27
27
|
return (n, a) => e.chat ? (c(), d("div", Ea, [
|
28
|
-
|
28
|
+
l("div", Ta, [
|
29
29
|
t.chat.avatar ? (c(), d("img", {
|
30
30
|
key: 0,
|
31
31
|
src: t.chat.avatar,
|
@@ -33,18 +33,18 @@ const z = (e, f) => {
|
|
33
33
|
height: "48"
|
34
34
|
}, null, 8, Va)) : (c(), d("span", xa))
|
35
35
|
]),
|
36
|
-
|
37
|
-
|
36
|
+
l("div", Sa, [
|
37
|
+
l("h2", za, w(e.chat.name), 1),
|
38
38
|
e.chat["lastActivity.time"] ? (c(), d("p", Oa, w(e.chat["lastActivity.time"]), 1)) : b("", !0)
|
39
39
|
]),
|
40
|
-
|
40
|
+
l("div", Ca, [
|
41
41
|
G(n.$slots, "actions", {}, void 0, !0)
|
42
42
|
])
|
43
43
|
])) : b("", !0);
|
44
44
|
}
|
45
|
-
}, pu = /* @__PURE__ */ z(La, [["__scopeId", "data-v-
|
45
|
+
}, pu = /* @__PURE__ */ z(La, [["__scopeId", "data-v-26bb16be"]]), he = I([]), At = (e) => {
|
46
46
|
const f = I(0);
|
47
|
-
let t = he.value.find(({ id:
|
47
|
+
let t = he.value.find(({ id: o }) => o == e);
|
48
48
|
t != null ? f.value = he.value.indexOf(t) : (he.value.push({
|
49
49
|
id: e,
|
50
50
|
text: "",
|
@@ -56,17 +56,17 @@ const z = (e, f) => {
|
|
56
56
|
text: "",
|
57
57
|
file: void 0
|
58
58
|
};
|
59
|
-
}, a = (
|
59
|
+
}, a = (o) => {
|
60
60
|
he.value[f.value] = {
|
61
61
|
id: i().id,
|
62
|
-
text:
|
62
|
+
text: o,
|
63
63
|
file: i().file
|
64
64
|
};
|
65
|
-
}, A = (
|
65
|
+
}, A = (o) => {
|
66
66
|
he.value[f.value] = {
|
67
67
|
id: i().id,
|
68
68
|
text: i().text,
|
69
|
-
file:
|
69
|
+
file: o
|
70
70
|
};
|
71
71
|
}, s = () => {
|
72
72
|
he.value[f.value] = {
|
@@ -129,7 +129,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
129
129
|
},
|
130
130
|
emits: ["send", "typing", "selectChannel"],
|
131
131
|
setup(e, { emit: f }) {
|
132
|
-
const t = f, n =
|
132
|
+
const t = f, n = ye("chatAppId"), { resetMessage: a, getMessage: A, setMessageText: s } = At(n), i = I(null);
|
133
133
|
Oe(
|
134
134
|
() => A().text,
|
135
135
|
() => {
|
@@ -138,7 +138,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
138
138
|
});
|
139
139
|
}
|
140
140
|
);
|
141
|
-
const
|
141
|
+
const o = (u) => {
|
142
142
|
t("typing", u.target.value);
|
143
143
|
}, r = (u) => {
|
144
144
|
if (u.ctrlKey) {
|
@@ -162,31 +162,31 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
162
162
|
}
|
163
163
|
};
|
164
164
|
return (u, m) => (c(), d("div", Ya, [
|
165
|
-
|
166
|
-
|
165
|
+
l("div", qa, [
|
166
|
+
l("div", {
|
167
167
|
id: "chat-input-first-line-" + j(n),
|
168
168
|
class: "chat-input__first-line"
|
169
169
|
}, null, 8, Ha),
|
170
|
-
|
171
|
-
|
170
|
+
l("div", Fa, [
|
171
|
+
ke(l("textarea", {
|
172
172
|
ref_key: "refInput",
|
173
173
|
ref: i,
|
174
174
|
"onUpdate:modelValue": m[0] || (m[0] = (p) => j(A)().text = p),
|
175
175
|
class: "chat-input__input",
|
176
176
|
placeholder: j(Se)("component.ChatInput.InputPlaceholder"),
|
177
177
|
onKeydown: Ma(r, ["enter"]),
|
178
|
-
onInput:
|
178
|
+
onInput: o
|
179
179
|
}, null, 40, Pa), [
|
180
180
|
[xt, j(A)().text]
|
181
181
|
]),
|
182
|
-
|
182
|
+
l("button", {
|
183
183
|
class: x(["chat-input__button-send", { "chat-input__button-send-disabled": j(A)().text == "" && !j(A)().file }]),
|
184
184
|
onClick: g
|
185
185
|
}, m[1] || (m[1] = [
|
186
|
-
|
186
|
+
l("span", { class: "pi pi-send" }, null, -1)
|
187
187
|
]), 2)
|
188
188
|
]),
|
189
|
-
|
189
|
+
l("div", $a, [
|
190
190
|
G(u.$slots, "buttons", {}, void 0, !0)
|
191
191
|
])
|
192
192
|
])
|
@@ -223,7 +223,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
223
223
|
A.chats.forEach((p) => p.isSelected = !1);
|
224
224
|
const m = A.chats.find((p) => p.chatId === u.chatId);
|
225
225
|
m.isSelected = !0, s("select", u);
|
226
|
-
},
|
226
|
+
}, o = () => A.chats.toSorted((u, m) => {
|
227
227
|
if (Number(u["lastActivity.timestamp"]) > Number(m["lastActivity.timestamp"])) return -1;
|
228
228
|
if (Number(u["lastActivity.timestamp"]) < Number(m["lastActivity.timestamp"])) return 1;
|
229
229
|
if (Number(u["lastActivity.timestamp"]) == Number(m["lastActivity.timestamp"])) return 0;
|
@@ -235,11 +235,11 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
235
235
|
t.value = u;
|
236
236
|
}, g = (u) => s("action", u);
|
237
237
|
return (u, m) => (c(), d("div", Ka, [
|
238
|
-
|
238
|
+
l("div", {
|
239
239
|
class: "chat-list__title-container",
|
240
240
|
onMouseleave: a
|
241
241
|
}, [
|
242
|
-
|
242
|
+
l("h2", Ja, w(j(Se)("component.ChatList.Title")), 1),
|
243
243
|
e.actions.length ? (c(), d("button", {
|
244
244
|
key: 0,
|
245
245
|
class: "chat-list__button-actions",
|
@@ -264,9 +264,9 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
264
264
|
class: "chat-list__filter",
|
265
265
|
onUpdate: r
|
266
266
|
})) : b("", !0),
|
267
|
-
|
268
|
-
|
269
|
-
(c(!0), d($, null, Z(
|
267
|
+
l("div", Xa, [
|
268
|
+
l("div", eA, [
|
269
|
+
(c(!0), d($, null, Z(o().filter((p) => p.isFixedTop), (p) => (c(), F(j(dt), {
|
270
270
|
key: p.chatId,
|
271
271
|
class: "chat-list__item",
|
272
272
|
chat: p,
|
@@ -274,8 +274,8 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
274
274
|
onAction: g
|
275
275
|
}, null, 8, ["chat"]))), 128))
|
276
276
|
]),
|
277
|
-
|
278
|
-
(c(!0), d($, null, Z(
|
277
|
+
l("div", fA, [
|
278
|
+
(c(!0), d($, null, Z(o().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (c(), F(j(dt), {
|
279
279
|
key: p.chatId,
|
280
280
|
class: "chat-list__item",
|
281
281
|
chat: p,
|
@@ -283,8 +283,8 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
283
283
|
onAction: g
|
284
284
|
}, null, 8, ["chat"]))), 128))
|
285
285
|
]),
|
286
|
-
|
287
|
-
(c(!0), d($, null, Z(
|
286
|
+
l("div", tA, [
|
287
|
+
(c(!0), d($, null, Z(o().filter((p) => p.isFixedBottom), (p) => (c(), F(j(dt), {
|
288
288
|
key: p.chatId,
|
289
289
|
class: "chat-list__item",
|
290
290
|
chat: p,
|
@@ -295,7 +295,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
295
295
|
])
|
296
296
|
]));
|
297
297
|
}
|
298
|
-
}, Mu = /* @__PURE__ */ z(nA, [["__scopeId", "data-v-
|
298
|
+
}, Mu = /* @__PURE__ */ z(nA, [["__scopeId", "data-v-ba9fb868"]]), aA = { class: "message-feed__container" }, AA = {
|
299
299
|
key: 0,
|
300
300
|
class: "message-feed__unread-amount"
|
301
301
|
}, sA = /* @__PURE__ */ K({
|
@@ -337,7 +337,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
337
337
|
"system.date": Xl,
|
338
338
|
"message.typing": On
|
339
339
|
})[u];
|
340
|
-
function
|
340
|
+
function o() {
|
341
341
|
a.isScrollToBottomOnUpdateObjectsEnabled && vt(function() {
|
342
342
|
const u = j(t);
|
343
343
|
u.scrollTop = u.scrollHeight;
|
@@ -349,7 +349,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
349
349
|
u.scrollTop = u.scrollHeight;
|
350
350
|
});
|
351
351
|
}
|
352
|
-
ya(() =>
|
352
|
+
ya(() => o), Oe(() => a.objects, o);
|
353
353
|
const g = (u) => {
|
354
354
|
A("messageAction", u);
|
355
355
|
};
|
@@ -359,7 +359,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
359
359
|
class: "message-feed",
|
360
360
|
onScroll: s
|
361
361
|
}, [
|
362
|
-
|
362
|
+
l("div", aA, [
|
363
363
|
(c(!0), d($, null, Z(e.objects, (p) => (c(), F(ba(i(p.type)), {
|
364
364
|
key: p.messageId,
|
365
365
|
class: "message-feed__message",
|
@@ -382,7 +382,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
382
382
|
onClick: r
|
383
383
|
}, [
|
384
384
|
e.buttonParams ? (c(), d("div", AA, w(e.buttonParams.unreadAmount), 1)) : b("", !0),
|
385
|
-
m[0] || (m[0] =
|
385
|
+
m[0] || (m[0] = l("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
386
386
|
])) : b("", !0)
|
387
387
|
]),
|
388
388
|
_: 1
|
@@ -407,19 +407,19 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
407
407
|
return (f, t) => (c(), d("div", iA, [
|
408
408
|
e.user ? (c(), d("div", oA, [
|
409
409
|
e.user.avatar ? (c(), d("div", lA, [
|
410
|
-
|
410
|
+
l("span", {
|
411
411
|
class: "profile__status",
|
412
412
|
style: P({ backgroundColor: e.user.status })
|
413
413
|
}, null, 4),
|
414
|
-
|
414
|
+
l("img", {
|
415
415
|
src: e.user.avatar,
|
416
416
|
height: "48",
|
417
417
|
width: "48"
|
418
418
|
}, null, 8, rA)
|
419
419
|
])) : b("", !0),
|
420
|
-
|
421
|
-
|
422
|
-
|
420
|
+
l("h2", uA, w(e.user.name), 1),
|
421
|
+
l("p", cA, w(e.user.email), 1),
|
422
|
+
l("p", dA, w(e.user.phone), 1)
|
423
423
|
])) : b("", !0)
|
424
424
|
]));
|
425
425
|
}
|
@@ -460,7 +460,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
460
460
|
setup(e, { emit: f }) {
|
461
461
|
const t = e, n = St(), a = f, A = I(null), s = I(null), i = (m) => {
|
462
462
|
A.value.$el.style.display = "none", a("click", m);
|
463
|
-
},
|
463
|
+
}, o = () => {
|
464
464
|
t.disabled || (t.mode == "click" && (A.value.$el.style.display = "inherit"), a("buttonClick"));
|
465
465
|
}, r = () => {
|
466
466
|
t.mode == "hover" && !t.disabled && (A.value.$el.style.display = "inherit");
|
@@ -498,15 +498,15 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
|
|
498
498
|
ref: s,
|
499
499
|
style: { position: "relative", width: "fit-content" }
|
500
500
|
}, [
|
501
|
-
|
501
|
+
l("div", {
|
502
502
|
class: x(["button", {
|
503
503
|
"disabled-button": e.disabled
|
504
504
|
}]),
|
505
|
-
onClick:
|
505
|
+
onClick: o,
|
506
506
|
onMouseover: r,
|
507
507
|
onMouseout: g
|
508
508
|
}, [
|
509
|
-
|
509
|
+
l("span", {
|
510
510
|
class: x(e.buttonClass)
|
511
511
|
}, w(e.buttonTitle), 3)
|
512
512
|
], 34),
|
@@ -597,36 +597,36 @@ const Iu = (e) => {
|
|
597
597
|
n("reset");
|
598
598
|
}
|
599
599
|
return (A, s) => (c(), d("div", hA, [
|
600
|
-
|
600
|
+
l("div", MA, [
|
601
601
|
t.isImage ? (c(), d("div", yA, [
|
602
|
-
|
602
|
+
l("img", {
|
603
603
|
src: e.previewUrl,
|
604
604
|
alt: "Image Preview",
|
605
605
|
class: "preview__image"
|
606
606
|
}, null, 8, bA)
|
607
607
|
])) : t.isVideo ? (c(), d("div", vA, [
|
608
|
-
|
608
|
+
l("video", {
|
609
609
|
src: e.previewUrl,
|
610
610
|
class: "preview__video"
|
611
611
|
}, null, 8, IA)
|
612
612
|
])) : t.isAudio ? (c(), d("div", _A, s[0] || (s[0] = [
|
613
|
-
|
613
|
+
l("span", {
|
614
614
|
class: "pi pi-headphones",
|
615
615
|
style: { "font-size": "2.5rem" }
|
616
616
|
}, null, -1)
|
617
617
|
]))) : (c(), d("div", wA, s[1] || (s[1] = [
|
618
|
-
|
618
|
+
l("span", {
|
619
619
|
class: "pi pi-file",
|
620
620
|
style: { "font-size": "2.5rem" }
|
621
621
|
}, null, -1)
|
622
622
|
])))
|
623
623
|
]),
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
624
|
+
l("div", kA, [
|
625
|
+
l("div", NA, [
|
626
|
+
l("span", DA, w(e.fileName), 1),
|
627
|
+
l("span", jA, w(e.fileSize), 1)
|
628
628
|
]),
|
629
|
-
|
629
|
+
l("span", {
|
630
630
|
class: "pi pi-times preview__reset",
|
631
631
|
style: { "font-size": "1rem" },
|
632
632
|
onClick: a
|
@@ -647,7 +647,7 @@ const Iu = (e) => {
|
|
647
647
|
},
|
648
648
|
emits: ["fileUploaded"],
|
649
649
|
setup(e, { emit: f }) {
|
650
|
-
const t = e, n = I(null), a = I(""), A = I(""), s = I(!1), i = I(!1),
|
650
|
+
const t = e, n = I(null), a = I(""), A = I(""), s = I(!1), i = I(!1), o = I(!1), r = I(null), g = I(""), u = ye("chatAppId"), { setMessageFile: m, resetMessageFile: p, getMessage: h } = At(u), M = [
|
651
651
|
{
|
652
652
|
action: "audio/*",
|
653
653
|
title: "Аудио",
|
@@ -674,7 +674,7 @@ const Iu = (e) => {
|
|
674
674
|
_(), console.log("onFileSelected", T.target.files[0]), n.value = T.target.files[0], n.value && (D(), N());
|
675
675
|
}, D = () => {
|
676
676
|
const T = n.value, O = dn(T.type);
|
677
|
-
if (s.value = !1, i.value = !1,
|
677
|
+
if (s.value = !1, i.value = !1, o.value = !1, O === "image" ? s.value = !0 : O === "video" ? i.value = !0 : O === "audio" && (o.value = !0), s.value || i.value) {
|
678
678
|
const R = new FileReader();
|
679
679
|
R.onload = (te) => {
|
680
680
|
A.value = te.target.result;
|
@@ -714,11 +714,11 @@ const Iu = (e) => {
|
|
714
714
|
r.value && y && t.state == "active" && r.value.click();
|
715
715
|
};
|
716
716
|
return (T, O) => (c(), d($, null, [
|
717
|
-
|
717
|
+
l("div", VA, [
|
718
718
|
a.value === "uploading" ? (c(), d("div", xA, O[0] || (O[0] = [
|
719
|
-
|
719
|
+
l("p", null, "Загрузка файла...", -1)
|
720
720
|
]))) : a.value === "error" ? (c(), d("div", SA, O[1] || (O[1] = [
|
721
|
-
|
721
|
+
l("p", null, "Ошибка при загрузке файла.", -1)
|
722
722
|
]))) : (c(), F(Un, {
|
723
723
|
key: 2,
|
724
724
|
actions: M,
|
@@ -729,7 +729,7 @@ const Iu = (e) => {
|
|
729
729
|
onClick: E,
|
730
730
|
onButtonClick: S
|
731
731
|
}, null, 8, ["disabled"])),
|
732
|
-
|
732
|
+
l("input", {
|
733
733
|
ref_key: "fileInput",
|
734
734
|
ref: r,
|
735
735
|
style: { display: "none" },
|
@@ -745,7 +745,7 @@ const Iu = (e) => {
|
|
745
745
|
"preview-url": A.value,
|
746
746
|
"is-image": s.value,
|
747
747
|
"is-video": i.value,
|
748
|
-
"is-audio":
|
748
|
+
"is-audio": o.value,
|
749
749
|
"file-name": j(h)().file.name,
|
750
750
|
"file-size": g.value,
|
751
751
|
onReset: _
|
@@ -763,31 +763,31 @@ const Iu = (e) => {
|
|
763
763
|
show: Boolean
|
764
764
|
},
|
765
765
|
setup(e) {
|
766
|
-
const f = e, t = () => {
|
767
|
-
const
|
768
|
-
return
|
769
|
-
},
|
770
|
-
const
|
771
|
-
|
772
|
-
},
|
773
|
-
document.
|
766
|
+
const f = e, t = ye("chatAppId"), n = () => {
|
767
|
+
const s = f.themes.find((i) => i.default === !0);
|
768
|
+
return s ? s.code : f.themes[0].code;
|
769
|
+
}, a = (s) => {
|
770
|
+
const i = s.target.value;
|
771
|
+
A(i);
|
772
|
+
}, A = (s) => {
|
773
|
+
document.getElementById(t).dataset.theme = s;
|
774
774
|
};
|
775
775
|
return Ne(() => {
|
776
|
-
const
|
777
|
-
|
778
|
-
}), (
|
779
|
-
|
780
|
-
onChange:
|
776
|
+
const s = n();
|
777
|
+
A(s);
|
778
|
+
}), (s, i) => e.show ? (c(), d("div", OA, [
|
779
|
+
l("select", {
|
780
|
+
onChange: i[0] || (i[0] = (o) => a(o))
|
781
781
|
}, [
|
782
|
-
(c(!0), d($, null, Z(f.themes, (
|
783
|
-
key:
|
784
|
-
value:
|
785
|
-
selected:
|
786
|
-
}, w(
|
782
|
+
(c(!0), d($, null, Z(f.themes, (o, r) => (c(), d("option", {
|
783
|
+
key: r,
|
784
|
+
value: o.code,
|
785
|
+
selected: o.default === !0
|
786
|
+
}, w(o.name), 9, CA))), 128))
|
787
787
|
], 32)
|
788
788
|
])) : b("", !0);
|
789
789
|
}
|
790
|
-
}, Nu = /* @__PURE__ */ z(LA, [["__scopeId", "data-v-
|
790
|
+
}, Nu = /* @__PURE__ */ z(LA, [["__scopeId", "data-v-a950b8eb"]]), UA = { class: "sidebar" }, BA = { class: "sidebar__container" }, QA = { class: "sidebar__list" }, RA = ["onClick"], YA = ["src", "alt"], qA = { key: 1 }, HA = { class: "sidebar__list-fixed" }, FA = ["onClick"], PA = ["src", "alt"], $A = { key: 1 }, WA = {
|
791
791
|
__name: "SideBar",
|
792
792
|
props: {
|
793
793
|
sidebarItems: {
|
@@ -799,21 +799,21 @@ const Iu = (e) => {
|
|
799
799
|
emits: ["selectItem"],
|
800
800
|
setup(e, { emit: f }) {
|
801
801
|
const n = va(e, "sidebarItems"), a = f, A = (i) => {
|
802
|
-
const
|
803
|
-
a("selectItem",
|
802
|
+
const o = n.value.find((r) => r.itemId === i);
|
803
|
+
a("selectItem", o);
|
804
804
|
}, s = (i) => {
|
805
|
-
const
|
806
|
-
return
|
805
|
+
const o = i.split(" ");
|
806
|
+
return o.length > 2 ? o.slice(0, 2).join(" ") : i;
|
807
807
|
};
|
808
|
-
return (i,
|
809
|
-
|
810
|
-
|
808
|
+
return (i, o) => (c(), d("div", UA, [
|
809
|
+
l("div", BA, [
|
810
|
+
l("ul", QA, [
|
811
811
|
(c(!0), d($, null, Z(n.value.filter((r) => !r.isFixedBottom), (r, g) => (c(), d("li", {
|
812
812
|
key: g,
|
813
813
|
class: "sidebar__item",
|
814
814
|
onClick: (u) => A(r.itemId)
|
815
815
|
}, [
|
816
|
-
|
816
|
+
l("img", {
|
817
817
|
src: r.icon,
|
818
818
|
alt: r.name,
|
819
819
|
class: x(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
|
@@ -825,13 +825,13 @@ const Iu = (e) => {
|
|
825
825
|
r.name ? (c(), d("p", qA, w(s(r.name)), 1)) : b("", !0)
|
826
826
|
], 8, RA))), 128))
|
827
827
|
]),
|
828
|
-
|
828
|
+
l("ul", HA, [
|
829
829
|
(c(!0), d($, null, Z(n.value.filter((r) => r.isFixedBottom), (r, g) => (c(), d("li", {
|
830
830
|
key: g,
|
831
831
|
class: "sidebar__item",
|
832
832
|
onClick: (u) => A(r.itemId)
|
833
833
|
}, [
|
834
|
-
|
834
|
+
l("img", {
|
835
835
|
src: r.icon,
|
836
836
|
alt: r.name,
|
837
837
|
class: x(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
|
@@ -861,16 +861,16 @@ const Iu = (e) => {
|
|
861
861
|
emits: ["close-panel"],
|
862
862
|
setup(e, { emit: f }) {
|
863
863
|
return (t, n) => (c(), d("div", KA, [
|
864
|
-
|
864
|
+
l("div", JA, [
|
865
865
|
e.title ? (c(), d("p", GA, w(e.title), 1)) : b("", !0),
|
866
|
-
|
866
|
+
l("button", {
|
867
867
|
class: "chat-panel__button-close",
|
868
868
|
onClick: n[0] || (n[0] = (a) => t.$emit("close-panel"))
|
869
869
|
}, n[1] || (n[1] = [
|
870
|
-
|
870
|
+
l("span", { class: "pi pi-times" }, null, -1)
|
871
871
|
]))
|
872
872
|
]),
|
873
|
-
|
873
|
+
l("div", null, [
|
874
874
|
G(t.$slots, "content", {}, void 0, !0)
|
875
875
|
])
|
876
876
|
]));
|
@@ -907,17 +907,17 @@ const Iu = (e) => {
|
|
907
907
|
const t = e, n = f, A = I(t.channels.find((i) => i.type === "default")), s = (i) => {
|
908
908
|
A.value = i, n("selectChannel", A.value);
|
909
909
|
};
|
910
|
-
return (i,
|
911
|
-
|
910
|
+
return (i, o) => (c(), d("div", XA, [
|
911
|
+
l("div", {
|
912
912
|
class: x(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
|
913
913
|
}, [
|
914
914
|
A.value ? (c(), d("div", es, [
|
915
915
|
A.value.icon ? (c(), d("span", fs, [
|
916
|
-
|
916
|
+
l("img", {
|
917
917
|
src: A.value.icon
|
918
918
|
}, null, 8, ts)
|
919
919
|
])) : b("", !0),
|
920
|
-
|
920
|
+
l("span", ns, w(A.value.title), 1)
|
921
921
|
])) : (c(), d("span", as, "Канал не выбран")),
|
922
922
|
L(Un, {
|
923
923
|
actions: e.channels,
|
@@ -965,10 +965,10 @@ const Iu = (e) => {
|
|
965
965
|
n("select", t.chat);
|
966
966
|
}, A = () => t.chat.isSelected ? "chat-item__selected" : "chat-item", s = (y) => {
|
967
967
|
g(), n("action", { chatId: t.chat.chatId, ...y });
|
968
|
-
}, i = I(!1),
|
969
|
-
|
968
|
+
}, i = I(!1), o = I(!1), r = () => {
|
969
|
+
o.value = !0;
|
970
970
|
}, g = () => {
|
971
|
-
|
971
|
+
o.value = !1, i.value = !1;
|
972
972
|
}, u = U(() => $e(t.chat["lastMessage.status"]));
|
973
973
|
let m;
|
974
974
|
const p = I(0), h = [Se("component.ChatItem.typing") + ".", Se("component.ChatItem.typing") + "..", Se("component.ChatItem.typing") + "..."], M = U(() => t.chat.typing ? h[p.value] : t.chat.lastMessage);
|
@@ -984,13 +984,13 @@ const Iu = (e) => {
|
|
984
984
|
class: x(A()),
|
985
985
|
onClick: a
|
986
986
|
}, [
|
987
|
-
|
987
|
+
l("div", {
|
988
988
|
class: "chat-item__container",
|
989
989
|
onMouseenter: r,
|
990
990
|
onMouseleave: g
|
991
991
|
}, [
|
992
|
-
|
993
|
-
|
992
|
+
l("div", ss, [
|
993
|
+
l("span", {
|
994
994
|
class: "chat-item__status-user",
|
995
995
|
style: P({ backgroundColor: t.chat.status })
|
996
996
|
}, null, 4),
|
@@ -1001,19 +1001,19 @@ const Iu = (e) => {
|
|
1001
1001
|
width: "48"
|
1002
1002
|
}, null, 8, is)) : (c(), d("span", os))
|
1003
1003
|
]),
|
1004
|
-
|
1005
|
-
|
1004
|
+
l("div", ls, [
|
1005
|
+
l("div", rs, w(e.chat.name), 1),
|
1006
1006
|
e.chat.lastMessage || e.chat.typing ? (c(), d("div", us, w(M.value), 1)) : b("", !0)
|
1007
1007
|
]),
|
1008
|
-
|
1009
|
-
e.chat["lastActivity.time"] && !
|
1008
|
+
l("div", cs, [
|
1009
|
+
e.chat["lastActivity.time"] && !o.value ? (c(), d("div", ds, w(e.chat["lastActivity.time"]), 1)) : b("", !0),
|
1010
1010
|
e.chat.countUnread > 0 ? (c(), d("div", gs, w(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) : b("", !0),
|
1011
|
-
|
1011
|
+
o.value && e.chat.actions ? (c(), d("button", {
|
1012
1012
|
key: 2,
|
1013
1013
|
class: "chat-item__menu-button",
|
1014
1014
|
onClick: _[0] || (_[0] = (k) => i.value = !i.value)
|
1015
1015
|
}, _[1] || (_[1] = [
|
1016
|
-
|
1016
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
1017
1017
|
]))) : b("", !0),
|
1018
1018
|
e.chat.countUnread < 1 ? (c(), d("div", ms, [
|
1019
1019
|
j(Pe).includes(e.chat["lastMessage.status"]) ? (c(), d("div", {
|
@@ -1021,7 +1021,7 @@ const Iu = (e) => {
|
|
1021
1021
|
class: x(["chat-item__status-message", u.value])
|
1022
1022
|
}, [
|
1023
1023
|
e.chat["lastMessage.status"] !== "sent" ? (c(), d("span", ps)) : b("", !0),
|
1024
|
-
_[2] || (_[2] =
|
1024
|
+
_[2] || (_[2] = l("span", { class: "pi pi-check" }, null, -1))
|
1025
1025
|
], 2)) : b("", !0),
|
1026
1026
|
e.chat.isFixedTop || e.chat.isFixedBottom ? (c(), d("span", hs)) : b("", !0)
|
1027
1027
|
])) : b("", !0)
|
@@ -1049,8 +1049,8 @@ const Iu = (e) => {
|
|
1049
1049
|
n("update", A.value);
|
1050
1050
|
};
|
1051
1051
|
return (A, s) => (c(), d("div", ys, [
|
1052
|
-
|
1053
|
-
|
1052
|
+
l("div", bs, [
|
1053
|
+
l("input", {
|
1054
1054
|
ref_key: "refInput",
|
1055
1055
|
ref: t,
|
1056
1056
|
class: "chat-filter__input",
|
@@ -1089,10 +1089,10 @@ const Iu = (e) => {
|
|
1089
1089
|
},
|
1090
1090
|
emits: ["closeTemplateWindow", "pasteTemplate"],
|
1091
1091
|
setup(e, { emit: f }) {
|
1092
|
-
const t = e, n =
|
1093
|
-
s("closeTemplateWindow"), a(
|
1094
|
-
}, s = f, i = I(null),
|
1095
|
-
t.templates.forEach((M) => M.isSelected = !1), h.isSelected = !0,
|
1092
|
+
const t = e, n = ye("chatAppId"), { setMessageText: a } = At(n), A = () => {
|
1093
|
+
s("closeTemplateWindow"), a(o.value.template);
|
1094
|
+
}, s = f, i = I(null), o = I(null), r = I(""), g = (h) => {
|
1095
|
+
t.templates.forEach((M) => M.isSelected = !1), h.isSelected = !0, o.value = h;
|
1096
1096
|
}, u = () => {
|
1097
1097
|
t.templates.forEach((h) => h.isSelected = !1);
|
1098
1098
|
}, m = U(() => i.value ? t.templates.filter((h) => h.groupId === i.value.groupId) : t.templates), p = U(() => {
|
@@ -1100,27 +1100,27 @@ const Iu = (e) => {
|
|
1100
1100
|
return m.value.filter((M) => (console.log(M), M.title.toLowerCase().includes(h) || M.template.toLowerCase().includes(h)));
|
1101
1101
|
});
|
1102
1102
|
return (h, M) => (c(), d("div", ws, [
|
1103
|
-
|
1104
|
-
|
1105
|
-
|
1103
|
+
l("div", ks, [
|
1104
|
+
l("button", Ns, [
|
1105
|
+
l("span", {
|
1106
1106
|
class: "pi pi-times",
|
1107
1107
|
onClick: M[0] || (M[0] = (y) => h.$emit("closeTemplateWindow"))
|
1108
1108
|
})
|
1109
1109
|
]),
|
1110
|
-
|
1110
|
+
l("ul", Ds, [
|
1111
1111
|
(c(!0), d($, null, Z(e.groupTemplates, (y, _) => (c(), d("li", {
|
1112
1112
|
key: _,
|
1113
1113
|
class: x(["template-selector__item-group", { "template-selector__item-selected": i.value === y }]),
|
1114
1114
|
onClick: u
|
1115
1115
|
}, [
|
1116
|
-
|
1116
|
+
l("label", js, [
|
1117
1117
|
y.iconUrl ? (c(), d("img", {
|
1118
1118
|
key: 0,
|
1119
1119
|
class: "template-selector__item-group-icon",
|
1120
1120
|
src: y.iconUrl,
|
1121
1121
|
alt: y.title
|
1122
1122
|
}, null, 8, Es)) : b("", !0),
|
1123
|
-
|
1123
|
+
ke(l("input", {
|
1124
1124
|
id: _,
|
1125
1125
|
"onUpdate:modelValue": M[1] || (M[1] = (k) => i.value = k),
|
1126
1126
|
value: y,
|
@@ -1129,12 +1129,12 @@ const Iu = (e) => {
|
|
1129
1129
|
}, null, 8, Ts), [
|
1130
1130
|
[Ia, i.value]
|
1131
1131
|
]),
|
1132
|
-
|
1132
|
+
l("span", null, w(y.title), 1)
|
1133
1133
|
])
|
1134
1134
|
], 2))), 128))
|
1135
1135
|
]),
|
1136
|
-
|
1137
|
-
|
1136
|
+
l("div", Vs, [
|
1137
|
+
ke(l("input", {
|
1138
1138
|
"onUpdate:modelValue": M[2] || (M[2] = (y) => r.value = y),
|
1139
1139
|
class: "template-selector__searching-input",
|
1140
1140
|
type: "text",
|
@@ -1143,29 +1143,29 @@ const Iu = (e) => {
|
|
1143
1143
|
[xt, r.value]
|
1144
1144
|
])
|
1145
1145
|
]),
|
1146
|
-
|
1146
|
+
l("div", xs, [
|
1147
1147
|
p.value.length !== 0 ? (c(), d("ul", Ss, [
|
1148
1148
|
(c(!0), d($, null, Z(p.value, (y, _) => (c(), d("li", {
|
1149
1149
|
key: _,
|
1150
1150
|
class: x(["template-selector__item-template", { "template-selector__item-selected": y.isSelected }]),
|
1151
1151
|
onClick: (k) => g(y)
|
1152
1152
|
}, [
|
1153
|
-
|
1154
|
-
|
1155
|
-
|
1153
|
+
l("div", Os, [
|
1154
|
+
l("p", Cs, w(y.title), 1),
|
1155
|
+
l("p", Ls, w(y.template), 1)
|
1156
1156
|
])
|
1157
1157
|
], 10, zs))), 128))
|
1158
1158
|
])) : (c(), d("p", Us, " Шаблоны отсутствуют "))
|
1159
1159
|
]),
|
1160
|
-
|
1161
|
-
|
1162
|
-
|
1163
|
-
|
1164
|
-
M[3] || (M[3] =
|
1160
|
+
l("div", Bs, [
|
1161
|
+
o.value ? (c(), d("div", Qs, [
|
1162
|
+
l("div", Rs, [
|
1163
|
+
l("p", Ys, w(o.value.template), 1),
|
1164
|
+
M[3] || (M[3] = l("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
1165
1165
|
])
|
1166
1166
|
])) : (c(), d("p", qs, " Предпросмотр шаблона "))
|
1167
1167
|
]),
|
1168
|
-
|
1168
|
+
l("button", {
|
1169
1169
|
class: "template-selector__button-paste",
|
1170
1170
|
onClick: A
|
1171
1171
|
}, " Вставить ")
|
@@ -1204,7 +1204,7 @@ const Iu = (e) => {
|
|
1204
1204
|
f.mode == "hover" && f.state == "active" && (n.value.style.display = "none");
|
1205
1205
|
}, i = (r) => {
|
1206
1206
|
f.mode == "click" && !t.value.contains(r.target) && !n.value.contains(r.target) && (n.value.style.display = "none");
|
1207
|
-
},
|
1207
|
+
}, o = () => {
|
1208
1208
|
n.value.style.display = "none";
|
1209
1209
|
};
|
1210
1210
|
return Ne(() => {
|
@@ -1212,7 +1212,7 @@ const Iu = (e) => {
|
|
1212
1212
|
}), zt(() => {
|
1213
1213
|
document.removeEventListener("click", i);
|
1214
1214
|
}), (r, g) => (c(), d($, null, [
|
1215
|
-
|
1215
|
+
l("button", {
|
1216
1216
|
ref_key: "templateButton",
|
1217
1217
|
ref: t,
|
1218
1218
|
class: x(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
@@ -1220,11 +1220,11 @@ const Iu = (e) => {
|
|
1220
1220
|
onMouseover: A,
|
1221
1221
|
onMouseout: s
|
1222
1222
|
}, g[0] || (g[0] = [
|
1223
|
-
|
1223
|
+
l("span", { class: "pi pi-objects-column" }, null, -1)
|
1224
1224
|
]), 34),
|
1225
1225
|
L(q, null, {
|
1226
1226
|
default: H(() => [
|
1227
|
-
|
1227
|
+
l("div", {
|
1228
1228
|
ref_key: "template",
|
1229
1229
|
ref: n,
|
1230
1230
|
onMouseover: A,
|
@@ -1233,7 +1233,7 @@ const Iu = (e) => {
|
|
1233
1233
|
L(Fs, {
|
1234
1234
|
templates: e.templates,
|
1235
1235
|
"group-templates": e.groupTemplates,
|
1236
|
-
onCloseTemplateWindow:
|
1236
|
+
onCloseTemplateWindow: o
|
1237
1237
|
}, null, 8, ["templates", "group-templates"])
|
1238
1238
|
], 544)
|
1239
1239
|
]),
|
@@ -13268,7 +13268,7 @@ function gi(e) {
|
|
13268
13268
|
const a = () => {
|
13269
13269
|
e.removeEventListener("success", A), e.removeEventListener("error", s);
|
13270
13270
|
}, A = () => {
|
13271
|
-
t(
|
13271
|
+
t(we(e.result)), a();
|
13272
13272
|
}, s = () => {
|
13273
13273
|
n(e.error), a();
|
13274
13274
|
};
|
@@ -13304,7 +13304,7 @@ let _t = {
|
|
13304
13304
|
if (f === "store")
|
13305
13305
|
return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
|
13306
13306
|
}
|
13307
|
-
return
|
13307
|
+
return we(e[f]);
|
13308
13308
|
},
|
13309
13309
|
set(e, f, t) {
|
13310
13310
|
return e[f] = t, !0;
|
@@ -13319,17 +13319,17 @@ function pi(e) {
|
|
13319
13319
|
function hi(e) {
|
13320
13320
|
return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(f, ...t) {
|
13321
13321
|
const n = e.call(mt(this), f, ...t);
|
13322
|
-
return qn.set(n, f.sort ? f.sort() : [f]),
|
13322
|
+
return qn.set(n, f.sort ? f.sort() : [f]), we(n);
|
13323
13323
|
} : di().includes(e) ? function(...f) {
|
13324
|
-
return e.apply(mt(this), f),
|
13324
|
+
return e.apply(mt(this), f), we(Yn.get(this));
|
13325
13325
|
} : function(...f) {
|
13326
|
-
return
|
13326
|
+
return we(e.apply(mt(this), f));
|
13327
13327
|
};
|
13328
13328
|
}
|
13329
13329
|
function Mi(e) {
|
13330
13330
|
return typeof e == "function" ? hi(e) : (e instanceof IDBTransaction && mi(e), ui(e, ci()) ? new Proxy(e, _t) : e);
|
13331
13331
|
}
|
13332
|
-
function
|
13332
|
+
function we(e) {
|
13333
13333
|
if (e instanceof IDBRequest)
|
13334
13334
|
return gi(e);
|
13335
13335
|
if (gt.has(e))
|
@@ -13339,15 +13339,15 @@ function _e(e) {
|
|
13339
13339
|
}
|
13340
13340
|
const mt = (e) => Lt.get(e);
|
13341
13341
|
function Ut(e, f, { blocked: t, upgrade: n, blocking: a, terminated: A } = {}) {
|
13342
|
-
const s = indexedDB.open(e, f), i =
|
13343
|
-
return n && s.addEventListener("upgradeneeded", (
|
13344
|
-
n(
|
13345
|
-
}), t && s.addEventListener("blocked", (
|
13346
|
-
|
13347
|
-
|
13348
|
-
|
13349
|
-
)), i.then((
|
13350
|
-
A &&
|
13342
|
+
const s = indexedDB.open(e, f), i = we(s);
|
13343
|
+
return n && s.addEventListener("upgradeneeded", (o) => {
|
13344
|
+
n(we(s.result), o.oldVersion, o.newVersion, we(s.transaction), o);
|
13345
|
+
}), t && s.addEventListener("blocked", (o) => t(
|
13346
|
+
o.oldVersion,
|
13347
|
+
o.newVersion,
|
13348
|
+
o
|
13349
|
+
)), i.then((o) => {
|
13350
|
+
A && o.addEventListener("close", () => A()), a && o.addEventListener("versionchange", (r) => a(r.oldVersion, r.newVersion, r));
|
13351
13351
|
}).catch(() => {
|
13352
13352
|
}), i;
|
13353
13353
|
}
|
@@ -13361,11 +13361,11 @@ function hn(e, f) {
|
|
13361
13361
|
if (!(t in (n ? IDBIndex : IDBObjectStore).prototype) || !(a || yi.includes(t)))
|
13362
13362
|
return;
|
13363
13363
|
const A = async function(s, ...i) {
|
13364
|
-
const
|
13365
|
-
let r =
|
13364
|
+
const o = this.transaction(s, a ? "readwrite" : "readonly");
|
13365
|
+
let r = o.store;
|
13366
13366
|
return n && (r = r.index(i.shift())), (await Promise.all([
|
13367
13367
|
r[t](...i),
|
13368
|
-
a &&
|
13368
|
+
a && o.done
|
13369
13369
|
]))[0];
|
13370
13370
|
};
|
13371
13371
|
return pt.set(f, A), A;
|
@@ -13460,7 +13460,7 @@ function wi() {
|
|
13460
13460
|
e.activeGroup = u;
|
13461
13461
|
}, i = (u = jf) => {
|
13462
13462
|
e.skinTone = u;
|
13463
|
-
},
|
13463
|
+
}, o = (u) => {
|
13464
13464
|
e.options = Object.assign({}, e.options, u), f();
|
13465
13465
|
};
|
13466
13466
|
async function r() {
|
@@ -13484,7 +13484,7 @@ function wi() {
|
|
13484
13484
|
updateEmoji: A,
|
13485
13485
|
updateActiveGroup: s,
|
13486
13486
|
updateSkinTone: i,
|
13487
|
-
updateOptions:
|
13487
|
+
updateOptions: o,
|
13488
13488
|
updateSelect: g
|
13489
13489
|
};
|
13490
13490
|
}
|
@@ -13544,11 +13544,11 @@ function Ui(e) {
|
|
13544
13544
|
};
|
13545
13545
|
return Object.assign(f.elements.popper.style, t.popper), f.styles = t, f.elements.arrow && Object.assign(f.elements.arrow.style, t.arrow), function() {
|
13546
13546
|
Object.keys(f.elements).forEach(function(n) {
|
13547
|
-
var a = f.elements[n], A = f.attributes[n] || {}, s = Object.keys(f.styles.hasOwnProperty(n) ? f.styles[n] : t[n]), i = s.reduce(function(
|
13548
|
-
return
|
13547
|
+
var a = f.elements[n], A = f.attributes[n] || {}, s = Object.keys(f.styles.hasOwnProperty(n) ? f.styles[n] : t[n]), i = s.reduce(function(o, r) {
|
13548
|
+
return o[r] = "", o;
|
13549
13549
|
}, {});
|
13550
|
-
!Ae(a) || !ge(a) || (Object.assign(a.style, i), Object.keys(A).forEach(function(
|
13551
|
-
a.removeAttribute(
|
13550
|
+
!Ae(a) || !ge(a) || (Object.assign(a.style, i), Object.keys(A).forEach(function(o) {
|
13551
|
+
a.removeAttribute(o);
|
13552
13552
|
}));
|
13553
13553
|
});
|
13554
13554
|
};
|
@@ -13673,9 +13673,9 @@ var qi = function(f, t) {
|
|
13673
13673
|
})) : f, Kn(typeof f != "number" ? f : Jn(f, of));
|
13674
13674
|
};
|
13675
13675
|
function Hi(e) {
|
13676
|
-
var f, t = e.state, n = e.name, a = e.options, A = t.elements.arrow, s = t.modifiersData.popperOffsets, i = de(t.placement),
|
13676
|
+
var f, t = e.state, n = e.name, a = e.options, A = t.elements.arrow, s = t.modifiersData.popperOffsets, i = de(t.placement), o = qt(i), r = [ee, ie].indexOf(i) >= 0, g = r ? "height" : "width";
|
13677
13677
|
if (!(!A || !s)) {
|
13678
|
-
var u = qi(a.padding, t), m = Yt(A), p =
|
13678
|
+
var u = qi(a.padding, t), m = Yt(A), p = o === "y" ? X : ee, h = o === "y" ? se : ie, M = t.rects.reference[g] + t.rects.reference[o] - s[o] - t.rects.popper[g], y = s[o] - t.rects.reference[o], _ = lf(A), k = _ ? o === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, D = M / 2 - y / 2, N = u[p], E = k - m[g] - u[h], S = k / 2 - m[g] / 2 + D, T = Ge(N, S, E), O = o;
|
13679
13679
|
t.modifiersData[n] = (f = {}, f[O] = T, f.centerOffset = T - S, f);
|
13680
13680
|
}
|
13681
13681
|
}
|
@@ -13709,31 +13709,31 @@ function Wi(e) {
|
|
13709
13709
|
};
|
13710
13710
|
}
|
13711
13711
|
function bn(e) {
|
13712
|
-
var f, t = e.popper, n = e.popperRect, a = e.placement, A = e.variation, s = e.offsets, i = e.position,
|
13712
|
+
var f, t = e.popper, n = e.popperRect, a = e.placement, A = e.variation, s = e.offsets, i = e.position, o = e.gpuAcceleration, r = e.adaptive, g = e.roundOffsets, u = e.isFixed, m = g === !0 ? Wi(s) : typeof g == "function" ? g(s) : s, p = m.x, h = p === void 0 ? 0 : p, M = m.y, y = M === void 0 ? 0 : M, _ = s.hasOwnProperty("x"), k = s.hasOwnProperty("y"), D = ee, N = X, E = window;
|
13713
13713
|
if (r) {
|
13714
13714
|
var S = lf(t), T = "clientHeight", O = "clientWidth";
|
13715
13715
|
if (S === oe(t) && (S = De(t), me(S).position !== "static" && i === "absolute" && (T = "scrollHeight", O = "scrollWidth")), S = S, a === X || (a === ee || a === ie) && A === nf) {
|
13716
13716
|
N = se;
|
13717
13717
|
var Q = u && E.visualViewport ? E.visualViewport.height : S[T];
|
13718
|
-
y -= Q - n.height, y *=
|
13718
|
+
y -= Q - n.height, y *= o ? 1 : -1;
|
13719
13719
|
}
|
13720
13720
|
if (a === ee || (a === X || a === se) && A === nf) {
|
13721
13721
|
D = ie;
|
13722
13722
|
var C = u && E.visualViewport ? E.visualViewport.width : S[O];
|
13723
|
-
h -= C - n.width, h *=
|
13723
|
+
h -= C - n.width, h *= o ? 1 : -1;
|
13724
13724
|
}
|
13725
13725
|
}
|
13726
13726
|
var B = Object.assign({
|
13727
13727
|
position: i
|
13728
13728
|
}, r && $i);
|
13729
|
-
if (
|
13729
|
+
if (o) {
|
13730
13730
|
var R;
|
13731
13731
|
return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[D] = _ ? "0" : "", R.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + y + "px)" : "translate3d(" + h + "px, " + y + "px, 0)", R));
|
13732
13732
|
}
|
13733
13733
|
return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[D] = _ ? h + "px" : "", f.transform = "", f));
|
13734
13734
|
}
|
13735
13735
|
function Ki(e) {
|
13736
|
-
var f = e.state, t = e.options, n = t.gpuAcceleration, a = n === void 0 ? !0 : n, A = t.adaptive, s = A === void 0 ? !0 : A, i = t.roundOffsets,
|
13736
|
+
var f = e.state, t = e.options, n = t.gpuAcceleration, a = n === void 0 ? !0 : n, A = t.adaptive, s = A === void 0 ? !0 : A, i = t.roundOffsets, o = i === void 0 ? !0 : i, r = {
|
13737
13737
|
placement: de(f.placement),
|
13738
13738
|
variation: He(f.placement),
|
13739
13739
|
popper: f.elements.popper,
|
@@ -13745,12 +13745,12 @@ function Ki(e) {
|
|
13745
13745
|
offsets: f.modifiersData.popperOffsets,
|
13746
13746
|
position: f.options.strategy,
|
13747
13747
|
adaptive: s,
|
13748
|
-
roundOffsets:
|
13748
|
+
roundOffsets: o
|
13749
13749
|
})))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, bn(Object.assign({}, r, {
|
13750
13750
|
offsets: f.modifiersData.arrow,
|
13751
13751
|
position: "absolute",
|
13752
13752
|
adaptive: !1,
|
13753
|
-
roundOffsets:
|
13753
|
+
roundOffsets: o
|
13754
13754
|
})))), f.attributes.popper = Object.assign({}, f.attributes.popper, {
|
13755
13755
|
"data-popper-placement": f.placement
|
13756
13756
|
});
|
@@ -13765,13 +13765,13 @@ var Ji = {
|
|
13765
13765
|
passive: !0
|
13766
13766
|
};
|
13767
13767
|
function Gi(e) {
|
13768
|
-
var f = e.state, t = e.instance, n = e.options, a = n.scroll, A = a === void 0 ? !0 : a, s = n.resize, i = s === void 0 ? !0 : s,
|
13768
|
+
var f = e.state, t = e.instance, n = e.options, a = n.scroll, A = a === void 0 ? !0 : a, s = n.resize, i = s === void 0 ? !0 : s, o = oe(f.elements.popper), r = [].concat(f.scrollParents.reference, f.scrollParents.popper);
|
13769
13769
|
return A && r.forEach(function(g) {
|
13770
13770
|
g.addEventListener("scroll", t.update, hf);
|
13771
|
-
}), i &&
|
13771
|
+
}), i && o.addEventListener("resize", t.update, hf), function() {
|
13772
13772
|
A && r.forEach(function(g) {
|
13773
13773
|
g.removeEventListener("scroll", t.update, hf);
|
13774
|
-
}), i &&
|
13774
|
+
}), i && o.removeEventListener("resize", t.update, hf);
|
13775
13775
|
};
|
13776
13776
|
}
|
13777
13777
|
var Zi = {
|
@@ -13822,12 +13822,12 @@ function fo(e) {
|
|
13822
13822
|
};
|
13823
13823
|
}
|
13824
13824
|
function to(e) {
|
13825
|
-
var f, t = De(e), n = Ht(e), a = (f = e.ownerDocument) == null ? void 0 : f.body, A = ze(t.scrollWidth, t.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), s = ze(t.scrollHeight, t.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -n.scrollLeft + Ft(e),
|
13825
|
+
var f, t = De(e), n = Ht(e), a = (f = e.ownerDocument) == null ? void 0 : f.body, A = ze(t.scrollWidth, t.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), s = ze(t.scrollHeight, t.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -n.scrollLeft + Ft(e), o = -n.scrollTop;
|
13826
13826
|
return me(a || t).direction === "rtl" && (i += ze(t.clientWidth, a ? a.clientWidth : 0) - A), {
|
13827
13827
|
width: A,
|
13828
13828
|
height: s,
|
13829
13829
|
x: i,
|
13830
|
-
y:
|
13830
|
+
y: o
|
13831
13831
|
};
|
13832
13832
|
}
|
13833
13833
|
function Pt(e) {
|
@@ -13865,41 +13865,41 @@ function ao(e) {
|
|
13865
13865
|
}) : [];
|
13866
13866
|
}
|
13867
13867
|
function Ao(e, f, t) {
|
13868
|
-
var n = f === "clippingParents" ? ao(e) : [].concat(f), a = [].concat(n, [t]), A = a[0], s = a.reduce(function(i,
|
13869
|
-
var r = In(e,
|
13868
|
+
var n = f === "clippingParents" ? ao(e) : [].concat(f), a = [].concat(n, [t]), A = a[0], s = a.reduce(function(i, o) {
|
13869
|
+
var r = In(e, o);
|
13870
13870
|
return i.top = ze(r.top, i.top), i.right = Ef(r.right, i.right), i.bottom = Ef(r.bottom, i.bottom), i.left = ze(r.left, i.left), i;
|
13871
13871
|
}, In(e, A));
|
13872
13872
|
return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
|
13873
13873
|
}
|
13874
13874
|
function Zn(e) {
|
13875
|
-
var f = e.reference, t = e.element, n = e.placement, a = n ? de(n) : null, A = n ? He(n) : null, s = f.x + f.width / 2 - t.width / 2, i = f.y + f.height / 2 - t.height / 2,
|
13875
|
+
var f = e.reference, t = e.element, n = e.placement, a = n ? de(n) : null, A = n ? He(n) : null, s = f.x + f.width / 2 - t.width / 2, i = f.y + f.height / 2 - t.height / 2, o;
|
13876
13876
|
switch (a) {
|
13877
13877
|
case X:
|
13878
|
-
|
13878
|
+
o = {
|
13879
13879
|
x: s,
|
13880
13880
|
y: f.y - t.height
|
13881
13881
|
};
|
13882
13882
|
break;
|
13883
13883
|
case se:
|
13884
|
-
|
13884
|
+
o = {
|
13885
13885
|
x: s,
|
13886
13886
|
y: f.y + f.height
|
13887
13887
|
};
|
13888
13888
|
break;
|
13889
13889
|
case ie:
|
13890
|
-
|
13890
|
+
o = {
|
13891
13891
|
x: f.x + f.width,
|
13892
13892
|
y: i
|
13893
13893
|
};
|
13894
13894
|
break;
|
13895
13895
|
case ee:
|
13896
|
-
|
13896
|
+
o = {
|
13897
13897
|
x: f.x - t.width,
|
13898
13898
|
y: i
|
13899
13899
|
};
|
13900
13900
|
break;
|
13901
13901
|
default:
|
13902
|
-
|
13902
|
+
o = {
|
13903
13903
|
x: f.x,
|
13904
13904
|
y: f.y
|
13905
13905
|
};
|
@@ -13909,18 +13909,18 @@ function Zn(e) {
|
|
13909
13909
|
var g = r === "y" ? "height" : "width";
|
13910
13910
|
switch (A) {
|
13911
13911
|
case Qe:
|
13912
|
-
|
13912
|
+
o[r] = o[r] - (f[g] / 2 - t[g] / 2);
|
13913
13913
|
break;
|
13914
13914
|
case nf:
|
13915
|
-
|
13915
|
+
o[r] = o[r] + (f[g] / 2 - t[g] / 2);
|
13916
13916
|
break;
|
13917
13917
|
}
|
13918
13918
|
}
|
13919
|
-
return
|
13919
|
+
return o;
|
13920
13920
|
}
|
13921
13921
|
function af(e, f) {
|
13922
13922
|
f === void 0 && (f = {});
|
13923
|
-
var t = f, n = t.placement, a = n === void 0 ? e.placement : n, A = t.boundary, s = A === void 0 ? ki : A, i = t.rootBoundary,
|
13923
|
+
var t = f, n = t.placement, a = n === void 0 ? e.placement : n, A = t.boundary, s = A === void 0 ? ki : A, i = t.rootBoundary, o = i === void 0 ? Hn : i, r = t.elementContext, g = r === void 0 ? Je : r, u = t.altBoundary, m = u === void 0 ? !1 : u, p = t.padding, h = p === void 0 ? 0 : p, M = Kn(typeof h != "number" ? h : Jn(h, of)), y = g === Je ? Ni : Je, _ = e.rects.popper, k = e.elements[m ? y : g], D = Ao(Re(k) ? k : k.contextElement || De(e.elements.popper), s, o), N = qe(e.elements.reference), E = Zn({
|
13924
13924
|
reference: N,
|
13925
13925
|
element: _,
|
13926
13926
|
strategy: "absolute",
|
@@ -13942,7 +13942,7 @@ function af(e, f) {
|
|
13942
13942
|
}
|
13943
13943
|
function so(e, f) {
|
13944
13944
|
f === void 0 && (f = {});
|
13945
|
-
var t = f, n = t.placement, a = t.boundary, A = t.rootBoundary, s = t.padding, i = t.flipVariations,
|
13945
|
+
var t = f, n = t.placement, a = t.boundary, A = t.rootBoundary, s = t.padding, i = t.flipVariations, o = t.allowedAutoPlacements, r = o === void 0 ? Fn : o, g = He(n), u = g ? i ? Mn : Mn.filter(function(h) {
|
13946
13946
|
return He(h) === g;
|
13947
13947
|
}) : of, m = u.filter(function(h) {
|
13948
13948
|
return r.indexOf(h) >= 0;
|
@@ -13969,15 +13969,15 @@ function io(e) {
|
|
13969
13969
|
function oo(e) {
|
13970
13970
|
var f = e.state, t = e.options, n = e.name;
|
13971
13971
|
if (!f.modifiersData[n]._skip) {
|
13972
|
-
for (var a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !0 : s,
|
13973
|
-
return Ce.concat(de(
|
13974
|
-
placement:
|
13972
|
+
for (var a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !0 : s, o = t.fallbackPlacements, r = t.padding, g = t.boundary, u = t.rootBoundary, m = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, M = t.allowedAutoPlacements, y = f.options.placement, _ = de(y), k = _ === y, D = o || (k || !h ? [_f(y)] : io(y)), N = [y].concat(D).reduce(function(Ce, be) {
|
13973
|
+
return Ce.concat(de(be) === Rt ? so(f, {
|
13974
|
+
placement: be,
|
13975
13975
|
boundary: g,
|
13976
13976
|
rootBoundary: u,
|
13977
13977
|
padding: r,
|
13978
13978
|
flipVariations: h,
|
13979
13979
|
allowedAutoPlacements: M
|
13980
|
-
}) :
|
13980
|
+
}) : be);
|
13981
13981
|
}, []), E = f.rects.reference, S = f.rects.popper, T = /* @__PURE__ */ new Map(), O = !0, Q = N[0], C = 0; C < N.length; C++) {
|
13982
13982
|
var B = N[C], R = de(B), te = He(B) === Qe, pe = [X, se].indexOf(R) >= 0, le = pe ? "width" : "height", Y = af(f, {
|
13983
13983
|
placement: B,
|
@@ -13997,11 +13997,11 @@ function oo(e) {
|
|
13997
13997
|
T.set(B, Ee);
|
13998
13998
|
}
|
13999
13999
|
if (O)
|
14000
|
-
for (var cf = h ? 3 : 1, lt = function(
|
14000
|
+
for (var cf = h ? 3 : 1, lt = function(be) {
|
14001
14001
|
var Ke = N.find(function(gf) {
|
14002
14002
|
var Te = T.get(gf);
|
14003
14003
|
if (Te)
|
14004
|
-
return Te.slice(0,
|
14004
|
+
return Te.slice(0, be).every(function(rt) {
|
14005
14005
|
return rt;
|
14006
14006
|
});
|
14007
14007
|
});
|
@@ -14046,9 +14046,9 @@ function ro(e) {
|
|
14046
14046
|
elementContext: "reference"
|
14047
14047
|
}), i = af(f, {
|
14048
14048
|
altBoundary: !0
|
14049
|
-
}),
|
14049
|
+
}), o = _n(s, n), r = _n(i, a, A), g = wn(o), u = wn(r);
|
14050
14050
|
f.modifiersData[t] = {
|
14051
|
-
referenceClippingOffsets:
|
14051
|
+
referenceClippingOffsets: o,
|
14052
14052
|
popperEscapeOffsets: r,
|
14053
14053
|
isReferenceHidden: g,
|
14054
14054
|
hasPopperEscaped: u
|
@@ -14079,8 +14079,8 @@ function co(e, f, t) {
|
|
14079
14079
|
function go(e) {
|
14080
14080
|
var f = e.state, t = e.options, n = e.name, a = t.offset, A = a === void 0 ? [0, 0] : a, s = Fn.reduce(function(g, u) {
|
14081
14081
|
return g[u] = co(u, f.rects, A), g;
|
14082
|
-
}, {}), i = s[f.placement],
|
14083
|
-
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x +=
|
14082
|
+
}, {}), i = s[f.placement], o = i.x, r = i.y;
|
14083
|
+
f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += o, f.modifiersData.popperOffsets.y += r), f.modifiersData[n] = s;
|
14084
14084
|
}
|
14085
14085
|
var mo = {
|
14086
14086
|
name: "offset",
|
@@ -14109,8 +14109,8 @@ function Mo(e) {
|
|
14109
14109
|
return e === "x" ? "y" : "x";
|
14110
14110
|
}
|
14111
14111
|
function yo(e) {
|
14112
|
-
var f = e.state, t = e.options, n = e.name, a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !1 : s,
|
14113
|
-
boundary:
|
14112
|
+
var f = e.state, t = e.options, n = e.name, a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !1 : s, o = t.boundary, r = t.rootBoundary, g = t.altBoundary, u = t.padding, m = t.tether, p = m === void 0 ? !0 : m, h = t.tetherOffset, M = h === void 0 ? 0 : h, y = af(f, {
|
14113
|
+
boundary: o,
|
14114
14114
|
rootBoundary: r,
|
14115
14115
|
padding: u,
|
14116
14116
|
altBoundary: g
|
@@ -14131,7 +14131,7 @@ function yo(e) {
|
|
14131
14131
|
var te, pe = N === "y" ? X : ee, le = N === "y" ? se : ie, Y = N === "y" ? "height" : "width", W = S[N], uf = W + y[pe], Ee = W - y[le], cf = p ? -O[Y] / 2 : 0, lt = k === Qe ? T[Y] : O[Y], We = k === Qe ? -O[Y] : -T[Y], df = f.elements.arrow, Ce = p && df ? Yt(df) : {
|
14132
14132
|
width: 0,
|
14133
14133
|
height: 0
|
14134
|
-
},
|
14134
|
+
}, be = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Wn(), Ke = be[pe], gf = be[le], Te = Ge(0, T[Y], Ce[Y]), rt = D ? T[Y] / 2 - cf - Te - Ke - C.mainAxis : lt - Te - Ke - C.mainAxis, ca = D ? -T[Y] / 2 + cf + Te + gf + C.mainAxis : We + Te + gf + C.mainAxis, ut = f.elements.arrow && lf(f.elements.arrow), da = ut ? N === "y" ? ut.clientTop || 0 : ut.clientLeft || 0 : 0, fn = (te = B == null ? void 0 : B[N]) != null ? te : 0, ga = W + rt - fn - da, ma = W + ca - fn, tn = Ge(p ? Ef(uf, ga) : uf, W, p ? ze(Ee, ma) : Ee);
|
14135
14135
|
S[N] = tn, R[N] = tn - W;
|
14136
14136
|
}
|
14137
14137
|
if (i) {
|
@@ -14166,13 +14166,13 @@ function wo(e, f, t) {
|
|
14166
14166
|
var n = Ae(f), a = Ae(f) && _o(f), A = De(f), s = qe(e, a), i = {
|
14167
14167
|
scrollLeft: 0,
|
14168
14168
|
scrollTop: 0
|
14169
|
-
},
|
14169
|
+
}, o = {
|
14170
14170
|
x: 0,
|
14171
14171
|
y: 0
|
14172
14172
|
};
|
14173
|
-
return (n || !n && !t) && ((ge(f) !== "body" || Pt(A)) && (i = Io(f)), Ae(f) ? (
|
14174
|
-
x: s.left + i.scrollLeft -
|
14175
|
-
y: s.top + i.scrollTop -
|
14173
|
+
return (n || !n && !t) && ((ge(f) !== "body" || Pt(A)) && (i = Io(f)), Ae(f) ? (o = qe(f, !0), o.x += f.clientLeft, o.y += f.clientTop) : A && (o.x = Ft(A))), {
|
14174
|
+
x: s.left + i.scrollLeft - o.x,
|
14175
|
+
y: s.top + i.scrollTop - o.y,
|
14176
14176
|
width: s.width,
|
14177
14177
|
height: s.height
|
14178
14178
|
};
|
@@ -14187,8 +14187,8 @@ function ko(e) {
|
|
14187
14187
|
var s = [].concat(A.requires || [], A.requiresIfExists || []);
|
14188
14188
|
s.forEach(function(i) {
|
14189
14189
|
if (!t.has(i)) {
|
14190
|
-
var
|
14191
|
-
|
14190
|
+
var o = f.get(i);
|
14191
|
+
o && a(o);
|
14192
14192
|
}
|
14193
14193
|
}), n.push(A);
|
14194
14194
|
}
|
@@ -14241,7 +14241,7 @@ function Nn() {
|
|
14241
14241
|
function Eo(e) {
|
14242
14242
|
e === void 0 && (e = {});
|
14243
14243
|
var f = e, t = f.defaultModifiers, n = t === void 0 ? [] : t, a = f.defaultOptions, A = a === void 0 ? kn : a;
|
14244
|
-
return function(i,
|
14244
|
+
return function(i, o, r) {
|
14245
14245
|
r === void 0 && (r = A);
|
14246
14246
|
var g = {
|
14247
14247
|
placement: "bottom",
|
@@ -14250,7 +14250,7 @@ function Eo(e) {
|
|
14250
14250
|
modifiersData: {},
|
14251
14251
|
elements: {
|
14252
14252
|
reference: i,
|
14253
|
-
popper:
|
14253
|
+
popper: o
|
14254
14254
|
},
|
14255
14255
|
attributes: {},
|
14256
14256
|
styles: {}
|
@@ -14260,7 +14260,7 @@ function Eo(e) {
|
|
14260
14260
|
var k = typeof _ == "function" ? _(g.options) : _;
|
14261
14261
|
M(), g.options = Object.assign({}, A, g.options, k), g.scrollParents = {
|
14262
14262
|
reference: Re(i) ? Ze(i) : i.contextElement ? Ze(i.contextElement) : [],
|
14263
|
-
popper: Ze(
|
14263
|
+
popper: Ze(o)
|
14264
14264
|
};
|
14265
14265
|
var D = No(jo([].concat(n, g.options.modifiers)));
|
14266
14266
|
return g.orderedModifiers = D.filter(function(N) {
|
@@ -14302,7 +14302,7 @@ function Eo(e) {
|
|
14302
14302
|
M(), m = !0;
|
14303
14303
|
}
|
14304
14304
|
};
|
14305
|
-
if (!Nn(i,
|
14305
|
+
if (!Nn(i, o))
|
14306
14306
|
return p;
|
14307
14307
|
p.setOptions(r).then(function(y) {
|
14308
14308
|
!m && r.onFirstUpdate && r.onFirstUpdate(y);
|
@@ -14343,11 +14343,11 @@ function xo(e, f, t, n = []) {
|
|
14343
14343
|
return;
|
14344
14344
|
const s = [];
|
14345
14345
|
e[A].forEach((i) => {
|
14346
|
-
var
|
14346
|
+
var o;
|
14347
14347
|
if (i[st][0].includes(f.toLocaleLowerCase())) {
|
14348
14348
|
let r = i[Rn];
|
14349
14349
|
if (t !== jf && Array.isArray(i[pf])) {
|
14350
|
-
const g = ((
|
14350
|
+
const g = ((o = i[pf]) == null ? void 0 : o.findIndex(
|
14351
14351
|
(u) => u.includes(t)
|
14352
14352
|
)) || -1;
|
14353
14353
|
g !== -1 && i[pf] && (r = i[pf][g]);
|
@@ -14382,14 +14382,14 @@ const So = K({
|
|
14382
14382
|
select: (e) => !0
|
14383
14383
|
},
|
14384
14384
|
setup() {
|
14385
|
-
const { state: e, updateEmoji: f, updateSelect: t } =
|
14385
|
+
const { state: e, updateEmoji: f, updateSelect: t } = ye("store"), n = I(null), a = U(() => xo(
|
14386
14386
|
e.emojis,
|
14387
14387
|
e.search,
|
14388
14388
|
e.skinTone,
|
14389
14389
|
e.options.disabledGroups
|
14390
|
-
)), A = _a(), s = U(() => !e.options.hideGroupNames), i = U(() => !e.options.disableStickyGroupNames),
|
14390
|
+
)), A = _a(), s = U(() => !e.options.hideGroupNames), i = U(() => !e.options.disableStickyGroupNames), o = Cn(e.options.groupNames), r = e.orderedGroupKeys;
|
14391
14391
|
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((h) => {
|
14392
|
-
e.options.groupNames[h] ?
|
14392
|
+
e.options.groupNames[h] ? o[h] = e.options.groupNames[h] : o[h] = fa(h);
|
14393
14393
|
});
|
14394
14394
|
const g = ea() ? "is-mac" : "";
|
14395
14395
|
function u(h) {
|
@@ -14429,7 +14429,7 @@ const So = K({
|
|
14429
14429
|
hasGroupNames: s,
|
14430
14430
|
isSticky: i,
|
14431
14431
|
platform: g,
|
14432
|
-
groupNames:
|
14432
|
+
groupNames: o,
|
14433
14433
|
orderedKeys: r
|
14434
14434
|
};
|
14435
14435
|
}
|
@@ -14439,7 +14439,7 @@ const So = K({
|
|
14439
14439
|
};
|
14440
14440
|
function Ro(e, f, t, n, a, A) {
|
14441
14441
|
return c(), d("div", zo, [
|
14442
|
-
|
14442
|
+
l("div", {
|
14443
14443
|
ref: "bodyInner",
|
14444
14444
|
class: x([e.platform, "v3-body-inner"])
|
14445
14445
|
}, [
|
@@ -14448,24 +14448,24 @@ function Ro(e, f, t, n, a, A) {
|
|
14448
14448
|
key: s,
|
14449
14449
|
class: "v3-group"
|
14450
14450
|
}, [
|
14451
|
-
e.hasGroupNames ?
|
14451
|
+
e.hasGroupNames ? ke((c(), d("h5", {
|
14452
14452
|
key: 0,
|
14453
14453
|
class: x(e.isSticky ? "v3-sticky" : "")
|
14454
14454
|
}, w(e.groupNames[s]), 3)), [
|
14455
14455
|
[Df, e.emojis[s]]
|
14456
14456
|
]) : b("", !0),
|
14457
|
-
|
14457
|
+
ke(l("div", Co, [
|
14458
14458
|
(c(!0), d($, null, Z(e.emojis[s], (i) => (c(), d("button", {
|
14459
14459
|
key: i.r,
|
14460
14460
|
type: "button",
|
14461
|
-
onMouseenter: (
|
14462
|
-
onClick: (
|
14461
|
+
onMouseenter: (o) => e.handleMouseEnter(i),
|
14462
|
+
onClick: (o) => e.handleClick(i)
|
14463
14463
|
}, [
|
14464
14464
|
e.native ? (c(), d("span", Uo, w(e.unicodeToEmoji(i.r)), 1)) : (c(), d("img", {
|
14465
14465
|
key: 1,
|
14466
14466
|
src: e.EMOJI_REMOTE_SRC + `/${i.r}.png`,
|
14467
14467
|
alt: i.n[0],
|
14468
|
-
onError: (
|
14468
|
+
onError: (o) => e.handleError(o, i.r)
|
14469
14469
|
}, null, 40, Bo))
|
14470
14470
|
], 40, Lo))), 128))
|
14471
14471
|
], 512), [
|
@@ -14479,9 +14479,9 @@ var Yo = /* @__PURE__ */ rf(So, [["render", Ro]]), qo = "data:image/svg+xml;base
|
|
14479
14479
|
const Go = K({
|
14480
14480
|
name: "Header",
|
14481
14481
|
setup(e) {
|
14482
|
-
const { state: f, updateSearch: t, updateActiveGroup: n } =
|
14482
|
+
const { state: f, updateSearch: t, updateActiveGroup: n } = ye("store"), a = U(() => !f.options.hideSearch), A = U(() => !f.options.hideGroupIcons), s = JSON.parse(JSON.stringify(f.orderedGroupKeys)), i = U(
|
14483
14483
|
() => f.options.staticTexts.placeholder || ""
|
14484
|
-
),
|
14484
|
+
), o = U({
|
14485
14485
|
get: () => f.search,
|
14486
14486
|
set: (u) => t(u)
|
14487
14487
|
}), r = [
|
@@ -14497,7 +14497,7 @@ const Go = K({
|
|
14497
14497
|
}), {
|
14498
14498
|
orderedGroups: g,
|
14499
14499
|
orderedKeys: s,
|
14500
|
-
searchValue:
|
14500
|
+
searchValue: o,
|
14501
14501
|
updateActiveGroup: n,
|
14502
14502
|
hasSearch: a,
|
14503
14503
|
hasGroupIcons: A,
|
@@ -14540,11 +14540,11 @@ function s1(e, f, t, n, a, A) {
|
|
14540
14540
|
}]),
|
14541
14541
|
onClick: (i) => e.updateActiveGroup(s.key)
|
14542
14542
|
}, [
|
14543
|
-
|
14543
|
+
l("span", {
|
14544
14544
|
title: s.title,
|
14545
14545
|
class: "v3-icon"
|
14546
14546
|
}, [
|
14547
|
-
|
14547
|
+
l("img", {
|
14548
14548
|
src: e.icons[s.key],
|
14549
14549
|
alt: ""
|
14550
14550
|
}, null, 8, t1)
|
@@ -14553,7 +14553,7 @@ function s1(e, f, t, n, a, A) {
|
|
14553
14553
|
])) : b("", !0),
|
14554
14554
|
e.hasGroupIcons && e.hasSearch ? (c(), d("div", n1)) : b("", !0),
|
14555
14555
|
e.hasSearch ? (c(), d("div", a1, [
|
14556
|
-
|
14556
|
+
ke(l("input", {
|
14557
14557
|
"onUpdate:modelValue": f[0] || (f[0] = (s) => e.searchValue = s),
|
14558
14558
|
type: "text",
|
14559
14559
|
placeholder: e.placeholder
|
@@ -14567,9 +14567,9 @@ var i1 = /* @__PURE__ */ rf(Go, [["render", s1]]);
|
|
14567
14567
|
const o1 = K({
|
14568
14568
|
name: "Header",
|
14569
14569
|
setup() {
|
14570
|
-
const { state: e, updateSkinTone: f } =
|
14570
|
+
const { state: e, updateSkinTone: f } = ye("store"), t = I(!1), n = I(!1), a = U(() => e.skinTone), A = U(
|
14571
14571
|
() => e.options.staticTexts.skinTone || "Skin tone"
|
14572
|
-
), s = U(() => !e.options.disableSkinTones), i = ea() ? "is-mac" : "",
|
14572
|
+
), s = U(() => !e.options.disableSkinTones), i = ea() ? "is-mac" : "", o = U(() => ({
|
14573
14573
|
...e.emoji,
|
14574
14574
|
src: Bn + "/" + e.emoji[tf] + ".png"
|
14575
14575
|
}));
|
@@ -14588,7 +14588,7 @@ const o1 = K({
|
|
14588
14588
|
n.value = !1;
|
14589
14589
|
}
|
14590
14590
|
), {
|
14591
|
-
emoji:
|
14591
|
+
emoji: o,
|
14592
14592
|
SKIN_TONES: Xs,
|
14593
14593
|
updateSkinToneState: r,
|
14594
14594
|
skinTone: t,
|
@@ -14611,8 +14611,8 @@ function m1(e, f, t, n, a, A) {
|
|
14611
14611
|
class: "v3-footer",
|
14612
14612
|
onMouseleave: f[2] || (f[2] = (s) => e.updateSkinToneState(!1))
|
14613
14613
|
}, [
|
14614
|
-
|
14615
|
-
|
14614
|
+
l("div", l1, [
|
14615
|
+
l("span", {
|
14616
14616
|
class: x([e.platform, "v3-icon"])
|
14617
14617
|
}, [
|
14618
14618
|
e.native || e.hasError ? (c(), d("span", r1, w(e.unicodeToEmoji(e.emoji.r)), 1)) : (c(), d("img", {
|
@@ -14622,20 +14622,20 @@ function m1(e, f, t, n, a, A) {
|
|
14622
14622
|
onError: f[0] || (f[0] = (s) => e.hasError = !0)
|
14623
14623
|
}, null, 40, u1))
|
14624
14624
|
], 2),
|
14625
|
-
|
14625
|
+
l("span", c1, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
|
14626
14626
|
]),
|
14627
14627
|
e.hasSkinTones ? (c(), d($, { key: 0 }, [
|
14628
|
-
|
14628
|
+
l("button", {
|
14629
14629
|
type: "button",
|
14630
14630
|
class: "v3-tone",
|
14631
14631
|
onClick: f[1] || (f[1] = (...s) => e.toggleSkinToneState && e.toggleSkinToneState(...s))
|
14632
14632
|
}, [
|
14633
|
-
|
14634
|
-
|
14633
|
+
l("span", d1, w(e.skinToneText), 1),
|
14634
|
+
l("span", {
|
14635
14635
|
class: x(`v3-icon v3-tone-${e.stateSkinTone}`)
|
14636
14636
|
}, null, 2)
|
14637
14637
|
]),
|
14638
|
-
|
14638
|
+
l("div", {
|
14639
14639
|
class: x([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
14640
14640
|
}, [
|
14641
14641
|
(c(!0), d($, null, Z(e.SKIN_TONES, (s) => (c(), d("button", {
|
@@ -14688,18 +14688,18 @@ const h1 = K({
|
|
14688
14688
|
},
|
14689
14689
|
setup(e, { emit: f }) {
|
14690
14690
|
const t = I(), n = I(), a = I(), A = I(!1), s = I(e.text), i = e.type === "input" || e.type === "textarea";
|
14691
|
-
let
|
14692
|
-
const { state: r } =
|
14691
|
+
let o = -1;
|
14692
|
+
const { state: r } = ye("store"), g = U(() => r.options.colorTheme);
|
14693
14693
|
function u(y) {
|
14694
14694
|
if (i) {
|
14695
14695
|
const _ = r.options.mode;
|
14696
|
-
_ === "prepend" ? s.value = y.i + s.value : _ === "insert" &&
|
14696
|
+
_ === "prepend" ? s.value = y.i + s.value : _ === "insert" && o !== -1 ? (s.value = `${s.value.slice(0, o)}${y.i}${s.value.slice(o)}`, o += y.i.length) : s.value += y.i, f("update:text", s.value);
|
14697
14697
|
}
|
14698
14698
|
f("select", y);
|
14699
14699
|
}
|
14700
14700
|
function m() {
|
14701
14701
|
var y;
|
14702
|
-
t.value && (
|
14702
|
+
t.value && (o = ((y = t.value) == null ? void 0 : y.selectionEnd) || -1);
|
14703
14703
|
}
|
14704
14704
|
function p(y) {
|
14705
14705
|
var _;
|
@@ -14749,9 +14749,9 @@ const h1 = K({
|
|
14749
14749
|
class: "v3-input-emoji-picker"
|
14750
14750
|
}, y1 = { class: "v3-input-picker-root" }, b1 = ["value"], v1 = ["value"], I1 = ["src"];
|
14751
14751
|
function _1(e, f, t, n, a, A) {
|
14752
|
-
const s = If("Header"), i = If("Body"),
|
14752
|
+
const s = If("Header"), i = If("Body"), o = If("Footer");
|
14753
14753
|
return e.isInputType ? (c(), d("div", M1, [
|
14754
|
-
|
14754
|
+
l("div", y1, [
|
14755
14755
|
e.type === "input" ? (c(), d("input", {
|
14756
14756
|
key: 0,
|
14757
14757
|
ref: "elem",
|
@@ -14768,27 +14768,27 @@ function _1(e, f, t, n, a, A) {
|
|
14768
14768
|
onInput: f[2] || (f[2] = (...r) => e.onChangeText && e.onChangeText(...r)),
|
14769
14769
|
onBlur: f[3] || (f[3] = (...r) => e.updateCursor && e.updateCursor(...r))
|
14770
14770
|
}, null, 40, v1)),
|
14771
|
-
|
14771
|
+
l("div", {
|
14772
14772
|
class: x(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
14773
14773
|
}, [
|
14774
|
-
|
14774
|
+
l("button", {
|
14775
14775
|
ref: "button",
|
14776
14776
|
type: "button",
|
14777
14777
|
class: "v3-input-picker-icon",
|
14778
14778
|
onClick: f[4] || (f[4] = (r) => e.open = !e.open)
|
14779
14779
|
}, [
|
14780
|
-
|
14780
|
+
l("img", {
|
14781
14781
|
src: e.face,
|
14782
14782
|
alt: ""
|
14783
14783
|
}, null, 8, I1)
|
14784
14784
|
], 512),
|
14785
|
-
|
14785
|
+
l("div", {
|
14786
14786
|
ref: "picker",
|
14787
14787
|
class: x(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
14788
14788
|
}, [
|
14789
14789
|
L(s),
|
14790
14790
|
L(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
14791
|
-
L(
|
14791
|
+
L(o)
|
14792
14792
|
], 2)
|
14793
14793
|
], 2)
|
14794
14794
|
])
|
@@ -14798,7 +14798,7 @@ function _1(e, f, t, n, a, A) {
|
|
14798
14798
|
}, [
|
14799
14799
|
L(s),
|
14800
14800
|
L(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
14801
|
-
L(
|
14801
|
+
L(o)
|
14802
14802
|
], 2));
|
14803
14803
|
}
|
14804
14804
|
var w1 = /* @__PURE__ */ rf(h1, [["render", _1]]);
|
@@ -14939,10 +14939,10 @@ const j1 = {
|
|
14939
14939
|
}
|
14940
14940
|
},
|
14941
14941
|
setup(e) {
|
14942
|
-
const f = e, t = I(null), n = I(null), a =
|
14942
|
+
const f = e, t = I(null), n = I(null), a = ye("chatAppId"), { setMessageText: A, getMessage: s } = At(a), i = U(() => {
|
14943
14943
|
if (document.documentElement.classList.contains("dark"))
|
14944
14944
|
return "dark";
|
14945
|
-
}),
|
14945
|
+
}), o = (p) => {
|
14946
14946
|
A(s().text + p.i);
|
14947
14947
|
}, r = () => {
|
14948
14948
|
f.mode == "click" && f.state == "active" && (t.value.style.display = "inherit");
|
@@ -14958,7 +14958,7 @@ const j1 = {
|
|
14958
14958
|
}), zt(() => {
|
14959
14959
|
document.removeEventListener("click", m);
|
14960
14960
|
}), (p, h) => (c(), d($, null, [
|
14961
|
-
|
14961
|
+
l("div", {
|
14962
14962
|
ref_key: "emojiButton",
|
14963
14963
|
ref: n,
|
14964
14964
|
class: x(["button", { "button-disabled": e.state == "disabled" }]),
|
@@ -14966,11 +14966,11 @@ const j1 = {
|
|
14966
14966
|
onMouseover: g,
|
14967
14967
|
onMouseout: u
|
14968
14968
|
}, h[0] || (h[0] = [
|
14969
|
-
|
14969
|
+
l("span", { class: "pi pi-face-smile" }, null, -1)
|
14970
14970
|
]), 34),
|
14971
14971
|
L(q, null, {
|
14972
14972
|
default: H(() => [
|
14973
|
-
|
14973
|
+
l("div", {
|
14974
14974
|
ref_key: "emoji",
|
14975
14975
|
ref: t,
|
14976
14976
|
class: "emoji",
|
@@ -14981,7 +14981,7 @@ const j1 = {
|
|
14981
14981
|
native: !0,
|
14982
14982
|
theme: i.value,
|
14983
14983
|
"picker-type": "",
|
14984
|
-
onSelect:
|
14984
|
+
onSelect: o
|
14985
14985
|
}, null, 8, ["theme"])
|
14986
14986
|
], 544)
|
14987
14987
|
]),
|
@@ -15004,12 +15004,12 @@ const j1 = {
|
|
15004
15004
|
n("click", s);
|
15005
15005
|
};
|
15006
15006
|
return (A, s) => (c(), d("div", E1, [
|
15007
|
-
|
15008
|
-
|
15009
|
-
(c(!0), d($, null, Z(t.actions, (i,
|
15010
|
-
key:
|
15007
|
+
l("div", T1, [
|
15008
|
+
l("ul", V1, [
|
15009
|
+
(c(!0), d($, null, Z(t.actions, (i, o) => (c(), d("li", {
|
15010
|
+
key: o,
|
15011
15011
|
class: "context-menu__item",
|
15012
|
-
onClick: (r) => a(
|
15012
|
+
onClick: (r) => a(o)
|
15013
15013
|
}, [
|
15014
15014
|
i.icon ? (c(), d("img", {
|
15015
15015
|
key: 0,
|
@@ -15020,7 +15020,7 @@ const j1 = {
|
|
15020
15020
|
key: 1,
|
15021
15021
|
class: x("pi pi-" + i.prime)
|
15022
15022
|
}, null, 2)) : b("", !0),
|
15023
|
-
|
15023
|
+
l("span", null, w(i.title), 1)
|
15024
15024
|
], 8, x1))), 128))
|
15025
15025
|
])
|
15026
15026
|
])
|
@@ -15050,11 +15050,11 @@ const j1 = {
|
|
15050
15050
|
}, s = () => {
|
15051
15051
|
n.value = !1, t.value = !1;
|
15052
15052
|
}, i = U(() => $e(f.message.status));
|
15053
|
-
function
|
15053
|
+
function o(r) {
|
15054
15054
|
return r.position === "left" ? "file-message__left" : "file-message__right";
|
15055
15055
|
}
|
15056
15056
|
return (r, g) => (c(), d("div", {
|
15057
|
-
class: x(["file-message",
|
15057
|
+
class: x(["file-message", o(e.message)]),
|
15058
15058
|
messageId: e.message.messageId,
|
15059
15059
|
onMouseleave: s
|
15060
15060
|
}, [
|
@@ -15067,27 +15067,27 @@ const j1 = {
|
|
15067
15067
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
15068
15068
|
}, null, 12, C1)) : b("", !0),
|
15069
15069
|
e.message.subText ? (c(), d("p", L1, w(e.message.subText), 1)) : b("", !0),
|
15070
|
-
|
15070
|
+
l("div", {
|
15071
15071
|
class: "file-message__content",
|
15072
15072
|
onMouseenter: A
|
15073
15073
|
}, [
|
15074
|
-
|
15074
|
+
l("a", {
|
15075
15075
|
class: "file-message__link",
|
15076
15076
|
href: e.message.url,
|
15077
15077
|
download: "",
|
15078
15078
|
target: "_blank"
|
15079
15079
|
}, [
|
15080
|
-
g[1] || (g[1] =
|
15081
|
-
|
15080
|
+
g[1] || (g[1] = l("span", { class: "pi pi-file" }, null, -1)),
|
15081
|
+
l("p", B1, w(e.message.filename), 1)
|
15082
15082
|
], 8, U1),
|
15083
|
-
|
15084
|
-
|
15085
|
-
|
15083
|
+
l("div", Q1, [
|
15084
|
+
l("span", R1, w(e.message.time), 1),
|
15085
|
+
o(e.message) === "file-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
15086
15086
|
key: 0,
|
15087
15087
|
class: x(["file-message__status", i.value])
|
15088
15088
|
}, [
|
15089
15089
|
e.message.status !== "sent" ? (c(), d("span", Y1)) : b("", !0),
|
15090
|
-
g[2] || (g[2] =
|
15090
|
+
g[2] || (g[2] = l("span", { class: "pi pi-check" }, null, -1))
|
15091
15091
|
], 2)) : b("", !0)
|
15092
15092
|
]),
|
15093
15093
|
n.value && e.message.actions ? (c(), d("button", {
|
@@ -15095,15 +15095,15 @@ const j1 = {
|
|
15095
15095
|
class: "file-message__menu-button",
|
15096
15096
|
onClick: g[0] || (g[0] = (u) => t.value = !t.value)
|
15097
15097
|
}, g[3] || (g[3] = [
|
15098
|
-
|
15098
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
15099
15099
|
]))) : b("", !0),
|
15100
|
-
|
15100
|
+
l("a", {
|
15101
15101
|
class: "file-message__download-button",
|
15102
15102
|
href: e.message.url,
|
15103
15103
|
download: "",
|
15104
15104
|
target: "_blank"
|
15105
15105
|
}, g[4] || (g[4] = [
|
15106
|
-
|
15106
|
+
l("span", { class: "pi pi-download" }, null, -1)
|
15107
15107
|
]), 8, q1),
|
15108
15108
|
L(q, null, {
|
15109
15109
|
default: H(() => [
|
@@ -15117,7 +15117,7 @@ const j1 = {
|
|
15117
15117
|
_: 1
|
15118
15118
|
}),
|
15119
15119
|
e.message.text ? (c(), d("div", H1, [
|
15120
|
-
|
15120
|
+
l("p", null, w(e.message.text), 1)
|
15121
15121
|
])) : b("", !0)
|
15122
15122
|
], 32)
|
15123
15123
|
], 42, O1));
|
@@ -15152,7 +15152,7 @@ const j1 = {
|
|
15152
15152
|
const f = e, t = I(!1), n = I(!1), a = I(!1), A = I(!1), s = () => {
|
15153
15153
|
}, i = () => {
|
15154
15154
|
a.value = !0, A.value = !0;
|
15155
|
-
},
|
15155
|
+
}, o = () => {
|
15156
15156
|
a.value = !1, n.value = !1;
|
15157
15157
|
}, r = U(() => $e(f.message.status));
|
15158
15158
|
function g(u) {
|
@@ -15161,7 +15161,7 @@ const j1 = {
|
|
15161
15161
|
return (u, m) => (c(), d("div", {
|
15162
15162
|
class: x(["image-message", g(e.message)]),
|
15163
15163
|
messageId: e.message.messageId,
|
15164
|
-
onMouseleave:
|
15164
|
+
onMouseleave: o
|
15165
15165
|
}, [
|
15166
15166
|
e.message.avatar ? (c(), d("img", {
|
15167
15167
|
key: 0,
|
@@ -15171,14 +15171,14 @@ const j1 = {
|
|
15171
15171
|
width: "32"
|
15172
15172
|
}, null, 8, W1)) : b("", !0),
|
15173
15173
|
e.message.subText ? (c(), d("p", K1, w(e.message.subText), 1)) : b("", !0),
|
15174
|
-
|
15175
|
-
|
15174
|
+
l("div", J1, [
|
15175
|
+
l("div", {
|
15176
15176
|
class: "image-message__preview-button",
|
15177
15177
|
onClick: m[0] || (m[0] = (p) => t.value = !0),
|
15178
15178
|
onMouseenter: i,
|
15179
15179
|
onMouseleave: m[1] || (m[1] = (p) => A.value = !A.value)
|
15180
15180
|
}, [
|
15181
|
-
|
15181
|
+
l("img", {
|
15182
15182
|
class: "image-message__preview-image",
|
15183
15183
|
style: P({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
|
15184
15184
|
src: e.message.url,
|
@@ -15188,16 +15188,16 @@ const j1 = {
|
|
15188
15188
|
default: H(() => [
|
15189
15189
|
A.value ? (c(), d("div", Z1, [
|
15190
15190
|
e.message.views ? (c(), d("div", X1, [
|
15191
|
-
m[4] || (m[4] =
|
15192
|
-
|
15191
|
+
m[4] || (m[4] = l("span", { class: "pi pi-eye" }, null, -1)),
|
15192
|
+
l("p", null, w(e.message.views), 1)
|
15193
15193
|
])) : b("", !0),
|
15194
|
-
|
15194
|
+
l("span", el, w(e.message.time), 1),
|
15195
15195
|
g(e.message) === "image-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
15196
15196
|
key: 1,
|
15197
15197
|
class: x(["image-message__status", r.value])
|
15198
15198
|
}, [
|
15199
15199
|
e.message.status !== "sent" ? (c(), d("span", fl)) : b("", !0),
|
15200
|
-
m[5] || (m[5] =
|
15200
|
+
m[5] || (m[5] = l("span", { class: "pi pi-check" }, null, -1))
|
15201
15201
|
], 2)) : b("", !0)
|
15202
15202
|
])) : b("", !0)
|
15203
15203
|
]),
|
@@ -15212,7 +15212,7 @@ const j1 = {
|
|
15212
15212
|
download: "",
|
15213
15213
|
target: "_blank"
|
15214
15214
|
}, m[6] || (m[6] = [
|
15215
|
-
|
15215
|
+
l("span", { class: "pi pi-download" }, null, -1)
|
15216
15216
|
]), 8, tl)) : b("", !0)
|
15217
15217
|
]),
|
15218
15218
|
_: 1
|
@@ -15225,7 +15225,7 @@ const j1 = {
|
|
15225
15225
|
class: "image-message__menu-button",
|
15226
15226
|
onClick: m[2] || (m[2] = (p) => n.value = !n.value)
|
15227
15227
|
}, m[7] || (m[7] = [
|
15228
|
-
|
15228
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
15229
15229
|
]))) : b("", !0)
|
15230
15230
|
]),
|
15231
15231
|
_: 1
|
@@ -15242,23 +15242,23 @@ const j1 = {
|
|
15242
15242
|
_: 1
|
15243
15243
|
}),
|
15244
15244
|
e.message.text ? (c(), d("div", nl, [
|
15245
|
-
|
15245
|
+
l("p", null, w(e.message.text), 1)
|
15246
15246
|
])) : b("", !0)
|
15247
15247
|
]),
|
15248
15248
|
(c(), F(Ot, { to: "body" }, [
|
15249
15249
|
L(q, { name: "modal-fade" }, {
|
15250
15250
|
default: H(() => [
|
15251
15251
|
t.value ? (c(), d("div", al, [
|
15252
|
-
|
15253
|
-
|
15252
|
+
l("div", Al, [
|
15253
|
+
l("button", {
|
15254
15254
|
class: "image-message__modal-close-button",
|
15255
15255
|
onClick: m[3] || (m[3] = (p) => t.value = !1)
|
15256
15256
|
}, m[8] || (m[8] = [
|
15257
|
-
|
15258
|
-
|
15257
|
+
l("span", null, [
|
15258
|
+
l("i", { class: "pi pi-times" })
|
15259
15259
|
], -1)
|
15260
15260
|
])),
|
15261
|
-
|
15261
|
+
l("img", {
|
15262
15262
|
class: "image-message__modal-image",
|
15263
15263
|
src: e.message.url,
|
15264
15264
|
alt: e.message.alt
|
@@ -15408,15 +15408,15 @@ fe.prototype = {
|
|
15408
15408
|
if (i ? (s = new fe(), Fe(s.j, i.j), s.jr.push.apply(s.jr, i.jr), s.jd = i.jd, s.t = i.t) : s = new fe(), A) {
|
15409
15409
|
if (n)
|
15410
15410
|
if (s.t && typeof s.t == "string") {
|
15411
|
-
const
|
15412
|
-
xe(A,
|
15411
|
+
const o = Fe(gl(s.t, n), t);
|
15412
|
+
xe(A, o, n);
|
15413
15413
|
} else t && xe(A, t, n);
|
15414
15414
|
s.t = A;
|
15415
15415
|
}
|
15416
15416
|
return a.j[e] = s, s;
|
15417
15417
|
}
|
15418
15418
|
};
|
15419
|
-
const V = (e, f, t, n, a) => e.ta(f, t, n, a), ne = (e, f, t, n, a) => e.tr(f, t, n, a), jn = (e, f, t, n, a) => e.ts(f, t, n, a), v = (e, f, t, n, a) => e.tt(f, t, n, a), Me = "WORD", Et = "UWORD", Af = "LOCALHOST", Tt = "TLD", Vt = "UTLD", Nf = "SCHEME", Ue = "SLASH_SCHEME", $t = "NUM", na = "WS", Wt = "NL", Xe = "OPENBRACE", ef = "CLOSEBRACE", Tf = "OPENBRACKET", Vf = "CLOSEBRACKET", xf = "OPENPAREN", Sf = "CLOSEPAREN", zf = "OPENANGLEBRACKET", Of = "CLOSEANGLEBRACKET", Cf = "FULLWIDTHLEFTPAREN", Lf = "FULLWIDTHRIGHTPAREN", Uf = "LEFTCORNERBRACKET", Bf = "RIGHTCORNERBRACKET", Qf = "LEFTWHITECORNERBRACKET", Rf = "RIGHTWHITECORNERBRACKET", Yf = "FULLWIDTHLESSTHAN", qf = "FULLWIDTHGREATERTHAN", Hf = "AMPERSAND", Ff = "APOSTROPHE", Pf = "ASTERISK",
|
15419
|
+
const V = (e, f, t, n, a) => e.ta(f, t, n, a), ne = (e, f, t, n, a) => e.tr(f, t, n, a), jn = (e, f, t, n, a) => e.ts(f, t, n, a), v = (e, f, t, n, a) => e.tt(f, t, n, a), Me = "WORD", Et = "UWORD", Af = "LOCALHOST", Tt = "TLD", Vt = "UTLD", Nf = "SCHEME", Ue = "SLASH_SCHEME", $t = "NUM", na = "WS", Wt = "NL", Xe = "OPENBRACE", ef = "CLOSEBRACE", Tf = "OPENBRACKET", Vf = "CLOSEBRACKET", xf = "OPENPAREN", Sf = "CLOSEPAREN", zf = "OPENANGLEBRACKET", Of = "CLOSEANGLEBRACKET", Cf = "FULLWIDTHLEFTPAREN", Lf = "FULLWIDTHRIGHTPAREN", Uf = "LEFTCORNERBRACKET", Bf = "RIGHTCORNERBRACKET", Qf = "LEFTWHITECORNERBRACKET", Rf = "RIGHTWHITECORNERBRACKET", Yf = "FULLWIDTHLESSTHAN", qf = "FULLWIDTHGREATERTHAN", Hf = "AMPERSAND", Ff = "APOSTROPHE", Pf = "ASTERISK", Ie = "AT", $f = "BACKSLASH", Wf = "BACKTICK", Kf = "CARET", _e = "COLON", Kt = "COMMA", Jf = "DOLLAR", re = "DOT", Gf = "EQUALS", Jt = "EXCLAMATION", ue = "HYPHEN", Zf = "PERCENT", Xf = "PIPE", et = "PLUS", ft = "POUND", tt = "QUERY", Gt = "QUOTE", aa = "FULLWIDTHMIDDLEDOT", Zt = "SEMI", ce = "SLASH", ff = "TILDE", nt = "UNDERSCORE", Aa = "EMOJI", at = "SYM";
|
15420
15420
|
var sa = /* @__PURE__ */ Object.freeze({
|
15421
15421
|
__proto__: null,
|
15422
15422
|
WORD: Me,
|
@@ -15448,11 +15448,11 @@ var sa = /* @__PURE__ */ Object.freeze({
|
|
15448
15448
|
AMPERSAND: Hf,
|
15449
15449
|
APOSTROPHE: Ff,
|
15450
15450
|
ASTERISK: Pf,
|
15451
|
-
AT:
|
15451
|
+
AT: Ie,
|
15452
15452
|
BACKSLASH: $f,
|
15453
15453
|
BACKTICK: Wf,
|
15454
15454
|
CARET: Kf,
|
15455
|
-
COLON:
|
15455
|
+
COLON: _e,
|
15456
15456
|
COMMA: Kt,
|
15457
15457
|
DOLLAR: Jf,
|
15458
15458
|
DOT: re,
|
@@ -15480,7 +15480,7 @@ function hl(e = []) {
|
|
15480
15480
|
const f = {};
|
15481
15481
|
fe.groups = f;
|
15482
15482
|
const t = new fe();
|
15483
|
-
yf == null && (yf = Vn(ll)), bf == null && (bf = Vn(rl)), v(t, "'", Ff), v(t, "{", Xe), v(t, "}", ef), v(t, "[", Tf), v(t, "]", Vf), v(t, "(", xf), v(t, ")", Sf), v(t, "<", zf), v(t, ">", Of), v(t, "(", Cf), v(t, ")", Lf), v(t, "「", Uf), v(t, "」", Bf), v(t, "『", Qf), v(t, "』", Rf), v(t, "<", Yf), v(t, ">", qf), v(t, "&", Hf), v(t, "*", Pf), v(t, "@",
|
15483
|
+
yf == null && (yf = Vn(ll)), bf == null && (bf = Vn(rl)), v(t, "'", Ff), v(t, "{", Xe), v(t, "}", ef), v(t, "[", Tf), v(t, "]", Vf), v(t, "(", xf), v(t, ")", Sf), v(t, "<", zf), v(t, ">", Of), v(t, "(", Cf), v(t, ")", Lf), v(t, "「", Uf), v(t, "」", Bf), v(t, "『", Qf), v(t, "』", Rf), v(t, "<", Yf), v(t, ">", qf), v(t, "&", Hf), v(t, "*", Pf), v(t, "@", Ie), v(t, "`", Wf), v(t, "^", Kf), v(t, ":", _e), v(t, ",", Kt), v(t, "$", Jf), v(t, ".", re), v(t, "=", Gf), v(t, "!", Jt), v(t, "-", ue), v(t, "%", Zf), v(t, "|", Xf), v(t, "+", et), v(t, "#", ft), v(t, "?", tt), v(t, '"', Gt), v(t, "/", ce), v(t, ";", Zt), v(t, "~", ff), v(t, "_", nt), v(t, "\\", $f), v(t, "・", aa);
|
15484
15484
|
const n = ne(t, yt, $t, {
|
15485
15485
|
[kt]: !0
|
15486
15486
|
});
|
@@ -15503,20 +15503,20 @@ function hl(e = []) {
|
|
15503
15503
|
[ta]: !0
|
15504
15504
|
});
|
15505
15505
|
ne(i, Mt, i), v(i, ml, i);
|
15506
|
-
const
|
15507
|
-
ne(
|
15506
|
+
const o = v(i, pl);
|
15507
|
+
ne(o, Mt, i);
|
15508
15508
|
const r = [[Le, a]], g = [[Le, null], [ht, A]];
|
15509
15509
|
for (let u = 0; u < yf.length; u++)
|
15510
|
-
|
15510
|
+
ve(t, yf[u], Tt, Me, r);
|
15511
15511
|
for (let u = 0; u < bf.length; u++)
|
15512
|
-
|
15512
|
+
ve(t, bf[u], Vt, Et, g);
|
15513
15513
|
xe(Tt, {
|
15514
15514
|
tld: !0,
|
15515
15515
|
ascii: !0
|
15516
15516
|
}, f), xe(Vt, {
|
15517
15517
|
utld: !0,
|
15518
15518
|
alpha: !0
|
15519
|
-
}, f),
|
15519
|
+
}, f), ve(t, "file", Nf, Me, r), ve(t, "mailto", Nf, Me, r), ve(t, "http", Ue, Me, r), ve(t, "https", Ue, Me, r), ve(t, "ftp", Ue, Me, r), ve(t, "ftps", Ue, Me, r), xe(Nf, {
|
15520
15520
|
scheme: !0,
|
15521
15521
|
ascii: !0
|
15522
15522
|
}, f), xe(Ue, {
|
@@ -15544,9 +15544,9 @@ function ia(e, f) {
|
|
15544
15544
|
const t = Ml(f.replace(/[A-Z]/g, (i) => i.toLowerCase())), n = t.length, a = [];
|
15545
15545
|
let A = 0, s = 0;
|
15546
15546
|
for (; s < n; ) {
|
15547
|
-
let i = e,
|
15548
|
-
for (; s < n && (
|
15549
|
-
i =
|
15547
|
+
let i = e, o = null, r = 0, g = null, u = -1, m = -1;
|
15548
|
+
for (; s < n && (o = i.go(t[s])); )
|
15549
|
+
i = o, i.accepts() ? (u = 0, m = 0, g = i) : u >= 0 && (u += t[s].length, m++), r += t[s].length, A += t[s].length, s++;
|
15550
15550
|
A -= u, s -= m, r -= u, a.push({
|
15551
15551
|
t: g.t,
|
15552
15552
|
// token type/name
|
@@ -15569,12 +15569,12 @@ function Ml(e) {
|
|
15569
15569
|
}
|
15570
15570
|
return f;
|
15571
15571
|
}
|
15572
|
-
function
|
15572
|
+
function ve(e, f, t, n, a) {
|
15573
15573
|
let A;
|
15574
15574
|
const s = f.length;
|
15575
15575
|
for (let i = 0; i < s - 1; i++) {
|
15576
|
-
const
|
15577
|
-
e.j[
|
15576
|
+
const o = f[i];
|
15577
|
+
e.j[o] ? A = e.j[o] : (A = new fe(n), A.jr = a.slice(), e.j[o] = A), e = A;
|
15578
15578
|
}
|
15579
15579
|
return A = new fe(t), A.jr = a.slice(), e.j[f[s - 1]] = A, A;
|
15580
15580
|
}
|
@@ -15782,8 +15782,8 @@ oa.prototype = {
|
|
15782
15782
|
* @param {Options} options Formattinng options
|
15783
15783
|
*/
|
15784
15784
|
render(e) {
|
15785
|
-
const f = this, t = this.toHref(e.get("defaultProtocol")), n = e.get("formatHref", t, this), a = e.get("tagName", t, f), A = this.toFormattedString(e), s = {}, i = e.get("className", t, f),
|
15786
|
-
return s.href = n, i && (s.class = i),
|
15785
|
+
const f = this, t = this.toHref(e.get("defaultProtocol")), n = e.get("formatHref", t, this), a = e.get("tagName", t, f), A = this.toFormattedString(e), s = {}, i = e.get("className", t, f), o = e.get("target", t, f), r = e.get("rel", t, f), g = e.getObj("attributes", t, f), u = e.getObj("events", t, f);
|
15786
|
+
return s.href = n, i && (s.class = i), o && (s.target = o), r && (s.rel = r), g && Fe(s, g), {
|
15787
15787
|
tagName: a,
|
15788
15788
|
attributes: s,
|
15789
15789
|
content: A,
|
@@ -15824,18 +15824,18 @@ const Sn = ot("email", {
|
|
15824
15824
|
*/
|
15825
15825
|
hasProtocol() {
|
15826
15826
|
const e = this.tk;
|
15827
|
-
return e.length >= 2 && e[0].t !== Af && e[1].t ===
|
15827
|
+
return e.length >= 2 && e[0].t !== Af && e[1].t === _e;
|
15828
15828
|
}
|
15829
15829
|
}), ae = (e) => new fe(e);
|
15830
15830
|
function bl({
|
15831
15831
|
groups: e
|
15832
15832
|
}) {
|
15833
|
-
const f = e.domain.concat([Hf, Pf,
|
15833
|
+
const f = e.domain.concat([Hf, Pf, Ie, $f, Wf, Kf, Jf, Gf, ue, $t, Zf, Xf, et, ft, ce, at, ff, nt]), t = [Ff, _e, Kt, re, Jt, tt, Gt, Zt, zf, Of, Xe, ef, Vf, Tf, xf, Sf, Cf, Lf, Uf, Bf, Qf, Rf, Yf, qf], n = [Hf, Ff, Pf, $f, Wf, Kf, Jf, Gf, ue, Xe, ef, Zf, Xf, et, ft, tt, ce, at, ff, nt], a = ae(), A = v(a, ff);
|
15834
15834
|
V(A, n, A), V(A, e.domain, A);
|
15835
|
-
const s = ae(), i = ae(),
|
15836
|
-
V(a, e.domain, s), V(a, e.scheme, i), V(a, e.slashscheme,
|
15837
|
-
const r = v(s,
|
15838
|
-
v(A,
|
15835
|
+
const s = ae(), i = ae(), o = ae();
|
15836
|
+
V(a, e.domain, s), V(a, e.scheme, i), V(a, e.slashscheme, o), V(s, n, A), V(s, e.domain, s);
|
15837
|
+
const r = v(s, Ie);
|
15838
|
+
v(A, Ie, r), v(i, Ie, r), v(o, Ie, r);
|
15839
15839
|
const g = v(A, re);
|
15840
15840
|
V(g, n, A), V(g, e.domain, A);
|
15841
15841
|
const u = ae();
|
@@ -15846,18 +15846,18 @@ function bl({
|
|
15846
15846
|
V(m, e.tld, p), V(m, e.utld, p), v(r, Af, p);
|
15847
15847
|
const h = v(u, ue);
|
15848
15848
|
V(h, e.domain, u), V(p, e.domain, u), v(p, re, m), v(p, ue, h);
|
15849
|
-
const M = v(p,
|
15849
|
+
const M = v(p, _e);
|
15850
15850
|
V(M, e.numeric, Sn);
|
15851
15851
|
const y = v(s, ue), _ = v(s, re);
|
15852
15852
|
V(y, e.domain, s), V(_, n, A), V(_, e.domain, s);
|
15853
15853
|
const k = ae(vf);
|
15854
|
-
V(_, e.tld, k), V(_, e.utld, k), V(k, e.domain, s), V(k, n, A), v(k, re, _), v(k, ue, y), v(k,
|
15855
|
-
const D = v(k,
|
15854
|
+
V(_, e.tld, k), V(_, e.utld, k), V(k, e.domain, s), V(k, n, A), v(k, re, _), v(k, ue, y), v(k, Ie, r);
|
15855
|
+
const D = v(k, _e), N = ae(vf);
|
15856
15856
|
V(D, e.numeric, N);
|
15857
15857
|
const E = ae(vf), S = ae();
|
15858
15858
|
V(E, f, E), V(E, t, S), V(S, f, E), V(S, t, S), v(k, ce, E), v(N, ce, E);
|
15859
|
-
const T = v(i,
|
15860
|
-
V(i, e.domain, s), v(i, re, _), v(i, ue, y), V(
|
15859
|
+
const T = v(i, _e), O = v(o, _e), Q = v(O, ce), C = v(Q, ce);
|
15860
|
+
V(i, e.domain, s), v(i, re, _), v(i, ue, y), V(o, e.domain, s), v(o, re, _), v(o, ue, y), V(T, e.domain, E), v(T, ce, E), V(C, e.domain, E), V(C, f, E), v(C, ce, E);
|
15861
15861
|
const B = [
|
15862
15862
|
[Xe, ef],
|
15863
15863
|
// {}
|
@@ -15892,11 +15892,11 @@ function bl({
|
|
15892
15892
|
function vl(e, f, t) {
|
15893
15893
|
let n = t.length, a = 0, A = [], s = [];
|
15894
15894
|
for (; a < n; ) {
|
15895
|
-
let i = e,
|
15896
|
-
for (; a < n && !(
|
15895
|
+
let i = e, o = null, r = null, g = 0, u = null, m = -1;
|
15896
|
+
for (; a < n && !(o = i.go(t[a].t)); )
|
15897
15897
|
s.push(t[a++]);
|
15898
|
-
for (; a < n && (r =
|
15899
|
-
|
15898
|
+
for (; a < n && (r = o || i.go(t[a].t)); )
|
15899
|
+
o = null, i = r, i.accepts() ? (m = 0, u = i) : m >= 0 && m++, a++, g++;
|
15900
15900
|
if (m < 0)
|
15901
15901
|
a -= g, a < n && (s.push(t[a]), a++);
|
15902
15902
|
else {
|
@@ -16004,7 +16004,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16004
16004
|
function i(h) {
|
16005
16005
|
h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
|
16006
16006
|
}
|
16007
|
-
const
|
16007
|
+
const o = () => {
|
16008
16008
|
A.value = !0;
|
16009
16009
|
}, r = () => {
|
16010
16010
|
A.value = !1, a.value = !1;
|
@@ -16017,7 +16017,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16017
16017
|
return h.position === "left" ? "text-message__left" : "text-message__right";
|
16018
16018
|
}
|
16019
16019
|
return (h, M) => (c(), d("div", Nl, [
|
16020
|
-
|
16020
|
+
l("div", {
|
16021
16021
|
class: x(p(e.message)),
|
16022
16022
|
messageId: e.message.messageId,
|
16023
16023
|
onMouseleave: r
|
@@ -16031,23 +16031,23 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16031
16031
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16032
16032
|
}, null, 12, jl)) : b("", !0),
|
16033
16033
|
e.message.subText ? (c(), d("p", El, w(e.message.subText), 1)) : b("", !0),
|
16034
|
-
|
16034
|
+
l("div", {
|
16035
16035
|
class: "text-message__content",
|
16036
|
-
onMouseenter:
|
16036
|
+
onMouseenter: o
|
16037
16037
|
}, [
|
16038
|
-
|
16038
|
+
l("p", {
|
16039
16039
|
innerHTML: s.value,
|
16040
16040
|
class: "text-message__text",
|
16041
16041
|
onClick: i
|
16042
16042
|
}, null, 8, Tl),
|
16043
|
-
|
16043
|
+
l("div", Vl, [
|
16044
16044
|
e.message.views ? (c(), d("div", {
|
16045
16045
|
key: 0,
|
16046
16046
|
class: "text-message__views",
|
16047
16047
|
onClick: m
|
16048
16048
|
}, [
|
16049
|
-
M[1] || (M[1] =
|
16050
|
-
|
16049
|
+
M[1] || (M[1] = l("span", { class: "pi pi-eye" }, null, -1)),
|
16050
|
+
l("p", null, w(e.message.views), 1)
|
16051
16051
|
])) : b("", !0),
|
16052
16052
|
e.message.time ? (c(), d("span", xl, w(e.message.time), 1)) : b("", !0),
|
16053
16053
|
p(e.message) === "text-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
@@ -16055,7 +16055,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16055
16055
|
class: x(["text-message__status", g.value])
|
16056
16056
|
}, [
|
16057
16057
|
e.message.status !== "sent" ? (c(), d("span", Sl)) : b("", !0),
|
16058
|
-
M[2] || (M[2] =
|
16058
|
+
M[2] || (M[2] = l("span", { class: "pi pi-check" }, null, -1))
|
16059
16059
|
], 2)) : b("", !0)
|
16060
16060
|
]),
|
16061
16061
|
A.value && e.message.actions ? (c(), d("button", {
|
@@ -16063,7 +16063,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16063
16063
|
class: "text-message__menu-button",
|
16064
16064
|
onClick: M[0] || (M[0] = (y) => a.value = !a.value)
|
16065
16065
|
}, M[3] || (M[3] = [
|
16066
|
-
|
16066
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16067
16067
|
]))) : b("", !0),
|
16068
16068
|
L(q, null, {
|
16069
16069
|
default: H(() => [
|
@@ -16098,7 +16098,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16098
16098
|
}
|
16099
16099
|
},
|
16100
16100
|
setup(e) {
|
16101
|
-
const f = e, t = I(), n = I(!1), a = I(0), A = I(0), s = I(!1), i = I(!1),
|
16101
|
+
const f = e, t = I(), n = I(!1), a = I(0), A = I(0), s = I(!1), i = I(!1), o = () => {
|
16102
16102
|
i.value = !0;
|
16103
16103
|
}, r = () => {
|
16104
16104
|
i.value = !1, s.value = !1;
|
@@ -16134,46 +16134,46 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16134
16134
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16135
16135
|
}, null, 12, Ll)) : b("", !0),
|
16136
16136
|
e.message.subText ? (c(), d("p", Ul, w(e.message.subText), 1)) : b("", !0),
|
16137
|
-
|
16137
|
+
l("div", {
|
16138
16138
|
class: "audio-message__content",
|
16139
|
-
onMouseenter:
|
16139
|
+
onMouseenter: o
|
16140
16140
|
}, [
|
16141
|
-
|
16141
|
+
l("audio", {
|
16142
16142
|
ref_key: "player",
|
16143
16143
|
ref: t,
|
16144
16144
|
src: e.message.url
|
16145
16145
|
}, null, 8, Bl),
|
16146
|
-
|
16146
|
+
ke(l("button", {
|
16147
16147
|
class: "audio-message__play",
|
16148
16148
|
onClick: m
|
16149
16149
|
}, D[1] || (D[1] = [
|
16150
|
-
|
16150
|
+
l("span", { class: "pi pi-play" }, null, -1)
|
16151
16151
|
]), 512), [
|
16152
16152
|
[Df, !n.value]
|
16153
16153
|
]),
|
16154
|
-
|
16154
|
+
ke(l("button", {
|
16155
16155
|
class: "audio-message__pause",
|
16156
16156
|
onClick: m
|
16157
16157
|
}, D[2] || (D[2] = [
|
16158
|
-
|
16158
|
+
l("span", { class: "pi pi-pause" }, null, -1)
|
16159
16159
|
]), 512), [
|
16160
16160
|
[Df, n.value]
|
16161
16161
|
]),
|
16162
|
-
|
16163
|
-
|
16162
|
+
l("div", Ql, [
|
16163
|
+
l("div", {
|
16164
16164
|
class: "audio-message__progress-bar",
|
16165
16165
|
style: P({ width: y.value + "%" })
|
16166
16166
|
}, null, 4)
|
16167
16167
|
]),
|
16168
|
-
|
16169
|
-
|
16170
|
-
|
16168
|
+
l("p", Rl, w(`${h.value} / ${M.value}`), 1),
|
16169
|
+
l("div", Yl, [
|
16170
|
+
l("span", ql, w(e.message.time), 1),
|
16171
16171
|
_(e.message) === "audio-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
16172
16172
|
key: 0,
|
16173
16173
|
class: x(["audio-message__status", u.value])
|
16174
16174
|
}, [
|
16175
16175
|
e.message.status !== "sent" ? (c(), d("span", Hl)) : b("", !0),
|
16176
|
-
D[3] || (D[3] =
|
16176
|
+
D[3] || (D[3] = l("span", { class: "pi pi-check" }, null, -1))
|
16177
16177
|
], 2)) : b("", !0)
|
16178
16178
|
]),
|
16179
16179
|
i.value && e.message.actions ? (c(), d("button", {
|
@@ -16181,15 +16181,15 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16181
16181
|
class: "audio-message__menu-button",
|
16182
16182
|
onClick: D[0] || (D[0] = (N) => s.value = !s.value)
|
16183
16183
|
}, D[4] || (D[4] = [
|
16184
|
-
|
16184
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16185
16185
|
]))) : b("", !0),
|
16186
|
-
|
16186
|
+
l("a", {
|
16187
16187
|
class: "audio-message__download-button",
|
16188
16188
|
href: e.message.url,
|
16189
16189
|
download: "",
|
16190
16190
|
target: "_blank"
|
16191
16191
|
}, D[5] || (D[5] = [
|
16192
|
-
|
16192
|
+
l("span", { class: "pi pi-download" }, null, -1)
|
16193
16193
|
]), 8, Fl),
|
16194
16194
|
L(q, null, {
|
16195
16195
|
default: H(() => [
|
@@ -16203,7 +16203,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16203
16203
|
_: 1
|
16204
16204
|
}),
|
16205
16205
|
e.message.text ? (c(), d("div", Pl, [
|
16206
|
-
|
16206
|
+
l("p", null, w(e.message.text), 1)
|
16207
16207
|
])) : b("", !0)
|
16208
16208
|
], 32)
|
16209
16209
|
], 42, Cl));
|
@@ -16220,8 +16220,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16220
16220
|
},
|
16221
16221
|
setup(e) {
|
16222
16222
|
return (f, t) => (c(), d("div", Kl, [
|
16223
|
-
|
16224
|
-
|
16223
|
+
l("div", Jl, [
|
16224
|
+
l("p", Gl, w(e.message.text), 1)
|
16225
16225
|
])
|
16226
16226
|
]));
|
16227
16227
|
}
|
@@ -16256,9 +16256,9 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16256
16256
|
function t(h) {
|
16257
16257
|
return h.position === "left" ? "video-message__left" : "video-message__right";
|
16258
16258
|
}
|
16259
|
-
const n = I(), a = I(), A = I(!1), s = I(!1), i = I(!1),
|
16259
|
+
const n = I(), a = I(), A = I(!1), s = I(!1), i = I(!1), o = I(!1), r = () => {
|
16260
16260
|
}, g = () => {
|
16261
|
-
i.value = !0,
|
16261
|
+
i.value = !0, o.value = !0;
|
16262
16262
|
}, u = () => {
|
16263
16263
|
i.value = !1, s.value = !1;
|
16264
16264
|
}, m = U(() => $e(f.message.status)), p = () => {
|
@@ -16279,14 +16279,14 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16279
16279
|
width: "32"
|
16280
16280
|
}, null, 8, fr)) : b("", !0),
|
16281
16281
|
e.message.subText ? (c(), d("p", tr, w(e.message.subText), 1)) : b("", !0),
|
16282
|
-
|
16283
|
-
|
16282
|
+
l("div", nr, [
|
16283
|
+
l("div", {
|
16284
16284
|
class: "video-message__preview-button",
|
16285
16285
|
onClick: M[0] || (M[0] = (y) => A.value = !0),
|
16286
16286
|
onMouseenter: g,
|
16287
|
-
onMouseleave: M[1] || (M[1] = (y) =>
|
16287
|
+
onMouseleave: M[1] || (M[1] = (y) => o.value = !o.value)
|
16288
16288
|
}, [
|
16289
|
-
|
16289
|
+
l("video", {
|
16290
16290
|
ref_key: "previewPlayer",
|
16291
16291
|
ref: a,
|
16292
16292
|
class: "video-message__video",
|
@@ -16298,18 +16298,18 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16298
16298
|
}, null, 44, ar),
|
16299
16299
|
L(q, { name: "modal-fade" }, {
|
16300
16300
|
default: H(() => [
|
16301
|
-
|
16301
|
+
o.value ? (c(), d("div", Ar, [
|
16302
16302
|
e.message.views ? (c(), d("div", sr, [
|
16303
|
-
M[4] || (M[4] =
|
16304
|
-
|
16303
|
+
M[4] || (M[4] = l("span", { class: "pi pi-eye" }, null, -1)),
|
16304
|
+
l("p", null, w(e.message.views), 1)
|
16305
16305
|
])) : b("", !0),
|
16306
|
-
|
16306
|
+
l("span", ir, w(e.message.time), 1),
|
16307
16307
|
t(e.message) === "video-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
|
16308
16308
|
key: 1,
|
16309
16309
|
class: x(["video-message__status", m.value])
|
16310
16310
|
}, [
|
16311
16311
|
e.message.status !== "sent" ? (c(), d("span", or)) : b("", !0),
|
16312
|
-
M[5] || (M[5] =
|
16312
|
+
M[5] || (M[5] = l("span", { class: "pi pi-check" }, null, -1))
|
16313
16313
|
], 2)) : b("", !0)
|
16314
16314
|
])) : b("", !0)
|
16315
16315
|
]),
|
@@ -16317,14 +16317,14 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16317
16317
|
}),
|
16318
16318
|
L(q, { name: "modal-fade" }, {
|
16319
16319
|
default: H(() => [
|
16320
|
-
|
16320
|
+
o.value ? (c(), d("a", {
|
16321
16321
|
key: 0,
|
16322
16322
|
class: "video-message__download-button",
|
16323
16323
|
href: e.message.url,
|
16324
16324
|
download: "",
|
16325
16325
|
target: "_blank"
|
16326
16326
|
}, M[6] || (M[6] = [
|
16327
|
-
|
16327
|
+
l("span", { class: "pi pi-download" }, null, -1)
|
16328
16328
|
]), 8, lr)) : b("", !0)
|
16329
16329
|
]),
|
16330
16330
|
_: 1
|
@@ -16337,7 +16337,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16337
16337
|
class: "video-message__menu-button",
|
16338
16338
|
onClick: M[2] || (M[2] = (y) => s.value = !s.value)
|
16339
16339
|
}, M[7] || (M[7] = [
|
16340
|
-
|
16340
|
+
l("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16341
16341
|
]))) : b("", !0)
|
16342
16342
|
]),
|
16343
16343
|
_: 1
|
@@ -16354,23 +16354,23 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16354
16354
|
_: 1
|
16355
16355
|
}),
|
16356
16356
|
e.message.text ? (c(), d("div", rr, [
|
16357
|
-
|
16357
|
+
l("p", null, w(e.message.text), 1)
|
16358
16358
|
])) : b("", !0)
|
16359
16359
|
]),
|
16360
16360
|
(c(), F(Ot, { to: "body" }, [
|
16361
16361
|
L(q, { name: "modal-fade" }, {
|
16362
16362
|
default: H(() => [
|
16363
16363
|
A.value ? (c(), d("div", ur, [
|
16364
|
-
|
16365
|
-
|
16364
|
+
l("div", cr, [
|
16365
|
+
l("button", {
|
16366
16366
|
class: "video-message__modal-close-button",
|
16367
16367
|
onClick: M[3] || (M[3] = (y) => A.value = !1)
|
16368
16368
|
}, M[8] || (M[8] = [
|
16369
|
-
|
16370
|
-
|
16369
|
+
l("span", null, [
|
16370
|
+
l("i", { class: "pi pi-times" })
|
16371
16371
|
], -1)
|
16372
16372
|
])),
|
16373
|
-
|
16373
|
+
l("video", {
|
16374
16374
|
ref_key: "player",
|
16375
16375
|
ref: n,
|
16376
16376
|
class: "video-message__modal-video",
|
@@ -16418,7 +16418,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16418
16418
|
return t.position === "left" ? "call-message__left" : "call-message__right";
|
16419
16419
|
}
|
16420
16420
|
return (t, n) => (c(), d("div", pr, [
|
16421
|
-
|
16421
|
+
l("div", {
|
16422
16422
|
class: x(f(e.message)),
|
16423
16423
|
messageId: e.message.messageId
|
16424
16424
|
}, [
|
@@ -16431,15 +16431,15 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16431
16431
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16432
16432
|
}, null, 12, Mr)) : b("", !0),
|
16433
16433
|
e.message.subText ? (c(), d("p", yr, w(e.message.subText), 1)) : b("", !0),
|
16434
|
-
|
16435
|
-
|
16434
|
+
l("div", br, [
|
16435
|
+
l("span", {
|
16436
16436
|
class: "call-message__icon pi pi-phone",
|
16437
16437
|
style: P({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
|
16438
16438
|
}, null, 4),
|
16439
16439
|
e.message.isMissedCall ? (c(), d("span", Ir, "Пропущенный аудиозвонок")) : (c(), d("span", vr, "Аудиозвонок")),
|
16440
16440
|
e.message.callDuration ? (c(), d("span", _r, w(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (c(), d("span", wr, "Нажмите, чтобы перезвонить")) : (c(), d("span", kr, "Нет ответа")),
|
16441
|
-
|
16442
|
-
|
16441
|
+
l("div", Nr, [
|
16442
|
+
l("span", Dr, w(e.message.time), 1)
|
16443
16443
|
])
|
16444
16444
|
])
|
16445
16445
|
], 10, hr)
|
@@ -16455,8 +16455,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16455
16455
|
},
|
16456
16456
|
setup(e) {
|
16457
16457
|
return (f, t) => (c(), d("div", Tr, [
|
16458
|
-
|
16459
|
-
|
16458
|
+
l("div", Vr, [
|
16459
|
+
l("p", xr, w(e.message.text), 1)
|
16460
16460
|
])
|
16461
16461
|
]));
|
16462
16462
|
}
|
@@ -16473,7 +16473,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16473
16473
|
},
|
16474
16474
|
setup(e) {
|
16475
16475
|
return (f, t) => (c(), d("div", Or, [
|
16476
|
-
|
16476
|
+
l("div", Cr, [
|
16477
16477
|
e.message.avatar ? (c(), d("img", {
|
16478
16478
|
key: 0,
|
16479
16479
|
class: "typing-message__avatar",
|
@@ -16483,8 +16483,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16483
16483
|
style: P({ gridRow: e.message.subText ? "2" : "1" })
|
16484
16484
|
}, null, 12, Lr)) : b("", !0),
|
16485
16485
|
e.message.subText ? (c(), d("p", Ur, w(e.message.subText), 1)) : b("", !0),
|
16486
|
-
t[0] || (t[0] =
|
16487
|
-
|
16486
|
+
t[0] || (t[0] = l("div", { class: "typing-message__loader-container" }, [
|
16487
|
+
l("div", { class: "typing-message__loader" })
|
16488
16488
|
], -1))
|
16489
16489
|
])
|
16490
16490
|
]));
|
@@ -16506,19 +16506,19 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
|
|
16506
16506
|
}, a = I(null);
|
16507
16507
|
return (A, s) => (c(), F(q, { name: "modal-fade" }, {
|
16508
16508
|
default: H(() => [
|
16509
|
-
|
16510
|
-
|
16511
|
-
|
16509
|
+
l("div", Qr, [
|
16510
|
+
l("div", Rr, [
|
16511
|
+
l("div", Yr, [
|
16512
16512
|
G(A.$slots, "default", {}, void 0, !0)
|
16513
16513
|
]),
|
16514
|
-
|
16515
|
-
|
16514
|
+
l("div", qr, [
|
16515
|
+
l("button", {
|
16516
16516
|
type: "button",
|
16517
16517
|
class: "btn-green",
|
16518
16518
|
"aria-label": "Close modal",
|
16519
16519
|
onClick: s[0] || (s[0] = (i) => n(a.value))
|
16520
16520
|
}, " OK "),
|
16521
|
-
|
16521
|
+
l("button", {
|
16522
16522
|
type: "button",
|
16523
16523
|
class: "btn-green",
|
16524
16524
|
"aria-label": "Close modal",
|
@@ -16543,7 +16543,7 @@ function en({ component: e, attrs: f }) {
|
|
16543
16543
|
}, i = (g) => {
|
16544
16544
|
const u = Object.keys(g)[0];
|
16545
16545
|
a.value[u] = g[u];
|
16546
|
-
},
|
16546
|
+
}, o = K({
|
16547
16547
|
render() {
|
16548
16548
|
return un(
|
16549
16549
|
Fr,
|
@@ -16562,14 +16562,14 @@ function en({ component: e, attrs: f }) {
|
|
16562
16562
|
}
|
16563
16563
|
);
|
16564
16564
|
}
|
16565
|
-
}), r = ja(
|
16565
|
+
}), r = ja(o);
|
16566
16566
|
r.mount(n);
|
16567
16567
|
});
|
16568
16568
|
}
|
16569
16569
|
const xu = async (e, f) => {
|
16570
16570
|
const t = await en({
|
16571
16571
|
//в component должен быть встроен emit change(key: value)
|
16572
|
-
component: import("./SelectUser2-
|
16572
|
+
component: import("./SelectUser2-Babd7Ddg.js"),
|
16573
16573
|
attrs: {
|
16574
16574
|
title: e,
|
16575
16575
|
users: f
|
@@ -16603,7 +16603,7 @@ const xu = async (e, f) => {
|
|
16603
16603
|
class: "base",
|
16604
16604
|
id: j(f)
|
16605
16605
|
}, [
|
16606
|
-
|
16606
|
+
l("div", {
|
16607
16607
|
class: "base__container",
|
16608
16608
|
style: P({ height: e.height, width: e.width })
|
16609
16609
|
}, [
|
@@ -16631,13 +16631,13 @@ const xu = async (e, f) => {
|
|
16631
16631
|
},
|
16632
16632
|
emits: ["close-window", "get-size"],
|
16633
16633
|
setup(e, { emit: f }) {
|
16634
|
-
const t = e, n = I({ x: 0, y: 0 }), a = I(null), A = I(null), s = I(!1), i = I(0),
|
16634
|
+
const t = e, n = I({ x: 0, y: 0 }), a = I(null), A = I(null), s = I(!1), i = I(0), o = I(0), r = I(0), g = St();
|
16635
16635
|
Ct("chatAppId", g);
|
16636
16636
|
const u = (h) => {
|
16637
|
-
s.value = !0, i.value = h.clientX - a.value.offsetLeft,
|
16637
|
+
s.value = !0, i.value = h.clientX - a.value.offsetLeft, o.value = h.clientY - a.value.offsetTop;
|
16638
16638
|
}, m = () => s.value = !1, p = (h) => {
|
16639
16639
|
if (s.value) {
|
16640
|
-
const M = h.clientX - i.value, y = h.clientY -
|
16640
|
+
const M = h.clientX - i.value, y = h.clientY - o.value;
|
16641
16641
|
n.value.x = M, n.value.y = y;
|
16642
16642
|
}
|
16643
16643
|
};
|
@@ -16671,8 +16671,8 @@ const xu = async (e, f) => {
|
|
16671
16671
|
display: "flex"
|
16672
16672
|
})
|
16673
16673
|
}, [
|
16674
|
-
|
16675
|
-
|
16674
|
+
l("div", Wr, [
|
16675
|
+
l("div", {
|
16676
16676
|
ref_key: "container",
|
16677
16677
|
ref: A,
|
16678
16678
|
class: "float-window__controls",
|
@@ -16687,15 +16687,15 @@ const xu = async (e, f) => {
|
|
16687
16687
|
src: t.avatar,
|
16688
16688
|
alt: t.title
|
16689
16689
|
}, null, 8, Kr)) : b("", !0),
|
16690
|
-
|
16691
|
-
|
16690
|
+
l("p", Jr, w(t.title), 1),
|
16691
|
+
l("button", {
|
16692
16692
|
class: "float-window__close-button",
|
16693
16693
|
onClick: M[0] || (M[0] = (y) => h.$emit("close-window"))
|
16694
16694
|
}, M[1] || (M[1] = [
|
16695
|
-
|
16695
|
+
l("span", { class: "pi pi-times" }, null, -1)
|
16696
16696
|
]))
|
16697
16697
|
], 36),
|
16698
|
-
|
16698
|
+
l("div", {
|
16699
16699
|
class: "float-window__content",
|
16700
16700
|
style: P({ height: r.value + "px" })
|
16701
16701
|
}, [
|
@@ -16707,15 +16707,15 @@ const xu = async (e, f) => {
|
|
16707
16707
|
}, Cu = /* @__PURE__ */ z(Gr, [["__scopeId", "data-v-efd0f13a"]]), Zr = {}, Xr = { class: "base-layout__container" }, eu = { class: "base-layout__first-col" }, fu = { class: "base-layout__second-col" };
|
16708
16708
|
function tu(e, f) {
|
16709
16709
|
return c(), d("div", Xr, [
|
16710
|
-
|
16710
|
+
l("div", eu, [
|
16711
16711
|
G(e.$slots, "first-col", {}, void 0, !0)
|
16712
16712
|
]),
|
16713
|
-
|
16713
|
+
l("div", fu, [
|
16714
16714
|
G(e.$slots, "second-col", {}, void 0, !0)
|
16715
16715
|
])
|
16716
16716
|
]);
|
16717
16717
|
}
|
16718
|
-
const Lu = /* @__PURE__ */ z(Zr, [["render", tu], ["__scopeId", "data-v-
|
16718
|
+
const Lu = /* @__PURE__ */ z(Zr, [["render", tu], ["__scopeId", "data-v-a5df3fcf"]]), nu = { class: "extend-layout__container" }, au = { class: "extend-layout__first-col" }, Au = { class: "extend-layout__third-col" }, su = {
|
16719
16719
|
__name: "ExtendedLayout",
|
16720
16720
|
setup(e) {
|
16721
16721
|
const f = I(null);
|
@@ -16727,26 +16727,26 @@ const Lu = /* @__PURE__ */ z(Zr, [["render", tu], ["__scopeId", "data-v-93dc265d
|
|
16727
16727
|
const g = n.value + (r.clientX - A.value);
|
16728
16728
|
f.value.style.width = `${Math.max(270, g)}px`;
|
16729
16729
|
}
|
16730
|
-
},
|
16730
|
+
}, o = () => {
|
16731
16731
|
t.value = !1, document.removeEventListener("mousemove", i);
|
16732
16732
|
};
|
16733
16733
|
return Ne(() => {
|
16734
16734
|
f.value && (f.value.style.width = "350px");
|
16735
16735
|
}), (r, g) => (c(), d("div", nu, [
|
16736
|
-
|
16736
|
+
l("div", au, [
|
16737
16737
|
G(r.$slots, "first-col", {}, void 0, !0)
|
16738
16738
|
]),
|
16739
|
-
|
16739
|
+
l("div", {
|
16740
16740
|
ref_key: "resizableDiv",
|
16741
16741
|
ref: f,
|
16742
16742
|
class: "extend-layout__second-col resizable-div",
|
16743
16743
|
style: P({ userSelect: j(t) ? "none" : "auto" }),
|
16744
16744
|
onMousedown: s,
|
16745
|
-
onMouseup:
|
16745
|
+
onMouseup: o
|
16746
16746
|
}, [
|
16747
16747
|
G(r.$slots, "second-col", {}, void 0, !0)
|
16748
16748
|
], 36),
|
16749
|
-
|
16749
|
+
l("div", Au, [
|
16750
16750
|
G(r.$slots, "third-col", {}, void 0, !0)
|
16751
16751
|
])
|
16752
16752
|
]));
|
@@ -16754,7 +16754,7 @@ const Lu = /* @__PURE__ */ z(Zr, [["render", tu], ["__scopeId", "data-v-93dc265d
|
|
16754
16754
|
}, Uu = /* @__PURE__ */ z(su, [["__scopeId", "data-v-7c3b977d"]]), iu = {}, ou = { class: "base-layout__container" }, lu = { class: "base-layout__first-col" };
|
16755
16755
|
function ru(e, f) {
|
16756
16756
|
return c(), d("div", ou, [
|
16757
|
-
|
16757
|
+
l("div", lu, [
|
16758
16758
|
G(e.$slots, "default", {}, void 0, !0)
|
16759
16759
|
])
|
16760
16760
|
]);
|
@@ -16782,7 +16782,7 @@ const Bu = /* @__PURE__ */ z(iu, [["render", ru], ["__scopeId", "data-v-e71ea0ed
|
|
16782
16782
|
e.isSelectedChat ? (c(), d("div", cu, [
|
16783
16783
|
G(f.$slots, "default", {}, void 0, !0)
|
16784
16784
|
])) : (c(), d("div", du, [
|
16785
|
-
|
16785
|
+
l("p", null, w(j(Se)("layout.ChatWrapper.noSelectedChat")), 1)
|
16786
16786
|
])),
|
16787
16787
|
e.isOpenChatPanel ? (c(), d("div", {
|
16788
16788
|
key: 2,
|