@mobilon-dev/chotto 0.3.17 → 0.3.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CreateChat-DvdodrGe.js → CreateChat-B60kyrtg.js} +1 -1
- package/dist/{CreateChat2-B6PeHtZu.js → CreateChat2-COe2EXy5.js} +1 -1
- package/dist/{CreateDialog-DK6mSB75.js → CreateDialog-DRllcb8x.js} +1 -1
- package/dist/{ModalVideoRecorder-C3HuQBUE.js → ModalVideoRecorder-CgDAJqKd.js} +1 -1
- package/dist/{SelectUser2-DQ1wjWE4.js → SelectUser2-DxKXYqx3.js} +1 -1
- package/dist/chotto.css +1 -1
- package/dist/{index-CTeEpibQ.js → index-Dn5sRdJY.js} +874 -900
- package/dist/vuessages.es.js +1 -1
- package/dist/vuessages.umd.js +16 -16
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as m, customRef as A4, defineAsyncComponent as K4, defineComponent as J, h as F3, createApp as J4, createBlock as z, openBlock as l, Transition as u2, withCtx as W, withDirectives as p2, createElementVNode as o, renderSlot as r2, vShow as H2, computed as O, watch as
|
|
1
|
+
import { ref as m, customRef as A4, defineAsyncComponent as K4, defineComponent as J, h as F3, createApp as J4, createBlock as z, openBlock as l, Transition as u2, withCtx as W, withDirectives as p2, createElementVNode as o, renderSlot as r2, vShow as H2, computed as O, watch as t2, inject as l2, useId as v3, onMounted as h2, nextTick as M2, onUnmounted as k0, createElementBlock as c, unref as M, Teleport as D2, createVNode as Y, Fragment as q, renderList as c2, createCommentVNode as h, normalizeClass as D, toDisplayString as N, createStaticVNode as T0, normalizeStyle as C2, resolveDynamicComponent as e0, vModelText as N0, useTemplateRef as C4, getCurrentInstance as G4, toRaw as g4, onBeforeUnmount as X4, provide as H1, reactive as L4, readonly as e6, resolveComponent as d1, withKeys as M3, vModelRadio as y3, createTextVNode as v0, withModifiers as q0, vModelCheckbox as t6, toRef as H3 } from "vue";
|
|
2
2
|
const p4 = (e) => {
|
|
3
3
|
let n = "file";
|
|
4
4
|
return e.startsWith("image/") ? n = "image" : e.startsWith("video/") ? n = "video" : e.startsWith("audio/") && (n = "audio"), n;
|
|
@@ -267,7 +267,7 @@ const j = (e, n) => {
|
|
|
267
267
|
}, b3 = /* @__PURE__ */ j(u6, [["__scopeId", "data-v-6f045439"]]), mr = async (e, n) => {
|
|
268
268
|
const t = await e1({
|
|
269
269
|
//в component должен быть встроен emit change(key: value)
|
|
270
|
-
component: import("./CreateChat-
|
|
270
|
+
component: import("./CreateChat-B60kyrtg.js"),
|
|
271
271
|
attrs: {
|
|
272
272
|
title: e
|
|
273
273
|
},
|
|
@@ -279,7 +279,7 @@ const j = (e, n) => {
|
|
|
279
279
|
return console.log("data", t), t;
|
|
280
280
|
}, hr = async (e, n) => await e1({
|
|
281
281
|
//в component должен быть встроен emit change(key: value)
|
|
282
|
-
component: import("./CreateChat2-
|
|
282
|
+
component: import("./CreateChat2-COe2EXy5.js"),
|
|
283
283
|
attrs: {
|
|
284
284
|
title: e
|
|
285
285
|
},
|
|
@@ -325,7 +325,7 @@ const j = (e, n) => {
|
|
|
325
325
|
}
|
|
326
326
|
}, m4 = /* @__PURE__ */ j(C6, [["__scopeId", "data-v-01dc3148"]]), vr = async (e, n, t, a, s, f) => await e1({
|
|
327
327
|
//в component должен быть встроен emit change(key: value)
|
|
328
|
-
component: import("./CreateDialog-
|
|
328
|
+
component: import("./CreateDialog-DRllcb8x.js"),
|
|
329
329
|
attrs: {
|
|
330
330
|
title: e,
|
|
331
331
|
name: n,
|
|
@@ -340,7 +340,7 @@ const j = (e, n) => {
|
|
|
340
340
|
}), Mr = async (e, n, t) => {
|
|
341
341
|
const a = await e1({
|
|
342
342
|
//в component должен быть встроен emit change(key: value)
|
|
343
|
-
component: import("./SelectUser2-
|
|
343
|
+
component: import("./SelectUser2-DxKXYqx3.js"),
|
|
344
344
|
attrs: {
|
|
345
345
|
title: e,
|
|
346
346
|
users: n
|
|
@@ -353,7 +353,7 @@ const j = (e, n) => {
|
|
|
353
353
|
return console.log("data", a), a;
|
|
354
354
|
}, g6 = async (e) => await e1({
|
|
355
355
|
//в component должен быть встроен emit change(key: value)
|
|
356
|
-
component: import("./ModalVideoRecorder-
|
|
356
|
+
component: import("./ModalVideoRecorder-CgDAJqKd.js"),
|
|
357
357
|
attrs: {},
|
|
358
358
|
Modal: m4,
|
|
359
359
|
modalAttrs: {
|
|
@@ -370,9 +370,9 @@ function p6(e, n, t) {
|
|
|
370
370
|
}
|
|
371
371
|
function m6(e, n) {
|
|
372
372
|
const t = [], a = `chats[${n}].contact`;
|
|
373
|
-
return typeof e != "object" || e === null ? (t.push({ path: a, message: "Contact должен быть объектом", value: e }), t) : Array.isArray(e.attributes) ? (e.attributes.forEach((s, f) => {
|
|
373
|
+
return typeof e != "object" || e === null ? (t.push({ path: a, message: "Contact должен быть объектом", value: e }), t) : e.attributes !== void 0 && !Array.isArray(e.attributes) ? (t.push({ path: `${a}.attributes`, message: "Поле attributes должно быть массивом", value: e.attributes }), t) : (e.attributes && e.attributes.forEach((s, f) => {
|
|
374
374
|
t.push(...p6(s, n, f));
|
|
375
|
-
}), t)
|
|
375
|
+
}), t);
|
|
376
376
|
}
|
|
377
377
|
function h6(e, n, t) {
|
|
378
378
|
const a = [], s = `chats[${n}].dialogs[${t}]`;
|
|
@@ -382,7 +382,7 @@ function v6(e, n) {
|
|
|
382
382
|
const t = [], a = `chats[${n}]`;
|
|
383
383
|
if (typeof e != "object" || e === null)
|
|
384
384
|
return t.push({ path: a, message: "Чат должен быть объектом", value: e }), t;
|
|
385
|
-
if ((e.chatId === void 0 || typeof e.chatId != "
|
|
385
|
+
if ((e.chatId === void 0 || typeof e.chatId != "string") && t.push({ path: `${a}.chatId`, message: "Поле chatId обязательно и должно быть строкой", value: e.chatId }), (!e.name || typeof e.name != "string") && t.push({ path: `${a}.name`, message: "Поле name обязательно и должно быть строкой", value: e.name }), e.countUnread === void 0 || typeof e.countUnread != "number" ? t.push({ path: `${a}.countUnread`, message: "Поле countUnread обязательно и должно быть числом", value: e.countUnread }) : e.countUnread < 0 && t.push({ path: `${a}.countUnread`, message: "Поле countUnread не может быть отрицательным", value: e.countUnread }), (!e.lastMessage || typeof e.lastMessage != "string") && t.push({ path: `${a}.lastMessage`, message: "Поле lastMessage обязательно и должно быть строкой", value: e.lastMessage }), (!e["lastActivity.timestamp"] || typeof e["lastActivity.timestamp"] != "number") && t.push({ path: `${a}['lastActivity.timestamp']`, message: "Поле lastActivity.timestamp обязательно и должно быть числом", value: e["lastActivity.timestamp"] }), e.avatar !== void 0 && typeof e.avatar != "string" && t.push({ path: `${a}.avatar`, message: "Поле avatar должно быть строкой", value: e.avatar }), e["lastActivity.time"] !== void 0 && typeof e["lastActivity.time"] != "string" && t.push({ path: `${a}['lastActivity.time']`, message: "Поле lastActivity.time должно быть строкой", value: e["lastActivity.time"] }), e["lastMessage.status"] !== void 0) {
|
|
386
386
|
const s = ["read", "sent", "received"];
|
|
387
387
|
s.includes(e["lastMessage.status"]) || t.push({
|
|
388
388
|
path: `${a}['lastMessage.status']`,
|
|
@@ -462,34 +462,34 @@ function yr(e, n = {}) {
|
|
|
462
462
|
console.log(`
|
|
463
463
|
📊 Детали ошибок:`);
|
|
464
464
|
const g = /* @__PURE__ */ new Map();
|
|
465
|
-
i.value.forEach((
|
|
466
|
-
const k =
|
|
465
|
+
i.value.forEach((y) => {
|
|
466
|
+
const k = y.path.match(/chats\[(\d+)\]/);
|
|
467
467
|
if (k) {
|
|
468
468
|
const _ = parseInt(k[1]);
|
|
469
|
-
g.has(_) || g.set(_, []), g.get(_).push(
|
|
469
|
+
g.has(_) || g.set(_, []), g.get(_).push(y);
|
|
470
470
|
}
|
|
471
471
|
});
|
|
472
472
|
let I = 1;
|
|
473
|
-
g.forEach((
|
|
473
|
+
g.forEach((y, k) => {
|
|
474
474
|
console.group(`
|
|
475
|
-
🔴 Чат [${k}] - ошибок: ${
|
|
475
|
+
🔴 Чат [${k}] - ошибок: ${y.length}`), y.forEach((_) => {
|
|
476
476
|
console.log(`
|
|
477
477
|
${I}. ${_.path}`), console.log(` Сообщение: ${_.message}`), _.value !== void 0 && console.log(" Значение поля:", _.value), I++;
|
|
478
478
|
}), e.value && e.value[k] && (console.log(`
|
|
479
479
|
📦 Полный объект чата:`), console.log(e.value[k])), console.groupEnd();
|
|
480
480
|
});
|
|
481
|
-
const p = i.value.filter((
|
|
481
|
+
const p = i.value.filter((y) => !y.path.match(/chats\[(\d+)\]/));
|
|
482
482
|
p.length > 0 && (console.group(`
|
|
483
|
-
⚠️ Общие ошибки - ${p.length}`), p.forEach((
|
|
483
|
+
⚠️ Общие ошибки - ${p.length}`), p.forEach((y, k) => {
|
|
484
484
|
console.log(`
|
|
485
|
-
${k + 1}. ${
|
|
485
|
+
${k + 1}. ${y.path}`), console.log(` Сообщение: ${y.message}`), y.value !== void 0 && console.log(" Значение:", y.value);
|
|
486
486
|
}), console.groupEnd());
|
|
487
487
|
}
|
|
488
488
|
console.groupEnd();
|
|
489
489
|
}
|
|
490
490
|
if (t) {
|
|
491
491
|
let g = null;
|
|
492
|
-
|
|
492
|
+
t2(
|
|
493
493
|
e,
|
|
494
494
|
() => {
|
|
495
495
|
a > 0 ? (g !== null && clearTimeout(g), g = window.setTimeout(() => {
|
|
@@ -524,7 +524,7 @@ function w6(e, n) {
|
|
|
524
524
|
const t = [], a = `messages[${n}]`;
|
|
525
525
|
if (typeof e != "object" || e === null)
|
|
526
526
|
return t.push({ path: a, message: "Сообщение должно быть объектом", value: e }), t;
|
|
527
|
-
if (
|
|
527
|
+
if (e.chatId !== void 0 && typeof e.chatId != "string" && t.push({ path: `${a}.chatId`, message: "Поле chatId должно быть строкой", value: e.chatId }), e.type !== "system.date" && (e.messageId === void 0 ? t.push({ path: `${a}.messageId`, message: "Поле messageId обязательно", value: e.messageId }) : typeof e.messageId != "string" && typeof e.messageId != "number" && t.push({ path: `${a}.messageId`, message: "Поле messageId должно быть строкой или числом", value: e.messageId })), (!e.type || typeof e.type != "string") && t.push({ path: `${a}.type`, message: "Поле type обязательно и должно быть строкой", value: e.type }), e.type !== "system.date" && (e.timestamp === void 0 ? t.push({ path: `${a}.timestamp`, message: "Поле timestamp обязательно", value: e.timestamp }) : typeof e.timestamp != "string" && typeof e.timestamp != "number" && t.push({ path: `${a}.timestamp`, message: "Поле timestamp должно быть строкой или числом", value: e.timestamp })), e.dialogId !== void 0 && typeof e.dialogId != "string" && t.push({ path: `${a}.dialogId`, message: "Поле dialogId должно быть строкой", value: e.dialogId }), e.direction !== void 0) {
|
|
528
528
|
const s = ["incoming", "outgoing"];
|
|
529
529
|
s.includes(e.direction) || t.push({
|
|
530
530
|
path: `${a}.direction`,
|
|
@@ -619,34 +619,34 @@ function br(e, n = {}) {
|
|
|
619
619
|
console.log(`
|
|
620
620
|
📊 Детали ошибок:`);
|
|
621
621
|
const g = /* @__PURE__ */ new Map();
|
|
622
|
-
i.value.forEach((
|
|
623
|
-
const k =
|
|
622
|
+
i.value.forEach((y) => {
|
|
623
|
+
const k = y.path.match(/messages\[(\d+)\]/);
|
|
624
624
|
if (k) {
|
|
625
625
|
const _ = parseInt(k[1]);
|
|
626
|
-
g.has(_) || g.set(_, []), g.get(_).push(
|
|
626
|
+
g.has(_) || g.set(_, []), g.get(_).push(y);
|
|
627
627
|
}
|
|
628
628
|
});
|
|
629
629
|
let I = 1;
|
|
630
|
-
g.forEach((
|
|
630
|
+
g.forEach((y, k) => {
|
|
631
631
|
console.group(`
|
|
632
|
-
🔴 Сообщение [${k}] - ошибок: ${
|
|
632
|
+
🔴 Сообщение [${k}] - ошибок: ${y.length}`), y.forEach((_) => {
|
|
633
633
|
console.log(`
|
|
634
634
|
${I}. ${_.path}`), console.log(` Сообщение: ${_.message}`), _.value !== void 0 && console.log(" Значение поля:", _.value), I++;
|
|
635
635
|
}), e.value && e.value[k] && (console.log(`
|
|
636
636
|
📦 Полный объект сообщения:`), console.log(e.value[k])), console.groupEnd();
|
|
637
637
|
});
|
|
638
|
-
const p = i.value.filter((
|
|
638
|
+
const p = i.value.filter((y) => !y.path.match(/messages\[(\d+)\]/));
|
|
639
639
|
p.length > 0 && (console.group(`
|
|
640
|
-
⚠️ Общие ошибки - ${p.length}`), p.forEach((
|
|
640
|
+
⚠️ Общие ошибки - ${p.length}`), p.forEach((y, k) => {
|
|
641
641
|
console.log(`
|
|
642
|
-
${k + 1}. ${
|
|
642
|
+
${k + 1}. ${y.path}`), console.log(` Сообщение: ${y.message}`), y.value !== void 0 && console.log(" Значение:", y.value);
|
|
643
643
|
}), console.groupEnd());
|
|
644
644
|
}
|
|
645
645
|
console.groupEnd();
|
|
646
646
|
}
|
|
647
647
|
if (t) {
|
|
648
648
|
let g = null;
|
|
649
|
-
|
|
649
|
+
t2(
|
|
650
650
|
e,
|
|
651
651
|
() => {
|
|
652
652
|
a > 0 ? (g !== null && clearTimeout(g), g = window.setTimeout(() => {
|
|
@@ -739,34 +739,34 @@ function _r(e, n = {}) {
|
|
|
739
739
|
console.log(`
|
|
740
740
|
📊 Детали ошибок:`);
|
|
741
741
|
const g = /* @__PURE__ */ new Map();
|
|
742
|
-
i.value.forEach((
|
|
743
|
-
const k =
|
|
742
|
+
i.value.forEach((y) => {
|
|
743
|
+
const k = y.path.match(/sidebarItems\[(\d+)\]/);
|
|
744
744
|
if (k) {
|
|
745
745
|
const _ = parseInt(k[1]);
|
|
746
|
-
g.has(_) || g.set(_, []), g.get(_).push(
|
|
746
|
+
g.has(_) || g.set(_, []), g.get(_).push(y);
|
|
747
747
|
}
|
|
748
748
|
});
|
|
749
749
|
let I = 1;
|
|
750
|
-
g.forEach((
|
|
750
|
+
g.forEach((y, k) => {
|
|
751
751
|
console.group(`
|
|
752
|
-
🔴 Sidebar Item [${k}] - ошибок: ${
|
|
752
|
+
🔴 Sidebar Item [${k}] - ошибок: ${y.length}`), y.forEach((_) => {
|
|
753
753
|
console.log(`
|
|
754
754
|
${I}. ${_.path}`), console.log(` Сообщение: ${_.message}`), _.value !== void 0 && console.log(" Значение поля:", _.value), I++;
|
|
755
755
|
}), e.value && e.value[k] && (console.log(`
|
|
756
756
|
📦 Полный объект sidebar item:`), console.log(e.value[k])), console.groupEnd();
|
|
757
757
|
});
|
|
758
|
-
const p = i.value.filter((
|
|
758
|
+
const p = i.value.filter((y) => !y.path.match(/sidebarItems\[(\d+)\]/));
|
|
759
759
|
p.length > 0 && (console.group(`
|
|
760
|
-
⚠️ Общие ошибки - ${p.length}`), p.forEach((
|
|
760
|
+
⚠️ Общие ошибки - ${p.length}`), p.forEach((y, k) => {
|
|
761
761
|
console.log(`
|
|
762
|
-
${k + 1}. ${
|
|
762
|
+
${k + 1}. ${y.path}`), console.log(` Сообщение: ${y.message}`), y.value !== void 0 && console.log(" Значение:", y.value);
|
|
763
763
|
}), console.groupEnd());
|
|
764
764
|
}
|
|
765
765
|
console.groupEnd();
|
|
766
766
|
}
|
|
767
767
|
if (t) {
|
|
768
768
|
let g = null;
|
|
769
|
-
|
|
769
|
+
t2(
|
|
770
770
|
e,
|
|
771
771
|
() => {
|
|
772
772
|
a > 0 ? (g !== null && clearTimeout(g), g = window.setTimeout(() => {
|
|
@@ -814,41 +814,41 @@ const D6 = ["id"], E6 = /* @__PURE__ */ J({
|
|
|
814
814
|
},
|
|
815
815
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
|
816
816
|
setup(e, { expose: n, emit: t }) {
|
|
817
|
-
const a = l2("chatAppId"), { getTheme: s } = Y2(a), f = e, i = v3(), r = t, u = m(), d = m(), A = m(!1), C = (
|
|
818
|
-
k(), r("click",
|
|
817
|
+
const a = l2("chatAppId"), { getTheme: s } = Y2(a), f = e, i = v3(), r = t, u = m(), d = m(), A = m(!1), C = (b) => {
|
|
818
|
+
k(), r("click", b);
|
|
819
819
|
}, L = () => {
|
|
820
|
-
f.disabled || (f.mode == "click" && !A.value ?
|
|
820
|
+
f.disabled || (f.mode == "click" && !A.value ? y() : f.mode == "click" && A.value && k(), r("buttonClick"));
|
|
821
821
|
}, w = () => {
|
|
822
|
-
f.disabled || f.mode == "hover" &&
|
|
822
|
+
f.disabled || f.mode == "hover" && y();
|
|
823
823
|
}, g = () => {
|
|
824
824
|
f.disabled || f.mode == "hover" && k();
|
|
825
825
|
}, I = () => {
|
|
826
|
-
r("menuMouseEnter"), f.disabled || f.mode == "hover" &&
|
|
826
|
+
r("menuMouseEnter"), f.disabled || f.mode == "hover" && y();
|
|
827
827
|
}, p = () => {
|
|
828
828
|
r("menuMouseLeave"), f.disabled || f.mode == "hover" && k();
|
|
829
|
-
},
|
|
829
|
+
}, y = () => {
|
|
830
830
|
if (d.value && u.value) {
|
|
831
|
-
const
|
|
832
|
-
|
|
833
|
-
const
|
|
834
|
-
|
|
835
|
-
const
|
|
836
|
-
left: { top: T.top - (
|
|
837
|
-
right: { top: T.top - (
|
|
838
|
-
bottom: { top: (T == null ? void 0 : T.bottom) -
|
|
839
|
-
top: { top: T.top -
|
|
840
|
-
"top-right": { top: T.top -
|
|
831
|
+
const b = u.value, T = d.value.getBoundingClientRect();
|
|
832
|
+
b.style.display = "inherit";
|
|
833
|
+
const v = u.value.getBoundingClientRect();
|
|
834
|
+
b.style.display = "none", M2(() => {
|
|
835
|
+
const E = {
|
|
836
|
+
left: { top: T.top - (v.height - T.height) / 2 - v.top, left: T.left - v.width - v.left },
|
|
837
|
+
right: { top: T.top - (v.height - T.height) / 2 - v.top, left: T.left + T.width - v.left },
|
|
838
|
+
bottom: { top: (T == null ? void 0 : T.bottom) - v.top, left: (T == null ? void 0 : T.left) - (v.width - T.width) / 2 - v.left },
|
|
839
|
+
top: { top: T.top - v.height - v.top, left: (T == null ? void 0 : T.left) - (v.width - T.width) / 2 - v.left },
|
|
840
|
+
"top-right": { top: T.top - v.height, left: T.right - v.width / 2 }
|
|
841
841
|
};
|
|
842
|
-
|
|
842
|
+
b.style.top = E[f.menuSide].top + "px", b.style.left = E[f.menuSide].left + "px", b.style.opacity = "1", b.style.display = "inherit", A.value = !0;
|
|
843
843
|
});
|
|
844
844
|
}
|
|
845
845
|
}, k = () => {
|
|
846
846
|
if (u.value) {
|
|
847
|
-
const
|
|
848
|
-
|
|
847
|
+
const b = u.value;
|
|
848
|
+
b && (b.style.top = "0", b.style.left = "0", b.style.opacity = "0", b.style.display = "none", A.value = !1);
|
|
849
849
|
}
|
|
850
|
-
}, _ = (
|
|
851
|
-
f.mode == "click" && d.value && !d.value.contains(
|
|
850
|
+
}, _ = (b) => {
|
|
851
|
+
f.mode == "click" && d.value && !d.value.contains(b.target) && k();
|
|
852
852
|
};
|
|
853
853
|
return h2(() => {
|
|
854
854
|
M2(() => {
|
|
@@ -857,10 +857,10 @@ const D6 = ["id"], E6 = /* @__PURE__ */ J({
|
|
|
857
857
|
}), k0(() => {
|
|
858
858
|
document.removeEventListener("click", _);
|
|
859
859
|
}), n({
|
|
860
|
-
updatePosition:
|
|
860
|
+
updatePosition: y,
|
|
861
861
|
hideMenu: k
|
|
862
|
-
}), (
|
|
863
|
-
id: "container-" +
|
|
862
|
+
}), (b, T) => (l(), c("button", {
|
|
863
|
+
id: "container-" + M(i) + M(a),
|
|
864
864
|
ref_key: "actionScope",
|
|
865
865
|
ref: d,
|
|
866
866
|
style: { position: "relative", width: "fit-content", border: "none", background: "transparent", height: "fit-content" },
|
|
@@ -868,13 +868,13 @@ const D6 = ["id"], E6 = /* @__PURE__ */ J({
|
|
|
868
868
|
onMouseleave: g
|
|
869
869
|
}, [
|
|
870
870
|
o("div", { onClick: L }, [
|
|
871
|
-
r2(
|
|
871
|
+
r2(b.$slots, "default", {}, void 0, !0)
|
|
872
872
|
]),
|
|
873
873
|
(l(), z(D2, { to: "body" }, [
|
|
874
|
-
Y(
|
|
875
|
-
id: "context-menu-" +
|
|
874
|
+
Y(M(x0), {
|
|
875
|
+
id: "context-menu-" + M(i) + M(a),
|
|
876
876
|
actions: e.actions,
|
|
877
|
-
"data-theme":
|
|
877
|
+
"data-theme": M(s)().theme ? M(s)().theme : "light",
|
|
878
878
|
onMouseenter: I,
|
|
879
879
|
onMouseleave: p,
|
|
880
880
|
onClick: C
|
|
@@ -913,10 +913,10 @@ const D6 = ["id"], E6 = /* @__PURE__ */ J({
|
|
|
913
913
|
height: "18"
|
|
914
914
|
}, null, 8, Z6)) : r.prime ? (l(), c("i", {
|
|
915
915
|
key: 1,
|
|
916
|
-
class:
|
|
917
|
-
}, null, 2)) :
|
|
918
|
-
r.title ? (l(), c("span", O6, N(r.title), 1)) :
|
|
919
|
-
r.description ? (l(), c("span", z6, N(r.description), 1)) :
|
|
916
|
+
class: D("pi pi-" + r.prime)
|
|
917
|
+
}, null, 2)) : h("", !0),
|
|
918
|
+
r.title ? (l(), c("span", O6, N(r.title), 1)) : h("", !0),
|
|
919
|
+
r.description ? (l(), c("span", z6, N(r.description), 1)) : h("", !0)
|
|
920
920
|
], 8, S6))), 128))
|
|
921
921
|
])
|
|
922
922
|
]));
|
|
@@ -1016,7 +1016,7 @@ const D6 = ["id"], E6 = /* @__PURE__ */ J({
|
|
|
1016
1016
|
});
|
|
1017
1017
|
}, d = () => {
|
|
1018
1018
|
f.value = !1, M2(() => {
|
|
1019
|
-
const A =
|
|
1019
|
+
const A = M(s);
|
|
1020
1020
|
A && (A.style.top = "0", A.style.left = "0");
|
|
1021
1021
|
});
|
|
1022
1022
|
};
|
|
@@ -1037,9 +1037,9 @@ const D6 = ["id"], E6 = /* @__PURE__ */ J({
|
|
|
1037
1037
|
key: 0,
|
|
1038
1038
|
ref_key: "tooltip",
|
|
1039
1039
|
ref: s,
|
|
1040
|
-
"data-theme":
|
|
1041
|
-
class:
|
|
1042
|
-
}, N(e.text), 11, G6)) :
|
|
1040
|
+
"data-theme": M(t)().theme ? M(t)().theme : "light",
|
|
1041
|
+
class: D(r.value)
|
|
1042
|
+
}, N(e.text), 11, G6)) : h("", !0)
|
|
1043
1043
|
]),
|
|
1044
1044
|
_: 1
|
|
1045
1045
|
})
|
|
@@ -1462,7 +1462,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1462
1462
|
},
|
|
1463
1463
|
emits: ["select-attribute-channel", "phone-call"],
|
|
1464
1464
|
setup(e, { emit: n }) {
|
|
1465
|
-
const t = e, a = n, s = m(null), f = m(null), i = m(null), r = m(null), u = m(!1), d = m(!1), A = m(null), C = m("0px"), L = m(null), w = m(!1), g = m(null), I = m({}), p = m(0),
|
|
1465
|
+
const t = e, a = n, s = m(null), f = m(null), i = m(null), r = m(null), u = m(!1), d = m(!1), A = m(null), C = m("0px"), L = m(null), w = m(!1), g = m(null), I = m({}), p = m(0), y = ["phone", "whatsapp", "telegram", "max", "sms"], k = {
|
|
1466
1466
|
phone: j9,
|
|
1467
1467
|
whatsapp: z9,
|
|
1468
1468
|
telegram: R9,
|
|
@@ -1474,19 +1474,19 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1474
1474
|
telegram: l7,
|
|
1475
1475
|
max: d7,
|
|
1476
1476
|
sms: L7
|
|
1477
|
-
},
|
|
1478
|
-
() =>
|
|
1477
|
+
}, b = O(
|
|
1478
|
+
() => y.map((Z) => ({
|
|
1479
1479
|
type: Z,
|
|
1480
1480
|
component: k[Z]
|
|
1481
1481
|
}))
|
|
1482
1482
|
), T = m(
|
|
1483
|
-
Object.fromEntries(
|
|
1484
|
-
),
|
|
1483
|
+
Object.fromEntries(y.map((Z) => [Z, []]))
|
|
1484
|
+
), v = O(
|
|
1485
1485
|
() => i.value ? Q2(i.value) : null
|
|
1486
|
-
),
|
|
1486
|
+
), E = O(
|
|
1487
1487
|
() => {
|
|
1488
1488
|
var Z;
|
|
1489
|
-
return i.value !== "phone" &&
|
|
1489
|
+
return i.value !== "phone" && v.value && ((Z = t.recentAttributeChannels[i.value]) == null ? void 0 : Z.channelId);
|
|
1490
1490
|
}
|
|
1491
1491
|
), x = O(
|
|
1492
1492
|
() => i.value ? w2(i.value) : []
|
|
@@ -1498,7 +1498,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1498
1498
|
telegram: "Выберите контакт и канал для отправки сообщения",
|
|
1499
1499
|
max: "Выберите контакт и канал для отправки сообщения",
|
|
1500
1500
|
sms: "Выберите контакт и канал для отправки сообщения"
|
|
1501
|
-
},
|
|
1501
|
+
}, X = (Z) => {
|
|
1502
1502
|
var B;
|
|
1503
1503
|
return ((B = t.channelTooltips) == null ? void 0 : B[Z]) ?? R[Z] ?? "";
|
|
1504
1504
|
}, Q = (Z) => {
|
|
@@ -1519,7 +1519,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1519
1519
|
const B = i2(Z);
|
|
1520
1520
|
return B ? d2(B.channelId) : a2(Z);
|
|
1521
1521
|
}, m2 = () => {
|
|
1522
|
-
const Z = Object.fromEntries(
|
|
1522
|
+
const Z = Object.fromEntries(y.map((B) => [B, []]));
|
|
1523
1523
|
t.contactAttributes.forEach((B) => {
|
|
1524
1524
|
B.type === "telegram" ? Z.telegram.push(B) : B.type === "phone" && ["whatsapp", "max", "sms", "phone"].forEach((L2) => {
|
|
1525
1525
|
Z[L2].push(B);
|
|
@@ -1541,13 +1541,13 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1541
1541
|
}, U = () => {
|
|
1542
1542
|
var Z;
|
|
1543
1543
|
if (i.value === "phone")
|
|
1544
|
-
K(
|
|
1544
|
+
K(v.value);
|
|
1545
1545
|
else if (F(i.value)) {
|
|
1546
1546
|
const B = (Z = t.recentAttributeChannels[i.value]) == null ? void 0 : Z.channelId;
|
|
1547
|
-
|
|
1547
|
+
v.value && B && I2(B);
|
|
1548
1548
|
} else {
|
|
1549
1549
|
const B = i2(i.value);
|
|
1550
|
-
|
|
1550
|
+
v.value && B && A2(v.value, B.channelId);
|
|
1551
1551
|
}
|
|
1552
1552
|
}, G = (Z) => {
|
|
1553
1553
|
if (i.value === "phone")
|
|
@@ -1567,8 +1567,8 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1567
1567
|
channelId: B
|
|
1568
1568
|
}), g.value = i.value, I.value = t.channels.find((L2) => L2.channelId === B), console.log("TEST selectedChannel.value", I.value), y2();
|
|
1569
1569
|
}, I2 = (Z) => {
|
|
1570
|
-
|
|
1571
|
-
attributeId:
|
|
1570
|
+
v.value && a("select-attribute-channel", {
|
|
1571
|
+
attributeId: v.value.id,
|
|
1572
1572
|
channelId: Z
|
|
1573
1573
|
}), g.value = i.value, I.value = t.channels.find((B) => B.channelId === Z), console.log("TEST selectedChannel.value", I.value), y2();
|
|
1574
1574
|
}, V2 = (Z) => {
|
|
@@ -1620,7 +1620,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1620
1620
|
}, j2 = (Z) => {
|
|
1621
1621
|
s.value && !s.value.contains(Z.target) && y2();
|
|
1622
1622
|
};
|
|
1623
|
-
|
|
1623
|
+
t2(() => t.contactAttributes, m2, { deep: !0 }), t2(() => t.selectedDialog, (Z) => {
|
|
1624
1624
|
C0(Z);
|
|
1625
1625
|
}, { deep: !0 });
|
|
1626
1626
|
const C0 = (Z) => {
|
|
@@ -1629,7 +1629,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1629
1629
|
return;
|
|
1630
1630
|
}
|
|
1631
1631
|
const B = Q(Z.channelId);
|
|
1632
|
-
B &&
|
|
1632
|
+
B && y.includes(B) && (g.value = B, I.value = t.channels.find((L2) => L2.channelId === Z.channelId));
|
|
1633
1633
|
};
|
|
1634
1634
|
return h2(() => {
|
|
1635
1635
|
v2(), window.addEventListener("resize", v2), document.addEventListener("click", j2), m2(), C0(t.selectedDialog);
|
|
@@ -1647,11 +1647,11 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1647
1647
|
ref: f,
|
|
1648
1648
|
class: "channels-panel"
|
|
1649
1649
|
}, [
|
|
1650
|
-
(l(!0), c(q, null, c2(
|
|
1650
|
+
(l(!0), c(q, null, c2(b.value, (f2) => {
|
|
1651
1651
|
var S2;
|
|
1652
1652
|
return l(), c("button", {
|
|
1653
1653
|
key: f2.type,
|
|
1654
|
-
class:
|
|
1654
|
+
class: D(["channel-btn", {
|
|
1655
1655
|
active: n2(f2.type),
|
|
1656
1656
|
hover: r.value === f2.type && !n2(f2.type) || r.value === f2.type && n2(f2.type)
|
|
1657
1657
|
}]),
|
|
@@ -1660,7 +1660,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1660
1660
|
onMouseleave: B[0] || (B[0] = (j0) => r.value = null)
|
|
1661
1661
|
}, [
|
|
1662
1662
|
n2(f2.type) ? (l(), c(q, { key: 0 }, [
|
|
1663
|
-
Y(
|
|
1663
|
+
Y(M(u0), {
|
|
1664
1664
|
text: (S2 = I.value) == null ? void 0 : S2.title,
|
|
1665
1665
|
position: "bottom",
|
|
1666
1666
|
offset: 8
|
|
@@ -1673,9 +1673,9 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1673
1673
|
_: 2
|
|
1674
1674
|
}, 1032, ["text"]),
|
|
1675
1675
|
B[5] || (B[5] = o("span", { class: "active-indicator" }, null, -1))
|
|
1676
|
-
], 64)) : (l(), z(
|
|
1676
|
+
], 64)) : (l(), z(M(u0), {
|
|
1677
1677
|
key: 1,
|
|
1678
|
-
text:
|
|
1678
|
+
text: X(f2.type),
|
|
1679
1679
|
position: "bottom",
|
|
1680
1680
|
offset: 8
|
|
1681
1681
|
}, {
|
|
@@ -1695,7 +1695,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1695
1695
|
style: C2({ width: C.value })
|
|
1696
1696
|
}, [
|
|
1697
1697
|
o("div", v7, N(i.value === "phone" ? "Телефон" : "Недавний"), 1),
|
|
1698
|
-
|
|
1698
|
+
E.value && ((L2 = t.recentAttributeChannels[i.value]) != null && L2.tooltip) ? (l(), z(M(u0), {
|
|
1699
1699
|
key: 0,
|
|
1700
1700
|
text: (J2 = t.recentAttributeChannels[i.value]) == null ? void 0 : J2.tooltip,
|
|
1701
1701
|
position: "bottom",
|
|
@@ -1705,7 +1705,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1705
1705
|
var f2;
|
|
1706
1706
|
return [
|
|
1707
1707
|
o("div", {
|
|
1708
|
-
class:
|
|
1708
|
+
class: D(["recent-attribute", {
|
|
1709
1709
|
"frozen-hover": w.value
|
|
1710
1710
|
}]),
|
|
1711
1711
|
onMouseenter: B[1] || (B[1] = (S2) => V2(S2)),
|
|
@@ -1714,10 +1714,10 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1714
1714
|
onClick: B[2] || (B[2] = (S2) => U())
|
|
1715
1715
|
}, [
|
|
1716
1716
|
o("div", M7, [
|
|
1717
|
-
o("span", y7, N((f2 =
|
|
1717
|
+
o("span", y7, N((f2 = v.value) == null ? void 0 : f2.value), 1)
|
|
1718
1718
|
]),
|
|
1719
1719
|
o("span", {
|
|
1720
|
-
class:
|
|
1720
|
+
class: D(["channel-icon-small", { "menu-icon-grey": i.value !== "sms" }])
|
|
1721
1721
|
}, [
|
|
1722
1722
|
(l(), z(e0(a2(i.value))))
|
|
1723
1723
|
], 2)
|
|
@@ -1725,9 +1725,9 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1725
1725
|
];
|
|
1726
1726
|
}),
|
|
1727
1727
|
_: 1
|
|
1728
|
-
}, 8, ["text"])) :
|
|
1728
|
+
}, 8, ["text"])) : E.value ? (l(), c("div", {
|
|
1729
1729
|
key: 1,
|
|
1730
|
-
class:
|
|
1730
|
+
class: D(["recent-attribute", {
|
|
1731
1731
|
"frozen-hover": w.value
|
|
1732
1732
|
}]),
|
|
1733
1733
|
onMouseenter: B[3] || (B[3] = (f2) => V2(f2)),
|
|
@@ -1736,18 +1736,18 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1736
1736
|
onClick: B[4] || (B[4] = (f2) => U())
|
|
1737
1737
|
}, [
|
|
1738
1738
|
o("div", b7, [
|
|
1739
|
-
o("span", _7, N((g0 =
|
|
1739
|
+
o("span", _7, N((g0 = v.value) == null ? void 0 : g0.value), 1)
|
|
1740
1740
|
]),
|
|
1741
1741
|
o("span", {
|
|
1742
|
-
class:
|
|
1742
|
+
class: D(["channel-icon-small", { "menu-icon-grey": i.value !== "sms" }])
|
|
1743
1743
|
}, [
|
|
1744
1744
|
(l(), z(e0(a2(i.value))))
|
|
1745
1745
|
], 2)
|
|
1746
|
-
], 34)) :
|
|
1747
|
-
|
|
1746
|
+
], 34)) : h("", !0),
|
|
1747
|
+
E.value && ((L0 = T.value[i.value]) != null && L0.length) && i.value !== "phone" ? (l(), c("div", w7)) : h("", !0),
|
|
1748
1748
|
(l(!0), c(q, null, c2(T.value[i.value], (f2) => (l(), c("div", {
|
|
1749
1749
|
key: f2.attributeId,
|
|
1750
|
-
class:
|
|
1750
|
+
class: D(["attribute-item", {
|
|
1751
1751
|
"frozen-hover": E2(f2)
|
|
1752
1752
|
}]),
|
|
1753
1753
|
onMouseenter: (S2) => $(f2, S2),
|
|
@@ -1760,7 +1760,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1760
1760
|
o("span", N7, [
|
|
1761
1761
|
F(i.value) ? (l(), c("span", x7)) : (l(), c("span", {
|
|
1762
1762
|
key: 1,
|
|
1763
|
-
class:
|
|
1763
|
+
class: D(["channel-icon-small", { "menu-icon-grey": i.value !== "sms" }])
|
|
1764
1764
|
}, [
|
|
1765
1765
|
(l(), z(e0(W2(i.value))))
|
|
1766
1766
|
], 2))
|
|
@@ -1781,13 +1781,13 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1781
1781
|
}, [
|
|
1782
1782
|
o("span", E7, N(f2.title || f2.channelId), 1),
|
|
1783
1783
|
o("span", {
|
|
1784
|
-
class:
|
|
1784
|
+
class: D(["sub-menu-icon", { "menu-icon-grey": Q(f2.channelId) !== "sms" }])
|
|
1785
1785
|
}, [
|
|
1786
1786
|
(l(), z(e0(d2(f2.channelId))))
|
|
1787
1787
|
], 2)
|
|
1788
1788
|
], 8, D7))), 128))
|
|
1789
|
-
], 36)) :
|
|
1790
|
-
], 4)) :
|
|
1789
|
+
], 36)) : h("", !0)
|
|
1790
|
+
], 4)) : h("", !0)
|
|
1791
1791
|
], 512);
|
|
1792
1792
|
};
|
|
1793
1793
|
}
|
|
@@ -1814,7 +1814,7 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1814
1814
|
"message.call": "pi pi-phone"
|
|
1815
1815
|
})[n.object.type] || null);
|
|
1816
1816
|
return (a, s) => (l(), c("div", {
|
|
1817
|
-
class:
|
|
1817
|
+
class: D(["feed-found-item__container", { "feed-found-item__selected-container": e.selected }])
|
|
1818
1818
|
}, [
|
|
1819
1819
|
o("div", j7, [
|
|
1820
1820
|
e.object.avatar ? (l(), c("img", {
|
|
@@ -1836,12 +1836,12 @@ const L7 = /* @__PURE__ */ j(A7, [["render", g7]]), p7 = ["onClick", "onMouseent
|
|
|
1836
1836
|
style: { "margin-right": "3px" },
|
|
1837
1837
|
width: "24",
|
|
1838
1838
|
height: "24"
|
|
1839
|
-
}, null, 8, R7)) :
|
|
1839
|
+
}, null, 8, R7)) : h("", !0),
|
|
1840
1840
|
t.value ? (l(), c("span", {
|
|
1841
1841
|
key: 1,
|
|
1842
|
-
class:
|
|
1842
|
+
class: D(t.value),
|
|
1843
1843
|
style: { "margin-right": "3px", "font-size": "20px" }
|
|
1844
|
-
}, null, 2)) :
|
|
1844
|
+
}, null, 2)) : h("", !0),
|
|
1845
1845
|
o("p", null, N(e.object.text), 1)
|
|
1846
1846
|
])
|
|
1847
1847
|
])
|
|
@@ -1923,11 +1923,11 @@ const W7 = { style: { "padding-left": "12px" } }, K7 = ["onClick"], J7 = {
|
|
|
1923
1923
|
const t = n, a = e, s = m(), f = m(null), i = O(() => a.notFound ? z2("component.FeedFoundObjects.notFound") : a.notFound ? "" : z2("component.FeedFoundObjects.notSearched")), r = (d) => {
|
|
1924
1924
|
d.messageId && (t("clickedSearch", d.messageId), f.value = d);
|
|
1925
1925
|
}, u = () => {
|
|
1926
|
-
const d =
|
|
1926
|
+
const d = M(s);
|
|
1927
1927
|
d.scrollHeight - d.scrollTop - d.clientHeight <= 0 && t("loadMore");
|
|
1928
1928
|
};
|
|
1929
1929
|
return (d, A) => (l(), c(q, null, [
|
|
1930
|
-
o("h3", W7, N(
|
|
1930
|
+
o("h3", W7, N(M(z2)("component.FeedFoundObjects.results")) + ": " + N(e.foundAmount), 1),
|
|
1931
1931
|
e.foundAmount > 0 ? (l(), c("div", {
|
|
1932
1932
|
key: 0,
|
|
1933
1933
|
ref_key: "refItems",
|
|
@@ -1939,14 +1939,14 @@ const W7 = { style: { "padding-left": "12px" } }, K7 = ["onClick"], J7 = {
|
|
|
1939
1939
|
key: C.messageId,
|
|
1940
1940
|
onClick: (L) => r(C)
|
|
1941
1941
|
}, [
|
|
1942
|
-
Y(
|
|
1942
|
+
Y(M(F7), {
|
|
1943
1943
|
object: C,
|
|
1944
1944
|
selected: C == f.value
|
|
1945
1945
|
}, null, 8, ["object", "selected"])
|
|
1946
1946
|
], 8, K7))), 128))
|
|
1947
1947
|
], 544)) : e.foundAmount == 0 ? (l(), c("div", J7, [
|
|
1948
1948
|
o("p", null, N(i.value), 1)
|
|
1949
|
-
])) :
|
|
1949
|
+
])) : h("", !0)
|
|
1950
1950
|
], 64));
|
|
1951
1951
|
}
|
|
1952
1952
|
}), kr = /* @__PURE__ */ j(G7, [["__scopeId", "data-v-fe43179d"]]), X7 = { class: "feed-search__container" }, e8 = { style: { "line-height": "40px" } }, t8 = ["placeholder"], n8 = /* @__PURE__ */ J({
|
|
@@ -1960,32 +1960,32 @@ const W7 = { style: { "padding-left": "12px" } }, K7 = ["onClick"], J7 = {
|
|
|
1960
1960
|
emits: ["search", "cancel", "switch"],
|
|
1961
1961
|
setup(e, { emit: n }) {
|
|
1962
1962
|
const t = l2("chatAppId"), { getModel: a } = f6(t), s = n, f = e, i = m(), r = a6("", 500), u = O(() => f.isFeedLocation ? "40px" : (f.isFeedLocation, "20px"));
|
|
1963
|
-
|
|
1963
|
+
t2(
|
|
1964
1964
|
() => [a().text, r.value],
|
|
1965
1965
|
() => {
|
|
1966
1966
|
r.value == a().text ? s("search", a().text) : r.value = a().text;
|
|
1967
1967
|
}
|
|
1968
1968
|
);
|
|
1969
1969
|
const d = () => {
|
|
1970
|
-
const A =
|
|
1970
|
+
const A = M(i);
|
|
1971
1971
|
A && (A.value = ""), a().text = "", s("cancel");
|
|
1972
1972
|
};
|
|
1973
1973
|
return h2(() => {
|
|
1974
|
-
const A =
|
|
1974
|
+
const A = M(i);
|
|
1975
1975
|
A == null || A.focus();
|
|
1976
1976
|
}), (A, C) => (l(), z(u2, null, {
|
|
1977
1977
|
default: W(() => [
|
|
1978
1978
|
o("div", X7, [
|
|
1979
|
-
o("span", e8, N(
|
|
1979
|
+
o("span", e8, N(M(z2)("component.FeedSearch.SearchLabel")), 1),
|
|
1980
1980
|
p2(o("input", {
|
|
1981
1981
|
ref_key: "refInput",
|
|
1982
1982
|
ref: i,
|
|
1983
|
-
"onUpdate:modelValue": C[0] || (C[0] = (L) =>
|
|
1983
|
+
"onUpdate:modelValue": C[0] || (C[0] = (L) => M(a)().text = L),
|
|
1984
1984
|
class: "feed-search__input",
|
|
1985
1985
|
type: "text",
|
|
1986
|
-
placeholder:
|
|
1986
|
+
placeholder: M(z2)("component.FeedSearch.SearchPlaceholder")
|
|
1987
1987
|
}, null, 8, t8), [
|
|
1988
|
-
[N0,
|
|
1988
|
+
[N0, M(a)().text]
|
|
1989
1989
|
]),
|
|
1990
1990
|
o("i", {
|
|
1991
1991
|
class: "pi pi-times",
|
|
@@ -1997,7 +1997,7 @@ const W7 = { style: { "padding-left": "12px" } }, K7 = ["onClick"], J7 = {
|
|
|
1997
1997
|
class: "pi pi-refresh",
|
|
1998
1998
|
style: { "margin-left": "5px", "margin-top": "10px", cursor: "pointer" },
|
|
1999
1999
|
onClick: C[1] || (C[1] = (L) => s("switch"))
|
|
2000
|
-
})) :
|
|
2000
|
+
})) : h("", !0)
|
|
2001
2001
|
])
|
|
2002
2002
|
]),
|
|
2003
2003
|
_: 1
|
|
@@ -2031,7 +2031,7 @@ const W7 = { style: { "padding-left": "12px" } }, K7 = ["onClick"], J7 = {
|
|
|
2031
2031
|
};
|
|
2032
2032
|
a("send", d);
|
|
2033
2033
|
};
|
|
2034
|
-
return
|
|
2034
|
+
return t2(
|
|
2035
2035
|
() => f().text,
|
|
2036
2036
|
() => {
|
|
2037
2037
|
var u, d;
|
|
@@ -2039,23 +2039,23 @@ const W7 = { style: { "padding-left": "12px" } }, K7 = ["onClick"], J7 = {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
), (u, d) => (l(), z(u2, null, {
|
|
2041
2041
|
default: W(() => [
|
|
2042
|
-
e.commands ? (l(), z(
|
|
2042
|
+
e.commands ? (l(), z(M(P1), {
|
|
2043
2043
|
key: 0,
|
|
2044
2044
|
ref_key: "refBCM",
|
|
2045
2045
|
ref: i,
|
|
2046
2046
|
"menu-side": "top",
|
|
2047
2047
|
mode: e.mode,
|
|
2048
|
-
disabled:
|
|
2048
|
+
disabled: M(f)().isRecording || e.state == "disabled",
|
|
2049
2049
|
actions: e.commands,
|
|
2050
2050
|
onClick: r
|
|
2051
2051
|
}, {
|
|
2052
2052
|
default: W(() => [
|
|
2053
2053
|
o("span", {
|
|
2054
|
-
class:
|
|
2054
|
+
class: D(["commands__trigger", { commands__disabled: M(f)().isRecording || e.state == "disabled" }])
|
|
2055
2055
|
}, " / ", 2)
|
|
2056
2056
|
]),
|
|
2057
2057
|
_: 1
|
|
2058
|
-
}, 8, ["mode", "disabled", "actions"])) :
|
|
2058
|
+
}, 8, ["mode", "disabled", "actions"])) : h("", !0)
|
|
2059
2059
|
]),
|
|
2060
2060
|
_: 1
|
|
2061
2061
|
}));
|
|
@@ -14494,8 +14494,8 @@ var e5 = function(n, t) {
|
|
|
14494
14494
|
function t5(e) {
|
|
14495
14495
|
var n, t = e.state, a = e.name, s = e.options, f = t.elements.arrow, i = t.modifiersData.popperOffsets, r = t0(t.placement), u = x3(r), d = [T2, B2].indexOf(r) >= 0, A = d ? "height" : "width";
|
|
14496
14496
|
if (!(!f || !i)) {
|
|
14497
|
-
var C = e5(s.padding, t), L = N3(f), w = u === "y" ? k2 : T2, g = u === "y" ? U2 : B2, I = t.rects.reference[A] + t.rects.reference[u] - i[u] - t.rects.popper[A], p = i[u] - t.rects.reference[u],
|
|
14498
|
-
t.modifiersData[a] = (n = {}, n[x] =
|
|
14497
|
+
var C = e5(s.padding, t), L = N3(f), w = u === "y" ? k2 : T2, g = u === "y" ? U2 : B2, I = t.rects.reference[A] + t.rects.reference[u] - i[u] - t.rects.popper[A], p = i[u] - t.rects.reference[u], y = s1(f), k = y ? u === "y" ? y.clientHeight || 0 : y.clientWidth || 0 : 0, _ = I / 2 - p / 2, b = C[w], T = k - L[A] - C[g], v = k / 2 - L[A] / 2 + _, E = U0(b, v, T), x = u;
|
|
14498
|
+
t.modifiersData[a] = (n = {}, n[x] = E, n.centerOffset = E - v, n);
|
|
14499
14499
|
}
|
|
14500
14500
|
}
|
|
14501
14501
|
function n5(e) {
|
|
@@ -14528,28 +14528,28 @@ function f5(e) {
|
|
|
14528
14528
|
};
|
|
14529
14529
|
}
|
|
14530
14530
|
function X3(e) {
|
|
14531
|
-
var n, t = e.popper, a = e.popperRect, s = e.placement, f = e.variation, i = e.offsets, r = e.position, u = e.gpuAcceleration, d = e.adaptive, A = e.roundOffsets, C = e.isFixed, L = A === !0 ? f5(i) : typeof A == "function" ? A(i) : i, w = L.x, g = w === void 0 ? 0 : w, I = L.y, p = I === void 0 ? 0 : I,
|
|
14531
|
+
var n, t = e.popper, a = e.popperRect, s = e.placement, f = e.variation, i = e.offsets, r = e.position, u = e.gpuAcceleration, d = e.adaptive, A = e.roundOffsets, C = e.isFixed, L = A === !0 ? f5(i) : typeof A == "function" ? A(i) : i, w = L.x, g = w === void 0 ? 0 : w, I = L.y, p = I === void 0 ? 0 : I, y = i.hasOwnProperty("x"), k = i.hasOwnProperty("y"), _ = T2, b = k2, T = window;
|
|
14532
14532
|
if (d) {
|
|
14533
|
-
var
|
|
14534
|
-
if (
|
|
14535
|
-
|
|
14536
|
-
var S = C && T.visualViewport ? T.visualViewport.height :
|
|
14533
|
+
var v = s1(t), E = "clientHeight", x = "clientWidth";
|
|
14534
|
+
if (v === P2(t) && (v = A0(t), a0(v).position !== "static" && r === "absolute" && (E = "scrollHeight", x = "scrollWidth")), v = v, s === k2 || (s === T2 || s === B2) && f === K0) {
|
|
14535
|
+
b = U2;
|
|
14536
|
+
var S = C && T.visualViewport ? T.visualViewport.height : v[E];
|
|
14537
14537
|
p -= S - a.height, p *= u ? 1 : -1;
|
|
14538
14538
|
}
|
|
14539
14539
|
if (s === T2 || (s === k2 || s === U2) && f === K0) {
|
|
14540
14540
|
_ = B2;
|
|
14541
|
-
var R = C && T.visualViewport ? T.visualViewport.width :
|
|
14541
|
+
var R = C && T.visualViewport ? T.visualViewport.width : v[x];
|
|
14542
14542
|
g -= R - a.width, g *= u ? 1 : -1;
|
|
14543
14543
|
}
|
|
14544
14544
|
}
|
|
14545
|
-
var
|
|
14545
|
+
var X = Object.assign({
|
|
14546
14546
|
position: r
|
|
14547
14547
|
}, d && s5);
|
|
14548
14548
|
if (u) {
|
|
14549
14549
|
var Q;
|
|
14550
|
-
return Object.assign({},
|
|
14550
|
+
return Object.assign({}, X, (Q = {}, Q[b] = k ? "0" : "", Q[_] = y ? "0" : "", Q.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + p + "px)" : "translate3d(" + g + "px, " + p + "px, 0)", Q));
|
|
14551
14551
|
}
|
|
14552
|
-
return Object.assign({},
|
|
14552
|
+
return Object.assign({}, X, (n = {}, n[b] = k ? p + "px" : "", n[_] = y ? g + "px" : "", n.transform = "", n));
|
|
14553
14553
|
}
|
|
14554
14554
|
function i5(e) {
|
|
14555
14555
|
var n = e.state, t = e.options, a = t.gpuAcceleration, s = a === void 0 ? !0 : a, f = t.adaptive, i = f === void 0 ? !0 : f, r = t.roundOffsets, u = r === void 0 ? !0 : r, d = {
|
|
@@ -14739,21 +14739,21 @@ function S4(e) {
|
|
|
14739
14739
|
}
|
|
14740
14740
|
function J0(e, n) {
|
|
14741
14741
|
n === void 0 && (n = {});
|
|
14742
|
-
var t = n, a = t.placement, s = a === void 0 ? e.placement : a, f = t.boundary, i = f === void 0 ? Z8 : f, r = t.rootBoundary, u = r === void 0 ? k4 : r, d = t.elementContext, A = d === void 0 ? O0 : d, C = t.altBoundary, L = C === void 0 ? !1 : C, w = t.padding, g = w === void 0 ? 0 : w, I = E4(typeof g != "number" ? g : V4(g, a1)), p = A === O0 ? O8 : O0,
|
|
14743
|
-
reference:
|
|
14744
|
-
element:
|
|
14742
|
+
var t = n, a = t.placement, s = a === void 0 ? e.placement : a, f = t.boundary, i = f === void 0 ? Z8 : f, r = t.rootBoundary, u = r === void 0 ? k4 : r, d = t.elementContext, A = d === void 0 ? O0 : d, C = t.altBoundary, L = C === void 0 ? !1 : C, w = t.padding, g = w === void 0 ? 0 : w, I = E4(typeof g != "number" ? g : V4(g, a1)), p = A === O0 ? O8 : O0, y = e.rects.popper, k = e.elements[L ? p : A], _ = L5(b0(k) ? k : k.contextElement || A0(e.elements.popper), i, u), b = w0(e.elements.reference), T = S4({
|
|
14743
|
+
reference: b,
|
|
14744
|
+
element: y,
|
|
14745
14745
|
placement: s
|
|
14746
|
-
}),
|
|
14747
|
-
top: _.top -
|
|
14748
|
-
bottom:
|
|
14749
|
-
left: _.left -
|
|
14750
|
-
right:
|
|
14746
|
+
}), v = u3(Object.assign({}, y, T)), E = A === O0 ? v : b, x = {
|
|
14747
|
+
top: _.top - E.top + I.top,
|
|
14748
|
+
bottom: E.bottom - _.bottom + I.bottom,
|
|
14749
|
+
left: _.left - E.left + I.left,
|
|
14750
|
+
right: E.right - _.right + I.right
|
|
14751
14751
|
}, S = e.modifiersData.offset;
|
|
14752
14752
|
if (A === O0 && S) {
|
|
14753
14753
|
var R = S[s];
|
|
14754
|
-
Object.keys(x).forEach(function(
|
|
14755
|
-
var Q = [B2, U2].indexOf(
|
|
14756
|
-
x[
|
|
14754
|
+
Object.keys(x).forEach(function(X) {
|
|
14755
|
+
var Q = [B2, U2].indexOf(X) >= 0 ? 1 : -1, F = [k2, U2].indexOf(X) >= 0 ? "y" : "x";
|
|
14756
|
+
x[X] += R[F] * Q;
|
|
14757
14757
|
});
|
|
14758
14758
|
}
|
|
14759
14759
|
return x;
|
|
@@ -14787,7 +14787,7 @@ function m5(e) {
|
|
|
14787
14787
|
function h5(e) {
|
|
14788
14788
|
var n = e.state, t = e.options, a = e.name;
|
|
14789
14789
|
if (!n.modifiersData[a]._skip) {
|
|
14790
|
-
for (var s = t.mainAxis, f = s === void 0 ? !0 : s, i = t.altAxis, r = i === void 0 ? !0 : i, u = t.fallbackPlacements, d = t.padding, A = t.boundary, C = t.rootBoundary, L = t.altBoundary, w = t.flipVariations, g = w === void 0 ? !0 : w, I = t.allowedAutoPlacements, p = n.options.placement,
|
|
14790
|
+
for (var s = t.mainAxis, f = s === void 0 ? !0 : s, i = t.altAxis, r = i === void 0 ? !0 : i, u = t.fallbackPlacements, d = t.padding, A = t.boundary, C = t.rootBoundary, L = t.altBoundary, w = t.flipVariations, g = w === void 0 ? !0 : w, I = t.allowedAutoPlacements, p = n.options.placement, y = t0(p), k = y === p, _ = u || (k || !g ? [A1(p)] : m5(p)), b = [p].concat(_).reduce(function(y2, U) {
|
|
14791
14791
|
return y2.concat(t0(U) === T3 ? p5(n, {
|
|
14792
14792
|
placement: U,
|
|
14793
14793
|
boundary: A,
|
|
@@ -14796,28 +14796,28 @@ function h5(e) {
|
|
|
14796
14796
|
flipVariations: g,
|
|
14797
14797
|
allowedAutoPlacements: I
|
|
14798
14798
|
}) : U);
|
|
14799
|
-
}, []), T = n.rects.reference,
|
|
14800
|
-
var
|
|
14801
|
-
placement:
|
|
14799
|
+
}, []), T = n.rects.reference, v = n.rects.popper, E = /* @__PURE__ */ new Map(), x = !0, S = b[0], R = 0; R < b.length; R++) {
|
|
14800
|
+
var X = b[R], Q = t0(X), F = I0(X) === y0, n2 = [k2, U2].indexOf(Q) >= 0, i2 = n2 ? "width" : "height", a2 = J0(n, {
|
|
14801
|
+
placement: X,
|
|
14802
14802
|
boundary: A,
|
|
14803
14803
|
rootBoundary: C,
|
|
14804
14804
|
altBoundary: L,
|
|
14805
14805
|
padding: d
|
|
14806
14806
|
}), d2 = n2 ? F ? B2 : T2 : F ? U2 : k2;
|
|
14807
|
-
T[i2] >
|
|
14807
|
+
T[i2] > v[i2] && (d2 = A1(d2));
|
|
14808
14808
|
var W2 = A1(d2), m2 = [];
|
|
14809
14809
|
if (f && m2.push(a2[Q] <= 0), r && m2.push(a2[d2] <= 0, a2[W2] <= 0), m2.every(function(y2) {
|
|
14810
14810
|
return y2;
|
|
14811
14811
|
})) {
|
|
14812
|
-
S =
|
|
14812
|
+
S = X, x = !1;
|
|
14813
14813
|
break;
|
|
14814
14814
|
}
|
|
14815
|
-
|
|
14815
|
+
E.set(X, m2);
|
|
14816
14816
|
}
|
|
14817
14817
|
if (x)
|
|
14818
14818
|
for (var w2 = g ? 3 : 1, Q2 = function(U) {
|
|
14819
|
-
var G =
|
|
14820
|
-
var A2 =
|
|
14819
|
+
var G = b.find(function(K) {
|
|
14820
|
+
var A2 = E.get(K);
|
|
14821
14821
|
if (A2)
|
|
14822
14822
|
return A2.slice(0, U).every(function(I2) {
|
|
14823
14823
|
return I2;
|
|
@@ -14931,7 +14931,7 @@ function N5(e) {
|
|
|
14931
14931
|
rootBoundary: d,
|
|
14932
14932
|
padding: C,
|
|
14933
14933
|
altBoundary: A
|
|
14934
|
-
}),
|
|
14934
|
+
}), y = t0(n.placement), k = I0(n.placement), _ = !k, b = x3(y), T = T5(b), v = n.modifiersData.popperOffsets, E = n.rects.reference, x = n.rects.popper, S = typeof I == "function" ? I(Object.assign({}, n.rects, {
|
|
14935
14935
|
placement: n.placement
|
|
14936
14936
|
})) : I, R = typeof S == "number" ? {
|
|
14937
14937
|
mainAxis: S,
|
|
@@ -14939,21 +14939,21 @@ function N5(e) {
|
|
|
14939
14939
|
} : Object.assign({
|
|
14940
14940
|
mainAxis: 0,
|
|
14941
14941
|
altAxis: 0
|
|
14942
|
-
}, S),
|
|
14942
|
+
}, S), X = n.modifiersData.offset ? n.modifiersData.offset[n.placement] : null, Q = {
|
|
14943
14943
|
x: 0,
|
|
14944
14944
|
y: 0
|
|
14945
14945
|
};
|
|
14946
|
-
if (
|
|
14946
|
+
if (v) {
|
|
14947
14947
|
if (f) {
|
|
14948
|
-
var F, n2 =
|
|
14948
|
+
var F, n2 = b === "y" ? k2 : T2, i2 = b === "y" ? U2 : B2, a2 = b === "y" ? "height" : "width", d2 = v[b], W2 = d2 + p[n2], m2 = d2 - p[i2], w2 = w ? -x[a2] / 2 : 0, Q2 = k === y0 ? E[a2] : x[a2], E2 = k === y0 ? -x[a2] : -E[a2], F2 = n.elements.arrow, y2 = w && F2 ? N3(F2) : {
|
|
14949
14949
|
width: 0,
|
|
14950
14950
|
height: 0
|
|
14951
|
-
}, U = n.modifiersData["arrow#persistent"] ? n.modifiersData["arrow#persistent"].padding : D4(), G = U[n2], K = U[i2], A2 = U0(0,
|
|
14952
|
-
|
|
14951
|
+
}, U = n.modifiersData["arrow#persistent"] ? n.modifiersData["arrow#persistent"].padding : D4(), G = U[n2], K = U[i2], A2 = U0(0, E[a2], y2[a2]), I2 = _ ? E[a2] / 2 - w2 - A2 - G - R.mainAxis : Q2 - A2 - G - R.mainAxis, V2 = _ ? -E[a2] / 2 + w2 + A2 + K + R.mainAxis : E2 + A2 + K + R.mainAxis, o0 = n.elements.arrow && s1(n.elements.arrow), $ = o0 ? b === "y" ? o0.clientTop || 0 : o0.clientLeft || 0 : 0, H = (F = X == null ? void 0 : X[b]) != null ? F : 0, P = d2 + I2 - H - $, s2 = d2 + V2 - H, o2 = U0(w ? p1(W2, P) : W2, d2, w ? m0(m2, s2) : m2);
|
|
14952
|
+
v[b] = o2, Q[b] = o2 - d2;
|
|
14953
14953
|
}
|
|
14954
14954
|
if (r) {
|
|
14955
|
-
var b2, v2 =
|
|
14956
|
-
|
|
14955
|
+
var b2, v2 = b === "x" ? k2 : T2, K2 = b === "x" ? U2 : B2, j2 = v[T], C0 = T === "y" ? "height" : "width", Z = j2 + p[v2], B = j2 - p[K2], L2 = [k2, T2].indexOf(y) !== -1, J2 = (b2 = X == null ? void 0 : X[T]) != null ? b2 : 0, g0 = L2 ? Z : j2 - E[C0] - x[C0] - J2 + R.altAxis, L0 = L2 ? j2 + E[C0] + x[C0] - J2 - R.altAxis : B, f2 = w && L2 ? X8(g0, j2, L0) : U0(w ? g0 : Z, j2, w ? L0 : B);
|
|
14956
|
+
v[T] = f2, Q[T] = f2 - j2;
|
|
14957
14957
|
}
|
|
14958
14958
|
n.modifiersData[a] = Q;
|
|
14959
14959
|
}
|
|
@@ -15073,20 +15073,20 @@ function $5(e) {
|
|
|
15073
15073
|
styles: {}
|
|
15074
15074
|
}, C = [], L = !1, w = {
|
|
15075
15075
|
state: A,
|
|
15076
|
-
setOptions: function(
|
|
15077
|
-
var k = typeof
|
|
15076
|
+
setOptions: function(y) {
|
|
15077
|
+
var k = typeof y == "function" ? y(A.options) : y;
|
|
15078
15078
|
I(), A.options = Object.assign({}, f, A.options, k), A.scrollParents = {
|
|
15079
15079
|
reference: b0(r) ? B0(r) : r.contextElement ? B0(r.contextElement) : [],
|
|
15080
15080
|
popper: B0(u)
|
|
15081
15081
|
};
|
|
15082
15082
|
var _ = Z5(z5([].concat(a, A.options.modifiers)));
|
|
15083
|
-
return A.orderedModifiers = _.filter(function(
|
|
15084
|
-
return
|
|
15083
|
+
return A.orderedModifiers = _.filter(function(b) {
|
|
15084
|
+
return b.enabled;
|
|
15085
15085
|
}), g(), w.update();
|
|
15086
15086
|
},
|
|
15087
15087
|
forceUpdate: function() {
|
|
15088
15088
|
if (!L) {
|
|
15089
|
-
var
|
|
15089
|
+
var y = A.elements, k = y.reference, _ = y.popper;
|
|
15090
15090
|
if (f4(k, _)) {
|
|
15091
15091
|
A.rects = {
|
|
15092
15092
|
reference: j5(k, s1(_), A.options.strategy === "fixed"),
|
|
@@ -15094,13 +15094,13 @@ function $5(e) {
|
|
|
15094
15094
|
}, A.reset = !1, A.placement = A.options.placement, A.orderedModifiers.forEach(function(R) {
|
|
15095
15095
|
return A.modifiersData[R.name] = Object.assign({}, R.data);
|
|
15096
15096
|
});
|
|
15097
|
-
for (var
|
|
15097
|
+
for (var b = 0; b < A.orderedModifiers.length; b++) {
|
|
15098
15098
|
if (A.reset === !0) {
|
|
15099
|
-
A.reset = !1,
|
|
15099
|
+
A.reset = !1, b = -1;
|
|
15100
15100
|
continue;
|
|
15101
15101
|
}
|
|
15102
|
-
var T = A.orderedModifiers[
|
|
15103
|
-
typeof
|
|
15102
|
+
var T = A.orderedModifiers[b], v = T.fn, E = T.options, x = E === void 0 ? {} : E, S = T.name;
|
|
15103
|
+
typeof v == "function" && (A = v({
|
|
15104
15104
|
state: A,
|
|
15105
15105
|
options: x,
|
|
15106
15106
|
name: S,
|
|
@@ -15126,16 +15126,16 @@ function $5(e) {
|
|
|
15126
15126
|
});
|
|
15127
15127
|
function g() {
|
|
15128
15128
|
A.orderedModifiers.forEach(function(p) {
|
|
15129
|
-
var
|
|
15130
|
-
if (typeof
|
|
15131
|
-
var T =
|
|
15129
|
+
var y = p.name, k = p.options, _ = k === void 0 ? {} : k, b = p.effect;
|
|
15130
|
+
if (typeof b == "function") {
|
|
15131
|
+
var T = b({
|
|
15132
15132
|
state: A,
|
|
15133
|
-
name:
|
|
15133
|
+
name: y,
|
|
15134
15134
|
instance: w,
|
|
15135
15135
|
options: _
|
|
15136
|
-
}),
|
|
15136
|
+
}), v = function() {
|
|
15137
15137
|
};
|
|
15138
|
-
C.push(T ||
|
|
15138
|
+
C.push(T || v);
|
|
15139
15139
|
}
|
|
15140
15140
|
});
|
|
15141
15141
|
}
|
|
@@ -15221,10 +15221,10 @@ const Q5 = J({
|
|
|
15221
15221
|
}
|
|
15222
15222
|
function w(g, I) {
|
|
15223
15223
|
var p;
|
|
15224
|
-
const
|
|
15225
|
-
|
|
15224
|
+
const y = (p = g == null ? void 0 : g.target) == null ? void 0 : p.closest("button");
|
|
15225
|
+
y && (y.innerHTML = `<span>${C1(I)}</span>`);
|
|
15226
15226
|
}
|
|
15227
|
-
return
|
|
15227
|
+
return t2(
|
|
15228
15228
|
() => e.activeGroup,
|
|
15229
15229
|
() => {
|
|
15230
15230
|
var g;
|
|
@@ -15258,7 +15258,7 @@ function J5(e, n, t, a, s, f) {
|
|
|
15258
15258
|
return l(), c("div", F5, [
|
|
15259
15259
|
o("div", {
|
|
15260
15260
|
ref: "bodyInner",
|
|
15261
|
-
class:
|
|
15261
|
+
class: D([e.platform, "v3-body-inner"])
|
|
15262
15262
|
}, [
|
|
15263
15263
|
e.orderedKeys.length ? (l(!0), c(q, { key: 0 }, c2(e.orderedKeys, (i) => (l(), c("div", {
|
|
15264
15264
|
id: i,
|
|
@@ -15267,10 +15267,10 @@ function J5(e, n, t, a, s, f) {
|
|
|
15267
15267
|
}, [
|
|
15268
15268
|
e.hasGroupNames ? p2((l(), c("h5", {
|
|
15269
15269
|
key: 0,
|
|
15270
|
-
class:
|
|
15270
|
+
class: D(e.isSticky ? "v3-sticky" : "")
|
|
15271
15271
|
}, N(e.groupNames[i]), 3)), [
|
|
15272
15272
|
[H2, e.emojis[i]]
|
|
15273
|
-
]) :
|
|
15273
|
+
]) : h("", !0),
|
|
15274
15274
|
p2(o("div", Y5, [
|
|
15275
15275
|
(l(!0), c(q, null, c2(e.emojis[i], (r) => (l(), c("button", {
|
|
15276
15276
|
key: r.r,
|
|
@@ -15352,7 +15352,7 @@ function Le(e, n, t, a, s, f) {
|
|
|
15352
15352
|
(l(!0), c(q, null, c2(e.orderedGroups, (i) => (l(), c("button", {
|
|
15353
15353
|
key: i.key,
|
|
15354
15354
|
type: "button",
|
|
15355
|
-
class:
|
|
15355
|
+
class: D(["v3-group", {
|
|
15356
15356
|
"v3-is-hidden": !e.icons[i.key]
|
|
15357
15357
|
}]),
|
|
15358
15358
|
onClick: (r) => e.updateActiveGroup(i.key)
|
|
@@ -15367,8 +15367,8 @@ function Le(e, n, t, a, s, f) {
|
|
|
15367
15367
|
}, null, 8, de)
|
|
15368
15368
|
], 8, ue)
|
|
15369
15369
|
], 10, ce))), 128))
|
|
15370
|
-
])) :
|
|
15371
|
-
e.hasGroupIcons && e.hasSearch ? (l(), c("div", Ae)) :
|
|
15370
|
+
])) : h("", !0),
|
|
15371
|
+
e.hasGroupIcons && e.hasSearch ? (l(), c("div", Ae)) : h("", !0),
|
|
15372
15372
|
e.hasSearch ? (l(), c("div", Ce, [
|
|
15373
15373
|
p2(o("input", {
|
|
15374
15374
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => e.searchValue = i),
|
|
@@ -15377,8 +15377,8 @@ function Le(e, n, t, a, s, f) {
|
|
|
15377
15377
|
}, null, 8, ge), [
|
|
15378
15378
|
[N0, e.searchValue]
|
|
15379
15379
|
])
|
|
15380
|
-
])) :
|
|
15381
|
-
])) :
|
|
15380
|
+
])) : h("", !0)
|
|
15381
|
+
])) : h("", !0);
|
|
15382
15382
|
}
|
|
15383
15383
|
var pe = /* @__PURE__ */ f1(oe, [["render", Le]]);
|
|
15384
15384
|
const me = J({
|
|
@@ -15399,7 +15399,7 @@ const me = J({
|
|
|
15399
15399
|
function C(L) {
|
|
15400
15400
|
n(L), d(!1);
|
|
15401
15401
|
}
|
|
15402
|
-
return
|
|
15402
|
+
return t2(
|
|
15403
15403
|
() => e.emoji,
|
|
15404
15404
|
() => {
|
|
15405
15405
|
a.value = !1;
|
|
@@ -15430,7 +15430,7 @@ function we(e, n, t, a, s, f) {
|
|
|
15430
15430
|
}, [
|
|
15431
15431
|
o("div", he, [
|
|
15432
15432
|
o("span", {
|
|
15433
|
-
class:
|
|
15433
|
+
class: D([e.platform, "v3-icon"])
|
|
15434
15434
|
}, [
|
|
15435
15435
|
e.native || e.hasError ? (l(), c("span", ve, N(e.unicodeToEmoji(e.emoji.r)), 1)) : (l(), c("img", {
|
|
15436
15436
|
key: 1,
|
|
@@ -15449,20 +15449,20 @@ function we(e, n, t, a, s, f) {
|
|
|
15449
15449
|
}, [
|
|
15450
15450
|
o("span", be, N(e.skinToneText), 1),
|
|
15451
15451
|
o("span", {
|
|
15452
|
-
class:
|
|
15452
|
+
class: D(`v3-icon v3-tone-${e.stateSkinTone}`)
|
|
15453
15453
|
}, null, 2)
|
|
15454
15454
|
]),
|
|
15455
15455
|
o("div", {
|
|
15456
|
-
class:
|
|
15456
|
+
class: D([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
|
15457
15457
|
}, [
|
|
15458
15458
|
(l(!0), c(q, null, c2(e.SKIN_TONES, (i) => (l(), c("button", {
|
|
15459
15459
|
key: i,
|
|
15460
15460
|
type: "button",
|
|
15461
|
-
class:
|
|
15461
|
+
class: D(["v3-skin-tone-" + i, "v3-skin-tone"]),
|
|
15462
15462
|
onClick: (r) => e.selectSkinTone(i)
|
|
15463
15463
|
}, null, 10, _e))), 128))
|
|
15464
15464
|
], 2)
|
|
15465
|
-
], 64)) :
|
|
15465
|
+
], 64)) : h("", !0)
|
|
15466
15466
|
], 32);
|
|
15467
15467
|
}
|
|
15468
15468
|
var Ie = /* @__PURE__ */ f1(me, [["render", we]]);
|
|
@@ -15509,8 +15509,8 @@ const ke = J({
|
|
|
15509
15509
|
const { state: d } = l2("store"), A = O(() => d.options.colorTheme);
|
|
15510
15510
|
function C(p) {
|
|
15511
15511
|
if (r) {
|
|
15512
|
-
const
|
|
15513
|
-
|
|
15512
|
+
const y = d.options.mode;
|
|
15513
|
+
y === "prepend" ? i.value = p.i + i.value : y === "insert" && u !== -1 ? (i.value = `${i.value.slice(0, u)}${p.i}${i.value.slice(u)}`, u += p.i.length) : i.value += p.i, n("update:text", i.value);
|
|
15514
15514
|
}
|
|
15515
15515
|
n("select", p);
|
|
15516
15516
|
}
|
|
@@ -15519,8 +15519,8 @@ const ke = J({
|
|
|
15519
15519
|
t.value && (u = ((p = t.value) == null ? void 0 : p.selectionEnd) || -1);
|
|
15520
15520
|
}
|
|
15521
15521
|
function w(p) {
|
|
15522
|
-
var
|
|
15523
|
-
!((
|
|
15522
|
+
var y;
|
|
15523
|
+
!((y = p.target) != null && y.closest(
|
|
15524
15524
|
".v3-input-picker-wrap"
|
|
15525
15525
|
)) && f.value && (f.value = !1);
|
|
15526
15526
|
}
|
|
@@ -15586,7 +15586,7 @@ function Ve(e, n, t, a, s, f) {
|
|
|
15586
15586
|
onBlur: n[3] || (n[3] = (...d) => e.updateCursor && e.updateCursor(...d))
|
|
15587
15587
|
}, null, 40, De)),
|
|
15588
15588
|
o("div", {
|
|
15589
|
-
class:
|
|
15589
|
+
class: D(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
|
15590
15590
|
}, [
|
|
15591
15591
|
o("button", {
|
|
15592
15592
|
ref: "button",
|
|
@@ -15601,7 +15601,7 @@ function Ve(e, n, t, a, s, f) {
|
|
|
15601
15601
|
], 512),
|
|
15602
15602
|
o("div", {
|
|
15603
15603
|
ref: "picker",
|
|
15604
|
-
class:
|
|
15604
|
+
class: D(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
|
15605
15605
|
}, [
|
|
15606
15606
|
Y(i),
|
|
15607
15607
|
Y(r, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
|
@@ -15611,7 +15611,7 @@ function Ve(e, n, t, a, s, f) {
|
|
|
15611
15611
|
])
|
|
15612
15612
|
])) : (l(), c("div", {
|
|
15613
15613
|
key: 1,
|
|
15614
|
-
class:
|
|
15614
|
+
class: D(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
|
15615
15615
|
}, [
|
|
15616
15616
|
Y(i),
|
|
15617
15617
|
Y(r, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
|
@@ -15781,15 +15781,15 @@ const Be = /* @__PURE__ */ j(ze, [["render", Ue]]), Re = { class: "" }, Qe = {
|
|
|
15781
15781
|
}), k0(() => {
|
|
15782
15782
|
document.removeEventListener("click", w);
|
|
15783
15783
|
}), (g, I) => (l(), c(q, null, [
|
|
15784
|
-
|
|
15784
|
+
M(u)().isRecording ? h("", !0) : (l(), c("button", {
|
|
15785
15785
|
key: 0,
|
|
15786
15786
|
ref_key: "emojiButton",
|
|
15787
15787
|
ref: s,
|
|
15788
|
-
class:
|
|
15788
|
+
class: D(["button", { "button-disabled": e.state == "disabled" }]),
|
|
15789
15789
|
onClick: C
|
|
15790
15790
|
}, [
|
|
15791
15791
|
o("span", Re, [
|
|
15792
|
-
Y(
|
|
15792
|
+
Y(M(Be))
|
|
15793
15793
|
])
|
|
15794
15794
|
], 2)),
|
|
15795
15795
|
Y(u2, null, {
|
|
@@ -15799,7 +15799,7 @@ const Be = /* @__PURE__ */ j(ze, [["render", Ue]]), Re = { class: "" }, Qe = {
|
|
|
15799
15799
|
ref: t,
|
|
15800
15800
|
class: "emoji"
|
|
15801
15801
|
}, [
|
|
15802
|
-
Y(
|
|
15802
|
+
Y(M(Oe), {
|
|
15803
15803
|
native: !0,
|
|
15804
15804
|
theme: a.value,
|
|
15805
15805
|
"picker-type": "",
|
|
@@ -15872,22 +15872,22 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
15872
15872
|
return h2(() => {
|
|
15873
15873
|
f.value.style.display = "none";
|
|
15874
15874
|
}), (A, C) => (l(), c(q, null, [
|
|
15875
|
-
Y(
|
|
15875
|
+
Y(M(u0), {
|
|
15876
15876
|
text: "Шаблоны сообщений",
|
|
15877
15877
|
position: "left"
|
|
15878
15878
|
}, {
|
|
15879
15879
|
default: W(() => [
|
|
15880
|
-
|
|
15880
|
+
M(a)().isRecording ? h("", !0) : (l(), c("button", {
|
|
15881
15881
|
key: 0,
|
|
15882
15882
|
ref_key: "templateButton",
|
|
15883
15883
|
ref: s,
|
|
15884
|
-
class:
|
|
15884
|
+
class: D(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
|
15885
15885
|
onClick: i,
|
|
15886
15886
|
onMouseover: r,
|
|
15887
15887
|
onMouseout: u
|
|
15888
15888
|
}, [
|
|
15889
15889
|
o("span", qe, [
|
|
15890
|
-
Y(
|
|
15890
|
+
Y(M(Pe))
|
|
15891
15891
|
])
|
|
15892
15892
|
], 34))
|
|
15893
15893
|
]),
|
|
@@ -15901,7 +15901,7 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
15901
15901
|
onMouseover: r,
|
|
15902
15902
|
onMouseout: u
|
|
15903
15903
|
}, [
|
|
15904
|
-
Y(
|
|
15904
|
+
Y(M(tn), {
|
|
15905
15905
|
templates: e.templates,
|
|
15906
15906
|
"group-templates": e.groupTemplates,
|
|
15907
15907
|
"elevated-window": e.elevatedWindow,
|
|
@@ -15966,11 +15966,11 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
15966
15966
|
r("sendWabaValues", w);
|
|
15967
15967
|
};
|
|
15968
15968
|
return (w, g) => (l(), c(q, null, [
|
|
15969
|
-
|
|
15969
|
+
M(s)().isRecording ? h("", !0) : (l(), c("button", {
|
|
15970
15970
|
key: 0,
|
|
15971
15971
|
ref_key: "templateButton",
|
|
15972
15972
|
ref: f,
|
|
15973
|
-
class:
|
|
15973
|
+
class: D(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
|
15974
15974
|
onClick: u,
|
|
15975
15975
|
onMouseover: d,
|
|
15976
15976
|
onMouseout: A
|
|
@@ -15983,7 +15983,7 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
15983
15983
|
onMouseover: d,
|
|
15984
15984
|
onMouseout: A
|
|
15985
15985
|
}, [
|
|
15986
|
-
Y(
|
|
15986
|
+
Y(M(qn), {
|
|
15987
15987
|
"waba-templates": e.wabaTemplates,
|
|
15988
15988
|
"group-templates": e.groupTemplates,
|
|
15989
15989
|
"elevated-window": e.elevatedWindow,
|
|
@@ -16020,8 +16020,8 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
16020
16020
|
f.value && (r.value ? f.value.pause() : f.value.play(), r.value = !r.value);
|
|
16021
16021
|
}
|
|
16022
16022
|
const w = (p) => {
|
|
16023
|
-
const
|
|
16024
|
-
return `${
|
|
16023
|
+
const y = Math.floor(p / 60), k = Math.floor(p % 60);
|
|
16024
|
+
return `${y.toString().padStart(2, "0")}:${k.toString().padStart(2, "0")}`;
|
|
16025
16025
|
}, g = O(() => f.value ? w(d.value) : "0:00"), I = O(() => f.value || i.value ? w(u.value) : "0:00");
|
|
16026
16026
|
return h2(() => {
|
|
16027
16027
|
f.value != null && (f.value.addEventListener("loadedmetadata", () => {
|
|
@@ -16035,25 +16035,25 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
16035
16035
|
i.value && (i.value.currentTime = 0, u.value = i.value.duration);
|
|
16036
16036
|
}, { once: !0 })));
|
|
16037
16037
|
});
|
|
16038
|
-
}), (p,
|
|
16038
|
+
}), (p, y) => (l(), c("div", Je, [
|
|
16039
16039
|
o("div", Ge, [
|
|
16040
16040
|
e.fileInfo.isImage ? (l(), c("div", {
|
|
16041
16041
|
key: 0,
|
|
16042
16042
|
style: { position: "relative" },
|
|
16043
|
-
onClick:
|
|
16043
|
+
onClick: y[0] || (y[0] = (k) => A.value = !0)
|
|
16044
16044
|
}, [
|
|
16045
16045
|
o("img", {
|
|
16046
16046
|
src: e.fileInfo.previewUrl,
|
|
16047
16047
|
alt: "Image Preview",
|
|
16048
16048
|
class: "preview__image"
|
|
16049
16049
|
}, null, 8, Xe),
|
|
16050
|
-
|
|
16050
|
+
y[3] || (y[3] = o("div", { class: "preview__shadow" }, [
|
|
16051
16051
|
o("span", { class: "pi pi-plus-circle" })
|
|
16052
16052
|
], -1))
|
|
16053
16053
|
])) : e.fileInfo.isVideo ? (l(), c("div", {
|
|
16054
16054
|
key: 1,
|
|
16055
16055
|
style: { position: "relative" },
|
|
16056
|
-
onClick:
|
|
16056
|
+
onClick: y[1] || (y[1] = (k) => A.value = !0)
|
|
16057
16057
|
}, [
|
|
16058
16058
|
o("video", {
|
|
16059
16059
|
ref_key: "video",
|
|
@@ -16061,11 +16061,11 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
16061
16061
|
src: e.fileInfo.previewUrl,
|
|
16062
16062
|
class: "preview__video"
|
|
16063
16063
|
}, null, 8, et),
|
|
16064
|
-
|
|
16064
|
+
y[4] || (y[4] = o("div", { class: "preview__shadow" }, [
|
|
16065
16065
|
o("span", { class: "pi pi-play" })
|
|
16066
16066
|
], -1))
|
|
16067
16067
|
])) : e.fileInfo.isAudio ? (l(), c("div", tt, [
|
|
16068
|
-
|
|
16068
|
+
y[5] || (y[5] = o("span", {
|
|
16069
16069
|
class: "pi pi-headphones",
|
|
16070
16070
|
style: { "font-size": "1rem", margin: "auto" }
|
|
16071
16071
|
}, null, -1)),
|
|
@@ -16085,7 +16085,7 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
16085
16085
|
[H2, r.value]
|
|
16086
16086
|
])
|
|
16087
16087
|
])
|
|
16088
|
-
])) : (l(), c("div", ft, [...
|
|
16088
|
+
])) : (l(), c("div", ft, [...y[6] || (y[6] = [
|
|
16089
16089
|
o("span", {
|
|
16090
16090
|
class: "pi pi-file",
|
|
16091
16091
|
style: { "font-size": "2.5rem" }
|
|
@@ -16095,23 +16095,23 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
16095
16095
|
o("div", it, [
|
|
16096
16096
|
o("div", ot, [
|
|
16097
16097
|
o("span", lt, N(e.fileInfo.fileName), 1),
|
|
16098
|
-
!e.fileInfo.isAudio && !e.fileInfo.isVideo ? (l(), c("span", rt, N(e.fileInfo.fileSize), 1)) :
|
|
16099
|
-
e.fileInfo.isAudio ? (l(), c("span", ct, N(`${g.value} / ${I.value}`), 1)) :
|
|
16100
|
-
e.fileInfo.isVideo ? (l(), c("span", ut, N(I.value), 1)) :
|
|
16098
|
+
!e.fileInfo.isAudio && !e.fileInfo.isVideo ? (l(), c("span", rt, N(e.fileInfo.fileSize), 1)) : h("", !0),
|
|
16099
|
+
e.fileInfo.isAudio ? (l(), c("span", ct, N(`${g.value} / ${I.value}`), 1)) : h("", !0),
|
|
16100
|
+
e.fileInfo.isVideo ? (l(), c("span", ut, N(I.value), 1)) : h("", !0)
|
|
16101
16101
|
]),
|
|
16102
16102
|
o("div", dt, [
|
|
16103
16103
|
o("span", {
|
|
16104
16104
|
class: "pi pi-times",
|
|
16105
|
-
onClick:
|
|
16105
|
+
onClick: y[2] || (y[2] = (k) => s("reset"))
|
|
16106
16106
|
})
|
|
16107
16107
|
])
|
|
16108
16108
|
]),
|
|
16109
16109
|
(l(), z(D2, { to: "body" }, [
|
|
16110
16110
|
Y(u2, { name: "modal-fade" }, {
|
|
16111
16111
|
default: W(() => [
|
|
16112
|
-
A.value ? (l(), z(
|
|
16112
|
+
A.value ? (l(), z(M(i1), {
|
|
16113
16113
|
key: 0,
|
|
16114
|
-
theme:
|
|
16114
|
+
theme: M(a)().theme ? M(a)().theme : "",
|
|
16115
16115
|
onClose: C
|
|
16116
16116
|
}, {
|
|
16117
16117
|
default: W(() => [
|
|
@@ -16121,16 +16121,16 @@ const Pe = /* @__PURE__ */ j(Fe, [["render", Ye]]), qe = { class: "" }, We = {
|
|
|
16121
16121
|
src: e.fileInfo.previewUrl,
|
|
16122
16122
|
controls: "",
|
|
16123
16123
|
autoplay: ""
|
|
16124
|
-
}, null, 8, At)) :
|
|
16124
|
+
}, null, 8, At)) : h("", !0),
|
|
16125
16125
|
e.fileInfo.isImage ? (l(), c("img", {
|
|
16126
16126
|
key: 1,
|
|
16127
16127
|
class: "preview__modal-image",
|
|
16128
16128
|
src: e.fileInfo.previewUrl,
|
|
16129
16129
|
alt: "Image Preview"
|
|
16130
|
-
}, null, 8, Ct)) :
|
|
16130
|
+
}, null, 8, Ct)) : h("", !0)
|
|
16131
16131
|
]),
|
|
16132
16132
|
_: 1
|
|
16133
|
-
}, 8, ["theme"])) :
|
|
16133
|
+
}, 8, ["theme"])) : h("", !0)
|
|
16134
16134
|
]),
|
|
16135
16135
|
_: 1
|
|
16136
16136
|
})
|
|
@@ -16167,28 +16167,28 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16167
16167
|
emits: ["fileUploaded"],
|
|
16168
16168
|
setup(e, { emit: n }) {
|
|
16169
16169
|
const t = e, a = m(""), s = m(), f = m(), i = l2("chatAppId"), { setMessageFile: r, resetMessageFile: u, getMessage: d, setRecordingMessage: A } = R2(i), C = O(() => !d().file), L = () => {
|
|
16170
|
-
const
|
|
16171
|
-
|
|
16170
|
+
const y = document.getElementById("chat-input-file-line-" + i);
|
|
16171
|
+
y && (y.style.display = "none"), u(), f.value = void 0, a.value = "";
|
|
16172
16172
|
}, w = async () => {
|
|
16173
|
-
var
|
|
16174
|
-
L(), (
|
|
16173
|
+
var y, k;
|
|
16174
|
+
L(), (y = s.value) != null && y.files && p((k = s.value) == null ? void 0 : k.files[0]);
|
|
16175
16175
|
}, g = () => {
|
|
16176
16176
|
s.value && C && t.state == "active" && s.value.click();
|
|
16177
|
-
}, I = async (
|
|
16177
|
+
}, I = async (y) => {
|
|
16178
16178
|
var _;
|
|
16179
|
-
const k = (_ =
|
|
16179
|
+
const k = (_ = y.clipboardData) == null ? void 0 : _.items;
|
|
16180
16180
|
if (k) {
|
|
16181
|
-
for (let
|
|
16182
|
-
if (
|
|
16183
|
-
|
|
16184
|
-
const T =
|
|
16181
|
+
for (let b of k)
|
|
16182
|
+
if (b.type.indexOf("image") !== -1) {
|
|
16183
|
+
y.preventDefault();
|
|
16184
|
+
const T = b.getAsFile();
|
|
16185
16185
|
T && p(T);
|
|
16186
16186
|
}
|
|
16187
16187
|
}
|
|
16188
|
-
}, p = async (
|
|
16188
|
+
}, p = async (y) => {
|
|
16189
16189
|
a.value = "uploading", A(!0);
|
|
16190
16190
|
const k = typeof t.filebumpUrl == "string" ? t.filebumpUrl : null;
|
|
16191
|
-
await Y1(k,
|
|
16191
|
+
await Y1(k, y).then((_) => {
|
|
16192
16192
|
if (A(!1), a.value = _.status, _.status == "success") {
|
|
16193
16193
|
r({
|
|
16194
16194
|
url: _.url,
|
|
@@ -16196,8 +16196,8 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16196
16196
|
size: _.size,
|
|
16197
16197
|
type: _.type
|
|
16198
16198
|
});
|
|
16199
|
-
const
|
|
16200
|
-
|
|
16199
|
+
const b = document.getElementById("chat-input-file-line-" + i);
|
|
16200
|
+
b && (b.style.display = "inherit"), _.preview && (f.value = {
|
|
16201
16201
|
previewUrl: _.preview.previewUrl,
|
|
16202
16202
|
isImage: _.preview.isImage,
|
|
16203
16203
|
isVideo: _.preview.isVideo,
|
|
@@ -16210,18 +16210,18 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16210
16210
|
};
|
|
16211
16211
|
return h2(() => {
|
|
16212
16212
|
window.addEventListener("paste", I);
|
|
16213
|
-
}), (
|
|
16213
|
+
}), (y, k) => (l(), c(q, null, [
|
|
16214
16214
|
a.value === "uploading" ? (l(), c("div", vt, [...k[0] || (k[0] = [
|
|
16215
16215
|
o("p", null, "Загрузка файла...", -1)
|
|
16216
16216
|
])])) : a.value === "error" ? (l(), c("div", Mt, [...k[1] || (k[1] = [
|
|
16217
16217
|
o("p", null, "Ошибка при загрузке файла.", -1)
|
|
16218
|
-
])])) :
|
|
16218
|
+
])])) : h("", !0),
|
|
16219
16219
|
o("span", {
|
|
16220
|
-
class:
|
|
16220
|
+
class: D(["file-uploader__trigger", { "file-uploader__disabled": !C.value || e.state == "disabled" }]),
|
|
16221
16221
|
disabled: !C.value || e.state == "disabled",
|
|
16222
16222
|
onClick: g
|
|
16223
16223
|
}, [
|
|
16224
|
-
Y(
|
|
16224
|
+
Y(M(ht))
|
|
16225
16225
|
], 10, yt),
|
|
16226
16226
|
o("input", {
|
|
16227
16227
|
ref_key: "fileInput",
|
|
@@ -16230,16 +16230,16 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16230
16230
|
type: "file",
|
|
16231
16231
|
onChange: w
|
|
16232
16232
|
}, null, 544),
|
|
16233
|
-
|
|
16233
|
+
M(d)().file ? (l(), z(D2, {
|
|
16234
16234
|
key: 2,
|
|
16235
|
-
to: "#chat-input-file-line-" +
|
|
16235
|
+
to: "#chat-input-file-line-" + M(i)
|
|
16236
16236
|
}, [
|
|
16237
|
-
f.value ? (l(), z(
|
|
16237
|
+
f.value ? (l(), z(M(K1), {
|
|
16238
16238
|
key: 0,
|
|
16239
16239
|
"file-info": f.value,
|
|
16240
16240
|
onReset: L
|
|
16241
|
-
}, null, 8, ["file-info"])) :
|
|
16242
|
-
], 8, ["to"])) :
|
|
16241
|
+
}, null, 8, ["file-info"])) : h("", !0)
|
|
16242
|
+
], 8, ["to"])) : h("", !0)
|
|
16243
16243
|
], 64));
|
|
16244
16244
|
}
|
|
16245
16245
|
}), Vr = /* @__PURE__ */ j(bt, [["__scopeId", "data-v-02213aad"]]), _t = ["id"], wt = {
|
|
@@ -16261,7 +16261,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16261
16261
|
emits: ["edit"],
|
|
16262
16262
|
setup(e, { emit: n }) {
|
|
16263
16263
|
const t = l2("chatAppId"), a = e, s = n, f = m(a.value), i = m();
|
|
16264
|
-
|
|
16264
|
+
t2(
|
|
16265
16265
|
() => a.isFilled,
|
|
16266
16266
|
() => {
|
|
16267
16267
|
a.isFilled || (f.value = "Заполнить");
|
|
@@ -16291,11 +16291,11 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16291
16291
|
}), k0(() => {
|
|
16292
16292
|
window.removeEventListener("keydown", A);
|
|
16293
16293
|
}), (C, L) => (l(), c("span", {
|
|
16294
|
-
id: "placeholder" +
|
|
16294
|
+
id: "placeholder" + M(t) + e.index,
|
|
16295
16295
|
ref_key: "refPlaceholder",
|
|
16296
16296
|
ref: i,
|
|
16297
16297
|
contenteditable: "",
|
|
16298
|
-
class:
|
|
16298
|
+
class: D([{ filled: e.isFilled, empty: !e.isFilled }, "placeholder"]),
|
|
16299
16299
|
onKeydown: M3(d, ["enter"]),
|
|
16300
16300
|
onFocus: r,
|
|
16301
16301
|
onBlur: u
|
|
@@ -16346,41 +16346,41 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16346
16346
|
setup(e, { emit: n }) {
|
|
16347
16347
|
const t = e, a = l2("chatAppId"), { setMessageText: s } = R2(a), f = () => {
|
|
16348
16348
|
i("closeTemplateWindow"), s(u.value.template);
|
|
16349
|
-
}, i = n, r = m(null), u = m(null), d = m(""), A = m(), C = m(""), L = m(""), w = m(""), g = m(!1), I = O(() => !!(g.value && (w.value == "grid" && L.value == "none" || L.value == "grid" && C.value == "none"))), p = O(() => !!(g.value && (C.value == "grid" && L.value == "none" || L.value == "grid" && w.value == "none"))),
|
|
16349
|
+
}, i = n, r = m(null), u = m(null), d = m(""), A = m(), C = m(""), L = m(""), w = m(""), g = m(!1), I = O(() => !!(g.value && (w.value == "grid" && L.value == "none" || L.value == "grid" && C.value == "none"))), p = O(() => !!(g.value && (C.value == "grid" && L.value == "none" || L.value == "grid" && w.value == "none"))), y = () => {
|
|
16350
16350
|
g.value && (L.value == "grid" ? _() : w.value == "grid" && T());
|
|
16351
16351
|
}, k = () => {
|
|
16352
|
-
g.value && (L.value == "grid" ?
|
|
16352
|
+
g.value && (L.value == "grid" ? b() : C.value == "grid" && T());
|
|
16353
16353
|
}, _ = () => {
|
|
16354
16354
|
const Q = document.getElementById("template-selector-container-" + a);
|
|
16355
|
-
Q.style.setProperty("--chotto-template-first-col-display", "grid"), Q.style.setProperty("--chotto-template-second-col-display", "none"),
|
|
16356
|
-
},
|
|
16355
|
+
Q.style.setProperty("--chotto-template-first-col-display", "grid"), Q.style.setProperty("--chotto-template-second-col-display", "none"), v();
|
|
16356
|
+
}, b = () => {
|
|
16357
16357
|
const Q = document.getElementById("template-selector-container-" + a);
|
|
16358
|
-
Q.style.setProperty("--chotto-template-third-col-display", "grid"), Q.style.setProperty("--chotto-template-second-col-display", "none"),
|
|
16358
|
+
Q.style.setProperty("--chotto-template-third-col-display", "grid"), Q.style.setProperty("--chotto-template-second-col-display", "none"), v();
|
|
16359
16359
|
}, T = () => {
|
|
16360
16360
|
const Q = document.getElementById("template-selector-container-" + a);
|
|
16361
|
-
Q.style.setProperty("--chotto-template-second-col-display", "grid"), Q.style.setProperty("--chotto-template-first-col-display", "none"), Q.style.setProperty("--chotto-template-third-col-display", "none"),
|
|
16362
|
-
},
|
|
16361
|
+
Q.style.setProperty("--chotto-template-second-col-display", "grid"), Q.style.setProperty("--chotto-template-first-col-display", "none"), Q.style.setProperty("--chotto-template-third-col-display", "none"), v();
|
|
16362
|
+
}, v = () => {
|
|
16363
16363
|
const Q = document.getElementById("template-selector-container-" + a), F = window.getComputedStyle(Q);
|
|
16364
16364
|
C.value = F.getPropertyValue("--chotto-template-first-col-display"), L.value = F.getPropertyValue("--chotto-template-second-col-display"), w.value = F.getPropertyValue("--chotto-template-third-col-display");
|
|
16365
|
-
},
|
|
16366
|
-
t.templates.forEach((F) => F.isSelected = !1), Q.isSelected = !0, u.value = Q,
|
|
16365
|
+
}, E = (Q) => {
|
|
16366
|
+
t.templates.forEach((F) => F.isSelected = !1), Q.isSelected = !0, u.value = Q, b();
|
|
16367
16367
|
}, x = () => {
|
|
16368
16368
|
T(), t.templates.forEach((Q) => Q.isSelected = !1);
|
|
16369
16369
|
}, S = O(() => r.value ? t.templates.filter((Q) => Q.groupId === r.value.groupId) : t.templates), R = O(() => {
|
|
16370
16370
|
const Q = d.value.trim().toLowerCase();
|
|
16371
16371
|
return S.value.filter((F) => F.title.toLowerCase().includes(Q) || F.template.toLowerCase().includes(Q));
|
|
16372
|
-
}),
|
|
16372
|
+
}), X = new ResizeObserver((Q) => {
|
|
16373
16373
|
const F = Q[0].target.clientWidth;
|
|
16374
16374
|
F > 700 && (g.value = !1), F < 700 && (g.value = !0);
|
|
16375
16375
|
});
|
|
16376
16376
|
return h2(() => {
|
|
16377
|
-
|
|
16377
|
+
v(), M(A) && X.observe(M(A));
|
|
16378
16378
|
}), (Q, F) => (l(), c("div", kt, [
|
|
16379
16379
|
o("div", {
|
|
16380
|
-
id: "template-selector-container-" +
|
|
16380
|
+
id: "template-selector-container-" + M(a),
|
|
16381
16381
|
ref_key: "refContainer",
|
|
16382
16382
|
ref: A,
|
|
16383
|
-
class:
|
|
16383
|
+
class: D({
|
|
16384
16384
|
"template-selector__container-inline": !e.elevatedWindow,
|
|
16385
16385
|
"template-selector__container-elevated": e.elevatedWindow
|
|
16386
16386
|
})
|
|
@@ -16390,15 +16390,15 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16390
16390
|
I.value ? (l(), c("button", Dt, [
|
|
16391
16391
|
o("span", {
|
|
16392
16392
|
class: "pi pi-arrow-left",
|
|
16393
|
-
onClick:
|
|
16393
|
+
onClick: y
|
|
16394
16394
|
})
|
|
16395
|
-
])) :
|
|
16395
|
+
])) : h("", !0),
|
|
16396
16396
|
p.value ? (l(), c("button", Et, [
|
|
16397
16397
|
o("span", {
|
|
16398
16398
|
class: "pi pi-arrow-right",
|
|
16399
16399
|
onClick: k
|
|
16400
16400
|
})
|
|
16401
|
-
])) :
|
|
16401
|
+
])) : h("", !0)
|
|
16402
16402
|
]),
|
|
16403
16403
|
o("button", Vt, [
|
|
16404
16404
|
o("span", {
|
|
@@ -16409,13 +16409,13 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16409
16409
|
]),
|
|
16410
16410
|
o("div", jt, [
|
|
16411
16411
|
o("div", {
|
|
16412
|
-
id: "template-selector-first-col-" +
|
|
16412
|
+
id: "template-selector-first-col-" + M(a),
|
|
16413
16413
|
class: "template-selector__first-col"
|
|
16414
16414
|
}, [
|
|
16415
16415
|
o("ul", Zt, [
|
|
16416
16416
|
(l(!0), c(q, null, c2(e.groupTemplates, (n2, i2) => (l(), c("li", {
|
|
16417
16417
|
key: i2,
|
|
16418
|
-
class:
|
|
16418
|
+
class: D(["template-selector__item-group", { "template-selector__item-selected": r.value === n2 }]),
|
|
16419
16419
|
onClick: x
|
|
16420
16420
|
}, [
|
|
16421
16421
|
o("label", Ot, [
|
|
@@ -16424,7 +16424,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16424
16424
|
class: "template-selector__item-group-icon",
|
|
16425
16425
|
src: n2.iconUrl,
|
|
16426
16426
|
alt: n2.title
|
|
16427
|
-
}, null, 8, zt)) :
|
|
16427
|
+
}, null, 8, zt)) : h("", !0),
|
|
16428
16428
|
p2(o("input", {
|
|
16429
16429
|
id: i2,
|
|
16430
16430
|
"onUpdate:modelValue": F[1] || (F[1] = (a2) => r.value = a2),
|
|
@@ -16440,7 +16440,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16440
16440
|
])
|
|
16441
16441
|
], 8, St),
|
|
16442
16442
|
o("div", {
|
|
16443
|
-
id: "template-selector-second-col-" +
|
|
16443
|
+
id: "template-selector-second-col-" + M(a),
|
|
16444
16444
|
class: "template-selector__second-col"
|
|
16445
16445
|
}, [
|
|
16446
16446
|
o("div", Bt, [
|
|
@@ -16457,8 +16457,8 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16457
16457
|
R.value.length !== 0 ? (l(), c("ul", Qt, [
|
|
16458
16458
|
(l(!0), c(q, null, c2(R.value, (n2, i2) => (l(), c("li", {
|
|
16459
16459
|
key: i2,
|
|
16460
|
-
class:
|
|
16461
|
-
onClick: (a2) =>
|
|
16460
|
+
class: D(["template-selector__item-template", { "template-selector__item-selected": n2.isSelected }]),
|
|
16461
|
+
onClick: (a2) => E(n2)
|
|
16462
16462
|
}, [
|
|
16463
16463
|
o("div", Ht, [
|
|
16464
16464
|
o("p", Yt, N(n2.title), 1),
|
|
@@ -16469,7 +16469,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16469
16469
|
])
|
|
16470
16470
|
], 8, Ut),
|
|
16471
16471
|
o("div", {
|
|
16472
|
-
id: "template-selector-third-col-" +
|
|
16472
|
+
id: "template-selector-third-col-" + M(a),
|
|
16473
16473
|
class: "template-selector__third-col"
|
|
16474
16474
|
}, [
|
|
16475
16475
|
o("div", {
|
|
@@ -16538,27 +16538,27 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16538
16538
|
const I = (p = g.target.files) == null ? void 0 : p[0];
|
|
16539
16539
|
if (I) {
|
|
16540
16540
|
i.value = "";
|
|
16541
|
-
const
|
|
16542
|
-
if (C[t.type].accept.indexOf(
|
|
16541
|
+
const y = I.name.split(".");
|
|
16542
|
+
if (C[t.type].accept.indexOf(y[y.length - 1]) == -1)
|
|
16543
16543
|
i.value = C[t.type].error;
|
|
16544
16544
|
else if (I.size > C[t.type].maxSize)
|
|
16545
16545
|
i.value = "Файл слишком большого размера";
|
|
16546
16546
|
else if (!i.value) {
|
|
16547
16547
|
s.value = I, r.value = "uploading";
|
|
16548
|
-
const _ =
|
|
16549
|
-
Y1(typeof _ == "string" ? _ : null, I).then((
|
|
16550
|
-
r.value =
|
|
16551
|
-
url:
|
|
16552
|
-
filename:
|
|
16553
|
-
filesize:
|
|
16554
|
-
filetype:
|
|
16555
|
-
}),
|
|
16556
|
-
previewUrl:
|
|
16557
|
-
isImage:
|
|
16558
|
-
isVideo:
|
|
16559
|
-
isAudio:
|
|
16560
|
-
fileName:
|
|
16561
|
-
fileSize:
|
|
16548
|
+
const _ = M(a.value);
|
|
16549
|
+
Y1(typeof _ == "string" ? _ : null, I).then((b) => {
|
|
16550
|
+
r.value = b.status, b.status == "success" && (d("fileSelected", {
|
|
16551
|
+
url: b.url,
|
|
16552
|
+
filename: b.name,
|
|
16553
|
+
filesize: b.size,
|
|
16554
|
+
filetype: b.type
|
|
16555
|
+
}), b.preview && (u.value = {
|
|
16556
|
+
previewUrl: b.preview.previewUrl,
|
|
16557
|
+
isImage: b.preview.isImage,
|
|
16558
|
+
isVideo: b.preview.isVideo,
|
|
16559
|
+
isAudio: b.preview.isAudio,
|
|
16560
|
+
fileName: b.name,
|
|
16561
|
+
fileSize: b.preview.fileSize
|
|
16562
16562
|
}));
|
|
16563
16563
|
});
|
|
16564
16564
|
}
|
|
@@ -16566,12 +16566,12 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16566
16566
|
}, w = () => {
|
|
16567
16567
|
s.value && (s.value = null, r.value = "");
|
|
16568
16568
|
};
|
|
16569
|
-
return
|
|
16569
|
+
return t2(
|
|
16570
16570
|
() => r.value,
|
|
16571
16571
|
(g) => {
|
|
16572
16572
|
g === "" && (f.value && (f.value.value = ""), s.value = null, d("fileSelected", null));
|
|
16573
16573
|
}
|
|
16574
|
-
),
|
|
16574
|
+
), t2(
|
|
16575
16575
|
() => t.templateId,
|
|
16576
16576
|
() => {
|
|
16577
16577
|
r.value = "";
|
|
@@ -16579,7 +16579,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16579
16579
|
), (g, I) => (l(), c(q, null, [
|
|
16580
16580
|
r.value !== "success" ? (l(), c("div", {
|
|
16581
16581
|
key: 0,
|
|
16582
|
-
class:
|
|
16582
|
+
class: D(["attachment-section", { "attachment-section__error": i.value }]),
|
|
16583
16583
|
onClick: A
|
|
16584
16584
|
}, [
|
|
16585
16585
|
o("input", {
|
|
@@ -16596,12 +16596,12 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16596
16596
|
I[0] || (I[0] = o("p", { class: "attachment-section__title" }, " Прикрепить файл ", -1)),
|
|
16597
16597
|
o("p", an, N(C[e.type].text), 1)
|
|
16598
16598
|
])
|
|
16599
|
-
], 2)) : r.value === "success" && u.value ? (l(), z(
|
|
16599
|
+
], 2)) : r.value === "success" && u.value ? (l(), z(M(K1), {
|
|
16600
16600
|
key: 1,
|
|
16601
16601
|
"file-info": u.value,
|
|
16602
16602
|
onReset: w
|
|
16603
|
-
}, null, 8, ["file-info"])) :
|
|
16604
|
-
i.value ? (l(), c("div", sn, N(i.value), 1)) :
|
|
16603
|
+
}, null, 8, ["file-info"])) : h("", !0),
|
|
16604
|
+
i.value ? (l(), c("div", sn, N(i.value), 1)) : h("", !0)
|
|
16605
16605
|
], 64));
|
|
16606
16606
|
}
|
|
16607
16607
|
}), on = /* @__PURE__ */ j(fn, [["__scopeId", "data-v-ed49dd4d"]]), ln = { class: "quick-reply-buttons" }, rn = ["onClick"], cn = { class: "quick-reply-buttons__line" }, un = /* @__PURE__ */ J({
|
|
@@ -16630,7 +16630,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16630
16630
|
r[0] || (r[0] = o("hr", { class: "quick-reply-buttons__separator" }, null, -1)),
|
|
16631
16631
|
o("div", cn, [
|
|
16632
16632
|
o("span", {
|
|
16633
|
-
class:
|
|
16633
|
+
class: D(["quick-reply-buttons__icon pi pi-arrow-up-left", d == 2 && e.buttons.length > 3 ? "pi-list" : s[u.type]])
|
|
16634
16634
|
}, null, 2),
|
|
16635
16635
|
o("p", null, N(d == 2 && e.buttons.length > 3 ? "Смотреть все варианты" : u.text), 1)
|
|
16636
16636
|
])
|
|
@@ -16666,7 +16666,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16666
16666
|
class: "separated-quick-buttons__action"
|
|
16667
16667
|
}, [
|
|
16668
16668
|
o("span", {
|
|
16669
|
-
class:
|
|
16669
|
+
class: D(["pi pi-arrow-up-left", t[i.type]])
|
|
16670
16670
|
}, null, 2),
|
|
16671
16671
|
o("p", null, N(i.text), 1)
|
|
16672
16672
|
]))), 128))
|
|
@@ -16741,13 +16741,13 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16741
16741
|
}), C.value = null, t.wabaTemplates.forEach((G) => G.isSelected = !1), U.isSelected = !0, A.value = U, w.value = !1, i2();
|
|
16742
16742
|
}, p = () => {
|
|
16743
16743
|
a2(), t.wabaTemplates.forEach((U) => U.isSelected = !1);
|
|
16744
|
-
},
|
|
16744
|
+
}, y = O(() => d.value ? t.wabaTemplates.filter((U) => U.groupId === d.value.groupId) : t.wabaTemplates), k = O(() => {
|
|
16745
16745
|
const U = L.value.trim().toLowerCase();
|
|
16746
|
-
return
|
|
16747
|
-
}), _ = L4({}),
|
|
16748
|
-
S.value && (
|
|
16746
|
+
return y.value.filter((G) => G.title.toLowerCase().includes(U) || G.template.toLowerCase().includes(U));
|
|
16747
|
+
}), _ = L4({}), b = m(null), T = m(), v = m(""), E = m(""), x = m(""), S = m(!1), R = O(() => !!(S.value && (x.value == "grid" && E.value == "none" || E.value == "grid" && v.value == "none"))), X = O(() => !!(S.value && (v.value == "grid" && E.value == "none" || E.value == "grid" && x.value == "none"))), Q = () => {
|
|
16748
|
+
S.value && (E.value == "grid" ? n2() : x.value == "grid" && a2());
|
|
16749
16749
|
}, F = () => {
|
|
16750
|
-
S.value && (
|
|
16750
|
+
S.value && (E.value == "grid" ? i2() : v.value == "grid" && a2());
|
|
16751
16751
|
}, n2 = () => {
|
|
16752
16752
|
const U = document.getElementById("waba-template-selector-container-" + a);
|
|
16753
16753
|
U.style.setProperty("--chotto-waba-template-first-col-display", "grid"), U.style.setProperty("--chotto-waba-template-second-col-display", "none"), console.log(U, window.getComputedStyle(U).getPropertyValue("--waba-template-first-col-display")), d2();
|
|
@@ -16759,7 +16759,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16759
16759
|
U.style.setProperty("--chotto-waba-template-second-col-display", "grid"), U.style.setProperty("--chotto-waba-template-first-col-display", "none"), U.style.setProperty("--chotto-waba-template-third-col-display", "none"), d2();
|
|
16760
16760
|
}, d2 = () => {
|
|
16761
16761
|
const U = document.getElementById("waba-template-selector-container-" + a), G = window.getComputedStyle(U);
|
|
16762
|
-
|
|
16762
|
+
v.value = G.getPropertyValue("--chotto-waba-template-first-col-display"), E.value = G.getPropertyValue("--chotto-waba-template-second-col-display"), x.value = G.getPropertyValue("--chotto-waba-template-third-col-display");
|
|
16763
16763
|
}, W2 = (U) => {
|
|
16764
16764
|
_[U[1]] = U[0];
|
|
16765
16765
|
}, m2 = O(() => {
|
|
@@ -16798,13 +16798,13 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16798
16798
|
G > 700 && (S.value = !1), G < 700 && (S.value = !0);
|
|
16799
16799
|
});
|
|
16800
16800
|
return h2(() => {
|
|
16801
|
-
d2(),
|
|
16801
|
+
d2(), M(T) && y2.observe(M(T));
|
|
16802
16802
|
}), (U, G) => (l(), c("div", mn, [
|
|
16803
16803
|
o("div", {
|
|
16804
|
-
id: "waba-template-selector-container-" +
|
|
16804
|
+
id: "waba-template-selector-container-" + M(a),
|
|
16805
16805
|
ref_key: "refContainer",
|
|
16806
16806
|
ref: T,
|
|
16807
|
-
class:
|
|
16807
|
+
class: D({
|
|
16808
16808
|
"template-selector__container-inline": !e.elevatedWindow,
|
|
16809
16809
|
"template-selector__container-elevated": e.elevatedWindow
|
|
16810
16810
|
})
|
|
@@ -16816,13 +16816,13 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16816
16816
|
class: "pi pi-arrow-left",
|
|
16817
16817
|
onClick: Q
|
|
16818
16818
|
})
|
|
16819
|
-
])) :
|
|
16820
|
-
|
|
16819
|
+
])) : h("", !0),
|
|
16820
|
+
X.value ? (l(), c("button", bn, [
|
|
16821
16821
|
o("span", {
|
|
16822
16822
|
class: "pi pi-arrow-right",
|
|
16823
16823
|
onClick: F
|
|
16824
16824
|
})
|
|
16825
|
-
])) :
|
|
16825
|
+
])) : h("", !0)
|
|
16826
16826
|
]),
|
|
16827
16827
|
o("button", { class: "template-selector__button-close" }, [
|
|
16828
16828
|
o("span", {
|
|
@@ -16836,7 +16836,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16836
16836
|
o("ul", In, [
|
|
16837
16837
|
(l(!0), c(q, null, c2(e.groupTemplates, (K, A2) => (l(), c("li", {
|
|
16838
16838
|
key: A2,
|
|
16839
|
-
class:
|
|
16839
|
+
class: D(["template-selector__item-group", { "template-selector__item-selected": d.value === K }]),
|
|
16840
16840
|
onClick: p
|
|
16841
16841
|
}, [
|
|
16842
16842
|
o("label", kn, [
|
|
@@ -16845,7 +16845,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16845
16845
|
class: "template-selector__item-group-icon",
|
|
16846
16846
|
src: K.iconUrl,
|
|
16847
16847
|
alt: K.title
|
|
16848
|
-
}, null, 8, Tn)) :
|
|
16848
|
+
}, null, 8, Tn)) : h("", !0),
|
|
16849
16849
|
p2(o("input", {
|
|
16850
16850
|
id: A2,
|
|
16851
16851
|
"onUpdate:modelValue": G[0] || (G[0] = (I2) => d.value = I2),
|
|
@@ -16875,7 +16875,7 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16875
16875
|
k.value.length !== 0 ? (l(), c("ul", Vn, [
|
|
16876
16876
|
(l(!0), c(q, null, c2(k.value, (K, A2) => (l(), c("li", {
|
|
16877
16877
|
key: A2,
|
|
16878
|
-
class:
|
|
16878
|
+
class: D(["template-selector__item-template", { "template-selector__item-selected": K.isSelected }]),
|
|
16879
16879
|
onClick: (I2) => I(K)
|
|
16880
16880
|
}, [
|
|
16881
16881
|
o("div", Sn, [
|
|
@@ -16895,30 +16895,30 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16895
16895
|
}, [
|
|
16896
16896
|
m2.value.length > 0 ? (l(), c("div", Un, [
|
|
16897
16897
|
o("div", Bn, [
|
|
16898
|
-
A.value.type != "TEXT" ? (l(), z(
|
|
16898
|
+
A.value.type != "TEXT" ? (l(), z(M(on), {
|
|
16899
16899
|
key: 0,
|
|
16900
16900
|
type: A.value.type,
|
|
16901
16901
|
"template-id": A.value.templateId,
|
|
16902
16902
|
onFileSelected: r
|
|
16903
|
-
}, null, 8, ["type", "template-id"])) :
|
|
16903
|
+
}, null, 8, ["type", "template-id"])) : h("", !0),
|
|
16904
16904
|
o("div", Rn, [
|
|
16905
16905
|
(l(!0), c(q, null, c2(m2.value, (K, A2) => (l(), c(q, { key: A2 }, [
|
|
16906
|
-
typeof K == "string" ? (l(), c("span", Qn, N(K), 1)) : typeof K == "object" ? (l(), z(
|
|
16906
|
+
typeof K == "string" ? (l(), c("span", Qn, N(K), 1)) : typeof K == "object" ? (l(), z(M(It), {
|
|
16907
16907
|
key: 1,
|
|
16908
16908
|
index: K.index,
|
|
16909
16909
|
value: _[K.index] || "Заполнить",
|
|
16910
16910
|
"is-filled": !!_[K.index],
|
|
16911
|
-
onClick: (I2) =>
|
|
16911
|
+
onClick: (I2) => b.value = K.index,
|
|
16912
16912
|
onEdit: W2
|
|
16913
|
-
}, null, 8, ["index", "value", "is-filled", "onClick"])) :
|
|
16913
|
+
}, null, 8, ["index", "value", "is-filled", "onClick"])) : h("", !0)
|
|
16914
16914
|
], 64))), 128))
|
|
16915
16915
|
]),
|
|
16916
16916
|
G[2] || (G[2] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1)),
|
|
16917
|
-
A.value.buttons ? (l(), z(
|
|
16917
|
+
A.value.buttons ? (l(), z(M(dn), {
|
|
16918
16918
|
key: 1,
|
|
16919
16919
|
buttons: A.value.buttons,
|
|
16920
16920
|
onSelectAllVariants: g
|
|
16921
|
-
}, null, 8, ["buttons"])) :
|
|
16921
|
+
}, null, 8, ["buttons"])) : h("", !0)
|
|
16922
16922
|
])
|
|
16923
16923
|
])) : (l(), c("p", Fn, " Предпросмотр шаблона ")),
|
|
16924
16924
|
w.value ? (l(), c("div", Hn, [
|
|
@@ -16926,11 +16926,11 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16926
16926
|
class: "template-selector__semitransparent-overlay",
|
|
16927
16927
|
onClick: g
|
|
16928
16928
|
}),
|
|
16929
|
-
Y(
|
|
16929
|
+
Y(M(pn), {
|
|
16930
16930
|
buttons: A.value.buttons,
|
|
16931
16931
|
onSelectAllVariants: g
|
|
16932
16932
|
}, null, 8, ["buttons"])
|
|
16933
|
-
])) :
|
|
16933
|
+
])) : h("", !0)
|
|
16934
16934
|
], 4),
|
|
16935
16935
|
o("button", {
|
|
16936
16936
|
class: "template-selector__button-paste",
|
|
@@ -16954,22 +16954,22 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16954
16954
|
emits: ["update"],
|
|
16955
16955
|
setup(e, { emit: n }) {
|
|
16956
16956
|
const t = m(""), a = n, s = m(""), f = () => {
|
|
16957
|
-
const r =
|
|
16957
|
+
const r = M(t);
|
|
16958
16958
|
s.value = r.value, a("update", r.value);
|
|
16959
16959
|
}, i = () => {
|
|
16960
|
-
const r =
|
|
16960
|
+
const r = M(t);
|
|
16961
16961
|
r.value = "", s.value = "", a("update", ""), r.focus();
|
|
16962
16962
|
};
|
|
16963
16963
|
return (r, u) => (l(), c("div", Wn, [
|
|
16964
16964
|
o("div", Kn, [
|
|
16965
|
-
Y(
|
|
16965
|
+
Y(M(m9))
|
|
16966
16966
|
]),
|
|
16967
16967
|
o("input", {
|
|
16968
16968
|
ref_key: "refInput",
|
|
16969
16969
|
ref: t,
|
|
16970
16970
|
class: "chat-filter__input",
|
|
16971
16971
|
type: "text",
|
|
16972
|
-
placeholder: e.placeholder ? e.placeholder :
|
|
16972
|
+
placeholder: e.placeholder ? e.placeholder : M(z2)("component.ChatFilter.InputPlaceholder"),
|
|
16973
16973
|
onInput: f
|
|
16974
16974
|
}, null, 40, Jn),
|
|
16975
16975
|
s.value ? (l(), c("div", {
|
|
@@ -16977,8 +16977,8 @@ const ht = /* @__PURE__ */ j(Lt, [["render", mt]]), vt = { key: 0 }, Mt = { key:
|
|
|
16977
16977
|
class: "chat-filter__clear",
|
|
16978
16978
|
onClick: i
|
|
16979
16979
|
}, [
|
|
16980
|
-
Y(
|
|
16981
|
-
])) :
|
|
16980
|
+
Y(M(v4))
|
|
16981
|
+
])) : h("", !0)
|
|
16982
16982
|
]));
|
|
16983
16983
|
}
|
|
16984
16984
|
}, Xn = /* @__PURE__ */ j(Gn, [["__scopeId", "data-v-75aaeb0e"]]), D0 = ["read", "received", "sent"], E0 = (e) => {
|
|
@@ -17075,10 +17075,10 @@ const Sr = async () => {
|
|
|
17075
17075
|
a("select", { chat: t.chat, dialog: _ });
|
|
17076
17076
|
}, d = () => t.chat.isSelected ? "chat-item__selected" : "", A = (_) => _.isSelected ? "dialog__selected" : "", C = (_) => {
|
|
17077
17077
|
a("action", { chat: t.chat, ..._ });
|
|
17078
|
-
}, L = () => t.chat.dialogs ? [...t.chat.dialogs].sort((_,
|
|
17078
|
+
}, L = () => t.chat.dialogs ? [...t.chat.dialogs].sort((_, b) => Number(_["lastActivity.timestamp"]) > Number(b["lastActivity.timestamp"]) ? -1 : Number(_["lastActivity.timestamp"]) < Number(b["lastActivity.timestamp"]) ? 1 : (Number(_["lastActivity.timestamp"]) == Number(b["lastActivity.timestamp"]), 0)) : [], w = O(() => E0(t.chat["lastMessage.status"]));
|
|
17079
17079
|
let g;
|
|
17080
|
-
const I = m(0), p = [z2("component.ChatItem.typing") + ".", z2("component.ChatItem.typing") + "..", z2("component.ChatItem.typing") + "..."],
|
|
17081
|
-
|
|
17080
|
+
const I = m(0), p = [z2("component.ChatItem.typing") + ".", z2("component.ChatItem.typing") + "..", z2("component.ChatItem.typing") + "..."], y = O(() => t.chat.typing ? p[I.value] : t.chat.lastMessage);
|
|
17081
|
+
t2(
|
|
17082
17082
|
() => t.chat.typing,
|
|
17083
17083
|
() => {
|
|
17084
17084
|
t.chat.typing ? g = setInterval(() => {
|
|
@@ -17090,10 +17090,10 @@ const Sr = async () => {
|
|
|
17090
17090
|
const k = (_) => {
|
|
17091
17091
|
_.relatedTarget instanceof HTMLElement && _.relatedTarget.className == "context-menu__list" ? s.value = !0 : s.value = !1;
|
|
17092
17092
|
};
|
|
17093
|
-
return (_,
|
|
17093
|
+
return (_, b) => (l(), c("div", null, [
|
|
17094
17094
|
o("div", {
|
|
17095
|
-
class:
|
|
17096
|
-
onMouseenter:
|
|
17095
|
+
class: D(["chat-item__container", d()]),
|
|
17096
|
+
onMouseenter: b[2] || (b[2] = (T) => s.value = !0),
|
|
17097
17097
|
onMouseleave: k,
|
|
17098
17098
|
onClick: r
|
|
17099
17099
|
}, [
|
|
@@ -17108,11 +17108,11 @@ const Sr = async () => {
|
|
|
17108
17108
|
height: "48",
|
|
17109
17109
|
width: "48"
|
|
17110
17110
|
}, null, 8, ta)) : (l(), c("div", na, [
|
|
17111
|
-
Y(
|
|
17111
|
+
Y(M(h4))
|
|
17112
17112
|
]))
|
|
17113
17113
|
]),
|
|
17114
17114
|
o("div", aa, [
|
|
17115
|
-
Y(
|
|
17115
|
+
Y(M(u0), {
|
|
17116
17116
|
text: e.chat.name,
|
|
17117
17117
|
position: "bottom"
|
|
17118
17118
|
}, {
|
|
@@ -17121,68 +17121,68 @@ const Sr = async () => {
|
|
|
17121
17121
|
]),
|
|
17122
17122
|
_: 1
|
|
17123
17123
|
}, 8, ["text"]),
|
|
17124
|
-
Y(
|
|
17124
|
+
Y(M(u0), {
|
|
17125
17125
|
text: e.chat.lastMessage,
|
|
17126
17126
|
position: "bottom"
|
|
17127
17127
|
}, {
|
|
17128
17128
|
default: W(() => [
|
|
17129
|
-
e.chat.lastMessage || e.chat.typing ? (l(), c("div", fa, N(
|
|
17129
|
+
e.chat.lastMessage || e.chat.typing ? (l(), c("div", fa, N(y.value), 1)) : h("", !0)
|
|
17130
17130
|
]),
|
|
17131
17131
|
_: 1
|
|
17132
17132
|
}, 8, ["text"])
|
|
17133
17133
|
]),
|
|
17134
17134
|
o("div", ia, [
|
|
17135
|
-
e.chat["lastActivity.time"] && (!e.chat.actions || !s.value) ? (l(), c("div", oa, N(e.chat["lastActivity.time"]), 1)) :
|
|
17136
|
-
e.chat.countUnread > 0 ? (l(), c("div", la, N(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) :
|
|
17137
|
-
s.value && e.chat.actions ? (l(), z(
|
|
17135
|
+
e.chat["lastActivity.time"] && (!e.chat.actions || !s.value) ? (l(), c("div", oa, N(e.chat["lastActivity.time"]), 1)) : h("", !0),
|
|
17136
|
+
e.chat.countUnread > 0 ? (l(), c("div", la, N(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) : h("", !0),
|
|
17137
|
+
s.value && e.chat.actions ? (l(), z(M(P1), {
|
|
17138
17138
|
key: 2,
|
|
17139
17139
|
mode: "click",
|
|
17140
17140
|
"menu-side": "bottom",
|
|
17141
17141
|
actions: e.chat.actions,
|
|
17142
17142
|
onClick: C,
|
|
17143
17143
|
onButtonClick: i,
|
|
17144
|
-
onMenuMouseLeave:
|
|
17144
|
+
onMenuMouseLeave: b[0] || (b[0] = (T) => s.value = !1)
|
|
17145
17145
|
}, {
|
|
17146
|
-
default: W(() => [...
|
|
17146
|
+
default: W(() => [...b[3] || (b[3] = [
|
|
17147
17147
|
o("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
|
|
17148
17148
|
])]),
|
|
17149
17149
|
_: 1
|
|
17150
|
-
}, 8, ["actions"])) :
|
|
17150
|
+
}, 8, ["actions"])) : h("", !0),
|
|
17151
17151
|
e.chat.countUnread < 1 ? (l(), c("div", ra, [
|
|
17152
|
-
|
|
17152
|
+
M(D0).includes(e.chat["lastMessage.status"]) ? (l(), c("div", {
|
|
17153
17153
|
key: 0,
|
|
17154
|
-
class:
|
|
17154
|
+
class: D(["chat-item__status-message", w.value])
|
|
17155
17155
|
}, [
|
|
17156
|
-
e.chat["lastMessage.status"] !== "sent" ? (l(), c("span", ca)) :
|
|
17157
|
-
|
|
17158
|
-
], 2)) :
|
|
17159
|
-
e.chat.isFixedTop || e.chat.isFixedBottom ? (l(), c("span", ua)) :
|
|
17160
|
-
])) :
|
|
17156
|
+
e.chat["lastMessage.status"] !== "sent" ? (l(), c("span", ca)) : h("", !0),
|
|
17157
|
+
b[4] || (b[4] = o("span", { class: "pi pi-check" }, null, -1))
|
|
17158
|
+
], 2)) : h("", !0),
|
|
17159
|
+
e.chat.isFixedTop || e.chat.isFixedBottom ? (l(), c("span", ua)) : h("", !0)
|
|
17160
|
+
])) : h("", !0)
|
|
17161
17161
|
]),
|
|
17162
17162
|
e.chat.dialogs ? (l(), c("div", {
|
|
17163
17163
|
key: 0,
|
|
17164
17164
|
class: "chat-item__dialog-buttons",
|
|
17165
|
-
onClick:
|
|
17165
|
+
onClick: b[1] || (b[1] = (T) => a("expand", t.chat))
|
|
17166
17166
|
}, [
|
|
17167
|
-
e.chat.dialogsExpanded ?
|
|
17167
|
+
e.chat.dialogsExpanded ? h("", !0) : (l(), c("button", da, [...b[5] || (b[5] = [
|
|
17168
17168
|
o("span", {
|
|
17169
17169
|
id: "noSelectButton",
|
|
17170
17170
|
class: "pi pi-angle-down"
|
|
17171
17171
|
}, null, -1)
|
|
17172
17172
|
])])),
|
|
17173
|
-
e.chat.dialogsExpanded ? (l(), c("button", Aa, [...
|
|
17173
|
+
e.chat.dialogsExpanded ? (l(), c("button", Aa, [...b[6] || (b[6] = [
|
|
17174
17174
|
o("span", {
|
|
17175
17175
|
id: "noSelectButton",
|
|
17176
17176
|
class: "pi pi-angle-up"
|
|
17177
17177
|
}, null, -1)
|
|
17178
|
-
])])) :
|
|
17179
|
-
])) :
|
|
17178
|
+
])])) : h("", !0)
|
|
17179
|
+
])) : h("", !0)
|
|
17180
17180
|
], 34),
|
|
17181
17181
|
e.chat.dialogsExpanded ? (l(), c("div", Ca, [
|
|
17182
17182
|
(l(!0), c(q, null, c2(L(), (T) => (l(), c("div", {
|
|
17183
17183
|
key: T.dialogId,
|
|
17184
|
-
class:
|
|
17185
|
-
onClick: (
|
|
17184
|
+
class: D(["dialog__item", A(T)]),
|
|
17185
|
+
onClick: (v) => u(T)
|
|
17186
17186
|
}, [
|
|
17187
17187
|
T.icon ? (l(), c("img", {
|
|
17188
17188
|
key: 0,
|
|
@@ -17199,9 +17199,9 @@ const Sr = async () => {
|
|
|
17199
17199
|
key: 2,
|
|
17200
17200
|
class: "chat-item__unread",
|
|
17201
17201
|
style: C2(T.colorUnread ? { backgroundColor: T.colorUnread } : {})
|
|
17202
|
-
}, N(T.countUnread > 99 ? "99+" : T.countUnread), 5)) :
|
|
17202
|
+
}, N(T.countUnread > 99 ? "99+" : T.countUnread), 5)) : h("", !0)
|
|
17203
17203
|
], 10, ga))), 128))
|
|
17204
|
-
])) :
|
|
17204
|
+
])) : h("", !0)
|
|
17205
17205
|
]));
|
|
17206
17206
|
}
|
|
17207
17207
|
}), n3 = /* @__PURE__ */ j(Ma, [["__scopeId", "data-v-84c40597"]]), ya = { class: "chat-tabs__list" }, ba = ["aria-pressed", "onClick"], _a = {
|
|
@@ -17221,7 +17221,7 @@ const Sr = async () => {
|
|
|
17221
17221
|
return (n, t) => (l(), c("ul", ya, [
|
|
17222
17222
|
(l(!0), c(q, null, c2(e.tabs, (a) => (l(), c("li", {
|
|
17223
17223
|
key: a.id,
|
|
17224
|
-
class:
|
|
17224
|
+
class: D(["chat-tabs__item", { "chat-tabs__item--active": a.active }])
|
|
17225
17225
|
}, [
|
|
17226
17226
|
o("button", {
|
|
17227
17227
|
class: "chat-tabs__button",
|
|
@@ -17229,7 +17229,7 @@ const Sr = async () => {
|
|
|
17229
17229
|
onClick: (s) => n.$emit("tab-click", a.id)
|
|
17230
17230
|
}, [
|
|
17231
17231
|
v0(N(a.label) + " ", 1),
|
|
17232
|
-
a.count !== void 0 ? (l(), c("span", _a, N(a.count), 1)) :
|
|
17232
|
+
a.count !== void 0 ? (l(), c("span", _a, N(a.count), 1)) : h("", !0)
|
|
17233
17233
|
], 8, ba)
|
|
17234
17234
|
], 2))), 128))
|
|
17235
17235
|
]));
|
|
@@ -17251,9 +17251,9 @@ const Sr = async () => {
|
|
|
17251
17251
|
},
|
|
17252
17252
|
setup(e) {
|
|
17253
17253
|
const n = l2("chatAppId"), { getMessage: t, setMessageFile: a, resetMessageFile: s, setRecordingMessage: f } = R2(n), i = m(), r = m(0), u = m(0), d = m(0), A = m(0), C = O(() => {
|
|
17254
|
-
let x = A.value < 10 ? "0" + A.value : A.value, S = d.value < 10 ? "0" + d.value : d.value, R = u.value < 10 ? "0" + u.value : u.value,
|
|
17255
|
-
return x + ":" + S + ":" + R + ":" +
|
|
17256
|
-
}), L = m(""), w = m(!1), g = m(), I = m([]), p = m(),
|
|
17254
|
+
let x = A.value < 10 ? "0" + A.value : A.value, S = d.value < 10 ? "0" + d.value : d.value, R = u.value < 10 ? "0" + u.value : u.value, X = r.value < 10 ? "00" + r.value : r.value < 100 ? "0" + r.value : r.value;
|
|
17255
|
+
return x + ":" + S + ":" + R + ":" + X;
|
|
17256
|
+
}), L = m(""), w = m(!1), g = m(), I = m([]), p = m(), y = m(), k = e, _ = async () => {
|
|
17257
17257
|
if (!t().file && k.state == "active") {
|
|
17258
17258
|
const x = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
|
|
17259
17259
|
i.value = setInterval(() => {
|
|
@@ -17262,20 +17262,20 @@ const Sr = async () => {
|
|
|
17262
17262
|
I.value.push(S.data);
|
|
17263
17263
|
};
|
|
17264
17264
|
}
|
|
17265
|
-
},
|
|
17266
|
-
|
|
17265
|
+
}, b = () => {
|
|
17266
|
+
v(), p.value = void 0;
|
|
17267
17267
|
}, T = () => {
|
|
17268
17268
|
g.value && (g.value.stop(), g.value.onstop = async () => {
|
|
17269
17269
|
const x = new File(I.value, "voicemessage.mp3", { type: "audio/*" }), S = URL.createObjectURL(x);
|
|
17270
17270
|
p.value = S, L.value = "uploading", await Y1(k.filebumpUrl, x).then((R) => {
|
|
17271
17271
|
if (L.value = R.status, R.status == "success") {
|
|
17272
|
-
const
|
|
17273
|
-
|
|
17272
|
+
const X = document.getElementById("chat-input-file-line-" + n);
|
|
17273
|
+
X && (X.style.display = "inherit"), a({
|
|
17274
17274
|
url: R.url,
|
|
17275
17275
|
name: R.name,
|
|
17276
17276
|
size: R.size,
|
|
17277
17277
|
type: R.type
|
|
17278
|
-
}), R.preview && (
|
|
17278
|
+
}), R.preview && (y.value = {
|
|
17279
17279
|
previewUrl: R.preview.previewUrl,
|
|
17280
17280
|
isImage: R.preview.isImage,
|
|
17281
17281
|
isVideo: R.preview.isVideo,
|
|
@@ -17285,27 +17285,27 @@ const Sr = async () => {
|
|
|
17285
17285
|
});
|
|
17286
17286
|
}
|
|
17287
17287
|
});
|
|
17288
|
-
}),
|
|
17289
|
-
},
|
|
17288
|
+
}), v();
|
|
17289
|
+
}, v = () => {
|
|
17290
17290
|
clearInterval(i.value), r.value = 0, u.value = 0, d.value = 0, A.value = 0, f(!1), w.value = !1, g.value = void 0, I.value = [];
|
|
17291
|
-
},
|
|
17291
|
+
}, E = () => {
|
|
17292
17292
|
const x = document.getElementById("chat-input-file-line-" + n);
|
|
17293
|
-
x && (x.style.display = "none"), s(),
|
|
17293
|
+
x && (x.style.display = "none"), s(), y.value = void 0;
|
|
17294
17294
|
};
|
|
17295
|
-
return
|
|
17295
|
+
return t2(
|
|
17296
17296
|
() => t().file,
|
|
17297
17297
|
() => {
|
|
17298
|
-
t().file || (
|
|
17298
|
+
t().file || (y.value = void 0);
|
|
17299
17299
|
}
|
|
17300
17300
|
), (x, S) => (l(), c("div", ka, [
|
|
17301
17301
|
L.value === "uploading" ? (l(), c("div", Ta, [...S[0] || (S[0] = [
|
|
17302
17302
|
o("p", null, "Загрузка файла...", -1)
|
|
17303
|
-
])])) :
|
|
17303
|
+
])])) : h("", !0),
|
|
17304
17304
|
w.value && L.value != "uploading" ? (l(), c("div", Na, [
|
|
17305
17305
|
S[3] || (S[3] = o("span", { class: "audio-recorder__recording-icon pi pi-circle-fill" }, null, -1)),
|
|
17306
17306
|
o("button", {
|
|
17307
17307
|
class: "audio-recorder__button audio-recorder__button-record",
|
|
17308
|
-
onClick:
|
|
17308
|
+
onClick: b
|
|
17309
17309
|
}, [...S[1] || (S[1] = [
|
|
17310
17310
|
o("span", { class: "pi pi-trash" }, null, -1)
|
|
17311
17311
|
])]),
|
|
@@ -17316,24 +17316,24 @@ const Sr = async () => {
|
|
|
17316
17316
|
o("div", { class: "audio-recorder__stop" }, null, -1)
|
|
17317
17317
|
])]),
|
|
17318
17318
|
o("span", xa, N(C.value), 1)
|
|
17319
|
-
])) :
|
|
17320
|
-
!w.value && L.value != "uploading" && !
|
|
17319
|
+
])) : h("", !0),
|
|
17320
|
+
!w.value && L.value != "uploading" && !M(t)().isRecording ? (l(), c("button", {
|
|
17321
17321
|
key: 2,
|
|
17322
|
-
class:
|
|
17322
|
+
class: D(["audio-recorder__button", { "audio-recorder__button-disabled": e.state == "disabled" || M(t)().file }]),
|
|
17323
17323
|
onClick: _
|
|
17324
17324
|
}, [...S[4] || (S[4] = [
|
|
17325
17325
|
o("span", { class: "pi pi-microphone" }, null, -1)
|
|
17326
|
-
])], 2)) :
|
|
17327
|
-
|
|
17326
|
+
])], 2)) : h("", !0),
|
|
17327
|
+
M(t)().file ? (l(), z(D2, {
|
|
17328
17328
|
key: 3,
|
|
17329
|
-
to: "#chat-input-file-line-" +
|
|
17329
|
+
to: "#chat-input-file-line-" + M(n)
|
|
17330
17330
|
}, [
|
|
17331
|
-
|
|
17331
|
+
y.value ? (l(), z(M(K1), {
|
|
17332
17332
|
key: 0,
|
|
17333
|
-
"file-info":
|
|
17334
|
-
onReset:
|
|
17335
|
-
}, null, 8, ["file-info"])) :
|
|
17336
|
-
], 8, ["to"])) :
|
|
17333
|
+
"file-info": y.value,
|
|
17334
|
+
onReset: E
|
|
17335
|
+
}, null, 8, ["file-info"])) : h("", !0)
|
|
17336
|
+
], 8, ["to"])) : h("", !0)
|
|
17337
17337
|
]));
|
|
17338
17338
|
}
|
|
17339
17339
|
}), zr = /* @__PURE__ */ j(Da, [["__scopeId", "data-v-02a0cf24"]]), Ea = {
|
|
@@ -17365,19 +17365,19 @@ const Sr = async () => {
|
|
|
17365
17365
|
const t = e, a = l2("chatAppId"), { getMessage: s } = R2(a), f = n, r = m(t.channels.find((d) => d.type === "default")), u = (d) => {
|
|
17366
17366
|
r.value = d, f("selectChannel", r.value);
|
|
17367
17367
|
};
|
|
17368
|
-
return (d, A) =>
|
|
17368
|
+
return (d, A) => M(s)().isRecording ? h("", !0) : (l(), c("div", {
|
|
17369
17369
|
key: 0,
|
|
17370
|
-
class:
|
|
17370
|
+
class: D(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
|
|
17371
17371
|
}, [
|
|
17372
17372
|
r.value ? (l(), c("div", Ea, [
|
|
17373
17373
|
r.value.icon ? (l(), c("img", {
|
|
17374
17374
|
key: 0,
|
|
17375
17375
|
src: r.value.icon,
|
|
17376
17376
|
class: "channels__icon"
|
|
17377
|
-
}, null, 8, Va)) :
|
|
17377
|
+
}, null, 8, Va)) : h("", !0),
|
|
17378
17378
|
o("span", ja, N(r.value.title), 1)
|
|
17379
|
-
])) : (l(), c("span", Sa, N(
|
|
17380
|
-
Y(
|
|
17379
|
+
])) : (l(), c("span", Sa, N(M(z2)("component.ChannelSelector.Placeholder")), 1)),
|
|
17380
|
+
Y(M(P1), {
|
|
17381
17381
|
actions: e.channels,
|
|
17382
17382
|
mode: e.mode,
|
|
17383
17383
|
"menu-side": "top",
|
|
@@ -17386,7 +17386,7 @@ const Sr = async () => {
|
|
|
17386
17386
|
}, {
|
|
17387
17387
|
default: W(() => [
|
|
17388
17388
|
o("span", {
|
|
17389
|
-
class:
|
|
17389
|
+
class: D(["pi pi-list channels__trigger", { channels__disabled: e.state == "disabled" }])
|
|
17390
17390
|
}, null, 2)
|
|
17391
17391
|
]),
|
|
17392
17392
|
_: 1
|
|
@@ -17445,7 +17445,7 @@ const Sr = async () => {
|
|
|
17445
17445
|
key: 0,
|
|
17446
17446
|
class: "pi pi-arrow-left chat-info__return-button",
|
|
17447
17447
|
onClick: r[0] || (r[0] = (u) => a("returnToChats"))
|
|
17448
|
-
})) :
|
|
17448
|
+
})) : h("", !0),
|
|
17449
17449
|
o("div", $a, [
|
|
17450
17450
|
t.chat.avatar ? (l(), c("img", {
|
|
17451
17451
|
key: 0,
|
|
@@ -17453,30 +17453,30 @@ const Sr = async () => {
|
|
|
17453
17453
|
width: "40",
|
|
17454
17454
|
height: "40"
|
|
17455
17455
|
}, null, 8, Ua)) : (l(), c("span", Ba, [
|
|
17456
|
-
Y(
|
|
17456
|
+
Y(M(h4), { size: 40 })
|
|
17457
17457
|
]))
|
|
17458
17458
|
]),
|
|
17459
17459
|
o("div", Ra, [
|
|
17460
17460
|
o("span", Qa, [
|
|
17461
17461
|
v0(N(e.chat.name) + " ", 1),
|
|
17462
|
-
e.additionalTitle ? (l(), c("span", Fa, N(e.additionalTitle), 1)) :
|
|
17462
|
+
e.additionalTitle ? (l(), c("span", Fa, N(e.additionalTitle), 1)) : h("", !0)
|
|
17463
17463
|
]),
|
|
17464
17464
|
f.value ? (l(), c("p", Ha, [
|
|
17465
17465
|
r2(i.$slots, "img-description", {}, void 0, !0),
|
|
17466
17466
|
v0(" " + N(f.value), 1)
|
|
17467
|
-
])) :
|
|
17467
|
+
])) : h("", !0)
|
|
17468
17468
|
]),
|
|
17469
17469
|
o("div", Ya, [
|
|
17470
17470
|
r2(i.$slots, "actions", {}, void 0, !0)
|
|
17471
17471
|
])
|
|
17472
17472
|
]),
|
|
17473
17473
|
o("div", {
|
|
17474
|
-
id: "chat-info-search-panel-" +
|
|
17474
|
+
id: "chat-info-search-panel-" + M(s),
|
|
17475
17475
|
class: "chat-info__search-panel"
|
|
17476
17476
|
}, [
|
|
17477
17477
|
r2(i.$slots, "search", {}, void 0, !0)
|
|
17478
17478
|
], 8, Pa)
|
|
17479
|
-
])) :
|
|
17479
|
+
])) : h("", !0);
|
|
17480
17480
|
}
|
|
17481
17481
|
}, Ur = /* @__PURE__ */ j(qa, [["__scopeId", "data-v-f0aa6ff3"]]), Wa = { class: "chat-panel" }, Ka = { class: "chat-panel__header" }, Ja = { class: "chat-panel__button-close-cross" }, Ga = {
|
|
17482
17482
|
key: 0,
|
|
@@ -17505,12 +17505,12 @@ const Sr = async () => {
|
|
|
17505
17505
|
onClick: a[0] || (a[0] = (s) => t.$emit("close-panel"))
|
|
17506
17506
|
}, [
|
|
17507
17507
|
o("span", Ja, [
|
|
17508
|
-
Y(
|
|
17508
|
+
Y(M(v4))
|
|
17509
17509
|
])
|
|
17510
17510
|
]),
|
|
17511
17511
|
e.titleEnabled ? (l(), c("div", Ga, [
|
|
17512
|
-
e.title ? (l(), c("span", Xa, N(e.title), 1)) :
|
|
17513
|
-
])) :
|
|
17512
|
+
e.title ? (l(), c("span", Xa, N(e.title), 1)) : h("", !0)
|
|
17513
|
+
])) : h("", !0)
|
|
17514
17514
|
]),
|
|
17515
17515
|
o("div", null, [
|
|
17516
17516
|
r2(t.$slots, "content", {}, void 0, !0)
|
|
@@ -17542,24 +17542,24 @@ const Sr = async () => {
|
|
|
17542
17542
|
},
|
|
17543
17543
|
emits: ["close", "open-crm", "select-attribute-channel"],
|
|
17544
17544
|
setup(e, { emit: n }) {
|
|
17545
|
-
var I, p,
|
|
17546
|
-
const t = e, a = n, s = m(((
|
|
17545
|
+
var I, p, y;
|
|
17546
|
+
const t = e, a = n, s = m(((y = (p = (I = t.contact) == null ? void 0 : I.attributes) == null ? void 0 : p[0]) == null ? void 0 : y.id) || ""), f = m(t.channels[0] || null), i = m(!1), r = (k) => {
|
|
17547
17547
|
f.value = k, i.value = !1, console.log(`Выбран канал связи: ${k.title}`), a("select-attribute-channel", {
|
|
17548
17548
|
attributeId: s.value,
|
|
17549
17549
|
channelId: k.channelId
|
|
17550
17550
|
});
|
|
17551
17551
|
}, u = (k) => (k == null ? void 0 : k.replace(/\D/g, "")) || "", d = O(() => {
|
|
17552
17552
|
var k, _;
|
|
17553
|
-
return (_ = (k = t.contact) == null ? void 0 : k.attributes) == null ? void 0 : _.find((
|
|
17553
|
+
return (_ = (k = t.contact) == null ? void 0 : k.attributes) == null ? void 0 : _.find((b) => b.id === s.value);
|
|
17554
17554
|
}), A = O(() => {
|
|
17555
17555
|
if (f.value)
|
|
17556
17556
|
return f.value;
|
|
17557
17557
|
if (!d.value) return t.channels[0] || null;
|
|
17558
17558
|
const k = u(d.value.value);
|
|
17559
|
-
return k ? t.channels.find((
|
|
17559
|
+
return k ? t.channels.find((b) => {
|
|
17560
17560
|
var S, R;
|
|
17561
|
-
const T = ((S =
|
|
17562
|
-
return
|
|
17561
|
+
const T = ((S = b.title) == null ? void 0 : S.toLowerCase()) || "", v = ((R = b.channelId) == null ? void 0 : R.toLowerCase()) || "", E = T.includes(k), x = ["whatsapp", "waba", "telegram"].some((X) => v.includes(X));
|
|
17562
|
+
return E && x;
|
|
17563
17563
|
}) || t.channels[0] || { title: "default", channelId: "fallback" } : t.channels[0] || null;
|
|
17564
17564
|
}), C = O(() => t.channels), L = (k) => k ? k.includes("whatsapp") || k.includes("waba") ? x9 : k.includes("telegram") ? I9 : null : null, w = (k) => !t.currentDialog || !Object.keys(t.currentDialog) ? !1 : t.currentDialog.attributeId === k.id, g = (k) => {
|
|
17565
17565
|
a("select-attribute-channel", {
|
|
@@ -17567,20 +17567,20 @@ const Sr = async () => {
|
|
|
17567
17567
|
channelId: f.value.channelId
|
|
17568
17568
|
});
|
|
17569
17569
|
};
|
|
17570
|
-
return
|
|
17570
|
+
return t2(
|
|
17571
17571
|
() => t.contact,
|
|
17572
17572
|
() => {
|
|
17573
17573
|
var k, _;
|
|
17574
|
-
(_ = (k = t.contact) == null ? void 0 : k.attributes) != null && _.length ? s.value && t.contact.attributes.some((
|
|
17574
|
+
(_ = (k = t.contact) == null ? void 0 : k.attributes) != null && _.length ? s.value && t.contact.attributes.some((b) => b.id === s.value) || (s.value = t.contact.attributes[0].id) : s.value = "";
|
|
17575
17575
|
},
|
|
17576
17576
|
{ immediate: !0 }
|
|
17577
17577
|
), (k, _) => {
|
|
17578
|
-
var
|
|
17578
|
+
var b, T, v, E;
|
|
17579
17579
|
return l(), c("div", ts, [
|
|
17580
17580
|
o("div", ns, [
|
|
17581
|
-
(l(!0), c(q, null, c2(((
|
|
17581
|
+
(l(!0), c(q, null, c2(((b = e.contact) == null ? void 0 : b.attributes) || [], (x, S) => (l(), c("div", {
|
|
17582
17582
|
key: x.id,
|
|
17583
|
-
class:
|
|
17583
|
+
class: D(["contact-info__attribute-item", { "contact-info__attribute-item--current-chat": w(x) }])
|
|
17584
17584
|
}, [
|
|
17585
17585
|
p2(o("input", {
|
|
17586
17586
|
id: `attr-${S}`,
|
|
@@ -17596,11 +17596,11 @@ const Sr = async () => {
|
|
|
17596
17596
|
}, [
|
|
17597
17597
|
o("span", fs, [
|
|
17598
17598
|
o("span", is, [
|
|
17599
|
-
s.value === x.id ? (l(), z(
|
|
17599
|
+
s.value === x.id ? (l(), z(M(s9), { key: 0 })) : h("", !0)
|
|
17600
17600
|
])
|
|
17601
17601
|
]),
|
|
17602
17602
|
v0(" " + N(x.value) + " ", 1),
|
|
17603
|
-
w(x) ? (l(), c("span", os, " Текущий чат ")) :
|
|
17603
|
+
w(x) ? (l(), c("span", os, " Текущий чат ")) : h("", !0)
|
|
17604
17604
|
], 8, ss)
|
|
17605
17605
|
], 2))), 128))
|
|
17606
17606
|
]),
|
|
@@ -17618,14 +17618,14 @@ const Sr = async () => {
|
|
|
17618
17618
|
alt: A.value.title,
|
|
17619
17619
|
width: "22",
|
|
17620
17620
|
height: "22"
|
|
17621
|
-
}, null, 8, us)) : (l(), z(e0(L((
|
|
17621
|
+
}, null, 8, us)) : (l(), z(e0(L((v = A.value) == null ? void 0 : v.channelId)), {
|
|
17622
17622
|
key: 1,
|
|
17623
17623
|
class: "contact-info__icon-component"
|
|
17624
17624
|
}))
|
|
17625
17625
|
]),
|
|
17626
|
-
o("span", null, N((
|
|
17626
|
+
o("span", null, N((E = A.value) == null ? void 0 : E.title), 1),
|
|
17627
17627
|
o("div", {
|
|
17628
|
-
class:
|
|
17628
|
+
class: D(["contact-info__arrow", { "contact-info__arrow--open": i.value }])
|
|
17629
17629
|
}, null, 2)
|
|
17630
17630
|
]),
|
|
17631
17631
|
i.value ? (l(), c("div", ds, [
|
|
@@ -17648,7 +17648,7 @@ const Sr = async () => {
|
|
|
17648
17648
|
]),
|
|
17649
17649
|
o("span", null, N(x.title), 1)
|
|
17650
17650
|
], 8, As))), 128))
|
|
17651
|
-
])) :
|
|
17651
|
+
])) : h("", !0)
|
|
17652
17652
|
])
|
|
17653
17653
|
]),
|
|
17654
17654
|
_[5] || (_[5] = o("div", { class: "contact-info__divider" }, null, -1)),
|
|
@@ -17657,7 +17657,7 @@ const Sr = async () => {
|
|
|
17657
17657
|
class: "contact-info__button",
|
|
17658
17658
|
onClick: _[2] || (_[2] = (x) => k.$emit("open-crm"))
|
|
17659
17659
|
}, [
|
|
17660
|
-
Y(
|
|
17660
|
+
Y(M(u9)),
|
|
17661
17661
|
_[4] || (_[4] = v0(" Открыть контакт в CRM ", -1))
|
|
17662
17662
|
])
|
|
17663
17663
|
])
|
|
@@ -17697,7 +17697,7 @@ const Sr = async () => {
|
|
|
17697
17697
|
selected: C.default === !0
|
|
17698
17698
|
}, N(C.name), 9, hs))), 128))
|
|
17699
17699
|
], 32)
|
|
17700
|
-
])) :
|
|
17700
|
+
])) : h("", !0);
|
|
17701
17701
|
}
|
|
17702
17702
|
}, Qr = /* @__PURE__ */ j(vs, [["__scopeId", "data-v-c6c5d7cb"]]), Ms = {
|
|
17703
17703
|
key: 0,
|
|
@@ -17725,11 +17725,11 @@ const Sr = async () => {
|
|
|
17725
17725
|
height: "48",
|
|
17726
17726
|
width: "48"
|
|
17727
17727
|
}, null, 8, bs)
|
|
17728
|
-
])) :
|
|
17728
|
+
])) : h("", !0),
|
|
17729
17729
|
o("h2", _s, N(e.user.name), 1),
|
|
17730
17730
|
o("p", ws, N(e.user.email), 1),
|
|
17731
17731
|
o("p", Is, N(e.user.phone), 1)
|
|
17732
|
-
])) :
|
|
17732
|
+
])) : h("", !0);
|
|
17733
17733
|
}
|
|
17734
17734
|
}, Fr = /* @__PURE__ */ j(ks, [["__scopeId", "data-v-8ff961d8"]]), Ts = {
|
|
17735
17735
|
key: 0,
|
|
@@ -17780,34 +17780,34 @@ const Sr = async () => {
|
|
|
17780
17780
|
const L = document.getElementById("chat-input-file-line-" + n);
|
|
17781
17781
|
L && (L.style.display = "none"), u.value = void 0;
|
|
17782
17782
|
};
|
|
17783
|
-
return
|
|
17783
|
+
return t2(
|
|
17784
17784
|
() => t().file,
|
|
17785
17785
|
() => {
|
|
17786
17786
|
t().file || (u.value = void 0);
|
|
17787
17787
|
}
|
|
17788
17788
|
), (L, w) => (l(), c(q, null, [
|
|
17789
|
-
|
|
17789
|
+
M(t)().isRecording ? h("", !0) : (l(), c("div", Ts, [
|
|
17790
17790
|
r.value != "uploading" ? (l(), c("button", {
|
|
17791
17791
|
key: 0,
|
|
17792
|
-
class:
|
|
17792
|
+
class: D(["video-recorder__button", { "video-recorder__button-disabled": e.state == "disabled" || M(t)().file }]),
|
|
17793
17793
|
onClick: A
|
|
17794
17794
|
}, [...w[0] || (w[0] = [
|
|
17795
17795
|
o("span", { class: "pi pi-video" }, null, -1)
|
|
17796
|
-
])], 2)) :
|
|
17796
|
+
])], 2)) : h("", !0)
|
|
17797
17797
|
])),
|
|
17798
17798
|
r.value === "uploading" ? (l(), c("div", Ns, [...w[1] || (w[1] = [
|
|
17799
17799
|
o("p", null, "Загрузка файла...", -1)
|
|
17800
|
-
])])) :
|
|
17801
|
-
|
|
17800
|
+
])])) : h("", !0),
|
|
17801
|
+
M(t)().file ? (l(), z(D2, {
|
|
17802
17802
|
key: 2,
|
|
17803
|
-
to: "#chat-input-file-line-" +
|
|
17803
|
+
to: "#chat-input-file-line-" + M(n)
|
|
17804
17804
|
}, [
|
|
17805
|
-
u.value ? (l(), z(
|
|
17805
|
+
u.value ? (l(), z(M(K1), {
|
|
17806
17806
|
key: 0,
|
|
17807
17807
|
"file-info": u.value,
|
|
17808
17808
|
onReset: C
|
|
17809
|
-
}, null, 8, ["file-info"])) :
|
|
17810
|
-
], 8, ["to"])) :
|
|
17809
|
+
}, null, 8, ["file-info"])) : h("", !0)
|
|
17810
|
+
], 8, ["to"])) : h("", !0)
|
|
17811
17811
|
], 64));
|
|
17812
17812
|
}
|
|
17813
17813
|
}), Hr = /* @__PURE__ */ j(xs, [["__scopeId", "data-v-775cc58f"]]), Ds = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Es = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", d3 = "numeric", A3 = "ascii", C3 = "alpha", R0 = "asciinumeric", $0 = "alphanumeric", g3 = "domain", $4 = "emoji", Vs = "scheme", js = "slashscheme", a3 = "whitespace";
|
|
@@ -17951,7 +17951,7 @@ x2.prototype = {
|
|
|
17951
17951
|
return s.j[e] = i, i;
|
|
17952
17952
|
}
|
|
17953
17953
|
};
|
|
17954
|
-
const
|
|
17954
|
+
const e2 = (e, n, t, a, s) => e.ta(n, t, a, s), g2 = (e, n, t, a, s) => e.tr(n, t, a, s), i4 = (e, n, t, a, s) => e.ts(n, t, a, s), V = (e, n, t, a, s) => e.tt(n, t, a, s), i0 = "WORD", L3 = "UWORD", U4 = "ASCIINUMERICAL", B4 = "ALPHANUMERICAL", G0 = "LOCALHOST", p3 = "TLD", m3 = "UTLD", g1 = "SCHEME", h0 = "SLASH_SCHEME", j3 = "NUM", h3 = "WS", S3 = "NL", Q0 = "OPENBRACE", F0 = "CLOSEBRACE", m1 = "OPENBRACKET", h1 = "CLOSEBRACKET", v1 = "OPENPAREN", M1 = "CLOSEPAREN", y1 = "OPENANGLEBRACKET", b1 = "CLOSEANGLEBRACKET", _1 = "FULLWIDTHLEFTPAREN", w1 = "FULLWIDTHRIGHTPAREN", I1 = "LEFTCORNERBRACKET", k1 = "RIGHTCORNERBRACKET", T1 = "LEFTWHITECORNERBRACKET", N1 = "RIGHTWHITECORNERBRACKET", x1 = "FULLWIDTHLESSTHAN", D1 = "FULLWIDTHGREATERTHAN", E1 = "AMPERSAND", V1 = "APOSTROPHE", j1 = "ASTERISK", r0 = "AT", S1 = "BACKSLASH", Z1 = "BACKTICK", O1 = "CARET", c0 = "COLON", Z3 = "COMMA", z1 = "DOLLAR", G2 = "DOT", $1 = "EQUALS", O3 = "EXCLAMATION", O2 = "HYPHEN", H0 = "PERCENT", U1 = "PIPE", B1 = "PLUS", R1 = "POUND", Y0 = "QUERY", z3 = "QUOTE", R4 = "FULLWIDTHMIDDLEDOT", $3 = "SEMI", X2 = "SLASH", P0 = "TILDE", Q1 = "UNDERSCORE", Q4 = "EMOJI", F1 = "SYM";
|
|
17955
17955
|
var F4 = /* @__PURE__ */ Object.freeze({
|
|
17956
17956
|
__proto__: null,
|
|
17957
17957
|
ALPHANUMERICAL: B4,
|
|
@@ -18374,34 +18374,34 @@ function Rs({
|
|
|
18374
18374
|
groups: e
|
|
18375
18375
|
}) {
|
|
18376
18376
|
const n = e.domain.concat([E1, j1, r0, S1, Z1, O1, z1, $1, O2, j3, H0, U1, B1, R1, X2, F1, P0, Q1]), t = [V1, c0, Z3, G2, O3, H0, Y0, z3, $3, y1, b1, Q0, F0, h1, m1, v1, M1, _1, w1, I1, k1, T1, N1, x1, D1], a = [E1, V1, j1, S1, Z1, O1, z1, $1, O2, Q0, F0, H0, U1, B1, R1, Y0, X2, F1, P0, Q1], s = Z2(), f = V(s, P0);
|
|
18377
|
-
|
|
18377
|
+
e2(f, a, f), e2(f, e.domain, f);
|
|
18378
18378
|
const i = Z2(), r = Z2(), u = Z2();
|
|
18379
|
-
|
|
18379
|
+
e2(s, e.domain, i), e2(s, e.scheme, r), e2(s, e.slashscheme, u), e2(i, a, f), e2(i, e.domain, i);
|
|
18380
18380
|
const d = V(i, r0);
|
|
18381
18381
|
V(f, r0, d), V(r, r0, d), V(u, r0, d);
|
|
18382
18382
|
const A = V(f, G2);
|
|
18383
|
-
|
|
18383
|
+
e2(A, a, f), e2(A, e.domain, f);
|
|
18384
18384
|
const C = Z2();
|
|
18385
|
-
|
|
18385
|
+
e2(d, e.domain, C), e2(C, e.domain, C);
|
|
18386
18386
|
const L = V(C, G2);
|
|
18387
|
-
|
|
18387
|
+
e2(L, e.domain, C);
|
|
18388
18388
|
const w = Z2(c4);
|
|
18389
|
-
|
|
18389
|
+
e2(L, e.tld, w), e2(L, e.utld, w), V(d, G0, w);
|
|
18390
18390
|
const g = V(C, O2);
|
|
18391
|
-
V(g, O2, g),
|
|
18391
|
+
V(g, O2, g), e2(g, e.domain, C), e2(w, e.domain, C), V(w, G2, L), V(w, O2, g);
|
|
18392
18392
|
const I = V(w, c0);
|
|
18393
|
-
|
|
18394
|
-
const p = V(i, O2),
|
|
18395
|
-
V(p, O2, p),
|
|
18393
|
+
e2(I, e.numeric, c4);
|
|
18394
|
+
const p = V(i, O2), y = V(i, G2);
|
|
18395
|
+
V(p, O2, p), e2(p, e.domain, i), e2(y, a, f), e2(y, e.domain, i);
|
|
18396
18396
|
const k = Z2(u1);
|
|
18397
|
-
|
|
18398
|
-
const _ = V(k, c0),
|
|
18399
|
-
|
|
18400
|
-
const T = Z2(u1),
|
|
18401
|
-
|
|
18402
|
-
const
|
|
18403
|
-
|
|
18404
|
-
const
|
|
18397
|
+
e2(y, e.tld, k), e2(y, e.utld, k), e2(k, e.domain, i), e2(k, a, f), V(k, G2, y), V(k, O2, p), V(k, r0, d);
|
|
18398
|
+
const _ = V(k, c0), b = Z2(u1);
|
|
18399
|
+
e2(_, e.numeric, b);
|
|
18400
|
+
const T = Z2(u1), v = Z2();
|
|
18401
|
+
e2(T, n, T), e2(T, t, v), e2(v, n, T), e2(v, t, v), V(k, X2, T), V(b, X2, T);
|
|
18402
|
+
const E = V(r, c0), x = V(u, c0), S = V(x, X2), R = V(S, X2);
|
|
18403
|
+
e2(r, e.domain, i), V(r, G2, y), V(r, O2, p), e2(u, e.domain, i), V(u, G2, y), V(u, O2, p), e2(E, e.domain, T), V(E, X2, T), V(E, Y0, T), e2(R, e.domain, T), e2(R, n, T), V(R, X2, T);
|
|
18404
|
+
const X = [
|
|
18405
18405
|
[Q0, F0],
|
|
18406
18406
|
// {}
|
|
18407
18407
|
[m1, h1],
|
|
@@ -18419,13 +18419,13 @@ function Rs({
|
|
|
18419
18419
|
[x1, D1]
|
|
18420
18420
|
// <>
|
|
18421
18421
|
];
|
|
18422
|
-
for (let Q = 0; Q <
|
|
18423
|
-
const [F, n2] =
|
|
18424
|
-
V(
|
|
18422
|
+
for (let Q = 0; Q < X.length; Q++) {
|
|
18423
|
+
const [F, n2] = X[Q], i2 = V(T, F);
|
|
18424
|
+
V(v, F, i2), V(i2, n2, T);
|
|
18425
18425
|
const a2 = Z2(u1);
|
|
18426
|
-
|
|
18426
|
+
e2(i2, n, a2);
|
|
18427
18427
|
const d2 = Z2();
|
|
18428
|
-
|
|
18428
|
+
e2(i2, t), e2(a2, n, a2), e2(a2, t, d2), e2(d2, n, a2), e2(d2, t, d2), V(a2, n2, T), V(d2, n2, T);
|
|
18429
18429
|
}
|
|
18430
18430
|
return V(s, G0, k), V(s, S3, Bs), {
|
|
18431
18431
|
start: s,
|
|
@@ -18575,32 +18575,32 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18575
18575
|
}, r = n, u = m(), d = m(!1), A = m(0), C = m(0), L = m(!1), w = m(!1), g = m(!1), I = O(() => s.message.text ? q2(s.message.text) : ""), p = (Q) => {
|
|
18576
18576
|
r("reply", Q);
|
|
18577
18577
|
};
|
|
18578
|
-
function
|
|
18578
|
+
function y(Q) {
|
|
18579
18579
|
Q.preventDefault(), Q.target && "href" in Q.target && window.open(Q.target.href, "_blank");
|
|
18580
18580
|
}
|
|
18581
18581
|
const k = () => {
|
|
18582
18582
|
w.value = !0;
|
|
18583
18583
|
}, _ = () => {
|
|
18584
18584
|
w.value = !1, L.value = !1;
|
|
18585
|
-
},
|
|
18585
|
+
}, b = () => {
|
|
18586
18586
|
r("action", { messageId: s.message.messageId, type: "views" });
|
|
18587
18587
|
}, T = () => {
|
|
18588
|
-
},
|
|
18589
|
-
function
|
|
18588
|
+
}, v = O(() => E0(s.message.status));
|
|
18589
|
+
function E() {
|
|
18590
18590
|
u.value && (d.value ? u.value.pause() : u.value.play(), d.value = !d.value);
|
|
18591
18591
|
}
|
|
18592
18592
|
const x = (Q) => {
|
|
18593
18593
|
const F = Math.floor(Q / 60), n2 = Math.floor(Q % 60);
|
|
18594
18594
|
return `${F.toString().padStart(2, "0")}:${n2.toString().padStart(2, "0")}`;
|
|
18595
18595
|
}, S = O(() => u.value ? x(C.value) : "0:00");
|
|
18596
|
-
|
|
18596
|
+
t2(
|
|
18597
18597
|
() => C.value,
|
|
18598
18598
|
() => {
|
|
18599
18599
|
u.value && (u.value.duration != 1 / 0 && !Number.isNaN(u.value.duration) && (u.value.currentTime = C.value), C.value == A.value && (d.value = !1));
|
|
18600
18600
|
}
|
|
18601
18601
|
);
|
|
18602
18602
|
const R = O(() => u.value ? x(A.value) : "0:00");
|
|
18603
|
-
function
|
|
18603
|
+
function X(Q) {
|
|
18604
18604
|
return Q.position === "left" ? "audio-message__left" : "audio-message__right";
|
|
18605
18605
|
}
|
|
18606
18606
|
return h2(() => {
|
|
@@ -18614,8 +18614,8 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18614
18614
|
}), (Q, F) => {
|
|
18615
18615
|
var n2;
|
|
18616
18616
|
return l(), c("div", {
|
|
18617
|
-
class:
|
|
18618
|
-
|
|
18617
|
+
class: D(["audio-message", [
|
|
18618
|
+
X(e.message),
|
|
18619
18619
|
e.applyStyle(e.message)
|
|
18620
18620
|
]]),
|
|
18621
18621
|
messageId: e.message.messageId,
|
|
@@ -18628,19 +18628,19 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18628
18628
|
height: "32",
|
|
18629
18629
|
width: "32",
|
|
18630
18630
|
style: C2({ gridRow: e.message.subText ? "2" : "1" })
|
|
18631
|
-
}, null, 12, Ws)) :
|
|
18632
|
-
e.message.subText && e.isFirstInSeries ? (l(), c("p", Ks, N(e.message.subText), 1)) :
|
|
18631
|
+
}, null, 12, Ws)) : h("", !0),
|
|
18632
|
+
e.message.subText && e.isFirstInSeries ? (l(), c("p", Ks, N(e.message.subText), 1)) : h("", !0),
|
|
18633
18633
|
o("div", {
|
|
18634
|
-
class:
|
|
18634
|
+
class: D(["audio-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
18635
18635
|
onMouseenter: k
|
|
18636
18636
|
}, [
|
|
18637
|
-
e.message.reply ? (l(), z(
|
|
18637
|
+
e.message.reply ? (l(), z(M(V0), {
|
|
18638
18638
|
key: 0,
|
|
18639
18639
|
style: { "grid-column": "1/3" },
|
|
18640
18640
|
message: e.message.reply,
|
|
18641
|
-
class:
|
|
18641
|
+
class: D(e.message.position),
|
|
18642
18642
|
onReply: p
|
|
18643
|
-
}, null, 8, ["message", "class"])) :
|
|
18643
|
+
}, null, 8, ["message", "class"])) : h("", !0),
|
|
18644
18644
|
o("div", Js, [
|
|
18645
18645
|
o("audio", {
|
|
18646
18646
|
ref_key: "player",
|
|
@@ -18650,7 +18650,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18650
18650
|
}, null, 8, Gs),
|
|
18651
18651
|
p2(o("button", {
|
|
18652
18652
|
class: "audio-message__play",
|
|
18653
|
-
onClick:
|
|
18653
|
+
onClick: E
|
|
18654
18654
|
}, [...F[4] || (F[4] = [
|
|
18655
18655
|
o("span", { class: "pi pi-play" }, null, -1)
|
|
18656
18656
|
])], 512), [
|
|
@@ -18658,7 +18658,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18658
18658
|
]),
|
|
18659
18659
|
p2(o("button", {
|
|
18660
18660
|
class: "audio-message__pause",
|
|
18661
|
-
onClick:
|
|
18661
|
+
onClick: E
|
|
18662
18662
|
}, [...F[5] || (F[5] = [
|
|
18663
18663
|
o("span", { class: "pi pi-pause" }, null, -1)
|
|
18664
18664
|
])], 512), [
|
|
@@ -18679,7 +18679,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18679
18679
|
o("div", nf, [
|
|
18680
18680
|
(l(!0), c(q, null, c2(f.value, (i2, a2) => (l(), c("p", {
|
|
18681
18681
|
key: i2.text,
|
|
18682
|
-
class:
|
|
18682
|
+
class: D(["audio-message__speed-btn", { "audio-message__speed-btn-selected": i2.selected }]),
|
|
18683
18683
|
onClick: (d2) => i(a2)
|
|
18684
18684
|
}, N(i2.text), 11, af))), 128))
|
|
18685
18685
|
])
|
|
@@ -18698,40 +18698,40 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18698
18698
|
o("p", {
|
|
18699
18699
|
onClick: F[1] || (F[1] = (i2) => g.value = !g.value)
|
|
18700
18700
|
}, N(e.message.transcript.text), 1)
|
|
18701
|
-
])) :
|
|
18701
|
+
])) : h("", !0),
|
|
18702
18702
|
e.message.text ? (l(), c("div", of, [
|
|
18703
18703
|
o("p", {
|
|
18704
|
-
onClick:
|
|
18704
|
+
onClick: y,
|
|
18705
18705
|
innerHTML: I.value
|
|
18706
18706
|
}, null, 8, lf)
|
|
18707
|
-
])) :
|
|
18708
|
-
e.message.linkPreview ? (l(), z(
|
|
18707
|
+
])) : h("", !0),
|
|
18708
|
+
e.message.linkPreview ? (l(), z(M(n1), {
|
|
18709
18709
|
key: 3,
|
|
18710
|
-
class:
|
|
18710
|
+
class: D(["audio-message__link-preview", e.message.position]),
|
|
18711
18711
|
"link-preview": e.message.linkPreview
|
|
18712
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
18713
|
-
e.message.embed ? (l(), z(
|
|
18712
|
+
}, null, 8, ["class", "link-preview"])) : h("", !0),
|
|
18713
|
+
e.message.embed ? (l(), z(M(t1), {
|
|
18714
18714
|
key: 4,
|
|
18715
|
-
class:
|
|
18715
|
+
class: D(e.message.position),
|
|
18716
18716
|
embed: e.message.embed
|
|
18717
|
-
}, null, 8, ["class", "embed"])) :
|
|
18717
|
+
}, null, 8, ["class", "embed"])) : h("", !0),
|
|
18718
18718
|
o("div", rf, [
|
|
18719
18719
|
e.message.views ? (l(), c("div", {
|
|
18720
18720
|
key: 0,
|
|
18721
18721
|
class: "audio-message__views",
|
|
18722
|
-
onClick:
|
|
18722
|
+
onClick: b
|
|
18723
18723
|
}, [
|
|
18724
18724
|
F[7] || (F[7] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
18725
18725
|
o("p", null, N(e.message.views), 1)
|
|
18726
|
-
])) :
|
|
18726
|
+
])) : h("", !0),
|
|
18727
18727
|
o("span", cf, N(e.message.time), 1),
|
|
18728
|
-
|
|
18728
|
+
X(e.message) === "audio-message__right" && M(D0).includes(e.message.status) ? (l(), c("div", {
|
|
18729
18729
|
key: 1,
|
|
18730
|
-
class:
|
|
18730
|
+
class: D(["audio-message__status", v.value])
|
|
18731
18731
|
}, [
|
|
18732
|
-
e.message.status !== "sent" ? (l(), c("span", uf)) :
|
|
18732
|
+
e.message.status !== "sent" ? (l(), c("span", uf)) : h("", !0),
|
|
18733
18733
|
F[8] || (F[8] = o("span", { class: "pi pi-check" }, null, -1))
|
|
18734
|
-
], 2)) :
|
|
18734
|
+
], 2)) : h("", !0)
|
|
18735
18735
|
]),
|
|
18736
18736
|
w.value && e.message.actions ? (l(), c("button", {
|
|
18737
18737
|
key: 5,
|
|
@@ -18739,15 +18739,15 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18739
18739
|
onClick: F[2] || (F[2] = (i2) => L.value = !L.value)
|
|
18740
18740
|
}, [...F[9] || (F[9] = [
|
|
18741
18741
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
18742
|
-
])])) :
|
|
18742
|
+
])])) : h("", !0),
|
|
18743
18743
|
Y(u2, null, {
|
|
18744
18744
|
default: W(() => [
|
|
18745
|
-
L.value && e.message.actions ? (l(), z(
|
|
18745
|
+
L.value && e.message.actions ? (l(), z(M(x0), {
|
|
18746
18746
|
key: 0,
|
|
18747
18747
|
class: "audio-message__context-menu",
|
|
18748
18748
|
actions: e.message.actions,
|
|
18749
18749
|
onClick: T
|
|
18750
|
-
}, null, 8, ["actions"])) :
|
|
18750
|
+
}, null, 8, ["actions"])) : h("", !0)
|
|
18751
18751
|
]),
|
|
18752
18752
|
_: 1
|
|
18753
18753
|
}),
|
|
@@ -18759,7 +18759,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18759
18759
|
g.value ? (l(), c("div", {
|
|
18760
18760
|
key: 0,
|
|
18761
18761
|
class: "audio-message__modal-overlay",
|
|
18762
|
-
"data-theme":
|
|
18762
|
+
"data-theme": M(a)().theme ? M(a)().theme : null
|
|
18763
18763
|
}, [
|
|
18764
18764
|
o("div", Af, [
|
|
18765
18765
|
o("button", {
|
|
@@ -18772,7 +18772,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18772
18772
|
])]),
|
|
18773
18773
|
o("p", Cf, N((i2 = e.message.transcript) == null ? void 0 : i2.text), 1)
|
|
18774
18774
|
])
|
|
18775
|
-
], 8, df)) :
|
|
18775
|
+
], 8, df)) : h("", !0)
|
|
18776
18776
|
];
|
|
18777
18777
|
}),
|
|
18778
18778
|
_: 1
|
|
@@ -18812,7 +18812,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18812
18812
|
return (r, u) => {
|
|
18813
18813
|
var d, A;
|
|
18814
18814
|
return l(), c("div", {
|
|
18815
|
-
class:
|
|
18815
|
+
class: D(["reply__container", i(((d = e.message) == null ? void 0 : d.type) || "")]),
|
|
18816
18816
|
onClick: s
|
|
18817
18817
|
}, [
|
|
18818
18818
|
(l(), z(e0(f(((A = e.message) == null ? void 0 : A.type) || "")), { message: e.message }, null, 8, ["message"])),
|
|
@@ -18874,7 +18874,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18874
18874
|
return (i, r) => {
|
|
18875
18875
|
var u;
|
|
18876
18876
|
return l(), c("div", {
|
|
18877
|
-
class:
|
|
18877
|
+
class: D([
|
|
18878
18878
|
f(e.message, s.message),
|
|
18879
18879
|
e.applyStyle(e.message)
|
|
18880
18880
|
]),
|
|
@@ -18887,11 +18887,11 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18887
18887
|
height: "32",
|
|
18888
18888
|
width: "32",
|
|
18889
18889
|
style: C2({ gridRow: e.message.subText ? "2" : "1" })
|
|
18890
|
-
}, null, 12, vf)) :
|
|
18891
|
-
e.message.subText ? (l(), c("p", Mf, N(e.message.subText), 1)) :
|
|
18890
|
+
}, null, 12, vf)) : h("", !0),
|
|
18891
|
+
e.message.subText ? (l(), c("p", Mf, N(e.message.subText), 1)) : h("", !0),
|
|
18892
18892
|
o("div", yf, [
|
|
18893
18893
|
o("span", {
|
|
18894
|
-
class:
|
|
18894
|
+
class: D(["call-message__icon pi pi-phone", { "call-message__icon-missed": e.message.isMissedCall }])
|
|
18895
18895
|
}, null, 2),
|
|
18896
18896
|
e.message.isMissedCall ? (l(), c("span", _f, " Пропущенный аудиозвонок ")) : (l(), c("span", bf, " Аудиозвонок ")),
|
|
18897
18897
|
e.message.callDuration ? (l(), c("span", wf, N(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (l(), c("span", If, "Нажмите, чтобы перезвонить")) : (l(), c("span", kf, "Нет ответа")),
|
|
@@ -18904,7 +18904,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18904
18904
|
onClick: r[0] || (r[0] = (d) => a.value = !a.value)
|
|
18905
18905
|
}, [...r[2] || (r[2] = [
|
|
18906
18906
|
o("span", { class: "pi pi-arrow-up-right" }, null, -1)
|
|
18907
|
-
])])) :
|
|
18907
|
+
])])) : h("", !0),
|
|
18908
18908
|
(l(), z(D2, { to: "body" }, [
|
|
18909
18909
|
Y(u2, { name: "modal-fade" }, {
|
|
18910
18910
|
default: W(() => {
|
|
@@ -18913,7 +18913,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18913
18913
|
a.value ? (l(), c("div", {
|
|
18914
18914
|
key: 0,
|
|
18915
18915
|
class: "call-message__modal-overlay",
|
|
18916
|
-
"data-theme":
|
|
18916
|
+
"data-theme": M(t)().theme ? M(t)().theme : "light"
|
|
18917
18917
|
}, [
|
|
18918
18918
|
o("div", Df, [
|
|
18919
18919
|
o("button", {
|
|
@@ -18926,13 +18926,13 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18926
18926
|
])]),
|
|
18927
18927
|
(l(!0), c(q, null, c2((d = e.message.transcript) == null ? void 0 : d.dialog, (A) => (l(), c("div", {
|
|
18928
18928
|
key: A.time,
|
|
18929
|
-
class:
|
|
18929
|
+
class: D(f(A, s.textDialog))
|
|
18930
18930
|
}, [
|
|
18931
18931
|
o("p", null, N(A.text), 1),
|
|
18932
18932
|
o("span", null, N(A.time), 1)
|
|
18933
18933
|
], 2))), 128))
|
|
18934
18934
|
])
|
|
18935
|
-
], 8, xf)) :
|
|
18935
|
+
], 8, xf)) : h("", !0)
|
|
18936
18936
|
];
|
|
18937
18937
|
}),
|
|
18938
18938
|
_: 1
|
|
@@ -18990,7 +18990,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
18990
18990
|
typeof i.action == "function" ? i.action() : i.action != null && a("action", i.action);
|
|
18991
18991
|
};
|
|
18992
18992
|
return (i, r) => (l(), c("div", {
|
|
18993
|
-
class:
|
|
18993
|
+
class: D(["feed-keyboard__container", [
|
|
18994
18994
|
`feed-keyboard__container--${e.align}`
|
|
18995
18995
|
]])
|
|
18996
18996
|
}, [
|
|
@@ -19035,7 +19035,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19035
19035
|
emits: ["action", "reply"],
|
|
19036
19036
|
setup(e, { emit: n }) {
|
|
19037
19037
|
const t = e, a = n, s = m(!1), f = m(!1), i = m("");
|
|
19038
|
-
|
|
19038
|
+
t2(
|
|
19039
19039
|
() => t.message.text,
|
|
19040
19040
|
() => {
|
|
19041
19041
|
t.message.text && (i.value = q2(t.message.text));
|
|
@@ -19060,7 +19060,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19060
19060
|
return I.position === "left" ? "file-message__left" : "file-message__right";
|
|
19061
19061
|
}
|
|
19062
19062
|
return (I, p) => (l(), c("div", {
|
|
19063
|
-
class:
|
|
19063
|
+
class: D(["file-message", [
|
|
19064
19064
|
g(e.message),
|
|
19065
19065
|
e.applyStyle(e.message)
|
|
19066
19066
|
]]),
|
|
@@ -19074,19 +19074,19 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19074
19074
|
height: "32",
|
|
19075
19075
|
width: "32",
|
|
19076
19076
|
style: C2({ gridRow: e.message.subText ? "2" : "1" })
|
|
19077
|
-
}, null, 12, Yf)) :
|
|
19078
|
-
e.message.subText && e.isFirstInSeries ? (l(), c("p", Pf, N(e.message.subText), 1)) :
|
|
19077
|
+
}, null, 12, Yf)) : h("", !0),
|
|
19078
|
+
e.message.subText && e.isFirstInSeries ? (l(), c("p", Pf, N(e.message.subText), 1)) : h("", !0),
|
|
19079
19079
|
o("div", {
|
|
19080
|
-
class:
|
|
19080
|
+
class: D(["file-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
19081
19081
|
style: C2({ gridRow: e.message.subText ? "2" : "1" }),
|
|
19082
19082
|
onMouseenter: C
|
|
19083
19083
|
}, [
|
|
19084
|
-
e.message.reply ? (l(), z(
|
|
19084
|
+
e.message.reply ? (l(), z(M(V0), {
|
|
19085
19085
|
key: 0,
|
|
19086
19086
|
message: e.message.reply,
|
|
19087
|
-
class:
|
|
19087
|
+
class: D(e.message.position),
|
|
19088
19088
|
onReply: r
|
|
19089
|
-
}, null, 8, ["message", "class"])) :
|
|
19089
|
+
}, null, 8, ["message", "class"])) : h("", !0),
|
|
19090
19090
|
o("a", {
|
|
19091
19091
|
class: "file-message__link",
|
|
19092
19092
|
href: e.message.url,
|
|
@@ -19104,17 +19104,17 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19104
19104
|
onClick: u,
|
|
19105
19105
|
innerHTML: i.value
|
|
19106
19106
|
}, null, 8, Jf)
|
|
19107
|
-
])) :
|
|
19108
|
-
e.message.linkPreview ? (l(), z(
|
|
19107
|
+
])) : h("", !0),
|
|
19108
|
+
e.message.linkPreview ? (l(), z(M(n1), {
|
|
19109
19109
|
key: 2,
|
|
19110
|
-
class:
|
|
19110
|
+
class: D(e.message.position),
|
|
19111
19111
|
"link-preview": e.message.linkPreview
|
|
19112
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
19113
|
-
e.message.embed ? (l(), z(
|
|
19112
|
+
}, null, 8, ["class", "link-preview"])) : h("", !0),
|
|
19113
|
+
e.message.embed ? (l(), z(M(t1), {
|
|
19114
19114
|
key: 3,
|
|
19115
|
-
class:
|
|
19115
|
+
class: D(e.message.position),
|
|
19116
19116
|
embed: e.message.embed
|
|
19117
|
-
}, null, 8, ["class", "embed"])) :
|
|
19117
|
+
}, null, 8, ["class", "embed"])) : h("", !0),
|
|
19118
19118
|
o("div", Gf, [
|
|
19119
19119
|
e.message.views ? (l(), c("div", {
|
|
19120
19120
|
key: 0,
|
|
@@ -19123,31 +19123,31 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19123
19123
|
}, [
|
|
19124
19124
|
p[3] || (p[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
19125
19125
|
o("p", null, N(e.message.views), 1)
|
|
19126
|
-
])) :
|
|
19126
|
+
])) : h("", !0),
|
|
19127
19127
|
o("span", Xf, N(e.message.time), 1),
|
|
19128
|
-
g(e.message) === "file-message__right" &&
|
|
19128
|
+
g(e.message) === "file-message__right" && M(D0).includes(e.message.status) ? (l(), c("div", {
|
|
19129
19129
|
key: 1,
|
|
19130
|
-
class:
|
|
19130
|
+
class: D(["file-message__status", w.value])
|
|
19131
19131
|
}, [
|
|
19132
|
-
e.message.status !== "sent" ? (l(), c("span", ei)) :
|
|
19132
|
+
e.message.status !== "sent" ? (l(), c("span", ei)) : h("", !0),
|
|
19133
19133
|
p[4] || (p[4] = o("span", { class: "pi pi-check" }, null, -1))
|
|
19134
|
-
], 2)) :
|
|
19134
|
+
], 2)) : h("", !0)
|
|
19135
19135
|
]),
|
|
19136
19136
|
f.value && e.message.actions ? (l(), c("button", {
|
|
19137
19137
|
key: 4,
|
|
19138
19138
|
class: "file-message__menu-button",
|
|
19139
|
-
onClick: p[0] || (p[0] = (
|
|
19139
|
+
onClick: p[0] || (p[0] = (y) => s.value = !s.value)
|
|
19140
19140
|
}, [...p[5] || (p[5] = [
|
|
19141
19141
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
19142
|
-
])])) :
|
|
19142
|
+
])])) : h("", !0),
|
|
19143
19143
|
Y(u2, null, {
|
|
19144
19144
|
default: W(() => [
|
|
19145
|
-
s.value && e.message.actions ? (l(), z(
|
|
19145
|
+
s.value && e.message.actions ? (l(), z(M(x0), {
|
|
19146
19146
|
key: 0,
|
|
19147
19147
|
class: "file-message__context-menu",
|
|
19148
19148
|
actions: e.message.actions,
|
|
19149
19149
|
onClick: A
|
|
19150
|
-
}, null, 8, ["actions"])) :
|
|
19150
|
+
}, null, 8, ["actions"])) : h("", !0)
|
|
19151
19151
|
]),
|
|
19152
19152
|
_: 1
|
|
19153
19153
|
})
|
|
@@ -19185,7 +19185,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19185
19185
|
emits: ["action", "reply"],
|
|
19186
19186
|
setup(e, { emit: n }) {
|
|
19187
19187
|
const t = l2("chatAppId"), { getTheme: a } = Y2(t), s = e, f = n, i = m(!1), r = m(!1), u = m(!1), d = m(!1), A = m("");
|
|
19188
|
-
|
|
19188
|
+
t2(
|
|
19189
19189
|
() => s.message.text,
|
|
19190
19190
|
() => {
|
|
19191
19191
|
s.message.text && (A.value = q2(s.message.text));
|
|
@@ -19205,13 +19205,13 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19205
19205
|
u.value = !0, d.value = !0;
|
|
19206
19206
|
}, p = () => {
|
|
19207
19207
|
u.value = !1, r.value = !1;
|
|
19208
|
-
},
|
|
19208
|
+
}, y = O(() => s.message.reply && s.message.text ? "0" : s.message.text ? "8px 8px 0 0" : s.message.reply ? "0 0 8px 8px" : "8px"), k = O(() => E0(s.message.status));
|
|
19209
19209
|
function _(T) {
|
|
19210
19210
|
return T.position === "left" ? "image-message__left" : "image-message__right";
|
|
19211
19211
|
}
|
|
19212
|
-
const
|
|
19213
|
-
return (T,
|
|
19214
|
-
class:
|
|
19212
|
+
const b = () => i.value = !1;
|
|
19213
|
+
return (T, v) => (l(), c("div", {
|
|
19214
|
+
class: D(["image-message", [
|
|
19215
19215
|
_(e.message),
|
|
19216
19216
|
e.applyStyle(e.message)
|
|
19217
19217
|
]]),
|
|
@@ -19224,27 +19224,27 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19224
19224
|
src: e.message.avatar,
|
|
19225
19225
|
height: "32",
|
|
19226
19226
|
width: "32"
|
|
19227
|
-
}, null, 8, si)) :
|
|
19228
|
-
e.message.subText && e.isFirstInSeries ? (l(), c("p", fi, N(e.message.subText), 1)) :
|
|
19227
|
+
}, null, 8, si)) : h("", !0),
|
|
19228
|
+
e.message.subText && e.isFirstInSeries ? (l(), c("p", fi, N(e.message.subText), 1)) : h("", !0),
|
|
19229
19229
|
o("div", {
|
|
19230
|
-
class:
|
|
19230
|
+
class: D(["image-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }])
|
|
19231
19231
|
}, [
|
|
19232
|
-
e.message.reply ? (l(), z(
|
|
19232
|
+
e.message.reply ? (l(), z(M(V0), {
|
|
19233
19233
|
key: 0,
|
|
19234
19234
|
style: { margin: "10px 10px 4px 16px" },
|
|
19235
|
-
class:
|
|
19235
|
+
class: D(e.message.position),
|
|
19236
19236
|
message: e.message.reply,
|
|
19237
19237
|
onReply: C
|
|
19238
|
-
}, null, 8, ["class", "message"])) :
|
|
19238
|
+
}, null, 8, ["class", "message"])) : h("", !0),
|
|
19239
19239
|
o("div", {
|
|
19240
19240
|
class: "image-message__preview-button",
|
|
19241
|
-
onClick:
|
|
19241
|
+
onClick: v[0] || (v[0] = (E) => i.value = !0),
|
|
19242
19242
|
onMouseenter: I,
|
|
19243
|
-
onMouseleave:
|
|
19243
|
+
onMouseleave: v[1] || (v[1] = (E) => d.value = !d.value)
|
|
19244
19244
|
}, [
|
|
19245
19245
|
o("img", {
|
|
19246
19246
|
class: "image-message__preview-image",
|
|
19247
|
-
style: C2({ borderRadius:
|
|
19247
|
+
style: C2({ borderRadius: y.value }),
|
|
19248
19248
|
src: e.message.url,
|
|
19249
19249
|
alt: e.message.alt
|
|
19250
19250
|
}, null, 12, ii),
|
|
@@ -19256,18 +19256,18 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19256
19256
|
class: "image-message__views",
|
|
19257
19257
|
onClick: q0(w, ["stop"])
|
|
19258
19258
|
}, [
|
|
19259
|
-
|
|
19259
|
+
v[3] || (v[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
19260
19260
|
o("p", null, N(e.message.views), 1)
|
|
19261
|
-
])) :
|
|
19261
|
+
])) : h("", !0),
|
|
19262
19262
|
o("span", li, N(e.message.time), 1),
|
|
19263
|
-
_(e.message) === "image-message__right" &&
|
|
19263
|
+
_(e.message) === "image-message__right" && M(D0).includes(e.message.status) ? (l(), c("div", {
|
|
19264
19264
|
key: 1,
|
|
19265
|
-
class:
|
|
19265
|
+
class: D(["image-message__status", k.value])
|
|
19266
19266
|
}, [
|
|
19267
|
-
e.message.status !== "sent" ? (l(), c("span", ri)) :
|
|
19268
|
-
|
|
19269
|
-
], 2)) :
|
|
19270
|
-
])) :
|
|
19267
|
+
e.message.status !== "sent" ? (l(), c("span", ri)) : h("", !0),
|
|
19268
|
+
v[4] || (v[4] = o("span", { class: "pi pi-check" }, null, -1))
|
|
19269
|
+
], 2)) : h("", !0)
|
|
19270
|
+
])) : h("", !0)
|
|
19271
19271
|
]),
|
|
19272
19272
|
_: 1
|
|
19273
19273
|
}),
|
|
@@ -19280,9 +19280,9 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19280
19280
|
download: "",
|
|
19281
19281
|
target: "_blank",
|
|
19282
19282
|
onClick: q0(() => "//Предотвращаем всплытие события клика", ["stop"])
|
|
19283
|
-
}, [...
|
|
19283
|
+
}, [...v[5] || (v[5] = [
|
|
19284
19284
|
o("span", { class: "pi pi-download" }, null, -1)
|
|
19285
|
-
])], 8, ci)) :
|
|
19285
|
+
])], 8, ci)) : h("", !0)
|
|
19286
19286
|
]),
|
|
19287
19287
|
_: 1
|
|
19288
19288
|
})
|
|
@@ -19292,21 +19292,21 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19292
19292
|
u.value && e.message.actions ? (l(), c("button", {
|
|
19293
19293
|
key: 0,
|
|
19294
19294
|
class: "image-message__menu-button",
|
|
19295
|
-
onClick:
|
|
19296
|
-
}, [...
|
|
19295
|
+
onClick: v[2] || (v[2] = (E) => r.value = !r.value)
|
|
19296
|
+
}, [...v[6] || (v[6] = [
|
|
19297
19297
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
19298
|
-
])])) :
|
|
19298
|
+
])])) : h("", !0)
|
|
19299
19299
|
]),
|
|
19300
19300
|
_: 1
|
|
19301
19301
|
}),
|
|
19302
19302
|
Y(u2, { name: "context-menu" }, {
|
|
19303
19303
|
default: W(() => [
|
|
19304
|
-
r.value && e.message.actions ? (l(), z(
|
|
19304
|
+
r.value && e.message.actions ? (l(), z(M(x0), {
|
|
19305
19305
|
key: 0,
|
|
19306
19306
|
class: "image-message__context-menu",
|
|
19307
19307
|
actions: e.message.actions,
|
|
19308
19308
|
onClick: g
|
|
19309
|
-
}, null, 8, ["actions"])) :
|
|
19309
|
+
}, null, 8, ["actions"])) : h("", !0)
|
|
19310
19310
|
]),
|
|
19311
19311
|
_: 1
|
|
19312
19312
|
}),
|
|
@@ -19315,25 +19315,25 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19315
19315
|
onClick: L,
|
|
19316
19316
|
innerHTML: A.value
|
|
19317
19317
|
}, null, 8, di)
|
|
19318
|
-
])) :
|
|
19319
|
-
e.message.linkPreview ? (l(), z(
|
|
19318
|
+
])) : h("", !0),
|
|
19319
|
+
e.message.linkPreview ? (l(), z(M(n1), {
|
|
19320
19320
|
key: 2,
|
|
19321
|
-
class:
|
|
19321
|
+
class: D(["image-message__link-preview", e.message.position]),
|
|
19322
19322
|
"link-preview": e.message.linkPreview
|
|
19323
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
19324
|
-
e.message.embed ? (l(), z(
|
|
19323
|
+
}, null, 8, ["class", "link-preview"])) : h("", !0),
|
|
19324
|
+
e.message.embed ? (l(), z(M(t1), {
|
|
19325
19325
|
key: 3,
|
|
19326
|
-
class:
|
|
19326
|
+
class: D(e.message.position),
|
|
19327
19327
|
embed: e.message.embed
|
|
19328
|
-
}, null, 8, ["class", "embed"])) :
|
|
19328
|
+
}, null, 8, ["class", "embed"])) : h("", !0)
|
|
19329
19329
|
], 2),
|
|
19330
19330
|
(l(), z(D2, { to: "body" }, [
|
|
19331
19331
|
Y(u2, { name: "modal-fade" }, {
|
|
19332
19332
|
default: W(() => [
|
|
19333
|
-
i.value ? (l(), z(
|
|
19333
|
+
i.value ? (l(), z(M(i1), {
|
|
19334
19334
|
key: 0,
|
|
19335
|
-
"data-theme":
|
|
19336
|
-
onClose:
|
|
19335
|
+
"data-theme": M(a)().theme ? M(a)().theme : "light",
|
|
19336
|
+
onClose: b
|
|
19337
19337
|
}, {
|
|
19338
19338
|
default: W(() => [
|
|
19339
19339
|
o("img", {
|
|
@@ -19343,7 +19343,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19343
19343
|
}, null, 8, Ai)
|
|
19344
19344
|
]),
|
|
19345
19345
|
_: 1
|
|
19346
|
-
}, 8, ["data-theme"])) :
|
|
19346
|
+
}, 8, ["data-theme"])) : h("", !0)
|
|
19347
19347
|
]),
|
|
19348
19348
|
_: 1
|
|
19349
19349
|
})
|
|
@@ -19372,7 +19372,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19372
19372
|
refKeyboard: a
|
|
19373
19373
|
}), (d, A) => (l(), c("div", {
|
|
19374
19374
|
ref: "keyboard",
|
|
19375
|
-
class:
|
|
19375
|
+
class: D(["keyboard__container", [`keyboard__container--${e.align}`]])
|
|
19376
19376
|
}, [
|
|
19377
19377
|
(l(!0), c(q, null, c2(e.keyboard, (C) => (l(), c("div", {
|
|
19378
19378
|
key: C.text,
|
|
@@ -19394,7 +19394,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19394
19394
|
},
|
|
19395
19395
|
setup(e) {
|
|
19396
19396
|
const n = e, t = m(!1), a = m("");
|
|
19397
|
-
|
|
19397
|
+
t2(
|
|
19398
19398
|
() => n.message.text,
|
|
19399
19399
|
() => {
|
|
19400
19400
|
n.message.text && (a.value = q2(n.message.text));
|
|
@@ -19411,7 +19411,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19411
19411
|
[H2, !t.value]
|
|
19412
19412
|
]),
|
|
19413
19413
|
o("div", vi, [
|
|
19414
|
-
e.message.header ? (l(), c("p", Mi, N(e.message.header), 1)) :
|
|
19414
|
+
e.message.header ? (l(), c("p", Mi, N(e.message.header), 1)) : h("", !0),
|
|
19415
19415
|
i[1] || (i[1] = o("div", { class: "audio-message__reply-description" }, [
|
|
19416
19416
|
o("span", { class: "pi pi-microphone" }),
|
|
19417
19417
|
o("p", null, "Аудиосообщение")
|
|
@@ -19421,7 +19421,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19421
19421
|
class: "audio-message__text",
|
|
19422
19422
|
onClick: s,
|
|
19423
19423
|
innerHTML: a.value
|
|
19424
|
-
}, null, 8, yi)) :
|
|
19424
|
+
}, null, 8, yi)) : h("", !0)
|
|
19425
19425
|
])
|
|
19426
19426
|
], 64));
|
|
19427
19427
|
}
|
|
@@ -19443,15 +19443,15 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19443
19443
|
return console.log(e.message), (t, a) => (l(), c(q, null, [
|
|
19444
19444
|
o("div", null, [
|
|
19445
19445
|
o("span", {
|
|
19446
|
-
class:
|
|
19446
|
+
class: D(["call-message__icon pi pi-phone", { "call-message__icon-missed": e.message.isMissedCall }])
|
|
19447
19447
|
}, null, 2)
|
|
19448
19448
|
]),
|
|
19449
19449
|
o("div", wi, [
|
|
19450
|
-
e.message.header ? (l(), c("p", Ii, N(e.message.header), 1)) :
|
|
19450
|
+
e.message.header ? (l(), c("p", Ii, N(e.message.header), 1)) : h("", !0),
|
|
19451
19451
|
o("div", ki, [
|
|
19452
19452
|
e.message.isMissedCall ? (l(), c("span", Ni, " Пропущенный аудиозвонок ")) : (l(), c("span", Ti, " Аудиозвонок "))
|
|
19453
19453
|
]),
|
|
19454
|
-
e.message.callDuration ? (l(), c("p", xi, N(e.message.callDuration), 1)) :
|
|
19454
|
+
e.message.callDuration ? (l(), c("p", xi, N(e.message.callDuration), 1)) : h("", !0)
|
|
19455
19455
|
])
|
|
19456
19456
|
], 64));
|
|
19457
19457
|
}
|
|
@@ -19465,7 +19465,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19465
19465
|
},
|
|
19466
19466
|
setup(e) {
|
|
19467
19467
|
const n = e, t = m("");
|
|
19468
|
-
|
|
19468
|
+
t2(
|
|
19469
19469
|
() => n.message.text,
|
|
19470
19470
|
() => {
|
|
19471
19471
|
n.message.text && (t.value = q2(n.message.text));
|
|
@@ -19486,7 +19486,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19486
19486
|
o("span", { class: "pi pi-file" }, null, -1)
|
|
19487
19487
|
])], 8, Vi),
|
|
19488
19488
|
o("div", null, [
|
|
19489
|
-
e.message.header ? (l(), c("p", ji, N(e.message.header), 1)) :
|
|
19489
|
+
e.message.header ? (l(), c("p", ji, N(e.message.header), 1)) : h("", !0),
|
|
19490
19490
|
o("a", {
|
|
19491
19491
|
class: "file-message__link",
|
|
19492
19492
|
href: e.message.url,
|
|
@@ -19500,7 +19500,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19500
19500
|
class: "file-message__text",
|
|
19501
19501
|
onClick: a,
|
|
19502
19502
|
innerHTML: t.value
|
|
19503
|
-
}, null, 8, Oi)) :
|
|
19503
|
+
}, null, 8, Oi)) : h("", !0)
|
|
19504
19504
|
])
|
|
19505
19505
|
], 64));
|
|
19506
19506
|
}
|
|
@@ -19514,7 +19514,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19514
19514
|
},
|
|
19515
19515
|
setup(e) {
|
|
19516
19516
|
const n = l2("chatAppId"), { getTheme: t } = Y2(n), a = e, s = m(!1), f = m("");
|
|
19517
|
-
|
|
19517
|
+
t2(
|
|
19518
19518
|
() => a.message.text,
|
|
19519
19519
|
() => {
|
|
19520
19520
|
a.message.text && (f.value = q2(a.message.text));
|
|
@@ -19537,7 +19537,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19537
19537
|
}, null, 8, Ui)
|
|
19538
19538
|
]),
|
|
19539
19539
|
o("div", Bi, [
|
|
19540
|
-
e.message.header ? (l(), c("p", Ri, N(e.message.header), 1)) :
|
|
19540
|
+
e.message.header ? (l(), c("p", Ri, N(e.message.header), 1)) : h("", !0),
|
|
19541
19541
|
d[1] || (d[1] = o("div", { class: "image-message__reply-description" }, [
|
|
19542
19542
|
o("span", { class: "pi pi-camera" }),
|
|
19543
19543
|
o("p", null, "Фотография")
|
|
@@ -19547,14 +19547,14 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19547
19547
|
class: "image-message__text",
|
|
19548
19548
|
onClick: i,
|
|
19549
19549
|
innerHTML: f.value
|
|
19550
|
-
}, null, 8, Qi)) :
|
|
19550
|
+
}, null, 8, Qi)) : h("", !0)
|
|
19551
19551
|
]),
|
|
19552
19552
|
(l(), z(D2, { to: "body" }, [
|
|
19553
19553
|
Y(u2, { name: "modal-fade" }, {
|
|
19554
19554
|
default: W(() => [
|
|
19555
|
-
s.value ? (l(), z(
|
|
19555
|
+
s.value ? (l(), z(M(i1), {
|
|
19556
19556
|
key: 0,
|
|
19557
|
-
"data-theme":
|
|
19557
|
+
"data-theme": M(t)().theme ? M(t)().theme : "light",
|
|
19558
19558
|
onClose: r
|
|
19559
19559
|
}, {
|
|
19560
19560
|
default: W(() => [
|
|
@@ -19565,7 +19565,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19565
19565
|
}, null, 8, Fi)
|
|
19566
19566
|
]),
|
|
19567
19567
|
_: 1
|
|
19568
|
-
}, 8, ["data-theme"])) :
|
|
19568
|
+
}, 8, ["data-theme"])) : h("", !0)
|
|
19569
19569
|
]),
|
|
19570
19570
|
_: 1
|
|
19571
19571
|
})
|
|
@@ -19582,7 +19582,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19582
19582
|
},
|
|
19583
19583
|
setup(e) {
|
|
19584
19584
|
const n = e, t = m("");
|
|
19585
|
-
|
|
19585
|
+
t2(
|
|
19586
19586
|
() => n.message.text,
|
|
19587
19587
|
() => {
|
|
19588
19588
|
t.value = q2(n.message.text);
|
|
@@ -19593,7 +19593,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19593
19593
|
s.preventDefault(), s.target.href && window.open(s.target.href, "_blank");
|
|
19594
19594
|
}
|
|
19595
19595
|
return (s, f) => (l(), c("div", Pi, [
|
|
19596
|
-
e.message.header ? (l(), c("p", qi, N(e.message.header), 1)) :
|
|
19596
|
+
e.message.header ? (l(), c("p", qi, N(e.message.header), 1)) : h("", !0),
|
|
19597
19597
|
o("p", {
|
|
19598
19598
|
class: "text",
|
|
19599
19599
|
onClick: a,
|
|
@@ -19611,7 +19611,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19611
19611
|
},
|
|
19612
19612
|
setup(e) {
|
|
19613
19613
|
const n = l2("chatAppId"), { getTheme: t } = Y2(n), a = e, s = m(), f = m(!1), i = m("");
|
|
19614
|
-
|
|
19614
|
+
t2(
|
|
19615
19615
|
() => a.message.text,
|
|
19616
19616
|
() => {
|
|
19617
19617
|
a.message.text && (i.value = q2(a.message.text));
|
|
@@ -19634,7 +19634,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19634
19634
|
}, null, 8, Gi)
|
|
19635
19635
|
]),
|
|
19636
19636
|
o("div", Xi, [
|
|
19637
|
-
e.message.header ? (l(), c("p", eo, N(e.message.header), 1)) :
|
|
19637
|
+
e.message.header ? (l(), c("p", eo, N(e.message.header), 1)) : h("", !0),
|
|
19638
19638
|
A[1] || (A[1] = o("div", { class: "video-message__reply-description" }, [
|
|
19639
19639
|
o("span", { class: "pi pi-video" }),
|
|
19640
19640
|
o("p", null, "Видео")
|
|
@@ -19644,14 +19644,14 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19644
19644
|
class: "video-message__text",
|
|
19645
19645
|
onClick: r,
|
|
19646
19646
|
innerHTML: i.value
|
|
19647
|
-
}, null, 8, to)) :
|
|
19647
|
+
}, null, 8, to)) : h("", !0)
|
|
19648
19648
|
]),
|
|
19649
19649
|
(l(), z(D2, { to: "body" }, [
|
|
19650
19650
|
Y(u2, { name: "modal-fade" }, {
|
|
19651
19651
|
default: W(() => [
|
|
19652
|
-
f.value ? (l(), z(
|
|
19652
|
+
f.value ? (l(), z(M(i1), {
|
|
19653
19653
|
key: 0,
|
|
19654
|
-
"data-theme":
|
|
19654
|
+
"data-theme": M(t)().theme ? M(t)().theme : "light",
|
|
19655
19655
|
onClose: u
|
|
19656
19656
|
}, {
|
|
19657
19657
|
default: W(() => [
|
|
@@ -19666,7 +19666,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19666
19666
|
}, null, 8, no)
|
|
19667
19667
|
]),
|
|
19668
19668
|
_: 1
|
|
19669
|
-
}, 8, ["data-theme"])) :
|
|
19669
|
+
}, 8, ["data-theme"])) : h("", !0)
|
|
19670
19670
|
]),
|
|
19671
19671
|
_: 1
|
|
19672
19672
|
})
|
|
@@ -19732,7 +19732,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19732
19732
|
emits: ["action", "reply"],
|
|
19733
19733
|
setup(e, { emit: n }) {
|
|
19734
19734
|
const t = e, a = n, s = m(!1), f = m(!1), i = m("");
|
|
19735
|
-
|
|
19735
|
+
t2(
|
|
19736
19736
|
() => t.message.text,
|
|
19737
19737
|
() => {
|
|
19738
19738
|
i.value = q2(t.message.text);
|
|
@@ -19758,7 +19758,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19758
19758
|
return I.position === "left" ? "text-message__left" : "text-message__right";
|
|
19759
19759
|
}
|
|
19760
19760
|
return (I, p) => (l(), c("div", {
|
|
19761
|
-
class:
|
|
19761
|
+
class: D(["text-message", [
|
|
19762
19762
|
g(e.message),
|
|
19763
19763
|
e.applyStyle(e.message)
|
|
19764
19764
|
]]),
|
|
@@ -19772,33 +19772,33 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19772
19772
|
height: "32",
|
|
19773
19773
|
width: "32",
|
|
19774
19774
|
style: C2({ gridRow: e.message.subText && e.isFirstInSeries ? "2" : "1" })
|
|
19775
|
-
}, null, 12, Ao)) :
|
|
19776
|
-
e.message.subText && e.isFirstInSeries ? (l(), c("p", Co, N(e.message.subText), 1)) :
|
|
19775
|
+
}, null, 12, Ao)) : h("", !0),
|
|
19776
|
+
e.message.subText && e.isFirstInSeries ? (l(), c("p", Co, N(e.message.subText), 1)) : h("", !0),
|
|
19777
19777
|
o("div", {
|
|
19778
|
-
class:
|
|
19778
|
+
class: D(["text-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
19779
19779
|
onMouseenter: d
|
|
19780
19780
|
}, [
|
|
19781
|
-
e.message.reply ? (l(), z(
|
|
19781
|
+
e.message.reply ? (l(), z(M(V0), {
|
|
19782
19782
|
key: 0,
|
|
19783
|
-
class:
|
|
19783
|
+
class: D(e.message.position),
|
|
19784
19784
|
message: e.message.reply,
|
|
19785
19785
|
onReply: r
|
|
19786
|
-
}, null, 8, ["class", "message"])) :
|
|
19786
|
+
}, null, 8, ["class", "message"])) : h("", !0),
|
|
19787
19787
|
o("p", {
|
|
19788
19788
|
class: "text-message__text",
|
|
19789
19789
|
onClick: u,
|
|
19790
19790
|
innerHTML: i.value
|
|
19791
19791
|
}, null, 8, go),
|
|
19792
|
-
e.message.linkPreview ? (l(), z(
|
|
19792
|
+
e.message.linkPreview ? (l(), z(M(n1), {
|
|
19793
19793
|
key: 1,
|
|
19794
|
-
class:
|
|
19794
|
+
class: D(e.message.position),
|
|
19795
19795
|
"link-preview": e.message.linkPreview
|
|
19796
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
19797
|
-
e.message.embed ? (l(), z(
|
|
19796
|
+
}, null, 8, ["class", "link-preview"])) : h("", !0),
|
|
19797
|
+
e.message.embed ? (l(), z(M(t1), {
|
|
19798
19798
|
key: 2,
|
|
19799
|
-
class:
|
|
19799
|
+
class: D(e.message.position),
|
|
19800
19800
|
embed: e.message.embed
|
|
19801
|
-
}, null, 8, ["class", "embed"])) :
|
|
19801
|
+
}, null, 8, ["class", "embed"])) : h("", !0),
|
|
19802
19802
|
o("div", Lo, [
|
|
19803
19803
|
e.message.views ? (l(), c("div", {
|
|
19804
19804
|
key: 0,
|
|
@@ -19807,31 +19807,31 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19807
19807
|
}, [
|
|
19808
19808
|
p[1] || (p[1] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
19809
19809
|
o("p", null, N(e.message.views), 1)
|
|
19810
|
-
])) :
|
|
19811
|
-
e.message.time ? (l(), c("span", po, N(e.message.time), 1)) :
|
|
19812
|
-
g(e.message) === "text-message__right" &&
|
|
19810
|
+
])) : h("", !0),
|
|
19811
|
+
e.message.time ? (l(), c("span", po, N(e.message.time), 1)) : h("", !0),
|
|
19812
|
+
g(e.message) === "text-message__right" && M(D0).includes(e.message.status) ? (l(), c("div", {
|
|
19813
19813
|
key: 2,
|
|
19814
|
-
class:
|
|
19814
|
+
class: D(["text-message__status", C.value])
|
|
19815
19815
|
}, [
|
|
19816
|
-
e.message.status !== "sent" ? (l(), c("span", mo)) :
|
|
19816
|
+
e.message.status !== "sent" ? (l(), c("span", mo)) : h("", !0),
|
|
19817
19817
|
p[2] || (p[2] = o("span", { class: "pi pi-check" }, null, -1))
|
|
19818
|
-
], 2)) :
|
|
19818
|
+
], 2)) : h("", !0)
|
|
19819
19819
|
]),
|
|
19820
19820
|
f.value && e.message.actions ? (l(), c("button", {
|
|
19821
19821
|
key: 3,
|
|
19822
19822
|
class: "text-message__menu-button",
|
|
19823
|
-
onClick: p[0] || (p[0] = (
|
|
19823
|
+
onClick: p[0] || (p[0] = (y) => s.value = !s.value)
|
|
19824
19824
|
}, [...p[3] || (p[3] = [
|
|
19825
19825
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
19826
|
-
])])) :
|
|
19826
|
+
])])) : h("", !0),
|
|
19827
19827
|
Y(u2, null, {
|
|
19828
19828
|
default: W(() => [
|
|
19829
|
-
s.value && e.message.actions ? (l(), z(
|
|
19829
|
+
s.value && e.message.actions ? (l(), z(M(x0), {
|
|
19830
19830
|
key: 0,
|
|
19831
19831
|
class: "text-message__context-menu",
|
|
19832
19832
|
actions: e.message.actions,
|
|
19833
19833
|
onClick: L
|
|
19834
|
-
}, null, 8, ["actions"])) :
|
|
19834
|
+
}, null, 8, ["actions"])) : h("", !0)
|
|
19835
19835
|
]),
|
|
19836
19836
|
_: 1
|
|
19837
19837
|
})
|
|
@@ -19858,8 +19858,8 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19858
19858
|
height: "32",
|
|
19859
19859
|
width: "32",
|
|
19860
19860
|
style: C2({ gridRow: e.message.subText ? "2" : "1" })
|
|
19861
|
-
}, null, 12, yo)) :
|
|
19862
|
-
e.message.subText ? (l(), c("p", bo, N(e.message.subText), 1)) :
|
|
19861
|
+
}, null, 12, yo)) : h("", !0),
|
|
19862
|
+
e.message.subText ? (l(), c("p", bo, N(e.message.subText), 1)) : h("", !0),
|
|
19863
19863
|
t[0] || (t[0] = o("div", { class: "typing-message__loader-container" }, [
|
|
19864
19864
|
o("div", { class: "typing-message__loader" })
|
|
19865
19865
|
], -1))
|
|
@@ -19903,7 +19903,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19903
19903
|
return x.position === "left" ? "video-message__left" : "video-message__right";
|
|
19904
19904
|
}
|
|
19905
19905
|
const u = m(), d = m(), A = m(!1), C = m(!1), L = m(!1), w = m(!1), g = m("");
|
|
19906
|
-
|
|
19906
|
+
t2(
|
|
19907
19907
|
() => s.message.text,
|
|
19908
19908
|
() => {
|
|
19909
19909
|
s.message.text && (g.value = q2(s.message.text));
|
|
@@ -19915,21 +19915,21 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19915
19915
|
}
|
|
19916
19916
|
const p = () => {
|
|
19917
19917
|
f("action", { messageId: s.message.messageId, type: "views" });
|
|
19918
|
-
},
|
|
19918
|
+
}, y = () => {
|
|
19919
19919
|
}, k = () => {
|
|
19920
19920
|
L.value = !0, w.value = !0;
|
|
19921
19921
|
}, _ = () => {
|
|
19922
19922
|
L.value = !1, C.value = !1;
|
|
19923
|
-
},
|
|
19923
|
+
}, b = O(() => E0(s.message.status)), T = () => {
|
|
19924
19924
|
d.value && (d.value.currentTime = 0, d.value.play());
|
|
19925
19925
|
};
|
|
19926
|
-
|
|
19926
|
+
t2([u, d], ([x, S]) => {
|
|
19927
19927
|
x ? S && (S.pause(), S.currentTime = 0) : S && (S.play(), S.currentTime = 0);
|
|
19928
19928
|
});
|
|
19929
|
-
const
|
|
19929
|
+
const v = O(() => s.message.reply && s.message.text ? "0" : s.message.text ? "8px 8px 0 0" : s.message.reply ? "0 0 8px 8px" : "8px"), E = () => A.value = !1;
|
|
19930
19930
|
return (x, S) => (l(), c(q, null, [
|
|
19931
19931
|
o("div", {
|
|
19932
|
-
class:
|
|
19932
|
+
class: D(["video-message", [
|
|
19933
19933
|
r(e.message),
|
|
19934
19934
|
e.applyStyle(e.message)
|
|
19935
19935
|
]]),
|
|
@@ -19942,18 +19942,18 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19942
19942
|
src: e.message.avatar,
|
|
19943
19943
|
height: "32",
|
|
19944
19944
|
width: "32"
|
|
19945
|
-
}, null, 8, Io)) :
|
|
19946
|
-
e.message.subText && e.isFirstInSeries ? (l(), c("p", ko, N(e.message.subText), 1)) :
|
|
19945
|
+
}, null, 8, Io)) : h("", !0),
|
|
19946
|
+
e.message.subText && e.isFirstInSeries ? (l(), c("p", ko, N(e.message.subText), 1)) : h("", !0),
|
|
19947
19947
|
o("div", {
|
|
19948
|
-
class:
|
|
19948
|
+
class: D(["video-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }])
|
|
19949
19949
|
}, [
|
|
19950
|
-
e.message.reply ? (l(), z(
|
|
19950
|
+
e.message.reply ? (l(), z(M(V0), {
|
|
19951
19951
|
key: 0,
|
|
19952
19952
|
style: { margin: "10px 10px 4px 16px" },
|
|
19953
|
-
class:
|
|
19953
|
+
class: D(e.message.position),
|
|
19954
19954
|
message: e.message.reply,
|
|
19955
19955
|
onReply: i
|
|
19956
|
-
}, null, 8, ["class", "message"])) :
|
|
19956
|
+
}, null, 8, ["class", "message"])) : h("", !0),
|
|
19957
19957
|
o("div", {
|
|
19958
19958
|
class: "video-message__preview-button",
|
|
19959
19959
|
onClick: S[0] || (S[0] = (R) => A.value = !0),
|
|
@@ -19964,7 +19964,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19964
19964
|
ref_key: "previewPlayer",
|
|
19965
19965
|
ref: d,
|
|
19966
19966
|
class: "video-message__video",
|
|
19967
|
-
style: C2({ borderRadius:
|
|
19967
|
+
style: C2({ borderRadius: v.value }),
|
|
19968
19968
|
src: e.message.url,
|
|
19969
19969
|
muted: !0,
|
|
19970
19970
|
autoplay: "",
|
|
@@ -19980,16 +19980,16 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
19980
19980
|
}, [
|
|
19981
19981
|
S[3] || (S[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
19982
19982
|
o("p", null, N(e.message.views), 1)
|
|
19983
|
-
])) :
|
|
19983
|
+
])) : h("", !0),
|
|
19984
19984
|
o("span", xo, N(e.message.time), 1),
|
|
19985
|
-
r(e.message) === "video-message__right" &&
|
|
19985
|
+
r(e.message) === "video-message__right" && M(D0).includes(e.message.status) ? (l(), c("div", {
|
|
19986
19986
|
key: 1,
|
|
19987
|
-
class:
|
|
19987
|
+
class: D(["video-message__status", b.value])
|
|
19988
19988
|
}, [
|
|
19989
|
-
e.message.status !== "sent" ? (l(), c("span", Do)) :
|
|
19989
|
+
e.message.status !== "sent" ? (l(), c("span", Do)) : h("", !0),
|
|
19990
19990
|
S[4] || (S[4] = o("span", { class: "pi pi-check" }, null, -1))
|
|
19991
|
-
], 2)) :
|
|
19992
|
-
])) :
|
|
19991
|
+
], 2)) : h("", !0)
|
|
19992
|
+
])) : h("", !0)
|
|
19993
19993
|
]),
|
|
19994
19994
|
_: 1
|
|
19995
19995
|
}),
|
|
@@ -20004,7 +20004,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
20004
20004
|
onClick: q0(() => "//Предотвращаем всплытие события клика", ["stop"])
|
|
20005
20005
|
}, [...S[5] || (S[5] = [
|
|
20006
20006
|
o("span", { class: "pi pi-download" }, null, -1)
|
|
20007
|
-
])], 8, Eo)) :
|
|
20007
|
+
])], 8, Eo)) : h("", !0)
|
|
20008
20008
|
]),
|
|
20009
20009
|
_: 1
|
|
20010
20010
|
})
|
|
@@ -20017,18 +20017,18 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
20017
20017
|
onClick: S[2] || (S[2] = (R) => C.value = !C.value)
|
|
20018
20018
|
}, [...S[6] || (S[6] = [
|
|
20019
20019
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
20020
|
-
])])) :
|
|
20020
|
+
])])) : h("", !0)
|
|
20021
20021
|
]),
|
|
20022
20022
|
_: 1
|
|
20023
20023
|
}),
|
|
20024
20024
|
Y(u2, { name: "context-menu" }, {
|
|
20025
20025
|
default: W(() => [
|
|
20026
|
-
C.value && e.message.actions ? (l(), z(
|
|
20026
|
+
C.value && e.message.actions ? (l(), z(M(x0), {
|
|
20027
20027
|
key: 0,
|
|
20028
20028
|
class: "video-message__context-menu",
|
|
20029
20029
|
actions: e.message.actions,
|
|
20030
|
-
onClick:
|
|
20031
|
-
}, null, 8, ["actions"])) :
|
|
20030
|
+
onClick: y
|
|
20031
|
+
}, null, 8, ["actions"])) : h("", !0)
|
|
20032
20032
|
]),
|
|
20033
20033
|
_: 1
|
|
20034
20034
|
}),
|
|
@@ -20037,26 +20037,26 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
20037
20037
|
onClick: I,
|
|
20038
20038
|
innerHTML: g.value
|
|
20039
20039
|
}, null, 8, jo)
|
|
20040
|
-
])) :
|
|
20041
|
-
e.message.linkPreview ? (l(), z(
|
|
20040
|
+
])) : h("", !0),
|
|
20041
|
+
e.message.linkPreview ? (l(), z(M(n1), {
|
|
20042
20042
|
key: 2,
|
|
20043
|
-
class:
|
|
20043
|
+
class: D(["video-message__link-preview", e.message.position]),
|
|
20044
20044
|
"link-preview": e.message.linkPreview
|
|
20045
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
20046
|
-
e.message.embed ? (l(), z(
|
|
20045
|
+
}, null, 8, ["class", "link-preview"])) : h("", !0),
|
|
20046
|
+
e.message.embed ? (l(), z(M(t1), {
|
|
20047
20047
|
key: 3,
|
|
20048
|
-
class:
|
|
20048
|
+
class: D(e.message.position),
|
|
20049
20049
|
embed: e.message.embed
|
|
20050
|
-
}, null, 8, ["class", "embed"])) :
|
|
20050
|
+
}, null, 8, ["class", "embed"])) : h("", !0)
|
|
20051
20051
|
], 2)
|
|
20052
20052
|
], 42, wo),
|
|
20053
20053
|
(l(), z(D2, { to: "body" }, [
|
|
20054
20054
|
Y(u2, { name: "modal-fade" }, {
|
|
20055
20055
|
default: W(() => [
|
|
20056
|
-
A.value ? (l(), z(
|
|
20056
|
+
A.value ? (l(), z(M(i1), {
|
|
20057
20057
|
key: 0,
|
|
20058
|
-
"data-theme":
|
|
20059
|
-
onClose:
|
|
20058
|
+
"data-theme": M(a)().theme ? M(a)().theme : "light",
|
|
20059
|
+
onClose: E
|
|
20060
20060
|
}, {
|
|
20061
20061
|
default: W(() => [
|
|
20062
20062
|
o("video", {
|
|
@@ -20070,7 +20070,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
20070
20070
|
}, null, 8, So)
|
|
20071
20071
|
]),
|
|
20072
20072
|
_: 1
|
|
20073
|
-
}, 8, ["data-theme"])) :
|
|
20073
|
+
}, 8, ["data-theme"])) : h("", !0)
|
|
20074
20074
|
]),
|
|
20075
20075
|
_: 1
|
|
20076
20076
|
})
|
|
@@ -20169,7 +20169,7 @@ const qs = ["messageId"], Ws = ["src"], Ks = {
|
|
|
20169
20169
|
o("button", { onClick: u }, " Отмена ")
|
|
20170
20170
|
])
|
|
20171
20171
|
])
|
|
20172
|
-
])) :
|
|
20172
|
+
])) : h("", !0)
|
|
20173
20173
|
]));
|
|
20174
20174
|
}
|
|
20175
20175
|
}, Pr = /* @__PURE__ */ j(Yo, [["__scopeId", "data-v-9121a142"]]), Po = {}, qo = {
|
|
@@ -20223,61 +20223,61 @@ const Ko = /* @__PURE__ */ j(Po, [["render", Wo]]), Jo = { class: "chat-input__c
|
|
|
20223
20223
|
emits: ["send", "typing"],
|
|
20224
20224
|
setup(e, { emit: n }) {
|
|
20225
20225
|
const t = n, a = l2("chatAppId"), { resetMessage: s, getMessage: f, setMessageText: i, setForceSendMessage: r } = R2(a), u = m(), d = s6("", 2e3), A = m(), C = e, L = O(() => !!(C.state == "disabled" || f().text == "" && !f().file || f().isRecording));
|
|
20226
|
-
|
|
20226
|
+
t2(
|
|
20227
20227
|
() => d.value,
|
|
20228
20228
|
() => {
|
|
20229
20229
|
t("typing");
|
|
20230
20230
|
}
|
|
20231
|
-
),
|
|
20231
|
+
), t2(
|
|
20232
20232
|
() => C.focusOnInputArea,
|
|
20233
20233
|
() => {
|
|
20234
20234
|
C.focusOnInputArea && M2(() => {
|
|
20235
|
-
const p =
|
|
20235
|
+
const p = M(u);
|
|
20236
20236
|
p == null || p.focus();
|
|
20237
20237
|
});
|
|
20238
20238
|
},
|
|
20239
20239
|
{ immediate: !0 }
|
|
20240
|
-
),
|
|
20240
|
+
), t2(
|
|
20241
20241
|
() => f().text,
|
|
20242
20242
|
() => {
|
|
20243
20243
|
M2(() => {
|
|
20244
20244
|
const p = u.value;
|
|
20245
20245
|
if (!p) return;
|
|
20246
|
-
const
|
|
20246
|
+
const y = p.scrollTop;
|
|
20247
20247
|
p.style.height = "auto";
|
|
20248
|
-
const _ = parseFloat(getComputedStyle(p).lineHeight) * 11,
|
|
20249
|
-
!f().text.trim() ||
|
|
20248
|
+
const _ = parseFloat(getComputedStyle(p).lineHeight) * 11, b = p.scrollHeight;
|
|
20249
|
+
!f().text.trim() || b <= 61 ? (p.style.height = "40px", p.style.overflowY = "hidden") : b <= _ ? (p.style.height = b + "px", p.style.overflowY = "hidden") : (p.style.height = _ + "px", p.style.overflowY = "auto", p.scrollTop = y);
|
|
20250
20250
|
});
|
|
20251
20251
|
},
|
|
20252
20252
|
{ immediate: !0 }
|
|
20253
|
-
),
|
|
20253
|
+
), t2(
|
|
20254
20254
|
() => f().forceSend,
|
|
20255
20255
|
() => {
|
|
20256
20256
|
f().forceSend && (I(), r(!1));
|
|
20257
20257
|
}
|
|
20258
20258
|
);
|
|
20259
20259
|
const w = (p) => {
|
|
20260
|
-
const
|
|
20261
|
-
t("typing",
|
|
20260
|
+
const y = p.target;
|
|
20261
|
+
t("typing", y.value);
|
|
20262
20262
|
}, g = (p) => {
|
|
20263
20263
|
if (p.shiftKey) {
|
|
20264
20264
|
if (u.value instanceof HTMLTextAreaElement) {
|
|
20265
|
-
let
|
|
20266
|
-
|
|
20267
|
-
`,
|
|
20265
|
+
let y = u.value.selectionStart;
|
|
20266
|
+
y && (u.value.setRangeText(`
|
|
20267
|
+
`, y, y, "end"), i(u.value.value));
|
|
20268
20268
|
}
|
|
20269
20269
|
p.preventDefault();
|
|
20270
20270
|
} else if (p.ctrlKey) {
|
|
20271
20271
|
if (u.value instanceof HTMLTextAreaElement) {
|
|
20272
|
-
let
|
|
20273
|
-
|
|
20274
|
-
`,
|
|
20272
|
+
let y = u.value.selectionStart;
|
|
20273
|
+
y && (u.value.setRangeText(`
|
|
20274
|
+
`, y, y, "end"), i(u.value.value));
|
|
20275
20275
|
}
|
|
20276
20276
|
p.preventDefault();
|
|
20277
20277
|
} else
|
|
20278
20278
|
p.preventDefault(), I();
|
|
20279
20279
|
}, I = () => {
|
|
20280
|
-
var
|
|
20280
|
+
var y, k;
|
|
20281
20281
|
const p = m(f());
|
|
20282
20282
|
if (p.value.text != "" || p.value.file) {
|
|
20283
20283
|
const _ = {
|
|
@@ -20288,41 +20288,41 @@ const Ko = /* @__PURE__ */ j(Po, [["render", Wo]]), Jo = { class: "chat-input__c
|
|
|
20288
20288
|
size: "",
|
|
20289
20289
|
reply: void 0
|
|
20290
20290
|
};
|
|
20291
|
-
p.value.file ? (_.type = "message." + p.value.file.type, _.url = p.value.file.url, _.filename = p.value.file.name, _.size = (
|
|
20291
|
+
p.value.file ? (_.type = "message." + p.value.file.type, _.url = p.value.file.url, _.filename = p.value.file.name, _.size = (y = p.value.file.size) == null ? void 0 : y.toString(), _.text = (k = p == null ? void 0 : p.value) == null ? void 0 : k.text.trim()) : (_.type = "message.text", _.text = p.value.text.trim()), p.value.reply && (_.reply = p.value.reply), t("send", _), s(), A.value = void 0, u.value && u.value.focus();
|
|
20292
20292
|
}
|
|
20293
20293
|
};
|
|
20294
|
-
return (p,
|
|
20294
|
+
return (p, y) => (l(), c("div", Jo, [
|
|
20295
20295
|
o("div", {
|
|
20296
|
-
id: "chat-input-reply-line-" +
|
|
20296
|
+
id: "chat-input-reply-line-" + M(a),
|
|
20297
20297
|
class: "chat-input__reply-line"
|
|
20298
20298
|
}, null, 8, Go),
|
|
20299
20299
|
o("div", {
|
|
20300
|
-
id: "chat-input-file-line-" +
|
|
20300
|
+
id: "chat-input-file-line-" + M(a),
|
|
20301
20301
|
class: "chat-input__file-line"
|
|
20302
20302
|
}, null, 8, Xo),
|
|
20303
20303
|
o("div", el, [
|
|
20304
20304
|
r2(p.$slots, "inline-buttons", {}, void 0, !0)
|
|
20305
20305
|
]),
|
|
20306
|
-
e.disabledPlaceholder && (e.state == "disabled" ||
|
|
20306
|
+
e.disabledPlaceholder && (e.state == "disabled" || M(f)().isRecording) ? (l(), c("div", tl, N(e.disabledPlaceholder), 1)) : p2((l(), c("textarea", {
|
|
20307
20307
|
key: 1,
|
|
20308
20308
|
ref_key: "refInput",
|
|
20309
20309
|
ref: u,
|
|
20310
|
-
"onUpdate:modelValue":
|
|
20311
|
-
disabled: e.state == "disabled" ||
|
|
20310
|
+
"onUpdate:modelValue": y[0] || (y[0] = (k) => M(f)().text = k),
|
|
20311
|
+
disabled: e.state == "disabled" || M(f)().isRecording,
|
|
20312
20312
|
class: "chat-input__input",
|
|
20313
|
-
placeholder:
|
|
20313
|
+
placeholder: M(z2)("component.ChatInput.InputPlaceholder"),
|
|
20314
20314
|
onKeydown: M3(g, ["enter"]),
|
|
20315
20315
|
onInput: w
|
|
20316
20316
|
}, null, 40, nl)), [
|
|
20317
|
-
[N0,
|
|
20317
|
+
[N0, M(f)().text]
|
|
20318
20318
|
]),
|
|
20319
20319
|
o("button", {
|
|
20320
|
-
class:
|
|
20321
|
-
disabled:
|
|
20320
|
+
class: D(["chat-input__button", { "chat-input__button-disabled": L.value }]),
|
|
20321
|
+
disabled: M(f)().isRecording,
|
|
20322
20322
|
onClick: I
|
|
20323
20323
|
}, [
|
|
20324
20324
|
o("span", sl, [
|
|
20325
|
-
Y(
|
|
20325
|
+
Y(M(Ko))
|
|
20326
20326
|
])
|
|
20327
20327
|
], 10, al),
|
|
20328
20328
|
o("div", fl, [
|
|
@@ -20395,131 +20395,105 @@ const Ko = /* @__PURE__ */ j(Po, [["render", Wo]]), Jo = { class: "chat-input__c
|
|
|
20395
20395
|
const t = e, a = n, s = m(""), f = m(), i = m(!1), r = m(!1), u = m(!1);
|
|
20396
20396
|
function d() {
|
|
20397
20397
|
M2(function() {
|
|
20398
|
-
const
|
|
20399
|
-
|
|
20398
|
+
const b = M(f);
|
|
20399
|
+
b.scrollTop = 0;
|
|
20400
20400
|
});
|
|
20401
20401
|
}
|
|
20402
20402
|
const A = () => {
|
|
20403
|
-
const
|
|
20404
|
-
|
|
20403
|
+
const b = M(f), T = b.scrollHeight - b.scrollTop - b.clientHeight;
|
|
20404
|
+
b.scrollTop > 500 && (r.value = !0), b.scrollTop <= 500 && (r.value = !1), u.value ? T < 300 && (i.value = !0) : (T < 300 && (i.value = !0), T >= 300 && (i.value = !1));
|
|
20405
20405
|
};
|
|
20406
|
-
|
|
20406
|
+
t2(
|
|
20407
20407
|
() => i.value,
|
|
20408
20408
|
() => {
|
|
20409
20409
|
i.value && a("loadMoreChats");
|
|
20410
20410
|
}
|
|
20411
|
-
),
|
|
20411
|
+
), t2(
|
|
20412
20412
|
() => t.chats,
|
|
20413
20413
|
() => {
|
|
20414
20414
|
if (i.value = !1, u.value) {
|
|
20415
|
-
const
|
|
20416
|
-
|
|
20415
|
+
const b = M(f);
|
|
20416
|
+
b.scrollTop = b.scrollHeight;
|
|
20417
20417
|
}
|
|
20418
20418
|
}
|
|
20419
20419
|
);
|
|
20420
|
-
const C = (
|
|
20421
|
-
const T =
|
|
20422
|
-
(
|
|
20420
|
+
const C = (b) => {
|
|
20421
|
+
const T = M(f);
|
|
20422
|
+
(b.offsetX > T.clientWidth || b.offsetY > T.clientHeight) && (u.value = !0);
|
|
20423
20423
|
}, L = () => {
|
|
20424
20424
|
u.value = !1;
|
|
20425
|
-
}, w = (
|
|
20426
|
-
a("expand",
|
|
20427
|
-
}, g = (
|
|
20428
|
-
t.chats.forEach((
|
|
20429
|
-
|
|
20430
|
-
|
|
20425
|
+
}, w = (b) => {
|
|
20426
|
+
a("expand", b);
|
|
20427
|
+
}, g = (b) => {
|
|
20428
|
+
t.chats.forEach((v) => {
|
|
20429
|
+
v.isSelected = !1, v.dialogs && v.dialogs.forEach((E) => {
|
|
20430
|
+
E.isSelected = !1;
|
|
20431
20431
|
});
|
|
20432
|
-
}),
|
|
20433
|
-
const T = t.chats.find((
|
|
20434
|
-
T.isSelected = !0, a("select",
|
|
20435
|
-
}, I = (
|
|
20432
|
+
}), b.dialog && I(b.dialog);
|
|
20433
|
+
const T = t.chats.find((v) => v.chatId === b.chat.chatId);
|
|
20434
|
+
T.isSelected = !0, a("select", b);
|
|
20435
|
+
}, I = (b) => {
|
|
20436
20436
|
t.chats.forEach((T) => {
|
|
20437
|
-
T.isSelected = !1, T.dialogs && T.dialogs.forEach((
|
|
20438
|
-
|
|
20437
|
+
T.isSelected = !1, T.dialogs && T.dialogs.forEach((v) => {
|
|
20438
|
+
v.isSelected = !1, v.dialogId == b.dialogId && (v.isSelected = !0);
|
|
20439
20439
|
});
|
|
20440
20440
|
});
|
|
20441
|
-
}, p = () => {
|
|
20442
|
-
|
|
20443
|
-
if (
|
|
20444
|
-
|
|
20445
|
-
|
|
20446
|
-
|
|
20447
|
-
|
|
20448
|
-
|
|
20449
|
-
|
|
20450
|
-
|
|
20451
|
-
|
|
20452
|
-
if (
|
|
20453
|
-
|
|
20454
|
-
if (
|
|
20455
|
-
|
|
20456
|
-
|
|
20457
|
-
|
|
20458
|
-
|
|
20459
|
-
|
|
20460
|
-
|
|
20461
|
-
|
|
20462
|
-
if (t.activeTabId === "countUnread") {
|
|
20463
|
-
if (h.countUnread <= 0) return !1;
|
|
20464
|
-
} else if (t.activeTabId.startsWith("tag_") && (!((D = h.contact) != null && D.tags) || !h.contact.tags.some((x) => x.tagId === t.activeTabId)))
|
|
20465
|
-
return !1;
|
|
20466
|
-
}
|
|
20467
|
-
return t.searchQuery && t.searchQuery.trim() !== "" ? !0 : t.filterQuery ? h.name.includes(t.filterQuery) || h.metadata.includes(t.filterQuery) : h.name.includes(s.value) || h.metadata.includes(s.value);
|
|
20468
|
-
});
|
|
20469
|
-
return console.log("📊 ChatList filtering result:", {
|
|
20470
|
-
filteredChats: M.length,
|
|
20471
|
-
firstFewChats: M.slice(0, 3).map((h) => ({ id: h.chatId, name: h.name }))
|
|
20472
|
-
}), M;
|
|
20473
|
-
}, b = (M) => {
|
|
20474
|
-
s.value = M, M.trim() !== "" ? a("search", M) : a("clear-search");
|
|
20475
|
-
}, k = (M) => a("action", M), _ = (M) => {
|
|
20476
|
-
a("tab-click", M);
|
|
20441
|
+
}, p = () => !t.chats || t.chats.length === 0 ? [] : t.chats.toSorted((T, v) => {
|
|
20442
|
+
if (Number(T["lastActivity.timestamp"]) > Number(v["lastActivity.timestamp"])) return -1;
|
|
20443
|
+
if (Number(T["lastActivity.timestamp"]) < Number(v["lastActivity.timestamp"])) return 1;
|
|
20444
|
+
if (Number(T["lastActivity.timestamp"]) == Number(v["lastActivity.timestamp"])) return 0;
|
|
20445
|
+
}).toSorted((T, v) => {
|
|
20446
|
+
if (T.countUnread > v.countUnread) return -1;
|
|
20447
|
+
if (T.countUnread < v.countUnread) return 1;
|
|
20448
|
+
if (T.countUnread == v.countUnread) return 0;
|
|
20449
|
+
}).filter((T) => {
|
|
20450
|
+
var v;
|
|
20451
|
+
if (t.activeTabId !== "all") {
|
|
20452
|
+
if (t.activeTabId === "countUnread") {
|
|
20453
|
+
if (T.countUnread <= 0) return !1;
|
|
20454
|
+
} else if (t.activeTabId.startsWith("tag_") && (!((v = T.contact) != null && v.tags) || !T.contact.tags.some((E) => E.tagId === t.activeTabId)))
|
|
20455
|
+
return !1;
|
|
20456
|
+
}
|
|
20457
|
+
return t.searchQuery && t.searchQuery.trim() !== "" ? !0 : t.filterQuery ? T.name.includes(t.filterQuery) || T.metadata.includes(t.filterQuery) : T.name.includes(s.value) || T.metadata.includes(s.value);
|
|
20458
|
+
}), y = (b) => {
|
|
20459
|
+
s.value = b, b.trim() !== "" ? a("search", b) : a("clear-search");
|
|
20460
|
+
}, k = (b) => a("action", b), _ = (b) => {
|
|
20461
|
+
a("tab-click", b);
|
|
20477
20462
|
};
|
|
20478
|
-
return
|
|
20479
|
-
console.log("🔄 ChatList props.chats changed:", {
|
|
20480
|
-
oldLength: (T == null ? void 0 : T.length) || 0,
|
|
20481
|
-
newLength: (M == null ? void 0 : M.length) || 0,
|
|
20482
|
-
searchQuery: t.searchQuery
|
|
20483
|
-
});
|
|
20484
|
-
}, { deep: !0 }), X(() => t.searchQuery, (M, T) => {
|
|
20485
|
-
console.log("🔄 ChatList props.searchQuery changed:", {
|
|
20486
|
-
oldQuery: T,
|
|
20487
|
-
newQuery: M
|
|
20488
|
-
});
|
|
20489
|
-
}), (M, T) => (l(), c("div", ol, [
|
|
20463
|
+
return (b, T) => (l(), c("div", ol, [
|
|
20490
20464
|
o("div", ll, [
|
|
20491
|
-
e.titleEnabled ? (l(), c("h2", rl, N(
|
|
20492
|
-
r2(
|
|
20465
|
+
e.titleEnabled ? (l(), c("h2", rl, N(M(z2)("component.ChatList.Title")), 1)) : h("", !0),
|
|
20466
|
+
r2(b.$slots, "actions", {}, void 0, !0)
|
|
20493
20467
|
]),
|
|
20494
|
-
r2(
|
|
20495
|
-
e.filterEnabled ? (l(), z(
|
|
20468
|
+
r2(b.$slots, "sidebar", {}, void 0, !0),
|
|
20469
|
+
e.filterEnabled ? (l(), z(M(Xn), {
|
|
20496
20470
|
key: 0,
|
|
20497
20471
|
class: "chat-list__filter",
|
|
20498
|
-
onUpdate:
|
|
20499
|
-
})) :
|
|
20500
|
-
e.dialogTabs && e.dialogTabs.length > 0 ? (l(), z(
|
|
20472
|
+
onUpdate: y
|
|
20473
|
+
})) : h("", !0),
|
|
20474
|
+
e.dialogTabs && e.dialogTabs.length > 0 ? (l(), z(M(Ia), {
|
|
20501
20475
|
key: 1,
|
|
20502
20476
|
tabs: e.dialogTabs,
|
|
20503
20477
|
onTabClick: _
|
|
20504
|
-
}, null, 8, ["tabs"])) :
|
|
20478
|
+
}, null, 8, ["tabs"])) : h("", !0),
|
|
20505
20479
|
e.isSearching || e.searchQuery ? (l(), c("div", cl, [
|
|
20506
20480
|
o("div", ul, [
|
|
20507
20481
|
o("div", dl, [
|
|
20508
20482
|
e.isSearching ? (l(), c("span", Al, N(e.searchProgress || "Поиск..."), 1)) : (l(), c("span", Cl, [
|
|
20509
20483
|
v0(' Поиск "' + N(e.searchQuery) + '" завершён ', 1),
|
|
20510
|
-
e.searchStats.loaded > 0 ? (l(), c("span", gl, " (" + N(e.searchStats.loaded) + " " + N(e.searchStats.total !== "?" ? `из ${e.searchStats.total}` : "") + ") ", 1)) :
|
|
20484
|
+
e.searchStats.loaded > 0 ? (l(), c("span", gl, " (" + N(e.searchStats.loaded) + " " + N(e.searchStats.total !== "?" ? `из ${e.searchStats.total}` : "") + ") ", 1)) : h("", !0)
|
|
20511
20485
|
]))
|
|
20512
20486
|
]),
|
|
20513
20487
|
e.searchQuery ? (l(), c("button", {
|
|
20514
20488
|
key: 0,
|
|
20515
20489
|
class: "chat-list__search-clear",
|
|
20516
20490
|
title: "Очистить поиск",
|
|
20517
|
-
onClick: T[0] || (T[0] = (
|
|
20491
|
+
onClick: T[0] || (T[0] = (v) => a("clear-search"))
|
|
20518
20492
|
}, [...T[1] || (T[1] = [
|
|
20519
20493
|
o("i", { class: "pi pi-times" }, null, -1)
|
|
20520
|
-
])])) :
|
|
20494
|
+
])])) : h("", !0)
|
|
20521
20495
|
])
|
|
20522
|
-
])) :
|
|
20496
|
+
])) : h("", !0),
|
|
20523
20497
|
o("div", {
|
|
20524
20498
|
ref_key: "refChatList",
|
|
20525
20499
|
ref: f,
|
|
@@ -20529,30 +20503,30 @@ const Ko = /* @__PURE__ */ j(Po, [["render", Wo]]), Jo = { class: "chat-input__c
|
|
|
20529
20503
|
onMouseup: L
|
|
20530
20504
|
}, [
|
|
20531
20505
|
o("div", Ll, [
|
|
20532
|
-
(l(!0), c(q, null, c2(p().filter((
|
|
20533
|
-
key:
|
|
20506
|
+
(l(!0), c(q, null, c2(p().filter((v) => v.isFixedTop), (v) => (l(), z(M(n3), {
|
|
20507
|
+
key: v.chatId,
|
|
20534
20508
|
class: "chat-list__item",
|
|
20535
|
-
chat:
|
|
20509
|
+
chat: v,
|
|
20536
20510
|
onSelect: g,
|
|
20537
20511
|
onExpand: w,
|
|
20538
20512
|
onAction: k
|
|
20539
20513
|
}, null, 8, ["chat"]))), 128))
|
|
20540
20514
|
]),
|
|
20541
20515
|
o("div", pl, [
|
|
20542
|
-
(l(!0), c(q, null, c2(p().filter((
|
|
20543
|
-
key:
|
|
20516
|
+
(l(!0), c(q, null, c2(p().filter((v) => !v.isFixedBottom && !v.isFixedTop), (v) => (l(), z(M(n3), {
|
|
20517
|
+
key: v.chatId,
|
|
20544
20518
|
class: "chat-list__item",
|
|
20545
|
-
chat:
|
|
20519
|
+
chat: v,
|
|
20546
20520
|
onSelect: g,
|
|
20547
20521
|
onExpand: w,
|
|
20548
20522
|
onAction: k
|
|
20549
20523
|
}, null, 8, ["chat"]))), 128))
|
|
20550
20524
|
]),
|
|
20551
20525
|
o("div", ml, [
|
|
20552
|
-
(l(!0), c(q, null, c2(p().filter((
|
|
20553
|
-
key:
|
|
20526
|
+
(l(!0), c(q, null, c2(p().filter((v) => v.isFixedBottom), (v) => (l(), z(M(n3), {
|
|
20527
|
+
key: v.chatId,
|
|
20554
20528
|
class: "chat-list__item",
|
|
20555
|
-
chat:
|
|
20529
|
+
chat: v,
|
|
20556
20530
|
onSelect: g,
|
|
20557
20531
|
onExpand: w,
|
|
20558
20532
|
onAction: k
|
|
@@ -20567,13 +20541,13 @@ const Ko = /* @__PURE__ */ j(Po, [["render", Wo]]), Jo = { class: "chat-input__c
|
|
|
20567
20541
|
onClick: d
|
|
20568
20542
|
}, [...T[2] || (T[2] = [
|
|
20569
20543
|
o("span", { class: "pi pi-angle-up chat-list__icon-down" }, null, -1)
|
|
20570
|
-
])])) :
|
|
20544
|
+
])])) : h("", !0)
|
|
20571
20545
|
]),
|
|
20572
20546
|
_: 1
|
|
20573
20547
|
})
|
|
20574
20548
|
]));
|
|
20575
20549
|
}
|
|
20576
|
-
}, Wr = /* @__PURE__ */ j(hl, [["__scopeId", "data-v-
|
|
20550
|
+
}, Wr = /* @__PURE__ */ j(hl, [["__scopeId", "data-v-1cb93c92"]]);
|
|
20577
20551
|
function vl(e, n) {
|
|
20578
20552
|
let t = null;
|
|
20579
20553
|
return function(...s) {
|
|
@@ -20655,37 +20629,37 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20655
20629
|
setup(e, { emit: n }) {
|
|
20656
20630
|
const t = e, a = m(), s = m(), f = m(), i = m(!1), r = m(!1), u = m(!1), d = m(!1), A = m(!1), C = m(!1), L = m(!1), w = m("");
|
|
20657
20631
|
let g = null;
|
|
20658
|
-
const I = m(!1), p = m(0),
|
|
20632
|
+
const I = m(!1), p = m(0), y = m(0), k = m(!1), _ = m(!1), b = m(0), T = m(0), v = l2("chatAppId"), { setReply: E, getMessage: x, resetReply: S } = R2(v), R = n, X = O(() => !!(r.value && t.objects.length > 0 && t.objects[t.objects.length - 1].keyboard)), Q = ($) => {
|
|
20659
20633
|
R("keyboardAction", $);
|
|
20660
20634
|
}, F = ($) => {
|
|
20661
20635
|
R("feedAction", $);
|
|
20662
20636
|
};
|
|
20663
20637
|
function n2($ = !0) {
|
|
20664
|
-
const H =
|
|
20638
|
+
const H = M(s);
|
|
20665
20639
|
let P = 0;
|
|
20666
20640
|
f.value && (P = f.value.refKeyboard.clientHeight);
|
|
20667
20641
|
const s2 = 100, o2 = H.scrollHeight - H.scrollTop - H.clientHeight;
|
|
20668
|
-
o2 < s2 + P ? (i.value = !1, r.value = !0) : (i.value = !0, r.value = !1), C.value ? (H.scrollTop < 300 && (A.value = !1, u.value = !1), o2 < 300 && (d.value = !1, A.value = !0)) : $ && (H.scrollTop < 300 && (p.value = H.scrollHeight,
|
|
20642
|
+
o2 < s2 + P ? (i.value = !1, r.value = !0) : (i.value = !0, r.value = !1), C.value ? (H.scrollTop < 300 && (A.value = !1, u.value = !1), o2 < 300 && (d.value = !1, A.value = !0)) : $ && (H.scrollTop < 300 && (p.value = H.scrollHeight, y.value = H.scrollTop, k.value = !0, u.value = !1), o2 < 300 && (d.value = !1)), o0(), L.value = !0, g && window.clearTimeout(g), g = window.setTimeout(() => {
|
|
20669
20643
|
L.value = !1;
|
|
20670
20644
|
}, 500);
|
|
20671
20645
|
}
|
|
20672
|
-
|
|
20646
|
+
t2(
|
|
20673
20647
|
() => [d.value, u.value],
|
|
20674
20648
|
() => {
|
|
20675
20649
|
d.value || R("loadMoreDown"), u.value || R("loadMore");
|
|
20676
20650
|
}
|
|
20677
|
-
),
|
|
20651
|
+
), t2(
|
|
20678
20652
|
() => t.isLoadingMore,
|
|
20679
20653
|
($, H) => {
|
|
20680
|
-
H === !1 && $ === !0 && (T.value = t.objects.length,
|
|
20654
|
+
H === !1 && $ === !0 && (T.value = t.objects.length, b.value = 0), H === !0 && $ === !1 && (M2(() => {
|
|
20681
20655
|
setTimeout(() => {
|
|
20682
20656
|
try {
|
|
20683
|
-
const P =
|
|
20657
|
+
const P = M(s);
|
|
20684
20658
|
if (k.value && P) {
|
|
20685
20659
|
const s2 = P.style.scrollBehavior;
|
|
20686
20660
|
P.style.scrollBehavior = "auto";
|
|
20687
20661
|
const o2 = P.scrollHeight - p.value;
|
|
20688
|
-
P.scrollTop =
|
|
20662
|
+
P.scrollTop = y.value + o2, setTimeout(() => {
|
|
20689
20663
|
P.style.scrollBehavior = s2 || "auto";
|
|
20690
20664
|
}, 50);
|
|
20691
20665
|
}
|
|
@@ -20699,7 +20673,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20699
20673
|
const P = t.objects;
|
|
20700
20674
|
if (P && P.length > T.value) {
|
|
20701
20675
|
const s2 = P.length - T.value;
|
|
20702
|
-
|
|
20676
|
+
b.value = s2, M2(() => {
|
|
20703
20677
|
const o2 = document.querySelectorAll(".tracking-message");
|
|
20704
20678
|
Array.from(o2).slice(0, s2).forEach((v2) => {
|
|
20705
20679
|
v2.classList.add("new-message");
|
|
@@ -20720,7 +20694,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20720
20694
|
}), setTimeout(() => {
|
|
20721
20695
|
v2.forEach((K2) => {
|
|
20722
20696
|
K2.classList.remove("new-message", "animate");
|
|
20723
|
-
}),
|
|
20697
|
+
}), b.value = 0;
|
|
20724
20698
|
}, s2 * 150 + 1500);
|
|
20725
20699
|
return;
|
|
20726
20700
|
}
|
|
@@ -20735,17 +20709,17 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20735
20709
|
}), setTimeout(() => {
|
|
20736
20710
|
o2.forEach((b2) => {
|
|
20737
20711
|
b2.classList.remove("new-message", "animate");
|
|
20738
|
-
}),
|
|
20712
|
+
}), b.value = 0;
|
|
20739
20713
|
}, s2 * 150 + 1500);
|
|
20740
20714
|
} else
|
|
20741
|
-
|
|
20715
|
+
b.value = 0;
|
|
20742
20716
|
}, 50);
|
|
20743
20717
|
}
|
|
20744
20718
|
}));
|
|
20745
20719
|
}
|
|
20746
20720
|
);
|
|
20747
20721
|
const i2 = ($) => {
|
|
20748
|
-
const H =
|
|
20722
|
+
const H = M(s);
|
|
20749
20723
|
($.offsetX > H.clientWidth || $.offsetY > H.clientHeight) && (C.value = !0);
|
|
20750
20724
|
}, a2 = () => {
|
|
20751
20725
|
C.value = !1;
|
|
@@ -20762,7 +20736,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20762
20736
|
})[$];
|
|
20763
20737
|
function m2() {
|
|
20764
20738
|
M2(function() {
|
|
20765
|
-
const $ =
|
|
20739
|
+
const $ = M(s);
|
|
20766
20740
|
$ && ($.style.scrollBehavior = "auto", $.scrollTop = $.scrollHeight, M2(() => {
|
|
20767
20741
|
$.scrollHeight - $.scrollTop - $.clientHeight > 10 && ($.scrollTop = $.scrollHeight);
|
|
20768
20742
|
}), setTimeout(() => {
|
|
@@ -20771,7 +20745,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20771
20745
|
});
|
|
20772
20746
|
}
|
|
20773
20747
|
const w2 = () => {
|
|
20774
|
-
const $ =
|
|
20748
|
+
const $ = M(s);
|
|
20775
20749
|
if (!$) return;
|
|
20776
20750
|
const H = () => {
|
|
20777
20751
|
$.scrollHeight - $.scrollTop - $.clientHeight < 5 || ($.scrollTop = $.scrollHeight, setTimeout(() => {
|
|
@@ -20789,11 +20763,11 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20789
20763
|
}
|
|
20790
20764
|
function E2() {
|
|
20791
20765
|
R("forceScrollToBottom"), M2(function() {
|
|
20792
|
-
const $ =
|
|
20766
|
+
const $ = M(s);
|
|
20793
20767
|
$.style.scrollBehavior = "smooth", $.scrollTop = $.scrollHeight;
|
|
20794
20768
|
});
|
|
20795
20769
|
}
|
|
20796
|
-
|
|
20770
|
+
t2(
|
|
20797
20771
|
() => t.scrollToBottom,
|
|
20798
20772
|
() => {
|
|
20799
20773
|
console.log("force scroll to bottom"), t.scrollToBottom && (m2(), setTimeout(() => {
|
|
@@ -20810,8 +20784,8 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20810
20784
|
R("clickRepliedMessage", $);
|
|
20811
20785
|
}, U = ($, H) => {
|
|
20812
20786
|
if (t.enableDoubleClickReply && ($ == null || $.preventDefault(), H.type.indexOf("system") == -1 && H.type.indexOf("typing") == -1)) {
|
|
20813
|
-
const P = document.getElementById("chat-input-reply-line-" +
|
|
20814
|
-
P && (P.style.display = "inherit"),
|
|
20787
|
+
const P = document.getElementById("chat-input-reply-line-" + v);
|
|
20788
|
+
P && (P.style.display = "inherit"), E({
|
|
20815
20789
|
messageId: H.messageId,
|
|
20816
20790
|
type: H.type,
|
|
20817
20791
|
text: H.text,
|
|
@@ -20823,25 +20797,25 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20823
20797
|
}
|
|
20824
20798
|
}, G = () => {
|
|
20825
20799
|
S();
|
|
20826
|
-
const $ = document.getElementById("chat-input-reply-line-" +
|
|
20800
|
+
const $ = document.getElementById("chat-input-reply-line-" + v);
|
|
20827
20801
|
$ && ($.style.display = "none");
|
|
20828
20802
|
}, K = ($) => {
|
|
20829
20803
|
$.forEach((H) => {
|
|
20830
20804
|
H.isIntersecting && R("messageVisible", JSON.parse(H.target.id));
|
|
20831
20805
|
});
|
|
20832
20806
|
}, A2 = {
|
|
20833
|
-
root: document.getElementById("feed-container-" +
|
|
20807
|
+
root: document.getElementById("feed-container-" + v),
|
|
20834
20808
|
rootMargin: "5px",
|
|
20835
20809
|
threshold: 0
|
|
20836
20810
|
}, I2 = new IntersectionObserver(K, A2);
|
|
20837
|
-
|
|
20811
|
+
t2(
|
|
20838
20812
|
() => t.objects,
|
|
20839
20813
|
($, H) => {
|
|
20840
20814
|
M2(() => {
|
|
20841
20815
|
if (!I.value && $.length > 0 && Q2(), H && $.length > H.length) {
|
|
20842
20816
|
const P = $.length - H.length;
|
|
20843
20817
|
setTimeout(() => {
|
|
20844
|
-
t.isLoadingMore && (
|
|
20818
|
+
t.isLoadingMore && (b.value = P, T.value = H.length, setTimeout(() => {
|
|
20845
20819
|
const s2 = document.querySelectorAll(".tracking-message.new-message");
|
|
20846
20820
|
console.log("📱 Найдено новых сообщений для анимации:", s2.length), s2.forEach((o2, b2) => {
|
|
20847
20821
|
setTimeout(() => {
|
|
@@ -20850,7 +20824,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20850
20824
|
}), setTimeout(() => {
|
|
20851
20825
|
s2.forEach((o2) => {
|
|
20852
20826
|
o2.classList.remove("new-message", "animate");
|
|
20853
|
-
}),
|
|
20827
|
+
}), b.value = 0;
|
|
20854
20828
|
}, P * 150 + 1500);
|
|
20855
20829
|
}, 50));
|
|
20856
20830
|
}, 10);
|
|
@@ -20859,13 +20833,13 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20859
20833
|
});
|
|
20860
20834
|
},
|
|
20861
20835
|
{ immediate: !0 }
|
|
20862
|
-
),
|
|
20836
|
+
), t2(
|
|
20863
20837
|
() => t.scrollTo,
|
|
20864
20838
|
() => {
|
|
20865
20839
|
var $;
|
|
20866
20840
|
if (t.scrollTo) {
|
|
20867
20841
|
const H = t.scrollTo;
|
|
20868
|
-
let P = document.getElementById(H), s2 = document.getElementById("feed-container-" +
|
|
20842
|
+
let P = document.getElementById(H), s2 = document.getElementById("feed-container-" + v);
|
|
20869
20843
|
P instanceof HTMLElement && s2 instanceof HTMLElement && (s2.scrollTop = P.offsetTop + P.clientHeight / 2 - s2.clientHeight / 2), ($ = document.getElementById(H)) == null || $.children[0].classList.add("focused-message"), setTimeout(() => {
|
|
20870
20844
|
var o2;
|
|
20871
20845
|
(o2 = document.getElementById(H)) == null || o2.children[0].classList.remove("focused-message");
|
|
@@ -20874,7 +20848,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20874
20848
|
}
|
|
20875
20849
|
);
|
|
20876
20850
|
const V2 = O(() => !t.objects || t.objects.length === 0 ? [] : t.objects.map(($, H, P) => {
|
|
20877
|
-
const s2 = H > 0 && P[H - 1].position === $.position && P[H - 1].header === $.header, o2 = H > 0 && !["message.system", "message.typing"].includes(P[H - 1].type), b2 = !s2 || !o2, v2 = t.isLoadingMore &&
|
|
20851
|
+
const s2 = H > 0 && P[H - 1].position === $.position && P[H - 1].header === $.header, o2 = H > 0 && !["message.system", "message.typing"].includes(P[H - 1].type), b2 = !s2 || !o2, v2 = t.isLoadingMore && b.value > 0 && H < b.value;
|
|
20878
20852
|
return {
|
|
20879
20853
|
...$,
|
|
20880
20854
|
isFirstInSeries: b2,
|
|
@@ -20882,7 +20856,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20882
20856
|
};
|
|
20883
20857
|
}));
|
|
20884
20858
|
function o0() {
|
|
20885
|
-
const $ =
|
|
20859
|
+
const $ = M(s);
|
|
20886
20860
|
if (!$ || !a.value) return;
|
|
20887
20861
|
const H = $.getBoundingClientRect().top;
|
|
20888
20862
|
let P = null;
|
|
@@ -20924,29 +20898,29 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20924
20898
|
}), ($, H) => (l(), c(q, null, [
|
|
20925
20899
|
e.objects.length > 0 || e.typing ? (l(), c("div", {
|
|
20926
20900
|
key: 0,
|
|
20927
|
-
id: "feed-container-" +
|
|
20901
|
+
id: "feed-container-" + M(v),
|
|
20928
20902
|
ref_key: "refFeed",
|
|
20929
20903
|
ref: s,
|
|
20930
20904
|
class: "message-feed",
|
|
20931
20905
|
style: C2({ backgroundImage: `url(${t.chatBackground})` }),
|
|
20932
|
-
onScroll: H[0] || (H[0] = (P) =>
|
|
20906
|
+
onScroll: H[0] || (H[0] = (P) => M(d2)()),
|
|
20933
20907
|
onMousedown: i2,
|
|
20934
20908
|
onMouseup: a2
|
|
20935
20909
|
}, [
|
|
20936
20910
|
Y(u2, null, {
|
|
20937
20911
|
default: W(() => [
|
|
20938
|
-
L.value ? (l(), z(
|
|
20912
|
+
L.value ? (l(), z(M(Bf), {
|
|
20939
20913
|
key: 0,
|
|
20940
20914
|
class: "message-feed__sticky-date",
|
|
20941
20915
|
text: w.value
|
|
20942
|
-
}, null, 8, ["text"])) :
|
|
20916
|
+
}, null, 8, ["text"])) : h("", !0)
|
|
20943
20917
|
]),
|
|
20944
20918
|
_: 1
|
|
20945
20919
|
}),
|
|
20946
20920
|
(l(!0), c(q, null, c2(V2.value, (P, s2) => (l(), c("div", {
|
|
20947
20921
|
id: JSON.stringify(P),
|
|
20948
20922
|
key: `${P.messageId ?? "mid"}-${s2}`,
|
|
20949
|
-
class:
|
|
20923
|
+
class: D(["tracking-message", { "new-message": P.isNewMessage }]),
|
|
20950
20924
|
onDblclick: (o2) => U(o2, P)
|
|
20951
20925
|
}, [
|
|
20952
20926
|
(l(), z(e0(W2(P.type)), {
|
|
@@ -20959,16 +20933,16 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20959
20933
|
onReply: y2
|
|
20960
20934
|
}, null, 40, ["message", "apply-style", "is-first-in-series"]))
|
|
20961
20935
|
], 42, yl))), 128)),
|
|
20962
|
-
e.typing ? (l(), z(
|
|
20936
|
+
e.typing ? (l(), z(M(d4), {
|
|
20963
20937
|
key: 0,
|
|
20964
20938
|
message: {
|
|
20965
20939
|
subText: e.typing.title,
|
|
20966
20940
|
avatar: e.typing.avatar
|
|
20967
20941
|
}
|
|
20968
|
-
}, null, 8, ["message"])) :
|
|
20942
|
+
}, null, 8, ["message"])) : h("", !0),
|
|
20969
20943
|
Y(u2, null, {
|
|
20970
20944
|
default: W(() => [
|
|
20971
|
-
|
|
20945
|
+
X.value ? (l(), z(M(mi), {
|
|
20972
20946
|
key: 0,
|
|
20973
20947
|
ref_key: "keyboardRef",
|
|
20974
20948
|
ref: f,
|
|
@@ -20976,7 +20950,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20976
20950
|
keyboard: e.objects[e.objects.length - 1].keyboard,
|
|
20977
20951
|
align: e.keyboardAlign,
|
|
20978
20952
|
onAction: Q
|
|
20979
|
-
}, null, 8, ["keyboard", "align"])) :
|
|
20953
|
+
}, null, 8, ["keyboard", "align"])) : h("", !0)
|
|
20980
20954
|
]),
|
|
20981
20955
|
_: 1
|
|
20982
20956
|
}),
|
|
@@ -20987,18 +20961,18 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
20987
20961
|
class: "message-feed__button-down",
|
|
20988
20962
|
onClick: E2
|
|
20989
20963
|
}, [
|
|
20990
|
-
e.buttonParams ? (l(), c("div", bl, N(e.buttonParams.unreadAmount), 1)) :
|
|
20964
|
+
e.buttonParams ? (l(), c("div", bl, N(e.buttonParams.unreadAmount), 1)) : h("", !0),
|
|
20991
20965
|
H[1] || (H[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
|
20992
|
-
])) :
|
|
20966
|
+
])) : h("", !0)
|
|
20993
20967
|
]),
|
|
20994
20968
|
_: 1
|
|
20995
20969
|
}),
|
|
20996
|
-
e.feedKeyboards && e.feedKeyboards.length > 0 ? (l(), z(
|
|
20970
|
+
e.feedKeyboards && e.feedKeyboards.length > 0 ? (l(), z(M(Ff), {
|
|
20997
20971
|
key: 1,
|
|
20998
20972
|
buttons: e.feedKeyboards,
|
|
20999
20973
|
align: e.feedKeyboardAlign,
|
|
21000
20974
|
onAction: F
|
|
21001
|
-
}, null, 8, ["buttons", "align"])) :
|
|
20975
|
+
}, null, 8, ["buttons", "align"])) : h("", !0)
|
|
21002
20976
|
], 44, Ml)) : (l(), c("div", {
|
|
21003
20977
|
key: 1,
|
|
21004
20978
|
ref_key: "refFeed",
|
|
@@ -21009,16 +20983,16 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
21009
20983
|
r2($.$slots, "empty-feed", {}, void 0, !0)
|
|
21010
20984
|
])
|
|
21011
20985
|
], 512)),
|
|
21012
|
-
|
|
20986
|
+
M(x)().reply ? (l(), z(D2, {
|
|
21013
20987
|
key: 2,
|
|
21014
|
-
to: "#chat-input-reply-line-" +
|
|
20988
|
+
to: "#chat-input-reply-line-" + M(v)
|
|
21015
20989
|
}, [
|
|
21016
|
-
Y(
|
|
20990
|
+
Y(M(V0), {
|
|
21017
20991
|
class: "chat-input-reply",
|
|
21018
|
-
message:
|
|
20992
|
+
message: M(x)().reply,
|
|
21019
20993
|
onReset: G
|
|
21020
20994
|
}, null, 8, ["message"])
|
|
21021
|
-
], 8, ["to"])) :
|
|
20995
|
+
], 8, ["to"])) : h("", !0)
|
|
21022
20996
|
], 64));
|
|
21023
20997
|
}
|
|
21024
20998
|
}), Kr = /* @__PURE__ */ j(wl, [["__scopeId", "data-v-7333c033"]]), Il = { class: "sidebar__scroll-container" }, kl = ["onClick"], Tl = ["src", "alt"], Nl = { key: 0 }, xl = ["onClick"], Dl = ["src", "alt"], El = ["src"], Vl = { key: 2 }, jl = { class: "sidebar__settings-container" }, Sl = { class: "sidebar__settings-btn" }, Zl = {
|
|
@@ -21043,40 +21017,40 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
21043
21017
|
emits: ["selectItem"],
|
|
21044
21018
|
setup(e, { emit: n }) {
|
|
21045
21019
|
const t = e, a = H3(t, "sidebarItems"), s = H3(t, "menuActions"), f = n, i = O(
|
|
21046
|
-
() => a.value.filter((
|
|
21020
|
+
() => a.value.filter((v) => v.isFixedBottom).sort((v, E) => E.notificationCount - v.notificationCount)
|
|
21047
21021
|
), r = O(
|
|
21048
|
-
() => a.value.filter((
|
|
21049
|
-
), u = (
|
|
21050
|
-
const
|
|
21051
|
-
f("selectItem",
|
|
21052
|
-
}, d = (
|
|
21053
|
-
|
|
21054
|
-
}, A = (
|
|
21055
|
-
const
|
|
21056
|
-
return
|
|
21057
|
-
}, C = (
|
|
21058
|
-
console.log("Выбрано действие:",
|
|
21022
|
+
() => a.value.filter((v) => !v.isFixedBottom).sort((v, E) => E.notificationCount - v.notificationCount)
|
|
21023
|
+
), u = (v) => {
|
|
21024
|
+
const E = a.value.find((x) => x.itemId === v);
|
|
21025
|
+
f("selectItem", E);
|
|
21026
|
+
}, d = (v, E) => {
|
|
21027
|
+
b(v.currentTarget), u(E);
|
|
21028
|
+
}, A = (v) => {
|
|
21029
|
+
const E = v.split(" ");
|
|
21030
|
+
return E.length > 2 ? E.slice(0, 2).join(" ") : v;
|
|
21031
|
+
}, C = (v) => {
|
|
21032
|
+
console.log("Выбрано действие:", v), typeof v.action == "function" && v.action();
|
|
21059
21033
|
}, L = () => {
|
|
21060
21034
|
console.log("Кнопка меню была нажата");
|
|
21061
|
-
}, w = m(null), g = m(!1), I = m(0), p = m(40),
|
|
21062
|
-
const
|
|
21063
|
-
if (!
|
|
21064
|
-
const x =
|
|
21065
|
-
return Math.max(0,
|
|
21035
|
+
}, w = m(null), g = m(!1), I = m(0), p = m(40), y = m(!1), k = (v) => {
|
|
21036
|
+
const E = w.value;
|
|
21037
|
+
if (!E || !v) return 0;
|
|
21038
|
+
const x = E.getBoundingClientRect(), S = v.getBoundingClientRect(), X = S.top + S.height / 2 - x.top - p.value / 2;
|
|
21039
|
+
return Math.max(0, X);
|
|
21066
21040
|
}, _ = () => {
|
|
21067
21041
|
if (!w.value) return;
|
|
21068
|
-
const
|
|
21069
|
-
|
|
21070
|
-
},
|
|
21042
|
+
const E = w.value.querySelector(".sidebar__image--active");
|
|
21043
|
+
E ? (I.value = k(E), g.value = !0) : g.value = !1;
|
|
21044
|
+
}, b = (v) => {
|
|
21071
21045
|
try {
|
|
21072
|
-
if (!
|
|
21073
|
-
const
|
|
21074
|
-
if (!
|
|
21075
|
-
const x = k(
|
|
21076
|
-
|
|
21046
|
+
if (!v || !w.value) return;
|
|
21047
|
+
const E = v.querySelector(".sidebar__image");
|
|
21048
|
+
if (!E) return;
|
|
21049
|
+
const x = k(E), S = 12, R = 160;
|
|
21050
|
+
y.value = !0, p.value = S, setTimeout(() => {
|
|
21077
21051
|
I.value = x, requestAnimationFrame(() => {
|
|
21078
21052
|
p.value = 40, setTimeout(() => {
|
|
21079
|
-
|
|
21053
|
+
y.value = !1;
|
|
21080
21054
|
}, R);
|
|
21081
21055
|
});
|
|
21082
21056
|
}, R);
|
|
@@ -21084,35 +21058,35 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
21084
21058
|
}
|
|
21085
21059
|
}, T = () => _();
|
|
21086
21060
|
return h2(() => {
|
|
21087
|
-
var
|
|
21061
|
+
var E;
|
|
21088
21062
|
M2(_), window.addEventListener("resize", T);
|
|
21089
|
-
const
|
|
21090
|
-
|
|
21063
|
+
const v = (E = w.value) == null ? void 0 : E.querySelector(".sidebar__scroll-container");
|
|
21064
|
+
v && v.addEventListener("scroll", _);
|
|
21091
21065
|
}), k0(() => {
|
|
21092
|
-
var
|
|
21066
|
+
var E;
|
|
21093
21067
|
window.removeEventListener("resize", T);
|
|
21094
|
-
const
|
|
21095
|
-
|
|
21096
|
-
}),
|
|
21068
|
+
const v = (E = w.value) == null ? void 0 : E.querySelector(".sidebar__scroll-container");
|
|
21069
|
+
v && v.removeEventListener("scroll", _);
|
|
21070
|
+
}), t2(() => a.value.map((v) => v.selected), () => M2(_)), (v, E) => (l(), c("div", {
|
|
21097
21071
|
ref_key: "containerRef",
|
|
21098
21072
|
ref: w,
|
|
21099
|
-
class:
|
|
21073
|
+
class: D(["sidebar__container", { "sidebar-horizontal__container": e.horizontal }])
|
|
21100
21074
|
}, [
|
|
21101
21075
|
!e.horizontal && g.value ? (l(), c("span", {
|
|
21102
21076
|
key: 0,
|
|
21103
|
-
class:
|
|
21077
|
+
class: D(["sidebar__selected-bar", { "is-animating": y.value }]),
|
|
21104
21078
|
style: C2({ top: I.value + "px", height: p.value + "px" })
|
|
21105
|
-
}, null, 6)) :
|
|
21079
|
+
}, null, 6)) : h("", !0),
|
|
21106
21080
|
o("div", Il, [
|
|
21107
21081
|
o("ul", {
|
|
21108
|
-
class:
|
|
21082
|
+
class: D(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": e.horizontal }])
|
|
21109
21083
|
}, [
|
|
21110
21084
|
(l(!0), c(q, null, c2(i.value, (x, S) => (l(), c("li", {
|
|
21111
21085
|
key: S,
|
|
21112
|
-
class:
|
|
21086
|
+
class: D(["sidebar__item-fixed", { "sidebar-horizontal__item": e.horizontal }]),
|
|
21113
21087
|
onClick: (R) => d(R, x.itemId)
|
|
21114
21088
|
}, [
|
|
21115
|
-
x.name ? (l(), z(
|
|
21089
|
+
x.name ? (l(), z(M(u0), {
|
|
21116
21090
|
key: 0,
|
|
21117
21091
|
text: A(x.name),
|
|
21118
21092
|
position: "right",
|
|
@@ -21122,27 +21096,27 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
21122
21096
|
o("img", {
|
|
21123
21097
|
src: x.icon,
|
|
21124
21098
|
alt: x.name,
|
|
21125
|
-
class:
|
|
21099
|
+
class: D(["sidebar__image", {
|
|
21126
21100
|
"sidebar__image--active": x.selected === !0,
|
|
21127
21101
|
"sidebar-horizontal__image": e.horizontal
|
|
21128
21102
|
}])
|
|
21129
21103
|
}, null, 10, Tl),
|
|
21130
|
-
|
|
21131
|
-
x.notificationCount ? (l(), c("span", Nl, N(x.notificationCount > 99 ? "99+" : x.notificationCount), 1)) :
|
|
21104
|
+
E[0] || (E[0] = o("p", null, "Мои", -1)),
|
|
21105
|
+
x.notificationCount ? (l(), c("span", Nl, N(x.notificationCount > 99 ? "99+" : x.notificationCount), 1)) : h("", !0)
|
|
21132
21106
|
]),
|
|
21133
21107
|
_: 2
|
|
21134
|
-
}, 1032, ["text"])) :
|
|
21108
|
+
}, 1032, ["text"])) : h("", !0)
|
|
21135
21109
|
], 10, kl))), 128))
|
|
21136
21110
|
], 2),
|
|
21137
21111
|
o("ul", {
|
|
21138
|
-
class:
|
|
21112
|
+
class: D(["sidebar__list", { "sidebar-horizontal__list": e.horizontal }])
|
|
21139
21113
|
}, [
|
|
21140
21114
|
(l(!0), c(q, null, c2(r.value, (x, S) => (l(), c("li", {
|
|
21141
21115
|
key: S,
|
|
21142
|
-
class:
|
|
21116
|
+
class: D(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
|
|
21143
21117
|
onClick: (R) => d(R, x.itemId)
|
|
21144
21118
|
}, [
|
|
21145
|
-
x.name ? (l(), z(
|
|
21119
|
+
x.name ? (l(), z(M(u0), {
|
|
21146
21120
|
key: 0,
|
|
21147
21121
|
text: x.name,
|
|
21148
21122
|
position: "right",
|
|
@@ -21152,7 +21126,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
21152
21126
|
o("img", {
|
|
21153
21127
|
src: x.icon,
|
|
21154
21128
|
alt: x.name,
|
|
21155
|
-
class:
|
|
21129
|
+
class: D(["sidebar__image", {
|
|
21156
21130
|
"sidebar__image--active": x.selected === !0,
|
|
21157
21131
|
"sidebar-horizontal__image": e.horizontal
|
|
21158
21132
|
}])
|
|
@@ -21163,17 +21137,17 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
21163
21137
|
key: 1,
|
|
21164
21138
|
src: x.icon,
|
|
21165
21139
|
alt: "icon",
|
|
21166
|
-
class:
|
|
21140
|
+
class: D(["sidebar__image", {
|
|
21167
21141
|
"sidebar__image--active": x.selected === !0,
|
|
21168
21142
|
"sidebar-horizontal__image": e.horizontal
|
|
21169
21143
|
}])
|
|
21170
21144
|
}, null, 10, El)),
|
|
21171
|
-
x.notificationCount ? (l(), c("span", Vl, N(x.notificationCount > 99 ? "99+" : x.notificationCount), 1)) :
|
|
21145
|
+
x.notificationCount ? (l(), c("span", Vl, N(x.notificationCount > 99 ? "99+" : x.notificationCount), 1)) : h("", !0)
|
|
21172
21146
|
], 10, xl))), 128))
|
|
21173
21147
|
], 2)
|
|
21174
21148
|
]),
|
|
21175
21149
|
o("div", jl, [
|
|
21176
|
-
Y(
|
|
21150
|
+
Y(M(P1), {
|
|
21177
21151
|
actions: s.value,
|
|
21178
21152
|
mode: "click",
|
|
21179
21153
|
"menu-side": "top-right",
|
|
@@ -21182,7 +21156,7 @@ const Ml = ["id"], yl = ["id", "onDblclick"], bl = {
|
|
|
21182
21156
|
}, {
|
|
21183
21157
|
default: W(() => [
|
|
21184
21158
|
o("button", Sl, [
|
|
21185
|
-
Y(
|
|
21159
|
+
Y(M(y9))
|
|
21186
21160
|
])
|
|
21187
21161
|
]),
|
|
21188
21162
|
_: 1
|
|
@@ -21229,7 +21203,7 @@ const Xr = /* @__PURE__ */ j(Rl, [["render", Pl], ["__scopeId", "data-v-3f76dc89
|
|
|
21229
21203
|
},
|
|
21230
21204
|
setup(e) {
|
|
21231
21205
|
const n = e;
|
|
21232
|
-
|
|
21206
|
+
t2(
|
|
21233
21207
|
() => [n.isSecondColVisible, n.isThirdColVisible],
|
|
21234
21208
|
() => {
|
|
21235
21209
|
n.isSecondColVisible && s(), n.isThirdColVisible && a();
|
|
@@ -21247,24 +21221,24 @@ const Xr = /* @__PURE__ */ j(Rl, [["render", Pl], ["__scopeId", "data-v-3f76dc89
|
|
|
21247
21221
|
const f = document.getElementById("extern-layout-container-" + t), i = document.getElementById("extend-layout-first-col-" + t);
|
|
21248
21222
|
f.style.setProperty("--chotto-adaptive-extended-layout-first-col-width", i.offsetWidth + "px");
|
|
21249
21223
|
}), (f, i) => (l(), c("div", {
|
|
21250
|
-
id: "extern-layout-container-" +
|
|
21224
|
+
id: "extern-layout-container-" + M(t),
|
|
21251
21225
|
ref: "refContainer",
|
|
21252
21226
|
class: "extend-layout__container"
|
|
21253
21227
|
}, [
|
|
21254
21228
|
o("div", {
|
|
21255
|
-
id: "extend-layout-first-col-" +
|
|
21229
|
+
id: "extend-layout-first-col-" + M(t),
|
|
21256
21230
|
class: "extend-layout__first-col"
|
|
21257
21231
|
}, [
|
|
21258
21232
|
r2(f.$slots, "first-col", {}, void 0, !0)
|
|
21259
21233
|
], 8, Wl),
|
|
21260
21234
|
o("div", {
|
|
21261
|
-
id: "extend-layout-second-col-" +
|
|
21235
|
+
id: "extend-layout-second-col-" + M(t),
|
|
21262
21236
|
class: "extend-layout__second-col"
|
|
21263
21237
|
}, [
|
|
21264
21238
|
r2(f.$slots, "second-col", {}, void 0, !0)
|
|
21265
21239
|
], 8, Kl),
|
|
21266
21240
|
o("div", {
|
|
21267
|
-
id: "extend-layout-third-col-" +
|
|
21241
|
+
id: "extend-layout-third-col-" + M(t),
|
|
21268
21242
|
class: "extend-layout__third-col"
|
|
21269
21243
|
}, [
|
|
21270
21244
|
r2(f.$slots, "third-col", {}, void 0, !0)
|
|
@@ -21312,8 +21286,8 @@ const tc = /* @__PURE__ */ j(Xl, [["render", nr], ["__scopeId", "data-v-7f230bdf
|
|
|
21312
21286
|
setup(e) {
|
|
21313
21287
|
const n = l2("chatAppId");
|
|
21314
21288
|
return (t, a) => (l(), c("div", {
|
|
21315
|
-
id: "chat-wrapper-" +
|
|
21316
|
-
class:
|
|
21289
|
+
id: "chat-wrapper-" + M(n),
|
|
21290
|
+
class: D(["chat-wrapper", e.applyStyle()])
|
|
21317
21291
|
}, [
|
|
21318
21292
|
e.isSelectedChat ? (l(), c("div", sr, [
|
|
21319
21293
|
r2(t.$slots, "default", {}, void 0, !0)
|
|
@@ -21324,7 +21298,7 @@ const tc = /* @__PURE__ */ j(Xl, [["render", nr], ["__scopeId", "data-v-7f230bdf
|
|
|
21324
21298
|
])),
|
|
21325
21299
|
e.isOpenChatPanel ? (l(), c("div", or, [
|
|
21326
21300
|
r2(t.$slots, "chatpanel", {}, void 0, !0)
|
|
21327
|
-
])) :
|
|
21301
|
+
])) : h("", !0)
|
|
21328
21302
|
], 10, ar));
|
|
21329
21303
|
}
|
|
21330
21304
|
}), nc = /* @__PURE__ */ j(lr, [["__scopeId", "data-v-669042d4"]]), rr = ["id"], cr = {
|
|
@@ -21342,7 +21316,7 @@ const tc = /* @__PURE__ */ j(Xl, [["render", nr], ["__scopeId", "data-v-7f230bdf
|
|
|
21342
21316
|
setup(e) {
|
|
21343
21317
|
const n = v3();
|
|
21344
21318
|
return H1("chatAppId", n), (t, a) => (l(), c("div", {
|
|
21345
|
-
id:
|
|
21319
|
+
id: M(n),
|
|
21346
21320
|
class: "base"
|
|
21347
21321
|
}, [
|
|
21348
21322
|
o("div", {
|
|
@@ -21402,7 +21376,7 @@ const tc = /* @__PURE__ */ j(Xl, [["render", nr], ["__scopeId", "data-v-7f230bdf
|
|
|
21402
21376
|
));
|
|
21403
21377
|
}), d.value = s.value.offsetHeight - f.value.offsetHeight;
|
|
21404
21378
|
}), (g, I) => (l(), c("div", {
|
|
21405
|
-
id:
|
|
21379
|
+
id: M(A),
|
|
21406
21380
|
ref_key: "element",
|
|
21407
21381
|
ref: s,
|
|
21408
21382
|
class: "float-window",
|
|
@@ -21429,7 +21403,7 @@ const tc = /* @__PURE__ */ j(Xl, [["render", nr], ["__scopeId", "data-v-7f230bdf
|
|
|
21429
21403
|
class: "float-window__avatar",
|
|
21430
21404
|
src: t.avatar,
|
|
21431
21405
|
alt: t.title
|
|
21432
|
-
}, null, 8, Ar)) :
|
|
21406
|
+
}, null, 8, Ar)) : h("", !0),
|
|
21433
21407
|
o("p", Cr, N(t.title), 1),
|
|
21434
21408
|
o("div", gr, [
|
|
21435
21409
|
r2(g.$slots, "controls", {}, void 0, !0),
|