@mobilon-dev/chotto 0.2.31 → 0.2.32
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-JpI7TmA9.js → CreateDialog-CmOo-S6b.js} +1 -1
- package/dist/{ModalVideoRecorder--K3PlGse.js → ModalVideoRecorder-DwV65ErV.js} +1 -1
- package/dist/{SelectUser2-BMfNE-Ag.js → SelectUser2-D9COZyKO.js} +1 -1
- package/dist/chotto.css +1 -1
- package/dist/{index-CiZN0ECX.js → index-PEMTxEz0.js} +1014 -1014
- package/dist/vuessages.es.js +1 -1
- package/dist/vuessages.umd.js +6 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as u, openBlock as l, createStaticVNode as pf, inject as se, computed as Q, createCommentVNode as
|
|
1
|
+
import { createElementBlock as u, openBlock as l, createStaticVNode as pf, inject as se, computed as Q, createCommentVNode as b, createElementVNode as o, createVNode as Y, createTextVNode as $e, toDisplayString as E, renderSlot as oe, unref as D, ref as v, customRef as yn, defineComponent as G, watch as ne, nextTick as _e, onMounted as me, withDirectives as ge, withKeys as Dt, vModelText as Tf, normalizeClass as S, createBlock as B, resolveDynamicComponent as Se, Fragment as J, renderList as le, Transition as ue, withCtx as K, useTemplateRef as Mn, normalizeStyle as re, Teleport as ke, onUnmounted as cf, vShow as Re, useId as G1, toRef as Jt, vModelRadio as Tt, reactive as wn, provide as Mf, getCurrentInstance as na, toRaw as Cn, onBeforeUnmount as aa, readonly as sa, resolveComponent as v1, h as Gt, defineAsyncComponent as ia, createApp as oa, withModifiers as Kf } from "vue";
|
|
2
2
|
const la = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", ua = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", _t = "numeric", ht = "ascii", vt = "alpha", Qf = "asciinumeric", Rf = "alphanumeric", bt = "domain", In = "emoji", ca = "scheme", ra = "slashscheme", ot = "whitespace";
|
|
3
3
|
function da(e, f) {
|
|
4
4
|
return e in f || (f[e] = []), f[e];
|
|
@@ -235,13 +235,13 @@ function pa(e = []) {
|
|
|
235
235
|
[In]: !0
|
|
236
236
|
});
|
|
237
237
|
L(g, "#"), de(g, lt, g), L(g, ga, g);
|
|
238
|
-
const
|
|
239
|
-
L(
|
|
240
|
-
const I = [[Ge, s], [Xe, n]],
|
|
238
|
+
const _ = L(g, ma);
|
|
239
|
+
L(_, "#"), de(_, lt, g);
|
|
240
|
+
const I = [[Ge, s], [Xe, n]], y = [[Ge, null], [zf, r], [Xe, i]];
|
|
241
241
|
for (let M = 0; M < g1.length; M++)
|
|
242
242
|
sf(t, g1[M], Mt, ef, I);
|
|
243
243
|
for (let M = 0; M < m1.length; M++)
|
|
244
|
-
sf(t, m1[M], wt, yt,
|
|
244
|
+
sf(t, m1[M], wt, yt, y);
|
|
245
245
|
gf(Mt, {
|
|
246
246
|
tld: !0,
|
|
247
247
|
ascii: !0
|
|
@@ -254,14 +254,14 @@ function pa(e = []) {
|
|
|
254
254
|
}, f), gf(yf, {
|
|
255
255
|
slashscheme: !0,
|
|
256
256
|
ascii: !0
|
|
257
|
-
}, f), e = e.sort((M,
|
|
257
|
+
}, f), e = e.sort((M, h) => M[0] > h[0] ? 1 : -1);
|
|
258
258
|
for (let M = 0; M < e.length; M++) {
|
|
259
|
-
const
|
|
259
|
+
const h = e[M][0], T = e[M][1] ? {
|
|
260
260
|
[ca]: !0
|
|
261
261
|
} : {
|
|
262
262
|
[ra]: !0
|
|
263
263
|
};
|
|
264
|
-
|
|
264
|
+
h.indexOf("-") >= 0 ? T[bt] = !0 : Ge.test(h) ? Xe.test(h) ? T[Qf] = !0 : T[ht] = !0 : T[_t] = !0, Xt(t, h, h, T);
|
|
265
265
|
}
|
|
266
266
|
return Xt(t, "localhost", Jf, {
|
|
267
267
|
ascii: !0
|
|
@@ -276,10 +276,10 @@ function En(e, f) {
|
|
|
276
276
|
const t = _a(f.replace(/[A-Z]/g, (r) => r.toLowerCase())), a = t.length, n = [];
|
|
277
277
|
let i = 0, s = 0;
|
|
278
278
|
for (; s < a; ) {
|
|
279
|
-
let r = e, c = null, d = 0, A = null, g = -1,
|
|
279
|
+
let r = e, c = null, d = 0, A = null, g = -1, _ = -1;
|
|
280
280
|
for (; s < a && (c = r.go(t[s])); )
|
|
281
|
-
r = c, r.accepts() ? (g = 0,
|
|
282
|
-
i -= g, s -=
|
|
281
|
+
r = c, r.accepts() ? (g = 0, _ = 0, A = r) : g >= 0 && (g += t[s].length, _++), d += t[s].length, i += t[s].length, s++;
|
|
282
|
+
i -= g, s -= _, d -= g, n.push({
|
|
283
283
|
t: A.t,
|
|
284
284
|
// token type/name
|
|
285
285
|
v: f.slice(i - d, i),
|
|
@@ -572,24 +572,24 @@ function va({
|
|
|
572
572
|
te(A, a, i), te(A, e.domain, i);
|
|
573
573
|
const g = Ee();
|
|
574
574
|
te(d, e.domain, g), te(g, e.domain, g);
|
|
575
|
-
const
|
|
576
|
-
te(
|
|
575
|
+
const _ = L(g, Ye);
|
|
576
|
+
te(_, e.domain, g);
|
|
577
577
|
const I = Ee(nn);
|
|
578
|
-
te(
|
|
579
|
-
const
|
|
580
|
-
L(
|
|
578
|
+
te(_, e.tld, I), te(_, e.utld, I), L(d, Jf, I);
|
|
579
|
+
const y = L(g, je);
|
|
580
|
+
L(y, je, y), te(y, e.domain, g), te(I, e.domain, g), L(I, Ye, _), L(I, je, y);
|
|
581
581
|
const M = L(I, lf);
|
|
582
582
|
te(M, e.numeric, nn);
|
|
583
|
-
const
|
|
584
|
-
L(
|
|
583
|
+
const h = L(s, je), k = L(s, Ye);
|
|
584
|
+
L(h, je, h), te(h, e.domain, s), te(k, a, i), te(k, e.domain, s);
|
|
585
585
|
const T = Ee(p1);
|
|
586
|
-
te(
|
|
587
|
-
const
|
|
588
|
-
te(
|
|
589
|
-
const
|
|
590
|
-
te(
|
|
591
|
-
const
|
|
592
|
-
te(r, e.domain, s), L(r, Ye,
|
|
586
|
+
te(k, e.tld, T), te(k, e.utld, T), te(T, e.domain, s), te(T, a, i), L(T, Ye, k), L(T, je, h), L(T, of, d);
|
|
587
|
+
const x = L(T, lf), C = Ee(p1);
|
|
588
|
+
te(x, e.numeric, C);
|
|
589
|
+
const w = Ee(p1), m = Ee();
|
|
590
|
+
te(w, f, w), te(w, t, m), te(m, f, w), te(m, t, m), L(T, qe, w), L(C, qe, w);
|
|
591
|
+
const p = L(r, lf), N = L(c, lf), z = L(N, qe), U = L(z, qe);
|
|
592
|
+
te(r, e.domain, s), L(r, Ye, k), L(r, je, h), te(c, e.domain, s), L(c, Ye, k), L(c, je, h), te(p, e.domain, w), L(p, qe, w), L(p, qf, w), te(U, e.domain, w), te(U, f, w), L(U, qe, w);
|
|
593
593
|
const ee = [
|
|
594
594
|
[Ff, Pf],
|
|
595
595
|
// {}
|
|
@@ -609,12 +609,12 @@ function va({
|
|
|
609
609
|
// <>
|
|
610
610
|
];
|
|
611
611
|
for (let H = 0; H < ee.length; H++) {
|
|
612
|
-
const [W, R] = ee[H], ie = L(
|
|
613
|
-
L(m, W, ie), L(ie, R,
|
|
612
|
+
const [W, R] = ee[H], ie = L(w, W);
|
|
613
|
+
L(m, W, ie), L(ie, R, w);
|
|
614
614
|
const X = Ee(p1);
|
|
615
615
|
te(ie, f, X);
|
|
616
616
|
const ae = Ee();
|
|
617
|
-
te(ie, t), te(X, f, X), te(X, t, ae), te(ae, f, X), te(ae, t, ae), L(X, R,
|
|
617
|
+
te(ie, t), te(X, f, X), te(X, t, ae), te(ae, f, X), te(ae, t, ae), L(X, R, w), L(ae, R, w);
|
|
618
618
|
}
|
|
619
619
|
return L(n, Jf, T), L(n, Et, ha), {
|
|
620
620
|
start: n,
|
|
@@ -624,17 +624,17 @@ function va({
|
|
|
624
624
|
function ba(e, f, t) {
|
|
625
625
|
let a = t.length, n = 0, i = [], s = [];
|
|
626
626
|
for (; n < a; ) {
|
|
627
|
-
let r = e, c = null, d = null, A = 0, g = null,
|
|
627
|
+
let r = e, c = null, d = null, A = 0, g = null, _ = -1;
|
|
628
628
|
for (; n < a && !(c = r.go(t[n].t)); )
|
|
629
629
|
s.push(t[n++]);
|
|
630
630
|
for (; n < a && (d = c || r.go(t[n].t)); )
|
|
631
|
-
c = null, r = d, r.accepts() ? (
|
|
632
|
-
if (
|
|
631
|
+
c = null, r = d, r.accepts() ? (_ = 0, g = r) : _ >= 0 && _++, n++, A++;
|
|
632
|
+
if (_ < 0)
|
|
633
633
|
n -= A, n < a && (s.push(t[n]), n++);
|
|
634
634
|
else {
|
|
635
|
-
s.length > 0 && (i.push(dt(an, f, s)), s = []), n -=
|
|
636
|
-
const I = g.t,
|
|
637
|
-
i.push(dt(I, f,
|
|
635
|
+
s.length > 0 && (i.push(dt(an, f, s)), s = []), n -= _, A -= _;
|
|
636
|
+
const I = g.t, y = t.slice(n - A, n);
|
|
637
|
+
i.push(dt(I, f, y));
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
640
|
return s.length > 0 && i.push(dt(an, f, s)), i;
|
|
@@ -799,7 +799,7 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
|
|
|
799
799
|
key: 0,
|
|
800
800
|
class: "pi pi-arrow-left chat-info__return-button",
|
|
801
801
|
onClick: r[0] || (r[0] = (c) => a("returnToChats"))
|
|
802
|
-
})) :
|
|
802
|
+
})) : b("", !0),
|
|
803
803
|
o("div", Na, [
|
|
804
804
|
t.chat.avatar ? (l(), u("img", {
|
|
805
805
|
key: 0,
|
|
@@ -813,12 +813,12 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
|
|
|
813
813
|
o("div", Sa, [
|
|
814
814
|
o("span", Va, [
|
|
815
815
|
$e(E(e.chat.name) + " ", 1),
|
|
816
|
-
e.additionalTitle ? (l(), u("span", La, E(e.additionalTitle), 1)) :
|
|
816
|
+
e.additionalTitle ? (l(), u("span", La, E(e.additionalTitle), 1)) : b("", !0)
|
|
817
817
|
]),
|
|
818
818
|
i.value ? (l(), u("p", Oa, [
|
|
819
819
|
oe(s.$slots, "img-description", {}, void 0, !0),
|
|
820
820
|
$e(" " + E(i.value), 1)
|
|
821
|
-
])) :
|
|
821
|
+
])) : b("", !0)
|
|
822
822
|
]),
|
|
823
823
|
o("div", za, [
|
|
824
824
|
oe(s.$slots, "actions", {}, void 0, !0)
|
|
@@ -830,10 +830,10 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
|
|
|
830
830
|
}, [
|
|
831
831
|
oe(s.$slots, "search", {}, void 0, !0)
|
|
832
832
|
], 8, Ua)
|
|
833
|
-
])) :
|
|
833
|
+
])) : b("", !0);
|
|
834
834
|
}
|
|
835
|
-
}, p6 = /* @__PURE__ */ O(Ba, [["__scopeId", "data-v-479e4d2a"]]), De =
|
|
836
|
-
const f =
|
|
835
|
+
}, p6 = /* @__PURE__ */ O(Ba, [["__scopeId", "data-v-479e4d2a"]]), De = v([]), ze = (e) => {
|
|
836
|
+
const f = v(0), t = De.value.find(({ id: _ }) => _ == e);
|
|
837
837
|
t != null ? f.value = De.value.indexOf(t) : (De.value.push({
|
|
838
838
|
id: e,
|
|
839
839
|
text: "",
|
|
@@ -850,20 +850,20 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
|
|
|
850
850
|
forceSend: !1,
|
|
851
851
|
isRecording: d().isRecording
|
|
852
852
|
};
|
|
853
|
-
}, n = (
|
|
853
|
+
}, n = (_) => {
|
|
854
854
|
De.value[f.value] = {
|
|
855
855
|
id: d().id,
|
|
856
|
-
text:
|
|
856
|
+
text: _,
|
|
857
857
|
file: d().file,
|
|
858
858
|
reply: d().reply,
|
|
859
859
|
forceSend: !1,
|
|
860
860
|
isRecording: d().isRecording
|
|
861
861
|
};
|
|
862
|
-
}, i = (
|
|
862
|
+
}, i = (_) => {
|
|
863
863
|
De.value[f.value] = {
|
|
864
864
|
id: d().id,
|
|
865
865
|
text: d().text,
|
|
866
|
-
file:
|
|
866
|
+
file: _,
|
|
867
867
|
reply: d().reply,
|
|
868
868
|
forceSend: !1,
|
|
869
869
|
isRecording: d().isRecording
|
|
@@ -877,12 +877,12 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
|
|
|
877
877
|
forceSend: !1,
|
|
878
878
|
isRecording: d().isRecording
|
|
879
879
|
};
|
|
880
|
-
}, r = (
|
|
880
|
+
}, r = (_) => {
|
|
881
881
|
De.value[f.value] = {
|
|
882
882
|
id: d().id,
|
|
883
883
|
text: d().text,
|
|
884
884
|
file: d().file,
|
|
885
|
-
reply:
|
|
885
|
+
reply: _,
|
|
886
886
|
forceSend: !1,
|
|
887
887
|
isRecording: d().isRecording
|
|
888
888
|
};
|
|
@@ -907,11 +907,11 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
|
|
|
907
907
|
setMessageText: n,
|
|
908
908
|
setReply: r,
|
|
909
909
|
resetReply: c,
|
|
910
|
-
setForceSendMessage: (
|
|
911
|
-
De.value[f.value].forceSend =
|
|
910
|
+
setForceSendMessage: (_) => {
|
|
911
|
+
De.value[f.value].forceSend = _;
|
|
912
912
|
},
|
|
913
|
-
setRecordingMessage: (
|
|
914
|
-
De.value[f.value].isRecording =
|
|
913
|
+
setRecordingMessage: (_) => {
|
|
914
|
+
De.value[f.value].isRecording = _;
|
|
915
915
|
}
|
|
916
916
|
};
|
|
917
917
|
}, $a = {
|
|
@@ -957,7 +957,7 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
|
|
|
957
957
|
name: "Pусский",
|
|
958
958
|
flag: "russian"
|
|
959
959
|
}
|
|
960
|
-
], sn =
|
|
960
|
+
], sn = v(On[1]);
|
|
961
961
|
let Qa = {
|
|
962
962
|
ru: $a,
|
|
963
963
|
en: Ra
|
|
@@ -1359,20 +1359,20 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1359
1359
|
},
|
|
1360
1360
|
emits: ["send", "typing"],
|
|
1361
1361
|
setup(e, { emit: f }) {
|
|
1362
|
-
const t = f, a = se("chatAppId"), { resetMessage: n, getMessage: i, setMessageText: s, setForceSendMessage: r } = ze(a), c =
|
|
1363
|
-
var
|
|
1362
|
+
const t = f, a = se("chatAppId"), { resetMessage: n, getMessage: i, setMessageText: s, setForceSendMessage: r } = ze(a), c = v(), d = Pa("", 2e3), A = v(), g = e, _ = Q(() => !!(g.state == "disabled" || i().text == "" && !i().file || i().isRecording)), I = Q(() => Ks), y = Q(() => {
|
|
1363
|
+
var w;
|
|
1364
1364
|
if (g.inputButtonColor)
|
|
1365
1365
|
return g.inputButtonColor;
|
|
1366
|
-
if (!((
|
|
1366
|
+
if (!((w = g.selectedChannel) != null && w.channelId))
|
|
1367
1367
|
return "#25D366";
|
|
1368
|
-
const
|
|
1369
|
-
return
|
|
1368
|
+
const C = g.selectedChannel.channelId.toLowerCase();
|
|
1369
|
+
return C.includes("whatsapp") || C.includes("waba") ? "#25D366" : C.includes("telegram") ? "#37AFE2" : C.includes("sms") ? "#6C757D" : C.includes("max") ? "#4B0082" : "#25D366";
|
|
1370
1370
|
}), M = Q(() => {
|
|
1371
|
-
var
|
|
1372
|
-
if (!((
|
|
1371
|
+
var w;
|
|
1372
|
+
if (!((w = g.selectedChannel) != null && w.channelId))
|
|
1373
1373
|
return he("component.ChatInput.InputPlaceholder");
|
|
1374
|
-
const
|
|
1375
|
-
return
|
|
1374
|
+
const C = g.selectedChannel.channelId.toLowerCase();
|
|
1375
|
+
return C.includes("whatsapp") || C.includes("waba") ? he("component.ChatInput.WhatsappInputPlaceholder") : C.includes("telegram") ? he("component.ChatInput.TelegramInputPlaceholder") : C.includes("sms") ? he("component.ChatInput.SmsInputPlaceholder") : C.includes("max") ? he("component.ChatInput.MaxInputPlaceholder") : he("component.ChatInput.InputPlaceholder");
|
|
1376
1376
|
});
|
|
1377
1377
|
ne(
|
|
1378
1378
|
() => d.value,
|
|
@@ -1383,8 +1383,8 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1383
1383
|
() => g.focusOnInputArea,
|
|
1384
1384
|
() => {
|
|
1385
1385
|
g.focusOnInputArea && _e(() => {
|
|
1386
|
-
const
|
|
1387
|
-
|
|
1386
|
+
const C = D(c);
|
|
1387
|
+
C == null || C.focus();
|
|
1388
1388
|
});
|
|
1389
1389
|
},
|
|
1390
1390
|
{ immediate: !0 }
|
|
@@ -1392,59 +1392,59 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1392
1392
|
() => i().text,
|
|
1393
1393
|
() => {
|
|
1394
1394
|
_e(() => {
|
|
1395
|
-
const
|
|
1396
|
-
if (!
|
|
1397
|
-
const
|
|
1398
|
-
|
|
1399
|
-
const m = getComputedStyle(
|
|
1395
|
+
const C = c.value;
|
|
1396
|
+
if (!C) return;
|
|
1397
|
+
const w = C.scrollTop;
|
|
1398
|
+
C.style.height = "auto";
|
|
1399
|
+
const m = getComputedStyle(C), p = parseFloat(m.fontSize) || 16, N = parseFloat(m.lineHeight) || p * 1.4, z = 40, U = N * 11, ee = C.scrollHeight, W = i().text.split(`
|
|
1400
1400
|
`).length > 1, R = document.createElement("div");
|
|
1401
1401
|
R.style.position = "absolute", R.style.visibility = "hidden", R.style.whiteSpace = "nowrap", R.style.font = m.font, R.style.fontSize = m.fontSize, R.style.fontFamily = m.fontFamily, R.style.fontWeight = m.fontWeight, R.style.letterSpacing = m.letterSpacing, R.textContent = i().text, document.body.appendChild(R);
|
|
1402
1402
|
const ie = R.offsetWidth;
|
|
1403
1403
|
document.body.removeChild(R);
|
|
1404
|
-
const X = parseFloat(m.paddingLeft) || 0, ae = parseFloat(m.paddingRight) || 0, ve =
|
|
1405
|
-
i().text.trim() && ye ? ee <= U ? (
|
|
1404
|
+
const X = parseFloat(m.paddingLeft) || 0, ae = parseFloat(m.paddingRight) || 0, ve = C.clientWidth - X - ae, Ae = ie > ve, ye = W || Ae;
|
|
1405
|
+
i().text.trim() && ye ? ee <= U ? (C.style.height = ee + "px", C.style.overflowY = "hidden") : (C.style.height = U + "px", C.style.overflowY = "auto", C.scrollTop = w) : (C.style.height = z + "px", C.style.overflowY = "hidden");
|
|
1406
1406
|
});
|
|
1407
1407
|
},
|
|
1408
1408
|
{ immediate: !0 }
|
|
1409
1409
|
), ne(
|
|
1410
1410
|
() => i().forceSend,
|
|
1411
1411
|
() => {
|
|
1412
|
-
i().forceSend && (
|
|
1412
|
+
i().forceSend && (x(), r(!1));
|
|
1413
1413
|
}
|
|
1414
1414
|
);
|
|
1415
|
-
const
|
|
1416
|
-
t("typing",
|
|
1417
|
-
},
|
|
1415
|
+
const h = (C) => {
|
|
1416
|
+
t("typing", C.target.value);
|
|
1417
|
+
}, k = () => {
|
|
1418
1418
|
_e(() => {
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1419
|
+
const C = c.value;
|
|
1420
|
+
C && (C.style.height = "40px", C.style.overflowY = "hidden");
|
|
1421
1421
|
});
|
|
1422
1422
|
};
|
|
1423
1423
|
me(() => {
|
|
1424
|
-
|
|
1424
|
+
k();
|
|
1425
1425
|
});
|
|
1426
|
-
const T = (
|
|
1427
|
-
if (
|
|
1426
|
+
const T = (C) => {
|
|
1427
|
+
if (C.shiftKey) {
|
|
1428
1428
|
if (c.value instanceof HTMLTextAreaElement) {
|
|
1429
|
-
let
|
|
1430
|
-
|
|
1431
|
-
`,
|
|
1429
|
+
let w = c.value.selectionStart;
|
|
1430
|
+
w && (c.value.setRangeText(`
|
|
1431
|
+
`, w, w, "end"), s(c.value.value));
|
|
1432
1432
|
}
|
|
1433
|
-
|
|
1434
|
-
} else if (
|
|
1433
|
+
C.preventDefault();
|
|
1434
|
+
} else if (C.ctrlKey) {
|
|
1435
1435
|
if (c.value instanceof HTMLTextAreaElement) {
|
|
1436
|
-
let
|
|
1437
|
-
|
|
1438
|
-
`,
|
|
1436
|
+
let w = c.value.selectionStart;
|
|
1437
|
+
w && (c.value.setRangeText(`
|
|
1438
|
+
`, w, w, "end"), s(c.value.value));
|
|
1439
1439
|
}
|
|
1440
|
-
|
|
1440
|
+
C.preventDefault();
|
|
1441
1441
|
} else
|
|
1442
|
-
|
|
1443
|
-
},
|
|
1444
|
-
var
|
|
1445
|
-
const
|
|
1446
|
-
if (
|
|
1447
|
-
const
|
|
1442
|
+
C.preventDefault(), x();
|
|
1443
|
+
}, x = () => {
|
|
1444
|
+
var w, m;
|
|
1445
|
+
const C = v(i());
|
|
1446
|
+
if (C.value.text != "" || C.value.file) {
|
|
1447
|
+
const p = {
|
|
1448
1448
|
type: "",
|
|
1449
1449
|
text: "",
|
|
1450
1450
|
url: "",
|
|
@@ -1452,10 +1452,10 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1452
1452
|
size: "",
|
|
1453
1453
|
reply: void 0
|
|
1454
1454
|
};
|
|
1455
|
-
|
|
1455
|
+
C.value.file ? (p.type = "message." + C.value.file.type, p.url = C.value.file.url, p.filename = C.value.file.name, p.size = (w = C.value.file.size) == null ? void 0 : w.toString(), p.text = (m = C == null ? void 0 : C.value) == null ? void 0 : m.text.trim()) : (p.type = "message.text", p.text = C.value.text.trim()), C.value.reply && (p.reply = C.value.reply), t("send", p), n(), A.value = void 0, c.value && c.value.focus();
|
|
1456
1456
|
}
|
|
1457
1457
|
};
|
|
1458
|
-
return (
|
|
1458
|
+
return (C, w) => (l(), u("div", fi, [
|
|
1459
1459
|
o("div", {
|
|
1460
1460
|
id: "chat-input-reply-line-" + D(a),
|
|
1461
1461
|
class: "chat-input__reply-line"
|
|
@@ -1465,32 +1465,32 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1465
1465
|
class: "chat-input__file-line"
|
|
1466
1466
|
}, null, 8, ni),
|
|
1467
1467
|
o("div", ai, [
|
|
1468
|
-
oe(
|
|
1468
|
+
oe(C.$slots, "inline-buttons", {}, void 0, !0)
|
|
1469
1469
|
]),
|
|
1470
1470
|
e.disabledPlaceholder && (e.state == "disabled" || D(i)().isRecording) ? (l(), u("div", si, E(e.disabledPlaceholder), 1)) : ge((l(), u("textarea", {
|
|
1471
1471
|
key: 1,
|
|
1472
1472
|
ref_key: "refInput",
|
|
1473
1473
|
ref: c,
|
|
1474
|
-
"onUpdate:modelValue":
|
|
1474
|
+
"onUpdate:modelValue": w[0] || (w[0] = (m) => D(i)().text = m),
|
|
1475
1475
|
disabled: e.state == "disabled" || D(i)().isRecording,
|
|
1476
1476
|
class: "chat-input__input",
|
|
1477
1477
|
placeholder: M.value,
|
|
1478
1478
|
onKeydown: Dt(T, ["enter"]),
|
|
1479
|
-
onInput:
|
|
1479
|
+
onInput: h
|
|
1480
1480
|
}, null, 40, ii)), [
|
|
1481
1481
|
[Tf, D(i)().text]
|
|
1482
1482
|
]),
|
|
1483
1483
|
o("button", {
|
|
1484
|
-
class: S(["chat-input__button", { "chat-input__button-disabled":
|
|
1484
|
+
class: S(["chat-input__button", { "chat-input__button-disabled": _.value }]),
|
|
1485
1485
|
disabled: D(i)().isRecording,
|
|
1486
|
-
onClick:
|
|
1486
|
+
onClick: x
|
|
1487
1487
|
}, [
|
|
1488
1488
|
o("span", li, [
|
|
1489
|
-
(l(), B(Se(I.value), { color:
|
|
1489
|
+
(l(), B(Se(I.value), { color: y.value }, null, 8, ["color"]))
|
|
1490
1490
|
])
|
|
1491
1491
|
], 10, oi),
|
|
1492
1492
|
o("div", ui, [
|
|
1493
|
-
oe(
|
|
1493
|
+
oe(C.$slots, "buttons", {}, void 0, !0)
|
|
1494
1494
|
])
|
|
1495
1495
|
]));
|
|
1496
1496
|
}
|
|
@@ -1519,7 +1519,7 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1519
1519
|
onClick: (n) => f.$emit("tab-click", a.id)
|
|
1520
1520
|
}, [
|
|
1521
1521
|
$e(E(a.label) + " ", 1),
|
|
1522
|
-
a.count !== void 0 ? (l(), u("span", Ai, E(a.count), 1)) :
|
|
1522
|
+
a.count !== void 0 ? (l(), u("span", Ai, E(a.count), 1)) : b("", !0)
|
|
1523
1523
|
], 8, di)
|
|
1524
1524
|
], 2))), 128))
|
|
1525
1525
|
]));
|
|
@@ -1560,7 +1560,7 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1560
1560
|
},
|
|
1561
1561
|
emits: ["select", "action", "loadMoreChats", "expand", "tab-click"],
|
|
1562
1562
|
setup(e, { emit: f }) {
|
|
1563
|
-
const t = e, a = f, n =
|
|
1563
|
+
const t = e, a = f, n = v(""), i = v(), s = v(!1), r = v(!1), c = v(!1), d = v(!1);
|
|
1564
1564
|
function A() {
|
|
1565
1565
|
_e(function() {
|
|
1566
1566
|
const m = D(i);
|
|
@@ -1570,9 +1570,9 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1570
1570
|
const g = () => {
|
|
1571
1571
|
const m = D(i);
|
|
1572
1572
|
d.value = m.scrollHeight > m.clientHeight;
|
|
1573
|
-
},
|
|
1574
|
-
const m = D(i),
|
|
1575
|
-
g(), m.scrollTop > 500 && (r.value = !0), m.scrollTop <= 500 && (r.value = !1), c.value ?
|
|
1573
|
+
}, _ = () => {
|
|
1574
|
+
const m = D(i), p = m.scrollHeight - m.scrollTop - m.clientHeight;
|
|
1575
|
+
g(), m.scrollTop > 500 && (r.value = !0), m.scrollTop <= 500 && (r.value = !1), c.value ? p < 300 && (s.value = !0) : (p < 300 && (s.value = !0), p >= 300 && (s.value = !1));
|
|
1576
1576
|
};
|
|
1577
1577
|
ne(
|
|
1578
1578
|
() => s.value,
|
|
@@ -1600,64 +1600,64 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1600
1600
|
{ immediate: !0 }
|
|
1601
1601
|
);
|
|
1602
1602
|
const I = (m) => {
|
|
1603
|
-
const
|
|
1604
|
-
(m.offsetX >
|
|
1605
|
-
},
|
|
1603
|
+
const p = D(i);
|
|
1604
|
+
(m.offsetX > p.clientWidth || m.offsetY > p.clientHeight) && (c.value = !0);
|
|
1605
|
+
}, y = () => {
|
|
1606
1606
|
c.value = !1;
|
|
1607
1607
|
}, M = (m) => {
|
|
1608
1608
|
a("expand", m);
|
|
1609
|
-
},
|
|
1609
|
+
}, h = (m) => {
|
|
1610
1610
|
t.chats.forEach((N) => {
|
|
1611
1611
|
N.isSelected = !1, N.dialogs && N.dialogs.forEach((z) => {
|
|
1612
1612
|
z.isSelected = !1;
|
|
1613
1613
|
});
|
|
1614
|
-
}), m.dialog &&
|
|
1615
|
-
const
|
|
1616
|
-
|
|
1617
|
-
},
|
|
1618
|
-
t.chats.forEach((
|
|
1619
|
-
|
|
1614
|
+
}), m.dialog && k(m.dialog);
|
|
1615
|
+
const p = t.chats.find((N) => N.chatId === m.chat.chatId);
|
|
1616
|
+
p.isSelected = !0, a("select", m);
|
|
1617
|
+
}, k = (m) => {
|
|
1618
|
+
t.chats.forEach((p) => {
|
|
1619
|
+
p.isSelected = !1, p.dialogs && p.dialogs.forEach((N) => {
|
|
1620
1620
|
N.isSelected = !1, N.dialogId == m.dialogId && (N.isSelected = !0);
|
|
1621
1621
|
});
|
|
1622
1622
|
});
|
|
1623
|
-
}, T = () => t.chats.toSorted((m,
|
|
1624
|
-
if (Number(m["lastActivity.timestamp"]) > Number(
|
|
1625
|
-
if (Number(m["lastActivity.timestamp"]) < Number(
|
|
1626
|
-
if (Number(m["lastActivity.timestamp"]) == Number(
|
|
1627
|
-
}).toSorted((m,
|
|
1628
|
-
if (m.countUnread >
|
|
1629
|
-
if (m.countUnread <
|
|
1630
|
-
if (m.countUnread ==
|
|
1631
|
-
}).filter((m) => t.filterQuery ? m.name.includes(t.filterQuery) || m.metadata.includes(t.filterQuery) : m.name.includes(n.value) || m.metadata.includes(n.value)),
|
|
1623
|
+
}, T = () => t.chats.toSorted((m, p) => {
|
|
1624
|
+
if (Number(m["lastActivity.timestamp"]) > Number(p["lastActivity.timestamp"])) return -1;
|
|
1625
|
+
if (Number(m["lastActivity.timestamp"]) < Number(p["lastActivity.timestamp"])) return 1;
|
|
1626
|
+
if (Number(m["lastActivity.timestamp"]) == Number(p["lastActivity.timestamp"])) return 0;
|
|
1627
|
+
}).toSorted((m, p) => {
|
|
1628
|
+
if (m.countUnread > p.countUnread) return -1;
|
|
1629
|
+
if (m.countUnread < p.countUnread) return 1;
|
|
1630
|
+
if (m.countUnread == p.countUnread) return 0;
|
|
1631
|
+
}).filter((m) => t.filterQuery ? m.name.includes(t.filterQuery) || m.metadata.includes(t.filterQuery) : m.name.includes(n.value) || m.metadata.includes(n.value)), x = (m) => {
|
|
1632
1632
|
n.value = m;
|
|
1633
|
-
},
|
|
1633
|
+
}, C = (m) => a("action", m), w = (m) => {
|
|
1634
1634
|
a("tab-click", m);
|
|
1635
1635
|
};
|
|
1636
|
-
return (m,
|
|
1636
|
+
return (m, p) => (l(), u("div", pi, [
|
|
1637
1637
|
o("div", _i, [
|
|
1638
|
-
e.titleEnabled ? (l(), u("h2", hi, E(D(he)("component.ChatList.Title")), 1)) :
|
|
1638
|
+
e.titleEnabled ? (l(), u("h2", hi, E(D(he)("component.ChatList.Title")), 1)) : b("", !0),
|
|
1639
1639
|
oe(m.$slots, "actions", {}, void 0, !0)
|
|
1640
1640
|
]),
|
|
1641
1641
|
oe(m.$slots, "sidebar", {}, void 0, !0),
|
|
1642
1642
|
e.filterEnabled ? (l(), B(D(jl), {
|
|
1643
1643
|
key: 0,
|
|
1644
1644
|
class: "chat-list__filter",
|
|
1645
|
-
onUpdate:
|
|
1646
|
-
})) :
|
|
1645
|
+
onUpdate: x
|
|
1646
|
+
})) : b("", !0),
|
|
1647
1647
|
e.dialogTabs && e.dialogTabs.length > 0 ? (l(), B(mi, {
|
|
1648
1648
|
key: 1,
|
|
1649
1649
|
tabs: e.dialogTabs,
|
|
1650
|
-
onTabClick:
|
|
1651
|
-
}, null, 8, ["tabs"])) :
|
|
1650
|
+
onTabClick: w
|
|
1651
|
+
}, null, 8, ["tabs"])) : b("", !0),
|
|
1652
1652
|
o("div", {
|
|
1653
1653
|
ref_key: "refChatList",
|
|
1654
1654
|
ref: i,
|
|
1655
1655
|
class: "chat-list__items",
|
|
1656
|
-
onScroll:
|
|
1656
|
+
onScroll: _,
|
|
1657
1657
|
onMousedown: I,
|
|
1658
|
-
onMouseup:
|
|
1658
|
+
onMouseup: y
|
|
1659
1659
|
}, [
|
|
1660
|
-
T().length === 0 ? (l(), u("div", vi,
|
|
1660
|
+
T().length === 0 ? (l(), u("div", vi, p[0] || (p[0] = [
|
|
1661
1661
|
o("div", { class: "chat-list__placeholder" }, [
|
|
1662
1662
|
o("p", { class: "chat-list__placeholder-title" }, " Нет контактных данных, чтобы начать чат "),
|
|
1663
1663
|
o("p", { class: "chat-list__placeholder-hint" }, " Добавьте номер телефона или имя Telegram в карточку контакта ")
|
|
@@ -1670,9 +1670,9 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1670
1670
|
chat: N,
|
|
1671
1671
|
"show-dialogs": t.showDialogs,
|
|
1672
1672
|
"has-scroll": d.value,
|
|
1673
|
-
onSelect:
|
|
1673
|
+
onSelect: h,
|
|
1674
1674
|
onExpand: M,
|
|
1675
|
-
onAction:
|
|
1675
|
+
onAction: C
|
|
1676
1676
|
}, null, 8, ["chat", "show-dialogs", "has-scroll"]))), 128))
|
|
1677
1677
|
]),
|
|
1678
1678
|
o("div", yi, [
|
|
@@ -1682,9 +1682,9 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1682
1682
|
chat: N,
|
|
1683
1683
|
"show-dialogs": t.showDialogs,
|
|
1684
1684
|
"has-scroll": d.value,
|
|
1685
|
-
onSelect:
|
|
1685
|
+
onSelect: h,
|
|
1686
1686
|
onExpand: M,
|
|
1687
|
-
onAction:
|
|
1687
|
+
onAction: C
|
|
1688
1688
|
}, null, 8, ["chat", "show-dialogs", "has-scroll"]))), 128))
|
|
1689
1689
|
]),
|
|
1690
1690
|
o("div", Mi, [
|
|
@@ -1694,9 +1694,9 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1694
1694
|
chat: N,
|
|
1695
1695
|
"show-dialogs": t.showDialogs,
|
|
1696
1696
|
"has-scroll": d.value,
|
|
1697
|
-
onSelect:
|
|
1697
|
+
onSelect: h,
|
|
1698
1698
|
onExpand: M,
|
|
1699
|
-
onAction:
|
|
1699
|
+
onAction: C
|
|
1700
1700
|
}, null, 8, ["chat", "show-dialogs", "has-scroll"]))), 128))
|
|
1701
1701
|
])
|
|
1702
1702
|
], 64))
|
|
@@ -1707,9 +1707,9 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
|
|
|
1707
1707
|
key: 0,
|
|
1708
1708
|
class: "chat-list__button-up",
|
|
1709
1709
|
onClick: A
|
|
1710
|
-
},
|
|
1710
|
+
}, p[1] || (p[1] = [
|
|
1711
1711
|
o("span", { class: "pi pi-angle-up chat-list__icon-down" }, null, -1)
|
|
1712
|
-
]))) :
|
|
1712
|
+
]))) : b("", !0)
|
|
1713
1713
|
]),
|
|
1714
1714
|
_: 1
|
|
1715
1715
|
})
|
|
@@ -1752,7 +1752,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
1752
1752
|
key: g.text,
|
|
1753
1753
|
class: "keyboard__key",
|
|
1754
1754
|
style: re({ "box-shadow": "0px 0px 10px 5px " + g.color }),
|
|
1755
|
-
onClick: (
|
|
1755
|
+
onClick: (_) => c(g)
|
|
1756
1756
|
}, [
|
|
1757
1757
|
o("p", null, E(g.text), 1)
|
|
1758
1758
|
], 12, Ii))), 128))
|
|
@@ -1862,14 +1862,14 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
1862
1862
|
"feedAction"
|
|
1863
1863
|
],
|
|
1864
1864
|
setup(e, { emit: f }) {
|
|
1865
|
-
const t =
|
|
1865
|
+
const t = v(), a = v(), n = v(), i = v(!1), s = v(!1), r = v(!1), c = v(!1), d = v(!1), A = v(!1), g = v(!1), _ = v("");
|
|
1866
1866
|
let I = null;
|
|
1867
|
-
const
|
|
1868
|
-
|
|
1867
|
+
const y = e, M = se("chatAppId"), { setReply: h, getMessage: k, resetReply: T } = ze(M), x = f, C = Q(() => !!(s.value && y.objects.length > 0 && y.objects[y.objects.length - 1].keyboard)), w = (F) => {
|
|
1868
|
+
x("keyboardAction", F);
|
|
1869
1869
|
}, m = (F) => {
|
|
1870
|
-
|
|
1870
|
+
x("feedAction", F);
|
|
1871
1871
|
};
|
|
1872
|
-
function
|
|
1872
|
+
function p(F = !0) {
|
|
1873
1873
|
const Z = D(a);
|
|
1874
1874
|
let j = 0;
|
|
1875
1875
|
n.value && (j = n.value.refKeyboard.clientHeight);
|
|
@@ -1881,7 +1881,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
1881
1881
|
ne(
|
|
1882
1882
|
() => [c.value, r.value],
|
|
1883
1883
|
() => {
|
|
1884
|
-
c.value ||
|
|
1884
|
+
c.value || x("loadMoreDown"), r.value || x("loadMore");
|
|
1885
1885
|
}
|
|
1886
1886
|
);
|
|
1887
1887
|
const N = (F) => {
|
|
@@ -1889,7 +1889,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
1889
1889
|
(F.offsetX > Z.clientWidth || F.offsetY > Z.clientHeight) && (A.value = !0);
|
|
1890
1890
|
}, z = () => {
|
|
1891
1891
|
A.value = !1;
|
|
1892
|
-
}, U = Ci(() =>
|
|
1892
|
+
}, U = Ci(() => p(), 250), ee = (F) => ({
|
|
1893
1893
|
"message.text": Q3,
|
|
1894
1894
|
"message.image": S3,
|
|
1895
1895
|
"message.file": b3,
|
|
@@ -1908,23 +1908,23 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
1908
1908
|
});
|
|
1909
1909
|
}
|
|
1910
1910
|
function W() {
|
|
1911
|
-
|
|
1911
|
+
x("forceScrollToBottom"), H();
|
|
1912
1912
|
}
|
|
1913
1913
|
ne(
|
|
1914
|
-
() =>
|
|
1914
|
+
() => y.scrollToBottom,
|
|
1915
1915
|
() => {
|
|
1916
|
-
console.log("force scroll to bottom"),
|
|
1916
|
+
console.log("force scroll to bottom"), y.scrollToBottom && H();
|
|
1917
1917
|
},
|
|
1918
1918
|
{ immediate: !0 }
|
|
1919
1919
|
);
|
|
1920
1920
|
const R = (F) => {
|
|
1921
|
-
|
|
1921
|
+
x("messageAction", F);
|
|
1922
1922
|
}, ie = (F) => {
|
|
1923
|
-
|
|
1923
|
+
x("clickRepliedMessage", F);
|
|
1924
1924
|
}, X = (F, Z) => {
|
|
1925
|
-
if (
|
|
1925
|
+
if (y.enableDoubleClickReply && (F == null || F.preventDefault(), Z.type.indexOf("system") == -1 && Z.type.indexOf("typing") == -1)) {
|
|
1926
1926
|
const j = document.getElementById("chat-input-reply-line-" + M);
|
|
1927
|
-
j && (j.style.display = "inherit"),
|
|
1927
|
+
j && (j.style.display = "inherit"), h({
|
|
1928
1928
|
messageId: Z.messageId,
|
|
1929
1929
|
type: Z.type,
|
|
1930
1930
|
text: Z.text,
|
|
@@ -1940,7 +1940,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
1940
1940
|
F && (F.style.display = "none");
|
|
1941
1941
|
}, ve = (F) => {
|
|
1942
1942
|
F.forEach((Z) => {
|
|
1943
|
-
Z.isIntersecting &&
|
|
1943
|
+
Z.isIntersecting && x("messageVisible", JSON.parse(Z.target.id));
|
|
1944
1944
|
});
|
|
1945
1945
|
}, Ae = {
|
|
1946
1946
|
root: document.getElementById("feed-container-" + M),
|
|
@@ -1948,14 +1948,14 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
1948
1948
|
threshold: 0
|
|
1949
1949
|
}, ye = new IntersectionObserver(ve, Ae);
|
|
1950
1950
|
ne(
|
|
1951
|
-
() =>
|
|
1951
|
+
() => y.objects,
|
|
1952
1952
|
() => {
|
|
1953
1953
|
_e(() => {
|
|
1954
|
-
if (r.value = !0, c.value = !0,
|
|
1954
|
+
if (r.value = !0, c.value = !0, p(!1), A.value) {
|
|
1955
1955
|
const F = D(a);
|
|
1956
1956
|
d.value && (F.scrollTop = F.scrollHeight - 400), d.value || (F.scrollTop = 400);
|
|
1957
1957
|
}
|
|
1958
|
-
if (t.value = document.querySelectorAll(".tracking-message"), t.value.forEach((F) => ye.observe(F)),
|
|
1958
|
+
if (t.value = document.querySelectorAll(".tracking-message"), t.value.forEach((F) => ye.observe(F)), y.scrollToBottom) {
|
|
1959
1959
|
const F = D(a);
|
|
1960
1960
|
F && (F.scrollTop = F.scrollHeight, setTimeout(() => {
|
|
1961
1961
|
F.scrollTop = F.scrollHeight;
|
|
@@ -1965,11 +1965,11 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
1965
1965
|
},
|
|
1966
1966
|
{ immediate: !0 }
|
|
1967
1967
|
), ne(
|
|
1968
|
-
() =>
|
|
1968
|
+
() => y.scrollTo,
|
|
1969
1969
|
() => {
|
|
1970
1970
|
var F;
|
|
1971
|
-
if (
|
|
1972
|
-
const Z =
|
|
1971
|
+
if (y.scrollTo) {
|
|
1972
|
+
const Z = y.scrollTo;
|
|
1973
1973
|
let j = document.getElementById(Z), P = document.getElementById("feed-container-" + M);
|
|
1974
1974
|
j instanceof HTMLElement && P instanceof HTMLElement && (P.scrollTop = j.offsetTop + j.clientHeight / 2 - P.clientHeight / 2), (F = document.getElementById(Z)) == null || F.children[0].classList.add("focused-message"), setTimeout(() => {
|
|
1975
1975
|
var q;
|
|
@@ -1978,7 +1978,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
1980
|
);
|
|
1981
|
-
const Be = Q(() => !
|
|
1981
|
+
const Be = Q(() => !y.objects || y.objects.length === 0 ? [] : y.objects.map((F, Z, j) => {
|
|
1982
1982
|
const P = Z > 0 && j[Z - 1].position === F.position && j[Z - 1].header === F.header, q = Z > 0 && !["message.system", "message.typing"].includes(j[Z - 1].type);
|
|
1983
1983
|
return {
|
|
1984
1984
|
...F,
|
|
@@ -2009,7 +2009,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2009
2009
|
const P = JSON.parse(j.id);
|
|
2010
2010
|
if (!P || !P.timestamp) return;
|
|
2011
2011
|
const q = new Date(Number(P.timestamp) * 1e3);
|
|
2012
|
-
|
|
2012
|
+
_.value = q.toLocaleDateString();
|
|
2013
2013
|
} catch {
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
@@ -2029,8 +2029,8 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2029
2029
|
g.value ? (l(), B(D(jA), {
|
|
2030
2030
|
key: 0,
|
|
2031
2031
|
class: "message-feed__sticky-date",
|
|
2032
|
-
text:
|
|
2033
|
-
}, null, 8, ["text"])) :
|
|
2032
|
+
text: _.value
|
|
2033
|
+
}, null, 8, ["text"])) : b("", !0)
|
|
2034
2034
|
]),
|
|
2035
2035
|
_: 1
|
|
2036
2036
|
}),
|
|
@@ -2057,18 +2057,18 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2057
2057
|
subText: e.typing.title,
|
|
2058
2058
|
avatar: e.typing.avatar
|
|
2059
2059
|
}
|
|
2060
|
-
}, null, 8, ["message"])) :
|
|
2060
|
+
}, null, 8, ["message"])) : b("", !0),
|
|
2061
2061
|
Y(ue, null, {
|
|
2062
2062
|
default: K(() => [
|
|
2063
|
-
|
|
2063
|
+
C.value ? (l(), B(xi, {
|
|
2064
2064
|
key: 0,
|
|
2065
2065
|
ref_key: "keyboardRef",
|
|
2066
2066
|
ref: n,
|
|
2067
2067
|
class: "message-feed__keyboard",
|
|
2068
2068
|
keyboard: e.objects[e.objects.length - 1].keyboard,
|
|
2069
2069
|
align: e.keyboardAlign,
|
|
2070
|
-
onAction:
|
|
2071
|
-
}, null, 8, ["keyboard", "align"])) :
|
|
2070
|
+
onAction: w
|
|
2071
|
+
}, null, 8, ["keyboard", "align"])) : b("", !0)
|
|
2072
2072
|
]),
|
|
2073
2073
|
_: 1
|
|
2074
2074
|
}),
|
|
@@ -2079,9 +2079,9 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2079
2079
|
class: "message-feed__button-down",
|
|
2080
2080
|
onClick: W
|
|
2081
2081
|
}, [
|
|
2082
|
-
e.buttonParams ? (l(), u("div", Si, E(e.buttonParams.unreadAmount), 1)) :
|
|
2082
|
+
e.buttonParams ? (l(), u("div", Si, E(e.buttonParams.unreadAmount), 1)) : b("", !0),
|
|
2083
2083
|
Z[1] || (Z[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
|
2084
|
-
])) :
|
|
2084
|
+
])) : b("", !0)
|
|
2085
2085
|
]),
|
|
2086
2086
|
_: 1
|
|
2087
2087
|
}),
|
|
@@ -2090,7 +2090,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2090
2090
|
buttons: e.feedKeyboards,
|
|
2091
2091
|
align: e.feedKeyboardAlign,
|
|
2092
2092
|
onAction: m
|
|
2093
|
-
}, null, 8, ["buttons", "align"])) :
|
|
2093
|
+
}, null, 8, ["buttons", "align"])) : b("", !0)
|
|
2094
2094
|
], 40, Ei)) : (l(), u("div", {
|
|
2095
2095
|
key: 1,
|
|
2096
2096
|
ref_key: "refFeed",
|
|
@@ -2101,16 +2101,16 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2101
2101
|
oe(F.$slots, "empty-feed", {}, void 0, !0)
|
|
2102
2102
|
])
|
|
2103
2103
|
], 512)),
|
|
2104
|
-
D(
|
|
2104
|
+
D(k)().reply ? (l(), B(ke, {
|
|
2105
2105
|
key: 2,
|
|
2106
2106
|
to: "#chat-input-reply-line-" + D(M)
|
|
2107
2107
|
}, [
|
|
2108
2108
|
Y(D(jf), {
|
|
2109
2109
|
class: "chat-input-reply",
|
|
2110
|
-
message: D(
|
|
2110
|
+
message: D(k)().reply,
|
|
2111
2111
|
onReset: ae
|
|
2112
2112
|
}, null, 8, ["message"])
|
|
2113
|
-
], 8, ["to"])) :
|
|
2113
|
+
], 8, ["to"])) : b("", !0)
|
|
2114
2114
|
], 64));
|
|
2115
2115
|
}
|
|
2116
2116
|
}), w6 = /* @__PURE__ */ O(Li, [["__scopeId", "data-v-222decfb"]]), Oi = {
|
|
@@ -2139,11 +2139,11 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2139
2139
|
height: "48",
|
|
2140
2140
|
width: "48"
|
|
2141
2141
|
}, null, 8, Ui)
|
|
2142
|
-
])) :
|
|
2142
|
+
])) : b("", !0),
|
|
2143
2143
|
o("h2", Bi, E(e.user.name), 1),
|
|
2144
2144
|
o("p", $i, E(e.user.email), 1),
|
|
2145
2145
|
o("p", Ri, E(e.user.phone), 1)
|
|
2146
|
-
])) :
|
|
2146
|
+
])) : b("", !0);
|
|
2147
2147
|
}
|
|
2148
2148
|
}, C6 = /* @__PURE__ */ O(Qi, [["__scopeId", "data-v-ad5c665d"]]), Fi = ["data-theme"], Pi = { class: "modal__container" }, Yi = {
|
|
2149
2149
|
__name: "ModalFullscreen",
|
|
@@ -2184,8 +2184,8 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2184
2184
|
])
|
|
2185
2185
|
], 40, Fi));
|
|
2186
2186
|
}
|
|
2187
|
-
}, t1 = /* @__PURE__ */ O(Yi, [["__scopeId", "data-v-b9e55899"]]), Uf =
|
|
2188
|
-
const f =
|
|
2187
|
+
}, t1 = /* @__PURE__ */ O(Yi, [["__scopeId", "data-v-b9e55899"]]), Uf = v([]), Ue = (e) => {
|
|
2188
|
+
const f = v(0), t = Uf.value.find(({ id: n }) => n == e);
|
|
2189
2189
|
return t != null ? f.value = Uf.value.indexOf(t) : (Uf.value.push({
|
|
2190
2190
|
id: e,
|
|
2191
2191
|
theme: ""
|
|
@@ -2212,14 +2212,14 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2212
2212
|
},
|
|
2213
2213
|
emits: ["reset"],
|
|
2214
2214
|
setup(e, { emit: f }) {
|
|
2215
|
-
const t = se("chatAppId"), { getTheme: a } = Ue(t), n = f, i =
|
|
2216
|
-
function
|
|
2215
|
+
const t = se("chatAppId"), { getTheme: a } = Ue(t), n = f, i = v(), s = v(), r = v(!1), c = v(0), d = v(0), A = v(!1), g = () => A.value = !1;
|
|
2216
|
+
function _() {
|
|
2217
2217
|
i.value && (r.value ? i.value.pause() : i.value.play(), r.value = !r.value);
|
|
2218
2218
|
}
|
|
2219
|
-
const I = (
|
|
2220
|
-
const
|
|
2221
|
-
return `${
|
|
2222
|
-
},
|
|
2219
|
+
const I = (h) => {
|
|
2220
|
+
const k = Math.floor(h / 60), T = Math.floor(h % 60);
|
|
2221
|
+
return `${k.toString().padStart(2, "0")}:${T.toString().padStart(2, "0")}`;
|
|
2222
|
+
}, y = Q(() => i.value ? I(d.value) : "0:00"), M = Q(() => i.value || s.value ? I(c.value) : "0:00");
|
|
2223
2223
|
return me(() => {
|
|
2224
2224
|
i.value != null && (i.value.addEventListener("loadedmetadata", () => {
|
|
2225
2225
|
i.value != null && (i.value.duration == 1 / 0 || Number.isNaN(i.value.duration)) && (i.value.currentTime = 1e101, i.value.addEventListener("timeupdate", () => {
|
|
@@ -2232,25 +2232,25 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2232
2232
|
s.value && (s.value.currentTime = 0, c.value = s.value.duration);
|
|
2233
2233
|
}, { once: !0 })));
|
|
2234
2234
|
});
|
|
2235
|
-
}), (
|
|
2235
|
+
}), (h, k) => (l(), u("div", qi, [
|
|
2236
2236
|
o("div", Hi, [
|
|
2237
2237
|
e.fileInfo.isImage ? (l(), u("div", {
|
|
2238
2238
|
key: 0,
|
|
2239
2239
|
style: { position: "relative" },
|
|
2240
|
-
onClick:
|
|
2240
|
+
onClick: k[0] || (k[0] = (T) => A.value = !0)
|
|
2241
2241
|
}, [
|
|
2242
2242
|
o("img", {
|
|
2243
2243
|
src: e.fileInfo.previewUrl,
|
|
2244
2244
|
alt: "Image Preview",
|
|
2245
2245
|
class: "preview__image"
|
|
2246
2246
|
}, null, 8, Wi),
|
|
2247
|
-
|
|
2247
|
+
k[3] || (k[3] = o("div", { class: "preview__shadow" }, [
|
|
2248
2248
|
o("span", { class: "pi pi-plus-circle" })
|
|
2249
2249
|
], -1))
|
|
2250
2250
|
])) : e.fileInfo.isVideo ? (l(), u("div", {
|
|
2251
2251
|
key: 1,
|
|
2252
2252
|
style: { position: "relative" },
|
|
2253
|
-
onClick:
|
|
2253
|
+
onClick: k[1] || (k[1] = (T) => A.value = !0)
|
|
2254
2254
|
}, [
|
|
2255
2255
|
o("video", {
|
|
2256
2256
|
ref_key: "video",
|
|
@@ -2258,11 +2258,11 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2258
2258
|
src: e.fileInfo.previewUrl,
|
|
2259
2259
|
class: "preview__video"
|
|
2260
2260
|
}, null, 8, Zi),
|
|
2261
|
-
|
|
2261
|
+
k[4] || (k[4] = o("div", { class: "preview__shadow" }, [
|
|
2262
2262
|
o("span", { class: "pi pi-play" })
|
|
2263
2263
|
], -1))
|
|
2264
2264
|
])) : e.fileInfo.isAudio ? (l(), u("div", Ki, [
|
|
2265
|
-
|
|
2265
|
+
k[5] || (k[5] = o("span", {
|
|
2266
2266
|
class: "pi pi-headphones",
|
|
2267
2267
|
style: { "font-size": "1rem", margin: "auto" }
|
|
2268
2268
|
}, null, -1)),
|
|
@@ -2273,7 +2273,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2273
2273
|
}, null, 8, Ji),
|
|
2274
2274
|
o("button", {
|
|
2275
2275
|
class: "preview__audio-control",
|
|
2276
|
-
onClick:
|
|
2276
|
+
onClick: _
|
|
2277
2277
|
}, [
|
|
2278
2278
|
ge(o("span", Gi, null, 512), [
|
|
2279
2279
|
[Re, !r.value]
|
|
@@ -2282,7 +2282,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2282
2282
|
[Re, r.value]
|
|
2283
2283
|
])
|
|
2284
2284
|
])
|
|
2285
|
-
])) : (l(), u("div", eo,
|
|
2285
|
+
])) : (l(), u("div", eo, k[6] || (k[6] = [
|
|
2286
2286
|
o("span", {
|
|
2287
2287
|
class: "pi pi-file",
|
|
2288
2288
|
style: { "font-size": "2.5rem" }
|
|
@@ -2292,14 +2292,14 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2292
2292
|
o("div", fo, [
|
|
2293
2293
|
o("div", to, [
|
|
2294
2294
|
o("span", no, E(e.fileInfo.fileName), 1),
|
|
2295
|
-
!e.fileInfo.isAudio && !e.fileInfo.isVideo ? (l(), u("span", ao, E(e.fileInfo.fileSize), 1)) :
|
|
2296
|
-
e.fileInfo.isAudio ? (l(), u("span", so, E(`${
|
|
2297
|
-
e.fileInfo.isVideo ? (l(), u("span", io, E(M.value), 1)) :
|
|
2295
|
+
!e.fileInfo.isAudio && !e.fileInfo.isVideo ? (l(), u("span", ao, E(e.fileInfo.fileSize), 1)) : b("", !0),
|
|
2296
|
+
e.fileInfo.isAudio ? (l(), u("span", so, E(`${y.value} / ${M.value}`), 1)) : b("", !0),
|
|
2297
|
+
e.fileInfo.isVideo ? (l(), u("span", io, E(M.value), 1)) : b("", !0)
|
|
2298
2298
|
]),
|
|
2299
2299
|
o("div", oo, [
|
|
2300
2300
|
o("span", {
|
|
2301
2301
|
class: "pi pi-times",
|
|
2302
|
-
onClick:
|
|
2302
|
+
onClick: k[2] || (k[2] = (T) => n("reset"))
|
|
2303
2303
|
})
|
|
2304
2304
|
])
|
|
2305
2305
|
]),
|
|
@@ -2318,16 +2318,16 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2318
2318
|
src: e.fileInfo.previewUrl,
|
|
2319
2319
|
controls: "",
|
|
2320
2320
|
autoplay: ""
|
|
2321
|
-
}, null, 8, lo)) :
|
|
2321
|
+
}, null, 8, lo)) : b("", !0),
|
|
2322
2322
|
e.fileInfo.isImage ? (l(), u("img", {
|
|
2323
2323
|
key: 1,
|
|
2324
2324
|
class: "preview__modal-image",
|
|
2325
2325
|
src: e.fileInfo.previewUrl,
|
|
2326
2326
|
alt: "Image Preview"
|
|
2327
|
-
}, null, 8, uo)) :
|
|
2327
|
+
}, null, 8, uo)) : b("", !0)
|
|
2328
2328
|
]),
|
|
2329
2329
|
_: 1
|
|
2330
|
-
}, 8, ["theme"])) :
|
|
2330
|
+
}, 8, ["theme"])) : b("", !0)
|
|
2331
2331
|
]),
|
|
2332
2332
|
_: 1
|
|
2333
2333
|
})
|
|
@@ -2338,7 +2338,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
|
|
|
2338
2338
|
let f = "file";
|
|
2339
2339
|
return e.startsWith("image/") ? f = "image" : e.startsWith("video/") ? f = "video" : e.startsWith("audio/") && (f = "audio"), f;
|
|
2340
2340
|
}, ro = (e) => {
|
|
2341
|
-
const f = zn(e.type), t =
|
|
2341
|
+
const f = zn(e.type), t = v(!1), a = v(!1), n = v(!1), i = v("");
|
|
2342
2342
|
f === "image" ? t.value = !0 : f === "video" ? a.value = !0 : f === "audio" && (n.value = !0), t.value || a.value || n.value ? i.value = URL.createObjectURL(e) : i.value = "";
|
|
2343
2343
|
const s = ["б", "Кб", "Мб", "Гб"];
|
|
2344
2344
|
let r = e.size, c = 0;
|
|
@@ -2401,62 +2401,62 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
|
|
|
2401
2401
|
},
|
|
2402
2402
|
emits: ["fileUploaded"],
|
|
2403
2403
|
setup(e, { emit: f }) {
|
|
2404
|
-
const t = e, a =
|
|
2404
|
+
const t = e, a = v(""), n = v(), i = v(), s = se("chatAppId"), { setMessageFile: r, resetMessageFile: c, getMessage: d, setRecordingMessage: A } = ze(s), g = Q(() => !d().file), _ = () => {
|
|
2405
2405
|
const T = document.getElementById("chat-input-file-line-" + s);
|
|
2406
2406
|
T && (T.style.display = "none"), c(), i.value = void 0, a.value = "";
|
|
2407
2407
|
}, I = async () => {
|
|
2408
|
-
var T,
|
|
2409
|
-
|
|
2410
|
-
},
|
|
2408
|
+
var T, x;
|
|
2409
|
+
_(), (T = n.value) != null && T.files && k((x = n.value) == null ? void 0 : x.files[0]);
|
|
2410
|
+
}, y = (T) => {
|
|
2411
2411
|
n.value && g && (n.value.accept = T.action, n.value.click());
|
|
2412
2412
|
}, M = () => {
|
|
2413
2413
|
n.value && g && t.state == "active" && n.value.click();
|
|
2414
|
-
},
|
|
2415
|
-
var
|
|
2416
|
-
const
|
|
2417
|
-
if (
|
|
2418
|
-
for (let
|
|
2419
|
-
if (
|
|
2414
|
+
}, h = async (T) => {
|
|
2415
|
+
var C;
|
|
2416
|
+
const x = (C = T.clipboardData) == null ? void 0 : C.items;
|
|
2417
|
+
if (x) {
|
|
2418
|
+
for (let w of x)
|
|
2419
|
+
if (w.type.indexOf("image") !== -1) {
|
|
2420
2420
|
T.preventDefault();
|
|
2421
|
-
const m =
|
|
2422
|
-
m &&
|
|
2421
|
+
const m = w.getAsFile();
|
|
2422
|
+
m && k(m);
|
|
2423
2423
|
}
|
|
2424
2424
|
}
|
|
2425
|
-
},
|
|
2425
|
+
}, k = async (T) => {
|
|
2426
2426
|
a.value = "uploading", A(!0);
|
|
2427
|
-
const
|
|
2428
|
-
await ft(
|
|
2429
|
-
if (A(!1), a.value =
|
|
2427
|
+
const x = typeof t.filebumpUrl == "string" ? t.filebumpUrl : null;
|
|
2428
|
+
await ft(x, T).then((C) => {
|
|
2429
|
+
if (A(!1), a.value = C.status, C.status == "success") {
|
|
2430
2430
|
r({
|
|
2431
|
-
url:
|
|
2432
|
-
name:
|
|
2433
|
-
size:
|
|
2434
|
-
type:
|
|
2431
|
+
url: C.url,
|
|
2432
|
+
name: C.name,
|
|
2433
|
+
size: C.size,
|
|
2434
|
+
type: C.type
|
|
2435
2435
|
});
|
|
2436
|
-
const
|
|
2437
|
-
|
|
2438
|
-
previewUrl:
|
|
2439
|
-
isImage:
|
|
2440
|
-
isVideo:
|
|
2441
|
-
isAudio:
|
|
2442
|
-
fileName:
|
|
2443
|
-
fileSize:
|
|
2436
|
+
const w = document.getElementById("chat-input-file-line-" + s);
|
|
2437
|
+
w && (w.style.display = "inherit"), C.preview && (i.value = {
|
|
2438
|
+
previewUrl: C.preview.previewUrl,
|
|
2439
|
+
isImage: C.preview.isImage,
|
|
2440
|
+
isVideo: C.preview.isVideo,
|
|
2441
|
+
isAudio: C.preview.isAudio,
|
|
2442
|
+
fileName: C.name,
|
|
2443
|
+
fileSize: C.preview.fileSize
|
|
2444
2444
|
});
|
|
2445
2445
|
}
|
|
2446
2446
|
});
|
|
2447
2447
|
};
|
|
2448
2448
|
return me(() => {
|
|
2449
|
-
window.addEventListener("paste",
|
|
2450
|
-
}), (T,
|
|
2451
|
-
a.value === "uploading" ? (l(), u("div", _o,
|
|
2449
|
+
window.addEventListener("paste", h);
|
|
2450
|
+
}), (T, x) => (l(), u(J, null, [
|
|
2451
|
+
a.value === "uploading" ? (l(), u("div", _o, x[0] || (x[0] = [
|
|
2452
2452
|
o("p", null, "Загрузка файла...", -1)
|
|
2453
|
-
]))) : a.value === "error" ? (l(), u("div", ho,
|
|
2453
|
+
]))) : a.value === "error" ? (l(), u("div", ho, x[1] || (x[1] = [
|
|
2454
2454
|
o("p", null, "Ошибка при загрузке файла.", -1)
|
|
2455
|
-
]))) :
|
|
2455
|
+
]))) : b("", !0),
|
|
2456
2456
|
o("span", {
|
|
2457
2457
|
class: S(["file-uploader__trigger", { "file-uploader__disabled": !g.value || e.state == "disabled" }]),
|
|
2458
2458
|
disabled: !g.value || e.state == "disabled",
|
|
2459
|
-
onClick:
|
|
2459
|
+
onClick: y,
|
|
2460
2460
|
onButtonClick: M
|
|
2461
2461
|
}, [
|
|
2462
2462
|
Y(po)
|
|
@@ -2475,9 +2475,9 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
|
|
|
2475
2475
|
i.value ? (l(), B(et, {
|
|
2476
2476
|
key: 0,
|
|
2477
2477
|
"file-info": i.value,
|
|
2478
|
-
onReset:
|
|
2479
|
-
}, null, 8, ["file-info"])) :
|
|
2480
|
-
], 8, ["to"])) :
|
|
2478
|
+
onReset: _
|
|
2479
|
+
}, null, 8, ["file-info"])) : b("", !0)
|
|
2480
|
+
], 8, ["to"])) : b("", !0)
|
|
2481
2481
|
], 64));
|
|
2482
2482
|
}
|
|
2483
2483
|
}), I6 = /* @__PURE__ */ O(bo, [["__scopeId", "data-v-d85f8dc5"]]), yo = { key: 0 }, Mo = ["value", "selected"], wo = {
|
|
@@ -2507,13 +2507,13 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
|
|
|
2507
2507
|
o("select", {
|
|
2508
2508
|
onChange: A[0] || (A[0] = (g) => r(g))
|
|
2509
2509
|
}, [
|
|
2510
|
-
(l(!0), u(J, null, le(t.themes, (g,
|
|
2511
|
-
key:
|
|
2510
|
+
(l(!0), u(J, null, le(t.themes, (g, _) => (l(), u("option", {
|
|
2511
|
+
key: _,
|
|
2512
2512
|
value: g.code,
|
|
2513
2513
|
selected: g.default === !0
|
|
2514
2514
|
}, E(g.name), 9, Mo))), 128))
|
|
2515
2515
|
], 32)
|
|
2516
|
-
])) :
|
|
2516
|
+
])) : b("", !0);
|
|
2517
2517
|
}
|
|
2518
2518
|
}, k6 = /* @__PURE__ */ O(wo, [["__scopeId", "data-v-d6377896"]]), Co = ["id"], tt = /* @__PURE__ */ G({
|
|
2519
2519
|
__name: "ButtonContextMenu",
|
|
@@ -2540,70 +2540,70 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
|
|
|
2540
2540
|
},
|
|
2541
2541
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
|
2542
2542
|
setup(e, { expose: f, emit: t }) {
|
|
2543
|
-
const a = se("chatAppId"), n = se("extChatAppId"), { getTheme: i } = Ue(a), s = e, r = G1(), c = t, d =
|
|
2544
|
-
|
|
2543
|
+
const a = se("chatAppId"), n = se("extChatAppId"), { getTheme: i } = Ue(a), s = e, r = G1(), c = t, d = v(), A = v(), g = v(!1), _ = (w) => {
|
|
2544
|
+
x(), c("click", w);
|
|
2545
2545
|
}, I = () => {
|
|
2546
|
-
s.disabled || (s.mode == "click" && !g.value ? T() : s.mode == "click" && g.value &&
|
|
2547
|
-
},
|
|
2546
|
+
s.disabled || (s.mode == "click" && !g.value ? T() : s.mode == "click" && g.value && x(), c("buttonClick"));
|
|
2547
|
+
}, y = () => {
|
|
2548
2548
|
s.disabled || s.mode == "hover" && T();
|
|
2549
2549
|
}, M = () => {
|
|
2550
|
-
s.disabled || s.mode == "hover" &&
|
|
2551
|
-
},
|
|
2550
|
+
s.disabled || s.mode == "hover" && x();
|
|
2551
|
+
}, h = () => {
|
|
2552
2552
|
c("menuMouseEnter"), s.disabled || s.mode == "hover" && T();
|
|
2553
|
-
},
|
|
2554
|
-
c("menuMouseLeave"), s.disabled || s.mode == "hover" &&
|
|
2553
|
+
}, k = () => {
|
|
2554
|
+
c("menuMouseLeave"), s.disabled || s.mode == "hover" && x();
|
|
2555
2555
|
}, T = () => {
|
|
2556
2556
|
if (A.value && d.value) {
|
|
2557
|
-
const
|
|
2558
|
-
|
|
2559
|
-
const
|
|
2560
|
-
|
|
2557
|
+
const w = d.value, m = A.value.getBoundingClientRect();
|
|
2558
|
+
w.style.display = "inherit";
|
|
2559
|
+
const p = d.value.getBoundingClientRect();
|
|
2560
|
+
w.style.display = "none", _e(() => {
|
|
2561
2561
|
const N = {
|
|
2562
|
-
left: { top: m.top - (
|
|
2563
|
-
right: { top: m.top - (
|
|
2564
|
-
bottom: { top: (m == null ? void 0 : m.bottom) -
|
|
2565
|
-
top: { top: m.top -
|
|
2566
|
-
"top-right": { top: m.top -
|
|
2562
|
+
left: { top: m.top - (p.height - m.height) / 2 - p.top, left: m.left - p.width - p.left },
|
|
2563
|
+
right: { top: m.top - (p.height - m.height) / 2 - p.top, left: m.left + m.width - p.left },
|
|
2564
|
+
bottom: { top: (m == null ? void 0 : m.bottom) - p.top, left: (m == null ? void 0 : m.left) - (p.width - m.width) / 2 - p.left },
|
|
2565
|
+
top: { top: m.top - p.height - p.top, left: (m == null ? void 0 : m.left) - (p.width - m.width) / 2 - p.left },
|
|
2566
|
+
"top-right": { top: m.top - p.height, left: m.right - p.width / 2 }
|
|
2567
2567
|
};
|
|
2568
|
-
|
|
2568
|
+
w.style.top = N[s.menuSide].top + "px", w.style.left = N[s.menuSide].left + "px", w.style.opacity = "1", w.style.display = "inherit", g.value = !0;
|
|
2569
2569
|
});
|
|
2570
2570
|
}
|
|
2571
|
-
},
|
|
2571
|
+
}, x = () => {
|
|
2572
2572
|
if (d.value) {
|
|
2573
|
-
const
|
|
2574
|
-
|
|
2573
|
+
const w = d.value;
|
|
2574
|
+
w && (w.style.top = "0", w.style.left = "0", w.style.opacity = "0", w.style.display = "none", g.value = !1);
|
|
2575
2575
|
}
|
|
2576
|
-
},
|
|
2577
|
-
s.mode == "click" && A.value && !A.value.contains(
|
|
2576
|
+
}, C = (w) => {
|
|
2577
|
+
s.mode == "click" && A.value && !A.value.contains(w.target) && x();
|
|
2578
2578
|
};
|
|
2579
2579
|
return me(() => {
|
|
2580
2580
|
_e(() => {
|
|
2581
|
-
d.value = document.getElementById("context-menu-" + r + n), d.value && (
|
|
2581
|
+
d.value = document.getElementById("context-menu-" + r + n), d.value && (x(), document.addEventListener("click", C));
|
|
2582
2582
|
});
|
|
2583
2583
|
}), cf(() => {
|
|
2584
|
-
document.removeEventListener("click",
|
|
2584
|
+
document.removeEventListener("click", C);
|
|
2585
2585
|
}), f({
|
|
2586
2586
|
updatePosition: T,
|
|
2587
|
-
hideMenu:
|
|
2588
|
-
}), (
|
|
2587
|
+
hideMenu: x
|
|
2588
|
+
}), (w, m) => (l(), u("button", {
|
|
2589
2589
|
id: "container-" + D(r) + D(n),
|
|
2590
2590
|
ref_key: "actionScope",
|
|
2591
2591
|
ref: A,
|
|
2592
2592
|
style: { position: "relative", width: "fit-content", border: "none", background: "transparent", height: "fit-content" },
|
|
2593
|
-
onMouseenter:
|
|
2593
|
+
onMouseenter: y,
|
|
2594
2594
|
onMouseleave: M
|
|
2595
2595
|
}, [
|
|
2596
2596
|
o("div", { onClick: I }, [
|
|
2597
|
-
oe(
|
|
2597
|
+
oe(w.$slots, "default")
|
|
2598
2598
|
]),
|
|
2599
2599
|
(l(), B(ke, { to: "body" }, [
|
|
2600
2600
|
Y(D(_f), {
|
|
2601
2601
|
id: "context-menu-" + D(r) + D(n),
|
|
2602
2602
|
actions: e.actions,
|
|
2603
2603
|
"data-theme": D(i)().theme ? D(i)().theme : "light",
|
|
2604
|
-
onMouseenter:
|
|
2605
|
-
onMouseleave:
|
|
2606
|
-
onClick:
|
|
2604
|
+
onMouseenter: h,
|
|
2605
|
+
onMouseleave: k,
|
|
2606
|
+
onClick: _
|
|
2607
2607
|
}, null, 8, ["id", "actions", "data-theme"])
|
|
2608
2608
|
]))
|
|
2609
2609
|
], 40, Co));
|
|
@@ -2646,31 +2646,31 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
|
|
|
2646
2646
|
}
|
|
2647
2647
|
},
|
|
2648
2648
|
setup(e, { expose: f }) {
|
|
2649
|
-
const t = se("chatAppId"), { getTheme: a } = Ue(t), n =
|
|
2649
|
+
const t = se("chatAppId"), { getTheme: a } = Ue(t), n = v(), i = v(), s = v(!1), r = v(null), c = e, d = Q(() => ({
|
|
2650
2650
|
tooltip__text: !0,
|
|
2651
2651
|
[`tooltip--${c.position}`]: !0
|
|
2652
2652
|
})), A = () => {
|
|
2653
2653
|
r.value && (clearTimeout(r.value), r.value = null);
|
|
2654
2654
|
}, g = () => {
|
|
2655
|
-
console.log("startAutoShow called, trigger:", c.trigger), c.trigger === "auto" && (console.log("Starting auto show tooltip"), A(), s.value = !0,
|
|
2655
|
+
console.log("startAutoShow called, trigger:", c.trigger), c.trigger === "auto" && (console.log("Starting auto show tooltip"), A(), s.value = !0, _(), r.value = setTimeout(() => {
|
|
2656
2656
|
console.log("Auto hiding tooltip after", c.autoShowDuration, "ms"), s.value = !1, r.value = null;
|
|
2657
2657
|
}, c.autoShowDuration));
|
|
2658
|
-
},
|
|
2658
|
+
}, _ = () => {
|
|
2659
2659
|
_e(() => {
|
|
2660
2660
|
if (n.value && i.value) {
|
|
2661
|
-
const M = i.value,
|
|
2662
|
-
left: { top:
|
|
2663
|
-
right: { top:
|
|
2664
|
-
bottom: { top: (
|
|
2665
|
-
"bottom-left": { top: (
|
|
2666
|
-
top: { top:
|
|
2661
|
+
const M = i.value, h = n.value.getBoundingClientRect(), k = i.value.getBoundingClientRect(), T = k.left < 0 ? k.left : 0, x = k.top < 0 ? k.top : 0, C = {
|
|
2662
|
+
left: { top: h.top - (k.height - h.height) / 2 - x, left: (h == null ? void 0 : h.left) - k.width - T - c.offset },
|
|
2663
|
+
right: { top: h.top - (k.height - h.height) / 2 - x, left: (h == null ? void 0 : h.left) + h.width - T + c.offset },
|
|
2664
|
+
bottom: { top: (h == null ? void 0 : h.bottom) - x + c.offset, left: (h == null ? void 0 : h.left) - T },
|
|
2665
|
+
"bottom-left": { top: (h == null ? void 0 : h.bottom) - x + c.offset, left: (h == null ? void 0 : h.left) + h.width - k.width - T },
|
|
2666
|
+
top: { top: h.top - k.height - c.offset - x, left: (h == null ? void 0 : h.left) - T }
|
|
2667
2667
|
};
|
|
2668
|
-
M.style.top =
|
|
2668
|
+
M.style.top = C[c.position].top + "px", M.style.left = C[c.position].left + "px";
|
|
2669
2669
|
}
|
|
2670
2670
|
});
|
|
2671
2671
|
}, I = () => {
|
|
2672
|
-
c.trigger === "hover" && (s.value = !0),
|
|
2673
|
-
},
|
|
2672
|
+
c.trigger === "hover" && (s.value = !0), _();
|
|
2673
|
+
}, y = () => {
|
|
2674
2674
|
c.trigger === "hover" && (s.value = !1, _e(() => {
|
|
2675
2675
|
const M = D(i);
|
|
2676
2676
|
M && (M.style.top = "0", M.style.left = "0");
|
|
@@ -2681,13 +2681,13 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
|
|
|
2681
2681
|
}), f({
|
|
2682
2682
|
startAutoShow: g,
|
|
2683
2683
|
clearAutoTimer: A
|
|
2684
|
-
}), (M,
|
|
2684
|
+
}), (M, h) => (l(), u(J, null, [
|
|
2685
2685
|
o("div", {
|
|
2686
2686
|
ref_key: "container",
|
|
2687
2687
|
ref: n,
|
|
2688
2688
|
class: "tooltip-wrapper",
|
|
2689
2689
|
onMouseover: I,
|
|
2690
|
-
onMouseout:
|
|
2690
|
+
onMouseout: y
|
|
2691
2691
|
}, [
|
|
2692
2692
|
oe(M.$slots, "default", {}, void 0, !0)
|
|
2693
2693
|
], 544),
|
|
@@ -2700,7 +2700,7 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
|
|
|
2700
2700
|
ref: i,
|
|
2701
2701
|
"data-theme": D(a)().theme ? D(a)().theme : "light",
|
|
2702
2702
|
class: S(d.value)
|
|
2703
|
-
}, E(e.text), 11, To)) :
|
|
2703
|
+
}, E(e.text), 11, To)) : b("", !0)
|
|
2704
2704
|
]),
|
|
2705
2705
|
_: 1
|
|
2706
2706
|
})
|
|
@@ -2729,66 +2729,66 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
|
|
|
2729
2729
|
emits: ["selectItem"],
|
|
2730
2730
|
setup(e, { emit: f }) {
|
|
2731
2731
|
const t = e, a = Jt(t, "sidebarItems"), n = Jt(t, "menuActions"), i = f, s = Q(
|
|
2732
|
-
() => a.value.filter((m) => m.isFixedBottom).sort((m,
|
|
2732
|
+
() => a.value.filter((m) => m.isFixedBottom).sort((m, p) => p.notificationCount - m.notificationCount)
|
|
2733
2733
|
), r = Q(
|
|
2734
|
-
() => a.value.filter((m) => !m.isFixedBottom).sort((m,
|
|
2734
|
+
() => a.value.filter((m) => !m.isFixedBottom).sort((m, p) => p.notificationCount - m.notificationCount)
|
|
2735
2735
|
), c = (m) => {
|
|
2736
|
-
const
|
|
2737
|
-
i("selectItem",
|
|
2738
|
-
}, d = (m,
|
|
2739
|
-
|
|
2736
|
+
const p = a.value.find((N) => N.itemId === m);
|
|
2737
|
+
i("selectItem", p);
|
|
2738
|
+
}, d = (m, p) => {
|
|
2739
|
+
C(m.currentTarget), c(p);
|
|
2740
2740
|
}, A = (m) => {
|
|
2741
|
-
const
|
|
2742
|
-
return
|
|
2741
|
+
const p = m.split(" ");
|
|
2742
|
+
return p.length > 2 ? p.slice(0, 2).join(" ") : m;
|
|
2743
2743
|
}, g = (m) => {
|
|
2744
2744
|
console.log("Выбрано действие:", m), typeof m.action == "function" && m.action();
|
|
2745
|
-
},
|
|
2745
|
+
}, _ = () => {
|
|
2746
2746
|
console.log("Кнопка меню была нажата");
|
|
2747
|
-
}, I =
|
|
2748
|
-
const
|
|
2749
|
-
if (!
|
|
2750
|
-
const N =
|
|
2747
|
+
}, I = v(null), y = v(!1), M = v(0), h = v(40), k = v(!1), T = (m) => {
|
|
2748
|
+
const p = I.value;
|
|
2749
|
+
if (!p || !m) return 0;
|
|
2750
|
+
const N = p.getBoundingClientRect(), z = m.getBoundingClientRect(), ee = z.top + z.height / 2 - N.top - h.value / 2;
|
|
2751
2751
|
return Math.max(0, ee);
|
|
2752
|
-
},
|
|
2752
|
+
}, x = () => {
|
|
2753
2753
|
if (!I.value) return;
|
|
2754
|
-
const
|
|
2755
|
-
|
|
2756
|
-
},
|
|
2754
|
+
const p = I.value.querySelector(".sidebar__image--active");
|
|
2755
|
+
p ? (M.value = T(p), y.value = !0) : y.value = !1;
|
|
2756
|
+
}, C = (m) => {
|
|
2757
2757
|
try {
|
|
2758
2758
|
if (!m || !I.value) return;
|
|
2759
|
-
const
|
|
2760
|
-
if (!
|
|
2761
|
-
const N = T(
|
|
2762
|
-
|
|
2759
|
+
const p = m.querySelector(".sidebar__image");
|
|
2760
|
+
if (!p) return;
|
|
2761
|
+
const N = T(p), z = 12, U = 160;
|
|
2762
|
+
k.value = !0, h.value = z, setTimeout(() => {
|
|
2763
2763
|
M.value = N, requestAnimationFrame(() => {
|
|
2764
|
-
|
|
2765
|
-
|
|
2764
|
+
h.value = 40, setTimeout(() => {
|
|
2765
|
+
k.value = !1;
|
|
2766
2766
|
}, U);
|
|
2767
2767
|
});
|
|
2768
2768
|
}, U);
|
|
2769
2769
|
} catch {
|
|
2770
2770
|
}
|
|
2771
|
-
},
|
|
2771
|
+
}, w = () => x();
|
|
2772
2772
|
return me(() => {
|
|
2773
|
-
var
|
|
2774
|
-
_e(
|
|
2775
|
-
const m = (
|
|
2776
|
-
m && m.addEventListener("scroll",
|
|
2773
|
+
var p;
|
|
2774
|
+
_e(x), window.addEventListener("resize", w);
|
|
2775
|
+
const m = (p = I.value) == null ? void 0 : p.querySelector(".sidebar__scroll-container");
|
|
2776
|
+
m && m.addEventListener("scroll", x);
|
|
2777
2777
|
}), cf(() => {
|
|
2778
|
-
var
|
|
2779
|
-
window.removeEventListener("resize",
|
|
2780
|
-
const m = (
|
|
2781
|
-
m && m.removeEventListener("scroll",
|
|
2782
|
-
}), ne(() => a.value.map((m) => m.selected), () => _e(
|
|
2778
|
+
var p;
|
|
2779
|
+
window.removeEventListener("resize", w);
|
|
2780
|
+
const m = (p = I.value) == null ? void 0 : p.querySelector(".sidebar__scroll-container");
|
|
2781
|
+
m && m.removeEventListener("scroll", x);
|
|
2782
|
+
}), ne(() => a.value.map((m) => m.selected), () => _e(x)), (m, p) => (l(), u("div", {
|
|
2783
2783
|
ref_key: "containerRef",
|
|
2784
2784
|
ref: I,
|
|
2785
2785
|
class: S(["sidebar__container", { "sidebar-horizontal__container": e.horizontal }])
|
|
2786
2786
|
}, [
|
|
2787
|
-
!e.horizontal &&
|
|
2787
|
+
!e.horizontal && y.value ? (l(), u("span", {
|
|
2788
2788
|
key: 0,
|
|
2789
|
-
class: S(["sidebar__selected-bar", { "is-animating":
|
|
2790
|
-
style: re({ top: M.value + "px", height:
|
|
2791
|
-
}, null, 6)) :
|
|
2789
|
+
class: S(["sidebar__selected-bar", { "is-animating": k.value }]),
|
|
2790
|
+
style: re({ top: M.value + "px", height: h.value + "px" })
|
|
2791
|
+
}, null, 6)) : b("", !0),
|
|
2792
2792
|
o("div", Eo, [
|
|
2793
2793
|
o("ul", {
|
|
2794
2794
|
class: S(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": e.horizontal }])
|
|
@@ -2813,12 +2813,12 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
|
|
|
2813
2813
|
"sidebar-horizontal__image": e.horizontal
|
|
2814
2814
|
}])
|
|
2815
2815
|
}, null, 10, So),
|
|
2816
|
-
|
|
2817
|
-
N.notificationCount ? (l(), u("span", Vo, E(N.notificationCount > 99 ? "99+" : N.notificationCount), 1)) :
|
|
2816
|
+
p[0] || (p[0] = o("p", null, "Мои", -1)),
|
|
2817
|
+
N.notificationCount ? (l(), u("span", Vo, E(N.notificationCount > 99 ? "99+" : N.notificationCount), 1)) : b("", !0)
|
|
2818
2818
|
]),
|
|
2819
2819
|
_: 2,
|
|
2820
2820
|
__: [0]
|
|
2821
|
-
}, 1032, ["text"])) :
|
|
2821
|
+
}, 1032, ["text"])) : b("", !0)
|
|
2822
2822
|
], 10, jo))), 128))
|
|
2823
2823
|
], 2),
|
|
2824
2824
|
o("ul", {
|
|
@@ -2855,7 +2855,7 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
|
|
|
2855
2855
|
"sidebar-horizontal__image": e.horizontal
|
|
2856
2856
|
}])
|
|
2857
2857
|
}, null, 10, zo)),
|
|
2858
|
-
N.notificationCount ? (l(), u("span", Uo, E(N.notificationCount > 99 ? "99+" : N.notificationCount), 1)) :
|
|
2858
|
+
N.notificationCount ? (l(), u("span", Uo, E(N.notificationCount > 99 ? "99+" : N.notificationCount), 1)) : b("", !0)
|
|
2859
2859
|
], 10, Lo))), 128))
|
|
2860
2860
|
], 2)
|
|
2861
2861
|
]),
|
|
@@ -2865,7 +2865,7 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
|
|
|
2865
2865
|
mode: "click",
|
|
2866
2866
|
"menu-side": "top-right",
|
|
2867
2867
|
onClick: g,
|
|
2868
|
-
onButtonClick:
|
|
2868
|
+
onButtonClick: _
|
|
2869
2869
|
}, {
|
|
2870
2870
|
default: K(() => [
|
|
2871
2871
|
o("button", $o, [
|
|
@@ -2923,8 +2923,8 @@ const Yo = /* @__PURE__ */ O(Qo, [["render", Po]]), qo = { class: "chat-panel" }
|
|
|
2923
2923
|
])
|
|
2924
2924
|
]),
|
|
2925
2925
|
e.titleEnabled ? (l(), u("div", Zo, [
|
|
2926
|
-
e.title ? (l(), u("span", Ko, E(e.title), 1)) :
|
|
2927
|
-
])) :
|
|
2926
|
+
e.title ? (l(), u("span", Ko, E(e.title), 1)) : b("", !0)
|
|
2927
|
+
])) : b("", !0)
|
|
2928
2928
|
]),
|
|
2929
2929
|
o("div", null, [
|
|
2930
2930
|
oe(t.$slots, "content", {}, void 0, !0)
|
|
@@ -2957,10 +2957,10 @@ const Yo = /* @__PURE__ */ O(Qo, [["render", Po]]), qo = { class: "chat-panel" }
|
|
|
2957
2957
|
},
|
|
2958
2958
|
emits: ["selectChannel"],
|
|
2959
2959
|
setup(e, { emit: f }) {
|
|
2960
|
-
const t = e, a = se("chatAppId"), { getMessage: n } = ze(a), i = f, r =
|
|
2960
|
+
const t = e, a = se("chatAppId"), { getMessage: n } = ze(a), i = f, r = v(t.channels.find((d) => d.type === "default")), c = (d) => {
|
|
2961
2961
|
r.value = d, i("selectChannel", r.value);
|
|
2962
2962
|
};
|
|
2963
|
-
return (d, A) => D(n)().isRecording ?
|
|
2963
|
+
return (d, A) => D(n)().isRecording ? b("", !0) : (l(), u("div", {
|
|
2964
2964
|
key: 0,
|
|
2965
2965
|
class: S(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
|
|
2966
2966
|
}, [
|
|
@@ -2969,7 +2969,7 @@ const Yo = /* @__PURE__ */ O(Qo, [["render", Po]]), qo = { class: "chat-panel" }
|
|
|
2969
2969
|
key: 0,
|
|
2970
2970
|
src: r.value.icon,
|
|
2971
2971
|
class: "channels__icon"
|
|
2972
|
-
}, null, 8, Xo)) :
|
|
2972
|
+
}, null, 8, Xo)) : b("", !0),
|
|
2973
2973
|
o("span", el, E(r.value.title), 1)
|
|
2974
2974
|
])) : (l(), u("span", fl, E(D(he)("component.ChannelSelector.Placeholder")), 1)),
|
|
2975
2975
|
Y(tt, {
|
|
@@ -3000,18 +3000,18 @@ const E6 = (e, f = null) => {
|
|
|
3000
3000
|
const n = (A) => new Date(A.getFullYear(), A.getMonth(), A.getDate()).getTime(), i = /* @__PURE__ */ new Date(), s = n(i), r = new Date(i);
|
|
3001
3001
|
r.setDate(r.getDate() - 1);
|
|
3002
3002
|
const c = n(r), d = (A) => {
|
|
3003
|
-
const g = new Date(A * 1e3),
|
|
3004
|
-
return
|
|
3003
|
+
const g = new Date(A * 1e3), _ = n(g);
|
|
3004
|
+
return _ === s ? "Сегодня" : _ === c ? "Вчера" : g.toLocaleDateString();
|
|
3005
3005
|
};
|
|
3006
3006
|
f !== null && (a = d(f));
|
|
3007
3007
|
for (let A = 0; A < e.length; A++) {
|
|
3008
|
-
const g = e[A],
|
|
3009
|
-
|
|
3008
|
+
const g = e[A], _ = d(g.timestamp);
|
|
3009
|
+
_ !== a && (t.push({
|
|
3010
3010
|
isSeparator: !0,
|
|
3011
|
-
day:
|
|
3012
|
-
text:
|
|
3011
|
+
day: _,
|
|
3012
|
+
text: _,
|
|
3013
3013
|
type: "system.date"
|
|
3014
|
-
}), a =
|
|
3014
|
+
}), a = _), t.push(g);
|
|
3015
3015
|
}
|
|
3016
3016
|
return t;
|
|
3017
3017
|
}, j6 = async () => {
|
|
@@ -3082,42 +3082,42 @@ const E6 = (e, f = null) => {
|
|
|
3082
3082
|
},
|
|
3083
3083
|
emits: ["select", "action", "expand"],
|
|
3084
3084
|
setup(e, { emit: f }) {
|
|
3085
|
-
const t = e, a = f, n =
|
|
3085
|
+
const t = e, a = f, n = v(!1), i = v(!1), s = () => {
|
|
3086
3086
|
i.value = !0;
|
|
3087
|
-
}, r = (
|
|
3088
|
-
i.value ||
|
|
3089
|
-
}, c = (
|
|
3090
|
-
a("select", { chat: t.chat, dialog:
|
|
3087
|
+
}, r = (w) => {
|
|
3088
|
+
i.value || w.target instanceof HTMLElement && w.target.id != "noSelectButton" && a("select", { chat: t.chat, dialog: null }), i.value = !1;
|
|
3089
|
+
}, c = (w) => {
|
|
3090
|
+
a("select", { chat: t.chat, dialog: w });
|
|
3091
3091
|
}, d = () => {
|
|
3092
|
-
const
|
|
3093
|
-
return t.chat.isSelected &&
|
|
3094
|
-
}, A = (
|
|
3095
|
-
a("action", { chat: t.chat, ...
|
|
3096
|
-
},
|
|
3097
|
-
if (Number(
|
|
3098
|
-
if (Number(
|
|
3099
|
-
if (Number(
|
|
3100
|
-
}), I = Q(() => Ef(t.chat["lastMessage.status"]));
|
|
3101
|
-
let
|
|
3102
|
-
const
|
|
3092
|
+
const w = [];
|
|
3093
|
+
return t.chat.isSelected && w.push("chat-item__selected"), t.hasScroll && w.push("chat-item__with-scroll"), w.join(" ");
|
|
3094
|
+
}, A = (w) => w.isSelected ? "dialog__selected" : "", g = (w) => {
|
|
3095
|
+
a("action", { chat: t.chat, ...w });
|
|
3096
|
+
}, _ = () => t.chat.dialogs.toSorted((w, m) => {
|
|
3097
|
+
if (Number(w["lastActivity.timestamp"]) > Number(m["lastActivity.timestamp"])) return -1;
|
|
3098
|
+
if (Number(w["lastActivity.timestamp"]) < Number(m["lastActivity.timestamp"])) return 1;
|
|
3099
|
+
if (Number(w["lastActivity.timestamp"]) == Number(m["lastActivity.timestamp"])) return 0;
|
|
3100
|
+
}), I = Q(() => Ef(t.chat["lastMessage.status"])), y = Q(() => t.chat.showEmptyIndicator || t.chat.countUnread > 0), M = Q(() => t.chat.countUnread > 0 ? t.chat.countUnread > 99 ? "99+" : t.chat.countUnread : t.chat.showEmptyIndicator ? "" : void 0);
|
|
3101
|
+
let h;
|
|
3102
|
+
const k = v(0), T = [he("component.ChatItem.typing") + ".", he("component.ChatItem.typing") + "..", he("component.ChatItem.typing") + "..."], x = Q(() => t.chat.typing ? T[k.value] : t.chat.lastMessage);
|
|
3103
3103
|
ne(
|
|
3104
3104
|
() => t.chat.typing,
|
|
3105
3105
|
() => {
|
|
3106
|
-
t.chat.typing ?
|
|
3107
|
-
|
|
3108
|
-
}, 1e3) : (
|
|
3106
|
+
t.chat.typing ? h = setInterval(() => {
|
|
3107
|
+
k.value < 2 ? k.value += 1 : k.value = 0;
|
|
3108
|
+
}, 1e3) : (k.value = 0, clearInterval(h));
|
|
3109
3109
|
},
|
|
3110
3110
|
{ immediate: !0 }
|
|
3111
3111
|
);
|
|
3112
|
-
const
|
|
3113
|
-
var
|
|
3114
|
-
((
|
|
3112
|
+
const C = (w) => {
|
|
3113
|
+
var m;
|
|
3114
|
+
((m = w.relatedTarget) == null ? void 0 : m.className) == "context-menu__list" ? n.value = !0 : n.value = !1;
|
|
3115
3115
|
};
|
|
3116
|
-
return (
|
|
3116
|
+
return (w, m) => (l(), u("div", null, [
|
|
3117
3117
|
o("div", {
|
|
3118
3118
|
class: S(["chat-item__container", d()]),
|
|
3119
|
-
onMouseenter:
|
|
3120
|
-
onMouseleave:
|
|
3119
|
+
onMouseenter: m[2] || (m[2] = (p) => n.value = !0),
|
|
3120
|
+
onMouseleave: C,
|
|
3121
3121
|
onClick: r
|
|
3122
3122
|
}, [
|
|
3123
3123
|
o("div", nl, [
|
|
@@ -3149,14 +3149,14 @@ const E6 = (e, f = null) => {
|
|
|
3149
3149
|
position: "bottom"
|
|
3150
3150
|
}, {
|
|
3151
3151
|
default: K(() => [
|
|
3152
|
-
e.chat.lastMessage || e.chat.typing ? (l(), u("div", ll, E(x.value), 1)) :
|
|
3152
|
+
e.chat.lastMessage || e.chat.typing ? (l(), u("div", ll, E(x.value), 1)) : b("", !0)
|
|
3153
3153
|
]),
|
|
3154
3154
|
_: 1
|
|
3155
3155
|
}, 8, ["text"])
|
|
3156
3156
|
]),
|
|
3157
3157
|
o("div", ul, [
|
|
3158
|
-
e.chat["lastActivity.time"] && (!e.chat.actions || !n.value) ? (l(), u("div", cl, E(e.chat["lastActivity.time"]), 1)) :
|
|
3159
|
-
|
|
3158
|
+
e.chat["lastActivity.time"] && (!e.chat.actions || !n.value) ? (l(), u("div", cl, E(e.chat["lastActivity.time"]), 1)) : b("", !0),
|
|
3159
|
+
y.value ? (l(), u("div", rl, E(M.value), 1)) : b("", !0),
|
|
3160
3160
|
n.value && e.chat.actions ? (l(), B(tt, {
|
|
3161
3161
|
key: 2,
|
|
3162
3162
|
mode: "click",
|
|
@@ -3164,74 +3164,74 @@ const E6 = (e, f = null) => {
|
|
|
3164
3164
|
actions: e.chat.actions,
|
|
3165
3165
|
onClick: g,
|
|
3166
3166
|
onButtonClick: s,
|
|
3167
|
-
onMenuMouseLeave:
|
|
3167
|
+
onMenuMouseLeave: m[0] || (m[0] = (p) => n.value = !1)
|
|
3168
3168
|
}, {
|
|
3169
|
-
default: K(() =>
|
|
3169
|
+
default: K(() => m[3] || (m[3] = [
|
|
3170
3170
|
o("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
|
|
3171
3171
|
])),
|
|
3172
3172
|
_: 1,
|
|
3173
3173
|
__: [3]
|
|
3174
|
-
}, 8, ["actions"])) :
|
|
3174
|
+
}, 8, ["actions"])) : b("", !0),
|
|
3175
3175
|
e.chat.countUnread < 1 ? (l(), u("div", dl, [
|
|
3176
3176
|
D(Nf).includes(e.chat["lastMessage.status"]) ? (l(), u("div", {
|
|
3177
3177
|
key: 0,
|
|
3178
3178
|
class: S(["chat-item__status-message", I.value])
|
|
3179
3179
|
}, [
|
|
3180
|
-
e.chat["lastMessage.status"] !== "sent" ? (l(), u("span", Al)) :
|
|
3181
|
-
|
|
3182
|
-
], 2)) :
|
|
3183
|
-
e.chat.isFixedTop || e.chat.isFixedBottom ? (l(), u("span", gl)) :
|
|
3184
|
-
])) :
|
|
3180
|
+
e.chat["lastMessage.status"] !== "sent" ? (l(), u("span", Al)) : b("", !0),
|
|
3181
|
+
m[4] || (m[4] = o("span", { class: "pi pi-check" }, null, -1))
|
|
3182
|
+
], 2)) : b("", !0),
|
|
3183
|
+
e.chat.isFixedTop || e.chat.isFixedBottom ? (l(), u("span", gl)) : b("", !0)
|
|
3184
|
+
])) : b("", !0)
|
|
3185
3185
|
]),
|
|
3186
3186
|
t.showDialogs && e.chat.dialogs ? (l(), u("div", {
|
|
3187
3187
|
key: 0,
|
|
3188
3188
|
class: "chat-item__dialog-buttons",
|
|
3189
|
-
onClick:
|
|
3189
|
+
onClick: m[1] || (m[1] = (p) => a("expand", t.chat))
|
|
3190
3190
|
}, [
|
|
3191
|
-
t.showDialogs && !e.chat.dialogsExpanded ? (l(), u("button", ml,
|
|
3191
|
+
t.showDialogs && !e.chat.dialogsExpanded ? (l(), u("button", ml, m[5] || (m[5] = [
|
|
3192
3192
|
o("span", {
|
|
3193
3193
|
id: "noSelectButton",
|
|
3194
3194
|
class: "pi pi-angle-down"
|
|
3195
3195
|
}, null, -1)
|
|
3196
|
-
]))) :
|
|
3197
|
-
t.showDialogs && e.chat.dialogsExpanded ? (l(), u("button", pl,
|
|
3196
|
+
]))) : b("", !0),
|
|
3197
|
+
t.showDialogs && e.chat.dialogsExpanded ? (l(), u("button", pl, m[6] || (m[6] = [
|
|
3198
3198
|
o("span", {
|
|
3199
3199
|
id: "noSelectButton",
|
|
3200
3200
|
class: "pi pi-angle-up"
|
|
3201
3201
|
}, null, -1)
|
|
3202
|
-
]))) :
|
|
3203
|
-
])) :
|
|
3202
|
+
]))) : b("", !0)
|
|
3203
|
+
])) : b("", !0)
|
|
3204
3204
|
], 34),
|
|
3205
3205
|
t.showDialogs && e.chat.dialogsExpanded ? (l(), u("div", {
|
|
3206
3206
|
key: 0,
|
|
3207
3207
|
class: S(["dialog__container", { "dialog__container--with-scroll": t.hasScroll }])
|
|
3208
3208
|
}, [
|
|
3209
|
-
(l(!0), u(J, null, le(
|
|
3210
|
-
key:
|
|
3211
|
-
class: S(["dialog__item", A(
|
|
3212
|
-
onClick: (
|
|
3209
|
+
(l(!0), u(J, null, le(_(), (p) => (l(), u("div", {
|
|
3210
|
+
key: p.dialogId,
|
|
3211
|
+
class: S(["dialog__item", A(p)]),
|
|
3212
|
+
onClick: (N) => c(p)
|
|
3213
3213
|
}, [
|
|
3214
|
-
|
|
3214
|
+
p.icon ? (l(), u("img", {
|
|
3215
3215
|
key: 0,
|
|
3216
3216
|
class: "dialog__icon",
|
|
3217
|
-
src:
|
|
3217
|
+
src: p.icon,
|
|
3218
3218
|
height: "16",
|
|
3219
3219
|
width: "16"
|
|
3220
3220
|
}, null, 8, hl)) : (l(), u("span", vl)),
|
|
3221
3221
|
o("div", bl, [
|
|
3222
|
-
o("div", yl, E(
|
|
3223
|
-
o("div", Ml, E(
|
|
3222
|
+
o("div", yl, E(p.name), 1),
|
|
3223
|
+
o("div", Ml, E(p["lastActivity.time"]), 1)
|
|
3224
3224
|
]),
|
|
3225
|
-
|
|
3225
|
+
p.countUnread > 0 ? (l(), u("div", {
|
|
3226
3226
|
key: 2,
|
|
3227
3227
|
class: "chat-item__unread",
|
|
3228
|
-
style: re({ backgroundColor:
|
|
3229
|
-
}, E(
|
|
3228
|
+
style: re({ backgroundColor: p.colorUnread ? p.colorUnread : null })
|
|
3229
|
+
}, E(p.countUnread > 99 ? "99+" : p.countUnread), 5)) : b("", !0)
|
|
3230
3230
|
], 10, _l))), 128))
|
|
3231
|
-
], 2)) :
|
|
3231
|
+
], 2)) : b("", !0)
|
|
3232
3232
|
]));
|
|
3233
3233
|
}
|
|
3234
|
-
}), At = /* @__PURE__ */ O(wl, [["__scopeId", "data-v-
|
|
3234
|
+
}), At = /* @__PURE__ */ O(wl, [["__scopeId", "data-v-7cd036b6"]]), Cl = {}, Il = {
|
|
3235
3235
|
width: "17",
|
|
3236
3236
|
height: "16",
|
|
3237
3237
|
viewBox: "0 0 17 16",
|
|
@@ -3264,7 +3264,7 @@ const xl = /* @__PURE__ */ O(Cl, [["render", kl]]), Dl = { class: "chat-filter__
|
|
|
3264
3264
|
},
|
|
3265
3265
|
emits: ["update"],
|
|
3266
3266
|
setup(e, { emit: f }) {
|
|
3267
|
-
const t =
|
|
3267
|
+
const t = v(""), a = f, n = () => {
|
|
3268
3268
|
const i = D(t);
|
|
3269
3269
|
a("update", i.value);
|
|
3270
3270
|
};
|
|
@@ -3381,25 +3381,25 @@ const Ql = /* @__PURE__ */ O(Bl, [["render", Rl]]), Fl = { class: "contact-info"
|
|
|
3381
3381
|
},
|
|
3382
3382
|
emits: ["close", "open-crm", "select-attribute-channel"],
|
|
3383
3383
|
setup(e, { emit: f }) {
|
|
3384
|
-
const t = e, a = f, n =
|
|
3384
|
+
const t = e, a = f, n = v(t.contact.attributes[0].id || ""), i = v(t.channels[0] || null), s = v(!1), r = (M) => {
|
|
3385
3385
|
i.value = M, s.value = !1, console.log(`Выбран канал связи: ${M.title}`), a("select-attribute-channel", {
|
|
3386
3386
|
attributeId: n.value,
|
|
3387
3387
|
channelId: M.channelId
|
|
3388
3388
|
});
|
|
3389
3389
|
}, c = (M) => (M == null ? void 0 : M.replace(/\D/g, "")) || "", d = Q(() => {
|
|
3390
3390
|
var M;
|
|
3391
|
-
return (M = t.contact.attributes) == null ? void 0 : M.find((
|
|
3391
|
+
return (M = t.contact.attributes) == null ? void 0 : M.find((h) => h.id === n.value);
|
|
3392
3392
|
}), A = Q(() => {
|
|
3393
3393
|
if (i.value)
|
|
3394
3394
|
return i.value;
|
|
3395
3395
|
if (!d.value) return t.channels[0] || null;
|
|
3396
3396
|
const M = c(d.value.value);
|
|
3397
|
-
return M ? t.channels.find((
|
|
3398
|
-
var m,
|
|
3399
|
-
const T = ((m =
|
|
3400
|
-
return
|
|
3397
|
+
return M ? t.channels.find((k) => {
|
|
3398
|
+
var m, p;
|
|
3399
|
+
const T = ((m = k.title) == null ? void 0 : m.toLowerCase()) || "", x = ((p = k.channelId) == null ? void 0 : p.toLowerCase()) || "", C = T.includes(M), w = ["whatsapp", "waba", "telegram"].some((N) => x.includes(N));
|
|
3400
|
+
return C && w;
|
|
3401
3401
|
}) || t.channels[0] || { title: "default", channelId: "fallback" } : t.channels[0] || null;
|
|
3402
|
-
}), g = Q(() => t.channels),
|
|
3402
|
+
}), g = Q(() => t.channels), _ = (M) => M ? M.includes("whatsapp") || M.includes("waba") ? Ul : M.includes("telegram") ? Ql : null : null, I = (M) => !t.currentDialog || !Object.keys(t.currentDialog) ? !1 : t.currentDialog.attributeId === M.id, y = (M) => {
|
|
3403
3403
|
a("select-attribute-channel", {
|
|
3404
3404
|
attributeId: M.id,
|
|
3405
3405
|
channelId: i.value.channelId
|
|
@@ -3408,24 +3408,24 @@ const Ql = /* @__PURE__ */ O(Bl, [["render", Rl]]), Fl = { class: "contact-info"
|
|
|
3408
3408
|
return ne(
|
|
3409
3409
|
() => t.contact,
|
|
3410
3410
|
() => {
|
|
3411
|
-
var M,
|
|
3412
|
-
(
|
|
3411
|
+
var M, h;
|
|
3412
|
+
(h = (M = t.contact) == null ? void 0 : M.attributes) != null && h.length && !n.value && (n.value = t.contact.attributes[0].id);
|
|
3413
3413
|
},
|
|
3414
3414
|
{ immediate: !0 }
|
|
3415
|
-
), (M,
|
|
3416
|
-
var
|
|
3415
|
+
), (M, h) => {
|
|
3416
|
+
var k, T, x, C;
|
|
3417
3417
|
return l(), u("div", Fl, [
|
|
3418
3418
|
o("div", Pl, [
|
|
3419
|
-
(l(!0), u(J, null, le(((
|
|
3420
|
-
key:
|
|
3421
|
-
class: S(["contact-info__attribute-item", { "contact-info__attribute-item--current-chat": I(
|
|
3419
|
+
(l(!0), u(J, null, le(((k = e.contact) == null ? void 0 : k.attributes) || [], (w, m) => (l(), u("div", {
|
|
3420
|
+
key: w.id,
|
|
3421
|
+
class: S(["contact-info__attribute-item", { "contact-info__attribute-item--current-chat": I(w) }])
|
|
3422
3422
|
}, [
|
|
3423
3423
|
ge(o("input", {
|
|
3424
3424
|
id: `attr-${m}`,
|
|
3425
|
-
"onUpdate:modelValue":
|
|
3425
|
+
"onUpdate:modelValue": h[0] || (h[0] = (p) => n.value = p),
|
|
3426
3426
|
type: "radio",
|
|
3427
|
-
value:
|
|
3428
|
-
onChange: (
|
|
3427
|
+
value: w.id,
|
|
3428
|
+
onChange: (p) => y(w)
|
|
3429
3429
|
}, null, 40, Yl), [
|
|
3430
3430
|
[Tt, n.value]
|
|
3431
3431
|
]),
|
|
@@ -3434,20 +3434,20 @@ const Ql = /* @__PURE__ */ O(Bl, [["render", Rl]]), Fl = { class: "contact-info"
|
|
|
3434
3434
|
}, [
|
|
3435
3435
|
o("span", Hl, [
|
|
3436
3436
|
o("span", Wl, [
|
|
3437
|
-
n.value ===
|
|
3437
|
+
n.value === w.id ? (l(), B(Vl, { key: 0 })) : b("", !0)
|
|
3438
3438
|
])
|
|
3439
3439
|
]),
|
|
3440
|
-
$e(" " + E(
|
|
3441
|
-
I(
|
|
3440
|
+
$e(" " + E(w.value) + " ", 1),
|
|
3441
|
+
I(w) ? (l(), u("span", Zl, " Текущий чат ")) : b("", !0)
|
|
3442
3442
|
], 8, ql)
|
|
3443
3443
|
], 2))), 128))
|
|
3444
3444
|
]),
|
|
3445
3445
|
o("div", Kl, [
|
|
3446
|
-
|
|
3446
|
+
h[3] || (h[3] = o("label", { class: "contact-info__channel-label" }, "Канал связи", -1)),
|
|
3447
3447
|
o("div", Jl, [
|
|
3448
3448
|
o("div", {
|
|
3449
3449
|
class: "contact-info__select-trigger",
|
|
3450
|
-
onClick:
|
|
3450
|
+
onClick: h[1] || (h[1] = (w) => s.value = !s.value)
|
|
3451
3451
|
}, [
|
|
3452
3452
|
o("div", Gl, [
|
|
3453
3453
|
(T = A.value) != null && T.icon ? (l(), u("img", {
|
|
@@ -3456,47 +3456,47 @@ const Ql = /* @__PURE__ */ O(Bl, [["render", Rl]]), Fl = { class: "contact-info"
|
|
|
3456
3456
|
alt: A.value.title,
|
|
3457
3457
|
width: "22",
|
|
3458
3458
|
height: "22"
|
|
3459
|
-
}, null, 8, Xl)) : (l(), B(Se(
|
|
3459
|
+
}, null, 8, Xl)) : (l(), B(Se(_((x = A.value) == null ? void 0 : x.channelId)), {
|
|
3460
3460
|
key: 1,
|
|
3461
3461
|
class: "contact-info__icon-component"
|
|
3462
3462
|
}))
|
|
3463
3463
|
]),
|
|
3464
|
-
o("span", null, E((
|
|
3464
|
+
o("span", null, E((C = A.value) == null ? void 0 : C.title), 1),
|
|
3465
3465
|
o("div", {
|
|
3466
3466
|
class: S(["contact-info__arrow", { "contact-info__arrow--open": s.value }])
|
|
3467
3467
|
}, null, 2)
|
|
3468
3468
|
]),
|
|
3469
3469
|
s.value ? (l(), u("div", e0, [
|
|
3470
|
-
(l(!0), u(J, null, le(g.value, (
|
|
3471
|
-
key:
|
|
3470
|
+
(l(!0), u(J, null, le(g.value, (w) => (l(), u("div", {
|
|
3471
|
+
key: w.channelId,
|
|
3472
3472
|
class: "contact-info__select-option",
|
|
3473
|
-
onClick: (m) => r(
|
|
3473
|
+
onClick: (m) => r(w)
|
|
3474
3474
|
}, [
|
|
3475
3475
|
o("div", t0, [
|
|
3476
|
-
|
|
3476
|
+
w.icon ? (l(), u("img", {
|
|
3477
3477
|
key: 0,
|
|
3478
|
-
src:
|
|
3479
|
-
alt:
|
|
3478
|
+
src: w.icon,
|
|
3479
|
+
alt: w.title,
|
|
3480
3480
|
width: "22",
|
|
3481
3481
|
height: "22"
|
|
3482
|
-
}, null, 8, n0)) : (l(), B(Se(
|
|
3482
|
+
}, null, 8, n0)) : (l(), B(Se(_(w.channelId)), {
|
|
3483
3483
|
key: 1,
|
|
3484
3484
|
class: "contact-info__icon-component"
|
|
3485
3485
|
}))
|
|
3486
3486
|
]),
|
|
3487
|
-
o("span", null, E(
|
|
3487
|
+
o("span", null, E(w.title), 1)
|
|
3488
3488
|
], 8, f0))), 128))
|
|
3489
|
-
])) :
|
|
3489
|
+
])) : b("", !0)
|
|
3490
3490
|
])
|
|
3491
3491
|
]),
|
|
3492
|
-
|
|
3492
|
+
h[5] || (h[5] = o("div", { class: "contact-info__divider" }, null, -1)),
|
|
3493
3493
|
o("div", a0, [
|
|
3494
3494
|
o("button", {
|
|
3495
3495
|
class: "contact-info__button",
|
|
3496
|
-
onClick:
|
|
3496
|
+
onClick: h[2] || (h[2] = (w) => M.$emit("open-crm"))
|
|
3497
3497
|
}, [
|
|
3498
3498
|
Y(ei),
|
|
3499
|
-
|
|
3499
|
+
h[4] || (h[4] = $e(" Открыть контакт в CRM ", -1))
|
|
3500
3500
|
])
|
|
3501
3501
|
])
|
|
3502
3502
|
]);
|
|
@@ -3543,32 +3543,32 @@ const Ql = /* @__PURE__ */ O(Bl, [["render", Rl]]), Fl = { class: "contact-info"
|
|
|
3543
3543
|
setup(e, { emit: f }) {
|
|
3544
3544
|
const t = e, a = se("chatAppId"), { setMessageText: n } = ze(a), i = () => {
|
|
3545
3545
|
s("closeTemplateWindow"), n(c.value.template);
|
|
3546
|
-
}, s = f, r =
|
|
3547
|
-
|
|
3546
|
+
}, s = f, r = v(null), c = v(null), d = v(""), A = v(), g = v(""), _ = v(""), I = v(""), y = v(!1), M = Q(() => !!(y.value && (I.value == "grid" && _.value == "none" || _.value == "grid" && g.value == "none"))), h = Q(() => !!(y.value && (g.value == "grid" && _.value == "none" || _.value == "grid" && I.value == "none"))), k = () => {
|
|
3547
|
+
y.value && (_.value == "grid" ? x() : I.value == "grid" && w());
|
|
3548
3548
|
}, T = () => {
|
|
3549
|
-
|
|
3550
|
-
},
|
|
3549
|
+
y.value && (_.value == "grid" ? C() : g.value == "grid" && w());
|
|
3550
|
+
}, x = () => {
|
|
3551
3551
|
const H = document.getElementById("template-selector-container-" + a);
|
|
3552
3552
|
H.style.setProperty("--chotto-template-first-col-display", "grid"), H.style.setProperty("--chotto-template-second-col-display", "none"), m();
|
|
3553
|
-
},
|
|
3553
|
+
}, C = () => {
|
|
3554
3554
|
const H = document.getElementById("template-selector-container-" + a);
|
|
3555
3555
|
H.style.setProperty("--chotto-template-third-col-display", "grid"), H.style.setProperty("--chotto-template-second-col-display", "none"), m();
|
|
3556
|
-
},
|
|
3556
|
+
}, w = () => {
|
|
3557
3557
|
const H = document.getElementById("template-selector-container-" + a);
|
|
3558
3558
|
H.style.setProperty("--chotto-template-second-col-display", "grid"), H.style.setProperty("--chotto-template-first-col-display", "none"), H.style.setProperty("--chotto-template-third-col-display", "none"), m();
|
|
3559
3559
|
}, m = () => {
|
|
3560
3560
|
const H = document.getElementById("template-selector-container-" + a), W = window.getComputedStyle(H);
|
|
3561
|
-
g.value = W.getPropertyValue("--chotto-template-first-col-display"),
|
|
3562
|
-
},
|
|
3563
|
-
t.templates.forEach((W) => W.isSelected = !1), H.isSelected = !0, c.value = H,
|
|
3561
|
+
g.value = W.getPropertyValue("--chotto-template-first-col-display"), _.value = W.getPropertyValue("--chotto-template-second-col-display"), I.value = W.getPropertyValue("--chotto-template-third-col-display");
|
|
3562
|
+
}, p = (H) => {
|
|
3563
|
+
t.templates.forEach((W) => W.isSelected = !1), H.isSelected = !0, c.value = H, C();
|
|
3564
3564
|
}, N = () => {
|
|
3565
|
-
|
|
3565
|
+
w(), t.templates.forEach((H) => H.isSelected = !1);
|
|
3566
3566
|
}, z = Q(() => r.value ? t.templates.filter((H) => H.groupId === r.value.groupId) : t.templates), U = Q(() => {
|
|
3567
3567
|
const H = d.value.trim().toLowerCase();
|
|
3568
3568
|
return z.value.filter((W) => W.title.toLowerCase().includes(H) || W.template.toLowerCase().includes(H));
|
|
3569
3569
|
}), ee = new ResizeObserver((H) => {
|
|
3570
3570
|
const W = H[0].target.clientWidth;
|
|
3571
|
-
W > 700 && (
|
|
3571
|
+
W > 700 && (y.value = !1), W < 700 && (y.value = !0);
|
|
3572
3572
|
});
|
|
3573
3573
|
return me(() => {
|
|
3574
3574
|
m(), D(A) && ee.observe(D(A));
|
|
@@ -3587,15 +3587,15 @@ const Ql = /* @__PURE__ */ O(Bl, [["render", Rl]]), Fl = { class: "contact-info"
|
|
|
3587
3587
|
M.value ? (l(), u("button", c0, [
|
|
3588
3588
|
o("span", {
|
|
3589
3589
|
class: "pi pi-arrow-left",
|
|
3590
|
-
onClick:
|
|
3590
|
+
onClick: k
|
|
3591
3591
|
})
|
|
3592
|
-
])) :
|
|
3593
|
-
|
|
3592
|
+
])) : b("", !0),
|
|
3593
|
+
h.value ? (l(), u("button", r0, [
|
|
3594
3594
|
o("span", {
|
|
3595
3595
|
class: "pi pi-arrow-right",
|
|
3596
3596
|
onClick: T
|
|
3597
3597
|
})
|
|
3598
|
-
])) :
|
|
3598
|
+
])) : b("", !0)
|
|
3599
3599
|
]),
|
|
3600
3600
|
o("button", d0, [
|
|
3601
3601
|
o("span", {
|
|
@@ -3621,7 +3621,7 @@ const Ql = /* @__PURE__ */ O(Bl, [["render", Rl]]), Fl = { class: "contact-info"
|
|
|
3621
3621
|
class: "template-selector__item-group-icon",
|
|
3622
3622
|
src: R.iconUrl,
|
|
3623
3623
|
alt: R.title
|
|
3624
|
-
}, null, 8, _0)) :
|
|
3624
|
+
}, null, 8, _0)) : b("", !0),
|
|
3625
3625
|
ge(o("input", {
|
|
3626
3626
|
id: ie,
|
|
3627
3627
|
"onUpdate:modelValue": W[1] || (W[1] = (X) => r.value = X),
|
|
@@ -3655,7 +3655,7 @@ const Ql = /* @__PURE__ */ O(Bl, [["render", Rl]]), Fl = { class: "contact-info"
|
|
|
3655
3655
|
(l(!0), u(J, null, le(U.value, (R, ie) => (l(), u("li", {
|
|
3656
3656
|
key: ie,
|
|
3657
3657
|
class: S(["template-selector__item-template", { "template-selector__item-selected": R.isSelected }]),
|
|
3658
|
-
onClick: (X) =>
|
|
3658
|
+
onClick: (X) => p(R)
|
|
3659
3659
|
}, [
|
|
3660
3660
|
o("div", C0, [
|
|
3661
3661
|
o("p", I0, E(R.title), 1),
|
|
@@ -3733,7 +3733,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3733
3733
|
}
|
|
3734
3734
|
},
|
|
3735
3735
|
setup(e) {
|
|
3736
|
-
const f = e, t = se("chatAppId"), { getMessage: a } = ze(t), n =
|
|
3736
|
+
const f = e, t = se("chatAppId"), { getMessage: a } = ze(t), n = v(null), i = v(null), s = () => {
|
|
3737
3737
|
f.mode == "click" && f.state == "active" && (i.value.style.display == "none" ? i.value.style.display = "inherit" : i.value.style.display == "inherit" && (i.value.style.display = "none"));
|
|
3738
3738
|
}, r = () => {
|
|
3739
3739
|
f.mode == "hover" && f.state == "active" && (i.value.style.display = "inherit");
|
|
@@ -3750,7 +3750,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3750
3750
|
position: "left"
|
|
3751
3751
|
}, {
|
|
3752
3752
|
default: K(() => [
|
|
3753
|
-
D(a)().isRecording ?
|
|
3753
|
+
D(a)().isRecording ? b("", !0) : (l(), u("button", {
|
|
3754
3754
|
key: 0,
|
|
3755
3755
|
ref_key: "templateButton",
|
|
3756
3756
|
ref: n,
|
|
@@ -3806,7 +3806,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3806
3806
|
},
|
|
3807
3807
|
emits: ["edit"],
|
|
3808
3808
|
setup(e, { emit: f }) {
|
|
3809
|
-
const t = se("chatAppId"), a = e, n = f, i =
|
|
3809
|
+
const t = se("chatAppId"), a = e, n = f, i = v(a.value), s = v();
|
|
3810
3810
|
ne(
|
|
3811
3811
|
() => a.isFilled,
|
|
3812
3812
|
() => {
|
|
@@ -3817,8 +3817,8 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3817
3817
|
const r = (g) => {
|
|
3818
3818
|
if (!a.isFilled) {
|
|
3819
3819
|
i.value = "";
|
|
3820
|
-
const
|
|
3821
|
-
|
|
3820
|
+
const _ = window.getSelection();
|
|
3821
|
+
_.getRangeAt && _.rangeCount && _.getRangeAt(0).selectNodeContents(g.target);
|
|
3822
3822
|
}
|
|
3823
3823
|
};
|
|
3824
3824
|
function c() {
|
|
@@ -3836,7 +3836,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3836
3836
|
window.addEventListener("keydown", A);
|
|
3837
3837
|
}), cf(() => {
|
|
3838
3838
|
window.removeEventListener("keydown", A);
|
|
3839
|
-
}), (g,
|
|
3839
|
+
}), (g, _) => (l(), u("span", {
|
|
3840
3840
|
id: "placeholder" + D(t) + e.index,
|
|
3841
3841
|
ref_key: "refPlaceholder",
|
|
3842
3842
|
ref: s,
|
|
@@ -3864,7 +3864,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3864
3864
|
},
|
|
3865
3865
|
emits: ["fileSelected"],
|
|
3866
3866
|
setup(e, { emit: f }) {
|
|
3867
|
-
const t = e, a =
|
|
3867
|
+
const t = e, a = v(se("filebumpUrl")), n = v(null), i = v(), s = v(""), r = v(""), c = v(), d = f, A = () => {
|
|
3868
3868
|
i.value && r.value != "success" && i.value.click();
|
|
3869
3869
|
}, g = {
|
|
3870
3870
|
DOCUMENT: {
|
|
@@ -3888,31 +3888,31 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3888
3888
|
error: "Некорректный тип файла, выберите MP4 или MOV",
|
|
3889
3889
|
icon: "pi pi-video"
|
|
3890
3890
|
}
|
|
3891
|
-
},
|
|
3892
|
-
const M =
|
|
3891
|
+
}, _ = (y) => {
|
|
3892
|
+
const M = y.target.files[0];
|
|
3893
3893
|
if (M) {
|
|
3894
3894
|
s.value = "";
|
|
3895
|
-
const
|
|
3896
|
-
if (g[t.type].accept.indexOf(
|
|
3895
|
+
const h = M.name.split(".");
|
|
3896
|
+
if (g[t.type].accept.indexOf(h[h.length - 1]) == -1)
|
|
3897
3897
|
s.value = g[t.type].error;
|
|
3898
3898
|
else if (M.size > g[t.type].maxSize)
|
|
3899
3899
|
s.value = "Файл слишком большого размера";
|
|
3900
3900
|
else if (!s.value) {
|
|
3901
3901
|
n.value = M, r.value = "uploading";
|
|
3902
3902
|
const T = D(a.value);
|
|
3903
|
-
ft(typeof T == "string" ? T : null, M).then((
|
|
3904
|
-
r.value =
|
|
3905
|
-
url:
|
|
3906
|
-
filename:
|
|
3907
|
-
filesize:
|
|
3908
|
-
filetype:
|
|
3909
|
-
}),
|
|
3910
|
-
previewUrl:
|
|
3911
|
-
isImage:
|
|
3912
|
-
isVideo:
|
|
3913
|
-
isAudio:
|
|
3914
|
-
fileName:
|
|
3915
|
-
fileSize:
|
|
3903
|
+
ft(typeof T == "string" ? T : null, M).then((x) => {
|
|
3904
|
+
r.value = x.status, x.status == "success" && (d("fileSelected", {
|
|
3905
|
+
url: x.url,
|
|
3906
|
+
filename: x.name,
|
|
3907
|
+
filesize: x.size,
|
|
3908
|
+
filetype: x.type
|
|
3909
|
+
}), x.preview && (c.value = {
|
|
3910
|
+
previewUrl: x.preview.previewUrl,
|
|
3911
|
+
isImage: x.preview.isImage,
|
|
3912
|
+
isVideo: x.preview.isVideo,
|
|
3913
|
+
isAudio: x.preview.isAudio,
|
|
3914
|
+
fileName: x.name,
|
|
3915
|
+
fileSize: x.preview.fileSize
|
|
3916
3916
|
}));
|
|
3917
3917
|
});
|
|
3918
3918
|
}
|
|
@@ -3922,15 +3922,15 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3922
3922
|
};
|
|
3923
3923
|
return ne(
|
|
3924
3924
|
() => r.value,
|
|
3925
|
-
(
|
|
3926
|
-
|
|
3925
|
+
(y) => {
|
|
3926
|
+
y === "" && (i.value && (i.value.value = ""), n.value = null, d("fileSelected", null));
|
|
3927
3927
|
}
|
|
3928
3928
|
), ne(
|
|
3929
3929
|
() => t.templateId,
|
|
3930
3930
|
() => {
|
|
3931
3931
|
r.value = "";
|
|
3932
3932
|
}
|
|
3933
|
-
), (
|
|
3933
|
+
), (y, M) => (l(), u(J, null, [
|
|
3934
3934
|
r.value !== "success" ? (l(), u("div", {
|
|
3935
3935
|
key: 0,
|
|
3936
3936
|
class: S(["attachment-section", { "attachment-section__error": s.value }]),
|
|
@@ -3943,7 +3943,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3943
3943
|
type: "file",
|
|
3944
3944
|
style: { display: "none" },
|
|
3945
3945
|
accept: g[e.type].accept,
|
|
3946
|
-
onChange:
|
|
3946
|
+
onChange: _
|
|
3947
3947
|
}, null, 40, Y0),
|
|
3948
3948
|
M[1] || (M[1] = o("span", { class: "pi pi-paperclip attachment-section__icon" }, null, -1)),
|
|
3949
3949
|
o("div", null, [
|
|
@@ -3954,8 +3954,8 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
3954
3954
|
key: 1,
|
|
3955
3955
|
"file-info": c.value,
|
|
3956
3956
|
onReset: I
|
|
3957
|
-
}, null, 8, ["file-info"])) :
|
|
3958
|
-
s.value ? (l(), u("div", H0, E(s.value), 1)) :
|
|
3957
|
+
}, null, 8, ["file-info"])) : b("", !0),
|
|
3958
|
+
s.value ? (l(), u("div", H0, E(s.value), 1)) : b("", !0)
|
|
3959
3959
|
], 64));
|
|
3960
3960
|
}
|
|
3961
3961
|
}), Z0 = /* @__PURE__ */ O(W0, [["__scopeId", "data-v-ca64b0c9"]]), K0 = { class: "quick-reply-buttons" }, J0 = ["onClick"], G0 = { class: "quick-reply-buttons__line" }, X0 = /* @__PURE__ */ G({
|
|
@@ -4083,21 +4083,21 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4083
4083
|
g.value ? (j.text = Ne.value, j.templateId = A.value.templateId, j.values = F.value, j.file = g.value) : (j.text = Ne.value, j.templateId = A.value.templateId, j.values = F.value), A.value.buttons && (j.buttons = A.value.buttons), n("sendWabaValues", j), Be();
|
|
4084
4084
|
}, r = (j) => {
|
|
4085
4085
|
g.value = j;
|
|
4086
|
-
}, c =
|
|
4086
|
+
}, c = v(null), d = v(null), A = v(null), g = v(null), _ = v(""), I = v(!1), y = () => {
|
|
4087
4087
|
I.value = !I.value, I.value ? (c.value.scrollTop = 0, c.value.style["overflow-y"] = "hidden") : c.value.style["overflow-y"] = "scroll";
|
|
4088
4088
|
}, M = (j) => {
|
|
4089
|
-
Object.keys(
|
|
4090
|
-
|
|
4089
|
+
Object.keys(x).forEach((P) => {
|
|
4090
|
+
x[P] = "";
|
|
4091
4091
|
}), g.value = null, t.wabaTemplates.forEach((P) => P.isSelected = !1), j.isSelected = !0, A.value = j, I.value = !1, ie();
|
|
4092
|
-
},
|
|
4092
|
+
}, h = () => {
|
|
4093
4093
|
X(), t.wabaTemplates.forEach((j) => j.isSelected = !1);
|
|
4094
|
-
},
|
|
4095
|
-
const j =
|
|
4096
|
-
return
|
|
4097
|
-
}),
|
|
4098
|
-
z.value && (
|
|
4094
|
+
}, k = Q(() => d.value ? t.wabaTemplates.filter((j) => j.groupId === d.value.groupId) : t.wabaTemplates), T = Q(() => {
|
|
4095
|
+
const j = _.value.trim().toLowerCase();
|
|
4096
|
+
return k.value.filter((P) => P.title.toLowerCase().includes(j) || P.template.toLowerCase().includes(j));
|
|
4097
|
+
}), x = wn({}), C = v(null), w = v(), m = v(""), p = v(""), N = v(""), z = v(!1), U = Q(() => !!(z.value && (N.value == "grid" && p.value == "none" || p.value == "grid" && m.value == "none"))), ee = Q(() => !!(z.value && (m.value == "grid" && p.value == "none" || p.value == "grid" && N.value == "none"))), H = () => {
|
|
4098
|
+
z.value && (p.value == "grid" ? R() : N.value == "grid" && X());
|
|
4099
4099
|
}, W = () => {
|
|
4100
|
-
z.value && (
|
|
4100
|
+
z.value && (p.value == "grid" ? ie() : m.value == "grid" && X());
|
|
4101
4101
|
}, R = () => {
|
|
4102
4102
|
const j = document.getElementById("waba-template-selector-container-" + a);
|
|
4103
4103
|
j.style.setProperty("--chotto-waba-template-first-col-display", "grid"), j.style.setProperty("--chotto-waba-template-second-col-display", "none"), console.log(j, window.getComputedStyle(j).getPropertyValue("--waba-template-first-col-display")), ae();
|
|
@@ -4109,9 +4109,9 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4109
4109
|
j.style.setProperty("--chotto-waba-template-second-col-display", "grid"), j.style.setProperty("--chotto-waba-template-first-col-display", "none"), j.style.setProperty("--chotto-waba-template-third-col-display", "none"), ae();
|
|
4110
4110
|
}, ae = () => {
|
|
4111
4111
|
const j = document.getElementById("waba-template-selector-container-" + a), P = window.getComputedStyle(j);
|
|
4112
|
-
m.value = P.getPropertyValue("--chotto-waba-template-first-col-display"),
|
|
4112
|
+
m.value = P.getPropertyValue("--chotto-waba-template-first-col-display"), p.value = P.getPropertyValue("--chotto-waba-template-second-col-display"), N.value = P.getPropertyValue("--chotto-waba-template-third-col-display");
|
|
4113
4113
|
}, ve = (j) => {
|
|
4114
|
-
|
|
4114
|
+
x[j[1]] = j[0];
|
|
4115
4115
|
}, Ae = Q(() => {
|
|
4116
4116
|
var xe;
|
|
4117
4117
|
const j = (xe = A.value) == null ? void 0 : xe.template;
|
|
@@ -4127,33 +4127,33 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4127
4127
|
return !0;
|
|
4128
4128
|
if (!((P = A.value) != null && P.template.match(/{{\d+}}/gi)))
|
|
4129
4129
|
return !1;
|
|
4130
|
-
const j = Object.keys(
|
|
4130
|
+
const j = Object.keys(x).length !== ((q = A.value) == null ? void 0 : q.template.match(/{{\d+}}/gi).length);
|
|
4131
4131
|
return A.value.type === "TEXT" ? j : A.value.type !== "TEXT" ? j || !g.value : !1;
|
|
4132
4132
|
}), Be = () => {
|
|
4133
|
-
Object.keys(
|
|
4134
|
-
|
|
4133
|
+
Object.keys(x).forEach((j) => {
|
|
4134
|
+
x[j] = "";
|
|
4135
4135
|
}), g.value = null, A.value = null, t.wabaTemplates.forEach((j) => j.isSelected = !1);
|
|
4136
4136
|
}, Ne = Q(() => {
|
|
4137
4137
|
console.log(Ae.value, A.value.buttons);
|
|
4138
|
-
let j = Ae.value.map((q) => typeof q == "string" ? q :
|
|
4138
|
+
let j = Ae.value.map((q) => typeof q == "string" ? q : x[q.index]).join(""), P = "";
|
|
4139
4139
|
return A.value.buttons && (P = A.value.buttons.map((q) => `
|
|
4140
4140
|
| [` + q.text + "]").join("")), j.concat(P);
|
|
4141
4141
|
}), F = Q(() => {
|
|
4142
4142
|
const j = [];
|
|
4143
|
-
for (const P in
|
|
4144
|
-
|
|
4143
|
+
for (const P in x)
|
|
4144
|
+
x[P] !== "" && x[P] !== "Заполнить" && j.push(x[P]);
|
|
4145
4145
|
return j;
|
|
4146
4146
|
}), Z = new ResizeObserver((j) => {
|
|
4147
4147
|
const P = j[0].target.clientWidth;
|
|
4148
4148
|
P > 700 && (z.value = !1), P < 700 && (z.value = !0);
|
|
4149
4149
|
});
|
|
4150
4150
|
return me(() => {
|
|
4151
|
-
ae(), D(
|
|
4151
|
+
ae(), D(w) && Z.observe(D(w));
|
|
4152
4152
|
}), (j, P) => (l(), u("div", iu, [
|
|
4153
4153
|
o("div", {
|
|
4154
4154
|
id: "waba-template-selector-container-" + D(a),
|
|
4155
4155
|
ref_key: "refContainer",
|
|
4156
|
-
ref:
|
|
4156
|
+
ref: w,
|
|
4157
4157
|
class: S({
|
|
4158
4158
|
"template-selector__container-inline": !e.elevatedWindow,
|
|
4159
4159
|
"template-selector__container-elevated": e.elevatedWindow
|
|
@@ -4166,13 +4166,13 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4166
4166
|
class: "pi pi-arrow-left",
|
|
4167
4167
|
onClick: H
|
|
4168
4168
|
})
|
|
4169
|
-
])) :
|
|
4169
|
+
])) : b("", !0),
|
|
4170
4170
|
ee.value ? (l(), u("button", ru, [
|
|
4171
4171
|
o("span", {
|
|
4172
4172
|
class: "pi pi-arrow-right",
|
|
4173
4173
|
onClick: W
|
|
4174
4174
|
})
|
|
4175
|
-
])) :
|
|
4175
|
+
])) : b("", !0)
|
|
4176
4176
|
]),
|
|
4177
4177
|
o("button", { class: "template-selector__button-close" }, [
|
|
4178
4178
|
o("span", {
|
|
@@ -4187,7 +4187,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4187
4187
|
(l(!0), u(J, null, le(e.groupTemplates, (q, ce) => (l(), u("li", {
|
|
4188
4188
|
key: ce,
|
|
4189
4189
|
class: S(["template-selector__item-group", { "template-selector__item-selected": d.value === q }]),
|
|
4190
|
-
onClick:
|
|
4190
|
+
onClick: h
|
|
4191
4191
|
}, [
|
|
4192
4192
|
o("label", mu, [
|
|
4193
4193
|
q.iconUrl ? (l(), u("img", {
|
|
@@ -4195,7 +4195,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4195
4195
|
class: "template-selector__item-group-icon",
|
|
4196
4196
|
src: q.iconUrl,
|
|
4197
4197
|
alt: q.title
|
|
4198
|
-
}, null, 8, pu)) :
|
|
4198
|
+
}, null, 8, pu)) : b("", !0),
|
|
4199
4199
|
ge(o("input", {
|
|
4200
4200
|
id: ce,
|
|
4201
4201
|
"onUpdate:modelValue": P[0] || (P[0] = (xe) => d.value = xe),
|
|
@@ -4213,12 +4213,12 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4213
4213
|
o("div", hu, [
|
|
4214
4214
|
o("div", vu, [
|
|
4215
4215
|
ge(o("input", {
|
|
4216
|
-
"onUpdate:modelValue": P[1] || (P[1] = (q) =>
|
|
4216
|
+
"onUpdate:modelValue": P[1] || (P[1] = (q) => _.value = q),
|
|
4217
4217
|
class: "template-selector__searching-input",
|
|
4218
4218
|
type: "text",
|
|
4219
4219
|
placeholder: "Поиск шаблона"
|
|
4220
4220
|
}, null, 512), [
|
|
4221
|
-
[Tf,
|
|
4221
|
+
[Tf, _.value]
|
|
4222
4222
|
])
|
|
4223
4223
|
]),
|
|
4224
4224
|
o("div", bu, [
|
|
@@ -4249,37 +4249,37 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4249
4249
|
type: A.value.type,
|
|
4250
4250
|
"template-id": A.value.templateId,
|
|
4251
4251
|
onFileSelected: r
|
|
4252
|
-
}, null, 8, ["type", "template-id"])) :
|
|
4252
|
+
}, null, 8, ["type", "template-id"])) : b("", !0),
|
|
4253
4253
|
o("div", Nu, [
|
|
4254
4254
|
(l(!0), u(J, null, le(Ae.value, (q, ce) => (l(), u(J, { key: ce }, [
|
|
4255
4255
|
typeof q == "string" ? (l(), u("span", Eu, E(q), 1)) : typeof q == "object" ? (l(), B(P0, {
|
|
4256
4256
|
key: 1,
|
|
4257
4257
|
index: q.index,
|
|
4258
|
-
value:
|
|
4259
|
-
"is-filled": !!
|
|
4260
|
-
onClick: (xe) =>
|
|
4258
|
+
value: x[q.index] || "Заполнить",
|
|
4259
|
+
"is-filled": !!x[q.index],
|
|
4260
|
+
onClick: (xe) => C.value = q.index,
|
|
4261
4261
|
onEdit: ve
|
|
4262
|
-
}, null, 8, ["index", "value", "is-filled", "onClick"])) :
|
|
4262
|
+
}, null, 8, ["index", "value", "is-filled", "onClick"])) : b("", !0)
|
|
4263
4263
|
], 64))), 128))
|
|
4264
4264
|
]),
|
|
4265
4265
|
P[2] || (P[2] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1)),
|
|
4266
4266
|
A.value.buttons ? (l(), B(eu, {
|
|
4267
4267
|
key: 1,
|
|
4268
4268
|
buttons: A.value.buttons,
|
|
4269
|
-
onSelectAllVariants:
|
|
4270
|
-
}, null, 8, ["buttons"])) :
|
|
4269
|
+
onSelectAllVariants: y
|
|
4270
|
+
}, null, 8, ["buttons"])) : b("", !0)
|
|
4271
4271
|
])
|
|
4272
4272
|
])) : (l(), u("p", ju, " Предпросмотр шаблона ")),
|
|
4273
4273
|
I.value ? (l(), u("div", Su, [
|
|
4274
4274
|
o("div", {
|
|
4275
4275
|
class: "template-selector__semitransparent-overlay",
|
|
4276
|
-
onClick:
|
|
4276
|
+
onClick: y
|
|
4277
4277
|
}),
|
|
4278
4278
|
Y(su, {
|
|
4279
4279
|
buttons: A.value.buttons,
|
|
4280
|
-
onSelectAllVariants:
|
|
4280
|
+
onSelectAllVariants: y
|
|
4281
4281
|
}, null, 8, ["buttons"])
|
|
4282
|
-
])) :
|
|
4282
|
+
])) : b("", !0)
|
|
4283
4283
|
], 512),
|
|
4284
4284
|
o("button", {
|
|
4285
4285
|
class: "template-selector__button-paste",
|
|
@@ -4326,7 +4326,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4326
4326
|
setup(e, { emit: f }) {
|
|
4327
4327
|
const t = e;
|
|
4328
4328
|
Mf("filebumpUrl", t.filebumpUrl);
|
|
4329
|
-
const a = se("chatAppId"), { getMessage: n } = ze(a), i =
|
|
4329
|
+
const a = se("chatAppId"), { getMessage: n } = ze(a), i = v(null), s = v(null), r = f, c = () => {
|
|
4330
4330
|
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"));
|
|
4331
4331
|
}, d = () => {
|
|
4332
4332
|
t.mode == "hover" && t.state == "active" && (s.value.style.display = "inherit");
|
|
@@ -4338,11 +4338,11 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4338
4338
|
me(() => {
|
|
4339
4339
|
s.value.style.display = "none";
|
|
4340
4340
|
});
|
|
4341
|
-
const
|
|
4341
|
+
const _ = (I) => {
|
|
4342
4342
|
r("sendWabaValues", I);
|
|
4343
4343
|
};
|
|
4344
|
-
return (I,
|
|
4345
|
-
D(n)().isRecording ?
|
|
4344
|
+
return (I, y) => (l(), u(J, null, [
|
|
4345
|
+
D(n)().isRecording ? b("", !0) : (l(), u("button", {
|
|
4346
4346
|
key: 0,
|
|
4347
4347
|
ref_key: "templateButton",
|
|
4348
4348
|
ref: i,
|
|
@@ -4350,7 +4350,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4350
4350
|
onClick: c,
|
|
4351
4351
|
onMouseover: d,
|
|
4352
4352
|
onMouseout: A
|
|
4353
|
-
},
|
|
4353
|
+
}, y[0] || (y[0] = [
|
|
4354
4354
|
o("span", { class: "pi pi-code" }, null, -1)
|
|
4355
4355
|
]), 34)),
|
|
4356
4356
|
o("div", {
|
|
@@ -4364,7 +4364,7 @@ const B0 = /* @__PURE__ */ O(O0, [["render", U0]]), $0 = { class: "" }, R0 = {
|
|
|
4364
4364
|
"group-templates": e.groupTemplates,
|
|
4365
4365
|
"elevated-window": e.elevatedWindow,
|
|
4366
4366
|
onCloseTemplateWindow: g,
|
|
4367
|
-
onSendWabaValues:
|
|
4367
|
+
onSendWabaValues: _
|
|
4368
4368
|
}, null, 8, ["waba-templates", "group-templates", "elevated-window"])
|
|
4369
4369
|
], 544)
|
|
4370
4370
|
], 64));
|
|
@@ -16562,9 +16562,9 @@ function m2() {
|
|
|
16562
16562
|
const g = [
|
|
16563
16563
|
...this.options.groupOrder,
|
|
16564
16564
|
...Object.keys(this.options.additionalGroups),
|
|
16565
|
-
...on.map((
|
|
16565
|
+
...on.map((_) => _.key)
|
|
16566
16566
|
];
|
|
16567
|
-
return [...new Set(g)].filter((
|
|
16567
|
+
return [...new Set(g)].filter((_) => !this.disabled.includes(_));
|
|
16568
16568
|
}
|
|
16569
16569
|
});
|
|
16570
16570
|
function f() {
|
|
@@ -16572,8 +16572,8 @@ function m2() {
|
|
|
16572
16572
|
}
|
|
16573
16573
|
async function t() {
|
|
16574
16574
|
var g;
|
|
16575
|
-
let
|
|
16576
|
-
return Array.isArray(
|
|
16575
|
+
let _ = await g2();
|
|
16576
|
+
return Array.isArray(_) && _.length ? _ = JSON.parse(((g = _[0]) == null ? void 0 : g.value) || "") : _ = [], _;
|
|
16577
16577
|
}
|
|
16578
16578
|
function a() {
|
|
16579
16579
|
t().then((g) => {
|
|
@@ -16600,8 +16600,8 @@ function m2() {
|
|
|
16600
16600
|
const A = (g) => {
|
|
16601
16601
|
if (e.options.displayRecent !== !0)
|
|
16602
16602
|
return;
|
|
16603
|
-
const
|
|
16604
|
-
if (
|
|
16603
|
+
const _ = e.recent.findIndex((y) => y.u === g.u);
|
|
16604
|
+
if (_ > 0 && e.recent.splice(_, 1), _ === 0)
|
|
16605
16605
|
return;
|
|
16606
16606
|
const I = { u: g.u, n: Cn(g.n) };
|
|
16607
16607
|
e.recent = [I, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), d();
|
|
@@ -16803,8 +16803,8 @@ var V2 = function(f, t) {
|
|
|
16803
16803
|
function L2(e) {
|
|
16804
16804
|
var f, t = e.state, a = e.name, n = e.options, i = t.elements.arrow, s = t.modifiersData.popperOffsets, r = He(t.placement), c = Ft(r), d = [Ie, Oe].indexOf(r) >= 0, A = d ? "height" : "width";
|
|
16805
16805
|
if (!(!i || !s)) {
|
|
16806
|
-
var g = V2(n.padding, t),
|
|
16807
|
-
t.modifiersData[a] = (f = {}, f[N] =
|
|
16806
|
+
var g = V2(n.padding, t), _ = Qt(i), I = c === "y" ? Ce : Ie, y = c === "y" ? Le : Oe, M = t.rects.reference[A] + t.rects.reference[c] - s[c] - t.rects.popper[A], h = s[c] - t.rects.reference[c], k = a1(i), T = k ? c === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0, x = M / 2 - h / 2, C = g[I], w = T - _[A] - g[y], m = T / 2 - _[A] / 2 + x, p = Wf(C, m, w), N = c;
|
|
16807
|
+
t.modifiersData[a] = (f = {}, f[N] = p, f.centerOffset = p - m, f);
|
|
16808
16808
|
}
|
|
16809
16809
|
}
|
|
16810
16810
|
function O2(e) {
|
|
@@ -16837,18 +16837,18 @@ function B2(e) {
|
|
|
16837
16837
|
};
|
|
16838
16838
|
}
|
|
16839
16839
|
function An(e) {
|
|
16840
|
-
var f, t = e.popper, a = e.popperRect, n = e.placement, i = e.variation, s = e.offsets, r = e.position, c = e.gpuAcceleration, d = e.adaptive, A = e.roundOffsets, g = e.isFixed,
|
|
16840
|
+
var f, t = e.popper, a = e.popperRect, n = e.placement, i = e.variation, s = e.offsets, r = e.position, c = e.gpuAcceleration, d = e.adaptive, A = e.roundOffsets, g = e.isFixed, _ = A === !0 ? B2(s) : typeof A == "function" ? A(s) : s, I = _.x, y = I === void 0 ? 0 : I, M = _.y, h = M === void 0 ? 0 : M, k = s.hasOwnProperty("x"), T = s.hasOwnProperty("y"), x = Ie, C = Ce, w = window;
|
|
16841
16841
|
if (d) {
|
|
16842
|
-
var m = a1(t),
|
|
16843
|
-
if (m === Fe(t) && (m = rf(t), Ze(m).position !== "static" && r === "absolute" && (
|
|
16844
|
-
|
|
16845
|
-
var z = g &&
|
|
16846
|
-
|
|
16842
|
+
var m = a1(t), p = "clientHeight", N = "clientWidth";
|
|
16843
|
+
if (m === Fe(t) && (m = rf(t), Ze(m).position !== "static" && r === "absolute" && (p = "scrollHeight", N = "scrollWidth")), m = m, n === Ce || (n === Ie || n === Oe) && i === e1) {
|
|
16844
|
+
C = Le;
|
|
16845
|
+
var z = g && w.visualViewport ? w.visualViewport.height : m[p];
|
|
16846
|
+
h -= z - a.height, h *= c ? 1 : -1;
|
|
16847
16847
|
}
|
|
16848
16848
|
if (n === Ie || (n === Ce || n === Le) && i === e1) {
|
|
16849
|
-
|
|
16850
|
-
var U = g &&
|
|
16851
|
-
|
|
16849
|
+
x = Oe;
|
|
16850
|
+
var U = g && w.visualViewport ? w.visualViewport.width : m[N];
|
|
16851
|
+
y -= U - a.width, y *= c ? 1 : -1;
|
|
16852
16852
|
}
|
|
16853
16853
|
}
|
|
16854
16854
|
var ee = Object.assign({
|
|
@@ -16856,9 +16856,9 @@ function An(e) {
|
|
|
16856
16856
|
}, d && U2);
|
|
16857
16857
|
if (c) {
|
|
16858
16858
|
var H;
|
|
16859
|
-
return Object.assign({}, ee, (H = {}, H[
|
|
16859
|
+
return Object.assign({}, ee, (H = {}, H[C] = T ? "0" : "", H[x] = k ? "0" : "", H.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + y + "px, " + h + "px)" : "translate3d(" + y + "px, " + h + "px, 0)", H));
|
|
16860
16860
|
}
|
|
16861
|
-
return Object.assign({}, ee, (f = {}, f[
|
|
16861
|
+
return Object.assign({}, ee, (f = {}, f[C] = T ? h + "px" : "", f[x] = k ? y + "px" : "", f.transform = "", f));
|
|
16862
16862
|
}
|
|
16863
16863
|
function $2(e) {
|
|
16864
16864
|
var f = e.state, t = e.options, a = t.gpuAcceleration, n = a === void 0 ? !0 : a, i = t.adaptive, s = i === void 0 ? !0 : i, r = t.roundOffsets, c = r === void 0 ? !0 : r, d = {
|
|
@@ -17048,15 +17048,15 @@ function Jn(e) {
|
|
|
17048
17048
|
}
|
|
17049
17049
|
function f1(e, f) {
|
|
17050
17050
|
f === void 0 && (f = {});
|
|
17051
|
-
var t = f, a = t.placement, n = a === void 0 ? e.placement : a, i = t.boundary, s = i === void 0 ? p2 : i, r = t.rootBoundary, c = r === void 0 ? Fn : r, d = t.elementContext, A = d === void 0 ? Bf : d, g = t.altBoundary,
|
|
17052
|
-
reference:
|
|
17053
|
-
element:
|
|
17051
|
+
var t = f, a = t.placement, n = a === void 0 ? e.placement : a, i = t.boundary, s = i === void 0 ? p2 : i, r = t.rootBoundary, c = r === void 0 ? Fn : r, d = t.elementContext, A = d === void 0 ? Bf : d, g = t.altBoundary, _ = g === void 0 ? !1 : g, I = t.padding, y = I === void 0 ? 0 : I, M = Wn(typeof y != "number" ? y : Zn(y, n1)), h = A === Bf ? _2 : Bf, k = e.rects.popper, T = e.elements[_ ? h : A], x = K2(If(T) ? T : T.contextElement || rf(e.elements.popper), s, c), C = xf(e.elements.reference), w = Jn({
|
|
17052
|
+
reference: C,
|
|
17053
|
+
element: k,
|
|
17054
17054
|
placement: n
|
|
17055
|
-
}), m = xt(Object.assign({},
|
|
17056
|
-
top:
|
|
17057
|
-
bottom:
|
|
17058
|
-
left:
|
|
17059
|
-
right:
|
|
17055
|
+
}), m = xt(Object.assign({}, k, w)), p = A === Bf ? m : C, N = {
|
|
17056
|
+
top: x.top - p.top + M.top,
|
|
17057
|
+
bottom: p.bottom - x.bottom + M.bottom,
|
|
17058
|
+
left: x.left - p.left + M.left,
|
|
17059
|
+
right: p.right - x.right + M.right
|
|
17060
17060
|
}, z = e.modifiersData.offset;
|
|
17061
17061
|
if (A === Bf && z) {
|
|
17062
17062
|
var U = z[n];
|
|
@@ -17069,22 +17069,22 @@ function f1(e, f) {
|
|
|
17069
17069
|
}
|
|
17070
17070
|
function J2(e, f) {
|
|
17071
17071
|
f === void 0 && (f = {});
|
|
17072
|
-
var t = f, a = t.placement, n = t.boundary, i = t.rootBoundary, s = t.padding, r = t.flipVariations, c = t.allowedAutoPlacements, d = c === void 0 ? Pn : c, A = Df(a), g = A ? r ? rn : rn.filter(function(
|
|
17073
|
-
return Df(
|
|
17074
|
-
}) : n1,
|
|
17075
|
-
return d.indexOf(
|
|
17072
|
+
var t = f, a = t.placement, n = t.boundary, i = t.rootBoundary, s = t.padding, r = t.flipVariations, c = t.allowedAutoPlacements, d = c === void 0 ? Pn : c, A = Df(a), g = A ? r ? rn : rn.filter(function(y) {
|
|
17073
|
+
return Df(y) === A;
|
|
17074
|
+
}) : n1, _ = g.filter(function(y) {
|
|
17075
|
+
return d.indexOf(y) >= 0;
|
|
17076
17076
|
});
|
|
17077
|
-
|
|
17078
|
-
var I =
|
|
17079
|
-
return
|
|
17077
|
+
_.length === 0 && (_ = g);
|
|
17078
|
+
var I = _.reduce(function(y, M) {
|
|
17079
|
+
return y[M] = f1(e, {
|
|
17080
17080
|
placement: M,
|
|
17081
17081
|
boundary: n,
|
|
17082
17082
|
rootBoundary: i,
|
|
17083
17083
|
padding: s
|
|
17084
|
-
})[He(M)],
|
|
17084
|
+
})[He(M)], y;
|
|
17085
17085
|
}, {});
|
|
17086
|
-
return Object.keys(I).sort(function(
|
|
17087
|
-
return I[
|
|
17086
|
+
return Object.keys(I).sort(function(y, M) {
|
|
17087
|
+
return I[y] - I[M];
|
|
17088
17088
|
});
|
|
17089
17089
|
}
|
|
17090
17090
|
function G2(e) {
|
|
@@ -17096,24 +17096,24 @@ function G2(e) {
|
|
|
17096
17096
|
function X2(e) {
|
|
17097
17097
|
var f = e.state, t = e.options, a = e.name;
|
|
17098
17098
|
if (!f.modifiersData[a]._skip) {
|
|
17099
|
-
for (var n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !0 : s, c = t.fallbackPlacements, d = t.padding, A = t.boundary, g = t.rootBoundary,
|
|
17099
|
+
for (var n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !0 : s, c = t.fallbackPlacements, d = t.padding, A = t.boundary, g = t.rootBoundary, _ = t.altBoundary, I = t.flipVariations, y = I === void 0 ? !0 : I, M = t.allowedAutoPlacements, h = f.options.placement, k = He(h), T = k === h, x = c || (T || !y ? [y1(h)] : G2(h)), C = [h].concat(x).reduce(function(Z, j) {
|
|
17100
17100
|
return Z.concat(He(j) === Rt ? J2(f, {
|
|
17101
17101
|
placement: j,
|
|
17102
17102
|
boundary: A,
|
|
17103
17103
|
rootBoundary: g,
|
|
17104
17104
|
padding: d,
|
|
17105
|
-
flipVariations:
|
|
17105
|
+
flipVariations: y,
|
|
17106
17106
|
allowedAutoPlacements: M
|
|
17107
17107
|
}) : j);
|
|
17108
|
-
}, []),
|
|
17109
|
-
var ee =
|
|
17108
|
+
}, []), w = f.rects.reference, m = f.rects.popper, p = /* @__PURE__ */ new Map(), N = !0, z = C[0], U = 0; U < C.length; U++) {
|
|
17109
|
+
var ee = C[U], H = He(ee), W = Df(ee) === Cf, R = [Ce, Le].indexOf(H) >= 0, ie = R ? "width" : "height", X = f1(f, {
|
|
17110
17110
|
placement: ee,
|
|
17111
17111
|
boundary: A,
|
|
17112
17112
|
rootBoundary: g,
|
|
17113
|
-
altBoundary:
|
|
17113
|
+
altBoundary: _,
|
|
17114
17114
|
padding: d
|
|
17115
17115
|
}), ae = R ? W ? Oe : Ie : W ? Le : Ce;
|
|
17116
|
-
|
|
17116
|
+
w[ie] > m[ie] && (ae = y1(ae));
|
|
17117
17117
|
var ve = y1(ae), Ae = [];
|
|
17118
17118
|
if (i && Ae.push(X[H] <= 0), r && Ae.push(X[ae] <= 0, X[ve] <= 0), Ae.every(function(Z) {
|
|
17119
17119
|
return Z;
|
|
@@ -17121,12 +17121,12 @@ function X2(e) {
|
|
|
17121
17121
|
z = ee, N = !1;
|
|
17122
17122
|
break;
|
|
17123
17123
|
}
|
|
17124
|
-
|
|
17124
|
+
p.set(ee, Ae);
|
|
17125
17125
|
}
|
|
17126
17126
|
if (N)
|
|
17127
|
-
for (var ye =
|
|
17128
|
-
var P =
|
|
17129
|
-
var ce =
|
|
17127
|
+
for (var ye = y ? 3 : 1, Be = function(j) {
|
|
17128
|
+
var P = C.find(function(q) {
|
|
17129
|
+
var ce = p.get(q);
|
|
17130
17130
|
if (ce)
|
|
17131
17131
|
return ce.slice(0, j).every(function(xe) {
|
|
17132
17132
|
return xe;
|
|
@@ -17235,12 +17235,12 @@ function lc(e) {
|
|
|
17235
17235
|
return e === "x" ? "y" : "x";
|
|
17236
17236
|
}
|
|
17237
17237
|
function uc(e) {
|
|
17238
|
-
var f = e.state, t = e.options, a = e.name, n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !1 : s, c = t.boundary, d = t.rootBoundary, A = t.altBoundary, g = t.padding,
|
|
17238
|
+
var f = e.state, t = e.options, a = e.name, n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !1 : s, c = t.boundary, d = t.rootBoundary, A = t.altBoundary, g = t.padding, _ = t.tether, I = _ === void 0 ? !0 : _, y = t.tetherOffset, M = y === void 0 ? 0 : y, h = f1(f, {
|
|
17239
17239
|
boundary: c,
|
|
17240
17240
|
rootBoundary: d,
|
|
17241
17241
|
padding: g,
|
|
17242
17242
|
altBoundary: A
|
|
17243
|
-
}),
|
|
17243
|
+
}), k = He(f.placement), T = Df(f.placement), x = !T, C = Ft(k), w = lc(C), m = f.modifiersData.popperOffsets, p = f.rects.reference, N = f.rects.popper, z = typeof M == "function" ? M(Object.assign({}, f.rects, {
|
|
17244
17244
|
placement: f.placement
|
|
17245
17245
|
})) : M, U = typeof z == "number" ? {
|
|
17246
17246
|
mainAxis: z,
|
|
@@ -17254,15 +17254,15 @@ function uc(e) {
|
|
|
17254
17254
|
};
|
|
17255
17255
|
if (m) {
|
|
17256
17256
|
if (i) {
|
|
17257
|
-
var W, R =
|
|
17257
|
+
var W, R = C === "y" ? Ce : Ie, ie = C === "y" ? Le : Oe, X = C === "y" ? "height" : "width", ae = m[C], ve = ae + h[R], Ae = ae - h[ie], ye = I ? -N[X] / 2 : 0, Be = T === Cf ? p[X] : N[X], Ne = T === Cf ? -N[X] : -p[X], F = f.elements.arrow, Z = I && F ? Qt(F) : {
|
|
17258
17258
|
width: 0,
|
|
17259
17259
|
height: 0
|
|
17260
|
-
}, j = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Hn(), P = j[R], q = j[ie], ce = Wf(0,
|
|
17261
|
-
m[
|
|
17260
|
+
}, j = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Hn(), P = j[R], q = j[ie], ce = Wf(0, p[X], Z[X]), xe = x ? p[X] / 2 - ye - ce - P - U.mainAxis : Be - ce - P - U.mainAxis, Ke = x ? -p[X] / 2 + ye + ce + q + U.mainAxis : Ne + ce + q + U.mainAxis, hf = f.elements.arrow && a1(f.elements.arrow), u1 = hf ? C === "y" ? hf.clientTop || 0 : hf.clientLeft || 0 : 0, Sf = (W = ee == null ? void 0 : ee[C]) != null ? W : 0, c1 = ae + xe - Sf - u1, r1 = ae + Ke - Sf, d1 = Wf(I ? J1(ve, c1) : ve, ae, I ? mf(Ae, r1) : Ae);
|
|
17261
|
+
m[C] = d1, H[C] = d1 - ae;
|
|
17262
17262
|
}
|
|
17263
17263
|
if (r) {
|
|
17264
|
-
var A1, Vf =
|
|
17265
|
-
m[
|
|
17264
|
+
var A1, Vf = C === "x" ? Ce : Ie, st = C === "x" ? Le : Oe, Je = m[w], vf = w === "y" ? "height" : "width", ff = Je + h[Vf], Lf = Je - h[st], bf = [Ce, Ie].indexOf(k) !== -1, Of = (A1 = ee == null ? void 0 : ee[w]) != null ? A1 : 0, df = bf ? ff : Je - p[vf] - N[vf] - Of + U.altAxis, Pe = bf ? Je + p[vf] + N[vf] - Of - U.altAxis : Lf, V = I && bf ? S2(df, Je, Pe) : Wf(I ? df : ff, Je, I ? Pe : Lf);
|
|
17265
|
+
m[w] = V, H[w] = V - Je;
|
|
17266
17266
|
}
|
|
17267
17267
|
f.modifiersData[a] = H;
|
|
17268
17268
|
}
|
|
@@ -17380,35 +17380,35 @@ function vc(e) {
|
|
|
17380
17380
|
},
|
|
17381
17381
|
attributes: {},
|
|
17382
17382
|
styles: {}
|
|
17383
|
-
}, g = [],
|
|
17383
|
+
}, g = [], _ = !1, I = {
|
|
17384
17384
|
state: A,
|
|
17385
|
-
setOptions: function(
|
|
17386
|
-
var T = typeof
|
|
17385
|
+
setOptions: function(k) {
|
|
17386
|
+
var T = typeof k == "function" ? k(A.options) : k;
|
|
17387
17387
|
M(), A.options = Object.assign({}, i, A.options, T), A.scrollParents = {
|
|
17388
17388
|
reference: If(r) ? Zf(r) : r.contextElement ? Zf(r.contextElement) : [],
|
|
17389
17389
|
popper: Zf(c)
|
|
17390
17390
|
};
|
|
17391
|
-
var
|
|
17392
|
-
return A.orderedModifiers =
|
|
17393
|
-
return
|
|
17394
|
-
}),
|
|
17391
|
+
var x = pc(hc([].concat(a, A.options.modifiers)));
|
|
17392
|
+
return A.orderedModifiers = x.filter(function(C) {
|
|
17393
|
+
return C.enabled;
|
|
17394
|
+
}), y(), I.update();
|
|
17395
17395
|
},
|
|
17396
17396
|
forceUpdate: function() {
|
|
17397
|
-
if (!
|
|
17398
|
-
var
|
|
17399
|
-
if (vn(T,
|
|
17397
|
+
if (!_) {
|
|
17398
|
+
var k = A.elements, T = k.reference, x = k.popper;
|
|
17399
|
+
if (vn(T, x)) {
|
|
17400
17400
|
A.rects = {
|
|
17401
|
-
reference: gc(T, a1(
|
|
17402
|
-
popper: Qt(
|
|
17401
|
+
reference: gc(T, a1(x), A.options.strategy === "fixed"),
|
|
17402
|
+
popper: Qt(x)
|
|
17403
17403
|
}, A.reset = !1, A.placement = A.options.placement, A.orderedModifiers.forEach(function(U) {
|
|
17404
17404
|
return A.modifiersData[U.name] = Object.assign({}, U.data);
|
|
17405
17405
|
});
|
|
17406
|
-
for (var
|
|
17406
|
+
for (var C = 0; C < A.orderedModifiers.length; C++) {
|
|
17407
17407
|
if (A.reset === !0) {
|
|
17408
|
-
A.reset = !1,
|
|
17408
|
+
A.reset = !1, C = -1;
|
|
17409
17409
|
continue;
|
|
17410
17410
|
}
|
|
17411
|
-
var
|
|
17411
|
+
var w = A.orderedModifiers[C], m = w.fn, p = w.options, N = p === void 0 ? {} : p, z = w.name;
|
|
17412
17412
|
typeof m == "function" && (A = m({
|
|
17413
17413
|
state: A,
|
|
17414
17414
|
options: N,
|
|
@@ -17420,37 +17420,37 @@ function vc(e) {
|
|
|
17420
17420
|
}
|
|
17421
17421
|
},
|
|
17422
17422
|
update: _c(function() {
|
|
17423
|
-
return new Promise(function(
|
|
17424
|
-
I.forceUpdate(),
|
|
17423
|
+
return new Promise(function(h) {
|
|
17424
|
+
I.forceUpdate(), h(A);
|
|
17425
17425
|
});
|
|
17426
17426
|
}),
|
|
17427
17427
|
destroy: function() {
|
|
17428
|
-
M(),
|
|
17428
|
+
M(), _ = !0;
|
|
17429
17429
|
}
|
|
17430
17430
|
};
|
|
17431
17431
|
if (!vn(r, c))
|
|
17432
17432
|
return I;
|
|
17433
|
-
I.setOptions(d).then(function(
|
|
17434
|
-
!
|
|
17433
|
+
I.setOptions(d).then(function(h) {
|
|
17434
|
+
!_ && d.onFirstUpdate && d.onFirstUpdate(h);
|
|
17435
17435
|
});
|
|
17436
|
-
function
|
|
17437
|
-
A.orderedModifiers.forEach(function(
|
|
17438
|
-
var
|
|
17439
|
-
if (typeof
|
|
17440
|
-
var
|
|
17436
|
+
function y() {
|
|
17437
|
+
A.orderedModifiers.forEach(function(h) {
|
|
17438
|
+
var k = h.name, T = h.options, x = T === void 0 ? {} : T, C = h.effect;
|
|
17439
|
+
if (typeof C == "function") {
|
|
17440
|
+
var w = C({
|
|
17441
17441
|
state: A,
|
|
17442
|
-
name:
|
|
17442
|
+
name: k,
|
|
17443
17443
|
instance: I,
|
|
17444
|
-
options:
|
|
17444
|
+
options: x
|
|
17445
17445
|
}), m = function() {
|
|
17446
17446
|
};
|
|
17447
|
-
g.push(
|
|
17447
|
+
g.push(w || m);
|
|
17448
17448
|
}
|
|
17449
17449
|
});
|
|
17450
17450
|
}
|
|
17451
17451
|
function M() {
|
|
17452
|
-
g.forEach(function(
|
|
17453
|
-
return
|
|
17452
|
+
g.forEach(function(h) {
|
|
17453
|
+
return h();
|
|
17454
17454
|
}), g = [];
|
|
17455
17455
|
}
|
|
17456
17456
|
return I;
|
|
@@ -17508,36 +17508,36 @@ const wc = G({
|
|
|
17508
17508
|
select: (e) => !0
|
|
17509
17509
|
},
|
|
17510
17510
|
setup() {
|
|
17511
|
-
const { state: e, updateEmoji: f, updateSelect: t } = se("store"), a =
|
|
17511
|
+
const { state: e, updateEmoji: f, updateSelect: t } = se("store"), a = v(null), n = Q(() => Mc(
|
|
17512
17512
|
e.emojis,
|
|
17513
17513
|
e.search,
|
|
17514
17514
|
e.skinTone,
|
|
17515
17515
|
e.options.disabledGroups
|
|
17516
17516
|
)), i = na(), s = Q(() => !e.options.hideGroupNames), r = Q(() => !e.options.disableStickyGroupNames), c = Cn(e.options.groupNames), d = e.orderedGroupKeys;
|
|
17517
|
-
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((
|
|
17518
|
-
e.options.groupNames[
|
|
17517
|
+
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((y) => {
|
|
17518
|
+
e.options.groupNames[y] ? c[y] = e.options.groupNames[y] : c[y] = ea(y);
|
|
17519
17519
|
});
|
|
17520
17520
|
const A = Xn() ? "is-mac" : "";
|
|
17521
|
-
function g(
|
|
17522
|
-
f(
|
|
17521
|
+
function g(y) {
|
|
17522
|
+
f(y);
|
|
17523
17523
|
}
|
|
17524
|
-
function
|
|
17525
|
-
t(
|
|
17526
|
-
...
|
|
17524
|
+
function _(y) {
|
|
17525
|
+
t(y), i == null || i.emit("select", {
|
|
17526
|
+
...y,
|
|
17527
17527
|
t: e.skinTone,
|
|
17528
|
-
i: M1(
|
|
17528
|
+
i: M1(y.r)
|
|
17529
17529
|
});
|
|
17530
17530
|
}
|
|
17531
|
-
function I(
|
|
17532
|
-
var
|
|
17533
|
-
const
|
|
17534
|
-
|
|
17531
|
+
function I(y, M) {
|
|
17532
|
+
var h;
|
|
17533
|
+
const k = (h = y == null ? void 0 : y.target) == null ? void 0 : h.closest("button");
|
|
17534
|
+
k && (k.innerHTML = `<span>${M1(M)}</span>`);
|
|
17535
17535
|
}
|
|
17536
17536
|
return ne(
|
|
17537
17537
|
() => e.activeGroup,
|
|
17538
17538
|
() => {
|
|
17539
|
-
var
|
|
17540
|
-
const M = (
|
|
17539
|
+
var y;
|
|
17540
|
+
const M = (y = a.value) == null ? void 0 : y.querySelector("#" + e.activeGroup);
|
|
17541
17541
|
M && (M.parentNode.scrollTop = M.offsetTop - M.parentNode.offsetTop);
|
|
17542
17542
|
}
|
|
17543
17543
|
), {
|
|
@@ -17545,7 +17545,7 @@ const wc = G({
|
|
|
17545
17545
|
bodyInner: a,
|
|
17546
17546
|
EMOJI_REMOTE_SRC: Un,
|
|
17547
17547
|
GROUP_NAMES: Bn,
|
|
17548
|
-
handleClick:
|
|
17548
|
+
handleClick: _,
|
|
17549
17549
|
handleError: I,
|
|
17550
17550
|
handleMouseEnter: g,
|
|
17551
17551
|
native: e.options.native,
|
|
@@ -17579,7 +17579,7 @@ function Ec(e, f, t, a, n, i) {
|
|
|
17579
17579
|
class: S(e.isSticky ? "v3-sticky" : "")
|
|
17580
17580
|
}, E(e.groupNames[s]), 3)), [
|
|
17581
17581
|
[Re, e.emojis[s]]
|
|
17582
|
-
]) :
|
|
17582
|
+
]) : b("", !0),
|
|
17583
17583
|
ge(o("div", kc, [
|
|
17584
17584
|
(l(!0), u(J, null, le(e.emojis[s], (r) => (l(), u("button", {
|
|
17585
17585
|
key: r.r,
|
|
@@ -17618,8 +17618,8 @@ const Rc = G({
|
|
|
17618
17618
|
}))
|
|
17619
17619
|
], A = [];
|
|
17620
17620
|
return s.forEach((g) => {
|
|
17621
|
-
const
|
|
17622
|
-
|
|
17621
|
+
const _ = d.findIndex((I) => I.key === g);
|
|
17622
|
+
_ !== -1 && (A.push(d[_]), d.splice(_, 1));
|
|
17623
17623
|
}), {
|
|
17624
17624
|
orderedGroups: A,
|
|
17625
17625
|
orderedKeys: s,
|
|
@@ -17676,8 +17676,8 @@ function Kc(e, f, t, a, n, i) {
|
|
|
17676
17676
|
}, null, 8, qc)
|
|
17677
17677
|
], 8, Yc)
|
|
17678
17678
|
], 10, Pc))), 128))
|
|
17679
|
-
])) :
|
|
17680
|
-
e.hasGroupIcons && e.hasSearch ? (l(), u("div", Hc)) :
|
|
17679
|
+
])) : b("", !0),
|
|
17680
|
+
e.hasGroupIcons && e.hasSearch ? (l(), u("div", Hc)) : b("", !0),
|
|
17681
17681
|
e.hasSearch ? (l(), u("div", Wc, [
|
|
17682
17682
|
ge(o("input", {
|
|
17683
17683
|
"onUpdate:modelValue": f[0] || (f[0] = (s) => e.searchValue = s),
|
|
@@ -17686,27 +17686,27 @@ function Kc(e, f, t, a, n, i) {
|
|
|
17686
17686
|
}, null, 8, Zc), [
|
|
17687
17687
|
[Tf, e.searchValue]
|
|
17688
17688
|
])
|
|
17689
|
-
])) :
|
|
17690
|
-
])) :
|
|
17689
|
+
])) : b("", !0)
|
|
17690
|
+
])) : b("", !0);
|
|
17691
17691
|
}
|
|
17692
17692
|
var Jc = /* @__PURE__ */ s1(Rc, [["render", Kc]]);
|
|
17693
17693
|
const Gc = G({
|
|
17694
17694
|
name: "Header",
|
|
17695
17695
|
setup() {
|
|
17696
|
-
const { state: e, updateSkinTone: f } = se("store"), t =
|
|
17696
|
+
const { state: e, updateSkinTone: f } = se("store"), t = v(!1), a = v(!1), n = Q(() => e.skinTone), i = Q(
|
|
17697
17697
|
() => e.options.staticTexts.skinTone || "Skin tone"
|
|
17698
17698
|
), s = Q(() => !e.options.disableSkinTones), r = Xn() ? "is-mac" : "", c = Q(() => ({
|
|
17699
17699
|
...e.emoji,
|
|
17700
17700
|
src: Un + "/" + e.emoji[Xf] + ".png"
|
|
17701
17701
|
}));
|
|
17702
|
-
function d(
|
|
17703
|
-
t.value =
|
|
17702
|
+
function d(_ = !0) {
|
|
17703
|
+
t.value = _;
|
|
17704
17704
|
}
|
|
17705
17705
|
function A() {
|
|
17706
17706
|
t.value = !t.value;
|
|
17707
17707
|
}
|
|
17708
|
-
function g(
|
|
17709
|
-
f(
|
|
17708
|
+
function g(_) {
|
|
17709
|
+
f(_), d(!1);
|
|
17710
17710
|
}
|
|
17711
17711
|
return ne(
|
|
17712
17712
|
() => e.emoji,
|
|
@@ -17771,7 +17771,7 @@ function sr(e, f, t, a, n, i) {
|
|
|
17771
17771
|
onClick: (r) => e.selectSkinTone(s)
|
|
17772
17772
|
}, null, 10, ar))), 128))
|
|
17773
17773
|
], 2)
|
|
17774
|
-
], 64)) :
|
|
17774
|
+
], 64)) : b("", !0)
|
|
17775
17775
|
], 32);
|
|
17776
17776
|
}
|
|
17777
17777
|
var ir = /* @__PURE__ */ s1(Gc, [["render", sr]]);
|
|
@@ -17813,47 +17813,47 @@ const or = G({
|
|
|
17813
17813
|
"update:text": (e) => !0
|
|
17814
17814
|
},
|
|
17815
17815
|
setup(e, { emit: f }) {
|
|
17816
|
-
const t =
|
|
17816
|
+
const t = v(), a = v(), n = v(), i = v(!1), s = v(e.text), r = e.type === "input" || e.type === "textarea";
|
|
17817
17817
|
let c = -1;
|
|
17818
17818
|
const { state: d } = se("store"), A = Q(() => d.options.colorTheme);
|
|
17819
|
-
function g(
|
|
17819
|
+
function g(h) {
|
|
17820
17820
|
if (r) {
|
|
17821
|
-
const
|
|
17822
|
-
|
|
17821
|
+
const k = d.options.mode;
|
|
17822
|
+
k === "prepend" ? s.value = h.i + s.value : k === "insert" && c !== -1 ? (s.value = `${s.value.slice(0, c)}${h.i}${s.value.slice(c)}`, c += h.i.length) : s.value += h.i, f("update:text", s.value);
|
|
17823
17823
|
}
|
|
17824
|
-
f("select",
|
|
17824
|
+
f("select", h);
|
|
17825
17825
|
}
|
|
17826
|
-
function
|
|
17827
|
-
var
|
|
17828
|
-
t.value && (c = ((
|
|
17826
|
+
function _() {
|
|
17827
|
+
var h;
|
|
17828
|
+
t.value && (c = ((h = t.value) == null ? void 0 : h.selectionEnd) || -1);
|
|
17829
17829
|
}
|
|
17830
|
-
function I(
|
|
17831
|
-
var
|
|
17832
|
-
!((
|
|
17830
|
+
function I(h) {
|
|
17831
|
+
var k;
|
|
17832
|
+
!((k = h.target) != null && k.closest(
|
|
17833
17833
|
".v3-input-picker-wrap"
|
|
17834
17834
|
)) && i.value && (i.value = !1);
|
|
17835
17835
|
}
|
|
17836
|
-
function
|
|
17836
|
+
function y() {
|
|
17837
17837
|
if (a.value && n.value && r) {
|
|
17838
|
-
let
|
|
17839
|
-
typeof
|
|
17838
|
+
let h = d.options.offset;
|
|
17839
|
+
typeof h != "number" && (h = 6), yc(a.value, n.value, {
|
|
17840
17840
|
placement: "bottom-end",
|
|
17841
17841
|
modifiers: [
|
|
17842
17842
|
{
|
|
17843
17843
|
name: "offset",
|
|
17844
17844
|
options: {
|
|
17845
|
-
offset: [0,
|
|
17845
|
+
offset: [0, h]
|
|
17846
17846
|
}
|
|
17847
17847
|
}
|
|
17848
17848
|
]
|
|
17849
17849
|
}), document.body.addEventListener("click", I);
|
|
17850
17850
|
}
|
|
17851
17851
|
}
|
|
17852
|
-
function M(
|
|
17853
|
-
s.value =
|
|
17852
|
+
function M(h) {
|
|
17853
|
+
s.value = h.target.value || "", f("update:text", s.value);
|
|
17854
17854
|
}
|
|
17855
17855
|
return me(() => {
|
|
17856
|
-
|
|
17856
|
+
y();
|
|
17857
17857
|
}), aa(() => {
|
|
17858
17858
|
document.body.removeEventListener("click", I);
|
|
17859
17859
|
}), {
|
|
@@ -17862,7 +17862,7 @@ const or = G({
|
|
|
17862
17862
|
onSelect: g,
|
|
17863
17863
|
input: s,
|
|
17864
17864
|
elem: t,
|
|
17865
|
-
updateCursor:
|
|
17865
|
+
updateCursor: _,
|
|
17866
17866
|
button: a,
|
|
17867
17867
|
picker: n,
|
|
17868
17868
|
isInputType: r,
|
|
@@ -18012,7 +18012,7 @@ const mr = G({
|
|
|
18012
18012
|
select: (e) => !0
|
|
18013
18013
|
},
|
|
18014
18014
|
setup(e, { emit: f }) {
|
|
18015
|
-
const t =
|
|
18015
|
+
const t = v(e.text);
|
|
18016
18016
|
function a(i) {
|
|
18017
18017
|
t.value = i || "", f("update:text", t.value);
|
|
18018
18018
|
}
|
|
@@ -26720,21 +26720,21 @@ const yr = /* @__PURE__ */ O(hr, [["render", br]]), Mr = {
|
|
|
26720
26720
|
}
|
|
26721
26721
|
},
|
|
26722
26722
|
setup(e) {
|
|
26723
|
-
const f = e, t =
|
|
26724
|
-
r(c().text +
|
|
26723
|
+
const f = e, t = v(null), a = v("light"), n = v(null), i = v(!1), s = se("chatAppId"), { setMessageText: r, getMessage: c } = ze(s), d = () => document.getElementById(s).attributes["data-theme"].nodeValue.indexOf("dark") != -1 ? "dark" : "light", A = (y) => {
|
|
26724
|
+
r(c().text + y.i);
|
|
26725
26725
|
}, g = () => {
|
|
26726
26726
|
f.state === "active" && (i.value = !i.value, i.value && (a.value = d()));
|
|
26727
|
-
},
|
|
26727
|
+
}, _ = () => {
|
|
26728
26728
|
i.value = !1;
|
|
26729
|
-
}, I = (
|
|
26730
|
-
i.value && !n.value.contains(
|
|
26729
|
+
}, I = (y) => {
|
|
26730
|
+
i.value && !n.value.contains(y.target) && !t.value.contains(y.target) && _();
|
|
26731
26731
|
};
|
|
26732
26732
|
return me(() => {
|
|
26733
26733
|
t.value.style.display = "none", document.addEventListener("click", I);
|
|
26734
26734
|
}), cf(() => {
|
|
26735
26735
|
document.removeEventListener("click", I);
|
|
26736
|
-
}), (
|
|
26737
|
-
D(c)().isRecording ?
|
|
26736
|
+
}), (y, M) => (l(), u(J, null, [
|
|
26737
|
+
D(c)().isRecording ? b("", !0) : (l(), u("button", {
|
|
26738
26738
|
key: 0,
|
|
26739
26739
|
ref_key: "emojiButton",
|
|
26740
26740
|
ref: n,
|
|
@@ -26805,15 +26805,15 @@ const yr = /* @__PURE__ */ O(hr, [["render", br]]), Mr = {
|
|
|
26805
26805
|
}, null, 8, Nr)) : r.prime ? (l(), u("i", {
|
|
26806
26806
|
key: 2,
|
|
26807
26807
|
class: S(["pi pi-" + r.prime, "context-menu__icon"])
|
|
26808
|
-
}, null, 2)) :
|
|
26809
|
-
r.title ? (l(), u("span", Er, E(r.title), 1)) :
|
|
26810
|
-
r.description ? (l(), u("span", jr, E(r.description), 1)) :
|
|
26808
|
+
}, null, 2)) : b("", !0),
|
|
26809
|
+
r.title ? (l(), u("span", Er, E(r.title), 1)) : b("", !0),
|
|
26810
|
+
r.description ? (l(), u("span", jr, E(r.description), 1)) : b("", !0)
|
|
26811
26811
|
], 8, Tr))), 128))
|
|
26812
26812
|
])
|
|
26813
26813
|
]));
|
|
26814
26814
|
}
|
|
26815
|
-
}, _f = /* @__PURE__ */ O(Sr, [["__scopeId", "data-v-2d69e97e"]]), $f =
|
|
26816
|
-
const f =
|
|
26815
|
+
}, _f = /* @__PURE__ */ O(Sr, [["__scopeId", "data-v-2d69e97e"]]), $f = v([]), Vr = (e) => {
|
|
26816
|
+
const f = v(0), t = $f.value.find(({ id: n }) => n == e);
|
|
26817
26817
|
return t != null ? f.value = $f.value.indexOf(t) : ($f.value.push({
|
|
26818
26818
|
id: e,
|
|
26819
26819
|
text: ""
|
|
@@ -26842,7 +26842,7 @@ const Or = { class: "feed-search__container" }, zr = { style: { "line-height": "
|
|
|
26842
26842
|
},
|
|
26843
26843
|
emits: ["search", "cancel", "switch"],
|
|
26844
26844
|
setup(e, { emit: f }) {
|
|
26845
|
-
const t = se("chatAppId"), { getModel: a } = Vr(t), n = f, i = e, s =
|
|
26845
|
+
const t = se("chatAppId"), { getModel: a } = Vr(t), n = f, i = e, s = v(), r = Lr("", 500), c = Q(() => i.isFeedLocation ? "40px" : (i.isFeedLocation, "20px"));
|
|
26846
26846
|
ne(
|
|
26847
26847
|
() => [a().text, r.value],
|
|
26848
26848
|
() => {
|
|
@@ -26863,7 +26863,7 @@ const Or = { class: "feed-search__container" }, zr = { style: { "line-height": "
|
|
|
26863
26863
|
ge(o("input", {
|
|
26864
26864
|
ref_key: "refInput",
|
|
26865
26865
|
ref: s,
|
|
26866
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
|
26866
|
+
"onUpdate:modelValue": g[0] || (g[0] = (_) => D(a)().text = _),
|
|
26867
26867
|
class: "feed-search__input",
|
|
26868
26868
|
type: "text",
|
|
26869
26869
|
placeholder: D(he)("component.FeedSearch.SearchPlaceholder")
|
|
@@ -26879,8 +26879,8 @@ const Or = { class: "feed-search__container" }, zr = { style: { "line-height": "
|
|
|
26879
26879
|
key: 0,
|
|
26880
26880
|
class: "pi pi-refresh",
|
|
26881
26881
|
style: { "margin-left": "5px", "margin-top": "10px", cursor: "pointer" },
|
|
26882
|
-
onClick: g[1] || (g[1] = (
|
|
26883
|
-
})) :
|
|
26882
|
+
onClick: g[1] || (g[1] = (_) => n("switch"))
|
|
26883
|
+
})) : b("", !0)
|
|
26884
26884
|
])
|
|
26885
26885
|
]),
|
|
26886
26886
|
_: 1
|
|
@@ -26934,12 +26934,12 @@ const Or = { class: "feed-search__container" }, zr = { style: { "line-height": "
|
|
|
26934
26934
|
style: { "margin-right": "3px" },
|
|
26935
26935
|
width: "24",
|
|
26936
26936
|
height: "24"
|
|
26937
|
-
}, null, 8, Wr)) :
|
|
26937
|
+
}, null, 8, Wr)) : b("", !0),
|
|
26938
26938
|
t.value ? (l(), u("span", {
|
|
26939
26939
|
key: 1,
|
|
26940
26940
|
class: S(t.value),
|
|
26941
26941
|
style: { "margin-right": "3px", "font-size": "20px" }
|
|
26942
|
-
}, null, 2)) :
|
|
26942
|
+
}, null, 2)) : b("", !0),
|
|
26943
26943
|
o("p", null, E(e.object.text), 1)
|
|
26944
26944
|
])
|
|
26945
26945
|
])
|
|
@@ -26967,7 +26967,7 @@ const Or = { class: "feed-search__container" }, zr = { style: { "line-height": "
|
|
|
26967
26967
|
},
|
|
26968
26968
|
emits: ["clickedSearch", "loadMore"],
|
|
26969
26969
|
setup(e, { emit: f }) {
|
|
26970
|
-
const t = f, a = e, n =
|
|
26970
|
+
const t = f, a = e, n = v(), i = v(null), s = Q(() => a.notFound ? he("component.FeedFoundObjects.notFound") : a.notFound ? "" : he("component.FeedFoundObjects.notSearched")), r = (d) => {
|
|
26971
26971
|
d.messageId && (t("clickedSearch", d.messageId), i.value = d);
|
|
26972
26972
|
}, c = () => {
|
|
26973
26973
|
const d = D(n);
|
|
@@ -26984,7 +26984,7 @@ const Or = { class: "feed-search__container" }, zr = { style: { "line-height": "
|
|
|
26984
26984
|
}, [
|
|
26985
26985
|
(l(!0), u(J, null, le(e.objects, (g) => (l(), u("div", {
|
|
26986
26986
|
key: g.messageId,
|
|
26987
|
-
onClick: (
|
|
26987
|
+
onClick: (_) => r(g)
|
|
26988
26988
|
}, [
|
|
26989
26989
|
Y(Kr, {
|
|
26990
26990
|
object: g,
|
|
@@ -26993,7 +26993,7 @@ const Or = { class: "feed-search__container" }, zr = { style: { "line-height": "
|
|
|
26993
26993
|
], 8, Gr))), 128))
|
|
26994
26994
|
], 544)) : e.foundAmount == 0 ? (l(), u("div", Xr, [
|
|
26995
26995
|
o("p", null, E(s.value), 1)
|
|
26996
|
-
])) :
|
|
26996
|
+
])) : b("", !0)
|
|
26997
26997
|
], 64));
|
|
26998
26998
|
}
|
|
26999
26999
|
}), B6 = /* @__PURE__ */ O(ed, [["__scopeId", "data-v-2cb2ea71"]]), fd = { class: "audio-recorder__container" }, td = { key: 0 }, nd = {
|
|
@@ -27012,32 +27012,32 @@ const Or = { class: "feed-search__container" }, zr = { style: { "line-height": "
|
|
|
27012
27012
|
}
|
|
27013
27013
|
},
|
|
27014
27014
|
setup(e) {
|
|
27015
|
-
const f = se("chatAppId"), { getMessage: t, setMessageFile: a, resetMessageFile: n, setRecordingMessage: i } = ze(f), s =
|
|
27015
|
+
const f = se("chatAppId"), { getMessage: t, setMessageFile: a, resetMessageFile: n, setRecordingMessage: i } = ze(f), s = v(), r = v(0), c = v(0), d = v(0), A = v(0), g = Q(() => {
|
|
27016
27016
|
let N = A.value < 10 ? "0" + A.value : A.value, z = d.value < 10 ? "0" + d.value : d.value, U = c.value < 10 ? "0" + c.value : c.value, ee = r.value < 10 ? "00" + r.value : r.value < 100 ? "0" + r.value : r.value;
|
|
27017
27017
|
return N + ":" + z + ":" + U + ":" + ee;
|
|
27018
|
-
}),
|
|
27018
|
+
}), _ = v(""), I = v(!1), y = v(), M = v([]), h = v(), k = v(), T = e, x = async () => {
|
|
27019
27019
|
if (!t().file && T.state == "active") {
|
|
27020
27020
|
const N = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
|
|
27021
27021
|
s.value = setInterval(() => {
|
|
27022
27022
|
r.value += 10, r.value == 1e3 && (r.value = 0, c.value++, c.value == 60 && (c.value = 0, d.value++, d.value == 60 && (d.value = 0, A.value++)));
|
|
27023
|
-
}, 10), i(!0), I.value = !0,
|
|
27023
|
+
}, 10), i(!0), I.value = !0, y.value = new MediaRecorder(N), y.value.start(), y.value.ondataavailable = (z) => {
|
|
27024
27024
|
M.value.push(z.data);
|
|
27025
27025
|
};
|
|
27026
27026
|
}
|
|
27027
|
-
}, y = () => {
|
|
27028
|
-
m(), _.value = void 0;
|
|
27029
27027
|
}, C = () => {
|
|
27030
|
-
|
|
27028
|
+
m(), h.value = void 0;
|
|
27029
|
+
}, w = () => {
|
|
27030
|
+
y.value && (y.value.stop(), y.value.onstop = async () => {
|
|
27031
27031
|
const N = new File(M.value, "voicemessage.mp3", { type: "audio/*" }), z = URL.createObjectURL(N);
|
|
27032
|
-
|
|
27033
|
-
if (
|
|
27032
|
+
h.value = z, _.value = "uploading", await ft(T.filebumpUrl, N).then((U) => {
|
|
27033
|
+
if (_.value = U.status, U.status == "success") {
|
|
27034
27034
|
const ee = document.getElementById("chat-input-file-line-" + f);
|
|
27035
27035
|
ee && (ee.style.display = "inherit"), a({
|
|
27036
27036
|
url: U.url,
|
|
27037
27037
|
name: U.name,
|
|
27038
27038
|
size: U.size,
|
|
27039
27039
|
type: U.type
|
|
27040
|
-
}), U.preview && (
|
|
27040
|
+
}), U.preview && (k.value = {
|
|
27041
27041
|
previewUrl: U.preview.previewUrl,
|
|
27042
27042
|
isImage: U.preview.isImage,
|
|
27043
27043
|
isVideo: U.preview.isVideo,
|
|
@@ -27049,53 +27049,53 @@ const Or = { class: "feed-search__container" }, zr = { style: { "line-height": "
|
|
|
27049
27049
|
});
|
|
27050
27050
|
}), m();
|
|
27051
27051
|
}, m = () => {
|
|
27052
|
-
clearInterval(s.value), r.value = 0, c.value = 0, d.value = 0, A.value = 0, i(!1), I.value = !1,
|
|
27053
|
-
},
|
|
27052
|
+
clearInterval(s.value), r.value = 0, c.value = 0, d.value = 0, A.value = 0, i(!1), I.value = !1, y.value = void 0, M.value = [];
|
|
27053
|
+
}, p = () => {
|
|
27054
27054
|
const N = document.getElementById("chat-input-file-line-" + f);
|
|
27055
|
-
N && (N.style.display = "none"), n(),
|
|
27055
|
+
N && (N.style.display = "none"), n(), k.value = void 0;
|
|
27056
27056
|
};
|
|
27057
27057
|
return ne(
|
|
27058
27058
|
() => t().file,
|
|
27059
27059
|
() => {
|
|
27060
|
-
t().file || (
|
|
27060
|
+
t().file || (k.value = void 0);
|
|
27061
27061
|
}
|
|
27062
27062
|
), (N, z) => (l(), u("div", fd, [
|
|
27063
|
-
|
|
27063
|
+
_.value === "uploading" ? (l(), u("div", td, z[0] || (z[0] = [
|
|
27064
27064
|
o("p", null, "Загрузка файла...", -1)
|
|
27065
|
-
]))) :
|
|
27066
|
-
I.value &&
|
|
27065
|
+
]))) : b("", !0),
|
|
27066
|
+
I.value && _.value != "uploading" ? (l(), u("div", nd, [
|
|
27067
27067
|
z[3] || (z[3] = o("span", { class: "audio-recorder__recording-icon pi pi-circle-fill" }, null, -1)),
|
|
27068
27068
|
o("button", {
|
|
27069
27069
|
class: "audio-recorder__button audio-recorder__button-record",
|
|
27070
|
-
onClick:
|
|
27070
|
+
onClick: C
|
|
27071
27071
|
}, z[1] || (z[1] = [
|
|
27072
27072
|
o("span", { class: "pi pi-trash" }, null, -1)
|
|
27073
27073
|
])),
|
|
27074
27074
|
o("button", {
|
|
27075
27075
|
class: "audio-recorder__button audio-recorder__button-record",
|
|
27076
|
-
onClick:
|
|
27076
|
+
onClick: w
|
|
27077
27077
|
}, z[2] || (z[2] = [
|
|
27078
27078
|
o("div", { class: "audio-recorder__stop" }, null, -1)
|
|
27079
27079
|
])),
|
|
27080
27080
|
o("span", ad, E(g.value), 1)
|
|
27081
|
-
])) :
|
|
27082
|
-
!I.value &&
|
|
27081
|
+
])) : b("", !0),
|
|
27082
|
+
!I.value && _.value != "uploading" && !D(t)().isRecording ? (l(), u("button", {
|
|
27083
27083
|
key: 2,
|
|
27084
27084
|
class: S(["audio-recorder__button", { "audio-recorder__button-disabled": e.state == "disabled" || D(t)().file }]),
|
|
27085
|
-
onClick:
|
|
27085
|
+
onClick: x
|
|
27086
27086
|
}, z[4] || (z[4] = [
|
|
27087
27087
|
o("span", { class: "pi pi-microphone" }, null, -1)
|
|
27088
|
-
]), 2)) :
|
|
27088
|
+
]), 2)) : b("", !0),
|
|
27089
27089
|
D(t)().file ? (l(), B(ke, {
|
|
27090
27090
|
key: 3,
|
|
27091
27091
|
to: "#chat-input-file-line-" + D(f)
|
|
27092
27092
|
}, [
|
|
27093
|
-
|
|
27093
|
+
k.value ? (l(), B(et, {
|
|
27094
27094
|
key: 0,
|
|
27095
|
-
"file-info":
|
|
27096
|
-
onReset:
|
|
27097
|
-
}, null, 8, ["file-info"])) :
|
|
27098
|
-
], 8, ["to"])) :
|
|
27095
|
+
"file-info": k.value,
|
|
27096
|
+
onReset: p
|
|
27097
|
+
}, null, 8, ["file-info"])) : b("", !0)
|
|
27098
|
+
], 8, ["to"])) : b("", !0)
|
|
27099
27099
|
]));
|
|
27100
27100
|
}
|
|
27101
27101
|
}), $6 = /* @__PURE__ */ O(sd, [["__scopeId", "data-v-7afb97e3"]]);
|
|
@@ -27103,13 +27103,13 @@ function i1({ component: e, attrs: f, Modal: t, modalAttrs: a }) {
|
|
|
27103
27103
|
return new Promise((n) => {
|
|
27104
27104
|
const i = document.createElement("div");
|
|
27105
27105
|
document.body.appendChild(i);
|
|
27106
|
-
const s =
|
|
27106
|
+
const s = v({}), r = () => {
|
|
27107
27107
|
g.unmount(), document.body.removeChild(i);
|
|
27108
27108
|
}, c = () => {
|
|
27109
27109
|
r(), n(s.value);
|
|
27110
|
-
}, d = (
|
|
27111
|
-
Object.keys(
|
|
27112
|
-
s.value[I] =
|
|
27110
|
+
}, d = (_) => {
|
|
27111
|
+
Object.keys(_).forEach((I) => {
|
|
27112
|
+
s.value[I] = _[I];
|
|
27113
27113
|
});
|
|
27114
27114
|
}, A = G({
|
|
27115
27115
|
render() {
|
|
@@ -27195,7 +27195,7 @@ const id = ["data-theme"], od = {
|
|
|
27195
27195
|
}, Ht = /* @__PURE__ */ O(cd, [["__scopeId", "data-v-4a9f3ae8"]]), R6 = async (e, f, t) => {
|
|
27196
27196
|
const a = await i1({
|
|
27197
27197
|
//в component должен быть встроен emit change(key: value)
|
|
27198
|
-
component: import("./SelectUser2-
|
|
27198
|
+
component: import("./SelectUser2-D9COZyKO.js"),
|
|
27199
27199
|
attrs: {
|
|
27200
27200
|
title: e,
|
|
27201
27201
|
users: f
|
|
@@ -27267,7 +27267,7 @@ const id = ["data-theme"], od = {
|
|
|
27267
27267
|
}
|
|
27268
27268
|
}, fa = /* @__PURE__ */ O(Ad, [["__scopeId", "data-v-fcb0f158"]]), P6 = async (e, f, t, a, n, i) => await i1({
|
|
27269
27269
|
//в component должен быть встроен emit change(key: value)
|
|
27270
|
-
component: import("./CreateDialog-
|
|
27270
|
+
component: import("./CreateDialog-CmOo-S6b.js"),
|
|
27271
27271
|
attrs: {
|
|
27272
27272
|
title: e,
|
|
27273
27273
|
name: f,
|
|
@@ -27281,7 +27281,7 @@ const id = ["data-theme"], od = {
|
|
|
27281
27281
|
}
|
|
27282
27282
|
}), gd = async (e) => await i1({
|
|
27283
27283
|
//в component должен быть встроен emit change(key: value)
|
|
27284
|
-
component: import("./ModalVideoRecorder
|
|
27284
|
+
component: import("./ModalVideoRecorder-DwV65ErV.js"),
|
|
27285
27285
|
attrs: {},
|
|
27286
27286
|
Modal: fa,
|
|
27287
27287
|
modalAttrs: {
|
|
@@ -27306,26 +27306,26 @@ const id = ["data-theme"], od = {
|
|
|
27306
27306
|
}
|
|
27307
27307
|
},
|
|
27308
27308
|
setup(e) {
|
|
27309
|
-
const f = se("chatAppId"), { getMessage: t, setMessageFile: a, setRecordingMessage: n, resetMessageFile: i } = ze(f), { getTheme: s } = Ue(f), r =
|
|
27309
|
+
const f = se("chatAppId"), { getMessage: t, setMessageFile: a, setRecordingMessage: n, resetMessageFile: i } = ze(f), { getTheme: s } = Ue(f), r = v(""), c = v(), d = e, A = async () => {
|
|
27310
27310
|
if (!t().file && d.state == "active") {
|
|
27311
|
-
const
|
|
27312
|
-
await gd(
|
|
27313
|
-
I.videoFile && (r.value = "uploading", n(!0), await ft(d.filebumpUrl, I.videoFile).then((
|
|
27314
|
-
if (n(!1), r.value =
|
|
27311
|
+
const _ = s().theme ? s().theme : "";
|
|
27312
|
+
await gd(_).then(async (I) => {
|
|
27313
|
+
I.videoFile && (r.value = "uploading", n(!0), await ft(d.filebumpUrl, I.videoFile).then((y) => {
|
|
27314
|
+
if (n(!1), r.value = y.status, y.status == "success") {
|
|
27315
27315
|
a({
|
|
27316
|
-
url:
|
|
27317
|
-
name:
|
|
27318
|
-
size:
|
|
27319
|
-
type:
|
|
27316
|
+
url: y.url,
|
|
27317
|
+
name: y.name,
|
|
27318
|
+
size: y.size,
|
|
27319
|
+
type: y.type
|
|
27320
27320
|
});
|
|
27321
27321
|
const M = document.getElementById("chat-input-file-line-" + f);
|
|
27322
|
-
M && (M.style.display = "inherit"),
|
|
27323
|
-
previewUrl:
|
|
27324
|
-
isImage:
|
|
27325
|
-
isVideo:
|
|
27326
|
-
isAudio:
|
|
27327
|
-
fileName:
|
|
27328
|
-
fileSize:
|
|
27322
|
+
M && (M.style.display = "inherit"), y.preview && (c.value = {
|
|
27323
|
+
previewUrl: y.preview.previewUrl,
|
|
27324
|
+
isImage: y.preview.isImage,
|
|
27325
|
+
isVideo: y.preview.isVideo,
|
|
27326
|
+
isAudio: y.preview.isAudio,
|
|
27327
|
+
fileName: y.name,
|
|
27328
|
+
fileSize: y.preview.fileSize
|
|
27329
27329
|
});
|
|
27330
27330
|
}
|
|
27331
27331
|
}));
|
|
@@ -27333,27 +27333,27 @@ const id = ["data-theme"], od = {
|
|
|
27333
27333
|
}
|
|
27334
27334
|
}, g = () => {
|
|
27335
27335
|
i();
|
|
27336
|
-
const
|
|
27337
|
-
|
|
27336
|
+
const _ = document.getElementById("chat-input-file-line-" + f);
|
|
27337
|
+
_ && (_.style.display = "none"), c.value = void 0;
|
|
27338
27338
|
};
|
|
27339
27339
|
return ne(
|
|
27340
27340
|
() => t().file,
|
|
27341
27341
|
() => {
|
|
27342
27342
|
t().file || (c.value = void 0);
|
|
27343
27343
|
}
|
|
27344
|
-
), (
|
|
27345
|
-
D(t)().isRecording ?
|
|
27344
|
+
), (_, I) => (l(), u(J, null, [
|
|
27345
|
+
D(t)().isRecording ? b("", !0) : (l(), u("div", md, [
|
|
27346
27346
|
r.value != "uploading" ? (l(), u("button", {
|
|
27347
27347
|
key: 0,
|
|
27348
27348
|
class: S(["video-recorder__button", { "video-recorder__button-disabled": e.state == "disabled" || D(t)().file }]),
|
|
27349
27349
|
onClick: A
|
|
27350
27350
|
}, I[0] || (I[0] = [
|
|
27351
27351
|
o("span", { class: "pi pi-video" }, null, -1)
|
|
27352
|
-
]), 2)) :
|
|
27352
|
+
]), 2)) : b("", !0)
|
|
27353
27353
|
])),
|
|
27354
27354
|
r.value === "uploading" ? (l(), u("div", pd, I[1] || (I[1] = [
|
|
27355
27355
|
o("p", null, "Загрузка файла...", -1)
|
|
27356
|
-
]))) :
|
|
27356
|
+
]))) : b("", !0),
|
|
27357
27357
|
D(t)().file ? (l(), B(ke, {
|
|
27358
27358
|
key: 2,
|
|
27359
27359
|
to: "#chat-input-file-line-" + D(f)
|
|
@@ -27362,8 +27362,8 @@ const id = ["data-theme"], od = {
|
|
|
27362
27362
|
key: 0,
|
|
27363
27363
|
"file-info": c.value,
|
|
27364
27364
|
onReset: g
|
|
27365
|
-
}, null, 8, ["file-info"])) :
|
|
27366
|
-
], 8, ["to"])) :
|
|
27365
|
+
}, null, 8, ["file-info"])) : b("", !0)
|
|
27366
|
+
], 8, ["to"])) : b("", !0)
|
|
27367
27367
|
], 64));
|
|
27368
27368
|
}
|
|
27369
27369
|
}), Y6 = /* @__PURE__ */ O(_d, [["__scopeId", "data-v-d4c5e55f"]]), hd = /* @__PURE__ */ G({
|
|
@@ -27418,7 +27418,7 @@ const id = ["data-theme"], od = {
|
|
|
27418
27418
|
}, " / ", 2)
|
|
27419
27419
|
]),
|
|
27420
27420
|
_: 1
|
|
27421
|
-
}, 8, ["mode", "disabled", "actions"])) :
|
|
27421
|
+
}, 8, ["mode", "disabled", "actions"])) : b("", !0)
|
|
27422
27422
|
]),
|
|
27423
27423
|
_: 1
|
|
27424
27424
|
}));
|
|
@@ -27496,7 +27496,7 @@ const id = ["data-theme"], od = {
|
|
|
27496
27496
|
},
|
|
27497
27497
|
emits: ["select-attribute-channel", "phone-call"],
|
|
27498
27498
|
setup(e, { emit: f }) {
|
|
27499
|
-
const t = e, a = f, n =
|
|
27499
|
+
const t = e, a = f, n = v(null), i = v(null), s = v(null), r = v(null), c = v(!1), d = v(!1), A = v(null), g = v("0px"), _ = v(null), I = v(!1), y = v(null), M = v({}), h = v(0), k = v(!1), T = v(null), x = v(null), C = ["phone", "whatsapp", "telegram", "max", "sms"], w = {
|
|
27500
27500
|
phone: Ga,
|
|
27501
27501
|
whatsapp: ts,
|
|
27502
27502
|
telegram: is,
|
|
@@ -27508,13 +27508,13 @@ const id = ["data-theme"], od = {
|
|
|
27508
27508
|
telegram: ks,
|
|
27509
27509
|
max: Ns,
|
|
27510
27510
|
sms: Vs
|
|
27511
|
-
},
|
|
27512
|
-
() =>
|
|
27511
|
+
}, p = Q(
|
|
27512
|
+
() => C.map((V) => ({
|
|
27513
27513
|
type: V,
|
|
27514
|
-
component:
|
|
27514
|
+
component: w[V]
|
|
27515
27515
|
}))
|
|
27516
|
-
), N =
|
|
27517
|
-
Object.fromEntries(
|
|
27516
|
+
), N = v(
|
|
27517
|
+
Object.fromEntries(C.map((V) => [V, []]))
|
|
27518
27518
|
), z = Q(
|
|
27519
27519
|
() => s.value ? j(s.value) : null
|
|
27520
27520
|
), U = Q(
|
|
@@ -27553,7 +27553,7 @@ const id = ["data-theme"], od = {
|
|
|
27553
27553
|
) : !0;
|
|
27554
27554
|
}, ae = (V) => t.channels.filter(
|
|
27555
27555
|
($) => ie($.channelId) === V
|
|
27556
|
-
).length > 1, ve = (V) =>
|
|
27556
|
+
).length > 1, ve = (V) => y.value === V, Ae = (V) => {
|
|
27557
27557
|
const $ = t.channels.filter(
|
|
27558
27558
|
(pe) => ie(pe.channelId) === V
|
|
27559
27559
|
);
|
|
@@ -27565,7 +27565,7 @@ const id = ["data-theme"], od = {
|
|
|
27565
27565
|
const $ = Ae(V);
|
|
27566
27566
|
return $ ? Be($.channelId) : ye(V);
|
|
27567
27567
|
}, F = () => {
|
|
27568
|
-
const V = Object.fromEntries(
|
|
27568
|
+
const V = Object.fromEntries(C.map(($) => [$, []]));
|
|
27569
27569
|
t.contactAttributes.forEach(($) => {
|
|
27570
27570
|
$.type === "telegram" ? V.telegram.push($) : $.type === "phone" && ["whatsapp", "max", "sms", "phone"].forEach((pe) => {
|
|
27571
27571
|
V[pe].push($);
|
|
@@ -27582,11 +27582,11 @@ const id = ["data-theme"], od = {
|
|
|
27582
27582
|
});
|
|
27583
27583
|
}, P = (V) => {
|
|
27584
27584
|
var $;
|
|
27585
|
-
return (($ =
|
|
27585
|
+
return (($ = _.value) == null ? void 0 : $.id) === V.id;
|
|
27586
27586
|
}, q = (V) => {
|
|
27587
|
-
|
|
27587
|
+
y.value === V && s.value === V ? ce() : (s.value = V, c.value = !0, d.value = !1, _.value = null, I.value = !1, ff());
|
|
27588
27588
|
}, ce = () => {
|
|
27589
|
-
c.value = !1, s.value = null,
|
|
27589
|
+
c.value = !1, s.value = null, _.value = null, I.value = !1, d.value = !1;
|
|
27590
27590
|
}, xe = () => {
|
|
27591
27591
|
var V;
|
|
27592
27592
|
if (s.value === "phone")
|
|
@@ -27614,31 +27614,31 @@ const id = ["data-theme"], od = {
|
|
|
27614
27614
|
a("select-attribute-channel", {
|
|
27615
27615
|
attributeId: V.id,
|
|
27616
27616
|
channelId: $
|
|
27617
|
-
}),
|
|
27617
|
+
}), y.value = s.value, M.value = t.channels.find((pe) => pe.channelId === $), console.log("TEST selectedChannel.value", M.value), X($) && t.isNewDialog ? df() : Pe(), ce();
|
|
27618
27618
|
}, Sf = (V) => {
|
|
27619
27619
|
z.value && a("select-attribute-channel", {
|
|
27620
27620
|
attributeId: z.value.id,
|
|
27621
27621
|
channelId: V
|
|
27622
|
-
}),
|
|
27622
|
+
}), y.value = s.value, M.value = t.channels.find(($) => $.channelId === V), console.log("TEST selectedChannel.value", M.value), X(V) && t.isNewDialog ? df() : Pe(), ce();
|
|
27623
27623
|
}, c1 = (V) => {
|
|
27624
27624
|
ae(s.value) && (Vf(), I.value = !0, d.value = !0, Lf(V.currentTarget));
|
|
27625
27625
|
}, r1 = () => {
|
|
27626
27626
|
d.value || (I.value = !1);
|
|
27627
27627
|
}, d1 = (V, $) => {
|
|
27628
|
-
ae(s.value) && (I.value = !1, A.value = V, d.value = !0,
|
|
27628
|
+
ae(s.value) && (I.value = !1, A.value = V, d.value = !0, _.value = V, Lf($.currentTarget));
|
|
27629
27629
|
}, A1 = () => {
|
|
27630
|
-
d.value || (
|
|
27630
|
+
d.value || (_.value = null);
|
|
27631
27631
|
}, Vf = () => {
|
|
27632
|
-
d.value = !1,
|
|
27632
|
+
d.value = !1, _.value = null, A.value = null;
|
|
27633
27633
|
}, st = () => {
|
|
27634
27634
|
d.value = !0;
|
|
27635
27635
|
}, Je = () => {
|
|
27636
|
-
d.value = !1,
|
|
27636
|
+
d.value = !1, _.value = null, I.value = !1;
|
|
27637
27637
|
}, vf = (V) => {
|
|
27638
27638
|
I.value ? Sf(V) : A.value && (a("select-attribute-channel", {
|
|
27639
27639
|
attributeId: A.value.id,
|
|
27640
27640
|
channelId: V
|
|
27641
|
-
}),
|
|
27641
|
+
}), y.value = s.value, M.value = t.channels.find(($) => $.channelId === V), console.log("TEST selectedChannel.value", M.value), X(V) && t.isNewDialog ? df() : Pe()), ce();
|
|
27642
27642
|
}, ff = () => {
|
|
27643
27643
|
i.value && (g.value = `${i.value.offsetWidth}px`);
|
|
27644
27644
|
}, Lf = (V) => {
|
|
@@ -27647,7 +27647,7 @@ const id = ["data-theme"], od = {
|
|
|
27647
27647
|
var af, Wt, Zt;
|
|
27648
27648
|
const $ = (af = n.value) == null ? void 0 : af.querySelector(".attributes-menu"), pe = (Wt = n.value) == null ? void 0 : Wt.querySelector(".sub-menu-header"), tf = (Zt = n.value) == null ? void 0 : Zt.querySelector(".sub-menu");
|
|
27649
27649
|
if (!$ || !V) {
|
|
27650
|
-
|
|
27650
|
+
h.value = 0;
|
|
27651
27651
|
return;
|
|
27652
27652
|
}
|
|
27653
27653
|
const nf = $.getBoundingClientRect(), Af = V.getBoundingClientRect();
|
|
@@ -27661,10 +27661,10 @@ const id = ["data-theme"], od = {
|
|
|
27661
27661
|
const it = getComputedStyle(tf);
|
|
27662
27662
|
Me = parseFloat(it.paddingTop || "0") || 0;
|
|
27663
27663
|
}
|
|
27664
|
-
|
|
27664
|
+
h.value = Af.top - nf.top - fe - Me - 2;
|
|
27665
27665
|
});
|
|
27666
27666
|
} catch {
|
|
27667
|
-
|
|
27667
|
+
h.value = 0;
|
|
27668
27668
|
}
|
|
27669
27669
|
}, bf = (V) => {
|
|
27670
27670
|
n.value && !n.value.contains(V.target) && ce();
|
|
@@ -27674,24 +27674,24 @@ const id = ["data-theme"], od = {
|
|
|
27674
27674
|
}, { deep: !0 });
|
|
27675
27675
|
const Of = (V) => {
|
|
27676
27676
|
if (!V) {
|
|
27677
|
-
|
|
27677
|
+
y.value = null, M.value = {}, Pe();
|
|
27678
27678
|
return;
|
|
27679
27679
|
}
|
|
27680
27680
|
const $ = ie(V.channelId);
|
|
27681
|
-
$ &&
|
|
27681
|
+
$ && C.includes($) && (y.value = $, M.value = t.channels.find((pe) => pe.channelId === V.channelId), X(V.channelId) && t.isNewDialog ? df() : Pe());
|
|
27682
27682
|
}, df = () => {
|
|
27683
|
-
Pe(),
|
|
27684
|
-
const V = Array.isArray(
|
|
27683
|
+
Pe(), k.value = !0, _e(() => {
|
|
27684
|
+
const V = Array.isArray(x.value) ? x.value[0] : x.value;
|
|
27685
27685
|
V && typeof V.startAutoShow == "function" ? V.startAutoShow() : console.log("startAutoShow method not found on tooltipRef");
|
|
27686
27686
|
}), T.value = setTimeout(() => {
|
|
27687
|
-
|
|
27687
|
+
k.value = !1;
|
|
27688
27688
|
}, 5e3);
|
|
27689
27689
|
}, Pe = () => {
|
|
27690
|
-
if (T.value && (clearTimeout(T.value), T.value = null),
|
|
27691
|
-
const V = Array.isArray(
|
|
27690
|
+
if (T.value && (clearTimeout(T.value), T.value = null), x.value) {
|
|
27691
|
+
const V = Array.isArray(x.value) ? x.value[0] : x.value;
|
|
27692
27692
|
V && typeof V.clearAutoTimer == "function" && V.clearAutoTimer();
|
|
27693
27693
|
}
|
|
27694
|
-
|
|
27694
|
+
k.value = !1;
|
|
27695
27695
|
};
|
|
27696
27696
|
return me(() => {
|
|
27697
27697
|
ff(), window.addEventListener("resize", ff), document.addEventListener("click", bf), F(), Of(t.selectedDialog);
|
|
@@ -27709,7 +27709,7 @@ const id = ["data-theme"], od = {
|
|
|
27709
27709
|
ref: i,
|
|
27710
27710
|
class: "channels-panel"
|
|
27711
27711
|
}, [
|
|
27712
|
-
(l(!0), u(J, null, le(
|
|
27712
|
+
(l(!0), u(J, null, le(p.value, (fe) => {
|
|
27713
27713
|
var Me;
|
|
27714
27714
|
return l(), u("button", {
|
|
27715
27715
|
key: fe.type,
|
|
@@ -27725,12 +27725,12 @@ const id = ["data-theme"], od = {
|
|
|
27725
27725
|
Y(we, {
|
|
27726
27726
|
ref_for: !0,
|
|
27727
27727
|
ref: (af) => {
|
|
27728
|
-
af && (
|
|
27728
|
+
af && (x.value = af);
|
|
27729
27729
|
},
|
|
27730
|
-
text:
|
|
27730
|
+
text: k.value ? "Выбран канал по умолчанию, можно изменить в настройках профиля" : (Me = M.value) == null ? void 0 : Me.title,
|
|
27731
27731
|
position: "bottom-left",
|
|
27732
27732
|
offset: 8,
|
|
27733
|
-
trigger:
|
|
27733
|
+
trigger: k.value ? "auto" : "hover",
|
|
27734
27734
|
"auto-show-duration": 5e3
|
|
27735
27735
|
}, {
|
|
27736
27736
|
default: K(() => [
|
|
@@ -27762,7 +27762,7 @@ const id = ["data-theme"], od = {
|
|
|
27762
27762
|
class: "attributes-menu",
|
|
27763
27763
|
style: re({ width: g.value })
|
|
27764
27764
|
}, [
|
|
27765
|
-
U.value ? (l(), u("div", Cd, " Недавний ")) :
|
|
27765
|
+
U.value ? (l(), u("div", Cd, " Недавний ")) : b("", !0),
|
|
27766
27766
|
U.value && ((pe = t.recentAttributeChannels[s.value]) != null && pe.tooltip) ? (l(), B(we, {
|
|
27767
27767
|
key: 1,
|
|
27768
27768
|
text: (tf = t.recentAttributeChannels[s.value]) == null ? void 0 : tf.tooltip,
|
|
@@ -27811,8 +27811,8 @@ const id = ["data-theme"], od = {
|
|
|
27811
27811
|
}, [
|
|
27812
27812
|
(l(), B(Se(ye(s.value))))
|
|
27813
27813
|
], 2)
|
|
27814
|
-
], 34)) :
|
|
27815
|
-
U.value && ((Af = N.value[s.value]) != null && Af.length) && s.value !== "phone" ? (l(), u("div", Td)) :
|
|
27814
|
+
], 34)) : b("", !0),
|
|
27815
|
+
U.value && ((Af = N.value[s.value]) != null && Af.length) && s.value !== "phone" ? (l(), u("div", Td)) : b("", !0),
|
|
27816
27816
|
(l(!0), u(J, null, le(N.value[s.value], (fe) => (l(), u("div", {
|
|
27817
27817
|
key: fe.attributeId,
|
|
27818
27818
|
class: S(["attribute-item", {
|
|
@@ -27837,7 +27837,7 @@ const id = ["data-theme"], od = {
|
|
|
27837
27837
|
d.value && H.value ? (l(), u("div", {
|
|
27838
27838
|
key: 4,
|
|
27839
27839
|
class: "sub-menu left",
|
|
27840
|
-
style: re({ top:
|
|
27840
|
+
style: re({ top: h.value + "px" }),
|
|
27841
27841
|
onMouseenter: st,
|
|
27842
27842
|
onMouseleave: Je
|
|
27843
27843
|
}, [
|
|
@@ -27854,8 +27854,8 @@ const id = ["data-theme"], od = {
|
|
|
27854
27854
|
(l(), B(Se(Be(fe.channelId))))
|
|
27855
27855
|
], 2)
|
|
27856
27856
|
], 8, Ld))), 128))
|
|
27857
|
-
], 36)) :
|
|
27858
|
-
], 4)) :
|
|
27857
|
+
], 36)) : b("", !0)
|
|
27858
|
+
], 4)) : b("", !0)
|
|
27859
27859
|
], 512);
|
|
27860
27860
|
};
|
|
27861
27861
|
}
|
|
@@ -27884,59 +27884,59 @@ const id = ["data-theme"], od = {
|
|
|
27884
27884
|
},
|
|
27885
27885
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
|
27886
27886
|
setup(e, { expose: f, emit: t }) {
|
|
27887
|
-
const a = se("chatAppId"), n = se("extChatAppId"), { getTheme: i } = Ue(a), s = e, r = G1(), c = t, d =
|
|
27888
|
-
|
|
27887
|
+
const a = se("chatAppId"), n = se("extChatAppId"), { getTheme: i } = Ue(a), s = e, r = G1(), c = t, d = v(), A = v(), g = v(!1), _ = (w) => {
|
|
27888
|
+
x(), c("click", w);
|
|
27889
27889
|
}, I = () => {
|
|
27890
|
-
s.disabled || (s.mode == "click" && !g.value ? T() : s.mode == "click" && g.value &&
|
|
27891
|
-
},
|
|
27890
|
+
s.disabled || (s.mode == "click" && !g.value ? T() : s.mode == "click" && g.value && x(), c("buttonClick"));
|
|
27891
|
+
}, y = () => {
|
|
27892
27892
|
s.disabled || s.mode == "hover" && T();
|
|
27893
27893
|
}, M = () => {
|
|
27894
|
-
s.disabled || s.mode == "hover" &&
|
|
27895
|
-
},
|
|
27894
|
+
s.disabled || s.mode == "hover" && x();
|
|
27895
|
+
}, h = () => {
|
|
27896
27896
|
c("menuMouseEnter"), s.disabled || s.mode == "hover" && T();
|
|
27897
|
-
},
|
|
27898
|
-
c("menuMouseLeave"), s.disabled || s.mode == "hover" &&
|
|
27897
|
+
}, k = () => {
|
|
27898
|
+
c("menuMouseLeave"), s.disabled || s.mode == "hover" && x();
|
|
27899
27899
|
}, T = () => {
|
|
27900
27900
|
if (A.value && d.value) {
|
|
27901
|
-
const
|
|
27902
|
-
|
|
27903
|
-
const
|
|
27904
|
-
|
|
27901
|
+
const w = d.value, m = A.value.getBoundingClientRect();
|
|
27902
|
+
w.style.display = "inherit";
|
|
27903
|
+
const p = d.value.getBoundingClientRect();
|
|
27904
|
+
w.style.display = "none", _e(() => {
|
|
27905
27905
|
const N = {
|
|
27906
|
-
left: { top: m.top - (
|
|
27907
|
-
right: { top: m.top - (
|
|
27908
|
-
bottom: { top: (m == null ? void 0 : m.bottom) -
|
|
27909
|
-
top: { top: m.top -
|
|
27910
|
-
"top-right": { top: m.top -
|
|
27911
|
-
"bottom-left": { top: (m == null ? void 0 : m.bottom) -
|
|
27906
|
+
left: { top: m.top - (p.height - m.height) / 2 - p.top, left: m.left - p.width - p.left },
|
|
27907
|
+
right: { top: m.top - (p.height - m.height) / 2 - p.top, left: m.left + m.width - p.left },
|
|
27908
|
+
bottom: { top: (m == null ? void 0 : m.bottom) - p.top, left: (m == null ? void 0 : m.left) - (p.width - m.width) / 2 - p.left },
|
|
27909
|
+
top: { top: m.top - p.height - p.top, left: (m == null ? void 0 : m.left) - (p.width - m.width) / 2 - p.left },
|
|
27910
|
+
"top-right": { top: m.top - p.height, left: m.right - p.width / 2 },
|
|
27911
|
+
"bottom-left": { top: (m == null ? void 0 : m.bottom) - p.top + 10, left: m.left - p.width - p.left + 50 }
|
|
27912
27912
|
};
|
|
27913
|
-
|
|
27913
|
+
w.style.top = N[s.menuSide].top + "px", w.style.left = N[s.menuSide].left + "px", w.style.opacity = "1", w.style.display = "inherit", g.value = !0;
|
|
27914
27914
|
});
|
|
27915
27915
|
}
|
|
27916
|
-
},
|
|
27916
|
+
}, x = () => {
|
|
27917
27917
|
if (d.value) {
|
|
27918
|
-
const
|
|
27919
|
-
|
|
27918
|
+
const w = d.value;
|
|
27919
|
+
w && (w.style.top = "0", w.style.left = "0", w.style.opacity = "0", w.style.display = "none", g.value = !1);
|
|
27920
27920
|
}
|
|
27921
|
-
},
|
|
27922
|
-
s.mode == "click" && A.value && !A.value.contains(
|
|
27921
|
+
}, C = (w) => {
|
|
27922
|
+
s.mode == "click" && A.value && !A.value.contains(w.target) && x();
|
|
27923
27923
|
};
|
|
27924
27924
|
return me(() => {
|
|
27925
27925
|
_e(() => {
|
|
27926
|
-
d.value = document.getElementById("context-menu-" + r + n), d.value && (
|
|
27926
|
+
d.value = document.getElementById("context-menu-" + r + n), d.value && (x(), document.addEventListener("click", C));
|
|
27927
27927
|
});
|
|
27928
27928
|
}), cf(() => {
|
|
27929
|
-
document.removeEventListener("click",
|
|
27929
|
+
document.removeEventListener("click", C);
|
|
27930
27930
|
}), f({
|
|
27931
27931
|
updatePosition: T,
|
|
27932
|
-
hideMenu:
|
|
27933
|
-
}), (
|
|
27932
|
+
hideMenu: x
|
|
27933
|
+
}), (w, m) => (l(), u("div", Ud, [
|
|
27934
27934
|
o("button", {
|
|
27935
27935
|
id: "container-" + D(r) + D(n),
|
|
27936
27936
|
ref_key: "actionScope",
|
|
27937
27937
|
ref: A,
|
|
27938
27938
|
class: "contact-context-menu__button",
|
|
27939
|
-
onMouseenter:
|
|
27939
|
+
onMouseenter: y,
|
|
27940
27940
|
onMouseleave: M,
|
|
27941
27941
|
onClick: I
|
|
27942
27942
|
}, [
|
|
@@ -27948,9 +27948,9 @@ const id = ["data-theme"], od = {
|
|
|
27948
27948
|
id: "context-menu-" + D(r) + D(n),
|
|
27949
27949
|
actions: e.actions,
|
|
27950
27950
|
"data-theme": D(i)().theme ? D(i)().theme : "light",
|
|
27951
|
-
onMouseenter:
|
|
27952
|
-
onMouseleave:
|
|
27953
|
-
onClick:
|
|
27951
|
+
onMouseenter: h,
|
|
27952
|
+
onMouseleave: k,
|
|
27953
|
+
onClick: _
|
|
27954
27954
|
}, null, 8, ["id", "actions", "data-theme"])
|
|
27955
27955
|
]))
|
|
27956
27956
|
], 40, Bd)
|
|
@@ -27978,11 +27978,11 @@ const id = ["data-theme"], od = {
|
|
|
27978
27978
|
}, null, 2)
|
|
27979
27979
|
]),
|
|
27980
27980
|
o("div", Qd, [
|
|
27981
|
-
e.message.header ? (l(), u("p", Fd, E(e.message.header), 1)) :
|
|
27981
|
+
e.message.header ? (l(), u("p", Fd, E(e.message.header), 1)) : b("", !0),
|
|
27982
27982
|
o("div", Pd, [
|
|
27983
27983
|
e.message.isMissedCall ? (l(), u("span", qd, " Пропущенный аудиозвонок ")) : (l(), u("span", Yd, " Аудиозвонок "))
|
|
27984
27984
|
]),
|
|
27985
|
-
e.message.callDuration ? (l(), u("p", Hd, E(e.message.callDuration), 1)) :
|
|
27985
|
+
e.message.callDuration ? (l(), u("p", Hd, E(e.message.callDuration), 1)) : b("", !0)
|
|
27986
27986
|
])
|
|
27987
27987
|
], 64));
|
|
27988
27988
|
}
|
|
@@ -28121,7 +28121,7 @@ const id = ["data-theme"], od = {
|
|
|
28121
28121
|
},
|
|
28122
28122
|
emits: ["action", "reply"],
|
|
28123
28123
|
setup(e, { emit: f }) {
|
|
28124
|
-
const t = e, a = f, n =
|
|
28124
|
+
const t = e, a = f, n = v(!1), i = v(!1), s = v(""), r = Q(() => t.subtextTooltipData && t.subtextTooltipData[t.message.messageId] ? t.subtextTooltipData[t.message.messageId] : t.message.subText || "");
|
|
28125
28125
|
ne(
|
|
28126
28126
|
() => t.message.text,
|
|
28127
28127
|
() => {
|
|
@@ -28129,24 +28129,24 @@ const id = ["data-theme"], od = {
|
|
|
28129
28129
|
},
|
|
28130
28130
|
{ immediate: !0 }
|
|
28131
28131
|
);
|
|
28132
|
-
const c = (
|
|
28133
|
-
a("reply",
|
|
28132
|
+
const c = (h) => {
|
|
28133
|
+
a("reply", h);
|
|
28134
28134
|
};
|
|
28135
|
-
function d(
|
|
28136
|
-
|
|
28135
|
+
function d(h) {
|
|
28136
|
+
h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
|
|
28137
28137
|
}
|
|
28138
28138
|
const A = () => {
|
|
28139
28139
|
a("action", { messageId: t.message.messageId, type: "views" });
|
|
28140
28140
|
}, g = () => {
|
|
28141
|
-
},
|
|
28141
|
+
}, _ = () => {
|
|
28142
28142
|
i.value = !0;
|
|
28143
28143
|
}, I = () => {
|
|
28144
28144
|
i.value = !1, n.value = !1;
|
|
28145
|
-
},
|
|
28146
|
-
function M(
|
|
28147
|
-
return
|
|
28145
|
+
}, y = Q(() => Ef(t.message.status));
|
|
28146
|
+
function M(h) {
|
|
28147
|
+
return h.position === "left" ? "file-message__left" : "file-message__right";
|
|
28148
28148
|
}
|
|
28149
|
-
return (
|
|
28149
|
+
return (h, k) => (l(), u("div", {
|
|
28150
28150
|
class: S(["file-message", [
|
|
28151
28151
|
M(e.message),
|
|
28152
28152
|
e.applyStyle(e.message)
|
|
@@ -28162,7 +28162,7 @@ const id = ["data-theme"], od = {
|
|
|
28162
28162
|
height: "32",
|
|
28163
28163
|
width: "32",
|
|
28164
28164
|
style: re({ gridRow: e.message.subText ? "2" : "1" })
|
|
28165
|
-
}, null, 12, c3)) :
|
|
28165
|
+
}, null, 12, c3)) : b("", !0),
|
|
28166
28166
|
e.message.subText && e.isFirstInSeries ? (l(), u("p", r3, [
|
|
28167
28167
|
Y(we, {
|
|
28168
28168
|
text: r.value,
|
|
@@ -28174,27 +28174,27 @@ const id = ["data-theme"], od = {
|
|
|
28174
28174
|
]),
|
|
28175
28175
|
_: 1
|
|
28176
28176
|
}, 8, ["text", "position"])
|
|
28177
|
-
])) :
|
|
28177
|
+
])) : b("", !0),
|
|
28178
28178
|
o("div", {
|
|
28179
28179
|
class: S(["file-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
28180
28180
|
style: re({ gridRow: e.message.subText ? "2" : "1" }),
|
|
28181
|
-
onMouseenter:
|
|
28181
|
+
onMouseenter: _
|
|
28182
28182
|
}, [
|
|
28183
28183
|
e.message.reply ? (l(), B(jf, {
|
|
28184
28184
|
key: 0,
|
|
28185
28185
|
message: e.message.reply,
|
|
28186
28186
|
class: S(e.message.position),
|
|
28187
28187
|
onReply: c
|
|
28188
|
-
}, null, 8, ["message", "class"])) :
|
|
28188
|
+
}, null, 8, ["message", "class"])) : b("", !0),
|
|
28189
28189
|
o("a", {
|
|
28190
28190
|
class: "file-message__link",
|
|
28191
28191
|
href: e.message.url,
|
|
28192
28192
|
download: "",
|
|
28193
28193
|
target: "_blank"
|
|
28194
28194
|
}, [
|
|
28195
|
-
|
|
28195
|
+
k[1] || (k[1] = o("span", { class: "pi pi-file" }, null, -1)),
|
|
28196
28196
|
o("p", A3, E(e.message.filename), 1),
|
|
28197
|
-
|
|
28197
|
+
k[2] || (k[2] = o("div", { class: "file-message__download-button" }, [
|
|
28198
28198
|
o("span", { class: "pi pi-download" })
|
|
28199
28199
|
], -1))
|
|
28200
28200
|
], 8, d3),
|
|
@@ -28203,42 +28203,42 @@ const id = ["data-theme"], od = {
|
|
|
28203
28203
|
onClick: d,
|
|
28204
28204
|
innerHTML: s.value
|
|
28205
28205
|
}, null, 8, m3)
|
|
28206
|
-
])) :
|
|
28206
|
+
])) : b("", !0),
|
|
28207
28207
|
e.message.linkPreview ? (l(), B(o1, {
|
|
28208
28208
|
key: 2,
|
|
28209
28209
|
class: S(e.message.position),
|
|
28210
28210
|
"link-preview": e.message.linkPreview
|
|
28211
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
28211
|
+
}, null, 8, ["class", "link-preview"])) : b("", !0),
|
|
28212
28212
|
e.message.embed ? (l(), B(l1, {
|
|
28213
28213
|
key: 3,
|
|
28214
28214
|
class: S(e.message.position),
|
|
28215
28215
|
embed: e.message.embed
|
|
28216
|
-
}, null, 8, ["class", "embed"])) :
|
|
28216
|
+
}, null, 8, ["class", "embed"])) : b("", !0),
|
|
28217
28217
|
o("div", p3, [
|
|
28218
28218
|
e.message.views ? (l(), u("div", {
|
|
28219
28219
|
key: 0,
|
|
28220
28220
|
class: "file-message__views",
|
|
28221
28221
|
onClick: A
|
|
28222
28222
|
}, [
|
|
28223
|
-
|
|
28223
|
+
k[3] || (k[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
28224
28224
|
o("p", null, E(e.message.views), 1)
|
|
28225
|
-
])) :
|
|
28225
|
+
])) : b("", !0),
|
|
28226
28226
|
o("span", _3, E(e.message.time), 1),
|
|
28227
28227
|
M(e.message) === "file-message__right" && D(Nf).includes(e.message.status) ? (l(), u("div", {
|
|
28228
28228
|
key: 1,
|
|
28229
|
-
class: S(["file-message__status",
|
|
28229
|
+
class: S(["file-message__status", y.value])
|
|
28230
28230
|
}, [
|
|
28231
|
-
e.message.status !== "sent" ? (l(), u("span", h3)) :
|
|
28232
|
-
|
|
28233
|
-
], 2)) :
|
|
28231
|
+
e.message.status !== "sent" ? (l(), u("span", h3)) : b("", !0),
|
|
28232
|
+
k[4] || (k[4] = o("span", { class: "pi pi-check" }, null, -1))
|
|
28233
|
+
], 2)) : b("", !0)
|
|
28234
28234
|
]),
|
|
28235
28235
|
i.value && e.message.actions ? (l(), u("button", {
|
|
28236
28236
|
key: 4,
|
|
28237
28237
|
class: "file-message__menu-button",
|
|
28238
|
-
onClick:
|
|
28239
|
-
},
|
|
28238
|
+
onClick: k[0] || (k[0] = (T) => n.value = !n.value)
|
|
28239
|
+
}, k[5] || (k[5] = [
|
|
28240
28240
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
28241
|
-
]))) :
|
|
28241
|
+
]))) : b("", !0),
|
|
28242
28242
|
Y(ue, null, {
|
|
28243
28243
|
default: K(() => [
|
|
28244
28244
|
n.value && e.message.actions ? (l(), B(D(_f), {
|
|
@@ -28246,7 +28246,7 @@ const id = ["data-theme"], od = {
|
|
|
28246
28246
|
class: "file-message__context-menu",
|
|
28247
28247
|
actions: e.message.actions,
|
|
28248
28248
|
onClick: g
|
|
28249
|
-
}, null, 8, ["actions"])) :
|
|
28249
|
+
}, null, 8, ["actions"])) : b("", !0)
|
|
28250
28250
|
]),
|
|
28251
28251
|
_: 1
|
|
28252
28252
|
})
|
|
@@ -28288,7 +28288,7 @@ const id = ["data-theme"], od = {
|
|
|
28288
28288
|
},
|
|
28289
28289
|
emits: ["action", "reply"],
|
|
28290
28290
|
setup(e, { emit: f }) {
|
|
28291
|
-
const t = se("chatAppId"), { getTheme: a } = Ue(t), n = e, i = f, s =
|
|
28291
|
+
const t = se("chatAppId"), { getTheme: a } = Ue(t), n = e, i = f, s = v(!1), r = v(!1), c = Q(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), d = v(!1), A = v(!1), g = v("");
|
|
28292
28292
|
ne(
|
|
28293
28293
|
() => n.message.text,
|
|
28294
28294
|
() => {
|
|
@@ -28296,32 +28296,32 @@ const id = ["data-theme"], od = {
|
|
|
28296
28296
|
},
|
|
28297
28297
|
{ immediate: !0 }
|
|
28298
28298
|
);
|
|
28299
|
-
const
|
|
28299
|
+
const _ = (m) => {
|
|
28300
28300
|
i("reply", m);
|
|
28301
28301
|
};
|
|
28302
28302
|
function I(m) {
|
|
28303
28303
|
m.preventDefault(), m.target.href && window.open(m.target.href, "_blank");
|
|
28304
28304
|
}
|
|
28305
|
-
const
|
|
28305
|
+
const y = () => {
|
|
28306
28306
|
i("action", { messageId: n.message.messageId, type: "views" });
|
|
28307
28307
|
}, M = () => {
|
|
28308
|
-
},
|
|
28308
|
+
}, h = () => {
|
|
28309
28309
|
d.value = !0, A.value = !0;
|
|
28310
|
-
},
|
|
28310
|
+
}, k = () => {
|
|
28311
28311
|
d.value = !1, r.value = !1;
|
|
28312
|
-
}, T = Q(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"),
|
|
28313
|
-
function
|
|
28312
|
+
}, T = Q(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"), x = Q(() => Ef(n.message.status));
|
|
28313
|
+
function C(m) {
|
|
28314
28314
|
return m.position === "left" ? "image-message__left" : "image-message__right";
|
|
28315
28315
|
}
|
|
28316
|
-
const
|
|
28317
|
-
return (m,
|
|
28316
|
+
const w = () => s.value = !1;
|
|
28317
|
+
return (m, p) => (l(), u("div", {
|
|
28318
28318
|
class: S(["image-message", [
|
|
28319
|
-
|
|
28319
|
+
C(e.message),
|
|
28320
28320
|
e.applyStyle(e.message)
|
|
28321
28321
|
]]),
|
|
28322
28322
|
messageId: e.message.messageId,
|
|
28323
28323
|
style: re(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
|
|
28324
|
-
onMouseleave:
|
|
28324
|
+
onMouseleave: k
|
|
28325
28325
|
}, [
|
|
28326
28326
|
e.message.avatar && e.isFirstInSeries ? (l(), u("img", {
|
|
28327
28327
|
key: 0,
|
|
@@ -28329,7 +28329,7 @@ const id = ["data-theme"], od = {
|
|
|
28329
28329
|
src: e.message.avatar,
|
|
28330
28330
|
height: "32",
|
|
28331
28331
|
width: "32"
|
|
28332
|
-
}, null, 8, M3)) :
|
|
28332
|
+
}, null, 8, M3)) : b("", !0),
|
|
28333
28333
|
e.message.subText && e.isFirstInSeries ? (l(), u("p", w3, [
|
|
28334
28334
|
Y(we, {
|
|
28335
28335
|
text: c.value,
|
|
@@ -28341,7 +28341,7 @@ const id = ["data-theme"], od = {
|
|
|
28341
28341
|
]),
|
|
28342
28342
|
_: 1
|
|
28343
28343
|
}, 8, ["text", "position"])
|
|
28344
|
-
])) :
|
|
28344
|
+
])) : b("", !0),
|
|
28345
28345
|
o("div", {
|
|
28346
28346
|
class: S(["image-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }])
|
|
28347
28347
|
}, [
|
|
@@ -28350,13 +28350,13 @@ const id = ["data-theme"], od = {
|
|
|
28350
28350
|
style: { margin: "10px 10px 4px 16px" },
|
|
28351
28351
|
class: S(e.message.position),
|
|
28352
28352
|
message: e.message.reply,
|
|
28353
|
-
onReply:
|
|
28354
|
-
}, null, 8, ["class", "message"])) :
|
|
28353
|
+
onReply: _
|
|
28354
|
+
}, null, 8, ["class", "message"])) : b("", !0),
|
|
28355
28355
|
o("div", {
|
|
28356
28356
|
class: "image-message__preview-button",
|
|
28357
|
-
onClick:
|
|
28358
|
-
onMouseenter:
|
|
28359
|
-
onMouseleave:
|
|
28357
|
+
onClick: p[0] || (p[0] = (N) => s.value = !0),
|
|
28358
|
+
onMouseenter: h,
|
|
28359
|
+
onMouseleave: p[1] || (p[1] = (N) => A.value = !A.value)
|
|
28360
28360
|
}, [
|
|
28361
28361
|
o("img", {
|
|
28362
28362
|
class: "image-message__preview-image",
|
|
@@ -28370,20 +28370,20 @@ const id = ["data-theme"], od = {
|
|
|
28370
28370
|
e.message.views ? (l(), u("div", {
|
|
28371
28371
|
key: 0,
|
|
28372
28372
|
class: "image-message__views",
|
|
28373
|
-
onClick: Kf(
|
|
28373
|
+
onClick: Kf(y, ["stop"])
|
|
28374
28374
|
}, [
|
|
28375
|
-
|
|
28375
|
+
p[3] || (p[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
28376
28376
|
o("p", null, E(e.message.views), 1)
|
|
28377
|
-
])) :
|
|
28377
|
+
])) : b("", !0),
|
|
28378
28378
|
o("span", k3, E(e.message.time), 1),
|
|
28379
|
-
|
|
28379
|
+
C(e.message) === "image-message__right" && D(Nf).includes(e.message.status) ? (l(), u("div", {
|
|
28380
28380
|
key: 1,
|
|
28381
|
-
class: S(["image-message__status",
|
|
28381
|
+
class: S(["image-message__status", x.value])
|
|
28382
28382
|
}, [
|
|
28383
|
-
e.message.status !== "sent" ? (l(), u("span", x3)) :
|
|
28384
|
-
|
|
28385
|
-
], 2)) :
|
|
28386
|
-
])) :
|
|
28383
|
+
e.message.status !== "sent" ? (l(), u("span", x3)) : b("", !0),
|
|
28384
|
+
p[4] || (p[4] = o("span", { class: "pi pi-check" }, null, -1))
|
|
28385
|
+
], 2)) : b("", !0)
|
|
28386
|
+
])) : b("", !0)
|
|
28387
28387
|
]),
|
|
28388
28388
|
_: 1
|
|
28389
28389
|
}),
|
|
@@ -28396,9 +28396,9 @@ const id = ["data-theme"], od = {
|
|
|
28396
28396
|
download: "",
|
|
28397
28397
|
target: "_blank",
|
|
28398
28398
|
onClick: Kf(() => "//Предотвращаем всплытие события клика", ["stop"])
|
|
28399
|
-
},
|
|
28399
|
+
}, p[5] || (p[5] = [
|
|
28400
28400
|
o("span", { class: "pi pi-download" }, null, -1)
|
|
28401
|
-
]), 8, D3)) :
|
|
28401
|
+
]), 8, D3)) : b("", !0)
|
|
28402
28402
|
]),
|
|
28403
28403
|
_: 1
|
|
28404
28404
|
})
|
|
@@ -28408,10 +28408,10 @@ const id = ["data-theme"], od = {
|
|
|
28408
28408
|
d.value && e.message.actions ? (l(), u("button", {
|
|
28409
28409
|
key: 0,
|
|
28410
28410
|
class: "image-message__menu-button",
|
|
28411
|
-
onClick:
|
|
28412
|
-
},
|
|
28411
|
+
onClick: p[2] || (p[2] = (N) => r.value = !r.value)
|
|
28412
|
+
}, p[6] || (p[6] = [
|
|
28413
28413
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
28414
|
-
]))) :
|
|
28414
|
+
]))) : b("", !0)
|
|
28415
28415
|
]),
|
|
28416
28416
|
_: 1
|
|
28417
28417
|
}),
|
|
@@ -28422,7 +28422,7 @@ const id = ["data-theme"], od = {
|
|
|
28422
28422
|
class: "image-message__context-menu",
|
|
28423
28423
|
actions: e.message.actions,
|
|
28424
28424
|
onClick: M
|
|
28425
|
-
}, null, 8, ["actions"])) :
|
|
28425
|
+
}, null, 8, ["actions"])) : b("", !0)
|
|
28426
28426
|
]),
|
|
28427
28427
|
_: 1
|
|
28428
28428
|
}),
|
|
@@ -28431,17 +28431,17 @@ const id = ["data-theme"], od = {
|
|
|
28431
28431
|
onClick: I,
|
|
28432
28432
|
innerHTML: g.value
|
|
28433
28433
|
}, null, 8, N3)
|
|
28434
|
-
])) :
|
|
28434
|
+
])) : b("", !0),
|
|
28435
28435
|
e.message.linkPreview ? (l(), B(o1, {
|
|
28436
28436
|
key: 2,
|
|
28437
28437
|
class: S(["image-message__link-preview", e.message.position]),
|
|
28438
28438
|
"link-preview": e.message.linkPreview
|
|
28439
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
28439
|
+
}, null, 8, ["class", "link-preview"])) : b("", !0),
|
|
28440
28440
|
e.message.embed ? (l(), B(l1, {
|
|
28441
28441
|
key: 3,
|
|
28442
28442
|
class: S(e.message.position),
|
|
28443
28443
|
embed: e.message.embed
|
|
28444
|
-
}, null, 8, ["class", "embed"])) :
|
|
28444
|
+
}, null, 8, ["class", "embed"])) : b("", !0)
|
|
28445
28445
|
], 2),
|
|
28446
28446
|
(l(), B(ke, { to: "body" }, [
|
|
28447
28447
|
Y(ue, { name: "modal-fade" }, {
|
|
@@ -28449,7 +28449,7 @@ const id = ["data-theme"], od = {
|
|
|
28449
28449
|
s.value ? (l(), B(t1, {
|
|
28450
28450
|
key: 0,
|
|
28451
28451
|
"data-theme": D(a)().theme ? D(a)().theme : "light",
|
|
28452
|
-
onClose:
|
|
28452
|
+
onClose: w
|
|
28453
28453
|
}, {
|
|
28454
28454
|
default: K(() => [
|
|
28455
28455
|
o("img", {
|
|
@@ -28459,7 +28459,7 @@ const id = ["data-theme"], od = {
|
|
|
28459
28459
|
}, null, 8, E3)
|
|
28460
28460
|
]),
|
|
28461
28461
|
_: 1
|
|
28462
|
-
}, 8, ["data-theme"])) :
|
|
28462
|
+
}, 8, ["data-theme"])) : b("", !0)
|
|
28463
28463
|
]),
|
|
28464
28464
|
_: 1
|
|
28465
28465
|
})
|
|
@@ -28498,7 +28498,7 @@ const id = ["data-theme"], od = {
|
|
|
28498
28498
|
},
|
|
28499
28499
|
emits: ["action", "reply"],
|
|
28500
28500
|
setup(e, { emit: f }) {
|
|
28501
|
-
const t = e, a = f, n =
|
|
28501
|
+
const t = e, a = f, n = v(!1), i = v(!1), s = v(""), r = Q(() => t.subtextTooltipData && t.subtextTooltipData[t.message.messageId] ? t.subtextTooltipData[t.message.messageId] : t.message.subText || "");
|
|
28502
28502
|
ne(
|
|
28503
28503
|
() => t.message.text,
|
|
28504
28504
|
() => {
|
|
@@ -28506,25 +28506,25 @@ const id = ["data-theme"], od = {
|
|
|
28506
28506
|
},
|
|
28507
28507
|
{ immediate: !0 }
|
|
28508
28508
|
);
|
|
28509
|
-
const c = (
|
|
28510
|
-
a("reply",
|
|
28509
|
+
const c = (h) => {
|
|
28510
|
+
a("reply", h);
|
|
28511
28511
|
};
|
|
28512
|
-
function d(
|
|
28513
|
-
|
|
28512
|
+
function d(h) {
|
|
28513
|
+
h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
|
|
28514
28514
|
}
|
|
28515
28515
|
const A = () => {
|
|
28516
28516
|
i.value = !0;
|
|
28517
28517
|
}, g = () => {
|
|
28518
28518
|
i.value = !1, n.value = !1;
|
|
28519
|
-
},
|
|
28520
|
-
g(), a("action", { messageId: t.message.messageId, type: "menu", ...
|
|
28521
|
-
},
|
|
28519
|
+
}, _ = Q(() => Ef(t.message.status)), I = (h) => {
|
|
28520
|
+
g(), a("action", { messageId: t.message.messageId, type: "menu", ...h });
|
|
28521
|
+
}, y = () => {
|
|
28522
28522
|
g(), a("action", { messageId: t.message.messageId, type: "views" });
|
|
28523
28523
|
};
|
|
28524
|
-
function M(
|
|
28525
|
-
return
|
|
28524
|
+
function M(h) {
|
|
28525
|
+
return h.position === "left" ? "text-message__left" : "text-message__right";
|
|
28526
28526
|
}
|
|
28527
|
-
return (
|
|
28527
|
+
return (h, k) => (l(), u("div", {
|
|
28528
28528
|
class: S(["text-message", [
|
|
28529
28529
|
M(e.message),
|
|
28530
28530
|
e.applyStyle(e.message)
|
|
@@ -28540,7 +28540,7 @@ const id = ["data-theme"], od = {
|
|
|
28540
28540
|
height: "32",
|
|
28541
28541
|
width: "32",
|
|
28542
28542
|
style: re({ gridRow: e.message.subText && e.isFirstInSeries ? "2" : "1" })
|
|
28543
|
-
}, null, 12, L3)) :
|
|
28543
|
+
}, null, 12, L3)) : b("", !0),
|
|
28544
28544
|
e.message.subText && e.isFirstInSeries ? (l(), u("p", O3, [
|
|
28545
28545
|
Y(we, {
|
|
28546
28546
|
text: r.value,
|
|
@@ -28552,7 +28552,7 @@ const id = ["data-theme"], od = {
|
|
|
28552
28552
|
]),
|
|
28553
28553
|
_: 1
|
|
28554
28554
|
}, 8, ["text", "position"])
|
|
28555
|
-
])) :
|
|
28555
|
+
])) : b("", !0),
|
|
28556
28556
|
o("div", {
|
|
28557
28557
|
class: S(["text-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
28558
28558
|
onMouseenter: A
|
|
@@ -28562,7 +28562,7 @@ const id = ["data-theme"], od = {
|
|
|
28562
28562
|
class: S(e.message.position),
|
|
28563
28563
|
message: e.message.reply,
|
|
28564
28564
|
onReply: c
|
|
28565
|
-
}, null, 8, ["class", "message"])) :
|
|
28565
|
+
}, null, 8, ["class", "message"])) : b("", !0),
|
|
28566
28566
|
o("p", {
|
|
28567
28567
|
class: "text-message__text",
|
|
28568
28568
|
onClick: d,
|
|
@@ -28572,37 +28572,37 @@ const id = ["data-theme"], od = {
|
|
|
28572
28572
|
key: 1,
|
|
28573
28573
|
class: S(e.message.position),
|
|
28574
28574
|
"link-preview": e.message.linkPreview
|
|
28575
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
28575
|
+
}, null, 8, ["class", "link-preview"])) : b("", !0),
|
|
28576
28576
|
e.message.embed ? (l(), B(l1, {
|
|
28577
28577
|
key: 2,
|
|
28578
28578
|
class: S(e.message.position),
|
|
28579
28579
|
embed: e.message.embed
|
|
28580
|
-
}, null, 8, ["class", "embed"])) :
|
|
28580
|
+
}, null, 8, ["class", "embed"])) : b("", !0),
|
|
28581
28581
|
o("div", U3, [
|
|
28582
28582
|
e.message.views ? (l(), u("div", {
|
|
28583
28583
|
key: 0,
|
|
28584
28584
|
class: "text-message__views",
|
|
28585
|
-
onClick:
|
|
28585
|
+
onClick: y
|
|
28586
28586
|
}, [
|
|
28587
|
-
|
|
28587
|
+
k[1] || (k[1] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
28588
28588
|
o("p", null, E(e.message.views), 1)
|
|
28589
|
-
])) :
|
|
28590
|
-
e.message.time ? (l(), u("span", B3, E(e.message.time), 1)) :
|
|
28589
|
+
])) : b("", !0),
|
|
28590
|
+
e.message.time ? (l(), u("span", B3, E(e.message.time), 1)) : b("", !0),
|
|
28591
28591
|
M(e.message) === "text-message__right" && D(Nf).includes(e.message.status) ? (l(), u("div", {
|
|
28592
28592
|
key: 2,
|
|
28593
|
-
class: S(["text-message__status",
|
|
28593
|
+
class: S(["text-message__status", _.value])
|
|
28594
28594
|
}, [
|
|
28595
|
-
e.message.status !== "sent" ? (l(), u("span", $3)) :
|
|
28596
|
-
|
|
28597
|
-
], 2)) :
|
|
28595
|
+
e.message.status !== "sent" ? (l(), u("span", $3)) : b("", !0),
|
|
28596
|
+
k[2] || (k[2] = o("span", { class: "pi pi-check" }, null, -1))
|
|
28597
|
+
], 2)) : b("", !0)
|
|
28598
28598
|
]),
|
|
28599
28599
|
i.value && e.message.actions ? (l(), u("button", {
|
|
28600
28600
|
key: 3,
|
|
28601
28601
|
class: "text-message__menu-button",
|
|
28602
|
-
onClick:
|
|
28603
|
-
},
|
|
28602
|
+
onClick: k[0] || (k[0] = (T) => n.value = !n.value)
|
|
28603
|
+
}, k[3] || (k[3] = [
|
|
28604
28604
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
28605
|
-
]))) :
|
|
28605
|
+
]))) : b("", !0),
|
|
28606
28606
|
Y(ue, null, {
|
|
28607
28607
|
default: K(() => [
|
|
28608
28608
|
n.value && e.message.actions ? (l(), B(D(_f), {
|
|
@@ -28610,7 +28610,7 @@ const id = ["data-theme"], od = {
|
|
|
28610
28610
|
class: "text-message__context-menu",
|
|
28611
28611
|
actions: e.message.actions,
|
|
28612
28612
|
onClick: I
|
|
28613
|
-
}, null, 8, ["actions"])) :
|
|
28613
|
+
}, null, 8, ["actions"])) : b("", !0)
|
|
28614
28614
|
]),
|
|
28615
28615
|
_: 1
|
|
28616
28616
|
})
|
|
@@ -28652,7 +28652,7 @@ const id = ["data-theme"], od = {
|
|
|
28652
28652
|
},
|
|
28653
28653
|
emits: ["action", "reply"],
|
|
28654
28654
|
setup(e, { emit: f }) {
|
|
28655
|
-
const t = se("chatAppId"), { getTheme: a } = Ue(t), n = e, i =
|
|
28655
|
+
const t = se("chatAppId"), { getTheme: a } = Ue(t), n = e, i = v([
|
|
28656
28656
|
{
|
|
28657
28657
|
text: "1.0x",
|
|
28658
28658
|
speed: 1,
|
|
@@ -28677,20 +28677,20 @@ const id = ["data-theme"], od = {
|
|
|
28677
28677
|
for (let R of i.value)
|
|
28678
28678
|
R.selected = !1;
|
|
28679
28679
|
i.value[W].selected = !0, c.value && (c.value.playbackRate = i.value[W].speed);
|
|
28680
|
-
}, r = f, c =
|
|
28680
|
+
}, r = f, c = v(), d = v(!1), A = v(0), g = v(0), _ = Q(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), I = v(!1), y = v(!1), M = v(!1), h = Q(() => n.message.text ? Qe(n.message.text) : ""), k = (W) => {
|
|
28681
28681
|
r("reply", W);
|
|
28682
28682
|
};
|
|
28683
28683
|
function T(W) {
|
|
28684
28684
|
W.preventDefault(), W.target.href && window.open(W.target.href, "_blank");
|
|
28685
28685
|
}
|
|
28686
|
-
const
|
|
28687
|
-
|
|
28688
|
-
}, y = () => {
|
|
28689
|
-
b.value = !1, I.value = !1;
|
|
28686
|
+
const x = () => {
|
|
28687
|
+
y.value = !0;
|
|
28690
28688
|
}, C = () => {
|
|
28689
|
+
y.value = !1, I.value = !1;
|
|
28690
|
+
}, w = () => {
|
|
28691
28691
|
r("action", { messageId: n.message.messageId, type: "views" });
|
|
28692
28692
|
}, m = () => {
|
|
28693
|
-
},
|
|
28693
|
+
}, p = Q(() => Ef(n.message.status));
|
|
28694
28694
|
function N() {
|
|
28695
28695
|
c.value && (d.value ? c.value.pause() : c.value.play(), d.value = !d.value);
|
|
28696
28696
|
}
|
|
@@ -28725,7 +28725,7 @@ const id = ["data-theme"], od = {
|
|
|
28725
28725
|
]]),
|
|
28726
28726
|
messageId: e.message.messageId,
|
|
28727
28727
|
style: re(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
|
|
28728
|
-
onMouseleave:
|
|
28728
|
+
onMouseleave: C
|
|
28729
28729
|
}, [
|
|
28730
28730
|
e.message.avatar && e.isFirstInSeries ? (l(), u("img", {
|
|
28731
28731
|
key: 0,
|
|
@@ -28734,10 +28734,10 @@ const id = ["data-theme"], od = {
|
|
|
28734
28734
|
height: "32",
|
|
28735
28735
|
width: "32",
|
|
28736
28736
|
style: re({ gridRow: e.message.subText ? "2" : "1" })
|
|
28737
|
-
}, null, 12, P3)) :
|
|
28737
|
+
}, null, 12, P3)) : b("", !0),
|
|
28738
28738
|
e.message.subText && e.isFirstInSeries ? (l(), u("p", Y3, [
|
|
28739
28739
|
Y(we, {
|
|
28740
|
-
text:
|
|
28740
|
+
text: _.value,
|
|
28741
28741
|
position: e.message.position === "left" ? "right" : "left",
|
|
28742
28742
|
offset: 8
|
|
28743
28743
|
}, {
|
|
@@ -28746,18 +28746,18 @@ const id = ["data-theme"], od = {
|
|
|
28746
28746
|
]),
|
|
28747
28747
|
_: 1
|
|
28748
28748
|
}, 8, ["text", "position"])
|
|
28749
|
-
])) :
|
|
28749
|
+
])) : b("", !0),
|
|
28750
28750
|
o("div", {
|
|
28751
28751
|
class: S(["audio-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
28752
|
-
onMouseenter:
|
|
28752
|
+
onMouseenter: x
|
|
28753
28753
|
}, [
|
|
28754
28754
|
e.message.reply ? (l(), B(jf, {
|
|
28755
28755
|
key: 0,
|
|
28756
28756
|
style: { "grid-column": "1/3" },
|
|
28757
28757
|
message: e.message.reply,
|
|
28758
28758
|
class: S(e.message.position),
|
|
28759
|
-
onReply:
|
|
28760
|
-
}, null, 8, ["message", "class"])) :
|
|
28759
|
+
onReply: k
|
|
28760
|
+
}, null, 8, ["message", "class"])) : b("", !0),
|
|
28761
28761
|
o("div", q3, [
|
|
28762
28762
|
o("audio", {
|
|
28763
28763
|
ref_key: "player",
|
|
@@ -28815,48 +28815,48 @@ const id = ["data-theme"], od = {
|
|
|
28815
28815
|
o("p", {
|
|
28816
28816
|
onClick: R[1] || (R[1] = (X) => M.value = !M.value)
|
|
28817
28817
|
}, E(e.message.transcript.text), 1)
|
|
28818
|
-
])) :
|
|
28818
|
+
])) : b("", !0),
|
|
28819
28819
|
e.message.text ? (l(), u("div", f4, [
|
|
28820
28820
|
o("p", {
|
|
28821
28821
|
onClick: T,
|
|
28822
|
-
innerHTML:
|
|
28822
|
+
innerHTML: h.value
|
|
28823
28823
|
}, null, 8, t4)
|
|
28824
|
-
])) :
|
|
28824
|
+
])) : b("", !0),
|
|
28825
28825
|
e.message.linkPreview ? (l(), B(o1, {
|
|
28826
28826
|
key: 3,
|
|
28827
28827
|
class: S(["audio-message__link-preview", e.message.position]),
|
|
28828
28828
|
"link-preview": e.message.linkPreview
|
|
28829
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
28829
|
+
}, null, 8, ["class", "link-preview"])) : b("", !0),
|
|
28830
28830
|
e.message.embed ? (l(), B(l1, {
|
|
28831
28831
|
key: 4,
|
|
28832
28832
|
class: S(e.message.position),
|
|
28833
28833
|
embed: e.message.embed
|
|
28834
|
-
}, null, 8, ["class", "embed"])) :
|
|
28834
|
+
}, null, 8, ["class", "embed"])) : b("", !0),
|
|
28835
28835
|
o("div", n4, [
|
|
28836
28836
|
e.message.views ? (l(), u("div", {
|
|
28837
28837
|
key: 0,
|
|
28838
28838
|
class: "audio-message__views",
|
|
28839
|
-
onClick:
|
|
28839
|
+
onClick: w
|
|
28840
28840
|
}, [
|
|
28841
28841
|
R[7] || (R[7] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
28842
28842
|
o("p", null, E(e.message.views), 1)
|
|
28843
|
-
])) :
|
|
28843
|
+
])) : b("", !0),
|
|
28844
28844
|
o("span", a4, E(e.message.time), 1),
|
|
28845
28845
|
H(e.message) === "audio-message__right" && D(Nf).includes(e.message.status) ? (l(), u("div", {
|
|
28846
28846
|
key: 1,
|
|
28847
|
-
class: S(["audio-message__status",
|
|
28847
|
+
class: S(["audio-message__status", p.value])
|
|
28848
28848
|
}, [
|
|
28849
|
-
e.message.status !== "sent" ? (l(), u("span", s4)) :
|
|
28849
|
+
e.message.status !== "sent" ? (l(), u("span", s4)) : b("", !0),
|
|
28850
28850
|
R[8] || (R[8] = o("span", { class: "pi pi-check" }, null, -1))
|
|
28851
|
-
], 2)) :
|
|
28851
|
+
], 2)) : b("", !0)
|
|
28852
28852
|
]),
|
|
28853
|
-
|
|
28853
|
+
y.value && e.message.actions ? (l(), u("button", {
|
|
28854
28854
|
key: 5,
|
|
28855
28855
|
class: "audio-message__menu-button",
|
|
28856
28856
|
onClick: R[2] || (R[2] = (X) => I.value = !I.value)
|
|
28857
28857
|
}, R[9] || (R[9] = [
|
|
28858
28858
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
28859
|
-
]))) :
|
|
28859
|
+
]))) : b("", !0),
|
|
28860
28860
|
Y(ue, null, {
|
|
28861
28861
|
default: K(() => [
|
|
28862
28862
|
I.value && e.message.actions ? (l(), B(D(_f), {
|
|
@@ -28864,7 +28864,7 @@ const id = ["data-theme"], od = {
|
|
|
28864
28864
|
class: "audio-message__context-menu",
|
|
28865
28865
|
actions: e.message.actions,
|
|
28866
28866
|
onClick: m
|
|
28867
|
-
}, null, 8, ["actions"])) :
|
|
28867
|
+
}, null, 8, ["actions"])) : b("", !0)
|
|
28868
28868
|
]),
|
|
28869
28869
|
_: 1
|
|
28870
28870
|
}),
|
|
@@ -28889,7 +28889,7 @@ const id = ["data-theme"], od = {
|
|
|
28889
28889
|
])),
|
|
28890
28890
|
o("p", l4, E((X = e.message.transcript) == null ? void 0 : X.text), 1)
|
|
28891
28891
|
])
|
|
28892
|
-
], 8, i4)) :
|
|
28892
|
+
], 8, i4)) : b("", !0)
|
|
28893
28893
|
];
|
|
28894
28894
|
}),
|
|
28895
28895
|
_: 1
|
|
@@ -28956,7 +28956,7 @@ const id = ["data-theme"], od = {
|
|
|
28956
28956
|
function r(z) {
|
|
28957
28957
|
return z.position === "left" ? "video-message__left" : "video-message__right";
|
|
28958
28958
|
}
|
|
28959
|
-
const c =
|
|
28959
|
+
const c = v(), d = v(), A = Q(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), g = v(!1), _ = v(!1), I = v(!1), y = v(!1), M = v("");
|
|
28960
28960
|
ne(
|
|
28961
28961
|
() => n.message.text,
|
|
28962
28962
|
() => {
|
|
@@ -28964,23 +28964,23 @@ const id = ["data-theme"], od = {
|
|
|
28964
28964
|
},
|
|
28965
28965
|
{ immediate: !0 }
|
|
28966
28966
|
);
|
|
28967
|
-
function
|
|
28967
|
+
function h(z) {
|
|
28968
28968
|
z.preventDefault(), z.target.href && window.open(z.target.href, "_blank");
|
|
28969
28969
|
}
|
|
28970
|
-
const
|
|
28970
|
+
const k = () => {
|
|
28971
28971
|
i("action", { messageId: n.message.messageId, type: "views" });
|
|
28972
28972
|
}, T = () => {
|
|
28973
|
-
},
|
|
28974
|
-
I.value = !0,
|
|
28975
|
-
},
|
|
28976
|
-
I.value = !1,
|
|
28977
|
-
},
|
|
28973
|
+
}, x = () => {
|
|
28974
|
+
I.value = !0, y.value = !0;
|
|
28975
|
+
}, C = () => {
|
|
28976
|
+
I.value = !1, _.value = !1;
|
|
28977
|
+
}, w = Q(() => Ef(n.message.status)), m = () => {
|
|
28978
28978
|
d.value && (d.value.currentTime = 0, d.value.play());
|
|
28979
28979
|
};
|
|
28980
28980
|
ne([c, d], ([z, U]) => {
|
|
28981
28981
|
z ? U && (U.pause(), U.currentTime = 0) : U && (U.play(), U.currentTime = 0);
|
|
28982
28982
|
});
|
|
28983
|
-
const
|
|
28983
|
+
const p = Q(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"), N = () => g.value = !1;
|
|
28984
28984
|
return (z, U) => (l(), u(J, null, [
|
|
28985
28985
|
o("div", {
|
|
28986
28986
|
class: S(["video-message", [
|
|
@@ -28989,7 +28989,7 @@ const id = ["data-theme"], od = {
|
|
|
28989
28989
|
]]),
|
|
28990
28990
|
messageId: e.message.messageId,
|
|
28991
28991
|
style: re(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
|
|
28992
|
-
onMouseleave:
|
|
28992
|
+
onMouseleave: C
|
|
28993
28993
|
}, [
|
|
28994
28994
|
e.message.avatar && e.isFirstInSeries ? (l(), u("img", {
|
|
28995
28995
|
key: 0,
|
|
@@ -28997,7 +28997,7 @@ const id = ["data-theme"], od = {
|
|
|
28997
28997
|
src: e.message.avatar,
|
|
28998
28998
|
height: "32",
|
|
28999
28999
|
width: "32"
|
|
29000
|
-
}, null, 8, p4)) :
|
|
29000
|
+
}, null, 8, p4)) : b("", !0),
|
|
29001
29001
|
e.message.subText && e.isFirstInSeries ? (l(), u("p", _4, [
|
|
29002
29002
|
Y(we, {
|
|
29003
29003
|
text: A.value,
|
|
@@ -29009,7 +29009,7 @@ const id = ["data-theme"], od = {
|
|
|
29009
29009
|
]),
|
|
29010
29010
|
_: 1
|
|
29011
29011
|
}, 8, ["text", "position"])
|
|
29012
|
-
])) :
|
|
29012
|
+
])) : b("", !0),
|
|
29013
29013
|
o("div", {
|
|
29014
29014
|
class: S(["video-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }])
|
|
29015
29015
|
}, [
|
|
@@ -29019,18 +29019,18 @@ const id = ["data-theme"], od = {
|
|
|
29019
29019
|
class: S(e.message.position),
|
|
29020
29020
|
message: e.message.reply,
|
|
29021
29021
|
onReply: s
|
|
29022
|
-
}, null, 8, ["class", "message"])) :
|
|
29022
|
+
}, null, 8, ["class", "message"])) : b("", !0),
|
|
29023
29023
|
o("div", {
|
|
29024
29024
|
class: "video-message__preview-button",
|
|
29025
29025
|
onClick: U[0] || (U[0] = (ee) => g.value = !0),
|
|
29026
|
-
onMouseenter:
|
|
29027
|
-
onMouseleave: U[1] || (U[1] = (ee) =>
|
|
29026
|
+
onMouseenter: x,
|
|
29027
|
+
onMouseleave: U[1] || (U[1] = (ee) => y.value = !y.value)
|
|
29028
29028
|
}, [
|
|
29029
29029
|
o("video", {
|
|
29030
29030
|
ref_key: "previewPlayer",
|
|
29031
29031
|
ref: d,
|
|
29032
29032
|
class: "video-message__video",
|
|
29033
|
-
style: re({ borderRadius:
|
|
29033
|
+
style: re({ borderRadius: p.value }),
|
|
29034
29034
|
src: e.message.url,
|
|
29035
29035
|
muted: !0,
|
|
29036
29036
|
autoplay: "",
|
|
@@ -29038,30 +29038,30 @@ const id = ["data-theme"], od = {
|
|
|
29038
29038
|
}, null, 44, h4),
|
|
29039
29039
|
Y(ue, { name: "modal-fade" }, {
|
|
29040
29040
|
default: K(() => [
|
|
29041
|
-
|
|
29041
|
+
y.value ? (l(), u("div", v4, [
|
|
29042
29042
|
e.message.views ? (l(), u("div", {
|
|
29043
29043
|
key: 0,
|
|
29044
29044
|
class: "video-message__views",
|
|
29045
|
-
onClick: Kf(
|
|
29045
|
+
onClick: Kf(k, ["stop"])
|
|
29046
29046
|
}, [
|
|
29047
29047
|
U[3] || (U[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
29048
29048
|
o("p", null, E(e.message.views), 1)
|
|
29049
|
-
])) :
|
|
29049
|
+
])) : b("", !0),
|
|
29050
29050
|
o("span", b4, E(e.message.time), 1),
|
|
29051
29051
|
r(e.message) === "video-message__right" && D(Nf).includes(e.message.status) ? (l(), u("div", {
|
|
29052
29052
|
key: 1,
|
|
29053
|
-
class: S(["video-message__status",
|
|
29053
|
+
class: S(["video-message__status", w.value])
|
|
29054
29054
|
}, [
|
|
29055
|
-
e.message.status !== "sent" ? (l(), u("span", y4)) :
|
|
29055
|
+
e.message.status !== "sent" ? (l(), u("span", y4)) : b("", !0),
|
|
29056
29056
|
U[4] || (U[4] = o("span", { class: "pi pi-check" }, null, -1))
|
|
29057
|
-
], 2)) :
|
|
29058
|
-
])) :
|
|
29057
|
+
], 2)) : b("", !0)
|
|
29058
|
+
])) : b("", !0)
|
|
29059
29059
|
]),
|
|
29060
29060
|
_: 1
|
|
29061
29061
|
}),
|
|
29062
29062
|
Y(ue, { name: "modal-fade" }, {
|
|
29063
29063
|
default: K(() => [
|
|
29064
|
-
|
|
29064
|
+
y.value ? (l(), u("a", {
|
|
29065
29065
|
key: 0,
|
|
29066
29066
|
class: "video-message__download-button",
|
|
29067
29067
|
href: e.message.url,
|
|
@@ -29070,7 +29070,7 @@ const id = ["data-theme"], od = {
|
|
|
29070
29070
|
onClick: Kf(() => "//Предотвращаем всплытие события клика", ["stop"])
|
|
29071
29071
|
}, U[5] || (U[5] = [
|
|
29072
29072
|
o("span", { class: "pi pi-download" }, null, -1)
|
|
29073
|
-
]), 8, M4)) :
|
|
29073
|
+
]), 8, M4)) : b("", !0)
|
|
29074
29074
|
]),
|
|
29075
29075
|
_: 1
|
|
29076
29076
|
})
|
|
@@ -29080,40 +29080,40 @@ const id = ["data-theme"], od = {
|
|
|
29080
29080
|
I.value && e.message.actions ? (l(), u("button", {
|
|
29081
29081
|
key: 0,
|
|
29082
29082
|
class: "video-message__menu-button",
|
|
29083
|
-
onClick: U[2] || (U[2] = (ee) =>
|
|
29083
|
+
onClick: U[2] || (U[2] = (ee) => _.value = !_.value)
|
|
29084
29084
|
}, U[6] || (U[6] = [
|
|
29085
29085
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
29086
|
-
]))) :
|
|
29086
|
+
]))) : b("", !0)
|
|
29087
29087
|
]),
|
|
29088
29088
|
_: 1
|
|
29089
29089
|
}),
|
|
29090
29090
|
Y(ue, { name: "context-menu" }, {
|
|
29091
29091
|
default: K(() => [
|
|
29092
|
-
|
|
29092
|
+
_.value && e.message.actions ? (l(), B(D(_f), {
|
|
29093
29093
|
key: 0,
|
|
29094
29094
|
class: "video-message__context-menu",
|
|
29095
29095
|
actions: e.message.actions,
|
|
29096
29096
|
onClick: T
|
|
29097
|
-
}, null, 8, ["actions"])) :
|
|
29097
|
+
}, null, 8, ["actions"])) : b("", !0)
|
|
29098
29098
|
]),
|
|
29099
29099
|
_: 1
|
|
29100
29100
|
}),
|
|
29101
29101
|
e.message.text ? (l(), u("div", w4, [
|
|
29102
29102
|
o("p", {
|
|
29103
|
-
onClick:
|
|
29103
|
+
onClick: h,
|
|
29104
29104
|
innerHTML: M.value
|
|
29105
29105
|
}, null, 8, C4)
|
|
29106
|
-
])) :
|
|
29106
|
+
])) : b("", !0),
|
|
29107
29107
|
e.message.linkPreview ? (l(), B(o1, {
|
|
29108
29108
|
key: 2,
|
|
29109
29109
|
class: S(["video-message__link-preview", e.message.position]),
|
|
29110
29110
|
"link-preview": e.message.linkPreview
|
|
29111
|
-
}, null, 8, ["class", "link-preview"])) :
|
|
29111
|
+
}, null, 8, ["class", "link-preview"])) : b("", !0),
|
|
29112
29112
|
e.message.embed ? (l(), B(l1, {
|
|
29113
29113
|
key: 3,
|
|
29114
29114
|
class: S(e.message.position),
|
|
29115
29115
|
embed: e.message.embed
|
|
29116
|
-
}, null, 8, ["class", "embed"])) :
|
|
29116
|
+
}, null, 8, ["class", "embed"])) : b("", !0)
|
|
29117
29117
|
], 2)
|
|
29118
29118
|
], 46, m4),
|
|
29119
29119
|
(l(), B(ke, { to: "body" }, [
|
|
@@ -29136,7 +29136,7 @@ const id = ["data-theme"], od = {
|
|
|
29136
29136
|
}, null, 8, I4)
|
|
29137
29137
|
]),
|
|
29138
29138
|
_: 1
|
|
29139
|
-
}, 8, ["data-theme"])) :
|
|
29139
|
+
}, 8, ["data-theme"])) : b("", !0)
|
|
29140
29140
|
]),
|
|
29141
29141
|
_: 1
|
|
29142
29142
|
})
|
|
@@ -29179,7 +29179,7 @@ const id = ["data-theme"], od = {
|
|
|
29179
29179
|
}
|
|
29180
29180
|
},
|
|
29181
29181
|
setup(e) {
|
|
29182
|
-
const f = se("chatAppId"), { getTheme: t } = Ue(f), a = e, n =
|
|
29182
|
+
const f = se("chatAppId"), { getTheme: t } = Ue(f), a = e, n = v(!1), i = Q(() => a.subtextTooltipData && a.subtextTooltipData[a.message.messageId] ? a.subtextTooltipData[a.message.messageId] : a.message.subText || ""), s = {
|
|
29183
29183
|
textDialog: "textDialog",
|
|
29184
29184
|
message: "message"
|
|
29185
29185
|
};
|
|
@@ -29211,7 +29211,7 @@ const id = ["data-theme"], od = {
|
|
|
29211
29211
|
height: "32",
|
|
29212
29212
|
width: "32",
|
|
29213
29213
|
style: re({ gridRow: e.message.subText ? "2" : "1" })
|
|
29214
|
-
}, null, 12, T4)) :
|
|
29214
|
+
}, null, 12, T4)) : b("", !0),
|
|
29215
29215
|
e.message.subText ? (l(), u("p", N4, [
|
|
29216
29216
|
Y(we, {
|
|
29217
29217
|
text: i.value,
|
|
@@ -29223,7 +29223,7 @@ const id = ["data-theme"], od = {
|
|
|
29223
29223
|
]),
|
|
29224
29224
|
_: 1
|
|
29225
29225
|
}, 8, ["text", "position"])
|
|
29226
|
-
])) :
|
|
29226
|
+
])) : b("", !0),
|
|
29227
29227
|
o("div", E4, [
|
|
29228
29228
|
o("span", {
|
|
29229
29229
|
class: S(["call-message__icon pi pi-phone", { "call-message__icon-missed": e.message.isMissedCall }])
|
|
@@ -29239,7 +29239,7 @@ const id = ["data-theme"], od = {
|
|
|
29239
29239
|
onClick: d[0] || (d[0] = (g) => n.value = !n.value)
|
|
29240
29240
|
}, d[2] || (d[2] = [
|
|
29241
29241
|
o("span", { class: "pi pi-arrow-up-right" }, null, -1)
|
|
29242
|
-
]))) :
|
|
29242
|
+
]))) : b("", !0),
|
|
29243
29243
|
(l(), B(ke, { to: "body" }, [
|
|
29244
29244
|
Y(ue, { name: "modal-fade" }, {
|
|
29245
29245
|
default: K(() => {
|
|
@@ -29253,21 +29253,21 @@ const id = ["data-theme"], od = {
|
|
|
29253
29253
|
o("div", $4, [
|
|
29254
29254
|
o("button", {
|
|
29255
29255
|
class: "call-message__modal-close-button",
|
|
29256
|
-
onClick: d[1] || (d[1] = (
|
|
29256
|
+
onClick: d[1] || (d[1] = (_) => n.value = !1)
|
|
29257
29257
|
}, d[3] || (d[3] = [
|
|
29258
29258
|
o("span", null, [
|
|
29259
29259
|
o("i", { class: "pi pi-times" })
|
|
29260
29260
|
], -1)
|
|
29261
29261
|
])),
|
|
29262
|
-
(l(!0), u(J, null, le((g = e.message.transcript) == null ? void 0 : g.dialog, (
|
|
29263
|
-
key:
|
|
29264
|
-
class: S(r(
|
|
29262
|
+
(l(!0), u(J, null, le((g = e.message.transcript) == null ? void 0 : g.dialog, (_) => (l(), u("div", {
|
|
29263
|
+
key: _.time,
|
|
29264
|
+
class: S(r(_, s.textDialog))
|
|
29265
29265
|
}, [
|
|
29266
|
-
o("p", null, E(
|
|
29267
|
-
o("span", null, E(
|
|
29266
|
+
o("p", null, E(_.text), 1),
|
|
29267
|
+
o("span", null, E(_.time), 1)
|
|
29268
29268
|
], 2))), 128))
|
|
29269
29269
|
])
|
|
29270
|
-
], 8, B4)) :
|
|
29270
|
+
], 8, B4)) : b("", !0)
|
|
29271
29271
|
];
|
|
29272
29272
|
}),
|
|
29273
29273
|
_: 1
|
|
@@ -29310,8 +29310,8 @@ const id = ["data-theme"], od = {
|
|
|
29310
29310
|
height: "32",
|
|
29311
29311
|
width: "32",
|
|
29312
29312
|
style: re({ gridRow: e.message.subText ? "2" : "1" })
|
|
29313
|
-
}, null, 12, W4)) :
|
|
29314
|
-
e.message.subText ? (l(), u("p", Z4, E(e.message.subText), 1)) :
|
|
29313
|
+
}, null, 12, W4)) : b("", !0),
|
|
29314
|
+
e.message.subText ? (l(), u("p", Z4, E(e.message.subText), 1)) : b("", !0),
|
|
29315
29315
|
t[0] || (t[0] = o("div", { class: "typing-message__loader-container" }, [
|
|
29316
29316
|
o("div", { class: "typing-message__loader" })
|
|
29317
29317
|
], -1))
|
|
@@ -29326,7 +29326,7 @@ const id = ["data-theme"], od = {
|
|
|
29326
29326
|
}
|
|
29327
29327
|
},
|
|
29328
29328
|
setup(e) {
|
|
29329
|
-
const f = e, t =
|
|
29329
|
+
const f = e, t = v("");
|
|
29330
29330
|
ne(
|
|
29331
29331
|
() => f.message.text,
|
|
29332
29332
|
() => {
|
|
@@ -29338,7 +29338,7 @@ const id = ["data-theme"], od = {
|
|
|
29338
29338
|
n.preventDefault(), n.target.href && window.open(n.target.href, "_blank");
|
|
29339
29339
|
}
|
|
29340
29340
|
return (n, i) => (l(), u("div", J4, [
|
|
29341
|
-
e.message.header ? (l(), u("p", G4, E(e.message.header), 1)) :
|
|
29341
|
+
e.message.header ? (l(), u("p", G4, E(e.message.header), 1)) : b("", !0),
|
|
29342
29342
|
o("p", {
|
|
29343
29343
|
class: "text",
|
|
29344
29344
|
onClick: a,
|
|
@@ -29355,7 +29355,7 @@ const id = ["data-theme"], od = {
|
|
|
29355
29355
|
}
|
|
29356
29356
|
},
|
|
29357
29357
|
setup(e) {
|
|
29358
|
-
const f = se("chatAppId"), { getTheme: t } = Ue(f), a = e, n =
|
|
29358
|
+
const f = se("chatAppId"), { getTheme: t } = Ue(f), a = e, n = v(!1), i = v("");
|
|
29359
29359
|
ne(
|
|
29360
29360
|
() => a.message.text,
|
|
29361
29361
|
() => {
|
|
@@ -29379,7 +29379,7 @@ const id = ["data-theme"], od = {
|
|
|
29379
29379
|
}, null, 8, tA)
|
|
29380
29380
|
]),
|
|
29381
29381
|
o("div", nA, [
|
|
29382
|
-
e.message.header ? (l(), u("p", aA, E(e.message.header), 1)) :
|
|
29382
|
+
e.message.header ? (l(), u("p", aA, E(e.message.header), 1)) : b("", !0),
|
|
29383
29383
|
d[1] || (d[1] = o("div", { class: "image-message__reply-description" }, [
|
|
29384
29384
|
o("span", { class: "pi pi-camera" }),
|
|
29385
29385
|
o("p", null, "Фотография")
|
|
@@ -29389,7 +29389,7 @@ const id = ["data-theme"], od = {
|
|
|
29389
29389
|
class: "image-message__text",
|
|
29390
29390
|
onClick: s,
|
|
29391
29391
|
innerHTML: i.value
|
|
29392
|
-
}, null, 8, sA)) :
|
|
29392
|
+
}, null, 8, sA)) : b("", !0)
|
|
29393
29393
|
]),
|
|
29394
29394
|
(l(), B(ke, { to: "body" }, [
|
|
29395
29395
|
Y(ue, { name: "modal-fade" }, {
|
|
@@ -29407,7 +29407,7 @@ const id = ["data-theme"], od = {
|
|
|
29407
29407
|
}, null, 8, iA)
|
|
29408
29408
|
]),
|
|
29409
29409
|
_: 1
|
|
29410
|
-
}, 8, ["data-theme"])) :
|
|
29410
|
+
}, 8, ["data-theme"])) : b("", !0)
|
|
29411
29411
|
]),
|
|
29412
29412
|
_: 1
|
|
29413
29413
|
})
|
|
@@ -29423,7 +29423,7 @@ const id = ["data-theme"], od = {
|
|
|
29423
29423
|
}
|
|
29424
29424
|
},
|
|
29425
29425
|
setup(e) {
|
|
29426
|
-
const f = e, t =
|
|
29426
|
+
const f = e, t = v(!1), a = v("");
|
|
29427
29427
|
ne(
|
|
29428
29428
|
() => f.message.text,
|
|
29429
29429
|
() => {
|
|
@@ -29441,7 +29441,7 @@ const id = ["data-theme"], od = {
|
|
|
29441
29441
|
[Re, !t.value]
|
|
29442
29442
|
]),
|
|
29443
29443
|
o("div", cA, [
|
|
29444
|
-
e.message.header ? (l(), u("p", rA, E(e.message.header), 1)) :
|
|
29444
|
+
e.message.header ? (l(), u("p", rA, E(e.message.header), 1)) : b("", !0),
|
|
29445
29445
|
s[1] || (s[1] = o("div", { class: "audio-message__reply-description" }, [
|
|
29446
29446
|
o("span", { class: "pi pi-microphone" }),
|
|
29447
29447
|
o("p", null, "Аудиосообщение")
|
|
@@ -29451,7 +29451,7 @@ const id = ["data-theme"], od = {
|
|
|
29451
29451
|
class: "audio-message__text",
|
|
29452
29452
|
onClick: n,
|
|
29453
29453
|
innerHTML: a.value
|
|
29454
|
-
}, null, 8, dA)) :
|
|
29454
|
+
}, null, 8, dA)) : b("", !0)
|
|
29455
29455
|
])
|
|
29456
29456
|
], 64));
|
|
29457
29457
|
}
|
|
@@ -29464,7 +29464,7 @@ const id = ["data-theme"], od = {
|
|
|
29464
29464
|
}
|
|
29465
29465
|
},
|
|
29466
29466
|
setup(e) {
|
|
29467
|
-
const f = se("chatAppId"), { getTheme: t } = Ue(f), a = e, n =
|
|
29467
|
+
const f = se("chatAppId"), { getTheme: t } = Ue(f), a = e, n = v(), i = v(!1), s = v("");
|
|
29468
29468
|
ne(
|
|
29469
29469
|
() => a.message.text,
|
|
29470
29470
|
() => {
|
|
@@ -29488,7 +29488,7 @@ const id = ["data-theme"], od = {
|
|
|
29488
29488
|
}, null, 8, mA)
|
|
29489
29489
|
]),
|
|
29490
29490
|
o("div", pA, [
|
|
29491
|
-
e.message.header ? (l(), u("p", _A, E(e.message.header), 1)) :
|
|
29491
|
+
e.message.header ? (l(), u("p", _A, E(e.message.header), 1)) : b("", !0),
|
|
29492
29492
|
A[1] || (A[1] = o("div", { class: "video-message__reply-description" }, [
|
|
29493
29493
|
o("span", { class: "pi pi-video" }),
|
|
29494
29494
|
o("p", null, "Видео")
|
|
@@ -29498,7 +29498,7 @@ const id = ["data-theme"], od = {
|
|
|
29498
29498
|
class: "video-message__text",
|
|
29499
29499
|
onClick: r,
|
|
29500
29500
|
innerHTML: s.value
|
|
29501
|
-
}, null, 8, hA)) :
|
|
29501
|
+
}, null, 8, hA)) : b("", !0)
|
|
29502
29502
|
]),
|
|
29503
29503
|
(l(), B(ke, { to: "body" }, [
|
|
29504
29504
|
Y(ue, { name: "modal-fade" }, {
|
|
@@ -29520,7 +29520,7 @@ const id = ["data-theme"], od = {
|
|
|
29520
29520
|
}, null, 8, vA)
|
|
29521
29521
|
]),
|
|
29522
29522
|
_: 1
|
|
29523
|
-
}, 8, ["data-theme"])) :
|
|
29523
|
+
}, 8, ["data-theme"])) : b("", !0)
|
|
29524
29524
|
]),
|
|
29525
29525
|
_: 1
|
|
29526
29526
|
})
|
|
@@ -29536,7 +29536,7 @@ const id = ["data-theme"], od = {
|
|
|
29536
29536
|
}
|
|
29537
29537
|
},
|
|
29538
29538
|
setup(e) {
|
|
29539
|
-
const f = e, t =
|
|
29539
|
+
const f = e, t = v("");
|
|
29540
29540
|
ne(
|
|
29541
29541
|
() => f.message.text,
|
|
29542
29542
|
() => {
|
|
@@ -29557,7 +29557,7 @@ const id = ["data-theme"], od = {
|
|
|
29557
29557
|
o("span", { class: "pi pi-file" }, null, -1)
|
|
29558
29558
|
]), 8, MA),
|
|
29559
29559
|
o("div", null, [
|
|
29560
|
-
e.message.header ? (l(), u("p", wA, E(e.message.header), 1)) :
|
|
29560
|
+
e.message.header ? (l(), u("p", wA, E(e.message.header), 1)) : b("", !0),
|
|
29561
29561
|
o("a", {
|
|
29562
29562
|
class: "file-message__link",
|
|
29563
29563
|
href: e.message.url,
|
|
@@ -29571,7 +29571,7 @@ const id = ["data-theme"], od = {
|
|
|
29571
29571
|
class: "file-message__text",
|
|
29572
29572
|
onClick: a,
|
|
29573
29573
|
innerHTML: t.value
|
|
29574
|
-
}, null, 8, kA)) :
|
|
29574
|
+
}, null, 8, kA)) : b("", !0)
|
|
29575
29575
|
])
|
|
29576
29576
|
], 64));
|
|
29577
29577
|
}
|
|
@@ -29657,14 +29657,14 @@ const id = ["data-theme"], od = {
|
|
|
29657
29657
|
},
|
|
29658
29658
|
emits: ["close-window", "get-size"],
|
|
29659
29659
|
setup(e, { emit: f }) {
|
|
29660
|
-
const t = e, a =
|
|
29660
|
+
const t = e, a = v({ x: 0, y: 0 }), n = v(null), i = v(null), s = v(!1), r = v(0), c = v(0), d = v(0), A = G1();
|
|
29661
29661
|
Mf("chatAppId", A), Mf("extChatAppId", t.extChatAppId ? t.extChatAppId : "");
|
|
29662
|
-
const g = (
|
|
29663
|
-
s.value = !0, r.value =
|
|
29664
|
-
},
|
|
29662
|
+
const g = (y) => {
|
|
29663
|
+
s.value = !0, r.value = y.clientX - n.value.offsetLeft, c.value = y.clientY - n.value.offsetTop;
|
|
29664
|
+
}, _ = () => s.value = !1, I = (y) => {
|
|
29665
29665
|
if (s.value) {
|
|
29666
|
-
const M =
|
|
29667
|
-
a.value.x = M, a.value.y =
|
|
29666
|
+
const M = y.clientX - r.value, h = y.clientY - c.value;
|
|
29667
|
+
a.value.x = M, a.value.y = h;
|
|
29668
29668
|
}
|
|
29669
29669
|
};
|
|
29670
29670
|
return me(() => {
|
|
@@ -29683,7 +29683,7 @@ const id = ["data-theme"], od = {
|
|
|
29683
29683
|
)
|
|
29684
29684
|
));
|
|
29685
29685
|
}), d.value = n.value.offsetHeight - i.value.offsetHeight;
|
|
29686
|
-
}), (
|
|
29686
|
+
}), (y, M) => (l(), u("div", {
|
|
29687
29687
|
id: D(A),
|
|
29688
29688
|
ref_key: "element",
|
|
29689
29689
|
ref: n,
|
|
@@ -29703,21 +29703,21 @@ const id = ["data-theme"], od = {
|
|
|
29703
29703
|
ref: i,
|
|
29704
29704
|
class: "float-window__controls",
|
|
29705
29705
|
onMousedown: g,
|
|
29706
|
-
onMouseup:
|
|
29707
|
-
onMouseleave:
|
|
29706
|
+
onMouseup: _,
|
|
29707
|
+
onMouseleave: _
|
|
29708
29708
|
}, [
|
|
29709
29709
|
t.avatar ? (l(), u("img", {
|
|
29710
29710
|
key: 0,
|
|
29711
29711
|
class: "float-window__avatar",
|
|
29712
29712
|
src: t.avatar,
|
|
29713
29713
|
alt: t.title
|
|
29714
|
-
}, null, 8, $A)) :
|
|
29714
|
+
}, null, 8, $A)) : b("", !0),
|
|
29715
29715
|
o("p", RA, E(t.title), 1),
|
|
29716
29716
|
o("div", QA, [
|
|
29717
|
-
oe(
|
|
29717
|
+
oe(y.$slots, "controls"),
|
|
29718
29718
|
o("button", {
|
|
29719
29719
|
class: "float-window__close-button",
|
|
29720
|
-
onClick: M[0] || (M[0] = (
|
|
29720
|
+
onClick: M[0] || (M[0] = (h) => y.$emit("close-window"))
|
|
29721
29721
|
}, M[1] || (M[1] = [
|
|
29722
29722
|
o("span", { class: "pi pi-times" }, null, -1)
|
|
29723
29723
|
]))
|
|
@@ -29727,7 +29727,7 @@ const id = ["data-theme"], od = {
|
|
|
29727
29727
|
class: "float-window__content",
|
|
29728
29728
|
style: re({ height: d.value + "px" })
|
|
29729
29729
|
}, [
|
|
29730
|
-
oe(
|
|
29730
|
+
oe(y.$slots, "default")
|
|
29731
29731
|
], 4)
|
|
29732
29732
|
])
|
|
29733
29733
|
], 12, UA));
|
|
@@ -29810,7 +29810,7 @@ const eg = /* @__PURE__ */ O(e6, [["render", n6], ["__scopeId", "data-v-414119aa
|
|
|
29810
29810
|
])),
|
|
29811
29811
|
e.isOpenChatPanel ? (l(), u("div", l6, [
|
|
29812
29812
|
oe(t.$slots, "chatpanel", {}, void 0, !0)
|
|
29813
|
-
])) :
|
|
29813
|
+
])) : b("", !0)
|
|
29814
29814
|
], 10, a6));
|
|
29815
29815
|
}
|
|
29816
29816
|
}), fg = /* @__PURE__ */ O(u6, [["__scopeId", "data-v-df00ad62"]]), c6 = ["id"], r6 = ["id"], d6 = ["id"], A6 = ["id"], g6 = {
|