@mobilon-dev/chotto 0.0.96 → 0.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { inject as ee, openBlock as r, createElementBlock as u, createElementVNode as o, createCommentVNode as y, toDisplayString as k, renderSlot as ne, unref as D, ref as b, customRef as Zf, defineComponent as W, computed as Q, watch as X, nextTick as wt, withDirectives as Ae, withKeys as Jn, vModelText as ot, normalizeClass as O, createVNode as F, Transition as Z, withCtx as K, createBlock as R, Fragment as q, renderList as te, resolveDynamicComponent as Xf, Teleport as _e, normalizeStyle as ie, useId as Gn, onMounted as le, onUnmounted as Ke, vShow as We, toRef as Ba, vModelRadio as ea, reactive as ta, provide as Mn, getCurrentInstance as Ra, toRaw as na, onBeforeUnmount as Qa, readonly as $a, resolveComponent as $t, h as Tf, defineAsyncComponent as Ya, createApp as Pa, withModifiers as kt } from "vue";
1
+ import { inject as ee, computed as Q, openBlock as A, createElementBlock as u, createElementVNode as o, createCommentVNode as y, toDisplayString as k, renderSlot as ne, unref as D, ref as b, customRef as Zf, defineComponent as W, watch as X, nextTick as wt, withDirectives as Ae, withKeys as Jn, vModelText as ot, normalizeClass as z, createVNode as F, Transition as Z, withCtx as K, createBlock as R, Fragment as q, renderList as te, normalizeStyle as se, resolveDynamicComponent as Xf, Teleport as _e, useId as Gn, onMounted as le, onUnmounted as Ke, vShow as We, toRef as Ba, vModelRadio as ea, reactive as ta, provide as Mn, getCurrentInstance as Ra, toRaw as na, onBeforeUnmount as Qa, readonly as $a, resolveComponent as $t, h as Tf, defineAsyncComponent as Ya, createApp as Pa, withModifiers as kt } from "vue";
2
2
  const Fa = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2ntley5rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6logistics9properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3ncaster6d0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2psy3ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", qa = "ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2", et = (e, t) => {
3
3
  for (const n in t)
4
4
  e[n] = t[n];
@@ -229,12 +229,12 @@ function Xa(e = []) {
229
229
  ae(l, Ve), ae(l, Se, s), ae(l, ct, l), ae(s, Se, s), ae(s, Ve), ae(s, ct, s);
230
230
  const c = I(n, Vn, Xn, {
231
231
  [Tn]: !0
232
- }), A = I(n, xf, qn, {
232
+ }), r = I(n, xf, qn, {
233
233
  [Tn]: !0
234
234
  }), d = ae(n, xn, qn, {
235
235
  [Tn]: !0
236
236
  });
237
- I(n, Sn, d), I(A, Vn, c), I(A, Sn, d), ae(A, xn, d), I(d, xf), I(d, Vn), ae(d, xn, d), I(d, Sn, d);
237
+ I(n, Sn, d), I(r, Vn, c), I(r, Sn, d), ae(r, xn, d), I(d, xf), I(d, Vn), ae(d, xn, d), I(d, Sn, d);
238
238
  const g = ae(n, jn, oa, {
239
239
  [fa]: !0
240
240
  });
@@ -260,12 +260,12 @@ function Xa(e = []) {
260
260
  ascii: !0
261
261
  }, t), e = e.sort((v, p) => v[0] > p[0] ? 1 : -1);
