@mobilon-dev/chotto 0.0.32 → 0.0.33

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,5 +1,5 @@
1
- import { openBlock as r, createElementBlock as d, createElementVNode as o, Fragment as B, renderList as R, createCommentVNode as y, toDisplayString as _, ref as v, computed as x, normalizeClass as E, normalizeStyle as U, createTextVNode as bn, createVNode as S, Transition as H, withCtx as K, createBlock as Q, Teleport as yn, onMounted as _e, withDirectives as ae, vShow as pe, renderSlot as W, defineComponent as ce, inject as Pe, getCurrentInstance as vn, toRaw as Jf, watch as Ze, onBeforeUnmount as In, provide as _n, reactive as wn, readonly as Dn, vModelText as Wf, resolveComponent as Fe, onUnmounted as Nn, withModifiers as kn, mergeModels as Ef, useModel as jn, unref as me, withKeys as Vn, onUpdated as En, resolveDynamicComponent as Tn, nextTick as Hf, toRef as xn, vModelCheckbox as Sn, h as Tf, defineAsyncComponent as zn, createApp as On } from "vue";
2
- const N = (e, f) => {
1
+ import { openBlock as r, createElementBlock as d, createElementVNode as o, Fragment as B, renderList as R, createCommentVNode as b, toDisplayString as w, ref as y, computed as x, normalizeClass as T, normalizeStyle as U, createTextVNode as bn, createVNode as S, Transition as H, withCtx as K, createBlock as Q, Teleport as yn, onMounted as _e, withDirectives as ae, vShow as pe, renderSlot as W, defineComponent as ce, inject as Pe, getCurrentInstance as vn, toRaw as Jf, watch as $e, onBeforeUnmount as In, provide as _n, reactive as wn, readonly as Dn, vModelText as Wf, resolveComponent as Fe, onUnmounted as Nn, withModifiers as kn, mergeModels as Ef, useModel as jn, unref as me, withKeys as Vn, onUpdated as En, resolveDynamicComponent as Tn, nextTick as Hf, toRef as xn, vModelCheckbox as Sn, h as Tf, defineAsyncComponent as zn, createApp as On } from "vue";
2
+ const k = (e, f) => {
3
3
  const n = e.__vccOpts || e;
4
4
  for (const [a, A] of f)
5
5
  n[a] = A;
@@ -31,14 +31,14 @@ const N = (e, f) => {
31
31
  src: i.icon,
32
32
  width: "18",
33
33
  height: "18"
34
- }, null, 8, Bn)) : y("", !0),
35
- o("span", null, _(i.title), 1)
34
+ }, null, 8, Bn)) : b("", !0),
35
+ o("span", null, w(i.title), 1)
36
36
  ], 8, Qn))), 128))
37
37
  ])
38
38
  ])
39
39
  ]));
40
40
  }
41
- }, de = /* @__PURE__ */ N(Yn, [["__scopeId", "data-v-8e12dd7e"]]), Rn = ["messageId"], qn = ["src"], Fn = {
41
+ }, de = /* @__PURE__ */ k(Yn, [["__scopeId", "data-v-8e12dd7e"]]), Rn = ["messageId"], qn = ["src"], Fn = {
42
42
  key: 1,
43
43
  class: "file-message__subtext"
44
44
  }, Jn = ["href"], Wn = { class: "file-message__info-container" }, Hn = { class: "file-message__time" }, Kn = {
@@ -53,7 +53,7 @@ const N = (e, f) => {
53
53
  }
54
54
  },
55
55
  setup(e) {
56
- const f = e, n = v(!1), a = v(!1), A = () => {
56
+ const f = e, n = y(!1), a = y(!1), A = () => {
57
57
  a.value = !0;
58
58
  }, s = () => {
59
59
  a.value = !1, n.value = !1;
@@ -72,7 +72,7 @@ const N = (e, f) => {
72
72
  }
73
73
  });
74
74
  return (u, l) => (r(), d("div", {
75
- class: E(["file-message", t(e.message)]),
75
+ class: T(["file-message", t(e.message)]),
76
76
  messageId: e.message.messageId,
77
77
  onMouseleave: s
78
78
  }, [
@@ -83,8 +83,8 @@ const N = (e, f) => {
83
83
  height: "32",
84
84
  width: "32",
85
85
  style: U({ gridRow: e.message.subText ? "2" : "1" })
86
- }, null, 12, qn)) : y("", !0),
87
- e.message.subText ? (r(), d("p", Fn, _(e.message.subText), 1)) : y("", !0),
86
+ }, null, 12, qn)) : b("", !0),
87
+ e.message.subText ? (r(), d("p", Fn, w(e.message.subText), 1)) : b("", !0),
88
88
  o("div", {
89
89
  class: "file-message__content",
90
90
  onMouseenter: A
@@ -96,25 +96,25 @@ const N = (e, f) => {
96
96
  target: "_blank"
97
97
  }, [
98
98
  l[1] || (l[1] = o("span", { class: "pi pi-file" }, null, -1)),
99
- bn(" " + _(e.message.filename), 1)
99
+ bn(" " + w(e.message.filename), 1)
100
100
  ], 8, Jn),
101
101
  o("div", Wn, [
102
- o("span", Hn, _(e.message.time), 1),
102
+ o("span", Hn, w(e.message.time), 1),
103
103
  t(e.message) === "file-message__right" && e.message.status ? (r(), d("div", {
104
104
  key: 0,
105
- class: E(["file-message__status", i.value])
105
+ class: T(["file-message__status", i.value])
106
106
  }, [
107
- e.message.status !== "sent" ? (r(), d("span", Kn)) : y("", !0),
107
+ e.message.status !== "sent" ? (r(), d("span", Kn)) : b("", !0),
108
108
  l[2] || (l[2] = o("span", { class: "pi pi-check" }, null, -1))
109
- ], 2)) : y("", !0)
109
+ ], 2)) : b("", !0)
110
110
  ]),
111
111
  a.value && e.message.actions ? (r(), d("button", {
112
112
  key: 0,
113
113
  class: "file-message__menu-button",
114
- onClick: l[0] || (l[0] = (c) => n.value = !n.value)
114
+ onClick: l[0] || (l[0] = (g) => n.value = !n.value)
115
115
  }, l[3] || (l[3] = [
116
116
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
117
- ]))) : y("", !0),
117
+ ]))) : b("", !0),
118
118
  S(H, null, {
119
119
  default: K(() => [
120
120
  n.value && e.message.actions ? (r(), Q(de, {
@@ -122,14 +122,14 @@ const N = (e, f) => {
122
122
  class: "file-message__context-menu",
123
123
  actions: e.message.actions,
124
124
  onClick: u.clickAction
125
- }, null, 8, ["actions", "onClick"])) : y("", !0)
125
+ }, null, 8, ["actions", "onClick"])) : b("", !0)
126
126
  ]),
127
127
  _: 1
128
128
  })
129
129
  ], 32)
130
130
  ], 42, Rn));
131
131
  }
132
- }, Zn = /* @__PURE__ */ N(Pn, [["__scopeId", "data-v-c2ab0283"]]), $n = ["messageId"], Gn = ["src"], Xn = {
132
+ }, $n = /* @__PURE__ */ k(Pn, [["__scopeId", "data-v-c2ab0283"]]), Zn = ["messageId"], Gn = ["src"], Xn = {
133
133
  key: 1,
134
134
  class: "image-message__subtext"
135
135
  }, ea = ["src", "alt"], fa = { class: "image-message__info-container" }, na = { class: "image-message__time" }, aa = {
@@ -147,7 +147,7 @@ const N = (e, f) => {
147
147
  }
148
148
  },
149
149
  setup(e) {
150
- const f = e, n = v(!1), a = v(!1), A = v(!1), s = () => {
150
+ const f = e, n = y(!1), a = y(!1), A = y(!1), s = () => {
151
151
  A.value = !0;
152
152
  }, t = () => {
153
153
  A.value = !1, a.value = !1;
@@ -165,8 +165,8 @@ const N = (e, f) => {
165
165
  return "";
166
166
  }
167
167
  });
168
- return (l, c) => (r(), d("div", {
169
- class: E(["image-message", i(e.message)]),
168
+ return (l, g) => (r(), d("div", {
169
+ class: T(["image-message", i(e.message)]),
170
170
  messageId: e.message.messageId,
171
171
  onMouseleave: t
172
172
  }, [
@@ -177,15 +177,15 @@ const N = (e, f) => {
177
177
  height: "32",
178
178
  width: "32",
179
179
  style: U({ gridRow: e.message.subText ? "2" : "1" })
180
- }, null, 12, Gn)) : y("", !0),
181
- e.message.subText ? (r(), d("p", Xn, _(e.message.subText), 1)) : y("", !0),
180
+ }, null, 12, Gn)) : b("", !0),
181
+ e.message.subText ? (r(), d("p", Xn, w(e.message.subText), 1)) : b("", !0),
182
182
  o("div", {
183
183
  class: "image-message__content",
184
184
  onMouseenter: s
185
185
  }, [
186
186
  o("button", {
187
187
  class: "image-message__button",
188
- onClick: c[0] || (c[0] = (g) => n.value = !0)
188
+ onClick: g[0] || (g[0] = (c) => n.value = !0)
189
189
  }, [
190
190
  o("img", {
191
191
  class: "image-message__preview-image",
@@ -193,14 +193,14 @@ const N = (e, f) => {
193
193
  alt: e.message.alt
194
194
  }, null, 8, ea),
195
195
  o("div", fa, [
196
- o("span", na, _(e.message.time), 1),
196
+ o("span", na, w(e.message.time), 1),
197
197
  i(e.message) === "image-message__right" && e.message.status ? (r(), d("div", {
198
198
  key: 0,
199
- class: E(["image-message__status", u.value])
199
+ class: T(["image-message__status", u.value])
200
200
  }, [
201
- e.message.status !== "sent" ? (r(), d("span", aa)) : y("", !0),
202
- c[3] || (c[3] = o("span", { class: "pi pi-check" }, null, -1))
203
- ], 2)) : y("", !0)
201
+ e.message.status !== "sent" ? (r(), d("span", aa)) : b("", !0),
202
+ g[3] || (g[3] = o("span", { class: "pi pi-check" }, null, -1))
203
+ ], 2)) : b("", !0)
204
204
  ])
205
205
  ]),
206
206
  (r(), Q(yn, { to: "body" }, [
@@ -210,8 +210,8 @@ const N = (e, f) => {
210
210
  o("div", ta, [
211
211
  o("button", {
212
212
  class: "image-message__modal-close-button",
213
- onClick: c[1] || (c[1] = (g) => n.value = !1)
214
- }, c[4] || (c[4] = [
213
+ onClick: g[1] || (g[1] = (c) => n.value = !1)
214
+ }, g[4] || (g[4] = [
215
215
  o("span", null, [
216
216
  o("i", { class: "pi pi-times" })
217
217
  ], -1)
@@ -222,7 +222,7 @@ const N = (e, f) => {
222
222
  alt: e.message.alt
223
223
  }, null, 8, sa)
224
224
  ])
225
- ])) : y("", !0)
225
+ ])) : b("", !0)
226
226
  ]),
227
227
  _: 1
228
228
  })
@@ -230,10 +230,10 @@ const N = (e, f) => {
230
230
  A.value && e.message.actions ? (r(), d("button", {
231
231
  key: 0,
232
232
  class: "image-message__menu-button",
233
- onClick: c[2] || (c[2] = (g) => a.value = !a.value)
234
- }, c[5] || (c[5] = [
233
+ onClick: g[2] || (g[2] = (c) => a.value = !a.value)
234
+ }, g[5] || (g[5] = [
235
235
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
236
- ]))) : y("", !0),
236
+ ]))) : b("", !0),
237
237
  S(H, { name: "context-menu" }, {
238
238
  default: K(() => [
239
239
  a.value && e.message.actions ? (r(), Q(de, {
@@ -241,14 +241,14 @@ const N = (e, f) => {
241
241
  class: "image-message__context-menu",
242
242
  actions: e.message.actions,
243
243
  onClick: l.clickAction
244
- }, null, 8, ["actions", "onClick"])) : y("", !0)
244
+ }, null, 8, ["actions", "onClick"])) : b("", !0)
245
245
  ]),
246
246
  _: 1
247
247
  })
248
248
  ], 32)
249
- ], 42, $n));
249
+ ], 42, Zn));
250
250
  }
251
- }, oa = /* @__PURE__ */ N(ia, [["__scopeId", "data-v-4fd6ddff"]]), ua = { class: "text-message" }, ra = ["messageId"], la = ["src"], ca = {
251
+ }, oa = /* @__PURE__ */ k(ia, [["__scopeId", "data-v-4fd6ddff"]]), ua = { class: "text-message" }, ra = ["messageId"], la = ["src"], ca = {
252
252
  key: 1,
253
253
  class: "text-message__subtext"
254
254
  }, da = { class: "text-message__text" }, ga = { class: "text-message__info-container" }, ma = {
@@ -267,17 +267,17 @@ const N = (e, f) => {
267
267
  },
268
268
  emits: ["action"],
269
269
  setup(e, { emit: f }) {
270
- const n = e, a = f, A = v(!1), s = v(!1), t = () => {
270
+ const n = e, a = f, A = y(!1), s = y(!1), t = () => {
271
271
  s.value = !0;
272
272
  }, i = () => {
273
273
  s.value = !1, A.value = !1;
274
- }, u = (g) => {
275
- i(), a("action", { messageId: n.message.messageId, ...g });
274
+ }, u = (c) => {
275
+ i(), a("action", { messageId: n.message.messageId, ...c });
276
276
  };
277
- function l(g) {
278
- return g.position === "left" ? "text-message__left" : "text-message__right";
277
+ function l(c) {
278
+ return c.position === "left" ? "text-message__left" : "text-message__right";
279
279
  }
280
- const c = x(() => {
280
+ const g = x(() => {
281
281
  switch (n.message.status) {
282
282
  case "read":
283
283
  return "text-message__status--read";
@@ -287,9 +287,9 @@ const N = (e, f) => {
287
287
  return "";
288
288
  }
289
289
  });
290
- return (g, m) => (r(), d("div", ua, [
290
+ return (c, m) => (r(), d("div", ua, [
291
291
  o("div", {
292
- class: E(l(e.message)),
292
+ class: T(l(e.message)),
293
293
  messageId: e.message.messageId,
294
294
  onMouseleave: i
295
295
  }, [
@@ -300,30 +300,30 @@ const N = (e, f) => {
300
300
  height: "32",
301
301
  width: "32",
302
302
  style: U({ gridRow: e.message.subText ? "2" : "1" })
303
- }, null, 12, la)) : y("", !0),
304
- e.message.subText ? (r(), d("p", ca, _(e.message.subText), 1)) : y("", !0),
303
+ }, null, 12, la)) : b("", !0),
304
+ e.message.subText ? (r(), d("p", ca, w(e.message.subText), 1)) : b("", !0),
305
305
  o("div", {
306
306
  class: "text-message__content",
307
307
  onMouseenter: t
308
308
  }, [
309
- o("p", da, _(e.message.text), 1),
309
+ o("p", da, w(e.message.text), 1),
310
310
  o("div", ga, [
311
- e.message.time ? (r(), d("span", ma, _(e.message.time), 1)) : y("", !0),
311
+ e.message.time ? (r(), d("span", ma, w(e.message.time), 1)) : b("", !0),
312
312
  l(e.message) === "text-message__right" && e.message.status ? (r(), d("div", {
313
313
  key: 1,
314
- class: E(["text-message__status", c.value])
314
+ class: T(["text-message__status", g.value])
315
315
  }, [
316
- e.message.status !== "sent" ? (r(), d("span", pa)) : y("", !0),
316
+ e.message.status !== "sent" ? (r(), d("span", pa)) : b("", !0),
317
317
  m[1] || (m[1] = o("span", { class: "pi pi-check" }, null, -1))
318
- ], 2)) : y("", !0)
318
+ ], 2)) : b("", !0)
319
319
  ]),
320
320
  s.value && e.message.actions ? (r(), d("button", {
321
321
  key: 0,
322
322
  class: "text-message__menu-button",
323
- onClick: m[0] || (m[0] = (h) => A.value = !A.value)
323
+ onClick: m[0] || (m[0] = (M) => A.value = !A.value)
324
324
  }, m[2] || (m[2] = [
325
325
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
326
- ]))) : y("", !0),
326
+ ]))) : b("", !0),
327
327
  S(H, null, {
328
328
  default: K(() => [
329
329
  A.value && e.message.actions ? (r(), Q(de, {
@@ -331,7 +331,7 @@ const N = (e, f) => {
331
331
  class: "text-message__context-menu",
332
332
  actions: e.message.actions,
333
333
  onClick: u
334
- }, null, 8, ["actions"])) : y("", !0)
334
+ }, null, 8, ["actions"])) : b("", !0)
335
335
  ]),
336
336
  _: 1
337
337
  })
@@ -339,7 +339,7 @@ const N = (e, f) => {
339
339
  ], 42, ra)
340
340
  ]));
341
341
  }
342
- }, ha = /* @__PURE__ */ N(Ma, [["__scopeId", "data-v-222290f8"]]), ba = ["messageId"], ya = ["src"], va = {
342
+ }, ha = /* @__PURE__ */ k(Ma, [["__scopeId", "data-v-222290f8"]]), ba = ["messageId"], ya = ["src"], va = {
343
343
  key: 1,
344
344
  class: "audio-message__subtext"
345
345
  }, Ia = ["src"], _a = { class: "audio-message__progress-bar-container" }, wa = { class: "audio-message__remaining-time" }, Da = { class: "audio-message__info-container" }, Na = { class: "audio-message__time" }, ka = {
@@ -354,18 +354,18 @@ const N = (e, f) => {
354
354
  }
355
355
  },
