@mobilon-dev/chotto 0.2.17 → 0.2.18

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 r, openBlock as l, createStaticVNode as bt, inject as se, computed as P, createCommentVNode as v, createElementVNode as o, createVNode as W, createTextVNode as Qt, toDisplayString as x, renderSlot as ie, unref as D, ref as b, customRef as mf, defineComponent as J, watch as ae, nextTick as Te, withDirectives as ge, withKeys as _a, vModelText as _t, normalizeClass as j, Fragment as K, renderList as oe, createBlock as U, Transition as le, withCtx as Z, useTemplateRef as pf, normalizeStyle as de, resolveDynamicComponent as qe, Teleport as we, onMounted as me, onUnmounted as Mt, vShow as Ve, useId as Ma, toRef as Pa, vModelRadio as wa, reactive as hf, provide as dt, getCurrentInstance as Jf, toRaw as vf, onBeforeUnmount as Gf, readonly as Xf, resolveComponent as An, h as qa, defineAsyncComponent as e1, createApp as t1, withModifiers as Ft } from "vue";
1
+ import { createElementBlock as r, openBlock as l, createStaticVNode as bt, inject as se, computed as P, createCommentVNode as v, createElementVNode as o, createVNode as W, createTextVNode as Qt, toDisplayString as x, renderSlot as ie, unref as D, ref as b, customRef as mf, defineComponent as J, watch as ae, nextTick as Te, withDirectives as ge, withKeys as Ma, vModelText as Mt, normalizeClass as j, Fragment as K, renderList as oe, createBlock as U, Transition as le, withCtx as Z, useTemplateRef as pf, normalizeStyle as ce, resolveDynamicComponent as qe, Teleport as we, onMounted as me, onUnmounted as _t, vShow as Ve, useId as _a, toRef as Pa, vModelRadio as wa, reactive as hf, provide as dt, getCurrentInstance as Jf, toRaw as vf, onBeforeUnmount as Gf, readonly as Xf, resolveComponent as An, h as qa, defineAsyncComponent as e1, createApp as t1, withModifiers as Ft } from "vue";
2
2
  const n1 = "aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2", a1 = "ελ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", ca = "numeric", ua = "ascii", Aa = "alpha", Vt = "asciinumeric", St = "alphanumeric", da = "domain", yf = "emoji", f1 = "scheme", s1 = "slashscheme", ea = "whitespace";
