@mobilon-dev/chotto 0.0.54 → 0.0.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { openBlock as c, createElementBlock as d, createElementVNode as o, toDisplayString as w, createCommentVNode as b, renderSlot as G, ref as I, inject as ke, watch as Oe, nextTick as vt, unref as j, withDirectives as we, withKeys as Ma, vModelText as xt, normalizeClass as x, createVNode as L, Transition as q, withCtx as H, createBlock as F, Fragment as $, renderList as Z, defineComponent as K, onUpdated as ya, resolveDynamicComponent as ba, normalizeStyle as P, useId as St, onMounted as Ne, onUnmounted as zt, computed as U, Teleport as Ot, toRef as va, vModelRadio as Ia, getCurrentInstance as _a, toRaw as Cn, onBeforeUnmount as wa, provide as Ct, reactive as ka, readonly as Na, vShow as Df, resolveComponent as If, h as un, defineAsyncComponent as Da, createApp as ja } from "vue";
1
+ import { openBlock as c, createElementBlock as d, createElementVNode as r, toDisplayString as w, createCommentVNode as b, renderSlot as G, ref as I, inject as be, watch as Oe, nextTick as vt, unref as D, withDirectives as Ne, withKeys as Ma, vModelText as xt, normalizeClass as x, createVNode as L, Transition as H, withCtx as F, createBlock as P, Fragment as $, renderList as Z, defineComponent as K, onUpdated as ya, resolveDynamicComponent as ba, normalizeStyle as q, useId as St, onMounted as pe, onUnmounted as zt, computed as U, Teleport as Ot, toRef as va, vModelRadio as Ia, getCurrentInstance as _a, toRaw as Cn, onBeforeUnmount as wa, provide as Ct, reactive as ka, readonly as Na, vShow as Df, resolveComponent as If, h as un, defineAsyncComponent as Da, createApp as ja } from "vue";
2
2
  const z = (e, f) => {
3
3
  const t = e.__vccOpts || e;
4
4
  for (const [n, a] of f)
@@ -25,7 +25,7 @@ const z = (e, f) => {
25
25
  setup(e, { emit: f }) {
26
26
  const t = e;
27
27
  return (n, a) => e.chat ? (c(), d("div", Ea, [
28
- o("div", Ta, [
28
+ r("div", Ta, [
29
29
  t.chat.avatar ? (c(), d("img", {
30
30
  key: 0,
31
31
  src: t.chat.avatar,
@@ -33,50 +33,50 @@ const z = (e, f) => {
33
33
  height: "48"
34
34
  }, null, 8, Va)) : (c(), d("span", xa))
35
35
  ]),
36
- o("div", Sa, [
37
- o("h2", za, w(e.chat.name), 1),
36
+ r("div", Sa, [
37
+ r("h2", za, w(e.chat.name), 1),
38
38
  e.chat["lastActivity.time"] ? (c(), d("p", Oa, w(e.chat["lastActivity.time"]), 1)) : b("", !0)
39
39
  ]),
40
- o("div", Ca, [
40
+ r("div", Ca, [
41
41
  G(n.$slots, "actions", {}, void 0, !0)
42
42
  ])
43
43
  ])) : b("", !0);
44
44
  }
45
- }, pu = /* @__PURE__ */ z(La, [["__scopeId", "data-v-e1d212c7"]]), he = I([]), At = (e) => {
45
+ }, gu = /* @__PURE__ */ z(La, [["__scopeId", "data-v-e1d212c7"]]), Me = I([]), At = (e) => {
46
46
  const f = I(0);
47
- let t = he.value.find(({ id: l }) => l == e);
48
- t != null ? f.value = he.value.indexOf(t) : (he.value.push({
47
+ let t = Me.value.find(({ id: o }) => o == e);
48
+ t != null ? f.value = Me.value.indexOf(t) : (Me.value.push({
49
49
  id: e,
50
50
  text: "",
51
51
  file: void 0
52
- }), f.value = he.value.length - 1);
52
+ }), f.value = Me.value.length - 1);
53
53
  const n = () => {
54
- he.value[f.value] = {
54
+ Me.value[f.value] = {
55
55
  id: i().id,
56
56
  text: "",
57
57
  file: void 0
58
58
  };
59
- }, a = (l) => {
60
- he.value[f.value] = {
59
+ }, a = (o) => {
60
+ Me.value[f.value] = {
61
61
  id: i().id,
62
- text: l,
62
+ text: o,
63
63
  file: i().file
64
64
  };
65
- }, A = (l) => {
66
- he.value[f.value] = {
65
+ }, A = (o) => {
66
+ Me.value[f.value] = {
67
67
  id: i().id,
68
68
  text: i().text,
69
- file: l
69
+ file: o
70
70
  };
71
71
  }, s = () => {
72
- he.value[f.value] = {
72
+ Me.value[f.value] = {
73
73
  id: i().id,
74
74
  text: i().text,
75
75
  file: void 0
76
76
  };
77
77
  };
78
78
  function i() {
79
- return he.value[f.value];
79
+ return Me.value[f.value];
80
80
  }
81
81
  return { getMessage: i, resetMessage: n, setMessageFile: A, resetMessageFile: s, setMessageText: a };
82
82
  }, Ua = {
@@ -129,7 +129,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
129
129
  },
130
130
  emits: ["send", "typing", "selectChannel"],
131
131
  setup(e, { emit: f }) {
132
- const t = f, n = ke("chatAppId"), { resetMessage: a, getMessage: A, setMessageText: s } = At(n), i = I(null);
132
+ const t = f, n = be("chatAppId"), { resetMessage: a, getMessage: A, setMessageText: s } = At(n), i = I(null);
133
133
  Oe(
134
134
  () => A().text,
135
135
  () => {
@@ -138,9 +138,9 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
138
138
  });
139
139
  }
140
140
  );
141
- const l = (u) => {
141
+ const o = (u) => {
142
142
  t("typing", u.target.value);
143
- }, r = (u) => {
143
+ }, l = (u) => {
144
144
  if (u.ctrlKey) {
145
145
  let m = u.target.selectionStart;
146
146
  u.target.setRangeText(`
@@ -158,41 +158,41 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
158
158
  filename: null,
159
159
  size: null
160
160
  };
161
- u.value.file ? (p.type = "message." + u.value.file.type, p.url = u.value.file.url, p.filename = u.value.file.name, p.size = u.value.file.size, p.text = (m = u == null ? void 0 : u.value) == null ? void 0 : m.text.trim()) : (p.type = "message.text", p.text = u.value.text.trim()), t("send", p), a(), j(i).focus();
161
+ u.value.file ? (p.type = "message." + u.value.file.type, p.url = u.value.file.url, p.filename = u.value.file.name, p.size = u.value.file.size, p.text = (m = u == null ? void 0 : u.value) == null ? void 0 : m.text.trim()) : (p.type = "message.text", p.text = u.value.text.trim()), t("send", p), a(), D(i).focus();
162
162
  }
163
163
  };
164
164
  return (u, m) => (c(), d("div", Ya, [
165
- o("div", qa, [
166
- o("div", {
167
- id: "chat-input-first-line-" + j(n),
165
+ r("div", qa, [
166
+ r("div", {
167
+ id: "chat-input-first-line-" + D(n),
168
168
  class: "chat-input__first-line"
169
169
  }, null, 8, Ha),
170
- o("div", Fa, [
171
- we(o("textarea", {
170
+ r("div", Fa, [
171
+ Ne(r("textarea", {
172
172
  ref_key: "refInput",
173
173
  ref: i,
174
- "onUpdate:modelValue": m[0] || (m[0] = (p) => j(A)().text = p),
174
+ "onUpdate:modelValue": m[0] || (m[0] = (p) => D(A)().text = p),
175
175
  class: "chat-input__input",
176
- placeholder: j(Se)("component.ChatInput.InputPlaceholder"),
177
- onKeydown: Ma(r, ["enter"]),
178
- onInput: l
176
+ placeholder: D(Se)("component.ChatInput.InputPlaceholder"),
177
+ onKeydown: Ma(l, ["enter"]),
178
+ onInput: o
179
179
  }, null, 40, Pa), [
180
- [xt, j(A)().text]
180
+ [xt, D(A)().text]
181
181
  ]),
182
- o("button", {
183
- class: x(["chat-input__button-send", { "chat-input__button-send-disabled": j(A)().text == "" && !j(A)().file }]),
182
+ r("button", {
183
+ class: x(["chat-input__button-send", { "chat-input__button-send-disabled": D(A)().text == "" && !D(A)().file }]),
184
184
  onClick: g
185
185
  }, m[1] || (m[1] = [
186
- o("span", { class: "pi pi-send" }, null, -1)
186
+ r("span", { class: "pi pi-send" }, null, -1)
187
187
  ]), 2)
188
188
  ]),
189
- o("div", $a, [
189
+ r("div", $a, [
190
190
  G(u.$slots, "buttons", {}, void 0, !0)
191
191
  ])
192
192
  ])
193
193
  ]));
194
194
  }
195
- }, hu = /* @__PURE__ */ z(Wa, [["__scopeId", "data-v-23fafc19"]]), Ka = { class: "chat-list" }, Ja = { class: "chat-list__title" }, Ga = {
195
+ }, mu = /* @__PURE__ */ z(Wa, [["__scopeId", "data-v-23fafc19"]]), Ka = { class: "chat-list" }, Ja = { class: "chat-list__title" }, Ga = {
196
196
  key: 0,
197
197
  class: "pi pi-minus"
198
198
  }, Za = {
@@ -223,7 +223,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
223
223
  A.chats.forEach((p) => p.isSelected = !1);
224
224
  const m = A.chats.find((p) => p.chatId === u.chatId);
225
225
  m.isSelected = !0, s("select", u);
226
- }, l = () => A.chats.toSorted((u, m) => {
226
+ }, o = () => A.chats.toSorted((u, m) => {
227
227
  if (Number(u["lastActivity.timestamp"]) > Number(m["lastActivity.timestamp"])) return -1;
228
228
  if (Number(u["lastActivity.timestamp"]) < Number(m["lastActivity.timestamp"])) return 1;
229
229
  if (Number(u["lastActivity.timestamp"]) == Number(m["lastActivity.timestamp"])) return 0;
@@ -231,15 +231,15 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
231
231
  if (u.countUnread > m.countUnread) return -1;
232
232
  if (u.countUnread < m.countUnread) return 1;
233
233
  if (u.countUnread == m.countUnread) return 0;
234
- }).filter((u) => u.name.includes(t.value) || u.metadata.includes(t.value)), r = (u) => {
234
+ }).filter((u) => u.name.includes(t.value) || u.metadata.includes(t.value)), l = (u) => {
235
235
  t.value = u;
236
236
  }, g = (u) => s("action", u);
237
237
  return (u, m) => (c(), d("div", Ka, [
238
- o("div", {
238
+ r("div", {
239
239
  class: "chat-list__title-container",
240
240
  onMouseleave: a
241
241
  }, [
242
- o("h2", Ja, w(j(Se)("component.ChatList.Title")), 1),
242
+ r("h2", Ja, w(D(Se)("component.ChatList.Title")), 1),
243
243
  e.actions.length ? (c(), d("button", {
244
244
  key: 0,
245
245
  class: "chat-list__button-actions",
@@ -247,9 +247,9 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
247
247
  }, [
248
248
  n.value ? (c(), d("span", Ga)) : (c(), d("span", Za))
249
249
  ])) : b("", !0),
250
- L(q, null, {
251
- default: H(() => [
252
- n.value && e.actions ? (c(), F(j(je), {
250
+ L(H, null, {
251
+ default: F(() => [
252
+ n.value && e.actions ? (c(), P(D(je), {
253
253
  key: 0,
254
254
  actions: e.actions,
255
255
  class: "chat-list__context-menu",
@@ -259,14 +259,14 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
259
259
  _: 1
260
260
  })
261
261
  ], 32),
262
- e.filterEnabled ? (c(), F(j(_s), {
262
+ e.filterEnabled ? (c(), P(D(_s), {
263
263
  key: 0,
264
264
  class: "chat-list__filter",
265
- onUpdate: r
265
+ onUpdate: l
266
266
  })) : b("", !0),
267
- o("div", Xa, [
268
- o("div", eA, [
269
- (c(!0), d($, null, Z(l().filter((p) => p.isFixedTop), (p) => (c(), F(j(dt), {
267
+ r("div", Xa, [
268
+ r("div", eA, [
269
+ (c(!0), d($, null, Z(o().filter((p) => p.isFixedTop), (p) => (c(), P(D(dt), {
270
270
  key: p.chatId,
271
271
  class: "chat-list__item",
272
272
  chat: p,
@@ -274,8 +274,8 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
274
274
  onAction: g
275
275
  }, null, 8, ["chat"]))), 128))
276
276
  ]),
277
- o("div", fA, [
278
- (c(!0), d($, null, Z(l().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (c(), F(j(dt), {
277
+ r("div", fA, [
278
+ (c(!0), d($, null, Z(o().filter((p) => !p.isFixedBottom && !p.isFixedTop), (p) => (c(), P(D(dt), {
279
279
  key: p.chatId,
280
280
  class: "chat-list__item",
281
281
  chat: p,
@@ -283,8 +283,8 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
283
283
  onAction: g
284
284
  }, null, 8, ["chat"]))), 128))
285
285
  ]),
286
- o("div", tA, [
287
- (c(!0), d($, null, Z(l().filter((p) => p.isFixedBottom), (p) => (c(), F(j(dt), {
286
+ r("div", tA, [
287
+ (c(!0), d($, null, Z(o().filter((p) => p.isFixedBottom), (p) => (c(), P(D(dt), {
288
288
  key: p.chatId,
289
289
  class: "chat-list__item",
290
290
  chat: p,
@@ -295,7 +295,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
295
295
  ])
296
296
  ]));
297
297
  }
298
- }, Mu = /* @__PURE__ */ z(nA, [["__scopeId", "data-v-05a7f886"]]), aA = { class: "message-feed__container" }, AA = {
298
+ }, pu = /* @__PURE__ */ z(nA, [["__scopeId", "data-v-05a7f886"]]), aA = { class: "message-feed__container" }, AA = {
299
299
  key: 0,
300
300
  class: "message-feed__unread-amount"
301
301
  }, sA = /* @__PURE__ */ K({
@@ -324,7 +324,7 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
324
324
  emits: ["messageAction", "loadMore"],
325
325
  setup(e, { emit: f }) {
326
326
  const t = I(), n = I(!1), a = e, A = f, s = () => {
327
- const u = j(t);
327
+ const u = D(t);
328
328
  u.scrollHeight - u.scrollTop - u.clientHeight < 100 ? n.value = !1 : n.value = !0, u.scrollTop === 0 && A("loadMore");
329
329
  }, i = (u) => ({
330
330
  "message.text": Ol,
@@ -337,19 +337,19 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
337
337
  "system.date": Xl,
338
338
  "message.typing": On
339
339
  })[u];
340
- function l() {
340
+ function o() {
341
341
  a.isScrollToBottomOnUpdateObjectsEnabled && vt(function() {
342
- const u = j(t);
342
+ const u = D(t);
343
343
  u.scrollTop = u.scrollHeight;
344
344
  });
345
345
  }
346
- function r() {
346
+ function l() {
347
347
  vt(function() {
348
- const u = j(t);
348
+ const u = D(t);
349
349
  u.scrollTop = u.scrollHeight;
350
350
  });
351
351
  }
352
- ya(() => l), Oe(() => a.objects, l);
352
+ ya(() => o), Oe(() => a.objects, o);
353
353
  const g = (u) => {
354
354
  A("messageAction", u);
355
355
  };
@@ -359,37 +359,37 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
359
359
  class: "message-feed",
360
360
  onScroll: s
361
361
  }, [
362
- o("div", aA, [
363
- (c(!0), d($, null, Z(e.objects, (p) => (c(), F(ba(i(p.type)), {
362
+ r("div", aA, [
363
+ (c(!0), d($, null, Z(e.objects, (p) => (c(), P(ba(i(p.type)), {
364
364
  key: p.messageId,
365
365
  class: "message-feed__message",
366
366
  message: p,
367
367
  onAction: g
368
368
  }, null, 40, ["message"]))), 128))
369
369
  ]),
370
- e.typing ? (c(), F(j(On), {
370
+ e.typing ? (c(), P(D(On), {
371
371
  key: 0,
372
372
  message: {
373
373
  subText: e.typing.title,
374
374
  avatar: e.typing.avatar
375
375
  }
376
376
  }, null, 8, ["message"])) : b("", !0),
377
- L(q, null, {
378
- default: H(() => [
377
+ L(H, null, {
378
+ default: F(() => [
379
379
  n.value ? (c(), d("button", {
380
380
  key: 0,
381
381
  class: "message-feed__button-down",
382
- onClick: r
382
+ onClick: l
383
383
  }, [
384
384
  e.buttonParams ? (c(), d("div", AA, w(e.buttonParams.unreadAmount), 1)) : b("", !0),
385
- m[0] || (m[0] = o("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
385
+ m[0] || (m[0] = r("span", { class: "pi pi-angle-down message-feed__icon-down" }, null, -1))
386
386
  ])) : b("", !0)
387
387
  ]),
388
388
  _: 1
389
389
  })
390
390
  ], 544));
391
391
  }
392
- }), yu = /* @__PURE__ */ z(sA, [["__scopeId", "data-v-4172cced"]]), iA = { class: "profile" }, oA = {
392
+ }), hu = /* @__PURE__ */ z(sA, [["__scopeId", "data-v-4172cced"]]), iA = { class: "profile" }, oA = {
393
393
  key: 0,
394
394
  class: "profile__container"
395
395
  }, lA = {
@@ -407,23 +407,23 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
407
407
  return (f, t) => (c(), d("div", iA, [
408
408
  e.user ? (c(), d("div", oA, [
409
409
  e.user.avatar ? (c(), d("div", lA, [
410
- o("span", {
410
+ r("span", {
411
411
  class: "profile__status",
412
- style: P({ backgroundColor: e.user.status })
412
+ style: q({ backgroundColor: e.user.status })
413
413
  }, null, 4),
414
- o("img", {
414
+ r("img", {
415
415
  src: e.user.avatar,
416
416
  height: "48",
417
417
  width: "48"
418
418
  }, null, 8, rA)
419
419
  ])) : b("", !0),
420
- o("h2", uA, w(e.user.name), 1),
421
- o("p", cA, w(e.user.email), 1),
422
- o("p", dA, w(e.user.phone), 1)
420
+ r("h2", uA, w(e.user.name), 1),
421
+ r("p", cA, w(e.user.email), 1),
422
+ r("p", dA, w(e.user.phone), 1)
423
423
  ])) : b("", !0)
424
424
  ]));
425
425
  }
426
- }, bu = /* @__PURE__ */ z(gA, [["__scopeId", "data-v-04a5ab7d"]]), mA = ["id"], pA = {
426
+ }, Mu = /* @__PURE__ */ z(gA, [["__scopeId", "data-v-04a5ab7d"]]), mA = ["id"], pA = {
427
427
  __name: "ButtonContextMenu",
428
428
  props: {
429
429
  actions: {
@@ -460,16 +460,16 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
460
460
  setup(e, { emit: f }) {
461
461
  const t = e, n = St(), a = f, A = I(null), s = I(null), i = (m) => {
462
462
  A.value.$el.style.display = "none", a("click", m);
463
- }, l = () => {
463
+ }, o = () => {
464
464
  t.disabled || (t.mode == "click" && (A.value.$el.style.display = "inherit"), a("buttonClick"));
465
- }, r = () => {
465
+ }, l = () => {
466
466
  t.mode == "hover" && !t.disabled && (A.value.$el.style.display = "inherit");
467
467
  }, g = () => {
468
468
  t.mode == "hover" && (A.value.$el.style.display = "none");
469
469
  }, u = (m) => {
470
470
  t.mode == "click" && s.value && !s.value.contains(m.target) && (A.value.$el.style.display = "none");
471
471
  };
472
- return Ne(() => {
472
+ return pe(() => {
473
473
  const m = {
474
474
  top: {
475
475
  h: -1,
@@ -493,41 +493,41 @@ const Ya = { class: "chat-input" }, qa = { class: "chat-input__container" }, Ha
493
493
  }), zt(() => {
494
494
  document.removeEventListener("click", u);
495
495
  }), (m, p) => (c(), d("div", {
496
- id: "container-" + j(n),
496
+ id: "container-" + D(n),
497
497
  ref_key: "actionScope",
498
498
  ref: s,
499
499
  style: { position: "relative", width: "fit-content" }
500
500
  }, [
501
- o("div", {
501
+ r("div", {
502
502
  class: x(["button", {
503
503
  "disabled-button": e.disabled
504
504
  }]),
505
- onClick: l,
506
- onMouseover: r,
505
+ onClick: o,
506
+ onMouseover: l,
507
507
  onMouseout: g
508
508
  }, [
509
- o("span", {
509
+ r("span", {
510
510
  class: x(e.buttonClass)
511
511
  }, w(e.buttonTitle), 3)
512
512
  ], 34),
513
- L(j(je), {
514
- id: "context-menu-" + j(n),
513
+ L(D(je), {
514
+ id: "context-menu-" + D(n),
515
515
  ref_key: "contextMenu",
516
516
  ref: A,
517
517
  actions: e.actions,
518
- onMouseover: r,
518
+ onMouseover: l,
519
519
  onMouseout: g,
520
520
  onClick: i
521
521
  }, null, 8, ["id", "actions"])
522
522
  ], 8, mA));
523
523
  }
524
524
  }, Un = /* @__PURE__ */ z(pA, [["__scopeId", "data-v-febe2c45"]]);
525
- function vu(e) {
525
+ function yu(e) {
526
526
  if (!e || e === "") return;
527
527
  const f = +new Date(Number(e) * 1e3), t = +/* @__PURE__ */ new Date(), n = Math.floor((t - f) / 1e3), a = Math.floor(n / 60), A = Math.floor(a / 60), s = Math.floor(A / 24);
528
528
  return s > 30 ? new Date(f).toLocaleDateString("ru-RU") : s > 0 ? `${s} ${s === 1 ? "день" : "дня"} назад` : A > 0 ? `${A} ${A === 1 ? "час" : "часа"} назад` : a > 0 ? `${a} ${a === 1 ? "минута" : "минуты"} назад` : n > 0 ? `${n} ${n === 1 ? "секунда" : "секунды"} назад` : "Только что";
529
529
  }
530
- const Iu = (e) => {
530
+ const bu = (e) => {
531
531
  const f = [];
532
532
  let t = null;
533
533
  for (let n = 0; n < e.length; n++) {
@@ -541,7 +541,7 @@ const Iu = (e) => {
541
541
  }), t = A), f.push(a);
542
542
  }
543
543
  return f;
544
- }, _u = async () => {
544
+ }, vu = async () => {
545
545
  try {
546
546
  if (await navigator.mediaDevices.getUserMedia({ audio: !0 })) {
547
547
  const f = new Audio();
@@ -550,7 +550,7 @@ const Iu = (e) => {
550
550
  } catch {
551
551
  console.log("no audio permissions");
552
552
  }
553
- }, wu = (e) => e.sort((f, t) => Number(f.timestamp) < Number(t.timestamp) ? -1 : Number(f.timestamp) > Number(t.timestamp) ? 1 : 0), dn = (e) => {
553
+ }, Iu = (e) => e.sort((f, t) => Number(f.timestamp) < Number(t.timestamp) ? -1 : Number(f.timestamp) > Number(t.timestamp) ? 1 : 0), dn = (e) => {
554
554
  let f = "file";
555
555
  return e.startsWith("image/") ? f = "image" : e.startsWith("video/") ? f = "video" : e.startsWith("audio/") && (f = "audio"), f;
556
556
  }, Pe = ["read", "received", "sent"], $e = (e) => {
@@ -597,36 +597,36 @@ const Iu = (e) => {
597
597
  n("reset");
598
598
  }
599
599
  return (A, s) => (c(), d("div", hA, [
600
- o("div", MA, [
600
+ r("div", MA, [
601
601
  t.isImage ? (c(), d("div", yA, [
602
- o("img", {
602
+ r("img", {
603
603
  src: e.previewUrl,
604
604
  alt: "Image Preview",
605
605
  class: "preview__image"
606
606
  }, null, 8, bA)
607
607
  ])) : t.isVideo ? (c(), d("div", vA, [
608
- o("video", {
608
+ r("video", {
609
609
  src: e.previewUrl,
610
610
  class: "preview__video"
611
611
  }, null, 8, IA)
612
612
  ])) : t.isAudio ? (c(), d("div", _A, s[0] || (s[0] = [
613
- o("span", {
613
+ r("span", {
614
614
  class: "pi pi-headphones",
615
615
  style: { "font-size": "2.5rem" }
616
616
  }, null, -1)
617
617
  ]))) : (c(), d("div", wA, s[1] || (s[1] = [
618
- o("span", {
618
+ r("span", {
619
619
  class: "pi pi-file",
620
620
  style: { "font-size": "2.5rem" }
621
621
  }, null, -1)
622
622
  ])))
623
623
  ]),
624
- o("div", kA, [
625
- o("div", NA, [
626
- o("span", DA, w(e.fileName), 1),
627
- o("span", jA, w(e.fileSize), 1)
624
+ r("div", kA, [
625
+ r("div", NA, [
626
+ r("span", DA, w(e.fileName), 1),
627
+ r("span", jA, w(e.fileSize), 1)
628
628
  ]),
629
- o("span", {
629
+ r("span", {
630
630
  class: "pi pi-times preview__reset",
631
631
  style: { "font-size": "1rem" },
632
632
  onClick: a
@@ -647,7 +647,7 @@ const Iu = (e) => {
647
647
  },
648
648
  emits: ["fileUploaded"],
649
649
  setup(e, { emit: f }) {
650
- const t = e, n = I(null), a = I(""), A = I(""), s = I(!1), i = I(!1), l = I(!1), r = I(null), g = I(""), u = ke("chatAppId"), { setMessageFile: m, resetMessageFile: p, getMessage: h } = At(u), M = [
650
+ const t = e, n = I(null), a = I(""), A = I(""), s = I(!1), i = I(!1), o = I(!1), l = I(null), g = I(""), u = be("chatAppId"), { setMessageFile: m, resetMessageFile: p, getMessage: h } = At(u), M = [
651
651
  {
652
652
  action: "audio/*",
653
653
  title: "Аудио",
@@ -671,10 +671,10 @@ const Iu = (e) => {
671
671
  ], y = U(() => !h().file), _ = () => {
672
672
  n.value = null, p(), A.value = "", a.value = "";
673
673
  }, k = (T) => {
674
- _(), console.log("onFileSelected", T.target.files[0]), n.value = T.target.files[0], n.value && (D(), N());
675
- }, D = () => {
674
+ _(), console.log("onFileSelected", T.target.files[0]), n.value = T.target.files[0], n.value && (j(), N());
675
+ }, j = () => {
676
676
  const T = n.value, O = dn(T.type);
677
- if (s.value = !1, i.value = !1, l.value = !1, O === "image" ? s.value = !0 : O === "video" ? i.value = !0 : O === "audio" && (l.value = !0), s.value || i.value) {
677
+ if (s.value = !1, i.value = !1, o.value = !1, O === "image" ? s.value = !0 : O === "video" ? i.value = !0 : O === "audio" && (o.value = !0), s.value || i.value) {
678
678
  const R = new FileReader();
679
679
  R.onload = (te) => {
680
680
  A.value = te.target.result;
@@ -709,17 +709,17 @@ const Iu = (e) => {
709
709
  console.error("Ошибка при загрузке файла:", C), a.value = "error";
710
710
  }
711
711
  }, E = (T) => {
712
- r.value && y && (r.value.accept = T.action, r.value.click());
712
+ l.value && y && (l.value.accept = T.action, l.value.click());
713
713
  }, S = () => {
714
- r.value && y && t.state == "active" && r.value.click();
714
+ l.value && y && t.state == "active" && l.value.click();
715
715
  };
716
716
  return (T, O) => (c(), d($, null, [
717
- o("div", VA, [
717
+ r("div", VA, [
718
718
  a.value === "uploading" ? (c(), d("div", xA, O[0] || (O[0] = [
719
- o("p", null, "Загрузка файла...", -1)
719
+ r("p", null, "Загрузка файла...", -1)
720
720
  ]))) : a.value === "error" ? (c(), d("div", SA, O[1] || (O[1] = [
721
- o("p", null, "Ошибка при загрузке файла.", -1)
722
- ]))) : (c(), F(Un, {
721
+ r("p", null, "Ошибка при загрузке файла.", -1)
722
+ ]))) : (c(), P(Un, {
723
723
  key: 2,
724
724
  actions: M,
725
725
  mode: "hover",
@@ -729,31 +729,31 @@ const Iu = (e) => {
729
729
  onClick: E,
730
730
  onButtonClick: S
731
731
  }, null, 8, ["disabled"])),
732
- o("input", {
732
+ r("input", {
733
733
  ref_key: "fileInput",
734
- ref: r,
734
+ ref: l,
735
735
  style: { display: "none" },
736
736
  type: "file",
737
737
  onChange: k
738
738
  }, null, 544)
739
739
  ]),
740
- j(h)().file ? (c(), F(Ot, {
740
+ D(h)().file ? (c(), P(Ot, {
741
741
  key: 0,
742
- to: "#chat-input-first-line-" + j(u)
742
+ to: "#chat-input-first-line-" + D(u)
743
743
  }, [
744
744
  L(TA, {
745
745
  "preview-url": A.value,
746
746
  "is-image": s.value,
747
747
  "is-video": i.value,
748
- "is-audio": l.value,
749
- "file-name": j(h)().file.name,
748
+ "is-audio": o.value,
749
+ "file-name": D(h)().file.name,
750
750
  "file-size": g.value,
751
751
  onReset: _
752
752
  }, null, 8, ["preview-url", "is-image", "is-video", "is-audio", "file-name", "file-size"])
753
753
  ], 8, ["to"])) : b("", !0)
754
754
  ], 64));
755
755
  }
756
- }, ku = /* @__PURE__ */ z(zA, [["__scopeId", "data-v-1cdabe09"]]), OA = { key: 0 }, CA = ["value", "selected"], LA = {
756
+ }, _u = /* @__PURE__ */ z(zA, [["__scopeId", "data-v-1cdabe09"]]), OA = { key: 0 }, CA = ["value", "selected"], LA = {
757
757
  __name: "ThemeMode",
758
758
  props: {
759
759
  themes: {
@@ -763,31 +763,31 @@ const Iu = (e) => {
763
763
  show: Boolean
764
764
  },
765
765
  setup(e) {
766
- const f = e, t = () => {
767
- const A = f.themes.find((s) => s.default === !0);
768
- return A ? A.code : f.themes[0].code;
769
- }, n = (A) => {
770
- const s = A.target.value;
771
- a(s);
772
- }, a = (A) => {
773
- document.documentElement.dataset.theme = A;
766
+ const f = e, t = be("chatAppId"), n = () => {
767
+ const s = f.themes.find((i) => i.default === !0);
768
+ return s ? s.code : f.themes[0].code;
769
+ }, a = (s) => {
770
+ const i = s.target.value;
771
+ A(i);
772
+ }, A = (s) => {
773
+ document.getElementById(t).dataset.theme = s;
774
774
  };
775
- return Ne(() => {
776
- const A = t();
777
- a(A);
778
- }), (A, s) => e.show ? (c(), d("div", OA, [
779
- o("select", {
780
- onChange: s[0] || (s[0] = (i) => n(i))
775
+ return pe(() => {
776
+ const s = n();
777
+ A(s);
778
+ }), (s, i) => e.show ? (c(), d("div", OA, [
779
+ r("select", {
780
+ onChange: i[0] || (i[0] = (o) => a(o))
781
781
  }, [
782
- (c(!0), d($, null, Z(f.themes, (i, l) => (c(), d("option", {
782
+ (c(!0), d($, null, Z(f.themes, (o, l) => (c(), d("option", {
783
783
  key: l,
784
- value: i.code,
785
- selected: i.default === !0
786
- }, w(i.name), 9, CA))), 128))
784
+ value: o.code,
785
+ selected: o.default === !0
786
+ }, w(o.name), 9, CA))), 128))
787
787
  ], 32)
788
788
  ])) : b("", !0);
789
789
  }
790
- }, Nu = /* @__PURE__ */ z(LA, [["__scopeId", "data-v-be17a762"]]), UA = { class: "sidebar" }, BA = { class: "sidebar__container" }, QA = { class: "sidebar__list" }, RA = ["onClick"], YA = ["src", "alt"], qA = { key: 1 }, HA = { class: "sidebar__list-fixed" }, FA = ["onClick"], PA = ["src", "alt"], $A = { key: 1 }, WA = {
790
+ }, wu = /* @__PURE__ */ z(LA, [["__scopeId", "data-v-a950b8eb"]]), UA = { class: "sidebar" }, BA = { class: "sidebar__container" }, QA = { class: "sidebar__list" }, RA = ["onClick"], YA = ["src", "alt"], qA = { key: 1 }, HA = { class: "sidebar__list-fixed" }, FA = ["onClick"], PA = ["src", "alt"], $A = { key: 1 }, WA = {
791
791
  __name: "SideBar",
792
792
  props: {
793
793
  sidebarItems: {
@@ -799,54 +799,54 @@ const Iu = (e) => {
799
799
  emits: ["selectItem"],
800
800
  setup(e, { emit: f }) {
801
801
  const n = va(e, "sidebarItems"), a = f, A = (i) => {
802
- const l = n.value.find((r) => r.itemId === i);
803
- a("selectItem", l);
802
+ const o = n.value.find((l) => l.itemId === i);
803
+ a("selectItem", o);
804
804
  }, s = (i) => {
805
- const l = i.split(" ");
806
- return l.length > 2 ? l.slice(0, 2).join(" ") : i;
805
+ const o = i.split(" ");
806
+ return o.length > 2 ? o.slice(0, 2).join(" ") : i;
807
807
  };
808
- return (i, l) => (c(), d("div", UA, [
809
- o("div", BA, [
810
- o("ul", QA, [
811
- (c(!0), d($, null, Z(n.value.filter((r) => !r.isFixedBottom), (r, g) => (c(), d("li", {
808
+ return (i, o) => (c(), d("div", UA, [
809
+ r("div", BA, [
810
+ r("ul", QA, [
811
+ (c(!0), d($, null, Z(n.value.filter((l) => !l.isFixedBottom), (l, g) => (c(), d("li", {
812
812
  key: g,
813
813
  class: "sidebar__item",
814
- onClick: (u) => A(r.itemId)
814
+ onClick: (u) => A(l.itemId)
815
815
  }, [
816
- o("img", {
817
- src: r.icon,
818
- alt: r.name,
819
- class: x(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
816
+ r("img", {
817
+ src: l.icon,
818
+ alt: l.name,
819
+ class: x(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
820
820
  }, null, 10, YA),
821
- r.notificationCount ? (c(), d("span", {
821
+ l.notificationCount ? (c(), d("span", {
822
822
  key: 0,
823
- style: P({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
824
- }, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : b("", !0),
825
- r.name ? (c(), d("p", qA, w(s(r.name)), 1)) : b("", !0)
823
+ style: q({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
824
+ }, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
825
+ l.name ? (c(), d("p", qA, w(s(l.name)), 1)) : b("", !0)
826
826
  ], 8, RA))), 128))
827
827
  ]),
828
- o("ul", HA, [
829
- (c(!0), d($, null, Z(n.value.filter((r) => r.isFixedBottom), (r, g) => (c(), d("li", {
828
+ r("ul", HA, [
829
+ (c(!0), d($, null, Z(n.value.filter((l) => l.isFixedBottom), (l, g) => (c(), d("li", {
830
830
  key: g,
831
831
  class: "sidebar__item",
832
- onClick: (u) => A(r.itemId)
832
+ onClick: (u) => A(l.itemId)
833
833
  }, [
834
- o("img", {
835
- src: r.icon,
836
- alt: r.name,
837
- class: x(["sidebar__image", { "sidebar__image--active": r.selected === !0 }])
834
+ r("img", {
835
+ src: l.icon,
836
+ alt: l.name,
837
+ class: x(["sidebar__image", { "sidebar__image--active": l.selected === !0 }])
838
838
  }, null, 10, PA),
839
- r.notificationCount ? (c(), d("span", {
839
+ l.notificationCount ? (c(), d("span", {
840
840
  key: 0,
841
- style: P({ backgroundColor: r.notificationColor ? r.notificationColor : "red" })
842
- }, w(r.notificationCount > 99 ? "99+" : r.notificationCount), 5)) : b("", !0),
843
- r.name ? (c(), d("p", $A, w(s(r.name)), 1)) : b("", !0)
841
+ style: q({ backgroundColor: l.notificationColor ? l.notificationColor : "red" })
842
+ }, w(l.notificationCount > 99 ? "99+" : l.notificationCount), 5)) : b("", !0),
843
+ l.name ? (c(), d("p", $A, w(s(l.name)), 1)) : b("", !0)
844
844
  ], 8, FA))), 128))
845
845
  ])
846
846
  ])
847
847
  ]));
848
848
  }
849
- }, Du = /* @__PURE__ */ z(WA, [["__scopeId", "data-v-5e22516c"]]), KA = { class: "chat-panel" }, JA = { class: "chat-panel__title-container" }, GA = {
849
+ }, ku = /* @__PURE__ */ z(WA, [["__scopeId", "data-v-5e22516c"]]), KA = { class: "chat-panel" }, JA = { class: "chat-panel__title-container" }, GA = {
850
850
  key: 0,
851
851
  class: "chat-panel__title"
852
852
  }, ZA = {
@@ -861,21 +861,21 @@ const Iu = (e) => {
861
861
  emits: ["close-panel"],
862
862
  setup(e, { emit: f }) {
863
863
  return (t, n) => (c(), d("div", KA, [
864
- o("div", JA, [
864
+ r("div", JA, [
865
865
  e.title ? (c(), d("p", GA, w(e.title), 1)) : b("", !0),
866
- o("button", {
866
+ r("button", {
867
867
  class: "chat-panel__button-close",
868
868
  onClick: n[0] || (n[0] = (a) => t.$emit("close-panel"))
869
869
  }, n[1] || (n[1] = [
870
- o("span", { class: "pi pi-times" }, null, -1)
870
+ r("span", { class: "pi pi-times" }, null, -1)
871
871
  ]))
872
872
  ]),
873
- o("div", null, [
873
+ r("div", null, [
874
874
  G(t.$slots, "content", {}, void 0, !0)
875
875
  ])
876
876
  ]));
877
877
  }
878
- }, ju = /* @__PURE__ */ z(ZA, [["__scopeId", "data-v-1f6ac199"]]), XA = { class: "channels" }, es = {
878
+ }, Nu = /* @__PURE__ */ z(ZA, [["__scopeId", "data-v-1f6ac199"]]), XA = { class: "channels" }, es = {
879
879
  key: 0,
880
880
  class: "channels__selected"
881
881
  }, fs = {
@@ -907,17 +907,17 @@ const Iu = (e) => {
907
907
  const t = e, n = f, A = I(t.channels.find((i) => i.type === "default")), s = (i) => {
908
908
  A.value = i, n("selectChannel", A.value);
909
909
  };
910
- return (i, l) => (c(), d("div", XA, [
911
- o("div", {
910
+ return (i, o) => (c(), d("div", XA, [
911
+ r("div", {
912
912
  class: x(["channels__container", { "channels__container-disabled": e.state == "disabled" }])
913
913
  }, [
914
914
  A.value ? (c(), d("div", es, [
915
915
  A.value.icon ? (c(), d("span", fs, [
916
- o("img", {
916
+ r("img", {
917
917
  src: A.value.icon
918
918
  }, null, 8, ts)
919
919
  ])) : b("", !0),
920
- o("span", ns, w(A.value.title), 1)
920
+ r("span", ns, w(A.value.title), 1)
921
921
  ])) : (c(), d("span", as, "Канал не выбран")),
922
922
  L(Un, {
923
923
  actions: e.channels,
@@ -930,7 +930,7 @@ const Iu = (e) => {
930
930
  ], 2)
931
931
  ]));
932
932
  }
933
- }, Eu = /* @__PURE__ */ z(As, [["__scopeId", "data-v-018ec6fe"]]), ss = { class: "chat-item__avatar-container" }, is = ["src"], os = {
933
+ }, Du = /* @__PURE__ */ z(As, [["__scopeId", "data-v-018ec6fe"]]), ss = { class: "chat-item__avatar-container" }, is = ["src"], os = {
934
934
  key: 1,
935
935
  class: "pi pi-user"
936
936
  }, ls = { class: "chat-item__info-container" }, rs = { class: "chat-item__name" }, us = {
@@ -965,10 +965,10 @@ const Iu = (e) => {
965
965
  n("select", t.chat);
966
966
  }, A = () => t.chat.isSelected ? "chat-item__selected" : "chat-item", s = (y) => {
967
967
  g(), n("action", { chatId: t.chat.chatId, ...y });
968
- }, i = I(!1), l = I(!1), r = () => {
969
- l.value = !0;
968
+ }, i = I(!1), o = I(!1), l = () => {
969
+ o.value = !0;
970
970
  }, g = () => {
971
- l.value = !1, i.value = !1;
971
+ o.value = !1, i.value = !1;
972
972
  }, u = U(() => $e(t.chat["lastMessage.status"]));
973
973
  let m;
974
974
  const p = I(0), h = [Se("component.ChatItem.typing") + ".", Se("component.ChatItem.typing") + "..", Se("component.ChatItem.typing") + "..."], M = U(() => t.chat.typing ? h[p.value] : t.chat.lastMessage);
@@ -984,15 +984,15 @@ const Iu = (e) => {
984
984
  class: x(A()),
985
985
  onClick: a
986
986
  }, [
987
- o("div", {
987
+ r("div", {
988
988
  class: "chat-item__container",
989
- onMouseenter: r,
989
+ onMouseenter: l,
990
990
  onMouseleave: g
991
991
  }, [
992
- o("div", ss, [
993
- o("span", {
992
+ r("div", ss, [
993
+ r("span", {
994
994
  class: "chat-item__status-user",
995
- style: P({ backgroundColor: t.chat.status })
995
+ style: q({ backgroundColor: t.chat.status })
996
996
  }, null, 4),
997
997
  t.chat.avatar ? (c(), d("img", {
998
998
  key: 0,
@@ -1001,34 +1001,34 @@ const Iu = (e) => {
1001
1001
  width: "48"
1002
1002
  }, null, 8, is)) : (c(), d("span", os))
1003
1003
  ]),
1004
- o("div", ls, [
1005
- o("div", rs, w(e.chat.name), 1),
1004
+ r("div", ls, [
1005
+ r("div", rs, w(e.chat.name), 1),
1006
1006
  e.chat.lastMessage || e.chat.typing ? (c(), d("div", us, w(M.value), 1)) : b("", !0)
1007
1007
  ]),
1008
- o("div", cs, [
1009
- e.chat["lastActivity.time"] && !l.value ? (c(), d("div", ds, w(e.chat["lastActivity.time"]), 1)) : b("", !0),
1008
+ r("div", cs, [
1009
+ e.chat["lastActivity.time"] && !o.value ? (c(), d("div", ds, w(e.chat["lastActivity.time"]), 1)) : b("", !0),
1010
1010
  e.chat.countUnread > 0 ? (c(), d("div", gs, w(e.chat.countUnread > 99 ? "99+" : e.chat.countUnread), 1)) : b("", !0),
1011
- l.value && e.chat.actions ? (c(), d("button", {
1011
+ o.value && e.chat.actions ? (c(), d("button", {
1012
1012
  key: 2,
1013
1013
  class: "chat-item__menu-button",
1014
1014
  onClick: _[0] || (_[0] = (k) => i.value = !i.value)
1015
1015
  }, _[1] || (_[1] = [
1016
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
1016
+ r("span", { class: "pi pi-ellipsis-h" }, null, -1)
1017
1017
  ]))) : b("", !0),
1018
1018
  e.chat.countUnread < 1 ? (c(), d("div", ms, [
1019
- j(Pe).includes(e.chat["lastMessage.status"]) ? (c(), d("div", {
1019
+ D(Pe).includes(e.chat["lastMessage.status"]) ? (c(), d("div", {
1020
1020
  key: 0,
1021
1021
  class: x(["chat-item__status-message", u.value])
1022
1022
  }, [
1023
1023
  e.chat["lastMessage.status"] !== "sent" ? (c(), d("span", ps)) : b("", !0),
1024
- _[2] || (_[2] = o("span", { class: "pi pi-check" }, null, -1))
1024
+ _[2] || (_[2] = r("span", { class: "pi pi-check" }, null, -1))
1025
1025
  ], 2)) : b("", !0),
1026
1026
  e.chat.isFixedTop || e.chat.isFixedBottom ? (c(), d("span", hs)) : b("", !0)
1027
1027
  ])) : b("", !0)
1028
1028
  ]),
1029
- L(q, { name: "menu" }, {
1030
- default: H(() => [
1031
- i.value && e.chat.actions ? (c(), F(j(je), {
1029
+ L(H, { name: "menu" }, {
1030
+ default: F(() => [
1031
+ i.value && e.chat.actions ? (c(), P(D(je), {
1032
1032
  key: 0,
1033
1033
  class: "chat-item__context-menu",
1034
1034
  actions: e.chat.actions,
@@ -1045,17 +1045,17 @@ const Iu = (e) => {
1045
1045
  emits: ["update"],
1046
1046
  setup(e, { emit: f }) {
1047
1047
  const t = I(""), n = f, a = () => {
1048
- const A = j(t);
1048
+ const A = D(t);
1049
1049
  n("update", A.value);
1050
1050
  };
1051
1051
  return (A, s) => (c(), d("div", ys, [
1052
- o("div", bs, [
1053
- o("input", {
1052
+ r("div", bs, [
1053
+ r("input", {
1054
1054
  ref_key: "refInput",
1055
1055
  ref: t,
1056
1056
  class: "chat-filter__input",
1057
1057
  type: "text",
1058
- placeholder: j(Se)("component.ChatFilter.InputPlaceholder"),
1058
+ placeholder: D(Se)("component.ChatFilter.InputPlaceholder"),
1059
1059
  onInput: a
1060
1060
  }, null, 40, vs)
1061
1061
  ])
@@ -1089,38 +1089,38 @@ const Iu = (e) => {
1089
1089
  },
1090
1090
  emits: ["closeTemplateWindow", "pasteTemplate"],
1091
1091
  setup(e, { emit: f }) {
1092
- const t = e, n = ke("chatAppId"), { setMessageText: a } = At(n), A = () => {
1093
- s("closeTemplateWindow"), a(l.value.template);
1094
- }, s = f, i = I(null), l = I(null), r = I(""), g = (h) => {
1095
- t.templates.forEach((M) => M.isSelected = !1), h.isSelected = !0, l.value = h;
1092
+ const t = e, n = be("chatAppId"), { setMessageText: a } = At(n), A = () => {
1093
+ s("closeTemplateWindow"), a(o.value.template);
1094
+ }, s = f, i = I(null), o = I(null), l = I(""), g = (h) => {
1095
+ t.templates.forEach((M) => M.isSelected = !1), h.isSelected = !0, o.value = h;
1096
1096
  }, u = () => {
1097
1097
  t.templates.forEach((h) => h.isSelected = !1);
1098
1098
  }, m = U(() => i.value ? t.templates.filter((h) => h.groupId === i.value.groupId) : t.templates), p = U(() => {
1099
- const h = r.value.trim().toLowerCase();
1099
+ const h = l.value.trim().toLowerCase();
1100
1100
  return m.value.filter((M) => (console.log(M), M.title.toLowerCase().includes(h) || M.template.toLowerCase().includes(h)));
1101
1101
  });
1102
1102
  return (h, M) => (c(), d("div", ws, [
1103
- o("div", ks, [
1104
- o("button", Ns, [
1105
- o("span", {
1103
+ r("div", ks, [
1104
+ r("button", Ns, [
1105
+ r("span", {
1106
1106
  class: "pi pi-times",
1107
1107
  onClick: M[0] || (M[0] = (y) => h.$emit("closeTemplateWindow"))
1108
1108
  })
1109
1109
  ]),
1110
- o("ul", Ds, [
1110
+ r("ul", Ds, [
1111
1111
  (c(!0), d($, null, Z(e.groupTemplates, (y, _) => (c(), d("li", {
1112
1112
  key: _,
1113
1113
  class: x(["template-selector__item-group", { "template-selector__item-selected": i.value === y }]),
1114
1114
  onClick: u
1115
1115
  }, [
1116
- o("label", js, [
1116
+ r("label", js, [
1117
1117
  y.iconUrl ? (c(), d("img", {
1118
1118
  key: 0,
1119
1119
  class: "template-selector__item-group-icon",
1120
1120
  src: y.iconUrl,
1121
1121
  alt: y.title
1122
1122
  }, null, 8, Es)) : b("", !0),
1123
- we(o("input", {
1123
+ Ne(r("input", {
1124
1124
  id: _,
1125
1125
  "onUpdate:modelValue": M[1] || (M[1] = (k) => i.value = k),
1126
1126
  value: y,
@@ -1129,43 +1129,43 @@ const Iu = (e) => {
1129
1129
  }, null, 8, Ts), [
1130
1130
  [Ia, i.value]
1131
1131
  ]),
1132
- o("span", null, w(y.title), 1)
1132
+ r("span", null, w(y.title), 1)
1133
1133
  ])
1134
1134
  ], 2))), 128))
1135
1135
  ]),
1136
- o("div", Vs, [
1137
- we(o("input", {
1138
- "onUpdate:modelValue": M[2] || (M[2] = (y) => r.value = y),
1136
+ r("div", Vs, [
1137
+ Ne(r("input", {
1138
+ "onUpdate:modelValue": M[2] || (M[2] = (y) => l.value = y),
1139
1139
  class: "template-selector__searching-input",
1140
1140
  type: "text",
1141
1141
  placeholder: "Поиск шаблона"
1142
1142
  }, null, 512), [
1143
- [xt, r.value]
1143
+ [xt, l.value]
1144
1144
  ])
1145
1145
  ]),
1146
- o("div", xs, [
1146
+ r("div", xs, [
1147
1147
  p.value.length !== 0 ? (c(), d("ul", Ss, [
1148
1148
  (c(!0), d($, null, Z(p.value, (y, _) => (c(), d("li", {
1149
1149
  key: _,
1150
1150
  class: x(["template-selector__item-template", { "template-selector__item-selected": y.isSelected }]),
1151
1151
  onClick: (k) => g(y)
1152
1152
  }, [
1153
- o("div", Os, [
1154
- o("p", Cs, w(y.title), 1),
1155
- o("p", Ls, w(y.template), 1)
1153
+ r("div", Os, [
1154
+ r("p", Cs, w(y.title), 1),
1155
+ r("p", Ls, w(y.template), 1)
1156
1156
  ])
1157
1157
  ], 10, zs))), 128))
1158
1158
  ])) : (c(), d("p", Us, " Шаблоны отсутствуют "))
1159
1159
  ]),
1160
- o("div", Bs, [
1161
- l.value ? (c(), d("div", Qs, [
1162
- o("div", Rs, [
1163
- o("p", Ys, w(l.value.template), 1),
1164
- M[3] || (M[3] = o("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
1160
+ r("div", Bs, [
1161
+ o.value ? (c(), d("div", Qs, [
1162
+ r("div", Rs, [
1163
+ r("p", Ys, w(o.value.template), 1),
1164
+ M[3] || (M[3] = r("p", { class: "template-selector__preview-time" }, " 22:22 ", -1))
1165
1165
  ])
1166
1166
  ])) : (c(), d("p", qs, " Предпросмотр шаблона "))
1167
1167
  ]),
1168
- o("button", {
1168
+ r("button", {
1169
1169
  class: "template-selector__button-paste",
1170
1170
  onClick: A
1171
1171
  }, " Вставить ")
@@ -1202,17 +1202,17 @@ const Iu = (e) => {
1202
1202
  f.mode == "hover" && f.state == "active" && (n.value.style.display = "inherit");
1203
1203
  }, s = () => {
1204
1204
  f.mode == "hover" && f.state == "active" && (n.value.style.display = "none");
1205
- }, i = (r) => {
1206
- f.mode == "click" && !t.value.contains(r.target) && !n.value.contains(r.target) && (n.value.style.display = "none");
1207
- }, l = () => {
1205
+ }, i = (l) => {
1206
+ f.mode == "click" && !t.value.contains(l.target) && !n.value.contains(l.target) && (n.value.style.display = "none");
1207
+ }, o = () => {
1208
1208
  n.value.style.display = "none";
1209
1209
  };
1210
- return Ne(() => {
1210
+ return pe(() => {
1211
1211
  n.value.style.display = "none", document.addEventListener("click", i);
1212
1212
  }), zt(() => {
1213
1213
  document.removeEventListener("click", i);
1214
- }), (r, g) => (c(), d($, null, [
1215
- o("button", {
1214
+ }), (l, g) => (c(), d($, null, [
1215
+ r("button", {
1216
1216
  ref_key: "templateButton",
1217
1217
  ref: t,
1218
1218
  class: x(["button-template", { "button-template-disabled": e.state == "disabled" }]),
@@ -1220,11 +1220,11 @@ const Iu = (e) => {
1220
1220
  onMouseover: A,
1221
1221
  onMouseout: s
1222
1222
  }, g[0] || (g[0] = [
1223
- o("span", { class: "pi pi-objects-column" }, null, -1)
1223
+ r("span", { class: "pi pi-objects-column" }, null, -1)
1224
1224
  ]), 34),
1225
- L(q, null, {
1226
- default: H(() => [
1227
- o("div", {
1225
+ L(H, null, {
1226
+ default: F(() => [
1227
+ r("div", {
1228
1228
  ref_key: "template",
1229
1229
  ref: n,
1230
1230
  onMouseover: A,
@@ -1233,7 +1233,7 @@ const Iu = (e) => {
1233
1233
  L(Fs, {
1234
1234
  templates: e.templates,
1235
1235
  "group-templates": e.groupTemplates,
1236
- onCloseTemplateWindow: l
1236
+ onCloseTemplateWindow: o
1237
1237
  }, null, 8, ["templates", "group-templates"])
1238
1238
  ], 544)
1239
1239
  ]),
@@ -1241,7 +1241,7 @@ const Iu = (e) => {
1241
1241
  })
1242
1242
  ], 64));
1243
1243
  }
1244
- }, Tu = /* @__PURE__ */ z(Ps, [["__scopeId", "data-v-8d6cf607"]]), Bn = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Qn = {
1244
+ }, ju = /* @__PURE__ */ z(Ps, [["__scopeId", "data-v-8d6cf607"]]), Bn = "https://cdn.jsdelivr.net/npm/emoji-datasource-apple@6.0.1/img/apple/64", Qn = {
1245
1245
  recent: "Recently used",
1246
1246
  smileys_people: "Smiles & People",
1247
1247
  animals_nature: "Animals & Nature",
@@ -13268,7 +13268,7 @@ function gi(e) {
13268
13268
  const a = () => {
13269
13269
  e.removeEventListener("success", A), e.removeEventListener("error", s);
13270
13270
  }, A = () => {
13271
- t(_e(e.result)), a();
13271
+ t(ke(e.result)), a();
13272
13272
  }, s = () => {
13273
13273
  n(e.error), a();
13274
13274
  };
@@ -13304,7 +13304,7 @@ let _t = {
13304
13304
  if (f === "store")
13305
13305
  return t.objectStoreNames[1] ? void 0 : t.objectStore(t.objectStoreNames[0]);
13306
13306
  }
13307
- return _e(e[f]);
13307
+ return ke(e[f]);
13308
13308
  },
13309
13309
  set(e, f, t) {
13310
13310
  return e[f] = t, !0;
@@ -13319,17 +13319,17 @@ function pi(e) {
13319
13319
  function hi(e) {
13320
13320
  return e === IDBDatabase.prototype.transaction && !("objectStoreNames" in IDBTransaction.prototype) ? function(f, ...t) {
13321
13321
  const n = e.call(mt(this), f, ...t);
13322
- return qn.set(n, f.sort ? f.sort() : [f]), _e(n);
13322
+ return qn.set(n, f.sort ? f.sort() : [f]), ke(n);
13323
13323
  } : di().includes(e) ? function(...f) {
13324
- return e.apply(mt(this), f), _e(Yn.get(this));
13324
+ return e.apply(mt(this), f), ke(Yn.get(this));
13325
13325
  } : function(...f) {
13326
- return _e(e.apply(mt(this), f));
13326
+ return ke(e.apply(mt(this), f));
13327
13327
  };
13328
13328
  }
13329
13329
  function Mi(e) {
13330
13330
  return typeof e == "function" ? hi(e) : (e instanceof IDBTransaction && mi(e), ui(e, ci()) ? new Proxy(e, _t) : e);
13331
13331
  }
13332
- function _e(e) {
13332
+ function ke(e) {
13333
13333
  if (e instanceof IDBRequest)
13334
13334
  return gi(e);
13335
13335
  if (gt.has(e))
@@ -13339,15 +13339,15 @@ function _e(e) {
13339
13339
  }
13340
13340
  const mt = (e) => Lt.get(e);
13341
13341
  function Ut(e, f, { blocked: t, upgrade: n, blocking: a, terminated: A } = {}) {
13342
- const s = indexedDB.open(e, f), i = _e(s);
13343
- return n && s.addEventListener("upgradeneeded", (l) => {
13344
- n(_e(s.result), l.oldVersion, l.newVersion, _e(s.transaction), l);
13345
- }), t && s.addEventListener("blocked", (l) => t(
13346
- l.oldVersion,
13347
- l.newVersion,
13348
- l
13349
- )), i.then((l) => {
13350
- A && l.addEventListener("close", () => A()), a && l.addEventListener("versionchange", (r) => a(r.oldVersion, r.newVersion, r));
13342
+ const s = indexedDB.open(e, f), i = ke(s);
13343
+ return n && s.addEventListener("upgradeneeded", (o) => {
13344
+ n(ke(s.result), o.oldVersion, o.newVersion, ke(s.transaction), o);
13345
+ }), t && s.addEventListener("blocked", (o) => t(
13346
+ o.oldVersion,
13347
+ o.newVersion,
13348
+ o
13349
+ )), i.then((o) => {
13350
+ A && o.addEventListener("close", () => A()), a && o.addEventListener("versionchange", (l) => a(l.oldVersion, l.newVersion, l));
13351
13351
  }).catch(() => {
13352
13352
  }), i;
13353
13353
  }
@@ -13361,11 +13361,11 @@ function hn(e, f) {
13361
13361
  if (!(t in (n ? IDBIndex : IDBObjectStore).prototype) || !(a || yi.includes(t)))
13362
13362
  return;
13363
13363
  const A = async function(s, ...i) {
13364
- const l = this.transaction(s, a ? "readwrite" : "readonly");
13365
- let r = l.store;
13366
- return n && (r = r.index(i.shift())), (await Promise.all([
13367
- r[t](...i),
13368
- a && l.done
13364
+ const o = this.transaction(s, a ? "readwrite" : "readonly");
13365
+ let l = o.store;
13366
+ return n && (l = l.index(i.shift())), (await Promise.all([
13367
+ l[t](...i),
13368
+ a && o.done
13369
13369
  ]))[0];
13370
13370
  };
13371
13371
  return pt.set(f, A), A;
@@ -13449,7 +13449,7 @@ function wi() {
13449
13449
  }
13450
13450
  function n() {
13451
13451
  t().then((u) => {
13452
- e.recent = u, r();
13452
+ e.recent = u, l();
13453
13453
  });
13454
13454
  }
13455
13455
  const a = (u) => {
@@ -13460,10 +13460,10 @@ function wi() {
13460
13460
  e.activeGroup = u;
13461
13461
  }, i = (u = jf) => {
13462
13462
  e.skinTone = u;
13463
- }, l = (u) => {
13463
+ }, o = (u) => {
13464
13464
  e.options = Object.assign({}, e.options, u), f();
13465
13465
  };
13466
- async function r() {
13466
+ async function l() {
13467
13467
  (await Ut(Bt, Qt)).transaction(Be, "readwrite").objectStore(Be).put({
13468
13468
  id: 0,
13469
13469
  value: JSON.stringify(e.recent)
@@ -13476,7 +13476,7 @@ function wi() {
13476
13476
  if (m > 0 && e.recent.splice(m, 1), m === 0)
13477
13477
  return;
13478
13478
  const p = { u: u.u, n: Cn(u.n) };
13479
- e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), r();
13479
+ e.recent = [p, ...e.recent], e.recent.length > 24 && (e.recent.length = 24), l();
13480
13480
  };
13481
13481
  return {
13482
13482
  state: Na(e),
@@ -13484,7 +13484,7 @@ function wi() {
13484
13484
  updateEmoji: A,
13485
13485
  updateActiveGroup: s,
13486
13486
  updateSkinTone: i,
13487
- updateOptions: l,
13487
+ updateOptions: o,
13488
13488
  updateSelect: g
13489
13489
  };
13490
13490
  }
@@ -13544,11 +13544,11 @@ function Ui(e) {
13544
13544
  };
13545
13545
  return Object.assign(f.elements.popper.style, t.popper), f.styles = t, f.elements.arrow && Object.assign(f.elements.arrow.style, t.arrow), function() {
13546
13546
  Object.keys(f.elements).forEach(function(n) {
13547
- var a = f.elements[n], A = f.attributes[n] || {}, s = Object.keys(f.styles.hasOwnProperty(n) ? f.styles[n] : t[n]), i = s.reduce(function(l, r) {
13548
- return l[r] = "", l;
13547
+ var a = f.elements[n], A = f.attributes[n] || {}, s = Object.keys(f.styles.hasOwnProperty(n) ? f.styles[n] : t[n]), i = s.reduce(function(o, l) {
13548
+ return o[l] = "", o;
13549
13549
  }, {});
13550
- !Ae(a) || !ge(a) || (Object.assign(a.style, i), Object.keys(A).forEach(function(l) {
13551
- a.removeAttribute(l);
13550
+ !Ae(a) || !ge(a) || (Object.assign(a.style, i), Object.keys(A).forEach(function(o) {
13551
+ a.removeAttribute(o);
13552
13552
  }));
13553
13553
  });
13554
13554
  };
@@ -13673,9 +13673,9 @@ var qi = function(f, t) {
13673
13673
  })) : f, Kn(typeof f != "number" ? f : Jn(f, of));
13674
13674
  };
13675
13675
  function Hi(e) {
13676
- var f, t = e.state, n = e.name, a = e.options, A = t.elements.arrow, s = t.modifiersData.popperOffsets, i = de(t.placement), l = qt(i), r = [ee, ie].indexOf(i) >= 0, g = r ? "height" : "width";
13676
+ var f, t = e.state, n = e.name, a = e.options, A = t.elements.arrow, s = t.modifiersData.popperOffsets, i = de(t.placement), o = qt(i), l = [ee, ie].indexOf(i) >= 0, g = l ? "height" : "width";
13677
13677
  if (!(!A || !s)) {
13678
- var u = qi(a.padding, t), m = Yt(A), p = l === "y" ? X : ee, h = l === "y" ? se : ie, M = t.rects.reference[g] + t.rects.reference[l] - s[l] - t.rects.popper[g], y = s[l] - t.rects.reference[l], _ = lf(A), k = _ ? l === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, D = M / 2 - y / 2, N = u[p], E = k - m[g] - u[h], S = k / 2 - m[g] / 2 + D, T = Ge(N, S, E), O = l;
13678
+ var u = qi(a.padding, t), m = Yt(A), p = o === "y" ? X : ee, h = o === "y" ? se : ie, M = t.rects.reference[g] + t.rects.reference[o] - s[o] - t.rects.popper[g], y = s[o] - t.rects.reference[o], _ = lf(A), k = _ ? o === "y" ? _.clientHeight || 0 : _.clientWidth || 0 : 0, j = M / 2 - y / 2, N = u[p], E = k - m[g] - u[h], S = k / 2 - m[g] / 2 + j, T = Ge(N, S, E), O = o;
13679
13679
  t.modifiersData[n] = (f = {}, f[O] = T, f.centerOffset = T - S, f);
13680
13680
  }
13681
13681
  }
@@ -13709,31 +13709,31 @@ function Wi(e) {
13709
13709
  };
13710
13710
  }
13711
13711
  function bn(e) {
13712
- var f, t = e.popper, n = e.popperRect, a = e.placement, A = e.variation, s = e.offsets, i = e.position, l = e.gpuAcceleration, r = e.adaptive, g = e.roundOffsets, u = e.isFixed, m = g === !0 ? Wi(s) : typeof g == "function" ? g(s) : s, p = m.x, h = p === void 0 ? 0 : p, M = m.y, y = M === void 0 ? 0 : M, _ = s.hasOwnProperty("x"), k = s.hasOwnProperty("y"), D = ee, N = X, E = window;
13713
- if (r) {
13712
+ var f, t = e.popper, n = e.popperRect, a = e.placement, A = e.variation, s = e.offsets, i = e.position, o = e.gpuAcceleration, l = e.adaptive, g = e.roundOffsets, u = e.isFixed, m = g === !0 ? Wi(s) : typeof g == "function" ? g(s) : s, p = m.x, h = p === void 0 ? 0 : p, M = m.y, y = M === void 0 ? 0 : M, _ = s.hasOwnProperty("x"), k = s.hasOwnProperty("y"), j = ee, N = X, E = window;
13713
+ if (l) {
13714
13714
  var S = lf(t), T = "clientHeight", O = "clientWidth";
13715
13715
  if (S === oe(t) && (S = De(t), me(S).position !== "static" && i === "absolute" && (T = "scrollHeight", O = "scrollWidth")), S = S, a === X || (a === ee || a === ie) && A === nf) {
13716
13716
  N = se;
13717
13717
  var Q = u && E.visualViewport ? E.visualViewport.height : S[T];
13718
- y -= Q - n.height, y *= l ? 1 : -1;
13718
+ y -= Q - n.height, y *= o ? 1 : -1;
13719
13719
  }
13720
13720
  if (a === ee || (a === X || a === se) && A === nf) {
13721
- D = ie;
13721
+ j = ie;
13722
13722
  var C = u && E.visualViewport ? E.visualViewport.width : S[O];
13723
- h -= C - n.width, h *= l ? 1 : -1;
13723
+ h -= C - n.width, h *= o ? 1 : -1;
13724
13724
  }
13725
13725
  }
13726
13726
  var B = Object.assign({
13727
13727
  position: i
13728
- }, r && $i);
13729
- if (l) {
13728
+ }, l && $i);
13729
+ if (o) {
13730
13730
  var R;
13731
- return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[D] = _ ? "0" : "", R.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + y + "px)" : "translate3d(" + h + "px, " + y + "px, 0)", R));
13731
+ return Object.assign({}, B, (R = {}, R[N] = k ? "0" : "", R[j] = _ ? "0" : "", R.transform = (E.devicePixelRatio || 1) <= 1 ? "translate(" + h + "px, " + y + "px)" : "translate3d(" + h + "px, " + y + "px, 0)", R));
13732
13732
  }
13733
- return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[D] = _ ? h + "px" : "", f.transform = "", f));
13733
+ return Object.assign({}, B, (f = {}, f[N] = k ? y + "px" : "", f[j] = _ ? h + "px" : "", f.transform = "", f));
13734
13734
  }
13735
13735
  function Ki(e) {
13736
- var f = e.state, t = e.options, n = t.gpuAcceleration, a = n === void 0 ? !0 : n, A = t.adaptive, s = A === void 0 ? !0 : A, i = t.roundOffsets, l = i === void 0 ? !0 : i, r = {
13736
+ var f = e.state, t = e.options, n = t.gpuAcceleration, a = n === void 0 ? !0 : n, A = t.adaptive, s = A === void 0 ? !0 : A, i = t.roundOffsets, o = i === void 0 ? !0 : i, l = {
13737
13737
  placement: de(f.placement),
13738
13738
  variation: He(f.placement),
13739
13739
  popper: f.elements.popper,
@@ -13741,16 +13741,16 @@ function Ki(e) {
13741
13741
  gpuAcceleration: a,
13742
13742
  isFixed: f.options.strategy === "fixed"
13743
13743
  };
13744
- f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, bn(Object.assign({}, r, {
13744
+ f.modifiersData.popperOffsets != null && (f.styles.popper = Object.assign({}, f.styles.popper, bn(Object.assign({}, l, {
13745
13745
  offsets: f.modifiersData.popperOffsets,
13746
13746
  position: f.options.strategy,
13747
13747
  adaptive: s,
13748
- roundOffsets: l
13749
- })))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, bn(Object.assign({}, r, {
13748
+ roundOffsets: o
13749
+ })))), f.modifiersData.arrow != null && (f.styles.arrow = Object.assign({}, f.styles.arrow, bn(Object.assign({}, l, {
13750
13750
  offsets: f.modifiersData.arrow,
13751
13751
  position: "absolute",
13752
13752
  adaptive: !1,
13753
- roundOffsets: l
13753
+ roundOffsets: o
13754
13754
  })))), f.attributes.popper = Object.assign({}, f.attributes.popper, {
13755
13755
  "data-popper-placement": f.placement
13756
13756
  });
@@ -13765,13 +13765,13 @@ var Ji = {
13765
13765
  passive: !0
13766
13766
  };
13767
13767
  function Gi(e) {
13768
- var f = e.state, t = e.instance, n = e.options, a = n.scroll, A = a === void 0 ? !0 : a, s = n.resize, i = s === void 0 ? !0 : s, l = oe(f.elements.popper), r = [].concat(f.scrollParents.reference, f.scrollParents.popper);
13769
- return A && r.forEach(function(g) {
13768
+ var f = e.state, t = e.instance, n = e.options, a = n.scroll, A = a === void 0 ? !0 : a, s = n.resize, i = s === void 0 ? !0 : s, o = oe(f.elements.popper), l = [].concat(f.scrollParents.reference, f.scrollParents.popper);
13769
+ return A && l.forEach(function(g) {
13770
13770
  g.addEventListener("scroll", t.update, hf);
13771
- }), i && l.addEventListener("resize", t.update, hf), function() {
13772
- A && r.forEach(function(g) {
13771
+ }), i && o.addEventListener("resize", t.update, hf), function() {
13772
+ A && l.forEach(function(g) {
13773
13773
  g.removeEventListener("scroll", t.update, hf);
13774
- }), i && l.removeEventListener("resize", t.update, hf);
13774
+ }), i && o.removeEventListener("resize", t.update, hf);
13775
13775
  };
13776
13776
  }
13777
13777
  var Zi = {
@@ -13822,12 +13822,12 @@ function fo(e) {
13822
13822
  };
13823
13823
  }
13824
13824
  function to(e) {
13825
- var f, t = De(e), n = Ht(e), a = (f = e.ownerDocument) == null ? void 0 : f.body, A = ze(t.scrollWidth, t.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), s = ze(t.scrollHeight, t.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -n.scrollLeft + Ft(e), l = -n.scrollTop;
13825
+ var f, t = De(e), n = Ht(e), a = (f = e.ownerDocument) == null ? void 0 : f.body, A = ze(t.scrollWidth, t.clientWidth, a ? a.scrollWidth : 0, a ? a.clientWidth : 0), s = ze(t.scrollHeight, t.clientHeight, a ? a.scrollHeight : 0, a ? a.clientHeight : 0), i = -n.scrollLeft + Ft(e), o = -n.scrollTop;
13826
13826
  return me(a || t).direction === "rtl" && (i += ze(t.clientWidth, a ? a.clientWidth : 0) - A), {
13827
13827
  width: A,
13828
13828
  height: s,
13829
13829
  x: i,
13830
- y: l
13830
+ y: o
13831
13831
  };
13832
13832
  }
13833
13833
  function Pt(e) {
@@ -13865,71 +13865,71 @@ function ao(e) {
13865
13865
  }) : [];
13866
13866
  }
13867
13867
  function Ao(e, f, t) {
13868
- var n = f === "clippingParents" ? ao(e) : [].concat(f), a = [].concat(n, [t]), A = a[0], s = a.reduce(function(i, l) {
13869
- var r = In(e, l);
13870
- return i.top = ze(r.top, i.top), i.right = Ef(r.right, i.right), i.bottom = Ef(r.bottom, i.bottom), i.left = ze(r.left, i.left), i;
13868
+ var n = f === "clippingParents" ? ao(e) : [].concat(f), a = [].concat(n, [t]), A = a[0], s = a.reduce(function(i, o) {
13869
+ var l = In(e, o);
13870
+ return i.top = ze(l.top, i.top), i.right = Ef(l.right, i.right), i.bottom = Ef(l.bottom, i.bottom), i.left = ze(l.left, i.left), i;
13871
13871
  }, In(e, A));
13872
13872
  return s.width = s.right - s.left, s.height = s.bottom - s.top, s.x = s.left, s.y = s.top, s;
13873
13873
  }
13874
13874
  function Zn(e) {
13875
- var f = e.reference, t = e.element, n = e.placement, a = n ? de(n) : null, A = n ? He(n) : null, s = f.x + f.width / 2 - t.width / 2, i = f.y + f.height / 2 - t.height / 2, l;
13875
+ var f = e.reference, t = e.element, n = e.placement, a = n ? de(n) : null, A = n ? He(n) : null, s = f.x + f.width / 2 - t.width / 2, i = f.y + f.height / 2 - t.height / 2, o;
13876
13876
  switch (a) {
13877
13877
  case X:
13878
- l = {
13878
+ o = {
13879
13879
  x: s,
13880
13880
  y: f.y - t.height
13881
13881
  };
13882
13882
  break;
13883
13883
  case se:
13884
- l = {
13884
+ o = {
13885
13885
  x: s,
13886
13886
  y: f.y + f.height
13887
13887
  };
13888
13888
  break;
13889
13889
  case ie:
13890
- l = {
13890
+ o = {
13891
13891
  x: f.x + f.width,
13892
13892
  y: i
13893
13893
  };
13894
13894
  break;
13895
13895
  case ee:
13896
- l = {
13896
+ o = {
13897
13897
  x: f.x - t.width,
13898
13898
  y: i
13899
13899
  };
13900
13900
  break;
13901
13901
  default:
13902
- l = {
13902
+ o = {
13903
13903
  x: f.x,
13904
13904
  y: f.y
13905
13905
  };
13906
13906
  }
13907
- var r = a ? qt(a) : null;
13908
- if (r != null) {
13909
- var g = r === "y" ? "height" : "width";
13907
+ var l = a ? qt(a) : null;
13908
+ if (l != null) {
13909
+ var g = l === "y" ? "height" : "width";
13910
13910
  switch (A) {
13911
13911
  case Qe:
13912
- l[r] = l[r] - (f[g] / 2 - t[g] / 2);
13912
+ o[l] = o[l] - (f[g] / 2 - t[g] / 2);
13913
13913
  break;
13914
13914
  case nf:
13915
- l[r] = l[r] + (f[g] / 2 - t[g] / 2);
13915
+ o[l] = o[l] + (f[g] / 2 - t[g] / 2);
13916
13916
  break;
13917
13917
  }
13918
13918
  }
13919
- return l;
13919
+ return o;
13920
13920
  }
13921
13921
  function af(e, f) {
13922
13922
  f === void 0 && (f = {});
13923
- var t = f, n = t.placement, a = n === void 0 ? e.placement : n, A = t.boundary, s = A === void 0 ? ki : A, i = t.rootBoundary, l = i === void 0 ? Hn : i, r = t.elementContext, g = r === void 0 ? Je : r, u = t.altBoundary, m = u === void 0 ? !1 : u, p = t.padding, h = p === void 0 ? 0 : p, M = Kn(typeof h != "number" ? h : Jn(h, of)), y = g === Je ? Ni : Je, _ = e.rects.popper, k = e.elements[m ? y : g], D = Ao(Re(k) ? k : k.contextElement || De(e.elements.popper), s, l), N = qe(e.elements.reference), E = Zn({
13923
+ var t = f, n = t.placement, a = n === void 0 ? e.placement : n, A = t.boundary, s = A === void 0 ? ki : A, i = t.rootBoundary, o = i === void 0 ? Hn : i, l = t.elementContext, g = l === void 0 ? Je : l, u = t.altBoundary, m = u === void 0 ? !1 : u, p = t.padding, h = p === void 0 ? 0 : p, M = Kn(typeof h != "number" ? h : Jn(h, of)), y = g === Je ? Ni : Je, _ = e.rects.popper, k = e.elements[m ? y : g], j = Ao(Re(k) ? k : k.contextElement || De(e.elements.popper), s, o), N = qe(e.elements.reference), E = Zn({
13924
13924
  reference: N,
13925
13925
  element: _,
13926
13926
  strategy: "absolute",
13927
13927
  placement: a
13928
13928
  }), S = wt(Object.assign({}, _, E)), T = g === Je ? S : N, O = {
13929
- top: D.top - T.top + M.top,
13930
- bottom: T.bottom - D.bottom + M.bottom,
13931
- left: D.left - T.left + M.left,
13932
- right: T.right - D.right + M.right
13929
+ top: j.top - T.top + M.top,
13930
+ bottom: T.bottom - j.bottom + M.bottom,
13931
+ left: j.left - T.left + M.left,
13932
+ right: T.right - j.right + M.right
13933
13933
  }, Q = e.modifiersData.offset;
13934
13934
  if (g === Je && Q) {
13935
13935
  var C = Q[a];
@@ -13942,10 +13942,10 @@ function af(e, f) {
13942
13942
  }
13943
13943
  function so(e, f) {
13944
13944
  f === void 0 && (f = {});
13945
- var t = f, n = t.placement, a = t.boundary, A = t.rootBoundary, s = t.padding, i = t.flipVariations, l = t.allowedAutoPlacements, r = l === void 0 ? Fn : l, g = He(n), u = g ? i ? Mn : Mn.filter(function(h) {
13945
+ var t = f, n = t.placement, a = t.boundary, A = t.rootBoundary, s = t.padding, i = t.flipVariations, o = t.allowedAutoPlacements, l = o === void 0 ? Fn : o, g = He(n), u = g ? i ? Mn : Mn.filter(function(h) {
13946
13946
  return He(h) === g;
13947
13947
  }) : of, m = u.filter(function(h) {
13948
- return r.indexOf(h) >= 0;
13948
+ return l.indexOf(h) >= 0;
13949
13949
  });
13950
13950
  m.length === 0 && (m = u);
13951
13951
  var p = m.reduce(function(h, M) {
@@ -13969,23 +13969,23 @@ function io(e) {
13969
13969
  function oo(e) {
13970
13970
  var f = e.state, t = e.options, n = e.name;
13971
13971
  if (!f.modifiersData[n]._skip) {
13972
- for (var a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !0 : s, l = t.fallbackPlacements, r = t.padding, g = t.boundary, u = t.rootBoundary, m = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, M = t.allowedAutoPlacements, y = f.options.placement, _ = de(y), k = _ === y, D = l || (k || !h ? [_f(y)] : io(y)), N = [y].concat(D).reduce(function(Ce, ye) {
13973
- return Ce.concat(de(ye) === Rt ? so(f, {
13974
- placement: ye,
13972
+ for (var a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !0 : s, o = t.fallbackPlacements, l = t.padding, g = t.boundary, u = t.rootBoundary, m = t.altBoundary, p = t.flipVariations, h = p === void 0 ? !0 : p, M = t.allowedAutoPlacements, y = f.options.placement, _ = de(y), k = _ === y, j = o || (k || !h ? [_f(y)] : io(y)), N = [y].concat(j).reduce(function(Ce, ve) {
13973
+ return Ce.concat(de(ve) === Rt ? so(f, {
13974
+ placement: ve,
13975
13975
  boundary: g,
13976
13976
  rootBoundary: u,
13977
- padding: r,
13977
+ padding: l,
13978
13978
  flipVariations: h,
13979
13979
  allowedAutoPlacements: M
13980
- }) : ye);
13980
+ }) : ve);
13981
13981
  }, []), E = f.rects.reference, S = f.rects.popper, T = /* @__PURE__ */ new Map(), O = !0, Q = N[0], C = 0; C < N.length; C++) {
13982
- var B = N[C], R = de(B), te = He(B) === Qe, pe = [X, se].indexOf(R) >= 0, le = pe ? "width" : "height", Y = af(f, {
13982
+ var B = N[C], R = de(B), te = He(B) === Qe, he = [X, se].indexOf(R) >= 0, le = he ? "width" : "height", Y = af(f, {
13983
13983
  placement: B,
13984
13984
  boundary: g,
13985
13985
  rootBoundary: u,
13986
13986
  altBoundary: m,
13987
- padding: r
13988
- }), W = pe ? te ? ie : ee : te ? se : X;
13987
+ padding: l
13988
+ }), W = he ? te ? ie : ee : te ? se : X;
13989
13989
  E[le] > S[le] && (W = _f(W));
13990
13990
  var uf = _f(W), Ee = [];
13991
13991
  if (A && Ee.push(Y[R] <= 0), i && Ee.push(Y[W] <= 0, Y[uf] <= 0), Ee.every(function(Ce) {
@@ -13997,11 +13997,11 @@ function oo(e) {
13997
13997
  T.set(B, Ee);
13998
13998
  }
13999
13999
  if (O)
14000
- for (var cf = h ? 3 : 1, lt = function(ye) {
14000
+ for (var cf = h ? 3 : 1, lt = function(ve) {
14001
14001
  var Ke = N.find(function(gf) {
14002
14002
  var Te = T.get(gf);
14003
14003
  if (Te)
14004
- return Te.slice(0, ye).every(function(rt) {
14004
+ return Te.slice(0, ve).every(function(rt) {
14005
14005
  return rt;
14006
14006
  });
14007
14007
  });
@@ -14046,10 +14046,10 @@ function ro(e) {
14046
14046
  elementContext: "reference"
14047
14047
  }), i = af(f, {
14048
14048
  altBoundary: !0
14049
- }), l = _n(s, n), r = _n(i, a, A), g = wn(l), u = wn(r);
14049
+ }), o = _n(s, n), l = _n(i, a, A), g = wn(o), u = wn(l);
14050
14050
  f.modifiersData[t] = {
14051
- referenceClippingOffsets: l,
14052
- popperEscapeOffsets: r,
14051
+ referenceClippingOffsets: o,
14052
+ popperEscapeOffsets: l,
14053
14053
  isReferenceHidden: g,
14054
14054
  hasPopperEscaped: u
14055
14055
  }, f.attributes.popper = Object.assign({}, f.attributes.popper, {
@@ -14079,8 +14079,8 @@ function co(e, f, t) {
14079
14079
  function go(e) {
14080
14080
  var f = e.state, t = e.options, n = e.name, a = t.offset, A = a === void 0 ? [0, 0] : a, s = Fn.reduce(function(g, u) {
14081
14081
  return g[u] = co(u, f.rects, A), g;
14082
- }, {}), i = s[f.placement], l = i.x, r = i.y;
14083
- f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += l, f.modifiersData.popperOffsets.y += r), f.modifiersData[n] = s;
14082
+ }, {}), i = s[f.placement], o = i.x, l = i.y;
14083
+ f.modifiersData.popperOffsets != null && (f.modifiersData.popperOffsets.x += o, f.modifiersData.popperOffsets.y += l), f.modifiersData[n] = s;
14084
14084
  }
14085
14085
  var mo = {
14086
14086
  name: "offset",
@@ -14109,12 +14109,12 @@ function Mo(e) {
14109
14109
  return e === "x" ? "y" : "x";
14110
14110
  }
14111
14111
  function yo(e) {
14112
- var f = e.state, t = e.options, n = e.name, a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !1 : s, l = t.boundary, r = t.rootBoundary, g = t.altBoundary, u = t.padding, m = t.tether, p = m === void 0 ? !0 : m, h = t.tetherOffset, M = h === void 0 ? 0 : h, y = af(f, {
14113
- boundary: l,
14114
- rootBoundary: r,
14112
+ var f = e.state, t = e.options, n = e.name, a = t.mainAxis, A = a === void 0 ? !0 : a, s = t.altAxis, i = s === void 0 ? !1 : s, o = t.boundary, l = t.rootBoundary, g = t.altBoundary, u = t.padding, m = t.tether, p = m === void 0 ? !0 : m, h = t.tetherOffset, M = h === void 0 ? 0 : h, y = af(f, {
14113
+ boundary: o,
14114
+ rootBoundary: l,
14115
14115
  padding: u,
14116
14116
  altBoundary: g
14117
- }), _ = de(f.placement), k = He(f.placement), D = !k, N = qt(_), E = Mo(N), S = f.modifiersData.popperOffsets, T = f.rects.reference, O = f.rects.popper, Q = typeof M == "function" ? M(Object.assign({}, f.rects, {
14117
+ }), _ = de(f.placement), k = He(f.placement), j = !k, N = qt(_), E = Mo(N), S = f.modifiersData.popperOffsets, T = f.rects.reference, O = f.rects.popper, Q = typeof M == "function" ? M(Object.assign({}, f.rects, {
14118
14118
  placement: f.placement
14119
14119
  })) : M, C = typeof Q == "number" ? {
14120
14120
  mainAxis: Q,
@@ -14128,10 +14128,10 @@ function yo(e) {
14128
14128
  };
14129
14129
  if (S) {
14130
14130
  if (A) {
14131
- var te, pe = N === "y" ? X : ee, le = N === "y" ? se : ie, Y = N === "y" ? "height" : "width", W = S[N], uf = W + y[pe], Ee = W - y[le], cf = p ? -O[Y] / 2 : 0, lt = k === Qe ? T[Y] : O[Y], We = k === Qe ? -O[Y] : -T[Y], df = f.elements.arrow, Ce = p && df ? Yt(df) : {
14131
+ var te, he = N === "y" ? X : ee, le = N === "y" ? se : ie, Y = N === "y" ? "height" : "width", W = S[N], uf = W + y[he], Ee = W - y[le], cf = p ? -O[Y] / 2 : 0, lt = k === Qe ? T[Y] : O[Y], We = k === Qe ? -O[Y] : -T[Y], df = f.elements.arrow, Ce = p && df ? Yt(df) : {
14132
14132
  width: 0,
14133
14133
  height: 0
14134
- }, ye = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Wn(), Ke = ye[pe], gf = ye[le], Te = Ge(0, T[Y], Ce[Y]), rt = D ? T[Y] / 2 - cf - Te - Ke - C.mainAxis : lt - Te - Ke - C.mainAxis, ca = D ? -T[Y] / 2 + cf + Te + gf + C.mainAxis : We + Te + gf + C.mainAxis, ut = f.elements.arrow && lf(f.elements.arrow), da = ut ? N === "y" ? ut.clientTop || 0 : ut.clientLeft || 0 : 0, fn = (te = B == null ? void 0 : B[N]) != null ? te : 0, ga = W + rt - fn - da, ma = W + ca - fn, tn = Ge(p ? Ef(uf, ga) : uf, W, p ? ze(Ee, ma) : Ee);
14134
+ }, ve = f.modifiersData["arrow#persistent"] ? f.modifiersData["arrow#persistent"].padding : Wn(), Ke = ve[he], gf = ve[le], Te = Ge(0, T[Y], Ce[Y]), rt = j ? T[Y] / 2 - cf - Te - Ke - C.mainAxis : lt - Te - Ke - C.mainAxis, ca = j ? -T[Y] / 2 + cf + Te + gf + C.mainAxis : We + Te + gf + C.mainAxis, ut = f.elements.arrow && lf(f.elements.arrow), da = ut ? N === "y" ? ut.clientTop || 0 : ut.clientLeft || 0 : 0, fn = (te = B == null ? void 0 : B[N]) != null ? te : 0, ga = W + rt - fn - da, ma = W + ca - fn, tn = Ge(p ? Ef(uf, ga) : uf, W, p ? ze(Ee, ma) : Ee);
14135
14135
  S[N] = tn, R[N] = tn - W;
14136
14136
  }
14137
14137
  if (i) {
@@ -14166,13 +14166,13 @@ function wo(e, f, t) {
14166
14166
  var n = Ae(f), a = Ae(f) && _o(f), A = De(f), s = qe(e, a), i = {
14167
14167
  scrollLeft: 0,
14168
14168
  scrollTop: 0
14169
- }, l = {
14169
+ }, o = {
14170
14170
  x: 0,
14171
14171
  y: 0
14172
14172
  };
14173
- return (n || !n && !t) && ((ge(f) !== "body" || Pt(A)) && (i = Io(f)), Ae(f) ? (l = qe(f, !0), l.x += f.clientLeft, l.y += f.clientTop) : A && (l.x = Ft(A))), {
14174
- x: s.left + i.scrollLeft - l.x,
14175
- y: s.top + i.scrollTop - l.y,
14173
+ return (n || !n && !t) && ((ge(f) !== "body" || Pt(A)) && (i = Io(f)), Ae(f) ? (o = qe(f, !0), o.x += f.clientLeft, o.y += f.clientTop) : A && (o.x = Ft(A))), {
14174
+ x: s.left + i.scrollLeft - o.x,
14175
+ y: s.top + i.scrollTop - o.y,
14176
14176
  width: s.width,
14177
14177
  height: s.height
14178
14178
  };
@@ -14187,8 +14187,8 @@ function ko(e) {
14187
14187
  var s = [].concat(A.requires || [], A.requiresIfExists || []);
14188
14188
  s.forEach(function(i) {
14189
14189
  if (!t.has(i)) {
14190
- var l = f.get(i);
14191
- l && a(l);
14190
+ var o = f.get(i);
14191
+ o && a(o);
14192
14192
  }
14193
14193
  }), n.push(A);
14194
14194
  }
@@ -14241,8 +14241,8 @@ function Nn() {
14241
14241
  function Eo(e) {
14242
14242
  e === void 0 && (e = {});
14243
14243
  var f = e, t = f.defaultModifiers, n = t === void 0 ? [] : t, a = f.defaultOptions, A = a === void 0 ? kn : a;
14244
- return function(i, l, r) {
14245
- r === void 0 && (r = A);
14244
+ return function(i, o, l) {
14245
+ l === void 0 && (l = A);
14246
14246
  var g = {
14247
14247
  placement: "bottom",
14248
14248
  orderedModifiers: [],
@@ -14250,7 +14250,7 @@ function Eo(e) {
14250
14250
  modifiersData: {},
14251
14251
  elements: {
14252
14252
  reference: i,
14253
- popper: l
14253
+ popper: o
14254
14254
  },
14255
14255
  attributes: {},
14256
14256
  styles: {}
@@ -14260,20 +14260,20 @@ function Eo(e) {
14260
14260
  var k = typeof _ == "function" ? _(g.options) : _;
14261
14261
  M(), g.options = Object.assign({}, A, g.options, k), g.scrollParents = {
14262
14262
  reference: Re(i) ? Ze(i) : i.contextElement ? Ze(i.contextElement) : [],
14263
- popper: Ze(l)
14263
+ popper: Ze(o)
14264
14264
  };
14265
- var D = No(jo([].concat(n, g.options.modifiers)));
14266
- return g.orderedModifiers = D.filter(function(N) {
14265
+ var j = No(jo([].concat(n, g.options.modifiers)));
14266
+ return g.orderedModifiers = j.filter(function(N) {
14267
14267
  return N.enabled;
14268
14268
  }), h(), p.update();
14269
14269
  },
14270
14270
  forceUpdate: function() {
14271
14271
  if (!m) {
14272
- var _ = g.elements, k = _.reference, D = _.popper;
14273
- if (Nn(k, D)) {
14272
+ var _ = g.elements, k = _.reference, j = _.popper;
14273
+ if (Nn(k, j)) {
14274
14274
  g.rects = {
14275
- reference: wo(k, lf(D), g.options.strategy === "fixed"),
14276
- popper: Yt(D)
14275
+ reference: wo(k, lf(j), g.options.strategy === "fixed"),
14276
+ popper: Yt(j)
14277
14277
  }, g.reset = !1, g.placement = g.options.placement, g.orderedModifiers.forEach(function(C) {
14278
14278
  return g.modifiersData[C.name] = Object.assign({}, C.data);
14279
14279
  });
@@ -14302,20 +14302,20 @@ function Eo(e) {
14302
14302
  M(), m = !0;
14303
14303
  }
14304
14304
  };
14305
- if (!Nn(i, l))
14305
+ if (!Nn(i, o))
14306
14306
  return p;
14307
- p.setOptions(r).then(function(y) {
14308
- !m && r.onFirstUpdate && r.onFirstUpdate(y);
14307
+ p.setOptions(l).then(function(y) {
14308
+ !m && l.onFirstUpdate && l.onFirstUpdate(y);
14309
14309
  });
14310
14310
  function h() {
14311
14311
  g.orderedModifiers.forEach(function(y) {
14312
- var _ = y.name, k = y.options, D = k === void 0 ? {} : k, N = y.effect;
14312
+ var _ = y.name, k = y.options, j = k === void 0 ? {} : k, N = y.effect;
14313
14313
  if (typeof N == "function") {
14314
14314
  var E = N({
14315
14315
  state: g,
14316
14316
  name: _,
14317
14317
  instance: p,
14318
- options: D
14318
+ options: j
14319
14319
  }), S = function() {
14320
14320
  };
14321
14321
  u.push(E || S);
@@ -14343,18 +14343,18 @@ function xo(e, f, t, n = []) {
14343
14343
  return;
14344
14344
  const s = [];
14345
14345
  e[A].forEach((i) => {
14346
- var l;
14346
+ var o;
14347
14347
  if (i[st][0].includes(f.toLocaleLowerCase())) {
14348
- let r = i[Rn];
14348
+ let l = i[Rn];
14349
14349
  if (t !== jf && Array.isArray(i[pf])) {
14350
- const g = ((l = i[pf]) == null ? void 0 : l.findIndex(
14350
+ const g = ((o = i[pf]) == null ? void 0 : o.findIndex(
14351
14351
  (u) => u.includes(t)
14352
14352
  )) || -1;
14353
- g !== -1 && i[pf] && (r = i[pf][g]);
14353
+ g !== -1 && i[pf] && (l = i[pf][g]);
14354
14354
  }
14355
14355
  return s.push({
14356
14356
  ...i,
14357
- [tf]: r
14357
+ [tf]: l
14358
14358
  });
14359
14359
  }
14360
14360
  }), s.length && (a[A] = s);
@@ -14382,14 +14382,14 @@ const So = K({
14382
14382
  select: (e) => !0
14383
14383
  },
14384
14384
  setup() {
14385
- const { state: e, updateEmoji: f, updateSelect: t } = ke("store"), n = I(null), a = U(() => xo(
14385
+ const { state: e, updateEmoji: f, updateSelect: t } = be("store"), n = I(null), a = U(() => xo(
14386
14386
  e.emojis,
14387
14387
  e.search,
14388
14388
  e.skinTone,
14389
14389
  e.options.disabledGroups
14390
- )), A = _a(), s = U(() => !e.options.hideGroupNames), i = U(() => !e.options.disableStickyGroupNames), l = Cn(e.options.groupNames), r = e.orderedGroupKeys;
14390
+ )), A = _a(), s = U(() => !e.options.hideGroupNames), i = U(() => !e.options.disableStickyGroupNames), o = Cn(e.options.groupNames), l = e.orderedGroupKeys;
14391
14391
  e.options.additionalGroups && Object.keys(e.options.additionalGroups).map((h) => {
14392
- e.options.groupNames[h] ? l[h] = e.options.groupNames[h] : l[h] = fa(h);
14392
+ e.options.groupNames[h] ? o[h] = e.options.groupNames[h] : o[h] = fa(h);
14393
14393
  });
14394
14394
  const g = ea() ? "is-mac" : "";
14395
14395
  function u(h) {
@@ -14429,8 +14429,8 @@ const So = K({
14429
14429
  hasGroupNames: s,
14430
14430
  isSticky: i,
14431
14431
  platform: g,
14432
- groupNames: l,
14433
- orderedKeys: r
14432
+ groupNames: o,
14433
+ orderedKeys: l
14434
14434
  };
14435
14435
  }
14436
14436
  }), zo = { class: "v3-body" }, Oo = ["id"], Co = { class: "v3-emojis" }, Lo = ["onMouseenter", "onClick"], Uo = { key: 0 }, Bo = ["src", "alt", "onError"], Qo = {
@@ -14439,7 +14439,7 @@ const So = K({
14439
14439
  };
14440
14440
  function Ro(e, f, t, n, a, A) {
14441
14441
  return c(), d("div", zo, [
14442
- o("div", {
14442
+ r("div", {
14443
14443
  ref: "bodyInner",
14444
14444
  class: x([e.platform, "v3-body-inner"])
14445
14445
  }, [
@@ -14448,24 +14448,24 @@ function Ro(e, f, t, n, a, A) {
14448
14448
  key: s,
14449
14449
  class: "v3-group"
14450
14450
  }, [
14451
- e.hasGroupNames ? we((c(), d("h5", {
14451
+ e.hasGroupNames ? Ne((c(), d("h5", {
14452
14452
  key: 0,
14453
14453
  class: x(e.isSticky ? "v3-sticky" : "")
14454
14454
  }, w(e.groupNames[s]), 3)), [
14455
14455
  [Df, e.emojis[s]]
14456
14456
  ]) : b("", !0),
14457
- we(o("div", Co, [
14457
+ Ne(r("div", Co, [
14458
14458
  (c(!0), d($, null, Z(e.emojis[s], (i) => (c(), d("button", {
14459
14459
  key: i.r,
14460
14460
  type: "button",
14461
- onMouseenter: (l) => e.handleMouseEnter(i),
14462
- onClick: (l) => e.handleClick(i)
14461
+ onMouseenter: (o) => e.handleMouseEnter(i),
14462
+ onClick: (o) => e.handleClick(i)
14463
14463
  }, [
14464
14464
  e.native ? (c(), d("span", Uo, w(e.unicodeToEmoji(i.r)), 1)) : (c(), d("img", {
14465
14465
  key: 1,
14466
14466
  src: e.EMOJI_REMOTE_SRC + `/${i.r}.png`,
14467
14467
  alt: i.n[0],
14468
- onError: (l) => e.handleError(l, i.r)
14468
+ onError: (o) => e.handleError(o, i.r)
14469
14469
  }, null, 40, Bo))
14470
14470
  ], 40, Lo))), 128))
14471
14471
  ], 512), [
@@ -14479,12 +14479,12 @@ var Yo = /* @__PURE__ */ rf(So, [["render", Ro]]), qo = "data:image/svg+xml;base
14479
14479
  const Go = K({
14480
14480
  name: "Header",
14481
14481
  setup(e) {
14482
- const { state: f, updateSearch: t, updateActiveGroup: n } = ke("store"), a = U(() => !f.options.hideSearch), A = U(() => !f.options.hideGroupIcons), s = JSON.parse(JSON.stringify(f.orderedGroupKeys)), i = U(
14482
+ const { state: f, updateSearch: t, updateActiveGroup: n } = be("store"), a = U(() => !f.options.hideSearch), A = U(() => !f.options.hideGroupIcons), s = JSON.parse(JSON.stringify(f.orderedGroupKeys)), i = U(
14483
14483
  () => f.options.staticTexts.placeholder || ""
14484
- ), l = U({
14484
+ ), o = U({
14485
14485
  get: () => f.search,
14486
14486
  set: (u) => t(u)
14487
- }), r = [
14487
+ }), l = [
14488
14488
  ...f.groups,
14489
14489
  ...Object.keys(f.options.additionalGroups).map((u) => ({
14490
14490
  key: u,
@@ -14492,12 +14492,12 @@ const Go = K({
14492
14492
  }))
14493
14493
  ], g = [];
14494
14494
  return s.forEach((u) => {
14495
- const m = r.findIndex((p) => p.key === u);
14496
- m !== -1 && (g.push(r[m]), r.splice(m, 1));
14495
+ const m = l.findIndex((p) => p.key === u);
14496
+ m !== -1 && (g.push(l[m]), l.splice(m, 1));
14497
14497
  }), {
14498
14498
  orderedGroups: g,
14499
14499
  orderedKeys: s,
14500
- searchValue: l,
14500
+ searchValue: o,
14501
14501
  updateActiveGroup: n,
14502
14502
  hasSearch: a,
14503
14503
  hasGroupIcons: A,
@@ -14540,11 +14540,11 @@ function s1(e, f, t, n, a, A) {
14540
14540
  }]),
14541
14541
  onClick: (i) => e.updateActiveGroup(s.key)
14542
14542
  }, [
14543
- o("span", {
14543
+ r("span", {
14544
14544
  title: s.title,
14545
14545
  class: "v3-icon"
14546
14546
  }, [
14547
- o("img", {
14547
+ r("img", {
14548
14548
  src: e.icons[s.key],
14549
14549
  alt: ""
14550
14550
  }, null, 8, t1)
@@ -14553,7 +14553,7 @@ function s1(e, f, t, n, a, A) {
14553
14553
  ])) : b("", !0),
14554
14554
  e.hasGroupIcons && e.hasSearch ? (c(), d("div", n1)) : b("", !0),
14555
14555
  e.hasSearch ? (c(), d("div", a1, [
14556
- we(o("input", {
14556
+ Ne(r("input", {
14557
14557
  "onUpdate:modelValue": f[0] || (f[0] = (s) => e.searchValue = s),
14558
14558
  type: "text",
14559
14559
  placeholder: e.placeholder
@@ -14567,20 +14567,20 @@ var i1 = /* @__PURE__ */ rf(Go, [["render", s1]]);
14567
14567
  const o1 = K({
14568
14568
  name: "Header",
14569
14569
  setup() {
14570
- const { state: e, updateSkinTone: f } = ke("store"), t = I(!1), n = I(!1), a = U(() => e.skinTone), A = U(
14570
+ const { state: e, updateSkinTone: f } = be("store"), t = I(!1), n = I(!1), a = U(() => e.skinTone), A = U(
14571
14571
  () => e.options.staticTexts.skinTone || "Skin tone"
14572
- ), s = U(() => !e.options.disableSkinTones), i = ea() ? "is-mac" : "", l = U(() => ({
14572
+ ), s = U(() => !e.options.disableSkinTones), i = ea() ? "is-mac" : "", o = U(() => ({
14573
14573
  ...e.emoji,
14574
14574
  src: Bn + "/" + e.emoji[tf] + ".png"
14575
14575
  }));
14576
- function r(m = !0) {
14576
+ function l(m = !0) {
14577
14577
  t.value = m;
14578
14578
  }
14579
14579
  function g() {
14580
14580
  t.value = !t.value;
14581
14581
  }
14582
14582
  function u(m) {
14583
- f(m), r(!1);
14583
+ f(m), l(!1);
14584
14584
  }
14585
14585
  return Oe(
14586
14586
  () => e.emoji,
@@ -14588,9 +14588,9 @@ const o1 = K({
14588
14588
  n.value = !1;
14589
14589
  }
14590
14590
  ), {
14591
- emoji: l,
14591
+ emoji: o,
14592
14592
  SKIN_TONES: Xs,
14593
- updateSkinToneState: r,
14593
+ updateSkinToneState: l,
14594
14594
  skinTone: t,
14595
14595
  stateSkinTone: a,
14596
14596
  selectSkinTone: u,
@@ -14611,8 +14611,8 @@ function m1(e, f, t, n, a, A) {
14611
14611
  class: "v3-footer",
14612
14612
  onMouseleave: f[2] || (f[2] = (s) => e.updateSkinToneState(!1))
14613
14613
  }, [
14614
- o("div", l1, [
14615
- o("span", {
14614
+ r("div", l1, [
14615
+ r("span", {
14616
14616
  class: x([e.platform, "v3-icon"])
14617
14617
  }, [
14618
14618
  e.native || e.hasError ? (c(), d("span", r1, w(e.unicodeToEmoji(e.emoji.r)), 1)) : (c(), d("img", {
@@ -14622,20 +14622,20 @@ function m1(e, f, t, n, a, A) {
14622
14622
  onError: f[0] || (f[0] = (s) => e.hasError = !0)
14623
14623
  }, null, 40, u1))
14624
14624
  ], 2),
14625
- o("span", c1, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
14625
+ r("span", c1, " :" + w(e.emoji[e.EMOJI_NAME_KEY][1] || e.emoji[e.EMOJI_NAME_KEY][0]) + ": ", 1)
14626
14626
  ]),
14627
14627
  e.hasSkinTones ? (c(), d($, { key: 0 }, [
14628
- o("button", {
14628
+ r("button", {
14629
14629
  type: "button",
14630
14630
  class: "v3-tone",
14631
14631
  onClick: f[1] || (f[1] = (...s) => e.toggleSkinToneState && e.toggleSkinToneState(...s))
14632
14632
  }, [
14633
- o("span", d1, w(e.skinToneText), 1),
14634
- o("span", {
14633
+ r("span", d1, w(e.skinToneText), 1),
14634
+ r("span", {
14635
14635
  class: x(`v3-icon v3-tone-${e.stateSkinTone}`)
14636
14636
  }, null, 2)
14637
14637
  ]),
14638
- o("div", {
14638
+ r("div", {
14639
14639
  class: x([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
14640
14640
  }, [
14641
14641
  (c(!0), d($, null, Z(e.SKIN_TONES, (s) => (c(), d("button", {
@@ -14688,18 +14688,18 @@ const h1 = K({
14688
14688
  },
14689
14689
  setup(e, { emit: f }) {
14690
14690
  const t = I(), n = I(), a = I(), A = I(!1), s = I(e.text), i = e.type === "input" || e.type === "textarea";
14691
- let l = -1;
14692
- const { state: r } = ke("store"), g = U(() => r.options.colorTheme);
14691
+ let o = -1;
14692
+ const { state: l } = be("store"), g = U(() => l.options.colorTheme);
14693
14693
  function u(y) {
14694
14694
  if (i) {
14695
- const _ = r.options.mode;
14696
- _ === "prepend" ? s.value = y.i + s.value : _ === "insert" && l !== -1 ? (s.value = `${s.value.slice(0, l)}${y.i}${s.value.slice(l)}`, l += y.i.length) : s.value += y.i, f("update:text", s.value);
14695
+ const _ = l.options.mode;
14696
+ _ === "prepend" ? s.value = y.i + s.value : _ === "insert" && o !== -1 ? (s.value = `${s.value.slice(0, o)}${y.i}${s.value.slice(o)}`, o += y.i.length) : s.value += y.i, f("update:text", s.value);
14697
14697
  }
14698
14698
  f("select", y);
14699
14699
  }
14700
14700
  function m() {
14701
14701
  var y;
14702
- t.value && (l = ((y = t.value) == null ? void 0 : y.selectionEnd) || -1);
14702
+ t.value && (o = ((y = t.value) == null ? void 0 : y.selectionEnd) || -1);
14703
14703
  }
14704
14704
  function p(y) {
14705
14705
  var _;
@@ -14709,7 +14709,7 @@ const h1 = K({
14709
14709
  }
14710
14710
  function h() {
14711
14711
  if (n.value && a.value && i) {
14712
- let y = r.options.offset;
14712
+ let y = l.options.offset;
14713
14713
  typeof y != "number" && (y = 6), Vo(n.value, a.value, {
14714
14714
  placement: "bottom-end",
14715
14715
  modifiers: [
@@ -14726,7 +14726,7 @@ const h1 = K({
14726
14726
  function M(y) {
14727
14727
  s.value = y.target.value || "", f("update:text", s.value);
14728
14728
  }
14729
- return Ne(() => {
14729
+ return pe(() => {
14730
14730
  h();
14731
14731
  }), wa(() => {
14732
14732
  document.body.removeEventListener("click", p);
@@ -14749,46 +14749,46 @@ const h1 = K({
14749
14749
  class: "v3-input-emoji-picker"
14750
14750
  }, y1 = { class: "v3-input-picker-root" }, b1 = ["value"], v1 = ["value"], I1 = ["src"];
14751
14751
  function _1(e, f, t, n, a, A) {
14752
- const s = If("Header"), i = If("Body"), l = If("Footer");
14752
+ const s = If("Header"), i = If("Body"), o = If("Footer");
14753
14753
  return e.isInputType ? (c(), d("div", M1, [
14754
- o("div", y1, [
14754
+ r("div", y1, [
14755
14755
  e.type === "input" ? (c(), d("input", {
14756
14756
  key: 0,
14757
14757
  ref: "elem",
14758
14758
  value: e.input,
14759
14759
  type: "text",
14760
14760
  class: "v3-emoji-picker-input",
14761
- onInput: f[0] || (f[0] = (...r) => e.onChangeText && e.onChangeText(...r)),
14762
- onBlur: f[1] || (f[1] = (...r) => e.updateCursor && e.updateCursor(...r))
14761
+ onInput: f[0] || (f[0] = (...l) => e.onChangeText && e.onChangeText(...l)),
14762
+ onBlur: f[1] || (f[1] = (...l) => e.updateCursor && e.updateCursor(...l))
14763
14763
  }, null, 40, b1)) : (c(), d("textarea", {
14764
14764
  key: 1,
14765
14765
  ref: "elem",
14766
14766
  value: e.input,
14767
14767
  class: "v3-emoji-picker-textarea",
14768
- onInput: f[2] || (f[2] = (...r) => e.onChangeText && e.onChangeText(...r)),
14769
- onBlur: f[3] || (f[3] = (...r) => e.updateCursor && e.updateCursor(...r))
14768
+ onInput: f[2] || (f[2] = (...l) => e.onChangeText && e.onChangeText(...l)),
14769
+ onBlur: f[3] || (f[3] = (...l) => e.updateCursor && e.updateCursor(...l))
14770
14770
  }, null, 40, v1)),
14771
- o("div", {
14771
+ r("div", {
14772
14772
  class: x(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
14773
14773
  }, [
14774
- o("button", {
14774
+ r("button", {
14775
14775
  ref: "button",
14776
14776
  type: "button",
14777
14777
  class: "v3-input-picker-icon",
14778
- onClick: f[4] || (f[4] = (r) => e.open = !e.open)
14778
+ onClick: f[4] || (f[4] = (l) => e.open = !e.open)
14779
14779
  }, [
14780
- o("img", {
14780
+ r("img", {
14781
14781
  src: e.face,
14782
14782
  alt: ""
14783
14783
  }, null, 8, I1)
14784
14784
  ], 512),
14785
- o("div", {
14785
+ r("div", {
14786
14786
  ref: "picker",
14787
14787
  class: x(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
14788
14788
  }, [
14789
14789
  L(s),
14790
14790
  L(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
14791
- L(l)
14791
+ L(o)
14792
14792
  ], 2)
14793
14793
  ], 2)
14794
14794
  ])
@@ -14798,7 +14798,7 @@ function _1(e, f, t, n, a, A) {
14798
14798
  }, [
14799
14799
  L(s),
14800
14800
  L(i, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
14801
- L(l)
14801
+ L(o)
14802
14802
  ], 2));
14803
14803
  }
14804
14804
  var w1 = /* @__PURE__ */ rf(h1, [["render", _1]]);
@@ -14917,7 +14917,7 @@ const k1 = K({
14917
14917
  });
14918
14918
  function N1(e, f, t, n, a, A) {
14919
14919
  const s = If("picker-root");
14920
- return c(), F(s, {
14920
+ return c(), P(s, {
14921
14921
  type: e.type,
14922
14922
  text: e.input,
14923
14923
  onSelect: f[0] || (f[0] = (i) => e.$emit("select", i)),
@@ -14939,12 +14939,12 @@ const j1 = {
14939
14939
  }
14940
14940
  },
14941
14941
  setup(e) {
14942
- const f = e, t = I(null), n = I(null), a = ke("chatAppId"), { setMessageText: A, getMessage: s } = At(a), i = U(() => {
14942
+ const f = e, t = I(null), n = I(null), a = be("chatAppId"), { setMessageText: A, getMessage: s } = At(a), i = U(() => {
14943
14943
  if (document.documentElement.classList.contains("dark"))
14944
14944
  return "dark";
14945
- }), l = (p) => {
14945
+ }), o = (p) => {
14946
14946
  A(s().text + p.i);
14947
- }, r = () => {
14947
+ }, l = () => {
14948
14948
  f.mode == "click" && f.state == "active" && (t.value.style.display = "inherit");
14949
14949
  }, g = () => {
14950
14950
  f.mode == "hover" && f.state == "active" && (t.value.style.display = "inherit");
@@ -14953,35 +14953,35 @@ const j1 = {
14953
14953
  }, m = (p) => {
14954
14954
  f.mode == "click" && !n.value.contains(p.target) && !t.value.contains(p.target) && (t.value.style.display = "none");
14955
14955
  };
14956
- return Ne(() => {
14956
+ return pe(() => {
14957
14957
  t.value.style.display = "none", document.addEventListener("click", m);
14958
14958
  }), zt(() => {
14959
14959
  document.removeEventListener("click", m);
14960
14960
  }), (p, h) => (c(), d($, null, [
14961
- o("div", {
14961
+ r("div", {
14962
14962
  ref_key: "emojiButton",
14963
14963
  ref: n,
14964
14964
  class: x(["button", { "button-disabled": e.state == "disabled" }]),
14965
- onClick: r,
14965
+ onClick: l,
14966
14966
  onMouseover: g,
14967
14967
  onMouseout: u
14968
14968
  }, h[0] || (h[0] = [
14969
- o("span", { class: "pi pi-face-smile" }, null, -1)
14969
+ r("span", { class: "pi pi-face-smile" }, null, -1)
14970
14970
  ]), 34),
14971
- L(q, null, {
14972
- default: H(() => [
14973
- o("div", {
14971
+ L(H, null, {
14972
+ default: F(() => [
14973
+ r("div", {
14974
14974
  ref_key: "emoji",
14975
14975
  ref: t,
14976
14976
  class: "emoji",
14977
14977
  onMouseover: g,
14978
14978
  onMouseout: u
14979
14979
  }, [
14980
- L(j(D1), {
14980
+ L(D(D1), {
14981
14981
  native: !0,
14982
14982
  theme: i.value,
14983
14983
  "picker-type": "",
14984
- onSelect: l
14984
+ onSelect: o
14985
14985
  }, null, 8, ["theme"])
14986
14986
  ], 544)
14987
14987
  ]),
@@ -14989,7 +14989,7 @@ const j1 = {
14989
14989
  })
14990
14990
  ], 64));
14991
14991
  }
14992
- }, Vu = /* @__PURE__ */ z(j1, [["__scopeId", "data-v-116254cb"]]), E1 = { class: "context-menu" }, T1 = { class: "context-menu__container" }, V1 = { class: "context-menu__list" }, x1 = ["onClick"], S1 = ["src"], z1 = {
14992
+ }, Eu = /* @__PURE__ */ z(j1, [["__scopeId", "data-v-116254cb"]]), E1 = { class: "context-menu" }, T1 = { class: "context-menu__container" }, V1 = { class: "context-menu__list" }, x1 = ["onClick"], S1 = ["src"], z1 = {
14993
14993
  __name: "ContextMenu",
14994
14994
  props: {
14995
14995
  actions: {
@@ -15004,12 +15004,12 @@ const j1 = {
15004
15004
  n("click", s);
15005
15005
  };
15006
15006
  return (A, s) => (c(), d("div", E1, [
15007
- o("div", T1, [
15008
- o("ul", V1, [
15009
- (c(!0), d($, null, Z(t.actions, (i, l) => (c(), d("li", {
15010
- key: l,
15007
+ r("div", T1, [
15008
+ r("ul", V1, [
15009
+ (c(!0), d($, null, Z(t.actions, (i, o) => (c(), d("li", {
15010
+ key: o,
15011
15011
  class: "context-menu__item",
15012
- onClick: (r) => a(l)
15012
+ onClick: (l) => a(o)
15013
15013
  }, [
15014
15014
  i.icon ? (c(), d("img", {
15015
15015
  key: 0,
@@ -15020,7 +15020,7 @@ const j1 = {
15020
15020
  key: 1,
15021
15021
  class: x("pi pi-" + i.prime)
15022
15022
  }, null, 2)) : b("", !0),
15023
- o("span", null, w(i.title), 1)
15023
+ r("span", null, w(i.title), 1)
15024
15024
  ], 8, x1))), 128))
15025
15025
  ])
15026
15026
  ])
@@ -15050,11 +15050,11 @@ const j1 = {
15050
15050
  }, s = () => {
15051
15051
  n.value = !1, t.value = !1;
15052
15052
  }, i = U(() => $e(f.message.status));
15053
- function l(r) {
15054
- return r.position === "left" ? "file-message__left" : "file-message__right";
15053
+ function o(l) {
15054
+ return l.position === "left" ? "file-message__left" : "file-message__right";
15055
15055
  }
15056
- return (r, g) => (c(), d("div", {
15057
- class: x(["file-message", l(e.message)]),
15056
+ return (l, g) => (c(), d("div", {
15057
+ class: x(["file-message", o(e.message)]),
15058
15058
  messageId: e.message.messageId,
15059
15059
  onMouseleave: s
15060
15060
  }, [
@@ -15064,30 +15064,30 @@ const j1 = {
15064
15064
  src: e.message.avatar,
15065
15065
  height: "32",
15066
15066
  width: "32",
15067
- style: P({ gridRow: e.message.subText ? "2" : "1" })
15067
+ style: q({ gridRow: e.message.subText ? "2" : "1" })
15068
15068
  }, null, 12, C1)) : b("", !0),
15069
15069
  e.message.subText ? (c(), d("p", L1, w(e.message.subText), 1)) : b("", !0),
15070
- o("div", {
15070
+ r("div", {
15071
15071
  class: "file-message__content",
15072
15072
  onMouseenter: A
15073
15073
  }, [
15074
- o("a", {
15074
+ r("a", {
15075
15075
  class: "file-message__link",
15076
15076
  href: e.message.url,
15077
15077
  download: "",
15078
15078
  target: "_blank"
15079
15079
  }, [
15080
- g[1] || (g[1] = o("span", { class: "pi pi-file" }, null, -1)),
15081
- o("p", B1, w(e.message.filename), 1)
15080
+ g[1] || (g[1] = r("span", { class: "pi pi-file" }, null, -1)),
15081
+ r("p", B1, w(e.message.filename), 1)
15082
15082
  ], 8, U1),
15083
- o("div", Q1, [
15084
- o("span", R1, w(e.message.time), 1),
15085
- l(e.message) === "file-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
15083
+ r("div", Q1, [
15084
+ r("span", R1, w(e.message.time), 1),
15085
+ o(e.message) === "file-message__right" && D(Pe).includes(e.message.status) ? (c(), d("div", {
15086
15086
  key: 0,
15087
15087
  class: x(["file-message__status", i.value])
15088
15088
  }, [
15089
15089
  e.message.status !== "sent" ? (c(), d("span", Y1)) : b("", !0),
15090
- g[2] || (g[2] = o("span", { class: "pi pi-check" }, null, -1))
15090
+ g[2] || (g[2] = r("span", { class: "pi pi-check" }, null, -1))
15091
15091
  ], 2)) : b("", !0)
15092
15092
  ]),
15093
15093
  n.value && e.message.actions ? (c(), d("button", {
@@ -15095,19 +15095,19 @@ const j1 = {
15095
15095
  class: "file-message__menu-button",
15096
15096
  onClick: g[0] || (g[0] = (u) => t.value = !t.value)
15097
15097
  }, g[3] || (g[3] = [
15098
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
15098
+ r("span", { class: "pi pi-ellipsis-h" }, null, -1)
15099
15099
  ]))) : b("", !0),
15100
- o("a", {
15100
+ r("a", {
15101
15101
  class: "file-message__download-button",
15102
15102
  href: e.message.url,
15103
15103
  download: "",
15104
15104
  target: "_blank"
15105
15105
  }, g[4] || (g[4] = [
15106
- o("span", { class: "pi pi-download" }, null, -1)
15106
+ r("span", { class: "pi pi-download" }, null, -1)
15107
15107
  ]), 8, q1),
15108
- L(q, null, {
15109
- default: H(() => [
15110
- t.value && e.message.actions ? (c(), F(j(je), {
15108
+ L(H, null, {
15109
+ default: F(() => [
15110
+ t.value && e.message.actions ? (c(), P(D(je), {
15111
15111
  key: 0,
15112
15112
  class: "file-message__context-menu",
15113
15113
  actions: e.message.actions,
@@ -15117,7 +15117,7 @@ const j1 = {
15117
15117
  _: 1
15118
15118
  }),
15119
15119
  e.message.text ? (c(), d("div", H1, [
15120
- o("p", null, w(e.message.text), 1)
15120
+ r("p", null, w(e.message.text), 1)
15121
15121
  ])) : b("", !0)
15122
15122
  ], 32)
15123
15123
  ], 42, O1));
@@ -15152,16 +15152,16 @@ const j1 = {
15152
15152
  const f = e, t = I(!1), n = I(!1), a = I(!1), A = I(!1), s = () => {
15153
15153
  }, i = () => {
15154
15154
  a.value = !0, A.value = !0;
15155
- }, l = () => {
15155
+ }, o = () => {
15156
15156
  a.value = !1, n.value = !1;
15157
- }, r = U(() => $e(f.message.status));
15157
+ }, l = U(() => $e(f.message.status));
15158
15158
  function g(u) {
15159
15159
  return u.position === "left" ? "image-message__left" : "image-message__right";
15160
15160
  }
15161
15161
  return (u, m) => (c(), d("div", {
15162
15162
  class: x(["image-message", g(e.message)]),
15163
15163
  messageId: e.message.messageId,
15164
- onMouseleave: l
15164
+ onMouseleave: o
15165
15165
  }, [
15166
15166
  e.message.avatar ? (c(), d("img", {
15167
15167
  key: 0,
@@ -15171,40 +15171,40 @@ const j1 = {
15171
15171
  width: "32"
15172
15172
  }, null, 8, W1)) : b("", !0),
15173
15173
  e.message.subText ? (c(), d("p", K1, w(e.message.subText), 1)) : b("", !0),
15174
- o("div", J1, [
15175
- o("div", {
15174
+ r("div", J1, [
15175
+ r("div", {
15176
15176
  class: "image-message__preview-button",
15177
15177
  onClick: m[0] || (m[0] = (p) => t.value = !0),
15178
15178
  onMouseenter: i,
15179
15179
  onMouseleave: m[1] || (m[1] = (p) => A.value = !A.value)
15180
15180
  }, [
15181
- o("img", {
15181
+ r("img", {
15182
15182
  class: "image-message__preview-image",
15183
- style: P({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
15183
+ style: q({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
15184
15184
  src: e.message.url,
15185
15185
  alt: e.message.alt
15186
15186
  }, null, 12, G1),
15187
- L(q, { name: "modal-fade" }, {
15188
- default: H(() => [
15187
+ L(H, { name: "modal-fade" }, {
15188
+ default: F(() => [
15189
15189
  A.value ? (c(), d("div", Z1, [
15190
15190
  e.message.views ? (c(), d("div", X1, [
15191
- m[4] || (m[4] = o("span", { class: "pi pi-eye" }, null, -1)),
15192
- o("p", null, w(e.message.views), 1)
15191
+ m[4] || (m[4] = r("span", { class: "pi pi-eye" }, null, -1)),
15192
+ r("p", null, w(e.message.views), 1)
15193
15193
  ])) : b("", !0),
15194
- o("span", el, w(e.message.time), 1),
15195
- g(e.message) === "image-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
15194
+ r("span", el, w(e.message.time), 1),
15195
+ g(e.message) === "image-message__right" && D(Pe).includes(e.message.status) ? (c(), d("div", {
15196
15196
  key: 1,
15197
- class: x(["image-message__status", r.value])
15197
+ class: x(["image-message__status", l.value])
15198
15198
  }, [
15199
15199
  e.message.status !== "sent" ? (c(), d("span", fl)) : b("", !0),
15200
- m[5] || (m[5] = o("span", { class: "pi pi-check" }, null, -1))
15200
+ m[5] || (m[5] = r("span", { class: "pi pi-check" }, null, -1))
15201
15201
  ], 2)) : b("", !0)
15202
15202
  ])) : b("", !0)
15203
15203
  ]),
15204
15204
  _: 1
15205
15205
  }),
15206
- L(q, { name: "modal-fade" }, {
15207
- default: H(() => [
15206
+ L(H, { name: "modal-fade" }, {
15207
+ default: F(() => [
15208
15208
  A.value ? (c(), d("a", {
15209
15209
  key: 0,
15210
15210
  class: "image-message__download-button",
@@ -15212,27 +15212,27 @@ const j1 = {
15212
15212
  download: "",
15213
15213
  target: "_blank"
15214
15214
  }, m[6] || (m[6] = [
15215
- o("span", { class: "pi pi-download" }, null, -1)
15215
+ r("span", { class: "pi pi-download" }, null, -1)
15216
15216
  ]), 8, tl)) : b("", !0)
15217
15217
  ]),
15218
15218
  _: 1
15219
15219
  })
15220
15220
  ], 32),
15221
- L(q, { name: "modal-fade" }, {
15222
- default: H(() => [
15221
+ L(H, { name: "modal-fade" }, {
15222
+ default: F(() => [
15223
15223
  a.value && e.message.actions ? (c(), d("button", {
15224
15224
  key: 0,
15225
15225
  class: "image-message__menu-button",
15226
15226
  onClick: m[2] || (m[2] = (p) => n.value = !n.value)
15227
15227
  }, m[7] || (m[7] = [
15228
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
15228
+ r("span", { class: "pi pi-ellipsis-h" }, null, -1)
15229
15229
  ]))) : b("", !0)
15230
15230
  ]),
15231
15231
  _: 1
15232
15232
  }),
15233
- L(q, { name: "context-menu" }, {
15234
- default: H(() => [
15235
- n.value && e.message.actions ? (c(), F(j(je), {
15233
+ L(H, { name: "context-menu" }, {
15234
+ default: F(() => [
15235
+ n.value && e.message.actions ? (c(), P(D(je), {
15236
15236
  key: 0,
15237
15237
  class: "image-message__context-menu",
15238
15238
  actions: e.message.actions,
@@ -15242,23 +15242,23 @@ const j1 = {
15242
15242
  _: 1
15243
15243
  }),
15244
15244
  e.message.text ? (c(), d("div", nl, [
15245
- o("p", null, w(e.message.text), 1)
15245
+ r("p", null, w(e.message.text), 1)
15246
15246
  ])) : b("", !0)
15247
15247
  ]),
15248
- (c(), F(Ot, { to: "body" }, [
15249
- L(q, { name: "modal-fade" }, {
15250
- default: H(() => [
15248
+ (c(), P(Ot, { to: "body" }, [
15249
+ L(H, { name: "modal-fade" }, {
15250
+ default: F(() => [
15251
15251
  t.value ? (c(), d("div", al, [
15252
- o("div", Al, [
15253
- o("button", {
15252
+ r("div", Al, [
15253
+ r("button", {
15254
15254
  class: "image-message__modal-close-button",
15255
15255
  onClick: m[3] || (m[3] = (p) => t.value = !1)
15256
15256
  }, m[8] || (m[8] = [
15257
- o("span", null, [
15258
- o("i", { class: "pi pi-times" })
15257
+ r("span", null, [
15258
+ r("i", { class: "pi pi-times" })
15259
15259
  ], -1)
15260
15260
  ])),
15261
- o("img", {
15261
+ r("img", {
15262
15262
  class: "image-message__modal-image",
15263
15263
  src: e.message.url,
15264
15264
  alt: e.message.alt
@@ -15408,18 +15408,18 @@ fe.prototype = {
15408
15408
  if (i ? (s = new fe(), Fe(s.j, i.j), s.jr.push.apply(s.jr, i.jr), s.jd = i.jd, s.t = i.t) : s = new fe(), A) {
15409
15409
  if (n)
15410
15410
  if (s.t && typeof s.t == "string") {
15411
- const l = Fe(gl(s.t, n), t);
15412
- xe(A, l, n);
15411
+ const o = Fe(gl(s.t, n), t);
15412
+ xe(A, o, n);
15413
15413
  } else t && xe(A, t, n);
15414
15414
  s.t = A;
15415
15415
  }
15416
15416
  return a.j[e] = s, s;
15417
15417
  }
15418
15418
  };
15419
- const V = (e, f, t, n, a) => e.ta(f, t, n, a), ne = (e, f, t, n, a) => e.tr(f, t, n, a), jn = (e, f, t, n, a) => e.ts(f, t, n, a), v = (e, f, t, n, a) => e.tt(f, t, n, a), Me = "WORD", Et = "UWORD", Af = "LOCALHOST", Tt = "TLD", Vt = "UTLD", Nf = "SCHEME", Ue = "SLASH_SCHEME", $t = "NUM", na = "WS", Wt = "NL", Xe = "OPENBRACE", ef = "CLOSEBRACE", Tf = "OPENBRACKET", Vf = "CLOSEBRACKET", xf = "OPENPAREN", Sf = "CLOSEPAREN", zf = "OPENANGLEBRACKET", Of = "CLOSEANGLEBRACKET", Cf = "FULLWIDTHLEFTPAREN", Lf = "FULLWIDTHRIGHTPAREN", Uf = "LEFTCORNERBRACKET", Bf = "RIGHTCORNERBRACKET", Qf = "LEFTWHITECORNERBRACKET", Rf = "RIGHTWHITECORNERBRACKET", Yf = "FULLWIDTHLESSTHAN", qf = "FULLWIDTHGREATERTHAN", Hf = "AMPERSAND", Ff = "APOSTROPHE", Pf = "ASTERISK", ve = "AT", $f = "BACKSLASH", Wf = "BACKTICK", Kf = "CARET", Ie = "COLON", Kt = "COMMA", Jf = "DOLLAR", re = "DOT", Gf = "EQUALS", Jt = "EXCLAMATION", ue = "HYPHEN", Zf = "PERCENT", Xf = "PIPE", et = "PLUS", ft = "POUND", tt = "QUERY", Gt = "QUOTE", aa = "FULLWIDTHMIDDLEDOT", Zt = "SEMI", ce = "SLASH", ff = "TILDE", nt = "UNDERSCORE", Aa = "EMOJI", at = "SYM";
15419
+ const V = (e, f, t, n, a) => e.ta(f, t, n, a), ne = (e, f, t, n, a) => e.tr(f, t, n, a), jn = (e, f, t, n, a) => e.ts(f, t, n, a), v = (e, f, t, n, a) => e.tt(f, t, n, a), ye = "WORD", Et = "UWORD", Af = "LOCALHOST", Tt = "TLD", Vt = "UTLD", Nf = "SCHEME", Ue = "SLASH_SCHEME", $t = "NUM", na = "WS", Wt = "NL", Xe = "OPENBRACE", ef = "CLOSEBRACE", Tf = "OPENBRACKET", Vf = "CLOSEBRACKET", xf = "OPENPAREN", Sf = "CLOSEPAREN", zf = "OPENANGLEBRACKET", Of = "CLOSEANGLEBRACKET", Cf = "FULLWIDTHLEFTPAREN", Lf = "FULLWIDTHRIGHTPAREN", Uf = "LEFTCORNERBRACKET", Bf = "RIGHTCORNERBRACKET", Qf = "LEFTWHITECORNERBRACKET", Rf = "RIGHTWHITECORNERBRACKET", Yf = "FULLWIDTHLESSTHAN", qf = "FULLWIDTHGREATERTHAN", Hf = "AMPERSAND", Ff = "APOSTROPHE", Pf = "ASTERISK", _e = "AT", $f = "BACKSLASH", Wf = "BACKTICK", Kf = "CARET", we = "COLON", Kt = "COMMA", Jf = "DOLLAR", re = "DOT", Gf = "EQUALS", Jt = "EXCLAMATION", ue = "HYPHEN", Zf = "PERCENT", Xf = "PIPE", et = "PLUS", ft = "POUND", tt = "QUERY", Gt = "QUOTE", aa = "FULLWIDTHMIDDLEDOT", Zt = "SEMI", ce = "SLASH", ff = "TILDE", nt = "UNDERSCORE", Aa = "EMOJI", at = "SYM";
15420
15420
  var sa = /* @__PURE__ */ Object.freeze({
15421
15421
  __proto__: null,
15422
- WORD: Me,
15422
+ WORD: ye,
15423
15423
  UWORD: Et,
15424
15424
  LOCALHOST: Af,
15425
15425
  TLD: Tt,
@@ -15448,11 +15448,11 @@ var sa = /* @__PURE__ */ Object.freeze({
15448
15448
  AMPERSAND: Hf,
15449
15449
  APOSTROPHE: Ff,
15450
15450
  ASTERISK: Pf,
15451
- AT: ve,
15451
+ AT: _e,
15452
15452
  BACKSLASH: $f,
15453
15453
  BACKTICK: Wf,
15454
15454
  CARET: Kf,
15455
- COLON: Ie,
15455
+ COLON: we,
15456
15456
  COMMA: Kt,
15457
15457
  DOLLAR: Jf,
15458
15458
  DOT: re,
@@ -15480,12 +15480,12 @@ function hl(e = []) {
15480
15480
  const f = {};
15481
15481
  fe.groups = f;
15482
15482
  const t = new fe();
15483
- yf == null && (yf = Vn(ll)), bf == null && (bf = Vn(rl)), v(t, "'", Ff), v(t, "{", Xe), v(t, "}", ef), v(t, "[", Tf), v(t, "]", Vf), v(t, "(", xf), v(t, ")", Sf), v(t, "<", zf), v(t, ">", Of), v(t, "(", Cf), v(t, ")", Lf), v(t, "「", Uf), v(t, "」", Bf), v(t, "『", Qf), v(t, "』", Rf), v(t, "<", Yf), v(t, ">", qf), v(t, "&", Hf), v(t, "*", Pf), v(t, "@", ve), v(t, "`", Wf), v(t, "^", Kf), v(t, ":", Ie), v(t, ",", Kt), v(t, "$", Jf), v(t, ".", re), v(t, "=", Gf), v(t, "!", Jt), v(t, "-", ue), v(t, "%", Zf), v(t, "|", Xf), v(t, "+", et), v(t, "#", ft), v(t, "?", tt), v(t, '"', Gt), v(t, "/", ce), v(t, ";", Zt), v(t, "~", ff), v(t, "_", nt), v(t, "\\", $f), v(t, "・", aa);
15483
+ yf == null && (yf = Vn(ll)), bf == null && (bf = Vn(rl)), v(t, "'", Ff), v(t, "{", Xe), v(t, "}", ef), v(t, "[", Tf), v(t, "]", Vf), v(t, "(", xf), v(t, ")", Sf), v(t, "<", zf), v(t, ">", Of), v(t, "(", Cf), v(t, ")", Lf), v(t, "「", Uf), v(t, "」", Bf), v(t, "『", Qf), v(t, "』", Rf), v(t, "<", Yf), v(t, ">", qf), v(t, "&", Hf), v(t, "*", Pf), v(t, "@", _e), v(t, "`", Wf), v(t, "^", Kf), v(t, ":", we), v(t, ",", Kt), v(t, "$", Jf), v(t, ".", re), v(t, "=", Gf), v(t, "!", Jt), v(t, "-", ue), v(t, "%", Zf), v(t, "|", Xf), v(t, "+", et), v(t, "#", ft), v(t, "?", tt), v(t, '"', Gt), v(t, "/", ce), v(t, ";", Zt), v(t, "~", ff), v(t, "_", nt), v(t, "\\", $f), v(t, "・", aa);
15484
15484
  const n = ne(t, yt, $t, {
15485
15485
  [kt]: !0
15486
15486
  });
15487
15487
  ne(n, yt, n);
15488
- const a = ne(t, Le, Me, {
15488
+ const a = ne(t, Le, ye, {
15489
15489
  [Nt]: !0
15490
15490
  });
15491
15491
  ne(a, Le, a);
@@ -15503,20 +15503,20 @@ function hl(e = []) {
15503
15503
  [ta]: !0
15504
15504
  });
15505
15505
  ne(i, Mt, i), v(i, ml, i);
15506
- const l = v(i, pl);
15507
- ne(l, Mt, i);
15508
- const r = [[Le, a]], g = [[Le, null], [ht, A]];
15506
+ const o = v(i, pl);
15507
+ ne(o, Mt, i);
15508
+ const l = [[Le, a]], g = [[Le, null], [ht, A]];
15509
15509
  for (let u = 0; u < yf.length; u++)
15510
- be(t, yf[u], Tt, Me, r);
15510
+ Ie(t, yf[u], Tt, ye, l);
15511
15511
  for (let u = 0; u < bf.length; u++)
15512
- be(t, bf[u], Vt, Et, g);
15512
+ Ie(t, bf[u], Vt, Et, g);
15513
15513
  xe(Tt, {
15514
15514
  tld: !0,
15515
15515
  ascii: !0
15516
15516
  }, f), xe(Vt, {
15517
15517
  utld: !0,
15518
15518
  alpha: !0
15519
- }, f), be(t, "file", Nf, Me, r), be(t, "mailto", Nf, Me, r), be(t, "http", Ue, Me, r), be(t, "https", Ue, Me, r), be(t, "ftp", Ue, Me, r), be(t, "ftps", Ue, Me, r), xe(Nf, {
15519
+ }, f), Ie(t, "file", Nf, ye, l), Ie(t, "mailto", Nf, ye, l), Ie(t, "http", Ue, ye, l), Ie(t, "https", Ue, ye, l), Ie(t, "ftp", Ue, ye, l), Ie(t, "ftps", Ue, ye, l), xe(Nf, {
15520
15520
  scheme: !0,
15521
15521
  ascii: !0
15522
15522
  }, f), xe(Ue, {
@@ -15544,15 +15544,15 @@ function ia(e, f) {
15544
15544
  const t = Ml(f.replace(/[A-Z]/g, (i) => i.toLowerCase())), n = t.length, a = [];
15545
15545
  let A = 0, s = 0;
15546
15546
  for (; s < n; ) {
15547
- let i = e, l = null, r = 0, g = null, u = -1, m = -1;
15548
- for (; s < n && (l = i.go(t[s])); )
15549
- i = l, i.accepts() ? (u = 0, m = 0, g = i) : u >= 0 && (u += t[s].length, m++), r += t[s].length, A += t[s].length, s++;
15550
- A -= u, s -= m, r -= u, a.push({
15547
+ let i = e, o = null, l = 0, g = null, u = -1, m = -1;
15548
+ for (; s < n && (o = i.go(t[s])); )
15549
+ i = o, i.accepts() ? (u = 0, m = 0, g = i) : u >= 0 && (u += t[s].length, m++), l += t[s].length, A += t[s].length, s++;
15550
+ A -= u, s -= m, l -= u, a.push({
15551
15551
  t: g.t,
15552
15552
  // token type/name
15553
- v: f.slice(A - r, A),
15553
+ v: f.slice(A - l, A),
15554
15554
  // string value
15555
- s: A - r,
15555
+ s: A - l,
15556
15556
  // start index
15557
15557
  e: A
15558
15558
  // end index (excluding)
@@ -15569,12 +15569,12 @@ function Ml(e) {
15569
15569
  }
15570
15570
  return f;
15571
15571
  }
15572
- function be(e, f, t, n, a) {
15572
+ function Ie(e, f, t, n, a) {
15573
15573
  let A;
15574
15574
  const s = f.length;
15575
15575
  for (let i = 0; i < s - 1; i++) {
15576
- const l = f[i];
15577
- e.j[l] ? A = e.j[l] : (A = new fe(n), A.jr = a.slice(), e.j[l] = A), e = A;
15576
+ const o = f[i];
15577
+ e.j[o] ? A = e.j[o] : (A = new fe(n), A.jr = a.slice(), e.j[o] = A), e = A;
15578
15578
  }
15579
15579
  return A = new fe(t), A.jr = a.slice(), e.j[f[s - 1]] = A, A;
15580
15580
  }
@@ -15782,8 +15782,8 @@ oa.prototype = {
15782
15782
  * @param {Options} options Formattinng options
15783
15783
  */
15784
15784
  render(e) {
15785
- const f = this, t = this.toHref(e.get("defaultProtocol")), n = e.get("formatHref", t, this), a = e.get("tagName", t, f), A = this.toFormattedString(e), s = {}, i = e.get("className", t, f), l = e.get("target", t, f), r = e.get("rel", t, f), g = e.getObj("attributes", t, f), u = e.getObj("events", t, f);
15786
- return s.href = n, i && (s.class = i), l && (s.target = l), r && (s.rel = r), g && Fe(s, g), {
15785
+ const f = this, t = this.toHref(e.get("defaultProtocol")), n = e.get("formatHref", t, this), a = e.get("tagName", t, f), A = this.toFormattedString(e), s = {}, i = e.get("className", t, f), o = e.get("target", t, f), l = e.get("rel", t, f), g = e.getObj("attributes", t, f), u = e.getObj("events", t, f);
15786
+ return s.href = n, i && (s.class = i), o && (s.target = o), l && (s.rel = l), g && Fe(s, g), {
15787
15787
  tagName: a,
15788
15788
  attributes: s,
15789
15789
  content: A,
@@ -15824,40 +15824,40 @@ const Sn = ot("email", {
15824
15824
  */
15825
15825
  hasProtocol() {
15826
15826
  const e = this.tk;
15827
- return e.length >= 2 && e[0].t !== Af && e[1].t === Ie;
15827
+ return e.length >= 2 && e[0].t !== Af && e[1].t === we;
15828
15828
  }
15829
15829
  }), ae = (e) => new fe(e);
15830
15830
  function bl({
15831
15831
  groups: e
15832
15832
  }) {
15833
- const f = e.domain.concat([Hf, Pf, ve, $f, Wf, Kf, Jf, Gf, ue, $t, Zf, Xf, et, ft, ce, at, ff, nt]), t = [Ff, Ie, Kt, re, Jt, tt, Gt, Zt, zf, Of, Xe, ef, Vf, Tf, xf, Sf, Cf, Lf, Uf, Bf, Qf, Rf, Yf, qf], n = [Hf, Ff, Pf, $f, Wf, Kf, Jf, Gf, ue, Xe, ef, Zf, Xf, et, ft, tt, ce, at, ff, nt], a = ae(), A = v(a, ff);
15833
+ const f = e.domain.concat([Hf, Pf, _e, $f, Wf, Kf, Jf, Gf, ue, $t, Zf, Xf, et, ft, ce, at, ff, nt]), t = [Ff, we, Kt, re, Jt, tt, Gt, Zt, zf, Of, Xe, ef, Vf, Tf, xf, Sf, Cf, Lf, Uf, Bf, Qf, Rf, Yf, qf], n = [Hf, Ff, Pf, $f, Wf, Kf, Jf, Gf, ue, Xe, ef, Zf, Xf, et, ft, tt, ce, at, ff, nt], a = ae(), A = v(a, ff);
15834
15834
  V(A, n, A), V(A, e.domain, A);
15835
- const s = ae(), i = ae(), l = ae();
15836
- V(a, e.domain, s), V(a, e.scheme, i), V(a, e.slashscheme, l), V(s, n, A), V(s, e.domain, s);
15837
- const r = v(s, ve);
15838
- v(A, ve, r), v(i, ve, r), v(l, ve, r);
15835
+ const s = ae(), i = ae(), o = ae();
15836
+ V(a, e.domain, s), V(a, e.scheme, i), V(a, e.slashscheme, o), V(s, n, A), V(s, e.domain, s);
15837
+ const l = v(s, _e);
15838
+ v(A, _e, l), v(i, _e, l), v(o, _e, l);
15839
15839
  const g = v(A, re);
15840
15840
  V(g, n, A), V(g, e.domain, A);
15841
15841
  const u = ae();
15842
- V(r, e.domain, u), V(u, e.domain, u);
15842
+ V(l, e.domain, u), V(u, e.domain, u);
15843
15843
  const m = v(u, re);
15844
15844
  V(m, e.domain, u);
15845
15845
  const p = ae(Sn);
15846
- V(m, e.tld, p), V(m, e.utld, p), v(r, Af, p);
15846
+ V(m, e.tld, p), V(m, e.utld, p), v(l, Af, p);
15847
15847
  const h = v(u, ue);
15848
15848
  V(h, e.domain, u), V(p, e.domain, u), v(p, re, m), v(p, ue, h);
15849
- const M = v(p, Ie);
15849
+ const M = v(p, we);
15850
15850
  V(M, e.numeric, Sn);
15851
15851
  const y = v(s, ue), _ = v(s, re);
15852
15852
  V(y, e.domain, s), V(_, n, A), V(_, e.domain, s);
15853
15853
  const k = ae(vf);
15854
- V(_, e.tld, k), V(_, e.utld, k), V(k, e.domain, s), V(k, n, A), v(k, re, _), v(k, ue, y), v(k, ve, r);
15855
- const D = v(k, Ie), N = ae(vf);
15856
- V(D, e.numeric, N);
15854
+ V(_, e.tld, k), V(_, e.utld, k), V(k, e.domain, s), V(k, n, A), v(k, re, _), v(k, ue, y), v(k, _e, l);
15855
+ const j = v(k, we), N = ae(vf);
15856
+ V(j, e.numeric, N);
15857
15857
  const E = ae(vf), S = ae();
15858
15858
  V(E, f, E), V(E, t, S), V(S, f, E), V(S, t, S), v(k, ce, E), v(N, ce, E);
15859
- const T = v(i, Ie), O = v(l, Ie), Q = v(O, ce), C = v(Q, ce);
15860
- V(i, e.domain, s), v(i, re, _), v(i, ue, y), V(l, e.domain, s), v(l, re, _), v(l, ue, y), V(T, e.domain, E), v(T, ce, E), V(C, e.domain, E), V(C, f, E), v(C, ce, E);
15859
+ const T = v(i, we), O = v(o, we), Q = v(O, ce), C = v(Q, ce);
15860
+ V(i, e.domain, s), v(i, re, _), v(i, ue, y), V(o, e.domain, s), v(o, re, _), v(o, ue, y), V(T, e.domain, E), v(T, ce, E), V(C, e.domain, E), V(C, f, E), v(C, ce, E);
15861
15861
  const B = [
15862
15862
  [Xe, ef],
15863
15863
  // {}
@@ -15877,12 +15877,12 @@ function bl({
15877
15877
  // <>
15878
15878
  ];
15879
15879
  for (let R = 0; R < B.length; R++) {
15880
- const [te, pe] = B[R], le = v(E, te);
15881
- v(S, te, le), v(le, pe, E);
15880
+ const [te, he] = B[R], le = v(E, te);
15881
+ v(S, te, le), v(le, he, E);
15882
15882
  const Y = ae(vf);
15883
15883
  V(le, f, Y);
15884
15884
  const W = ae();
15885
- V(le, t), V(Y, f, Y), V(Y, t, W), V(W, f, Y), V(W, t, W), v(Y, pe, E), v(W, pe, E);
15885
+ V(le, t), V(Y, f, Y), V(Y, t, W), V(W, f, Y), V(W, t, W), v(Y, he, E), v(W, he, E);
15886
15886
  }
15887
15887
  return v(a, Af, k), v(a, Wt, yl), {
15888
15888
  start: a,
@@ -15892,11 +15892,11 @@ function bl({
15892
15892
  function vl(e, f, t) {
15893
15893
  let n = t.length, a = 0, A = [], s = [];
15894
15894
  for (; a < n; ) {
15895
- let i = e, l = null, r = null, g = 0, u = null, m = -1;
15896
- for (; a < n && !(l = i.go(t[a].t)); )
15895
+ let i = e, o = null, l = null, g = 0, u = null, m = -1;
15896
+ for (; a < n && !(o = i.go(t[a].t)); )
15897
15897
  s.push(t[a++]);
15898
- for (; a < n && (r = l || i.go(t[a].t)); )
15899
- l = null, i = r, i.accepts() ? (m = 0, u = i) : m >= 0 && m++, a++, g++;
15898
+ for (; a < n && (l = o || i.go(t[a].t)); )
15899
+ o = null, i = l, i.accepts() ? (m = 0, u = i) : m >= 0 && m++, a++, g++;
15900
15900
  if (m < 0)
15901
15901
  a -= g, a < n && (s.push(t[a]), a++);
15902
15902
  else {
@@ -16004,23 +16004,23 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16004
16004
  function i(h) {
16005
16005
  h.preventDefault(), h.target.href && window.open(h.target.href, "_blank");
16006
16006
  }
16007
- const l = () => {
16007
+ const o = () => {
16008
16008
  A.value = !0;
16009
- }, r = () => {
16009
+ }, l = () => {
16010
16010
  A.value = !1, a.value = !1;
16011
16011
  }, g = U(() => $e(t.message.status)), u = (h) => {
16012
- r(), n("action", { messageId: t.message.messageId, type: "menu", ...h });
16012
+ l(), n("action", { messageId: t.message.messageId, type: "menu", ...h });
16013
16013
  }, m = () => {
16014
- r(), n("action", { messageId: t.message.messageId, type: "views" });
16014
+ l(), n("action", { messageId: t.message.messageId, type: "views" });
16015
16015
  };
16016
16016
  function p(h) {
16017
16017
  return h.position === "left" ? "text-message__left" : "text-message__right";
16018
16018
  }
16019
16019
  return (h, M) => (c(), d("div", Nl, [
16020
- o("div", {
16020
+ r("div", {
16021
16021
  class: x(p(e.message)),
16022
16022
  messageId: e.message.messageId,
16023
- onMouseleave: r
16023
+ onMouseleave: l
16024
16024
  }, [
16025
16025
  e.message.avatar ? (c(), d("img", {
16026
16026
  key: 0,
@@ -16028,34 +16028,34 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16028
16028
  src: e.message.avatar,
16029
16029
  height: "32",
16030
16030
  width: "32",
16031
- style: P({ gridRow: e.message.subText ? "2" : "1" })
16031
+ style: q({ gridRow: e.message.subText ? "2" : "1" })
16032
16032
  }, null, 12, jl)) : b("", !0),
16033
16033
  e.message.subText ? (c(), d("p", El, w(e.message.subText), 1)) : b("", !0),
16034
- o("div", {
16034
+ r("div", {
16035
16035
  class: "text-message__content",
16036
- onMouseenter: l
16036
+ onMouseenter: o
16037
16037
  }, [
16038
- o("p", {
16038
+ r("p", {
16039
16039
  innerHTML: s.value,
16040
16040
  class: "text-message__text",
16041
16041
  onClick: i
16042
16042
  }, null, 8, Tl),
16043
- o("div", Vl, [
16043
+ r("div", Vl, [
16044
16044
  e.message.views ? (c(), d("div", {
16045
16045
  key: 0,
16046
16046
  class: "text-message__views",
16047
16047
  onClick: m
16048
16048
  }, [
16049
- M[1] || (M[1] = o("span", { class: "pi pi-eye" }, null, -1)),
16050
- o("p", null, w(e.message.views), 1)
16049
+ M[1] || (M[1] = r("span", { class: "pi pi-eye" }, null, -1)),
16050
+ r("p", null, w(e.message.views), 1)
16051
16051
  ])) : b("", !0),
16052
16052
  e.message.time ? (c(), d("span", xl, w(e.message.time), 1)) : b("", !0),
16053
- p(e.message) === "text-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
16053
+ p(e.message) === "text-message__right" && D(Pe).includes(e.message.status) ? (c(), d("div", {
16054
16054
  key: 2,
16055
16055
  class: x(["text-message__status", g.value])
16056
16056
  }, [
16057
16057
  e.message.status !== "sent" ? (c(), d("span", Sl)) : b("", !0),
16058
- M[2] || (M[2] = o("span", { class: "pi pi-check" }, null, -1))
16058
+ M[2] || (M[2] = r("span", { class: "pi pi-check" }, null, -1))
16059
16059
  ], 2)) : b("", !0)
16060
16060
  ]),
16061
16061
  A.value && e.message.actions ? (c(), d("button", {
@@ -16063,11 +16063,11 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16063
16063
  class: "text-message__menu-button",
16064
16064
  onClick: M[0] || (M[0] = (y) => a.value = !a.value)
16065
16065
  }, M[3] || (M[3] = [
16066
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
16066
+ r("span", { class: "pi pi-ellipsis-h" }, null, -1)
16067
16067
  ]))) : b("", !0),
16068
- L(q, null, {
16069
- default: H(() => [
16070
- a.value && e.message.actions ? (c(), F(j(je), {
16068
+ L(H, null, {
16069
+ default: F(() => [
16070
+ a.value && e.message.actions ? (c(), P(D(je), {
16071
16071
  key: 0,
16072
16072
  class: "text-message__context-menu",
16073
16073
  actions: e.message.actions,
@@ -16098,9 +16098,9 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16098
16098
  }
16099
16099
  },
16100
16100
  setup(e) {
16101
- const f = e, t = I(), n = I(!1), a = I(0), A = I(0), s = I(!1), i = I(!1), l = () => {
16101
+ const f = e, t = I(), n = I(!1), a = I(0), A = I(0), s = I(!1), i = I(!1), o = () => {
16102
16102
  i.value = !0;
16103
- }, r = () => {
16103
+ }, l = () => {
16104
16104
  i.value = !1, s.value = !1;
16105
16105
  }, g = () => {
16106
16106
  }, u = U(() => $e(f.message.status));
@@ -16108,22 +16108,22 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16108
16108
  t.value && (n.value ? t.value.pause() : t.value.play(), n.value = !n.value);
16109
16109
  }
16110
16110
  const p = (k) => {
16111
- const D = Math.floor(k / 60), N = Math.floor(k % 60);
16112
- return `${D.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
16111
+ const j = Math.floor(k / 60), N = Math.floor(k % 60);
16112
+ return `${j.toString().padStart(2, "0")}:${N.toString().padStart(2, "0")}`;
16113
16113
  }, h = U(() => t.value ? p(A.value) : "0:00"), M = U(() => t.value ? p(a.value) : "0:00"), y = U(() => a.value > 0 ? A.value / a.value * 100 : 0);
16114
16114
  function _(k) {
16115
16115
  return k.position === "left" ? "audio-message__left" : "audio-message__right";
16116
16116
  }
16117
- return Ne(() => {
16117
+ return pe(() => {
16118
16118
  t.value != null && (t.value.addEventListener("loadedmetadata", () => {
16119
16119
  a.value = t.value != null ? t.value.duration : 0;
16120
16120
  }), t.value.addEventListener("timeupdate", () => {
16121
16121
  A.value = t.value != null ? t.value.currentTime : 0;
16122
16122
  }));
16123
- }), (k, D) => (c(), d("div", {
16123
+ }), (k, j) => (c(), d("div", {
16124
16124
  class: x(["audio-message", _(e.message)]),
16125
16125
  messageId: e.message.messageId,
16126
- onMouseleave: r
16126
+ onMouseleave: l
16127
16127
  }, [
16128
16128
  e.message.avatar ? (c(), d("img", {
16129
16129
  key: 0,
@@ -16131,69 +16131,69 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16131
16131
  src: e.message.avatar,
16132
16132
  height: "32",
16133
16133
  width: "32",
16134
- style: P({ gridRow: e.message.subText ? "2" : "1" })
16134
+ style: q({ gridRow: e.message.subText ? "2" : "1" })
16135
16135
  }, null, 12, Ll)) : b("", !0),
16136
16136
  e.message.subText ? (c(), d("p", Ul, w(e.message.subText), 1)) : b("", !0),
16137
- o("div", {
16137
+ r("div", {
16138
16138
  class: "audio-message__content",
16139
- onMouseenter: l
16139
+ onMouseenter: o
16140
16140
  }, [
16141
- o("audio", {
16141
+ r("audio", {
16142
16142
  ref_key: "player",
16143
16143
  ref: t,
16144
16144
  src: e.message.url
16145
16145
  }, null, 8, Bl),
16146
- we(o("button", {
16146
+ Ne(r("button", {
16147
16147
  class: "audio-message__play",
16148
16148
  onClick: m
16149
- }, D[1] || (D[1] = [
16150
- o("span", { class: "pi pi-play" }, null, -1)
16149
+ }, j[1] || (j[1] = [
16150
+ r("span", { class: "pi pi-play" }, null, -1)
16151
16151
  ]), 512), [
16152
16152
  [Df, !n.value]
16153
16153
  ]),
16154
- we(o("button", {
16154
+ Ne(r("button", {
16155
16155
  class: "audio-message__pause",
16156
16156
  onClick: m
16157
- }, D[2] || (D[2] = [
16158
- o("span", { class: "pi pi-pause" }, null, -1)
16157
+ }, j[2] || (j[2] = [
16158
+ r("span", { class: "pi pi-pause" }, null, -1)
16159
16159
  ]), 512), [
16160
16160
  [Df, n.value]
16161
16161
  ]),
16162
- o("div", Ql, [
16163
- o("div", {
16162
+ r("div", Ql, [
16163
+ r("div", {
16164
16164
  class: "audio-message__progress-bar",
16165
- style: P({ width: y.value + "%" })
16165
+ style: q({ width: y.value + "%" })
16166
16166
  }, null, 4)
16167
16167
  ]),
16168
- o("p", Rl, w(`${h.value} / ${M.value}`), 1),
16169
- o("div", Yl, [
16170
- o("span", ql, w(e.message.time), 1),
16171
- _(e.message) === "audio-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
16168
+ r("p", Rl, w(`${h.value} / ${M.value}`), 1),
16169
+ r("div", Yl, [
16170
+ r("span", ql, w(e.message.time), 1),
16171
+ _(e.message) === "audio-message__right" && D(Pe).includes(e.message.status) ? (c(), d("div", {
16172
16172
  key: 0,
16173
16173
  class: x(["audio-message__status", u.value])
16174
16174
  }, [
16175
16175
  e.message.status !== "sent" ? (c(), d("span", Hl)) : b("", !0),
16176
- D[3] || (D[3] = o("span", { class: "pi pi-check" }, null, -1))
16176
+ j[3] || (j[3] = r("span", { class: "pi pi-check" }, null, -1))
16177
16177
  ], 2)) : b("", !0)
16178
16178
  ]),
16179
16179
  i.value && e.message.actions ? (c(), d("button", {
16180
16180
  key: 0,
16181
16181
  class: "audio-message__menu-button",
16182
- onClick: D[0] || (D[0] = (N) => s.value = !s.value)
16183
- }, D[4] || (D[4] = [
16184
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
16182
+ onClick: j[0] || (j[0] = (N) => s.value = !s.value)
16183
+ }, j[4] || (j[4] = [
16184
+ r("span", { class: "pi pi-ellipsis-h" }, null, -1)
16185
16185
  ]))) : b("", !0),
16186
- o("a", {
16186
+ r("a", {
16187
16187
  class: "audio-message__download-button",
16188
16188
  href: e.message.url,
16189
16189
  download: "",
16190
16190
  target: "_blank"
16191
- }, D[5] || (D[5] = [
16192
- o("span", { class: "pi pi-download" }, null, -1)
16191
+ }, j[5] || (j[5] = [
16192
+ r("span", { class: "pi pi-download" }, null, -1)
16193
16193
  ]), 8, Fl),
16194
- L(q, null, {
16195
- default: H(() => [
16196
- s.value && e.message.actions ? (c(), F(j(je), {
16194
+ L(H, null, {
16195
+ default: F(() => [
16196
+ s.value && e.message.actions ? (c(), P(D(je), {
16197
16197
  key: 0,
16198
16198
  class: "audio-message__context-menu",
16199
16199
  actions: e.message.actions,
@@ -16203,7 +16203,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16203
16203
  _: 1
16204
16204
  }),
16205
16205
  e.message.text ? (c(), d("div", Pl, [
16206
- o("p", null, w(e.message.text), 1)
16206
+ r("p", null, w(e.message.text), 1)
16207
16207
  ])) : b("", !0)
16208
16208
  ], 32)
16209
16209
  ], 42, Cl));
@@ -16220,8 +16220,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16220
16220
  },
16221
16221
  setup(e) {
16222
16222
  return (f, t) => (c(), d("div", Kl, [
16223
- o("div", Jl, [
16224
- o("p", Gl, w(e.message.text), 1)
16223
+ r("div", Jl, [
16224
+ r("p", Gl, w(e.message.text), 1)
16225
16225
  ])
16226
16226
  ]));
16227
16227
  }
@@ -16256,9 +16256,9 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16256
16256
  function t(h) {
16257
16257
  return h.position === "left" ? "video-message__left" : "video-message__right";
16258
16258
  }
16259
- const n = I(), a = I(), A = I(!1), s = I(!1), i = I(!1), l = I(!1), r = () => {
16259
+ const n = I(), a = I(), A = I(!1), s = I(!1), i = I(!1), o = I(!1), l = () => {
16260
16260
  }, g = () => {
16261
- i.value = !0, l.value = !0;
16261
+ i.value = !0, o.value = !0;
16262
16262
  }, u = () => {
16263
16263
  i.value = !1, s.value = !1;
16264
16264
  }, m = U(() => $e(f.message.status)), p = () => {
@@ -16279,98 +16279,98 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16279
16279
  width: "32"
16280
16280
  }, null, 8, fr)) : b("", !0),
16281
16281
  e.message.subText ? (c(), d("p", tr, w(e.message.subText), 1)) : b("", !0),
16282
- o("div", nr, [
16283
- o("div", {
16282
+ r("div", nr, [
16283
+ r("div", {
16284
16284
  class: "video-message__preview-button",
16285
16285
  onClick: M[0] || (M[0] = (y) => A.value = !0),
16286
16286
  onMouseenter: g,
16287
- onMouseleave: M[1] || (M[1] = (y) => l.value = !l.value)
16287
+ onMouseleave: M[1] || (M[1] = (y) => o.value = !o.value)
16288
16288
  }, [
16289
- o("video", {
16289
+ r("video", {
16290
16290
  ref_key: "previewPlayer",
16291
16291
  ref: a,
16292
16292
  class: "video-message__video",
16293
- style: P({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
16293
+ style: q({ borderRadius: e.message.text ? "8px 8px 0 0" : "8px" }),
16294
16294
  onEnded: p,
16295
16295
  src: e.message.url,
16296
16296
  muted: !0,
16297
16297
  autoplay: ""
16298
16298
  }, null, 44, ar),
16299
- L(q, { name: "modal-fade" }, {
16300
- default: H(() => [
16301
- l.value ? (c(), d("div", Ar, [
16299
+ L(H, { name: "modal-fade" }, {
16300
+ default: F(() => [
16301
+ o.value ? (c(), d("div", Ar, [
16302
16302
  e.message.views ? (c(), d("div", sr, [
16303
- M[4] || (M[4] = o("span", { class: "pi pi-eye" }, null, -1)),
16304
- o("p", null, w(e.message.views), 1)
16303
+ M[4] || (M[4] = r("span", { class: "pi pi-eye" }, null, -1)),
16304
+ r("p", null, w(e.message.views), 1)
16305
16305
  ])) : b("", !0),
16306
- o("span", ir, w(e.message.time), 1),
16307
- t(e.message) === "video-message__right" && j(Pe).includes(e.message.status) ? (c(), d("div", {
16306
+ r("span", ir, w(e.message.time), 1),
16307
+ t(e.message) === "video-message__right" && D(Pe).includes(e.message.status) ? (c(), d("div", {
16308
16308
  key: 1,
16309
16309
  class: x(["video-message__status", m.value])
16310
16310
  }, [
16311
16311
  e.message.status !== "sent" ? (c(), d("span", or)) : b("", !0),
16312
- M[5] || (M[5] = o("span", { class: "pi pi-check" }, null, -1))
16312
+ M[5] || (M[5] = r("span", { class: "pi pi-check" }, null, -1))
16313
16313
  ], 2)) : b("", !0)
16314
16314
  ])) : b("", !0)
16315
16315
  ]),
16316
16316
  _: 1
16317
16317
  }),
16318
- L(q, { name: "modal-fade" }, {
16319
- default: H(() => [
16320
- l.value ? (c(), d("a", {
16318
+ L(H, { name: "modal-fade" }, {
16319
+ default: F(() => [
16320
+ o.value ? (c(), d("a", {
16321
16321
  key: 0,
16322
16322
  class: "video-message__download-button",
16323
16323
  href: e.message.url,
16324
16324
  download: "",
16325
16325
  target: "_blank"
16326
16326
  }, M[6] || (M[6] = [
16327
- o("span", { class: "pi pi-download" }, null, -1)
16327
+ r("span", { class: "pi pi-download" }, null, -1)
16328
16328
  ]), 8, lr)) : b("", !0)
16329
16329
  ]),
16330
16330
  _: 1
16331
16331
  })
16332
16332
  ], 32),
16333
- L(q, { name: "modal-fade" }, {
16334
- default: H(() => [
16333
+ L(H, { name: "modal-fade" }, {
16334
+ default: F(() => [
16335
16335
  i.value && e.message.actions ? (c(), d("button", {
16336
16336
  key: 0,
16337
16337
  class: "video-message__menu-button",
16338
16338
  onClick: M[2] || (M[2] = (y) => s.value = !s.value)
16339
16339
  }, M[7] || (M[7] = [
16340
- o("span", { class: "pi pi-ellipsis-h" }, null, -1)
16340
+ r("span", { class: "pi pi-ellipsis-h" }, null, -1)
16341
16341
  ]))) : b("", !0)
16342
16342
  ]),
16343
16343
  _: 1
16344
16344
  }),
16345
- L(q, { name: "context-menu" }, {
16346
- default: H(() => [
16347
- s.value && e.message.actions ? (c(), F(j(je), {
16345
+ L(H, { name: "context-menu" }, {
16346
+ default: F(() => [
16347
+ s.value && e.message.actions ? (c(), P(D(je), {
16348
16348
  key: 0,
16349
16349
  class: "video-message__context-menu",
16350
16350
  actions: e.message.actions,
16351
- onClick: r
16351
+ onClick: l
16352
16352
  }, null, 8, ["actions"])) : b("", !0)
16353
16353
  ]),
16354
16354
  _: 1
16355
16355
  }),
16356
16356
  e.message.text ? (c(), d("div", rr, [
16357
- o("p", null, w(e.message.text), 1)
16357
+ r("p", null, w(e.message.text), 1)
16358
16358
  ])) : b("", !0)
16359
16359
  ]),
16360
- (c(), F(Ot, { to: "body" }, [
16361
- L(q, { name: "modal-fade" }, {
16362
- default: H(() => [
16360
+ (c(), P(Ot, { to: "body" }, [
16361
+ L(H, { name: "modal-fade" }, {
16362
+ default: F(() => [
16363
16363
  A.value ? (c(), d("div", ur, [
16364
- o("div", cr, [
16365
- o("button", {
16364
+ r("div", cr, [
16365
+ r("button", {
16366
16366
  class: "video-message__modal-close-button",
16367
16367
  onClick: M[3] || (M[3] = (y) => A.value = !1)
16368
16368
  }, M[8] || (M[8] = [
16369
- o("span", null, [
16370
- o("i", { class: "pi pi-times" })
16369
+ r("span", null, [
16370
+ r("i", { class: "pi pi-times" })
16371
16371
  ], -1)
16372
16372
  ])),
16373
- o("video", {
16373
+ r("video", {
16374
16374
  ref_key: "player",
16375
16375
  ref: n,
16376
16376
  class: "video-message__modal-video",
@@ -16418,7 +16418,7 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16418
16418
  return t.position === "left" ? "call-message__left" : "call-message__right";
16419
16419
  }
16420
16420
  return (t, n) => (c(), d("div", pr, [
16421
- o("div", {
16421
+ r("div", {
16422
16422
  class: x(f(e.message)),
16423
16423
  messageId: e.message.messageId
16424
16424
  }, [
@@ -16428,18 +16428,18 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16428
16428
  src: e.message.avatar,
16429
16429
  height: "32",
16430
16430
  width: "32",
16431
- style: P({ gridRow: e.message.subText ? "2" : "1" })
16431
+ style: q({ gridRow: e.message.subText ? "2" : "1" })
16432
16432
  }, null, 12, Mr)) : b("", !0),
16433
16433
  e.message.subText ? (c(), d("p", yr, w(e.message.subText), 1)) : b("", !0),
16434
- o("div", br, [
16435
- o("span", {
16434
+ r("div", br, [
16435
+ r("span", {
16436
16436
  class: "call-message__icon pi pi-phone",
16437
- style: P({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
16437
+ style: q({ color: e.message.isMissedCall ? "var(--p-red-500)" : "var(--neutral-100)" })
16438
16438
  }, null, 4),
16439
16439
  e.message.isMissedCall ? (c(), d("span", Ir, "Пропущенный аудиозвонок")) : (c(), d("span", vr, "Аудиозвонок")),
16440
16440
  e.message.callDuration ? (c(), d("span", _r, w(e.message.callDuration), 1)) : !e.message.callDuration && e.message.isMissedCall ? (c(), d("span", wr, "Нажмите, чтобы перезвонить")) : (c(), d("span", kr, "Нет ответа")),
16441
- o("div", Nr, [
16442
- o("span", Dr, w(e.message.time), 1)
16441
+ r("div", Nr, [
16442
+ r("span", Dr, w(e.message.time), 1)
16443
16443
  ])
16444
16444
  ])
16445
16445
  ], 10, hr)
@@ -16455,8 +16455,8 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16455
16455
  },
16456
16456
  setup(e) {
16457
16457
  return (f, t) => (c(), d("div", Tr, [
16458
- o("div", Vr, [
16459
- o("p", xr, w(e.message.text), 1)
16458
+ r("div", Vr, [
16459
+ r("p", xr, w(e.message.text), 1)
16460
16460
  ])
16461
16461
  ]));
16462
16462
  }
@@ -16473,18 +16473,18 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16473
16473
  },
16474
16474
  setup(e) {
16475
16475
  return (f, t) => (c(), d("div", Or, [
16476
- o("div", Cr, [
16476
+ r("div", Cr, [
16477
16477
  e.message.avatar ? (c(), d("img", {
16478
16478
  key: 0,
16479
16479
  class: "typing-message__avatar",
16480
16480
  src: e.message.avatar,
16481
16481
  height: "32",
16482
16482
  width: "32",
16483
- style: P({ gridRow: e.message.subText ? "2" : "1" })
16483
+ style: q({ gridRow: e.message.subText ? "2" : "1" })
16484
16484
  }, null, 12, Lr)) : b("", !0),
16485
16485
  e.message.subText ? (c(), d("p", Ur, w(e.message.subText), 1)) : b("", !0),
16486
- t[0] || (t[0] = o("div", { class: "typing-message__loader-container" }, [
16487
- o("div", { class: "typing-message__loader" })
16486
+ t[0] || (t[0] = r("div", { class: "typing-message__loader-container" }, [
16487
+ r("div", { class: "typing-message__loader" })
16488
16488
  ], -1))
16489
16489
  ])
16490
16490
  ]));
@@ -16504,21 +16504,21 @@ const Nl = { class: "text-message" }, Dl = ["messageId"], jl = ["src"], El = {
16504
16504
  const t = f, n = (A) => {
16505
16505
  t("submit", A);
16506
16506
  }, a = I(null);
16507
- return (A, s) => (c(), F(q, { name: "modal-fade" }, {
16508
- default: H(() => [
16509
- o("div", Qr, [
16510
- o("div", Rr, [
16511
- o("div", Yr, [
16507
+ return (A, s) => (c(), P(H, { name: "modal-fade" }, {
16508
+ default: F(() => [
16509
+ r("div", Qr, [
16510
+ r("div", Rr, [
16511
+ r("div", Yr, [
16512
16512
  G(A.$slots, "default", {}, void 0, !0)
16513
16513
  ]),
16514
- o("div", qr, [
16515
- o("button", {
16514
+ r("div", qr, [
16515
+ r("button", {
16516
16516
  type: "button",
16517
16517
  class: "btn-green",
16518
16518
  "aria-label": "Close modal",
16519
16519
  onClick: s[0] || (s[0] = (i) => n(a.value))
16520
16520
  }, " OK "),
16521
- o("button", {
16521
+ r("button", {
16522
16522
  type: "button",
16523
16523
  class: "btn-green",
16524
16524
  "aria-label": "Close modal",
@@ -16537,13 +16537,13 @@ function en({ component: e, attrs: f }) {
16537
16537
  const n = document.createElement("div");
16538
16538
  document.body.appendChild(n);
16539
16539
  const a = I({}), A = () => {
16540
- r.unmount(), document.body.removeChild(n);
16540
+ l.unmount(), document.body.removeChild(n);
16541
16541
  }, s = () => {
16542
16542
  A(), t(a.value);
16543
16543
  }, i = (g) => {
16544
16544
  const u = Object.keys(g)[0];
16545
16545
  a.value[u] = g[u];
16546
- }, l = K({
16546
+ }, o = K({
16547
16547
  render() {
16548
16548
  return un(
16549
16549
  Fr,
@@ -16562,21 +16562,21 @@ function en({ component: e, attrs: f }) {
16562
16562
  }
16563
16563
  );
16564
16564
  }
16565
- }), r = ja(l);
16566
- r.mount(n);
16565
+ }), l = ja(o);
16566
+ l.mount(n);
16567
16567
  });
16568
16568
  }
16569
- const xu = async (e, f) => {
16569
+ const Tu = async (e, f) => {
16570
16570
  const t = await en({
16571
16571
  //в component должен быть встроен emit change(key: value)
16572
- component: import("./SelectUser2-DyHGD8g8.js"),
16572
+ component: import("./SelectUser2-JwrGlSc2.js"),
16573
16573
  attrs: {
16574
16574
  title: e,
16575
16575
  users: f
16576
16576
  }
16577
16577
  });
16578
16578
  return console.log("data", t), t;
16579
- }, Su = async (e) => {
16579
+ }, Vu = async (e) => {
16580
16580
  const f = await en({
16581
16581
  //в component должен быть встроен emit change(key: value)
16582
16582
  component: import("./CreateChat-fkFKBxtQ.js"),
@@ -16585,29 +16585,56 @@ const xu = async (e, f) => {
16585
16585
  }
16586
16586
  });
16587
16587
  return console.log("data", f), f;
16588
- }, zu = async (e) => await en({
16588
+ }, xu = async (e) => await en({
16589
16589
  //в component должен быть встроен emit change(key: value)
16590
16590
  component: import("./CreateChat2-DgUQ2F5L.js"),
16591
16591
  attrs: {
16592
16592
  title: e
16593
16593
  }
16594
- }), Pr = ["id"], Ou = {
16594
+ }), Pr = ["id"], Su = {
16595
16595
  __name: "BaseContainer",
16596
16596
  props: {
16597
16597
  height: String,
16598
- width: String
16598
+ width: String,
16599
+ defaultTheme: {
16600
+ type: String,
16601
+ default: "green",
16602
+ required: !1
16603
+ }
16599
16604
  },
16600
16605
  setup(e) {
16601
- const f = St();
16602
- return Ct("chatAppId", f), (t, n) => (c(), d("div", {
16606
+ const f = e, t = St();
16607
+ Ct("chatAppId", t);
16608
+ const n = [
16609
+ {
16610
+ code: "light",
16611
+ name: "Light"
16612
+ },
16613
+ {
16614
+ code: "dark",
16615
+ name: "Dark"
16616
+ },
16617
+ {
16618
+ code: "green",
16619
+ name: "Green"
16620
+ },
16621
+ {
16622
+ code: "diamond",
16623
+ name: "Diamond"
16624
+ }
16625
+ ];
16626
+ return pe(() => {
16627
+ const a = n.find((A) => A.code === f.defaultTheme).code;
16628
+ console.log(a), document.getElementById(t).dataset.theme = a;
16629
+ }), (a, A) => (c(), d("div", {
16603
16630
  class: "base",
16604
- id: j(f)
16631
+ id: D(t)
16605
16632
  }, [
16606
- o("div", {
16633
+ r("div", {
16607
16634
  class: "base__container",
16608
- style: P({ height: e.height, width: e.width })
16635
+ style: q({ height: e.height, width: e.width })
16609
16636
  }, [
16610
- G(t.$slots, "default")
16637
+ G(a.$slots, "default")
16611
16638
  ], 4)
16612
16639
  ], 8, Pr));
16613
16640
  }
@@ -16627,22 +16654,44 @@ const xu = async (e, f) => {
16627
16654
  required: !0
16628
16655
  },
16629
16656
  height: String,
16630
- width: String
16657
+ width: String,
16658
+ defaultTheme: {
16659
+ type: String,
16660
+ default: "green",
16661
+ required: !1
16662
+ }
16631
16663
  },
16632
16664
  emits: ["close-window", "get-size"],
16633
16665
  setup(e, { emit: f }) {
16634
- const t = e, n = I({ x: 0, y: 0 }), a = I(null), A = I(null), s = I(!1), i = I(0), l = I(0), r = I(0), g = St();
16666
+ const t = e, n = I({ x: 0, y: 0 }), a = I(null), A = I(null), s = I(!1), i = I(0), o = I(0), l = I(0), g = St();
16635
16667
  Ct("chatAppId", g);
16636
- const u = (h) => {
16637
- s.value = !0, i.value = h.clientX - a.value.offsetLeft, l.value = h.clientY - a.value.offsetTop;
16638
- }, m = () => s.value = !1, p = (h) => {
16668
+ const u = [
16669
+ {
16670
+ code: "light",
16671
+ name: "Light"
16672
+ },
16673
+ {
16674
+ code: "dark",
16675
+ name: "Dark"
16676
+ },
16677
+ {
16678
+ code: "green",
16679
+ name: "Green"
16680
+ },
16681
+ {
16682
+ code: "diamond",
16683
+ name: "Diamond"
16684
+ }
16685
+ ], m = (M) => {
16686
+ s.value = !0, i.value = M.clientX - a.value.offsetLeft, o.value = M.clientY - a.value.offsetTop;
16687
+ }, p = () => s.value = !1, h = (M) => {
16639
16688
  if (s.value) {
16640
- const M = h.clientX - i.value, y = h.clientY - l.value;
16641
- n.value.x = M, n.value.y = y;
16689
+ const y = M.clientX - i.value, _ = M.clientY - o.value;
16690
+ n.value.x = y, n.value.y = _;
16642
16691
  }
16643
16692
  };
16644
- return Ne(() => {
16645
- document.addEventListener("mousemove", p), window.addEventListener("resize", () => {
16693
+ return pe(() => {
16694
+ document.addEventListener("mousemove", h), window.addEventListener("resize", () => {
16646
16695
  n.value.x = Math.max(
16647
16696
  0,
16648
16697
  Math.min(
@@ -16656,13 +16705,15 @@ const xu = async (e, f) => {
16656
16705
  window.innerHeight - a.value.offsetHeight
16657
16706
  )
16658
16707
  );
16659
- }), r.value = a.value.offsetHeight - A.value.offsetHeight;
16660
- }), (h, M) => (c(), d("div", {
16708
+ }), l.value = a.value.offsetHeight - A.value.offsetHeight;
16709
+ const M = u.find((y) => y.code === t.defaultTheme).code;
16710
+ console.log(M), document.getElementById(g).dataset.theme = M;
16711
+ }), (M, y) => (c(), d("div", {
16661
16712
  ref_key: "element",
16662
16713
  ref: a,
16663
16714
  class: "float-window",
16664
- id: j(g),
16665
- style: P({
16715
+ id: D(g),
16716
+ style: q({
16666
16717
  left: n.value.x + "px",
16667
16718
  top: n.value.y + "px",
16668
16719
  userSelect: s.value ? "none" : "auto",
@@ -16671,15 +16722,15 @@ const xu = async (e, f) => {
16671
16722
  display: "flex"
16672
16723
  })
16673
16724
  }, [
16674
- o("div", Wr, [
16675
- o("div", {
16725
+ r("div", Wr, [
16726
+ r("div", {
16676
16727
  ref_key: "container",
16677
16728
  ref: A,
16678
16729
  class: "float-window__controls",
16679
- style: P({ backgroundColor: t.colorTitle ? t.colorTitle : "" }),
16680
- onMousedown: u,
16681
- onMouseup: m,
16682
- onMouseleave: m
16730
+ style: q({ backgroundColor: t.colorTitle ? t.colorTitle : "" }),
16731
+ onMousedown: m,
16732
+ onMouseup: p,
16733
+ onMouseleave: p
16683
16734
  }, [
16684
16735
  t.avatar ? (c(), d("img", {
16685
16736
  key: 0,
@@ -16687,85 +16738,107 @@ const xu = async (e, f) => {
16687
16738
  src: t.avatar,
16688
16739
  alt: t.title
16689
16740
  }, null, 8, Kr)) : b("", !0),
16690
- o("p", Jr, w(t.title), 1),
16691
- o("button", {
16741
+ r("p", Jr, w(t.title), 1),
16742
+ r("button", {
16692
16743
  class: "float-window__close-button",
16693
- onClick: M[0] || (M[0] = (y) => h.$emit("close-window"))
16694
- }, M[1] || (M[1] = [
16695
- o("span", { class: "pi pi-times" }, null, -1)
16744
+ onClick: y[0] || (y[0] = (_) => M.$emit("close-window"))
16745
+ }, y[1] || (y[1] = [
16746
+ r("span", { class: "pi pi-times" }, null, -1)
16696
16747
  ]))
16697
16748
  ], 36),
16698
- o("div", {
16749
+ r("div", {
16699
16750
  class: "float-window__content",
16700
- style: P({ height: r.value + "px" })
16751
+ style: q({ height: l.value + "px" })
16701
16752
  }, [
16702
- G(h.$slots, "default", {}, void 0, !0)
16753
+ G(M.$slots, "default", {}, void 0, !0)
16703
16754
  ], 4)
16704
16755
  ])
16705
16756
  ], 12, $r));
16706
16757
  }
16707
- }, Cu = /* @__PURE__ */ z(Gr, [["__scopeId", "data-v-efd0f13a"]]), Zr = {}, Xr = { class: "base-layout__container" }, eu = { class: "base-layout__first-col" }, fu = { class: "base-layout__second-col" };
16708
- function tu(e, f) {
16709
- return c(), d("div", Xr, [
16710
- o("div", eu, [
16711
- G(e.$slots, "first-col", {}, void 0, !0)
16712
- ]),
16713
- o("div", fu, [
16714
- G(e.$slots, "second-col", {}, void 0, !0)
16715
- ])
16716
- ]);
16717
- }
16718
- const Lu = /* @__PURE__ */ z(Zr, [["render", tu], ["__scopeId", "data-v-93dc265d"]]), nu = { class: "extend-layout__container" }, au = { class: "extend-layout__first-col" }, Au = { class: "extend-layout__third-col" }, su = {
16758
+ }, zu = /* @__PURE__ */ z(Gr, [["__scopeId", "data-v-3be75eeb"]]), Zr = { class: "base-layout__container" }, Xr = { class: "base-layout__second-col" }, eu = {
16759
+ __name: "BaseLayout",
16760
+ setup(e) {
16761
+ const f = I(null);
16762
+ let t = I(!1), n = I(0), a = I(0), A = I(0);
16763
+ const s = (l) => {
16764
+ l.offsetX >= f.value.offsetWidth - 20 && (t.value = !0, n.value = f.value.offsetWidth, a.value = l.clientX, A.value = l.clientX, document.addEventListener("mousemove", i));
16765
+ }, i = (l) => {
16766
+ if (t.value) {
16767
+ const g = n.value + (l.clientX - A.value);
16768
+ f.value.style.width = `${Math.max(270, g)}px`;
16769
+ }
16770
+ }, o = () => {
16771
+ t.value = !1, document.removeEventListener("mousemove", i);
16772
+ };
16773
+ return pe(() => {
16774
+ f.value && (f.value.style.width = "400px");
16775
+ }), (l, g) => (c(), d("div", Zr, [
16776
+ r("div", {
16777
+ class: "base-layout__first-col resizable-div",
16778
+ ref_key: "resizableDiv",
16779
+ ref: f,
16780
+ style: q({ userSelect: D(t) ? "none" : "auto" }),
16781
+ onMousedown: s,
16782
+ onMouseup: o
16783
+ }, [
16784
+ G(l.$slots, "first-col", {}, void 0, !0)
16785
+ ], 36),
16786
+ r("div", Xr, [
16787
+ G(l.$slots, "second-col", {}, void 0, !0)
16788
+ ])
16789
+ ]));
16790
+ }
16791
+ }, Ou = /* @__PURE__ */ z(eu, [["__scopeId", "data-v-88d3a852"]]), fu = { class: "extend-layout__container" }, tu = { class: "extend-layout__first-col" }, nu = { class: "extend-layout__third-col" }, au = {
16719
16792
  __name: "ExtendedLayout",
16720
16793
  setup(e) {
16721
16794
  const f = I(null);
16722
16795
  let t = I(!1), n = I(0), a = I(0), A = I(0);
16723
- const s = (r) => {
16724
- r.offsetX >= f.value.offsetWidth - 20 && (t.value = !0, n.value = f.value.offsetWidth, a.value = r.clientX, A.value = r.clientX, document.addEventListener("mousemove", i));
16725
- }, i = (r) => {
16796
+ const s = (l) => {
16797
+ l.offsetX >= f.value.offsetWidth - 20 && (t.value = !0, n.value = f.value.offsetWidth, a.value = l.clientX, A.value = l.clientX, document.addEventListener("mousemove", i));
16798
+ }, i = (l) => {
16726
16799
  if (t.value) {
16727
- const g = n.value + (r.clientX - A.value);
16800
+ const g = n.value + (l.clientX - A.value);
16728
16801
  f.value.style.width = `${Math.max(270, g)}px`;
16729
16802
  }
16730
- }, l = () => {
16803
+ }, o = () => {
16731
16804
  t.value = !1, document.removeEventListener("mousemove", i);
16732
16805
  };
16733
- return Ne(() => {
16806
+ return pe(() => {
16734
16807
  f.value && (f.value.style.width = "350px");
16735
- }), (r, g) => (c(), d("div", nu, [
16736
- o("div", au, [
16737
- G(r.$slots, "first-col", {}, void 0, !0)
16808
+ }), (l, g) => (c(), d("div", fu, [
16809
+ r("div", tu, [
16810
+ G(l.$slots, "first-col", {}, void 0, !0)
16738
16811
  ]),
16739
- o("div", {
16812
+ r("div", {
16740
16813
  ref_key: "resizableDiv",
16741
16814
  ref: f,
16742
16815
  class: "extend-layout__second-col resizable-div",
16743
- style: P({ userSelect: j(t) ? "none" : "auto" }),
16816
+ style: q({ userSelect: D(t) ? "none" : "auto" }),
16744
16817
  onMousedown: s,
16745
- onMouseup: l
16818
+ onMouseup: o
16746
16819
  }, [
16747
- G(r.$slots, "second-col", {}, void 0, !0)
16820
+ G(l.$slots, "second-col", {}, void 0, !0)
16748
16821
  ], 36),
16749
- o("div", Au, [
16750
- G(r.$slots, "third-col", {}, void 0, !0)
16822
+ r("div", nu, [
16823
+ G(l.$slots, "third-col", {}, void 0, !0)
16751
16824
  ])
16752
16825
  ]));
16753
16826
  }
16754
- }, Uu = /* @__PURE__ */ z(su, [["__scopeId", "data-v-7c3b977d"]]), iu = {}, ou = { class: "base-layout__container" }, lu = { class: "base-layout__first-col" };
16755
- function ru(e, f) {
16756
- return c(), d("div", ou, [
16757
- o("div", lu, [
16827
+ }, Cu = /* @__PURE__ */ z(au, [["__scopeId", "data-v-7c3b977d"]]), Au = {}, su = { class: "base-layout__container" }, iu = { class: "base-layout__first-col" };
16828
+ function ou(e, f) {
16829
+ return c(), d("div", su, [
16830
+ r("div", iu, [
16758
16831
  G(e.$slots, "default", {}, void 0, !0)
16759
16832
  ])
16760
16833
  ]);
16761
16834
  }
16762
- const Bu = /* @__PURE__ */ z(iu, [["render", ru], ["__scopeId", "data-v-e71ea0ed"]]), uu = { class: "chat-wrapper" }, cu = {
16835
+ const Lu = /* @__PURE__ */ z(Au, [["render", ou], ["__scopeId", "data-v-e71ea0ed"]]), lu = { class: "chat-wrapper" }, ru = {
16763
16836
  key: 0,
16764
16837
  class: "chat-wrapper__selected-chat"
16765
- }, du = {
16838
+ }, uu = {
16766
16839
  key: 1,
16767
16840
  style: { width: "100%" }
16768
- }, gu = /* @__PURE__ */ K({
16841
+ }, cu = /* @__PURE__ */ K({
16769
16842
  __name: "ChatWrapper",
16770
16843
  props: {
16771
16844
  isOpenChatPanel: {
@@ -16778,64 +16851,64 @@ const Bu = /* @__PURE__ */ z(iu, [["render", ru], ["__scopeId", "data-v-e71ea0ed
16778
16851
  }
16779
16852
  },
16780
16853
  setup(e) {
16781
- return (f, t) => (c(), d("div", uu, [
16782
- e.isSelectedChat ? (c(), d("div", cu, [
16854
+ return (f, t) => (c(), d("div", lu, [
16855
+ e.isSelectedChat ? (c(), d("div", ru, [
16783
16856
  G(f.$slots, "default", {}, void 0, !0)
16784
- ])) : (c(), d("div", du, [
16785
- o("p", null, w(j(Se)("layout.ChatWrapper.noSelectedChat")), 1)
16857
+ ])) : (c(), d("div", uu, [
16858
+ r("p", null, w(D(Se)("layout.ChatWrapper.noSelectedChat")), 1)
16786
16859
  ])),
16787
16860
  e.isOpenChatPanel ? (c(), d("div", {
16788
16861
  key: 2,
16789
16862
  class: "chat-wrapper__chat-panel",
16790
- style: P({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
16863
+ style: q({ "flex-basis": e.isOpenChatPanel ? "40%" : "0%" })
16791
16864
  }, [
16792
16865
  G(f.$slots, "chatpanel", {}, void 0, !0)
16793
16866
  ], 4)) : b("", !0)
16794
16867
  ]));
16795
16868
  }
16796
- }), Qu = /* @__PURE__ */ z(gu, [["__scopeId", "data-v-12c6a622"]]);
16869
+ }), Uu = /* @__PURE__ */ z(cu, [["__scopeId", "data-v-12c6a622"]]);
16797
16870
  export {
16798
16871
  Wl as A,
16799
16872
  Un as B,
16800
16873
  Er as C,
16801
16874
  Xl as D,
16802
- Uu as E,
16875
+ Cu as E,
16803
16876
  P1 as F,
16804
- _u as G,
16805
- wu as H,
16877
+ vu as G,
16878
+ Iu as H,
16806
16879
  ol as I,
16807
16880
  dn as J,
16808
16881
  Pe as K,
16809
16882
  $e as L,
16810
16883
  zr as S,
16811
16884
  Ol as T,
16812
- bu as U,
16885
+ Mu as U,
16813
16886
  mr as V,
16814
16887
  z as _,
16815
16888
  On as a,
16816
- pu as b,
16817
- hu as c,
16818
- Mu as d,
16819
- yu as e,
16820
- ku as f,
16821
- Nu as g,
16822
- Du as h,
16823
- ju as i,
16824
- Eu as j,
16889
+ gu as b,
16890
+ mu as c,
16891
+ pu as d,
16892
+ hu as e,
16893
+ _u as f,
16894
+ wu as g,
16895
+ ku as h,
16896
+ Nu as i,
16897
+ Du as j,
16825
16898
  dt as k,
16826
16899
  _s as l,
16827
16900
  Fs as m,
16828
- Tu as n,
16829
- Vu as o,
16901
+ ju as n,
16902
+ Eu as o,
16830
16903
  je as p,
16831
- Su as q,
16832
- zu as r,
16833
- Ou as s,
16834
- Cu as t,
16835
- xu as u,
16836
- Lu as v,
16837
- Bu as w,
16838
- Qu as x,
16839
- vu as y,
16840
- Iu as z
16904
+ Vu as q,
16905
+ xu as r,
16906
+ Su as s,
16907
+ zu as t,
16908
+ Tu as u,
16909
+ Ou as v,
16910
+ Lu as w,
16911
+ Uu as x,
16912
+ yu as y,
16913
+ bu as z
16841
16914
  };