356
356
  setup(e) {
357
- const f = e, n = v(null), a = v(!1), A = v(0), s = v(0), t = v(!1), i = v(!1), u = () => {
357
+ const f = e, n = y(null), a = y(!1), A = y(0), s = y(0), t = y(!1), i = y(!1), u = () => {
358
358
  i.value = !0;
359
359
  }, l = () => {
360
360
  i.value = !1, t.value = !1;
361
361
  };
362
- function c() {
362
+ function g() {
363
363
  n.value && (a.value ? n.value.pause() : n.value.play(), a.value = !a.value);
364
364
  }
365
- const g = (I) => {
366
- const w = Math.floor(I / 60), k = Math.floor(I % 60);
367
- return `${w.toString().padStart(2, "0")}:${k.toString().padStart(2, "0")}`;
368
- }, m = x(() => n.value ? g(s.value) : "0:00"), h = x(() => n.value ? g(A.value) : "0:00"), p = x(() => A.value > 0 ? s.value / A.value * 100 : 0), b = x(() => {
365
+ const c = (_) => {
366
+ const I = Math.floor(_ / 60), D = Math.floor(_ % 60);
367
+ return `${I.toString().padStart(2, "0")}:${D.toString().padStart(2, "0")}`;
368
+ }, m = x(() => n.value ? c(s.value) : "0:00"), M = x(() => n.value ? c(A.value) : "0:00"), p = x(() => A.value > 0 ? s.value / A.value * 100 : 0), v = x(() => {
369
369
  switch (f.message.status) {
370
370
  case "read":
371
371
  return "audio-message__status--read";
@@ -375,8 +375,8 @@ const N = (e, f) => {
375
375
  return "";
376
376
  }
377
377
  });
378
- function M(I) {
379
- return I.position === "left" ? "audio-message__left" : "audio-message__right";
378
+ function h(_) {
379
+ return _.position === "left" ? "audio-message__left" : "audio-message__right";
380
380
  }
381
381
  return _e(() => {
382
382
  n.value.addEventListener("loadedmetadata", () => {
@@ -384,8 +384,8 @@ const N = (e, f) => {
384
384
  }), n.value.addEventListener("timeupdate", () => {
385
385
  s.value = n.value.currentTime;
386
386
  });
387
- }), (I, w) => (r(), d("div", {
388
- class: E(["audio-message", M(e.message)]),
387
+ }), (_, I) => (r(), d("div", {
388
+ class: T(["audio-message", h(e.message)]),
389
389
  messageId: e.message.messageId,
390
390
  onMouseleave: l
391
391
  }, [
@@ -396,8 +396,8 @@ const N = (e, f) => {
396
396
  height: "32",
397
397
  width: "32",
398
398
  style: U({ gridRow: e.message.subText ? "2" : "1" })
399
- }, null, 12, ya)) : y("", !0),
400
- e.message.subText ? (r(), d("p", va, _(e.message.subText), 1)) : y("", !0),
399
+ }, null, 12, ya)) : b("", !0),
400
+ e.message.subText ? (r(), d("p", va, w(e.message.subText), 1)) : b("", !0),
401
401
  o("div", {
402
402
  class: "audio-message__content",
403
403
  onMouseenter: u
@@ -409,16 +409,16 @@ const N = (e, f) => {
409
409
  }, null, 8, Ia),
410
410
  ae(o("button", {
411
411
  class: "audio-message__play",
412
- onClick: c
413
- }, w[1] || (w[1] = [
412
+ onClick: g
413
+ }, I[1] || (I[1] = [
414
414
  o("span", { class: "pi pi-play" }, null, -1)
415
415
  ]), 512), [
416
416
  [pe, !a.value]
417
417
  ]),
418
418
  ae(o("button", {
419
419
  class: "audio-message__pause",
420
- onClick: c
421
- }, w[2] || (w[2] = [
420
+ onClick: g
421
+ }, I[2] || (I[2] = [
422
422
  o("span", { class: "pi pi-pause" }, null, -1)
423
423
  ]), 512), [
424
424
  [pe, a.value]
@@ -429,39 +429,39 @@ const N = (e, f) => {
429
429
  style: U({ width: p.value + "%" })
430
430
  }, null, 4)
431
431
  ]),
432
- o("p", wa, _(`${m.value} / ${h.value}`), 1),
432
+ o("p", wa, w(`${m.value} / ${M.value}`), 1),
433
433
  o("div", Da, [
434
- o("span", Na, _(e.message.time), 1),
435
- M(e.message) === "audio-message__right" && e.message.status ? (r(), d("div", {
434
+ o("span", Na, w(e.message.time), 1),
435
+ h(e.message) === "audio-message__right" && e.message.status ? (r(), d("div", {
436
436
  key: 0,
437
- class: E(["audio-message__status", b.value])
437
+ class: T(["audio-message__status", v.value])
438
438
  }, [
439
- e.message.status !== "sent" ? (r(), d("span", ka)) : y("", !0),
440
- w[3] || (w[3] = o("span", { class: "pi pi-check" }, null, -1))
441
- ], 2)) : y("", !0)
439
+ e.message.status !== "sent" ? (r(), d("span", ka)) : b("", !0),
440
+ I[3] || (I[3] = o("span", { class: "pi pi-check" }, null, -1))
441
+ ], 2)) : b("", !0)
442
442
  ]),
443
443
  i.value && e.message.actions ? (r(), d("button", {
444
444
  key: 0,
445
445
  class: "audio-message__menu-button",
446
- onClick: w[0] || (w[0] = (k) => t.value = !t.value)
447
- }, w[4] || (w[4] = [
446
+ onClick: I[0] || (I[0] = (D) => t.value = !t.value)
447
+ }, I[4] || (I[4] = [
448
448
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
449
- ]))) : y("", !0),
449
+ ]))) : b("", !0),
450
450
  S(H, null, {
451
451
  default: K(() => [
452
452
  t.value && e.message.actions ? (r(), Q(de, {
453
453
  key: 0,
454
454
  class: "audio-message__context-menu",
455
455
  actions: e.message.actions,
456
- onClick: I.clickAction
457
- }, null, 8, ["actions", "onClick"])) : y("", !0)
456
+ onClick: _.clickAction
457
+ }, null, 8, ["actions", "onClick"])) : b("", !0)
458
458
  ]),
459
459
  _: 1
460
460
  })
461
461
  ], 32)
462
462
  ], 42, ba));
463
463
  }
464
- }, Va = /* @__PURE__ */ N(ja, [["__scopeId", "data-v-f1daf135"]]), Ea = { class: "date-message" }, Ta = { class: "date-message__container" }, xa = { class: "date-message__text" }, Sa = {
464
+ }, Va = /* @__PURE__ */ k(ja, [["__scopeId", "data-v-f1daf135"]]), Ea = { class: "date-message" }, Ta = { class: "date-message__container" }, xa = { class: "date-message__text" }, Sa = {
465
465
  __name: "DateMessage",
466
466
  props: {
467
467
  message: {
@@ -474,11 +474,11 @@ const N = (e, f) => {
474
474
  setup(e) {
475
475
  return (f, n) => (r(), d("div", Ea, [
476
476
  o("div", Ta, [
477
- o("p", xa, _(e.message.text), 1)
477
+ o("p", xa, w(e.message.text), 1)
478
478
  ])
479
479
  ]));
480
480
  }
481
- }, za = /* @__PURE__ */ N(Sa, [["__scopeId", "data-v-2ef5fab4"]]), Oa = {
481
+ }, za = /* @__PURE__ */ k(Sa, [["__scopeId", "data-v-2ef5fab4"]]), Oa = {
482
482
  key: 0,
483
483
  class: "chat-info__container"
484
484
  }, Ca = { class: "chat-info__avatar-container" }, Ua = ["src"], La = {
@@ -508,15 +508,15 @@ const N = (e, f) => {
508
508
  }, null, 8, Ua)) : (r(), d("span", La))
509
509
  ]),
510
510
  o("div", Qa, [
511
- o("h2", Ba, _(e.chat.name), 1),
512
- e.chat["lastActivity.time"] ? (r(), d("p", Ya, _(e.chat["lastActivity.time"]), 1)) : y("", !0)
511
+ o("h2", Ba, w(e.chat.name), 1),
512
+ e.chat["lastActivity.time"] ? (r(), d("p", Ya, w(e.chat["lastActivity.time"]), 1)) : b("", !0)
513
513
  ]),
514
514
  o("div", Ra, [
515
515
  W(a.$slots, "actions", {}, void 0, !0)
516
516
  ])
517
- ])) : y("", !0);
517
+ ])) : b("", !0);
518
518
  }
519
- }, eo = /* @__PURE__ */ N(qa, [["__scopeId", "data-v-cf0f3099"]]), Kf = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Pf = {
519
+ }, io = /* @__PURE__ */ k(qa, [["__scopeId", "data-v-cf0f3099"]]), Kf = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Pf = {
520
520
  recent: "Recently used",
521
521
  smileys_people: "Smiles & People",
522
522
  animals_nature: "Animals & Nature",
@@ -526,18 +526,18 @@ const N = (e, f) => {
526
526
  objects: "Objects",
527
527
  symbols: "Symbols",
528
528
  flags: "Flags"
529
- }, Zf = "u", $e = "n", Re = "v", Te = "r", Fa = {
530
- [$e]: ["grinning face", "grinning"],
531
- [Zf]: "1f600",
529
+ }, $f = "u", Ze = "n", Re = "v", Te = "r", Fa = {
530
+ [Ze]: ["grinning face", "grinning"],
531
+ [$f]: "1f600",
532
532
  [Te]: "1f600"
533
- }, He = "neutral", Ja = "1f3fb", Wa = "1f3fc", Ha = "1f3fd", Ka = "1f3fe", Pa = "1f3ff", Za = [
533
+ }, He = "neutral", Ja = "1f3fb", Wa = "1f3fc", Ha = "1f3fd", Ka = "1f3fe", Pa = "1f3ff", $a = [
534
534
  He,
535
535
  Ja,
536
536
  Wa,
537
537
  Ha,
538
538
  Ka,
539
539
  Pa
540
- ], $a = {
540
+ ], Za = {
541
541
  placeholder: "Search emoji",
542
542
  skinTone: "Skin tone"
543
543
  }, Ga = ["light", "dark", "auto"], Xa = [
@@ -12537,7 +12537,7 @@ function rA() {
12537
12537
  IDBCursor.prototype.continuePrimaryKey
12538
12538
  ]);
12539
12539
  }
12540
- const $f = /* @__PURE__ */ new WeakMap(), of = /* @__PURE__ */ new WeakMap(), Gf = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), lf = /* @__PURE__ */ new WeakMap();
12540
+ const Zf = /* @__PURE__ */ new WeakMap(), of = /* @__PURE__ */ new WeakMap(), Gf = /* @__PURE__ */ new WeakMap(), af = /* @__PURE__ */ new WeakMap(), lf = /* @__PURE__ */ new WeakMap();
12541
12541
  function lA(e) {
12542
12542
  const f = new Promise((n, a) => {
12543
12543
  const A = () => {
@@ -12550,7 +12550,7 @@ function lA(e) {
12550
12550
  e.addEventListener("success", s), e.addEventListener("error", t);
12551
12551
  });
12552
12552
  return f.then((n) => {
12553
- n instanceof IDBCursor && $f.set(n, e);
12553
+ n instanceof IDBCursor && Zf.set(n, e);
12554
12554
  }).catch(() => {
12555
12555
  }), lf.set(f, e), f;
12556
12556
  }
@@ -12596,7 +12596,7 @@ function gA(e) {
12596
12596
  const a = e.call(Af(this), f, ...n);
12597
12597
  return Gf.set(a, f.sort ? f.sort() : [f]), te(a);
12598
12598
  } : rA().includes(e) ? function(...f) {
12599
- return e.apply(Af(this), f), te($f.get(this));
12599
+ return e.apply(Af(this), f), te(Zf.get(this));
12600
12600
  } : function(...f) {
12601
12601
  return te(e.apply(Af(this), f));
12602
12602
  };
@@ -12697,46 +12697,46 @@ function vA() {
12697
12697
  };
12698
12698
  },
12699
12699
  get disabled() {
12700
- let g = Array.isArray(this.options.disabledGroups) ? this.options.disabledGroups : [];
12701
- return this.options.displayRecent || (g = ["recent", ...g]), g;
12700
+ let c = Array.isArray(this.options.disabledGroups) ? this.options.disabledGroups : [];
12701
+ return this.options.displayRecent || (c = ["recent", ...c]), c;
12702
12702
  },
12703
12703
  get groups() {
12704
12704
  return xf.filter(
12705
- (g) => !this.disabled.includes(g.key)
12705
+ (c) => !this.disabled.includes(c.key)
12706
12706
  );
12707
12707
  },
12708
12708
  get orderedGroupKeys() {
12709
- const g = [
12709
+ const c = [
12710
12710
  ...this.options.groupOrder,
12711
12711
  ...Object.keys(this.options.additionalGroups),
12712
12712
  ...xf.map((m) => m.key)
12713
12713
  ];
12714
- return [...new Set(g)].filter((m) => !this.disabled.includes(m));
12714
+ return [...new Set(c)].filter((m) => !this.disabled.includes(m));
12715
12715
  }
12716
12716
  });
12717
12717
  function f() {
12718
12718
  e.options.displayRecent && a();
12719
12719
  }
12720
12720
  async function n() {
12721
- var g;
12721
+ var c;
12722
12722
  let m = await yA();
12723
- return Array.isArray(m) && m.length ? m = JSON.parse(((g = m[0]) == null ? void 0 : g.value) || "") : m = [], m;
12723
+ return Array.isArray(m) && m.length ? m = JSON.parse(((c = m[0]) == null ? void 0 : c.value) || "") : m = [], m;
12724
12724
  }