3
3
  function i1(e, t) {
4
4
  return e in t || (t[e] = []), t[e];
@@ -16,11 +16,11 @@ function o1(e, t) {
16
16
  t[a].indexOf(e) >= 0 && (n[a] = !0);
17
17
  return n;
18
18
  }
19
- function Me(e = null) {
19
+ function _e(e = null) {
20
20
  this.j = {}, this.jr = [], this.jd = null, this.t = e;
21
21
  }
22
- Me.groups = {};
23
- Me.prototype = {
22
+ _e.groups = {};
23
+ _e.prototype = {
24
24
  accepts() {
25
25
  return !!this.t;
26
26
  },
@@ -73,9 +73,9 @@ Me.prototype = {
73
73
  * @returns {State<T>} taken after the given input
74
74
  */
75
75
  tr(e, t, n, a) {
76
- a = a || Me.groups;
76
+ a = a || _e.groups;
77
77
  let f;
78
- return t && t.j ? f = t : (f = new Me(t), n && a && rt(t, n, a)), this.jr.push([e, f]), f;
78
+ return t && t.j ? f = t : (f = new _e(t), n && a && rt(t, n, a)), this.jr.push([e, f]), f;
79
79
  },
80
80
  /**
81
81
  * Short for "take transitions", will take as many sequential transitions as
@@ -123,13 +123,13 @@ Me.prototype = {
123
123
  * @returns {State<T>} taken after the given input
124
124
  */
125
125
  tt(e, t, n, a) {
126
- a = a || Me.groups;
126
+ a = a || _e.groups;
127
127
  const f = this;
128
128
  if (t && t.j)
129
129
  return f.j[e] = t, t;
130
130
  const i = t;
131
131
  let s, u = f.go(e);
132
- if (u ? (s = new Me(), Object.assign(s.j, u.j), s.jr.push.apply(s.jr, u.jr), s.jd = u.jd, s.t = u.t) : s = new Me(), i) {
132
+ if (u ? (s = new _e(), Object.assign(s.j, u.j), s.jr.push.apply(s.jr, u.jr), s.jd = u.jd, s.t = u.t) : s = new _e(), i) {
133
133
  if (a)
134
134
  if (s.t && typeof s.t == "string") {
135
135
  const c = Object.assign(o1(s.t, a), n);
@@ -140,10 +140,10 @@ Me.prototype = {
140
140
  return f.j[e] = s, s;
141
141
  }
142
142
  };
143
- const G = (e, t, n, a, f) => e.ta(t, n, a, f), ue = (e, t, n, a, f) => e.tr(t, n, a, f), Ha = (e, t, n, a, f) => e.ts(t, n, a, f), S = (e, t, n, a, f) => e.tt(t, n, a, f), Ge = "WORD", ga = "UWORD", bf = "ASCIINUMERICAL", _f = "ALPHANUMERICAL", Yt = "LOCALHOST", ma = "TLD", pa = "UTLD", dn = "SCHEME", At = "SLASH_SCHEME", Ca = "NUM", ha = "WS", Ia = "NL", Ot = "OPENBRACE", zt = "CLOSEBRACE", pn = "OPENBRACKET", hn = "CLOSEBRACKET", vn = "OPENPAREN", yn = "CLOSEPAREN", bn = "OPENANGLEBRACKET", _n = "CLOSEANGLEBRACKET", Mn = "FULLWIDTHLEFTPAREN", wn = "FULLWIDTHRIGHTPAREN", Cn = "LEFTCORNERBRACKET", In = "RIGHTCORNERBRACKET", kn = "LEFTWHITECORNERBRACKET", Dn = "RIGHTWHITECORNERBRACKET", Nn = "FULLWIDTHLESSTHAN", xn = "FULLWIDTHGREATERTHAN", Tn = "AMPERSAND", En = "APOSTROPHE", jn = "ASTERISK", et = "AT", Sn = "BACKSLASH", Vn = "BACKTICK", On = "CARET", tt = "COLON", ka = "COMMA", zn = "DOLLAR", Ye = "DOT", Ln = "EQUALS", Da = "EXCLAMATION", De = "HYPHEN", Lt = "PERCENT", Un = "PIPE", Bn = "PLUS", $n = "POUND", Ut = "QUERY", Na = "QUOTE", Mf = "FULLWIDTHMIDDLEDOT", xa = "SEMI", Pe = "SLASH", Bt = "TILDE", Rn = "UNDERSCORE", wf = "EMOJI", Qn = "SYM";
143
+ const G = (e, t, n, a, f) => e.ta(t, n, a, f), Ae = (e, t, n, a, f) => e.tr(t, n, a, f), Ha = (e, t, n, a, f) => e.ts(t, n, a, f), S = (e, t, n, a, f) => e.tt(t, n, a, f), Ge = "WORD", ga = "UWORD", bf = "ASCIINUMERICAL", Mf = "ALPHANUMERICAL", Yt = "LOCALHOST", ma = "TLD", pa = "UTLD", dn = "SCHEME", At = "SLASH_SCHEME", Ca = "NUM", ha = "WS", Ia = "NL", Ot = "OPENBRACE", zt = "CLOSEBRACE", pn = "OPENBRACKET", hn = "CLOSEBRACKET", vn = "OPENPAREN", yn = "CLOSEPAREN", bn = "OPENANGLEBRACKET", Mn = "CLOSEANGLEBRACKET", _n = "FULLWIDTHLEFTPAREN", wn = "FULLWIDTHRIGHTPAREN", Cn = "LEFTCORNERBRACKET", In = "RIGHTCORNERBRACKET", kn = "LEFTWHITECORNERBRACKET", Dn = "RIGHTWHITECORNERBRACKET", Nn = "FULLWIDTHLESSTHAN", xn = "FULLWIDTHGREATERTHAN", Tn = "AMPERSAND", En = "APOSTROPHE", jn = "ASTERISK", et = "AT", Sn = "BACKSLASH", Vn = "BACKTICK", On = "CARET", tt = "COLON", ka = "COMMA", zn = "DOLLAR", Ye = "DOT", Ln = "EQUALS", Da = "EXCLAMATION", De = "HYPHEN", Lt = "PERCENT", Un = "PIPE", Bn = "PLUS", $n = "POUND", Ut = "QUERY", Na = "QUOTE", _f = "FULLWIDTHMIDDLEDOT", xa = "SEMI", Pe = "SLASH", Bt = "TILDE", Rn = "UNDERSCORE", wf = "EMOJI", Qn = "SYM";
144
144
  var Cf = /* @__PURE__ */ Object.freeze({
145
145
  __proto__: null,
146
- ALPHANUMERICAL: _f,
146
+ ALPHANUMERICAL: Mf,
147
147
  AMPERSAND: Tn,
148
148
  APOSTROPHE: En,
149
149
  ASCIINUMERICAL: bf,
@@ -152,7 +152,7 @@ var Cf = /* @__PURE__ */ Object.freeze({
152
152
  BACKSLASH: Sn,
153
153
  BACKTICK: Vn,
154
154
  CARET: On,
155
- CLOSEANGLEBRACKET: _n,
155
+ CLOSEANGLEBRACKET: Mn,
156
156
  CLOSEBRACE: zt,
157
157
  CLOSEBRACKET: hn,
158
158
  CLOSEPAREN: yn,
@@ -164,9 +164,9 @@ var Cf = /* @__PURE__ */ Object.freeze({
164
164
  EQUALS: Ln,
165
165
  EXCLAMATION: Da,
166
166
  FULLWIDTHGREATERTHAN: xn,
167
- FULLWIDTHLEFTPAREN: Mn,
167
+ FULLWIDTHLEFTPAREN: _n,
168
168
  FULLWIDTHLESSTHAN: Nn,
169
- FULLWIDTHMIDDLEDOT: Mf,
169
+ FULLWIDTHMIDDLEDOT: _f,
170
170
  FULLWIDTHRIGHTPAREN: wn,
171
171
  HYPHEN: De,
172
172
  LEFTCORNERBRACKET: Cn,
@@ -204,42 +204,42 @@ const Ze = /[a-z]/, xt = new RegExp("\\p{L}", "u"), ta = new RegExp("\\p{Emoji}"
204
204
  let on = null, ln = null;
205
205
  function c1(e = []) {
206
206
  const t = {};
207
- Me.groups = t;
208
- const n = new Me();
209
- on == null && (on = Ka(n1)), ln == null && (ln = Ka(a1)), S(n, "'", En), S(n, "{", Ot), S(n, "}", zt), S(n, "[", pn), S(n, "]", hn), S(n, "(", vn), S(n, ")", yn), S(n, "<", bn), S(n, ">", _n), S(n, "(", Mn), S(n, ")", wn), S(n, "「", Cn), S(n, "」", In), S(n, "『", kn), S(n, "』", Dn), S(n, "<", Nn), S(n, ">", xn), S(n, "&", Tn), S(n, "*", jn), S(n, "@", et), S(n, "`", Vn), S(n, "^", On), S(n, ":", tt), S(n, ",", ka), S(n, "$", zn), S(n, ".", Ye), S(n, "=", Ln), S(n, "!", Da), S(n, "-", De), S(n, "%", Lt), S(n, "|", Un), S(n, "+", Bn), S(n, "#", $n), S(n, "?", Ut), S(n, '"', Na), S(n, "/", Pe), S(n, ";", xa), S(n, "~", Bt), S(n, "_", Rn), S(n, "\\", Sn), S(n, "・", Mf);
210
- const a = ue(n, Je, Ca, {
207
+ _e.groups = t;
208
+ const n = new _e();
209
+ on == null && (on = Ka(n1)), ln == null && (ln = Ka(a1)), S(n, "'", En), S(n, "{", Ot), S(n, "}", zt), S(n, "[", pn), S(n, "]", hn), S(n, "(", vn), S(n, ")", yn), S(n, "<", bn), S(n, ">", Mn), S(n, "(", _n), S(n, ")", wn), S(n, "「", Cn), S(n, "」", In), S(n, "『", kn), S(n, "』", Dn), S(n, "<", Nn), S(n, ">", xn), S(n, "&", Tn), S(n, "*", jn), S(n, "@", et), S(n, "`", Vn), S(n, "^", On), S(n, ":", tt), S(n, ",", ka), S(n, "$", zn), S(n, ".", Ye), S(n, "=", Ln), S(n, "!", Da), S(n, "-", De), S(n, "%", Lt), S(n, "|", Un), S(n, "+", Bn), S(n, "#", $n), S(n, "?", Ut), S(n, '"', Na), S(n, "/", Pe), S(n, ";", xa), S(n, "~", Bt), S(n, "_", Rn), S(n, "\\", Sn), S(n, "・", _f);
210
+ const a = Ae(n, Je, Ca, {
211
211
  [ca]: !0
212
212
  });
213
- ue(a, Je, a);
214
- const f = ue(a, Ze, bf, {
213
+ Ae(a, Je, a);
214
+ const f = Ae(a, Ze, bf, {
215
215
  [Vt]: !0
216
- }), i = ue(a, xt, _f, {
216
+ }), i = Ae(a, xt, Mf, {
217
217
  [St]: !0
218
- }), s = ue(n, Ze, Ge, {
218
+ }), s = Ae(n, Ze, Ge, {
219
219
  [ua]: !0
220
220
  });
221
- ue(s, Je, f), ue(s, Ze, s), ue(f, Je, f), ue(f, Ze, f);
222
- const u = ue(n, xt, ga, {
221
+ Ae(s, Je, f), Ae(s, Ze, s), Ae(f, Je, f), Ae(f, Ze, f);
222
+ const u = Ae(n, xt, ga, {
223
223
  [Aa]: !0
224
224
  });
225
- ue(u, Ze), ue(u, Je, i), ue(u, xt, u), ue(i, Je, i), ue(i, Ze), ue(i, xt, i);
225
+ Ae(u, Ze), Ae(u, Je, i), Ae(u, xt, u), Ae(i, Je, i), Ae(i, Ze), Ae(i, xt, i);
226
226
  const c = S(n, aa, Ia, {
227
227
  [ea]: !0
228
228
  }), A = S(n, Wa, ha, {
229
229
  [ea]: !0
230
- }), d = ue(n, na, ha, {
230
+ }), d = Ae(n, na, ha, {
231
231
  [ea]: !0
232
232
  });
233
- S(n, fa, d), S(A, aa, c), S(A, fa, d), ue(A, na, d), S(d, Wa), S(d, aa), ue(d, na, d), S(d, fa, d);
234
- const g = ue(n, ta, wf, {
233
+ S(n, fa, d), S(A, aa, c), S(A, fa, d), Ae(A, na, d), S(d, Wa), S(d, aa), Ae(d, na, d), S(d, fa, d);
234
+ const g = Ae(n, ta, wf, {
235
235
  [yf]: !0
236
236
  });
237
- S(g, "#"), ue(g, ta, g), S(g, l1, g);
237
+ S(g, "#"), Ae(g, ta, g), S(g, l1, g);
238
238
  const p = S(g, r1);
239
- S(p, "#"), ue(p, ta, g);
240
- const M = [[Ze, s], [Je, f]], h = [[Ze, null], [xt, u], [Je, i]];
239
+ S(p, "#"), Ae(p, ta, g);
240
+ const _ = [[Ze, s], [Je, f]], h = [[Ze, null], [xt, u], [Je, i]];
241
241
  for (let y = 0; y < on.length; y++)
242
- Xe(n, on[y], ma, Ge, M);
242
+ Xe(n, on[y], ma, Ge, _);
243
243
  for (let y = 0; y < ln.length; y++)
244
244
  Xe(n, ln[y], pa, ga, h);
245
245
  rt(ma, {
@@ -248,7 +248,7 @@ function c1(e = []) {
248
248
  }, t), rt(pa, {
249
249
  utld: !0,
250
250
  alpha: !0
251
- }, t), Xe(n, "file", dn, Ge, M), Xe(n, "mailto", dn, Ge, M), Xe(n, "http", At, Ge, M), Xe(n, "https", At, Ge, M), Xe(n, "ftp", At, Ge, M), Xe(n, "ftps", At, Ge, M), rt(dn, {
251
+ }, t), Xe(n, "file", dn, Ge, _), Xe(n, "mailto", dn, Ge, _), Xe(n, "http", At, Ge, _), Xe(n, "https", At, Ge, _), Xe(n, "ftp", At, Ge, _), Xe(n, "ftps", At, Ge, _), rt(dn, {
252
252
  scheme: !0,
253
253
  ascii: !0
254
254
  }, t), rt(At, {
@@ -265,7 +265,7 @@ function c1(e = []) {
265
265
  }
266
266
  return Ha(n, "localhost", Yt, {
267
267
  ascii: !0
268
- }), n.jd = new Me(Qn), {
268
+ }), n.jd = new _e(Qn), {
269
269
  start: n,
270
270
  tokens: Object.assign({
271
271
  groups: t
@@ -306,9 +306,9 @@ function Xe(e, t, n, a, f) {
306
306
  const s = t.length;
307
307
  for (let u = 0; u < s - 1; u++) {
308
308
  const c = t[u];
309
- e.j[c] ? i = e.j[c] : (i = new Me(a), i.jr = f.slice(), e.j[c] = i), e = i;
309
+ e.j[c] ? i = e.j[c] : (i = new _e(a), i.jr = f.slice(), e.j[c] = i), e = i;
310
310
  }
311
- return i = new Me(n), i.jr = f.slice(), e.j[t[s - 1]] = i, i;
311
+ return i = new _e(n), i.jr = f.slice(), e.j[t[s - 1]] = i, i;
312
312
  }
313
313
  function Ka(e) {
314
314
  const t = [], n = [];
@@ -558,11 +558,11 @@ const Ja = Pn("email", {
558
558
  const e = this.tk;
559
559
  return e.length >= 2 && e[0].t !== Yt && e[1].t === tt;
560
560
  }
561
- }), ke = (e) => new Me(e);
561
+ }), ke = (e) => new _e(e);
562
562
  function d1({
563
563
  groups: e
564
564
  }) {
565
- const t = e.domain.concat([Tn, jn, et, Sn, Vn, On, zn, Ln, De, Ca, Lt, Un, Bn, $n, Pe, Qn, Bt, Rn]), n = [En, tt, ka, Ye, Da, Lt, Ut, Na, xa, bn, _n, Ot, zt, hn, pn, vn, yn, Mn, wn, Cn, In, kn, Dn, Nn, xn], a = [Tn, En, jn, Sn, Vn, On, zn, Ln, De, Ot, zt, Lt, Un, Bn, $n, Ut, Pe, Qn, Bt, Rn], f = ke(), i = S(f, Bt);
565
+ const t = e.domain.concat([Tn, jn, et, Sn, Vn, On, zn, Ln, De, Ca, Lt, Un, Bn, $n, Pe, Qn, Bt, Rn]), n = [En, tt, ka, Ye, Da, Lt, Ut, Na, xa, bn, Mn, Ot, zt, hn, pn, vn, yn, _n, wn, Cn, In, kn, Dn, Nn, xn], a = [Tn, En, jn, Sn, Vn, On, zn, Ln, De, Ot, zt, Lt, Un, Bn, $n, Ut, Pe, Qn, Bt, Rn], f = ke(), i = S(f, Bt);
566
566
  G(i, a, i), G(i, e.domain, i);
567
567
  const s = ke(), u = ke(), c = ke();
568
568
  G(f, e.domain, s), G(f, e.scheme, u), G(f, e.slashscheme, c), G(s, a, i), G(s, e.domain, s);
@@ -574,11 +574,11 @@ function d1({
574
574
  G(A, e.domain, g), G(g, e.domain, g);
575
575
  const p = S(g, Ye);
576
576
  G(p, e.domain, g);
577
- const M = ke(Ja);
578
- G(p, e.tld, M), G(p, e.utld, M), S(A, Yt, M);
577
+ const _ = ke(Ja);
578
+ G(p, e.tld, _), G(p, e.utld, _), S(A, Yt, _);
579
579
  const h = S(g, De);
580
- S(h, De, h), G(h, e.domain, g), G(M, e.domain, g), S(M, Ye, p), S(M, De, h);
581
- const y = S(M, tt);
580
+ S(h, De, h), G(h, e.domain, g), G(_, e.domain, g), S(_, Ye, p), S(_, De, h);
581
+ const y = S(_, tt);
582
582
  G(y, e.numeric, Ja);
583
583
  const m = S(s, De), k = S(s, Ye);
584
584
  S(m, De, m), G(m, e.domain, s), G(k, a, i), G(k, e.domain, s);
@@ -586,8 +586,8 @@ function d1({
586
586
  G(k, e.tld, T), G(k, e.utld, T), G(T, e.domain, s), G(T, a, i), S(T, Ye, k), S(T, De, m), S(T, et, A);
587
587
  const I = S(T, tt), C = ke(rn);
588
588
  G(I, e.numeric, C);
589
- const w = ke(rn), _ = ke();
590
- G(w, t, w), G(w, n, _), G(_, t, w), G(_, n, _), S(T, Pe, w), S(C, Pe, w);
589
+ const w = ke(rn), M = ke();
590
+ G(w, t, w), G(w, n, M), G(M, t, w), G(M, n, M), S(T, Pe, w), S(C, Pe, w);
591
591
  const N = S(u, tt), V = S(c, tt), z = S(V, Pe), Y = S(z, Pe);
592
592
  G(u, e.domain, s), S(u, Ye, k), S(u, De, m), G(c, e.domain, s), S(c, Ye, k), S(c, De, m), G(N, e.domain, w), S(N, Pe, w), S(N, Ut, w), G(Y, e.domain, w), G(Y, t, w), S(Y, Pe, w);
593
593
  const X = [
@@ -597,9 +597,9 @@ function d1({
597
597
  // []
598
598
  [vn, yn],
599
599
  // ()
600
- [bn, _n],
600
+ [bn, Mn],
601
601
  // <>
602
- [Mn, wn],
602
+ [_n, wn],
603
603
  // ()
604
604
  [Cn, In],
605
605
  // 「」
@@ -610,7 +610,7 @@ function d1({
610
610
  ];
611
611
  for (let $ = 0; $ < X.length; $++) {
612
612
  const [R, ee] = X[$], fe = S(w, R);
613
- S(_, R, fe), S(fe, ee, w);
613
+ S(M, R, fe), S(fe, ee, w);
614
614
  const te = ke(rn);
615
615
  G(fe, t, te);
616
616
  const re = ke();
@@ -633,8 +633,8 @@ function g1(e, t, n) {
633
633
  f -= d, f < a && (s.push(n[f]), f++);
634
634
  else {
635
635
  s.length > 0 && (i.push(sa(Ga, t, s)), s = []), f -= p, d -= p;
636
- const M = g.t, h = n.slice(f - d, f);
637
- i.push(sa(M, t, h));
636
+ const _ = g.t, h = n.slice(f - d, f);
637
+ i.push(sa(_, t, h));
638
638
  }
639
639
  }
640
640
  return s.length > 0 && i.push(sa(Ga, t, s)), i;
@@ -736,7 +736,7 @@ const O = (e, t) => {
736
736
  }
737
737
  }
738
738
  }, b1 = ["width", "height"];
739
- function _1(e, t, n, a, f, i) {
739
+ function M1(e, t, n, a, f, i) {
740
740
  return l(), r("svg", {
741
741
  width: n.size,
742
742
  height: n.size,
@@ -747,7 +747,7 @@ function _1(e, t, n, a, f, i) {
747
747
  bt('<g clip-path="url(#clip0_4389_421)"><path d="M35.4075 18.75C35.4075 21.2364 34.3978 23.621 32.6005 25.3791C30.8032 27.1373 28.3655 28.125 25.8237 28.125C23.282 28.125 20.8443 27.1373 19.047 25.3791C17.2497 23.621 16.24 21.2364 16.24 18.75C16.24 16.2636 17.2497 13.879 19.047 12.1209C20.8443 10.3627 23.282 9.375 25.8237 9.375C28.3655 9.375 30.8032 10.3627 32.6005 12.1209C34.3978 13.879 35.4075 16.2636 35.4075 18.75Z" fill="#DCDCDC"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M0.26709 25C0.26709 18.3696 2.95966 12.0107 7.75247 7.32233C12.5453 2.63392 19.0457 0 25.8238 0C32.6018 0 39.1023 2.63392 43.8951 7.32233C48.6879 12.0107 51.3805 18.3696 51.3805 25C51.3805 31.6304 48.6879 37.9893 43.8951 42.6777C39.1023 47.3661 32.6018 50 25.8238 50C19.0457 50 12.5453 47.3661 7.75247 42.6777C2.95966 37.9893 0.26709 31.6304 0.26709 25ZM25.8238 3.125C21.6126 3.12522 17.4871 4.28863 13.922 6.48134C10.357 8.67404 7.49734 11.8069 5.67221 15.5194C3.84709 19.2318 3.13067 23.3729 3.60543 27.4661C4.08018 31.5593 5.72681 35.4382 8.35578 38.6562C10.6239 35.0812 15.6171 31.25 25.8238 31.25C36.0305 31.25 41.0204 35.0781 43.2918 38.6562C45.9207 35.4382 47.5674 31.5593 48.0421 27.4661C48.5169 23.3729 47.8005 19.2318 45.9753 15.5194C44.1502 11.8069 41.2906 8.67404 37.7255 6.48134C34.1605 4.28863 30.0349 3.12522 25.8238 3.125Z" fill="#DCDCDC"></path></g><defs><clipPath id="clip0_4389_421"><rect width="51.1134" height="50" fill="white" transform="translate(0.26709)"></rect></clipPath></defs>', 2)
748
748
  ]), 8, b1);
749
749
  }
750
- const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
750
+ const xf = /* @__PURE__ */ O(y1, [["render", M1]]), _1 = {
751
751
  key: 0,
752
752
  class: "chat-info__container"
753
753
  }, w1 = { class: "chat-info__base-line" }, C1 = { class: "chat-info__avatar-container" }, I1 = ["src"], k1 = {
@@ -793,7 +793,7 @@ const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
793
793
  if (n.description) return n.description;
794
794
  if (!n.description && n.defaultLastActivityTime) return n.chat["lastActivity.time"];
795
795
  });
796
- return (s, u) => e.chat ? (l(), r("div", M1, [
796
+ return (s, u) => e.chat ? (l(), r("div", _1, [
797
797
  o("div", w1, [
798
798
  e.showReturnButton ? (l(), r("span", {
799
799
  key: 0,
@@ -832,17 +832,17 @@ const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
832
832
  ], 8, j1)
833
833
  ])) : v("", !0);
834
834
  }
835
- }, $4 = /* @__PURE__ */ O(S1, [["__scopeId", "data-v-fd1b258f"]]), _e = b([]), Se = (e) => {
836
- const t = b(0), n = _e.value.find(({ id: p }) => p == e);
837
- n != null ? t.value = _e.value.indexOf(n) : (_e.value.push({
835
+ }, $4 = /* @__PURE__ */ O(S1, [["__scopeId", "data-v-fd1b258f"]]), Me = b([]), Se = (e) => {
836
+ const t = b(0), n = Me.value.find(({ id: p }) => p == e);
837
+ n != null ? t.value = Me.value.indexOf(n) : (Me.value.push({
838
838
  id: e,
839
839
  text: "",
840
840
  file: void 0,
841
841
  forceSend: !1,
842
842
  isRecording: !1
843
- }), t.value = _e.value.length - 1);
843
+ }), t.value = Me.value.length - 1);
844
844
  const a = () => {
845
- _e.value[t.value] = {
845
+ Me.value[t.value] = {
846
846
  id: A().id,
847
847
  text: "",
848
848
  file: void 0,
@@ -851,7 +851,7 @@ const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
851
851
  isRecording: A().isRecording
852
852
  };
853
853
  }, f = (p) => {
854
- _e.value[t.value] = {
854
+ Me.value[t.value] = {
855
855
  id: A().id,
856
856
  text: p,
857
857
  file: A().file,
@@ -860,7 +860,7 @@ const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
860
860
  isRecording: A().isRecording
861
861
  };
862
862
  }, i = (p) => {
863
- _e.value[t.value] = {
863
+ Me.value[t.value] = {
864
864
  id: A().id,
865
865
  text: A().text,
866
866
  file: p,
@@ -869,7 +869,7 @@ const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
869
869
  isRecording: A().isRecording
870
870
  };
871
871
  }, s = () => {
872
- _e.value[t.value] = {
872
+ Me.value[t.value] = {
873
873
  id: A().id,
874
874
  text: A().text,
875
875
  file: void 0,
@@ -878,7 +878,7 @@ const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
878
878
  isRecording: A().isRecording
879
879
  };
880
880
  }, u = (p) => {
881
- _e.value[t.value] = {
881
+ Me.value[t.value] = {
882
882
  id: A().id,
883
883
  text: A().text,
884
884
  file: A().file,
@@ -887,7 +887,7 @@ const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
887
887
  isRecording: A().isRecording
888
888
  };
889
889
  }, c = () => {
890
- _e.value[t.value] = {
890
+ Me.value[t.value] = {
891
891
  id: A().id,
892
892
  text: A().text,
893
893
  file: A().file,
@@ -897,7 +897,7 @@ const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
897
897
  };
898
898
  };
899
899
  function A() {
900
- return _e.value[t.value];
900
+ return Me.value[t.value];
901
901
  }
902
902
  return {
903
903
  getMessage: A,
@@ -908,10 +908,10 @@ const xf = /* @__PURE__ */ O(y1, [["render", _1]]), M1 = {
908
908
  setReply: u,
909
909
  resetReply: c,
910
910
  setForceSendMessage: (p) => {
911
- _e.value[t.value].forceSend = p;
911
+ Me.value[t.value].forceSend = p;
912
912
  },
913
913
  setRecordingMessage: (p) => {
914
- _e.value[t.value].isRecording = p;
914
+ Me.value[t.value].isRecording = p;
915
915
  }
916
916
  };
917
917
  }, V1 = {
@@ -1062,7 +1062,7 @@ const Q1 = /* @__PURE__ */ O(B1, [["render", R1]]), F1 = { class: "chat-input__c
1062
1062
  i().forceSend && (y(), u(!1));
1063
1063
  }
1064
1064
  );
1065
- const M = (m) => {
1065
+ const _ = (m) => {
1066
1066
  n("typing", m.target.value);
1067
1067
  }, h = (m) => {
1068
1068
  if (m.shiftKey) {
@@ -1116,10 +1116,10 @@ const Q1 = /* @__PURE__ */ O(B1, [["render", R1]]), F1 = { class: "chat-input__c
1116
1116
  disabled: e.state == "disabled" || D(i)().isRecording,
1117
1117
  class: "chat-input__input",
1118
1118
  placeholder: D(Ne)("component.ChatInput.InputPlaceholder"),
1119
- onKeydown: _a(h, ["enter"]),
1120
- onInput: M
1119
+ onKeydown: Ma(h, ["enter"]),
1120
+ onInput: _
1121
1121
  }, null, 40, W1)), [
1122
- [_t, D(i)().text]
1122
+ [Mt, D(i)().text]
1123
1123
  ]),
1124
1124
  o("button", {
1125
1125
  class: j(["chat-input__button", { "chat-input__button-disabled": p.value }]),
@@ -1228,20 +1228,20 @@ const Q1 = /* @__PURE__ */ O(B1, [["render", R1]]), F1 = { class: "chat-input__c
1228
1228
  (C.offsetX > w.clientWidth || C.offsetY > w.clientHeight) && (c.value = !0);
1229
1229
  }, p = () => {
1230
1230
  c.value = !1;
1231
- }, M = (C) => {
1231
+ }, _ = (C) => {
1232
1232
  a("expand", C);
1233
1233
  }, h = (C) => {
1234
- n.chats.forEach((_) => {
1235
- _.isSelected = !1, _.dialogs && _.dialogs.forEach((N) => {
1234
+ n.chats.forEach((M) => {
1235
+ M.isSelected = !1, M.dialogs && M.dialogs.forEach((N) => {
1236
1236
  N.isSelected = !1;
1237
1237
  });
1238
1238
  }), C.dialog && y(C.dialog);
1239
- const w = n.chats.find((_) => _.chatId === C.chat.chatId);
1239
+ const w = n.chats.find((M) => M.chatId === C.chat.chatId);
1240
1240
  w.isSelected = !0, a("select", C);
1241
1241
  }, y = (C) => {
1242
1242
  n.chats.forEach((w) => {
1243
- w.isSelected = !1, w.dialogs && w.dialogs.forEach((_) => {
1244
- _.isSelected = !1, _.dialogId == C.dialogId && (_.isSelected = !0);
1243
+ w.isSelected = !1, w.dialogs && w.dialogs.forEach((M) => {
1244
+ M.isSelected = !1, M.dialogId == C.dialogId && (M.isSelected = !0);
1245
1245
  });
1246
1246
  });
1247
1247
  }, m = () => n.chats.toSorted((C, w) => {
@@ -1282,35 +1282,35 @@ const Q1 = /* @__PURE__ */ O(B1, [["render", R1]]), F1 = { class: "chat-input__c
1282
1282
  onMouseup: p
1283
1283
  }, [
1284
1284
  o("div", os, [
1285
- (l(!0), r(K, null, oe(m().filter((_) => _.isFixedTop), (_) => (l(), U(D(ia), {
1286
- key: _.chatId,
1285
+ (l(!0), r(K, null, oe(m().filter((M) => M.isFixedTop), (M) => (l(), U(D(ia), {
1286
+ key: M.chatId,
1287
1287
  class: "chat-list__item",
1288
- chat: _,
1288
+ chat: M,
1289
1289
  "show-dialogs": n.showDialogs,
1290
1290
  onSelect: h,
1291
- onExpand: M,
1291
+ onExpand: _,
1292
1292
  onAction: T
1293
1293
  }, null, 8, ["chat", "show-dialogs"]))), 128))
1294
1294
  ]),
1295
1295
  o("div", ls, [
1296
- (l(!0), r(K, null, oe(m().filter((_) => !_.isFixedBottom && !_.isFixedTop), (_) => (l(), U(D(ia), {
1297
- key: _.chatId,
1296
+ (l(!0), r(K, null, oe(m().filter((M) => !M.isFixedBottom && !M.isFixedTop), (M) => (l(), U(D(ia), {
1297
+ key: M.chatId,
1298
1298
  class: "chat-list__item",
1299
- chat: _,
1299
+ chat: M,
1300
1300
  "show-dialogs": n.showDialogs,
1301
1301
  onSelect: h,
1302
- onExpand: M,
1302
+ onExpand: _,
1303
1303
  onAction: T
1304
1304
  }, null, 8, ["chat", "show-dialogs"]))), 128))
1305
1305
  ]),
1306
1306
  o("div", rs, [
1307
- (l(!0), r(K, null, oe(m().filter((_) => _.isFixedBottom), (_) => (l(), U(D(ia), {
1308
- key: _.chatId,
1307
+ (l(!0), r(K, null, oe(m().filter((M) => M.isFixedBottom), (M) => (l(), U(D(ia), {
1308
+ key: M.chatId,
1309
1309
  class: "chat-list__item",
1310
- chat: _,
1310
+ chat: M,
1311
1311
  "show-dialogs": n.showDialogs,
1312
1312
  onSelect: h,
1313
- onExpand: M,
1313
+ onExpand: _,
1314
1314
  onAction: T
1315
1315
  }, null, 8, ["chat", "show-dialogs"]))), 128))
1316
1316
  ])
@@ -1365,7 +1365,7 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1365
1365
  (l(!0), r(K, null, oe(e.keyboard, (g) => (l(), r("div", {
1366
1366
  key: g.text,
1367
1367
  class: "keyboard__key",
1368
- style: de({ "box-shadow": "0px 0px 10px 5px " + g.color }),
1368
+ style: ce({ "box-shadow": "0px 0px 10px 5px " + g.color }),
1369
1369
  onClick: (p) => c(g)
1370
1370
  }, [
1371
1371
  o("p", null, x(g.text), 1)
@@ -1399,7 +1399,7 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1399
1399
  (l(!0), r(K, null, oe(f.value, (c) => (l(), r("div", {
1400
1400
  key: c.key,
1401
1401
  class: "feed-keyboard__button",
1402
- style: de({
1402
+ style: ce({
1403
1403
  "box-shadow": c["shadow-color"] && c["shadow-color"] !== "none" ? `0px 4px 4px ${c["shadow-color"]}, 0px 1px 2px ${c["shadow-color"]}` : "none",
1404
1404
  color: c["text-color"] || "inherit"
1405
1405
  }),
@@ -1412,7 +1412,7 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1412
1412
  }), hs = /* @__PURE__ */ O(ps, [["__scopeId", "data-v-4f17a69f"]]), vs = ["id"], ys = ["id", "onDblclick"], bs = {
1413
1413
  key: 0,
1414
1414
  class: "message-feed__unread-amount"
1415
- }, _s = { style: { margin: "auto" } }, Ms = /* @__PURE__ */ J({
1415
+ }, Ms = { style: { margin: "auto" } }, _s = /* @__PURE__ */ J({
1416
1416
  __name: "Feed",
1417
1417
  props: {
1418
1418
  objects: {
@@ -1472,10 +1472,10 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1472
1472
  ],
1473
1473
  setup(e, { emit: t }) {
1474
1474
  const n = b(), a = b(), f = b(), i = b(!1), s = b(!1), u = b(!1), c = b(!1), A = b(!1), d = b(!1), g = b(!1), p = b("");
1475
- let M = null;
1475
+ let _ = null;
1476
1476
  const h = e, y = se("chatAppId"), { setReply: m, getMessage: k, resetReply: T } = Se(y), I = t, C = P(() => !!(s.value && h.objects.length > 0 && h.objects[h.objects.length - 1].keyboard)), w = (H) => {
1477
1477
  I("keyboardAction", H);
1478
- }, _ = (H) => {
1478
+ }, M = (H) => {
1479
1479
  I("feedAction", H);
1480
1480
  };
1481
1481
  function N(H = !0) {
@@ -1483,7 +1483,7 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1483
1483
  let E = 0;
1484
1484
  f.value && (E = f.value.refKeyboard.clientHeight);
1485
1485
  const Q = 100, F = q.scrollHeight - q.scrollTop - q.clientHeight;
1486
- F < Q + E ? (i.value = !1, s.value = !0) : (i.value = !0, s.value = !1), d.value ? (q.scrollTop < 300 && (A.value = !1, u.value = !1), F < 300 && (c.value = !1, A.value = !0)) : H && (q.scrollTop < 300 && (u.value = !1), F < 300 && (c.value = !1)), Ce(), g.value = !0, M && window.clearTimeout(M), M = window.setTimeout(() => {
1486
+ F < Q + E ? (i.value = !1, s.value = !0) : (i.value = !0, s.value = !1), d.value ? (q.scrollTop < 300 && (A.value = !1, u.value = !1), F < 300 && (c.value = !1, A.value = !0)) : H && (q.scrollTop < 300 && (u.value = !1), F < 300 && (c.value = !1)), Ce(), g.value = !0, _ && window.clearTimeout(_), _ = window.setTimeout(() => {
1487
1487
  g.value = !1;
1488
1488
  }, 500);
1489
1489
  }
@@ -1691,7 +1691,7 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1691
1691
  key: 1,
1692
1692
  buttons: e.feedKeyboards,
1693
1693
  align: e.feedKeyboardAlign,
1694
- onAction: _
1694
+ onAction: M
1695
1695
  }, null, 8, ["buttons", "align"])) : v("", !0)
1696
1696
  ], 40, vs)) : (l(), r("div", {
1697
1697
  key: 1,
@@ -1699,7 +1699,7 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1699
1699
  ref: a,
1700
1700
  class: "message-feed"
1701
1701
  }, [
1702
- o("div", _s, [
1702
+ o("div", Ms, [
1703
1703
  ie(H.$slots, "empty-feed", {}, void 0, !0)
1704
1704
  ])
1705
1705
  ], 512)),
@@ -1715,7 +1715,7 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1715
1715
  ], 8, ["to"])) : v("", !0)
1716
1716
  ], 64));
1717
1717
  }
1718
- }), F4 = /* @__PURE__ */ O(Ms, [["__scopeId", "data-v-8d1cb62f"]]), ws = {
1718
+ }), F4 = /* @__PURE__ */ O(_s, [["__scopeId", "data-v-8d1cb62f"]]), ws = {
1719
1719
  key: 0,
1720
1720
  class: "profile__container"
1721
1721
  }, Cs = {
@@ -1734,7 +1734,7 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1734
1734
  e.user.avatar ? (l(), r("div", Cs, [
1735
1735
  o("span", {
1736
1736
  class: "profile__status",
1737
- style: de({ backgroundColor: e.user.status })
1737
+ style: ce({ backgroundColor: e.user.status })
1738
1738
  }, null, 4),
1739
1739
  o("img", {
1740
1740
  src: e.user.avatar,
@@ -1765,13 +1765,13 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1765
1765
  };
1766
1766
  return me(() => {
1767
1767
  document.addEventListener("keydown", f);
1768
- }), Mt(() => {
1768
+ }), _t(() => {
1769
1769
  document.removeEventListener("keydown", f);
1770
1770
  }), (i, s) => (l(), r("div", {
1771
1771
  class: "modal__overlay",
1772
1772
  "data-theme": e.theme,
1773
1773
  onClick: a,
1774
- onKeyup: s[1] || (s[1] = _a((u) => n("close"), ["esc"]))
1774
+ onKeyup: s[1] || (s[1] = Ma((u) => n("close"), ["esc"]))
1775
1775
  }, [
1776
1776
  o("div", Es, [
1777
1777
  o("button", {
@@ -1818,10 +1818,10 @@ const As = ["onClick"], ds = /* @__PURE__ */ J({
1818
1818
  function p() {
1819
1819
  i.value && (u.value ? i.value.pause() : i.value.play(), u.value = !u.value);
1820
1820
  }
1821
- const M = (m) => {
1821
+ const _ = (m) => {
1822
1822
  const k = Math.floor(m / 60), T = Math.floor(m % 60);
1823
1823
  return `${k.toString().padStart(2, "0")}:${T.toString().padStart(2, "0")}`;
1824
- }, h = P(() => i.value ? M(A.value) : "0:00"), y = P(() => i.value || s.value ? M(c.value) : "0:00");
1824
+ }, h = P(() => i.value ? _(A.value) : "0:00"), y = P(() => i.value || s.value ? _(c.value) : "0:00");
1825
1825
  return me(() => {
1826
1826
  i.value != null && (i.value.addEventListener("loadedmetadata", () => {
1827
1827
  i.value != null && (i.value.duration == 1 / 0 || Number.isNaN(i.value.duration)) && (i.value.currentTime = 1e101, i.value.addEventListener("timeupdate", () => {
@@ -2006,7 +2006,7 @@ const ni = /* @__PURE__ */ O(Xs, [["render", ti]]), ai = { key: 0 }, fi = { key:
2006
2006
  const n = e, a = b(""), f = b(), i = b(), s = se("chatAppId"), { setMessageFile: u, resetMessageFile: c, getMessage: A, setRecordingMessage: d } = Se(s), g = P(() => !A().file), p = () => {
2007
2007
  const T = document.getElementById("chat-input-file-line-" + s);
2008
2008
  T && (T.style.display = "none"), c(), i.value = void 0, a.value = "";
2009
- }, M = async () => {
2009
+ }, _ = async () => {
2010
2010
  var T, I;
2011
2011
  p(), (T = f.value) != null && T.files && k((I = f.value) == null ? void 0 : I.files[0]);
2012
2012
  }, h = (T) => {
@@ -2020,8 +2020,8 @@ const ni = /* @__PURE__ */ O(Xs, [["render", ti]]), ai = { key: 0 }, fi = { key:
2020
2020
  for (let w of I)
2021
2021
  if (w.type.indexOf("image") !== -1) {
2022
2022
  T.preventDefault();
2023
- const _ = w.getAsFile();
2024
- _ && k(_);
2023
+ const M = w.getAsFile();
2024
+ M && k(M);
2025
2025
  }
2026
2026
  }
2027
2027
  }, k = async (T) => {
@@ -2068,7 +2068,7 @@ const ni = /* @__PURE__ */ O(Xs, [["render", ti]]), ai = { key: 0 }, fi = { key:
2068
2068
  ref: f,
2069
2069
  style: { display: "none" },
2070
2070
  type: "file",
2071
- onChange: M
2071
+ onChange: _
2072
2072
  }, null, 544),
2073
2073
  D(A)().file ? (l(), U(we, {
2074
2074
  key: 2,
@@ -2142,9 +2142,9 @@ const ni = /* @__PURE__ */ O(Xs, [["render", ti]]), ai = { key: 0 }, fi = { key:
2142
2142
  },
2143
2143
  emits: ["click", "buttonClick", "menuMouseEnter", "menuMouseLeave"],
2144
2144
  setup(e, { expose: t, emit: n }) {
2145
- const a = se("chatAppId"), f = se("extChatAppId"), { getTheme: i } = ze(a), s = e, u = Ma(), c = n, A = b(), d = b(), g = b(!1), p = (w) => {
2145
+ const a = se("chatAppId"), f = se("extChatAppId"), { getTheme: i } = ze(a), s = e, u = _a(), c = n, A = b(), d = b(), g = b(!1), p = (w) => {
2146
2146
  I(), c("click", w);
2147
- }, M = () => {
2147
+ }, _ = () => {
2148
2148
  s.disabled || (s.mode == "click" && !g.value ? T() : s.mode == "click" && g.value && I(), c("buttonClick"));
2149
2149
  }, h = () => {
2150
2150
  s.disabled || s.mode == "hover" && T();
@@ -2156,16 +2156,16 @@ const ni = /* @__PURE__ */ O(Xs, [["render", ti]]), ai = { key: 0 }, fi = { key:
2156
2156
  c("menuMouseLeave"), s.disabled || s.mode == "hover" && I();
2157
2157
  }, T = () => {
2158
2158
  if (d.value && A.value) {
2159
- const w = A.value, _ = d.value.getBoundingClientRect();
2159
+ const w = A.value, M = d.value.getBoundingClientRect();
2160
2160
  w.style.display = "inherit";
2161
2161
  const N = A.value.getBoundingClientRect();
2162
2162
  w.style.display = "none", Te(() => {
2163
2163
  const V = {
2164
- left: { top: _.top - (N.height - _.height) / 2 - N.top, left: _.left - N.width - N.left },
2165
- right: { top: _.top - (N.height - _.height) / 2 - N.top, left: _.left + _.width - N.left },
2166
- bottom: { top: (_ == null ? void 0 : _.bottom) - N.top, left: (_ == null ? void 0 : _.left) - (N.width - _.width) / 2 - N.left },
2167
- top: { top: _.top - N.height - N.top, left: (_ == null ? void 0 : _.left) - (N.width - _.width) / 2 - N.left },
2168
- "top-right": { top: _.top - N.height, left: _.right - N.width / 2 }
2164
+ left: { top: M.top - (N.height - M.height) / 2 - N.top, left: M.left - N.width - N.left },
2165
+ right: { top: M.top - (N.height - M.height) / 2 - N.top, left: M.left + M.width - N.left },
2166
+ bottom: { top: (M == null ? void 0 : M.bottom) - N.top, left: (M == null ? void 0 : M.left) - (N.width - M.width) / 2 - N.left },
2167
+ top: { top: M.top - N.height - N.top, left: (M == null ? void 0 : M.left) - (N.width - M.width) / 2 - N.left },
2168
+ "top-right": { top: M.top - N.height, left: M.right - N.width / 2 }
2169
2169
  };
2170
2170
  w.style.top = V[s.menuSide].top + "px", w.style.left = V[s.menuSide].left + "px", w.style.opacity = "1", w.style.display = "inherit", g.value = !0;
2171
2171
  });
@@ -2182,12 +2182,12 @@ const ni = /* @__PURE__ */ O(Xs, [["render", ti]]), ai = { key: 0 }, fi = { key:
2182
2182
  Te(() => {
2183
2183
  A.value = document.getElementById("context-menu-" + u + f), A.value && (I(), document.addEventListener("click", C));
2184
2184
  });
2185
- }), Mt(() => {
2185
+ }), _t(() => {
2186
2186
  document.removeEventListener("click", C);
2187
2187
  }), t({
2188
2188
  updatePosition: T,
2189
2189
  hideMenu: I
2190
- }), (w, _) => (l(), r("button", {
2190
+ }), (w, M) => (l(), r("button", {
2191
2191
  id: "container-" + D(u) + D(f),
2192
2192
  ref_key: "actionScope",
2193
2193
  ref: d,
@@ -2195,7 +2195,7 @@ const ni = /* @__PURE__ */ O(Xs, [["render", ti]]), ai = { key: 0 }, fi = { key:
2195
2195
  onMouseenter: h,
2196
2196
  onMouseleave: y
2197
2197
  }, [
2198
- o("div", { onClick: M }, [
2198
+ o("div", { onClick: _ }, [
2199
2199
  ie(w.$slots, "default")
2200
2200
  ]),
2201
2201
  (l(), U(we, { to: "body" }, [
@@ -2245,11 +2245,11 @@ const gi = /* @__PURE__ */ O(ui, [["render", di]]), mi = ["data-theme"], pi = /*
2245
2245
  })), c = () => {
2246
2246
  i.value = !0, Te(() => {
2247
2247
  if (a.value && f.value) {
2248
- const d = f.value, g = a.value.getBoundingClientRect(), p = f.value.getBoundingClientRect(), M = p.left < 0 ? p.left : 0, h = p.top < 0 ? p.top : 0, y = {
2249
- left: { top: g.top - (p.height - g.height) / 2 - h, left: (g == null ? void 0 : g.left) - p.width - M - s.offset },
2250
- right: { top: g.top - (p.height - g.height) / 2 - h, left: (g == null ? void 0 : g.left) + g.width - M + s.offset },
2251
- bottom: { top: (g == null ? void 0 : g.bottom) - h + s.offset, left: (g == null ? void 0 : g.left) - M },
2252
- top: { top: g.top - p.height - s.offset - h, left: (g == null ? void 0 : g.left) - M }
2248
+ const d = f.value, g = a.value.getBoundingClientRect(), p = f.value.getBoundingClientRect(), _ = p.left < 0 ? p.left : 0, h = p.top < 0 ? p.top : 0, y = {
2249
+ left: { top: g.top - (p.height - g.height) / 2 - h, left: (g == null ? void 0 : g.left) - p.width - _ - s.offset },
2250
+ right: { top: g.top - (p.height - g.height) / 2 - h, left: (g == null ? void 0 : g.left) + g.width - _ + s.offset },
2251
+ bottom: { top: (g == null ? void 0 : g.bottom) - h + s.offset, left: (g == null ? void 0 : g.left) - _ },
2252
+ top: { top: g.top - p.height - s.offset - h, left: (g == null ? void 0 : g.left) - _ }
2253
2253
  };
2254
2254
  d.style.top = y[s.position].top + "px", d.style.left = y[s.position].left + "px";
2255
2255
  }
@@ -2286,7 +2286,7 @@ const gi = /* @__PURE__ */ O(ui, [["render", di]]), mi = ["data-theme"], pi = /*
2286
2286
  ]))
2287
2287
  ], 64));
2288
2288
  }
2289
- }), nt = /* @__PURE__ */ O(pi, [["__scopeId", "data-v-7a657200"]]), hi = { class: "sidebar__scroll-container" }, vi = ["onClick"], yi = ["src", "alt"], bi = { key: 0 }, _i = ["onClick"], Mi = ["src", "alt"], wi = ["src"], Ci = { key: 2 }, Ii = { class: "sidebar__settings-container" }, ki = { class: "sidebar__settings-btn" }, Di = {
2289
+ }), nt = /* @__PURE__ */ O(pi, [["__scopeId", "data-v-7a657200"]]), hi = { class: "sidebar__scroll-container" }, vi = ["onClick"], yi = ["src", "alt"], bi = { key: 0 }, Mi = ["onClick"], _i = ["src", "alt"], wi = ["src"], Ci = { key: 2 }, Ii = { class: "sidebar__settings-container" }, ki = { class: "sidebar__settings-btn" }, Di = {
2290
2290
  __name: "SideBar",
2291
2291
  props: {
2292
2292
  sidebarItems: {
@@ -2308,34 +2308,34 @@ const gi = /* @__PURE__ */ O(ui, [["render", di]]), mi = ["data-theme"], pi = /*
2308
2308
  emits: ["selectItem"],
2309
2309
  setup(e, { emit: t }) {
2310
2310
  const n = e, a = Pa(n, "sidebarItems"), f = Pa(n, "menuActions"), i = t, s = P(
2311
- () => a.value.filter((_) => _.isFixedBottom).sort((_, N) => N.notificationCount - _.notificationCount)
2311
+ () => a.value.filter((M) => M.isFixedBottom).sort((M, N) => N.notificationCount - M.notificationCount)
2312
2312
  ), u = P(
2313
- () => a.value.filter((_) => !_.isFixedBottom).sort((_, N) => N.notificationCount - _.notificationCount)
2314
- ), c = (_) => {
2315
- const N = a.value.find((V) => V.itemId === _);
2313
+ () => a.value.filter((M) => !M.isFixedBottom).sort((M, N) => N.notificationCount - M.notificationCount)
2314
+ ), c = (M) => {
2315
+ const N = a.value.find((V) => V.itemId === M);
2316
2316
  i("selectItem", N);
2317
- }, A = (_, N) => {
2318
- C(_.currentTarget), c(N);
2319
- }, d = (_) => {
2320
- const N = _.split(" ");
2321
- return N.length > 2 ? N.slice(0, 2).join(" ") : _;
2322
- }, g = (_) => {
2323
- console.log("Выбрано действие:", _), typeof _.action == "function" && _.action();
2317
+ }, A = (M, N) => {
2318
+ C(M.currentTarget), c(N);
2319
+ }, d = (M) => {
2320
+ const N = M.split(" ");
2321
+ return N.length > 2 ? N.slice(0, 2).join(" ") : M;
2322
+ }, g = (M) => {
2323
+ console.log("Выбрано действие:", M), typeof M.action == "function" && M.action();
2324
2324
  }, p = () => {
2325
2325
  console.log("Кнопка меню была нажата");
2326
- }, M = b(null), h = b(!1), y = b(0), m = b(40), k = b(!1), T = (_) => {
2327
- const N = M.value;
2328
- if (!N || !_) return 0;
2329
- const V = N.getBoundingClientRect(), z = _.getBoundingClientRect(), X = z.top + z.height / 2 - V.top - m.value / 2;
2326
+ }, _ = b(null), h = b(!1), y = b(0), m = b(40), k = b(!1), T = (M) => {
2327
+ const N = _.value;
2328
+ if (!N || !M) return 0;
2329
+ const V = N.getBoundingClientRect(), z = M.getBoundingClientRect(), X = z.top + z.height / 2 - V.top - m.value / 2;
2330
2330
  return Math.max(0, X);
2331
2331
  }, I = () => {
2332
- if (!M.value) return;
2333
- const N = M.value.querySelector(".sidebar__image--active");
2332
+ if (!_.value) return;
2333
+ const N = _.value.querySelector(".sidebar__image--active");
2334
2334
  N ? (y.value = T(N), h.value = !0) : h.value = !1;
2335
- }, C = (_) => {
2335
+ }, C = (M) => {
2336
2336
  try {
2337
- if (!_ || !M.value) return;
2338
- const N = _.querySelector(".sidebar__image");
2337
+ if (!M || !_.value) return;
2338
+ const N = M.querySelector(".sidebar__image");
2339
2339
  if (!N) return;
2340
2340
  const V = T(N), z = 12, Y = 160;
2341
2341
  k.value = !0, m.value = z, setTimeout(() => {
@@ -2351,22 +2351,22 @@ const gi = /* @__PURE__ */ O(ui, [["render", di]]), mi = ["data-theme"], pi = /*
2351
2351
  return me(() => {
2352
2352
  var N;
2353
2353
  Te(I), window.addEventListener("resize", w);
2354
- const _ = (N = M.value) == null ? void 0 : N.querySelector(".sidebar__scroll-container");
2355
- _ && _.addEventListener("scroll", I);
2356
- }), Mt(() => {
2354
+ const M = (N = _.value) == null ? void 0 : N.querySelector(".sidebar__scroll-container");
2355
+ M && M.addEventListener("scroll", I);
2356
+ }), _t(() => {
2357
2357
  var N;
2358
2358
  window.removeEventListener("resize", w);
2359
- const _ = (N = M.value) == null ? void 0 : N.querySelector(".sidebar__scroll-container");
2360
- _ && _.removeEventListener("scroll", I);
2361
- }), ae(() => a.value.map((_) => _.selected), () => Te(I)), (_, N) => (l(), r("div", {
2359
+ const M = (N = _.value) == null ? void 0 : N.querySelector(".sidebar__scroll-container");
2360
+ M && M.removeEventListener("scroll", I);
2361
+ }), ae(() => a.value.map((M) => M.selected), () => Te(I)), (M, N) => (l(), r("div", {
2362
2362
  ref_key: "containerRef",
2363
- ref: M,
2363
+ ref: _,
2364
2364
  class: j(["sidebar__container", { "sidebar-horizontal__container": e.horizontal }])
2365
2365
  }, [
2366
2366
  !e.horizontal && h.value ? (l(), r("span", {
2367
2367
  key: 0,
2368
2368
  class: j(["sidebar__selected-bar", { "is-animating": k.value }]),
2369
- style: de({ top: y.value + "px", height: m.value + "px" })
2369
+ style: ce({ top: y.value + "px", height: m.value + "px" })
2370
2370
  }, null, 6)) : v("", !0),
2371
2371
  o("div", hi, [
2372
2372
  o("ul", {
@@ -2422,7 +2422,7 @@ const gi = /* @__PURE__ */ O(ui, [["render", di]]), mi = ["data-theme"], pi = /*
2422
2422
  "sidebar__image--active": V.selected === !0,
2423
2423
  "sidebar-horizontal__image": e.horizontal
2424
2424
  }])
2425
- }, null, 10, Mi)
2425
+ }, null, 10, _i)
2426
2426
  ]),
2427
2427
  _: 2
2428
2428
  }, 1032, ["text"])) : (l(), r("img", {
@@ -2435,7 +2435,7 @@ const gi = /* @__PURE__ */ O(ui, [["render", di]]), mi = ["data-theme"], pi = /*
2435
2435
  }])
2436
2436
  }, null, 10, wi)),
2437
2437
  V.notificationCount ? (l(), r("span", Ci, x(V.notificationCount > 99 ? "99+" : V.notificationCount), 1)) : v("", !0)
2438
- ], 10, _i))), 128))
2438
+ ], 10, Mi))), 128))
2439
2439
  ], 2)
2440
2440
  ]),
2441
2441
  o("div", Ii, [
@@ -2672,7 +2672,7 @@ const J4 = (e, t = null) => {
2672
2672
  if (Number(I["lastActivity.timestamp"]) > Number(C["lastActivity.timestamp"])) return -1;
2673
2673
  if (Number(I["lastActivity.timestamp"]) < Number(C["lastActivity.timestamp"])) return 1;
2674
2674
  if (Number(I["lastActivity.timestamp"]) == Number(C["lastActivity.timestamp"])) return 0;
2675
- }), M = P(() => Ct(n.chat["lastMessage.status"]));
2675
+ }), _ = P(() => Ct(n.chat["lastMessage.status"]));
2676
2676
  let h;
2677
2677
  const y = b(0), m = [Ne("component.ChatItem.typing") + ".", Ne("component.ChatItem.typing") + "..", Ne("component.ChatItem.typing") + "..."], k = P(() => n.chat.typing ? m[y.value] : n.chat.lastMessage);
2678
2678
  ae(
@@ -2698,7 +2698,7 @@ const J4 = (e, t = null) => {
2698
2698
  o("div", Fi, [
2699
2699
  o("span", {
2700
2700
  class: "chat-item__status-user",
2701
- style: de({ backgroundColor: n.chat.status })
2701
+ style: ce({ backgroundColor: n.chat.status })
2702
2702
  }, null, 4),
2703
2703
  n.chat.avatar ? (l(), r("img", {
2704
2704
  key: 0,
@@ -2750,7 +2750,7 @@ const J4 = (e, t = null) => {
2750
2750
  e.chat.countUnread < 1 ? (l(), r("div", Gi, [
2751
2751
  D(wt).includes(e.chat["lastMessage.status"]) ? (l(), r("div", {
2752
2752
  key: 0,
2753
- class: j(["chat-item__status-message", M.value])
2753
+ class: j(["chat-item__status-message", _.value])
2754
2754
  }, [
2755
2755
  e.chat["lastMessage.status"] !== "sent" ? (l(), r("span", Xi)) : v("", !0),
2756
2756
  C[4] || (C[4] = o("span", { class: "pi pi-check" }, null, -1))
@@ -2781,7 +2781,7 @@ const J4 = (e, t = null) => {
2781
2781
  (l(!0), r(K, null, oe(p(), (w) => (l(), r("div", {
2782
2782
  key: w.dialogId,
2783
2783
  class: j(["dialog__item", d(w)]),
2784
- onClick: (_) => c(w)
2784
+ onClick: (M) => c(w)
2785
2785
  }, [
2786
2786
  w.icon ? (l(), r("img", {
2787
2787
  key: 0,
@@ -2797,7 +2797,7 @@ const J4 = (e, t = null) => {
2797
2797
  w.countUnread > 0 ? (l(), r("div", {
2798
2798
  key: 2,
2799
2799
  class: "chat-item__unread",
2800
- style: de({ backgroundColor: w.colorUnread ? w.colorUnread : null })
2800
+ style: ce({ backgroundColor: w.colorUnread ? w.colorUnread : null })
2801
2801
  }, x(w.countUnread > 99 ? "99+" : w.countUnread), 5)) : v("", !0)
2802
2802
  ], 10, fo))), 128))
2803
2803
  ])) : v("", !0)
@@ -2854,7 +2854,7 @@ const mo = /* @__PURE__ */ O(uo, [["render", go]]), po = { class: "chat-filter__
2854
2854
  }, null, 40, vo)
2855
2855
  ]));
2856
2856
  }
2857
- }, bo = /* @__PURE__ */ O(yo, [["__scopeId", "data-v-cc7024aa"]]), _o = {}, Mo = {
2857
+ }, bo = /* @__PURE__ */ O(yo, [["__scopeId", "data-v-cc7024aa"]]), Mo = {}, _o = {
2858
2858
  width: "22",
2859
2859
  height: "22",
2860
2860
  viewBox: "0 0 22 22",
@@ -2862,14 +2862,14 @@ const mo = /* @__PURE__ */ O(uo, [["render", go]]), po = { class: "chat-filter__
2862
2862
  xmlns: "http://www.w3.org/2000/svg"
2863
2863
  };
2864
2864
  function wo(e, t) {
2865
- return l(), r("svg", Mo, t[0] || (t[0] = [
2865
+ return l(), r("svg", _o, t[0] || (t[0] = [
2866
2866
  o("path", {
2867
2867
  d: "M8.25 11C9.34402 11 10.3932 10.5654 11.1668 9.79182C11.9404 9.01823 12.375 7.96902 12.375 6.875C12.375 5.78098 11.9404 4.73177 11.1668 3.95818C10.3932 3.1846 9.34402 2.75 8.25 2.75C7.15598 2.75 6.10677 3.1846 5.33318 3.95818C4.5596 4.73177 4.125 5.78098 4.125 6.875C4.125 7.96902 4.5596 9.01823 5.33318 9.79182C6.10677 10.5654 7.15598 11 8.25 11ZM1.375 19.25C1.375 19.25 0 19.25 0 17.875C0 16.5 1.375 12.375 8.25 12.375C15.125 12.375 16.5 16.5 16.5 17.875C16.5 19.25 15.125 19.25 15.125 19.25H1.375ZM15.125 4.8125C15.125 4.63016 15.1974 4.4553 15.3264 4.32636C15.4553 4.19743 15.6302 4.125 15.8125 4.125H21.3125C21.4948 4.125 21.6697 4.19743 21.7986 4.32636C21.9276 4.4553 22 4.63016 22 4.8125C22 4.99484 21.9276 5.1697 21.7986 5.29864C21.6697 5.42757 21.4948 5.5 21.3125 5.5H15.8125C15.6302 5.5 15.4553 5.42757 15.3264 5.29864C15.1974 5.1697 15.125 4.99484 15.125 4.8125ZM15.8125 8.25C15.6302 8.25 15.4553 8.32243 15.3264 8.45136C15.1974 8.5803 15.125 8.75516 15.125 8.9375C15.125 9.11984 15.1974 9.2947 15.3264 9.42364C15.4553 9.55257 15.6302 9.625 15.8125 9.625H21.3125C21.4948 9.625 21.6697 9.55257 21.7986 9.42364C21.9276 9.2947 22 9.11984 22 8.9375C22 8.75516 21.9276 8.5803 21.7986 8.45136C21.6697 8.32243 21.4948 8.25 21.3125 8.25H15.8125ZM18.5625 12.375C18.3802 12.375 18.2053 12.4474 18.0764 12.5764C17.9474 12.7053 17.875 12.8802 17.875 13.0625C17.875 13.2448 17.9474 13.4197 18.0764 13.5486C18.2053 13.6776 18.3802 13.75 18.5625 13.75H21.3125C21.4948 13.75 21.6697 13.6776 21.7986 13.5486C21.9276 13.4197 22 13.2448 22 13.0625C22 12.8802 21.9276 12.7053 21.7986 12.5764C21.6697 12.4474 21.4948 12.375 21.3125 12.375H18.5625ZM18.5625 16.5C18.3802 16.5 18.2053 16.5724 18.0764 16.7014C17.9474 16.8303 17.875 17.0052 17.875 17.1875C17.875 17.3698 17.9474 17.5447 18.0764 17.6736C18.2053 17.8026 18.3802 17.875 18.5625 17.875H21.3125C21.4948 17.875 21.6697 17.8026 21.7986 17.6736C21.9276 17.5447 22 17.3698 22 17.1875C22 17.0052 21.9276 16.8303 21.7986 16.7014C21.6697 16.5724 21.4948 16.5 21.3125 16.5H18.5625Z",
2868
2868
  fill: "#5F5F5F"
2869
2869
  }, null, -1)
2870
2870
  ]));
2871
2871
  }
2872
- const Co = /* @__PURE__ */ O(_o, [["render", wo]]), Io = ["fill"], ko = {
2872
+ const Co = /* @__PURE__ */ O(Mo, [["render", wo]]), Io = ["fill"], ko = {
2873
2873
  __name: "CheckIcon",
2874
2874
  props: {
2875
2875
  fillColor: {
@@ -2884,7 +2884,7 @@ const Co = /* @__PURE__ */ O(_o, [["render", wo]]), Io = ["fill"], ko = {
2884
2884
  viewBox: "0 0 14 14",
2885
2885
  fill: "none",
2886
2886
  xmlns: "http://www.w3.org/2000/svg",
2887
- style: de({ color: e.fillColor })
2887
+ style: ce({ color: e.fillColor })
2888
2888
  }, [
2889
2889
  o("path", {
2890
2890
  d: "M11.1436 3.47369C11.2033 3.41276 11.2745 3.36436 11.3532 3.33131C11.4318 3.29827 11.5163 3.28125 11.6016 3.28125C11.6869 3.28125 11.7714 3.29827 11.85 3.33131C11.9287 3.36436 12 3.41276 12.0597 3.47369C12.3099 3.72657 12.3134 4.13519 12.0684 4.39244L6.89456 10.5087C6.83581 10.5732 6.76453 10.625 6.68506 10.661C6.60559 10.6971 6.51962 10.7165 6.43239 10.7181C6.34516 10.7198 6.25851 10.7036 6.17775 10.6706C6.09698 10.6376 6.0238 10.5884 5.96268 10.5262L2.81443 7.33594C2.69301 7.21212 2.625 7.04561 2.625 6.87219C2.625 6.69877 2.69301 6.53227 2.81443 6.40844C2.87415 6.34751 2.94542 6.29911 3.02407 6.26606C3.10272 6.23302 3.18718 6.216 3.27249 6.216C3.35781 6.216 3.44226 6.23302 3.52092 6.26606C3.59957 6.29911 3.67084 6.34751 3.73056 6.40844L6.40106 9.11482L11.1261 3.49294L11.1436 3.47369Z",
@@ -2982,11 +2982,11 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
2982
2982
  if (!A.value) return n.channels[0] || null;
2983
2983
  const y = c(A.value.value);
2984
2984
  return y ? n.channels.find((k) => {
2985
- var _, N;
2986
- const T = ((_ = k.title) == null ? void 0 : _.toLowerCase()) || "", I = ((N = k.channelId) == null ? void 0 : N.toLowerCase()) || "", C = T.includes(y), w = ["whatsapp", "waba", "telegram"].some((V) => I.includes(V));
2985
+ var M, N;
2986
+ const T = ((M = k.title) == null ? void 0 : M.toLowerCase()) || "", I = ((N = k.channelId) == null ? void 0 : N.toLowerCase()) || "", C = T.includes(y), w = ["whatsapp", "waba", "telegram"].some((V) => I.includes(V));
2987
2987
  return C && w;
2988
2988
  }) || n.channels[0] || { title: "default", channelId: "fallback" } : n.channels[0] || null;
2989
- }), g = P(() => n.channels), p = (y) => y ? y.includes("whatsapp") || y.includes("waba") ? To : y.includes("telegram") ? Vo : null : null, M = (y) => !n.currentDialog || !Object.keys(n.currentDialog) ? !1 : n.currentDialog.attributeId === y.id, h = (y) => {
2989
+ }), g = P(() => n.channels), p = (y) => y ? y.includes("whatsapp") || y.includes("waba") ? To : y.includes("telegram") ? Vo : null : null, _ = (y) => !n.currentDialog || !Object.keys(n.currentDialog) ? !1 : n.currentDialog.attributeId === y.id, h = (y) => {
2990
2990
  a("select-attribute-channel", {
2991
2991
  attributeId: y.id,
2992
2992
  channelId: i.value.channelId
@@ -3003,12 +3003,12 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
3003
3003
  var k, T, I, C;
3004
3004
  return l(), r("div", Oo, [
3005
3005
  o("div", zo, [
3006
- (l(!0), r(K, null, oe(((k = e.contact) == null ? void 0 : k.attributes) || [], (w, _) => (l(), r("div", {
3006
+ (l(!0), r(K, null, oe(((k = e.contact) == null ? void 0 : k.attributes) || [], (w, M) => (l(), r("div", {
3007
3007
  key: w.id,
3008
- class: j(["contact-info__attribute-item", { "contact-info__attribute-item--current-chat": M(w) }])
3008
+ class: j(["contact-info__attribute-item", { "contact-info__attribute-item--current-chat": _(w) }])
3009
3009
  }, [
3010
3010
  ge(o("input", {
3011
- id: `attr-${_}`,
3011
+ id: `attr-${M}`,
3012
3012
  "onUpdate:modelValue": m[0] || (m[0] = (N) => f.value = N),
3013
3013
  type: "radio",
3014
3014
  value: w.id,
@@ -3017,7 +3017,7 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
3017
3017
  [wa, f.value]
3018
3018
  ]),
3019
3019
  o("label", {
3020
- for: `attr-${_}`
3020
+ for: `attr-${M}`
3021
3021
  }, [
3022
3022
  o("span", Bo, [
3023
3023
  o("span", $o, [
@@ -3025,7 +3025,7 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
3025
3025
  ])
3026
3026
  ]),
3027
3027
  Qt(" " + x(w.value) + " ", 1),
3028
- M(w) ? (l(), r("span", Ro, " Текущий чат ")) : v("", !0)
3028
+ _(w) ? (l(), r("span", Ro, " Текущий чат ")) : v("", !0)
3029
3029
  ], 8, Uo)
3030
3030
  ], 2))), 128))
3031
3031
  ]),
@@ -3057,7 +3057,7 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
3057
3057
  (l(!0), r(K, null, oe(g.value, (w) => (l(), r("div", {
3058
3058
  key: w.channelId,
3059
3059
  class: "contact-info__select-option",
3060
- onClick: (_) => u(w)
3060
+ onClick: (M) => u(w)
3061
3061
  }, [
3062
3062
  o("div", Wo, [
3063
3063
  w.icon ? (l(), r("img", {
@@ -3101,7 +3101,7 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
3101
3101
  }, ml = ["onClick"], pl = { class: "template-selector__item-template-info" }, hl = { class: "template-selector__item-title" }, vl = { class: "template-selector__item-text" }, yl = {
3102
3102
  key: 1,
3103
3103
  class: "template-selector__plug"
3104
- }, bl = ["id"], _l = { class: "template-selector__preview-container" }, Ml = {
3104
+ }, bl = ["id"], Ml = { class: "template-selector__preview-container" }, _l = {
3105
3105
  key: 0,
3106
3106
  class: "template-selector__preview"
3107
3107
  }, wl = { class: "template-selector__preview-wrapper" }, Cl = { class: "template-selector__preview-text" }, Il = {
@@ -3130,22 +3130,22 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
3130
3130
  setup(e, { emit: t }) {
3131
3131
  const n = e, a = se("chatAppId"), { setMessageText: f } = Se(a), i = () => {
3132
3132
  s("closeTemplateWindow"), f(c.value.template);
3133
- }, s = t, u = b(null), c = b(null), A = b(""), d = b(), g = b(""), p = b(""), M = b(""), h = b(!1), y = P(() => !!(h.value && (M.value == "grid" && p.value == "none" || p.value == "grid" && g.value == "none"))), m = P(() => !!(h.value && (g.value == "grid" && p.value == "none" || p.value == "grid" && M.value == "none"))), k = () => {
3134
- h.value && (p.value == "grid" ? I() : M.value == "grid" && w());
3133
+ }, s = t, u = b(null), c = b(null), A = b(""), d = b(), g = b(""), p = b(""), _ = b(""), h = b(!1), y = P(() => !!(h.value && (_.value == "grid" && p.value == "none" || p.value == "grid" && g.value == "none"))), m = P(() => !!(h.value && (g.value == "grid" && p.value == "none" || p.value == "grid" && _.value == "none"))), k = () => {
3134
+ h.value && (p.value == "grid" ? I() : _.value == "grid" && w());
3135
3135
  }, T = () => {
3136
3136
  h.value && (p.value == "grid" ? C() : g.value == "grid" && w());
3137
3137
  }, I = () => {
3138
3138
  const $ = document.getElementById("template-selector-container-" + a);
3139
- $.style.setProperty("--chotto-template-first-col-display", "grid"), $.style.setProperty("--chotto-template-second-col-display", "none"), _();
3139
+ $.style.setProperty("--chotto-template-first-col-display", "grid"), $.style.setProperty("--chotto-template-second-col-display", "none"), M();
3140
3140
  }, C = () => {
3141
3141
  const $ = document.getElementById("template-selector-container-" + a);
3142
- $.style.setProperty("--chotto-template-third-col-display", "grid"), $.style.setProperty("--chotto-template-second-col-display", "none"), _();
3142
+ $.style.setProperty("--chotto-template-third-col-display", "grid"), $.style.setProperty("--chotto-template-second-col-display", "none"), M();
3143
3143
  }, w = () => {
3144
3144
  const $ = document.getElementById("template-selector-container-" + a);
3145
- $.style.setProperty("--chotto-template-second-col-display", "grid"), $.style.setProperty("--chotto-template-first-col-display", "none"), $.style.setProperty("--chotto-template-third-col-display", "none"), _();
3146
- }, _ = () => {
3145
+ $.style.setProperty("--chotto-template-second-col-display", "grid"), $.style.setProperty("--chotto-template-first-col-display", "none"), $.style.setProperty("--chotto-template-third-col-display", "none"), M();
3146
+ }, M = () => {
3147
3147
  const $ = document.getElementById("template-selector-container-" + a), R = window.getComputedStyle($);
3148
- g.value = R.getPropertyValue("--chotto-template-first-col-display"), p.value = R.getPropertyValue("--chotto-template-second-col-display"), M.value = R.getPropertyValue("--chotto-template-third-col-display");
3148
+ g.value = R.getPropertyValue("--chotto-template-first-col-display"), p.value = R.getPropertyValue("--chotto-template-second-col-display"), _.value = R.getPropertyValue("--chotto-template-third-col-display");
3149
3149
  }, N = ($) => {
3150
3150
  n.templates.forEach((R) => R.isSelected = !1), $.isSelected = !0, c.value = $, C();
3151
3151
  }, V = () => {
@@ -3158,7 +3158,7 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
3158
3158
  R > 700 && (h.value = !1), R < 700 && (h.value = !0);
3159
3159
  });
3160
3160
  return me(() => {
3161
- _(), D(d) && X.observe(D(d));
3161
+ M(), D(d) && X.observe(D(d));
3162
3162
  }), ($, R) => (l(), r("div", Go, [
3163
3163
  o("div", {
3164
3164
  id: "template-selector-container-" + D(a),
@@ -3234,7 +3234,7 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
3234
3234
  type: "text",
3235
3235
  placeholder: "Поиск шаблона"
3236
3236
  }, null, 512), [
3237
- [_t, A.value]
3237
+ [Mt, A.value]
3238
3238
  ])
3239
3239
  ]),
3240
3240
  o("div", dl, [
@@ -3256,8 +3256,8 @@ const Vo = /* @__PURE__ */ O(Eo, [["render", So]]), Oo = { class: "contact-info"
3256
3256
  id: "template-selector-third-col-" + D(a),
3257
3257
  class: "template-selector__third-col"
3258
3258
  }, [
3259
- o("div", _l, [
3260
- c.value ? (l(), r("div", Ml, [
3259
+ o("div", Ml, [
3260
+ c.value ? (l(), r("div", _l, [
3261
3261
  o("div", wl, [
3262
3262
  o("p", Cl, x(c.value.template), 1),
3263
3263
  R[3] || (R[3] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
@@ -3421,7 +3421,7 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3421
3421
  }
3422
3422
  return me(() => {
3423
3423
  window.addEventListener("keydown", d);
3424
- }), Mt(() => {
3424
+ }), _t(() => {
3425
3425
  window.removeEventListener("keydown", d);
3426
3426
  }), (g, p) => (l(), r("span", {
3427
3427
  id: "placeholder" + D(n) + e.index,
@@ -3429,7 +3429,7 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3429
3429
  ref: s,
3430
3430
  contenteditable: "",
3431
3431
  class: j([{ filled: e.isFilled, empty: !e.isFilled }, "placeholder"]),
3432
- onKeydown: _a(A, ["enter"]),
3432
+ onKeydown: Ma(A, ["enter"]),
3433
3433
  onFocus: u,
3434
3434
  onBlur: c
3435
3435
  }, x(i.value), 43, Vl));
@@ -3504,7 +3504,7 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3504
3504
  });
3505
3505
  }
3506
3506
  }
3507
- }, M = () => {
3507
+ }, _ = () => {
3508
3508
  f.value && (f.value = null, u.value = "");
3509
3509
  };
3510
3510
  return ae(
@@ -3540,7 +3540,7 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3540
3540
  ], 2)) : u.value === "success" && c.value ? (l(), U(qn, {
3541
3541
  key: 1,
3542
3542
  "file-info": c.value,
3543
- onReset: M
3543
+ onReset: _
3544
3544
  }, null, 8, ["file-info"])) : v("", !0),
3545
3545
  s.value ? (l(), r("div", Bl, x(s.value), 1)) : v("", !0)
3546
3546
  ], 64));
@@ -3629,7 +3629,7 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3629
3629
  }, yr = { class: "template-selector__third-col" }, br = {
3630
3630
  key: 0,
3631
3631
  class: "template-selector__preview"
3632
- }, _r = { class: "template-selector__preview-wrapper" }, Mr = { class: "template-selector__preview-text-container" }, wr = { key: 0 }, Cr = {
3632
+ }, Mr = { class: "template-selector__preview-wrapper" }, _r = { class: "template-selector__preview-text-container" }, wr = { key: 0 }, Cr = {
3633
3633
  key: 1,
3634
3634
  class: "template-selector__plug"
3635
3635
  }, Ir = {
@@ -3670,21 +3670,21 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3670
3670
  g.value ? (E.text = Ce.value, E.templateId = d.value.templateId, E.values = H.value, E.file = g.value) : (E.text = Ce.value, E.templateId = d.value.templateId, E.values = H.value), d.value.buttons && (E.buttons = d.value.buttons), f("sendWabaValues", E), $e();
3671
3671
  }, u = (E) => {
3672
3672
  g.value = E;
3673
- }, c = b(null), A = b(null), d = b(null), g = b(null), p = b(""), M = b(!1), h = () => {
3674
- M.value = !M.value, M.value ? (c.value.scrollTop = 0, c.value.style["overflow-y"] = "hidden") : c.value.style["overflow-y"] = "scroll";
3673
+ }, c = b(null), A = b(null), d = b(null), g = b(null), p = b(""), _ = b(!1), h = () => {
3674
+ _.value = !_.value, _.value ? (c.value.scrollTop = 0, c.value.style["overflow-y"] = "hidden") : c.value.style["overflow-y"] = "scroll";
3675
3675
  }, y = (E) => {
3676
3676
  Object.keys(I).forEach((Q) => {
3677
3677
  I[Q] = "";
3678
- }), g.value = null, n.wabaTemplates.forEach((Q) => Q.isSelected = !1), E.isSelected = !0, d.value = E, M.value = !1, fe();
3678
+ }), g.value = null, n.wabaTemplates.forEach((Q) => Q.isSelected = !1), E.isSelected = !0, d.value = E, _.value = !1, fe();
3679
3679
  }, m = () => {
3680
3680
  te(), n.wabaTemplates.forEach((E) => E.isSelected = !1);
3681
3681
  }, k = P(() => A.value ? n.wabaTemplates.filter((E) => E.groupId === A.value.groupId) : n.wabaTemplates), T = P(() => {
3682
3682
  const E = p.value.trim().toLowerCase();
3683
3683
  return k.value.filter((Q) => Q.title.toLowerCase().includes(E) || Q.template.toLowerCase().includes(E));
3684
- }), I = hf({}), C = b(null), w = b(), _ = b(""), N = b(""), V = b(""), z = b(!1), Y = P(() => !!(z.value && (V.value == "grid" && N.value == "none" || N.value == "grid" && _.value == "none"))), X = P(() => !!(z.value && (_.value == "grid" && N.value == "none" || N.value == "grid" && V.value == "none"))), $ = () => {
3684
+ }), I = hf({}), C = b(null), w = b(), M = b(""), N = b(""), V = b(""), z = b(!1), Y = P(() => !!(z.value && (V.value == "grid" && N.value == "none" || N.value == "grid" && M.value == "none"))), X = P(() => !!(z.value && (M.value == "grid" && N.value == "none" || N.value == "grid" && V.value == "none"))), $ = () => {
3685
3685
  z.value && (N.value == "grid" ? ee() : V.value == "grid" && te());
3686
3686
  }, R = () => {
3687
- z.value && (N.value == "grid" ? fe() : _.value == "grid" && te());
3687
+ z.value && (N.value == "grid" ? fe() : M.value == "grid" && te());
3688
3688
  }, ee = () => {
3689
3689
  const E = document.getElementById("waba-template-selector-container-" + a);
3690
3690
  E.style.setProperty("--chotto-waba-template-first-col-display", "grid"), E.style.setProperty("--chotto-waba-template-second-col-display", "none"), console.log(E, window.getComputedStyle(E).getPropertyValue("--waba-template-first-col-display")), re();
@@ -3696,7 +3696,7 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3696
3696
  E.style.setProperty("--chotto-waba-template-second-col-display", "grid"), E.style.setProperty("--chotto-waba-template-first-col-display", "none"), E.style.setProperty("--chotto-waba-template-third-col-display", "none"), re();
3697
3697
  }, re = () => {
3698
3698
  const E = document.getElementById("waba-template-selector-container-" + a), Q = window.getComputedStyle(E);
3699
- _.value = Q.getPropertyValue("--chotto-waba-template-first-col-display"), N.value = Q.getPropertyValue("--chotto-waba-template-second-col-display"), V.value = Q.getPropertyValue("--chotto-waba-template-third-col-display");
3699
+ M.value = Q.getPropertyValue("--chotto-waba-template-first-col-display"), N.value = Q.getPropertyValue("--chotto-waba-template-second-col-display"), V.value = Q.getPropertyValue("--chotto-waba-template-third-col-display");
3700
3700
  }, Ue = (E) => {
3701
3701
  I[E[1]] = E[0];
3702
3702
  }, pe = P(() => {
@@ -3704,10 +3704,10 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3704
3704
  const E = (be = d.value) == null ? void 0 : be.template;
3705
3705
  if (!E) return [];
3706
3706
  const Q = [...E.matchAll(/{{\d+}}/g)], F = [];
3707
- let ce = 0;
3707
+ let ue = 0;
3708
3708
  return Q.forEach((Re) => {
3709
- Re.index > ce && F.push(E.substring(ce, Re.index)), F.push({ index: parseInt(Re[0].slice(2, -2)) }), ce = Re.index + Re[0].length;
3710
- }), ce < E.length && F.push(E.substring(ce)), F;
3709
+ Re.index > ue && F.push(E.substring(ue, Re.index)), F.push({ index: parseInt(Re[0].slice(2, -2)) }), ue = Re.index + Re[0].length;
3710
+ }), ue < E.length && F.push(E.substring(ue)), F;
3711
3711
  }), Be = P(() => {
3712
3712
  var Q, F;
3713
3713
  if (!d.value)
@@ -3771,8 +3771,8 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3771
3771
  o("div", fr, [
3772
3772
  o("div", sr, [
3773
3773
  o("ul", ir, [
3774
- (l(!0), r(K, null, oe(e.groupTemplates, (F, ce) => (l(), r("li", {
3775
- key: ce,
3774
+ (l(!0), r(K, null, oe(e.groupTemplates, (F, ue) => (l(), r("li", {
3775
+ key: ue,
3776
3776
  class: j(["template-selector__item-group", { "template-selector__item-selected": A.value === F }]),
3777
3777
  onClick: m
3778
3778
  }, [
@@ -3784,7 +3784,7 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3784
3784
  alt: F.title
3785
3785
  }, null, 8, lr)) : v("", !0),
3786
3786
  ge(o("input", {
3787
- id: ce,
3787
+ id: ue,
3788
3788
  "onUpdate:modelValue": Q[0] || (Q[0] = (be) => A.value = be),
3789
3789
  value: F,
3790
3790
  class: "template-selector__input-group",
@@ -3805,13 +3805,13 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3805
3805
  type: "text",
3806
3806
  placeholder: "Поиск шаблона"
3807
3807
  }, null, 512), [
3808
- [_t, p.value]
3808
+ [Mt, p.value]
3809
3809
  ])
3810
3810
  ]),
3811
3811
  o("div", Ar, [
3812
3812
  T.value.length !== 0 ? (l(), r("ul", dr, [
3813
- (l(!0), r(K, null, oe(T.value, (F, ce) => (l(), r("li", {
3814
- key: ce,
3813
+ (l(!0), r(K, null, oe(T.value, (F, ue) => (l(), r("li", {
3814
+ key: ue,
3815
3815
  class: j(["template-selector__item-template", { "template-selector__item-selected": F.isSelected }]),
3816
3816
  onClick: (be) => y(F)
3817
3817
  }, [
@@ -3830,15 +3830,15 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3830
3830
  class: "template-selector__preview-container"
3831
3831
  }, [
3832
3832
  pe.value.length > 0 ? (l(), r("div", br, [
3833
- o("div", _r, [
3833
+ o("div", Mr, [
3834
3834
  d.value.type != "TEXT" ? (l(), U(Rl, {
3835
3835
  key: 0,
3836
3836
  type: d.value.type,
3837
3837
  "template-id": d.value.templateId,
3838
3838
  onFileSelected: u
3839
3839
  }, null, 8, ["type", "template-id"])) : v("", !0),
3840
- o("div", Mr, [
3841
- (l(!0), r(K, null, oe(pe.value, (F, ce) => (l(), r(K, { key: ce }, [
3840
+ o("div", _r, [
3841
+ (l(!0), r(K, null, oe(pe.value, (F, ue) => (l(), r(K, { key: ue }, [
3842
3842
  typeof F == "string" ? (l(), r("span", wr, x(F), 1)) : typeof F == "object" ? (l(), U(zl, {
3843
3843
  key: 1,
3844
3844
  index: F.index,
@@ -3857,7 +3857,7 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3857
3857
  }, null, 8, ["buttons"])) : v("", !0)
3858
3858
  ])
3859
3859
  ])) : (l(), r("p", Cr, " Предпросмотр шаблона ")),
3860
- M.value ? (l(), r("div", Ir, [
3860
+ _.value ? (l(), r("div", Ir, [
3861
3861
  o("div", {
3862
3862
  class: "template-selector__semitransparent-overlay",
3863
3863
  onClick: h
@@ -3925,10 +3925,10 @@ const El = /* @__PURE__ */ O(Nl, [["render", Tl]]), jl = { class: "" }, Sl = {
3925
3925
  me(() => {
3926
3926
  s.value.style.display = "none";
3927
3927
  });
3928
- const p = (M) => {
3929
- u("sendWabaValues", M);
3928
+ const p = (_) => {
3929
+ u("sendWabaValues", _);
3930
3930
  };
3931
- return (M, h) => (l(), r(K, null, [
3931
+ return (_, h) => (l(), r(K, null, [
3932
3932
  D(f)().isRecording ? v("", !0) : (l(), r("button", {
3933
3933
  key: 0,
3934
3934
  ref_key: "templateButton",
@@ -16190,8 +16190,8 @@ function oc() {
16190
16190
  const p = e.recent.findIndex((h) => h.u === g.u);
16191
16191
  if (p > 0 && e.recent.splice(p, 1), p === 0)
16192
16192
  return;
16193
- const M = { u: g.u, n: vf(g.n) };
16194
- e.recent = [M, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), A();
16193
+ const _ = { u: g.u, n: vf(g.n) };
16194
+ e.recent = [_, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), A();
16195
16195
  };
16196
16196
  return {
16197
16197
  state: Xf(e),
@@ -16244,7 +16244,7 @@ function bc(e) {
16244
16244
  }));
16245
16245
  });
16246
16246
  }
16247
- function _c(e) {
16247
+ function Mc(e) {
16248
16248
  var t = e.state, n = {
16249
16249
  popper: {
16250
16250
  position: t.options.strategy,
@@ -16268,12 +16268,12 @@ function _c(e) {
16268
16268
  });
16269
16269
  };
16270
16270
  }
16271
- var Mc = {
16271
+ var _c = {
16272
16272
  name: "applyStyles",
16273
16273
  enabled: !0,
16274
16274
  phase: "write",
16275
16275
  fn: bc,
16276
- effect: _c,
16276
+ effect: Mc,
16277
16277
  requires: ["computeStyles"]
16278
16278
  };
16279
16279
  function He(e) {
@@ -16390,8 +16390,8 @@ var kc = function(t, n) {
16390
16390
  function Dc(e) {
16391
16391
  var t, n = e.state, a = e.name, f = e.options, i = n.elements.arrow, s = n.modifiersData.popperOffsets, u = He(n.placement), c = La(u), A = [ye, je].indexOf(u) >= 0, d = A ? "height" : "width";
16392
16392
  if (!(!i || !s)) {
16393
- var g = kc(f.padding, n), p = za(i), M = c === "y" ? ve : ye, h = c === "y" ? Ee : je, y = n.rects.reference[d] + n.rects.reference[c] - s[c] - n.rects.popper[d], m = s[c] - n.rects.reference[c], k = Jt(i), T = k ? c === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0, I = y / 2 - m / 2, C = g[M], w = T - p[d] - g[h], _ = T / 2 - p[d] / 2 + I, N = $t(C, _, w), V = c;
16394
- n.modifiersData[a] = (t = {}, t[V] = N, t.centerOffset = N - _, t);
16393
+ var g = kc(f.padding, n), p = za(i), _ = c === "y" ? ve : ye, h = c === "y" ? Ee : je, y = n.rects.reference[d] + n.rects.reference[c] - s[c] - n.rects.popper[d], m = s[c] - n.rects.reference[c], k = Jt(i), T = k ? c === "y" ? k.clientHeight || 0 : k.clientWidth || 0 : 0, I = y / 2 - m / 2, C = g[_], w = T - p[d] - g[h], M = T / 2 - p[d] / 2 + I, N = $t(C, M, w), V = c;
16394
+ n.modifiersData[a] = (t = {}, t[V] = N, t.centerOffset = N - M, t);
16395
16395
  }
16396
16396
  }
16397
16397
  function Nc(e) {
@@ -16424,17 +16424,17 @@ function Ec(e) {
16424
16424
  };
16425
16425
  }
16426
16426
  function of(e) {
16427
- var t, n = e.popper, a = e.popperRect, f = e.placement, i = e.variation, s = e.offsets, u = e.position, c = e.gpuAcceleration, A = e.adaptive, d = e.roundOffsets, g = e.isFixed, p = d === !0 ? Ec(s) : typeof d == "function" ? d(s) : s, M = p.x, h = M === void 0 ? 0 : M, y = p.y, m = y === void 0 ? 0 : y, k = s.hasOwnProperty("x"), T = s.hasOwnProperty("y"), I = ye, C = ve, w = window;
16427
+ var t, n = e.popper, a = e.popperRect, f = e.placement, i = e.variation, s = e.offsets, u = e.position, c = e.gpuAcceleration, A = e.adaptive, d = e.roundOffsets, g = e.isFixed, p = d === !0 ? Ec(s) : typeof d == "function" ? d(s) : s, _ = p.x, h = _ === void 0 ? 0 : _, y = p.y, m = y === void 0 ? 0 : y, k = s.hasOwnProperty("x"), T = s.hasOwnProperty("y"), I = ye, C = ve, w = window;
16428
16428
  if (A) {
16429
- var _ = Jt(n), N = "clientHeight", V = "clientWidth";
16430
- if (_ === Le(n) && (_ = ft(n), Ke(_).position !== "static" && u === "absolute" && (N = "scrollHeight", V = "scrollWidth")), _ = _, f === ve || (f === ye || f === je) && i === Ht) {
16429
+ var M = Jt(n), N = "clientHeight", V = "clientWidth";
16430
+ if (M === Le(n) && (M = ft(n), Ke(M).position !== "static" && u === "absolute" && (N = "scrollHeight", V = "scrollWidth")), M = M, f === ve || (f === ye || f === je) && i === Ht) {
16431
16431
  C = Ee;
16432
- var z = g && w.visualViewport ? w.visualViewport.height : _[N];
16432
+ var z = g && w.visualViewport ? w.visualViewport.height : M[N];
16433
16433
  m -= z - a.height, m *= c ? 1 : -1;
16434
16434
  }
16435
16435
  if (f === ye || (f === ve || f === Ee) && i === Ht) {
16436
16436
  I = je;
16437
- var Y = g && w.visualViewport ? w.visualViewport.width : _[V];
16437
+ var Y = g && w.visualViewport ? w.visualViewport.width : M[V];
16438
16438
  h -= Y - a.width, h *= c ? 1 : -1;
16439
16439
  }
16440
16440
  }
@@ -16635,11 +16635,11 @@ function Pf(e) {
16635
16635
  }
16636
16636
  function Wt(e, t) {
16637
16637
  t === void 0 && (t = {});
16638
- var n = t, a = n.placement, f = a === void 0 ? e.placement : a, i = n.boundary, s = i === void 0 ? lc : i, u = n.rootBoundary, c = u === void 0 ? Lf : u, A = n.elementContext, d = A === void 0 ? Et : A, g = n.altBoundary, p = g === void 0 ? !1 : g, M = n.padding, h = M === void 0 ? 0 : M, y = Qf(typeof h != "number" ? h : Ff(h, Zt)), m = d === Et ? rc : Et, k = e.rects.popper, T = e.elements[p ? m : d], I = Qc(pt(T) ? T : T.contextElement || ft(e.elements.popper), s, c), C = vt(e.elements.reference), w = Pf({
16638
+ var n = t, a = n.placement, f = a === void 0 ? e.placement : a, i = n.boundary, s = i === void 0 ? lc : i, u = n.rootBoundary, c = u === void 0 ? Lf : u, A = n.elementContext, d = A === void 0 ? Et : A, g = n.altBoundary, p = g === void 0 ? !1 : g, _ = n.padding, h = _ === void 0 ? 0 : _, y = Qf(typeof h != "number" ? h : Ff(h, Zt)), m = d === Et ? rc : Et, k = e.rects.popper, T = e.elements[p ? m : d], I = Qc(pt(T) ? T : T.contextElement || ft(e.elements.popper), s, c), C = vt(e.elements.reference), w = Pf({
16639
16639
  reference: C,
16640
16640
  element: k,
16641
16641
  placement: f
16642
- }), _ = ba(Object.assign({}, k, w)), N = d === Et ? _ : C, V = {
16642
+ }), M = ba(Object.assign({}, k, w)), N = d === Et ? M : C, V = {
16643
16643
  top: I.top - N.top + y.top,
16644
16644
  bottom: N.bottom - I.bottom + y.bottom,
16645
16645
  left: I.left - N.left + y.left,
@@ -16662,7 +16662,7 @@ function Fc(e, t) {
16662
16662
  return A.indexOf(h) >= 0;
16663
16663
  });
16664
16664
  p.length === 0 && (p = g);
16665
- var M = p.reduce(function(h, y) {
16665
+ var _ = p.reduce(function(h, y) {
16666
16666
  return h[y] = Wt(e, {
16667
16667
  placement: y,
16668
16668
  boundary: f,
@@ -16670,8 +16670,8 @@ function Fc(e, t) {
16670
16670
  padding: s
16671
16671
  })[He(y)], h;
16672
16672
  }, {});
16673
- return Object.keys(M).sort(function(h, y) {
16674
- return M[h] - M[y];
16673
+ return Object.keys(_).sort(function(h, y) {
16674
+ return _[h] - _[y];
16675
16675
  });
16676
16676
  }
16677
16677
  function Yc(e) {
@@ -16683,7 +16683,7 @@ function Yc(e) {
16683
16683
  function Pc(e) {
16684
16684
  var t = e.state, n = e.options, a = e.name;
16685
16685
  if (!t.modifiersData[a]._skip) {
16686
- for (var f = n.mainAxis, i = f === void 0 ? !0 : f, s = n.altAxis, u = s === void 0 ? !0 : s, c = n.fallbackPlacements, A = n.padding, d = n.boundary, g = n.rootBoundary, p = n.altBoundary, M = n.flipVariations, h = M === void 0 ? !0 : M, y = n.allowedAutoPlacements, m = t.options.placement, k = He(m), T = k === m, I = c || (T || !h ? [gn(m)] : Yc(m)), C = [m].concat(I).reduce(function(q, E) {
16686
+ for (var f = n.mainAxis, i = f === void 0 ? !0 : f, s = n.altAxis, u = s === void 0 ? !0 : s, c = n.fallbackPlacements, A = n.padding, d = n.boundary, g = n.rootBoundary, p = n.altBoundary, _ = n.flipVariations, h = _ === void 0 ? !0 : _, y = n.allowedAutoPlacements, m = t.options.placement, k = He(m), T = k === m, I = c || (T || !h ? [gn(m)] : Yc(m)), C = [m].concat(I).reduce(function(q, E) {
16687
16687
  return q.concat(He(E) === Oa ? Fc(t, {
16688
16688
  placement: E,
16689
16689
  boundary: d,
@@ -16692,7 +16692,7 @@ function Pc(e) {
16692
16692
  flipVariations: h,
16693
16693
  allowedAutoPlacements: y
16694
16694
  }) : E);
16695
- }, []), w = t.rects.reference, _ = t.rects.popper, N = /* @__PURE__ */ new Map(), V = !0, z = C[0], Y = 0; Y < C.length; Y++) {
16695
+ }, []), w = t.rects.reference, M = t.rects.popper, N = /* @__PURE__ */ new Map(), V = !0, z = C[0], Y = 0; Y < C.length; Y++) {
16696
16696
  var X = C[Y], $ = He(X), R = yt(X) === mt, ee = [ve, Ee].indexOf($) >= 0, fe = ee ? "width" : "height", te = Wt(t, {
16697
16697
  placement: X,
16698
16698
  boundary: d,
@@ -16700,7 +16700,7 @@ function Pc(e) {
16700
16700
  altBoundary: p,
16701
16701
  padding: A
16702
16702
  }), re = ee ? R ? je : ye : R ? Ee : ve;
16703
- w[fe] > _[fe] && (re = gn(re));
16703
+ w[fe] > M[fe] && (re = gn(re));
16704
16704
  var Ue = gn(re), pe = [];
16705
16705
  if (i && pe.push(te[$] <= 0), u && pe.push(te[re] <= 0, te[Ue] <= 0), pe.every(function(q) {
16706
16706
  return q;
@@ -16713,9 +16713,9 @@ function Pc(e) {
16713
16713
  if (V)
16714
16714
  for (var Be = h ? 3 : 1, $e = function(E) {
16715
16715
  var Q = C.find(function(F) {
16716
- var ce = N.get(F);
16717
- if (ce)
16718
- return ce.slice(0, E).every(function(be) {
16716
+ var ue = N.get(F);
16717
+ if (ue)
16718
+ return ue.slice(0, E).every(function(be) {
16719
16719
  return be;
16720
16720
  });
16721
16721
  });
@@ -16822,12 +16822,12 @@ function eu(e) {
16822
16822
  return e === "x" ? "y" : "x";
16823
16823
  }
16824
16824
  function tu(e) {
16825
- var t = e.state, n = e.options, a = e.name, f = n.mainAxis, i = f === void 0 ? !0 : f, s = n.altAxis, u = s === void 0 ? !1 : s, c = n.boundary, A = n.rootBoundary, d = n.altBoundary, g = n.padding, p = n.tether, M = p === void 0 ? !0 : p, h = n.tetherOffset, y = h === void 0 ? 0 : h, m = Wt(t, {
16825
+ var t = e.state, n = e.options, a = e.name, f = n.mainAxis, i = f === void 0 ? !0 : f, s = n.altAxis, u = s === void 0 ? !1 : s, c = n.boundary, A = n.rootBoundary, d = n.altBoundary, g = n.padding, p = n.tether, _ = p === void 0 ? !0 : p, h = n.tetherOffset, y = h === void 0 ? 0 : h, m = Wt(t, {
16826
16826
  boundary: c,
16827
16827
  rootBoundary: A,
16828
16828
  padding: g,
16829
16829
  altBoundary: d
16830
- }), k = He(t.placement), T = yt(t.placement), I = !T, C = La(k), w = eu(C), _ = t.modifiersData.popperOffsets, N = t.rects.reference, V = t.rects.popper, z = typeof y == "function" ? y(Object.assign({}, t.rects, {
16830
+ }), k = He(t.placement), T = yt(t.placement), I = !T, C = La(k), w = eu(C), M = t.modifiersData.popperOffsets, N = t.rects.reference, V = t.rects.popper, z = typeof y == "function" ? y(Object.assign({}, t.rects, {
16831
16831
  placement: t.placement
16832
16832
  })) : y, Y = typeof z == "number" ? {
16833
16833
  mainAxis: z,
@@ -16839,17 +16839,17 @@ function tu(e) {
16839
16839
  x: 0,
16840
16840
  y: 0
16841
16841
  };
16842
- if (_) {
16842
+ if (M) {
16843
16843
  if (i) {
16844
- var R, ee = C === "y" ? ve : ye, fe = C === "y" ? Ee : je, te = C === "y" ? "height" : "width", re = _[C], Ue = re + m[ee], pe = re - m[fe], Be = M ? -V[te] / 2 : 0, $e = T === mt ? N[te] : V[te], Ce = T === mt ? -V[te] : -N[te], H = t.elements.arrow, q = M && H ? za(H) : {
16844
+ var R, ee = C === "y" ? ve : ye, fe = C === "y" ? Ee : je, te = C === "y" ? "height" : "width", re = M[C], Ue = re + m[ee], pe = re - m[fe], Be = _ ? -V[te] / 2 : 0, $e = T === mt ? N[te] : V[te], Ce = T === mt ? -V[te] : -N[te], H = t.elements.arrow, q = _ && H ? za(H) : {
16845
16845
  width: 0,
16846
16846
  height: 0
16847
- }, E = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Rf(), Q = E[ee], F = E[fe], ce = $t(0, N[te], q[te]), be = I ? N[te] / 2 - Be - ce - Q - Y.mainAxis : $e - ce - Q - Y.mainAxis, Re = I ? -N[te] / 2 + Be + ce + F + Y.mainAxis : Ce + ce + F + Y.mainAxis, ut = t.elements.arrow && Jt(t.elements.arrow), Jn = ut ? C === "y" ? ut.clientTop || 0 : ut.clientLeft || 0 : 0, nn = (R = X == null ? void 0 : X[C]) != null ? R : 0, Dt = re + be - nn - Jn, Gn = re + Re - nn, an = $t(M ? Yn(Ue, Dt) : Ue, re, M ? ct(pe, Gn) : pe);
16848
- _[C] = an, $[C] = an - re;
16847
+ }, E = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Rf(), Q = E[ee], F = E[fe], ue = $t(0, N[te], q[te]), be = I ? N[te] / 2 - Be - ue - Q - Y.mainAxis : $e - ue - Q - Y.mainAxis, Re = I ? -N[te] / 2 + Be + ue + F + Y.mainAxis : Ce + ue + F + Y.mainAxis, ut = t.elements.arrow && Jt(t.elements.arrow), Jn = ut ? C === "y" ? ut.clientTop || 0 : ut.clientLeft || 0 : 0, nn = (R = X == null ? void 0 : X[C]) != null ? R : 0, Dt = re + be - nn - Jn, Gn = re + Re - nn, an = $t(_ ? Yn(Ue, Dt) : Ue, re, _ ? ct(pe, Gn) : pe);
16848
+ M[C] = an, $[C] = an - re;
16849
16849
  }
16850
16850
  if (u) {
16851
- var fn, st = C === "x" ? ve : ye, sn = C === "x" ? Ee : je, Qe = _[w], it = w === "y" ? "height" : "width", L = Qe + m[st], B = Qe - m[sn], Ae = [ve, ye].indexOf(k) !== -1, Fe = (fn = X == null ? void 0 : X[w]) != null ? fn : 0, ot = Ae ? L : Qe - N[it] - V[it] - Fe + Y.altAxis, lt = Ae ? Qe + N[it] + V[it] - Fe - Y.altAxis : B, ne = M && Ae ? Ic(ot, Qe, lt) : $t(M ? ot : L, Qe, M ? lt : B);
16852
- _[w] = ne, $[w] = ne - Qe;
16851
+ var fn, st = C === "x" ? ve : ye, sn = C === "x" ? Ee : je, Qe = M[w], it = w === "y" ? "height" : "width", L = Qe + m[st], B = Qe - m[sn], de = [ve, ye].indexOf(k) !== -1, Fe = (fn = X == null ? void 0 : X[w]) != null ? fn : 0, ot = de ? L : Qe - N[it] - V[it] - Fe + Y.altAxis, lt = de ? Qe + N[it] + V[it] - Fe - Y.altAxis : B, ne = _ && de ? Ic(ot, Qe, lt) : $t(_ ? ot : L, Qe, _ ? lt : B);
16852
+ M[w] = ne, $[w] = ne - Qe;
16853
16853
  }
16854
16854
  t.modifiersData[a] = $;
16855
16855
  }
@@ -16967,7 +16967,7 @@ function uu(e) {
16967
16967
  },
16968
16968
  attributes: {},
16969
16969
  styles: {}
16970
- }, g = [], p = !1, M = {
16970
+ }, g = [], p = !1, _ = {
16971
16971
  state: d,
16972
16972
  setOptions: function(k) {
16973
16973
  var T = typeof k == "function" ? k(d.options) : k;
@@ -16978,7 +16978,7 @@ function uu(e) {
16978
16978
  var I = lu(cu([].concat(a, d.options.modifiers)));
16979
16979
  return d.orderedModifiers = I.filter(function(C) {
16980
16980
  return C.enabled;
16981
- }), h(), M.update();
16981
+ }), h(), _.update();
16982
16982
  },
16983
16983
  forceUpdate: function() {
16984
16984
  if (!p) {
@@ -16995,12 +16995,12 @@ function uu(e) {
16995
16995
  d.reset = !1, C = -1;
16996
16996
  continue;
16997
16997
  }
16998
- var w = d.orderedModifiers[C], _ = w.fn, N = w.options, V = N === void 0 ? {} : N, z = w.name;
16999
- typeof _ == "function" && (d = _({
16998
+ var w = d.orderedModifiers[C], M = w.fn, N = w.options, V = N === void 0 ? {} : N, z = w.name;
16999
+ typeof M == "function" && (d = M({
17000
17000
  state: d,
17001
17001
  options: V,
17002
17002
  name: z,
17003
- instance: M
17003
+ instance: _
17004
17004
  }) || d);
17005
17005
  }
17006
17006
  }
@@ -17008,7 +17008,7 @@ function uu(e) {
17008
17008
  },
17009
17009
  update: ru(function() {
17010
17010
  return new Promise(function(m) {
17011
- M.forceUpdate(), m(d);
17011
+ _.forceUpdate(), m(d);
17012
17012
  });
17013
17013
  }),
17014
17014
  destroy: function() {
@@ -17016,8 +17016,8 @@ function uu(e) {
17016
17016
  }
17017
17017
  };
17018
17018
  if (!df(u, c))
17019
- return M;
17020
- M.setOptions(A).then(function(m) {
17019
+ return _;
17020
+ _.setOptions(A).then(function(m) {
17021
17021
  !p && A.onFirstUpdate && A.onFirstUpdate(m);
17022
17022
  });
17023
17023
  function h() {
@@ -17027,11 +17027,11 @@ function uu(e) {
17027
17027
  var w = C({
17028
17028
  state: d,
17029
17029
  name: k,
17030
- instance: M,
17030
+ instance: _,
17031
17031
  options: I
17032
- }), _ = function() {
17032
+ }), M = function() {
17033
17033
  };
17034
- g.push(w || _);
17034
+ g.push(w || M);
17035
17035
  }
17036
17036
  });
17037
17037
  }
@@ -17040,10 +17040,10 @@ function uu(e) {
17040
17040
  return m();
17041
17041
  }), g = [];
17042
17042
  }
17043
- return M;
17043
+ return _;
17044
17044
  };
17045
17045
  }
17046
- var Au = [Oc, Xc, Sc, Mc, Jc, qc, nu, xc, Wc], du = /* @__PURE__ */ uu({
17046
+ var Au = [Oc, Xc, Sc, _c, Jc, qc, nu, xc, Wc], du = /* @__PURE__ */ uu({
17047
17047
  defaultModifiers: Au
17048
17048
  }), qf = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzMiAzMiI+PHBhdGggZD0iTSAxNiA0IEMgOS4zODI4MTMgNCA0IDkuMzgyODEzIDQgMTYgQyA0IDIyLjYxNzE4OCA5LjM4MjgxMyAyOCAxNiAyOCBDIDIyLjYxNzE4OCAyOCAyOCAyMi42MTcxODggMjggMTYgQyAyOCA5LjM4MjgxMyAyMi42MTcxODggNCAxNiA0IFogTSAxNiA2IEMgMjEuNTM1MTU2IDYgMjYgMTAuNDY0ODQ0IDI2IDE2IEMgMjYgMjEuNTM1MTU2IDIxLjUzNTE1NiAyNiAxNiAyNiBDIDEwLjQ2NDg0NCAyNiA2IDIxLjUzNTE1NiA2IDE2IEMgNiAxMC40NjQ4NDQgMTAuNDY0ODQ0IDYgMTYgNiBaIE0gMTEuNSAxMiBDIDEwLjY3MTg3NSAxMiAxMCAxMi42NzE4NzUgMTAgMTMuNSBDIDEwIDE0LjMyODEyNSAxMC42NzE4NzUgMTUgMTEuNSAxNSBDIDEyLjMyODEyNSAxNSAxMyAxNC4zMjgxMjUgMTMgMTMuNSBDIDEzIDEyLjY3MTg3NSAxMi4zMjgxMjUgMTIgMTEuNSAxMiBaIE0gMjAuNSAxMiBDIDE5LjY3MTg3NSAxMiAxOSAxMi42NzE4NzUgMTkgMTMuNSBDIDE5IDE0LjMyODEyNSAxOS42NzE4NzUgMTUgMjAuNSAxNSBDIDIxLjMyODEyNSAxNSAyMiAxNC4zMjgxMjUgMjIgMTMuNSBDIDIyIDEyLjY3MTg3NSAyMS4zMjgxMjUgMTIgMjAuNSAxMiBaIE0gMTAuODEyNSAxOSBMIDkuMDkzNzUgMjAgQyAxMC40NzY1NjMgMjIuMzg2NzE5IDEzLjA0Njg3NSAyNCAxNiAyNCBDIDE4Ljk1MzEyNSAyNCAyMS41MjM0MzggMjIuMzg2NzE5IDIyLjkwNjI1IDIwIEwgMjEuMTg3NSAxOSBDIDIwLjE0ODQzOCAyMC43OTI5NjkgMTguMjI2NTYzIDIyIDE2IDIyIEMgMTMuNzczNDM4IDIyIDExLjg1MTU2MyAyMC43OTI5NjkgMTAuODEyNSAxOSBaIi8+PC9zdmc+";
17049
17049
  function mn(e) {
@@ -17115,7 +17115,7 @@ const mu = J({
17115
17115
  i: mn(h.r)
17116
17116
  });
17117
17117
  }
17118
- function M(h, y) {
17118
+ function _(h, y) {
17119
17119
  var m;
17120
17120
  const k = (m = h == null ? void 0 : h.target) == null ? void 0 : m.closest("button");
17121
17121
  k && (k.innerHTML = `<span>${mn(y)}</span>`);
@@ -17133,7 +17133,7 @@ const mu = J({
17133
17133
  EMOJI_REMOTE_SRC: jf,
17134
17134
  GROUP_NAMES: Sf,
17135
17135
  handleClick: p,
17136
- handleError: M,
17136
+ handleError: _,
17137
17137
  handleMouseEnter: g,
17138
17138
  native: e.options.native,
17139
17139
  unicodeToEmoji: mn,
@@ -17146,7 +17146,7 @@ const mu = J({
17146
17146
  orderedKeys: A
17147
17147
  };
17148
17148
  }
17149
- }), pu = { class: "v3-body" }, hu = ["id"], vu = { class: "v3-emojis" }, yu = ["onMouseenter", "onClick"], bu = { key: 0 }, _u = ["src", "alt", "onError"], Mu = {
17149
+ }), pu = { class: "v3-body" }, hu = ["id"], vu = { class: "v3-emojis" }, yu = ["onMouseenter", "onClick"], bu = { key: 0 }, Mu = ["src", "alt", "onError"], _u = {
17150
17150
  key: 1,
17151
17151
  class: "v3-no-result"
17152
17152
  };
@@ -17179,12 +17179,12 @@ function wu(e, t, n, a, f, i) {
17179
17179
  src: e.EMOJI_REMOTE_SRC + `/${u.r}.png`,
17180
17180
  alt: u.n[0],
17181
17181
  onError: (c) => e.handleError(c, u.r)
17182
- }, null, 40, _u))
17182
+ }, null, 40, Mu))
17183
17183
  ], 40, yu))), 128))
17184
17184
  ], 512), [
17185
17185
  [Ve, e.emojis[s]]
17186
17186
  ])
17187
- ], 8, hu))), 128)) : (l(), r("span", Mu, " No emoji has been found! "))
17187
+ ], 8, hu))), 128)) : (l(), r("span", _u, " No emoji has been found! "))
17188
17188
  ], 2)
17189
17189
  ]);
17190
17190
  }
@@ -17205,7 +17205,7 @@ const Su = J({
17205
17205
  }))
17206
17206
  ], d = [];
17207
17207
  return s.forEach((g) => {
17208
- const p = A.findIndex((M) => M.key === g);
17208
+ const p = A.findIndex((_) => _.key === g);
17209
17209
  p !== -1 && (d.push(A[p]), A.splice(p, 1));
17210
17210
  }), {
17211
17211
  orderedGroups: d,
@@ -17271,7 +17271,7 @@ function Qu(e, t, n, a, f, i) {
17271
17271
  type: "text",
17272
17272
  placeholder: e.placeholder
17273
17273
  }, null, 8, Ru), [
17274
- [_t, e.searchValue]
17274
+ [Mt, e.searchValue]
17275
17275
  ])
17276
17276
  ])) : v("", !0)
17277
17277
  ])) : v("", !0);
@@ -17414,7 +17414,7 @@ const Xu = J({
17414
17414
  var m;
17415
17415
  n.value && (c = ((m = n.value) == null ? void 0 : m.selectionEnd) || -1);
17416
17416
  }
17417
- function M(m) {
17417
+ function _(m) {
17418
17418
  var k;
17419
17419
  !((k = m.target) != null && k.closest(
17420
17420
  ".v3-input-picker-wrap"
@@ -17433,7 +17433,7 @@ const Xu = J({
17433
17433
  }
17434
17434
  }
17435
17435
  ]
17436
- }), document.body.addEventListener("click", M);
17436
+ }), document.body.addEventListener("click", _);
17437
17437
  }
17438
17438
  }
17439
17439
  function y(m) {
@@ -17442,7 +17442,7 @@ const Xu = J({
17442
17442
  return me(() => {
17443
17443
  h();
17444
17444
  }), Gf(() => {
17445
- document.body.removeEventListener("click", M);
17445
+ document.body.removeEventListener("click", _);
17446
17446
  }), {
17447
17447
  face: qf,
17448
17448
  open: i,
@@ -17669,13 +17669,13 @@ const dA = /* @__PURE__ */ O(cA, [["render", AA]]), gA = { class: "" }, mA = {
17669
17669
  t.state === "active" && (i.value = !i.value, i.value && (a.value = A()));
17670
17670
  }, p = () => {
17671
17671
  i.value = !1;
17672
- }, M = (h) => {
17672
+ }, _ = (h) => {
17673
17673
  i.value && !f.value.contains(h.target) && !n.value.contains(h.target) && p();
17674
17674
  };
17675
17675
  return me(() => {
17676
- n.value.style.display = "none", document.addEventListener("click", M);
17677
- }), Mt(() => {
17678
- document.removeEventListener("click", M);
17676
+ n.value.style.display = "none", document.addEventListener("click", _);
17677
+ }), _t(() => {
17678
+ document.removeEventListener("click", _);
17679
17679
  }), (h, y) => (l(), r(K, null, [
17680
17680
  D(c)().isRecording ? v("", !0) : (l(), r("button", {
17681
17681
  key: 0,
@@ -17712,7 +17712,7 @@ const dA = /* @__PURE__ */ O(cA, [["render", AA]]), gA = { class: "" }, mA = {
17712
17712
  }, ag = /* @__PURE__ */ O(mA, [["__scopeId", "data-v-9e4e0ac1"]]), pA = { class: "context-menu__container" }, hA = { class: "context-menu__list" }, vA = ["onClick"], yA = ["src"], bA = {
17713
17713
  key: 2,
17714
17714
  style: { "white-space": "nowrap" }
17715
- }, _A = { key: 3 }, MA = {
17715
+ }, MA = { key: 3 }, _A = {
17716
17716
  __name: "ContextMenu",
17717
17717
  props: {
17718
17718
  actions: {
@@ -17743,12 +17743,12 @@ const dA = /* @__PURE__ */ O(cA, [["render", AA]]), gA = { class: "" }, mA = {
17743
17743
  class: j("pi pi-" + u.prime)
17744
17744
  }, null, 2)) : v("", !0),
17745
17745
  u.title ? (l(), r("span", bA, x(u.title), 1)) : v("", !0),
17746
- u.description ? (l(), r("span", _A, x(u.description), 1)) : v("", !0)
17746
+ u.description ? (l(), r("span", MA, x(u.description), 1)) : v("", !0)
17747
17747
  ], 8, vA))), 128))
17748
17748
  ])
17749
17749
  ]));
17750
17750
  }
17751
- }, It = /* @__PURE__ */ O(MA, [["__scopeId", "data-v-4cdf97be"]]), jt = b([]), wA = (e) => {
17751
+ }, It = /* @__PURE__ */ O(_A, [["__scopeId", "data-v-4cdf97be"]]), jt = b([]), wA = (e) => {
17752
17752
  const t = b(0), n = jt.value.find(({ id: f }) => f == e);
17753
17753
  return n != null ? t.value = jt.value.indexOf(n) : (jt.value.push({
17754
17754
  id: e,
@@ -17804,11 +17804,11 @@ const IA = { class: "feed-search__container" }, kA = { style: { "line-height": "
17804
17804
  type: "text",
17805
17805
  placeholder: D(Ne)("component.FeedSearch.SearchPlaceholder")
17806
17806
  }, null, 8, DA), [
17807
- [_t, D(a)().text]
17807
+ [Mt, D(a)().text]
17808
17808
  ]),
17809
17809
  o("i", {
17810
17810
  class: "pi pi-times",
17811
- style: de({ right: c.value }),
17811
+ style: ce({ right: c.value }),
17812
17812
  onClick: A
17813
17813
  }, null, 4),
17814
17814
  e.isFeedLocation ? (l(), r("span", {
@@ -17951,17 +17951,17 @@ const IA = { class: "feed-search__container" }, kA = { style: { "line-height": "
17951
17951
  const t = se("chatAppId"), { getMessage: n, setMessageFile: a, resetMessageFile: f, setRecordingMessage: i } = Se(t), s = b(), u = b(0), c = b(0), A = b(0), d = b(0), g = P(() => {
17952
17952
  let V = d.value < 10 ? "0" + d.value : d.value, z = A.value < 10 ? "0" + A.value : A.value, Y = c.value < 10 ? "0" + c.value : c.value, X = u.value < 10 ? "00" + u.value : u.value < 100 ? "0" + u.value : u.value;
17953
17953
  return V + ":" + z + ":" + Y + ":" + X;
17954
- }), p = b(""), M = b(!1), h = b(), y = b([]), m = b(), k = b(), T = e, I = async () => {
17954
+ }), p = b(""), _ = b(!1), h = b(), y = b([]), m = b(), k = b(), T = e, I = async () => {
17955
17955
  if (!n().file && T.state == "active") {
17956
17956
  const V = await navigator.mediaDevices.getUserMedia({ audio: !0, video: !1 });
17957
17957
  s.value = setInterval(() => {
17958
17958
  u.value += 10, u.value == 1e3 && (u.value = 0, c.value++, c.value == 60 && (c.value = 0, A.value++, A.value == 60 && (A.value = 0, d.value++)));
17959
- }, 10), i(!0), M.value = !0, h.value = new MediaRecorder(V), h.value.start(), h.value.ondataavailable = (z) => {
17959
+ }, 10), i(!0), _.value = !0, h.value = new MediaRecorder(V), h.value.start(), h.value.ondataavailable = (z) => {
17960
17960
  y.value.push(z.data);
17961
17961
  };
17962
17962
  }
17963
17963
  }, C = () => {
17964
- _(), m.value = void 0;
17964
+ M(), m.value = void 0;
17965
17965
  }, w = () => {
17966
17966
  h.value && (h.value.stop(), h.value.onstop = async () => {
17967
17967
  const V = new File(y.value, "voicemessage.mp3", { type: "audio/*" }), z = URL.createObjectURL(V);
@@ -17983,9 +17983,9 @@ const IA = { class: "feed-search__container" }, kA = { style: { "line-height": "
17983
17983
  });
17984
17984
  }
17985
17985
  });
17986
- }), _();
17987
- }, _ = () => {
17988
- clearInterval(s.value), u.value = 0, c.value = 0, A.value = 0, d.value = 0, i(!1), M.value = !1, h.value = void 0, y.value = [];
17986
+ }), M();
17987
+ }, M = () => {
17988
+ clearInterval(s.value), u.value = 0, c.value = 0, A.value = 0, d.value = 0, i(!1), _.value = !1, h.value = void 0, y.value = [];
17989
17989
  }, N = () => {
17990
17990
  const V = document.getElementById("chat-input-file-line-" + t);
17991
17991
  V && (V.style.display = "none"), f(), k.value = void 0;
@@ -17999,7 +17999,7 @@ const IA = { class: "feed-search__container" }, kA = { style: { "line-height": "
17999
17999
  p.value === "uploading" ? (l(), r("div", PA, z[0] || (z[0] = [
18000
18000
  o("p", null, "Загрузка файла...", -1)
18001
18001
  ]))) : v("", !0),
18002
- M.value && p.value != "uploading" ? (l(), r("div", qA, [
18002
+ _.value && p.value != "uploading" ? (l(), r("div", qA, [
18003
18003
  z[3] || (z[3] = o("span", { class: "audio-recorder__recording-icon pi pi-circle-fill" }, null, -1)),
18004
18004
  o("button", {
18005
18005
  class: "audio-recorder__button audio-recorder__button-record",
@@ -18015,7 +18015,7 @@ const IA = { class: "feed-search__container" }, kA = { style: { "line-height": "
18015
18015
  ])),
18016
18016
  o("span", HA, x(g.value), 1)
18017
18017
  ])) : v("", !0),
18018
- !M.value && p.value != "uploading" && !D(n)().isRecording ? (l(), r("button", {
18018
+ !_.value && p.value != "uploading" && !D(n)().isRecording ? (l(), r("button", {
18019
18019
  key: 2,
18020
18020
  class: j(["audio-recorder__button", { "audio-recorder__button-disabled": e.state == "disabled" || D(n)().file }]),
18021
18021
  onClick: I
@@ -18044,8 +18044,8 @@ function Xt({ component: e, attrs: t, Modal: n, modalAttrs: a }) {
18044
18044
  }, c = () => {
18045
18045
  u(), f(s.value);
18046
18046
  }, A = (p) => {
18047
- Object.keys(p).forEach((M) => {
18048
- s.value[M] = p[M];
18047
+ Object.keys(p).forEach((_) => {
18048
+ s.value[_] = p[_];
18049
18049
  });
18050
18050
  }, d = J({
18051
18051
  render() {
@@ -18131,7 +18131,7 @@ const KA = ["data-theme"], ZA = {
18131
18131
  }, Ra = /* @__PURE__ */ O(XA, [["__scopeId", "data-v-bfa49925"]]), og = async (e, t, n) => {
18132
18132
  const a = await Xt({
18133
18133
  //в component должен быть встроен emit change(key: value)
18134
- component: import("./SelectUser2-zxryIU-3.js"),
18134
+ component: import("./SelectUser2-DeULExz1.js"),
18135
18135
  attrs: {
18136
18136
  title: e,
18137
18137
  users: t
@@ -18203,7 +18203,7 @@ const KA = ["data-theme"], ZA = {
18203
18203
  }
18204
18204
  }, Kf = /* @__PURE__ */ O(nd, [["__scopeId", "data-v-2d8b60f8"]]), cg = async (e, t, n, a, f, i) => await Xt({
18205
18205
  //в component должен быть встроен emit change(key: value)
18206
- component: import("./CreateDialog-GB6HHY0x.js"),
18206
+ component: import("./CreateDialog-BcUryZMD.js"),
18207
18207
  attrs: {
18208
18208
  title: e,
18209
18209
  name: t,
@@ -18217,7 +18217,7 @@ const KA = ["data-theme"], ZA = {
18217
18217
  }
18218
18218
  }), ad = async (e) => await Xt({
18219
18219
  //в component должен быть встроен emit change(key: value)
18220
- component: import("./ModalVideoRecorder-DfF6fOQ-.js"),
18220
+ component: import("./ModalVideoRecorder-DLkW4BYg.js"),
18221
18221
  attrs: {},
18222
18222
  Modal: Kf,
18223
18223
  modalAttrs: {
@@ -18245,8 +18245,8 @@ const KA = ["data-theme"], ZA = {
18245
18245
  const t = se("chatAppId"), { getMessage: n, setMessageFile: a, setRecordingMessage: f, resetMessageFile: i } = Se(t), { getTheme: s } = ze(t), u = b(""), c = b(), A = e, d = async () => {
18246
18246
  if (!n().file && A.state == "active") {
18247
18247
  const p = s().theme ? s().theme : "";
18248
- await ad(p).then(async (M) => {
18249
- M.videoFile && (u.value = "uploading", f(!0), await Hn(A.filebumpUrl, M.videoFile).then((h) => {
18248
+ await ad(p).then(async (_) => {
18249
+ _.videoFile && (u.value = "uploading", f(!0), await Hn(A.filebumpUrl, _.videoFile).then((h) => {
18250
18250
  if (f(!1), u.value = h.status, h.status == "success") {
18251
18251
  a({
18252
18252
  url: h.url,
@@ -18277,17 +18277,17 @@ const KA = ["data-theme"], ZA = {
18277
18277
  () => {
18278
18278
  n().file || (c.value = void 0);
18279
18279
  }
18280
- ), (p, M) => (l(), r(K, null, [
18280
+ ), (p, _) => (l(), r(K, null, [
18281
18281
  D(n)().isRecording ? v("", !0) : (l(), r("div", fd, [
18282
18282
  u.value != "uploading" ? (l(), r("button", {
18283
18283
  key: 0,
18284
18284
  class: j(["video-recorder__button", { "video-recorder__button-disabled": e.state == "disabled" || D(n)().file }]),
18285
18285
  onClick: d
18286
- }, M[0] || (M[0] = [
18286
+ }, _[0] || (_[0] = [
18287
18287
  o("span", { class: "pi pi-video" }, null, -1)
18288
18288
  ]), 2)) : v("", !0)
18289
18289
  ])),
18290
- u.value === "uploading" ? (l(), r("div", sd, M[1] || (M[1] = [
18290
+ u.value === "uploading" ? (l(), r("div", sd, _[1] || (_[1] = [
18291
18291
  o("p", null, "Загрузка файла...", -1)
18292
18292
  ]))) : v("", !0),
18293
18293
  D(n)().file ? (l(), U(we, {
@@ -18421,7 +18421,7 @@ function yd(e, t) {
18421
18421
  bt('<path fill-rule="evenodd" clip-rule="evenodd" d="M3.04297 27.0644L4.72672 20.9175C3.68797 19.1187 3.14172 17.0775 3.14234 14.9869C3.14547 8.44625 8.46797 3.125 15.0092 3.125C18.1836 3.12625 21.1623 4.36188 23.403 6.60375C25.643 8.84625 26.8767 11.8263 26.8755 14.9963C26.873 21.5369 21.5492 26.8587 15.0092 26.8587H15.0042C13.0186 26.8581 11.0667 26.36 9.33359 25.4144L3.04297 27.0644Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.0427 27.3769C2.9602 27.3769 2.8802 27.3444 2.82082 27.2844C2.7427 27.205 2.71207 27.0894 2.74145 26.9825L4.39082 20.96C3.36832 19.1437 2.82895 17.0812 2.8302 14.9875C2.8327 8.27375 8.29582 2.8125 15.0089 2.8125C18.2652 2.81375 21.3246 4.08188 23.6239 6.38313C25.9233 8.685 27.1889 11.7437 27.1877 14.9963C27.1852 21.7094 21.7214 27.1712 15.0089 27.1712C13.0158 27.1706 11.0439 26.6787 9.29395 25.7481L3.12207 27.3662C3.09582 27.3737 3.06957 27.3769 3.0427 27.3769Z" fill="white"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M15.0085 3.125C18.1829 3.12625 21.1616 4.36188 23.4023 6.60375C25.6423 8.84625 26.876 11.8263 26.8748 14.9963C26.8722 21.5369 21.5485 26.8587 15.0085 26.8587H15.0035C13.0179 26.8581 11.066 26.36 9.33287 25.4144L3.04225 27.0644L4.726 20.9175C3.68725 19.1187 3.141 17.0775 3.14162 14.9869C3.14475 8.44625 8.46725 3.125 15.0085 3.125ZM15.0085 2.5C8.1235 2.5 2.51975 8.10125 2.51662 14.9869C2.516 17.0913 3.04725 19.165 4.05475 21.0006L2.43912 26.9C2.38037 27.1156 2.44037 27.3456 2.59787 27.5044C2.71662 27.6244 2.87725 27.69 3.04225 27.69C3.09537 27.69 3.1485 27.6831 3.201 27.6694L9.25537 26.0819C11.0229 26.9994 13.0041 27.4837 15.0035 27.4844C21.8935 27.4844 27.4972 21.8825 27.5004 14.9969C27.5016 11.66 26.2035 8.5225 23.8454 6.1625C21.486 3.80187 18.3479 2.50125 15.0085 2.5Z" fill="#CFD8DC"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M21.9845 8.02016C20.122 6.15641 17.6464 5.12953 15.0114 5.12891C9.57141 5.12891 5.14703 9.55141 5.14453 14.9877C5.14391 16.8508 5.66516 18.6645 6.65266 20.2352L6.88766 20.6083L5.89078 24.2464L9.62391 23.2677L9.98453 23.4814C11.4983 24.3802 13.2345 24.8552 15.0045 24.8558H15.0083C20.4445 24.8558 24.8689 20.4327 24.8708 14.9958C24.8714 12.3614 23.847 9.88391 21.9845 8.02016Z" fill="#40C351"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M12.0429 10.0272C11.821 9.53345 11.5873 9.52345 11.3754 9.5147C11.2023 9.5072 11.0048 9.50783 10.8073 9.50783C10.6098 9.50783 10.2885 9.5822 10.0166 9.87908C9.74477 10.176 8.97852 10.8928 8.97852 12.3516C8.97852 13.8103 10.041 15.2203 10.1891 15.4178C10.3373 15.6153 12.2404 18.7047 15.2541 19.8934C17.7585 20.8809 18.2685 20.6847 18.8123 20.6353C19.356 20.586 20.5666 19.9185 20.8135 19.226C21.0604 18.5335 21.0604 17.9403 20.9866 17.8166C20.9123 17.6928 20.7148 17.6191 20.4185 17.4703C20.1223 17.3216 18.6641 16.6047 18.3923 16.5059C18.1204 16.4072 17.9229 16.3578 17.7248 16.6547C17.5273 16.951 16.9591 17.6191 16.786 17.8166C16.6129 18.0147 16.4398 18.0397 16.1435 17.891C15.8473 17.7422 14.8923 17.4297 13.7591 16.4197C12.8779 15.6341 12.2829 14.6635 12.1098 14.3666C11.9366 14.0703 12.091 13.9097 12.2398 13.7616C12.3729 13.6285 12.536 13.4153 12.6848 13.2422C12.8329 13.0691 12.8823 12.9453 12.981 12.7478C13.0798 12.5497 13.0304 12.3766 12.956 12.2285C12.8829 12.0797 12.3066 10.6135 12.0429 10.0272Z" fill="white"></path>', 5)
18422
18422
  ]));
18423
18423
  }
18424
- const bd = /* @__PURE__ */ O(hd, [["render", yd]]), _d = {}, Md = {
18424
+ const bd = /* @__PURE__ */ O(hd, [["render", yd]]), Md = {}, _d = {
18425
18425
  width: "24",
18426
18426
  height: "24",
18427
18427
  viewBox: "0 0 24 24",
@@ -18429,7 +18429,7 @@ const bd = /* @__PURE__ */ O(hd, [["render", yd]]), _d = {}, Md = {
18429
18429
  xmlns: "http://www.w3.org/2000/svg"
18430
18430
  };
18431
18431
  function wd(e, t) {
18432
- return l(), r("svg", Md, t[0] || (t[0] = [
18432
+ return l(), r("svg", _d, t[0] || (t[0] = [
18433
18433
  o("g", { "clip-path": "url(#clip0_5484_1269)" }, [
18434
18434
  o("path", {
18435
18435
  d: "M24 12C24 15.1826 22.7357 18.2348 20.4853 20.4853C18.2348 22.7357 15.1826 24 12 24C8.8174 24 5.76516 22.7357 3.51472 20.4853C1.26428 18.2348 0 15.1826 0 12C0 8.8174 1.26428 5.76516 3.51472 3.51472C5.76516 1.26428 8.8174 0 12 0C15.1826 0 18.2348 1.26428 20.4853 3.51472C22.7357 5.76516 24 8.8174 24 12ZM12.4305 8.859C11.2635 9.345 8.9295 10.35 5.4315 11.874C4.8645 12.099 4.566 12.321 4.539 12.537C4.494 12.9015 4.9515 13.0455 5.574 13.242L5.8365 13.3245C6.4485 13.524 7.2735 13.7565 7.701 13.7655C8.091 13.7745 8.5245 13.6155 9.003 13.2855C12.2715 11.079 13.959 9.9645 14.064 9.9405C14.139 9.9225 14.244 9.9015 14.313 9.9645C14.3835 10.026 14.376 10.1445 14.3685 10.176C14.3235 10.3695 12.528 12.0375 11.5995 12.9015C11.31 13.1715 11.1045 13.362 11.0625 13.4055C10.97 13.5 10.876 13.593 10.7805 13.6845C10.2105 14.2335 9.7845 14.6445 10.803 15.3165C11.2935 15.6405 11.6865 15.906 12.078 16.173C12.504 16.464 12.93 16.7535 13.482 17.1165C13.6215 17.2065 13.7565 17.304 13.887 17.397C14.3835 17.751 14.832 18.069 15.3825 18.018C15.7035 17.988 16.035 17.688 16.203 16.788C16.6005 14.6625 17.382 10.059 17.562 8.1615C17.573 8.00376 17.5664 7.84529 17.5425 7.689C17.5284 7.56288 17.4673 7.44669 17.3715 7.3635C17.235 7.26928 17.0723 7.22047 16.9065 7.224C16.4565 7.2315 15.762 7.473 12.4305 8.859Z",
@@ -18447,7 +18447,7 @@ function wd(e, t) {
18447
18447
  ], -1)
18448
18448
  ]));
18449
18449
  }
18450
- const Cd = /* @__PURE__ */ O(_d, [["render", wd]]), Id = {}, kd = {
18450
+ const Cd = /* @__PURE__ */ O(Md, [["render", wd]]), Id = {}, kd = {
18451
18451
  width: "24",
18452
18452
  height: "23",
18453
18453
  viewBox: "0 0 24 23",
@@ -18618,7 +18618,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18618
18618
  },
18619
18619
  emits: ["select-attribute-channel", "phone-call"],
18620
18620
  setup(e, { emit: t }) {
18621
- const n = e, a = t, f = b(null), i = b(null), s = b(null), u = b(null), c = b(!1), A = b(!1), d = b(null), g = b("0px"), p = b(null), M = b(!1), h = b(null), y = b({}), m = b(0), k = ["phone", "whatsapp", "telegram", "max", "sms"], T = {
18621
+ const n = e, a = t, f = b(null), i = b(null), s = b(null), u = b(null), c = b(!1), A = b(!1), d = b(null), g = b("0px"), p = b(null), _ = b(!1), h = b(null), y = b({}), m = b(0), k = ["phone", "whatsapp", "telegram", "max", "sms"], T = {
18622
18622
  phone: pd,
18623
18623
  whatsapp: bd,
18624
18624
  telegram: Cd,
@@ -18637,12 +18637,12 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18637
18637
  }))
18638
18638
  ), w = b(
18639
18639
  Object.fromEntries(k.map((L) => [L, []]))
18640
- ), _ = P(
18640
+ ), M = P(
18641
18641
  () => s.value ? $e(s.value) : null
18642
18642
  ), N = P(
18643
18643
  () => {
18644
18644
  var L;
18645
- return s.value !== "phone" && _.value && ((L = n.recentAttributeChannels[s.value]) == null ? void 0 : L.channelId);
18645
+ return s.value !== "phone" && M.value && ((L = n.recentAttributeChannels[s.value]) == null ? void 0 : L.channelId);
18646
18646
  }
18647
18647
  ), V = P(
18648
18648
  () => s.value ? Be(s.value) : []
@@ -18665,7 +18665,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18665
18665
  (B) => $(B.channelId) === L
18666
18666
  ).length > 1, ee = (L) => h.value === L, fe = (L) => {
18667
18667
  const B = n.channels.filter(
18668
- (Ae) => $(Ae.channelId) === L
18668
+ (de) => $(de.channelId) === L
18669
18669
  );
18670
18670
  return B.length === 1 ? B[0] : null;
18671
18671
  }, te = (L) => I[L] || null, re = (L) => {
@@ -18677,62 +18677,62 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18677
18677
  }, pe = () => {
18678
18678
  const L = Object.fromEntries(k.map((B) => [B, []]));
18679
18679
  n.contactAttributes.forEach((B) => {
18680
- B.type === "telegram" ? L.telegram.push(B) : B.type === "phone" && ["whatsapp", "max", "sms", "phone"].forEach((Ae) => {
18681
- L[Ae].push(B);
18680
+ B.type === "telegram" ? L.telegram.push(B) : B.type === "phone" && ["whatsapp", "max", "sms", "phone"].forEach((de) => {
18681
+ L[de].push(B);
18682
18682
  });
18683
18683
  }), w.value = L;
18684
18684
  }, Be = (L) => n.channels.filter(
18685
18685
  (B) => $(B.channelId) === L
18686
18686
  ), $e = (L) => {
18687
- var Ae;
18688
- const B = (Ae = n.recentAttributeChannels[L]) == null ? void 0 : Ae.attributeId;
18687
+ var de;
18688
+ const B = (de = n.recentAttributeChannels[L]) == null ? void 0 : de.attributeId;
18689
18689
  return n.contactAttributes.find((Fe) => Fe.id === B);
18690
18690
  }, Ce = (L) => {
18691
18691
  var B;
18692
18692
  return ((B = p.value) == null ? void 0 : B.id) === L.id;
18693
18693
  }, H = (L) => {
18694
- h.value === L && s.value === L ? q() : (s.value = L, c.value = !0, A.value = !1, p.value = null, M.value = !1, st());
18694
+ h.value === L && s.value === L ? q() : (s.value = L, c.value = !0, A.value = !1, p.value = null, _.value = !1, st());
18695
18695
  }, q = () => {
18696
- c.value = !1, s.value = null, p.value = null, M.value = !1, A.value = !1;
18696
+ c.value = !1, s.value = null, p.value = null, _.value = !1, A.value = !1;
18697
18697
  }, E = () => {
18698
18698
  var L;
18699
18699
  if (s.value === "phone")
18700
- F(_.value);
18700
+ F(M.value);
18701
18701
  else if (R(s.value)) {
18702
18702
  const B = (L = n.recentAttributeChannels[s.value]) == null ? void 0 : L.channelId;
18703
- _.value && B && be(B);
18703
+ M.value && B && be(B);
18704
18704
  } else {
18705
18705
  const B = fe(s.value);
18706
- _.value && B && ce(_.value, B.channelId);
18706
+ M.value && B && ue(M.value, B.channelId);
18707
18707
  }
18708
18708
  }, Q = (L) => {
18709
18709
  if (s.value === "phone")
18710
18710
  F(L);
18711
18711
  else if (!R(s.value)) {
18712
18712
  const B = fe(s.value);
18713
- B && ce(L, B.channelId);
18713
+ B && ue(L, B.channelId);
18714
18714
  }
18715
18715
  }, F = (L) => {
18716
18716
  L && (a("phone-call", {
18717
18717
  attributeId: L.id,
18718
18718
  phoneNumber: L.data
18719
18719
  }), q());
18720
- }, ce = (L, B) => {
18720
+ }, ue = (L, B) => {
18721
18721
  a("select-attribute-channel", {
18722
18722
  attributeId: L.id,
18723
18723
  channelId: B
18724
- }), h.value = s.value, y.value = n.channels.find((Ae) => Ae.channelId === B), console.log("TEST selectedChannel.value", y.value), q();
18724
+ }), h.value = s.value, y.value = n.channels.find((de) => de.channelId === B), console.log("TEST selectedChannel.value", y.value), q();
18725
18725
  }, be = (L) => {
18726
- _.value && a("select-attribute-channel", {
18727
- attributeId: _.value.id,
18726
+ M.value && a("select-attribute-channel", {
18727
+ attributeId: M.value.id,
18728
18728
  channelId: L
18729
18729
  }), h.value = s.value, y.value = n.channels.find((B) => B.channelId === L), console.log("TEST selectedChannel.value", y.value), q();
18730
18730
  }, Re = (L) => {
18731
- R(s.value) && (Dt(), M.value = !0, A.value = !0, sn(L.currentTarget));
18731
+ R(s.value) && (Dt(), _.value = !0, A.value = !0, sn(L.currentTarget));
18732
18732
  }, ut = () => {
18733
- A.value || (M.value = !1);
18733
+ A.value || (_.value = !1);
18734
18734
  }, Jn = (L, B) => {
18735
- R(s.value) && (M.value = !1, d.value = L, A.value = !0, p.value = L, sn(B.currentTarget));
18735
+ R(s.value) && (_.value = !1, d.value = L, A.value = !0, p.value = L, sn(B.currentTarget));
18736
18736
  }, nn = () => {
18737
18737
  A.value || (p.value = null);
18738
18738
  }, Dt = () => {
@@ -18740,9 +18740,9 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18740
18740
  }, Gn = () => {
18741
18741
  A.value = !0;
18742
18742
  }, an = () => {
18743
- A.value = !1, p.value = null, M.value = !1;
18743
+ A.value = !1, p.value = null, _.value = !1;
18744
18744
  }, fn = (L) => {
18745
- M.value ? be(L) : d.value && (a("select-attribute-channel", {
18745
+ _.value ? be(L) : d.value && (a("select-attribute-channel", {
18746
18746
  attributeId: d.value.id,
18747
18747
  channelId: L
18748
18748
  }), h.value = s.value, y.value = n.channels.find((B) => B.channelId === L), console.log("TEST selectedChannel.value", y.value)), q();
@@ -18752,15 +18752,15 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18752
18752
  try {
18753
18753
  requestAnimationFrame(() => {
18754
18754
  var Nt, Qa, Fa;
18755
- const B = (Nt = f.value) == null ? void 0 : Nt.querySelector(".attributes-menu"), Ae = (Qa = f.value) == null ? void 0 : Qa.querySelector(".sub-menu-header"), Fe = (Fa = f.value) == null ? void 0 : Fa.querySelector(".sub-menu");
18755
+ const B = (Nt = f.value) == null ? void 0 : Nt.querySelector(".attributes-menu"), de = (Qa = f.value) == null ? void 0 : Qa.querySelector(".sub-menu-header"), Fe = (Fa = f.value) == null ? void 0 : Fa.querySelector(".sub-menu");
18756
18756
  if (!B || !L) {
18757
18757
  m.value = 0;
18758
18758
  return;
18759
18759
  }
18760
18760
  const ot = B.getBoundingClientRect(), lt = L.getBoundingClientRect();
18761
18761
  let ne = 0;
18762
- if (Ae) {
18763
- const Xn = Ae.getBoundingClientRect(), Zf = getComputedStyle(Ae), Ya = parseFloat(Zf.marginBottom || "0");
18762
+ if (de) {
18763
+ const Xn = de.getBoundingClientRect(), Zf = getComputedStyle(de), Ya = parseFloat(Zf.marginBottom || "0");
18764
18764
  ne = Xn.height + (isNaN(Ya) ? 0 : Ya);
18765
18765
  }
18766
18766
  let Ie = 0;
@@ -18785,14 +18785,14 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18785
18785
  return;
18786
18786
  }
18787
18787
  const B = $(L.channelId);
18788
- B && k.includes(B) && (h.value = B, y.value = n.channels.find((Ae) => Ae.channelId === L.channelId));
18788
+ B && k.includes(B) && (h.value = B, y.value = n.channels.find((de) => de.channelId === L.channelId));
18789
18789
  };
18790
18790
  return me(() => {
18791
18791
  st(), window.addEventListener("resize", st), document.addEventListener("click", Qe), pe(), it(n.selectedDialog);
18792
- }), Mt(() => {
18792
+ }), _t(() => {
18793
18793
  window.removeEventListener("resize", st), document.removeEventListener("click", Qe);
18794
18794
  }), (L, B) => {
18795
- var Ae, Fe, ot, lt;
18795
+ var de, Fe, ot, lt;
18796
18796
  return l(), r("div", {
18797
18797
  ref_key: "panelRef",
18798
18798
  ref: f,
@@ -18848,10 +18848,10 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18848
18848
  c.value && s.value ? (l(), r("div", {
18849
18849
  key: 0,
18850
18850
  class: "attributes-menu",
18851
- style: de({ width: g.value })
18851
+ style: ce({ width: g.value })
18852
18852
  }, [
18853
18853
  o("div", n0, x(s.value === "phone" ? "Телефон" : "Недавний"), 1),
18854
- N.value && ((Ae = n.recentAttributeChannels[s.value]) != null && Ae.tooltip) ? (l(), U(nt, {
18854
+ N.value && ((de = n.recentAttributeChannels[s.value]) != null && de.tooltip) ? (l(), U(nt, {
18855
18855
  key: 0,
18856
18856
  text: (Fe = n.recentAttributeChannels[s.value]) == null ? void 0 : Fe.tooltip,
18857
18857
  position: "bottom",
@@ -18862,7 +18862,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18862
18862
  return [
18863
18863
  o("div", {
18864
18864
  class: j(["recent-attribute", {
18865
- "frozen-hover": M.value
18865
+ "frozen-hover": _.value
18866
18866
  }]),
18867
18867
  onMouseenter: B[1] || (B[1] = (Ie) => Re(Ie)),
18868
18868
  onMouseleave: ut,
@@ -18870,7 +18870,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18870
18870
  onClick: B[2] || (B[2] = (Ie) => E())
18871
18871
  }, [
18872
18872
  o("div", a0, [
18873
- o("span", f0, x((ne = _.value) == null ? void 0 : ne.value), 1)
18873
+ o("span", f0, x((ne = M.value) == null ? void 0 : ne.value), 1)
18874
18874
  ]),
18875
18875
  o("span", {
18876
18876
  class: j(["channel-icon-small", { "menu-icon-grey": s.value !== "sms" }])
@@ -18884,7 +18884,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18884
18884
  }, 8, ["text"])) : N.value ? (l(), r("div", {
18885
18885
  key: 1,
18886
18886
  class: j(["recent-attribute", {
18887
- "frozen-hover": M.value
18887
+ "frozen-hover": _.value
18888
18888
  }]),
18889
18889
  onMouseenter: B[3] || (B[3] = (ne) => Re(ne)),
18890
18890
  onMouseleave: ut,
@@ -18892,7 +18892,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18892
18892
  onClick: B[4] || (B[4] = (ne) => E())
18893
18893
  }, [
18894
18894
  o("div", s0, [
18895
- o("span", i0, x((ot = _.value) == null ? void 0 : ot.value), 1)
18895
+ o("span", i0, x((ot = M.value) == null ? void 0 : ot.value), 1)
18896
18896
  ]),
18897
18897
  o("span", {
18898
18898
  class: j(["channel-icon-small", { "menu-icon-grey": s.value !== "sms" }])
@@ -18925,7 +18925,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18925
18925
  A.value && z.value ? (l(), r("div", {
18926
18926
  key: 3,
18927
18927
  class: "sub-menu left",
18928
- style: de({ top: m.value + "px" }),
18928
+ style: ce({ top: m.value + "px" }),
18929
18929
  onMouseenter: Gn,
18930
18930
  onMouseleave: an
18931
18931
  }, [
@@ -18953,7 +18953,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18953
18953
  }, b0 = {
18954
18954
  key: 1,
18955
18955
  class: "call-message__title"
18956
- }, _0 = { key: 1 }, M0 = /* @__PURE__ */ J({
18956
+ }, M0 = { key: 1 }, _0 = /* @__PURE__ */ J({
18957
18957
  __name: "ReplyCallMessage",
18958
18958
  props: {
18959
18959
  message: {
@@ -18973,11 +18973,11 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
18973
18973
  o("div", v0, [
18974
18974
  e.message.isMissedCall ? (l(), r("span", b0, " Пропущенный аудиозвонок ")) : (l(), r("span", y0, " Аудиозвонок "))
18975
18975
  ]),
18976
- e.message.callDuration ? (l(), r("p", _0, x(e.message.callDuration), 1)) : v("", !0)
18976
+ e.message.callDuration ? (l(), r("p", M0, x(e.message.callDuration), 1)) : v("", !0)
18977
18977
  ])
18978
18978
  ], 64));
18979
18979
  }
18980
- }), w0 = /* @__PURE__ */ O(M0, [["__scopeId", "data-v-72ef3094"]]), C0 = { class: "reply__reset" }, kt = /* @__PURE__ */ J({
18980
+ }), w0 = /* @__PURE__ */ O(_0, [["__scopeId", "data-v-72ef3094"]]), C0 = { class: "reply__reset" }, kt = /* @__PURE__ */ J({
18981
18981
  __name: "BaseReplyMessage",
18982
18982
  props: {
18983
18983
  message: {
@@ -19128,7 +19128,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19128
19128
  i.value = !0;
19129
19129
  }, p = () => {
19130
19130
  i.value = !1, f.value = !1;
19131
- }, M = P(() => Ct(n.message.status));
19131
+ }, _ = P(() => Ct(n.message.status));
19132
19132
  function h(y) {
19133
19133
  return y.position === "left" ? "file-message__left" : "file-message__right";
19134
19134
  }
@@ -19138,6 +19138,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19138
19138
  e.applyStyle(e.message)
19139
19139
  ]]),
19140
19140
  messageId: e.message.messageId,
19141
+ style: ce(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
19141
19142
  onMouseleave: p
19142
19143
  }, [
19143
19144
  e.message.avatar && e.isFirstInSeries ? (l(), r("img", {
@@ -19146,12 +19147,12 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19146
19147
  src: e.message.avatar,
19147
19148
  height: "32",
19148
19149
  width: "32",
19149
- style: de({ gridRow: e.message.subText ? "2" : "1" })
19150
+ style: ce({ gridRow: e.message.subText ? "2" : "1" })
19150
19151
  }, null, 12, U0)) : v("", !0),
19151
19152
  e.message.subText && e.isFirstInSeries ? (l(), r("p", B0, x(e.message.subText), 1)) : v("", !0),
19152
19153
  o("div", {
19153
19154
  class: j(["file-message__content", { "is-first": e.isFirstInSeries, "with-avatar-indent": !e.isFirstInSeries && e.message.avatar }]),
19154
- style: de({ gridRow: e.message.subText ? "2" : "1" }),
19155
+ style: ce({ gridRow: e.message.subText ? "2" : "1" }),
19155
19156
  onMouseenter: g
19156
19157
  }, [
19157
19158
  e.message.reply ? (l(), U(kt, {
@@ -19200,7 +19201,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19200
19201
  o("span", P0, x(e.message.time), 1),
19201
19202
  h(e.message) === "file-message__right" && D(wt).includes(e.message.status) ? (l(), r("div", {
19202
19203
  key: 1,
19203
- class: j(["file-message__status", M.value])
19204
+ class: j(["file-message__status", _.value])
19204
19205
  }, [
19205
19206
  e.message.status !== "sent" ? (l(), r("span", q0)) : v("", !0),
19206
19207
  m[4] || (m[4] = o("span", { class: "pi pi-check" }, null, -1))
@@ -19225,9 +19226,9 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19225
19226
  _: 1
19226
19227
  })
19227
19228
  ], 38)
19228
- ], 42, L0));
19229
+ ], 46, L0));
19229
19230
  }
19230
- }), W0 = /* @__PURE__ */ O(H0, [["__scopeId", "data-v-d3639067"]]), K0 = ["messageId"], Z0 = ["src"], J0 = {
19231
+ }), W0 = /* @__PURE__ */ O(H0, [["__scopeId", "data-v-9334e0e7"]]), K0 = ["messageId"], Z0 = ["src"], J0 = {
19231
19232
  key: 1,
19232
19233
  class: "image-message__subtext"
19233
19234
  }, G0 = ["src", "alt"], X0 = {
@@ -19271,7 +19272,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19271
19272
  function p(w) {
19272
19273
  w.preventDefault(), w.target.href && window.open(w.target.href, "_blank");
19273
19274
  }
19274
- const M = () => {
19275
+ const _ = () => {
19275
19276
  i("action", { messageId: f.message.messageId, type: "views" });
19276
19277
  }, h = () => {
19277
19278
  }, y = () => {
@@ -19283,12 +19284,13 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19283
19284
  return w.position === "left" ? "image-message__left" : "image-message__right";
19284
19285
  }
19285
19286
  const C = () => s.value = !1;
19286
- return (w, _) => (l(), r("div", {
19287
+ return (w, M) => (l(), r("div", {
19287
19288
  class: j(["image-message", [
19288
19289
  I(e.message),
19289
19290
  e.applyStyle(e.message)
19290
19291
  ]]),
19291
19292
  messageId: e.message.messageId,
19293
+ style: ce(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
19292
19294
  onMouseleave: m
19293
19295
  }, [
19294
19296
  e.message.avatar && e.isFirstInSeries ? (l(), r("img", {
@@ -19311,13 +19313,13 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19311
19313
  }, null, 8, ["class", "message"])) : v("", !0),
19312
19314
  o("div", {
19313
19315
  class: "image-message__preview-button",
19314
- onClick: _[0] || (_[0] = (N) => s.value = !0),
19316
+ onClick: M[0] || (M[0] = (N) => s.value = !0),
19315
19317
  onMouseenter: y,
19316
- onMouseleave: _[1] || (_[1] = (N) => A.value = !A.value)
19318
+ onMouseleave: M[1] || (M[1] = (N) => A.value = !A.value)
19317
19319
  }, [
19318
19320
  o("img", {
19319
19321
  class: "image-message__preview-image",
19320
- style: de({ borderRadius: k.value }),
19322
+ style: ce({ borderRadius: k.value }),
19321
19323
  src: e.message.url,
19322
19324
  alt: e.message.alt
19323
19325
  }, null, 12, G0),
@@ -19327,9 +19329,9 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19327
19329
  e.message.views ? (l(), r("div", {
19328
19330
  key: 0,
19329
19331
  class: "image-message__views",
19330
- onClick: Ft(M, ["stop"])
19332
+ onClick: Ft(_, ["stop"])
19331
19333
  }, [
19332
- _[3] || (_[3] = o("span", { class: "pi pi-eye" }, null, -1)),
19334
+ M[3] || (M[3] = o("span", { class: "pi pi-eye" }, null, -1)),
19333
19335
  o("p", null, x(e.message.views), 1)
19334
19336
  ])) : v("", !0),
19335
19337
  o("span", e2, x(e.message.time), 1),
@@ -19338,7 +19340,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19338
19340
  class: j(["image-message__status", T.value])
19339
19341
  }, [
19340
19342
  e.message.status !== "sent" ? (l(), r("span", t2)) : v("", !0),
19341
- _[4] || (_[4] = o("span", { class: "pi pi-check" }, null, -1))
19343
+ M[4] || (M[4] = o("span", { class: "pi pi-check" }, null, -1))
19342
19344
  ], 2)) : v("", !0)
19343
19345
  ])) : v("", !0)
19344
19346
  ]),
@@ -19353,7 +19355,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19353
19355
  download: "",
19354
19356
  target: "_blank",
19355
19357
  onClick: Ft(() => "//Предотвращаем всплытие события клика", ["stop"])
19356
- }, _[5] || (_[5] = [
19358
+ }, M[5] || (M[5] = [
19357
19359
  o("span", { class: "pi pi-download" }, null, -1)
19358
19360
  ]), 8, n2)) : v("", !0)
19359
19361
  ]),
@@ -19365,8 +19367,8 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19365
19367
  c.value && e.message.actions ? (l(), r("button", {
19366
19368
  key: 0,
19367
19369
  class: "image-message__menu-button",
19368
- onClick: _[2] || (_[2] = (N) => u.value = !u.value)
19369
- }, _[6] || (_[6] = [
19370
+ onClick: M[2] || (M[2] = (N) => u.value = !u.value)
19371
+ }, M[6] || (M[6] = [
19370
19372
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
19371
19373
  ]))) : v("", !0)
19372
19374
  ]),
@@ -19421,9 +19423,9 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19421
19423
  _: 1
19422
19424
  })
19423
19425
  ]))
19424
- ], 42, K0));
19426
+ ], 46, K0));
19425
19427
  }
19426
- }), o2 = /* @__PURE__ */ O(i2, [["__scopeId", "data-v-62d1fe44"]]), l2 = ["messageId"], r2 = ["src"], c2 = {
19428
+ }), o2 = /* @__PURE__ */ O(i2, [["__scopeId", "data-v-10129b4f"]]), l2 = ["messageId"], r2 = ["src"], c2 = {
19427
19429
  key: 1,
19428
19430
  class: "text-message__subtext"
19429
19431
  }, u2 = ["innerHTML"], A2 = { class: "text-message__info-container" }, d2 = {
@@ -19470,7 +19472,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19470
19472
  i.value = !1, f.value = !1;
19471
19473
  }, g = P(() => Ct(n.message.status)), p = (y) => {
19472
19474
  d(), a("action", { messageId: n.message.messageId, type: "menu", ...y });
19473
- }, M = () => {
19475
+ }, _ = () => {
19474
19476
  d(), a("action", { messageId: n.message.messageId, type: "views" });
19475
19477
  };
19476
19478
  function h(y) {
@@ -19482,6 +19484,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19482
19484
  e.applyStyle(e.message)
19483
19485
  ]]),
19484
19486
  messageId: e.message.messageId,
19487
+ style: ce(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
19485
19488
  onMouseleave: d
19486
19489
  }, [
19487
19490
  e.message.avatar && e.isFirstInSeries ? (l(), r("img", {
@@ -19490,7 +19493,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19490
19493
  src: e.message.avatar,
19491
19494
  height: "32",
19492
19495
  width: "32",
19493
- style: de({ gridRow: e.message.subText && e.isFirstInSeries ? "2" : "1" })
19496
+ style: ce({ gridRow: e.message.subText && e.isFirstInSeries ? "2" : "1" })
19494
19497
  }, null, 12, r2)) : v("", !0),
19495
19498
  e.message.subText && e.isFirstInSeries ? (l(), r("p", c2, x(e.message.subText), 1)) : v("", !0),
19496
19499
  o("div", {
@@ -19522,7 +19525,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19522
19525
  e.message.views ? (l(), r("div", {
19523
19526
  key: 0,
19524
19527
  class: "text-message__views",
19525
- onClick: M
19528
+ onClick: _
19526
19529
  }, [
19527
19530
  m[1] || (m[1] = o("span", { class: "pi pi-eye" }, null, -1)),
19528
19531
  o("p", null, x(e.message.views), 1)
@@ -19555,12 +19558,12 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19555
19558
  _: 1
19556
19559
  })
19557
19560
  ], 34)
19558
- ], 42, l2));
19561
+ ], 46, l2));
19559
19562
  }
19560
- }), p2 = /* @__PURE__ */ O(m2, [["__scopeId", "data-v-59d0b10d"]]), h2 = ["messageId"], v2 = ["src"], y2 = {
19563
+ }), p2 = /* @__PURE__ */ O(m2, [["__scopeId", "data-v-8af40b13"]]), h2 = ["messageId"], v2 = ["src"], y2 = {
19561
19564
  key: 1,
19562
19565
  class: "audio-message__subtext"
19563
- }, b2 = { class: "audio-message__audio-container" }, _2 = ["src"], M2 = ["max"], w2 = { class: "audio-message__player-controls" }, C2 = { class: "audio-message__remaining-time" }, I2 = { class: "audio-message__speed-btn-container" }, k2 = ["onClick"], D2 = ["href"], N2 = {
19566
+ }, b2 = { class: "audio-message__audio-container" }, M2 = ["src"], _2 = ["max"], w2 = { class: "audio-message__player-controls" }, C2 = { class: "audio-message__remaining-time" }, I2 = { class: "audio-message__speed-btn-container" }, k2 = ["onClick"], D2 = ["href"], N2 = {
19564
19567
  key: 1,
19565
19568
  class: "audio-message__transcript-container"
19566
19569
  }, x2 = {
@@ -19612,20 +19615,20 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19612
19615
  for (let R of i.value)
19613
19616
  R.selected = !1;
19614
19617
  i.value[$].selected = !0, c.value && (c.value.playbackRate = i.value[$].speed);
19615
- }, u = t, c = b(), A = b(!1), d = b(0), g = b(0), p = b(!1), M = b(!1), h = b(!1), y = P(() => f.message.text ? Oe(f.message.text) : ""), m = ($) => {
19618
+ }, u = t, c = b(), A = b(!1), d = b(0), g = b(0), p = b(!1), _ = b(!1), h = b(!1), y = P(() => f.message.text ? Oe(f.message.text) : ""), m = ($) => {
19616
19619
  u("reply", $);
19617
19620
  };
19618
19621
  function k($) {
19619
19622
  $.preventDefault(), $.target.href && window.open($.target.href, "_blank");
19620
19623
  }
19621
19624
  const T = () => {
19622
- M.value = !0;
19625
+ _.value = !0;
19623
19626
  }, I = () => {
19624
- M.value = !1, p.value = !1;
19627
+ _.value = !1, p.value = !1;
19625
19628
  }, C = () => {
19626
19629
  u("action", { messageId: f.message.messageId, type: "views" });
19627
19630
  }, w = () => {
19628
- }, _ = P(() => Ct(f.message.status));
19631
+ }, M = P(() => Ct(f.message.status));
19629
19632
  function N() {
19630
19633
  c.value && (A.value ? c.value.pause() : c.value.play(), A.value = !A.value);
19631
19634
  }
@@ -19659,6 +19662,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19659
19662
  e.applyStyle(e.message)
19660
19663
  ]]),
19661
19664
  messageId: e.message.messageId,
19665
+ style: ce(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
19662
19666
  onMouseleave: I
19663
19667
  }, [
19664
19668
  e.message.avatar && e.isFirstInSeries ? (l(), r("img", {
@@ -19667,7 +19671,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19667
19671
  src: e.message.avatar,
19668
19672
  height: "32",
19669
19673
  width: "32",
19670
- style: de({ gridRow: e.message.subText ? "2" : "1" })
19674
+ style: ce({ gridRow: e.message.subText ? "2" : "1" })
19671
19675
  }, null, 12, v2)) : v("", !0),
19672
19676
  e.message.subText && e.isFirstInSeries ? (l(), r("p", y2, x(e.message.subText), 1)) : v("", !0),
19673
19677
  o("div", {
@@ -19687,7 +19691,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19687
19691
  ref: c,
19688
19692
  src: e.message.url,
19689
19693
  type: "audio/webm"
19690
- }, null, 8, _2),
19694
+ }, null, 8, M2),
19691
19695
  ge(o("button", {
19692
19696
  class: "audio-message__play",
19693
19697
  onClick: N
@@ -19711,8 +19715,8 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19711
19715
  min: 0,
19712
19716
  max: d.value,
19713
19717
  step: "0.1"
19714
- }, null, 8, M2), [
19715
- [_t, g.value]
19718
+ }, null, 8, _2), [
19719
+ [Mt, g.value]
19716
19720
  ]),
19717
19721
  o("div", w2, [
19718
19722
  o("p", C2, x(`${z.value} / ${Y.value}`), 1),
@@ -19767,13 +19771,13 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19767
19771
  o("span", j2, x(e.message.time), 1),
19768
19772
  X(e.message) === "audio-message__right" && D(wt).includes(e.message.status) ? (l(), r("div", {
19769
19773
  key: 1,
19770
- class: j(["audio-message__status", _.value])
19774
+ class: j(["audio-message__status", M.value])
19771
19775
  }, [
19772
19776
  e.message.status !== "sent" ? (l(), r("span", S2)) : v("", !0),
19773
19777
  R[8] || (R[8] = o("span", { class: "pi pi-check" }, null, -1))
19774
19778
  ], 2)) : v("", !0)
19775
19779
  ]),
19776
- M.value && e.message.actions ? (l(), r("button", {
19780
+ _.value && e.message.actions ? (l(), r("button", {
19777
19781
  key: 5,
19778
19782
  class: "audio-message__menu-button",
19779
19783
  onClick: R[2] || (R[2] = (fe) => p.value = !p.value)
@@ -19819,10 +19823,10 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19819
19823
  })
19820
19824
  ]))
19821
19825
  ], 34)
19822
- ], 42, h2);
19826
+ ], 46, h2);
19823
19827
  };
19824
19828
  }
19825
- }), U2 = /* @__PURE__ */ O(L2, [["__scopeId", "data-v-2b0a3051"]]), B2 = { class: "date-message__container" }, $2 = { class: "date-message__text" }, R2 = /* @__PURE__ */ J({
19829
+ }), U2 = /* @__PURE__ */ O(L2, [["__scopeId", "data-v-f7d8057d"]]), B2 = { class: "date-message__container" }, $2 = { class: "date-message__text" }, R2 = /* @__PURE__ */ J({
19826
19830
  __name: "DateMessage",
19827
19831
  props: {
19828
19832
  message: {
@@ -19874,7 +19878,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19874
19878
  function u(V) {
19875
19879
  return V.position === "left" ? "video-message__left" : "video-message__right";
19876
19880
  }
19877
- const c = b(), A = b(), d = b(!1), g = b(!1), p = b(!1), M = b(!1), h = b("");
19881
+ const c = b(), A = b(), d = b(!1), g = b(!1), p = b(!1), _ = b(!1), h = b("");
19878
19882
  ae(
19879
19883
  () => f.message.text,
19880
19884
  () => {
@@ -19889,7 +19893,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19889
19893
  i("action", { messageId: f.message.messageId, type: "views" });
19890
19894
  }, k = () => {
19891
19895
  }, T = () => {
19892
- p.value = !0, M.value = !0;
19896
+ p.value = !0, _.value = !0;
19893
19897
  }, I = () => {
19894
19898
  p.value = !1, g.value = !1;
19895
19899
  }, C = P(() => Ct(f.message.status)), w = () => {
@@ -19898,7 +19902,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19898
19902
  ae([c, A], ([V, z]) => {
19899
19903
  V ? z && (z.pause(), z.currentTime = 0) : z && (z.play(), z.currentTime = 0);
19900
19904
  });
19901
- const _ = P(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), N = () => d.value = !1;
19905
+ const M = P(() => f.message.reply && f.message.text ? "0" : f.message.text ? "8px 8px 0 0" : f.message.reply ? "0 0 8px 8px" : "8px"), N = () => d.value = !1;
19902
19906
  return (V, z) => (l(), r(K, null, [
19903
19907
  o("div", {
19904
19908
  class: j(["video-message", [
@@ -19906,6 +19910,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19906
19910
  e.applyStyle(e.message)
19907
19911
  ]]),
19908
19912
  messageId: e.message.messageId,
19913
+ style: ce(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null),
19909
19914
  onMouseleave: I
19910
19915
  }, [
19911
19916
  e.message.avatar && e.isFirstInSeries ? (l(), r("img", {
@@ -19930,13 +19935,13 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19930
19935
  class: "video-message__preview-button",
19931
19936
  onClick: z[0] || (z[0] = (Y) => d.value = !0),
19932
19937
  onMouseenter: T,
19933
- onMouseleave: z[1] || (z[1] = (Y) => M.value = !M.value)
19938
+ onMouseleave: z[1] || (z[1] = (Y) => _.value = !_.value)
19934
19939
  }, [
19935
19940
  o("video", {
19936
19941
  ref_key: "previewPlayer",
19937
19942
  ref: A,
19938
19943
  class: "video-message__video",
19939
- style: de({ borderRadius: _.value }),
19944
+ style: ce({ borderRadius: M.value }),
19940
19945
  src: e.message.url,
19941
19946
  muted: !0,
19942
19947
  autoplay: "",
@@ -19944,7 +19949,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19944
19949
  }, null, 44, q2),
19945
19950
  W(le, { name: "modal-fade" }, {
19946
19951
  default: Z(() => [
19947
- M.value ? (l(), r("div", H2, [
19952
+ _.value ? (l(), r("div", H2, [
19948
19953
  e.message.views ? (l(), r("div", {
19949
19954
  key: 0,
19950
19955
  class: "video-message__views",
@@ -19967,7 +19972,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
19967
19972
  }),
19968
19973
  W(le, { name: "modal-fade" }, {
19969
19974
  default: Z(() => [
19970
- M.value ? (l(), r("a", {
19975
+ _.value ? (l(), r("a", {
19971
19976
  key: 0,
19972
19977
  class: "video-message__download-button",
19973
19978
  href: e.message.url,
@@ -20021,7 +20026,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20021
20026
  embed: e.message.embed
20022
20027
  }, null, 8, ["class", "embed"])) : v("", !0)
20023
20028
  ], 2)
20024
- ], 42, F2),
20029
+ ], 46, F2),
20025
20030
  (l(), U(we, { to: "body" }, [
20026
20031
  W(le, { name: "modal-fade" }, {
20027
20032
  default: Z(() => [
@@ -20049,7 +20054,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20049
20054
  ]))
20050
20055
  ], 64));
20051
20056
  }
20052
- }), t3 = /* @__PURE__ */ O(e3, [["__scopeId", "data-v-e46a32e2"]]), n3 = ["messageId"], a3 = ["src"], f3 = {
20057
+ }), t3 = /* @__PURE__ */ O(e3, [["__scopeId", "data-v-2765aefd"]]), n3 = ["messageId"], a3 = ["src"], f3 = {
20053
20058
  key: 1,
20054
20059
  class: "call-message__subtext"
20055
20060
  }, s3 = { class: "call-message__content" }, i3 = {
@@ -20102,7 +20107,8 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20102
20107
  i(e.message, f.message),
20103
20108
  e.applyStyle(e.message)
20104
20109
  ]),
20105
- messageId: e.message.messageId
20110
+ messageId: e.message.messageId,
20111
+ style: ce(e.message.position === "right" && e.message.backgroundColor ? { "--chotto-message-right-bg": e.message.backgroundColor } : null)
20106
20112
  }, [
20107
20113
  e.message.avatar ? (l(), r("img", {
20108
20114
  key: 0,
@@ -20110,7 +20116,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20110
20116
  src: e.message.avatar,
20111
20117
  height: "32",
20112
20118
  width: "32",
20113
- style: de({ gridRow: e.message.subText ? "2" : "1" })
20119
+ style: ce({ gridRow: e.message.subText ? "2" : "1" })
20114
20120
  }, null, 12, a3)) : v("", !0),
20115
20121
  e.message.subText ? (l(), r("p", f3, x(e.message.subText), 1)) : v("", !0),
20116
20122
  o("div", s3, [
@@ -20163,10 +20169,10 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20163
20169
  })
20164
20170
  ]))
20165
20171
  ])
20166
- ], 10, n3);
20172
+ ], 14, n3);
20167
20173
  };
20168
20174
  }
20169
- }), p3 = /* @__PURE__ */ O(m3, [["__scopeId", "data-v-9221835d"]]), h3 = { class: "system-message__container" }, v3 = { class: "system-message__text" }, y3 = /* @__PURE__ */ J({
20175
+ }), p3 = /* @__PURE__ */ O(m3, [["__scopeId", "data-v-f6248908"]]), h3 = { class: "system-message__container" }, v3 = { class: "system-message__text" }, y3 = /* @__PURE__ */ J({
20170
20176
  __name: "SystemMessage",
20171
20177
  props: {
20172
20178
  message: {
@@ -20179,7 +20185,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20179
20185
  o("p", v3, x(e.message.text), 1)
20180
20186
  ]));
20181
20187
  }
20182
- }), b3 = /* @__PURE__ */ O(y3, [["__scopeId", "data-v-da4a8ecf"]]), _3 = { class: "typing-message__container" }, M3 = ["src"], w3 = {
20188
+ }), b3 = /* @__PURE__ */ O(y3, [["__scopeId", "data-v-da4a8ecf"]]), M3 = { class: "typing-message__container" }, _3 = ["src"], w3 = {
20183
20189
  key: 1,
20184
20190
  class: "typing-message__subtext"
20185
20191
  }, C3 = /* @__PURE__ */ J({
@@ -20191,15 +20197,15 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20191
20197
  }
20192
20198
  },
20193
20199
  setup(e) {
20194
- return (t, n) => (l(), r("div", _3, [
20200
+ return (t, n) => (l(), r("div", M3, [
20195
20201
  e.message.avatar ? (l(), r("img", {
20196
20202
  key: 0,
20197
20203
  class: "typing-message__avatar",
20198
20204
  src: e.message.avatar,
20199
20205
  height: "32",
20200
20206
  width: "32",
20201
- style: de({ gridRow: e.message.subText ? "2" : "1" })
20202
- }, null, 12, M3)) : v("", !0),
20207
+ style: ce({ gridRow: e.message.subText ? "2" : "1" })
20208
+ }, null, 12, _3)) : v("", !0),
20203
20209
  e.message.subText ? (l(), r("p", w3, x(e.message.subText), 1)) : v("", !0),
20204
20210
  n[0] || (n[0] = o("div", { class: "typing-message__loader-container" }, [
20205
20211
  o("div", { class: "typing-message__loader" })
@@ -20494,14 +20500,14 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20494
20500
  }
20495
20501
  },
20496
20502
  setup(e) {
20497
- const t = e, n = Ma();
20503
+ const t = e, n = _a();
20498
20504
  return dt("chatAppId", n), dt("extChatAppId", t.extChatAppId ? t.extChatAppId : ""), (a, f) => (l(), r("div", {
20499
20505
  id: D(n),
20500
20506
  class: "base"
20501
20507
  }, [
20502
20508
  o("div", {
20503
20509
  class: "base__container",
20504
- style: de({ height: e.height, width: e.width })
20510
+ style: ce({ height: e.height, width: e.width })
20505
20511
  }, [
20506
20512
  ie(a.$slots, "default")
20507
20513
  ], 4)
@@ -20533,18 +20539,18 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20533
20539
  },
20534
20540
  emits: ["close-window", "get-size"],
20535
20541
  setup(e, { emit: t }) {
20536
- const n = e, a = b({ x: 0, y: 0 }), f = b(null), i = b(null), s = b(!1), u = b(0), c = b(0), A = b(0), d = Ma();
20542
+ const n = e, a = b({ x: 0, y: 0 }), f = b(null), i = b(null), s = b(!1), u = b(0), c = b(0), A = b(0), d = _a();
20537
20543
  dt("chatAppId", d), dt("extChatAppId", n.extChatAppId ? n.extChatAppId : "");
20538
20544
  const g = (h) => {
20539
20545
  s.value = !0, u.value = h.clientX - f.value.offsetLeft, c.value = h.clientY - f.value.offsetTop;
20540
- }, p = () => s.value = !1, M = (h) => {
20546
+ }, p = () => s.value = !1, _ = (h) => {
20541
20547
  if (s.value) {
20542
20548
  const y = h.clientX - u.value, m = h.clientY - c.value;
20543
20549
  a.value.x = y, a.value.y = m;
20544
20550
  }
20545
20551
  };
20546
20552
  return me(() => {
20547
- document.addEventListener("mousemove", M), window.addEventListener("resize", () => {
20553
+ document.addEventListener("mousemove", _), window.addEventListener("resize", () => {
20548
20554
  f.value && (a.value.x = Math.max(
20549
20555
  0,
20550
20556
  Math.min(
@@ -20564,7 +20570,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20564
20570
  ref_key: "element",
20565
20571
  ref: f,
20566
20572
  class: "float-window",
20567
- style: de({
20573
+ style: ce({
20568
20574
  left: a.value.x + "px",
20569
20575
  top: a.value.y + "px",
20570
20576
  userSelect: s.value ? "none" : "auto",
@@ -20601,7 +20607,7 @@ const Gd = /* @__PURE__ */ O(Kd, [["render", Jd]]), Xd = ["onClick", "onMouseent
20601
20607
  ], 544),
20602
20608
  o("div", {
20603
20609
  class: "float-window__content",
20604
- style: de({ height: A.value + "px" })
20610
+ style: ce({ height: A.value + "px" })
20605
20611
  }, [
20606
20612
  ie(h.$slots, "default")
20607
20613
  ], 4)
@@ -20619,16 +20625,16 @@ function h4(e, t) {
20619
20625
  ])
20620
20626
  ]);
20621
20627
  }
20622
- const vg = /* @__PURE__ */ O(d4, [["render", h4], ["__scopeId", "data-v-a907ea90"]]), v4 = {}, y4 = { class: "extend-layout__container" }, b4 = { class: "extend-layout__first-col" }, _4 = { class: "extend-layout__second-col" }, M4 = { class: "extend-layout__third-col" };
20628
+ const vg = /* @__PURE__ */ O(d4, [["render", h4], ["__scopeId", "data-v-a907ea90"]]), v4 = {}, y4 = { class: "extend-layout__container" }, b4 = { class: "extend-layout__first-col" }, M4 = { class: "extend-layout__second-col" }, _4 = { class: "extend-layout__third-col" };
20623
20629
  function w4(e, t) {
20624
20630
  return l(), r("div", y4, [
20625
20631
  o("div", b4, [
20626
20632
  ie(e.$slots, "first-col", {}, void 0, !0)
20627
20633
  ]),
20628
- o("div", _4, [
20634
+ o("div", M4, [
20629
20635
  ie(e.$slots, "second-col", {}, void 0, !0)
20630
20636
  ]),
20631
- o("div", M4, [
20637
+ o("div", _4, [
20632
20638
  ie(e.$slots, "third-col", {}, void 0, !0)
20633
20639
  ])
20634
20640
  ]);
@@ -20689,7 +20695,7 @@ const bg = /* @__PURE__ */ O(C4, [["render", D4], ["__scopeId", "data-v-08603b18
20689
20695
  ])) : v("", !0)
20690
20696
  ], 10, N4));
20691
20697
  }
20692
- }), _g = /* @__PURE__ */ O(S4, [["__scopeId", "data-v-078d85ee"]]), V4 = ["id"], O4 = ["id"], z4 = ["id"], L4 = ["id"], U4 = {
20698
+ }), Mg = /* @__PURE__ */ O(S4, [["__scopeId", "data-v-078d85ee"]]), V4 = ["id"], O4 = ["id"], z4 = ["id"], L4 = ["id"], U4 = {
20693
20699
  __name: "AdaptiveExtendedLayout",
20694
20700
  props: {
20695
20701
  isSecondColVisible: {
@@ -20745,7 +20751,7 @@ const bg = /* @__PURE__ */ O(C4, [["render", D4], ["__scopeId", "data-v-08603b18
20745
20751
  ], 8, L4)
20746
20752
  ], 8, V4));
20747
20753
  }
20748
- }, Mg = /* @__PURE__ */ O(U4, [["__scopeId", "data-v-98032f1b"]]);
20754
+ }, _g = /* @__PURE__ */ O(U4, [["__scopeId", "data-v-98032f1b"]]);
20749
20755
  export {
20750
20756
  yg as $,
20751
20757
  U2 as A,
@@ -20776,9 +20782,9 @@ export {
20776
20782
  vg as Z,
20777
20783
  O as _,
20778
20784
  gf as a,
20779
- Mg as a0,
20785
+ _g as a0,
20780
20786
  bg as a1,
20781
- _g as a2,
20787
+ Mg as a2,
20782
20788
  gg as a3,
20783
20789
  pd as a4,
20784
20790
  bd as a5,