@mobilon-dev/chotto 0.0.78 → 0.0.80
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.
@@ -590,11 +590,11 @@ function Ga({
|
|
590
590
|
Y(E, e.tld, T), Y(E, e.utld, T), Y(T, e.domain, i), Y(T, n, s), _(T, _e, E), _(T, me, h), _(T, Se, A);
|
591
591
|
const U = _(T, Ce), V = de(Ct);
|
592
592
|
Y(U, e.numeric, V);
|
593
|
-
const
|
594
|
-
Y(
|
595
|
-
const I = _(l, Ce),
|
596
|
-
Y(l, e.domain, i), _(l, _e, E), _(l, me, h), Y(u, e.domain, i), _(u, _e, E), _(u, me, h), Y(I, e.domain,
|
597
|
-
const
|
593
|
+
const w = de(Ct), j = de();
|
594
|
+
Y(w, t, w), Y(w, f, j), Y(j, t, w), Y(j, f, j), _(T, Ie, w), _(V, Ie, w);
|
595
|
+
const I = _(l, Ce), k = _(u, Ce), D = _(k, Ie), x = _(D, Ie);
|
596
|
+
Y(l, e.domain, i), _(l, _e, E), _(l, me, h), Y(u, e.domain, i), _(u, _e, E), _(u, me, h), Y(I, e.domain, w), _(I, Ie, w), _(I, gt, w), Y(x, e.domain, w), Y(x, t, w), _(x, Ie, w);
|
597
|
+
const B = [
|
598
598
|
[ut, ct],
|
599
599
|
// {}
|
600
600
|
[Rt, Yt],
|
@@ -612,13 +612,13 @@ function Ga({
|
|
612
612
|
[Xt, ef]
|
613
613
|
// <>
|
614
614
|
];
|
615
|
-
for (let H = 0; H <
|
616
|
-
const [te, ce] =
|
617
|
-
_(j, te, le), _(le, ce,
|
615
|
+
for (let H = 0; H < B.length; H++) {
|
616
|
+
const [te, ce] = B[H], le = _(w, te);
|
617
|
+
_(j, te, le), _(le, ce, w);
|
618
618
|
const S = de(Ct);
|
619
619
|
Y(le, t, S);
|
620
620
|
const L = de();
|
621
|
-
Y(le, f), Y(S, t, S), Y(S, f, L), Y(L, t, S), Y(L, f, L), _(S, ce,
|
621
|
+
Y(le, f), Y(S, t, S), Y(S, f, L), Y(L, t, S), Y(L, f, L), _(S, ce, w), _(L, ce, w);
|
622
622
|
}
|
623
623
|
return _(a, bt, T), _(a, Hf, Ja), {
|
624
624
|
start: a,
|
@@ -761,7 +761,7 @@ const z = (e, t) => {
|
|
761
761
|
], 8, cs)
|
762
762
|
])) : b("", !0);
|
763
763
|
}
|
764
|
-
},
|
764
|
+
}, yd = /* @__PURE__ */ z(ds, [["__scopeId", "data-v-4eacd5b4"]]), ge = M([]), $e = (e) => {
|
765
765
|
const t = M(0);
|
766
766
|
let f = ge.value.find(({ id: d }) => d == e);
|
767
767
|
f != null ? t.value = ge.value.indexOf(f) : (ge.value.push({
|
@@ -986,7 +986,7 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
|
|
986
986
|
])
|
987
987
|
]));
|
988
988
|
}
|
989
|
-
}),
|
989
|
+
}), vd = /* @__PURE__ */ z(ws, [["__scopeId", "data-v-da991df5"]]), Ns = { class: "chat-list" }, Ds = { class: "chat-list__title" }, js = {
|
990
990
|
key: 0,
|
991
991
|
class: "pi pi-minus"
|
992
992
|
}, Es = {
|
@@ -1089,7 +1089,7 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
|
|
1089
1089
|
])
|
1090
1090
|
]));
|
1091
1091
|
}
|
1092
|
-
},
|
1092
|
+
}, bd = /* @__PURE__ */ z(Cs, [["__scopeId", "data-v-ba9fb868"]]), Os = { class: "keyboard__container" }, zs = ["onClick"], Ls = /* @__PURE__ */ P({
|
1093
1093
|
__name: "MessageKeyboard",
|
1094
1094
|
props: {
|
1095
1095
|
keyboard: {
|
@@ -1154,11 +1154,11 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
|
|
1154
1154
|
],
|
1155
1155
|
setup(e, { emit: t }) {
|
1156
1156
|
const f = M(), n = M(), a = M(), s = M(!1), i = M(!1), l = e, u = ie("chatAppId"), { setReply: A, getMessage: g } = $e(u), d = t, p = F(() => !!(i.value && l.objects.length > 0 && l.objects[l.objects.length - 1].keyboard)), m = (I = !0) => {
|
1157
|
-
const
|
1157
|
+
const k = C(n);
|
1158
1158
|
let D = 0;
|
1159
1159
|
a.value && (D = a.value.$el.clientHeight);
|
1160
|
-
const x = 100,
|
1161
|
-
|
1160
|
+
const x = 100, B = k.scrollHeight - k.scrollTop - k.clientHeight;
|
1161
|
+
B < x + D ? (s.value = !1, i.value = !0) : (s.value = !0, i.value = !1), k.scrollTop === 0 && I && d("loadMore"), B <= 0 && I && d("loadMoreDown");
|
1162
1162
|
}, v = (I) => ({
|
1163
1163
|
"message.text": ic,
|
1164
1164
|
"message.image": Gu,
|
@@ -1187,23 +1187,23 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
|
|
1187
1187
|
d("messageAction", I);
|
1188
1188
|
}, T = (I) => {
|
1189
1189
|
d("clickRepliedMessage", I);
|
1190
|
-
}, U = (I,
|
1191
|
-
l.enableDoubleClickReply && (I == null || I.preventDefault(),
|
1192
|
-
messageId:
|
1193
|
-
type:
|
1194
|
-
text:
|
1195
|
-
filename:
|
1196
|
-
url:
|
1190
|
+
}, U = (I, k) => {
|
1191
|
+
l.enableDoubleClickReply && (I == null || I.preventDefault(), k.type.indexOf("system") == -1 && k.type.indexOf("typing") == -1 && A({
|
1192
|
+
messageId: k.messageId,
|
1193
|
+
type: k.type,
|
1194
|
+
text: k.text,
|
1195
|
+
filename: k.filename,
|
1196
|
+
url: k.url
|
1197
1197
|
}));
|
1198
1198
|
}, V = (I) => {
|
1199
|
-
I.forEach((
|
1200
|
-
|
1199
|
+
I.forEach((k) => {
|
1200
|
+
k.isIntersecting && d("messageVisible", JSON.parse(k.target.id));
|
1201
1201
|
});
|
1202
|
-
},
|
1202
|
+
}, w = {
|
1203
1203
|
root: document.getElementById("feed-container-" + u),
|
1204
1204
|
rootMargin: "5px",
|
1205
1205
|
threshold: 0
|
1206
|
-
}, j = new IntersectionObserver(V,
|
1206
|
+
}, j = new IntersectionObserver(V, w);
|
1207
1207
|
return J(
|
1208
1208
|
() => l.objects,
|
1209
1209
|
() => {
|
@@ -1215,24 +1215,22 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
|
|
1215
1215
|
), J(
|
1216
1216
|
() => l.scrollTo,
|
1217
1217
|
() => {
|
1218
|
-
var I
|
1218
|
+
var I;
|
1219
1219
|
if (l.scrollTo) {
|
1220
|
-
const
|
1221
|
-
|
1222
|
-
|
1223
|
-
|
1224
|
-
|
1225
|
-
var x;
|
1226
|
-
(x = document.getElementById(D)) == null || x.children[0].classList.remove("focused-message");
|
1220
|
+
const k = l.scrollTo;
|
1221
|
+
let D = document.getElementById(k), x = document.getElementById("feed-container-" + u);
|
1222
|
+
D instanceof HTMLElement && x instanceof HTMLElement && (x.scrollTop = D.offsetTop + D.clientHeight / 2 - x.clientHeight / 2), (I = document.getElementById(k)) == null || I.children[0].classList.add("focused-message"), setTimeout(() => {
|
1223
|
+
var B;
|
1224
|
+
(B = document.getElementById(k)) == null || B.children[0].classList.remove("focused-message");
|
1227
1225
|
}, 2e3);
|
1228
1226
|
}
|
1229
1227
|
}
|
1230
|
-
), (I,
|
1228
|
+
), (I, k) => (r(), c(q, null, [
|
1231
1229
|
o("div", {
|
1232
1230
|
ref_key: "refFeed",
|
1233
1231
|
ref: n,
|
1234
1232
|
class: "message-feed",
|
1235
|
-
onScroll:
|
1233
|
+
onScroll: k[0] || (k[0] = (D) => m()),
|
1236
1234
|
id: "feed-container-" + C(u)
|
1237
1235
|
}, [
|
1238
1236
|
(r(!0), c(q, null, Z(e.objects, (D) => (r(), c("div", {
|
@@ -1275,7 +1273,7 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
|
|
1275
1273
|
onClick: h
|
1276
1274
|
}, [
|
1277
1275
|
e.buttonParams ? (r(), c("div", Rs, N(e.buttonParams.unreadAmount), 1)) : b("", !0),
|
1278
|
-
|
1276
|
+
k[1] || (k[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
1279
1277
|
])) : b("", !0)
|
1280
1278
|
]),
|
1281
1279
|
_: 1
|
@@ -1292,7 +1290,7 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
|
|
1292
1290
|
], 8, ["to"])) : b("", !0)
|
1293
1291
|
], 64));
|
1294
1292
|
}
|
1295
|
-
}),
|
1293
|
+
}), Md = /* @__PURE__ */ z(Ys, [["__scopeId", "data-v-43b9fb90"]]), $s = {
|
1296
1294
|
key: 0,
|
1297
1295
|
class: "profile__container"
|
1298
1296
|
}, Fs = {
|
@@ -1324,7 +1322,7 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
|
|
1324
1322
|
o("p", Ws, N(e.user.phone), 1)
|
1325
1323
|
])) : b("", !0);
|
1326
1324
|
}
|
1327
|
-
},
|
1325
|
+
}, _d = /* @__PURE__ */ z(Ks, [["__scopeId", "data-v-35f660dc"]]), Js = ["id"], Gs = {
|
1328
1326
|
__name: "ButtonContextMenu",
|
1329
1327
|
props: {
|
1330
1328
|
actions: {
|
@@ -1424,12 +1422,12 @@ const vs = { class: "chat-input__container" }, bs = ["id"], Ms = ["id"], _s = {
|
|
1424
1422
|
], 8, Js));
|
1425
1423
|
}
|
1426
1424
|
}, oa = /* @__PURE__ */ z(Gs, [["__scopeId", "data-v-879c7ba3"]]);
|
1427
|
-
function
|
1425
|
+
function Id(e) {
|
1428
1426
|
if (!e || e === "") return;
|
1429
1427
|
const t = +new Date(Number(e) * 1e3), f = +/* @__PURE__ */ new Date(), n = Math.floor((f - t) / 1e3), a = Math.floor(n / 60), s = Math.floor(a / 60), i = Math.floor(s / 24);
|
1430
1428
|
return i > 30 ? new Date(t).toLocaleDateString("ru-RU") : i > 0 ? `${i} ${i === 1 ? "день" : "дня"} назад` : s > 0 ? `${s} ${s === 1 ? "час" : "часа"} назад` : a > 0 ? `${a} ${a === 1 ? "минута" : "минуты"} назад` : n > 0 ? `${n} ${n === 1 ? "секунда" : "секунды"} назад` : "Только что";
|
1431
1429
|
}
|
1432
|
-
const
|
1430
|
+
const kd = (e, t = null) => {
|
1433
1431
|
const f = [];
|
1434
1432
|
let n = new Date(t * 1e3).toLocaleDateString();
|
1435
1433
|
for (let a = 0; a < e.length; a++) {
|
@@ -1443,7 +1441,7 @@ const Id = (e, t = null) => {
|
|
1443
1441
|
}), n = i), f.push(s);
|
1444
1442
|
}
|
1445
1443
|
return f;
|
1446
|
-
},
|
1444
|
+
}, wd = async () => {
|
1447
1445
|
try {
|
1448
1446
|
if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
|
1449
1447
|
const t = new Audio();
|
@@ -1452,7 +1450,7 @@ const Id = (e, t = null) => {
|
|
1452
1450
|
} catch {
|
1453
1451
|
console.log("no audio permissions");
|
1454
1452
|
}
|
1455
|
-
},
|
1453
|
+
}, Nd = (e) => e.sort((t, f) => Number(t.timestamp) < Number(f.timestamp) ? -1 : Number(t.timestamp) > Number(f.timestamp) ? 1 : 0), gf = (e) => {
|
1456
1454
|
let t = "file";
|
1457
1455
|
return e.startsWith("image/") ? t = "image" : e.startsWith("video/") ? t = "video" : e.startsWith("audio/") && (t = "audio"), t;
|
1458
1456
|
}, tt = ["read", "received", "sent"], ft = (e) => {
|
@@ -1536,7 +1534,7 @@ const Id = (e, t = null) => {
|
|
1536
1534
|
])
|
1537
1535
|
]));
|
1538
1536
|
}
|
1539
|
-
}, la = /* @__PURE__ */ z(ri, [["__scopeId", "data-v-63871541"]]), ui = { key: 0 }, ci = { key: 1 },
|
1537
|
+
}, la = /* @__PURE__ */ z(ri, [["__scopeId", "data-v-63871541"]]), ui = { key: 0 }, ci = { key: 1 }, Dd = {
|
1540
1538
|
__name: "FileUploader",
|
1541
1539
|
props: {
|
1542
1540
|
filebumpUrl: {
|
@@ -1575,8 +1573,8 @@ const Id = (e, t = null) => {
|
|
1575
1573
|
}, T = (I) => {
|
1576
1574
|
E(), console.log("onFileSelected", I.target.files[0]), n.value = I.target.files[0], n.value && (U(), V());
|
1577
1575
|
}, U = () => {
|
1578
|
-
const I = n.value,
|
1579
|
-
if (i.value = !1, l.value = !1, u.value = !1,
|
1576
|
+
const I = n.value, k = gf(I.type);
|
1577
|
+
if (i.value = !1, l.value = !1, u.value = !1, k === "image" ? i.value = !0 : k === "video" ? l.value = !0 : k === "audio" && (u.value = !0), i.value || l.value) {
|
1580
1578
|
const H = new FileReader();
|
1581
1579
|
H.onload = (te) => {
|
1582
1580
|
s.value = te.target.result;
|
@@ -1584,17 +1582,17 @@ const Id = (e, t = null) => {
|
|
1584
1582
|
} else
|
1585
1583
|
s.value = "";
|
1586
1584
|
const D = ["б", "Кб", "Мб", "Гб"];
|
1587
|
-
let x = I.size,
|
1585
|
+
let x = I.size, B = 0;
|
1588
1586
|
for (; x > 1024; )
|
1589
|
-
x = x / 1024,
|
1590
|
-
x = x.toFixed(2) + D[
|
1587
|
+
x = x / 1024, B++;
|
1588
|
+
x = x.toFixed(2) + D[B], g.value = x;
|
1591
1589
|
}, V = async () => {
|
1592
1590
|
a.value = "uploading";
|
1593
1591
|
const I = new FormData();
|
1594
1592
|
I.append("file", n.value);
|
1595
1593
|
const D = (f.filebumpUrl ? f.filebumpUrl : "https://filebump2.services.mobilon.ru") + "/upload";
|
1596
1594
|
try {
|
1597
|
-
const
|
1595
|
+
const B = await (await fetch(
|
1598
1596
|
D,
|
1599
1597
|
{
|
1600
1598
|
method: "POST",
|
@@ -1602,7 +1600,7 @@ const Id = (e, t = null) => {
|
|
1602
1600
|
}
|
1603
1601
|
)).json();
|
1604
1602
|
a.value = "success", p({
|
1605
|
-
url:
|
1603
|
+
url: B.url,
|
1606
1604
|
name: n.value.name,
|
1607
1605
|
size: n.value.size,
|
1608
1606
|
type: gf(n.value.type)
|
@@ -1610,15 +1608,15 @@ const Id = (e, t = null) => {
|
|
1610
1608
|
} catch (x) {
|
1611
1609
|
console.error("Ошибка при загрузке файла:", x), a.value = "error";
|
1612
1610
|
}
|
1613
|
-
},
|
1611
|
+
}, w = (I) => {
|
1614
1612
|
A.value && h && (A.value.accept = I.action, A.value.click());
|
1615
1613
|
}, j = () => {
|
1616
1614
|
A.value && h && f.state == "active" && A.value.click();
|
1617
1615
|
};
|
1618
|
-
return (I,
|
1619
|
-
a.value === "uploading" ? (r(), c("div", ui,
|
1616
|
+
return (I, k) => (r(), c(q, null, [
|
1617
|
+
a.value === "uploading" ? (r(), c("div", ui, k[0] || (k[0] = [
|
1620
1618
|
o("p", null, "Загрузка файла...", -1)
|
1621
|
-
]))) : a.value === "error" ? (r(), c("div", ci,
|
1619
|
+
]))) : a.value === "error" ? (r(), c("div", ci, k[1] || (k[1] = [
|
1622
1620
|
o("p", null, "Ошибка при загрузке файла.", -1)
|
1623
1621
|
]))) : (r(), R(oa, {
|
1624
1622
|
key: 2,
|
@@ -1627,7 +1625,7 @@ const Id = (e, t = null) => {
|
|
1627
1625
|
"button-class": "pi pi-file-arrow-up",
|
1628
1626
|
"menu-side": "top",
|
1629
1627
|
disabled: !h.value || e.state == "disabled",
|
1630
|
-
onClick:
|
1628
|
+
onClick: w,
|
1631
1629
|
onButtonClick: j
|
1632
1630
|
}, null, 8, ["disabled"])),
|
1633
1631
|
o("input", {
|
@@ -1687,7 +1685,7 @@ const Id = (e, t = null) => {
|
|
1687
1685
|
], 32)
|
1688
1686
|
])) : b("", !0);
|
1689
1687
|
}
|
1690
|
-
},
|
1688
|
+
}, jd = /* @__PURE__ */ z(mi, [["__scopeId", "data-v-a950b8eb"]]), pi = { class: "sidebar__container" }, hi = { class: "sidebar__list" }, yi = ["onClick"], vi = ["src", "alt"], bi = { key: 1 }, Mi = { class: "sidebar__list-fixed" }, _i = ["onClick"], Ii = ["src", "alt"], ki = { key: 1 }, wi = {
|
1691
1689
|
__name: "SideBar",
|
1692
1690
|
props: {
|
1693
1691
|
sidebarItems: {
|
@@ -1744,7 +1742,7 @@ const Id = (e, t = null) => {
|
|
1744
1742
|
])
|
1745
1743
|
]));
|
1746
1744
|
}
|
1747
|
-
},
|
1745
|
+
}, Ed = /* @__PURE__ */ z(wi, [["__scopeId", "data-v-0be33a79"]]), Ni = { class: "chat-panel" }, Di = { class: "chat-panel__title-container" }, ji = {
|
1748
1746
|
key: 0,
|
1749
1747
|
class: "chat-panel__title"
|
1750
1748
|
}, Ei = {
|
@@ -1773,7 +1771,7 @@ const Id = (e, t = null) => {
|
|
1773
1771
|
])
|
1774
1772
|
]));
|
1775
1773
|
}
|
1776
|
-
},
|
1774
|
+
}, Td = /* @__PURE__ */ z(Ei, [["__scopeId", "data-v-1f6ac199"]]), Ti = {
|
1777
1775
|
key: 0,
|
1778
1776
|
class: "channels__selected"
|
1779
1777
|
}, xi = {
|
@@ -1826,7 +1824,7 @@ const Id = (e, t = null) => {
|
|
1826
1824
|
}, null, 8, ["actions", "mode", "disabled"])
|
1827
1825
|
], 2));
|
1828
1826
|
}
|
1829
|
-
},
|
1827
|
+
}, xd = /* @__PURE__ */ z(Oi, [["__scopeId", "data-v-9eb1fd6b"]]), zi = { class: "chat-item__avatar-container" }, Li = ["src"], Ui = {
|
1830
1828
|
key: 1,
|
1831
1829
|
class: "pi pi-user"
|
1832
1830
|
}, Bi = { class: "chat-item__info-container" }, Qi = { class: "chat-item__name" }, Ri = {
|
@@ -2125,7 +2123,7 @@ const Id = (e, t = null) => {
|
|
2125
2123
|
})
|
2126
2124
|
], 64));
|
2127
2125
|
}
|
2128
|
-
},
|
2126
|
+
}, Vd = /* @__PURE__ */ z(Mo, [["__scopeId", "data-v-5bb675f2"]]), _o = {
|
2129
2127
|
__name: "PlaceholderComponent",
|
2130
2128
|
props: {
|
2131
2129
|
index: {
|
@@ -2188,11 +2186,11 @@ const Id = (e, t = null) => {
|
|
2188
2186
|
icon: "pi pi-video"
|
2189
2187
|
}
|
2190
2188
|
}, h = (V) => {
|
2191
|
-
const
|
2192
|
-
if (
|
2189
|
+
const w = V.target.files[0];
|
2190
|
+
if (w) {
|
2193
2191
|
i.value = "";
|
2194
|
-
const j =
|
2195
|
-
y[f.type].accept.indexOf(j[j.length - 1]) == -1 ? i.value = y[f.type].error :
|
2192
|
+
const j = w.name.split(".");
|
2193
|
+
y[f.type].accept.indexOf(j[j.length - 1]) == -1 ? i.value = y[f.type].error : w.size > y[f.type].maxSize ? i.value = "Файл слишком большого размера" : i.value || (a.value = w, E(), T());
|
2196
2194
|
}
|
2197
2195
|
}, E = async () => {
|
2198
2196
|
if (a.value) {
|
@@ -2201,7 +2199,7 @@ const Id = (e, t = null) => {
|
|
2201
2199
|
V.append("file", a.value);
|
2202
2200
|
const j = (n.value ? n.value : "https://filebump2.services.mobilon.ru") + "/upload";
|
2203
2201
|
try {
|
2204
|
-
const
|
2202
|
+
const k = await (await fetch(
|
2205
2203
|
j,
|
2206
2204
|
{
|
2207
2205
|
method: "POST",
|
@@ -2209,7 +2207,7 @@ const Id = (e, t = null) => {
|
|
2209
2207
|
}
|
2210
2208
|
)).json();
|
2211
2209
|
l.value = "success", m("fileSelected", {
|
2212
|
-
url:
|
2210
|
+
url: k.url,
|
2213
2211
|
filename: a.value.name,
|
2214
2212
|
filesize: a.value.size,
|
2215
2213
|
filetype: gf(a.value.type)
|
@@ -2221,20 +2219,20 @@ const Id = (e, t = null) => {
|
|
2221
2219
|
}, T = () => {
|
2222
2220
|
const V = a.value;
|
2223
2221
|
if (V) {
|
2224
|
-
const
|
2225
|
-
if (u.value = !1, A.value = !1, g.value = !1,
|
2222
|
+
const w = gf(V.type);
|
2223
|
+
if (u.value = !1, A.value = !1, g.value = !1, w === "image" ? u.value = !0 : w === "video" ? A.value = !0 : w === "audio" && (g.value = !0), u.value || A.value) {
|
2226
2224
|
const D = new FileReader();
|
2227
2225
|
D.onload = (x) => {
|
2228
|
-
var
|
2229
|
-
(
|
2226
|
+
var B;
|
2227
|
+
(B = x.target) != null && B.result && (d.value = String(x.target.result));
|
2230
2228
|
}, D.readAsDataURL(V);
|
2231
2229
|
} else
|
2232
2230
|
d.value = "";
|
2233
2231
|
const j = ["б", "Кб", "Мб", "Гб"];
|
2234
|
-
let I = V.size,
|
2232
|
+
let I = V.size, k = 0;
|
2235
2233
|
for (; I > 1024; )
|
2236
|
-
I = I / 1024,
|
2237
|
-
p.value = I.toFixed(2) + j[
|
2234
|
+
I = I / 1024, k++;
|
2235
|
+
p.value = I.toFixed(2) + j[k];
|
2238
2236
|
}
|
2239
2237
|
}, U = () => {
|
2240
2238
|
a.value && (a.value = null, l.value = "");
|
@@ -2249,7 +2247,7 @@ const Id = (e, t = null) => {
|
|
2249
2247
|
() => {
|
2250
2248
|
l.value = "";
|
2251
2249
|
}
|
2252
|
-
), (V,
|
2250
|
+
), (V, w) => {
|
2253
2251
|
var j;
|
2254
2252
|
return r(), c(q, null, [
|
2255
2253
|
o("section", {
|
@@ -2269,9 +2267,9 @@ const Id = (e, t = null) => {
|
|
2269
2267
|
onChange: h,
|
2270
2268
|
accept: y[e.type].accept
|
2271
2269
|
}, null, 40, ko),
|
2272
|
-
|
2270
|
+
w[1] || (w[1] = o("span", { class: "pi pi-paperclip file-upload-icon" }, null, -1)),
|
2273
2271
|
o("div", wo, [
|
2274
|
-
|
2272
|
+
w[0] || (w[0] = o("h2", { class: "attachment-title open-sans-bold" }, " Прикрепить файл ", -1)),
|
2275
2273
|
o("h2", No, N(y[e.type].text), 1)
|
2276
2274
|
])
|
2277
2275
|
])) : l.value === "success" ? (r(), R(la, {
|
@@ -2418,30 +2416,30 @@ const Id = (e, t = null) => {
|
|
2418
2416
|
}, h = F(() => u.value ? f.wabaTemplates.filter((S) => S.groupId === u.value.groupId) : f.wabaTemplates), E = F(() => {
|
2419
2417
|
const S = d.value.trim().toLowerCase();
|
2420
2418
|
return h.value.filter((L) => L.title.toLowerCase().includes(S) || L.template.toLowerCase().includes(S));
|
2421
|
-
}), T = Wn({}), U = M(!1), V = M(null),
|
2422
|
-
|
2423
|
-
},
|
2424
|
-
U.value = !1,
|
2419
|
+
}), T = Wn({}), U = M(!1), V = M(null), w = M(null), j = M(""), I = (S) => {
|
2420
|
+
w.value = S, j.value = T[S] || "", U.value = !0;
|
2421
|
+
}, k = () => {
|
2422
|
+
U.value = !1, w.value = null, j.value = "";
|
2425
2423
|
}, D = () => {
|
2426
|
-
x(
|
2424
|
+
x(w.value, j.value), k();
|
2427
2425
|
}, x = (S, L) => {
|
2428
2426
|
T[S] = L;
|
2429
|
-
},
|
2427
|
+
}, B = F(() => {
|
2430
2428
|
var ve;
|
2431
2429
|
const S = (ve = A.value) == null ? void 0 : ve.template;
|
2432
2430
|
if (!S) return [];
|
2433
|
-
const L = [...S.matchAll(/{{\d+}}/g)],
|
2431
|
+
const L = [...S.matchAll(/{{\d+}}/g)], Q = [];
|
2434
2432
|
let X = 0;
|
2435
2433
|
return L.forEach((De) => {
|
2436
|
-
De.index > X &&
|
2437
|
-
}), X < S.length &&
|
2434
|
+
De.index > X && Q.push(S.substring(X, De.index)), Q.push({ index: parseInt(De[0].slice(2, -2)) }), X = De.index + De[0].length;
|
2435
|
+
}), X < S.length && Q.push(S.substring(X)), Q;
|
2438
2436
|
}), H = F(() => {
|
2439
|
-
var L,
|
2437
|
+
var L, Q;
|
2440
2438
|
if (!A.value)
|
2441
2439
|
return !0;
|
2442
2440
|
if (!((L = A.value) != null && L.template.match(/{{\d+}}/gi)))
|
2443
2441
|
return !1;
|
2444
|
-
const S = Object.keys(T).length !== ((
|
2442
|
+
const S = Object.keys(T).length !== ((Q = A.value) == null ? void 0 : Q.template.match(/{{\d+}}/gi).length);
|
2445
2443
|
if (A.value.type === "TEXT")
|
2446
2444
|
return S;
|
2447
2445
|
if (A.value.type !== "TEXT")
|
@@ -2451,10 +2449,10 @@ const Id = (e, t = null) => {
|
|
2451
2449
|
T[S] = "";
|
2452
2450
|
}), g.value = null, A.value = null, y();
|
2453
2451
|
}, ce = F(() => {
|
2454
|
-
console.log(
|
2455
|
-
let S =
|
2456
|
-
return A.value.buttons && (L = A.value.buttons.map((
|
2457
|
-
| [` +
|
2452
|
+
console.log(B.value, A.value.buttons);
|
2453
|
+
let S = B.value.map((Q) => typeof Q == "string" ? Q : T[Q.index]).join(""), L = "";
|
2454
|
+
return A.value.buttons && (L = A.value.buttons.map((Q) => `
|
2455
|
+
| [` + Q.text + "]").join("")), S.concat(L);
|
2458
2456
|
}), le = F(() => {
|
2459
2457
|
const S = [];
|
2460
2458
|
for (const L in T)
|
@@ -2474,34 +2472,34 @@ const Id = (e, t = null) => {
|
|
2474
2472
|
})
|
2475
2473
|
]),
|
2476
2474
|
o("ul", Yo, [
|
2477
|
-
(r(!0), c(q, null, Z(e.groupTemplates, (
|
2475
|
+
(r(!0), c(q, null, Z(e.groupTemplates, (Q, X) => (r(), c("li", {
|
2478
2476
|
key: X,
|
2479
|
-
class: O(["template-selector__item-group", { "template-selector__item-selected": u.value ===
|
2477
|
+
class: O(["template-selector__item-group", { "template-selector__item-selected": u.value === Q }]),
|
2480
2478
|
onClick: y
|
2481
2479
|
}, [
|
2482
2480
|
o("label", $o, [
|
2483
|
-
|
2481
|
+
Q.iconUrl ? (r(), c("img", {
|
2484
2482
|
key: 0,
|
2485
2483
|
class: "template-selector__item-group-icon",
|
2486
|
-
src:
|
2487
|
-
alt:
|
2484
|
+
src: Q.iconUrl,
|
2485
|
+
alt: Q.title
|
2488
2486
|
}, null, 8, Fo)) : b("", !0),
|
2489
2487
|
re(o("input", {
|
2490
2488
|
id: X,
|
2491
2489
|
"onUpdate:modelValue": L[0] || (L[0] = (ve) => u.value = ve),
|
2492
|
-
value:
|
2490
|
+
value: Q,
|
2493
2491
|
class: "template-selector__input-group",
|
2494
2492
|
type: "radio"
|
2495
2493
|
}, null, 8, qo), [
|
2496
2494
|
[Pn, u.value]
|
2497
2495
|
]),
|
2498
|
-
o("span", null, N(
|
2496
|
+
o("span", null, N(Q.title), 1)
|
2499
2497
|
])
|
2500
2498
|
], 2))), 128))
|
2501
2499
|
]),
|
2502
2500
|
o("div", Po, [
|
2503
2501
|
re(o("input", {
|
2504
|
-
"onUpdate:modelValue": L[1] || (L[1] = (
|
2502
|
+
"onUpdate:modelValue": L[1] || (L[1] = (Q) => d.value = Q),
|
2505
2503
|
class: "template-selector__searching-input",
|
2506
2504
|
type: "text",
|
2507
2505
|
placeholder: "Поиск шаблона"
|
@@ -2511,14 +2509,14 @@ const Id = (e, t = null) => {
|
|
2511
2509
|
]),
|
2512
2510
|
o("div", Ho, [
|
2513
2511
|
E.value.length !== 0 ? (r(), c("ul", Wo, [
|
2514
|
-
(r(!0), c(q, null, Z(E.value, (
|
2512
|
+
(r(!0), c(q, null, Z(E.value, (Q, X) => (r(), c("li", {
|
2515
2513
|
key: X,
|
2516
|
-
class: O(["template-selector__item-template", { "template-selector__item-selected":
|
2517
|
-
onClick: (ve) => v(
|
2514
|
+
class: O(["template-selector__item-template", { "template-selector__item-selected": Q.isSelected }]),
|
2515
|
+
onClick: (ve) => v(Q)
|
2518
2516
|
}, [
|
2519
2517
|
o("div", Jo, [
|
2520
|
-
o("p", Go, N(
|
2521
|
-
o("p", Zo, N(
|
2518
|
+
o("p", Go, N(Q.title), 1),
|
2519
|
+
o("p", Zo, N(Q.template), 1)
|
2522
2520
|
])
|
2523
2521
|
], 10, Ko))), 128))
|
2524
2522
|
])) : (r(), c("p", Xo, " Шаблоны отсутствуют "))
|
@@ -2528,7 +2526,7 @@ const Id = (e, t = null) => {
|
|
2528
2526
|
ref: l,
|
2529
2527
|
class: "template-selector__preview-container"
|
2530
2528
|
}, [
|
2531
|
-
|
2529
|
+
B.value.length > 0 ? (r(), c("div", el, [
|
2532
2530
|
o("div", tl, [
|
2533
2531
|
A.value.type != "TEXT" ? (r(), R(Eo, {
|
2534
2532
|
key: 0,
|
@@ -2537,13 +2535,13 @@ const Id = (e, t = null) => {
|
|
2537
2535
|
onFileSelected: i
|
2538
2536
|
}, null, 8, ["type", "template-id"])) : b("", !0),
|
2539
2537
|
o("div", fl, [
|
2540
|
-
(r(!0), c(q, null, Z(
|
2541
|
-
typeof
|
2538
|
+
(r(!0), c(q, null, Z(B.value, (Q, X) => (r(), c(q, { key: X }, [
|
2539
|
+
typeof Q == "string" ? (r(), c("span", nl, N(Q), 1)) : typeof Q == "object" ? (r(), R(Io, {
|
2542
2540
|
key: 1,
|
2543
|
-
index:
|
2544
|
-
value: T[
|
2545
|
-
"is-filled": !!T[
|
2546
|
-
onClick: (ve) => I(
|
2541
|
+
index: Q.index,
|
2542
|
+
value: T[Q.index] || "Заполнить",
|
2543
|
+
"is-filled": !!T[Q.index],
|
2544
|
+
onClick: (ve) => I(Q.index)
|
2547
2545
|
}, null, 8, ["index", "value", "is-filled", "onClick"])) : b("", !0)
|
2548
2546
|
], 64))), 128))
|
2549
2547
|
]),
|
@@ -2572,7 +2570,7 @@ const Id = (e, t = null) => {
|
|
2572
2570
|
re(o("input", {
|
2573
2571
|
ref_key: "inputRef",
|
2574
2572
|
ref: V,
|
2575
|
-
"onUpdate:modelValue": L[2] || (L[2] = (
|
2573
|
+
"onUpdate:modelValue": L[2] || (L[2] = (Q) => j.value = Q),
|
2576
2574
|
type: "text",
|
2577
2575
|
placeholder: "Введите значение",
|
2578
2576
|
autofocus: U.value
|
@@ -2585,7 +2583,7 @@ const Id = (e, t = null) => {
|
|
2585
2583
|
}, " Добавить "),
|
2586
2584
|
o("button", {
|
2587
2585
|
class: "template-selector__modal-button-cancel",
|
2588
|
-
onClick:
|
2586
|
+
onClick: k
|
2589
2587
|
}, " Отменить ")
|
2590
2588
|
])) : b("", !0)
|
2591
2589
|
]),
|
@@ -2670,7 +2668,7 @@ const Id = (e, t = null) => {
|
|
2670
2668
|
], 544)
|
2671
2669
|
], 64));
|
2672
2670
|
}
|
2673
|
-
},
|
2671
|
+
}, Sd = /* @__PURE__ */ z(ul, [["__scopeId", "data-v-77f4b9a1"]]), Aa = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", ra = {
|
2674
2672
|
recent: "Recently used",
|
2675
2673
|
smileys_people: "Smiles & People",
|
2676
2674
|
animals_nature: "Animals & Nature",
|
@@ -15104,8 +15102,8 @@ var lA = function(t, f) {
|
|
15104
15102
|
function AA(e) {
|
15105
15103
|
var t, f = e.state, n = e.name, a = e.options, s = f.elements.arrow, i = f.modifiersData.popperOffsets, l = ke(f.placement), u = on(l), A = [se, ye].indexOf(l) >= 0, g = A ? "height" : "width";
|
15106
15104
|
if (!(!s || !i)) {
|
15107
|
-
var d = lA(a.padding, f), p = sn(s), m = u === "y" ? ae : se, v = u === "y" ? he : ye, y = f.rects.reference[g] + f.rects.reference[u] - i[u] - f.rects.popper[g], h = i[u] - f.rects.reference[u], E = Nt(s), T = E ? u === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, U = y / 2 - h / 2, V = d[m],
|
15108
|
-
f.modifiersData[n] = (t = {}, t[
|
15105
|
+
var d = lA(a.padding, f), p = sn(s), m = u === "y" ? ae : se, v = u === "y" ? he : ye, y = f.rects.reference[g] + f.rects.reference[u] - i[u] - f.rects.popper[g], h = i[u] - f.rects.reference[u], E = Nt(s), T = E ? u === "y" ? E.clientHeight || 0 : E.clientWidth || 0 : 0, U = y / 2 - h / 2, V = d[m], w = T - p[g] - d[v], j = T / 2 - p[g] / 2 + U, I = pt(V, j, w), k = u;
|
15106
|
+
f.modifiersData[n] = (t = {}, t[k] = I, t.centerOffset = I - j, t);
|
15109
15107
|
}
|
15110
15108
|
}
|
15111
15109
|
function rA(e) {
|
@@ -15138,28 +15136,28 @@ function dA(e) {
|
|
15138
15136
|
};
|
15139
15137
|
}
|
15140
15138
|
function On(e) {
|
15141
|
-
var t, f = e.popper, n = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, u = e.gpuAcceleration, A = e.adaptive, g = e.roundOffsets, d = e.isFixed, p = g === !0 ? dA(i) : typeof g == "function" ? g(i) : i, m = p.x, v = m === void 0 ? 0 : m, y = p.y, h = y === void 0 ? 0 : y, E = i.hasOwnProperty("x"), T = i.hasOwnProperty("y"), U = se, V = ae,
|
15139
|
+
var t, f = e.popper, n = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, u = e.gpuAcceleration, A = e.adaptive, g = e.roundOffsets, d = e.isFixed, p = g === !0 ? dA(i) : typeof g == "function" ? g(i) : i, m = p.x, v = m === void 0 ? 0 : m, y = p.y, h = y === void 0 ? 0 : y, E = i.hasOwnProperty("x"), T = i.hasOwnProperty("y"), U = se, V = ae, w = window;
|
15142
15140
|
if (A) {
|
15143
|
-
var j = Nt(f), I = "clientHeight",
|
15144
|
-
if (j === Me(f) && (j = Le(f), Ne(j).position !== "static" && l === "absolute" && (I = "scrollHeight",
|
15141
|
+
var j = Nt(f), I = "clientHeight", k = "clientWidth";
|
15142
|
+
if (j === Me(f) && (j = Le(f), Ne(j).position !== "static" && l === "absolute" && (I = "scrollHeight", k = "scrollWidth")), j = j, a === ae || (a === se || a === ye) && s === It) {
|
15145
15143
|
V = he;
|
15146
|
-
var D = d &&
|
15144
|
+
var D = d && w.visualViewport ? w.visualViewport.height : j[I];
|
15147
15145
|
h -= D - n.height, h *= u ? 1 : -1;
|
15148
15146
|
}
|
15149
15147
|
if (a === se || (a === ae || a === he) && s === It) {
|
15150
15148
|
U = ye;
|
15151
|
-
var x = d &&
|
15149
|
+
var x = d && w.visualViewport ? w.visualViewport.width : j[k];
|
15152
15150
|
v -= x - n.width, v *= u ? 1 : -1;
|
15153
15151
|
}
|
15154
15152
|
}
|
15155
|
-
var
|
15153
|
+
var B = Object.assign({
|
15156
15154
|
position: l
|
15157
15155
|
}, A && cA);
|
15158
15156
|
if (u) {
|
15159
15157
|
var H;
|
15160
|
-
return Object.assign({},
|
15158
|
+
return Object.assign({}, B, (H = {}, H[V] = T ? "0" : "", H[U] = E ? "0" : "", H.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + h + "px)" : "translate3d(" + v + "px, " + h + "px, 0)", H));
|
15161
15159
|
}
|
15162
|
-
return Object.assign({},
|
15160
|
+
return Object.assign({}, B, (t = {}, t[V] = T ? h + "px" : "", t[U] = E ? v + "px" : "", t.transform = "", t));
|
15163
15161
|
}
|
15164
15162
|
function gA(e) {
|
15165
15163
|
var t = e.state, f = e.options, n = f.gpuAcceleration, a = n === void 0 ? !0 : n, s = f.adaptive, i = s === void 0 ? !0 : s, l = f.roundOffsets, u = l === void 0 ? !0 : l, A = {
|
@@ -15349,12 +15347,12 @@ function _a(e) {
|
|
15349
15347
|
}
|
15350
15348
|
function kt(e, t) {
|
15351
15349
|
t === void 0 && (t = {});
|
15352
|
-
var f = t, n = f.placement, a = n === void 0 ? e.placement : n, s = f.boundary, i = s === void 0 ? Fl : s, l = f.rootBoundary, u = l === void 0 ? ga : l, A = f.elementContext, g = A === void 0 ? ot : A, d = f.altBoundary, p = d === void 0 ? !1 : d, m = f.padding, v = m === void 0 ? 0 : m, y = va(typeof v != "number" ? v : ba(v, wt)), h = g === ot ? ql : ot, E = e.rects.popper, T = e.elements[p ? h : g], U = kA(Je(T) ? T : T.contextElement || Le(e.elements.popper), i, u), V = Ze(e.elements.reference),
|
15350
|
+
var f = t, n = f.placement, a = n === void 0 ? e.placement : n, s = f.boundary, i = s === void 0 ? Fl : s, l = f.rootBoundary, u = l === void 0 ? ga : l, A = f.elementContext, g = A === void 0 ? ot : A, d = f.altBoundary, p = d === void 0 ? !1 : d, m = f.padding, v = m === void 0 ? 0 : m, y = va(typeof v != "number" ? v : ba(v, wt)), h = g === ot ? ql : ot, E = e.rects.popper, T = e.elements[p ? h : g], U = kA(Je(T) ? T : T.contextElement || Le(e.elements.popper), i, u), V = Ze(e.elements.reference), w = _a({
|
15353
15351
|
reference: V,
|
15354
15352
|
element: E,
|
15355
15353
|
strategy: "absolute",
|
15356
15354
|
placement: a
|
15357
|
-
}), j = Ff(Object.assign({}, E,
|
15355
|
+
}), j = Ff(Object.assign({}, E, w)), I = g === ot ? j : V, k = {
|
15358
15356
|
top: U.top - I.top + y.top,
|
15359
15357
|
bottom: I.bottom - U.bottom + y.bottom,
|
15360
15358
|
left: U.left - I.left + y.left,
|
@@ -15362,12 +15360,12 @@ function kt(e, t) {
|
|
15362
15360
|
}, D = e.modifiersData.offset;
|
15363
15361
|
if (g === ot && D) {
|
15364
15362
|
var x = D[a];
|
15365
|
-
Object.keys(
|
15366
|
-
var H = [ye, he].indexOf(
|
15367
|
-
|
15363
|
+
Object.keys(k).forEach(function(B) {
|
15364
|
+
var H = [ye, he].indexOf(B) >= 0 ? 1 : -1, te = [ae, he].indexOf(B) >= 0 ? "y" : "x";
|
15365
|
+
k[B] += x[te] * H;
|
15368
15366
|
});
|
15369
15367
|
}
|
15370
|
-
return
|
15368
|
+
return k;
|
15371
15369
|
}
|
15372
15370
|
function wA(e, t) {
|
15373
15371
|
t === void 0 && (t = {});
|
@@ -15407,25 +15405,25 @@ function DA(e) {
|
|
15407
15405
|
flipVariations: v,
|
15408
15406
|
allowedAutoPlacements: y
|
15409
15407
|
}) : xe);
|
15410
|
-
}, []),
|
15411
|
-
var
|
15412
|
-
placement:
|
15408
|
+
}, []), w = t.rects.reference, j = t.rects.popper, I = /* @__PURE__ */ new Map(), k = !0, D = V[0], x = 0; x < V.length; x++) {
|
15409
|
+
var B = V[x], H = ke(B), te = Xe(B) === Ke, ce = [ae, he].indexOf(H) >= 0, le = ce ? "width" : "height", S = kt(t, {
|
15410
|
+
placement: B,
|
15413
15411
|
boundary: g,
|
15414
15412
|
rootBoundary: d,
|
15415
15413
|
altBoundary: p,
|
15416
15414
|
padding: A
|
15417
15415
|
}), L = ce ? te ? ye : se : te ? he : ae;
|
15418
|
-
|
15419
|
-
var
|
15420
|
-
if (s && X.push(S[H] <= 0), l && X.push(S[L] <= 0, S[
|
15416
|
+
w[le] > j[le] && (L = Bt(L));
|
15417
|
+
var Q = Bt(L), X = [];
|
15418
|
+
if (s && X.push(S[H] <= 0), l && X.push(S[L] <= 0, S[Q] <= 0), X.every(function(Fe) {
|
15421
15419
|
return Fe;
|
15422
15420
|
})) {
|
15423
|
-
D =
|
15421
|
+
D = B, k = !1;
|
15424
15422
|
break;
|
15425
15423
|
}
|
15426
|
-
I.set(
|
15424
|
+
I.set(B, X);
|
15427
15425
|
}
|
15428
|
-
if (
|
15426
|
+
if (k)
|
15429
15427
|
for (var ve = v ? 3 : 1, De = function(xe) {
|
15430
15428
|
var st = V.find(function(Tt) {
|
15431
15429
|
var Be = I.get(Tt);
|
@@ -15543,7 +15541,7 @@ function LA(e) {
|
|
15543
15541
|
rootBoundary: A,
|
15544
15542
|
padding: d,
|
15545
15543
|
altBoundary: g
|
15546
|
-
}), E = ke(t.placement), T = Xe(t.placement), U = !T, V = on(E),
|
15544
|
+
}), E = ke(t.placement), T = Xe(t.placement), U = !T, V = on(E), w = zA(V), j = t.modifiersData.popperOffsets, I = t.rects.reference, k = t.rects.popper, D = typeof y == "function" ? y(Object.assign({}, t.rects, {
|
15547
15545
|
placement: t.placement
|
15548
15546
|
})) : y, x = typeof D == "number" ? {
|
15549
15547
|
mainAxis: D,
|
@@ -15551,21 +15549,21 @@ function LA(e) {
|
|
15551
15549
|
} : Object.assign({
|
15552
15550
|
mainAxis: 0,
|
15553
15551
|
altAxis: 0
|
15554
|
-
}, D),
|
15552
|
+
}, D), B = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, H = {
|
15555
15553
|
x: 0,
|
15556
15554
|
y: 0
|
15557
15555
|
};
|
15558
15556
|
if (j) {
|
15559
15557
|
if (s) {
|
15560
|
-
var te, ce = V === "y" ? ae : se, le = V === "y" ? he : ye, S = V === "y" ? "height" : "width", L = j[V],
|
15558
|
+
var te, ce = V === "y" ? ae : se, le = V === "y" ? he : ye, S = V === "y" ? "height" : "width", L = j[V], Q = L + h[ce], X = L - h[le], ve = m ? -k[S] / 2 : 0, De = T === Ke ? I[S] : k[S], at = T === Ke ? -k[S] : -I[S], Et = t.elements.arrow, Fe = m && Et ? sn(Et) : {
|
15561
15559
|
width: 0,
|
15562
15560
|
height: 0
|
15563
|
-
}, xe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ya(), st = xe[ce], Tt = xe[le], Be = pt(0, I[S], Fe[S]), Mf = U ? I[S] / 2 - ve - Be - st - x.mainAxis : De - Be - st - x.mainAxis, Na = U ? -I[S] / 2 + ve + Be + Tt + x.mainAxis : at + Be + Tt + x.mainAxis, _f = t.elements.arrow && Nt(t.elements.arrow), Da = _f ? V === "y" ? _f.clientTop || 0 : _f.clientLeft || 0 : 0, cn = (te =
|
15561
|
+
}, xe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ya(), st = xe[ce], Tt = xe[le], Be = pt(0, I[S], Fe[S]), Mf = U ? I[S] / 2 - ve - Be - st - x.mainAxis : De - Be - st - x.mainAxis, Na = U ? -I[S] / 2 + ve + Be + Tt + x.mainAxis : at + Be + Tt + x.mainAxis, _f = t.elements.arrow && Nt(t.elements.arrow), Da = _f ? V === "y" ? _f.clientTop || 0 : _f.clientLeft || 0 : 0, cn = (te = B == null ? void 0 : B[V]) != null ? te : 0, ja = L + Mf - cn - Da, Ea = L + Na - cn, dn = pt(m ? pf(Q, ja) : Q, L, m ? Ye(X, Ea) : X);
|
15564
15562
|
j[V] = dn, H[V] = dn - L;
|
15565
15563
|
}
|
15566
15564
|
if (l) {
|
15567
|
-
var gn, Ta = V === "x" ? ae : se, xa = V === "x" ? he : ye, Qe = j[
|
15568
|
-
j[
|
15565
|
+
var gn, Ta = V === "x" ? ae : se, xa = V === "x" ? he : ye, Qe = j[w], xt = w === "y" ? "height" : "width", mn = Qe + h[Ta], pn = Qe - h[xa], If = [ae, se].indexOf(E) !== -1, hn = (gn = B == null ? void 0 : B[w]) != null ? gn : 0, yn = If ? mn : Qe - I[xt] - k[xt] - hn + x.altAxis, vn = If ? Qe + I[xt] + k[xt] - hn - x.altAxis : pn, bn = m && If ? oA(yn, Qe, vn) : pt(m ? yn : mn, Qe, m ? vn : pn);
|
15566
|
+
j[w] = bn, H[w] = bn - Qe;
|
15569
15567
|
}
|
15570
15568
|
t.modifiersData[n] = H;
|
15571
15569
|
}
|
@@ -15711,10 +15709,10 @@ function HA(e) {
|
|
15711
15709
|
g.reset = !1, V = -1;
|
15712
15710
|
continue;
|
15713
15711
|
}
|
15714
|
-
var
|
15712
|
+
var w = g.orderedModifiers[V], j = w.fn, I = w.options, k = I === void 0 ? {} : I, D = w.name;
|
15715
15713
|
typeof j == "function" && (g = j({
|
15716
15714
|
state: g,
|
15717
|
-
options:
|
15715
|
+
options: k,
|
15718
15716
|
name: D,
|
15719
15717
|
instance: m
|
15720
15718
|
}) || g);
|
@@ -15740,14 +15738,14 @@ function HA(e) {
|
|
15740
15738
|
g.orderedModifiers.forEach(function(h) {
|
15741
15739
|
var E = h.name, T = h.options, U = T === void 0 ? {} : T, V = h.effect;
|
15742
15740
|
if (typeof V == "function") {
|
15743
|
-
var
|
15741
|
+
var w = V({
|
15744
15742
|
state: g,
|
15745
15743
|
name: E,
|
15746
15744
|
instance: m,
|
15747
15745
|
options: U
|
15748
15746
|
}), j = function() {
|
15749
15747
|
};
|
15750
|
-
d.push(
|
15748
|
+
d.push(w || j);
|
15751
15749
|
}
|
15752
15750
|
});
|
15753
15751
|
}
|
@@ -16418,7 +16416,7 @@ const Pr = {
|
|
16418
16416
|
})
|
16419
16417
|
], 64));
|
16420
16418
|
}
|
16421
|
-
},
|
16419
|
+
}, Cd = /* @__PURE__ */ z(Pr, [["__scopeId", "data-v-a6a1f980"]]), Hr = { class: "context-menu__container" }, Wr = { class: "context-menu__list" }, Kr = ["onClick"], Jr = ["src"], Gr = {
|
16422
16420
|
__name: "ContextMenu",
|
16423
16421
|
props: {
|
16424
16422
|
actions: {
|
@@ -16469,46 +16467,62 @@ function Zr(e, t = 500) {
|
|
16469
16467
|
}
|
16470
16468
|
const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "40px" } }, tu = ["placeholder"], fu = /* @__PURE__ */ P({
|
16471
16469
|
__name: "FeedSearch",
|
16472
|
-
|
16470
|
+
props: {
|
16471
|
+
isFeedLocation: {
|
16472
|
+
type: Boolean,
|
16473
|
+
default: !1
|
16474
|
+
}
|
16475
|
+
},
|
16476
|
+
emits: ["search", "cancel", "switch"],
|
16473
16477
|
setup(e, { emit: t }) {
|
16474
|
-
const f = t, n = M(),
|
16478
|
+
const f = t, n = e, a = M(), s = Zr("", 500), i = F(() => {
|
16479
|
+
if (n.isFeedLocation) return "40px";
|
16480
|
+
if (!n.isFeedLocation) return "20px";
|
16481
|
+
});
|
16475
16482
|
J(
|
16476
|
-
() =>
|
16483
|
+
() => s.value,
|
16477
16484
|
() => {
|
16478
|
-
f("search",
|
16485
|
+
f("search", s.value);
|
16479
16486
|
}
|
16480
16487
|
);
|
16481
|
-
const
|
16482
|
-
const
|
16483
|
-
|
16488
|
+
const l = () => {
|
16489
|
+
const u = C(a);
|
16490
|
+
u && (u.value = ""), f("cancel");
|
16484
16491
|
};
|
16485
16492
|
return oe(() => {
|
16486
|
-
const
|
16487
|
-
|
16488
|
-
}), (
|
16493
|
+
const u = C(a);
|
16494
|
+
u == null || u.focus(), f("search", u == null ? void 0 : u.value);
|
16495
|
+
}), (u, A) => (r(), R(W, null, {
|
16489
16496
|
default: K(() => [
|
16490
16497
|
o("div", Xr, [
|
16491
16498
|
o("span", eu, N(C(ue)("component.FeedSearch.SearchLabel")), 1),
|
16492
16499
|
re(o("input", {
|
16493
16500
|
ref_key: "refInput",
|
16494
|
-
ref:
|
16501
|
+
ref: a,
|
16495
16502
|
class: "feed-search__input",
|
16496
16503
|
type: "text",
|
16497
16504
|
placeholder: C(ue)("component.FeedSearch.SearchPlaceholder"),
|
16498
|
-
"onUpdate:modelValue":
|
16505
|
+
"onUpdate:modelValue": A[0] || (A[0] = (g) => La(s) ? s.value = g : null)
|
16499
16506
|
}, null, 8, tu), [
|
16500
|
-
[Pe, C(
|
16507
|
+
[Pe, C(s)]
|
16501
16508
|
]),
|
16502
16509
|
o("i", {
|
16503
16510
|
class: "pi pi-times",
|
16504
|
-
onClick:
|
16505
|
-
|
16511
|
+
onClick: l,
|
16512
|
+
style: ee({ right: i.value })
|
16513
|
+
}, null, 4),
|
16514
|
+
e.isFeedLocation ? (r(), c("span", {
|
16515
|
+
key: 0,
|
16516
|
+
class: "pi pi-refresh",
|
16517
|
+
style: { "margin-left": "5px", "margin-top": "10px", cursor: "pointer" },
|
16518
|
+
onClick: A[1] || (A[1] = (g) => f("switch"))
|
16519
|
+
})) : b("", !0)
|
16506
16520
|
])
|
16507
16521
|
]),
|
16508
16522
|
_: 1
|
16509
16523
|
}));
|
16510
16524
|
}
|
16511
|
-
}),
|
16525
|
+
}), Od = /* @__PURE__ */ z(fu, [["__scopeId", "data-v-52489317"]]), nu = { class: "feed-found-item__avatar-container" }, au = ["src"], su = {
|
16512
16526
|
key: 1,
|
16513
16527
|
class: "pi pi-user"
|
16514
16528
|
}, iu = { class: "feed-found-item__info" }, ou = { class: "feed-found-item__first-line" }, lu = { class: "feed-found-item__name" }, Au = { class: "feed-found-item__time" }, ru = { class: "feed-found-item__second-line" }, uu = ["src"], cu = /* @__PURE__ */ P({
|
@@ -16596,7 +16610,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
16596
16610
|
A.messageId && (f("clickedSearch", A.messageId), s.value = A);
|
16597
16611
|
}, u = () => {
|
16598
16612
|
const A = C(a);
|
16599
|
-
|
16613
|
+
A.scrollHeight - A.scrollTop - A.clientHeight <= 0 && f("loadMore");
|
16600
16614
|
};
|
16601
16615
|
return (A, g) => (r(), c(q, null, [
|
16602
16616
|
o("h3", gu, N(C(ue)("component.FeedFoundObjects.results")) + ": " + N(e.foundAmount), 1),
|
@@ -16620,7 +16634,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
16620
16634
|
])) : b("", !0)
|
16621
16635
|
], 64));
|
16622
16636
|
}
|
16623
|
-
}),
|
16637
|
+
}), zd = /* @__PURE__ */ z(hu, [["__scopeId", "data-v-c32de248"]]), nt = /* @__PURE__ */ P({
|
16624
16638
|
__name: "BaseReplyMessage",
|
16625
16639
|
props: {
|
16626
16640
|
message: {
|
@@ -16848,11 +16862,11 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
16848
16862
|
},
|
16849
16863
|
{ immediate: !0 }
|
16850
16864
|
);
|
16851
|
-
const A = (
|
16852
|
-
n("reply",
|
16865
|
+
const A = (w) => {
|
16866
|
+
n("reply", w);
|
16853
16867
|
};
|
16854
|
-
function g(
|
16855
|
-
|
16868
|
+
function g(w) {
|
16869
|
+
w.preventDefault(), w.target.href && window.open(w.target.href, "_blank");
|
16856
16870
|
}
|
16857
16871
|
const d = () => {
|
16858
16872
|
n("action", { messageId: f.message.messageId, type: "views" });
|
@@ -16862,19 +16876,19 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
16862
16876
|
}, v = () => {
|
16863
16877
|
i.value = !1, s.value = !1;
|
16864
16878
|
}, y = F(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), h = F(() => ft(f.message.status));
|
16865
|
-
function E(
|
16866
|
-
return
|
16879
|
+
function E(w) {
|
16880
|
+
return w.position === "left" ? "image-message__left" : "image-message__right";
|
16867
16881
|
}
|
16868
|
-
const T = () => a.value = !1, U = (
|
16869
|
-
|
16870
|
-
}, V = (
|
16871
|
-
|
16882
|
+
const T = () => a.value = !1, U = (w) => {
|
16883
|
+
w.target.classList.contains("image-message__modal-overlay") && T();
|
16884
|
+
}, V = (w) => {
|
16885
|
+
w.key === "Escape" && a.value && T();
|
16872
16886
|
};
|
16873
16887
|
return oe(() => {
|
16874
16888
|
document.addEventListener("keydown", V);
|
16875
16889
|
}), et(() => {
|
16876
16890
|
document.removeEventListener("keydown", V);
|
16877
|
-
}), (
|
16891
|
+
}), (w, j) => (r(), c("div", {
|
16878
16892
|
class: O(["image-message", E(e.message)]),
|
16879
16893
|
messageId: e.message.messageId,
|
16880
16894
|
onMouseleave: v
|
@@ -17181,10 +17195,10 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
17181
17195
|
a.value && (s.value ? a.value.pause() : a.value.play(), s.value = !s.value);
|
17182
17196
|
}
|
17183
17197
|
const V = (D) => {
|
17184
|
-
const x = Math.floor(D / 60),
|
17185
|
-
return `${x.toString().padStart(2, "0")}:${
|
17186
|
-
},
|
17187
|
-
function
|
17198
|
+
const x = Math.floor(D / 60), B = Math.floor(D % 60);
|
17199
|
+
return `${x.toString().padStart(2, "0")}:${B.toString().padStart(2, "0")}`;
|
17200
|
+
}, w = F(() => a.value ? V(l.value) : "0:00"), j = F(() => a.value ? V(i.value) : "0:00"), I = F(() => i.value > 0 ? l.value / i.value * 100 : 0);
|
17201
|
+
function k(D) {
|
17188
17202
|
return D.position === "left" ? "audio-message__left" : "audio-message__right";
|
17189
17203
|
}
|
17190
17204
|
return oe(() => {
|
@@ -17194,9 +17208,9 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
17194
17208
|
l.value = a.value != null ? a.value.currentTime : 0;
|
17195
17209
|
}));
|
17196
17210
|
}), (D, x) => {
|
17197
|
-
var
|
17211
|
+
var B;
|
17198
17212
|
return r(), c("div", {
|
17199
|
-
class: O(["audio-message",
|
17213
|
+
class: O(["audio-message", k(e.message)]),
|
17200
17214
|
messageId: e.message.messageId,
|
17201
17215
|
onMouseleave: y
|
17202
17216
|
}, [
|
@@ -17248,7 +17262,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
17248
17262
|
style: ee({ width: I.value + "%" })
|
17249
17263
|
}, null, 4)
|
17250
17264
|
]),
|
17251
|
-
o("p", dc, N(`${
|
17265
|
+
o("p", dc, N(`${w.value} / ${j.value}`), 1),
|
17252
17266
|
o("a", {
|
17253
17267
|
class: "audio-message__download-button",
|
17254
17268
|
onClick: vt(() => "//Предотвращаем всплытие события клика", ["stop"]),
|
@@ -17259,7 +17273,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
17259
17273
|
o("span", { class: "pi pi-download" }, null, -1)
|
17260
17274
|
]), 8, gc)
|
17261
17275
|
]),
|
17262
|
-
(
|
17276
|
+
(B = e.message.transcript) != null && B.text ? (r(), c("div", mc, [
|
17263
17277
|
o("p", {
|
17264
17278
|
onClick: x[0] || (x[0] = (H) => d.value = !d.value)
|
17265
17279
|
}, N(e.message.transcript.text), 1)
|
@@ -17285,7 +17299,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
17285
17299
|
o("p", null, N(e.message.views), 1)
|
17286
17300
|
])) : b("", !0),
|
17287
17301
|
o("span", vc, N(e.message.time), 1),
|
17288
|
-
|
17302
|
+
k(e.message) === "audio-message__right" && C(tt).includes(e.message.status) ? (r(), c("div", {
|
17289
17303
|
key: 1,
|
17290
17304
|
class: O(["audio-message__status", T.value])
|
17291
17305
|
}, [
|
@@ -17376,11 +17390,11 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
17376
17390
|
},
|
17377
17391
|
emits: ["action", "reply"],
|
17378
17392
|
setup(e, { emit: t }) {
|
17379
|
-
const f = e, n = t, a = (
|
17380
|
-
n("reply",
|
17393
|
+
const f = e, n = t, a = (k) => {
|
17394
|
+
n("reply", k);
|
17381
17395
|
};
|
17382
|
-
function s(
|
17383
|
-
return
|
17396
|
+
function s(k) {
|
17397
|
+
return k.position === "left" ? "video-message__left" : "video-message__right";
|
17384
17398
|
}
|
17385
17399
|
const i = M(), l = M(), u = M(!1), A = M(!1), g = M(!1), d = M(!1), p = M("");
|
17386
17400
|
J(
|
@@ -17390,8 +17404,8 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
17390
17404
|
},
|
17391
17405
|
{ immediate: !0 }
|
17392
17406
|
);
|
17393
|
-
function m(
|
17394
|
-
|
17407
|
+
function m(k) {
|
17408
|
+
k.preventDefault(), k.target.href && window.open(k.target.href, "_blank");
|
17395
17409
|
}
|
17396
17410
|
const v = () => {
|
17397
17411
|
n("action", { messageId: f.message.messageId, type: "views" });
|
@@ -17403,19 +17417,19 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
17403
17417
|
}, T = F(() => ft(f.message.status)), U = () => {
|
17404
17418
|
l.value && (l.value.currentTime = 0, l.value.play());
|
17405
17419
|
};
|
17406
|
-
J([i, l], ([
|
17407
|
-
|
17420
|
+
J([i, l], ([k, D]) => {
|
17421
|
+
k ? D && (D.pause(), D.currentTime = 0) : D && (D.play(), D.currentTime = 0);
|
17408
17422
|
});
|
17409
|
-
const V = F(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"),
|
17410
|
-
|
17411
|
-
}, I = (
|
17412
|
-
|
17423
|
+
const V = F(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), w = () => u.value = !1, j = (k) => {
|
17424
|
+
k.target.classList.contains("video-message__modal-overlay") && w();
|
17425
|
+
}, I = (k) => {
|
17426
|
+
k.key === "Escape" && u.value && w();
|
17413
17427
|
};
|
17414
17428
|
return oe(() => {
|
17415
17429
|
document.addEventListener("keydown", I);
|
17416
17430
|
}), et(() => {
|
17417
17431
|
document.removeEventListener("keydown", I);
|
17418
|
-
}), (
|
17432
|
+
}), (k, D) => (r(), c(q, null, [
|
17419
17433
|
o("div", {
|
17420
17434
|
class: O(["video-message", s(e.message)]),
|
17421
17435
|
messageId: e.message.messageId,
|
@@ -17539,7 +17553,7 @@ const Xr = { class: "feed-search__container" }, eu = { style: { "line-height": "
|
|
17539
17553
|
o("div", Rc, [
|
17540
17554
|
o("button", {
|
17541
17555
|
class: "video-message__modal-close-button",
|
17542
|
-
onClick:
|
17556
|
+
onClick: w
|
17543
17557
|
}, D[7] || (D[7] = [
|
17544
17558
|
o("span", null, [
|
17545
17559
|
o("i", { class: "pi pi-times" })
|
@@ -18053,17 +18067,17 @@ function un({ component: e, attrs: t }) {
|
|
18053
18067
|
A.mount(n);
|
18054
18068
|
});
|
18055
18069
|
}
|
18056
|
-
const
|
18070
|
+
const Ld = async (e, t) => {
|
18057
18071
|
const f = await un({
|
18058
18072
|
//в component должен быть встроен emit change(key: value)
|
18059
|
-
component: import("./SelectUser2-
|
18073
|
+
component: import("./SelectUser2-CfoZO2-f.js"),
|
18060
18074
|
attrs: {
|
18061
18075
|
title: e,
|
18062
18076
|
users: t
|
18063
18077
|
}
|
18064
18078
|
});
|
18065
18079
|
return console.log("data", f), f;
|
18066
|
-
},
|
18080
|
+
}, Ud = async (e) => {
|
18067
18081
|
const t = await un({
|
18068
18082
|
//в component должен быть встроен emit change(key: value)
|
18069
18083
|
component: import("./CreateChat-fkFKBxtQ.js"),
|
@@ -18072,13 +18086,13 @@ const zd = async (e, t) => {
|
|
18072
18086
|
}
|
18073
18087
|
});
|
18074
18088
|
return console.log("data", t), t;
|
18075
|
-
},
|
18089
|
+
}, Bd = async (e) => await un({
|
18076
18090
|
//в component должен быть встроен emit change(key: value)
|
18077
18091
|
component: import("./CreateChat2-DgUQ2F5L.js"),
|
18078
18092
|
attrs: {
|
18079
18093
|
title: e
|
18080
18094
|
}
|
18081
|
-
}), H1 = ["id"],
|
18095
|
+
}), H1 = ["id"], Qd = {
|
18082
18096
|
__name: "BaseContainer",
|
18083
18097
|
props: {
|
18084
18098
|
height: String,
|
@@ -18098,7 +18112,7 @@ const zd = async (e, t) => {
|
|
18098
18112
|
], 4)
|
18099
18113
|
], 8, H1));
|
18100
18114
|
}
|
18101
|
-
}, W1 = ["id"], K1 = { class: "float-window__container" }, J1 = ["src", "alt"], G1 = { class: "float-window__title" }, Z1 = {
|
18115
|
+
}, W1 = ["id"], K1 = { class: "float-window__container" }, J1 = ["src", "alt"], G1 = { class: "float-window__title" }, Z1 = { style: { "margin-left": "auto", display: "flex" } }, X1 = {
|
18102
18116
|
__name: "FloatContainer",
|
18103
18117
|
props: {
|
18104
18118
|
title: {
|
@@ -18130,7 +18144,7 @@ const zd = async (e, t) => {
|
|
18130
18144
|
};
|
18131
18145
|
return oe(() => {
|
18132
18146
|
document.addEventListener("mousemove", m), window.addEventListener("resize", () => {
|
18133
|
-
n.value.x = Math.max(
|
18147
|
+
a.value && (n.value.x = Math.max(
|
18134
18148
|
0,
|
18135
18149
|
Math.min(
|
18136
18150
|
n.value.x,
|
@@ -18142,7 +18156,7 @@ const zd = async (e, t) => {
|
|
18142
18156
|
n.value.y,
|
18143
18157
|
window.innerHeight - a.value.offsetHeight
|
18144
18158
|
)
|
18145
|
-
);
|
18159
|
+
));
|
18146
18160
|
}), A.value = a.value.offsetHeight - s.value.offsetHeight;
|
18147
18161
|
}), (v, y) => (r(), c("div", {
|
18148
18162
|
id: C(g),
|
@@ -18175,12 +18189,15 @@ const zd = async (e, t) => {
|
|
18175
18189
|
alt: f.title
|
18176
18190
|
}, null, 8, J1)) : b("", !0),
|
18177
18191
|
o("p", G1, N(f.title), 1),
|
18178
|
-
o("
|
18179
|
-
|
18180
|
-
|
18181
|
-
|
18182
|
-
|
18183
|
-
|
18192
|
+
o("div", Z1, [
|
18193
|
+
ne(v.$slots, "controls", {}, void 0, !0),
|
18194
|
+
o("button", {
|
18195
|
+
class: "float-window__close-button",
|
18196
|
+
onClick: y[0] || (y[0] = (h) => v.$emit("close-window"))
|
18197
|
+
}, y[1] || (y[1] = [
|
18198
|
+
o("span", { class: "pi pi-times" }, null, -1)
|
18199
|
+
]))
|
18200
|
+
])
|
18184
18201
|
], 36),
|
18185
18202
|
o("div", {
|
18186
18203
|
class: "float-window__content",
|
@@ -18191,18 +18208,18 @@ const zd = async (e, t) => {
|
|
18191
18208
|
])
|
18192
18209
|
], 12, W1));
|
18193
18210
|
}
|
18194
|
-
},
|
18195
|
-
function
|
18196
|
-
return r(), c("div",
|
18197
|
-
o("div",
|
18211
|
+
}, Rd = /* @__PURE__ */ z(X1, [["__scopeId", "data-v-ad697d4f"]]), ed = {}, td = { class: "base-layout__container" }, fd = { class: "base-layout__first-col" }, nd = { class: "base-layout__second-col" };
|
18212
|
+
function ad(e, t) {
|
18213
|
+
return r(), c("div", td, [
|
18214
|
+
o("div", fd, [
|
18198
18215
|
ne(e.$slots, "first-col", {}, void 0, !0)
|
18199
18216
|
]),
|
18200
|
-
o("div",
|
18217
|
+
o("div", nd, [
|
18201
18218
|
ne(e.$slots, "second-col", {}, void 0, !0)
|
18202
18219
|
])
|
18203
18220
|
]);
|
18204
18221
|
}
|
18205
|
-
const
|
18222
|
+
const Yd = /* @__PURE__ */ z(ed, [["render", ad], ["__scopeId", "data-v-a5df3fcf"]]), sd = { class: "extend-layout__container" }, id = { class: "extend-layout__first-col" }, od = { class: "extend-layout__third-col" }, ld = {
|
18206
18223
|
__name: "ExtendedLayout",
|
18207
18224
|
setup(e) {
|
18208
18225
|
const t = M(null);
|
@@ -18219,8 +18236,8 @@ const Rd = /* @__PURE__ */ z(X1, [["render", nd], ["__scopeId", "data-v-a5df3fcf
|
|
18219
18236
|
};
|
18220
18237
|
return oe(() => {
|
18221
18238
|
t.value && (t.value.style.width = "350px");
|
18222
|
-
}), (A, g) => (r(), c("div",
|
18223
|
-
o("div",
|
18239
|
+
}), (A, g) => (r(), c("div", sd, [
|
18240
|
+
o("div", id, [
|
18224
18241
|
ne(A.$slots, "first-col", {}, void 0, !0)
|
18225
18242
|
]),
|
18226
18243
|
o("div", {
|
@@ -18233,26 +18250,26 @@ const Rd = /* @__PURE__ */ z(X1, [["render", nd], ["__scopeId", "data-v-a5df3fcf
|
|
18233
18250
|
}, [
|
18234
18251
|
ne(A.$slots, "second-col", {}, void 0, !0)
|
18235
18252
|
], 36),
|
18236
|
-
o("div",
|
18253
|
+
o("div", od, [
|
18237
18254
|
ne(A.$slots, "third-col", {}, void 0, !0)
|
18238
18255
|
])
|
18239
18256
|
]));
|
18240
18257
|
}
|
18241
|
-
},
|
18242
|
-
function
|
18243
|
-
return r(), c("div",
|
18244
|
-
o("div",
|
18258
|
+
}, $d = /* @__PURE__ */ z(ld, [["__scopeId", "data-v-7c3b977d"]]), Ad = {}, rd = { class: "base-layout__container" }, ud = { class: "base-layout__first-col" };
|
18259
|
+
function cd(e, t) {
|
18260
|
+
return r(), c("div", rd, [
|
18261
|
+
o("div", ud, [
|
18245
18262
|
ne(e.$slots, "default", {}, void 0, !0)
|
18246
18263
|
])
|
18247
18264
|
]);
|
18248
18265
|
}
|
18249
|
-
const
|
18266
|
+
const Fd = /* @__PURE__ */ z(Ad, [["render", cd], ["__scopeId", "data-v-e71ea0ed"]]), dd = { class: "chat-wrapper" }, gd = {
|
18250
18267
|
key: 0,
|
18251
18268
|
class: "chat-wrapper__selected-chat"
|
18252
|
-
},
|
18269
|
+
}, md = {
|
18253
18270
|
key: 1,
|
18254
18271
|
style: { width: "100%" }
|
18255
|
-
},
|
18272
|
+
}, pd = /* @__PURE__ */ P({
|
18256
18273
|
__name: "ChatWrapper",
|
18257
18274
|
props: {
|
18258
18275
|
isOpenChatPanel: {
|
@@ -18265,10 +18282,10 @@ const $d = /* @__PURE__ */ z(ld, [["render", ud], ["__scopeId", "data-v-e71ea0ed
|
|
18265
18282
|
}
|
18266
18283
|
},
|
18267
18284
|
setup(e) {
|
18268
|
-
return (t, f) => (r(), c("div",
|
18269
|
-
e.isSelectedChat ? (r(), c("div",
|
18285
|
+
return (t, f) => (r(), c("div", dd, [
|
18286
|
+
e.isSelectedChat ? (r(), c("div", gd, [
|
18270
18287
|
ne(t.$slots, "default", {}, void 0, !0)
|
18271
|
-
])) : (r(), c("div",
|
18288
|
+
])) : (r(), c("div", md, [
|
18272
18289
|
o("p", null, N(C(ue)("layout.ChatWrapper.noSelectedChat")), 1)
|
18273
18290
|
])),
|
18274
18291
|
e.isOpenChatPanel ? (r(), c("div", {
|
@@ -18280,31 +18297,31 @@ const $d = /* @__PURE__ */ z(ld, [["render", ud], ["__scopeId", "data-v-e71ea0ed
|
|
18280
18297
|
], 4)) : b("", !0)
|
18281
18298
|
]));
|
18282
18299
|
}
|
18283
|
-
}),
|
18300
|
+
}), qd = /* @__PURE__ */ z(pd, [["__scopeId", "data-v-12c6a622"]]);
|
18284
18301
|
export {
|
18285
18302
|
wc as A,
|
18286
18303
|
oa as B,
|
18287
18304
|
s1 as C,
|
18288
18305
|
Ec as D,
|
18289
|
-
|
18306
|
+
Bd as E,
|
18290
18307
|
zu as F,
|
18291
|
-
|
18292
|
-
|
18308
|
+
Qd as G,
|
18309
|
+
Rd as H,
|
18293
18310
|
Gu as I,
|
18294
|
-
|
18295
|
-
|
18311
|
+
Yd as J,
|
18312
|
+
$d as K,
|
18296
18313
|
jt as L,
|
18297
|
-
|
18298
|
-
|
18299
|
-
|
18300
|
-
|
18301
|
-
|
18314
|
+
Fd as M,
|
18315
|
+
qd as N,
|
18316
|
+
Id as O,
|
18317
|
+
kd as P,
|
18318
|
+
wd as Q,
|
18302
18319
|
p1 as R,
|
18303
18320
|
A1 as S,
|
18304
18321
|
ic as T,
|
18305
|
-
|
18322
|
+
_d as U,
|
18306
18323
|
Fc as V,
|
18307
|
-
|
18324
|
+
Nd as W,
|
18308
18325
|
gf as X,
|
18309
18326
|
tt as Y,
|
18310
18327
|
ft as Z,
|
@@ -18315,24 +18332,24 @@ export {
|
|
18315
18332
|
O1 as d,
|
18316
18333
|
Q1 as e,
|
18317
18334
|
nt as f,
|
18318
|
-
|
18319
|
-
|
18320
|
-
|
18321
|
-
|
18322
|
-
|
18323
|
-
|
18324
|
-
|
18325
|
-
|
18326
|
-
|
18335
|
+
yd as g,
|
18336
|
+
vd as h,
|
18337
|
+
bd as i,
|
18338
|
+
Md as j,
|
18339
|
+
Dd as k,
|
18340
|
+
jd as l,
|
18341
|
+
Ed as m,
|
18342
|
+
Td as n,
|
18343
|
+
xd as o,
|
18327
18344
|
Tf as p,
|
18328
18345
|
Gi as q,
|
18329
18346
|
bo as r,
|
18330
|
-
|
18331
|
-
|
18332
|
-
|
18347
|
+
Vd as s,
|
18348
|
+
Sd as t,
|
18349
|
+
Cd as u,
|
18333
18350
|
Ue as v,
|
18334
|
-
|
18335
|
-
|
18336
|
-
|
18337
|
-
|
18351
|
+
Od as w,
|
18352
|
+
zd as x,
|
18353
|
+
Ld as y,
|
18354
|
+
Ud as z
|
18338
18355
|
};
|