@mobilon-dev/chotto 0.2.38 → 0.2.39

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 { createElementBlock as u, openBlock as l, createStaticVNode as yf, inject as oe, computed as F, createCommentVNode as b, createElementVNode as o, createVNode as Y, createTextVNode as Ye, toDisplayString as E, renderSlot as ce, unref as T, ref as h, customRef as yn, defineComponent as G, watch as se, nextTick as ge, onMounted as pe, withDirectives as he, withKeys as Dt, vModelText as Vf, normalizeClass as S, createBlock as B, resolveDynamicComponent as Ue, Fragment as K, renderList as re, Transition as de, withCtx as W, useTemplateRef as Mn, normalizeStyle as Ae, Teleport as Ne, onUnmounted as mf, vShow as qe, useId as G1, toRef as Jt, vModelRadio as Tt, reactive as wn, provide as xf, getCurrentInstance as na, toRaw as Cn, onBeforeUnmount as aa, readonly as sa, resolveComponent as v1, h as Gt, defineAsyncComponent as ia, createApp as oa, withModifiers as e1 } from "vue";
1
+ import { createElementBlock as u, openBlock as l, createStaticVNode as yf, inject as oe, computed as F, createCommentVNode as v, createElementVNode as o, createVNode as Y, createTextVNode as Ye, toDisplayString as E, renderSlot as ce, unref as T, ref as h, customRef as yn, defineComponent as G, watch as se, nextTick as ge, onMounted as pe, withDirectives as he, withKeys as Dt, vModelText as Vf, normalizeClass as S, createBlock as B, resolveDynamicComponent as Ue, Fragment as K, renderList as re, Transition as de, withCtx as W, useTemplateRef as Mn, normalizeStyle as Ae, Teleport as Ne, onUnmounted as mf, vShow as qe, useId as G1, toRef as Jt, vModelRadio as Tt, reactive as wn, provide as xf, getCurrentInstance as na, toRaw as Cn, onBeforeUnmount as aa, readonly as sa, resolveComponent as v1, h as Gt, defineAsyncComponent as ia, createApp as oa, withModifiers as e1 } from "vue";
2
2
  const la = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", ua = "ελ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", _t = "numeric", ht = "ascii", vt = "alpha", qf = "asciinumeric", Yf = "alphanumeric", bt = "domain", In = "emoji", ca = "scheme", ra = "slashscheme", ot = "whitespace";
3
3
  function da(e, f) {
4
4
  return e in f || (f[e] = []), f[e];
@@ -231,12 +231,12 @@ function pa(e = []) {
231
231
  [ot]: !0
232
232
  });
233
233
  L(t, rt, A), L(d, ct, c), L(d, rt, A), me(d, ut, A), L(A, en), L(A, ct), me(A, ut, A), L(A, rt, A);
