@mobilon-dev/chotto 0.2.49 → 0.2.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CreateDialog-CGjB_8Ep.js → CreateDialog-CRt5uona.js} +1 -1
- package/dist/{ModalVideoRecorder-BWqjZkXW.js → ModalVideoRecorder-Cd65aqOP.js} +1 -1
- package/dist/{SelectUser2-dvHqMILK.js → SelectUser2-C_JRsq7t.js} +1 -1
- package/dist/chotto.css +1 -1
- package/dist/{index-BF_DCp-1.js → index-DryqgSlZ.js} +707 -701
- package/dist/vuessages.es.js +1 -1
- package/dist/vuessages.umd.js +6 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as u, openBlock as l, createStaticVNode as vf, inject as
|
|
1
|
+
import { createElementBlock as u, openBlock as l, createStaticVNode as vf, inject as de, computed as Q, createCommentVNode as v, createElementVNode as o, createVNode as q, createTextVNode as Ze, toDisplayString as E, renderSlot as ge, unref as T, ref as h, customRef as Mn, defineComponent as ne, watch as ce, nextTick as me, onMounted as be, withDirectives as Me, withKeys as Tt, vModelText as Uf, normalizeClass as j, createBlock as B, resolveDynamicComponent as Qe, Fragment as ee, renderList as pe, Transition as he, withCtx as G, useTemplateRef as wn, normalizeStyle as _e, Teleport as je, onUnmounted as sf, vShow as Ke, useId as l1, toRef as Jt, withModifiers as Ef, vModelRadio as Dt, reactive as Cn, provide as jf, getCurrentInstance as aa, toRaw as In, onBeforeUnmount as sa, readonly as ia, resolveComponent as y1, h as Gt, defineAsyncComponent as oa, createApp as la } from "vue";
|
|
2
2
|
const ua = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", ca = "ελ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", ht = "numeric", _t = "ascii", vt = "alpha", Zf = "asciinumeric", Wf = "alphanumeric", bt = "domain", kn = "emoji", ra = "scheme", da = "slashscheme", ot = "whitespace";
|
|
3
3
|
function Aa(e, f) {
|
|
4
4
|
return e in f || (f[e] = []), f[e];
|
|
@@ -140,7 +140,7 @@ Be.prototype = {
|
|
|
140
140
|
return a.j[e] = s, s;
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
const ue = (e, f, t, n, a) => e.ta(f, t, n, a),
|
|
143
|
+
const ue = (e, f, t, n, a) => e.ta(f, t, n, a), ye = (e, f, t, n, a) => e.tr(f, t, n, a), Xt = (e, f, t, n, a) => e.ts(f, t, n, a), L = (e, f, t, n, a) => e.tt(f, t, n, a), uf = "WORD", yt = "UWORD", xn = "ASCIINUMERICAL", Tn = "ALPHANUMERICAL", n1 = "LOCALHOST", Mt = "TLD", wt = "UTLD", M1 = "SCHEME", Nf = "SLASH_SCHEME", Nt = "NUM", Ct = "WS", Et = "NL", Kf = "OPENBRACE", Jf = "CLOSEBRACE", I1 = "OPENBRACKET", k1 = "CLOSEBRACKET", x1 = "OPENPAREN", T1 = "CLOSEPAREN", D1 = "OPENANGLEBRACKET", N1 = "CLOSEANGLEBRACKET", E1 = "FULLWIDTHLEFTPAREN", j1 = "FULLWIDTHRIGHTPAREN", S1 = "LEFTCORNERBRACKET", V1 = "RIGHTCORNERBRACKET", L1 = "LEFTWHITECORNERBRACKET", O1 = "RIGHTWHITECORNERBRACKET", z1 = "FULLWIDTHLESSTHAN", B1 = "FULLWIDTHGREATERTHAN", U1 = "AMPERSAND", $1 = "APOSTROPHE", R1 = "ASTERISK", pf = "AT", Q1 = "BACKSLASH", F1 = "BACKTICK", P1 = "CARET", hf = "COLON", jt = "COMMA", Y1 = "DOLLAR", ef = "DOT", q1 = "EQUALS", St = "EXCLAMATION", Re = "HYPHEN", Gf = "PERCENT", H1 = "PIPE", W1 = "PLUS", Z1 = "POUND", Xf = "QUERY", Vt = "QUOTE", Dn = "FULLWIDTHMIDDLEDOT", Lt = "SEMI", ff = "SLASH", e1 = "TILDE", K1 = "UNDERSCORE", Nn = "EMOJI", J1 = "SYM";
|
|
144
144
|
var En = /* @__PURE__ */ Object.freeze({
|
|
145
145
|
__proto__: null,
|
|
146
146
|
ALPHANUMERICAL: Tn,
|
|
@@ -207,36 +207,36 @@ function ha(e = []) {
|
|
|
207
207
|
Be.groups = f;
|
|
208
208
|
const t = new Be();
|
|
209
209
|
p1 == null && (p1 = fn(ua)), h1 == null && (h1 = fn(ca)), L(t, "'", $1), L(t, "{", Kf), L(t, "}", Jf), L(t, "[", I1), L(t, "]", k1), L(t, "(", x1), L(t, ")", T1), L(t, "<", D1), L(t, ">", N1), L(t, "(", E1), L(t, ")", j1), L(t, "「", S1), L(t, "」", V1), L(t, "『", L1), L(t, "』", O1), L(t, "<", z1), L(t, ">", B1), L(t, "&", U1), L(t, "*", R1), L(t, "@", pf), L(t, "`", F1), L(t, "^", P1), L(t, ":", hf), L(t, ",", jt), L(t, "$", Y1), L(t, ".", ef), L(t, "=", q1), L(t, "!", St), L(t, "-", Re), L(t, "%", Gf), L(t, "|", H1), L(t, "+", W1), L(t, "#", Z1), L(t, "?", Xf), L(t, '"', Vt), L(t, "/", ff), L(t, ";", Lt), L(t, "~", e1), L(t, "_", K1), L(t, "\\", Q1), L(t, "・", Dn);
|
|
210
|
-
const n =
|
|
210
|
+
const n = ye(t, lf, Nt, {
|
|
211
211
|
[ht]: !0
|
|
212
212
|
});
|
|
213
|
-
|
|
214
|
-
const a =
|
|
213
|
+
ye(n, lf, n);
|
|
214
|
+
const a = ye(n, of, xn, {
|
|
215
215
|
[Zf]: !0
|
|
216
|
-
}), i =
|
|
216
|
+
}), i = ye(n, Pf, Tn, {
|
|
217
217
|
[Wf]: !0
|
|
218
|
-
}), s =
|
|
218
|
+
}), s = ye(t, of, uf, {
|
|
219
219
|
[_t]: !0
|
|
220
220
|
});
|
|
221
|
-
|
|
222
|
-
const r =
|
|
221
|
+
ye(s, lf, a), ye(s, of, s), ye(a, lf, a), ye(a, of, a);
|
|
222
|
+
const r = ye(t, Pf, yt, {
|
|
223
223
|
[vt]: !0
|
|
224
224
|
});
|
|
225
|
-
|
|
225
|
+
ye(r, of), ye(r, lf, i), ye(r, Pf, r), ye(i, lf, i), ye(i, of), ye(i, Pf, i);
|
|
226
226
|
const c = L(t, ct, Et, {
|
|
227
227
|
[ot]: !0
|
|
228
228
|
}), d = L(t, en, Ct, {
|
|
229
229
|
[ot]: !0
|
|
230
|
-
}), A =
|
|
230
|
+
}), A = ye(t, ut, Ct, {
|
|
231
231
|
[ot]: !0
|
|
232
232
|
});
|
|
233
|
-
L(t, rt, A), L(d, ct, c), L(d, rt, A),
|
|
234
|
-
const g =
|
|
233
|
+
L(t, rt, A), L(d, ct, c), L(d, rt, A), ye(d, ut, A), L(A, en), L(A, ct), ye(A, ut, A), L(A, rt, A);
|
|
234
|
+
const g = ye(t, lt, Nn, {
|
|
235
235
|
[kn]: !0
|
|
236
236
|
});
|
|
237
|
-
L(g, "#"),
|
|
237
|
+
L(g, "#"), ye(g, lt, g), L(g, ma, g);
|
|
238
238
|
const p = L(g, pa);
|
|
239
|
-
L(p, "#"),
|
|
239
|
+
L(p, "#"), ye(p, lt, g);
|
|
240
240
|
const C = [[of, s], [lf, a]], y = [[of, null], [Pf, r], [lf, i]];
|
|
241
241
|
for (let M = 0; M < p1.length; M++)
|
|
242
242
|
mf(t, p1[M], Mt, uf, C);
|
|
@@ -608,13 +608,13 @@ function ba({
|
|
|
608
608
|
[z1, B1]
|
|
609
609
|
// <>
|
|
610
610
|
];
|
|
611
|
-
for (let
|
|
612
|
-
const [ae,
|
|
613
|
-
L(m, ae, H), L(H,
|
|
614
|
-
const
|
|
615
|
-
ue(H, f,
|
|
616
|
-
const
|
|
617
|
-
ue(H, t), ue(
|
|
611
|
+
for (let P = 0; P < fe.length; P++) {
|
|
612
|
+
const [ae, K] = fe[P], H = L(I, ae);
|
|
613
|
+
L(m, ae, H), L(H, K, I);
|
|
614
|
+
const R = $e(_1);
|
|
615
|
+
ue(H, f, R);
|
|
616
|
+
const ie = $e();
|
|
617
|
+
ue(H, t), ue(R, f, R), ue(R, t, ie), ue(ie, f, R), ue(ie, t, ie), L(R, K, I), L(ie, K, I);
|
|
618
618
|
}
|
|
619
619
|
return L(a, n1, N), L(a, Et, va), {
|
|
620
620
|
start: a,
|
|
@@ -789,7 +789,7 @@ const On = /* @__PURE__ */ z(ka, [["render", Ta]]), Da = {
|
|
|
789
789
|
},
|
|
790
790
|
emits: ["returnToChats"],
|
|
791
791
|
setup(e, { emit: f }) {
|
|
792
|
-
const t = e, n = f, a =
|
|
792
|
+
const t = e, n = f, a = de("chatAppId"), i = Q(() => {
|
|
793
793
|
if (t.description) return t.description;
|
|
794
794
|
if (!t.description && t.defaultLastActivityTime) return t.chat["lastActivity.time"];
|
|
795
795
|
});
|
|
@@ -816,19 +816,19 @@ const On = /* @__PURE__ */ z(ka, [["render", Ta]]), Da = {
|
|
|
816
816
|
e.additionalTitle ? (l(), u("span", Oa, E(e.additionalTitle), 1)) : v("", !0)
|
|
817
817
|
]),
|
|
818
818
|
i.value ? (l(), u("p", za, [
|
|
819
|
-
|
|
819
|
+
ge(s.$slots, "img-description", {}, void 0, !0),
|
|
820
820
|
Ze(" " + E(i.value), 1)
|
|
821
821
|
])) : v("", !0)
|
|
822
822
|
]),
|
|
823
823
|
o("div", Ba, [
|
|
824
|
-
|
|
824
|
+
ge(s.$slots, "actions", {}, void 0, !0)
|
|
825
825
|
])
|
|
826
826
|
]),
|
|
827
827
|
o("div", {
|
|
828
828
|
id: "chat-info-search-panel-" + T(a),
|
|
829
829
|
class: "chat-info__search-panel"
|
|
830
830
|
}, [
|
|
831
|
-
|
|
831
|
+
ge(s.$slots, "search", {}, void 0, !0)
|
|
832
832
|
], 8, Ua)
|
|
833
833
|
])) : v("", !0);
|
|
834
834
|
}
|
|
@@ -1359,7 +1359,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1359
1359
|
},
|
|
1360
1360
|
emits: ["send", "typing"],
|
|
1361
1361
|
setup(e, { emit: f }) {
|
|
1362
|
-
const t = f, n =
|
|
1362
|
+
const t = f, n = de("chatAppId"), { resetMessage: a, getMessage: i, setMessageText: s, setForceSendMessage: r } = qe(n), c = h(), d = Ya("", 2e3), A = h(), g = e, p = Q(() => !!(g.state == "disabled" || i().text == "" && !i().file || i().isRecording)), C = Q(() => Js), y = Q(() => {
|
|
1363
1363
|
var I;
|
|
1364
1364
|
if (g.inputButtonColor)
|
|
1365
1365
|
return g.inputButtonColor;
|
|
@@ -1367,7 +1367,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1367
1367
|
return "#25D366";
|
|
1368
1368
|
const w = g.selectedChannel.channelId.toLowerCase();
|
|
1369
1369
|
return w.includes("whatsapp") || w.includes("waba") ? "#25D366" : w.includes("telegram") ? "#37AFE2" : w.includes("sms") ? "#6C757D" : w.includes("max") ? "#4B0082" : "#25D366";
|
|
1370
|
-
}), M =
|
|
1370
|
+
}), M = Q(() => {
|
|
1371
1371
|
var I;
|
|
1372
1372
|
if (!((I = g.selectedChannel) != null && I.channelId))
|
|
1373
1373
|
return Te("component.ChatInput.InputPlaceholder");
|
|
@@ -1382,7 +1382,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1382
1382
|
), ce(
|
|
1383
1383
|
() => g.focusOnInputArea,
|
|
1384
1384
|
() => {
|
|
1385
|
-
g.focusOnInputArea &&
|
|
1385
|
+
g.focusOnInputArea && me(() => {
|
|
1386
1386
|
const w = T(c);
|
|
1387
1387
|
w == null || w.focus();
|
|
1388
1388
|
});
|
|
@@ -1391,18 +1391,18 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1391
1391
|
), ce(
|
|
1392
1392
|
() => i().text,
|
|
1393
1393
|
() => {
|
|
1394
|
-
|
|
1394
|
+
me(() => {
|
|
1395
1395
|
const w = c.value;
|
|
1396
1396
|
if (!w) return;
|
|
1397
1397
|
const I = w.scrollTop;
|
|
1398
1398
|
w.style.height = "auto";
|
|
1399
1399
|
const m = getComputedStyle(w), b = parseFloat(m.fontSize) || 16, D = parseFloat(m.lineHeight) || b * 1.4, O = 40, S = D * 11, fe = w.scrollHeight, ae = i().text.split(`
|
|
1400
|
-
`).length > 1,
|
|
1401
|
-
|
|
1402
|
-
const H =
|
|
1403
|
-
document.body.removeChild(
|
|
1404
|
-
const
|
|
1405
|
-
i().text.trim() &&
|
|
1400
|
+
`).length > 1, K = document.createElement("div");
|
|
1401
|
+
K.style.position = "absolute", K.style.visibility = "hidden", K.style.whiteSpace = "nowrap", K.style.font = m.font, K.style.fontSize = m.fontSize, K.style.fontFamily = m.fontFamily, K.style.fontWeight = m.fontWeight, K.style.letterSpacing = m.letterSpacing, K.textContent = i().text, document.body.appendChild(K);
|
|
1402
|
+
const H = K.offsetWidth;
|
|
1403
|
+
document.body.removeChild(K);
|
|
1404
|
+
const R = parseFloat(m.paddingLeft) || 0, ie = parseFloat(m.paddingRight) || 0, Y = w.clientWidth - R - ie, J = H > Y, re = ae || J;
|
|
1405
|
+
i().text.trim() && re ? fe <= S ? (w.style.height = fe + "px", w.style.overflowY = "hidden") : (w.style.height = S + "px", w.style.overflowY = "auto", w.scrollTop = I) : (w.style.height = O + "px", w.style.overflowY = "hidden");
|
|
1406
1406
|
});
|
|
1407
1407
|
},
|
|
1408
1408
|
{ immediate: !0 }
|
|
@@ -1415,12 +1415,12 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1415
1415
|
const _ = (w) => {
|
|
1416
1416
|
t("typing", w.target.value);
|
|
1417
1417
|
}, k = () => {
|
|
1418
|
-
|
|
1418
|
+
me(() => {
|
|
1419
1419
|
const w = c.value;
|
|
1420
1420
|
w && (w.style.height = "40px", w.style.overflowY = "hidden");
|
|
1421
1421
|
});
|
|
1422
1422
|
};
|
|
1423
|
-
|
|
1423
|
+
be(() => {
|
|
1424
1424
|
k();
|
|
1425
1425
|
});
|
|
1426
1426
|
const N = (w) => {
|
|
@@ -1465,9 +1465,9 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1465
1465
|
class: "chat-input__file-line"
|
|
1466
1466
|
}, null, 8, ai),
|
|
1467
1467
|
o("div", si, [
|
|
1468
|
-
|
|
1468
|
+
ge(w.$slots, "inline-buttons", {}, void 0, !0)
|
|
1469
1469
|
]),
|
|
1470
|
-
e.disabledPlaceholder && (e.state == "disabled" || T(i)().isRecording) ? (l(), u("div", ii, E(e.disabledPlaceholder), 1)) :
|
|
1470
|
+
e.disabledPlaceholder && (e.state == "disabled" || T(i)().isRecording) ? (l(), u("div", ii, E(e.disabledPlaceholder), 1)) : Me((l(), u("textarea", {
|
|
1471
1471
|
key: 1,
|
|
1472
1472
|
ref_key: "refInput",
|
|
1473
1473
|
ref: c,
|
|
@@ -1490,7 +1490,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1490
1490
|
])
|
|
1491
1491
|
], 10, li),
|
|
1492
1492
|
o("div", ci, [
|
|
1493
|
-
|
|
1493
|
+
ge(w.$slots, "buttons", {}, void 0, !0)
|
|
1494
1494
|
])
|
|
1495
1495
|
]));
|
|
1496
1496
|
}
|
|
@@ -1509,7 +1509,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1509
1509
|
emits: ["tab-click"],
|
|
1510
1510
|
setup(e) {
|
|
1511
1511
|
return (f, t) => (l(), u("ul", di, [
|
|
1512
|
-
(l(!0), u(ee, null,
|
|
1512
|
+
(l(!0), u(ee, null, pe(e.tabs, (n) => (l(), u("li", {
|
|
1513
1513
|
key: n.id,
|
|
1514
1514
|
class: j(["chat-tabs__item", { "chat-tabs__item--active": n.active }])
|
|
1515
1515
|
}, [
|
|
@@ -1591,7 +1591,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1591
1591
|
setup(e, { emit: f }) {
|
|
1592
1592
|
const t = e, n = f, a = h(""), i = h(), s = h(!1), r = h(!1), c = h(!1), d = h(!1);
|
|
1593
1593
|
function A() {
|
|
1594
|
-
|
|
1594
|
+
me(function() {
|
|
1595
1595
|
const m = T(i);
|
|
1596
1596
|
m.scrollTop = 0;
|
|
1597
1597
|
});
|
|
@@ -1615,14 +1615,14 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1615
1615
|
const m = T(i);
|
|
1616
1616
|
m.scrollTop = m.scrollHeight;
|
|
1617
1617
|
}
|
|
1618
|
-
|
|
1618
|
+
me(() => {
|
|
1619
1619
|
g();
|
|
1620
1620
|
});
|
|
1621
1621
|
}
|
|
1622
1622
|
), ce(
|
|
1623
1623
|
() => i.value,
|
|
1624
1624
|
() => {
|
|
1625
|
-
i.value &&
|
|
1625
|
+
i.value && me(() => {
|
|
1626
1626
|
g();
|
|
1627
1627
|
});
|
|
1628
1628
|
},
|
|
@@ -1657,9 +1657,9 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1657
1657
|
return (m, b) => (l(), u("div", bi, [
|
|
1658
1658
|
o("div", yi, [
|
|
1659
1659
|
e.titleEnabled ? (l(), u("h2", Mi, E(t.title), 1)) : v("", !0),
|
|
1660
|
-
|
|
1660
|
+
ge(m.$slots, "actions", {}, void 0, !0)
|
|
1661
1661
|
]),
|
|
1662
|
-
|
|
1662
|
+
ge(m.$slots, "sidebar", {}, void 0, !0),
|
|
1663
1663
|
e.filterEnabled ? (l(), B(T(Pl), {
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
class: "chat-list__filter",
|
|
@@ -1689,7 +1689,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1689
1689
|
], -1)
|
|
1690
1690
|
]))) : (l(), u(ee, { key: 1 }, [
|
|
1691
1691
|
o("div", Ci, [
|
|
1692
|
-
(l(!0), u(ee, null,
|
|
1692
|
+
(l(!0), u(ee, null, pe(N().filter((D) => D.isFixedTop), (D) => (l(), B(T(At), {
|
|
1693
1693
|
key: D.chatId,
|
|
1694
1694
|
class: "chat-list__item",
|
|
1695
1695
|
chat: D,
|
|
@@ -1702,7 +1702,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1702
1702
|
}, null, 8, ["chat", "show-dialogs", "has-scroll", "context-menu-trigger"]))), 128))
|
|
1703
1703
|
]),
|
|
1704
1704
|
o("div", Ii, [
|
|
1705
|
-
(l(!0), u(ee, null,
|
|
1705
|
+
(l(!0), u(ee, null, pe(N().filter((D) => !D.isFixedBottom && !D.isFixedTop), (D) => (l(), B(T(At), {
|
|
1706
1706
|
key: D.chatId,
|
|
1707
1707
|
class: "chat-list__item",
|
|
1708
1708
|
chat: D,
|
|
@@ -1715,7 +1715,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1715
1715
|
}, null, 8, ["chat", "show-dialogs", "has-scroll", "context-menu-trigger"]))), 128))
|
|
1716
1716
|
]),
|
|
1717
1717
|
o("div", ki, [
|
|
1718
|
-
(l(!0), u(ee, null,
|
|
1718
|
+
(l(!0), u(ee, null, pe(N().filter((D) => D.isFixedBottom), (D) => (l(), B(T(At), {
|
|
1719
1719
|
key: D.chatId,
|
|
1720
1720
|
class: "chat-list__item",
|
|
1721
1721
|
chat: D,
|
|
@@ -1729,7 +1729,7 @@ const fi = /* @__PURE__ */ z(Gs, [["render", ei]]), ti = { class: "chat-input__c
|
|
|
1729
1729
|
])
|
|
1730
1730
|
], 64))
|
|
1731
1731
|
], 544),
|
|
1732
|
-
q(
|
|
1732
|
+
q(he, null, {
|
|
1733
1733
|
default: G(() => [
|
|
1734
1734
|
r.value ? (l(), u("button", {
|
|
1735
1735
|
key: 0,
|
|
@@ -1767,7 +1767,7 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
1767
1767
|
},
|
|
1768
1768
|
emits: ["action"],
|
|
1769
1769
|
setup(e, { expose: f, emit: t }) {
|
|
1770
|
-
const n = wn("keyboard"), a = t, i =
|
|
1770
|
+
const n = wn("keyboard"), a = t, i = de("chatAppId"), { setMessageText: s, setForceSendMessage: r } = qe(i), c = (d) => {
|
|
1771
1771
|
d.action && typeof d.action == "function" ? d.action() : d.action != null ? a("action", d.action) : (s(d.text), r(!0));
|
|
1772
1772
|
};
|
|
1773
1773
|
return f({
|
|
@@ -1776,10 +1776,10 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
1776
1776
|
ref: "keyboard",
|
|
1777
1777
|
class: j(["keyboard__container", [`keyboard__container--${e.align}`]])
|
|
1778
1778
|
}, [
|
|
1779
|
-
(l(!0), u(ee, null,
|
|
1779
|
+
(l(!0), u(ee, null, pe(e.keyboard, (g) => (l(), u("div", {
|
|
1780
1780
|
key: g.text,
|
|
1781
1781
|
class: "keyboard__key",
|
|
1782
|
-
style:
|
|
1782
|
+
style: _e({ "box-shadow": "0px 0px 10px 5px " + g.color }),
|
|
1783
1783
|
onClick: (p) => c(g)
|
|
1784
1784
|
}, [
|
|
1785
1785
|
o("p", null, E(g.text), 1)
|
|
@@ -1802,7 +1802,7 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
1802
1802
|
},
|
|
1803
1803
|
emits: ["action"],
|
|
1804
1804
|
setup(e, { emit: f }) {
|
|
1805
|
-
const t = e, n = f, a =
|
|
1805
|
+
const t = e, n = f, a = Q(() => [...t.buttons].sort((s, r) => s.order - r.order)), i = (s) => {
|
|
1806
1806
|
typeof s.action == "function" ? s.action() : s.action != null && n("action", s.action);
|
|
1807
1807
|
};
|
|
1808
1808
|
return (s, r) => (l(), u("div", {
|
|
@@ -1810,10 +1810,10 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
1810
1810
|
`feed-keyboard__container--${e.align}`
|
|
1811
1811
|
]])
|
|
1812
1812
|
}, [
|
|
1813
|
-
(l(!0), u(ee, null,
|
|
1813
|
+
(l(!0), u(ee, null, pe(a.value, (c) => (l(), u("div", {
|
|
1814
1814
|
key: c.key,
|
|
1815
1815
|
class: "feed-keyboard__button",
|
|
1816
|
-
style:
|
|
1816
|
+
style: _e({
|
|
1817
1817
|
"box-shadow": c["shadow-color"] && c["shadow-color"] !== "none" ? `0px 4px 4px ${c["shadow-color"]}, 0px 1px 2px ${c["shadow-color"]}` : "none",
|
|
1818
1818
|
color: c["text-color"] || "inherit"
|
|
1819
1819
|
}),
|
|
@@ -1902,38 +1902,38 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
1902
1902
|
let C = null;
|
|
1903
1903
|
const y = h(0), M = h(0), _ = h(!1), k = h(0), N = h(0), x = h(!1), w = h(!1), I = h(!1), m = on(() => {
|
|
1904
1904
|
Df();
|
|
1905
|
-
}, 150), b = e, D =
|
|
1906
|
-
|
|
1907
|
-
}, H = (
|
|
1908
|
-
|
|
1905
|
+
}, 150), b = e, D = de("chatAppId"), { setReply: O, getMessage: S, resetReply: fe } = qe(D), P = f, ae = Q(() => !!(s.value && b.objects.length > 0 && b.objects[b.objects.length - 1].keyboard)), K = (F) => {
|
|
1906
|
+
P("keyboardAction", F);
|
|
1907
|
+
}, H = (F) => {
|
|
1908
|
+
P("feedAction", F);
|
|
1909
1909
|
};
|
|
1910
|
-
function
|
|
1911
|
-
const
|
|
1912
|
-
let
|
|
1913
|
-
a.value && (
|
|
1914
|
-
const oe = 100, le =
|
|
1915
|
-
le < oe +
|
|
1910
|
+
function R(F = !0) {
|
|
1911
|
+
const W = T(n);
|
|
1912
|
+
let Z = 0;
|
|
1913
|
+
a.value && (Z = a.value.refKeyboard.clientHeight);
|
|
1914
|
+
const oe = 100, le = W.scrollHeight - W.scrollTop - W.clientHeight;
|
|
1915
|
+
le < oe + Z ? (i.value = !1, s.value = !0) : (i.value = !0, s.value = !1), A.value ? (W.scrollTop < 300 && !b.isLoadingMore && P("loadMore"), le < 300 && (c.value = !1, d.value = !0)) : F && (W.scrollTop < 300 && (k.value = W.scrollHeight, N.value = W.scrollTop, x.value = !0, r.value = !1), le < 300 && (c.value = !1)), Tf(), g.value = !0, C && window.clearTimeout(C), C = window.setTimeout(() => {
|
|
1916
1916
|
g.value = !1;
|
|
1917
1917
|
}, 500);
|
|
1918
1918
|
}
|
|
1919
1919
|
ce(
|
|
1920
1920
|
() => [c.value, r.value],
|
|
1921
1921
|
() => {
|
|
1922
|
-
c.value ||
|
|
1922
|
+
c.value || P("loadMoreDown"), r.value || P("loadMore");
|
|
1923
1923
|
}
|
|
1924
1924
|
), ce(
|
|
1925
1925
|
() => b.isLoadingMore,
|
|
1926
|
-
(
|
|
1927
|
-
|
|
1926
|
+
(F, W) => {
|
|
1927
|
+
W === !1 && F === !0 && (M.value = b.objects.length, y.value = 0), W === !0 && F === !1 && (me(() => {
|
|
1928
1928
|
setTimeout(() => {
|
|
1929
1929
|
try {
|
|
1930
|
-
const
|
|
1931
|
-
if (x.value &&
|
|
1932
|
-
const oe =
|
|
1933
|
-
|
|
1934
|
-
const le =
|
|
1935
|
-
|
|
1936
|
-
|
|
1930
|
+
const Z = T(n);
|
|
1931
|
+
if (x.value && Z) {
|
|
1932
|
+
const oe = Z.style.scrollBehavior;
|
|
1933
|
+
Z.style.scrollBehavior = "auto";
|
|
1934
|
+
const le = Z.scrollHeight - k.value;
|
|
1935
|
+
Z.scrollTop = N.value + le, setTimeout(() => {
|
|
1936
|
+
Z.style.scrollBehavior = oe || "auto";
|
|
1937
1937
|
}, 50);
|
|
1938
1938
|
}
|
|
1939
1939
|
} finally {
|
|
@@ -1942,30 +1942,30 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
1942
1942
|
}, 500);
|
|
1943
1943
|
}
|
|
1944
1944
|
}, 0);
|
|
1945
|
-
}),
|
|
1946
|
-
const
|
|
1947
|
-
if (
|
|
1948
|
-
const oe =
|
|
1949
|
-
y.value = oe,
|
|
1945
|
+
}), me(() => {
|
|
1946
|
+
const Z = b.objects;
|
|
1947
|
+
if (Z && Z.length > M.value) {
|
|
1948
|
+
const oe = Z.length - M.value;
|
|
1949
|
+
y.value = oe, me(() => {
|
|
1950
1950
|
const le = document.querySelectorAll(".tracking-message");
|
|
1951
|
-
Array.from(le).slice(0, oe).forEach((
|
|
1952
|
-
|
|
1951
|
+
Array.from(le).slice(0, oe).forEach((we) => {
|
|
1952
|
+
we.classList.add("new-message");
|
|
1953
1953
|
});
|
|
1954
1954
|
}), setTimeout(() => {
|
|
1955
1955
|
let le = document.querySelectorAll(".tracking-message.new-message");
|
|
1956
1956
|
if (le.length === 0) {
|
|
1957
|
-
const ke = document.querySelectorAll(".tracking-message"),
|
|
1958
|
-
if (
|
|
1959
|
-
if (
|
|
1957
|
+
const ke = document.querySelectorAll(".tracking-message"), we = Array.from(ke).slice(0, oe);
|
|
1958
|
+
if (we.length > 0) {
|
|
1959
|
+
if (we.forEach((We) => {
|
|
1960
1960
|
We.classList.add("new-message");
|
|
1961
1961
|
}), w.value)
|
|
1962
1962
|
return;
|
|
1963
|
-
|
|
1963
|
+
we.forEach((We, rf) => {
|
|
1964
1964
|
setTimeout(() => {
|
|
1965
1965
|
We.classList.add("animate");
|
|
1966
1966
|
}, rf * 150);
|
|
1967
1967
|
}), setTimeout(() => {
|
|
1968
|
-
|
|
1968
|
+
we.forEach((We) => {
|
|
1969
1969
|
We.classList.remove("new-message", "animate");
|
|
1970
1970
|
}), y.value = 0;
|
|
1971
1971
|
}, oe * 150 + 1500);
|
|
@@ -1975,10 +1975,10 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
1975
1975
|
if (le.length > 0) {
|
|
1976
1976
|
if (w.value)
|
|
1977
1977
|
return;
|
|
1978
|
-
le.forEach((ke,
|
|
1978
|
+
le.forEach((ke, we) => {
|
|
1979
1979
|
setTimeout(() => {
|
|
1980
1980
|
ke.classList.add("animate");
|
|
1981
|
-
},
|
|
1981
|
+
}, we * 150);
|
|
1982
1982
|
}), setTimeout(() => {
|
|
1983
1983
|
le.forEach((ke) => {
|
|
1984
1984
|
ke.classList.remove("new-message", "animate");
|
|
@@ -1991,12 +1991,12 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
1991
1991
|
}));
|
|
1992
1992
|
}
|
|
1993
1993
|
);
|
|
1994
|
-
const
|
|
1995
|
-
const
|
|
1996
|
-
(
|
|
1997
|
-
},
|
|
1994
|
+
const ie = (F) => {
|
|
1995
|
+
const W = T(n);
|
|
1996
|
+
(F.offsetX > W.clientWidth || F.offsetY > W.clientHeight) && (A.value = !0);
|
|
1997
|
+
}, Y = () => {
|
|
1998
1998
|
A.value = !1;
|
|
1999
|
-
},
|
|
1999
|
+
}, J = on(() => R(), 250), re = (F) => ({
|
|
2000
2000
|
"message.text": Z3,
|
|
2001
2001
|
"message.image": $3,
|
|
2002
2002
|
"message.file": I3,
|
|
@@ -2007,63 +2007,63 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2007
2007
|
"message.delimiter": FA,
|
|
2008
2008
|
"system.date": y4,
|
|
2009
2009
|
"message.typing": yn
|
|
2010
|
-
})[
|
|
2011
|
-
function
|
|
2012
|
-
|
|
2013
|
-
const
|
|
2014
|
-
|
|
2010
|
+
})[F];
|
|
2011
|
+
function ve() {
|
|
2012
|
+
me(() => {
|
|
2013
|
+
const F = T(n);
|
|
2014
|
+
F && (F.scrollTop = F.scrollHeight);
|
|
2015
2015
|
});
|
|
2016
2016
|
}
|
|
2017
|
-
function
|
|
2018
|
-
const
|
|
2019
|
-
if (!
|
|
2020
|
-
|
|
2017
|
+
function Ce() {
|
|
2018
|
+
const F = T(n);
|
|
2019
|
+
if (!F) return;
|
|
2020
|
+
F.scrollHeight - F.scrollTop - F.clientHeight > 5 && (F.scrollTop = F.scrollHeight);
|
|
2021
2021
|
}
|
|
2022
2022
|
function Se() {
|
|
2023
|
-
|
|
2024
|
-
const
|
|
2025
|
-
|
|
2023
|
+
me(() => {
|
|
2024
|
+
const F = T(n);
|
|
2025
|
+
F && (F.style.scrollBehavior = "smooth", F.scrollTop = F.scrollHeight);
|
|
2026
2026
|
});
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2029
|
-
!_.value && b.objects.length > 0 && (_.value = !0,
|
|
2028
|
+
function De() {
|
|
2029
|
+
!_.value && b.objects.length > 0 && (_.value = !0, ve());
|
|
2030
2030
|
}
|
|
2031
2031
|
function U() {
|
|
2032
|
-
|
|
2032
|
+
P("forceScrollToBottom"), Se();
|
|
2033
2033
|
}
|
|
2034
2034
|
ce(
|
|
2035
2035
|
() => b.scrollToBottom,
|
|
2036
2036
|
() => {
|
|
2037
|
-
b.scrollToBottom &&
|
|
2037
|
+
b.scrollToBottom && ve();
|
|
2038
2038
|
}
|
|
2039
2039
|
);
|
|
2040
|
-
const te = (
|
|
2041
|
-
|
|
2042
|
-
}, X = (
|
|
2043
|
-
|
|
2044
|
-
},
|
|
2045
|
-
if (b.enableDoubleClickReply && (
|
|
2046
|
-
const
|
|
2047
|
-
|
|
2048
|
-
messageId:
|
|
2049
|
-
type:
|
|
2050
|
-
text:
|
|
2051
|
-
filename:
|
|
2052
|
-
url:
|
|
2053
|
-
header:
|
|
2054
|
-
callDuration:
|
|
2040
|
+
const te = (F) => {
|
|
2041
|
+
P("messageAction", F);
|
|
2042
|
+
}, X = (F) => {
|
|
2043
|
+
P("clickRepliedMessage", F);
|
|
2044
|
+
}, Ae = (F, W) => {
|
|
2045
|
+
if (b.enableDoubleClickReply && (F == null || F.preventDefault(), W.type.indexOf("system") == -1 && W.type.indexOf("typing") == -1)) {
|
|
2046
|
+
const Z = document.getElementById("chat-input-reply-line-" + D);
|
|
2047
|
+
Z && (Z.style.display = "inherit"), O({
|
|
2048
|
+
messageId: W.messageId,
|
|
2049
|
+
type: W.type,
|
|
2050
|
+
text: W.text,
|
|
2051
|
+
filename: W.filename,
|
|
2052
|
+
url: W.url,
|
|
2053
|
+
header: W.header,
|
|
2054
|
+
callDuration: W.callDuration
|
|
2055
2055
|
});
|
|
2056
2056
|
}
|
|
2057
2057
|
}, Ne = () => {
|
|
2058
2058
|
fe();
|
|
2059
|
-
const
|
|
2060
|
-
|
|
2061
|
-
}, He = (
|
|
2062
|
-
|
|
2063
|
-
if (
|
|
2064
|
-
|
|
2065
|
-
const
|
|
2066
|
-
|
|
2059
|
+
const F = document.getElementById("chat-input-reply-line-" + D);
|
|
2060
|
+
F && (F.style.display = "none");
|
|
2061
|
+
}, He = (F) => {
|
|
2062
|
+
F.forEach((W) => {
|
|
2063
|
+
if (W.isIntersecting) {
|
|
2064
|
+
P("messageVisible", JSON.parse(W.target.id));
|
|
2065
|
+
const Z = W.target;
|
|
2066
|
+
Z.classList && Z.classList.contains("new-message") && Z.classList.add("animate");
|
|
2067
2067
|
}
|
|
2068
2068
|
});
|
|
2069
2069
|
}, cf = {
|
|
@@ -2073,12 +2073,12 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2073
2073
|
}, xf = new IntersectionObserver(He, cf);
|
|
2074
2074
|
ce(
|
|
2075
2075
|
() => b.objects,
|
|
2076
|
-
(
|
|
2077
|
-
|
|
2078
|
-
if (!_.value &&
|
|
2079
|
-
const
|
|
2076
|
+
(F, W) => {
|
|
2077
|
+
me(() => {
|
|
2078
|
+
if (!_.value && F.length > 0 && De(), W && F.length > W.length) {
|
|
2079
|
+
const Z = F.length - W.length;
|
|
2080
2080
|
if (b.isLoadingMore)
|
|
2081
|
-
y.value =
|
|
2081
|
+
y.value = Z, M.value = W.length, me(() => {
|
|
2082
2082
|
const oe = document.querySelectorAll(".tracking-message.new-message");
|
|
2083
2083
|
oe.forEach((le, ke) => {
|
|
2084
2084
|
setTimeout(() => {
|
|
@@ -2088,14 +2088,14 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2088
2088
|
oe.forEach((le) => {
|
|
2089
2089
|
le.classList.remove("new-message", "animate");
|
|
2090
2090
|
}), y.value = 0;
|
|
2091
|
-
},
|
|
2091
|
+
}, Z * 150 + 1500);
|
|
2092
2092
|
});
|
|
2093
2093
|
else {
|
|
2094
2094
|
const oe = T(n);
|
|
2095
|
-
oe && (oe.scrollHeight - oe.scrollTop - oe.clientHeight < 50 || I.value) &&
|
|
2095
|
+
oe && (oe.scrollHeight - oe.scrollTop - oe.clientHeight < 50 || I.value) && ve();
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
|
-
r.value = !0, c.value = !0,
|
|
2098
|
+
r.value = !0, c.value = !0, R(!1), t.value = document.querySelectorAll(".tracking-message"), t.value.forEach((Z) => xf.observe(Z)), me(() => {
|
|
2099
2099
|
m();
|
|
2100
2100
|
});
|
|
2101
2101
|
});
|
|
@@ -2104,47 +2104,47 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2104
2104
|
), ce(
|
|
2105
2105
|
() => b.scrollTo,
|
|
2106
2106
|
() => {
|
|
2107
|
-
var
|
|
2107
|
+
var F;
|
|
2108
2108
|
if (b.scrollTo) {
|
|
2109
|
-
const
|
|
2110
|
-
let
|
|
2111
|
-
|
|
2109
|
+
const W = b.scrollTo;
|
|
2110
|
+
let Z = document.getElementById(W), oe = document.getElementById("feed-container-" + D);
|
|
2111
|
+
Z instanceof HTMLElement && oe instanceof HTMLElement && (oe.scrollTop = Z.offsetTop + Z.clientHeight / 2 - oe.clientHeight / 2), (F = document.getElementById(W)) == null || F.children[0].classList.add("focused-message"), setTimeout(() => {
|
|
2112
2112
|
var le;
|
|
2113
|
-
(le = document.getElementById(
|
|
2113
|
+
(le = document.getElementById(W)) == null || le.children[0].classList.remove("focused-message");
|
|
2114
2114
|
}, 2e3);
|
|
2115
2115
|
}
|
|
2116
2116
|
}
|
|
2117
2117
|
);
|
|
2118
|
-
const Mf =
|
|
2119
|
-
const oe =
|
|
2118
|
+
const Mf = Q(() => !b.objects || b.objects.length === 0 ? [] : b.objects.map((F, W, Z) => {
|
|
2119
|
+
const oe = W > 0 && Z[W - 1].position === F.position && Z[W - 1].header === F.header, le = W > 0 && !["message.system", "message.typing"].includes(Z[W - 1].type), ke = !oe || !le, we = b.isLoadingMore && y.value > 0 && W < y.value;
|
|
2120
2120
|
return {
|
|
2121
|
-
...
|
|
2121
|
+
...F,
|
|
2122
2122
|
isFirstInSeries: ke,
|
|
2123
|
-
isNewMessage:
|
|
2123
|
+
isNewMessage: we
|
|
2124
2124
|
};
|
|
2125
2125
|
}));
|
|
2126
2126
|
function Tf() {
|
|
2127
|
-
const
|
|
2128
|
-
if (!
|
|
2129
|
-
const
|
|
2130
|
-
let
|
|
2127
|
+
const F = T(n);
|
|
2128
|
+
if (!F || !t.value) return;
|
|
2129
|
+
const W = F.getBoundingClientRect().top;
|
|
2130
|
+
let Z = null;
|
|
2131
2131
|
for (const oe of t.value) {
|
|
2132
2132
|
const le = oe.getBoundingClientRect();
|
|
2133
|
-
if (le.top <=
|
|
2134
|
-
|
|
2133
|
+
if (le.top <= W + 1 && le.bottom > W) {
|
|
2134
|
+
Z = oe;
|
|
2135
2135
|
break;
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
2138
|
-
if (!
|
|
2138
|
+
if (!Z) {
|
|
2139
2139
|
for (const oe of t.value)
|
|
2140
|
-
if (oe.getBoundingClientRect().top >=
|
|
2141
|
-
|
|
2140
|
+
if (oe.getBoundingClientRect().top >= W) {
|
|
2141
|
+
Z = oe;
|
|
2142
2142
|
break;
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
if (
|
|
2145
|
+
if (Z)
|
|
2146
2146
|
try {
|
|
2147
|
-
const oe = JSON.parse(
|
|
2147
|
+
const oe = JSON.parse(Z.id);
|
|
2148
2148
|
if (!oe || !oe.timestamp) return;
|
|
2149
2149
|
const le = new Date(Number(oe.timestamp) * 1e3);
|
|
2150
2150
|
p.value = le.toLocaleDateString();
|
|
@@ -2152,35 +2152,35 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2152
2152
|
}
|
|
2153
2153
|
}
|
|
2154
2154
|
function Df() {
|
|
2155
|
-
const
|
|
2156
|
-
if (!
|
|
2157
|
-
const
|
|
2158
|
-
I.value !==
|
|
2155
|
+
const F = T(n);
|
|
2156
|
+
if (!F) return;
|
|
2157
|
+
const Z = !(F.scrollHeight > F.clientHeight) && b.objects.length > 0;
|
|
2158
|
+
I.value !== Z && (I.value = Z);
|
|
2159
2159
|
}
|
|
2160
|
-
return
|
|
2161
|
-
|
|
2162
|
-
b.objects.length > 0 && !_.value &&
|
|
2163
|
-
const
|
|
2164
|
-
m(), b.scrollToBottom && (
|
|
2165
|
-
|
|
2160
|
+
return be(() => {
|
|
2161
|
+
me(() => {
|
|
2162
|
+
b.objects.length > 0 && !_.value && De();
|
|
2163
|
+
const F = new ResizeObserver(() => {
|
|
2164
|
+
m(), b.scrollToBottom && (ve(), setTimeout(() => {
|
|
2165
|
+
Ce();
|
|
2166
2166
|
}, 200), setTimeout(() => {
|
|
2167
|
-
|
|
2167
|
+
Ce();
|
|
2168
2168
|
}, 800));
|
|
2169
2169
|
});
|
|
2170
|
-
n.value &&
|
|
2170
|
+
n.value && F.observe(n.value);
|
|
2171
2171
|
});
|
|
2172
|
-
}), (
|
|
2172
|
+
}), (F, W) => (l(), u(ee, null, [
|
|
2173
2173
|
e.objects.length > 0 || e.typing ? (l(), u("div", {
|
|
2174
2174
|
key: 0,
|
|
2175
2175
|
id: "feed-container-" + T(D),
|
|
2176
2176
|
ref_key: "refFeed",
|
|
2177
2177
|
ref: n,
|
|
2178
2178
|
class: "message-feed",
|
|
2179
|
-
onScroll:
|
|
2180
|
-
onMousedown:
|
|
2181
|
-
onMouseup:
|
|
2179
|
+
onScroll: W[0] || (W[0] = (Z) => T(J)()),
|
|
2180
|
+
onMousedown: ie,
|
|
2181
|
+
onMouseup: Y
|
|
2182
2182
|
}, [
|
|
2183
|
-
q(
|
|
2183
|
+
q(he, null, {
|
|
2184
2184
|
default: G(() => [
|
|
2185
2185
|
g.value ? (l(), B(T(UA), {
|
|
2186
2186
|
key: 0,
|
|
@@ -2191,18 +2191,18 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2191
2191
|
_: 1
|
|
2192
2192
|
}),
|
|
2193
2193
|
I.value ? (l(), u("div", Li)) : v("", !0),
|
|
2194
|
-
(l(!0), u(ee, null,
|
|
2195
|
-
id: JSON.stringify(
|
|
2196
|
-
key: `${
|
|
2197
|
-
class: j(["tracking-message", { "new-message":
|
|
2198
|
-
onDblclick: (le) =>
|
|
2194
|
+
(l(!0), u(ee, null, pe(Mf.value, (Z, oe) => (l(), u("div", {
|
|
2195
|
+
id: JSON.stringify(Z),
|
|
2196
|
+
key: `${Z.messageId ?? "mid"}-${oe}`,
|
|
2197
|
+
class: j(["tracking-message", { "new-message": Z.isNewMessage }]),
|
|
2198
|
+
onDblclick: (le) => Ae(le, Z)
|
|
2199
2199
|
}, [
|
|
2200
|
-
(l(), B(Qe(
|
|
2201
|
-
key: `${
|
|
2200
|
+
(l(), B(Qe(re(Z.type)), {
|
|
2201
|
+
key: `${Z.messageId ?? "mid"}-${oe}`,
|
|
2202
2202
|
class: "message-feed__message",
|
|
2203
|
-
message:
|
|
2203
|
+
message: Z,
|
|
2204
2204
|
"apply-style": e.applyStyle,
|
|
2205
|
-
"is-first-in-series":
|
|
2205
|
+
"is-first-in-series": Z.isFirstInSeries,
|
|
2206
2206
|
"subtext-tooltip-data": e.subtextTooltipData,
|
|
2207
2207
|
onAction: te,
|
|
2208
2208
|
onReply: X
|
|
@@ -2215,7 +2215,7 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2215
2215
|
avatar: e.typing.avatar
|
|
2216
2216
|
}
|
|
2217
2217
|
}, null, 8, ["message"])) : v("", !0),
|
|
2218
|
-
q(
|
|
2218
|
+
q(he, null, {
|
|
2219
2219
|
default: G(() => [
|
|
2220
2220
|
ae.value ? (l(), B(Ni, {
|
|
2221
2221
|
key: 0,
|
|
@@ -2224,12 +2224,12 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2224
2224
|
class: "message-feed__keyboard",
|
|
2225
2225
|
keyboard: e.objects[e.objects.length - 1].keyboard,
|
|
2226
2226
|
align: e.keyboardAlign,
|
|
2227
|
-
onAction:
|
|
2227
|
+
onAction: K
|
|
2228
2228
|
}, null, 8, ["keyboard", "align"])) : v("", !0)
|
|
2229
2229
|
]),
|
|
2230
2230
|
_: 1
|
|
2231
2231
|
}),
|
|
2232
|
-
q(
|
|
2232
|
+
q(he, null, {
|
|
2233
2233
|
default: G(() => [
|
|
2234
2234
|
i.value ? (l(), u("button", {
|
|
2235
2235
|
key: 0,
|
|
@@ -2237,7 +2237,7 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2237
2237
|
onClick: U
|
|
2238
2238
|
}, [
|
|
2239
2239
|
e.buttonParams ? (l(), u("div", zi, E(e.buttonParams.unreadAmount), 1)) : v("", !0),
|
|
2240
|
-
|
|
2240
|
+
W[1] || (W[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
|
|
2241
2241
|
])) : v("", !0)
|
|
2242
2242
|
]),
|
|
2243
2243
|
_: 1
|
|
@@ -2255,7 +2255,7 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2255
2255
|
class: "message-feed"
|
|
2256
2256
|
}, [
|
|
2257
2257
|
o("div", Bi, [
|
|
2258
|
-
|
|
2258
|
+
ge(F.$slots, "empty-feed", {}, void 0, !0)
|
|
2259
2259
|
])
|
|
2260
2260
|
], 512)),
|
|
2261
2261
|
T(S)().reply ? (l(), B(je, {
|
|
@@ -2289,7 +2289,7 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2289
2289
|
e.user.avatar ? (l(), u("div", Ri, [
|
|
2290
2290
|
o("span", {
|
|
2291
2291
|
class: "profile__status",
|
|
2292
|
-
style:
|
|
2292
|
+
style: _e({ backgroundColor: e.user.status })
|
|
2293
2293
|
}, null, 4),
|
|
2294
2294
|
o("img", {
|
|
2295
2295
|
src: e.user.avatar,
|
|
@@ -2318,7 +2318,7 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2318
2318
|
}, a = (i) => {
|
|
2319
2319
|
i.key === "Escape" && t("close");
|
|
2320
2320
|
};
|
|
2321
|
-
return
|
|
2321
|
+
return be(() => {
|
|
2322
2322
|
document.addEventListener("keydown", a);
|
|
2323
2323
|
}), sf(() => {
|
|
2324
2324
|
document.removeEventListener("keydown", a);
|
|
@@ -2337,7 +2337,7 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2337
2337
|
o("i", { class: "pi pi-times" })
|
|
2338
2338
|
], -1)
|
|
2339
2339
|
])),
|
|
2340
|
-
|
|
2340
|
+
ge(i.$slots, "default", {}, void 0, !0)
|
|
2341
2341
|
])
|
|
2342
2342
|
], 40, Hi));
|
|
2343
2343
|
}
|
|
@@ -2369,15 +2369,15 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2369
2369
|
},
|
|
2370
2370
|
emits: ["reset"],
|
|
2371
2371
|
setup(e, { emit: f }) {
|
|
2372
|
-
const t =
|
|
2372
|
+
const t = de("chatAppId"), { getTheme: n } = Ue(t), a = f, i = h(), s = h(), r = h(!1), c = h(0), d = h(0), A = h(!1), g = () => A.value = !1;
|
|
2373
2373
|
function p() {
|
|
2374
2374
|
i.value && (r.value ? i.value.pause() : i.value.play(), r.value = !r.value);
|
|
2375
2375
|
}
|
|
2376
2376
|
const C = (_) => {
|
|
2377
2377
|
const k = Math.floor(_ / 60), N = Math.floor(_ % 60);
|
|
2378
2378
|
return `${k.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
|
|
2379
|
-
}, y =
|
|
2380
|
-
return
|
|
2379
|
+
}, y = Q(() => i.value ? C(d.value) : "0:00"), M = Q(() => i.value || s.value ? C(c.value) : "0:00");
|
|
2380
|
+
return be(() => {
|
|
2381
2381
|
i.value != null && (i.value.addEventListener("loadedmetadata", () => {
|
|
2382
2382
|
i.value != null && (i.value.duration == 1 / 0 || Number.isNaN(i.value.duration)) && (i.value.currentTime = 1e101, i.value.addEventListener("timeupdate", () => {
|
|
2383
2383
|
i.value && (i.value.currentTime = 0, c.value = i.value.duration);
|
|
@@ -2432,10 +2432,10 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2432
2432
|
class: "preview__audio-control",
|
|
2433
2433
|
onClick: p
|
|
2434
2434
|
}, [
|
|
2435
|
-
|
|
2435
|
+
Me(o("span", to, null, 512), [
|
|
2436
2436
|
[Ke, !r.value]
|
|
2437
2437
|
]),
|
|
2438
|
-
|
|
2438
|
+
Me(o("span", no, null, 512), [
|
|
2439
2439
|
[Ke, r.value]
|
|
2440
2440
|
])
|
|
2441
2441
|
])
|
|
@@ -2461,7 +2461,7 @@ const Ti = ["onClick"], Di = /* @__PURE__ */ ne({
|
|
|
2461
2461
|
])
|
|
2462
2462
|
]),
|
|
2463
2463
|
(l(), B(je, { to: "body" }, [
|
|
2464
|
-
q(
|
|
2464
|
+
q(he, { name: "modal-fade" }, {
|
|
2465
2465
|
default: G(() => [
|
|
2466
2466
|
A.value ? (l(), B(u1, {
|
|
2467
2467
|
key: 0,
|
|
@@ -2558,7 +2558,7 @@ const bo = /* @__PURE__ */ z(ho, [["render", vo]]), yo = { key: 0 }, Mo = { key:
|
|
|
2558
2558
|
},
|
|
2559
2559
|
emits: ["fileUploaded"],
|
|
2560
2560
|
setup(e, { emit: f }) {
|
|
2561
|
-
const t = e, n = h(""), a = h(), i = h(), s =
|
|
2561
|
+
const t = e, n = h(""), a = h(), i = h(), s = de("chatAppId"), { setMessageFile: r, resetMessageFile: c, getMessage: d, setRecordingMessage: A } = qe(s), g = Q(() => !d().file), p = () => {
|
|
2562
2562
|
const N = document.getElementById("chat-input-file-line-" + s);
|
|
2563
2563
|
N && (N.style.display = "none"), c(), i.value = void 0, n.value = "";
|
|
2564
2564
|
}, C = async () => {
|
|
@@ -2602,7 +2602,7 @@ const bo = /* @__PURE__ */ z(ho, [["render", vo]]), yo = { key: 0 }, Mo = { key:
|
|
|
2602
2602
|
}
|
|
2603
2603
|
});
|
|
2604
2604
|
};
|
|
2605
|
-
return
|
|
2605
|
+
return be(() => {
|
|
2606
2606
|
window.addEventListener("paste", _);
|
|
2607
2607
|
}), (N, x) => (l(), u(ee, null, [
|
|
2608
2608
|
n.value === "uploading" ? (l(), u("div", yo, x[0] || (x[0] = [
|
|
@@ -2648,7 +2648,7 @@ const bo = /* @__PURE__ */ z(ho, [["render", vo]]), yo = { key: 0 }, Mo = { key:
|
|
|
2648
2648
|
},
|
|
2649
2649
|
emits: ["selectedTheme"],
|
|
2650
2650
|
setup(e, { emit: f }) {
|
|
2651
|
-
const t = e, n = f, a =
|
|
2651
|
+
const t = e, n = f, a = de("chatAppId"), { getTheme: i } = Ue(a), s = () => {
|
|
2652
2652
|
const d = t.themes.find((A) => A.default === !0);
|
|
2653
2653
|
return d ? d.code : t.themes[0].code;
|
|
2654
2654
|
}, r = (d) => {
|
|
@@ -2657,14 +2657,14 @@ const bo = /* @__PURE__ */ z(ho, [["render", vo]]), yo = { key: 0 }, Mo = { key:
|
|
|
2657
2657
|
}, c = (d) => {
|
|
2658
2658
|
a && (document.getElementById(a).dataset.theme = d, i().theme = d, n("selectedTheme", d));
|
|
2659
2659
|
};
|
|
2660
|
-
return
|
|
2660
|
+
return be(() => {
|
|
2661
2661
|
const d = s();
|
|
2662
2662
|
c(d);
|
|
2663
2663
|
}), (d, A) => e.show ? (l(), u("div", Io, [
|
|
2664
2664
|
o("select", {
|
|
2665
2665
|
onChange: A[0] || (A[0] = (g) => r(g))
|
|
2666
2666
|
}, [
|
|
2667
|
-
(l(!0), u(ee, null,
|
|
2667
|
+
(l(!0), u(ee, null, pe(t.themes, (g, p) => (l(), u("option", {
|
|
2668
2668
|
key: p,
|
|
2669
2669
|
value: g.code,
|
|
2670
2670
|
selected: g.default === !0
|
|
@@ -2708,7 +2708,7 @@ const bo = /* @__PURE__ */ z(ho, [["render", vo]]), yo = { key: 0 }, Mo = { key:
|
|
|
2708
2708
|
},
|
|
2709
2709
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
|
2710
2710
|
setup(e, { expose: f, emit: t }) {
|
|
2711
|
-
const n =
|
|
2711
|
+
const n = de("chatAppId"), a = de("extChatAppId"), { getTheme: i } = Ue(n), s = e, r = l1(), c = t, d = h(), A = h(), g = h(!1), p = (I) => {
|
|
2712
2712
|
x(), c("click", I);
|
|
2713
2713
|
}, C = () => {
|
|
2714
2714
|
s.disabled || (s.mode == "click" && !g.value ? N() : s.mode == "click" && g.value && x(), c("buttonClick"));
|
|
@@ -2725,7 +2725,7 @@ const bo = /* @__PURE__ */ z(ho, [["render", vo]]), yo = { key: 0 }, Mo = { key:
|
|
|
2725
2725
|
const I = d.value, m = A.value.getBoundingClientRect();
|
|
2726
2726
|
I.style.display = "inherit";
|
|
2727
2727
|
const b = d.value.getBoundingClientRect();
|
|
2728
|
-
I.style.display = "none",
|
|
2728
|
+
I.style.display = "none", me(() => {
|
|
2729
2729
|
const D = {
|
|
2730
2730
|
left: { top: m.top - (b.height - m.height) / 2, left: m.left - b.width },
|
|
2731
2731
|
right: { top: m.top - (b.height - m.height) / 2, left: m.left + m.width },
|
|
@@ -2748,8 +2748,8 @@ const bo = /* @__PURE__ */ z(ho, [["render", vo]]), yo = { key: 0 }, Mo = { key:
|
|
|
2748
2748
|
}, w = (I) => {
|
|
2749
2749
|
s.mode == "click" && A.value && !A.value.contains(I.target) && x();
|
|
2750
2750
|
};
|
|
2751
|
-
return
|
|
2752
|
-
|
|
2751
|
+
return be(() => {
|
|
2752
|
+
me(() => {
|
|
2753
2753
|
d.value = document.getElementById("context-menu-" + r + a), d.value && (x(), document.addEventListener("click", w));
|
|
2754
2754
|
});
|
|
2755
2755
|
}), sf(() => {
|
|
@@ -2766,7 +2766,7 @@ const bo = /* @__PURE__ */ z(ho, [["render", vo]]), yo = { key: 0 }, Mo = { key:
|
|
|
2766
2766
|
onMouseleave: M
|
|
2767
2767
|
}, [
|
|
2768
2768
|
o("div", { onClick: C }, [
|
|
2769
|
-
|
|
2769
|
+
ge(I.$slots, "default")
|
|
2770
2770
|
]),
|
|
2771
2771
|
(l(), B(je, { to: "body" }, [
|
|
2772
2772
|
q(T(bf), {
|
|
@@ -2818,7 +2818,7 @@ const jo = /* @__PURE__ */ z(Do, [["render", Eo]]), So = ["data-theme"], Vo = /*
|
|
|
2818
2818
|
}
|
|
2819
2819
|
},
|
|
2820
2820
|
setup(e, { expose: f }) {
|
|
2821
|
-
const t =
|
|
2821
|
+
const t = de("chatAppId"), { getTheme: n } = Ue(t), a = h(), i = h(), s = h(!1), r = h(null), c = e, d = Q(() => ({
|
|
2822
2822
|
tooltip__text: !0,
|
|
2823
2823
|
[`tooltip--${c.position}`]: !0
|
|
2824
2824
|
})), A = () => {
|
|
@@ -2828,7 +2828,7 @@ const jo = /* @__PURE__ */ z(Do, [["render", Eo]]), So = ["data-theme"], Vo = /*
|
|
|
2828
2828
|
console.log("Auto hiding tooltip after", c.autoShowDuration, "ms"), s.value = !1, r.value = null;
|
|
2829
2829
|
}, c.autoShowDuration));
|
|
2830
2830
|
}, p = () => {
|
|
2831
|
-
|
|
2831
|
+
me(() => {
|
|
2832
2832
|
if (a.value && i.value) {
|
|
2833
2833
|
const M = i.value, _ = a.value.getBoundingClientRect(), k = i.value.getBoundingClientRect(), N = k.left < 0 ? k.left : 0, x = k.top < 0 ? k.top : 0, w = {
|
|
2834
2834
|
left: { top: _.top - (k.height - _.height) / 2 - x, left: (_ == null ? void 0 : _.left) - k.width - N - c.offset },
|
|
@@ -2843,7 +2843,7 @@ const jo = /* @__PURE__ */ z(Do, [["render", Eo]]), So = ["data-theme"], Vo = /*
|
|
|
2843
2843
|
}, C = () => {
|
|
2844
2844
|
c.trigger === "hover" && (s.value = !0), p();
|
|
2845
2845
|
}, y = () => {
|
|
2846
|
-
c.trigger === "hover" && (s.value = !1,
|
|
2846
|
+
c.trigger === "hover" && (s.value = !1, me(() => {
|
|
2847
2847
|
const M = T(i);
|
|
2848
2848
|
M && (M.style.top = "0", M.style.left = "0");
|
|
2849
2849
|
}));
|
|
@@ -2861,10 +2861,10 @@ const jo = /* @__PURE__ */ z(Do, [["render", Eo]]), So = ["data-theme"], Vo = /*
|
|
|
2861
2861
|
onMouseover: C,
|
|
2862
2862
|
onMouseout: y
|
|
2863
2863
|
}, [
|
|
2864
|
-
|
|
2864
|
+
ge(M.$slots, "default", {}, void 0, !0)
|
|
2865
2865
|
], 544),
|
|
2866
2866
|
(l(), B(je, { to: "body" }, [
|
|
2867
|
-
q(
|
|
2867
|
+
q(he, null, {
|
|
2868
2868
|
default: G(() => [
|
|
2869
2869
|
s.value ? (l(), u("span", {
|
|
2870
2870
|
key: 0,
|
|
@@ -2908,9 +2908,9 @@ const jo = /* @__PURE__ */ z(Do, [["render", Eo]]), So = ["data-theme"], Vo = /*
|
|
|
2908
2908
|
},
|
|
2909
2909
|
emits: ["selectItem"],
|
|
2910
2910
|
setup(e, { emit: f }) {
|
|
2911
|
-
const t = e, n = Jt(t, "sidebarItems"), a = Jt(t, "menuActions"), i = f, s =
|
|
2911
|
+
const t = e, n = Jt(t, "sidebarItems"), a = Jt(t, "menuActions"), i = f, s = Q(
|
|
2912
2912
|
() => n.value.filter((m) => m.isFixedBottom).sort((m, b) => b.notificationCount - m.notificationCount)
|
|
2913
|
-
), r =
|
|
2913
|
+
), r = Q(
|
|
2914
2914
|
() => n.value.filter((m) => !m.isFixedBottom).sort((m, b) => b.notificationCount - m.notificationCount)
|
|
2915
2915
|
), c = (m) => {
|
|
2916
2916
|
const b = n.value.find((D) => D.itemId === m);
|
|
@@ -2949,9 +2949,9 @@ const jo = /* @__PURE__ */ z(Do, [["render", Eo]]), So = ["data-theme"], Vo = /*
|
|
|
2949
2949
|
} catch {
|
|
2950
2950
|
}
|
|
2951
2951
|
}, I = () => x();
|
|
2952
|
-
return
|
|
2952
|
+
return be(() => {
|
|
2953
2953
|
var b;
|
|
2954
|
-
|
|
2954
|
+
me(x), window.addEventListener("resize", I);
|
|
2955
2955
|
const m = (b = C.value) == null ? void 0 : b.querySelector(".sidebar__scroll-container");
|
|
2956
2956
|
m && m.addEventListener("scroll", x);
|
|
2957
2957
|
}), sf(() => {
|
|
@@ -2959,7 +2959,7 @@ const jo = /* @__PURE__ */ z(Do, [["render", Eo]]), So = ["data-theme"], Vo = /*
|
|
|
2959
2959
|
window.removeEventListener("resize", I);
|
|
2960
2960
|
const m = (b = C.value) == null ? void 0 : b.querySelector(".sidebar__scroll-container");
|
|
2961
2961
|
m && m.removeEventListener("scroll", x);
|
|
2962
|
-
}), ce(() => n.value.map((m) => m.selected), () =>
|
|
2962
|
+
}), ce(() => n.value.map((m) => m.selected), () => me(x)), (m, b) => (l(), u("div", {
|
|
2963
2963
|
ref_key: "containerRef",
|
|
2964
2964
|
ref: C,
|
|
2965
2965
|
class: j(["sidebar__container", { "sidebar-horizontal__container": e.horizontal }])
|
|
@@ -2967,13 +2967,13 @@ const jo = /* @__PURE__ */ z(Do, [["render", Eo]]), So = ["data-theme"], Vo = /*
|
|
|
2967
2967
|
!e.horizontal && y.value ? (l(), u("span", {
|
|
2968
2968
|
key: 0,
|
|
2969
2969
|
class: j(["sidebar__selected-bar", { "is-animating": k.value }]),
|
|
2970
|
-
style:
|
|
2970
|
+
style: _e({ top: M.value + "px", height: _.value + "px" })
|
|
2971
2971
|
}, null, 6)) : v("", !0),
|
|
2972
2972
|
o("div", Lo, [
|
|
2973
2973
|
o("ul", {
|
|
2974
2974
|
class: j(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": e.horizontal }])
|
|
2975
2975
|
}, [
|
|
2976
|
-
(l(!0), u(ee, null,
|
|
2976
|
+
(l(!0), u(ee, null, pe(s.value, (D, O) => (l(), u("li", {
|
|
2977
2977
|
key: O,
|
|
2978
2978
|
class: j(["sidebar__item-fixed", { "sidebar-horizontal__item": e.horizontal }]),
|
|
2979
2979
|
onClick: (S) => d(S, D.itemId)
|
|
@@ -3004,7 +3004,7 @@ const jo = /* @__PURE__ */ z(Do, [["render", Eo]]), So = ["data-theme"], Vo = /*
|
|
|
3004
3004
|
o("ul", {
|
|
3005
3005
|
class: j(["sidebar__list", { "sidebar-horizontal__list": e.horizontal }])
|
|
3006
3006
|
}, [
|
|
3007
|
-
(l(!0), u(ee, null,
|
|
3007
|
+
(l(!0), u(ee, null, pe(r.value, (D, O) => (l(), u("li", {
|
|
3008
3008
|
key: O,
|
|
3009
3009
|
class: j(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
|
|
3010
3010
|
onClick: (S) => d(S, D.itemId)
|
|
@@ -3107,7 +3107,7 @@ const Zo = /* @__PURE__ */ z(qo, [["render", Wo]]), Ko = { class: "chat-panel" }
|
|
|
3107
3107
|
])) : v("", !0)
|
|
3108
3108
|
]),
|
|
3109
3109
|
o("div", null, [
|
|
3110
|
-
|
|
3110
|
+
ge(t.$slots, "content", {}, void 0, !0)
|
|
3111
3111
|
])
|
|
3112
3112
|
]));
|
|
3113
3113
|
}
|
|
@@ -3137,7 +3137,7 @@ const Zo = /* @__PURE__ */ z(qo, [["render", Wo]]), Ko = { class: "chat-panel" }
|
|
|
3137
3137
|
},
|
|
3138
3138
|
emits: ["selectChannel"],
|
|
3139
3139
|
setup(e, { emit: f }) {
|
|
3140
|
-
const t = e, n =
|
|
3140
|
+
const t = e, n = de("chatAppId"), { getMessage: a } = qe(n), i = f, r = h(t.channels.find((d) => d.type === "default")), c = (d) => {
|
|
3141
3141
|
r.value = d, i("selectChannel", r.value);
|
|
3142
3142
|
};
|
|
3143
3143
|
return (d, A) => T(a)().isRecording ? v("", !0) : (l(), u("div", {
|
|
@@ -3231,7 +3231,7 @@ const B6 = (e, f = null) => {
|
|
|
3231
3231
|
};
|
|
3232
3232
|
return (i, s) => (l(), u("div", ol, [
|
|
3233
3233
|
o("ul", ll, [
|
|
3234
|
-
(l(!0), u(ee, null,
|
|
3234
|
+
(l(!0), u(ee, null, pe(t.actions, (r, c) => (l(), u("li", {
|
|
3235
3235
|
key: c,
|
|
3236
3236
|
class: "context-menu__item",
|
|
3237
3237
|
onClick: (d) => a(c)
|
|
@@ -3310,27 +3310,27 @@ const B6 = (e, f = null) => {
|
|
|
3310
3310
|
},
|
|
3311
3311
|
emits: ["select", "action", "expand"],
|
|
3312
3312
|
setup(e, { emit: f }) {
|
|
3313
|
-
const t = e, n = f, a =
|
|
3313
|
+
const t = e, n = f, a = de("chatAppId"), { getTheme: i } = Ue(a), s = l1(), r = h(!1), c = h(!1), d = h(!1), A = () => {
|
|
3314
3314
|
d.value = !0;
|
|
3315
|
-
}, g = (
|
|
3316
|
-
d.value ||
|
|
3317
|
-
}, p = (
|
|
3318
|
-
n("select", { chat: t.chat, dialog:
|
|
3315
|
+
}, g = (Y) => {
|
|
3316
|
+
d.value || Y.target instanceof HTMLElement && Y.target.id != "noSelectButton" && n("select", { chat: t.chat, dialog: null }), d.value = !1;
|
|
3317
|
+
}, p = (Y) => {
|
|
3318
|
+
n("select", { chat: t.chat, dialog: Y });
|
|
3319
3319
|
}, C = () => {
|
|
3320
|
-
const
|
|
3321
|
-
return t.chat.isSelected &&
|
|
3322
|
-
}, y = (
|
|
3323
|
-
t.contextMenuTrigger === "rightClick" && _(), n("action", { chat: t.chat,
|
|
3320
|
+
const Y = [];
|
|
3321
|
+
return t.chat.isSelected && Y.push("chat-item__selected"), t.hasScroll && Y.push("chat-item__with-scroll"), Y.join(" ");
|
|
3322
|
+
}, y = (Y) => Y.isSelected ? "dialog__selected" : "", M = (Y) => {
|
|
3323
|
+
t.contextMenuTrigger === "rightClick" && _(), n("action", { chat: t.chat, ...Y });
|
|
3324
3324
|
}, _ = () => {
|
|
3325
|
-
const
|
|
3326
|
-
|
|
3327
|
-
}, k = () => t.chat.dialogs.toSorted((
|
|
3328
|
-
if (Number(
|
|
3329
|
-
if (Number(
|
|
3330
|
-
if (Number(
|
|
3331
|
-
}), N =
|
|
3325
|
+
const Y = document.getElementById("context-menu-rightclick-" + s);
|
|
3326
|
+
Y && (Y.style.top = "0", Y.style.left = "0", Y.style.opacity = "0", Y.style.display = "none"), c.value = !1;
|
|
3327
|
+
}, k = () => t.chat.dialogs.toSorted((Y, J) => {
|
|
3328
|
+
if (Number(Y["lastActivity.timestamp"]) > Number(J["lastActivity.timestamp"])) return -1;
|
|
3329
|
+
if (Number(Y["lastActivity.timestamp"]) < Number(J["lastActivity.timestamp"])) return 1;
|
|
3330
|
+
if (Number(Y["lastActivity.timestamp"]) == Number(J["lastActivity.timestamp"])) return 0;
|
|
3331
|
+
}), N = Q(() => Rf(t.chat["lastMessage.status"])), x = Q(() => t.chat.showEmptyIndicator || t.chat.countUnread > 0), w = Q(() => t.chat.countUnread > 0 ? t.chat.countUnread > 99 ? "99+" : t.chat.countUnread : t.chat.showEmptyIndicator ? "" : void 0);
|
|
3332
3332
|
let I;
|
|
3333
|
-
const m = h(0), b = [Te("component.ChatItem.typing") + ".", Te("component.ChatItem.typing") + "..", Te("component.ChatItem.typing") + "..."], D =
|
|
3333
|
+
const m = h(0), b = [Te("component.ChatItem.typing") + ".", Te("component.ChatItem.typing") + "..", Te("component.ChatItem.typing") + "..."], D = Q(() => t.chat.typing ? b[m.value] : t.chat.lastMessage);
|
|
3334
3334
|
ce(
|
|
3335
3335
|
() => t.chat.typing,
|
|
3336
3336
|
() => {
|
|
@@ -3342,41 +3342,47 @@ const B6 = (e, f = null) => {
|
|
|
3342
3342
|
);
|
|
3343
3343
|
const O = () => {
|
|
3344
3344
|
t.contextMenuTrigger === "hover" && (r.value = !0);
|
|
3345
|
-
}, S = (
|
|
3346
|
-
var
|
|
3347
|
-
t.contextMenuTrigger === "hover" && (((
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3345
|
+
}, S = (Y) => {
|
|
3346
|
+
var J;
|
|
3347
|
+
if (t.contextMenuTrigger === "hover" && (((J = Y.relatedTarget) == null ? void 0 : J.className) == "context-menu__list" ? r.value = !0 : r.value = !1), t.contextMenuTrigger === "rightClick" && c.value) {
|
|
3348
|
+
const re = Y.relatedTarget, ve = document.getElementById("context-menu-rightclick-" + s);
|
|
3349
|
+
(!ve || !ve.contains(re)) && _();
|
|
3350
|
+
}
|
|
3351
|
+
}, fe = (Y) => {
|
|
3352
|
+
t.contextMenuTrigger === "rightClick" && t.chat.actions && P(Y);
|
|
3353
|
+
}, P = (Y) => {
|
|
3354
|
+
c.value = !0, me(() => {
|
|
3355
|
+
const J = document.getElementById("context-menu-rightclick-" + s);
|
|
3356
|
+
if (J) {
|
|
3357
|
+
const re = Y.clientX, ve = Y.clientY;
|
|
3358
|
+
J.style.display = "inherit";
|
|
3359
|
+
const Ce = J.getBoundingClientRect();
|
|
3360
|
+
J.style.display = "none", me(() => {
|
|
3361
|
+
const Se = window.innerWidth, De = window.innerHeight, U = window.scrollX || window.pageXOffset, te = window.scrollY || window.pageYOffset;
|
|
3362
|
+
let X = re + U, Ae = ve + te;
|
|
3363
|
+
X + Ce.width > Se + U && (X = re + U - Ce.width), Ae + Ce.height > De + te && (Ae = ve + te - Ce.height), X < U && (X = U), Ae < te && (Ae = te), J.style.top = Ae + "px", J.style.left = X + "px", J.style.opacity = "1", J.style.display = "inherit";
|
|
3361
3364
|
});
|
|
3362
3365
|
}
|
|
3363
3366
|
});
|
|
3364
3367
|
}, ae = () => {
|
|
3365
|
-
},
|
|
3366
|
-
|
|
3368
|
+
}, K = () => {
|
|
3369
|
+
t.contextMenuTrigger === "rightClick" && _();
|
|
3370
|
+
}, H = h(null), R = (Y) => {
|
|
3367
3371
|
if (t.contextMenuTrigger === "rightClick" && c.value) {
|
|
3368
|
-
const
|
|
3369
|
-
|
|
3372
|
+
const J = Y.target, re = H.value, ve = document.getElementById("context-menu-rightclick-" + s);
|
|
3373
|
+
re && !re.contains(J) && (!ve || !ve.contains(J)) && _();
|
|
3370
3374
|
}
|
|
3375
|
+
}, ie = () => {
|
|
3376
|
+
t.contextMenuTrigger === "rightClick" && c.value && _();
|
|
3371
3377
|
};
|
|
3372
|
-
return
|
|
3373
|
-
t.contextMenuTrigger === "rightClick" && (document.addEventListener("click",
|
|
3374
|
-
const
|
|
3375
|
-
|
|
3378
|
+
return be(() => {
|
|
3379
|
+
t.contextMenuTrigger === "rightClick" && (document.addEventListener("click", R), window.addEventListener("scroll", ie, !0), me(() => {
|
|
3380
|
+
const Y = document.getElementById("context-menu-rightclick-" + s);
|
|
3381
|
+
Y && (Y.style.display = "none", Y.style.opacity = "0");
|
|
3376
3382
|
}));
|
|
3377
3383
|
}), sf(() => {
|
|
3378
|
-
document.removeEventListener("click",
|
|
3379
|
-
}), (
|
|
3384
|
+
document.removeEventListener("click", R), window.removeEventListener("scroll", ie, !0);
|
|
3385
|
+
}), (Y, J) => (l(), u("div", null, [
|
|
3380
3386
|
o("div", {
|
|
3381
3387
|
ref_key: "containerRef",
|
|
3382
3388
|
ref: H,
|
|
@@ -3389,7 +3395,7 @@ const B6 = (e, f = null) => {
|
|
|
3389
3395
|
o("div", gl, [
|
|
3390
3396
|
o("span", {
|
|
3391
3397
|
class: "chat-item__status-user",
|
|
3392
|
-
style:
|
|
3398
|
+
style: _e({ backgroundColor: t.chat.status })
|
|
3393
3399
|
}, null, 4),
|
|
3394
3400
|
t.chat.avatar ? (l(), u("img", {
|
|
3395
3401
|
key: 0,
|
|
@@ -3430,9 +3436,9 @@ const B6 = (e, f = null) => {
|
|
|
3430
3436
|
actions: e.chat.actions,
|
|
3431
3437
|
onClick: M,
|
|
3432
3438
|
onButtonClick: A,
|
|
3433
|
-
onMenuMouseLeave:
|
|
3439
|
+
onMenuMouseLeave: J[0] || (J[0] = (re) => r.value = !1)
|
|
3434
3440
|
}, {
|
|
3435
|
-
default: G(() =>
|
|
3441
|
+
default: G(() => J[2] || (J[2] = [
|
|
3436
3442
|
o("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
|
|
3437
3443
|
])),
|
|
3438
3444
|
_: 1,
|
|
@@ -3446,7 +3452,7 @@ const B6 = (e, f = null) => {
|
|
|
3446
3452
|
"data-theme": T(i)().theme ? T(i)().theme : "light",
|
|
3447
3453
|
onClick: M,
|
|
3448
3454
|
onMouseenter: ae,
|
|
3449
|
-
onMouseleave:
|
|
3455
|
+
onMouseleave: K
|
|
3450
3456
|
}, null, 8, ["id", "actions", "data-theme"])) : v("", !0)
|
|
3451
3457
|
])),
|
|
3452
3458
|
o("div", Ml, [
|
|
@@ -3455,7 +3461,7 @@ const B6 = (e, f = null) => {
|
|
|
3455
3461
|
class: j(["chat-item__status-message", N.value])
|
|
3456
3462
|
}, [
|
|
3457
3463
|
e.chat["lastMessage.status"] !== "sent" ? (l(), u("span", wl)) : v("", !0),
|
|
3458
|
-
|
|
3464
|
+
J[3] || (J[3] = o("span", { class: "pi pi-check" }, null, -1))
|
|
3459
3465
|
], 2)) : v("", !0),
|
|
3460
3466
|
x.value ? (l(), u("div", Cl, E(w.value), 1)) : v("", !0)
|
|
3461
3467
|
]),
|
|
@@ -3466,15 +3472,15 @@ const B6 = (e, f = null) => {
|
|
|
3466
3472
|
t.showDialogs && e.chat.dialogs ? (l(), u("div", {
|
|
3467
3473
|
key: 0,
|
|
3468
3474
|
class: "chat-item__dialog-buttons",
|
|
3469
|
-
onClick:
|
|
3475
|
+
onClick: J[1] || (J[1] = (re) => n("expand", t.chat))
|
|
3470
3476
|
}, [
|
|
3471
|
-
t.showDialogs && !e.chat.dialogsExpanded ? (l(), u("button", xl,
|
|
3477
|
+
t.showDialogs && !e.chat.dialogsExpanded ? (l(), u("button", xl, J[4] || (J[4] = [
|
|
3472
3478
|
o("span", {
|
|
3473
3479
|
id: "noSelectButton",
|
|
3474
3480
|
class: "pi pi-angle-down"
|
|
3475
3481
|
}, null, -1)
|
|
3476
3482
|
]))) : v("", !0),
|
|
3477
|
-
t.showDialogs && e.chat.dialogsExpanded ? (l(), u("button", Tl,
|
|
3483
|
+
t.showDialogs && e.chat.dialogsExpanded ? (l(), u("button", Tl, J[5] || (J[5] = [
|
|
3478
3484
|
o("span", {
|
|
3479
3485
|
id: "noSelectButton",
|
|
3480
3486
|
class: "pi pi-angle-up"
|
|
@@ -3486,32 +3492,32 @@ const B6 = (e, f = null) => {
|
|
|
3486
3492
|
key: 0,
|
|
3487
3493
|
class: j(["dialog__container", { "dialog__container--with-scroll": t.hasScroll }])
|
|
3488
3494
|
}, [
|
|
3489
|
-
(l(!0), u(ee, null,
|
|
3490
|
-
key:
|
|
3491
|
-
class: j(["dialog__item", y(
|
|
3492
|
-
onClick: (
|
|
3495
|
+
(l(!0), u(ee, null, pe(k(), (re) => (l(), u("div", {
|
|
3496
|
+
key: re.dialogId,
|
|
3497
|
+
class: j(["dialog__item", y(re)]),
|
|
3498
|
+
onClick: (ve) => p(re)
|
|
3493
3499
|
}, [
|
|
3494
|
-
|
|
3500
|
+
re.icon ? (l(), u("img", {
|
|
3495
3501
|
key: 0,
|
|
3496
3502
|
class: "dialog__icon",
|
|
3497
|
-
src:
|
|
3503
|
+
src: re.icon,
|
|
3498
3504
|
height: "16",
|
|
3499
3505
|
width: "16"
|
|
3500
3506
|
}, null, 8, Nl)) : (l(), u("span", El)),
|
|
3501
3507
|
o("div", jl, [
|
|
3502
|
-
o("div", Sl, E(
|
|
3503
|
-
o("div", Vl, E(
|
|
3508
|
+
o("div", Sl, E(re.name), 1),
|
|
3509
|
+
o("div", Vl, E(re["lastActivity.time"]), 1)
|
|
3504
3510
|
]),
|
|
3505
|
-
|
|
3511
|
+
re.countUnread > 0 ? (l(), u("div", {
|
|
3506
3512
|
key: 2,
|
|
3507
3513
|
class: "chat-item__unread",
|
|
3508
|
-
style:
|
|
3509
|
-
}, E(
|
|
3514
|
+
style: _e({ backgroundColor: re.colorUnread ? re.colorUnread : null })
|
|
3515
|
+
}, E(re.countUnread > 99 ? "99+" : re.countUnread), 5)) : v("", !0)
|
|
3510
3516
|
], 10, Dl))), 128))
|
|
3511
3517
|
], 2)) : v("", !0)
|
|
3512
3518
|
]));
|
|
3513
3519
|
}
|
|
3514
|
-
}), At = /* @__PURE__ */ z(Ll, [["__scopeId", "data-v-
|
|
3520
|
+
}), At = /* @__PURE__ */ z(Ll, [["__scopeId", "data-v-b43e37dc"]]), Ol = {}, zl = {
|
|
3515
3521
|
width: "17",
|
|
3516
3522
|
height: "16",
|
|
3517
3523
|
viewBox: "0 0 17 16",
|
|
@@ -3577,7 +3583,7 @@ const Ul = /* @__PURE__ */ z(Ol, [["render", Bl]]), $l = { class: "chat-filter__
|
|
|
3577
3583
|
viewBox: "0 0 14 14",
|
|
3578
3584
|
fill: "none",
|
|
3579
3585
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3580
|
-
style:
|
|
3586
|
+
style: _e({ color: e.fillColor })
|
|
3581
3587
|
}, [
|
|
3582
3588
|
o("path", {
|
|
3583
3589
|
d: "M11.1436 3.47369C11.2033 3.41276 11.2745 3.36436 11.3532 3.33131C11.4318 3.29827 11.5163 3.28125 11.6016 3.28125C11.6869 3.28125 11.7714 3.29827 11.85 3.33131C11.9287 3.36436 12 3.41276 12.0597 3.47369C12.3099 3.72657 12.3134 4.13519 12.0684 4.39244L6.89456 10.5087C6.83581 10.5732 6.76453 10.625 6.68506 10.661C6.60559 10.6971 6.51962 10.7165 6.43239 10.7181C6.34516 10.7198 6.25851 10.7036 6.17775 10.6706C6.09698 10.6376 6.0238 10.5884 5.96268 10.5262L2.81443 7.33594C2.69301 7.21212 2.625 7.04561 2.625 6.87219C2.625 6.69877 2.69301 6.53227 2.81443 6.40844C2.87415 6.34751 2.94542 6.29911 3.02407 6.26606C3.10272 6.23302 3.18718 6.216 3.27249 6.216C3.35781 6.216 3.44226 6.23302 3.52092 6.26606C3.59957 6.29911 3.67084 6.34751 3.73056 6.40844L6.40106 9.11482L11.1261 3.49294L11.1436 3.47369Z",
|
|
@@ -3666,10 +3672,10 @@ const eu = /* @__PURE__ */ z(Jl, [["render", Xl]]), fu = { class: "contact-info"
|
|
|
3666
3672
|
attributeId: a.value,
|
|
3667
3673
|
channelId: M.channelId
|
|
3668
3674
|
});
|
|
3669
|
-
}, c = (M) => (M == null ? void 0 : M.replace(/\D/g, "")) || "", d =
|
|
3675
|
+
}, c = (M) => (M == null ? void 0 : M.replace(/\D/g, "")) || "", d = Q(() => {
|
|
3670
3676
|
var M;
|
|
3671
3677
|
return (M = t.contact.attributes) == null ? void 0 : M.find((_) => _.id === a.value);
|
|
3672
|
-
}), A =
|
|
3678
|
+
}), A = Q(() => {
|
|
3673
3679
|
if (i.value)
|
|
3674
3680
|
return i.value;
|
|
3675
3681
|
if (!d.value) return t.channels[0] || null;
|
|
@@ -3679,7 +3685,7 @@ const eu = /* @__PURE__ */ z(Jl, [["render", Xl]]), fu = { class: "contact-info"
|
|
|
3679
3685
|
const N = ((m = k.title) == null ? void 0 : m.toLowerCase()) || "", x = ((b = k.channelId) == null ? void 0 : b.toLowerCase()) || "", w = N.includes(M), I = ["whatsapp", "waba", "telegram"].some((D) => x.includes(D));
|
|
3680
3686
|
return w && I;
|
|
3681
3687
|
}) || t.channels[0] || { title: "default", channelId: "fallback" } : t.channels[0] || null;
|
|
3682
|
-
}), g =
|
|
3688
|
+
}), g = Q(() => t.channels), p = (M) => M ? M.includes("whatsapp") || M.includes("waba") ? Kl : M.includes("telegram") ? eu : null : null, C = (M) => !t.currentDialog || !Object.keys(t.currentDialog) ? !1 : t.currentDialog.attributeId === M.id, y = (M) => {
|
|
3683
3689
|
n("select-attribute-channel", {
|
|
3684
3690
|
attributeId: M.id,
|
|
3685
3691
|
channelId: i.value.channelId
|
|
@@ -3696,11 +3702,11 @@ const eu = /* @__PURE__ */ z(Jl, [["render", Xl]]), fu = { class: "contact-info"
|
|
|
3696
3702
|
var k, N, x, w;
|
|
3697
3703
|
return l(), u("div", fu, [
|
|
3698
3704
|
o("div", tu, [
|
|
3699
|
-
(l(!0), u(ee, null,
|
|
3705
|
+
(l(!0), u(ee, null, pe(((k = e.contact) == null ? void 0 : k.attributes) || [], (I, m) => (l(), u("div", {
|
|
3700
3706
|
key: I.id,
|
|
3701
3707
|
class: j(["contact-info__attribute-item", { "contact-info__attribute-item--current-chat": C(I) }])
|
|
3702
3708
|
}, [
|
|
3703
|
-
|
|
3709
|
+
Me(o("input", {
|
|
3704
3710
|
id: `attr-${m}`,
|
|
3705
3711
|
"onUpdate:modelValue": _[0] || (_[0] = (b) => a.value = b),
|
|
3706
3712
|
type: "radio",
|
|
@@ -3747,7 +3753,7 @@ const eu = /* @__PURE__ */ z(Jl, [["render", Xl]]), fu = { class: "contact-info"
|
|
|
3747
3753
|
}, null, 2)
|
|
3748
3754
|
]),
|
|
3749
3755
|
s.value ? (l(), u("div", du, [
|
|
3750
|
-
(l(!0), u(ee, null,
|
|
3756
|
+
(l(!0), u(ee, null, pe(g.value, (I) => (l(), u("div", {
|
|
3751
3757
|
key: I.channelId,
|
|
3752
3758
|
class: "contact-info__select-option",
|
|
3753
3759
|
onClick: (m) => r(I)
|
|
@@ -3821,38 +3827,38 @@ const eu = /* @__PURE__ */ z(Jl, [["render", Xl]]), fu = { class: "contact-info"
|
|
|
3821
3827
|
},
|
|
3822
3828
|
emits: ["closeTemplateWindow", "pasteTemplate"],
|
|
3823
3829
|
setup(e, { emit: f }) {
|
|
3824
|
-
const t = e, n =
|
|
3830
|
+
const t = e, n = de("chatAppId"), { setMessageText: a } = qe(n), i = () => {
|
|
3825
3831
|
s("closeTemplateWindow"), a(c.value.template);
|
|
3826
|
-
}, s = f, r = h(null), c = h(null), d = h(""), A = h(), g = h(""), p = h(""), C = h(""), y = h(!1), M =
|
|
3832
|
+
}, s = f, r = h(null), c = h(null), d = h(""), A = h(), g = h(""), p = h(""), C = h(""), y = h(!1), M = Q(() => !!(y.value && (C.value == "grid" && p.value == "none" || p.value == "grid" && g.value == "none"))), _ = Q(() => !!(y.value && (g.value == "grid" && p.value == "none" || p.value == "grid" && C.value == "none"))), k = () => {
|
|
3827
3833
|
y.value && (p.value == "grid" ? x() : C.value == "grid" && I());
|
|
3828
3834
|
}, N = () => {
|
|
3829
3835
|
y.value && (p.value == "grid" ? w() : g.value == "grid" && I());
|
|
3830
3836
|
}, x = () => {
|
|
3831
|
-
const
|
|
3832
|
-
|
|
3837
|
+
const P = document.getElementById("template-selector-container-" + n);
|
|
3838
|
+
P.style.setProperty("--chotto-template-first-col-display", "grid"), P.style.setProperty("--chotto-template-second-col-display", "none"), m();
|
|
3833
3839
|
}, w = () => {
|
|
3834
|
-
const
|
|
3835
|
-
|
|
3840
|
+
const P = document.getElementById("template-selector-container-" + n);
|
|
3841
|
+
P.style.setProperty("--chotto-template-third-col-display", "grid"), P.style.setProperty("--chotto-template-second-col-display", "none"), m();
|
|
3836
3842
|
}, I = () => {
|
|
3837
|
-
const
|
|
3838
|
-
|
|
3843
|
+
const P = document.getElementById("template-selector-container-" + n);
|
|
3844
|
+
P.style.setProperty("--chotto-template-second-col-display", "grid"), P.style.setProperty("--chotto-template-first-col-display", "none"), P.style.setProperty("--chotto-template-third-col-display", "none"), m();
|
|
3839
3845
|
}, m = () => {
|
|
3840
|
-
const
|
|
3846
|
+
const P = document.getElementById("template-selector-container-" + n), ae = window.getComputedStyle(P);
|
|
3841
3847
|
g.value = ae.getPropertyValue("--chotto-template-first-col-display"), p.value = ae.getPropertyValue("--chotto-template-second-col-display"), C.value = ae.getPropertyValue("--chotto-template-third-col-display");
|
|
3842
|
-
}, b = (
|
|
3843
|
-
t.templates.forEach((ae) => ae.isSelected = !1),
|
|
3848
|
+
}, b = (P) => {
|
|
3849
|
+
t.templates.forEach((ae) => ae.isSelected = !1), P.isSelected = !0, c.value = P, w();
|
|
3844
3850
|
}, D = () => {
|
|
3845
|
-
I(), t.templates.forEach((
|
|
3846
|
-
}, O =
|
|
3847
|
-
const
|
|
3848
|
-
return O.value.filter((ae) => ae.title.toLowerCase().includes(
|
|
3849
|
-
}), fe = new ResizeObserver((
|
|
3850
|
-
const ae =
|
|
3851
|
+
I(), t.templates.forEach((P) => P.isSelected = !1);
|
|
3852
|
+
}, O = Q(() => r.value ? t.templates.filter((P) => P.groupId === r.value.groupId) : t.templates), S = Q(() => {
|
|
3853
|
+
const P = d.value.trim().toLowerCase();
|
|
3854
|
+
return O.value.filter((ae) => ae.title.toLowerCase().includes(P) || ae.template.toLowerCase().includes(P));
|
|
3855
|
+
}), fe = new ResizeObserver((P) => {
|
|
3856
|
+
const ae = P[0].target.clientWidth;
|
|
3851
3857
|
ae > 700 && (y.value = !1), ae < 700 && (y.value = !0);
|
|
3852
3858
|
});
|
|
3853
|
-
return
|
|
3859
|
+
return be(() => {
|
|
3854
3860
|
m(), T(A) && fe.observe(T(A));
|
|
3855
|
-
}), (
|
|
3861
|
+
}), (P, ae) => (l(), u("div", _u, [
|
|
3856
3862
|
o("div", {
|
|
3857
3863
|
id: "template-selector-container-" + T(n),
|
|
3858
3864
|
ref_key: "refContainer",
|
|
@@ -3880,7 +3886,7 @@ const eu = /* @__PURE__ */ z(Jl, [["render", Xl]]), fu = { class: "contact-info"
|
|
|
3880
3886
|
o("button", Cu, [
|
|
3881
3887
|
o("span", {
|
|
3882
3888
|
class: "pi pi-times",
|
|
3883
|
-
onClick: ae[0] || (ae[0] = (
|
|
3889
|
+
onClick: ae[0] || (ae[0] = (K) => P.$emit("closeTemplateWindow"))
|
|
3884
3890
|
})
|
|
3885
3891
|
])
|
|
3886
3892
|
]),
|
|
@@ -3890,28 +3896,28 @@ const eu = /* @__PURE__ */ z(Jl, [["render", Xl]]), fu = { class: "contact-info"
|
|
|
3890
3896
|
class: "template-selector__first-col"
|
|
3891
3897
|
}, [
|
|
3892
3898
|
o("ul", xu, [
|
|
3893
|
-
(l(!0), u(ee, null,
|
|
3899
|
+
(l(!0), u(ee, null, pe(e.groupTemplates, (K, H) => (l(), u("li", {
|
|
3894
3900
|
key: H,
|
|
3895
|
-
class: j(["template-selector__item-group", { "template-selector__item-selected": r.value ===
|
|
3901
|
+
class: j(["template-selector__item-group", { "template-selector__item-selected": r.value === K }]),
|
|
3896
3902
|
onClick: D
|
|
3897
3903
|
}, [
|
|
3898
3904
|
o("label", Tu, [
|
|
3899
|
-
|
|
3905
|
+
K.iconUrl ? (l(), u("img", {
|
|
3900
3906
|
key: 0,
|
|
3901
3907
|
class: "template-selector__item-group-icon",
|
|
3902
|
-
src:
|
|
3903
|
-
alt:
|
|
3908
|
+
src: K.iconUrl,
|
|
3909
|
+
alt: K.title
|
|
3904
3910
|
}, null, 8, Du)) : v("", !0),
|
|
3905
|
-
|
|
3911
|
+
Me(o("input", {
|
|
3906
3912
|
id: H,
|
|
3907
|
-
"onUpdate:modelValue": ae[1] || (ae[1] = (
|
|
3908
|
-
value:
|
|
3913
|
+
"onUpdate:modelValue": ae[1] || (ae[1] = (R) => r.value = R),
|
|
3914
|
+
value: K,
|
|
3909
3915
|
class: "template-selector__input-group",
|
|
3910
3916
|
type: "radio"
|
|
3911
3917
|
}, null, 8, Nu), [
|
|
3912
3918
|
[Dt, r.value]
|
|
3913
3919
|
]),
|
|
3914
|
-
o("span", null, E(
|
|
3920
|
+
o("span", null, E(K.title), 1)
|
|
3915
3921
|
])
|
|
3916
3922
|
], 2))), 128))
|
|
3917
3923
|
])
|
|
@@ -3921,8 +3927,8 @@ const eu = /* @__PURE__ */ z(Jl, [["render", Xl]]), fu = { class: "contact-info"
|
|
|
3921
3927
|
class: "template-selector__second-col"
|
|
3922
3928
|
}, [
|
|
3923
3929
|
o("div", ju, [
|
|
3924
|
-
|
|
3925
|
-
"onUpdate:modelValue": ae[2] || (ae[2] = (
|
|
3930
|
+
Me(o("input", {
|
|
3931
|
+
"onUpdate:modelValue": ae[2] || (ae[2] = (K) => d.value = K),
|
|
3926
3932
|
class: "template-selector__searching-input",
|
|
3927
3933
|
type: "text",
|
|
3928
3934
|
placeholder: "Поиск шаблона"
|
|
@@ -3932,14 +3938,14 @@ const eu = /* @__PURE__ */ z(Jl, [["render", Xl]]), fu = { class: "contact-info"
|
|
|
3932
3938
|
]),
|
|
3933
3939
|
o("div", Su, [
|
|
3934
3940
|
S.value.length !== 0 ? (l(), u("ul", Vu, [
|
|
3935
|
-
(l(!0), u(ee, null,
|
|
3941
|
+
(l(!0), u(ee, null, pe(S.value, (K, H) => (l(), u("li", {
|
|
3936
3942
|
key: H,
|
|
3937
|
-
class: j(["template-selector__item-template", { "template-selector__item-selected":
|
|
3938
|
-
onClick: (
|
|
3943
|
+
class: j(["template-selector__item-template", { "template-selector__item-selected": K.isSelected }]),
|
|
3944
|
+
onClick: (R) => b(K)
|
|
3939
3945
|
}, [
|
|
3940
3946
|
o("div", Ou, [
|
|
3941
|
-
o("p", zu, E(
|
|
3942
|
-
o("p", Bu, E(
|
|
3947
|
+
o("p", zu, E(K.title), 1),
|
|
3948
|
+
o("p", Bu, E(K.template), 1)
|
|
3943
3949
|
])
|
|
3944
3950
|
], 10, Lu))), 128))
|
|
3945
3951
|
])) : (l(), u("p", Uu, " Шаблоны отсутствуют "))
|
|
@@ -4013,7 +4019,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4013
4019
|
}
|
|
4014
4020
|
},
|
|
4015
4021
|
setup(e) {
|
|
4016
|
-
const f = e, t =
|
|
4022
|
+
const f = e, t = de("chatAppId"), { getMessage: n } = qe(t), a = h(null), i = h(null), s = () => {
|
|
4017
4023
|
f.mode == "click" && f.state == "active" && (i.value.style.display == "none" ? i.value.style.display = "inherit" : i.value.style.display == "inherit" && (i.value.style.display = "none"));
|
|
4018
4024
|
}, r = () => {
|
|
4019
4025
|
f.mode == "hover" && f.state == "active" && (i.value.style.display = "inherit");
|
|
@@ -4022,7 +4028,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4022
4028
|
}, d = () => {
|
|
4023
4029
|
i.value.style.display = "none";
|
|
4024
4030
|
};
|
|
4025
|
-
return
|
|
4031
|
+
return be(() => {
|
|
4026
4032
|
i.value.style.display = "none";
|
|
4027
4033
|
}), (A, g) => (l(), u(ee, null, [
|
|
4028
4034
|
q(Ve, {
|
|
@@ -4046,9 +4052,9 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4046
4052
|
]),
|
|
4047
4053
|
_: 1
|
|
4048
4054
|
}),
|
|
4049
|
-
q(
|
|
4055
|
+
q(he, null, {
|
|
4050
4056
|
default: G(() => [
|
|
4051
|
-
|
|
4057
|
+
Me(o("div", {
|
|
4052
4058
|
ref_key: "template",
|
|
4053
4059
|
ref: i,
|
|
4054
4060
|
onMouseover: r,
|
|
@@ -4086,7 +4092,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4086
4092
|
},
|
|
4087
4093
|
emits: ["edit"],
|
|
4088
4094
|
setup(e, { emit: f }) {
|
|
4089
|
-
const t =
|
|
4095
|
+
const t = de("chatAppId"), n = e, a = f, i = h(n.value), s = h();
|
|
4090
4096
|
ce(
|
|
4091
4097
|
() => n.isFilled,
|
|
4092
4098
|
() => {
|
|
@@ -4102,7 +4108,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4102
4108
|
}
|
|
4103
4109
|
};
|
|
4104
4110
|
function c() {
|
|
4105
|
-
i.value = s.value.innerText.trim(), n.value != i.value && (i.value != "" ? a("edit", [i.value, n.index]) : n.isFilled ?
|
|
4111
|
+
i.value = s.value.innerText.trim(), n.value != i.value && (i.value != "" ? a("edit", [i.value, n.index]) : n.isFilled ? me(() => {
|
|
4106
4112
|
i.value = n.value;
|
|
4107
4113
|
}) : i.value = "Заполнить");
|
|
4108
4114
|
}
|
|
@@ -4112,7 +4118,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4112
4118
|
function A(g) {
|
|
4113
4119
|
g.target == document.getElementById("placeholder" + t + n.index) && (g.key === "Escape" && g.target.blur(), g.key == "Tab" && (g.target.blur(), document.getElementById("placeholder" + t + (n.index + 1)) && (g.preventDefault(), document.getElementById("placeholder" + t + (n.index + 1)).focus())));
|
|
4114
4120
|
}
|
|
4115
|
-
return
|
|
4121
|
+
return be(() => {
|
|
4116
4122
|
window.addEventListener("keydown", A);
|
|
4117
4123
|
}), sf(() => {
|
|
4118
4124
|
window.removeEventListener("keydown", A);
|
|
@@ -4144,7 +4150,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4144
4150
|
},
|
|
4145
4151
|
emits: ["fileSelected"],
|
|
4146
4152
|
setup(e, { emit: f }) {
|
|
4147
|
-
const t = e, n = h(
|
|
4153
|
+
const t = e, n = h(de("filebumpUrl")), a = h(null), i = h(), s = h(""), r = h(""), c = h(), d = f, A = () => {
|
|
4148
4154
|
i.value && r.value != "success" && i.value.click();
|
|
4149
4155
|
}, g = {
|
|
4150
4156
|
DOCUMENT: {
|
|
@@ -4256,7 +4262,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4256
4262
|
s == 2 && n.buttons.length > 3 && t("selectAllVariants");
|
|
4257
4263
|
};
|
|
4258
4264
|
return (s, r) => (l(), u("div", l0, [
|
|
4259
|
-
(l(!0), u(ee, null,
|
|
4265
|
+
(l(!0), u(ee, null, pe(e.buttons.slice(0, 3), (c, d) => (l(), u("div", {
|
|
4260
4266
|
key: d,
|
|
4261
4267
|
class: "quick-reply-buttons__preview-action",
|
|
4262
4268
|
onClick: (A) => i(d)
|
|
@@ -4295,7 +4301,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4295
4301
|
})
|
|
4296
4302
|
]),
|
|
4297
4303
|
o("div", m0, [
|
|
4298
|
-
(l(!0), u(ee, null,
|
|
4304
|
+
(l(!0), u(ee, null, pe(e.buttons, (s, r) => (l(), u("div", {
|
|
4299
4305
|
key: r,
|
|
4300
4306
|
class: "separated-quick-buttons__action"
|
|
4301
4307
|
}, [
|
|
@@ -4349,8 +4355,8 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4349
4355
|
},
|
|
4350
4356
|
emits: ["closeTemplateWindow", "sendWabaValues"],
|
|
4351
4357
|
setup(e, { emit: f }) {
|
|
4352
|
-
const t = e, n =
|
|
4353
|
-
a("closeTemplateWindow"),
|
|
4358
|
+
const t = e, n = de("chatAppId"), a = f, i = () => {
|
|
4359
|
+
a("closeTemplateWindow"), ve();
|
|
4354
4360
|
}, s = () => {
|
|
4355
4361
|
a("closeTemplateWindow");
|
|
4356
4362
|
const U = {
|
|
@@ -4360,7 +4366,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4360
4366
|
file: null,
|
|
4361
4367
|
buttons: null
|
|
4362
4368
|
};
|
|
4363
|
-
g.value ? (U.text =
|
|
4369
|
+
g.value ? (U.text = Ce.value, U.templateId = A.value.templateId, U.values = Se.value, U.file = g.value) : (U.text = Ce.value, U.templateId = A.value.templateId, U.values = Se.value), A.value.buttons && (U.buttons = A.value.buttons), a("sendWabaValues", U), ve();
|
|
4364
4370
|
}, r = (U) => {
|
|
4365
4371
|
g.value = U;
|
|
4366
4372
|
}, c = h(null), d = h(null), A = h(null), g = h(null), p = h(""), C = h(!1), y = () => {
|
|
@@ -4370,38 +4376,38 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4370
4376
|
x[te] = "";
|
|
4371
4377
|
}), g.value = null, t.wabaTemplates.forEach((te) => te.isSelected = !1), U.isSelected = !0, A.value = U, C.value = !1, H();
|
|
4372
4378
|
}, _ = () => {
|
|
4373
|
-
|
|
4374
|
-
}, k =
|
|
4379
|
+
R(), t.wabaTemplates.forEach((U) => U.isSelected = !1);
|
|
4380
|
+
}, k = Q(() => d.value ? t.wabaTemplates.filter((U) => U.groupId === d.value.groupId) : t.wabaTemplates), N = Q(() => {
|
|
4375
4381
|
const U = p.value.trim().toLowerCase();
|
|
4376
4382
|
return k.value.filter((te) => te.title.toLowerCase().includes(U) || te.template.toLowerCase().includes(U));
|
|
4377
|
-
}), x = Cn({}), w = h(null), I = h(), m = h(""), b = h(""), D = h(""), O = h(!1), S =
|
|
4378
|
-
O.value && (b.value == "grid" ?
|
|
4383
|
+
}), x = Cn({}), w = h(null), I = h(), m = h(""), b = h(""), D = h(""), O = h(!1), S = Q(() => !!(O.value && (D.value == "grid" && b.value == "none" || b.value == "grid" && m.value == "none"))), fe = Q(() => !!(O.value && (m.value == "grid" && b.value == "none" || b.value == "grid" && D.value == "none"))), P = () => {
|
|
4384
|
+
O.value && (b.value == "grid" ? K() : D.value == "grid" && R());
|
|
4379
4385
|
}, ae = () => {
|
|
4380
|
-
O.value && (b.value == "grid" ? H() : m.value == "grid" &&
|
|
4381
|
-
},
|
|
4386
|
+
O.value && (b.value == "grid" ? H() : m.value == "grid" && R());
|
|
4387
|
+
}, K = () => {
|
|
4382
4388
|
const U = document.getElementById("waba-template-selector-container-" + n);
|
|
4383
|
-
U.style.setProperty("--chotto-waba-template-first-col-display", "grid"), U.style.setProperty("--chotto-waba-template-second-col-display", "none"), console.log(U, window.getComputedStyle(U).getPropertyValue("--waba-template-first-col-display")),
|
|
4389
|
+
U.style.setProperty("--chotto-waba-template-first-col-display", "grid"), U.style.setProperty("--chotto-waba-template-second-col-display", "none"), console.log(U, window.getComputedStyle(U).getPropertyValue("--waba-template-first-col-display")), ie();
|
|
4384
4390
|
}, H = () => {
|
|
4385
4391
|
const U = document.getElementById("waba-template-selector-container-" + n);
|
|
4386
|
-
U.style.setProperty("--chotto-waba-template-third-col-display", "grid"), U.style.setProperty("--chotto-waba-template-second-col-display", "none"),
|
|
4387
|
-
},
|
|
4392
|
+
U.style.setProperty("--chotto-waba-template-third-col-display", "grid"), U.style.setProperty("--chotto-waba-template-second-col-display", "none"), ie();
|
|
4393
|
+
}, R = () => {
|
|
4388
4394
|
const U = document.getElementById("waba-template-selector-container-" + n);
|
|
4389
|
-
U.style.setProperty("--chotto-waba-template-second-col-display", "grid"), U.style.setProperty("--chotto-waba-template-first-col-display", "none"), U.style.setProperty("--chotto-waba-template-third-col-display", "none"),
|
|
4390
|
-
},
|
|
4395
|
+
U.style.setProperty("--chotto-waba-template-second-col-display", "grid"), U.style.setProperty("--chotto-waba-template-first-col-display", "none"), U.style.setProperty("--chotto-waba-template-third-col-display", "none"), ie();
|
|
4396
|
+
}, ie = () => {
|
|
4391
4397
|
const U = document.getElementById("waba-template-selector-container-" + n), te = window.getComputedStyle(U);
|
|
4392
4398
|
m.value = te.getPropertyValue("--chotto-waba-template-first-col-display"), b.value = te.getPropertyValue("--chotto-waba-template-second-col-display"), D.value = te.getPropertyValue("--chotto-waba-template-third-col-display");
|
|
4393
|
-
},
|
|
4399
|
+
}, Y = (U) => {
|
|
4394
4400
|
x[U[1]] = U[0];
|
|
4395
|
-
},
|
|
4401
|
+
}, J = Q(() => {
|
|
4396
4402
|
var Ne;
|
|
4397
4403
|
const U = (Ne = A.value) == null ? void 0 : Ne.template;
|
|
4398
4404
|
if (!U) return [];
|
|
4399
4405
|
const te = [...U.matchAll(/{{\d+}}/g)], X = [];
|
|
4400
|
-
let
|
|
4406
|
+
let Ae = 0;
|
|
4401
4407
|
return te.forEach((He) => {
|
|
4402
|
-
He.index >
|
|
4403
|
-
}),
|
|
4404
|
-
}),
|
|
4408
|
+
He.index > Ae && X.push(U.substring(Ae, He.index)), X.push({ index: parseInt(He[0].slice(2, -2)) }), Ae = He.index + He[0].length;
|
|
4409
|
+
}), Ae < U.length && X.push(U.substring(Ae)), X;
|
|
4410
|
+
}), re = Q(() => {
|
|
4405
4411
|
var te, X;
|
|
4406
4412
|
if (!A.value)
|
|
4407
4413
|
return !0;
|
|
@@ -4409,26 +4415,26 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4409
4415
|
return !1;
|
|
4410
4416
|
const U = Object.keys(x).length !== ((X = A.value) == null ? void 0 : X.template.match(/{{\d+}}/gi).length);
|
|
4411
4417
|
return A.value.type === "TEXT" ? U : A.value.type !== "TEXT" ? U || !g.value : !1;
|
|
4412
|
-
}),
|
|
4418
|
+
}), ve = () => {
|
|
4413
4419
|
Object.keys(x).forEach((U) => {
|
|
4414
4420
|
x[U] = "";
|
|
4415
4421
|
}), g.value = null, A.value = null, t.wabaTemplates.forEach((U) => U.isSelected = !1);
|
|
4416
|
-
},
|
|
4417
|
-
console.log(
|
|
4418
|
-
let U =
|
|
4422
|
+
}, Ce = Q(() => {
|
|
4423
|
+
console.log(J.value, A.value.buttons);
|
|
4424
|
+
let U = J.value.map((X) => typeof X == "string" ? X : x[X.index]).join(""), te = "";
|
|
4419
4425
|
return A.value.buttons && (te = A.value.buttons.map((X) => `
|
|
4420
4426
|
| [` + X.text + "]").join("")), U.concat(te);
|
|
4421
|
-
}), Se =
|
|
4427
|
+
}), Se = Q(() => {
|
|
4422
4428
|
const U = [];
|
|
4423
4429
|
for (const te in x)
|
|
4424
4430
|
x[te] !== "" && x[te] !== "Заполнить" && U.push(x[te]);
|
|
4425
4431
|
return U;
|
|
4426
|
-
}),
|
|
4432
|
+
}), De = new ResizeObserver((U) => {
|
|
4427
4433
|
const te = U[0].target.clientWidth;
|
|
4428
4434
|
te > 700 && (O.value = !1), te < 700 && (O.value = !0);
|
|
4429
4435
|
});
|
|
4430
|
-
return
|
|
4431
|
-
|
|
4436
|
+
return be(() => {
|
|
4437
|
+
ie(), T(I) && De.observe(T(I));
|
|
4432
4438
|
}), (U, te) => (l(), u("div", _0, [
|
|
4433
4439
|
o("div", {
|
|
4434
4440
|
id: "waba-template-selector-container-" + T(n),
|
|
@@ -4444,7 +4450,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4444
4450
|
S.value ? (l(), u("button", M0, [
|
|
4445
4451
|
o("span", {
|
|
4446
4452
|
class: "pi pi-arrow-left",
|
|
4447
|
-
onClick:
|
|
4453
|
+
onClick: P
|
|
4448
4454
|
})
|
|
4449
4455
|
])) : v("", !0),
|
|
4450
4456
|
fe.value ? (l(), u("button", w0, [
|
|
@@ -4464,8 +4470,8 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4464
4470
|
o("div", C0, [
|
|
4465
4471
|
o("div", I0, [
|
|
4466
4472
|
o("ul", k0, [
|
|
4467
|
-
(l(!0), u(ee, null,
|
|
4468
|
-
key:
|
|
4473
|
+
(l(!0), u(ee, null, pe(e.groupTemplates, (X, Ae) => (l(), u("li", {
|
|
4474
|
+
key: Ae,
|
|
4469
4475
|
class: j(["template-selector__item-group", { "template-selector__item-selected": d.value === X }]),
|
|
4470
4476
|
onClick: _
|
|
4471
4477
|
}, [
|
|
@@ -4476,8 +4482,8 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4476
4482
|
src: X.iconUrl,
|
|
4477
4483
|
alt: X.title
|
|
4478
4484
|
}, null, 8, T0)) : v("", !0),
|
|
4479
|
-
|
|
4480
|
-
id:
|
|
4485
|
+
Me(o("input", {
|
|
4486
|
+
id: Ae,
|
|
4481
4487
|
"onUpdate:modelValue": te[0] || (te[0] = (Ne) => d.value = Ne),
|
|
4482
4488
|
value: X,
|
|
4483
4489
|
class: "template-selector__input-group",
|
|
@@ -4492,7 +4498,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4492
4498
|
]),
|
|
4493
4499
|
o("div", N0, [
|
|
4494
4500
|
o("div", E0, [
|
|
4495
|
-
|
|
4501
|
+
Me(o("input", {
|
|
4496
4502
|
"onUpdate:modelValue": te[1] || (te[1] = (X) => p.value = X),
|
|
4497
4503
|
class: "template-selector__searching-input",
|
|
4498
4504
|
type: "text",
|
|
@@ -4503,8 +4509,8 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4503
4509
|
]),
|
|
4504
4510
|
o("div", j0, [
|
|
4505
4511
|
N.value.length !== 0 ? (l(), u("ul", S0, [
|
|
4506
|
-
(l(!0), u(ee, null,
|
|
4507
|
-
key:
|
|
4512
|
+
(l(!0), u(ee, null, pe(N.value, (X, Ae) => (l(), u("li", {
|
|
4513
|
+
key: Ae,
|
|
4508
4514
|
class: j(["template-selector__item-template", { "template-selector__item-selected": X.isSelected }]),
|
|
4509
4515
|
onClick: (Ne) => M(X)
|
|
4510
4516
|
}, [
|
|
@@ -4522,7 +4528,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4522
4528
|
ref: c,
|
|
4523
4529
|
class: "template-selector__preview-container"
|
|
4524
4530
|
}, [
|
|
4525
|
-
|
|
4531
|
+
J.value.length > 0 ? (l(), u("div", $0, [
|
|
4526
4532
|
o("div", R0, [
|
|
4527
4533
|
A.value.type != "TEXT" ? (l(), B(o0, {
|
|
4528
4534
|
key: 0,
|
|
@@ -4531,14 +4537,14 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4531
4537
|
onFileSelected: r
|
|
4532
4538
|
}, null, 8, ["type", "template-id"])) : v("", !0),
|
|
4533
4539
|
o("div", Q0, [
|
|
4534
|
-
(l(!0), u(ee, null,
|
|
4540
|
+
(l(!0), u(ee, null, pe(J.value, (X, Ae) => (l(), u(ee, { key: Ae }, [
|
|
4535
4541
|
typeof X == "string" ? (l(), u("span", F0, E(X), 1)) : typeof X == "object" ? (l(), B(t0, {
|
|
4536
4542
|
key: 1,
|
|
4537
4543
|
index: X.index,
|
|
4538
4544
|
value: x[X.index] || "Заполнить",
|
|
4539
4545
|
"is-filled": !!x[X.index],
|
|
4540
4546
|
onClick: (Ne) => w.value = X.index,
|
|
4541
|
-
onEdit:
|
|
4547
|
+
onEdit: Y
|
|
4542
4548
|
}, null, 8, ["index", "value", "is-filled", "onClick"])) : v("", !0)
|
|
4543
4549
|
], 64))), 128))
|
|
4544
4550
|
]),
|
|
@@ -4563,7 +4569,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4563
4569
|
], 512),
|
|
4564
4570
|
o("button", {
|
|
4565
4571
|
class: "template-selector__button-paste",
|
|
4566
|
-
disabled:
|
|
4572
|
+
disabled: re.value,
|
|
4567
4573
|
onClick: s
|
|
4568
4574
|
}, " Отправить ", 8, q0)
|
|
4569
4575
|
])
|
|
@@ -4606,7 +4612,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4606
4612
|
setup(e, { emit: f }) {
|
|
4607
4613
|
const t = e;
|
|
4608
4614
|
jf("filebumpUrl", t.filebumpUrl);
|
|
4609
|
-
const n =
|
|
4615
|
+
const n = de("chatAppId"), { getMessage: a } = qe(n), i = h(null), s = h(null), r = f, c = () => {
|
|
4610
4616
|
t.mode == "click" && t.state == "active" && (s.value.style.display == "none" ? s.value.style.display = "inherit" : s.value.style.display == "inherit" && (s.value.style.display = "none"));
|
|
4611
4617
|
}, d = () => {
|
|
4612
4618
|
t.mode == "hover" && t.state == "active" && (s.value.style.display = "inherit");
|
|
@@ -4615,7 +4621,7 @@ const Ju = /* @__PURE__ */ z(Wu, [["render", Ku]]), Gu = { class: "" }, Xu = {
|
|
|
4615
4621
|
}, g = () => {
|
|
4616
4622
|
s.value.style.display = "none";
|
|
4617
4623
|
};
|
|
4618
|
-
|
|
4624
|
+
be(() => {
|
|
4619
4625
|
s.value.style.display = "none";
|
|
4620
4626
|
});
|
|
4621
4627
|
const p = (C) => {
|
|
@@ -17135,8 +17141,8 @@ function gn(e) {
|
|
|
17135
17141
|
position: r
|
|
17136
17142
|
}, d && Kc);
|
|
17137
17143
|
if (c) {
|
|
17138
|
-
var
|
|
17139
|
-
return Object.assign({}, fe, (
|
|
17144
|
+
var P;
|
|
17145
|
+
return Object.assign({}, fe, (P = {}, P[w] = N ? "0" : "", P[x] = k ? "0" : "", P.transform = (I.devicePixelRatio || 1) <= 1 ? "translate(" + y + "px, " + _ + "px)" : "translate3d(" + y + "px, " + _ + "px, 0)", P));
|
|
17140
17146
|
}
|
|
17141
17147
|
return Object.assign({}, fe, (f = {}, f[w] = N ? _ + "px" : "", f[x] = k ? y + "px" : "", f.transform = "", f));
|
|
17142
17148
|
}
|
|
@@ -17341,8 +17347,8 @@ function o1(e, f) {
|
|
|
17341
17347
|
if (A === qf && O) {
|
|
17342
17348
|
var S = O[a];
|
|
17343
17349
|
Object.keys(D).forEach(function(fe) {
|
|
17344
|
-
var
|
|
17345
|
-
D[fe] += S[ae] *
|
|
17350
|
+
var P = [Ye, Pe].indexOf(fe) >= 0 ? 1 : -1, ae = [Le, Pe].indexOf(fe) >= 0 ? "y" : "x";
|
|
17351
|
+
D[fe] += S[ae] * P;
|
|
17346
17352
|
});
|
|
17347
17353
|
}
|
|
17348
17354
|
return D;
|
|
@@ -17376,8 +17382,8 @@ function c2(e) {
|
|
|
17376
17382
|
function r2(e) {
|
|
17377
17383
|
var f = e.state, t = e.options, n = e.name;
|
|
17378
17384
|
if (!f.modifiersData[n]._skip) {
|
|
17379
|
-
for (var a = t.mainAxis, i = a === void 0 ? !0 : a, s = t.altAxis, r = s === void 0 ? !0 : s, c = t.fallbackPlacements, d = t.padding, A = t.boundary, g = t.rootBoundary, p = t.altBoundary, C = t.flipVariations, y = C === void 0 ? !0 : C, M = t.allowedAutoPlacements, _ = f.options.placement, k = tf(_), N = k === _, x = c || (N || !y ? [w1(_)] : c2(_)), w = [_].concat(x).reduce(function(
|
|
17380
|
-
return
|
|
17385
|
+
for (var a = t.mainAxis, i = a === void 0 ? !0 : a, s = t.altAxis, r = s === void 0 ? !0 : s, c = t.fallbackPlacements, d = t.padding, A = t.boundary, g = t.rootBoundary, p = t.altBoundary, C = t.flipVariations, y = C === void 0 ? !0 : C, M = t.allowedAutoPlacements, _ = f.options.placement, k = tf(_), N = k === _, x = c || (N || !y ? [w1(_)] : c2(_)), w = [_].concat(x).reduce(function(De, U) {
|
|
17386
|
+
return De.concat(tf(U) === Rt ? u2(f, {
|
|
17381
17387
|
placement: U,
|
|
17382
17388
|
boundary: A,
|
|
17383
17389
|
rootBoundary: g,
|
|
@@ -17386,36 +17392,36 @@ function r2(e) {
|
|
|
17386
17392
|
allowedAutoPlacements: M
|
|
17387
17393
|
}) : U);
|
|
17388
17394
|
}, []), I = f.rects.reference, m = f.rects.popper, b = /* @__PURE__ */ new Map(), D = !0, O = w[0], S = 0; S < w.length; S++) {
|
|
17389
|
-
var fe = w[S],
|
|
17395
|
+
var fe = w[S], P = tf(fe), ae = Bf(fe) === Vf, K = [Le, Pe].indexOf(P) >= 0, H = K ? "width" : "height", R = o1(f, {
|
|
17390
17396
|
placement: fe,
|
|
17391
17397
|
boundary: A,
|
|
17392
17398
|
rootBoundary: g,
|
|
17393
17399
|
altBoundary: p,
|
|
17394
17400
|
padding: d
|
|
17395
|
-
}),
|
|
17396
|
-
I[H] > m[H] && (
|
|
17397
|
-
var
|
|
17398
|
-
if (i &&
|
|
17399
|
-
return
|
|
17401
|
+
}), ie = K ? ae ? Ye : Oe : ae ? Pe : Le;
|
|
17402
|
+
I[H] > m[H] && (ie = w1(ie));
|
|
17403
|
+
var Y = w1(ie), J = [];
|
|
17404
|
+
if (i && J.push(R[P] <= 0), r && J.push(R[ie] <= 0, R[Y] <= 0), J.every(function(De) {
|
|
17405
|
+
return De;
|
|
17400
17406
|
})) {
|
|
17401
17407
|
O = fe, D = !1;
|
|
17402
17408
|
break;
|
|
17403
17409
|
}
|
|
17404
|
-
b.set(fe,
|
|
17410
|
+
b.set(fe, J);
|
|
17405
17411
|
}
|
|
17406
17412
|
if (D)
|
|
17407
|
-
for (var
|
|
17413
|
+
for (var re = y ? 3 : 1, ve = function(U) {
|
|
17408
17414
|
var te = w.find(function(X) {
|
|
17409
|
-
var
|
|
17410
|
-
if (
|
|
17411
|
-
return
|
|
17415
|
+
var Ae = b.get(X);
|
|
17416
|
+
if (Ae)
|
|
17417
|
+
return Ae.slice(0, U).every(function(Ne) {
|
|
17412
17418
|
return Ne;
|
|
17413
17419
|
});
|
|
17414
17420
|
});
|
|
17415
17421
|
if (te)
|
|
17416
17422
|
return O = te, "break";
|
|
17417
|
-
},
|
|
17418
|
-
var Se =
|
|
17423
|
+
}, Ce = re; Ce > 0; Ce--) {
|
|
17424
|
+
var Se = ve(Ce);
|
|
17419
17425
|
if (Se === "break")
|
|
17420
17426
|
break;
|
|
17421
17427
|
}
|
|
@@ -17528,23 +17534,23 @@ function y2(e) {
|
|
|
17528
17534
|
} : Object.assign({
|
|
17529
17535
|
mainAxis: 0,
|
|
17530
17536
|
altAxis: 0
|
|
17531
|
-
}, O), fe = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null,
|
|
17537
|
+
}, O), fe = f.modifiersData.offset ? f.modifiersData.offset[f.placement] : null, P = {
|
|
17532
17538
|
x: 0,
|
|
17533
17539
|
y: 0
|
|
17534
17540
|
};
|
|
17535
17541
|
if (m) {
|
|
17536
17542
|
if (i) {
|
|
17537
|
-
var ae,
|
|
17543
|
+
var ae, K = w === "y" ? Le : Oe, H = w === "y" ? Pe : Ye, R = w === "y" ? "height" : "width", ie = m[w], Y = ie + _[K], J = ie - _[H], re = C ? -D[R] / 2 : 0, ve = N === Vf ? b[R] : D[R], Ce = N === Vf ? -D[R] : -b[R], Se = f.elements.arrow, De = C && Se ? Qt(Se) : {
|
|
17538
17544
|
width: 0,
|
|
17539
17545
|
height: 0
|
|
17540
|
-
}, U = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Wn(), te = U[
|
|
17541
|
-
m[w] =
|
|
17546
|
+
}, U = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Wn(), te = U[K], X = U[H], Ae = f1(0, b[R], De[R]), Ne = x ? b[R] / 2 - re - Ae - te - S.mainAxis : ve - Ae - te - S.mainAxis, He = x ? -b[R] / 2 + re + Ae + X + S.mainAxis : Ce + Ae + X + S.mainAxis, cf = f.elements.arrow && r1(f.elements.arrow), xf = cf ? w === "y" ? cf.clientTop || 0 : cf.clientLeft || 0 : 0, Mf = (ae = fe == null ? void 0 : fe[w]) != null ? ae : 0, Tf = ie + Ne - Mf - xf, Df = ie + He - Mf, F = f1(C ? X1(Y, Tf) : Y, ie, C ? kf(J, Df) : J);
|
|
17547
|
+
m[w] = F, P[w] = F - ie;
|
|
17542
17548
|
}
|
|
17543
17549
|
if (r) {
|
|
17544
|
-
var
|
|
17545
|
-
m[I] = V,
|
|
17550
|
+
var W, Z = w === "x" ? Le : Oe, oe = w === "x" ? Pe : Ye, le = m[I], ke = I === "y" ? "height" : "width", we = le + _[Z], We = le - _[oe], rf = [Le, Oe].indexOf(k) !== -1, Ff = (W = fe == null ? void 0 : fe[I]) != null ? W : 0, wf = rf ? we : le - b[ke] - D[ke] - Ff + S.altAxis, Xe = rf ? le + b[ke] + D[ke] - Ff - S.altAxis : We, V = C && rf ? Yc(wf, le, Xe) : f1(C ? wf : we, le, C ? Xe : We);
|
|
17551
|
+
m[I] = V, P[I] = V - le;
|
|
17546
17552
|
}
|
|
17547
|
-
f.modifiersData[n] =
|
|
17553
|
+
f.modifiersData[n] = P;
|
|
17548
17554
|
}
|
|
17549
17555
|
}
|
|
17550
17556
|
var M2 = {
|
|
@@ -17788,12 +17794,12 @@ const L2 = ne({
|
|
|
17788
17794
|
select: (e) => !0
|
|
17789
17795
|
},
|
|
17790
17796
|
setup() {
|
|
17791
|
-
const { state: e, updateEmoji: f, updateSelect: t } =
|
|
17797
|
+
const { state: e, updateEmoji: f, updateSelect: t } = de("store"), n = h(null), a = Q(() => V2(
|
|
17792
17798
|
e.emojis,
|
|
17793
17799
|
e.search,
|
|
17794
17800
|
e.skinTone,
|
|
17795
17801
|
e.options.disabledGroups
|
|
17796
|
-
)), i = aa(), s =
|
|
17802
|
+
)), i = aa(), s = Q(() => !e.options.hideGroupNames), r = Q(() => !e.options.disableStickyGroupNames), c = In(e.options.groupNames), d = e.orderedGroupKeys;
|
|
17797
17803
|
e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((y) => {
|
|
17798
17804
|
e.options.groupNames[y] ? c[y] = e.options.groupNames[y] : c[y] = fa(y);
|
|
17799
17805
|
});
|
|
@@ -17849,19 +17855,19 @@ function F2(e, f, t, n, a, i) {
|
|
|
17849
17855
|
ref: "bodyInner",
|
|
17850
17856
|
class: j([e.platform, "v3-body-inner"])
|
|
17851
17857
|
}, [
|
|
17852
|
-
e.orderedKeys.length ? (l(!0), u(ee, { key: 0 },
|
|
17858
|
+
e.orderedKeys.length ? (l(!0), u(ee, { key: 0 }, pe(e.orderedKeys, (s) => (l(), u("div", {
|
|
17853
17859
|
id: s,
|
|
17854
17860
|
key: s,
|
|
17855
17861
|
class: "v3-group"
|
|
17856
17862
|
}, [
|
|
17857
|
-
e.hasGroupNames ?
|
|
17863
|
+
e.hasGroupNames ? Me((l(), u("h5", {
|
|
17858
17864
|
key: 0,
|
|
17859
17865
|
class: j(e.isSticky ? "v3-sticky" : "")
|
|
17860
17866
|
}, E(e.groupNames[s]), 3)), [
|
|
17861
17867
|
[Ke, e.emojis[s]]
|
|
17862
17868
|
]) : v("", !0),
|
|
17863
|
-
|
|
17864
|
-
(l(!0), u(ee, null,
|
|
17869
|
+
Me(o("div", B2, [
|
|
17870
|
+
(l(!0), u(ee, null, pe(e.emojis[s], (r) => (l(), u("button", {
|
|
17865
17871
|
key: r.r,
|
|
17866
17872
|
type: "button",
|
|
17867
17873
|
onMouseenter: (c) => e.handleMouseEnter(r),
|
|
@@ -17885,9 +17891,9 @@ var P2 = /* @__PURE__ */ d1(L2, [["render", F2]]), Y2 = "data:image/svg+xml;base
|
|
|
17885
17891
|
const X2 = ne({
|
|
17886
17892
|
name: "Header",
|
|
17887
17893
|
setup(e) {
|
|
17888
|
-
const { state: f, updateSearch: t, updateActiveGroup: n } =
|
|
17894
|
+
const { state: f, updateSearch: t, updateActiveGroup: n } = de("store"), a = Q(() => !f.options.hideSearch), i = Q(() => !f.options.hideGroupIcons), s = JSON.parse(JSON.stringify(f.orderedGroupKeys)), r = Q(
|
|
17889
17895
|
() => f.options.staticTexts.placeholder || ""
|
|
17890
|
-
), c =
|
|
17896
|
+
), c = Q({
|
|
17891
17897
|
get: () => f.search,
|
|
17892
17898
|
set: (g) => t(g)
|
|
17893
17899
|
}), d = [
|
|
@@ -17938,7 +17944,7 @@ const X2 = ne({
|
|
|
17938
17944
|
function lr(e, f, t, n, a, i) {
|
|
17939
17945
|
return e.hasGroupIcons || e.hasSearch ? (l(), u("div", er, [
|
|
17940
17946
|
e.hasGroupIcons ? (l(), u("div", fr, [
|
|
17941
|
-
(l(!0), u(ee, null,
|
|
17947
|
+
(l(!0), u(ee, null, pe(e.orderedGroups, (s) => (l(), u("button", {
|
|
17942
17948
|
key: s.key,
|
|
17943
17949
|
type: "button",
|
|
17944
17950
|
class: j(["v3-group", {
|
|
@@ -17959,7 +17965,7 @@ function lr(e, f, t, n, a, i) {
|
|
|
17959
17965
|
])) : v("", !0),
|
|
17960
17966
|
e.hasGroupIcons && e.hasSearch ? (l(), u("div", sr)) : v("", !0),
|
|
17961
17967
|
e.hasSearch ? (l(), u("div", ir, [
|
|
17962
|
-
|
|
17968
|
+
Me(o("input", {
|
|
17963
17969
|
"onUpdate:modelValue": f[0] || (f[0] = (s) => e.searchValue = s),
|
|
17964
17970
|
type: "text",
|
|
17965
17971
|
placeholder: e.placeholder
|
|
@@ -17973,9 +17979,9 @@ var ur = /* @__PURE__ */ d1(X2, [["render", lr]]);
|
|
|
17973
17979
|
const cr = ne({
|
|
17974
17980
|
name: "Header",
|
|
17975
17981
|
setup() {
|
|
17976
|
-
const { state: e, updateSkinTone: f } =
|
|
17982
|
+
const { state: e, updateSkinTone: f } = de("store"), t = h(!1), n = h(!1), a = Q(() => e.skinTone), i = Q(
|
|
17977
17983
|
() => e.options.staticTexts.skinTone || "Skin tone"
|
|
17978
|
-
), s =
|
|
17984
|
+
), s = Q(() => !e.options.disableSkinTones), r = ea() ? "is-mac" : "", c = Q(() => ({
|
|
17979
17985
|
...e.emoji,
|
|
17980
17986
|
src: Un + "/" + e.emoji[s1] + ".png"
|
|
17981
17987
|
}));
|
|
@@ -18044,7 +18050,7 @@ function hr(e, f, t, n, a, i) {
|
|
|
18044
18050
|
o("div", {
|
|
18045
18051
|
class: j([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
|
|
18046
18052
|
}, [
|
|
18047
|
-
(l(!0), u(ee, null,
|
|
18053
|
+
(l(!0), u(ee, null, pe(e.SKIN_TONES, (s) => (l(), u("button", {
|
|
18048
18054
|
key: s,
|
|
18049
18055
|
type: "button",
|
|
18050
18056
|
class: j(["v3-skin-tone-" + s, "v3-skin-tone"]),
|
|
@@ -18095,7 +18101,7 @@ const vr = ne({
|
|
|
18095
18101
|
setup(e, { emit: f }) {
|
|
18096
18102
|
const t = h(), n = h(), a = h(), i = h(!1), s = h(e.text), r = e.type === "input" || e.type === "textarea";
|
|
18097
18103
|
let c = -1;
|
|
18098
|
-
const { state: d } =
|
|
18104
|
+
const { state: d } = de("store"), A = Q(() => d.options.colorTheme);
|
|
18099
18105
|
function g(_) {
|
|
18100
18106
|
if (r) {
|
|
18101
18107
|
const k = d.options.mode;
|
|
@@ -18132,7 +18138,7 @@ const vr = ne({
|
|
|
18132
18138
|
function M(_) {
|
|
18133
18139
|
s.value = _.target.value || "", f("update:text", s.value);
|
|
18134
18140
|
}
|
|
18135
|
-
return
|
|
18141
|
+
return be(() => {
|
|
18136
18142
|
y();
|
|
18137
18143
|
}), sa(() => {
|
|
18138
18144
|
document.body.removeEventListener("click", C);
|
|
@@ -27000,7 +27006,7 @@ const Sr = /* @__PURE__ */ z(Nr, [["render", jr]]), Vr = {
|
|
|
27000
27006
|
}
|
|
27001
27007
|
},
|
|
27002
27008
|
setup(e) {
|
|
27003
|
-
const f = e, t = h(null), n = h("light"), a = h(null), i = h(!1), s =
|
|
27009
|
+
const f = e, t = h(null), n = h("light"), a = h(null), i = h(!1), s = de("chatAppId"), { setMessageText: r, getMessage: c } = qe(s), d = () => document.getElementById(s).attributes["data-theme"].nodeValue.indexOf("dark") != -1 ? "dark" : "light", A = (y) => {
|
|
27004
27010
|
r(c().text + y.i);
|
|
27005
27011
|
}, g = () => {
|
|
27006
27012
|
f.state === "active" && (i.value = !i.value, i.value && (n.value = d()));
|
|
@@ -27009,7 +27015,7 @@ const Sr = /* @__PURE__ */ z(Nr, [["render", jr]]), Vr = {
|
|
|
27009
27015
|
}, C = (y) => {
|
|
27010
27016
|
i.value && !a.value.contains(y.target) && !t.value.contains(y.target) && p();
|
|
27011
27017
|
};
|
|
27012
|
-
return
|
|
27018
|
+
return be(() => {
|
|
27013
27019
|
t.value.style.display = "none", document.addEventListener("click", C);
|
|
27014
27020
|
}), sf(() => {
|
|
27015
27021
|
document.removeEventListener("click", C);
|
|
@@ -27025,9 +27031,9 @@ const Sr = /* @__PURE__ */ z(Nr, [["render", jr]]), Vr = {
|
|
|
27025
27031
|
q(Sr)
|
|
27026
27032
|
])
|
|
27027
27033
|
], 2)),
|
|
27028
|
-
q(
|
|
27034
|
+
q(he, null, {
|
|
27029
27035
|
default: G(() => [
|
|
27030
|
-
|
|
27036
|
+
Me(o("div", {
|
|
27031
27037
|
ref_key: "emoji",
|
|
27032
27038
|
ref: t,
|
|
27033
27039
|
class: "emoji"
|
|
@@ -27079,7 +27085,7 @@ const Rr = { class: "feed-search__container" }, Qr = { style: { "line-height": "
|
|
|
27079
27085
|
},
|
|
27080
27086
|
emits: ["search", "cancel", "switch"],
|
|
27081
27087
|
setup(e, { emit: f }) {
|
|
27082
|
-
const t =
|
|
27088
|
+
const t = de("chatAppId"), { getModel: n } = Ur(t), a = f, i = e, s = h(), r = $r("", 500), c = Q(() => i.isFeedLocation ? "40px" : (i.isFeedLocation, "20px"));
|
|
27083
27089
|
ce(
|
|
27084
27090
|
() => [n().text, r.value],
|
|
27085
27091
|
() => {
|
|
@@ -27090,14 +27096,14 @@ const Rr = { class: "feed-search__container" }, Qr = { style: { "line-height": "
|
|
|
27090
27096
|
const A = T(s);
|
|
27091
27097
|
A && (A.value = ""), n().text = "", a("cancel");
|
|
27092
27098
|
};
|
|
27093
|
-
return
|
|
27099
|
+
return be(() => {
|
|
27094
27100
|
const A = T(s);
|
|
27095
27101
|
A == null || A.focus();
|
|
27096
|
-
}), (A, g) => (l(), B(
|
|
27102
|
+
}), (A, g) => (l(), B(he, null, {
|
|
27097
27103
|
default: G(() => [
|
|
27098
27104
|
o("div", Rr, [
|
|
27099
27105
|
o("span", Qr, E(T(Te)("component.FeedSearch.SearchLabel")), 1),
|
|
27100
|
-
|
|
27106
|
+
Me(o("input", {
|
|
27101
27107
|
ref_key: "refInput",
|
|
27102
27108
|
ref: s,
|
|
27103
27109
|
"onUpdate:modelValue": g[0] || (g[0] = (p) => T(n)().text = p),
|
|
@@ -27109,7 +27115,7 @@ const Rr = { class: "feed-search__container" }, Qr = { style: { "line-height": "
|
|
|
27109
27115
|
]),
|
|
27110
27116
|
o("i", {
|
|
27111
27117
|
class: "pi pi-times",
|
|
27112
|
-
style:
|
|
27118
|
+
style: _e({ right: c.value }),
|
|
27113
27119
|
onClick: d
|
|
27114
27120
|
}, null, 4),
|
|
27115
27121
|
e.isFeedLocation ? (l(), u("span", {
|
|
@@ -27139,7 +27145,7 @@ const Rr = { class: "feed-search__container" }, Qr = { style: { "line-height": "
|
|
|
27139
27145
|
}
|
|
27140
27146
|
},
|
|
27141
27147
|
setup(e) {
|
|
27142
|
-
const f = e, t =
|
|
27148
|
+
const f = e, t = Q(() => {
|
|
27143
27149
|
const n = {
|
|
27144
27150
|
"message.file": "pi pi-file",
|
|
27145
27151
|
"message.audio": "pi pi-volume-up",
|
|
@@ -27204,7 +27210,7 @@ const Rr = { class: "feed-search__container" }, Qr = { style: { "line-height": "
|
|
|
27204
27210
|
},
|
|
27205
27211
|
emits: ["clickedSearch", "loadMore"],
|
|
27206
27212
|
setup(e, { emit: f }) {
|
|
27207
|
-
const t = f, n = e, a = h(), i = h(null), s =
|
|
27213
|
+
const t = f, n = e, a = h(), i = h(null), s = Q(() => n.notFound ? Te("component.FeedFoundObjects.notFound") : n.notFound ? "" : Te("component.FeedFoundObjects.notSearched")), r = (d) => {
|
|
27208
27214
|
d.messageId && (t("clickedSearch", d.messageId), i.value = d);
|
|
27209
27215
|
}, c = () => {
|
|
27210
27216
|
const d = T(a);
|
|
@@ -27219,7 +27225,7 @@ const Rr = { class: "feed-search__container" }, Qr = { style: { "line-height": "
|
|
|
27219
27225
|
class: "feed-found-objects__items",
|
|
27220
27226
|
onScroll: c
|
|
27221
27227
|
}, [
|
|
27222
|
-
(l(!0), u(ee, null,
|
|
27228
|
+
(l(!0), u(ee, null, pe(e.objects, (g) => (l(), u("div", {
|
|
27223
27229
|
key: g.messageId,
|
|
27224
27230
|
onClick: (p) => r(g)
|
|
27225
27231
|
}, [
|
|
@@ -27249,7 +27255,7 @@ const Rr = { class: "feed-search__container" }, Qr = { style: { "line-height": "
|
|
|
27249
27255
|
}
|
|
27250
27256
|
},
|
|
27251
27257
|
setup(e) {
|
|
27252
|
-
const f =
|
|
27258
|
+
const f = de("chatAppId"), { getMessage: t, setMessageFile: n, resetMessageFile: a, setRecordingMessage: i } = qe(f), s = h(), r = h(0), c = h(0), d = h(0), A = h(0), g = Q(() => {
|
|
27253
27259
|
let D = A.value < 10 ? "0" + A.value : A.value, O = d.value < 10 ? "0" + d.value : d.value, S = c.value < 10 ? "0" + c.value : c.value, fe = r.value < 10 ? "00" + r.value : r.value < 100 ? "0" + r.value : r.value;
|
|
27254
27260
|
return D + ":" + O + ":" + S + ":" + fe;
|
|
27255
27261
|
}), p = h(""), C = h(!1), y = h(), M = h([]), _ = h(), k = h(), N = e, x = async () => {
|
|
@@ -27396,16 +27402,16 @@ const rd = ["data-theme"], dd = {
|
|
|
27396
27402
|
const t = f, n = (a) => {
|
|
27397
27403
|
a.target.classList.contains("modal-backdrop") && t("close");
|
|
27398
27404
|
};
|
|
27399
|
-
return (a, i) => (l(), B(
|
|
27405
|
+
return (a, i) => (l(), B(he, { name: "modal-fade" }, {
|
|
27400
27406
|
default: G(() => [
|
|
27401
|
-
|
|
27407
|
+
Me(o("div", {
|
|
27402
27408
|
class: "modal-backdrop",
|
|
27403
27409
|
"data-theme": e.theme,
|
|
27404
27410
|
onClick: n
|
|
27405
27411
|
}, [
|
|
27406
27412
|
o("div", dd, [
|
|
27407
27413
|
o("div", Ad, [
|
|
27408
|
-
|
|
27414
|
+
ge(a.$slots, "default", {}, void 0, !0)
|
|
27409
27415
|
]),
|
|
27410
27416
|
o("div", gd, [
|
|
27411
27417
|
o("button", {
|
|
@@ -27432,7 +27438,7 @@ const rd = ["data-theme"], dd = {
|
|
|
27432
27438
|
}, Ht = /* @__PURE__ */ z(md, [["__scopeId", "data-v-4a9f3ae8"]]), W6 = async (e, f, t) => {
|
|
27433
27439
|
const n = await A1({
|
|
27434
27440
|
//в component должен быть встроен emit change(key: value)
|
|
27435
|
-
component: import("./SelectUser2-
|
|
27441
|
+
component: import("./SelectUser2-C_JRsq7t.js"),
|
|
27436
27442
|
attrs: {
|
|
27437
27443
|
title: e,
|
|
27438
27444
|
users: f
|
|
@@ -27485,15 +27491,15 @@ const rd = ["data-theme"], dd = {
|
|
|
27485
27491
|
const t = f, n = (a) => {
|
|
27486
27492
|
a.target.classList.contains("modal-backdrop") && t("close");
|
|
27487
27493
|
};
|
|
27488
|
-
return (a, i) => (l(), B(
|
|
27494
|
+
return (a, i) => (l(), B(he, { name: "modal-fade" }, {
|
|
27489
27495
|
default: G(() => [
|
|
27490
|
-
|
|
27496
|
+
Me(o("div", {
|
|
27491
27497
|
"data-theme": e.theme,
|
|
27492
27498
|
class: "modal-backdrop",
|
|
27493
27499
|
onClick: n
|
|
27494
27500
|
}, [
|
|
27495
27501
|
o("div", hd, [
|
|
27496
|
-
|
|
27502
|
+
ge(a.$slots, "default", {}, void 0, !0)
|
|
27497
27503
|
])
|
|
27498
27504
|
], 8, pd), [
|
|
27499
27505
|
[Ke, !0]
|
|
@@ -27504,7 +27510,7 @@ const rd = ["data-theme"], dd = {
|
|
|
27504
27510
|
}
|
|
27505
27511
|
}, ta = /* @__PURE__ */ z(_d, [["__scopeId", "data-v-fcb0f158"]]), J6 = async (e, f, t, n, a, i) => await A1({
|
|
27506
27512
|
//в component должен быть встроен emit change(key: value)
|
|
27507
|
-
component: import("./CreateDialog-
|
|
27513
|
+
component: import("./CreateDialog-CRt5uona.js"),
|
|
27508
27514
|
attrs: {
|
|
27509
27515
|
title: e,
|
|
27510
27516
|
name: f,
|
|
@@ -27518,7 +27524,7 @@ const rd = ["data-theme"], dd = {
|
|
|
27518
27524
|
}
|
|
27519
27525
|
}), vd = async (e) => await A1({
|
|
27520
27526
|
//в component должен быть встроен emit change(key: value)
|
|
27521
|
-
component: import("./ModalVideoRecorder-
|
|
27527
|
+
component: import("./ModalVideoRecorder-Cd65aqOP.js"),
|
|
27522
27528
|
attrs: {},
|
|
27523
27529
|
Modal: ta,
|
|
27524
27530
|
modalAttrs: {
|
|
@@ -27543,7 +27549,7 @@ const rd = ["data-theme"], dd = {
|
|
|
27543
27549
|
}
|
|
27544
27550
|
},
|
|
27545
27551
|
setup(e) {
|
|
27546
|
-
const f =
|
|
27552
|
+
const f = de("chatAppId"), { getMessage: t, setMessageFile: n, setRecordingMessage: a, resetMessageFile: i } = qe(f), { getTheme: s } = Ue(f), r = h(""), c = h(), d = e, A = async () => {
|
|
27547
27553
|
if (!t().file && d.state == "active") {
|
|
27548
27554
|
const p = s().theme ? s().theme : "";
|
|
27549
27555
|
await vd(p).then(async (C) => {
|
|
@@ -27623,7 +27629,7 @@ const rd = ["data-theme"], dd = {
|
|
|
27623
27629
|
},
|
|
27624
27630
|
emits: ["send"],
|
|
27625
27631
|
setup(e, { emit: f }) {
|
|
27626
|
-
const t = e, n = f, a =
|
|
27632
|
+
const t = e, n = f, a = de("chatAppId"), { getMessage: i } = qe(a), s = wn("refBCM"), r = (c) => {
|
|
27627
27633
|
console.log(c);
|
|
27628
27634
|
const d = {
|
|
27629
27635
|
type: "message.command",
|
|
@@ -27637,7 +27643,7 @@ const rd = ["data-theme"], dd = {
|
|
|
27637
27643
|
var c, d;
|
|
27638
27644
|
t.commands && (i().text.startsWith("/") ? (c = s.value) == null || c.updatePosition() : (d = s.value) == null || d.hideMenu());
|
|
27639
27645
|
}
|
|
27640
|
-
), (c, d) => (l(), B(
|
|
27646
|
+
), (c, d) => (l(), B(he, null, {
|
|
27641
27647
|
default: G(() => [
|
|
27642
27648
|
e.commands ? (l(), B(nt, {
|
|
27643
27649
|
key: 0,
|
|
@@ -27668,13 +27674,13 @@ const rd = ["data-theme"], dd = {
|
|
|
27668
27674
|
t("action");
|
|
27669
27675
|
};
|
|
27670
27676
|
return (a, i) => (l(), u("div", Cd, [
|
|
27671
|
-
|
|
27672
|
-
|
|
27677
|
+
ge(a.$slots, "title", {}, void 0, !0),
|
|
27678
|
+
ge(a.$slots, "text", {}, void 0, !0),
|
|
27673
27679
|
o("div", {
|
|
27674
27680
|
class: "splash__img",
|
|
27675
27681
|
onClick: n
|
|
27676
27682
|
}, [
|
|
27677
|
-
|
|
27683
|
+
ge(a.$slots, "picture", {}, void 0, !0)
|
|
27678
27684
|
])
|
|
27679
27685
|
]));
|
|
27680
27686
|
}
|
|
@@ -27750,127 +27756,127 @@ const rd = ["data-theme"], dd = {
|
|
|
27750
27756
|
telegram: xs,
|
|
27751
27757
|
max: Es,
|
|
27752
27758
|
sms: Ls
|
|
27753
|
-
}, b =
|
|
27759
|
+
}, b = Q(
|
|
27754
27760
|
() => w.map((V) => ({
|
|
27755
27761
|
type: V,
|
|
27756
27762
|
component: I[V]
|
|
27757
27763
|
}))
|
|
27758
27764
|
), D = h(
|
|
27759
27765
|
Object.fromEntries(w.map((V) => [V, []]))
|
|
27760
|
-
), O =
|
|
27766
|
+
), O = Q(
|
|
27761
27767
|
() => s.value ? U(s.value) : null
|
|
27762
|
-
), S =
|
|
27768
|
+
), S = Q(
|
|
27763
27769
|
() => {
|
|
27764
27770
|
var V;
|
|
27765
27771
|
return s.value !== "phone" && O.value && ((V = t.recentAttributeChannels[s.value]) == null ? void 0 : V.channelId);
|
|
27766
27772
|
}
|
|
27767
|
-
), fe =
|
|
27768
|
-
() => s.value ?
|
|
27769
|
-
),
|
|
27770
|
-
() => d.value && A.value && fe.value.length > 0 && s.value !== "phone" &&
|
|
27773
|
+
), fe = Q(
|
|
27774
|
+
() => s.value ? De(s.value) : []
|
|
27775
|
+
), P = Q(
|
|
27776
|
+
() => d.value && A.value && fe.value.length > 0 && s.value !== "phone" && ie(s.value)
|
|
27771
27777
|
), ae = {
|
|
27772
27778
|
phone: "Позвонить",
|
|
27773
27779
|
whatsapp: "Выберите контакт и канал для отправки сообщения",
|
|
27774
27780
|
telegram: "Выберите контакт и канал для отправки сообщения",
|
|
27775
27781
|
max: "Выберите контакт и канал для отправки сообщения",
|
|
27776
27782
|
sms: "Выберите контакт и канал для отправки сообщения"
|
|
27777
|
-
},
|
|
27778
|
-
var
|
|
27779
|
-
return ((
|
|
27783
|
+
}, K = (V) => {
|
|
27784
|
+
var $;
|
|
27785
|
+
return (($ = t.channelTooltips) == null ? void 0 : $[V]) ?? ae[V] ?? "";
|
|
27780
27786
|
}, H = (V) => {
|
|
27781
27787
|
if (!V) return null;
|
|
27782
|
-
const [
|
|
27783
|
-
return
|
|
27784
|
-
},
|
|
27788
|
+
const [$] = V.split(".");
|
|
27789
|
+
return $.includes("waba") ? "whatsapp" : $.includes("telegrambot") ? "telegram" : $;
|
|
27790
|
+
}, R = (V) => {
|
|
27785
27791
|
var Cf;
|
|
27786
27792
|
if (!V || !t.messages) return !0;
|
|
27787
|
-
const
|
|
27788
|
-
return
|
|
27789
|
-
(
|
|
27793
|
+
const $ = (Cf = t.selectedChat) == null ? void 0 : Cf.chatId;
|
|
27794
|
+
return $ ? !t.messages.filter(
|
|
27795
|
+
(se) => {
|
|
27790
27796
|
var Ee;
|
|
27791
|
-
return
|
|
27797
|
+
return se.chatId === $ && se.dialogId === ((Ee = t.selectedDialog) == null ? void 0 : Ee.dialogId);
|
|
27792
27798
|
}
|
|
27793
27799
|
).some(
|
|
27794
|
-
(
|
|
27800
|
+
(se) => se.type !== "message.system" && se.type !== "message.delimiter" && se.type !== "system" && se.type !== "system_message" && se.type !== "notification"
|
|
27795
27801
|
) : !0;
|
|
27796
|
-
},
|
|
27797
|
-
(
|
|
27798
|
-
).length > 1,
|
|
27799
|
-
const
|
|
27802
|
+
}, ie = (V) => t.channels.filter(
|
|
27803
|
+
($) => H($.channelId) === V
|
|
27804
|
+
).length > 1, Y = (V) => y.value === V, J = (V) => {
|
|
27805
|
+
const $ = t.channels.filter(
|
|
27800
27806
|
(Ie) => H(Ie.channelId) === V
|
|
27801
27807
|
);
|
|
27802
|
-
return
|
|
27803
|
-
},
|
|
27804
|
-
const
|
|
27805
|
-
return
|
|
27806
|
-
},
|
|
27807
|
-
const
|
|
27808
|
-
return
|
|
27808
|
+
return $.length === 1 ? $[0] : null;
|
|
27809
|
+
}, re = (V) => m[V] || null, ve = (V) => {
|
|
27810
|
+
const $ = H(V);
|
|
27811
|
+
return re($);
|
|
27812
|
+
}, Ce = (V) => {
|
|
27813
|
+
const $ = J(V);
|
|
27814
|
+
return $ ? ve($.channelId) : re(V);
|
|
27809
27815
|
}, Se = () => {
|
|
27810
|
-
const V = Object.fromEntries(w.map((
|
|
27811
|
-
t.contactAttributes.forEach((
|
|
27812
|
-
|
|
27813
|
-
V[Ie].push(
|
|
27816
|
+
const V = Object.fromEntries(w.map(($) => [$, []]));
|
|
27817
|
+
t.contactAttributes.forEach(($) => {
|
|
27818
|
+
$.type === "telegram" ? V.telegram.push($) : $.type === "phone" && ["whatsapp", "max", "sms", "phone"].forEach((Ie) => {
|
|
27819
|
+
V[Ie].push($);
|
|
27814
27820
|
});
|
|
27815
27821
|
}), D.value = V;
|
|
27816
|
-
},
|
|
27817
|
-
(
|
|
27822
|
+
}, De = (V) => t.channels.filter(
|
|
27823
|
+
($) => H($.channelId) === V
|
|
27818
27824
|
), U = (V) => {
|
|
27819
27825
|
var Ie;
|
|
27820
|
-
const
|
|
27826
|
+
const $ = (Ie = t.recentAttributeChannels[V]) == null ? void 0 : Ie.attributeId;
|
|
27821
27827
|
return t.contactAttributes.find((df) => {
|
|
27822
27828
|
var Af;
|
|
27823
|
-
return (Af = df.id) == null ? void 0 : Af.includes(
|
|
27829
|
+
return (Af = df.id) == null ? void 0 : Af.includes($);
|
|
27824
27830
|
});
|
|
27825
27831
|
}, te = (V) => {
|
|
27826
|
-
var
|
|
27827
|
-
return ((
|
|
27832
|
+
var $;
|
|
27833
|
+
return (($ = p.value) == null ? void 0 : $.id) === V.id;
|
|
27828
27834
|
}, X = (V) => {
|
|
27829
|
-
y.value === V && s.value === V ?
|
|
27830
|
-
},
|
|
27835
|
+
y.value === V && s.value === V ? Ae() : (s.value = V, c.value = !0, d.value = !1, p.value = null, C.value = !1, we());
|
|
27836
|
+
}, Ae = () => {
|
|
27831
27837
|
c.value = !1, s.value = null, p.value = null, C.value = !1, d.value = !1;
|
|
27832
27838
|
}, Ne = () => {
|
|
27833
27839
|
var V;
|
|
27834
27840
|
if (s.value === "phone")
|
|
27835
27841
|
cf(O.value);
|
|
27836
|
-
else if (
|
|
27837
|
-
const
|
|
27838
|
-
O.value &&
|
|
27842
|
+
else if (ie(s.value)) {
|
|
27843
|
+
const $ = (V = t.recentAttributeChannels[s.value]) == null ? void 0 : V.channelId;
|
|
27844
|
+
O.value && $ && Mf($);
|
|
27839
27845
|
} else {
|
|
27840
|
-
const
|
|
27841
|
-
O.value &&
|
|
27846
|
+
const $ = J(s.value);
|
|
27847
|
+
O.value && $ && xf(O.value, $.channelId);
|
|
27842
27848
|
}
|
|
27843
27849
|
}, He = (V) => {
|
|
27844
27850
|
if (s.value === "phone")
|
|
27845
27851
|
cf(V);
|
|
27846
|
-
else if (
|
|
27847
|
-
const
|
|
27848
|
-
|
|
27852
|
+
else if (!ie(s.value)) {
|
|
27853
|
+
const $ = J(s.value);
|
|
27854
|
+
$ && xf(V, $.channelId);
|
|
27849
27855
|
}
|
|
27850
27856
|
}, cf = (V) => {
|
|
27851
27857
|
V && (n("phone-call", {
|
|
27852
27858
|
attributeId: V.id,
|
|
27853
27859
|
phoneNumber: V.data
|
|
27854
|
-
}),
|
|
27855
|
-
}, xf = (V,
|
|
27860
|
+
}), Ae());
|
|
27861
|
+
}, xf = (V, $) => {
|
|
27856
27862
|
n("select-attribute-channel", {
|
|
27857
27863
|
attributeId: V.id,
|
|
27858
|
-
channelId:
|
|
27859
|
-
}), y.value = s.value, M.value = t.channels.find((Ie) => Ie.channelId ===
|
|
27864
|
+
channelId: $
|
|
27865
|
+
}), y.value = s.value, M.value = t.channels.find((Ie) => Ie.channelId === $), console.log("TEST selectedChannel.value", M.value), R($) && t.isNewDialog ? wf() : Xe(), Ae();
|
|
27860
27866
|
}, Mf = (V) => {
|
|
27861
27867
|
O.value && n("select-attribute-channel", {
|
|
27862
27868
|
attributeId: O.value.id,
|
|
27863
27869
|
channelId: V
|
|
27864
|
-
}), y.value = s.value, M.value = t.channels.find((
|
|
27870
|
+
}), y.value = s.value, M.value = t.channels.find(($) => $.channelId === V), console.log("TEST selectedChannel.value", M.value), R(V) && t.isNewDialog ? wf() : Xe(), Ae();
|
|
27865
27871
|
}, Tf = (V) => {
|
|
27866
|
-
|
|
27872
|
+
ie(s.value) && (Z(), C.value = !0, d.value = !0, We(V.currentTarget));
|
|
27867
27873
|
}, Df = () => {
|
|
27868
27874
|
d.value || (C.value = !1);
|
|
27869
|
-
},
|
|
27870
|
-
|
|
27871
|
-
},
|
|
27875
|
+
}, F = (V, $) => {
|
|
27876
|
+
ie(s.value) && (C.value = !1, A.value = V, d.value = !0, p.value = V, We($.currentTarget));
|
|
27877
|
+
}, W = () => {
|
|
27872
27878
|
d.value || (p.value = null);
|
|
27873
|
-
},
|
|
27879
|
+
}, Z = () => {
|
|
27874
27880
|
d.value = !1, p.value = null, A.value = null;
|
|
27875
27881
|
}, oe = () => {
|
|
27876
27882
|
d.value = !0;
|
|
@@ -27880,36 +27886,36 @@ const rd = ["data-theme"], dd = {
|
|
|
27880
27886
|
C.value ? Mf(V) : A.value && (n("select-attribute-channel", {
|
|
27881
27887
|
attributeId: A.value.id,
|
|
27882
27888
|
channelId: V
|
|
27883
|
-
}), y.value = s.value, M.value = t.channels.find((
|
|
27884
|
-
},
|
|
27889
|
+
}), y.value = s.value, M.value = t.channels.find(($) => $.channelId === V), console.log("TEST selectedChannel.value", M.value), R(V) && t.isNewDialog ? wf() : Xe()), Ae();
|
|
27890
|
+
}, we = () => {
|
|
27885
27891
|
i.value && (g.value = `${i.value.offsetWidth}px`);
|
|
27886
27892
|
}, We = (V) => {
|
|
27887
27893
|
try {
|
|
27888
27894
|
requestAnimationFrame(() => {
|
|
27889
27895
|
var gf, Wt, Zt;
|
|
27890
|
-
const
|
|
27891
|
-
if (
|
|
27896
|
+
const $ = (gf = a.value) == null ? void 0 : gf.querySelector(".attributes-menu"), Ie = (Wt = a.value) == null ? void 0 : Wt.querySelector(".sub-menu-header"), df = (Zt = a.value) == null ? void 0 : Zt.querySelector(".sub-menu");
|
|
27897
|
+
if (!$ || !V) {
|
|
27892
27898
|
_.value = 0;
|
|
27893
27899
|
return;
|
|
27894
27900
|
}
|
|
27895
|
-
const Af =
|
|
27896
|
-
let
|
|
27901
|
+
const Af = $.getBoundingClientRect(), Cf = V.getBoundingClientRect();
|
|
27902
|
+
let se = 0;
|
|
27897
27903
|
if (Ie) {
|
|
27898
27904
|
const it = Ie.getBoundingClientRect(), na = getComputedStyle(Ie), Kt = parseFloat(na.marginBottom || "0");
|
|
27899
|
-
|
|
27905
|
+
se = it.height + (isNaN(Kt) ? 0 : Kt);
|
|
27900
27906
|
}
|
|
27901
27907
|
let Ee = 0;
|
|
27902
27908
|
if (df) {
|
|
27903
27909
|
const it = getComputedStyle(df);
|
|
27904
27910
|
Ee = parseFloat(it.paddingTop || "0") || 0;
|
|
27905
27911
|
}
|
|
27906
|
-
_.value = Cf.top - Af.top -
|
|
27912
|
+
_.value = Cf.top - Af.top - se - Ee - 2;
|
|
27907
27913
|
});
|
|
27908
27914
|
} catch {
|
|
27909
27915
|
_.value = 0;
|
|
27910
27916
|
}
|
|
27911
27917
|
}, rf = (V) => {
|
|
27912
|
-
a.value && !a.value.contains(V.target) &&
|
|
27918
|
+
a.value && !a.value.contains(V.target) && Ae();
|
|
27913
27919
|
};
|
|
27914
27920
|
ce(() => t.contactAttributes, Se, { deep: !0 }), ce(() => t.selectedDialog, (V) => {
|
|
27915
27921
|
Ff(V);
|
|
@@ -27919,10 +27925,10 @@ const rd = ["data-theme"], dd = {
|
|
|
27919
27925
|
y.value = null, M.value = {}, Xe();
|
|
27920
27926
|
return;
|
|
27921
27927
|
}
|
|
27922
|
-
const
|
|
27923
|
-
|
|
27928
|
+
const $ = H(V.channelId);
|
|
27929
|
+
$ && w.includes($) && (y.value = $, M.value = t.channels.find((Ie) => Ie.channelId === V.channelId), R(V.channelId) && t.isNewDialog ? wf() : Xe());
|
|
27924
27930
|
}, wf = () => {
|
|
27925
|
-
Xe(), k.value = !0,
|
|
27931
|
+
Xe(), k.value = !0, me(() => {
|
|
27926
27932
|
const V = Array.isArray(x.value) ? x.value[0] : x.value;
|
|
27927
27933
|
V && typeof V.startAutoShow == "function" ? V.startAutoShow() : console.log("startAutoShow method not found on tooltipRef");
|
|
27928
27934
|
}), N.value = setTimeout(() => {
|
|
@@ -27935,11 +27941,11 @@ const rd = ["data-theme"], dd = {
|
|
|
27935
27941
|
}
|
|
27936
27942
|
k.value = !1;
|
|
27937
27943
|
};
|
|
27938
|
-
return
|
|
27939
|
-
|
|
27944
|
+
return be(() => {
|
|
27945
|
+
we(), window.addEventListener("resize", we), document.addEventListener("click", rf), Se(), Ff(t.selectedDialog);
|
|
27940
27946
|
}), sf(() => {
|
|
27941
|
-
window.removeEventListener("resize",
|
|
27942
|
-
}), (V,
|
|
27947
|
+
window.removeEventListener("resize", we), document.removeEventListener("click", rf), Xe();
|
|
27948
|
+
}), (V, $) => {
|
|
27943
27949
|
var Ie, df, Af, Cf;
|
|
27944
27950
|
return l(), u("div", {
|
|
27945
27951
|
ref_key: "panelRef",
|
|
@@ -27951,19 +27957,19 @@ const rd = ["data-theme"], dd = {
|
|
|
27951
27957
|
ref: i,
|
|
27952
27958
|
class: "channels-panel"
|
|
27953
27959
|
}, [
|
|
27954
|
-
(l(!0), u(ee, null,
|
|
27960
|
+
(l(!0), u(ee, null, pe(b.value, (se) => {
|
|
27955
27961
|
var Ee;
|
|
27956
27962
|
return l(), u("button", {
|
|
27957
|
-
key:
|
|
27963
|
+
key: se.type,
|
|
27958
27964
|
class: j(["channel-btn", {
|
|
27959
|
-
active:
|
|
27960
|
-
hover: r.value ===
|
|
27965
|
+
active: Y(se.type),
|
|
27966
|
+
hover: r.value === se.type && !Y(se.type) || r.value === se.type && Y(se.type)
|
|
27961
27967
|
}]),
|
|
27962
|
-
onClick: (gf) => X(
|
|
27963
|
-
onMouseenter: (gf) => r.value =
|
|
27964
|
-
onMouseleave:
|
|
27968
|
+
onClick: (gf) => X(se.type),
|
|
27969
|
+
onMouseenter: (gf) => r.value = se.type,
|
|
27970
|
+
onMouseleave: $[0] || ($[0] = (gf) => r.value = null)
|
|
27965
27971
|
}, [
|
|
27966
|
-
|
|
27972
|
+
Y(se.type) ? (l(), u(ee, { key: 0 }, [
|
|
27967
27973
|
q(Ve, {
|
|
27968
27974
|
ref_for: !0,
|
|
27969
27975
|
ref: (gf) => {
|
|
@@ -27977,21 +27983,21 @@ const rd = ["data-theme"], dd = {
|
|
|
27977
27983
|
}, {
|
|
27978
27984
|
default: G(() => [
|
|
27979
27985
|
o("span", xd, [
|
|
27980
|
-
(l(), B(Qe(
|
|
27986
|
+
(l(), B(Qe(se.component)))
|
|
27981
27987
|
])
|
|
27982
27988
|
]),
|
|
27983
27989
|
_: 2
|
|
27984
27990
|
}, 1032, ["text", "trigger"]),
|
|
27985
|
-
|
|
27991
|
+
$[5] || ($[5] = o("span", { class: "active-indicator" }, null, -1))
|
|
27986
27992
|
], 64)) : (l(), B(Ve, {
|
|
27987
27993
|
key: 1,
|
|
27988
|
-
text:
|
|
27994
|
+
text: K(se.type),
|
|
27989
27995
|
position: "bottom-left",
|
|
27990
27996
|
offset: 8
|
|
27991
27997
|
}, {
|
|
27992
27998
|
default: G(() => [
|
|
27993
27999
|
o("span", Td, [
|
|
27994
|
-
(l(), B(Qe(
|
|
28000
|
+
(l(), B(Qe(se.component)))
|
|
27995
28001
|
])
|
|
27996
28002
|
]),
|
|
27997
28003
|
_: 2
|
|
@@ -28002,7 +28008,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28002
28008
|
c.value && s.value ? (l(), u("div", {
|
|
28003
28009
|
key: 0,
|
|
28004
28010
|
class: "attributes-menu",
|
|
28005
|
-
style:
|
|
28011
|
+
style: _e({ width: g.value })
|
|
28006
28012
|
}, [
|
|
28007
28013
|
S.value ? (l(), u("div", Dd, " Недавний ")) : v("", !0),
|
|
28008
28014
|
S.value && ((Ie = t.recentAttributeChannels[s.value]) != null && Ie.tooltip) ? (l(), B(Ve, {
|
|
@@ -28012,25 +28018,25 @@ const rd = ["data-theme"], dd = {
|
|
|
28012
28018
|
offset: 8
|
|
28013
28019
|
}, {
|
|
28014
28020
|
default: G(() => {
|
|
28015
|
-
var
|
|
28021
|
+
var se;
|
|
28016
28022
|
return [
|
|
28017
28023
|
o("div", {
|
|
28018
28024
|
class: j(["recent-attribute", {
|
|
28019
28025
|
"frozen-hover": C.value
|
|
28020
28026
|
}]),
|
|
28021
|
-
onMouseenter:
|
|
28027
|
+
onMouseenter: $[1] || ($[1] = (Ee) => Tf(Ee)),
|
|
28022
28028
|
onMouseleave: Df,
|
|
28023
|
-
onMouseover:
|
|
28024
|
-
onClick:
|
|
28029
|
+
onMouseover: Z,
|
|
28030
|
+
onClick: $[2] || ($[2] = (Ee) => Ne())
|
|
28025
28031
|
}, [
|
|
28026
28032
|
o("div", Nd, [
|
|
28027
|
-
o("span", Ed, E((
|
|
28033
|
+
o("span", Ed, E((se = O.value) == null ? void 0 : se.value), 1)
|
|
28028
28034
|
]),
|
|
28029
28035
|
e.showChannelIcons ? (l(), u("span", {
|
|
28030
28036
|
key: 0,
|
|
28031
28037
|
class: j(["channel-icon-small", { "menu-icon-grey": s.value !== "sms" }])
|
|
28032
28038
|
}, [
|
|
28033
|
-
(l(), B(Qe(
|
|
28039
|
+
(l(), B(Qe(re(s.value))))
|
|
28034
28040
|
], 2)) : v("", !0)
|
|
28035
28041
|
], 34)
|
|
28036
28042
|
];
|
|
@@ -28041,10 +28047,10 @@ const rd = ["data-theme"], dd = {
|
|
|
28041
28047
|
class: j(["recent-attribute", {
|
|
28042
28048
|
"frozen-hover": C.value
|
|
28043
28049
|
}]),
|
|
28044
|
-
onMouseenter:
|
|
28050
|
+
onMouseenter: $[3] || ($[3] = (se) => Tf(se)),
|
|
28045
28051
|
onMouseleave: Df,
|
|
28046
|
-
onMouseover:
|
|
28047
|
-
onClick:
|
|
28052
|
+
onMouseover: Z,
|
|
28053
|
+
onClick: $[4] || ($[4] = (se) => Ne())
|
|
28048
28054
|
}, [
|
|
28049
28055
|
o("div", jd, [
|
|
28050
28056
|
o("span", Sd, E((Af = O.value) == null ? void 0 : Af.value), 1)
|
|
@@ -28052,50 +28058,50 @@ const rd = ["data-theme"], dd = {
|
|
|
28052
28058
|
o("span", {
|
|
28053
28059
|
class: j(["channel-icon-small", { "menu-icon-grey": s.value !== "sms" }])
|
|
28054
28060
|
}, [
|
|
28055
|
-
(l(), B(Qe(
|
|
28061
|
+
(l(), B(Qe(re(s.value))))
|
|
28056
28062
|
], 2)
|
|
28057
28063
|
], 34)) : v("", !0),
|
|
28058
28064
|
S.value && ((Cf = D.value[s.value]) != null && Cf.length) && s.value !== "phone" ? (l(), u("div", Vd)) : v("", !0),
|
|
28059
|
-
(l(!0), u(ee, null,
|
|
28060
|
-
key:
|
|
28065
|
+
(l(!0), u(ee, null, pe(D.value[s.value], (se) => (l(), u("div", {
|
|
28066
|
+
key: se.attributeId,
|
|
28061
28067
|
class: j(["attribute-item", {
|
|
28062
|
-
"frozen-hover": te(
|
|
28068
|
+
"frozen-hover": te(se)
|
|
28063
28069
|
}]),
|
|
28064
|
-
onMouseenter: (Ee) =>
|
|
28065
|
-
onMouseleave:
|
|
28066
|
-
onClick: (Ee) => He(
|
|
28070
|
+
onMouseenter: (Ee) => F(se, Ee),
|
|
28071
|
+
onMouseleave: W,
|
|
28072
|
+
onClick: (Ee) => He(se)
|
|
28067
28073
|
}, [
|
|
28068
28074
|
o("div", Od, [
|
|
28069
|
-
o("span", zd, E(
|
|
28075
|
+
o("span", zd, E(se.value), 1)
|
|
28070
28076
|
]),
|
|
28071
28077
|
o("span", Bd, [
|
|
28072
|
-
|
|
28078
|
+
ie(s.value) ? (l(), u("span", Ud)) : e.showChannelIcons ? (l(), u("span", {
|
|
28073
28079
|
key: 1,
|
|
28074
28080
|
class: j(["channel-icon-small", { "menu-icon-grey": s.value !== "sms" }])
|
|
28075
28081
|
}, [
|
|
28076
|
-
(l(), B(Qe(
|
|
28082
|
+
(l(), B(Qe(Ce(s.value))))
|
|
28077
28083
|
], 2)) : v("", !0)
|
|
28078
28084
|
])
|
|
28079
28085
|
], 42, Ld))), 128)),
|
|
28080
|
-
d.value &&
|
|
28086
|
+
d.value && P.value ? (l(), u("div", {
|
|
28081
28087
|
key: 4,
|
|
28082
28088
|
class: "sub-menu left",
|
|
28083
|
-
style:
|
|
28089
|
+
style: _e({ top: _.value + "px" }),
|
|
28084
28090
|
onMouseenter: oe,
|
|
28085
28091
|
onMouseleave: le
|
|
28086
28092
|
}, [
|
|
28087
|
-
|
|
28088
|
-
(l(!0), u(ee, null,
|
|
28089
|
-
key:
|
|
28093
|
+
$[6] || ($[6] = o("div", { class: "sub-menu-header" }, " Канал связи ", -1)),
|
|
28094
|
+
(l(!0), u(ee, null, pe(fe.value, (se) => (l(), u("div", {
|
|
28095
|
+
key: se.channelId,
|
|
28090
28096
|
class: "sub-menu-item",
|
|
28091
|
-
onClick: (Ee) => ke(
|
|
28097
|
+
onClick: (Ee) => ke(se.channelId)
|
|
28092
28098
|
}, [
|
|
28093
|
-
o("span", Rd, E(
|
|
28099
|
+
o("span", Rd, E(se.title || se.channelId), 1),
|
|
28094
28100
|
e.showChannelIcons ? (l(), u("span", {
|
|
28095
28101
|
key: 0,
|
|
28096
|
-
class: j(["sub-menu-icon", { "menu-icon-grey": H(
|
|
28102
|
+
class: j(["sub-menu-icon", { "menu-icon-grey": H(se.channelId) !== "sms" }])
|
|
28097
28103
|
}, [
|
|
28098
|
-
(l(), B(Qe(
|
|
28104
|
+
(l(), B(Qe(ve(se.channelId))))
|
|
28099
28105
|
], 2)) : v("", !0)
|
|
28100
28106
|
], 8, $d))), 128))
|
|
28101
28107
|
], 36)) : v("", !0)
|
|
@@ -28128,7 +28134,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28128
28134
|
},
|
|
28129
28135
|
emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
|
|
28130
28136
|
setup(e, { expose: f, emit: t }) {
|
|
28131
|
-
const n =
|
|
28137
|
+
const n = de("chatAppId"), a = de("extChatAppId"), { getTheme: i } = Ue(n), s = e, r = l1(), c = t, d = h(), A = h(), g = h(!1), p = (I) => {
|
|
28132
28138
|
x(), c("click", I);
|
|
28133
28139
|
}, C = () => {
|
|
28134
28140
|
s.disabled || (s.mode == "click" && !g.value ? N() : s.mode == "click" && g.value && x(), c("buttonClick"));
|
|
@@ -28145,7 +28151,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28145
28151
|
const I = d.value, m = A.value.getBoundingClientRect();
|
|
28146
28152
|
I.style.display = "inherit";
|
|
28147
28153
|
const b = d.value.getBoundingClientRect();
|
|
28148
|
-
I.style.display = "none",
|
|
28154
|
+
I.style.display = "none", me(() => {
|
|
28149
28155
|
const D = {
|
|
28150
28156
|
left: { top: m.top - (b.height - m.height) / 2 - b.top, left: m.left - b.width - b.left },
|
|
28151
28157
|
right: { top: m.top - (b.height - m.height) / 2 - b.top, left: m.left + m.width - b.left },
|
|
@@ -28165,8 +28171,8 @@ const rd = ["data-theme"], dd = {
|
|
|
28165
28171
|
}, w = (I) => {
|
|
28166
28172
|
s.mode == "click" && A.value && !A.value.contains(I.target) && x();
|
|
28167
28173
|
};
|
|
28168
|
-
return
|
|
28169
|
-
|
|
28174
|
+
return be(() => {
|
|
28175
|
+
me(() => {
|
|
28170
28176
|
d.value = document.getElementById("context-menu-" + r + a), d.value && (x(), document.addEventListener("click", w));
|
|
28171
28177
|
});
|
|
28172
28178
|
}), sf(() => {
|
|
@@ -28365,7 +28371,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28365
28371
|
},
|
|
28366
28372
|
emits: ["action", "reply"],
|
|
28367
28373
|
setup(e, { emit: f }) {
|
|
28368
|
-
const t = e, n = f, a = h(!1), i = h(!1), s = h(""), r =
|
|
28374
|
+
const t = e, n = f, a = h(!1), i = h(!1), s = h(""), r = Q(() => t.subtextTooltipData && t.subtextTooltipData[t.message.messageId] ? t.subtextTooltipData[t.message.messageId] : t.message.subText || "");
|
|
28369
28375
|
ce(
|
|
28370
28376
|
() => t.message.text,
|
|
28371
28377
|
() => {
|
|
@@ -28386,7 +28392,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28386
28392
|
i.value = !0;
|
|
28387
28393
|
}, C = () => {
|
|
28388
28394
|
i.value = !1, a.value = !1;
|
|
28389
|
-
}, y =
|
|
28395
|
+
}, y = Q(() => Rf(t.message.status));
|
|
28390
28396
|
function M(_) {
|
|
28391
28397
|
return _.position === "left" ? "file-message__left" : "file-message__right";
|
|
28392
28398
|
}
|
|
@@ -28396,7 +28402,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28396
28402
|
e.applyStyle(e.message)
|
|
28397
28403
|
]]),
|
|
28398
28404
|
messageId: e.message.messageId,
|
|
28399
|
-
style:
|
|
28405
|
+
style: _e(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
|
|
28400
28406
|
onMouseleave: C
|
|
28401
28407
|
}, [
|
|
28402
28408
|
e.message.avatar && e.isFirstInSeries ? (l(), u("img", {
|
|
@@ -28405,7 +28411,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28405
28411
|
src: e.message.avatar,
|
|
28406
28412
|
height: "32",
|
|
28407
28413
|
width: "32",
|
|
28408
|
-
style:
|
|
28414
|
+
style: _e({ gridRow: e.message.subText ? "2" : "1" })
|
|
28409
28415
|
}, null, 12, m3)) : v("", !0),
|
|
28410
28416
|
e.message.subText && e.isFirstInSeries ? (l(), u("p", p3, [
|
|
28411
28417
|
q(Ve, {
|
|
@@ -28421,7 +28427,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28421
28427
|
])) : v("", !0),
|
|
28422
28428
|
o("div", {
|
|
28423
28429
|
class: j(["file-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
|
|
28424
|
-
style:
|
|
28430
|
+
style: _e({ gridRow: e.message.subText ? "2" : "1" }),
|
|
28425
28431
|
onMouseenter: p
|
|
28426
28432
|
}, [
|
|
28427
28433
|
e.message.reply ? (l(), B(Qf, {
|
|
@@ -28483,7 +28489,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28483
28489
|
}, k[5] || (k[5] = [
|
|
28484
28490
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
28485
28491
|
]))) : v("", !0),
|
|
28486
|
-
q(
|
|
28492
|
+
q(he, null, {
|
|
28487
28493
|
default: G(() => [
|
|
28488
28494
|
a.value && e.message.actions ? (l(), B(T(bf), {
|
|
28489
28495
|
key: 0,
|
|
@@ -28532,7 +28538,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28532
28538
|
},
|
|
28533
28539
|
emits: ["action", "reply"],
|
|
28534
28540
|
setup(e, { emit: f }) {
|
|
28535
|
-
const t =
|
|
28541
|
+
const t = de("chatAppId"), { getTheme: n } = Ue(t), a = e, i = f, s = h(!1), r = h(!1), c = Q(() => a.subtextTooltipData && a.subtextTooltipData[a.message.messageId] ? a.subtextTooltipData[a.message.messageId] : a.message.subText || ""), d = h(!1), A = h(!1), g = h(""), p = h(null), C = h(null), y = h(0), M = h(0);
|
|
28536
28542
|
ce(
|
|
28537
28543
|
() => a.message.text,
|
|
28538
28544
|
() => {
|
|
@@ -28542,16 +28548,16 @@ const rd = ["data-theme"], dd = {
|
|
|
28542
28548
|
), ce(
|
|
28543
28549
|
() => g.value,
|
|
28544
28550
|
() => {
|
|
28545
|
-
m(),
|
|
28551
|
+
m(), me(() => {
|
|
28546
28552
|
b && C.value && b.observe(C.value);
|
|
28547
28553
|
});
|
|
28548
28554
|
}
|
|
28549
28555
|
);
|
|
28550
|
-
const _ = (
|
|
28551
|
-
i("reply",
|
|
28556
|
+
const _ = (K) => {
|
|
28557
|
+
i("reply", K);
|
|
28552
28558
|
};
|
|
28553
|
-
function k(
|
|
28554
|
-
|
|
28559
|
+
function k(K) {
|
|
28560
|
+
K.preventDefault(), K.target.href && window.open(K.target.href, "_blank");
|
|
28555
28561
|
}
|
|
28556
28562
|
const N = () => {
|
|
28557
28563
|
i("action", { messageId: a.message.messageId, type: "views" });
|
|
@@ -28561,12 +28567,12 @@ const rd = ["data-theme"], dd = {
|
|
|
28561
28567
|
}, I = () => {
|
|
28562
28568
|
d.value = !1, A.value = !1, r.value = !1;
|
|
28563
28569
|
}, m = () => {
|
|
28564
|
-
|
|
28570
|
+
me(() => {
|
|
28565
28571
|
p.value && (M.value = p.value.offsetWidth), C.value && (y.value = C.value.offsetWidth);
|
|
28566
28572
|
});
|
|
28567
28573
|
};
|
|
28568
28574
|
let b = null, D = null;
|
|
28569
|
-
|
|
28575
|
+
be(() => {
|
|
28570
28576
|
m(), D = () => m(), window.addEventListener("resize", D), typeof ResizeObserver < "u" && (b = new ResizeObserver(() => {
|
|
28571
28577
|
m();
|
|
28572
28578
|
}), p.value && b.observe(p.value), C.value && b.observe(C.value));
|
|
@@ -28575,24 +28581,24 @@ const rd = ["data-theme"], dd = {
|
|
|
28575
28581
|
}), ce(
|
|
28576
28582
|
() => [a.message.text, a.message.url],
|
|
28577
28583
|
() => {
|
|
28578
|
-
m(),
|
|
28584
|
+
m(), me(() => {
|
|
28579
28585
|
b && (b.disconnect(), p.value && b.observe(p.value), C.value && b.observe(C.value));
|
|
28580
28586
|
});
|
|
28581
28587
|
},
|
|
28582
28588
|
{ immediate: !0 }
|
|
28583
28589
|
);
|
|
28584
|
-
const O =
|
|
28585
|
-
function
|
|
28586
|
-
return
|
|
28590
|
+
const O = Q(() => a.message.text && y.value > M.value && M.value > 0), S = Q(() => a.message.reply && a.message.text ? "0" : a.message.text ? y.value > M.value && M.value > 0 ? "0" : "8px 8px 0 0" : a.message.reply ? "0 0 8px 8px" : "8px"), fe = Q(() => Rf(a.message.status));
|
|
28591
|
+
function P(K) {
|
|
28592
|
+
return K.position === "left" ? "image-message__left" : "image-message__right";
|
|
28587
28593
|
}
|
|
28588
28594
|
const ae = () => s.value = !1;
|
|
28589
|
-
return (
|
|
28595
|
+
return (K, H) => (l(), u("div", {
|
|
28590
28596
|
class: j(["image-message", [
|
|
28591
|
-
|
|
28597
|
+
P(e.message),
|
|
28592
28598
|
e.applyStyle(e.message)
|
|
28593
28599
|
]]),
|
|
28594
28600
|
messageId: e.message.messageId,
|
|
28595
|
-
style:
|
|
28601
|
+
style: _e(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
|
|
28596
28602
|
onMouseleave: I
|
|
28597
28603
|
}, [
|
|
28598
28604
|
e.message.avatar && e.isFirstInSeries ? (l(), u("img", {
|
|
@@ -28626,7 +28632,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28626
28632
|
}, null, 8, ["class", "message"])) : v("", !0),
|
|
28627
28633
|
o("div", {
|
|
28628
28634
|
class: j(["image-message__preview-button", { "image-message__preview-button--blur-edges": O.value }]),
|
|
28629
|
-
onClick: H[0] || (H[0] = (
|
|
28635
|
+
onClick: H[0] || (H[0] = (R) => s.value = !0),
|
|
28630
28636
|
onMouseenter: w,
|
|
28631
28637
|
onMouseleave: I
|
|
28632
28638
|
}, [
|
|
@@ -28646,11 +28652,11 @@ const rd = ["data-theme"], dd = {
|
|
|
28646
28652
|
ref_key: "imageRef",
|
|
28647
28653
|
ref: p,
|
|
28648
28654
|
class: "image-message__preview-image",
|
|
28649
|
-
style:
|
|
28655
|
+
style: _e({ borderRadius: S.value }),
|
|
28650
28656
|
src: e.message.url,
|
|
28651
28657
|
alt: e.message.alt
|
|
28652
28658
|
}, null, 12, j3),
|
|
28653
|
-
q(
|
|
28659
|
+
q(he, { name: "modal-fade" }, {
|
|
28654
28660
|
default: G(() => [
|
|
28655
28661
|
A.value ? (l(), u("div", S3, [
|
|
28656
28662
|
e.message.views ? (l(), u("div", {
|
|
@@ -28662,7 +28668,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28662
28668
|
o("p", null, E(e.message.views), 1)
|
|
28663
28669
|
])) : v("", !0),
|
|
28664
28670
|
o("span", V3, E(e.message.time), 1),
|
|
28665
|
-
|
|
28671
|
+
P(e.message) === "image-message__right" && T($f).includes(e.message.status) ? (l(), u("div", {
|
|
28666
28672
|
key: 1,
|
|
28667
28673
|
class: j(["image-message__status", fe.value])
|
|
28668
28674
|
}, [
|
|
@@ -28673,7 +28679,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28673
28679
|
]),
|
|
28674
28680
|
_: 1
|
|
28675
28681
|
}),
|
|
28676
|
-
q(
|
|
28682
|
+
q(he, { name: "modal-fade" }, {
|
|
28677
28683
|
default: G(() => [
|
|
28678
28684
|
A.value ? (l(), u("a", {
|
|
28679
28685
|
key: 0,
|
|
@@ -28689,19 +28695,19 @@ const rd = ["data-theme"], dd = {
|
|
|
28689
28695
|
_: 1
|
|
28690
28696
|
})
|
|
28691
28697
|
], 34),
|
|
28692
|
-
q(
|
|
28698
|
+
q(he, { name: "modal-fade" }, {
|
|
28693
28699
|
default: G(() => [
|
|
28694
28700
|
d.value && e.message.actions ? (l(), u("button", {
|
|
28695
28701
|
key: 0,
|
|
28696
28702
|
class: "image-message__menu-button",
|
|
28697
|
-
onClick: H[1] || (H[1] = (
|
|
28703
|
+
onClick: H[1] || (H[1] = (R) => r.value = !r.value)
|
|
28698
28704
|
}, H[5] || (H[5] = [
|
|
28699
28705
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
28700
28706
|
]))) : v("", !0)
|
|
28701
28707
|
]),
|
|
28702
28708
|
_: 1
|
|
28703
28709
|
}),
|
|
28704
|
-
q(
|
|
28710
|
+
q(he, { name: "context-menu" }, {
|
|
28705
28711
|
default: G(() => [
|
|
28706
28712
|
r.value && e.message.actions ? (l(), B(T(bf), {
|
|
28707
28713
|
key: 0,
|
|
@@ -28735,7 +28741,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28735
28741
|
}, null, 8, ["class", "embed"])) : v("", !0)
|
|
28736
28742
|
], 2),
|
|
28737
28743
|
(l(), B(je, { to: "body" }, [
|
|
28738
|
-
q(
|
|
28744
|
+
q(he, { name: "modal-fade" }, {
|
|
28739
28745
|
default: G(() => [
|
|
28740
28746
|
s.value ? (l(), B(u1, {
|
|
28741
28747
|
key: 0,
|
|
@@ -28789,7 +28795,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28789
28795
|
},
|
|
28790
28796
|
emits: ["action", "reply"],
|
|
28791
28797
|
setup(e, { emit: f }) {
|
|
28792
|
-
const t = e, n = f, a = h(!1), i = h(!1), s = h(""), r =
|
|
28798
|
+
const t = e, n = f, a = h(!1), i = h(!1), s = h(""), r = Q(() => t.subtextTooltipData && t.subtextTooltipData[t.message.messageId] ? t.subtextTooltipData[t.message.messageId] : t.message.subText || "");
|
|
28793
28799
|
ce(
|
|
28794
28800
|
() => t.message.text,
|
|
28795
28801
|
() => {
|
|
@@ -28807,7 +28813,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28807
28813
|
i.value = !0;
|
|
28808
28814
|
}, g = () => {
|
|
28809
28815
|
i.value = !1, a.value = !1;
|
|
28810
|
-
}, p =
|
|
28816
|
+
}, p = Q(() => Rf(t.message.status)), C = (_) => {
|
|
28811
28817
|
g(), n("action", { messageId: t.message.messageId, type: "menu", ..._ });
|
|
28812
28818
|
}, y = () => {
|
|
28813
28819
|
g(), n("action", { messageId: t.message.messageId, type: "views" });
|
|
@@ -28821,7 +28827,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28821
28827
|
e.applyStyle(e.message)
|
|
28822
28828
|
]]),
|
|
28823
28829
|
messageId: e.message.messageId,
|
|
28824
|
-
style:
|
|
28830
|
+
style: _e(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
|
|
28825
28831
|
onMouseleave: g
|
|
28826
28832
|
}, [
|
|
28827
28833
|
e.message.avatar && e.isFirstInSeries ? (l(), u("img", {
|
|
@@ -28830,7 +28836,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28830
28836
|
src: e.message.avatar,
|
|
28831
28837
|
height: "32",
|
|
28832
28838
|
width: "32",
|
|
28833
|
-
style:
|
|
28839
|
+
style: _e({ gridRow: e.message.subText && e.isFirstInSeries ? "2" : "1" })
|
|
28834
28840
|
}, null, 12, Q3)) : v("", !0),
|
|
28835
28841
|
e.message.subText && e.isFirstInSeries ? (l(), u("p", F3, [
|
|
28836
28842
|
q(Ve, {
|
|
@@ -28894,7 +28900,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28894
28900
|
}, k[3] || (k[3] = [
|
|
28895
28901
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
28896
28902
|
]))) : v("", !0),
|
|
28897
|
-
q(
|
|
28903
|
+
q(he, null, {
|
|
28898
28904
|
default: G(() => [
|
|
28899
28905
|
a.value && e.message.actions ? (l(), B(T(bf), {
|
|
28900
28906
|
key: 0,
|
|
@@ -28943,7 +28949,7 @@ const rd = ["data-theme"], dd = {
|
|
|
28943
28949
|
},
|
|
28944
28950
|
emits: ["action", "reply"],
|
|
28945
28951
|
setup(e, { emit: f }) {
|
|
28946
|
-
const t =
|
|
28952
|
+
const t = de("chatAppId"), { getTheme: n } = Ue(t), a = e, i = h([
|
|
28947
28953
|
{
|
|
28948
28954
|
text: "1.0x",
|
|
28949
28955
|
speed: 1,
|
|
@@ -28965,10 +28971,10 @@ const rd = ["data-theme"], dd = {
|
|
|
28965
28971
|
selected: !1
|
|
28966
28972
|
}
|
|
28967
28973
|
]), s = (H) => {
|
|
28968
|
-
for (let
|
|
28969
|
-
|
|
28974
|
+
for (let R of i.value)
|
|
28975
|
+
R.selected = !1;
|
|
28970
28976
|
i.value[H].selected = !0, c.value && (c.value.playbackRate = i.value[H].speed);
|
|
28971
|
-
}, r = f, c = h(), d = h(!1), A = h(0), g = h(0), p = h(!1), C =
|
|
28977
|
+
}, r = f, c = h(), d = h(!1), A = h(0), g = h(0), p = h(!1), C = Q(() => a.subtextTooltipData && a.subtextTooltipData[a.message.messageId] ? a.subtextTooltipData[a.message.messageId] : a.message.subText || ""), y = h(!1), M = h(!1), _ = h(!1), k = Q(() => a.message.text ? Je(a.message.text) : ""), N = (H) => {
|
|
28972
28978
|
r("reply", H);
|
|
28973
28979
|
};
|
|
28974
28980
|
function x(H) {
|
|
@@ -28981,27 +28987,27 @@ const rd = ["data-theme"], dd = {
|
|
|
28981
28987
|
}, m = () => {
|
|
28982
28988
|
r("action", { messageId: a.message.messageId, type: "views" });
|
|
28983
28989
|
}, b = () => {
|
|
28984
|
-
}, D =
|
|
28990
|
+
}, D = Q(() => Rf(a.message.status));
|
|
28985
28991
|
function O() {
|
|
28986
28992
|
c.value && (d.value ? c.value.pause() : c.value.play(), d.value = !d.value);
|
|
28987
28993
|
}
|
|
28988
28994
|
const S = (H) => {
|
|
28989
|
-
const
|
|
28990
|
-
return `${
|
|
28991
|
-
}, fe =
|
|
28995
|
+
const R = Math.floor(H / 60), ie = Math.floor(H % 60);
|
|
28996
|
+
return `${R.toString().padStart(2, "0")}:${ie.toString().padStart(2, "0")}`;
|
|
28997
|
+
}, fe = Q(() => c.value ? S(g.value) : "0:00");
|
|
28992
28998
|
ce(
|
|
28993
28999
|
() => g.value,
|
|
28994
29000
|
() => {
|
|
28995
29001
|
c.value && p.value && (c.value.duration != 1 / 0 && !Number.isNaN(c.value.duration) && (c.value.currentTime = g.value), g.value == A.value && (d.value = !1));
|
|
28996
29002
|
}
|
|
28997
29003
|
);
|
|
28998
|
-
const
|
|
29004
|
+
const P = () => {
|
|
28999
29005
|
c.value && p.value && c.value.duration != 1 / 0 && !Number.isNaN(c.value.duration) && (c.value.currentTime = g.value), p.value = !1;
|
|
29000
|
-
}, ae =
|
|
29001
|
-
function
|
|
29006
|
+
}, ae = Q(() => c.value ? S(A.value) : "0:00");
|
|
29007
|
+
function K(H) {
|
|
29002
29008
|
return H.position === "left" ? "audio-message__left" : "audio-message__right";
|
|
29003
29009
|
}
|
|
29004
|
-
return
|
|
29010
|
+
return be(() => {
|
|
29005
29011
|
c.value != null && (c.value.addEventListener("loadedmetadata", () => {
|
|
29006
29012
|
c.value != null && (c.value.duration == 1 / 0 || Number.isNaN(c.value.duration)) && (c.value.currentTime = 1e101, c.value.addEventListener("timeupdate", () => {
|
|
29007
29013
|
c.value && (c.value.currentTime = 0, A.value = c.value.duration);
|
|
@@ -29009,15 +29015,15 @@ const rd = ["data-theme"], dd = {
|
|
|
29009
29015
|
}), c.value.addEventListener("timeupdate", () => {
|
|
29010
29016
|
!p.value && c.value != null && (g.value = c.value.currentTime);
|
|
29011
29017
|
}));
|
|
29012
|
-
}), (H,
|
|
29013
|
-
var
|
|
29018
|
+
}), (H, R) => {
|
|
29019
|
+
var ie;
|
|
29014
29020
|
return l(), u("div", {
|
|
29015
29021
|
class: j(["audio-message", [
|
|
29016
|
-
|
|
29022
|
+
K(e.message),
|
|
29017
29023
|
e.applyStyle(e.message)
|
|
29018
29024
|
]]),
|
|
29019
29025
|
messageId: e.message.messageId,
|
|
29020
|
-
style:
|
|
29026
|
+
style: _e(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
|
|
29021
29027
|
onMouseleave: I
|
|
29022
29028
|
}, [
|
|
29023
29029
|
e.message.avatar && e.isFirstInSeries ? (l(), u("img", {
|
|
@@ -29026,7 +29032,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29026
29032
|
src: e.message.avatar,
|
|
29027
29033
|
height: "32",
|
|
29028
29034
|
width: "32",
|
|
29029
|
-
style:
|
|
29035
|
+
style: _e({ gridRow: e.message.subText ? "2" : "1" })
|
|
29030
29036
|
}, null, 12, J3)) : v("", !0),
|
|
29031
29037
|
e.message.subText && e.isFirstInSeries ? (l(), u("p", G3, [
|
|
29032
29038
|
q(Ve, {
|
|
@@ -29058,44 +29064,44 @@ const rd = ["data-theme"], dd = {
|
|
|
29058
29064
|
src: e.message.url,
|
|
29059
29065
|
type: "audio/webm"
|
|
29060
29066
|
}, null, 8, e4),
|
|
29061
|
-
|
|
29067
|
+
Me(o("button", {
|
|
29062
29068
|
class: "audio-message__play",
|
|
29063
29069
|
onClick: O
|
|
29064
|
-
},
|
|
29070
|
+
}, R[6] || (R[6] = [
|
|
29065
29071
|
o("span", { class: "pi pi-play" }, null, -1)
|
|
29066
29072
|
]), 512), [
|
|
29067
29073
|
[Ke, !d.value]
|
|
29068
29074
|
]),
|
|
29069
|
-
|
|
29075
|
+
Me(o("button", {
|
|
29070
29076
|
class: "audio-message__pause",
|
|
29071
29077
|
onClick: O
|
|
29072
|
-
},
|
|
29078
|
+
}, R[7] || (R[7] = [
|
|
29073
29079
|
o("span", { class: "pi pi-pause" }, null, -1)
|
|
29074
29080
|
]), 512), [
|
|
29075
29081
|
[Ke, d.value]
|
|
29076
29082
|
]),
|
|
29077
|
-
|
|
29078
|
-
"onUpdate:modelValue":
|
|
29083
|
+
Me(o("input", {
|
|
29084
|
+
"onUpdate:modelValue": R[0] || (R[0] = (Y) => g.value = Y),
|
|
29079
29085
|
class: "audio-message__progress-bar-container",
|
|
29080
29086
|
type: "range",
|
|
29081
29087
|
min: 0,
|
|
29082
29088
|
max: A.value,
|
|
29083
29089
|
step: "0.1",
|
|
29084
|
-
onMousedown:
|
|
29085
|
-
onMouseup:
|
|
29086
|
-
onTouchstart:
|
|
29087
|
-
onTouchend:
|
|
29090
|
+
onMousedown: R[1] || (R[1] = (Y) => p.value = !0),
|
|
29091
|
+
onMouseup: P,
|
|
29092
|
+
onTouchstart: R[2] || (R[2] = (Y) => p.value = !0),
|
|
29093
|
+
onTouchend: P
|
|
29088
29094
|
}, null, 40, f4), [
|
|
29089
29095
|
[Uf, g.value]
|
|
29090
29096
|
]),
|
|
29091
29097
|
o("div", t4, [
|
|
29092
29098
|
o("p", n4, E(`${fe.value} / ${ae.value}`), 1),
|
|
29093
29099
|
o("div", a4, [
|
|
29094
|
-
(l(!0), u(ee, null,
|
|
29095
|
-
key:
|
|
29096
|
-
class: j(["audio-message__speed-btn", { "audio-message__speed-btn-selected":
|
|
29097
|
-
onClick: (
|
|
29098
|
-
}, E(
|
|
29100
|
+
(l(!0), u(ee, null, pe(i.value, (Y, J) => (l(), u("p", {
|
|
29101
|
+
key: Y.text,
|
|
29102
|
+
class: j(["audio-message__speed-btn", { "audio-message__speed-btn-selected": Y.selected }]),
|
|
29103
|
+
onClick: (re) => s(J)
|
|
29104
|
+
}, E(Y.text), 11, s4))), 128))
|
|
29099
29105
|
])
|
|
29100
29106
|
]),
|
|
29101
29107
|
o("a", {
|
|
@@ -29104,13 +29110,13 @@ const rd = ["data-theme"], dd = {
|
|
|
29104
29110
|
download: "",
|
|
29105
29111
|
target: "_blank",
|
|
29106
29112
|
onClick: Ef(() => "//Предотвращаем всплытие события клика", ["stop"])
|
|
29107
|
-
},
|
|
29113
|
+
}, R[8] || (R[8] = [
|
|
29108
29114
|
o("span", { class: "pi pi-download" }, null, -1)
|
|
29109
29115
|
]), 8, i4)
|
|
29110
29116
|
]),
|
|
29111
|
-
(
|
|
29117
|
+
(ie = e.message.transcript) != null && ie.text ? (l(), u("div", o4, [
|
|
29112
29118
|
o("p", {
|
|
29113
|
-
onClick:
|
|
29119
|
+
onClick: R[3] || (R[3] = (Y) => _.value = !_.value)
|
|
29114
29120
|
}, E(e.message.transcript.text), 1)
|
|
29115
29121
|
])) : v("", !0),
|
|
29116
29122
|
e.message.text ? (l(), u("div", l4, [
|
|
@@ -29135,26 +29141,26 @@ const rd = ["data-theme"], dd = {
|
|
|
29135
29141
|
class: "audio-message__views",
|
|
29136
29142
|
onClick: m
|
|
29137
29143
|
}, [
|
|
29138
|
-
|
|
29144
|
+
R[9] || (R[9] = o("span", { class: "pi pi-eye" }, null, -1)),
|
|
29139
29145
|
o("p", null, E(e.message.views), 1)
|
|
29140
29146
|
])) : v("", !0),
|
|
29141
29147
|
o("span", r4, E(e.message.time), 1),
|
|
29142
|
-
|
|
29148
|
+
K(e.message) === "audio-message__right" && T($f).includes(e.message.status) ? (l(), u("div", {
|
|
29143
29149
|
key: 1,
|
|
29144
29150
|
class: j(["audio-message__status", D.value])
|
|
29145
29151
|
}, [
|
|
29146
29152
|
e.message.status !== "sent" ? (l(), u("span", d4)) : v("", !0),
|
|
29147
|
-
|
|
29153
|
+
R[10] || (R[10] = o("span", { class: "pi pi-check" }, null, -1))
|
|
29148
29154
|
], 2)) : v("", !0)
|
|
29149
29155
|
]),
|
|
29150
29156
|
M.value && e.message.actions ? (l(), u("button", {
|
|
29151
29157
|
key: 5,
|
|
29152
29158
|
class: "audio-message__menu-button",
|
|
29153
|
-
onClick:
|
|
29154
|
-
},
|
|
29159
|
+
onClick: R[4] || (R[4] = (Y) => y.value = !y.value)
|
|
29160
|
+
}, R[11] || (R[11] = [
|
|
29155
29161
|
o("span", { class: "pi pi-ellipsis-h" }, null, -1)
|
|
29156
29162
|
]))) : v("", !0),
|
|
29157
|
-
q(
|
|
29163
|
+
q(he, null, {
|
|
29158
29164
|
default: G(() => [
|
|
29159
29165
|
y.value && e.message.actions ? (l(), B(T(bf), {
|
|
29160
29166
|
key: 0,
|
|
@@ -29166,9 +29172,9 @@ const rd = ["data-theme"], dd = {
|
|
|
29166
29172
|
_: 1
|
|
29167
29173
|
}),
|
|
29168
29174
|
(l(), B(je, { to: "body" }, [
|
|
29169
|
-
q(
|
|
29175
|
+
q(he, { name: "modal-fade" }, {
|
|
29170
29176
|
default: G(() => {
|
|
29171
|
-
var
|
|
29177
|
+
var Y;
|
|
29172
29178
|
return [
|
|
29173
29179
|
_.value ? (l(), u("div", {
|
|
29174
29180
|
key: 0,
|
|
@@ -29178,13 +29184,13 @@ const rd = ["data-theme"], dd = {
|
|
|
29178
29184
|
o("div", g4, [
|
|
29179
29185
|
o("button", {
|
|
29180
29186
|
class: "audio-message__modal-close-button",
|
|
29181
|
-
onClick:
|
|
29182
|
-
},
|
|
29187
|
+
onClick: R[5] || (R[5] = (J) => _.value = !1)
|
|
29188
|
+
}, R[12] || (R[12] = [
|
|
29183
29189
|
o("span", null, [
|
|
29184
29190
|
o("i", { class: "pi pi-times" })
|
|
29185
29191
|
], -1)
|
|
29186
29192
|
])),
|
|
29187
|
-
o("p", m4, E((
|
|
29193
|
+
o("p", m4, E((Y = e.message.transcript) == null ? void 0 : Y.text), 1)
|
|
29188
29194
|
])
|
|
29189
29195
|
], 8, A4)) : v("", !0)
|
|
29190
29196
|
];
|
|
@@ -29247,13 +29253,13 @@ const rd = ["data-theme"], dd = {
|
|
|
29247
29253
|
},
|
|
29248
29254
|
emits: ["action", "reply"],
|
|
29249
29255
|
setup(e, { emit: f }) {
|
|
29250
|
-
const t =
|
|
29256
|
+
const t = de("chatAppId"), { getTheme: n } = Ue(t), a = e, i = f, s = (O) => {
|
|
29251
29257
|
i("reply", O);
|
|
29252
29258
|
};
|
|
29253
29259
|
function r(O) {
|
|
29254
29260
|
return O.position === "left" ? "video-message__left" : "video-message__right";
|
|
29255
29261
|
}
|
|
29256
|
-
const c = h(), d = h(), A =
|
|
29262
|
+
const c = h(), d = h(), A = Q(() => a.subtextTooltipData && a.subtextTooltipData[a.message.messageId] ? a.subtextTooltipData[a.message.messageId] : a.message.subText || ""), g = h(!1), p = h(!1), C = h(!1), y = h(!1), M = h("");
|
|
29257
29263
|
ce(
|
|
29258
29264
|
() => a.message.text,
|
|
29259
29265
|
() => {
|
|
@@ -29271,13 +29277,13 @@ const rd = ["data-theme"], dd = {
|
|
|
29271
29277
|
C.value = !0, y.value = !0;
|
|
29272
29278
|
}, w = () => {
|
|
29273
29279
|
C.value = !1, p.value = !1;
|
|
29274
|
-
}, I =
|
|
29280
|
+
}, I = Q(() => Rf(a.message.status)), m = () => {
|
|
29275
29281
|
d.value && (d.value.currentTime = 0, d.value.play());
|
|
29276
29282
|
};
|
|
29277
29283
|
ce([c, d], ([O, S]) => {
|
|
29278
29284
|
O ? S && (S.pause(), S.currentTime = 0) : S && (S.play(), S.currentTime = 0);
|
|
29279
29285
|
});
|
|
29280
|
-
const b =
|
|
29286
|
+
const b = Q(() => a.message.reply && a.message.text ? "0" : a.message.text ? "8px 8px 0 0" : a.message.reply ? "0 0 8px 8px" : "8px"), D = () => g.value = !1;
|
|
29281
29287
|
return (O, S) => (l(), u(ee, null, [
|
|
29282
29288
|
o("div", {
|
|
29283
29289
|
class: j(["video-message", [
|
|
@@ -29285,7 +29291,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29285
29291
|
e.applyStyle(e.message)
|
|
29286
29292
|
]]),
|
|
29287
29293
|
messageId: e.message.messageId,
|
|
29288
|
-
style:
|
|
29294
|
+
style: _e(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
|
|
29289
29295
|
onMouseleave: w
|
|
29290
29296
|
}, [
|
|
29291
29297
|
e.message.avatar && e.isFirstInSeries ? (l(), u("img", {
|
|
@@ -29327,13 +29333,13 @@ const rd = ["data-theme"], dd = {
|
|
|
29327
29333
|
ref_key: "previewPlayer",
|
|
29328
29334
|
ref: d,
|
|
29329
29335
|
class: "video-message__video",
|
|
29330
|
-
style:
|
|
29336
|
+
style: _e({ borderRadius: b.value }),
|
|
29331
29337
|
src: e.message.url,
|
|
29332
29338
|
muted: !0,
|
|
29333
29339
|
autoplay: "",
|
|
29334
29340
|
onEnded: m
|
|
29335
29341
|
}, null, 44, I4),
|
|
29336
|
-
q(
|
|
29342
|
+
q(he, { name: "modal-fade" }, {
|
|
29337
29343
|
default: G(() => [
|
|
29338
29344
|
y.value ? (l(), u("div", k4, [
|
|
29339
29345
|
e.message.views ? (l(), u("div", {
|
|
@@ -29356,7 +29362,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29356
29362
|
]),
|
|
29357
29363
|
_: 1
|
|
29358
29364
|
}),
|
|
29359
|
-
q(
|
|
29365
|
+
q(he, { name: "modal-fade" }, {
|
|
29360
29366
|
default: G(() => [
|
|
29361
29367
|
y.value ? (l(), u("a", {
|
|
29362
29368
|
key: 0,
|
|
@@ -29372,7 +29378,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29372
29378
|
_: 1
|
|
29373
29379
|
})
|
|
29374
29380
|
], 32),
|
|
29375
|
-
q(
|
|
29381
|
+
q(he, { name: "modal-fade" }, {
|
|
29376
29382
|
default: G(() => [
|
|
29377
29383
|
C.value && e.message.actions ? (l(), u("button", {
|
|
29378
29384
|
key: 0,
|
|
@@ -29384,7 +29390,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29384
29390
|
]),
|
|
29385
29391
|
_: 1
|
|
29386
29392
|
}),
|
|
29387
|
-
q(
|
|
29393
|
+
q(he, { name: "context-menu" }, {
|
|
29388
29394
|
default: G(() => [
|
|
29389
29395
|
p.value && e.message.actions ? (l(), B(T(bf), {
|
|
29390
29396
|
key: 0,
|
|
@@ -29414,7 +29420,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29414
29420
|
], 2)
|
|
29415
29421
|
], 46, M4),
|
|
29416
29422
|
(l(), B(je, { to: "body" }, [
|
|
29417
|
-
q(
|
|
29423
|
+
q(he, { name: "modal-fade" }, {
|
|
29418
29424
|
default: G(() => [
|
|
29419
29425
|
g.value ? (l(), B(u1, {
|
|
29420
29426
|
key: 0,
|
|
@@ -29476,7 +29482,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29476
29482
|
}
|
|
29477
29483
|
},
|
|
29478
29484
|
setup(e) {
|
|
29479
|
-
const f =
|
|
29485
|
+
const f = de("chatAppId"), { getTheme: t } = Ue(f), n = e, a = h(!1), i = Q(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), s = {
|
|
29480
29486
|
textDialog: "textDialog",
|
|
29481
29487
|
message: "message"
|
|
29482
29488
|
};
|
|
@@ -29499,7 +29505,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29499
29505
|
e.applyStyle(e.message)
|
|
29500
29506
|
]),
|
|
29501
29507
|
messageId: e.message.messageId,
|
|
29502
|
-
style:
|
|
29508
|
+
style: _e(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null)
|
|
29503
29509
|
}, [
|
|
29504
29510
|
e.message.avatar ? (l(), u("img", {
|
|
29505
29511
|
key: 0,
|
|
@@ -29507,7 +29513,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29507
29513
|
src: e.message.avatar,
|
|
29508
29514
|
height: "32",
|
|
29509
29515
|
width: "32",
|
|
29510
|
-
style:
|
|
29516
|
+
style: _e({ gridRow: e.message.subText ? "2" : "1" })
|
|
29511
29517
|
}, null, 12, O4)) : v("", !0),
|
|
29512
29518
|
e.message.subText ? (l(), u("p", z4, [
|
|
29513
29519
|
q(Ve, {
|
|
@@ -29538,7 +29544,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29538
29544
|
o("span", { class: "pi pi-arrow-up-right" }, null, -1)
|
|
29539
29545
|
]))) : v("", !0),
|
|
29540
29546
|
(l(), B(je, { to: "body" }, [
|
|
29541
|
-
q(
|
|
29547
|
+
q(he, { name: "modal-fade" }, {
|
|
29542
29548
|
default: G(() => {
|
|
29543
29549
|
var g;
|
|
29544
29550
|
return [
|
|
@@ -29556,7 +29562,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29556
29562
|
o("i", { class: "pi pi-times" })
|
|
29557
29563
|
], -1)
|
|
29558
29564
|
])),
|
|
29559
|
-
(l(!0), u(ee, null,
|
|
29565
|
+
(l(!0), u(ee, null, pe((g = e.message.transcript) == null ? void 0 : g.dialog, (p) => (l(), u("div", {
|
|
29560
29566
|
key: p.time,
|
|
29561
29567
|
class: j(r(p, s.textDialog))
|
|
29562
29568
|
}, [
|
|
@@ -29606,7 +29612,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29606
29612
|
src: e.message.avatar,
|
|
29607
29613
|
height: "32",
|
|
29608
29614
|
width: "32",
|
|
29609
|
-
style:
|
|
29615
|
+
style: _e({ gridRow: e.message.subText ? "2" : "1" })
|
|
29610
29616
|
}, null, 12, fA)) : v("", !0),
|
|
29611
29617
|
e.message.subText ? (l(), u("p", tA, E(e.message.subText), 1)) : v("", !0),
|
|
29612
29618
|
t[0] || (t[0] = o("div", { class: "typing-message__loader-container" }, [
|
|
@@ -29652,7 +29658,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29652
29658
|
}
|
|
29653
29659
|
},
|
|
29654
29660
|
setup(e) {
|
|
29655
|
-
const f =
|
|
29661
|
+
const f = de("chatAppId"), { getTheme: t } = Ue(f), n = e, a = h(!1), i = h("");
|
|
29656
29662
|
ce(
|
|
29657
29663
|
() => n.message.text,
|
|
29658
29664
|
() => {
|
|
@@ -29689,7 +29695,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29689
29695
|
}, null, 8, dA)) : v("", !0)
|
|
29690
29696
|
]),
|
|
29691
29697
|
(l(), B(je, { to: "body" }, [
|
|
29692
|
-
q(
|
|
29698
|
+
q(he, { name: "modal-fade" }, {
|
|
29693
29699
|
default: G(() => [
|
|
29694
29700
|
a.value ? (l(), B(u1, {
|
|
29695
29701
|
key: 0,
|
|
@@ -29732,7 +29738,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29732
29738
|
i.preventDefault(), i.target.href && window.open(i.target.href, "_blank");
|
|
29733
29739
|
}
|
|
29734
29740
|
return (i, s) => (l(), u(ee, null, [
|
|
29735
|
-
|
|
29741
|
+
Me(o("div", pA, s[0] || (s[0] = [
|
|
29736
29742
|
o("span", { class: "pi pi-play" }, null, -1)
|
|
29737
29743
|
]), 512), [
|
|
29738
29744
|
[Ke, !t.value]
|
|
@@ -29761,7 +29767,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29761
29767
|
}
|
|
29762
29768
|
},
|
|
29763
29769
|
setup(e) {
|
|
29764
|
-
const f =
|
|
29770
|
+
const f = de("chatAppId"), { getTheme: t } = Ue(f), n = e, a = h(), i = h(!1), s = h("");
|
|
29765
29771
|
ce(
|
|
29766
29772
|
() => n.message.text,
|
|
29767
29773
|
() => {
|
|
@@ -29798,7 +29804,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29798
29804
|
}, null, 8, IA)) : v("", !0)
|
|
29799
29805
|
]),
|
|
29800
29806
|
(l(), B(je, { to: "body" }, [
|
|
29801
|
-
q(
|
|
29807
|
+
q(he, { name: "modal-fade" }, {
|
|
29802
29808
|
default: G(() => [
|
|
29803
29809
|
i.value ? (l(), B(u1, {
|
|
29804
29810
|
key: 0,
|
|
@@ -29922,9 +29928,9 @@ const rd = ["data-theme"], dd = {
|
|
|
29922
29928
|
}, [
|
|
29923
29929
|
o("div", {
|
|
29924
29930
|
class: "base__container",
|
|
29925
|
-
style:
|
|
29931
|
+
style: _e({ height: e.height, width: e.width })
|
|
29926
29932
|
}, [
|
|
29927
|
-
|
|
29933
|
+
ge(n.$slots, "default")
|
|
29928
29934
|
], 4)
|
|
29929
29935
|
], 8, PA));
|
|
29930
29936
|
}
|
|
@@ -29964,7 +29970,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29964
29970
|
n.value.x = M, n.value.y = _;
|
|
29965
29971
|
}
|
|
29966
29972
|
};
|
|
29967
|
-
return
|
|
29973
|
+
return be(() => {
|
|
29968
29974
|
document.addEventListener("mousemove", C), window.addEventListener("resize", () => {
|
|
29969
29975
|
a.value && (n.value.x = Math.max(
|
|
29970
29976
|
0,
|
|
@@ -29985,7 +29991,7 @@ const rd = ["data-theme"], dd = {
|
|
|
29985
29991
|
ref_key: "element",
|
|
29986
29992
|
ref: a,
|
|
29987
29993
|
class: "float-window",
|
|
29988
|
-
style:
|
|
29994
|
+
style: _e({
|
|
29989
29995
|
left: n.value.x + "px",
|
|
29990
29996
|
top: n.value.y + "px",
|
|
29991
29997
|
userSelect: s.value ? "none" : "auto",
|
|
@@ -30011,7 +30017,7 @@ const rd = ["data-theme"], dd = {
|
|
|
30011
30017
|
}, null, 8, HA)) : v("", !0),
|
|
30012
30018
|
o("p", WA, E(t.title), 1),
|
|
30013
30019
|
o("div", ZA, [
|
|
30014
|
-
|
|
30020
|
+
ge(y.$slots, "controls"),
|
|
30015
30021
|
o("button", {
|
|
30016
30022
|
class: "float-window__close-button",
|
|
30017
30023
|
onClick: M[0] || (M[0] = (_) => y.$emit("close-window"))
|
|
@@ -30022,9 +30028,9 @@ const rd = ["data-theme"], dd = {
|
|
|
30022
30028
|
], 544),
|
|
30023
30029
|
o("div", {
|
|
30024
30030
|
class: "float-window__content",
|
|
30025
|
-
style:
|
|
30031
|
+
style: _e({ height: d.value + "px" })
|
|
30026
30032
|
}, [
|
|
30027
|
-
|
|
30033
|
+
ge(y.$slots, "default")
|
|
30028
30034
|
], 4)
|
|
30029
30035
|
])
|
|
30030
30036
|
], 12, YA));
|
|
@@ -30033,10 +30039,10 @@ const rd = ["data-theme"], dd = {
|
|
|
30033
30039
|
function e6(e, f) {
|
|
30034
30040
|
return l(), u("div", JA, [
|
|
30035
30041
|
o("div", GA, [
|
|
30036
|
-
|
|
30042
|
+
ge(e.$slots, "first-col", {}, void 0, !0)
|
|
30037
30043
|
]),
|
|
30038
30044
|
o("div", XA, [
|
|
30039
|
-
|
|
30045
|
+
ge(e.$slots, "second-col", {}, void 0, !0)
|
|
30040
30046
|
])
|
|
30041
30047
|
]);
|
|
30042
30048
|
}
|
|
@@ -30044,13 +30050,13 @@ const sg = /* @__PURE__ */ z(KA, [["render", e6], ["__scopeId", "data-v-fef8b5d1
|
|
|
30044
30050
|
function i6(e, f) {
|
|
30045
30051
|
return l(), u("div", t6, [
|
|
30046
30052
|
o("div", n6, [
|
|
30047
|
-
|
|
30053
|
+
ge(e.$slots, "first-col", {}, void 0, !0)
|
|
30048
30054
|
]),
|
|
30049
30055
|
o("div", a6, [
|
|
30050
|
-
|
|
30056
|
+
ge(e.$slots, "second-col", {}, void 0, !0)
|
|
30051
30057
|
]),
|
|
30052
30058
|
o("div", s6, [
|
|
30053
|
-
|
|
30059
|
+
ge(e.$slots, "third-col", {}, void 0, !0)
|
|
30054
30060
|
])
|
|
30055
30061
|
]);
|
|
30056
30062
|
}
|
|
@@ -30058,7 +30064,7 @@ const ig = /* @__PURE__ */ z(f6, [["render", i6], ["__scopeId", "data-v-7c37a233
|
|
|
30058
30064
|
function c6(e, f) {
|
|
30059
30065
|
return l(), u("div", l6, [
|
|
30060
30066
|
o("div", u6, [
|
|
30061
|
-
|
|
30067
|
+
ge(e.$slots, "default", {}, void 0, !0)
|
|
30062
30068
|
])
|
|
30063
30069
|
]);
|
|
30064
30070
|
}
|
|
@@ -30093,20 +30099,20 @@ const og = /* @__PURE__ */ z(o6, [["render", c6], ["__scopeId", "data-v-414119aa
|
|
|
30093
30099
|
}
|
|
30094
30100
|
},
|
|
30095
30101
|
setup(e) {
|
|
30096
|
-
const f =
|
|
30102
|
+
const f = de("chatAppId");
|
|
30097
30103
|
return (t, n) => (l(), u("div", {
|
|
30098
30104
|
id: "chat-wrapper-" + T(f),
|
|
30099
30105
|
class: j(["chat-wrapper", e.applyStyle()])
|
|
30100
30106
|
}, [
|
|
30101
30107
|
e.isSelectedChat ? (l(), u("div", d6, [
|
|
30102
|
-
|
|
30108
|
+
ge(t.$slots, "default", {}, void 0, !0)
|
|
30103
30109
|
])) : (l(), u("div", A6, [
|
|
30104
30110
|
o("div", g6, [
|
|
30105
|
-
|
|
30111
|
+
ge(t.$slots, "placeholder", {}, void 0, !0)
|
|
30106
30112
|
])
|
|
30107
30113
|
])),
|
|
30108
30114
|
e.isOpenChatPanel ? (l(), u("div", m6, [
|
|
30109
|
-
|
|
30115
|
+
ge(t.$slots, "chatpanel", {}, void 0, !0)
|
|
30110
30116
|
])) : v("", !0)
|
|
30111
30117
|
], 10, r6));
|
|
30112
30118
|
}
|
|
@@ -30131,14 +30137,14 @@ const og = /* @__PURE__ */ z(o6, [["render", c6], ["__scopeId", "data-v-414119aa
|
|
|
30131
30137
|
},
|
|
30132
30138
|
{ immediate: !0 }
|
|
30133
30139
|
);
|
|
30134
|
-
const t =
|
|
30140
|
+
const t = de("chatAppId"), n = () => {
|
|
30135
30141
|
const i = document.getElementById("extern-layout-container-" + t);
|
|
30136
30142
|
i.style.setProperty("--chotto-adaptive-extended-layout-second-col-display", "none"), i.style.setProperty("--chotto-adaptive-extended-layout-third-col-display", "flex"), i.style.setProperty("--chotto-adaptive-extended-layout-second-col-width", "0%"), i.style.setProperty("--chotto-adaptive-extended-layout-third-col-width", "100%");
|
|
30137
30143
|
}, a = () => {
|
|
30138
30144
|
const i = document.getElementById("extern-layout-container-" + t);
|
|
30139
30145
|
i.style.setProperty("--chotto-adaptive-extended-layout-second-col-display", "flex"), i.style.setProperty("--chotto-adaptive-extended-layout-third-col-display", "none"), i.style.setProperty("--chotto-adaptive-extended-layout-second-col-width", "100%"), i.style.setProperty("--chotto-adaptive-extended-layout-third-col-width", "0%");
|
|
30140
30146
|
};
|
|
30141
|
-
return
|
|
30147
|
+
return be(() => {
|
|
30142
30148
|
const i = document.getElementById("extern-layout-container-" + t), s = document.getElementById("extend-layout-first-col-" + t);
|
|
30143
30149
|
i.style.setProperty("--chotto-adaptive-extended-layout-first-col-width", s.offsetWidth + "px");
|
|
30144
30150
|
}), (i, s) => (l(), u("div", {
|
|
@@ -30150,19 +30156,19 @@ const og = /* @__PURE__ */ z(o6, [["render", c6], ["__scopeId", "data-v-414119aa
|
|
|
30150
30156
|
id: "extend-layout-first-col-" + T(t),
|
|
30151
30157
|
class: "extend-layout__first-col"
|
|
30152
30158
|
}, [
|
|
30153
|
-
|
|
30159
|
+
ge(i.$slots, "first-col", {}, void 0, !0)
|
|
30154
30160
|
], 8, _6),
|
|
30155
30161
|
o("div", {
|
|
30156
30162
|
id: "extend-layout-second-col-" + T(t),
|
|
30157
30163
|
class: "extend-layout__second-col"
|
|
30158
30164
|
}, [
|
|
30159
|
-
|
|
30165
|
+
ge(i.$slots, "second-col", {}, void 0, !0)
|
|
30160
30166
|
], 8, v6),
|
|
30161
30167
|
o("div", {
|
|
30162
30168
|
id: "extend-layout-third-col-" + T(t),
|
|
30163
30169
|
class: "extend-layout__third-col"
|
|
30164
30170
|
}, [
|
|
30165
|
-
|
|
30171
|
+
ge(i.$slots, "third-col", {}, void 0, !0)
|
|
30166
30172
|
], 8, b6)
|
|
30167
30173
|
], 8, h6));
|
|
30168
30174
|
}
|