262
262
  for (let v = 0; v < e.length; v++) {
263
- const p = e[v][0], x = e[v][1] ? {
263
+ const p = e[v][0], j = e[v][1] ? {
264
264
  [Ha]: !0
265
265
  } : {
266
266
  [Wa]: !0
267
267
  };
268
- p.indexOf("-") >= 0 ? x[$n] = !0 : Ve.test(p) ? Se.test(p) ? x[pt] = !0 : x[Rn] = !0 : x[Bn] = !0, jf(n, p, p, x);
268
+ p.indexOf("-") >= 0 ? j[$n] = !0 : Ve.test(p) ? Se.test(p) ? j[pt] = !0 : j[Rn] = !0 : j[Bn] = !0, jf(n, p, p, j);
269
269
  }
270
270
  return jf(n, "localhost", Nt, {
271
271
  ascii: !0
@@ -280,15 +280,15 @@ function ra(e, t) {
280
280
  const n = es(t.replace(/[A-Z]/g, (l) => l.toLowerCase())), f = n.length, a = [];
281
281
  let s = 0, i = 0;
282
282
  for (; i < f; ) {
283
- let l = e, c = null, A = 0, d = null, g = -1, m = -1;
283
+ let l = e, c = null, r = 0, d = null, g = -1, m = -1;
284
284
  for (; i < f && (c = l.go(n[i])); )
285
- l = c, l.accepts() ? (g = 0, m = 0, d = l) : g >= 0 && (g += n[i].length, m++), A += n[i].length, s += n[i].length, i++;
286
- s -= g, i -= m, A -= g, a.push({
285
+ l = c, l.accepts() ? (g = 0, m = 0, d = l) : g >= 0 && (g += n[i].length, m++), r += n[i].length, s += n[i].length, i++;
286
+ s -= g, i -= m, r -= g, a.push({
287
287
  t: d.t,
288
288
  // token type/name
289
- v: t.slice(s - A, s),
289
+ v: t.slice(s - r, s),
290
290
  // string value
291
- s: s - A,
291
+ s: s - r,
292
292
  // start index
293
293
  e: s
294
294
  // end index (excluding)
@@ -518,8 +518,8 @@ Aa.prototype = {
518
518
  * @param {Options} options Formattinng options
519
519
  */
520
520
  render(e) {
521
- const t = this, n = this.toHref(e.get("defaultProtocol")), f = e.get("formatHref", n, this), a = e.get("tagName", n, t), s = this.toFormattedString(e), i = {}, l = e.get("className", n, t), c = e.get("target", n, t), A = e.get("rel", n, t), d = e.getObj("attributes", n, t), g = e.getObj("events", n, t);
522
- return i.href = f, l && (i.class = l), c && (i.target = c), A && (i.rel = A), d && et(i, d), {
521
+ const t = this, n = this.toHref(e.get("defaultProtocol")), f = e.get("formatHref", n, this), a = e.get("tagName", n, t), s = this.toFormattedString(e), i = {}, l = e.get("className", n, t), c = e.get("target", n, t), r = e.get("rel", n, t), d = e.getObj("attributes", n, t), g = e.getObj("events", n, t);
522
+ return i.href = f, l && (i.class = l), c && (i.target = c), r && (i.rel = r), d && et(i, d), {
523
523
  tagName: a,
524
524
  attributes: i,
525
525
  content: s,
@@ -570,31 +570,31 @@ function ns({
570
570
  P(s, f, s), P(s, e.domain, s);
571
571
  const i = he(), l = he(), c = he();
572
572
  P(a, e.domain, i), P(a, e.scheme, l), P(a, e.slashscheme, c), P(i, f, s), P(i, e.domain, i);
573
- const A = I(i, Ue);
574
- I(s, Ue, A), I(l, Ue, A), I(c, Ue, A);
573
+ const r = I(i, Ue);
574
+ I(s, Ue, r), I(l, Ue, r), I(c, Ue, r);
575
575
  const d = I(s, De);
576
576
  P(d, f, s), P(d, e.domain, s);
577
577
  const g = he();
578
- P(A, e.domain, g), P(g, e.domain, g);
578
+ P(r, e.domain, g), P(g, e.domain, g);
579
579
  const m = I(g, De);
580
580
  P(m, e.domain, g);
581
581
  const M = he(Cf);
582
- P(m, e.tld, M), P(m, e.utld, M), I(A, Nt, M);
582
+ P(m, e.tld, M), P(m, e.utld, M), I(r, Nt, M);
583
583
  const h = I(g, ve);
584
584
  I(h, ve, h), P(h, e.domain, g), P(M, e.domain, g), I(M, De, m), I(M, ve, h);
585
585
  const v = I(M, Be);
586
586
  P(v, e.numeric, Cf);
587
587
  const p = I(i, ve), _ = I(i, De);
588
588
  I(p, ve, p), P(p, e.domain, i), P(_, f, s), P(_, e.domain, i);
589
- const x = he(Bt);
590
- P(_, e.tld, x), P(_, e.utld, x), P(x, e.domain, i), P(x, f, s), I(x, De, _), I(x, ve, p), I(x, Ue, A);
591
- const N = I(x, Be), E = he(Bt);
589
+ const j = he(Bt);
590
+ P(_, e.tld, j), P(_, e.utld, j), P(j, e.domain, i), P(j, f, s), I(j, De, _), I(j, ve, p), I(j, Ue, r);
591
+ const N = I(j, Be), E = he(Bt);
592
592
  P(N, e.numeric, E);
593
593
  const w = he(Bt), S = he();
594
- P(w, t, w), P(w, n, S), P(S, t, w), P(S, n, S), I(x, Ee, w), I(E, Ee, w);
595
- const T = I(l, Be), j = I(c, Be), L = I(j, Ee), z = I(L, Ee);
596
- P(l, e.domain, i), I(l, De, _), I(l, ve, p), P(c, e.domain, i), I(c, De, _), I(c, ve, p), P(T, e.domain, w), I(T, Ee, w), I(T, bt, w), P(z, e.domain, w), P(z, t, w), I(z, Ee, w);
597
- const V = [
594
+ P(w, t, w), P(w, n, S), P(S, t, w), P(S, n, S), I(j, Ee, w), I(E, Ee, w);
595
+ const L = I(l, Be), T = I(c, Be), O = I(T, Ee), V = I(O, Ee);
596
+ P(l, e.domain, i), I(l, De, _), I(l, ve, p), P(c, e.domain, i), I(c, De, _), I(c, ve, p), P(L, e.domain, w), I(L, Ee, w), I(L, bt, w), P(V, e.domain, w), P(V, t, w), I(V, Ee, w);
597
+ const x = [
598
598
  [ht, vt],
599
599
  // {}
600
600
  [qt, Ht],
@@ -612,15 +612,15 @@ function ns({
612
612
  [an, sn]
613
613
  // <>
614
614
  ];
615
- for (let B = 0; B < V.length; B++) {
616
- const [$, J] = V[B], oe = I(w, $);
615
+ for (let U = 0; U < x.length; U++) {
616
+ const [$, J] = x[U], oe = I(w, $);
617
617
  I(S, $, oe), I(oe, J, w);
618
618
  const G = he(Bt);
619
619
  P(oe, t, G);
620
620
  const fe = he();
621
621
  P(oe, n), P(G, t, G), P(G, n, fe), P(fe, t, G), P(fe, n, fe), I(G, J, w), I(fe, J, w);
622
622
  }
623
- return I(a, Nt, x), I(a, Xn, ts), {
623
+ return I(a, Nt, j), I(a, Xn, ts), {
624
624
  start: a,
625
625
  tokens: la
626
626
  };
@@ -628,11 +628,11 @@ function ns({
628
628
  function fs(e, t, n) {
629
629
  let f = n.length, a = 0, s = [], i = [];
630
630
  for (; a < f; ) {
631
- let l = e, c = null, A = null, d = 0, g = null, m = -1;
631
+ let l = e, c = null, r = null, d = 0, g = null, m = -1;
632
632
  for (; a < f && !(c = l.go(n[a].t)); )
633
633
  i.push(n[a++]);
634
- for (; a < f && (A = c || l.go(n[a].t)); )
635
- c = null, l = A, l.accepts() ? (m = 0, g = l) : m >= 0 && m++, a++, d++;
634
+ for (; a < f && (r = c || l.go(n[a].t)); )
635
+ c = null, l = r, l.accepts() ? (m = 0, g = l) : m >= 0 && m++, a++, d++;
636
636
  if (m < 0)
637
637
  a -= d, a < f && (i.push(n[a]), a++);
638
638
  else {
@@ -710,7 +710,7 @@ String.prototype.linkify || Object.defineProperty(String.prototype, "linkify", {
710
710
  return we(this, t);
711
711
  }
712
712
  });
713
- const U = (e, t) => {
713
+ const B = (e, t) => {
714
714
  const n = e.__vccOpts || e;
715
715
  for (const [f, a] of t)
716
716
  n[f] = a;
@@ -735,43 +735,55 @@ const U = (e, t) => {
735
735
  type: Boolean,
736
736
  required: !1,
737
737
  default: !1
738
+ },
739
+ description: {
740
+ type: String,
741
+ required: !1
742
+ },
743
+ defaultLastActivityTime: {
744
+ type: Boolean,
745
+ required: !1,
746
+ default: !1
738
747
  }
739
748
  },
740
749
  emits: ["returnToChats"],
741
750
  setup(e, { emit: t }) {
742
- const n = e, f = t, a = ee("chatAppId");
743
- return (s, i) => e.chat ? (r(), u("div", ls, [
751
+ const n = e, f = t, a = ee("chatAppId"), s = Q(() => {
752
+ if (n.description) return n.description;
753
+ if (!n.description && n.defaultLastActivityTime) return n.chat["lastActivity.time"];
754
+ });
755
+ return (i, l) => e.chat ? (A(), u("div", ls, [
744
756
  o("div", rs, [
745
- e.showReturnButton ? (r(), u("span", {
757
+ e.showReturnButton ? (A(), u("span", {
746
758
  key: 0,
747
759
  class: "pi pi-arrow-left chat-info__return-button",
748
- onClick: i[0] || (i[0] = (l) => f("returnToChats"))
760
+ onClick: l[0] || (l[0] = (c) => f("returnToChats"))
749
761
  })) : y("", !0),
750
762
  o("div", As, [
751
- n.chat.avatar ? (r(), u("img", {
763
+ n.chat.avatar ? (A(), u("img", {
752
764
  key: 0,
753
765
  src: n.chat.avatar,
754
766
  width: "48",
755
767
  height: "48"
756
- }, null, 8, cs)) : (r(), u("span", us))
768
+ }, null, 8, cs)) : (A(), u("span", us))
757
769
  ]),
758
770
  o("div", ds, [
759
771
  o("h2", gs, k(e.chat.name), 1),
760
- e.chat["lastActivity.time"] ? (r(), u("p", ms, k(e.chat["lastActivity.time"]), 1)) : y("", !0)
772
+ s.value ? (A(), u("p", ms, k(s.value), 1)) : y("", !0)
761
773
  ]),
762
774
  o("div", ps, [
763
- ne(s.$slots, "actions", {}, void 0, !0)
775
+ ne(i.$slots, "actions", {}, void 0, !0)
764
776
  ])
765
777
  ]),
766
778
  o("div", {
767
779
  class: "chat-info__search-panel",
768
780
  id: "chat-info-search-panel-" + D(a)
769
781
  }, [
770
- ne(s.$slots, "search", {}, void 0, !0)
782
+ ne(i.$slots, "search", {}, void 0, !0)
771
783
  ], 8, hs)
772
784
  ])) : y("", !0);
773
785
  }
774
- }, vg = /* @__PURE__ */ U(vs, [["__scopeId", "data-v-30704e45"]]), de = b([]), Ie = (e) => {
786
+ }, vg = /* @__PURE__ */ B(vs, [["__scopeId", "data-v-1d46ede1"]]), de = b([]), Ie = (e) => {
775
787
  const t = b(0);
776
788
  let n = de.value.find(({ id: m }) => m == e);
777
789
  n != null ? t.value = de.value.indexOf(n) : (de.value.push({
@@ -783,64 +795,64 @@ const U = (e, t) => {
783
795
  }), t.value = de.value.length - 1);
784
796
  const f = () => {
785
797
  de.value[t.value] = {
786
- id: A().id,
798
+ id: r().id,
787
799
  text: "",
788
800
  file: void 0,
789
801
  reply: void 0,
790
802
  forceSend: !1,
791
- isRecording: A().isRecording
803
+ isRecording: r().isRecording
792
804
  };
793
805
  }, a = (m) => {
794
806
  de.value[t.value] = {
795
- id: A().id,
807
+ id: r().id,
796
808
  text: m,
797
- file: A().file,
798
- reply: A().reply,
809
+ file: r().file,
810
+ reply: r().reply,
799
811
  forceSend: !1,
800
- isRecording: A().isRecording
812
+ isRecording: r().isRecording
801
813
  };
802
814
  }, s = (m) => {
803
815
  de.value[t.value] = {
804
- id: A().id,
805
- text: A().text,
816
+ id: r().id,
817
+ text: r().text,
806
818
  file: m,
807
- reply: A().reply,
819
+ reply: r().reply,
808
820
  forceSend: !1,
809
- isRecording: A().isRecording
821
+ isRecording: r().isRecording
810
822
  };
811
823
  }, i = () => {
812
824
  de.value[t.value] = {
813
- id: A().id,
814
- text: A().text,
825
+ id: r().id,
826
+ text: r().text,
815
827
  file: void 0,
816
- reply: A().reply,
828
+ reply: r().reply,
817
829
  forceSend: !1,
818
- isRecording: A().isRecording
830
+ isRecording: r().isRecording
819
831
  };
820
832
  }, l = (m) => {
821
833
  de.value[t.value] = {
822
- id: A().id,
823
- text: A().text,
824
- file: A().file,
834
+ id: r().id,
835
+ text: r().text,
836
+ file: r().file,
825
837
  reply: m,
826
838
  forceSend: !1,
827
- isRecording: A().isRecording
839
+ isRecording: r().isRecording
828
840
  };
829
841
  }, c = () => {
830
842
  de.value[t.value] = {
831
- id: A().id,
832
- text: A().text,
833
- file: A().file,
843
+ id: r().id,
844
+ text: r().text,
845
+ file: r().file,
834
846
  reply: void 0,
835
847
  forceSend: !1,
836
- isRecording: A().isRecording
848
+ isRecording: r().isRecording
837
849
  };
838
850
  };
839
- function A() {
851
+ function r() {
840
852
  return de.value[t.value];
841
853
  }
842
854
  return {
843
- getMessage: A,
855
+ getMessage: r,
844
856
  resetMessage: f,
845
857
  setMessageFile: s,
846
858
  resetMessageFile: i,
@@ -934,7 +946,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
934
946
  },
935
947
  emits: ["send", "typing"],
936
948
  setup(e, { emit: t }) {
937
- const n = t, f = ee("chatAppId"), { resetMessage: a, getMessage: s, setMessageText: i, setForceSendMessage: l, setMessageFile: c, resetMessageFile: A } = Ie(f), d = b(), g = Is("", 2e3), m = e, M = Q(() => {
949
+ const n = t, f = ee("chatAppId"), { resetMessage: a, getMessage: s, setMessageText: i, setForceSendMessage: l, setMessageFile: c, resetMessageFile: r } = Ie(f), d = b(), g = Is("", 2e3), m = e, M = Q(() => {
938
950
  if (m.state == "disabled" || s().text == "" && !s().file || s().isRecording) return !0;
939
951
  });
940
952
  X(
@@ -969,14 +981,14 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
969
981
  }, v = (_) => {
970
982
  if (_.ctrlKey) {
971
983
  if (d.value instanceof HTMLTextAreaElement) {
972
- let x = d.value.selectionStart;
973
- x && (d.value.setRangeText(`
974
- `, x, x, "end"), i(d.value.value));
984
+ let j = d.value.selectionStart;
985
+ j && (d.value.setRangeText(`
986
+ `, j, j, "end"), i(d.value.value));
975
987
  }
976
988
  } else
977
989
  _.preventDefault(), p();
978
990
  }, p = () => {
979
- var x, N;
991
+ var j, N;
980
992
  const _ = b(s());
981
993
  if (_.value.text != "" || _.value.file) {
982
994
  const E = {
@@ -987,10 +999,10 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
987
999
  size: "",
988
1000
  reply: void 0
989
1001
  };
990
- _.value.file ? (E.type = "message." + _.value.file.type, E.url = _.value.file.url, E.filename = _.value.file.name, E.size = (x = _.value.file.size) == null ? void 0 : x.toString(), E.text = (N = _ == null ? void 0 : _.value) == null ? void 0 : N.text.trim()) : (E.type = "message.text", E.text = _.value.text.trim()), _.value.reply && (E.reply = _.value.reply), n("send", E), a(), d.value && d.value.focus();
1002
+ _.value.file ? (E.type = "message." + _.value.file.type, E.url = _.value.file.url, E.filename = _.value.file.name, E.size = (j = _.value.file.size) == null ? void 0 : j.toString(), E.text = (N = _ == null ? void 0 : _.value) == null ? void 0 : N.text.trim()) : (E.type = "message.text", E.text = _.value.text.trim()), _.value.reply && (E.reply = _.value.reply), n("send", E), a(), d.value && d.value.focus();
991
1003
  }
992
1004
  };
993
- return (_, x) => (r(), u("div", ws, [
1005
+ return (_, j) => (A(), u("div", ws, [
994
1006
  o("div", {
995
1007
  id: "chat-input-reply-line-" + D(f),
996
1008
  class: "chat-input__reply-line"
@@ -1004,7 +1016,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1004
1016
  disabled: e.state == "disabled" || D(s)().isRecording,
1005
1017
  ref_key: "refInput",
1006
1018
  ref: d,
1007
- "onUpdate:modelValue": x[0] || (x[0] = (N) => D(s)().text = N),
1019
+ "onUpdate:modelValue": j[0] || (j[0] = (N) => D(s)().text = N),
1008
1020
  class: "chat-input__input",
1009
1021
  placeholder: D(me)("component.ChatInput.InputPlaceholder"),
1010
1022
  onKeydown: Jn(v, ["enter"]),
@@ -1013,10 +1025,10 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1013
1025
  [ot, D(s)().text]
1014
1026
  ]),
1015
1027
  o("button", {
1016
- class: O(["chat-input__button", { "chat-input__button-disabled": M.value }]),
1028
+ class: z(["chat-input__button", { "chat-input__button-disabled": M.value }]),
1017
1029
  disabled: D(s)().isRecording,
1018
1030
  onClick: p
1019
- }, x[1] || (x[1] = [
1031
+ }, j[1] || (j[1] = [
1020
1032
  o("span", { class: "pi pi-send" }, null, -1)
1021
1033
  ]), 10, Ts)
1022
1034
  ]),
@@ -1025,7 +1037,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1025
1037
  ])
1026
1038
  ]));
1027
1039
  }
1028
- }), yg = /* @__PURE__ */ U(xs, [["__scopeId", "data-v-2b3be380"]]), Vs = { class: "chat-list" }, Ss = { class: "chat-list__title" }, Cs = {
1040
+ }), yg = /* @__PURE__ */ B(xs, [["__scopeId", "data-v-2b3be380"]]), Vs = { class: "chat-list" }, Ss = { class: "chat-list__title" }, Cs = {
1029
1041
  key: 0,
1030
1042
  class: "pi pi-minus"
1031
1043
  }, Os = {
@@ -1055,7 +1067,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1055
1067
  }, c = () => {
1056
1068
  const h = D(i);
1057
1069
  h.scrollHeight - h.scrollTop - h.clientHeight <= 0 && f("loadMoreChats");
1058
- }, A = (h) => {
1070
+ }, r = (h) => {
1059
1071
  n.chats.forEach((p) => {
1060
1072
  p.isSelected = !1, p.dialogs && p.dialogs.forEach((_) => {
1061
1073
  _.isSelected = !1;
@@ -1080,22 +1092,22 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1080
1092
  }).filter((h) => h.name.includes(a.value) || h.metadata.includes(a.value)), m = (h) => {
1081
1093
  a.value = h;
1082
1094
  }, M = (h) => f("action", h);
1083
- return (h, v) => (r(), u("div", Vs, [
1095
+ return (h, v) => (A(), u("div", Vs, [
1084
1096
  o("div", {
1085
1097
  class: "chat-list__title-container",
1086
1098
  onMouseleave: l
1087
1099
  }, [
1088
1100
  o("h2", Ss, k(D(me)("component.ChatList.Title")), 1),
1089
- e.actions.length ? (r(), u("button", {
1101
+ e.actions.length ? (A(), u("button", {
1090
1102
  key: 0,
1091
1103
  class: "chat-list__button-actions",
1092
1104
  onClick: v[0] || (v[0] = (p) => s.value = !s.value)
1093
1105
  }, [
1094
- s.value ? (r(), u("span", Cs)) : (r(), u("span", Os))
1106
+ s.value ? (A(), u("span", Cs)) : (A(), u("span", Os))
1095
1107
  ])) : y("", !0),
1096
1108
  F(Z, null, {
1097
1109
  default: K(() => [
1098
- s.value && e.actions ? (r(), R(D($e), {
1110
+ s.value && e.actions ? (A(), R(D($e), {
1099
1111
  key: 0,
1100
1112
  actions: e.actions,
1101
1113
  class: "chat-list__context-menu",
@@ -1106,7 +1118,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1106
1118
  })
1107
1119
  ], 32),
1108
1120
  ne(h.$slots, "sidebar", {}, void 0, !0),
1109
- e.filterEnabled ? (r(), R(D(ho), {
1121
+ e.filterEnabled ? (A(), R(D(ho), {
1110
1122
  key: 0,
1111
1123
  class: "chat-list__filter",
1112
1124
  onUpdate: m
@@ -1118,36 +1130,36 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1118
1130
  onScroll: c
1119
1131
  }, [
1120
1132
  o("div", zs, [
1121
- (r(!0), u(q, null, te(g().filter((p) => p.isFixedTop), (p) => (r(), R(D(On), {
1133
+ (A(!0), u(q, null, te(g().filter((p) => p.isFixedTop), (p) => (A(), R(D(On), {
1122
1134
  key: p.chatId,
1123
1135
  class: "chat-list__item",
1124
1136
  chat: p,
1125
- onSelect: A,
1137
+ onSelect: r,
1126
1138
  onAction: M
1127
1139
  }, null, 8, ["chat"]))), 128))
1128
1140
  ]),
1129
1141
  o("div", Ls, [
1130
- (r(!0), u(q, null, te(g().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (r(), R(D(On), {
1142
+ (A(!0), u(q, null, te(g().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (A(), R(D(On), {
1131
1143
  key: p.chatId,
1132
1144
  class: "chat-list__item",
1133
1145
  chat: p,
1134
- onSelect: A,
1146
+ onSelect: r,
1135
1147
  onAction: M
1136
1148
  }, null, 8, ["chat"]))), 128))
1137
1149
  ]),
1138
1150
  o("div", Us, [
1139
- (r(!0), u(q, null, te(g().filter((p) => p.isFixedBottom), (p) => (r(), R(D(On), {
1151
+ (A(!0), u(q, null, te(g().filter((p) => p.isFixedBottom), (p) => (A(), R(D(On), {
1140
1152
  key: p.chatId,
1141
1153
  class: "chat-list__item",
1142
1154
  chat: p,
1143
- onSelect: A,
1155
+ onSelect: r,
1144
1156
  onAction: M
1145
1157
  }, null, 8, ["chat"]))), 128))
1146
1158
  ])
1147
1159
  ], 544)
1148
1160
  ]));
1149
1161
  }
1150
- }, bg = /* @__PURE__ */ U(Bs, [["__scopeId", "data-v-816de0f1"]]), Rs = { class: "keyboard__container" }, Qs = ["onClick"], $s = /* @__PURE__ */ W({
1162
+ }, bg = /* @__PURE__ */ B(Bs, [["__scopeId", "data-v-816de0f1"]]), Rs = { class: "keyboard__container" }, Qs = ["onClick"], $s = /* @__PURE__ */ W({
1151
1163
  __name: "MessageKeyboard",
1152
1164
  props: {
1153
1165
  keyboard: {
@@ -1155,20 +1167,22 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1155
1167
  required: !0
1156
1168
  }
1157
1169
  },
1158
- setup(e) {
1159
- const t = ee("chatAppId"), { setMessageText: n, setForceSendMessage: f } = Ie(t), a = (s) => {
1160
- n(s.text), f(!0);
1170
+ emits: ["action"],
1171
+ setup(e, { emit: t }) {
1172
+ const n = t, f = ee("chatAppId"), { setMessageText: a, setForceSendMessage: s } = Ie(f), i = (l) => {
1173
+ l.action == null ? (a(l.text), s(!0)) : n("action", l.action);
1161
1174
  };
1162
- return (s, i) => (r(), u("div", Rs, [
1163
- (r(!0), u(q, null, te(e.keyboard, (l) => (r(), u("div", {
1175
+ return (l, c) => (A(), u("div", Rs, [
1176
+ (A(!0), u(q, null, te(e.keyboard, (r) => (A(), u("div", {
1164
1177
  class: "keyboard__key",
1165
- onClick: (c) => a(l)
1178
+ style: se({ "box-shadow": "0px 0px 10px 5px " + r.color }),
1179
+ onClick: (d) => i(r)
1166
1180
  }, [
1167
- o("p", null, k(l.text), 1)
1168
- ], 8, Qs))), 256))
1181
+ o("p", null, k(r.text), 1)
1182
+ ], 12, Qs))), 256))
1169
1183
  ]));
1170
1184
  }
1171
- }), Ys = /* @__PURE__ */ U($s, [["__scopeId", "data-v-d9788c16"]]), Ps = ["id"], Fs = ["onDblclick", "id"], qs = {
1185
+ }), Ys = /* @__PURE__ */ B($s, [["__scopeId", "data-v-ce84b813"]]), Ps = ["id"], Fs = ["onDblclick", "id"], qs = {
1172
1186
  key: 0,
1173
1187
  class: "message-feed__unread-amount"
1174
1188
  }, Hs = /* @__PURE__ */ W({
@@ -1206,16 +1220,19 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1206
1220
  "loadMoreDown",
1207
1221
  "messageVisible",
1208
1222
  "clickRepliedMessage",
1209
- "forceScrollToBottom"
1223
+ "forceScrollToBottom",
1224
+ "keyboardAction"
1210
1225
  ],
1211
1226
  setup(e, { emit: t }) {
1212
- const n = b(), f = b(), a = b(), s = b(!1), i = b(!1), l = e, c = ee("chatAppId"), { setReply: A, getMessage: d } = Ie(c), g = t, m = Q(() => !!(i.value && l.objects.length > 0 && l.objects[l.objects.length - 1].keyboard)), M = (T = !0) => {
1213
- const j = D(f);
1214
- let L = 0;
1215
- a.value && (L = a.value.$el.clientHeight);
1216
- const z = 100, V = j.scrollHeight - j.scrollTop - j.clientHeight;
1217
- V < z + L ? (s.value = !1, i.value = !0) : (s.value = !0, i.value = !1), j.scrollTop === 0 && T && g("loadMore"), V <= 0 && T && g("loadMoreDown");
1218
- }, h = (T) => ({
1227
+ const n = b(), f = b(), a = b(), s = b(!1), i = b(!1), l = e, c = ee("chatAppId"), { setReply: r, getMessage: d } = Ie(c), g = t, m = Q(() => !!(i.value && l.objects.length > 0 && l.objects[l.objects.length - 1].keyboard)), M = (T) => {
1228
+ g("keyboardAction", T);
1229
+ }, h = (T = !0) => {
1230
+ const O = D(f);
1231
+ let V = 0;
1232
+ a.value && (V = a.value.$el.clientHeight);
1233
+ const x = 100, U = O.scrollHeight - O.scrollTop - O.clientHeight;
1234
+ U < x + V ? (s.value = !1, i.value = !0) : (s.value = !0, i.value = !1), O.scrollTop === 0 && T && g("loadMore"), U <= 0 && T && g("loadMoreDown");
1235
+ }, v = (T) => ({
1219
1236
  "message.text": f1,
1220
1237
  "message.image": Wu,
1221
1238
  "message.file": Cu,
@@ -1226,48 +1243,48 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1226
1243
  "system.date": T1,
1227
1244
  "message.typing": Gf
1228
1245
  })[T];
1229
- function v() {
1246
+ function p() {
1230
1247
  wt(function() {
1231
1248
  const T = D(f);
1232
1249
  T.scrollTop = T.scrollHeight;
1233
1250
  });
1234
1251
  }
1235
- function p() {
1236
- g("forceScrollToBottom"), v();
1252
+ function _() {
1253
+ g("forceScrollToBottom"), p();
1237
1254
  }
1238
1255
  X(
1239
1256
  () => l.scrollToBottom,
1240
1257
  () => {
1241
- l.scrollToBottom && v();
1258
+ l.scrollToBottom && p();
1242
1259
  },
1243
1260
  { immediate: !0 }
1244
1261
  );
1245
- const _ = (T) => {
1262
+ const j = (T) => {
1246
1263
  g("messageAction", T);
1247
- }, x = (T) => {
1264
+ }, N = (T) => {
1248
1265
  g("clickRepliedMessage", T);
1249
- }, N = (T, j) => {
1250
- l.enableDoubleClickReply && (T == null || T.preventDefault(), j.type.indexOf("system") == -1 && j.type.indexOf("typing") == -1 && A({
1251
- messageId: j.messageId,
1252
- type: j.type,
1253
- text: j.text,
1254
- filename: j.filename,
1255
- url: j.url
1266
+ }, E = (T, O) => {
1267
+ l.enableDoubleClickReply && (T == null || T.preventDefault(), O.type.indexOf("system") == -1 && O.type.indexOf("typing") == -1 && r({
1268
+ messageId: O.messageId,
1269
+ type: O.type,
1270
+ text: O.text,
1271
+ filename: O.filename,
1272
+ url: O.url
1256
1273
  }));
1257
- }, E = (T) => {
1258
- T.forEach((j) => {
1259
- j.isIntersecting && g("messageVisible", JSON.parse(j.target.id));
1274
+ }, w = (T) => {
1275
+ T.forEach((O) => {
1276
+ O.isIntersecting && g("messageVisible", JSON.parse(O.target.id));
1260
1277
  });
1261
- }, w = {
1278
+ }, S = {
1262
1279
  root: document.getElementById("feed-container-" + c),
1263
1280
  rootMargin: "5px",
1264
1281
  threshold: 0
1265
- }, S = new IntersectionObserver(E, w);
1282
+ }, L = new IntersectionObserver(w, S);
1266
1283
  return X(
1267
1284
  () => l.objects,
1268
1285
  () => {
1269
1286
  wt(() => {
1270
- M(!1), n.value = document.querySelectorAll(".tracking-message"), n.value.forEach((T) => S.observe(T));
1287
+ h(!1), n.value = document.querySelectorAll(".tracking-message"), n.value.forEach((T) => L.observe(T));
1271
1288
  });
1272
1289
  },
1273
1290
  { immediate: !0 }
@@ -1276,36 +1293,36 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1276
1293
  () => {
1277
1294
  var T;
1278
1295
  if (l.scrollTo) {
1279
- const j = l.scrollTo;
1280
- let L = document.getElementById(j), z = document.getElementById("feed-container-" + c);
1281
- L instanceof HTMLElement && z instanceof HTMLElement && (z.scrollTop = L.offsetTop + L.clientHeight / 2 - z.clientHeight / 2), (T = document.getElementById(j)) == null || T.children[0].classList.add("focused-message"), setTimeout(() => {
1282
- var V;
1283
- (V = document.getElementById(j)) == null || V.children[0].classList.remove("focused-message");
1296
+ const O = l.scrollTo;
1297
+ let V = document.getElementById(O), x = document.getElementById("feed-container-" + c);
1298
+ V instanceof HTMLElement && x instanceof HTMLElement && (x.scrollTop = V.offsetTop + V.clientHeight / 2 - x.clientHeight / 2), (T = document.getElementById(O)) == null || T.children[0].classList.add("focused-message"), setTimeout(() => {
1299
+ var U;
1300
+ (U = document.getElementById(O)) == null || U.children[0].classList.remove("focused-message");
1284
1301
  }, 2e3);
1285
1302
  }
1286
1303
  }
1287
- ), (T, j) => (r(), u(q, null, [
1304
+ ), (T, O) => (A(), u(q, null, [
1288
1305
  o("div", {
1289
1306
  ref_key: "refFeed",
1290
1307
  ref: f,
1291
1308
  class: "message-feed",
1292
- onScroll: j[0] || (j[0] = (L) => M()),
1309
+ onScroll: O[0] || (O[0] = (V) => h()),
1293
1310
  id: "feed-container-" + D(c)
1294
1311
  }, [
1295
- (r(!0), u(q, null, te(e.objects, (L) => (r(), u("div", {
1296
- onDblclick: (z) => N(z, L),
1297
- id: JSON.stringify(L),
1312
+ (A(!0), u(q, null, te(e.objects, (V) => (A(), u("div", {
1313
+ onDblclick: (x) => E(x, V),
1314
+ id: JSON.stringify(V),
1298
1315
  class: "tracking-message"
1299
1316
  }, [
1300
- (r(), R(Xf(h(L.type)), {
1301
- key: L.messageId,
1317
+ (A(), R(Xf(v(V.type)), {
1318
+ key: V.messageId,
1302
1319
  class: "message-feed__message",
1303
- message: L,
1304
- onAction: _,
1305
- onReply: x
1320
+ message: V,
1321
+ onAction: j,
1322
+ onReply: N
1306
1323
  }, null, 40, ["message"]))
1307
1324
  ], 40, Fs))), 256)),
1308
- e.typing ? (r(), R(D(Gf), {
1325
+ e.typing ? (A(), R(D(Gf), {
1309
1326
  key: 0,
1310
1327
  message: {
1311
1328
  subText: e.typing.title,
@@ -1314,31 +1331,32 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1314
1331
  }, null, 8, ["message"])) : y("", !0),
1315
1332
  F(Z, null, {
1316
1333
  default: K(() => [
1317
- m.value ? (r(), R(Ys, {
1334
+ m.value ? (A(), R(Ys, {
1318
1335
  key: 0,
1319
1336
  ref_key: "keyboardRef",
1320
1337
  ref: a,
1321
1338
  class: "message-feed__keyboard",
1322
- keyboard: e.objects[e.objects.length - 1].keyboard
1339
+ keyboard: e.objects[e.objects.length - 1].keyboard,
1340
+ onAction: M
1323
1341
  }, null, 8, ["keyboard"])) : y("", !0)
1324
1342
  ]),
1325
1343
  _: 1
1326
1344
  }),
1327
1345
  F(Z, null, {
1328
1346
  default: K(() => [
1329
- s.value ? (r(), u("button", {
1347
+ s.value ? (A(), u("button", {
1330
1348
  key: 0,
1331
1349
  class: "message-feed__button-down",
1332
- onClick: p
1350
+ onClick: _
1333
1351
  }, [
1334
- e.buttonParams ? (r(), u("div", qs, k(e.buttonParams.unreadAmount), 1)) : y("", !0),
1335
- j[1] || (j[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
1352
+ e.buttonParams ? (A(), u("div", qs, k(e.buttonParams.unreadAmount), 1)) : y("", !0),
1353
+ O[1] || (O[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
1336
1354
  ])) : y("", !0)
1337
1355
  ]),
1338
1356
  _: 1
1339
1357
  })
1340
1358
  ], 40, Ps),
1341
- D(d)().reply ? (r(), R(_e, {
1359
+ D(d)().reply ? (A(), R(_e, {
1342
1360
  key: 0,
1343
1361
  to: "#chat-input-reply-line-" + D(c)
1344
1362
  }, [
@@ -1349,7 +1367,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1349
1367
  ], 8, ["to"])) : y("", !0)
1350
1368
  ], 64));
1351
1369
  }
1352
- }), Mg = /* @__PURE__ */ U(Hs, [["__scopeId", "data-v-46fae51b"]]), Ws = {
1370
+ }), Mg = /* @__PURE__ */ B(Hs, [["__scopeId", "data-v-8b5a57bb"]]), Ws = {
1353
1371
  key: 0,
1354
1372
  class: "profile__container"
1355
1373
  }, Ks = {
@@ -1364,11 +1382,11 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1364
1382
  }
1365
1383
  },
1366
1384
  setup(e) {
1367
- return (t, n) => e.user ? (r(), u("div", Ws, [
1368
- e.user.avatar ? (r(), u("div", Ks, [
1385
+ return (t, n) => e.user ? (A(), u("div", Ws, [
1386
+ e.user.avatar ? (A(), u("div", Ks, [
1369
1387
  o("span", {
1370
1388
  class: "profile__status",
1371
- style: ie({ backgroundColor: e.user.status })
1389
+ style: se({ backgroundColor: e.user.status })
1372
1390
  }, null, 4),
1373
1391
  o("img", {
1374
1392
  src: e.user.avatar,
@@ -1381,7 +1399,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1381
1399
  o("p", Xs, k(e.user.phone), 1)
1382
1400
  ])) : y("", !0);
1383
1401
  }
1384
- }, _g = /* @__PURE__ */ U(ei, [["__scopeId", "data-v-6a09e430"]]), ti = ["id"], ni = {
1402
+ }, _g = /* @__PURE__ */ B(ei, [["__scopeId", "data-v-6a09e430"]]), ti = ["id"], ni = {
1385
1403
  __name: "ButtonContextMenu",
1386
1404
  props: {
1387
1405
  actions: {
@@ -1420,7 +1438,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1420
1438
  s.value.$el.style.display = "none", a("click", m);
1421
1439
  }, c = () => {
1422
1440
  n.disabled || (n.mode == "click" && (s.value.$el.style.display = "inherit"), a("buttonClick"));
1423
- }, A = () => {
1441
+ }, r = () => {
1424
1442
  n.mode == "hover" && !n.disabled && (s.value.$el.style.display = "inherit");
1425
1443
  }, d = () => {
1426
1444
  n.mode == "hover" && (s.value.$el.style.display = "none");
@@ -1451,22 +1469,22 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1451
1469
  n.menuSide == "top" && (M = (v = document.getElementById("container-" + f)) == null ? void 0 : v.offsetWidth, h = (p = document.getElementById("context-menu-" + f)) == null ? void 0 : p.offsetHeight, s.value.$el.style.left = m[n.menuSide].w * M + "px"), n.menuSide == "bottom" && (M = document.getElementById("context-menu-" + f).offsetWidth, h = document.getElementById("container-" + f).offsetHeight, s.value.$el.style.right = m[n.menuSide].w * M + "px"), n.menuSide == "left" && (M = document.getElementById("container-" + f).offsetWidth, h = document.getElementById("context-menu-" + f).offsetHeight, s.value.$el.style.right = m[n.menuSide].w * M + "px"), n.menuSide == "right" && (M = document.getElementById("container-" + f).offsetWidth, h = document.getElementById("context-menu-" + f).offsetHeight, s.value.$el.style.left = m[n.menuSide].w * M + "px"), s.value.$el.style.top = m[n.menuSide].h * h + "px", s.value.$el.style.display = "none", document.addEventListener("click", g);
1452
1470
  }), Ke(() => {
1453
1471
  document.removeEventListener("click", g);
1454
- }), (m, M) => (r(), u("div", {
1472
+ }), (m, M) => (A(), u("div", {
1455
1473
  id: "container-" + D(f),
1456
1474
  ref_key: "actionScope",
1457
1475
  ref: i,
1458
1476
  style: { position: "relative", width: "fit-content" }
1459
1477
  }, [
1460
1478
  o("div", {
1461
- class: O(["button", {
1479
+ class: z(["button", {
1462
1480
  "disabled-button": e.disabled
1463
1481
  }]),
1464
1482
  onClick: c,
1465
- onMouseover: A,
1483
+ onMouseover: r,
1466
1484
  onMouseout: d
1467
1485
  }, [
1468
1486
  o("span", {
1469
- class: O(e.buttonClass)
1487
+ class: z(e.buttonClass)
1470
1488
  }, k(e.buttonTitle), 3)
1471
1489
  ], 34),
1472
1490
  F(D($e), {
@@ -1474,13 +1492,13 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1474
1492
  ref_key: "contextMenu",
1475
1493
  ref: s,
1476
1494
  actions: e.actions,
1477
- onMouseover: A,
1495
+ onMouseover: r,
1478
1496
  onMouseout: d,
1479
1497
  onClick: l
1480
1498
  }, null, 8, ["id", "actions"])
1481
1499
  ], 8, ti));
1482
1500
  }
1483
- }, ga = /* @__PURE__ */ U(ni, [["__scopeId", "data-v-a89960f4"]]), ut = b([]), of = (e) => {
1501
+ }, ga = /* @__PURE__ */ B(ni, [["__scopeId", "data-v-a89960f4"]]), ut = b([]), of = (e) => {
1484
1502
  const t = b(0);
1485
1503
  let n = ut.value.find(({ id: a }) => a == e);
1486
1504
  return n != null ? t.value = ut.value.indexOf(n) : (ut.value.push({
@@ -1494,7 +1512,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1494
1512
  const n = t, f = ee("chatAppId"), { getTheme: a } = of(f), s = (i) => {
1495
1513
  i.target.classList.contains("modal__overlay") && n("close");
1496
1514
  };
1497
- return (i, l) => (r(), u("div", {
1515
+ return (i, l) => (A(), u("div", {
1498
1516
  class: "modal__overlay",
1499
1517
  onClick: s,
1500
1518
  onKeyup: l[1] || (l[1] = Jn((c) => n("close"), ["esc"])),
@@ -1513,7 +1531,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1513
1531
  ])
1514
1532
  ], 40, fi));
1515
1533
  }
1516
- }, lf = /* @__PURE__ */ U(si, [["__scopeId", "data-v-1366b968"]]), ii = { class: "preview__container" }, oi = { class: "preview__block" }, li = ["src"], ri = ["src"], Ai = {
1534
+ }, lf = /* @__PURE__ */ B(si, [["__scopeId", "data-v-1366b968"]]), ii = { class: "preview__container" }, oi = { class: "preview__block" }, li = ["src"], ri = ["src"], Ai = {
1517
1535
  key: 2,
1518
1536
  style: { display: "flex", gap: "5px" }
1519
1537
  }, ci = ["src"], ui = { class: "pi pi-play" }, di = { class: "pi pi-pause" }, gi = { key: 3 }, mi = { class: "preview__control-block" }, pi = { class: "preview__information" }, hi = { class: "preview__name" }, vi = {
@@ -1535,7 +1553,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1535
1553
  },
1536
1554
  emits: ["reset"],
1537
1555
  setup(e, { emit: t }) {
1538
- const n = t, f = b(), a = b(), s = b(!1), i = b(0), l = b(0), c = b(!1), A = () => c.value = !1;
1556
+ const n = t, f = b(), a = b(), s = b(!1), i = b(0), l = b(0), c = b(!1), r = () => c.value = !1;
1539
1557
  function d() {
1540
1558
  f.value && (s.value ? f.value.pause() : f.value.play(), s.value = !s.value);
1541
1559
  }
@@ -1555,9 +1573,9 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1555
1573
  a.value && (a.value.currentTime = 0, i.value = a.value.duration);
1556
1574
  }, { once: !0 })));
1557
1575
  });
1558
- }), (h, v) => (r(), u("div", ii, [
1576
+ }), (h, v) => (A(), u("div", ii, [
1559
1577
  o("div", oi, [
1560
- e.fileInfo.isImage ? (r(), u("div", {
1578
+ e.fileInfo.isImage ? (A(), u("div", {
1561
1579
  key: 0,
1562
1580
  style: { position: "relative" },
1563
1581
  onClick: v[0] || (v[0] = (p) => c.value = !0)
@@ -1570,7 +1588,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1570
1588
  v[3] || (v[3] = o("div", { class: "preview__shadow" }, [
1571
1589
  o("span", { class: "pi pi-plus-circle" })
1572
1590
  ], -1))
1573
- ])) : e.fileInfo.isVideo ? (r(), u("div", {
1591
+ ])) : e.fileInfo.isVideo ? (A(), u("div", {
1574
1592
  key: 1,
1575
1593
  onClick: v[1] || (v[1] = (p) => c.value = !0),
1576
1594
  style: { position: "relative" }
@@ -1584,7 +1602,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1584
1602
  v[4] || (v[4] = o("div", { class: "preview__shadow" }, [
1585
1603
  o("span", { class: "pi pi-play" })
1586
1604
  ], -1))
1587
- ])) : e.fileInfo.isAudio ? (r(), u("div", Ai, [
1605
+ ])) : e.fileInfo.isAudio ? (A(), u("div", Ai, [
1588
1606
  v[5] || (v[5] = o("span", {
1589
1607
  class: "pi pi-headphones",
1590
1608
  style: { "font-size": "1rem", margin: "auto" }
@@ -1605,7 +1623,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1605
1623
  [We, s.value]
1606
1624
  ])
1607
1625
  ])
1608
- ])) : (r(), u("div", gi, v[6] || (v[6] = [
1626
+ ])) : (A(), u("div", gi, v[6] || (v[6] = [
1609
1627
  o("span", {
1610
1628
  class: "pi pi-file",
1611
1629
  style: { "font-size": "2.5rem" }
@@ -1615,9 +1633,9 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1615
1633
  o("div", mi, [
1616
1634
  o("div", pi, [
1617
1635
  o("span", hi, k(e.fileInfo.fileName), 1),
1618
- !e.fileInfo.isAudio && !e.fileInfo.isVideo ? (r(), u("span", vi, k(e.fileInfo.fileSize), 1)) : y("", !0),
1619
- e.fileInfo.isAudio ? (r(), u("span", yi, k(`${m.value} / ${M.value}`), 1)) : y("", !0),
1620
- e.fileInfo.isVideo ? (r(), u("span", bi, k(M.value), 1)) : y("", !0)
1636
+ !e.fileInfo.isAudio && !e.fileInfo.isVideo ? (A(), u("span", vi, k(e.fileInfo.fileSize), 1)) : y("", !0),
1637
+ e.fileInfo.isAudio ? (A(), u("span", yi, k(`${m.value} / ${M.value}`), 1)) : y("", !0),
1638
+ e.fileInfo.isVideo ? (A(), u("span", bi, k(M.value), 1)) : y("", !0)
1621
1639
  ]),
1622
1640
  o("span", {
1623
1641
  class: "pi pi-times preview__reset",
@@ -1625,22 +1643,22 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1625
1643
  onClick: v[2] || (v[2] = (p) => n("reset"))
1626
1644
  })
1627
1645
  ]),
1628
- (r(), R(_e, { to: "body" }, [
1646
+ (A(), R(_e, { to: "body" }, [
1629
1647
  F(Z, { name: "modal-fade" }, {
1630
1648
  default: K(() => [
1631
- c.value ? (r(), R(lf, {
1649
+ c.value ? (A(), R(lf, {
1632
1650
  key: 0,
1633
- onClose: A
1651
+ onClose: r
1634
1652
  }, {
1635
1653
  default: K(() => [
1636
- e.fileInfo.isVideo ? (r(), u("video", {
1654
+ e.fileInfo.isVideo ? (A(), u("video", {
1637
1655
  key: 0,
1638
1656
  class: "preview__modal-video",
1639
1657
  src: e.fileInfo.previewUrl,
1640
1658
  controls: "",
1641
1659
  autoplay: ""
1642
1660
  }, null, 8, Mi)) : y("", !0),
1643
- e.fileInfo.isImage ? (r(), u("img", {
1661
+ e.fileInfo.isImage ? (A(), u("img", {
1644
1662
  key: 1,
1645
1663
  class: "preview__modal-image",
1646
1664
  src: e.fileInfo.previewUrl,
@@ -1655,7 +1673,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1655
1673
  ]))
1656
1674
  ]));
1657
1675
  }
1658
- }), In = /* @__PURE__ */ U(Ii, [["__scopeId", "data-v-b2d3aca1"]]), ma = (e) => {
1676
+ }), In = /* @__PURE__ */ B(Ii, [["__scopeId", "data-v-b2d3aca1"]]), ma = (e) => {
1659
1677
  let t = "file";
1660
1678
  return e.startsWith("image/") ? t = "image" : e.startsWith("video/") ? t = "video" : e.startsWith("audio/") && (t = "audio"), t;
1661
1679
  }, wi = (e) => {
@@ -1707,7 +1725,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1707
1725
  },
1708
1726
  emits: ["fileUploaded"],
1709
1727
  setup(e, { emit: t }) {
1710
- const n = e, f = b(""), a = b(), s = b(), i = ee("chatAppId"), { setMessageFile: l, resetMessageFile: c, getMessage: A } = Ie(i), d = [
1728
+ const n = e, f = b(""), a = b(), s = b(), i = ee("chatAppId"), { setMessageFile: l, resetMessageFile: c, getMessage: r } = Ie(i), d = [
1711
1729
  {
1712
1730
  action: "audio/*",
1713
1731
  title: "Аудио",
@@ -1728,14 +1746,14 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1728
1746
  title: "Файл",
1729
1747
  prime: "file"
1730
1748
  }
1731
- ], g = Q(() => !A().file), m = () => {
1749
+ ], g = Q(() => !r().file), m = () => {
1732
1750
  c(), s.value = void 0, f.value = "";
1733
1751
  }, M = async () => {
1734
1752
  var p, _;
1735
1753
  if (m(), (p = a.value) != null && p.files) {
1736
1754
  f.value = "uploading";
1737
- const x = typeof n.filebumpUrl == "string" ? n.filebumpUrl : null;
1738
- await wn(x, (_ = a.value) == null ? void 0 : _.files[0]).then((N) => {
1755
+ const j = typeof n.filebumpUrl == "string" ? n.filebumpUrl : null;
1756
+ await wn(j, (_ = a.value) == null ? void 0 : _.files[0]).then((N) => {
1739
1757
  f.value = N.status, N.status == "success" && (l({
1740
1758
  url: N.url,
1741
1759
  name: N.name,
@@ -1756,12 +1774,12 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1756
1774
  }, v = () => {
1757
1775
  a.value && g && n.state == "active" && a.value.click();
1758
1776
  };
1759
- return (p, _) => (r(), u(q, null, [
1760
- f.value === "uploading" ? (r(), u("div", ki, _[0] || (_[0] = [
1777
+ return (p, _) => (A(), u(q, null, [
1778
+ f.value === "uploading" ? (A(), u("div", ki, _[0] || (_[0] = [
1761
1779
  o("p", null, "Загрузка файла...", -1)
1762
- ]))) : f.value === "error" ? (r(), u("div", Ni, _[1] || (_[1] = [
1780
+ ]))) : f.value === "error" ? (A(), u("div", Ni, _[1] || (_[1] = [
1763
1781
  o("p", null, "Ошибка при загрузке файла.", -1)
1764
- ]))) : D(A)().isRecording ? y("", !0) : (r(), R(ga, {
1782
+ ]))) : D(r)().isRecording ? y("", !0) : (A(), R(ga, {
1765
1783
  key: 2,
1766
1784
  actions: d,
1767
1785
  mode: "hover",
@@ -1778,11 +1796,11 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1778
1796
  type: "file",
1779
1797
  onChange: M
1780
1798
  }, null, 544),
1781
- D(A)().file ? (r(), R(_e, {
1799
+ D(r)().file ? (A(), R(_e, {
1782
1800
  key: 3,
1783
1801
  to: "#chat-input-file-line-" + D(i)
1784
1802
  }, [
1785
- s.value ? (r(), R(In, {
1803
+ s.value ? (A(), R(In, {
1786
1804
  key: 0,
1787
1805
  "file-info": s.value,
1788
1806
  onReset: m
@@ -1812,19 +1830,19 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1812
1830
  return le(() => {
1813
1831
  const l = a();
1814
1832
  i(l);
1815
- }), (l, c) => e.show ? (r(), u("div", Di, [
1833
+ }), (l, c) => e.show ? (A(), u("div", Di, [
1816
1834
  o("select", {
1817
- onChange: c[0] || (c[0] = (A) => s(A))
1835
+ onChange: c[0] || (c[0] = (r) => s(r))
1818
1836
  }, [
1819
- (r(!0), u(q, null, te(t.themes, (A, d) => (r(), u("option", {
1837
+ (A(!0), u(q, null, te(t.themes, (r, d) => (A(), u("option", {
1820
1838
  key: d,
1821
- value: A.code,
1822
- selected: A.default === !0
1823
- }, k(A.name), 9, Ei))), 128))
1839
+ value: r.code,
1840
+ selected: r.default === !0
1841
+ }, k(r.name), 9, Ei))), 128))
1824
1842
  ], 32)
1825
1843
  ])) : y("", !0);
1826
1844
  }
1827
- }, wg = /* @__PURE__ */ U(Ti, [["__scopeId", "data-v-94e984d6"]]), ji = ["onClick"], xi = ["src", "alt"], Vi = { key: 1 }, Si = ["onClick"], Ci = ["src", "alt"], Oi = { key: 1 }, zi = {
1845
+ }, wg = /* @__PURE__ */ B(Ti, [["__scopeId", "data-v-94e984d6"]]), ji = ["onClick"], xi = ["src", "alt"], Vi = { key: 1 }, Si = ["onClick"], Ci = ["src", "alt"], Oi = { key: 1 }, zi = {
1828
1846
  __name: "SideBar",
1829
1847
  props: {
1830
1848
  sidebarItems: {
@@ -1841,64 +1859,64 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1841
1859
  emits: ["selectItem"],
1842
1860
  setup(e, { emit: t }) {
1843
1861
  const f = Ba(e, "sidebarItems"), a = t, s = (l) => {
1844
- const c = f.value.find((A) => A.itemId === l);
1862
+ const c = f.value.find((r) => r.itemId === l);
1845
1863
  a("selectItem", c);
1846
1864
  }, i = (l) => {
1847
1865
  const c = l.split(" ");
1848
1866
  return c.length > 2 ? c.slice(0, 2).join(" ") : l;
1849
1867
  };
1850
- return (l, c) => (r(), u("div", {
1851
- class: O(["sidebar__container", { "sidebar-horizontal__container": e.horizontal }])
1868
+ return (l, c) => (A(), u("div", {
1869
+ class: z(["sidebar__container", { "sidebar-horizontal__container": e.horizontal }])
1852
1870
  }, [
1853
1871
  o("ul", {
1854
- class: O(["sidebar__list", { "sidebar-horizontal__list": e.horizontal }])
1872
+ class: z(["sidebar__list", { "sidebar-horizontal__list": e.horizontal }])
1855
1873
  }, [
1856
- (r(!0), u(q, null, te(f.value.filter((A) => !A.isFixedBottom), (A, d) => (r(), u("li", {
1874
+ (A(!0), u(q, null, te(f.value.filter((r) => !r.isFixedBottom), (r, d) => (A(), u("li", {
1857
1875
  key: d,
1858
- class: O(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
1859
- onClick: (g) => s(A.itemId)
1876
+ class: z(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
1877
+ onClick: (g) => s(r.itemId)
1860
1878
  }, [
1861
1879
  o("img", {
1862
- src: A.icon,
1863
- alt: A.name,
1864
- class: O(["sidebar__image", {
1865
- "sidebar__image--active": A.selected === !0,
1880
+ src: r.icon,
1881
+ alt: r.name,
1882
+ class: z(["sidebar__image", {
1883
+ "sidebar__image--active": r.selected === !0,
1866
1884
  "sidebar-horizontal__image": e.horizontal
1867
1885
  }])
1868
1886
  }, null, 10, xi),
1869
- A.notificationCount ? (r(), u("span", {
1887
+ r.notificationCount ? (A(), u("span", {
1870
1888
  key: 0,
1871
- style: ie({ backgroundColor: A.notificationColor ? A.notificationColor : "red" })
1872
- }, k(A.notificationCount > 99 ? "99+" : A.notificationCount), 5)) : y("", !0),
1873
- A.name ? (r(), u("p", Vi, k(i(A.name)), 1)) : y("", !0)
1889
+ style: se({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
1890
+ }, k(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : y("", !0),
1891
+ r.name ? (A(), u("p", Vi, k(i(r.name)), 1)) : y("", !0)
1874
1892
  ], 10, ji))), 128))
1875
1893
  ], 2),
1876
1894
  o("ul", {
1877
- class: O(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": e.horizontal }])
1895
+ class: z(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": e.horizontal }])
1878
1896
  }, [
1879
- (r(!0), u(q, null, te(f.value.filter((A) => A.isFixedBottom), (A, d) => (r(), u("li", {
1897
+ (A(!0), u(q, null, te(f.value.filter((r) => r.isFixedBottom), (r, d) => (A(), u("li", {
1880
1898
  key: d,
1881
- class: O(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
1882
- onClick: (g) => s(A.itemId)
1899
+ class: z(["sidebar__item", { "sidebar-horizontal__item": e.horizontal }]),
1900
+ onClick: (g) => s(r.itemId)
1883
1901
  }, [
1884
1902
  o("img", {
1885
- src: A.icon,
1886
- alt: A.name,
1887
- class: O(["sidebar__image", {
1888
- "sidebar__image--active": A.selected === !0,
1903
+ src: r.icon,
1904
+ alt: r.name,
1905
+ class: z(["sidebar__image", {
1906
+ "sidebar__image--active": r.selected === !0,
1889
1907
  "sidebar-horizontal__image": e.horizontal
1890
1908
  }])
1891
1909
  }, null, 10, Ci),
1892
- A.notificationCount ? (r(), u("span", {
1910
+ r.notificationCount ? (A(), u("span", {
1893
1911
  key: 0,
1894
- style: ie({ backgroundColor: A.notificationColor ? A.notificationColor : "red" })
1895
- }, k(A.notificationCount > 99 ? "99+" : A.notificationCount), 5)) : y("", !0),
1896
- A.name ? (r(), u("p", Oi, k(i(A.name)), 1)) : y("", !0)
1912
+ style: se({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
1913
+ }, k(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : y("", !0),
1914
+ r.name ? (A(), u("p", Oi, k(i(r.name)), 1)) : y("", !0)
1897
1915
  ], 10, Si))), 128))
1898
1916
  ], 2)
1899
1917
  ], 2));
1900
1918
  }
1901
- }, kg = /* @__PURE__ */ U(zi, [["__scopeId", "data-v-794e9ba4"]]), Li = { class: "chat-panel" }, Ui = { class: "chat-panel__title-container" }, Bi = {
1919
+ }, kg = /* @__PURE__ */ B(zi, [["__scopeId", "data-v-794e9ba4"]]), Li = { class: "chat-panel" }, Ui = { class: "chat-panel__title-container" }, Bi = {
1902
1920
  key: 0,
1903
1921
  class: "chat-panel__title"
1904
1922
  }, Ri = {
@@ -1912,9 +1930,9 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1912
1930
  },
1913
1931
  emits: ["close-panel"],
1914
1932
  setup(e, { emit: t }) {
1915
- return (n, f) => (r(), u("div", Li, [
1933
+ return (n, f) => (A(), u("div", Li, [
1916
1934
  o("div", Ui, [
1917
- e.title ? (r(), u("p", Bi, k(e.title), 1)) : y("", !0),
1935
+ e.title ? (A(), u("p", Bi, k(e.title), 1)) : y("", !0),
1918
1936
  o("button", {
1919
1937
  class: "chat-panel__button-close",
1920
1938
  onClick: f[0] || (f[0] = (a) => n.$emit("close-panel"))
@@ -1927,7 +1945,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1927
1945
  ])
1928
1946
  ]));
1929
1947
  }
1930
- }, Ng = /* @__PURE__ */ U(Ri, [["__scopeId", "data-v-be32224f"]]), Qi = {
1948
+ }, Ng = /* @__PURE__ */ B(Ri, [["__scopeId", "data-v-be32224f"]]), Qi = {
1931
1949
  key: 0,
1932
1950
  class: "channels__selected"
1933
1951
  }, $i = ["src"], Yi = { class: "channels__title" }, Pi = {
@@ -1953,21 +1971,21 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1953
1971
  },
1954
1972
  emits: ["selectChannel"],
1955
1973
  setup(e, { emit: t }) {
1956
- const n = e, f = ee("chatAppId"), { getMessage: a } = Ie(f), s = t, l = b(n.channels.find((A) => A.type === "default")), c = (A) => {
1957
- l.value = A, s("selectChannel", l.value);
1974
+ const n = e, f = ee("chatAppId"), { getMessage: a } = Ie(f), s = t, l = b(n.channels.find((r) => r.type === "default")), c = (r) => {
1975
+ l.value = r, s("selectChannel", l.value);
1958
1976
  };
1959
- return (A, d) => D(a)().isRecording ? y("", !0) : (r(), u("div", {
1977
+ return (r, d) => D(a)().isRecording ? y("", !0) : (A(), u("div", {
1960
1978
  key: 0,
1961
- class: O(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
1979
+ class: z(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
1962
1980
  }, [
1963
- l.value ? (r(), u("div", Qi, [
1964
- l.value.icon ? (r(), u("img", {
1981
+ l.value ? (A(), u("div", Qi, [
1982
+ l.value.icon ? (A(), u("img", {
1965
1983
  key: 0,
1966
1984
  src: l.value.icon,
1967
1985
  class: "channels__icon"
1968
1986
  }, null, 8, $i)) : y("", !0),
1969
1987
  o("span", Yi, k(l.value.title), 1)
1970
- ])) : (r(), u("span", Pi, k(D(me)("component.ChannelSelector.Placeholder")), 1)),
1988
+ ])) : (A(), u("span", Pi, k(D(me)("component.ChannelSelector.Placeholder")), 1)),
1971
1989
  F(ga, {
1972
1990
  actions: e.channels,
1973
1991
  mode: e.mode,
@@ -1978,7 +1996,7 @@ const ws = { class: "chat-input__container" }, ks = ["id"], Ns = ["id"], Ds = {
1978
1996
  }, null, 8, ["actions", "mode", "disabled"])
1979
1997
  ], 2));
1980
1998
  }
1981
- }, Dg = /* @__PURE__ */ U(Fi, [["__scopeId", "data-v-fe3981e6"]]);
1999
+ }, Dg = /* @__PURE__ */ B(Fi, [["__scopeId", "data-v-fe3981e6"]]);
1982
2000
  function Eg(e) {
1983
2001
  if (!e || e === "") return;
1984
2002
  const t = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), f = Math.floor((n - t) / 1e3), a = Math.floor(f / 60), s = Math.floor(a / 60), i = Math.floor(s / 24);
@@ -2034,19 +2052,19 @@ const Tg = (e, t = null) => {
2034
2052
  [`tooltip--${s.position}`]: !0
2035
2053
  })), l = () => {
2036
2054
  if (f.value && a.value) {
2037
- const A = f.value.getBoundingClientRect(), d = {
2038
- left: { top: A.top, left: (A == null ? void 0 : A.left) - 10 },
2039
- right: { top: A.top, left: (A == null ? void 0 : A.left) + 10 },
2040
- bottom: { top: (A == null ? void 0 : A.bottom) + 5, left: A == null ? void 0 : A.left },
2041
- top: { top: A.top - (A.bottom - A.top) - 10, left: A == null ? void 0 : A.left }
2055
+ const r = f.value.getBoundingClientRect(), d = {
2056
+ left: { top: r.top, left: (r == null ? void 0 : r.left) - 10 },
2057
+ right: { top: r.top, left: (r == null ? void 0 : r.left) + 10 },
2058
+ bottom: { top: (r == null ? void 0 : r.bottom) + 5, left: r == null ? void 0 : r.left },
2059
+ top: { top: r.top - (r.bottom - r.top) - 10, left: r == null ? void 0 : r.left }
2042
2060
  }, g = a.value;
2043
2061
  g.style.top = d[s.position].top + "px", g.style.left = d[s.position].left + "px", g.style.opacity = "1", g.style.visibility = "visible";
2044
2062
  }
2045
2063
  }, c = () => {
2046
- const A = D(a);
2047
- A && (A.style.top = "0", A.style.left = "0", A.style.opacity = "0", A.style.visibility = "hidden");
2064
+ const r = D(a);
2065
+ r && (r.style.top = "0", r.style.left = "0", r.style.opacity = "0", r.style.visibility = "hidden");
2048
2066
  };
2049
- return (A, d) => (r(), u(q, null, [
2067
+ return (r, d) => (A(), u(q, null, [
2050
2068
  o("div", {
2051
2069
  class: "tooltip-wrapper",
2052
2070
  ref_key: "container",
@@ -2054,19 +2072,19 @@ const Tg = (e, t = null) => {
2054
2072
  onMouseover: l,
2055
2073
  onMouseout: c
2056
2074
  }, [
2057
- ne(A.$slots, "default", {}, void 0, !0)
2075
+ ne(r.$slots, "default", {}, void 0, !0)
2058
2076
  ], 544),
2059
- (r(), R(_e, { to: "body" }, [
2077
+ (A(), R(_e, { to: "body" }, [
2060
2078
  o("span", {
2061
2079
  "data-theme": D(n)().theme ? D(n)().theme : null,
2062
2080
  ref_key: "tooltip",
2063
2081
  ref: a,
2064
- class: O(i.value)
2082
+ class: z(i.value)
2065
2083
  }, k(e.text), 11, qi)
2066
2084
  ]))
2067
2085
  ], 64));
2068
2086
  }
2069
- }), Lf = /* @__PURE__ */ U(Hi, [["__scopeId", "data-v-207aab69"]]), Wi = { class: "chat-item__avatar-container" }, Ki = ["src"], Ji = {
2087
+ }), Lf = /* @__PURE__ */ B(Hi, [["__scopeId", "data-v-207aab69"]]), Wi = { class: "chat-item__avatar-container" }, Ki = ["src"], Ji = {
2070
2088
  key: 1,
2071
2089
  class: "pi pi-user"
2072
2090
  }, Gi = { class: "chat-item__info-container" }, Zi = { class: "chat-item__name" }, Xi = {
@@ -2109,19 +2127,19 @@ const Tg = (e, t = null) => {
2109
2127
  f("select", { chat: n.chat, dialog: E });
2110
2128
  }, i = () => n.chat.isSelected ? "chat-item__selected" : "", l = (E) => E.isSelected ? "dialog__selected" : "", c = (E) => {
2111
2129
  h(), f("action", { chat: n.chat, ...E });
2112
- }, A = b(!1), d = b(!1), g = () => n.chat.dialogs.toSorted((E, w) => {
2130
+ }, r = b(!1), d = b(!1), g = () => n.chat.dialogs.toSorted((E, w) => {
2113
2131
  if (Number(E["lastActivity.timestamp"]) > Number(w["lastActivity.timestamp"])) return -1;
2114
2132
  if (Number(E["lastActivity.timestamp"]) < Number(w["lastActivity.timestamp"])) return 1;
2115
2133
  if (Number(E["lastActivity.timestamp"]) == Number(w["lastActivity.timestamp"])) return 0;
2116
2134
  }), m = (E) => {
2117
- A.value = !A.value;
2135
+ r.value = !r.value;
2118
2136
  }, M = () => {
2119
2137
  d.value = !0;
2120
2138
  }, h = () => {
2121
- d.value = !1, A.value = !1;
2139
+ d.value = !1, r.value = !1;
2122
2140
  }, v = Q(() => rt(n.chat["lastMessage.status"]));
2123
2141
  let p;
2124
- const _ = b(0), x = [me("component.ChatItem.typing") + ".", me("component.ChatItem.typing") + "..", me("component.ChatItem.typing") + "..."], N = Q(() => n.chat.typing ? x[_.value] : n.chat.lastMessage);
2142
+ const _ = b(0), j = [me("component.ChatItem.typing") + ".", me("component.ChatItem.typing") + "..", me("component.ChatItem.typing") + "..."], N = Q(() => n.chat.typing ? j[_.value] : n.chat.lastMessage);
2125
2143
  return X(
2126
2144
  () => n.chat.typing,
2127
2145
  () => {
@@ -2130,9 +2148,9 @@ const Tg = (e, t = null) => {
2130
2148
  }, 1e3) : (_.value = 0, clearInterval(p));
2131
2149
  },
2132
2150
  { immediate: !0 }
2133
- ), (E, w) => (r(), u("div", null, [
2151
+ ), (E, w) => (A(), u("div", null, [
2134
2152
  o("div", {
2135
- class: O(["chat-item__container", i()]),
2153
+ class: z(["chat-item__container", i()]),
2136
2154
  onMouseenter: M,
2137
2155
  onMouseleave: h,
2138
2156
  onClick: a
@@ -2140,14 +2158,14 @@ const Tg = (e, t = null) => {
2140
2158
  o("div", Wi, [
2141
2159
  o("span", {
2142
2160
  class: "chat-item__status-user",
2143
- style: ie({ backgroundColor: n.chat.status })
2161
+ style: se({ backgroundColor: n.chat.status })
2144
2162
  }, null, 4),
2145
- n.chat.avatar ? (r(), u("img", {
2163
+ n.chat.avatar ? (A(), u("img", {
2146
2164
  key: 0,
2147
2165
  src: n.chat.avatar,
2148
2166
  height: "48",
2149
2167
  width: "48"
2150
- }, null, 8, Ki)) : (r(), u("span", Ji))
2168
+ }, null, 8, Ki)) : (A(), u("span", Ji))
2151
2169
  ]),
2152
2170
  o("div", Gi, [
2153
2171
  F(Lf, {
@@ -2164,19 +2182,19 @@ const Tg = (e, t = null) => {
2164
2182
  position: "bottom"
2165
2183
  }, {
2166
2184
  default: K(() => [
2167
- e.chat.lastMessage || e.chat.typing ? (r(), u("div", Xi, k(N.value), 1)) : y("", !0)
2185
+ e.chat.lastMessage || e.chat.typing ? (A(), u("div", Xi, k(N.value), 1)) : y("", !0)
2168
2186
  ]),
2169
2187
  _: 1
2170
2188
  }, 8, ["text"])
2171
2189
  ]),
2172
2190
  o("div", eo, [
2173
- e.chat["lastActivity.time"] && !d.value ? (r(), u("div", to, k(e.chat["lastActivity.time"]), 1)) : y("", !0),
2174
- e.chat.countUnread > 0 ? (r(), u("div", {
2191
+ e.chat["lastActivity.time"] && !d.value ? (A(), u("div", to, k(e.chat["lastActivity.time"]), 1)) : y("", !0),
2192
+ e.chat.countUnread > 0 ? (A(), u("div", {
2175
2193
  key: 1,
2176
2194
  class: "chat-item__unread",
2177
- style: ie({ backgroundColor: e.chat.colorUnread ? e.chat.colorUnread : null })
2195
+ style: se({ backgroundColor: e.chat.colorUnread ? e.chat.colorUnread : null })
2178
2196
  }, k(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 5)) : y("", !0),
2179
- d.value && e.chat.actions ? (r(), u("button", {
2197
+ d.value && e.chat.actions ? (A(), u("button", {
2180
2198
  key: 2,
2181
2199
  class: "chat-item__menu-button",
2182
2200
  onClick: m,
@@ -2187,19 +2205,19 @@ const Tg = (e, t = null) => {
2187
2205
  class: "pi pi-ellipsis-h"
2188
2206
  }, null, -1)
2189
2207
  ]))) : y("", !0),
2190
- e.chat.countUnread < 1 ? (r(), u("div", no, [
2191
- D(lt).includes(e.chat["lastMessage.status"]) ? (r(), u("div", {
2208
+ e.chat.countUnread < 1 ? (A(), u("div", no, [
2209
+ D(lt).includes(e.chat["lastMessage.status"]) ? (A(), u("div", {
2192
2210
  key: 0,
2193
- class: O(["chat-item__status-message", v.value])
2211
+ class: z(["chat-item__status-message", v.value])
2194
2212
  }, [
2195
- e.chat["lastMessage.status"] !== "sent" ? (r(), u("span", fo)) : y("", !0),
2213
+ e.chat["lastMessage.status"] !== "sent" ? (A(), u("span", fo)) : y("", !0),
2196
2214
  w[3] || (w[3] = o("span", { class: "pi pi-check" }, null, -1))
2197
2215
  ], 2)) : y("", !0),
2198
- e.chat.isFixedTop || e.chat.isFixedBottom ? (r(), u("span", ao)) : y("", !0)
2216
+ e.chat.isFixedTop || e.chat.isFixedBottom ? (A(), u("span", ao)) : y("", !0)
2199
2217
  ])) : y("", !0)
2200
2218
  ]),
2201
- e.chat.dialogs ? (r(), u("div", so, [
2202
- e.chat.dialogsExpanded ? y("", !0) : (r(), u("button", {
2219
+ e.chat.dialogs ? (A(), u("div", so, [
2220
+ e.chat.dialogsExpanded ? y("", !0) : (A(), u("button", {
2203
2221
  key: 0,
2204
2222
  class: "chat-item__menu-button",
2205
2223
  onClick: w[0] || (w[0] = (S) => e.chat.dialogsExpanded = !e.chat.dialogsExpanded),
@@ -2210,7 +2228,7 @@ const Tg = (e, t = null) => {
2210
2228
  class: "pi pi-angle-down"
2211
2229
  }, null, -1)
2212
2230
  ]))),
2213
- e.chat.dialogsExpanded ? (r(), u("button", {
2231
+ e.chat.dialogsExpanded ? (A(), u("button", {
2214
2232
  key: 1,
2215
2233
  class: "chat-item__menu-button",
2216
2234
  onClick: w[1] || (w[1] = (S) => e.chat.dialogsExpanded = !e.chat.dialogsExpanded),
@@ -2224,7 +2242,7 @@ const Tg = (e, t = null) => {
2224
2242
  ])) : y("", !0),
2225
2243
  F(Z, { name: "menu" }, {
2226
2244
  default: K(() => [
2227
- A.value && e.chat.actions ? (r(), R(D($e), {
2245
+ r.value && e.chat.actions ? (A(), R(D($e), {
2228
2246
  key: 0,
2229
2247
  class: "chat-item__context-menu",
2230
2248
  actions: e.chat.actions,
@@ -2234,32 +2252,32 @@ const Tg = (e, t = null) => {
2234
2252
  _: 1
2235
2253
  })
2236
2254
  ], 34),
2237
- e.chat.dialogsExpanded ? (r(), u("div", io, [
2238
- (r(!0), u(q, null, te(g(), (S) => (r(), u("div", {
2239
- class: O(["dialog__item", l(S)]),
2240
- onClick: (T) => s(S)
2255
+ e.chat.dialogsExpanded ? (A(), u("div", io, [
2256
+ (A(!0), u(q, null, te(g(), (S) => (A(), u("div", {
2257
+ class: z(["dialog__item", l(S)]),
2258
+ onClick: (L) => s(S)
2241
2259
  }, [
2242
- S.icon ? (r(), u("img", {
2260
+ S.icon ? (A(), u("img", {
2243
2261
  key: 0,
2244
2262
  class: "dialog__icon",
2245
2263
  src: S.icon,
2246
2264
  height: "16",
2247
2265
  width: "16"
2248
- }, null, 8, lo)) : (r(), u("span", ro)),
2266
+ }, null, 8, lo)) : (A(), u("span", ro)),
2249
2267
  o("div", Ao, [
2250
2268
  o("div", co, k(S.name), 1),
2251
2269
  o("div", uo, k(S["lastActivity.time"]), 1)
2252
2270
  ]),
2253
- S.countUnread > 0 ? (r(), u("div", {
2271
+ S.countUnread > 0 ? (A(), u("div", {
2254
2272
  key: 2,
2255
2273
  class: "chat-item__unread",
2256
- style: ie({ backgroundColor: S.colorUnread ? S.colorUnread : null })
2274
+ style: se({ backgroundColor: S.colorUnread ? S.colorUnread : null })
2257
2275
  }, k(S.countUnread > 99 ? "99+" : S.countUnread), 5)) : y("", !0)
2258
2276
  ], 10, oo))), 256))
2259
2277
  ])) : y("", !0)
2260
2278
  ]));
2261
2279
  }
2262
- }, On = /* @__PURE__ */ U(go, [["__scopeId", "data-v-572c34c9"]]), mo = ["placeholder"], po = {
2280
+ }, On = /* @__PURE__ */ B(go, [["__scopeId", "data-v-572c34c9"]]), mo = ["placeholder"], po = {
2263
2281
  __name: "ChatFilter",
2264
2282
  emits: ["update"],
2265
2283
  setup(e, { emit: t }) {
@@ -2267,7 +2285,7 @@ const Tg = (e, t = null) => {
2267
2285
  const s = D(n);
2268
2286
  f("update", s.value);
2269
2287
  };
2270
- return (s, i) => (r(), u("input", {
2288
+ return (s, i) => (A(), u("input", {
2271
2289
  ref_key: "refInput",
2272
2290
  ref: n,
2273
2291
  class: "chat-filter__input",
@@ -2276,7 +2294,7 @@ const Tg = (e, t = null) => {
2276
2294
  onInput: a
2277
2295
  }, null, 40, mo));
2278
2296
  }
2279
- }, ho = /* @__PURE__ */ U(po, [["__scopeId", "data-v-d4271193"]]), vo = { class: "template-selector" }, yo = ["id"], bo = { style: { display: "flex" } }, Mo = { style: { display: "flex" } }, _o = {
2297
+ }, ho = /* @__PURE__ */ B(po, [["__scopeId", "data-v-d4271193"]]), vo = { class: "template-selector" }, yo = ["id"], bo = { style: { display: "flex" } }, Mo = { style: { display: "flex" } }, _o = {
2280
2298
  key: 0,
2281
2299
  class: "template-selector__button-close"
2282
2300
  }, Io = {
@@ -2317,38 +2335,38 @@ const Tg = (e, t = null) => {
2317
2335
  setup(e, { emit: t }) {
2318
2336
  const n = e, f = ee("chatAppId"), { setMessageText: a } = Ie(f), s = () => {
2319
2337
  i("closeTemplateWindow"), a(c.value.template);
2320
- }, i = t, l = b(null), c = b(null), A = b(""), d = b(), g = b(""), m = b(""), M = b(""), h = b(!1), v = Q(() => !!(h.value && (M.value == "grid" && m.value == "none" || m.value == "grid" && g.value == "none"))), p = Q(() => !!(h.value && (g.value == "grid" && m.value == "none" || m.value == "grid" && M.value == "none"))), _ = () => {
2338
+ }, i = t, l = b(null), c = b(null), r = b(""), d = b(), g = b(""), m = b(""), M = b(""), h = b(!1), v = Q(() => !!(h.value && (M.value == "grid" && m.value == "none" || m.value == "grid" && g.value == "none"))), p = Q(() => !!(h.value && (g.value == "grid" && m.value == "none" || m.value == "grid" && M.value == "none"))), _ = () => {
2321
2339
  h.value && (m.value == "grid" ? N() : M.value == "grid" && w());
2322
- }, x = () => {
2340
+ }, j = () => {
2323
2341
  h.value && (m.value == "grid" ? E() : g.value == "grid" && w());
2324
2342
  }, N = () => {
2325
- const B = document.getElementById("template-selector-container-" + f);
2326
- B.style.setProperty("--template-first-col-display", "grid"), B.style.setProperty("--template-second-col-display", "none"), S();
2343
+ const U = document.getElementById("template-selector-container-" + f);
2344
+ U.style.setProperty("--template-first-col-display", "grid"), U.style.setProperty("--template-second-col-display", "none"), S();
2327
2345
  }, E = () => {
2328
- const B = document.getElementById("template-selector-container-" + f);
2329
- B.style.setProperty("--template-third-col-display", "grid"), B.style.setProperty("--template-second-col-display", "none"), S();
2346
+ const U = document.getElementById("template-selector-container-" + f);
2347
+ U.style.setProperty("--template-third-col-display", "grid"), U.style.setProperty("--template-second-col-display", "none"), S();
2330
2348
  }, w = () => {
2331
- const B = document.getElementById("template-selector-container-" + f);
2332
- B.style.setProperty("--template-second-col-display", "grid"), B.style.setProperty("--template-first-col-display", "none"), B.style.setProperty("--template-third-col-display", "none"), S();
2349
+ const U = document.getElementById("template-selector-container-" + f);
2350
+ U.style.setProperty("--template-second-col-display", "grid"), U.style.setProperty("--template-first-col-display", "none"), U.style.setProperty("--template-third-col-display", "none"), S();
2333
2351
  }, S = () => {
2334
- const B = document.getElementById("template-selector-container-" + f), $ = window.getComputedStyle(B);
2352
+ const U = document.getElementById("template-selector-container-" + f), $ = window.getComputedStyle(U);
2335
2353
  g.value = $.getPropertyValue("--template-first-col-display"), m.value = $.getPropertyValue("--template-second-col-display"), M.value = $.getPropertyValue("--template-third-col-display");
2336
- }, T = (B) => {
2337
- n.templates.forEach(($) => $.isSelected = !1), B.isSelected = !0, c.value = B, E();
2338
- }, j = () => {
2339
- w(), n.templates.forEach((B) => B.isSelected = !1);
2340
- }, L = Q(() => l.value ? n.templates.filter((B) => B.groupId === l.value.groupId) : n.templates), z = Q(() => {
2341
- const B = A.value.trim().toLowerCase();
2342
- return L.value.filter(($) => $.title.toLowerCase().includes(B) || $.template.toLowerCase().includes(B));
2343
- }), V = new ResizeObserver((B) => {
2344
- const $ = B[0].target.clientWidth;
2354
+ }, L = (U) => {
2355
+ n.templates.forEach(($) => $.isSelected = !1), U.isSelected = !0, c.value = U, E();
2356
+ }, T = () => {
2357
+ w(), n.templates.forEach((U) => U.isSelected = !1);
2358
+ }, O = Q(() => l.value ? n.templates.filter((U) => U.groupId === l.value.groupId) : n.templates), V = Q(() => {
2359
+ const U = r.value.trim().toLowerCase();
2360
+ return O.value.filter(($) => $.title.toLowerCase().includes(U) || $.template.toLowerCase().includes(U));
2361
+ }), x = new ResizeObserver((U) => {
2362
+ const $ = U[0].target.clientWidth;
2345
2363
  $ > 700 && (h.value = !1), $ < 700 && (h.value = !0);
2346
2364
  });
2347
2365
  return le(() => {
2348
- S(), D(d) && V.observe(D(d));
2349
- }), (B, $) => (r(), u("div", vo, [
2366
+ S(), D(d) && x.observe(D(d));
2367
+ }), (U, $) => (A(), u("div", vo, [
2350
2368
  o("div", {
2351
- class: O({
2369
+ class: z({
2352
2370
  "template-selector__container-inline": !e.elevatedWindow,
2353
2371
  "template-selector__container-elevated": e.elevatedWindow
2354
2372
  }),
@@ -2358,23 +2376,23 @@ const Tg = (e, t = null) => {
2358
2376
  }, [
2359
2377
  o("div", bo, [
2360
2378
  o("div", Mo, [
2361
- v.value ? (r(), u("button", _o, [
2379
+ v.value ? (A(), u("button", _o, [
2362
2380
  o("span", {
2363
2381
  class: "pi pi-arrow-left",
2364
2382
  onClick: _
2365
2383
  })
2366
2384
  ])) : y("", !0),
2367
- p.value ? (r(), u("button", Io, [
2385
+ p.value ? (A(), u("button", Io, [
2368
2386
  o("span", {
2369
2387
  class: "pi pi-arrow-right",
2370
- onClick: x
2388
+ onClick: j
2371
2389
  })
2372
2390
  ])) : y("", !0)
2373
2391
  ]),
2374
2392
  o("button", wo, [
2375
2393
  o("span", {
2376
2394
  class: "pi pi-times",
2377
- onClick: $[0] || ($[0] = (J) => B.$emit("closeTemplateWindow"))
2395
+ onClick: $[0] || ($[0] = (J) => U.$emit("closeTemplateWindow"))
2378
2396
  })
2379
2397
  ])
2380
2398
  ]),
@@ -2384,13 +2402,13 @@ const Tg = (e, t = null) => {
2384
2402
  id: "template-selector-first-col-" + D(f)
2385
2403
  }, [
2386
2404
  o("ul", Do, [
2387
- (r(!0), u(q, null, te(e.groupTemplates, (J, oe) => (r(), u("li", {
2405
+ (A(!0), u(q, null, te(e.groupTemplates, (J, oe) => (A(), u("li", {
2388
2406
  key: oe,
2389
- class: O(["template-selector__item-group", { "template-selector__item-selected": l.value === J }]),
2390
- onClick: j
2407
+ class: z(["template-selector__item-group", { "template-selector__item-selected": l.value === J }]),
2408
+ onClick: T
2391
2409
  }, [
2392
2410
  o("label", Eo, [
2393
- J.iconUrl ? (r(), u("img", {
2411
+ J.iconUrl ? (A(), u("img", {
2394
2412
  key: 0,
2395
2413
  class: "template-selector__item-group-icon",
2396
2414
  src: J.iconUrl,
@@ -2416,27 +2434,27 @@ const Tg = (e, t = null) => {
2416
2434
  }, [
2417
2435
  o("div", Vo, [
2418
2436
  Ae(o("input", {
2419
- "onUpdate:modelValue": $[2] || ($[2] = (J) => A.value = J),
2437
+ "onUpdate:modelValue": $[2] || ($[2] = (J) => r.value = J),
2420
2438
  class: "template-selector__searching-input",
2421
2439
  type: "text",
2422
2440
  placeholder: "Поиск шаблона"
2423
2441
  }, null, 512), [
2424
- [ot, A.value]
2442
+ [ot, r.value]
2425
2443
  ])
2426
2444
  ]),
2427
2445
  o("div", So, [
2428
- z.value.length !== 0 ? (r(), u("ul", Co, [
2429
- (r(!0), u(q, null, te(z.value, (J, oe) => (r(), u("li", {
2446
+ V.value.length !== 0 ? (A(), u("ul", Co, [
2447
+ (A(!0), u(q, null, te(V.value, (J, oe) => (A(), u("li", {
2430
2448
  key: oe,
2431
- class: O(["template-selector__item-template", { "template-selector__item-selected": J.isSelected }]),
2432
- onClick: (G) => T(J)
2449
+ class: z(["template-selector__item-template", { "template-selector__item-selected": J.isSelected }]),
2450
+ onClick: (G) => L(J)
2433
2451
  }, [
2434
2452
  o("div", zo, [
2435
2453
  o("p", Lo, k(J.title), 1),
2436
2454
  o("p", Uo, k(J.template), 1)
2437
2455
  ])
2438
2456
  ], 10, Oo))), 128))
2439
- ])) : (r(), u("p", Bo, " Шаблоны отсутствуют "))
2457
+ ])) : (A(), u("p", Bo, " Шаблоны отсутствуют "))
2440
2458
  ])
2441
2459
  ], 8, xo),
2442
2460
  o("div", {
@@ -2444,12 +2462,12 @@ const Tg = (e, t = null) => {
2444
2462
  id: "template-selector-third-col-" + D(f)
2445
2463
  }, [
2446
2464
  o("div", Qo, [
2447
- c.value ? (r(), u("div", $o, [
2465
+ c.value ? (A(), u("div", $o, [
2448
2466
  o("div", Yo, [
2449
2467
  o("p", Po, k(c.value.template), 1),
2450
2468
  $[3] || ($[3] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
2451
2469
  ])
2452
- ])) : (r(), u("p", Fo, " Предпросмотр шаблона "))
2470
+ ])) : (A(), u("p", Fo, " Предпросмотр шаблона "))
2453
2471
  ]),
2454
2472
  o("button", {
2455
2473
  class: "template-selector__button-paste",
@@ -2460,7 +2478,7 @@ const Tg = (e, t = null) => {
2460
2478
  ], 10, yo)
2461
2479
  ]));
2462
2480
  }
2463
- }, Ho = /* @__PURE__ */ U(qo, [["__scopeId", "data-v-64de8bfe"]]), Wo = {
2481
+ }, Ho = /* @__PURE__ */ B(qo, [["__scopeId", "data-v-64de8bfe"]]), Wo = {
2464
2482
  __name: "ButtonTemplateSelector",
2465
2483
  props: {
2466
2484
  templates: {
@@ -2494,17 +2512,17 @@ const Tg = (e, t = null) => {
2494
2512
  t.mode == "hover" && t.state == "active" && (s.value.style.display = "inherit");
2495
2513
  }, c = () => {
2496
2514
  t.mode == "hover" && t.state == "active" && (s.value.style.display = "none");
2497
- }, A = () => {
2515
+ }, r = () => {
2498
2516
  s.value.style.display = "none";
2499
2517
  };
2500
2518
  return le(() => {
2501
2519
  s.value.style.display = "none";
2502
- }), (d, g) => (r(), u(q, null, [
2503
- D(f)().isRecording ? y("", !0) : (r(), u("button", {
2520
+ }), (d, g) => (A(), u(q, null, [
2521
+ D(f)().isRecording ? y("", !0) : (A(), u("button", {
2504
2522
  key: 0,
2505
2523
  ref_key: "templateButton",
2506
2524
  ref: a,
2507
- class: O(["button-template", { "button-template-disabled": e.state == "disabled" }]),
2525
+ class: z(["button-template", { "button-template-disabled": e.state == "disabled" }]),
2508
2526
  onClick: i,
2509
2527
  onMouseover: l,
2510
2528
  onMouseout: c
@@ -2523,7 +2541,7 @@ const Tg = (e, t = null) => {
2523
2541
  templates: e.templates,
2524
2542
  "group-templates": e.groupTemplates,
2525
2543
  "elevated-window": e.elevatedWindow,
2526
- onCloseTemplateWindow: A
2544
+ onCloseTemplateWindow: r
2527
2545
  }, null, 8, ["templates", "group-templates", "elevated-window"])
2528
2546
  ], 544)
2529
2547
  ]),
@@ -2531,7 +2549,7 @@ const Tg = (e, t = null) => {
2531
2549
  })
2532
2550
  ], 64));
2533
2551
  }
2534
- }, Vg = /* @__PURE__ */ U(Wo, [["__scopeId", "data-v-de93f7f9"]]), Ko = ["id"], Jo = {
2552
+ }, Vg = /* @__PURE__ */ B(Wo, [["__scopeId", "data-v-de93f7f9"]]), Ko = ["id"], Jo = {
2535
2553
  __name: "PlaceholderComponent",
2536
2554
  props: {
2537
2555
  index: {
@@ -2569,7 +2587,7 @@ const Tg = (e, t = null) => {
2569
2587
  s.value = f.value;
2570
2588
  }) : s.value = "Заполнить");
2571
2589
  }
2572
- function A(g) {
2590
+ function r(g) {
2573
2591
  g.target.blur(), c();
2574
2592
  }
2575
2593
  function d(g) {
@@ -2579,18 +2597,18 @@ const Tg = (e, t = null) => {
2579
2597
  window.addEventListener("keydown", d);
2580
2598
  }), Ke(() => {
2581
2599
  window.removeEventListener("keydown", d);
2582
- }), (g, m) => (r(), u("span", {
2600
+ }), (g, m) => (A(), u("span", {
2583
2601
  ref_key: "refPlaceholder",
2584
2602
  ref: i,
2585
2603
  id: "placeholder" + D(n) + e.index,
2586
2604
  contenteditable: "",
2587
- class: O([{ filled: e.isFilled, empty: !e.isFilled }, "placeholder"]),
2588
- onKeydown: Jn(A, ["enter"]),
2605
+ class: z([{ filled: e.isFilled, empty: !e.isFilled }, "placeholder"]),
2606
+ onKeydown: Jn(r, ["enter"]),
2589
2607
  onFocus: l,
2590
2608
  onBlur: c
2591
2609
  }, k(s.value), 43, Ko));
2592
2610
  }
2593
- }, Go = /* @__PURE__ */ U(Jo, [["__scopeId", "data-v-7250dbc8"]]), Zo = ["accept"], Xo = { class: "attachment-section__info open-sans" }, el = {
2611
+ }, Go = /* @__PURE__ */ B(Jo, [["__scopeId", "data-v-7250dbc8"]]), Zo = ["accept"], Xo = { class: "attachment-section__info open-sans" }, el = {
2594
2612
  key: 2,
2595
2613
  class: "attachment-section__error-text"
2596
2614
  }, tl = /* @__PURE__ */ W({
@@ -2607,7 +2625,7 @@ const Tg = (e, t = null) => {
2607
2625
  },
2608
2626
  emits: ["fileSelected"],
2609
2627
  setup(e, { emit: t }) {
2610
- const n = e, f = b(ee("filebumpUrl")), a = b(null), s = b(), i = b(""), l = b(""), c = b(), A = t, d = () => {
2628
+ const n = e, f = b(ee("filebumpUrl")), a = b(null), s = b(), i = b(""), l = b(""), c = b(), r = t, d = () => {
2611
2629
  s.value && l.value != "success" && s.value.click();
2612
2630
  }, g = {
2613
2631
  DOCUMENT: {
@@ -2642,9 +2660,9 @@ const Tg = (e, t = null) => {
2642
2660
  i.value = "Файл слишком большого размера";
2643
2661
  else if (!i.value) {
2644
2662
  a.value = v, l.value = "uploading";
2645
- const x = D(f.value);
2646
- wn(typeof x == "string" ? x : null, v).then((N) => {
2647
- l.value = N.status, N.status == "success" && (A("fileSelected", {
2663
+ const j = D(f.value);
2664
+ wn(typeof j == "string" ? j : null, v).then((N) => {
2665
+ l.value = N.status, N.status == "success" && (r("fileSelected", {
2648
2666
  url: N.url,
2649
2667
  filename: N.name,
2650
2668
  filesize: N.size,
@@ -2666,17 +2684,17 @@ const Tg = (e, t = null) => {
2666
2684
  return X(
2667
2685
  () => l.value,
2668
2686
  (h) => {
2669
- h === "" && (s.value && (s.value.value = ""), a.value = null, A("fileSelected", null));
2687
+ h === "" && (s.value && (s.value.value = ""), a.value = null, r("fileSelected", null));
2670
2688
  }
2671
2689
  ), X(
2672
2690
  () => n.templateId,
2673
2691
  () => {
2674
2692
  l.value = "";
2675
2693
  }
2676
- ), (h, v) => (r(), u(q, null, [
2677
- l.value !== "success" ? (r(), u("div", {
2694
+ ), (h, v) => (A(), u(q, null, [
2695
+ l.value !== "success" ? (A(), u("div", {
2678
2696
  key: 0,
2679
- class: O(["attachment-section", { "attachment-section__error": i.value }]),
2697
+ class: z(["attachment-section", { "attachment-section__error": i.value }]),
2680
2698
  onClick: d
2681
2699
  }, [
2682
2700
  o("input", {
@@ -2693,15 +2711,15 @@ const Tg = (e, t = null) => {
2693
2711
  v[0] || (v[0] = o("p", { class: "attachment-section__title open-sans-bold" }, " Прикрепить файл ", -1)),
2694
2712
  o("p", Xo, k(g[e.type].text), 1)
2695
2713
  ])
2696
- ], 2)) : l.value === "success" && c.value ? (r(), R(In, {
2714
+ ], 2)) : l.value === "success" && c.value ? (A(), R(In, {
2697
2715
  key: 1,
2698
2716
  "file-info": c.value,
2699
2717
  onReset: M
2700
2718
  }, null, 8, ["file-info"])) : y("", !0),
2701
- i.value ? (r(), u("div", el, k(i.value), 1)) : y("", !0)
2719
+ i.value ? (A(), u("div", el, k(i.value), 1)) : y("", !0)
2702
2720
  ], 64));
2703
2721
  }
2704
- }), nl = /* @__PURE__ */ U(tl, [["__scopeId", "data-v-4ded5a07"]]), fl = { class: "quick-reply-buttons" }, al = ["onClick"], sl = { class: "quick-reply-buttons__line" }, il = /* @__PURE__ */ W({
2722
+ }), nl = /* @__PURE__ */ B(tl, [["__scopeId", "data-v-4ded5a07"]]), fl = { class: "quick-reply-buttons" }, al = ["onClick"], sl = { class: "quick-reply-buttons__line" }, il = /* @__PURE__ */ W({
2705
2723
  __name: "WABAQuickReplyButtons",
2706
2724
  props: {
2707
2725
  buttons: {
@@ -2718,23 +2736,23 @@ const Tg = (e, t = null) => {
2718
2736
  }, s = (i) => {
2719
2737
  i == 2 && f.buttons.length > 3 && n("selectAllVariants");
2720
2738
  };
2721
- return (i, l) => (r(), u("div", fl, [
2722
- (r(!0), u(q, null, te(e.buttons.slice(0, 3), (c, A) => (r(), u("div", {
2739
+ return (i, l) => (A(), u("div", fl, [
2740
+ (A(!0), u(q, null, te(e.buttons.slice(0, 3), (c, r) => (A(), u("div", {
2723
2741
  class: "quick-reply-buttons__preview-action",
2724
- key: A,
2725
- onClick: (d) => s(A)
2742
+ key: r,
2743
+ onClick: (d) => s(r)
2726
2744
  }, [
2727
2745
  l[0] || (l[0] = o("hr", { class: "quick-reply-buttons__separator" }, null, -1)),
2728
2746
  o("div", sl, [
2729
2747
  o("span", {
2730
- class: O(["quick-reply-buttons__icon pi pi-arrow-up-left", A == 2 && e.buttons.length > 3 ? "pi-list" : a[c.type]])
2748
+ class: z(["quick-reply-buttons__icon pi pi-arrow-up-left", r == 2 && e.buttons.length > 3 ? "pi-list" : a[c.type]])
2731
2749
  }, null, 2),
2732
- o("p", null, k(A == 2 && e.buttons.length > 3 ? "Смотреть все варианты" : c.text), 1)
2750
+ o("p", null, k(r == 2 && e.buttons.length > 3 ? "Смотреть все варианты" : c.text), 1)
2733
2751
  ])
2734
2752
  ], 8, al))), 128))
2735
2753
  ]));
2736
2754
  }
2737
- }), ol = /* @__PURE__ */ U(il, [["__scopeId", "data-v-51dfc2ee"]]), ll = { class: "separated-quick-buttons" }, rl = { class: "separated-quick-buttons__title" }, Al = { class: "separated-quick-buttons__actions scrollbar" }, cl = /* @__PURE__ */ W({
2755
+ }), ol = /* @__PURE__ */ B(il, [["__scopeId", "data-v-51dfc2ee"]]), ll = { class: "separated-quick-buttons" }, rl = { class: "separated-quick-buttons__title" }, Al = { class: "separated-quick-buttons__actions scrollbar" }, cl = /* @__PURE__ */ W({
2738
2756
  __name: "WABASeparatedQuickButtons",
2739
2757
  props: {
2740
2758
  buttons: {
@@ -2749,7 +2767,7 @@ const Tg = (e, t = null) => {
2749
2767
  PHONE_NUMBER: "bi-telephone",
2750
2768
  QUICK_REPLY: "bi-arrow-90deg-left"
2751
2769
  }, f = t;
2752
- return (a, s) => (r(), u("div", ll, [
2770
+ return (a, s) => (A(), u("div", ll, [
2753
2771
  o("div", rl, [
2754
2772
  s[1] || (s[1] = o("p", null, "Все варианты", -1)),
2755
2773
  o("span", {
@@ -2758,19 +2776,19 @@ const Tg = (e, t = null) => {
2758
2776
  })
2759
2777
  ]),
2760
2778
  o("div", Al, [
2761
- (r(!0), u(q, null, te(e.buttons, (i, l) => (r(), u("div", {
2779
+ (A(!0), u(q, null, te(e.buttons, (i, l) => (A(), u("div", {
2762
2780
  class: "separated-quick-buttons__action",
2763
2781
  key: l
2764
2782
  }, [
2765
2783
  o("span", {
2766
- class: O(["pi pi-arrow-up-left", n[i.type]])
2784
+ class: z(["pi pi-arrow-up-left", n[i.type]])
2767
2785
  }, null, 2),
2768
2786
  o("p", null, k(i.text), 1)
2769
2787
  ]))), 128))
2770
2788
  ])
2771
2789
  ]));
2772
2790
  }
2773
- }), ul = /* @__PURE__ */ U(cl, [["__scopeId", "data-v-1fa4012a"]]), dl = { class: "template-selector" }, gl = ["id"], ml = { style: { display: "flex" } }, pl = { style: { display: "flex" } }, hl = {
2791
+ }), ul = /* @__PURE__ */ B(cl, [["__scopeId", "data-v-1fa4012a"]]), dl = { class: "template-selector" }, gl = ["id"], ml = { style: { display: "flex" } }, pl = { style: { display: "flex" } }, hl = {
2774
2792
  key: 0,
2775
2793
  class: "template-selector__button-close"
2776
2794
  }, vl = {
@@ -2826,7 +2844,7 @@ const Tg = (e, t = null) => {
2826
2844
  g.value ? (C.text = Oe.value, C.templateId = d.value.templateId, C.values = Ye.value, C.file = g.value) : (C.text = Oe.value, C.templateId = d.value.templateId, C.values = Ye.value), d.value.buttons && (C.buttons = d.value.buttons), a("sendWabaValues", C), Ze();
2827
2845
  }, l = (C) => {
2828
2846
  g.value = C;
2829
- }, c = b(null), A = b(null), d = b(null), g = b(null), m = b(""), M = b(!1), h = () => {
2847
+ }, c = b(null), r = b(null), d = b(null), g = b(null), m = b(""), M = b(!1), h = () => {
2830
2848
  M.value = !M.value, M.value ? (c.value.scrollTop = 0, c.value.style["overflow-y"] = "hidden") : c.value.style["overflow-y"] = "scroll";
2831
2849
  }, v = (C) => {
2832
2850
  Object.keys(N).forEach((H) => {
@@ -2834,13 +2852,13 @@ const Tg = (e, t = null) => {
2834
2852
  }), g.value = null, n.wabaTemplates.forEach((H) => H.isSelected = !1), C.isSelected = !0, d.value = C, M.value = !1, oe();
2835
2853
  }, p = () => {
2836
2854
  G(), n.wabaTemplates.forEach((C) => C.isSelected = !1);
2837
- }, _ = Q(() => A.value ? n.wabaTemplates.filter((C) => C.groupId === A.value.groupId) : n.wabaTemplates), x = Q(() => {
2855
+ }, _ = Q(() => r.value ? n.wabaTemplates.filter((C) => C.groupId === r.value.groupId) : n.wabaTemplates), j = Q(() => {
2838
2856
  const C = m.value.trim().toLowerCase();
2839
2857
  return _.value.filter((H) => H.title.toLowerCase().includes(C) || H.template.toLowerCase().includes(C));
2840
- }), N = ta({}), E = b(null), w = b(), S = b(""), T = b(""), j = b(""), L = b(!1), z = Q(() => !!(L.value && (j.value == "grid" && T.value == "none" || T.value == "grid" && S.value == "none"))), V = Q(() => !!(L.value && (S.value == "grid" && T.value == "none" || T.value == "grid" && j.value == "none"))), B = () => {
2841
- L.value && (T.value == "grid" ? J() : j.value == "grid" && G());
2858
+ }), N = ta({}), E = b(null), w = b(), S = b(""), L = b(""), T = b(""), O = b(!1), V = Q(() => !!(O.value && (T.value == "grid" && L.value == "none" || L.value == "grid" && S.value == "none"))), x = Q(() => !!(O.value && (S.value == "grid" && L.value == "none" || L.value == "grid" && T.value == "none"))), U = () => {
2859
+ O.value && (L.value == "grid" ? J() : T.value == "grid" && G());
2842
2860
  }, $ = () => {
2843
- L.value && (T.value == "grid" ? oe() : S.value == "grid" && G());
2861
+ O.value && (L.value == "grid" ? oe() : S.value == "grid" && G());
2844
2862
  }, J = () => {
2845
2863
  const C = document.getElementById("waba-template-selector-container-" + f);
2846
2864
  C.style.setProperty("--waba-template-first-col-display", "grid"), C.style.setProperty("--waba-template-second-col-display", "none"), console.log(C, window.getComputedStyle(C).getPropertyValue("--waba-template-first-col-display")), fe();
@@ -2852,7 +2870,7 @@ const Tg = (e, t = null) => {
2852
2870
  C.style.setProperty("--waba-template-second-col-display", "grid"), C.style.setProperty("--waba-template-first-col-display", "none"), C.style.setProperty("--waba-template-third-col-display", "none"), fe();
2853
2871
  }, fe = () => {
2854
2872
  const C = document.getElementById("waba-template-selector-container-" + f), H = window.getComputedStyle(C);
2855
- S.value = H.getPropertyValue("--waba-template-first-col-display"), T.value = H.getPropertyValue("--waba-template-second-col-display"), j.value = H.getPropertyValue("--waba-template-third-col-display");
2873
+ S.value = H.getPropertyValue("--waba-template-first-col-display"), L.value = H.getPropertyValue("--waba-template-second-col-display"), T.value = H.getPropertyValue("--waba-template-third-col-display");
2856
2874
  }, Je = (C) => {
2857
2875
  N[C[1]] = C[0];
2858
2876
  }, pe = Q(() => {
@@ -2860,10 +2878,10 @@ const Tg = (e, t = null) => {
2860
2878
  const C = (Ne = d.value) == null ? void 0 : Ne.template;
2861
2879
  if (!C) return [];
2862
2880
  const H = [...C.matchAll(/{{\d+}}/g)], Y = [];
2863
- let se = 0;
2881
+ let ie = 0;
2864
2882
  return H.forEach((Pe) => {
2865
- Pe.index > se && Y.push(C.substring(se, Pe.index)), Y.push({ index: parseInt(Pe[0].slice(2, -2)) }), se = Pe.index + Pe[0].length;
2866
- }), se < C.length && Y.push(C.substring(se)), Y;
2883
+ Pe.index > ie && Y.push(C.substring(ie, Pe.index)), Y.push({ index: parseInt(Pe[0].slice(2, -2)) }), ie = Pe.index + Pe[0].length;
2884
+ }), ie < C.length && Y.push(C.substring(ie)), Y;
2867
2885
  }), Ge = Q(() => {
2868
2886
  var H, Y;
2869
2887
  if (!d.value)
@@ -2891,13 +2909,13 @@ const Tg = (e, t = null) => {
2891
2909
  return C;
2892
2910
  }), ze = new ResizeObserver((C) => {
2893
2911
  const H = C[0].target.clientWidth;
2894
- H > 700 && (L.value = !1), H < 700 && (L.value = !0);
2912
+ H > 700 && (O.value = !1), H < 700 && (O.value = !0);
2895
2913
  });
2896
2914
  return le(() => {
2897
2915
  fe(), D(w) && ze.observe(D(w));
2898
- }), (C, H) => (r(), u("div", dl, [
2916
+ }), (C, H) => (A(), u("div", dl, [
2899
2917
  o("div", {
2900
- class: O({
2918
+ class: z({
2901
2919
  "template-selector__container-inline": !e.elevatedWindow,
2902
2920
  "template-selector__container-elevated": e.elevatedWindow
2903
2921
  }),
@@ -2907,13 +2925,13 @@ const Tg = (e, t = null) => {
2907
2925
  }, [
2908
2926
  o("div", ml, [
2909
2927
  o("div", pl, [
2910
- z.value ? (r(), u("button", hl, [
2928
+ V.value ? (A(), u("button", hl, [
2911
2929
  o("span", {
2912
2930
  class: "pi pi-arrow-left",
2913
- onClick: B
2931
+ onClick: U
2914
2932
  })
2915
2933
  ])) : y("", !0),
2916
- V.value ? (r(), u("button", vl, [
2934
+ x.value ? (A(), u("button", vl, [
2917
2935
  o("span", {
2918
2936
  class: "pi pi-arrow-right",
2919
2937
  onClick: $
@@ -2930,26 +2948,26 @@ const Tg = (e, t = null) => {
2930
2948
  o("div", yl, [
2931
2949
  o("div", bl, [
2932
2950
  o("ul", Ml, [
2933
- (r(!0), u(q, null, te(e.groupTemplates, (Y, se) => (r(), u("li", {
2934
- key: se,
2935
- class: O(["template-selector__item-group", { "template-selector__item-selected": A.value === Y }]),
2951
+ (A(!0), u(q, null, te(e.groupTemplates, (Y, ie) => (A(), u("li", {
2952
+ key: ie,
2953
+ class: z(["template-selector__item-group", { "template-selector__item-selected": r.value === Y }]),
2936
2954
  onClick: p
2937
2955
  }, [
2938
2956
  o("label", _l, [
2939
- Y.iconUrl ? (r(), u("img", {
2957
+ Y.iconUrl ? (A(), u("img", {
2940
2958
  key: 0,
2941
2959
  class: "template-selector__item-group-icon",
2942
2960
  src: Y.iconUrl,
2943
2961
  alt: Y.title
2944
2962
  }, null, 8, Il)) : y("", !0),
2945
2963
  Ae(o("input", {
2946
- id: se,
2947
- "onUpdate:modelValue": H[0] || (H[0] = (Ne) => A.value = Ne),
2964
+ id: ie,
2965
+ "onUpdate:modelValue": H[0] || (H[0] = (Ne) => r.value = Ne),
2948
2966
  value: Y,
2949
2967
  class: "template-selector__input-group",
2950
2968
  type: "radio"
2951
2969
  }, null, 8, wl), [
2952
- [ea, A.value]
2970
+ [ea, r.value]
2953
2971
  ]),
2954
2972
  o("span", null, k(Y.title), 1)
2955
2973
  ])
@@ -2968,10 +2986,10 @@ const Tg = (e, t = null) => {
2968
2986
  ])
2969
2987
  ]),
2970
2988
  o("div", Dl, [
2971
- x.value.length !== 0 ? (r(), u("ul", El, [
2972
- (r(!0), u(q, null, te(x.value, (Y, se) => (r(), u("li", {
2973
- key: se,
2974
- class: O(["template-selector__item-template", { "template-selector__item-selected": Y.isSelected }]),
2989
+ j.value.length !== 0 ? (A(), u("ul", El, [
2990
+ (A(!0), u(q, null, te(j.value, (Y, ie) => (A(), u("li", {
2991
+ key: ie,
2992
+ class: z(["template-selector__item-template", { "template-selector__item-selected": Y.isSelected }]),
2975
2993
  onClick: (Ne) => v(Y)
2976
2994
  }, [
2977
2995
  o("div", jl, [
@@ -2979,7 +2997,7 @@ const Tg = (e, t = null) => {
2979
2997
  o("p", Vl, k(Y.template), 1)
2980
2998
  ])
2981
2999
  ], 10, Tl))), 128))
2982
- ])) : (r(), u("p", Sl, " Шаблоны отсутствуют "))
3000
+ ])) : (A(), u("p", Sl, " Шаблоны отсутствуют "))
2983
3001
  ])
2984
3002
  ]),
2985
3003
  o("div", Cl, [
@@ -2988,17 +3006,17 @@ const Tg = (e, t = null) => {
2988
3006
  ref: c,
2989
3007
  class: "template-selector__preview-container"
2990
3008
  }, [
2991
- pe.value.length > 0 ? (r(), u("div", Ol, [
3009
+ pe.value.length > 0 ? (A(), u("div", Ol, [
2992
3010
  o("div", zl, [
2993
- d.value.type != "TEXT" ? (r(), R(nl, {
3011
+ d.value.type != "TEXT" ? (A(), R(nl, {
2994
3012
  key: 0,
2995
3013
  type: d.value.type,
2996
3014
  "template-id": d.value.templateId,
2997
3015
  onFileSelected: l
2998
3016
  }, null, 8, ["type", "template-id"])) : y("", !0),
2999
3017
  o("div", Ll, [
3000
- (r(!0), u(q, null, te(pe.value, (Y, se) => (r(), u(q, { key: se }, [
3001
- typeof Y == "string" ? (r(), u("span", Ul, k(Y), 1)) : typeof Y == "object" ? (r(), R(Go, {
3018
+ (A(!0), u(q, null, te(pe.value, (Y, ie) => (A(), u(q, { key: ie }, [
3019
+ typeof Y == "string" ? (A(), u("span", Ul, k(Y), 1)) : typeof Y == "object" ? (A(), R(Go, {
3002
3020
  key: 1,
3003
3021
  index: Y.index,
3004
3022
  value: N[Y.index] || "Заполнить",
@@ -3009,14 +3027,14 @@ const Tg = (e, t = null) => {
3009
3027
  ], 64))), 128))
3010
3028
  ]),
3011
3029
  H[2] || (H[2] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1)),
3012
- d.value.buttons ? (r(), R(ol, {
3030
+ d.value.buttons ? (A(), R(ol, {
3013
3031
  key: 1,
3014
3032
  buttons: d.value.buttons,
3015
3033
  onSelectAllVariants: h
3016
3034
  }, null, 8, ["buttons"])) : y("", !0)
3017
3035
  ])
3018
- ])) : (r(), u("p", Bl, " Предпросмотр шаблона ")),
3019
- M.value ? (r(), u("div", Rl, [
3036
+ ])) : (A(), u("p", Bl, " Предпросмотр шаблона ")),
3037
+ M.value ? (A(), u("div", Rl, [
3020
3038
  o("div", {
3021
3039
  class: "template-selector__semitransparent-overlay",
3022
3040
  onClick: h
@@ -3037,7 +3055,7 @@ const Tg = (e, t = null) => {
3037
3055
  ], 10, gl)
3038
3056
  ]));
3039
3057
  }
3040
- }, Yl = /* @__PURE__ */ U($l, [["__scopeId", "data-v-74bd4b6b"]]), Pl = {
3058
+ }, Yl = /* @__PURE__ */ B($l, [["__scopeId", "data-v-74bd4b6b"]]), Pl = {
3041
3059
  __name: "ButtonWabaTemplateSelector",
3042
3060
  props: {
3043
3061
  wabaTemplates: {
@@ -3073,7 +3091,7 @@ const Tg = (e, t = null) => {
3073
3091
  Mn("filebumpUrl", n.filebumpUrl);
3074
3092
  const f = ee("chatAppId"), { getMessage: a } = Ie(f), s = b(null), i = b(null), l = t, c = () => {
3075
3093
  n.mode == "click" && n.state == "active" && (i.value.style.display == "none" ? i.value.style.display = "inherit" : i.value.style.display == "inherit" && (i.value.style.display = "none"));
3076
- }, A = () => {
3094
+ }, r = () => {
3077
3095
  n.mode == "hover" && n.state == "active" && (i.value.style.display = "inherit");
3078
3096
  }, d = () => {
3079
3097
  n.mode == "hover" && n.state == "active" && (i.value.style.display = "none");
@@ -3086,14 +3104,14 @@ const Tg = (e, t = null) => {
3086
3104
  const m = (M) => {
3087
3105
  l("sendWabaValues", M);
3088
3106
  };
3089
- return (M, h) => (r(), u(q, null, [
3090
- D(a)().isRecording ? y("", !0) : (r(), u("button", {
3107
+ return (M, h) => (A(), u(q, null, [
3108
+ D(a)().isRecording ? y("", !0) : (A(), u("button", {
3091
3109
  key: 0,
3092
3110
  ref_key: "templateButton",
3093
3111
  ref: s,
3094
- class: O(["button-template", { "button-template-disabled": e.state == "disabled" }]),
3112
+ class: z(["button-template", { "button-template-disabled": e.state == "disabled" }]),
3095
3113
  onClick: c,
3096
- onMouseover: A,
3114
+ onMouseover: r,
3097
3115
  onMouseout: d
3098
3116
  }, h[0] || (h[0] = [
3099
3117
  o("span", { class: "pi pi-code" }, null, -1)
@@ -3101,7 +3119,7 @@ const Tg = (e, t = null) => {
3101
3119
  o("div", {
3102
3120
  ref_key: "template",
3103
3121
  ref: i,
3104
- onMouseover: A,
3122
+ onMouseover: r,
3105
3123
  onMouseout: d
3106
3124
  }, [
3107
3125
  F(Yl, {
@@ -3114,7 +3132,7 @@ const Tg = (e, t = null) => {
3114
3132
  ], 544)
3115
3133
  ], 64));
3116
3134
  }
3117
- }, Sg = /* @__PURE__ */ U(Pl, [["__scopeId", "data-v-ce490ccf"]]), pa = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", ha = {
3135
+ }, Sg = /* @__PURE__ */ B(Pl, [["__scopeId", "data-v-ce490ccf"]]), pa = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", ha = {
3118
3136
  recent: "Recently used",
3119
3137
  smileys_people: "Smiles & People",
3120
3138
  animals_nature: "Animals & Nature",
@@ -15220,7 +15238,7 @@ function Af(e, t, { blocked: n, upgrade: f, blocking: a, terminated: s } = {}) {
15220
15238
  c.newVersion,
15221
15239
  c
15222
15240
  )), l.then((c) => {
15223
- s && c.addEventListener("close", () => s()), a && c.addEventListener("versionchange", (A) => a(A.oldVersion, A.newVersion, A));
15241
+ s && c.addEventListener("close", () => s()), a && c.addEventListener("versionchange", (r) => a(r.oldVersion, r.newVersion, r));
15224
15242
  }).catch(() => {
15225
15243
  }), l;
15226
15244
  }
@@ -15235,9 +15253,9 @@ function Qf(e, t) {
15235
15253
  return;
15236
15254
  const s = async function(i, ...l) {
15237
15255
  const c = this.transaction(i, a ? "readwrite" : "readonly");
15238
- let A = c.store;
15239
- return f && (A = A.index(l.shift())), (await Promise.all([
15240
- A[n](...l),
15256
+ let r = c.store;
15257
+ return f && (r = r.index(l.shift())), (await Promise.all([
15258
+ r[n](...l),
15241
15259
  a && c.done
15242
15260
  ]))[0];
15243
15261
  };
@@ -15322,7 +15340,7 @@ function _r() {
15322
15340
  }
15323
15341
  function f() {
15324
15342
  n().then((g) => {
15325
- e.recent = g, A();
15343
+ e.recent = g, r();
15326
15344
  });
15327
15345
  }
15328
15346
  const a = (g) => {
@@ -15336,7 +15354,7 @@ function _r() {
15336
15354
  }, c = (g) => {
15337
15355
  e.options = Object.assign({}, e.options, g), t();
15338
15356
  };
15339
- async function A() {
15357
+ async function r() {
15340
15358
  (await Af(cf, uf)).transaction(tt, "readwrite").objectStore(tt).put({
15341
15359
  id: 0,
15342
15360
  value: JSON.stringify(e.recent)
@@ -15349,7 +15367,7 @@ function _r() {
15349
15367
  if (m > 0 && e.recent.splice(m, 1), m === 0)
15350
15368
  return;
15351
15369
  const M = { u: g.u, n: na(g.n) };
15352
- e.recent = [M, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), A();
15370
+ e.recent = [M, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), r();
15353
15371
  };
15354
15372
  return {
15355
15373
  state: $a(e),
@@ -15417,8 +15435,8 @@ function zr(e) {
15417
15435
  };
15418
15436
  return Object.assign(t.elements.popper.style, n.popper), t.styles = n, t.elements.arrow && Object.assign(t.elements.arrow.style, n.arrow), function() {
15419
15437
  Object.keys(t.elements).forEach(function(f) {
15420
- var a = t.elements[f], s = t.attributes[f] || {}, i = Object.keys(t.styles.hasOwnProperty(f) ? t.styles[f] : n[f]), l = i.reduce(function(c, A) {
15421
- return c[A] = "", c;
15438
+ var a = t.elements[f], s = t.attributes[f] || {}, i = Object.keys(t.styles.hasOwnProperty(f) ? t.styles[f] : n[f]), l = i.reduce(function(c, r) {
15439
+ return c[r] = "", c;
15422
15440
  }, {});
15423
15441
  !ye(a) || !je(a) || (Object.assign(a.style, l), Object.keys(s).forEach(function(c) {
15424
15442
  a.removeAttribute(c);
@@ -15546,10 +15564,10 @@ var Qr = function(t, n) {
15546
15564
  })) : t, Na(typeof t != "number" ? t : Da(t, xt));
15547
15565
  };
15548
15566
  function $r(e) {
15549
- var t, n = e.state, f = e.name, a = e.options, s = n.elements.arrow, i = n.modifiersData.popperOffsets, l = Te(n.placement), c = mf(l), A = [ue, Me].indexOf(l) >= 0, d = A ? "height" : "width";
15567
+ var t, n = e.state, f = e.name, a = e.options, s = n.elements.arrow, i = n.modifiersData.popperOffsets, l = Te(n.placement), c = mf(l), r = [ue, Me].indexOf(l) >= 0, d = r ? "height" : "width";
15550
15568
  if (!(!s || !i)) {
15551
- var g = Qr(a.padding, n), m = gf(s), M = c === "y" ? ce : ue, h = c === "y" ? be : Me, v = n.rects.reference[d] + n.rects.reference[c] - i[c] - n.rects.popper[d], p = i[c] - n.rects.reference[c], _ = Vt(s), x = _ ? c === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, N = v / 2 - p / 2, E = g[M], w = x - m[d] - g[h], S = x / 2 - m[d] / 2 + N, T = _t(E, S, w), j = c;
15552
- n.modifiersData[f] = (t = {}, t[j] = T, t.centerOffset = T - S, t);
15569
+ var g = Qr(a.padding, n), m = gf(s), M = c === "y" ? ce : ue, h = c === "y" ? be : Me, v = n.rects.reference[d] + n.rects.reference[c] - i[c] - n.rects.popper[d], p = i[c] - n.rects.reference[c], _ = Vt(s), j = _ ? c === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, N = v / 2 - p / 2, E = g[M], w = j - m[d] - g[h], S = j / 2 - m[d] / 2 + N, L = _t(E, S, w), T = c;
15570
+ n.modifiersData[f] = (t = {}, t[T] = L, t.centerOffset = L - S, t);
15553
15571
  }
15554
15572
  }
15555
15573
  function Yr(e) {
@@ -15582,31 +15600,31 @@ function qr(e) {
15582
15600
  };
15583
15601
  }
15584
15602
  function Pf(e) {
15585
- var t, n = e.popper, f = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, c = e.gpuAcceleration, A = e.adaptive, d = e.roundOffsets, g = e.isFixed, m = d === !0 ? qr(i) : typeof d == "function" ? d(i) : i, M = m.x, h = M === void 0 ? 0 : M, v = m.y, p = v === void 0 ? 0 : v, _ = i.hasOwnProperty("x"), x = i.hasOwnProperty("y"), N = ue, E = ce, w = window;
15586
- if (A) {
15587
- var S = Vt(n), T = "clientHeight", j = "clientWidth";
15588
- if (S === ke(n) && (S = Qe(n), xe(S).position !== "static" && l === "absolute" && (T = "scrollHeight", j = "scrollWidth")), S = S, a === ce || (a === ue || a === Me) && s === Tt) {
15603
+ var t, n = e.popper, f = e.popperRect, a = e.placement, s = e.variation, i = e.offsets, l = e.position, c = e.gpuAcceleration, r = e.adaptive, d = e.roundOffsets, g = e.isFixed, m = d === !0 ? qr(i) : typeof d == "function" ? d(i) : i, M = m.x, h = M === void 0 ? 0 : M, v = m.y, p = v === void 0 ? 0 : v, _ = i.hasOwnProperty("x"), j = i.hasOwnProperty("y"), N = ue, E = ce, w = window;
15604
+ if (r) {
15605
+ var S = Vt(n), L = "clientHeight", T = "clientWidth";
15606
+ if (S === ke(n) && (S = Qe(n), xe(S).position !== "static" && l === "absolute" && (L = "scrollHeight", T = "scrollWidth")), S = S, a === ce || (a === ue || a === Me) && s === Tt) {
15589
15607
  E = be;
15590
- var L = g && w.visualViewport ? w.visualViewport.height : S[T];
15591
- p -= L - f.height, p *= c ? 1 : -1;
15608
+ var O = g && w.visualViewport ? w.visualViewport.height : S[L];
15609
+ p -= O - f.height, p *= c ? 1 : -1;
15592
15610
  }
15593
15611
  if (a === ue || (a === ce || a === be) && s === Tt) {
15594
15612
  N = Me;
15595
- var z = g && w.visualViewport ? w.visualViewport.width : S[j];
15596
- h -= z - f.width, h *= c ? 1 : -1;
15613
+ var V = g && w.visualViewport ? w.visualViewport.width : S[T];
15614
+ h -= V - f.width, h *= c ? 1 : -1;
15597
15615
  }
15598
15616
  }
15599
- var V = Object.assign({
15617
+ var x = Object.assign({
15600
15618
  position: l
15601
- }, A && Fr);
15619
+ }, r && Fr);
15602
15620
  if (c) {
15603
- var B;
15604
- return Object.assign({}, V, (B = {}, B[E] = x ? "0" : "", B[N] = _ ? "0" : "", B.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + p + "px)" : "translate3d(" + h + "px, " + p + "px, 0)", B));
15621
+ var U;
15622
+ return Object.assign({}, x, (U = {}, U[E] = j ? "0" : "", U[N] = _ ? "0" : "", U.transform = (w.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + p + "px)" : "translate3d(" + h + "px, " + p + "px, 0)", U));
15605
15623
  }
15606
- return Object.assign({}, V, (t = {}, t[E] = x ? p + "px" : "", t[N] = _ ? h + "px" : "", t.transform = "", t));
15624
+ return Object.assign({}, x, (t = {}, t[E] = j ? p + "px" : "", t[N] = _ ? h + "px" : "", t.transform = "", t));
15607
15625
  }
15608
15626
  function Hr(e) {
15609
- var t = e.state, n = e.options, f = n.gpuAcceleration, a = f === void 0 ? !0 : f, s = n.adaptive, i = s === void 0 ? !0 : s, l = n.roundOffsets, c = l === void 0 ? !0 : l, A = {
15627
+ var t = e.state, n = e.options, f = n.gpuAcceleration, a = f === void 0 ? !0 : f, s = n.adaptive, i = s === void 0 ? !0 : s, l = n.roundOffsets, c = l === void 0 ? !0 : l, r = {
15610
15628
  placement: Te(t.placement),
15611
15629
  variation: it(t.placement),
15612
15630
  popper: t.elements.popper,
@@ -15614,12 +15632,12 @@ function Hr(e) {
15614
15632
  gpuAcceleration: a,
15615
15633
  isFixed: t.options.strategy === "fixed"
15616
15634
  };
15617
- t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Pf(Object.assign({}, A, {
15635
+ t.modifiersData.popperOffsets != null && (t.styles.popper = Object.assign({}, t.styles.popper, Pf(Object.assign({}, r, {
15618
15636
  offsets: t.modifiersData.popperOffsets,
15619
15637
  position: t.options.strategy,
15620
15638
  adaptive: i,
15621
15639
  roundOffsets: c
15622
- })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Pf(Object.assign({}, A, {
15640
+ })))), t.modifiersData.arrow != null && (t.styles.arrow = Object.assign({}, t.styles.arrow, Pf(Object.assign({}, r, {
15623
15641
  offsets: t.modifiersData.arrow,
15624
15642
  position: "absolute",
15625
15643
  adaptive: !1,
@@ -15638,11 +15656,11 @@ var Wr = {
15638
15656
  passive: !0
15639
15657
  };
15640
15658
  function Kr(e) {
15641
- var t = e.state, n = e.instance, f = e.options, a = f.scroll, s = a === void 0 ? !0 : a, i = f.resize, l = i === void 0 ? !0 : i, c = ke(t.elements.popper), A = [].concat(t.scrollParents.reference, t.scrollParents.popper);
15642
- return s && A.forEach(function(d) {
15659
+ var t = e.state, n = e.instance, f = e.options, a = f.scroll, s = a === void 0 ? !0 : a, i = f.resize, l = i === void 0 ? !0 : i, c = ke(t.elements.popper), r = [].concat(t.scrollParents.reference, t.scrollParents.popper);
15660
+ return s && r.forEach(function(d) {
15643
15661
  d.addEventListener("scroll", n.update, Qt);
15644
15662
  }), l && c.addEventListener("resize", n.update, Qt), function() {
15645
- s && A.forEach(function(d) {
15663
+ s && r.forEach(function(d) {
15646
15664
  d.removeEventListener("scroll", n.update, Qt);
15647
15665
  }), l && c.removeEventListener("resize", n.update, Qt);
15648
15666
  };
@@ -15739,8 +15757,8 @@ function nA(e) {
15739
15757
  }
15740
15758
  function fA(e, t, n) {
15741
15759
  var f = t === "clippingParents" ? nA(e) : [].concat(t), a = [].concat(f, [n]), s = a[0], i = a.reduce(function(l, c) {
15742
- var A = qf(e, c);
15743
- return l.top = He(A.top, l.top), l.right = bn(A.right, l.right), l.bottom = bn(A.bottom, l.bottom), l.left = He(A.left, l.left), l;
15760
+ var r = qf(e, c);
15761
+ return l.top = He(r.top, l.top), l.right = bn(r.right, l.right), l.bottom = bn(r.bottom, l.bottom), l.left = He(r.left, l.left), l;
15744
15762
  }, qf(e, s));
15745
15763
  return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
15746
15764
  }
@@ -15777,15 +15795,15 @@ function Ta(e) {
15777
15795
  y: t.y
15778
15796
  };
15779
15797
  }
15780
- var A = a ? mf(a) : null;
15781
- if (A != null) {
15782
- var d = A === "y" ? "height" : "width";
15798
+ var r = a ? mf(a) : null;
15799
+ if (r != null) {
15800
+ var d = r === "y" ? "height" : "width";
15783
15801
  switch (s) {
15784
15802
  case nt:
15785
- c[A] = c[A] - (t[d] / 2 - n[d] / 2);
15803
+ c[r] = c[r] - (t[d] / 2 - n[d] / 2);
15786
15804
  break;
15787
15805
  case Tt:
15788
- c[A] = c[A] + (t[d] / 2 - n[d] / 2);
15806
+ c[r] = c[r] + (t[d] / 2 - n[d] / 2);
15789
15807
  break;
15790
15808
  }
15791
15809
  }
@@ -15793,32 +15811,32 @@ function Ta(e) {
15793
15811
  }
15794
15812
  function jt(e, t) {
15795
15813
  t === void 0 && (t = {});
15796
- var n = t, f = n.placement, a = f === void 0 ? e.placement : f, s = n.boundary, i = s === void 0 ? Ir : s, l = n.rootBoundary, c = l === void 0 ? Ma : l, A = n.elementContext, d = A === void 0 ? dt : A, g = n.altBoundary, m = g === void 0 ? !1 : g, M = n.padding, h = M === void 0 ? 0 : M, v = Na(typeof h != "number" ? h : Da(h, xt)), p = d === dt ? wr : dt, _ = e.rects.popper, x = e.elements[m ? p : d], N = fA(ft(x) ? x : x.contextElement || Qe(e.elements.popper), i, c), E = st(e.elements.reference), w = Ta({
15814
+ var n = t, f = n.placement, a = f === void 0 ? e.placement : f, s = n.boundary, i = s === void 0 ? Ir : s, l = n.rootBoundary, c = l === void 0 ? Ma : l, r = n.elementContext, d = r === void 0 ? dt : r, g = n.altBoundary, m = g === void 0 ? !1 : g, M = n.padding, h = M === void 0 ? 0 : M, v = Na(typeof h != "number" ? h : Da(h, xt)), p = d === dt ? wr : dt, _ = e.rects.popper, j = e.elements[m ? p : d], N = fA(ft(j) ? j : j.contextElement || Qe(e.elements.popper), i, c), E = st(e.elements.reference), w = Ta({
15797
15815
  reference: E,
15798
15816
  element: _,
15799
15817
  strategy: "absolute",
15800
15818
  placement: a
15801
- }), S = Kn(Object.assign({}, _, w)), T = d === dt ? S : E, j = {
15802
- top: N.top - T.top + v.top,
15803
- bottom: T.bottom - N.bottom + v.bottom,
15804
- left: N.left - T.left + v.left,
15805
- right: T.right - N.right + v.right
15806
- }, L = e.modifiersData.offset;
15807
- if (d === dt && L) {
15808
- var z = L[a];
15809
- Object.keys(j).forEach(function(V) {
15810
- var B = [Me, be].indexOf(V) >= 0 ? 1 : -1, $ = [ce, be].indexOf(V) >= 0 ? "y" : "x";
15811
- j[V] += z[$] * B;
15819
+ }), S = Kn(Object.assign({}, _, w)), L = d === dt ? S : E, T = {
15820
+ top: N.top - L.top + v.top,
15821
+ bottom: L.bottom - N.bottom + v.bottom,
15822
+ left: N.left - L.left + v.left,
15823
+ right: L.right - N.right + v.right
15824
+ }, O = e.modifiersData.offset;
15825
+ if (d === dt && O) {
15826
+ var V = O[a];
15827
+ Object.keys(T).forEach(function(x) {
15828
+ var U = [Me, be].indexOf(x) >= 0 ? 1 : -1, $ = [ce, be].indexOf(x) >= 0 ? "y" : "x";
15829
+ T[x] += V[$] * U;
15812
15830
  });
15813
15831
  }
15814
- return j;
15832
+ return T;
15815
15833
  }
15816
15834
  function aA(e, t) {
15817
15835
  t === void 0 && (t = {});
15818
- var n = t, f = n.placement, a = n.boundary, s = n.rootBoundary, i = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, A = c === void 0 ? _a : c, d = it(f), g = d ? l ? $f : $f.filter(function(h) {
15836
+ var n = t, f = n.placement, a = n.boundary, s = n.rootBoundary, i = n.padding, l = n.flipVariations, c = n.allowedAutoPlacements, r = c === void 0 ? _a : c, d = it(f), g = d ? l ? $f : $f.filter(function(h) {
15819
15837
  return it(h) === d;
15820
15838
  }) : xt, m = g.filter(function(h) {
15821
- return A.indexOf(h) >= 0;
15839
+ return r.indexOf(h) >= 0;
15822
15840
  });
15823
15841
  m.length === 0 && (m = g);
15824
15842
  var M = m.reduce(function(h, v) {
@@ -15842,50 +15860,50 @@ function sA(e) {
15842
15860
  function iA(e) {
15843
15861
  var t = e.state, n = e.options, f = e.name;
15844
15862
  if (!t.modifiersData[f]._skip) {
15845
- for (var a = n.mainAxis, s = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, c = n.fallbackPlacements, A = n.padding, d = n.boundary, g = n.rootBoundary, m = n.altBoundary, M = n.flipVariations, h = M === void 0 ? !0 : M, v = n.allowedAutoPlacements, p = t.options.placement, _ = Te(p), x = _ === p, N = c || (x || !h ? [Pt(p)] : sA(p)), E = [p].concat(N).reduce(function(ze, C) {
15863
+ for (var a = n.mainAxis, s = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !0 : i, c = n.fallbackPlacements, r = n.padding, d = n.boundary, g = n.rootBoundary, m = n.altBoundary, M = n.flipVariations, h = M === void 0 ? !0 : M, v = n.allowedAutoPlacements, p = t.options.placement, _ = Te(p), j = _ === p, N = c || (j || !h ? [Pt(p)] : sA(p)), E = [p].concat(N).reduce(function(ze, C) {
15846
15864
  return ze.concat(Te(C) === df ? aA(t, {
15847
15865
  placement: C,
15848
15866
  boundary: d,
15849
15867
  rootBoundary: g,
15850
- padding: A,
15868
+ padding: r,
15851
15869
  flipVariations: h,
15852
15870
  allowedAutoPlacements: v
15853
15871
  }) : C);
15854
- }, []), w = t.rects.reference, S = t.rects.popper, T = /* @__PURE__ */ new Map(), j = !0, L = E[0], z = 0; z < E.length; z++) {
15855
- var V = E[z], B = Te(V), $ = it(V) === nt, J = [ce, be].indexOf(B) >= 0, oe = J ? "width" : "height", G = jt(t, {
15856
- placement: V,
15872
+ }, []), w = t.rects.reference, S = t.rects.popper, L = /* @__PURE__ */ new Map(), T = !0, O = E[0], V = 0; V < E.length; V++) {
15873
+ var x = E[V], U = Te(x), $ = it(x) === nt, J = [ce, be].indexOf(U) >= 0, oe = J ? "width" : "height", G = jt(t, {
15874
+ placement: x,
15857
15875
  boundary: d,
15858
15876
  rootBoundary: g,
15859
15877
  altBoundary: m,
15860
- padding: A
15878
+ padding: r
15861
15879
  }), fe = J ? $ ? Me : ue : $ ? be : ce;
15862
15880
  w[oe] > S[oe] && (fe = Pt(fe));
15863
15881
  var Je = Pt(fe), pe = [];
15864
- if (s && pe.push(G[B] <= 0), l && pe.push(G[fe] <= 0, G[Je] <= 0), pe.every(function(ze) {
15882
+ if (s && pe.push(G[U] <= 0), l && pe.push(G[fe] <= 0, G[Je] <= 0), pe.every(function(ze) {
15865
15883
  return ze;
15866
15884
  })) {
15867
- L = V, j = !1;
15885
+ O = x, T = !1;
15868
15886
  break;
15869
15887
  }
15870
- T.set(V, pe);
15888
+ L.set(x, pe);
15871
15889
  }
15872
- if (j)
15890
+ if (T)
15873
15891
  for (var Ge = h ? 3 : 1, Ze = function(C) {
15874
15892
  var H = E.find(function(Y) {
15875
- var se = T.get(Y);
15876
- if (se)
15877
- return se.slice(0, C).every(function(Ne) {
15893
+ var ie = L.get(Y);
15894
+ if (ie)
15895
+ return ie.slice(0, C).every(function(Ne) {
15878
15896
  return Ne;
15879
15897
  });
15880
15898
  });
15881
15899
  if (H)
15882
- return L = H, "break";
15900
+ return O = H, "break";
15883
15901
  }, Oe = Ge; Oe > 0; Oe--) {
15884
15902
  var Ye = Ze(Oe);
15885
15903
  if (Ye === "break")
15886
15904
  break;
15887
15905
  }
15888
- t.placement !== L && (t.modifiersData[f]._skip = !0, t.placement = L, t.reset = !0);
15906
+ t.placement !== O && (t.modifiersData[f]._skip = !0, t.placement = O, t.reset = !0);
15889
15907
  }
15890
15908
  }
15891
15909
  var oA = {
@@ -15919,10 +15937,10 @@ function lA(e) {
15919
15937
  elementContext: "reference"
15920
15938
  }), l = jt(t, {
15921
15939
  altBoundary: !0
15922
- }), c = Hf(i, f), A = Hf(l, a, s), d = Wf(c), g = Wf(A);
15940
+ }), c = Hf(i, f), r = Hf(l, a, s), d = Wf(c), g = Wf(r);
15923
15941
  t.modifiersData[n] = {
15924
15942
  referenceClippingOffsets: c,
15925
- popperEscapeOffsets: A,
15943
+ popperEscapeOffsets: r,
15926
15944
  isReferenceHidden: d,
15927
15945
  hasPopperEscaped: g
15928
15946
  }, t.attributes.popper = Object.assign({}, t.attributes.popper, {
@@ -15952,8 +15970,8 @@ function AA(e, t, n) {
15952
15970
  function cA(e) {
15953
15971
  var t = e.state, n = e.options, f = e.name, a = n.offset, s = a === void 0 ? [0, 0] : a, i = _a.reduce(function(d, g) {
15954
15972
  return d[g] = AA(g, t.rects, s), d;
15955
- }, {}), l = i[t.placement], c = l.x, A = l.y;
15956
- t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += A), t.modifiersData[f] = i;
15973
+ }, {}), l = i[t.placement], c = l.x, r = l.y;
15974
+ t.modifiersData.popperOffsets != null && (t.modifiersData.popperOffsets.x += c, t.modifiersData.popperOffsets.y += r), t.modifiersData[f] = i;
15957
15975
  }
15958
15976
  var uA = {
15959
15977
  name: "offset",
@@ -15982,36 +16000,36 @@ function mA(e) {
15982
16000
  return e === "x" ? "y" : "x";
15983
16001
  }
15984
16002
  function pA(e) {
15985
- var t = e.state, n = e.options, f = e.name, a = n.mainAxis, s = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, c = n.boundary, A = n.rootBoundary, d = n.altBoundary, g = n.padding, m = n.tether, M = m === void 0 ? !0 : m, h = n.tetherOffset, v = h === void 0 ? 0 : h, p = jt(t, {
16003
+ var t = e.state, n = e.options, f = e.name, a = n.mainAxis, s = a === void 0 ? !0 : a, i = n.altAxis, l = i === void 0 ? !1 : i, c = n.boundary, r = n.rootBoundary, d = n.altBoundary, g = n.padding, m = n.tether, M = m === void 0 ? !0 : m, h = n.tetherOffset, v = h === void 0 ? 0 : h, p = jt(t, {
15986
16004
  boundary: c,
15987
- rootBoundary: A,
16005
+ rootBoundary: r,
15988
16006
  padding: g,
15989
16007
  altBoundary: d
15990
- }), _ = Te(t.placement), x = it(t.placement), N = !x, E = mf(_), w = mA(E), S = t.modifiersData.popperOffsets, T = t.rects.reference, j = t.rects.popper, L = typeof v == "function" ? v(Object.assign({}, t.rects, {
16008
+ }), _ = Te(t.placement), j = it(t.placement), N = !j, E = mf(_), w = mA(E), S = t.modifiersData.popperOffsets, L = t.rects.reference, T = t.rects.popper, O = typeof v == "function" ? v(Object.assign({}, t.rects, {
15991
16009
  placement: t.placement
15992
- })) : v, z = typeof L == "number" ? {
15993
- mainAxis: L,
15994
- altAxis: L
16010
+ })) : v, V = typeof O == "number" ? {
16011
+ mainAxis: O,
16012
+ altAxis: O
15995
16013
  } : Object.assign({
15996
16014
  mainAxis: 0,
15997
16015
  altAxis: 0
15998
- }, L), V = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, B = {
16016
+ }, O), x = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, U = {
15999
16017
  x: 0,
16000
16018
  y: 0
16001
16019
  };
16002
16020
  if (S) {
16003
16021
  if (s) {
16004
- var $, J = E === "y" ? ce : ue, oe = E === "y" ? be : Me, G = E === "y" ? "height" : "width", fe = S[E], Je = fe + p[J], pe = fe - p[oe], Ge = M ? -j[G] / 2 : 0, Ze = x === nt ? T[G] : j[G], Oe = x === nt ? -j[G] : -T[G], Ye = t.elements.arrow, ze = M && Ye ? gf(Ye) : {
16022
+ var $, J = E === "y" ? ce : ue, oe = E === "y" ? be : Me, G = E === "y" ? "height" : "width", fe = S[E], Je = fe + p[J], pe = fe - p[oe], Ge = M ? -T[G] / 2 : 0, Ze = j === nt ? L[G] : T[G], Oe = j === nt ? -T[G] : -L[G], Ye = t.elements.arrow, ze = M && Ye ? gf(Ye) : {
16005
16023
  width: 0,
16006
16024
  height: 0
16007
- }, C = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ka(), H = C[J], Y = C[oe], se = _t(0, T[G], ze[G]), Ne = N ? T[G] / 2 - Ge - se - H - z.mainAxis : Ze - se - H - z.mainAxis, Pe = N ? -T[G] / 2 + Ge + se + Y + z.mainAxis : Oe + se + Y + z.mainAxis, Dn = t.elements.arrow && Vt(t.elements.arrow), Ca = Dn ? E === "y" ? Dn.clientTop || 0 : Dn.clientLeft || 0 : 0, bf = ($ = V == null ? void 0 : V[E]) != null ? $ : 0, Oa = fe + Ne - bf - Ca, za = fe + Pe - bf, Mf = _t(M ? bn(Je, Oa) : Je, fe, M ? He(pe, za) : pe);
16008
- S[E] = Mf, B[E] = Mf - fe;
16025
+ }, C = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : ka(), H = C[J], Y = C[oe], ie = _t(0, L[G], ze[G]), Ne = N ? L[G] / 2 - Ge - ie - H - V.mainAxis : Ze - ie - H - V.mainAxis, Pe = N ? -L[G] / 2 + Ge + ie + Y + V.mainAxis : Oe + ie + Y + V.mainAxis, Dn = t.elements.arrow && Vt(t.elements.arrow), Ca = Dn ? E === "y" ? Dn.clientTop || 0 : Dn.clientLeft || 0 : 0, bf = ($ = x == null ? void 0 : x[E]) != null ? $ : 0, Oa = fe + Ne - bf - Ca, za = fe + Pe - bf, Mf = _t(M ? bn(Je, Oa) : Je, fe, M ? He(pe, za) : pe);
16026
+ S[E] = Mf, U[E] = Mf - fe;
16009
16027
  }
16010
16028
  if (l) {
16011
- var _f, La = E === "x" ? ce : ue, Ua = E === "x" ? be : Me, Fe = S[w], zt = w === "y" ? "height" : "width", If = Fe + p[La], wf = Fe - p[Ua], En = [ce, ue].indexOf(_) !== -1, kf = (_f = V == null ? void 0 : V[w]) != null ? _f : 0, Nf = En ? If : Fe - T[zt] - j[zt] - kf + z.altAxis, Df = En ? Fe + T[zt] + j[zt] - kf - z.altAxis : wf, Ef = M && En ? Rr(Nf, Fe, Df) : _t(M ? Nf : If, Fe, M ? Df : wf);
16012
- S[w] = Ef, B[w] = Ef - Fe;
16029
+ var _f, La = E === "x" ? ce : ue, Ua = E === "x" ? be : Me, Fe = S[w], zt = w === "y" ? "height" : "width", If = Fe + p[La], wf = Fe - p[Ua], En = [ce, ue].indexOf(_) !== -1, kf = (_f = x == null ? void 0 : x[w]) != null ? _f : 0, Nf = En ? If : Fe - L[zt] - T[zt] - kf + V.altAxis, Df = En ? Fe + L[zt] + T[zt] - kf - V.altAxis : wf, Ef = M && En ? Rr(Nf, Fe, Df) : _t(M ? Nf : If, Fe, M ? Df : wf);
16030
+ S[w] = Ef, U[w] = Ef - Fe;
16013
16031
  }
16014
- t.modifiersData[f] = B;
16032
+ t.modifiersData[f] = U;
16015
16033
  }
16016
16034
  }
16017
16035
  var hA = {
@@ -16114,8 +16132,8 @@ function Jf() {
16114
16132
  function NA(e) {
16115
16133
  e === void 0 && (e = {});
16116
16134
  var t = e, n = t.defaultModifiers, f = n === void 0 ? [] : n, a = t.defaultOptions, s = a === void 0 ? Kf : a;
16117
- return function(l, c, A) {
16118
- A === void 0 && (A = s);
16135
+ return function(l, c, r) {
16136
+ r === void 0 && (r = s);
16119
16137
  var d = {
16120
16138
  placement: "bottom",
16121
16139
  orderedModifiers: [],
@@ -16130,8 +16148,8 @@ function NA(e) {
16130
16148
  }, g = [], m = !1, M = {
16131
16149
  state: d,
16132
16150
  setOptions: function(_) {
16133
- var x = typeof _ == "function" ? _(d.options) : _;
16134
- v(), d.options = Object.assign({}, s, d.options, x), d.scrollParents = {
16151
+ var j = typeof _ == "function" ? _(d.options) : _;
16152
+ v(), d.options = Object.assign({}, s, d.options, j), d.scrollParents = {
16135
16153
  reference: ft(l) ? It(l) : l.contextElement ? It(l.contextElement) : [],
16136
16154
  popper: It(c)
16137
16155
  };
@@ -16142,24 +16160,24 @@ function NA(e) {
16142
16160
  },
16143
16161
  forceUpdate: function() {
16144
16162
  if (!m) {
16145
- var _ = d.elements, x = _.reference, N = _.popper;
16146
- if (Jf(x, N)) {
16163
+ var _ = d.elements, j = _.reference, N = _.popper;
16164
+ if (Jf(j, N)) {
16147
16165
  d.rects = {
16148
- reference: MA(x, Vt(N), d.options.strategy === "fixed"),
16166
+ reference: MA(j, Vt(N), d.options.strategy === "fixed"),
16149
16167
  popper: gf(N)
16150
- }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(z) {
16151
- return d.modifiersData[z.name] = Object.assign({}, z.data);
16168
+ }, d.reset = !1, d.placement = d.options.placement, d.orderedModifiers.forEach(function(V) {
16169
+ return d.modifiersData[V.name] = Object.assign({}, V.data);
16152
16170
  });
16153
16171
  for (var E = 0; E < d.orderedModifiers.length; E++) {
16154
16172
  if (d.reset === !0) {
16155
16173
  d.reset = !1, E = -1;
16156
16174
  continue;
16157
16175
  }
16158
- var w = d.orderedModifiers[E], S = w.fn, T = w.options, j = T === void 0 ? {} : T, L = w.name;
16176
+ var w = d.orderedModifiers[E], S = w.fn, L = w.options, T = L === void 0 ? {} : L, O = w.name;
16159
16177
  typeof S == "function" && (d = S({
16160
16178
  state: d,
16161
- options: j,
16162
- name: L,
16179
+ options: T,
16180
+ name: O,
16163
16181
  instance: M
16164
16182
  }) || d);
16165
16183
  }
@@ -16177,12 +16195,12 @@ function NA(e) {
16177
16195
  };
16178
16196
  if (!Jf(l, c))
16179
16197
  return M;
16180
- M.setOptions(A).then(function(p) {
16181
- !m && A.onFirstUpdate && A.onFirstUpdate(p);
16198
+ M.setOptions(r).then(function(p) {
16199
+ !m && r.onFirstUpdate && r.onFirstUpdate(p);
16182
16200
  });
16183
16201
  function h() {
16184
16202
  d.orderedModifiers.forEach(function(p) {
16185
- var _ = p.name, x = p.options, N = x === void 0 ? {} : x, E = p.effect;
16203
+ var _ = p.name, j = p.options, N = j === void 0 ? {} : j, E = p.effect;
16186
16204
  if (typeof E == "function") {
16187
16205
  var w = E({
16188
16206
  state: d,
@@ -16218,16 +16236,16 @@ function TA(e, t, n, f = []) {
16218
16236
  e[s].forEach((l) => {
16219
16237
  var c;
16220
16238
  if (l[kn][0].includes(t.toLocaleLowerCase())) {
16221
- let A = l[va];
16239
+ let r = l[va];
16222
16240
  if (n !== yn && Array.isArray(l[Rt])) {
16223
16241
  const d = ((c = l[Rt]) == null ? void 0 : c.findIndex(
16224
16242
  (g) => g.includes(n)
16225
16243
  )) || -1;
16226
- d !== -1 && l[Rt] && (A = l[Rt][d]);
16244
+ d !== -1 && l[Rt] && (r = l[Rt][d]);
16227
16245
  }
16228
16246
  return i.push({
16229
16247
  ...l,
16230
- [Et]: A
16248
+ [Et]: r
16231
16249
  });
16232
16250
  }
16233
16251
  }), i.length && (a[s] = i);
@@ -16260,7 +16278,7 @@ const jA = W({
16260
16278
  e.search,
16261
16279
  e.skinTone,
16262
16280
  e.options.disabledGroups
16263
- )), s = Ra(), i = Q(() => !e.options.hideGroupNames), l = Q(() => !e.options.disableStickyGroupNames), c = na(e.options.groupNames), A = e.orderedGroupKeys;
16281
+ )), s = Ra(), i = Q(() => !e.options.hideGroupNames), l = Q(() => !e.options.disableStickyGroupNames), c = na(e.options.groupNames), r = e.orderedGroupKeys;
16264
16282
  e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((h) => {
16265
16283
  e.options.groupNames[h] ? c[h] = e.options.groupNames[h] : c[h] = Va(h);
16266
16284
  });
@@ -16303,7 +16321,7 @@ const jA = W({
16303
16321
  isSticky: l,
16304
16322
  platform: d,
16305
16323
  groupNames: c,
16306
- orderedKeys: A
16324
+ orderedKeys: r
16307
16325
  };
16308
16326
  }
16309
16327
  }), xA = { class: "v3-body" }, VA = ["id"], SA = { class: "v3-emojis" }, CA = ["onMouseenter", "onClick"], OA = { key: 0 }, zA = ["src", "alt", "onError"], LA = {
@@ -16311,30 +16329,30 @@ const jA = W({
16311
16329
  class: "v3-no-result"
16312
16330
  };
16313
16331
  function UA(e, t, n, f, a, s) {
16314
- return r(), u("div", xA, [
16332
+ return A(), u("div", xA, [
16315
16333
  o("div", {
16316
16334
  ref: "bodyInner",
16317
- class: O([e.platform, "v3-body-inner"])
16335
+ class: z([e.platform, "v3-body-inner"])
16318
16336
  }, [
16319
- e.orderedKeys.length ? (r(!0), u(q, { key: 0 }, te(e.orderedKeys, (i) => (r(), u("div", {
16337
+ e.orderedKeys.length ? (A(!0), u(q, { key: 0 }, te(e.orderedKeys, (i) => (A(), u("div", {
16320
16338
  id: i,
16321
16339
  key: i,
16322
16340
  class: "v3-group"
16323
16341
  }, [
16324
- e.hasGroupNames ? Ae((r(), u("h5", {
16342
+ e.hasGroupNames ? Ae((A(), u("h5", {
16325
16343
  key: 0,
16326
- class: O(e.isSticky ? "v3-sticky" : "")
16344
+ class: z(e.isSticky ? "v3-sticky" : "")
16327
16345
  }, k(e.groupNames[i]), 3)), [
16328
16346
  [We, e.emojis[i]]
16329
16347
  ]) : y("", !0),
16330
16348
  Ae(o("div", SA, [
16331
- (r(!0), u(q, null, te(e.emojis[i], (l) => (r(), u("button", {
16349
+ (A(!0), u(q, null, te(e.emojis[i], (l) => (A(), u("button", {
16332
16350
  key: l.r,
16333
16351
  type: "button",
16334
16352
  onMouseenter: (c) => e.handleMouseEnter(l),
16335
16353
  onClick: (c) => e.handleClick(l)
16336
16354
  }, [
16337
- e.native ? (r(), u("span", OA, k(e.unicodeToEmoji(l.r)), 1)) : (r(), u("img", {
16355
+ e.native ? (A(), u("span", OA, k(e.unicodeToEmoji(l.r)), 1)) : (A(), u("img", {
16338
16356
  key: 1,
16339
16357
  src: e.EMOJI_REMOTE_SRC + `/${l.r}.png`,
16340
16358
  alt: l.n[0],
@@ -16344,7 +16362,7 @@ function UA(e, t, n, f, a, s) {
16344
16362
  ], 512), [
16345
16363
  [We, e.emojis[i]]
16346
16364
  ])
16347
- ], 8, VA))), 128)) : (r(), u("span", LA, " No emoji has been found! "))
16365
+ ], 8, VA))), 128)) : (A(), u("span", LA, " No emoji has been found! "))
16348
16366
  ], 2)
16349
16367
  ]);
16350
16368
  }
@@ -16357,7 +16375,7 @@ const WA = W({
16357
16375
  ), c = Q({
16358
16376
  get: () => t.search,
16359
16377
  set: (g) => n(g)
16360
- }), A = [
16378
+ }), r = [
16361
16379
  ...t.groups,
16362
16380
  ...Object.keys(t.options.additionalGroups).map((g) => ({
16363
16381
  key: g,
@@ -16365,8 +16383,8 @@ const WA = W({
16365
16383
  }))
16366
16384
  ], d = [];
16367
16385
  return i.forEach((g) => {
16368
- const m = A.findIndex((M) => M.key === g);
16369
- m !== -1 && (d.push(A[m]), A.splice(m, 1));
16386
+ const m = r.findIndex((M) => M.key === g);
16387
+ m !== -1 && (d.push(r[m]), r.splice(m, 1));
16370
16388
  }), {
16371
16389
  orderedGroups: d,
16372
16390
  orderedKeys: i,
@@ -16403,12 +16421,12 @@ const WA = W({
16403
16421
  class: "v3-search"
16404
16422
  }, nc = ["placeholder"];
16405
16423
  function fc(e, t, n, f, a, s) {
16406
- return e.hasGroupIcons || e.hasSearch ? (r(), u("div", KA, [
16407
- e.hasGroupIcons ? (r(), u("div", JA, [
16408
- (r(!0), u(q, null, te(e.orderedGroups, (i) => (r(), u("button", {
16424
+ return e.hasGroupIcons || e.hasSearch ? (A(), u("div", KA, [
16425
+ e.hasGroupIcons ? (A(), u("div", JA, [
16426
+ (A(!0), u(q, null, te(e.orderedGroups, (i) => (A(), u("button", {
16409
16427
  key: i.key,
16410
16428
  type: "button",
16411
- class: O(["v3-group", {
16429
+ class: z(["v3-group", {
16412
16430
  "v3-is-hidden": !e.icons[i.key]
16413
16431
  }]),
16414
16432
  onClick: (l) => e.updateActiveGroup(i.key)
@@ -16424,8 +16442,8 @@ function fc(e, t, n, f, a, s) {
16424
16442
  ], 8, ZA)
16425
16443
  ], 10, GA))), 128))
16426
16444
  ])) : y("", !0),
16427
- e.hasGroupIcons && e.hasSearch ? (r(), u("div", ec)) : y("", !0),
16428
- e.hasSearch ? (r(), u("div", tc, [
16445
+ e.hasGroupIcons && e.hasSearch ? (A(), u("div", ec)) : y("", !0),
16446
+ e.hasSearch ? (A(), u("div", tc, [
16429
16447
  Ae(o("input", {
16430
16448
  "onUpdate:modelValue": t[0] || (t[0] = (i) => e.searchValue = i),
16431
16449
  type: "text",
@@ -16446,14 +16464,14 @@ const sc = W({
16446
16464
  ...e.emoji,
16447
16465
  src: pa + "/" + e.emoji[Et] + ".png"
16448
16466
  }));
16449
- function A(m = !0) {
16467
+ function r(m = !0) {
16450
16468
  n.value = m;
16451
16469
  }
16452
16470
  function d() {
16453
16471
  n.value = !n.value;
16454
16472
  }
16455
16473
  function g(m) {
16456
- t(m), A(!1);
16474
+ t(m), r(!1);
16457
16475
  }
16458
16476
  return X(
16459
16477
  () => e.emoji,
@@ -16463,7 +16481,7 @@ const sc = W({
16463
16481
  ), {
16464
16482
  emoji: c,
16465
16483
  SKIN_TONES: Gl,
16466
- updateSkinToneState: A,
16484
+ updateSkinToneState: r,
16467
16485
  skinTone: n,
16468
16486
  stateSkinTone: a,
16469
16487
  selectSkinTone: g,
@@ -16480,15 +16498,15 @@ const sc = W({
16480
16498
  }
16481
16499
  }), ic = { class: "v3-foot-left" }, oc = { key: 0 }, lc = ["alt", "src"], rc = { class: "v3-text" }, Ac = { class: "v3-text" }, cc = ["onClick"];
16482
16500
  function uc(e, t, n, f, a, s) {
16483
- return r(), u("div", {
16501
+ return A(), u("div", {
16484
16502
  class: "v3-footer",
16485
16503
  onMouseleave: t[2] || (t[2] = (i) => e.updateSkinToneState(!1))
16486
16504
  }, [
16487
16505
  o("div", ic, [
16488
16506
  o("span", {
16489
- class: O([e.platform, "v3-icon"])
16507
+ class: z([e.platform, "v3-icon"])
16490
16508
  }, [
16491
- e.native || e.hasError ? (r(), u("span", oc, k(e.unicodeToEmoji(e.emoji.r)), 1)) : (r(), u("img", {
16509
+ e.native || e.hasError ? (A(), u("span", oc, k(e.unicodeToEmoji(e.emoji.r)), 1)) : (A(), u("img", {
16492
16510
  key: 1,
16493
16511
  alt: e.unicodeToEmoji(e.emoji.r),
16494
16512
  src: e.emoji.src,
@@ -16497,7 +16515,7 @@ function uc(e, t, n, f, a, s) {
16497
16515
  ], 2),
16498
16516
  o("span", rc, " :" + k(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
16499
16517
  ]),
16500
- e.hasSkinTones ? (r(), u(q, { key: 0 }, [
16518
+ e.hasSkinTones ? (A(), u(q, { key: 0 }, [
16501
16519
  o("button", {
16502
16520
  type: "button",
16503
16521
  class: "v3-tone",
@@ -16505,16 +16523,16 @@ function uc(e, t, n, f, a, s) {
16505
16523
  }, [
16506
16524
  o("span", Ac, k(e.skinToneText), 1),
16507
16525
  o("span", {
16508
- class: O(`v3-icon v3-tone-${e.stateSkinTone}`)
16526
+ class: z(`v3-icon v3-tone-${e.stateSkinTone}`)
16509
16527
  }, null, 2)
16510
16528
  ]),
16511
16529
  o("div", {
16512
- class: O([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
16530
+ class: z([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
16513
16531
  }, [
16514
- (r(!0), u(q, null, te(e.SKIN_TONES, (i) => (r(), u("button", {
16532
+ (A(!0), u(q, null, te(e.SKIN_TONES, (i) => (A(), u("button", {
16515
16533
  key: i,
16516
16534
  type: "button",
16517
- class: O(["v3-skin-tone-" + i, "v3-skin-tone"]),
16535
+ class: z(["v3-skin-tone-" + i, "v3-skin-tone"]),
16518
16536
  onClick: (l) => e.selectSkinTone(i)
16519
16537
  }, null, 10, cc))), 128))
16520
16538
  ], 2)
@@ -16562,10 +16580,10 @@ const gc = W({
16562
16580
  setup(e, { emit: t }) {
16563
16581
  const n = b(), f = b(), a = b(), s = b(!1), i = b(e.text), l = e.type === "input" || e.type === "textarea";
16564
16582
  let c = -1;
16565
- const { state: A } = ee("store"), d = Q(() => A.options.colorTheme);
16583
+ const { state: r } = ee("store"), d = Q(() => r.options.colorTheme);
16566
16584
  function g(p) {
16567
16585
  if (l) {
16568
- const _ = A.options.mode;
16586
+ const _ = r.options.mode;
16569
16587
  _ === "prepend" ? i.value = p.i + i.value : _ === "insert" && c !== -1 ? (i.value = `${i.value.slice(0, c)}${p.i}${i.value.slice(c)}`, c += p.i.length) : i.value += p.i, t("update:text", i.value);
16570
16588
  }
16571
16589
  t("select", p);
@@ -16582,7 +16600,7 @@ const gc = W({
16582
16600
  }
16583
16601
  function h() {
16584
16602
  if (f.value && a.value && l) {
16585
- let p = A.options.offset;
16603
+ let p = r.options.offset;
16586
16604
  typeof p != "number" && (p = 6), EA(f.value, a.value, {
16587
16605
  placement: "bottom-end",
16588
16606
  modifiers: [
@@ -16623,32 +16641,32 @@ const gc = W({
16623
16641
  }, pc = { class: "v3-input-picker-root" }, hc = ["value"], vc = ["value"], yc = ["src"];
16624
16642
  function bc(e, t, n, f, a, s) {
16625
16643
  const i = $t("Header"), l = $t("Body"), c = $t("Footer");
16626
- return e.isInputType ? (r(), u("div", mc, [
16644
+ return e.isInputType ? (A(), u("div", mc, [
16627
16645
  o("div", pc, [
16628
- e.type === "input" ? (r(), u("input", {
16646
+ e.type === "input" ? (A(), u("input", {
16629
16647
  key: 0,
16630
16648
  ref: "elem",
16631
16649
  value: e.input,
16632
16650
  type: "text",
16633
16651
  class: "v3-emoji-picker-input",
16634
- onInput: t[0] || (t[0] = (...A) => e.onChangeText && e.onChangeText(...A)),
16635
- onBlur: t[1] || (t[1] = (...A) => e.updateCursor && e.updateCursor(...A))
16636
- }, null, 40, hc)) : (r(), u("textarea", {
16652
+ onInput: t[0] || (t[0] = (...r) => e.onChangeText && e.onChangeText(...r)),
16653
+ onBlur: t[1] || (t[1] = (...r) => e.updateCursor && e.updateCursor(...r))
16654
+ }, null, 40, hc)) : (A(), u("textarea", {
16637
16655
  key: 1,
16638
16656
  ref: "elem",
16639
16657
  value: e.input,
16640
16658
  class: "v3-emoji-picker-textarea",
16641
- onInput: t[2] || (t[2] = (...A) => e.onChangeText && e.onChangeText(...A)),
16642
- onBlur: t[3] || (t[3] = (...A) => e.updateCursor && e.updateCursor(...A))
16659
+ onInput: t[2] || (t[2] = (...r) => e.onChangeText && e.onChangeText(...r)),
16660
+ onBlur: t[3] || (t[3] = (...r) => e.updateCursor && e.updateCursor(...r))
16643
16661
  }, null, 40, vc)),
16644
16662
  o("div", {
16645
- class: O(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
16663
+ class: z(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
16646
16664
  }, [
16647
16665
  o("button", {
16648
16666
  ref: "button",
16649
16667
  type: "button",
16650
16668
  class: "v3-input-picker-icon",
16651
- onClick: t[4] || (t[4] = (A) => e.open = !e.open)
16669
+ onClick: t[4] || (t[4] = (r) => e.open = !e.open)
16652
16670
  }, [
16653
16671
  o("img", {
16654
16672
  src: e.face,
@@ -16657,7 +16675,7 @@ function bc(e, t, n, f, a, s) {
16657
16675
  ], 512),
16658
16676
  o("div", {
16659
16677
  ref: "picker",
16660
- class: O(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
16678
+ class: z(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
16661
16679
  }, [
16662
16680
  F(i),
16663
16681
  F(l, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
@@ -16665,9 +16683,9 @@ function bc(e, t, n, f, a, s) {
16665
16683
  ], 2)
16666
16684
  ], 2)
16667
16685
  ])
16668
- ])) : (r(), u("div", {
16686
+ ])) : (A(), u("div", {
16669
16687
  key: 1,
16670
- class: O(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
16688
+ class: z(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
16671
16689
  }, [
16672
16690
  F(i),
16673
16691
  F(l, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
@@ -16790,7 +16808,7 @@ const _c = W({
16790
16808
  });
16791
16809
  function Ic(e, t, n, f, a, s) {
16792
16810
  const i = $t("picker-root");
16793
- return r(), R(i, {
16811
+ return A(), R(i, {
16794
16812
  type: e.type,
16795
16813
  text: e.input,
16796
16814
  onSelect: t[0] || (t[0] = (l) => e.$emit("select", l)),
@@ -16817,7 +16835,7 @@ const kc = {
16817
16835
  return "dark";
16818
16836
  }), c = (M) => {
16819
16837
  s(i().text + M.i);
16820
- }, A = () => {
16838
+ }, r = () => {
16821
16839
  t.mode == "click" && t.state == "active" && (n.value.style.display = "inherit");
16822
16840
  }, d = () => {
16823
16841
  t.mode == "hover" && t.state == "active" && (n.value.style.display = "inherit");
@@ -16830,13 +16848,13 @@ const kc = {
16830
16848
  n.value.style.display = "none", document.addEventListener("click", m);
16831
16849
  }), Ke(() => {
16832
16850
  document.removeEventListener("click", m);
16833
- }), (M, h) => (r(), u(q, null, [
16834
- D(i)().isRecording ? y("", !0) : (r(), u("div", {
16851
+ }), (M, h) => (A(), u(q, null, [
16852
+ D(i)().isRecording ? y("", !0) : (A(), u("div", {
16835
16853
  key: 0,
16836
16854
  ref_key: "emojiButton",
16837
16855
  ref: f,
16838
- class: O(["button", { "button-disabled": e.state == "disabled" }]),
16839
- onClick: A,
16856
+ class: z(["button", { "button-disabled": e.state == "disabled" }]),
16857
+ onClick: r,
16840
16858
  onMouseover: d,
16841
16859
  onMouseout: g
16842
16860
  }, h[0] || (h[0] = [
@@ -16863,7 +16881,7 @@ const kc = {
16863
16881
  })
16864
16882
  ], 64));
16865
16883
  }
16866
- }, Cg = /* @__PURE__ */ U(kc, [["__scopeId", "data-v-83befe43"]]), Nc = { class: "context-menu__container" }, Dc = { class: "context-menu__list" }, Ec = ["onClick"], Tc = ["src"], jc = {
16884
+ }, Cg = /* @__PURE__ */ B(kc, [["__scopeId", "data-v-83befe43"]]), Nc = { class: "context-menu__container" }, Dc = { class: "context-menu__list" }, Ec = ["onClick"], Tc = ["src"], jc = {
16867
16885
  __name: "ContextMenu",
16868
16886
  props: {
16869
16887
  actions: {
@@ -16877,28 +16895,28 @@ const kc = {
16877
16895
  const i = n.actions[s];
16878
16896
  f("click", i);
16879
16897
  };
16880
- return (s, i) => (r(), u("div", Nc, [
16898
+ return (s, i) => (A(), u("div", Nc, [
16881
16899
  o("ul", Dc, [
16882
- (r(!0), u(q, null, te(n.actions, (l, c) => (r(), u("li", {
16900
+ (A(!0), u(q, null, te(n.actions, (l, c) => (A(), u("li", {
16883
16901
  key: c,
16884
16902
  class: "context-menu__item",
16885
- onClick: (A) => a(c)
16903
+ onClick: (r) => a(c)
16886
16904
  }, [
16887
- l.icon ? (r(), u("img", {
16905
+ l.icon ? (A(), u("img", {
16888
16906
  key: 0,
16889
16907
  src: l.icon,
16890
16908
  width: "18",
16891
16909
  height: "18"
16892
- }, null, 8, Tc)) : l.prime ? (r(), u("i", {
16910
+ }, null, 8, Tc)) : l.prime ? (A(), u("i", {
16893
16911
  key: 1,
16894
- class: O("pi pi-" + l.prime)
16912
+ class: z("pi pi-" + l.prime)
16895
16913
  }, null, 2)) : y("", !0),
16896
16914
  o("span", null, k(l.title), 1)
16897
16915
  ], 8, Ec))), 128))
16898
16916
  ])
16899
16917
  ]));
16900
16918
  }
16901
- }, $e = /* @__PURE__ */ U(jc, [["__scopeId", "data-v-92d6d8b5"]]), gt = b([]), xc = (e) => {
16919
+ }, $e = /* @__PURE__ */ B(jc, [["__scopeId", "data-v-92d6d8b5"]]), gt = b([]), xc = (e) => {
16902
16920
  const t = b(0);
16903
16921
  let n = gt.value.find(({ id: a }) => a == e);
16904
16922
  return n != null ? t.value = gt.value.indexOf(n) : (gt.value.push({
@@ -16939,14 +16957,14 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
16939
16957
  l.value == f().text ? a("search", f().text) : l.value = f().text;
16940
16958
  }
16941
16959
  );
16942
- const A = () => {
16960
+ const r = () => {
16943
16961
  const d = D(i);
16944
16962
  d && (d.value = ""), f().text = "", a("cancel");
16945
16963
  };
16946
16964
  return le(() => {
16947
16965
  const d = D(i);
16948
16966
  d == null || d.focus();
16949
- }), (d, g) => (r(), R(Z, null, {
16967
+ }), (d, g) => (A(), R(Z, null, {
16950
16968
  default: K(() => [
16951
16969
  o("div", Sc, [
16952
16970
  o("span", Cc, k(D(me)("component.FeedSearch.SearchLabel")), 1),
@@ -16962,10 +16980,10 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
16962
16980
  ]),
16963
16981
  o("i", {
16964
16982
  class: "pi pi-times",
16965
- onClick: A,
16966
- style: ie({ right: c.value })
16983
+ onClick: r,
16984
+ style: se({ right: c.value })
16967
16985
  }, null, 4),
16968
- e.isFeedLocation ? (r(), u("span", {
16986
+ e.isFeedLocation ? (A(), u("span", {
16969
16987
  key: 0,
16970
16988
  class: "pi pi-refresh",
16971
16989
  style: { "margin-left": "5px", "margin-top": "10px", cursor: "pointer" },
@@ -16976,7 +16994,7 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
16976
16994
  _: 1
16977
16995
  }));
16978
16996
  }
16979
- }), Og = /* @__PURE__ */ U(zc, [["__scopeId", "data-v-d91a628f"]]), Lc = { class: "feed-found-item__avatar-container" }, Uc = ["src"], Bc = {
16997
+ }), Og = /* @__PURE__ */ B(zc, [["__scopeId", "data-v-d91a628f"]]), Lc = { class: "feed-found-item__avatar-container" }, Uc = ["src"], Bc = {
16980
16998
  key: 1,
16981
16999
  class: "pi pi-user"
16982
17000
  }, Rc = { class: "feed-found-item__info" }, Qc = { class: "feed-found-item__first-line" }, $c = { class: "feed-found-item__name" }, Yc = { class: "feed-found-item__time" }, Pc = { class: "feed-found-item__second-line" }, Fc = ["src"], qc = /* @__PURE__ */ W({
@@ -17001,16 +17019,16 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
17001
17019
  };
17002
17020
  return f[t.object.type] ? f[t.object.type] : null;
17003
17021
  });
17004
- return (f, a) => (r(), u("div", {
17005
- class: O(["feed-found-item__container", { "feed-found-item__selected-container": e.selected }])
17022
+ return (f, a) => (A(), u("div", {
17023
+ class: z(["feed-found-item__container", { "feed-found-item__selected-container": e.selected }])
17006
17024
  }, [
17007
17025
  o("div", Lc, [
17008
- e.object.avatar ? (r(), u("img", {
17026
+ e.object.avatar ? (A(), u("img", {
17009
17027
  key: 0,
17010
17028
  src: e.object.avatar,
17011
17029
  width: "48",
17012
17030
  height: "48"
17013
- }, null, 8, Uc)) : (r(), u("span", Bc))
17031
+ }, null, 8, Uc)) : (A(), u("span", Bc))
17014
17032
  ]),
17015
17033
  o("div", Rc, [
17016
17034
  o("div", Qc, [
@@ -17018,16 +17036,16 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
17018
17036
  o("p", Yc, k(e.object.time), 1)
17019
17037
  ]),
17020
17038
  o("div", Pc, [
17021
- e.object.type == "message.image" ? (r(), u("img", {
17039
+ e.object.type == "message.image" ? (A(), u("img", {
17022
17040
  key: 0,
17023
17041
  src: e.object.url,
17024
17042
  style: { "margin-right": "3px" },
17025
17043
  width: "24",
17026
17044
  height: "24"
17027
17045
  }, null, 8, Fc)) : y("", !0),
17028
- n.value ? (r(), u("span", {
17046
+ n.value ? (A(), u("span", {
17029
17047
  key: 1,
17030
- class: O(n.value),
17048
+ class: z(n.value),
17031
17049
  style: { "margin-right": "3px", "font-size": "20px" }
17032
17050
  }, null, 2)) : y("", !0),
17033
17051
  o("p", null, k(e.object.text), 1)
@@ -17035,7 +17053,7 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
17035
17053
  ])
17036
17054
  ], 2));
17037
17055
  }
17038
- }), Hc = /* @__PURE__ */ U(qc, [["__scopeId", "data-v-5769425d"]]), Wc = { style: { "padding-left": "12px" } }, Kc = ["onClick"], Jc = {
17056
+ }), Hc = /* @__PURE__ */ B(qc, [["__scopeId", "data-v-5769425d"]]), Wc = { style: { "padding-left": "12px" } }, Kc = ["onClick"], Jc = {
17039
17057
  key: 1,
17040
17058
  class: "feed-found-objects__placeholder"
17041
17059
  }, Gc = /* @__PURE__ */ W({
@@ -17060,22 +17078,22 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
17060
17078
  const n = t, f = e, a = b(), s = b(null), i = Q(() => {
17061
17079
  if (f.notFound) return me("component.FeedFoundObjects.notFound");
17062
17080
  if (!f.notFound) return me("component.FeedFoundObjects.notSearched");
17063
- }), l = (A) => {
17064
- A.messageId && (n("clickedSearch", A.messageId), s.value = A);
17081
+ }), l = (r) => {
17082
+ r.messageId && (n("clickedSearch", r.messageId), s.value = r);
17065
17083
  }, c = () => {
17066
- const A = D(a);
17067
- A.scrollHeight - A.scrollTop - A.clientHeight <= 0 && n("loadMore");
17084
+ const r = D(a);
17085
+ r.scrollHeight - r.scrollTop - r.clientHeight <= 0 && n("loadMore");
17068
17086
  };
17069
- return (A, d) => (r(), u(q, null, [
17087
+ return (r, d) => (A(), u(q, null, [
17070
17088
  o("h3", Wc, k(D(me)("component.FeedFoundObjects.results")) + ": " + k(e.foundAmount), 1),
17071
- e.foundAmount > 0 ? (r(), u("div", {
17089
+ e.foundAmount > 0 ? (A(), u("div", {
17072
17090
  key: 0,
17073
17091
  class: "feed-found-objects__items",
17074
17092
  ref_key: "refItems",
17075
17093
  ref: a,
17076
17094
  onScroll: c
17077
17095
  }, [
17078
- (r(!0), u(q, null, te(e.objects, (g) => (r(), u("div", {
17096
+ (A(!0), u(q, null, te(e.objects, (g) => (A(), u("div", {
17079
17097
  onClick: (m) => l(g)
17080
17098
  }, [
17081
17099
  F(Hc, {
@@ -17083,12 +17101,12 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
17083
17101
  selected: g == s.value
17084
17102
  }, null, 8, ["object", "selected"])
17085
17103
  ], 8, Kc))), 256))
17086
- ], 544)) : e.foundAmount == 0 ? (r(), u("div", Jc, [
17104
+ ], 544)) : e.foundAmount == 0 ? (A(), u("div", Jc, [
17087
17105
  o("p", null, k(i.value), 1)
17088
17106
  ])) : y("", !0)
17089
17107
  ], 64));
17090
17108
  }
17091
- }), zg = /* @__PURE__ */ U(Gc, [["__scopeId", "data-v-c32de248"]]), Zc = { class: "audio-recorder__container" }, Xc = { key: 0 }, eu = {
17109
+ }), zg = /* @__PURE__ */ B(Gc, [["__scopeId", "data-v-c32de248"]]), Zc = { class: "audio-recorder__container" }, Xc = { key: 0 }, eu = {
17092
17110
  key: 1,
17093
17111
  class: "audio-recorder__recording-container"
17094
17112
  }, tu = { class: "audio-recorder__recording-time" }, nu = /* @__PURE__ */ W({
@@ -17105,82 +17123,82 @@ const Sc = { class: "feed-search__container" }, Cc = { style: { "line-height": "
17105
17123
  },
17106
17124
  emits: ["send", "typing"],
17107
17125
  setup(e, { emit: t }) {
17108
- const n = ee("chatAppId"), { getMessage: f, setMessageFile: a, resetMessageFile: s, setRecordingMessage: i } = Ie(n), l = b(), c = b(0), A = b(0), d = b(0), g = b(0), m = Q(() => {
17109
- let L = g.value < 10 ? "0" + g.value : g.value, z = d.value < 10 ? "0" + d.value : d.value, V = A.value < 10 ? "0" + A.value : A.value, B = c.value < 10 ? "00" + c.value : c.value < 100 ? "0" + c.value : c.value;
17110
- return L + ":" + z + ":" + V + ":" + B;
17111
- }), M = b(""), h = b(!1), v = b(), p = b([]), _ = b(), x = b(), N = e, E = async () => {
17112
- const L = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
17126
+ const n = ee("chatAppId"), { getMessage: f, setMessageFile: a, resetMessageFile: s, setRecordingMessage: i } = Ie(n), l = b(), c = b(0), r = b(0), d = b(0), g = b(0), m = Q(() => {
17127
+ let O = g.value < 10 ? "0" + g.value : g.value, V = d.value < 10 ? "0" + d.value : d.value, x = r.value < 10 ? "0" + r.value : r.value, U = c.value < 10 ? "00" + c.value : c.value < 100 ? "0" + c.value : c.value;
17128
+ return O + ":" + V + ":" + x + ":" + U;
17129
+ }), M = b(""), h = b(!1), v = b(), p = b([]), _ = b(), j = b(), N = e, E = async () => {
17130
+ const O = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
17113
17131
  l.value = setInterval(() => {
17114
- c.value += 10, c.value == 1e3 && (c.value = 0, A.value++, A.value == 60 && (A.value = 0, d.value++, d.value == 60 && (d.value = 0, g.value++)));
17115
- }, 10), i(!0), h.value = !0, v.value = new MediaRecorder(L), v.value.start(), v.value.ondataavailable = (z) => {
17116
- p.value.push(z.data);
17132
+ c.value += 10, c.value == 1e3 && (c.value = 0, r.value++, r.value == 60 && (r.value = 0, d.value++, d.value == 60 && (d.value = 0, g.value++)));
17133
+ }, 10), i(!0), h.value = !0, v.value = new MediaRecorder(O), v.value.start(), v.value.ondataavailable = (V) => {
17134
+ p.value.push(V.data);
17117
17135
  };
17118
17136
  }, w = () => {
17119
- T(), _.value = void 0;
17137
+ L(), _.value = void 0;
17120
17138
  }, S = () => {
17121
17139
  v.value && (v.value.stop(), v.value.onstop = async () => {
17122
- const L = new File(p.value, "voicemessage.mp3", { type: "audio/*" }), z = URL.createObjectURL(L);
17123
- _.value = z, M.value = "uploading", await wn(N.filebumpUrl, L).then((V) => {
17124
- M.value = V.status, V.status == "success" && (a({
17125
- url: V.url,
17126
- name: V.name,
17127
- size: V.size,
17128
- type: V.type
17129
- }), V.preview && (x.value = {
17130
- previewUrl: V.preview.previewUrl,
17131
- isImage: V.preview.isImage,
17132
- isVideo: V.preview.isVideo,
17133
- isAudio: V.preview.isAudio,
17134
- fileName: V.name,
17135
- fileSize: V.preview.fileSize
17140
+ const O = new File(p.value, "voicemessage.mp3", { type: "audio/*" }), V = URL.createObjectURL(O);
17141
+ _.value = V, M.value = "uploading", await wn(N.filebumpUrl, O).then((x) => {
17142
+ M.value = x.status, x.status == "success" && (a({
17143
+ url: x.url,
17144
+ name: x.name,
17145
+ size: x.size,
17146
+ type: x.type
17147
+ }), x.preview && (j.value = {
17148
+ previewUrl: x.preview.previewUrl,
17149
+ isImage: x.preview.isImage,
17150
+ isVideo: x.preview.isVideo,
17151
+ isAudio: x.preview.isAudio,
17152
+ fileName: x.name,
17153
+ fileSize: x.preview.fileSize
17136
17154
  }));
17137
17155
  });
17138
- }), T();
17156
+ }), L();
17157
+ }, L = () => {
17158
+ clearInterval(l.value), c.value = 0, r.value = 0, d.value = 0, g.value = 0, i(!1), h.value = !1, v.value = void 0, p.value = [];
17139
17159
  }, T = () => {
17140
- clearInterval(l.value), c.value = 0, A.value = 0, d.value = 0, g.value = 0, i(!1), h.value = !1, v.value = void 0, p.value = [];
17141
- }, j = () => {
17142
- s(), x.value = void 0;
17160
+ s(), j.value = void 0;
17143
17161
  };
17144
- return (L, z) => (r(), u("div", Zc, [
17145
- M.value === "uploading" ? (r(), u("div", Xc, z[0] || (z[0] = [
17162
+ return (O, V) => (A(), u("div", Zc, [
17163
+ M.value === "uploading" ? (A(), u("div", Xc, V[0] || (V[0] = [
17146
17164
  o("p", null, "Загрузка файла...", -1)
17147
17165
  ]))) : y("", !0),
17148
- h.value && M.value != "uploading" ? (r(), u("div", eu, [
17149
- z[3] || (z[3] = o("span", { class: "audio-recorder__recording-icon pi pi-circle-fill" }, null, -1)),
17166
+ h.value && M.value != "uploading" ? (A(), u("div", eu, [
17167
+ V[3] || (V[3] = o("span", { class: "audio-recorder__recording-icon pi pi-circle-fill" }, null, -1)),
17150
17168
  o("span", tu, k(m.value), 1),
17151
17169
  o("button", {
17152
17170
  class: "audio-recorder__button audio-recorder__button-record",
17153
17171
  onClick: w
17154
- }, z[1] || (z[1] = [
17172
+ }, V[1] || (V[1] = [
17155
17173
  o("span", { class: "pi pi-trash" }, null, -1)
17156
17174
  ])),
17157
17175
  o("button", {
17158
17176
  class: "audio-recorder__button audio-recorder__button-record",
17159
17177
  onClick: S
17160
- }, z[2] || (z[2] = [
17178
+ }, V[2] || (V[2] = [
17161
17179
  o("span", { class: "pi pi-stop" }, null, -1)
17162
17180
  ]))
17163
17181
  ])) : y("", !0),
17164
- !h.value && M.value != "uploading" && !D(f)().isRecording ? (r(), u("button", {
17182
+ !h.value && M.value != "uploading" && !D(f)().isRecording ? (A(), u("button", {
17165
17183
  key: 2,
17166
- class: O(["audio-recorder__button", { "audio-recorder__button-disabled": e.state == "disabled" }]),
17184
+ class: z(["audio-recorder__button", { "audio-recorder__button-disabled": e.state == "disabled" }]),
17167
17185
  onClick: E
17168
- }, z[4] || (z[4] = [
17186
+ }, V[4] || (V[4] = [
17169
17187
  o("span", { class: "pi pi-microphone" }, null, -1)
17170
17188
  ]), 2)) : y("", !0),
17171
- D(f)().file ? (r(), R(_e, {
17189
+ D(f)().file ? (A(), R(_e, {
17172
17190
  key: 3,
17173
17191
  to: "#chat-input-file-line-" + D(n)
17174
17192
  }, [
17175
- x.value ? (r(), R(In, {
17193
+ j.value ? (A(), R(In, {
17176
17194
  key: 0,
17177
- "file-info": x.value,
17178
- onReset: j
17195
+ "file-info": j.value,
17196
+ onReset: T
17179
17197
  }, null, 8, ["file-info"])) : y("", !0)
17180
17198
  ], 8, ["to"])) : y("", !0)
17181
17199
  ]));
17182
17200
  }
17183
- }), Lg = /* @__PURE__ */ U(nu, [["__scopeId", "data-v-3858ecbb"]]);
17201
+ }), Lg = /* @__PURE__ */ B(nu, [["__scopeId", "data-v-3858ecbb"]]);
17184
17202
  function Ct({ component: e, attrs: t, Modal: n, modalAttrs: f }) {
17185
17203
  return new Promise((a) => {
17186
17204
  const s = document.createElement("div");
@@ -17189,7 +17207,7 @@ function Ct({ component: e, attrs: t, Modal: n, modalAttrs: f }) {
17189
17207
  g.unmount(), document.body.removeChild(s);
17190
17208
  }, c = () => {
17191
17209
  l(), a(i.value);
17192
- }, A = (m) => {
17210
+ }, r = (m) => {
17193
17211
  Object.keys(m).forEach((M) => {
17194
17212
  i.value[M] = m[M];
17195
17213
  });
@@ -17207,7 +17225,7 @@ function Ct({ component: e, attrs: t, Modal: n, modalAttrs: f }) {
17207
17225
  Ya(() => e),
17208
17226
  {
17209
17227
  ...t,
17210
- onChange: A,
17228
+ onChange: r,
17211
17229
  onSubmit: c,
17212
17230
  onClose: l
17213
17231
  }
@@ -17241,7 +17259,7 @@ const fu = ["data-theme"], au = {
17241
17259
  const n = t, f = (a) => {
17242
17260
  a.target.classList.contains("modal-backdrop") && n("close");
17243
17261
  };
17244
- return (a, s) => (r(), R(Z, { name: "modal-fade" }, {
17262
+ return (a, s) => (A(), R(Z, { name: "modal-fade" }, {
17245
17263
  default: K(() => [
17246
17264
  o("div", {
17247
17265
  class: "modal-backdrop",
@@ -17272,10 +17290,10 @@ const fu = ["data-theme"], au = {
17272
17290
  _: 3
17273
17291
  }));
17274
17292
  }
17275
- }, yf = /* @__PURE__ */ U(ou, [["__scopeId", "data-v-273f65a1"]]), Ug = async (e, t) => {
17293
+ }, yf = /* @__PURE__ */ B(ou, [["__scopeId", "data-v-273f65a1"]]), Ug = async (e, t) => {
17276
17294
  const n = await Ct({
17277
17295
  //в component должен быть встроен emit change(key: value)
17278
- component: import("./SelectUser2-BvGbjikG.js"),
17296
+ component: import("./SelectUser2-D8tOyzpd.js"),
17279
17297
  attrs: {
17280
17298
  title: e,
17281
17299
  users: t
@@ -17325,7 +17343,7 @@ const fu = ["data-theme"], au = {
17325
17343
  const n = t, f = (a) => {
17326
17344
  a.target.classList.contains("modal-backdrop") && n("close");
17327
17345
  };
17328
- return (a, s) => (r(), R(Z, { name: "modal-fade" }, {
17346
+ return (a, s) => (A(), R(Z, { name: "modal-fade" }, {
17329
17347
  default: K(() => [
17330
17348
  o("div", {
17331
17349
  "data-theme": e.theme,
@@ -17342,9 +17360,9 @@ const fu = ["data-theme"], au = {
17342
17360
  _: 3
17343
17361
  }));
17344
17362
  }
17345
- }, Sa = /* @__PURE__ */ U(cu, [["__scopeId", "data-v-738b3092"]]), Qg = async (e, t, n, f, a) => await Ct({
17363
+ }, Sa = /* @__PURE__ */ B(cu, [["__scopeId", "data-v-738b3092"]]), Qg = async (e, t, n, f, a) => await Ct({
17346
17364
  //в component должен быть встроен emit change(key: value)
17347
- component: import("./CreateDialog-CyLFI0aC.js"),
17365
+ component: import("./CreateDialog-Rg0fmoAU.js"),
17348
17366
  attrs: {
17349
17367
  title: e,
17350
17368
  name: t,
@@ -17357,7 +17375,7 @@ const fu = ["data-theme"], au = {
17357
17375
  }
17358
17376
  }), uu = async (e) => await Ct({
17359
17377
  //в component должен быть встроен emit change(key: value)
17360
- component: import("./ModalVideoRecorder-C6wpvDY-.js"),
17378
+ component: import("./ModalVideoRecorder-Ch7Ul1AT.js"),
17361
17379
  attrs: {},
17362
17380
  Modal: Sa,
17363
17381
  modalAttrs: {
@@ -17382,7 +17400,7 @@ const fu = ["data-theme"], au = {
17382
17400
  }
17383
17401
  },
17384
17402
  setup(e) {
17385
- const t = ee("chatAppId"), { getMessage: n, setMessageFile: f, setRecordingMessage: a, resetMessageFile: s } = Ie(t), i = b(""), l = b(), c = e, A = async () => {
17403
+ const t = ee("chatAppId"), { getMessage: n, setMessageFile: f, setRecordingMessage: a, resetMessageFile: s } = Ie(t), i = b(""), l = b(), c = e, r = async () => {
17386
17404
  await uu().then(async (g) => {
17387
17405
  g.videoFile && (i.value = "uploading", a(!0), await wn(c.filebumpUrl, g.videoFile).then((m) => {
17388
17406
  a(!1), i.value = m.status, m.status == "success" && (f({
@@ -17403,24 +17421,24 @@ const fu = ["data-theme"], au = {
17403
17421
  }, d = () => {
17404
17422
  s(), l.value = void 0;
17405
17423
  };
17406
- return (g, m) => (r(), u(q, null, [
17407
- D(n)().isRecording ? y("", !0) : (r(), u("div", du, [
17408
- i.value != "uploading" ? (r(), u("button", {
17424
+ return (g, m) => (A(), u(q, null, [
17425
+ D(n)().isRecording ? y("", !0) : (A(), u("div", du, [
17426
+ i.value != "uploading" ? (A(), u("button", {
17409
17427
  key: 0,
17410
- class: O(["video-recorder__button", { "video-recorder__button-disabled": e.state == "disabled" }]),
17411
- onClick: A
17428
+ class: z(["video-recorder__button", { "video-recorder__button-disabled": e.state == "disabled" }]),
17429
+ onClick: r
17412
17430
  }, m[0] || (m[0] = [
17413
17431
  o("span", { class: "pi pi-video" }, null, -1)
17414
17432
  ]), 2)) : y("", !0)
17415
17433
  ])),
17416
- i.value === "uploading" ? (r(), u("div", gu, m[1] || (m[1] = [
17434
+ i.value === "uploading" ? (A(), u("div", gu, m[1] || (m[1] = [
17417
17435
  o("p", null, "Загрузка файла...", -1)
17418
17436
  ]))) : y("", !0),
17419
- D(n)().file ? (r(), R(_e, {
17437
+ D(n)().file ? (A(), R(_e, {
17420
17438
  key: 2,
17421
17439
  to: "#chat-input-file-line-" + D(t)
17422
17440
  }, [
17423
- l.value ? (r(), R(In, {
17441
+ l.value ? (A(), R(In, {
17424
17442
  key: 0,
17425
17443
  "file-info": l.value,
17426
17444
  onReset: d
@@ -17428,7 +17446,7 @@ const fu = ["data-theme"], au = {
17428
17446
  ], 8, ["to"])) : y("", !0)
17429
17447
  ], 64));
17430
17448
  }
17431
- }), $g = /* @__PURE__ */ U(mu, [["__scopeId", "data-v-dfc0c350"]]), At = /* @__PURE__ */ W({
17449
+ }), $g = /* @__PURE__ */ B(mu, [["__scopeId", "data-v-dfc0c350"]]), At = /* @__PURE__ */ W({
17432
17450
  __name: "BaseReplyMessage",
17433
17451
  props: {
17434
17452
  message: {
@@ -17451,20 +17469,20 @@ const fu = ["data-theme"], au = {
17451
17469
  "message.file": "",
17452
17470
  "message.audio": "grid",
17453
17471
  "message.video": "grid"
17454
- })[d], A = () => {
17472
+ })[d], r = () => {
17455
17473
  s();
17456
17474
  };
17457
17475
  return (d, g) => {
17458
17476
  var m, M;
17459
- return r(), u("div", {
17460
- class: O(["reply__container", c((m = e.message) == null ? void 0 : m.type)]),
17477
+ return A(), u("div", {
17478
+ class: z(["reply__container", c((m = e.message) == null ? void 0 : m.type)]),
17461
17479
  onClick: i
17462
17480
  }, [
17463
- (r(), R(Xf(l((M = e.message) == null ? void 0 : M.type)), { message: e.message }, null, 8, ["message"])),
17481
+ (A(), R(Xf(l((M = e.message) == null ? void 0 : M.type)), { message: e.message }, null, 8, ["message"])),
17464
17482
  o("span", {
17465
17483
  class: "pi pi-times reply__reset",
17466
17484
  style: { "font-size": "1rem" },
17467
- onClick: A
17485
+ onClick: r
17468
17486
  })
17469
17487
  ], 2);
17470
17488
  };
@@ -17478,7 +17496,7 @@ const fu = ["data-theme"], au = {
17478
17496
  }
17479
17497
  },
17480
17498
  setup(e) {
17481
- return (t, n) => (r(), u("div", pu, [
17499
+ return (t, n) => (A(), u("div", pu, [
17482
17500
  o("div", hu, [
17483
17501
  o("a", {
17484
17502
  class: "link-preview__link-container",
@@ -17496,7 +17514,7 @@ const fu = ["data-theme"], au = {
17496
17514
  ])
17497
17515
  ]));
17498
17516
  }
17499
- }), Ot = /* @__PURE__ */ U(_u, [["__scopeId", "data-v-281fb650"]]), Iu = ["messageId"], wu = ["src"], ku = {
17517
+ }), Ot = /* @__PURE__ */ B(_u, [["__scopeId", "data-v-281fb650"]]), Iu = ["messageId"], wu = ["src"], ku = {
17500
17518
  key: 1,
17501
17519
  class: "file-message__subtext"
17502
17520
  }, Nu = ["href"], Du = { class: "file-message__filename-text" }, Eu = {
@@ -17529,7 +17547,7 @@ const fu = ["data-theme"], au = {
17529
17547
  function c(v) {
17530
17548
  v.preventDefault(), v.target.href && window.open(v.target.href, "_blank");
17531
17549
  }
17532
- const A = () => {
17550
+ const r = () => {
17533
17551
  f("action", { messageId: n.message.messageId, type: "views" });
17534
17552
  }, d = () => {
17535
17553
  }, g = () => {
@@ -17540,29 +17558,29 @@ const fu = ["data-theme"], au = {
17540
17558
  function h(v) {
17541
17559
  return v.position === "left" ? "file-message__left" : "file-message__right";
17542
17560
  }
17543
- return (v, p) => (r(), u("div", {
17544
- class: O(["file-message", h(e.message)]),
17561
+ return (v, p) => (A(), u("div", {
17562
+ class: z(["file-message", h(e.message)]),
17545
17563
  messageId: e.message.messageId,
17546
17564
  onMouseleave: m
17547
17565
  }, [
17548
- e.message.avatar ? (r(), u("img", {
17566
+ e.message.avatar ? (A(), u("img", {
17549
17567
  key: 0,
17550
17568
  class: "file-message__avatar",
17551
17569
  src: e.message.avatar,
17552
17570
  height: "32",
17553
17571
  width: "32",
17554
- style: ie({ gridRow: e.message.subText ? "2" : "1" })
17572
+ style: se({ gridRow: e.message.subText ? "2" : "1" })
17555
17573
  }, null, 12, wu)) : y("", !0),
17556
- e.message.subText ? (r(), u("p", ku, k(e.message.subText), 1)) : y("", !0),
17574
+ e.message.subText ? (A(), u("p", ku, k(e.message.subText), 1)) : y("", !0),
17557
17575
  o("div", {
17558
17576
  class: "file-message__content",
17559
- style: ie({ gridRow: e.message.subText ? "2" : "1" }),
17577
+ style: se({ gridRow: e.message.subText ? "2" : "1" }),
17560
17578
  onMouseenter: g
17561
17579
  }, [
17562
- e.message.reply ? (r(), R(At, {
17580
+ e.message.reply ? (A(), R(At, {
17563
17581
  key: 0,
17564
17582
  message: e.message.reply,
17565
- class: O(e.message.position),
17583
+ class: z(e.message.position),
17566
17584
  onReply: l
17567
17585
  }, null, 8, ["message", "class"])) : y("", !0),
17568
17586
  o("a", {
@@ -17577,36 +17595,36 @@ const fu = ["data-theme"], au = {
17577
17595
  o("span", { class: "pi pi-download" })
17578
17596
  ], -1))
17579
17597
  ], 8, Nu),
17580
- e.message.text ? (r(), u("div", Eu, [
17598
+ e.message.text ? (A(), u("div", Eu, [
17581
17599
  o("p", {
17582
17600
  innerHTML: i.value,
17583
17601
  onClick: c
17584
17602
  }, null, 8, Tu)
17585
17603
  ])) : y("", !0),
17586
- e.message.linkPreview ? (r(), R(Ot, {
17604
+ e.message.linkPreview ? (A(), R(Ot, {
17587
17605
  key: 2,
17588
- class: O(e.message.position),
17606
+ class: z(e.message.position),
17589
17607
  linkPreview: e.message.linkPreview
17590
17608
  }, null, 8, ["class", "linkPreview"])) : y("", !0),
17591
17609
  o("div", ju, [
17592
- e.message.views ? (r(), u("div", {
17610
+ e.message.views ? (A(), u("div", {
17593
17611
  key: 0,
17594
- onClick: A,
17612
+ onClick: r,
17595
17613
  class: "file-message__views"
17596
17614
  }, [
17597
17615
  p[3] || (p[3] = o("span", { class: "pi pi-eye" }, null, -1)),
17598
17616
  o("p", null, k(e.message.views), 1)
17599
17617
  ])) : y("", !0),
17600
17618
  o("span", xu, k(e.message.time), 1),
17601
- h(e.message) === "file-message__right" && D(lt).includes(e.message.status) ? (r(), u("div", {
17619
+ h(e.message) === "file-message__right" && D(lt).includes(e.message.status) ? (A(), u("div", {
17602
17620
  key: 1,
17603
- class: O(["file-message__status", M.value])
17621
+ class: z(["file-message__status", M.value])
17604
17622
  }, [
17605
- e.message.status !== "sent" ? (r(), u("span", Vu)) : y("", !0),
17623
+ e.message.status !== "sent" ? (A(), u("span", Vu)) : y("", !0),
17606
17624
  p[4] || (p[4] = o("span", { class: "pi pi-check" }, null, -1))
17607
17625
  ], 2)) : y("", !0)
17608
17626
  ]),
17609
- s.value && e.message.actions ? (r(), u("button", {
17627
+ s.value && e.message.actions ? (A(), u("button", {
17610
17628
  key: 3,
17611
17629
  class: "file-message__menu-button",
17612
17630
  onClick: p[0] || (p[0] = (_) => a.value = !a.value)
@@ -17615,7 +17633,7 @@ const fu = ["data-theme"], au = {
17615
17633
  ]))) : y("", !0),
17616
17634
  F(Z, null, {
17617
17635
  default: K(() => [
17618
- a.value && e.message.actions ? (r(), R(D($e), {
17636
+ a.value && e.message.actions ? (A(), R(D($e), {
17619
17637
  key: 0,
17620
17638
  class: "file-message__context-menu",
17621
17639
  actions: e.message.actions,
@@ -17627,7 +17645,7 @@ const fu = ["data-theme"], au = {
17627
17645
  ], 36)
17628
17646
  ], 42, Iu));
17629
17647
  }
17630
- }), Cu = /* @__PURE__ */ U(Su, [["__scopeId", "data-v-2e4508bd"]]), Ou = ["messageId"], zu = ["src"], Lu = {
17648
+ }), Cu = /* @__PURE__ */ B(Su, [["__scopeId", "data-v-2e4508bd"]]), Ou = ["messageId"], zu = ["src"], Lu = {
17631
17649
  key: 1,
17632
17650
  class: "image-message__subtext"
17633
17651
  }, Uu = { class: "image-message__content" }, Bu = ["src", "alt"], Ru = {
@@ -17657,7 +17675,7 @@ const fu = ["data-theme"], au = {
17657
17675
  },
17658
17676
  { immediate: !0 }
17659
17677
  );
17660
- const A = (E) => {
17678
+ const r = (E) => {
17661
17679
  f("reply", E);
17662
17680
  };
17663
17681
  function d(E) {
@@ -17674,33 +17692,33 @@ const fu = ["data-theme"], au = {
17674
17692
  function _(E) {
17675
17693
  return E.position === "left" ? "image-message__left" : "image-message__right";
17676
17694
  }
17677
- const x = () => a.value = !1, N = (E) => {
17678
- E.key === "Escape" && a.value && x();
17695
+ const j = () => a.value = !1, N = (E) => {
17696
+ E.key === "Escape" && a.value && j();
17679
17697
  };
17680
17698
  return le(() => {
17681
17699
  document.addEventListener("keydown", N);
17682
17700
  }), Ke(() => {
17683
17701
  document.removeEventListener("keydown", N);
17684
- }), (E, w) => (r(), u("div", {
17685
- class: O(["image-message", _(e.message)]),
17702
+ }), (E, w) => (A(), u("div", {
17703
+ class: z(["image-message", _(e.message)]),
17686
17704
  messageId: e.message.messageId,
17687
17705
  onMouseleave: h
17688
17706
  }, [
17689
- e.message.avatar ? (r(), u("img", {
17707
+ e.message.avatar ? (A(), u("img", {
17690
17708
  key: 0,
17691
17709
  class: "image-message__avatar",
17692
17710
  src: e.message.avatar,
17693
17711
  height: "32",
17694
17712
  width: "32"
17695
17713
  }, null, 8, zu)) : y("", !0),
17696
- e.message.subText ? (r(), u("p", Lu, k(e.message.subText), 1)) : y("", !0),
17714
+ e.message.subText ? (A(), u("p", Lu, k(e.message.subText), 1)) : y("", !0),
17697
17715
  o("div", Uu, [
17698
- e.message.reply ? (r(), R(At, {
17716
+ e.message.reply ? (A(), R(At, {
17699
17717
  key: 0,
17700
17718
  style: { margin: "10px 10px 4px 16px" },
17701
- class: O(e.message.position),
17719
+ class: z(e.message.position),
17702
17720
  message: e.message.reply,
17703
- onReply: A
17721
+ onReply: r
17704
17722
  }, null, 8, ["class", "message"])) : y("", !0),
17705
17723
  o("div", {
17706
17724
  class: "image-message__preview-button",
@@ -17710,14 +17728,14 @@ const fu = ["data-theme"], au = {
17710
17728
  }, [
17711
17729
  o("img", {
17712
17730
  class: "image-message__preview-image",
17713
- style: ie({ borderRadius: v.value }),
17731
+ style: se({ borderRadius: v.value }),
17714
17732
  src: e.message.url,
17715
17733
  alt: e.message.alt
17716
17734
  }, null, 12, Bu),
17717
17735
  F(Z, { name: "modal-fade" }, {
17718
17736
  default: K(() => [
17719
- l.value ? (r(), u("div", Ru, [
17720
- e.message.views ? (r(), u("div", {
17737
+ l.value ? (A(), u("div", Ru, [
17738
+ e.message.views ? (A(), u("div", {
17721
17739
  key: 0,
17722
17740
  onClick: kt(g, ["stop"]),
17723
17741
  class: "image-message__views"
@@ -17726,11 +17744,11 @@ const fu = ["data-theme"], au = {
17726
17744
  o("p", null, k(e.message.views), 1)
17727
17745
  ])) : y("", !0),
17728
17746
  o("span", Qu, k(e.message.time), 1),
17729
- _(e.message) === "image-message__right" && D(lt).includes(e.message.status) ? (r(), u("div", {
17747
+ _(e.message) === "image-message__right" && D(lt).includes(e.message.status) ? (A(), u("div", {
17730
17748
  key: 1,
17731
- class: O(["image-message__status", p.value])
17749
+ class: z(["image-message__status", p.value])
17732
17750
  }, [
17733
- e.message.status !== "sent" ? (r(), u("span", $u)) : y("", !0),
17751
+ e.message.status !== "sent" ? (A(), u("span", $u)) : y("", !0),
17734
17752
  w[4] || (w[4] = o("span", { class: "pi pi-check" }, null, -1))
17735
17753
  ], 2)) : y("", !0)
17736
17754
  ])) : y("", !0)
@@ -17739,7 +17757,7 @@ const fu = ["data-theme"], au = {
17739
17757
  }),
17740
17758
  F(Z, { name: "modal-fade" }, {
17741
17759
  default: K(() => [
17742
- l.value ? (r(), u("a", {
17760
+ l.value ? (A(), u("a", {
17743
17761
  key: 0,
17744
17762
  onClick: kt(() => "//Предотвращаем всплытие события клика", ["stop"]),
17745
17763
  class: "image-message__download-button",
@@ -17755,7 +17773,7 @@ const fu = ["data-theme"], au = {
17755
17773
  ], 32),
17756
17774
  F(Z, { name: "modal-fade" }, {
17757
17775
  default: K(() => [
17758
- i.value && e.message.actions ? (r(), u("button", {
17776
+ i.value && e.message.actions ? (A(), u("button", {
17759
17777
  key: 0,
17760
17778
  class: "image-message__menu-button",
17761
17779
  onClick: w[2] || (w[2] = (S) => s.value = !s.value)
@@ -17767,7 +17785,7 @@ const fu = ["data-theme"], au = {
17767
17785
  }),
17768
17786
  F(Z, { name: "context-menu" }, {
17769
17787
  default: K(() => [
17770
- s.value && e.message.actions ? (r(), R(D($e), {
17788
+ s.value && e.message.actions ? (A(), R(D($e), {
17771
17789
  key: 0,
17772
17790
  class: "image-message__context-menu",
17773
17791
  actions: e.message.actions,
@@ -17776,24 +17794,24 @@ const fu = ["data-theme"], au = {
17776
17794
  ]),
17777
17795
  _: 1
17778
17796
  }),
17779
- e.message.text ? (r(), u("div", Pu, [
17797
+ e.message.text ? (A(), u("div", Pu, [
17780
17798
  o("p", {
17781
17799
  innerHTML: c.value,
17782
17800
  onClick: d
17783
17801
  }, null, 8, Fu)
17784
17802
  ])) : y("", !0),
17785
- e.message.linkPreview ? (r(), R(Ot, {
17803
+ e.message.linkPreview ? (A(), R(Ot, {
17786
17804
  key: 2,
17787
- class: O(["image-message__link-preview", e.message.position]),
17805
+ class: z(["image-message__link-preview", e.message.position]),
17788
17806
  linkPreview: e.message.linkPreview
17789
17807
  }, null, 8, ["class", "linkPreview"])) : y("", !0)
17790
17808
  ]),
17791
- (r(), R(_e, { to: "body" }, [
17809
+ (A(), R(_e, { to: "body" }, [
17792
17810
  F(Z, { name: "modal-fade" }, {
17793
17811
  default: K(() => [
17794
- a.value ? (r(), R(lf, {
17812
+ a.value ? (A(), R(lf, {
17795
17813
  key: 0,
17796
- onClose: x
17814
+ onClose: j
17797
17815
  }, {
17798
17816
  default: K(() => [
17799
17817
  o("img", {
@@ -17810,7 +17828,7 @@ const fu = ["data-theme"], au = {
17810
17828
  ]))
17811
17829
  ], 42, Ou));
17812
17830
  }
17813
- }), Wu = /* @__PURE__ */ U(Hu, [["__scopeId", "data-v-278c831a"]]), Ku = ["messageId"], Ju = ["src"], Gu = {
17831
+ }), Wu = /* @__PURE__ */ B(Hu, [["__scopeId", "data-v-278c831a"]]), Ku = ["messageId"], Ju = ["src"], Gu = {
17814
17832
  key: 1,
17815
17833
  class: "text-message__subtext"
17816
17834
  }, Zu = ["innerHTML"], Xu = { class: "text-message__info-container" }, e1 = {
@@ -17843,7 +17861,7 @@ const fu = ["data-theme"], au = {
17843
17861
  function c(v) {
17844
17862
  v.preventDefault(), v.target.href && window.open(v.target.href, "_blank");
17845
17863
  }
17846
- const A = () => {
17864
+ const r = () => {
17847
17865
  s.value = !0;
17848
17866
  }, d = () => {
17849
17867
  s.value = !1, a.value = !1;
@@ -17855,27 +17873,27 @@ const fu = ["data-theme"], au = {
17855
17873
  function h(v) {
17856
17874
  return v.position === "left" ? "text-message__left" : "text-message__right";
17857
17875
  }
17858
- return (v, p) => (r(), u("div", {
17859
- class: O(["text-message", h(e.message)]),
17876
+ return (v, p) => (A(), u("div", {
17877
+ class: z(["text-message", h(e.message)]),
17860
17878
  messageId: e.message.messageId,
17861
17879
  onMouseleave: d
17862
17880
  }, [
17863
- e.message.avatar ? (r(), u("img", {
17881
+ e.message.avatar ? (A(), u("img", {
17864
17882
  key: 0,
17865
17883
  class: "text-message__avatar",
17866
17884
  src: e.message.avatar,
17867
17885
  height: "32",
17868
17886
  width: "32",
17869
- style: ie({ gridRow: e.message.subText ? "2" : "1" })
17887
+ style: se({ gridRow: e.message.subText ? "2" : "1" })
17870
17888
  }, null, 12, Ju)) : y("", !0),
17871
- e.message.subText ? (r(), u("p", Gu, k(e.message.subText), 1)) : y("", !0),
17889
+ e.message.subText ? (A(), u("p", Gu, k(e.message.subText), 1)) : y("", !0),
17872
17890
  o("div", {
17873
17891
  class: "text-message__content",
17874
- onMouseenter: A
17892
+ onMouseenter: r
17875
17893
  }, [
17876
- e.message.reply ? (r(), R(At, {
17894
+ e.message.reply ? (A(), R(At, {
17877
17895
  key: 0,
17878
- class: O(e.message.position),
17896
+ class: z(e.message.position),
17879
17897
  message: e.message.reply,
17880
17898
  onReply: l
17881
17899
  }, null, 8, ["class", "message"])) : y("", !0),
@@ -17884,13 +17902,13 @@ const fu = ["data-theme"], au = {
17884
17902
  class: "text-message__text",
17885
17903
  onClick: c
17886
17904
  }, null, 8, Zu),
17887
- e.message.linkPreview ? (r(), R(Ot, {
17905
+ e.message.linkPreview ? (A(), R(Ot, {
17888
17906
  key: 1,
17889
- class: O(e.message.position),
17907
+ class: z(e.message.position),
17890
17908
  linkPreview: e.message.linkPreview
17891
17909
  }, null, 8, ["class", "linkPreview"])) : y("", !0),
17892
17910
  o("div", Xu, [
17893
- e.message.views ? (r(), u("div", {
17911
+ e.message.views ? (A(), u("div", {
17894
17912
  key: 0,
17895
17913
  class: "text-message__views",
17896
17914
  onClick: M
@@ -17898,16 +17916,16 @@ const fu = ["data-theme"], au = {
17898
17916
  p[1] || (p[1] = o("span", { class: "pi pi-eye" }, null, -1)),
17899
17917
  o("p", null, k(e.message.views), 1)
17900
17918
  ])) : y("", !0),
17901
- e.message.time ? (r(), u("span", e1, k(e.message.time), 1)) : y("", !0),
17902
- h(e.message) === "text-message__right" && D(lt).includes(e.message.status) ? (r(), u("div", {
17919
+ e.message.time ? (A(), u("span", e1, k(e.message.time), 1)) : y("", !0),
17920
+ h(e.message) === "text-message__right" && D(lt).includes(e.message.status) ? (A(), u("div", {
17903
17921
  key: 2,
17904
- class: O(["text-message__status", g.value])
17922
+ class: z(["text-message__status", g.value])
17905
17923
  }, [
17906
- e.message.status !== "sent" ? (r(), u("span", t1)) : y("", !0),
17924
+ e.message.status !== "sent" ? (A(), u("span", t1)) : y("", !0),
17907
17925
  p[2] || (p[2] = o("span", { class: "pi pi-check" }, null, -1))
17908
17926
  ], 2)) : y("", !0)
17909
17927
  ]),
17910
- s.value && e.message.actions ? (r(), u("button", {
17928
+ s.value && e.message.actions ? (A(), u("button", {
17911
17929
  key: 2,
17912
17930
  class: "text-message__menu-button",
17913
17931
  onClick: p[0] || (p[0] = (_) => a.value = !a.value)
@@ -17916,7 +17934,7 @@ const fu = ["data-theme"], au = {
17916
17934
  ]))) : y("", !0),
17917
17935
  F(Z, null, {
17918
17936
  default: K(() => [
17919
- a.value && e.message.actions ? (r(), R(D($e), {
17937
+ a.value && e.message.actions ? (A(), R(D($e), {
17920
17938
  key: 0,
17921
17939
  class: "text-message__context-menu",
17922
17940
  actions: e.message.actions,
@@ -17928,7 +17946,7 @@ const fu = ["data-theme"], au = {
17928
17946
  ], 32)
17929
17947
  ], 42, Ku));
17930
17948
  }
17931
- }), f1 = /* @__PURE__ */ U(n1, [["__scopeId", "data-v-269c4248"]]), a1 = ["messageId"], s1 = ["src"], i1 = {
17949
+ }), f1 = /* @__PURE__ */ B(n1, [["__scopeId", "data-v-269c4248"]]), a1 = ["messageId"], s1 = ["src"], i1 = {
17932
17950
  key: 1,
17933
17951
  class: "audio-message__subtext"
17934
17952
  }, o1 = { class: "audio-message__audio-container" }, l1 = ["src"], r1 = ["max"], A1 = { class: "audio-message__player-controls" }, c1 = { class: "audio-message__remaining-time" }, u1 = { class: "audio-message__speed-btn-container" }, d1 = ["onClick"], g1 = ["href"], m1 = {
@@ -17974,42 +17992,42 @@ const fu = ["data-theme"], au = {
17974
17992
  speed: 2,
17975
17993
  selected: !1
17976
17994
  }
17977
- ]), a = (z) => {
17978
- for (let V of f.value)
17979
- V.selected = !1;
17980
- f.value[z].selected = !0, i.value && (i.value.playbackRate = f.value[z].speed);
17981
- }, s = t, i = b(), l = b(!1), c = b(0), A = b(0), d = b(!1), g = b(!1), m = b(!1), M = Q(() => {
17995
+ ]), a = (V) => {
17996
+ for (let x of f.value)
17997
+ x.selected = !1;
17998
+ f.value[V].selected = !0, i.value && (i.value.playbackRate = f.value[V].speed);
17999
+ }, s = t, i = b(), l = b(!1), c = b(0), r = b(0), d = b(!1), g = b(!1), m = b(!1), M = Q(() => {
17982
18000
  if (n.message.text) return we(n.message.text);
17983
- }), h = (z) => {
17984
- s("reply", z);
18001
+ }), h = (V) => {
18002
+ s("reply", V);
17985
18003
  };
17986
- function v(z) {
17987
- z.preventDefault(), z.target.href && window.open(z.target.href, "_blank");
18004
+ function v(V) {
18005
+ V.preventDefault(), V.target.href && window.open(V.target.href, "_blank");
17988
18006
  }
17989
18007
  const p = () => {
17990
18008
  g.value = !0;
17991
18009
  }, _ = () => {
17992
18010
  g.value = !1, d.value = !1;
17993
- }, x = () => {
18011
+ }, j = () => {
17994
18012
  s("action", { messageId: n.message.messageId, type: "views" });
17995
18013
  }, N = () => {
17996
18014
  }, E = Q(() => rt(n.message.status));
17997
18015
  function w() {
17998
18016
  i.value && (l.value ? i.value.pause() : i.value.play(), l.value = !l.value);
17999
18017
  }
18000
- const S = (z) => {
18001
- const V = Math.floor(z / 60), B = Math.floor(z % 60);
18002
- return `${V.toString().padStart(2, "0")}:${B.toString().padStart(2, "0")}`;
18003
- }, T = Q(() => i.value ? S(A.value) : "0:00");
18018
+ const S = (V) => {
18019
+ const x = Math.floor(V / 60), U = Math.floor(V % 60);
18020
+ return `${x.toString().padStart(2, "0")}:${U.toString().padStart(2, "0")}`;
18021
+ }, L = Q(() => i.value ? S(r.value) : "0:00");
18004
18022
  X(
18005
- () => A.value,
18023
+ () => r.value,
18006
18024
  () => {
18007
- i.value && (i.value.duration != 1 / 0 && !Number.isNaN(i.value.duration) && (i.value.currentTime = A.value), A.value == c.value && (l.value = !1));
18025
+ i.value && (i.value.duration != 1 / 0 && !Number.isNaN(i.value.duration) && (i.value.currentTime = r.value), r.value == c.value && (l.value = !1));
18008
18026
  }
18009
18027
  );
18010
- const j = Q(() => i.value ? S(c.value) : "0:00");
18011
- function L(z) {
18012
- return z.position === "left" ? "audio-message__left" : "audio-message__right";
18028
+ const T = Q(() => i.value ? S(c.value) : "0:00");
18029
+ function O(V) {
18030
+ return V.position === "left" ? "audio-message__left" : "audio-message__right";
18013
18031
  }
18014
18032
  return le(() => {
18015
18033
  i.value != null && (i.value.addEventListener("loadedmetadata", () => {
@@ -18017,33 +18035,33 @@ const fu = ["data-theme"], au = {
18017
18035
  i.value && (i.value.currentTime = 0, c.value = i.value.duration);
18018
18036
  }, { once: !0 })), c.value = i.value != null ? i.value.duration : 0;
18019
18037
  }), i.value.addEventListener("timeupdate", () => {
18020
- A.value = i.value != null ? i.value.currentTime : 0;
18038
+ r.value = i.value != null ? i.value.currentTime : 0;
18021
18039
  }));
18022
- }), (z, V) => {
18023
- var B;
18024
- return r(), u("div", {
18025
- class: O(["audio-message", L(e.message)]),
18040
+ }), (V, x) => {
18041
+ var U;
18042
+ return A(), u("div", {
18043
+ class: z(["audio-message", O(e.message)]),
18026
18044
  messageId: e.message.messageId,
18027
18045
  onMouseleave: _
18028
18046
  }, [
18029
- e.message.avatar ? (r(), u("img", {
18047
+ e.message.avatar ? (A(), u("img", {
18030
18048
  key: 0,
18031
18049
  class: "audio-message__avatar",
18032
18050
  src: e.message.avatar,
18033
18051
  height: "32",
18034
18052
  width: "32",
18035
- style: ie({ gridRow: e.message.subText ? "2" : "1" })
18053
+ style: se({ gridRow: e.message.subText ? "2" : "1" })
18036
18054
  }, null, 12, s1)) : y("", !0),
18037
- e.message.subText ? (r(), u("p", i1, k(e.message.subText), 1)) : y("", !0),
18055
+ e.message.subText ? (A(), u("p", i1, k(e.message.subText), 1)) : y("", !0),
18038
18056
  o("div", {
18039
18057
  class: "audio-message__content",
18040
18058
  onMouseenter: p
18041
18059
  }, [
18042
- e.message.reply ? (r(), R(At, {
18060
+ e.message.reply ? (A(), R(At, {
18043
18061
  key: 0,
18044
18062
  style: { "grid-column": "1/3" },
18045
18063
  message: e.message.reply,
18046
- class: O(e.message.position),
18064
+ class: z(e.message.position),
18047
18065
  onReply: h
18048
18066
  }, null, 8, ["message", "class"])) : y("", !0),
18049
18067
  o("div", o1, [
@@ -18056,7 +18074,7 @@ const fu = ["data-theme"], au = {
18056
18074
  Ae(o("button", {
18057
18075
  class: "audio-message__play",
18058
18076
  onClick: w
18059
- }, V[4] || (V[4] = [
18077
+ }, x[4] || (x[4] = [
18060
18078
  o("span", { class: "pi pi-play" }, null, -1)
18061
18079
  ]), 512), [
18062
18080
  [We, !l.value]
@@ -18064,7 +18082,7 @@ const fu = ["data-theme"], au = {
18064
18082
  Ae(o("button", {
18065
18083
  class: "audio-message__pause",
18066
18084
  onClick: w
18067
- }, V[5] || (V[5] = [
18085
+ }, x[5] || (x[5] = [
18068
18086
  o("span", { class: "pi pi-pause" }, null, -1)
18069
18087
  ]), 512), [
18070
18088
  [We, l.value]
@@ -18075,16 +18093,16 @@ const fu = ["data-theme"], au = {
18075
18093
  min: 0,
18076
18094
  max: c.value,
18077
18095
  step: "0.1",
18078
- "onUpdate:modelValue": V[0] || (V[0] = ($) => A.value = $)
18096
+ "onUpdate:modelValue": x[0] || (x[0] = ($) => r.value = $)
18079
18097
  }, null, 8, r1), [
18080
- [ot, A.value]
18098
+ [ot, r.value]
18081
18099
  ]),
18082
18100
  o("div", A1, [
18083
- o("p", c1, k(`${T.value} / ${j.value}`), 1),
18101
+ o("p", c1, k(`${L.value} / ${T.value}`), 1),
18084
18102
  o("div", u1, [
18085
- (r(!0), u(q, null, te(f.value, ($, J) => (r(), u("p", {
18103
+ (A(!0), u(q, null, te(f.value, ($, J) => (A(), u("p", {
18086
18104
  onClick: (oe) => a(J),
18087
- class: O(["audio-message__speed-btn", { "audio-message__speed-btn-selected": $.selected }])
18105
+ class: z(["audio-message__speed-btn", { "audio-message__speed-btn-selected": $.selected }])
18088
18106
  }, k($.text), 11, d1))), 256))
18089
18107
  ])
18090
18108
  ]),
@@ -18094,54 +18112,54 @@ const fu = ["data-theme"], au = {
18094
18112
  href: e.message.url,
18095
18113
  download: "",
18096
18114
  target: "_blank"
18097
- }, V[6] || (V[6] = [
18115
+ }, x[6] || (x[6] = [
18098
18116
  o("span", { class: "pi pi-download" }, null, -1)
18099
18117
  ]), 8, g1)
18100
18118
  ]),
18101
- (B = e.message.transcript) != null && B.text ? (r(), u("div", m1, [
18119
+ (U = e.message.transcript) != null && U.text ? (A(), u("div", m1, [
18102
18120
  o("p", {
18103
- onClick: V[1] || (V[1] = ($) => m.value = !m.value)
18121
+ onClick: x[1] || (x[1] = ($) => m.value = !m.value)
18104
18122
  }, k(e.message.transcript.text), 1)
18105
18123
  ])) : y("", !0),
18106
- e.message.text ? (r(), u("div", p1, [
18124
+ e.message.text ? (A(), u("div", p1, [
18107
18125
  o("p", {
18108
18126
  innerHTML: M.value,
18109
18127
  onClick: v
18110
18128
  }, null, 8, h1)
18111
18129
  ])) : y("", !0),
18112
- e.message.linkPreview ? (r(), R(Ot, {
18130
+ e.message.linkPreview ? (A(), R(Ot, {
18113
18131
  key: 3,
18114
- class: O(["audio-message__link-preview", e.message.position]),
18132
+ class: z(["audio-message__link-preview", e.message.position]),
18115
18133
  linkPreview: e.message.linkPreview
18116
18134
  }, null, 8, ["class", "linkPreview"])) : y("", !0),
18117
18135
  o("div", v1, [
18118
- e.message.views ? (r(), u("div", {
18136
+ e.message.views ? (A(), u("div", {
18119
18137
  key: 0,
18120
- onClick: x,
18138
+ onClick: j,
18121
18139
  class: "audio-message__views"
18122
18140
  }, [
18123
- V[7] || (V[7] = o("span", { class: "pi pi-eye" }, null, -1)),
18141
+ x[7] || (x[7] = o("span", { class: "pi pi-eye" }, null, -1)),
18124
18142
  o("p", null, k(e.message.views), 1)
18125
18143
  ])) : y("", !0),
18126
18144
  o("span", y1, k(e.message.time), 1),
18127
- L(e.message) === "audio-message__right" && D(lt).includes(e.message.status) ? (r(), u("div", {
18145
+ O(e.message) === "audio-message__right" && D(lt).includes(e.message.status) ? (A(), u("div", {
18128
18146
  key: 1,
18129
- class: O(["audio-message__status", E.value])
18147
+ class: z(["audio-message__status", E.value])
18130
18148
  }, [
18131
- e.message.status !== "sent" ? (r(), u("span", b1)) : y("", !0),
18132
- V[8] || (V[8] = o("span", { class: "pi pi-check" }, null, -1))
18149
+ e.message.status !== "sent" ? (A(), u("span", b1)) : y("", !0),
18150
+ x[8] || (x[8] = o("span", { class: "pi pi-check" }, null, -1))
18133
18151
  ], 2)) : y("", !0)
18134
18152
  ]),
18135
- g.value && e.message.actions ? (r(), u("button", {
18153
+ g.value && e.message.actions ? (A(), u("button", {
18136
18154
  key: 4,
18137
18155
  class: "audio-message__menu-button",
18138
- onClick: V[2] || (V[2] = ($) => d.value = !d.value)
18139
- }, V[9] || (V[9] = [
18156
+ onClick: x[2] || (x[2] = ($) => d.value = !d.value)
18157
+ }, x[9] || (x[9] = [
18140
18158
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
18141
18159
  ]))) : y("", !0),
18142
18160
  F(Z, null, {
18143
18161
  default: K(() => [
18144
- d.value && e.message.actions ? (r(), R(D($e), {
18162
+ d.value && e.message.actions ? (A(), R(D($e), {
18145
18163
  key: 0,
18146
18164
  class: "audio-message__context-menu",
18147
18165
  actions: e.message.actions,
@@ -18150,17 +18168,17 @@ const fu = ["data-theme"], au = {
18150
18168
  ]),
18151
18169
  _: 1
18152
18170
  }),
18153
- (r(), R(_e, { to: "body" }, [
18171
+ (A(), R(_e, { to: "body" }, [
18154
18172
  F(Z, { name: "modal-fade" }, {
18155
18173
  default: K(() => {
18156
18174
  var $;
18157
18175
  return [
18158
- m.value ? (r(), u("div", M1, [
18176
+ m.value ? (A(), u("div", M1, [
18159
18177
  o("div", _1, [
18160
18178
  o("button", {
18161
18179
  class: "audio-message__modal-close-button",
18162
- onClick: V[3] || (V[3] = (J) => m.value = !1)
18163
- }, V[10] || (V[10] = [
18180
+ onClick: x[3] || (x[3] = (J) => m.value = !1)
18181
+ }, x[10] || (x[10] = [
18164
18182
  o("span", null, [
18165
18183
  o("i", { class: "pi pi-times" })
18166
18184
  ], -1)
@@ -18177,7 +18195,7 @@ const fu = ["data-theme"], au = {
18177
18195
  ], 42, a1);
18178
18196
  };
18179
18197
  }
18180
- }), k1 = /* @__PURE__ */ U(w1, [["__scopeId", "data-v-84d395e6"]]), N1 = { class: "date-message__container" }, D1 = { class: "date-message__text" }, E1 = /* @__PURE__ */ W({
18198
+ }), k1 = /* @__PURE__ */ B(w1, [["__scopeId", "data-v-84d395e6"]]), N1 = { class: "date-message__container" }, D1 = { class: "date-message__text" }, E1 = /* @__PURE__ */ W({
18181
18199
  __name: "DateMessage",
18182
18200
  props: {
18183
18201
  message: {
@@ -18188,11 +18206,11 @@ const fu = ["data-theme"], au = {
18188
18206
  }
18189
18207
  },
18190
18208
  setup(e) {
18191
- return (t, n) => (r(), u("div", N1, [
18209
+ return (t, n) => (A(), u("div", N1, [
18192
18210
  o("p", D1, k(e.message.text), 1)
18193
18211
  ]));
18194
18212
  }
18195
- }), T1 = /* @__PURE__ */ U(E1, [["__scopeId", "data-v-72a5e50d"]]), j1 = ["messageId"], x1 = ["src"], V1 = {
18213
+ }), T1 = /* @__PURE__ */ B(E1, [["__scopeId", "data-v-72a5e50d"]]), j1 = ["messageId"], x1 = ["src"], V1 = {
18196
18214
  key: 1,
18197
18215
  class: "video-message__subtext"
18198
18216
  }, S1 = { class: "video-message__content" }, C1 = ["src"], O1 = {
@@ -18215,13 +18233,13 @@ const fu = ["data-theme"], au = {
18215
18233
  },
18216
18234
  emits: ["action", "reply"],
18217
18235
  setup(e, { emit: t }) {
18218
- const n = e, f = t, a = (T) => {
18219
- f("reply", T);
18236
+ const n = e, f = t, a = (L) => {
18237
+ f("reply", L);
18220
18238
  };
18221
- function s(T) {
18222
- return T.position === "left" ? "video-message__left" : "video-message__right";
18239
+ function s(L) {
18240
+ return L.position === "left" ? "video-message__left" : "video-message__right";
18223
18241
  }
18224
- const i = b(), l = b(), c = b(!1), A = b(!1), d = b(!1), g = b(!1), m = b("");
18242
+ const i = b(), l = b(), c = b(!1), r = b(!1), d = b(!1), g = b(!1), m = b("");
18225
18243
  X(
18226
18244
  () => n.message.text,
18227
18245
  () => {
@@ -18229,8 +18247,8 @@ const fu = ["data-theme"], au = {
18229
18247
  },
18230
18248
  { immediate: !0 }
18231
18249
  );
18232
- function M(T) {
18233
- T.preventDefault(), T.target.href && window.open(T.target.href, "_blank");
18250
+ function M(L) {
18251
+ L.preventDefault(), L.target.href && window.open(L.target.href, "_blank");
18234
18252
  }
18235
18253
  const h = () => {
18236
18254
  f("action", { messageId: n.message.messageId, type: "views" });
@@ -18238,53 +18256,53 @@ const fu = ["data-theme"], au = {
18238
18256
  }, p = () => {
18239
18257
  d.value = !0, g.value = !0;
18240
18258
  }, _ = () => {
18241
- d.value = !1, A.value = !1;
18242
- }, x = Q(() => rt(n.message.status)), N = () => {
18259
+ d.value = !1, r.value = !1;
18260
+ }, j = Q(() => rt(n.message.status)), N = () => {
18243
18261
  l.value && (l.value.currentTime = 0, l.value.play());
18244
18262
  };
18245
- X([i, l], ([T, j]) => {
18246
- T ? j && (j.pause(), j.currentTime = 0) : j && (j.play(), j.currentTime = 0);
18263
+ X([i, l], ([L, T]) => {
18264
+ L ? T && (T.pause(), T.currentTime = 0) : T && (T.play(), T.currentTime = 0);
18247
18265
  });
18248
- const E = Q(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"), w = () => c.value = !1, S = (T) => {
18249
- T.key === "Escape" && c.value && w();
18266
+ const E = Q(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"), w = () => c.value = !1, S = (L) => {
18267
+ L.key === "Escape" && c.value && w();
18250
18268
  };
18251
18269
  return le(() => {
18252
18270
  document.addEventListener("keydown", S);
18253
18271
  }), Ke(() => {
18254
18272
  document.removeEventListener("keydown", S);
18255
- }), (T, j) => (r(), u(q, null, [
18273
+ }), (L, T) => (A(), u(q, null, [
18256
18274
  o("div", {
18257
- class: O(["video-message", s(e.message)]),
18275
+ class: z(["video-message", s(e.message)]),
18258
18276
  messageId: e.message.messageId,
18259
18277
  onMouseleave: _
18260
18278
  }, [
18261
- e.message.avatar ? (r(), u("img", {
18279
+ e.message.avatar ? (A(), u("img", {
18262
18280
  key: 0,
18263
18281
  class: "video-message__avatar",
18264
18282
  src: e.message.avatar,
18265
18283
  height: "32",
18266
18284
  width: "32"
18267
18285
  }, null, 8, x1)) : y("", !0),
18268
- e.message.subText ? (r(), u("p", V1, k(e.message.subText), 1)) : y("", !0),
18286
+ e.message.subText ? (A(), u("p", V1, k(e.message.subText), 1)) : y("", !0),
18269
18287
  o("div", S1, [
18270
- e.message.reply ? (r(), R(At, {
18288
+ e.message.reply ? (A(), R(At, {
18271
18289
  key: 0,
18272
18290
  style: { margin: "10px 10px 4px 16px" },
18273
- class: O(e.message.position),
18291
+ class: z(e.message.position),
18274
18292
  message: e.message.reply,
18275
18293
  onReply: a
18276
18294
  }, null, 8, ["class", "message"])) : y("", !0),
18277
18295
  o("div", {
18278
18296
  class: "video-message__preview-button",
18279
- onClick: j[0] || (j[0] = (L) => c.value = !0),
18297
+ onClick: T[0] || (T[0] = (O) => c.value = !0),
18280
18298
  onMouseenter: p,
18281
- onMouseleave: j[1] || (j[1] = (L) => g.value = !g.value)
18299
+ onMouseleave: T[1] || (T[1] = (O) => g.value = !g.value)
18282
18300
  }, [
18283
18301
  o("video", {
18284
18302
  ref_key: "previewPlayer",
18285
18303
  ref: l,
18286
18304
  class: "video-message__video",
18287
- style: ie({ borderRadius: E.value }),
18305
+ style: se({ borderRadius: E.value }),
18288
18306
  onEnded: N,
18289
18307
  src: e.message.url,
18290
18308
  muted: !0,
@@ -18292,22 +18310,22 @@ const fu = ["data-theme"], au = {
18292
18310
  }, null, 44, C1),
18293
18311
  F(Z, { name: "modal-fade" }, {
18294
18312
  default: K(() => [
18295
- g.value ? (r(), u("div", O1, [
18296
- e.message.views ? (r(), u("div", {
18313
+ g.value ? (A(), u("div", O1, [
18314
+ e.message.views ? (A(), u("div", {
18297
18315
  key: 0,
18298
18316
  onClick: kt(h, ["stop"]),
18299
18317
  class: "video-message__views"
18300
18318
  }, [
18301
- j[3] || (j[3] = o("span", { class: "pi pi-eye" }, null, -1)),
18319
+ T[3] || (T[3] = o("span", { class: "pi pi-eye" }, null, -1)),
18302
18320
  o("p", null, k(e.message.views), 1)
18303
18321
  ])) : y("", !0),
18304
18322
  o("span", z1, k(e.message.time), 1),
18305
- s(e.message) === "video-message__right" && D(lt).includes(e.message.status) ? (r(), u("div", {
18323
+ s(e.message) === "video-message__right" && D(lt).includes(e.message.status) ? (A(), u("div", {
18306
18324
  key: 1,
18307
- class: O(["video-message__status", x.value])
18325
+ class: z(["video-message__status", j.value])
18308
18326
  }, [
18309
- e.message.status !== "sent" ? (r(), u("span", L1)) : y("", !0),
18310
- j[4] || (j[4] = o("span", { class: "pi pi-check" }, null, -1))
18327
+ e.message.status !== "sent" ? (A(), u("span", L1)) : y("", !0),
18328
+ T[4] || (T[4] = o("span", { class: "pi pi-check" }, null, -1))
18311
18329
  ], 2)) : y("", !0)
18312
18330
  ])) : y("", !0)
18313
18331
  ]),
@@ -18315,14 +18333,14 @@ const fu = ["data-theme"], au = {
18315
18333
  }),
18316
18334
  F(Z, { name: "modal-fade" }, {
18317
18335
  default: K(() => [
18318
- g.value ? (r(), u("a", {
18336
+ g.value ? (A(), u("a", {
18319
18337
  key: 0,
18320
18338
  onClick: kt(() => "//Предотвращаем всплытие события клика", ["stop"]),
18321
18339
  class: "video-message__download-button",
18322
18340
  href: e.message.url,
18323
18341
  download: "",
18324
18342
  target: "_blank"
18325
- }, j[5] || (j[5] = [
18343
+ }, T[5] || (T[5] = [
18326
18344
  o("span", { class: "pi pi-download" }, null, -1)
18327
18345
  ]), 8, U1)) : y("", !0)
18328
18346
  ]),
@@ -18331,11 +18349,11 @@ const fu = ["data-theme"], au = {
18331
18349
  ], 32),
18332
18350
  F(Z, { name: "modal-fade" }, {
18333
18351
  default: K(() => [
18334
- d.value && e.message.actions ? (r(), u("button", {
18352
+ d.value && e.message.actions ? (A(), u("button", {
18335
18353
  key: 0,
18336
18354
  class: "video-message__menu-button",
18337
- onClick: j[2] || (j[2] = (L) => A.value = !A.value)
18338
- }, j[6] || (j[6] = [
18355
+ onClick: T[2] || (T[2] = (O) => r.value = !r.value)
18356
+ }, T[6] || (T[6] = [
18339
18357
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
18340
18358
  ]))) : y("", !0)
18341
18359
  ]),
@@ -18343,7 +18361,7 @@ const fu = ["data-theme"], au = {
18343
18361
  }),
18344
18362
  F(Z, { name: "context-menu" }, {
18345
18363
  default: K(() => [
18346
- A.value && e.message.actions ? (r(), R(D($e), {
18364
+ r.value && e.message.actions ? (A(), R(D($e), {
18347
18365
  key: 0,
18348
18366
  class: "video-message__context-menu",
18349
18367
  actions: e.message.actions,
@@ -18352,23 +18370,23 @@ const fu = ["data-theme"], au = {
18352
18370
  ]),
18353
18371
  _: 1
18354
18372
  }),
18355
- e.message.text ? (r(), u("div", B1, [
18373
+ e.message.text ? (A(), u("div", B1, [
18356
18374
  o("p", {
18357
18375
  innerHTML: m.value,
18358
18376
  onClick: M
18359
18377
  }, null, 8, R1)
18360
18378
  ])) : y("", !0),
18361
- e.message.linkPreview ? (r(), R(Ot, {
18379
+ e.message.linkPreview ? (A(), R(Ot, {
18362
18380
  key: 2,
18363
- class: O(["video-message__link-preview", e.message.position]),
18381
+ class: z(["video-message__link-preview", e.message.position]),
18364
18382
  linkPreview: e.message.linkPreview
18365
18383
  }, null, 8, ["class", "linkPreview"])) : y("", !0)
18366
18384
  ])
18367
18385
  ], 42, j1),
18368
- (r(), R(_e, { to: "body" }, [
18386
+ (A(), R(_e, { to: "body" }, [
18369
18387
  F(Z, { name: "modal-fade" }, {
18370
18388
  default: K(() => [
18371
- c.value ? (r(), R(lf, {
18389
+ c.value ? (A(), R(lf, {
18372
18390
  key: 0,
18373
18391
  onClose: w
18374
18392
  }, {
@@ -18391,7 +18409,7 @@ const fu = ["data-theme"], au = {
18391
18409
  ]))
18392
18410
  ], 64));
18393
18411
  }
18394
- }), Y1 = /* @__PURE__ */ U($1, [["__scopeId", "data-v-cb6f4940"]]), P1 = ["messageId"], F1 = ["src"], q1 = {
18412
+ }), Y1 = /* @__PURE__ */ B($1, [["__scopeId", "data-v-cb6f4940"]]), P1 = ["messageId"], F1 = ["src"], q1 = {
18395
18413
  key: 1,
18396
18414
  class: "call-message__subtext"
18397
18415
  }, H1 = { class: "call-message__content" }, W1 = {
@@ -18438,42 +18456,42 @@ const fu = ["data-theme"], au = {
18438
18456
  }
18439
18457
  return (a, s) => {
18440
18458
  var i;
18441
- return r(), u("div", {
18442
- class: O(f(e.message, n.message)),
18459
+ return A(), u("div", {
18460
+ class: z(f(e.message, n.message)),
18443
18461
  messageId: e.message.messageId
18444
18462
  }, [
18445
- e.message.avatar ? (r(), u("img", {
18463
+ e.message.avatar ? (A(), u("img", {
18446
18464
  key: 0,
18447
18465
  class: "call-message__avatar",
18448
18466
  src: e.message.avatar,
18449
18467
  height: "32",
18450
18468
  width: "32",
18451
- style: ie({ gridRow: e.message.subText ? "2" : "1" })
18469
+ style: se({ gridRow: e.message.subText ? "2" : "1" })
18452
18470
  }, null, 12, F1)) : y("", !0),
18453
- e.message.subText ? (r(), u("p", q1, k(e.message.subText), 1)) : y("", !0),
18471
+ e.message.subText ? (A(), u("p", q1, k(e.message.subText), 1)) : y("", !0),
18454
18472
  o("div", H1, [
18455
18473
  o("span", {
18456
18474
  class: "call-message__icon pi pi-phone",
18457
- style: ie({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
18475
+ style: se({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
18458
18476
  }, null, 4),
18459
- e.message.isMissedCall ? (r(), u("span", K1, "Пропущенный аудиозвонок")) : (r(), u("span", W1, "Аудиозвонок")),
18460
- e.message.callDuration ? (r(), u("span", J1, k(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (r(), u("span", G1, "Нажмите, чтобы перезвонить")) : (r(), u("span", Z1, "Нет ответа")),
18477
+ e.message.isMissedCall ? (A(), u("span", K1, "Пропущенный аудиозвонок")) : (A(), u("span", W1, "Аудиозвонок")),
18478
+ e.message.callDuration ? (A(), u("span", J1, k(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (A(), u("span", G1, "Нажмите, чтобы перезвонить")) : (A(), u("span", Z1, "Нет ответа")),
18461
18479
  o("div", X1, [
18462
18480
  o("span", ed, k(e.message.time), 1)
18463
18481
  ]),
18464
- (i = e.message.transcript) != null && i.dialog ? (r(), u("button", {
18482
+ (i = e.message.transcript) != null && i.dialog ? (A(), u("button", {
18465
18483
  key: 5,
18466
18484
  class: "call-message__download-button",
18467
18485
  onClick: s[0] || (s[0] = (l) => t.value = !t.value)
18468
18486
  }, s[2] || (s[2] = [
18469
18487
  o("span", { class: "pi pi-arrow-up-right" }, null, -1)
18470
18488
  ]))) : y("", !0),
18471
- (r(), R(_e, { to: "body" }, [
18489
+ (A(), R(_e, { to: "body" }, [
18472
18490
  F(Z, { name: "modal-fade" }, {
18473
18491
  default: K(() => {
18474
18492
  var l;
18475
18493
  return [
18476
- t.value ? (r(), u("div", td, [
18494
+ t.value ? (A(), u("div", td, [
18477
18495
  o("div", nd, [
18478
18496
  o("button", {
18479
18497
  class: "call-message__modal-close-button",
@@ -18483,8 +18501,8 @@ const fu = ["data-theme"], au = {
18483
18501
  o("i", { class: "pi pi-times" })
18484
18502
  ], -1)
18485
18503
  ])),
18486
- (r(!0), u(q, null, te((l = e.message.transcript) == null ? void 0 : l.dialog, (c, A) => (r(), u("div", {
18487
- class: O(f(c, n.textDialog))
18504
+ (A(!0), u(q, null, te((l = e.message.transcript) == null ? void 0 : l.dialog, (c, r) => (A(), u("div", {
18505
+ class: z(f(c, n.textDialog))
18488
18506
  }, [
18489
18507
  o("p", null, k(c.text), 1),
18490
18508
  o("span", null, k(c.time), 1)
@@ -18500,7 +18518,7 @@ const fu = ["data-theme"], au = {
18500
18518
  ], 10, P1);
18501
18519
  };
18502
18520
  }
18503
- }), ad = /* @__PURE__ */ U(fd, [["__scopeId", "data-v-be88198d"]]), sd = { class: "system-message__container" }, id = { class: "system-message__text" }, od = /* @__PURE__ */ W({
18521
+ }), ad = /* @__PURE__ */ B(fd, [["__scopeId", "data-v-be88198d"]]), sd = { class: "system-message__container" }, id = { class: "system-message__text" }, od = /* @__PURE__ */ W({
18504
18522
  __name: "SystemMessage",
18505
18523
  props: {
18506
18524
  message: {
@@ -18509,11 +18527,11 @@ const fu = ["data-theme"], au = {
18509
18527
  }
18510
18528
  },
18511
18529
  setup(e) {
18512
- return (t, n) => (r(), u("div", sd, [
18530
+ return (t, n) => (A(), u("div", sd, [
18513
18531
  o("p", id, k(e.message.text), 1)
18514
18532
  ]));
18515
18533
  }
18516
- }), ld = /* @__PURE__ */ U(od, [["__scopeId", "data-v-41bf24c1"]]), rd = { class: "typing-message__container" }, Ad = ["src"], cd = {
18534
+ }), ld = /* @__PURE__ */ B(od, [["__scopeId", "data-v-41bf24c1"]]), rd = { class: "typing-message__container" }, Ad = ["src"], cd = {
18517
18535
  key: 1,
18518
18536
  class: "typing-message__subtext"
18519
18537
  }, ud = /* @__PURE__ */ W({
@@ -18525,22 +18543,22 @@ const fu = ["data-theme"], au = {
18525
18543
  }
18526
18544
  },
18527
18545
  setup(e) {
18528
- return (t, n) => (r(), u("div", rd, [
18529
- e.message.avatar ? (r(), u("img", {
18546
+ return (t, n) => (A(), u("div", rd, [
18547
+ e.message.avatar ? (A(), u("img", {
18530
18548
  key: 0,
18531
18549
  class: "typing-message__avatar",
18532
18550
  src: e.message.avatar,
18533
18551
  height: "32",
18534
18552
  width: "32",
18535
- style: ie({ gridRow: e.message.subText ? "2" : "1" })
18553
+ style: se({ gridRow: e.message.subText ? "2" : "1" })
18536
18554
  }, null, 12, Ad)) : y("", !0),
18537
- e.message.subText ? (r(), u("p", cd, k(e.message.subText), 1)) : y("", !0),
18555
+ e.message.subText ? (A(), u("p", cd, k(e.message.subText), 1)) : y("", !0),
18538
18556
  n[0] || (n[0] = o("div", { class: "typing-message__loader-container" }, [
18539
18557
  o("div", { class: "typing-message__loader" })
18540
18558
  ], -1))
18541
18559
  ]));
18542
18560
  }
18543
- }), Gf = /* @__PURE__ */ U(ud, [["__scopeId", "data-v-ad73a13f"]]), dd = ["innerHTML"], gd = /* @__PURE__ */ W({
18561
+ }), Gf = /* @__PURE__ */ B(ud, [["__scopeId", "data-v-ad73a13f"]]), dd = ["innerHTML"], gd = /* @__PURE__ */ W({
18544
18562
  __name: "ReplyTextMessage",
18545
18563
  props: {
18546
18564
  message: {
@@ -18560,12 +18578,12 @@ const fu = ["data-theme"], au = {
18560
18578
  function f(a) {
18561
18579
  a.preventDefault(), a.target.href && window.open(a.target.href, "_blank");
18562
18580
  }
18563
- return (a, s) => (r(), u("p", {
18581
+ return (a, s) => (A(), u("p", {
18564
18582
  innerHTML: n.value,
18565
18583
  onClick: f
18566
18584
  }, null, 8, dd));
18567
18585
  }
18568
- }), md = /* @__PURE__ */ U(gd, [["__scopeId", "data-v-bc3ef3e7"]]), pd = ["src", "alt"], hd = { class: "image-message__text-container" }, vd = ["innerHTML"], yd = { class: "image-message__modal" }, bd = ["src", "alt"], Md = /* @__PURE__ */ W({
18586
+ }), md = /* @__PURE__ */ B(gd, [["__scopeId", "data-v-bc3ef3e7"]]), pd = ["src", "alt"], hd = { class: "image-message__text-container" }, vd = ["innerHTML"], yd = { class: "image-message__modal" }, bd = ["src", "alt"], Md = /* @__PURE__ */ W({
18569
18587
  __name: "ReplyImageMessage",
18570
18588
  props: {
18571
18589
  message: {
@@ -18594,10 +18612,10 @@ const fu = ["data-theme"], au = {
18594
18612
  document.addEventListener("keydown", l);
18595
18613
  }), Ke(() => {
18596
18614
  document.removeEventListener("keydown", l);
18597
- }), (c, A) => (r(), u(q, null, [
18615
+ }), (c, r) => (A(), u(q, null, [
18598
18616
  o("div", {
18599
18617
  class: "image-message__preview-button",
18600
- onClick: A[0] || (A[0] = (d) => n.value = !0)
18618
+ onClick: r[0] || (r[0] = (d) => n.value = !0)
18601
18619
  }, [
18602
18620
  o("img", {
18603
18621
  class: "image-message__preview-image",
@@ -18606,20 +18624,20 @@ const fu = ["data-theme"], au = {
18606
18624
  }, null, 8, pd)
18607
18625
  ]),
18608
18626
  o("div", hd, [
18609
- A[1] || (A[1] = o("div", { class: "image-message__reply-description" }, [
18627
+ r[1] || (r[1] = o("div", { class: "image-message__reply-description" }, [
18610
18628
  o("span", { class: "pi pi-camera" }),
18611
18629
  o("p", null, "Фотография")
18612
18630
  ], -1)),
18613
- e.message.text ? (r(), u("p", {
18631
+ e.message.text ? (A(), u("p", {
18614
18632
  key: 0,
18615
18633
  innerHTML: f.value,
18616
18634
  onClick: a
18617
18635
  }, null, 8, vd)) : y("", !0)
18618
18636
  ]),
18619
- (r(), R(_e, { to: "body" }, [
18637
+ (A(), R(_e, { to: "body" }, [
18620
18638
  F(Z, { name: "modal-fade" }, {
18621
18639
  default: K(() => [
18622
- n.value ? (r(), u("div", {
18640
+ n.value ? (A(), u("div", {
18623
18641
  key: 0,
18624
18642
  class: "image-message__modal-overlay",
18625
18643
  onClick: i
@@ -18628,7 +18646,7 @@ const fu = ["data-theme"], au = {
18628
18646
  o("button", {
18629
18647
  class: "image-message__modal-close-button",
18630
18648
  onClick: s
18631
- }, A[2] || (A[2] = [
18649
+ }, r[2] || (r[2] = [
18632
18650
  o("span", null, [
18633
18651
  o("i", { class: "pi pi-times" })
18634
18652
  ], -1)
@@ -18646,7 +18664,7 @@ const fu = ["data-theme"], au = {
18646
18664
  ]))
18647
18665
  ], 64));
18648
18666
  }
18649
- }), _d = /* @__PURE__ */ U(Md, [["__scopeId", "data-v-15fb5caf"]]), Id = { class: "audio-message__play" }, wd = { class: "audio-message__text-container" }, kd = ["innerHTML"], Nd = /* @__PURE__ */ W({
18667
+ }), _d = /* @__PURE__ */ B(Md, [["__scopeId", "data-v-15fb5caf"]]), Id = { class: "audio-message__play" }, wd = { class: "audio-message__text-container" }, kd = ["innerHTML"], Nd = /* @__PURE__ */ W({
18650
18668
  __name: "ReplyAudioMessage",
18651
18669
  props: {
18652
18670
  message: {
@@ -18666,7 +18684,7 @@ const fu = ["data-theme"], au = {
18666
18684
  function a(s) {
18667
18685
  s.preventDefault(), s.target.href && window.open(s.target.href, "_blank");
18668
18686
  }
18669
- return (s, i) => (r(), u(q, null, [
18687
+ return (s, i) => (A(), u(q, null, [
18670
18688
  Ae(o("div", Id, i[0] || (i[0] = [
18671
18689
  o("span", { class: "pi pi-play" }, null, -1)
18672
18690
  ]), 512), [
@@ -18677,7 +18695,7 @@ const fu = ["data-theme"], au = {
18677
18695
  o("span", { class: "pi pi-microphone" }),
18678
18696
  o("p", null, "Аудиосообщение")
18679
18697
  ], -1)),
18680
- e.message.text ? (r(), u("p", {
18698
+ e.message.text ? (A(), u("p", {
18681
18699
  key: 0,
18682
18700
  innerHTML: f.value,
18683
18701
  onClick: a
@@ -18685,7 +18703,7 @@ const fu = ["data-theme"], au = {
18685
18703
  ])
18686
18704
  ], 64));
18687
18705
  }
18688
- }), Dd = /* @__PURE__ */ U(Nd, [["__scopeId", "data-v-bae2afcf"]]), Ed = ["src"], Td = { class: "video-message__text-container" }, jd = ["innerHTML"], xd = { class: "video-message__modal" }, Vd = ["src", "alt"], Sd = /* @__PURE__ */ W({
18706
+ }), Dd = /* @__PURE__ */ B(Nd, [["__scopeId", "data-v-bae2afcf"]]), Ed = ["src"], Td = { class: "video-message__text-container" }, jd = ["innerHTML"], xd = { class: "video-message__modal" }, Vd = ["src", "alt"], Sd = /* @__PURE__ */ W({
18689
18707
  __name: "ReplyVideoMessage",
18690
18708
  props: {
18691
18709
  message: {
@@ -18702,19 +18720,19 @@ const fu = ["data-theme"], au = {
18702
18720
  },
18703
18721
  { immediate: !0 }
18704
18722
  );
18705
- function s(A) {
18706
- A.preventDefault(), A.target.href && window.open(A.target.href, "_blank");
18723
+ function s(r) {
18724
+ r.preventDefault(), r.target.href && window.open(r.target.href, "_blank");
18707
18725
  }
18708
- const i = () => f.value = !1, l = (A) => {
18709
- A.target.classList.contains("video-message__modal-overlay") && i();
18710
- }, c = (A) => {
18711
- A.key === "Escape" && f.value && i();
18726
+ const i = () => f.value = !1, l = (r) => {
18727
+ r.target.classList.contains("video-message__modal-overlay") && i();
18728
+ }, c = (r) => {
18729
+ r.key === "Escape" && f.value && i();
18712
18730
  };
18713
18731
  return le(() => {
18714
18732
  document.addEventListener("keydown", c);
18715
18733
  }), Ke(() => {
18716
18734
  document.removeEventListener("keydown", c);
18717
- }), (A, d) => (r(), u(q, null, [
18735
+ }), (r, d) => (A(), u(q, null, [
18718
18736
  o("div", {
18719
18737
  class: "video-message__preview-button",
18720
18738
  onClick: d[0] || (d[0] = (g) => f.value = !0)
@@ -18730,16 +18748,16 @@ const fu = ["data-theme"], au = {
18730
18748
  o("span", { class: "pi pi-video" }),
18731
18749
  o("p", null, "Видео")
18732
18750
  ], -1)),
18733
- e.message.text ? (r(), u("p", {
18751
+ e.message.text ? (A(), u("p", {
18734
18752
  key: 0,
18735
18753
  innerHTML: a.value,
18736
18754
  onClick: s
18737
18755
  }, null, 8, jd)) : y("", !0)
18738
18756
  ]),
18739
- (r(), R(_e, { to: "body" }, [
18757
+ (A(), R(_e, { to: "body" }, [
18740
18758
  F(Z, { name: "modal-fade" }, {
18741
18759
  default: K(() => [
18742
- f.value ? (r(), u("div", {
18760
+ f.value ? (A(), u("div", {
18743
18761
  key: 0,
18744
18762
  class: "video-message__modal-overlay",
18745
18763
  onClick: l
@@ -18770,7 +18788,7 @@ const fu = ["data-theme"], au = {
18770
18788
  ]))
18771
18789
  ], 64));
18772
18790
  }
18773
- }), Cd = /* @__PURE__ */ U(Sd, [["__scopeId", "data-v-9ccb066c"]]), Od = ["href"], zd = { class: "file-message__filename-text" }, Ld = {
18791
+ }), Cd = /* @__PURE__ */ B(Sd, [["__scopeId", "data-v-9ccb066c"]]), Od = ["href"], zd = { class: "file-message__filename-text" }, Ld = {
18774
18792
  key: 0,
18775
18793
  class: "file-message__text"
18776
18794
  }, Ud = /* @__PURE__ */ W({
@@ -18791,7 +18809,7 @@ const fu = ["data-theme"], au = {
18791
18809
  { immediate: !0 }
18792
18810
  ), (f, a) => {
18793
18811
  var s;
18794
- return r(), u(q, null, [
18812
+ return A(), u(q, null, [
18795
18813
  o("a", {
18796
18814
  class: "file-message__link",
18797
18815
  href: e.message.url,
@@ -18801,11 +18819,11 @@ const fu = ["data-theme"], au = {
18801
18819
  a[0] || (a[0] = o("span", { class: "pi pi-file" }, null, -1)),
18802
18820
  o("p", zd, k(e.message.filename), 1)
18803
18821
  ], 8, Od),
18804
- (s = e.message) != null && s.text ? (r(), u("p", Ld, k(e.message.text), 1)) : y("", !0)
18822
+ (s = e.message) != null && s.text ? (A(), u("p", Ld, k(e.message.text), 1)) : y("", !0)
18805
18823
  ], 64);
18806
18824
  };
18807
18825
  }
18808
- }), Bd = /* @__PURE__ */ U(Ud, [["__scopeId", "data-v-4fc32879"]]), Rd = ["id"], Yg = {
18826
+ }), Bd = /* @__PURE__ */ B(Ud, [["__scopeId", "data-v-4fc32879"]]), Rd = ["id"], Yg = {
18809
18827
  __name: "BaseContainer",
18810
18828
  props: {
18811
18829
  height: String,
@@ -18813,13 +18831,13 @@ const fu = ["data-theme"], au = {
18813
18831
  },
18814
18832
  setup(e) {
18815
18833
  const t = Gn();
18816
- return Mn("chatAppId", t), (n, f) => (r(), u("div", {
18834
+ return Mn("chatAppId", t), (n, f) => (A(), u("div", {
18817
18835
  id: D(t),
18818
18836
  class: "base"
18819
18837
  }, [
18820
18838
  o("div", {
18821
18839
  class: "base__container",
18822
- style: ie({ height: e.height, width: e.width })
18840
+ style: se({ height: e.height, width: e.width })
18823
18841
  }, [
18824
18842
  ne(n.$slots, "default")
18825
18843
  ], 4)
@@ -18841,7 +18859,7 @@ const fu = ["data-theme"], au = {
18841
18859
  },
18842
18860
  emits: ["close-window", "get-size"],
18843
18861
  setup(e, { emit: t }) {
18844
- const n = e, f = b({ x: 0, y: 0 }), a = b(null), s = b(null), i = b(!1), l = b(0), c = b(0), A = b(0), d = Gn();
18862
+ const n = e, f = b({ x: 0, y: 0 }), a = b(null), s = b(null), i = b(!1), l = b(0), c = b(0), r = b(0), d = Gn();
18845
18863
  Mn("chatAppId", d);
18846
18864
  const g = (h) => {
18847
18865
  i.value = !0, l.value = h.clientX - a.value.offsetLeft, c.value = h.clientY - a.value.offsetTop;
@@ -18866,13 +18884,13 @@ const fu = ["data-theme"], au = {
18866
18884
  window.innerHeight - a.value.offsetHeight
18867
18885
  )
18868
18886
  ));
18869
- }), A.value = a.value.offsetHeight - s.value.offsetHeight;
18870
- }), (h, v) => (r(), u("div", {
18887
+ }), r.value = a.value.offsetHeight - s.value.offsetHeight;
18888
+ }), (h, v) => (A(), u("div", {
18871
18889
  id: D(d),
18872
18890
  ref_key: "element",
18873
18891
  ref: a,
18874
18892
  class: "float-window",
18875
- style: ie({
18893
+ style: se({
18876
18894
  left: f.value.x + "px",
18877
18895
  top: f.value.y + "px",
18878
18896
  userSelect: i.value ? "none" : "auto",
@@ -18890,7 +18908,7 @@ const fu = ["data-theme"], au = {
18890
18908
  onMouseup: m,
18891
18909
  onMouseleave: m
18892
18910
  }, [
18893
- n.avatar ? (r(), u("img", {
18911
+ n.avatar ? (A(), u("img", {
18894
18912
  key: 0,
18895
18913
  class: "float-window__avatar",
18896
18914
  src: n.avatar,
@@ -18909,16 +18927,16 @@ const fu = ["data-theme"], au = {
18909
18927
  ], 544),
18910
18928
  o("div", {
18911
18929
  class: "float-window__content",
18912
- style: ie({ height: A.value + "px" })
18930
+ style: se({ height: r.value + "px" })
18913
18931
  }, [
18914
18932
  ne(h.$slots, "default", {}, void 0, !0)
18915
18933
  ], 4)
18916
18934
  ])
18917
18935
  ], 12, Qd));
18918
18936
  }
18919
- }, Pg = /* @__PURE__ */ U(qd, [["__scopeId", "data-v-95b4dc0e"]]), Hd = {}, Wd = { class: "base-layout__container" }, Kd = { class: "base-layout__first-col" }, Jd = { class: "base-layout__second-col" };
18937
+ }, Pg = /* @__PURE__ */ B(qd, [["__scopeId", "data-v-95b4dc0e"]]), Hd = {}, Wd = { class: "base-layout__container" }, Kd = { class: "base-layout__first-col" }, Jd = { class: "base-layout__second-col" };
18920
18938
  function Gd(e, t) {
18921
- return r(), u("div", Wd, [
18939
+ return A(), u("div", Wd, [
18922
18940
  o("div", Kd, [
18923
18941
  ne(e.$slots, "first-col", {}, void 0, !0)
18924
18942
  ]),
@@ -18927,9 +18945,9 @@ function Gd(e, t) {
18927
18945
  ])
18928
18946
  ]);
18929
18947
  }
18930
- const Fg = /* @__PURE__ */ U(Hd, [["render", Gd], ["__scopeId", "data-v-a5df3fcf"]]), Zd = {}, Xd = { class: "extend-layout__container" }, eg = { class: "extend-layout__first-col" }, tg = { class: "extend-layout__second-col" }, ng = { class: "extend-layout__third-col" };
18948
+ const Fg = /* @__PURE__ */ B(Hd, [["render", Gd], ["__scopeId", "data-v-a5df3fcf"]]), Zd = {}, Xd = { class: "extend-layout__container" }, eg = { class: "extend-layout__first-col" }, tg = { class: "extend-layout__second-col" }, ng = { class: "extend-layout__third-col" };
18931
18949
  function fg(e, t) {
18932
- return r(), u("div", Xd, [
18950
+ return A(), u("div", Xd, [
18933
18951
  o("div", eg, [
18934
18952
  ne(e.$slots, "first-col", {}, void 0, !0)
18935
18953
  ]),
@@ -18941,15 +18959,15 @@ function fg(e, t) {
18941
18959
  ])
18942
18960
  ]);
18943
18961
  }
18944
- const qg = /* @__PURE__ */ U(Zd, [["render", fg], ["__scopeId", "data-v-61f9f2d0"]]), ag = {}, sg = { class: "base-layout__container" }, ig = { class: "base-layout__first-col" };
18962
+ const qg = /* @__PURE__ */ B(Zd, [["render", fg], ["__scopeId", "data-v-61f9f2d0"]]), ag = {}, sg = { class: "base-layout__container" }, ig = { class: "base-layout__first-col" };
18945
18963
  function og(e, t) {
18946
- return r(), u("div", sg, [
18964
+ return A(), u("div", sg, [
18947
18965
  o("div", ig, [
18948
18966
  ne(e.$slots, "default", {}, void 0, !0)
18949
18967
  ])
18950
18968
  ]);
18951
18969
  }
18952
- const Hg = /* @__PURE__ */ U(ag, [["render", og], ["__scopeId", "data-v-a4657f8e"]]), lg = ["id"], rg = {
18970
+ const Hg = /* @__PURE__ */ B(ag, [["render", og], ["__scopeId", "data-v-a4657f8e"]]), lg = ["id"], rg = {
18953
18971
  key: 0,
18954
18972
  class: "chat-wrapper__selected-chat"
18955
18973
  }, Ag = {
@@ -18981,25 +18999,25 @@ const Hg = /* @__PURE__ */ U(ag, [["render", og], ["__scopeId", "data-v-a4657f8e
18981
18999
  f && (f.style.setProperty("--chat-panel-width", t.chatPanelWidth + "%"), f.style.setProperty("--chat-panel-left", 100 - t.chatPanelWidth + "%"));
18982
19000
  },
18983
19001
  { immediate: !0 }
18984
- ), (f, a) => (r(), u("div", {
19002
+ ), (f, a) => (A(), u("div", {
18985
19003
  class: "chat-wrapper",
18986
19004
  id: "chat-wrapper-" + D(n)
18987
19005
  }, [
18988
- e.isSelectedChat ? (r(), u("div", rg, [
19006
+ e.isSelectedChat ? (A(), u("div", rg, [
18989
19007
  ne(f.$slots, "default", {}, void 0, !0)
18990
- ])) : (r(), u("div", Ag, [
19008
+ ])) : (A(), u("div", Ag, [
18991
19009
  o("p", null, k(D(me)("layout.ChatWrapper.noSelectedChat")), 1)
18992
19010
  ])),
18993
- e.isOpenChatPanel ? (r(), u("div", {
19011
+ e.isOpenChatPanel ? (A(), u("div", {
18994
19012
  key: 2,
18995
19013
  class: "chat-wrapper__chat-panel",
18996
- style: ie({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
19014
+ style: se({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
18997
19015
  }, [
18998
19016
  ne(f.$slots, "chatpanel", {}, void 0, !0)
18999
19017
  ], 4)) : y("", !0)
19000
19018
  ], 8, lg));
19001
19019
  }
19002
- }), Wg = /* @__PURE__ */ U(cg, [["__scopeId", "data-v-584eaa98"]]), ug = ["id"], dg = ["id"], gg = ["id"], mg = ["id"], pg = {
19020
+ }), Wg = /* @__PURE__ */ B(cg, [["__scopeId", "data-v-584eaa98"]]), ug = ["id"], dg = ["id"], gg = ["id"], mg = ["id"], pg = {
19003
19021
  __name: "AdaptiveExtendedLayout",
19004
19022
  props: {
19005
19023
  isSecondColVisible: {
@@ -19030,7 +19048,7 @@ const Hg = /* @__PURE__ */ U(ag, [["render", og], ["__scopeId", "data-v-a4657f8e
19030
19048
  return le(() => {
19031
19049
  const s = document.getElementById("extern-layout-container-" + n), i = document.getElementById("extend-layout-first-col-" + n);
19032
19050
  s.style.setProperty("--first-col-width", i.offsetWidth + "px");
19033
- }), (s, i) => (r(), u("div", {
19051
+ }), (s, i) => (A(), u("div", {
19034
19052
  class: "extend-layout__container",
19035
19053
  ref: "refContainer",
19036
19054
  id: "extern-layout-container-" + D(n)
@@ -19055,7 +19073,7 @@ const Hg = /* @__PURE__ */ U(ag, [["render", og], ["__scopeId", "data-v-a4657f8e
19055
19073
  ], 8, mg)
19056
19074
  ], 8, ug));
19057
19075
  }
19058
- }, Kg = /* @__PURE__ */ U(pg, [["__scopeId", "data-v-bc020414"]]);
19076
+ }, Kg = /* @__PURE__ */ B(pg, [["__scopeId", "data-v-bc020414"]]);
19059
19077
  export {
19060
19078
  Tg as $,
19061
19079
  k1 as A,
@@ -19084,7 +19102,7 @@ export {
19084
19102
  Hg as X,
19085
19103
  Wg as Y,
19086
19104
  Eg as Z,
19087
- U as _,
19105
+ B as _,
19088
19106
  Gf as a,
19089
19107
  jg as a0,
19090
19108
  xg as a1,