@mobilon-dev/chotto 0.0.58 → 0.0.59
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.
@@ -1,4 +1,4 @@
|
|
1
|
-
import { openBlock as r, createElementBlock as c, createElementVNode as o, toDisplayString as N, createCommentVNode as
|
1
|
+
import { openBlock as r, createElementBlock as c, createElementVNode as o, toDisplayString as N, createCommentVNode as _, renderSlot as ee, ref as I, defineComponent as J, inject as de, watch as le, nextTick as xf, unref as S, withDirectives as ce, withKeys as ka, vModelText as uf, normalizeClass as U, createVNode as Q, Transition as q, withCtx as $, createBlock as F, Fragment as H, renderList as Z, onUpdated as Na, resolveDynamicComponent as Da, normalizeStyle as K, useId as Rt, onMounted as we, onUnmounted as ct, computed as R, Teleport as hf, toRef as ja, vModelRadio as Rn, reactive as Yn, getCurrentInstance as Ea, toRaw as qn, onBeforeUnmount as Ta, provide as Yt, readonly as Va, vShow as Lf, resolveComponent as Sf, withModifiers as Qe, h as yn, defineAsyncComponent as xa, createApp as Sa } from "vue";
|
2
2
|
const Ca = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", za = "ελ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", Re = (e, f) => {
|
3
3
|
for (const t in f)
|
4
4
|
e[t] = f[t];
|
@@ -20,11 +20,11 @@ function Ba(e, f) {
|
|
20
20
|
f[n].indexOf(e) >= 0 && (t[n] = !0);
|
21
21
|
return t;
|
22
22
|
}
|
23
|
-
function
|
23
|
+
function ae(e = null) {
|
24
24
|
this.j = {}, this.jr = [], this.jd = null, this.t = e;
|
25
25
|
}
|
26
|
-
|
27
|
-
|
26
|
+
ae.groups = {};
|
27
|
+
ae.prototype = {
|
28
28
|
accepts() {
|
29
29
|
return !!this.t;
|
30
30
|
},
|
@@ -77,9 +77,9 @@ se.prototype = {
|
|
77
77
|
* @returns {State<T>} taken after the given input
|
78
78
|
*/
|
79
79
|
tr(e, f, t, n) {
|
80
|
-
n = n ||
|
80
|
+
n = n || ae.groups;
|
81
81
|
let a;
|
82
|
-
return f && f.j ? a = f : (a = new
|
82
|
+
return f && f.j ? a = f : (a = new ae(f), t && n && ze(f, t, n)), this.jr.push([e, a]), a;
|
83
83
|
},
|
84
84
|
/**
|
85
85
|
* Short for "take transitions", will take as many sequential transitions as
|
@@ -127,13 +127,13 @@ se.prototype = {
|
|
127
127
|
* @returns {State<T>} taken after the given input
|
128
128
|
*/
|
129
129
|
tt(e, f, t, n) {
|
130
|
-
n = n ||
|
130
|
+
n = n || ae.groups;
|
131
131
|
const a = this;
|
132
132
|
if (f && f.j)
|
133
133
|
return a.j[e] = f, f;
|
134
134
|
const s = f;
|
135
135
|
let A, i = a.go(e);
|
136
|
-
if (i ? (A = new
|
136
|
+
if (i ? (A = new ae(), Re(A.j, i.j), A.jr.push.apply(A.jr, i.jr), A.jd = i.jd, A.t = i.t) : A = new ae(), s) {
|
137
137
|
if (n)
|
138
138
|
if (A.t && typeof A.t == "string") {
|
139
139
|
const l = Re(Ba(A.t, n), t);
|
@@ -144,7 +144,7 @@ se.prototype = {
|
|
144
144
|
return a.j[e] = A, A;
|
145
145
|
}
|
146
146
|
};
|
147
|
-
const
|
147
|
+
const O = (e, f, t, n, a) => e.ta(f, t, n, a), Y = (e, f, t, n, a) => e.tr(f, t, n, a), Mn = (e, f, t, n, a) => e.ts(f, t, n, a), v = (e, f, t, n, a) => e.tt(f, t, n, a), Ie = "WORD", Ct = "UWORD", Hn = "ASCIINUMERICAL", Fn = "ALPHANUMERICAL", cf = "LOCALHOST", zt = "TLD", Ot = "UTLD", Cf = "SCHEME", Be = "SLASH_SCHEME", qt = "NUM", Lt = "WS", $t = "NL", nf = "OPENBRACE", af = "CLOSEBRACE", Uf = "OPENBRACKET", Bf = "CLOSEBRACKET", Qf = "OPENPAREN", Rf = "CLOSEPAREN", Yf = "OPENANGLEBRACKET", qf = "CLOSEANGLEBRACKET", $f = "FULLWIDTHLEFTPAREN", Hf = "FULLWIDTHRIGHTPAREN", Ff = "LEFTCORNERBRACKET", Pf = "RIGHTCORNERBRACKET", Wf = "LEFTWHITECORNERBRACKET", Kf = "RIGHTWHITECORNERBRACKET", Jf = "FULLWIDTHLESSTHAN", Gf = "FULLWIDTHGREATERTHAN", Zf = "AMPERSAND", Ht = "APOSTROPHE", Xf = "ASTERISK", De = "AT", et = "BACKSLASH", ft = "BACKTICK", tt = "CARET", je = "COLON", Ft = "COMMA", nt = "DOLLAR", me = "DOT", at = "EQUALS", Pt = "EXCLAMATION", ie = "HYPHEN", sf = "PERCENT", st = "PIPE", At = "PLUS", it = "POUND", Af = "QUERY", Wt = "QUOTE", Pn = "FULLWIDTHMIDDLEDOT", Kt = "SEMI", pe = "SLASH", of = "TILDE", ot = "UNDERSCORE", Wn = "EMOJI", lt = "SYM";
|
148
148
|
var Kn = /* @__PURE__ */ Object.freeze({
|
149
149
|
__proto__: null,
|
150
150
|
WORD: Ie,
|
@@ -208,39 +208,39 @@ const be = /[a-z]/, Xe = new RegExp("\\p{L}", "u"), vt = new RegExp("\\p{Emoji}"
|
|
208
208
|
let Df = null, jf = null;
|
209
209
|
function Ya(e = []) {
|
210
210
|
const f = {};
|
211
|
-
|
212
|
-
const t = new
|
213
|
-
Df == null && (Df = vn(Ca)), jf == null && (jf = vn(za)),
|
214
|
-
const n =
|
211
|
+
ae.groups = f;
|
212
|
+
const t = new ae();
|
213
|
+
Df == null && (Df = vn(Ca)), jf == null && (jf = vn(za)), v(t, "'", Ht), v(t, "{", nf), v(t, "}", af), v(t, "[", Uf), v(t, "]", Bf), v(t, "(", Qf), v(t, ")", Rf), v(t, "<", Yf), v(t, ">", qf), v(t, "(", $f), v(t, ")", Hf), v(t, "「", Ff), v(t, "」", Pf), v(t, "『", Wf), v(t, "』", Kf), v(t, "<", Jf), v(t, ">", Gf), v(t, "&", Zf), v(t, "*", Xf), v(t, "@", De), v(t, "`", ft), v(t, "^", tt), v(t, ":", je), v(t, ",", Ft), v(t, "$", nt), v(t, ".", me), v(t, "=", at), v(t, "!", Pt), v(t, "-", ie), v(t, "%", sf), v(t, "|", st), v(t, "+", At), v(t, "#", it), v(t, "?", Af), v(t, '"', Wt), v(t, "/", pe), v(t, ";", Kt), v(t, "~", of), v(t, "_", ot), v(t, "\\", et), v(t, "・", Pn);
|
214
|
+
const n = Y(t, ve, qt, {
|
215
215
|
[Tt]: !0
|
216
216
|
});
|
217
|
-
|
218
|
-
const a =
|
217
|
+
Y(n, ve, n);
|
218
|
+
const a = Y(n, be, Hn, {
|
219
219
|
[tf]: !0
|
220
|
-
}), s =
|
220
|
+
}), s = Y(n, Xe, Fn, {
|
221
221
|
[ff]: !0
|
222
|
-
}), A =
|
222
|
+
}), A = Y(t, be, Ie, {
|
223
223
|
[Vt]: !0
|
224
224
|
});
|
225
|
-
|
226
|
-
const i =
|
225
|
+
Y(A, ve, a), Y(A, be, A), Y(a, ve, a), Y(a, be, a);
|
226
|
+
const i = Y(t, Xe, Ct, {
|
227
227
|
[xt]: !0
|
228
228
|
});
|
229
|
-
|
230
|
-
const l =
|
229
|
+
Y(i, be), Y(i, ve, s), Y(i, Xe, i), Y(s, ve, s), Y(s, be), Y(s, Xe, s);
|
230
|
+
const l = v(t, It, $t, {
|
231
231
|
[bt]: !0
|
232
|
-
}), u =
|
232
|
+
}), u = v(t, bn, Lt, {
|
233
233
|
[bt]: !0
|
234
|
-
}), g =
|
234
|
+
}), g = Y(t, _t, Lt, {
|
235
235
|
[bt]: !0
|
236
236
|
});
|
237
|
-
|
238
|
-
const d =
|
237
|
+
v(t, wt, g), v(u, It, l), v(u, wt, g), Y(u, _t, g), v(g, bn), v(g, It), Y(g, _t, g), v(g, wt, g);
|
238
|
+
const d = Y(t, vt, Wn, {
|
239
239
|
[$n]: !0
|
240
240
|
});
|
241
|
-
|
242
|
-
const
|
243
|
-
|
241
|
+
v(d, "#"), Y(d, vt, d), v(d, Qa, d);
|
242
|
+
const p = v(d, Ra);
|
243
|
+
v(p, "#"), Y(p, vt, d);
|
244
244
|
const m = [[be, A], [ve, a]], y = [[be, null], [Xe, i], [ve, s]];
|
245
245
|
for (let M = 0; M < Df.length; M++)
|
246
246
|
Ne(t, Df[M], zt, Ie, m);
|
@@ -258,18 +258,18 @@ function Ya(e = []) {
|
|
258
258
|
}, f), ze(Be, {
|
259
259
|
slashscheme: !0,
|
260
260
|
ascii: !0
|
261
|
-
}, f), e = e.sort((M,
|
261
|
+
}, f), e = e.sort((M, h) => M[0] > h[0] ? 1 : -1);
|
262
262
|
for (let M = 0; M < e.length; M++) {
|
263
|
-
const
|
263
|
+
const h = e[M][0], k = e[M][1] ? {
|
264
264
|
[Oa]: !0
|
265
265
|
} : {
|
266
266
|
[La]: !0
|
267
267
|
};
|
268
|
-
|
268
|
+
h.indexOf("-") >= 0 ? k[St] = !0 : be.test(h) ? ve.test(h) ? k[tf] = !0 : k[Vt] = !0 : k[Tt] = !0, Mn(t, h, h, k);
|
269
269
|
}
|
270
270
|
return Mn(t, "localhost", cf, {
|
271
271
|
ascii: !0
|
272
|
-
}), t.jd = new
|
272
|
+
}), t.jd = new ae(lt), {
|
273
273
|
start: t,
|
274
274
|
tokens: Re({
|
275
275
|
groups: f
|
@@ -280,10 +280,10 @@ function Jn(e, f) {
|
|
280
280
|
const t = qa(f.replace(/[A-Z]/g, (i) => i.toLowerCase())), n = t.length, a = [];
|
281
281
|
let s = 0, A = 0;
|
282
282
|
for (; A < n; ) {
|
283
|
-
let i = e, l = null, u = 0, g = null, d = -1,
|
283
|
+
let i = e, l = null, u = 0, g = null, d = -1, p = -1;
|
284
284
|
for (; A < n && (l = i.go(t[A])); )
|
285
|
-
i = l, i.accepts() ? (d = 0,
|
286
|
-
s -= d, A -=
|
285
|
+
i = l, i.accepts() ? (d = 0, p = 0, g = i) : d >= 0 && (d += t[A].length, p++), u += t[A].length, s += t[A].length, A++;
|
286
|
+
s -= d, A -= p, u -= d, a.push({
|
287
287
|
t: g.t,
|
288
288
|
// token type/name
|
289
289
|
v: f.slice(s - u, s),
|
@@ -310,9 +310,9 @@ function Ne(e, f, t, n, a) {
|
|
310
310
|
const A = f.length;
|
311
311
|
for (let i = 0; i < A - 1; i++) {
|
312
312
|
const l = f[i];
|
313
|
-
e.j[l] ? s = e.j[l] : (s = new
|
313
|
+
e.j[l] ? s = e.j[l] : (s = new ae(n), s.jr = a.slice(), e.j[l] = s), e = s;
|
314
314
|
}
|
315
|
-
return s = new
|
315
|
+
return s = new ae(t), s.jr = a.slice(), e.j[f[A - 1]] = s, s;
|
316
316
|
}
|
317
317
|
function vn(e) {
|
318
318
|
const f = [], t = [];
|
@@ -562,39 +562,39 @@ const In = dt("email", {
|
|
562
562
|
const e = this.tk;
|
563
563
|
return e.length >= 2 && e[0].t !== cf && e[1].t === je;
|
564
564
|
}
|
565
|
-
}), Ae = (e) => new
|
565
|
+
}), Ae = (e) => new ae(e);
|
566
566
|
function Ha({
|
567
567
|
groups: e
|
568
568
|
}) {
|
569
|
-
const f = e.domain.concat([Zf, Xf, De, et, ft, tt, nt, at, ie, qt, sf, st, At, it, pe, lt, of, ot]), t = [je, Ft, me, Pt, sf, Af, Wt, Kt, Yf, qf, nf, af, Bf, Uf, Qf, Rf, $f, Hf, Ff, Pf, Wf, Kf, Jf, Gf], n = [Zf, Ht, Xf, et, ft, tt, nt, at, ie, nf, af, sf, st, At, it, Af, pe, lt, of, ot], a = Ae(), s =
|
570
|
-
|
569
|
+
const f = e.domain.concat([Zf, Xf, De, et, ft, tt, nt, at, ie, qt, sf, st, At, it, pe, lt, of, ot]), t = [je, Ft, me, Pt, sf, Af, Wt, Kt, Yf, qf, nf, af, Bf, Uf, Qf, Rf, $f, Hf, Ff, Pf, Wf, Kf, Jf, Gf], n = [Zf, Ht, Xf, et, ft, tt, nt, at, ie, nf, af, sf, st, At, it, Af, pe, lt, of, ot], a = Ae(), s = v(a, of);
|
570
|
+
O(s, n, s), O(s, e.domain, s);
|
571
571
|
const A = Ae(), i = Ae(), l = Ae();
|
572
|
-
|
573
|
-
const u =
|
574
|
-
|
575
|
-
const g =
|
576
|
-
|
572
|
+
O(a, e.domain, A), O(a, e.scheme, i), O(a, e.slashscheme, l), O(A, n, s), O(A, e.domain, A);
|
573
|
+
const u = v(A, De);
|
574
|
+
v(s, De, u), v(i, De, u), v(l, De, u);
|
575
|
+
const g = v(s, me);
|
576
|
+
O(g, n, s), O(g, e.domain, s);
|
577
577
|
const d = Ae();
|
578
|
-
|
579
|
-
const
|
580
|
-
|
578
|
+
O(u, e.domain, d), O(d, e.domain, d);
|
579
|
+
const p = v(d, me);
|
580
|
+
O(p, e.domain, d);
|
581
581
|
const m = Ae(In);
|
582
|
-
|
583
|
-
const y =
|
584
|
-
|
585
|
-
const M =
|
586
|
-
|
587
|
-
const
|
588
|
-
|
582
|
+
O(p, e.tld, m), O(p, e.utld, m), v(u, cf, m);
|
583
|
+
const y = v(d, ie);
|
584
|
+
v(y, ie, y), O(y, e.domain, d), O(m, e.domain, d), v(m, me, p), v(m, ie, y);
|
585
|
+
const M = v(m, je);
|
586
|
+
O(M, e.numeric, In);
|
587
|
+
const h = v(A, ie), b = v(A, me);
|
588
|
+
v(h, ie, h), O(h, e.domain, A), O(b, n, s), O(b, e.domain, A);
|
589
589
|
const k = Ae(Ef);
|
590
|
-
|
591
|
-
const
|
592
|
-
|
593
|
-
const j = Ae(Ef),
|
594
|
-
|
595
|
-
const
|
596
|
-
|
597
|
-
const
|
590
|
+
O(b, e.tld, k), O(b, e.utld, k), O(k, e.domain, A), O(k, n, s), v(k, me, b), v(k, ie, h), v(k, De, u);
|
591
|
+
const C = v(k, je), w = Ae(Ef);
|
592
|
+
O(C, e.numeric, w);
|
593
|
+
const j = Ae(Ef), L = Ae();
|
594
|
+
O(j, f, j), O(j, t, L), O(L, f, j), O(L, t, L), v(k, pe, j), v(w, pe, j);
|
595
|
+
const V = v(i, je), x = v(l, je), E = v(x, pe), D = v(E, pe);
|
596
|
+
O(i, e.domain, A), v(i, me, b), v(i, ie, h), O(l, e.domain, A), v(l, me, b), v(l, ie, h), O(V, e.domain, j), v(V, pe, j), v(V, Af, j), O(D, e.domain, j), O(D, f, j), v(D, pe, j);
|
597
|
+
const T = [
|
598
598
|
[nf, af],
|
599
599
|
// {}
|
600
600
|
[Uf, Bf],
|
@@ -612,15 +612,15 @@ function Ha({
|
|
612
612
|
[Jf, Gf]
|
613
613
|
// <>
|
614
614
|
];
|
615
|
-
for (let
|
616
|
-
const [
|
617
|
-
|
618
|
-
const
|
619
|
-
|
615
|
+
for (let z = 0; z < T.length; z++) {
|
616
|
+
const [P, ne] = T[z], se = v(j, P);
|
617
|
+
v(L, P, se), v(se, ne, j);
|
618
|
+
const W = Ae(Ef);
|
619
|
+
O(se, f, W);
|
620
620
|
const G = Ae();
|
621
|
-
|
621
|
+
O(se, t), O(W, f, W), O(W, t, G), O(G, f, W), O(G, t, G), v(W, ne, j), v(G, ne, j);
|
622
622
|
}
|
623
|
-
return
|
623
|
+
return v(a, cf, k), v(a, $t, $a), {
|
624
624
|
start: a,
|
625
625
|
tokens: Kn
|
626
626
|
};
|
@@ -628,15 +628,15 @@ function Ha({
|
|
628
628
|
function Fa(e, f, t) {
|
629
629
|
let n = t.length, a = 0, s = [], A = [];
|
630
630
|
for (; a < n; ) {
|
631
|
-
let i = e, l = null, u = null, g = 0, d = null,
|
631
|
+
let i = e, l = null, u = null, g = 0, d = null, p = -1;
|
632
632
|
for (; a < n && !(l = i.go(t[a].t)); )
|
633
633
|
A.push(t[a++]);
|
634
634
|
for (; a < n && (u = l || i.go(t[a].t)); )
|
635
|
-
l = null, i = u, i.accepts() ? (
|
636
|
-
if (
|
635
|
+
l = null, i = u, i.accepts() ? (p = 0, d = i) : p >= 0 && p++, a++, g++;
|
636
|
+
if (p < 0)
|
637
637
|
a -= g, a < n && (A.push(t[a]), a++);
|
638
638
|
else {
|
639
|
-
A.length > 0 && (s.push(kt(wn, f, A)), A = []), a -=
|
639
|
+
A.length > 0 && (s.push(kt(wn, f, A)), A = []), a -= p, g -= p;
|
640
640
|
const m = d.t, y = t.slice(a - g, a);
|
641
641
|
s.push(kt(m, f, y));
|
642
642
|
}
|
@@ -647,7 +647,7 @@ function kt(e, f, t) {
|
|
647
647
|
const n = t[0].s, a = t[t.length - 1].e, s = f.slice(n, a);
|
648
648
|
return new e(s, t);
|
649
649
|
}
|
650
|
-
const
|
650
|
+
const X = {
|
651
651
|
scanner: null,
|
652
652
|
parser: null,
|
653
653
|
tokenQueue: [],
|
@@ -656,21 +656,21 @@ const ee = {
|
|
656
656
|
initialized: !1
|
657
657
|
};
|
658
658
|
function Pa() {
|
659
|
-
|
660
|
-
for (let e = 0; e <
|
661
|
-
|
662
|
-
scanner:
|
659
|
+
X.scanner = Ya(X.customSchemes);
|
660
|
+
for (let e = 0; e < X.tokenQueue.length; e++)
|
661
|
+
X.tokenQueue[e][1]({
|
662
|
+
scanner: X.scanner
|
663
663
|
});
|
664
|
-
|
665
|
-
for (let e = 0; e <
|
666
|
-
|
667
|
-
scanner:
|
668
|
-
parser:
|
664
|
+
X.parser = Ha(X.scanner.tokens);
|
665
|
+
for (let e = 0; e < X.pluginQueue.length; e++)
|
666
|
+
X.pluginQueue[e][1]({
|
667
|
+
scanner: X.scanner,
|
668
|
+
parser: X.parser
|
669
669
|
});
|
670
|
-
return
|
670
|
+
return X.initialized = !0, X;
|
671
671
|
}
|
672
672
|
function Zn(e) {
|
673
|
-
return
|
673
|
+
return X.initialized || Pa(), Fa(X.parser.start, e, Jn(X.scanner.start, e));
|
674
674
|
}
|
675
675
|
Zn.scan = Jn;
|
676
676
|
function Xn(e) {
|
@@ -746,12 +746,12 @@ const B = (e, f) => {
|
|
746
746
|
]),
|
747
747
|
o("div", fs, [
|
748
748
|
o("h2", ts, N(e.chat.name), 1),
|
749
|
-
e.chat["lastActivity.time"] ? (r(), c("p", ns, N(e.chat["lastActivity.time"]), 1)) :
|
749
|
+
e.chat["lastActivity.time"] ? (r(), c("p", ns, N(e.chat["lastActivity.time"]), 1)) : _("", !0)
|
750
750
|
]),
|
751
751
|
o("div", as, [
|
752
|
-
|
752
|
+
ee(n.$slots, "actions", {}, void 0, !0)
|
753
753
|
])
|
754
|
-
])) :
|
754
|
+
])) : _("", !0);
|
755
755
|
}
|
756
756
|
}, Xu = /* @__PURE__ */ B(ss, [["__scopeId", "data-v-26bb16be"]]), _e = I([]), yf = (e) => {
|
757
757
|
const f = I(0);
|
@@ -829,23 +829,16 @@ function ls() {
|
|
829
829
|
locales: ea
|
830
830
|
};
|
831
831
|
}
|
832
|
-
const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs = ["id"], ds = { class: "chat-input__second-line" }, gs = ["placeholder"], ms = { class: "chat-input__third-line" }, ps = {
|
832
|
+
const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs = ["id"], ds = { class: "chat-input__second-line" }, gs = ["placeholder"], ms = { class: "chat-input__third-line" }, ps = /* @__PURE__ */ J({
|
833
833
|
__name: "ChatInput",
|
834
|
-
|
835
|
-
templates: {
|
836
|
-
type: Array,
|
837
|
-
required: !1,
|
838
|
-
default: () => []
|
839
|
-
}
|
840
|
-
},
|
841
|
-
emits: ["send", "typing", "selectChannel"],
|
834
|
+
emits: ["send", "typing"],
|
842
835
|
setup(e, { emit: f }) {
|
843
|
-
const t = f, n = de("chatAppId"), { resetMessage: a, getMessage: s, setMessageText: A } = yf(n), i = I(
|
836
|
+
const t = f, n = de("chatAppId"), { resetMessage: a, getMessage: s, setMessageText: A } = yf(n), i = I();
|
844
837
|
le(
|
845
838
|
() => s().text,
|
846
839
|
() => {
|
847
840
|
xf(function() {
|
848
|
-
i.value
|
841
|
+
t("typing"), i.value && (i.value.style.height = "auto", i.value.style.height = i.value.scrollHeight + "px");
|
849
842
|
});
|
850
843
|
}
|
851
844
|
);
|
@@ -853,57 +846,57 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
853
846
|
t("typing", d.target.value);
|
854
847
|
}, u = (d) => {
|
855
848
|
if (d.ctrlKey) {
|
856
|
-
let
|
849
|
+
let p = d.target.selectionStart;
|
857
850
|
d.target.setRangeText(`
|
858
|
-
`,
|
851
|
+
`, p, p, "end"), A(d.target.value);
|
859
852
|
} else
|
860
853
|
d.preventDefault(), g();
|
861
854
|
}, g = () => {
|
862
|
-
var
|
855
|
+
var p;
|
863
856
|
const d = I(s());
|
864
857
|
if (d.value.text != "" || d.value.file) {
|
865
858
|
const m = {
|
866
|
-
type:
|
867
|
-
text:
|
868
|
-
url:
|
869
|
-
filename:
|
870
|
-
size:
|
859
|
+
type: "",
|
860
|
+
text: "",
|
861
|
+
url: "",
|
862
|
+
filename: "",
|
863
|
+
size: ""
|
871
864
|
};
|
872
|
-
d.value.file ? (m.type = "message." + d.value.file.type, m.url = d.value.file.url, m.filename = d.value.file.name, m.size = d.value.file.size, m.text = (
|
865
|
+
d.value.file ? (m.type = "message." + d.value.file.type, m.url = d.value.file.url, m.filename = d.value.file.name, m.size = d.value.file.size.toString(), m.text = (p = d == null ? void 0 : d.value) == null ? void 0 : p.text.trim()) : (m.type = "message.text", m.text = d.value.text.trim()), t("send", m), a(), i.value && i.value.focus();
|
873
866
|
}
|
874
867
|
};
|
875
|
-
return (d,
|
868
|
+
return (d, p) => (r(), c("div", rs, [
|
876
869
|
o("div", us, [
|
877
870
|
o("div", {
|
878
|
-
id: "chat-input-first-line-" +
|
871
|
+
id: "chat-input-first-line-" + S(n),
|
879
872
|
class: "chat-input__first-line"
|
880
873
|
}, null, 8, cs),
|
881
874
|
o("div", ds, [
|
882
875
|
ce(o("textarea", {
|
883
876
|
ref_key: "refInput",
|
884
877
|
ref: i,
|
885
|
-
"onUpdate:modelValue":
|
878
|
+
"onUpdate:modelValue": p[0] || (p[0] = (m) => S(s)().text = m),
|
886
879
|
class: "chat-input__input",
|
887
|
-
placeholder:
|
880
|
+
placeholder: S(Oe)("component.ChatInput.InputPlaceholder"),
|
888
881
|
onKeydown: ka(u, ["enter"]),
|
889
882
|
onInput: l
|
890
883
|
}, null, 40, gs), [
|
891
|
-
[uf,
|
884
|
+
[uf, S(s)().text]
|
892
885
|
]),
|
893
886
|
o("button", {
|
894
|
-
class:
|
887
|
+
class: U(["chat-input__button-send", { "chat-input__button-send-disabled": S(s)().text == "" && !S(s)().file }]),
|
895
888
|
onClick: g
|
896
|
-
},
|
889
|
+
}, p[1] || (p[1] = [
|
897
890
|
o("span", { class: "pi pi-send" }, null, -1)
|
898
891
|
]), 2)
|
899
892
|
]),
|
900
893
|
o("div", ms, [
|
901
|
-
|
894
|
+
ee(d.$slots, "buttons", {}, void 0, !0)
|
902
895
|
])
|
903
896
|
])
|
904
897
|
]));
|
905
898
|
}
|
906
|
-
}, ec = /* @__PURE__ */ B(ps, [["__scopeId", "data-v-
|
899
|
+
}), ec = /* @__PURE__ */ B(ps, [["__scopeId", "data-v-51a488f2"]]), hs = { class: "chat-list" }, ys = { class: "chat-list__title" }, Ms = {
|
907
900
|
key: 0,
|
908
901
|
class: "pi pi-minus"
|
909
902
|
}, bs = {
|
@@ -932,52 +925,52 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
932
925
|
n.value = !1;
|
933
926
|
}, s = e, A = f, i = (d) => {
|
934
927
|
s.chats.forEach((m) => m.isSelected = !1);
|
935
|
-
const
|
936
|
-
|
937
|
-
}, l = () => s.chats.toSorted((d,
|
938
|
-
if (Number(d["lastActivity.timestamp"]) > Number(
|
939
|
-
if (Number(d["lastActivity.timestamp"]) < Number(
|
940
|
-
if (Number(d["lastActivity.timestamp"]) == Number(
|
941
|
-
}).toSorted((d,
|
942
|
-
if (d.countUnread >
|
943
|
-
if (d.countUnread <
|
944
|
-
if (d.countUnread ==
|
928
|
+
const p = s.chats.find((m) => m.chatId === d.chatId);
|
929
|
+
p.isSelected = !0, A("select", d);
|
930
|
+
}, l = () => s.chats.toSorted((d, p) => {
|
931
|
+
if (Number(d["lastActivity.timestamp"]) > Number(p["lastActivity.timestamp"])) return -1;
|
932
|
+
if (Number(d["lastActivity.timestamp"]) < Number(p["lastActivity.timestamp"])) return 1;
|
933
|
+
if (Number(d["lastActivity.timestamp"]) == Number(p["lastActivity.timestamp"])) return 0;
|
934
|
+
}).toSorted((d, p) => {
|
935
|
+
if (d.countUnread > p.countUnread) return -1;
|
936
|
+
if (d.countUnread < p.countUnread) return 1;
|
937
|
+
if (d.countUnread == p.countUnread) return 0;
|
945
938
|
}).filter((d) => d.name.includes(t.value) || d.metadata.includes(t.value)), u = (d) => {
|
946
939
|
t.value = d;
|
947
940
|
}, g = (d) => A("action", d);
|
948
|
-
return (d,
|
941
|
+
return (d, p) => (r(), c("div", hs, [
|
949
942
|
o("div", {
|
950
943
|
class: "chat-list__title-container",
|
951
944
|
onMouseleave: a
|
952
945
|
}, [
|
953
|
-
o("h2", ys, N(
|
946
|
+
o("h2", ys, N(S(Oe)("component.ChatList.Title")), 1),
|
954
947
|
e.actions.length ? (r(), c("button", {
|
955
948
|
key: 0,
|
956
949
|
class: "chat-list__button-actions",
|
957
|
-
onClick:
|
950
|
+
onClick: p[0] || (p[0] = (m) => n.value = !n.value)
|
958
951
|
}, [
|
959
952
|
n.value ? (r(), c("span", Ms)) : (r(), c("span", bs))
|
960
|
-
])) :
|
961
|
-
Q(
|
962
|
-
default:
|
963
|
-
n.value && e.actions ? (r(),
|
953
|
+
])) : _("", !0),
|
954
|
+
Q(q, null, {
|
955
|
+
default: $(() => [
|
956
|
+
n.value && e.actions ? (r(), F(S(Ve), {
|
964
957
|
key: 0,
|
965
958
|
actions: e.actions,
|
966
959
|
class: "chat-list__context-menu",
|
967
960
|
onClick: g
|
968
|
-
}, null, 8, ["actions"])) :
|
961
|
+
}, null, 8, ["actions"])) : _("", !0)
|
969
962
|
]),
|
970
963
|
_: 1
|
971
964
|
})
|
972
965
|
], 32),
|
973
|
-
e.filterEnabled ? (r(),
|
966
|
+
e.filterEnabled ? (r(), F(S(FA), {
|
974
967
|
key: 0,
|
975
968
|
class: "chat-list__filter",
|
976
969
|
onUpdate: u
|
977
|
-
})) :
|
970
|
+
})) : _("", !0),
|
978
971
|
o("div", vs, [
|
979
972
|
o("div", _s, [
|
980
|
-
(r(!0), c(
|
973
|
+
(r(!0), c(H, null, Z(l().filter((m) => m.isFixedTop), (m) => (r(), F(S(Nt), {
|
981
974
|
key: m.chatId,
|
982
975
|
class: "chat-list__item",
|
983
976
|
chat: m,
|
@@ -986,7 +979,7 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
986
979
|
}, null, 8, ["chat"]))), 128))
|
987
980
|
]),
|
988
981
|
o("div", Is, [
|
989
|
-
(r(!0), c(
|
982
|
+
(r(!0), c(H, null, Z(l().filter((m) => !m.isFixedBottom && !m.isFixedTop), (m) => (r(), F(S(Nt), {
|
990
983
|
key: m.chatId,
|
991
984
|
class: "chat-list__item",
|
992
985
|
chat: m,
|
@@ -995,7 +988,7 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
995
988
|
}, null, 8, ["chat"]))), 128))
|
996
989
|
]),
|
997
990
|
o("div", ws, [
|
998
|
-
(r(!0), c(
|
991
|
+
(r(!0), c(H, null, Z(l().filter((m) => m.isFixedBottom), (m) => (r(), F(S(Nt), {
|
999
992
|
key: m.chatId,
|
1000
993
|
class: "chat-list__item",
|
1001
994
|
chat: m,
|
@@ -1009,7 +1002,7 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1009
1002
|
}, fc = /* @__PURE__ */ B(ks, [["__scopeId", "data-v-ba9fb868"]]), Ns = ["id"], Ds = { class: "message-feed__container" }, js = {
|
1010
1003
|
key: 0,
|
1011
1004
|
class: "message-feed__unread-amount"
|
1012
|
-
}, Es = /* @__PURE__ */
|
1005
|
+
}, Es = /* @__PURE__ */ J({
|
1013
1006
|
__name: "Feed",
|
1014
1007
|
props: {
|
1015
1008
|
objects: {
|
@@ -1035,9 +1028,9 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1035
1028
|
emits: ["messageAction", "loadMore", "messageVisible"],
|
1036
1029
|
setup(e, { emit: f }) {
|
1037
1030
|
const t = I(), n = I(), a = I(!1), s = e, A = de("chatAppId"), i = f, l = () => {
|
1038
|
-
const
|
1039
|
-
|
1040
|
-
}, u = (
|
1031
|
+
const h = S(n);
|
1032
|
+
h.scrollHeight - h.scrollTop - h.clientHeight < 100 ? a.value = !1 : a.value = !0, h.scrollTop === 0 && i("loadMore");
|
1033
|
+
}, u = (h) => ({
|
1041
1034
|
"message.text": cr,
|
1042
1035
|
"message.image": tr,
|
1043
1036
|
"message.file": Q1,
|
@@ -1047,25 +1040,25 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1047
1040
|
"message.system": hu,
|
1048
1041
|
"system.date": Cr,
|
1049
1042
|
"message.typing": Qn
|
1050
|
-
})[
|
1043
|
+
})[h];
|
1051
1044
|
function g() {
|
1052
1045
|
s.isScrollToBottomOnUpdateObjectsEnabled && xf(function() {
|
1053
|
-
const
|
1054
|
-
|
1046
|
+
const h = S(n);
|
1047
|
+
h.scrollTop = h.scrollHeight;
|
1055
1048
|
});
|
1056
1049
|
}
|
1057
1050
|
function d() {
|
1058
1051
|
xf(function() {
|
1059
|
-
const
|
1060
|
-
|
1052
|
+
const h = S(n);
|
1053
|
+
h.scrollTop = h.scrollHeight;
|
1061
1054
|
});
|
1062
1055
|
}
|
1063
1056
|
Na(() => g), le(() => s.objects, g);
|
1064
|
-
const
|
1065
|
-
i("messageAction",
|
1066
|
-
}, m = (
|
1067
|
-
|
1068
|
-
|
1057
|
+
const p = (h) => {
|
1058
|
+
i("messageAction", h);
|
1059
|
+
}, m = (h) => {
|
1060
|
+
h.forEach((b) => {
|
1061
|
+
b.isIntersecting && i("messageVisible", JSON.parse(b.target.id));
|
1069
1062
|
});
|
1070
1063
|
}, y = {
|
1071
1064
|
root: document.getElementById("feed-container-" + A),
|
@@ -1076,49 +1069,49 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1076
1069
|
() => s.objects,
|
1077
1070
|
() => {
|
1078
1071
|
xf(() => {
|
1079
|
-
t.value = document.querySelectorAll(".message-feed__message"), t.value.forEach((
|
1072
|
+
l(), t.value = document.querySelectorAll(".message-feed__message"), t.value.forEach((h) => M.observe(h));
|
1080
1073
|
});
|
1081
1074
|
},
|
1082
1075
|
{ immediate: !0 }
|
1083
|
-
), (
|
1076
|
+
), (h, b) => (r(), c("div", {
|
1084
1077
|
ref_key: "refFeed",
|
1085
1078
|
ref: n,
|
1086
1079
|
class: "message-feed",
|
1087
1080
|
onScroll: l,
|
1088
|
-
id: "feed-container-" +
|
1081
|
+
id: "feed-container-" + S(A)
|
1089
1082
|
}, [
|
1090
1083
|
o("div", Ds, [
|
1091
|
-
(r(!0), c(
|
1084
|
+
(r(!0), c(H, null, Z(e.objects, (k) => (r(), F(Da(u(k.type)), {
|
1092
1085
|
key: k.messageId,
|
1093
1086
|
id: JSON.stringify(k),
|
1094
1087
|
class: "message-feed__message",
|
1095
1088
|
message: k,
|
1096
|
-
onAction:
|
1089
|
+
onAction: p
|
1097
1090
|
}, null, 40, ["id", "message"]))), 128))
|
1098
1091
|
]),
|
1099
|
-
e.typing ? (r(),
|
1092
|
+
e.typing ? (r(), F(S(Qn), {
|
1100
1093
|
key: 0,
|
1101
1094
|
message: {
|
1102
1095
|
subText: e.typing.title,
|
1103
1096
|
avatar: e.typing.avatar
|
1104
1097
|
}
|
1105
|
-
}, null, 8, ["message"])) :
|
1106
|
-
Q(
|
1107
|
-
default:
|
1098
|
+
}, null, 8, ["message"])) : _("", !0),
|
1099
|
+
Q(q, null, {
|
1100
|
+
default: $(() => [
|
1108
1101
|
a.value ? (r(), c("button", {
|
1109
1102
|
key: 0,
|
1110
1103
|
class: "message-feed__button-down",
|
1111
1104
|
onClick: d
|
1112
1105
|
}, [
|
1113
|
-
e.buttonParams ? (r(), c("div", js, N(e.buttonParams.unreadAmount), 1)) :
|
1114
|
-
|
1115
|
-
])) :
|
1106
|
+
e.buttonParams ? (r(), c("div", js, N(e.buttonParams.unreadAmount), 1)) : _("", !0),
|
1107
|
+
b[0] || (b[0] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
1108
|
+
])) : _("", !0)
|
1116
1109
|
]),
|
1117
1110
|
_: 1
|
1118
1111
|
})
|
1119
1112
|
], 40, Ns));
|
1120
1113
|
}
|
1121
|
-
}), tc = /* @__PURE__ */ B(Es, [["__scopeId", "data-v-
|
1114
|
+
}), tc = /* @__PURE__ */ B(Es, [["__scopeId", "data-v-8b459791"]]), Ts = { class: "profile" }, Vs = {
|
1122
1115
|
key: 0,
|
1123
1116
|
class: "profile__container"
|
1124
1117
|
}, xs = {
|
@@ -1145,11 +1138,11 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1145
1138
|
height: "48",
|
1146
1139
|
width: "48"
|
1147
1140
|
}, null, 8, Ss)
|
1148
|
-
])) :
|
1141
|
+
])) : _("", !0),
|
1149
1142
|
o("h2", Cs, N(e.user.name), 1),
|
1150
1143
|
o("p", zs, N(e.user.email), 1),
|
1151
1144
|
o("p", Os, N(e.user.phone), 1)
|
1152
|
-
])) :
|
1145
|
+
])) : _("", !0)
|
1153
1146
|
]));
|
1154
1147
|
}
|
1155
1148
|
}, nc = /* @__PURE__ */ B(Ls, [["__scopeId", "data-v-04a5ab7d"]]), Us = ["id"], Bs = {
|
@@ -1187,20 +1180,20 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1187
1180
|
},
|
1188
1181
|
emits: ["click", "buttonClick"],
|
1189
1182
|
setup(e, { emit: f }) {
|
1190
|
-
const t = e, n = Rt(), a = f, s = I(null), A = I(null), i = (
|
1191
|
-
s.value.$el.style.display = "none", a("click",
|
1183
|
+
const t = e, n = Rt(), a = f, s = I(null), A = I(null), i = (p) => {
|
1184
|
+
s.value.$el.style.display = "none", a("click", p);
|
1192
1185
|
}, l = () => {
|
1193
1186
|
t.disabled || (t.mode == "click" && (s.value.$el.style.display = "inherit"), a("buttonClick"));
|
1194
1187
|
}, u = () => {
|
1195
1188
|
t.mode == "hover" && !t.disabled && (s.value.$el.style.display = "inherit");
|
1196
1189
|
}, g = () => {
|
1197
1190
|
t.mode == "hover" && (s.value.$el.style.display = "none");
|
1198
|
-
}, d = (
|
1199
|
-
t.mode == "click" && A.value && !A.value.contains(
|
1191
|
+
}, d = (p) => {
|
1192
|
+
t.mode == "click" && A.value && !A.value.contains(p.target) && (s.value.$el.style.display = "none");
|
1200
1193
|
};
|
1201
1194
|
return we(() => {
|
1202
|
-
var M,
|
1203
|
-
const
|
1195
|
+
var M, h;
|
1196
|
+
const p = {
|
1204
1197
|
top: {
|
1205
1198
|
h: -1,
|
1206
1199
|
w: -0.25
|
@@ -1219,17 +1212,17 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1219
1212
|
}
|
1220
1213
|
};
|
1221
1214
|
let m, y;
|
1222
|
-
t.menuSide == "top" && (m = (M = document.getElementById("container-" + n)) == null ? void 0 : M.offsetWidth, y = (
|
1215
|
+
t.menuSide == "top" && (m = (M = document.getElementById("container-" + n)) == null ? void 0 : M.offsetWidth, y = (h = document.getElementById("context-menu-" + n)) == null ? void 0 : h.offsetHeight, s.value.$el.style.left = p[t.menuSide].w * m + "px"), t.menuSide == "bottom" && (m = document.getElementById("context-menu-" + n).offsetWidth, y = document.getElementById("container-" + n).offsetHeight, s.value.$el.style.right = p[t.menuSide].w * m + "px"), t.menuSide == "left" && (m = document.getElementById("container-" + n).offsetWidth, y = document.getElementById("context-menu-" + n).offsetHeight, s.value.$el.style.right = p[t.menuSide].w * m + "px"), t.menuSide == "right" && (m = document.getElementById("container-" + n).offsetWidth, y = document.getElementById("context-menu-" + n).offsetHeight, s.value.$el.style.left = p[t.menuSide].w * m + "px"), s.value.$el.style.top = p[t.menuSide].h * y + "px", s.value.$el.style.display = "none", document.addEventListener("click", d);
|
1223
1216
|
}), ct(() => {
|
1224
1217
|
document.removeEventListener("click", d);
|
1225
|
-
}), (
|
1226
|
-
id: "container-" +
|
1218
|
+
}), (p, m) => (r(), c("div", {
|
1219
|
+
id: "container-" + S(n),
|
1227
1220
|
ref_key: "actionScope",
|
1228
1221
|
ref: A,
|
1229
1222
|
style: { position: "relative", width: "fit-content" }
|
1230
1223
|
}, [
|
1231
1224
|
o("div", {
|
1232
|
-
class:
|
1225
|
+
class: U(["button", {
|
1233
1226
|
"disabled-button": e.disabled
|
1234
1227
|
}]),
|
1235
1228
|
onClick: l,
|
@@ -1237,11 +1230,11 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1237
1230
|
onMouseout: g
|
1238
1231
|
}, [
|
1239
1232
|
o("span", {
|
1240
|
-
class:
|
1233
|
+
class: U(e.buttonClass)
|
1241
1234
|
}, N(e.buttonTitle), 3)
|
1242
1235
|
], 34),
|
1243
|
-
Q(
|
1244
|
-
id: "context-menu-" +
|
1236
|
+
Q(S(Ve), {
|
1237
|
+
id: "context-menu-" + S(n),
|
1245
1238
|
ref_key: "contextMenu",
|
1246
1239
|
ref: s,
|
1247
1240
|
actions: e.actions,
|
@@ -1251,7 +1244,7 @@ const rs = { class: "chat-input" }, us = { class: "chat-input__container" }, cs
|
|
1251
1244
|
}, null, 8, ["id", "actions"])
|
1252
1245
|
], 8, Us));
|
1253
1246
|
}
|
1254
|
-
}, fa = /* @__PURE__ */ B(Bs, [["__scopeId", "data-v-
|
1247
|
+
}, fa = /* @__PURE__ */ B(Bs, [["__scopeId", "data-v-a6a945c1"]]);
|
1255
1248
|
function ac(e) {
|
1256
1249
|
if (!e || e === "") return;
|
1257
1250
|
const f = +new Date(Number(e) * 1e3), t = +/* @__PURE__ */ new Date(), n = Math.floor((t - f) / 1e3), a = Math.floor(n / 60), s = Math.floor(a / 60), A = Math.floor(s / 24);
|
@@ -1377,7 +1370,7 @@ const sc = (e) => {
|
|
1377
1370
|
},
|
1378
1371
|
emits: ["fileUploaded"],
|
1379
1372
|
setup(e, { emit: f }) {
|
1380
|
-
const t = e, n = I(null), a = I(""), s = I(""), A = I(!1), i = I(!1), l = I(!1), u = I(null), g = I(""), d = de("chatAppId"), { setMessageFile:
|
1373
|
+
const t = e, n = I(null), a = I(""), s = I(""), A = I(!1), i = I(!1), l = I(!1), u = I(null), g = I(""), d = de("chatAppId"), { setMessageFile: p, resetMessageFile: m, getMessage: y } = yf(d), M = [
|
1381
1374
|
{
|
1382
1375
|
action: "audio/*",
|
1383
1376
|
title: "Аудио",
|
@@ -1398,66 +1391,66 @@ const sc = (e) => {
|
|
1398
1391
|
title: "Файл",
|
1399
1392
|
prime: "file"
|
1400
1393
|
}
|
1401
|
-
],
|
1394
|
+
], h = R(() => !y().file), b = () => {
|
1402
1395
|
n.value = null, m(), s.value = "", a.value = "";
|
1403
|
-
}, k = (
|
1404
|
-
|
1405
|
-
},
|
1406
|
-
const
|
1407
|
-
if (A.value = !1, i.value = !1, l.value = !1,
|
1408
|
-
const
|
1409
|
-
|
1410
|
-
s.value =
|
1411
|
-
},
|
1396
|
+
}, k = (V) => {
|
1397
|
+
b(), console.log("onFileSelected", V.target.files[0]), n.value = V.target.files[0], n.value && (C(), w());
|
1398
|
+
}, C = () => {
|
1399
|
+
const V = n.value, x = Nn(V.type);
|
1400
|
+
if (A.value = !1, i.value = !1, l.value = !1, x === "image" ? A.value = !0 : x === "video" ? i.value = !0 : x === "audio" && (l.value = !0), A.value || i.value) {
|
1401
|
+
const z = new FileReader();
|
1402
|
+
z.onload = (P) => {
|
1403
|
+
s.value = P.target.result;
|
1404
|
+
}, z.readAsDataURL(V);
|
1412
1405
|
} else
|
1413
1406
|
s.value = "";
|
1414
|
-
const
|
1415
|
-
let
|
1416
|
-
for (;
|
1417
|
-
|
1418
|
-
|
1407
|
+
const E = ["б", "Кб", "Мб", "Гб"];
|
1408
|
+
let D = V.size, T = 0;
|
1409
|
+
for (; D > 1024; )
|
1410
|
+
D = D / 1024, T++;
|
1411
|
+
D = D.toFixed(2) + E[T], g.value = D;
|
1419
1412
|
}, w = async () => {
|
1420
1413
|
a.value = "uploading";
|
1421
|
-
const
|
1422
|
-
|
1423
|
-
const
|
1414
|
+
const V = new FormData();
|
1415
|
+
V.append("file", n.value);
|
1416
|
+
const E = (t.filebumpUrl ? t.filebumpUrl : "https://filebump2.services.mobilon.ru") + "/upload";
|
1424
1417
|
try {
|
1425
|
-
const
|
1426
|
-
|
1418
|
+
const T = await (await fetch(
|
1419
|
+
E,
|
1427
1420
|
{
|
1428
1421
|
method: "POST",
|
1429
|
-
body:
|
1422
|
+
body: V
|
1430
1423
|
}
|
1431
1424
|
)).json();
|
1432
|
-
a.value = "success",
|
1433
|
-
url:
|
1425
|
+
a.value = "success", p({
|
1426
|
+
url: T.url,
|
1434
1427
|
name: n.value.name,
|
1435
1428
|
size: n.value.size,
|
1436
1429
|
type: Nn(n.value.type)
|
1437
1430
|
});
|
1438
|
-
} catch (
|
1439
|
-
console.error("Ошибка при загрузке файла:",
|
1431
|
+
} catch (D) {
|
1432
|
+
console.error("Ошибка при загрузке файла:", D), a.value = "error";
|
1440
1433
|
}
|
1441
|
-
}, j = (
|
1442
|
-
u.value &&
|
1443
|
-
},
|
1444
|
-
u.value &&
|
1434
|
+
}, j = (V) => {
|
1435
|
+
u.value && h && (u.value.accept = V.action, u.value.click());
|
1436
|
+
}, L = () => {
|
1437
|
+
u.value && h && t.state == "active" && u.value.click();
|
1445
1438
|
};
|
1446
|
-
return (
|
1439
|
+
return (V, x) => (r(), c(H, null, [
|
1447
1440
|
o("div", eA, [
|
1448
|
-
a.value === "uploading" ? (r(), c("div", fA,
|
1441
|
+
a.value === "uploading" ? (r(), c("div", fA, x[0] || (x[0] = [
|
1449
1442
|
o("p", null, "Загрузка файла...", -1)
|
1450
|
-
]))) : a.value === "error" ? (r(), c("div", tA,
|
1443
|
+
]))) : a.value === "error" ? (r(), c("div", tA, x[1] || (x[1] = [
|
1451
1444
|
o("p", null, "Ошибка при загрузке файла.", -1)
|
1452
|
-
]))) : (r(),
|
1445
|
+
]))) : (r(), F(fa, {
|
1453
1446
|
key: 2,
|
1454
1447
|
actions: M,
|
1455
1448
|
mode: "hover",
|
1456
1449
|
"button-class": "pi pi-file-arrow-up",
|
1457
1450
|
"menu-side": "top",
|
1458
|
-
disabled: !
|
1451
|
+
disabled: !h.value || e.state == "disabled",
|
1459
1452
|
onClick: j,
|
1460
|
-
onButtonClick:
|
1453
|
+
onButtonClick: L
|
1461
1454
|
}, null, 8, ["disabled"])),
|
1462
1455
|
o("input", {
|
1463
1456
|
ref_key: "fileInput",
|
@@ -1467,20 +1460,20 @@ const sc = (e) => {
|
|
1467
1460
|
onChange: k
|
1468
1461
|
}, null, 544)
|
1469
1462
|
]),
|
1470
|
-
|
1463
|
+
S(y)().file ? (r(), F(hf, {
|
1471
1464
|
key: 0,
|
1472
|
-
to: "#chat-input-first-line-" +
|
1465
|
+
to: "#chat-input-first-line-" + S(d)
|
1473
1466
|
}, [
|
1474
1467
|
Q(Xs, {
|
1475
1468
|
"preview-url": s.value,
|
1476
1469
|
"is-image": A.value,
|
1477
1470
|
"is-video": i.value,
|
1478
1471
|
"is-audio": l.value,
|
1479
|
-
"file-name":
|
1472
|
+
"file-name": S(y)().file.name,
|
1480
1473
|
"file-size": g.value,
|
1481
|
-
onReset:
|
1474
|
+
onReset: b
|
1482
1475
|
}, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])
|
1483
|
-
], 8, ["to"])) :
|
1476
|
+
], 8, ["to"])) : _("", !0)
|
1484
1477
|
], 64));
|
1485
1478
|
}
|
1486
1479
|
}, oc = /* @__PURE__ */ B(nA, [["__scopeId", "data-v-1cdabe09"]]), aA = { key: 0 }, sA = ["value", "selected"], AA = {
|
@@ -1509,13 +1502,13 @@ const sc = (e) => {
|
|
1509
1502
|
o("select", {
|
1510
1503
|
onChange: i[0] || (i[0] = (l) => a(l))
|
1511
1504
|
}, [
|
1512
|
-
(r(!0), c(
|
1505
|
+
(r(!0), c(H, null, Z(f.themes, (l, u) => (r(), c("option", {
|
1513
1506
|
key: u,
|
1514
1507
|
value: l.code,
|
1515
1508
|
selected: l.default === !0
|
1516
1509
|
}, N(l.name), 9, sA))), 128))
|
1517
1510
|
], 32)
|
1518
|
-
])) :
|
1511
|
+
])) : _("", !0);
|
1519
1512
|
}
|
1520
1513
|
}, lc = /* @__PURE__ */ B(AA, [["__scopeId", "data-v-a950b8eb"]]), iA = { class: "sidebar" }, oA = { class: "sidebar__container" }, lA = { class: "sidebar__list" }, rA = ["onClick"], uA = ["src", "alt"], cA = { key: 1 }, dA = { class: "sidebar__list-fixed" }, gA = ["onClick"], mA = ["src", "alt"], pA = { key: 1 }, hA = {
|
1521
1514
|
__name: "SideBar",
|
@@ -1538,7 +1531,7 @@ const sc = (e) => {
|
|
1538
1531
|
return (i, l) => (r(), c("div", iA, [
|
1539
1532
|
o("div", oA, [
|
1540
1533
|
o("ul", lA, [
|
1541
|
-
(r(!0), c(
|
1534
|
+
(r(!0), c(H, null, Z(n.value.filter((u) => !u.isFixedBottom), (u, g) => (r(), c("li", {
|
1542
1535
|
key: g,
|
1543
1536
|
class: "sidebar__item",
|
1544
1537
|
onClick: (d) => s(u.itemId)
|
@@ -1546,17 +1539,17 @@ const sc = (e) => {
|
|
1546
1539
|
o("img", {
|
1547
1540
|
src: u.icon,
|
1548
1541
|
alt: u.name,
|
1549
|
-
class:
|
1542
|
+
class: U(["sidebar__image", { "sidebar__image--active": u.selected === !0 }])
|
1550
1543
|
}, null, 10, uA),
|
1551
1544
|
u.notificationCount ? (r(), c("span", {
|
1552
1545
|
key: 0,
|
1553
1546
|
style: K({ backgroundColor: u.notificationColor ? u.notificationColor : "red" })
|
1554
|
-
}, N(u.notificationCount > 99 ? "99+" : u.notificationCount), 5)) :
|
1555
|
-
u.name ? (r(), c("p", cA, N(A(u.name)), 1)) :
|
1547
|
+
}, N(u.notificationCount > 99 ? "99+" : u.notificationCount), 5)) : _("", !0),
|
1548
|
+
u.name ? (r(), c("p", cA, N(A(u.name)), 1)) : _("", !0)
|
1556
1549
|
], 8, rA))), 128))
|
1557
1550
|
]),
|
1558
1551
|
o("ul", dA, [
|
1559
|
-
(r(!0), c(
|
1552
|
+
(r(!0), c(H, null, Z(n.value.filter((u) => u.isFixedBottom), (u, g) => (r(), c("li", {
|
1560
1553
|
key: g,
|
1561
1554
|
class: "sidebar__item",
|
1562
1555
|
onClick: (d) => s(u.itemId)
|
@@ -1564,13 +1557,13 @@ const sc = (e) => {
|
|
1564
1557
|
o("img", {
|
1565
1558
|
src: u.icon,
|
1566
1559
|
alt: u.name,
|
1567
|
-
class:
|
1560
|
+
class: U(["sidebar__image", { "sidebar__image--active": u.selected === !0 }])
|
1568
1561
|
}, null, 10, mA),
|
1569
1562
|
u.notificationCount ? (r(), c("span", {
|
1570
1563
|
key: 0,
|
1571
1564
|
style: K({ backgroundColor: u.notificationColor ? u.notificationColor : "red" })
|
1572
|
-
}, N(u.notificationCount > 99 ? "99+" : u.notificationCount), 5)) :
|
1573
|
-
u.name ? (r(), c("p", pA, N(A(u.name)), 1)) :
|
1565
|
+
}, N(u.notificationCount > 99 ? "99+" : u.notificationCount), 5)) : _("", !0),
|
1566
|
+
u.name ? (r(), c("p", pA, N(A(u.name)), 1)) : _("", !0)
|
1574
1567
|
], 8, gA))), 128))
|
1575
1568
|
])
|
1576
1569
|
])
|
@@ -1592,7 +1585,7 @@ const sc = (e) => {
|
|
1592
1585
|
setup(e, { emit: f }) {
|
1593
1586
|
return (t, n) => (r(), c("div", yA, [
|
1594
1587
|
o("div", MA, [
|
1595
|
-
e.title ? (r(), c("p", bA, N(e.title), 1)) :
|
1588
|
+
e.title ? (r(), c("p", bA, N(e.title), 1)) : _("", !0),
|
1596
1589
|
o("button", {
|
1597
1590
|
class: "chat-panel__button-close",
|
1598
1591
|
onClick: n[0] || (n[0] = (a) => t.$emit("close-panel"))
|
@@ -1601,7 +1594,7 @@ const sc = (e) => {
|
|
1601
1594
|
]))
|
1602
1595
|
]),
|
1603
1596
|
o("div", null, [
|
1604
|
-
|
1597
|
+
ee(t.$slots, "content", {}, void 0, !0)
|
1605
1598
|
])
|
1606
1599
|
]));
|
1607
1600
|
}
|
@@ -1639,14 +1632,14 @@ const sc = (e) => {
|
|
1639
1632
|
};
|
1640
1633
|
return (i, l) => (r(), c("div", _A, [
|
1641
1634
|
o("div", {
|
1642
|
-
class:
|
1635
|
+
class: U(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
|
1643
1636
|
}, [
|
1644
1637
|
s.value ? (r(), c("div", IA, [
|
1645
1638
|
s.value.icon ? (r(), c("span", wA, [
|
1646
1639
|
o("img", {
|
1647
1640
|
src: s.value.icon
|
1648
1641
|
}, null, 8, kA)
|
1649
|
-
])) :
|
1642
|
+
])) : _("", !0),
|
1650
1643
|
o("span", NA, N(s.value.title), 1)
|
1651
1644
|
])) : (r(), c("span", DA, "Канал не выбран")),
|
1652
1645
|
Q(fa, {
|
@@ -1693,25 +1686,25 @@ const sc = (e) => {
|
|
1693
1686
|
setup(e, { emit: f }) {
|
1694
1687
|
const t = e, n = f, a = () => {
|
1695
1688
|
n("select", t.chat);
|
1696
|
-
}, s = () => t.chat.isSelected ? "chat-item__selected" : "chat-item", A = (
|
1697
|
-
g(), n("action", { chatId: t.chat.chatId, ...
|
1689
|
+
}, s = () => t.chat.isSelected ? "chat-item__selected" : "chat-item", A = (h) => {
|
1690
|
+
g(), n("action", { chatId: t.chat.chatId, ...h });
|
1698
1691
|
}, i = I(!1), l = I(!1), u = () => {
|
1699
1692
|
l.value = !0;
|
1700
1693
|
}, g = () => {
|
1701
1694
|
l.value = !1, i.value = !1;
|
1702
|
-
}, d =
|
1703
|
-
let
|
1704
|
-
const m = I(0), y = [Oe("component.ChatItem.typing") + ".", Oe("component.ChatItem.typing") + "..", Oe("component.ChatItem.typing") + "..."], M =
|
1695
|
+
}, d = R(() => Je(t.chat["lastMessage.status"]));
|
1696
|
+
let p;
|
1697
|
+
const m = I(0), y = [Oe("component.ChatItem.typing") + ".", Oe("component.ChatItem.typing") + "..", Oe("component.ChatItem.typing") + "..."], M = R(() => t.chat.typing ? y[m.value] : t.chat.lastMessage);
|
1705
1698
|
return le(
|
1706
1699
|
() => t.chat.typing,
|
1707
1700
|
() => {
|
1708
|
-
t.chat.typing ?
|
1701
|
+
t.chat.typing ? p = setInterval(() => {
|
1709
1702
|
m.value < 2 ? m.value += 1 : m.value = 0;
|
1710
|
-
}, 1e3) : (m.value = 0, clearInterval(
|
1703
|
+
}, 1e3) : (m.value = 0, clearInterval(p));
|
1711
1704
|
},
|
1712
1705
|
{ immediate: !0 }
|
1713
|
-
), (
|
1714
|
-
class:
|
1706
|
+
), (h, b) => (r(), c("div", {
|
1707
|
+
class: U(s()),
|
1715
1708
|
onClick: a
|
1716
1709
|
}, [
|
1717
1710
|
o("div", {
|
@@ -1733,37 +1726,37 @@ const sc = (e) => {
|
|
1733
1726
|
]),
|
1734
1727
|
o("div", xA, [
|
1735
1728
|
o("div", SA, N(e.chat.name), 1),
|
1736
|
-
e.chat.lastMessage || e.chat.typing ? (r(), c("div", CA, N(M.value), 1)) :
|
1729
|
+
e.chat.lastMessage || e.chat.typing ? (r(), c("div", CA, N(M.value), 1)) : _("", !0)
|
1737
1730
|
]),
|
1738
1731
|
o("div", zA, [
|
1739
|
-
e.chat["lastActivity.time"] && !l.value ? (r(), c("div", OA, N(e.chat["lastActivity.time"]), 1)) :
|
1740
|
-
e.chat.countUnread > 0 ? (r(), c("div", LA, N(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) :
|
1732
|
+
e.chat["lastActivity.time"] && !l.value ? (r(), c("div", OA, N(e.chat["lastActivity.time"]), 1)) : _("", !0),
|
1733
|
+
e.chat.countUnread > 0 ? (r(), c("div", LA, N(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) : _("", !0),
|
1741
1734
|
l.value && e.chat.actions ? (r(), c("button", {
|
1742
1735
|
key: 2,
|
1743
1736
|
class: "chat-item__menu-button",
|
1744
|
-
onClick:
|
1745
|
-
},
|
1737
|
+
onClick: b[0] || (b[0] = (k) => i.value = !i.value)
|
1738
|
+
}, b[1] || (b[1] = [
|
1746
1739
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
1747
|
-
]))) :
|
1740
|
+
]))) : _("", !0),
|
1748
1741
|
e.chat.countUnread < 1 ? (r(), c("div", UA, [
|
1749
|
-
|
1742
|
+
S(Ke).includes(e.chat["lastMessage.status"]) ? (r(), c("div", {
|
1750
1743
|
key: 0,
|
1751
|
-
class:
|
1744
|
+
class: U(["chat-item__status-message", d.value])
|
1752
1745
|
}, [
|
1753
|
-
e.chat["lastMessage.status"] !== "sent" ? (r(), c("span", BA)) :
|
1754
|
-
|
1755
|
-
], 2)) :
|
1756
|
-
e.chat.isFixedTop || e.chat.isFixedBottom ? (r(), c("span", QA)) :
|
1757
|
-
])) :
|
1746
|
+
e.chat["lastMessage.status"] !== "sent" ? (r(), c("span", BA)) : _("", !0),
|
1747
|
+
b[2] || (b[2] = o("span", { class: "pi pi-check" }, null, -1))
|
1748
|
+
], 2)) : _("", !0),
|
1749
|
+
e.chat.isFixedTop || e.chat.isFixedBottom ? (r(), c("span", QA)) : _("", !0)
|
1750
|
+
])) : _("", !0)
|
1758
1751
|
]),
|
1759
|
-
Q(
|
1760
|
-
default:
|
1761
|
-
i.value && e.chat.actions ? (r(),
|
1752
|
+
Q(q, { name: "menu" }, {
|
1753
|
+
default: $(() => [
|
1754
|
+
i.value && e.chat.actions ? (r(), F(S(Ve), {
|
1762
1755
|
key: 0,
|
1763
1756
|
class: "chat-item__context-menu",
|
1764
1757
|
actions: e.chat.actions,
|
1765
1758
|
onClick: A
|
1766
|
-
}, null, 8, ["actions"])) :
|
1759
|
+
}, null, 8, ["actions"])) : _("", !0)
|
1767
1760
|
]),
|
1768
1761
|
_: 1
|
1769
1762
|
})
|
@@ -1775,7 +1768,7 @@ const sc = (e) => {
|
|
1775
1768
|
emits: ["update"],
|
1776
1769
|
setup(e, { emit: f }) {
|
1777
1770
|
const t = I(""), n = f, a = () => {
|
1778
|
-
const s =
|
1771
|
+
const s = S(t);
|
1779
1772
|
n("update", s.value);
|
1780
1773
|
};
|
1781
1774
|
return (s, A) => (r(), c("div", YA, [
|
@@ -1785,7 +1778,7 @@ const sc = (e) => {
|
|
1785
1778
|
ref: t,
|
1786
1779
|
class: "chat-filter__input",
|
1787
1780
|
type: "text",
|
1788
|
-
placeholder:
|
1781
|
+
placeholder: S(Oe)("component.ChatFilter.InputPlaceholder"),
|
1789
1782
|
onInput: a
|
1790
1783
|
}, null, 40, $A)
|
1791
1784
|
])
|
@@ -1825,47 +1818,47 @@ const sc = (e) => {
|
|
1825
1818
|
t.templates.forEach((M) => M.isSelected = !1), y.isSelected = !0, l.value = y;
|
1826
1819
|
}, d = () => {
|
1827
1820
|
t.templates.forEach((y) => y.isSelected = !1);
|
1828
|
-
},
|
1821
|
+
}, p = R(() => i.value ? t.templates.filter((y) => y.groupId === i.value.groupId) : t.templates), m = R(() => {
|
1829
1822
|
const y = u.value.trim().toLowerCase();
|
1830
|
-
return
|
1823
|
+
return p.value.filter((M) => M.title.toLowerCase().includes(y) || M.template.toLowerCase().includes(y));
|
1831
1824
|
});
|
1832
1825
|
return (y, M) => (r(), c("div", PA, [
|
1833
1826
|
o("div", WA, [
|
1834
1827
|
o("button", KA, [
|
1835
1828
|
o("span", {
|
1836
1829
|
class: "pi pi-times",
|
1837
|
-
onClick: M[0] || (M[0] = (
|
1830
|
+
onClick: M[0] || (M[0] = (h) => y.$emit("closeTemplateWindow"))
|
1838
1831
|
})
|
1839
1832
|
]),
|
1840
1833
|
o("ul", JA, [
|
1841
|
-
(r(!0), c(
|
1842
|
-
key:
|
1843
|
-
class:
|
1834
|
+
(r(!0), c(H, null, Z(e.groupTemplates, (h, b) => (r(), c("li", {
|
1835
|
+
key: b,
|
1836
|
+
class: U(["template-selector__item-group", { "template-selector__item-selected": i.value === h }]),
|
1844
1837
|
onClick: d
|
1845
1838
|
}, [
|
1846
1839
|
o("label", GA, [
|
1847
|
-
|
1840
|
+
h.iconUrl ? (r(), c("img", {
|
1848
1841
|
key: 0,
|
1849
1842
|
class: "template-selector__item-group-icon",
|
1850
|
-
src:
|
1851
|
-
alt:
|
1852
|
-
}, null, 8, ZA)) :
|
1843
|
+
src: h.iconUrl,
|
1844
|
+
alt: h.title
|
1845
|
+
}, null, 8, ZA)) : _("", !0),
|
1853
1846
|
ce(o("input", {
|
1854
|
-
id:
|
1847
|
+
id: b,
|
1855
1848
|
"onUpdate:modelValue": M[1] || (M[1] = (k) => i.value = k),
|
1856
|
-
value:
|
1849
|
+
value: h,
|
1857
1850
|
class: "template-selector__input-group",
|
1858
1851
|
type: "radio"
|
1859
1852
|
}, null, 8, XA), [
|
1860
1853
|
[Rn, i.value]
|
1861
1854
|
]),
|
1862
|
-
o("span", null, N(
|
1855
|
+
o("span", null, N(h.title), 1)
|
1863
1856
|
])
|
1864
1857
|
], 2))), 128))
|
1865
1858
|
]),
|
1866
1859
|
o("div", ei, [
|
1867
1860
|
ce(o("input", {
|
1868
|
-
"onUpdate:modelValue": M[2] || (M[2] = (
|
1861
|
+
"onUpdate:modelValue": M[2] || (M[2] = (h) => u.value = h),
|
1869
1862
|
class: "template-selector__searching-input",
|
1870
1863
|
type: "text",
|
1871
1864
|
placeholder: "Поиск шаблона"
|
@@ -1875,14 +1868,14 @@ const sc = (e) => {
|
|
1875
1868
|
]),
|
1876
1869
|
o("div", fi, [
|
1877
1870
|
m.value.length !== 0 ? (r(), c("ul", ti, [
|
1878
|
-
(r(!0), c(
|
1879
|
-
key:
|
1880
|
-
class:
|
1881
|
-
onClick: (k) => g(
|
1871
|
+
(r(!0), c(H, null, Z(m.value, (h, b) => (r(), c("li", {
|
1872
|
+
key: b,
|
1873
|
+
class: U(["template-selector__item-template", { "template-selector__item-selected": h.isSelected }]),
|
1874
|
+
onClick: (k) => g(h)
|
1882
1875
|
}, [
|
1883
1876
|
o("div", ai, [
|
1884
|
-
o("p", si, N(
|
1885
|
-
o("p", Ai, N(
|
1877
|
+
o("p", si, N(h.title), 1),
|
1878
|
+
o("p", Ai, N(h.template), 1)
|
1886
1879
|
])
|
1887
1880
|
], 10, ni))), 128))
|
1888
1881
|
])) : (r(), c("p", ii, " Шаблоны отсутствуют "))
|
@@ -1941,19 +1934,19 @@ const sc = (e) => {
|
|
1941
1934
|
n.value.style.display = "none", document.addEventListener("click", i);
|
1942
1935
|
}), ct(() => {
|
1943
1936
|
document.removeEventListener("click", i);
|
1944
|
-
}), (u, g) => (r(), c(
|
1937
|
+
}), (u, g) => (r(), c(H, null, [
|
1945
1938
|
o("button", {
|
1946
1939
|
ref_key: "templateButton",
|
1947
1940
|
ref: t,
|
1948
|
-
class:
|
1941
|
+
class: U(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
1949
1942
|
onClick: a,
|
1950
1943
|
onMouseover: s,
|
1951
1944
|
onMouseout: A
|
1952
1945
|
}, g[0] || (g[0] = [
|
1953
1946
|
o("span", { class: "pi pi-objects-column" }, null, -1)
|
1954
1947
|
]), 34),
|
1955
|
-
Q(
|
1956
|
-
default:
|
1948
|
+
Q(q, null, {
|
1949
|
+
default: $(() => [
|
1957
1950
|
o("div", {
|
1958
1951
|
ref_key: "template",
|
1959
1952
|
ref: n,
|
@@ -2002,41 +1995,43 @@ const sc = (e) => {
|
|
2002
1995
|
},
|
2003
1996
|
emits: ["closeTemplateWindow", "pasteTemplate", "sendWabaValues"],
|
2004
1997
|
setup(e, { emit: f }) {
|
2005
|
-
const t = e, n = de("chatAppId")
|
2006
|
-
|
1998
|
+
const t = e, n = de("chatAppId");
|
1999
|
+
yf(n);
|
2000
|
+
const a = f, s = () => {
|
2001
|
+
a("closeTemplateWindow"), E(), w();
|
2007
2002
|
}, A = () => {
|
2008
|
-
|
2009
|
-
}, i =
|
2010
|
-
t.wabaTemplates.forEach((
|
2011
|
-
},
|
2003
|
+
a("closeTemplateWindow"), a("sendWabaValues", { templateId: t.wabaTemplates.templateId, values: Object.values(y) }), E();
|
2004
|
+
}, i = I(null), l = I(null), u = I(""), g = (D) => {
|
2005
|
+
t.wabaTemplates.forEach((T) => T.isSelected = !1), D.isSelected = !0, l.value = D;
|
2006
|
+
}, d = () => {
|
2012
2007
|
t.wabaTemplates.forEach((D) => D.isSelected = !1);
|
2013
|
-
},
|
2014
|
-
const D =
|
2015
|
-
return
|
2016
|
-
}),
|
2017
|
-
|
2008
|
+
}, p = R(() => i.value ? t.wabaTemplates.filter((D) => D.groupId === i.value.groupId) : t.wabaTemplates), m = R(() => {
|
2009
|
+
const D = u.value.trim().toLowerCase();
|
2010
|
+
return p.value.filter((T) => T.title.toLowerCase().includes(D) || T.template.toLowerCase().includes(D));
|
2011
|
+
}), y = Yn({}), M = I(!1), h = I(null), b = I(""), k = I(null), C = (D) => {
|
2012
|
+
h.value = D, b.value = y[D] || "", M.value = !0;
|
2013
|
+
}, w = () => {
|
2014
|
+
M.value = !1, h.value = null, b.value = "";
|
2018
2015
|
}, j = () => {
|
2019
|
-
|
2020
|
-
},
|
2021
|
-
_.value !== null && (M[_.value] = k.value), j();
|
2022
|
-
}, E = Y(() => {
|
2016
|
+
h.value !== null && (y[h.value] = b.value), w();
|
2017
|
+
}, L = R(() => {
|
2023
2018
|
var D;
|
2024
|
-
return (D =
|
2025
|
-
const
|
2026
|
-
return `<span style="padding: 2px 6px; background-color: #ffc468; cursor: pointer; line-height: 1.8; border-radius: 4px" data-index="${
|
2019
|
+
return (D = l.value) == null ? void 0 : D.template.replace(/{{(\d+)}}/g, (T, z) => {
|
2020
|
+
const P = parseInt(z), se = y[P] || "Заполнить";
|
2021
|
+
return `<span style="padding: 2px 6px; background-color: #ffc468; cursor: pointer; line-height: 1.8; border-radius: 4px" data-index="${P}">${se}</span>`;
|
2027
2022
|
});
|
2028
2023
|
}), V = (D) => {
|
2029
|
-
const
|
2030
|
-
|
2031
|
-
},
|
2024
|
+
const T = D.target.dataset.index;
|
2025
|
+
T && C(parseInt(T));
|
2026
|
+
}, x = R(() => {
|
2032
2027
|
var D;
|
2033
|
-
return Object.keys(
|
2034
|
-
}),
|
2035
|
-
Object.keys(
|
2036
|
-
|
2028
|
+
return Object.keys(y).length !== ((D = l.value) == null ? void 0 : D.template.match(/{{\d+}}/gi).length);
|
2029
|
+
}), E = () => {
|
2030
|
+
Object.keys(y).forEach((D) => {
|
2031
|
+
y[D] = "";
|
2037
2032
|
});
|
2038
2033
|
};
|
2039
|
-
return (D,
|
2034
|
+
return (D, T) => (r(), c("div", pi, [
|
2040
2035
|
o("div", hi, [
|
2041
2036
|
o("button", { class: "template-selector__button-close" }, [
|
2042
2037
|
o("span", {
|
@@ -2045,100 +2040,100 @@ const sc = (e) => {
|
|
2045
2040
|
})
|
2046
2041
|
]),
|
2047
2042
|
o("ul", yi, [
|
2048
|
-
(r(!0), c(
|
2049
|
-
key:
|
2050
|
-
class:
|
2051
|
-
onClick:
|
2043
|
+
(r(!0), c(H, null, Z(e.groupTemplates, (z, P) => (r(), c("li", {
|
2044
|
+
key: P,
|
2045
|
+
class: U(["template-selector__item-group", { "template-selector__item-selected": i.value === z }]),
|
2046
|
+
onClick: d
|
2052
2047
|
}, [
|
2053
2048
|
o("label", Mi, [
|
2054
|
-
|
2049
|
+
z.iconUrl ? (r(), c("img", {
|
2055
2050
|
key: 0,
|
2056
2051
|
class: "template-selector__item-group-icon",
|
2057
|
-
src:
|
2058
|
-
alt:
|
2059
|
-
}, null, 8, bi)) :
|
2052
|
+
src: z.iconUrl,
|
2053
|
+
alt: z.title
|
2054
|
+
}, null, 8, bi)) : _("", !0),
|
2060
2055
|
ce(o("input", {
|
2061
|
-
id:
|
2062
|
-
"onUpdate:modelValue":
|
2063
|
-
value:
|
2056
|
+
id: P,
|
2057
|
+
"onUpdate:modelValue": T[0] || (T[0] = (ne) => i.value = ne),
|
2058
|
+
value: z,
|
2064
2059
|
class: "template-selector__input-group",
|
2065
2060
|
type: "radio"
|
2066
2061
|
}, null, 8, vi), [
|
2067
|
-
[Rn,
|
2062
|
+
[Rn, i.value]
|
2068
2063
|
]),
|
2069
|
-
o("span", null, N(
|
2064
|
+
o("span", null, N(z.title), 1)
|
2070
2065
|
])
|
2071
2066
|
], 2))), 128))
|
2072
2067
|
]),
|
2073
2068
|
o("div", _i, [
|
2074
2069
|
ce(o("input", {
|
2075
|
-
"onUpdate:modelValue":
|
2070
|
+
"onUpdate:modelValue": T[1] || (T[1] = (z) => u.value = z),
|
2076
2071
|
class: "template-selector__searching-input",
|
2077
2072
|
type: "text",
|
2078
2073
|
placeholder: "Поиск шаблона"
|
2079
2074
|
}, null, 512), [
|
2080
|
-
[uf,
|
2075
|
+
[uf, u.value]
|
2081
2076
|
])
|
2082
2077
|
]),
|
2083
2078
|
o("div", Ii, [
|
2084
|
-
|
2085
|
-
(r(!0), c(
|
2086
|
-
key:
|
2087
|
-
class:
|
2088
|
-
onClick: (
|
2079
|
+
m.value.length !== 0 ? (r(), c("ul", wi, [
|
2080
|
+
(r(!0), c(H, null, Z(m.value, (z, P) => (r(), c("li", {
|
2081
|
+
key: P,
|
2082
|
+
class: U(["template-selector__item-template", { "template-selector__item-selected": z.isSelected }]),
|
2083
|
+
onClick: (ne) => g(z)
|
2089
2084
|
}, [
|
2090
2085
|
o("div", Ni, [
|
2091
|
-
o("p", Di, N(
|
2092
|
-
o("p", ji, N(
|
2086
|
+
o("p", Di, N(z.title), 1),
|
2087
|
+
o("p", ji, N(z.template), 1)
|
2093
2088
|
])
|
2094
2089
|
], 10, ki))), 128))
|
2095
2090
|
])) : (r(), c("p", Ei, " Шаблоны отсутствуют "))
|
2096
2091
|
]),
|
2097
2092
|
o("div", Ti, [
|
2098
|
-
|
2093
|
+
L.value ? (r(), c("div", Vi, [
|
2099
2094
|
o("div", xi, [
|
2100
2095
|
o("p", {
|
2101
2096
|
ref_key: "previewText",
|
2102
|
-
ref:
|
2097
|
+
ref: k,
|
2103
2098
|
class: "template-selector__preview-text",
|
2104
2099
|
onClick: V,
|
2105
|
-
innerHTML:
|
2100
|
+
innerHTML: L.value
|
2106
2101
|
}, null, 8, Si),
|
2107
|
-
|
2102
|
+
T[3] || (T[3] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
2108
2103
|
])
|
2109
2104
|
])) : (r(), c("p", Ci, " Предпросмотр шаблона "))
|
2110
2105
|
]),
|
2111
|
-
Q(
|
2112
|
-
default:
|
2113
|
-
|
2106
|
+
Q(q, { name: "modal-fade" }, {
|
2107
|
+
default: $(() => [
|
2108
|
+
M.value ? (r(), c("div", zi, [
|
2114
2109
|
ce(o("input", {
|
2115
|
-
"onUpdate:modelValue":
|
2110
|
+
"onUpdate:modelValue": T[2] || (T[2] = (z) => b.value = z),
|
2116
2111
|
type: "text",
|
2117
2112
|
placeholder: "Введите значение"
|
2118
2113
|
}, null, 512), [
|
2119
|
-
[uf,
|
2114
|
+
[uf, b.value]
|
2120
2115
|
]),
|
2121
2116
|
o("button", {
|
2122
2117
|
class: "template-selector__modal-button-add",
|
2123
|
-
onClick:
|
2118
|
+
onClick: j
|
2124
2119
|
}, " Добавить "),
|
2125
2120
|
o("button", {
|
2126
2121
|
class: "template-selector__modal-button-cancel",
|
2127
|
-
onClick:
|
2122
|
+
onClick: w
|
2128
2123
|
}, " Отменить ")
|
2129
|
-
])) :
|
2124
|
+
])) : _("", !0)
|
2130
2125
|
]),
|
2131
2126
|
_: 1
|
2132
2127
|
}),
|
2133
2128
|
o("button", {
|
2134
2129
|
class: "template-selector__button-paste",
|
2135
|
-
disabled:
|
2130
|
+
disabled: x.value,
|
2136
2131
|
onClick: A
|
2137
2132
|
}, " Отправить ", 8, Oi)
|
2138
2133
|
])
|
2139
2134
|
]));
|
2140
2135
|
}
|
2141
|
-
}, Ui = /* @__PURE__ */ B(Li, [["__scopeId", "data-v-
|
2136
|
+
}, Ui = /* @__PURE__ */ B(Li, [["__scopeId", "data-v-81f71e14"]]), Bi = {
|
2142
2137
|
__name: "ButtonWabaTemplateSelector",
|
2143
2138
|
props: {
|
2144
2139
|
wabaTemplates: {
|
@@ -2161,48 +2156,54 @@ const sc = (e) => {
|
|
2161
2156
|
default: "active"
|
2162
2157
|
}
|
2163
2158
|
},
|
2164
|
-
|
2165
|
-
|
2166
|
-
|
2167
|
-
|
2168
|
-
|
2169
|
-
|
2170
|
-
f.mode == "hover" && f.state == "active" && (n.value.style.display = "none");
|
2171
|
-
}, i = (u) => {
|
2172
|
-
f.mode == "click" && !t.value.contains(u.target) && !n.value.contains(u.target) && (n.value.style.display = "none");
|
2159
|
+
emits: ["sendWabaValues"],
|
2160
|
+
setup(e, { emit: f }) {
|
2161
|
+
const t = e, n = I(null), a = I(null), s = f, A = () => {
|
2162
|
+
t.mode == "click" && t.state == "active" && (a.value.style.display == "none" ? a.value.style.display = "inherit" : a.value.style.display == "inherit" && (a.value.style.display = "none"));
|
2163
|
+
}, i = () => {
|
2164
|
+
t.mode == "hover" && t.state == "active" && (a.value.style.display = "inherit");
|
2173
2165
|
}, l = () => {
|
2174
|
-
|
2166
|
+
t.mode == "hover" && t.state == "active" && (a.value.style.display = "none");
|
2167
|
+
}, u = (p) => {
|
2168
|
+
t.mode == "click" && !n.value.contains(p.target) && !a.value.contains(p.target) && (a.value.style.display = "none");
|
2169
|
+
}, g = () => {
|
2170
|
+
a.value.style.display = "none";
|
2175
2171
|
};
|
2176
|
-
|
2177
|
-
|
2172
|
+
we(() => {
|
2173
|
+
a.value.style.display = "none", document.addEventListener("click", u);
|
2178
2174
|
}), ct(() => {
|
2179
|
-
document.removeEventListener("click",
|
2180
|
-
})
|
2175
|
+
document.removeEventListener("click", u);
|
2176
|
+
});
|
2177
|
+
const d = (p) => {
|
2178
|
+
s("sendWabaValues", p);
|
2179
|
+
};
|
2180
|
+
return (p, m) => (r(), c(H, null, [
|
2181
2181
|
o("button", {
|
2182
2182
|
ref_key: "templateButton",
|
2183
|
-
ref:
|
2184
|
-
class:
|
2185
|
-
onClick:
|
2186
|
-
onMouseover:
|
2187
|
-
onMouseout:
|
2188
|
-
},
|
2183
|
+
ref: n,
|
2184
|
+
class: U(["button-template", { "button-template-disabled": e.state == "disabled" }]),
|
2185
|
+
onClick: A,
|
2186
|
+
onMouseover: i,
|
2187
|
+
onMouseout: l
|
2188
|
+
}, m[0] || (m[0] = [
|
2189
2189
|
o("span", { class: "pi pi-code" }, null, -1)
|
2190
2190
|
]), 34),
|
2191
2191
|
o("div", {
|
2192
2192
|
ref_key: "template",
|
2193
|
-
ref:
|
2194
|
-
onMouseover:
|
2195
|
-
onMouseout:
|
2193
|
+
ref: a,
|
2194
|
+
onMouseover: i,
|
2195
|
+
onMouseout: l
|
2196
2196
|
}, [
|
2197
2197
|
Q(Ui, {
|
2198
|
-
|
2198
|
+
"waba-templates": e.wabaTemplates,
|
2199
2199
|
"group-templates": e.groupTemplates,
|
2200
|
-
onCloseTemplateWindow:
|
2201
|
-
|
2200
|
+
onCloseTemplateWindow: g,
|
2201
|
+
onSendWabaValues: d
|
2202
|
+
}, null, 8, ["waba-templates", "group-templates"])
|
2202
2203
|
], 544)
|
2203
2204
|
], 64));
|
2204
2205
|
}
|
2205
|
-
}, gc = /* @__PURE__ */ B(Bi, [["__scopeId", "data-v-
|
2206
|
+
}, gc = /* @__PURE__ */ B(Bi, [["__scopeId", "data-v-78800319"]]), ta = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", na = {
|
2206
2207
|
recent: "Recently used",
|
2207
2208
|
smileys_people: "Smiles & People",
|
2208
2209
|
animals_nature: "Animals & Nature",
|
@@ -14395,9 +14396,9 @@ function yo() {
|
|
14395
14396
|
const d = [
|
14396
14397
|
...this.options.groupOrder,
|
14397
14398
|
...Object.keys(this.options.additionalGroups),
|
14398
|
-
...Dn.map((
|
14399
|
+
...Dn.map((p) => p.key)
|
14399
14400
|
];
|
14400
|
-
return [...new Set(d)].filter((
|
14401
|
+
return [...new Set(d)].filter((p) => !this.disabled.includes(p));
|
14401
14402
|
}
|
14402
14403
|
});
|
14403
14404
|
function f() {
|
@@ -14405,8 +14406,8 @@ function yo() {
|
|
14405
14406
|
}
|
14406
14407
|
async function t() {
|
14407
14408
|
var d;
|
14408
|
-
let
|
14409
|
-
return Array.isArray(
|
14409
|
+
let p = await ho();
|
14410
|
+
return Array.isArray(p) && p.length ? p = JSON.parse(((d = p[0]) == null ? void 0 : d.value) || "") : p = [], p;
|
14410
14411
|
}
|
14411
14412
|
function n() {
|
14412
14413
|
t().then((d) => {
|
@@ -14433,8 +14434,8 @@ function yo() {
|
|
14433
14434
|
const g = (d) => {
|
14434
14435
|
if (e.options.displayRecent !== !0)
|
14435
14436
|
return;
|
14436
|
-
const
|
14437
|
-
if (
|
14437
|
+
const p = e.recent.findIndex((y) => y.u === d.u);
|
14438
|
+
if (p > 0 && e.recent.splice(p, 1), p === 0)
|
14438
14439
|
return;
|
14439
14440
|
const m = { u: d.u, n: qn(d.n) };
|
14440
14441
|
e.recent = [m, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), u();
|
@@ -14449,7 +14450,7 @@ function yo() {
|
|
14449
14450
|
updateSelect: g
|
14450
14451
|
};
|
14451
14452
|
}
|
14452
|
-
var
|
14453
|
+
var fe = "top", re = "bottom", ue = "right", te = "left", fn = "auto", Mf = [fe, re, ue, te], qe = "start", mf = "end", Mo = "clippingParents", ia = "viewport", ef = "popper", bo = "reference", Vn = /* @__PURE__ */ Mf.reduce(function(e, f) {
|
14453
14454
|
return e.concat([f + "-" + qe, f + "-" + mf]);
|
14454
14455
|
}, []), oa = /* @__PURE__ */ [].concat(Mf, [fn]).reduce(function(e, f) {
|
14455
14456
|
return e.concat([f, f + "-" + qe, f + "-" + mf]);
|
@@ -14634,10 +14635,10 @@ var Lo = function(f, t) {
|
|
14634
14635
|
})) : f, ca(typeof f != "number" ? f : da(f, Mf));
|
14635
14636
|
};
|
14636
14637
|
function Uo(e) {
|
14637
|
-
var f, t = e.state, n = e.name, a = e.options, s = t.elements.arrow, A = t.modifiersData.popperOffsets, i = he(t.placement), l = nn(i), u = [
|
14638
|
+
var f, t = e.state, n = e.name, a = e.options, s = t.elements.arrow, A = t.modifiersData.popperOffsets, i = he(t.placement), l = nn(i), u = [te, ue].indexOf(i) >= 0, g = u ? "height" : "width";
|
14638
14639
|
if (!(!s || !A)) {
|
14639
|
-
var d = Lo(a.padding, t),
|
14640
|
-
t.modifiersData[n] = (f = {}, f[
|
14640
|
+
var d = Lo(a.padding, t), p = tn(s), m = l === "y" ? fe : te, y = l === "y" ? re : ue, M = t.rects.reference[g] + t.rects.reference[l] - A[l] - t.rects.popper[g], h = A[l] - t.rects.reference[l], b = bf(s), k = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = M / 2 - h / 2, w = d[m], j = k - p[g] - d[y], L = k / 2 - p[g] / 2 + C, V = lf(w, L, j), x = l;
|
14641
|
+
t.modifiersData[n] = (f = {}, f[x] = V, f.centerOffset = V - L, f);
|
14641
14642
|
}
|
14642
14643
|
}
|
14643
14644
|
function Bo(e) {
|
@@ -14670,28 +14671,28 @@ function Yo(e) {
|
|
14670
14671
|
};
|
14671
14672
|
}
|
14672
14673
|
function Sn(e) {
|
14673
|
-
var f, t = e.popper, n = e.popperRect, a = e.placement, s = e.variation, A = e.offsets, i = e.position, l = e.gpuAcceleration, u = e.adaptive, g = e.roundOffsets, d = e.isFixed,
|
14674
|
+
var f, t = e.popper, n = e.popperRect, a = e.placement, s = e.variation, A = e.offsets, i = e.position, l = e.gpuAcceleration, u = e.adaptive, g = e.roundOffsets, d = e.isFixed, p = g === !0 ? Yo(A) : typeof g == "function" ? g(A) : A, m = p.x, y = m === void 0 ? 0 : m, M = p.y, h = M === void 0 ? 0 : M, b = A.hasOwnProperty("x"), k = A.hasOwnProperty("y"), C = te, w = fe, j = window;
|
14674
14675
|
if (u) {
|
14675
|
-
var
|
14676
|
-
if (
|
14676
|
+
var L = bf(t), V = "clientHeight", x = "clientWidth";
|
14677
|
+
if (L === ge(t) && (L = Te(t), Me(L).position !== "static" && i === "absolute" && (V = "scrollHeight", x = "scrollWidth")), L = L, a === fe || (a === te || a === ue) && s === mf) {
|
14677
14678
|
w = re;
|
14678
|
-
var
|
14679
|
-
|
14679
|
+
var E = d && j.visualViewport ? j.visualViewport.height : L[V];
|
14680
|
+
h -= E - n.height, h *= l ? 1 : -1;
|
14680
14681
|
}
|
14681
|
-
if (a ===
|
14682
|
-
|
14683
|
-
var
|
14684
|
-
y -=
|
14682
|
+
if (a === te || (a === fe || a === re) && s === mf) {
|
14683
|
+
C = ue;
|
14684
|
+
var D = d && j.visualViewport ? j.visualViewport.width : L[x];
|
14685
|
+
y -= D - n.width, y *= l ? 1 : -1;
|
14685
14686
|
}
|
14686
14687
|
}
|
14687
|
-
var
|
14688
|
+
var T = Object.assign({
|
14688
14689
|
position: i
|
14689
14690
|
}, u && Ro);
|
14690
14691
|
if (l) {
|
14691
|
-
var
|
14692
|
-
return Object.assign({},
|
14692
|
+
var z;
|
14693
|
+
return Object.assign({}, T, (z = {}, z[w] = k ? "0" : "", z[C] = b ? "0" : "", z.transform = (j.devicePixelRatio || 1) <= 1 ? "translate(" + y + "px, " + h + "px)" : "translate3d(" + y + "px, " + h + "px, 0)", z));
|
14693
14694
|
}
|
14694
|
-
return Object.assign({},
|
14695
|
+
return Object.assign({}, T, (f = {}, f[w] = k ? h + "px" : "", f[C] = b ? y + "px" : "", f.transform = "", f));
|
14695
14696
|
}
|
14696
14697
|
function qo(e) {
|
14697
14698
|
var f = e.state, t = e.options, n = t.gpuAcceleration, a = n === void 0 ? !0 : n, s = t.adaptive, A = s === void 0 ? !0 : s, i = t.roundOffsets, l = i === void 0 ? !0 : i, u = {
|
@@ -14835,7 +14836,7 @@ function Xo(e, f, t) {
|
|
14835
14836
|
function ma(e) {
|
14836
14837
|
var f = e.reference, t = e.element, n = e.placement, a = n ? he(n) : null, s = n ? Pe(n) : null, A = f.x + f.width / 2 - t.width / 2, i = f.y + f.height / 2 - t.height / 2, l;
|
14837
14838
|
switch (a) {
|
14838
|
-
case
|
14839
|
+
case fe:
|
14839
14840
|
l = {
|
14840
14841
|
x: A,
|
14841
14842
|
y: f.y - t.height
|
@@ -14853,7 +14854,7 @@ function ma(e) {
|
|
14853
14854
|
y: i
|
14854
14855
|
};
|
14855
14856
|
break;
|
14856
|
-
case
|
14857
|
+
case te:
|
14857
14858
|
l = {
|
14858
14859
|
x: f.x - t.width,
|
14859
14860
|
y: i
|
@@ -14881,35 +14882,35 @@ function ma(e) {
|
|
14881
14882
|
}
|
14882
14883
|
function pf(e, f) {
|
14883
14884
|
f === void 0 && (f = {});
|
14884
|
-
var t = f, n = t.placement, a = n === void 0 ? e.placement : n, s = t.boundary, A = s === void 0 ? Mo : s, i = t.rootBoundary, l = i === void 0 ? ia : i, u = t.elementContext, g = u === void 0 ? ef : u, d = t.altBoundary,
|
14885
|
+
var t = f, n = t.placement, a = n === void 0 ? e.placement : n, s = t.boundary, A = s === void 0 ? Mo : s, i = t.rootBoundary, l = i === void 0 ? ia : i, u = t.elementContext, g = u === void 0 ? ef : u, d = t.altBoundary, p = d === void 0 ? !1 : d, m = t.padding, y = m === void 0 ? 0 : m, M = ca(typeof y != "number" ? y : da(y, Mf)), h = g === ef ? bo : ef, b = e.rects.popper, k = e.elements[p ? h : g], C = Xo($e(k) ? k : k.contextElement || Te(e.elements.popper), A, l), w = Fe(e.elements.reference), j = ma({
|
14885
14886
|
reference: w,
|
14886
|
-
element:
|
14887
|
+
element: b,
|
14887
14888
|
strategy: "absolute",
|
14888
14889
|
placement: a
|
14889
|
-
}),
|
14890
|
-
top:
|
14891
|
-
bottom:
|
14892
|
-
left:
|
14893
|
-
right:
|
14894
|
-
},
|
14895
|
-
if (g === ef &&
|
14896
|
-
var
|
14897
|
-
Object.keys(
|
14898
|
-
var
|
14899
|
-
|
14890
|
+
}), L = Qt(Object.assign({}, b, j)), V = g === ef ? L : w, x = {
|
14891
|
+
top: C.top - V.top + M.top,
|
14892
|
+
bottom: V.bottom - C.bottom + M.bottom,
|
14893
|
+
left: C.left - V.left + M.left,
|
14894
|
+
right: V.right - C.right + M.right
|
14895
|
+
}, E = e.modifiersData.offset;
|
14896
|
+
if (g === ef && E) {
|
14897
|
+
var D = E[a];
|
14898
|
+
Object.keys(x).forEach(function(T) {
|
14899
|
+
var z = [ue, re].indexOf(T) >= 0 ? 1 : -1, P = [fe, re].indexOf(T) >= 0 ? "y" : "x";
|
14900
|
+
x[T] += D[P] * z;
|
14900
14901
|
});
|
14901
14902
|
}
|
14902
|
-
return
|
14903
|
+
return x;
|
14903
14904
|
}
|
14904
14905
|
function el(e, f) {
|
14905
14906
|
f === void 0 && (f = {});
|
14906
14907
|
var t = f, n = t.placement, a = t.boundary, s = t.rootBoundary, A = t.padding, i = t.flipVariations, l = t.allowedAutoPlacements, u = l === void 0 ? oa : l, g = Pe(n), d = g ? i ? Vn : Vn.filter(function(y) {
|
14907
14908
|
return Pe(y) === g;
|
14908
|
-
}) : Mf,
|
14909
|
+
}) : Mf, p = d.filter(function(y) {
|
14909
14910
|
return u.indexOf(y) >= 0;
|
14910
14911
|
});
|
14911
|
-
|
14912
|
-
var m =
|
14912
|
+
p.length === 0 && (p = d);
|
14913
|
+
var m = p.reduce(function(y, M) {
|
14913
14914
|
return y[M] = pf(e, {
|
14914
14915
|
placement: M,
|
14915
14916
|
boundary: a,
|
@@ -14930,7 +14931,7 @@ function fl(e) {
|
|
14930
14931
|
function tl(e) {
|
14931
14932
|
var f = e.state, t = e.options, n = e.name;
|
14932
14933
|
if (!f.modifiersData[n]._skip) {
|
14933
|
-
for (var a = t.mainAxis, s = a === void 0 ? !0 : a, A = t.altAxis, i = A === void 0 ? !0 : A, l = t.fallbackPlacements, u = t.padding, g = t.boundary, d = t.rootBoundary,
|
14934
|
+
for (var a = t.mainAxis, s = a === void 0 ? !0 : a, A = t.altAxis, i = A === void 0 ? !0 : A, l = t.fallbackPlacements, u = t.padding, g = t.boundary, d = t.rootBoundary, p = t.altBoundary, m = t.flipVariations, y = m === void 0 ? !0 : m, M = t.allowedAutoPlacements, h = f.options.placement, b = he(h), k = b === h, C = l || (k || !y ? [zf(h)] : fl(h)), w = [h].concat(C).reduce(function(Ue, ke) {
|
14934
14935
|
return Ue.concat(he(ke) === fn ? el(f, {
|
14935
14936
|
placement: ke,
|
14936
14937
|
boundary: g,
|
@@ -14939,41 +14940,41 @@ function tl(e) {
|
|
14939
14940
|
flipVariations: y,
|
14940
14941
|
allowedAutoPlacements: M
|
14941
14942
|
}) : ke);
|
14942
|
-
}, []), j = f.rects.reference,
|
14943
|
-
var
|
14944
|
-
placement:
|
14943
|
+
}, []), j = f.rects.reference, L = f.rects.popper, V = /* @__PURE__ */ new Map(), x = !0, E = w[0], D = 0; D < w.length; D++) {
|
14944
|
+
var T = w[D], z = he(T), P = Pe(T) === qe, ne = [fe, re].indexOf(z) >= 0, se = ne ? "width" : "height", W = pf(f, {
|
14945
|
+
placement: T,
|
14945
14946
|
boundary: g,
|
14946
14947
|
rootBoundary: d,
|
14947
|
-
altBoundary:
|
14948
|
+
altBoundary: p,
|
14948
14949
|
padding: u
|
14949
|
-
}), G =
|
14950
|
-
j[
|
14950
|
+
}), G = ne ? P ? ue : te : P ? re : fe;
|
14951
|
+
j[se] > L[se] && (G = zf(G));
|
14951
14952
|
var _f = zf(G), xe = [];
|
14952
|
-
if (s && xe.push(
|
14953
|
+
if (s && xe.push(W[z] <= 0), i && xe.push(W[G] <= 0, W[_f] <= 0), xe.every(function(Ue) {
|
14953
14954
|
return Ue;
|
14954
14955
|
})) {
|
14955
|
-
|
14956
|
+
E = T, x = !1;
|
14956
14957
|
break;
|
14957
14958
|
}
|
14958
|
-
|
14959
|
+
V.set(T, xe);
|
14959
14960
|
}
|
14960
|
-
if (
|
14961
|
+
if (x)
|
14961
14962
|
for (var If = y ? 3 : 1, pt = function(ke) {
|
14962
14963
|
var Ze = w.find(function(kf) {
|
14963
|
-
var Se =
|
14964
|
+
var Se = V.get(kf);
|
14964
14965
|
if (Se)
|
14965
14966
|
return Se.slice(0, ke).every(function(ht) {
|
14966
14967
|
return ht;
|
14967
14968
|
});
|
14968
14969
|
});
|
14969
14970
|
if (Ze)
|
14970
|
-
return
|
14971
|
+
return E = Ze, "break";
|
14971
14972
|
}, Ge = If; Ge > 0; Ge--) {
|
14972
14973
|
var wf = pt(Ge);
|
14973
14974
|
if (wf === "break")
|
14974
14975
|
break;
|
14975
14976
|
}
|
14976
|
-
f.placement !==
|
14977
|
+
f.placement !== E && (f.modifiersData[n]._skip = !0, f.placement = E, f.reset = !0);
|
14977
14978
|
}
|
14978
14979
|
}
|
14979
14980
|
var nl = {
|
@@ -14998,7 +14999,7 @@ function On(e, f, t) {
|
|
14998
14999
|
};
|
14999
15000
|
}
|
15000
15001
|
function Ln(e) {
|
15001
|
-
return [
|
15002
|
+
return [fe, ue, re, te].some(function(f) {
|
15002
15003
|
return e[f] >= 0;
|
15003
15004
|
});
|
15004
15005
|
}
|
@@ -15026,10 +15027,10 @@ var sl = {
|
|
15026
15027
|
fn: al
|
15027
15028
|
};
|
15028
15029
|
function Al(e, f, t) {
|
15029
|
-
var n = he(e), a = [
|
15030
|
+
var n = he(e), a = [te, fe].indexOf(n) >= 0 ? -1 : 1, s = typeof t == "function" ? t(Object.assign({}, f, {
|
15030
15031
|
placement: e
|
15031
15032
|
})) : t, A = s[0], i = s[1];
|
15032
|
-
return A = A || 0, i = (i || 0) * a, [
|
15033
|
+
return A = A || 0, i = (i || 0) * a, [te, ue].indexOf(n) >= 0 ? {
|
15033
15034
|
x: i,
|
15034
15035
|
y: A
|
15035
15036
|
} : {
|
@@ -15070,36 +15071,36 @@ function ul(e) {
|
|
15070
15071
|
return e === "x" ? "y" : "x";
|
15071
15072
|
}
|
15072
15073
|
function cl(e) {
|
15073
|
-
var f = e.state, t = e.options, n = e.name, a = t.mainAxis, s = a === void 0 ? !0 : a, A = t.altAxis, i = A === void 0 ? !1 : A, l = t.boundary, u = t.rootBoundary, g = t.altBoundary, d = t.padding,
|
15074
|
+
var f = e.state, t = e.options, n = e.name, a = t.mainAxis, s = a === void 0 ? !0 : a, A = t.altAxis, i = A === void 0 ? !1 : A, l = t.boundary, u = t.rootBoundary, g = t.altBoundary, d = t.padding, p = t.tether, m = p === void 0 ? !0 : p, y = t.tetherOffset, M = y === void 0 ? 0 : y, h = pf(f, {
|
15074
15075
|
boundary: l,
|
15075
15076
|
rootBoundary: u,
|
15076
15077
|
padding: d,
|
15077
15078
|
altBoundary: g
|
15078
|
-
}),
|
15079
|
+
}), b = he(f.placement), k = Pe(f.placement), C = !k, w = nn(b), j = ul(w), L = f.modifiersData.popperOffsets, V = f.rects.reference, x = f.rects.popper, E = typeof M == "function" ? M(Object.assign({}, f.rects, {
|
15079
15080
|
placement: f.placement
|
15080
|
-
})) : M,
|
15081
|
-
mainAxis:
|
15082
|
-
altAxis:
|
15081
|
+
})) : M, D = typeof E == "number" ? {
|
15082
|
+
mainAxis: E,
|
15083
|
+
altAxis: E
|
15083
15084
|
} : Object.assign({
|
15084
15085
|
mainAxis: 0,
|
15085
15086
|
altAxis: 0
|
15086
|
-
},
|
15087
|
+
}, E), T = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null, z = {
|
15087
15088
|
x: 0,
|
15088
15089
|
y: 0
|
15089
15090
|
};
|
15090
|
-
if (
|
15091
|
+
if (L) {
|
15091
15092
|
if (s) {
|
15092
|
-
var
|
15093
|
+
var P, ne = w === "y" ? fe : te, se = w === "y" ? re : ue, W = w === "y" ? "height" : "width", G = L[w], _f = G + h[ne], xe = G - h[se], If = m ? -x[W] / 2 : 0, pt = k === qe ? V[W] : x[W], Ge = k === qe ? -x[W] : -V[W], wf = f.elements.arrow, Ue = m && wf ? tn(wf) : {
|
15093
15094
|
width: 0,
|
15094
15095
|
height: 0
|
15095
|
-
}, ke = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : ua(), Ze = ke[
|
15096
|
-
|
15096
|
+
}, ke = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : ua(), Ze = ke[ne], kf = ke[se], Se = lf(0, V[W], Ue[W]), ht = C ? V[W] / 2 - If - Se - Ze - D.mainAxis : pt - Se - Ze - D.mainAxis, Ma = C ? -V[W] / 2 + If + Se + kf + D.mainAxis : Ge + Se + kf + D.mainAxis, yt = f.elements.arrow && bf(f.elements.arrow), ba = yt ? w === "y" ? yt.clientTop || 0 : yt.clientLeft || 0 : 0, ln = (P = T == null ? void 0 : T[w]) != null ? P : 0, va = G + ht - ln - ba, _a = G + Ma - ln, rn = lf(m ? ut(_f, va) : _f, G, m ? Le(xe, _a) : xe);
|
15097
|
+
L[w] = rn, z[w] = rn - G;
|
15097
15098
|
}
|
15098
15099
|
if (i) {
|
15099
|
-
var un, Ia = w === "x" ?
|
15100
|
-
|
15100
|
+
var un, Ia = w === "x" ? fe : te, wa = w === "x" ? re : ue, Ce = L[j], Nf = j === "y" ? "height" : "width", cn = Ce + h[Ia], dn = Ce - h[wa], Mt = [fe, te].indexOf(b) !== -1, gn = (un = T == null ? void 0 : T[j]) != null ? un : 0, mn = Mt ? cn : Ce - V[Nf] - x[Nf] - gn + D.altAxis, pn = Mt ? Ce + V[Nf] + x[Nf] - gn - D.altAxis : dn, hn = m && Mt ? Oo(mn, Ce, pn) : lf(m ? mn : cn, Ce, m ? pn : dn);
|
15101
|
+
L[j] = hn, z[j] = hn - Ce;
|
15101
15102
|
}
|
15102
|
-
f.modifiersData[n] =
|
15103
|
+
f.modifiersData[n] = z;
|
15103
15104
|
}
|
15104
15105
|
}
|
15105
15106
|
var dl = {
|
@@ -15215,39 +15216,39 @@ function _l(e) {
|
|
15215
15216
|
},
|
15216
15217
|
attributes: {},
|
15217
15218
|
styles: {}
|
15218
|
-
}, d = [],
|
15219
|
+
}, d = [], p = !1, m = {
|
15219
15220
|
state: g,
|
15220
|
-
setOptions: function(
|
15221
|
-
var k = typeof
|
15221
|
+
setOptions: function(b) {
|
15222
|
+
var k = typeof b == "function" ? b(g.options) : b;
|
15222
15223
|
M(), g.options = Object.assign({}, s, g.options, k), g.scrollParents = {
|
15223
15224
|
reference: $e(i) ? rf(i) : i.contextElement ? rf(i.contextElement) : [],
|
15224
15225
|
popper: rf(l)
|
15225
15226
|
};
|
15226
|
-
var
|
15227
|
-
return g.orderedModifiers =
|
15227
|
+
var C = Ml(vl([].concat(n, g.options.modifiers)));
|
15228
|
+
return g.orderedModifiers = C.filter(function(w) {
|
15228
15229
|
return w.enabled;
|
15229
15230
|
}), y(), m.update();
|
15230
15231
|
},
|
15231
15232
|
forceUpdate: function() {
|
15232
|
-
if (!
|
15233
|
-
var
|
15234
|
-
if (Bn(k,
|
15233
|
+
if (!p) {
|
15234
|
+
var b = g.elements, k = b.reference, C = b.popper;
|
15235
|
+
if (Bn(k, C)) {
|
15235
15236
|
g.rects = {
|
15236
|
-
reference: hl(k, bf(
|
15237
|
-
popper: tn(
|
15238
|
-
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(
|
15239
|
-
return g.modifiersData[
|
15237
|
+
reference: hl(k, bf(C), g.options.strategy === "fixed"),
|
15238
|
+
popper: tn(C)
|
15239
|
+
}, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(D) {
|
15240
|
+
return g.modifiersData[D.name] = Object.assign({}, D.data);
|
15240
15241
|
});
|
15241
15242
|
for (var w = 0; w < g.orderedModifiers.length; w++) {
|
15242
15243
|
if (g.reset === !0) {
|
15243
15244
|
g.reset = !1, w = -1;
|
15244
15245
|
continue;
|
15245
15246
|
}
|
15246
|
-
var j = g.orderedModifiers[w],
|
15247
|
-
typeof
|
15247
|
+
var j = g.orderedModifiers[w], L = j.fn, V = j.options, x = V === void 0 ? {} : V, E = j.name;
|
15248
|
+
typeof L == "function" && (g = L({
|
15248
15249
|
state: g,
|
15249
|
-
options:
|
15250
|
-
name:
|
15250
|
+
options: x,
|
15251
|
+
name: E,
|
15251
15252
|
instance: m
|
15252
15253
|
}) || g);
|
15253
15254
|
}
|
@@ -15255,37 +15256,37 @@ function _l(e) {
|
|
15255
15256
|
}
|
15256
15257
|
},
|
15257
15258
|
update: bl(function() {
|
15258
|
-
return new Promise(function(
|
15259
|
-
m.forceUpdate(),
|
15259
|
+
return new Promise(function(h) {
|
15260
|
+
m.forceUpdate(), h(g);
|
15260
15261
|
});
|
15261
15262
|
}),
|
15262
15263
|
destroy: function() {
|
15263
|
-
M(),
|
15264
|
+
M(), p = !0;
|
15264
15265
|
}
|
15265
15266
|
};
|
15266
15267
|
if (!Bn(i, l))
|
15267
15268
|
return m;
|
15268
|
-
m.setOptions(u).then(function(
|
15269
|
-
!
|
15269
|
+
m.setOptions(u).then(function(h) {
|
15270
|
+
!p && u.onFirstUpdate && u.onFirstUpdate(h);
|
15270
15271
|
});
|
15271
15272
|
function y() {
|
15272
|
-
g.orderedModifiers.forEach(function(
|
15273
|
-
var
|
15273
|
+
g.orderedModifiers.forEach(function(h) {
|
15274
|
+
var b = h.name, k = h.options, C = k === void 0 ? {} : k, w = h.effect;
|
15274
15275
|
if (typeof w == "function") {
|
15275
15276
|
var j = w({
|
15276
15277
|
state: g,
|
15277
|
-
name:
|
15278
|
+
name: b,
|
15278
15279
|
instance: m,
|
15279
|
-
options:
|
15280
|
-
}),
|
15280
|
+
options: C
|
15281
|
+
}), L = function() {
|
15281
15282
|
};
|
15282
|
-
d.push(j ||
|
15283
|
+
d.push(j || L);
|
15283
15284
|
}
|
15284
15285
|
});
|
15285
15286
|
}
|
15286
15287
|
function M() {
|
15287
|
-
d.forEach(function(
|
15288
|
-
return
|
15288
|
+
d.forEach(function(h) {
|
15289
|
+
return h();
|
15289
15290
|
}), d = [];
|
15290
15291
|
}
|
15291
15292
|
return m;
|
@@ -15337,18 +15338,18 @@ var vf = (e, f) => {
|
|
15337
15338
|
t[n] = a;
|
15338
15339
|
return t;
|
15339
15340
|
};
|
15340
|
-
const Nl =
|
15341
|
+
const Nl = J({
|
15341
15342
|
name: "Body",
|
15342
15343
|
emits: {
|
15343
15344
|
select: (e) => !0
|
15344
15345
|
},
|
15345
15346
|
setup() {
|
15346
|
-
const { state: e, updateEmoji: f, updateSelect: t } = de("store"), n = I(null), a =
|
15347
|
+
const { state: e, updateEmoji: f, updateSelect: t } = de("store"), n = I(null), a = R(() => kl(
|
15347
15348
|
e.emojis,
|
15348
15349
|
e.search,
|
15349
15350
|
e.skinTone,
|
15350
15351
|
e.options.disabledGroups
|
15351
|
-
)), s = Ea(), A =
|
15352
|
+
)), s = Ea(), A = R(() => !e.options.hideGroupNames), i = R(() => !e.options.disableStickyGroupNames), l = qn(e.options.groupNames), u = e.orderedGroupKeys;
|
15352
15353
|
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((y) => {
|
15353
15354
|
e.options.groupNames[y] ? l[y] = e.options.groupNames[y] : l[y] = ya(y);
|
15354
15355
|
});
|
@@ -15356,7 +15357,7 @@ const Nl = X({
|
|
15356
15357
|
function d(y) {
|
15357
15358
|
f(y);
|
15358
15359
|
}
|
15359
|
-
function
|
15360
|
+
function p(y) {
|
15360
15361
|
t(y), s == null || s.emit("select", {
|
15361
15362
|
...y,
|
15362
15363
|
t: e.skinTone,
|
@@ -15364,9 +15365,9 @@ const Nl = X({
|
|
15364
15365
|
});
|
15365
15366
|
}
|
15366
15367
|
function m(y, M) {
|
15367
|
-
var
|
15368
|
-
const
|
15369
|
-
|
15368
|
+
var h;
|
15369
|
+
const b = (h = y == null ? void 0 : y.target) == null ? void 0 : h.closest("button");
|
15370
|
+
b && (b.innerHTML = `<span>${Of(M)}</span>`);
|
15370
15371
|
}
|
15371
15372
|
return le(
|
15372
15373
|
() => e.activeGroup,
|
@@ -15380,7 +15381,7 @@ const Nl = X({
|
|
15380
15381
|
bodyInner: n,
|
15381
15382
|
EMOJI_REMOTE_SRC: ta,
|
15382
15383
|
GROUP_NAMES: na,
|
15383
|
-
handleClick:
|
15384
|
+
handleClick: p,
|
15384
15385
|
handleError: m,
|
15385
15386
|
handleMouseEnter: d,
|
15386
15387
|
native: e.options.native,
|
@@ -15402,21 +15403,21 @@ function Cl(e, f, t, n, a, s) {
|
|
15402
15403
|
return r(), c("div", Dl, [
|
15403
15404
|
o("div", {
|
15404
15405
|
ref: "bodyInner",
|
15405
|
-
class:
|
15406
|
+
class: U([e.platform, "v3-body-inner"])
|
15406
15407
|
}, [
|
15407
|
-
e.orderedKeys.length ? (r(!0), c(
|
15408
|
+
e.orderedKeys.length ? (r(!0), c(H, { key: 0 }, Z(e.orderedKeys, (A) => (r(), c("div", {
|
15408
15409
|
id: A,
|
15409
15410
|
key: A,
|
15410
15411
|
class: "v3-group"
|
15411
15412
|
}, [
|
15412
15413
|
e.hasGroupNames ? ce((r(), c("h5", {
|
15413
15414
|
key: 0,
|
15414
|
-
class:
|
15415
|
+
class: U(e.isSticky ? "v3-sticky" : "")
|
15415
15416
|
}, N(e.groupNames[A]), 3)), [
|
15416
15417
|
[Lf, e.emojis[A]]
|
15417
|
-
]) :
|
15418
|
+
]) : _("", !0),
|
15418
15419
|
ce(o("div", El, [
|
15419
|
-
(r(!0), c(
|
15420
|
+
(r(!0), c(H, null, Z(e.emojis[A], (i) => (r(), c("button", {
|
15420
15421
|
key: i.r,
|
15421
15422
|
type: "button",
|
15422
15423
|
onMouseenter: (l) => e.handleMouseEnter(i),
|
@@ -15437,12 +15438,12 @@ function Cl(e, f, t, n, a, s) {
|
|
15437
15438
|
]);
|
15438
15439
|
}
|
15439
15440
|
var zl = /* @__PURE__ */ vf(Nl, [["render", Cl]]), Ol = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxMi41IDUgQyAxMS40Mjk2ODggNSAxMC41IDUuNjA5Mzc1IDkuOTA2MjUgNi40Mzc1IEMgOS4zMTI1IDcuMjY1NjI1IDkgOC4zMzk4NDQgOSA5LjUgQyA5IDEwLjY2MDE1NiA5LjMxMjUgMTEuNzM0Mzc1IDkuOTA2MjUgMTIuNTYyNSBDIDEwLjUgMTMuMzkwNjI1IDExLjQyOTY4OCAxNCAxMi41ID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I+PHBhdGggZD0iTSAxNiA0IEMgMTEuODMyMDMxIDQgOC4xNTIzNDQgNi4xMTMyODEgNiA5LjM0Mzc1IEwgNiA2IEwgNCA2IEwgNCAxMyBMIDExIDEzIEwgMTEgMTEgTCA3LjM3NSAxMSBDIDkuMTAxNTYzIDguMDE5NTMxIDEyLjI5Njg3NSA2IDE2IDYgQyAyMS41MzUxNTYgNiAyNiAxMC40NjQ4NDQgMjYgMTYgQyAyNiAyMS41MzUxNTYgMjEuNTM1MTU2IDI2IDE2IDI2IEMgMTAuNDY0ODQ0IDI2IDYgMjEuNTM1MTU2IDYgMTYgTCA0IDE2IEMgNCAyMi42MTcxODggOS4zODI4MTMgMjggMTYgMjggQyAyMi42MTcxODggMjggMjggMjIuNjE3MTg4IDI4IDE2IEMgMjggOS4zODI4MTMgMjIuNjE3MTg4IDQgMTYgNCBaIE0gMTUgOCBMIDE1IDE3IEwgMjIgMTcgTCAyMiAxNSBMIDE3IDE1IEwgMTcgOCBaIi8+PC9zdmc+Cg==";
|
15440
|
-
const $l =
|
15441
|
+
const $l = J({
|
15441
15442
|
name: "Header",
|
15442
15443
|
setup(e) {
|
15443
|
-
const { state: f, updateSearch: t, updateActiveGroup: n } = de("store"), a =
|
15444
|
+
const { state: f, updateSearch: t, updateActiveGroup: n } = de("store"), a = R(() => !f.options.hideSearch), s = R(() => !f.options.hideGroupIcons), A = JSON.parse(JSON.stringify(f.orderedGroupKeys)), i = R(
|
15444
15445
|
() => f.options.staticTexts.placeholder || ""
|
15445
|
-
), l =
|
15446
|
+
), l = R({
|
15446
15447
|
get: () => f.search,
|
15447
15448
|
set: (d) => t(d)
|
15448
15449
|
}), u = [
|
@@ -15453,8 +15454,8 @@ const $l = X({
|
|
15453
15454
|
}))
|
15454
15455
|
], g = [];
|
15455
15456
|
return A.forEach((d) => {
|
15456
|
-
const
|
15457
|
-
|
15457
|
+
const p = u.findIndex((m) => m.key === d);
|
15458
|
+
p !== -1 && (g.push(u[p]), u.splice(p, 1));
|
15458
15459
|
}), {
|
15459
15460
|
orderedGroups: g,
|
15460
15461
|
orderedKeys: A,
|
@@ -15493,10 +15494,10 @@ const $l = X({
|
|
15493
15494
|
function Xl(e, f, t, n, a, s) {
|
15494
15495
|
return e.hasGroupIcons || e.hasSearch ? (r(), c("div", Hl, [
|
15495
15496
|
e.hasGroupIcons ? (r(), c("div", Fl, [
|
15496
|
-
(r(!0), c(
|
15497
|
+
(r(!0), c(H, null, Z(e.orderedGroups, (A) => (r(), c("button", {
|
15497
15498
|
key: A.key,
|
15498
15499
|
type: "button",
|
15499
|
-
class:
|
15500
|
+
class: U(["v3-group", {
|
15500
15501
|
"v3-is-hidden": !e.icons[A.key]
|
15501
15502
|
}]),
|
15502
15503
|
onClick: (i) => e.updateActiveGroup(A.key)
|
@@ -15511,8 +15512,8 @@ function Xl(e, f, t, n, a, s) {
|
|
15511
15512
|
}, null, 8, Kl)
|
15512
15513
|
], 8, Wl)
|
15513
15514
|
], 10, Pl))), 128))
|
15514
|
-
])) :
|
15515
|
-
e.hasGroupIcons && e.hasSearch ? (r(), c("div", Jl)) :
|
15515
|
+
])) : _("", !0),
|
15516
|
+
e.hasGroupIcons && e.hasSearch ? (r(), c("div", Jl)) : _("", !0),
|
15516
15517
|
e.hasSearch ? (r(), c("div", Gl, [
|
15517
15518
|
ce(o("input", {
|
15518
15519
|
"onUpdate:modelValue": f[0] || (f[0] = (A) => e.searchValue = A),
|
@@ -15521,27 +15522,27 @@ function Xl(e, f, t, n, a, s) {
|
|
15521
15522
|
}, null, 8, Zl), [
|
15522
15523
|
[uf, e.searchValue]
|
15523
15524
|
])
|
15524
|
-
])) :
|
15525
|
-
])) :
|
15525
|
+
])) : _("", !0)
|
15526
|
+
])) : _("", !0);
|
15526
15527
|
}
|
15527
15528
|
var e1 = /* @__PURE__ */ vf($l, [["render", Xl]]);
|
15528
|
-
const f1 =
|
15529
|
+
const f1 = J({
|
15529
15530
|
name: "Header",
|
15530
15531
|
setup() {
|
15531
|
-
const { state: e, updateSkinTone: f } = de("store"), t = I(!1), n = I(!1), a =
|
15532
|
+
const { state: e, updateSkinTone: f } = de("store"), t = I(!1), n = I(!1), a = R(() => e.skinTone), s = R(
|
15532
15533
|
() => e.options.staticTexts.skinTone || "Skin tone"
|
15533
|
-
), A =
|
15534
|
+
), A = R(() => !e.options.disableSkinTones), i = ha() ? "is-mac" : "", l = R(() => ({
|
15534
15535
|
...e.emoji,
|
15535
15536
|
src: ta + "/" + e.emoji[gf] + ".png"
|
15536
15537
|
}));
|
15537
|
-
function u(
|
15538
|
-
t.value =
|
15538
|
+
function u(p = !0) {
|
15539
|
+
t.value = p;
|
15539
15540
|
}
|
15540
15541
|
function g() {
|
15541
15542
|
t.value = !t.value;
|
15542
15543
|
}
|
15543
|
-
function d(
|
15544
|
-
f(
|
15544
|
+
function d(p) {
|
15545
|
+
f(p), u(!1);
|
15545
15546
|
}
|
15546
15547
|
return le(
|
15547
15548
|
() => e.emoji,
|
@@ -15574,7 +15575,7 @@ function o1(e, f, t, n, a, s) {
|
|
15574
15575
|
}, [
|
15575
15576
|
o("div", t1, [
|
15576
15577
|
o("span", {
|
15577
|
-
class:
|
15578
|
+
class: U([e.platform, "v3-icon"])
|
15578
15579
|
}, [
|
15579
15580
|
e.native || e.hasError ? (r(), c("span", n1, N(e.unicodeToEmoji(e.emoji.r)), 1)) : (r(), c("img", {
|
15580
15581
|
key: 1,
|
@@ -15585,7 +15586,7 @@ function o1(e, f, t, n, a, s) {
|
|
15585
15586
|
], 2),
|
15586
15587
|
o("span", s1, " :" + N(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
|
15587
15588
|
]),
|
15588
|
-
e.hasSkinTones ? (r(), c(
|
15589
|
+
e.hasSkinTones ? (r(), c(H, { key: 0 }, [
|
15589
15590
|
o("button", {
|
15590
15591
|
type: "button",
|
15591
15592
|
class: "v3-tone",
|
@@ -15593,24 +15594,24 @@ function o1(e, f, t, n, a, s) {
|
|
15593
15594
|
}, [
|
15594
15595
|
o("span", A1, N(e.skinToneText), 1),
|
15595
15596
|
o("span", {
|
15596
|
-
class:
|
15597
|
+
class: U(`v3-icon v3-tone-${e.stateSkinTone}`)
|
15597
15598
|
}, null, 2)
|
15598
15599
|
]),
|
15599
15600
|
o("div", {
|
15600
|
-
class:
|
15601
|
+
class: U([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
15601
15602
|
}, [
|
15602
|
-
(r(!0), c(
|
15603
|
+
(r(!0), c(H, null, Z(e.SKIN_TONES, (A) => (r(), c("button", {
|
15603
15604
|
key: A,
|
15604
15605
|
type: "button",
|
15605
|
-
class:
|
15606
|
+
class: U(["v3-skin-tone-" + A, "v3-skin-tone"]),
|
15606
15607
|
onClick: (i) => e.selectSkinTone(A)
|
15607
15608
|
}, null, 10, i1))), 128))
|
15608
15609
|
], 2)
|
15609
|
-
], 64)) :
|
15610
|
+
], 64)) : _("", !0)
|
15610
15611
|
], 32);
|
15611
15612
|
}
|
15612
15613
|
var l1 = /* @__PURE__ */ vf(f1, [["render", o1]]);
|
15613
|
-
const r1 =
|
15614
|
+
const r1 = J({
|
15614
15615
|
name: "PickerRoot",
|
15615
15616
|
components: {
|
15616
15617
|
Header: e1,
|
@@ -15650,42 +15651,42 @@ const r1 = X({
|
|
15650
15651
|
setup(e, { emit: f }) {
|
15651
15652
|
const t = I(), n = I(), a = I(), s = I(!1), A = I(e.text), i = e.type === "input" || e.type === "textarea";
|
15652
15653
|
let l = -1;
|
15653
|
-
const { state: u } = de("store"), g =
|
15654
|
-
function d(
|
15654
|
+
const { state: u } = de("store"), g = R(() => u.options.colorTheme);
|
15655
|
+
function d(h) {
|
15655
15656
|
if (i) {
|
15656
|
-
const
|
15657
|
-
|
15657
|
+
const b = u.options.mode;
|
15658
|
+
b === "prepend" ? A.value = h.i + A.value : b === "insert" && l !== -1 ? (A.value = `${A.value.slice(0, l)}${h.i}${A.value.slice(l)}`, l += h.i.length) : A.value += h.i, f("update:text", A.value);
|
15658
15659
|
}
|
15659
|
-
f("select",
|
15660
|
+
f("select", h);
|
15660
15661
|
}
|
15661
|
-
function
|
15662
|
-
var
|
15663
|
-
t.value && (l = ((
|
15662
|
+
function p() {
|
15663
|
+
var h;
|
15664
|
+
t.value && (l = ((h = t.value) == null ? void 0 : h.selectionEnd) || -1);
|
15664
15665
|
}
|
15665
|
-
function m(
|
15666
|
-
var
|
15667
|
-
!((
|
15666
|
+
function m(h) {
|
15667
|
+
var b;
|
15668
|
+
!((b = h.target) != null && b.closest(
|
15668
15669
|
".v3-input-picker-wrap"
|
15669
15670
|
)) && s.value && (s.value = !1);
|
15670
15671
|
}
|
15671
15672
|
function y() {
|
15672
15673
|
if (n.value && a.value && i) {
|
15673
|
-
let
|
15674
|
-
typeof
|
15674
|
+
let h = u.options.offset;
|
15675
|
+
typeof h != "number" && (h = 6), wl(n.value, a.value, {
|
15675
15676
|
placement: "bottom-end",
|
15676
15677
|
modifiers: [
|
15677
15678
|
{
|
15678
15679
|
name: "offset",
|
15679
15680
|
options: {
|
15680
|
-
offset: [0,
|
15681
|
+
offset: [0, h]
|
15681
15682
|
}
|
15682
15683
|
}
|
15683
15684
|
]
|
15684
15685
|
}), document.body.addEventListener("click", m);
|
15685
15686
|
}
|
15686
15687
|
}
|
15687
|
-
function M(
|
15688
|
-
A.value =
|
15688
|
+
function M(h) {
|
15689
|
+
A.value = h.target.value || "", f("update:text", A.value);
|
15689
15690
|
}
|
15690
15691
|
return we(() => {
|
15691
15692
|
y();
|
@@ -15697,7 +15698,7 @@ const r1 = X({
|
|
15697
15698
|
onSelect: d,
|
15698
15699
|
input: A,
|
15699
15700
|
elem: t,
|
15700
|
-
updateCursor:
|
15701
|
+
updateCursor: p,
|
15701
15702
|
button: n,
|
15702
15703
|
picker: a,
|
15703
15704
|
isInputType: i,
|
@@ -15730,7 +15731,7 @@ function p1(e, f, t, n, a, s) {
|
|
15730
15731
|
onBlur: f[3] || (f[3] = (...u) => e.updateCursor && e.updateCursor(...u))
|
15731
15732
|
}, null, 40, g1)),
|
15732
15733
|
o("div", {
|
15733
|
-
class:
|
15734
|
+
class: U(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
|
15734
15735
|
}, [
|
15735
15736
|
o("button", {
|
15736
15737
|
ref: "button",
|
@@ -15745,7 +15746,7 @@ function p1(e, f, t, n, a, s) {
|
|
15745
15746
|
], 512),
|
15746
15747
|
o("div", {
|
15747
15748
|
ref: "picker",
|
15748
|
-
class:
|
15749
|
+
class: U(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
15749
15750
|
}, [
|
15750
15751
|
Q(A),
|
15751
15752
|
Q(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
@@ -15755,7 +15756,7 @@ function p1(e, f, t, n, a, s) {
|
|
15755
15756
|
])
|
15756
15757
|
])) : (r(), c("div", {
|
15757
15758
|
key: 1,
|
15758
|
-
class:
|
15759
|
+
class: U(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
15759
15760
|
}, [
|
15760
15761
|
Q(A),
|
15761
15762
|
Q(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
@@ -15763,7 +15764,7 @@ function p1(e, f, t, n, a, s) {
|
|
15763
15764
|
], 2));
|
15764
15765
|
}
|
15765
15766
|
var h1 = /* @__PURE__ */ vf(r1, [["render", p1]]);
|
15766
|
-
const y1 =
|
15767
|
+
const y1 = J({
|
15767
15768
|
name: "Picker",
|
15768
15769
|
components: {
|
15769
15770
|
PickerRoot: h1
|
@@ -15878,7 +15879,7 @@ const y1 = X({
|
|
15878
15879
|
});
|
15879
15880
|
function M1(e, f, t, n, a, s) {
|
15880
15881
|
const A = Sf("picker-root");
|
15881
|
-
return r(),
|
15882
|
+
return r(), F(A, {
|
15882
15883
|
type: e.type,
|
15883
15884
|
text: e.input,
|
15884
15885
|
onSelect: f[0] || (f[0] = (i) => e.$emit("select", i)),
|
@@ -15900,7 +15901,7 @@ const v1 = {
|
|
15900
15901
|
}
|
15901
15902
|
},
|
15902
15903
|
setup(e) {
|
15903
|
-
const f = e, t = I(null), n = I(null), a = de("chatAppId"), { setMessageText: s, getMessage: A } = yf(a), i =
|
15904
|
+
const f = e, t = I(null), n = I(null), a = de("chatAppId"), { setMessageText: s, getMessage: A } = yf(a), i = R(() => {
|
15904
15905
|
if (document.documentElement.classList.contains("dark"))
|
15905
15906
|
return "dark";
|
15906
15907
|
}), l = (m) => {
|
@@ -15911,26 +15912,26 @@ const v1 = {
|
|
15911
15912
|
f.mode == "hover" && f.state == "active" && (t.value.style.display = "inherit");
|
15912
15913
|
}, d = () => {
|
15913
15914
|
f.mode == "hover" && f.state == "active" && (t.value.style.display = "none");
|
15914
|
-
},
|
15915
|
+
}, p = (m) => {
|
15915
15916
|
f.mode == "click" && !n.value.contains(m.target) && !t.value.contains(m.target) && (t.value.style.display = "none");
|
15916
15917
|
};
|
15917
15918
|
return we(() => {
|
15918
|
-
t.value.style.display = "none", document.addEventListener("click",
|
15919
|
+
t.value.style.display = "none", document.addEventListener("click", p);
|
15919
15920
|
}), ct(() => {
|
15920
|
-
document.removeEventListener("click",
|
15921
|
-
}), (m, y) => (r(), c(
|
15921
|
+
document.removeEventListener("click", p);
|
15922
|
+
}), (m, y) => (r(), c(H, null, [
|
15922
15923
|
o("div", {
|
15923
15924
|
ref_key: "emojiButton",
|
15924
15925
|
ref: n,
|
15925
|
-
class:
|
15926
|
+
class: U(["button", { "button-disabled": e.state == "disabled" }]),
|
15926
15927
|
onClick: u,
|
15927
15928
|
onMouseover: g,
|
15928
15929
|
onMouseout: d
|
15929
15930
|
}, y[0] || (y[0] = [
|
15930
15931
|
o("span", { class: "pi pi-face-smile" }, null, -1)
|
15931
15932
|
]), 34),
|
15932
|
-
Q(
|
15933
|
-
default:
|
15933
|
+
Q(q, null, {
|
15934
|
+
default: $(() => [
|
15934
15935
|
o("div", {
|
15935
15936
|
ref_key: "emoji",
|
15936
15937
|
ref: t,
|
@@ -15938,7 +15939,7 @@ const v1 = {
|
|
15938
15939
|
onMouseover: g,
|
15939
15940
|
onMouseout: d
|
15940
15941
|
}, [
|
15941
|
-
Q(
|
15942
|
+
Q(S(b1), {
|
15942
15943
|
native: !0,
|
15943
15944
|
theme: i.value,
|
15944
15945
|
"picker-type": "",
|
@@ -15950,7 +15951,7 @@ const v1 = {
|
|
15950
15951
|
})
|
15951
15952
|
], 64));
|
15952
15953
|
}
|
15953
|
-
}, mc = /* @__PURE__ */ B(v1, [["__scopeId", "data-v-
|
15954
|
+
}, mc = /* @__PURE__ */ B(v1, [["__scopeId", "data-v-a6a1f980"]]), _1 = { class: "context-menu" }, I1 = { class: "context-menu__container" }, w1 = { class: "context-menu__list" }, k1 = ["onClick"], N1 = ["src"], D1 = {
|
15954
15955
|
__name: "ContextMenu",
|
15955
15956
|
props: {
|
15956
15957
|
actions: {
|
@@ -15967,7 +15968,7 @@ const v1 = {
|
|
15967
15968
|
return (s, A) => (r(), c("div", _1, [
|
15968
15969
|
o("div", I1, [
|
15969
15970
|
o("ul", w1, [
|
15970
|
-
(r(!0), c(
|
15971
|
+
(r(!0), c(H, null, Z(t.actions, (i, l) => (r(), c("li", {
|
15971
15972
|
key: l,
|
15972
15973
|
class: "context-menu__item",
|
15973
15974
|
onClick: (u) => a(l)
|
@@ -15979,8 +15980,8 @@ const v1 = {
|
|
15979
15980
|
height: "18"
|
15980
15981
|
}, null, 8, N1)) : i.prime ? (r(), c("i", {
|
15981
15982
|
key: 1,
|
15982
|
-
class:
|
15983
|
-
}, null, 2)) :
|
15983
|
+
class: U("pi pi-" + i.prime)
|
15984
|
+
}, null, 2)) : _("", !0),
|
15984
15985
|
o("span", null, N(i.title), 1)
|
15985
15986
|
], 8, k1))), 128))
|
15986
15987
|
])
|
@@ -15996,7 +15997,7 @@ const v1 = {
|
|
15996
15997
|
}, O1 = ["href"], L1 = {
|
15997
15998
|
key: 1,
|
15998
15999
|
class: "file-message__text-container"
|
15999
|
-
}, U1 = ["innerHTML"], B1 = /* @__PURE__ */
|
16000
|
+
}, U1 = ["innerHTML"], B1 = /* @__PURE__ */ J({
|
16000
16001
|
__name: "FileMessage",
|
16001
16002
|
props: {
|
16002
16003
|
message: {
|
@@ -16024,12 +16025,12 @@ const v1 = {
|
|
16024
16025
|
s.value = !0;
|
16025
16026
|
}, d = () => {
|
16026
16027
|
s.value = !1, a.value = !1;
|
16027
|
-
},
|
16028
|
+
}, p = R(() => Je(t.message.status));
|
16028
16029
|
function m(y) {
|
16029
16030
|
return y.position === "left" ? "file-message__left" : "file-message__right";
|
16030
16031
|
}
|
16031
16032
|
return (y, M) => (r(), c("div", {
|
16032
|
-
class:
|
16033
|
+
class: U(["file-message", m(e.message)]),
|
16033
16034
|
messageId: e.message.messageId,
|
16034
16035
|
onMouseleave: d
|
16035
16036
|
}, [
|
@@ -16040,8 +16041,8 @@ const v1 = {
|
|
16040
16041
|
height: "32",
|
16041
16042
|
width: "32",
|
16042
16043
|
style: K({ gridRow: e.message.subText ? "2" : "1" })
|
16043
|
-
}, null, 12, E1)) :
|
16044
|
-
e.message.subText ? (r(), c("p", T1, N(e.message.subText), 1)) :
|
16044
|
+
}, null, 12, E1)) : _("", !0),
|
16045
|
+
e.message.subText ? (r(), c("p", T1, N(e.message.subText), 1)) : _("", !0),
|
16045
16046
|
o("div", {
|
16046
16047
|
class: "file-message__content",
|
16047
16048
|
onMouseenter: g
|
@@ -16063,23 +16064,23 @@ const v1 = {
|
|
16063
16064
|
}, [
|
16064
16065
|
M[2] || (M[2] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16065
16066
|
o("p", null, N(e.message.views), 1)
|
16066
|
-
])) :
|
16067
|
+
])) : _("", !0),
|
16067
16068
|
o("span", C1, N(e.message.time), 1),
|
16068
|
-
m(e.message) === "file-message__right" &&
|
16069
|
+
m(e.message) === "file-message__right" && S(Ke).includes(e.message.status) ? (r(), c("div", {
|
16069
16070
|
key: 1,
|
16070
|
-
class:
|
16071
|
+
class: U(["file-message__status", p.value])
|
16071
16072
|
}, [
|
16072
|
-
e.message.status !== "sent" ? (r(), c("span", z1)) :
|
16073
|
+
e.message.status !== "sent" ? (r(), c("span", z1)) : _("", !0),
|
16073
16074
|
M[3] || (M[3] = o("span", { class: "pi pi-check" }, null, -1))
|
16074
|
-
], 2)) :
|
16075
|
+
], 2)) : _("", !0)
|
16075
16076
|
]),
|
16076
16077
|
s.value && e.message.actions ? (r(), c("button", {
|
16077
16078
|
key: 0,
|
16078
16079
|
class: "file-message__menu-button",
|
16079
|
-
onClick: M[0] || (M[0] = (
|
16080
|
+
onClick: M[0] || (M[0] = (h) => a.value = !a.value)
|
16080
16081
|
}, M[4] || (M[4] = [
|
16081
16082
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16082
|
-
]))) :
|
16083
|
+
]))) : _("", !0),
|
16083
16084
|
o("a", {
|
16084
16085
|
class: "file-message__download-button",
|
16085
16086
|
href: e.message.url,
|
@@ -16089,14 +16090,14 @@ const v1 = {
|
|
16089
16090
|
}, M[5] || (M[5] = [
|
16090
16091
|
o("span", { class: "pi pi-download" }, null, -1)
|
16091
16092
|
]), 8, O1),
|
16092
|
-
Q(
|
16093
|
-
default:
|
16094
|
-
a.value && e.message.actions ? (r(),
|
16093
|
+
Q(q, null, {
|
16094
|
+
default: $(() => [
|
16095
|
+
a.value && e.message.actions ? (r(), F(S(Ve), {
|
16095
16096
|
key: 0,
|
16096
16097
|
class: "file-message__context-menu",
|
16097
16098
|
actions: e.message.actions,
|
16098
16099
|
onClick: u
|
16099
|
-
}, null, 8, ["actions"])) :
|
16100
|
+
}, null, 8, ["actions"])) : _("", !0)
|
16100
16101
|
]),
|
16101
16102
|
_: 1
|
16102
16103
|
}),
|
@@ -16105,7 +16106,7 @@ const v1 = {
|
|
16105
16106
|
innerHTML: A.value,
|
16106
16107
|
onClick: i
|
16107
16108
|
}, null, 8, U1)
|
16108
|
-
])) :
|
16109
|
+
])) : _("", !0)
|
16109
16110
|
], 32)
|
16110
16111
|
], 42, j1));
|
16111
16112
|
}
|
@@ -16124,7 +16125,7 @@ const v1 = {
|
|
16124
16125
|
}, G1 = ["innerHTML"], Z1 = {
|
16125
16126
|
key: 0,
|
16126
16127
|
class: "image-message__modal-overlay"
|
16127
|
-
}, X1 = { class: "image-message__modal" }, er = ["src", "alt"], fr = /* @__PURE__ */
|
16128
|
+
}, X1 = { class: "image-message__modal" }, er = ["src", "alt"], fr = /* @__PURE__ */ J({
|
16128
16129
|
__name: "ImageMessage",
|
16129
16130
|
props: {
|
16130
16131
|
message: {
|
@@ -16142,22 +16143,22 @@ const v1 = {
|
|
16142
16143
|
},
|
16143
16144
|
{ immediate: !0 }
|
16144
16145
|
);
|
16145
|
-
function u(
|
16146
|
-
|
16146
|
+
function u(h) {
|
16147
|
+
h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
|
16147
16148
|
}
|
16148
16149
|
const g = () => {
|
16149
16150
|
n("action", { messageId: t.message.messageId, type: "views" });
|
16150
16151
|
}, d = () => {
|
16151
|
-
},
|
16152
|
+
}, p = () => {
|
16152
16153
|
A.value = !0, i.value = !0;
|
16153
16154
|
}, m = () => {
|
16154
16155
|
A.value = !1, s.value = !1;
|
16155
|
-
}, y =
|
16156
|
-
function M(
|
16157
|
-
return
|
16156
|
+
}, y = R(() => Je(t.message.status));
|
16157
|
+
function M(h) {
|
16158
|
+
return h.position === "left" ? "image-message__left" : "image-message__right";
|
16158
16159
|
}
|
16159
|
-
return (
|
16160
|
-
class:
|
16160
|
+
return (h, b) => (r(), c("div", {
|
16161
|
+
class: U(["image-message", M(e.message)]),
|
16161
16162
|
messageId: e.message.messageId,
|
16162
16163
|
onMouseleave: m
|
16163
16164
|
}, [
|
@@ -16167,14 +16168,14 @@ const v1 = {
|
|
16167
16168
|
src: e.message.avatar,
|
16168
16169
|
height: "32",
|
16169
16170
|
width: "32"
|
16170
|
-
}, null, 8, Y1)) :
|
16171
|
-
e.message.subText ? (r(), c("p", q1, N(e.message.subText), 1)) :
|
16171
|
+
}, null, 8, Y1)) : _("", !0),
|
16172
|
+
e.message.subText ? (r(), c("p", q1, N(e.message.subText), 1)) : _("", !0),
|
16172
16173
|
o("div", $1, [
|
16173
16174
|
o("div", {
|
16174
16175
|
class: "image-message__preview-button",
|
16175
|
-
onClick:
|
16176
|
-
onMouseenter:
|
16177
|
-
onMouseleave:
|
16176
|
+
onClick: b[0] || (b[0] = (k) => a.value = !0),
|
16177
|
+
onMouseenter: p,
|
16178
|
+
onMouseleave: b[1] || (b[1] = (k) => i.value = !i.value)
|
16178
16179
|
}, [
|
16179
16180
|
o("img", {
|
16180
16181
|
class: "image-message__preview-image",
|
@@ -16182,31 +16183,31 @@ const v1 = {
|
|
16182
16183
|
src: e.message.url,
|
16183
16184
|
alt: e.message.alt
|
16184
16185
|
}, null, 12, H1),
|
16185
|
-
Q(
|
16186
|
-
default:
|
16186
|
+
Q(q, { name: "modal-fade" }, {
|
16187
|
+
default: $(() => [
|
16187
16188
|
i.value ? (r(), c("div", F1, [
|
16188
16189
|
e.message.views ? (r(), c("div", {
|
16189
16190
|
key: 0,
|
16190
16191
|
onClick: Qe(g, ["stop"]),
|
16191
16192
|
class: "image-message__views"
|
16192
16193
|
}, [
|
16193
|
-
|
16194
|
+
b[4] || (b[4] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16194
16195
|
o("p", null, N(e.message.views), 1)
|
16195
|
-
])) :
|
16196
|
+
])) : _("", !0),
|
16196
16197
|
o("span", P1, N(e.message.time), 1),
|
16197
|
-
M(e.message) === "image-message__right" &&
|
16198
|
+
M(e.message) === "image-message__right" && S(Ke).includes(e.message.status) ? (r(), c("div", {
|
16198
16199
|
key: 1,
|
16199
|
-
class:
|
16200
|
+
class: U(["image-message__status", y.value])
|
16200
16201
|
}, [
|
16201
|
-
e.message.status !== "sent" ? (r(), c("span", W1)) :
|
16202
|
-
|
16203
|
-
], 2)) :
|
16204
|
-
])) :
|
16202
|
+
e.message.status !== "sent" ? (r(), c("span", W1)) : _("", !0),
|
16203
|
+
b[5] || (b[5] = o("span", { class: "pi pi-check" }, null, -1))
|
16204
|
+
], 2)) : _("", !0)
|
16205
|
+
])) : _("", !0)
|
16205
16206
|
]),
|
16206
16207
|
_: 1
|
16207
16208
|
}),
|
16208
|
-
Q(
|
16209
|
-
default:
|
16209
|
+
Q(q, { name: "modal-fade" }, {
|
16210
|
+
default: $(() => [
|
16210
16211
|
i.value ? (r(), c("a", {
|
16211
16212
|
key: 0,
|
16212
16213
|
onClick: Qe(() => "//Предотвращаем всплытие события клика", ["stop"]),
|
@@ -16214,33 +16215,33 @@ const v1 = {
|
|
16214
16215
|
href: e.message.url,
|
16215
16216
|
download: "",
|
16216
16217
|
target: "_blank"
|
16217
|
-
},
|
16218
|
+
}, b[6] || (b[6] = [
|
16218
16219
|
o("span", { class: "pi pi-download" }, null, -1)
|
16219
|
-
]), 8, K1)) :
|
16220
|
+
]), 8, K1)) : _("", !0)
|
16220
16221
|
]),
|
16221
16222
|
_: 1
|
16222
16223
|
})
|
16223
16224
|
], 32),
|
16224
|
-
Q(
|
16225
|
-
default:
|
16225
|
+
Q(q, { name: "modal-fade" }, {
|
16226
|
+
default: $(() => [
|
16226
16227
|
A.value && e.message.actions ? (r(), c("button", {
|
16227
16228
|
key: 0,
|
16228
16229
|
class: "image-message__menu-button",
|
16229
|
-
onClick:
|
16230
|
-
},
|
16230
|
+
onClick: b[2] || (b[2] = (k) => s.value = !s.value)
|
16231
|
+
}, b[7] || (b[7] = [
|
16231
16232
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16232
|
-
]))) :
|
16233
|
+
]))) : _("", !0)
|
16233
16234
|
]),
|
16234
16235
|
_: 1
|
16235
16236
|
}),
|
16236
|
-
Q(
|
16237
|
-
default:
|
16238
|
-
s.value && e.message.actions ? (r(),
|
16237
|
+
Q(q, { name: "context-menu" }, {
|
16238
|
+
default: $(() => [
|
16239
|
+
s.value && e.message.actions ? (r(), F(S(Ve), {
|
16239
16240
|
key: 0,
|
16240
16241
|
class: "image-message__context-menu",
|
16241
16242
|
actions: e.message.actions,
|
16242
16243
|
onClick: d
|
16243
|
-
}, null, 8, ["actions"])) :
|
16244
|
+
}, null, 8, ["actions"])) : _("", !0)
|
16244
16245
|
]),
|
16245
16246
|
_: 1
|
16246
16247
|
}),
|
@@ -16249,17 +16250,17 @@ const v1 = {
|
|
16249
16250
|
innerHTML: l.value,
|
16250
16251
|
onClick: u
|
16251
16252
|
}, null, 8, G1)
|
16252
|
-
])) :
|
16253
|
+
])) : _("", !0)
|
16253
16254
|
]),
|
16254
|
-
(r(),
|
16255
|
-
Q(
|
16256
|
-
default:
|
16255
|
+
(r(), F(hf, { to: "body" }, [
|
16256
|
+
Q(q, { name: "modal-fade" }, {
|
16257
|
+
default: $(() => [
|
16257
16258
|
a.value ? (r(), c("div", Z1, [
|
16258
16259
|
o("div", X1, [
|
16259
16260
|
o("button", {
|
16260
16261
|
class: "image-message__modal-close-button",
|
16261
|
-
onClick:
|
16262
|
-
},
|
16262
|
+
onClick: b[3] || (b[3] = (k) => a.value = !1)
|
16263
|
+
}, b[8] || (b[8] = [
|
16263
16264
|
o("span", null, [
|
16264
16265
|
o("i", { class: "pi pi-times" })
|
16265
16266
|
], -1)
|
@@ -16270,7 +16271,7 @@ const v1 = {
|
|
16270
16271
|
alt: e.message.alt
|
16271
16272
|
}, null, 8, er)
|
16272
16273
|
])
|
16273
|
-
])) :
|
16274
|
+
])) : _("", !0)
|
16274
16275
|
]),
|
16275
16276
|
_: 1
|
16276
16277
|
})
|
@@ -16286,7 +16287,7 @@ const v1 = {
|
|
16286
16287
|
}, rr = {
|
16287
16288
|
key: 0,
|
16288
16289
|
class: "pi pi-check"
|
16289
|
-
}, ur = /* @__PURE__ */
|
16290
|
+
}, ur = /* @__PURE__ */ J({
|
16290
16291
|
__name: "TextMessage",
|
16291
16292
|
props: {
|
16292
16293
|
message: {
|
@@ -16311,9 +16312,9 @@ const v1 = {
|
|
16311
16312
|
s.value = !0;
|
16312
16313
|
}, u = () => {
|
16313
16314
|
s.value = !1, a.value = !1;
|
16314
|
-
}, g =
|
16315
|
+
}, g = R(() => Je(t.message.status)), d = (y) => {
|
16315
16316
|
u(), n("action", { messageId: t.message.messageId, type: "menu", ...y });
|
16316
|
-
},
|
16317
|
+
}, p = () => {
|
16317
16318
|
u(), n("action", { messageId: t.message.messageId, type: "views" });
|
16318
16319
|
};
|
16319
16320
|
function m(y) {
|
@@ -16321,7 +16322,7 @@ const v1 = {
|
|
16321
16322
|
}
|
16322
16323
|
return (y, M) => (r(), c("div", nr, [
|
16323
16324
|
o("div", {
|
16324
|
-
class:
|
16325
|
+
class: U(m(e.message)),
|
16325
16326
|
messageId: e.message.messageId,
|
16326
16327
|
onMouseleave: u
|
16327
16328
|
}, [
|
@@ -16332,8 +16333,8 @@ const v1 = {
|
|
16332
16333
|
height: "32",
|
16333
16334
|
width: "32",
|
16334
16335
|
style: K({ gridRow: e.message.subText ? "2" : "1" })
|
16335
|
-
}, null, 12, sr)) :
|
16336
|
-
e.message.subText ? (r(), c("p", Ar, N(e.message.subText), 1)) :
|
16336
|
+
}, null, 12, sr)) : _("", !0),
|
16337
|
+
e.message.subText ? (r(), c("p", Ar, N(e.message.subText), 1)) : _("", !0),
|
16337
16338
|
o("div", {
|
16338
16339
|
class: "text-message__content",
|
16339
16340
|
onMouseenter: l
|
@@ -16347,35 +16348,35 @@ const v1 = {
|
|
16347
16348
|
e.message.views ? (r(), c("div", {
|
16348
16349
|
key: 0,
|
16349
16350
|
class: "text-message__views",
|
16350
|
-
onClick:
|
16351
|
+
onClick: p
|
16351
16352
|
}, [
|
16352
16353
|
M[1] || (M[1] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16353
16354
|
o("p", null, N(e.message.views), 1)
|
16354
|
-
])) :
|
16355
|
-
e.message.time ? (r(), c("span", lr, N(e.message.time), 1)) :
|
16356
|
-
m(e.message) === "text-message__right" &&
|
16355
|
+
])) : _("", !0),
|
16356
|
+
e.message.time ? (r(), c("span", lr, N(e.message.time), 1)) : _("", !0),
|
16357
|
+
m(e.message) === "text-message__right" && S(Ke).includes(e.message.status) ? (r(), c("div", {
|
16357
16358
|
key: 2,
|
16358
|
-
class:
|
16359
|
+
class: U(["text-message__status", g.value])
|
16359
16360
|
}, [
|
16360
|
-
e.message.status !== "sent" ? (r(), c("span", rr)) :
|
16361
|
+
e.message.status !== "sent" ? (r(), c("span", rr)) : _("", !0),
|
16361
16362
|
M[2] || (M[2] = o("span", { class: "pi pi-check" }, null, -1))
|
16362
|
-
], 2)) :
|
16363
|
+
], 2)) : _("", !0)
|
16363
16364
|
]),
|
16364
16365
|
s.value && e.message.actions ? (r(), c("button", {
|
16365
16366
|
key: 0,
|
16366
16367
|
class: "text-message__menu-button",
|
16367
|
-
onClick: M[0] || (M[0] = (
|
16368
|
+
onClick: M[0] || (M[0] = (h) => a.value = !a.value)
|
16368
16369
|
}, M[3] || (M[3] = [
|
16369
16370
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16370
|
-
]))) :
|
16371
|
-
Q(
|
16372
|
-
default:
|
16373
|
-
a.value && e.message.actions ? (r(),
|
16371
|
+
]))) : _("", !0),
|
16372
|
+
Q(q, null, {
|
16373
|
+
default: $(() => [
|
16374
|
+
a.value && e.message.actions ? (r(), F(S(Ve), {
|
16374
16375
|
key: 0,
|
16375
16376
|
class: "text-message__context-menu",
|
16376
16377
|
actions: e.message.actions,
|
16377
16378
|
onClick: d
|
16378
|
-
}, null, 8, ["actions"])) :
|
16379
|
+
}, null, 8, ["actions"])) : _("", !0)
|
16379
16380
|
]),
|
16380
16381
|
_: 1
|
16381
16382
|
})
|
@@ -16398,7 +16399,7 @@ const v1 = {
|
|
16398
16399
|
}, kr = { class: "audio-message__modal" }, Nr = {
|
16399
16400
|
key: 2,
|
16400
16401
|
class: "audio-message__text-container"
|
16401
|
-
}, Dr = ["innerHTML"], jr = /* @__PURE__ */
|
16402
|
+
}, Dr = ["innerHTML"], jr = /* @__PURE__ */ J({
|
16402
16403
|
__name: "AudioMessage",
|
16403
16404
|
props: {
|
16404
16405
|
message: {
|
@@ -16416,8 +16417,8 @@ const v1 = {
|
|
16416
16417
|
},
|
16417
16418
|
{ immediate: !0 }
|
16418
16419
|
);
|
16419
|
-
function
|
16420
|
-
|
16420
|
+
function p(x) {
|
16421
|
+
x.preventDefault(), x.target.href && window.open(x.target.href, "_blank");
|
16421
16422
|
}
|
16422
16423
|
const m = () => {
|
16423
16424
|
u.value = !0;
|
@@ -16425,17 +16426,17 @@ const v1 = {
|
|
16425
16426
|
u.value = !1, l.value = !1;
|
16426
16427
|
}, M = () => {
|
16427
16428
|
n("action", { messageId: t.message.messageId, type: "views" });
|
16428
|
-
},
|
16429
|
-
},
|
16429
|
+
}, h = () => {
|
16430
|
+
}, b = R(() => Je(t.message.status));
|
16430
16431
|
function k() {
|
16431
16432
|
a.value && (s.value ? a.value.pause() : a.value.play(), s.value = !s.value);
|
16432
16433
|
}
|
16433
|
-
const
|
16434
|
-
const
|
16435
|
-
return `${
|
16436
|
-
}, w =
|
16437
|
-
function
|
16438
|
-
return
|
16434
|
+
const C = (x) => {
|
16435
|
+
const E = Math.floor(x / 60), D = Math.floor(x % 60);
|
16436
|
+
return `${E.toString().padStart(2, "0")}:${D.toString().padStart(2, "0")}`;
|
16437
|
+
}, w = R(() => a.value ? C(i.value) : "0:00"), j = R(() => a.value ? C(A.value) : "0:00"), L = R(() => A.value > 0 ? i.value / A.value * 100 : 0);
|
16438
|
+
function V(x) {
|
16439
|
+
return x.position === "left" ? "audio-message__left" : "audio-message__right";
|
16439
16440
|
}
|
16440
16441
|
return we(() => {
|
16441
16442
|
a.value != null && (a.value.addEventListener("loadedmetadata", () => {
|
@@ -16443,10 +16444,10 @@ const v1 = {
|
|
16443
16444
|
}), a.value.addEventListener("timeupdate", () => {
|
16444
16445
|
i.value = a.value != null ? a.value.currentTime : 0;
|
16445
16446
|
}));
|
16446
|
-
}), (
|
16447
|
-
var
|
16447
|
+
}), (x, E) => {
|
16448
|
+
var D;
|
16448
16449
|
return r(), c("div", {
|
16449
|
-
class:
|
16450
|
+
class: U(["audio-message", V(e.message)]),
|
16450
16451
|
messageId: e.message.messageId,
|
16451
16452
|
onMouseleave: y
|
16452
16453
|
}, [
|
@@ -16457,8 +16458,8 @@ const v1 = {
|
|
16457
16458
|
height: "32",
|
16458
16459
|
width: "32",
|
16459
16460
|
style: K({ gridRow: e.message.subText ? "2" : "1" })
|
16460
|
-
}, null, 12, gr)) :
|
16461
|
-
e.message.subText ? (r(), c("p", mr, N(e.message.subText), 1)) :
|
16461
|
+
}, null, 12, gr)) : _("", !0),
|
16462
|
+
e.message.subText ? (r(), c("p", mr, N(e.message.subText), 1)) : _("", !0),
|
16462
16463
|
o("div", {
|
16463
16464
|
class: "audio-message__content",
|
16464
16465
|
onMouseenter: m
|
@@ -16471,7 +16472,7 @@ const v1 = {
|
|
16471
16472
|
ce(o("button", {
|
16472
16473
|
class: "audio-message__play",
|
16473
16474
|
onClick: k
|
16474
|
-
},
|
16475
|
+
}, E[3] || (E[3] = [
|
16475
16476
|
o("span", { class: "pi pi-play" }, null, -1)
|
16476
16477
|
]), 512), [
|
16477
16478
|
[Lf, !s.value]
|
@@ -16479,7 +16480,7 @@ const v1 = {
|
|
16479
16480
|
ce(o("button", {
|
16480
16481
|
class: "audio-message__pause",
|
16481
16482
|
onClick: k
|
16482
|
-
},
|
16483
|
+
}, E[4] || (E[4] = [
|
16483
16484
|
o("span", { class: "pi pi-pause" }, null, -1)
|
16484
16485
|
]), 512), [
|
16485
16486
|
[Lf, s.value]
|
@@ -16487,7 +16488,7 @@ const v1 = {
|
|
16487
16488
|
o("div", hr, [
|
16488
16489
|
o("div", {
|
16489
16490
|
class: "audio-message__progress-bar",
|
16490
|
-
style: K({ width:
|
16491
|
+
style: K({ width: L.value + "%" })
|
16491
16492
|
}, null, 4)
|
16492
16493
|
]),
|
16493
16494
|
o("p", yr, N(`${w.value} / ${j.value}`), 1),
|
@@ -16497,68 +16498,68 @@ const v1 = {
|
|
16497
16498
|
onClick: M,
|
16498
16499
|
class: "audio-message__views"
|
16499
16500
|
}, [
|
16500
|
-
|
16501
|
+
E[5] || (E[5] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16501
16502
|
o("p", null, N(e.message.views), 1)
|
16502
|
-
])) :
|
16503
|
+
])) : _("", !0),
|
16503
16504
|
o("span", br, N(e.message.time), 1),
|
16504
|
-
|
16505
|
+
V(e.message) === "audio-message__right" && S(Ke).includes(e.message.status) ? (r(), c("div", {
|
16505
16506
|
key: 1,
|
16506
|
-
class:
|
16507
|
+
class: U(["audio-message__status", b.value])
|
16507
16508
|
}, [
|
16508
|
-
e.message.status !== "sent" ? (r(), c("span", vr)) :
|
16509
|
-
|
16510
|
-
], 2)) :
|
16509
|
+
e.message.status !== "sent" ? (r(), c("span", vr)) : _("", !0),
|
16510
|
+
E[6] || (E[6] = o("span", { class: "pi pi-check" }, null, -1))
|
16511
|
+
], 2)) : _("", !0)
|
16511
16512
|
]),
|
16512
16513
|
u.value && e.message.actions ? (r(), c("button", {
|
16513
16514
|
key: 0,
|
16514
16515
|
class: "audio-message__menu-button",
|
16515
|
-
onClick:
|
16516
|
-
},
|
16516
|
+
onClick: E[0] || (E[0] = (T) => l.value = !l.value)
|
16517
|
+
}, E[7] || (E[7] = [
|
16517
16518
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16518
|
-
]))) :
|
16519
|
+
]))) : _("", !0),
|
16519
16520
|
o("a", {
|
16520
16521
|
class: "audio-message__download-button",
|
16521
16522
|
onClick: Qe(() => "//Предотвращаем всплытие события клика", ["stop"]),
|
16522
16523
|
href: e.message.url,
|
16523
16524
|
download: "",
|
16524
16525
|
target: "_blank"
|
16525
|
-
},
|
16526
|
+
}, E[8] || (E[8] = [
|
16526
16527
|
o("span", { class: "pi pi-download" }, null, -1)
|
16527
16528
|
]), 8, _r),
|
16528
|
-
Q(
|
16529
|
-
default:
|
16530
|
-
l.value && e.message.actions ? (r(),
|
16529
|
+
Q(q, null, {
|
16530
|
+
default: $(() => [
|
16531
|
+
l.value && e.message.actions ? (r(), F(S(Ve), {
|
16531
16532
|
key: 0,
|
16532
16533
|
class: "audio-message__context-menu",
|
16533
16534
|
actions: e.message.actions,
|
16534
|
-
onClick:
|
16535
|
-
}, null, 8, ["actions"])) :
|
16535
|
+
onClick: h
|
16536
|
+
}, null, 8, ["actions"])) : _("", !0)
|
16536
16537
|
]),
|
16537
16538
|
_: 1
|
16538
16539
|
}),
|
16539
|
-
(
|
16540
|
+
(D = e.message.transcript) != null && D.text ? (r(), c("div", Ir, [
|
16540
16541
|
o("p", {
|
16541
|
-
onClick:
|
16542
|
+
onClick: E[1] || (E[1] = (T) => d.value = !d.value)
|
16542
16543
|
}, N(e.message.transcript.text), 1)
|
16543
|
-
])) :
|
16544
|
-
(r(),
|
16545
|
-
Q(
|
16546
|
-
default:
|
16547
|
-
var
|
16544
|
+
])) : _("", !0),
|
16545
|
+
(r(), F(hf, { to: "body" }, [
|
16546
|
+
Q(q, { name: "modal-fade" }, {
|
16547
|
+
default: $(() => {
|
16548
|
+
var T;
|
16548
16549
|
return [
|
16549
16550
|
d.value ? (r(), c("div", wr, [
|
16550
16551
|
o("div", kr, [
|
16551
16552
|
o("button", {
|
16552
16553
|
class: "audio-message__modal-close-button",
|
16553
|
-
onClick:
|
16554
|
-
},
|
16554
|
+
onClick: E[2] || (E[2] = (z) => d.value = !1)
|
16555
|
+
}, E[9] || (E[9] = [
|
16555
16556
|
o("span", null, [
|
16556
16557
|
o("i", { class: "pi pi-times" })
|
16557
16558
|
], -1)
|
16558
16559
|
])),
|
16559
|
-
o("p", null, N((
|
16560
|
+
o("p", null, N((T = e.message.transcript) == null ? void 0 : T.text), 1)
|
16560
16561
|
])
|
16561
|
-
])) :
|
16562
|
+
])) : _("", !0)
|
16562
16563
|
];
|
16563
16564
|
}),
|
16564
16565
|
_: 1
|
@@ -16567,14 +16568,14 @@ const v1 = {
|
|
16567
16568
|
e.message.text ? (r(), c("div", Nr, [
|
16568
16569
|
o("p", {
|
16569
16570
|
innerHTML: g.value,
|
16570
|
-
onClick:
|
16571
|
+
onClick: p
|
16571
16572
|
}, null, 8, Dr)
|
16572
|
-
])) :
|
16573
|
+
])) : _("", !0)
|
16573
16574
|
], 32)
|
16574
16575
|
], 42, dr);
|
16575
16576
|
};
|
16576
16577
|
}
|
16577
|
-
}), Er = /* @__PURE__ */ B(jr, [["__scopeId", "data-v-1e745361"]]), Tr = { class: "date-message" }, Vr = { class: "date-message__container" }, xr = { class: "date-message__text" }, Sr = /* @__PURE__ */
|
16578
|
+
}), Er = /* @__PURE__ */ B(jr, [["__scopeId", "data-v-1e745361"]]), Tr = { class: "date-message" }, Vr = { class: "date-message__container" }, xr = { class: "date-message__text" }, Sr = /* @__PURE__ */ J({
|
16578
16579
|
__name: "DateMessage",
|
16579
16580
|
props: {
|
16580
16581
|
message: {
|
@@ -16606,7 +16607,7 @@ const v1 = {
|
|
16606
16607
|
}, Hr = ["innerHTML"], Fr = {
|
16607
16608
|
key: 0,
|
16608
16609
|
class: "video-message__modal-overlay"
|
16609
|
-
}, Pr = { class: "video-message__modal" }, Wr = ["src", "alt"], Kr = /* @__PURE__ */
|
16610
|
+
}, Pr = { class: "video-message__modal" }, Wr = ["src", "alt"], Kr = /* @__PURE__ */ J({
|
16610
16611
|
__name: "VideoMessage",
|
16611
16612
|
props: {
|
16612
16613
|
message: {
|
@@ -16617,8 +16618,8 @@ const v1 = {
|
|
16617
16618
|
emits: ["action"],
|
16618
16619
|
setup(e, { emit: f }) {
|
16619
16620
|
const t = e, n = f;
|
16620
|
-
function a(
|
16621
|
-
return
|
16621
|
+
function a(C) {
|
16622
|
+
return C.position === "left" ? "video-message__left" : "video-message__right";
|
16622
16623
|
}
|
16623
16624
|
const s = I(), A = I(), i = I(!1), l = I(!1), u = I(!1), g = I(!1), d = I("");
|
16624
16625
|
le(
|
@@ -16628,25 +16629,25 @@ const v1 = {
|
|
16628
16629
|
},
|
16629
16630
|
{ immediate: !0 }
|
16630
16631
|
);
|
16631
|
-
function
|
16632
|
-
|
16632
|
+
function p(C) {
|
16633
|
+
C.preventDefault(), C.target.href && window.open(C.target.href, "_blank");
|
16633
16634
|
}
|
16634
16635
|
const m = () => {
|
16635
16636
|
n("action", { messageId: t.message.messageId, type: "views" });
|
16636
16637
|
}, y = () => {
|
16637
16638
|
}, M = () => {
|
16638
16639
|
u.value = !0, g.value = !0;
|
16639
|
-
},
|
16640
|
+
}, h = () => {
|
16640
16641
|
u.value = !1, l.value = !1;
|
16641
|
-
},
|
16642
|
+
}, b = R(() => Je(t.message.status)), k = () => {
|
16642
16643
|
A.value && (A.value.currentTime = 0, A.value.play());
|
16643
16644
|
};
|
16644
|
-
return le([s, A], ([
|
16645
|
-
|
16646
|
-
}), (
|
16647
|
-
class:
|
16645
|
+
return le([s, A], ([C, w]) => {
|
16646
|
+
C ? w && (w.pause(), w.currentTime = 0) : w && (w.play(), w.currentTime = 0);
|
16647
|
+
}), (C, w) => (r(), c("div", {
|
16648
|
+
class: U(["video-message", a(e.message)]),
|
16648
16649
|
messageId: e.message.messageId,
|
16649
|
-
onMouseleave:
|
16650
|
+
onMouseleave: h
|
16650
16651
|
}, [
|
16651
16652
|
e.message.avatar ? (r(), c("img", {
|
16652
16653
|
key: 0,
|
@@ -16654,8 +16655,8 @@ const v1 = {
|
|
16654
16655
|
src: e.message.avatar,
|
16655
16656
|
height: "32",
|
16656
16657
|
width: "32"
|
16657
|
-
}, null, 8, Or)) :
|
16658
|
-
e.message.subText ? (r(), c("p", Lr, N(e.message.subText), 1)) :
|
16658
|
+
}, null, 8, Or)) : _("", !0),
|
16659
|
+
e.message.subText ? (r(), c("p", Lr, N(e.message.subText), 1)) : _("", !0),
|
16659
16660
|
o("div", Ur, [
|
16660
16661
|
o("div", {
|
16661
16662
|
class: "video-message__preview-button",
|
@@ -16673,8 +16674,8 @@ const v1 = {
|
|
16673
16674
|
muted: !0,
|
16674
16675
|
autoplay: ""
|
16675
16676
|
}, null, 44, Br),
|
16676
|
-
Q(
|
16677
|
-
default:
|
16677
|
+
Q(q, { name: "modal-fade" }, {
|
16678
|
+
default: $(() => [
|
16678
16679
|
g.value ? (r(), c("div", Qr, [
|
16679
16680
|
e.message.views ? (r(), c("div", {
|
16680
16681
|
key: 0,
|
@@ -16683,21 +16684,21 @@ const v1 = {
|
|
16683
16684
|
}, [
|
16684
16685
|
w[4] || (w[4] = o("span", { class: "pi pi-eye" }, null, -1)),
|
16685
16686
|
o("p", null, N(e.message.views), 1)
|
16686
|
-
])) :
|
16687
|
+
])) : _("", !0),
|
16687
16688
|
o("span", Rr, N(e.message.time), 1),
|
16688
|
-
a(e.message) === "video-message__right" &&
|
16689
|
+
a(e.message) === "video-message__right" && S(Ke).includes(e.message.status) ? (r(), c("div", {
|
16689
16690
|
key: 1,
|
16690
|
-
class:
|
16691
|
+
class: U(["video-message__status", b.value])
|
16691
16692
|
}, [
|
16692
|
-
e.message.status !== "sent" ? (r(), c("span", Yr)) :
|
16693
|
+
e.message.status !== "sent" ? (r(), c("span", Yr)) : _("", !0),
|
16693
16694
|
w[5] || (w[5] = o("span", { class: "pi pi-check" }, null, -1))
|
16694
|
-
], 2)) :
|
16695
|
-
])) :
|
16695
|
+
], 2)) : _("", !0)
|
16696
|
+
])) : _("", !0)
|
16696
16697
|
]),
|
16697
16698
|
_: 1
|
16698
16699
|
}),
|
16699
|
-
Q(
|
16700
|
-
default:
|
16700
|
+
Q(q, { name: "modal-fade" }, {
|
16701
|
+
default: $(() => [
|
16701
16702
|
g.value ? (r(), c("a", {
|
16702
16703
|
key: 0,
|
16703
16704
|
onClick: Qe(() => "//Предотвращаем всплытие события клика", ["stop"]),
|
@@ -16707,44 +16708,44 @@ const v1 = {
|
|
16707
16708
|
target: "_blank"
|
16708
16709
|
}, w[6] || (w[6] = [
|
16709
16710
|
o("span", { class: "pi pi-download" }, null, -1)
|
16710
|
-
]), 8, qr)) :
|
16711
|
+
]), 8, qr)) : _("", !0)
|
16711
16712
|
]),
|
16712
16713
|
_: 1
|
16713
16714
|
})
|
16714
16715
|
], 32),
|
16715
|
-
Q(
|
16716
|
-
default:
|
16716
|
+
Q(q, { name: "modal-fade" }, {
|
16717
|
+
default: $(() => [
|
16717
16718
|
u.value && e.message.actions ? (r(), c("button", {
|
16718
16719
|
key: 0,
|
16719
16720
|
class: "video-message__menu-button",
|
16720
16721
|
onClick: w[2] || (w[2] = (j) => l.value = !l.value)
|
16721
16722
|
}, w[7] || (w[7] = [
|
16722
16723
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
16723
|
-
]))) :
|
16724
|
+
]))) : _("", !0)
|
16724
16725
|
]),
|
16725
16726
|
_: 1
|
16726
16727
|
}),
|
16727
|
-
Q(
|
16728
|
-
default:
|
16729
|
-
l.value && e.message.actions ? (r(),
|
16728
|
+
Q(q, { name: "context-menu" }, {
|
16729
|
+
default: $(() => [
|
16730
|
+
l.value && e.message.actions ? (r(), F(S(Ve), {
|
16730
16731
|
key: 0,
|
16731
16732
|
class: "video-message__context-menu",
|
16732
16733
|
actions: e.message.actions,
|
16733
16734
|
onClick: y
|
16734
|
-
}, null, 8, ["actions"])) :
|
16735
|
+
}, null, 8, ["actions"])) : _("", !0)
|
16735
16736
|
]),
|
16736
16737
|
_: 1
|
16737
16738
|
}),
|
16738
16739
|
e.message.text ? (r(), c("div", $r, [
|
16739
16740
|
o("p", {
|
16740
16741
|
innerHTML: d.value,
|
16741
|
-
onClick:
|
16742
|
+
onClick: p
|
16742
16743
|
}, null, 8, Hr)
|
16743
|
-
])) :
|
16744
|
+
])) : _("", !0)
|
16744
16745
|
]),
|
16745
|
-
(r(),
|
16746
|
-
Q(
|
16747
|
-
default:
|
16746
|
+
(r(), F(hf, { to: "body" }, [
|
16747
|
+
Q(q, { name: "modal-fade" }, {
|
16748
|
+
default: $(() => [
|
16748
16749
|
i.value ? (r(), c("div", Fr, [
|
16749
16750
|
o("div", Pr, [
|
16750
16751
|
o("button", {
|
@@ -16765,7 +16766,7 @@ const v1 = {
|
|
16765
16766
|
autoplay: ""
|
16766
16767
|
}, null, 8, Wr)
|
16767
16768
|
])
|
16768
|
-
])) :
|
16769
|
+
])) : _("", !0)
|
16769
16770
|
]),
|
16770
16771
|
_: 1
|
16771
16772
|
})
|
@@ -16793,7 +16794,7 @@ const v1 = {
|
|
16793
16794
|
}, iu = { class: "call-message__info-container" }, ou = { class: "call-message__time" }, lu = {
|
16794
16795
|
key: 0,
|
16795
16796
|
class: "call-message__modal-overlay"
|
16796
|
-
}, ru = { class: "call-message__modal" }, uu = /* @__PURE__ */
|
16797
|
+
}, ru = { class: "call-message__modal" }, uu = /* @__PURE__ */ J({
|
16797
16798
|
__name: "CallMessage",
|
16798
16799
|
props: {
|
16799
16800
|
message: {
|
@@ -16821,7 +16822,7 @@ const v1 = {
|
|
16821
16822
|
var A;
|
16822
16823
|
return r(), c("div", Gr, [
|
16823
16824
|
o("div", {
|
16824
|
-
class:
|
16825
|
+
class: U(n(e.message, t.message)),
|
16825
16826
|
messageId: e.message.messageId
|
16826
16827
|
}, [
|
16827
16828
|
e.message.avatar ? (r(), c("img", {
|
@@ -16831,8 +16832,8 @@ const v1 = {
|
|
16831
16832
|
height: "32",
|
16832
16833
|
width: "32",
|
16833
16834
|
style: K({ gridRow: e.message.subText ? "2" : "1" })
|
16834
|
-
}, null, 12, Xr)) :
|
16835
|
-
e.message.subText ? (r(), c("p", eu, N(e.message.subText), 1)) :
|
16835
|
+
}, null, 12, Xr)) : _("", !0),
|
16836
|
+
e.message.subText ? (r(), c("p", eu, N(e.message.subText), 1)) : _("", !0),
|
16836
16837
|
o("div", fu, [
|
16837
16838
|
o("span", {
|
16838
16839
|
class: "call-message__icon pi pi-phone",
|
@@ -16849,10 +16850,10 @@ const v1 = {
|
|
16849
16850
|
onClick: s[0] || (s[0] = (i) => f.value = !f.value)
|
16850
16851
|
}, s[2] || (s[2] = [
|
16851
16852
|
o("span", { class: "pi pi-arrow-up-right" }, null, -1)
|
16852
|
-
]))) :
|
16853
|
-
(r(),
|
16854
|
-
Q(
|
16855
|
-
default:
|
16853
|
+
]))) : _("", !0),
|
16854
|
+
(r(), F(hf, { to: "body" }, [
|
16855
|
+
Q(q, { name: "modal-fade" }, {
|
16856
|
+
default: $(() => {
|
16856
16857
|
var i;
|
16857
16858
|
return [
|
16858
16859
|
f.value ? (r(), c("div", lu, [
|
@@ -16865,14 +16866,14 @@ const v1 = {
|
|
16865
16866
|
o("i", { class: "pi pi-times" })
|
16866
16867
|
], -1)
|
16867
16868
|
])),
|
16868
|
-
(r(!0), c(
|
16869
|
-
class:
|
16869
|
+
(r(!0), c(H, null, Z((i = e.message.transcript) == null ? void 0 : i.dialog, (l, u) => (r(), c("div", {
|
16870
|
+
class: U(n(l, t.textDialog))
|
16870
16871
|
}, [
|
16871
16872
|
o("p", null, N(l.text), 1),
|
16872
16873
|
o("span", null, N(l.time), 1)
|
16873
16874
|
], 2))), 256))
|
16874
16875
|
])
|
16875
|
-
])) :
|
16876
|
+
])) : _("", !0)
|
16876
16877
|
];
|
16877
16878
|
}),
|
16878
16879
|
_: 1
|
@@ -16883,7 +16884,7 @@ const v1 = {
|
|
16883
16884
|
]);
|
16884
16885
|
};
|
16885
16886
|
}
|
16886
|
-
}), cu = /* @__PURE__ */ B(uu, [["__scopeId", "data-v-8307ae2a"]]), du = { class: "system-message" }, gu = { class: "system-message__container" }, mu = { class: "system-message__text" }, pu = /* @__PURE__ */
|
16887
|
+
}), cu = /* @__PURE__ */ B(uu, [["__scopeId", "data-v-8307ae2a"]]), du = { class: "system-message" }, gu = { class: "system-message__container" }, mu = { class: "system-message__text" }, pu = /* @__PURE__ */ J({
|
16887
16888
|
__name: "SystemMessage",
|
16888
16889
|
props: {
|
16889
16890
|
message: {
|
@@ -16901,7 +16902,7 @@ const v1 = {
|
|
16901
16902
|
}), hu = /* @__PURE__ */ B(pu, [["__scopeId", "data-v-d0876c1e"]]), yu = { class: "typing-message" }, Mu = { class: "typing-message__container" }, bu = ["src"], vu = {
|
16902
16903
|
key: 1,
|
16903
16904
|
class: "typing-message__subtext"
|
16904
|
-
}, _u = /* @__PURE__ */
|
16905
|
+
}, _u = /* @__PURE__ */ J({
|
16905
16906
|
__name: "TypingMessage",
|
16906
16907
|
props: {
|
16907
16908
|
message: {
|
@@ -16919,8 +16920,8 @@ const v1 = {
|
|
16919
16920
|
height: "32",
|
16920
16921
|
width: "32",
|
16921
16922
|
style: K({ gridRow: e.message.subText ? "2" : "1" })
|
16922
|
-
}, null, 12, bu)) :
|
16923
|
-
e.message.subText ? (r(), c("p", vu, N(e.message.subText), 1)) :
|
16923
|
+
}, null, 12, bu)) : _("", !0),
|
16924
|
+
e.message.subText ? (r(), c("p", vu, N(e.message.subText), 1)) : _("", !0),
|
16924
16925
|
t[0] || (t[0] = o("div", { class: "typing-message__loader-container" }, [
|
16925
16926
|
o("div", { class: "typing-message__loader" })
|
16926
16927
|
], -1))
|
@@ -16942,12 +16943,12 @@ const v1 = {
|
|
16942
16943
|
const t = f, n = (s) => {
|
16943
16944
|
t("submit", s);
|
16944
16945
|
}, a = I(null);
|
16945
|
-
return (s, A) => (r(),
|
16946
|
-
default:
|
16946
|
+
return (s, A) => (r(), F(q, { name: "modal-fade" }, {
|
16947
|
+
default: $(() => [
|
16947
16948
|
o("div", Iu, [
|
16948
16949
|
o("div", wu, [
|
16949
16950
|
o("div", ku, [
|
16950
|
-
|
16951
|
+
ee(s.$slots, "default", {}, void 0, !0)
|
16951
16952
|
]),
|
16952
16953
|
o("div", Nu, [
|
16953
16954
|
o("button", {
|
@@ -16981,7 +16982,7 @@ function on({ component: e, attrs: f }) {
|
|
16981
16982
|
}, i = (g) => {
|
16982
16983
|
const d = Object.keys(g)[0];
|
16983
16984
|
a.value[d] = g[d];
|
16984
|
-
}, l =
|
16985
|
+
}, l = J({
|
16985
16986
|
render() {
|
16986
16987
|
return yn(
|
16987
16988
|
ju,
|
@@ -17007,7 +17008,7 @@ function on({ component: e, attrs: f }) {
|
|
17007
17008
|
const pc = async (e, f) => {
|
17008
17009
|
const t = await on({
|
17009
17010
|
//в component должен быть встроен emit change(key: value)
|
17010
|
-
component: import("./SelectUser2-
|
17011
|
+
component: import("./SelectUser2-KM08_gx9.js"),
|
17011
17012
|
attrs: {
|
17012
17013
|
title: e,
|
17013
17014
|
users: f
|
@@ -17038,14 +17039,14 @@ const pc = async (e, f) => {
|
|
17038
17039
|
setup(e) {
|
17039
17040
|
const f = Rt();
|
17040
17041
|
return Yt("chatAppId", f), (t, n) => (r(), c("div", {
|
17041
|
-
|
17042
|
-
|
17042
|
+
id: S(f),
|
17043
|
+
class: "base"
|
17043
17044
|
}, [
|
17044
17045
|
o("div", {
|
17045
17046
|
class: "base__container",
|
17046
17047
|
style: K({ height: e.height, width: e.width })
|
17047
17048
|
}, [
|
17048
|
-
|
17049
|
+
ee(t.$slots, "default")
|
17049
17050
|
], 4)
|
17050
17051
|
], 8, Eu));
|
17051
17052
|
}
|
@@ -17073,10 +17074,10 @@ const pc = async (e, f) => {
|
|
17073
17074
|
Yt("chatAppId", g);
|
17074
17075
|
const d = (y) => {
|
17075
17076
|
A.value = !0, i.value = y.clientX - a.value.offsetLeft, l.value = y.clientY - a.value.offsetTop;
|
17076
|
-
},
|
17077
|
+
}, p = () => A.value = !1, m = (y) => {
|
17077
17078
|
if (A.value) {
|
17078
|
-
const M = y.clientX - i.value,
|
17079
|
-
n.value.x = M, n.value.y =
|
17079
|
+
const M = y.clientX - i.value, h = y.clientY - l.value;
|
17080
|
+
n.value.x = M, n.value.y = h;
|
17080
17081
|
}
|
17081
17082
|
};
|
17082
17083
|
return we(() => {
|
@@ -17096,10 +17097,10 @@ const pc = async (e, f) => {
|
|
17096
17097
|
);
|
17097
17098
|
}), u.value = a.value.offsetHeight - s.value.offsetHeight;
|
17098
17099
|
}), (y, M) => (r(), c("div", {
|
17100
|
+
id: S(g),
|
17099
17101
|
ref_key: "element",
|
17100
17102
|
ref: a,
|
17101
17103
|
class: "float-window",
|
17102
|
-
id: x(g),
|
17103
17104
|
style: K({
|
17104
17105
|
left: n.value.x + "px",
|
17105
17106
|
top: n.value.y + "px",
|
@@ -17116,19 +17117,19 @@ const pc = async (e, f) => {
|
|
17116
17117
|
class: "float-window__controls",
|
17117
17118
|
style: K({ backgroundColor: t.colorTitle ? t.colorTitle : "" }),
|
17118
17119
|
onMousedown: d,
|
17119
|
-
onMouseup:
|
17120
|
-
onMouseleave:
|
17120
|
+
onMouseup: p,
|
17121
|
+
onMouseleave: p
|
17121
17122
|
}, [
|
17122
17123
|
t.avatar ? (r(), c("img", {
|
17123
17124
|
key: 0,
|
17124
17125
|
class: "float-window__avatar",
|
17125
17126
|
src: t.avatar,
|
17126
17127
|
alt: t.title
|
17127
|
-
}, null, 8, xu)) :
|
17128
|
+
}, null, 8, xu)) : _("", !0),
|
17128
17129
|
o("p", Su, N(t.title), 1),
|
17129
17130
|
o("button", {
|
17130
17131
|
class: "float-window__close-button",
|
17131
|
-
onClick: M[0] || (M[0] = (
|
17132
|
+
onClick: M[0] || (M[0] = (h) => y.$emit("close-window"))
|
17132
17133
|
}, M[1] || (M[1] = [
|
17133
17134
|
o("span", { class: "pi pi-times" }, null, -1)
|
17134
17135
|
]))
|
@@ -17137,19 +17138,19 @@ const pc = async (e, f) => {
|
|
17137
17138
|
class: "float-window__content",
|
17138
17139
|
style: K({ height: u.value + "px" })
|
17139
17140
|
}, [
|
17140
|
-
|
17141
|
+
ee(y.$slots, "default", {}, void 0, !0)
|
17141
17142
|
], 4)
|
17142
17143
|
])
|
17143
17144
|
], 12, Tu));
|
17144
17145
|
}
|
17145
|
-
}, bc = /* @__PURE__ */ B(Cu, [["__scopeId", "data-v-
|
17146
|
+
}, bc = /* @__PURE__ */ B(Cu, [["__scopeId", "data-v-b0994783"]]), zu = {}, Ou = { class: "base-layout__container" }, Lu = { class: "base-layout__first-col" }, Uu = { class: "base-layout__second-col" };
|
17146
17147
|
function Bu(e, f) {
|
17147
17148
|
return r(), c("div", Ou, [
|
17148
17149
|
o("div", Lu, [
|
17149
|
-
|
17150
|
+
ee(e.$slots, "first-col", {}, void 0, !0)
|
17150
17151
|
]),
|
17151
17152
|
o("div", Uu, [
|
17152
|
-
|
17153
|
+
ee(e.$slots, "second-col", {}, void 0, !0)
|
17153
17154
|
])
|
17154
17155
|
]);
|
17155
17156
|
}
|
@@ -17172,20 +17173,20 @@ const vc = /* @__PURE__ */ B(zu, [["render", Bu], ["__scopeId", "data-v-a5df3fcf
|
|
17172
17173
|
f.value && (f.value.style.width = "350px");
|
17173
17174
|
}), (u, g) => (r(), c("div", Qu, [
|
17174
17175
|
o("div", Ru, [
|
17175
|
-
|
17176
|
+
ee(u.$slots, "first-col", {}, void 0, !0)
|
17176
17177
|
]),
|
17177
17178
|
o("div", {
|
17178
17179
|
ref_key: "resizableDiv",
|
17179
17180
|
ref: f,
|
17180
17181
|
class: "extend-layout__second-col resizable-div",
|
17181
|
-
style: K({ userSelect:
|
17182
|
+
style: K({ userSelect: S(t) ? "none" : "auto" }),
|
17182
17183
|
onMousedown: A,
|
17183
17184
|
onMouseup: l
|
17184
17185
|
}, [
|
17185
|
-
|
17186
|
+
ee(u.$slots, "second-col", {}, void 0, !0)
|
17186
17187
|
], 36),
|
17187
17188
|
o("div", Yu, [
|
17188
|
-
|
17189
|
+
ee(u.$slots, "third-col", {}, void 0, !0)
|
17189
17190
|
])
|
17190
17191
|
]));
|
17191
17192
|
}
|
@@ -17193,7 +17194,7 @@ const vc = /* @__PURE__ */ B(zu, [["render", Bu], ["__scopeId", "data-v-a5df3fcf
|
|
17193
17194
|
function Pu(e, f) {
|
17194
17195
|
return r(), c("div", Hu, [
|
17195
17196
|
o("div", Fu, [
|
17196
|
-
|
17197
|
+
ee(e.$slots, "default", {}, void 0, !0)
|
17197
17198
|
])
|
17198
17199
|
]);
|
17199
17200
|
}
|
@@ -17203,7 +17204,7 @@ const Ic = /* @__PURE__ */ B($u, [["render", Pu], ["__scopeId", "data-v-e71ea0ed
|
|
17203
17204
|
}, Ju = {
|
17204
17205
|
key: 1,
|
17205
17206
|
style: { width: "100%" }
|
17206
|
-
}, Gu = /* @__PURE__ */
|
17207
|
+
}, Gu = /* @__PURE__ */ J({
|
17207
17208
|
__name: "ChatWrapper",
|
17208
17209
|
props: {
|
17209
17210
|
isOpenChatPanel: {
|
@@ -17218,17 +17219,17 @@ const Ic = /* @__PURE__ */ B($u, [["render", Pu], ["__scopeId", "data-v-e71ea0ed
|
|
17218
17219
|
setup(e) {
|
17219
17220
|
return (f, t) => (r(), c("div", Wu, [
|
17220
17221
|
e.isSelectedChat ? (r(), c("div", Ku, [
|
17221
|
-
|
17222
|
+
ee(f.$slots, "default", {}, void 0, !0)
|
17222
17223
|
])) : (r(), c("div", Ju, [
|
17223
|
-
o("p", null, N(
|
17224
|
+
o("p", null, N(S(Oe)("layout.ChatWrapper.noSelectedChat")), 1)
|
17224
17225
|
])),
|
17225
17226
|
e.isOpenChatPanel ? (r(), c("div", {
|
17226
17227
|
key: 2,
|
17227
17228
|
class: "chat-wrapper__chat-panel",
|
17228
17229
|
style: K({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
|
17229
17230
|
}, [
|
17230
|
-
|
17231
|
-
], 4)) :
|
17231
|
+
ee(f.$slots, "chatpanel", {}, void 0, !0)
|
17232
|
+
], 4)) : _("", !0)
|
17232
17233
|
]));
|
17233
17234
|
}
|
17234
17235
|
}), wc = /* @__PURE__ */ B(Gu, [["__scopeId", "data-v-12c6a622"]]);
|