@mobilon-dev/chotto 0.0.134 → 0.0.135
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-CkWwgw3m.js → CreateDialog-DsVGYOi0.js} +1 -1
- package/dist/{ModalVideoRecorder-Cu9AcI5s.js → ModalVideoRecorder-acwLeo-_.js} +1 -1
- package/dist/{SelectUser2-DMq8u9iB.js → SelectUser2-DYJ0yEGm.js} +1 -1
- package/dist/chotto.css +1 -1
- package/dist/{index-BktFzFod.js → index-Dcgu8dHX.js} +423 -423
- package/dist/vuessages.es.js +1 -1
- package/dist/vuessages.umd.js +1 -1
- package/package.json +1 -1
@@ -132,8 +132,8 @@ ye.prototype = {
|
|
132
132
|
if (r ? (i = new ye(), Object.assign(i.j, r.j), i.jr.push.apply(i.jr, r.jr), i.jd = r.jd, i.t = r.t) : i = new ye(), s) {
|
133
133
|
if (a)
|
134
134
|
if (i.t && typeof i.t == "string") {
|
135
|
-
const
|
136
|
-
Ge(s,
|
135
|
+
const A = Object.assign(Zf(i.t, a), n);
|
136
|
+
Ge(s, A, a);
|
137
137
|
} else n && Ge(s, n, a);
|
138
138
|
i.t = s;
|
139
139
|
}
|
@@ -223,14 +223,14 @@ function ts(e = []) {
|
|
223
223
|
[Pn]: !0
|
224
224
|
});
|
225
225
|
oe(r, Ue), oe(r, Be, s), oe(r, ut, r), oe(s, Be, s), oe(s, Ue), oe(s, ut, s);
|
226
|
-
const
|
226
|
+
const A = E(n, zn, aa, {
|
227
227
|
[Sn]: !0
|
228
|
-
}),
|
228
|
+
}), c = E(n, Va, Jn, {
|
229
229
|
[Sn]: !0
|
230
230
|
}), d = oe(n, On, Jn, {
|
231
231
|
[Sn]: !0
|
232
232
|
});
|
233
|
-
E(n, Ln, d), E(
|
233
|
+
E(n, Ln, d), E(c, zn, A), E(c, Ln, d), oe(c, On, d), E(d, Va), E(d, zn), oe(d, On, d), E(d, Ln, d);
|
234
234
|
const g = oe(n, Cn, cf, {
|
235
235
|
[sf]: !0
|
236
236
|
});
|
@@ -276,15 +276,15 @@ function uf(e, t) {
|
|
276
276
|
const n = ns(t.replace(/[A-Z]/g, (r) => r.toLowerCase())), a = n.length, f = [];
|
277
277
|
let s = 0, i = 0;
|
278
278
|
for (; i < a; ) {
|
279
|
-
let r = e,
|
280
|
-
for (; i < a && (
|
281
|
-
r =
|
282
|
-
s -= g, i -= m,
|
279
|
+
let r = e, A = null, c = 0, d = null, g = -1, m = -1;
|
280
|
+
for (; i < a && (A = r.go(n[i])); )
|
281
|
+
r = A, r.accepts() ? (g = 0, m = 0, d = r) : g >= 0 && (g += n[i].length, m++), c += n[i].length, s += n[i].length, i++;
|
282
|
+
s -= g, i -= m, c -= g, f.push({
|
283
283
|
t: d.t,
|
284
284
|
// token type/name
|
285
|
-
v: t.slice(s -
|
285
|
+
v: t.slice(s - c, s),
|
286
286
|
// string value
|
287
|
-
s: s -
|
287
|
+
s: s - c,
|
288
288
|
// start index
|
289
289
|
e: s
|
290
290
|
// end index (excluding)
|
@@ -305,8 +305,8 @@ function Ye(e, t, n, a, f) {
|
|
305
305
|
let s;
|
306
306
|
const i = t.length;
|
307
307
|
for (let r = 0; r < i - 1; r++) {
|
308
|
-
const
|
309
|
-
e.j[
|
308
|
+
const A = t[r];
|
309
|
+
e.j[A] ? s = e.j[A] : (s = new ye(a), s.jr = f.slice(), e.j[A] = s), e = s;
|
310
310
|
}
|
311
311
|
return s = new ye(n), s.jr = f.slice(), e.j[t[i - 1]] = s, s;
|
312
312
|
}
|
@@ -514,8 +514,8 @@ df.prototype = {
|
|
514
514
|
* @param {Options} options Formattinng options
|
515
515
|
*/
|
516
516
|
render(e) {
|
517
|
-
const t = this, n = this.toHref(e.get("defaultProtocol")), a = e.get("formatHref", n, this), f = e.get("tagName", n, t), s = this.toFormattedString(e), i = {}, r = e.get("className", n, t),
|
518
|
-
return i.href = a, r && (i.class = r),
|
517
|
+
const t = this, n = this.toHref(e.get("defaultProtocol")), a = e.get("formatHref", n, this), f = e.get("tagName", n, t), s = this.toFormattedString(e), i = {}, r = e.get("className", n, t), A = e.get("target", n, t), c = e.get("rel", n, t), d = e.getObj("attributes", n, t), g = e.getObj("events", n, t);
|
518
|
+
return i.href = a, r && (i.class = r), A && (i.target = A), c && (i.rel = c), d && Object.assign(i, d), {
|
519
519
|
tagName: f,
|
520
520
|
attributes: i,
|
521
521
|
content: s,
|
@@ -564,18 +564,18 @@ function fs({
|
|
564
564
|
}) {
|
565
565
|
const t = e.domain.concat([rn, An, Fe, un, dn, gn, mn, pn, Me, na, bt, hn, yn, vn, Se, Mn, _t, bn]), n = [cn, Pe, fa, Ve, sa, bt, Mt, ia, oa, Zt, Xt, yt, vt, Kt, Wt, Jt, Gt, en, tn, nn, an, fn, sn, on, ln], a = [rn, cn, An, un, dn, gn, mn, pn, Me, yt, vt, bt, hn, yn, vn, Mt, Se, Mn, _t, bn], f = be(), s = E(f, _t);
|
566
566
|
q(s, a, s), q(s, e.domain, s);
|
567
|
-
const i = be(), r = be(),
|
568
|
-
q(f, e.domain, i), q(f, e.scheme, r), q(f, e.slashscheme,
|
569
|
-
const
|
570
|
-
E(s, Fe,
|
567
|
+
const i = be(), r = be(), A = be();
|
568
|
+
q(f, e.domain, i), q(f, e.scheme, r), q(f, e.slashscheme, A), q(i, a, s), q(i, e.domain, i);
|
569
|
+
const c = E(i, Fe);
|
570
|
+
E(s, Fe, c), E(r, Fe, c), E(A, Fe, c);
|
571
571
|
const d = E(s, Ve);
|
572
572
|
q(d, a, s), q(d, e.domain, s);
|
573
573
|
const g = be();
|
574
|
-
q(
|
574
|
+
q(c, e.domain, g), q(g, e.domain, g);
|
575
575
|
const m = E(g, Ve);
|
576
576
|
q(m, e.domain, g);
|
577
577
|
const _ = be(Oa);
|
578
|
-
q(m, e.tld, _), q(m, e.utld, _), E(
|
578
|
+
q(m, e.tld, _), q(m, e.utld, _), E(c, Nt, _);
|
579
579
|
const v = E(g, Me);
|
580
580
|
E(v, Me, v), q(v, e.domain, g), q(_, e.domain, g), E(_, Ve, m), E(_, Me, v);
|
581
581
|
const I = E(_, Pe);
|
@@ -583,13 +583,13 @@ function fs({
|
|
583
583
|
const y = E(i, Me), N = E(i, Ve);
|
584
584
|
E(y, Me, y), q(y, e.domain, i), q(N, a, s), q(N, e.domain, i);
|
585
585
|
const j = be(Qt);
|
586
|
-
q(N, e.tld, j), q(N, e.utld, j), q(j, e.domain, i), q(j, a, s), E(j, Ve, N), E(j, Me, y), E(j, Fe,
|
586
|
+
q(N, e.tld, j), q(N, e.utld, j), q(j, e.domain, i), q(j, a, s), E(j, Ve, N), E(j, Me, y), E(j, Fe, c);
|
587
587
|
const h = E(j, Pe), w = be(Qt);
|
588
588
|
q(h, e.numeric, w);
|
589
589
|
const M = be(Qt), T = be();
|
590
590
|
q(M, t, M), q(M, n, T), q(T, t, M), q(T, n, T), E(j, Se, M), E(w, Se, M);
|
591
|
-
const S = E(r, Pe), U = E(
|
592
|
-
q(r, e.domain, i), E(r, Ve, N), E(r, Me, y), q(
|
591
|
+
const S = E(r, Pe), U = E(A, Pe), V = E(U, Se), Q = E(V, Se);
|
592
|
+
q(r, e.domain, i), E(r, Ve, N), E(r, Me, y), q(A, e.domain, i), E(A, Ve, N), E(A, Me, y), q(S, e.domain, M), E(S, Se, M), E(S, Mt, M), q(Q, e.domain, M), q(Q, t, M), E(Q, Se, M);
|
593
593
|
const G = [
|
594
594
|
[yt, vt],
|
595
595
|
// {}
|
@@ -624,11 +624,11 @@ function fs({
|
|
624
624
|
function ss(e, t, n) {
|
625
625
|
let a = n.length, f = 0, s = [], i = [];
|
626
626
|
for (; f < a; ) {
|
627
|
-
let r = e,
|
628
|
-
for (; f < a && !(
|
627
|
+
let r = e, A = null, c = null, d = 0, g = null, m = -1;
|
628
|
+
for (; f < a && !(A = r.go(n[f].t)); )
|
629
629
|
i.push(n[f++]);
|
630
|
-
for (; f < a && (
|
631
|
-
|
630
|
+
for (; f < a && (c = A || r.go(n[f].t)); )
|
631
|
+
A = null, r = c, r.accepts() ? (m = 0, g = r) : m >= 0 && m++, f++, d++;
|
632
632
|
if (m < 0)
|
633
633
|
f -= d, f < a && (i.push(n[f]), f++);
|
634
634
|
else {
|
@@ -762,7 +762,7 @@ const R = (e, t) => {
|
|
762
762
|
e.showReturnButton ? (l(), u("span", {
|
763
763
|
key: 0,
|
764
764
|
class: "pi pi-arrow-left chat-info__return-button",
|
765
|
-
onClick: r[0] || (r[0] = (
|
765
|
+
onClick: r[0] || (r[0] = (A) => a("returnToChats"))
|
766
766
|
})) : p("", !0),
|
767
767
|
o("div", us, [
|
768
768
|
n.chat.avatar ? (l(), u("img", {
|
@@ -805,70 +805,70 @@ const R = (e, t) => {
|
|
805
805
|
}), t.value = he.value.length - 1);
|
806
806
|
const a = () => {
|
807
807
|
he.value[t.value] = {
|
808
|
-
id:
|
808
|
+
id: c().id,
|
809
809
|
text: "",
|
810
810
|
file: void 0,
|
811
811
|
reply: void 0,
|
812
812
|
forceSend: !1,
|
813
|
-
isRecording:
|
813
|
+
isRecording: c().isRecording
|
814
814
|
};
|
815
815
|
}, f = (m) => {
|
816
816
|
he.value[t.value] = {
|
817
|
-
id:
|
817
|
+
id: c().id,
|
818
818
|
text: m,
|
819
|
-
file:
|
820
|
-
reply:
|
819
|
+
file: c().file,
|
820
|
+
reply: c().reply,
|
821
821
|
forceSend: !1,
|
822
|
-
isRecording:
|
822
|
+
isRecording: c().isRecording
|
823
823
|
};
|
824
824
|
}, s = (m) => {
|
825
825
|
he.value[t.value] = {
|
826
|
-
id:
|
827
|
-
text:
|
826
|
+
id: c().id,
|
827
|
+
text: c().text,
|
828
828
|
file: m,
|
829
|
-
reply:
|
829
|
+
reply: c().reply,
|
830
830
|
forceSend: !1,
|
831
|
-
isRecording:
|
831
|
+
isRecording: c().isRecording
|
832
832
|
};
|
833
833
|
}, i = () => {
|
834
834
|
he.value[t.value] = {
|
835
|
-
id:
|
836
|
-
text:
|
835
|
+
id: c().id,
|
836
|
+
text: c().text,
|
837
837
|
file: void 0,
|
838
|
-
reply:
|
838
|
+
reply: c().reply,
|
839
839
|
forceSend: !1,
|
840
|
-
isRecording:
|
840
|
+
isRecording: c().isRecording
|
841
841
|
};
|
842
842
|
}, r = (m) => {
|
843
843
|
he.value[t.value] = {
|
844
|
-
id:
|
845
|
-
text:
|
846
|
-
file:
|
844
|
+
id: c().id,
|
845
|
+
text: c().text,
|
846
|
+
file: c().file,
|
847
847
|
reply: m,
|
848
848
|
forceSend: !1,
|
849
|
-
isRecording:
|
849
|
+
isRecording: c().isRecording
|
850
850
|
};
|
851
|
-
},
|
851
|
+
}, A = () => {
|
852
852
|
he.value[t.value] = {
|
853
|
-
id:
|
854
|
-
text:
|
855
|
-
file:
|
853
|
+
id: c().id,
|
854
|
+
text: c().text,
|
855
|
+
file: c().file,
|
856
856
|
reply: void 0,
|
857
857
|
forceSend: !1,
|
858
|
-
isRecording:
|
858
|
+
isRecording: c().isRecording
|
859
859
|
};
|
860
860
|
};
|
861
|
-
function
|
861
|
+
function c() {
|
862
862
|
return he.value[t.value];
|
863
863
|
}
|
864
864
|
return {
|
865
|
-
getMessage:
|
865
|
+
getMessage: c,
|
866
866
|
resetMessage: a,
|
867
867
|
setMessageFile: s,
|
868
868
|
resetMessageFile: i,
|
869
869
|
setMessageText: f,
|
870
870
|
setReply: r,
|
871
|
-
resetReply:
|
871
|
+
resetReply: A,
|
872
872
|
setForceSendMessage: (m) => {
|
873
873
|
he.value[t.value].forceSend = m;
|
874
874
|
},
|
@@ -963,9 +963,9 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
963
963
|
},
|
964
964
|
emits: ["send", "typing"],
|
965
965
|
setup(e, { emit: t }) {
|
966
|
-
const n = t, a = Z("chatAppId"), { resetMessage: f, getMessage: s, setMessageText: i, setForceSendMessage: r } = Ne(a),
|
966
|
+
const n = t, a = Z("chatAppId"), { resetMessage: f, getMessage: s, setMessageText: i, setForceSendMessage: r } = Ne(a), A = b(), c = Ns("", 2e3), d = b(), g = e, m = $(() => !!(g.state == "disabled" || s().text == "" && !s().file || s().isRecording));
|
967
967
|
ee(
|
968
|
-
() =>
|
968
|
+
() => c.value,
|
969
969
|
() => {
|
970
970
|
n("typing");
|
971
971
|
}
|
@@ -973,7 +973,7 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
973
973
|
() => g.focusOnInputArea,
|
974
974
|
() => {
|
975
975
|
g.focusOnInputArea && Oe(() => {
|
976
|
-
const y = k(
|
976
|
+
const y = k(A);
|
977
977
|
y == null || y.focus();
|
978
978
|
});
|
979
979
|
},
|
@@ -982,7 +982,7 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
982
982
|
() => s().text,
|
983
983
|
() => {
|
984
984
|
Oe(function() {
|
985
|
-
|
985
|
+
c.value = s().text, A.value && (A.value.style.height = "auto", A.value.style.height = A.value.scrollHeight + "px", s().text.length == 0 && (A.value.style.height = "40px"));
|
986
986
|
});
|
987
987
|
},
|
988
988
|
{ immediate: !0 }
|
@@ -996,10 +996,10 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
996
996
|
n("typing", y.target.value);
|
997
997
|
}, v = (y) => {
|
998
998
|
if (y.ctrlKey) {
|
999
|
-
if (
|
1000
|
-
let N =
|
1001
|
-
N && (
|
1002
|
-
`, N, N, "end"), i(
|
999
|
+
if (A.value instanceof HTMLTextAreaElement) {
|
1000
|
+
let N = A.value.selectionStart;
|
1001
|
+
N && (A.value.setRangeText(`
|
1002
|
+
`, N, N, "end"), i(A.value.value));
|
1003
1003
|
}
|
1004
1004
|
} else
|
1005
1005
|
y.preventDefault(), I();
|
@@ -1015,7 +1015,7 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
1015
1015
|
size: "",
|
1016
1016
|
reply: void 0
|
1017
1017
|
};
|
1018
|
-
y.value.file ? (h.type = "message." + y.value.file.type, h.url = y.value.file.url, h.filename = y.value.file.name, h.size = (N = y.value.file.size) == null ? void 0 : N.toString(), h.text = (j = y == null ? void 0 : y.value) == null ? void 0 : j.text.trim()) : (h.type = "message.text", h.text = y.value.text.trim()), y.value.reply && (h.reply = y.value.reply), n("send", h), f(), d.value = void 0,
|
1018
|
+
y.value.file ? (h.type = "message." + y.value.file.type, h.url = y.value.file.url, h.filename = y.value.file.name, h.size = (N = y.value.file.size) == null ? void 0 : N.toString(), h.text = (j = y == null ? void 0 : y.value) == null ? void 0 : j.text.trim()) : (h.type = "message.text", h.text = y.value.text.trim()), y.value.reply && (h.reply = y.value.reply), n("send", h), f(), d.value = void 0, A.value && A.value.focus();
|
1019
1019
|
}
|
1020
1020
|
};
|
1021
1021
|
return (y, N) => (l(), u("div", Ds, [
|
@@ -1033,7 +1033,7 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
1033
1033
|
e.disabledPlaceholder && (e.state == "disabled" || k(s)().isRecording) ? (l(), u("div", xs, D(e.disabledPlaceholder), 1)) : re((l(), u("textarea", {
|
1034
1034
|
key: 1,
|
1035
1035
|
ref_key: "refInput",
|
1036
|
-
ref:
|
1036
|
+
ref: A,
|
1037
1037
|
"onUpdate:modelValue": N[0] || (N[0] = (j) => k(s)().text = j),
|
1038
1038
|
disabled: e.state == "disabled" || k(s)().isRecording,
|
1039
1039
|
class: "chat-input__input",
|
@@ -1080,8 +1080,8 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
1080
1080
|
},
|
1081
1081
|
emits: ["select", "action", "loadMoreChats", "expand"],
|
1082
1082
|
setup(e, { emit: t }) {
|
1083
|
-
const n = e, a = t, f = b(""), s = b(), i = b(!1), r = b(!1),
|
1084
|
-
function
|
1083
|
+
const n = e, a = t, f = b(""), s = b(), i = b(!1), r = b(!1), A = b(!1);
|
1084
|
+
function c() {
|
1085
1085
|
Oe(function() {
|
1086
1086
|
const h = k(s);
|
1087
1087
|
h.scrollTop = 0;
|
@@ -1089,7 +1089,7 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
1089
1089
|
}
|
1090
1090
|
const d = () => {
|
1091
1091
|
const h = k(s), w = h.scrollHeight - h.scrollTop - h.clientHeight;
|
1092
|
-
h.scrollTop > 500 && (r.value = !0), h.scrollTop <= 500 && (r.value = !1),
|
1092
|
+
h.scrollTop > 500 && (r.value = !0), h.scrollTop <= 500 && (r.value = !1), A.value ? w < 300 && (i.value = !0) : (w < 300 && (i.value = !0), w >= 300 && (i.value = !1));
|
1093
1093
|
};
|
1094
1094
|
ee(
|
1095
1095
|
() => i.value,
|
@@ -1099,7 +1099,7 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
1099
1099
|
), ee(
|
1100
1100
|
() => n.chats,
|
1101
1101
|
() => {
|
1102
|
-
if (i.value = !1,
|
1102
|
+
if (i.value = !1, A.value) {
|
1103
1103
|
const h = k(s);
|
1104
1104
|
h.scrollTop = h.scrollHeight;
|
1105
1105
|
}
|
@@ -1107,9 +1107,9 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
1107
1107
|
);
|
1108
1108
|
const g = (h) => {
|
1109
1109
|
const w = k(s);
|
1110
|
-
(h.offsetX > w.clientWidth || h.offsetY > w.clientHeight) && (
|
1110
|
+
(h.offsetX > w.clientWidth || h.offsetY > w.clientHeight) && (A.value = !0);
|
1111
1111
|
}, m = () => {
|
1112
|
-
|
1112
|
+
A.value = !1;
|
1113
1113
|
}, _ = (h) => {
|
1114
1114
|
a("expand", h);
|
1115
1115
|
}, v = (h) => {
|
@@ -1192,7 +1192,7 @@ const Ds = { class: "chat-input__container" }, Ts = ["id"], Es = ["id"], js = {
|
|
1192
1192
|
r.value ? (l(), u("button", {
|
1193
1193
|
key: 0,
|
1194
1194
|
class: "chat-list__button-up",
|
1195
|
-
onClick:
|
1195
|
+
onClick: c
|
1196
1196
|
}, w[0] || (w[0] = [
|
1197
1197
|
o("span", { class: "pi pi-angle-up chat-list__icon-down" }, null, -1)
|
1198
1198
|
]))) : p("", !0)
|
@@ -1223,23 +1223,23 @@ const Fs = {
|
|
1223
1223
|
},
|
1224
1224
|
emits: ["action"],
|
1225
1225
|
setup(e, { expose: t, emit: n }) {
|
1226
|
-
const a = ef("keyboard"), f = n, s = Z("chatAppId"), { setMessageText: i, setForceSendMessage: r } = Ne(s),
|
1227
|
-
|
1226
|
+
const a = ef("keyboard"), f = n, s = Z("chatAppId"), { setMessageText: i, setForceSendMessage: r } = Ne(s), A = (c) => {
|
1227
|
+
c.action && typeof c.action == "function" ? c.action() : c.action != null ? f("action", c.action) : (i(c.text), r(!0));
|
1228
1228
|
};
|
1229
1229
|
return t({
|
1230
1230
|
refKeyboard: a
|
1231
|
-
}), (
|
1231
|
+
}), (c, d) => (l(), u("div", Fs, [
|
1232
1232
|
(l(!0), u(F, null, ie(e.keyboard, (g) => (l(), u("div", {
|
1233
1233
|
key: g.text,
|
1234
1234
|
class: "keyboard__key",
|
1235
1235
|
style: ce({ "box-shadow": "0px 0px 10px 5px " + g.color }),
|
1236
|
-
onClick: (m) =>
|
1236
|
+
onClick: (m) => A(g)
|
1237
1237
|
}, [
|
1238
1238
|
o("p", null, D(g.text), 1)
|
1239
1239
|
], 12, Ps))), 128))
|
1240
1240
|
], 512));
|
1241
1241
|
}
|
1242
|
-
}), Hs = /* @__PURE__ */ R(qs, [["__scopeId", "data-v-
|
1242
|
+
}), Hs = /* @__PURE__ */ R(qs, [["__scopeId", "data-v-d54ac265"]]), Ws = ["id"], Ks = ["id", "onDblclick"], Js = {
|
1243
1243
|
key: 0,
|
1244
1244
|
class: "message-feed__unread-amount"
|
1245
1245
|
}, Gs = { style: { margin: "auto" } }, Zs = /* @__PURE__ */ Y({
|
@@ -1285,7 +1285,7 @@ const Fs = {
|
|
1285
1285
|
"keyboardAction"
|
1286
1286
|
],
|
1287
1287
|
setup(e, { emit: t }) {
|
1288
|
-
const n = b(), a = b(), f = b(), s = b(!1), i = b(!1), r = b(!1),
|
1288
|
+
const n = b(), a = b(), f = b(), s = b(!1), i = b(!1), r = b(!1), A = b(!1), c = b(!1), d = b(!1), g = e, m = Z("chatAppId"), { setReply: _, getMessage: v, resetReply: I } = Ne(m), y = t, N = $(() => !!(i.value && g.objects.length > 0 && g.objects[g.objects.length - 1].keyboard)), j = (B) => {
|
1289
1289
|
y("keyboardAction", B);
|
1290
1290
|
};
|
1291
1291
|
function h(B = !0) {
|
@@ -1293,12 +1293,12 @@ const Fs = {
|
|
1293
1293
|
let fe = 0;
|
1294
1294
|
f.value && (fe = f.value.refKeyboard.clientHeight);
|
1295
1295
|
const de = 100, pe = K.scrollHeight - K.scrollTop - K.clientHeight;
|
1296
|
-
pe < de + fe ? (s.value = !1, i.value = !0) : (s.value = !0, i.value = !1), d.value ? (K.scrollTop < 300 && (
|
1296
|
+
pe < de + fe ? (s.value = !1, i.value = !0) : (s.value = !0, i.value = !1), d.value ? (K.scrollTop < 300 && (c.value = !1, r.value = !1), pe < 300 && (A.value = !1, c.value = !0)) : B && (K.scrollTop < 300 && (r.value = !1), pe < 300 && (A.value = !1));
|
1297
1297
|
}
|
1298
1298
|
ee(
|
1299
|
-
() => [
|
1299
|
+
() => [A.value, r.value],
|
1300
1300
|
() => {
|
1301
|
-
|
1301
|
+
A.value || y("loadMoreDown"), r.value || y("loadMore");
|
1302
1302
|
}
|
1303
1303
|
);
|
1304
1304
|
const w = (B) => {
|
@@ -1367,9 +1367,9 @@ const Fs = {
|
|
1367
1367
|
() => g.objects,
|
1368
1368
|
() => {
|
1369
1369
|
Oe(() => {
|
1370
|
-
if (r.value = !0,
|
1370
|
+
if (r.value = !0, A.value = !0, h(!1), d.value) {
|
1371
1371
|
const B = k(a);
|
1372
|
-
|
1372
|
+
c.value && (B.scrollTop = B.scrollHeight - 400), c.value || (B.scrollTop = 400);
|
1373
1373
|
}
|
1374
1374
|
n.value = document.querySelectorAll(".tracking-message"), n.value.forEach((B) => te.observe(B));
|
1375
1375
|
});
|
@@ -1532,23 +1532,23 @@ const Fs = {
|
|
1532
1532
|
},
|
1533
1533
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
1534
1534
|
setup(e, { expose: t, emit: n }) {
|
1535
|
-
const a = Z("chatAppId"), f = Z("extChatAppId"), { getTheme: s } = Ee(a), i = e, r = ta(),
|
1536
|
-
h(),
|
1535
|
+
const a = Z("chatAppId"), f = Z("extChatAppId"), { getTheme: s } = Ee(a), i = e, r = ta(), A = n, c = b(), d = b(), g = b(!1), m = (M) => {
|
1536
|
+
h(), A("click", M);
|
1537
1537
|
}, _ = () => {
|
1538
|
-
i.disabled || (i.mode == "click" && !g.value ? j() : i.mode == "click" && g.value && h(),
|
1538
|
+
i.disabled || (i.mode == "click" && !g.value ? j() : i.mode == "click" && g.value && h(), A("buttonClick"));
|
1539
1539
|
}, v = () => {
|
1540
1540
|
i.disabled || i.mode == "hover" && j();
|
1541
1541
|
}, I = () => {
|
1542
1542
|
i.disabled || i.mode == "hover" && h();
|
1543
1543
|
}, y = () => {
|
1544
|
-
|
1544
|
+
A("menuMouseEnter"), i.disabled || i.mode == "hover" && j();
|
1545
1545
|
}, N = () => {
|
1546
|
-
|
1546
|
+
A("menuMouseLeave"), i.disabled || i.mode == "hover" && h();
|
1547
1547
|
}, j = () => {
|
1548
|
-
if (d.value &&
|
1549
|
-
const M =
|
1548
|
+
if (d.value && c.value) {
|
1549
|
+
const M = c.value, T = d.value.getBoundingClientRect();
|
1550
1550
|
M.style.display = "inherit";
|
1551
|
-
const S =
|
1551
|
+
const S = c.value.getBoundingClientRect();
|
1552
1552
|
M.style.display = "none", Oe(() => {
|
1553
1553
|
const U = {
|
1554
1554
|
left: { top: T.top - (S.height - T.height) / 2 - S.top, left: T.left - S.width - S.left },
|
@@ -1560,8 +1560,8 @@ const Fs = {
|
|
1560
1560
|
});
|
1561
1561
|
}
|
1562
1562
|
}, h = () => {
|
1563
|
-
if (
|
1564
|
-
const M =
|
1563
|
+
if (c.value) {
|
1564
|
+
const M = c.value;
|
1565
1565
|
M && (M.style.top = "0", M.style.left = "0", M.style.opacity = "0", M.style.display = "none", g.value = !1);
|
1566
1566
|
}
|
1567
1567
|
}, w = (M) => {
|
@@ -1569,7 +1569,7 @@ const Fs = {
|
|
1569
1569
|
};
|
1570
1570
|
return ue(() => {
|
1571
1571
|
Oe(() => {
|
1572
|
-
|
1572
|
+
c.value = document.getElementById("context-menu-" + r + f), c.value && (h(), document.addEventListener("click", w));
|
1573
1573
|
});
|
1574
1574
|
}), wn(() => {
|
1575
1575
|
document.removeEventListener("click", w);
|
@@ -1660,24 +1660,24 @@ const Fs = {
|
|
1660
1660
|
},
|
1661
1661
|
emits: ["reset"],
|
1662
1662
|
setup(e, { emit: t }) {
|
1663
|
-
const n = Z("chatAppId"), { getTheme: a } = Ee(n), f = t, s = b(), i = b(), r = b(!1),
|
1663
|
+
const n = Z("chatAppId"), { getTheme: a } = Ee(n), f = t, s = b(), i = b(), r = b(!1), A = b(0), c = b(0), d = b(!1), g = () => d.value = !1;
|
1664
1664
|
function m() {
|
1665
1665
|
s.value && (r.value ? s.value.pause() : s.value.play(), r.value = !r.value);
|
1666
1666
|
}
|
1667
1667
|
const _ = (y) => {
|
1668
1668
|
const N = Math.floor(y / 60), j = Math.floor(y % 60);
|
1669
1669
|
return `${N.toString().padStart(2, "0")}:${j.toString().padStart(2, "0")}`;
|
1670
|
-
}, v = $(() => s.value ? _(
|
1670
|
+
}, v = $(() => s.value ? _(c.value) : "0:00"), I = $(() => s.value || i.value ? _(A.value) : "0:00");
|
1671
1671
|
return ue(() => {
|
1672
1672
|
s.value != null && (s.value.addEventListener("loadedmetadata", () => {
|
1673
1673
|
s.value != null && (s.value.duration == 1 / 0 || Number.isNaN(s.value.duration)) && (s.value.currentTime = 1e101, s.value.addEventListener("timeupdate", () => {
|
1674
|
-
s.value && (s.value.currentTime = 0,
|
1675
|
-
}, { once: !0 })),
|
1674
|
+
s.value && (s.value.currentTime = 0, A.value = s.value.duration);
|
1675
|
+
}, { once: !0 })), A.value = s.value != null ? s.value.duration : 0;
|
1676
1676
|
}), s.value.addEventListener("timeupdate", () => {
|
1677
|
-
|
1677
|
+
c.value = s.value != null ? s.value.currentTime : 0;
|
1678
1678
|
})), i.value && i.value.addEventListener("loadedmetadata", () => {
|
1679
|
-
i.value && (
|
1680
|
-
i.value && (i.value.currentTime = 0,
|
1679
|
+
i.value && (A.value = i.value.duration, (i.value.duration == 1 / 0 || Number.isNaN(i.value.duration)) && (i.value.currentTime = 1e101, i.value.addEventListener("timeupdate", () => {
|
1680
|
+
i.value && (i.value.currentTime = 0, A.value = i.value.duration);
|
1681
1681
|
}, { once: !0 })));
|
1682
1682
|
});
|
1683
1683
|
}), (y, N) => (l(), u("div", ci, [
|
@@ -1789,15 +1789,15 @@ const Fs = {
|
|
1789
1789
|
const t = hf(e.type), n = b(!1), a = b(!1), f = b(!1), s = b("");
|
1790
1790
|
t === "image" ? n.value = !0 : t === "video" ? a.value = !0 : t === "audio" && (f.value = !0), n.value || a.value || f.value ? s.value = URL.createObjectURL(e) : s.value = "";
|
1791
1791
|
const i = ["б", "Кб", "Мб", "Гб"];
|
1792
|
-
let r = e.size,
|
1792
|
+
let r = e.size, A = 0;
|
1793
1793
|
for (; r > 1024; )
|
1794
|
-
r = r / 1024,
|
1794
|
+
r = r / 1024, A++;
|
1795
1795
|
return {
|
1796
1796
|
isImage: n.value,
|
1797
1797
|
isVideo: a.value,
|
1798
1798
|
isAudio: f.value,
|
1799
1799
|
previewUrl: s.value,
|
1800
|
-
fileSize: r.toFixed(2) + i[
|
1800
|
+
fileSize: r.toFixed(2) + i[A]
|
1801
1801
|
};
|
1802
1802
|
}, Tn = async (e, t) => {
|
1803
1803
|
const n = new FormData();
|
@@ -1834,7 +1834,7 @@ const Fs = {
|
|
1834
1834
|
},
|
1835
1835
|
emits: ["fileUploaded"],
|
1836
1836
|
setup(e, { emit: t }) {
|
1837
|
-
const n = e, a = b(""), f = b(), s = b(), i = Z("chatAppId"), { setMessageFile: r, resetMessageFile:
|
1837
|
+
const n = e, a = b(""), f = b(), s = b(), i = Z("chatAppId"), { setMessageFile: r, resetMessageFile: A, getMessage: c, setRecordingMessage: d } = Ne(i), g = [
|
1838
1838
|
{
|
1839
1839
|
action: "audio/*",
|
1840
1840
|
title: "Аудио",
|
@@ -1855,9 +1855,9 @@ const Fs = {
|
|
1855
1855
|
title: "Файл",
|
1856
1856
|
prime: "file"
|
1857
1857
|
}
|
1858
|
-
], m = $(() => !
|
1858
|
+
], m = $(() => !c().file), _ = () => {
|
1859
1859
|
const h = document.getElementById("chat-input-file-line-" + i);
|
1860
|
-
h && (h.style.display = "none"),
|
1860
|
+
h && (h.style.display = "none"), A(), s.value = void 0, a.value = "";
|
1861
1861
|
}, v = async () => {
|
1862
1862
|
var h, w;
|
1863
1863
|
_(), (h = f.value) != null && h.files && j((w = f.value) == null ? void 0 : w.files[0]);
|
@@ -1906,7 +1906,7 @@ const Fs = {
|
|
1906
1906
|
o("p", null, "Загрузка файла...", -1)
|
1907
1907
|
]))) : a.value === "error" ? (l(), u("div", xi, w[1] || (w[1] = [
|
1908
1908
|
o("p", null, "Ошибка при загрузке файла.", -1)
|
1909
|
-
]))) : k(
|
1909
|
+
]))) : k(c)().isRecording ? p("", !0) : (l(), L(Nn, {
|
1910
1910
|
key: 2,
|
1911
1911
|
actions: g,
|
1912
1912
|
mode: "hover",
|
@@ -1929,7 +1929,7 @@ const Fs = {
|
|
1929
1929
|
type: "file",
|
1930
1930
|
onChange: v
|
1931
1931
|
}, null, 544),
|
1932
|
-
k(
|
1932
|
+
k(c)().file ? (l(), L(ve, {
|
1933
1933
|
key: 3,
|
1934
1934
|
to: "#chat-input-file-line-" + k(i)
|
1935
1935
|
}, [
|
@@ -1953,18 +1953,18 @@ const Fs = {
|
|
1953
1953
|
emits: ["selectedTheme"],
|
1954
1954
|
setup(e, { emit: t }) {
|
1955
1955
|
const n = e, a = t, f = Z("chatAppId"), { getTheme: s } = Ee(f), i = () => {
|
1956
|
-
const
|
1957
|
-
return
|
1958
|
-
}, r = (
|
1959
|
-
const d =
|
1960
|
-
|
1961
|
-
},
|
1962
|
-
f && (document.getElementById(f).dataset.theme =
|
1956
|
+
const c = n.themes.find((d) => d.default === !0);
|
1957
|
+
return c ? c.code : n.themes[0].code;
|
1958
|
+
}, r = (c) => {
|
1959
|
+
const d = c.target.value;
|
1960
|
+
A(d);
|
1961
|
+
}, A = (c) => {
|
1962
|
+
f && (document.getElementById(f).dataset.theme = c, s().theme = c, a("selectedTheme", c));
|
1963
1963
|
};
|
1964
1964
|
return ue(() => {
|
1965
|
-
const
|
1966
|
-
c
|
1967
|
-
}), (
|
1965
|
+
const c = i();
|
1966
|
+
A(c);
|
1967
|
+
}), (c, d) => e.show ? (l(), u("div", Si, [
|
1968
1968
|
o("select", {
|
1969
1969
|
onChange: d[0] || (d[0] = (g) => r(g))
|
1970
1970
|
}, [
|
@@ -1993,59 +1993,59 @@ const Fs = {
|
|
1993
1993
|
emits: ["selectItem"],
|
1994
1994
|
setup(e, { emit: t }) {
|
1995
1995
|
const a = Qf(e, "sidebarItems"), f = t, s = (r) => {
|
1996
|
-
const
|
1997
|
-
f("selectItem",
|
1996
|
+
const A = a.value.find((c) => c.itemId === r);
|
1997
|
+
f("selectItem", A);
|
1998
1998
|
}, i = (r) => {
|
1999
|
-
const
|
2000
|
-
return
|
1999
|
+
const A = r.split(" ");
|
2000
|
+
return A.length > 2 ? A.slice(0, 2).join(" ") : r;
|
2001
2001
|
};
|
2002
|
-
return (r,
|
2002
|
+
return (r, A) => (l(), u("div", {
|
2003
2003
|
class: x(["sidebar__container", { "sidebar-horizontal__container": e.horizontal }])
|
2004
2004
|
}, [
|
2005
2005
|
o("ul", {
|
2006
2006
|
class: x(["sidebar__list", { "sidebar-horizontal__list": e.horizontal }])
|
2007
2007
|
}, [
|
2008
|
-
(l(!0), u(F, null, ie(a.value.filter((
|
2008
|
+
(l(!0), u(F, null, ie(a.value.filter((c) => !c.isFixedBottom), (c, d) => (l(), u("li", {
|
2009
2009
|
key: d,
|
2010
2010
|
class: x(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
|
2011
|
-
onClick: (g) => s(
|
2011
|
+
onClick: (g) => s(c.itemId)
|
2012
2012
|
}, [
|
2013
2013
|
o("img", {
|
2014
|
-
src:
|
2015
|
-
alt:
|
2014
|
+
src: c.icon,
|
2015
|
+
alt: c.name,
|
2016
2016
|
class: x(["sidebar__image", {
|
2017
|
-
"sidebar__image--active":
|
2017
|
+
"sidebar__image--active": c.selected === !0,
|
2018
2018
|
"sidebar-horizontal__image": e.horizontal
|
2019
2019
|
}])
|
2020
2020
|
}, null, 10, Li),
|
2021
|
-
|
2021
|
+
c.notificationCount ? (l(), u("span", {
|
2022
2022
|
key: 0,
|
2023
|
-
style: ce({ backgroundColor:
|
2024
|
-
}, D(
|
2025
|
-
|
2023
|
+
style: ce({ backgroundColor: c.notificationColor ? c.notificationColor : "red" })
|
2024
|
+
}, D(c.notificationCount > 99 ? "99+" : c.notificationCount), 5)) : p("", !0),
|
2025
|
+
c.name ? (l(), u("p", Ui, D(i(c.name)), 1)) : p("", !0)
|
2026
2026
|
], 10, zi))), 128))
|
2027
2027
|
], 2),
|
2028
2028
|
o("ul", {
|
2029
2029
|
class: x(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": e.horizontal }])
|
2030
2030
|
}, [
|
2031
|
-
(l(!0), u(F, null, ie(a.value.filter((
|
2031
|
+
(l(!0), u(F, null, ie(a.value.filter((c) => c.isFixedBottom), (c, d) => (l(), u("li", {
|
2032
2032
|
key: d,
|
2033
2033
|
class: x(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
|
2034
|
-
onClick: (g) => s(
|
2034
|
+
onClick: (g) => s(c.itemId)
|
2035
2035
|
}, [
|
2036
2036
|
o("img", {
|
2037
|
-
src:
|
2038
|
-
alt:
|
2037
|
+
src: c.icon,
|
2038
|
+
alt: c.name,
|
2039
2039
|
class: x(["sidebar__image", {
|
2040
|
-
"sidebar__image--active":
|
2040
|
+
"sidebar__image--active": c.selected === !0,
|
2041
2041
|
"sidebar-horizontal__image": e.horizontal
|
2042
2042
|
}])
|
2043
2043
|
}, null, 10, Ri),
|
2044
|
-
|
2044
|
+
c.notificationCount ? (l(), u("span", {
|
2045
2045
|
key: 0,
|
2046
|
-
style: ce({ backgroundColor:
|
2047
|
-
}, D(
|
2048
|
-
|
2046
|
+
style: ce({ backgroundColor: c.notificationColor ? c.notificationColor : null })
|
2047
|
+
}, D(c.notificationCount > 99 ? "99+" : c.notificationCount), 5)) : p("", !0),
|
2048
|
+
c.name ? (l(), u("p", Qi, D(i(c.name)), 1)) : p("", !0)
|
2049
2049
|
], 10, Bi))), 128))
|
2050
2050
|
], 2)
|
2051
2051
|
], 2));
|
@@ -2111,10 +2111,10 @@ const Fs = {
|
|
2111
2111
|
},
|
2112
2112
|
emits: ["selectChannel"],
|
2113
2113
|
setup(e, { emit: t }) {
|
2114
|
-
const n = e, a = Z("chatAppId"), { getMessage: f } = Ne(a), s = t, r = b(n.channels.find((
|
2115
|
-
r.value =
|
2114
|
+
const n = e, a = Z("chatAppId"), { getMessage: f } = Ne(a), s = t, r = b(n.channels.find((c) => c.type === "default")), A = (c) => {
|
2115
|
+
r.value = c, s("selectChannel", r.value);
|
2116
2116
|
};
|
2117
|
-
return (
|
2117
|
+
return (c, d) => k(f)().isRecording ? p("", !0) : (l(), u("div", {
|
2118
2118
|
key: 0,
|
2119
2119
|
class: x(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
|
2120
2120
|
}, [
|
@@ -2131,7 +2131,7 @@ const Fs = {
|
|
2131
2131
|
mode: e.mode,
|
2132
2132
|
"menu-side": "top",
|
2133
2133
|
disabled: e.state == "disabled",
|
2134
|
-
onClick:
|
2134
|
+
onClick: A
|
2135
2135
|
}, {
|
2136
2136
|
default: W(() => [
|
2137
2137
|
o("span", {
|
@@ -2200,7 +2200,7 @@ const o0 = (e, t = null) => {
|
|
2200
2200
|
const t = Z("chatAppId"), { getTheme: n } = Ee(t), a = b(), f = b(), s = b(!1), i = e, r = $(() => ({
|
2201
2201
|
tooltip__text: !0,
|
2202
2202
|
[`tooltip--${i.position}`]: !0
|
2203
|
-
})),
|
2203
|
+
})), A = () => {
|
2204
2204
|
s.value = !0, Oe(() => {
|
2205
2205
|
if (a.value && f.value) {
|
2206
2206
|
const d = f.value, g = a.value.getBoundingClientRect(), m = f.value.getBoundingClientRect(), _ = m.left < 0 ? m.left : 0, v = m.top < 0 ? m.top : 0, I = {
|
@@ -2212,7 +2212,7 @@ const o0 = (e, t = null) => {
|
|
2212
2212
|
d.style.top = I[i.position].top + "px", d.style.left = I[i.position].left + "px";
|
2213
2213
|
}
|
2214
2214
|
});
|
2215
|
-
},
|
2215
|
+
}, c = () => {
|
2216
2216
|
s.value = !1, Oe(() => {
|
2217
2217
|
const d = k(f);
|
2218
2218
|
d && (d.style.top = "0", d.style.left = "0");
|
@@ -2223,8 +2223,8 @@ const o0 = (e, t = null) => {
|
|
2223
2223
|
ref_key: "container",
|
2224
2224
|
ref: a,
|
2225
2225
|
class: "tooltip-wrapper",
|
2226
|
-
onMouseover:
|
2227
|
-
onMouseout:
|
2226
|
+
onMouseover: A,
|
2227
|
+
onMouseout: c
|
2228
2228
|
}, [
|
2229
2229
|
ne(d.$slots, "default", {}, void 0, !0)
|
2230
2230
|
], 544),
|
@@ -2290,9 +2290,9 @@ const o0 = (e, t = null) => {
|
|
2290
2290
|
s.value = !0;
|
2291
2291
|
}, r = (h) => {
|
2292
2292
|
s.value || h.target instanceof HTMLElement && h.target.id != "noSelectButton" && a("select", { chat: n.chat, dialog: null }), s.value = !1;
|
2293
|
-
},
|
2293
|
+
}, A = (h) => {
|
2294
2294
|
a("select", { chat: n.chat, dialog: h });
|
2295
|
-
},
|
2295
|
+
}, c = () => n.chat.isSelected ? "chat-item__selected" : "", d = (h) => h.isSelected ? "dialog__selected" : "", g = (h) => {
|
2296
2296
|
a("action", { chat: n.chat, ...h });
|
2297
2297
|
}, m = () => n.chat.dialogs.toSorted((h, w) => {
|
2298
2298
|
if (Number(h["lastActivity.timestamp"]) > Number(w["lastActivity.timestamp"])) return -1;
|
@@ -2316,7 +2316,7 @@ const o0 = (e, t = null) => {
|
|
2316
2316
|
};
|
2317
2317
|
return (h, w) => (l(), u("div", null, [
|
2318
2318
|
o("div", {
|
2319
|
-
class: x(["chat-item__container",
|
2319
|
+
class: x(["chat-item__container", c()]),
|
2320
2320
|
onMouseenter: w[2] || (w[2] = (M) => f.value = !0),
|
2321
2321
|
onMouseleave: j,
|
2322
2322
|
onClick: r
|
@@ -2409,7 +2409,7 @@ const o0 = (e, t = null) => {
|
|
2409
2409
|
(l(!0), u(F, null, ie(m(), (M) => (l(), u("div", {
|
2410
2410
|
key: M.dialogId,
|
2411
2411
|
class: x(["dialog__item", d(M)]),
|
2412
|
-
onClick: (T) =>
|
2412
|
+
onClick: (T) => A(M)
|
2413
2413
|
}, [
|
2414
2414
|
M.icon ? (l(), u("img", {
|
2415
2415
|
key: 0,
|
@@ -2498,8 +2498,8 @@ const o0 = (e, t = null) => {
|
|
2498
2498
|
emits: ["closeTemplateWindow", "pasteTemplate"],
|
2499
2499
|
setup(e, { emit: t }) {
|
2500
2500
|
const n = e, a = Z("chatAppId"), { setMessageText: f } = Ne(a), s = () => {
|
2501
|
-
i("closeTemplateWindow"), f(
|
2502
|
-
}, i = t, r = b(null),
|
2501
|
+
i("closeTemplateWindow"), f(A.value.template);
|
2502
|
+
}, i = t, r = b(null), A = b(null), c = b(""), d = b(), g = b(""), m = b(""), _ = b(""), v = b(!1), I = $(() => !!(v.value && (_.value == "grid" && m.value == "none" || m.value == "grid" && g.value == "none"))), y = $(() => !!(v.value && (g.value == "grid" && m.value == "none" || m.value == "grid" && _.value == "none"))), N = () => {
|
2503
2503
|
v.value && (m.value == "grid" ? h() : _.value == "grid" && M());
|
2504
2504
|
}, j = () => {
|
2505
2505
|
v.value && (m.value == "grid" ? w() : g.value == "grid" && M());
|
@@ -2516,11 +2516,11 @@ const o0 = (e, t = null) => {
|
|
2516
2516
|
const O = document.getElementById("template-selector-container-" + a), z = window.getComputedStyle(O);
|
2517
2517
|
g.value = z.getPropertyValue("--chotto-template-first-col-display"), m.value = z.getPropertyValue("--chotto-template-second-col-display"), _.value = z.getPropertyValue("--chotto-template-third-col-display");
|
2518
2518
|
}, S = (O) => {
|
2519
|
-
n.templates.forEach((z) => z.isSelected = !1), O.isSelected = !0,
|
2519
|
+
n.templates.forEach((z) => z.isSelected = !1), O.isSelected = !0, A.value = O, w();
|
2520
2520
|
}, U = () => {
|
2521
2521
|
M(), n.templates.forEach((O) => O.isSelected = !1);
|
2522
2522
|
}, V = $(() => r.value ? n.templates.filter((O) => O.groupId === r.value.groupId) : n.templates), Q = $(() => {
|
2523
|
-
const O =
|
2523
|
+
const O = c.value.trim().toLowerCase();
|
2524
2524
|
return V.value.filter((z) => z.title.toLowerCase().includes(O) || z.template.toLowerCase().includes(O));
|
2525
2525
|
}), G = new ResizeObserver((O) => {
|
2526
2526
|
const z = O[0].target.clientWidth;
|
@@ -2598,12 +2598,12 @@ const o0 = (e, t = null) => {
|
|
2598
2598
|
}, [
|
2599
2599
|
o("div", Ro, [
|
2600
2600
|
re(o("input", {
|
2601
|
-
"onUpdate:modelValue": z[2] || (z[2] = (X) =>
|
2601
|
+
"onUpdate:modelValue": z[2] || (z[2] = (X) => c.value = X),
|
2602
2602
|
class: "template-selector__searching-input",
|
2603
2603
|
type: "text",
|
2604
2604
|
placeholder: "Поиск шаблона"
|
2605
2605
|
}, null, 512), [
|
2606
|
-
[ot,
|
2606
|
+
[ot, c.value]
|
2607
2607
|
])
|
2608
2608
|
]),
|
2609
2609
|
o("div", Qo, [
|
@@ -2626,9 +2626,9 @@ const o0 = (e, t = null) => {
|
|
2626
2626
|
class: "template-selector__third-col"
|
2627
2627
|
}, [
|
2628
2628
|
o("div", Ko, [
|
2629
|
-
|
2629
|
+
A.value ? (l(), u("div", Jo, [
|
2630
2630
|
o("div", Go, [
|
2631
|
-
o("p", Zo, D(
|
2631
|
+
o("p", Zo, D(A.value.template), 1),
|
2632
2632
|
z[3] || (z[3] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
2633
2633
|
])
|
2634
2634
|
])) : (l(), u("p", Xo, " Предпросмотр шаблона "))
|
@@ -2674,9 +2674,9 @@ const o0 = (e, t = null) => {
|
|
2674
2674
|
t.mode == "click" && t.state == "active" && (s.value.style.display == "none" ? s.value.style.display = "inherit" : s.value.style.display == "inherit" && (s.value.style.display = "none"));
|
2675
2675
|
}, r = () => {
|
2676
2676
|
t.mode == "hover" && t.state == "active" && (s.value.style.display = "inherit");
|
2677
|
-
}, c = () => {
|
2678
|
-
t.mode == "hover" && t.state == "active" && (s.value.style.display = "none");
|
2679
2677
|
}, A = () => {
|
2678
|
+
t.mode == "hover" && t.state == "active" && (s.value.style.display = "none");
|
2679
|
+
}, c = () => {
|
2680
2680
|
s.value.style.display = "none";
|
2681
2681
|
};
|
2682
2682
|
return ue(() => {
|
@@ -2689,7 +2689,7 @@ const o0 = (e, t = null) => {
|
|
2689
2689
|
class: x(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
2690
2690
|
onClick: i,
|
2691
2691
|
onMouseover: r,
|
2692
|
-
onMouseout:
|
2692
|
+
onMouseout: A
|
2693
2693
|
}, g[0] || (g[0] = [
|
2694
2694
|
o("span", { class: "pi pi-objects-column" }, null, -1)
|
2695
2695
|
]), 34)),
|
@@ -2699,13 +2699,13 @@ const o0 = (e, t = null) => {
|
|
2699
2699
|
ref_key: "template",
|
2700
2700
|
ref: s,
|
2701
2701
|
onMouseover: r,
|
2702
|
-
onMouseout:
|
2702
|
+
onMouseout: A
|
2703
2703
|
}, [
|
2704
2704
|
H(tl, {
|
2705
2705
|
templates: e.templates,
|
2706
2706
|
"group-templates": e.groupTemplates,
|
2707
2707
|
"elevated-window": e.elevatedWindow,
|
2708
|
-
onCloseTemplateWindow:
|
2708
|
+
onCloseTemplateWindow: c
|
2709
2709
|
}, null, 8, ["templates", "group-templates", "elevated-window"])
|
2710
2710
|
], 544), [
|
2711
2711
|
[De, t.state === "active"]
|
@@ -2748,13 +2748,13 @@ const o0 = (e, t = null) => {
|
|
2748
2748
|
m.getRangeAt && m.rangeCount && m.getRangeAt(0).selectNodeContents(g.target);
|
2749
2749
|
}
|
2750
2750
|
};
|
2751
|
-
function
|
2751
|
+
function A() {
|
2752
2752
|
s.value = i.value.innerText.trim(), a.value != s.value && (s.value != "" ? f("edit", [s.value, a.index]) : a.isFilled ? Oe(() => {
|
2753
2753
|
s.value = a.value;
|
2754
2754
|
}) : s.value = "Заполнить");
|
2755
2755
|
}
|
2756
|
-
function
|
2757
|
-
g.target.blur(),
|
2756
|
+
function c(g) {
|
2757
|
+
g.target.blur(), A();
|
2758
2758
|
}
|
2759
2759
|
function d(g) {
|
2760
2760
|
g.target == document.getElementById("placeholder" + n + a.index) && (g.key === "Escape" && g.target.blur(), g.key == "Tab" && (g.target.blur(), document.getElementById("placeholder" + n + (a.index + 1)) && (g.preventDefault(), document.getElementById("placeholder" + n + (a.index + 1)).focus())));
|
@@ -2769,9 +2769,9 @@ const o0 = (e, t = null) => {
|
|
2769
2769
|
ref: i,
|
2770
2770
|
contenteditable: "",
|
2771
2771
|
class: x([{ filled: e.isFilled, empty: !e.isFilled }, "placeholder"]),
|
2772
|
-
onKeydown: ea(
|
2772
|
+
onKeydown: ea(c, ["enter"]),
|
2773
2773
|
onFocus: r,
|
2774
|
-
onBlur:
|
2774
|
+
onBlur: A
|
2775
2775
|
}, D(s.value), 43, al));
|
2776
2776
|
}
|
2777
2777
|
}, sl = /* @__PURE__ */ R(fl, [["__scopeId", "data-v-1c7b8fd0"]]), il = ["accept"], ol = { class: "attachment-section__info" }, ll = {
|
@@ -2791,7 +2791,7 @@ const o0 = (e, t = null) => {
|
|
2791
2791
|
},
|
2792
2792
|
emits: ["fileSelected"],
|
2793
2793
|
setup(e, { emit: t }) {
|
2794
|
-
const n = e, a = b(Z("filebumpUrl")), f = b(null), s = b(), i = b(""), r = b(""),
|
2794
|
+
const n = e, a = b(Z("filebumpUrl")), f = b(null), s = b(), i = b(""), r = b(""), A = b(), c = t, d = () => {
|
2795
2795
|
s.value && r.value != "success" && s.value.click();
|
2796
2796
|
}, g = {
|
2797
2797
|
DOCUMENT: {
|
@@ -2828,12 +2828,12 @@ const o0 = (e, t = null) => {
|
|
2828
2828
|
f.value = I, r.value = "uploading";
|
2829
2829
|
const j = k(a.value);
|
2830
2830
|
Tn(typeof j == "string" ? j : null, I).then((h) => {
|
2831
|
-
r.value = h.status, h.status == "success" && (
|
2831
|
+
r.value = h.status, h.status == "success" && (c("fileSelected", {
|
2832
2832
|
url: h.url,
|
2833
2833
|
filename: h.name,
|
2834
2834
|
filesize: h.size,
|
2835
2835
|
filetype: h.type
|
2836
|
-
}), h.preview && (
|
2836
|
+
}), h.preview && (A.value = {
|
2837
2837
|
previewUrl: h.preview.previewUrl,
|
2838
2838
|
isImage: h.preview.isImage,
|
2839
2839
|
isVideo: h.preview.isVideo,
|
@@ -2850,7 +2850,7 @@ const o0 = (e, t = null) => {
|
|
2850
2850
|
return ee(
|
2851
2851
|
() => r.value,
|
2852
2852
|
(v) => {
|
2853
|
-
v === "" && (s.value && (s.value.value = ""), f.value = null,
|
2853
|
+
v === "" && (s.value && (s.value.value = ""), f.value = null, c("fileSelected", null));
|
2854
2854
|
}
|
2855
2855
|
), ee(
|
2856
2856
|
() => n.templateId,
|
@@ -2877,9 +2877,9 @@ const o0 = (e, t = null) => {
|
|
2877
2877
|
I[0] || (I[0] = o("p", { class: "attachment-section__title" }, " Прикрепить файл ", -1)),
|
2878
2878
|
o("p", ol, D(g[e.type].text), 1)
|
2879
2879
|
])
|
2880
|
-
], 2)) : r.value === "success" &&
|
2880
|
+
], 2)) : r.value === "success" && A.value ? (l(), L(Dn, {
|
2881
2881
|
key: 1,
|
2882
|
-
"file-info":
|
2882
|
+
"file-info": A.value,
|
2883
2883
|
onReset: _
|
2884
2884
|
}, null, 8, ["file-info"])) : p("", !0),
|
2885
2885
|
i.value ? (l(), u("div", ll, D(i.value), 1)) : p("", !0)
|
@@ -2903,17 +2903,17 @@ const o0 = (e, t = null) => {
|
|
2903
2903
|
i == 2 && a.buttons.length > 3 && n("selectAllVariants");
|
2904
2904
|
};
|
2905
2905
|
return (i, r) => (l(), u("div", Al, [
|
2906
|
-
(l(!0), u(F, null, ie(e.buttons.slice(0, 3), (
|
2907
|
-
key:
|
2906
|
+
(l(!0), u(F, null, ie(e.buttons.slice(0, 3), (A, c) => (l(), u("div", {
|
2907
|
+
key: c,
|
2908
2908
|
class: "quick-reply-buttons__preview-action",
|
2909
|
-
onClick: (d) => s(
|
2909
|
+
onClick: (d) => s(c)
|
2910
2910
|
}, [
|
2911
2911
|
r[0] || (r[0] = o("hr", { class: "quick-reply-buttons__separator" }, null, -1)),
|
2912
2912
|
o("div", dl, [
|
2913
2913
|
o("span", {
|
2914
|
-
class: x(["quick-reply-buttons__icon pi pi-arrow-up-left",
|
2914
|
+
class: x(["quick-reply-buttons__icon pi pi-arrow-up-left", c == 2 && e.buttons.length > 3 ? "pi-list" : f[A.type]])
|
2915
2915
|
}, null, 2),
|
2916
|
-
o("p", null, D(
|
2916
|
+
o("p", null, D(c == 2 && e.buttons.length > 3 ? "Смотреть все варианты" : A.text), 1)
|
2917
2917
|
])
|
2918
2918
|
], 8, ul))), 128))
|
2919
2919
|
]));
|
@@ -3010,15 +3010,15 @@ const o0 = (e, t = null) => {
|
|
3010
3010
|
g.value ? (C.text = Qe.value, C.templateId = d.value.templateId, C.values = We.value, C.file = g.value) : (C.text = Qe.value, C.templateId = d.value.templateId, C.values = We.value), d.value.buttons && (C.buttons = d.value.buttons), f("sendWabaValues", C), pe();
|
3011
3011
|
}, r = (C) => {
|
3012
3012
|
g.value = C;
|
3013
|
-
},
|
3014
|
-
_.value = !_.value, _.value ? (
|
3013
|
+
}, A = b(null), c = b(null), d = b(null), g = b(null), m = b(""), _ = b(!1), v = () => {
|
3014
|
+
_.value = !_.value, _.value ? (A.value.scrollTop = 0, A.value.style["overflow-y"] = "hidden") : A.value.style["overflow-y"] = "scroll";
|
3015
3015
|
}, I = (C) => {
|
3016
3016
|
Object.keys(h).forEach((J) => {
|
3017
3017
|
h[J] = "";
|
3018
3018
|
}), g.value = null, n.wabaTemplates.forEach((J) => J.isSelected = !1), C.isSelected = !0, d.value = C, _.value = !1, ae();
|
3019
3019
|
}, y = () => {
|
3020
3020
|
te(), n.wabaTemplates.forEach((C) => C.isSelected = !1);
|
3021
|
-
}, N = $(() =>
|
3021
|
+
}, N = $(() => c.value ? n.wabaTemplates.filter((C) => C.groupId === c.value.groupId) : n.wabaTemplates), j = $(() => {
|
3022
3022
|
const C = m.value.trim().toLowerCase();
|
3023
3023
|
return N.value.filter((J) => J.title.toLowerCase().includes(C) || J.template.toLowerCase().includes(C));
|
3024
3024
|
}), h = af({}), w = b(null), M = b(), T = b(""), S = b(""), U = b(""), V = b(!1), Q = $(() => !!(V.value && (U.value == "grid" && S.value == "none" || S.value == "grid" && T.value == "none"))), G = $(() => !!(V.value && (T.value == "grid" && S.value == "none" || S.value == "grid" && U.value == "none"))), O = () => {
|
@@ -3113,7 +3113,7 @@ const o0 = (e, t = null) => {
|
|
3113
3113
|
o("ul", El, [
|
3114
3114
|
(l(!0), u(F, null, ie(e.groupTemplates, (P, le) => (l(), u("li", {
|
3115
3115
|
key: le,
|
3116
|
-
class: x(["template-selector__item-group", { "template-selector__item-selected":
|
3116
|
+
class: x(["template-selector__item-group", { "template-selector__item-selected": c.value === P }]),
|
3117
3117
|
onClick: y
|
3118
3118
|
}, [
|
3119
3119
|
o("label", jl, [
|
@@ -3125,12 +3125,12 @@ const o0 = (e, t = null) => {
|
|
3125
3125
|
}, null, 8, xl)) : p("", !0),
|
3126
3126
|
re(o("input", {
|
3127
3127
|
id: le,
|
3128
|
-
"onUpdate:modelValue": J[0] || (J[0] = (xe) =>
|
3128
|
+
"onUpdate:modelValue": J[0] || (J[0] = (xe) => c.value = xe),
|
3129
3129
|
value: P,
|
3130
3130
|
class: "template-selector__input-group",
|
3131
3131
|
type: "radio"
|
3132
3132
|
}, null, 8, Vl), [
|
3133
|
-
[nf,
|
3133
|
+
[nf, c.value]
|
3134
3134
|
]),
|
3135
3135
|
o("span", null, D(P.title), 1)
|
3136
3136
|
])
|
@@ -3166,7 +3166,7 @@ const o0 = (e, t = null) => {
|
|
3166
3166
|
o("div", $l, [
|
3167
3167
|
o("div", {
|
3168
3168
|
ref_key: "previewContainer",
|
3169
|
-
ref:
|
3169
|
+
ref: A,
|
3170
3170
|
class: "template-selector__preview-container"
|
3171
3171
|
}, [
|
3172
3172
|
fe.value.length > 0 ? (l(), u("div", Yl, [
|
@@ -3253,9 +3253,9 @@ const o0 = (e, t = null) => {
|
|
3253
3253
|
setup(e, { emit: t }) {
|
3254
3254
|
const n = e;
|
3255
3255
|
et("filebumpUrl", n.filebumpUrl);
|
3256
|
-
const a = Z("chatAppId"), { getMessage: f } = Ne(a), s = b(null), i = b(null), r = t,
|
3256
|
+
const a = Z("chatAppId"), { getMessage: f } = Ne(a), s = b(null), i = b(null), r = t, A = () => {
|
3257
3257
|
n.mode == "click" && n.state == "active" && (i.value.style.display == "none" ? i.value.style.display = "inherit" : i.value.style.display == "inherit" && (i.value.style.display = "none"));
|
3258
|
-
},
|
3258
|
+
}, c = () => {
|
3259
3259
|
n.mode == "hover" && n.state == "active" && (i.value.style.display = "inherit");
|
3260
3260
|
}, d = () => {
|
3261
3261
|
n.mode == "hover" && n.state == "active" && (i.value.style.display = "none");
|
@@ -3274,8 +3274,8 @@ const o0 = (e, t = null) => {
|
|
3274
3274
|
ref_key: "templateButton",
|
3275
3275
|
ref: s,
|
3276
3276
|
class: x(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
3277
|
-
onClick:
|
3278
|
-
onMouseover:
|
3277
|
+
onClick: A,
|
3278
|
+
onMouseover: c,
|
3279
3279
|
onMouseout: d
|
3280
3280
|
}, v[0] || (v[0] = [
|
3281
3281
|
o("span", { class: "pi pi-code" }, null, -1)
|
@@ -3283,7 +3283,7 @@ const o0 = (e, t = null) => {
|
|
3283
3283
|
o("div", {
|
3284
3284
|
ref_key: "template",
|
3285
3285
|
ref: i,
|
3286
|
-
onMouseover:
|
3286
|
+
onMouseover: c,
|
3287
3287
|
onMouseout: d
|
3288
3288
|
}, [
|
3289
3289
|
H(Gl, {
|
@@ -15395,14 +15395,14 @@ function qe(e) {
|
|
15395
15395
|
const Qn = (e) => ra.get(e);
|
15396
15396
|
function ca(e, t, { blocked: n, upgrade: a, blocking: f, terminated: s } = {}) {
|
15397
15397
|
const i = indexedDB.open(e, t), r = qe(i);
|
15398
|
-
return a && i.addEventListener("upgradeneeded", (
|
15399
|
-
a(qe(i.result),
|
15400
|
-
}), n && i.addEventListener("blocked", (
|
15401
|
-
|
15402
|
-
|
15403
|
-
|
15404
|
-
)), r.then((
|
15405
|
-
s &&
|
15398
|
+
return a && i.addEventListener("upgradeneeded", (A) => {
|
15399
|
+
a(qe(i.result), A.oldVersion, A.newVersion, qe(i.transaction), A);
|
15400
|
+
}), n && i.addEventListener("blocked", (A) => n(
|
15401
|
+
A.oldVersion,
|
15402
|
+
A.newVersion,
|
15403
|
+
A
|
15404
|
+
)), r.then((A) => {
|
15405
|
+
s && A.addEventListener("close", () => s()), f && A.addEventListener("versionchange", (c) => f(c.oldVersion, c.newVersion, c));
|
15406
15406
|
}).catch(() => {
|
15407
15407
|
}), r;
|
15408
15408
|
}
|
@@ -15416,11 +15416,11 @@ function $a(e, t) {
|
|
15416
15416
|
if (!(n in (a ? IDBIndex : IDBObjectStore).prototype) || !(f || kr.includes(n)))
|
15417
15417
|
return;
|
15418
15418
|
const s = async function(i, ...r) {
|
15419
|
-
const
|
15420
|
-
let
|
15421
|
-
return a && (
|
15422
|
-
|
15423
|
-
f &&
|
15419
|
+
const A = this.transaction(i, f ? "readwrite" : "readonly");
|
15420
|
+
let c = A.store;
|
15421
|
+
return a && (c = c.index(r.shift())), (await Promise.all([
|
15422
|
+
c[n](...r),
|
15423
|
+
f && A.done
|
15424
15424
|
]))[0];
|
15425
15425
|
};
|
15426
15426
|
return $n.set(t, s), s;
|
@@ -15504,7 +15504,7 @@ function jr() {
|
|
15504
15504
|
}
|
15505
15505
|
function a() {
|
15506
15506
|
n().then((g) => {
|
15507
|
-
e.recent = g,
|
15507
|
+
e.recent = g, c();
|
15508
15508
|
});
|
15509
15509
|
}
|
15510
15510
|
const f = (g) => {
|
@@ -15515,10 +15515,10 @@ function jr() {
|
|
15515
15515
|
e.activeGroup = g;
|
15516
15516
|
}, r = (g = _n) => {
|
15517
15517
|
e.skinTone = g;
|
15518
|
-
},
|
15518
|
+
}, A = (g) => {
|
15519
15519
|
e.options = Object.assign({}, e.options, g), t();
|
15520
15520
|
};
|
15521
|
-
async function
|
15521
|
+
async function c() {
|
15522
15522
|
(await ca(Aa, ua)).transaction(tt, "readwrite").objectStore(tt).put({
|
15523
15523
|
id: 0,
|
15524
15524
|
value: JSON.stringify(e.recent)
|
@@ -15531,7 +15531,7 @@ function jr() {
|
|
15531
15531
|
if (m > 0 && e.recent.splice(m, 1), m === 0)
|
15532
15532
|
return;
|
15533
15533
|
const _ = { u: g.u, n: ff(g.n) };
|
15534
|
-
e.recent = [_, ...e.recent], e.recent.length > 24 && (e.recent.length = 24),
|
15534
|
+
e.recent = [_, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), c();
|
15535
15535
|
};
|
15536
15536
|
return {
|
15537
15537
|
state: Ff(e),
|
@@ -15539,7 +15539,7 @@ function jr() {
|
|
15539
15539
|
updateEmoji: s,
|
15540
15540
|
updateActiveGroup: i,
|
15541
15541
|
updateSkinTone: r,
|
15542
|
-
updateOptions:
|
15542
|
+
updateOptions: A,
|
15543
15543
|
updateSelect: d
|
15544
15544
|
};
|
15545
15545
|
}
|
@@ -15599,11 +15599,11 @@ function Fr(e) {
|
|
15599
15599
|
};
|
15600
15600
|
return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
|
15601
15601
|
Object.keys(t.elements).forEach(function(a) {
|
15602
|
-
var f = t.elements[a], s = t.attributes[a] || {}, i = Object.keys(t.styles.hasOwnProperty(a) ? t.styles[a] : n[a]), r = i.reduce(function(
|
15603
|
-
return c
|
15602
|
+
var f = t.elements[a], s = t.attributes[a] || {}, i = Object.keys(t.styles.hasOwnProperty(a) ? t.styles[a] : n[a]), r = i.reduce(function(A, c) {
|
15603
|
+
return A[c] = "", A;
|
15604
15604
|
}, {});
|
15605
|
-
!Ie(f) || !ze(f) || (Object.assign(f.style, r), Object.keys(s).forEach(function(
|
15606
|
-
f.removeAttribute(
|
15605
|
+
!Ie(f) || !ze(f) || (Object.assign(f.style, r), Object.keys(s).forEach(function(A) {
|
15606
|
+
f.removeAttribute(A);
|
15607
15607
|
}));
|
15608
15608
|
});
|
15609
15609
|
};
|
@@ -15728,9 +15728,9 @@ var Kr = function(t, n) {
|
|
15728
15728
|
})) : t, Tf(typeof t != "number" ? t : Ef(t, Vt));
|
15729
15729
|
};
|
15730
15730
|
function Jr(e) {
|
15731
|
-
var t, n = e.state, a = e.name, f = e.options, s = n.elements.arrow, i = n.modifiersData.popperOffsets, r = Ce(n.placement),
|
15731
|
+
var t, n = e.state, a = e.name, f = e.options, s = n.elements.arrow, i = n.modifiersData.popperOffsets, r = Ce(n.placement), A = ma(r), c = [me, ke].indexOf(r) >= 0, d = c ? "height" : "width";
|
15732
15732
|
if (!(!s || !i)) {
|
15733
|
-
var g = Kr(f.padding, n), m = ga(s), _ =
|
15733
|
+
var g = Kr(f.padding, n), m = ga(s), _ = A === "y" ? ge : me, v = A === "y" ? we : ke, I = n.rects.reference[d] + n.rects.reference[A] - i[A] - n.rects.popper[d], y = i[A] - n.rects.reference[A], N = St(s), j = N ? A === "y" ? N.clientHeight || 0 : N.clientWidth || 0 : 0, h = I / 2 - y / 2, w = g[_], M = j - m[d] - g[v], T = j / 2 - m[d] / 2 + h, S = It(w, T, M), U = A;
|
15734
15734
|
n.modifiersData[a] = (t = {}, t[U] = S, t.centerOffset = S - T, t);
|
15735
15735
|
}
|
15736
15736
|
}
|
@@ -15764,31 +15764,31 @@ function ec(e) {
|
|
15764
15764
|
};
|
15765
15765
|
}
|
15766
15766
|
function Pa(e) {
|
15767
|
-
var t, n = e.popper, a = e.popperRect, f = e.placement, s = e.variation, i = e.offsets, r = e.position,
|
15768
|
-
if (
|
15767
|
+
var t, n = e.popper, a = e.popperRect, f = e.placement, s = e.variation, i = e.offsets, r = e.position, A = e.gpuAcceleration, c = e.adaptive, d = e.roundOffsets, g = e.isFixed, m = d === !0 ? ec(i) : typeof d == "function" ? d(i) : i, _ = m.x, v = _ === void 0 ? 0 : _, I = m.y, y = I === void 0 ? 0 : I, N = i.hasOwnProperty("x"), j = i.hasOwnProperty("y"), h = me, w = ge, M = window;
|
15768
|
+
if (c) {
|
15769
15769
|
var T = St(n), S = "clientHeight", U = "clientWidth";
|
15770
15770
|
if (T === je(n) && (T = He(n), Le(T).position !== "static" && r === "absolute" && (S = "scrollHeight", U = "scrollWidth")), T = T, f === ge || (f === me || f === ke) && s === Et) {
|
15771
15771
|
w = we;
|
15772
15772
|
var V = g && M.visualViewport ? M.visualViewport.height : T[S];
|
15773
|
-
y -= V - a.height, y *=
|
15773
|
+
y -= V - a.height, y *= A ? 1 : -1;
|
15774
15774
|
}
|
15775
15775
|
if (f === me || (f === ge || f === we) && s === Et) {
|
15776
15776
|
h = ke;
|
15777
15777
|
var Q = g && M.visualViewport ? M.visualViewport.width : T[U];
|
15778
|
-
v -= Q - a.width, v *=
|
15778
|
+
v -= Q - a.width, v *= A ? 1 : -1;
|
15779
15779
|
}
|
15780
15780
|
}
|
15781
15781
|
var G = Object.assign({
|
15782
15782
|
position: r
|
15783
|
-
},
|
15784
|
-
if (
|
15783
|
+
}, c && Xr);
|
15784
|
+
if (A) {
|
15785
15785
|
var O;
|
15786
15786
|
return Object.assign({}, G, (O = {}, O[w] = j ? "0" : "", O[h] = N ? "0" : "", O.transform = (M.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + y + "px)" : "translate3d(" + v + "px, " + y + "px, 0)", O));
|
15787
15787
|
}
|
15788
15788
|
return Object.assign({}, G, (t = {}, t[w] = j ? y + "px" : "", t[h] = N ? v + "px" : "", t.transform = "", t));
|
15789
15789
|
}
|
15790
15790
|
function tc(e) {
|
15791
|
-
var t = e.state, n = e.options, a = n.gpuAcceleration, f = a === void 0 ? !0 : a, s = n.adaptive, i = s === void 0 ? !0 : s, r = n.roundOffsets,
|
15791
|
+
var t = e.state, n = e.options, a = n.gpuAcceleration, f = a === void 0 ? !0 : a, s = n.adaptive, i = s === void 0 ? !0 : s, r = n.roundOffsets, A = r === void 0 ? !0 : r, c = {
|
15792
15792
|
placement: Ce(t.placement),
|
15793
15793
|
variation: it(t.placement),
|
15794
15794
|
popper: t.elements.popper,
|
@@ -15796,16 +15796,16 @@ function tc(e) {
|
|
15796
15796
|
gpuAcceleration: f,
|
15797
15797
|
isFixed: t.options.strategy === "fixed"
|
15798
15798
|
};
|
15799
|
-
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Pa(Object.assign({},
|
15799
|
+
t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Pa(Object.assign({}, c, {
|
15800
15800
|
offsets: t.modifiersData.popperOffsets,
|
15801
15801
|
position: t.options.strategy,
|
15802
15802
|
adaptive: i,
|
15803
|
-
roundOffsets:
|
15804
|
-
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Pa(Object.assign({},
|
15803
|
+
roundOffsets: A
|
15804
|
+
})))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Pa(Object.assign({}, c, {
|
15805
15805
|
offsets: t.modifiersData.arrow,
|
15806
15806
|
position: "absolute",
|
15807
15807
|
adaptive: !1,
|
15808
|
-
roundOffsets:
|
15808
|
+
roundOffsets: A
|
15809
15809
|
})))), t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
15810
15810
|
"data-popper-placement": t.placement
|
15811
15811
|
});
|
@@ -15820,13 +15820,13 @@ var nc = {
|
|
15820
15820
|
passive: !0
|
15821
15821
|
};
|
15822
15822
|
function ac(e) {
|
15823
|
-
var t = e.state, n = e.instance, a = e.options, f = a.scroll, s = f === void 0 ? !0 : f, i = a.resize, r = i === void 0 ? !0 : i,
|
15824
|
-
return s &&
|
15823
|
+
var t = e.state, n = e.instance, a = e.options, f = a.scroll, s = f === void 0 ? !0 : f, i = a.resize, r = i === void 0 ? !0 : i, A = je(t.elements.popper), c = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
15824
|
+
return s && c.forEach(function(d) {
|
15825
15825
|
d.addEventListener("scroll", n.update, Yt);
|
15826
|
-
}), r &&
|
15827
|
-
s &&
|
15826
|
+
}), r && A.addEventListener("resize", n.update, Yt), function() {
|
15827
|
+
s && c.forEach(function(d) {
|
15828
15828
|
d.removeEventListener("scroll", n.update, Yt);
|
15829
|
-
}), r &&
|
15829
|
+
}), r && A.removeEventListener("resize", n.update, Yt);
|
15830
15830
|
};
|
15831
15831
|
}
|
15832
15832
|
var fc = {
|
@@ -15877,12 +15877,12 @@ function oc(e) {
|
|
15877
15877
|
};
|
15878
15878
|
}
|
15879
15879
|
function lc(e) {
|
15880
|
-
var t, n = He(e), a = pa(e), f = (t = e.ownerDocument) == null ? void 0 : t.body, s = Ze(n.scrollWidth, n.clientWidth, f ? f.scrollWidth : 0, f ? f.clientWidth : 0), i = Ze(n.scrollHeight, n.clientHeight, f ? f.scrollHeight : 0, f ? f.clientHeight : 0), r = -a.scrollLeft + ha(e),
|
15880
|
+
var t, n = He(e), a = pa(e), f = (t = e.ownerDocument) == null ? void 0 : t.body, s = Ze(n.scrollWidth, n.clientWidth, f ? f.scrollWidth : 0, f ? f.clientWidth : 0), i = Ze(n.scrollHeight, n.clientHeight, f ? f.scrollHeight : 0, f ? f.clientHeight : 0), r = -a.scrollLeft + ha(e), A = -a.scrollTop;
|
15881
15881
|
return Le(f || n).direction === "rtl" && (r += Ze(n.clientWidth, f ? f.clientWidth : 0) - s), {
|
15882
15882
|
width: s,
|
15883
15883
|
height: i,
|
15884
15884
|
x: r,
|
15885
|
-
y:
|
15885
|
+
y: A
|
15886
15886
|
};
|
15887
15887
|
}
|
15888
15888
|
function ya(e) {
|
@@ -15920,62 +15920,62 @@ function cc(e) {
|
|
15920
15920
|
}) : [];
|
15921
15921
|
}
|
15922
15922
|
function Ac(e, t, n) {
|
15923
|
-
var a = t === "clippingParents" ? cc(e) : [].concat(t), f = [].concat(a, [n]), s = f[0], i = f.reduce(function(r,
|
15924
|
-
var
|
15925
|
-
return r.top = Ze(
|
15923
|
+
var a = t === "clippingParents" ? cc(e) : [].concat(t), f = [].concat(a, [n]), s = f[0], i = f.reduce(function(r, A) {
|
15924
|
+
var c = Ha(e, A);
|
15925
|
+
return r.top = Ze(c.top, r.top), r.right = In(c.right, r.right), r.bottom = In(c.bottom, r.bottom), r.left = Ze(c.left, r.left), r;
|
15926
15926
|
}, Ha(e, s));
|
15927
15927
|
return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
|
15928
15928
|
}
|
15929
15929
|
function xf(e) {
|
15930
|
-
var t = e.reference, n = e.element, a = e.placement, f = a ? Ce(a) : null, s = a ? it(a) : null, i = t.x + t.width / 2 - n.width / 2, r = t.y + t.height / 2 - n.height / 2,
|
15930
|
+
var t = e.reference, n = e.element, a = e.placement, f = a ? Ce(a) : null, s = a ? it(a) : null, i = t.x + t.width / 2 - n.width / 2, r = t.y + t.height / 2 - n.height / 2, A;
|
15931
15931
|
switch (f) {
|
15932
15932
|
case ge:
|
15933
|
-
|
15933
|
+
A = {
|
15934
15934
|
x: i,
|
15935
15935
|
y: t.y - n.height
|
15936
15936
|
};
|
15937
15937
|
break;
|
15938
15938
|
case we:
|
15939
|
-
|
15939
|
+
A = {
|
15940
15940
|
x: i,
|
15941
15941
|
y: t.y + t.height
|
15942
15942
|
};
|
15943
15943
|
break;
|
15944
15944
|
case ke:
|
15945
|
-
|
15945
|
+
A = {
|
15946
15946
|
x: t.x + t.width,
|
15947
15947
|
y: r
|
15948
15948
|
};
|
15949
15949
|
break;
|
15950
15950
|
case me:
|
15951
|
-
|
15951
|
+
A = {
|
15952
15952
|
x: t.x - n.width,
|
15953
15953
|
y: r
|
15954
15954
|
};
|
15955
15955
|
break;
|
15956
15956
|
default:
|
15957
|
-
|
15957
|
+
A = {
|
15958
15958
|
x: t.x,
|
15959
15959
|
y: t.y
|
15960
15960
|
};
|
15961
15961
|
}
|
15962
|
-
var
|
15963
|
-
if (
|
15964
|
-
var d =
|
15962
|
+
var c = f ? ma(f) : null;
|
15963
|
+
if (c != null) {
|
15964
|
+
var d = c === "y" ? "height" : "width";
|
15965
15965
|
switch (s) {
|
15966
15966
|
case nt:
|
15967
|
-
c
|
15967
|
+
A[c] = A[c] - (t[d] / 2 - n[d] / 2);
|
15968
15968
|
break;
|
15969
15969
|
case Et:
|
15970
|
-
c
|
15970
|
+
A[c] = A[c] + (t[d] / 2 - n[d] / 2);
|
15971
15971
|
break;
|
15972
15972
|
}
|
15973
15973
|
}
|
15974
|
-
return
|
15974
|
+
return A;
|
15975
15975
|
}
|
15976
15976
|
function jt(e, t) {
|
15977
15977
|
t === void 0 && (t = {});
|
15978
|
-
var n = t, a = n.placement, f = a === void 0 ? e.placement : a, s = n.boundary, i = s === void 0 ? xr : s, r = n.rootBoundary,
|
15978
|
+
var n = t, a = n.placement, f = a === void 0 ? e.placement : a, s = n.boundary, i = s === void 0 ? xr : s, r = n.rootBoundary, A = r === void 0 ? If : r, c = n.elementContext, d = c === void 0 ? gt : c, g = n.altBoundary, m = g === void 0 ? !1 : g, _ = n.padding, v = _ === void 0 ? 0 : _, I = Tf(typeof v != "number" ? v : Ef(v, Vt)), y = d === gt ? Vr : gt, N = e.rects.popper, j = e.elements[m ? y : d], h = Ac(at(j) ? j : j.contextElement || He(e.elements.popper), i, A), w = st(e.elements.reference), M = xf({
|
15979
15979
|
reference: w,
|
15980
15980
|
element: N,
|
15981
15981
|
placement: f
|
@@ -15996,10 +15996,10 @@ function jt(e, t) {
|
|
15996
15996
|
}
|
15997
15997
|
function uc(e, t) {
|
15998
15998
|
t === void 0 && (t = {});
|
15999
|
-
var n = t, a = n.placement, f = n.boundary, s = n.rootBoundary, i = n.padding, r = n.flipVariations,
|
15999
|
+
var n = t, a = n.placement, f = n.boundary, s = n.rootBoundary, i = n.padding, r = n.flipVariations, A = n.allowedAutoPlacements, c = A === void 0 ? wf : A, d = it(a), g = d ? r ? Ya : Ya.filter(function(v) {
|
16000
16000
|
return it(v) === d;
|
16001
16001
|
}) : Vt, m = g.filter(function(v) {
|
16002
|
-
return
|
16002
|
+
return c.indexOf(v) >= 0;
|
16003
16003
|
});
|
16004
16004
|
m.length === 0 && (m = g);
|
16005
16005
|
var _ = m.reduce(function(v, I) {
|
@@ -16023,12 +16023,12 @@ function dc(e) {
|
|
16023
16023
|
function gc(e) {
|
16024
16024
|
var t = e.state, n = e.options, a = e.name;
|
16025
16025
|
if (!t.modifiersData[a]._skip) {
|
16026
|
-
for (var f = n.mainAxis, s = f === void 0 ? !0 : f, i = n.altAxis, r = i === void 0 ? !0 : i,
|
16026
|
+
for (var f = n.mainAxis, s = f === void 0 ? !0 : f, i = n.altAxis, r = i === void 0 ? !0 : i, A = n.fallbackPlacements, c = n.padding, d = n.boundary, g = n.rootBoundary, m = n.altBoundary, _ = n.flipVariations, v = _ === void 0 ? !0 : _, I = n.allowedAutoPlacements, y = t.options.placement, N = Ce(y), j = N === y, h = A || (j || !v ? [qt(y)] : dc(y)), w = [y].concat(h).reduce(function($e, C) {
|
16027
16027
|
return $e.concat(Ce(C) === da ? uc(t, {
|
16028
16028
|
placement: C,
|
16029
16029
|
boundary: d,
|
16030
16030
|
rootBoundary: g,
|
16031
|
-
padding:
|
16031
|
+
padding: c,
|
16032
16032
|
flipVariations: v,
|
16033
16033
|
allowedAutoPlacements: I
|
16034
16034
|
}) : C);
|
@@ -16038,7 +16038,7 @@ function gc(e) {
|
|
16038
16038
|
boundary: d,
|
16039
16039
|
rootBoundary: g,
|
16040
16040
|
altBoundary: m,
|
16041
|
-
padding:
|
16041
|
+
padding: c
|
16042
16042
|
}), B = X ? z ? ke : me : z ? we : ge;
|
16043
16043
|
M[ae] > T[ae] && (B = qt(B));
|
16044
16044
|
var K = qt(B), fe = [];
|
@@ -16100,10 +16100,10 @@ function pc(e) {
|
|
16100
16100
|
elementContext: "reference"
|
16101
16101
|
}), r = jt(t, {
|
16102
16102
|
altBoundary: !0
|
16103
|
-
}),
|
16103
|
+
}), A = Wa(i, a), c = Wa(r, f, s), d = Ka(A), g = Ka(c);
|
16104
16104
|
t.modifiersData[n] = {
|
16105
|
-
referenceClippingOffsets:
|
16106
|
-
popperEscapeOffsets:
|
16105
|
+
referenceClippingOffsets: A,
|
16106
|
+
popperEscapeOffsets: c,
|
16107
16107
|
isReferenceHidden: d,
|
16108
16108
|
hasPopperEscaped: g
|
16109
16109
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
@@ -16133,8 +16133,8 @@ function yc(e, t, n) {
|
|
16133
16133
|
function vc(e) {
|
16134
16134
|
var t = e.state, n = e.options, a = e.name, f = n.offset, s = f === void 0 ? [0, 0] : f, i = wf.reduce(function(d, g) {
|
16135
16135
|
return d[g] = yc(g, t.rects, s), d;
|
16136
|
-
}, {}), r = i[t.placement],
|
16137
|
-
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x +=
|
16136
|
+
}, {}), r = i[t.placement], A = r.x, c = r.y;
|
16137
|
+
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += A, t.modifiersData.popperOffsets.y += c), t.modifiersData[a] = i;
|
16138
16138
|
}
|
16139
16139
|
var bc = {
|
16140
16140
|
name: "offset",
|
@@ -16162,9 +16162,9 @@ function Ic(e) {
|
|
16162
16162
|
return e === "x" ? "y" : "x";
|
16163
16163
|
}
|
16164
16164
|
function wc(e) {
|
16165
|
-
var t = e.state, n = e.options, a = e.name, f = n.mainAxis, s = f === void 0 ? !0 : f, i = n.altAxis, r = i === void 0 ? !1 : i,
|
16166
|
-
boundary:
|
16167
|
-
rootBoundary:
|
16165
|
+
var t = e.state, n = e.options, a = e.name, f = n.mainAxis, s = f === void 0 ? !0 : f, i = n.altAxis, r = i === void 0 ? !1 : i, A = n.boundary, c = n.rootBoundary, d = n.altBoundary, g = n.padding, m = n.tether, _ = m === void 0 ? !0 : m, v = n.tetherOffset, I = v === void 0 ? 0 : v, y = jt(t, {
|
16166
|
+
boundary: A,
|
16167
|
+
rootBoundary: c,
|
16168
16168
|
padding: g,
|
16169
16169
|
altBoundary: d
|
16170
16170
|
}), N = Ce(t.placement), j = it(t.placement), h = !j, w = ma(N), M = Ic(w), T = t.modifiersData.popperOffsets, S = t.rects.reference, U = t.rects.popper, V = typeof I == "function" ? I(Object.assign({}, t.rects, {
|
@@ -16219,13 +16219,13 @@ function Ec(e, t, n) {
|
|
16219
16219
|
var a = Ie(t), f = Ie(t) && Tc(t), s = He(t), i = st(e, f), r = {
|
16220
16220
|
scrollLeft: 0,
|
16221
16221
|
scrollTop: 0
|
16222
|
-
},
|
16222
|
+
}, A = {
|
16223
16223
|
x: 0,
|
16224
16224
|
y: 0
|
16225
16225
|
};
|
16226
|
-
return (a || !a && !n) && ((ze(t) !== "body" || ya(s)) && (r = Dc(t)), Ie(t) ? (
|
16227
|
-
x: i.left + r.scrollLeft -
|
16228
|
-
y: i.top + r.scrollTop -
|
16226
|
+
return (a || !a && !n) && ((ze(t) !== "body" || ya(s)) && (r = Dc(t)), Ie(t) ? (A = st(t, !0), A.x += t.clientLeft, A.y += t.clientTop) : s && (A.x = ha(s))), {
|
16227
|
+
x: i.left + r.scrollLeft - A.x,
|
16228
|
+
y: i.top + r.scrollTop - A.y,
|
16229
16229
|
width: i.width,
|
16230
16230
|
height: i.height
|
16231
16231
|
};
|
@@ -16240,8 +16240,8 @@ function jc(e) {
|
|
16240
16240
|
var i = [].concat(s.requires || [], s.requiresIfExists || []);
|
16241
16241
|
i.forEach(function(r) {
|
16242
16242
|
if (!n.has(r)) {
|
16243
|
-
var
|
16244
|
-
|
16243
|
+
var A = t.get(r);
|
16244
|
+
A && f(A);
|
16245
16245
|
}
|
16246
16246
|
}), a.push(s);
|
16247
16247
|
}
|
@@ -16294,8 +16294,8 @@ function Ga() {
|
|
16294
16294
|
function Cc(e) {
|
16295
16295
|
e === void 0 && (e = {});
|
16296
16296
|
var t = e, n = t.defaultModifiers, a = n === void 0 ? [] : n, f = t.defaultOptions, s = f === void 0 ? Ja : f;
|
16297
|
-
return function(r,
|
16298
|
-
|
16297
|
+
return function(r, A, c) {
|
16298
|
+
c === void 0 && (c = s);
|
16299
16299
|
var d = {
|
16300
16300
|
placement: "bottom",
|
16301
16301
|
orderedModifiers: [],
|
@@ -16303,7 +16303,7 @@ function Cc(e) {
|
|
16303
16303
|
modifiersData: {},
|
16304
16304
|
elements: {
|
16305
16305
|
reference: r,
|
16306
|
-
popper:
|
16306
|
+
popper: A
|
16307
16307
|
},
|
16308
16308
|
attributes: {},
|
16309
16309
|
styles: {}
|
@@ -16313,7 +16313,7 @@ function Cc(e) {
|
|
16313
16313
|
var j = typeof N == "function" ? N(d.options) : N;
|
16314
16314
|
I(), d.options = Object.assign({}, s, d.options, j), d.scrollParents = {
|
16315
16315
|
reference: at(r) ? wt(r) : r.contextElement ? wt(r.contextElement) : [],
|
16316
|
-
popper: wt(
|
16316
|
+
popper: wt(A)
|
16317
16317
|
};
|
16318
16318
|
var h = xc(Sc([].concat(a, d.options.modifiers)));
|
16319
16319
|
return d.orderedModifiers = h.filter(function(w) {
|
@@ -16355,10 +16355,10 @@ function Cc(e) {
|
|
16355
16355
|
I(), m = !0;
|
16356
16356
|
}
|
16357
16357
|
};
|
16358
|
-
if (!Ga(r,
|
16358
|
+
if (!Ga(r, A))
|
16359
16359
|
return _;
|
16360
|
-
_.setOptions(
|
16361
|
-
!m &&
|
16360
|
+
_.setOptions(c).then(function(y) {
|
16361
|
+
!m && c.onFirstUpdate && c.onFirstUpdate(y);
|
16362
16362
|
});
|
16363
16363
|
function v() {
|
16364
16364
|
d.orderedModifiers.forEach(function(y) {
|
@@ -16396,18 +16396,18 @@ function Lc(e, t, n, a = []) {
|
|
16396
16396
|
return;
|
16397
16397
|
const i = [];
|
16398
16398
|
e[s].forEach((r) => {
|
16399
|
-
var
|
16399
|
+
var A;
|
16400
16400
|
if (r[En][0].includes(t.toLocaleLowerCase())) {
|
16401
|
-
let
|
16401
|
+
let c = r[bf];
|
16402
16402
|
if (n !== _n && Array.isArray(r[$t])) {
|
16403
|
-
const d = ((
|
16403
|
+
const d = ((A = r[$t]) == null ? void 0 : A.findIndex(
|
16404
16404
|
(g) => g.includes(n)
|
16405
16405
|
)) || -1;
|
16406
|
-
d !== -1 && r[$t] && (
|
16406
|
+
d !== -1 && r[$t] && (c = r[$t][d]);
|
16407
16407
|
}
|
16408
16408
|
return i.push({
|
16409
16409
|
...r,
|
16410
|
-
[Tt]:
|
16410
|
+
[Tt]: c
|
16411
16411
|
});
|
16412
16412
|
}
|
16413
16413
|
}), i.length && (f[s] = i);
|
@@ -16440,9 +16440,9 @@ const Uc = Y({
|
|
16440
16440
|
e.search,
|
16441
16441
|
e.skinTone,
|
16442
16442
|
e.options.disabledGroups
|
16443
|
-
)), s = $f(), i = $(() => !e.options.hideGroupNames), r = $(() => !e.options.disableStickyGroupNames),
|
16443
|
+
)), s = $f(), i = $(() => !e.options.hideGroupNames), r = $(() => !e.options.disableStickyGroupNames), A = ff(e.options.groupNames), c = e.orderedGroupKeys;
|
16444
16444
|
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((v) => {
|
16445
|
-
e.options.groupNames[v] ?
|
16445
|
+
e.options.groupNames[v] ? A[v] = e.options.groupNames[v] : A[v] = Cf(v);
|
16446
16446
|
});
|
16447
16447
|
const d = Sf() ? "is-mac" : "";
|
16448
16448
|
function g(v) {
|
@@ -16482,8 +16482,8 @@ const Uc = Y({
|
|
16482
16482
|
hasGroupNames: i,
|
16483
16483
|
isSticky: r,
|
16484
16484
|
platform: d,
|
16485
|
-
groupNames:
|
16486
|
-
orderedKeys:
|
16485
|
+
groupNames: A,
|
16486
|
+
orderedKeys: c
|
16487
16487
|
};
|
16488
16488
|
}
|
16489
16489
|
}), Bc = { class: "v3-body" }, Rc = ["id"], Qc = { class: "v3-emojis" }, $c = ["onMouseenter", "onClick"], Yc = { key: 0 }, Fc = ["src", "alt", "onError"], Pc = {
|
@@ -16511,14 +16511,14 @@ function qc(e, t, n, a, f, s) {
|
|
16511
16511
|
(l(!0), u(F, null, ie(e.emojis[i], (r) => (l(), u("button", {
|
16512
16512
|
key: r.r,
|
16513
16513
|
type: "button",
|
16514
|
-
onMouseenter: (
|
16515
|
-
onClick: (
|
16514
|
+
onMouseenter: (A) => e.handleMouseEnter(r),
|
16515
|
+
onClick: (A) => e.handleClick(r)
|
16516
16516
|
}, [
|
16517
16517
|
e.native ? (l(), u("span", Yc, D(e.unicodeToEmoji(r.r)), 1)) : (l(), u("img", {
|
16518
16518
|
key: 1,
|
16519
16519
|
src: e.EMOJI_REMOTE_SRC + `/${r.r}.png`,
|
16520
16520
|
alt: r.n[0],
|
16521
|
-
onError: (
|
16521
|
+
onError: (A) => e.handleError(A, r.r)
|
16522
16522
|
}, null, 40, Fc))
|
16523
16523
|
], 40, $c))), 128))
|
16524
16524
|
], 512), [
|
@@ -16534,10 +16534,10 @@ const nA = Y({
|
|
16534
16534
|
setup(e) {
|
16535
16535
|
const { state: t, updateSearch: n, updateActiveGroup: a } = Z("store"), f = $(() => !t.options.hideSearch), s = $(() => !t.options.hideGroupIcons), i = JSON.parse(JSON.stringify(t.orderedGroupKeys)), r = $(
|
16536
16536
|
() => t.options.staticTexts.placeholder || ""
|
16537
|
-
),
|
16537
|
+
), A = $({
|
16538
16538
|
get: () => t.search,
|
16539
16539
|
set: (g) => n(g)
|
16540
|
-
}),
|
16540
|
+
}), c = [
|
16541
16541
|
...t.groups,
|
16542
16542
|
...Object.keys(t.options.additionalGroups).map((g) => ({
|
16543
16543
|
key: g,
|
@@ -16545,12 +16545,12 @@ const nA = Y({
|
|
16545
16545
|
}))
|
16546
16546
|
], d = [];
|
16547
16547
|
return i.forEach((g) => {
|
16548
|
-
const m =
|
16549
|
-
m !== -1 && (d.push(
|
16548
|
+
const m = c.findIndex((_) => _.key === g);
|
16549
|
+
m !== -1 && (d.push(c[m]), c.splice(m, 1));
|
16550
16550
|
}), {
|
16551
16551
|
orderedGroups: d,
|
16552
16552
|
orderedKeys: i,
|
16553
|
-
searchValue:
|
16553
|
+
searchValue: A,
|
16554
16554
|
updateActiveGroup: a,
|
16555
16555
|
hasSearch: f,
|
16556
16556
|
hasGroupIcons: s,
|
@@ -16622,18 +16622,18 @@ const dA = Y({
|
|
16622
16622
|
setup() {
|
16623
16623
|
const { state: e, updateSkinTone: t } = Z("store"), n = b(!1), a = b(!1), f = $(() => e.skinTone), s = $(
|
16624
16624
|
() => e.options.staticTexts.skinTone || "Skin tone"
|
16625
|
-
), i = $(() => !e.options.disableSkinTones), r = Sf() ? "is-mac" : "",
|
16625
|
+
), i = $(() => !e.options.disableSkinTones), r = Sf() ? "is-mac" : "", A = $(() => ({
|
16626
16626
|
...e.emoji,
|
16627
16627
|
src: yf + "/" + e.emoji[Tt] + ".png"
|
16628
16628
|
}));
|
16629
|
-
function
|
16629
|
+
function c(m = !0) {
|
16630
16630
|
n.value = m;
|
16631
16631
|
}
|
16632
16632
|
function d() {
|
16633
16633
|
n.value = !n.value;
|
16634
16634
|
}
|
16635
16635
|
function g(m) {
|
16636
|
-
t(m),
|
16636
|
+
t(m), c(!1);
|
16637
16637
|
}
|
16638
16638
|
return ee(
|
16639
16639
|
() => e.emoji,
|
@@ -16641,9 +16641,9 @@ const dA = Y({
|
|
16641
16641
|
a.value = !1;
|
16642
16642
|
}
|
16643
16643
|
), {
|
16644
|
-
emoji:
|
16644
|
+
emoji: A,
|
16645
16645
|
SKIN_TONES: sr,
|
16646
|
-
updateSkinToneState:
|
16646
|
+
updateSkinToneState: c,
|
16647
16647
|
skinTone: n,
|
16648
16648
|
stateSkinTone: f,
|
16649
16649
|
selectSkinTone: g,
|
@@ -16741,18 +16741,18 @@ const _A = Y({
|
|
16741
16741
|
},
|
16742
16742
|
setup(e, { emit: t }) {
|
16743
16743
|
const n = b(), a = b(), f = b(), s = b(!1), i = b(e.text), r = e.type === "input" || e.type === "textarea";
|
16744
|
-
let
|
16745
|
-
const { state:
|
16744
|
+
let A = -1;
|
16745
|
+
const { state: c } = Z("store"), d = $(() => c.options.colorTheme);
|
16746
16746
|
function g(y) {
|
16747
16747
|
if (r) {
|
16748
|
-
const N =
|
16749
|
-
N === "prepend" ? i.value = y.i + i.value : N === "insert" &&
|
16748
|
+
const N = c.options.mode;
|
16749
|
+
N === "prepend" ? i.value = y.i + i.value : N === "insert" && A !== -1 ? (i.value = `${i.value.slice(0, A)}${y.i}${i.value.slice(A)}`, A += y.i.length) : i.value += y.i, t("update:text", i.value);
|
16750
16750
|
}
|
16751
16751
|
t("select", y);
|
16752
16752
|
}
|
16753
16753
|
function m() {
|
16754
16754
|
var y;
|
16755
|
-
n.value && (
|
16755
|
+
n.value && (A = ((y = n.value) == null ? void 0 : y.selectionEnd) || -1);
|
16756
16756
|
}
|
16757
16757
|
function _(y) {
|
16758
16758
|
var N;
|
@@ -16762,7 +16762,7 @@ const _A = Y({
|
|
16762
16762
|
}
|
16763
16763
|
function v() {
|
16764
16764
|
if (a.value && f.value && r) {
|
16765
|
-
let y =
|
16765
|
+
let y = c.options.offset;
|
16766
16766
|
typeof y != "number" && (y = 6), zc(a.value, f.value, {
|
16767
16767
|
placement: "bottom-end",
|
16768
16768
|
modifiers: [
|
@@ -16802,7 +16802,7 @@ const _A = Y({
|
|
16802
16802
|
class: "v3-input-emoji-picker"
|
16803
16803
|
}, wA = { class: "v3-input-picker-root" }, kA = ["value"], NA = ["value"], DA = ["src"];
|
16804
16804
|
function TA(e, t, n, a, f, s) {
|
16805
|
-
const i = Ft("Header"), r = Ft("Body"),
|
16805
|
+
const i = Ft("Header"), r = Ft("Body"), A = Ft("Footer");
|
16806
16806
|
return e.isInputType ? (l(), u("div", IA, [
|
16807
16807
|
o("div", wA, [
|
16808
16808
|
e.type === "input" ? (l(), u("input", {
|
@@ -16811,15 +16811,15 @@ function TA(e, t, n, a, f, s) {
|
|
16811
16811
|
value: e.input,
|
16812
16812
|
type: "text",
|
16813
16813
|
class: "v3-emoji-picker-input",
|
16814
|
-
onInput: t[0] || (t[0] = (...
|
16815
|
-
onBlur: t[1] || (t[1] = (...
|
16814
|
+
onInput: t[0] || (t[0] = (...c) => e.onChangeText && e.onChangeText(...c)),
|
16815
|
+
onBlur: t[1] || (t[1] = (...c) => e.updateCursor && e.updateCursor(...c))
|
16816
16816
|
}, null, 40, kA)) : (l(), u("textarea", {
|
16817
16817
|
key: 1,
|
16818
16818
|
ref: "elem",
|
16819
16819
|
value: e.input,
|
16820
16820
|
class: "v3-emoji-picker-textarea",
|
16821
|
-
onInput: t[2] || (t[2] = (...
|
16822
|
-
onBlur: t[3] || (t[3] = (...
|
16821
|
+
onInput: t[2] || (t[2] = (...c) => e.onChangeText && e.onChangeText(...c)),
|
16822
|
+
onBlur: t[3] || (t[3] = (...c) => e.updateCursor && e.updateCursor(...c))
|
16823
16823
|
}, null, 40, NA)),
|
16824
16824
|
o("div", {
|
16825
16825
|
class: x(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
@@ -16828,7 +16828,7 @@ function TA(e, t, n, a, f, s) {
|
|
16828
16828
|
ref: "button",
|
16829
16829
|
type: "button",
|
16830
16830
|
class: "v3-input-picker-icon",
|
16831
|
-
onClick: t[4] || (t[4] = (
|
16831
|
+
onClick: t[4] || (t[4] = (c) => e.open = !e.open)
|
16832
16832
|
}, [
|
16833
16833
|
o("img", {
|
16834
16834
|
src: e.face,
|
@@ -16841,7 +16841,7 @@ function TA(e, t, n, a, f, s) {
|
|
16841
16841
|
}, [
|
16842
16842
|
H(i),
|
16843
16843
|
H(r, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
16844
|
-
H(
|
16844
|
+
H(A)
|
16845
16845
|
], 2)
|
16846
16846
|
], 2)
|
16847
16847
|
])
|
@@ -16851,7 +16851,7 @@ function TA(e, t, n, a, f, s) {
|
|
16851
16851
|
}, [
|
16852
16852
|
H(i),
|
16853
16853
|
H(r, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
16854
|
-
H(
|
16854
|
+
H(A)
|
16855
16855
|
], 2));
|
16856
16856
|
}
|
16857
16857
|
var EA = /* @__PURE__ */ Ct(_A, [["render", TA]]);
|
@@ -16992,12 +16992,12 @@ const SA = {
|
|
16992
16992
|
}
|
16993
16993
|
},
|
16994
16994
|
setup(e) {
|
16995
|
-
const t = e, n = b(null), a = b("light"), f = b(null), s = Z("chatAppId"), { setMessageText: i, getMessage: r } = Ne(s),
|
16995
|
+
const t = e, n = b(null), a = b("light"), f = b(null), s = Z("chatAppId"), { setMessageText: i, getMessage: r } = Ne(s), A = () => document.getElementById(s).attributes["data-theme"].nodeValue.indexOf("dark") != -1 ? "dark" : "light", c = (v) => {
|
16996
16996
|
i(r().text + v.i);
|
16997
16997
|
}, d = () => {
|
16998
|
-
t.mode == "click" && t.state == "active" && (n.value.style.display = "inherit", a.value =
|
16998
|
+
t.mode == "click" && t.state == "active" && (n.value.style.display = "inherit", a.value = A());
|
16999
16999
|
}, g = () => {
|
17000
|
-
t.mode == "hover" && t.state == "active" && (n.value.style.display = "inherit", a.value =
|
17000
|
+
t.mode == "hover" && t.state == "active" && (n.value.style.display = "inherit", a.value = A());
|
17001
17001
|
}, m = () => {
|
17002
17002
|
t.mode == "hover" && t.state == "active" && (n.value.style.display = "none");
|
17003
17003
|
}, _ = (v) => {
|
@@ -17032,7 +17032,7 @@ const SA = {
|
|
17032
17032
|
native: !0,
|
17033
17033
|
theme: a.value,
|
17034
17034
|
"picker-type": "",
|
17035
|
-
onSelect:
|
17035
|
+
onSelect: c
|
17036
17036
|
}, null, 8, ["theme"])
|
17037
17037
|
], 544), [
|
17038
17038
|
[De, t.state === "active"]
|
@@ -17061,10 +17061,10 @@ const SA = {
|
|
17061
17061
|
};
|
17062
17062
|
return (s, i) => (l(), u("div", CA, [
|
17063
17063
|
o("ul", OA, [
|
17064
|
-
(l(!0), u(F, null, ie(n.actions, (r,
|
17065
|
-
key:
|
17064
|
+
(l(!0), u(F, null, ie(n.actions, (r, A) => (l(), u("li", {
|
17065
|
+
key: A,
|
17066
17066
|
class: "context-menu__item",
|
17067
|
-
onClick: (
|
17067
|
+
onClick: (c) => f(A)
|
17068
17068
|
}, [
|
17069
17069
|
r.icon ? (l(), u("img", {
|
17070
17070
|
key: 0,
|
@@ -17111,14 +17111,14 @@ const YA = { class: "feed-search__container" }, FA = { style: { "line-height": "
|
|
17111
17111
|
},
|
17112
17112
|
emits: ["search", "cancel", "switch"],
|
17113
17113
|
setup(e, { emit: t }) {
|
17114
|
-
const n = Z("chatAppId"), { getModel: a } = QA(n), f = t, s = e, i = b(), r = $A("", 500),
|
17114
|
+
const n = Z("chatAppId"), { getModel: a } = QA(n), f = t, s = e, i = b(), r = $A("", 500), A = $(() => s.isFeedLocation ? "40px" : (s.isFeedLocation, "20px"));
|
17115
17115
|
ee(
|
17116
17116
|
() => [a().text, r.value],
|
17117
17117
|
() => {
|
17118
17118
|
r.value == a().text ? f("search", a().text) : r.value = a().text;
|
17119
17119
|
}
|
17120
17120
|
);
|
17121
|
-
const
|
17121
|
+
const c = () => {
|
17122
17122
|
const d = k(i);
|
17123
17123
|
d && (d.value = ""), a().text = "", f("cancel");
|
17124
17124
|
};
|
@@ -17141,8 +17141,8 @@ const YA = { class: "feed-search__container" }, FA = { style: { "line-height": "
|
|
17141
17141
|
]),
|
17142
17142
|
o("i", {
|
17143
17143
|
class: "pi pi-times",
|
17144
|
-
style: ce({ right:
|
17145
|
-
onClick:
|
17144
|
+
style: ce({ right: A.value }),
|
17145
|
+
onClick: c
|
17146
17146
|
}, null, 4),
|
17147
17147
|
e.isFeedLocation ? (l(), u("span", {
|
17148
17148
|
key: 0,
|
@@ -17236,20 +17236,20 @@ const YA = { class: "feed-search__container" }, FA = { style: { "line-height": "
|
|
17236
17236
|
},
|
17237
17237
|
emits: ["clickedSearch", "loadMore"],
|
17238
17238
|
setup(e, { emit: t }) {
|
17239
|
-
const n = t, a = e, f = b(), s = b(null), i = $(() => a.notFound ? _e("component.FeedFoundObjects.notFound") : a.notFound ? "" : _e("component.FeedFoundObjects.notSearched")), r = (
|
17240
|
-
|
17241
|
-
},
|
17242
|
-
const
|
17243
|
-
|
17239
|
+
const n = t, a = e, f = b(), s = b(null), i = $(() => a.notFound ? _e("component.FeedFoundObjects.notFound") : a.notFound ? "" : _e("component.FeedFoundObjects.notSearched")), r = (c) => {
|
17240
|
+
c.messageId && (n("clickedSearch", c.messageId), s.value = c);
|
17241
|
+
}, A = () => {
|
17242
|
+
const c = k(f);
|
17243
|
+
c.scrollHeight - c.scrollTop - c.clientHeight <= 0 && n("loadMore");
|
17244
17244
|
};
|
17245
|
-
return (
|
17245
|
+
return (c, d) => (l(), u(F, null, [
|
17246
17246
|
o("h3", fu, D(k(_e)("component.FeedFoundObjects.results")) + ": " + D(e.foundAmount), 1),
|
17247
17247
|
e.foundAmount > 0 ? (l(), u("div", {
|
17248
17248
|
key: 0,
|
17249
17249
|
ref_key: "refItems",
|
17250
17250
|
ref: f,
|
17251
17251
|
class: "feed-found-objects__items",
|
17252
|
-
onScroll:
|
17252
|
+
onScroll: A
|
17253
17253
|
}, [
|
17254
17254
|
(l(!0), u(F, null, ie(e.objects, (g) => (l(), u("div", {
|
17255
17255
|
key: g.messageId,
|
@@ -17281,14 +17281,14 @@ const YA = { class: "feed-search__container" }, FA = { style: { "line-height": "
|
|
17281
17281
|
}
|
17282
17282
|
},
|
17283
17283
|
setup(e) {
|
17284
|
-
const t = Z("chatAppId"), { getMessage: n, setMessageFile: a, resetMessageFile: f, setRecordingMessage: s } = Ne(t), i = b(), r = b(0),
|
17285
|
-
let U = d.value < 10 ? "0" + d.value : d.value, V =
|
17284
|
+
const t = Z("chatAppId"), { getMessage: n, setMessageFile: a, resetMessageFile: f, setRecordingMessage: s } = Ne(t), i = b(), r = b(0), A = b(0), c = b(0), d = b(0), g = $(() => {
|
17285
|
+
let U = d.value < 10 ? "0" + d.value : d.value, V = c.value < 10 ? "0" + c.value : c.value, Q = A.value < 10 ? "0" + A.value : A.value, G = r.value < 10 ? "00" + r.value : r.value < 100 ? "0" + r.value : r.value;
|
17286
17286
|
return U + ":" + V + ":" + Q + ":" + G;
|
17287
17287
|
}), m = b(""), _ = b(!1), v = b(), I = b([]), y = b(), N = b(), j = e, h = async () => {
|
17288
17288
|
if (!n().file && j.state == "active") {
|
17289
17289
|
const U = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
|
17290
17290
|
i.value = setInterval(() => {
|
17291
|
-
r.value += 10, r.value == 1e3 && (r.value = 0,
|
17291
|
+
r.value += 10, r.value == 1e3 && (r.value = 0, A.value++, A.value == 60 && (A.value = 0, c.value++, c.value == 60 && (c.value = 0, d.value++)));
|
17292
17292
|
}, 10), s(!0), _.value = !0, v.value = new MediaRecorder(U), v.value.start(), v.value.ondataavailable = (V) => {
|
17293
17293
|
I.value.push(V.data);
|
17294
17294
|
};
|
@@ -17318,7 +17318,7 @@ const YA = { class: "feed-search__container" }, FA = { style: { "line-height": "
|
|
17318
17318
|
});
|
17319
17319
|
}), T();
|
17320
17320
|
}, T = () => {
|
17321
|
-
clearInterval(i.value), r.value = 0,
|
17321
|
+
clearInterval(i.value), r.value = 0, A.value = 0, c.value = 0, d.value = 0, s(!1), _.value = !1, v.value = void 0, I.value = [];
|
17322
17322
|
}, S = () => {
|
17323
17323
|
const U = document.getElementById("chat-input-file-line-" + t);
|
17324
17324
|
U && (U.style.display = "none"), f(), N.value = void 0;
|
@@ -17374,9 +17374,9 @@ function Ot({ component: e, attrs: t, Modal: n, modalAttrs: a }) {
|
|
17374
17374
|
document.body.appendChild(s);
|
17375
17375
|
const i = b({}), r = () => {
|
17376
17376
|
g.unmount(), document.body.removeChild(s);
|
17377
|
-
},
|
17377
|
+
}, A = () => {
|
17378
17378
|
r(), f(i.value);
|
17379
|
-
},
|
17379
|
+
}, c = (m) => {
|
17380
17380
|
Object.keys(m).forEach((_) => {
|
17381
17381
|
i.value[_] = m[_];
|
17382
17382
|
});
|
@@ -17387,15 +17387,15 @@ function Ot({ component: e, attrs: t, Modal: n, modalAttrs: a }) {
|
|
17387
17387
|
{
|
17388
17388
|
...a,
|
17389
17389
|
onClose: r,
|
17390
|
-
onSubmit:
|
17390
|
+
onSubmit: A
|
17391
17391
|
},
|
17392
17392
|
{
|
17393
17393
|
default: () => ja(
|
17394
17394
|
Pf(() => e),
|
17395
17395
|
{
|
17396
17396
|
...t,
|
17397
|
-
onChange:
|
17398
|
-
onSubmit:
|
17397
|
+
onChange: c,
|
17398
|
+
onSubmit: A,
|
17399
17399
|
onClose: r
|
17400
17400
|
}
|
17401
17401
|
)
|
@@ -17464,7 +17464,7 @@ const du = ["data-theme"], gu = {
|
|
17464
17464
|
}, va = /* @__PURE__ */ R(hu, [["__scopeId", "data-v-bfa49925"]]), p0 = async (e, t, n) => {
|
17465
17465
|
const a = await Ot({
|
17466
17466
|
//в component должен быть встроен emit change(key: value)
|
17467
|
-
component: import("./SelectUser2-
|
17467
|
+
component: import("./SelectUser2-DYJ0yEGm.js"),
|
17468
17468
|
attrs: {
|
17469
17469
|
title: e,
|
17470
17470
|
users: t
|
@@ -17536,7 +17536,7 @@ const du = ["data-theme"], gu = {
|
|
17536
17536
|
}
|
17537
17537
|
}, Of = /* @__PURE__ */ R(bu, [["__scopeId", "data-v-2d8b60f8"]]), v0 = async (e, t, n, a, f, s) => await Ot({
|
17538
17538
|
//в component должен быть встроен emit change(key: value)
|
17539
|
-
component: import("./CreateDialog-
|
17539
|
+
component: import("./CreateDialog-DsVGYOi0.js"),
|
17540
17540
|
attrs: {
|
17541
17541
|
title: e,
|
17542
17542
|
name: t,
|
@@ -17550,7 +17550,7 @@ const du = ["data-theme"], gu = {
|
|
17550
17550
|
}
|
17551
17551
|
}), Mu = async (e) => await Ot({
|
17552
17552
|
//в component должен быть встроен emit change(key: value)
|
17553
|
-
component: import("./ModalVideoRecorder-
|
17553
|
+
component: import("./ModalVideoRecorder-acwLeo-_.js"),
|
17554
17554
|
attrs: {},
|
17555
17555
|
Modal: Of,
|
17556
17556
|
modalAttrs: {
|
@@ -17575,11 +17575,11 @@ const du = ["data-theme"], gu = {
|
|
17575
17575
|
}
|
17576
17576
|
},
|
17577
17577
|
setup(e) {
|
17578
|
-
const t = Z("chatAppId"), { getMessage: n, setMessageFile: a, setRecordingMessage: f, resetMessageFile: s } = Ne(t), { getTheme: i } = Ee(t), r = b(""),
|
17579
|
-
if (!n().file &&
|
17578
|
+
const t = Z("chatAppId"), { getMessage: n, setMessageFile: a, setRecordingMessage: f, resetMessageFile: s } = Ne(t), { getTheme: i } = Ee(t), r = b(""), A = b(), c = e, d = async () => {
|
17579
|
+
if (!n().file && c.state == "active") {
|
17580
17580
|
const m = i().theme ? i().theme : "";
|
17581
17581
|
await Mu(m).then(async (_) => {
|
17582
|
-
_.videoFile && (r.value = "uploading", f(!0), await Tn(
|
17582
|
+
_.videoFile && (r.value = "uploading", f(!0), await Tn(c.filebumpUrl, _.videoFile).then((v) => {
|
17583
17583
|
if (f(!1), r.value = v.status, v.status == "success") {
|
17584
17584
|
a({
|
17585
17585
|
url: v.url,
|
@@ -17588,7 +17588,7 @@ const du = ["data-theme"], gu = {
|
|
17588
17588
|
type: v.type
|
17589
17589
|
});
|
17590
17590
|
const I = document.getElementById("chat-input-file-line-" + t);
|
17591
|
-
I && (I.style.display = "inherit"), v.preview && (
|
17591
|
+
I && (I.style.display = "inherit"), v.preview && (A.value = {
|
17592
17592
|
previewUrl: v.preview.previewUrl,
|
17593
17593
|
isImage: v.preview.isImage,
|
17594
17594
|
isVideo: v.preview.isVideo,
|
@@ -17603,12 +17603,12 @@ const du = ["data-theme"], gu = {
|
|
17603
17603
|
}, g = () => {
|
17604
17604
|
s();
|
17605
17605
|
const m = document.getElementById("chat-input-file-line-" + t);
|
17606
|
-
m && (m.style.display = "none"),
|
17606
|
+
m && (m.style.display = "none"), A.value = void 0;
|
17607
17607
|
};
|
17608
17608
|
return ee(
|
17609
17609
|
() => n().file,
|
17610
17610
|
() => {
|
17611
|
-
n().file || (
|
17611
|
+
n().file || (A.value = void 0);
|
17612
17612
|
}
|
17613
17613
|
), (m, _) => (l(), u(F, null, [
|
17614
17614
|
k(n)().isRecording ? p("", !0) : (l(), u("div", _u, [
|
@@ -17627,9 +17627,9 @@ const du = ["data-theme"], gu = {
|
|
17627
17627
|
key: 2,
|
17628
17628
|
to: "#chat-input-file-line-" + k(t)
|
17629
17629
|
}, [
|
17630
|
-
|
17630
|
+
A.value ? (l(), L(Dn, {
|
17631
17631
|
key: 0,
|
17632
|
-
"file-info":
|
17632
|
+
"file-info": A.value,
|
17633
17633
|
onReset: g
|
17634
17634
|
}, null, 8, ["file-info"])) : p("", !0)
|
17635
17635
|
], 8, ["to"])) : p("", !0)
|
@@ -17655,21 +17655,21 @@ const du = ["data-theme"], gu = {
|
|
17655
17655
|
},
|
17656
17656
|
emits: ["send"],
|
17657
17657
|
setup(e, { emit: t }) {
|
17658
|
-
const n = e, a = t, f = Z("chatAppId"), { getMessage: s } = Ne(f), i = ef("refBCM"), r = (
|
17659
|
-
console.log(
|
17660
|
-
const
|
17658
|
+
const n = e, a = t, f = Z("chatAppId"), { getMessage: s } = Ne(f), i = ef("refBCM"), r = (A) => {
|
17659
|
+
console.log(A);
|
17660
|
+
const c = {
|
17661
17661
|
type: "message.command",
|
17662
|
-
text:
|
17662
|
+
text: A.action
|
17663
17663
|
};
|
17664
|
-
a("send",
|
17664
|
+
a("send", c);
|
17665
17665
|
};
|
17666
17666
|
return ee(
|
17667
17667
|
() => s().text,
|
17668
17668
|
() => {
|
17669
|
-
var
|
17670
|
-
n.commands && (s().text.startsWith("/") ? (
|
17669
|
+
var A, c;
|
17670
|
+
n.commands && (s().text.startsWith("/") ? (A = i.value) == null || A.updatePosition() : (c = i.value) == null || c.hideMenu());
|
17671
17671
|
}
|
17672
|
-
), (
|
17672
|
+
), (A, c) => (l(), L(se, null, {
|
17673
17673
|
default: W(() => [
|
17674
17674
|
e.commands ? (l(), L(Nn, {
|
17675
17675
|
key: 0,
|
@@ -17766,17 +17766,17 @@ const du = ["data-theme"], gu = {
|
|
17766
17766
|
"message.video": "grid",
|
17767
17767
|
"message.call": "grid"
|
17768
17768
|
})[r];
|
17769
|
-
return (r,
|
17770
|
-
var
|
17769
|
+
return (r, A) => {
|
17770
|
+
var c, d;
|
17771
17771
|
return l(), u("div", {
|
17772
|
-
class: x(["reply__container", i((
|
17772
|
+
class: x(["reply__container", i((c = e.message) == null ? void 0 : c.type)]),
|
17773
17773
|
onClick: f
|
17774
17774
|
}, [
|
17775
17775
|
(l(), L(tf(s((d = e.message) == null ? void 0 : d.type)), { message: e.message }, null, 8, ["message"])),
|
17776
17776
|
o("div", zu, [
|
17777
17777
|
o("span", {
|
17778
17778
|
class: "pi pi-times",
|
17779
|
-
onClick:
|
17779
|
+
onClick: A[0] || (A[0] = (g) => n("reset"))
|
17780
17780
|
})
|
17781
17781
|
])
|
17782
17782
|
], 2);
|
@@ -17877,10 +17877,10 @@ const du = ["data-theme"], gu = {
|
|
17877
17877
|
const r = (I) => {
|
17878
17878
|
a("reply", I);
|
17879
17879
|
};
|
17880
|
-
function
|
17880
|
+
function A(I) {
|
17881
17881
|
I.preventDefault(), I.target.href && window.open(I.target.href, "_blank");
|
17882
17882
|
}
|
17883
|
-
const
|
17883
|
+
const c = () => {
|
17884
17884
|
a("action", { messageId: n.message.messageId, type: "views" });
|
17885
17885
|
}, d = () => {
|
17886
17886
|
}, g = () => {
|
@@ -17933,7 +17933,7 @@ const du = ["data-theme"], gu = {
|
|
17933
17933
|
], 8, Zu),
|
17934
17934
|
e.message.text ? (l(), u("div", ed, [
|
17935
17935
|
o("p", {
|
17936
|
-
onClick:
|
17936
|
+
onClick: A,
|
17937
17937
|
innerHTML: i.value
|
17938
17938
|
}, null, 8, td)
|
17939
17939
|
])) : p("", !0),
|
@@ -17951,7 +17951,7 @@ const du = ["data-theme"], gu = {
|
|
17951
17951
|
e.message.views ? (l(), u("div", {
|
17952
17952
|
key: 0,
|
17953
17953
|
class: "file-message__views",
|
17954
|
-
onClick:
|
17954
|
+
onClick: c
|
17955
17955
|
}, [
|
17956
17956
|
y[3] || (y[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
17957
17957
|
o("p", null, D(e.message.views), 1)
|
@@ -18012,7 +18012,7 @@ const du = ["data-theme"], gu = {
|
|
18012
18012
|
},
|
18013
18013
|
emits: ["action", "reply"],
|
18014
18014
|
setup(e, { emit: t }) {
|
18015
|
-
const n = Z("chatAppId"), { getTheme: a } = Ee(n), f = e, s = t, i = b(!1), r = b(!1),
|
18015
|
+
const n = Z("chatAppId"), { getTheme: a } = Ee(n), f = e, s = t, i = b(!1), r = b(!1), A = b(!1), c = b(!1), d = b("");
|
18016
18016
|
ee(
|
18017
18017
|
() => f.message.text,
|
18018
18018
|
() => {
|
@@ -18030,9 +18030,9 @@ const du = ["data-theme"], gu = {
|
|
18030
18030
|
s("action", { messageId: f.message.messageId, type: "views" });
|
18031
18031
|
}, v = () => {
|
18032
18032
|
}, I = () => {
|
18033
|
-
|
18033
|
+
A.value = !0, c.value = !0;
|
18034
18034
|
}, y = () => {
|
18035
|
-
|
18035
|
+
A.value = !1, r.value = !1;
|
18036
18036
|
}, N = $(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), j = $(() => rt(f.message.status));
|
18037
18037
|
function h(M) {
|
18038
18038
|
return M.position === "left" ? "image-message__left" : "image-message__right";
|
@@ -18066,7 +18066,7 @@ const du = ["data-theme"], gu = {
|
|
18066
18066
|
class: "image-message__preview-button",
|
18067
18067
|
onClick: T[0] || (T[0] = (S) => i.value = !0),
|
18068
18068
|
onMouseenter: I,
|
18069
|
-
onMouseleave: T[1] || (T[1] = (S) =>
|
18069
|
+
onMouseleave: T[1] || (T[1] = (S) => c.value = !c.value)
|
18070
18070
|
}, [
|
18071
18071
|
o("img", {
|
18072
18072
|
class: "image-message__preview-image",
|
@@ -18076,7 +18076,7 @@ const du = ["data-theme"], gu = {
|
|
18076
18076
|
}, null, 12, Ad),
|
18077
18077
|
H(se, { name: "modal-fade" }, {
|
18078
18078
|
default: W(() => [
|
18079
|
-
|
18079
|
+
c.value ? (l(), u("div", ud, [
|
18080
18080
|
e.message.views ? (l(), u("div", {
|
18081
18081
|
key: 0,
|
18082
18082
|
class: "image-message__views",
|
@@ -18099,7 +18099,7 @@ const du = ["data-theme"], gu = {
|
|
18099
18099
|
}),
|
18100
18100
|
H(se, { name: "modal-fade" }, {
|
18101
18101
|
default: W(() => [
|
18102
|
-
|
18102
|
+
c.value ? (l(), u("a", {
|
18103
18103
|
key: 0,
|
18104
18104
|
class: "image-message__download-button",
|
18105
18105
|
href: e.message.url,
|
@@ -18115,7 +18115,7 @@ const du = ["data-theme"], gu = {
|
|
18115
18115
|
], 32),
|
18116
18116
|
H(se, { name: "modal-fade" }, {
|
18117
18117
|
default: W(() => [
|
18118
|
-
|
18118
|
+
A.value && e.message.actions ? (l(), u("button", {
|
18119
18119
|
key: 0,
|
18120
18120
|
class: "image-message__menu-button",
|
18121
18121
|
onClick: T[2] || (T[2] = (S) => r.value = !r.value)
|
@@ -18210,10 +18210,10 @@ const du = ["data-theme"], gu = {
|
|
18210
18210
|
const r = (I) => {
|
18211
18211
|
a("reply", I);
|
18212
18212
|
};
|
18213
|
-
function
|
18213
|
+
function A(I) {
|
18214
18214
|
I.preventDefault(), I.target.href && window.open(I.target.href, "_blank");
|
18215
18215
|
}
|
18216
|
-
const
|
18216
|
+
const c = () => {
|
18217
18217
|
s.value = !0;
|
18218
18218
|
}, d = () => {
|
18219
18219
|
s.value = !1, f.value = !1;
|
@@ -18244,7 +18244,7 @@ const du = ["data-theme"], gu = {
|
|
18244
18244
|
e.message.subText ? (l(), u("p", Id, D(e.message.subText), 1)) : p("", !0),
|
18245
18245
|
o("div", {
|
18246
18246
|
class: "text-message__content",
|
18247
|
-
onMouseenter:
|
18247
|
+
onMouseenter: c
|
18248
18248
|
}, [
|
18249
18249
|
e.message.reply ? (l(), L(At, {
|
18250
18250
|
key: 0,
|
@@ -18254,7 +18254,7 @@ const du = ["data-theme"], gu = {
|
|
18254
18254
|
}, null, 8, ["class", "message"])) : p("", !0),
|
18255
18255
|
o("p", {
|
18256
18256
|
class: "text-message__text",
|
18257
|
-
onClick:
|
18257
|
+
onClick: A,
|
18258
18258
|
innerHTML: i.value
|
18259
18259
|
}, null, 8, wd),
|
18260
18260
|
e.message.linkPreview ? (l(), L(zt, {
|
@@ -18356,8 +18356,8 @@ const du = ["data-theme"], gu = {
|
|
18356
18356
|
]), i = (O) => {
|
18357
18357
|
for (let z of s.value)
|
18358
18358
|
z.selected = !1;
|
18359
|
-
s.value[O].selected = !0,
|
18360
|
-
}, r = t,
|
18359
|
+
s.value[O].selected = !0, A.value && (A.value.playbackRate = s.value[O].speed);
|
18360
|
+
}, r = t, A = b(), c = b(!1), d = b(0), g = b(0), m = b(!1), _ = b(!1), v = b(!1), I = $(() => f.message.text ? Te(f.message.text) : ""), y = (O) => {
|
18361
18361
|
r("reply", O);
|
18362
18362
|
};
|
18363
18363
|
function N(O) {
|
@@ -18372,29 +18372,29 @@ const du = ["data-theme"], gu = {
|
|
18372
18372
|
}, M = () => {
|
18373
18373
|
}, T = $(() => rt(f.message.status));
|
18374
18374
|
function S() {
|
18375
|
-
|
18375
|
+
A.value && (c.value ? A.value.pause() : A.value.play(), c.value = !c.value);
|
18376
18376
|
}
|
18377
18377
|
const U = (O) => {
|
18378
18378
|
const z = Math.floor(O / 60), X = Math.floor(O % 60);
|
18379
18379
|
return `${z.toString().padStart(2, "0")}:${X.toString().padStart(2, "0")}`;
|
18380
|
-
}, V = $(() =>
|
18380
|
+
}, V = $(() => A.value ? U(g.value) : "0:00");
|
18381
18381
|
ee(
|
18382
18382
|
() => g.value,
|
18383
18383
|
() => {
|
18384
|
-
|
18384
|
+
A.value && (A.value.duration != 1 / 0 && !Number.isNaN(A.value.duration) && (A.value.currentTime = g.value), g.value == d.value && (c.value = !1));
|
18385
18385
|
}
|
18386
18386
|
);
|
18387
|
-
const Q = $(() =>
|
18387
|
+
const Q = $(() => A.value ? U(d.value) : "0:00");
|
18388
18388
|
function G(O) {
|
18389
18389
|
return O.position === "left" ? "audio-message__left" : "audio-message__right";
|
18390
18390
|
}
|
18391
18391
|
return ue(() => {
|
18392
|
-
|
18393
|
-
|
18394
|
-
|
18395
|
-
}, { once: !0 })), d.value =
|
18396
|
-
}),
|
18397
|
-
g.value =
|
18392
|
+
A.value != null && (A.value.addEventListener("loadedmetadata", () => {
|
18393
|
+
A.value != null && (A.value.duration == 1 / 0 || Number.isNaN(A.value.duration)) && (A.value.currentTime = 1e101, A.value.addEventListener("timeupdate", () => {
|
18394
|
+
A.value && (A.value.currentTime = 0, d.value = A.value.duration);
|
18395
|
+
}, { once: !0 })), d.value = A.value != null ? A.value.duration : 0;
|
18396
|
+
}), A.value.addEventListener("timeupdate", () => {
|
18397
|
+
g.value = A.value != null ? A.value.currentTime : 0;
|
18398
18398
|
}));
|
18399
18399
|
}), (O, z) => {
|
18400
18400
|
var X;
|
@@ -18429,7 +18429,7 @@ const du = ["data-theme"], gu = {
|
|
18429
18429
|
o("div", Sd, [
|
18430
18430
|
o("audio", {
|
18431
18431
|
ref_key: "player",
|
18432
|
-
ref:
|
18432
|
+
ref: A,
|
18433
18433
|
src: e.message.url,
|
18434
18434
|
type: "audio/webm"
|
18435
18435
|
}, null, 8, Cd),
|
@@ -18439,7 +18439,7 @@ const du = ["data-theme"], gu = {
|
|
18439
18439
|
}, z[4] || (z[4] = [
|
18440
18440
|
o("span", { class: "pi pi-play" }, null, -1)
|
18441
18441
|
]), 512), [
|
18442
|
-
[De, !
|
18442
|
+
[De, !c.value]
|
18443
18443
|
]),
|
18444
18444
|
re(o("button", {
|
18445
18445
|
class: "audio-message__pause",
|
@@ -18447,7 +18447,7 @@ const du = ["data-theme"], gu = {
|
|
18447
18447
|
}, z[5] || (z[5] = [
|
18448
18448
|
o("span", { class: "pi pi-pause" }, null, -1)
|
18449
18449
|
]), 512), [
|
18450
|
-
[De,
|
18450
|
+
[De, c.value]
|
18451
18451
|
]),
|
18452
18452
|
re(o("input", {
|
18453
18453
|
"onUpdate:modelValue": z[0] || (z[0] = (ae) => g.value = ae),
|
@@ -18615,7 +18615,7 @@ const du = ["data-theme"], gu = {
|
|
18615
18615
|
function r(U) {
|
18616
18616
|
return U.position === "left" ? "video-message__left" : "video-message__right";
|
18617
18617
|
}
|
18618
|
-
const
|
18618
|
+
const A = b(), c = b(), d = b(!1), g = b(!1), m = b(!1), _ = b(!1), v = b("");
|
18619
18619
|
ee(
|
18620
18620
|
() => f.message.text,
|
18621
18621
|
() => {
|
@@ -18634,9 +18634,9 @@ const du = ["data-theme"], gu = {
|
|
18634
18634
|
}, h = () => {
|
18635
18635
|
m.value = !1, g.value = !1;
|
18636
18636
|
}, w = $(() => rt(f.message.status)), M = () => {
|
18637
|
-
|
18637
|
+
c.value && (c.value.currentTime = 0, c.value.play());
|
18638
18638
|
};
|
18639
|
-
ee([
|
18639
|
+
ee([A, c], ([U, V]) => {
|
18640
18640
|
U ? V && (V.pause(), V.currentTime = 0) : V && (V.play(), V.currentTime = 0);
|
18641
18641
|
});
|
18642
18642
|
const T = $(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), S = () => d.value = !1;
|
@@ -18673,7 +18673,7 @@ const du = ["data-theme"], gu = {
|
|
18673
18673
|
}, [
|
18674
18674
|
o("video", {
|
18675
18675
|
ref_key: "previewPlayer",
|
18676
|
-
ref:
|
18676
|
+
ref: c,
|
18677
18677
|
class: "video-message__video",
|
18678
18678
|
style: ce({ borderRadius: T.value }),
|
18679
18679
|
src: e.message.url,
|
@@ -18772,7 +18772,7 @@ const du = ["data-theme"], gu = {
|
|
18772
18772
|
default: W(() => [
|
18773
18773
|
o("video", {
|
18774
18774
|
ref_key: "player",
|
18775
|
-
ref:
|
18775
|
+
ref: A,
|
18776
18776
|
class: "video-message__modal-video",
|
18777
18777
|
src: e.message.url,
|
18778
18778
|
alt: e.message.alt,
|
@@ -18824,18 +18824,18 @@ const du = ["data-theme"], gu = {
|
|
18824
18824
|
message: "message"
|
18825
18825
|
};
|
18826
18826
|
function s(i, r) {
|
18827
|
-
const
|
18827
|
+
const A = i.position;
|
18828
18828
|
switch (r) {
|
18829
18829
|
case "textDialog":
|
18830
|
-
return
|
18830
|
+
return A === "left" ? "call-message__text-dialog-left" : "call-message__text-dialog-right";
|
18831
18831
|
case "message":
|
18832
|
-
return
|
18832
|
+
return A === "left" ? "call-message__left" : "call-message__right";
|
18833
18833
|
default:
|
18834
18834
|
return "";
|
18835
18835
|
}
|
18836
18836
|
}
|
18837
18837
|
return (i, r) => {
|
18838
|
-
var
|
18838
|
+
var A;
|
18839
18839
|
return l(), u("div", {
|
18840
18840
|
class: x([
|
18841
18841
|
s(e.message, f.message),
|
@@ -18861,17 +18861,17 @@ const du = ["data-theme"], gu = {
|
|
18861
18861
|
o("div", k1, [
|
18862
18862
|
o("span", N1, D(e.message.time), 1)
|
18863
18863
|
]),
|
18864
|
-
(
|
18864
|
+
(A = e.message.transcript) != null && A.dialog ? (l(), u("button", {
|
18865
18865
|
key: 5,
|
18866
18866
|
class: "call-message__download-button",
|
18867
|
-
onClick: r[0] || (r[0] = (
|
18867
|
+
onClick: r[0] || (r[0] = (c) => a.value = !a.value)
|
18868
18868
|
}, r[2] || (r[2] = [
|
18869
18869
|
o("span", { class: "pi pi-arrow-up-right" }, null, -1)
|
18870
18870
|
]))) : p("", !0),
|
18871
18871
|
(l(), L(ve, { to: "body" }, [
|
18872
18872
|
H(se, { name: "modal-fade" }, {
|
18873
18873
|
default: W(() => {
|
18874
|
-
var
|
18874
|
+
var c;
|
18875
18875
|
return [
|
18876
18876
|
a.value ? (l(), u("div", {
|
18877
18877
|
key: 0,
|
@@ -18887,7 +18887,7 @@ const du = ["data-theme"], gu = {
|
|
18887
18887
|
o("i", { class: "pi pi-times" })
|
18888
18888
|
], -1)
|
18889
18889
|
])),
|
18890
|
-
(l(!0), u(F, null, ie((
|
18890
|
+
(l(!0), u(F, null, ie((c = e.message.transcript) == null ? void 0 : c.dialog, (d) => (l(), u("div", {
|
18891
18891
|
key: d.time,
|
18892
18892
|
class: x(s(d, f.textDialog))
|
18893
18893
|
}, [
|
@@ -18991,14 +18991,14 @@ const du = ["data-theme"], gu = {
|
|
18991
18991
|
},
|
18992
18992
|
{ immediate: !0 }
|
18993
18993
|
);
|
18994
|
-
function i(
|
18995
|
-
|
18994
|
+
function i(A) {
|
18995
|
+
A.preventDefault(), A.target.href && window.open(A.target.href, "_blank");
|
18996
18996
|
}
|
18997
18997
|
const r = () => f.value = !1;
|
18998
|
-
return (
|
18998
|
+
return (A, c) => (l(), u(F, null, [
|
18999
18999
|
o("div", {
|
19000
19000
|
class: "image-message__preview-button",
|
19001
|
-
onClick:
|
19001
|
+
onClick: c[0] || (c[0] = (d) => f.value = !0)
|
19002
19002
|
}, [
|
19003
19003
|
o("img", {
|
19004
19004
|
class: "image-message__preview-image",
|
@@ -19008,7 +19008,7 @@ const du = ["data-theme"], gu = {
|
|
19008
19008
|
]),
|
19009
19009
|
o("div", P1, [
|
19010
19010
|
e.message.header ? (l(), u("p", q1, D(e.message.header), 1)) : p("", !0),
|
19011
|
-
|
19011
|
+
c[1] || (c[1] = o("div", { class: "image-message__reply-description" }, [
|
19012
19012
|
o("span", { class: "pi pi-camera" }),
|
19013
19013
|
o("p", null, "Фотография")
|
19014
19014
|
], -1)),
|
@@ -19100,11 +19100,11 @@ const du = ["data-theme"], gu = {
|
|
19100
19100
|
},
|
19101
19101
|
{ immediate: !0 }
|
19102
19102
|
);
|
19103
|
-
function r(
|
19104
|
-
|
19103
|
+
function r(c) {
|
19104
|
+
c.preventDefault(), c.target.href && window.open(c.target.href, "_blank");
|
19105
19105
|
}
|
19106
|
-
const
|
19107
|
-
return (
|
19106
|
+
const A = () => s.value = !1;
|
19107
|
+
return (c, d) => (l(), u(F, null, [
|
19108
19108
|
o("div", {
|
19109
19109
|
class: "video-message__preview-button",
|
19110
19110
|
onClick: d[0] || (d[0] = (g) => s.value = !0)
|
@@ -19134,7 +19134,7 @@ const du = ["data-theme"], gu = {
|
|
19134
19134
|
s.value ? (l(), L(xt, {
|
19135
19135
|
key: 0,
|
19136
19136
|
"data-theme": k(n)().theme ? k(n)().theme : "light",
|
19137
|
-
onClose:
|
19137
|
+
onClose: A
|
19138
19138
|
}, {
|
19139
19139
|
default: W(() => [
|
19140
19140
|
o("video", {
|
@@ -19259,13 +19259,13 @@ const du = ["data-theme"], gu = {
|
|
19259
19259
|
},
|
19260
19260
|
emits: ["close-window", "get-size"],
|
19261
19261
|
setup(e, { emit: t }) {
|
19262
|
-
const n = e, a = b({ x: 0, y: 0 }), f = b(null), s = b(null), i = b(!1), r = b(0),
|
19262
|
+
const n = e, a = b({ x: 0, y: 0 }), f = b(null), s = b(null), i = b(!1), r = b(0), A = b(0), c = b(0), d = ta();
|
19263
19263
|
et("chatAppId", d), et("extChatAppId", n.extChatAppId ? n.extChatAppId : "");
|
19264
19264
|
const g = (v) => {
|
19265
|
-
i.value = !0, r.value = v.clientX - f.value.offsetLeft,
|
19265
|
+
i.value = !0, r.value = v.clientX - f.value.offsetLeft, A.value = v.clientY - f.value.offsetTop;
|
19266
19266
|
}, m = () => i.value = !1, _ = (v) => {
|
19267
19267
|
if (i.value) {
|
19268
|
-
const I = v.clientX - r.value, y = v.clientY -
|
19268
|
+
const I = v.clientX - r.value, y = v.clientY - A.value;
|
19269
19269
|
a.value.x = I, a.value.y = y;
|
19270
19270
|
}
|
19271
19271
|
};
|
@@ -19284,7 +19284,7 @@ const du = ["data-theme"], gu = {
|
|
19284
19284
|
window.innerHeight - f.value.offsetHeight
|
19285
19285
|
)
|
19286
19286
|
));
|
19287
|
-
}),
|
19287
|
+
}), c.value = f.value.offsetHeight - s.value.offsetHeight;
|
19288
19288
|
}), (v, I) => (l(), u("div", {
|
19289
19289
|
id: k(d),
|
19290
19290
|
ref_key: "element",
|
@@ -19327,7 +19327,7 @@ const du = ["data-theme"], gu = {
|
|
19327
19327
|
], 544),
|
19328
19328
|
o("div", {
|
19329
19329
|
class: "float-window__content",
|
19330
|
-
style: ce({ height:
|
19330
|
+
style: ce({ height: c.value + "px" })
|
19331
19331
|
}, [
|
19332
19332
|
ne(v.$slots, "default")
|
19333
19333
|
], 4)
|