@mobilon-dev/chotto 0.0.98 → 0.0.100
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-Dqz60DCK.js → CreateDialog-DA14LMwr.js} +1 -1
- package/dist/{ModalVideoRecorder-ojrInMMa.js → ModalVideoRecorder-DzrQvpjE.js} +1 -1
- package/dist/{SelectUser2-DZ17DPV8.js → SelectUser2-C3_AeExs.js} +1 -1
- package/dist/{index-CxvoBSad.js → index-CajaIOuC.js} +1120 -1093
- package/dist/style.css +1 -1
- package/dist/vuessages.es.js +1 -1
- package/dist/vuessages.umd.js +5 -5
- package/package.json +1 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { inject as ee, computed as Q, openBlock as r, createElementBlock as u, createElementVNode as o, createCommentVNode as v, toDisplayString as
|
1
|
+
import { inject as ee, computed as Q, openBlock as r, createElementBlock as u, createElementVNode as o, createCommentVNode as v, toDisplayString as T, renderSlot as ne, unref as E, ref as b, customRef as Zf, withKeys as Jn, defineComponent as W, onMounted as ie, withDirectives as Ae, vShow as We, createBlock as B, Teleport as de, createVNode as F, Transition as X, withCtx as K, watch as G, nextTick as et, vModelText as lt, normalizeClass as O, Fragment as q, renderList as te, normalizeStyle as se, resolveDynamicComponent as Xf, useId as Gn, onUnmounted as Ke, toRef as Ba, vModelRadio as ea, reactive as ta, provide as In, getCurrentInstance as Ra, toRaw as na, onBeforeUnmount as Qa, readonly as $a, resolveComponent as Pt, h as Tf, defineAsyncComponent as Ya, createApp as Pa, withModifiers as kt } from "vue";
|
2
2
|
const Fa = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", qa = "ελ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", tt = (e, t) => {
|
3
3
|
for (const n in t)
|
4
4
|
e[n] = t[n];
|
@@ -144,7 +144,7 @@ me.prototype = {
|
|
144
144
|
return a.j[e] = i, i;
|
145
145
|
}
|
146
146
|
};
|
147
|
-
const P = (e, t, n, f, a) => e.ta(t, n, f, a), ae = (e, t, n, f, a) => e.tr(t, n, f, a), jf = (e, t, n, f, a) => e.ts(t, n, f, a),
|
147
|
+
const P = (e, t, n, f, a) => e.ta(t, n, f, a), ae = (e, t, n, f, a) => e.tr(t, n, f, a), jf = (e, t, n, f, a) => e.ts(t, n, f, a), D = (e, t, n, f, a) => e.tt(t, n, f, a), Ce = "WORD", Yn = "UWORD", aa = "ASCIINUMERICAL", sa = "ALPHANUMERICAL", Nt = "LOCALHOST", Pn = "TLD", Fn = "UTLD", Ft = "SCHEME", Xe = "SLASH_SCHEME", Zn = "NUM", qn = "WS", Xn = "NL", vt = "OPENBRACE", yt = "CLOSEBRACE", Wt = "OPENBRACKET", Kt = "CLOSEBRACKET", Jt = "OPENPAREN", Gt = "CLOSEPAREN", Zt = "OPENANGLEBRACKET", Xt = "CLOSEANGLEBRACKET", en = "FULLWIDTHLEFTPAREN", tn = "FULLWIDTHRIGHTPAREN", nn = "LEFTCORNERBRACKET", fn = "RIGHTCORNERBRACKET", an = "LEFTWHITECORNERBRACKET", sn = "RIGHTWHITECORNERBRACKET", on = "FULLWIDTHLESSTHAN", ln = "FULLWIDTHGREATERTHAN", rn = "AMPERSAND", ef = "APOSTROPHE", An = "ASTERISK", Ue = "AT", cn = "BACKSLASH", un = "BACKTICK", dn = "CARET", Be = "COLON", tf = "COMMA", gn = "DOLLAR", De = "DOT", mn = "EQUALS", nf = "EXCLAMATION", ye = "HYPHEN", bt = "PERCENT", pn = "PIPE", hn = "PLUS", vn = "POUND", Mt = "QUERY", ff = "QUOTE", ia = "FULLWIDTHMIDDLEDOT", af = "SEMI", Ee = "SLASH", _t = "TILDE", yn = "UNDERSCORE", oa = "EMOJI", bn = "SYM";
|
148
148
|
var la = /* @__PURE__ */ Object.freeze({
|
149
149
|
__proto__: null,
|
150
150
|
WORD: Ce,
|
@@ -210,7 +210,7 @@ function Xa(e = []) {
|
|
210
210
|
const t = {};
|
211
211
|
me.groups = t;
|
212
212
|
const n = new me();
|
213
|
-
Bt == null && (Bt = Vf(Fa)), Rt == null && (Rt = Vf(qa)),
|
213
|
+
Bt == null && (Bt = Vf(Fa)), Rt == null && (Rt = Vf(qa)), D(n, "'", ef), D(n, "{", vt), D(n, "}", yt), D(n, "[", Wt), D(n, "]", Kt), D(n, "(", Jt), D(n, ")", Gt), D(n, "<", Zt), D(n, ">", Xt), D(n, "(", en), D(n, ")", tn), D(n, "「", nn), D(n, "」", fn), D(n, "『", an), D(n, "』", sn), D(n, "<", on), D(n, ">", ln), D(n, "&", rn), D(n, "*", An), D(n, "@", Ue), D(n, "`", un), D(n, "^", dn), D(n, ":", Be), D(n, ",", tf), D(n, "$", gn), D(n, ".", De), D(n, "=", mn), D(n, "!", nf), D(n, "-", ye), D(n, "%", bt), D(n, "|", pn), D(n, "+", hn), D(n, "#", vn), D(n, "?", Mt), D(n, '"', ff), D(n, "/", Ee), D(n, ";", af), D(n, "~", _t), D(n, "_", yn), D(n, "\\", cn), D(n, "・", ia);
|
214
214
|
const f = ae(n, Se, Zn, {
|
215
215
|
[Bn]: !0
|
216
216
|
});
|
@@ -227,20 +227,20 @@ function Xa(e = []) {
|
|
227
227
|
[Qn]: !0
|
228
228
|
});
|
229
229
|
ae(l, Ve), ae(l, Se, s), ae(l, ut, l), ae(s, Se, s), ae(s, Ve), ae(s, ut, s);
|
230
|
-
const c =
|
230
|
+
const c = D(n, Vn, Xn, {
|
231
231
|
[Tn]: !0
|
232
|
-
}), A =
|
232
|
+
}), A = D(n, xf, qn, {
|
233
233
|
[Tn]: !0
|
234
|
-
}),
|
234
|
+
}), d = ae(n, xn, qn, {
|
235
235
|
[Tn]: !0
|
236
236
|
});
|
237
|
-
|
238
|
-
const
|
237
|
+
D(n, Sn, d), D(A, Vn, c), D(A, Sn, d), ae(A, xn, d), D(d, xf), D(d, Vn), ae(d, xn, d), D(d, Sn, d);
|
238
|
+
const g = ae(n, jn, oa, {
|
239
239
|
[fa]: !0
|
240
240
|
});
|
241
|
-
|
242
|
-
const m =
|
243
|
-
|
241
|
+
D(g, "#"), ae(g, jn, g), D(g, Ga, g);
|
242
|
+
const m = D(g, Za);
|
243
|
+
D(m, "#"), ae(m, jn, g);
|
244
244
|
const M = [[Ve, i], [Se, a]], p = [[Ve, null], [ut, l], [Se, s]];
|
245
245
|
for (let y = 0; y < Bt.length; y++)
|
246
246
|
Le(n, Bt[y], Pn, Ce, M);
|
@@ -260,12 +260,12 @@ function Xa(e = []) {
|
|
260
260
|
ascii: !0
|
261
261
|
}, t), e = e.sort((y, h) => y[0] > h[0] ? 1 : -1);
|
262
262
|
for (let y = 0; y < e.length; y++) {
|
263
|
-
const h = e[y][0],
|
263
|
+
const h = e[y][0], S = e[y][1] ? {
|
264
264
|
[Ha]: !0
|
265
265
|
} : {
|
266
266
|
[Wa]: !0
|
267
267
|
};
|
268
|
-
h.indexOf("-") >= 0 ?
|
268
|
+
h.indexOf("-") >= 0 ? S[$n] = !0 : Ve.test(h) ? Se.test(h) ? S[ht] = !0 : S[Rn] = !0 : S[Bn] = !0, jf(n, h, h, S);
|
269
269
|
}
|
270
270
|
return jf(n, "localhost", Nt, {
|
271
271
|
ascii: !0
|
@@ -280,11 +280,11 @@ function ra(e, t) {
|
|
280
280
|
const n = es(t.replace(/[A-Z]/g, (l) => l.toLowerCase())), f = n.length, a = [];
|
281
281
|
let s = 0, i = 0;
|
282
282
|
for (; i < f; ) {
|
283
|
-
let l = e, c = null, A = 0,
|
283
|
+
let l = e, c = null, A = 0, d = null, g = -1, m = -1;
|
284
284
|
for (; i < f && (c = l.go(n[i])); )
|
285
|
-
l = c, l.accepts() ? (
|
286
|
-
s -=
|
287
|
-
t:
|
285
|
+
l = c, l.accepts() ? (g = 0, m = 0, d = l) : g >= 0 && (g += n[i].length, m++), A += n[i].length, s += n[i].length, i++;
|
286
|
+
s -= g, i -= m, A -= g, a.push({
|
287
|
+
t: d.t,
|
288
288
|
// token type/name
|
289
289
|
v: t.slice(s - A, s),
|
290
290
|
// string value
|
@@ -518,12 +518,12 @@ Aa.prototype = {
|
|
518
518
|
* @param {Options} options Formattinng options
|
519
519
|
*/
|
520
520
|
render(e) {
|
521
|
-
const t = this, n = this.toHref(e.get("defaultProtocol")), f = e.get("formatHref", n, this), a = e.get("tagName", n, t), s = this.toFormattedString(e), i = {}, l = e.get("className", n, t), c = e.get("target", n, t), A = e.get("rel", n, t),
|
522
|
-
return i.href = f, l && (i.class = l), c && (i.target = c), A && (i.rel = A),
|
521
|
+
const t = this, n = this.toHref(e.get("defaultProtocol")), f = e.get("formatHref", n, this), a = e.get("tagName", n, t), s = this.toFormattedString(e), i = {}, l = e.get("className", n, t), c = e.get("target", n, t), A = e.get("rel", n, t), d = e.getObj("attributes", n, t), g = e.getObj("events", n, t);
|
522
|
+
return i.href = f, l && (i.class = l), c && (i.target = c), A && (i.rel = A), d && tt(i, d), {
|
523
523
|
tagName: a,
|
524
524
|
attributes: i,
|
525
525
|
content: s,
|
526
|
-
eventListeners:
|
526
|
+
eventListeners: g
|
527
527
|
};
|
528
528
|
}
|
529
529
|
};
|
@@ -566,35 +566,35 @@ const Cf = wn("email", {
|
|
566
566
|
function ns({
|
567
567
|
groups: e
|
568
568
|
}) {
|
569
|
-
const t = e.domain.concat([rn, An, Ue, cn, un, dn, gn, mn, ye, Zn, bt, pn, hn, vn, Ee, bn, _t, yn]), n = [Be, tf, De, nf, bt, Mt, ff, af, Zt, Xt, vt, yt, Kt, Wt, Jt, Gt, en, tn, nn, fn, an, sn, on, ln], f = [rn, ef, An, cn, un, dn, gn, mn, ye, vt, yt, bt, pn, hn, vn, Mt, Ee, bn, _t, yn], a = ve(), s =
|
569
|
+
const t = e.domain.concat([rn, An, Ue, cn, un, dn, gn, mn, ye, Zn, bt, pn, hn, vn, Ee, bn, _t, yn]), n = [Be, tf, De, nf, bt, Mt, ff, af, Zt, Xt, vt, yt, Kt, Wt, Jt, Gt, en, tn, nn, fn, an, sn, on, ln], f = [rn, ef, An, cn, un, dn, gn, mn, ye, vt, yt, bt, pn, hn, vn, Mt, Ee, bn, _t, yn], a = ve(), s = D(a, _t);
|
570
570
|
P(s, f, s), P(s, e.domain, s);
|
571
571
|
const i = ve(), l = ve(), c = ve();
|
572
572
|
P(a, e.domain, i), P(a, e.scheme, l), P(a, e.slashscheme, c), P(i, f, s), P(i, e.domain, i);
|
573
|
-
const A =
|
574
|
-
|
575
|
-
const
|
576
|
-
P(
|
577
|
-
const
|
578
|
-
P(A, e.domain,
|
579
|
-
const m =
|
580
|
-
P(m, e.domain,
|
573
|
+
const A = D(i, Ue);
|
574
|
+
D(s, Ue, A), D(l, Ue, A), D(c, Ue, A);
|
575
|
+
const d = D(s, De);
|
576
|
+
P(d, f, s), P(d, e.domain, s);
|
577
|
+
const g = ve();
|
578
|
+
P(A, e.domain, g), P(g, e.domain, g);
|
579
|
+
const m = D(g, De);
|
580
|
+
P(m, e.domain, g);
|
581
581
|
const M = ve(Cf);
|
582
|
-
P(m, e.tld, M), P(m, e.utld, M),
|
583
|
-
const p =
|
584
|
-
|
585
|
-
const y =
|
582
|
+
P(m, e.tld, M), P(m, e.utld, M), D(A, Nt, M);
|
583
|
+
const p = D(g, ye);
|
584
|
+
D(p, ye, p), P(p, e.domain, g), P(M, e.domain, g), D(M, De, m), D(M, ye, p);
|
585
|
+
const y = D(M, Be);
|
586
586
|
P(y, e.numeric, Cf);
|
587
|
-
const h =
|
588
|
-
|
589
|
-
const
|
590
|
-
P(
|
591
|
-
const j =
|
592
|
-
P(j, e.numeric,
|
593
|
-
const
|
594
|
-
P(
|
595
|
-
const C =
|
596
|
-
P(l, e.domain, i),
|
597
|
-
const
|
587
|
+
const h = D(i, ye), V = D(i, De);
|
588
|
+
D(h, ye, h), P(h, e.domain, i), P(V, f, s), P(V, e.domain, i);
|
589
|
+
const S = ve(Qt);
|
590
|
+
P(V, e.tld, S), P(V, e.utld, S), P(S, e.domain, i), P(S, f, s), D(S, De, V), D(S, ye, h), D(S, Ue, A);
|
591
|
+
const j = D(S, Be), L = ve(Qt);
|
592
|
+
P(j, e.numeric, L);
|
593
|
+
const _ = ve(Qt), x = ve();
|
594
|
+
P(_, t, _), P(_, n, x), P(x, t, _), P(x, n, x), D(S, Ee, _), D(L, Ee, _);
|
595
|
+
const C = D(l, Be), k = D(c, Be), N = D(k, Ee), w = D(N, Ee);
|
596
|
+
P(l, e.domain, i), D(l, De, V), D(l, ye, h), P(c, e.domain, i), D(c, De, V), D(c, ye, h), P(C, e.domain, _), D(C, Ee, _), D(C, Mt, _), P(w, e.domain, _), P(w, t, _), D(w, Ee, _);
|
597
|
+
const I = [
|
598
598
|
[vt, yt],
|
599
599
|
// {}
|
600
600
|
[Wt, Kt],
|
@@ -612,15 +612,15 @@ function ns({
|
|
612
612
|
[on, ln]
|
613
613
|
// <>
|
614
614
|
];
|
615
|
-
for (let U = 0; U <
|
616
|
-
const [$, J] =
|
617
|
-
|
618
|
-
const
|
619
|
-
P(
|
615
|
+
for (let U = 0; U < I.length; U++) {
|
616
|
+
const [$, J] = I[U], le = D(_, $);
|
617
|
+
D(x, $, le), D(le, J, _);
|
618
|
+
const Z = ve(Qt);
|
619
|
+
P(le, t, Z);
|
620
620
|
const fe = ve();
|
621
|
-
P(
|
621
|
+
P(le, n), P(Z, t, Z), P(Z, n, fe), P(fe, t, Z), P(fe, n, fe), D(Z, J, _), D(fe, J, _);
|
622
622
|
}
|
623
|
-
return
|
623
|
+
return D(a, Nt, S), D(a, Xn, ts), {
|
624
624
|
start: a,
|
625
625
|
tokens: la
|
626
626
|
};
|
@@ -628,16 +628,16 @@ function ns({
|
|
628
628
|
function fs(e, t, n) {
|
629
629
|
let f = n.length, a = 0, s = [], i = [];
|
630
630
|
for (; a < f; ) {
|
631
|
-
let l = e, c = null, A = null,
|
631
|
+
let l = e, c = null, A = null, d = 0, g = null, m = -1;
|
632
632
|
for (; a < f && !(c = l.go(n[a].t)); )
|
633
633
|
i.push(n[a++]);
|
634
634
|
for (; a < f && (A = c || l.go(n[a].t)); )
|
635
|
-
c = null, l = A, l.accepts() ? (m = 0,
|
635
|
+
c = null, l = A, l.accepts() ? (m = 0, g = l) : m >= 0 && m++, a++, d++;
|
636
636
|
if (m < 0)
|
637
|
-
a -=
|
637
|
+
a -= d, a < f && (i.push(n[a]), a++);
|
638
638
|
else {
|
639
|
-
i.length > 0 && (s.push(Cn(zf, t, i)), i = []), a -= m,
|
640
|
-
const M =
|
639
|
+
i.length > 0 && (s.push(Cn(zf, t, i)), i = []), a -= m, d -= m;
|
640
|
+
const M = g.t, p = n.slice(a - d, a);
|
641
641
|
s.push(Cn(M, t, p));
|
642
642
|
}
|
643
643
|
}
|
@@ -768,8 +768,8 @@ const R = (e, t) => {
|
|
768
768
|
}, null, 8, cs)) : (r(), u("span", us))
|
769
769
|
]),
|
770
770
|
o("div", ds, [
|
771
|
-
o("h2", gs,
|
772
|
-
s.value ? (r(), u("p", ms,
|
771
|
+
o("h2", gs, T(e.chat.name), 1),
|
772
|
+
s.value ? (r(), u("p", ms, T(s.value), 1)) : v("", !0)
|
773
773
|
]),
|
774
774
|
o("div", ps, [
|
775
775
|
ne(i.$slots, "actions", {}, void 0, !0)
|
@@ -777,13 +777,13 @@ const R = (e, t) => {
|
|
777
777
|
]),
|
778
778
|
o("div", {
|
779
779
|
class: "chat-info__search-panel",
|
780
|
-
id: "chat-info-search-panel-" +
|
780
|
+
id: "chat-info-search-panel-" + E(a)
|
781
781
|
}, [
|
782
782
|
ne(i.$slots, "search", {}, void 0, !0)
|
783
783
|
], 8, hs)
|
784
784
|
])) : v("", !0);
|
785
785
|
}
|
786
|
-
},
|
786
|
+
}, bg = /* @__PURE__ */ R(vs, [["__scopeId", "data-v-1d46ede1"]]), ge = b([]), Ie = (e) => {
|
787
787
|
const t = b(0);
|
788
788
|
let n = ge.value.find(({ id: m }) => m == e);
|
789
789
|
n != null ? t.value = ge.value.indexOf(n) : (ge.value.push({
|
@@ -987,7 +987,7 @@ const ga = (e) => {
|
|
987
987
|
class: "modal__overlay",
|
988
988
|
onClick: s,
|
989
989
|
onKeyup: l[1] || (l[1] = Jn((c) => n("close"), ["esc"])),
|
990
|
-
"data-theme":
|
990
|
+
"data-theme": E(a)().theme
|
991
991
|
}, [
|
992
992
|
o("div", Ns, [
|
993
993
|
o("button", {
|
@@ -1025,14 +1025,14 @@ const ga = (e) => {
|
|
1025
1025
|
emits: ["reset"],
|
1026
1026
|
setup(e, { emit: t }) {
|
1027
1027
|
const n = t, f = b(), a = b(), s = b(!1), i = b(0), l = b(0), c = b(!1), A = () => c.value = !1;
|
1028
|
-
function
|
1028
|
+
function d() {
|
1029
1029
|
f.value && (s.value ? f.value.pause() : f.value.play(), s.value = !s.value);
|
1030
1030
|
}
|
1031
|
-
const
|
1031
|
+
const g = (p) => {
|
1032
1032
|
const y = Math.floor(p / 60), h = Math.floor(p % 60);
|
1033
1033
|
return `${y.toString().padStart(2, "0")}:${h.toString().padStart(2, "0")}`;
|
1034
|
-
}, m = Q(() => f.value ?
|
1035
|
-
return
|
1034
|
+
}, m = Q(() => f.value ? g(l.value) : "0:00"), M = Q(() => f.value || a.value ? g(i.value) : "0:00");
|
1035
|
+
return ie(() => {
|
1036
1036
|
f.value != null && (f.value.addEventListener("loadedmetadata", () => {
|
1037
1037
|
f.value != null && (f.value.duration == 1 / 0 || Number.isNaN(f.value.duration)) && (f.value.currentTime = 1e101, f.value.addEventListener("timeupdate", () => {
|
1038
1038
|
f.value && (f.value.currentTime = 0, i.value = f.value.duration);
|
@@ -1085,7 +1085,7 @@ const ga = (e) => {
|
|
1085
1085
|
}, null, 8, Ss),
|
1086
1086
|
o("button", {
|
1087
1087
|
class: "preview__audio-control",
|
1088
|
-
onClick:
|
1088
|
+
onClick: d
|
1089
1089
|
}, [
|
1090
1090
|
Ae(o("span", Cs, null, 512), [
|
1091
1091
|
[We, !s.value]
|
@@ -1103,10 +1103,10 @@ const ga = (e) => {
|
|
1103
1103
|
]),
|
1104
1104
|
o("div", Ls, [
|
1105
1105
|
o("div", Us, [
|
1106
|
-
o("span", Bs,
|
1107
|
-
!e.fileInfo.isAudio && !e.fileInfo.isVideo ? (r(), u("span", Rs,
|
1108
|
-
e.fileInfo.isAudio ? (r(), u("span", Qs,
|
1109
|
-
e.fileInfo.isVideo ? (r(), u("span", $s,
|
1106
|
+
o("span", Bs, T(e.fileInfo.fileName), 1),
|
1107
|
+
!e.fileInfo.isAudio && !e.fileInfo.isVideo ? (r(), u("span", Rs, T(e.fileInfo.fileSize), 1)) : v("", !0),
|
1108
|
+
e.fileInfo.isAudio ? (r(), u("span", Qs, T(`${m.value} / ${M.value}`), 1)) : v("", !0),
|
1109
|
+
e.fileInfo.isVideo ? (r(), u("span", $s, T(M.value), 1)) : v("", !0)
|
1110
1110
|
]),
|
1111
1111
|
o("span", {
|
1112
1112
|
class: "pi pi-times preview__reset",
|
@@ -1115,7 +1115,7 @@ const ga = (e) => {
|
|
1115
1115
|
})
|
1116
1116
|
]),
|
1117
1117
|
(r(), B(de, { to: "body" }, [
|
1118
|
-
F(
|
1118
|
+
F(X, { name: "modal-fade" }, {
|
1119
1119
|
default: K(() => [
|
1120
1120
|
c.value ? (r(), B(lf, {
|
1121
1121
|
key: 0,
|
@@ -1163,52 +1163,52 @@ const ga = (e) => {
|
|
1163
1163
|
},
|
1164
1164
|
emits: ["send", "typing"],
|
1165
1165
|
setup(e, { emit: t }) {
|
1166
|
-
const n = t, f = ee("chatAppId"), { resetMessage: a, getMessage: s, setMessageText: i, setForceSendMessage: l, setMessageFile: c, resetMessageFile: A, setRecordingMessage:
|
1166
|
+
const n = t, f = ee("chatAppId"), { resetMessage: a, getMessage: s, setMessageText: i, setForceSendMessage: l, setMessageFile: c, resetMessageFile: A, setRecordingMessage: d } = Ie(f), g = b(), m = Is("", 2e3), M = b(), p = e, y = Q(() => {
|
1167
1167
|
if (p.state == "disabled" || s().text == "" && !s().file || s().isRecording) return !0;
|
1168
1168
|
});
|
1169
|
-
|
1169
|
+
G(
|
1170
1170
|
() => m.value,
|
1171
1171
|
() => {
|
1172
1172
|
n("typing");
|
1173
1173
|
}
|
1174
|
-
),
|
1174
|
+
), G(
|
1175
1175
|
() => p.focusOnInputArea,
|
1176
1176
|
() => {
|
1177
1177
|
p.focusOnInputArea && et(() => {
|
1178
|
-
const
|
1179
|
-
|
1178
|
+
const _ = E(g);
|
1179
|
+
_ == null || _.focus();
|
1180
1180
|
});
|
1181
1181
|
},
|
1182
1182
|
{ immediate: !0 }
|
1183
|
-
),
|
1183
|
+
), G(
|
1184
1184
|
() => s().text,
|
1185
1185
|
() => {
|
1186
1186
|
et(function() {
|
1187
|
-
m.value = s().text,
|
1187
|
+
m.value = s().text, g.value && (g.value.style.height = "auto", g.value.style.height = g.value.scrollHeight + "px");
|
1188
1188
|
});
|
1189
1189
|
}
|
1190
|
-
),
|
1190
|
+
), G(
|
1191
1191
|
() => s().forceSend,
|
1192
1192
|
() => {
|
1193
|
-
s().forceSend && (
|
1193
|
+
s().forceSend && (S(), l(!1));
|
1194
1194
|
}
|
1195
1195
|
);
|
1196
|
-
const h = (
|
1197
|
-
n("typing",
|
1198
|
-
},
|
1199
|
-
if (
|
1200
|
-
if (
|
1201
|
-
let
|
1202
|
-
|
1203
|
-
`,
|
1196
|
+
const h = (_) => {
|
1197
|
+
n("typing", _.target.value);
|
1198
|
+
}, V = (_) => {
|
1199
|
+
if (_.ctrlKey) {
|
1200
|
+
if (g.value instanceof HTMLTextAreaElement) {
|
1201
|
+
let x = g.value.selectionStart;
|
1202
|
+
x && (g.value.setRangeText(`
|
1203
|
+
`, x, x, "end"), i(g.value.value));
|
1204
1204
|
}
|
1205
1205
|
} else
|
1206
|
-
|
1207
|
-
},
|
1208
|
-
var
|
1209
|
-
const
|
1210
|
-
if (
|
1211
|
-
const
|
1206
|
+
_.preventDefault(), S();
|
1207
|
+
}, S = () => {
|
1208
|
+
var x, C;
|
1209
|
+
const _ = b(s());
|
1210
|
+
if (_.value.text != "" || _.value.file) {
|
1211
|
+
const k = {
|
1212
1212
|
type: "",
|
1213
1213
|
text: "",
|
1214
1214
|
url: "",
|
@@ -1216,88 +1216,88 @@ const ga = (e) => {
|
|
1216
1216
|
size: "",
|
1217
1217
|
reply: void 0
|
1218
1218
|
};
|
1219
|
-
|
1219
|
+
_.value.file ? (k.type = "message." + _.value.file.type, k.url = _.value.file.url, k.filename = _.value.file.name, k.size = (x = _.value.file.size) == null ? void 0 : x.toString(), k.text = (C = _ == null ? void 0 : _.value) == null ? void 0 : C.text.trim()) : (k.type = "message.text", k.text = _.value.text.trim()), _.value.reply && (k.reply = _.value.reply), n("send", k), a(), M.value = void 0, g.value && g.value.focus();
|
1220
1220
|
}
|
1221
|
-
}, j = async (
|
1221
|
+
}, j = async (_) => {
|
1222
1222
|
var C;
|
1223
|
-
const
|
1224
|
-
if (
|
1225
|
-
for (let
|
1226
|
-
if (
|
1227
|
-
|
1228
|
-
const
|
1229
|
-
if (
|
1230
|
-
|
1231
|
-
const
|
1232
|
-
await xt(
|
1233
|
-
|
1234
|
-
url:
|
1235
|
-
name:
|
1236
|
-
size:
|
1237
|
-
type:
|
1238
|
-
}),
|
1239
|
-
previewUrl:
|
1240
|
-
isImage:
|
1241
|
-
isVideo:
|
1242
|
-
isAudio:
|
1243
|
-
fileName:
|
1244
|
-
fileSize:
|
1223
|
+
const x = (C = _.clipboardData) == null ? void 0 : C.items;
|
1224
|
+
if (x) {
|
1225
|
+
for (let k of x)
|
1226
|
+
if (k.type.indexOf("image") !== -1) {
|
1227
|
+
_.preventDefault();
|
1228
|
+
const N = k.getAsFile();
|
1229
|
+
if (N) {
|
1230
|
+
d(!0);
|
1231
|
+
const w = typeof p.filebumpUrl == "string" ? p.filebumpUrl : null;
|
1232
|
+
await xt(w, N).then((I) => {
|
1233
|
+
d(!1), I.status == "success" && (c({
|
1234
|
+
url: I.url,
|
1235
|
+
name: I.name,
|
1236
|
+
size: I.size,
|
1237
|
+
type: I.type
|
1238
|
+
}), I.preview && (M.value = {
|
1239
|
+
previewUrl: I.preview.previewUrl,
|
1240
|
+
isImage: I.preview.isImage,
|
1241
|
+
isVideo: I.preview.isVideo,
|
1242
|
+
isAudio: I.preview.isAudio,
|
1243
|
+
fileName: I.name,
|
1244
|
+
fileSize: I.preview.fileSize
|
1245
1245
|
}));
|
1246
1246
|
});
|
1247
1247
|
}
|
1248
1248
|
}
|
1249
1249
|
}
|
1250
|
-
},
|
1250
|
+
}, L = () => {
|
1251
1251
|
A(), M.value = void 0;
|
1252
1252
|
};
|
1253
|
-
return
|
1253
|
+
return ie(() => {
|
1254
1254
|
window.addEventListener("paste", j);
|
1255
|
-
}), (
|
1255
|
+
}), (_, x) => (r(), u("div", qs, [
|
1256
1256
|
o("div", {
|
1257
|
-
id: "chat-input-reply-line-" +
|
1257
|
+
id: "chat-input-reply-line-" + E(f),
|
1258
1258
|
class: "chat-input__reply-line"
|
1259
1259
|
}, null, 8, Hs),
|
1260
1260
|
o("div", {
|
1261
|
-
id: "chat-input-file-line-" +
|
1261
|
+
id: "chat-input-file-line-" + E(f),
|
1262
1262
|
class: "chat-input__file-line"
|
1263
1263
|
}, null, 8, Ws),
|
1264
1264
|
o("div", Ks, [
|
1265
1265
|
Ae(o("textarea", {
|
1266
|
-
disabled: e.state == "disabled" ||
|
1266
|
+
disabled: e.state == "disabled" || E(s)().isRecording,
|
1267
1267
|
ref_key: "refInput",
|
1268
|
-
ref:
|
1269
|
-
"onUpdate:modelValue":
|
1268
|
+
ref: g,
|
1269
|
+
"onUpdate:modelValue": x[0] || (x[0] = (C) => E(s)().text = C),
|
1270
1270
|
class: "chat-input__input",
|
1271
|
-
placeholder:
|
1272
|
-
onKeydown: Jn(
|
1271
|
+
placeholder: E(pe)("component.ChatInput.InputPlaceholder"),
|
1272
|
+
onKeydown: Jn(V, ["enter"]),
|
1273
1273
|
onInput: h
|
1274
1274
|
}, null, 40, Js), [
|
1275
|
-
[lt,
|
1275
|
+
[lt, E(s)().text]
|
1276
1276
|
]),
|
1277
1277
|
o("button", {
|
1278
|
-
class:
|
1279
|
-
disabled:
|
1280
|
-
onClick:
|
1281
|
-
},
|
1278
|
+
class: O(["chat-input__button", { "chat-input__button-disabled": y.value }]),
|
1279
|
+
disabled: E(s)().isRecording,
|
1280
|
+
onClick: S
|
1281
|
+
}, x[1] || (x[1] = [
|
1282
1282
|
o("span", { class: "pi pi-send" }, null, -1)
|
1283
1283
|
]), 10, Gs)
|
1284
1284
|
]),
|
1285
1285
|
o("div", Zs, [
|
1286
|
-
ne(
|
1286
|
+
ne(_.$slots, "buttons", {}, void 0, !0)
|
1287
1287
|
]),
|
1288
|
-
|
1288
|
+
E(s)().file ? (r(), B(de, {
|
1289
1289
|
key: 0,
|
1290
|
-
to: "#chat-input-file-line-" +
|
1290
|
+
to: "#chat-input-file-line-" + E(f)
|
1291
1291
|
}, [
|
1292
1292
|
M.value ? (r(), B(Vt, {
|
1293
1293
|
key: 0,
|
1294
1294
|
"file-info": M.value,
|
1295
|
-
onReset:
|
1295
|
+
onReset: L
|
1296
1296
|
}, null, 8, ["file-info"])) : v("", !0)
|
1297
1297
|
], 8, ["to"])) : v("", !0)
|
1298
1298
|
]));
|
1299
1299
|
}
|
1300
|
-
}),
|
1300
|
+
}), Mg = /* @__PURE__ */ R(Xs, [["__scopeId", "data-v-35728517"]]), ei = { class: "chat-list" }, ti = { class: "chat-list__title" }, ni = {
|
1301
1301
|
key: 0,
|
1302
1302
|
class: "pi pi-minus"
|
1303
1303
|
}, fi = {
|
@@ -1325,23 +1325,23 @@ const ga = (e) => {
|
|
1325
1325
|
const n = e, f = t, a = b(""), s = b(!1), i = b(), l = () => {
|
1326
1326
|
s.value = !1;
|
1327
1327
|
}, c = () => {
|
1328
|
-
const p =
|
1328
|
+
const p = E(i);
|
1329
1329
|
p.scrollHeight - p.scrollTop - p.clientHeight <= 0 && f("loadMoreChats");
|
1330
1330
|
}, A = (p) => {
|
1331
1331
|
n.chats.forEach((h) => {
|
1332
|
-
h.isSelected = !1, h.dialogs && h.dialogs.forEach((
|
1333
|
-
|
1332
|
+
h.isSelected = !1, h.dialogs && h.dialogs.forEach((V) => {
|
1333
|
+
V.isSelected = !1;
|
1334
1334
|
});
|
1335
|
-
}), p.dialog &&
|
1335
|
+
}), p.dialog && d(p.dialog);
|
1336
1336
|
const y = n.chats.find((h) => h.chatId === p.chat.chatId);
|
1337
1337
|
y.isSelected = !0, f("select", p);
|
1338
|
-
},
|
1338
|
+
}, d = (p) => {
|
1339
1339
|
n.chats.forEach((y) => {
|
1340
1340
|
y.isSelected = !1, y.dialogs && y.dialogs.forEach((h) => {
|
1341
1341
|
h.isSelected = !1, h.dialogId == p.dialogId && (h.isSelected = !0);
|
1342
1342
|
});
|
1343
1343
|
});
|
1344
|
-
},
|
1344
|
+
}, g = () => n.chats.toSorted((p, y) => {
|
1345
1345
|
if (Number(p["lastActivity.timestamp"]) > Number(y["lastActivity.timestamp"])) return -1;
|
1346
1346
|
if (Number(p["lastActivity.timestamp"]) < Number(y["lastActivity.timestamp"])) return 1;
|
1347
1347
|
if (Number(p["lastActivity.timestamp"]) == Number(y["lastActivity.timestamp"])) return 0;
|
@@ -1357,7 +1357,7 @@ const ga = (e) => {
|
|
1357
1357
|
class: "chat-list__title-container",
|
1358
1358
|
onMouseleave: l
|
1359
1359
|
}, [
|
1360
|
-
o("h2", ti,
|
1360
|
+
o("h2", ti, T(E(pe)("component.ChatList.Title")), 1),
|
1361
1361
|
e.actions.length ? (r(), u("button", {
|
1362
1362
|
key: 0,
|
1363
1363
|
class: "chat-list__button-actions",
|
@@ -1365,9 +1365,9 @@ const ga = (e) => {
|
|
1365
1365
|
}, [
|
1366
1366
|
s.value ? (r(), u("span", ni)) : (r(), u("span", fi))
|
1367
1367
|
])) : v("", !0),
|
1368
|
-
F(
|
1368
|
+
F(X, null, {
|
1369
1369
|
default: K(() => [
|
1370
|
-
s.value && e.actions ? (r(), B(
|
1370
|
+
s.value && e.actions ? (r(), B(E($e), {
|
1371
1371
|
key: 0,
|
1372
1372
|
actions: e.actions,
|
1373
1373
|
class: "chat-list__context-menu",
|
@@ -1378,7 +1378,7 @@ const ga = (e) => {
|
|
1378
1378
|
})
|
1379
1379
|
], 32),
|
1380
1380
|
ne(p.$slots, "sidebar", {}, void 0, !0),
|
1381
|
-
e.filterEnabled ? (r(), B(
|
1381
|
+
e.filterEnabled ? (r(), B(E(ho), {
|
1382
1382
|
key: 0,
|
1383
1383
|
class: "chat-list__filter",
|
1384
1384
|
onUpdate: m
|
@@ -1390,7 +1390,7 @@ const ga = (e) => {
|
|
1390
1390
|
onScroll: c
|
1391
1391
|
}, [
|
1392
1392
|
o("div", ai, [
|
1393
|
-
(r(!0), u(q, null, te(
|
1393
|
+
(r(!0), u(q, null, te(g().filter((h) => h.isFixedTop), (h) => (r(), B(E(zn), {
|
1394
1394
|
key: h.chatId,
|
1395
1395
|
class: "chat-list__item",
|
1396
1396
|
chat: h,
|
@@ -1399,7 +1399,7 @@ const ga = (e) => {
|
|
1399
1399
|
}, null, 8, ["chat"]))), 128))
|
1400
1400
|
]),
|
1401
1401
|
o("div", si, [
|
1402
|
-
(r(!0), u(q, null, te(
|
1402
|
+
(r(!0), u(q, null, te(g().filter((h) => !h.isFixedBottom && !h.isFixedTop), (h) => (r(), B(E(zn), {
|
1403
1403
|
key: h.chatId,
|
1404
1404
|
class: "chat-list__item",
|
1405
1405
|
chat: h,
|
@@ -1408,7 +1408,7 @@ const ga = (e) => {
|
|
1408
1408
|
}, null, 8, ["chat"]))), 128))
|
1409
1409
|
]),
|
1410
1410
|
o("div", ii, [
|
1411
|
-
(r(!0), u(q, null, te(
|
1411
|
+
(r(!0), u(q, null, te(g().filter((h) => h.isFixedBottom), (h) => (r(), B(E(zn), {
|
1412
1412
|
key: h.chatId,
|
1413
1413
|
class: "chat-list__item",
|
1414
1414
|
chat: h,
|
@@ -1419,7 +1419,7 @@ const ga = (e) => {
|
|
1419
1419
|
], 544)
|
1420
1420
|
]));
|
1421
1421
|
}
|
1422
|
-
},
|
1422
|
+
}, _g = /* @__PURE__ */ R(oi, [["__scopeId", "data-v-94ceeb08"]]), li = { class: "keyboard__container" }, ri = ["onClick"], Ai = /* @__PURE__ */ W({
|
1423
1423
|
__name: "MessageKeyboard",
|
1424
1424
|
props: {
|
1425
1425
|
keyboard: {
|
@@ -1436,9 +1436,9 @@ const ga = (e) => {
|
|
1436
1436
|
(r(!0), u(q, null, te(e.keyboard, (A) => (r(), u("div", {
|
1437
1437
|
class: "keyboard__key",
|
1438
1438
|
style: se({ "box-shadow": "0px 0px 10px 5px " + A.color }),
|
1439
|
-
onClick: (
|
1439
|
+
onClick: (d) => i(A)
|
1440
1440
|
}, [
|
1441
|
-
o("p", null,
|
1441
|
+
o("p", null, T(A.text), 1)
|
1442
1442
|
], 12, ri))), 256))
|
1443
1443
|
]));
|
1444
1444
|
}
|
@@ -1484,15 +1484,15 @@ const ga = (e) => {
|
|
1484
1484
|
"keyboardAction"
|
1485
1485
|
],
|
1486
1486
|
setup(e, { emit: t }) {
|
1487
|
-
const n = b(), f = b(), a = b(), s = b(!1), i = b(!1), l = e, c = ee("chatAppId"), { setReply: A, getMessage:
|
1488
|
-
|
1489
|
-
}, p = (
|
1490
|
-
const
|
1491
|
-
let
|
1492
|
-
a.value && (
|
1493
|
-
const
|
1494
|
-
U <
|
1495
|
-
}, y = (
|
1487
|
+
const n = b(), f = b(), a = b(), s = b(!1), i = b(!1), l = e, c = ee("chatAppId"), { setReply: A, getMessage: d } = Ie(c), g = t, m = Q(() => !!(i.value && l.objects.length > 0 && l.objects[l.objects.length - 1].keyboard)), M = (k) => {
|
1488
|
+
g("keyboardAction", k);
|
1489
|
+
}, p = (k = !0) => {
|
1490
|
+
const N = E(f);
|
1491
|
+
let w = 0;
|
1492
|
+
a.value && (w = a.value.$el.clientHeight);
|
1493
|
+
const I = 100, U = N.scrollHeight - N.scrollTop - N.clientHeight;
|
1494
|
+
U < I + w ? (s.value = !1, i.value = !0) : (s.value = !0, i.value = !1), N.scrollTop === 0 && k && g("loadMore"), U <= 0 && k && g("loadMoreDown");
|
1495
|
+
}, y = (k) => ({
|
1496
1496
|
"message.text": f1,
|
1497
1497
|
"message.image": Wu,
|
1498
1498
|
"message.file": Cu,
|
@@ -1502,94 +1502,94 @@ const ga = (e) => {
|
|
1502
1502
|
"message.system": ld,
|
1503
1503
|
"system.date": T1,
|
1504
1504
|
"message.typing": Gf
|
1505
|
-
})[
|
1505
|
+
})[k];
|
1506
1506
|
function h() {
|
1507
1507
|
et(function() {
|
1508
|
-
const
|
1509
|
-
|
1508
|
+
const k = E(f);
|
1509
|
+
k.scrollTop = k.scrollHeight;
|
1510
1510
|
});
|
1511
1511
|
}
|
1512
|
-
function
|
1513
|
-
|
1512
|
+
function V() {
|
1513
|
+
g("forceScrollToBottom"), h();
|
1514
1514
|
}
|
1515
|
-
|
1515
|
+
G(
|
1516
1516
|
() => l.scrollToBottom,
|
1517
1517
|
() => {
|
1518
1518
|
l.scrollToBottom && h();
|
1519
1519
|
},
|
1520
1520
|
{ immediate: !0 }
|
1521
1521
|
);
|
1522
|
-
const
|
1523
|
-
|
1524
|
-
}, j = (
|
1525
|
-
|
1526
|
-
},
|
1527
|
-
l.enableDoubleClickReply && (
|
1528
|
-
messageId:
|
1529
|
-
type:
|
1530
|
-
text:
|
1531
|
-
filename:
|
1532
|
-
url:
|
1522
|
+
const S = (k) => {
|
1523
|
+
g("messageAction", k);
|
1524
|
+
}, j = (k) => {
|
1525
|
+
g("clickRepliedMessage", k);
|
1526
|
+
}, L = (k, N) => {
|
1527
|
+
l.enableDoubleClickReply && (k == null || k.preventDefault(), N.type.indexOf("system") == -1 && N.type.indexOf("typing") == -1 && A({
|
1528
|
+
messageId: N.messageId,
|
1529
|
+
type: N.type,
|
1530
|
+
text: N.text,
|
1531
|
+
filename: N.filename,
|
1532
|
+
url: N.url
|
1533
1533
|
}));
|
1534
|
-
},
|
1535
|
-
|
1536
|
-
|
1534
|
+
}, _ = (k) => {
|
1535
|
+
k.forEach((N) => {
|
1536
|
+
N.isIntersecting && g("messageVisible", JSON.parse(N.target.id));
|
1537
1537
|
});
|
1538
|
-
},
|
1538
|
+
}, x = {
|
1539
1539
|
root: document.getElementById("feed-container-" + c),
|
1540
1540
|
rootMargin: "5px",
|
1541
1541
|
threshold: 0
|
1542
|
-
}, C = new IntersectionObserver(
|
1543
|
-
return
|
1542
|
+
}, C = new IntersectionObserver(_, x);
|
1543
|
+
return G(
|
1544
1544
|
() => l.objects,
|
1545
1545
|
() => {
|
1546
1546
|
et(() => {
|
1547
|
-
p(!1), n.value = document.querySelectorAll(".tracking-message"), n.value.forEach((
|
1547
|
+
p(!1), n.value = document.querySelectorAll(".tracking-message"), n.value.forEach((k) => C.observe(k));
|
1548
1548
|
});
|
1549
1549
|
},
|
1550
1550
|
{ immediate: !0 }
|
1551
|
-
),
|
1551
|
+
), G(
|
1552
1552
|
() => l.scrollTo,
|
1553
1553
|
() => {
|
1554
|
-
var
|
1554
|
+
var k;
|
1555
1555
|
if (l.scrollTo) {
|
1556
|
-
const
|
1557
|
-
let
|
1558
|
-
|
1556
|
+
const N = l.scrollTo;
|
1557
|
+
let w = document.getElementById(N), I = document.getElementById("feed-container-" + c);
|
1558
|
+
w instanceof HTMLElement && I instanceof HTMLElement && (I.scrollTop = w.offsetTop + w.clientHeight / 2 - I.clientHeight / 2), (k = document.getElementById(N)) == null || k.children[0].classList.add("focused-message"), setTimeout(() => {
|
1559
1559
|
var U;
|
1560
|
-
(U = document.getElementById(
|
1560
|
+
(U = document.getElementById(N)) == null || U.children[0].classList.remove("focused-message");
|
1561
1561
|
}, 2e3);
|
1562
1562
|
}
|
1563
1563
|
}
|
1564
|
-
), (
|
1564
|
+
), (k, N) => (r(), u(q, null, [
|
1565
1565
|
o("div", {
|
1566
1566
|
ref_key: "refFeed",
|
1567
1567
|
ref: f,
|
1568
1568
|
class: "message-feed",
|
1569
|
-
onScroll:
|
1570
|
-
id: "feed-container-" +
|
1569
|
+
onScroll: N[0] || (N[0] = (w) => p()),
|
1570
|
+
id: "feed-container-" + E(c)
|
1571
1571
|
}, [
|
1572
|
-
(r(!0), u(q, null, te(e.objects, (
|
1573
|
-
onDblclick: (
|
1574
|
-
id: JSON.stringify(
|
1572
|
+
(r(!0), u(q, null, te(e.objects, (w) => (r(), u("div", {
|
1573
|
+
onDblclick: (I) => L(I, w),
|
1574
|
+
id: JSON.stringify(w),
|
1575
1575
|
class: "tracking-message"
|
1576
1576
|
}, [
|
1577
|
-
(r(), B(Xf(y(
|
1578
|
-
key:
|
1577
|
+
(r(), B(Xf(y(w.type)), {
|
1578
|
+
key: w.messageId,
|
1579
1579
|
class: "message-feed__message",
|
1580
|
-
message:
|
1581
|
-
onAction:
|
1580
|
+
message: w,
|
1581
|
+
onAction: S,
|
1582
1582
|
onReply: j
|
1583
1583
|
}, null, 40, ["message"]))
|
1584
1584
|
], 40, di))), 256)),
|
1585
|
-
e.typing ? (r(), B(
|
1585
|
+
e.typing ? (r(), B(E(Gf), {
|
1586
1586
|
key: 0,
|
1587
1587
|
message: {
|
1588
1588
|
subText: e.typing.title,
|
1589
1589
|
avatar: e.typing.avatar
|
1590
1590
|
}
|
1591
1591
|
}, null, 8, ["message"])) : v("", !0),
|
1592
|
-
F(
|
1592
|
+
F(X, null, {
|
1593
1593
|
default: K(() => [
|
1594
1594
|
m.value ? (r(), B(ci, {
|
1595
1595
|
key: 0,
|
@@ -1602,32 +1602,32 @@ const ga = (e) => {
|
|
1602
1602
|
]),
|
1603
1603
|
_: 1
|
1604
1604
|
}),
|
1605
|
-
F(
|
1605
|
+
F(X, null, {
|
1606
1606
|
default: K(() => [
|
1607
1607
|
s.value ? (r(), u("button", {
|
1608
1608
|
key: 0,
|
1609
1609
|
class: "message-feed__button-down",
|
1610
|
-
onClick:
|
1610
|
+
onClick: V
|
1611
1611
|
}, [
|
1612
|
-
e.buttonParams ? (r(), u("div", gi,
|
1613
|
-
|
1612
|
+
e.buttonParams ? (r(), u("div", gi, T(e.buttonParams.unreadAmount), 1)) : v("", !0),
|
1613
|
+
N[1] || (N[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
1614
1614
|
])) : v("", !0)
|
1615
1615
|
]),
|
1616
1616
|
_: 1
|
1617
1617
|
})
|
1618
1618
|
], 40, ui),
|
1619
|
-
|
1619
|
+
E(d)().reply ? (r(), B(de, {
|
1620
1620
|
key: 0,
|
1621
|
-
to: "#chat-input-reply-line-" +
|
1621
|
+
to: "#chat-input-reply-line-" + E(c)
|
1622
1622
|
}, [
|
1623
|
-
F(
|
1624
|
-
message:
|
1623
|
+
F(E(ct), {
|
1624
|
+
message: E(d)().reply,
|
1625
1625
|
class: "chat-input-reply"
|
1626
1626
|
}, null, 8, ["message"])
|
1627
1627
|
], 8, ["to"])) : v("", !0)
|
1628
1628
|
], 64));
|
1629
1629
|
}
|
1630
|
-
}),
|
1630
|
+
}), Ig = /* @__PURE__ */ R(mi, [["__scopeId", "data-v-8b5a57bb"]]), pi = {
|
1631
1631
|
key: 0,
|
1632
1632
|
class: "profile__container"
|
1633
1633
|
}, hi = {
|
@@ -1654,12 +1654,12 @@ const ga = (e) => {
|
|
1654
1654
|
width: "48"
|
1655
1655
|
}, null, 8, vi)
|
1656
1656
|
])) : v("", !0),
|
1657
|
-
o("h2", yi,
|
1658
|
-
o("p", bi,
|
1659
|
-
o("p", Mi,
|
1657
|
+
o("h2", yi, T(e.user.name), 1),
|
1658
|
+
o("p", bi, T(e.user.email), 1),
|
1659
|
+
o("p", Mi, T(e.user.phone), 1)
|
1660
1660
|
])) : v("", !0);
|
1661
1661
|
}
|
1662
|
-
},
|
1662
|
+
}, wg = /* @__PURE__ */ R(_i, [["__scopeId", "data-v-6a09e430"]]), Ii = ["id"], wi = {
|
1663
1663
|
__name: "ButtonContextMenu",
|
1664
1664
|
props: {
|
1665
1665
|
actions: {
|
@@ -1700,12 +1700,12 @@ const ga = (e) => {
|
|
1700
1700
|
n.disabled || (n.mode == "click" && (s.value.$el.style.display = "inherit"), a("buttonClick"));
|
1701
1701
|
}, A = () => {
|
1702
1702
|
n.mode == "hover" && !n.disabled && (s.value.$el.style.display = "inherit");
|
1703
|
-
},
|
1703
|
+
}, d = () => {
|
1704
1704
|
n.mode == "hover" && (s.value.$el.style.display = "none");
|
1705
|
-
},
|
1705
|
+
}, g = (m) => {
|
1706
1706
|
n.mode == "click" && i.value && !i.value.contains(m.target) && (s.value.$el.style.display = "none");
|
1707
1707
|
};
|
1708
|
-
return
|
1708
|
+
return ie(() => {
|
1709
1709
|
var y, h;
|
1710
1710
|
const m = {
|
1711
1711
|
top: {
|
@@ -1726,39 +1726,39 @@ const ga = (e) => {
|
|
1726
1726
|
}
|
1727
1727
|
};
|
1728
1728
|
let M, p;
|
1729
|
-
n.menuSide == "top" && (M = (y = document.getElementById("container-" + f)) == null ? void 0 : y.offsetWidth, p = (h = document.getElementById("context-menu-" + f)) == null ? void 0 : h.offsetHeight, s.value.$el.style.left = m[n.menuSide].w * M + "px"), n.menuSide == "bottom" && (M = document.getElementById("context-menu-" + f).offsetWidth, p = document.getElementById("container-" + f).offsetHeight, s.value.$el.style.right = m[n.menuSide].w * M + "px"), n.menuSide == "left" && (M = document.getElementById("container-" + f).offsetWidth, p = document.getElementById("context-menu-" + f).offsetHeight, s.value.$el.style.right = m[n.menuSide].w * M + "px"), n.menuSide == "right" && (M = document.getElementById("container-" + f).offsetWidth, p = document.getElementById("context-menu-" + f).offsetHeight, s.value.$el.style.left = m[n.menuSide].w * M + "px"), s.value.$el.style.top = m[n.menuSide].h * p + "px", s.value.$el.style.display = "none", document.addEventListener("click",
|
1729
|
+
n.menuSide == "top" && (M = (y = document.getElementById("container-" + f)) == null ? void 0 : y.offsetWidth, p = (h = document.getElementById("context-menu-" + f)) == null ? void 0 : h.offsetHeight, s.value.$el.style.left = m[n.menuSide].w * M + "px"), n.menuSide == "bottom" && (M = document.getElementById("context-menu-" + f).offsetWidth, p = document.getElementById("container-" + f).offsetHeight, s.value.$el.style.right = m[n.menuSide].w * M + "px"), n.menuSide == "left" && (M = document.getElementById("container-" + f).offsetWidth, p = document.getElementById("context-menu-" + f).offsetHeight, s.value.$el.style.right = m[n.menuSide].w * M + "px"), n.menuSide == "right" && (M = document.getElementById("container-" + f).offsetWidth, p = document.getElementById("context-menu-" + f).offsetHeight, s.value.$el.style.left = m[n.menuSide].w * M + "px"), s.value.$el.style.top = m[n.menuSide].h * p + "px", s.value.$el.style.display = "none", document.addEventListener("click", g);
|
1730
1730
|
}), Ke(() => {
|
1731
|
-
document.removeEventListener("click",
|
1731
|
+
document.removeEventListener("click", g);
|
1732
1732
|
}), (m, M) => (r(), u("div", {
|
1733
|
-
id: "container-" +
|
1733
|
+
id: "container-" + E(f),
|
1734
1734
|
ref_key: "actionScope",
|
1735
1735
|
ref: i,
|
1736
1736
|
style: { position: "relative", width: "fit-content" }
|
1737
1737
|
}, [
|
1738
1738
|
o("div", {
|
1739
|
-
class:
|
1739
|
+
class: O(["button", {
|
1740
1740
|
"disabled-button": e.disabled
|
1741
1741
|
}]),
|
1742
1742
|
onClick: c,
|
1743
1743
|
onMouseover: A,
|
1744
|
-
onMouseout:
|
1744
|
+
onMouseout: d
|
1745
1745
|
}, [
|
1746
1746
|
o("span", {
|
1747
|
-
class:
|
1748
|
-
},
|
1747
|
+
class: O(e.buttonClass)
|
1748
|
+
}, T(e.buttonTitle), 3)
|
1749
1749
|
], 34),
|
1750
|
-
F(
|
1751
|
-
id: "context-menu-" +
|
1750
|
+
F(E($e), {
|
1751
|
+
id: "context-menu-" + E(f),
|
1752
1752
|
ref_key: "contextMenu",
|
1753
1753
|
ref: s,
|
1754
1754
|
actions: e.actions,
|
1755
1755
|
onMouseover: A,
|
1756
|
-
onMouseout:
|
1756
|
+
onMouseout: d,
|
1757
1757
|
onClick: l
|
1758
1758
|
}, null, 8, ["id", "actions"])
|
1759
1759
|
], 8, Ii));
|
1760
1760
|
}
|
1761
|
-
}, ma = /* @__PURE__ */ R(wi, [["__scopeId", "data-v-a89960f4"]]), ki = { key: 0 }, Ni = { key: 1 },
|
1761
|
+
}, ma = /* @__PURE__ */ R(wi, [["__scopeId", "data-v-a89960f4"]]), ki = { key: 0 }, Ni = { key: 1 }, kg = /* @__PURE__ */ W({
|
1762
1762
|
__name: "FileUploader",
|
1763
1763
|
props: {
|
1764
1764
|
filebumpUrl: {
|
@@ -1771,7 +1771,7 @@ const ga = (e) => {
|
|
1771
1771
|
},
|
1772
1772
|
emits: ["fileUploaded"],
|
1773
1773
|
setup(e, { emit: t }) {
|
1774
|
-
const n = e, f = b(""), a = b(), s = b(), i = ee("chatAppId"), { setMessageFile: l, resetMessageFile: c, getMessage: A } = Ie(i),
|
1774
|
+
const n = e, f = b(""), a = b(), s = b(), i = ee("chatAppId"), { setMessageFile: l, resetMessageFile: c, getMessage: A } = Ie(i), d = [
|
1775
1775
|
{
|
1776
1776
|
action: "audio/*",
|
1777
1777
|
title: "Аудио",
|
@@ -1792,14 +1792,14 @@ const ga = (e) => {
|
|
1792
1792
|
title: "Файл",
|
1793
1793
|
prime: "file"
|
1794
1794
|
}
|
1795
|
-
],
|
1795
|
+
], g = Q(() => !A().file), m = () => {
|
1796
1796
|
c(), s.value = void 0, f.value = "";
|
1797
1797
|
}, M = async () => {
|
1798
|
-
var h,
|
1798
|
+
var h, V;
|
1799
1799
|
if (m(), (h = a.value) != null && h.files) {
|
1800
1800
|
f.value = "uploading";
|
1801
|
-
const
|
1802
|
-
await xt(
|
1801
|
+
const S = typeof n.filebumpUrl == "string" ? n.filebumpUrl : null;
|
1802
|
+
await xt(S, (V = a.value) == null ? void 0 : V.files[0]).then((j) => {
|
1803
1803
|
f.value = j.status, j.status == "success" && (l({
|
1804
1804
|
url: j.url,
|
1805
1805
|
name: j.name,
|
@@ -1816,22 +1816,22 @@ const ga = (e) => {
|
|
1816
1816
|
});
|
1817
1817
|
}
|
1818
1818
|
}, p = (h) => {
|
1819
|
-
a.value &&
|
1819
|
+
a.value && g && (a.value.accept = h.action, a.value.click());
|
1820
1820
|
}, y = () => {
|
1821
|
-
a.value &&
|
1821
|
+
a.value && g && n.state == "active" && a.value.click();
|
1822
1822
|
};
|
1823
|
-
return (h,
|
1824
|
-
f.value === "uploading" ? (r(), u("div", ki,
|
1823
|
+
return (h, V) => (r(), u(q, null, [
|
1824
|
+
f.value === "uploading" ? (r(), u("div", ki, V[0] || (V[0] = [
|
1825
1825
|
o("p", null, "Загрузка файла...", -1)
|
1826
|
-
]))) : f.value === "error" ? (r(), u("div", Ni,
|
1826
|
+
]))) : f.value === "error" ? (r(), u("div", Ni, V[1] || (V[1] = [
|
1827
1827
|
o("p", null, "Ошибка при загрузке файла.", -1)
|
1828
|
-
]))) :
|
1828
|
+
]))) : E(A)().isRecording ? v("", !0) : (r(), B(ma, {
|
1829
1829
|
key: 2,
|
1830
|
-
actions:
|
1830
|
+
actions: d,
|
1831
1831
|
mode: "hover",
|
1832
1832
|
"button-class": "pi pi-file-arrow-up",
|
1833
1833
|
"menu-side": "top",
|
1834
|
-
disabled: !
|
1834
|
+
disabled: !g.value || e.state == "disabled",
|
1835
1835
|
onClick: p,
|
1836
1836
|
onButtonClick: y
|
1837
1837
|
}, null, 8, ["disabled"])),
|
@@ -1842,9 +1842,9 @@ const ga = (e) => {
|
|
1842
1842
|
type: "file",
|
1843
1843
|
onChange: M
|
1844
1844
|
}, null, 544),
|
1845
|
-
|
1845
|
+
E(A)().file ? (r(), B(de, {
|
1846
1846
|
key: 3,
|
1847
|
-
to: "#chat-input-file-line-" +
|
1847
|
+
to: "#chat-input-file-line-" + E(i)
|
1848
1848
|
}, [
|
1849
1849
|
s.value ? (r(), B(Vt, {
|
1850
1850
|
key: 0,
|
@@ -1873,22 +1873,22 @@ const ga = (e) => {
|
|
1873
1873
|
}, i = (l) => {
|
1874
1874
|
document.getElementById(n).dataset.theme = l, f().theme = l;
|
1875
1875
|
};
|
1876
|
-
return
|
1876
|
+
return ie(() => {
|
1877
1877
|
const l = a();
|
1878
1878
|
i(l);
|
1879
1879
|
}), (l, c) => e.show ? (r(), u("div", Di, [
|
1880
1880
|
o("select", {
|
1881
1881
|
onChange: c[0] || (c[0] = (A) => s(A))
|
1882
1882
|
}, [
|
1883
|
-
(r(!0), u(q, null, te(t.themes, (A,
|
1884
|
-
key:
|
1883
|
+
(r(!0), u(q, null, te(t.themes, (A, d) => (r(), u("option", {
|
1884
|
+
key: d,
|
1885
1885
|
value: A.code,
|
1886
1886
|
selected: A.default === !0
|
1887
|
-
},
|
1887
|
+
}, T(A.name), 9, Ei))), 128))
|
1888
1888
|
], 32)
|
1889
1889
|
])) : v("", !0);
|
1890
1890
|
}
|
1891
|
-
},
|
1891
|
+
}, Ng = /* @__PURE__ */ R(Ti, [["__scopeId", "data-v-94e984d6"]]), ji = ["onClick"], xi = ["src", "alt"], Vi = { key: 1 }, Si = ["onClick"], Ci = ["src", "alt"], zi = { key: 1 }, Oi = {
|
1892
1892
|
__name: "SideBar",
|
1893
1893
|
props: {
|
1894
1894
|
sidebarItems: {
|
@@ -1912,20 +1912,20 @@ const ga = (e) => {
|
|
1912
1912
|
return c.length > 2 ? c.slice(0, 2).join(" ") : l;
|
1913
1913
|
};
|
1914
1914
|
return (l, c) => (r(), u("div", {
|
1915
|
-
class:
|
1915
|
+
class: O(["sidebar__container", { "sidebar-horizontal__container": e.horizontal }])
|
1916
1916
|
}, [
|
1917
1917
|
o("ul", {
|
1918
|
-
class:
|
1918
|
+
class: O(["sidebar__list", { "sidebar-horizontal__list": e.horizontal }])
|
1919
1919
|
}, [
|
1920
|
-
(r(!0), u(q, null, te(f.value.filter((A) => !A.isFixedBottom), (A,
|
1921
|
-
key:
|
1922
|
-
class:
|
1923
|
-
onClick: (
|
1920
|
+
(r(!0), u(q, null, te(f.value.filter((A) => !A.isFixedBottom), (A, d) => (r(), u("li", {
|
1921
|
+
key: d,
|
1922
|
+
class: O(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
|
1923
|
+
onClick: (g) => s(A.itemId)
|
1924
1924
|
}, [
|
1925
1925
|
o("img", {
|
1926
1926
|
src: A.icon,
|
1927
1927
|
alt: A.name,
|
1928
|
-
class:
|
1928
|
+
class: O(["sidebar__image", {
|
1929
1929
|
"sidebar__image--active": A.selected === !0,
|
1930
1930
|
"sidebar-horizontal__image": e.horizontal
|
1931
1931
|
}])
|
@@ -1933,22 +1933,22 @@ const ga = (e) => {
|
|
1933
1933
|
A.notificationCount ? (r(), u("span", {
|
1934
1934
|
key: 0,
|
1935
1935
|
style: se({ backgroundColor: A.notificationColor ? A.notificationColor : "red" })
|
1936
|
-
},
|
1937
|
-
A.name ? (r(), u("p", Vi,
|
1936
|
+
}, T(A.notificationCount > 99 ? "99+" : A.notificationCount), 5)) : v("", !0),
|
1937
|
+
A.name ? (r(), u("p", Vi, T(i(A.name)), 1)) : v("", !0)
|
1938
1938
|
], 10, ji))), 128))
|
1939
1939
|
], 2),
|
1940
1940
|
o("ul", {
|
1941
|
-
class:
|
1941
|
+
class: O(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": e.horizontal }])
|
1942
1942
|
}, [
|
1943
|
-
(r(!0), u(q, null, te(f.value.filter((A) => A.isFixedBottom), (A,
|
1944
|
-
key:
|
1945
|
-
class:
|
1946
|
-
onClick: (
|
1943
|
+
(r(!0), u(q, null, te(f.value.filter((A) => A.isFixedBottom), (A, d) => (r(), u("li", {
|
1944
|
+
key: d,
|
1945
|
+
class: O(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
|
1946
|
+
onClick: (g) => s(A.itemId)
|
1947
1947
|
}, [
|
1948
1948
|
o("img", {
|
1949
1949
|
src: A.icon,
|
1950
1950
|
alt: A.name,
|
1951
|
-
class:
|
1951
|
+
class: O(["sidebar__image", {
|
1952
1952
|
"sidebar__image--active": A.selected === !0,
|
1953
1953
|
"sidebar-horizontal__image": e.horizontal
|
1954
1954
|
}])
|
@@ -1956,13 +1956,13 @@ const ga = (e) => {
|
|
1956
1956
|
A.notificationCount ? (r(), u("span", {
|
1957
1957
|
key: 0,
|
1958
1958
|
style: se({ backgroundColor: A.notificationColor ? A.notificationColor : "red" })
|
1959
|
-
},
|
1960
|
-
A.name ? (r(), u("p", zi,
|
1959
|
+
}, T(A.notificationCount > 99 ? "99+" : A.notificationCount), 5)) : v("", !0),
|
1960
|
+
A.name ? (r(), u("p", zi, T(i(A.name)), 1)) : v("", !0)
|
1961
1961
|
], 10, Si))), 128))
|
1962
1962
|
], 2)
|
1963
1963
|
], 2));
|
1964
1964
|
}
|
1965
|
-
},
|
1965
|
+
}, Dg = /* @__PURE__ */ R(Oi, [["__scopeId", "data-v-794e9ba4"]]), Li = { class: "chat-panel" }, Ui = { class: "chat-panel__title-container" }, Bi = {
|
1966
1966
|
key: 0,
|
1967
1967
|
class: "chat-panel__title"
|
1968
1968
|
}, Ri = {
|
@@ -1978,7 +1978,7 @@ const ga = (e) => {
|
|
1978
1978
|
setup(e, { emit: t }) {
|
1979
1979
|
return (n, f) => (r(), u("div", Li, [
|
1980
1980
|
o("div", Ui, [
|
1981
|
-
e.title ? (r(), u("p", Bi,
|
1981
|
+
e.title ? (r(), u("p", Bi, T(e.title), 1)) : v("", !0),
|
1982
1982
|
o("button", {
|
1983
1983
|
class: "chat-panel__button-close",
|
1984
1984
|
onClick: f[0] || (f[0] = (a) => n.$emit("close-panel"))
|
@@ -1991,7 +1991,7 @@ const ga = (e) => {
|
|
1991
1991
|
])
|
1992
1992
|
]));
|
1993
1993
|
}
|
1994
|
-
},
|
1994
|
+
}, Eg = /* @__PURE__ */ R(Ri, [["__scopeId", "data-v-be32224f"]]), Qi = {
|
1995
1995
|
key: 0,
|
1996
1996
|
class: "channels__selected"
|
1997
1997
|
}, $i = ["src"], Yi = { class: "channels__title" }, Pi = {
|
@@ -2020,9 +2020,9 @@ const ga = (e) => {
|
|
2020
2020
|
const n = e, f = ee("chatAppId"), { getMessage: a } = Ie(f), s = t, l = b(n.channels.find((A) => A.type === "default")), c = (A) => {
|
2021
2021
|
l.value = A, s("selectChannel", l.value);
|
2022
2022
|
};
|
2023
|
-
return (A,
|
2023
|
+
return (A, d) => E(a)().isRecording ? v("", !0) : (r(), u("div", {
|
2024
2024
|
key: 0,
|
2025
|
-
class:
|
2025
|
+
class: O(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
|
2026
2026
|
}, [
|
2027
2027
|
l.value ? (r(), u("div", Qi, [
|
2028
2028
|
l.value.icon ? (r(), u("img", {
|
@@ -2030,8 +2030,8 @@ const ga = (e) => {
|
|
2030
2030
|
src: l.value.icon,
|
2031
2031
|
class: "channels__icon"
|
2032
2032
|
}, null, 8, $i)) : v("", !0),
|
2033
|
-
o("span", Yi,
|
2034
|
-
])) : (r(), u("span", Pi,
|
2033
|
+
o("span", Yi, T(l.value.title), 1)
|
2034
|
+
])) : (r(), u("span", Pi, T(E(pe)("component.ChannelSelector.Placeholder")), 1)),
|
2035
2035
|
F(ma, {
|
2036
2036
|
actions: e.channels,
|
2037
2037
|
mode: e.mode,
|
@@ -2042,13 +2042,13 @@ const ga = (e) => {
|
|
2042
2042
|
}, null, 8, ["actions", "mode", "disabled"])
|
2043
2043
|
], 2));
|
2044
2044
|
}
|
2045
|
-
},
|
2046
|
-
function
|
2045
|
+
}, Tg = /* @__PURE__ */ R(Fi, [["__scopeId", "data-v-fe3981e6"]]);
|
2046
|
+
function jg(e) {
|
2047
2047
|
if (!e || e === "") return;
|
2048
2048
|
const t = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), f = Math.floor((n - t) / 1e3), a = Math.floor(f / 60), s = Math.floor(a / 60), i = Math.floor(s / 24);
|
2049
2049
|
return i > 30 ? new Date(t).toLocaleDateString("ru-RU") : i > 0 ? `${i} ${i === 1 ? "день" : "дня"} назад` : s > 0 ? `${s} ${s === 1 ? "час" : "часа"} назад` : a > 0 ? `${a} ${a === 1 ? "минута" : "минуты"} назад` : f > 0 ? `${f} ${f === 1 ? "секунда" : "секунды"} назад` : "Только что";
|
2050
2050
|
}
|
2051
|
-
const
|
2051
|
+
const xg = (e, t = null) => {
|
2052
2052
|
const n = [];
|
2053
2053
|
let f = new Date(t * 1e3).toLocaleDateString();
|
2054
2054
|
for (let a = 0; a < e.length; a++) {
|
@@ -2062,7 +2062,7 @@ const Tg = (e, t = null) => {
|
|
2062
2062
|
}), f = i), n.push(s);
|
2063
2063
|
}
|
2064
2064
|
return n;
|
2065
|
-
},
|
2065
|
+
}, Vg = async () => {
|
2066
2066
|
try {
|
2067
2067
|
if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
|
2068
2068
|
const t = new Audio();
|
@@ -2071,7 +2071,7 @@ const Tg = (e, t = null) => {
|
|
2071
2071
|
} catch {
|
2072
2072
|
console.log("no audio permissions");
|
2073
2073
|
}
|
2074
|
-
},
|
2074
|
+
}, Sg = (e) => e.sort((t, n) => Number(t.timestamp) < Number(n.timestamp) ? -1 : Number(t.timestamp) > Number(n.timestamp) ? 1 : 0), rt = ["read", "received", "sent"], At = (e) => {
|
2075
2075
|
switch (e) {
|
2076
2076
|
case "read":
|
2077
2077
|
return "status--read";
|
@@ -2093,44 +2093,49 @@ const Tg = (e, t = null) => {
|
|
2093
2093
|
}
|
2094
2094
|
},
|
2095
2095
|
setup(e) {
|
2096
|
-
const t = ee("chatAppId"), { getTheme: n } = of(t), f = b(), a = b(), s =
|
2096
|
+
const t = ee("chatAppId"), { getTheme: n } = of(t), f = b(), a = b(), s = b(!1), i = e, l = Q(() => ({
|
2097
2097
|
tooltip__text: !0,
|
2098
|
-
[`tooltip--${
|
2099
|
-
})),
|
2098
|
+
[`tooltip--${i.position}`]: !0
|
2099
|
+
})), c = () => {
|
2100
2100
|
if (f.value && a.value) {
|
2101
|
-
const
|
2102
|
-
left: { top:
|
2103
|
-
right: { top:
|
2104
|
-
bottom: { top: (
|
2105
|
-
top: { top:
|
2106
|
-
},
|
2107
|
-
|
2101
|
+
const d = f.value.getBoundingClientRect(), g = {
|
2102
|
+
left: { top: d.top, left: (d == null ? void 0 : d.left) - 10 },
|
2103
|
+
right: { top: d.top, left: (d == null ? void 0 : d.left) + 10 },
|
2104
|
+
bottom: { top: (d == null ? void 0 : d.bottom) + 5, left: d == null ? void 0 : d.left },
|
2105
|
+
top: { top: d.top - (d.bottom - d.top) - 10, left: d == null ? void 0 : d.left }
|
2106
|
+
}, m = a.value;
|
2107
|
+
m.style.top = g[i.position].top + "px", m.style.left = g[i.position].left + "px", m.style.opacity = "1", m.style.visibility = "visible";
|
2108
2108
|
}
|
2109
|
-
},
|
2110
|
-
const
|
2111
|
-
|
2109
|
+
}, A = () => {
|
2110
|
+
const d = E(a);
|
2111
|
+
d && (d.style.top = "0", d.style.left = "0", d.style.opacity = "0", d.style.visibility = "hidden");
|
2112
2112
|
};
|
2113
|
-
return (
|
2113
|
+
return ie(() => {
|
2114
|
+
document.getElementById("float-windows-" + t) && (s.value = !0);
|
2115
|
+
}), (d, g) => (r(), u(q, null, [
|
2114
2116
|
o("div", {
|
2115
2117
|
class: "tooltip-wrapper",
|
2116
2118
|
ref_key: "container",
|
2117
2119
|
ref: f,
|
2118
|
-
onMouseover:
|
2119
|
-
onMouseout:
|
2120
|
+
onMouseover: c,
|
2121
|
+
onMouseout: A
|
2120
2122
|
}, [
|
2121
|
-
ne(
|
2123
|
+
ne(d.$slots, "default", {}, void 0, !0)
|
2122
2124
|
], 544),
|
2123
|
-
(r(), B(de, {
|
2125
|
+
s.value ? (r(), B(de, {
|
2126
|
+
key: 0,
|
2127
|
+
to: "#float-windows-" + E(t)
|
2128
|
+
}, [
|
2124
2129
|
o("span", {
|
2125
|
-
"data-theme":
|
2130
|
+
"data-theme": E(n)().theme ? E(n)().theme : null,
|
2126
2131
|
ref_key: "tooltip",
|
2127
2132
|
ref: a,
|
2128
|
-
class:
|
2129
|
-
},
|
2130
|
-
]))
|
2133
|
+
class: O(l.value)
|
2134
|
+
}, T(e.text), 11, qi)
|
2135
|
+
], 8, ["to"])) : v("", !0)
|
2131
2136
|
], 64));
|
2132
2137
|
}
|
2133
|
-
}), Lf = /* @__PURE__ */ R(Hi, [["__scopeId", "data-v-
|
2138
|
+
}), Lf = /* @__PURE__ */ R(Hi, [["__scopeId", "data-v-6b58a974"]]), Wi = { class: "chat-item__avatar-container" }, Ki = ["src"], Ji = {
|
2134
2139
|
key: 1,
|
2135
2140
|
class: "pi pi-user"
|
2136
2141
|
}, Gi = { class: "chat-item__info-container" }, Zi = { class: "chat-item__name" }, Xi = {
|
@@ -2157,7 +2162,7 @@ const Tg = (e, t = null) => {
|
|
2157
2162
|
}, oo = ["onClick"], lo = ["src"], ro = {
|
2158
2163
|
key: 1,
|
2159
2164
|
class: "dialog__icon pi pi-user"
|
2160
|
-
}, Ao = { class: "dialog__text-container" }, co = { class: "dialog__name" }, uo = { class: "dialog__time" }, go = {
|
2165
|
+
}, Ao = { class: "dialog__text-container" }, co = { class: "dialog__name" }, uo = { class: "dialog__time" }, go = /* @__PURE__ */ W({
|
2161
2166
|
__name: "ChatItem",
|
2162
2167
|
props: {
|
2163
2168
|
chat: {
|
@@ -2167,46 +2172,49 @@ const Tg = (e, t = null) => {
|
|
2167
2172
|
},
|
2168
2173
|
emits: ["select", "action"],
|
2169
2174
|
setup(e, { emit: t }) {
|
2170
|
-
const n = ee("chatAppId"), f = e, a = b(), s = b(), i =
|
2171
|
-
|
2172
|
-
},
|
2173
|
-
|
2174
|
-
},
|
2175
|
-
|
2176
|
-
},
|
2177
|
-
if (Number(
|
2178
|
-
if (Number(
|
2179
|
-
if (Number(
|
2180
|
-
}),
|
2181
|
-
|
2182
|
-
|
2175
|
+
const n = ee("chatAppId"), f = e, a = b(), s = b(), i = b(!1), l = t, c = (N) => {
|
2176
|
+
N.target instanceof HTMLElement && N.target.id != "noSelectButton" && !f.chat.dialogs && l("select", { chat: f.chat, dialog: null }), f.chat.dialogs && (f.chat.dialogsExpanded = !f.chat.dialogsExpanded);
|
2177
|
+
}, A = (N) => {
|
2178
|
+
l("select", { chat: f.chat, dialog: N });
|
2179
|
+
}, d = () => f.chat.isSelected ? "chat-item__selected" : "", g = (N) => N.isSelected ? "dialog__selected" : "", m = (N) => {
|
2180
|
+
p.value = !1, M.value = !1, l("action", { chat: f.chat, ...N });
|
2181
|
+
}, M = b(!1), p = b(!1), y = () => f.chat.dialogs.toSorted((N, w) => {
|
2182
|
+
if (Number(N["lastActivity.timestamp"]) > Number(w["lastActivity.timestamp"])) return -1;
|
2183
|
+
if (Number(N["lastActivity.timestamp"]) < Number(w["lastActivity.timestamp"])) return 1;
|
2184
|
+
if (Number(N["lastActivity.timestamp"]) == Number(w["lastActivity.timestamp"])) return 0;
|
2185
|
+
}), h = () => {
|
2186
|
+
M.value = !M.value, et(() => {
|
2187
|
+
V();
|
2183
2188
|
});
|
2184
|
-
},
|
2189
|
+
}, V = () => {
|
2185
2190
|
if (a.value && s.value) {
|
2186
|
-
const
|
2187
|
-
|
2191
|
+
const N = a.value.getBoundingClientRect(), w = s.value.$el;
|
2192
|
+
w.style.top = (N == null ? void 0 : N.bottom) + "px", w.style.left = (N == null ? void 0 : N.left) - w.getBoundingClientRect().width / 1.5 + "px";
|
2188
2193
|
}
|
2189
|
-
},
|
2190
|
-
M.value = !
|
2191
|
-
},
|
2192
|
-
|
2193
|
-
|
2194
|
-
|
2195
|
-
|
2196
|
-
|
2194
|
+
}, S = () => {
|
2195
|
+
p.value = !0, M.value = !1;
|
2196
|
+
}, j = (N) => {
|
2197
|
+
const w = N.relatedTarget;
|
2198
|
+
p.value = !1, (!w || w.className !== "context-menu__list") && (M.value = !1);
|
2199
|
+
}, L = Q(() => At(f.chat["lastMessage.status"]));
|
2200
|
+
let _;
|
2201
|
+
const x = b(0), C = [pe("component.ChatItem.typing") + ".", pe("component.ChatItem.typing") + "..", pe("component.ChatItem.typing") + "..."], k = Q(() => f.chat.typing ? C[x.value] : f.chat.lastMessage);
|
2202
|
+
return G(
|
2197
2203
|
() => f.chat.typing,
|
2198
2204
|
() => {
|
2199
|
-
f.chat.typing ?
|
2200
|
-
|
2201
|
-
}, 1e3) : (
|
2205
|
+
f.chat.typing ? _ = setInterval(() => {
|
2206
|
+
x.value < 2 ? x.value += 1 : x.value = 0;
|
2207
|
+
}, 1e3) : (x.value = 0, clearInterval(_));
|
2202
2208
|
},
|
2203
2209
|
{ immediate: !0 }
|
2204
|
-
), (
|
2210
|
+
), ie(() => {
|
2211
|
+
document.getElementById("float-windows-" + n) && (i.value = !0);
|
2212
|
+
}), (N, w) => (r(), u("div", null, [
|
2205
2213
|
o("div", {
|
2206
|
-
class:
|
2207
|
-
onMouseenter:
|
2208
|
-
onMouseleave:
|
2209
|
-
onClick:
|
2214
|
+
class: O(["chat-item__container", d()]),
|
2215
|
+
onMouseenter: S,
|
2216
|
+
onMouseleave: j,
|
2217
|
+
onClick: c
|
2210
2218
|
}, [
|
2211
2219
|
o("div", Wi, [
|
2212
2220
|
o("span", {
|
@@ -2226,7 +2234,7 @@ const Tg = (e, t = null) => {
|
|
2226
2234
|
position: "bottom"
|
2227
2235
|
}, {
|
2228
2236
|
default: K(() => [
|
2229
|
-
o("div", Zi,
|
2237
|
+
o("div", Zi, T(e.chat.name), 1)
|
2230
2238
|
]),
|
2231
2239
|
_: 1
|
2232
2240
|
}, 8, ["text"]),
|
@@ -2235,38 +2243,38 @@ const Tg = (e, t = null) => {
|
|
2235
2243
|
position: "bottom"
|
2236
2244
|
}, {
|
2237
2245
|
default: K(() => [
|
2238
|
-
e.chat.lastMessage || e.chat.typing ? (r(), u("div", Xi,
|
2246
|
+
e.chat.lastMessage || e.chat.typing ? (r(), u("div", Xi, T(k.value), 1)) : v("", !0)
|
2239
2247
|
]),
|
2240
2248
|
_: 1
|
2241
2249
|
}, 8, ["text"])
|
2242
2250
|
]),
|
2243
2251
|
o("div", eo, [
|
2244
|
-
e.chat["lastActivity.time"] && !
|
2252
|
+
e.chat["lastActivity.time"] && !p.value ? (r(), u("div", to, T(e.chat["lastActivity.time"]), 1)) : v("", !0),
|
2245
2253
|
e.chat.countUnread > 0 ? (r(), u("div", {
|
2246
2254
|
key: 1,
|
2247
2255
|
class: "chat-item__unread",
|
2248
2256
|
style: se({ backgroundColor: e.chat.colorUnread ? e.chat.colorUnread : null })
|
2249
|
-
},
|
2250
|
-
|
2257
|
+
}, T(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 5)) : v("", !0),
|
2258
|
+
p.value && e.chat.actions ? (r(), u("button", {
|
2251
2259
|
key: 2,
|
2252
2260
|
ref_key: "refMenuButton",
|
2253
2261
|
ref: a,
|
2254
2262
|
class: "chat-item__menu-button",
|
2255
|
-
onClick:
|
2263
|
+
onClick: h,
|
2256
2264
|
id: "noSelectButton"
|
2257
|
-
},
|
2265
|
+
}, w[4] || (w[4] = [
|
2258
2266
|
o("span", {
|
2259
2267
|
id: "noSelectButton",
|
2260
2268
|
class: "pi pi-ellipsis-h"
|
2261
2269
|
}, null, -1)
|
2262
2270
|
]), 512)) : v("", !0),
|
2263
2271
|
e.chat.countUnread < 1 ? (r(), u("div", no, [
|
2264
|
-
|
2272
|
+
E(rt).includes(e.chat["lastMessage.status"]) ? (r(), u("div", {
|
2265
2273
|
key: 0,
|
2266
|
-
class:
|
2274
|
+
class: O(["chat-item__status-message", L.value])
|
2267
2275
|
}, [
|
2268
2276
|
e.chat["lastMessage.status"] !== "sent" ? (r(), u("span", fo)) : v("", !0),
|
2269
|
-
|
2277
|
+
w[5] || (w[5] = o("span", { class: "pi pi-check" }, null, -1))
|
2270
2278
|
], 2)) : v("", !0),
|
2271
2279
|
e.chat.isFixedTop || e.chat.isFixedBottom ? (r(), u("span", ao)) : v("", !0)
|
2272
2280
|
])) : v("", !0)
|
@@ -2275,9 +2283,9 @@ const Tg = (e, t = null) => {
|
|
2275
2283
|
e.chat.dialogsExpanded ? v("", !0) : (r(), u("button", {
|
2276
2284
|
key: 0,
|
2277
2285
|
class: "chat-item__menu-button",
|
2278
|
-
onClick:
|
2286
|
+
onClick: w[0] || (w[0] = (I) => e.chat.dialogsExpanded = !e.chat.dialogsExpanded),
|
2279
2287
|
id: "noSelectButton"
|
2280
|
-
},
|
2288
|
+
}, w[6] || (w[6] = [
|
2281
2289
|
o("span", {
|
2282
2290
|
id: "noSelectButton",
|
2283
2291
|
class: "pi pi-angle-down"
|
@@ -2286,64 +2294,67 @@ const Tg = (e, t = null) => {
|
|
2286
2294
|
e.chat.dialogsExpanded ? (r(), u("button", {
|
2287
2295
|
key: 1,
|
2288
2296
|
class: "chat-item__menu-button",
|
2289
|
-
onClick:
|
2297
|
+
onClick: w[1] || (w[1] = (I) => e.chat.dialogsExpanded = !e.chat.dialogsExpanded),
|
2290
2298
|
id: "noSelectButton"
|
2291
|
-
},
|
2299
|
+
}, w[7] || (w[7] = [
|
2292
2300
|
o("span", {
|
2293
2301
|
id: "noSelectButton",
|
2294
2302
|
class: "pi pi-angle-up"
|
2295
2303
|
}, null, -1)
|
2296
2304
|
]))) : v("", !0)
|
2297
2305
|
])) : v("", !0),
|
2298
|
-
F(
|
2306
|
+
F(X, { name: "menu" }, {
|
2299
2307
|
default: K(() => [
|
2300
|
-
(r(), B(de, {
|
2301
|
-
|
2308
|
+
i.value ? (r(), B(de, {
|
2309
|
+
key: 0,
|
2310
|
+
to: "#float-windows-" + E(n)
|
2302
2311
|
}, [
|
2303
|
-
|
2312
|
+
M.value && e.chat.actions ? (r(), B(E($e), {
|
2304
2313
|
key: 0,
|
2305
2314
|
ref_key: "refContextMenu",
|
2306
2315
|
ref: s,
|
2307
2316
|
class: "chat-item__context-menu",
|
2308
2317
|
actions: e.chat.actions,
|
2309
|
-
onClick:
|
2318
|
+
onClick: m,
|
2319
|
+
onMouseenter: w[2] || (w[2] = (I) => M.value = !0),
|
2320
|
+
onMouseleave: w[3] || (w[3] = (I) => M.value = !1)
|
2310
2321
|
}, null, 8, ["actions"])) : v("", !0)
|
2311
|
-
], 8, ["to"]))
|
2322
|
+
], 8, ["to"])) : v("", !0)
|
2312
2323
|
]),
|
2313
2324
|
_: 1
|
2314
2325
|
})
|
2315
2326
|
], 34),
|
2316
2327
|
e.chat.dialogsExpanded ? (r(), u("div", io, [
|
2317
|
-
(r(!0), u(q, null, te(
|
2318
|
-
class:
|
2319
|
-
onClick: (
|
2328
|
+
(r(!0), u(q, null, te(y(), (I) => (r(), u("div", {
|
2329
|
+
class: O(["dialog__item", g(I)]),
|
2330
|
+
onClick: (U) => A(I)
|
2320
2331
|
}, [
|
2321
|
-
|
2332
|
+
I.icon ? (r(), u("img", {
|
2322
2333
|
key: 0,
|
2323
2334
|
class: "dialog__icon",
|
2324
|
-
src:
|
2335
|
+
src: I.icon,
|
2325
2336
|
height: "16",
|
2326
2337
|
width: "16"
|
2327
2338
|
}, null, 8, lo)) : (r(), u("span", ro)),
|
2328
2339
|
o("div", Ao, [
|
2329
|
-
o("div", co,
|
2330
|
-
o("div", uo,
|
2340
|
+
o("div", co, T(I.name), 1),
|
2341
|
+
o("div", uo, T(I["lastActivity.time"]), 1)
|
2331
2342
|
]),
|
2332
|
-
|
2343
|
+
I.countUnread > 0 ? (r(), u("div", {
|
2333
2344
|
key: 2,
|
2334
2345
|
class: "chat-item__unread",
|
2335
|
-
style: se({ backgroundColor:
|
2336
|
-
},
|
2346
|
+
style: se({ backgroundColor: I.colorUnread ? I.colorUnread : null })
|
2347
|
+
}, T(I.countUnread > 99 ? "99+" : I.countUnread), 5)) : v("", !0)
|
2337
2348
|
], 10, oo))), 256))
|
2338
2349
|
])) : v("", !0)
|
2339
2350
|
]));
|
2340
2351
|
}
|
2341
|
-
}, zn = /* @__PURE__ */ R(go, [["__scopeId", "data-v-
|
2352
|
+
}), zn = /* @__PURE__ */ R(go, [["__scopeId", "data-v-881c1c13"]]), mo = ["placeholder"], po = {
|
2342
2353
|
__name: "ChatFilter",
|
2343
2354
|
emits: ["update"],
|
2344
2355
|
setup(e, { emit: t }) {
|
2345
2356
|
const n = b(""), f = t, a = () => {
|
2346
|
-
const s =
|
2357
|
+
const s = E(n);
|
2347
2358
|
f("update", s.value);
|
2348
2359
|
};
|
2349
2360
|
return (s, i) => (r(), u("input", {
|
@@ -2351,7 +2362,7 @@ const Tg = (e, t = null) => {
|
|
2351
2362
|
ref: n,
|
2352
2363
|
class: "chat-filter__input",
|
2353
2364
|
type: "text",
|
2354
|
-
placeholder:
|
2365
|
+
placeholder: E(pe)("component.ChatFilter.InputPlaceholder"),
|
2355
2366
|
onInput: a
|
2356
2367
|
}, null, 40, mo));
|
2357
2368
|
}
|
@@ -2396,57 +2407,57 @@ const Tg = (e, t = null) => {
|
|
2396
2407
|
setup(e, { emit: t }) {
|
2397
2408
|
const n = e, f = ee("chatAppId"), { setMessageText: a } = Ie(f), s = () => {
|
2398
2409
|
i("closeTemplateWindow"), a(c.value.template);
|
2399
|
-
}, i = t, l = b(null), c = b(null), A = b(""),
|
2400
|
-
p.value && (m.value == "grid" ? j() : M.value == "grid" &&
|
2401
|
-
},
|
2402
|
-
p.value && (m.value == "grid" ?
|
2410
|
+
}, i = t, l = b(null), c = b(null), A = b(""), d = b(), g = b(""), m = b(""), M = b(""), p = b(!1), y = Q(() => !!(p.value && (M.value == "grid" && m.value == "none" || m.value == "grid" && g.value == "none"))), h = Q(() => !!(p.value && (g.value == "grid" && m.value == "none" || m.value == "grid" && M.value == "none"))), V = () => {
|
2411
|
+
p.value && (m.value == "grid" ? j() : M.value == "grid" && _());
|
2412
|
+
}, S = () => {
|
2413
|
+
p.value && (m.value == "grid" ? L() : g.value == "grid" && _());
|
2403
2414
|
}, j = () => {
|
2404
2415
|
const U = document.getElementById("template-selector-container-" + f);
|
2405
|
-
U.style.setProperty("--template-first-col-display", "grid"), U.style.setProperty("--template-second-col-display", "none"),
|
2406
|
-
},
|
2416
|
+
U.style.setProperty("--template-first-col-display", "grid"), U.style.setProperty("--template-second-col-display", "none"), x();
|
2417
|
+
}, L = () => {
|
2407
2418
|
const U = document.getElementById("template-selector-container-" + f);
|
2408
|
-
U.style.setProperty("--template-third-col-display", "grid"), U.style.setProperty("--template-second-col-display", "none"),
|
2409
|
-
},
|
2419
|
+
U.style.setProperty("--template-third-col-display", "grid"), U.style.setProperty("--template-second-col-display", "none"), x();
|
2420
|
+
}, _ = () => {
|
2410
2421
|
const U = document.getElementById("template-selector-container-" + f);
|
2411
|
-
U.style.setProperty("--template-second-col-display", "grid"), U.style.setProperty("--template-first-col-display", "none"), U.style.setProperty("--template-third-col-display", "none"),
|
2412
|
-
},
|
2422
|
+
U.style.setProperty("--template-second-col-display", "grid"), U.style.setProperty("--template-first-col-display", "none"), U.style.setProperty("--template-third-col-display", "none"), x();
|
2423
|
+
}, x = () => {
|
2413
2424
|
const U = document.getElementById("template-selector-container-" + f), $ = window.getComputedStyle(U);
|
2414
|
-
|
2425
|
+
g.value = $.getPropertyValue("--template-first-col-display"), m.value = $.getPropertyValue("--template-second-col-display"), M.value = $.getPropertyValue("--template-third-col-display");
|
2415
2426
|
}, C = (U) => {
|
2416
|
-
n.templates.forEach(($) => $.isSelected = !1), U.isSelected = !0, c.value = U,
|
2417
|
-
},
|
2418
|
-
|
2419
|
-
},
|
2427
|
+
n.templates.forEach(($) => $.isSelected = !1), U.isSelected = !0, c.value = U, L();
|
2428
|
+
}, k = () => {
|
2429
|
+
_(), n.templates.forEach((U) => U.isSelected = !1);
|
2430
|
+
}, N = Q(() => l.value ? n.templates.filter((U) => U.groupId === l.value.groupId) : n.templates), w = Q(() => {
|
2420
2431
|
const U = A.value.trim().toLowerCase();
|
2421
|
-
return
|
2422
|
-
}),
|
2432
|
+
return N.value.filter(($) => $.title.toLowerCase().includes(U) || $.template.toLowerCase().includes(U));
|
2433
|
+
}), I = new ResizeObserver((U) => {
|
2423
2434
|
const $ = U[0].target.clientWidth;
|
2424
2435
|
$ > 700 && (p.value = !1), $ < 700 && (p.value = !0);
|
2425
2436
|
});
|
2426
|
-
return
|
2427
|
-
|
2437
|
+
return ie(() => {
|
2438
|
+
x(), E(d) && I.observe(E(d));
|
2428
2439
|
}), (U, $) => (r(), u("div", vo, [
|
2429
2440
|
o("div", {
|
2430
|
-
class:
|
2441
|
+
class: O({
|
2431
2442
|
"template-selector__container-inline": !e.elevatedWindow,
|
2432
2443
|
"template-selector__container-elevated": e.elevatedWindow
|
2433
2444
|
}),
|
2434
2445
|
ref_key: "refContainer",
|
2435
|
-
ref:
|
2436
|
-
id: "template-selector-container-" +
|
2446
|
+
ref: d,
|
2447
|
+
id: "template-selector-container-" + E(f)
|
2437
2448
|
}, [
|
2438
2449
|
o("div", bo, [
|
2439
2450
|
o("div", Mo, [
|
2440
2451
|
y.value ? (r(), u("button", _o, [
|
2441
2452
|
o("span", {
|
2442
2453
|
class: "pi pi-arrow-left",
|
2443
|
-
onClick:
|
2454
|
+
onClick: V
|
2444
2455
|
})
|
2445
2456
|
])) : v("", !0),
|
2446
2457
|
h.value ? (r(), u("button", Io, [
|
2447
2458
|
o("span", {
|
2448
2459
|
class: "pi pi-arrow-right",
|
2449
|
-
onClick:
|
2460
|
+
onClick: S
|
2450
2461
|
})
|
2451
2462
|
])) : v("", !0)
|
2452
2463
|
]),
|
@@ -2460,13 +2471,13 @@ const Tg = (e, t = null) => {
|
|
2460
2471
|
o("div", ko, [
|
2461
2472
|
o("div", {
|
2462
2473
|
class: "template-selector__first-col",
|
2463
|
-
id: "template-selector-first-col-" +
|
2474
|
+
id: "template-selector-first-col-" + E(f)
|
2464
2475
|
}, [
|
2465
2476
|
o("ul", Do, [
|
2466
|
-
(r(!0), u(q, null, te(e.groupTemplates, (J,
|
2467
|
-
key:
|
2468
|
-
class:
|
2469
|
-
onClick:
|
2477
|
+
(r(!0), u(q, null, te(e.groupTemplates, (J, le) => (r(), u("li", {
|
2478
|
+
key: le,
|
2479
|
+
class: O(["template-selector__item-group", { "template-selector__item-selected": l.value === J }]),
|
2480
|
+
onClick: k
|
2470
2481
|
}, [
|
2471
2482
|
o("label", Eo, [
|
2472
2483
|
J.iconUrl ? (r(), u("img", {
|
@@ -2476,22 +2487,22 @@ const Tg = (e, t = null) => {
|
|
2476
2487
|
alt: J.title
|
2477
2488
|
}, null, 8, To)) : v("", !0),
|
2478
2489
|
Ae(o("input", {
|
2479
|
-
id:
|
2480
|
-
"onUpdate:modelValue": $[1] || ($[1] = (
|
2490
|
+
id: le,
|
2491
|
+
"onUpdate:modelValue": $[1] || ($[1] = (Z) => l.value = Z),
|
2481
2492
|
value: J,
|
2482
2493
|
class: "template-selector__input-group",
|
2483
2494
|
type: "radio"
|
2484
2495
|
}, null, 8, jo), [
|
2485
2496
|
[ea, l.value]
|
2486
2497
|
]),
|
2487
|
-
o("span", null,
|
2498
|
+
o("span", null, T(J.title), 1)
|
2488
2499
|
])
|
2489
2500
|
], 2))), 128))
|
2490
2501
|
])
|
2491
2502
|
], 8, No),
|
2492
2503
|
o("div", {
|
2493
2504
|
class: "template-selector__second-col",
|
2494
|
-
id: "template-selector-second-col-" +
|
2505
|
+
id: "template-selector-second-col-" + E(f)
|
2495
2506
|
}, [
|
2496
2507
|
o("div", Vo, [
|
2497
2508
|
Ae(o("input", {
|
@@ -2504,15 +2515,15 @@ const Tg = (e, t = null) => {
|
|
2504
2515
|
])
|
2505
2516
|
]),
|
2506
2517
|
o("div", So, [
|
2507
|
-
|
2508
|
-
(r(!0), u(q, null, te(
|
2509
|
-
key:
|
2510
|
-
class:
|
2511
|
-
onClick: (
|
2518
|
+
w.value.length !== 0 ? (r(), u("ul", Co, [
|
2519
|
+
(r(!0), u(q, null, te(w.value, (J, le) => (r(), u("li", {
|
2520
|
+
key: le,
|
2521
|
+
class: O(["template-selector__item-template", { "template-selector__item-selected": J.isSelected }]),
|
2522
|
+
onClick: (Z) => C(J)
|
2512
2523
|
}, [
|
2513
2524
|
o("div", Oo, [
|
2514
|
-
o("p", Lo,
|
2515
|
-
o("p", Uo,
|
2525
|
+
o("p", Lo, T(J.title), 1),
|
2526
|
+
o("p", Uo, T(J.template), 1)
|
2516
2527
|
])
|
2517
2528
|
], 10, zo))), 128))
|
2518
2529
|
])) : (r(), u("p", Bo, " Шаблоны отсутствуют "))
|
@@ -2520,12 +2531,12 @@ const Tg = (e, t = null) => {
|
|
2520
2531
|
], 8, xo),
|
2521
2532
|
o("div", {
|
2522
2533
|
class: "template-selector__third-col",
|
2523
|
-
id: "template-selector-third-col-" +
|
2534
|
+
id: "template-selector-third-col-" + E(f)
|
2524
2535
|
}, [
|
2525
2536
|
o("div", Qo, [
|
2526
2537
|
c.value ? (r(), u("div", $o, [
|
2527
2538
|
o("div", Yo, [
|
2528
|
-
o("p", Po,
|
2539
|
+
o("p", Po, T(c.value.template), 1),
|
2529
2540
|
$[3] || ($[3] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
2530
2541
|
])
|
2531
2542
|
])) : (r(), u("p", Fo, " Предпросмотр шаблона "))
|
@@ -2576,21 +2587,21 @@ const Tg = (e, t = null) => {
|
|
2576
2587
|
}, A = () => {
|
2577
2588
|
s.value.style.display = "none";
|
2578
2589
|
};
|
2579
|
-
return
|
2590
|
+
return ie(() => {
|
2580
2591
|
s.value.style.display = "none";
|
2581
|
-
}), (
|
2582
|
-
|
2592
|
+
}), (d, g) => (r(), u(q, null, [
|
2593
|
+
E(f)().isRecording ? v("", !0) : (r(), u("button", {
|
2583
2594
|
key: 0,
|
2584
2595
|
ref_key: "templateButton",
|
2585
2596
|
ref: a,
|
2586
|
-
class:
|
2597
|
+
class: O(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
2587
2598
|
onClick: i,
|
2588
2599
|
onMouseover: l,
|
2589
2600
|
onMouseout: c
|
2590
|
-
},
|
2601
|
+
}, g[0] || (g[0] = [
|
2591
2602
|
o("span", { class: "pi pi-objects-column" }, null, -1)
|
2592
2603
|
]), 34)),
|
2593
|
-
F(
|
2604
|
+
F(X, null, {
|
2594
2605
|
default: K(() => [
|
2595
2606
|
o("div", {
|
2596
2607
|
ref_key: "template",
|
@@ -2610,7 +2621,7 @@ const Tg = (e, t = null) => {
|
|
2610
2621
|
})
|
2611
2622
|
], 64));
|
2612
2623
|
}
|
2613
|
-
},
|
2624
|
+
}, Cg = /* @__PURE__ */ R(Wo, [["__scopeId", "data-v-de93f7f9"]]), Ko = ["id"], Jo = {
|
2614
2625
|
__name: "PlaceholderComponent",
|
2615
2626
|
props: {
|
2616
2627
|
index: {
|
@@ -2629,18 +2640,18 @@ const Tg = (e, t = null) => {
|
|
2629
2640
|
emits: ["edit"],
|
2630
2641
|
setup(e, { emit: t }) {
|
2631
2642
|
const n = ee("chatAppId"), f = e, a = t, s = b(f.value), i = b();
|
2632
|
-
|
2643
|
+
G(
|
2633
2644
|
() => f.isFilled,
|
2634
2645
|
() => {
|
2635
2646
|
f.isFilled || (s.value = "Заполнить");
|
2636
2647
|
},
|
2637
2648
|
{ immediate: !0 }
|
2638
2649
|
);
|
2639
|
-
const l = (
|
2650
|
+
const l = (g) => {
|
2640
2651
|
if (!f.isFilled) {
|
2641
2652
|
s.value = "";
|
2642
2653
|
const m = window.getSelection();
|
2643
|
-
m.getRangeAt && m.rangeCount && m.getRangeAt(0).selectNodeContents(
|
2654
|
+
m.getRangeAt && m.rangeCount && m.getRangeAt(0).selectNodeContents(g.target);
|
2644
2655
|
}
|
2645
2656
|
};
|
2646
2657
|
function c() {
|
@@ -2648,26 +2659,26 @@ const Tg = (e, t = null) => {
|
|
2648
2659
|
s.value = f.value;
|
2649
2660
|
}) : s.value = "Заполнить");
|
2650
2661
|
}
|
2651
|
-
function A(
|
2652
|
-
|
2662
|
+
function A(g) {
|
2663
|
+
g.target.blur(), c();
|
2653
2664
|
}
|
2654
|
-
function g
|
2655
|
-
|
2665
|
+
function d(g) {
|
2666
|
+
g.target == document.getElementById("placeholder" + n + f.index) && (g.key === "Escape" && g.target.blur(), g.key == "Tab" && (g.target.blur(), document.getElementById("placeholder" + n + (f.index + 1)) && (g.preventDefault(), document.getElementById("placeholder" + n + (f.index + 1)).focus())));
|
2656
2667
|
}
|
2657
|
-
return
|
2658
|
-
window.addEventListener("keydown",
|
2668
|
+
return ie(() => {
|
2669
|
+
window.addEventListener("keydown", d);
|
2659
2670
|
}), Ke(() => {
|
2660
|
-
window.removeEventListener("keydown",
|
2661
|
-
}), (
|
2671
|
+
window.removeEventListener("keydown", d);
|
2672
|
+
}), (g, m) => (r(), u("span", {
|
2662
2673
|
ref_key: "refPlaceholder",
|
2663
2674
|
ref: i,
|
2664
|
-
id: "placeholder" +
|
2675
|
+
id: "placeholder" + E(n) + e.index,
|
2665
2676
|
contenteditable: "",
|
2666
|
-
class:
|
2677
|
+
class: O([{ filled: e.isFilled, empty: !e.isFilled }, "placeholder"]),
|
2667
2678
|
onKeydown: Jn(A, ["enter"]),
|
2668
2679
|
onFocus: l,
|
2669
2680
|
onBlur: c
|
2670
|
-
},
|
2681
|
+
}, T(s.value), 43, Ko));
|
2671
2682
|
}
|
2672
2683
|
}, Go = /* @__PURE__ */ R(Jo, [["__scopeId", "data-v-7250dbc8"]]), Zo = ["accept"], Xo = { class: "attachment-section__info open-sans" }, el = {
|
2673
2684
|
key: 2,
|
@@ -2686,9 +2697,9 @@ const Tg = (e, t = null) => {
|
|
2686
2697
|
},
|
2687
2698
|
emits: ["fileSelected"],
|
2688
2699
|
setup(e, { emit: t }) {
|
2689
|
-
const n = e, f = b(ee("filebumpUrl")), a = b(null), s = b(), i = b(""), l = b(""), c = b(), A = t,
|
2700
|
+
const n = e, f = b(ee("filebumpUrl")), a = b(null), s = b(), i = b(""), l = b(""), c = b(), A = t, d = () => {
|
2690
2701
|
s.value && l.value != "success" && s.value.click();
|
2691
|
-
},
|
2702
|
+
}, g = {
|
2692
2703
|
DOCUMENT: {
|
2693
2704
|
text: "Документ до 100 МБ",
|
2694
2705
|
accept: ".pdf,.doc,.docx,.xls,.xlsx",
|
@@ -2715,14 +2726,14 @@ const Tg = (e, t = null) => {
|
|
2715
2726
|
if (y) {
|
2716
2727
|
i.value = "";
|
2717
2728
|
const h = y.name.split(".");
|
2718
|
-
if (
|
2719
|
-
i.value =
|
2720
|
-
else if (y.size >
|
2729
|
+
if (g[n.type].accept.indexOf(h[h.length - 1]) == -1)
|
2730
|
+
i.value = g[n.type].error;
|
2731
|
+
else if (y.size > g[n.type].maxSize)
|
2721
2732
|
i.value = "Файл слишком большого размера";
|
2722
2733
|
else if (!i.value) {
|
2723
2734
|
a.value = y, l.value = "uploading";
|
2724
|
-
const
|
2725
|
-
xt(typeof
|
2735
|
+
const S = E(f.value);
|
2736
|
+
xt(typeof S == "string" ? S : null, y).then((j) => {
|
2726
2737
|
l.value = j.status, j.status == "success" && (A("fileSelected", {
|
2727
2738
|
url: j.url,
|
2728
2739
|
filename: j.name,
|
@@ -2742,12 +2753,12 @@ const Tg = (e, t = null) => {
|
|
2742
2753
|
}, M = () => {
|
2743
2754
|
a.value && (a.value = null, l.value = "");
|
2744
2755
|
};
|
2745
|
-
return
|
2756
|
+
return G(
|
2746
2757
|
() => l.value,
|
2747
2758
|
(p) => {
|
2748
2759
|
p === "" && (s.value && (s.value.value = ""), a.value = null, A("fileSelected", null));
|
2749
2760
|
}
|
2750
|
-
),
|
2761
|
+
), G(
|
2751
2762
|
() => n.templateId,
|
2752
2763
|
() => {
|
2753
2764
|
l.value = "";
|
@@ -2755,8 +2766,8 @@ const Tg = (e, t = null) => {
|
|
2755
2766
|
), (p, y) => (r(), u(q, null, [
|
2756
2767
|
l.value !== "success" ? (r(), u("div", {
|
2757
2768
|
key: 0,
|
2758
|
-
class:
|
2759
|
-
onClick:
|
2769
|
+
class: O(["attachment-section", { "attachment-section__error": i.value }]),
|
2770
|
+
onClick: d
|
2760
2771
|
}, [
|
2761
2772
|
o("input", {
|
2762
2773
|
type: "file",
|
@@ -2764,20 +2775,20 @@ const Tg = (e, t = null) => {
|
|
2764
2775
|
ref_key: "fileInput",
|
2765
2776
|
ref: s,
|
2766
2777
|
style: { display: "none" },
|
2767
|
-
accept:
|
2778
|
+
accept: g[e.type].accept,
|
2768
2779
|
onChange: m
|
2769
2780
|
}, null, 40, Zo),
|
2770
2781
|
y[1] || (y[1] = o("span", { class: "pi pi-paperclip attachment-section__icon" }, null, -1)),
|
2771
2782
|
o("div", null, [
|
2772
2783
|
y[0] || (y[0] = o("p", { class: "attachment-section__title open-sans-bold" }, " Прикрепить файл ", -1)),
|
2773
|
-
o("p", Xo,
|
2784
|
+
o("p", Xo, T(g[e.type].text), 1)
|
2774
2785
|
])
|
2775
2786
|
], 2)) : l.value === "success" && c.value ? (r(), B(Vt, {
|
2776
2787
|
key: 1,
|
2777
2788
|
"file-info": c.value,
|
2778
2789
|
onReset: M
|
2779
2790
|
}, null, 8, ["file-info"])) : v("", !0),
|
2780
|
-
i.value ? (r(), u("div", el,
|
2791
|
+
i.value ? (r(), u("div", el, T(i.value), 1)) : v("", !0)
|
2781
2792
|
], 64));
|
2782
2793
|
}
|
2783
2794
|
}), nl = /* @__PURE__ */ R(tl, [["__scopeId", "data-v-4ded5a07"]]), fl = { class: "quick-reply-buttons" }, al = ["onClick"], sl = { class: "quick-reply-buttons__line" }, il = /* @__PURE__ */ W({
|
@@ -2801,14 +2812,14 @@ const Tg = (e, t = null) => {
|
|
2801
2812
|
(r(!0), u(q, null, te(e.buttons.slice(0, 3), (c, A) => (r(), u("div", {
|
2802
2813
|
class: "quick-reply-buttons__preview-action",
|
2803
2814
|
key: A,
|
2804
|
-
onClick: (
|
2815
|
+
onClick: (d) => s(A)
|
2805
2816
|
}, [
|
2806
2817
|
l[0] || (l[0] = o("hr", { class: "quick-reply-buttons__separator" }, null, -1)),
|
2807
2818
|
o("div", sl, [
|
2808
2819
|
o("span", {
|
2809
|
-
class:
|
2820
|
+
class: O(["quick-reply-buttons__icon pi pi-arrow-up-left", A == 2 && e.buttons.length > 3 ? "pi-list" : a[c.type]])
|
2810
2821
|
}, null, 2),
|
2811
|
-
o("p", null,
|
2822
|
+
o("p", null, T(A == 2 && e.buttons.length > 3 ? "Смотреть все варианты" : c.text), 1)
|
2812
2823
|
])
|
2813
2824
|
], 8, al))), 128))
|
2814
2825
|
]));
|
@@ -2842,9 +2853,9 @@ const Tg = (e, t = null) => {
|
|
2842
2853
|
key: l
|
2843
2854
|
}, [
|
2844
2855
|
o("span", {
|
2845
|
-
class:
|
2856
|
+
class: O(["pi pi-arrow-up-left", n[i.type]])
|
2846
2857
|
}, null, 2),
|
2847
|
-
o("p", null,
|
2858
|
+
o("p", null, T(i.text), 1)
|
2848
2859
|
]))), 128))
|
2849
2860
|
])
|
2850
2861
|
]));
|
@@ -2902,66 +2913,66 @@ const Tg = (e, t = null) => {
|
|
2902
2913
|
file: null,
|
2903
2914
|
buttons: null
|
2904
2915
|
};
|
2905
|
-
|
2916
|
+
g.value ? (z.text = ze.value, z.templateId = d.value.templateId, z.values = Ye.value, z.file = g.value) : (z.text = ze.value, z.templateId = d.value.templateId, z.values = Ye.value), d.value.buttons && (z.buttons = d.value.buttons), a("sendWabaValues", z), Ze();
|
2906
2917
|
}, l = (z) => {
|
2907
|
-
|
2908
|
-
}, c = b(null), A = b(null),
|
2918
|
+
g.value = z;
|
2919
|
+
}, c = b(null), A = b(null), d = b(null), g = b(null), m = b(""), M = b(!1), p = () => {
|
2909
2920
|
M.value = !M.value, M.value ? (c.value.scrollTop = 0, c.value.style["overflow-y"] = "hidden") : c.value.style["overflow-y"] = "scroll";
|
2910
2921
|
}, y = (z) => {
|
2911
2922
|
Object.keys(j).forEach((H) => {
|
2912
2923
|
j[H] = "";
|
2913
|
-
}),
|
2924
|
+
}), g.value = null, n.wabaTemplates.forEach((H) => H.isSelected = !1), z.isSelected = !0, d.value = z, M.value = !1, le();
|
2914
2925
|
}, h = () => {
|
2915
|
-
|
2916
|
-
},
|
2926
|
+
Z(), n.wabaTemplates.forEach((z) => z.isSelected = !1);
|
2927
|
+
}, V = Q(() => A.value ? n.wabaTemplates.filter((z) => z.groupId === A.value.groupId) : n.wabaTemplates), S = Q(() => {
|
2917
2928
|
const z = m.value.trim().toLowerCase();
|
2918
|
-
return
|
2919
|
-
}), j = ta({}),
|
2920
|
-
|
2929
|
+
return V.value.filter((H) => H.title.toLowerCase().includes(z) || H.template.toLowerCase().includes(z));
|
2930
|
+
}), j = ta({}), L = b(null), _ = b(), x = b(""), C = b(""), k = b(""), N = b(!1), w = Q(() => !!(N.value && (k.value == "grid" && C.value == "none" || C.value == "grid" && x.value == "none"))), I = Q(() => !!(N.value && (x.value == "grid" && C.value == "none" || C.value == "grid" && k.value == "none"))), U = () => {
|
2931
|
+
N.value && (C.value == "grid" ? J() : k.value == "grid" && Z());
|
2921
2932
|
}, $ = () => {
|
2922
|
-
|
2933
|
+
N.value && (C.value == "grid" ? le() : x.value == "grid" && Z());
|
2923
2934
|
}, J = () => {
|
2924
2935
|
const z = document.getElementById("waba-template-selector-container-" + f);
|
2925
2936
|
z.style.setProperty("--waba-template-first-col-display", "grid"), z.style.setProperty("--waba-template-second-col-display", "none"), console.log(z, window.getComputedStyle(z).getPropertyValue("--waba-template-first-col-display")), fe();
|
2926
|
-
},
|
2937
|
+
}, le = () => {
|
2927
2938
|
const z = document.getElementById("waba-template-selector-container-" + f);
|
2928
2939
|
z.style.setProperty("--waba-template-third-col-display", "grid"), z.style.setProperty("--waba-template-second-col-display", "none"), fe();
|
2929
|
-
},
|
2940
|
+
}, Z = () => {
|
2930
2941
|
const z = document.getElementById("waba-template-selector-container-" + f);
|
2931
2942
|
z.style.setProperty("--waba-template-second-col-display", "grid"), z.style.setProperty("--waba-template-first-col-display", "none"), z.style.setProperty("--waba-template-third-col-display", "none"), fe();
|
2932
2943
|
}, fe = () => {
|
2933
2944
|
const z = document.getElementById("waba-template-selector-container-" + f), H = window.getComputedStyle(z);
|
2934
|
-
|
2945
|
+
x.value = H.getPropertyValue("--waba-template-first-col-display"), C.value = H.getPropertyValue("--waba-template-second-col-display"), k.value = H.getPropertyValue("--waba-template-third-col-display");
|
2935
2946
|
}, Je = (z) => {
|
2936
2947
|
j[z[1]] = z[0];
|
2937
2948
|
}, he = Q(() => {
|
2938
2949
|
var Ne;
|
2939
|
-
const z = (Ne =
|
2950
|
+
const z = (Ne = d.value) == null ? void 0 : Ne.template;
|
2940
2951
|
if (!z) return [];
|
2941
2952
|
const H = [...z.matchAll(/{{\d+}}/g)], Y = [];
|
2942
|
-
let
|
2953
|
+
let oe = 0;
|
2943
2954
|
return H.forEach((Pe) => {
|
2944
|
-
Pe.index >
|
2945
|
-
}),
|
2955
|
+
Pe.index > oe && Y.push(z.substring(oe, Pe.index)), Y.push({ index: parseInt(Pe[0].slice(2, -2)) }), oe = Pe.index + Pe[0].length;
|
2956
|
+
}), oe < z.length && Y.push(z.substring(oe)), Y;
|
2946
2957
|
}), Ge = Q(() => {
|
2947
2958
|
var H, Y;
|
2948
|
-
if (!
|
2959
|
+
if (!d.value)
|
2949
2960
|
return !0;
|
2950
|
-
if (!((H =
|
2961
|
+
if (!((H = d.value) != null && H.template.match(/{{\d+}}/gi)))
|
2951
2962
|
return !1;
|
2952
|
-
const z = Object.keys(j).length !== ((Y =
|
2953
|
-
if (
|
2963
|
+
const z = Object.keys(j).length !== ((Y = d.value) == null ? void 0 : Y.template.match(/{{\d+}}/gi).length);
|
2964
|
+
if (d.value.type === "TEXT")
|
2954
2965
|
return z;
|
2955
|
-
if (
|
2956
|
-
return z || !
|
2966
|
+
if (d.value.type !== "TEXT")
|
2967
|
+
return z || !g.value;
|
2957
2968
|
}), Ze = () => {
|
2958
2969
|
Object.keys(j).forEach((z) => {
|
2959
2970
|
j[z] = "";
|
2960
|
-
}),
|
2971
|
+
}), g.value = null, d.value = null, n.wabaTemplates.forEach((z) => z.isSelected = !1);
|
2961
2972
|
}, ze = Q(() => {
|
2962
|
-
console.log(he.value,
|
2973
|
+
console.log(he.value, d.value.buttons);
|
2963
2974
|
let z = he.value.map((Y) => typeof Y == "string" ? Y : j[Y.index]).join(""), H = "";
|
2964
|
-
return
|
2975
|
+
return d.value.buttons && (H = d.value.buttons.map((Y) => `
|
2965
2976
|
| [` + Y.text + "]").join("")), z.concat(H);
|
2966
2977
|
}), Ye = Q(() => {
|
2967
2978
|
const z = [];
|
@@ -2970,29 +2981,29 @@ const Tg = (e, t = null) => {
|
|
2970
2981
|
return z;
|
2971
2982
|
}), Oe = new ResizeObserver((z) => {
|
2972
2983
|
const H = z[0].target.clientWidth;
|
2973
|
-
H > 700 && (
|
2984
|
+
H > 700 && (N.value = !1), H < 700 && (N.value = !0);
|
2974
2985
|
});
|
2975
|
-
return
|
2976
|
-
fe(),
|
2986
|
+
return ie(() => {
|
2987
|
+
fe(), E(_) && Oe.observe(E(_));
|
2977
2988
|
}), (z, H) => (r(), u("div", dl, [
|
2978
2989
|
o("div", {
|
2979
|
-
class:
|
2990
|
+
class: O({
|
2980
2991
|
"template-selector__container-inline": !e.elevatedWindow,
|
2981
2992
|
"template-selector__container-elevated": e.elevatedWindow
|
2982
2993
|
}),
|
2983
2994
|
ref_key: "refContainer",
|
2984
|
-
ref:
|
2985
|
-
id: "waba-template-selector-container-" +
|
2995
|
+
ref: _,
|
2996
|
+
id: "waba-template-selector-container-" + E(f)
|
2986
2997
|
}, [
|
2987
2998
|
o("div", ml, [
|
2988
2999
|
o("div", pl, [
|
2989
|
-
|
3000
|
+
w.value ? (r(), u("button", hl, [
|
2990
3001
|
o("span", {
|
2991
3002
|
class: "pi pi-arrow-left",
|
2992
3003
|
onClick: U
|
2993
3004
|
})
|
2994
3005
|
])) : v("", !0),
|
2995
|
-
|
3006
|
+
I.value ? (r(), u("button", vl, [
|
2996
3007
|
o("span", {
|
2997
3008
|
class: "pi pi-arrow-right",
|
2998
3009
|
onClick: $
|
@@ -3009,9 +3020,9 @@ const Tg = (e, t = null) => {
|
|
3009
3020
|
o("div", yl, [
|
3010
3021
|
o("div", bl, [
|
3011
3022
|
o("ul", Ml, [
|
3012
|
-
(r(!0), u(q, null, te(e.groupTemplates, (Y,
|
3013
|
-
key:
|
3014
|
-
class:
|
3023
|
+
(r(!0), u(q, null, te(e.groupTemplates, (Y, oe) => (r(), u("li", {
|
3024
|
+
key: oe,
|
3025
|
+
class: O(["template-selector__item-group", { "template-selector__item-selected": A.value === Y }]),
|
3015
3026
|
onClick: h
|
3016
3027
|
}, [
|
3017
3028
|
o("label", _l, [
|
@@ -3022,7 +3033,7 @@ const Tg = (e, t = null) => {
|
|
3022
3033
|
alt: Y.title
|
3023
3034
|
}, null, 8, Il)) : v("", !0),
|
3024
3035
|
Ae(o("input", {
|
3025
|
-
id:
|
3036
|
+
id: oe,
|
3026
3037
|
"onUpdate:modelValue": H[0] || (H[0] = (Ne) => A.value = Ne),
|
3027
3038
|
value: Y,
|
3028
3039
|
class: "template-selector__input-group",
|
@@ -3030,7 +3041,7 @@ const Tg = (e, t = null) => {
|
|
3030
3041
|
}, null, 8, wl), [
|
3031
3042
|
[ea, A.value]
|
3032
3043
|
]),
|
3033
|
-
o("span", null,
|
3044
|
+
o("span", null, T(Y.title), 1)
|
3034
3045
|
])
|
3035
3046
|
], 2))), 128))
|
3036
3047
|
])
|
@@ -3047,15 +3058,15 @@ const Tg = (e, t = null) => {
|
|
3047
3058
|
])
|
3048
3059
|
]),
|
3049
3060
|
o("div", Dl, [
|
3050
|
-
|
3051
|
-
(r(!0), u(q, null, te(
|
3052
|
-
key:
|
3053
|
-
class:
|
3061
|
+
S.value.length !== 0 ? (r(), u("ul", El, [
|
3062
|
+
(r(!0), u(q, null, te(S.value, (Y, oe) => (r(), u("li", {
|
3063
|
+
key: oe,
|
3064
|
+
class: O(["template-selector__item-template", { "template-selector__item-selected": Y.isSelected }]),
|
3054
3065
|
onClick: (Ne) => y(Y)
|
3055
3066
|
}, [
|
3056
3067
|
o("div", jl, [
|
3057
|
-
o("p", xl,
|
3058
|
-
o("p", Vl,
|
3068
|
+
o("p", xl, T(Y.title), 1),
|
3069
|
+
o("p", Vl, T(Y.template), 1)
|
3059
3070
|
])
|
3060
3071
|
], 10, Tl))), 128))
|
3061
3072
|
])) : (r(), u("p", Sl, " Шаблоны отсутствуют "))
|
@@ -3069,28 +3080,28 @@ const Tg = (e, t = null) => {
|
|
3069
3080
|
}, [
|
3070
3081
|
he.value.length > 0 ? (r(), u("div", zl, [
|
3071
3082
|
o("div", Ol, [
|
3072
|
-
|
3083
|
+
d.value.type != "TEXT" ? (r(), B(nl, {
|
3073
3084
|
key: 0,
|
3074
|
-
type:
|
3075
|
-
"template-id":
|
3085
|
+
type: d.value.type,
|
3086
|
+
"template-id": d.value.templateId,
|
3076
3087
|
onFileSelected: l
|
3077
3088
|
}, null, 8, ["type", "template-id"])) : v("", !0),
|
3078
3089
|
o("div", Ll, [
|
3079
|
-
(r(!0), u(q, null, te(he.value, (Y,
|
3080
|
-
typeof Y == "string" ? (r(), u("span", Ul,
|
3090
|
+
(r(!0), u(q, null, te(he.value, (Y, oe) => (r(), u(q, { key: oe }, [
|
3091
|
+
typeof Y == "string" ? (r(), u("span", Ul, T(Y), 1)) : typeof Y == "object" ? (r(), B(Go, {
|
3081
3092
|
key: 1,
|
3082
3093
|
index: Y.index,
|
3083
3094
|
value: j[Y.index] || "Заполнить",
|
3084
3095
|
"is-filled": !!j[Y.index],
|
3085
|
-
onClick: (Ne) =>
|
3096
|
+
onClick: (Ne) => L.value = Y.index,
|
3086
3097
|
onEdit: Je
|
3087
3098
|
}, null, 8, ["index", "value", "is-filled", "onClick"])) : v("", !0)
|
3088
3099
|
], 64))), 128))
|
3089
3100
|
]),
|
3090
3101
|
H[2] || (H[2] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1)),
|
3091
|
-
|
3102
|
+
d.value.buttons ? (r(), B(ol, {
|
3092
3103
|
key: 1,
|
3093
|
-
buttons:
|
3104
|
+
buttons: d.value.buttons,
|
3094
3105
|
onSelectAllVariants: p
|
3095
3106
|
}, null, 8, ["buttons"])) : v("", !0)
|
3096
3107
|
])
|
@@ -3101,7 +3112,7 @@ const Tg = (e, t = null) => {
|
|
3101
3112
|
onClick: p
|
3102
3113
|
}),
|
3103
3114
|
F(ul, {
|
3104
|
-
buttons:
|
3115
|
+
buttons: d.value.buttons,
|
3105
3116
|
onSelectAllVariants: p
|
3106
3117
|
}, null, 8, ["buttons"])
|
3107
3118
|
])) : v("", !0)
|
@@ -3154,26 +3165,26 @@ const Tg = (e, t = null) => {
|
|
3154
3165
|
n.mode == "click" && n.state == "active" && (i.value.style.display == "none" ? i.value.style.display = "inherit" : i.value.style.display == "inherit" && (i.value.style.display = "none"));
|
3155
3166
|
}, A = () => {
|
3156
3167
|
n.mode == "hover" && n.state == "active" && (i.value.style.display = "inherit");
|
3157
|
-
}, g = () => {
|
3158
|
-
n.mode == "hover" && n.state == "active" && (i.value.style.display = "none");
|
3159
3168
|
}, d = () => {
|
3169
|
+
n.mode == "hover" && n.state == "active" && (i.value.style.display = "none");
|
3170
|
+
}, g = () => {
|
3160
3171
|
i.value.style.display = "none";
|
3161
3172
|
};
|
3162
|
-
|
3173
|
+
ie(() => {
|
3163
3174
|
i.value.style.display = "none";
|
3164
3175
|
});
|
3165
3176
|
const m = (M) => {
|
3166
3177
|
l("sendWabaValues", M);
|
3167
3178
|
};
|
3168
3179
|
return (M, p) => (r(), u(q, null, [
|
3169
|
-
|
3180
|
+
E(a)().isRecording ? v("", !0) : (r(), u("button", {
|
3170
3181
|
key: 0,
|
3171
3182
|
ref_key: "templateButton",
|
3172
3183
|
ref: s,
|
3173
|
-
class:
|
3184
|
+
class: O(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
3174
3185
|
onClick: c,
|
3175
3186
|
onMouseover: A,
|
3176
|
-
onMouseout:
|
3187
|
+
onMouseout: d
|
3177
3188
|
}, p[0] || (p[0] = [
|
3178
3189
|
o("span", { class: "pi pi-code" }, null, -1)
|
3179
3190
|
]), 34)),
|
@@ -3181,19 +3192,19 @@ const Tg = (e, t = null) => {
|
|
3181
3192
|
ref_key: "template",
|
3182
3193
|
ref: i,
|
3183
3194
|
onMouseover: A,
|
3184
|
-
onMouseout:
|
3195
|
+
onMouseout: d
|
3185
3196
|
}, [
|
3186
3197
|
F(Yl, {
|
3187
3198
|
"waba-templates": e.wabaTemplates,
|
3188
3199
|
"group-templates": e.groupTemplates,
|
3189
3200
|
"elevated-window": e.elevatedWindow,
|
3190
|
-
onCloseTemplateWindow:
|
3201
|
+
onCloseTemplateWindow: g,
|
3191
3202
|
onSendWabaValues: m
|
3192
3203
|
}, null, 8, ["waba-templates", "group-templates", "elevated-window"])
|
3193
3204
|
], 544)
|
3194
3205
|
], 64));
|
3195
3206
|
}
|
3196
|
-
},
|
3207
|
+
}, zg = /* @__PURE__ */ R(Pl, [["__scopeId", "data-v-ce490ccf"]]), pa = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", ha = {
|
3197
3208
|
recent: "Recently used",
|
3198
3209
|
smileys_people: "Smiles & People",
|
3199
3210
|
animals_nature: "Animals & Nature",
|
@@ -15374,46 +15385,46 @@ function _r() {
|
|
15374
15385
|
};
|
15375
15386
|
},
|
15376
15387
|
get disabled() {
|
15377
|
-
let
|
15378
|
-
return this.options.displayRecent || (
|
15388
|
+
let g = Array.isArray(this.options.disabledGroups) ? this.options.disabledGroups : [];
|
15389
|
+
return this.options.displayRecent || (g = ["recent", ...g]), g;
|
15379
15390
|
},
|
15380
15391
|
get groups() {
|
15381
15392
|
return Uf.filter(
|
15382
|
-
(
|
15393
|
+
(g) => !this.disabled.includes(g.key)
|
15383
15394
|
);
|
15384
15395
|
},
|
15385
15396
|
get orderedGroupKeys() {
|
15386
|
-
const
|
15397
|
+
const g = [
|
15387
15398
|
...this.options.groupOrder,
|
15388
15399
|
...Object.keys(this.options.additionalGroups),
|
15389
15400
|
...Uf.map((m) => m.key)
|
15390
15401
|
];
|
15391
|
-
return [...new Set(
|
15402
|
+
return [...new Set(g)].filter((m) => !this.disabled.includes(m));
|
15392
15403
|
}
|
15393
15404
|
});
|
15394
15405
|
function t() {
|
15395
15406
|
e.options.displayRecent && f();
|
15396
15407
|
}
|
15397
15408
|
async function n() {
|
15398
|
-
var
|
15409
|
+
var g;
|
15399
15410
|
let m = await Mr();
|
15400
|
-
return Array.isArray(m) && m.length ? m = JSON.parse(((
|
15411
|
+
return Array.isArray(m) && m.length ? m = JSON.parse(((g = m[0]) == null ? void 0 : g.value) || "") : m = [], m;
|
15401
15412
|
}
|
15402
15413
|
function f() {
|
15403
|
-
n().then((
|
15404
|
-
e.recent =
|
15414
|
+
n().then((g) => {
|
15415
|
+
e.recent = g, A();
|
15405
15416
|
});
|
15406
15417
|
}
|
15407
|
-
const a = (
|
15408
|
-
e.search =
|
15409
|
-
}, s = (
|
15410
|
-
e.emoji =
|
15411
|
-
}, i = (
|
15412
|
-
e.activeGroup =
|
15413
|
-
}, l = (
|
15414
|
-
e.skinTone =
|
15415
|
-
}, c = (
|
15416
|
-
e.options = Object.assign({}, e.options,
|
15418
|
+
const a = (g) => {
|
15419
|
+
e.search = g;
|
15420
|
+
}, s = (g) => {
|
15421
|
+
e.emoji = g;
|
15422
|
+
}, i = (g) => {
|
15423
|
+
e.activeGroup = g;
|
15424
|
+
}, l = (g = Mn) => {
|
15425
|
+
e.skinTone = g;
|
15426
|
+
}, c = (g) => {
|
15427
|
+
e.options = Object.assign({}, e.options, g), t();
|
15417
15428
|
};
|
15418
15429
|
async function A() {
|
15419
15430
|
(await Af(cf, uf)).transaction(nt, "readwrite").objectStore(nt).put({
|
@@ -15421,13 +15432,13 @@ function _r() {
|
|
15421
15432
|
value: JSON.stringify(e.recent)
|
15422
15433
|
});
|
15423
15434
|
}
|
15424
|
-
const
|
15435
|
+
const d = (g) => {
|
15425
15436
|
if (e.options.displayRecent !== !0)
|
15426
15437
|
return;
|
15427
|
-
const m = e.recent.findIndex((p) => p.u ===
|
15438
|
+
const m = e.recent.findIndex((p) => p.u === g.u);
|
15428
15439
|
if (m > 0 && e.recent.splice(m, 1), m === 0)
|
15429
15440
|
return;
|
15430
|
-
const M = { u:
|
15441
|
+
const M = { u: g.u, n: na(g.n) };
|
15431
15442
|
e.recent = [M, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), A();
|
15432
15443
|
};
|
15433
15444
|
return {
|
@@ -15437,7 +15448,7 @@ function _r() {
|
|
15437
15448
|
updateActiveGroup: i,
|
15438
15449
|
updateSkinTone: l,
|
15439
15450
|
updateOptions: c,
|
15440
|
-
updateSelect:
|
15451
|
+
updateSelect: d
|
15441
15452
|
};
|
15442
15453
|
}
|
15443
15454
|
var ce = "top", Me = "bottom", _e = "right", ue = "left", df = "auto", St = [ce, Me, _e, ue], ft = "start", Tt = "end", Ir = "clippingParents", Ma = "viewport", gt = "popper", wr = "reference", $f = /* @__PURE__ */ St.reduce(function(e, t) {
|
@@ -15625,10 +15636,10 @@ var Qr = function(t, n) {
|
|
15625
15636
|
})) : t, Na(typeof t != "number" ? t : Da(t, St));
|
15626
15637
|
};
|
15627
15638
|
function $r(e) {
|
15628
|
-
var t, n = e.state, f = e.name, a = e.options, s = n.elements.arrow, i = n.modifiersData.popperOffsets, l = Te(n.placement), c = mf(l), A = [ue, _e].indexOf(l) >= 0,
|
15639
|
+
var t, n = e.state, f = e.name, a = e.options, s = n.elements.arrow, i = n.modifiersData.popperOffsets, l = Te(n.placement), c = mf(l), A = [ue, _e].indexOf(l) >= 0, d = A ? "height" : "width";
|
15629
15640
|
if (!(!s || !i)) {
|
15630
|
-
var
|
15631
|
-
n.modifiersData[f] = (t = {}, t[
|
15641
|
+
var g = Qr(a.padding, n), m = gf(s), M = c === "y" ? ce : ue, p = c === "y" ? Me : _e, y = n.rects.reference[d] + n.rects.reference[c] - i[c] - n.rects.popper[d], h = i[c] - n.rects.reference[c], V = Ct(s), S = V ? c === "y" ? V.clientHeight || 0 : V.clientWidth || 0 : 0, j = y / 2 - h / 2, L = g[M], _ = S - m[d] - g[p], x = S / 2 - m[d] / 2 + j, C = It(L, x, _), k = c;
|
15642
|
+
n.modifiersData[f] = (t = {}, t[k] = C, t.centerOffset = C - x, t);
|
15632
15643
|
}
|
15633
15644
|
}
|
15634
15645
|
function Yr(e) {
|
@@ -15661,28 +15672,28 @@ function qr(e) {
|
|
15661
15672
|
};
|
15662
15673
|
}
|
15663
15674
|
function Pf(e) {
|
15664
|
-
var t, n = e.popper, f = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, c = e.gpuAcceleration, A = e.adaptive,
|
15675
|
+
var t, n = e.popper, f = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, c = e.gpuAcceleration, A = e.adaptive, d = e.roundOffsets, g = e.isFixed, m = d === !0 ? qr(i) : typeof d == "function" ? d(i) : i, M = m.x, p = M === void 0 ? 0 : M, y = m.y, h = y === void 0 ? 0 : y, V = i.hasOwnProperty("x"), S = i.hasOwnProperty("y"), j = ue, L = ce, _ = window;
|
15665
15676
|
if (A) {
|
15666
|
-
var
|
15667
|
-
if (
|
15668
|
-
|
15669
|
-
var
|
15670
|
-
h -=
|
15677
|
+
var x = Ct(n), C = "clientHeight", k = "clientWidth";
|
15678
|
+
if (x === ke(n) && (x = Qe(n), xe(x).position !== "static" && l === "absolute" && (C = "scrollHeight", k = "scrollWidth")), x = x, a === ce || (a === ue || a === _e) && s === Tt) {
|
15679
|
+
L = Me;
|
15680
|
+
var N = g && _.visualViewport ? _.visualViewport.height : x[C];
|
15681
|
+
h -= N - f.height, h *= c ? 1 : -1;
|
15671
15682
|
}
|
15672
15683
|
if (a === ue || (a === ce || a === Me) && s === Tt) {
|
15673
15684
|
j = _e;
|
15674
|
-
var
|
15675
|
-
p -=
|
15685
|
+
var w = g && _.visualViewport ? _.visualViewport.width : x[k];
|
15686
|
+
p -= w - f.width, p *= c ? 1 : -1;
|
15676
15687
|
}
|
15677
15688
|
}
|
15678
|
-
var
|
15689
|
+
var I = Object.assign({
|
15679
15690
|
position: l
|
15680
15691
|
}, A && Fr);
|
15681
15692
|
if (c) {
|
15682
15693
|
var U;
|
15683
|
-
return Object.assign({},
|
15694
|
+
return Object.assign({}, I, (U = {}, U[L] = S ? "0" : "", U[j] = V ? "0" : "", U.transform = (_.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", U));
|
15684
15695
|
}
|
15685
|
-
return Object.assign({},
|
15696
|
+
return Object.assign({}, I, (t = {}, t[L] = S ? h + "px" : "", t[j] = V ? p + "px" : "", t.transform = "", t));
|
15686
15697
|
}
|
15687
15698
|
function Hr(e) {
|
15688
15699
|
var t = e.state, n = e.options, f = n.gpuAcceleration, a = f === void 0 ? !0 : f, s = n.adaptive, i = s === void 0 ? !0 : s, l = n.roundOffsets, c = l === void 0 ? !0 : l, A = {
|
@@ -15718,11 +15729,11 @@ var Wr = {
|
|
15718
15729
|
};
|
15719
15730
|
function Kr(e) {
|
15720
15731
|
var t = e.state, n = e.instance, f = e.options, a = f.scroll, s = a === void 0 ? !0 : a, i = f.resize, l = i === void 0 ? !0 : i, c = ke(t.elements.popper), A = [].concat(t.scrollParents.reference, t.scrollParents.popper);
|
15721
|
-
return s && A.forEach(function(
|
15722
|
-
|
15732
|
+
return s && A.forEach(function(d) {
|
15733
|
+
d.addEventListener("scroll", n.update, Yt);
|
15723
15734
|
}), l && c.addEventListener("resize", n.update, Yt), function() {
|
15724
|
-
s && A.forEach(function(
|
15725
|
-
|
15735
|
+
s && A.forEach(function(d) {
|
15736
|
+
d.removeEventListener("scroll", n.update, Yt);
|
15726
15737
|
}), l && c.removeEventListener("resize", n.update, Yt);
|
15727
15738
|
};
|
15728
15739
|
}
|
@@ -15858,13 +15869,13 @@ function Ta(e) {
|
|
15858
15869
|
}
|
15859
15870
|
var A = a ? mf(a) : null;
|
15860
15871
|
if (A != null) {
|
15861
|
-
var
|
15872
|
+
var d = A === "y" ? "height" : "width";
|
15862
15873
|
switch (s) {
|
15863
15874
|
case ft:
|
15864
|
-
c[A] = c[A] - (t[
|
15875
|
+
c[A] = c[A] - (t[d] / 2 - n[d] / 2);
|
15865
15876
|
break;
|
15866
15877
|
case Tt:
|
15867
|
-
c[A] = c[A] + (t[
|
15878
|
+
c[A] = c[A] + (t[d] / 2 - n[d] / 2);
|
15868
15879
|
break;
|
15869
15880
|
}
|
15870
15881
|
}
|
@@ -15872,34 +15883,34 @@ function Ta(e) {
|
|
15872
15883
|
}
|
15873
15884
|
function jt(e, t) {
|
15874
15885
|
t === void 0 && (t = {});
|
15875
|
-
var n = t, f = n.placement, a = f === void 0 ? e.placement : f, s = n.boundary, i = s === void 0 ? Ir : s, l = n.rootBoundary, c = l === void 0 ? Ma : l, A = n.elementContext,
|
15876
|
-
reference:
|
15877
|
-
element:
|
15886
|
+
var n = t, f = n.placement, a = f === void 0 ? e.placement : f, s = n.boundary, i = s === void 0 ? Ir : s, l = n.rootBoundary, c = l === void 0 ? Ma : l, A = n.elementContext, d = A === void 0 ? gt : A, g = n.altBoundary, m = g === void 0 ? !1 : g, M = n.padding, p = M === void 0 ? 0 : M, y = Na(typeof p != "number" ? p : Da(p, St)), h = d === gt ? wr : gt, V = e.rects.popper, S = e.elements[m ? h : d], j = fA(at(S) ? S : S.contextElement || Qe(e.elements.popper), i, c), L = it(e.elements.reference), _ = Ta({
|
15887
|
+
reference: L,
|
15888
|
+
element: V,
|
15878
15889
|
strategy: "absolute",
|
15879
15890
|
placement: a
|
15880
|
-
}),
|
15891
|
+
}), x = Kn(Object.assign({}, V, _)), C = d === gt ? x : L, k = {
|
15881
15892
|
top: j.top - C.top + y.top,
|
15882
15893
|
bottom: C.bottom - j.bottom + y.bottom,
|
15883
15894
|
left: j.left - C.left + y.left,
|
15884
15895
|
right: C.right - j.right + y.right
|
15885
|
-
},
|
15886
|
-
if (
|
15887
|
-
var
|
15888
|
-
Object.keys(
|
15889
|
-
var U = [_e, Me].indexOf(
|
15890
|
-
|
15896
|
+
}, N = e.modifiersData.offset;
|
15897
|
+
if (d === gt && N) {
|
15898
|
+
var w = N[a];
|
15899
|
+
Object.keys(k).forEach(function(I) {
|
15900
|
+
var U = [_e, Me].indexOf(I) >= 0 ? 1 : -1, $ = [ce, Me].indexOf(I) >= 0 ? "y" : "x";
|
15901
|
+
k[I] += w[$] * U;
|
15891
15902
|
});
|
15892
15903
|
}
|
15893
|
-
return
|
15904
|
+
return k;
|
15894
15905
|
}
|
15895
15906
|
function aA(e, t) {
|
15896
15907
|
t === void 0 && (t = {});
|
15897
|
-
var n = t, f = n.placement, a = n.boundary, s = n.rootBoundary, i = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, A = c === void 0 ? _a : c,
|
15898
|
-
return ot(p) ===
|
15899
|
-
}) : St, m =
|
15908
|
+
var n = t, f = n.placement, a = n.boundary, s = n.rootBoundary, i = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, A = c === void 0 ? _a : c, d = ot(f), g = d ? l ? $f : $f.filter(function(p) {
|
15909
|
+
return ot(p) === d;
|
15910
|
+
}) : St, m = g.filter(function(p) {
|
15900
15911
|
return A.indexOf(p) >= 0;
|
15901
15912
|
});
|
15902
|
-
m.length === 0 && (m =
|
15913
|
+
m.length === 0 && (m = g);
|
15903
15914
|
var M = m.reduce(function(p, y) {
|
15904
15915
|
return p[y] = jt(e, {
|
15905
15916
|
placement: y,
|
@@ -15921,50 +15932,50 @@ function sA(e) {
|
|
15921
15932
|
function iA(e) {
|
15922
15933
|
var t = e.state, n = e.options, f = e.name;
|
15923
15934
|
if (!t.modifiersData[f]._skip) {
|
15924
|
-
for (var a = n.mainAxis, s = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, c = n.fallbackPlacements, A = n.padding,
|
15935
|
+
for (var a = n.mainAxis, s = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, c = n.fallbackPlacements, A = n.padding, d = n.boundary, g = n.rootBoundary, m = n.altBoundary, M = n.flipVariations, p = M === void 0 ? !0 : M, y = n.allowedAutoPlacements, h = t.options.placement, V = Te(h), S = V === h, j = c || (S || !p ? [qt(h)] : sA(h)), L = [h].concat(j).reduce(function(Oe, z) {
|
15925
15936
|
return Oe.concat(Te(z) === df ? aA(t, {
|
15926
15937
|
placement: z,
|
15927
|
-
boundary:
|
15928
|
-
rootBoundary:
|
15938
|
+
boundary: d,
|
15939
|
+
rootBoundary: g,
|
15929
15940
|
padding: A,
|
15930
15941
|
flipVariations: p,
|
15931
15942
|
allowedAutoPlacements: y
|
15932
15943
|
}) : z);
|
15933
|
-
}, []),
|
15934
|
-
var
|
15935
|
-
placement:
|
15936
|
-
boundary:
|
15937
|
-
rootBoundary:
|
15944
|
+
}, []), _ = t.rects.reference, x = t.rects.popper, C = /* @__PURE__ */ new Map(), k = !0, N = L[0], w = 0; w < L.length; w++) {
|
15945
|
+
var I = L[w], U = Te(I), $ = ot(I) === ft, J = [ce, Me].indexOf(U) >= 0, le = J ? "width" : "height", Z = jt(t, {
|
15946
|
+
placement: I,
|
15947
|
+
boundary: d,
|
15948
|
+
rootBoundary: g,
|
15938
15949
|
altBoundary: m,
|
15939
15950
|
padding: A
|
15940
15951
|
}), fe = J ? $ ? _e : ue : $ ? Me : ce;
|
15941
|
-
|
15952
|
+
_[le] > x[le] && (fe = qt(fe));
|
15942
15953
|
var Je = qt(fe), he = [];
|
15943
|
-
if (s && he.push(
|
15954
|
+
if (s && he.push(Z[U] <= 0), l && he.push(Z[fe] <= 0, Z[Je] <= 0), he.every(function(Oe) {
|
15944
15955
|
return Oe;
|
15945
15956
|
})) {
|
15946
|
-
|
15957
|
+
N = I, k = !1;
|
15947
15958
|
break;
|
15948
15959
|
}
|
15949
|
-
C.set(
|
15960
|
+
C.set(I, he);
|
15950
15961
|
}
|
15951
|
-
if (
|
15962
|
+
if (k)
|
15952
15963
|
for (var Ge = p ? 3 : 1, Ze = function(z) {
|
15953
|
-
var H =
|
15954
|
-
var
|
15955
|
-
if (
|
15956
|
-
return
|
15964
|
+
var H = L.find(function(Y) {
|
15965
|
+
var oe = C.get(Y);
|
15966
|
+
if (oe)
|
15967
|
+
return oe.slice(0, z).every(function(Ne) {
|
15957
15968
|
return Ne;
|
15958
15969
|
});
|
15959
15970
|
});
|
15960
15971
|
if (H)
|
15961
|
-
return
|
15972
|
+
return N = H, "break";
|
15962
15973
|
}, ze = Ge; ze > 0; ze--) {
|
15963
15974
|
var Ye = Ze(ze);
|
15964
15975
|
if (Ye === "break")
|
15965
15976
|
break;
|
15966
15977
|
}
|
15967
|
-
t.placement !==
|
15978
|
+
t.placement !== N && (t.modifiersData[f]._skip = !0, t.placement = N, t.reset = !0);
|
15968
15979
|
}
|
15969
15980
|
}
|
15970
15981
|
var oA = {
|
@@ -15998,15 +16009,15 @@ function lA(e) {
|
|
15998
16009
|
elementContext: "reference"
|
15999
16010
|
}), l = jt(t, {
|
16000
16011
|
altBoundary: !0
|
16001
|
-
}), c = Hf(i, f), A = Hf(l, a, s),
|
16012
|
+
}), c = Hf(i, f), A = Hf(l, a, s), d = Wf(c), g = Wf(A);
|
16002
16013
|
t.modifiersData[n] = {
|
16003
16014
|
referenceClippingOffsets: c,
|
16004
16015
|
popperEscapeOffsets: A,
|
16005
|
-
isReferenceHidden:
|
16006
|
-
hasPopperEscaped:
|
16016
|
+
isReferenceHidden: d,
|
16017
|
+
hasPopperEscaped: g
|
16007
16018
|
}, t.attributes.popper = Object.assign({}, t.attributes.popper, {
|
16008
|
-
"data-popper-reference-hidden":
|
16009
|
-
"data-popper-escaped":
|
16019
|
+
"data-popper-reference-hidden": d,
|
16020
|
+
"data-popper-escaped": g
|
16010
16021
|
});
|
16011
16022
|
}
|
16012
16023
|
var rA = {
|
@@ -16029,8 +16040,8 @@ function AA(e, t, n) {
|
|
16029
16040
|
};
|
16030
16041
|
}
|
16031
16042
|
function cA(e) {
|
16032
|
-
var t = e.state, n = e.options, f = e.name, a = n.offset, s = a === void 0 ? [0, 0] : a, i = _a.reduce(function(
|
16033
|
-
return g
|
16043
|
+
var t = e.state, n = e.options, f = e.name, a = n.offset, s = a === void 0 ? [0, 0] : a, i = _a.reduce(function(d, g) {
|
16044
|
+
return d[g] = AA(g, t.rects, s), d;
|
16034
16045
|
}, {}), l = i[t.placement], c = l.x, A = l.y;
|
16035
16046
|
t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += A), t.modifiersData[f] = i;
|
16036
16047
|
}
|
@@ -16061,34 +16072,34 @@ function mA(e) {
|
|
16061
16072
|
return e === "x" ? "y" : "x";
|
16062
16073
|
}
|
16063
16074
|
function pA(e) {
|
16064
|
-
var t = e.state, n = e.options, f = e.name, a = n.mainAxis, s = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, c = n.boundary, A = n.rootBoundary,
|
16075
|
+
var t = e.state, n = e.options, f = e.name, a = n.mainAxis, s = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, c = n.boundary, A = n.rootBoundary, d = n.altBoundary, g = n.padding, m = n.tether, M = m === void 0 ? !0 : m, p = n.tetherOffset, y = p === void 0 ? 0 : p, h = jt(t, {
|
16065
16076
|
boundary: c,
|
16066
16077
|
rootBoundary: A,
|
16067
|
-
padding:
|
16068
|
-
altBoundary:
|
16069
|
-
}),
|
16078
|
+
padding: g,
|
16079
|
+
altBoundary: d
|
16080
|
+
}), V = Te(t.placement), S = ot(t.placement), j = !S, L = mf(V), _ = mA(L), x = t.modifiersData.popperOffsets, C = t.rects.reference, k = t.rects.popper, N = typeof y == "function" ? y(Object.assign({}, t.rects, {
|
16070
16081
|
placement: t.placement
|
16071
|
-
})) : y,
|
16072
|
-
mainAxis:
|
16073
|
-
altAxis:
|
16082
|
+
})) : y, w = typeof N == "number" ? {
|
16083
|
+
mainAxis: N,
|
16084
|
+
altAxis: N
|
16074
16085
|
} : Object.assign({
|
16075
16086
|
mainAxis: 0,
|
16076
16087
|
altAxis: 0
|
16077
|
-
},
|
16088
|
+
}, N), I = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, U = {
|
16078
16089
|
x: 0,
|
16079
16090
|
y: 0
|
16080
16091
|
};
|
16081
|
-
if (
|
16092
|
+
if (x) {
|
16082
16093
|
if (s) {
|
16083
|
-
var $, J =
|
16094
|
+
var $, J = L === "y" ? ce : ue, le = L === "y" ? Me : _e, Z = L === "y" ? "height" : "width", fe = x[L], Je = fe + h[J], he = fe - h[le], Ge = M ? -k[Z] / 2 : 0, Ze = S === ft ? C[Z] : k[Z], ze = S === ft ? -k[Z] : -C[Z], Ye = t.elements.arrow, Oe = M && Ye ? gf(Ye) : {
|
16084
16095
|
width: 0,
|
16085
16096
|
height: 0
|
16086
|
-
}, z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ka(), H = z[J], Y = z[
|
16087
|
-
|
16097
|
+
}, z = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ka(), H = z[J], Y = z[le], oe = It(0, C[Z], Oe[Z]), Ne = j ? C[Z] / 2 - Ge - oe - H - w.mainAxis : Ze - oe - H - w.mainAxis, Pe = j ? -C[Z] / 2 + Ge + oe + Y + w.mainAxis : ze + oe + Y + w.mainAxis, Dn = t.elements.arrow && Ct(t.elements.arrow), Ca = Dn ? L === "y" ? Dn.clientTop || 0 : Dn.clientLeft || 0 : 0, bf = ($ = I == null ? void 0 : I[L]) != null ? $ : 0, za = fe + Ne - bf - Ca, Oa = fe + Pe - bf, Mf = It(M ? _n(Je, za) : Je, fe, M ? He(he, Oa) : he);
|
16098
|
+
x[L] = Mf, U[L] = Mf - fe;
|
16088
16099
|
}
|
16089
16100
|
if (l) {
|
16090
|
-
var _f, La =
|
16091
|
-
|
16101
|
+
var _f, La = L === "x" ? ce : ue, Ua = L === "x" ? Me : _e, Fe = x[_], Ut = _ === "y" ? "height" : "width", If = Fe + h[La], wf = Fe - h[Ua], En = [ce, ue].indexOf(V) !== -1, kf = (_f = I == null ? void 0 : I[_]) != null ? _f : 0, Nf = En ? If : Fe - C[Ut] - k[Ut] - kf + w.altAxis, Df = En ? Fe + C[Ut] + k[Ut] - kf - w.altAxis : wf, Ef = M && En ? Rr(Nf, Fe, Df) : It(M ? Nf : If, Fe, M ? Df : wf);
|
16102
|
+
x[_] = Ef, U[_] = Ef - Fe;
|
16092
16103
|
}
|
16093
16104
|
t.modifiersData[f] = U;
|
16094
16105
|
}
|
@@ -16195,7 +16206,7 @@ function NA(e) {
|
|
16195
16206
|
var t = e, n = t.defaultModifiers, f = n === void 0 ? [] : n, a = t.defaultOptions, s = a === void 0 ? Kf : a;
|
16196
16207
|
return function(l, c, A) {
|
16197
16208
|
A === void 0 && (A = s);
|
16198
|
-
var
|
16209
|
+
var d = {
|
16199
16210
|
placement: "bottom",
|
16200
16211
|
orderedModifiers: [],
|
16201
16212
|
options: Object.assign({}, Kf, s),
|
@@ -16206,48 +16217,48 @@ function NA(e) {
|
|
16206
16217
|
},
|
16207
16218
|
attributes: {},
|
16208
16219
|
styles: {}
|
16209
|
-
},
|
16210
|
-
state:
|
16211
|
-
setOptions: function(
|
16212
|
-
var
|
16213
|
-
y(),
|
16220
|
+
}, g = [], m = !1, M = {
|
16221
|
+
state: d,
|
16222
|
+
setOptions: function(V) {
|
16223
|
+
var S = typeof V == "function" ? V(d.options) : V;
|
16224
|
+
y(), d.options = Object.assign({}, s, d.options, S), d.scrollParents = {
|
16214
16225
|
reference: at(l) ? wt(l) : l.contextElement ? wt(l.contextElement) : [],
|
16215
16226
|
popper: wt(c)
|
16216
16227
|
};
|
16217
|
-
var j = IA(kA([].concat(f,
|
16218
|
-
return
|
16219
|
-
return
|
16228
|
+
var j = IA(kA([].concat(f, d.options.modifiers)));
|
16229
|
+
return d.orderedModifiers = j.filter(function(L) {
|
16230
|
+
return L.enabled;
|
16220
16231
|
}), p(), M.update();
|
16221
16232
|
},
|
16222
16233
|
forceUpdate: function() {
|
16223
16234
|
if (!m) {
|
16224
|
-
var
|
16225
|
-
if (Jf(
|
16226
|
-
|
16227
|
-
reference: MA(
|
16235
|
+
var V = d.elements, S = V.reference, j = V.popper;
|
16236
|
+
if (Jf(S, j)) {
|
16237
|
+
d.rects = {
|
16238
|
+
reference: MA(S, Ct(j), d.options.strategy === "fixed"),
|
16228
16239
|
popper: gf(j)
|
16229
|
-
},
|
16230
|
-
return
|
16240
|
+
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(w) {
|
16241
|
+
return d.modifiersData[w.name] = Object.assign({}, w.data);
|
16231
16242
|
});
|
16232
|
-
for (var
|
16233
|
-
if (
|
16234
|
-
|
16243
|
+
for (var L = 0; L < d.orderedModifiers.length; L++) {
|
16244
|
+
if (d.reset === !0) {
|
16245
|
+
d.reset = !1, L = -1;
|
16235
16246
|
continue;
|
16236
16247
|
}
|
16237
|
-
var
|
16238
|
-
typeof
|
16239
|
-
state:
|
16240
|
-
options:
|
16241
|
-
name:
|
16248
|
+
var _ = d.orderedModifiers[L], x = _.fn, C = _.options, k = C === void 0 ? {} : C, N = _.name;
|
16249
|
+
typeof x == "function" && (d = x({
|
16250
|
+
state: d,
|
16251
|
+
options: k,
|
16252
|
+
name: N,
|
16242
16253
|
instance: M
|
16243
|
-
}) ||
|
16254
|
+
}) || d);
|
16244
16255
|
}
|
16245
16256
|
}
|
16246
16257
|
}
|
16247
16258
|
},
|
16248
16259
|
update: wA(function() {
|
16249
16260
|
return new Promise(function(h) {
|
16250
|
-
M.forceUpdate(), h(
|
16261
|
+
M.forceUpdate(), h(d);
|
16251
16262
|
});
|
16252
16263
|
}),
|
16253
16264
|
destroy: function() {
|
@@ -16260,24 +16271,24 @@ function NA(e) {
|
|
16260
16271
|
!m && A.onFirstUpdate && A.onFirstUpdate(h);
|
16261
16272
|
});
|
16262
16273
|
function p() {
|
16263
|
-
|
16264
|
-
var
|
16265
|
-
if (typeof
|
16266
|
-
var
|
16267
|
-
state:
|
16268
|
-
name:
|
16274
|
+
d.orderedModifiers.forEach(function(h) {
|
16275
|
+
var V = h.name, S = h.options, j = S === void 0 ? {} : S, L = h.effect;
|
16276
|
+
if (typeof L == "function") {
|
16277
|
+
var _ = L({
|
16278
|
+
state: d,
|
16279
|
+
name: V,
|
16269
16280
|
instance: M,
|
16270
16281
|
options: j
|
16271
|
-
}),
|
16282
|
+
}), x = function() {
|
16272
16283
|
};
|
16273
|
-
|
16284
|
+
g.push(_ || x);
|
16274
16285
|
}
|
16275
16286
|
});
|
16276
16287
|
}
|
16277
16288
|
function y() {
|
16278
|
-
|
16289
|
+
g.forEach(function(h) {
|
16279
16290
|
return h();
|
16280
|
-
}),
|
16291
|
+
}), g = [];
|
16281
16292
|
}
|
16282
16293
|
return M;
|
16283
16294
|
};
|
@@ -16299,10 +16310,10 @@ function TA(e, t, n, f = []) {
|
|
16299
16310
|
if (l[kn][0].includes(t.toLocaleLowerCase())) {
|
16300
16311
|
let A = l[va];
|
16301
16312
|
if (n !== Mn && Array.isArray(l[$t])) {
|
16302
|
-
const
|
16303
|
-
(
|
16313
|
+
const d = ((c = l[$t]) == null ? void 0 : c.findIndex(
|
16314
|
+
(g) => g.includes(n)
|
16304
16315
|
)) || -1;
|
16305
|
-
|
16316
|
+
d !== -1 && l[$t] && (A = l[$t][d]);
|
16306
16317
|
}
|
16307
16318
|
return i.push({
|
16308
16319
|
...l,
|
@@ -16343,8 +16354,8 @@ const jA = W({
|
|
16343
16354
|
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((p) => {
|
16344
16355
|
e.options.groupNames[p] ? c[p] = e.options.groupNames[p] : c[p] = Va(p);
|
16345
16356
|
});
|
16346
|
-
const
|
16347
|
-
function
|
16357
|
+
const d = xa() ? "is-mac" : "";
|
16358
|
+
function g(p) {
|
16348
16359
|
t(p);
|
16349
16360
|
}
|
16350
16361
|
function m(p) {
|
@@ -16356,10 +16367,10 @@ const jA = W({
|
|
16356
16367
|
}
|
16357
16368
|
function M(p, y) {
|
16358
16369
|
var h;
|
16359
|
-
const
|
16360
|
-
|
16370
|
+
const V = (h = p == null ? void 0 : p.target) == null ? void 0 : h.closest("button");
|
16371
|
+
V && (V.innerHTML = `<span>${Ht(y)}</span>`);
|
16361
16372
|
}
|
16362
|
-
return
|
16373
|
+
return G(
|
16363
16374
|
() => e.activeGroup,
|
16364
16375
|
() => {
|
16365
16376
|
var p;
|
@@ -16373,14 +16384,14 @@ const jA = W({
|
|
16373
16384
|
GROUP_NAMES: ha,
|
16374
16385
|
handleClick: m,
|
16375
16386
|
handleError: M,
|
16376
|
-
handleMouseEnter:
|
16387
|
+
handleMouseEnter: g,
|
16377
16388
|
native: e.options.native,
|
16378
16389
|
unicodeToEmoji: Ht,
|
16379
16390
|
EMOJI_RESULT_KEY: Et,
|
16380
16391
|
EMOJI_NAME_KEY: kn,
|
16381
16392
|
hasGroupNames: i,
|
16382
16393
|
isSticky: l,
|
16383
|
-
platform:
|
16394
|
+
platform: d,
|
16384
16395
|
groupNames: c,
|
16385
16396
|
orderedKeys: A
|
16386
16397
|
};
|
@@ -16393,7 +16404,7 @@ function UA(e, t, n, f, a, s) {
|
|
16393
16404
|
return r(), u("div", xA, [
|
16394
16405
|
o("div", {
|
16395
16406
|
ref: "bodyInner",
|
16396
|
-
class:
|
16407
|
+
class: O([e.platform, "v3-body-inner"])
|
16397
16408
|
}, [
|
16398
16409
|
e.orderedKeys.length ? (r(!0), u(q, { key: 0 }, te(e.orderedKeys, (i) => (r(), u("div", {
|
16399
16410
|
id: i,
|
@@ -16402,8 +16413,8 @@ function UA(e, t, n, f, a, s) {
|
|
16402
16413
|
}, [
|
16403
16414
|
e.hasGroupNames ? Ae((r(), u("h5", {
|
16404
16415
|
key: 0,
|
16405
|
-
class:
|
16406
|
-
},
|
16416
|
+
class: O(e.isSticky ? "v3-sticky" : "")
|
16417
|
+
}, T(e.groupNames[i]), 3)), [
|
16407
16418
|
[We, e.emojis[i]]
|
16408
16419
|
]) : v("", !0),
|
16409
16420
|
Ae(o("div", SA, [
|
@@ -16413,7 +16424,7 @@ function UA(e, t, n, f, a, s) {
|
|
16413
16424
|
onMouseenter: (c) => e.handleMouseEnter(l),
|
16414
16425
|
onClick: (c) => e.handleClick(l)
|
16415
16426
|
}, [
|
16416
|
-
e.native ? (r(), u("span", zA,
|
16427
|
+
e.native ? (r(), u("span", zA, T(e.unicodeToEmoji(l.r)), 1)) : (r(), u("img", {
|
16417
16428
|
key: 1,
|
16418
16429
|
src: e.EMOJI_REMOTE_SRC + `/${l.r}.png`,
|
16419
16430
|
alt: l.n[0],
|
@@ -16435,19 +16446,19 @@ const WA = W({
|
|
16435
16446
|
() => t.options.staticTexts.placeholder || ""
|
16436
16447
|
), c = Q({
|
16437
16448
|
get: () => t.search,
|
16438
|
-
set: (
|
16449
|
+
set: (g) => n(g)
|
16439
16450
|
}), A = [
|
16440
16451
|
...t.groups,
|
16441
|
-
...Object.keys(t.options.additionalGroups).map((
|
16442
|
-
key:
|
16443
|
-
title: t.options.groupNames[
|
16452
|
+
...Object.keys(t.options.additionalGroups).map((g) => ({
|
16453
|
+
key: g,
|
16454
|
+
title: t.options.groupNames[g] ? t.options.groupNames[g] : Va(g)
|
16444
16455
|
}))
|
16445
|
-
],
|
16446
|
-
return i.forEach((
|
16447
|
-
const m = A.findIndex((M) => M.key ===
|
16448
|
-
m !== -1 && (
|
16456
|
+
], d = [];
|
16457
|
+
return i.forEach((g) => {
|
16458
|
+
const m = A.findIndex((M) => M.key === g);
|
16459
|
+
m !== -1 && (d.push(A[m]), A.splice(m, 1));
|
16449
16460
|
}), {
|
16450
|
-
orderedGroups:
|
16461
|
+
orderedGroups: d,
|
16451
16462
|
orderedKeys: i,
|
16452
16463
|
searchValue: c,
|
16453
16464
|
updateActiveGroup: f,
|
@@ -16487,7 +16498,7 @@ function fc(e, t, n, f, a, s) {
|
|
16487
16498
|
(r(!0), u(q, null, te(e.orderedGroups, (i) => (r(), u("button", {
|
16488
16499
|
key: i.key,
|
16489
16500
|
type: "button",
|
16490
|
-
class:
|
16501
|
+
class: O(["v3-group", {
|
16491
16502
|
"v3-is-hidden": !e.icons[i.key]
|
16492
16503
|
}]),
|
16493
16504
|
onClick: (l) => e.updateActiveGroup(i.key)
|
@@ -16528,13 +16539,13 @@ const sc = W({
|
|
16528
16539
|
function A(m = !0) {
|
16529
16540
|
n.value = m;
|
16530
16541
|
}
|
16531
|
-
function
|
16542
|
+
function d() {
|
16532
16543
|
n.value = !n.value;
|
16533
16544
|
}
|
16534
|
-
function
|
16545
|
+
function g(m) {
|
16535
16546
|
t(m), A(!1);
|
16536
16547
|
}
|
16537
|
-
return
|
16548
|
+
return G(
|
16538
16549
|
() => e.emoji,
|
16539
16550
|
() => {
|
16540
16551
|
f.value = !1;
|
@@ -16545,8 +16556,8 @@ const sc = W({
|
|
16545
16556
|
updateSkinToneState: A,
|
16546
16557
|
skinTone: n,
|
16547
16558
|
stateSkinTone: a,
|
16548
|
-
selectSkinTone:
|
16549
|
-
toggleSkinToneState:
|
16559
|
+
selectSkinTone: g,
|
16560
|
+
toggleSkinToneState: d,
|
16550
16561
|
EMOJI_RESULT_KEY: Et,
|
16551
16562
|
EMOJI_NAME_KEY: kn,
|
16552
16563
|
skinToneText: s,
|
@@ -16565,16 +16576,16 @@ function uc(e, t, n, f, a, s) {
|
|
16565
16576
|
}, [
|
16566
16577
|
o("div", ic, [
|
16567
16578
|
o("span", {
|
16568
|
-
class:
|
16579
|
+
class: O([e.platform, "v3-icon"])
|
16569
16580
|
}, [
|
16570
|
-
e.native || e.hasError ? (r(), u("span", oc,
|
16581
|
+
e.native || e.hasError ? (r(), u("span", oc, T(e.unicodeToEmoji(e.emoji.r)), 1)) : (r(), u("img", {
|
16571
16582
|
key: 1,
|
16572
16583
|
alt: e.unicodeToEmoji(e.emoji.r),
|
16573
16584
|
src: e.emoji.src,
|
16574
16585
|
onError: t[0] || (t[0] = (i) => e.hasError = !0)
|
16575
16586
|
}, null, 40, lc))
|
16576
16587
|
], 2),
|
16577
|
-
o("span", rc, " :" +
|
16588
|
+
o("span", rc, " :" + T(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
|
16578
16589
|
]),
|
16579
16590
|
e.hasSkinTones ? (r(), u(q, { key: 0 }, [
|
16580
16591
|
o("button", {
|
@@ -16582,18 +16593,18 @@ function uc(e, t, n, f, a, s) {
|
|
16582
16593
|
class: "v3-tone",
|
16583
16594
|
onClick: t[1] || (t[1] = (...i) => e.toggleSkinToneState && e.toggleSkinToneState(...i))
|
16584
16595
|
}, [
|
16585
|
-
o("span", Ac,
|
16596
|
+
o("span", Ac, T(e.skinToneText), 1),
|
16586
16597
|
o("span", {
|
16587
|
-
class:
|
16598
|
+
class: O(`v3-icon v3-tone-${e.stateSkinTone}`)
|
16588
16599
|
}, null, 2)
|
16589
16600
|
]),
|
16590
16601
|
o("div", {
|
16591
|
-
class:
|
16602
|
+
class: O([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
16592
16603
|
}, [
|
16593
16604
|
(r(!0), u(q, null, te(e.SKIN_TONES, (i) => (r(), u("button", {
|
16594
16605
|
key: i,
|
16595
16606
|
type: "button",
|
16596
|
-
class:
|
16607
|
+
class: O(["v3-skin-tone-" + i, "v3-skin-tone"]),
|
16597
16608
|
onClick: (l) => e.selectSkinTone(i)
|
16598
16609
|
}, null, 10, cc))), 128))
|
16599
16610
|
], 2)
|
@@ -16641,11 +16652,11 @@ const gc = W({
|
|
16641
16652
|
setup(e, { emit: t }) {
|
16642
16653
|
const n = b(), f = b(), a = b(), s = b(!1), i = b(e.text), l = e.type === "input" || e.type === "textarea";
|
16643
16654
|
let c = -1;
|
16644
|
-
const { state: A } = ee("store"),
|
16645
|
-
function
|
16655
|
+
const { state: A } = ee("store"), d = Q(() => A.options.colorTheme);
|
16656
|
+
function g(h) {
|
16646
16657
|
if (l) {
|
16647
|
-
const
|
16648
|
-
|
16658
|
+
const V = A.options.mode;
|
16659
|
+
V === "prepend" ? i.value = h.i + i.value : V === "insert" && c !== -1 ? (i.value = `${i.value.slice(0, c)}${h.i}${i.value.slice(c)}`, c += h.i.length) : i.value += h.i, t("update:text", i.value);
|
16649
16660
|
}
|
16650
16661
|
t("select", h);
|
16651
16662
|
}
|
@@ -16654,8 +16665,8 @@ const gc = W({
|
|
16654
16665
|
n.value && (c = ((h = n.value) == null ? void 0 : h.selectionEnd) || -1);
|
16655
16666
|
}
|
16656
16667
|
function M(h) {
|
16657
|
-
var
|
16658
|
-
!((
|
16668
|
+
var V;
|
16669
|
+
!((V = h.target) != null && V.closest(
|
16659
16670
|
".v3-input-picker-wrap"
|
16660
16671
|
)) && s.value && (s.value = !1);
|
16661
16672
|
}
|
@@ -16678,14 +16689,14 @@ const gc = W({
|
|
16678
16689
|
function y(h) {
|
16679
16690
|
i.value = h.target.value || "", t("update:text", i.value);
|
16680
16691
|
}
|
16681
|
-
return
|
16692
|
+
return ie(() => {
|
16682
16693
|
p();
|
16683
16694
|
}), Qa(() => {
|
16684
16695
|
document.body.removeEventListener("click", M);
|
16685
16696
|
}), {
|
16686
16697
|
face: ja,
|
16687
16698
|
open: s,
|
16688
|
-
onSelect:
|
16699
|
+
onSelect: g,
|
16689
16700
|
input: i,
|
16690
16701
|
elem: n,
|
16691
16702
|
updateCursor: m,
|
@@ -16693,7 +16704,7 @@ const gc = W({
|
|
16693
16704
|
picker: a,
|
16694
16705
|
isInputType: l,
|
16695
16706
|
onChangeText: y,
|
16696
|
-
colorTheme:
|
16707
|
+
colorTheme: d
|
16697
16708
|
};
|
16698
16709
|
}
|
16699
16710
|
}), mc = {
|
@@ -16721,7 +16732,7 @@ function bc(e, t, n, f, a, s) {
|
|
16721
16732
|
onBlur: t[3] || (t[3] = (...A) => e.updateCursor && e.updateCursor(...A))
|
16722
16733
|
}, null, 40, vc)),
|
16723
16734
|
o("div", {
|
16724
|
-
class:
|
16735
|
+
class: O(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
16725
16736
|
}, [
|
16726
16737
|
o("button", {
|
16727
16738
|
ref: "button",
|
@@ -16736,7 +16747,7 @@ function bc(e, t, n, f, a, s) {
|
|
16736
16747
|
], 512),
|
16737
16748
|
o("div", {
|
16738
16749
|
ref: "picker",
|
16739
|
-
class:
|
16750
|
+
class: O(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
16740
16751
|
}, [
|
16741
16752
|
F(i),
|
16742
16753
|
F(l, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
@@ -16746,7 +16757,7 @@ function bc(e, t, n, f, a, s) {
|
|
16746
16757
|
])
|
16747
16758
|
])) : (r(), u("div", {
|
16748
16759
|
key: 1,
|
16749
|
-
class:
|
16760
|
+
class: O(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
16750
16761
|
}, [
|
16751
16762
|
F(i),
|
16752
16763
|
F(l, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
@@ -16898,39 +16909,39 @@ const kc = {
|
|
16898
16909
|
s(i().text + M.i);
|
16899
16910
|
}, A = () => {
|
16900
16911
|
t.mode == "click" && t.state == "active" && (n.value.style.display = "inherit");
|
16901
|
-
}, g = () => {
|
16902
|
-
t.mode == "hover" && t.state == "active" && (n.value.style.display = "inherit");
|
16903
16912
|
}, d = () => {
|
16913
|
+
t.mode == "hover" && t.state == "active" && (n.value.style.display = "inherit");
|
16914
|
+
}, g = () => {
|
16904
16915
|
t.mode == "hover" && t.state == "active" && (n.value.style.display = "none");
|
16905
16916
|
}, m = (M) => {
|
16906
16917
|
t.mode == "click" && !f.value.contains(M.target) && !n.value.contains(M.target) && (n.value.style.display = "none");
|
16907
16918
|
};
|
16908
|
-
return
|
16919
|
+
return ie(() => {
|
16909
16920
|
n.value.style.display = "none", document.addEventListener("click", m);
|
16910
16921
|
}), Ke(() => {
|
16911
16922
|
document.removeEventListener("click", m);
|
16912
16923
|
}), (M, p) => (r(), u(q, null, [
|
16913
|
-
|
16924
|
+
E(i)().isRecording ? v("", !0) : (r(), u("div", {
|
16914
16925
|
key: 0,
|
16915
16926
|
ref_key: "emojiButton",
|
16916
16927
|
ref: f,
|
16917
|
-
class:
|
16928
|
+
class: O(["button", { "button-disabled": e.state == "disabled" }]),
|
16918
16929
|
onClick: A,
|
16919
|
-
onMouseover:
|
16920
|
-
onMouseout:
|
16930
|
+
onMouseover: d,
|
16931
|
+
onMouseout: g
|
16921
16932
|
}, p[0] || (p[0] = [
|
16922
16933
|
o("span", { class: "pi pi-face-smile" }, null, -1)
|
16923
16934
|
]), 34)),
|
16924
|
-
F(
|
16935
|
+
F(X, null, {
|
16925
16936
|
default: K(() => [
|
16926
16937
|
o("div", {
|
16927
16938
|
ref_key: "emoji",
|
16928
16939
|
ref: n,
|
16929
16940
|
class: "emoji",
|
16930
|
-
onMouseover:
|
16931
|
-
onMouseout:
|
16941
|
+
onMouseover: d,
|
16942
|
+
onMouseout: g
|
16932
16943
|
}, [
|
16933
|
-
F(
|
16944
|
+
F(E(wc), {
|
16934
16945
|
native: !0,
|
16935
16946
|
theme: l.value,
|
16936
16947
|
"picker-type": "",
|
@@ -16942,7 +16953,7 @@ const kc = {
|
|
16942
16953
|
})
|
16943
16954
|
], 64));
|
16944
16955
|
}
|
16945
|
-
},
|
16956
|
+
}, Og = /* @__PURE__ */ R(kc, [["__scopeId", "data-v-83befe43"]]), Nc = { class: "context-menu__container" }, Dc = { class: "context-menu__list" }, Ec = ["onClick"], Tc = ["src"], jc = {
|
16946
16957
|
__name: "ContextMenu",
|
16947
16958
|
props: {
|
16948
16959
|
actions: {
|
@@ -16970,14 +16981,14 @@ const kc = {
|
|
16970
16981
|
height: "18"
|
16971
16982
|
}, null, 8, Tc)) : l.prime ? (r(), u("i", {
|
16972
16983
|
key: 1,
|
16973
|
-
class:
|
16984
|
+
class: O("pi pi-" + l.prime)
|
16974
16985
|
}, null, 2)) : v("", !0),
|
16975
|
-
o("span", null,
|
16986
|
+
o("span", null, T(l.title), 1)
|
16976
16987
|
], 8, Ec))), 128))
|
16977
16988
|
])
|
16978
16989
|
]));
|
16979
16990
|
}
|
16980
|
-
}, $e = /* @__PURE__ */ R(jc, [["__scopeId", "data-v-
|
16991
|
+
}, $e = /* @__PURE__ */ R(jc, [["__scopeId", "data-v-688106b2"]]), mt = b([]), xc = (e) => {
|
16981
16992
|
const t = b(0);
|
16982
16993
|
let n = mt.value.find(({ id: a }) => a == e);
|
16983
16994
|
return n != null ? t.value = mt.value.indexOf(n) : (mt.value.push({
|
@@ -17012,32 +17023,32 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
|
|
17012
17023
|
if (s.isFeedLocation) return "40px";
|
17013
17024
|
if (!s.isFeedLocation) return "20px";
|
17014
17025
|
});
|
17015
|
-
|
17026
|
+
G(
|
17016
17027
|
() => [f().text, l.value],
|
17017
17028
|
() => {
|
17018
17029
|
l.value == f().text ? a("search", f().text) : l.value = f().text;
|
17019
17030
|
}
|
17020
17031
|
);
|
17021
17032
|
const A = () => {
|
17022
|
-
const
|
17023
|
-
|
17033
|
+
const d = E(i);
|
17034
|
+
d && (d.value = ""), f().text = "", a("cancel");
|
17024
17035
|
};
|
17025
|
-
return
|
17026
|
-
const
|
17027
|
-
|
17028
|
-
}), (
|
17036
|
+
return ie(() => {
|
17037
|
+
const d = E(i);
|
17038
|
+
d == null || d.focus();
|
17039
|
+
}), (d, g) => (r(), B(X, null, {
|
17029
17040
|
default: K(() => [
|
17030
17041
|
o("div", Sc, [
|
17031
|
-
o("span", Cc,
|
17042
|
+
o("span", Cc, T(E(pe)("component.FeedSearch.SearchLabel")), 1),
|
17032
17043
|
Ae(o("input", {
|
17033
17044
|
ref_key: "refInput",
|
17034
17045
|
ref: i,
|
17035
17046
|
class: "feed-search__input",
|
17036
17047
|
type: "text",
|
17037
|
-
placeholder:
|
17038
|
-
"onUpdate:modelValue":
|
17048
|
+
placeholder: E(pe)("component.FeedSearch.SearchPlaceholder"),
|
17049
|
+
"onUpdate:modelValue": g[0] || (g[0] = (m) => E(f)().text = m)
|
17039
17050
|
}, null, 8, zc), [
|
17040
|
-
[lt,
|
17051
|
+
[lt, E(f)().text]
|
17041
17052
|
]),
|
17042
17053
|
o("i", {
|
17043
17054
|
class: "pi pi-times",
|
@@ -17048,14 +17059,14 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
|
|
17048
17059
|
key: 0,
|
17049
17060
|
class: "pi pi-refresh",
|
17050
17061
|
style: { "margin-left": "5px", "margin-top": "10px", cursor: "pointer" },
|
17051
|
-
onClick:
|
17062
|
+
onClick: g[1] || (g[1] = (m) => a("switch"))
|
17052
17063
|
})) : v("", !0)
|
17053
17064
|
])
|
17054
17065
|
]),
|
17055
17066
|
_: 1
|
17056
17067
|
}));
|
17057
17068
|
}
|
17058
|
-
}),
|
17069
|
+
}), Lg = /* @__PURE__ */ R(Oc, [["__scopeId", "data-v-d91a628f"]]), Lc = { class: "feed-found-item__avatar-container" }, Uc = ["src"], Bc = {
|
17059
17070
|
key: 1,
|
17060
17071
|
class: "pi pi-user"
|
17061
17072
|
}, Rc = { class: "feed-found-item__info" }, Qc = { class: "feed-found-item__first-line" }, $c = { class: "feed-found-item__name" }, Yc = { class: "feed-found-item__time" }, Pc = { class: "feed-found-item__second-line" }, Fc = ["src"], qc = /* @__PURE__ */ W({
|
@@ -17081,7 +17092,7 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
|
|
17081
17092
|
return f[t.object.type] ? f[t.object.type] : null;
|
17082
17093
|
});
|
17083
17094
|
return (f, a) => (r(), u("div", {
|
17084
|
-
class:
|
17095
|
+
class: O(["feed-found-item__container", { "feed-found-item__selected-container": e.selected }])
|
17085
17096
|
}, [
|
17086
17097
|
o("div", Lc, [
|
17087
17098
|
e.object.avatar ? (r(), u("img", {
|
@@ -17093,8 +17104,8 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
|
|
17093
17104
|
]),
|
17094
17105
|
o("div", Rc, [
|
17095
17106
|
o("div", Qc, [
|
17096
|
-
o("p", $c,
|
17097
|
-
o("p", Yc,
|
17107
|
+
o("p", $c, T(e.object.subtext), 1),
|
17108
|
+
o("p", Yc, T(e.object.time), 1)
|
17098
17109
|
]),
|
17099
17110
|
o("div", Pc, [
|
17100
17111
|
e.object.type == "message.image" ? (r(), u("img", {
|
@@ -17106,10 +17117,10 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
|
|
17106
17117
|
}, null, 8, Fc)) : v("", !0),
|
17107
17118
|
n.value ? (r(), u("span", {
|
17108
17119
|
key: 1,
|
17109
|
-
class:
|
17120
|
+
class: O(n.value),
|
17110
17121
|
style: { "margin-right": "3px", "font-size": "20px" }
|
17111
17122
|
}, null, 2)) : v("", !0),
|
17112
|
-
o("p", null,
|
17123
|
+
o("p", null, T(e.object.text), 1)
|
17113
17124
|
])
|
17114
17125
|
])
|
17115
17126
|
], 2));
|
@@ -17142,11 +17153,11 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
|
|
17142
17153
|
}), l = (A) => {
|
17143
17154
|
A.messageId && (n("clickedSearch", A.messageId), s.value = A);
|
17144
17155
|
}, c = () => {
|
17145
|
-
const A =
|
17156
|
+
const A = E(a);
|
17146
17157
|
A.scrollHeight - A.scrollTop - A.clientHeight <= 0 && n("loadMore");
|
17147
17158
|
};
|
17148
|
-
return (A,
|
17149
|
-
o("h3", Wc,
|
17159
|
+
return (A, d) => (r(), u(q, null, [
|
17160
|
+
o("h3", Wc, T(E(pe)("component.FeedFoundObjects.results")) + ": " + T(e.foundAmount), 1),
|
17150
17161
|
e.foundAmount > 0 ? (r(), u("div", {
|
17151
17162
|
key: 0,
|
17152
17163
|
class: "feed-found-objects__items",
|
@@ -17154,20 +17165,20 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
|
|
17154
17165
|
ref: a,
|
17155
17166
|
onScroll: c
|
17156
17167
|
}, [
|
17157
|
-
(r(!0), u(q, null, te(e.objects, (
|
17158
|
-
onClick: (m) => l(
|
17168
|
+
(r(!0), u(q, null, te(e.objects, (g) => (r(), u("div", {
|
17169
|
+
onClick: (m) => l(g)
|
17159
17170
|
}, [
|
17160
17171
|
F(Hc, {
|
17161
|
-
object:
|
17162
|
-
selected:
|
17172
|
+
object: g,
|
17173
|
+
selected: g == s.value
|
17163
17174
|
}, null, 8, ["object", "selected"])
|
17164
17175
|
], 8, Kc))), 256))
|
17165
17176
|
], 544)) : e.foundAmount == 0 ? (r(), u("div", Jc, [
|
17166
|
-
o("p", null,
|
17177
|
+
o("p", null, T(i.value), 1)
|
17167
17178
|
])) : v("", !0)
|
17168
17179
|
], 64));
|
17169
17180
|
}
|
17170
|
-
}),
|
17181
|
+
}), Ug = /* @__PURE__ */ R(Gc, [["__scopeId", "data-v-c32de248"]]), Zc = { class: "audio-recorder__container" }, Xc = { key: 0 }, eu = {
|
17171
17182
|
key: 1,
|
17172
17183
|
class: "audio-recorder__recording-container"
|
17173
17184
|
}, tu = { class: "audio-recorder__recording-time" }, nu = /* @__PURE__ */ W({
|
@@ -17184,95 +17195,100 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
|
|
17184
17195
|
},
|
17185
17196
|
emits: ["send", "typing"],
|
17186
17197
|
setup(e, { emit: t }) {
|
17187
|
-
const n = ee("chatAppId"), { getMessage: f, setMessageFile: a, resetMessageFile: s, setRecordingMessage: i } = Ie(n), l = b(), c = b(0), A = b(0),
|
17188
|
-
let
|
17189
|
-
return
|
17190
|
-
}), M = b(""), p = b(!1), y = b(), h = b([]),
|
17191
|
-
const
|
17198
|
+
const n = ee("chatAppId"), { getMessage: f, setMessageFile: a, resetMessageFile: s, setRecordingMessage: i } = Ie(n), l = b(), c = b(0), A = b(0), d = b(0), g = b(0), m = Q(() => {
|
17199
|
+
let N = g.value < 10 ? "0" + g.value : g.value, w = d.value < 10 ? "0" + d.value : d.value, I = A.value < 10 ? "0" + A.value : A.value, U = c.value < 10 ? "00" + c.value : c.value < 100 ? "0" + c.value : c.value;
|
17200
|
+
return N + ":" + w + ":" + I + ":" + U;
|
17201
|
+
}), M = b(""), p = b(!1), y = b(), h = b([]), V = b(), S = b(), j = e, L = async () => {
|
17202
|
+
const N = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
|
17192
17203
|
l.value = setInterval(() => {
|
17193
|
-
c.value += 10, c.value == 1e3 && (c.value = 0, A.value++, A.value == 60 && (A.value = 0,
|
17194
|
-
}, 10), i(!0), p.value = !0, y.value = new MediaRecorder(
|
17195
|
-
h.value.push(
|
17204
|
+
c.value += 10, c.value == 1e3 && (c.value = 0, A.value++, A.value == 60 && (A.value = 0, d.value++, d.value == 60 && (d.value = 0, g.value++)));
|
17205
|
+
}, 10), i(!0), p.value = !0, y.value = new MediaRecorder(N), y.value.start(), y.value.ondataavailable = (w) => {
|
17206
|
+
h.value.push(w.data);
|
17196
17207
|
};
|
17197
|
-
},
|
17198
|
-
C(),
|
17199
|
-
},
|
17208
|
+
}, _ = () => {
|
17209
|
+
C(), V.value = void 0;
|
17210
|
+
}, x = () => {
|
17200
17211
|
y.value && (y.value.stop(), y.value.onstop = async () => {
|
17201
|
-
const
|
17202
|
-
|
17203
|
-
M.value =
|
17204
|
-
url:
|
17205
|
-
name:
|
17206
|
-
size:
|
17207
|
-
type:
|
17208
|
-
}),
|
17209
|
-
previewUrl:
|
17210
|
-
isImage:
|
17211
|
-
isVideo:
|
17212
|
-
isAudio:
|
17213
|
-
fileName:
|
17214
|
-
fileSize:
|
17212
|
+
const N = new File(h.value, "voicemessage.mp3", { type: "audio/*" }), w = URL.createObjectURL(N);
|
17213
|
+
V.value = w, M.value = "uploading", await xt(j.filebumpUrl, N).then((I) => {
|
17214
|
+
M.value = I.status, I.status == "success" && (a({
|
17215
|
+
url: I.url,
|
17216
|
+
name: I.name,
|
17217
|
+
size: I.size,
|
17218
|
+
type: I.type
|
17219
|
+
}), I.preview && (S.value = {
|
17220
|
+
previewUrl: I.preview.previewUrl,
|
17221
|
+
isImage: I.preview.isImage,
|
17222
|
+
isVideo: I.preview.isVideo,
|
17223
|
+
isAudio: I.preview.isAudio,
|
17224
|
+
fileName: I.name,
|
17225
|
+
fileSize: I.preview.fileSize
|
17215
17226
|
}));
|
17216
17227
|
});
|
17217
17228
|
}), C();
|
17218
17229
|
}, C = () => {
|
17219
|
-
clearInterval(l.value), c.value = 0, A.value = 0,
|
17220
|
-
},
|
17221
|
-
s(),
|
17230
|
+
clearInterval(l.value), c.value = 0, A.value = 0, d.value = 0, g.value = 0, i(!1), p.value = !1, y.value = void 0, h.value = [];
|
17231
|
+
}, k = () => {
|
17232
|
+
s(), S.value = void 0;
|
17222
17233
|
};
|
17223
|
-
return (
|
17224
|
-
|
17234
|
+
return G(
|
17235
|
+
() => f().file,
|
17236
|
+
() => {
|
17237
|
+
f().file || (S.value = void 0);
|
17238
|
+
}
|
17239
|
+
), (N, w) => (r(), u("div", Zc, [
|
17240
|
+
M.value === "uploading" ? (r(), u("div", Xc, w[0] || (w[0] = [
|
17225
17241
|
o("p", null, "Загрузка файла...", -1)
|
17226
17242
|
]))) : v("", !0),
|
17227
17243
|
p.value && M.value != "uploading" ? (r(), u("div", eu, [
|
17228
|
-
|
17229
|
-
o("span", tu,
|
17244
|
+
w[3] || (w[3] = o("span", { class: "audio-recorder__recording-icon pi pi-circle-fill" }, null, -1)),
|
17245
|
+
o("span", tu, T(m.value), 1),
|
17230
17246
|
o("button", {
|
17231
17247
|
class: "audio-recorder__button audio-recorder__button-record",
|
17232
|
-
onClick:
|
17233
|
-
},
|
17248
|
+
onClick: _
|
17249
|
+
}, w[1] || (w[1] = [
|
17234
17250
|
o("span", { class: "pi pi-trash" }, null, -1)
|
17235
17251
|
])),
|
17236
17252
|
o("button", {
|
17237
17253
|
class: "audio-recorder__button audio-recorder__button-record",
|
17238
|
-
onClick:
|
17239
|
-
},
|
17254
|
+
onClick: x
|
17255
|
+
}, w[2] || (w[2] = [
|
17240
17256
|
o("span", { class: "pi pi-stop" }, null, -1)
|
17241
17257
|
]))
|
17242
17258
|
])) : v("", !0),
|
17243
|
-
!p.value && M.value != "uploading" && !
|
17259
|
+
!p.value && M.value != "uploading" && !E(f)().isRecording ? (r(), u("button", {
|
17244
17260
|
key: 2,
|
17245
|
-
class:
|
17246
|
-
onClick:
|
17247
|
-
},
|
17261
|
+
class: O(["audio-recorder__button", { "audio-recorder__button-disabled": e.state == "disabled" }]),
|
17262
|
+
onClick: L
|
17263
|
+
}, w[4] || (w[4] = [
|
17248
17264
|
o("span", { class: "pi pi-microphone" }, null, -1)
|
17249
17265
|
]), 2)) : v("", !0),
|
17250
|
-
|
17266
|
+
E(f)().file ? (r(), B(de, {
|
17251
17267
|
key: 3,
|
17252
|
-
to: "#chat-input-file-line-" +
|
17268
|
+
to: "#chat-input-file-line-" + E(n)
|
17253
17269
|
}, [
|
17254
|
-
|
17270
|
+
S.value ? (r(), B(Vt, {
|
17255
17271
|
key: 0,
|
17256
|
-
"file-info":
|
17257
|
-
onReset:
|
17272
|
+
"file-info": S.value,
|
17273
|
+
onReset: k
|
17258
17274
|
}, null, 8, ["file-info"])) : v("", !0)
|
17259
17275
|
], 8, ["to"])) : v("", !0)
|
17260
17276
|
]));
|
17261
17277
|
}
|
17262
|
-
}),
|
17278
|
+
}), Bg = /* @__PURE__ */ R(nu, [["__scopeId", "data-v-1eaeb015"]]);
|
17263
17279
|
function Ot({ component: e, attrs: t, Modal: n, modalAttrs: f }) {
|
17264
17280
|
return new Promise((a) => {
|
17265
17281
|
const s = document.createElement("div");
|
17266
17282
|
document.body.appendChild(s);
|
17267
17283
|
const i = b({}), l = () => {
|
17268
|
-
|
17284
|
+
g.unmount(), document.body.removeChild(s);
|
17269
17285
|
}, c = () => {
|
17270
17286
|
l(), a(i.value);
|
17271
17287
|
}, A = (m) => {
|
17272
17288
|
Object.keys(m).forEach((M) => {
|
17273
17289
|
i.value[M] = m[M];
|
17274
17290
|
});
|
17275
|
-
},
|
17291
|
+
}, d = W({
|
17276
17292
|
render() {
|
17277
17293
|
return Tf(
|
17278
17294
|
n,
|
@@ -17294,8 +17310,8 @@ function Ot({ component: e, attrs: t, Modal: n, modalAttrs: f }) {
|
|
17294
17310
|
}
|
17295
17311
|
);
|
17296
17312
|
}
|
17297
|
-
}),
|
17298
|
-
|
17313
|
+
}), g = Pa(d);
|
17314
|
+
g.mount(s);
|
17299
17315
|
});
|
17300
17316
|
}
|
17301
17317
|
const fu = ["data-theme"], au = {
|
@@ -17320,7 +17336,7 @@ const fu = ["data-theme"], au = {
|
|
17320
17336
|
const n = t, f = (a) => {
|
17321
17337
|
a.target.classList.contains("modal-backdrop") && n("close");
|
17322
17338
|
};
|
17323
|
-
return (a, s) => (r(), B(
|
17339
|
+
return (a, s) => (r(), B(X, { name: "modal-fade" }, {
|
17324
17340
|
default: K(() => [
|
17325
17341
|
o("div", {
|
17326
17342
|
class: "modal-backdrop",
|
@@ -17351,10 +17367,10 @@ const fu = ["data-theme"], au = {
|
|
17351
17367
|
_: 3
|
17352
17368
|
}));
|
17353
17369
|
}
|
17354
|
-
}, yf = /* @__PURE__ */ R(ou, [["__scopeId", "data-v-a44139f6"]]),
|
17370
|
+
}, yf = /* @__PURE__ */ R(ou, [["__scopeId", "data-v-a44139f6"]]), Rg = async (e, t) => {
|
17355
17371
|
const n = await Ot({
|
17356
17372
|
//в component должен быть встроен emit change(key: value)
|
17357
|
-
component: import("./SelectUser2-
|
17373
|
+
component: import("./SelectUser2-C3_AeExs.js"),
|
17358
17374
|
attrs: {
|
17359
17375
|
title: e,
|
17360
17376
|
users: t
|
@@ -17363,7 +17379,7 @@ const fu = ["data-theme"], au = {
|
|
17363
17379
|
modalAttrs: {}
|
17364
17380
|
});
|
17365
17381
|
return console.log("data", n), n;
|
17366
|
-
},
|
17382
|
+
}, Qg = async (e) => {
|
17367
17383
|
const t = await Ot({
|
17368
17384
|
//в component должен быть встроен emit change(key: value)
|
17369
17385
|
component: import("./CreateChat-fkFKBxtQ.js"),
|
@@ -17374,7 +17390,7 @@ const fu = ["data-theme"], au = {
|
|
17374
17390
|
modalAttrs: {}
|
17375
17391
|
});
|
17376
17392
|
return console.log("data", t), t;
|
17377
|
-
},
|
17393
|
+
}, $g = async (e) => await Ot({
|
17378
17394
|
//в component должен быть встроен emit change(key: value)
|
17379
17395
|
component: import("./CreateChat2-DgUQ2F5L.js"),
|
17380
17396
|
attrs: {
|
@@ -17404,7 +17420,7 @@ const fu = ["data-theme"], au = {
|
|
17404
17420
|
const n = t, f = (a) => {
|
17405
17421
|
a.target.classList.contains("modal-backdrop") && n("close");
|
17406
17422
|
};
|
17407
|
-
return (a, s) => (r(), B(
|
17423
|
+
return (a, s) => (r(), B(X, { name: "modal-fade" }, {
|
17408
17424
|
default: K(() => [
|
17409
17425
|
o("div", {
|
17410
17426
|
"data-theme": e.theme,
|
@@ -17421,9 +17437,9 @@ const fu = ["data-theme"], au = {
|
|
17421
17437
|
_: 3
|
17422
17438
|
}));
|
17423
17439
|
}
|
17424
|
-
}, Sa = /* @__PURE__ */ R(cu, [["__scopeId", "data-v-564d1d1f"]]),
|
17440
|
+
}, Sa = /* @__PURE__ */ R(cu, [["__scopeId", "data-v-564d1d1f"]]), Yg = async (e, t, n, f, a) => await Ot({
|
17425
17441
|
//в component должен быть встроен emit change(key: value)
|
17426
|
-
component: import("./CreateDialog-
|
17442
|
+
component: import("./CreateDialog-DA14LMwr.js"),
|
17427
17443
|
attrs: {
|
17428
17444
|
title: e,
|
17429
17445
|
name: t,
|
@@ -17436,7 +17452,7 @@ const fu = ["data-theme"], au = {
|
|
17436
17452
|
}
|
17437
17453
|
}), uu = async (e) => await Ot({
|
17438
17454
|
//в component должен быть встроен emit change(key: value)
|
17439
|
-
component: import("./ModalVideoRecorder-
|
17455
|
+
component: import("./ModalVideoRecorder-DzrQvpjE.js"),
|
17440
17456
|
attrs: {},
|
17441
17457
|
Modal: Sa,
|
17442
17458
|
modalAttrs: {
|
@@ -17462,8 +17478,8 @@ const fu = ["data-theme"], au = {
|
|
17462
17478
|
},
|
17463
17479
|
setup(e) {
|
17464
17480
|
const t = ee("chatAppId"), { getMessage: n, setMessageFile: f, setRecordingMessage: a, resetMessageFile: s } = Ie(t), i = b(""), l = b(), c = e, A = async () => {
|
17465
|
-
await uu().then(async (
|
17466
|
-
|
17481
|
+
await uu().then(async (g) => {
|
17482
|
+
g.videoFile && (i.value = "uploading", a(!0), await xt(c.filebumpUrl, g.videoFile).then((m) => {
|
17467
17483
|
a(!1), i.value = m.status, m.status == "success" && (f({
|
17468
17484
|
url: m.url,
|
17469
17485
|
name: m.name,
|
@@ -17479,14 +17495,19 @@ const fu = ["data-theme"], au = {
|
|
17479
17495
|
}));
|
17480
17496
|
}));
|
17481
17497
|
});
|
17482
|
-
},
|
17498
|
+
}, d = () => {
|
17483
17499
|
s(), l.value = void 0;
|
17484
17500
|
};
|
17485
|
-
return (
|
17486
|
-
|
17501
|
+
return G(
|
17502
|
+
() => n().file,
|
17503
|
+
() => {
|
17504
|
+
n().file || (l.value = void 0);
|
17505
|
+
}
|
17506
|
+
), (g, m) => (r(), u(q, null, [
|
17507
|
+
E(n)().isRecording ? v("", !0) : (r(), u("div", du, [
|
17487
17508
|
i.value != "uploading" ? (r(), u("button", {
|
17488
17509
|
key: 0,
|
17489
|
-
class:
|
17510
|
+
class: O(["video-recorder__button", { "video-recorder__button-disabled": e.state == "disabled" }]),
|
17490
17511
|
onClick: A
|
17491
17512
|
}, m[0] || (m[0] = [
|
17492
17513
|
o("span", { class: "pi pi-video" }, null, -1)
|
@@ -17495,19 +17516,19 @@ const fu = ["data-theme"], au = {
|
|
17495
17516
|
i.value === "uploading" ? (r(), u("div", gu, m[1] || (m[1] = [
|
17496
17517
|
o("p", null, "Загрузка файла...", -1)
|
17497
17518
|
]))) : v("", !0),
|
17498
|
-
|
17519
|
+
E(n)().file ? (r(), B(de, {
|
17499
17520
|
key: 2,
|
17500
|
-
to: "#chat-input-file-line-" +
|
17521
|
+
to: "#chat-input-file-line-" + E(t)
|
17501
17522
|
}, [
|
17502
17523
|
l.value ? (r(), B(Vt, {
|
17503
17524
|
key: 0,
|
17504
17525
|
"file-info": l.value,
|
17505
|
-
onReset:
|
17526
|
+
onReset: d
|
17506
17527
|
}, null, 8, ["file-info"])) : v("", !0)
|
17507
17528
|
], 8, ["to"])) : v("", !0)
|
17508
17529
|
], 64));
|
17509
17530
|
}
|
17510
|
-
}),
|
17531
|
+
}), Pg = /* @__PURE__ */ R(mu, [["__scopeId", "data-v-8791b8ed"]]), ct = /* @__PURE__ */ W({
|
17511
17532
|
__name: "BaseReplyMessage",
|
17512
17533
|
props: {
|
17513
17534
|
message: {
|
@@ -17518,25 +17539,25 @@ const fu = ["data-theme"], au = {
|
|
17518
17539
|
setup(e, { emit: t }) {
|
17519
17540
|
const n = t, f = e, a = ee("chatAppId"), { resetReply: s } = Ie(a), i = () => {
|
17520
17541
|
f.message && n("reply", f.message.messageId);
|
17521
|
-
}, l = (
|
17542
|
+
}, l = (d) => ({
|
17522
17543
|
"message.text": md,
|
17523
17544
|
"message.image": _d,
|
17524
17545
|
"message.file": Bd,
|
17525
17546
|
"message.audio": Dd,
|
17526
17547
|
"message.video": Cd
|
17527
|
-
})[
|
17548
|
+
})[d], c = (d) => ({
|
17528
17549
|
"message.text": "",
|
17529
17550
|
"message.image": "grid",
|
17530
17551
|
"message.file": "",
|
17531
17552
|
"message.audio": "grid",
|
17532
17553
|
"message.video": "grid"
|
17533
|
-
})[
|
17554
|
+
})[d], A = () => {
|
17534
17555
|
s();
|
17535
17556
|
};
|
17536
|
-
return (
|
17557
|
+
return (d, g) => {
|
17537
17558
|
var m, M;
|
17538
17559
|
return r(), u("div", {
|
17539
|
-
class:
|
17560
|
+
class: O(["reply__container", c((m = e.message) == null ? void 0 : m.type)]),
|
17540
17561
|
onClick: i
|
17541
17562
|
}, [
|
17542
17563
|
(r(), B(Xf(l((M = e.message) == null ? void 0 : M.type)), { message: e.message }, null, 8, ["message"])),
|
@@ -17564,8 +17585,8 @@ const fu = ["data-theme"], au = {
|
|
17564
17585
|
href: e.linkPreview.url,
|
17565
17586
|
target: "_blank"
|
17566
17587
|
}, [
|
17567
|
-
o("p", yu,
|
17568
|
-
o("p", bu,
|
17588
|
+
o("p", yu, T(e.linkPreview.title), 1),
|
17589
|
+
o("p", bu, T(e.linkPreview.description), 1),
|
17569
17590
|
o("img", {
|
17570
17591
|
class: "link-preview__image",
|
17571
17592
|
src: e.linkPreview.imageUrl,
|
@@ -17595,7 +17616,7 @@ const fu = ["data-theme"], au = {
|
|
17595
17616
|
emits: ["action", "reply"],
|
17596
17617
|
setup(e, { emit: t }) {
|
17597
17618
|
const n = e, f = t, a = b(!1), s = b(!1), i = b("");
|
17598
|
-
|
17619
|
+
G(
|
17599
17620
|
() => n.message.text,
|
17600
17621
|
() => {
|
17601
17622
|
n.message.text && (i.value = we(n.message.text));
|
@@ -17610,8 +17631,8 @@ const fu = ["data-theme"], au = {
|
|
17610
17631
|
}
|
17611
17632
|
const A = () => {
|
17612
17633
|
f("action", { messageId: n.message.messageId, type: "views" });
|
17613
|
-
}, g = () => {
|
17614
17634
|
}, d = () => {
|
17635
|
+
}, g = () => {
|
17615
17636
|
s.value = !0;
|
17616
17637
|
}, m = () => {
|
17617
17638
|
s.value = !1, a.value = !1;
|
@@ -17620,7 +17641,7 @@ const fu = ["data-theme"], au = {
|
|
17620
17641
|
return y.position === "left" ? "file-message__left" : "file-message__right";
|
17621
17642
|
}
|
17622
17643
|
return (y, h) => (r(), u("div", {
|
17623
|
-
class:
|
17644
|
+
class: O(["file-message", p(e.message)]),
|
17624
17645
|
messageId: e.message.messageId,
|
17625
17646
|
onMouseleave: m
|
17626
17647
|
}, [
|
@@ -17632,16 +17653,16 @@ const fu = ["data-theme"], au = {
|
|
17632
17653
|
width: "32",
|
17633
17654
|
style: se({ gridRow: e.message.subText ? "2" : "1" })
|
17634
17655
|
}, null, 12, wu)) : v("", !0),
|
17635
|
-
e.message.subText ? (r(), u("p", ku,
|
17656
|
+
e.message.subText ? (r(), u("p", ku, T(e.message.subText), 1)) : v("", !0),
|
17636
17657
|
o("div", {
|
17637
17658
|
class: "file-message__content",
|
17638
17659
|
style: se({ gridRow: e.message.subText ? "2" : "1" }),
|
17639
|
-
onMouseenter:
|
17660
|
+
onMouseenter: g
|
17640
17661
|
}, [
|
17641
17662
|
e.message.reply ? (r(), B(ct, {
|
17642
17663
|
key: 0,
|
17643
17664
|
message: e.message.reply,
|
17644
|
-
class:
|
17665
|
+
class: O(e.message.position),
|
17645
17666
|
onReply: l
|
17646
17667
|
}, null, 8, ["message", "class"])) : v("", !0),
|
17647
17668
|
o("a", {
|
@@ -17651,7 +17672,7 @@ const fu = ["data-theme"], au = {
|
|
17651
17672
|
target: "_blank"
|
17652
17673
|
}, [
|
17653
17674
|
h[1] || (h[1] = o("span", { class: "pi pi-file" }, null, -1)),
|
17654
|
-
o("p", Du,
|
17675
|
+
o("p", Du, T(e.message.filename), 1),
|
17655
17676
|
h[2] || (h[2] = o("div", { class: "file-message__download-button" }, [
|
17656
17677
|
o("span", { class: "pi pi-download" })
|
17657
17678
|
], -1))
|
@@ -17664,7 +17685,7 @@ const fu = ["data-theme"], au = {
|
|
17664
17685
|
])) : v("", !0),
|
17665
17686
|
e.message.linkPreview ? (r(), B(Lt, {
|
17666
17687
|
key: 2,
|
17667
|
-
class:
|
17688
|
+
class: O(e.message.position),
|
17668
17689
|
linkPreview: e.message.linkPreview
|
17669
17690
|
}, null, 8, ["class", "linkPreview"])) : v("", !0),
|
17670
17691
|
o("div", ju, [
|
@@ -17674,12 +17695,12 @@ const fu = ["data-theme"], au = {
|
|
17674
17695
|
class: "file-message__views"
|
17675
17696
|
}, [
|
17676
17697
|
h[3] || (h[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
17677
|
-
o("p", null,
|
17698
|
+
o("p", null, T(e.message.views), 1)
|
17678
17699
|
])) : v("", !0),
|
17679
|
-
o("span", xu,
|
17680
|
-
p(e.message) === "file-message__right" &&
|
17700
|
+
o("span", xu, T(e.message.time), 1),
|
17701
|
+
p(e.message) === "file-message__right" && E(rt).includes(e.message.status) ? (r(), u("div", {
|
17681
17702
|
key: 1,
|
17682
|
-
class:
|
17703
|
+
class: O(["file-message__status", M.value])
|
17683
17704
|
}, [
|
17684
17705
|
e.message.status !== "sent" ? (r(), u("span", Vu)) : v("", !0),
|
17685
17706
|
h[4] || (h[4] = o("span", { class: "pi pi-check" }, null, -1))
|
@@ -17688,17 +17709,17 @@ const fu = ["data-theme"], au = {
|
|
17688
17709
|
s.value && e.message.actions ? (r(), u("button", {
|
17689
17710
|
key: 3,
|
17690
17711
|
class: "file-message__menu-button",
|
17691
|
-
onClick: h[0] || (h[0] = (
|
17712
|
+
onClick: h[0] || (h[0] = (V) => a.value = !a.value)
|
17692
17713
|
}, h[5] || (h[5] = [
|
17693
17714
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
17694
17715
|
]))) : v("", !0),
|
17695
|
-
F(
|
17716
|
+
F(X, null, {
|
17696
17717
|
default: K(() => [
|
17697
|
-
a.value && e.message.actions ? (r(), B(
|
17718
|
+
a.value && e.message.actions ? (r(), B(E($e), {
|
17698
17719
|
key: 0,
|
17699
17720
|
class: "file-message__context-menu",
|
17700
17721
|
actions: e.message.actions,
|
17701
|
-
onClick:
|
17722
|
+
onClick: d
|
17702
17723
|
}, null, 8, ["actions"])) : v("", !0)
|
17703
17724
|
]),
|
17704
17725
|
_: 1
|
@@ -17729,20 +17750,20 @@ const fu = ["data-theme"], au = {
|
|
17729
17750
|
emits: ["action", "reply"],
|
17730
17751
|
setup(e, { emit: t }) {
|
17731
17752
|
const n = e, f = t, a = b(!1), s = b(!1), i = b(!1), l = b(!1), c = b("");
|
17732
|
-
|
17753
|
+
G(
|
17733
17754
|
() => n.message.text,
|
17734
17755
|
() => {
|
17735
17756
|
n.message.text && (c.value = we(n.message.text));
|
17736
17757
|
},
|
17737
17758
|
{ immediate: !0 }
|
17738
17759
|
);
|
17739
|
-
const A = (
|
17740
|
-
f("reply",
|
17760
|
+
const A = (L) => {
|
17761
|
+
f("reply", L);
|
17741
17762
|
};
|
17742
|
-
function
|
17743
|
-
|
17763
|
+
function d(L) {
|
17764
|
+
L.preventDefault(), L.target.href && window.open(L.target.href, "_blank");
|
17744
17765
|
}
|
17745
|
-
const
|
17766
|
+
const g = () => {
|
17746
17767
|
f("action", { messageId: n.message.messageId, type: "views" });
|
17747
17768
|
}, m = () => {
|
17748
17769
|
}, M = () => {
|
@@ -17750,18 +17771,18 @@ const fu = ["data-theme"], au = {
|
|
17750
17771
|
}, p = () => {
|
17751
17772
|
i.value = !1, s.value = !1;
|
17752
17773
|
}, y = Q(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"), h = Q(() => At(n.message.status));
|
17753
|
-
function
|
17754
|
-
return
|
17774
|
+
function V(L) {
|
17775
|
+
return L.position === "left" ? "image-message__left" : "image-message__right";
|
17755
17776
|
}
|
17756
|
-
const
|
17757
|
-
|
17777
|
+
const S = () => a.value = !1, j = (L) => {
|
17778
|
+
L.key === "Escape" && a.value && S();
|
17758
17779
|
};
|
17759
|
-
return
|
17780
|
+
return ie(() => {
|
17760
17781
|
document.addEventListener("keydown", j);
|
17761
17782
|
}), Ke(() => {
|
17762
17783
|
document.removeEventListener("keydown", j);
|
17763
|
-
}), (
|
17764
|
-
class:
|
17784
|
+
}), (L, _) => (r(), u("div", {
|
17785
|
+
class: O(["image-message", V(e.message)]),
|
17765
17786
|
messageId: e.message.messageId,
|
17766
17787
|
onMouseleave: p
|
17767
17788
|
}, [
|
@@ -17772,20 +17793,20 @@ const fu = ["data-theme"], au = {
|
|
17772
17793
|
height: "32",
|
17773
17794
|
width: "32"
|
17774
17795
|
}, null, 8, Ou)) : v("", !0),
|
17775
|
-
e.message.subText ? (r(), u("p", Lu,
|
17796
|
+
e.message.subText ? (r(), u("p", Lu, T(e.message.subText), 1)) : v("", !0),
|
17776
17797
|
o("div", Uu, [
|
17777
17798
|
e.message.reply ? (r(), B(ct, {
|
17778
17799
|
key: 0,
|
17779
17800
|
style: { margin: "10px 10px 4px 16px" },
|
17780
|
-
class:
|
17801
|
+
class: O(e.message.position),
|
17781
17802
|
message: e.message.reply,
|
17782
17803
|
onReply: A
|
17783
17804
|
}, null, 8, ["class", "message"])) : v("", !0),
|
17784
17805
|
o("div", {
|
17785
17806
|
class: "image-message__preview-button",
|
17786
|
-
onClick:
|
17807
|
+
onClick: _[0] || (_[0] = (x) => a.value = !0),
|
17787
17808
|
onMouseenter: M,
|
17788
|
-
onMouseleave:
|
17809
|
+
onMouseleave: _[1] || (_[1] = (x) => l.value = !l.value)
|
17789
17810
|
}, [
|
17790
17811
|
o("img", {
|
17791
17812
|
class: "image-message__preview-image",
|
@@ -17793,30 +17814,30 @@ const fu = ["data-theme"], au = {
|
|
17793
17814
|
src: e.message.url,
|
17794
17815
|
alt: e.message.alt
|
17795
17816
|
}, null, 12, Bu),
|
17796
|
-
F(
|
17817
|
+
F(X, { name: "modal-fade" }, {
|
17797
17818
|
default: K(() => [
|
17798
17819
|
l.value ? (r(), u("div", Ru, [
|
17799
17820
|
e.message.views ? (r(), u("div", {
|
17800
17821
|
key: 0,
|
17801
|
-
onClick: kt(
|
17822
|
+
onClick: kt(g, ["stop"]),
|
17802
17823
|
class: "image-message__views"
|
17803
17824
|
}, [
|
17804
|
-
|
17805
|
-
o("p", null,
|
17825
|
+
_[3] || (_[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
17826
|
+
o("p", null, T(e.message.views), 1)
|
17806
17827
|
])) : v("", !0),
|
17807
|
-
o("span", Qu,
|
17808
|
-
|
17828
|
+
o("span", Qu, T(e.message.time), 1),
|
17829
|
+
V(e.message) === "image-message__right" && E(rt).includes(e.message.status) ? (r(), u("div", {
|
17809
17830
|
key: 1,
|
17810
|
-
class:
|
17831
|
+
class: O(["image-message__status", h.value])
|
17811
17832
|
}, [
|
17812
17833
|
e.message.status !== "sent" ? (r(), u("span", $u)) : v("", !0),
|
17813
|
-
|
17834
|
+
_[4] || (_[4] = o("span", { class: "pi pi-check" }, null, -1))
|
17814
17835
|
], 2)) : v("", !0)
|
17815
17836
|
])) : v("", !0)
|
17816
17837
|
]),
|
17817
17838
|
_: 1
|
17818
17839
|
}),
|
17819
|
-
F(
|
17840
|
+
F(X, { name: "modal-fade" }, {
|
17820
17841
|
default: K(() => [
|
17821
17842
|
l.value ? (r(), u("a", {
|
17822
17843
|
key: 0,
|
@@ -17825,28 +17846,28 @@ const fu = ["data-theme"], au = {
|
|
17825
17846
|
href: e.message.url,
|
17826
17847
|
download: "",
|
17827
17848
|
target: "_blank"
|
17828
|
-
},
|
17849
|
+
}, _[5] || (_[5] = [
|
17829
17850
|
o("span", { class: "pi pi-download" }, null, -1)
|
17830
17851
|
]), 8, Yu)) : v("", !0)
|
17831
17852
|
]),
|
17832
17853
|
_: 1
|
17833
17854
|
})
|
17834
17855
|
], 32),
|
17835
|
-
F(
|
17856
|
+
F(X, { name: "modal-fade" }, {
|
17836
17857
|
default: K(() => [
|
17837
17858
|
i.value && e.message.actions ? (r(), u("button", {
|
17838
17859
|
key: 0,
|
17839
17860
|
class: "image-message__menu-button",
|
17840
|
-
onClick:
|
17841
|
-
},
|
17861
|
+
onClick: _[2] || (_[2] = (x) => s.value = !s.value)
|
17862
|
+
}, _[6] || (_[6] = [
|
17842
17863
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
17843
17864
|
]))) : v("", !0)
|
17844
17865
|
]),
|
17845
17866
|
_: 1
|
17846
17867
|
}),
|
17847
|
-
F(
|
17868
|
+
F(X, { name: "context-menu" }, {
|
17848
17869
|
default: K(() => [
|
17849
|
-
s.value && e.message.actions ? (r(), B(
|
17870
|
+
s.value && e.message.actions ? (r(), B(E($e), {
|
17850
17871
|
key: 0,
|
17851
17872
|
class: "image-message__context-menu",
|
17852
17873
|
actions: e.message.actions,
|
@@ -17858,21 +17879,21 @@ const fu = ["data-theme"], au = {
|
|
17858
17879
|
e.message.text ? (r(), u("div", Pu, [
|
17859
17880
|
o("p", {
|
17860
17881
|
innerHTML: c.value,
|
17861
|
-
onClick:
|
17882
|
+
onClick: d
|
17862
17883
|
}, null, 8, Fu)
|
17863
17884
|
])) : v("", !0),
|
17864
17885
|
e.message.linkPreview ? (r(), B(Lt, {
|
17865
17886
|
key: 2,
|
17866
|
-
class:
|
17887
|
+
class: O(["image-message__link-preview", e.message.position]),
|
17867
17888
|
linkPreview: e.message.linkPreview
|
17868
17889
|
}, null, 8, ["class", "linkPreview"])) : v("", !0)
|
17869
17890
|
]),
|
17870
17891
|
(r(), B(de, { to: "body" }, [
|
17871
|
-
F(
|
17892
|
+
F(X, { name: "modal-fade" }, {
|
17872
17893
|
default: K(() => [
|
17873
17894
|
a.value ? (r(), B(lf, {
|
17874
17895
|
key: 0,
|
17875
|
-
onClose:
|
17896
|
+
onClose: S
|
17876
17897
|
}, {
|
17877
17898
|
default: K(() => [
|
17878
17899
|
o("img", {
|
@@ -17909,7 +17930,7 @@ const fu = ["data-theme"], au = {
|
|
17909
17930
|
emits: ["action", "reply"],
|
17910
17931
|
setup(e, { emit: t }) {
|
17911
17932
|
const n = e, f = t, a = b(!1), s = b(!1), i = b("");
|
17912
|
-
|
17933
|
+
G(
|
17913
17934
|
() => n.message.text,
|
17914
17935
|
() => {
|
17915
17936
|
i.value = we(n.message.text);
|
@@ -17924,20 +17945,20 @@ const fu = ["data-theme"], au = {
|
|
17924
17945
|
}
|
17925
17946
|
const A = () => {
|
17926
17947
|
s.value = !0;
|
17927
|
-
},
|
17948
|
+
}, d = () => {
|
17928
17949
|
s.value = !1, a.value = !1;
|
17929
|
-
},
|
17930
|
-
|
17950
|
+
}, g = Q(() => At(n.message.status)), m = (y) => {
|
17951
|
+
d(), f("action", { messageId: n.message.messageId, type: "menu", ...y });
|
17931
17952
|
}, M = () => {
|
17932
|
-
|
17953
|
+
d(), f("action", { messageId: n.message.messageId, type: "views" });
|
17933
17954
|
};
|
17934
17955
|
function p(y) {
|
17935
17956
|
return y.position === "left" ? "text-message__left" : "text-message__right";
|
17936
17957
|
}
|
17937
17958
|
return (y, h) => (r(), u("div", {
|
17938
|
-
class:
|
17959
|
+
class: O(["text-message", p(e.message)]),
|
17939
17960
|
messageId: e.message.messageId,
|
17940
|
-
onMouseleave:
|
17961
|
+
onMouseleave: d
|
17941
17962
|
}, [
|
17942
17963
|
e.message.avatar ? (r(), u("img", {
|
17943
17964
|
key: 0,
|
@@ -17947,14 +17968,14 @@ const fu = ["data-theme"], au = {
|
|
17947
17968
|
width: "32",
|
17948
17969
|
style: se({ gridRow: e.message.subText ? "2" : "1" })
|
17949
17970
|
}, null, 12, Ju)) : v("", !0),
|
17950
|
-
e.message.subText ? (r(), u("p", Gu,
|
17971
|
+
e.message.subText ? (r(), u("p", Gu, T(e.message.subText), 1)) : v("", !0),
|
17951
17972
|
o("div", {
|
17952
17973
|
class: "text-message__content",
|
17953
17974
|
onMouseenter: A
|
17954
17975
|
}, [
|
17955
17976
|
e.message.reply ? (r(), B(ct, {
|
17956
17977
|
key: 0,
|
17957
|
-
class:
|
17978
|
+
class: O(e.message.position),
|
17958
17979
|
message: e.message.reply,
|
17959
17980
|
onReply: l
|
17960
17981
|
}, null, 8, ["class", "message"])) : v("", !0),
|
@@ -17965,7 +17986,7 @@ const fu = ["data-theme"], au = {
|
|
17965
17986
|
}, null, 8, Zu),
|
17966
17987
|
e.message.linkPreview ? (r(), B(Lt, {
|
17967
17988
|
key: 1,
|
17968
|
-
class:
|
17989
|
+
class: O(e.message.position),
|
17969
17990
|
linkPreview: e.message.linkPreview
|
17970
17991
|
}, null, 8, ["class", "linkPreview"])) : v("", !0),
|
17971
17992
|
o("div", Xu, [
|
@@ -17975,12 +17996,12 @@ const fu = ["data-theme"], au = {
|
|
17975
17996
|
onClick: M
|
17976
17997
|
}, [
|
17977
17998
|
h[1] || (h[1] = o("span", { class: "pi pi-eye" }, null, -1)),
|
17978
|
-
o("p", null,
|
17999
|
+
o("p", null, T(e.message.views), 1)
|
17979
18000
|
])) : v("", !0),
|
17980
|
-
e.message.time ? (r(), u("span", e1,
|
17981
|
-
p(e.message) === "text-message__right" &&
|
18001
|
+
e.message.time ? (r(), u("span", e1, T(e.message.time), 1)) : v("", !0),
|
18002
|
+
p(e.message) === "text-message__right" && E(rt).includes(e.message.status) ? (r(), u("div", {
|
17982
18003
|
key: 2,
|
17983
|
-
class:
|
18004
|
+
class: O(["text-message__status", g.value])
|
17984
18005
|
}, [
|
17985
18006
|
e.message.status !== "sent" ? (r(), u("span", t1)) : v("", !0),
|
17986
18007
|
h[2] || (h[2] = o("span", { class: "pi pi-check" }, null, -1))
|
@@ -17989,13 +18010,13 @@ const fu = ["data-theme"], au = {
|
|
17989
18010
|
s.value && e.message.actions ? (r(), u("button", {
|
17990
18011
|
key: 2,
|
17991
18012
|
class: "text-message__menu-button",
|
17992
|
-
onClick: h[0] || (h[0] = (
|
18013
|
+
onClick: h[0] || (h[0] = (V) => a.value = !a.value)
|
17993
18014
|
}, h[3] || (h[3] = [
|
17994
18015
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
17995
18016
|
]))) : v("", !0),
|
17996
|
-
F(
|
18017
|
+
F(X, null, {
|
17997
18018
|
default: K(() => [
|
17998
|
-
a.value && e.message.actions ? (r(), B(
|
18019
|
+
a.value && e.message.actions ? (r(), B(E($e), {
|
17999
18020
|
key: 0,
|
18000
18021
|
class: "text-message__context-menu",
|
18001
18022
|
actions: e.message.actions,
|
@@ -18053,44 +18074,44 @@ const fu = ["data-theme"], au = {
|
|
18053
18074
|
speed: 2,
|
18054
18075
|
selected: !1
|
18055
18076
|
}
|
18056
|
-
]), a = (
|
18057
|
-
for (let
|
18058
|
-
|
18059
|
-
f.value[
|
18060
|
-
}, s = t, i = b(), l = b(!1), c = b(0), A = b(0),
|
18077
|
+
]), a = (w) => {
|
18078
|
+
for (let I of f.value)
|
18079
|
+
I.selected = !1;
|
18080
|
+
f.value[w].selected = !0, i.value && (i.value.playbackRate = f.value[w].speed);
|
18081
|
+
}, s = t, i = b(), l = b(!1), c = b(0), A = b(0), d = b(!1), g = b(!1), m = b(!1), M = Q(() => {
|
18061
18082
|
if (n.message.text) return we(n.message.text);
|
18062
|
-
}), p = (
|
18063
|
-
s("reply",
|
18083
|
+
}), p = (w) => {
|
18084
|
+
s("reply", w);
|
18064
18085
|
};
|
18065
|
-
function y(
|
18066
|
-
|
18086
|
+
function y(w) {
|
18087
|
+
w.preventDefault(), w.target.href && window.open(w.target.href, "_blank");
|
18067
18088
|
}
|
18068
18089
|
const h = () => {
|
18069
|
-
|
18070
|
-
}, x = () => {
|
18071
|
-
d.value = !1, g.value = !1;
|
18090
|
+
g.value = !0;
|
18072
18091
|
}, V = () => {
|
18092
|
+
g.value = !1, d.value = !1;
|
18093
|
+
}, S = () => {
|
18073
18094
|
s("action", { messageId: n.message.messageId, type: "views" });
|
18074
18095
|
}, j = () => {
|
18075
|
-
},
|
18076
|
-
function
|
18096
|
+
}, L = Q(() => At(n.message.status));
|
18097
|
+
function _() {
|
18077
18098
|
i.value && (l.value ? i.value.pause() : i.value.play(), l.value = !l.value);
|
18078
18099
|
}
|
18079
|
-
const
|
18080
|
-
const
|
18081
|
-
return `${
|
18082
|
-
}, C = Q(() => i.value ?
|
18083
|
-
|
18100
|
+
const x = (w) => {
|
18101
|
+
const I = Math.floor(w / 60), U = Math.floor(w % 60);
|
18102
|
+
return `${I.toString().padStart(2, "0")}:${U.toString().padStart(2, "0")}`;
|
18103
|
+
}, C = Q(() => i.value ? x(A.value) : "0:00");
|
18104
|
+
G(
|
18084
18105
|
() => A.value,
|
18085
18106
|
() => {
|
18086
18107
|
i.value && (i.value.duration != 1 / 0 && !Number.isNaN(i.value.duration) && (i.value.currentTime = A.value), A.value == c.value && (l.value = !1));
|
18087
18108
|
}
|
18088
18109
|
);
|
18089
|
-
const
|
18090
|
-
function
|
18091
|
-
return
|
18110
|
+
const k = Q(() => i.value ? x(c.value) : "0:00");
|
18111
|
+
function N(w) {
|
18112
|
+
return w.position === "left" ? "audio-message__left" : "audio-message__right";
|
18092
18113
|
}
|
18093
|
-
return
|
18114
|
+
return ie(() => {
|
18094
18115
|
i.value != null && (i.value.addEventListener("loadedmetadata", () => {
|
18095
18116
|
i.value != null && (i.value.duration == 1 / 0 || Number.isNaN(i.value.duration)) && (i.value.currentTime = 1e101, i.value.addEventListener("timeupdate", () => {
|
18096
18117
|
i.value && (i.value.currentTime = 0, c.value = i.value.duration);
|
@@ -18098,12 +18119,12 @@ const fu = ["data-theme"], au = {
|
|
18098
18119
|
}), i.value.addEventListener("timeupdate", () => {
|
18099
18120
|
A.value = i.value != null ? i.value.currentTime : 0;
|
18100
18121
|
}));
|
18101
|
-
}), (
|
18122
|
+
}), (w, I) => {
|
18102
18123
|
var U;
|
18103
18124
|
return r(), u("div", {
|
18104
|
-
class:
|
18125
|
+
class: O(["audio-message", N(e.message)]),
|
18105
18126
|
messageId: e.message.messageId,
|
18106
|
-
onMouseleave:
|
18127
|
+
onMouseleave: V
|
18107
18128
|
}, [
|
18108
18129
|
e.message.avatar ? (r(), u("img", {
|
18109
18130
|
key: 0,
|
@@ -18113,7 +18134,7 @@ const fu = ["data-theme"], au = {
|
|
18113
18134
|
width: "32",
|
18114
18135
|
style: se({ gridRow: e.message.subText ? "2" : "1" })
|
18115
18136
|
}, null, 12, s1)) : v("", !0),
|
18116
|
-
e.message.subText ? (r(), u("p", i1,
|
18137
|
+
e.message.subText ? (r(), u("p", i1, T(e.message.subText), 1)) : v("", !0),
|
18117
18138
|
o("div", {
|
18118
18139
|
class: "audio-message__content",
|
18119
18140
|
onMouseenter: h
|
@@ -18122,7 +18143,7 @@ const fu = ["data-theme"], au = {
|
|
18122
18143
|
key: 0,
|
18123
18144
|
style: { "grid-column": "1/3" },
|
18124
18145
|
message: e.message.reply,
|
18125
|
-
class:
|
18146
|
+
class: O(e.message.position),
|
18126
18147
|
onReply: p
|
18127
18148
|
}, null, 8, ["message", "class"])) : v("", !0),
|
18128
18149
|
o("div", o1, [
|
@@ -18134,16 +18155,16 @@ const fu = ["data-theme"], au = {
|
|
18134
18155
|
}, null, 8, l1),
|
18135
18156
|
Ae(o("button", {
|
18136
18157
|
class: "audio-message__play",
|
18137
|
-
onClick:
|
18138
|
-
},
|
18158
|
+
onClick: _
|
18159
|
+
}, I[4] || (I[4] = [
|
18139
18160
|
o("span", { class: "pi pi-play" }, null, -1)
|
18140
18161
|
]), 512), [
|
18141
18162
|
[We, !l.value]
|
18142
18163
|
]),
|
18143
18164
|
Ae(o("button", {
|
18144
18165
|
class: "audio-message__pause",
|
18145
|
-
onClick:
|
18146
|
-
},
|
18166
|
+
onClick: _
|
18167
|
+
}, I[5] || (I[5] = [
|
18147
18168
|
o("span", { class: "pi pi-pause" }, null, -1)
|
18148
18169
|
]), 512), [
|
18149
18170
|
[We, l.value]
|
@@ -18154,17 +18175,17 @@ const fu = ["data-theme"], au = {
|
|
18154
18175
|
min: 0,
|
18155
18176
|
max: c.value,
|
18156
18177
|
step: "0.1",
|
18157
|
-
"onUpdate:modelValue":
|
18178
|
+
"onUpdate:modelValue": I[0] || (I[0] = ($) => A.value = $)
|
18158
18179
|
}, null, 8, r1), [
|
18159
18180
|
[lt, A.value]
|
18160
18181
|
]),
|
18161
18182
|
o("div", A1, [
|
18162
|
-
o("p", c1,
|
18183
|
+
o("p", c1, T(`${C.value} / ${k.value}`), 1),
|
18163
18184
|
o("div", u1, [
|
18164
18185
|
(r(!0), u(q, null, te(f.value, ($, J) => (r(), u("p", {
|
18165
|
-
onClick: (
|
18166
|
-
class:
|
18167
|
-
},
|
18186
|
+
onClick: (le) => a(J),
|
18187
|
+
class: O(["audio-message__speed-btn", { "audio-message__speed-btn-selected": $.selected }])
|
18188
|
+
}, T($.text), 11, d1))), 256))
|
18168
18189
|
])
|
18169
18190
|
]),
|
18170
18191
|
o("a", {
|
@@ -18173,14 +18194,14 @@ const fu = ["data-theme"], au = {
|
|
18173
18194
|
href: e.message.url,
|
18174
18195
|
download: "",
|
18175
18196
|
target: "_blank"
|
18176
|
-
},
|
18197
|
+
}, I[6] || (I[6] = [
|
18177
18198
|
o("span", { class: "pi pi-download" }, null, -1)
|
18178
18199
|
]), 8, g1)
|
18179
18200
|
]),
|
18180
18201
|
(U = e.message.transcript) != null && U.text ? (r(), u("div", m1, [
|
18181
18202
|
o("p", {
|
18182
|
-
onClick:
|
18183
|
-
},
|
18203
|
+
onClick: I[1] || (I[1] = ($) => m.value = !m.value)
|
18204
|
+
}, T(e.message.transcript.text), 1)
|
18184
18205
|
])) : v("", !0),
|
18185
18206
|
e.message.text ? (r(), u("div", p1, [
|
18186
18207
|
o("p", {
|
@@ -18190,37 +18211,37 @@ const fu = ["data-theme"], au = {
|
|
18190
18211
|
])) : v("", !0),
|
18191
18212
|
e.message.linkPreview ? (r(), B(Lt, {
|
18192
18213
|
key: 3,
|
18193
|
-
class:
|
18214
|
+
class: O(["audio-message__link-preview", e.message.position]),
|
18194
18215
|
linkPreview: e.message.linkPreview
|
18195
18216
|
}, null, 8, ["class", "linkPreview"])) : v("", !0),
|
18196
18217
|
o("div", v1, [
|
18197
18218
|
e.message.views ? (r(), u("div", {
|
18198
18219
|
key: 0,
|
18199
|
-
onClick:
|
18220
|
+
onClick: S,
|
18200
18221
|
class: "audio-message__views"
|
18201
18222
|
}, [
|
18202
|
-
|
18203
|
-
o("p", null,
|
18223
|
+
I[7] || (I[7] = o("span", { class: "pi pi-eye" }, null, -1)),
|
18224
|
+
o("p", null, T(e.message.views), 1)
|
18204
18225
|
])) : v("", !0),
|
18205
|
-
o("span", y1,
|
18206
|
-
|
18226
|
+
o("span", y1, T(e.message.time), 1),
|
18227
|
+
N(e.message) === "audio-message__right" && E(rt).includes(e.message.status) ? (r(), u("div", {
|
18207
18228
|
key: 1,
|
18208
|
-
class:
|
18229
|
+
class: O(["audio-message__status", L.value])
|
18209
18230
|
}, [
|
18210
18231
|
e.message.status !== "sent" ? (r(), u("span", b1)) : v("", !0),
|
18211
|
-
|
18232
|
+
I[8] || (I[8] = o("span", { class: "pi pi-check" }, null, -1))
|
18212
18233
|
], 2)) : v("", !0)
|
18213
18234
|
]),
|
18214
|
-
|
18235
|
+
g.value && e.message.actions ? (r(), u("button", {
|
18215
18236
|
key: 4,
|
18216
18237
|
class: "audio-message__menu-button",
|
18217
|
-
onClick:
|
18218
|
-
},
|
18238
|
+
onClick: I[2] || (I[2] = ($) => d.value = !d.value)
|
18239
|
+
}, I[9] || (I[9] = [
|
18219
18240
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
18220
18241
|
]))) : v("", !0),
|
18221
|
-
F(
|
18242
|
+
F(X, null, {
|
18222
18243
|
default: K(() => [
|
18223
|
-
|
18244
|
+
d.value && e.message.actions ? (r(), B(E($e), {
|
18224
18245
|
key: 0,
|
18225
18246
|
class: "audio-message__context-menu",
|
18226
18247
|
actions: e.message.actions,
|
@@ -18230,7 +18251,7 @@ const fu = ["data-theme"], au = {
|
|
18230
18251
|
_: 1
|
18231
18252
|
}),
|
18232
18253
|
(r(), B(de, { to: "body" }, [
|
18233
|
-
F(
|
18254
|
+
F(X, { name: "modal-fade" }, {
|
18234
18255
|
default: K(() => {
|
18235
18256
|
var $;
|
18236
18257
|
return [
|
@@ -18238,13 +18259,13 @@ const fu = ["data-theme"], au = {
|
|
18238
18259
|
o("div", _1, [
|
18239
18260
|
o("button", {
|
18240
18261
|
class: "audio-message__modal-close-button",
|
18241
|
-
onClick:
|
18242
|
-
},
|
18262
|
+
onClick: I[3] || (I[3] = (J) => m.value = !1)
|
18263
|
+
}, I[10] || (I[10] = [
|
18243
18264
|
o("span", null, [
|
18244
18265
|
o("i", { class: "pi pi-times" })
|
18245
18266
|
], -1)
|
18246
18267
|
])),
|
18247
|
-
o("p", I1,
|
18268
|
+
o("p", I1, T(($ = e.message.transcript) == null ? void 0 : $.text), 1)
|
18248
18269
|
])
|
18249
18270
|
])) : v("", !0)
|
18250
18271
|
];
|
@@ -18268,7 +18289,7 @@ const fu = ["data-theme"], au = {
|
|
18268
18289
|
},
|
18269
18290
|
setup(e) {
|
18270
18291
|
return (t, n) => (r(), u("div", N1, [
|
18271
|
-
o("p", D1,
|
18292
|
+
o("p", D1, T(e.message.text), 1)
|
18272
18293
|
]));
|
18273
18294
|
}
|
18274
18295
|
}), T1 = /* @__PURE__ */ R(E1, [["__scopeId", "data-v-72a5e50d"]]), j1 = ["messageId"], x1 = ["src"], V1 = {
|
@@ -18300,8 +18321,8 @@ const fu = ["data-theme"], au = {
|
|
18300
18321
|
function s(C) {
|
18301
18322
|
return C.position === "left" ? "video-message__left" : "video-message__right";
|
18302
18323
|
}
|
18303
|
-
const i = b(), l = b(), c = b(!1), A = b(!1),
|
18304
|
-
|
18324
|
+
const i = b(), l = b(), c = b(!1), A = b(!1), d = b(!1), g = b(!1), m = b("");
|
18325
|
+
G(
|
18305
18326
|
() => n.message.text,
|
18306
18327
|
() => {
|
18307
18328
|
n.message.text && (m.value = we(n.message.text));
|
@@ -18315,27 +18336,27 @@ const fu = ["data-theme"], au = {
|
|
18315
18336
|
f("action", { messageId: n.message.messageId, type: "views" });
|
18316
18337
|
}, y = () => {
|
18317
18338
|
}, h = () => {
|
18318
|
-
|
18319
|
-
},
|
18320
|
-
|
18321
|
-
},
|
18339
|
+
d.value = !0, g.value = !0;
|
18340
|
+
}, V = () => {
|
18341
|
+
d.value = !1, A.value = !1;
|
18342
|
+
}, S = Q(() => At(n.message.status)), j = () => {
|
18322
18343
|
l.value && (l.value.currentTime = 0, l.value.play());
|
18323
18344
|
};
|
18324
|
-
|
18325
|
-
C ?
|
18345
|
+
G([i, l], ([C, k]) => {
|
18346
|
+
C ? k && (k.pause(), k.currentTime = 0) : k && (k.play(), k.currentTime = 0);
|
18326
18347
|
});
|
18327
|
-
const
|
18328
|
-
C.key === "Escape" && c.value &&
|
18348
|
+
const L = Q(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"), _ = () => c.value = !1, x = (C) => {
|
18349
|
+
C.key === "Escape" && c.value && _();
|
18329
18350
|
};
|
18330
|
-
return
|
18331
|
-
document.addEventListener("keydown",
|
18351
|
+
return ie(() => {
|
18352
|
+
document.addEventListener("keydown", x);
|
18332
18353
|
}), Ke(() => {
|
18333
|
-
document.removeEventListener("keydown",
|
18334
|
-
}), (C,
|
18354
|
+
document.removeEventListener("keydown", x);
|
18355
|
+
}), (C, k) => (r(), u(q, null, [
|
18335
18356
|
o("div", {
|
18336
|
-
class:
|
18357
|
+
class: O(["video-message", s(e.message)]),
|
18337
18358
|
messageId: e.message.messageId,
|
18338
|
-
onMouseleave:
|
18359
|
+
onMouseleave: V
|
18339
18360
|
}, [
|
18340
18361
|
e.message.avatar ? (r(), u("img", {
|
18341
18362
|
key: 0,
|
@@ -18344,85 +18365,85 @@ const fu = ["data-theme"], au = {
|
|
18344
18365
|
height: "32",
|
18345
18366
|
width: "32"
|
18346
18367
|
}, null, 8, x1)) : v("", !0),
|
18347
|
-
e.message.subText ? (r(), u("p", V1,
|
18368
|
+
e.message.subText ? (r(), u("p", V1, T(e.message.subText), 1)) : v("", !0),
|
18348
18369
|
o("div", S1, [
|
18349
18370
|
e.message.reply ? (r(), B(ct, {
|
18350
18371
|
key: 0,
|
18351
18372
|
style: { margin: "10px 10px 4px 16px" },
|
18352
|
-
class:
|
18373
|
+
class: O(e.message.position),
|
18353
18374
|
message: e.message.reply,
|
18354
18375
|
onReply: a
|
18355
18376
|
}, null, 8, ["class", "message"])) : v("", !0),
|
18356
18377
|
o("div", {
|
18357
18378
|
class: "video-message__preview-button",
|
18358
|
-
onClick:
|
18379
|
+
onClick: k[0] || (k[0] = (N) => c.value = !0),
|
18359
18380
|
onMouseenter: h,
|
18360
|
-
onMouseleave:
|
18381
|
+
onMouseleave: k[1] || (k[1] = (N) => g.value = !g.value)
|
18361
18382
|
}, [
|
18362
18383
|
o("video", {
|
18363
18384
|
ref_key: "previewPlayer",
|
18364
18385
|
ref: l,
|
18365
18386
|
class: "video-message__video",
|
18366
|
-
style: se({ borderRadius:
|
18387
|
+
style: se({ borderRadius: L.value }),
|
18367
18388
|
onEnded: j,
|
18368
18389
|
src: e.message.url,
|
18369
18390
|
muted: !0,
|
18370
18391
|
autoplay: ""
|
18371
18392
|
}, null, 44, C1),
|
18372
|
-
F(
|
18393
|
+
F(X, { name: "modal-fade" }, {
|
18373
18394
|
default: K(() => [
|
18374
|
-
|
18395
|
+
g.value ? (r(), u("div", z1, [
|
18375
18396
|
e.message.views ? (r(), u("div", {
|
18376
18397
|
key: 0,
|
18377
18398
|
onClick: kt(p, ["stop"]),
|
18378
18399
|
class: "video-message__views"
|
18379
18400
|
}, [
|
18380
|
-
|
18381
|
-
o("p", null,
|
18401
|
+
k[3] || (k[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
18402
|
+
o("p", null, T(e.message.views), 1)
|
18382
18403
|
])) : v("", !0),
|
18383
|
-
o("span", O1,
|
18384
|
-
s(e.message) === "video-message__right" &&
|
18404
|
+
o("span", O1, T(e.message.time), 1),
|
18405
|
+
s(e.message) === "video-message__right" && E(rt).includes(e.message.status) ? (r(), u("div", {
|
18385
18406
|
key: 1,
|
18386
|
-
class:
|
18407
|
+
class: O(["video-message__status", S.value])
|
18387
18408
|
}, [
|
18388
18409
|
e.message.status !== "sent" ? (r(), u("span", L1)) : v("", !0),
|
18389
|
-
|
18410
|
+
k[4] || (k[4] = o("span", { class: "pi pi-check" }, null, -1))
|
18390
18411
|
], 2)) : v("", !0)
|
18391
18412
|
])) : v("", !0)
|
18392
18413
|
]),
|
18393
18414
|
_: 1
|
18394
18415
|
}),
|
18395
|
-
F(
|
18416
|
+
F(X, { name: "modal-fade" }, {
|
18396
18417
|
default: K(() => [
|
18397
|
-
|
18418
|
+
g.value ? (r(), u("a", {
|
18398
18419
|
key: 0,
|
18399
18420
|
onClick: kt(() => "//Предотвращаем всплытие события клика", ["stop"]),
|
18400
18421
|
class: "video-message__download-button",
|
18401
18422
|
href: e.message.url,
|
18402
18423
|
download: "",
|
18403
18424
|
target: "_blank"
|
18404
|
-
},
|
18425
|
+
}, k[5] || (k[5] = [
|
18405
18426
|
o("span", { class: "pi pi-download" }, null, -1)
|
18406
18427
|
]), 8, U1)) : v("", !0)
|
18407
18428
|
]),
|
18408
18429
|
_: 1
|
18409
18430
|
})
|
18410
18431
|
], 32),
|
18411
|
-
F(
|
18432
|
+
F(X, { name: "modal-fade" }, {
|
18412
18433
|
default: K(() => [
|
18413
|
-
|
18434
|
+
d.value && e.message.actions ? (r(), u("button", {
|
18414
18435
|
key: 0,
|
18415
18436
|
class: "video-message__menu-button",
|
18416
|
-
onClick:
|
18417
|
-
},
|
18437
|
+
onClick: k[2] || (k[2] = (N) => A.value = !A.value)
|
18438
|
+
}, k[6] || (k[6] = [
|
18418
18439
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
18419
18440
|
]))) : v("", !0)
|
18420
18441
|
]),
|
18421
18442
|
_: 1
|
18422
18443
|
}),
|
18423
|
-
F(
|
18444
|
+
F(X, { name: "context-menu" }, {
|
18424
18445
|
default: K(() => [
|
18425
|
-
A.value && e.message.actions ? (r(), B(
|
18446
|
+
A.value && e.message.actions ? (r(), B(E($e), {
|
18426
18447
|
key: 0,
|
18427
18448
|
class: "video-message__context-menu",
|
18428
18449
|
actions: e.message.actions,
|
@@ -18439,17 +18460,17 @@ const fu = ["data-theme"], au = {
|
|
18439
18460
|
])) : v("", !0),
|
18440
18461
|
e.message.linkPreview ? (r(), B(Lt, {
|
18441
18462
|
key: 2,
|
18442
|
-
class:
|
18463
|
+
class: O(["video-message__link-preview", e.message.position]),
|
18443
18464
|
linkPreview: e.message.linkPreview
|
18444
18465
|
}, null, 8, ["class", "linkPreview"])) : v("", !0)
|
18445
18466
|
])
|
18446
18467
|
], 42, j1),
|
18447
18468
|
(r(), B(de, { to: "body" }, [
|
18448
|
-
F(
|
18469
|
+
F(X, { name: "modal-fade" }, {
|
18449
18470
|
default: K(() => [
|
18450
18471
|
c.value ? (r(), B(lf, {
|
18451
18472
|
key: 0,
|
18452
|
-
onClose:
|
18473
|
+
onClose: _
|
18453
18474
|
}, {
|
18454
18475
|
default: K(() => [
|
18455
18476
|
o("video", {
|
@@ -18518,7 +18539,7 @@ const fu = ["data-theme"], au = {
|
|
18518
18539
|
return (a, s) => {
|
18519
18540
|
var i;
|
18520
18541
|
return r(), u("div", {
|
18521
|
-
class:
|
18542
|
+
class: O(f(e.message, n.message)),
|
18522
18543
|
messageId: e.message.messageId
|
18523
18544
|
}, [
|
18524
18545
|
e.message.avatar ? (r(), u("img", {
|
@@ -18529,16 +18550,16 @@ const fu = ["data-theme"], au = {
|
|
18529
18550
|
width: "32",
|
18530
18551
|
style: se({ gridRow: e.message.subText ? "2" : "1" })
|
18531
18552
|
}, null, 12, F1)) : v("", !0),
|
18532
|
-
e.message.subText ? (r(), u("p", q1,
|
18553
|
+
e.message.subText ? (r(), u("p", q1, T(e.message.subText), 1)) : v("", !0),
|
18533
18554
|
o("div", H1, [
|
18534
18555
|
o("span", {
|
18535
18556
|
class: "call-message__icon pi pi-phone",
|
18536
18557
|
style: se({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
|
18537
18558
|
}, null, 4),
|
18538
18559
|
e.message.isMissedCall ? (r(), u("span", K1, "Пропущенный аудиозвонок")) : (r(), u("span", W1, "Аудиозвонок")),
|
18539
|
-
e.message.callDuration ? (r(), u("span", J1,
|
18560
|
+
e.message.callDuration ? (r(), u("span", J1, T(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (r(), u("span", G1, "Нажмите, чтобы перезвонить")) : (r(), u("span", Z1, "Нет ответа")),
|
18540
18561
|
o("div", X1, [
|
18541
|
-
o("span", ed,
|
18562
|
+
o("span", ed, T(e.message.time), 1)
|
18542
18563
|
]),
|
18543
18564
|
(i = e.message.transcript) != null && i.dialog ? (r(), u("button", {
|
18544
18565
|
key: 5,
|
@@ -18548,7 +18569,7 @@ const fu = ["data-theme"], au = {
|
|
18548
18569
|
o("span", { class: "pi pi-arrow-up-right" }, null, -1)
|
18549
18570
|
]))) : v("", !0),
|
18550
18571
|
(r(), B(de, { to: "body" }, [
|
18551
|
-
F(
|
18572
|
+
F(X, { name: "modal-fade" }, {
|
18552
18573
|
default: K(() => {
|
18553
18574
|
var l;
|
18554
18575
|
return [
|
@@ -18563,10 +18584,10 @@ const fu = ["data-theme"], au = {
|
|
18563
18584
|
], -1)
|
18564
18585
|
])),
|
18565
18586
|
(r(!0), u(q, null, te((l = e.message.transcript) == null ? void 0 : l.dialog, (c, A) => (r(), u("div", {
|
18566
|
-
class:
|
18587
|
+
class: O(f(c, n.textDialog))
|
18567
18588
|
}, [
|
18568
|
-
o("p", null,
|
18569
|
-
o("span", null,
|
18589
|
+
o("p", null, T(c.text), 1),
|
18590
|
+
o("span", null, T(c.time), 1)
|
18570
18591
|
], 2))), 256))
|
18571
18592
|
])
|
18572
18593
|
])) : v("", !0)
|
@@ -18589,7 +18610,7 @@ const fu = ["data-theme"], au = {
|
|
18589
18610
|
},
|
18590
18611
|
setup(e) {
|
18591
18612
|
return (t, n) => (r(), u("div", sd, [
|
18592
|
-
o("p", id,
|
18613
|
+
o("p", id, T(e.message.text), 1)
|
18593
18614
|
]));
|
18594
18615
|
}
|
18595
18616
|
}), ld = /* @__PURE__ */ R(od, [["__scopeId", "data-v-41bf24c1"]]), rd = { class: "typing-message__container" }, Ad = ["src"], cd = {
|
@@ -18613,7 +18634,7 @@ const fu = ["data-theme"], au = {
|
|
18613
18634
|
width: "32",
|
18614
18635
|
style: se({ gridRow: e.message.subText ? "2" : "1" })
|
18615
18636
|
}, null, 12, Ad)) : v("", !0),
|
18616
|
-
e.message.subText ? (r(), u("p", cd,
|
18637
|
+
e.message.subText ? (r(), u("p", cd, T(e.message.subText), 1)) : v("", !0),
|
18617
18638
|
n[0] || (n[0] = o("div", { class: "typing-message__loader-container" }, [
|
18618
18639
|
o("div", { class: "typing-message__loader" })
|
18619
18640
|
], -1))
|
@@ -18629,7 +18650,7 @@ const fu = ["data-theme"], au = {
|
|
18629
18650
|
},
|
18630
18651
|
setup(e) {
|
18631
18652
|
const t = e, n = b("");
|
18632
|
-
|
18653
|
+
G(
|
18633
18654
|
() => t.message.text,
|
18634
18655
|
() => {
|
18635
18656
|
n.value = we(t.message.text);
|
@@ -18654,7 +18675,7 @@ const fu = ["data-theme"], au = {
|
|
18654
18675
|
},
|
18655
18676
|
setup(e) {
|
18656
18677
|
const t = e, n = b(!1), f = b("");
|
18657
|
-
|
18678
|
+
G(
|
18658
18679
|
() => t.message.text,
|
18659
18680
|
() => {
|
18660
18681
|
t.message.text && (f.value = we(t.message.text));
|
@@ -18669,14 +18690,14 @@ const fu = ["data-theme"], au = {
|
|
18669
18690
|
}, l = (c) => {
|
18670
18691
|
c.key === "Escape" && n.value && s();
|
18671
18692
|
};
|
18672
|
-
return
|
18693
|
+
return ie(() => {
|
18673
18694
|
document.addEventListener("keydown", l);
|
18674
18695
|
}), Ke(() => {
|
18675
18696
|
document.removeEventListener("keydown", l);
|
18676
18697
|
}), (c, A) => (r(), u(q, null, [
|
18677
18698
|
o("div", {
|
18678
18699
|
class: "image-message__preview-button",
|
18679
|
-
onClick: A[0] || (A[0] = (
|
18700
|
+
onClick: A[0] || (A[0] = (d) => n.value = !0)
|
18680
18701
|
}, [
|
18681
18702
|
o("img", {
|
18682
18703
|
class: "image-message__preview-image",
|
@@ -18696,7 +18717,7 @@ const fu = ["data-theme"], au = {
|
|
18696
18717
|
}, null, 8, vd)) : v("", !0)
|
18697
18718
|
]),
|
18698
18719
|
(r(), B(de, { to: "body" }, [
|
18699
|
-
F(
|
18720
|
+
F(X, { name: "modal-fade" }, {
|
18700
18721
|
default: K(() => [
|
18701
18722
|
n.value ? (r(), u("div", {
|
18702
18723
|
key: 0,
|
@@ -18735,7 +18756,7 @@ const fu = ["data-theme"], au = {
|
|
18735
18756
|
},
|
18736
18757
|
setup(e) {
|
18737
18758
|
const t = e, n = b(!1), f = b("");
|
18738
|
-
|
18759
|
+
G(
|
18739
18760
|
() => t.message.text,
|
18740
18761
|
() => {
|
18741
18762
|
t.message.text && (f.value = we(t.message.text));
|
@@ -18774,7 +18795,7 @@ const fu = ["data-theme"], au = {
|
|
18774
18795
|
},
|
18775
18796
|
setup(e) {
|
18776
18797
|
const t = e, n = b(), f = b(!1), a = b("");
|
18777
|
-
|
18798
|
+
G(
|
18778
18799
|
() => t.message.text,
|
18779
18800
|
() => {
|
18780
18801
|
t.message.text && (a.value = we(t.message.text));
|
@@ -18789,14 +18810,14 @@ const fu = ["data-theme"], au = {
|
|
18789
18810
|
}, c = (A) => {
|
18790
18811
|
A.key === "Escape" && f.value && i();
|
18791
18812
|
};
|
18792
|
-
return
|
18813
|
+
return ie(() => {
|
18793
18814
|
document.addEventListener("keydown", c);
|
18794
18815
|
}), Ke(() => {
|
18795
18816
|
document.removeEventListener("keydown", c);
|
18796
|
-
}), (A,
|
18817
|
+
}), (A, d) => (r(), u(q, null, [
|
18797
18818
|
o("div", {
|
18798
18819
|
class: "video-message__preview-button",
|
18799
|
-
onClick:
|
18820
|
+
onClick: d[0] || (d[0] = (g) => f.value = !0)
|
18800
18821
|
}, [
|
18801
18822
|
o("video", {
|
18802
18823
|
class: "video-message__video",
|
@@ -18805,7 +18826,7 @@ const fu = ["data-theme"], au = {
|
|
18805
18826
|
}, null, 8, Ed)
|
18806
18827
|
]),
|
18807
18828
|
o("div", Td, [
|
18808
|
-
|
18829
|
+
d[1] || (d[1] = o("div", { class: "video-message__reply-description" }, [
|
18809
18830
|
o("span", { class: "pi pi-video" }),
|
18810
18831
|
o("p", null, "Видео")
|
18811
18832
|
], -1)),
|
@@ -18816,7 +18837,7 @@ const fu = ["data-theme"], au = {
|
|
18816
18837
|
}, null, 8, jd)) : v("", !0)
|
18817
18838
|
]),
|
18818
18839
|
(r(), B(de, { to: "body" }, [
|
18819
|
-
F(
|
18840
|
+
F(X, { name: "modal-fade" }, {
|
18820
18841
|
default: K(() => [
|
18821
18842
|
f.value ? (r(), u("div", {
|
18822
18843
|
key: 0,
|
@@ -18827,7 +18848,7 @@ const fu = ["data-theme"], au = {
|
|
18827
18848
|
o("button", {
|
18828
18849
|
class: "video-message__modal-close-button",
|
18829
18850
|
onClick: i
|
18830
|
-
},
|
18851
|
+
}, d[2] || (d[2] = [
|
18831
18852
|
o("span", null, [
|
18832
18853
|
o("i", { class: "pi pi-times" })
|
18833
18854
|
], -1)
|
@@ -18862,7 +18883,7 @@ const fu = ["data-theme"], au = {
|
|
18862
18883
|
},
|
18863
18884
|
setup(e) {
|
18864
18885
|
const t = e, n = b("");
|
18865
|
-
return
|
18886
|
+
return G(
|
18866
18887
|
() => t.message.text,
|
18867
18888
|
() => {
|
18868
18889
|
t.message.text && (n.value = we(t.message.text));
|
@@ -18878,13 +18899,13 @@ const fu = ["data-theme"], au = {
|
|
18878
18899
|
target: "_blank"
|
18879
18900
|
}, [
|
18880
18901
|
a[0] || (a[0] = o("span", { class: "pi pi-file" }, null, -1)),
|
18881
|
-
o("p", Od,
|
18902
|
+
o("p", Od, T(e.message.filename), 1)
|
18882
18903
|
], 8, zd),
|
18883
|
-
(s = e.message) != null && s.text ? (r(), u("p", Ld,
|
18904
|
+
(s = e.message) != null && s.text ? (r(), u("p", Ld, T(e.message.text), 1)) : v("", !0)
|
18884
18905
|
], 64);
|
18885
18906
|
};
|
18886
18907
|
}
|
18887
|
-
}), Bd = /* @__PURE__ */ R(Ud, [["__scopeId", "data-v-4fc32879"]]), Rd = ["id"],
|
18908
|
+
}), Bd = /* @__PURE__ */ R(Ud, [["__scopeId", "data-v-4fc32879"]]), Rd = ["id"], Qd = ["id"], Fg = {
|
18888
18909
|
__name: "BaseContainer",
|
18889
18910
|
props: {
|
18890
18911
|
height: String,
|
@@ -18893,18 +18914,21 @@ const fu = ["data-theme"], au = {
|
|
18893
18914
|
setup(e) {
|
18894
18915
|
const t = Gn();
|
18895
18916
|
return In("chatAppId", t), (n, f) => (r(), u("div", {
|
18896
|
-
id:
|
18917
|
+
id: E(t),
|
18897
18918
|
class: "base"
|
18898
18919
|
}, [
|
18899
18920
|
o("div", {
|
18900
18921
|
class: "base__container",
|
18901
18922
|
style: se({ height: e.height, width: e.width })
|
18902
18923
|
}, [
|
18903
|
-
ne(n.$slots, "default")
|
18924
|
+
ne(n.$slots, "default"),
|
18925
|
+
o("div", {
|
18926
|
+
id: "float-windows-" + E(t)
|
18927
|
+
}, null, 8, Qd)
|
18904
18928
|
], 4)
|
18905
18929
|
], 8, Rd));
|
18906
18930
|
}
|
18907
|
-
},
|
18931
|
+
}, $d = ["id"], Yd = { class: "float-window__container" }, Pd = ["src", "alt"], Fd = { class: "float-window__title" }, qd = { style: { "margin-left": "auto", display: "flex" } }, Hd = ["id"], Wd = {
|
18908
18932
|
__name: "FloatContainer",
|
18909
18933
|
props: {
|
18910
18934
|
title: {
|
@@ -18920,9 +18944,9 @@ const fu = ["data-theme"], au = {
|
|
18920
18944
|
},
|
18921
18945
|
emits: ["close-window", "get-size"],
|
18922
18946
|
setup(e, { emit: t }) {
|
18923
|
-
const n = e, f = b({ x: 0, y: 0 }), a = b(null), s = b(null), i = b(!1), l = b(0), c = b(0), A = b(0),
|
18924
|
-
In("chatAppId",
|
18925
|
-
const
|
18947
|
+
const n = e, f = b({ x: 0, y: 0 }), a = b(null), s = b(null), i = b(!1), l = b(0), c = b(0), A = b(0), d = Gn();
|
18948
|
+
In("chatAppId", d);
|
18949
|
+
const g = (p) => {
|
18926
18950
|
i.value = !0, l.value = p.clientX - a.value.offsetLeft, c.value = p.clientY - a.value.offsetTop;
|
18927
18951
|
}, m = () => i.value = !1, M = (p) => {
|
18928
18952
|
if (i.value) {
|
@@ -18930,7 +18954,7 @@ const fu = ["data-theme"], au = {
|
|
18930
18954
|
f.value.x = y, f.value.y = h;
|
18931
18955
|
}
|
18932
18956
|
};
|
18933
|
-
return
|
18957
|
+
return ie(() => {
|
18934
18958
|
document.addEventListener("mousemove", M), window.addEventListener("resize", () => {
|
18935
18959
|
a.value && (f.value.x = Math.max(
|
18936
18960
|
0,
|
@@ -18947,7 +18971,7 @@ const fu = ["data-theme"], au = {
|
|
18947
18971
|
));
|
18948
18972
|
}), A.value = a.value.offsetHeight - s.value.offsetHeight;
|
18949
18973
|
}), (p, y) => (r(), u("div", {
|
18950
|
-
id:
|
18974
|
+
id: E(d),
|
18951
18975
|
ref_key: "element",
|
18952
18976
|
ref: a,
|
18953
18977
|
class: "float-window",
|
@@ -18960,12 +18984,12 @@ const fu = ["data-theme"], au = {
|
|
18960
18984
|
display: "flex"
|
18961
18985
|
})
|
18962
18986
|
}, [
|
18963
|
-
o("div",
|
18987
|
+
o("div", Yd, [
|
18964
18988
|
o("div", {
|
18965
18989
|
ref_key: "container",
|
18966
18990
|
ref: s,
|
18967
18991
|
class: "float-window__controls",
|
18968
|
-
onMousedown:
|
18992
|
+
onMousedown: g,
|
18969
18993
|
onMouseup: m,
|
18970
18994
|
onMouseleave: m
|
18971
18995
|
}, [
|
@@ -18974,9 +18998,9 @@ const fu = ["data-theme"], au = {
|
|
18974
18998
|
class: "float-window__avatar",
|
18975
18999
|
src: n.avatar,
|
18976
19000
|
alt: n.title
|
18977
|
-
}, null, 8,
|
18978
|
-
o("p",
|
18979
|
-
o("div",
|
19001
|
+
}, null, 8, Pd)) : v("", !0),
|
19002
|
+
o("p", Fd, T(n.title), 1),
|
19003
|
+
o("div", qd, [
|
18980
19004
|
ne(p.$slots, "controls", {}, void 0, !0),
|
18981
19005
|
o("button", {
|
18982
19006
|
class: "float-window__close-button",
|
@@ -18990,51 +19014,54 @@ const fu = ["data-theme"], au = {
|
|
18990
19014
|
class: "float-window__content",
|
18991
19015
|
style: se({ height: A.value + "px" })
|
18992
19016
|
}, [
|
18993
|
-
ne(p.$slots, "default", {}, void 0, !0)
|
19017
|
+
ne(p.$slots, "default", {}, void 0, !0),
|
19018
|
+
o("div", {
|
19019
|
+
id: "float-windows-" + E(d)
|
19020
|
+
}, null, 8, Hd)
|
18994
19021
|
], 4)
|
18995
19022
|
])
|
18996
|
-
], 12,
|
19023
|
+
], 12, $d));
|
18997
19024
|
}
|
18998
|
-
},
|
18999
|
-
function
|
19000
|
-
return r(), u("div",
|
19001
|
-
o("div",
|
19025
|
+
}, qg = /* @__PURE__ */ R(Wd, [["__scopeId", "data-v-968ec93c"]]), Kd = {}, Jd = { class: "base-layout__container" }, Gd = { class: "base-layout__first-col" }, Zd = { class: "base-layout__second-col" };
|
19026
|
+
function Xd(e, t) {
|
19027
|
+
return r(), u("div", Jd, [
|
19028
|
+
o("div", Gd, [
|
19002
19029
|
ne(e.$slots, "first-col", {}, void 0, !0)
|
19003
19030
|
]),
|
19004
|
-
o("div",
|
19031
|
+
o("div", Zd, [
|
19005
19032
|
ne(e.$slots, "second-col", {}, void 0, !0)
|
19006
19033
|
])
|
19007
19034
|
]);
|
19008
19035
|
}
|
19009
|
-
const
|
19010
|
-
function
|
19011
|
-
return r(), u("div",
|
19012
|
-
o("div",
|
19036
|
+
const Hg = /* @__PURE__ */ R(Kd, [["render", Xd], ["__scopeId", "data-v-a5df3fcf"]]), eg = {}, tg = { class: "extend-layout__container" }, ng = { class: "extend-layout__first-col" }, fg = { class: "extend-layout__second-col" }, ag = { class: "extend-layout__third-col" };
|
19037
|
+
function sg(e, t) {
|
19038
|
+
return r(), u("div", tg, [
|
19039
|
+
o("div", ng, [
|
19013
19040
|
ne(e.$slots, "first-col", {}, void 0, !0)
|
19014
19041
|
]),
|
19015
|
-
o("div",
|
19042
|
+
o("div", fg, [
|
19016
19043
|
ne(e.$slots, "second-col", {}, void 0, !0)
|
19017
19044
|
]),
|
19018
|
-
o("div",
|
19045
|
+
o("div", ag, [
|
19019
19046
|
ne(e.$slots, "third-col", {}, void 0, !0)
|
19020
19047
|
])
|
19021
19048
|
]);
|
19022
19049
|
}
|
19023
|
-
const
|
19024
|
-
function
|
19025
|
-
return r(), u("div",
|
19026
|
-
o("div",
|
19050
|
+
const Wg = /* @__PURE__ */ R(eg, [["render", sg], ["__scopeId", "data-v-61f9f2d0"]]), ig = {}, og = { class: "base-layout__container" }, lg = { class: "base-layout__first-col" };
|
19051
|
+
function rg(e, t) {
|
19052
|
+
return r(), u("div", og, [
|
19053
|
+
o("div", lg, [
|
19027
19054
|
ne(e.$slots, "default", {}, void 0, !0)
|
19028
19055
|
])
|
19029
19056
|
]);
|
19030
19057
|
}
|
19031
|
-
const
|
19058
|
+
const Kg = /* @__PURE__ */ R(ig, [["render", rg], ["__scopeId", "data-v-a4657f8e"]]), Ag = ["id"], cg = {
|
19032
19059
|
key: 0,
|
19033
19060
|
class: "chat-wrapper__selected-chat"
|
19034
|
-
},
|
19061
|
+
}, ug = {
|
19035
19062
|
key: 1,
|
19036
19063
|
style: { width: "100%" }
|
19037
|
-
},
|
19064
|
+
}, dg = /* @__PURE__ */ W({
|
19038
19065
|
__name: "ChatWrapper",
|
19039
19066
|
props: {
|
19040
19067
|
isOpenChatPanel: {
|
@@ -19053,7 +19080,7 @@ const Hg = /* @__PURE__ */ R(ag, [["render", og], ["__scopeId", "data-v-a4657f8e
|
|
19053
19080
|
},
|
19054
19081
|
setup(e) {
|
19055
19082
|
const t = e, n = ee("chatAppId");
|
19056
|
-
return
|
19083
|
+
return G(
|
19057
19084
|
() => t.chatPanelWidth,
|
19058
19085
|
() => {
|
19059
19086
|
const f = document.getElementById("chat-wrapper-" + n);
|
@@ -19062,12 +19089,12 @@ const Hg = /* @__PURE__ */ R(ag, [["render", og], ["__scopeId", "data-v-a4657f8e
|
|
19062
19089
|
{ immediate: !0 }
|
19063
19090
|
), (f, a) => (r(), u("div", {
|
19064
19091
|
class: "chat-wrapper",
|
19065
|
-
id: "chat-wrapper-" +
|
19092
|
+
id: "chat-wrapper-" + E(n)
|
19066
19093
|
}, [
|
19067
|
-
e.isSelectedChat ? (r(), u("div",
|
19094
|
+
e.isSelectedChat ? (r(), u("div", cg, [
|
19068
19095
|
ne(f.$slots, "default", {}, void 0, !0)
|
19069
|
-
])) : (r(), u("div",
|
19070
|
-
o("p", null,
|
19096
|
+
])) : (r(), u("div", ug, [
|
19097
|
+
o("p", null, T(E(pe)("layout.ChatWrapper.noSelectedChat")), 1)
|
19071
19098
|
])),
|
19072
19099
|
e.isOpenChatPanel ? (r(), u("div", {
|
19073
19100
|
key: 2,
|
@@ -19076,9 +19103,9 @@ const Hg = /* @__PURE__ */ R(ag, [["render", og], ["__scopeId", "data-v-a4657f8e
|
|
19076
19103
|
}, [
|
19077
19104
|
ne(f.$slots, "chatpanel", {}, void 0, !0)
|
19078
19105
|
], 4)) : v("", !0)
|
19079
|
-
], 8,
|
19106
|
+
], 8, Ag));
|
19080
19107
|
}
|
19081
|
-
}),
|
19108
|
+
}), Jg = /* @__PURE__ */ R(dg, [["__scopeId", "data-v-584eaa98"]]), gg = ["id"], mg = ["id"], pg = ["id"], hg = ["id"], vg = {
|
19082
19109
|
__name: "AdaptiveExtendedLayout",
|
19083
19110
|
props: {
|
19084
19111
|
isSecondColVisible: {
|
@@ -19092,7 +19119,7 @@ const Hg = /* @__PURE__ */ R(ag, [["render", og], ["__scopeId", "data-v-a4657f8e
|
|
19092
19119
|
},
|
19093
19120
|
setup(e) {
|
19094
19121
|
const t = e;
|
19095
|
-
|
19122
|
+
G(
|
19096
19123
|
() => [t.isSecondColVisible, t.isThirdColVisible],
|
19097
19124
|
() => {
|
19098
19125
|
t.isSecondColVisible && a(), t.isThirdColVisible && f();
|
@@ -19106,67 +19133,67 @@ const Hg = /* @__PURE__ */ R(ag, [["render", og], ["__scopeId", "data-v-a4657f8e
|
|
19106
19133
|
const s = document.getElementById("extern-layout-container-" + n);
|
19107
19134
|
s.style.setProperty("--second-col-display", "flex"), s.style.setProperty("--third-col-display", "none"), s.style.setProperty("--second-col-width", "100%"), s.style.setProperty("--third-col-width", "0%");
|
19108
19135
|
};
|
19109
|
-
return
|
19136
|
+
return ie(() => {
|
19110
19137
|
const s = document.getElementById("extern-layout-container-" + n), i = document.getElementById("extend-layout-first-col-" + n);
|
19111
19138
|
s.style.setProperty("--first-col-width", i.offsetWidth + "px");
|
19112
19139
|
}), (s, i) => (r(), u("div", {
|
19113
19140
|
class: "extend-layout__container",
|
19114
19141
|
ref: "refContainer",
|
19115
|
-
id: "extern-layout-container-" +
|
19142
|
+
id: "extern-layout-container-" + E(n)
|
19116
19143
|
}, [
|
19117
19144
|
o("div", {
|
19118
19145
|
class: "extend-layout__first-col",
|
19119
|
-
id: "extend-layout-first-col-" +
|
19146
|
+
id: "extend-layout-first-col-" + E(n)
|
19120
19147
|
}, [
|
19121
19148
|
ne(s.$slots, "first-col", {}, void 0, !0)
|
19122
|
-
], 8,
|
19149
|
+
], 8, mg),
|
19123
19150
|
o("div", {
|
19124
19151
|
class: "extend-layout__second-col",
|
19125
|
-
id: "extend-layout-second-col-" +
|
19152
|
+
id: "extend-layout-second-col-" + E(n)
|
19126
19153
|
}, [
|
19127
19154
|
ne(s.$slots, "second-col", {}, void 0, !0)
|
19128
|
-
], 8,
|
19155
|
+
], 8, pg),
|
19129
19156
|
o("div", {
|
19130
19157
|
class: "extend-layout__third-col",
|
19131
|
-
id: "extend-layout-third-col-" +
|
19158
|
+
id: "extend-layout-third-col-" + E(n)
|
19132
19159
|
}, [
|
19133
19160
|
ne(s.$slots, "third-col", {}, void 0, !0)
|
19134
|
-
], 8,
|
19135
|
-
], 8,
|
19161
|
+
], 8, hg)
|
19162
|
+
], 8, gg));
|
19136
19163
|
}
|
19137
|
-
},
|
19164
|
+
}, Gg = /* @__PURE__ */ R(vg, [["__scopeId", "data-v-bc020414"]]);
|
19138
19165
|
export {
|
19139
|
-
|
19166
|
+
xg as $,
|
19140
19167
|
k1 as A,
|
19141
19168
|
ma as B,
|
19142
19169
|
ad as C,
|
19143
19170
|
T1 as D,
|
19144
|
-
|
19171
|
+
Pg as E,
|
19145
19172
|
Cu as F,
|
19146
|
-
|
19147
|
-
|
19173
|
+
Rg as G,
|
19174
|
+
Qg as H,
|
19148
19175
|
Wu as I,
|
19149
|
-
|
19150
|
-
|
19176
|
+
$g as J,
|
19177
|
+
Yg as K,
|
19151
19178
|
Lt as L,
|
19152
19179
|
uu as M,
|
19153
|
-
|
19154
|
-
|
19155
|
-
|
19156
|
-
|
19180
|
+
Fg as N,
|
19181
|
+
qg as O,
|
19182
|
+
Hg as P,
|
19183
|
+
Wg as Q,
|
19157
19184
|
md as R,
|
19158
19185
|
ld as S,
|
19159
19186
|
f1 as T,
|
19160
|
-
|
19187
|
+
wg as U,
|
19161
19188
|
Y1 as V,
|
19162
|
-
|
19163
|
-
|
19164
|
-
|
19165
|
-
|
19189
|
+
Gg as W,
|
19190
|
+
Kg as X,
|
19191
|
+
Jg as Y,
|
19192
|
+
jg as Z,
|
19166
19193
|
R as _,
|
19167
19194
|
Gf as a,
|
19168
|
-
|
19169
|
-
|
19195
|
+
Vg as a0,
|
19196
|
+
Sg as a1,
|
19170
19197
|
ga as a2,
|
19171
19198
|
rt as a3,
|
19172
19199
|
At as a4,
|
@@ -19175,24 +19202,24 @@ export {
|
|
19175
19202
|
Cd as d,
|
19176
19203
|
Bd as e,
|
19177
19204
|
ct as f,
|
19178
|
-
|
19179
|
-
|
19180
|
-
|
19181
|
-
|
19182
|
-
|
19183
|
-
|
19184
|
-
|
19185
|
-
|
19186
|
-
|
19205
|
+
bg as g,
|
19206
|
+
Mg as h,
|
19207
|
+
_g as i,
|
19208
|
+
Ig as j,
|
19209
|
+
kg as k,
|
19210
|
+
Ng as l,
|
19211
|
+
Dg as m,
|
19212
|
+
Eg as n,
|
19213
|
+
Tg as o,
|
19187
19214
|
zn as p,
|
19188
19215
|
ho as q,
|
19189
19216
|
Ho as r,
|
19190
|
-
|
19191
|
-
|
19192
|
-
|
19217
|
+
Cg as s,
|
19218
|
+
zg as t,
|
19219
|
+
Og as u,
|
19193
19220
|
$e as v,
|
19194
|
-
|
19195
|
-
|
19221
|
+
Lg as w,
|
19222
|
+
Ug as x,
|
19196
19223
|
Lf as y,
|
19197
|
-
|
19224
|
+
Bg as z
|
19198
19225
|
};
|