234
- const m = me(t, lt, Tn, {
234
+ const g = me(t, lt, Tn, {
235
235
  [In]: !0
236
236
  });
237
- L(m, "#"), me(m, lt, m), L(m, ga, m);
238
- const _ = L(m, ma);
239
- L(_, "#"), me(_, lt, m);
237
+ L(g, "#"), me(g, lt, g), L(g, ga, g);
238
+ const _ = L(g, ma);
239
+ L(_, "#"), me(_, lt, g);
240
240
  const k = [[nf, s], [af, n]], y = [[nf, null], [Rf, r], [af, i]];
241
241
  for (let w = 0; w < g1.length; w++)
242
242
  rf(t, g1[w], Mt, sf, k);
@@ -276,10 +276,10 @@ function En(e, f) {
276
276
  const t = _a(f.replace(/[A-Z]/g, (r) => r.toLowerCase())), a = t.length, n = [];
277
277
  let i = 0, s = 0;
278
278
  for (; s < a; ) {
279
- let r = e, c = null, d = 0, A = null, m = -1, _ = -1;
279
+ let r = e, c = null, d = 0, A = null, g = -1, _ = -1;
280
280
  for (; s < a && (c = r.go(t[s])); )
281
- r = c, r.accepts() ? (m = 0, _ = 0, A = r) : m >= 0 && (m += t[s].length, _++), d += t[s].length, i += t[s].length, s++;
282
- i -= m, s -= _, d -= m, n.push({
281
+ r = c, r.accepts() ? (g = 0, _ = 0, A = r) : g >= 0 && (g += t[s].length, _++), d += t[s].length, i += t[s].length, s++;
282
+ i -= g, s -= _, d -= g, n.push({
283
283
  t: A.t,
284
284
  // token type/name
285
285
  v: f.slice(i - d, i),
@@ -514,12 +514,12 @@ jn.prototype = {
514
514
  * @param {Options} options Formattinng options
515
515
  */
516
516
  render(e) {
517
- const f = this, t = this.toHref(e.get("defaultProtocol")), a = e.get("formatHref", t, this), n = e.get("tagName", t, f), i = this.toFormattedString(e), s = {}, r = e.get("className", t, f), c = e.get("target", t, f), d = e.get("rel", t, f), A = e.getObj("attributes", t, f), m = e.getObj("events", t, f);
517
+ const f = this, t = this.toHref(e.get("defaultProtocol")), a = e.get("formatHref", t, this), n = e.get("tagName", t, f), i = this.toFormattedString(e), s = {}, r = e.get("className", t, f), c = e.get("target", t, f), d = e.get("rel", t, f), A = e.getObj("attributes", t, f), g = e.getObj("events", t, f);
518
518
  return s.href = a, r && (s.class = r), c && (s.target = c), d && (s.rel = d), A && Object.assign(s, A), {
519
519
  tagName: n,
520
520
  attributes: s,
521
521
  content: i,
522
- eventListeners: m
522
+ eventListeners: g
523
523
  };
524
524
  }
525
525
  };
@@ -570,14 +570,14 @@ function va({
570
570
  L(i, df, d), L(r, df, d), L(c, df, d);
571
571
  const A = L(i, Je);
572
572
  ne(A, a, i), ne(A, e.domain, i);
573
- const m = Oe();
574
- ne(d, e.domain, m), ne(m, e.domain, m);
575
- const _ = L(m, Je);
576
- ne(_, e.domain, m);
573
+ const g = Oe();
574
+ ne(d, e.domain, g), ne(g, e.domain, g);
575
+ const _ = L(g, Je);
576
+ ne(_, e.domain, g);
577
577
  const k = Oe(nn);
578
578
  ne(_, e.tld, k), ne(_, e.utld, k), L(d, f1, k);
579
- const y = L(m, ze);
580
- L(y, ze, y), ne(y, e.domain, m), ne(k, e.domain, m), L(k, Je, _), L(k, ze, y);
579
+ const y = L(g, ze);
580
+ L(y, ze, y), ne(y, e.domain, g), ne(k, e.domain, g), L(k, Je, _), L(k, ze, y);
581
581
  const w = L(k, Af);
582
582
  ne(w, e.numeric, nn);
583
583
  const p = L(s, ze), C = L(s, Je);
@@ -586,10 +586,10 @@ function va({
586
586
  ne(C, e.tld, D), ne(C, e.utld, D), ne(D, e.domain, s), ne(D, a, i), L(D, Je, C), L(D, ze, p), L(D, df, d);
587
587
  const x = L(D, Af), I = Oe(p1);
588
588
  ne(x, e.numeric, I);
589
- const M = Oe(p1), g = Oe();
590
- ne(M, f, M), ne(M, t, g), ne(g, f, M), ne(g, t, g), L(D, Ge, M), L(I, Ge, M);
591
- const v = L(r, Af), N = L(c, Af), U = L(N, Ge), z = L(U, Ge);
592
- ne(r, e.domain, s), L(r, Je, C), L(r, ze, p), ne(c, e.domain, s), L(c, Je, C), L(c, ze, p), ne(v, e.domain, M), L(v, Ge, M), L(v, Kf, M), ne(z, e.domain, M), ne(z, f, M), L(z, Ge, M);
589
+ const M = Oe(p1), m = Oe();
590
+ ne(M, f, M), ne(M, t, m), ne(m, f, M), ne(m, t, m), L(D, Ge, M), L(I, Ge, M);
591
+ const b = L(r, Af), N = L(c, Af), U = L(N, Ge), z = L(U, Ge);
592
+ ne(r, e.domain, s), L(r, Je, C), L(r, ze, p), ne(c, e.domain, s), L(c, Je, C), L(c, ze, p), ne(b, e.domain, M), L(b, Ge, M), L(b, Kf, M), ne(z, e.domain, M), ne(z, f, M), L(z, Ge, M);
593
593
  const X = [
594
594
  [Hf, Wf],
595
595
  // {}
@@ -610,7 +610,7 @@ function va({
610
610
  ];
611
611
  for (let q = 0; q < X.length; q++) {
612
612
  const [H, Q] = X[q], le = L(M, H);
613
- L(g, H, le), L(le, Q, M);
613
+ L(m, H, le), L(le, Q, M);
614
614
  const J = Oe(p1);
615
615
  ne(le, f, J);
616
616
  const ie = Oe();
@@ -624,16 +624,16 @@ function va({
624
624
  function ba(e, f, t) {
625
625
  let a = t.length, n = 0, i = [], s = [];
626
626
  for (; n < a; ) {
627
- let r = e, c = null, d = null, A = 0, m = null, _ = -1;
627
+ let r = e, c = null, d = null, A = 0, g = null, _ = -1;
628
628
  for (; n < a && !(c = r.go(t[n].t)); )
629
629
  s.push(t[n++]);
630
630
  for (; n < a && (d = c || r.go(t[n].t)); )
631
- c = null, r = d, r.accepts() ? (_ = 0, m = r) : _ >= 0 && _++, n++, A++;
631
+ c = null, r = d, r.accepts() ? (_ = 0, g = r) : _ >= 0 && _++, n++, A++;
632
632
  if (_ < 0)
633
633
  n -= A, n < a && (s.push(t[n]), n++);
634
634
  else {
635
635
  s.length > 0 && (i.push(dt(an, f, s)), s = []), n -= _, A -= _;
636
- const k = m.t, y = t.slice(n - A, n);
636
+ const k = g.t, y = t.slice(n - A, n);
637
637
  i.push(dt(k, f, y));
638
638
  }
639
639
  }
@@ -799,7 +799,7 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
799
799
  key: 0,
800
800
  class: "pi pi-arrow-left chat-info__return-button",
801
801
  onClick: r[0] || (r[0] = (c) => a("returnToChats"))
802
- })) : b("", !0),
802
+ })) : v("", !0),
803
803
  o("div", Na, [
804
804
  t.chat.avatar ? (l(), u("img", {
805
805
  key: 0,
@@ -813,12 +813,12 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
813
813
  o("div", Sa, [
814
814
  o("span", Va, [
815
815
  Ye(E(e.chat.name) + " ", 1),
816
- e.additionalTitle ? (l(), u("span", La, E(e.additionalTitle), 1)) : b("", !0)
816
+ e.additionalTitle ? (l(), u("span", La, E(e.additionalTitle), 1)) : v("", !0)
817
817
  ]),
818
818
  i.value ? (l(), u("p", Oa, [
819
819
  ce(s.$slots, "img-description", {}, void 0, !0),
820
820
  Ye(" " + E(i.value), 1)
821
- ])) : b("", !0)
821
+ ])) : v("", !0)
822
822
  ]),
823
823
  o("div", za, [
824
824
  ce(s.$slots, "actions", {}, void 0, !0)
@@ -830,7 +830,7 @@ const Ln = /* @__PURE__ */ O(Ia, [["render", xa]]), Da = {
830
830
  }, [
831
831
  ce(s.$slots, "search", {}, void 0, !0)
832
832
  ], 8, Ua)
833
- ])) : b("", !0);
833
+ ])) : v("", !0);
834
834
  }
835
835
  }, _6 = /* @__PURE__ */ O(Ba, [["__scopeId", "data-v-479e4d2a"]]), Ee = h([]), Qe = (e) => {
836
836
  const f = h(0), t = Ee.value.find(({ id: _ }) => _ == e);
@@ -1359,19 +1359,19 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1359
1359
  },
1360
1360
  emits: ["send", "typing"],
1361
1361
  setup(e, { emit: f }) {
1362
- const t = f, a = oe("chatAppId"), { resetMessage: n, getMessage: i, setMessageText: s, setForceSendMessage: r } = Qe(a), c = h(), d = Pa("", 2e3), A = h(), m = e, _ = F(() => !!(m.state == "disabled" || i().text == "" && !i().file || i().isRecording)), k = F(() => Ks), y = F(() => {
1362
+ const t = f, a = oe("chatAppId"), { resetMessage: n, getMessage: i, setMessageText: s, setForceSendMessage: r } = Qe(a), c = h(), d = Pa("", 2e3), A = h(), g = e, _ = F(() => !!(g.state == "disabled" || i().text == "" && !i().file || i().isRecording)), k = F(() => Ks), y = F(() => {
1363
1363
  var M;
1364
- if (m.inputButtonColor)
1365
- return m.inputButtonColor;
1366
- if (!((M = m.selectedChannel) != null && M.channelId))
1364
+ if (g.inputButtonColor)
1365
+ return g.inputButtonColor;
1366
+ if (!((M = g.selectedChannel) != null && M.channelId))
1367
1367
  return "#25D366";
1368
- const I = m.selectedChannel.channelId.toLowerCase();
1368
+ const I = g.selectedChannel.channelId.toLowerCase();
1369
1369
  return I.includes("whatsapp") || I.includes("waba") ? "#25D366" : I.includes("telegram") ? "#37AFE2" : I.includes("sms") ? "#6C757D" : I.includes("max") ? "#4B0082" : "#25D366";
1370
1370
  }), w = F(() => {
1371
1371
  var M;
1372
- if (!((M = m.selectedChannel) != null && M.channelId))
1372
+ if (!((M = g.selectedChannel) != null && M.channelId))
1373
1373
  return ye("component.ChatInput.InputPlaceholder");
1374
- const I = m.selectedChannel.channelId.toLowerCase();
1374
+ const I = g.selectedChannel.channelId.toLowerCase();
1375
1375
  return I.includes("whatsapp") || I.includes("waba") ? ye("component.ChatInput.WhatsappInputPlaceholder") : I.includes("telegram") ? ye("component.ChatInput.TelegramInputPlaceholder") : I.includes("sms") ? ye("component.ChatInput.SmsInputPlaceholder") : I.includes("max") ? ye("component.ChatInput.MaxInputPlaceholder") : ye("component.ChatInput.InputPlaceholder");
1376
1376
  });
1377
1377
  se(
@@ -1380,9 +1380,9 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1380
1380
  t("typing");
1381
1381
  }
1382
1382
  ), se(
1383
- () => m.focusOnInputArea,
1383
+ () => g.focusOnInputArea,
1384
1384
  () => {
1385
- m.focusOnInputArea && ge(() => {
1385
+ g.focusOnInputArea && ge(() => {
1386
1386
  const I = T(c);
1387
1387
  I == null || I.focus();
1388
1388
  });
@@ -1396,12 +1396,12 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1396
1396
  if (!I) return;
1397
1397
  const M = I.scrollTop;
1398
1398
  I.style.height = "auto";
1399
- const g = getComputedStyle(I), v = parseFloat(g.fontSize) || 16, N = parseFloat(g.lineHeight) || v * 1.4, U = 40, z = N * 11, X = I.scrollHeight, H = i().text.split(`
1399
+ const m = getComputedStyle(I), b = parseFloat(m.fontSize) || 16, N = parseFloat(m.lineHeight) || b * 1.4, U = 40, z = N * 11, X = I.scrollHeight, H = i().text.split(`
1400
1400
  `).length > 1, Q = document.createElement("div");
1401
- Q.style.position = "absolute", Q.style.visibility = "hidden", Q.style.whiteSpace = "nowrap", Q.style.font = g.font, Q.style.fontSize = g.fontSize, Q.style.fontFamily = g.fontFamily, Q.style.fontWeight = g.fontWeight, Q.style.letterSpacing = g.letterSpacing, Q.textContent = i().text, document.body.appendChild(Q);
1401
+ Q.style.position = "absolute", Q.style.visibility = "hidden", Q.style.whiteSpace = "nowrap", Q.style.font = m.font, Q.style.fontSize = m.fontSize, Q.style.fontFamily = m.fontFamily, Q.style.fontWeight = m.fontWeight, Q.style.letterSpacing = m.letterSpacing, Q.textContent = i().text, document.body.appendChild(Q);
1402
1402
  const le = Q.offsetWidth;
1403
1403
  document.body.removeChild(Q);
1404
- const J = parseFloat(g.paddingLeft) || 0, ie = parseFloat(g.paddingRight) || 0, Me = I.clientWidth - J - ie, _e = le > Me, Ce = H || _e;
1404
+ const J = parseFloat(m.paddingLeft) || 0, ie = parseFloat(m.paddingRight) || 0, Me = I.clientWidth - J - ie, _e = le > Me, Ce = H || _e;
1405
1405
  i().text.trim() && Ce ? X <= z ? (I.style.height = X + "px", I.style.overflowY = "hidden") : (I.style.height = z + "px", I.style.overflowY = "auto", I.scrollTop = M) : (I.style.height = U + "px", I.style.overflowY = "hidden");
1406
1406
  });
1407
1407
  },
@@ -1441,10 +1441,10 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1441
1441
  } else
1442
1442
  I.preventDefault(), x();
1443
1443
  }, x = () => {
1444
- var M, g;
1444
+ var M, m;
1445
1445
  const I = h(i());
1446
1446
  if (I.value.text != "" || I.value.file) {
1447
- const v = {
1447
+ const b = {
1448
1448
  type: "",
1449
1449
  text: "",
1450
1450
  url: "",
@@ -1452,7 +1452,7 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1452
1452
  size: "",
1453
1453
  reply: void 0
1454
1454
  };
1455
- I.value.file ? (v.type = "message." + I.value.file.type, v.url = I.value.file.url, v.filename = I.value.file.name, v.size = (M = I.value.file.size) == null ? void 0 : M.toString(), v.text = (g = I == null ? void 0 : I.value) == null ? void 0 : g.text.trim()) : (v.type = "message.text", v.text = I.value.text.trim()), I.value.reply && (v.reply = I.value.reply), t("send", v), n(), A.value = void 0, c.value && c.value.focus();
1455
+ I.value.file ? (b.type = "message." + I.value.file.type, b.url = I.value.file.url, b.filename = I.value.file.name, b.size = (M = I.value.file.size) == null ? void 0 : M.toString(), b.text = (m = I == null ? void 0 : I.value) == null ? void 0 : m.text.trim()) : (b.type = "message.text", b.text = I.value.text.trim()), I.value.reply && (b.reply = I.value.reply), t("send", b), n(), A.value = void 0, c.value && c.value.focus();
1456
1456
  }
1457
1457
  };
1458
1458
  return (I, M) => (l(), u("div", fi, [
@@ -1471,7 +1471,7 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1471
1471
  key: 1,
1472
1472
  ref_key: "refInput",
1473
1473
  ref: c,
1474
- "onUpdate:modelValue": M[0] || (M[0] = (g) => T(i)().text = g),
1474
+ "onUpdate:modelValue": M[0] || (M[0] = (m) => T(i)().text = m),
1475
1475
  disabled: e.state == "disabled" || T(i)().isRecording,
1476
1476
  class: "chat-input__input",
1477
1477
  placeholder: w.value,
@@ -1519,7 +1519,7 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1519
1519
  onClick: (n) => f.$emit("tab-click", a.id)
1520
1520
  }, [
1521
1521
  Ye(E(a.label) + " ", 1),
1522
- a.count !== void 0 ? (l(), u("span", Ai, E(a.count), 1)) : b("", !0)
1522
+ a.count !== void 0 ? (l(), u("span", Ai, E(a.count), 1)) : v("", !0)
1523
1523
  ], 8, di)
1524
1524
  ], 2))), 128))
1525
1525
  ]));
@@ -1563,16 +1563,16 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1563
1563
  const t = e, a = f, n = h(""), i = h(), s = h(!1), r = h(!1), c = h(!1), d = h(!1);
1564
1564
  function A() {
1565
1565
  ge(function() {
1566
- const g = T(i);
1567
- g.scrollTop = 0;
1566
+ const m = T(i);
1567
+ m.scrollTop = 0;
1568
1568
  });
1569
1569
  }
1570
- const m = () => {
1571
- const g = T(i);
1572
- d.value = g.scrollHeight > g.clientHeight;
1570
+ const g = () => {
1571
+ const m = T(i);
1572
+ d.value = m.scrollHeight > m.clientHeight;
1573
1573
  }, _ = () => {
1574
- const g = T(i), v = g.scrollHeight - g.scrollTop - g.clientHeight;
1575
- m(), g.scrollTop > 500 && (r.value = !0), g.scrollTop <= 500 && (r.value = !1), c.value ? v < 300 && (s.value = !0) : (v < 300 && (s.value = !0), v >= 300 && (s.value = !1));
1574
+ const m = T(i), b = m.scrollHeight - m.scrollTop - m.clientHeight;
1575
+ g(), m.scrollTop > 500 && (r.value = !0), m.scrollTop <= 500 && (r.value = !1), c.value ? b < 300 && (s.value = !0) : (b < 300 && (s.value = !0), b >= 300 && (s.value = !1));
1576
1576
  };
1577
1577
  se(
1578
1578
  () => s.value,
@@ -1583,72 +1583,64 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1583
1583
  () => t.chats,
1584
1584
  () => {
1585
1585
  if (s.value = !1, c.value) {
1586
- const g = T(i);
1587
- g.scrollTop = g.scrollHeight;
1586
+ const m = T(i);
1587
+ m.scrollTop = m.scrollHeight;
1588
1588
  }
1589
1589
  ge(() => {
1590
- m();
1590
+ g();
1591
1591
  });
1592
1592
  }
1593
1593
  ), se(
1594
1594
  () => i.value,
1595
1595
  () => {
1596
1596
  i.value && ge(() => {
1597
- m();
1597
+ g();
1598
1598
  });
1599
1599
  },
1600
1600
  { immediate: !0 }
1601
1601
  );
1602
- const k = (g) => {
1603
- const v = T(i);
1604
- (g.offsetX > v.clientWidth || g.offsetY > v.clientHeight) && (c.value = !0);
1602
+ const k = (m) => {
1603
+ const b = T(i);
1604
+ (m.offsetX > b.clientWidth || m.offsetY > b.clientHeight) && (c.value = !0);
1605
1605
  }, y = () => {
1606
1606
  c.value = !1;
1607
- }, w = (g) => {
1608
- a("expand", g);
1609
- }, p = (g) => {
1607
+ }, w = (m) => {
1608
+ a("expand", m);
1609
+ }, p = (m) => {
1610
1610
  t.chats.forEach((N) => {
1611
1611
  N.isSelected = !1, N.dialogs && N.dialogs.forEach((U) => {
1612
1612
  U.isSelected = !1;
1613
1613
  });
1614
- }), g.dialog && C(g.dialog);
1615
- const v = t.chats.find((N) => N.chatId === g.chat.chatId);
1616
- v.isSelected = !0, a("select", g);
1617
- }, C = (g) => {
1618
- t.chats.forEach((v) => {
1619
- v.isSelected = !1, v.dialogs && v.dialogs.forEach((N) => {
1620
- N.isSelected = !1, N.dialogId == g.dialogId && (N.isSelected = !0);
1614
+ }), m.dialog && C(m.dialog);
1615
+ const b = t.chats.find((N) => N.chatId === m.chat.chatId);
1616
+ b.isSelected = !0, a("select", m);
1617
+ }, C = (m) => {
1618
+ t.chats.forEach((b) => {
1619
+ b.isSelected = !1, b.dialogs && b.dialogs.forEach((N) => {
1620
+ N.isSelected = !1, N.dialogId == m.dialogId && (N.isSelected = !0);
1621
1621
  });
1622
1622
  });
1623
- }, D = () => t.chats.toSorted((g, v) => {
1624
- if (Number(g["lastActivity.timestamp"]) > Number(v["lastActivity.timestamp"])) return -1;
1625
- if (Number(g["lastActivity.timestamp"]) < Number(v["lastActivity.timestamp"])) return 1;
1626
- if (Number(g["lastActivity.timestamp"]) == Number(v["lastActivity.timestamp"])) return 0;
1627
- }).toSorted((g, v) => {
1628
- if (g.countUnread > v.countUnread) return -1;
1629
- if (g.countUnread < v.countUnread) return 1;
1630
- if (g.countUnread == v.countUnread) return 0;
1631
- }).filter((g) => t.filterQuery ? g.name.includes(t.filterQuery) || g.metadata.includes(t.filterQuery) : g.name.includes(n.value) || g.metadata.includes(n.value)), x = (g) => {
1632
- n.value = g;
1633
- }, I = (g) => a("action", g), M = (g) => {
1634
- a("tab-click", g);
1623
+ }, D = () => t.chats.filter((m) => t.filterQuery ? m.name.includes(t.filterQuery) || m.metadata.includes(t.filterQuery) : m.name.includes(n.value) || m.metadata.includes(n.value)), x = (m) => {
1624
+ n.value = m;
1625
+ }, I = (m) => a("action", m), M = (m) => {
1626
+ a("tab-click", m);
1635
1627
  };
1636
- return (g, v) => (l(), u("div", pi, [
1628
+ return (m, b) => (l(), u("div", pi, [
1637
1629
  o("div", _i, [
1638
- e.titleEnabled ? (l(), u("h2", hi, E(T(ye)("component.ChatList.Title")), 1)) : b("", !0),
1639
- ce(g.$slots, "actions", {}, void 0, !0)
1630
+ e.titleEnabled ? (l(), u("h2", hi, E(T(ye)("component.ChatList.Title")), 1)) : v("", !0),
1631
+ ce(m.$slots, "actions", {}, void 0, !0)
1640
1632
  ]),
1641
- ce(g.$slots, "sidebar", {}, void 0, !0),
1633
+ ce(m.$slots, "sidebar", {}, void 0, !0),
1642
1634
  e.filterEnabled ? (l(), B(T(Sl), {
1643
1635
  key: 0,
1644
1636
  class: "chat-list__filter",
1645
1637
  onUpdate: x
1646
- })) : b("", !0),
1638
+ })) : v("", !0),
1647
1639
  e.dialogTabs && e.dialogTabs.length > 0 ? (l(), B(mi, {
1648
1640
  key: 1,
1649
1641
  tabs: e.dialogTabs,
1650
1642
  onTabClick: M
1651
- }, null, 8, ["tabs"])) : b("", !0),
1643
+ }, null, 8, ["tabs"])) : v("", !0),
1652
1644
  o("div", {
1653
1645
  ref_key: "refChatList",
1654
1646
  ref: i,
@@ -1657,7 +1649,7 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1657
1649
  onMousedown: k,
1658
1650
  onMouseup: y
1659
1651
  }, [
1660
- D().length === 0 ? (l(), u("div", vi, v[0] || (v[0] = [
1652
+ D().length === 0 ? (l(), u("div", vi, b[0] || (b[0] = [
1661
1653
  o("div", { class: "chat-list__placeholder" }, [
1662
1654
  o("p", { class: "chat-list__placeholder-title" }, " Нет контактных данных, чтобы начать чат "),
1663
1655
  o("p", { class: "chat-list__placeholder-hint" }, " Добавьте номер телефона или имя Telegram в карточку контакта ")
@@ -1707,15 +1699,15 @@ const ei = /* @__PURE__ */ O(Js, [["render", Xs]]), fi = { class: "chat-input__c
1707
1699
  key: 0,
1708
1700
  class: "chat-list__button-up",
1709
1701
  onClick: A
1710
- }, v[1] || (v[1] = [
1702
+ }, b[1] || (b[1] = [
1711
1703
  o("span", { class: "pi pi-angle-up chat-list__icon-down" }, null, -1)
1712
- ]))) : b("", !0)
1704
+ ]))) : v("", !0)
1713
1705
  ]),
1714
1706
  _: 1
1715
1707
  })
1716
1708
  ]));
1717
1709
  }
1718
- }, w6 = /* @__PURE__ */ O(wi, [["__scopeId", "data-v-acd07187"]]);
1710
+ }, w6 = /* @__PURE__ */ O(wi, [["__scopeId", "data-v-0e275075"]]);
1719
1711
  function Ci(e, f) {
1720
1712
  let t = null;
1721
1713
  return function(...n) {
@@ -1748,13 +1740,13 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
1748
1740
  ref: "keyboard",
1749
1741
  class: S(["keyboard__container", [`keyboard__container--${e.align}`]])
1750
1742
  }, [
1751
- (l(!0), u(K, null, re(e.keyboard, (m) => (l(), u("div", {
1752
- key: m.text,
1743
+ (l(!0), u(K, null, re(e.keyboard, (g) => (l(), u("div", {
1744
+ key: g.text,
1753
1745
  class: "keyboard__key",
1754
- style: Ae({ "box-shadow": "0px 0px 10px 5px " + m.color }),
1755
- onClick: (_) => c(m)
1746
+ style: Ae({ "box-shadow": "0px 0px 10px 5px " + g.color }),
1747
+ onClick: (_) => c(g)
1756
1748
  }, [
1757
- o("p", null, E(m.text), 1)
1749
+ o("p", null, E(g.text), 1)
1758
1750
  ], 12, Ii))), 128))
1759
1751
  ], 2));
1760
1752
  }
@@ -1867,26 +1859,26 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
1867
1859
  "feedAction"
1868
1860
  ],
1869
1861
  setup(e, { emit: f }) {
1870
- const t = h(), a = h(), n = h(), i = h(!1), s = h(!1), r = h(!1), c = h(!1), d = h(!1), A = h(!1), m = h(!1), _ = h("");
1862
+ const t = h(), a = h(), n = h(), i = h(!1), s = h(!1), r = h(!1), c = h(!1), d = h(!1), A = h(!1), g = h(!1), _ = h("");
1871
1863
  let k = null;
1872
- const y = h(0), w = h(0), p = h(!1), C = e, D = oe("chatAppId"), { setReply: x, getMessage: I, resetReply: M } = Qe(D), g = f, v = F(() => !!(s.value && C.objects.length > 0 && C.objects[C.objects.length - 1].keyboard)), N = (j) => {
1873
- g("keyboardAction", j);
1864
+ const y = h(0), w = h(0), p = h(!1), C = e, D = oe("chatAppId"), { setReply: x, getMessage: I, resetReply: M } = Qe(D), m = f, b = F(() => !!(s.value && C.objects.length > 0 && C.objects[C.objects.length - 1].keyboard)), N = (j) => {
1865
+ m("keyboardAction", j);
1874
1866
  }, U = (j) => {
1875
- g("feedAction", j);
1867
+ m("feedAction", j);
1876
1868
  };
1877
1869
  function z(j = !0) {
1878
1870
  const P = T(a);
1879
1871
  let Z = 0;
1880
1872
  n.value && (Z = n.value.refKeyboard.clientHeight);
1881
1873
  const ae = 100, ue = P.scrollHeight - P.scrollTop - P.clientHeight;
1882
- ue < ae + Z ? (i.value = !1, s.value = !0) : (i.value = !0, s.value = !1), A.value ? (P.scrollTop < 300 && (d.value = !1, r.value = !1), ue < 300 && (c.value = !1, d.value = !0)) : j && (P.scrollTop < 300 && (r.value = !1), ue < 300 && (c.value = !1)), ee(), m.value = !0, k && window.clearTimeout(k), k = window.setTimeout(() => {
1883
- m.value = !1;
1874
+ ue < ae + Z ? (i.value = !1, s.value = !0) : (i.value = !0, s.value = !1), A.value ? (P.scrollTop < 300 && (d.value = !1, r.value = !1), ue < 300 && (c.value = !1, d.value = !0)) : j && (P.scrollTop < 300 && (r.value = !1), ue < 300 && (c.value = !1)), ee(), g.value = !0, k && window.clearTimeout(k), k = window.setTimeout(() => {
1875
+ g.value = !1;
1884
1876
  }, 500);
1885
1877
  }
1886
1878
  se(
1887
1879
  () => [c.value, r.value],
1888
1880
  () => {
1889
- c.value || g("loadMoreDown"), r.value || g("loadMore");
1881
+ c.value || m("loadMoreDown"), r.value || m("loadMore");
1890
1882
  }
1891
1883
  ), se(
1892
1884
  () => C.isLoadingMore,
@@ -1974,7 +1966,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
1974
1966
  !p.value && C.objects.length > 0 && (le(), p.value = !0);
1975
1967
  }
1976
1968
  function Me() {
1977
- g("forceScrollToBottom"), ge(function() {
1969
+ m("forceScrollToBottom"), ge(function() {
1978
1970
  const j = T(a);
1979
1971
  j.style.scrollBehavior = "smooth", j.scrollTop = j.scrollHeight;
1980
1972
  });
@@ -1989,9 +1981,9 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
1989
1981
  { immediate: !0 }
1990
1982
  );
1991
1983
  const _e = (j) => {
1992
- g("messageAction", j);
1984
+ m("messageAction", j);
1993
1985
  }, Ce = (j) => {
1994
- g("clickRepliedMessage", j);
1986
+ m("clickRepliedMessage", j);
1995
1987
  }, Pe = (j, P) => {
1996
1988
  if (C.enableDoubleClickReply && (j == null || j.preventDefault(), P.type.indexOf("system") == -1 && P.type.indexOf("typing") == -1)) {
1997
1989
  const Z = document.getElementById("chat-input-reply-line-" + D);
@@ -2011,7 +2003,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2011
2003
  j && (j.style.display = "none");
2012
2004
  }, Ve = (j) => {
2013
2005
  j.forEach((P) => {
2014
- P.isIntersecting && g("messageVisible", JSON.parse(P.target.id));
2006
+ P.isIntersecting && m("messageVisible", JSON.parse(P.target.id));
2015
2007
  });
2016
2008
  }, Le = {
2017
2009
  root: document.getElementById("feed-container-" + D),
@@ -2114,11 +2106,11 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2114
2106
  }, [
2115
2107
  Y(de, null, {
2116
2108
  default: W(() => [
2117
- m.value ? (l(), B(T(SA), {
2109
+ g.value ? (l(), B(T(SA), {
2118
2110
  key: 0,
2119
2111
  class: "message-feed__sticky-date",
2120
2112
  text: _.value
2121
- }, null, 8, ["text"])) : b("", !0)
2113
+ }, null, 8, ["text"])) : v("", !0)
2122
2114
  ]),
2123
2115
  _: 1
2124
2116
  }),
@@ -2145,10 +2137,10 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2145
2137
  subText: e.typing.title,
2146
2138
  avatar: e.typing.avatar
2147
2139
  }
2148
- }, null, 8, ["message"])) : b("", !0),
2140
+ }, null, 8, ["message"])) : v("", !0),
2149
2141
  Y(de, null, {
2150
2142
  default: W(() => [
2151
- v.value ? (l(), B(xi, {
2143
+ b.value ? (l(), B(xi, {
2152
2144
  key: 0,
2153
2145
  ref_key: "keyboardRef",
2154
2146
  ref: n,
@@ -2156,7 +2148,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2156
2148
  keyboard: e.objects[e.objects.length - 1].keyboard,
2157
2149
  align: e.keyboardAlign,
2158
2150
  onAction: N
2159
- }, null, 8, ["keyboard", "align"])) : b("", !0)
2151
+ }, null, 8, ["keyboard", "align"])) : v("", !0)
2160
2152
  ]),
2161
2153
  _: 1
2162
2154
  }),
@@ -2167,9 +2159,9 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2167
2159
  class: "message-feed__button-down",
2168
2160
  onClick: Me
2169
2161
  }, [
2170
- e.buttonParams ? (l(), u("div", Si, E(e.buttonParams.unreadAmount), 1)) : b("", !0),
2162
+ e.buttonParams ? (l(), u("div", Si, E(e.buttonParams.unreadAmount), 1)) : v("", !0),
2171
2163
  P[1] || (P[1] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
2172
- ])) : b("", !0)
2164
+ ])) : v("", !0)
2173
2165
  ]),
2174
2166
  _: 1
2175
2167
  }),
@@ -2178,7 +2170,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2178
2170
  buttons: e.feedKeyboards,
2179
2171
  align: e.feedKeyboardAlign,
2180
2172
  onAction: U
2181
- }, null, 8, ["buttons", "align"])) : b("", !0)
2173
+ }, null, 8, ["buttons", "align"])) : v("", !0)
2182
2174
  ], 40, Ei)) : (l(), u("div", {
2183
2175
  key: 1,
2184
2176
  ref_key: "refFeed",
@@ -2198,7 +2190,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2198
2190
  message: T(I)().reply,
2199
2191
  onReset: Se
2200
2192
  }, null, 8, ["message"])
2201
- ], 8, ["to"])) : b("", !0)
2193
+ ], 8, ["to"])) : v("", !0)
2202
2194
  ], 64));
2203
2195
  }
2204
2196
  }), C6 = /* @__PURE__ */ O(Li, [["__scopeId", "data-v-4380e1c2"]]), Oi = {
@@ -2227,11 +2219,11 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2227
2219
  height: "48",
2228
2220
  width: "48"
2229
2221
  }, null, 8, Ui)
2230
- ])) : b("", !0),
2222
+ ])) : v("", !0),
2231
2223
  o("h2", Bi, E(e.user.name), 1),
2232
2224
  o("p", $i, E(e.user.email), 1),
2233
2225
  o("p", Ri, E(e.user.phone), 1)
2234
- ])) : b("", !0);
2226
+ ])) : v("", !0);
2235
2227
  }
2236
2228
  }, I6 = /* @__PURE__ */ O(Qi, [["__scopeId", "data-v-ad5c665d"]]), Fi = ["data-theme"], Pi = { class: "modal__container" }, Yi = {
2237
2229
  __name: "ModalFullscreen",
@@ -2300,7 +2292,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2300
2292
  },
2301
2293
  emits: ["reset"],
2302
2294
  setup(e, { emit: f }) {
2303
- const t = oe("chatAppId"), { getTheme: a } = Fe(t), n = f, i = h(), s = h(), r = h(!1), c = h(0), d = h(0), A = h(!1), m = () => A.value = !1;
2295
+ const t = oe("chatAppId"), { getTheme: a } = Fe(t), n = f, i = h(), s = h(), r = h(!1), c = h(0), d = h(0), A = h(!1), g = () => A.value = !1;
2304
2296
  function _() {
2305
2297
  i.value && (r.value ? i.value.pause() : i.value.play(), r.value = !r.value);
2306
2298
  }
@@ -2380,9 +2372,9 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2380
2372
  o("div", fo, [
2381
2373
  o("div", to, [
2382
2374
  o("span", no, E(e.fileInfo.fileName), 1),
2383
- !e.fileInfo.isAudio && !e.fileInfo.isVideo ? (l(), u("span", ao, E(e.fileInfo.fileSize), 1)) : b("", !0),
2384
- e.fileInfo.isAudio ? (l(), u("span", so, E(`${y.value} / ${w.value}`), 1)) : b("", !0),
2385
- e.fileInfo.isVideo ? (l(), u("span", io, E(w.value), 1)) : b("", !0)
2375
+ !e.fileInfo.isAudio && !e.fileInfo.isVideo ? (l(), u("span", ao, E(e.fileInfo.fileSize), 1)) : v("", !0),
2376
+ e.fileInfo.isAudio ? (l(), u("span", so, E(`${y.value} / ${w.value}`), 1)) : v("", !0),
2377
+ e.fileInfo.isVideo ? (l(), u("span", io, E(w.value), 1)) : v("", !0)
2386
2378
  ]),
2387
2379
  o("div", oo, [
2388
2380
  o("span", {
@@ -2397,7 +2389,7 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2397
2389
  A.value ? (l(), B(i1, {
2398
2390
  key: 0,
2399
2391
  theme: T(a)().theme ? T(a)().theme : "",
2400
- onClose: m
2392
+ onClose: g
2401
2393
  }, {
2402
2394
  default: W(() => [
2403
2395
  e.fileInfo.isVideo ? (l(), u("video", {
@@ -2406,16 +2398,16 @@ const Ii = ["onClick"], ki = /* @__PURE__ */ G({
2406
2398
  src: e.fileInfo.previewUrl,
2407
2399
  controls: "",
2408
2400
  autoplay: ""
2409
- }, null, 8, lo)) : b("", !0),
2401
+ }, null, 8, lo)) : v("", !0),
2410
2402
  e.fileInfo.isImage ? (l(), u("img", {
2411
2403
  key: 1,
2412
2404
  class: "preview__modal-image",
2413
2405
  src: e.fileInfo.previewUrl,
2414
2406
  alt: "Image Preview"
2415
- }, null, 8, uo)) : b("", !0)
2407
+ }, null, 8, uo)) : v("", !0)
2416
2408
  ]),
2417
2409
  _: 1
2418
- }, 8, ["theme"])) : b("", !0)
2410
+ }, 8, ["theme"])) : v("", !0)
2419
2411
  ]),
2420
2412
  _: 1
2421
2413
  })
@@ -2489,16 +2481,16 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
2489
2481
  },
2490
2482
  emits: ["fileUploaded"],
2491
2483
  setup(e, { emit: f }) {
2492
- const t = e, a = h(""), n = h(), i = h(), s = oe("chatAppId"), { setMessageFile: r, resetMessageFile: c, getMessage: d, setRecordingMessage: A } = Qe(s), m = F(() => !d().file), _ = () => {
2484
+ const t = e, a = h(""), n = h(), i = h(), s = oe("chatAppId"), { setMessageFile: r, resetMessageFile: c, getMessage: d, setRecordingMessage: A } = Qe(s), g = F(() => !d().file), _ = () => {
2493
2485
  const D = document.getElementById("chat-input-file-line-" + s);
2494
2486
  D && (D.style.display = "none"), c(), i.value = void 0, a.value = "";
2495
2487
  }, k = async () => {
2496
2488
  var D, x;
2497
2489
  _(), (D = n.value) != null && D.files && C((x = n.value) == null ? void 0 : x.files[0]);
2498
2490
  }, y = (D) => {
2499
- n.value && m && (n.value.accept = D.action, n.value.click());
2491
+ n.value && g && (n.value.accept = D.action, n.value.click());
2500
2492
  }, w = () => {
2501
- n.value && m && t.state == "active" && n.value.click();
2493
+ n.value && g && t.state == "active" && n.value.click();
2502
2494
  }, p = async (D) => {
2503
2495
  var I;
2504
2496
  const x = (I = D.clipboardData) == null ? void 0 : I.items;
@@ -2506,8 +2498,8 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
2506
2498
  for (let M of x)
2507
2499
  if (M.type.indexOf("image") !== -1) {
2508
2500
  D.preventDefault();
2509
- const g = M.getAsFile();
2510
- g && C(g);
2501
+ const m = M.getAsFile();
2502
+ m && C(m);
2511
2503
  }
2512
2504
  }
2513
2505
  }, C = async (D) => {
@@ -2540,10 +2532,10 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
2540
2532
  o("p", null, "Загрузка файла...", -1)
2541
2533
  ]))) : a.value === "error" ? (l(), u("div", ho, x[1] || (x[1] = [
2542
2534
  o("p", null, "Ошибка при загрузке файла.", -1)
2543
- ]))) : b("", !0),
2535
+ ]))) : v("", !0),
2544
2536
  o("span", {
2545
- class: S(["file-uploader__trigger", { "file-uploader__disabled": !m.value || e.state == "disabled" }]),
2546
- disabled: !m.value || e.state == "disabled",
2537
+ class: S(["file-uploader__trigger", { "file-uploader__disabled": !g.value || e.state == "disabled" }]),
2538
+ disabled: !g.value || e.state == "disabled",
2547
2539
  onClick: y,
2548
2540
  onButtonClick: w
2549
2541
  }, [
@@ -2564,8 +2556,8 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
2564
2556
  key: 0,
2565
2557
  "file-info": i.value,
2566
2558
  onReset: _
2567
- }, null, 8, ["file-info"])) : b("", !0)
2568
- ], 8, ["to"])) : b("", !0)
2559
+ }, null, 8, ["file-info"])) : v("", !0)
2560
+ ], 8, ["to"])) : v("", !0)
2569
2561
  ], 64));
2570
2562
  }
2571
2563
  }), k6 = /* @__PURE__ */ O(bo, [["__scopeId", "data-v-d85f8dc5"]]), yo = { key: 0 }, Mo = ["value", "selected"], wo = {
@@ -2593,15 +2585,15 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
2593
2585
  c(d);
2594
2586
  }), (d, A) => e.show ? (l(), u("div", yo, [
2595
2587
  o("select", {
2596
- onChange: A[0] || (A[0] = (m) => r(m))
2588
+ onChange: A[0] || (A[0] = (g) => r(g))
2597
2589
  }, [
2598
- (l(!0), u(K, null, re(t.themes, (m, _) => (l(), u("option", {
2590
+ (l(!0), u(K, null, re(t.themes, (g, _) => (l(), u("option", {
2599
2591
  key: _,
2600
- value: m.code,
2601
- selected: m.default === !0
2602
- }, E(m.name), 9, Mo))), 128))
2592
+ value: g.code,
2593
+ selected: g.default === !0
2594
+ }, E(g.name), 9, Mo))), 128))
2603
2595
  ], 32)
2604
- ])) : b("", !0);
2596
+ ])) : v("", !0);
2605
2597
  }
2606
2598
  }, x6 = /* @__PURE__ */ O(wo, [["__scopeId", "data-v-d6377896"]]), Co = ["id"], tt = /* @__PURE__ */ G({
2607
2599
  __name: "ButtonContextMenu",
@@ -2639,10 +2631,10 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
2639
2631
  },
2640
2632
  emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
2641
2633
  setup(e, { expose: f, emit: t }) {
2642
- const a = oe("chatAppId"), n = oe("extChatAppId"), { getTheme: i } = Fe(a), s = e, r = G1(), c = t, d = h(), A = h(), m = h(!1), _ = (M) => {
2634
+ const a = oe("chatAppId"), n = oe("extChatAppId"), { getTheme: i } = Fe(a), s = e, r = G1(), c = t, d = h(), A = h(), g = h(!1), _ = (M) => {
2643
2635
  x(), c("click", M);
2644
2636
  }, k = () => {
2645
- s.disabled || (s.mode == "click" && !m.value ? D() : s.mode == "click" && m.value && x(), c("buttonClick"));
2637
+ s.disabled || (s.mode == "click" && !g.value ? D() : s.mode == "click" && g.value && x(), c("buttonClick"));
2646
2638
  }, y = () => {
2647
2639
  s.disabled || s.mode == "hover" && D();
2648
2640
  }, w = () => {
@@ -2653,28 +2645,28 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
2653
2645
  c("menuMouseLeave"), s.disabled || s.mode == "hover" && x();
2654
2646
  }, D = () => {
2655
2647
  if (A.value && d.value) {
2656
- const M = d.value, g = A.value.getBoundingClientRect();
2648
+ const M = d.value, m = A.value.getBoundingClientRect();
2657
2649
  M.style.display = "inherit";
2658
- const v = d.value.getBoundingClientRect();
2650
+ const b = d.value.getBoundingClientRect();
2659
2651
  M.style.display = "none", ge(() => {
2660
2652
  const N = {
2661
- left: { top: g.top - (v.height - g.height) / 2, left: g.left - v.width },
2662
- right: { top: g.top - (v.height - g.height) / 2, left: g.left + g.width },
2663
- bottom: { top: g.bottom, left: g.left - (v.width - g.width) / 2 },
2664
- "bottom-right": { top: g.bottom, left: g.left + g.width },
2665
- top: { top: g.top - v.height, left: g.left - (v.width - g.width) / 2 },
2666
- "top-right": { top: g.top - v.height, left: g.right - v.width / 2 }
2653
+ left: { top: m.top - (b.height - m.height) / 2, left: m.left - b.width },
2654
+ right: { top: m.top - (b.height - m.height) / 2, left: m.left + m.width },
2655
+ bottom: { top: m.bottom, left: m.left - (b.width - m.width) / 2 },
2656
+ "bottom-right": { top: m.bottom, left: m.left + m.width },
2657
+ top: { top: m.top - b.height, left: m.left - (b.width - m.width) / 2 },
2658
+ "top-right": { top: m.top - b.height, left: m.right - b.width / 2 }
2667
2659
  }, U = N[s.menuSide] || N.top, z = {
2668
2660
  top: U.top + s.offsetY,
2669
2661
  left: U.left + s.offsetX
2670
2662
  };
2671
- M.style.top = z.top + "px", M.style.left = z.left + "px", M.style.opacity = "1", M.style.display = "inherit", m.value = !0;
2663
+ M.style.top = z.top + "px", M.style.left = z.left + "px", M.style.opacity = "1", M.style.display = "inherit", g.value = !0;
2672
2664
  });
2673
2665
  }
2674
2666
  }, x = () => {
2675
2667
  if (d.value) {
2676
2668
  const M = d.value;
2677
- M && (M.style.top = "0", M.style.left = "0", M.style.opacity = "0", M.style.display = "none", m.value = !1);
2669
+ M && (M.style.top = "0", M.style.left = "0", M.style.opacity = "0", M.style.display = "none", g.value = !1);
2678
2670
  }
2679
2671
  }, I = (M) => {
2680
2672
  s.mode == "click" && A.value && !A.value.contains(M.target) && x();
@@ -2688,7 +2680,7 @@ const po = /* @__PURE__ */ O(Ao, [["render", mo]]), _o = { key: 0 }, ho = { key:
2688
2680
  }), f({
2689
2681
  updatePosition: D,
2690
2682
  hideMenu: x
2691
- }), (M, g) => (l(), u("button", {
2683
+ }), (M, m) => (l(), u("button", {
2692
2684
  id: "container-" + T(r) + T(n),
2693
2685
  ref_key: "actionScope",
2694
2686
  ref: A,
@@ -2754,7 +2746,7 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
2754
2746
  [`tooltip--${c.position}`]: !0
2755
2747
  })), A = () => {
2756
2748
  r.value && (clearTimeout(r.value), r.value = null);
2757
- }, m = () => {
2749
+ }, g = () => {
2758
2750
  console.log("startAutoShow called, trigger:", c.trigger), c.trigger === "auto" && (console.log("Starting auto show tooltip"), A(), s.value = !0, _(), r.value = setTimeout(() => {
2759
2751
  console.log("Auto hiding tooltip after", c.autoShowDuration, "ms"), s.value = !1, r.value = null;
2760
2752
  }, c.autoShowDuration));
@@ -2782,7 +2774,7 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
2782
2774
  return mf(() => {
2783
2775
  A();
2784
2776
  }), f({
2785
- startAutoShow: m,
2777
+ startAutoShow: g,
2786
2778
  clearAutoTimer: A
2787
2779
  }), (w, p) => (l(), u(K, null, [
2788
2780
  o("div", {
@@ -2803,7 +2795,7 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
2803
2795
  ref: i,
2804
2796
  "data-theme": T(a)().theme ? T(a)().theme : "light",
2805
2797
  class: S(d.value)
2806
- }, E(e.text), 11, To)) : b("", !0)
2798
+ }, E(e.text), 11, To)) : v("", !0)
2807
2799
  ]),
2808
2800
  _: 1
2809
2801
  })
@@ -2832,36 +2824,36 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
2832
2824
  emits: ["selectItem"],
2833
2825
  setup(e, { emit: f }) {
2834
2826
  const t = e, a = Jt(t, "sidebarItems"), n = Jt(t, "menuActions"), i = f, s = F(
2835
- () => a.value.filter((g) => g.isFixedBottom).sort((g, v) => v.notificationCount - g.notificationCount)
2827
+ () => a.value.filter((m) => m.isFixedBottom).sort((m, b) => b.notificationCount - m.notificationCount)
2836
2828
  ), r = F(
2837
- () => a.value.filter((g) => !g.isFixedBottom).sort((g, v) => v.notificationCount - g.notificationCount)
2838
- ), c = (g) => {
2839
- const v = a.value.find((N) => N.itemId === g);
2840
- i("selectItem", v);
2841
- }, d = (g, v) => {
2842
- I(g.currentTarget), c(v);
2843
- }, A = (g) => {
2844
- const v = g.split(" ");
2845
- return v.length > 2 ? v.slice(0, 2).join(" ") : g;
2846
- }, m = (g) => {
2847
- console.log("Выбрано действие:", g), typeof g.action == "function" && g.action();
2829
+ () => a.value.filter((m) => !m.isFixedBottom).sort((m, b) => b.notificationCount - m.notificationCount)
2830
+ ), c = (m) => {
2831
+ const b = a.value.find((N) => N.itemId === m);
2832
+ i("selectItem", b);
2833
+ }, d = (m, b) => {
2834
+ I(m.currentTarget), c(b);
2835
+ }, A = (m) => {
2836
+ const b = m.split(" ");
2837
+ return b.length > 2 ? b.slice(0, 2).join(" ") : m;
2838
+ }, g = (m) => {
2839
+ console.log("Выбрано действие:", m), typeof m.action == "function" && m.action();
2848
2840
  }, _ = () => {
2849
2841
  console.log("Кнопка меню была нажата");
2850
- }, k = h(null), y = h(!1), w = h(0), p = h(40), C = h(!1), D = (g) => {
2851
- const v = k.value;
2852
- if (!v || !g) return 0;
2853
- const N = v.getBoundingClientRect(), U = g.getBoundingClientRect(), X = U.top + U.height / 2 - N.top - p.value / 2;
2842
+ }, k = h(null), y = h(!1), w = h(0), p = h(40), C = h(!1), D = (m) => {
2843
+ const b = k.value;
2844
+ if (!b || !m) return 0;
2845
+ const N = b.getBoundingClientRect(), U = m.getBoundingClientRect(), X = U.top + U.height / 2 - N.top - p.value / 2;
2854
2846
  return Math.max(0, X);
2855
2847
  }, x = () => {
2856
2848
  if (!k.value) return;
2857
- const v = k.value.querySelector(".sidebar__image--active");
2858
- v ? (w.value = D(v), y.value = !0) : y.value = !1;
2859
- }, I = (g) => {
2849
+ const b = k.value.querySelector(".sidebar__image--active");
2850
+ b ? (w.value = D(b), y.value = !0) : y.value = !1;
2851
+ }, I = (m) => {
2860
2852
  try {
2861
- if (!g || !k.value) return;
2862
- const v = g.querySelector(".sidebar__image");
2863
- if (!v) return;
2864
- const N = D(v), U = 12, z = 160;
2853
+ if (!m || !k.value) return;
2854
+ const b = m.querySelector(".sidebar__image");
2855
+ if (!b) return;
2856
+ const N = D(b), U = 12, z = 160;
2865
2857
  C.value = !0, p.value = U, setTimeout(() => {
2866
2858
  w.value = N, requestAnimationFrame(() => {
2867
2859
  p.value = 40, setTimeout(() => {
@@ -2873,16 +2865,16 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
2873
2865
  }
2874
2866
  }, M = () => x();
2875
2867
  return pe(() => {
2876
- var v;
2868
+ var b;
2877
2869
  ge(x), window.addEventListener("resize", M);
2878
- const g = (v = k.value) == null ? void 0 : v.querySelector(".sidebar__scroll-container");
2879
- g && g.addEventListener("scroll", x);
2870
+ const m = (b = k.value) == null ? void 0 : b.querySelector(".sidebar__scroll-container");
2871
+ m && m.addEventListener("scroll", x);
2880
2872
  }), mf(() => {
2881
- var v;
2873
+ var b;
2882
2874
  window.removeEventListener("resize", M);
2883
- const g = (v = k.value) == null ? void 0 : v.querySelector(".sidebar__scroll-container");
2884
- g && g.removeEventListener("scroll", x);
2885
- }), se(() => a.value.map((g) => g.selected), () => ge(x)), (g, v) => (l(), u("div", {
2875
+ const m = (b = k.value) == null ? void 0 : b.querySelector(".sidebar__scroll-container");
2876
+ m && m.removeEventListener("scroll", x);
2877
+ }), se(() => a.value.map((m) => m.selected), () => ge(x)), (m, b) => (l(), u("div", {
2886
2878
  ref_key: "containerRef",
2887
2879
  ref: k,
2888
2880
  class: S(["sidebar__container", { "sidebar-horizontal__container": e.horizontal }])
@@ -2891,7 +2883,7 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
2891
2883
  key: 0,
2892
2884
  class: S(["sidebar__selected-bar", { "is-animating": C.value }]),
2893
2885
  style: Ae({ top: w.value + "px", height: p.value + "px" })
2894
- }, null, 6)) : b("", !0),
2886
+ }, null, 6)) : v("", !0),
2895
2887
  o("div", Eo, [
2896
2888
  o("ul", {
2897
2889
  class: S(["sidebar__list-fixed", { "sidebar-horizontal__list-fixed": e.horizontal }])
@@ -2916,12 +2908,12 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
2916
2908
  "sidebar-horizontal__image": e.horizontal
2917
2909
  }])
2918
2910
  }, null, 10, So),
2919
- v[0] || (v[0] = o("p", null, "Мои", -1)),
2920
- N.notificationCount ? (l(), u("span", Vo, E(N.notificationCount > 99 ? "99+" : N.notificationCount), 1)) : b("", !0)
2911
+ b[0] || (b[0] = o("p", null, "Мои", -1)),
2912
+ N.notificationCount ? (l(), u("span", Vo, E(N.notificationCount > 99 ? "99+" : N.notificationCount), 1)) : v("", !0)
2921
2913
  ]),
2922
2914
  _: 2,
2923
2915
  __: [0]
2924
- }, 1032, ["text"])) : b("", !0)
2916
+ }, 1032, ["text"])) : v("", !0)
2925
2917
  ], 10, jo))), 128))
2926
2918
  ], 2),
2927
2919
  o("ul", {
@@ -2958,7 +2950,7 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
2958
2950
  "sidebar-horizontal__image": e.horizontal
2959
2951
  }])
2960
2952
  }, null, 10, zo)),
2961
- N.notificationCount ? (l(), u("span", Uo, E(N.notificationCount > 99 ? "99+" : N.notificationCount), 1)) : b("", !0)
2953
+ N.notificationCount ? (l(), u("span", Uo, E(N.notificationCount > 99 ? "99+" : N.notificationCount), 1)) : v("", !0)
2962
2954
  ], 10, Lo))), 128))
2963
2955
  ], 2)
2964
2956
  ]),
@@ -2967,7 +2959,7 @@ const Do = /* @__PURE__ */ O(Io, [["render", xo]]), To = ["data-theme"], No = /*
2967
2959
  actions: n.value,
2968
2960
  mode: "click",
2969
2961
  "menu-side": "top-right",
2970
- onClick: m,
2962
+ onClick: g,
2971
2963
  onButtonClick: _
2972
2964
  }, {
2973
2965
  default: W(() => [
@@ -3026,8 +3018,8 @@ const Yo = /* @__PURE__ */ O(Qo, [["render", Po]]), qo = { class: "chat-panel" }
3026
3018
  ])
3027
3019
  ]),
3028
3020
  e.titleEnabled ? (l(), u("div", Zo, [
3029
- e.title ? (l(), u("span", Ko, E(e.title), 1)) : b("", !0)
3030
- ])) : b("", !0)
3021
+ e.title ? (l(), u("span", Ko, E(e.title), 1)) : v("", !0)
3022
+ ])) : v("", !0)
3031
3023
  ]),
3032
3024
  o("div", null, [
3033
3025
  ce(t.$slots, "content", {}, void 0, !0)
@@ -3063,7 +3055,7 @@ const Yo = /* @__PURE__ */ O(Qo, [["render", Po]]), qo = { class: "chat-panel" }
3063
3055
  const t = e, a = oe("chatAppId"), { getMessage: n } = Qe(a), i = f, r = h(t.channels.find((d) => d.type === "default")), c = (d) => {
3064
3056
  r.value = d, i("selectChannel", r.value);
3065
3057
  };
3066
- return (d, A) => T(n)().isRecording ? b("", !0) : (l(), u("div", {
3058
+ return (d, A) => T(n)().isRecording ? v("", !0) : (l(), u("div", {
3067
3059
  key: 0,
3068
3060
  class: S(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
3069
3061
  }, [
@@ -3072,7 +3064,7 @@ const Yo = /* @__PURE__ */ O(Qo, [["render", Po]]), qo = { class: "chat-panel" }
3072
3064
  key: 0,
3073
3065
  src: r.value.icon,
3074
3066
  class: "channels__icon"
3075
- }, null, 8, Xo)) : b("", !0),
3067
+ }, null, 8, Xo)) : v("", !0),
3076
3068
  o("span", el, E(r.value.title), 1)
3077
3069
  ])) : (l(), u("span", fl, E(T(ye)("component.ChannelSelector.Placeholder")), 1)),
3078
3070
  Y(tt, {
@@ -3103,18 +3095,18 @@ const j6 = (e, f = null) => {
3103
3095
  const n = (A) => new Date(A.getFullYear(), A.getMonth(), A.getDate()).getTime(), i = /* @__PURE__ */ new Date(), s = n(i), r = new Date(i);
3104
3096
  r.setDate(r.getDate() - 1);
3105
3097
  const c = n(r), d = (A) => {
3106
- const m = new Date(A * 1e3), _ = n(m);
3107
- return _ === s ? "Сегодня" : _ === c ? "Вчера" : m.toLocaleDateString();
3098
+ const g = new Date(A * 1e3), _ = n(g);
3099
+ return _ === s ? "Сегодня" : _ === c ? "Вчера" : g.toLocaleDateString();
3108
3100
  };
3109
3101
  f !== null && (a = d(f));
3110
3102
  for (let A = 0; A < e.length; A++) {
3111
- const m = e[A], _ = d(m.timestamp);
3103
+ const g = e[A], _ = d(g.timestamp);
3112
3104
  _ !== a && (t.push({
3113
3105
  isSeparator: !0,
3114
3106
  day: _,
3115
3107
  text: _,
3116
3108
  type: "system.date"
3117
- }), a = _), t.push(m);
3109
+ }), a = _), t.push(g);
3118
3110
  }
3119
3111
  return t;
3120
3112
  }, S6 = async () => {
@@ -3194,12 +3186,12 @@ const j6 = (e, f = null) => {
3194
3186
  }, d = () => {
3195
3187
  const M = [];
3196
3188
  return t.chat.isSelected && M.push("chat-item__selected"), t.hasScroll && M.push("chat-item__with-scroll"), M.join(" ");
3197
- }, A = (M) => M.isSelected ? "dialog__selected" : "", m = (M) => {
3189
+ }, A = (M) => M.isSelected ? "dialog__selected" : "", g = (M) => {
3198
3190
  a("action", { chat: t.chat, ...M });
3199
- }, _ = () => t.chat.dialogs.toSorted((M, g) => {
3200
- if (Number(M["lastActivity.timestamp"]) > Number(g["lastActivity.timestamp"])) return -1;
3201
- if (Number(M["lastActivity.timestamp"]) < Number(g["lastActivity.timestamp"])) return 1;
3202
- if (Number(M["lastActivity.timestamp"]) == Number(g["lastActivity.timestamp"])) return 0;
3191
+ }, _ = () => t.chat.dialogs.toSorted((M, m) => {
3192
+ if (Number(M["lastActivity.timestamp"]) > Number(m["lastActivity.timestamp"])) return -1;
3193
+ if (Number(M["lastActivity.timestamp"]) < Number(m["lastActivity.timestamp"])) return 1;
3194
+ if (Number(M["lastActivity.timestamp"]) == Number(m["lastActivity.timestamp"])) return 0;
3203
3195
  }), k = F(() => Of(t.chat["lastMessage.status"])), y = F(() => t.chat.showEmptyIndicator || t.chat.countUnread > 0), w = F(() => t.chat.countUnread > 0 ? t.chat.countUnread > 99 ? "99+" : t.chat.countUnread : t.chat.showEmptyIndicator ? "" : void 0);
3204
3196
  let p;
3205
3197
  const C = h(0), D = [ye("component.ChatItem.typing") + ".", ye("component.ChatItem.typing") + "..", ye("component.ChatItem.typing") + "..."], x = F(() => t.chat.typing ? D[C.value] : t.chat.lastMessage);
@@ -3213,13 +3205,13 @@ const j6 = (e, f = null) => {
3213
3205
  { immediate: !0 }
3214
3206
  );
3215
3207
  const I = (M) => {
3216
- var g;
3217
- ((g = M.relatedTarget) == null ? void 0 : g.className) == "context-menu__list" ? n.value = !0 : n.value = !1;
3208
+ var m;
3209
+ ((m = M.relatedTarget) == null ? void 0 : m.className) == "context-menu__list" ? n.value = !0 : n.value = !1;
3218
3210
  };
3219
- return (M, g) => (l(), u("div", null, [
3211
+ return (M, m) => (l(), u("div", null, [
3220
3212
  o("div", {
3221
3213
  class: S(["chat-item__container", d()]),
3222
- onMouseenter: g[2] || (g[2] = (v) => n.value = !0),
3214
+ onMouseenter: m[2] || (m[2] = (b) => n.value = !0),
3223
3215
  onMouseleave: I,
3224
3216
  onClick: r
3225
3217
  }, [
@@ -3252,89 +3244,89 @@ const j6 = (e, f = null) => {
3252
3244
  position: "bottom"
3253
3245
  }, {
3254
3246
  default: W(() => [
3255
- e.chat.lastMessage || e.chat.typing ? (l(), u("div", ll, E(x.value), 1)) : b("", !0)
3247
+ e.chat.lastMessage || e.chat.typing ? (l(), u("div", ll, E(x.value), 1)) : v("", !0)
3256
3248
  ]),
3257
3249
  _: 1
3258
3250
  }, 8, ["text"])
3259
3251
  ]),
3260
3252
  o("div", ul, [
3261
- e.chat["lastActivity.time"] && (!e.chat.actions || !n.value) ? (l(), u("div", cl, E(e.chat["lastActivity.time"]), 1)) : b("", !0),
3253
+ e.chat["lastActivity.time"] && (!e.chat.actions || !n.value) ? (l(), u("div", cl, E(e.chat["lastActivity.time"]), 1)) : v("", !0),
3262
3254
  n.value && e.chat.actions ? (l(), B(tt, {
3263
3255
  key: 1,
3264
3256
  mode: "click",
3265
3257
  "menu-side": "bottom-right",
3266
3258
  "offset-x": -36,
3267
3259
  actions: e.chat.actions,
3268
- onClick: m,
3260
+ onClick: g,
3269
3261
  onButtonClick: s,
3270
- onMenuMouseLeave: g[0] || (g[0] = (v) => n.value = !1)
3262
+ onMenuMouseLeave: m[0] || (m[0] = (b) => n.value = !1)
3271
3263
  }, {
3272
- default: W(() => g[3] || (g[3] = [
3264
+ default: W(() => m[3] || (m[3] = [
3273
3265
  o("span", { class: "pi pi-ellipsis-h chat-item__actions-trigger" }, null, -1)
3274
3266
  ])),
3275
3267
  _: 1,
3276
3268
  __: [3]
3277
- }, 8, ["actions"])) : b("", !0),
3269
+ }, 8, ["actions"])) : v("", !0),
3278
3270
  o("div", rl, [
3279
3271
  T(Lf).includes(e.chat["lastMessage.status"]) ? (l(), u("div", {
3280
3272
  key: 0,
3281
3273
  class: S(["chat-item__status-message", k.value])
3282
3274
  }, [
3283
- e.chat["lastMessage.status"] !== "sent" ? (l(), u("span", dl)) : b("", !0),
3284
- g[4] || (g[4] = o("span", { class: "pi pi-check" }, null, -1))
3285
- ], 2)) : b("", !0),
3286
- y.value ? (l(), u("div", Al, E(w.value), 1)) : b("", !0)
3275
+ e.chat["lastMessage.status"] !== "sent" ? (l(), u("span", dl)) : v("", !0),
3276
+ m[4] || (m[4] = o("span", { class: "pi pi-check" }, null, -1))
3277
+ ], 2)) : v("", !0),
3278
+ y.value ? (l(), u("div", Al, E(w.value), 1)) : v("", !0)
3287
3279
  ]),
3288
3280
  e.chat.countUnread < 1 ? (l(), u("div", gl, [
3289
- e.chat.isFixedTop || e.chat.isFixedBottom ? (l(), u("span", ml)) : b("", !0)
3290
- ])) : b("", !0)
3281
+ e.chat.isFixedTop || e.chat.isFixedBottom ? (l(), u("span", ml)) : v("", !0)
3282
+ ])) : v("", !0)
3291
3283
  ]),
3292
3284
  t.showDialogs && e.chat.dialogs ? (l(), u("div", {
3293
3285
  key: 0,
3294
3286
  class: "chat-item__dialog-buttons",
3295
- onClick: g[1] || (g[1] = (v) => a("expand", t.chat))
3287
+ onClick: m[1] || (m[1] = (b) => a("expand", t.chat))
3296
3288
  }, [
3297
- t.showDialogs && !e.chat.dialogsExpanded ? (l(), u("button", pl, g[5] || (g[5] = [
3289
+ t.showDialogs && !e.chat.dialogsExpanded ? (l(), u("button", pl, m[5] || (m[5] = [
3298
3290
  o("span", {
3299
3291
  id: "noSelectButton",
3300
3292
  class: "pi pi-angle-down"
3301
3293
  }, null, -1)
3302
- ]))) : b("", !0),
3303
- t.showDialogs && e.chat.dialogsExpanded ? (l(), u("button", _l, g[6] || (g[6] = [
3294
+ ]))) : v("", !0),
3295
+ t.showDialogs && e.chat.dialogsExpanded ? (l(), u("button", _l, m[6] || (m[6] = [
3304
3296
  o("span", {
3305
3297
  id: "noSelectButton",
3306
3298
  class: "pi pi-angle-up"
3307
3299
  }, null, -1)
3308
- ]))) : b("", !0)
3309
- ])) : b("", !0)
3300
+ ]))) : v("", !0)
3301
+ ])) : v("", !0)
3310
3302
  ], 34),
3311
3303
  t.showDialogs && e.chat.dialogsExpanded ? (l(), u("div", {
3312
3304
  key: 0,
3313
3305
  class: S(["dialog__container", { "dialog__container--with-scroll": t.hasScroll }])
3314
3306
  }, [
3315
- (l(!0), u(K, null, re(_(), (v) => (l(), u("div", {
3316
- key: v.dialogId,
3317
- class: S(["dialog__item", A(v)]),
3318
- onClick: (N) => c(v)
3307
+ (l(!0), u(K, null, re(_(), (b) => (l(), u("div", {
3308
+ key: b.dialogId,
3309
+ class: S(["dialog__item", A(b)]),
3310
+ onClick: (N) => c(b)
3319
3311
  }, [
3320
- v.icon ? (l(), u("img", {
3312
+ b.icon ? (l(), u("img", {
3321
3313
  key: 0,
3322
3314
  class: "dialog__icon",
3323
- src: v.icon,
3315
+ src: b.icon,
3324
3316
  height: "16",
3325
3317
  width: "16"
3326
3318
  }, null, 8, vl)) : (l(), u("span", bl)),
3327
3319
  o("div", yl, [
3328
- o("div", Ml, E(v.name), 1),
3329
- o("div", wl, E(v["lastActivity.time"]), 1)
3320
+ o("div", Ml, E(b.name), 1),
3321
+ o("div", wl, E(b["lastActivity.time"]), 1)
3330
3322
  ]),
3331
- v.countUnread > 0 ? (l(), u("div", {
3323
+ b.countUnread > 0 ? (l(), u("div", {
3332
3324
  key: 2,
3333
3325
  class: "chat-item__unread",
3334
- style: Ae({ backgroundColor: v.colorUnread ? v.colorUnread : null })
3335
- }, E(v.countUnread > 99 ? "99+" : v.countUnread), 5)) : b("", !0)
3326
+ style: Ae({ backgroundColor: b.colorUnread ? b.colorUnread : null })
3327
+ }, E(b.countUnread > 99 ? "99+" : b.countUnread), 5)) : v("", !0)
3336
3328
  ], 10, hl))), 128))
3337
- ], 2)) : b("", !0)
3329
+ ], 2)) : v("", !0)
3338
3330
  ]));
3339
3331
  }
3340
3332
  }), At = /* @__PURE__ */ O(Cl, [["__scopeId", "data-v-00afb199"]]), Il = {}, kl = {
@@ -3501,11 +3493,11 @@ const Fl = /* @__PURE__ */ O($l, [["render", Ql]]), Pl = { class: "contact-info"
3501
3493
  if (!d.value) return t.channels[0] || null;
3502
3494
  const w = c(d.value.value);
3503
3495
  return w ? t.channels.find((C) => {
3504
- var g, v;
3505
- const D = ((g = C.title) == null ? void 0 : g.toLowerCase()) || "", x = ((v = C.channelId) == null ? void 0 : v.toLowerCase()) || "", I = D.includes(w), M = ["whatsapp", "waba", "telegram"].some((N) => x.includes(N));
3496
+ var m, b;
3497
+ const D = ((m = C.title) == null ? void 0 : m.toLowerCase()) || "", x = ((b = C.channelId) == null ? void 0 : b.toLowerCase()) || "", I = D.includes(w), M = ["whatsapp", "waba", "telegram"].some((N) => x.includes(N));
3506
3498
  return I && M;
3507
3499
  }) || t.channels[0] || { title: "default", channelId: "fallback" } : t.channels[0] || null;
3508
- }), m = F(() => t.channels), _ = (w) => w ? w.includes("whatsapp") || w.includes("waba") ? Bl : w.includes("telegram") ? Fl : null : null, k = (w) => !t.currentDialog || !Object.keys(t.currentDialog) ? !1 : t.currentDialog.attributeId === w.id, y = (w) => {
3500
+ }), g = F(() => t.channels), _ = (w) => w ? w.includes("whatsapp") || w.includes("waba") ? Bl : w.includes("telegram") ? Fl : null : null, k = (w) => !t.currentDialog || !Object.keys(t.currentDialog) ? !1 : t.currentDialog.attributeId === w.id, y = (w) => {
3509
3501
  a("select-attribute-channel", {
3510
3502
  attributeId: w.id,
3511
3503
  channelId: i.value.channelId
@@ -3522,29 +3514,29 @@ const Fl = /* @__PURE__ */ O($l, [["render", Ql]]), Pl = { class: "contact-info"
3522
3514
  var C, D, x, I;
3523
3515
  return l(), u("div", Pl, [
3524
3516
  o("div", Yl, [
3525
- (l(!0), u(K, null, re(((C = e.contact) == null ? void 0 : C.attributes) || [], (M, g) => (l(), u("div", {
3517
+ (l(!0), u(K, null, re(((C = e.contact) == null ? void 0 : C.attributes) || [], (M, m) => (l(), u("div", {
3526
3518
  key: M.id,
3527
3519
  class: S(["contact-info__attribute-item", { "contact-info__attribute-item--current-chat": k(M) }])
3528
3520
  }, [
3529
3521
  he(o("input", {
3530
- id: `attr-${g}`,
3531
- "onUpdate:modelValue": p[0] || (p[0] = (v) => n.value = v),
3522
+ id: `attr-${m}`,
3523
+ "onUpdate:modelValue": p[0] || (p[0] = (b) => n.value = b),
3532
3524
  type: "radio",
3533
3525
  value: M.id,
3534
- onChange: (v) => y(M)
3526
+ onChange: (b) => y(M)
3535
3527
  }, null, 40, ql), [
3536
3528
  [Tt, n.value]
3537
3529
  ]),
3538
3530
  o("label", {
3539
- for: `attr-${g}`
3531
+ for: `attr-${m}`
3540
3532
  }, [
3541
3533
  o("span", Wl, [
3542
3534
  o("span", Zl, [
3543
- n.value === M.id ? (l(), B(Ll, { key: 0 })) : b("", !0)
3535
+ n.value === M.id ? (l(), B(Ll, { key: 0 })) : v("", !0)
3544
3536
  ])
3545
3537
  ]),
3546
3538
  Ye(" " + E(M.value) + " ", 1),
3547
- k(M) ? (l(), u("span", Kl, " Текущий чат ")) : b("", !0)
3539
+ k(M) ? (l(), u("span", Kl, " Текущий чат ")) : v("", !0)
3548
3540
  ], 8, Hl)
3549
3541
  ], 2))), 128))
3550
3542
  ]),
@@ -3573,10 +3565,10 @@ const Fl = /* @__PURE__ */ O($l, [["render", Ql]]), Pl = { class: "contact-info"
3573
3565
  }, null, 2)
3574
3566
  ]),
3575
3567
  s.value ? (l(), u("div", f0, [
3576
- (l(!0), u(K, null, re(m.value, (M) => (l(), u("div", {
3568
+ (l(!0), u(K, null, re(g.value, (M) => (l(), u("div", {
3577
3569
  key: M.channelId,
3578
3570
  class: "contact-info__select-option",
3579
- onClick: (g) => r(M)
3571
+ onClick: (m) => r(M)
3580
3572
  }, [
3581
3573
  o("div", n0, [
3582
3574
  M.icon ? (l(), u("img", {
@@ -3592,7 +3584,7 @@ const Fl = /* @__PURE__ */ O($l, [["render", Ql]]), Pl = { class: "contact-info"
3592
3584
  ]),
3593
3585
  o("span", null, E(M.title), 1)
3594
3586
  ], 8, t0))), 128))
3595
- ])) : b("", !0)
3587
+ ])) : v("", !0)
3596
3588
  ])
3597
3589
  ]),
3598
3590
  p[5] || (p[5] = o("div", { class: "contact-info__divider" }, null, -1)),
@@ -3649,23 +3641,23 @@ const Fl = /* @__PURE__ */ O($l, [["render", Ql]]), Pl = { class: "contact-info"
3649
3641
  setup(e, { emit: f }) {
3650
3642
  const t = e, a = oe("chatAppId"), { setMessageText: n } = Qe(a), i = () => {
3651
3643
  s("closeTemplateWindow"), n(c.value.template);
3652
- }, s = f, r = h(null), c = h(null), d = h(""), A = h(), m = h(""), _ = h(""), k = h(""), y = h(!1), w = F(() => !!(y.value && (k.value == "grid" && _.value == "none" || _.value == "grid" && m.value == "none"))), p = F(() => !!(y.value && (m.value == "grid" && _.value == "none" || _.value == "grid" && k.value == "none"))), C = () => {
3644
+ }, s = f, r = h(null), c = h(null), d = h(""), A = h(), g = h(""), _ = h(""), k = h(""), y = h(!1), w = F(() => !!(y.value && (k.value == "grid" && _.value == "none" || _.value == "grid" && g.value == "none"))), p = F(() => !!(y.value && (g.value == "grid" && _.value == "none" || _.value == "grid" && k.value == "none"))), C = () => {
3653
3645
  y.value && (_.value == "grid" ? x() : k.value == "grid" && M());
3654
3646
  }, D = () => {
3655
- y.value && (_.value == "grid" ? I() : m.value == "grid" && M());
3647
+ y.value && (_.value == "grid" ? I() : g.value == "grid" && M());
3656
3648
  }, x = () => {
3657
3649
  const q = document.getElementById("template-selector-container-" + a);
3658
- q.style.setProperty("--chotto-template-first-col-display", "grid"), q.style.setProperty("--chotto-template-second-col-display", "none"), g();
3650
+ q.style.setProperty("--chotto-template-first-col-display", "grid"), q.style.setProperty("--chotto-template-second-col-display", "none"), m();
3659
3651
  }, I = () => {
3660
3652
  const q = document.getElementById("template-selector-container-" + a);
3661
- q.style.setProperty("--chotto-template-third-col-display", "grid"), q.style.setProperty("--chotto-template-second-col-display", "none"), g();
3653
+ q.style.setProperty("--chotto-template-third-col-display", "grid"), q.style.setProperty("--chotto-template-second-col-display", "none"), m();
3662
3654
  }, M = () => {
3663
3655
  const q = document.getElementById("template-selector-container-" + a);
3664
- q.style.setProperty("--chotto-template-second-col-display", "grid"), q.style.setProperty("--chotto-template-first-col-display", "none"), q.style.setProperty("--chotto-template-third-col-display", "none"), g();
3665
- }, g = () => {
3656
+ q.style.setProperty("--chotto-template-second-col-display", "grid"), q.style.setProperty("--chotto-template-first-col-display", "none"), q.style.setProperty("--chotto-template-third-col-display", "none"), m();
3657
+ }, m = () => {
3666
3658
  const q = document.getElementById("template-selector-container-" + a), H = window.getComputedStyle(q);
3667
- m.value = H.getPropertyValue("--chotto-template-first-col-display"), _.value = H.getPropertyValue("--chotto-template-second-col-display"), k.value = H.getPropertyValue("--chotto-template-third-col-display");
3668
- }, v = (q) => {
3659
+ g.value = H.getPropertyValue("--chotto-template-first-col-display"), _.value = H.getPropertyValue("--chotto-template-second-col-display"), k.value = H.getPropertyValue("--chotto-template-third-col-display");
3660
+ }, b = (q) => {
3669
3661
  t.templates.forEach((H) => H.isSelected = !1), q.isSelected = !0, c.value = q, I();
3670
3662
  }, N = () => {
3671
3663
  M(), t.templates.forEach((q) => q.isSelected = !1);
@@ -3677,7 +3669,7 @@ const Fl = /* @__PURE__ */ O($l, [["render", Ql]]), Pl = { class: "contact-info"
3677
3669
  H > 700 && (y.value = !1), H < 700 && (y.value = !0);
3678
3670
  });
3679
3671
  return pe(() => {
3680
- g(), T(A) && X.observe(T(A));
3672
+ m(), T(A) && X.observe(T(A));
3681
3673
  }), (q, H) => (l(), u("div", o0, [
3682
3674
  o("div", {
3683
3675
  id: "template-selector-container-" + T(a),
@@ -3695,13 +3687,13 @@ const Fl = /* @__PURE__ */ O($l, [["render", Ql]]), Pl = { class: "contact-info"
3695
3687
  class: "pi pi-arrow-left",
3696
3688
  onClick: C
3697
3689
  })
3698
- ])) : b("", !0),
3690
+ ])) : v("", !0),
3699
3691
  p.value ? (l(), u("button", d0, [
3700
3692
  o("span", {
3701
3693
  class: "pi pi-arrow-right",
3702
3694
  onClick: D
3703
3695
  })
3704
- ])) : b("", !0)
3696
+ ])) : v("", !0)
3705
3697
  ]),
3706
3698
  o("button", A0, [
3707
3699
  o("span", {
@@ -3727,7 +3719,7 @@ const Fl = /* @__PURE__ */ O($l, [["render", Ql]]), Pl = { class: "contact-info"
3727
3719
  class: "template-selector__item-group-icon",
3728
3720
  src: Q.iconUrl,
3729
3721
  alt: Q.title
3730
- }, null, 8, h0)) : b("", !0),
3722
+ }, null, 8, h0)) : v("", !0),
3731
3723
  he(o("input", {
3732
3724
  id: le,
3733
3725
  "onUpdate:modelValue": H[1] || (H[1] = (J) => r.value = J),
@@ -3761,7 +3753,7 @@ const Fl = /* @__PURE__ */ O($l, [["render", Ql]]), Pl = { class: "contact-info"
3761
3753
  (l(!0), u(K, null, re(z.value, (Q, le) => (l(), u("li", {
3762
3754
  key: le,
3763
3755
  class: S(["template-selector__item-template", { "template-selector__item-selected": Q.isSelected }]),
3764
- onClick: (J) => v(Q)
3756
+ onClick: (J) => b(Q)
3765
3757
  }, [
3766
3758
  o("div", I0, [
3767
3759
  o("p", k0, E(Q.title), 1),
@@ -3850,13 +3842,13 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
3850
3842
  };
3851
3843
  return pe(() => {
3852
3844
  i.value.style.display = "none";
3853
- }), (A, m) => (l(), u(K, null, [
3845
+ }), (A, g) => (l(), u(K, null, [
3854
3846
  Y(xe, {
3855
3847
  text: "Шаблоны сообщений",
3856
3848
  position: "left"
3857
3849
  }, {
3858
3850
  default: W(() => [
3859
- T(a)().isRecording ? b("", !0) : (l(), u("button", {
3851
+ T(a)().isRecording ? v("", !0) : (l(), u("button", {
3860
3852
  key: 0,
3861
3853
  ref_key: "templateButton",
3862
3854
  ref: n,
@@ -3920,11 +3912,11 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
3920
3912
  },
3921
3913
  { immediate: !0 }
3922
3914
  );
3923
- const r = (m) => {
3915
+ const r = (g) => {
3924
3916
  if (!a.isFilled) {
3925
3917
  i.value = "";
3926
3918
  const _ = window.getSelection();
3927
- _.getRangeAt && _.rangeCount && _.getRangeAt(0).selectNodeContents(m.target);
3919
+ _.getRangeAt && _.rangeCount && _.getRangeAt(0).selectNodeContents(g.target);
3928
3920
  }
3929
3921
  };
3930
3922
  function c() {
@@ -3932,17 +3924,17 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
3932
3924
  i.value = a.value;
3933
3925
  }) : i.value = "Заполнить");
3934
3926
  }
3935
- function d(m) {
3936
- m.target.blur(), c();
3927
+ function d(g) {
3928
+ g.target.blur(), c();
3937
3929
  }
3938
- function A(m) {
3939
- m.target == document.getElementById("placeholder" + t + a.index) && (m.key === "Escape" && m.target.blur(), m.key == "Tab" && (m.target.blur(), document.getElementById("placeholder" + t + (a.index + 1)) && (m.preventDefault(), document.getElementById("placeholder" + t + (a.index + 1)).focus())));
3930
+ function A(g) {
3931
+ g.target == document.getElementById("placeholder" + t + a.index) && (g.key === "Escape" && g.target.blur(), g.key == "Tab" && (g.target.blur(), document.getElementById("placeholder" + t + (a.index + 1)) && (g.preventDefault(), document.getElementById("placeholder" + t + (a.index + 1)).focus())));
3940
3932
  }
3941
3933
  return pe(() => {
3942
3934
  window.addEventListener("keydown", A);
3943
3935
  }), mf(() => {
3944
3936
  window.removeEventListener("keydown", A);
3945
- }), (m, _) => (l(), u("span", {
3937
+ }), (g, _) => (l(), u("span", {
3946
3938
  id: "placeholder" + T(t) + e.index,
3947
3939
  ref_key: "refPlaceholder",
3948
3940
  ref: s,
@@ -3972,7 +3964,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
3972
3964
  setup(e, { emit: f }) {
3973
3965
  const t = e, a = h(oe("filebumpUrl")), n = h(null), i = h(), s = h(""), r = h(""), c = h(), d = f, A = () => {
3974
3966
  i.value && r.value != "success" && i.value.click();
3975
- }, m = {
3967
+ }, g = {
3976
3968
  DOCUMENT: {
3977
3969
  text: "Документ до 100 МБ",
3978
3970
  accept: ".pdf,.doc,.docx,.xls,.xlsx",
@@ -3999,9 +3991,9 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
3999
3991
  if (w) {
4000
3992
  s.value = "";
4001
3993
  const p = w.name.split(".");
4002
- if (m[t.type].accept.indexOf(p[p.length - 1]) == -1)
4003
- s.value = m[t.type].error;
4004
- else if (w.size > m[t.type].maxSize)
3994
+ if (g[t.type].accept.indexOf(p[p.length - 1]) == -1)
3995
+ s.value = g[t.type].error;
3996
+ else if (w.size > g[t.type].maxSize)
4005
3997
  s.value = "Файл слишком большого размера";
4006
3998
  else if (!s.value) {
4007
3999
  n.value = w, r.value = "uploading";
@@ -4048,20 +4040,20 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4048
4040
  ref: i,
4049
4041
  type: "file",
4050
4042
  style: { display: "none" },
4051
- accept: m[e.type].accept,
4043
+ accept: g[e.type].accept,
4052
4044
  onChange: _
4053
4045
  }, null, 40, q0),
4054
4046
  w[1] || (w[1] = o("span", { class: "pi pi-paperclip attachment-section__icon" }, null, -1)),
4055
4047
  o("div", null, [
4056
4048
  w[0] || (w[0] = o("p", { class: "attachment-section__title" }, " Прикрепить файл ", -1)),
4057
- o("p", H0, E(m[e.type].text), 1)
4049
+ o("p", H0, E(g[e.type].text), 1)
4058
4050
  ])
4059
4051
  ], 2)) : r.value === "success" && c.value ? (l(), B(et, {
4060
4052
  key: 1,
4061
4053
  "file-info": c.value,
4062
4054
  onReset: k
4063
- }, null, 8, ["file-info"])) : b("", !0),
4064
- s.value ? (l(), u("div", W0, E(s.value), 1)) : b("", !0)
4055
+ }, null, 8, ["file-info"])) : v("", !0),
4056
+ s.value ? (l(), u("div", W0, E(s.value), 1)) : v("", !0)
4065
4057
  ], 64));
4066
4058
  }
4067
4059
  }), K0 = /* @__PURE__ */ O(Z0, [["__scopeId", "data-v-ca64b0c9"]]), J0 = { class: "quick-reply-buttons" }, G0 = ["onClick"], X0 = { class: "quick-reply-buttons__line" }, eu = /* @__PURE__ */ G({
@@ -4186,24 +4178,24 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4186
4178
  file: null,
4187
4179
  buttons: null
4188
4180
  };
4189
- m.value ? (R.text = Se.value, R.templateId = A.value.templateId, R.values = Ve.value, R.file = m.value) : (R.text = Se.value, R.templateId = A.value.templateId, R.values = Ve.value), A.value.buttons && (R.buttons = A.value.buttons), n("sendWabaValues", R), Pe();
4181
+ g.value ? (R.text = Se.value, R.templateId = A.value.templateId, R.values = Ve.value, R.file = g.value) : (R.text = Se.value, R.templateId = A.value.templateId, R.values = Ve.value), A.value.buttons && (R.buttons = A.value.buttons), n("sendWabaValues", R), Pe();
4190
4182
  }, r = (R) => {
4191
- m.value = R;
4192
- }, c = h(null), d = h(null), A = h(null), m = h(null), _ = h(""), k = h(!1), y = () => {
4183
+ g.value = R;
4184
+ }, c = h(null), d = h(null), A = h(null), g = h(null), _ = h(""), k = h(!1), y = () => {
4193
4185
  k.value = !k.value, k.value ? (c.value.scrollTop = 0, c.value.style["overflow-y"] = "hidden") : c.value.style["overflow-y"] = "scroll";
4194
4186
  }, w = (R) => {
4195
4187
  Object.keys(x).forEach((te) => {
4196
4188
  x[te] = "";
4197
- }), m.value = null, t.wabaTemplates.forEach((te) => te.isSelected = !1), R.isSelected = !0, A.value = R, k.value = !1, le();
4189
+ }), g.value = null, t.wabaTemplates.forEach((te) => te.isSelected = !1), R.isSelected = !0, A.value = R, k.value = !1, le();
4198
4190
  }, p = () => {
4199
4191
  J(), t.wabaTemplates.forEach((R) => R.isSelected = !1);
4200
4192
  }, C = F(() => d.value ? t.wabaTemplates.filter((R) => R.groupId === d.value.groupId) : t.wabaTemplates), D = F(() => {
4201
4193
  const R = _.value.trim().toLowerCase();
4202
4194
  return C.value.filter((te) => te.title.toLowerCase().includes(R) || te.template.toLowerCase().includes(R));
4203
- }), x = wn({}), I = h(null), M = h(), g = h(""), v = h(""), N = h(""), U = h(!1), z = F(() => !!(U.value && (N.value == "grid" && v.value == "none" || v.value == "grid" && g.value == "none"))), X = F(() => !!(U.value && (g.value == "grid" && v.value == "none" || v.value == "grid" && N.value == "none"))), q = () => {
4204
- U.value && (v.value == "grid" ? Q() : N.value == "grid" && J());
4195
+ }), x = wn({}), I = h(null), M = h(), m = h(""), b = h(""), N = h(""), U = h(!1), z = F(() => !!(U.value && (N.value == "grid" && b.value == "none" || b.value == "grid" && m.value == "none"))), X = F(() => !!(U.value && (m.value == "grid" && b.value == "none" || b.value == "grid" && N.value == "none"))), q = () => {
4196
+ U.value && (b.value == "grid" ? Q() : N.value == "grid" && J());
4205
4197
  }, H = () => {
4206
- U.value && (v.value == "grid" ? le() : g.value == "grid" && J());
4198
+ U.value && (b.value == "grid" ? le() : m.value == "grid" && J());
4207
4199
  }, Q = () => {
4208
4200
  const R = document.getElementById("waba-template-selector-container-" + a);
4209
4201
  R.style.setProperty("--chotto-waba-template-first-col-display", "grid"), R.style.setProperty("--chotto-waba-template-second-col-display", "none"), console.log(R, window.getComputedStyle(R).getPropertyValue("--waba-template-first-col-display")), ie();
@@ -4215,7 +4207,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4215
4207
  R.style.setProperty("--chotto-waba-template-second-col-display", "grid"), R.style.setProperty("--chotto-waba-template-first-col-display", "none"), R.style.setProperty("--chotto-waba-template-third-col-display", "none"), ie();
4216
4208
  }, ie = () => {
4217
4209
  const R = document.getElementById("waba-template-selector-container-" + a), te = window.getComputedStyle(R);
4218
- g.value = te.getPropertyValue("--chotto-waba-template-first-col-display"), v.value = te.getPropertyValue("--chotto-waba-template-second-col-display"), N.value = te.getPropertyValue("--chotto-waba-template-third-col-display");
4210
+ m.value = te.getPropertyValue("--chotto-waba-template-first-col-display"), b.value = te.getPropertyValue("--chotto-waba-template-second-col-display"), N.value = te.getPropertyValue("--chotto-waba-template-third-col-display");
4219
4211
  }, Me = (R) => {
4220
4212
  x[R[1]] = R[0];
4221
4213
  }, _e = F(() => {
@@ -4234,11 +4226,11 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4234
4226
  if (!((te = A.value) != null && te.template.match(/{{\d+}}/gi)))
4235
4227
  return !1;
4236
4228
  const R = Object.keys(x).length !== ((ee = A.value) == null ? void 0 : ee.template.match(/{{\d+}}/gi).length);
4237
- return A.value.type === "TEXT" ? R : A.value.type !== "TEXT" ? R || !m.value : !1;
4229
+ return A.value.type === "TEXT" ? R : A.value.type !== "TEXT" ? R || !g.value : !1;
4238
4230
  }), Pe = () => {
4239
4231
  Object.keys(x).forEach((R) => {
4240
4232
  x[R] = "";
4241
- }), m.value = null, A.value = null, t.wabaTemplates.forEach((R) => R.isSelected = !1);
4233
+ }), g.value = null, A.value = null, t.wabaTemplates.forEach((R) => R.isSelected = !1);
4242
4234
  }, Se = F(() => {
4243
4235
  console.log(_e.value, A.value.buttons);
4244
4236
  let R = _e.value.map((ee) => typeof ee == "string" ? ee : x[ee.index]).join(""), te = "";
@@ -4272,13 +4264,13 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4272
4264
  class: "pi pi-arrow-left",
4273
4265
  onClick: q
4274
4266
  })
4275
- ])) : b("", !0),
4267
+ ])) : v("", !0),
4276
4268
  X.value ? (l(), u("button", du, [
4277
4269
  o("span", {
4278
4270
  class: "pi pi-arrow-right",
4279
4271
  onClick: H
4280
4272
  })
4281
- ])) : b("", !0)
4273
+ ])) : v("", !0)
4282
4274
  ]),
4283
4275
  o("button", { class: "template-selector__button-close" }, [
4284
4276
  o("span", {
@@ -4301,7 +4293,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4301
4293
  class: "template-selector__item-group-icon",
4302
4294
  src: ee.iconUrl,
4303
4295
  alt: ee.title
4304
- }, null, 8, _u)) : b("", !0),
4296
+ }, null, 8, _u)) : v("", !0),
4305
4297
  he(o("input", {
4306
4298
  id: j,
4307
4299
  "onUpdate:modelValue": te[0] || (te[0] = (P) => d.value = P),
@@ -4355,7 +4347,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4355
4347
  type: A.value.type,
4356
4348
  "template-id": A.value.templateId,
4357
4349
  onFileSelected: r
4358
- }, null, 8, ["type", "template-id"])) : b("", !0),
4350
+ }, null, 8, ["type", "template-id"])) : v("", !0),
4359
4351
  o("div", Eu, [
4360
4352
  (l(!0), u(K, null, re(_e.value, (ee, j) => (l(), u(K, { key: j }, [
4361
4353
  typeof ee == "string" ? (l(), u("span", ju, E(ee), 1)) : typeof ee == "object" ? (l(), B(Y0, {
@@ -4365,7 +4357,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4365
4357
  "is-filled": !!x[ee.index],
4366
4358
  onClick: (P) => I.value = ee.index,
4367
4359
  onEdit: Me
4368
- }, null, 8, ["index", "value", "is-filled", "onClick"])) : b("", !0)
4360
+ }, null, 8, ["index", "value", "is-filled", "onClick"])) : v("", !0)
4369
4361
  ], 64))), 128))
4370
4362
  ]),
4371
4363
  te[2] || (te[2] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1)),
@@ -4373,7 +4365,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4373
4365
  key: 1,
4374
4366
  buttons: A.value.buttons,
4375
4367
  onSelectAllVariants: y
4376
- }, null, 8, ["buttons"])) : b("", !0)
4368
+ }, null, 8, ["buttons"])) : v("", !0)
4377
4369
  ])
4378
4370
  ])) : (l(), u("p", Su, " Предпросмотр шаблона ")),
4379
4371
  k.value ? (l(), u("div", Vu, [
@@ -4385,7 +4377,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4385
4377
  buttons: A.value.buttons,
4386
4378
  onSelectAllVariants: y
4387
4379
  }, null, 8, ["buttons"])
4388
- ])) : b("", !0)
4380
+ ])) : v("", !0)
4389
4381
  ], 512),
4390
4382
  o("button", {
4391
4383
  class: "template-selector__button-paste",
@@ -4438,7 +4430,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4438
4430
  t.mode == "hover" && t.state == "active" && (s.value.style.display = "inherit");
4439
4431
  }, A = () => {
4440
4432
  t.mode == "hover" && t.state == "active" && (s.value.style.display = "none");
4441
- }, m = () => {
4433
+ }, g = () => {
4442
4434
  s.value.style.display = "none";
4443
4435
  };
4444
4436
  pe(() => {
@@ -4448,7 +4440,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4448
4440
  r("sendWabaValues", k);
4449
4441
  };
4450
4442
  return (k, y) => (l(), u(K, null, [
4451
- T(n)().isRecording ? b("", !0) : (l(), u("button", {
4443
+ T(n)().isRecording ? v("", !0) : (l(), u("button", {
4452
4444
  key: 0,
4453
4445
  ref_key: "templateButton",
4454
4446
  ref: i,
@@ -4469,7 +4461,7 @@ const $0 = /* @__PURE__ */ O(z0, [["render", B0]]), R0 = { class: "" }, Q0 = {
4469
4461
  "waba-templates": e.wabaTemplates,
4470
4462
  "group-templates": e.groupTemplates,
4471
4463
  "elevated-window": e.elevatedWindow,
4472
- onCloseTemplateWindow: m,
4464
+ onCloseTemplateWindow: g,
4473
4465
  onSendWabaValues: _
4474
4466
  }, null, 8, ["waba-templates", "group-templates", "elevated-window"])
4475
4467
  ], 544)
@@ -16656,46 +16648,46 @@ function pc() {
16656
16648
  };
16657
16649
  },
16658
16650
  get disabled() {
16659
- let m = Array.isArray(this.options.disabledGroups) ? this.options.disabledGroups : [];
16660
- return this.options.displayRecent || (m = ["recent", ...m]), m;
16651
+ let g = Array.isArray(this.options.disabledGroups) ? this.options.disabledGroups : [];
16652
+ return this.options.displayRecent || (g = ["recent", ...g]), g;
16661
16653
  },
16662
16654
  get groups() {
16663
16655
  return on.filter(
16664
- (m) => !this.disabled.includes(m.key)
16656
+ (g) => !this.disabled.includes(g.key)
16665
16657
  );
16666
16658
  },
16667
16659
  get orderedGroupKeys() {
16668
- const m = [
16660
+ const g = [
16669
16661
  ...this.options.groupOrder,
16670
16662
  ...Object.keys(this.options.additionalGroups),
16671
16663
  ...on.map((_) => _.key)
16672
16664
  ];
16673
- return [...new Set(m)].filter((_) => !this.disabled.includes(_));
16665
+ return [...new Set(g)].filter((_) => !this.disabled.includes(_));
16674
16666
  }
16675
16667
  });
16676
16668
  function f() {
16677
16669
  e.options.displayRecent && a();
16678
16670
  }
16679
16671
  async function t() {
16680
- var m;
16672
+ var g;
16681
16673
  let _ = await mc();
16682
- return Array.isArray(_) && _.length ? _ = JSON.parse(((m = _[0]) == null ? void 0 : m.value) || "") : _ = [], _;
16674
+ return Array.isArray(_) && _.length ? _ = JSON.parse(((g = _[0]) == null ? void 0 : g.value) || "") : _ = [], _;
16683
16675
  }
16684
16676
  function a() {
16685
- t().then((m) => {
16686
- e.recent = m, d();
16677
+ t().then((g) => {
16678
+ e.recent = g, d();
16687
16679
  });
16688
16680
  }
16689
- const n = (m) => {
16690
- e.search = m;
16691
- }, i = (m) => {
16692
- e.emoji = m;
16693
- }, s = (m) => {
16694
- e.activeGroup = m;
16695
- }, r = (m = K1) => {
16696
- e.skinTone = m;
16697
- }, c = (m) => {
16698
- e.options = Object.assign({}, e.options, m), f();
16681
+ const n = (g) => {
16682
+ e.search = g;
16683
+ }, i = (g) => {
16684
+ e.emoji = g;
16685
+ }, s = (g) => {
16686
+ e.activeGroup = g;
16687
+ }, r = (g = K1) => {
16688
+ e.skinTone = g;
16689
+ }, c = (g) => {
16690
+ e.options = Object.assign({}, e.options, g), f();
16699
16691
  };
16700
16692
  async function d() {
16701
16693
  (await Ut(Bt, $t)).transaction(Df, "readwrite").objectStore(Df).put({
@@ -16703,13 +16695,13 @@ function pc() {
16703
16695
  value: JSON.stringify(e.recent)
16704
16696
  });
16705
16697
  }
16706
- const A = (m) => {
16698
+ const A = (g) => {
16707
16699
  if (e.options.displayRecent !== !0)
16708
16700
  return;
16709
- const _ = e.recent.findIndex((y) => y.u === m.u);
16701
+ const _ = e.recent.findIndex((y) => y.u === g.u);
16710
16702
  if (_ > 0 && e.recent.splice(_, 1), _ === 0)
16711
16703
  return;
16712
- const k = { u: m.u, n: Cn(m.n) };
16704
+ const k = { u: g.u, n: Cn(g.n) };
16713
16705
  e.recent = [k, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), d();
16714
16706
  };
16715
16707
  return {
@@ -16909,8 +16901,8 @@ var Lc = function(f, t) {
16909
16901
  function Oc(e) {
16910
16902
  var f, t = e.state, a = e.name, n = e.options, i = t.elements.arrow, s = t.modifiersData.popperOffsets, r = Xe(t.placement), c = Ft(r), d = [Te, Re].indexOf(r) >= 0, A = d ? "height" : "width";
16911
16903
  if (!(!i || !s)) {
16912
- var m = Lc(n.padding, t), _ = Qt(i), k = c === "y" ? De : Te, y = c === "y" ? $e : Re, w = t.rects.reference[A] + t.rects.reference[c] - s[c] - t.rects.popper[A], p = s[c] - t.rects.reference[c], C = l1(i), D = C ? c === "y" ? C.clientHeight || 0 : C.clientWidth || 0 : 0, x = w / 2 - p / 2, I = m[k], M = D - _[A] - m[y], g = D / 2 - _[A] / 2 + x, v = Gf(I, g, M), N = c;
16913
- t.modifiersData[a] = (f = {}, f[N] = v, f.centerOffset = v - g, f);
16904
+ var g = Lc(n.padding, t), _ = Qt(i), k = c === "y" ? De : Te, y = c === "y" ? $e : Re, w = t.rects.reference[A] + t.rects.reference[c] - s[c] - t.rects.popper[A], p = s[c] - t.rects.reference[c], C = l1(i), D = C ? c === "y" ? C.clientHeight || 0 : C.clientWidth || 0 : 0, x = w / 2 - p / 2, I = g[k], M = D - _[A] - g[y], m = D / 2 - _[A] / 2 + x, b = Gf(I, m, M), N = c;
16905
+ t.modifiersData[a] = (f = {}, f[N] = b, f.centerOffset = b - m, f);
16914
16906
  }
16915
16907
  }
16916
16908
  function zc(e) {
@@ -16943,17 +16935,17 @@ function $c(e) {
16943
16935
  };
16944
16936
  }
16945
16937
  function An(e) {
16946
- var f, t = e.popper, a = e.popperRect, n = e.placement, i = e.variation, s = e.offsets, r = e.position, c = e.gpuAcceleration, d = e.adaptive, A = e.roundOffsets, m = e.isFixed, _ = A === !0 ? $c(s) : typeof A == "function" ? A(s) : s, k = _.x, y = k === void 0 ? 0 : k, w = _.y, p = w === void 0 ? 0 : w, C = s.hasOwnProperty("x"), D = s.hasOwnProperty("y"), x = Te, I = De, M = window;
16938
+ var f, t = e.popper, a = e.popperRect, n = e.placement, i = e.variation, s = e.offsets, r = e.position, c = e.gpuAcceleration, d = e.adaptive, A = e.roundOffsets, g = e.isFixed, _ = A === !0 ? $c(s) : typeof A == "function" ? A(s) : s, k = _.x, y = k === void 0 ? 0 : k, w = _.y, p = w === void 0 ? 0 : w, C = s.hasOwnProperty("x"), D = s.hasOwnProperty("y"), x = Te, I = De, M = window;
16947
16939
  if (d) {
16948
- var g = l1(t), v = "clientHeight", N = "clientWidth";
16949
- if (g === We(t) && (g = pf(t), ff(g).position !== "static" && r === "absolute" && (v = "scrollHeight", N = "scrollWidth")), g = g, n === De || (n === Te || n === Re) && i === a1) {
16940
+ var m = l1(t), b = "clientHeight", N = "clientWidth";
16941
+ if (m === We(t) && (m = pf(t), ff(m).position !== "static" && r === "absolute" && (b = "scrollHeight", N = "scrollWidth")), m = m, n === De || (n === Te || n === Re) && i === a1) {
16950
16942
  I = $e;
16951
- var U = m && M.visualViewport ? M.visualViewport.height : g[v];
16943
+ var U = g && M.visualViewport ? M.visualViewport.height : m[b];
16952
16944
  p -= U - a.height, p *= c ? 1 : -1;
16953
16945
  }
16954
16946
  if (n === Te || (n === De || n === $e) && i === a1) {
16955
16947
  x = Re;
16956
- var z = m && M.visualViewport ? M.visualViewport.width : g[N];
16948
+ var z = g && M.visualViewport ? M.visualViewport.width : m[N];
16957
16949
  y -= z - a.width, y *= c ? 1 : -1;
16958
16950
  }
16959
16951
  }
@@ -17154,15 +17146,15 @@ function Jn(e) {
17154
17146
  }
17155
17147
  function s1(e, f) {
17156
17148
  f === void 0 && (f = {});
17157
- var t = f, a = t.placement, n = a === void 0 ? e.placement : a, i = t.boundary, s = i === void 0 ? _c : i, r = t.rootBoundary, c = r === void 0 ? Fn : r, d = t.elementContext, A = d === void 0 ? Ff : d, m = t.altBoundary, _ = m === void 0 ? !1 : m, k = t.padding, y = k === void 0 ? 0 : k, w = Wn(typeof y != "number" ? y : Zn(y, o1)), p = A === Ff ? hc : Ff, C = e.rects.popper, D = e.elements[_ ? p : A], x = Jc(Nf(D) ? D : D.contextElement || pf(e.elements.popper), s, c), I = jf(e.elements.reference), M = Jn({
17149
+ var t = f, a = t.placement, n = a === void 0 ? e.placement : a, i = t.boundary, s = i === void 0 ? _c : i, r = t.rootBoundary, c = r === void 0 ? Fn : r, d = t.elementContext, A = d === void 0 ? Ff : d, g = t.altBoundary, _ = g === void 0 ? !1 : g, k = t.padding, y = k === void 0 ? 0 : k, w = Wn(typeof y != "number" ? y : Zn(y, o1)), p = A === Ff ? hc : Ff, C = e.rects.popper, D = e.elements[_ ? p : A], x = Jc(Nf(D) ? D : D.contextElement || pf(e.elements.popper), s, c), I = jf(e.elements.reference), M = Jn({
17158
17150
  reference: I,
17159
17151
  element: C,
17160
17152
  placement: n
17161
- }), g = xt(Object.assign({}, C, M)), v = A === Ff ? g : I, N = {
17162
- top: x.top - v.top + w.top,
17163
- bottom: v.bottom - x.bottom + w.bottom,
17164
- left: x.left - v.left + w.left,
17165
- right: v.right - x.right + w.right
17153
+ }), m = xt(Object.assign({}, C, M)), b = A === Ff ? m : I, N = {
17154
+ top: x.top - b.top + w.top,
17155
+ bottom: b.bottom - x.bottom + w.bottom,
17156
+ left: x.left - b.left + w.left,
17157
+ right: b.right - x.right + w.right
17166
17158
  }, U = e.modifiersData.offset;
17167
17159
  if (A === Ff && U) {
17168
17160
  var z = U[n];
@@ -17175,12 +17167,12 @@ function s1(e, f) {
17175
17167
  }
17176
17168
  function Gc(e, f) {
17177
17169
  f === void 0 && (f = {});
17178
- var t = f, a = t.placement, n = t.boundary, i = t.rootBoundary, s = t.padding, r = t.flipVariations, c = t.allowedAutoPlacements, d = c === void 0 ? Pn : c, A = Sf(a), m = A ? r ? rn : rn.filter(function(y) {
17170
+ var t = f, a = t.placement, n = t.boundary, i = t.rootBoundary, s = t.padding, r = t.flipVariations, c = t.allowedAutoPlacements, d = c === void 0 ? Pn : c, A = Sf(a), g = A ? r ? rn : rn.filter(function(y) {
17179
17171
  return Sf(y) === A;
17180
- }) : o1, _ = m.filter(function(y) {
17172
+ }) : o1, _ = g.filter(function(y) {
17181
17173
  return d.indexOf(y) >= 0;
17182
17174
  });
17183
- _.length === 0 && (_ = m);
17175
+ _.length === 0 && (_ = g);
17184
17176
  var k = _.reduce(function(y, w) {
17185
17177
  return y[w] = s1(e, {
17186
17178
  placement: w,
@@ -17202,24 +17194,24 @@ function Xc(e) {
17202
17194
  function e2(e) {
17203
17195
  var f = e.state, t = e.options, a = e.name;
17204
17196
  if (!f.modifiersData[a]._skip) {
17205
- for (var n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !0 : s, c = t.fallbackPlacements, d = t.padding, A = t.boundary, m = t.rootBoundary, _ = t.altBoundary, k = t.flipVariations, y = k === void 0 ? !0 : k, w = t.allowedAutoPlacements, p = f.options.placement, C = Xe(p), D = C === p, x = c || (D || !y ? [y1(p)] : Xc(p)), I = [p].concat(x).reduce(function(Le, R) {
17197
+ for (var n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !0 : s, c = t.fallbackPlacements, d = t.padding, A = t.boundary, g = t.rootBoundary, _ = t.altBoundary, k = t.flipVariations, y = k === void 0 ? !0 : k, w = t.allowedAutoPlacements, p = f.options.placement, C = Xe(p), D = C === p, x = c || (D || !y ? [y1(p)] : Xc(p)), I = [p].concat(x).reduce(function(Le, R) {
17206
17198
  return Le.concat(Xe(R) === Rt ? Gc(f, {
17207
17199
  placement: R,
17208
17200
  boundary: A,
17209
- rootBoundary: m,
17201
+ rootBoundary: g,
17210
17202
  padding: d,
17211
17203
  flipVariations: y,
17212
17204
  allowedAutoPlacements: w
17213
17205
  }) : R);
17214
- }, []), M = f.rects.reference, g = f.rects.popper, v = /* @__PURE__ */ new Map(), N = !0, U = I[0], z = 0; z < I.length; z++) {
17206
+ }, []), M = f.rects.reference, m = f.rects.popper, b = /* @__PURE__ */ new Map(), N = !0, U = I[0], z = 0; z < I.length; z++) {
17215
17207
  var X = I[z], q = Xe(X), H = Sf(X) === Tf, Q = [De, $e].indexOf(q) >= 0, le = Q ? "width" : "height", J = s1(f, {
17216
17208
  placement: X,
17217
17209
  boundary: A,
17218
- rootBoundary: m,
17210
+ rootBoundary: g,
17219
17211
  altBoundary: _,
17220
17212
  padding: d
17221
17213
  }), ie = Q ? H ? Re : Te : H ? $e : De;
17222
- M[le] > g[le] && (ie = y1(ie));
17214
+ M[le] > m[le] && (ie = y1(ie));
17223
17215
  var Me = y1(ie), _e = [];
17224
17216
  if (i && _e.push(J[q] <= 0), r && _e.push(J[ie] <= 0, J[Me] <= 0), _e.every(function(Le) {
17225
17217
  return Le;
@@ -17227,12 +17219,12 @@ function e2(e) {
17227
17219
  U = X, N = !1;
17228
17220
  break;
17229
17221
  }
17230
- v.set(X, _e);
17222
+ b.set(X, _e);
17231
17223
  }
17232
17224
  if (N)
17233
17225
  for (var Ce = y ? 3 : 1, Pe = function(R) {
17234
17226
  var te = I.find(function(ee) {
17235
- var j = v.get(ee);
17227
+ var j = b.get(ee);
17236
17228
  if (j)
17237
17229
  return j.slice(0, R).every(function(P) {
17238
17230
  return P;
@@ -17279,15 +17271,15 @@ function t2(e) {
17279
17271
  elementContext: "reference"
17280
17272
  }), r = s1(f, {
17281
17273
  altBoundary: !0
17282
- }), c = pn(s, a), d = pn(r, n, i), A = _n(c), m = _n(d);
17274
+ }), c = pn(s, a), d = pn(r, n, i), A = _n(c), g = _n(d);
17283
17275
  f.modifiersData[t] = {
17284
17276
  referenceClippingOffsets: c,
17285
17277
  popperEscapeOffsets: d,
17286
17278
  isReferenceHidden: A,
17287
- hasPopperEscaped: m
17279
+ hasPopperEscaped: g
17288
17280
  }, f.attributes.popper = Object.assign({}, f.attributes.popper, {
17289
17281
  "data-popper-reference-hidden": A,
17290
- "data-popper-escaped": m
17282
+ "data-popper-escaped": g
17291
17283
  });
17292
17284
  }
17293
17285
  var n2 = {
@@ -17310,8 +17302,8 @@ function a2(e, f, t) {
17310
17302
  };
17311
17303
  }
17312
17304
  function s2(e) {
17313
- var f = e.state, t = e.options, a = e.name, n = t.offset, i = n === void 0 ? [0, 0] : n, s = Pn.reduce(function(A, m) {
17314
- return A[m] = a2(m, f.rects, i), A;
17305
+ var f = e.state, t = e.options, a = e.name, n = t.offset, i = n === void 0 ? [0, 0] : n, s = Pn.reduce(function(A, g) {
17306
+ return A[g] = a2(g, f.rects, i), A;
17315
17307
  }, {}), r = s[f.placement], c = r.x, d = r.y;
17316
17308
  f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += c, f.modifiersData.popperOffsets.y += d), f.modifiersData[a] = s;
17317
17309
  }
@@ -17341,12 +17333,12 @@ function u2(e) {
17341
17333
  return e === "x" ? "y" : "x";
17342
17334
  }
17343
17335
  function c2(e) {
17344
- var f = e.state, t = e.options, a = e.name, n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !1 : s, c = t.boundary, d = t.rootBoundary, A = t.altBoundary, m = t.padding, _ = t.tether, k = _ === void 0 ? !0 : _, y = t.tetherOffset, w = y === void 0 ? 0 : y, p = s1(f, {
17336
+ var f = e.state, t = e.options, a = e.name, n = t.mainAxis, i = n === void 0 ? !0 : n, s = t.altAxis, r = s === void 0 ? !1 : s, c = t.boundary, d = t.rootBoundary, A = t.altBoundary, g = t.padding, _ = t.tether, k = _ === void 0 ? !0 : _, y = t.tetherOffset, w = y === void 0 ? 0 : y, p = s1(f, {
17345
17337
  boundary: c,
17346
17338
  rootBoundary: d,
17347
- padding: m,
17339
+ padding: g,
17348
17340
  altBoundary: A
17349
- }), C = Xe(f.placement), D = Sf(f.placement), x = !D, I = Ft(C), M = u2(I), g = f.modifiersData.popperOffsets, v = f.rects.reference, N = f.rects.popper, U = typeof w == "function" ? w(Object.assign({}, f.rects, {
17341
+ }), C = Xe(f.placement), D = Sf(f.placement), x = !D, I = Ft(C), M = u2(I), m = f.modifiersData.popperOffsets, b = f.rects.reference, N = f.rects.popper, U = typeof w == "function" ? w(Object.assign({}, f.rects, {
17350
17342
  placement: f.placement
17351
17343
  })) : w, z = typeof U == "number" ? {
17352
17344
  mainAxis: U,
@@ -17358,17 +17350,17 @@ function c2(e) {
17358
17350
  x: 0,
17359
17351
  y: 0
17360
17352
  };
17361
- if (g) {
17353
+ if (m) {
17362
17354
  if (i) {
17363
- var H, Q = I === "y" ? De : Te, le = I === "y" ? $e : Re, J = I === "y" ? "height" : "width", ie = g[I], Me = ie + p[Q], _e = ie - p[le], Ce = k ? -N[J] / 2 : 0, Pe = D === Tf ? v[J] : N[J], Se = D === Tf ? -N[J] : -v[J], Ve = f.elements.arrow, Le = k && Ve ? Qt(Ve) : {
17355
+ var H, Q = I === "y" ? De : Te, le = I === "y" ? $e : Re, J = I === "y" ? "height" : "width", ie = m[I], Me = ie + p[Q], _e = ie - p[le], Ce = k ? -N[J] / 2 : 0, Pe = D === Tf ? b[J] : N[J], Se = D === Tf ? -N[J] : -b[J], Ve = f.elements.arrow, Le = k && Ve ? Qt(Ve) : {
17364
17356
  width: 0,
17365
17357
  height: 0
17366
- }, R = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Hn(), te = R[Q], ee = R[le], j = Gf(0, v[J], Le[J]), P = x ? v[J] / 2 - Ce - j - te - z.mainAxis : Pe - j - te - z.mainAxis, Z = x ? -v[J] / 2 + Ce + j + ee + z.mainAxis : Se + j + ee + z.mainAxis, ae = f.elements.arrow && l1(f.elements.arrow), ue = ae ? I === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, be = (H = X == null ? void 0 : X[I]) != null ? H : 0, Ie = ie + P - be - ue, Ze = ie + Z - be, wf = Gf(k ? J1(Me, Ie) : Me, ie, k ? bf(_e, Ze) : _e);
17367
- g[I] = wf, q[I] = wf - ie;
17358
+ }, R = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Hn(), te = R[Q], ee = R[le], j = Gf(0, b[J], Le[J]), P = x ? b[J] / 2 - Ce - j - te - z.mainAxis : Pe - j - te - z.mainAxis, Z = x ? -b[J] / 2 + Ce + j + ee + z.mainAxis : Se + j + ee + z.mainAxis, ae = f.elements.arrow && l1(f.elements.arrow), ue = ae ? I === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, be = (H = X == null ? void 0 : X[I]) != null ? H : 0, Ie = ie + P - be - ue, Ze = ie + Z - be, wf = Gf(k ? J1(Me, Ie) : Me, ie, k ? bf(_e, Ze) : _e);
17359
+ m[I] = wf, q[I] = wf - ie;
17368
17360
  }
17369
17361
  if (r) {
17370
- var A1, Uf = I === "x" ? De : Te, st = I === "x" ? $e : Re, tf = g[M], Cf = M === "y" ? "height" : "width", of = tf + p[Uf], Bf = tf - p[st], If = [De, Te].indexOf(C) !== -1, $f = (A1 = X == null ? void 0 : X[M]) != null ? A1 : 0, _f = If ? of : tf - v[Cf] - N[Cf] - $f + z.altAxis, Ke = If ? tf + v[Cf] + N[Cf] - $f - z.altAxis : Bf, V = k && If ? Vc(_f, tf, Ke) : Gf(k ? _f : of, tf, k ? Ke : Bf);
17371
- g[M] = V, q[M] = V - tf;
17362
+ var A1, Uf = I === "x" ? De : Te, st = I === "x" ? $e : Re, tf = m[M], Cf = M === "y" ? "height" : "width", of = tf + p[Uf], Bf = tf - p[st], If = [De, Te].indexOf(C) !== -1, $f = (A1 = X == null ? void 0 : X[M]) != null ? A1 : 0, _f = If ? of : tf - b[Cf] - N[Cf] - $f + z.altAxis, Ke = If ? tf + b[Cf] + N[Cf] - $f - z.altAxis : Bf, V = k && If ? Vc(_f, tf, Ke) : Gf(k ? _f : of, tf, k ? Ke : Bf);
17363
+ m[M] = V, q[M] = V - tf;
17372
17364
  }
17373
17365
  f.modifiersData[a] = q;
17374
17366
  }
@@ -17486,7 +17478,7 @@ function b2(e) {
17486
17478
  },
17487
17479
  attributes: {},
17488
17480
  styles: {}
17489
- }, m = [], _ = !1, k = {
17481
+ }, g = [], _ = !1, k = {
17490
17482
  state: A,
17491
17483
  setOptions: function(C) {
17492
17484
  var D = typeof C == "function" ? C(A.options) : C;
@@ -17514,8 +17506,8 @@ function b2(e) {
17514
17506
  A.reset = !1, I = -1;
17515
17507
  continue;
17516
17508
  }
17517
- var M = A.orderedModifiers[I], g = M.fn, v = M.options, N = v === void 0 ? {} : v, U = M.name;
17518
- typeof g == "function" && (A = g({
17509
+ var M = A.orderedModifiers[I], m = M.fn, b = M.options, N = b === void 0 ? {} : b, U = M.name;
17510
+ typeof m == "function" && (A = m({
17519
17511
  state: A,
17520
17512
  options: N,
17521
17513
  name: U,
@@ -17548,16 +17540,16 @@ function b2(e) {
17548
17540
  name: C,
17549
17541
  instance: k,
17550
17542
  options: x
17551
- }), g = function() {
17543
+ }), m = function() {
17552
17544
  };
17553
- m.push(M || g);
17545
+ g.push(M || m);
17554
17546
  }
17555
17547
  });
17556
17548
  }
17557
17549
  function w() {
17558
- m.forEach(function(p) {
17550
+ g.forEach(function(p) {
17559
17551
  return p();
17560
- }), m = [];
17552
+ }), g = [];
17561
17553
  }
17562
17554
  return k;
17563
17555
  };
@@ -17580,7 +17572,7 @@ function w2(e, f, t, a = []) {
17580
17572
  let d = r[$n];
17581
17573
  if (t !== K1 && Array.isArray(r[_1])) {
17582
17574
  const A = ((c = r[_1]) == null ? void 0 : c.findIndex(
17583
- (m) => m.includes(t)
17575
+ (g) => g.includes(t)
17584
17576
  )) || -1;
17585
17577
  A !== -1 && r[_1] && (d = r[_1][A]);
17586
17578
  }
@@ -17624,7 +17616,7 @@ const C2 = G({
17624
17616
  e.options.groupNames[y] ? c[y] = e.options.groupNames[y] : c[y] = ea(y);
17625
17617
  });
17626
17618
  const A = Xn() ? "is-mac" : "";
17627
- function m(y) {
17619
+ function g(y) {
17628
17620
  f(y);
17629
17621
  }
17630
17622
  function _(y) {
@@ -17653,7 +17645,7 @@ const C2 = G({
17653
17645
  GROUP_NAMES: Bn,
17654
17646
  handleClick: _,
17655
17647
  handleError: k,
17656
- handleMouseEnter: m,
17648
+ handleMouseEnter: g,
17657
17649
  native: e.options.native,
17658
17650
  unicodeToEmoji: M1,
17659
17651
  EMOJI_RESULT_KEY: n1,
@@ -17685,7 +17677,7 @@ function j2(e, f, t, a, n, i) {
17685
17677
  class: S(e.isSticky ? "v3-sticky" : "")
17686
17678
  }, E(e.groupNames[s]), 3)), [
17687
17679
  [qe, e.emojis[s]]
17688
- ]) : b("", !0),
17680
+ ]) : v("", !0),
17689
17681
  he(o("div", x2, [
17690
17682
  (l(!0), u(K, null, re(e.emojis[s], (r) => (l(), u("button", {
17691
17683
  key: r.r,
@@ -17715,16 +17707,16 @@ const Q2 = G({
17715
17707
  () => f.options.staticTexts.placeholder || ""
17716
17708
  ), c = F({
17717
17709
  get: () => f.search,
17718
- set: (m) => t(m)
17710
+ set: (g) => t(g)
17719
17711
  }), d = [
17720
17712
  ...f.groups,
17721
- ...Object.keys(f.options.additionalGroups).map((m) => ({
17722
- key: m,
17723
- title: f.options.groupNames[m] ? f.options.groupNames[m] : ea(m)
17713
+ ...Object.keys(f.options.additionalGroups).map((g) => ({
17714
+ key: g,
17715
+ title: f.options.groupNames[g] ? f.options.groupNames[g] : ea(g)
17724
17716
  }))
17725
17717
  ], A = [];
17726
- return s.forEach((m) => {
17727
- const _ = d.findIndex((k) => k.key === m);
17718
+ return s.forEach((g) => {
17719
+ const _ = d.findIndex((k) => k.key === g);
17728
17720
  _ !== -1 && (A.push(d[_]), d.splice(_, 1));
17729
17721
  }), {
17730
17722
  orderedGroups: A,
@@ -17782,8 +17774,8 @@ function J2(e, f, t, a, n, i) {
17782
17774
  }, null, 8, H2)
17783
17775
  ], 8, q2)
17784
17776
  ], 10, Y2))), 128))
17785
- ])) : b("", !0),
17786
- e.hasGroupIcons && e.hasSearch ? (l(), u("div", W2)) : b("", !0),
17777
+ ])) : v("", !0),
17778
+ e.hasGroupIcons && e.hasSearch ? (l(), u("div", W2)) : v("", !0),
17787
17779
  e.hasSearch ? (l(), u("div", Z2, [
17788
17780
  he(o("input", {
17789
17781
  "onUpdate:modelValue": f[0] || (f[0] = (s) => e.searchValue = s),
@@ -17792,8 +17784,8 @@ function J2(e, f, t, a, n, i) {
17792
17784
  }, null, 8, K2), [
17793
17785
  [Vf, e.searchValue]
17794
17786
  ])
17795
- ])) : b("", !0)
17796
- ])) : b("", !0);
17787
+ ])) : v("", !0)
17788
+ ])) : v("", !0);
17797
17789
  }
17798
17790
  var G2 = /* @__PURE__ */ u1(Q2, [["render", J2]]);
17799
17791
  const X2 = G({
@@ -17811,7 +17803,7 @@ const X2 = G({
17811
17803
  function A() {
17812
17804
  t.value = !t.value;
17813
17805
  }
17814
- function m(_) {
17806
+ function g(_) {
17815
17807
  f(_), d(!1);
17816
17808
  }
17817
17809
  return se(
@@ -17825,7 +17817,7 @@ const X2 = G({
17825
17817
  updateSkinToneState: d,
17826
17818
  skinTone: t,
17827
17819
  stateSkinTone: n,
17828
- selectSkinTone: m,
17820
+ selectSkinTone: g,
17829
17821
  toggleSkinToneState: A,
17830
17822
  EMOJI_RESULT_KEY: n1,
17831
17823
  EMOJI_NAME_KEY: nt,
@@ -17877,7 +17869,7 @@ function ir(e, f, t, a, n, i) {
17877
17869
  onClick: (r) => e.selectSkinTone(s)
17878
17870
  }, null, 10, sr))), 128))
17879
17871
  ], 2)
17880
- ], 64)) : b("", !0)
17872
+ ], 64)) : v("", !0)
17881
17873
  ], 32);
17882
17874
  }
17883
17875
  var or = /* @__PURE__ */ u1(X2, [["render", ir]]);
@@ -17922,7 +17914,7 @@ const lr = G({
17922
17914
  const t = h(), a = h(), n = h(), i = h(!1), s = h(e.text), r = e.type === "input" || e.type === "textarea";
17923
17915
  let c = -1;
17924
17916
  const { state: d } = oe("store"), A = F(() => d.options.colorTheme);
17925
- function m(p) {
17917
+ function g(p) {
17926
17918
  if (r) {
17927
17919
  const C = d.options.mode;
17928
17920
  C === "prepend" ? s.value = p.i + s.value : C === "insert" && c !== -1 ? (s.value = `${s.value.slice(0, c)}${p.i}${s.value.slice(c)}`, c += p.i.length) : s.value += p.i, f("update:text", s.value);
@@ -17965,7 +17957,7 @@ const lr = G({
17965
17957
  }), {
17966
17958
  face: Gn,
17967
17959
  open: i,
17968
- onSelect: m,
17960
+ onSelect: g,
17969
17961
  input: s,
17970
17962
  elem: t,
17971
17963
  updateCursor: _,
@@ -26828,7 +26820,7 @@ const Mr = /* @__PURE__ */ O(vr, [["render", yr]]), wr = {
26828
26820
  setup(e) {
26829
26821
  const f = e, t = h(null), a = h("light"), n = h(null), i = h(!1), s = oe("chatAppId"), { setMessageText: r, getMessage: c } = Qe(s), d = () => document.getElementById(s).attributes["data-theme"].nodeValue.indexOf("dark") != -1 ? "dark" : "light", A = (y) => {
26830
26822
  r(c().text + y.i);
26831
- }, m = () => {
26823
+ }, g = () => {
26832
26824
  f.state === "active" && (i.value = !i.value, i.value && (a.value = d()));
26833
26825
  }, _ = () => {
26834
26826
  i.value = !1;
@@ -26840,12 +26832,12 @@ const Mr = /* @__PURE__ */ O(vr, [["render", yr]]), wr = {
26840
26832
  }), mf(() => {
26841
26833
  document.removeEventListener("click", k);
26842
26834
  }), (y, w) => (l(), u(K, null, [
26843
- T(c)().isRecording ? b("", !0) : (l(), u("button", {
26835
+ T(c)().isRecording ? v("", !0) : (l(), u("button", {
26844
26836
  key: 0,
26845
26837
  ref_key: "emojiButton",
26846
26838
  ref: n,
26847
26839
  class: S(["button", { "button-disabled": e.state == "disabled" }]),
26848
- onClick: m
26840
+ onClick: g
26849
26841
  }, [
26850
26842
  o("span", kr, [
26851
26843
  Y(Mr)
@@ -26911,9 +26903,9 @@ const Mr = /* @__PURE__ */ O(vr, [["render", yr]]), wr = {
26911
26903
  }, null, 8, Er)) : r.prime ? (l(), u("i", {
26912
26904
  key: 2,
26913
26905
  class: S(["pi pi-" + r.prime, "context-menu__icon"])
26914
- }, null, 2)) : b("", !0),
26915
- r.title ? (l(), u("span", jr, E(r.title), 1)) : b("", !0),
26916
- r.description ? (l(), u("span", Sr, E(r.description), 1)) : b("", !0)
26906
+ }, null, 2)) : v("", !0),
26907
+ r.title ? (l(), u("span", jr, E(r.title), 1)) : v("", !0),
26908
+ r.description ? (l(), u("span", Sr, E(r.description), 1)) : v("", !0)
26917
26909
  ], 8, Nr))), 128))
26918
26910
  ])
26919
26911
  ]));
@@ -26962,14 +26954,14 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
26962
26954
  return pe(() => {
26963
26955
  const A = T(s);
26964
26956
  A == null || A.focus();
26965
- }), (A, m) => (l(), B(de, null, {
26957
+ }), (A, g) => (l(), B(de, null, {
26966
26958
  default: W(() => [
26967
26959
  o("div", zr, [
26968
26960
  o("span", Ur, E(T(ye)("component.FeedSearch.SearchLabel")), 1),
26969
26961
  he(o("input", {
26970
26962
  ref_key: "refInput",
26971
26963
  ref: s,
26972
- "onUpdate:modelValue": m[0] || (m[0] = (_) => T(a)().text = _),
26964
+ "onUpdate:modelValue": g[0] || (g[0] = (_) => T(a)().text = _),
26973
26965
  class: "feed-search__input",
26974
26966
  type: "text",
26975
26967
  placeholder: T(ye)("component.FeedSearch.SearchPlaceholder")
@@ -26985,8 +26977,8 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
26985
26977
  key: 0,
26986
26978
  class: "pi pi-refresh",
26987
26979
  style: { "margin-left": "5px", "margin-top": "10px", cursor: "pointer" },
26988
- onClick: m[1] || (m[1] = (_) => n("switch"))
26989
- })) : b("", !0)
26980
+ onClick: g[1] || (g[1] = (_) => n("switch"))
26981
+ })) : v("", !0)
26990
26982
  ])
26991
26983
  ]),
26992
26984
  _: 1
@@ -27040,12 +27032,12 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
27040
27032
  style: { "margin-right": "3px" },
27041
27033
  width: "24",
27042
27034
  height: "24"
27043
- }, null, 8, Zr)) : b("", !0),
27035
+ }, null, 8, Zr)) : v("", !0),
27044
27036
  t.value ? (l(), u("span", {
27045
27037
  key: 1,
27046
27038
  class: S(t.value),
27047
27039
  style: { "margin-right": "3px", "font-size": "20px" }
27048
- }, null, 2)) : b("", !0),
27040
+ }, null, 2)) : v("", !0),
27049
27041
  o("p", null, E(e.object.text), 1)
27050
27042
  ])
27051
27043
  ])
@@ -27088,18 +27080,18 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
27088
27080
  class: "feed-found-objects__items",
27089
27081
  onScroll: c
27090
27082
  }, [
27091
- (l(!0), u(K, null, re(e.objects, (m) => (l(), u("div", {
27092
- key: m.messageId,
27093
- onClick: (_) => r(m)
27083
+ (l(!0), u(K, null, re(e.objects, (g) => (l(), u("div", {
27084
+ key: g.messageId,
27085
+ onClick: (_) => r(g)
27094
27086
  }, [
27095
27087
  Y(Jr, {
27096
- object: m,
27097
- selected: m == i.value
27088
+ object: g,
27089
+ selected: g == i.value
27098
27090
  }, null, 8, ["object", "selected"])
27099
27091
  ], 8, Xr))), 128))
27100
27092
  ], 544)) : e.foundAmount == 0 ? (l(), u("div", ed, [
27101
27093
  o("p", null, E(s.value), 1)
27102
- ])) : b("", !0)
27094
+ ])) : v("", !0)
27103
27095
  ], 64));
27104
27096
  }
27105
27097
  }), $6 = /* @__PURE__ */ O(fd, [["__scopeId", "data-v-2cb2ea71"]]), td = { class: "audio-recorder__container" }, nd = { key: 0 }, ad = {
@@ -27118,7 +27110,7 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
27118
27110
  }
27119
27111
  },
27120
27112
  setup(e) {
27121
- const f = oe("chatAppId"), { getMessage: t, setMessageFile: a, resetMessageFile: n, setRecordingMessage: i } = Qe(f), s = h(), r = h(0), c = h(0), d = h(0), A = h(0), m = F(() => {
27113
+ const f = oe("chatAppId"), { getMessage: t, setMessageFile: a, resetMessageFile: n, setRecordingMessage: i } = Qe(f), s = h(), r = h(0), c = h(0), d = h(0), A = h(0), g = F(() => {
27122
27114
  let N = A.value < 10 ? "0" + A.value : A.value, U = d.value < 10 ? "0" + d.value : d.value, z = c.value < 10 ? "0" + c.value : c.value, X = r.value < 10 ? "00" + r.value : r.value < 100 ? "0" + r.value : r.value;
27123
27115
  return N + ":" + U + ":" + z + ":" + X;
27124
27116
  }), _ = h(""), k = h(!1), y = h(), w = h([]), p = h(), C = h(), D = e, x = async () => {
@@ -27131,7 +27123,7 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
27131
27123
  };
27132
27124
  }
27133
27125
  }, I = () => {
27134
- g(), p.value = void 0;
27126
+ m(), p.value = void 0;
27135
27127
  }, M = () => {
27136
27128
  y.value && (y.value.stop(), y.value.onstop = async () => {
27137
27129
  const N = new File(w.value, "voicemessage.mp3", { type: "audio/*" }), U = URL.createObjectURL(N);
@@ -27153,10 +27145,10 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
27153
27145
  });
27154
27146
  }
27155
27147
  });
27156
- }), g();
27157
- }, g = () => {
27148
+ }), m();
27149
+ }, m = () => {
27158
27150
  clearInterval(s.value), r.value = 0, c.value = 0, d.value = 0, A.value = 0, i(!1), k.value = !1, y.value = void 0, w.value = [];
27159
- }, v = () => {
27151
+ }, b = () => {
27160
27152
  const N = document.getElementById("chat-input-file-line-" + f);
27161
27153
  N && (N.style.display = "none"), n(), C.value = void 0;
27162
27154
  };
@@ -27168,7 +27160,7 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
27168
27160
  ), (N, U) => (l(), u("div", td, [
27169
27161
  _.value === "uploading" ? (l(), u("div", nd, U[0] || (U[0] = [
27170
27162
  o("p", null, "Загрузка файла...", -1)
27171
- ]))) : b("", !0),
27163
+ ]))) : v("", !0),
27172
27164
  k.value && _.value != "uploading" ? (l(), u("div", ad, [
27173
27165
  U[3] || (U[3] = o("span", { class: "audio-recorder__recording-icon pi pi-circle-fill" }, null, -1)),
27174
27166
  o("button", {
@@ -27183,15 +27175,15 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
27183
27175
  }, U[2] || (U[2] = [
27184
27176
  o("div", { class: "audio-recorder__stop" }, null, -1)
27185
27177
  ])),
27186
- o("span", sd, E(m.value), 1)
27187
- ])) : b("", !0),
27178
+ o("span", sd, E(g.value), 1)
27179
+ ])) : v("", !0),
27188
27180
  !k.value && _.value != "uploading" && !T(t)().isRecording ? (l(), u("button", {
27189
27181
  key: 2,
27190
27182
  class: S(["audio-recorder__button", { "audio-recorder__button-disabled": e.state == "disabled" || T(t)().file }]),
27191
27183
  onClick: x
27192
27184
  }, U[4] || (U[4] = [
27193
27185
  o("span", { class: "pi pi-microphone" }, null, -1)
27194
- ]), 2)) : b("", !0),
27186
+ ]), 2)) : v("", !0),
27195
27187
  T(t)().file ? (l(), B(Ne, {
27196
27188
  key: 3,
27197
27189
  to: "#chat-input-file-line-" + T(f)
@@ -27199,9 +27191,9 @@ const zr = { class: "feed-search__container" }, Ur = { style: { "line-height": "
27199
27191
  C.value ? (l(), B(et, {
27200
27192
  key: 0,
27201
27193
  "file-info": C.value,
27202
- onReset: v
27203
- }, null, 8, ["file-info"])) : b("", !0)
27204
- ], 8, ["to"])) : b("", !0)
27194
+ onReset: b
27195
+ }, null, 8, ["file-info"])) : v("", !0)
27196
+ ], 8, ["to"])) : v("", !0)
27205
27197
  ]));
27206
27198
  }
27207
27199
  }), R6 = /* @__PURE__ */ O(id, [["__scopeId", "data-v-7afb97e3"]]);
@@ -27210,7 +27202,7 @@ function c1({ component: e, attrs: f, Modal: t, modalAttrs: a }) {
27210
27202
  const i = document.createElement("div");
27211
27203
  document.body.appendChild(i);
27212
27204
  const s = h({}), r = () => {
27213
- m.unmount(), document.body.removeChild(i);
27205
+ g.unmount(), document.body.removeChild(i);
27214
27206
  }, c = () => {
27215
27207
  r(), n(s.value);
27216
27208
  }, d = (_) => {
@@ -27239,8 +27231,8 @@ function c1({ component: e, attrs: f, Modal: t, modalAttrs: a }) {
27239
27231
  }
27240
27232
  );
27241
27233
  }
27242
- }), m = oa(A);
27243
- m.mount(i);
27234
+ }), g = oa(A);
27235
+ g.mount(i);
27244
27236
  });
27245
27237
  }
27246
27238
  const od = ["data-theme"], ld = {
@@ -27301,7 +27293,7 @@ const od = ["data-theme"], ld = {
27301
27293
  }, Ht = /* @__PURE__ */ O(rd, [["__scopeId", "data-v-4a9f3ae8"]]), Q6 = async (e, f, t) => {
27302
27294
  const a = await c1({
27303
27295
  //в component должен быть встроен emit change(key: value)
27304
- component: import("./SelectUser2-D02tt-tS.js"),
27296
+ component: import("./SelectUser2-CWw4jfdz.js"),
27305
27297
  attrs: {
27306
27298
  title: e,
27307
27299
  users: f
@@ -27373,7 +27365,7 @@ const od = ["data-theme"], ld = {
27373
27365
  }
27374
27366
  }, fa = /* @__PURE__ */ O(gd, [["__scopeId", "data-v-fcb0f158"]]), Y6 = async (e, f, t, a, n, i) => await c1({
27375
27367
  //в component должен быть встроен emit change(key: value)
27376
- component: import("./CreateDialog-PFV1Y-35.js"),
27368
+ component: import("./CreateDialog-kDNVeDuq.js"),
27377
27369
  attrs: {
27378
27370
  title: e,
27379
27371
  name: f,
@@ -27387,7 +27379,7 @@ const od = ["data-theme"], ld = {
27387
27379
  }
27388
27380
  }), md = async (e) => await c1({
27389
27381
  //в component должен быть встроен emit change(key: value)
27390
- component: import("./ModalVideoRecorder-BzyX05tS.js"),
27382
+ component: import("./ModalVideoRecorder-DLy6qjpv.js"),
27391
27383
  attrs: {},
27392
27384
  Modal: fa,
27393
27385
  modalAttrs: {
@@ -27437,7 +27429,7 @@ const od = ["data-theme"], ld = {
27437
27429
  }));
27438
27430
  });
27439
27431
  }
27440
- }, m = () => {
27432
+ }, g = () => {
27441
27433
  i();
27442
27434
  const _ = document.getElementById("chat-input-file-line-" + f);
27443
27435
  _ && (_.style.display = "none"), c.value = void 0;
@@ -27448,18 +27440,18 @@ const od = ["data-theme"], ld = {
27448
27440
  t().file || (c.value = void 0);
27449
27441
  }
27450
27442
  ), (_, k) => (l(), u(K, null, [
27451
- T(t)().isRecording ? b("", !0) : (l(), u("div", pd, [
27443
+ T(t)().isRecording ? v("", !0) : (l(), u("div", pd, [
27452
27444
  r.value != "uploading" ? (l(), u("button", {
27453
27445
  key: 0,
27454
27446
  class: S(["video-recorder__button", { "video-recorder__button-disabled": e.state == "disabled" || T(t)().file }]),
27455
27447
  onClick: A
27456
27448
  }, k[0] || (k[0] = [
27457
27449
  o("span", { class: "pi pi-video" }, null, -1)
27458
- ]), 2)) : b("", !0)
27450
+ ]), 2)) : v("", !0)
27459
27451
  ])),
27460
27452
  r.value === "uploading" ? (l(), u("div", _d, k[1] || (k[1] = [
27461
27453
  o("p", null, "Загрузка файла...", -1)
27462
- ]))) : b("", !0),
27454
+ ]))) : v("", !0),
27463
27455
  T(t)().file ? (l(), B(Ne, {
27464
27456
  key: 2,
27465
27457
  to: "#chat-input-file-line-" + T(f)
@@ -27467,9 +27459,9 @@ const od = ["data-theme"], ld = {
27467
27459
  c.value ? (l(), B(et, {
27468
27460
  key: 0,
27469
27461
  "file-info": c.value,
27470
- onReset: m
27471
- }, null, 8, ["file-info"])) : b("", !0)
27472
- ], 8, ["to"])) : b("", !0)
27462
+ onReset: g
27463
+ }, null, 8, ["file-info"])) : v("", !0)
27464
+ ], 8, ["to"])) : v("", !0)
27473
27465
  ], 64));
27474
27466
  }
27475
27467
  }), q6 = /* @__PURE__ */ O(hd, [["__scopeId", "data-v-d4c5e55f"]]), vd = /* @__PURE__ */ G({
@@ -27524,7 +27516,7 @@ const od = ["data-theme"], ld = {
27524
27516
  }, " / ", 2)
27525
27517
  ]),
27526
27518
  _: 1
27527
- }, 8, ["mode", "disabled", "actions"])) : b("", !0)
27519
+ }, 8, ["mode", "disabled", "actions"])) : v("", !0)
27528
27520
  ]),
27529
27521
  _: 1
27530
27522
  }));
@@ -27602,19 +27594,19 @@ const od = ["data-theme"], ld = {
27602
27594
  },
27603
27595
  emits: ["select-attribute-channel", "phone-call"],
27604
27596
  setup(e, { emit: f }) {
27605
- const t = e, a = f, n = h(null), i = h(null), s = h(null), r = h(null), c = h(!1), d = h(!1), A = h(null), m = h("0px"), _ = h(null), k = h(!1), y = h(null), w = h({}), p = h(0), C = h(!1), D = h(null), x = h(null), I = ["phone", "whatsapp", "telegram", "max", "sms"], M = {
27597
+ const t = e, a = f, n = h(null), i = h(null), s = h(null), r = h(null), c = h(!1), d = h(!1), A = h(null), g = h("0px"), _ = h(null), k = h(!1), y = h(null), w = h({}), p = h(0), C = h(!1), D = h(null), x = h(null), I = ["phone", "whatsapp", "telegram", "max", "sms"], M = {
27606
27598
  phone: Ga,
27607
27599
  whatsapp: ts,
27608
27600
  telegram: is,
27609
27601
  max: cs,
27610
27602
  sms: gs
27611
- }, g = {
27603
+ }, m = {
27612
27604
  phone: hs,
27613
27605
  whatsapp: Ms,
27614
27606
  telegram: ks,
27615
27607
  max: Ns,
27616
27608
  sms: Vs
27617
- }, v = F(
27609
+ }, b = F(
27618
27610
  () => I.map((V) => ({
27619
27611
  type: V,
27620
27612
  component: M[V]
@@ -27664,7 +27656,7 @@ const od = ["data-theme"], ld = {
27664
27656
  (ve) => le(ve.channelId) === V
27665
27657
  );
27666
27658
  return $.length === 1 ? $[0] : null;
27667
- }, Ce = (V) => g[V] || null, Pe = (V) => {
27659
+ }, Ce = (V) => m[V] || null, Pe = (V) => {
27668
27660
  const $ = le(V);
27669
27661
  return Ce($);
27670
27662
  }, Se = (V) => {
@@ -27746,7 +27738,7 @@ const od = ["data-theme"], ld = {
27746
27738
  channelId: V
27747
27739
  }), y.value = s.value, w.value = t.channels.find(($) => $.channelId === V), console.log("TEST selectedChannel.value", w.value), J(V) && t.isNewDialog ? _f() : Ke()), j();
27748
27740
  }, of = () => {
27749
- i.value && (m.value = `${i.value.offsetWidth}px`);
27741
+ i.value && (g.value = `${i.value.offsetWidth}px`);
27750
27742
  }, Bf = (V) => {
27751
27743
  try {
27752
27744
  requestAnimationFrame(() => {
@@ -27815,7 +27807,7 @@ const od = ["data-theme"], ld = {
27815
27807
  ref: i,
27816
27808
  class: "channels-panel"
27817
27809
  }, [
27818
- (l(!0), u(K, null, re(v.value, (fe) => {
27810
+ (l(!0), u(K, null, re(b.value, (fe) => {
27819
27811
  var ke;
27820
27812
  return l(), u("button", {
27821
27813
  key: fe.type,
@@ -27866,9 +27858,9 @@ const od = ["data-theme"], ld = {
27866
27858
  c.value && s.value ? (l(), u("div", {
27867
27859
  key: 0,
27868
27860
  class: "attributes-menu",
27869
- style: Ae({ width: m.value })
27861
+ style: Ae({ width: g.value })
27870
27862
  }, [
27871
- z.value ? (l(), u("div", Id, " Недавний ")) : b("", !0),
27863
+ z.value ? (l(), u("div", Id, " Недавний ")) : v("", !0),
27872
27864
  z.value && ((ve = t.recentAttributeChannels[s.value]) != null && ve.tooltip) ? (l(), B(xe, {
27873
27865
  key: 1,
27874
27866
  text: (lf = t.recentAttributeChannels[s.value]) == null ? void 0 : lf.tooltip,
@@ -27917,8 +27909,8 @@ const od = ["data-theme"], ld = {
27917
27909
  }, [
27918
27910
  (l(), B(Ue(Ce(s.value))))
27919
27911
  ], 2)
27920
- ], 34)) : b("", !0),
27921
- z.value && ((hf = N.value[s.value]) != null && hf.length) && s.value !== "phone" ? (l(), u("div", Nd)) : b("", !0),
27912
+ ], 34)) : v("", !0),
27913
+ z.value && ((hf = N.value[s.value]) != null && hf.length) && s.value !== "phone" ? (l(), u("div", Nd)) : v("", !0),
27922
27914
  (l(!0), u(K, null, re(N.value[s.value], (fe) => (l(), u("div", {
27923
27915
  key: fe.attributeId,
27924
27916
  class: S(["attribute-item", {
@@ -27960,8 +27952,8 @@ const od = ["data-theme"], ld = {
27960
27952
  (l(), B(Ue(Pe(fe.channelId))))
27961
27953
  ], 2)
27962
27954
  ], 8, Od))), 128))
27963
- ], 36)) : b("", !0)
27964
- ], 4)) : b("", !0)
27955
+ ], 36)) : v("", !0)
27956
+ ], 4)) : v("", !0)
27965
27957
  ], 512);
27966
27958
  };
27967
27959
  }
@@ -27990,10 +27982,10 @@ const od = ["data-theme"], ld = {
27990
27982
  },
27991
27983
  emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
27992
27984
  setup(e, { expose: f, emit: t }) {
27993
- const a = oe("chatAppId"), n = oe("extChatAppId"), { getTheme: i } = Fe(a), s = e, r = G1(), c = t, d = h(), A = h(), m = h(!1), _ = (M) => {
27985
+ const a = oe("chatAppId"), n = oe("extChatAppId"), { getTheme: i } = Fe(a), s = e, r = G1(), c = t, d = h(), A = h(), g = h(!1), _ = (M) => {
27994
27986
  x(), c("click", M);
27995
27987
  }, k = () => {
27996
- s.disabled || (s.mode == "click" && !m.value ? D() : s.mode == "click" && m.value && x(), c("buttonClick"));
27988
+ s.disabled || (s.mode == "click" && !g.value ? D() : s.mode == "click" && g.value && x(), c("buttonClick"));
27997
27989
  }, y = () => {
27998
27990
  s.disabled || s.mode == "hover" && D();
27999
27991
  }, w = () => {
@@ -28004,25 +27996,25 @@ const od = ["data-theme"], ld = {
28004
27996
  c("menuMouseLeave"), s.disabled || s.mode == "hover" && x();
28005
27997
  }, D = () => {
28006
27998
  if (A.value && d.value) {
28007
- const M = d.value, g = A.value.getBoundingClientRect();
27999
+ const M = d.value, m = A.value.getBoundingClientRect();
28008
28000
  M.style.display = "inherit";
28009
- const v = d.value.getBoundingClientRect();
28001
+ const b = d.value.getBoundingClientRect();
28010
28002
  M.style.display = "none", ge(() => {
28011
28003
  const N = {
28012
- left: { top: g.top - (v.height - g.height) / 2 - v.top, left: g.left - v.width - v.left },
28013
- right: { top: g.top - (v.height - g.height) / 2 - v.top, left: g.left + g.width - v.left },
28014
- bottom: { top: (g == null ? void 0 : g.bottom) - v.top, left: (g == null ? void 0 : g.left) - (v.width - g.width) / 2 - v.left },
28015
- top: { top: g.top - v.height - v.top, left: (g == null ? void 0 : g.left) - (v.width - g.width) / 2 - v.left },
28016
- "top-right": { top: g.top - v.height, left: g.right - v.width / 2 },
28017
- "bottom-left": { top: (g == null ? void 0 : g.bottom) - v.top + 10, left: g.left - v.width - v.left + 50 }
28004
+ left: { top: m.top - (b.height - m.height) / 2 - b.top, left: m.left - b.width - b.left },
28005
+ right: { top: m.top - (b.height - m.height) / 2 - b.top, left: m.left + m.width - b.left },
28006
+ bottom: { top: (m == null ? void 0 : m.bottom) - b.top, left: (m == null ? void 0 : m.left) - (b.width - m.width) / 2 - b.left },
28007
+ top: { top: m.top - b.height - b.top, left: (m == null ? void 0 : m.left) - (b.width - m.width) / 2 - b.left },
28008
+ "top-right": { top: m.top - b.height, left: m.right - b.width / 2 },
28009
+ "bottom-left": { top: (m == null ? void 0 : m.bottom) - b.top + 10, left: m.left - b.width - b.left + 50 }
28018
28010
  };
28019
- M.style.top = N[s.menuSide].top + "px", M.style.left = N[s.menuSide].left + "px", M.style.opacity = "1", M.style.display = "inherit", m.value = !0;
28011
+ M.style.top = N[s.menuSide].top + "px", M.style.left = N[s.menuSide].left + "px", M.style.opacity = "1", M.style.display = "inherit", g.value = !0;
28020
28012
  });
28021
28013
  }
28022
28014
  }, x = () => {
28023
28015
  if (d.value) {
28024
28016
  const M = d.value;
28025
- M && (M.style.top = "0", M.style.left = "0", M.style.opacity = "0", M.style.display = "none", m.value = !1);
28017
+ M && (M.style.top = "0", M.style.left = "0", M.style.opacity = "0", M.style.display = "none", g.value = !1);
28026
28018
  }
28027
28019
  }, I = (M) => {
28028
28020
  s.mode == "click" && A.value && !A.value.contains(M.target) && x();
@@ -28036,7 +28028,7 @@ const od = ["data-theme"], ld = {
28036
28028
  }), f({
28037
28029
  updatePosition: D,
28038
28030
  hideMenu: x
28039
- }), (M, g) => (l(), u("div", Bd, [
28031
+ }), (M, m) => (l(), u("div", Bd, [
28040
28032
  o("button", {
28041
28033
  id: "container-" + T(r) + T(n),
28042
28034
  ref_key: "actionScope",
@@ -28084,11 +28076,11 @@ const od = ["data-theme"], ld = {
28084
28076
  }, null, 2)
28085
28077
  ]),
28086
28078
  o("div", Fd, [
28087
- e.message.header ? (l(), u("p", Pd, E(e.message.header), 1)) : b("", !0),
28079
+ e.message.header ? (l(), u("p", Pd, E(e.message.header), 1)) : v("", !0),
28088
28080
  o("div", Yd, [
28089
28081
  e.message.isMissedCall ? (l(), u("span", Hd, " Пропущенный аудиозвонок ")) : (l(), u("span", qd, " Аудиозвонок "))
28090
28082
  ]),
28091
- e.message.callDuration ? (l(), u("p", Wd, E(e.message.callDuration), 1)) : b("", !0)
28083
+ e.message.callDuration ? (l(), u("p", Wd, E(e.message.callDuration), 1)) : v("", !0)
28092
28084
  ])
28093
28085
  ], 64));
28094
28086
  }
@@ -28128,7 +28120,7 @@ const od = ["data-theme"], ld = {
28128
28120
  o("div", Jd, [
28129
28121
  o("span", {
28130
28122
  class: "pi pi-times",
28131
- onClick: c[0] || (c[0] = (m) => t("reset"))
28123
+ onClick: c[0] || (c[0] = (g) => t("reset"))
28132
28124
  })
28133
28125
  ])
28134
28126
  ], 2);
@@ -28243,7 +28235,7 @@ const od = ["data-theme"], ld = {
28243
28235
  }
28244
28236
  const A = () => {
28245
28237
  a("action", { messageId: t.message.messageId, type: "views" });
28246
- }, m = () => {
28238
+ }, g = () => {
28247
28239
  }, _ = () => {
28248
28240
  i.value = !0;
28249
28241
  }, k = () => {
@@ -28268,7 +28260,7 @@ const od = ["data-theme"], ld = {
28268
28260
  height: "32",
28269
28261
  width: "32",
28270
28262
  style: Ae({ gridRow: e.message.subText ? "2" : "1" })
28271
- }, null, 12, r3)) : b("", !0),
28263
+ }, null, 12, r3)) : v("", !0),
28272
28264
  e.message.subText && e.isFirstInSeries ? (l(), u("p", d3, [
28273
28265
  Y(xe, {
28274
28266
  text: r.value,
@@ -28280,7 +28272,7 @@ const od = ["data-theme"], ld = {
28280
28272
  ]),
28281
28273
  _: 1
28282
28274
  }, 8, ["text", "position"])
28283
- ])) : b("", !0),
28275
+ ])) : v("", !0),
28284
28276
  o("div", {
28285
28277
  class: S(["file-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
28286
28278
  style: Ae({ gridRow: e.message.subText ? "2" : "1" }),
@@ -28291,7 +28283,7 @@ const od = ["data-theme"], ld = {
28291
28283
  message: e.message.reply,
28292
28284
  class: S(e.message.position),
28293
28285
  onReply: c
28294
- }, null, 8, ["message", "class"])) : b("", !0),
28286
+ }, null, 8, ["message", "class"])) : v("", !0),
28295
28287
  o("a", {
28296
28288
  class: "file-message__link",
28297
28289
  href: e.message.url,
@@ -28309,17 +28301,17 @@ const od = ["data-theme"], ld = {
28309
28301
  onClick: d,
28310
28302
  innerHTML: s.value
28311
28303
  }, null, 8, p3)
28312
- ])) : b("", !0),
28304
+ ])) : v("", !0),
28313
28305
  e.message.linkPreview ? (l(), B(r1, {
28314
28306
  key: 2,
28315
28307
  class: S(e.message.position),
28316
28308
  "link-preview": e.message.linkPreview
28317
- }, null, 8, ["class", "link-preview"])) : b("", !0),
28309
+ }, null, 8, ["class", "link-preview"])) : v("", !0),
28318
28310
  e.message.embed ? (l(), B(d1, {
28319
28311
  key: 3,
28320
28312
  class: S(e.message.position),
28321
28313
  embed: e.message.embed
28322
- }, null, 8, ["class", "embed"])) : b("", !0),
28314
+ }, null, 8, ["class", "embed"])) : v("", !0),
28323
28315
  o("div", _3, [
28324
28316
  e.message.views ? (l(), u("div", {
28325
28317
  key: 0,
@@ -28328,15 +28320,15 @@ const od = ["data-theme"], ld = {
28328
28320
  }, [
28329
28321
  C[3] || (C[3] = o("span", { class: "pi pi-eye" }, null, -1)),
28330
28322
  o("p", null, E(e.message.views), 1)
28331
- ])) : b("", !0),
28323
+ ])) : v("", !0),
28332
28324
  o("span", h3, E(e.message.time), 1),
28333
28325
  w(e.message) === "file-message__right" && T(Lf).includes(e.message.status) ? (l(), u("div", {
28334
28326
  key: 1,
28335
28327
  class: S(["file-message__status", y.value])
28336
28328
  }, [
28337
- e.message.status !== "sent" ? (l(), u("span", v3)) : b("", !0),
28329
+ e.message.status !== "sent" ? (l(), u("span", v3)) : v("", !0),
28338
28330
  C[4] || (C[4] = o("span", { class: "pi pi-check" }, null, -1))
28339
- ], 2)) : b("", !0)
28331
+ ], 2)) : v("", !0)
28340
28332
  ]),
28341
28333
  i.value && e.message.actions ? (l(), u("button", {
28342
28334
  key: 4,
@@ -28344,15 +28336,15 @@ const od = ["data-theme"], ld = {
28344
28336
  onClick: C[0] || (C[0] = (D) => n.value = !n.value)
28345
28337
  }, C[5] || (C[5] = [
28346
28338
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
28347
- ]))) : b("", !0),
28339
+ ]))) : v("", !0),
28348
28340
  Y(de, null, {
28349
28341
  default: W(() => [
28350
28342
  n.value && e.message.actions ? (l(), B(T(Mf), {
28351
28343
  key: 0,
28352
28344
  class: "file-message__context-menu",
28353
28345
  actions: e.message.actions,
28354
- onClick: m
28355
- }, null, 8, ["actions"])) : b("", !0)
28346
+ onClick: g
28347
+ }, null, 8, ["actions"])) : v("", !0)
28356
28348
  ]),
28357
28349
  _: 1
28358
28350
  })
@@ -28394,19 +28386,19 @@ const od = ["data-theme"], ld = {
28394
28386
  },
28395
28387
  emits: ["action", "reply"],
28396
28388
  setup(e, { emit: f }) {
28397
- const t = oe("chatAppId"), { getTheme: a } = Fe(t), n = e, i = f, s = h(!1), r = h(!1), c = F(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), d = h(!1), A = h(!1), m = h("");
28389
+ const t = oe("chatAppId"), { getTheme: a } = Fe(t), n = e, i = f, s = h(!1), r = h(!1), c = F(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), d = h(!1), A = h(!1), g = h("");
28398
28390
  se(
28399
28391
  () => n.message.text,
28400
28392
  () => {
28401
- n.message.text && (m.value = He(n.message.text));
28393
+ n.message.text && (g.value = He(n.message.text));
28402
28394
  },
28403
28395
  { immediate: !0 }
28404
28396
  );
28405
- const _ = (g) => {
28406
- i("reply", g);
28397
+ const _ = (m) => {
28398
+ i("reply", m);
28407
28399
  };
28408
- function k(g) {
28409
- g.preventDefault(), g.target.href && window.open(g.target.href, "_blank");
28400
+ function k(m) {
28401
+ m.preventDefault(), m.target.href && window.open(m.target.href, "_blank");
28410
28402
  }
28411
28403
  const y = () => {
28412
28404
  i("action", { messageId: n.message.messageId, type: "views" });
@@ -28416,11 +28408,11 @@ const od = ["data-theme"], ld = {
28416
28408
  }, C = () => {
28417
28409
  d.value = !1, r.value = !1;
28418
28410
  }, D = F(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"), x = F(() => Of(n.message.status));
28419
- function I(g) {
28420
- return g.position === "left" ? "image-message__left" : "image-message__right";
28411
+ function I(m) {
28412
+ return m.position === "left" ? "image-message__left" : "image-message__right";
28421
28413
  }
28422
28414
  const M = () => s.value = !1;
28423
- return (g, v) => (l(), u("div", {
28415
+ return (m, b) => (l(), u("div", {
28424
28416
  class: S(["image-message", [
28425
28417
  I(e.message),
28426
28418
  e.applyStyle(e.message)
@@ -28435,7 +28427,7 @@ const od = ["data-theme"], ld = {
28435
28427
  src: e.message.avatar,
28436
28428
  height: "32",
28437
28429
  width: "32"
28438
- }, null, 8, w3)) : b("", !0),
28430
+ }, null, 8, w3)) : v("", !0),
28439
28431
  e.message.subText && e.isFirstInSeries ? (l(), u("p", C3, [
28440
28432
  Y(xe, {
28441
28433
  text: c.value,
@@ -28447,7 +28439,7 @@ const od = ["data-theme"], ld = {
28447
28439
  ]),
28448
28440
  _: 1
28449
28441
  }, 8, ["text", "position"])
28450
- ])) : b("", !0),
28442
+ ])) : v("", !0),
28451
28443
  o("div", {
28452
28444
  class: S(["image-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }])
28453
28445
  }, [
@@ -28457,12 +28449,12 @@ const od = ["data-theme"], ld = {
28457
28449
  class: S(e.message.position),
28458
28450
  message: e.message.reply,
28459
28451
  onReply: _
28460
- }, null, 8, ["class", "message"])) : b("", !0),
28452
+ }, null, 8, ["class", "message"])) : v("", !0),
28461
28453
  o("div", {
28462
28454
  class: "image-message__preview-button",
28463
- onClick: v[0] || (v[0] = (N) => s.value = !0),
28455
+ onClick: b[0] || (b[0] = (N) => s.value = !0),
28464
28456
  onMouseenter: p,
28465
- onMouseleave: v[1] || (v[1] = (N) => A.value = !A.value)
28457
+ onMouseleave: b[1] || (b[1] = (N) => A.value = !A.value)
28466
28458
  }, [
28467
28459
  o("img", {
28468
28460
  class: "image-message__preview-image",
@@ -28478,18 +28470,18 @@ const od = ["data-theme"], ld = {
28478
28470
  class: "image-message__views",
28479
28471
  onClick: e1(y, ["stop"])
28480
28472
  }, [
28481
- v[3] || (v[3] = o("span", { class: "pi pi-eye" }, null, -1)),
28473
+ b[3] || (b[3] = o("span", { class: "pi pi-eye" }, null, -1)),
28482
28474
  o("p", null, E(e.message.views), 1)
28483
- ])) : b("", !0),
28475
+ ])) : v("", !0),
28484
28476
  o("span", x3, E(e.message.time), 1),
28485
28477
  I(e.message) === "image-message__right" && T(Lf).includes(e.message.status) ? (l(), u("div", {
28486
28478
  key: 1,
28487
28479
  class: S(["image-message__status", x.value])
28488
28480
  }, [
28489
- e.message.status !== "sent" ? (l(), u("span", D3)) : b("", !0),
28490
- v[4] || (v[4] = o("span", { class: "pi pi-check" }, null, -1))
28491
- ], 2)) : b("", !0)
28492
- ])) : b("", !0)
28481
+ e.message.status !== "sent" ? (l(), u("span", D3)) : v("", !0),
28482
+ b[4] || (b[4] = o("span", { class: "pi pi-check" }, null, -1))
28483
+ ], 2)) : v("", !0)
28484
+ ])) : v("", !0)
28493
28485
  ]),
28494
28486
  _: 1
28495
28487
  }),
@@ -28502,9 +28494,9 @@ const od = ["data-theme"], ld = {
28502
28494
  download: "",
28503
28495
  target: "_blank",
28504
28496
  onClick: e1(() => "//Предотвращаем всплытие события клика", ["stop"])
28505
- }, v[5] || (v[5] = [
28497
+ }, b[5] || (b[5] = [
28506
28498
  o("span", { class: "pi pi-download" }, null, -1)
28507
- ]), 8, T3)) : b("", !0)
28499
+ ]), 8, T3)) : v("", !0)
28508
28500
  ]),
28509
28501
  _: 1
28510
28502
  })
@@ -28514,10 +28506,10 @@ const od = ["data-theme"], ld = {
28514
28506
  d.value && e.message.actions ? (l(), u("button", {
28515
28507
  key: 0,
28516
28508
  class: "image-message__menu-button",
28517
- onClick: v[2] || (v[2] = (N) => r.value = !r.value)
28518
- }, v[6] || (v[6] = [
28509
+ onClick: b[2] || (b[2] = (N) => r.value = !r.value)
28510
+ }, b[6] || (b[6] = [
28519
28511
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
28520
- ]))) : b("", !0)
28512
+ ]))) : v("", !0)
28521
28513
  ]),
28522
28514
  _: 1
28523
28515
  }),
@@ -28528,26 +28520,26 @@ const od = ["data-theme"], ld = {
28528
28520
  class: "image-message__context-menu",
28529
28521
  actions: e.message.actions,
28530
28522
  onClick: w
28531
- }, null, 8, ["actions"])) : b("", !0)
28523
+ }, null, 8, ["actions"])) : v("", !0)
28532
28524
  ]),
28533
28525
  _: 1
28534
28526
  }),
28535
28527
  e.message.text ? (l(), u("div", N3, [
28536
28528
  o("p", {
28537
28529
  onClick: k,
28538
- innerHTML: m.value
28530
+ innerHTML: g.value
28539
28531
  }, null, 8, E3)
28540
- ])) : b("", !0),
28532
+ ])) : v("", !0),
28541
28533
  e.message.linkPreview ? (l(), B(r1, {
28542
28534
  key: 2,
28543
28535
  class: S(["image-message__link-preview", e.message.position]),
28544
28536
  "link-preview": e.message.linkPreview
28545
- }, null, 8, ["class", "link-preview"])) : b("", !0),
28537
+ }, null, 8, ["class", "link-preview"])) : v("", !0),
28546
28538
  e.message.embed ? (l(), B(d1, {
28547
28539
  key: 3,
28548
28540
  class: S(e.message.position),
28549
28541
  embed: e.message.embed
28550
- }, null, 8, ["class", "embed"])) : b("", !0)
28542
+ }, null, 8, ["class", "embed"])) : v("", !0)
28551
28543
  ], 2),
28552
28544
  (l(), B(Ne, { to: "body" }, [
28553
28545
  Y(de, { name: "modal-fade" }, {
@@ -28565,7 +28557,7 @@ const od = ["data-theme"], ld = {
28565
28557
  }, null, 8, j3)
28566
28558
  ]),
28567
28559
  _: 1
28568
- }, 8, ["data-theme"])) : b("", !0)
28560
+ }, 8, ["data-theme"])) : v("", !0)
28569
28561
  ]),
28570
28562
  _: 1
28571
28563
  })
@@ -28620,12 +28612,12 @@ const od = ["data-theme"], ld = {
28620
28612
  }
28621
28613
  const A = () => {
28622
28614
  i.value = !0;
28623
- }, m = () => {
28615
+ }, g = () => {
28624
28616
  i.value = !1, n.value = !1;
28625
28617
  }, _ = F(() => Of(t.message.status)), k = (p) => {
28626
- m(), a("action", { messageId: t.message.messageId, type: "menu", ...p });
28618
+ g(), a("action", { messageId: t.message.messageId, type: "menu", ...p });
28627
28619
  }, y = () => {
28628
- m(), a("action", { messageId: t.message.messageId, type: "views" });
28620
+ g(), a("action", { messageId: t.message.messageId, type: "views" });
28629
28621
  };
28630
28622
  function w(p) {
28631
28623
  return p.position === "left" ? "text-message__left" : "text-message__right";
@@ -28637,7 +28629,7 @@ const od = ["data-theme"], ld = {
28637
28629
  ]]),
28638
28630
  messageId: e.message.messageId,
28639
28631
  style: Ae(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
28640
- onMouseleave: m
28632
+ onMouseleave: g
28641
28633
  }, [
28642
28634
  e.message.avatar && e.isFirstInSeries ? (l(), u("img", {
28643
28635
  key: 0,
@@ -28646,7 +28638,7 @@ const od = ["data-theme"], ld = {
28646
28638
  height: "32",
28647
28639
  width: "32",
28648
28640
  style: Ae({ gridRow: e.message.subText && e.isFirstInSeries ? "2" : "1" })
28649
- }, null, 12, O3)) : b("", !0),
28641
+ }, null, 12, O3)) : v("", !0),
28650
28642
  e.message.subText && e.isFirstInSeries ? (l(), u("p", z3, [
28651
28643
  Y(xe, {
28652
28644
  text: r.value,
@@ -28658,7 +28650,7 @@ const od = ["data-theme"], ld = {
28658
28650
  ]),
28659
28651
  _: 1
28660
28652
  }, 8, ["text", "position"])
28661
- ])) : b("", !0),
28653
+ ])) : v("", !0),
28662
28654
  o("div", {
28663
28655
  class: S(["text-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
28664
28656
  onMouseenter: A
@@ -28668,7 +28660,7 @@ const od = ["data-theme"], ld = {
28668
28660
  class: S(e.message.position),
28669
28661
  message: e.message.reply,
28670
28662
  onReply: c
28671
- }, null, 8, ["class", "message"])) : b("", !0),
28663
+ }, null, 8, ["class", "message"])) : v("", !0),
28672
28664
  o("p", {
28673
28665
  class: "text-message__text",
28674
28666
  onClick: d,
@@ -28678,12 +28670,12 @@ const od = ["data-theme"], ld = {
28678
28670
  key: 1,
28679
28671
  class: S(e.message.position),
28680
28672
  "link-preview": e.message.linkPreview
28681
- }, null, 8, ["class", "link-preview"])) : b("", !0),
28673
+ }, null, 8, ["class", "link-preview"])) : v("", !0),
28682
28674
  e.message.embed ? (l(), B(d1, {
28683
28675
  key: 2,
28684
28676
  class: S(e.message.position),
28685
28677
  embed: e.message.embed
28686
- }, null, 8, ["class", "embed"])) : b("", !0),
28678
+ }, null, 8, ["class", "embed"])) : v("", !0),
28687
28679
  o("div", B3, [
28688
28680
  e.message.views ? (l(), u("div", {
28689
28681
  key: 0,
@@ -28692,15 +28684,15 @@ const od = ["data-theme"], ld = {
28692
28684
  }, [
28693
28685
  C[1] || (C[1] = o("span", { class: "pi pi-eye" }, null, -1)),
28694
28686
  o("p", null, E(e.message.views), 1)
28695
- ])) : b("", !0),
28696
- e.message.time ? (l(), u("span", $3, E(e.message.time), 1)) : b("", !0),
28687
+ ])) : v("", !0),
28688
+ e.message.time ? (l(), u("span", $3, E(e.message.time), 1)) : v("", !0),
28697
28689
  w(e.message) === "text-message__right" && T(Lf).includes(e.message.status) ? (l(), u("div", {
28698
28690
  key: 2,
28699
28691
  class: S(["text-message__status", _.value])
28700
28692
  }, [
28701
- e.message.status !== "sent" ? (l(), u("span", R3)) : b("", !0),
28693
+ e.message.status !== "sent" ? (l(), u("span", R3)) : v("", !0),
28702
28694
  C[2] || (C[2] = o("span", { class: "pi pi-check" }, null, -1))
28703
- ], 2)) : b("", !0)
28695
+ ], 2)) : v("", !0)
28704
28696
  ]),
28705
28697
  i.value && e.message.actions ? (l(), u("button", {
28706
28698
  key: 3,
@@ -28708,7 +28700,7 @@ const od = ["data-theme"], ld = {
28708
28700
  onClick: C[0] || (C[0] = (D) => n.value = !n.value)
28709
28701
  }, C[3] || (C[3] = [
28710
28702
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
28711
- ]))) : b("", !0),
28703
+ ]))) : v("", !0),
28712
28704
  Y(de, null, {
28713
28705
  default: W(() => [
28714
28706
  n.value && e.message.actions ? (l(), B(T(Mf), {
@@ -28716,7 +28708,7 @@ const od = ["data-theme"], ld = {
28716
28708
  class: "text-message__context-menu",
28717
28709
  actions: e.message.actions,
28718
28710
  onClick: k
28719
- }, null, 8, ["actions"])) : b("", !0)
28711
+ }, null, 8, ["actions"])) : v("", !0)
28720
28712
  ]),
28721
28713
  _: 1
28722
28714
  })
@@ -28783,7 +28775,7 @@ const od = ["data-theme"], ld = {
28783
28775
  for (let Q of i.value)
28784
28776
  Q.selected = !1;
28785
28777
  i.value[H].selected = !0, c.value && (c.value.playbackRate = i.value[H].speed);
28786
- }, r = f, c = h(), d = h(!1), A = h(0), m = h(0), _ = F(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), k = h(!1), y = h(!1), w = h(!1), p = F(() => n.message.text ? He(n.message.text) : ""), C = (H) => {
28778
+ }, r = f, c = h(), d = h(!1), A = h(0), g = h(0), _ = F(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), k = h(!1), y = h(!1), w = h(!1), p = F(() => n.message.text ? He(n.message.text) : ""), C = (H) => {
28787
28779
  r("reply", H);
28788
28780
  };
28789
28781
  function D(H) {
@@ -28795,19 +28787,19 @@ const od = ["data-theme"], ld = {
28795
28787
  y.value = !1, k.value = !1;
28796
28788
  }, M = () => {
28797
28789
  r("action", { messageId: n.message.messageId, type: "views" });
28798
- }, g = () => {
28799
- }, v = F(() => Of(n.message.status));
28790
+ }, m = () => {
28791
+ }, b = F(() => Of(n.message.status));
28800
28792
  function N() {
28801
28793
  c.value && (d.value ? c.value.pause() : c.value.play(), d.value = !d.value);
28802
28794
  }
28803
28795
  const U = (H) => {
28804
28796
  const Q = Math.floor(H / 60), le = Math.floor(H % 60);
28805
28797
  return `${Q.toString().padStart(2, "0")}:${le.toString().padStart(2, "0")}`;
28806
- }, z = F(() => c.value ? U(m.value) : "0:00");
28798
+ }, z = F(() => c.value ? U(g.value) : "0:00");
28807
28799
  se(
28808
- () => m.value,
28800
+ () => g.value,
28809
28801
  () => {
28810
- c.value && (c.value.duration != 1 / 0 && !Number.isNaN(c.value.duration) && (c.value.currentTime = m.value), m.value == A.value && (d.value = !1));
28802
+ c.value && (c.value.duration != 1 / 0 && !Number.isNaN(c.value.duration) && (c.value.currentTime = g.value), g.value == A.value && (d.value = !1));
28811
28803
  }
28812
28804
  );
28813
28805
  const X = F(() => c.value ? U(A.value) : "0:00");
@@ -28820,7 +28812,7 @@ const od = ["data-theme"], ld = {
28820
28812
  c.value && (c.value.currentTime = 0, A.value = c.value.duration);
28821
28813
  }, { once: !0 })), A.value = c.value != null ? c.value.duration : 0;
28822
28814
  }), c.value.addEventListener("timeupdate", () => {
28823
- m.value = c.value != null ? c.value.currentTime : 0;
28815
+ g.value = c.value != null ? c.value.currentTime : 0;
28824
28816
  }));
28825
28817
  }), (H, Q) => {
28826
28818
  var le;
@@ -28840,7 +28832,7 @@ const od = ["data-theme"], ld = {
28840
28832
  height: "32",
28841
28833
  width: "32",
28842
28834
  style: Ae({ gridRow: e.message.subText ? "2" : "1" })
28843
- }, null, 12, Y3)) : b("", !0),
28835
+ }, null, 12, Y3)) : v("", !0),
28844
28836
  e.message.subText && e.isFirstInSeries ? (l(), u("p", q3, [
28845
28837
  Y(xe, {
28846
28838
  text: _.value,
@@ -28852,7 +28844,7 @@ const od = ["data-theme"], ld = {
28852
28844
  ]),
28853
28845
  _: 1
28854
28846
  }, 8, ["text", "position"])
28855
- ])) : b("", !0),
28847
+ ])) : v("", !0),
28856
28848
  o("div", {
28857
28849
  class: S(["audio-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
28858
28850
  onMouseenter: x
@@ -28863,7 +28855,7 @@ const od = ["data-theme"], ld = {
28863
28855
  message: e.message.reply,
28864
28856
  class: S(e.message.position),
28865
28857
  onReply: C
28866
- }, null, 8, ["message", "class"])) : b("", !0),
28858
+ }, null, 8, ["message", "class"])) : v("", !0),
28867
28859
  o("div", H3, [
28868
28860
  o("audio", {
28869
28861
  ref_key: "player",
@@ -28888,14 +28880,14 @@ const od = ["data-theme"], ld = {
28888
28880
  [qe, d.value]
28889
28881
  ]),
28890
28882
  he(o("input", {
28891
- "onUpdate:modelValue": Q[0] || (Q[0] = (J) => m.value = J),
28883
+ "onUpdate:modelValue": Q[0] || (Q[0] = (J) => g.value = J),
28892
28884
  class: "audio-message__progress-bar-container",
28893
28885
  type: "range",
28894
28886
  min: 0,
28895
28887
  max: A.value,
28896
28888
  step: "0.1"
28897
28889
  }, null, 8, Z3), [
28898
- [Vf, m.value]
28890
+ [Vf, g.value]
28899
28891
  ]),
28900
28892
  o("div", K3, [
28901
28893
  o("p", J3, E(`${z.value} / ${X.value}`), 1),
@@ -28921,23 +28913,23 @@ const od = ["data-theme"], ld = {
28921
28913
  o("p", {
28922
28914
  onClick: Q[1] || (Q[1] = (J) => w.value = !w.value)
28923
28915
  }, E(e.message.transcript.text), 1)
28924
- ])) : b("", !0),
28916
+ ])) : v("", !0),
28925
28917
  e.message.text ? (l(), u("div", t4, [
28926
28918
  o("p", {
28927
28919
  onClick: D,
28928
28920
  innerHTML: p.value
28929
28921
  }, null, 8, n4)
28930
- ])) : b("", !0),
28922
+ ])) : v("", !0),
28931
28923
  e.message.linkPreview ? (l(), B(r1, {
28932
28924
  key: 3,
28933
28925
  class: S(["audio-message__link-preview", e.message.position]),
28934
28926
  "link-preview": e.message.linkPreview
28935
- }, null, 8, ["class", "link-preview"])) : b("", !0),
28927
+ }, null, 8, ["class", "link-preview"])) : v("", !0),
28936
28928
  e.message.embed ? (l(), B(d1, {
28937
28929
  key: 4,
28938
28930
  class: S(e.message.position),
28939
28931
  embed: e.message.embed
28940
- }, null, 8, ["class", "embed"])) : b("", !0),
28932
+ }, null, 8, ["class", "embed"])) : v("", !0),
28941
28933
  o("div", a4, [
28942
28934
  e.message.views ? (l(), u("div", {
28943
28935
  key: 0,
@@ -28946,15 +28938,15 @@ const od = ["data-theme"], ld = {
28946
28938
  }, [
28947
28939
  Q[7] || (Q[7] = o("span", { class: "pi pi-eye" }, null, -1)),
28948
28940
  o("p", null, E(e.message.views), 1)
28949
- ])) : b("", !0),
28941
+ ])) : v("", !0),
28950
28942
  o("span", s4, E(e.message.time), 1),
28951
28943
  q(e.message) === "audio-message__right" && T(Lf).includes(e.message.status) ? (l(), u("div", {
28952
28944
  key: 1,
28953
- class: S(["audio-message__status", v.value])
28945
+ class: S(["audio-message__status", b.value])
28954
28946
  }, [
28955
- e.message.status !== "sent" ? (l(), u("span", i4)) : b("", !0),
28947
+ e.message.status !== "sent" ? (l(), u("span", i4)) : v("", !0),
28956
28948
  Q[8] || (Q[8] = o("span", { class: "pi pi-check" }, null, -1))
28957
- ], 2)) : b("", !0)
28949
+ ], 2)) : v("", !0)
28958
28950
  ]),
28959
28951
  y.value && e.message.actions ? (l(), u("button", {
28960
28952
  key: 5,
@@ -28962,15 +28954,15 @@ const od = ["data-theme"], ld = {
28962
28954
  onClick: Q[2] || (Q[2] = (J) => k.value = !k.value)
28963
28955
  }, Q[9] || (Q[9] = [
28964
28956
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
28965
- ]))) : b("", !0),
28957
+ ]))) : v("", !0),
28966
28958
  Y(de, null, {
28967
28959
  default: W(() => [
28968
28960
  k.value && e.message.actions ? (l(), B(T(Mf), {
28969
28961
  key: 0,
28970
28962
  class: "audio-message__context-menu",
28971
28963
  actions: e.message.actions,
28972
- onClick: g
28973
- }, null, 8, ["actions"])) : b("", !0)
28964
+ onClick: m
28965
+ }, null, 8, ["actions"])) : v("", !0)
28974
28966
  ]),
28975
28967
  _: 1
28976
28968
  }),
@@ -28995,7 +28987,7 @@ const od = ["data-theme"], ld = {
28995
28987
  ])),
28996
28988
  o("p", u4, E((J = e.message.transcript) == null ? void 0 : J.text), 1)
28997
28989
  ])
28998
- ], 8, o4)) : b("", !0)
28990
+ ], 8, o4)) : v("", !0)
28999
28991
  ];
29000
28992
  }),
29001
28993
  _: 1
@@ -29062,7 +29054,7 @@ const od = ["data-theme"], ld = {
29062
29054
  function r(U) {
29063
29055
  return U.position === "left" ? "video-message__left" : "video-message__right";
29064
29056
  }
29065
- const c = h(), d = h(), A = F(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), m = h(!1), _ = h(!1), k = h(!1), y = h(!1), w = h("");
29057
+ const c = h(), d = h(), A = F(() => n.subtextTooltipData && n.subtextTooltipData[n.message.messageId] ? n.subtextTooltipData[n.message.messageId] : n.message.subText || ""), g = h(!1), _ = h(!1), k = h(!1), y = h(!1), w = h("");
29066
29058
  se(
29067
29059
  () => n.message.text,
29068
29060
  () => {
@@ -29080,13 +29072,13 @@ const od = ["data-theme"], ld = {
29080
29072
  k.value = !0, y.value = !0;
29081
29073
  }, I = () => {
29082
29074
  k.value = !1, _.value = !1;
29083
- }, M = F(() => Of(n.message.status)), g = () => {
29075
+ }, M = F(() => Of(n.message.status)), m = () => {
29084
29076
  d.value && (d.value.currentTime = 0, d.value.play());
29085
29077
  };
29086
29078
  se([c, d], ([U, z]) => {
29087
29079
  U ? z && (z.pause(), z.currentTime = 0) : z && (z.play(), z.currentTime = 0);
29088
29080
  });
29089
- const v = F(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"), N = () => m.value = !1;
29081
+ const b = F(() => n.message.reply && n.message.text ? "0" : n.message.text ? "8px 8px 0 0" : n.message.reply ? "0 0 8px 8px" : "8px"), N = () => g.value = !1;
29090
29082
  return (U, z) => (l(), u(K, null, [
29091
29083
  o("div", {
29092
29084
  class: S(["video-message", [
@@ -29103,7 +29095,7 @@ const od = ["data-theme"], ld = {
29103
29095
  src: e.message.avatar,
29104
29096
  height: "32",
29105
29097
  width: "32"
29106
- }, null, 8, _4)) : b("", !0),
29098
+ }, null, 8, _4)) : v("", !0),
29107
29099
  e.message.subText && e.isFirstInSeries ? (l(), u("p", h4, [
29108
29100
  Y(xe, {
29109
29101
  text: A.value,
@@ -29115,7 +29107,7 @@ const od = ["data-theme"], ld = {
29115
29107
  ]),
29116
29108
  _: 1
29117
29109
  }, 8, ["text", "position"])
29118
- ])) : b("", !0),
29110
+ ])) : v("", !0),
29119
29111
  o("div", {
29120
29112
  class: S(["video-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }])
29121
29113
  }, [
@@ -29125,10 +29117,10 @@ const od = ["data-theme"], ld = {
29125
29117
  class: S(e.message.position),
29126
29118
  message: e.message.reply,
29127
29119
  onReply: s
29128
- }, null, 8, ["class", "message"])) : b("", !0),
29120
+ }, null, 8, ["class", "message"])) : v("", !0),
29129
29121
  o("div", {
29130
29122
  class: "video-message__preview-button",
29131
- onClick: z[0] || (z[0] = (X) => m.value = !0),
29123
+ onClick: z[0] || (z[0] = (X) => g.value = !0),
29132
29124
  onMouseenter: x,
29133
29125
  onMouseleave: z[1] || (z[1] = (X) => y.value = !y.value)
29134
29126
  }, [
@@ -29136,11 +29128,11 @@ const od = ["data-theme"], ld = {
29136
29128
  ref_key: "previewPlayer",
29137
29129
  ref: d,
29138
29130
  class: "video-message__video",
29139
- style: Ae({ borderRadius: v.value }),
29131
+ style: Ae({ borderRadius: b.value }),
29140
29132
  src: e.message.url,
29141
29133
  muted: !0,
29142
29134
  autoplay: "",
29143
- onEnded: g
29135
+ onEnded: m
29144
29136
  }, null, 44, v4),
29145
29137
  Y(de, { name: "modal-fade" }, {
29146
29138
  default: W(() => [
@@ -29152,16 +29144,16 @@ const od = ["data-theme"], ld = {
29152
29144
  }, [
29153
29145
  z[3] || (z[3] = o("span", { class: "pi pi-eye" }, null, -1)),
29154
29146
  o("p", null, E(e.message.views), 1)
29155
- ])) : b("", !0),
29147
+ ])) : v("", !0),
29156
29148
  o("span", y4, E(e.message.time), 1),
29157
29149
  r(e.message) === "video-message__right" && T(Lf).includes(e.message.status) ? (l(), u("div", {
29158
29150
  key: 1,
29159
29151
  class: S(["video-message__status", M.value])
29160
29152
  }, [
29161
- e.message.status !== "sent" ? (l(), u("span", M4)) : b("", !0),
29153
+ e.message.status !== "sent" ? (l(), u("span", M4)) : v("", !0),
29162
29154
  z[4] || (z[4] = o("span", { class: "pi pi-check" }, null, -1))
29163
- ], 2)) : b("", !0)
29164
- ])) : b("", !0)
29155
+ ], 2)) : v("", !0)
29156
+ ])) : v("", !0)
29165
29157
  ]),
29166
29158
  _: 1
29167
29159
  }),
@@ -29176,7 +29168,7 @@ const od = ["data-theme"], ld = {
29176
29168
  onClick: e1(() => "//Предотвращаем всплытие события клика", ["stop"])
29177
29169
  }, z[5] || (z[5] = [
29178
29170
  o("span", { class: "pi pi-download" }, null, -1)
29179
- ]), 8, w4)) : b("", !0)
29171
+ ]), 8, w4)) : v("", !0)
29180
29172
  ]),
29181
29173
  _: 1
29182
29174
  })
@@ -29189,7 +29181,7 @@ const od = ["data-theme"], ld = {
29189
29181
  onClick: z[2] || (z[2] = (X) => _.value = !_.value)
29190
29182
  }, z[6] || (z[6] = [
29191
29183
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
29192
- ]))) : b("", !0)
29184
+ ]))) : v("", !0)
29193
29185
  ]),
29194
29186
  _: 1
29195
29187
  }),
@@ -29200,7 +29192,7 @@ const od = ["data-theme"], ld = {
29200
29192
  class: "video-message__context-menu",
29201
29193
  actions: e.message.actions,
29202
29194
  onClick: D
29203
- }, null, 8, ["actions"])) : b("", !0)
29195
+ }, null, 8, ["actions"])) : v("", !0)
29204
29196
  ]),
29205
29197
  _: 1
29206
29198
  }),
@@ -29209,23 +29201,23 @@ const od = ["data-theme"], ld = {
29209
29201
  onClick: p,
29210
29202
  innerHTML: w.value
29211
29203
  }, null, 8, I4)
29212
- ])) : b("", !0),
29204
+ ])) : v("", !0),
29213
29205
  e.message.linkPreview ? (l(), B(r1, {
29214
29206
  key: 2,
29215
29207
  class: S(["video-message__link-preview", e.message.position]),
29216
29208
  "link-preview": e.message.linkPreview
29217
- }, null, 8, ["class", "link-preview"])) : b("", !0),
29209
+ }, null, 8, ["class", "link-preview"])) : v("", !0),
29218
29210
  e.message.embed ? (l(), B(d1, {
29219
29211
  key: 3,
29220
29212
  class: S(e.message.position),
29221
29213
  embed: e.message.embed
29222
- }, null, 8, ["class", "embed"])) : b("", !0)
29214
+ }, null, 8, ["class", "embed"])) : v("", !0)
29223
29215
  ], 2)
29224
29216
  ], 46, p4),
29225
29217
  (l(), B(Ne, { to: "body" }, [
29226
29218
  Y(de, { name: "modal-fade" }, {
29227
29219
  default: W(() => [
29228
- m.value ? (l(), B(i1, {
29220
+ g.value ? (l(), B(i1, {
29229
29221
  key: 0,
29230
29222
  "data-theme": T(a)().theme ? T(a)().theme : "light",
29231
29223
  onClose: N
@@ -29242,7 +29234,7 @@ const od = ["data-theme"], ld = {
29242
29234
  }, null, 8, k4)
29243
29235
  ]),
29244
29236
  _: 1
29245
- }, 8, ["data-theme"])) : b("", !0)
29237
+ }, 8, ["data-theme"])) : v("", !0)
29246
29238
  ]),
29247
29239
  _: 1
29248
29240
  })
@@ -29317,7 +29309,7 @@ const od = ["data-theme"], ld = {
29317
29309
  height: "32",
29318
29310
  width: "32",
29319
29311
  style: Ae({ gridRow: e.message.subText ? "2" : "1" })
29320
- }, null, 12, N4)) : b("", !0),
29312
+ }, null, 12, N4)) : v("", !0),
29321
29313
  e.message.subText ? (l(), u("p", E4, [
29322
29314
  Y(xe, {
29323
29315
  text: i.value,
@@ -29329,7 +29321,7 @@ const od = ["data-theme"], ld = {
29329
29321
  ]),
29330
29322
  _: 1
29331
29323
  }, 8, ["text", "position"])
29332
- ])) : b("", !0),
29324
+ ])) : v("", !0),
29333
29325
  o("div", j4, [
29334
29326
  o("span", {
29335
29327
  class: S(["call-message__icon pi pi-phone", { "call-message__icon-missed": e.message.isMissedCall }])
@@ -29342,14 +29334,14 @@ const od = ["data-theme"], ld = {
29342
29334
  (A = e.message.transcript) != null && A.dialog ? (l(), u("button", {
29343
29335
  key: 5,
29344
29336
  class: "call-message__download-button",
29345
- onClick: d[0] || (d[0] = (m) => n.value = !n.value)
29337
+ onClick: d[0] || (d[0] = (g) => n.value = !n.value)
29346
29338
  }, d[2] || (d[2] = [
29347
29339
  o("span", { class: "pi pi-arrow-up-right" }, null, -1)
29348
- ]))) : b("", !0),
29340
+ ]))) : v("", !0),
29349
29341
  (l(), B(Ne, { to: "body" }, [
29350
29342
  Y(de, { name: "modal-fade" }, {
29351
29343
  default: W(() => {
29352
- var m;
29344
+ var g;
29353
29345
  return [
29354
29346
  n.value ? (l(), u("div", {
29355
29347
  key: 0,
@@ -29365,7 +29357,7 @@ const od = ["data-theme"], ld = {
29365
29357
  o("i", { class: "pi pi-times" })
29366
29358
  ], -1)
29367
29359
  ])),
29368
- (l(!0), u(K, null, re((m = e.message.transcript) == null ? void 0 : m.dialog, (_) => (l(), u("div", {
29360
+ (l(!0), u(K, null, re((g = e.message.transcript) == null ? void 0 : g.dialog, (_) => (l(), u("div", {
29369
29361
  key: _.time,
29370
29362
  class: S(r(_, s.textDialog))
29371
29363
  }, [
@@ -29373,7 +29365,7 @@ const od = ["data-theme"], ld = {
29373
29365
  o("span", null, E(_.time), 1)
29374
29366
  ], 2))), 128))
29375
29367
  ])
29376
- ], 8, $4)) : b("", !0)
29368
+ ], 8, $4)) : v("", !0)
29377
29369
  ];
29378
29370
  }),
29379
29371
  _: 1
@@ -29416,8 +29408,8 @@ const od = ["data-theme"], ld = {
29416
29408
  height: "32",
29417
29409
  width: "32",
29418
29410
  style: Ae({ gridRow: e.message.subText ? "2" : "1" })
29419
- }, null, 12, Z4)) : b("", !0),
29420
- e.message.subText ? (l(), u("p", K4, E(e.message.subText), 1)) : b("", !0),
29411
+ }, null, 12, Z4)) : v("", !0),
29412
+ e.message.subText ? (l(), u("p", K4, E(e.message.subText), 1)) : v("", !0),
29421
29413
  t[0] || (t[0] = o("div", { class: "typing-message__loader-container" }, [
29422
29414
  o("div", { class: "typing-message__loader" })
29423
29415
  ], -1))
@@ -29444,7 +29436,7 @@ const od = ["data-theme"], ld = {
29444
29436
  n.preventDefault(), n.target.href && window.open(n.target.href, "_blank");
29445
29437
  }
29446
29438
  return (n, i) => (l(), u("div", G4, [
29447
- e.message.header ? (l(), u("p", X4, E(e.message.header), 1)) : b("", !0),
29439
+ e.message.header ? (l(), u("p", X4, E(e.message.header), 1)) : v("", !0),
29448
29440
  o("p", {
29449
29441
  class: "text",
29450
29442
  onClick: a,
@@ -29485,7 +29477,7 @@ const od = ["data-theme"], ld = {
29485
29477
  }, null, 8, nA)
29486
29478
  ]),
29487
29479
  o("div", aA, [
29488
- e.message.header ? (l(), u("p", sA, E(e.message.header), 1)) : b("", !0),
29480
+ e.message.header ? (l(), u("p", sA, E(e.message.header), 1)) : v("", !0),
29489
29481
  d[1] || (d[1] = o("div", { class: "image-message__reply-description" }, [
29490
29482
  o("span", { class: "pi pi-camera" }),
29491
29483
  o("p", null, "Фотография")
@@ -29495,7 +29487,7 @@ const od = ["data-theme"], ld = {
29495
29487
  class: "image-message__text",
29496
29488
  onClick: s,
29497
29489
  innerHTML: i.value
29498
- }, null, 8, iA)) : b("", !0)
29490
+ }, null, 8, iA)) : v("", !0)
29499
29491
  ]),
29500
29492
  (l(), B(Ne, { to: "body" }, [
29501
29493
  Y(de, { name: "modal-fade" }, {
@@ -29513,7 +29505,7 @@ const od = ["data-theme"], ld = {
29513
29505
  }, null, 8, oA)
29514
29506
  ]),
29515
29507
  _: 1
29516
- }, 8, ["data-theme"])) : b("", !0)
29508
+ }, 8, ["data-theme"])) : v("", !0)
29517
29509
  ]),
29518
29510
  _: 1
29519
29511
  })
@@ -29547,7 +29539,7 @@ const od = ["data-theme"], ld = {
29547
29539
  [qe, !t.value]
29548
29540
  ]),
29549
29541
  o("div", rA, [
29550
- e.message.header ? (l(), u("p", dA, E(e.message.header), 1)) : b("", !0),
29542
+ e.message.header ? (l(), u("p", dA, E(e.message.header), 1)) : v("", !0),
29551
29543
  s[1] || (s[1] = o("div", { class: "audio-message__reply-description" }, [
29552
29544
  o("span", { class: "pi pi-microphone" }),
29553
29545
  o("p", null, "Аудиосообщение")
@@ -29557,7 +29549,7 @@ const od = ["data-theme"], ld = {
29557
29549
  class: "audio-message__text",
29558
29550
  onClick: n,
29559
29551
  innerHTML: a.value
29560
- }, null, 8, AA)) : b("", !0)
29552
+ }, null, 8, AA)) : v("", !0)
29561
29553
  ])
29562
29554
  ], 64));
29563
29555
  }
@@ -29585,7 +29577,7 @@ const od = ["data-theme"], ld = {
29585
29577
  return (d, A) => (l(), u(K, null, [
29586
29578
  o("div", {
29587
29579
  class: "video-message__preview-button",
29588
- onClick: A[0] || (A[0] = (m) => i.value = !0)
29580
+ onClick: A[0] || (A[0] = (g) => i.value = !0)
29589
29581
  }, [
29590
29582
  o("video", {
29591
29583
  class: "video-message__video",
@@ -29594,7 +29586,7 @@ const od = ["data-theme"], ld = {
29594
29586
  }, null, 8, pA)
29595
29587
  ]),
29596
29588
  o("div", _A, [
29597
- e.message.header ? (l(), u("p", hA, E(e.message.header), 1)) : b("", !0),
29589
+ e.message.header ? (l(), u("p", hA, E(e.message.header), 1)) : v("", !0),
29598
29590
  A[1] || (A[1] = o("div", { class: "video-message__reply-description" }, [
29599
29591
  o("span", { class: "pi pi-video" }),
29600
29592
  o("p", null, "Видео")
@@ -29604,7 +29596,7 @@ const od = ["data-theme"], ld = {
29604
29596
  class: "video-message__text",
29605
29597
  onClick: r,
29606
29598
  innerHTML: s.value
29607
- }, null, 8, vA)) : b("", !0)
29599
+ }, null, 8, vA)) : v("", !0)
29608
29600
  ]),
29609
29601
  (l(), B(Ne, { to: "body" }, [
29610
29602
  Y(de, { name: "modal-fade" }, {
@@ -29626,7 +29618,7 @@ const od = ["data-theme"], ld = {
29626
29618
  }, null, 8, bA)
29627
29619
  ]),
29628
29620
  _: 1
29629
- }, 8, ["data-theme"])) : b("", !0)
29621
+ }, 8, ["data-theme"])) : v("", !0)
29630
29622
  ]),
29631
29623
  _: 1
29632
29624
  })
@@ -29663,7 +29655,7 @@ const od = ["data-theme"], ld = {
29663
29655
  o("span", { class: "pi pi-file" }, null, -1)
29664
29656
  ]), 8, wA),
29665
29657
  o("div", null, [
29666
- e.message.header ? (l(), u("p", CA, E(e.message.header), 1)) : b("", !0),
29658
+ e.message.header ? (l(), u("p", CA, E(e.message.header), 1)) : v("", !0),
29667
29659
  o("a", {
29668
29660
  class: "file-message__link",
29669
29661
  href: e.message.url,
@@ -29677,7 +29669,7 @@ const od = ["data-theme"], ld = {
29677
29669
  class: "file-message__text",
29678
29670
  onClick: a,
29679
29671
  innerHTML: t.value
29680
- }, null, 8, xA)) : b("", !0)
29672
+ }, null, 8, xA)) : v("", !0)
29681
29673
  ])
29682
29674
  ], 64));
29683
29675
  }
@@ -29765,7 +29757,7 @@ const od = ["data-theme"], ld = {
29765
29757
  setup(e, { emit: f }) {
29766
29758
  const t = e, a = h({ x: 0, y: 0 }), n = h(null), i = h(null), s = h(!1), r = h(0), c = h(0), d = h(0), A = G1();
29767
29759
  xf("chatAppId", A), xf("extChatAppId", t.extChatAppId ? t.extChatAppId : "");
29768
- const m = (y) => {
29760
+ const g = (y) => {
29769
29761
  s.value = !0, r.value = y.clientX - n.value.offsetLeft, c.value = y.clientY - n.value.offsetTop;
29770
29762
  }, _ = () => s.value = !1, k = (y) => {
29771
29763
  if (s.value) {
@@ -29808,7 +29800,7 @@ const od = ["data-theme"], ld = {
29808
29800
  ref_key: "container",
29809
29801
  ref: i,
29810
29802
  class: "float-window__controls",
29811
- onMousedown: m,
29803
+ onMousedown: g,
29812
29804
  onMouseup: _,
29813
29805
  onMouseleave: _
29814
29806
  }, [
@@ -29817,7 +29809,7 @@ const od = ["data-theme"], ld = {
29817
29809
  class: "float-window__avatar",
29818
29810
  src: t.avatar,
29819
29811
  alt: t.title
29820
- }, null, 8, RA)) : b("", !0),
29812
+ }, null, 8, RA)) : v("", !0),
29821
29813
  o("p", QA, E(t.title), 1),
29822
29814
  o("div", FA, [
29823
29815
  ce(y.$slots, "controls"),
@@ -29916,7 +29908,7 @@ const fg = /* @__PURE__ */ O(f6, [["render", a6], ["__scopeId", "data-v-414119aa
29916
29908
  ])),
29917
29909
  e.isOpenChatPanel ? (l(), u("div", u6, [
29918
29910
  ce(t.$slots, "chatpanel", {}, void 0, !0)
29919
- ])) : b("", !0)
29911
+ ])) : v("", !0)
29920
29912
  ], 10, s6));
29921
29913
  }
29922
29914
  }), tg = /* @__PURE__ */ O(c6, [["__scopeId", "data-v-df00ad62"]]), r6 = ["id"], d6 = ["id"], A6 = ["id"], g6 = ["id"], m6 = {