@mobilon-dev/chotto 0.0.87 → 0.0.88
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,20 +1,20 @@
|
|
1
|
-
import { inject as oe, openBlock as A, createElementBlock as u, createElementVNode as o, createCommentVNode as b, toDisplayString as D, renderSlot as ne, unref as T, ref as M, customRef as Hn, defineComponent as W, watch as X, nextTick as $t, withDirectives as ve, withKeys as Hf, vModelText as Et, normalizeClass as C, createVNode as
|
1
|
+
import { inject as oe, openBlock as A, createElementBlock as u, createElementVNode as o, createCommentVNode as b, toDisplayString as D, renderSlot as ne, unref as T, ref as M, customRef as Hn, defineComponent as W, watch as X, nextTick as $t, withDirectives as ve, withKeys as Hf, vModelText as Et, normalizeClass as C, createVNode as P, Transition as Z, withCtx as J, createBlock as R, Fragment as q, renderList as fe, computed as B, resolveDynamicComponent as Wn, Teleport as Be, normalizeStyle as se, useId as Wf, onMounted as le, onUnmounted as He, toRef as Sa, vModelRadio as Kn, reactive as Jn, provide as bf, getCurrentInstance as Ca, toRaw as Gn, onBeforeUnmount as Oa, readonly as za, vShow as Mt, resolveComponent as Bt, withModifiers as _t, h as wn, defineAsyncComponent as La, createApp as Ua } from "vue";
|
2
2
|
const Ba = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", Qa = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", Xe = (e, t) => {
|
3
3
|
for (const f in t)
|
4
4
|
e[f] = t[f];
|
5
5
|
return e;
|
6
|
-
},
|
6
|
+
}, zf = "numeric", Lf = "ascii", Uf = "alpha", dt = "asciinumeric", ut = "alphanumeric", Bf = "domain", Zn = "emoji", Ra = "scheme", Ya = "slashscheme", Nf = "whitespace";
|
7
7
|
function $a(e, t) {
|
8
8
|
return e in t || (t[e] = []), t[e];
|
9
9
|
}
|
10
|
-
function
|
11
|
-
t[
|
10
|
+
function Fe(e, t, f) {
|
11
|
+
t[zf] && (t[dt] = !0, t[ut] = !0), t[Lf] && (t[dt] = !0, t[Uf] = !0), t[dt] && (t[ut] = !0), t[Uf] && (t[ut] = !0), t[ut] && (t[Bf] = !0), t[Zn] && (t[Bf] = !0);
|
12
12
|
for (const n in t) {
|
13
13
|
const a = $a(n, f);
|
14
14
|
a.indexOf(e) < 0 && a.push(e);
|
15
15
|
}
|
16
16
|
}
|
17
|
-
function
|
17
|
+
function Pa(e, t) {
|
18
18
|
const f = {};
|
19
19
|
for (const n in t)
|
20
20
|
t[n].indexOf(e) >= 0 && (f[n] = !0);
|
@@ -79,7 +79,7 @@ ue.prototype = {
|
|
79
79
|
tr(e, t, f, n) {
|
80
80
|
n = n || ue.groups;
|
81
81
|
let a;
|
82
|
-
return t && t.j ? a = t : (a = new ue(t), f && n &&
|
82
|
+
return t && t.j ? a = t : (a = new ue(t), f && n && Fe(t, f, n)), this.jr.push([e, a]), a;
|
83
83
|
},
|
84
84
|
/**
|
85
85
|
* Short for "take transitions", will take as many sequential transitions as
|
@@ -136,15 +136,15 @@ ue.prototype = {
|
|
136
136
|
if (l ? (i = new ue(), Xe(i.j, l.j), i.jr.push.apply(i.jr, l.jr), i.jd = l.jd, i.t = l.t) : i = new ue(), s) {
|
137
137
|
if (n)
|
138
138
|
if (i.t && typeof i.t == "string") {
|
139
|
-
const c = Xe(
|
140
|
-
|
141
|
-
} else f &&
|
139
|
+
const c = Xe(Pa(i.t, n), f);
|
140
|
+
Fe(s, c, n);
|
141
|
+
} else f && Fe(s, f, n);
|
142
142
|
i.t = s;
|
143
143
|
}
|
144
144
|
return a.j[e] = i, i;
|
145
145
|
}
|
146
146
|
};
|
147
|
-
const $ = (e, t, f, n, a) => e.ta(t, f, n, a), te = (e, t, f, n, a) => e.tr(t, f, n, a), kn = (e, t, f, n, a) => e.ts(t, f, n, a), I = (e, t, f, n, a) => e.tt(t, f, n, a), Ve = "WORD", Qf = "UWORD", Xn = "ASCIINUMERICAL", ea = "ALPHANUMERICAL", It = "LOCALHOST", Rf = "TLD", Yf = "UTLD", Qt = "SCHEME", Ze = "SLASH_SCHEME", Kf = "NUM", $f = "WS", Jf = "NL", gt = "OPENBRACE", mt = "CLOSEBRACE",
|
147
|
+
const $ = (e, t, f, n, a) => e.ta(t, f, n, a), te = (e, t, f, n, a) => e.tr(t, f, n, a), kn = (e, t, f, n, a) => e.ts(t, f, n, a), I = (e, t, f, n, a) => e.tt(t, f, n, a), Ve = "WORD", Qf = "UWORD", Xn = "ASCIINUMERICAL", ea = "ALPHANUMERICAL", It = "LOCALHOST", Rf = "TLD", Yf = "UTLD", Qt = "SCHEME", Ze = "SLASH_SCHEME", Kf = "NUM", $f = "WS", Jf = "NL", gt = "OPENBRACE", mt = "CLOSEBRACE", Pt = "OPENBRACKET", Ft = "CLOSEBRACKET", qt = "OPENPAREN", Ht = "CLOSEPAREN", Wt = "OPENANGLEBRACKET", Kt = "CLOSEANGLEBRACKET", Jt = "FULLWIDTHLEFTPAREN", Gt = "FULLWIDTHRIGHTPAREN", Zt = "LEFTCORNERBRACKET", Xt = "RIGHTCORNERBRACKET", ef = "LEFTWHITECORNERBRACKET", tf = "RIGHTWHITECORNERBRACKET", ff = "FULLWIDTHLESSTHAN", nf = "FULLWIDTHGREATERTHAN", af = "AMPERSAND", Gf = "APOSTROPHE", sf = "ASTERISK", ze = "AT", of = "BACKSLASH", lf = "BACKTICK", Af = "CARET", Le = "COLON", Zf = "COMMA", rf = "DOLLAR", ke = "DOT", cf = "EQUALS", Xf = "EXCLAMATION", he = "HYPHEN", pt = "PERCENT", uf = "PIPE", df = "PLUS", gf = "POUND", ht = "QUERY", en = "QUOTE", ta = "FULLWIDTHMIDDLEDOT", tn = "SEMI", Ne = "SLASH", yt = "TILDE", mf = "UNDERSCORE", fa = "EMOJI", pf = "SYM";
|
148
148
|
var na = /* @__PURE__ */ Object.freeze({
|
149
149
|
__proto__: null,
|
150
150
|
WORD: Ve,
|
@@ -161,8 +161,8 @@ var na = /* @__PURE__ */ Object.freeze({
|
|
161
161
|
NL: Jf,
|
162
162
|
OPENBRACE: gt,
|
163
163
|
CLOSEBRACE: mt,
|
164
|
-
OPENBRACKET:
|
165
|
-
CLOSEBRACKET:
|
164
|
+
OPENBRACKET: Pt,
|
165
|
+
CLOSEBRACKET: Ft,
|
166
166
|
OPENPAREN: qt,
|
167
167
|
CLOSEPAREN: Ht,
|
168
168
|
OPENANGLEBRACKET: Wt,
|
@@ -178,7 +178,7 @@ var na = /* @__PURE__ */ Object.freeze({
|
|
178
178
|
AMPERSAND: af,
|
179
179
|
APOSTROPHE: Gf,
|
180
180
|
ASTERISK: sf,
|
181
|
-
AT:
|
181
|
+
AT: ze,
|
182
182
|
BACKSLASH: of,
|
183
183
|
BACKTICK: lf,
|
184
184
|
CARET: Af,
|
@@ -204,15 +204,15 @@ var na = /* @__PURE__ */ Object.freeze({
|
|
204
204
|
SYM: pf
|
205
205
|
});
|
206
206
|
const Te = /[a-z]/, At = new RegExp("\\p{L}", "u"), Df = new RegExp("\\p{Emoji}", "u"), xe = /\d/, Ef = /\s/, Nn = "\r", jf = `
|
207
|
-
`,
|
208
|
-
let Ct = null,
|
207
|
+
`, Fa = "️", qa = "", Tf = "";
|
208
|
+
let Ct = null, Ot = null;
|
209
209
|
function Ha(e = []) {
|
210
210
|
const t = {};
|
211
211
|
ue.groups = t;
|
212
212
|
const f = new ue();
|
213
|
-
Ct == null && (Ct = Dn(Ba)),
|
213
|
+
Ct == null && (Ct = Dn(Ba)), Ot == null && (Ot = Dn(Qa)), I(f, "'", Gf), I(f, "{", gt), I(f, "}", mt), I(f, "[", Pt), I(f, "]", Ft), I(f, "(", qt), I(f, ")", Ht), I(f, "<", Wt), I(f, ">", Kt), I(f, "(", Jt), I(f, ")", Gt), I(f, "「", Zt), I(f, "」", Xt), I(f, "『", ef), I(f, "』", tf), I(f, "<", ff), I(f, ">", nf), I(f, "&", af), I(f, "*", sf), I(f, "@", ze), I(f, "`", lf), I(f, "^", Af), I(f, ":", Le), I(f, ",", Zf), I(f, "$", rf), I(f, ".", ke), I(f, "=", cf), I(f, "!", Xf), I(f, "-", he), I(f, "%", pt), I(f, "|", uf), I(f, "+", df), I(f, "#", gf), I(f, "?", ht), I(f, '"', en), I(f, "/", Ne), I(f, ";", tn), I(f, "~", yt), I(f, "_", mf), I(f, "\\", of), I(f, "・", ta);
|
214
214
|
const n = te(f, xe, Kf, {
|
215
|
-
[
|
215
|
+
[zf]: !0
|
216
216
|
});
|
217
217
|
te(n, xe, n);
|
218
218
|
const a = te(n, Te, Xn, {
|
@@ -238,34 +238,34 @@ function Ha(e = []) {
|
|
238
238
|
const g = te(f, Df, fa, {
|
239
239
|
[Zn]: !0
|
240
240
|
});
|
241
|
-
I(g, "#"), te(g, Df, g), I(g,
|
242
|
-
const
|
243
|
-
I(
|
241
|
+
I(g, "#"), te(g, Df, g), I(g, Fa, g);
|
242
|
+
const y = I(g, qa);
|
243
|
+
I(y, "#"), te(y, Df, g);
|
244
244
|
const p = [[Te, i], [xe, a]], m = [[Te, null], [At, l], [xe, s]];
|
245
|
-
for (let
|
246
|
-
|
247
|
-
for (let
|
248
|
-
|
249
|
-
|
245
|
+
for (let h = 0; h < Ct.length; h++)
|
246
|
+
Oe(f, Ct[h], Rf, Ve, p);
|
247
|
+
for (let h = 0; h < Ot.length; h++)
|
248
|
+
Oe(f, Ot[h], Yf, Qf, m);
|
249
|
+
Fe(Rf, {
|
250
250
|
tld: !0,
|
251
251
|
ascii: !0
|
252
|
-
}, t),
|
252
|
+
}, t), Fe(Yf, {
|
253
253
|
utld: !0,
|
254
254
|
alpha: !0
|
255
|
-
}, t),
|
255
|
+
}, t), Oe(f, "file", Qt, Ve, p), Oe(f, "mailto", Qt, Ve, p), Oe(f, "http", Ze, Ve, p), Oe(f, "https", Ze, Ve, p), Oe(f, "ftp", Ze, Ve, p), Oe(f, "ftps", Ze, Ve, p), Fe(Qt, {
|
256
256
|
scheme: !0,
|
257
257
|
ascii: !0
|
258
|
-
}, t),
|
258
|
+
}, t), Fe(Ze, {
|
259
259
|
slashscheme: !0,
|
260
260
|
ascii: !0
|
261
|
-
}, t), e = e.sort((
|
262
|
-
for (let
|
263
|
-
const v = e[
|
261
|
+
}, t), e = e.sort((h, v) => h[0] > v[0] ? 1 : -1);
|
262
|
+
for (let h = 0; h < e.length; h++) {
|
263
|
+
const v = e[h][0], O = e[h][1] ? {
|
264
264
|
[Ra]: !0
|
265
265
|
} : {
|
266
266
|
[Ya]: !0
|
267
267
|
};
|
268
|
-
v.indexOf("-") >= 0 ?
|
268
|
+
v.indexOf("-") >= 0 ? O[Bf] = !0 : Te.test(v) ? xe.test(v) ? O[dt] = !0 : O[Lf] = !0 : O[zf] = !0, kn(f, v, v, O);
|
269
269
|
}
|
270
270
|
return kn(f, "localhost", It, {
|
271
271
|
ascii: !0
|
@@ -280,10 +280,10 @@ function aa(e, t) {
|
|
280
280
|
const f = Wa(t.replace(/[A-Z]/g, (l) => l.toLowerCase())), n = f.length, a = [];
|
281
281
|
let s = 0, i = 0;
|
282
282
|
for (; i < n; ) {
|
283
|
-
let l = e, c = null, r = 0, d = null, g = -1,
|
283
|
+
let l = e, c = null, r = 0, d = null, g = -1, y = -1;
|
284
284
|
for (; i < n && (c = l.go(f[i])); )
|
285
|
-
l = c, l.accepts() ? (g = 0,
|
286
|
-
s -= g, i -=
|
285
|
+
l = c, l.accepts() ? (g = 0, y = 0, d = l) : g >= 0 && (g += f[i].length, y++), r += f[i].length, s += f[i].length, i++;
|
286
|
+
s -= g, i -= y, r -= g, a.push({
|
287
287
|
t: d.t,
|
288
288
|
// token type/name
|
289
289
|
v: t.slice(s - r, s),
|
@@ -305,7 +305,7 @@ function Wa(e) {
|
|
305
305
|
}
|
306
306
|
return t;
|
307
307
|
}
|
308
|
-
function
|
308
|
+
function Oe(e, t, f, n, a) {
|
309
309
|
let s;
|
310
310
|
const i = t.length;
|
311
311
|
for (let l = 0; l < i - 1; l++) {
|
@@ -542,7 +542,7 @@ const jn = Mf("email", {
|
|
542
542
|
toHref() {
|
543
543
|
return "mailto:" + this.toString();
|
544
544
|
}
|
545
|
-
}), Tn = Mf("text"), Ka = Mf("nl"),
|
545
|
+
}), Tn = Mf("text"), Ka = Mf("nl"), zt = Mf("url", {
|
546
546
|
isLink: !0,
|
547
547
|
/**
|
548
548
|
Lowercases relevant parts of the domain and adds the protocol if
|
@@ -566,38 +566,38 @@ const jn = Mf("email", {
|
|
566
566
|
function Ja({
|
567
567
|
groups: e
|
568
568
|
}) {
|
569
|
-
const t = e.domain.concat([af, sf,
|
569
|
+
const t = e.domain.concat([af, sf, ze, of, lf, Af, rf, cf, he, Kf, pt, uf, df, gf, Ne, pf, yt, mf]), f = [Le, Zf, ke, Xf, pt, ht, en, tn, Wt, Kt, gt, mt, Ft, Pt, qt, Ht, Jt, Gt, Zt, Xt, ef, tf, ff, nf], n = [af, Gf, sf, of, lf, Af, rf, cf, he, gt, mt, pt, uf, df, gf, ht, Ne, pf, yt, mf], a = me(), s = I(a, yt);
|
570
570
|
$(s, n, s), $(s, e.domain, s);
|
571
571
|
const i = me(), l = me(), c = me();
|
572
572
|
$(a, e.domain, i), $(a, e.scheme, l), $(a, e.slashscheme, c), $(i, n, s), $(i, e.domain, i);
|
573
|
-
const r = I(i,
|
574
|
-
I(s,
|
573
|
+
const r = I(i, ze);
|
574
|
+
I(s, ze, r), I(l, ze, r), I(c, ze, r);
|
575
575
|
const d = I(s, ke);
|
576
576
|
$(d, n, s), $(d, e.domain, s);
|
577
577
|
const g = me();
|
578
578
|
$(r, e.domain, g), $(g, e.domain, g);
|
579
|
-
const
|
580
|
-
$(
|
579
|
+
const y = I(g, ke);
|
580
|
+
$(y, e.domain, g);
|
581
581
|
const p = me(jn);
|
582
|
-
$(
|
582
|
+
$(y, e.tld, p), $(y, e.utld, p), I(r, It, p);
|
583
583
|
const m = I(g, he);
|
584
|
-
I(m, he, m), $(m, e.domain, g), $(p, e.domain, g), I(p, ke,
|
585
|
-
const
|
586
|
-
$(
|
587
|
-
const v = I(i, he),
|
588
|
-
I(v, he, v), $(v, e.domain, i), $(
|
589
|
-
const
|
590
|
-
$(
|
591
|
-
const
|
592
|
-
$(
|
593
|
-
const k = me(
|
594
|
-
$(k, t, k), $(k, f, E), $(E, t, k), $(E, f, E), I(
|
584
|
+
I(m, he, m), $(m, e.domain, g), $(p, e.domain, g), I(p, ke, y), I(p, he, m);
|
585
|
+
const h = I(p, Le);
|
586
|
+
$(h, e.numeric, jn);
|
587
|
+
const v = I(i, he), x = I(i, ke);
|
588
|
+
I(v, he, v), $(v, e.domain, i), $(x, n, s), $(x, e.domain, i);
|
589
|
+
const O = me(zt);
|
590
|
+
$(x, e.tld, O), $(x, e.utld, O), $(O, e.domain, i), $(O, n, s), I(O, ke, x), I(O, he, v), I(O, ze, r);
|
591
|
+
const z = I(O, Le), V = me(zt);
|
592
|
+
$(z, e.numeric, V);
|
593
|
+
const k = me(zt), E = me();
|
594
|
+
$(k, t, k), $(k, f, E), $(E, t, k), $(E, f, E), I(O, Ne, k), I(V, Ne, k);
|
595
595
|
const _ = I(l, Le), w = I(c, Le), N = I(w, Ne), j = I(N, Ne);
|
596
|
-
$(l, e.domain, i), I(l, ke,
|
596
|
+
$(l, e.domain, i), I(l, ke, x), I(l, he, v), $(c, e.domain, i), I(c, ke, x), I(c, he, v), $(_, e.domain, k), I(_, Ne, k), I(_, ht, k), $(j, e.domain, k), $(j, t, k), I(j, Ne, k);
|
597
597
|
const Q = [
|
598
598
|
[gt, mt],
|
599
599
|
// {}
|
600
|
-
[
|
600
|
+
[Pt, Ft],
|
601
601
|
// []
|
602
602
|
[qt, Ht],
|
603
603
|
// ()
|
@@ -612,15 +612,15 @@ function Ja({
|
|
612
612
|
[ff, nf]
|
613
613
|
// <>
|
614
614
|
];
|
615
|
-
for (let
|
616
|
-
const [
|
617
|
-
I(E,
|
618
|
-
const K = me(
|
615
|
+
for (let L = 0; L < Q.length; L++) {
|
616
|
+
const [H, G] = Q[L], ie = I(k, H);
|
617
|
+
I(E, H, ie), I(ie, G, k);
|
618
|
+
const K = me(zt);
|
619
619
|
$(ie, t, K);
|
620
620
|
const ee = me();
|
621
621
|
$(ie, f), $(K, t, K), $(K, f, ee), $(ee, t, K), $(ee, f, ee), I(K, G, k), I(ee, G, k);
|
622
622
|
}
|
623
|
-
return I(a, It,
|
623
|
+
return I(a, It, O), I(a, Jf, Ka), {
|
624
624
|
start: a,
|
625
625
|
tokens: na
|
626
626
|
};
|
@@ -628,15 +628,15 @@ function Ja({
|
|
628
628
|
function Ga(e, t, f) {
|
629
629
|
let n = f.length, a = 0, s = [], i = [];
|
630
630
|
for (; a < n; ) {
|
631
|
-
let l = e, c = null, r = null, d = 0, g = null,
|
631
|
+
let l = e, c = null, r = null, d = 0, g = null, y = -1;
|
632
632
|
for (; a < n && !(c = l.go(f[a].t)); )
|
633
633
|
i.push(f[a++]);
|
634
634
|
for (; a < n && (r = c || l.go(f[a].t)); )
|
635
|
-
c = null, l = r, l.accepts() ? (
|
636
|
-
if (
|
635
|
+
c = null, l = r, l.accepts() ? (y = 0, g = l) : y >= 0 && y++, a++, d++;
|
636
|
+
if (y < 0)
|
637
637
|
a -= d, a < n && (i.push(f[a]), a++);
|
638
638
|
else {
|
639
|
-
i.length > 0 && (s.push(xf(Tn, t, i)), i = []), a -=
|
639
|
+
i.length > 0 && (s.push(xf(Tn, t, i)), i = []), a -= y, d -= y;
|
640
640
|
const p = g.t, m = f.slice(a - d, a);
|
641
641
|
s.push(xf(p, t, m));
|
642
642
|
}
|
@@ -954,15 +954,15 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
954
954
|
);
|
955
955
|
const g = (m) => {
|
956
956
|
f("typing", m.target.value);
|
957
|
-
},
|
957
|
+
}, y = (m) => {
|
958
958
|
if (m.ctrlKey) {
|
959
|
-
let
|
959
|
+
let h = m.target.selectionStart;
|
960
960
|
m.target.setRangeText(`
|
961
|
-
`,
|
961
|
+
`, h, h, "end"), i(m.target.value);
|
962
962
|
} else
|
963
963
|
m.preventDefault(), p();
|
964
964
|
}, p = () => {
|
965
|
-
var
|
965
|
+
var h;
|
966
966
|
const m = M(s());
|
967
967
|
if (m.value.text != "" || m.value.file) {
|
968
968
|
const v = {
|
@@ -973,10 +973,10 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
973
973
|
size: "",
|
974
974
|
reply: void 0
|
975
975
|
};
|
976
|
-
m.value.file ? (v.type = "message." + m.value.file.type, v.url = m.value.file.url, v.filename = m.value.file.name, v.size = m.value.file.size.toString(), v.text = (
|
976
|
+
m.value.file ? (v.type = "message." + m.value.file.type, v.url = m.value.file.url, v.filename = m.value.file.name, v.size = m.value.file.size.toString(), v.text = (h = m == null ? void 0 : m.value) == null ? void 0 : h.text.trim()) : (v.type = "message.text", v.text = m.value.text.trim()), m.value.reply && (v.reply = m.value.reply), f("send", v), a(), c.value && c.value.focus();
|
977
977
|
}
|
978
978
|
};
|
979
|
-
return (m,
|
979
|
+
return (m, h) => (A(), u("div", ys, [
|
980
980
|
o("div", {
|
981
981
|
id: "chat-input-reply-line-" + T(n),
|
982
982
|
class: "chat-input__reply-line"
|
@@ -990,10 +990,10 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
990
990
|
disabled: e.state == "disabled",
|
991
991
|
ref_key: "refInput",
|
992
992
|
ref: c,
|
993
|
-
"onUpdate:modelValue":
|
993
|
+
"onUpdate:modelValue": h[0] || (h[0] = (v) => T(s)().text = v),
|
994
994
|
class: "chat-input__input",
|
995
995
|
placeholder: T(de)("component.ChatInput.InputPlaceholder"),
|
996
|
-
onKeydown: Hf(
|
996
|
+
onKeydown: Hf(y, ["enter"]),
|
997
997
|
onInput: g
|
998
998
|
}, null, 40, _s), [
|
999
999
|
[Et, T(s)().text]
|
@@ -1001,7 +1001,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1001
1001
|
o("button", {
|
1002
1002
|
class: C(["chat-input__button-send", { "chat-input__button-send-disabled": T(s)().text == "" && !T(s)().file }]),
|
1003
1003
|
onClick: p
|
1004
|
-
},
|
1004
|
+
}, h[1] || (h[1] = [
|
1005
1005
|
o("span", { class: "pi pi-send" }, null, -1)
|
1006
1006
|
]), 2)
|
1007
1007
|
]),
|
@@ -1010,7 +1010,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1010
1010
|
])
|
1011
1011
|
]));
|
1012
1012
|
}
|
1013
|
-
}),
|
1013
|
+
}), Od = /* @__PURE__ */ U(ws, [["__scopeId", "data-v-3bc1d228"]]), ks = { class: "chat-list" }, Ns = { class: "chat-list__title" }, Ds = {
|
1014
1014
|
key: 0,
|
1015
1015
|
class: "pi pi-minus"
|
1016
1016
|
}, Es = {
|
@@ -1041,8 +1041,8 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1041
1041
|
const p = T(i);
|
1042
1042
|
p.scrollHeight - p.scrollTop - p.clientHeight <= 0 && n("loadMoreChats");
|
1043
1043
|
}, r = (p) => {
|
1044
|
-
f.chats.forEach((
|
1045
|
-
const m = f.chats.find((
|
1044
|
+
f.chats.forEach((h) => h.isSelected = !1);
|
1045
|
+
const m = f.chats.find((h) => h.chatId === p.chatId);
|
1046
1046
|
m.isSelected = !0, n("select", p);
|
1047
1047
|
}, d = () => f.chats.toSorted((p, m) => {
|
1048
1048
|
if (Number(p["lastActivity.timestamp"]) > Number(m["lastActivity.timestamp"])) return -1;
|
@@ -1054,7 +1054,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1054
1054
|
if (p.countUnread == m.countUnread) return 0;
|
1055
1055
|
}).filter((p) => p.name.includes(a.value) || p.metadata.includes(a.value)), g = (p) => {
|
1056
1056
|
a.value = p;
|
1057
|
-
},
|
1057
|
+
}, y = (p) => n("action", p);
|
1058
1058
|
return (p, m) => (A(), u("div", ks, [
|
1059
1059
|
o("div", {
|
1060
1060
|
class: "chat-list__title-container",
|
@@ -1064,17 +1064,17 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1064
1064
|
e.actions.length ? (A(), u("button", {
|
1065
1065
|
key: 0,
|
1066
1066
|
class: "chat-list__button-actions",
|
1067
|
-
onClick: m[0] || (m[0] = (
|
1067
|
+
onClick: m[0] || (m[0] = (h) => s.value = !s.value)
|
1068
1068
|
}, [
|
1069
1069
|
s.value ? (A(), u("span", Ds)) : (A(), u("span", Es))
|
1070
1070
|
])) : b("", !0),
|
1071
|
-
|
1071
|
+
P(Z, null, {
|
1072
1072
|
default: J(() => [
|
1073
1073
|
s.value && e.actions ? (A(), R(T(Re), {
|
1074
1074
|
key: 0,
|
1075
1075
|
actions: e.actions,
|
1076
1076
|
class: "chat-list__context-menu",
|
1077
|
-
onClick:
|
1077
|
+
onClick: y
|
1078
1078
|
}, null, 8, ["actions"])) : b("", !0)
|
1079
1079
|
]),
|
1080
1080
|
_: 1
|
@@ -1093,36 +1093,36 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1093
1093
|
onScroll: c
|
1094
1094
|
}, [
|
1095
1095
|
o("div", js, [
|
1096
|
-
(A(!0), u(
|
1097
|
-
key:
|
1096
|
+
(A(!0), u(q, null, fe(d().filter((h) => h.isFixedTop), (h) => (A(), R(T(Vf), {
|
1097
|
+
key: h.chatId,
|
1098
1098
|
class: "chat-list__item",
|
1099
|
-
chat:
|
1099
|
+
chat: h,
|
1100
1100
|
onSelect: r,
|
1101
|
-
onAction:
|
1101
|
+
onAction: y
|
1102
1102
|
}, null, 8, ["chat"]))), 128))
|
1103
1103
|
]),
|
1104
1104
|
o("div", Ts, [
|
1105
|
-
(A(!0), u(
|
1106
|
-
key:
|
1105
|
+
(A(!0), u(q, null, fe(d().filter((h) => !h.isFixedBottom && !h.isFixedTop), (h) => (A(), R(T(Vf), {
|
1106
|
+
key: h.chatId,
|
1107
1107
|
class: "chat-list__item",
|
1108
|
-
chat:
|
1108
|
+
chat: h,
|
1109
1109
|
onSelect: r,
|
1110
|
-
onAction:
|
1110
|
+
onAction: y
|
1111
1111
|
}, null, 8, ["chat"]))), 128))
|
1112
1112
|
]),
|
1113
1113
|
o("div", xs, [
|
1114
|
-
(A(!0), u(
|
1115
|
-
key:
|
1114
|
+
(A(!0), u(q, null, fe(d().filter((h) => h.isFixedBottom), (h) => (A(), R(T(Vf), {
|
1115
|
+
key: h.chatId,
|
1116
1116
|
class: "chat-list__item",
|
1117
|
-
chat:
|
1117
|
+
chat: h,
|
1118
1118
|
onSelect: r,
|
1119
|
-
onAction:
|
1119
|
+
onAction: y
|
1120
1120
|
}, null, 8, ["chat"]))), 128))
|
1121
1121
|
])
|
1122
1122
|
], 544)
|
1123
1123
|
]));
|
1124
1124
|
}
|
1125
|
-
},
|
1125
|
+
}, zd = /* @__PURE__ */ U(Vs, [["__scopeId", "data-v-ca9c6a70"]]), Ss = { class: "keyboard__container" }, Cs = ["onClick"], Os = /* @__PURE__ */ W({
|
1126
1126
|
__name: "MessageKeyboard",
|
1127
1127
|
props: {
|
1128
1128
|
keyboard: {
|
@@ -1135,7 +1135,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1135
1135
|
f(s.text), n(!0);
|
1136
1136
|
};
|
1137
1137
|
return (s, i) => (A(), u("div", Ss, [
|
1138
|
-
(A(!0), u(
|
1138
|
+
(A(!0), u(q, null, fe(e.keyboard, (l) => (A(), u("div", {
|
1139
1139
|
class: "keyboard__key",
|
1140
1140
|
onClick: (c) => a(l)
|
1141
1141
|
}, [
|
@@ -1143,7 +1143,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1143
1143
|
], 8, Cs))), 256))
|
1144
1144
|
]));
|
1145
1145
|
}
|
1146
|
-
}),
|
1146
|
+
}), zs = /* @__PURE__ */ U(Os, [["__scopeId", "data-v-d9788c16"]]), Ls = ["id"], Us = ["onDblclick", "id"], Bs = {
|
1147
1147
|
key: 0,
|
1148
1148
|
class: "message-feed__unread-amount"
|
1149
1149
|
}, Qs = /* @__PURE__ */ W({
|
@@ -1184,7 +1184,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1184
1184
|
"forceScrollToBottom"
|
1185
1185
|
],
|
1186
1186
|
setup(e, { emit: t }) {
|
1187
|
-
const f = M(), n = M(), a = M(), s = M(!1), i = M(!1), l = e, c = oe("chatAppId"), { setReply: r, getMessage: d } = We(c), g = t,
|
1187
|
+
const f = M(), n = M(), a = M(), s = M(!1), i = M(!1), l = e, c = oe("chatAppId"), { setReply: r, getMessage: d } = We(c), g = t, y = B(() => !!(i.value && l.objects.length > 0 && l.objects[l.objects.length - 1].keyboard)), p = (_ = !0) => {
|
1188
1188
|
const w = T(n);
|
1189
1189
|
let N = 0;
|
1190
1190
|
a.value && (N = a.value.$el.clientHeight);
|
@@ -1193,7 +1193,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1193
1193
|
}, m = (_) => ({
|
1194
1194
|
"message.text": mu,
|
1195
1195
|
"message.image": iu,
|
1196
|
-
"message.file":
|
1196
|
+
"message.file": Fc,
|
1197
1197
|
"message.audio": Cu,
|
1198
1198
|
"message.video": Xu,
|
1199
1199
|
"message.call": g1,
|
@@ -1201,27 +1201,27 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1201
1201
|
"system.date": Uu,
|
1202
1202
|
"message.typing": qn
|
1203
1203
|
})[_];
|
1204
|
-
function
|
1204
|
+
function h() {
|
1205
1205
|
$t(function() {
|
1206
1206
|
const _ = T(n);
|
1207
1207
|
_.scrollTop = _.scrollHeight;
|
1208
1208
|
});
|
1209
1209
|
}
|
1210
1210
|
function v() {
|
1211
|
-
g("forceScrollToBottom"),
|
1211
|
+
g("forceScrollToBottom"), h();
|
1212
1212
|
}
|
1213
1213
|
X(
|
1214
1214
|
() => l.scrollToBottom,
|
1215
1215
|
() => {
|
1216
|
-
l.scrollToBottom &&
|
1216
|
+
l.scrollToBottom && h();
|
1217
1217
|
},
|
1218
1218
|
{ immediate: !0 }
|
1219
1219
|
);
|
1220
|
-
const
|
1220
|
+
const x = (_) => {
|
1221
1221
|
g("messageAction", _);
|
1222
|
-
},
|
1222
|
+
}, O = (_) => {
|
1223
1223
|
g("clickRepliedMessage", _);
|
1224
|
-
},
|
1224
|
+
}, z = (_, w) => {
|
1225
1225
|
l.enableDoubleClickReply && (_ == null || _.preventDefault(), w.type.indexOf("system") == -1 && w.type.indexOf("typing") == -1 && r({
|
1226
1226
|
messageId: w.messageId,
|
1227
1227
|
type: w.type,
|
@@ -1229,7 +1229,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1229
1229
|
filename: w.filename,
|
1230
1230
|
url: w.url
|
1231
1231
|
}));
|
1232
|
-
},
|
1232
|
+
}, V = (_) => {
|
1233
1233
|
_.forEach((w) => {
|
1234
1234
|
w.isIntersecting && g("messageVisible", JSON.parse(w.target.id));
|
1235
1235
|
});
|
@@ -1237,7 +1237,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1237
1237
|
root: document.getElementById("feed-container-" + c),
|
1238
1238
|
rootMargin: "5px",
|
1239
1239
|
threshold: 0
|
1240
|
-
}, E = new IntersectionObserver(
|
1240
|
+
}, E = new IntersectionObserver(V, k);
|
1241
1241
|
return X(
|
1242
1242
|
() => l.objects,
|
1243
1243
|
() => {
|
@@ -1259,7 +1259,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1259
1259
|
}, 2e3);
|
1260
1260
|
}
|
1261
1261
|
}
|
1262
|
-
), (_, w) => (A(), u(
|
1262
|
+
), (_, w) => (A(), u(q, null, [
|
1263
1263
|
o("div", {
|
1264
1264
|
ref_key: "refFeed",
|
1265
1265
|
ref: n,
|
@@ -1267,8 +1267,8 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1267
1267
|
onScroll: w[0] || (w[0] = (N) => p()),
|
1268
1268
|
id: "feed-container-" + T(c)
|
1269
1269
|
}, [
|
1270
|
-
(A(!0), u(
|
1271
|
-
onDblclick: (j) =>
|
1270
|
+
(A(!0), u(q, null, fe(e.objects, (N) => (A(), u("div", {
|
1271
|
+
onDblclick: (j) => z(j, N),
|
1272
1272
|
id: JSON.stringify(N),
|
1273
1273
|
class: "tracking-message"
|
1274
1274
|
}, [
|
@@ -1276,8 +1276,8 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1276
1276
|
key: N.messageId,
|
1277
1277
|
class: "message-feed__message",
|
1278
1278
|
message: N,
|
1279
|
-
onAction:
|
1280
|
-
onReply:
|
1279
|
+
onAction: x,
|
1280
|
+
onReply: O
|
1281
1281
|
}, null, 40, ["message"]))
|
1282
1282
|
], 40, Us))), 256)),
|
1283
1283
|
e.typing ? (A(), R(T(qn), {
|
@@ -1287,9 +1287,9 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1287
1287
|
avatar: e.typing.avatar
|
1288
1288
|
}
|
1289
1289
|
}, null, 8, ["message"])) : b("", !0),
|
1290
|
-
|
1290
|
+
P(Z, null, {
|
1291
1291
|
default: J(() => [
|
1292
|
-
|
1292
|
+
y.value ? (A(), R(zs, {
|
1293
1293
|
key: 0,
|
1294
1294
|
ref_key: "keyboardRef",
|
1295
1295
|
ref: a,
|
@@ -1299,7 +1299,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1299
1299
|
]),
|
1300
1300
|
_: 1
|
1301
1301
|
}),
|
1302
|
-
|
1302
|
+
P(Z, null, {
|
1303
1303
|
default: J(() => [
|
1304
1304
|
s.value ? (A(), u("button", {
|
1305
1305
|
key: 0,
|
@@ -1317,7 +1317,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1317
1317
|
key: 0,
|
1318
1318
|
to: "#chat-input-reply-line-" + T(c)
|
1319
1319
|
}, [
|
1320
|
-
|
1320
|
+
P(T(lt), {
|
1321
1321
|
message: T(d)().reply,
|
1322
1322
|
class: "chat-input-reply"
|
1323
1323
|
}, null, 8, ["message"])
|
@@ -1330,7 +1330,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1330
1330
|
}, Ys = {
|
1331
1331
|
key: 0,
|
1332
1332
|
class: "profile__avatar-container"
|
1333
|
-
}, $s = ["src"],
|
1333
|
+
}, $s = ["src"], Ps = { class: "profile__name" }, Fs = { class: "profile__email" }, qs = { class: "profile__phone" }, Hs = {
|
1334
1334
|
__name: "UserProfile",
|
1335
1335
|
props: {
|
1336
1336
|
user: {
|
@@ -1351,8 +1351,8 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1351
1351
|
width: "48"
|
1352
1352
|
}, null, 8, $s)
|
1353
1353
|
])) : b("", !0),
|
1354
|
-
o("h2",
|
1355
|
-
o("p",
|
1354
|
+
o("h2", Ps, D(e.user.name), 1),
|
1355
|
+
o("p", Fs, D(e.user.email), 1),
|
1356
1356
|
o("p", qs, D(e.user.phone), 1)
|
1357
1357
|
])) : b("", !0);
|
1358
1358
|
}
|
@@ -1391,20 +1391,20 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1391
1391
|
},
|
1392
1392
|
emits: ["click", "buttonClick"],
|
1393
1393
|
setup(e, { emit: t }) {
|
1394
|
-
const f = e, n = Wf(), a = t, s = M(null), i = M(null), l = (
|
1395
|
-
s.value.$el.style.display = "none", a("click",
|
1394
|
+
const f = e, n = Wf(), a = t, s = M(null), i = M(null), l = (y) => {
|
1395
|
+
s.value.$el.style.display = "none", a("click", y);
|
1396
1396
|
}, c = () => {
|
1397
1397
|
f.disabled || (f.mode == "click" && (s.value.$el.style.display = "inherit"), a("buttonClick"));
|
1398
1398
|
}, r = () => {
|
1399
1399
|
f.mode == "hover" && !f.disabled && (s.value.$el.style.display = "inherit");
|
1400
1400
|
}, d = () => {
|
1401
1401
|
f.mode == "hover" && (s.value.$el.style.display = "none");
|
1402
|
-
}, g = (
|
1403
|
-
f.mode == "click" && i.value && !i.value.contains(
|
1402
|
+
}, g = (y) => {
|
1403
|
+
f.mode == "click" && i.value && !i.value.contains(y.target) && (s.value.$el.style.display = "none");
|
1404
1404
|
};
|
1405
1405
|
return le(() => {
|
1406
|
-
var
|
1407
|
-
const
|
1406
|
+
var h, v;
|
1407
|
+
const y = {
|
1408
1408
|
top: {
|
1409
1409
|
h: -1,
|
1410
1410
|
w: -0.25
|
@@ -1423,10 +1423,10 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1423
1423
|
}
|
1424
1424
|
};
|
1425
1425
|
let p, m;
|
1426
|
-
f.menuSide == "top" && (p = (
|
1426
|
+
f.menuSide == "top" && (p = (h = document.getElementById("container-" + n)) == null ? void 0 : h.offsetWidth, m = (v = document.getElementById("context-menu-" + n)) == null ? void 0 : v.offsetHeight, s.value.$el.style.left = y[f.menuSide].w * p + "px"), f.menuSide == "bottom" && (p = document.getElementById("context-menu-" + n).offsetWidth, m = document.getElementById("container-" + n).offsetHeight, s.value.$el.style.right = y[f.menuSide].w * p + "px"), f.menuSide == "left" && (p = document.getElementById("container-" + n).offsetWidth, m = document.getElementById("context-menu-" + n).offsetHeight, s.value.$el.style.right = y[f.menuSide].w * p + "px"), f.menuSide == "right" && (p = document.getElementById("container-" + n).offsetWidth, m = document.getElementById("context-menu-" + n).offsetHeight, s.value.$el.style.left = y[f.menuSide].w * p + "px"), s.value.$el.style.top = y[f.menuSide].h * m + "px", s.value.$el.style.display = "none", document.addEventListener("click", g);
|
1427
1427
|
}), He(() => {
|
1428
1428
|
document.removeEventListener("click", g);
|
1429
|
-
}), (
|
1429
|
+
}), (y, p) => (A(), u("div", {
|
1430
1430
|
id: "container-" + T(n),
|
1431
1431
|
ref_key: "actionScope",
|
1432
1432
|
ref: i,
|
@@ -1444,7 +1444,7 @@ const ys = { class: "chat-input__container" }, vs = ["id"], bs = ["id"], Ms = {
|
|
1444
1444
|
class: C(e.buttonClass)
|
1445
1445
|
}, D(e.buttonTitle), 3)
|
1446
1446
|
], 34),
|
1447
|
-
|
1447
|
+
P(T(Re), {
|
1448
1448
|
id: "context-menu-" + T(n),
|
1449
1449
|
ref_key: "contextMenu",
|
1450
1450
|
ref: s,
|
@@ -1578,7 +1578,7 @@ const Qd = (e, t = null) => {
|
|
1578
1578
|
},
|
1579
1579
|
emits: ["fileUploaded"],
|
1580
1580
|
setup(e, { emit: t }) {
|
1581
|
-
const f = e, n = M(null), a = M(""), s = M(""), i = M(!1), l = M(!1), c = M(!1), r = M(null), d = M(""), g = oe("chatAppId"), { setMessageFile:
|
1581
|
+
const f = e, n = M(null), a = M(""), s = M(""), i = M(!1), l = M(!1), c = M(!1), r = M(null), d = M(""), g = oe("chatAppId"), { setMessageFile: y, resetMessageFile: p, getMessage: m } = We(g), h = [
|
1582
1582
|
{
|
1583
1583
|
action: "audio/*",
|
1584
1584
|
title: "Аудио",
|
@@ -1599,17 +1599,17 @@ const Qd = (e, t = null) => {
|
|
1599
1599
|
title: "Файл",
|
1600
1600
|
prime: "file"
|
1601
1601
|
}
|
1602
|
-
], v = B(() => !m().file),
|
1602
|
+
], v = B(() => !m().file), x = () => {
|
1603
1603
|
n.value = null, p(), s.value = "", a.value = "";
|
1604
|
-
},
|
1605
|
-
|
1606
|
-
},
|
1604
|
+
}, O = (_) => {
|
1605
|
+
x(), console.log("onFileSelected", _.target.files[0]), n.value = _.target.files[0], n.value && (z(), V());
|
1606
|
+
}, z = () => {
|
1607
1607
|
const _ = n.value, w = hf(_.type);
|
1608
1608
|
if (i.value = !1, l.value = !1, c.value = !1, w === "image" ? i.value = !0 : w === "video" ? l.value = !0 : w === "audio" && (c.value = !0), i.value || l.value) {
|
1609
|
-
const
|
1610
|
-
|
1611
|
-
s.value =
|
1612
|
-
},
|
1609
|
+
const L = new FileReader();
|
1610
|
+
L.onload = (H) => {
|
1611
|
+
s.value = H.target.result;
|
1612
|
+
}, L.readAsDataURL(_);
|
1613
1613
|
} else
|
1614
1614
|
s.value = "";
|
1615
1615
|
const N = ["б", "Кб", "Мб", "Гб"];
|
@@ -1617,7 +1617,7 @@ const Qd = (e, t = null) => {
|
|
1617
1617
|
for (; j > 1024; )
|
1618
1618
|
j = j / 1024, Q++;
|
1619
1619
|
j = j.toFixed(2) + N[Q], d.value = j;
|
1620
|
-
},
|
1620
|
+
}, V = async () => {
|
1621
1621
|
a.value = "uploading";
|
1622
1622
|
const _ = new FormData();
|
1623
1623
|
_.append("file", n.value);
|
@@ -1630,7 +1630,7 @@ const Qd = (e, t = null) => {
|
|
1630
1630
|
body: _
|
1631
1631
|
}
|
1632
1632
|
)).json();
|
1633
|
-
a.value = "success",
|
1633
|
+
a.value = "success", y({
|
1634
1634
|
url: Q.url,
|
1635
1635
|
name: n.value.name,
|
1636
1636
|
size: n.value.size,
|
@@ -1644,14 +1644,14 @@ const Qd = (e, t = null) => {
|
|
1644
1644
|
}, E = () => {
|
1645
1645
|
r.value && v && f.state == "active" && r.value.click();
|
1646
1646
|
};
|
1647
|
-
return (_, w) => (A(), u(
|
1647
|
+
return (_, w) => (A(), u(q, null, [
|
1648
1648
|
a.value === "uploading" ? (A(), u("div", Ai, w[0] || (w[0] = [
|
1649
1649
|
o("p", null, "Загрузка файла...", -1)
|
1650
1650
|
]))) : a.value === "error" ? (A(), u("div", ri, w[1] || (w[1] = [
|
1651
1651
|
o("p", null, "Ошибка при загрузке файла.", -1)
|
1652
1652
|
]))) : (A(), R(Aa, {
|
1653
1653
|
key: 2,
|
1654
|
-
actions:
|
1654
|
+
actions: h,
|
1655
1655
|
mode: "hover",
|
1656
1656
|
"button-class": "pi pi-file-arrow-up",
|
1657
1657
|
"menu-side": "top",
|
@@ -1664,20 +1664,20 @@ const Qd = (e, t = null) => {
|
|
1664
1664
|
ref: r,
|
1665
1665
|
style: { display: "none" },
|
1666
1666
|
type: "file",
|
1667
|
-
onChange:
|
1667
|
+
onChange: O
|
1668
1668
|
}, null, 544),
|
1669
1669
|
T(m)().file ? (A(), R(Be, {
|
1670
1670
|
key: 3,
|
1671
1671
|
to: "#chat-input-file-line-" + T(g)
|
1672
1672
|
}, [
|
1673
|
-
|
1673
|
+
P(ra, {
|
1674
1674
|
"preview-url": s.value,
|
1675
1675
|
"is-image": i.value,
|
1676
1676
|
"is-video": l.value,
|
1677
1677
|
"is-audio": c.value,
|
1678
1678
|
"file-name": T(m)().file.name,
|
1679
1679
|
"file-size": d.value,
|
1680
|
-
onReset:
|
1680
|
+
onReset: x
|
1681
1681
|
}, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])
|
1682
1682
|
], 8, ["to"])) : b("", !0)
|
1683
1683
|
], 64));
|
@@ -1708,7 +1708,7 @@ const Qd = (e, t = null) => {
|
|
1708
1708
|
o("select", {
|
1709
1709
|
onChange: l[0] || (l[0] = (c) => a(c))
|
1710
1710
|
}, [
|
1711
|
-
(A(!0), u(
|
1711
|
+
(A(!0), u(q, null, fe(t.themes, (c, r) => (A(), u("option", {
|
1712
1712
|
key: r,
|
1713
1713
|
value: c.code,
|
1714
1714
|
selected: c.default === !0
|
@@ -1716,7 +1716,7 @@ const Qd = (e, t = null) => {
|
|
1716
1716
|
], 32)
|
1717
1717
|
])) : b("", !0);
|
1718
1718
|
}
|
1719
|
-
},
|
1719
|
+
}, Pd = /* @__PURE__ */ U(di, [["__scopeId", "data-v-1cb3a680"]]), gi = ["onClick"], mi = ["src", "alt"], pi = { key: 1 }, hi = ["onClick"], yi = ["src", "alt"], vi = { key: 1 }, bi = {
|
1720
1720
|
__name: "SideBar",
|
1721
1721
|
props: {
|
1722
1722
|
sidebarItems: {
|
@@ -1745,7 +1745,7 @@ const Qd = (e, t = null) => {
|
|
1745
1745
|
o("ul", {
|
1746
1746
|
class: C(["sidebar__list", { "sidebar-horizontal__list": e.horizontal }])
|
1747
1747
|
}, [
|
1748
|
-
(A(!0), u(
|
1748
|
+
(A(!0), u(q, null, fe(n.value.filter((r) => !r.isFixedBottom), (r, d) => (A(), u("li", {
|
1749
1749
|
key: d,
|
1750
1750
|
class: C(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
|
1751
1751
|
onClick: (g) => s(r.itemId)
|
@@ -1768,7 +1768,7 @@ const Qd = (e, t = null) => {
|
|
1768
1768
|
o("ul", {
|
1769
1769
|
class: C(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": e.horizontal }])
|
1770
1770
|
}, [
|
1771
|
-
(A(!0), u(
|
1771
|
+
(A(!0), u(q, null, fe(n.value.filter((r) => r.isFixedBottom), (r, d) => (A(), u("li", {
|
1772
1772
|
key: d,
|
1773
1773
|
class: C(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
|
1774
1774
|
onClick: (g) => s(r.itemId)
|
@@ -1790,7 +1790,7 @@ const Qd = (e, t = null) => {
|
|
1790
1790
|
], 2)
|
1791
1791
|
], 2));
|
1792
1792
|
}
|
1793
|
-
},
|
1793
|
+
}, Fd = /* @__PURE__ */ U(bi, [["__scopeId", "data-v-794e9ba4"]]), Mi = { class: "chat-panel" }, _i = { class: "chat-panel__title-container" }, Ii = {
|
1794
1794
|
key: 0,
|
1795
1795
|
class: "chat-panel__title"
|
1796
1796
|
}, wi = {
|
@@ -1859,7 +1859,7 @@ const Qd = (e, t = null) => {
|
|
1859
1859
|
}, null, 8, Ni)) : b("", !0),
|
1860
1860
|
o("span", Di, D(s.value.title), 1)
|
1861
1861
|
])) : (A(), u("span", Ei, D(T(de)("component.ChannelSelector.Placeholder")), 1)),
|
1862
|
-
|
1862
|
+
P(Aa, {
|
1863
1863
|
actions: e.channels,
|
1864
1864
|
mode: e.mode,
|
1865
1865
|
"button-class": "pi pi-list",
|
@@ -1886,7 +1886,7 @@ const Qd = (e, t = null) => {
|
|
1886
1886
|
tooltip__text: !0,
|
1887
1887
|
[`tooltip--${t.position}`]: !0
|
1888
1888
|
}));
|
1889
|
-
return (n, a) => (A(), u(
|
1889
|
+
return (n, a) => (A(), u(q, null, [
|
1890
1890
|
o("div", Ti, [
|
1891
1891
|
ne(n.$slots, "default", {}, void 0, !0)
|
1892
1892
|
]),
|
@@ -1898,7 +1898,7 @@ const Qd = (e, t = null) => {
|
|
1898
1898
|
}, Vn = /* @__PURE__ */ U(xi, [["__scopeId", "data-v-2bde3bb2"]]), Vi = { class: "chat-item__avatar-container" }, Si = ["src"], Ci = {
|
1899
1899
|
key: 1,
|
1900
1900
|
class: "pi pi-user"
|
1901
|
-
},
|
1901
|
+
}, Oi = { class: "chat-item__info-container" }, zi = { class: "chat-item__name" }, Li = {
|
1902
1902
|
key: 0,
|
1903
1903
|
class: "chat-item__last-message"
|
1904
1904
|
}, Ui = { class: "chat-item__details-container" }, Bi = {
|
@@ -1932,17 +1932,17 @@ const Qd = (e, t = null) => {
|
|
1932
1932
|
}, d = () => {
|
1933
1933
|
c.value = !1, l.value = !1;
|
1934
1934
|
}, g = B(() => ot(f.chat["lastMessage.status"]));
|
1935
|
-
let
|
1936
|
-
const p = M(0), m = [de("component.ChatItem.typing") + ".", de("component.ChatItem.typing") + "..", de("component.ChatItem.typing") + "..."],
|
1935
|
+
let y;
|
1936
|
+
const p = M(0), m = [de("component.ChatItem.typing") + ".", de("component.ChatItem.typing") + "..", de("component.ChatItem.typing") + "..."], h = B(() => f.chat.typing ? m[p.value] : f.chat.lastMessage);
|
1937
1937
|
return X(
|
1938
1938
|
() => f.chat.typing,
|
1939
1939
|
() => {
|
1940
|
-
f.chat.typing ?
|
1940
|
+
f.chat.typing ? y = setInterval(() => {
|
1941
1941
|
p.value < 2 ? p.value += 1 : p.value = 0;
|
1942
|
-
}, 1e3) : (p.value = 0, clearInterval(
|
1942
|
+
}, 1e3) : (p.value = 0, clearInterval(y));
|
1943
1943
|
},
|
1944
1944
|
{ immediate: !0 }
|
1945
|
-
), (v,
|
1945
|
+
), (v, x) => (A(), u("div", {
|
1946
1946
|
class: C(["chat-item__container", s()]),
|
1947
1947
|
onMouseenter: r,
|
1948
1948
|
onMouseleave: d,
|
@@ -1960,22 +1960,22 @@ const Qd = (e, t = null) => {
|
|
1960
1960
|
width: "48"
|
1961
1961
|
}, null, 8, Si)) : (A(), u("span", Ci))
|
1962
1962
|
]),
|
1963
|
-
o("div",
|
1964
|
-
|
1963
|
+
o("div", Oi, [
|
1964
|
+
P(Vn, {
|
1965
1965
|
text: e.chat.name,
|
1966
1966
|
position: "bottom"
|
1967
1967
|
}, {
|
1968
1968
|
default: J(() => [
|
1969
|
-
o("div",
|
1969
|
+
o("div", zi, D(e.chat.name), 1)
|
1970
1970
|
]),
|
1971
1971
|
_: 1
|
1972
1972
|
}, 8, ["text"]),
|
1973
|
-
|
1973
|
+
P(Vn, {
|
1974
1974
|
text: e.chat.lastMessage,
|
1975
1975
|
position: "bottom"
|
1976
1976
|
}, {
|
1977
1977
|
default: J(() => [
|
1978
|
-
e.chat.lastMessage || e.chat.typing ? (A(), u("div", Li, D(
|
1978
|
+
e.chat.lastMessage || e.chat.typing ? (A(), u("div", Li, D(h.value), 1)) : b("", !0)
|
1979
1979
|
]),
|
1980
1980
|
_: 1
|
1981
1981
|
}, 8, ["text"])
|
@@ -1990,8 +1990,8 @@ const Qd = (e, t = null) => {
|
|
1990
1990
|
c.value && e.chat.actions ? (A(), u("button", {
|
1991
1991
|
key: 2,
|
1992
1992
|
class: "chat-item__menu-button",
|
1993
|
-
onClick:
|
1994
|
-
},
|
1993
|
+
onClick: x[0] || (x[0] = (O) => l.value = !l.value)
|
1994
|
+
}, x[1] || (x[1] = [
|
1995
1995
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
1996
1996
|
]))) : b("", !0),
|
1997
1997
|
e.chat.countUnread < 1 ? (A(), u("div", Qi, [
|
@@ -2000,12 +2000,12 @@ const Qd = (e, t = null) => {
|
|
2000
2000
|
class: C(["chat-item__status-message", g.value])
|
2001
2001
|
}, [
|
2002
2002
|
e.chat["lastMessage.status"] !== "sent" ? (A(), u("span", Ri)) : b("", !0),
|
2003
|
-
|
2003
|
+
x[2] || (x[2] = o("span", { class: "pi pi-check" }, null, -1))
|
2004
2004
|
], 2)) : b("", !0),
|
2005
2005
|
e.chat.isFixedTop || e.chat.isFixedBottom ? (A(), u("span", Yi)) : b("", !0)
|
2006
2006
|
])) : b("", !0)
|
2007
2007
|
]),
|
2008
|
-
|
2008
|
+
P(Z, { name: "menu" }, {
|
2009
2009
|
default: J(() => [
|
2010
2010
|
l.value && e.chat.actions ? (A(), R(T(Re), {
|
2011
2011
|
key: 0,
|
@@ -2018,7 +2018,7 @@ const Qd = (e, t = null) => {
|
|
2018
2018
|
})
|
2019
2019
|
], 34));
|
2020
2020
|
}
|
2021
|
-
}, Vf = /* @__PURE__ */ U($i, [["__scopeId", "data-v-3f59113e"]]),
|
2021
|
+
}, Vf = /* @__PURE__ */ U($i, [["__scopeId", "data-v-3f59113e"]]), Pi = ["placeholder"], Fi = {
|
2022
2022
|
__name: "ChatFilter",
|
2023
2023
|
emits: ["update"],
|
2024
2024
|
setup(e, { emit: t }) {
|
@@ -2033,9 +2033,9 @@ const Qd = (e, t = null) => {
|
|
2033
2033
|
type: "text",
|
2034
2034
|
placeholder: T(de)("component.ChatFilter.InputPlaceholder"),
|
2035
2035
|
onInput: a
|
2036
|
-
}, null, 40,
|
2036
|
+
}, null, 40, Pi));
|
2037
2037
|
}
|
2038
|
-
}, qi = /* @__PURE__ */ U(
|
2038
|
+
}, qi = /* @__PURE__ */ U(Fi, [["__scopeId", "data-v-d4271193"]]), Hi = { class: "template-selector" }, Wi = ["id"], Ki = { style: { display: "flex" } }, Ji = { style: { display: "flex" } }, Gi = {
|
2039
2039
|
key: 0,
|
2040
2040
|
class: "template-selector__button-close"
|
2041
2041
|
}, Zi = {
|
@@ -2076,36 +2076,36 @@ const Qd = (e, t = null) => {
|
|
2076
2076
|
setup(e, { emit: t }) {
|
2077
2077
|
const f = e, n = oe("chatAppId"), { setMessageText: a } = We(n), s = () => {
|
2078
2078
|
i("closeTemplateWindow"), a(c.value.template);
|
2079
|
-
}, i = t, l = M(null), c = M(null), r = M(""), d = M(), g = M(""),
|
2080
|
-
m.value && (
|
2079
|
+
}, i = t, l = M(null), c = M(null), r = M(""), d = M(), g = M(""), y = M(""), p = M(""), m = M(!1), h = B(() => !!(m.value && (p.value == "grid" && y.value == "none" || y.value == "grid" && g.value == "none"))), v = B(() => !!(m.value && (g.value == "grid" && y.value == "none" || y.value == "grid" && p.value == "none"))), x = () => {
|
2080
|
+
m.value && (y.value == "grid" ? z() : p.value == "grid" && k());
|
2081
|
+
}, O = () => {
|
2082
|
+
m.value && (y.value == "grid" ? V() : g.value == "grid" && k());
|
2081
2083
|
}, z = () => {
|
2082
|
-
|
2083
|
-
|
2084
|
-
|
2085
|
-
|
2086
|
-
|
2087
|
-
const O = document.getElementById("template-selector-container-" + n);
|
2088
|
-
O.style.setProperty("--template-third-col-display", "grid"), O.style.setProperty("--template-second-col-display", "none"), E();
|
2084
|
+
const L = document.getElementById("template-selector-container-" + n);
|
2085
|
+
L.style.setProperty("--template-first-col-display", "grid"), L.style.setProperty("--template-second-col-display", "none"), E();
|
2086
|
+
}, V = () => {
|
2087
|
+
const L = document.getElementById("template-selector-container-" + n);
|
2088
|
+
L.style.setProperty("--template-third-col-display", "grid"), L.style.setProperty("--template-second-col-display", "none"), E();
|
2089
2089
|
}, k = () => {
|
2090
|
-
const
|
2091
|
-
|
2090
|
+
const L = document.getElementById("template-selector-container-" + n);
|
2091
|
+
L.style.setProperty("--template-second-col-display", "grid"), L.style.setProperty("--template-first-col-display", "none"), L.style.setProperty("--template-third-col-display", "none"), E();
|
2092
2092
|
}, E = () => {
|
2093
|
-
const
|
2094
|
-
g.value =
|
2095
|
-
}, _ = (
|
2096
|
-
f.templates.forEach((
|
2093
|
+
const L = document.getElementById("template-selector-container-" + n), H = window.getComputedStyle(L);
|
2094
|
+
g.value = H.getPropertyValue("--template-first-col-display"), y.value = H.getPropertyValue("--template-second-col-display"), p.value = H.getPropertyValue("--template-third-col-display");
|
2095
|
+
}, _ = (L) => {
|
2096
|
+
f.templates.forEach((H) => H.isSelected = !1), L.isSelected = !0, c.value = L, V();
|
2097
2097
|
}, w = () => {
|
2098
|
-
k(), f.templates.forEach((
|
2099
|
-
}, N = B(() => l.value ? f.templates.filter((
|
2100
|
-
const
|
2101
|
-
return N.value.filter((
|
2102
|
-
}), Q = new ResizeObserver((
|
2103
|
-
const
|
2104
|
-
|
2098
|
+
k(), f.templates.forEach((L) => L.isSelected = !1);
|
2099
|
+
}, N = B(() => l.value ? f.templates.filter((L) => L.groupId === l.value.groupId) : f.templates), j = B(() => {
|
2100
|
+
const L = r.value.trim().toLowerCase();
|
2101
|
+
return N.value.filter((H) => H.title.toLowerCase().includes(L) || H.template.toLowerCase().includes(L));
|
2102
|
+
}), Q = new ResizeObserver((L) => {
|
2103
|
+
const H = L[0].target.clientWidth;
|
2104
|
+
H > 700 && (m.value = !1), H < 700 && (m.value = !0);
|
2105
2105
|
});
|
2106
2106
|
return le(() => {
|
2107
2107
|
E(), T(d) && Q.observe(T(d));
|
2108
|
-
}), (
|
2108
|
+
}), (L, H) => (A(), u("div", Hi, [
|
2109
2109
|
o("div", {
|
2110
2110
|
class: C({
|
2111
2111
|
"template-selector__container-inline": !e.elevatedWindow,
|
@@ -2117,23 +2117,23 @@ const Qd = (e, t = null) => {
|
|
2117
2117
|
}, [
|
2118
2118
|
o("div", Ki, [
|
2119
2119
|
o("div", Ji, [
|
2120
|
-
|
2120
|
+
h.value ? (A(), u("button", Gi, [
|
2121
2121
|
o("span", {
|
2122
2122
|
class: "pi pi-arrow-left",
|
2123
|
-
onClick:
|
2123
|
+
onClick: x
|
2124
2124
|
})
|
2125
2125
|
])) : b("", !0),
|
2126
2126
|
v.value ? (A(), u("button", Zi, [
|
2127
2127
|
o("span", {
|
2128
2128
|
class: "pi pi-arrow-right",
|
2129
|
-
onClick:
|
2129
|
+
onClick: O
|
2130
2130
|
})
|
2131
2131
|
])) : b("", !0)
|
2132
2132
|
]),
|
2133
2133
|
o("button", Xi, [
|
2134
2134
|
o("span", {
|
2135
2135
|
class: "pi pi-times",
|
2136
|
-
onClick:
|
2136
|
+
onClick: H[0] || (H[0] = (G) => L.$emit("closeTemplateWindow"))
|
2137
2137
|
})
|
2138
2138
|
])
|
2139
2139
|
]),
|
@@ -2143,7 +2143,7 @@ const Qd = (e, t = null) => {
|
|
2143
2143
|
id: "template-selector-first-col-" + T(n)
|
2144
2144
|
}, [
|
2145
2145
|
o("ul", fo, [
|
2146
|
-
(A(!0), u(
|
2146
|
+
(A(!0), u(q, null, fe(e.groupTemplates, (G, ie) => (A(), u("li", {
|
2147
2147
|
key: ie,
|
2148
2148
|
class: C(["template-selector__item-group", { "template-selector__item-selected": l.value === G }]),
|
2149
2149
|
onClick: w
|
@@ -2157,7 +2157,7 @@ const Qd = (e, t = null) => {
|
|
2157
2157
|
}, null, 8, ao)) : b("", !0),
|
2158
2158
|
ve(o("input", {
|
2159
2159
|
id: ie,
|
2160
|
-
"onUpdate:modelValue":
|
2160
|
+
"onUpdate:modelValue": H[1] || (H[1] = (K) => l.value = K),
|
2161
2161
|
value: G,
|
2162
2162
|
class: "template-selector__input-group",
|
2163
2163
|
type: "radio"
|
@@ -2175,7 +2175,7 @@ const Qd = (e, t = null) => {
|
|
2175
2175
|
}, [
|
2176
2176
|
o("div", oo, [
|
2177
2177
|
ve(o("input", {
|
2178
|
-
"onUpdate:modelValue":
|
2178
|
+
"onUpdate:modelValue": H[2] || (H[2] = (G) => r.value = G),
|
2179
2179
|
class: "template-selector__searching-input",
|
2180
2180
|
type: "text",
|
2181
2181
|
placeholder: "Поиск шаблона"
|
@@ -2185,7 +2185,7 @@ const Qd = (e, t = null) => {
|
|
2185
2185
|
]),
|
2186
2186
|
o("div", lo, [
|
2187
2187
|
j.value.length !== 0 ? (A(), u("ul", Ao, [
|
2188
|
-
(A(!0), u(
|
2188
|
+
(A(!0), u(q, null, fe(j.value, (G, ie) => (A(), u("li", {
|
2189
2189
|
key: ie,
|
2190
2190
|
class: C(["template-selector__item-template", { "template-selector__item-selected": G.isSelected }]),
|
2191
2191
|
onClick: (K) => _(G)
|
@@ -2206,7 +2206,7 @@ const Qd = (e, t = null) => {
|
|
2206
2206
|
c.value ? (A(), u("div", yo, [
|
2207
2207
|
o("div", vo, [
|
2208
2208
|
o("p", bo, D(c.value.template), 1),
|
2209
|
-
|
2209
|
+
H[3] || (H[3] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
|
2210
2210
|
])
|
2211
2211
|
])) : (A(), u("p", Mo, " Предпросмотр шаблона "))
|
2212
2212
|
]),
|
@@ -2258,7 +2258,7 @@ const Qd = (e, t = null) => {
|
|
2258
2258
|
};
|
2259
2259
|
return le(() => {
|
2260
2260
|
n.value.style.display = "none";
|
2261
|
-
}), (c, r) => (A(), u(
|
2261
|
+
}), (c, r) => (A(), u(q, null, [
|
2262
2262
|
o("button", {
|
2263
2263
|
ref_key: "templateButton",
|
2264
2264
|
ref: f,
|
@@ -2269,7 +2269,7 @@ const Qd = (e, t = null) => {
|
|
2269
2269
|
}, r[0] || (r[0] = [
|
2270
2270
|
o("span", { class: "pi pi-objects-column" }, null, -1)
|
2271
2271
|
]), 34),
|
2272
|
-
|
2272
|
+
P(Z, null, {
|
2273
2273
|
default: J(() => [
|
2274
2274
|
o("div", {
|
2275
2275
|
ref_key: "template",
|
@@ -2277,7 +2277,7 @@ const Qd = (e, t = null) => {
|
|
2277
2277
|
onMouseover: s,
|
2278
2278
|
onMouseout: i
|
2279
2279
|
}, [
|
2280
|
-
|
2280
|
+
P(Io, {
|
2281
2281
|
templates: e.templates,
|
2282
2282
|
"group-templates": e.groupTemplates,
|
2283
2283
|
"elevated-window": e.elevatedWindow,
|
@@ -2311,32 +2311,30 @@ const Qd = (e, t = null) => {
|
|
2311
2311
|
f.isFilled || (a.value = "");
|
2312
2312
|
};
|
2313
2313
|
function l() {
|
2314
|
-
a.value = s.value.innerText.trim(), a.value != "" ? n("edit", a.value) : a.value = "Заполнить";
|
2315
|
-
}
|
2316
|
-
function c(g) {
|
2317
|
-
g.target.blur(), l();
|
2314
|
+
f.value != a.value && (a.value = s.value.innerText.trim(), a.value != "" ? n("edit", [a.value, f.index]) : f.isFilled ? a.value = f.value : a.value = "Заполнить");
|
2318
2315
|
}
|
2319
|
-
function
|
2320
|
-
|
2316
|
+
function c(d) {
|
2317
|
+
d.target.blur(), l();
|
2321
2318
|
}
|
2322
|
-
function d
|
2323
|
-
|
2319
|
+
function r(d) {
|
2320
|
+
d.key === "Escape" && (d.target.blur(), l()), d.key == "Tab" && (l(), d.target.blur());
|
2324
2321
|
}
|
2325
2322
|
return le(() => {
|
2326
|
-
window.addEventListener("
|
2323
|
+
window.addEventListener("keydown", r);
|
2327
2324
|
}), He(() => {
|
2328
|
-
window.removeEventListener("
|
2329
|
-
}), (
|
2325
|
+
window.removeEventListener("keydown", r);
|
2326
|
+
}), (d, g) => (A(), u("span", {
|
2330
2327
|
ref_key: "refPlaceholder",
|
2331
2328
|
ref: s,
|
2332
2329
|
id: "placeholder",
|
2333
2330
|
contenteditable: "",
|
2334
2331
|
class: C([{ filled: e.isFilled, empty: !e.isFilled }, "placeholder"]),
|
2335
2332
|
onKeydown: Hf(c, ["enter"]),
|
2336
|
-
|
2333
|
+
onFocus: i,
|
2334
|
+
onBlur: l
|
2337
2335
|
}, D(a.value), 35));
|
2338
2336
|
}
|
2339
|
-
}, No = /* @__PURE__ */ U(ko, [["__scopeId", "data-v-
|
2337
|
+
}, No = /* @__PURE__ */ U(ko, [["__scopeId", "data-v-fb084a40"]]), Do = ["accept"], Eo = { class: "attachment-section__info open-sans" }, jo = {
|
2340
2338
|
key: 2,
|
2341
2339
|
class: "attachment-section__error-text"
|
2342
2340
|
}, To = /* @__PURE__ */ W({
|
@@ -2353,9 +2351,9 @@ const Qd = (e, t = null) => {
|
|
2353
2351
|
},
|
2354
2352
|
emits: ["fileSelected"],
|
2355
2353
|
setup(e, { emit: t }) {
|
2356
|
-
const f = e, n = M(oe("filebumpUrl")), a = M(null), s = M(), i = M(""), l = M(""), c = M(!1), r = M(!1), d = M(!1), g = M(""),
|
2354
|
+
const f = e, n = M(oe("filebumpUrl")), a = M(null), s = M(), i = M(""), l = M(""), c = M(!1), r = M(!1), d = M(!1), g = M(""), y = M(""), p = t, m = () => {
|
2357
2355
|
s.value && l.value != "success" && s.value.click();
|
2358
|
-
},
|
2356
|
+
}, h = {
|
2359
2357
|
DOCUMENT: {
|
2360
2358
|
text: "Документ до 100 МБ",
|
2361
2359
|
accept: ".pdf,.doc,.docx,.xls,.xlsx",
|
@@ -2377,25 +2375,25 @@ const Qd = (e, t = null) => {
|
|
2377
2375
|
error: "Некорректный тип файла, выберите MP4 или MOV",
|
2378
2376
|
icon: "pi pi-video"
|
2379
2377
|
}
|
2380
|
-
}, v = (
|
2381
|
-
const k =
|
2378
|
+
}, v = (V) => {
|
2379
|
+
const k = V.target.files[0];
|
2382
2380
|
if (k) {
|
2383
2381
|
i.value = "";
|
2384
2382
|
const E = k.name.split(".");
|
2385
|
-
|
2383
|
+
h[f.type].accept.indexOf(E[E.length - 1]) == -1 ? i.value = h[f.type].error : k.size > h[f.type].maxSize ? i.value = "Файл слишком большого размера" : i.value || (a.value = k, x(), O());
|
2386
2384
|
}
|
2387
|
-
},
|
2385
|
+
}, x = async () => {
|
2388
2386
|
if (a.value) {
|
2389
2387
|
l.value = "uploading";
|
2390
|
-
const
|
2391
|
-
|
2388
|
+
const V = new FormData();
|
2389
|
+
V.append("file", a.value);
|
2392
2390
|
const E = (n.value ? n.value : "https://filebump2.services.mobilon.ru") + "/upload";
|
2393
2391
|
try {
|
2394
2392
|
const w = await (await fetch(
|
2395
2393
|
E,
|
2396
2394
|
{
|
2397
2395
|
method: "POST",
|
2398
|
-
body:
|
2396
|
+
body: V
|
2399
2397
|
}
|
2400
2398
|
)).json();
|
2401
2399
|
l.value = "success", p("fileSelected", {
|
@@ -2408,40 +2406,40 @@ const Qd = (e, t = null) => {
|
|
2408
2406
|
console.error("Ошибка при загрузке файла:", _), l.value = "error";
|
2409
2407
|
}
|
2410
2408
|
}
|
2411
|
-
},
|
2412
|
-
const
|
2413
|
-
if (
|
2414
|
-
const k = hf(
|
2409
|
+
}, O = () => {
|
2410
|
+
const V = a.value;
|
2411
|
+
if (V) {
|
2412
|
+
const k = hf(V.type);
|
2415
2413
|
if (c.value = !1, r.value = !1, d.value = !1, k === "image" ? c.value = !0 : k === "video" ? r.value = !0 : k === "audio" && (d.value = !0), c.value || r.value) {
|
2416
2414
|
const N = new FileReader();
|
2417
2415
|
N.onload = (j) => {
|
2418
2416
|
var Q;
|
2419
2417
|
(Q = j.target) != null && Q.result && (g.value = String(j.target.result));
|
2420
|
-
}, N.readAsDataURL(
|
2418
|
+
}, N.readAsDataURL(V);
|
2421
2419
|
} else
|
2422
2420
|
g.value = "";
|
2423
2421
|
const E = ["б", "Кб", "Мб", "Гб"];
|
2424
|
-
let _ =
|
2422
|
+
let _ = V.size, w = 0;
|
2425
2423
|
for (; _ > 1024; )
|
2426
2424
|
_ = _ / 1024, w++;
|
2427
|
-
|
2425
|
+
y.value = _.toFixed(2) + E[w];
|
2428
2426
|
}
|
2429
|
-
},
|
2427
|
+
}, z = () => {
|
2430
2428
|
a.value && (a.value = null, l.value = "");
|
2431
2429
|
};
|
2432
2430
|
return X(
|
2433
2431
|
() => l.value,
|
2434
|
-
(
|
2435
|
-
|
2432
|
+
(V) => {
|
2433
|
+
V === "" && (s.value && (s.value.value = ""), a.value = null, p("fileSelected", null));
|
2436
2434
|
}
|
2437
2435
|
), X(
|
2438
2436
|
() => f.templateId,
|
2439
2437
|
() => {
|
2440
2438
|
l.value = "";
|
2441
2439
|
}
|
2442
|
-
), (
|
2440
|
+
), (V, k) => {
|
2443
2441
|
var E;
|
2444
|
-
return A(), u(
|
2442
|
+
return A(), u(q, null, [
|
2445
2443
|
l.value !== "success" ? (A(), u("div", {
|
2446
2444
|
key: 0,
|
2447
2445
|
class: C(["attachment-section", { "attachment-section__error": i.value }]),
|
@@ -2453,13 +2451,13 @@ const Qd = (e, t = null) => {
|
|
2453
2451
|
ref_key: "fileInput",
|
2454
2452
|
ref: s,
|
2455
2453
|
style: { display: "none" },
|
2456
|
-
accept:
|
2454
|
+
accept: h[e.type].accept,
|
2457
2455
|
onChange: v
|
2458
2456
|
}, null, 40, Do),
|
2459
2457
|
k[1] || (k[1] = o("span", { class: "pi pi-paperclip attachment-section__icon" }, null, -1)),
|
2460
2458
|
o("div", null, [
|
2461
2459
|
k[0] || (k[0] = o("p", { class: "attachment-section__title open-sans-bold" }, " Прикрепить файл ", -1)),
|
2462
|
-
o("p", Eo, D(
|
2460
|
+
o("p", Eo, D(h[e.type].text), 1)
|
2463
2461
|
])
|
2464
2462
|
], 2)) : l.value === "success" ? (A(), R(ra, {
|
2465
2463
|
key: 1,
|
@@ -2468,14 +2466,14 @@ const Qd = (e, t = null) => {
|
|
2468
2466
|
"is-video": r.value,
|
2469
2467
|
"is-audio": d.value,
|
2470
2468
|
"file-name": (E = a.value) == null ? void 0 : E.name,
|
2471
|
-
"file-size":
|
2472
|
-
onReset:
|
2469
|
+
"file-size": y.value,
|
2470
|
+
onReset: z
|
2473
2471
|
}, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])) : b("", !0),
|
2474
2472
|
i.value ? (A(), u("div", jo, D(i.value), 1)) : b("", !0)
|
2475
2473
|
], 64);
|
2476
2474
|
};
|
2477
2475
|
}
|
2478
|
-
}), xo = /* @__PURE__ */ U(To, [["__scopeId", "data-v-335d7577"]]), Vo = { class: "quick-reply-buttons" }, So = ["onClick"], Co = { class: "quick-reply-buttons__line" },
|
2476
|
+
}), xo = /* @__PURE__ */ U(To, [["__scopeId", "data-v-335d7577"]]), Vo = { class: "quick-reply-buttons" }, So = ["onClick"], Co = { class: "quick-reply-buttons__line" }, Oo = /* @__PURE__ */ W({
|
2479
2477
|
__name: "WABAQuickReplyButtons",
|
2480
2478
|
props: {
|
2481
2479
|
buttons: {
|
@@ -2493,7 +2491,7 @@ const Qd = (e, t = null) => {
|
|
2493
2491
|
i == 2 && n.buttons.length > 3 && f("selectAllVariants");
|
2494
2492
|
};
|
2495
2493
|
return (i, l) => (A(), u("div", Vo, [
|
2496
|
-
(A(!0), u(
|
2494
|
+
(A(!0), u(q, null, fe(e.buttons.slice(0, 3), (c, r) => (A(), u("div", {
|
2497
2495
|
class: "quick-reply-buttons__preview-action",
|
2498
2496
|
key: r,
|
2499
2497
|
onClick: (d) => s(r)
|
@@ -2508,7 +2506,7 @@ const Qd = (e, t = null) => {
|
|
2508
2506
|
], 8, So))), 128))
|
2509
2507
|
]));
|
2510
2508
|
}
|
2511
|
-
}),
|
2509
|
+
}), zo = /* @__PURE__ */ U(Oo, [["__scopeId", "data-v-51dfc2ee"]]), Lo = { class: "separated-quick-buttons" }, Uo = { class: "separated-quick-buttons__title" }, Bo = { class: "separated-quick-buttons__actions scrollbar" }, Qo = /* @__PURE__ */ W({
|
2512
2510
|
__name: "WABASeparatedQuickButtons",
|
2513
2511
|
props: {
|
2514
2512
|
buttons: {
|
@@ -2532,7 +2530,7 @@ const Qd = (e, t = null) => {
|
|
2532
2530
|
})
|
2533
2531
|
]),
|
2534
2532
|
o("div", Bo, [
|
2535
|
-
(A(!0), u(
|
2533
|
+
(A(!0), u(q, null, fe(e.buttons, (i, l) => (A(), u("div", {
|
2536
2534
|
class: "separated-quick-buttons__action",
|
2537
2535
|
key: l
|
2538
2536
|
}, [
|
@@ -2544,7 +2542,7 @@ const Qd = (e, t = null) => {
|
|
2544
2542
|
])
|
2545
2543
|
]));
|
2546
2544
|
}
|
2547
|
-
}), Ro = /* @__PURE__ */ U(Qo, [["__scopeId", "data-v-1fa4012a"]]), Yo = { class: "template-selector" }, $o = ["id"],
|
2545
|
+
}), Ro = /* @__PURE__ */ U(Qo, [["__scopeId", "data-v-1fa4012a"]]), Yo = { class: "template-selector" }, $o = ["id"], Po = { style: { display: "flex" } }, Fo = { style: { display: "flex" } }, qo = {
|
2548
2546
|
key: 0,
|
2549
2547
|
class: "template-selector__button-close"
|
2550
2548
|
}, Ho = {
|
@@ -2600,18 +2598,20 @@ const Qd = (e, t = null) => {
|
|
2600
2598
|
g.value ? (S.text = Se.value, S.templateId = d.value.templateId, S.values = Ye.value, S.file = g.value) : (S.text = Se.value, S.templateId = d.value.templateId, S.values = Ye.value), d.value.buttons && (S.buttons = d.value.buttons), a("sendWabaValues", S), Ge();
|
2601
2599
|
}, l = (S) => {
|
2602
2600
|
g.value = S;
|
2603
|
-
}, c = M(null), r = M(null), d = M(null), g = M(null),
|
2601
|
+
}, c = M(null), r = M(null), d = M(null), g = M(null), y = M(""), p = M(!1), m = () => {
|
2604
2602
|
p.value = !p.value, p.value ? (c.value.scrollTop = 0, c.value.style["overflow-y"] = "hidden") : c.value.style["overflow-y"] = "scroll";
|
2605
|
-
},
|
2606
|
-
f.wabaTemplates.forEach((
|
2603
|
+
}, h = (S) => {
|
2604
|
+
f.wabaTemplates.forEach((F) => F.isSelected = !1), S.isSelected = !0, d.value = S, p.value = !1, Object.keys(z).forEach((F) => {
|
2605
|
+
z[F] = "";
|
2606
|
+
}), g.value = null, ie();
|
2607
2607
|
}, v = () => {
|
2608
2608
|
K(), f.wabaTemplates.forEach((S) => S.isSelected = !1);
|
2609
|
-
},
|
2610
|
-
const S =
|
2611
|
-
return
|
2612
|
-
}),
|
2609
|
+
}, x = B(() => r.value ? f.wabaTemplates.filter((S) => S.groupId === r.value.groupId) : f.wabaTemplates), O = B(() => {
|
2610
|
+
const S = y.value.trim().toLowerCase();
|
2611
|
+
return x.value.filter((F) => F.title.toLowerCase().includes(S) || F.template.toLowerCase().includes(S));
|
2612
|
+
}), z = Jn({}), V = M(null), k = M(), E = M(""), _ = M(""), w = M(""), N = M(!1), j = B(() => !!(N.value && (w.value == "grid" && _.value == "none" || _.value == "grid" && E.value == "none"))), Q = B(() => !!(N.value && (E.value == "grid" && _.value == "none" || _.value == "grid" && w.value == "none"))), L = () => {
|
2613
2613
|
N.value && (_.value == "grid" ? G() : w.value == "grid" && K());
|
2614
|
-
},
|
2614
|
+
}, H = () => {
|
2615
2615
|
N.value && (_.value == "grid" ? ie() : E.value == "grid" && K());
|
2616
2616
|
}, G = () => {
|
2617
2617
|
const S = document.getElementById("waba-template-selector-container-" + n);
|
@@ -2623,51 +2623,51 @@ const Qd = (e, t = null) => {
|
|
2623
2623
|
const S = document.getElementById("waba-template-selector-container-" + n);
|
2624
2624
|
S.style.setProperty("--waba-template-second-col-display", "grid"), S.style.setProperty("--waba-template-first-col-display", "none"), S.style.setProperty("--waba-template-third-col-display", "none"), ee();
|
2625
2625
|
}, ee = () => {
|
2626
|
-
const S = document.getElementById("waba-template-selector-container-" + n),
|
2627
|
-
E.value =
|
2626
|
+
const S = document.getElementById("waba-template-selector-container-" + n), F = window.getComputedStyle(S);
|
2627
|
+
E.value = F.getPropertyValue("--waba-template-first-col-display"), _.value = F.getPropertyValue("--waba-template-second-col-display"), w.value = F.getPropertyValue("--waba-template-third-col-display");
|
2628
2628
|
}, Ke = (S) => {
|
2629
|
-
|
2629
|
+
z[S[1]] = S[0];
|
2630
2630
|
}, ge = B(() => {
|
2631
2631
|
var we;
|
2632
2632
|
const S = (we = d.value) == null ? void 0 : we.template;
|
2633
2633
|
if (!S) return [];
|
2634
|
-
const
|
2634
|
+
const F = [...S.matchAll(/{{\d+}}/g)], Y = [];
|
2635
2635
|
let ae = 0;
|
2636
|
-
return
|
2636
|
+
return F.forEach(($e) => {
|
2637
2637
|
$e.index > ae && Y.push(S.substring(ae, $e.index)), Y.push({ index: parseInt($e[0].slice(2, -2)) }), ae = $e.index + $e[0].length;
|
2638
2638
|
}), ae < S.length && Y.push(S.substring(ae)), Y;
|
2639
2639
|
}), Je = B(() => {
|
2640
|
-
var
|
2640
|
+
var F, Y;
|
2641
2641
|
if (!d.value)
|
2642
2642
|
return !0;
|
2643
|
-
if (!((
|
2643
|
+
if (!((F = d.value) != null && F.template.match(/{{\d+}}/gi)))
|
2644
2644
|
return !1;
|
2645
|
-
const S = Object.keys(
|
2645
|
+
const S = Object.keys(z).length !== ((Y = d.value) == null ? void 0 : Y.template.match(/{{\d+}}/gi).length);
|
2646
2646
|
if (d.value.type === "TEXT")
|
2647
2647
|
return S;
|
2648
2648
|
if (d.value.type !== "TEXT")
|
2649
2649
|
return S || !g.value;
|
2650
2650
|
}), Ge = () => {
|
2651
|
-
Object.keys(
|
2652
|
-
|
2651
|
+
Object.keys(z).forEach((S) => {
|
2652
|
+
z[S] = "";
|
2653
2653
|
}), g.value = null, d.value = null, f.wabaTemplates.forEach((S) => S.isSelected = !1);
|
2654
2654
|
}, Se = B(() => {
|
2655
2655
|
console.log(ge.value, d.value.buttons);
|
2656
|
-
let S = ge.value.map((Y) => typeof Y == "string" ? Y :
|
2657
|
-
return d.value.buttons && (
|
2658
|
-
| [` + Y.text + "]").join("")), S.concat(
|
2656
|
+
let S = ge.value.map((Y) => typeof Y == "string" ? Y : z[Y.index]).join(""), F = "";
|
2657
|
+
return d.value.buttons && (F = d.value.buttons.map((Y) => `
|
2658
|
+
| [` + Y.text + "]").join("")), S.concat(F);
|
2659
2659
|
}), Ye = B(() => {
|
2660
2660
|
const S = [];
|
2661
|
-
for (const
|
2662
|
-
|
2661
|
+
for (const F in z)
|
2662
|
+
z[F] !== "" && z[F] !== "Заполнить" && S.push(z[F]);
|
2663
2663
|
return S;
|
2664
2664
|
}), Ce = new ResizeObserver((S) => {
|
2665
|
-
const
|
2666
|
-
|
2665
|
+
const F = S[0].target.clientWidth;
|
2666
|
+
F > 700 && (N.value = !1), F < 700 && (N.value = !0);
|
2667
2667
|
});
|
2668
2668
|
return le(() => {
|
2669
2669
|
ee(), T(k) && Ce.observe(T(k));
|
2670
|
-
}), (S,
|
2670
|
+
}), (S, F) => (A(), u("div", Yo, [
|
2671
2671
|
o("div", {
|
2672
2672
|
class: C({
|
2673
2673
|
"template-selector__container-inline": !e.elevatedWindow,
|
@@ -2677,18 +2677,18 @@ const Qd = (e, t = null) => {
|
|
2677
2677
|
ref: k,
|
2678
2678
|
id: "waba-template-selector-container-" + T(n)
|
2679
2679
|
}, [
|
2680
|
-
o("div",
|
2681
|
-
o("div",
|
2680
|
+
o("div", Po, [
|
2681
|
+
o("div", Fo, [
|
2682
2682
|
j.value ? (A(), u("button", qo, [
|
2683
2683
|
o("span", {
|
2684
2684
|
class: "pi pi-arrow-left",
|
2685
|
-
onClick:
|
2685
|
+
onClick: L
|
2686
2686
|
})
|
2687
2687
|
])) : b("", !0),
|
2688
2688
|
Q.value ? (A(), u("button", Ho, [
|
2689
2689
|
o("span", {
|
2690
2690
|
class: "pi pi-arrow-right",
|
2691
|
-
onClick:
|
2691
|
+
onClick: H
|
2692
2692
|
})
|
2693
2693
|
])) : b("", !0)
|
2694
2694
|
]),
|
@@ -2702,7 +2702,7 @@ const Qd = (e, t = null) => {
|
|
2702
2702
|
o("div", Wo, [
|
2703
2703
|
o("div", Ko, [
|
2704
2704
|
o("ul", Jo, [
|
2705
|
-
(A(!0), u(
|
2705
|
+
(A(!0), u(q, null, fe(e.groupTemplates, (Y, ae) => (A(), u("li", {
|
2706
2706
|
key: ae,
|
2707
2707
|
class: C(["template-selector__item-group", { "template-selector__item-selected": r.value === Y }]),
|
2708
2708
|
onClick: v
|
@@ -2716,7 +2716,7 @@ const Qd = (e, t = null) => {
|
|
2716
2716
|
}, null, 8, Zo)) : b("", !0),
|
2717
2717
|
ve(o("input", {
|
2718
2718
|
id: ae,
|
2719
|
-
"onUpdate:modelValue":
|
2719
|
+
"onUpdate:modelValue": F[0] || (F[0] = (we) => r.value = we),
|
2720
2720
|
value: Y,
|
2721
2721
|
class: "template-selector__input-group",
|
2722
2722
|
type: "radio"
|
@@ -2731,20 +2731,20 @@ const Qd = (e, t = null) => {
|
|
2731
2731
|
o("div", el, [
|
2732
2732
|
o("div", tl, [
|
2733
2733
|
ve(o("input", {
|
2734
|
-
"onUpdate:modelValue":
|
2734
|
+
"onUpdate:modelValue": F[1] || (F[1] = (Y) => y.value = Y),
|
2735
2735
|
class: "template-selector__searching-input",
|
2736
2736
|
type: "text",
|
2737
2737
|
placeholder: "Поиск шаблона"
|
2738
2738
|
}, null, 512), [
|
2739
|
-
[Et,
|
2739
|
+
[Et, y.value]
|
2740
2740
|
])
|
2741
2741
|
]),
|
2742
2742
|
o("div", fl, [
|
2743
|
-
|
2744
|
-
(A(!0), u(
|
2743
|
+
O.value.length !== 0 ? (A(), u("ul", nl, [
|
2744
|
+
(A(!0), u(q, null, fe(O.value, (Y, ae) => (A(), u("li", {
|
2745
2745
|
key: ae,
|
2746
2746
|
class: C(["template-selector__item-template", { "template-selector__item-selected": Y.isSelected }]),
|
2747
|
-
onClick: (we) =>
|
2747
|
+
onClick: (we) => h(Y)
|
2748
2748
|
}, [
|
2749
2749
|
o("div", sl, [
|
2750
2750
|
o("p", il, D(Y.title), 1),
|
@@ -2769,19 +2769,19 @@ const Qd = (e, t = null) => {
|
|
2769
2769
|
onFileSelected: l
|
2770
2770
|
}, null, 8, ["type", "template-id"])) : b("", !0),
|
2771
2771
|
o("div", ul, [
|
2772
|
-
(A(!0), u(
|
2772
|
+
(A(!0), u(q, null, fe(ge.value, (Y, ae) => (A(), u(q, { key: ae }, [
|
2773
2773
|
typeof Y == "string" ? (A(), u("span", dl, D(Y), 1)) : typeof Y == "object" ? (A(), R(No, {
|
2774
2774
|
key: 1,
|
2775
2775
|
index: Y.index,
|
2776
|
-
value:
|
2777
|
-
"is-filled": !!
|
2778
|
-
onClick: (we) =>
|
2776
|
+
value: z[Y.index] || "Заполнить",
|
2777
|
+
"is-filled": !!z[Y.index],
|
2778
|
+
onClick: (we) => V.value = Y.index,
|
2779
2779
|
onEdit: Ke
|
2780
2780
|
}, null, 8, ["index", "value", "is-filled", "onClick"])) : b("", !0)
|
2781
2781
|
], 64))), 128))
|
2782
2782
|
]),
|
2783
|
-
|
2784
|
-
d.value.buttons ? (A(), R(
|
2783
|
+
F[2] || (F[2] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1)),
|
2784
|
+
d.value.buttons ? (A(), R(zo, {
|
2785
2785
|
key: 1,
|
2786
2786
|
buttons: d.value.buttons,
|
2787
2787
|
onSelectAllVariants: m
|
@@ -2793,7 +2793,7 @@ const Qd = (e, t = null) => {
|
|
2793
2793
|
class: "template-selector__semitransparent-overlay",
|
2794
2794
|
onClick: m
|
2795
2795
|
}),
|
2796
|
-
|
2796
|
+
P(Ro, {
|
2797
2797
|
buttons: d.value.buttons,
|
2798
2798
|
onSelectAllVariants: m
|
2799
2799
|
}, null, 8, ["buttons"])
|
@@ -2809,7 +2809,7 @@ const Qd = (e, t = null) => {
|
|
2809
2809
|
], 10, $o)
|
2810
2810
|
]));
|
2811
2811
|
}
|
2812
|
-
}, yl = /* @__PURE__ */ U(hl, [["__scopeId", "data-v-
|
2812
|
+
}, yl = /* @__PURE__ */ U(hl, [["__scopeId", "data-v-cb09cd8a"]]), vl = {
|
2813
2813
|
__name: "ButtonWabaTemplateSelector",
|
2814
2814
|
props: {
|
2815
2815
|
wabaTemplates: {
|
@@ -2858,7 +2858,7 @@ const Qd = (e, t = null) => {
|
|
2858
2858
|
const d = (g) => {
|
2859
2859
|
s("sendWabaValues", g);
|
2860
2860
|
};
|
2861
|
-
return (g,
|
2861
|
+
return (g, y) => (A(), u(q, null, [
|
2862
2862
|
o("button", {
|
2863
2863
|
ref_key: "templateButton",
|
2864
2864
|
ref: n,
|
@@ -2866,7 +2866,7 @@ const Qd = (e, t = null) => {
|
|
2866
2866
|
onClick: i,
|
2867
2867
|
onMouseover: l,
|
2868
2868
|
onMouseout: c
|
2869
|
-
},
|
2869
|
+
}, y[0] || (y[0] = [
|
2870
2870
|
o("span", { class: "pi pi-code" }, null, -1)
|
2871
2871
|
]), 34),
|
2872
2872
|
o("div", {
|
@@ -2875,7 +2875,7 @@ const Qd = (e, t = null) => {
|
|
2875
2875
|
onMouseover: l,
|
2876
2876
|
onMouseout: c
|
2877
2877
|
}, [
|
2878
|
-
|
2878
|
+
P(yl, {
|
2879
2879
|
"waba-templates": e.wabaTemplates,
|
2880
2880
|
"group-templates": e.groupTemplates,
|
2881
2881
|
"elevated-window": e.elevatedWindow,
|
@@ -11554,7 +11554,7 @@ const Qd = (e, t = null) => {
|
|
11554
11554
|
],
|
11555
11555
|
u: "1f6d2"
|
11556
11556
|
}
|
11557
|
-
],
|
11557
|
+
], Ol = [
|
11558
11558
|
{
|
11559
11559
|
n: [
|
11560
11560
|
"automated teller machine",
|
@@ -12952,7 +12952,7 @@ const Qd = (e, t = null) => {
|
|
12952
12952
|
],
|
12953
12953
|
u: "1f535"
|
12954
12954
|
}
|
12955
|
-
],
|
12955
|
+
], zl = [
|
12956
12956
|
{
|
12957
12957
|
n: [
|
12958
12958
|
"chequered flag",
|
@@ -14839,8 +14839,8 @@ var Ll = {
|
|
14839
14839
|
activities: Vl,
|
14840
14840
|
travel_places: Sl,
|
14841
14841
|
objects: Cl,
|
14842
|
-
symbols:
|
14843
|
-
flags:
|
14842
|
+
symbols: Ol,
|
14843
|
+
flags: zl
|
14844
14844
|
}, Sn = [
|
14845
14845
|
{
|
14846
14846
|
key: "recent",
|
@@ -14889,7 +14889,7 @@ var Ll = {
|
|
14889
14889
|
}
|
14890
14890
|
];
|
14891
14891
|
const Ul = (e, t) => t.some((f) => e instanceof f);
|
14892
|
-
let Cn,
|
14892
|
+
let Cn, On;
|
14893
14893
|
function Bl() {
|
14894
14894
|
return Cn || (Cn = [
|
14895
14895
|
IDBDatabase,
|
@@ -14900,13 +14900,13 @@ function Bl() {
|
|
14900
14900
|
]);
|
14901
14901
|
}
|
14902
14902
|
function Ql() {
|
14903
|
-
return
|
14903
|
+
return On || (On = [
|
14904
14904
|
IDBCursor.prototype.advance,
|
14905
14905
|
IDBCursor.prototype.continue,
|
14906
14906
|
IDBCursor.prototype.continuePrimaryKey
|
14907
14907
|
]);
|
14908
14908
|
}
|
14909
|
-
const ga = /* @__PURE__ */ new WeakMap(),
|
14909
|
+
const ga = /* @__PURE__ */ new WeakMap(), Pf = /* @__PURE__ */ new WeakMap(), ma = /* @__PURE__ */ new WeakMap(), Sf = /* @__PURE__ */ new WeakMap(), nn = /* @__PURE__ */ new WeakMap();
|
14910
14910
|
function Rl(e) {
|
14911
14911
|
const t = new Promise((f, n) => {
|
14912
14912
|
const a = () => {
|
@@ -14924,7 +14924,7 @@ function Rl(e) {
|
|
14924
14924
|
}), nn.set(t, e), t;
|
14925
14925
|
}
|
14926
14926
|
function Yl(e) {
|
14927
|
-
if (
|
14927
|
+
if (Pf.has(e))
|
14928
14928
|
return;
|
14929
14929
|
const t = new Promise((f, n) => {
|
14930
14930
|
const a = () => {
|
@@ -14936,13 +14936,13 @@ function Yl(e) {
|
|
14936
14936
|
};
|
14937
14937
|
e.addEventListener("complete", s), e.addEventListener("error", i), e.addEventListener("abort", i);
|
14938
14938
|
});
|
14939
|
-
|
14939
|
+
Pf.set(e, t);
|
14940
14940
|
}
|
14941
|
-
let
|
14941
|
+
let Ff = {
|
14942
14942
|
get(e, t, f) {
|
14943
14943
|
if (e instanceof IDBTransaction) {
|
14944
14944
|
if (t === "done")
|
14945
|
-
return
|
14945
|
+
return Pf.get(e);
|
14946
14946
|
if (t === "objectStoreNames")
|
14947
14947
|
return e.objectStoreNames || ma.get(e);
|
14948
14948
|
if (t === "store")
|
@@ -14958,9 +14958,9 @@ let Pf = {
|
|
14958
14958
|
}
|
14959
14959
|
};
|
14960
14960
|
function $l(e) {
|
14961
|
-
|
14961
|
+
Ff = e(Ff);
|
14962
14962
|
}
|
14963
|
-
function
|
14963
|
+
function Pl(e) {
|
14964
14964
|
return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(t, ...f) {
|
14965
14965
|
const n = e.call(Cf(this), t, ...f);
|
14966
14966
|
return ma.set(n, t.sort ? t.sort() : [t]), Ue(n);
|
@@ -14970,15 +14970,15 @@ function Fl(e) {
|
|
14970
14970
|
return Ue(e.apply(Cf(this), t));
|
14971
14971
|
};
|
14972
14972
|
}
|
14973
|
-
function
|
14974
|
-
return typeof e == "function" ?
|
14973
|
+
function Fl(e) {
|
14974
|
+
return typeof e == "function" ? Pl(e) : (e instanceof IDBTransaction && Yl(e), Ul(e, Bl()) ? new Proxy(e, Ff) : e);
|
14975
14975
|
}
|
14976
14976
|
function Ue(e) {
|
14977
14977
|
if (e instanceof IDBRequest)
|
14978
14978
|
return Rl(e);
|
14979
14979
|
if (Sf.has(e))
|
14980
14980
|
return Sf.get(e);
|
14981
|
-
const t =
|
14981
|
+
const t = Fl(e);
|
14982
14982
|
return t !== e && (Sf.set(e, t), nn.set(t, e)), t;
|
14983
14983
|
}
|
14984
14984
|
const Cf = (e) => nn.get(e);
|
@@ -14995,12 +14995,12 @@ function an(e, t, { blocked: f, upgrade: n, blocking: a, terminated: s } = {}) {
|
|
14995
14995
|
}).catch(() => {
|
14996
14996
|
}), l;
|
14997
14997
|
}
|
14998
|
-
const ql = ["get", "getKey", "getAll", "getAllKeys", "count"], Hl = ["put", "add", "delete", "clear"],
|
14999
|
-
function
|
14998
|
+
const ql = ["get", "getKey", "getAll", "getAllKeys", "count"], Hl = ["put", "add", "delete", "clear"], Of = /* @__PURE__ */ new Map();
|
14999
|
+
function zn(e, t) {
|
15000
15000
|
if (!(e instanceof IDBDatabase && !(t in e) && typeof t == "string"))
|
15001
15001
|
return;
|
15002
|
-
if (
|
15003
|
-
return
|
15002
|
+
if (Of.get(t))
|
15003
|
+
return Of.get(t);
|
15004
15004
|
const f = t.replace(/FromIndex$/, ""), n = t !== f, a = Hl.includes(f);
|
15005
15005
|
if (!(f in (n ? IDBIndex : IDBObjectStore).prototype) || !(a || ql.includes(f)))
|
15006
15006
|
return;
|
@@ -15012,12 +15012,12 @@ function On(e, t) {
|
|
15012
15012
|
a && c.done
|
15013
15013
|
]))[0];
|
15014
15014
|
};
|
15015
|
-
return
|
15015
|
+
return Of.set(t, s), s;
|
15016
15016
|
}
|
15017
15017
|
$l((e) => ({
|
15018
15018
|
...e,
|
15019
|
-
get: (t, f, n) =>
|
15020
|
-
has: (t, f) => !!
|
15019
|
+
get: (t, f, n) => zn(t, f) || e.get(t, f, n),
|
15020
|
+
has: (t, f) => !!zn(t, f) || e.has(t, f)
|
15021
15021
|
}));
|
15022
15022
|
const sn = "EMJ", et = "emojis", on = 3;
|
15023
15023
|
async function Wl() {
|
@@ -15078,9 +15078,9 @@ function Gl() {
|
|
15078
15078
|
const g = [
|
15079
15079
|
...this.options.groupOrder,
|
15080
15080
|
...Object.keys(this.options.additionalGroups),
|
15081
|
-
...Sn.map((
|
15081
|
+
...Sn.map((y) => y.key)
|
15082
15082
|
];
|
15083
|
-
return [...new Set(g)].filter((
|
15083
|
+
return [...new Set(g)].filter((y) => !this.disabled.includes(y));
|
15084
15084
|
}
|
15085
15085
|
});
|
15086
15086
|
function t() {
|
@@ -15088,8 +15088,8 @@ function Gl() {
|
|
15088
15088
|
}
|
15089
15089
|
async function f() {
|
15090
15090
|
var g;
|
15091
|
-
let
|
15092
|
-
return Array.isArray(
|
15091
|
+
let y = await Jl();
|
15092
|
+
return Array.isArray(y) && y.length ? y = JSON.parse(((g = y[0]) == null ? void 0 : g.value) || "") : y = [], y;
|
15093
15093
|
}
|
15094
15094
|
function n() {
|
15095
15095
|
f().then((g) => {
|
@@ -15116,14 +15116,14 @@ function Gl() {
|
|
15116
15116
|
const d = (g) => {
|
15117
15117
|
if (e.options.displayRecent !== !0)
|
15118
15118
|
return;
|
15119
|
-
const
|
15120
|
-
if (
|
15119
|
+
const y = e.recent.findIndex((m) => m.u === g.u);
|
15120
|
+
if (y > 0 && e.recent.splice(y, 1), y === 0)
|
15121
15121
|
return;
|
15122
15122
|
const p = { u: g.u, n: Gn(g.n) };
|
15123
15123
|
e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), r();
|
15124
15124
|
};
|
15125
15125
|
return {
|
15126
|
-
state:
|
15126
|
+
state: za(e),
|
15127
15127
|
updateSearch: a,
|
15128
15128
|
updateEmoji: s,
|
15129
15129
|
updateActiveGroup: i,
|
@@ -15319,7 +15319,7 @@ var pA = function(t, f) {
|
|
15319
15319
|
function hA(e) {
|
15320
15320
|
var t, f = e.state, n = e.name, a = e.options, s = f.elements.arrow, i = f.modifiersData.popperOffsets, l = De(f.placement), c = rn(l), r = [ce, Me].indexOf(l) >= 0, d = r ? "height" : "width";
|
15321
15321
|
if (!(!s || !i)) {
|
15322
|
-
var g = pA(a.padding, f),
|
15322
|
+
var g = pA(a.padding, f), y = An(s), p = c === "y" ? re : ce, m = c === "y" ? be : Me, h = f.rects.reference[d] + f.rects.reference[c] - i[c] - f.rects.popper[d], v = i[c] - f.rects.reference[c], x = Tt(s), O = x ? c === "y" ? x.clientHeight || 0 : x.clientWidth || 0 : 0, z = h / 2 - v / 2, V = g[p], k = O - y[d] - g[m], E = O / 2 - y[d] / 2 + z, _ = vt(V, E, k), w = c;
|
15323
15323
|
f.modifiersData[n] = (t = {}, t[w] = _, t.centerOffset = _ - E, t);
|
15324
15324
|
}
|
15325
15325
|
}
|
@@ -15353,16 +15353,16 @@ function MA(e) {
|
|
15353
15353
|
};
|
15354
15354
|
}
|
15355
15355
|
function Bn(e) {
|
15356
|
-
var t, f = e.popper, n = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, c = e.gpuAcceleration, r = e.adaptive, d = e.roundOffsets, g = e.isFixed,
|
15356
|
+
var t, f = e.popper, n = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, c = e.gpuAcceleration, r = e.adaptive, d = e.roundOffsets, g = e.isFixed, y = d === !0 ? MA(i) : typeof d == "function" ? d(i) : i, p = y.x, m = p === void 0 ? 0 : p, h = y.y, v = h === void 0 ? 0 : h, x = i.hasOwnProperty("x"), O = i.hasOwnProperty("y"), z = ce, V = re, k = window;
|
15357
15357
|
if (r) {
|
15358
15358
|
var E = Tt(f), _ = "clientHeight", w = "clientWidth";
|
15359
15359
|
if (E === Ie(f) && (E = Qe(f), je(E).position !== "static" && l === "absolute" && (_ = "scrollHeight", w = "scrollWidth")), E = E, a === re || (a === ce || a === Me) && s === Nt) {
|
15360
|
-
|
15360
|
+
V = be;
|
15361
15361
|
var N = g && k.visualViewport ? k.visualViewport.height : E[_];
|
15362
15362
|
v -= N - n.height, v *= c ? 1 : -1;
|
15363
15363
|
}
|
15364
15364
|
if (a === ce || (a === re || a === be) && s === Nt) {
|
15365
|
-
|
15365
|
+
z = Me;
|
15366
15366
|
var j = g && k.visualViewport ? k.visualViewport.width : E[w];
|
15367
15367
|
m -= j - n.width, m *= c ? 1 : -1;
|
15368
15368
|
}
|
@@ -15371,10 +15371,10 @@ function Bn(e) {
|
|
15371
15371
|
position: l
|
15372
15372
|
}, r && bA);
|
15373
15373
|
if (c) {
|
15374
|
-
var
|
15375
|
-
return Object.assign({}, Q, (
|
15374
|
+
var L;
|
15375
|
+
return Object.assign({}, Q, (L = {}, L[V] = O ? "0" : "", L[z] = x ? "0" : "", L.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + v + "px)" : "translate3d(" + m + "px, " + v + "px, 0)", L));
|
15376
15376
|
}
|
15377
|
-
return Object.assign({}, Q, (t = {}, t[
|
15377
|
+
return Object.assign({}, Q, (t = {}, t[V] = O ? v + "px" : "", t[z] = x ? m + "px" : "", t.transform = "", t));
|
15378
15378
|
}
|
15379
15379
|
function _A(e) {
|
15380
15380
|
var t = e.state, f = e.options, n = f.gpuAcceleration, a = n === void 0 ? !0 : n, s = f.adaptive, i = s === void 0 ? !0 : s, l = f.roundOffsets, c = l === void 0 ? !0 : l, r = {
|
@@ -15564,22 +15564,22 @@ function wa(e) {
|
|
15564
15564
|
}
|
15565
15565
|
function Dt(e, t) {
|
15566
15566
|
t === void 0 && (t = {});
|
15567
|
-
var f = t, n = f.placement, a = n === void 0 ? e.placement : n, s = f.boundary, i = s === void 0 ? Zl : s, l = f.rootBoundary, c = l === void 0 ? pa : l, r = f.elementContext, d = r === void 0 ? rt : r, g = f.altBoundary,
|
15568
|
-
reference:
|
15569
|
-
element:
|
15567
|
+
var f = t, n = f.placement, a = n === void 0 ? e.placement : n, s = f.boundary, i = s === void 0 ? Zl : s, l = f.rootBoundary, c = l === void 0 ? pa : l, r = f.elementContext, d = r === void 0 ? rt : r, g = f.altBoundary, y = g === void 0 ? !1 : g, p = f.padding, m = p === void 0 ? 0 : p, h = Ma(typeof m != "number" ? m : _a(m, jt)), v = d === rt ? Xl : rt, x = e.rects.popper, O = e.elements[y ? v : d], z = VA(ft(O) ? O : O.contextElement || Qe(e.elements.popper), i, c), V = at(e.elements.reference), k = wa({
|
15568
|
+
reference: V,
|
15569
|
+
element: x,
|
15570
15570
|
strategy: "absolute",
|
15571
15571
|
placement: a
|
15572
|
-
}), E = qf(Object.assign({},
|
15573
|
-
top:
|
15574
|
-
bottom: _.bottom -
|
15575
|
-
left:
|
15576
|
-
right: _.right -
|
15572
|
+
}), E = qf(Object.assign({}, x, k)), _ = d === rt ? E : V, w = {
|
15573
|
+
top: z.top - _.top + h.top,
|
15574
|
+
bottom: _.bottom - z.bottom + h.bottom,
|
15575
|
+
left: z.left - _.left + h.left,
|
15576
|
+
right: _.right - z.right + h.right
|
15577
15577
|
}, N = e.modifiersData.offset;
|
15578
15578
|
if (d === rt && N) {
|
15579
15579
|
var j = N[a];
|
15580
15580
|
Object.keys(w).forEach(function(Q) {
|
15581
|
-
var
|
15582
|
-
w[Q] += j[
|
15581
|
+
var L = [Me, be].indexOf(Q) >= 0 ? 1 : -1, H = [re, be].indexOf(Q) >= 0 ? "y" : "x";
|
15582
|
+
w[Q] += j[H] * L;
|
15583
15583
|
});
|
15584
15584
|
}
|
15585
15585
|
return w;
|
@@ -15588,20 +15588,20 @@ function SA(e, t) {
|
|
15588
15588
|
t === void 0 && (t = {});
|
15589
15589
|
var f = t, n = f.placement, a = f.boundary, s = f.rootBoundary, i = f.padding, l = f.flipVariations, c = f.allowedAutoPlacements, r = c === void 0 ? ha : c, d = st(n), g = d ? l ? Ln : Ln.filter(function(m) {
|
15590
15590
|
return st(m) === d;
|
15591
|
-
}) : jt,
|
15591
|
+
}) : jt, y = g.filter(function(m) {
|
15592
15592
|
return r.indexOf(m) >= 0;
|
15593
15593
|
});
|
15594
|
-
|
15595
|
-
var p =
|
15596
|
-
return m[
|
15597
|
-
placement:
|
15594
|
+
y.length === 0 && (y = g);
|
15595
|
+
var p = y.reduce(function(m, h) {
|
15596
|
+
return m[h] = Dt(e, {
|
15597
|
+
placement: h,
|
15598
15598
|
boundary: a,
|
15599
15599
|
rootBoundary: s,
|
15600
15600
|
padding: i
|
15601
|
-
})[De(
|
15601
|
+
})[De(h)], m;
|
15602
15602
|
}, {});
|
15603
|
-
return Object.keys(p).sort(function(m,
|
15604
|
-
return p[m] - p[
|
15603
|
+
return Object.keys(p).sort(function(m, h) {
|
15604
|
+
return p[m] - p[h];
|
15605
15605
|
});
|
15606
15606
|
}
|
15607
15607
|
function CA(e) {
|
@@ -15610,29 +15610,29 @@ function CA(e) {
|
|
15610
15610
|
var t = Rt(e);
|
15611
15611
|
return [Qn(e), t, Qn(t)];
|
15612
15612
|
}
|
15613
|
-
function
|
15613
|
+
function OA(e) {
|
15614
15614
|
var t = e.state, f = e.options, n = e.name;
|
15615
15615
|
if (!t.modifiersData[n]._skip) {
|
15616
|
-
for (var a = f.mainAxis, s = a === void 0 ? !0 : a, i = f.altAxis, l = i === void 0 ? !0 : i, c = f.fallbackPlacements, r = f.padding, d = f.boundary, g = f.rootBoundary,
|
15616
|
+
for (var a = f.mainAxis, s = a === void 0 ? !0 : a, i = f.altAxis, l = i === void 0 ? !0 : i, c = f.fallbackPlacements, r = f.padding, d = f.boundary, g = f.rootBoundary, y = f.altBoundary, p = f.flipVariations, m = p === void 0 ? !0 : p, h = f.allowedAutoPlacements, v = t.options.placement, x = De(v), O = x === v, z = c || (O || !m ? [Rt(v)] : CA(v)), V = [v].concat(z).reduce(function(Ce, S) {
|
15617
15617
|
return Ce.concat(De(S) === ln ? SA(t, {
|
15618
15618
|
placement: S,
|
15619
15619
|
boundary: d,
|
15620
15620
|
rootBoundary: g,
|
15621
15621
|
padding: r,
|
15622
15622
|
flipVariations: m,
|
15623
|
-
allowedAutoPlacements:
|
15623
|
+
allowedAutoPlacements: h
|
15624
15624
|
}) : S);
|
15625
|
-
}, []), k = t.rects.reference, E = t.rects.popper, _ = /* @__PURE__ */ new Map(), w = !0, N =
|
15626
|
-
var Q =
|
15625
|
+
}, []), k = t.rects.reference, E = t.rects.popper, _ = /* @__PURE__ */ new Map(), w = !0, N = V[0], j = 0; j < V.length; j++) {
|
15626
|
+
var Q = V[j], L = De(Q), H = st(Q) === tt, G = [re, be].indexOf(L) >= 0, ie = G ? "width" : "height", K = Dt(t, {
|
15627
15627
|
placement: Q,
|
15628
15628
|
boundary: d,
|
15629
15629
|
rootBoundary: g,
|
15630
|
-
altBoundary:
|
15630
|
+
altBoundary: y,
|
15631
15631
|
padding: r
|
15632
|
-
}), ee = G ?
|
15632
|
+
}), ee = G ? H ? Me : ce : H ? be : re;
|
15633
15633
|
k[ie] > E[ie] && (ee = Rt(ee));
|
15634
15634
|
var Ke = Rt(ee), ge = [];
|
15635
|
-
if (s && ge.push(K[
|
15635
|
+
if (s && ge.push(K[L] <= 0), l && ge.push(K[ee] <= 0, K[Ke] <= 0), ge.every(function(Ce) {
|
15636
15636
|
return Ce;
|
15637
15637
|
})) {
|
15638
15638
|
N = Q, w = !1;
|
@@ -15642,15 +15642,15 @@ function zA(e) {
|
|
15642
15642
|
}
|
15643
15643
|
if (w)
|
15644
15644
|
for (var Je = m ? 3 : 1, Ge = function(S) {
|
15645
|
-
var
|
15645
|
+
var F = V.find(function(Y) {
|
15646
15646
|
var ae = _.get(Y);
|
15647
15647
|
if (ae)
|
15648
15648
|
return ae.slice(0, S).every(function(we) {
|
15649
15649
|
return we;
|
15650
15650
|
});
|
15651
15651
|
});
|
15652
|
-
if (
|
15653
|
-
return N =
|
15652
|
+
if (F)
|
15653
|
+
return N = F, "break";
|
15654
15654
|
}, Se = Je; Se > 0; Se--) {
|
15655
15655
|
var Ye = Ge(Se);
|
15656
15656
|
if (Ye === "break")
|
@@ -15659,11 +15659,11 @@ function zA(e) {
|
|
15659
15659
|
t.placement !== N && (t.modifiersData[n]._skip = !0, t.placement = N, t.reset = !0);
|
15660
15660
|
}
|
15661
15661
|
}
|
15662
|
-
var
|
15662
|
+
var zA = {
|
15663
15663
|
name: "flip",
|
15664
15664
|
enabled: !0,
|
15665
15665
|
phase: "main",
|
15666
|
-
fn:
|
15666
|
+
fn: OA,
|
15667
15667
|
requiresIfExists: ["offset"],
|
15668
15668
|
data: {
|
15669
15669
|
_skip: !1
|
@@ -15749,47 +15749,47 @@ var $A = {
|
|
15749
15749
|
fn: YA,
|
15750
15750
|
data: {}
|
15751
15751
|
};
|
15752
|
-
function
|
15752
|
+
function PA(e) {
|
15753
15753
|
return e === "x" ? "y" : "x";
|
15754
15754
|
}
|
15755
|
-
function
|
15756
|
-
var t = e.state, f = e.options, n = e.name, a = f.mainAxis, s = a === void 0 ? !0 : a, i = f.altAxis, l = i === void 0 ? !1 : i, c = f.boundary, r = f.rootBoundary, d = f.altBoundary, g = f.padding,
|
15755
|
+
function FA(e) {
|
15756
|
+
var t = e.state, f = e.options, n = e.name, a = f.mainAxis, s = a === void 0 ? !0 : a, i = f.altAxis, l = i === void 0 ? !1 : i, c = f.boundary, r = f.rootBoundary, d = f.altBoundary, g = f.padding, y = f.tether, p = y === void 0 ? !0 : y, m = f.tetherOffset, h = m === void 0 ? 0 : m, v = Dt(t, {
|
15757
15757
|
boundary: c,
|
15758
15758
|
rootBoundary: r,
|
15759
15759
|
padding: g,
|
15760
15760
|
altBoundary: d
|
15761
|
-
}),
|
15761
|
+
}), x = De(t.placement), O = st(t.placement), z = !O, V = rn(x), k = PA(V), E = t.modifiersData.popperOffsets, _ = t.rects.reference, w = t.rects.popper, N = typeof h == "function" ? h(Object.assign({}, t.rects, {
|
15762
15762
|
placement: t.placement
|
15763
|
-
})) :
|
15763
|
+
})) : h, j = typeof N == "number" ? {
|
15764
15764
|
mainAxis: N,
|
15765
15765
|
altAxis: N
|
15766
15766
|
} : Object.assign({
|
15767
15767
|
mainAxis: 0,
|
15768
15768
|
altAxis: 0
|
15769
|
-
}, N), Q = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null,
|
15769
|
+
}, N), Q = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, L = {
|
15770
15770
|
x: 0,
|
15771
15771
|
y: 0
|
15772
15772
|
};
|
15773
15773
|
if (E) {
|
15774
15774
|
if (s) {
|
15775
|
-
var
|
15775
|
+
var H, G = V === "y" ? re : ce, ie = V === "y" ? be : Me, K = V === "y" ? "height" : "width", ee = E[V], Ke = ee + v[G], ge = ee - v[ie], Je = p ? -w[K] / 2 : 0, Ge = O === tt ? _[K] : w[K], Se = O === tt ? -w[K] : -_[K], Ye = t.elements.arrow, Ce = p && Ye ? An(Ye) : {
|
15776
15776
|
width: 0,
|
15777
15777
|
height: 0
|
15778
|
-
}, S = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ba(),
|
15779
|
-
E[
|
15778
|
+
}, S = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ba(), F = S[G], Y = S[ie], ae = vt(0, _[K], Ce[K]), we = z ? _[K] / 2 - Je - ae - F - j.mainAxis : Ge - ae - F - j.mainAxis, $e = z ? -_[K] / 2 + Je + ae + Y + j.mainAxis : Se + ae + Y + j.mainAxis, wf = t.elements.arrow && Tt(t.elements.arrow), Ea = wf ? V === "y" ? wf.clientTop || 0 : wf.clientLeft || 0 : 0, mn = (H = Q == null ? void 0 : Q[V]) != null ? H : 0, ja = ee + we - mn - Ea, Ta = ee + $e - mn, pn = vt(p ? vf(Ke, ja) : Ke, ee, p ? qe(ge, Ta) : ge);
|
15779
|
+
E[V] = pn, L[V] = pn - ee;
|
15780
15780
|
}
|
15781
15781
|
if (l) {
|
15782
|
-
var hn, xa =
|
15783
|
-
E[k] = In,
|
15782
|
+
var hn, xa = V === "x" ? re : ce, Va = V === "x" ? be : Me, Pe = E[k], St = k === "y" ? "height" : "width", yn = Pe + v[xa], vn = Pe - v[Va], kf = [re, ce].indexOf(x) !== -1, bn = (hn = Q == null ? void 0 : Q[k]) != null ? hn : 0, Mn = kf ? yn : Pe - _[St] - w[St] - bn + j.altAxis, _n = kf ? Pe + _[St] + w[St] - bn - j.altAxis : vn, In = p && kf ? mA(Mn, Pe, _n) : vt(p ? Mn : yn, Pe, p ? _n : vn);
|
15783
|
+
E[k] = In, L[k] = In - Pe;
|
15784
15784
|
}
|
15785
|
-
t.modifiersData[n] =
|
15785
|
+
t.modifiersData[n] = L;
|
15786
15786
|
}
|
15787
15787
|
}
|
15788
15788
|
var qA = {
|
15789
15789
|
name: "preventOverflow",
|
15790
15790
|
enabled: !0,
|
15791
15791
|
phase: "main",
|
15792
|
-
fn:
|
15792
|
+
fn: FA,
|
15793
15793
|
requiresIfExists: ["offset"]
|
15794
15794
|
};
|
15795
15795
|
function HA(e) {
|
@@ -15870,12 +15870,12 @@ function er(e) {
|
|
15870
15870
|
return t[f];
|
15871
15871
|
});
|
15872
15872
|
}
|
15873
|
-
var
|
15873
|
+
var Pn = {
|
15874
15874
|
placement: "bottom",
|
15875
15875
|
modifiers: [],
|
15876
15876
|
strategy: "absolute"
|
15877
15877
|
};
|
15878
|
-
function
|
15878
|
+
function Fn() {
|
15879
15879
|
for (var e = arguments.length, t = new Array(e), f = 0; f < e; f++)
|
15880
15880
|
t[f] = arguments[f];
|
15881
15881
|
return !t.some(function(n) {
|
@@ -15884,13 +15884,13 @@ function Pn() {
|
|
15884
15884
|
}
|
15885
15885
|
function tr(e) {
|
15886
15886
|
e === void 0 && (e = {});
|
15887
|
-
var t = e, f = t.defaultModifiers, n = f === void 0 ? [] : f, a = t.defaultOptions, s = a === void 0 ?
|
15887
|
+
var t = e, f = t.defaultModifiers, n = f === void 0 ? [] : f, a = t.defaultOptions, s = a === void 0 ? Pn : a;
|
15888
15888
|
return function(l, c, r) {
|
15889
15889
|
r === void 0 && (r = s);
|
15890
15890
|
var d = {
|
15891
15891
|
placement: "bottom",
|
15892
15892
|
orderedModifiers: [],
|
15893
|
-
options: Object.assign({},
|
15893
|
+
options: Object.assign({}, Pn, s),
|
15894
15894
|
modifiersData: {},
|
15895
15895
|
elements: {
|
15896
15896
|
reference: l,
|
@@ -15898,35 +15898,35 @@ function tr(e) {
|
|
15898
15898
|
},
|
15899
15899
|
attributes: {},
|
15900
15900
|
styles: {}
|
15901
|
-
}, g = [],
|
15901
|
+
}, g = [], y = !1, p = {
|
15902
15902
|
state: d,
|
15903
|
-
setOptions: function(
|
15904
|
-
var
|
15905
|
-
|
15903
|
+
setOptions: function(x) {
|
15904
|
+
var O = typeof x == "function" ? x(d.options) : x;
|
15905
|
+
h(), d.options = Object.assign({}, s, d.options, O), d.scrollParents = {
|
15906
15906
|
reference: ft(l) ? bt(l) : l.contextElement ? bt(l.contextElement) : [],
|
15907
15907
|
popper: bt(c)
|
15908
15908
|
};
|
15909
|
-
var
|
15910
|
-
return d.orderedModifiers =
|
15911
|
-
return
|
15909
|
+
var z = ZA(er([].concat(n, d.options.modifiers)));
|
15910
|
+
return d.orderedModifiers = z.filter(function(V) {
|
15911
|
+
return V.enabled;
|
15912
15912
|
}), m(), p.update();
|
15913
15913
|
},
|
15914
15914
|
forceUpdate: function() {
|
15915
|
-
if (!
|
15916
|
-
var
|
15917
|
-
if (
|
15915
|
+
if (!y) {
|
15916
|
+
var x = d.elements, O = x.reference, z = x.popper;
|
15917
|
+
if (Fn(O, z)) {
|
15918
15918
|
d.rects = {
|
15919
|
-
reference: JA(
|
15920
|
-
popper: An(
|
15919
|
+
reference: JA(O, Tt(z), d.options.strategy === "fixed"),
|
15920
|
+
popper: An(z)
|
15921
15921
|
}, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(j) {
|
15922
15922
|
return d.modifiersData[j.name] = Object.assign({}, j.data);
|
15923
15923
|
});
|
15924
|
-
for (var
|
15924
|
+
for (var V = 0; V < d.orderedModifiers.length; V++) {
|
15925
15925
|
if (d.reset === !0) {
|
15926
|
-
d.reset = !1,
|
15926
|
+
d.reset = !1, V = -1;
|
15927
15927
|
continue;
|
15928
15928
|
}
|
15929
|
-
var k = d.orderedModifiers[
|
15929
|
+
var k = d.orderedModifiers[V], E = k.fn, _ = k.options, w = _ === void 0 ? {} : _, N = k.name;
|
15930
15930
|
typeof E == "function" && (d = E({
|
15931
15931
|
state: d,
|
15932
15932
|
options: w,
|
@@ -15943,30 +15943,30 @@ function tr(e) {
|
|
15943
15943
|
});
|
15944
15944
|
}),
|
15945
15945
|
destroy: function() {
|
15946
|
-
|
15946
|
+
h(), y = !0;
|
15947
15947
|
}
|
15948
15948
|
};
|
15949
|
-
if (!
|
15949
|
+
if (!Fn(l, c))
|
15950
15950
|
return p;
|
15951
15951
|
p.setOptions(r).then(function(v) {
|
15952
|
-
!
|
15952
|
+
!y && r.onFirstUpdate && r.onFirstUpdate(v);
|
15953
15953
|
});
|
15954
15954
|
function m() {
|
15955
15955
|
d.orderedModifiers.forEach(function(v) {
|
15956
|
-
var
|
15957
|
-
if (typeof
|
15958
|
-
var k =
|
15956
|
+
var x = v.name, O = v.options, z = O === void 0 ? {} : O, V = v.effect;
|
15957
|
+
if (typeof V == "function") {
|
15958
|
+
var k = V({
|
15959
15959
|
state: d,
|
15960
|
-
name:
|
15960
|
+
name: x,
|
15961
15961
|
instance: p,
|
15962
|
-
options:
|
15962
|
+
options: z
|
15963
15963
|
}), E = function() {
|
15964
15964
|
};
|
15965
15965
|
g.push(k || E);
|
15966
15966
|
}
|
15967
15967
|
});
|
15968
15968
|
}
|
15969
|
-
function
|
15969
|
+
function h() {
|
15970
15970
|
g.forEach(function(v) {
|
15971
15971
|
return v();
|
15972
15972
|
}), g = [];
|
@@ -15974,7 +15974,7 @@ function tr(e) {
|
|
15974
15974
|
return p;
|
15975
15975
|
};
|
15976
15976
|
}
|
15977
|
-
var fr = [kA, $A, IA, uA, RA,
|
15977
|
+
var fr = [kA, $A, IA, uA, RA, zA, qA, vA, UA], nr = /* @__PURE__ */ tr({
|
15978
15978
|
defaultModifiers: fr
|
15979
15979
|
}), ka = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";
|
15980
15980
|
function Yt(e) {
|
@@ -16039,31 +16039,31 @@ const sr = W({
|
|
16039
16039
|
function g(m) {
|
16040
16040
|
t(m);
|
16041
16041
|
}
|
16042
|
-
function
|
16042
|
+
function y(m) {
|
16043
16043
|
f(m), s == null || s.emit("select", {
|
16044
16044
|
...m,
|
16045
16045
|
t: e.skinTone,
|
16046
16046
|
i: Yt(m.r)
|
16047
16047
|
});
|
16048
16048
|
}
|
16049
|
-
function p(m,
|
16049
|
+
function p(m, h) {
|
16050
16050
|
var v;
|
16051
|
-
const
|
16052
|
-
|
16051
|
+
const x = (v = m == null ? void 0 : m.target) == null ? void 0 : v.closest("button");
|
16052
|
+
x && (x.innerHTML = `<span>${Yt(h)}</span>`);
|
16053
16053
|
}
|
16054
16054
|
return X(
|
16055
16055
|
() => e.activeGroup,
|
16056
16056
|
() => {
|
16057
16057
|
var m;
|
16058
|
-
const
|
16059
|
-
|
16058
|
+
const h = (m = n.value) == null ? void 0 : m.querySelector("#" + e.activeGroup);
|
16059
|
+
h && (h.parentNode.scrollTop = h.offsetTop - h.parentNode.offsetTop);
|
16060
16060
|
}
|
16061
16061
|
), {
|
16062
16062
|
emojis: a,
|
16063
16063
|
bodyInner: n,
|
16064
16064
|
EMOJI_REMOTE_SRC: ca,
|
16065
16065
|
GROUP_NAMES: ua,
|
16066
|
-
handleClick:
|
16066
|
+
handleClick: y,
|
16067
16067
|
handleError: p,
|
16068
16068
|
handleMouseEnter: g,
|
16069
16069
|
native: e.options.native,
|
@@ -16087,7 +16087,7 @@ function dr(e, t, f, n, a, s) {
|
|
16087
16087
|
ref: "bodyInner",
|
16088
16088
|
class: C([e.platform, "v3-body-inner"])
|
16089
16089
|
}, [
|
16090
|
-
e.orderedKeys.length ? (A(!0), u(
|
16090
|
+
e.orderedKeys.length ? (A(!0), u(q, { key: 0 }, fe(e.orderedKeys, (i) => (A(), u("div", {
|
16091
16091
|
id: i,
|
16092
16092
|
key: i,
|
16093
16093
|
class: "v3-group"
|
@@ -16099,7 +16099,7 @@ function dr(e, t, f, n, a, s) {
|
|
16099
16099
|
[Mt, e.emojis[i]]
|
16100
16100
|
]) : b("", !0),
|
16101
16101
|
ve(o("div", lr, [
|
16102
|
-
(A(!0), u(
|
16102
|
+
(A(!0), u(q, null, fe(e.emojis[i], (l) => (A(), u("button", {
|
16103
16103
|
key: l.r,
|
16104
16104
|
type: "button",
|
16105
16105
|
onMouseenter: (c) => e.handleMouseEnter(l),
|
@@ -16136,8 +16136,8 @@ const Ir = W({
|
|
16136
16136
|
}))
|
16137
16137
|
], d = [];
|
16138
16138
|
return i.forEach((g) => {
|
16139
|
-
const
|
16140
|
-
|
16139
|
+
const y = r.findIndex((p) => p.key === g);
|
16140
|
+
y !== -1 && (d.push(r[y]), r.splice(y, 1));
|
16141
16141
|
}), {
|
16142
16142
|
orderedGroups: d,
|
16143
16143
|
orderedKeys: i,
|
@@ -16176,7 +16176,7 @@ const Ir = W({
|
|
16176
16176
|
function Vr(e, t, f, n, a, s) {
|
16177
16177
|
return e.hasGroupIcons || e.hasSearch ? (A(), u("div", wr, [
|
16178
16178
|
e.hasGroupIcons ? (A(), u("div", kr, [
|
16179
|
-
(A(!0), u(
|
16179
|
+
(A(!0), u(q, null, fe(e.orderedGroups, (i) => (A(), u("button", {
|
16180
16180
|
key: i.key,
|
16181
16181
|
type: "button",
|
16182
16182
|
class: C(["v3-group", {
|
@@ -16217,14 +16217,14 @@ const Cr = W({
|
|
16217
16217
|
...e.emoji,
|
16218
16218
|
src: ca + "/" + e.emoji[kt] + ".png"
|
16219
16219
|
}));
|
16220
|
-
function r(
|
16221
|
-
f.value =
|
16220
|
+
function r(y = !0) {
|
16221
|
+
f.value = y;
|
16222
16222
|
}
|
16223
16223
|
function d() {
|
16224
16224
|
f.value = !f.value;
|
16225
16225
|
}
|
16226
|
-
function g(
|
16227
|
-
t(
|
16226
|
+
function g(y) {
|
16227
|
+
t(y), r(!1);
|
16228
16228
|
}
|
16229
16229
|
return X(
|
16230
16230
|
() => e.emoji,
|
@@ -16249,17 +16249,17 @@ const Cr = W({
|
|
16249
16249
|
hasError: n
|
16250
16250
|
};
|
16251
16251
|
}
|
16252
|
-
}),
|
16252
|
+
}), Or = { class: "v3-foot-left" }, zr = { key: 0 }, Lr = ["alt", "src"], Ur = { class: "v3-text" }, Br = { class: "v3-text" }, Qr = ["onClick"];
|
16253
16253
|
function Rr(e, t, f, n, a, s) {
|
16254
16254
|
return A(), u("div", {
|
16255
16255
|
class: "v3-footer",
|
16256
16256
|
onMouseleave: t[2] || (t[2] = (i) => e.updateSkinToneState(!1))
|
16257
16257
|
}, [
|
16258
|
-
o("div",
|
16258
|
+
o("div", Or, [
|
16259
16259
|
o("span", {
|
16260
16260
|
class: C([e.platform, "v3-icon"])
|
16261
16261
|
}, [
|
16262
|
-
e.native || e.hasError ? (A(), u("span",
|
16262
|
+
e.native || e.hasError ? (A(), u("span", zr, D(e.unicodeToEmoji(e.emoji.r)), 1)) : (A(), u("img", {
|
16263
16263
|
key: 1,
|
16264
16264
|
alt: e.unicodeToEmoji(e.emoji.r),
|
16265
16265
|
src: e.emoji.src,
|
@@ -16268,7 +16268,7 @@ function Rr(e, t, f, n, a, s) {
|
|
16268
16268
|
], 2),
|
16269
16269
|
o("span", Ur, " :" + D(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
|
16270
16270
|
]),
|
16271
|
-
e.hasSkinTones ? (A(), u(
|
16271
|
+
e.hasSkinTones ? (A(), u(q, { key: 0 }, [
|
16272
16272
|
o("button", {
|
16273
16273
|
type: "button",
|
16274
16274
|
class: "v3-tone",
|
@@ -16282,7 +16282,7 @@ function Rr(e, t, f, n, a, s) {
|
|
16282
16282
|
o("div", {
|
16283
16283
|
class: C([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
16284
16284
|
}, [
|
16285
|
-
(A(!0), u(
|
16285
|
+
(A(!0), u(q, null, fe(e.SKIN_TONES, (i) => (A(), u("button", {
|
16286
16286
|
key: i,
|
16287
16287
|
type: "button",
|
16288
16288
|
class: C(["v3-skin-tone-" + i, "v3-skin-tone"]),
|
@@ -16336,18 +16336,18 @@ const $r = W({
|
|
16336
16336
|
const { state: r } = oe("store"), d = B(() => r.options.colorTheme);
|
16337
16337
|
function g(v) {
|
16338
16338
|
if (l) {
|
16339
|
-
const
|
16340
|
-
|
16339
|
+
const x = r.options.mode;
|
16340
|
+
x === "prepend" ? i.value = v.i + i.value : x === "insert" && c !== -1 ? (i.value = `${i.value.slice(0, c)}${v.i}${i.value.slice(c)}`, c += v.i.length) : i.value += v.i, t("update:text", i.value);
|
16341
16341
|
}
|
16342
16342
|
t("select", v);
|
16343
16343
|
}
|
16344
|
-
function
|
16344
|
+
function y() {
|
16345
16345
|
var v;
|
16346
16346
|
f.value && (c = ((v = f.value) == null ? void 0 : v.selectionEnd) || -1);
|
16347
16347
|
}
|
16348
16348
|
function p(v) {
|
16349
|
-
var
|
16350
|
-
!((
|
16349
|
+
var x;
|
16350
|
+
!((x = v.target) != null && x.closest(
|
16351
16351
|
".v3-input-picker-wrap"
|
16352
16352
|
)) && s.value && (s.value = !1);
|
16353
16353
|
}
|
@@ -16367,12 +16367,12 @@ const $r = W({
|
|
16367
16367
|
}), document.body.addEventListener("click", p);
|
16368
16368
|
}
|
16369
16369
|
}
|
16370
|
-
function
|
16370
|
+
function h(v) {
|
16371
16371
|
i.value = v.target.value || "", t("update:text", i.value);
|
16372
16372
|
}
|
16373
16373
|
return le(() => {
|
16374
16374
|
m();
|
16375
|
-
}),
|
16375
|
+
}), Oa(() => {
|
16376
16376
|
document.body.removeEventListener("click", p);
|
16377
16377
|
}), {
|
16378
16378
|
face: ka,
|
@@ -16380,22 +16380,22 @@ const $r = W({
|
|
16380
16380
|
onSelect: g,
|
16381
16381
|
input: i,
|
16382
16382
|
elem: f,
|
16383
|
-
updateCursor:
|
16383
|
+
updateCursor: y,
|
16384
16384
|
button: n,
|
16385
16385
|
picker: a,
|
16386
16386
|
isInputType: l,
|
16387
|
-
onChangeText:
|
16387
|
+
onChangeText: h,
|
16388
16388
|
colorTheme: d
|
16389
16389
|
};
|
16390
16390
|
}
|
16391
|
-
}),
|
16391
|
+
}), Pr = {
|
16392
16392
|
key: 0,
|
16393
16393
|
class: "v3-input-emoji-picker"
|
16394
|
-
},
|
16394
|
+
}, Fr = { class: "v3-input-picker-root" }, qr = ["value"], Hr = ["value"], Wr = ["src"];
|
16395
16395
|
function Kr(e, t, f, n, a, s) {
|
16396
16396
|
const i = Bt("Header"), l = Bt("Body"), c = Bt("Footer");
|
16397
|
-
return e.isInputType ? (A(), u("div",
|
16398
|
-
o("div",
|
16397
|
+
return e.isInputType ? (A(), u("div", Pr, [
|
16398
|
+
o("div", Fr, [
|
16399
16399
|
e.type === "input" ? (A(), u("input", {
|
16400
16400
|
key: 0,
|
16401
16401
|
ref: "elem",
|
@@ -16430,9 +16430,9 @@ function Kr(e, t, f, n, a, s) {
|
|
16430
16430
|
ref: "picker",
|
16431
16431
|
class: C(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
16432
16432
|
}, [
|
16433
|
-
|
16434
|
-
|
16435
|
-
|
16433
|
+
P(i),
|
16434
|
+
P(l, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
16435
|
+
P(c)
|
16436
16436
|
], 2)
|
16437
16437
|
], 2)
|
16438
16438
|
])
|
@@ -16440,9 +16440,9 @@ function Kr(e, t, f, n, a, s) {
|
|
16440
16440
|
key: 1,
|
16441
16441
|
class: C(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
|
16442
16442
|
}, [
|
16443
|
-
|
16444
|
-
|
16445
|
-
|
16443
|
+
P(i),
|
16444
|
+
P(l, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
|
16445
|
+
P(c)
|
16446
16446
|
], 2));
|
16447
16447
|
}
|
16448
16448
|
var Jr = /* @__PURE__ */ xt($r, [["render", Kr]]);
|
@@ -16594,14 +16594,14 @@ const ec = {
|
|
16594
16594
|
t.mode == "hover" && t.state == "active" && (f.value.style.display = "inherit");
|
16595
16595
|
}, g = () => {
|
16596
16596
|
t.mode == "hover" && t.state == "active" && (f.value.style.display = "none");
|
16597
|
-
},
|
16597
|
+
}, y = (p) => {
|
16598
16598
|
t.mode == "click" && !n.value.contains(p.target) && !f.value.contains(p.target) && (f.value.style.display = "none");
|
16599
16599
|
};
|
16600
16600
|
return le(() => {
|
16601
|
-
f.value.style.display = "none", document.addEventListener("click",
|
16601
|
+
f.value.style.display = "none", document.addEventListener("click", y);
|
16602
16602
|
}), He(() => {
|
16603
|
-
document.removeEventListener("click",
|
16604
|
-
}), (p, m) => (A(), u(
|
16603
|
+
document.removeEventListener("click", y);
|
16604
|
+
}), (p, m) => (A(), u(q, null, [
|
16605
16605
|
o("div", {
|
16606
16606
|
ref_key: "emojiButton",
|
16607
16607
|
ref: n,
|
@@ -16612,7 +16612,7 @@ const ec = {
|
|
16612
16612
|
}, m[0] || (m[0] = [
|
16613
16613
|
o("span", { class: "pi pi-face-smile" }, null, -1)
|
16614
16614
|
]), 34),
|
16615
|
-
|
16615
|
+
P(Z, null, {
|
16616
16616
|
default: J(() => [
|
16617
16617
|
o("div", {
|
16618
16618
|
ref_key: "emoji",
|
@@ -16621,7 +16621,7 @@ const ec = {
|
|
16621
16621
|
onMouseover: d,
|
16622
16622
|
onMouseout: g
|
16623
16623
|
}, [
|
16624
|
-
|
16624
|
+
P(T(Xr), {
|
16625
16625
|
native: !0,
|
16626
16626
|
theme: l.value,
|
16627
16627
|
"picker-type": "",
|
@@ -16649,7 +16649,7 @@ const ec = {
|
|
16649
16649
|
};
|
16650
16650
|
return (s, i) => (A(), u("div", tc, [
|
16651
16651
|
o("ul", fc, [
|
16652
|
-
(A(!0), u(
|
16652
|
+
(A(!0), u(q, null, fe(f.actions, (l, c) => (A(), u("li", {
|
16653
16653
|
key: c,
|
16654
16654
|
class: "context-menu__item",
|
16655
16655
|
onClick: (r) => a(c)
|
@@ -16726,7 +16726,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16726
16726
|
class: "feed-search__input",
|
16727
16727
|
type: "text",
|
16728
16728
|
placeholder: T(de)("component.FeedSearch.SearchPlaceholder"),
|
16729
|
-
"onUpdate:modelValue": g[0] || (g[0] = (
|
16729
|
+
"onUpdate:modelValue": g[0] || (g[0] = (y) => T(n)().text = y)
|
16730
16730
|
}, null, 8, rc), [
|
16731
16731
|
[Et, T(n)().text]
|
16732
16732
|
]),
|
@@ -16739,7 +16739,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16739
16739
|
key: 0,
|
16740
16740
|
class: "pi pi-refresh",
|
16741
16741
|
style: { "margin-left": "5px", "margin-top": "10px", cursor: "pointer" },
|
16742
|
-
onClick: g[1] || (g[1] = (
|
16742
|
+
onClick: g[1] || (g[1] = (y) => a("switch"))
|
16743
16743
|
})) : b("", !0)
|
16744
16744
|
])
|
16745
16745
|
]),
|
@@ -16836,7 +16836,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16836
16836
|
const r = T(a);
|
16837
16837
|
r.scrollHeight - r.scrollTop - r.clientHeight <= 0 && f("loadMore");
|
16838
16838
|
};
|
16839
|
-
return (r, d) => (A(), u(
|
16839
|
+
return (r, d) => (A(), u(q, null, [
|
16840
16840
|
o("h3", Ic, D(T(de)("component.FeedFoundObjects.results")) + ": " + D(e.foundAmount), 1),
|
16841
16841
|
e.foundAmount > 0 ? (A(), u("div", {
|
16842
16842
|
key: 0,
|
@@ -16845,10 +16845,10 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16845
16845
|
ref: a,
|
16846
16846
|
onScroll: c
|
16847
16847
|
}, [
|
16848
|
-
(A(!0), u(
|
16849
|
-
onClick: (
|
16848
|
+
(A(!0), u(q, null, fe(e.objects, (g) => (A(), u("div", {
|
16849
|
+
onClick: (y) => l(g)
|
16850
16850
|
}, [
|
16851
|
-
|
16851
|
+
P(_c, {
|
16852
16852
|
object: g,
|
16853
16853
|
selected: g == s.value
|
16854
16854
|
}, null, 8, ["object", "selected"])
|
@@ -16874,7 +16874,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16874
16874
|
"message.image": V1,
|
16875
16875
|
"message.file": K1,
|
16876
16876
|
"message.audio": L1,
|
16877
|
-
"message.video":
|
16877
|
+
"message.video": P1
|
16878
16878
|
})[d], c = (d) => ({
|
16879
16879
|
"message.text": "",
|
16880
16880
|
"message.image": "grid",
|
@@ -16885,9 +16885,9 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16885
16885
|
s();
|
16886
16886
|
};
|
16887
16887
|
return (d, g) => {
|
16888
|
-
var
|
16888
|
+
var y, p;
|
16889
16889
|
return A(), u("div", {
|
16890
|
-
class: C(["reply__container", c((
|
16890
|
+
class: C(["reply__container", c((y = e.message) == null ? void 0 : y.type)]),
|
16891
16891
|
onClick: i
|
16892
16892
|
}, [
|
16893
16893
|
(A(), R(Wn(l((p = e.message) == null ? void 0 : p.type)), { message: e.message }, null, 8, ["message"])),
|
@@ -16926,7 +16926,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16926
16926
|
])
|
16927
16927
|
]));
|
16928
16928
|
}
|
16929
|
-
}), Vt = /* @__PURE__ */ U(Sc, [["__scopeId", "data-v-281fb650"]]), Cc = ["messageId"],
|
16929
|
+
}), Vt = /* @__PURE__ */ U(Sc, [["__scopeId", "data-v-281fb650"]]), Cc = ["messageId"], Oc = ["src"], zc = {
|
16930
16930
|
key: 1,
|
16931
16931
|
class: "file-message__subtext"
|
16932
16932
|
}, Lc = ["href"], Uc = { class: "file-message__filename-text" }, Bc = {
|
@@ -16935,7 +16935,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16935
16935
|
}, Qc = ["innerHTML"], Rc = { class: "file-message__info-container" }, Yc = { class: "file-message__time" }, $c = {
|
16936
16936
|
key: 0,
|
16937
16937
|
class: "pi pi-check"
|
16938
|
-
},
|
16938
|
+
}, Pc = /* @__PURE__ */ W({
|
16939
16939
|
__name: "FileMessage",
|
16940
16940
|
props: {
|
16941
16941
|
message: {
|
@@ -16953,27 +16953,27 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16953
16953
|
},
|
16954
16954
|
{ immediate: !0 }
|
16955
16955
|
);
|
16956
|
-
const l = (
|
16957
|
-
n("reply",
|
16956
|
+
const l = (h) => {
|
16957
|
+
n("reply", h);
|
16958
16958
|
};
|
16959
|
-
function c(
|
16960
|
-
|
16959
|
+
function c(h) {
|
16960
|
+
h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
|
16961
16961
|
}
|
16962
16962
|
const r = () => {
|
16963
16963
|
n("action", { messageId: f.message.messageId, type: "views" });
|
16964
16964
|
}, d = () => {
|
16965
16965
|
}, g = () => {
|
16966
16966
|
s.value = !0;
|
16967
|
-
},
|
16967
|
+
}, y = () => {
|
16968
16968
|
s.value = !1, a.value = !1;
|
16969
16969
|
}, p = B(() => ot(f.message.status));
|
16970
|
-
function m(
|
16971
|
-
return
|
16970
|
+
function m(h) {
|
16971
|
+
return h.position === "left" ? "file-message__left" : "file-message__right";
|
16972
16972
|
}
|
16973
|
-
return (
|
16973
|
+
return (h, v) => (A(), u("div", {
|
16974
16974
|
class: C(["file-message", m(e.message)]),
|
16975
16975
|
messageId: e.message.messageId,
|
16976
|
-
onMouseleave:
|
16976
|
+
onMouseleave: y
|
16977
16977
|
}, [
|
16978
16978
|
e.message.avatar ? (A(), u("img", {
|
16979
16979
|
key: 0,
|
@@ -16982,8 +16982,8 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
16982
16982
|
height: "32",
|
16983
16983
|
width: "32",
|
16984
16984
|
style: se({ gridRow: e.message.subText ? "2" : "1" })
|
16985
|
-
}, null, 12,
|
16986
|
-
e.message.subText ? (A(), u("p",
|
16985
|
+
}, null, 12, Oc)) : b("", !0),
|
16986
|
+
e.message.subText ? (A(), u("p", zc, D(e.message.subText), 1)) : b("", !0),
|
16987
16987
|
o("div", {
|
16988
16988
|
class: "file-message__content",
|
16989
16989
|
style: se({ gridRow: e.message.subText ? "2" : "1" }),
|
@@ -17039,11 +17039,11 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17039
17039
|
s.value && e.message.actions ? (A(), u("button", {
|
17040
17040
|
key: 3,
|
17041
17041
|
class: "file-message__menu-button",
|
17042
|
-
onClick: v[0] || (v[0] = (
|
17042
|
+
onClick: v[0] || (v[0] = (x) => a.value = !a.value)
|
17043
17043
|
}, v[5] || (v[5] = [
|
17044
17044
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
17045
17045
|
]))) : b("", !0),
|
17046
|
-
|
17046
|
+
P(Z, null, {
|
17047
17047
|
default: J(() => [
|
17048
17048
|
a.value && e.message.actions ? (A(), R(T(Re), {
|
17049
17049
|
key: 0,
|
@@ -17057,7 +17057,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17057
17057
|
], 36)
|
17058
17058
|
], 42, Cc));
|
17059
17059
|
}
|
17060
|
-
}),
|
17060
|
+
}), Fc = /* @__PURE__ */ U(Pc, [["__scopeId", "data-v-2e4508bd"]]), qc = ["messageId"], Hc = ["src"], Wc = {
|
17061
17061
|
key: 1,
|
17062
17062
|
class: "image-message__subtext"
|
17063
17063
|
}, Kc = { class: "image-message__content" }, Jc = ["src", "alt"], Gc = {
|
@@ -17095,26 +17095,26 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17095
17095
|
}
|
17096
17096
|
const g = () => {
|
17097
17097
|
n("action", { messageId: f.message.messageId, type: "views" });
|
17098
|
-
},
|
17098
|
+
}, y = () => {
|
17099
17099
|
}, p = () => {
|
17100
17100
|
i.value = !0, l.value = !0;
|
17101
17101
|
}, m = () => {
|
17102
17102
|
i.value = !1, s.value = !1;
|
17103
|
-
},
|
17104
|
-
function
|
17103
|
+
}, h = B(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), v = B(() => ot(f.message.status));
|
17104
|
+
function x(k) {
|
17105
17105
|
return k.position === "left" ? "image-message__left" : "image-message__right";
|
17106
17106
|
}
|
17107
|
-
const
|
17108
|
-
k.target.classList.contains("image-message__modal-overlay") &&
|
17109
|
-
},
|
17110
|
-
k.key === "Escape" && a.value &&
|
17107
|
+
const O = () => a.value = !1, z = (k) => {
|
17108
|
+
k.target.classList.contains("image-message__modal-overlay") && O();
|
17109
|
+
}, V = (k) => {
|
17110
|
+
k.key === "Escape" && a.value && O();
|
17111
17111
|
};
|
17112
17112
|
return le(() => {
|
17113
|
-
document.addEventListener("keydown",
|
17113
|
+
document.addEventListener("keydown", V);
|
17114
17114
|
}), He(() => {
|
17115
|
-
document.removeEventListener("keydown",
|
17115
|
+
document.removeEventListener("keydown", V);
|
17116
17116
|
}), (k, E) => (A(), u("div", {
|
17117
|
-
class: C(["image-message",
|
17117
|
+
class: C(["image-message", x(e.message)]),
|
17118
17118
|
messageId: e.message.messageId,
|
17119
17119
|
onMouseleave: m
|
17120
17120
|
}, [
|
@@ -17142,11 +17142,11 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17142
17142
|
}, [
|
17143
17143
|
o("img", {
|
17144
17144
|
class: "image-message__preview-image",
|
17145
|
-
style: se({ borderRadius:
|
17145
|
+
style: se({ borderRadius: h.value }),
|
17146
17146
|
src: e.message.url,
|
17147
17147
|
alt: e.message.alt
|
17148
17148
|
}, null, 12, Jc),
|
17149
|
-
|
17149
|
+
P(Z, { name: "modal-fade" }, {
|
17150
17150
|
default: J(() => [
|
17151
17151
|
l.value ? (A(), u("div", Gc, [
|
17152
17152
|
e.message.views ? (A(), u("div", {
|
@@ -17158,7 +17158,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17158
17158
|
o("p", null, D(e.message.views), 1)
|
17159
17159
|
])) : b("", !0),
|
17160
17160
|
o("span", Zc, D(e.message.time), 1),
|
17161
|
-
|
17161
|
+
x(e.message) === "image-message__right" && T(it).includes(e.message.status) ? (A(), u("div", {
|
17162
17162
|
key: 1,
|
17163
17163
|
class: C(["image-message__status", v.value])
|
17164
17164
|
}, [
|
@@ -17169,7 +17169,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17169
17169
|
]),
|
17170
17170
|
_: 1
|
17171
17171
|
}),
|
17172
|
-
|
17172
|
+
P(Z, { name: "modal-fade" }, {
|
17173
17173
|
default: J(() => [
|
17174
17174
|
l.value ? (A(), u("a", {
|
17175
17175
|
key: 0,
|
@@ -17185,7 +17185,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17185
17185
|
_: 1
|
17186
17186
|
})
|
17187
17187
|
], 32),
|
17188
|
-
|
17188
|
+
P(Z, { name: "modal-fade" }, {
|
17189
17189
|
default: J(() => [
|
17190
17190
|
i.value && e.message.actions ? (A(), u("button", {
|
17191
17191
|
key: 0,
|
@@ -17197,13 +17197,13 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17197
17197
|
]),
|
17198
17198
|
_: 1
|
17199
17199
|
}),
|
17200
|
-
|
17200
|
+
P(Z, { name: "context-menu" }, {
|
17201
17201
|
default: J(() => [
|
17202
17202
|
s.value && e.message.actions ? (A(), R(T(Re), {
|
17203
17203
|
key: 0,
|
17204
17204
|
class: "image-message__context-menu",
|
17205
17205
|
actions: e.message.actions,
|
17206
|
-
onClick:
|
17206
|
+
onClick: y
|
17207
17207
|
}, null, 8, ["actions"])) : b("", !0)
|
17208
17208
|
]),
|
17209
17209
|
_: 1
|
@@ -17221,18 +17221,18 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17221
17221
|
}, null, 8, ["class", "linkPreview"])) : b("", !0)
|
17222
17222
|
]),
|
17223
17223
|
(A(), R(Be, { to: "body" }, [
|
17224
|
-
|
17224
|
+
P(Z, { name: "modal-fade" }, {
|
17225
17225
|
default: J(() => [
|
17226
17226
|
a.value ? (A(), u("div", {
|
17227
17227
|
key: 0,
|
17228
17228
|
class: "image-message__modal-overlay",
|
17229
|
-
onClick:
|
17229
|
+
onClick: z,
|
17230
17230
|
onKeyup: E[3] || (E[3] = Hf((_) => a.value = !1, ["esc"]))
|
17231
17231
|
}, [
|
17232
17232
|
o("div", nu, [
|
17233
17233
|
o("button", {
|
17234
17234
|
class: "image-message__modal-close-button",
|
17235
|
-
onClick:
|
17235
|
+
onClick: O
|
17236
17236
|
}, E[8] || (E[8] = [
|
17237
17237
|
o("span", null, [
|
17238
17238
|
o("i", { class: "pi pi-times" })
|
@@ -17278,25 +17278,25 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17278
17278
|
},
|
17279
17279
|
{ immediate: !0 }
|
17280
17280
|
);
|
17281
|
-
const l = (
|
17282
|
-
n("reply",
|
17281
|
+
const l = (h) => {
|
17282
|
+
n("reply", h);
|
17283
17283
|
};
|
17284
|
-
function c(
|
17285
|
-
|
17284
|
+
function c(h) {
|
17285
|
+
h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
|
17286
17286
|
}
|
17287
17287
|
const r = () => {
|
17288
17288
|
s.value = !0;
|
17289
17289
|
}, d = () => {
|
17290
17290
|
s.value = !1, a.value = !1;
|
17291
|
-
}, g = B(() => ot(f.message.status)),
|
17292
|
-
d(), n("action", { messageId: f.message.messageId, type: "menu", ...
|
17291
|
+
}, g = B(() => ot(f.message.status)), y = (h) => {
|
17292
|
+
d(), n("action", { messageId: f.message.messageId, type: "menu", ...h });
|
17293
17293
|
}, p = () => {
|
17294
17294
|
d(), n("action", { messageId: f.message.messageId, type: "views" });
|
17295
17295
|
};
|
17296
|
-
function m(
|
17297
|
-
return
|
17296
|
+
function m(h) {
|
17297
|
+
return h.position === "left" ? "text-message__left" : "text-message__right";
|
17298
17298
|
}
|
17299
|
-
return (
|
17299
|
+
return (h, v) => (A(), u("div", {
|
17300
17300
|
class: C(["text-message", m(e.message)]),
|
17301
17301
|
messageId: e.message.messageId,
|
17302
17302
|
onMouseleave: d
|
@@ -17351,17 +17351,17 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17351
17351
|
s.value && e.message.actions ? (A(), u("button", {
|
17352
17352
|
key: 2,
|
17353
17353
|
class: "text-message__menu-button",
|
17354
|
-
onClick: v[0] || (v[0] = (
|
17354
|
+
onClick: v[0] || (v[0] = (x) => a.value = !a.value)
|
17355
17355
|
}, v[3] || (v[3] = [
|
17356
17356
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
17357
17357
|
]))) : b("", !0),
|
17358
|
-
|
17358
|
+
P(Z, null, {
|
17359
17359
|
default: J(() => [
|
17360
17360
|
a.value && e.message.actions ? (A(), R(T(Re), {
|
17361
17361
|
key: 0,
|
17362
17362
|
class: "text-message__context-menu",
|
17363
17363
|
actions: e.message.actions,
|
17364
|
-
onClick:
|
17364
|
+
onClick: y
|
17365
17365
|
}, null, 8, ["actions"])) : b("", !0)
|
17366
17366
|
]),
|
17367
17367
|
_: 1
|
@@ -17396,7 +17396,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17396
17396
|
setup(e, { emit: t }) {
|
17397
17397
|
const f = e, n = t, a = M(), s = M(!1), i = M(0), l = M(0), c = M(!1), r = M(!1), d = M(!1), g = B(() => {
|
17398
17398
|
if (f.message.text) return _e(f.message.text);
|
17399
|
-
}),
|
17399
|
+
}), y = (N) => {
|
17400
17400
|
n("reply", N);
|
17401
17401
|
};
|
17402
17402
|
function p(N) {
|
@@ -17404,19 +17404,19 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17404
17404
|
}
|
17405
17405
|
const m = () => {
|
17406
17406
|
r.value = !0;
|
17407
|
-
},
|
17407
|
+
}, h = () => {
|
17408
17408
|
r.value = !1, c.value = !1;
|
17409
17409
|
}, v = () => {
|
17410
17410
|
n("action", { messageId: f.message.messageId, type: "views" });
|
17411
|
-
},
|
17412
|
-
},
|
17413
|
-
function
|
17411
|
+
}, x = () => {
|
17412
|
+
}, O = B(() => ot(f.message.status));
|
17413
|
+
function z() {
|
17414
17414
|
a.value && (s.value ? a.value.pause() : a.value.play(), s.value = !s.value);
|
17415
17415
|
}
|
17416
|
-
const
|
17416
|
+
const V = (N) => {
|
17417
17417
|
const j = Math.floor(N / 60), Q = Math.floor(N % 60);
|
17418
17418
|
return `${j.toString().padStart(2, "0")}:${Q.toString().padStart(2, "0")}`;
|
17419
|
-
}, k = B(() => a.value ?
|
17419
|
+
}, k = B(() => a.value ? V(l.value) : "0:00"), E = B(() => a.value ? V(i.value) : "0:00"), _ = B(() => i.value > 0 ? l.value / i.value * 100 : 0);
|
17420
17420
|
function w(N) {
|
17421
17421
|
return N.position === "left" ? "audio-message__left" : "audio-message__right";
|
17422
17422
|
}
|
@@ -17431,7 +17431,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17431
17431
|
return A(), u("div", {
|
17432
17432
|
class: C(["audio-message", w(e.message)]),
|
17433
17433
|
messageId: e.message.messageId,
|
17434
|
-
onMouseleave:
|
17434
|
+
onMouseleave: h
|
17435
17435
|
}, [
|
17436
17436
|
e.message.avatar ? (A(), u("img", {
|
17437
17437
|
key: 0,
|
@@ -17451,7 +17451,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17451
17451
|
style: { "grid-column": "1/3" },
|
17452
17452
|
message: e.message.reply,
|
17453
17453
|
class: C(e.message.position),
|
17454
|
-
onReply:
|
17454
|
+
onReply: y
|
17455
17455
|
}, null, 8, ["message", "class"])) : b("", !0),
|
17456
17456
|
o("div", vu, [
|
17457
17457
|
o("audio", {
|
@@ -17461,7 +17461,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17461
17461
|
}, null, 8, bu),
|
17462
17462
|
ve(o("button", {
|
17463
17463
|
class: "audio-message__play",
|
17464
|
-
onClick:
|
17464
|
+
onClick: z
|
17465
17465
|
}, j[3] || (j[3] = [
|
17466
17466
|
o("span", { class: "pi pi-play" }, null, -1)
|
17467
17467
|
]), 512), [
|
@@ -17469,7 +17469,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17469
17469
|
]),
|
17470
17470
|
ve(o("button", {
|
17471
17471
|
class: "audio-message__pause",
|
17472
|
-
onClick:
|
17472
|
+
onClick: z
|
17473
17473
|
}, j[4] || (j[4] = [
|
17474
17474
|
o("span", { class: "pi pi-pause" }, null, -1)
|
17475
17475
|
]), 512), [
|
@@ -17494,7 +17494,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17494
17494
|
]),
|
17495
17495
|
(Q = e.message.transcript) != null && Q.text ? (A(), u("div", wu, [
|
17496
17496
|
o("p", {
|
17497
|
-
onClick: j[0] || (j[0] = (
|
17497
|
+
onClick: j[0] || (j[0] = (L) => d.value = !d.value)
|
17498
17498
|
}, D(e.message.transcript.text), 1)
|
17499
17499
|
])) : b("", !0),
|
17500
17500
|
e.message.text ? (A(), u("div", ku, [
|
@@ -17520,7 +17520,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17520
17520
|
o("span", Eu, D(e.message.time), 1),
|
17521
17521
|
w(e.message) === "audio-message__right" && T(it).includes(e.message.status) ? (A(), u("div", {
|
17522
17522
|
key: 1,
|
17523
|
-
class: C(["audio-message__status",
|
17523
|
+
class: C(["audio-message__status", O.value])
|
17524
17524
|
}, [
|
17525
17525
|
e.message.status !== "sent" ? (A(), u("span", ju)) : b("", !0),
|
17526
17526
|
j[7] || (j[7] = o("span", { class: "pi pi-check" }, null, -1))
|
@@ -17529,37 +17529,37 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17529
17529
|
r.value && e.message.actions ? (A(), u("button", {
|
17530
17530
|
key: 4,
|
17531
17531
|
class: "audio-message__menu-button",
|
17532
|
-
onClick: j[1] || (j[1] = (
|
17532
|
+
onClick: j[1] || (j[1] = (L) => c.value = !c.value)
|
17533
17533
|
}, j[8] || (j[8] = [
|
17534
17534
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
17535
17535
|
]))) : b("", !0),
|
17536
|
-
|
17536
|
+
P(Z, null, {
|
17537
17537
|
default: J(() => [
|
17538
17538
|
c.value && e.message.actions ? (A(), R(T(Re), {
|
17539
17539
|
key: 0,
|
17540
17540
|
class: "audio-message__context-menu",
|
17541
17541
|
actions: e.message.actions,
|
17542
|
-
onClick:
|
17542
|
+
onClick: x
|
17543
17543
|
}, null, 8, ["actions"])) : b("", !0)
|
17544
17544
|
]),
|
17545
17545
|
_: 1
|
17546
17546
|
}),
|
17547
17547
|
(A(), R(Be, { to: "body" }, [
|
17548
|
-
|
17548
|
+
P(Z, { name: "modal-fade" }, {
|
17549
17549
|
default: J(() => {
|
17550
|
-
var
|
17550
|
+
var L;
|
17551
17551
|
return [
|
17552
17552
|
d.value ? (A(), u("div", Tu, [
|
17553
17553
|
o("div", xu, [
|
17554
17554
|
o("button", {
|
17555
17555
|
class: "audio-message__modal-close-button",
|
17556
|
-
onClick: j[2] || (j[2] = (
|
17556
|
+
onClick: j[2] || (j[2] = (H) => d.value = !1)
|
17557
17557
|
}, j[9] || (j[9] = [
|
17558
17558
|
o("span", null, [
|
17559
17559
|
o("i", { class: "pi pi-times" })
|
17560
17560
|
], -1)
|
17561
17561
|
])),
|
17562
|
-
o("p", Vu, D((
|
17562
|
+
o("p", Vu, D((L = e.message.transcript) == null ? void 0 : L.text), 1)
|
17563
17563
|
])
|
17564
17564
|
])) : b("", !0)
|
17565
17565
|
];
|
@@ -17571,7 +17571,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17571
17571
|
], 42, pu);
|
17572
17572
|
};
|
17573
17573
|
}
|
17574
|
-
}), Cu = /* @__PURE__ */ U(Su, [["__scopeId", "data-v-d2d38388"]]),
|
17574
|
+
}), Cu = /* @__PURE__ */ U(Su, [["__scopeId", "data-v-d2d38388"]]), Ou = { class: "date-message__container" }, zu = { class: "date-message__text" }, Lu = /* @__PURE__ */ W({
|
17575
17575
|
__name: "DateMessage",
|
17576
17576
|
props: {
|
17577
17577
|
message: {
|
@@ -17582,17 +17582,17 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17582
17582
|
}
|
17583
17583
|
},
|
17584
17584
|
setup(e) {
|
17585
|
-
return (t, f) => (A(), u("div",
|
17586
|
-
o("p",
|
17585
|
+
return (t, f) => (A(), u("div", Ou, [
|
17586
|
+
o("p", zu, D(e.message.text), 1)
|
17587
17587
|
]));
|
17588
17588
|
}
|
17589
17589
|
}), Uu = /* @__PURE__ */ U(Lu, [["__scopeId", "data-v-72a5e50d"]]), Bu = ["messageId"], Qu = ["src"], Ru = {
|
17590
17590
|
key: 1,
|
17591
17591
|
class: "video-message__subtext"
|
17592
|
-
}, Yu = { class: "video-message__content" }, $u = ["src"],
|
17592
|
+
}, Yu = { class: "video-message__content" }, $u = ["src"], Pu = {
|
17593
17593
|
key: 0,
|
17594
17594
|
class: "video-message__info-container"
|
17595
|
-
},
|
17595
|
+
}, Fu = { class: "video-message__time" }, qu = {
|
17596
17596
|
key: 0,
|
17597
17597
|
class: "pi pi-check"
|
17598
17598
|
}, Hu = ["href"], Wu = {
|
@@ -17615,11 +17615,11 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17615
17615
|
function s(w) {
|
17616
17616
|
return w.position === "left" ? "video-message__left" : "video-message__right";
|
17617
17617
|
}
|
17618
|
-
const i = M(), l = M(), c = M(!1), r = M(!1), d = M(!1), g = M(!1),
|
17618
|
+
const i = M(), l = M(), c = M(!1), r = M(!1), d = M(!1), g = M(!1), y = M("");
|
17619
17619
|
X(
|
17620
17620
|
() => f.message.text,
|
17621
17621
|
() => {
|
17622
|
-
f.message.text && (
|
17622
|
+
f.message.text && (y.value = _e(f.message.text));
|
17623
17623
|
},
|
17624
17624
|
{ immediate: !0 }
|
17625
17625
|
);
|
@@ -17628,18 +17628,18 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17628
17628
|
}
|
17629
17629
|
const m = () => {
|
17630
17630
|
n("action", { messageId: f.message.messageId, type: "views" });
|
17631
|
-
},
|
17631
|
+
}, h = () => {
|
17632
17632
|
}, v = () => {
|
17633
17633
|
d.value = !0, g.value = !0;
|
17634
|
-
},
|
17634
|
+
}, x = () => {
|
17635
17635
|
d.value = !1, r.value = !1;
|
17636
|
-
},
|
17636
|
+
}, O = B(() => ot(f.message.status)), z = () => {
|
17637
17637
|
l.value && (l.value.currentTime = 0, l.value.play());
|
17638
17638
|
};
|
17639
17639
|
X([i, l], ([w, N]) => {
|
17640
17640
|
w ? N && (N.pause(), N.currentTime = 0) : N && (N.play(), N.currentTime = 0);
|
17641
17641
|
});
|
17642
|
-
const
|
17642
|
+
const V = B(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), k = () => c.value = !1, E = (w) => {
|
17643
17643
|
w.target.classList.contains("video-message__modal-overlay") && k();
|
17644
17644
|
}, _ = (w) => {
|
17645
17645
|
w.key === "Escape" && c.value && k();
|
@@ -17648,11 +17648,11 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17648
17648
|
document.addEventListener("keydown", _);
|
17649
17649
|
}), He(() => {
|
17650
17650
|
document.removeEventListener("keydown", _);
|
17651
|
-
}), (w, N) => (A(), u(
|
17651
|
+
}), (w, N) => (A(), u(q, null, [
|
17652
17652
|
o("div", {
|
17653
17653
|
class: C(["video-message", s(e.message)]),
|
17654
17654
|
messageId: e.message.messageId,
|
17655
|
-
onMouseleave:
|
17655
|
+
onMouseleave: x
|
17656
17656
|
}, [
|
17657
17657
|
e.message.avatar ? (A(), u("img", {
|
17658
17658
|
key: 0,
|
@@ -17680,15 +17680,15 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17680
17680
|
ref_key: "previewPlayer",
|
17681
17681
|
ref: l,
|
17682
17682
|
class: "video-message__video",
|
17683
|
-
style: se({ borderRadius:
|
17684
|
-
onEnded:
|
17683
|
+
style: se({ borderRadius: V.value }),
|
17684
|
+
onEnded: z,
|
17685
17685
|
src: e.message.url,
|
17686
17686
|
muted: !0,
|
17687
17687
|
autoplay: ""
|
17688
17688
|
}, null, 44, $u),
|
17689
|
-
|
17689
|
+
P(Z, { name: "modal-fade" }, {
|
17690
17690
|
default: J(() => [
|
17691
|
-
g.value ? (A(), u("div",
|
17691
|
+
g.value ? (A(), u("div", Pu, [
|
17692
17692
|
e.message.views ? (A(), u("div", {
|
17693
17693
|
key: 0,
|
17694
17694
|
onClick: _t(m, ["stop"]),
|
@@ -17697,10 +17697,10 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17697
17697
|
N[3] || (N[3] = o("span", { class: "pi pi-eye" }, null, -1)),
|
17698
17698
|
o("p", null, D(e.message.views), 1)
|
17699
17699
|
])) : b("", !0),
|
17700
|
-
o("span",
|
17700
|
+
o("span", Fu, D(e.message.time), 1),
|
17701
17701
|
s(e.message) === "video-message__right" && T(it).includes(e.message.status) ? (A(), u("div", {
|
17702
17702
|
key: 1,
|
17703
|
-
class: C(["video-message__status",
|
17703
|
+
class: C(["video-message__status", O.value])
|
17704
17704
|
}, [
|
17705
17705
|
e.message.status !== "sent" ? (A(), u("span", qu)) : b("", !0),
|
17706
17706
|
N[4] || (N[4] = o("span", { class: "pi pi-check" }, null, -1))
|
@@ -17709,7 +17709,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17709
17709
|
]),
|
17710
17710
|
_: 1
|
17711
17711
|
}),
|
17712
|
-
|
17712
|
+
P(Z, { name: "modal-fade" }, {
|
17713
17713
|
default: J(() => [
|
17714
17714
|
g.value ? (A(), u("a", {
|
17715
17715
|
key: 0,
|
@@ -17725,7 +17725,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17725
17725
|
_: 1
|
17726
17726
|
})
|
17727
17727
|
], 32),
|
17728
|
-
|
17728
|
+
P(Z, { name: "modal-fade" }, {
|
17729
17729
|
default: J(() => [
|
17730
17730
|
d.value && e.message.actions ? (A(), u("button", {
|
17731
17731
|
key: 0,
|
@@ -17737,20 +17737,20 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17737
17737
|
]),
|
17738
17738
|
_: 1
|
17739
17739
|
}),
|
17740
|
-
|
17740
|
+
P(Z, { name: "context-menu" }, {
|
17741
17741
|
default: J(() => [
|
17742
17742
|
r.value && e.message.actions ? (A(), R(T(Re), {
|
17743
17743
|
key: 0,
|
17744
17744
|
class: "video-message__context-menu",
|
17745
17745
|
actions: e.message.actions,
|
17746
|
-
onClick:
|
17746
|
+
onClick: h
|
17747
17747
|
}, null, 8, ["actions"])) : b("", !0)
|
17748
17748
|
]),
|
17749
17749
|
_: 1
|
17750
17750
|
}),
|
17751
17751
|
e.message.text ? (A(), u("div", Wu, [
|
17752
17752
|
o("p", {
|
17753
|
-
innerHTML:
|
17753
|
+
innerHTML: y.value,
|
17754
17754
|
onClick: p
|
17755
17755
|
}, null, 8, Ku)
|
17756
17756
|
])) : b("", !0),
|
@@ -17762,7 +17762,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17762
17762
|
])
|
17763
17763
|
], 42, Bu),
|
17764
17764
|
(A(), R(Be, { to: "body" }, [
|
17765
|
-
|
17765
|
+
P(Z, { name: "modal-fade" }, {
|
17766
17766
|
default: J(() => [
|
17767
17767
|
c.value ? (A(), u("div", {
|
17768
17768
|
key: 0,
|
@@ -17873,7 +17873,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17873
17873
|
o("span", { class: "pi pi-arrow-up-right" }, null, -1)
|
17874
17874
|
]))) : b("", !0),
|
17875
17875
|
(A(), R(Be, { to: "body" }, [
|
17876
|
-
|
17876
|
+
P(Z, { name: "modal-fade" }, {
|
17877
17877
|
default: J(() => {
|
17878
17878
|
var l;
|
17879
17879
|
return [
|
@@ -17887,7 +17887,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17887
17887
|
o("i", { class: "pi pi-times" })
|
17888
17888
|
], -1)
|
17889
17889
|
])),
|
17890
|
-
(A(!0), u(
|
17890
|
+
(A(!0), u(q, null, fe((l = e.message.transcript) == null ? void 0 : l.dialog, (c, r) => (A(), u("div", {
|
17891
17891
|
class: C(n(c, f.textDialog))
|
17892
17892
|
}, [
|
17893
17893
|
o("p", null, D(c.text), 1),
|
@@ -17998,7 +17998,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
17998
17998
|
document.addEventListener("keydown", l);
|
17999
17999
|
}), He(() => {
|
18000
18000
|
document.removeEventListener("keydown", l);
|
18001
|
-
}), (c, r) => (A(), u(
|
18001
|
+
}), (c, r) => (A(), u(q, null, [
|
18002
18002
|
o("div", {
|
18003
18003
|
class: "image-message__preview-button",
|
18004
18004
|
onClick: r[0] || (r[0] = (d) => f.value = !0)
|
@@ -18021,7 +18021,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
18021
18021
|
}, null, 8, E1)) : b("", !0)
|
18022
18022
|
]),
|
18023
18023
|
(A(), R(Be, { to: "body" }, [
|
18024
|
-
|
18024
|
+
P(Z, { name: "modal-fade" }, {
|
18025
18025
|
default: J(() => [
|
18026
18026
|
f.value ? (A(), u("div", {
|
18027
18027
|
key: 0,
|
@@ -18050,7 +18050,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
18050
18050
|
]))
|
18051
18051
|
], 64));
|
18052
18052
|
}
|
18053
|
-
}), V1 = /* @__PURE__ */ U(x1, [["__scopeId", "data-v-15fb5caf"]]), S1 = { class: "audio-message__play" }, C1 = { class: "audio-message__text-container" },
|
18053
|
+
}), V1 = /* @__PURE__ */ U(x1, [["__scopeId", "data-v-15fb5caf"]]), S1 = { class: "audio-message__play" }, C1 = { class: "audio-message__text-container" }, O1 = ["innerHTML"], z1 = /* @__PURE__ */ W({
|
18054
18054
|
__name: "ReplyAudioMessage",
|
18055
18055
|
props: {
|
18056
18056
|
message: {
|
@@ -18070,7 +18070,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
18070
18070
|
function a(s) {
|
18071
18071
|
s.preventDefault(), s.target.href && window.open(s.target.href, "_blank");
|
18072
18072
|
}
|
18073
|
-
return (s, i) => (A(), u(
|
18073
|
+
return (s, i) => (A(), u(q, null, [
|
18074
18074
|
ve(o("div", S1, i[0] || (i[0] = [
|
18075
18075
|
o("span", { class: "pi pi-play" }, null, -1)
|
18076
18076
|
]), 512), [
|
@@ -18085,11 +18085,11 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
18085
18085
|
key: 0,
|
18086
18086
|
innerHTML: n.value,
|
18087
18087
|
onClick: a
|
18088
|
-
}, null, 8,
|
18088
|
+
}, null, 8, O1)) : b("", !0)
|
18089
18089
|
])
|
18090
18090
|
], 64));
|
18091
18091
|
}
|
18092
|
-
}), L1 = /* @__PURE__ */ U(
|
18092
|
+
}), L1 = /* @__PURE__ */ U(z1, [["__scopeId", "data-v-bae2afcf"]]), U1 = ["src"], B1 = { class: "video-message__text-container" }, Q1 = ["innerHTML"], R1 = { class: "video-message__modal" }, Y1 = ["src", "alt"], $1 = /* @__PURE__ */ W({
|
18093
18093
|
__name: "ReplyVideoMessage",
|
18094
18094
|
props: {
|
18095
18095
|
message: {
|
@@ -18118,7 +18118,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
18118
18118
|
document.addEventListener("keydown", c);
|
18119
18119
|
}), He(() => {
|
18120
18120
|
document.removeEventListener("keydown", c);
|
18121
|
-
}), (r, d) => (A(), u(
|
18121
|
+
}), (r, d) => (A(), u(q, null, [
|
18122
18122
|
o("div", {
|
18123
18123
|
class: "video-message__preview-button",
|
18124
18124
|
onClick: d[0] || (d[0] = (g) => n.value = !0)
|
@@ -18141,7 +18141,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
18141
18141
|
}, null, 8, Q1)) : b("", !0)
|
18142
18142
|
]),
|
18143
18143
|
(A(), R(Be, { to: "body" }, [
|
18144
|
-
|
18144
|
+
P(Z, { name: "modal-fade" }, {
|
18145
18145
|
default: J(() => [
|
18146
18146
|
n.value ? (A(), u("div", {
|
18147
18147
|
key: 0,
|
@@ -18174,7 +18174,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
18174
18174
|
]))
|
18175
18175
|
], 64));
|
18176
18176
|
}
|
18177
|
-
}),
|
18177
|
+
}), P1 = /* @__PURE__ */ U($1, [["__scopeId", "data-v-9ccb066c"]]), F1 = ["href"], q1 = { class: "file-message__filename-text" }, H1 = {
|
18178
18178
|
key: 0,
|
18179
18179
|
class: "file-message__text"
|
18180
18180
|
}, W1 = /* @__PURE__ */ W({
|
@@ -18195,7 +18195,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
18195
18195
|
{ immediate: !0 }
|
18196
18196
|
), (n, a) => {
|
18197
18197
|
var s;
|
18198
|
-
return A(), u(
|
18198
|
+
return A(), u(q, null, [
|
18199
18199
|
o("a", {
|
18200
18200
|
class: "file-message__link",
|
18201
18201
|
href: e.message.url,
|
@@ -18204,7 +18204,7 @@ const lc = { class: "feed-search__container" }, Ac = { style: { "line-height": "
|
|
18204
18204
|
}, [
|
18205
18205
|
a[0] || (a[0] = o("span", { class: "pi pi-file" }, null, -1)),
|
18206
18206
|
o("p", q1, D(e.message.filename), 1)
|
18207
|
-
], 8,
|
18207
|
+
], 8, F1),
|
18208
18208
|
(s = e.message) != null && s.text ? (A(), u("p", H1, D(e.message.text), 1)) : b("", !0)
|
18209
18209
|
], 64);
|
18210
18210
|
};
|
@@ -18289,7 +18289,7 @@ function gn({ component: e, attrs: t }) {
|
|
18289
18289
|
const Xd = async (e, t) => {
|
18290
18290
|
const f = await gn({
|
18291
18291
|
//в component должен быть встроен emit change(key: value)
|
18292
|
-
component: import("./SelectUser2-
|
18292
|
+
component: import("./SelectUser2-_xJHaaia.js"),
|
18293
18293
|
attrs: {
|
18294
18294
|
title: e,
|
18295
18295
|
users: t
|
@@ -18351,10 +18351,10 @@ const Xd = async (e, t) => {
|
|
18351
18351
|
bf("chatAppId", d);
|
18352
18352
|
const g = (m) => {
|
18353
18353
|
i.value = !0, l.value = m.clientX - a.value.offsetLeft, c.value = m.clientY - a.value.offsetTop;
|
18354
|
-
},
|
18354
|
+
}, y = () => i.value = !1, p = (m) => {
|
18355
18355
|
if (i.value) {
|
18356
|
-
const
|
18357
|
-
n.value.x =
|
18356
|
+
const h = m.clientX - l.value, v = m.clientY - c.value;
|
18357
|
+
n.value.x = h, n.value.y = v;
|
18358
18358
|
}
|
18359
18359
|
};
|
18360
18360
|
return le(() => {
|
@@ -18373,7 +18373,7 @@ const Xd = async (e, t) => {
|
|
18373
18373
|
)
|
18374
18374
|
));
|
18375
18375
|
}), r.value = a.value.offsetHeight - s.value.offsetHeight;
|
18376
|
-
}), (m,
|
18376
|
+
}), (m, h) => (A(), u("div", {
|
18377
18377
|
id: T(d),
|
18378
18378
|
ref_key: "element",
|
18379
18379
|
ref: a,
|
@@ -18393,8 +18393,8 @@ const Xd = async (e, t) => {
|
|
18393
18393
|
ref: s,
|
18394
18394
|
class: "float-window__controls",
|
18395
18395
|
onMousedown: g,
|
18396
|
-
onMouseup:
|
18397
|
-
onMouseleave:
|
18396
|
+
onMouseup: y,
|
18397
|
+
onMouseleave: y
|
18398
18398
|
}, [
|
18399
18399
|
f.avatar ? (A(), u("img", {
|
18400
18400
|
key: 0,
|
@@ -18407,8 +18407,8 @@ const Xd = async (e, t) => {
|
|
18407
18407
|
ne(m.$slots, "controls", {}, void 0, !0),
|
18408
18408
|
o("button", {
|
18409
18409
|
class: "float-window__close-button",
|
18410
|
-
onClick:
|
18411
|
-
},
|
18410
|
+
onClick: h[0] || (h[0] = (v) => m.$emit("close-window"))
|
18411
|
+
}, h[1] || (h[1] = [
|
18412
18412
|
o("span", { class: "pi pi-times" }, null, -1)
|
18413
18413
|
]))
|
18414
18414
|
])
|
@@ -18455,7 +18455,7 @@ function Id(e, t) {
|
|
18455
18455
|
])
|
18456
18456
|
]);
|
18457
18457
|
}
|
18458
|
-
const ig = /* @__PURE__ */ U(bd, [["render", Id], ["__scopeId", "data-v-a4657f8e"]]), wd =
|
18458
|
+
const ig = /* @__PURE__ */ U(bd, [["render", Id], ["__scopeId", "data-v-a4657f8e"]]), wd = ["id"], kd = {
|
18459
18459
|
key: 0,
|
18460
18460
|
class: "chat-wrapper__selected-chat"
|
18461
18461
|
}, Nd = {
|
@@ -18472,28 +18472,40 @@ const ig = /* @__PURE__ */ U(bd, [["render", Id], ["__scopeId", "data-v-a4657f8e
|
|
18472
18472
|
type: Boolean,
|
18473
18473
|
default: !1
|
18474
18474
|
},
|
18475
|
-
|
18476
|
-
type:
|
18477
|
-
|
18475
|
+
chatPanelWidth: {
|
18476
|
+
type: Number,
|
18477
|
+
required: !1,
|
18478
|
+
default: 50
|
18478
18479
|
}
|
18479
18480
|
},
|
18480
18481
|
setup(e) {
|
18481
|
-
|
18482
|
+
const t = e, f = oe("chatAppId");
|
18483
|
+
return X(
|
18484
|
+
() => t.chatPanelWidth,
|
18485
|
+
() => {
|
18486
|
+
const n = document.getElementById("chat-wrapper-" + f);
|
18487
|
+
n && (n.style.setProperty("--chat-panel-width", t.chatPanelWidth + "%"), n.style.setProperty("--chat-panel-left", 100 - t.chatPanelWidth + "%"));
|
18488
|
+
},
|
18489
|
+
{ immediate: !0 }
|
18490
|
+
), (n, a) => (A(), u("div", {
|
18491
|
+
class: "chat-wrapper",
|
18492
|
+
id: "chat-wrapper-" + T(f)
|
18493
|
+
}, [
|
18482
18494
|
e.isSelectedChat ? (A(), u("div", kd, [
|
18483
|
-
ne(
|
18495
|
+
ne(n.$slots, "default", {}, void 0, !0)
|
18484
18496
|
])) : (A(), u("div", Nd, [
|
18485
18497
|
o("p", null, D(T(de)("layout.ChatWrapper.noSelectedChat")), 1)
|
18486
18498
|
])),
|
18487
18499
|
e.isOpenChatPanel ? (A(), u("div", {
|
18488
18500
|
key: 2,
|
18489
|
-
class:
|
18501
|
+
class: "chat-wrapper__chat-panel",
|
18490
18502
|
style: se({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
|
18491
18503
|
}, [
|
18492
|
-
ne(
|
18493
|
-
],
|
18494
|
-
]));
|
18504
|
+
ne(n.$slots, "chatpanel", {}, void 0, !0)
|
18505
|
+
], 4)) : b("", !0)
|
18506
|
+
], 8, wd));
|
18495
18507
|
}
|
18496
|
-
}), og = /* @__PURE__ */ U(Dd, [["__scopeId", "data-v-
|
18508
|
+
}), og = /* @__PURE__ */ U(Dd, [["__scopeId", "data-v-584eaa98"]]), Ed = ["id"], jd = ["id"], Td = ["id"], xd = ["id"], Vd = {
|
18497
18509
|
__name: "AdaptiveExtendedLayout",
|
18498
18510
|
props: {
|
18499
18511
|
isSecondColVisible: {
|
@@ -18557,7 +18569,7 @@ export {
|
|
18557
18569
|
g1 as C,
|
18558
18570
|
Uu as D,
|
18559
18571
|
eg as E,
|
18560
|
-
|
18572
|
+
Fc as F,
|
18561
18573
|
tg as G,
|
18562
18574
|
fg as H,
|
18563
18575
|
iu as I,
|
@@ -18583,16 +18595,16 @@ export {
|
|
18583
18595
|
ot as a0,
|
18584
18596
|
V1 as b,
|
18585
18597
|
L1 as c,
|
18586
|
-
|
18598
|
+
P1 as d,
|
18587
18599
|
K1 as e,
|
18588
18600
|
lt as f,
|
18589
18601
|
Cd as g,
|
18590
|
-
|
18591
|
-
|
18602
|
+
Od as h,
|
18603
|
+
zd as i,
|
18592
18604
|
Ld as j,
|
18593
18605
|
$d as k,
|
18594
|
-
|
18595
|
-
|
18606
|
+
Pd as l,
|
18607
|
+
Fd as m,
|
18596
18608
|
qd as n,
|
18597
18609
|
Hd as o,
|
18598
18610
|
Vf as p,
|