12725
12725
  function a() {
12726
- n().then((g) => {
12727
- e.recent = g, l();
12726
+ n().then((c) => {
12727
+ e.recent = c, l();
12728
12728
  });
12729
12729
  }
12730
- const A = (g) => {
12731
- e.search = g;
12732
- }, s = (g) => {
12733
- e.emoji = g;
12734
- }, t = (g) => {
12735
- e.activeGroup = g;
12736
- }, i = (g = He) => {
12737
- e.skinTone = g;
12738
- }, u = (g) => {
12739
- e.options = Object.assign({}, e.options, g), f();
12730
+ const A = (c) => {
12731
+ e.search = c;
12732
+ }, s = (c) => {
12733
+ e.emoji = c;
12734
+ }, t = (c) => {
12735
+ e.activeGroup = c;
12736
+ }, i = (c = He) => {
12737
+ e.skinTone = c;
12738
+ }, u = (c) => {
12739
+ e.options = Object.assign({}, e.options, c), f();
12740
12740
  };
12741
12741
  async function l() {
12742
12742
  (await cf(df, gf)).transaction(Me, "readwrite").objectStore(Me).put({
@@ -12744,14 +12744,14 @@ function vA() {
12744
12744
  value: JSON.stringify(e.recent)
12745
12745
  });
12746
12746
  }
12747
- const c = (g) => {
12747
+ const g = (c) => {
12748
12748
  if (e.options.displayRecent !== !0)
12749
12749
  return;
12750
- const m = e.recent.findIndex((p) => p.u === g.u);
12750
+ const m = e.recent.findIndex((p) => p.u === c.u);
12751
12751
  if (m > 0 && e.recent.splice(m, 1), m === 0)
12752
12752
  return;
12753
- const h = { u: g.u, n: Jf(g.n) };
12754
- e.recent = [h, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), l();
12753
+ const M = { u: c.u, n: Jf(c.n) };
12754
+ e.recent = [M, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), l();
12755
12755
  };
12756
12756
  return {
12757
12757
  state: Dn(e),
@@ -12760,10 +12760,10 @@ function vA() {
12760
12760
  updateActiveGroup: t,
12761
12761
  updateSkinTone: i,
12762
12762
  updateOptions: u,
12763
- updateSelect: c
12763
+ updateSelect: g
12764
12764
  };
12765
12765
  }
12766
- var q = "top", Z = "bottom", $ = "right", F = "left", mf = "auto", ze = [q, Z, $, F], he = "start", xe = "end", IA = "clippingParents", Xf = "viewport", je = "popper", _A = "reference", Cf = /* @__PURE__ */ ze.reduce(function(e, f) {
12766
+ var q = "top", $ = "bottom", Z = "right", F = "left", mf = "auto", ze = [q, $, Z, F], he = "start", xe = "end", IA = "clippingParents", Xf = "viewport", je = "popper", _A = "reference", Cf = /* @__PURE__ */ ze.reduce(function(e, f) {
12767
12767
  return e.concat([f + "-" + he, f + "-" + xe]);
12768
12768
  }, []), en = /* @__PURE__ */ [].concat(ze, [mf]).reduce(function(e, f) {
12769
12769
  return e.concat([f, f + "-" + he, f + "-" + xe]);
@@ -12948,10 +12948,10 @@ var BA = function(f, n) {
12948
12948
  })) : f, An(typeof f != "number" ? f : tn(f, ze));
12949
12949
  };
12950
12950
  function YA(e) {
12951
- var f, n = e.state, a = e.name, A = e.options, s = n.elements.arrow, t = n.modifiersData.popperOffsets, i = ee(n.placement), u = Mf(i), l = [F, $].indexOf(i) >= 0, c = l ? "height" : "width";
12951
+ var f, n = e.state, a = e.name, A = e.options, s = n.elements.arrow, t = n.modifiersData.popperOffsets, i = ee(n.placement), u = Mf(i), l = [F, Z].indexOf(i) >= 0, g = l ? "height" : "width";
12952
12952
  if (!(!s || !t)) {
12953
- var g = BA(A.padding, n), m = pf(s), h = u === "y" ? q : F, p = u === "y" ? Z : $, b = n.rects.reference[c] + n.rects.reference[u] - t[u] - n.rects.popper[c], M = t[u] - n.rects.reference[u], I = Oe(s), w = I ? u === "y" ? I.clientHeight || 0 : I.clientWidth || 0 : 0, k = b / 2 - M / 2, D = g[h], T = w - m[c] - g[p], j = w / 2 - m[c] / 2 + k, V = Ve(D, j, T), z = u;
12954
- n.modifiersData[a] = (f = {}, f[z] = V, f.centerOffset = V - j, f);
12953
+ var c = BA(A.padding, n), m = pf(s), M = u === "y" ? q : F, p = u === "y" ? $ : Z, v = n.rects.reference[g] + n.rects.reference[u] - t[u] - n.rects.popper[g], h = t[u] - n.rects.reference[u], _ = Oe(s), I = _ ? u === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, D = v / 2 - h / 2, N = c[M], j = I - m[g] - c[p], V = I / 2 - m[g] / 2 + D, E = Ve(N, V, j), z = u;
12954
+ n.modifiersData[a] = (f = {}, f[z] = E, f.centerOffset = E - V, f);
12955
12955
  }
12956
12956
  }
12957
12957
  function RA(e) {
@@ -12984,17 +12984,17 @@ function JA(e) {
12984
12984
  };
12985
12985
  }
12986
12986
  function Lf(e) {
12987
- var f, n = e.popper, a = e.popperRect, A = e.placement, s = e.variation, t = e.offsets, i = e.position, u = e.gpuAcceleration, l = e.adaptive, c = e.roundOffsets, g = e.isFixed, m = c === !0 ? JA(t) : typeof c == "function" ? c(t) : t, h = m.x, p = h === void 0 ? 0 : h, b = m.y, M = b === void 0 ? 0 : b, I = t.hasOwnProperty("x"), w = t.hasOwnProperty("y"), k = F, D = q, T = window;
12987
+ var f, n = e.popper, a = e.popperRect, A = e.placement, s = e.variation, t = e.offsets, i = e.position, u = e.gpuAcceleration, l = e.adaptive, g = e.roundOffsets, c = e.isFixed, m = g === !0 ? JA(t) : typeof g == "function" ? g(t) : t, M = m.x, p = M === void 0 ? 0 : M, v = m.y, h = v === void 0 ? 0 : v, _ = t.hasOwnProperty("x"), I = t.hasOwnProperty("y"), D = F, N = q, j = window;
12988
12988
  if (l) {
12989
- var j = Oe(n), V = "clientHeight", z = "clientWidth";
12990
- if (j === X(n) && (j = se(n), ne(j).position !== "static" && i === "absolute" && (V = "scrollHeight", z = "scrollWidth")), j = j, A === q || (A === F || A === $) && s === xe) {
12991
- D = Z;
12992
- var L = g && T.visualViewport ? T.visualViewport.height : j[V];
12993
- M -= L - a.height, M *= u ? 1 : -1;
12989
+ var V = Oe(n), E = "clientHeight", z = "clientWidth";
12990
+ if (V === X(n) && (V = se(n), ne(V).position !== "static" && i === "absolute" && (E = "scrollHeight", z = "scrollWidth")), V = V, A === q || (A === F || A === Z) && s === xe) {
12991
+ N = $;
12992
+ var L = c && j.visualViewport ? j.visualViewport.height : V[E];
12993
+ h -= L - a.height, h *= u ? 1 : -1;
12994
12994
  }
12995
- if (A === F || (A === q || A === Z) && s === xe) {
12996
- k = $;
12997
- var O = g && T.visualViewport ? T.visualViewport.width : j[z];
12995
+ if (A === F || (A === q || A === $) && s === xe) {
12996
+ D = Z;
12997
+ var O = c && j.visualViewport ? j.visualViewport.width : V[z];
12998
12998
  p -= O - a.width, p *= u ? 1 : -1;
12999
12999
  }
13000
13000
  }
@@ -13003,9 +13003,9 @@ function Lf(e) {
13003
13003
  }, l && FA);
13004
13004
  if (u) {
13005
13005
  var Y;
13006
- return Object.assign({}, C, (Y = {}, Y[D] = w ? "0" : "", Y[k] = I ? "0" : "", Y.transform = (T.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + M + "px)" : "translate3d(" + p + "px, " + M + "px, 0)", Y));
13006
+ return Object.assign({}, C, (Y = {}, Y[N] = I ? "0" : "", Y[D] = _ ? "0" : "", Y.transform = (j.devicePixelRatio || 1) <= 1 ? "translate(" + p + "px, " + h + "px)" : "translate3d(" + p + "px, " + h + "px, 0)", Y));
13007
13007
  }
13008
- return Object.assign({}, C, (f = {}, f[D] = w ? M + "px" : "", f[k] = I ? p + "px" : "", f.transform = "", f));
13008
+ return Object.assign({}, C, (f = {}, f[N] = I ? h + "px" : "", f[D] = _ ? p + "px" : "", f.transform = "", f));
13009
13009
  }
13010
13010
  function WA(e) {
13011
13011
  var f = e.state, n = e.options, a = n.gpuAcceleration, A = a === void 0 ? !0 : a, s = n.adaptive, t = s === void 0 ? !0 : s, i = n.roundOffsets, u = i === void 0 ? !0 : i, l = {
@@ -13041,11 +13041,11 @@ var HA = {
13041
13041
  };
13042
13042
  function KA(e) {
13043
13043
  var f = e.state, n = e.instance, a = e.options, A = a.scroll, s = A === void 0 ? !0 : A, t = a.resize, i = t === void 0 ? !0 : t, u = X(f.elements.popper), l = [].concat(f.scrollParents.reference, f.scrollParents.popper);
13044
- return s && l.forEach(function(c) {
13045
- c.addEventListener("scroll", n.update, qe);
13044
+ return s && l.forEach(function(g) {
13045
+ g.addEventListener("scroll", n.update, qe);
13046
13046
  }), i && u.addEventListener("resize", n.update, qe), function() {
13047
- s && l.forEach(function(c) {
13048
- c.removeEventListener("scroll", n.update, qe);
13047
+ s && l.forEach(function(g) {
13048
+ g.removeEventListener("scroll", n.update, qe);
13049
13049
  }), i && u.removeEventListener("resize", n.update, qe);
13050
13050
  };
13051
13051
  }
@@ -13057,7 +13057,7 @@ var PA = {
13057
13057
  },
13058
13058
  effect: KA,
13059
13059
  data: {}
13060
- }, ZA = {
13060
+ }, $A = {
13061
13061
  left: "right",
13062
13062
  right: "left",
13063
13063
  bottom: "top",
@@ -13065,16 +13065,16 @@ var PA = {
13065
13065
  };
13066
13066
  function Je(e) {
13067
13067
  return e.replace(/left|right|bottom|top/g, function(f) {
13068
- return ZA[f];
13068
+ return $A[f];
13069
13069
  });
13070
13070
  }
13071
- var $A = {
13071
+ var ZA = {
13072
13072
  start: "end",
13073
13073
  end: "start"
13074
13074
  };
13075
13075
  function Qf(e) {
13076
13076
  return e.replace(/start|end/g, function(f) {
13077
- return $A[f];
13077
+ return ZA[f];
13078
13078
  });
13079
13079
  }
13080
13080
  function hf(e) {
@@ -13155,13 +13155,13 @@ function on(e) {
13155
13155
  y: f.y - n.height
13156
13156
  };
13157
13157
  break;
13158
- case Z:
13158
+ case $:
13159
13159
  u = {
13160
13160
  x: t,
13161
13161
  y: f.y + f.height
13162
13162
  };
13163
13163
  break;
13164
- case $:
13164
+ case Z:
13165
13165
  u = {
13166
13166
  x: f.x + f.width,
13167
13167
  y: i
@@ -13181,13 +13181,13 @@ function on(e) {
13181
13181
  }
13182
13182
  var l = A ? Mf(A) : null;
13183
13183
  if (l != null) {
13184
- var c = l === "y" ? "height" : "width";
13184
+ var g = l === "y" ? "height" : "width";
13185
13185
  switch (s) {
13186
13186
  case he:
13187
- u[l] = u[l] - (f[c] / 2 - n[c] / 2);
13187
+ u[l] = u[l] - (f[g] / 2 - n[g] / 2);
13188
13188
  break;
13189
13189
  case xe:
13190
- u[l] = u[l] + (f[c] / 2 - n[c] / 2);
13190
+ u[l] = u[l] + (f[g] / 2 - n[g] / 2);
13191
13191
  break;
13192
13192
  }
13193
13193
  }
@@ -13195,21 +13195,21 @@ function on(e) {
13195
13195
  }
13196
13196
  function Se(e, f) {
13197
13197
  f === void 0 && (f = {});
13198
- var n = f, a = n.placement, A = a === void 0 ? e.placement : a, s = n.boundary, t = s === void 0 ? IA : s, i = n.rootBoundary, u = i === void 0 ? Xf : i, l = n.elementContext, c = l === void 0 ? je : l, g = n.altBoundary, m = g === void 0 ? !1 : g, h = n.padding, p = h === void 0 ? 0 : h, b = An(typeof p != "number" ? p : tn(p, ze)), M = c === je ? _A : je, I = e.rects.popper, w = e.elements[m ? M : c], k = nt(be(w) ? w : w.contextElement || se(e.elements.popper), t, u), D = ve(e.elements.reference), T = on({
13199
- reference: D,
13200
- element: I,
13198
+ var n = f, a = n.placement, A = a === void 0 ? e.placement : a, s = n.boundary, t = s === void 0 ? IA : s, i = n.rootBoundary, u = i === void 0 ? Xf : i, l = n.elementContext, g = l === void 0 ? je : l, c = n.altBoundary, m = c === void 0 ? !1 : c, M = n.padding, p = M === void 0 ? 0 : M, v = An(typeof p != "number" ? p : tn(p, ze)), h = g === je ? _A : je, _ = e.rects.popper, I = e.elements[m ? h : g], D = nt(be(I) ? I : I.contextElement || se(e.elements.popper), t, u), N = ve(e.elements.reference), j = on({
13199
+ reference: N,
13200
+ element: _,
13201
13201
  strategy: "absolute",
13202
13202
  placement: A
13203
- }), j = rf(Object.assign({}, I, T)), V = c === je ? j : D, z = {
13204
- top: k.top - V.top + b.top,
13205
- bottom: V.bottom - k.bottom + b.bottom,
13206
- left: k.left - V.left + b.left,
13207
- right: V.right - k.right + b.right
13203
+ }), V = rf(Object.assign({}, _, j)), E = g === je ? V : N, z = {
13204
+ top: D.top - E.top + v.top,
13205
+ bottom: E.bottom - D.bottom + v.bottom,
13206
+ left: D.left - E.left + v.left,
13207
+ right: E.right - D.right + v.right
13208
13208
  }, L = e.modifiersData.offset;
13209
- if (c === je && L) {
13209
+ if (g === je && L) {
13210
13210
  var O = L[A];
13211
13211
  Object.keys(z).forEach(function(C) {
13212
- var Y = [$, Z].indexOf(C) >= 0 ? 1 : -1, ie = [q, Z].indexOf(C) >= 0 ? "y" : "x";
13212
+ var Y = [Z, $].indexOf(C) >= 0 ? 1 : -1, ie = [q, $].indexOf(C) >= 0 ? "y" : "x";
13213
13213
  z[C] += O[ie] * Y;
13214
13214
  });
13215
13215
  }
@@ -13217,22 +13217,22 @@ function Se(e, f) {
13217
13217
  }
13218
13218
  function at(e, f) {
13219
13219
  f === void 0 && (f = {});
13220
- var n = f, a = n.placement, A = n.boundary, s = n.rootBoundary, t = n.padding, i = n.flipVariations, u = n.allowedAutoPlacements, l = u === void 0 ? en : u, c = Ie(a), g = c ? i ? Cf : Cf.filter(function(p) {
13221
- return Ie(p) === c;
13222
- }) : ze, m = g.filter(function(p) {
13220
+ var n = f, a = n.placement, A = n.boundary, s = n.rootBoundary, t = n.padding, i = n.flipVariations, u = n.allowedAutoPlacements, l = u === void 0 ? en : u, g = Ie(a), c = g ? i ? Cf : Cf.filter(function(p) {
13221
+ return Ie(p) === g;
13222
+ }) : ze, m = c.filter(function(p) {
13223
13223
  return l.indexOf(p) >= 0;
13224
13224
  });
13225
- m.length === 0 && (m = g);
13226
- var h = m.reduce(function(p, b) {
13227
- return p[b] = Se(e, {
13228
- placement: b,
13225
+ m.length === 0 && (m = c);
13226
+ var M = m.reduce(function(p, v) {
13227
+ return p[v] = Se(e, {
13228
+ placement: v,
13229
13229
  boundary: A,
13230
13230
  rootBoundary: s,
13231
13231
  padding: t
13232
- })[ee(b)], p;
13232
+ })[ee(v)], p;
13233
13233
  }, {});
13234
- return Object.keys(h).sort(function(p, b) {
13235
- return h[p] - h[b];
13234
+ return Object.keys(M).sort(function(p, v) {
13235
+ return M[p] - M[v];
13236
13236
  });
13237
13237
  }
13238
13238
  function At(e) {
@@ -13244,24 +13244,24 @@ function At(e) {
13244
13244
  function tt(e) {
13245
13245
  var f = e.state, n = e.options, a = e.name;
13246
13246
  if (!f.modifiersData[a]._skip) {
13247
- for (var A = n.mainAxis, s = A === void 0 ? !0 : A, t = n.altAxis, i = t === void 0 ? !0 : t, u = n.fallbackPlacements, l = n.padding, c = n.boundary, g = n.rootBoundary, m = n.altBoundary, h = n.flipVariations, p = h === void 0 ? !0 : h, b = n.allowedAutoPlacements, M = f.options.placement, I = ee(M), w = I === M, k = u || (w || !p ? [Je(M)] : At(M)), D = [M].concat(k).reduce(function(ge, Ae) {
13247
+ for (var A = n.mainAxis, s = A === void 0 ? !0 : A, t = n.altAxis, i = t === void 0 ? !0 : t, u = n.fallbackPlacements, l = n.padding, g = n.boundary, c = n.rootBoundary, m = n.altBoundary, M = n.flipVariations, p = M === void 0 ? !0 : M, v = n.allowedAutoPlacements, h = f.options.placement, _ = ee(h), I = _ === h, D = u || (I || !p ? [Je(h)] : At(h)), N = [h].concat(D).reduce(function(ge, Ae) {
13248
13248
  return ge.concat(ee(Ae) === mf ? at(f, {
13249
13249
  placement: Ae,
13250
- boundary: c,
13251
- rootBoundary: g,
13250
+ boundary: g,
13251
+ rootBoundary: c,
13252
13252
  padding: l,
13253
13253
  flipVariations: p,
13254
- allowedAutoPlacements: b
13254
+ allowedAutoPlacements: v
13255
13255
  }) : Ae);
13256
- }, []), T = f.rects.reference, j = f.rects.popper, V = /* @__PURE__ */ new Map(), z = !0, L = D[0], O = 0; O < D.length; O++) {
13257
- var C = D[O], Y = ee(C), ie = Ie(C) === he, we = [q, Z].indexOf(Y) >= 0, De = we ? "width" : "height", J = Se(f, {
13256
+ }, []), j = f.rects.reference, V = f.rects.popper, E = /* @__PURE__ */ new Map(), z = !0, L = N[0], O = 0; O < N.length; O++) {
13257
+ var C = N[O], Y = ee(C), ie = Ie(C) === he, we = [q, $].indexOf(Y) >= 0, De = we ? "width" : "height", J = Se(f, {
13258
13258
  placement: C,
13259
- boundary: c,
13260
- rootBoundary: g,
13259
+ boundary: g,
13260
+ rootBoundary: c,
13261
13261
  altBoundary: m,
13262
13262
  padding: l
13263
- }), G = we ? ie ? $ : F : ie ? Z : q;
13264
- T[De] > j[De] && (G = Je(G));
13263
+ }), G = we ? ie ? Z : F : ie ? $ : q;
13264
+ j[De] > V[De] && (G = Je(G));
13265
13265
  var Ue = Je(G), oe = [];
13266
13266
  if (s && oe.push(J[Y] <= 0), i && oe.push(J[G] <= 0, J[Ue] <= 0), oe.every(function(ge) {
13267
13267
  return ge;
@@ -13269,12 +13269,12 @@ function tt(e) {
13269
13269
  L = C, z = !1;
13270
13270
  break;
13271
13271
  }
13272
- V.set(C, oe);
13272
+ E.set(C, oe);
13273
13273
  }
13274
13274
  if (z)
13275
13275
  for (var Le = p ? 3 : 1, Xe = function(Ae) {
13276
- var ke = D.find(function(Be) {
13277
- var ue = V.get(Be);
13276
+ var ke = N.find(function(Be) {
13277
+ var ue = E.get(Be);
13278
13278
  if (ue)
13279
13279
  return ue.slice(0, Ae).every(function(ef) {
13280
13280
  return ef;
@@ -13312,7 +13312,7 @@ function Yf(e, f, n) {
13312
13312
  };
13313
13313
  }
13314
13314
  function Rf(e) {
13315
- return [q, $, Z, F].some(function(f) {
13315
+ return [q, Z, $, F].some(function(f) {
13316
13316
  return e[f] >= 0;
13317
13317
  });
13318
13318
  }
@@ -13321,15 +13321,15 @@ function it(e) {
13321
13321
  elementContext: "reference"
13322
13322
  }), i = Se(f, {
13323
13323
  altBoundary: !0
13324
- }), u = Yf(t, a), l = Yf(i, A, s), c = Rf(u), g = Rf(l);
13324
+ }), u = Yf(t, a), l = Yf(i, A, s), g = Rf(u), c = Rf(l);
13325
13325
  f.modifiersData[n] = {
13326
13326
  referenceClippingOffsets: u,
13327
13327
  popperEscapeOffsets: l,
13328
- isReferenceHidden: c,
13329
- hasPopperEscaped: g
13328
+ isReferenceHidden: g,
13329
+ hasPopperEscaped: c
13330
13330
  }, f.attributes.popper = Object.assign({}, f.attributes.popper, {
13331
- "data-popper-reference-hidden": c,
13332
- "data-popper-escaped": g
13331
+ "data-popper-reference-hidden": g,
13332
+ "data-popper-escaped": c
13333
13333
  });
13334
13334
  }
13335
13335
  var ot = {
@@ -13343,7 +13343,7 @@ function ut(e, f, n) {
13343
13343
  var a = ee(e), A = [F, q].indexOf(a) >= 0 ? -1 : 1, s = typeof n == "function" ? n(Object.assign({}, f, {
13344
13344
  placement: e
13345
13345
  })) : n, t = s[0], i = s[1];
13346
- return t = t || 0, i = (i || 0) * A, [F, $].indexOf(a) >= 0 ? {
13346
+ return t = t || 0, i = (i || 0) * A, [F, Z].indexOf(a) >= 0 ? {
13347
13347
  x: i,
13348
13348
  y: t
13349
13349
  } : {
@@ -13352,8 +13352,8 @@ function ut(e, f, n) {
13352
13352
  };
13353
13353
  }
13354
13354
  function rt(e) {
13355
- var f = e.state, n = e.options, a = e.name, A = n.offset, s = A === void 0 ? [0, 0] : A, t = en.reduce(function(c, g) {
13356
- return c[g] = ut(g, f.rects, s), c;
13355
+ var f = e.state, n = e.options, a = e.name, A = n.offset, s = A === void 0 ? [0, 0] : A, t = en.reduce(function(g, c) {
13356
+ return g[c] = ut(c, f.rects, s), g;
13357
13357
  }, {}), i = t[f.placement], u = i.x, l = i.y;
13358
13358
  f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += u, f.modifiersData.popperOffsets.y += l), f.modifiersData[a] = t;
13359
13359
  }
@@ -13384,14 +13384,14 @@ function gt(e) {
13384
13384
  return e === "x" ? "y" : "x";
13385
13385
  }
13386
13386
  function mt(e) {
13387
- var f = e.state, n = e.options, a = e.name, A = n.mainAxis, s = A === void 0 ? !0 : A, t = n.altAxis, i = t === void 0 ? !1 : t, u = n.boundary, l = n.rootBoundary, c = n.altBoundary, g = n.padding, m = n.tether, h = m === void 0 ? !0 : m, p = n.tetherOffset, b = p === void 0 ? 0 : p, M = Se(f, {
13387
+ var f = e.state, n = e.options, a = e.name, A = n.mainAxis, s = A === void 0 ? !0 : A, t = n.altAxis, i = t === void 0 ? !1 : t, u = n.boundary, l = n.rootBoundary, g = n.altBoundary, c = n.padding, m = n.tether, M = m === void 0 ? !0 : m, p = n.tetherOffset, v = p === void 0 ? 0 : p, h = Se(f, {
13388
13388
  boundary: u,
13389
13389
  rootBoundary: l,
13390
- padding: g,
13391
- altBoundary: c
13392
- }), I = ee(f.placement), w = Ie(f.placement), k = !w, D = Mf(I), T = gt(D), j = f.modifiersData.popperOffsets, V = f.rects.reference, z = f.rects.popper, L = typeof b == "function" ? b(Object.assign({}, f.rects, {
13390
+ padding: c,
13391
+ altBoundary: g
13392
+ }), _ = ee(f.placement), I = Ie(f.placement), D = !I, N = Mf(_), j = gt(N), V = f.modifiersData.popperOffsets, E = f.rects.reference, z = f.rects.popper, L = typeof v == "function" ? v(Object.assign({}, f.rects, {
13393
13393
  placement: f.placement
13394
- })) : b, O = typeof L == "number" ? {
13394
+ })) : v, O = typeof L == "number" ? {
13395
13395
  mainAxis: L,
13396
13396
  altAxis: L
13397
13397
  } : Object.assign({
@@ -13401,17 +13401,17 @@ function mt(e) {
13401
13401
  x: 0,
13402
13402
  y: 0
13403
13403
  };
13404
- if (j) {
13404
+ if (V) {
13405
13405
  if (s) {
13406
- var ie, we = D === "y" ? q : F, De = D === "y" ? Z : $, J = D === "y" ? "height" : "width", G = j[D], Ue = G + M[we], oe = G - M[De], Le = h ? -z[J] / 2 : 0, Xe = w === he ? V[J] : z[J], Ne = w === he ? -z[J] : -V[J], Qe = f.elements.arrow, ge = h && Qe ? pf(Qe) : {
13406
+ var ie, we = N === "y" ? q : F, De = N === "y" ? $ : Z, J = N === "y" ? "height" : "width", G = V[N], Ue = G + h[we], oe = G - h[De], Le = M ? -z[J] / 2 : 0, Xe = I === he ? E[J] : z[J], Ne = I === he ? -z[J] : -E[J], Qe = f.elements.arrow, ge = M && Qe ? pf(Qe) : {
13407
13407
  width: 0,
13408
13408
  height: 0
13409
- }, Ae = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : an(), ke = Ae[we], Be = Ae[De], ue = Ve(0, V[J], ge[J]), ef = k ? V[J] / 2 - Le - ue - ke - O.mainAxis : Xe - ue - ke - O.mainAxis, dn = k ? -V[J] / 2 + Le + ue + Be + O.mainAxis : Ne + ue + Be + O.mainAxis, ff = f.elements.arrow && Oe(f.elements.arrow), gn = ff ? D === "y" ? ff.clientTop || 0 : ff.clientLeft || 0 : 0, vf = (ie = C == null ? void 0 : C[D]) != null ? ie : 0, mn = G + ef - vf - gn, pn = G + dn - vf, If = Ve(h ? Ke(Ue, mn) : Ue, G, h ? le(oe, pn) : oe);
13410
- j[D] = If, Y[D] = If - G;
13409
+ }, Ae = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : an(), ke = Ae[we], Be = Ae[De], ue = Ve(0, E[J], ge[J]), ef = D ? E[J] / 2 - Le - ue - ke - O.mainAxis : Xe - ue - ke - O.mainAxis, dn = D ? -E[J] / 2 + Le + ue + Be + O.mainAxis : Ne + ue + Be + O.mainAxis, ff = f.elements.arrow && Oe(f.elements.arrow), gn = ff ? N === "y" ? ff.clientTop || 0 : ff.clientLeft || 0 : 0, vf = (ie = C == null ? void 0 : C[N]) != null ? ie : 0, mn = G + ef - vf - gn, pn = G + dn - vf, If = Ve(M ? Ke(Ue, mn) : Ue, G, M ? le(oe, pn) : oe);
13410
+ V[N] = If, Y[N] = If - G;
13411
13411
  }
13412
13412
  if (i) {
13413
- var _f, Mn = D === "x" ? q : F, hn = D === "x" ? Z : $, re = j[T], Ye = T === "y" ? "height" : "width", wf = re + M[Mn], Df = re - M[hn], nf = [q, F].indexOf(I) !== -1, Nf = (_f = C == null ? void 0 : C[T]) != null ? _f : 0, kf = nf ? wf : re - V[Ye] - z[Ye] - Nf + O.altAxis, jf = nf ? re + V[Ye] + z[Ye] - Nf - O.altAxis : Df, Vf = h && nf ? QA(kf, re, jf) : Ve(h ? kf : wf, re, h ? jf : Df);
13414
- j[T] = Vf, Y[T] = Vf - re;
13413
+ var _f, Mn = N === "x" ? q : F, hn = N === "x" ? $ : Z, re = V[j], Ye = j === "y" ? "height" : "width", wf = re + h[Mn], Df = re - h[hn], nf = [q, F].indexOf(_) !== -1, Nf = (_f = C == null ? void 0 : C[j]) != null ? _f : 0, kf = nf ? wf : re - E[Ye] - z[Ye] - Nf + O.altAxis, jf = nf ? re + E[Ye] + z[Ye] - Nf - O.altAxis : Df, Vf = M && nf ? QA(kf, re, jf) : Ve(M ? kf : wf, re, M ? jf : Df);
13414
+ V[j] = Vf, Y[j] = Vf - re;
13415
13415
  }
13416
13416
  f.modifiersData[a] = Y;
13417
13417
  }
@@ -13518,7 +13518,7 @@ function Dt(e) {
13518
13518
  var f = e, n = f.defaultModifiers, a = n === void 0 ? [] : n, A = f.defaultOptions, s = A === void 0 ? qf : A;
13519
13519
  return function(i, u, l) {
13520
13520
  l === void 0 && (l = s);
13521
- var c = {
13521
+ var g = {
13522
13522
  placement: "bottom",
13523
13523
  orderedModifiers: [],
13524
13524
  options: Object.assign({}, qf, s),
@@ -13529,80 +13529,80 @@ function Dt(e) {
13529
13529
  },
13530
13530
  attributes: {},
13531
13531
  styles: {}
13532
- }, g = [], m = !1, h = {
13533
- state: c,
13534
- setOptions: function(I) {
13535
- var w = typeof I == "function" ? I(c.options) : I;
13536
- b(), c.options = Object.assign({}, s, c.options, w), c.scrollParents = {
13532
+ }, c = [], m = !1, M = {
13533
+ state: g,
13534
+ setOptions: function(_) {
13535
+ var I = typeof _ == "function" ? _(g.options) : _;
13536
+ v(), g.options = Object.assign({}, s, g.options, I), g.scrollParents = {
13537
13537
  reference: be(i) ? Ee(i) : i.contextElement ? Ee(i.contextElement) : [],
13538
13538
  popper: Ee(u)
13539
13539
  };
13540
- var k = It(wt([].concat(a, c.options.modifiers)));
13541
- return c.orderedModifiers = k.filter(function(D) {
13542
- return D.enabled;
13543
- }), p(), h.update();
13540
+ var D = It(wt([].concat(a, g.options.modifiers)));
13541
+ return g.orderedModifiers = D.filter(function(N) {
13542
+ return N.enabled;
13543
+ }), p(), M.update();
13544
13544
  },
13545
13545
  forceUpdate: function() {
13546
13546
  if (!m) {
13547
- var I = c.elements, w = I.reference, k = I.popper;
13548
- if (Ff(w, k)) {
13549
- c.rects = {
13550
- reference: yt(w, Oe(k), c.options.strategy === "fixed"),
13551
- popper: pf(k)
13552
- }, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(O) {
13553
- return c.modifiersData[O.name] = Object.assign({}, O.data);
13547
+ var _ = g.elements, I = _.reference, D = _.popper;
13548
+ if (Ff(I, D)) {
13549
+ g.rects = {
13550
+ reference: yt(I, Oe(D), g.options.strategy === "fixed"),
13551
+ popper: pf(D)
13552
+ }, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(O) {
13553
+ return g.modifiersData[O.name] = Object.assign({}, O.data);
13554
13554
  });
13555
- for (var D = 0; D < c.orderedModifiers.length; D++) {
13556
- if (c.reset === !0) {
13557
- c.reset = !1, D = -1;
13555
+ for (var N = 0; N < g.orderedModifiers.length; N++) {
13556
+ if (g.reset === !0) {
13557
+ g.reset = !1, N = -1;
13558
13558
  continue;
13559
13559
  }
13560
- var T = c.orderedModifiers[D], j = T.fn, V = T.options, z = V === void 0 ? {} : V, L = T.name;
13561
- typeof j == "function" && (c = j({
13562
- state: c,
13560
+ var j = g.orderedModifiers[N], V = j.fn, E = j.options, z = E === void 0 ? {} : E, L = j.name;
13561
+ typeof V == "function" && (g = V({
13562
+ state: g,
13563
13563
  options: z,
13564
13564
  name: L,
13565
- instance: h
13566
- }) || c);
13565
+ instance: M
13566
+ }) || g);
13567
13567
  }
13568
13568
  }
13569
13569
  }
13570
13570
  },
13571
13571
  update: _t(function() {
13572
- return new Promise(function(M) {
13573
- h.forceUpdate(), M(c);
13572
+ return new Promise(function(h) {
13573
+ M.forceUpdate(), h(g);
13574
13574
  });
13575
13575
  }),
13576
13576
  destroy: function() {
13577
- b(), m = !0;
13577
+ v(), m = !0;
13578
13578
  }
13579
13579
  };
13580
13580
  if (!Ff(i, u))
13581
- return h;
13582
- h.setOptions(l).then(function(M) {
13583
- !m && l.onFirstUpdate && l.onFirstUpdate(M);
13581
+ return M;
13582
+ M.setOptions(l).then(function(h) {
13583
+ !m && l.onFirstUpdate && l.onFirstUpdate(h);
13584
13584
  });
13585
13585
  function p() {
13586
- c.orderedModifiers.forEach(function(M) {
13587
- var I = M.name, w = M.options, k = w === void 0 ? {} : w, D = M.effect;
13588
- if (typeof D == "function") {
13589
- var T = D({
13590
- state: c,
13591
- name: I,
13592
- instance: h,
13593
- options: k
13594
- }), j = function() {
13586
+ g.orderedModifiers.forEach(function(h) {
13587
+ var _ = h.name, I = h.options, D = I === void 0 ? {} : I, N = h.effect;
13588
+ if (typeof N == "function") {
13589
+ var j = N({
13590
+ state: g,
13591
+ name: _,
13592
+ instance: M,
13593
+ options: D
13594
+ }), V = function() {
13595
13595
  };
13596
- g.push(T || j);
13596
+ c.push(j || V);
13597
13597
  }
13598
13598
  });
13599
13599
  }
13600
- function b() {
13601
- g.forEach(function(M) {
13602
- return M();
13603
- }), g = [];
13600
+ function v() {
13601
+ c.forEach(function(h) {
13602
+ return h();
13603
+ }), c = [];
13604
13604
  }
13605
- return h;
13605
+ return M;
13606
13606
  };
13607
13607
  }
13608
13608
  var Nt = [PA, dt, HA, CA, lt, st, pt, qA, ot], kt = /* @__PURE__ */ Dt({
@@ -13619,13 +13619,13 @@ function jt(e, f, n, a = []) {
13619
13619
  const t = [];
13620
13620
  e[s].forEach((i) => {
13621
13621
  var u;
13622
- if (i[$e][0].includes(f.toLocaleLowerCase())) {
13623
- let l = i[Zf];
13622
+ if (i[Ze][0].includes(f.toLocaleLowerCase())) {
13623
+ let l = i[$f];
13624
13624
  if (n !== He && Array.isArray(i[Re])) {
13625
- const c = ((u = i[Re]) == null ? void 0 : u.findIndex(
13626
- (g) => g.includes(n)
13625
+ const g = ((u = i[Re]) == null ? void 0 : u.findIndex(
13626
+ (c) => c.includes(n)
13627
13627
  )) || -1;
13628
- c !== -1 && i[Re] && (l = i[Re][c]);
13628
+ g !== -1 && i[Re] && (l = i[Re][g]);
13629
13629
  }
13630
13630
  return t.push({
13631
13631
  ...i,
@@ -13657,7 +13657,7 @@ const Vt = ce({
13657
13657
  select: (e) => !0
13658
13658
  },
13659
13659
  setup() {
13660
- const { state: e, updateEmoji: f, updateSelect: n } = Pe("store"), a = v(null), A = x(() => jt(
13660
+ const { state: e, updateEmoji: f, updateSelect: n } = Pe("store"), a = y(null), A = x(() => jt(
13661
13661
  e.emojis,
13662
13662
  e.search,
13663
13663
  e.skinTone,
@@ -13666,8 +13666,8 @@ const Vt = ce({
13666
13666
  e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((p) => {
13667
13667
  e.options.groupNames[p] ? u[p] = e.options.groupNames[p] : u[p] = ln(p);
13668
13668
  });
13669
- const c = rn() ? "is-mac" : "";
13670
- function g(p) {
13669
+ const g = rn() ? "is-mac" : "";
13670
+ function c(p) {
13671
13671
  f(p);
13672
13672
  }
13673
13673
  function m(p) {
@@ -13677,17 +13677,17 @@ const Vt = ce({
13677
13677
  i: We(p.r)
13678
13678
  });
13679
13679
  }
13680
- function h(p, b) {
13681
- var M;
13682
- const I = (M = p == null ? void 0 : p.target) == null ? void 0 : M.closest("button");
13683
- I && (I.innerHTML = `<span>${We(b)}</span>`);
13680
+ function M(p, v) {
13681
+ var h;
13682
+ const _ = (h = p == null ? void 0 : p.target) == null ? void 0 : h.closest("button");
13683
+ _ && (_.innerHTML = `<span>${We(v)}</span>`);
13684
13684
  }
13685
- return Ze(
13685
+ return $e(
13686
13686
  () => e.activeGroup,
13687
13687
  () => {
13688
13688
  var p;
13689
- const b = (p = a.value) == null ? void 0 : p.querySelector("#" + e.activeGroup);
13690
- b && (b.parentNode.scrollTop = b.offsetTop - b.parentNode.offsetTop);
13689
+ const v = (p = a.value) == null ? void 0 : p.querySelector("#" + e.activeGroup);
13690
+ v && (v.parentNode.scrollTop = v.offsetTop - v.parentNode.offsetTop);
13691
13691
  }
13692
13692
  ), {
13693
13693
  emojis: A,
@@ -13695,15 +13695,15 @@ const Vt = ce({
13695
13695
  EMOJI_REMOTE_SRC: Kf,
13696
13696
  GROUP_NAMES: Pf,
13697
13697
  handleClick: m,
13698
- handleError: h,
13699
- handleMouseEnter: g,
13698
+ handleError: M,
13699
+ handleMouseEnter: c,
13700
13700
  native: e.options.native,
13701
13701
  unicodeToEmoji: We,
13702
13702
  EMOJI_RESULT_KEY: Te,
13703
- EMOJI_NAME_KEY: $e,
13703
+ EMOJI_NAME_KEY: Ze,
13704
13704
  hasGroupNames: t,
13705
13705
  isSticky: i,
13706
- platform: c,
13706
+ platform: g,
13707
13707
  groupNames: u,
13708
13708
  orderedKeys: l
13709
13709
  };
@@ -13716,7 +13716,7 @@ function Ut(e, f, n, a, A, s) {
13716
13716
  return r(), d("div", Et, [
13717
13717
  o("div", {
13718
13718
  ref: "bodyInner",
13719
- class: E([e.platform, "v3-body-inner"])
13719
+ class: T([e.platform, "v3-body-inner"])
13720
13720
  }, [
13721
13721
  e.orderedKeys.length ? (r(!0), d(B, { key: 0 }, R(e.orderedKeys, (t) => (r(), d("div", {
13722
13722
  id: t,
@@ -13725,10 +13725,10 @@ function Ut(e, f, n, a, A, s) {
13725
13725
  }, [
13726
13726
  e.hasGroupNames ? ae((r(), d("h5", {
13727
13727
  key: 0,
13728
- class: E(e.isSticky ? "v3-sticky" : "")
13729
- }, _(e.groupNames[t]), 3)), [
13728
+ class: T(e.isSticky ? "v3-sticky" : "")
13729
+ }, w(e.groupNames[t]), 3)), [
13730
13730
  [pe, e.emojis[t]]
13731
- ]) : y("", !0),
13731
+ ]) : b("", !0),
13732
13732
  ae(o("div", xt, [
13733
13733
  (r(!0), d(B, null, R(e.emojis[t], (i) => (r(), d("button", {
13734
13734
  key: i.r,
@@ -13736,7 +13736,7 @@ function Ut(e, f, n, a, A, s) {
13736
13736
  onMouseenter: (u) => e.handleMouseEnter(i),
13737
13737
  onClick: (u) => e.handleClick(i)
13738
13738
  }, [
13739
- e.native ? (r(), d("span", zt, _(e.unicodeToEmoji(i.r)), 1)) : (r(), d("img", {
13739
+ e.native ? (r(), d("span", zt, w(e.unicodeToEmoji(i.r)), 1)) : (r(), d("img", {
13740
13740
  key: 1,
13741
13741
  src: e.EMOJI_REMOTE_SRC + `/${i.r}.png`,
13742
13742
  alt: i.n[0],
@@ -13758,19 +13758,19 @@ const Ht = ce({
13758
13758
  () => f.options.staticTexts.placeholder || ""
13759
13759
  ), u = x({
13760
13760
  get: () => f.search,
13761
- set: (g) => n(g)
13761
+ set: (c) => n(c)
13762
13762
  }), l = [
13763
13763
  ...f.groups,
13764
- ...Object.keys(f.options.additionalGroups).map((g) => ({
13765
- key: g,
13766
- title: f.options.groupNames[g] ? f.options.groupNames[g] : ln(g)
13764
+ ...Object.keys(f.options.additionalGroups).map((c) => ({
13765
+ key: c,
13766
+ title: f.options.groupNames[c] ? f.options.groupNames[c] : ln(c)
13767
13767
  }))
13768
- ], c = [];
13769
- return t.forEach((g) => {
13770
- const m = l.findIndex((h) => h.key === g);
13771
- m !== -1 && (c.push(l[m]), l.splice(m, 1));
13768
+ ], g = [];
13769
+ return t.forEach((c) => {
13770
+ const m = l.findIndex((M) => M.key === c);
13771
+ m !== -1 && (g.push(l[m]), l.splice(m, 1));
13772
13772
  }), {
13773
- orderedGroups: c,
13773
+ orderedGroups: g,
13774
13774
  orderedKeys: t,
13775
13775
  searchValue: u,
13776
13776
  updateActiveGroup: a,
@@ -13797,7 +13797,7 @@ const Ht = ce({
13797
13797
  }, Pt = {
13798
13798
  key: 0,
13799
13799
  class: "v3-groups"
13800
- }, Zt = ["onClick"], $t = ["title"], Gt = ["src"], Xt = {
13800
+ }, $t = ["onClick"], Zt = ["title"], Gt = ["src"], Xt = {
13801
13801
  key: 1,
13802
13802
  class: "v3-spacing"
13803
13803
  }, e1 = {
@@ -13810,7 +13810,7 @@ function n1(e, f, n, a, A, s) {
13810
13810
  (r(!0), d(B, null, R(e.orderedGroups, (t) => (r(), d("button", {
13811
13811
  key: t.key,
13812
13812
  type: "button",
13813
- class: E(["v3-group", {
13813
+ class: T(["v3-group", {
13814
13814
  "v3-is-hidden": !e.icons[t.key]
13815
13815
  }]),
13816
13816
  onClick: (i) => e.updateActiveGroup(t.key)
@@ -13823,10 +13823,10 @@ function n1(e, f, n, a, A, s) {
13823
13823
  src: e.icons[t.key],
13824
13824
  alt: ""
13825
13825
  }, null, 8, Gt)
13826
- ], 8, $t)
13827
- ], 10, Zt))), 128))
13828
- ])) : y("", !0),
13829
- e.hasGroupIcons && e.hasSearch ? (r(), d("div", Xt)) : y("", !0),
13826
+ ], 8, Zt)
13827
+ ], 10, $t))), 128))
13828
+ ])) : b("", !0),
13829
+ e.hasGroupIcons && e.hasSearch ? (r(), d("div", Xt)) : b("", !0),
13830
13830
  e.hasSearch ? (r(), d("div", e1, [
13831
13831
  ae(o("input", {
13832
13832
  "onUpdate:modelValue": f[0] || (f[0] = (t) => e.searchValue = t),
@@ -13835,14 +13835,14 @@ function n1(e, f, n, a, A, s) {
13835
13835
  }, null, 8, f1), [
13836
13836
  [Wf, e.searchValue]
13837
13837
  ])
13838
- ])) : y("", !0)
13839
- ])) : y("", !0);
13838
+ ])) : b("", !0)
13839
+ ])) : b("", !0);
13840
13840
  }
13841
13841
  var a1 = /* @__PURE__ */ Ce(Ht, [["render", n1]]);
13842
13842
  const A1 = ce({
13843
13843
  name: "Header",
13844
13844
  setup() {
13845
- const { state: e, updateSkinTone: f } = Pe("store"), n = v(!1), a = v(!1), A = x(() => e.skinTone), s = x(
13845
+ const { state: e, updateSkinTone: f } = Pe("store"), n = y(!1), a = y(!1), A = x(() => e.skinTone), s = x(
13846
13846
  () => e.options.staticTexts.skinTone || "Skin tone"
13847
13847
  ), t = x(() => !e.options.disableSkinTones), i = rn() ? "is-mac" : "", u = x(() => ({
13848
13848
  ...e.emoji,
@@ -13851,27 +13851,27 @@ const A1 = ce({
13851
13851
  function l(m = !0) {
13852
13852
  n.value = m;
13853
13853
  }
13854
- function c() {
13854
+ function g() {
13855
13855
  n.value = !n.value;
13856
13856
  }
13857
- function g(m) {
13857
+ function c(m) {
13858
13858
  f(m), l(!1);
13859
13859
  }
13860
- return Ze(
13860
+ return $e(
13861
13861
  () => e.emoji,
13862
13862
  () => {
13863
13863
  a.value = !1;
13864
13864
  }
13865
13865
  ), {
13866
13866
  emoji: u,
13867
- SKIN_TONES: Za,
13867
+ SKIN_TONES: $a,
13868
13868
  updateSkinToneState: l,
13869
13869
  skinTone: n,
13870
13870
  stateSkinTone: A,
13871
- selectSkinTone: g,
13872
- toggleSkinToneState: c,
13871
+ selectSkinTone: c,
13872
+ toggleSkinToneState: g,
13873
13873
  EMOJI_RESULT_KEY: Te,
13874
- EMOJI_NAME_KEY: $e,
13874
+ EMOJI_NAME_KEY: Ze,
13875
13875
  skinToneText: s,
13876
13876
  hasSkinTones: t,
13877
13877
  native: e.options.native,
@@ -13888,16 +13888,16 @@ function l1(e, f, n, a, A, s) {
13888
13888
  }, [
13889
13889
  o("div", t1, [
13890
13890
  o("span", {
13891
- class: E([e.platform, "v3-icon"])
13891
+ class: T([e.platform, "v3-icon"])
13892
13892
  }, [
13893
- e.native || e.hasError ? (r(), d("span", s1, _(e.unicodeToEmoji(e.emoji.r)), 1)) : (r(), d("img", {
13893
+ e.native || e.hasError ? (r(), d("span", s1, w(e.unicodeToEmoji(e.emoji.r)), 1)) : (r(), d("img", {
13894
13894
  key: 1,
13895
13895
  alt: e.unicodeToEmoji(e.emoji.r),
13896
13896
  src: e.emoji.src,
13897
13897
  onError: f[0] || (f[0] = (t) => e.hasError = !0)
13898
13898
  }, null, 40, i1))
13899
13899
  ], 2),
13900
- o("span", o1, " :" + _(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
13900
+ o("span", o1, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
13901
13901
  ]),
13902
13902
  e.hasSkinTones ? (r(), d(B, { key: 0 }, [
13903
13903
  o("button", {
@@ -13905,22 +13905,22 @@ function l1(e, f, n, a, A, s) {
13905
13905
  class: "v3-tone",
13906
13906
  onClick: f[1] || (f[1] = (...t) => e.toggleSkinToneState && e.toggleSkinToneState(...t))
13907
13907
  }, [
13908
- o("span", u1, _(e.skinToneText), 1),
13908
+ o("span", u1, w(e.skinToneText), 1),
13909
13909
  o("span", {
13910
- class: E(`v3-icon v3-tone-${e.stateSkinTone}`)
13910
+ class: T(`v3-icon v3-tone-${e.stateSkinTone}`)
13911
13911
  }, null, 2)
13912
13912
  ]),
13913
13913
  o("div", {
13914
- class: E([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
13914
+ class: T([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
13915
13915
  }, [
13916
13916
  (r(!0), d(B, null, R(e.SKIN_TONES, (t) => (r(), d("button", {
13917
13917
  key: t,
13918
13918
  type: "button",
13919
- class: E(["v3-skin-tone-" + t, "v3-skin-tone"]),
13919
+ class: T(["v3-skin-tone-" + t, "v3-skin-tone"]),
13920
13920
  onClick: (i) => e.selectSkinTone(t)
13921
13921
  }, null, 10, r1))), 128))
13922
13922
  ], 2)
13923
- ], 64)) : y("", !0)
13923
+ ], 64)) : b("", !0)
13924
13924
  ], 32);
13925
13925
  }
13926
13926
  var c1 = /* @__PURE__ */ Ce(A1, [["render", l1]]);
@@ -13962,61 +13962,61 @@ const d1 = ce({
13962
13962
  "update:text": (e) => !0
13963
13963
  },
13964
13964
  setup(e, { emit: f }) {
13965
- const n = v(), a = v(), A = v(), s = v(!1), t = v(e.text), i = e.type === "input" || e.type === "textarea";
13965
+ const n = y(), a = y(), A = y(), s = y(!1), t = y(e.text), i = e.type === "input" || e.type === "textarea";
13966
13966
  let u = -1;
13967
- const { state: l } = Pe("store"), c = x(() => l.options.colorTheme);
13968
- function g(M) {
13967
+ const { state: l } = Pe("store"), g = x(() => l.options.colorTheme);
13968
+ function c(h) {
13969
13969
  if (i) {
13970
- const I = l.options.mode;
13971
- I === "prepend" ? t.value = M.i + t.value : I === "insert" && u !== -1 ? (t.value = `${t.value.slice(0, u)}${M.i}${t.value.slice(u)}`, u += M.i.length) : t.value += M.i, f("update:text", t.value);
13970
+ const _ = l.options.mode;
13971
+ _ === "prepend" ? t.value = h.i + t.value : _ === "insert" && u !== -1 ? (t.value = `${t.value.slice(0, u)}${h.i}${t.value.slice(u)}`, u += h.i.length) : t.value += h.i, f("update:text", t.value);
13972
13972
  }
13973
- f("select", M);
13973
+ f("select", h);
13974
13974
  }
13975
13975
  function m() {
13976
- var M;
13977
- n.value && (u = ((M = n.value) == null ? void 0 : M.selectionEnd) || -1);
13976
+ var h;
13977
+ n.value && (u = ((h = n.value) == null ? void 0 : h.selectionEnd) || -1);
13978
13978
  }
13979
- function h(M) {
13980
- var I;
13981
- !((I = M.target) != null && I.closest(
13979
+ function M(h) {
13980
+ var _;
13981
+ !((_ = h.target) != null && _.closest(
13982
13982
  ".v3-input-picker-wrap"
13983
13983
  )) && s.value && (s.value = !1);
13984
13984
  }
13985
13985
  function p() {
13986
13986
  if (a.value && A.value && i) {
13987
- let M = l.options.offset;
13988
- typeof M != "number" && (M = 6), kt(a.value, A.value, {
13987
+ let h = l.options.offset;
13988
+ typeof h != "number" && (h = 6), kt(a.value, A.value, {
13989
13989
  placement: "bottom-end",
13990
13990
  modifiers: [
13991
13991
  {
13992
13992
  name: "offset",
13993
13993
  options: {
13994
- offset: [0, M]
13994
+ offset: [0, h]
13995
13995
  }
13996
13996
  }
13997
13997
  ]
13998
- }), document.body.addEventListener("click", h);
13998
+ }), document.body.addEventListener("click", M);
13999
13999
  }
14000
14000
  }
14001
- function b(M) {
14002
- t.value = M.target.value || "", f("update:text", t.value);
14001
+ function v(h) {
14002
+ t.value = h.target.value || "", f("update:text", t.value);
14003
14003
  }
14004
14004
  return _e(() => {
14005
14005
  p();
14006
14006
  }), In(() => {
14007
- document.body.removeEventListener("click", h);
14007
+ document.body.removeEventListener("click", M);
14008
14008
  }), {
14009
14009
  face: un,
14010
14010
  open: s,
14011
- onSelect: g,
14011
+ onSelect: c,
14012
14012
  input: t,
14013
14013
  elem: n,
14014
14014
  updateCursor: m,
14015
14015
  button: a,
14016
14016
  picker: A,
14017
14017
  isInputType: i,
14018
- onChangeText: b,
14019
- colorTheme: c
14018
+ onChangeText: v,
14019
+ colorTheme: g
14020
14020
  };
14021
14021
  }
14022
14022
  }), g1 = {
@@ -14044,7 +14044,7 @@ function b1(e, f, n, a, A, s) {
14044
14044
  onBlur: f[3] || (f[3] = (...l) => e.updateCursor && e.updateCursor(...l))
14045
14045
  }, null, 40, M1)),
14046
14046
  o("div", {
14047
- class: E(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
14047
+ class: T(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
14048
14048
  }, [
14049
14049
  o("button", {
14050
14050
  ref: "button",
@@ -14059,7 +14059,7 @@ function b1(e, f, n, a, A, s) {
14059
14059
  ], 512),
14060
14060
  o("div", {
14061
14061
  ref: "picker",
14062
- class: E(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14062
+ class: T(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14063
14063
  }, [
14064
14064
  S(t),
14065
14065
  S(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
@@ -14069,7 +14069,7 @@ function b1(e, f, n, a, A, s) {
14069
14069
  ])
14070
14070
  ])) : (r(), d("div", {
14071
14071
  key: 1,
14072
- class: E(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14072
+ class: T(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14073
14073
  }, [
14074
14074
  S(t),
14075
14075
  S(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
@@ -14161,7 +14161,7 @@ const v1 = ce({
14161
14161
  select: (e) => !0
14162
14162
  },
14163
14163
  setup(e, { emit: f }) {
14164
- const n = v(e.text);
14164
+ const n = y(e.text);
14165
14165
  function a(s) {
14166
14166
  n.value = s || "", f("update:text", n.value);
14167
14167
  }
@@ -14171,7 +14171,7 @@ const v1 = ce({
14171
14171
  hideSearch: e.hideSearch,
14172
14172
  hideGroupIcons: e.hideGroupIcons,
14173
14173
  hideGroupNames: e.hideGroupNames,
14174
- staticTexts: { ...$a, ...e.staticTexts },
14174
+ staticTexts: { ...Za, ...e.staticTexts },
14175
14175
  disableStickyGroupNames: e.disableStickyGroupNames,
14176
14176
  disabledGroups: e.disabledGroups,
14177
14177
  groupNames: { ...Pf, ...e.groupNames },
@@ -14220,18 +14220,18 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14220
14220
  },
14221
14221
  emits: ["selectChannel"],
14222
14222
  setup(e, { emit: f }) {
14223
- const n = v(!0), a = v(null), A = e, s = f, i = v(A.channels.find((g) => g.type === "default")), u = (g) => {
14224
- i.value = g, l(), s("selectChannel", i.value);
14223
+ const n = y(!0), a = y(null), A = e, s = f, i = y(A.channels.find((c) => c.type === "default")), u = (c) => {
14224
+ i.value = c, l(), s("selectChannel", i.value);
14225
14225
  }, l = () => {
14226
14226
  n.value = !n.value;
14227
- }, c = (g) => {
14228
- a.value && !a.value.contains(g.target) && (n.value = !1);
14227
+ }, g = (c) => {
14228
+ a.value && !a.value.contains(c.target) && (n.value = !1);
14229
14229
  };
14230
14230
  return _e(() => {
14231
- document.addEventListener("click", c);
14231
+ document.addEventListener("click", g);
14232
14232
  }), Nn(() => {
14233
- document.removeEventListener("click", c);
14234
- }), (g, m) => (r(), d("div", {
14233
+ document.removeEventListener("click", g);
14234
+ }), (c, m) => (r(), d("div", {
14235
14235
  ref_key: "customDiv",
14236
14236
  ref: a,
14237
14237
  class: "channels"
@@ -14249,8 +14249,8 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14249
14249
  o("img", {
14250
14250
  src: i.value.icon
14251
14251
  }, null, 8, j1)
14252
- ])) : y("", !0),
14253
- o("span", V1, _(i.value.title), 1)
14252
+ ])) : b("", !0),
14253
+ o("span", V1, w(i.value.title), 1)
14254
14254
  ])) : (r(), d("span", E1, "Чат не выбран"))
14255
14255
  ]),
14256
14256
  S(H, null, {
@@ -14263,21 +14263,21 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14263
14263
  }, [
14264
14264
  o("div", T1, [
14265
14265
  o("ul", x1, [
14266
- (r(!0), d(B, null, R(e.channels, (h) => (r(), d("li", {
14267
- key: h.channelId,
14266
+ (r(!0), d(B, null, R(e.channels, (M) => (r(), d("li", {
14267
+ key: M.channelId,
14268
14268
  class: "channels__popover-item",
14269
- onClick: (p) => u(h)
14270
- }, _(h.title), 9, S1))), 128))
14269
+ onClick: (p) => u(M)
14270
+ }, w(M.title), 9, S1))), 128))
14271
14271
  ])
14272
14272
  ])
14273
- ])) : y("", !0)
14273
+ ])) : b("", !0)
14274
14274
  ]),
14275
14275
  _: 1
14276
14276
  })
14277
14277
  ])
14278
14278
  ], 512));
14279
14279
  }
14280
- }, O1 = /* @__PURE__ */ N(z1, [["__scopeId", "data-v-86fe4e8b"]]), C1 = { class: "chat-input" }, U1 = { class: "chat-input__container" }, L1 = {
14280
+ }, O1 = /* @__PURE__ */ k(z1, [["__scopeId", "data-v-86fe4e8b"]]), C1 = { class: "chat-input" }, U1 = { class: "chat-input__container" }, L1 = {
14281
14281
  __name: "ChatInput",
14282
14282
  props: /* @__PURE__ */ Ef({
14283
14283
  enableEmoji: {
@@ -14300,26 +14300,26 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14300
14300
  }),
14301
14301
  emits: /* @__PURE__ */ Ef(["send", "typing"], ["update:modelValue"]),
14302
14302
  setup(e, { emit: f }) {
14303
- const n = f, a = jn(e, "modelValue"), A = v(null), s = v(null), t = x(() => !s.value || s.value === ""), i = v(!1), u = (p) => {
14303
+ const n = f, a = jn(e, "modelValue"), A = y(null), s = y(null), t = x(() => !s.value || s.value === ""), i = y(!1), u = (p) => {
14304
14304
  console.log("fileUploaded", p), s.value = p;
14305
14305
  }, l = (p) => {
14306
14306
  n("typing", p.target.value);
14307
- }, c = () => {
14307
+ }, g = () => {
14308
14308
  i.value = !1;
14309
14309
  const p = {
14310
14310
  type: null,
14311
14311
  text: null
14312
14312
  };
14313
14313
  s.value ? (p.type = "message.file", p.text = s.value) : (p.type = "message.text", p.text = a.value.trim()), n("send", p), s.value = !1, a.value = "", me(A).focus();
14314
- }, g = () => {
14314
+ }, c = () => {
14315
14315
  i.value = !i.value;
14316
14316
  }, m = x(() => {
14317
14317
  if (document.documentElement.classList.contains("dark"))
14318
14318
  return "dark";
14319
- }), h = (p) => {
14319
+ }), M = (p) => {
14320
14320
  a.value = (a.value ? a.value : "") + p.i;
14321
14321
  };
14322
- return (p, b) => (r(), d("div", C1, [
14322
+ return (p, v) => (r(), d("div", C1, [
14323
14323
  o("div", U1, [
14324
14324
  S(H, null, {
14325
14325
  default: K(() => [
@@ -14329,22 +14329,22 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14329
14329
  native: !0,
14330
14330
  theme: m.value,
14331
14331
  "picker-type": "",
14332
- onSelect: h
14333
- }, null, 8, ["theme"])) : y("", !0)
14332
+ onSelect: M
14333
+ }, null, 8, ["theme"])) : b("", !0)
14334
14334
  ]),
14335
14335
  _: 1
14336
14336
  }),
14337
- S(me(Xs), {
14337
+ S(me(si), {
14338
14338
  "can-upload-file": t.value,
14339
14339
  onFileUploaded: u
14340
14340
  }, null, 8, ["can-upload-file"]),
14341
14341
  ae(o("input", {
14342
14342
  ref_key: "refInput",
14343
14343
  ref: A,
14344
- "onUpdate:modelValue": b[0] || (b[0] = (M) => a.value = M),
14344
+ "onUpdate:modelValue": v[0] || (v[0] = (h) => a.value = h),
14345
14345
  class: "chat-input__input",
14346
14346
  placeholder: "Type a message...",
14347
- onKeydown: Vn(c, ["enter"]),
14347
+ onKeydown: Vn(g, ["enter"]),
14348
14348
  onInput: l
14349
14349
  }, null, 544), [
14350
14350
  [Wf, a.value]
@@ -14352,20 +14352,20 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14352
14352
  S(O1, { channels: e.channels }, null, 8, ["channels"]),
14353
14353
  o("button", {
14354
14354
  class: "chat-input__button-emoji",
14355
- onClick: g
14356
- }, b[1] || (b[1] = [
14355
+ onClick: c
14356
+ }, v[1] || (v[1] = [
14357
14357
  o("span", { class: "pi pi-face-smile" }, null, -1)
14358
14358
  ])),
14359
14359
  o("button", {
14360
14360
  class: "chat-input__button-send",
14361
- onClick: c
14362
- }, b[2] || (b[2] = [
14361
+ onClick: g
14362
+ }, v[2] || (v[2] = [
14363
14363
  o("span", { class: "pi pi-send" }, null, -1)
14364
14364
  ]))
14365
14365
  ])
14366
14366
  ]));
14367
14367
  }
14368
- }, fo = /* @__PURE__ */ N(L1, [["__scopeId", "data-v-3f584ec9"]]), Q1 = { class: "chat-item__avatar-container" }, B1 = ["src"], Y1 = {
14368
+ }, oo = /* @__PURE__ */ k(L1, [["__scopeId", "data-v-3f584ec9"]]), Q1 = { class: "chat-item__avatar-container" }, B1 = ["src"], Y1 = {
14369
14369
  key: 1,
14370
14370
  class: "pi pi-user"
14371
14371
  }, R1 = { class: "chat-item__info-container" }, q1 = { class: "chat-item__name" }, F1 = {
@@ -14392,21 +14392,21 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14392
14392
  setup(e, { emit: f }) {
14393
14393
  const n = e, a = f, A = () => {
14394
14394
  a("select", n.chat);
14395
- }, s = () => n.chat.isSelected ? "chat-item__selected" : "chat-item", t = (g) => {
14396
- c(), a("action", { chatId: n.chat.chatId, ...g });
14397
- }, i = v(!1), u = v(!1), l = () => {
14395
+ }, s = () => n.chat.isSelected ? "chat-item__selected" : "chat-item", t = (c) => {
14396
+ g(), a("action", { chatId: n.chat.chatId, ...c });
14397
+ }, i = y(!1), u = y(!1), l = () => {
14398
14398
  u.value = !0;
14399
- }, c = () => {
14399
+ }, g = () => {
14400
14400
  u.value = !1, i.value = !1;
14401
14401
  };
14402
- return (g, m) => (r(), d("div", {
14403
- class: E(s()),
14402
+ return (c, m) => (r(), d("div", {
14403
+ class: T(s()),
14404
14404
  onClick: A
14405
14405
  }, [
14406
14406
  o("div", {
14407
14407
  class: "chat-item__container",
14408
14408
  onMouseenter: l,
14409
- onMouseleave: c
14409
+ onMouseleave: g
14410
14410
  }, [
14411
14411
  o("div", Q1, [
14412
14412
  o("span", {
@@ -14421,20 +14421,20 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14421
14421
  }, null, 8, B1)) : (r(), d("span", Y1))
14422
14422
  ]),
14423
14423
  o("div", R1, [
14424
- o("div", q1, _(e.chat.name), 1),
14425
- e.chat.lastMessage ? (r(), d("div", F1, _(e.chat.lastMessage), 1)) : y("", !0)
14424
+ o("div", q1, w(e.chat.name), 1),
14425
+ e.chat.lastMessage ? (r(), d("div", F1, w(e.chat.lastMessage), 1)) : b("", !0)
14426
14426
  ]),
14427
14427
  o("div", J1, [
14428
- !(u.value && e.chat.actions) && e.chat["lastActivity.time"] ? (r(), d("div", W1, _(e.chat["lastActivity.time"]), 1)) : y("", !0),
14429
- !(u.value && e.chat.actions) && e.chat.countUnread > 0 ? (r(), d("div", H1, _(e.chat.countUnread), 1)) : y("", !0),
14428
+ !(u.value && e.chat.actions) && e.chat["lastActivity.time"] ? (r(), d("div", W1, w(e.chat["lastActivity.time"]), 1)) : b("", !0),
14429
+ !(u.value && e.chat.actions) && e.chat.countUnread > 0 ? (r(), d("div", H1, w(e.chat.countUnread), 1)) : b("", !0),
14430
14430
  u.value && e.chat.actions ? (r(), d("button", {
14431
14431
  key: 2,
14432
14432
  class: "chat-item__menu-button",
14433
- onClick: m[0] || (m[0] = (h) => i.value = !i.value)
14433
+ onClick: m[0] || (m[0] = (M) => i.value = !i.value)
14434
14434
  }, m[1] || (m[1] = [
14435
14435
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
14436
- ]))) : y("", !0),
14437
- e.chat.isFixedTop || e.chat.isFixedBottom ? (r(), d("span", K1)) : y("", !0)
14436
+ ]))) : b("", !0),
14437
+ e.chat.isFixedTop || e.chat.isFixedBottom ? (r(), d("span", K1)) : b("", !0)
14438
14438
  ]),
14439
14439
  S(H, null, {
14440
14440
  default: K(() => [
@@ -14443,23 +14443,23 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14443
14443
  class: "chat-item__context-menu",
14444
14444
  actions: e.chat.actions,
14445
14445
  onClick: t
14446
- }, null, 8, ["actions"])) : y("", !0)
14446
+ }, null, 8, ["actions"])) : b("", !0)
14447
14447
  ]),
14448
14448
  _: 1
14449
14449
  })
14450
14450
  ], 32)
14451
14451
  ], 2));
14452
14452
  }
14453
- }, sf = /* @__PURE__ */ N(P1, [["__scopeId", "data-v-82adffb7"]]), Z1 = { class: "chat-filter" }, $1 = { class: "chat-filter__container" }, G1 = {
14453
+ }, sf = /* @__PURE__ */ k(P1, [["__scopeId", "data-v-82adffb7"]]), $1 = { class: "chat-filter" }, Z1 = { class: "chat-filter__container" }, G1 = {
14454
14454
  __name: "ChatFilter",
14455
14455
  emits: ["update"],
14456
14456
  setup(e, { emit: f }) {
14457
- const n = v(""), a = f, A = () => {
14457
+ const n = y(""), a = f, A = () => {
14458
14458
  const s = me(n);
14459
14459
  a("update", s.value);
14460
14460
  };
14461
- return (s, t) => (r(), d("div", Z1, [
14462
- o("div", $1, [
14461
+ return (s, t) => (r(), d("div", $1, [
14462
+ o("div", Z1, [
14463
14463
  o("input", {
14464
14464
  ref_key: "refInput",
14465
14465
  ref: n,
@@ -14471,7 +14471,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14471
14471
  ])
14472
14472
  ]));
14473
14473
  }
14474
- }, X1 = /* @__PURE__ */ N(G1, [["__scopeId", "data-v-6a3eaa55"]]), es = { class: "chat-list" }, fs = {
14474
+ }, X1 = /* @__PURE__ */ k(G1, [["__scopeId", "data-v-6a3eaa55"]]), es = { class: "chat-list" }, fs = {
14475
14475
  key: 0,
14476
14476
  class: "chat-list__title"
14477
14477
  }, ns = {
@@ -14503,40 +14503,40 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14503
14503
  },
14504
14504
  emits: ["select", "action"],
14505
14505
  setup(e, { emit: f }) {
14506
- const n = v(""), a = v(!1), A = () => {
14506
+ const n = y(""), a = y(!1), A = () => {
14507
14507
  a.value = !1;
14508
- }, s = e, t = f, i = (g) => {
14509
- t("select", g), s.chats.forEach((h) => h.isSelected = !1);
14510
- const m = s.chats.find((h) => h.chatId === g.chatId);
14508
+ }, s = e, t = f, i = (c) => {
14509
+ t("select", c), s.chats.forEach((M) => M.isSelected = !1);
14510
+ const m = s.chats.find((M) => M.chatId === c.chatId);
14511
14511
  m.isSelected = !0;
14512
- }, u = () => s.chats.toSorted((g, m) => {
14513
- if (g.countUnread > m.countUnread) return -1;
14514
- if (g.countUnread < m.countUnread) return 1;
14515
- if (g.countUnread == m.countUnread) return 0;
14516
- }).filter((g) => g.name.includes(n.value)), l = (g) => {
14517
- n.value = g;
14518
- }, c = (g) => t("action", g);
14519
- return (g, m) => (r(), d("div", es, [
14512
+ }, u = () => s.chats.toSorted((c, m) => {
14513
+ if (c.countUnread > m.countUnread) return -1;
14514
+ if (c.countUnread < m.countUnread) return 1;
14515
+ if (c.countUnread == m.countUnread) return 0;
14516
+ }).filter((c) => c.name.includes(n.value)), l = (c) => {
14517
+ n.value = c;
14518
+ }, g = (c) => t("action", c);
14519
+ return (c, m) => (r(), d("div", es, [
14520
14520
  o("div", {
14521
14521
  class: "chat-list__title-container",
14522
14522
  onMouseleave: A
14523
14523
  }, [
14524
- e.title ? (r(), d("h2", fs, _(e.title), 1)) : y("", !0),
14524
+ e.title ? (r(), d("h2", fs, w(e.title), 1)) : b("", !0),
14525
14525
  e.actions.length ? (r(), d("button", {
14526
14526
  key: 1,
14527
14527
  class: "chat-list__button-actions",
14528
- onClick: m[0] || (m[0] = (h) => a.value = !a.value)
14528
+ onClick: m[0] || (m[0] = (M) => a.value = !a.value)
14529
14529
  }, [
14530
14530
  a.value ? (r(), d("span", ns)) : (r(), d("span", as))
14531
- ])) : y("", !0),
14531
+ ])) : b("", !0),
14532
14532
  S(H, null, {
14533
14533
  default: K(() => [
14534
14534
  a.value && e.actions ? (r(), Q(de, {
14535
14535
  key: 0,
14536
14536
  actions: e.actions,
14537
14537
  class: "chat-list__context-menu",
14538
- onClick: c
14539
- }, null, 8, ["actions"])) : y("", !0)
14538
+ onClick: g
14539
+ }, null, 8, ["actions"])) : b("", !0)
14540
14540
  ]),
14541
14541
  _: 1
14542
14542
  })
@@ -14545,39 +14545,39 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14545
14545
  key: 0,
14546
14546
  class: "chat-list__filter",
14547
14547
  onUpdate: l
14548
- })) : y("", !0),
14548
+ })) : b("", !0),
14549
14549
  o("div", As, [
14550
14550
  o("div", ts, [
14551
- (r(!0), d(B, null, R(u().filter((h) => h.isFixedTop), (h) => (r(), Q(sf, {
14552
- key: h.chatId,
14551
+ (r(!0), d(B, null, R(u().filter((M) => M.isFixedTop), (M) => (r(), Q(sf, {
14552
+ key: M.chatId,
14553
14553
  class: "chat-list__item",
14554
- chat: h,
14554
+ chat: M,
14555
14555
  onSelect: i,
14556
- onAction: c
14556
+ onAction: g
14557
14557
  }, null, 8, ["chat"]))), 128))
14558
14558
  ]),
14559
14559
  o("div", ss, [
14560
- (r(!0), d(B, null, R(u().filter((h) => !h.isFixedBottom && !h.isFixedTop), (h) => (r(), Q(sf, {
14561
- key: h.chatId,
14560
+ (r(!0), d(B, null, R(u().filter((M) => !M.isFixedBottom && !M.isFixedTop), (M) => (r(), Q(sf, {
14561
+ key: M.chatId,
14562
14562
  class: "chat-list__item",
14563
- chat: h,
14563
+ chat: M,
14564
14564
  onSelect: i,
14565
- onAction: c
14565
+ onAction: g
14566
14566
  }, null, 8, ["chat"]))), 128))
14567
14567
  ]),
14568
14568
  o("div", is, [
14569
- (r(!0), d(B, null, R(u().filter((h) => h.isFixedBottom), (h) => (r(), Q(sf, {
14570
- key: h.chatId,
14569
+ (r(!0), d(B, null, R(u().filter((M) => M.isFixedBottom), (M) => (r(), Q(sf, {
14570
+ key: M.chatId,
14571
14571
  class: "chat-list__item",
14572
- chat: h,
14572
+ chat: M,
14573
14573
  onSelect: i,
14574
- onAction: c
14574
+ onAction: g
14575
14575
  }, null, 8, ["chat"]))), 128))
14576
14576
  ])
14577
14577
  ])
14578
14578
  ]));
14579
14579
  }
14580
- }, no = /* @__PURE__ */ N(os, [["__scopeId", "data-v-51316d13"]]), us = ["messageId"], rs = ["src"], ls = ["src"], cs = { class: "video-message__controls" }, ds = { class: "video-message__remaining-time" }, gs = { class: "video-message__info-container" }, ms = { class: "video-message__time" }, ps = {
14580
+ }, uo = /* @__PURE__ */ k(os, [["__scopeId", "data-v-51316d13"]]), us = ["messageId"], rs = ["src"], ls = ["src"], cs = { class: "video-message__controls" }, ds = { class: "video-message__remaining-time" }, gs = { class: "video-message__info-container" }, ms = { class: "video-message__time" }, ps = {
14581
14581
  key: 0,
14582
14582
  class: "pi pi-check"
14583
14583
  }, Ms = {
@@ -14590,27 +14590,27 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14590
14590
  },
14591
14591
  setup(e) {
14592
14592
  const f = e;
14593
- function n(b) {
14594
- return b.position === "left" ? "video-message__left" : "video-message__right";
14593
+ function n(v) {
14594
+ return v.position === "left" ? "video-message__left" : "video-message__right";
14595
14595
  }
14596
- const a = v(null), A = v(!1), s = v(0), t = v(0), i = v(!1), u = v(!1), l = () => {
14596
+ const a = y(null), A = y(!1), s = y(0), t = y(0), i = y(!1), u = y(!1), l = () => {
14597
14597
  u.value = !0;
14598
- }, c = () => {
14598
+ }, g = () => {
14599
14599
  u.value = !1, i.value = !1;
14600
14600
  };
14601
- function g() {
14601
+ function c() {
14602
14602
  a.value && (A.value ? a.value.pause() : a.value.play(), A.value = !A.value);
14603
14603
  }
14604
- const m = (b) => {
14605
- const M = Math.floor(b / 60), I = Math.floor(b % 60);
14606
- return `${M.toString().padStart(2, "0")}:${I.toString().padStart(2, "0")}`;
14607
- }, h = x(() => {
14604
+ const m = (v) => {
14605
+ const h = Math.floor(v / 60), _ = Math.floor(v % 60);
14606
+ return `${h.toString().padStart(2, "0")}:${_.toString().padStart(2, "0")}`;
14607
+ }, M = x(() => {
14608
14608
  if (a.value) {
14609
14609
  if (t.value >= s.value)
14610
14610
  return A.value = !1, "00:00";
14611
14611
  {
14612
- const b = s.value - t.value;
14613
- return m(b);
14612
+ const v = s.value - t.value;
14613
+ return m(v);
14614
14614
  }
14615
14615
  }
14616
14616
  }), p = x(() => {
@@ -14629,10 +14629,10 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14629
14629
  }), a.value.addEventListener("timeupdate", () => {
14630
14630
  t.value = a.value.currentTime;
14631
14631
  });
14632
- }), (b, M) => (r(), d("div", {
14633
- class: E(["video-message", n(e.message)]),
14632
+ }), (v, h) => (r(), d("div", {
14633
+ class: T(["video-message", n(e.message)]),
14634
14634
  messageId: e.message.messageId,
14635
- onMouseleave: c
14635
+ onMouseleave: g
14636
14636
  }, [
14637
14637
  e.message.avatar ? (r(), d("img", {
14638
14638
  key: 0,
@@ -14641,7 +14641,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14641
14641
  height: "32",
14642
14642
  width: "32",
14643
14643
  style: U({ gridRow: e.message.subText ? "2" : "1" })
14644
- }, null, 12, rs)) : y("", !0),
14644
+ }, null, 12, rs)) : b("", !0),
14645
14645
  o("div", {
14646
14646
  class: "video-message__content",
14647
14647
  onMouseenter: l
@@ -14657,8 +14657,8 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14657
14657
  default: K(() => [
14658
14658
  ae(o("button", {
14659
14659
  class: "video-message__play",
14660
- onClick: g
14661
- }, M[1] || (M[1] = [
14660
+ onClick: c
14661
+ }, h[1] || (h[1] = [
14662
14662
  o("span", { class: "pi pi-play" }, null, -1)
14663
14663
  ]), 512), [
14664
14664
  [pe, !A.value]
@@ -14668,7 +14668,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14668
14668
  }),
14669
14669
  ae(o("button", {
14670
14670
  class: "video-message__pause",
14671
- onClick: g
14671
+ onClick: c
14672
14672
  }, null, 512), [
14673
14673
  [pe, A.value]
14674
14674
  ])
@@ -14676,36 +14676,36 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14676
14676
  u.value && e.message.actions ? (r(), d("button", {
14677
14677
  key: 0,
14678
14678
  class: "video-message__menu-button",
14679
- onClick: M[0] || (M[0] = (I) => i.value = !i.value)
14680
- }, M[2] || (M[2] = [
14679
+ onClick: h[0] || (h[0] = (_) => i.value = !i.value)
14680
+ }, h[2] || (h[2] = [
14681
14681
  o("span", { class: "pi pi-ellipsis-h" }, null, -1)
14682
- ]))) : y("", !0),
14682
+ ]))) : b("", !0),
14683
14683
  S(H, null, {
14684
14684
  default: K(() => [
14685
14685
  i.value && e.message.actions ? (r(), Q(de, {
14686
14686
  key: 0,
14687
14687
  class: "video-message__context-menu",
14688
14688
  actions: e.message.actions,
14689
- onClick: b.clickAction
14690
- }, null, 8, ["actions", "onClick"])) : y("", !0)
14689
+ onClick: v.clickAction
14690
+ }, null, 8, ["actions", "onClick"])) : b("", !0)
14691
14691
  ]),
14692
14692
  _: 1
14693
14693
  }),
14694
- o("p", ds, _(`${h.value}`), 1),
14694
+ o("p", ds, w(`${M.value}`), 1),
14695
14695
  o("div", gs, [
14696
- o("span", ms, _(e.message.time), 1),
14696
+ o("span", ms, w(e.message.time), 1),
14697
14697
  n(e.message) === "video-message__right" && e.message.status ? (r(), d("div", {
14698
14698
  key: 0,
14699
- class: E(["video-message__status", p.value])
14699
+ class: T(["video-message__status", p.value])
14700
14700
  }, [
14701
- e.message.status !== "sent" ? (r(), d("span", ps)) : y("", !0),
14702
- M[3] || (M[3] = o("span", { class: "pi pi-check" }, null, -1))
14703
- ], 2)) : y("", !0)
14701
+ e.message.status !== "sent" ? (r(), d("span", ps)) : b("", !0),
14702
+ h[3] || (h[3] = o("span", { class: "pi pi-check" }, null, -1))
14703
+ ], 2)) : b("", !0)
14704
14704
  ])
14705
14705
  ], 32)
14706
14706
  ], 42, us));
14707
14707
  }
14708
- }, hs = /* @__PURE__ */ N(Ms, [["__scopeId", "data-v-00309bae"]]), bs = { class: "call-message" }, ys = ["messageId"], vs = ["src"], Is = {
14708
+ }, hs = /* @__PURE__ */ k(Ms, [["__scopeId", "data-v-00309bae"]]), bs = { class: "call-message" }, ys = ["messageId"], vs = ["src"], Is = {
14709
14709
  key: 1,
14710
14710
  class: "call-message__subtext"
14711
14711
  }, _s = { class: "call-message__content" }, ws = {
@@ -14737,7 +14737,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14737
14737
  }
14738
14738
  return (n, a) => (r(), d("div", bs, [
14739
14739
  o("div", {
14740
- class: E(f(e.message)),
14740
+ class: T(f(e.message)),
14741
14741
  messageId: e.message.messageId
14742
14742
  }, [
14743
14743
  e.message.avatar ? (r(), d("img", {
@@ -14747,23 +14747,23 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14747
14747
  height: "32",
14748
14748
  width: "32",
14749
14749
  style: U({ gridRow: e.message.subText ? "2" : "1" })
14750
- }, null, 12, vs)) : y("", !0),
14751
- e.message.subText ? (r(), d("p", Is, _(e.message.subText), 1)) : y("", !0),
14750
+ }, null, 12, vs)) : b("", !0),
14751
+ e.message.subText ? (r(), d("p", Is, w(e.message.subText), 1)) : b("", !0),
14752
14752
  o("div", _s, [
14753
14753
  o("span", {
14754
14754
  class: "call-message__icon pi pi-phone",
14755
14755
  style: U({ color: e.message.isMissedCall ? "var(--call-message-color-icon-error)" : "var(--neutral-100)" })
14756
14756
  }, null, 4),
14757
14757
  e.message.isMissedCall ? (r(), d("span", Ds, "Пропущенный аудиозвонок")) : (r(), d("span", ws, "Аудиозвонок")),
14758
- e.message.callDuration ? (r(), d("span", Ns, _(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (r(), d("span", ks, "Нажмите, чтобы перезвонить")) : (r(), d("span", js, "Нет ответа")),
14758
+ e.message.callDuration ? (r(), d("span", Ns, w(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (r(), d("span", ks, "Нажмите, чтобы перезвонить")) : (r(), d("span", js, "Нет ответа")),
14759
14759
  o("div", Vs, [
14760
- o("span", Es, _(e.message.time), 1)
14760
+ o("span", Es, w(e.message.time), 1)
14761
14761
  ])
14762
14762
  ])
14763
14763
  ], 10, ys)
14764
14764
  ]));
14765
14765
  }
14766
- }, xs = /* @__PURE__ */ N(Ts, [["__scopeId", "data-v-9b209155"]]), Ss = { class: "system-message" }, zs = { class: "system-message__container" }, Os = { class: "system-message__text" }, Cs = {
14766
+ }, xs = /* @__PURE__ */ k(Ts, [["__scopeId", "data-v-9b209155"]]), Ss = { class: "system-message" }, zs = { class: "system-message__container" }, Os = { class: "system-message__text" }, Cs = {
14767
14767
  __name: "SystemMessage",
14768
14768
  props: {
14769
14769
  message: {
@@ -14774,57 +14774,62 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14774
14774
  setup(e) {
14775
14775
  return (f, n) => (r(), d("div", Ss, [
14776
14776
  o("div", zs, [
14777
- o("p", Os, _(e.message.text), 1)
14777
+ o("p", Os, w(e.message.text), 1)
14778
14778
  ])
14779
14779
  ]));
14780
14780
  }
14781
- }, Us = /* @__PURE__ */ N(Cs, [["__scopeId", "data-v-b17746f3"]]), Ls = { class: "message-feed__container" }, Qs = {
14781
+ }, Us = /* @__PURE__ */ k(Cs, [["__scopeId", "data-v-b17746f3"]]), Ls = { class: "message-feed__container" }, Qs = {
14782
14782
  __name: "Feed",
14783
14783
  props: {
14784
14784
  objects: {
14785
14785
  type: Array,
14786
14786
  required: !0
14787
+ },
14788
+ // при новом сообщении необходимо прокручивать ленту вниз,
14789
+ // а при загрузке более ранних сообщений - нет
14790
+ isScrollToBottomOnUpdateObjectsEnabled: {
14791
+ type: Boolean,
14792
+ required: !0,
14793
+ default: !1
14787
14794
  }
14788
14795
  },
14789
14796
  emits: ["messageAction", "loadMore"],
14790
14797
  setup(e, { emit: f }) {
14791
- const n = v();
14792
- v(0);
14793
- const a = v(!1), A = e, s = f, t = () => {
14798
+ const n = y(), a = y(!1), A = e, s = y(A.isScrollToBottomOnUpdateObjectsEnabled), t = f, i = () => {
14794
14799
  const c = me(n);
14795
- c.scrollHeight - c.scrollTop - c.clientHeight < 100 ? a.value = !1 : a.value = !0, c.scrollTop === 0 && s("loadMore");
14796
- }, i = (c) => ({
14800
+ c.scrollHeight - c.scrollTop - c.clientHeight < 100 ? a.value = !1 : a.value = !0, c.scrollTop === 0 && t("loadMore");
14801
+ }, u = (c) => ({
14797
14802
  "message.text": ha,
14798
14803
  "message.image": oa,
14799
- "message.file": Zn,
14804
+ "message.file": $n,
14800
14805
  "message.audio": Va,
14801
14806
  "message.video": hs,
14802
14807
  "message.call": xs,
14803
14808
  "message.system": Us,
14804
14809
  "system.date": za
14805
14810
  })[c];
14806
- function u() {
14807
- Hf(function() {
14811
+ function l() {
14812
+ s.value && Hf(function() {
14808
14813
  const c = me(n);
14809
14814
  c.scrollTop = c.scrollHeight;
14810
14815
  });
14811
14816
  }
14812
- En(() => u), Ze(() => A.objects, u);
14813
- const l = (c) => {
14814
- s("messageAction", c);
14817
+ En(() => l), $e(() => A.objects, l);
14818
+ const g = (c) => {
14819
+ t("messageAction", c);
14815
14820
  };
14816
- return (c, g) => (r(), d("div", {
14821
+ return (c, m) => (r(), d("div", {
14817
14822
  ref_key: "refFeed",
14818
14823
  ref: n,
14819
14824
  class: "message-feed",
14820
- onScroll: t
14825
+ onScroll: i
14821
14826
  }, [
14822
14827
  o("div", Ls, [
14823
- (r(!0), d(B, null, R(e.objects, (m) => (r(), Q(Tn(i(m.type)), {
14824
- key: m.messageId,
14828
+ (r(!0), d(B, null, R(e.objects, (M) => (r(), Q(Tn(u(M.type)), {
14829
+ key: M.messageId,
14825
14830
  class: "message-feed__message",
14826
- message: m,
14827
- onAction: l
14831
+ message: M,
14832
+ onAction: g
14828
14833
  }, null, 40, ["message"]))), 128))
14829
14834
  ]),
14830
14835
  S(H, null, {
@@ -14832,16 +14837,16 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14832
14837
  a.value ? (r(), d("button", {
14833
14838
  key: 0,
14834
14839
  class: "message-feed__button-down",
14835
- onClick: u
14836
- }, g[0] || (g[0] = [
14840
+ onClick: m[0] || (m[0] = (...M) => c.scrollToFeedBottom && c.scrollToFeedBottom(...M))
14841
+ }, m[1] || (m[1] = [
14837
14842
  o("span", { class: "pi pi-angle-down" }, null, -1)
14838
- ]))) : y("", !0)
14843
+ ]))) : b("", !0)
14839
14844
  ]),
14840
14845
  _: 1
14841
14846
  })
14842
14847
  ], 544));
14843
14848
  }
14844
- }, ao = /* @__PURE__ */ N(Qs, [["__scopeId", "data-v-35db7c9c"]]), Bs = { class: "profile" }, Ys = {
14849
+ }, ro = /* @__PURE__ */ k(Qs, [["__scopeId", "data-v-ef54c27a"]]), Bs = { class: "profile" }, Ys = {
14845
14850
  key: 0,
14846
14851
  class: "profile__container"
14847
14852
  }, Rs = {
@@ -14868,17 +14873,74 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14868
14873
  height: "48",
14869
14874
  width: "48"
14870
14875
  }, null, 8, qs)
14871
- ])) : y("", !0),
14872
- o("h2", Fs, _(e.user.name), 1),
14873
- o("p", Js, _(e.user.email), 1),
14874
- o("p", Ws, _(e.user.phone), 1)
14875
- ])) : y("", !0)
14876
+ ])) : b("", !0),
14877
+ o("h2", Fs, w(e.user.name), 1),
14878
+ o("p", Js, w(e.user.email), 1),
14879
+ o("p", Ws, w(e.user.phone), 1)
14880
+ ])) : b("", !0)
14876
14881
  ]));
14877
14882
  }
14878
- }, Ao = /* @__PURE__ */ N(Hs, [["__scopeId", "data-v-db3ba19b"]]), Ks = {
14883
+ }, lo = /* @__PURE__ */ k(Hs, [["__scopeId", "data-v-db3ba19b"]]), Ks = {
14884
+ key: 0,
14885
+ class: "dropDownMenu"
14886
+ }, Ps = { class: "label-container" }, $s = { class: "label-row" }, Zs = { class: "label-row" }, Gs = { class: "label-row" }, Xs = {
14887
+ __name: "FileDropDownMenu",
14888
+ props: {
14889
+ canUploadFile: {
14890
+ type: Boolean,
14891
+ required: !0,
14892
+ default: !0
14893
+ },
14894
+ hovered: {
14895
+ type: Boolean,
14896
+ required: !0,
14897
+ default: !1
14898
+ }
14899
+ },
14900
+ emits: ["fileSelected"],
14901
+ setup(e, { emit: f }) {
14902
+ const n = f, a = (A) => {
14903
+ const s = A.target.files[0];
14904
+ s && (console.log("Selected file:", s), n("fileSelected", s));
14905
+ };
14906
+ return (A, s) => e.hovered && e.canUploadFile ? (r(), d("div", Ks, [
14907
+ o("div", Ps, [
14908
+ o("label", $s, [
14909
+ s[0] || (s[0] = o("i", { class: "pi pi-image" }, null, -1)),
14910
+ s[1] || (s[1] = o("span", { class: "label-title" }, "Фото", -1)),
14911
+ o("input", {
14912
+ style: { display: "none" },
14913
+ accept: "image/*",
14914
+ type: "file",
14915
+ onChange: a
14916
+ }, null, 32)
14917
+ ]),
14918
+ o("label", Zs, [
14919
+ s[2] || (s[2] = o("i", { class: "pi pi-video" }, null, -1)),
14920
+ s[3] || (s[3] = o("span", { class: "label-title" }, "Видео", -1)),
14921
+ o("input", {
14922
+ style: { display: "none" },
14923
+ accept: "video/*",
14924
+ type: "file",
14925
+ onChange: a
14926
+ }, null, 32)
14927
+ ]),
14928
+ o("label", Gs, [
14929
+ s[4] || (s[4] = o("i", { class: "pi pi-file" }, null, -1)),
14930
+ s[5] || (s[5] = o("span", { class: "label-title" }, "Файл", -1)),
14931
+ o("input", {
14932
+ style: { display: "none" },
14933
+ type: "file",
14934
+ onChange: a
14935
+ }, null, 32)
14936
+ ])
14937
+ ])
14938
+ ])) : b("", !0);
14939
+ }
14940
+ }, ei = /* @__PURE__ */ k(Xs, [["__scopeId", "data-v-2538291d"]]), fi = {
14879
14941
  key: 0,
14880
14942
  class: "chat-input__button-file"
14881
- }, Ps = { key: 1 }, Zs = { key: 2 }, $s = { key: 3 }, Gs = {
14943
+ }, ni = { key: 1 }, ai = { key: 2 }, Ai = { key: 3 }, ti = {
14882
14944
  __name: "FileUploader",
14883
14945
  props: {
14884
14946
  canUploadFile: {
@@ -14889,59 +14951,86 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14889
14951
  },
14890
14952
  emits: ["fileUploaded"],
14891
14953
  setup(e, { emit: f }) {
14892
- const n = e, a = v(null), A = v(""), s = v(""), t = v(""), i = v(!1), u = v(!1), l = v(!1), c = f;
14893
- Ze(() => n.canUploadFile, () => {
14894
- Hf(() => {
14895
- n.canUploadFile === !0 && (A.value = null);
14896
- });
14897
- });
14898
- const g = (p) => {
14899
- console.log("onFileSelected", p.target.files[0]), a.value = p.target.files[0], a.value && (m(), h(), l.value = !0);
14900
- }, m = () => {
14901
- const p = a.value, b = p.type;
14902
- if (console.log(b), b.startsWith("image/") ? (i.value = !0, u.value = !1) : b.startsWith("video/") ? (i.value = !1, u.value = !0) : (i.value = !1, u.value = !1), i.value || u.value) {
14903
- const M = new FileReader();
14904
- M.onload = (I) => {
14905
- t.value = I.target.result;
14906
- }, M.readAsDataURL(p);
14954
+ const n = e, a = y(!1);
14955
+ y(!1);
14956
+ const A = () => {
14957
+ a.value = !0;
14958
+ }, s = () => {
14959
+ a.value = !1;
14960
+ }, t = y(null), i = y(""), u = y(""), l = y(""), g = y(!1), c = y(!1), m = y(!1), M = f;
14961
+ $e(
14962
+ () => n.canUploadFile,
14963
+ () => {
14964
+ Hf(() => {
14965
+ n.canUploadFile === !0 && (i.value = null);
14966
+ });
14967
+ }
14968
+ );
14969
+ const p = (I) => {
14970
+ console.log("onFileSelected", I.target.files[0]), t.value = I.target.files[0], t.value && (h(), _(), m.value = !0);
14971
+ }, v = (I) => {
14972
+ console.log("onFileSelected", I), t.value = I, t.value && (h(), _(), m.value = !0);
14973
+ }, h = () => {
14974
+ const I = t.value, D = I.type;
14975
+ if (console.log(D), D.startsWith("image/") ? (g.value = !0, c.value = !1) : D.startsWith("video/") ? (g.value = !1, c.value = !0) : (g.value = !1, c.value = !1), g.value || c.value) {
14976
+ const N = new FileReader();
14977
+ N.onload = (j) => {
14978
+ l.value = j.target.result;
14979
+ }, N.readAsDataURL(I);
14907
14980
  } else
14908
- t.value = "";
14909
- }, h = async () => {
14910
- A.value = "uploading";
14911
- const p = new FormData();
14912
- p.append("file", a.value);
14981
+ l.value = "";
14982
+ }, _ = async () => {
14983
+ i.value = "uploading";
14984
+ const I = new FormData();
14985
+ I.append("file", t.value);
14913
14986
  try {
14914
- const M = await (await fetch("https://filebump.services.mobilon.ru/upload", {
14915
- method: "POST",
14916
- body: p
14917
- })).json();
14918
- s.value = M.url, A.value = "success", n.canUploadFile = !1, c("fileUploaded", { url: s.value, type: "message.file" });
14919
- } catch (b) {
14920
- console.error("Ошибка при загрузке файла:", b), A.value = "error";
14987
+ const N = await (await fetch(
14988
+ "https://filebump.services.mobilon.ru/upload",
14989
+ {
14990
+ method: "POST",
14991
+ body: I
14992
+ }
14993
+ )).json();
14994
+ u.value = N.url, i.value = "success", n.canUploadFile = !1, M("fileUploaded", { url: u.value, type: "message.file" });
14995
+ } catch (D) {
14996
+ console.error("Ошибка при загрузке файла:", D), i.value = "error";
14921
14997
  }
14922
14998
  };
14923
- return (p, b) => (r(), d("div", null, [
14924
- e.canUploadFile && A.value !== "success" ? (r(), d("div", Ks, [
14925
- o("label", null, [
14926
- o("input", {
14927
- type: "file",
14928
- onChange: g
14929
- }, null, 32),
14930
- b[0] || (b[0] = o("span", null, [
14931
- o("i", { class: "pi pi-file-arrow-up" })
14932
- ], -1))
14933
- ])
14934
- ])) : y("", !0),
14935
- !e.canUploadFile && A.value === "success" ? (r(), d("div", Ps, b[1] || (b[1] = [
14936
- o("p", null, "Файл загружен и готов к отправке.", -1)
14937
- ]))) : A.value === "uploading" ? (r(), d("div", Zs, b[2] || (b[2] = [
14938
- o("p", null, "Загрузка файла...", -1)
14939
- ]))) : A.value === "error" ? (r(), d("div", $s, b[3] || (b[3] = [
14940
- o("p", null, "Ошибка при загрузке файла.", -1)
14941
- ]))) : y("", !0)
14942
- ]));
14999
+ return (I, D) => (r(), d(B, null, [
15000
+ o("div", {
15001
+ class: "container",
15002
+ onMouseover: A,
15003
+ onMouseout: s
15004
+ }, [
15005
+ e.canUploadFile && i.value !== "success" ? (r(), d("div", fi, [
15006
+ o("label", null, [
15007
+ o("input", {
15008
+ type: "file",
15009
+ onChange: p
15010
+ }, null, 32),
15011
+ D[0] || (D[0] = o("span", null, [
15012
+ o("i", { class: "pi pi-file-arrow-up" })
15013
+ ], -1))
15014
+ ])
15015
+ ])) : b("", !0),
15016
+ !e.canUploadFile && i.value === "success" ? (r(), d("div", ni, D[1] || (D[1] = [
15017
+ o("p", null, "Файл загружен и готов к отправке.", -1)
15018
+ ]))) : i.value === "uploading" ? (r(), d("div", ai, D[2] || (D[2] = [
15019
+ o("p", null, "Загрузка файла...", -1)
15020
+ ]))) : i.value === "error" ? (r(), d("div", Ai, D[3] || (D[3] = [
15021
+ o("p", null, "Ошибка при загрузке файла.", -1)
15022
+ ]))) : b("", !0)
15023
+ ], 32),
15024
+ S(ei, {
15025
+ hovered: a.value,
15026
+ "can-upload-file": e.canUploadFile,
15027
+ onFileSelected: v,
15028
+ onMouseover: A,
15029
+ onMouseout: s
15030
+ }, null, 8, ["hovered", "can-upload-file"])
15031
+ ], 64));
14943
15032
  }
14944
- }, Xs = /* @__PURE__ */ N(Gs, [["__scopeId", "data-v-0e7c76bc"]]), ei = ["value"], fi = {
15033
+ }, si = /* @__PURE__ */ k(ti, [["__scopeId", "data-v-97a7c026"]]), ii = ["value"], oi = {
14945
15034
  __name: "ThemeMode",
14946
15035
  props: {
14947
15036
  themes: {
@@ -14950,7 +15039,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14950
15039
  }
14951
15040
  },
14952
15041
  setup(e) {
14953
- const f = e, n = v("light"), a = (A) => {
15042
+ const f = e, n = y("light"), a = (A) => {
14954
15043
  const s = A.target.value;
14955
15044
  n.value = s, document.documentElement.dataset.theme = s;
14956
15045
  };
@@ -14961,11 +15050,11 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14961
15050
  (r(!0), d(B, null, R(f.themes, (t, i) => (r(), d("option", {
14962
15051
  key: i,
14963
15052
  value: t.code
14964
- }, _(t.name), 9, ei))), 128))
15053
+ }, w(t.name), 9, ii))), 128))
14965
15054
  ], 32)
14966
15055
  ]));
14967
15056
  }
14968
- }, to = /* @__PURE__ */ N(fi, [["__scopeId", "data-v-7c5c98e9"]]), ni = { class: "sidebar" }, ai = { class: "sidebar__container" }, Ai = { class: "sidebar__list" }, ti = ["onClick"], si = ["src", "alt"], ii = { key: 1 }, oi = { class: "sidebar__list-fixed" }, ui = ["onClick"], ri = ["src", "alt"], li = { key: 1 }, ci = {
15057
+ }, co = /* @__PURE__ */ k(oi, [["__scopeId", "data-v-7c5c98e9"]]), ui = { class: "sidebar" }, ri = { class: "sidebar__container" }, li = { class: "sidebar__list" }, ci = ["onClick"], di = ["src", "alt"], gi = { key: 1 }, mi = { class: "sidebar__list-fixed" }, pi = ["onClick"], Mi = ["src", "alt"], hi = { key: 1 }, bi = {
14969
15058
  __name: "SideBar",
14970
15059
  props: {
14971
15060
  sidebarItems: {
@@ -14983,51 +15072,51 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
14983
15072
  const u = i.split(" ");
14984
15073
  return u.length > 2 ? u.slice(0, 2).join(" ") : i;
14985
15074
  };
14986
- return (i, u) => (r(), d("div", ni, [
14987
- o("div", ai, [
14988
- o("ul", Ai, [
14989
- (r(!0), d(B, null, R(a.value.filter((l) => !l.isFixedBottom), (l, c) => (r(), d("li", {
14990
- key: c,
15075
+ return (i, u) => (r(), d("div", ui, [
15076
+ o("div", ri, [
15077
+ o("ul", li, [
15078
+ (r(!0), d(B, null, R(a.value.filter((l) => !l.isFixedBottom), (l, g) => (r(), d("li", {
15079
+ key: g,
14991
15080
  class: "sidebar__item",
14992
- onClick: (g) => s(l.itemId)
15081
+ onClick: (c) => s(l.itemId)
14993
15082
  }, [
14994
15083
  o("img", {
14995
15084
  src: l.icon,
14996
15085
  alt: l.name,
14997
- class: E(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
14998
- }, null, 10, si),
15086
+ class: T(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
15087
+ }, null, 10, di),
14999
15088
  l.notificationCount ? (r(), d("span", {
15000
15089
  key: 0,
15001
15090
  style: U({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
15002
- }, _(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : y("", !0),
15003
- l.name ? (r(), d("p", ii, _(t(l.name)), 1)) : y("", !0)
15004
- ], 8, ti))), 128))
15091
+ }, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
15092
+ l.name ? (r(), d("p", gi, w(t(l.name)), 1)) : b("", !0)
15093
+ ], 8, ci))), 128))
15005
15094
  ]),
15006
- o("ul", oi, [
15007
- (r(!0), d(B, null, R(a.value.filter((l) => l.isFixedBottom), (l, c) => (r(), d("li", {
15008
- key: c,
15095
+ o("ul", mi, [
15096
+ (r(!0), d(B, null, R(a.value.filter((l) => l.isFixedBottom), (l, g) => (r(), d("li", {
15097
+ key: g,
15009
15098
  class: "sidebar__item",
15010
- onClick: (g) => s(l.itemId)
15099
+ onClick: (c) => s(l.itemId)
15011
15100
  }, [
15012
15101
  o("img", {
15013
15102
  src: l.icon,
15014
15103
  alt: l.name,
15015
- class: E(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
15016
- }, null, 10, ri),
15104
+ class: T(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
15105
+ }, null, 10, Mi),
15017
15106
  l.notificationCount ? (r(), d("span", {
15018
15107
  key: 0,
15019
15108
  style: U({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
15020
- }, _(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : y("", !0),
15021
- l.name ? (r(), d("p", li, _(t(l.name)), 1)) : y("", !0)
15022
- ], 8, ui))), 128))
15109
+ }, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
15110
+ l.name ? (r(), d("p", hi, w(t(l.name)), 1)) : b("", !0)
15111
+ ], 8, pi))), 128))
15023
15112
  ])
15024
15113
  ])
15025
15114
  ]));
15026
15115
  }
15027
- }, so = /* @__PURE__ */ N(ci, [["__scopeId", "data-v-5e22516c"]]), di = { class: "chat-panel" }, gi = { class: "chat-panel__title-container" }, mi = {
15116
+ }, go = /* @__PURE__ */ k(bi, [["__scopeId", "data-v-5e22516c"]]), yi = { class: "chat-panel" }, vi = { class: "chat-panel__title-container" }, Ii = {
15028
15117
  key: 0,
15029
15118
  class: "chat-panel__title"
15030
- }, pi = {
15119
+ }, _i = {
15031
15120
  __name: "ChatPanel",
15032
15121
  props: {
15033
15122
  title: {
@@ -15038,9 +15127,9 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15038
15127
  },
15039
15128
  emits: ["close-panel"],
15040
15129
  setup(e, { emit: f }) {
15041
- return (n, a) => (r(), d("div", di, [
15042
- o("div", gi, [
15043
- e.title ? (r(), d("p", mi, _(e.title), 1)) : y("", !0),
15130
+ return (n, a) => (r(), d("div", yi, [
15131
+ o("div", vi, [
15132
+ e.title ? (r(), d("p", Ii, w(e.title), 1)) : b("", !0),
15044
15133
  o("button", {
15045
15134
  class: "chat-panel__button-close",
15046
15135
  onClick: a[0] || (a[0] = (A) => n.$emit("close-panel"))
@@ -15053,10 +15142,10 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15053
15142
  ])
15054
15143
  ]));
15055
15144
  }
15056
- }, io = /* @__PURE__ */ N(pi, [["__scopeId", "data-v-cd721096"]]), Mi = {
15145
+ }, mo = /* @__PURE__ */ k(_i, [["__scopeId", "data-v-cd721096"]]), wi = {
15057
15146
  key: 0,
15058
15147
  class: "new-chat-modal"
15059
- }, hi = { class: "modal-content" }, bi = { class: "participant-list" }, yi = ["id", "value"], vi = ["for"], Ii = {
15148
+ }, Di = { class: "modal-content" }, Ni = { class: "participant-list" }, ki = ["id", "value"], ji = ["for"], Vi = {
15060
15149
  __name: "SelectUser",
15061
15150
  props: {
15062
15151
  users: {
@@ -15070,7 +15159,7 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15070
15159
  },
15071
15160
  emits: ["confirm", "close"],
15072
15161
  setup(e, { emit: f }) {
15073
- const n = v(!0), a = v([]), A = f, s = async () => {
15162
+ const n = y(!0), a = y([]), A = f, s = async () => {
15074
15163
  A("confirm", a.value), t(), i();
15075
15164
  }, t = () => {
15076
15165
  A("close"), n.value = !1;
@@ -15079,26 +15168,26 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15079
15168
  }, u = () => {
15080
15169
  t(), i();
15081
15170
  };
15082
- return (l, c) => (r(), d("div", null, [
15083
- n.value ? (r(), d("div", Mi, [
15084
- o("div", hi, [
15085
- o("h2", null, _(e.title), 1),
15086
- o("div", bi, [
15087
- (r(!0), d(B, null, R(e.users, (g) => (r(), d("div", {
15088
- key: g.userId,
15171
+ return (l, g) => (r(), d("div", null, [
15172
+ n.value ? (r(), d("div", wi, [
15173
+ o("div", Di, [
15174
+ o("h2", null, w(e.title), 1),
15175
+ o("div", Ni, [
15176
+ (r(!0), d(B, null, R(e.users, (c) => (r(), d("div", {
15177
+ key: c.userId,
15089
15178
  class: "participant-item"
15090
15179
  }, [
15091
15180
  ae(o("input", {
15092
- id: g.userId,
15093
- "onUpdate:modelValue": c[0] || (c[0] = (m) => a.value = m),
15181
+ id: c.userId,
15182
+ "onUpdate:modelValue": g[0] || (g[0] = (m) => a.value = m),
15094
15183
  type: "checkbox",
15095
- value: g.userId
15096
- }, null, 8, yi), [
15184
+ value: c.userId
15185
+ }, null, 8, ki), [
15097
15186
  [Sn, a.value]
15098
15187
  ]),
15099
15188
  o("label", {
15100
- for: g.userId
15101
- }, _(g.name || "unknown username"), 9, vi)
15189
+ for: c.userId
15190
+ }, w(c.name || "unknown username"), 9, ji)
15102
15191
  ]))), 128))
15103
15192
  ]),
15104
15193
  o("div", { class: "modal-actions" }, [
@@ -15106,32 +15195,32 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15106
15195
  o("button", { onClick: u }, " Отмена ")
15107
15196
  ])
15108
15197
  ])
15109
- ])) : y("", !0)
15198
+ ])) : b("", !0)
15110
15199
  ]));
15111
15200
  }
15112
- }, oo = /* @__PURE__ */ N(Ii, [["__scopeId", "data-v-66249b80"]]), _i = { class: "modal-backdrop" }, wi = {
15201
+ }, po = /* @__PURE__ */ k(Vi, [["__scopeId", "data-v-66249b80"]]), Ei = { class: "modal-backdrop" }, Ti = {
15113
15202
  class: "modal",
15114
15203
  role: "dialog",
15115
15204
  "aria-labelledby": "modalTitle",
15116
15205
  "aria-describedby": "modalDescription"
15117
- }, Di = {
15206
+ }, xi = {
15118
15207
  id: "modalDescription",
15119
15208
  class: "modal-body"
15120
- }, Ni = { class: "buttons" }, ki = {
15209
+ }, Si = { class: "buttons" }, zi = {
15121
15210
  __name: "Modal",
15122
15211
  emits: ["close", "submit"],
15123
15212
  setup(e, { emit: f }) {
15124
15213
  const n = f, a = (s) => {
15125
15214
  n("submit", s);
15126
- }, A = v(null);
15215
+ }, A = y(null);
15127
15216
  return (s, t) => (r(), Q(H, { name: "modal-fade" }, {
15128
15217
  default: K(() => [
15129
- o("div", _i, [
15130
- o("div", wi, [
15131
- o("div", Di, [
15218
+ o("div", Ei, [
15219
+ o("div", Ti, [
15220
+ o("div", xi, [
15132
15221
  W(s.$slots, "default", {}, void 0, !0)
15133
15222
  ]),
15134
- o("div", Ni, [
15223
+ o("div", Si, [
15135
15224
  o("button", {
15136
15225
  type: "button",
15137
15226
  class: "btn-green",
@@ -15151,22 +15240,22 @@ const w1 = { class: "channels__container" }, D1 = { class: "channels__title-cont
15151
15240
  _: 3
15152
15241
  }));
15153
15242
  }
15154
- }, ji = /* @__PURE__ */ N(ki, [["__scopeId", "data-v-d48a1772"]]);
15243
+ }, Oi = /* @__PURE__ */ k(zi, [["__scopeId", "data-v-d48a1772"]]);
15155
15244
  function cn({ component: e, attrs: f }) {
15156
15245
  return new Promise((n) => {
15157
15246
  const a = document.createElement("div");
15158
15247
  document.body.appendChild(a);
15159
- const A = v({}), s = () => {
15248
+ const A = y({}), s = () => {
15160
15249
  l.unmount(), document.body.removeChild(a);
15161
15250
  }, t = () => {
15162
15251
  s(), n(A.value);
15163
- }, i = (c) => {
15164
- const g = Object.keys(c)[0];
15165
- A.value[g] = c[g];
15252
+ }, i = (g) => {
15253
+ const c = Object.keys(g)[0];
15254
+ A.value[c] = g[c];
15166
15255
  }, u = ce({
15167
15256
  render() {
15168
15257
  return Tf(
15169
- ji,
15258
+ Oi,
15170
15259
  {
15171
15260
  onSubmit: t,
15172
15261
  onClose: s
@@ -15186,17 +15275,17 @@ function cn({ component: e, attrs: f }) {
15186
15275
  l.mount(a);
15187
15276
  });
15188
15277
  }
15189
- const uo = async (e, f) => {
15278
+ const Mo = async (e, f) => {
15190
15279
  const n = await cn({
15191
15280
  //в component должен быть встроен emit change(key: value)
15192
- component: import("./SelectUser2-CIj1XpAc.js"),
15281
+ component: import("./SelectUser2-cwVHQ32W.js"),
15193
15282
  attrs: {
15194
15283
  title: e,
15195
15284
  users: f
15196
15285
  }
15197
15286
  });
15198
15287
  return console.log("data", n), n;
15199
- }, ro = async (e) => {
15288
+ }, ho = async (e) => {
15200
15289
  const f = await cn({
15201
15290
  //в component должен быть встроен emit change(key: value)
15202
15291
  component: import("./CreateChat-fkFKBxtQ.js"),
@@ -15205,7 +15294,7 @@ const uo = async (e, f) => {
15205
15294
  }
15206
15295
  });
15207
15296
  return console.log("data", f), f;
15208
- }, Vi = {
15297
+ }, Ci = {
15209
15298
  __name: "BaseContainer",
15210
15299
  props: {
15211
15300
  height: String,
@@ -15223,7 +15312,7 @@ const uo = async (e, f) => {
15223
15312
  W(n.$slots, "default", {}, void 0, !0)
15224
15313
  ], 4));
15225
15314
  }
15226
- }, lo = /* @__PURE__ */ N(Vi, [["__scopeId", "data-v-db2052ac"]]), Ei = { class: "float-window__container" }, Ti = ["src", "alt"], xi = { class: "float-window__title" }, Si = {
15315
+ }, bo = /* @__PURE__ */ k(Ci, [["__scopeId", "data-v-db2052ac"]]), Ui = { class: "float-window__container" }, Li = ["src", "alt"], Qi = { class: "float-window__title" }, Bi = {
15227
15316
  __name: "FloatContainer",
15228
15317
  props: {
15229
15318
  title: {
@@ -15238,32 +15327,32 @@ const uo = async (e, f) => {
15238
15327
  type: String,
15239
15328
  required: !0
15240
15329
  },
15241
- Height: String,
15242
- Width: String
15330
+ height: String,
15331
+ width: String
15243
15332
  },
15244
15333
  emits: ["close-window", "get-size"],
15245
15334
  setup(e, { emit: f }) {
15246
- const n = e, a = v({ x: 0, y: 0 }), A = v(null), s = v(null), t = v(!1), i = v(0), u = v(0), l = v(0), c = () => {
15335
+ const n = e, a = y({ x: 0, y: 0 }), A = y(null), s = y(null), t = y(!1), i = y(0), u = y(0), l = y(0), g = () => {
15247
15336
  if (A.value) {
15248
- const p = window.innerWidth, b = window.innerHeight, M = A.value.offsetWidth, I = A.value.offsetHeight;
15249
- a.value.x = (p - M) / 2, a.value.y = (b - I) / 2;
15337
+ const p = window.innerWidth, v = window.innerHeight, h = A.value.offsetWidth, _ = A.value.offsetHeight;
15338
+ a.value.x = (p - h) / 2, a.value.y = (v - _) / 2;
15250
15339
  }
15251
- }, g = (p) => {
15340
+ }, c = (p) => {
15252
15341
  t.value = !0, i.value = p.clientX - A.value.offsetLeft, u.value = p.clientY - A.value.offsetTop;
15253
- }, m = () => t.value = !1, h = (p) => {
15342
+ }, m = () => t.value = !1, M = (p) => {
15254
15343
  if (t.value) {
15255
- const b = p.clientX - i.value, M = p.clientY - u.value;
15344
+ const v = p.clientX - i.value, h = p.clientY - u.value;
15256
15345
  a.value.x = Math.max(
15257
15346
  0,
15258
- Math.min(b, window.innerWidth - A.value.offsetWidth)
15347
+ Math.min(v, window.innerWidth - A.value.offsetWidth)
15259
15348
  ), a.value.y = Math.max(
15260
15349
  0,
15261
- Math.min(M, window.innerHeight - A.value.offsetHeight)
15350
+ Math.min(h, window.innerHeight - A.value.offsetHeight)
15262
15351
  );
15263
15352
  }
15264
15353
  };
15265
15354
  return _e(() => {
15266
- c(), document.addEventListener("mousemove", h), window.addEventListener("resize", () => {
15355
+ g(), document.addEventListener("mousemove", M), window.addEventListener("resize", () => {
15267
15356
  a.value.x = Math.max(
15268
15357
  0,
15269
15358
  Math.min(
@@ -15278,23 +15367,26 @@ const uo = async (e, f) => {
15278
15367
  )
15279
15368
  );
15280
15369
  }), l.value = A.value.offsetHeight - s.value.offsetHeight;
15281
- }), (p, b) => (r(), d("div", {
15370
+ }), (p, v) => (r(), d("div", {
15282
15371
  ref_key: "element",
15283
15372
  ref: A,
15284
15373
  class: "float-window",
15285
15374
  style: U({
15286
15375
  left: a.value.x + "px",
15287
15376
  top: a.value.y + "px",
15288
- userSelect: t.value ? "none" : "auto"
15377
+ userSelect: t.value ? "none" : "auto",
15378
+ height: e.height,
15379
+ width: e.width,
15380
+ display: p.flex
15289
15381
  })
15290
15382
  }, [
15291
- o("div", Ei, [
15383
+ o("div", Ui, [
15292
15384
  o("div", {
15293
15385
  ref_key: "container",
15294
15386
  ref: s,
15295
15387
  class: "float-window__controls",
15296
15388
  style: U({ backgroundColor: n.colorTitle ? n.colorTitle : "" }),
15297
- onMousedown: g,
15389
+ onMousedown: c,
15298
15390
  onMouseup: m,
15299
15391
  onMouseleave: m
15300
15392
  }, [
@@ -15303,12 +15395,12 @@ const uo = async (e, f) => {
15303
15395
  class: "float-window__avatar",
15304
15396
  src: n.avatar,
15305
15397
  alt: n.title
15306
- }, null, 8, Ti)) : y("", !0),
15307
- o("p", xi, _(n.title), 1),
15398
+ }, null, 8, Li)) : b("", !0),
15399
+ o("p", Qi, w(n.title), 1),
15308
15400
  o("button", {
15309
15401
  class: "float-window__close-button",
15310
- onClick: b[0] || (b[0] = (M) => p.$emit("close-window"))
15311
- }, b[1] || (b[1] = [
15402
+ onClick: v[0] || (v[0] = (h) => p.$emit("close-window"))
15403
+ }, v[1] || (v[1] = [
15312
15404
  o("span", { class: "pi pi-times" }, null, -1)
15313
15405
  ]))
15314
15406
  ], 36),
@@ -15321,46 +15413,46 @@ const uo = async (e, f) => {
15321
15413
  ])
15322
15414
  ], 4));
15323
15415
  }
15324
- }, co = /* @__PURE__ */ N(Si, [["__scopeId", "data-v-58ac42f4"]]), zi = {}, Oi = { class: "base-layout__container" }, Ci = { class: "base-layout__first-col" }, Ui = { class: "base-layout__second-col" };
15325
- function Li(e, f) {
15326
- return r(), d("div", Oi, [
15327
- o("div", Ci, [
15416
+ }, yo = /* @__PURE__ */ k(Bi, [["__scopeId", "data-v-ef28a871"]]), Yi = {}, Ri = { class: "base-layout__container" }, qi = { class: "base-layout__first-col" }, Fi = { class: "base-layout__second-col" };
15417
+ function Ji(e, f) {
15418
+ return r(), d("div", Ri, [
15419
+ o("div", qi, [
15328
15420
  W(e.$slots, "first-col", {}, void 0, !0)
15329
15421
  ]),
15330
- o("div", Ui, [
15422
+ o("div", Fi, [
15331
15423
  W(e.$slots, "second-col", {}, void 0, !0)
15332
15424
  ])
15333
15425
  ]);
15334
15426
  }
15335
- const go = /* @__PURE__ */ N(zi, [["render", Li], ["__scopeId", "data-v-b6a80f19"]]), Qi = {}, Bi = { class: "extend-layout__container" }, Yi = { class: "extend-layout__first-col" }, Ri = { class: "extend-layout__second-col" }, qi = { class: "extend-layout__third-col" };
15336
- function Fi(e, f) {
15337
- return r(), d("div", Bi, [
15338
- o("div", Yi, [
15427
+ const vo = /* @__PURE__ */ k(Yi, [["render", Ji], ["__scopeId", "data-v-b6a80f19"]]), Wi = {}, Hi = { class: "extend-layout__container" }, Ki = { class: "extend-layout__first-col" }, Pi = { class: "extend-layout__second-col" }, $i = { class: "extend-layout__third-col" };
15428
+ function Zi(e, f) {
15429
+ return r(), d("div", Hi, [
15430
+ o("div", Ki, [
15339
15431
  W(e.$slots, "first-col", {}, void 0, !0)
15340
15432
  ]),
15341
- o("div", Ri, [
15433
+ o("div", Pi, [
15342
15434
  W(e.$slots, "second-col", {}, void 0, !0)
15343
15435
  ]),
15344
- o("div", qi, [
15436
+ o("div", $i, [
15345
15437
  W(e.$slots, "third-col", {}, void 0, !0)
15346
15438
  ])
15347
15439
  ]);
15348
15440
  }
15349
- const mo = /* @__PURE__ */ N(Qi, [["render", Fi], ["__scopeId", "data-v-cfdb8a37"]]), Ji = {}, Wi = { class: "base-layout__container" }, Hi = { class: "base-layout__first-col" };
15350
- function Ki(e, f) {
15351
- return r(), d("div", Wi, [
15352
- o("div", Hi, [
15441
+ const Io = /* @__PURE__ */ k(Wi, [["render", Zi], ["__scopeId", "data-v-cfdb8a37"]]), Gi = {}, Xi = { class: "base-layout__container" }, eo = { class: "base-layout__first-col" };
15442
+ function fo(e, f) {
15443
+ return r(), d("div", Xi, [
15444
+ o("div", eo, [
15353
15445
  W(e.$slots, "default", {}, void 0, !0)
15354
15446
  ])
15355
15447
  ]);
15356
15448
  }
15357
- const po = /* @__PURE__ */ N(Ji, [["render", Ki], ["__scopeId", "data-v-3face7ce"]]), Pi = { style: { display: "flex", height: "100%", width: "100%", "align-items": "stretch" } }, Zi = {
15449
+ const _o = /* @__PURE__ */ k(Gi, [["render", fo], ["__scopeId", "data-v-3face7ce"]]), no = { style: { display: "flex", height: "100%", width: "100%", "align-items": "stretch" } }, ao = {
15358
15450
  key: 0,
15359
15451
  style: { height: "100%", width: "100%", display: "flex", "flex-direction": "column", "align-items": "stretch" }
15360
- }, $i = {
15452
+ }, Ao = {
15361
15453
  key: 1,
15362
15454
  style: { width: "100%" }
15363
- }, Gi = /* @__PURE__ */ ce({
15455
+ }, to = /* @__PURE__ */ ce({
15364
15456
  __name: "ChatWrapper",
15365
15457
  props: {
15366
15458
  isOpenChatPanel: {
@@ -15373,10 +15465,10 @@ const po = /* @__PURE__ */ N(Ji, [["render", Ki], ["__scopeId", "data-v-3face7ce
15373
15465
  }
15374
15466
  },
15375
15467
  setup(e) {
15376
- return (f, n) => (r(), d("div", Pi, [
15377
- e.isSelectedChat ? (r(), d("div", Zi, [
15468
+ return (f, n) => (r(), d("div", no, [
15469
+ e.isSelectedChat ? (r(), d("div", ao, [
15378
15470
  W(f.$slots, "default", {}, void 0, !0)
15379
- ])) : (r(), d("div", $i, n[0] || (n[0] = [
15471
+ ])) : (r(), d("div", Ao, n[0] || (n[0] = [
15380
15472
  o("p", null, " Выберите контакт для начала общения ", -1)
15381
15473
  ]))),
15382
15474
  e.isOpenChatPanel ? (r(), d("div", {
@@ -15385,16 +15477,16 @@ const po = /* @__PURE__ */ N(Ji, [["render", Ki], ["__scopeId", "data-v-3face7ce
15385
15477
  class: "chatpanel"
15386
15478
  }, [
15387
15479
  W(f.$slots, "chatpanel", {}, void 0, !0)
15388
- ], 4)) : y("", !0)
15480
+ ], 4)) : b("", !0)
15389
15481
  ]));
15390
15482
  }
15391
- }), Mo = /* @__PURE__ */ N(Gi, [["__scopeId", "data-v-8ce07c9d"]]);
15392
- function ho(e) {
15483
+ }), wo = /* @__PURE__ */ k(to, [["__scopeId", "data-v-8ce07c9d"]]);
15484
+ function Do(e) {
15393
15485
  if (!e || e === "") return;
15394
15486
  const f = +new Date(Number(e) * 1e3), n = +/* @__PURE__ */ new Date(), a = Math.floor((n - f) / 1e3), A = Math.floor(a / 60), s = Math.floor(A / 60), t = Math.floor(s / 24);
15395
15487
  return t > 30 ? f.toLocaleString() : t > 0 ? `${t} ${t === 1 ? "день" : "дня"} назад` : s > 0 ? `${s} ${s === 1 ? "час" : "часа"} назад` : A > 0 ? `${A} ${A === 1 ? "минута" : "минуты"} назад` : a > 0 ? `${a} ${a === 1 ? "секунда" : "секунды"} назад` : "Только что";
15396
15488
  }
15397
- const bo = (e) => {
15489
+ const No = (e) => {
15398
15490
  const f = [];
15399
15491
  let n = null;
15400
15492
  for (let a = 0; a < e.length; a++) {
@@ -15408,7 +15500,7 @@ const bo = (e) => {
15408
15500
  }), n = s), f.push(A);
15409
15501
  }
15410
15502
  return f;
15411
- }, yo = async () => {
15503
+ }, ko = async () => {
15412
15504
  try {
15413
15505
  if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
15414
15506
  const f = new Audio();
@@ -15417,37 +15509,37 @@ const bo = (e) => {
15417
15509
  } catch {
15418
15510
  console.log("no audio permissions");
15419
15511
  }
15420
- }, vo = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0);
15512
+ }, jo = (e) => e.sort((f, n) => Number(f.timestamp) < Number(n.timestamp) ? -1 : Number(f.timestamp) > Number(n.timestamp) ? 1 : 0);
15421
15513
  export {
15422
15514
  Va as A,
15423
- lo as B,
15424
- eo as C,
15515
+ bo as B,
15516
+ io as C,
15425
15517
  za as D,
15426
- mo as E,
15427
- Zn as F,
15518
+ Io as E,
15519
+ $n as F,
15428
15520
  oa as I,
15429
- so as S,
15521
+ go as S,
15430
15522
  ha as T,
15431
- Ao as U,
15432
- N as _,
15433
- fo as a,
15434
- no as b,
15435
- ao as c,
15436
- Xs as d,
15437
- to as e,
15438
- io as f,
15523
+ lo as U,
15524
+ k as _,
15525
+ oo as a,
15526
+ uo as b,
15527
+ ro as c,
15528
+ si as d,
15529
+ co as e,
15530
+ mo as f,
15439
15531
  O1 as g,
15440
15532
  sf as h,
15441
15533
  X1 as i,
15442
- oo as j,
15443
- ro as k,
15444
- co as l,
15445
- go as m,
15446
- po as n,
15447
- Mo as o,
15448
- ho as p,
15449
- bo as q,
15450
- yo as r,
15451
- vo as s,
15452
- uo as u
15534
+ po as j,
15535
+ ho as k,
15536
+ yo as l,
15537
+ vo as m,
15538
+ _o as n,
15539
+ wo as o,
15540
+ Do as p,
15541
+ No as q,
15542
+ ko as r,
15543
+ jo as s,
15544
+ Mo as u
15453
15545
  };