@mobilon-dev/chotto 0.0.62 → 0.0.63
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.
@@ -753,7 +753,7 @@ const Q = (e, f) => {
|
|
753
753
|
])
|
754
754
|
])) : b("", !0);
|
755
755
|
}
|
756
|
-
},
|
756
|
+
}, nc = /* @__PURE__ */ Q(ss, [["__scopeId", "data-v-26bb16be"]]), _e = I([]), Mf = (e) => {
|
757
757
|
const f = I(0);
|
758
758
|
let t = _e.value.find(({ id: l }) => l == e);
|
759
759
|
t != null ? f.value = _e.value.indexOf(t) : (_e.value.push({
|
@@ -896,7 +896,7 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
896
896
|
])
|
897
897
|
]));
|
898
898
|
}
|
899
|
-
}),
|
899
|
+
}), ac = /* @__PURE__ */ Q(ps, [["__scopeId", "data-v-51a488f2"]]), hs = { class: "chat-list" }, ys = { class: "chat-list__title" }, Ms = {
|
900
900
|
key: 0,
|
901
901
|
class: "pi pi-minus"
|
902
902
|
}, vs = {
|
@@ -999,7 +999,7 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
999
999
|
])
|
1000
1000
|
]));
|
1001
1001
|
}
|
1002
|
-
},
|
1002
|
+
}, sc = /* @__PURE__ */ Q(ks, [["__scopeId", "data-v-ba9fb868"]]), Ns = ["id"], Ds = { class: "message-feed__container" }, js = {
|
1003
1003
|
key: 0,
|
1004
1004
|
class: "message-feed__unread-amount"
|
1005
1005
|
}, Es = /* @__PURE__ */ Z({
|
@@ -1034,11 +1034,11 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1034
1034
|
"message.text": mr,
|
1035
1035
|
"message.image": Ar,
|
1036
1036
|
"message.file": $1,
|
1037
|
-
"message.audio":
|
1038
|
-
"message.video":
|
1039
|
-
"message.call":
|
1040
|
-
"message.system":
|
1041
|
-
"system.date":
|
1037
|
+
"message.audio": Sr,
|
1038
|
+
"message.video": eu,
|
1039
|
+
"message.call": pu,
|
1040
|
+
"message.system": bu,
|
1041
|
+
"system.date": Ur,
|
1042
1042
|
"message.typing": Qn
|
1043
1043
|
})[y];
|
1044
1044
|
function g() {
|
@@ -1111,7 +1111,7 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1111
1111
|
})
|
1112
1112
|
], 40, Ns));
|
1113
1113
|
}
|
1114
|
-
}),
|
1114
|
+
}), Ac = /* @__PURE__ */ Q(Es, [["__scopeId", "data-v-6729c8ab"]]), Ts = { class: "profile" }, Vs = {
|
1115
1115
|
key: 0,
|
1116
1116
|
class: "profile__container"
|
1117
1117
|
}, xs = {
|
@@ -1145,7 +1145,7 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1145
1145
|
])) : b("", !0)
|
1146
1146
|
]));
|
1147
1147
|
}
|
1148
|
-
},
|
1148
|
+
}, ic = /* @__PURE__ */ Q(Ls, [["__scopeId", "data-v-04a5ab7d"]]), Us = ["id"], Bs = {
|
1149
1149
|
__name: "ButtonContextMenu",
|
1150
1150
|
props: {
|
1151
1151
|
actions: {
|
@@ -1245,12 +1245,12 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1245
1245
|
], 8, Us));
|
1246
1246
|
}
|
1247
1247
|
}, fa = /* @__PURE__ */ Q(Bs, [["__scopeId", "data-v-a6a945c1"]]);
|
1248
|
-
function
|
1248
|
+
function oc(e) {
|
1249
1249
|
if (!e || e === "") return;
|
1250
1250
|
const f = +new Date(Number(e) * 1e3), t = +/* @__PURE__ */ new Date(), n = Math.floor((t - f) / 1e3), a = Math.floor(n / 60), s = Math.floor(a / 60), A = Math.floor(s / 24);
|
1251
1251
|
return A > 30 ? new Date(f).toLocaleDateString("ru-RU") : A > 0 ? `${A} ${A === 1 ? "день" : "дня"} назад` : s > 0 ? `${s} ${s === 1 ? "час" : "часа"} назад` : a > 0 ? `${a} ${a === 1 ? "минута" : "минуты"} назад` : n > 0 ? `${n} ${n === 1 ? "секунда" : "секунды"} назад` : "Только что";
|
1252
1252
|
}
|
1253
|
-
const
|
1253
|
+
const lc = (e) => {
|
1254
1254
|
const f = [];
|
1255
1255
|
let t = null;
|
1256
1256
|
for (let n = 0; n < e.length; n++) {
|
@@ -1264,7 +1264,7 @@ const oc = (e) => {
|
|
1264
1264
|
}), t = s), f.push(a);
|
1265
1265
|
}
|
1266
1266
|
return f;
|
1267
|
-
},
|
1267
|
+
}, rc = async () => {
|
1268
1268
|
try {
|
1269
1269
|
if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
|
1270
1270
|
const f = new Audio();
|
@@ -1273,7 +1273,7 @@ const oc = (e) => {
|
|
1273
1273
|
} catch {
|
1274
1274
|
console.log("no audio permissions");
|
1275
1275
|
}
|
1276
|
-
},
|
1276
|
+
}, uc = (e) => e.sort((f, t) => Number(f.timestamp) < Number(t.timestamp) ? -1 : Number(f.timestamp) > Number(t.timestamp) ? 1 : 0), Nn = (e) => {
|
1277
1277
|
let f = "file";
|
1278
1278
|
return e.startsWith("image/") ? f = "image" : e.startsWith("video/") ? f = "video" : e.startsWith("audio/") && (f = "audio"), f;
|
1279
1279
|
}, Ke = ["read", "received", "sent"], Je = (e) => {
|
@@ -1476,7 +1476,7 @@ const oc = (e) => {
|
|
1476
1476
|
], 8, ["to"])) : b("", !0)
|
1477
1477
|
], 64));
|
1478
1478
|
}
|
1479
|
-
},
|
1479
|
+
}, cc = /* @__PURE__ */ Q(nA, [["__scopeId", "data-v-1cdabe09"]]), aA = { key: 0 }, sA = ["value", "selected"], AA = {
|
1480
1480
|
__name: "ThemeMode",
|
1481
1481
|
props: {
|
1482
1482
|
themes: {
|
@@ -1510,7 +1510,7 @@ const oc = (e) => {
|
|
1510
1510
|
], 32)
|
1511
1511
|
])) : b("", !0);
|
1512
1512
|
}
|
1513
|
-
},
|
1513
|
+
}, dc = /* @__PURE__ */ Q(AA, [["__scopeId", "data-v-a950b8eb"]]), iA = { class: "sidebar" }, oA = { class: "sidebar__container" }, lA = { class: "sidebar__list" }, rA = ["onClick"], uA = ["src", "alt"], cA = { key: 1 }, dA = { class: "sidebar__list-fixed" }, gA = ["onClick"], mA = ["src", "alt"], pA = { key: 1 }, hA = {
|
1514
1514
|
__name: "SideBar",
|
1515
1515
|
props: {
|
1516
1516
|
sidebarItems: {
|
@@ -1569,7 +1569,7 @@ const oc = (e) => {
|
|
1569
1569
|
])
|
1570
1570
|
]));
|
1571
1571
|
}
|
1572
|
-
},
|
1572
|
+
}, gc = /* @__PURE__ */ Q(hA, [["__scopeId", "data-v-5e22516c"]]), yA = { class: "chat-panel" }, MA = { class: "chat-panel__title-container" }, vA = {
|
1573
1573
|
key: 0,
|
1574
1574
|
class: "chat-panel__title"
|
1575
1575
|
}, bA = {
|
@@ -1598,7 +1598,7 @@ const oc = (e) => {
|
|
1598
1598
|
])
|
1599
1599
|
]));
|
1600
1600
|
}
|
1601
|
-
},
|
1601
|
+
}, mc = /* @__PURE__ */ Q(bA, [["__scopeId", "data-v-1f6ac199"]]), _A = { class: "channels" }, IA = {
|
1602
1602
|
key: 0,
|
1603
1603
|
class: "channels__selected"
|
1604
1604
|
}, wA = {
|
@@ -1653,7 +1653,7 @@ const oc = (e) => {
|
|
1653
1653
|
], 2)
|
1654
1654
|
]));
|
1655
1655
|
}
|
1656
|
-
},
|
1656
|
+
}, pc = /* @__PURE__ */ Q(jA, [["__scopeId", "data-v-018ec6fe"]]), EA = { class: "chat-item__avatar-container" }, TA = ["src"], VA = {
|
1657
1657
|
key: 1,
|
1658
1658
|
class: "pi pi-user"
|
1659
1659
|
}, xA = { class: "chat-item__info-container" }, SA = { class: "chat-item__name" }, CA = {
|
@@ -1964,7 +1964,7 @@ const oc = (e) => {
|
|
1964
1964
|
})
|
1965
1965
|
], 64));
|
1966
1966
|
}
|
1967
|
-
},
|
1967
|
+
}, hc = /* @__PURE__ */ Q(mi, [["__scopeId", "data-v-8d6cf607"]]), pi = {
|
1968
1968
|
__name: "PlaceholderComponent",
|
1969
1969
|
props: {
|
1970
1970
|
index: {
|
@@ -2244,7 +2244,7 @@ const oc = (e) => {
|
|
2244
2244
|
], 544)
|
2245
2245
|
], 64));
|
2246
2246
|
}
|
2247
|
-
},
|
2247
|
+
}, yc = /* @__PURE__ */ Q(qi, [["__scopeId", "data-v-78800319"]]), ta = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", na = {
|
2248
2248
|
recent: "Recently used",
|
2249
2249
|
smileys_people: "Smiles & People",
|
2250
2250
|
animals_nature: "Animals & Nature",
|
@@ -15992,7 +15992,7 @@ const k1 = {
|
|
15992
15992
|
})
|
15993
15993
|
], 64));
|
15994
15994
|
}
|
15995
|
-
},
|
15995
|
+
}, Mc = /* @__PURE__ */ Q(k1, [["__scopeId", "data-v-a6a1f980"]]), N1 = { class: "context-menu" }, D1 = { class: "context-menu__container" }, j1 = { class: "context-menu__list" }, E1 = ["onClick"], T1 = ["src"], V1 = {
|
15996
15996
|
__name: "ContextMenu",
|
15997
15997
|
props: {
|
15998
15998
|
actions: {
|
@@ -16151,7 +16151,7 @@ const k1 = {
|
|
16151
16151
|
], 32)
|
16152
16152
|
], 42, x1));
|
16153
16153
|
}
|
16154
|
-
}), $1 = /* @__PURE__ */ Q(q1, [["__scopeId", "data-v-
|
16154
|
+
}), $1 = /* @__PURE__ */ Q(q1, [["__scopeId", "data-v-a5e98d5f"]]), H1 = ["messageId"], F1 = ["src"], P1 = {
|
16155
16155
|
key: 1,
|
16156
16156
|
class: "image-message__subtext"
|
16157
16157
|
}, W1 = { class: "image-message__content" }, K1 = ["src", "alt"], J1 = {
|
@@ -16319,7 +16319,7 @@ const k1 = {
|
|
16319
16319
|
]))
|
16320
16320
|
], 42, H1));
|
16321
16321
|
}
|
16322
|
-
}), Ar = /* @__PURE__ */ Q(sr, [["__scopeId", "data-v-
|
16322
|
+
}), Ar = /* @__PURE__ */ Q(sr, [["__scopeId", "data-v-9dbe96e3"]]), ir = ["messageId"], or = ["src"], lr = {
|
16323
16323
|
key: 1,
|
16324
16324
|
class: "text-message__subtext"
|
16325
16325
|
}, rr = ["innerHTML"], ur = { class: "text-message__info-container" }, cr = {
|
@@ -16435,10 +16435,10 @@ const k1 = {
|
|
16435
16435
|
}, Dr = {
|
16436
16436
|
key: 0,
|
16437
16437
|
class: "audio-message__modal-overlay"
|
16438
|
-
}, jr = { class: "audio-message__modal" }, Er = {
|
16438
|
+
}, jr = { class: "audio-message__modal" }, Er = { style: { "word-wrap": "break-word", "max-width": "25rem" } }, Tr = {
|
16439
16439
|
key: 2,
|
16440
16440
|
class: "audio-message__text-container"
|
16441
|
-
},
|
16441
|
+
}, Vr = ["innerHTML"], xr = /* @__PURE__ */ Z({
|
16442
16442
|
__name: "AudioMessage",
|
16443
16443
|
props: {
|
16444
16444
|
message: {
|
@@ -16596,7 +16596,7 @@ const k1 = {
|
|
16596
16596
|
o("i", { class: "pi pi-times" })
|
16597
16597
|
], -1)
|
16598
16598
|
])),
|
16599
|
-
o("p",
|
16599
|
+
o("p", Er, D((N = e.message.transcript) == null ? void 0 : N.text), 1)
|
16600
16600
|
])
|
16601
16601
|
])) : b("", !0)
|
16602
16602
|
];
|
@@ -16604,17 +16604,17 @@ const k1 = {
|
|
16604
16604
|
_: 1
|
16605
16605
|
})
|
16606
16606
|
])),
|
16607
|
-
e.message.text ? (r(), c("div",
|
16607
|
+
e.message.text ? (r(), c("div", Tr, [
|
16608
16608
|
o("p", {
|
16609
16609
|
innerHTML: g.value,
|
16610
16610
|
onClick: p
|
16611
|
-
}, null, 8,
|
16611
|
+
}, null, 8, Vr)
|
16612
16612
|
])) : b("", !0)
|
16613
16613
|
], 32)
|
16614
16614
|
], 42, pr);
|
16615
16615
|
};
|
16616
16616
|
}
|
16617
|
-
}),
|
16617
|
+
}), Sr = /* @__PURE__ */ Q(xr, [["__scopeId", "data-v-eaa9933c"]]), Cr = { class: "date-message" }, zr = { class: "date-message__container" }, Or = { class: "date-message__text" }, Lr = /* @__PURE__ */ Z({
|
16618
16618
|
__name: "DateMessage",
|
16619
16619
|
props: {
|
16620
16620
|
message: {
|
@@ -16625,28 +16625,28 @@ const k1 = {
|
|
16625
16625
|
}
|
16626
16626
|
},
|
16627
16627
|
setup(e) {
|
16628
|
-
return (f, t) => (r(), c("div",
|
16629
|
-
o("div",
|
16630
|
-
o("p",
|
16628
|
+
return (f, t) => (r(), c("div", Cr, [
|
16629
|
+
o("div", zr, [
|
16630
|
+
o("p", Or, D(e.message.text), 1)
|
16631
16631
|
])
|
16632
16632
|
]));
|
16633
16633
|
}
|
16634
|
-
}),
|
16634
|
+
}), Ur = /* @__PURE__ */ Q(Lr, [["__scopeId", "data-v-b2b05bd8"]]), Br = ["messageId"], Qr = ["src"], Rr = {
|
16635
16635
|
key: 1,
|
16636
16636
|
class: "video-message__subtext"
|
16637
|
-
},
|
16637
|
+
}, Yr = { class: "video-message__content" }, qr = ["src"], $r = {
|
16638
16638
|
key: 0,
|
16639
16639
|
class: "video-message__info-container"
|
16640
|
-
},
|
16640
|
+
}, Hr = { class: "video-message__time" }, Fr = {
|
16641
16641
|
key: 0,
|
16642
16642
|
class: "pi pi-check"
|
16643
|
-
},
|
16643
|
+
}, Pr = ["href"], Wr = {
|
16644
16644
|
key: 0,
|
16645
16645
|
class: "video-message__text-container"
|
16646
|
-
},
|
16646
|
+
}, Kr = ["innerHTML"], Jr = {
|
16647
16647
|
key: 0,
|
16648
16648
|
class: "video-message__modal-overlay"
|
16649
|
-
},
|
16649
|
+
}, Gr = { class: "video-message__modal" }, Zr = ["src", "alt"], Xr = /* @__PURE__ */ Z({
|
16650
16650
|
__name: "VideoMessage",
|
16651
16651
|
props: {
|
16652
16652
|
message: {
|
@@ -16694,9 +16694,9 @@ const k1 = {
|
|
16694
16694
|
src: e.message.avatar,
|
16695
16695
|
height: "32",
|
16696
16696
|
width: "32"
|
16697
|
-
}, null, 8,
|
16698
|
-
e.message.subText ? (r(), c("p",
|
16699
|
-
o("div",
|
16697
|
+
}, null, 8, Qr)) : b("", !0),
|
16698
|
+
e.message.subText ? (r(), c("p", Rr, D(e.message.subText), 1)) : b("", !0),
|
16699
|
+
o("div", Yr, [
|
16700
16700
|
o("div", {
|
16701
16701
|
class: "video-message__preview-button",
|
16702
16702
|
onClick: w[0] || (w[0] = (j) => i.value = !0),
|
@@ -16712,10 +16712,10 @@ const k1 = {
|
|
16712
16712
|
src: e.message.url,
|
16713
16713
|
muted: !0,
|
16714
16714
|
autoplay: ""
|
16715
|
-
}, null, 44,
|
16715
|
+
}, null, 44, qr),
|
16716
16716
|
R(P, { name: "modal-fade" }, {
|
16717
16717
|
default: W(() => [
|
16718
|
-
g.value ? (r(), c("div",
|
16718
|
+
g.value ? (r(), c("div", $r, [
|
16719
16719
|
e.message.views ? (r(), c("div", {
|
16720
16720
|
key: 0,
|
16721
16721
|
onClick: Qe(m, ["stop"]),
|
@@ -16724,12 +16724,12 @@ const k1 = {
|
|
16724
16724
|
w[4] || (w[4] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16725
16725
|
o("p", null, D(e.message.views), 1)
|
16726
16726
|
])) : b("", !0),
|
16727
|
-
o("span",
|
16727
|
+
o("span", Hr, D(e.message.time), 1),
|
16728
16728
|
a(e.message) === "video-message__right" && C(Ke).includes(e.message.status) ? (r(), c("div", {
|
16729
16729
|
key: 1,
|
16730
16730
|
class: L(["video-message__status", v.value])
|
16731
16731
|
}, [
|
16732
|
-
e.message.status !== "sent" ? (r(), c("span",
|
16732
|
+
e.message.status !== "sent" ? (r(), c("span", Fr)) : b("", !0),
|
16733
16733
|
w[5] || (w[5] = o("span", { class: "pi pi-check" }, null, -1))
|
16734
16734
|
], 2)) : b("", !0)
|
16735
16735
|
])) : b("", !0)
|
@@ -16747,7 +16747,7 @@ const k1 = {
|
|
16747
16747
|
target: "_blank"
|
16748
16748
|
}, w[6] || (w[6] = [
|
16749
16749
|
o("span", { class: "pi pi-download" }, null, -1)
|
16750
|
-
]), 8,
|
16750
|
+
]), 8, Pr)) : b("", !0)
|
16751
16751
|
]),
|
16752
16752
|
_: 1
|
16753
16753
|
})
|
@@ -16775,18 +16775,18 @@ const k1 = {
|
|
16775
16775
|
]),
|
16776
16776
|
_: 1
|
16777
16777
|
}),
|
16778
|
-
e.message.text ? (r(), c("div",
|
16778
|
+
e.message.text ? (r(), c("div", Wr, [
|
16779
16779
|
o("p", {
|
16780
16780
|
innerHTML: d.value,
|
16781
16781
|
onClick: p
|
16782
|
-
}, null, 8,
|
16782
|
+
}, null, 8, Kr)
|
16783
16783
|
])) : b("", !0)
|
16784
16784
|
]),
|
16785
16785
|
(r(), K(yf, { to: "body" }, [
|
16786
16786
|
R(P, { name: "modal-fade" }, {
|
16787
16787
|
default: W(() => [
|
16788
|
-
i.value ? (r(), c("div",
|
16789
|
-
o("div",
|
16788
|
+
i.value ? (r(), c("div", Jr, [
|
16789
|
+
o("div", Gr, [
|
16790
16790
|
o("button", {
|
16791
16791
|
class: "video-message__modal-close-button",
|
16792
16792
|
onClick: w[3] || (w[3] = (j) => i.value = !1)
|
@@ -16803,37 +16803,37 @@ const k1 = {
|
|
16803
16803
|
alt: e.message.alt,
|
16804
16804
|
controls: "",
|
16805
16805
|
autoplay: ""
|
16806
|
-
}, null, 8,
|
16806
|
+
}, null, 8, Zr)
|
16807
16807
|
])
|
16808
16808
|
])) : b("", !0)
|
16809
16809
|
]),
|
16810
16810
|
_: 1
|
16811
16811
|
})
|
16812
16812
|
]))
|
16813
|
-
], 42,
|
16813
|
+
], 42, Br));
|
16814
16814
|
}
|
16815
|
-
}),
|
16815
|
+
}), eu = /* @__PURE__ */ Q(Xr, [["__scopeId", "data-v-7cae93d0"]]), fu = { class: "call-message" }, tu = ["messageId"], nu = ["src"], au = {
|
16816
16816
|
key: 1,
|
16817
16817
|
class: "call-message__subtext"
|
16818
|
-
},
|
16818
|
+
}, su = { class: "call-message__content" }, Au = {
|
16819
16819
|
key: 0,
|
16820
16820
|
class: "call-message__title"
|
16821
|
-
},
|
16821
|
+
}, iu = {
|
16822
16822
|
key: 1,
|
16823
16823
|
class: "call-message__title"
|
16824
|
-
},
|
16824
|
+
}, ou = {
|
16825
16825
|
key: 2,
|
16826
16826
|
class: "call-message__duration"
|
16827
|
-
},
|
16827
|
+
}, lu = {
|
16828
16828
|
key: 3,
|
16829
16829
|
class: "call-message__duration"
|
16830
|
-
},
|
16830
|
+
}, ru = {
|
16831
16831
|
key: 4,
|
16832
16832
|
class: "call-message__duration"
|
16833
|
-
},
|
16833
|
+
}, uu = { class: "call-message__info-container" }, cu = { class: "call-message__time" }, du = {
|
16834
16834
|
key: 0,
|
16835
16835
|
class: "call-message__modal-overlay"
|
16836
|
-
},
|
16836
|
+
}, gu = { class: "call-message__modal" }, mu = /* @__PURE__ */ Z({
|
16837
16837
|
__name: "CallMessage",
|
16838
16838
|
props: {
|
16839
16839
|
message: {
|
@@ -16859,7 +16859,7 @@ const k1 = {
|
|
16859
16859
|
}
|
16860
16860
|
return (a, s) => {
|
16861
16861
|
var A;
|
16862
|
-
return r(), c("div",
|
16862
|
+
return r(), c("div", fu, [
|
16863
16863
|
o("div", {
|
16864
16864
|
class: L(n(e.message, t.message)),
|
16865
16865
|
messageId: e.message.messageId
|
@@ -16871,17 +16871,17 @@ const k1 = {
|
|
16871
16871
|
height: "32",
|
16872
16872
|
width: "32",
|
16873
16873
|
style: J({ gridRow: e.message.subText ? "2" : "1" })
|
16874
|
-
}, null, 12,
|
16875
|
-
e.message.subText ? (r(), c("p",
|
16876
|
-
o("div",
|
16874
|
+
}, null, 12, nu)) : b("", !0),
|
16875
|
+
e.message.subText ? (r(), c("p", au, D(e.message.subText), 1)) : b("", !0),
|
16876
|
+
o("div", su, [
|
16877
16877
|
o("span", {
|
16878
16878
|
class: "call-message__icon pi pi-phone",
|
16879
16879
|
style: J({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
|
16880
16880
|
}, null, 4),
|
16881
|
-
e.message.isMissedCall ? (r(), c("span",
|
16882
|
-
e.message.callDuration ? (r(), c("span",
|
16883
|
-
o("div",
|
16884
|
-
o("span",
|
16881
|
+
e.message.isMissedCall ? (r(), c("span", iu, "Пропущенный аудиозвонок")) : (r(), c("span", Au, "Аудиозвонок")),
|
16882
|
+
e.message.callDuration ? (r(), c("span", ou, D(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (r(), c("span", lu, "Нажмите, чтобы перезвонить")) : (r(), c("span", ru, "Нет ответа")),
|
16883
|
+
o("div", uu, [
|
16884
|
+
o("span", cu, D(e.message.time), 1)
|
16885
16885
|
]),
|
16886
16886
|
(A = e.message.transcript) != null && A.dialog ? (r(), c("button", {
|
16887
16887
|
key: 5,
|
@@ -16895,8 +16895,8 @@ const k1 = {
|
|
16895
16895
|
default: W(() => {
|
16896
16896
|
var i;
|
16897
16897
|
return [
|
16898
|
-
f.value ? (r(), c("div",
|
16899
|
-
o("div",
|
16898
|
+
f.value ? (r(), c("div", du, [
|
16899
|
+
o("div", gu, [
|
16900
16900
|
o("button", {
|
16901
16901
|
class: "call-message__modal-close-button",
|
16902
16902
|
onClick: s[1] || (s[1] = (l) => f.value = !1)
|
@@ -16919,11 +16919,11 @@ const k1 = {
|
|
16919
16919
|
})
|
16920
16920
|
]))
|
16921
16921
|
])
|
16922
|
-
], 10,
|
16922
|
+
], 10, tu)
|
16923
16923
|
]);
|
16924
16924
|
};
|
16925
16925
|
}
|
16926
|
-
}),
|
16926
|
+
}), pu = /* @__PURE__ */ Q(mu, [["__scopeId", "data-v-8307ae2a"]]), hu = { class: "system-message" }, yu = { class: "system-message__container" }, Mu = { class: "system-message__text" }, vu = /* @__PURE__ */ Z({
|
16927
16927
|
__name: "SystemMessage",
|
16928
16928
|
props: {
|
16929
16929
|
message: {
|
@@ -16932,16 +16932,16 @@ const k1 = {
|
|
16932
16932
|
}
|
16933
16933
|
},
|
16934
16934
|
setup(e) {
|
16935
|
-
return (f, t) => (r(), c("div",
|
16936
|
-
o("div",
|
16937
|
-
o("p",
|
16935
|
+
return (f, t) => (r(), c("div", hu, [
|
16936
|
+
o("div", yu, [
|
16937
|
+
o("p", Mu, D(e.message.text), 1)
|
16938
16938
|
])
|
16939
16939
|
]));
|
16940
16940
|
}
|
16941
|
-
}),
|
16941
|
+
}), bu = /* @__PURE__ */ Q(vu, [["__scopeId", "data-v-d0876c1e"]]), _u = { class: "typing-message" }, Iu = { class: "typing-message__container" }, wu = ["src"], ku = {
|
16942
16942
|
key: 1,
|
16943
16943
|
class: "typing-message__subtext"
|
16944
|
-
},
|
16944
|
+
}, Nu = /* @__PURE__ */ Z({
|
16945
16945
|
__name: "TypingMessage",
|
16946
16946
|
props: {
|
16947
16947
|
message: {
|
@@ -16950,8 +16950,8 @@ const k1 = {
|
|
16950
16950
|
}
|
16951
16951
|
},
|
16952
16952
|
setup(e) {
|
16953
|
-
return (f, t) => (r(), c("div",
|
16954
|
-
o("div",
|
16953
|
+
return (f, t) => (r(), c("div", _u, [
|
16954
|
+
o("div", Iu, [
|
16955
16955
|
e.message.avatar ? (r(), c("img", {
|
16956
16956
|
key: 0,
|
16957
16957
|
class: "typing-message__avatar",
|
@@ -16959,23 +16959,23 @@ const k1 = {
|
|
16959
16959
|
height: "32",
|
16960
16960
|
width: "32",
|
16961
16961
|
style: J({ gridRow: e.message.subText ? "2" : "1" })
|
16962
|
-
}, null, 12,
|
16963
|
-
e.message.subText ? (r(), c("p",
|
16962
|
+
}, null, 12, wu)) : b("", !0),
|
16963
|
+
e.message.subText ? (r(), c("p", ku, D(e.message.subText), 1)) : b("", !0),
|
16964
16964
|
t[0] || (t[0] = o("div", { class: "typing-message__loader-container" }, [
|
16965
16965
|
o("div", { class: "typing-message__loader" })
|
16966
16966
|
], -1))
|
16967
16967
|
])
|
16968
16968
|
]));
|
16969
16969
|
}
|
16970
|
-
}), Qn = /* @__PURE__ */ Q(
|
16970
|
+
}), Qn = /* @__PURE__ */ Q(Nu, [["__scopeId", "data-v-88389095"]]), Du = { class: "modal-backdrop" }, ju = {
|
16971
16971
|
class: "modal",
|
16972
16972
|
role: "dialog",
|
16973
16973
|
"aria-labelledby": "modalTitle",
|
16974
16974
|
"aria-describedby": "modalDescription"
|
16975
|
-
},
|
16975
|
+
}, Eu = {
|
16976
16976
|
id: "modalDescription",
|
16977
16977
|
class: "modal-body"
|
16978
|
-
},
|
16978
|
+
}, Tu = { class: "buttons" }, Vu = {
|
16979
16979
|
__name: "Modal",
|
16980
16980
|
emits: ["close", "submit"],
|
16981
16981
|
setup(e, { emit: f }) {
|
@@ -16984,12 +16984,12 @@ const k1 = {
|
|
16984
16984
|
}, a = I(null);
|
16985
16985
|
return (s, A) => (r(), K(P, { name: "modal-fade" }, {
|
16986
16986
|
default: W(() => [
|
16987
|
-
o("div",
|
16988
|
-
o("div",
|
16989
|
-
o("div",
|
16987
|
+
o("div", Du, [
|
16988
|
+
o("div", ju, [
|
16989
|
+
o("div", Eu, [
|
16990
16990
|
te(s.$slots, "default", {}, void 0, !0)
|
16991
16991
|
]),
|
16992
|
-
o("div",
|
16992
|
+
o("div", Tu, [
|
16993
16993
|
o("button", {
|
16994
16994
|
type: "button",
|
16995
16995
|
class: "btn-green",
|
@@ -17009,7 +17009,7 @@ const k1 = {
|
|
17009
17009
|
_: 3
|
17010
17010
|
}));
|
17011
17011
|
}
|
17012
|
-
},
|
17012
|
+
}, xu = /* @__PURE__ */ Q(Vu, [["__scopeId", "data-v-d48a1772"]]);
|
17013
17013
|
function on({ component: e, attrs: f }) {
|
17014
17014
|
return new Promise((t) => {
|
17015
17015
|
const n = document.createElement("div");
|
@@ -17024,7 +17024,7 @@ function on({ component: e, attrs: f }) {
|
|
17024
17024
|
}, l = Z({
|
17025
17025
|
render() {
|
17026
17026
|
return yn(
|
17027
|
-
|
17027
|
+
xu,
|
17028
17028
|
{
|
17029
17029
|
onSubmit: A,
|
17030
17030
|
onClose: s
|
@@ -17044,17 +17044,17 @@ function on({ component: e, attrs: f }) {
|
|
17044
17044
|
u.mount(n);
|
17045
17045
|
});
|
17046
17046
|
}
|
17047
|
-
const
|
17047
|
+
const vc = async (e, f) => {
|
17048
17048
|
const t = await on({
|
17049
17049
|
//в component должен быть встроен emit change(key: value)
|
17050
|
-
component: import("./SelectUser2-
|
17050
|
+
component: import("./SelectUser2-DwuGsdVS.js"),
|
17051
17051
|
attrs: {
|
17052
17052
|
title: e,
|
17053
17053
|
users: f
|
17054
17054
|
}
|
17055
17055
|
});
|
17056
17056
|
return console.log("data", t), t;
|
17057
|
-
},
|
17057
|
+
}, bc = async (e) => {
|
17058
17058
|
const f = await on({
|
17059
17059
|
//в component должен быть встроен emit change(key: value)
|
17060
17060
|
component: import("./CreateChat-fkFKBxtQ.js"),
|
@@ -17063,13 +17063,13 @@ const Mc = async (e, f) => {
|
|
17063
17063
|
}
|
17064
17064
|
});
|
17065
17065
|
return console.log("data", f), f;
|
17066
|
-
},
|
17066
|
+
}, _c = async (e) => await on({
|
17067
17067
|
//в component должен быть встроен emit change(key: value)
|
17068
17068
|
component: import("./CreateChat2-DgUQ2F5L.js"),
|
17069
17069
|
attrs: {
|
17070
17070
|
title: e
|
17071
17071
|
}
|
17072
|
-
}),
|
17072
|
+
}), Su = ["id"], Ic = {
|
17073
17073
|
__name: "BaseContainer",
|
17074
17074
|
props: {
|
17075
17075
|
height: String,
|
@@ -17087,9 +17087,9 @@ const Mc = async (e, f) => {
|
|
17087
17087
|
}, [
|
17088
17088
|
te(t.$slots, "default")
|
17089
17089
|
], 4)
|
17090
|
-
], 8,
|
17090
|
+
], 8, Su));
|
17091
17091
|
}
|
17092
|
-
},
|
17092
|
+
}, Cu = ["id"], zu = { class: "float-window__container" }, Ou = ["src", "alt"], Lu = { class: "float-window__title" }, Uu = {
|
17093
17093
|
__name: "FloatContainer",
|
17094
17094
|
props: {
|
17095
17095
|
title: {
|
@@ -17149,7 +17149,7 @@ const Mc = async (e, f) => {
|
|
17149
17149
|
display: "flex"
|
17150
17150
|
})
|
17151
17151
|
}, [
|
17152
|
-
o("div",
|
17152
|
+
o("div", zu, [
|
17153
17153
|
o("div", {
|
17154
17154
|
ref_key: "container",
|
17155
17155
|
ref: s,
|
@@ -17164,8 +17164,8 @@ const Mc = async (e, f) => {
|
|
17164
17164
|
class: "float-window__avatar",
|
17165
17165
|
src: t.avatar,
|
17166
17166
|
alt: t.title
|
17167
|
-
}, null, 8,
|
17168
|
-
o("p",
|
17167
|
+
}, null, 8, Ou)) : b("", !0),
|
17168
|
+
o("p", Lu, D(t.title), 1),
|
17169
17169
|
o("button", {
|
17170
17170
|
class: "float-window__close-button",
|
17171
17171
|
onClick: M[0] || (M[0] = (y) => h.$emit("close-window"))
|
@@ -17180,20 +17180,20 @@ const Mc = async (e, f) => {
|
|
17180
17180
|
te(h.$slots, "default", {}, void 0, !0)
|
17181
17181
|
], 4)
|
17182
17182
|
])
|
17183
|
-
], 12,
|
17183
|
+
], 12, Cu));
|
17184
17184
|
}
|
17185
|
-
},
|
17186
|
-
function
|
17187
|
-
return r(), c("div",
|
17188
|
-
o("div",
|
17185
|
+
}, wc = /* @__PURE__ */ Q(Uu, [["__scopeId", "data-v-b0994783"]]), Bu = {}, Qu = { class: "base-layout__container" }, Ru = { class: "base-layout__first-col" }, Yu = { class: "base-layout__second-col" };
|
17186
|
+
function qu(e, f) {
|
17187
|
+
return r(), c("div", Qu, [
|
17188
|
+
o("div", Ru, [
|
17189
17189
|
te(e.$slots, "first-col", {}, void 0, !0)
|
17190
17190
|
]),
|
17191
|
-
o("div",
|
17191
|
+
o("div", Yu, [
|
17192
17192
|
te(e.$slots, "second-col", {}, void 0, !0)
|
17193
17193
|
])
|
17194
17194
|
]);
|
17195
17195
|
}
|
17196
|
-
const
|
17196
|
+
const kc = /* @__PURE__ */ Q(Bu, [["render", qu], ["__scopeId", "data-v-a5df3fcf"]]), $u = { class: "extend-layout__container" }, Hu = { class: "extend-layout__first-col" }, Fu = { class: "extend-layout__third-col" }, Pu = {
|
17197
17197
|
__name: "ExtendedLayout",
|
17198
17198
|
setup(e) {
|
17199
17199
|
const f = I(null);
|
@@ -17210,8 +17210,8 @@ const wc = /* @__PURE__ */ Q(Uu, [["render", Yu], ["__scopeId", "data-v-a5df3fcf
|
|
17210
17210
|
};
|
17211
17211
|
return we(() => {
|
17212
17212
|
f.value && (f.value.style.width = "350px");
|
17213
|
-
}), (u, g) => (r(), c("div",
|
17214
|
-
o("div",
|
17213
|
+
}), (u, g) => (r(), c("div", $u, [
|
17214
|
+
o("div", Hu, [
|
17215
17215
|
te(u.$slots, "first-col", {}, void 0, !0)
|
17216
17216
|
]),
|
17217
17217
|
o("div", {
|
@@ -17224,26 +17224,26 @@ const wc = /* @__PURE__ */ Q(Uu, [["render", Yu], ["__scopeId", "data-v-a5df3fcf
|
|
17224
17224
|
}, [
|
17225
17225
|
te(u.$slots, "second-col", {}, void 0, !0)
|
17226
17226
|
], 36),
|
17227
|
-
o("div",
|
17227
|
+
o("div", Fu, [
|
17228
17228
|
te(u.$slots, "third-col", {}, void 0, !0)
|
17229
17229
|
])
|
17230
17230
|
]));
|
17231
17231
|
}
|
17232
|
-
},
|
17233
|
-
function
|
17234
|
-
return r(), c("div",
|
17235
|
-
o("div",
|
17232
|
+
}, Nc = /* @__PURE__ */ Q(Pu, [["__scopeId", "data-v-7c3b977d"]]), Wu = {}, Ku = { class: "base-layout__container" }, Ju = { class: "base-layout__first-col" };
|
17233
|
+
function Gu(e, f) {
|
17234
|
+
return r(), c("div", Ku, [
|
17235
|
+
o("div", Ju, [
|
17236
17236
|
te(e.$slots, "default", {}, void 0, !0)
|
17237
17237
|
])
|
17238
17238
|
]);
|
17239
17239
|
}
|
17240
|
-
const
|
17240
|
+
const Dc = /* @__PURE__ */ Q(Wu, [["render", Gu], ["__scopeId", "data-v-e71ea0ed"]]), Zu = { class: "chat-wrapper" }, Xu = {
|
17241
17241
|
key: 0,
|
17242
17242
|
class: "chat-wrapper__selected-chat"
|
17243
|
-
},
|
17243
|
+
}, ec = {
|
17244
17244
|
key: 1,
|
17245
17245
|
style: { width: "100%" }
|
17246
|
-
},
|
17246
|
+
}, fc = /* @__PURE__ */ Z({
|
17247
17247
|
__name: "ChatWrapper",
|
17248
17248
|
props: {
|
17249
17249
|
isOpenChatPanel: {
|
@@ -17256,10 +17256,10 @@ const Nc = /* @__PURE__ */ Q(Pu, [["render", Ju], ["__scopeId", "data-v-e71ea0ed
|
|
17256
17256
|
}
|
17257
17257
|
},
|
17258
17258
|
setup(e) {
|
17259
|
-
return (f, t) => (r(), c("div",
|
17260
|
-
e.isSelectedChat ? (r(), c("div",
|
17259
|
+
return (f, t) => (r(), c("div", Zu, [
|
17260
|
+
e.isSelectedChat ? (r(), c("div", Xu, [
|
17261
17261
|
te(f.$slots, "default", {}, void 0, !0)
|
17262
|
-
])) : (r(), c("div",
|
17262
|
+
])) : (r(), c("div", ec, [
|
17263
17263
|
o("p", null, D(C(Oe)("layout.ChatWrapper.noSelectedChat")), 1)
|
17264
17264
|
])),
|
17265
17265
|
e.isOpenChatPanel ? (r(), c("div", {
|
@@ -17271,50 +17271,50 @@ const Nc = /* @__PURE__ */ Q(Pu, [["render", Ju], ["__scopeId", "data-v-e71ea0ed
|
|
17271
17271
|
], 4)) : b("", !0)
|
17272
17272
|
]));
|
17273
17273
|
}
|
17274
|
-
}),
|
17274
|
+
}), jc = /* @__PURE__ */ Q(fc, [["__scopeId", "data-v-12c6a622"]]);
|
17275
17275
|
export {
|
17276
|
-
|
17276
|
+
Sr as A,
|
17277
17277
|
fa as B,
|
17278
|
-
|
17279
|
-
|
17280
|
-
|
17278
|
+
pu as C,
|
17279
|
+
Ur as D,
|
17280
|
+
Nc as E,
|
17281
17281
|
$1 as F,
|
17282
|
-
|
17283
|
-
|
17282
|
+
lc as G,
|
17283
|
+
rc as H,
|
17284
17284
|
Ar as I,
|
17285
|
-
|
17285
|
+
uc as J,
|
17286
17286
|
Nn as K,
|
17287
17287
|
Ke as L,
|
17288
17288
|
Je as M,
|
17289
|
-
|
17289
|
+
bu as S,
|
17290
17290
|
mr as T,
|
17291
|
-
|
17292
|
-
|
17291
|
+
ic as U,
|
17292
|
+
eu as V,
|
17293
17293
|
Q as _,
|
17294
17294
|
Qn as a,
|
17295
|
-
|
17296
|
-
|
17297
|
-
|
17298
|
-
|
17299
|
-
|
17300
|
-
|
17301
|
-
|
17302
|
-
|
17303
|
-
|
17295
|
+
nc as b,
|
17296
|
+
ac as c,
|
17297
|
+
sc as d,
|
17298
|
+
Ac as e,
|
17299
|
+
cc as f,
|
17300
|
+
dc as g,
|
17301
|
+
gc as h,
|
17302
|
+
mc as i,
|
17303
|
+
pc as j,
|
17304
17304
|
Nt as k,
|
17305
17305
|
FA as l,
|
17306
17306
|
gi as m,
|
17307
|
-
|
17308
|
-
|
17309
|
-
|
17307
|
+
hc as n,
|
17308
|
+
yc as o,
|
17309
|
+
Mc as p,
|
17310
17310
|
Ve as q,
|
17311
|
-
|
17312
|
-
|
17313
|
-
|
17314
|
-
|
17315
|
-
|
17316
|
-
|
17317
|
-
|
17318
|
-
|
17319
|
-
|
17311
|
+
bc as r,
|
17312
|
+
_c as s,
|
17313
|
+
Ic as t,
|
17314
|
+
vc as u,
|
17315
|
+
wc as v,
|
17316
|
+
kc as w,
|
17317
|
+
Dc as x,
|
17318
|
+
jc as y,
|
17319
|
+
oc as z
|
17320
17320
|
};
|