@mobilon-dev/chotto 0.2.40 → 0.2.41
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/{CreateDialog-DlGZTmCi.js → CreateDialog-BtKDNA7k.js} +1 -1
- package/dist/{ModalVideoRecorder-CD06749B.js → ModalVideoRecorder-TMsVwGWh.js} +1 -1
- package/dist/{SelectUser2-BGoDLGzQ.js → SelectUser2-6mXZXxe0.js} +1 -1
- package/dist/chotto.css +1 -1
- package/dist/{index-CHcaMFzF.js → index-D7jdDqk8.js} +83 -79
- package/dist/vuessages.es.js +1 -1
- package/dist/vuessages.umd.js +4 -4
- package/package.json +1 -1
|
@@ -643,7 +643,7 @@ function dt(e, f, t) {
|
|
|
643
643
|
const n = t[0].s, a = t[t.length - 1].e, i = f.slice(n, a);
|
|
644
644
|
return new e(i, t);
|
|
645
645
|
}
|
|
646
|
-
const
|
|
646
|
+
const Ie = {
|
|
647
647
|
scanner: null,
|
|
648
648
|
parser: null,
|
|
649
649
|
tokenQueue: [],
|
|
@@ -652,21 +652,21 @@ const ke = {
|
|
|
652
652
|
initialized: !1
|
|
653
653
|
};
|
|
654
654
|
function ya() {
|
|
655
|
-
|
|
656
|
-
for (let e = 0; e <
|
|
657
|
-
|
|
658
|
-
scanner:
|
|
655
|
+
Ie.scanner = pa(Ie.customSchemes);
|
|
656
|
+
for (let e = 0; e < Ie.tokenQueue.length; e++)
|
|
657
|
+
Ie.tokenQueue[e][1]({
|
|
658
|
+
scanner: Ie.scanner
|
|
659
659
|
});
|
|
660
|
-
|
|
661
|
-
for (let e = 0; e <
|
|
662
|
-
|
|
663
|
-
scanner:
|
|
664
|
-
parser:
|
|
660
|
+
Ie.parser = va(Ie.scanner.tokens);
|
|
661
|
+
for (let e = 0; e < Ie.pluginQueue.length; e++)
|
|
662
|
+
Ie.pluginQueue[e][1]({
|
|
663
|
+
scanner: Ie.scanner,
|
|
664
|
+
parser: Ie.parser
|
|
665
665
|
});
|
|
666
|
-
return
|
|
666
|
+
return Ie.initialized = !0, Ie;
|
|
667
667
|
}
|
|
668
668
|
function Sn(e) {
|
|
669
|
-
return
|
|
669
|
+
return Ie.initialized || ya(), ba(Ie.parser.start, e, En(Ie.scanner.start, e));
|
|
670
670
|
}
|
|
671
671
|
Sn.scan = En;
|
|
672
672
|
function Vn(e) {
|
|
@@ -962,7 +962,7 @@ let Qa = {
|
|
|
962
962
|
ru: $a,
|
|
963
963
|
en: Ra
|
|
964
964
|
};
|
|
965
|
-
const
|
|
965
|
+
const ke = Fa().t;
|
|
966
966
|
function Fa() {
|
|
967
967
|
function e(f) {
|
|
968
968
|
return Qa[sn.value.code][f];
|
|
@@ -1370,9 +1370,9 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1370
1370
|
}), w = F(() => {
|
|
1371
1371
|
var _;
|
|
1372
1372
|
if (!((_ = g.selectedChannel) != null && _.channelId))
|
|
1373
|
-
return
|
|
1373
|
+
return ke("component.ChatInput.InputPlaceholder");
|
|
1374
1374
|
const C = g.selectedChannel.channelId.toLowerCase();
|
|
1375
|
-
return C.includes("whatsapp") || C.includes("waba") ?
|
|
1375
|
+
return C.includes("whatsapp") || C.includes("waba") ? ke("component.ChatInput.WhatsappInputPlaceholder") : C.includes("telegram") ? ke("component.ChatInput.TelegramInputPlaceholder") : C.includes("sms") ? ke("component.ChatInput.SmsInputPlaceholder") : C.includes("max") ? ke("component.ChatInput.MaxInputPlaceholder") : ke("component.ChatInput.InputPlaceholder");
|
|
1376
1376
|
});
|
|
1377
1377
|
se(
|
|
1378
1378
|
() => d.value,
|
|
@@ -1401,8 +1401,8 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1401
1401
|
Q.style.position = "absolute", Q.style.visibility = "hidden", Q.style.whiteSpace = "nowrap", Q.style.font = m.font, Q.style.fontSize = m.fontSize, Q.style.fontFamily = m.fontFamily, Q.style.fontWeight = m.fontWeight, Q.style.letterSpacing = m.letterSpacing, Q.textContent = i().text, document.body.appendChild(Q);
|
|
1402
1402
|
const le = Q.offsetWidth;
|
|
1403
1403
|
document.body.removeChild(Q);
|
|
1404
|
-
const G = parseFloat(m.paddingLeft) || 0, ie = parseFloat(m.paddingRight) || 0,
|
|
1405
|
-
i().text.trim() &&
|
|
1404
|
+
const G = parseFloat(m.paddingLeft) || 0, ie = parseFloat(m.paddingRight) || 0, ye = C.clientWidth - G - ie, _e = le > ye, Me = W || _e;
|
|
1405
|
+
i().text.trim() && Me ? X <= S ? (C.style.height = X + "px", C.style.overflowY = "hidden") : (C.style.height = S + "px", C.style.overflowY = "auto", C.scrollTop = _) : (C.style.height = z + "px", C.style.overflowY = "hidden");
|
|
1406
1406
|
});
|
|
1407
1407
|
},
|
|
1408
1408
|
{ immediate: !0 }
|
|
@@ -1545,6 +1545,10 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1545
1545
|
type: Boolean,
|
|
1546
1546
|
default: !0
|
|
1547
1547
|
},
|
|
1548
|
+
title: {
|
|
1549
|
+
type: String,
|
|
1550
|
+
default: "Чаты"
|
|
1551
|
+
},
|
|
1548
1552
|
filterQuery: {
|
|
1549
1553
|
type: String,
|
|
1550
1554
|
default: null
|
|
@@ -1627,7 +1631,7 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1627
1631
|
};
|
|
1628
1632
|
return (m, y) => (l(), u("div", pi, [
|
|
1629
1633
|
o("div", _i, [
|
|
1630
|
-
e.titleEnabled ? (l(), u("h2", hi, E(
|
|
1634
|
+
e.titleEnabled ? (l(), u("h2", hi, E(t.title), 1)) : b("", !0),
|
|
1631
1635
|
ce(m.$slots, "actions", {}, void 0, !0)
|
|
1632
1636
|
]),
|
|
1633
1637
|
ce(m.$slots, "sidebar", {}, void 0, !0),
|
|
@@ -1707,7 +1711,7 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1707
1711
|
})
|
|
1708
1712
|
]));
|
|
1709
1713
|
}
|
|
1710
|
-
}, w6 = /* @__PURE__ */ O(wi, [["__scopeId", "data-v-
|
|
1714
|
+
}, w6 = /* @__PURE__ */ O(wi, [["__scopeId", "data-v-7afb5fef"]]);
|
|
1711
1715
|
function Ci(e, f) {
|
|
1712
1716
|
let t = null;
|
|
1713
1717
|
return function(...a) {
|
|
@@ -1907,24 +1911,24 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ J({
|
|
|
1907
1911
|
const ae = q.length - w.value;
|
|
1908
1912
|
M.value = ae, me(() => {
|
|
1909
1913
|
const ue = document.querySelectorAll(".tracking-message");
|
|
1910
|
-
Array.from(ue).slice(0, ae).forEach((
|
|
1911
|
-
|
|
1914
|
+
Array.from(ue).slice(0, ae).forEach((Ce) => {
|
|
1915
|
+
Ce.classList.add("new-message");
|
|
1912
1916
|
});
|
|
1913
1917
|
}), setTimeout(() => {
|
|
1914
1918
|
let ue = document.querySelectorAll(".tracking-message.new-message");
|
|
1915
1919
|
if (ue.length === 0) {
|
|
1916
|
-
const
|
|
1917
|
-
if (
|
|
1918
|
-
if (
|
|
1920
|
+
const we = document.querySelectorAll(".tracking-message"), Ce = Array.from(we).slice(0, ae);
|
|
1921
|
+
if (Ce.length > 0) {
|
|
1922
|
+
if (Ce.forEach((sf) => {
|
|
1919
1923
|
sf.classList.add("new-message");
|
|
1920
1924
|
}), C.value)
|
|
1921
1925
|
return;
|
|
1922
|
-
|
|
1926
|
+
Ce.forEach((sf, We) => {
|
|
1923
1927
|
setTimeout(() => {
|
|
1924
1928
|
sf.classList.add("animate");
|
|
1925
1929
|
}, We * 150);
|
|
1926
1930
|
}), setTimeout(() => {
|
|
1927
|
-
|
|
1931
|
+
Ce.forEach((sf) => {
|
|
1928
1932
|
sf.classList.remove("new-message", "animate");
|
|
1929
1933
|
}), M.value = 0;
|
|
1930
1934
|
}, ae * 150 + 1500);
|
|
@@ -1934,13 +1938,13 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ J({
|
|
|
1934
1938
|
if (ue.length > 0) {
|
|
1935
1939
|
if (C.value)
|
|
1936
1940
|
return;
|
|
1937
|
-
ue.forEach((
|
|
1941
|
+
ue.forEach((we, Ce) => {
|
|
1938
1942
|
setTimeout(() => {
|
|
1939
|
-
|
|
1940
|
-
},
|
|
1943
|
+
we.classList.add("animate");
|
|
1944
|
+
}, Ce * 150);
|
|
1941
1945
|
}), setTimeout(() => {
|
|
1942
|
-
ue.forEach((
|
|
1943
|
-
|
|
1946
|
+
ue.forEach((we) => {
|
|
1947
|
+
we.classList.remove("new-message", "animate");
|
|
1944
1948
|
}), M.value = 0;
|
|
1945
1949
|
}, ae * 150 + 1500);
|
|
1946
1950
|
} else
|
|
@@ -1955,7 +1959,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ J({
|
|
|
1955
1959
|
(B.offsetX > P.clientWidth || B.offsetY > P.clientHeight) && (A.value = !0);
|
|
1956
1960
|
}, G = () => {
|
|
1957
1961
|
A.value = !1;
|
|
1958
|
-
}, ie = Ci(() => Q(), 250),
|
|
1962
|
+
}, ie = Ci(() => Q(), 250), ye = (B) => ({
|
|
1959
1963
|
"message.text": F3,
|
|
1960
1964
|
"message.image": V3,
|
|
1961
1965
|
"message.file": y3,
|
|
@@ -1977,7 +1981,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ J({
|
|
|
1977
1981
|
}, 100));
|
|
1978
1982
|
});
|
|
1979
1983
|
}
|
|
1980
|
-
const
|
|
1984
|
+
const Me = () => {
|
|
1981
1985
|
const B = D(n);
|
|
1982
1986
|
if (!B) return;
|
|
1983
1987
|
const P = () => {
|
|
@@ -2000,7 +2004,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ J({
|
|
|
2000
2004
|
() => _.scrollToBottom,
|
|
2001
2005
|
() => {
|
|
2002
2006
|
console.log("force scroll to bottom"), _.scrollToBottom && (_e(), setTimeout(() => {
|
|
2003
|
-
|
|
2007
|
+
Me();
|
|
2004
2008
|
}, 200));
|
|
2005
2009
|
},
|
|
2006
2010
|
{ immediate: !0 }
|
|
@@ -2048,10 +2052,10 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ J({
|
|
|
2048
2052
|
setTimeout(() => {
|
|
2049
2053
|
_.isLoadingMore && (M.value = q, w.value = P.length, setTimeout(() => {
|
|
2050
2054
|
const ae = document.querySelectorAll(".tracking-message.new-message");
|
|
2051
|
-
console.log("📱 Найдено новых сообщений для анимации:", ae.length), ae.forEach((ue,
|
|
2055
|
+
console.log("📱 Найдено новых сообщений для анимации:", ae.length), ae.forEach((ue, we) => {
|
|
2052
2056
|
setTimeout(() => {
|
|
2053
|
-
ue.classList.add("animate"), console.log(`✨ Анимация запущена для сообщения ${
|
|
2054
|
-
},
|
|
2057
|
+
ue.classList.add("animate"), console.log(`✨ Анимация запущена для сообщения ${we + 1}`);
|
|
2058
|
+
}, we * 150);
|
|
2055
2059
|
}), setTimeout(() => {
|
|
2056
2060
|
ae.forEach((ue) => {
|
|
2057
2061
|
ue.classList.remove("new-message", "animate");
|
|
@@ -2079,11 +2083,11 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ J({
|
|
|
2079
2083
|
}
|
|
2080
2084
|
);
|
|
2081
2085
|
const He = F(() => !_.objects || _.objects.length === 0 ? [] : _.objects.map((B, P, q) => {
|
|
2082
|
-
const ae = P > 0 && q[P - 1].position === B.position && q[P - 1].header === B.header, ue = P > 0 && !["message.system", "message.typing"].includes(q[P - 1].type),
|
|
2086
|
+
const ae = P > 0 && q[P - 1].position === B.position && q[P - 1].header === B.header, ue = P > 0 && !["message.system", "message.typing"].includes(q[P - 1].type), we = !ae || !ue, Ce = _.isLoadingMore && M.value > 0 && P < M.value;
|
|
2083
2087
|
return {
|
|
2084
2088
|
...B,
|
|
2085
|
-
isFirstInSeries:
|
|
2086
|
-
isNewMessage:
|
|
2089
|
+
isFirstInSeries: we,
|
|
2090
|
+
isNewMessage: Ce
|
|
2087
2091
|
};
|
|
2088
2092
|
}));
|
|
2089
2093
|
function cf() {
|
|
@@ -2118,7 +2122,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ J({
|
|
|
2118
2122
|
me(() => {
|
|
2119
2123
|
_.objects.length > 0 && !h.value && Le();
|
|
2120
2124
|
const B = new ResizeObserver(() => {
|
|
2121
|
-
_.scrollToBottom &&
|
|
2125
|
+
_.scrollToBottom && Me();
|
|
2122
2126
|
});
|
|
2123
2127
|
n.value && B.observe(n.value);
|
|
2124
2128
|
});
|
|
@@ -2149,7 +2153,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ J({
|
|
|
2149
2153
|
class: j(["tracking-message", { "new-message": q.isNewMessage }]),
|
|
2150
2154
|
onDblclick: (ue) => R(ue, q)
|
|
2151
2155
|
}, [
|
|
2152
|
-
(l(), U(Re(
|
|
2156
|
+
(l(), U(Re(ye(q.type)), {
|
|
2153
2157
|
key: `${q.messageId ?? "mid"}-${ae}`,
|
|
2154
2158
|
class: "message-feed__message",
|
|
2155
2159
|
message: q,
|
|
@@ -3095,7 +3099,7 @@ const Yo = /* @__PURE__ */ O(Qo, [["render", Po]]), qo = { class: "chat-panel" }
|
|
|
3095
3099
|
class: "channels__icon"
|
|
3096
3100
|
}, null, 8, Xo)) : b("", !0),
|
|
3097
3101
|
o("span", el, E(r.value.title), 1)
|
|
3098
|
-
])) : (l(), u("span", fl, E(D(
|
|
3102
|
+
])) : (l(), u("span", fl, E(D(ke)("component.ChannelSelector.Placeholder")), 1)),
|
|
3099
3103
|
Y(nt, {
|
|
3100
3104
|
actions: e.channels,
|
|
3101
3105
|
mode: e.mode,
|
|
@@ -3223,7 +3227,7 @@ const j6 = (e, f = null) => {
|
|
|
3223
3227
|
if (Number(_["lastActivity.timestamp"]) == Number(m["lastActivity.timestamp"])) return 0;
|
|
3224
3228
|
}), I = F(() => Bf(t.chat["lastMessage.status"])), M = F(() => t.chat.showEmptyIndicator || t.chat.countUnread > 0), w = F(() => t.chat.countUnread > 0 ? t.chat.countUnread > 99 ? "99+" : t.chat.countUnread : t.chat.showEmptyIndicator ? "" : void 0);
|
|
3225
3229
|
let h;
|
|
3226
|
-
const k = p(0), T = [
|
|
3230
|
+
const k = p(0), T = [ke("component.ChatItem.typing") + ".", ke("component.ChatItem.typing") + "..", ke("component.ChatItem.typing") + "..."], x = F(() => t.chat.typing ? T[k.value] : t.chat.lastMessage);
|
|
3227
3231
|
se(
|
|
3228
3232
|
() => t.chat.typing,
|
|
3229
3233
|
() => {
|
|
@@ -3404,7 +3408,7 @@ const Dl = /* @__PURE__ */ O(Il, [["render", xl]]), Tl = { class: "chat-filter__
|
|
|
3404
3408
|
ref: t,
|
|
3405
3409
|
class: "chat-filter__input",
|
|
3406
3410
|
type: "text",
|
|
3407
|
-
placeholder: e.placeholder ? e.placeholder : D(
|
|
3411
|
+
placeholder: e.placeholder ? e.placeholder : D(ke)("component.ChatFilter.InputPlaceholder"),
|
|
3408
3412
|
onInput: a
|
|
3409
3413
|
}, null, 40, El)
|
|
3410
3414
|
]));
|
|
@@ -4237,7 +4241,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
|
|
|
4237
4241
|
}, ie = () => {
|
|
4238
4242
|
const R = document.getElementById("waba-template-selector-container-" + n), te = window.getComputedStyle(R);
|
|
4239
4243
|
m.value = te.getPropertyValue("--chotto-waba-template-first-col-display"), y.value = te.getPropertyValue("--chotto-waba-template-second-col-display"), N.value = te.getPropertyValue("--chotto-waba-template-third-col-display");
|
|
4240
|
-
},
|
|
4244
|
+
}, ye = (R) => {
|
|
4241
4245
|
x[R[1]] = R[0];
|
|
4242
4246
|
}, _e = F(() => {
|
|
4243
4247
|
var xe;
|
|
@@ -4248,7 +4252,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
|
|
|
4248
4252
|
return te.forEach((He) => {
|
|
4249
4253
|
He.index > de && ee.push(R.substring(de, He.index)), ee.push({ index: parseInt(He[0].slice(2, -2)) }), de = He.index + He[0].length;
|
|
4250
4254
|
}), de < R.length && ee.push(R.substring(de)), ee;
|
|
4251
|
-
}),
|
|
4255
|
+
}), Me = F(() => {
|
|
4252
4256
|
var te, ee;
|
|
4253
4257
|
if (!A.value)
|
|
4254
4258
|
return !0;
|
|
@@ -4385,7 +4389,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
|
|
|
4385
4389
|
value: x[ee.index] || "Заполнить",
|
|
4386
4390
|
"is-filled": !!x[ee.index],
|
|
4387
4391
|
onClick: (xe) => C.value = ee.index,
|
|
4388
|
-
onEdit:
|
|
4392
|
+
onEdit: ye
|
|
4389
4393
|
}, null, 8, ["index", "value", "is-filled", "onClick"])) : b("", !0)
|
|
4390
4394
|
], 64))), 128))
|
|
4391
4395
|
]),
|
|
@@ -4410,7 +4414,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
|
|
|
4410
4414
|
], 512),
|
|
4411
4415
|
o("button", {
|
|
4412
4416
|
class: "template-selector__button-paste",
|
|
4413
|
-
disabled:
|
|
4417
|
+
disabled: Me.value,
|
|
4414
4418
|
onClick: s
|
|
4415
4419
|
}, " Отправить ", 8, Lu)
|
|
4416
4420
|
])
|
|
@@ -17241,8 +17245,8 @@ function e2(e) {
|
|
|
17241
17245
|
padding: d
|
|
17242
17246
|
}), ie = Q ? W ? Pe : Ee : W ? Fe : Ne;
|
|
17243
17247
|
_[le] > m[le] && (ie = M1(ie));
|
|
17244
|
-
var
|
|
17245
|
-
if (i && _e.push(G[H] <= 0), r && _e.push(G[ie] <= 0, G[
|
|
17248
|
+
var ye = M1(ie), _e = [];
|
|
17249
|
+
if (i && _e.push(G[H] <= 0), r && _e.push(G[ie] <= 0, G[ye] <= 0), _e.every(function(Ue) {
|
|
17246
17250
|
return Ue;
|
|
17247
17251
|
})) {
|
|
17248
17252
|
z = X, N = !1;
|
|
@@ -17251,7 +17255,7 @@ function e2(e) {
|
|
|
17251
17255
|
y.set(X, _e);
|
|
17252
17256
|
}
|
|
17253
17257
|
if (N)
|
|
17254
|
-
for (var
|
|
17258
|
+
for (var Me = M ? 3 : 1, Le = function(R) {
|
|
17255
17259
|
var te = C.find(function(ee) {
|
|
17256
17260
|
var de = y.get(ee);
|
|
17257
17261
|
if (de)
|
|
@@ -17261,7 +17265,7 @@ function e2(e) {
|
|
|
17261
17265
|
});
|
|
17262
17266
|
if (te)
|
|
17263
17267
|
return z = te, "break";
|
|
17264
|
-
}, Oe =
|
|
17268
|
+
}, Oe = Me; Oe > 0; Oe--) {
|
|
17265
17269
|
var ze = Le(Oe);
|
|
17266
17270
|
if (ze === "break")
|
|
17267
17271
|
break;
|
|
@@ -17381,14 +17385,14 @@ function c2(e) {
|
|
|
17381
17385
|
};
|
|
17382
17386
|
if (m) {
|
|
17383
17387
|
if (i) {
|
|
17384
|
-
var W, Q = C === "y" ? Ne : Ee, le = C === "y" ? Fe : Pe, G = C === "y" ? "height" : "width", ie = m[C],
|
|
17388
|
+
var W, Q = C === "y" ? Ne : Ee, le = C === "y" ? Fe : Pe, G = C === "y" ? "height" : "width", ie = m[C], ye = ie + h[Q], _e = ie - h[le], Me = I ? -N[G] / 2 : 0, Le = T === jf ? y[G] : N[G], Oe = T === jf ? -N[G] : -y[G], ze = f.elements.arrow, Ue = I && ze ? Qt(ze) : {
|
|
17385
17389
|
width: 0,
|
|
17386
17390
|
height: 0
|
|
17387
|
-
}, R = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Hn(), te = R[Q], ee = R[le], de = e1(0, y[G], Ue[G]), xe = x ? y[G] / 2 -
|
|
17391
|
+
}, R = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Hn(), te = R[Q], ee = R[le], de = e1(0, y[G], Ue[G]), xe = x ? y[G] / 2 - Me - de - te - S.mainAxis : Le - de - te - S.mainAxis, He = x ? -y[G] / 2 + Me + de + ee + S.mainAxis : Oe + de + ee + S.mainAxis, cf = f.elements.arrow && c1(f.elements.arrow), B = cf ? C === "y" ? cf.clientTop || 0 : cf.clientLeft || 0 : 0, P = (W = X == null ? void 0 : X[C]) != null ? W : 0, q = ie + xe - P - B, ae = ie + He - P, ue = e1(I ? G1(ye, q) : ye, ie, I ? Cf(_e, ae) : _e);
|
|
17388
17392
|
m[C] = ue, H[C] = ue - ie;
|
|
17389
17393
|
}
|
|
17390
17394
|
if (r) {
|
|
17391
|
-
var
|
|
17395
|
+
var we, Ce = C === "x" ? Ne : Ee, sf = C === "x" ? Fe : Pe, We = m[_], xf = _ === "y" ? "height" : "width", rf = We + h[Ce], Rf = We - h[sf], Df = [Ne, Ee].indexOf(k) !== -1, Qf = (we = X == null ? void 0 : X[_]) != null ? we : 0, yf = Df ? rf : We - y[xf] - N[xf] - Qf + S.altAxis, Xe = Df ? We + y[xf] + N[xf] - Qf - S.altAxis : Rf, V = I && Df ? Vc(yf, We, Xe) : e1(I ? yf : rf, We, I ? Xe : Rf);
|
|
17392
17396
|
m[_] = V, H[_] = V - We;
|
|
17393
17397
|
}
|
|
17394
17398
|
f.modifiersData[n] = H;
|
|
@@ -26986,14 +26990,14 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
|
|
|
26986
26990
|
}), (A, g) => (l(), U(Ae, null, {
|
|
26987
26991
|
default: Z(() => [
|
|
26988
26992
|
o("div", zr, [
|
|
26989
|
-
o("span", Ur, E(D(
|
|
26993
|
+
o("span", Ur, E(D(ke)("component.FeedSearch.SearchLabel")), 1),
|
|
26990
26994
|
ve(o("input", {
|
|
26991
26995
|
ref_key: "refInput",
|
|
26992
26996
|
ref: s,
|
|
26993
26997
|
"onUpdate:modelValue": g[0] || (g[0] = (v) => D(n)().text = v),
|
|
26994
26998
|
class: "feed-search__input",
|
|
26995
26999
|
type: "text",
|
|
26996
|
-
placeholder: D(
|
|
27000
|
+
placeholder: D(ke)("component.FeedSearch.SearchPlaceholder")
|
|
26997
27001
|
}, null, 8, Br), [
|
|
26998
27002
|
[zf, D(n)().text]
|
|
26999
27003
|
]),
|
|
@@ -27094,14 +27098,14 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
|
|
|
27094
27098
|
},
|
|
27095
27099
|
emits: ["clickedSearch", "loadMore"],
|
|
27096
27100
|
setup(e, { emit: f }) {
|
|
27097
|
-
const t = f, n = e, a = p(), i = p(null), s = F(() => n.notFound ?
|
|
27101
|
+
const t = f, n = e, a = p(), i = p(null), s = F(() => n.notFound ? ke("component.FeedFoundObjects.notFound") : n.notFound ? "" : ke("component.FeedFoundObjects.notSearched")), r = (d) => {
|
|
27098
27102
|
d.messageId && (t("clickedSearch", d.messageId), i.value = d);
|
|
27099
27103
|
}, c = () => {
|
|
27100
27104
|
const d = D(a);
|
|
27101
27105
|
d.scrollHeight - d.scrollTop - d.clientHeight <= 0 && t("loadMore");
|
|
27102
27106
|
};
|
|
27103
27107
|
return (d, A) => (l(), u(K, null, [
|
|
27104
|
-
o("h3", Gr, E(D(
|
|
27108
|
+
o("h3", Gr, E(D(ke)("component.FeedFoundObjects.results")) + ": " + E(e.foundAmount), 1),
|
|
27105
27109
|
e.foundAmount > 0 ? (l(), u("div", {
|
|
27106
27110
|
key: 0,
|
|
27107
27111
|
ref_key: "refItems",
|
|
@@ -27322,7 +27326,7 @@ const od = ["data-theme"], ld = {
|
|
|
27322
27326
|
}, Ht = /* @__PURE__ */ O(rd, [["__scopeId", "data-v-4a9f3ae8"]]), Q6 = async (e, f, t) => {
|
|
27323
27327
|
const n = await d1({
|
|
27324
27328
|
//в component должен быть встроен emit change(key: value)
|
|
27325
|
-
component: import("./SelectUser2-
|
|
27329
|
+
component: import("./SelectUser2-6mXZXxe0.js"),
|
|
27326
27330
|
attrs: {
|
|
27327
27331
|
title: e,
|
|
27328
27332
|
users: f
|
|
@@ -27394,7 +27398,7 @@ const od = ["data-theme"], ld = {
|
|
|
27394
27398
|
}
|
|
27395
27399
|
}, fa = /* @__PURE__ */ O(gd, [["__scopeId", "data-v-fcb0f158"]]), Y6 = async (e, f, t, n, a, i) => await d1({
|
|
27396
27400
|
//в component должен быть встроен emit change(key: value)
|
|
27397
|
-
component: import("./CreateDialog-
|
|
27401
|
+
component: import("./CreateDialog-BtKDNA7k.js"),
|
|
27398
27402
|
attrs: {
|
|
27399
27403
|
title: e,
|
|
27400
27404
|
name: f,
|
|
@@ -27408,7 +27412,7 @@ const od = ["data-theme"], ld = {
|
|
|
27408
27412
|
}
|
|
27409
27413
|
}), md = async (e) => await d1({
|
|
27410
27414
|
//в component должен быть встроен emit change(key: value)
|
|
27411
|
-
component: import("./ModalVideoRecorder-
|
|
27415
|
+
component: import("./ModalVideoRecorder-TMsVwGWh.js"),
|
|
27412
27416
|
attrs: {},
|
|
27413
27417
|
Modal: fa,
|
|
27414
27418
|
modalAttrs: {
|
|
@@ -27680,17 +27684,17 @@ const od = ["data-theme"], ld = {
|
|
|
27680
27684
|
) : !0;
|
|
27681
27685
|
}, ie = (V) => t.channels.filter(
|
|
27682
27686
|
($) => le($.channelId) === V
|
|
27683
|
-
).length > 1,
|
|
27687
|
+
).length > 1, ye = (V) => M.value === V, _e = (V) => {
|
|
27684
27688
|
const $ = t.channels.filter(
|
|
27685
27689
|
(be) => le(be.channelId) === V
|
|
27686
27690
|
);
|
|
27687
27691
|
return $.length === 1 ? $[0] : null;
|
|
27688
|
-
},
|
|
27692
|
+
}, Me = (V) => m[V] || null, Le = (V) => {
|
|
27689
27693
|
const $ = le(V);
|
|
27690
|
-
return
|
|
27694
|
+
return Me($);
|
|
27691
27695
|
}, Oe = (V) => {
|
|
27692
27696
|
const $ = _e(V);
|
|
27693
|
-
return $ ? Le($.channelId) :
|
|
27697
|
+
return $ ? Le($.channelId) : Me(V);
|
|
27694
27698
|
}, ze = () => {
|
|
27695
27699
|
const V = Object.fromEntries(C.map(($) => [$, []]));
|
|
27696
27700
|
t.contactAttributes.forEach(($) => {
|
|
@@ -27748,14 +27752,14 @@ const od = ["data-theme"], ld = {
|
|
|
27748
27752
|
channelId: V
|
|
27749
27753
|
}), M.value = s.value, w.value = t.channels.find(($) => $.channelId === V), console.log("TEST selectedChannel.value", w.value), G(V) && t.isNewDialog ? yf() : Xe(), de();
|
|
27750
27754
|
}, q = (V) => {
|
|
27751
|
-
ie(s.value) && (
|
|
27755
|
+
ie(s.value) && (Ce(), I.value = !0, d.value = !0, Rf(V.currentTarget));
|
|
27752
27756
|
}, ae = () => {
|
|
27753
27757
|
d.value || (I.value = !1);
|
|
27754
27758
|
}, ue = (V, $) => {
|
|
27755
27759
|
ie(s.value) && (I.value = !1, A.value = V, d.value = !0, v.value = V, Rf($.currentTarget));
|
|
27756
|
-
},
|
|
27760
|
+
}, we = () => {
|
|
27757
27761
|
d.value || (v.value = null);
|
|
27758
|
-
},
|
|
27762
|
+
}, Ce = () => {
|
|
27759
27763
|
d.value = !1, v.value = null, A.value = null;
|
|
27760
27764
|
}, sf = () => {
|
|
27761
27765
|
d.value = !0;
|
|
@@ -27841,14 +27845,14 @@ const od = ["data-theme"], ld = {
|
|
|
27841
27845
|
return l(), u("button", {
|
|
27842
27846
|
key: fe.type,
|
|
27843
27847
|
class: j(["channel-btn", {
|
|
27844
|
-
active:
|
|
27845
|
-
hover: r.value === fe.type && !
|
|
27848
|
+
active: ye(fe.type),
|
|
27849
|
+
hover: r.value === fe.type && !ye(fe.type) || r.value === fe.type && ye(fe.type)
|
|
27846
27850
|
}]),
|
|
27847
27851
|
onClick: (gf) => ee(fe.type),
|
|
27848
27852
|
onMouseenter: (gf) => r.value = fe.type,
|
|
27849
27853
|
onMouseleave: $[0] || ($[0] = (gf) => r.value = null)
|
|
27850
27854
|
}, [
|
|
27851
|
-
|
|
27855
|
+
ye(fe.type) ? (l(), u(K, { key: 0 }, [
|
|
27852
27856
|
Y(Te, {
|
|
27853
27857
|
ref_for: !0,
|
|
27854
27858
|
ref: (gf) => {
|
|
@@ -27905,7 +27909,7 @@ const od = ["data-theme"], ld = {
|
|
|
27905
27909
|
}]),
|
|
27906
27910
|
onMouseenter: $[1] || ($[1] = (De) => q(De)),
|
|
27907
27911
|
onMouseleave: ae,
|
|
27908
|
-
onMouseover:
|
|
27912
|
+
onMouseover: Ce,
|
|
27909
27913
|
onClick: $[2] || ($[2] = (De) => xe())
|
|
27910
27914
|
}, [
|
|
27911
27915
|
o("div", kd, [
|
|
@@ -27914,7 +27918,7 @@ const od = ["data-theme"], ld = {
|
|
|
27914
27918
|
o("span", {
|
|
27915
27919
|
class: j(["channel-icon-small", { "menu-icon-grey": s.value !== "sms" }])
|
|
27916
27920
|
}, [
|
|
27917
|
-
(l(), U(Re(
|
|
27921
|
+
(l(), U(Re(Me(s.value))))
|
|
27918
27922
|
], 2)
|
|
27919
27923
|
], 34)
|
|
27920
27924
|
];
|
|
@@ -27927,7 +27931,7 @@ const od = ["data-theme"], ld = {
|
|
|
27927
27931
|
}]),
|
|
27928
27932
|
onMouseenter: $[3] || ($[3] = (fe) => q(fe)),
|
|
27929
27933
|
onMouseleave: ae,
|
|
27930
|
-
onMouseover:
|
|
27934
|
+
onMouseover: Ce,
|
|
27931
27935
|
onClick: $[4] || ($[4] = (fe) => xe())
|
|
27932
27936
|
}, [
|
|
27933
27937
|
o("div", Dd, [
|
|
@@ -27936,7 +27940,7 @@ const od = ["data-theme"], ld = {
|
|
|
27936
27940
|
o("span", {
|
|
27937
27941
|
class: j(["channel-icon-small", { "menu-icon-grey": s.value !== "sms" }])
|
|
27938
27942
|
}, [
|
|
27939
|
-
(l(), U(Re(
|
|
27943
|
+
(l(), U(Re(Me(s.value))))
|
|
27940
27944
|
], 2)
|
|
27941
27945
|
], 34)) : b("", !0),
|
|
27942
27946
|
S.value && ((Mf = N.value[s.value]) != null && Mf.length) && s.value !== "phone" ? (l(), u("div", Nd)) : b("", !0),
|
|
@@ -27946,7 +27950,7 @@ const od = ["data-theme"], ld = {
|
|
|
27946
27950
|
"frozen-hover": te(fe)
|
|
27947
27951
|
}]),
|
|
27948
27952
|
onMouseenter: (De) => ue(fe, De),
|
|
27949
|
-
onMouseleave:
|
|
27953
|
+
onMouseleave: we,
|
|
27950
27954
|
onClick: (De) => He(fe)
|
|
27951
27955
|
}, [
|
|
27952
27956
|
o("div", jd, [
|
|
@@ -28924,7 +28928,7 @@ const od = ["data-theme"], ld = {
|
|
|
28924
28928
|
(l(!0), u(K, null, re(i.value, (G, ie) => (l(), u("p", {
|
|
28925
28929
|
key: G.text,
|
|
28926
28930
|
class: j(["audio-message__speed-btn", { "audio-message__speed-btn-selected": G.selected }]),
|
|
28927
|
-
onClick: (
|
|
28931
|
+
onClick: (ye) => s(ie)
|
|
28928
28932
|
}, E(G.text), 11, X3))), 128))
|
|
28929
28933
|
])
|
|
28930
28934
|
]),
|
package/dist/vuessages.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a2 as s, A as o, H as n, Z as t, a0 as i, f as l, K as m, u as c, x as u, B as r, w as d, C, r as M, t as p, i as S, j as g, s as I, k as h, q as y, a4 as P, N as T, a9 as x, a6 as B, aa as F, ae as R, ab as b, af as A, ad as f, ac as L, a8 as D, a7 as W, al as k, O as V, l as j, y as E, D as U, g as v, h as q, a1 as w, m as N, E as O, a3 as z, z as G, F as H, n as J, $ as K, I as Q, L as X, ai as Y, a5 as Z, c as $, e as _, b as aa, R as ea, d as sa, ah as oa, ak as na, p as ta, M as ia, S as la, aj as ma, v as ca, T as ua, o as ra, G as da, a as Ca, U as Ma, V as pa, J as Sa, ag as ga, am as Ia, as as ha, aq as ya, an as Pa, ao as Ta, ap as xa, ar as Ba, Q as Fa, W as Ra, X as ba, P as Aa, Y as fa } from "./index-
|
|
1
|
+
import { a2 as s, A as o, H as n, Z as t, a0 as i, f as l, K as m, u as c, x as u, B as r, w as d, C, r as M, t as p, i as S, j as g, s as I, k as h, q as y, a4 as P, N as T, a9 as x, a6 as B, aa as F, ae as R, ab as b, af as A, ad as f, ac as L, a8 as D, a7 as W, al as k, O as V, l as j, y as E, D as U, g as v, h as q, a1 as w, m as N, E as O, a3 as z, z as G, F as H, n as J, $ as K, I as Q, L as X, ai as Y, a5 as Z, c as $, e as _, b as aa, R as ea, d as sa, ah as oa, ak as na, p as ta, M as ia, S as la, aj as ma, v as ca, T as ua, o as ra, G as da, a as Ca, U as Ma, V as pa, J as Sa, ag as ga, am as Ia, as as ha, aq as ya, an as Pa, ao as Ta, ap as xa, ar as Ba, Q as Fa, W as Ra, X as ba, P as Aa, Y as fa } from "./index-D7jdDqk8.js";
|
|
2
2
|
export {
|
|
3
3
|
s as AdaptiveExtendedLayout,
|
|
4
4
|
o as AudioMessage,
|